[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:35]OFD Sender: No OFD packet to send [03:26:40]OFD Sender: No OFD packet to send [03:26:45]OFD Sender: No OFD packet to send [03:26:50]OFD Sender: No OFD packet to send [03:26:55]OFD Sender: No OFD packet to send [03:27:00]OFD Sender: No OFD packet to send [03:27:05]OFD Sender: No OFD packet to send [03:27:10]OFD Sender: No OFD packet to send [03:27:15]OFD Sender: No OFD packet to send [03:27:20]OFD Sender: No OFD packet to send [03:27:25]OFD Sender: No OFD packet to send [03:27:30]OFD Sender: No OFD packet to send [03:27:35]OFD Sender: No OFD packet to send [03:27:40]OFD Sender: No OFD packet to send [03:27:45]OFD Sender: No OFD packet to send [03:27:50]OFD Sender: No OFD packet to send [03:27:55]OFD Sender: No OFD packet to send [03:28:00]OFD Sender: No OFD packet to send [03:28:05]OFD Sender: No OFD packet to send [03:28:10]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:35]OFD Sender: No OFD packet to send [03:28:40]OFD Sender: No OFD packet to send [03:28:45]OFD Sender: No OFD packet to send [03:28:50]OFD Sender: No OFD packet to send [03:28:55]OFD Sender: No OFD packet to send [03:29:00]OFD Sender: No OFD packet to send [03:29:05]OFD Sender: No OFD packet to send [03:29:10]OFD Sender: No OFD packet to send [03:29:15]OFD Sender: No OFD packet to send [03:29:20]OFD Sender: No OFD packet to send [03:29:25]OFD Sender: No OFD packet to send [03:29:30]OFD Sender: No OFD packet to send [03:29:35]OFD Sender: No OFD packet to send [03:29:40]OFD Sender: No OFD packet to send [03:29:45]OFD Sender: No OFD packet to send [03:29:50]OFD Sender: No OFD packet to send [03:29:55]OFD Sender: No OFD packet to send [03:30:00]OFD Sender: No OFD packet to send [03:30:05]OFD Sender: No OFD packet to send [03:30:10]OFD Sender: No OFD packet to send [03:30:15]OFD Sender: No OFD packet to send [03:30:20]OFD Sender: No OFD packet to send [03:30:25]OFD Sender: No OFD packet to send [03:30:30]OFD Sender: No OFD packet to send [03:30:35]OFD Sender: No OFD packet to send [03:30:40]OFD Sender: No OFD packet to send [03:30:45]OFD Sender: No OFD packet to send [03:30:50]OFD Sender: No OFD packet to send [03:30:55]OFD Sender: No OFD packet to send [03:31:00]OFD Sender: No OFD packet to send [03:31:05]OFD Sender: No OFD packet to send [03:31:10]OFD Sender: No OFD packet to send [03:31:15]OFD Sender: No OFD packet to send [03:31:20]OFD Sender: No OFD packet to send [03:31:25]OFD Sender: No OFD packet to send [03:31:30]OFD Sender: No OFD packet to send [03:31:35]OFD Sender: No OFD packet to send [03:31:40]OFD Sender: No OFD packet to send [03:31:45]OFD Sender: No OFD packet to send [03:31:50]OFD Sender: No OFD packet to send [03:31:55]OFD Sender: No OFD packet to send [03:32:00]OFD Sender: No OFD packet to send [03:32:05]OFD Sender: No OFD packet to send [03:32:10]OFD Sender: No OFD packet to send [03:32:15]OFD Sender: No OFD packet to send [03:32:20]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:47]accept exits with 10 [03:34:47]New connection [03:34:47]New thread 3067395428 created [03:34:47]Thread 3067538788 joined [03:34:47]Waiting for new connection... [03:34:47] Sock 10.Parse request [03:34:47]Sock 10.Check first char [03:34:47]Sock 10.First char is OK [03:34:47]request: POST /json_proto HTTP/1.0 [03:34:47]Method: POST [03:34:47]URL: /json_proto [03:34:47]Method is POST - this is cgi request [03:34:47]url: /json_proto [03:34:47]query_string will be loaded in cgi processing [03:34:47]execute_cgi json_proto POST (null) [03:34:47]execute_cgi path=json_proto method=POST [03:34:47]POST find Content-Length [03:34:47]Host: 172.17.41.195:8080 [03:34:47]Content-Length: 1179 [03:34:47]Content-Type: application/json [03:34:47] [03:34:47]POST finish read [03:34:47]Found Content-Length = 1179 [03:34: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507684\u000A17.05.2024 03:17\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 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" ] } } [03:34:47]execute_script... [03:34: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507684\u000A17.05.2024 03:17\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 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" ] } } [03:34:47]POST & json_proto [03:34:47]process_json_proto [03:34:47]json parsed OK: [03:34:47]protocol is kg_v1.0 [03:34:47]action value=print_text [03:34:47]process_action print_text [03:34:47]cmd_print_text [03:34:47]ExternCall_PrintAddStr [03:34:47]wPrintStart [03:34:47]Write to MH i2c: 01 00 00 A1 06 A7 [03:34:47]Write i2c OK [03:34:47]MH_I2C_Read... [03:34:47]Read from MH i2c: 01 [03:34:47]MH_I2C_Read... [03:34:47]Read from MH i2c: 01 07 00 [03:34:47]MH_I2C_Read... [03:34:47]Read from MH i2c: 01 07 00 A1 06 00 00 00 00 00 FF 0F BC [03:34:47]RasterBufferAndPrint [03:34:47]line *****ТОВАРНЫЙ ЧЕК***** [03:34:47]line АЗС-91 [03:34:47]line Партнер нефть [03:34:47]line 02508201610067 [03:34:47]line Кассир : Адишов И. [03:34:47]line Счет N : (1)507684 [03:34:47]line 17.05.2024 03:17 [03:34:47]line ПРОДАЖА [03:34:47]line ТРК (МРК, ГНК): 31 [03:34:47]line Вид ГСМ : 2710194210 [03:34:47]line ДТ-К-5 [03:34:47]line 30.000 x 74.70 [03:34:47]line ИТОГ: 2241.00 [03:34:47]line Тип оплаты: Талоны: Топливная Карта [03:34:47]line 02750 [03:34:47]line ______________________ [03:34:47]line (подпись) [03:34:47]written 0, free lines is 4095 [03:34:47]Write to MH i2c: 01 00 00 B5 06 BB [03:34:47]Write i2c OK [03:34:47]MH_I2C_Read... [03:34:47]Read from MH i2c: 01 [03:34:47]MH_I2C_Read... [03:34:47]Read from MH i2c: 01 07 00 [03:34:47]MH_I2C_Read... [03:34:47]Read from MH i2c: 01 07 00 B5 06 00 00 00 00 00 0D 0E DD [03:34:47]RasterBufferAndPrint [03:34:47]line [03:34:47]line [03:34:47]line [03:34:47]line [03:34:47]line [03:34:47]written 0, free lines is 3599 [03:34:47]MH_Cut [03:34:47]Write to MH i2c: D1 01 00 BC 06 01 94 [03:34:47]Write i2c OK [03:34:47]MH_I2C_Read... [03:34:47]Read from MH i2c: D1 [03:34:47]MH_I2C_Read... [03:34:47]Read from MH i2c: D1 01 00 [03:34:47]MH_I2C_Read... [03:34:47]Read from MH i2c: D1 01 00 BC 06 00 93 [03:34:47]Write to MH i2c: 01 00 00 BD 06 C3 [03:34:47]Write i2c OK [03:34:47]MH_I2C_Read... [03:34:48]*** Cut start [03:34:48]*** Purtial cut [03:34:48]*** CUTSNS_PIN = 0 [03:34:48]*** Stage 1: CUTSNS_PIN = 1 [03:34:50]Read from MH i2c: 01 [03:34:50]MH_I2C_Read... [03:34:50]*** Stop cut motor [03:34:50]*** Cut end [03:34:50]Read from MH i2c: 01 07 00 [03:34:50]MH_I2C_Read... [03:34:50]Read from MH i2c: 01 07 00 BD 06 00 00 00 00 00 FF 0F D8 [03:34:50]process_action print_text done [03:34:50]requested_data is exist [03:34:50]produce_requested_data [03:34:50]requested_item fm.sn is exist - process it [03:34:50]wFMCommunicate request_size=4 [03:34:50]MH_SAM_APDU [03:34:50]CAPDU: 80 11 00 00 [03:34:50]Write to MH i2c: E2 08 00 BE 06 80 11 00 00 00 00 00 00 3E [03:34:50]Write i2c OK [03:34:50]MH_I2C_Read... [03:34:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:34:50]Read from MH i2c: E2 [03:34:50]MH_I2C_Read... [03:34:50]Read from MH i2c: E2 17 00 [03:34:50]MH_I2C_Read... [03:34:50]Read from MH i2c: E2 17 00 BE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 94 [03:34:50]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:50]wFMCommunicate OK [03:34:50]requested_item fd.num is exist - process it [03:34:50]SAM_PROTO_GetFieldsCounters [03:34:50]wFMCommunicate request_size=4 [03:34:50]MH_SAM_APDU [03:34:50]CAPDU: 80 13 00 00 [03:34:50]Write to MH i2c: E2 08 00 BF 06 80 13 00 00 00 00 00 00 41 [03:34:50]Write i2c OK [03:34:50]MH_I2C_Read... [03:34:50]OFD Sender: No OFD packet to send [03:34:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:34:50]Read from MH i2c: E2 [03:34:50]MH_I2C_Read... [03:34:50]Read from MH i2c: E2 62 00 [03:34:50]MH_I2C_Read... [03:34:50]Read from MH i2c: E2 62 00 BF 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 11 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [03:34: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 11 08 01 00 0E 04 04 00 66 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 [03:34:50]wFMCommunicate OK [03:34:50]SAM_PROTO_GetFieldsCounters done [03:34:50]requested_item shift.num is exist - process it [03:34:50]requested_item shift.opened is exist - process it [03:34:50]req_shift_opened [03:34:50]FM_GetShiftState [03:34:50]SAM_PROTO_GetShiftState [03:34:50]wFMCommunicate request_size=4 [03:34:50]MH_SAM_APDU [03:34:50]CAPDU: 80 13 01 00 [03:34:50]Write to MH i2c: E2 08 00 C0 06 80 13 01 00 00 00 00 00 43 [03:34:50]Write i2c OK [03:34:50]MH_I2C_Read... [03:34:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:34:50]Read from MH i2c: E2 [03:34:50]MH_I2C_Read... [03:34:50]Read from MH i2c: E2 0E 00 [03:34:50]MH_I2C_Read... [03:34:50]Read from MH i2c: E2 0E 00 C0 06 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 C9 [03:34:50]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [03:34:50]wFMCommunicate OK [03:34:50]SAM_PROTO_GetShiftState done [03:34:50]FM_GetShiftState done [03:34:50]req_shift_opened done [03:34:50]requested_item shift.open_date is exist - process it [03:34:50]req_shift_open_date [03:34:50]req_shift_open_date done [03:34:50]produce_requested_data done [03:34:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67601,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [03:34:50]process_action_free print_text [03:34:50]json_value_free [03:34:50]json_value_free done [03:34:50]process_json_proto returns [03:34:50]Send response to host [03:34:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67601,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [03:34:50]free response buf [03:34:50]execute_script done [03:34:50]execute_script returns [03:34:50]free content buf [03:34:50]Sock 10.Close socket [03:34:50]Sock 10.Thread stoped [03:34:55]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:56]OFD Sender: No OFD packet to send [03:46:01]OFD Sender: No OFD packet to send [03:46:06]OFD Sender: No OFD packet to send [03:46:11]OFD Sender: No OFD packet to send [03:46:16]OFD Sender: No OFD packet to send [03:46:21]OFD Sender: No OFD packet to send [03:46:26]OFD Sender: No OFD packet to send [03:46:31]OFD Sender: No OFD packet to send [03:46:36]OFD Sender: No OFD packet to send [03:46:41]OFD Sender: No OFD packet to send [03:46:46]OFD Sender: No OFD packet to send [03:46:51]OFD Sender: No OFD packet to send [03:46:56]OFD Sender: No OFD packet to send [03:47:01]OFD Sender: No OFD packet to send [03:47:06]OFD Sender: No OFD packet to send [03:47:11]OFD Sender: No OFD packet to send [03:47:16]OFD Sender: No OFD packet to send [03:47:21]OFD Sender: No OFD packet to send [03:47:26]OFD Sender: No OFD packet to send [03:47:31]OFD Sender: No OFD packet to send [03:47:36]OFD Sender: No OFD packet to send [03:47:41]OFD Sender: No OFD packet to send [03:47:46]OFD Sender: No OFD packet to send [03:47:51]OFD Sender: No OFD packet to send [03:47:56]OFD Sender: No OFD packet to send [03:48:01]OFD Sender: No OFD packet to send [03:48:06]OFD Sender: No OFD packet to send [03:48:11]OFD Sender: No OFD packet to send [03:48:16]OFD Sender: No OFD packet to send [03:48:21]OFD Sender: No OFD packet to send [03:48:26]OFD Sender: No OFD packet to send [03:48:31]OFD Sender: No OFD packet to send [03:48:36]OFD Sender: No OFD packet to send [03:48:41]OFD Sender: No OFD packet to send [03:48:46]OFD Sender: No OFD packet to send [03:48:51]OFD Sender: No OFD packet to send [03:48:56]OFD Sender: No OFD packet to send [03:49:01]OFD Sender: No OFD packet to send [03:49:06]OFD Sender: No OFD packet to send [03:49:11]OFD Sender: No OFD packet to send [03:49:16]OFD Sender: No OFD packet to send [03:49:21]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49:51]OFD Sender: No OFD packet to send [03:49:56]OFD Sender: No OFD packet to send [03:50:01]OFD Sender: No OFD packet to send [03:50:06]OFD Sender: No OFD packet to send [03:50:11]OFD Sender: No OFD packet to send [03:50:16]OFD Sender: No OFD packet to send [03:50:21]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:50:31]OFD Sender: No OFD packet to send [03:50:36]OFD Sender: No OFD packet to send [03:50:41]OFD Sender: No OFD packet to send [03:50:46]OFD Sender: No OFD packet to send [03:50:51]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]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:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:12]OFD Sender: No OFD packet to send [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06:42]OFD Sender: No OFD packet to send [04:06:47]OFD Sender: No OFD packet to send [04:06:52]OFD Sender: No OFD packet to send [04:06:57]OFD Sender: No OFD packet to send [04:07:02]OFD Sender: No OFD packet to send [04:07:07]OFD Sender: No OFD packet to send [04:07:12]OFD Sender: No OFD packet to send [04:07:17]OFD Sender: No OFD packet to send [04:07:22]OFD Sender: No OFD packet to send [04:07:27]OFD Sender: No OFD packet to send [04:07:32]OFD Sender: No OFD packet to send [04:07:37]OFD Sender: No OFD packet to send [04:07:42]OFD Sender: No OFD packet to send [04:07:47]OFD Sender: No OFD packet to send [04:07:52]OFD Sender: No OFD packet to send [04:07:57]OFD Sender: No OFD packet to send [04:08:02]OFD Sender: No OFD packet to send [04:08:07]OFD Sender: No OFD packet to send [04:08:12]OFD Sender: No OFD packet to send [04:08:17]OFD Sender: No OFD packet to send [04:08:22]OFD Sender: No OFD packet to send [04:08:27]OFD Sender: No OFD packet to send [04:08:32]OFD Sender: No OFD packet to send [04:08:37]OFD Sender: No OFD packet to send [04:08:42]OFD Sender: No OFD packet to send [04:08:47]OFD Sender: No OFD packet to send [04:08:52]OFD Sender: No OFD packet to send [04:08:57]OFD Sender: No OFD packet to send [04:09:02]OFD Sender: No OFD packet to send [04:09:07]OFD Sender: No OFD packet to send [04:09:12]OFD Sender: No OFD packet to send [04:09:17]OFD Sender: No OFD packet to send [04:09:22]OFD Sender: No OFD packet to send [04:09:27]OFD Sender: No OFD packet to send [04:09:32]OFD Sender: No OFD packet to send [04:09:37]OFD Sender: No OFD packet to send [04:09:42]OFD Sender: No OFD packet to send [04:09:47]OFD Sender: No OFD packet to send [04:09:52]OFD Sender: No OFD packet to send [04:09:57]OFD Sender: No OFD packet to send [04:10:02]OFD Sender: No OFD packet to send [04:10:07]OFD Sender: No OFD packet to send [04:10:12]OFD Sender: No OFD packet to send [04:10:17]OFD Sender: No OFD packet to send [04:10:22]OFD Sender: No OFD packet to send [04:10:27]OFD Sender: No OFD packet to send [04:10:32]OFD Sender: No OFD packet to send [04:10:37]OFD Sender: No OFD packet to send [04:10:42]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:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]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:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:33]OFD Sender: No OFD packet to send [04:40:38]OFD Sender: No OFD packet to send [04:40:43]OFD Sender: No OFD packet to send [04:40:48]OFD Sender: No OFD packet to send [04:40:53]OFD Sender: No OFD packet to send [04:40:58]OFD Sender: No OFD packet to send [04:41:03]OFD Sender: No OFD packet to send [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42: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:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54: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:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:39]accept exits with 7 [05:07:39]New connection [05:07:39]New thread 3067538788 created [05:07:39]Thread 3067395428 joined [05:07:39]Waiting for new connection... [05:07:39] Sock 7.Parse request [05:07:39]Sock 7.Check first char [05:07:39]Sock 7.First char is OK [05:07:39]request: POST /json_proto HTTP/1.0 [05:07:39]Method: POST [05:07:39]URL: /json_proto [05:07:39]Method is POST - this is cgi request [05:07:39]url: /json_proto [05:07:39]query_string will be loaded in cgi processing [05:07:39]execute_cgi json_proto POST (null) [05:07:39]execute_cgi path=json_proto method=POST [05:07:39]POST find Content-Length [05:07:39]Host: 172.17.41.195:8080 [05:07:39]Content-Length: 803 [05:07:39]Content-Type: application/json [05:07:39] [05:07:39]POST finish read [05:07:39]Found Content-Length = 803 [05:07:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 29.950, "sum" : 2000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: 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" ] } } [05:07:39]execute_script... [05:07: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)507685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 29.950, "sum" : 2000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: 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" ] } } [05:07:39]POST & json_proto [05:07:39]process_json_proto [05:07:39]json parsed OK: [05:07:39]protocol is kg_v1.0 [05:07:39]action value=close_receipt [05:07:39]process_action close_receipt [05:07:39]cmd_close_receipt [05:07:39]MH_GetDate [05:07:39]Write to MH i2c: F0 00 00 C1 06 B6 [05:07:39]Write i2c OK [05:07:39]MH_I2C_Read... [05:07:39]Read from MH i2c: F0 [05:07:39]MH_I2C_Read... [05:07:39]Read from MH i2c: F0 09 00 [05:07:39]MH_I2C_Read... [05:07:39]Read from MH i2c: F0 09 00 C1 06 00 1C E6 46 66 FC 21 6F 64 5D [05:07:39]GetLastDocTimeStamp 1715915077 [05:07:39]current date 1715922460 [05:07:39]FM_GetShiftState [05:07:39]SAM_PROTO_GetShiftState [05:07:39]wFMCommunicate request_size=4 [05:07:39]MH_SAM_APDU [05:07:39]CAPDU: 80 13 01 00 [05:07:39]Write to MH i2c: E2 08 00 C2 06 80 13 01 00 00 00 00 00 45 [05:07:39]Write i2c OK [05:07:39]MH_I2C_Read... [05:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:07:39]Read from MH i2c: E2 [05:07:39]MH_I2C_Read... [05:07:39]Read from MH i2c: E2 0E 00 [05:07:39]MH_I2C_Read... [05:07:39]Read from MH i2c: E2 0E 00 C2 06 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CB [05:07:39]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [05:07:39]wFMCommunicate OK [05:07:39]SAM_PROTO_GetShiftState done [05:07:39]FM_GetShiftState done [05:07:39]opened in 1715905068 [05:07:39]opened+sec_in_day 1715991468 [05:07:39]quantity*price = 200066 [05:07:39]sum+1 = 200067 [05:07:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.66 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 0.00 Безнал.: 2000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 11 17.05.2024 05:07 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67602 ФПД: 52551772365879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T050740&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67602&fm=52551772365879&tin=02508201610067®Number=0000000000091845&sum=200066 [05:07:40]StoreToDocumentArchive [05:07:40]shift 358 fd 67602 [05:07:40]save to /storage/0358/doc_00067602 [05:07:40]save last doc name /storage/0358/doc_00067602 to /storage/kkm_last_doc_name [05:07:40]save OK [05:07:40]Clear old archive folders... [05:07:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:07:40]tlvbuf is 015CA090 [05:07:40]SAM_PROTO_ClearQueue [05:07:40]wFMCommunicate request_size=4 [05:07:40]MH_SAM_APDU [05:07:40]CAPDU: 80 09 00 00 [05:07:40]Write to MH i2c: E2 08 00 CF 06 80 09 00 00 00 00 00 00 47 [05:07:40]Write i2c OK [05:07:40]MH_I2C_Read... [05:07:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:07:40]Read from MH i2c: E2 [05:07:40]MH_I2C_Read... [05:07:40]Read from MH i2c: E2 03 00 [05:07:40]MH_I2C_Read... [05:07:40]Read from MH i2c: E2 03 00 CF 06 00 90 00 49 [05:07:40]RAPDU: 90 00 [05:07:40]wFMCommunicate OK [05:07:40]SAM_PROTO_ClearQueue done [05:07:40]KKMCreateOFDPacket [05:07:40]OFDProtocolAddRootSTLVToBuf [05:07:40]FM_MakeSignedData [05:07:40]FM_MakeSignedData [05:07:40]SAM_PROTO_SignData [05:07:40]wFMCommunicate request_size=4 [05:07:40]MH_SAM_APDU [05:07:40]CAPDU: 80 0D 01 02 [05:07:40]Write to MH i2c: E2 08 00 D0 06 80 0D 01 02 00 00 00 00 4F [05:07:40]Write i2c OK [05:07:40]MH_I2C_Read... [05:07:40]OFD Sender: No OFD packet to send [05:07:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:07:40]Read from MH i2c: E2 [05:07:40]MH_I2C_Read... [05:07:40]Read from MH i2c: E2 03 00 [05:07:40]MH_I2C_Read... [05:07:40]Read from MH i2c: E2 03 00 D0 06 00 90 00 4A [05:07:40]RAPDU: 90 00 [05:07:40]wFMCommunicate OK [05:07:40]wFMCommunicate request_size=255 [05:07:40]MH_SAM_APDU [05:07: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 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 0B 00 00 00 F4 03 04 00 1C E6 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 2F [05:07:40]Write to MH i2c: E2 02 01 D1 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 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 0B 00 00 00 F4 03 04 00 1C E6 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 2F 00 00 62 [05:07:40]Write i2c OK [05:07:40]MH_I2C_Read... [05:07:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:07:40]Read from MH i2c: E2 [05:07:40]MH_I2C_Read... [05:07:40]Read from MH i2c: E2 03 00 [05:07:40]MH_I2C_Read... [05:07:40]Read from MH i2c: E2 03 00 D1 06 00 90 00 4B [05:07:40]RAPDU: 90 00 [05:07:40]wFMCommunicate OK [05:07:40]wFMCommunicate request_size=10 [05:07:40]MH_SAM_APDU [05:07:40]CAPDU: 80 0D 02 02 05 CB A9 B9 64 37 [05:07:40]Write to MH i2c: E2 0D 00 D2 06 80 0D 02 02 05 00 CB A9 B9 64 37 00 00 24 [05:07:40]Write i2c OK [05:07:40]MH_I2C_Read... [05:07:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:07:40]Read from MH i2c: E2 [05:07:40]MH_I2C_Read... [05:07:40]Read from MH i2c: E2 03 00 [05:07:40]MH_I2C_Read... [05:07:40]Read from MH i2c: E2 03 00 D2 06 00 90 00 4C [05:07:40]RAPDU: 90 00 [05:07:40]wFMCommunicate OK [05:07:40]wFMCommunicate request_size=4 [05:07:40]MH_SAM_APDU [05:07:40]CAPDU: 80 0D 03 02 [05:07:40]Write to MH i2c: E2 08 00 D3 06 80 0D 03 02 00 00 00 00 54 [05:07:40]Write i2c OK [05:07:40]MH_I2C_Read... [05:07:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:07:40]Read from MH i2c: E2 [05:07:40]MH_I2C_Read... [05:07:40]Read from MH i2c: E2 0B 00 [05:07:40]MH_I2C_Read... [05:07:40]Read from MH i2c: E2 0B 00 D3 06 00 03 6F BD 3C 5A B4 41 80 90 00 8F [05:07:40]RAPDU: 03 6F BD 3C 5A B4 41 80 90 00 [05:07:40]wFMCommunicate OK [05:07:40]SAM_PROTO_SignData done [05:07:40]FM_MakeSignedData done [05:07:40]CreateOFDProtocolMessage [05:07:40]wFMCommunicate request_size=4 [05:07:40]MH_SAM_APDU [05:07:40]CAPDU: 80 11 00 00 [05:07:40]Write to MH i2c: E2 08 00 D4 06 80 11 00 00 00 00 00 00 54 [05:07:40]Write i2c OK [05:07:40]MH_I2C_Read... [05:07:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:07:40]Read from MH i2c: E2 [05:07:40]MH_I2C_Read... [05:07:40]Read from MH i2c: E2 17 00 [05:07:40]MH_I2C_Read... [05:07:40]Read from MH i2c: E2 17 00 D4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AA [05:07:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [05:07:40]wFMCommunicate OK [05:07:40]CreateOFDProtocolMessage done [05:07:40]OFDSenderStorePacket 67602 [05:07:40]StoreOFDPacket docnum=67602 [05:07: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 A3 23 07 01 2F 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 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 0B 00 00 00 F4 03 04 00 1C E6 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 2F CB A9 B9 64 37 03 6F BD 3C 5A B4 41 80 [05:07:40]CheckFolder [05:07:40]dirname=/storage/ofd_packets [05:07:40]CheckFolder done [05:07:40]ProducePacketName [05:07:40]name=ofd_packets/00067602 [05:07:40]NVStorageSaveData ofd_packets/00067602 [05:07:40]File name is /storage/ofd_packets/00067602 [05:07:40]Write 301 bytes [05:07:40]NVStorageSaveData done [05:07:40]OFDSenderStorePacket done [05:07:40]KKMCreateOFDPacket done [05:07:40]NVStorageSaveData kkm_last_timestamp [05:07:40]File name is /storage/kkm_last_timestamp [05:07:40]Write 4 bytes [05:07:40]NVStorageSaveData done [05:07:40]ExternCall_PrintAddStr [05:07:40]wPrintStart [05:07:40]Write to MH i2c: 01 00 00 D5 06 DB [05:07:40]Write i2c OK [05:07:40]MH_I2C_Read... [05:07:40]Read from MH i2c: 01 [05:07:40]MH_I2C_Read... [05:07:40]Read from MH i2c: 01 07 00 [05:07:40]MH_I2C_Read... [05:07:40]Read from MH i2c: 01 07 00 D5 06 00 00 00 00 00 FF 0F F0 [05:07:40]RasterBufferAndPrint [05:07:40]line Счет N : (1)507685 [05:07:40]line ИНН: 02508201610067 [05:07:40]line Контрольно-Кассовый Чек [05:07:40]line ПРОДАЖА [05:07:40]line ТРК (МРК, ГНК) : 23 [05:07:40]line Товар: 2710124130 [05:07:40]line Аи-92-К-5 [05:07:40]line 29.950 * 66.80 [05:07:40]line = 2000.66 [05:07:40]line НДС 12% НСП 1% [05:07:40]line > о реализуемом товаре [05:07:40]line ИТОГО: 2000.66 [05:07:40]line НСП 1% : 17.70 [05:07:40]line НДС 12% : 212.46 [05:07:40]line Наличными: 0.00 [05:07:40]line Безнал.: 2000.66 [05:07:40]line Место: АЗС № 91 "Партнер Нефть" [05:07:40]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [05:07:40]line СНО: Общий режим [05:07:40]line Чек 11 17.05.2024 05:07 [05:07:40]line Смена: 358 ФФД: 1.0 [05:07:40]line ЗНМ: 0300000119 [05:07:40]line РНМ: 0000000000091845 [05:07:40]line Версия ККМ: 001 [05:07:40]line Платежная система: O! деньги [05:07:40]line ФМ: 0000000000871829 [05:07:40]line ФД: 67602 [05:07:40]line ФПД: 52551772365879 [05:07:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T050740&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67602&fm=52551772365879&tin=02508201610067®Number=0000000000091845&sum=200066 [05:07:41]OFD Sender: Processing packet 67602 [packets to send 35, broken 34] [05:07:41]ProducePacketName [05:07:41]name=ofd_packets/00067602 [05:07:41]OFD Sender: To server: pG, [05:07:41]CommunicateWithHost lk.salyk.kg:30040 [05:07:41]ConnectInit lk.salyk.kg [05:07:41]written 0, free lines is 4095 [05:07:41]Connected sock=10 [05:07: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 A3 23 07 01 2F 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 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 0B 00 00 00 F4 03 04 00 1C E6 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 2F CB A9 B9 64 37 03 6F BD 3C 5A B4 41 80 [05:07: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 7C E8 47 00 01 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 F5 8D 46 66 B6 04 01 00 00 CB 7C 26 9B 7E 1A F3 AB [05:07:41]CommunicateWithHost err = 0 [05:07:41]CheckOFDResponse [05:07:41]1017 (14) - 77093643461234 [05:07:41]1041 (16) - 0000000000871829 [05:07:41]1040 (4) - 67602 [05:07:41]1012 (4) - 16.05.2024 22:51 [05:07:41]1206 (1) - 0 [05:07:41]OFD Sender: Remove packet 67602 [05:07:41]ProducePacketName [05:07:41]name=ofd_packets/00067602 [05:07:41]NVStorageDeleteData [05:07:41]Write to MH i2c: 01 00 00 FE 06 04 [05:07:41]Write i2c OK [05:07:41]MH_I2C_Read... [05:07:41]Read from MH i2c: 01 [05:07:41]MH_I2C_Read... [05:07:41]Read from MH i2c: 01 07 00 [05:07:41]MH_I2C_Read... [05:07:41]Read from MH i2c: 01 07 00 FE 06 00 00 00 00 00 D8 0C EF [05:07:41]RasterBufferAndPrint [05:07:41]line [05:07:41]line [05:07:41]line [05:07:41]line [05:07:41]line [05:07:41]written 0, free lines is 3295 [05:07:41]MH_Cut [05:07:41]Write to MH i2c: D1 01 00 05 07 01 DE [05:07:41]Write i2c OK [05:07:41]MH_I2C_Read... [05:07:41]Read from MH i2c: D1 [05:07:41]MH_I2C_Read... [05:07:41]Read from MH i2c: D1 01 00 [05:07:41]MH_I2C_Read... [05:07:41]Read from MH i2c: D1 01 00 05 07 00 DD [05:07:41]Write to MH i2c: 01 00 00 06 07 0D [05:07:41]Write i2c OK [05:07:41]MH_I2C_Read... [05:07:41]OFD Sender: No OFD packet to send [05:07:42]*** Cut start [05:07:42]*** Purtial cut [05:07:42]*** Stage 1: CUTSNS_PIN = 1 [05:07:42]Read from MH i2c: 01 [05:07:42]MH_I2C_Read... [05:07:42]*** Stop cut motor [05:07:42]*** Cut end [05:07:42]Read from MH i2c: 01 07 00 [05:07:42]MH_I2C_Read... [05:07:42]Read from MH i2c: 01 07 00 06 07 00 00 00 00 00 FF 0F 22 [05:07:42]process_action close_receipt done [05:07:42]requested_data is exist [05:07:42]produce_requested_data [05:07:42]requested_item fm.sn is exist - process it [05:07:42]wFMCommunicate request_size=4 [05:07:42]MH_SAM_APDU [05:07:42]CAPDU: 80 11 00 00 [05:07:42]Write to MH i2c: E2 08 00 07 07 80 11 00 00 00 00 00 00 88 [05:07:42]Write i2c OK [05:07:42]MH_I2C_Read... [05:07:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:07:42]Read from MH i2c: E2 [05:07:42]MH_I2C_Read... [05:07:42]Read from MH i2c: E2 17 00 [05:07:42]MH_I2C_Read... [05:07:42]Read from MH i2c: E2 17 00 07 07 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:07:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [05:07:42]wFMCommunicate OK [05:07:42]requested_item fd.num is exist - process it [05:07:42]SAM_PROTO_GetFieldsCounters [05:07:42]wFMCommunicate request_size=4 [05:07:42]MH_SAM_APDU [05:07:42]CAPDU: 80 13 00 00 [05:07:42]Write to MH i2c: E2 08 00 08 07 80 13 00 00 00 00 00 00 8B [05:07:42]Write i2c OK [05:07:42]MH_I2C_Read... [05:07:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:07:42]Read from MH i2c: E2 [05:07:42]MH_I2C_Read... [05:07:42]Read from MH i2c: E2 62 00 [05:07:42]MH_I2C_Read... [05:07:42]Read from MH i2c: E2 62 00 08 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 12 08 01 00 0E 04 04 00 66 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 54 [05:07: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 12 08 01 00 0E 04 04 00 66 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 [05:07:42]wFMCommunicate OK [05:07:42]SAM_PROTO_GetFieldsCounters done [05:07:42]requested_item shift.num is exist - process it [05:07:42]requested_item shift.opened is exist - process it [05:07:42]req_shift_opened [05:07:42]FM_GetShiftState [05:07:42]SAM_PROTO_GetShiftState [05:07:42]wFMCommunicate request_size=4 [05:07:42]MH_SAM_APDU [05:07:42]CAPDU: 80 13 01 00 [05:07:42]Write to MH i2c: E2 08 00 09 07 80 13 01 00 00 00 00 00 8D [05:07:42]Write i2c OK [05:07:42]MH_I2C_Read... [05:07:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:07:42]Read from MH i2c: E2 [05:07:42]MH_I2C_Read... [05:07:42]Read from MH i2c: E2 0E 00 [05:07:42]MH_I2C_Read... [05:07:42]Read from MH i2c: E2 0E 00 09 07 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 13 [05:07:42]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [05:07:42]wFMCommunicate OK [05:07:42]SAM_PROTO_GetShiftState done [05:07:42]FM_GetShiftState done [05:07:42]req_shift_opened done [05:07:42]requested_item shift.open_date is exist - process it [05:07:42]req_shift_open_date [05:07:42]req_shift_open_date done [05:07:42]produce_requested_data done [05:07:42]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67602,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [05:07:42]process_action_free close_receipt [05:07:42]json_value_free [05:07:42]json_value_free done [05:07:42]process_json_proto returns [05:07:42]Send response to host [05:07:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67602,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [05:07:42]free response buf [05:07:42]execute_script done [05:07:42]execute_script returns [05:07:42]free content buf [05:07:42]Sock 7.Close socket [05:07:42]Sock 7.Thread stoped [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:47]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:06]accept exits with 9 [05:13:06]New connection [05:13:06]New thread 3067395428 created [05:13:06]Thread 3067538788 joined [05:13:06]Waiting for new connection... [05:13:06] Sock 9.Parse request [05:13:06]Sock 9.Check first char [05:13:06]Sock 9.First char is OK [05:13:06]request: POST /json_proto HTTP/1.0 [05:13:06]Method: POST [05:13:06]URL: /json_proto [05:13:06]Method is POST - this is cgi request [05:13:06]url: /json_proto [05:13:06]query_string will be loaded in cgi processing [05:13:06]execute_cgi json_proto POST (null) [05:13:06]execute_cgi path=json_proto method=POST [05:13:06]POST find Content-Length [05:13:06]Host: 172.17.41.195:8080 [05:13:06]Content-Length: 1179 [05:13:06]Content-Type: application/json [05:13:06] [05:13:06]POST finish read [05:13:06]Found Content-Length = 1179 [05:13: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507686\u000A17.05.2024 04: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 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" ] } } [05:13:06]execute_script... [05:13: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507686\u000A17.05.2024 04: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 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" ] } } [05:13:06]POST & json_proto [05:13:06]process_json_proto [05:13:06]json parsed OK: [05:13:06]protocol is kg_v1.0 [05:13:06]action value=print_text [05:13:06]process_action print_text [05:13:06]cmd_print_text [05:13:06]ExternCall_PrintAddStr [05:13:06]wPrintStart [05:13:06]Write to MH i2c: 01 00 00 0A 07 11 [05:13:06]Write i2c OK [05:13:06]MH_I2C_Read... [05:13:06]Read from MH i2c: 01 [05:13:06]MH_I2C_Read... [05:13:06]Read from MH i2c: 01 07 00 [05:13:06]MH_I2C_Read... [05:13:06]Read from MH i2c: 01 07 00 0A 07 00 00 00 00 00 FF 0F 26 [05:13:06]RasterBufferAndPrint [05:13:06]line *****ТОВАРНЫЙ ЧЕК***** [05:13:06]line АЗС-91 [05:13:06]line Партнер нефть [05:13:06]line 02508201610067 [05:13:06]line Кассир : Адишов И. [05:13:06]line Счет N : (1)507686 [05:13:06]line 17.05.2024 04:55 [05:13:06]line ПРОДАЖА [05:13:06]line ТРК (МРК, ГНК): 31 [05:13:06]line Вид ГСМ : 2710194210 [05:13:06]line ДТ-К-5 [05:13:06]line 15.000 x 74.70 [05:13:06]line ИТОГ: 1120.50 [05:13:06]line Тип оплаты: Талоны: Топливная Карта [05:13:06]line 02750 [05:13:06]line ______________________ [05:13:06]line (подпись) [05:13:06]written 0, free lines is 4095 [05:13:06]Write to MH i2c: 01 00 00 1E 07 25 [05:13:06]Write i2c OK [05:13:06]MH_I2C_Read... [05:13:06]Read from MH i2c: 01 [05:13:06]MH_I2C_Read... [05:13:06]Read from MH i2c: 01 07 00 [05:13:06]MH_I2C_Read... [05:13:06]Read from MH i2c: 01 07 00 1E 07 00 00 00 00 00 0C 0E 46 [05:13:06]RasterBufferAndPrint [05:13:06]line [05:13:06]line [05:13:06]line [05:13:06]line [05:13:06]line [05:13:06]written 0, free lines is 3597 [05:13:06]MH_Cut [05:13:06]Write to MH i2c: D1 01 00 25 07 01 FE [05:13:06]Write i2c OK [05:13:06]MH_I2C_Read... [05:13:06]Read from MH i2c: D1 [05:13:06]MH_I2C_Read... [05:13:06]Read from MH i2c: D1 01 00 [05:13:06]MH_I2C_Read... [05:13:06]Read from MH i2c: D1 01 00 25 07 00 FD [05:13:06]Write to MH i2c: 01 00 00 26 07 2D [05:13:06]Write i2c OK [05:13:06]MH_I2C_Read... [05:13:06]*** Cut start [05:13:06]*** Purtial cut [05:13:06]*** CUTSNS_PIN = 0 [05:13:07]*** Stage 1: CUTSNS_PIN = 1 [05:13:07]OFD Sender: No OFD packet to send [05:13:08]Read from MH i2c: 01 [05:13:08]MH_I2C_Read... [05:13:08]*** Stop cut motor [05:13:08]*** Cut end [05:13:08]Read from MH i2c: 01 07 00 [05:13:08]MH_I2C_Read... [05:13:08]Read from MH i2c: 01 07 00 26 07 00 00 00 00 00 FF 0F 42 [05:13:08]process_action print_text done [05:13:08]requested_data is exist [05:13:08]produce_requested_data [05:13:08]requested_item fm.sn is exist - process it [05:13:08]wFMCommunicate request_size=4 [05:13:08]MH_SAM_APDU [05:13:08]CAPDU: 80 11 00 00 [05:13:08]Write to MH i2c: E2 08 00 27 07 80 11 00 00 00 00 00 00 A8 [05:13:08]Write i2c OK [05:13:08]MH_I2C_Read... [05:13:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:13:08]Read from MH i2c: E2 [05:13:08]MH_I2C_Read... [05:13:08]Read from MH i2c: E2 17 00 [05:13:08]MH_I2C_Read... [05:13:08]Read from MH i2c: E2 17 00 27 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FE [05:13:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [05:13:08]wFMCommunicate OK [05:13:08]requested_item fd.num is exist - process it [05:13:08]SAM_PROTO_GetFieldsCounters [05:13:08]wFMCommunicate request_size=4 [05:13:08]MH_SAM_APDU [05:13:08]CAPDU: 80 13 00 00 [05:13:08]Write to MH i2c: E2 08 00 28 07 80 13 00 00 00 00 00 00 AB [05:13:08]Write i2c OK [05:13:08]MH_I2C_Read... [05:13:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:13:08]Read from MH i2c: E2 [05:13:08]MH_I2C_Read... [05:13:08]Read from MH i2c: E2 62 00 [05:13:08]MH_I2C_Read... [05:13:08]Read from MH i2c: E2 62 00 28 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 12 08 01 00 0E 04 04 00 66 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 74 [05:13: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 12 08 01 00 0E 04 04 00 66 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 [05:13:08]wFMCommunicate OK [05:13:08]SAM_PROTO_GetFieldsCounters done [05:13:08]requested_item shift.num is exist - process it [05:13:08]requested_item shift.opened is exist - process it [05:13:08]req_shift_opened [05:13:08]FM_GetShiftState [05:13:08]SAM_PROTO_GetShiftState [05:13:08]wFMCommunicate request_size=4 [05:13:08]MH_SAM_APDU [05:13:08]CAPDU: 80 13 01 00 [05:13:08]Write to MH i2c: E2 08 00 29 07 80 13 01 00 00 00 00 00 AD [05:13:08]Write i2c OK [05:13:08]MH_I2C_Read... [05:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:13:09]Read from MH i2c: E2 [05:13:09]MH_I2C_Read... [05:13:09]Read from MH i2c: E2 0E 00 [05:13:09]MH_I2C_Read... [05:13:09]Read from MH i2c: E2 0E 00 29 07 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 33 [05:13:09]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [05:13:09]wFMCommunicate OK [05:13:09]SAM_PROTO_GetShiftState done [05:13:09]FM_GetShiftState done [05:13:09]req_shift_opened done [05:13:09]requested_item shift.open_date is exist - process it [05:13:09]req_shift_open_date [05:13:09]req_shift_open_date done [05:13:09]produce_requested_data done [05:13:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67602,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [05:13:09]process_action_free print_text [05:13:09]json_value_free [05:13:09]json_value_free done [05:13:09]process_json_proto returns [05:13:09]Send response to host [05:13:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67602,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [05:13:09]free response buf [05:13:09]execute_script done [05:13:09]execute_script returns [05:13:09]free content buf [05:13:09]Sock 9.Close socket [05:13:09]Sock 9.Thread stoped [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:36]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:41]OFD Sender: No OFD packet to send [06:34:46]OFD Sender: No OFD packet to send [06:34:51]OFD Sender: No OFD packet to send [06:34:56]OFD Sender: No OFD packet to send [06:35:01]OFD Sender: No OFD packet to send [06:35:06]OFD Sender: No OFD packet to send [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:19]accept exits with 7 [06:38:19]New connection [06:38:19]New thread 3067538788 created [06:38:19]Thread 3067395428 joined [06:38:19]Waiting for new connection... [06:38:19] Sock 7.Parse request [06:38:19]Sock 7.Check first char [06:38:19]Sock 7.First char is OK [06:38:19]request: POST /json_proto HTTP/1.0 [06:38:19]Method: POST [06:38:19]URL: /json_proto [06:38:19]Method is POST - this is cgi request [06:38:19]url: /json_proto [06:38:19]query_string will be loaded in cgi processing [06:38:19]execute_cgi json_proto POST (null) [06:38:19]execute_cgi path=json_proto method=POST [06:38:19]POST find Content-Length [06:38:19]Host: 172.17.41.195:8080 [06:38:19]Content-Length: 801 [06:38:19]Content-Type: application/json [06:38:19] [06:38:19]POST finish read [06:38:19]Found Content-Length = 801 [06:38:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507687", "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" ] } } [06:38:19]execute_script... [06:38: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)507687", "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" ] } } [06:38:19]POST & json_proto [06:38:19]process_json_proto [06:38:19]json parsed OK: [06:38:19]protocol is kg_v1.0 [06:38:19]action value=close_receipt [06:38:19]process_action close_receipt [06:38:19]cmd_close_receipt [06:38:19]MH_GetDate [06:38:19]Write to MH i2c: F0 00 00 2A 07 20 [06:38:19]Write i2c OK [06:38:19]MH_I2C_Read... [06:38:19]Read from MH i2c: F0 [06:38:19]MH_I2C_Read... [06:38:19]Read from MH i2c: F0 09 00 [06:38:19]MH_I2C_Read... [06:38:19]Read from MH i2c: F0 09 00 2A 07 00 5D FB 46 66 FC 21 6F 64 1D [06:38:19]GetLastDocTimeStamp 1715922460 [06:38:19]current date 1715927901 [06:38:19]FM_GetShiftState [06:38:19]SAM_PROTO_GetShiftState [06:38:19]wFMCommunicate request_size=4 [06:38:19]MH_SAM_APDU [06:38:19]CAPDU: 80 13 01 00 [06:38:19]Write to MH i2c: E2 08 00 2B 07 80 13 01 00 00 00 00 00 AF [06:38:19]Write i2c OK [06:38:19]MH_I2C_Read... [06:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:19]Read from MH i2c: E2 [06:38:19]MH_I2C_Read... [06:38:19]Read from MH i2c: E2 0E 00 [06:38:19]MH_I2C_Read... [06:38:19]Read from MH i2c: E2 0E 00 2B 07 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 35 [06:38:19]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [06:38:19]wFMCommunicate OK [06:38:19]SAM_PROTO_GetShiftState done [06:38:19]FM_GetShiftState done [06:38:19]opened in 1715905068 [06:38:19]opened+sec_in_day 1715991468 [06:38:19]quantity*price = 80026 [06:38:19]sum+1 = 80027 [06:38:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.26 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 0.00 Безнал.: 800.26 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 12 17.05.2024 06:38 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67603 ФПД: 48852039458794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T063821&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67603&fm=48852039458794&tin=02508201610067®Number=0000000000091845&sum=80026 [06:38:20]StoreToDocumentArchive [06:38:20]shift 358 fd 67603 [06:38:20]save to /storage/0358/doc_00067603 [06:38:20]save last doc name /storage/0358/doc_00067603 to /storage/kkm_last_doc_name [06:38:20]save OK [06:38:20]Clear old archive folders... [06:38:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:38:20]tlvbuf is B6FE7330 [06:38:20]SAM_PROTO_ClearQueue [06:38:20]wFMCommunicate request_size=4 [06:38:20]MH_SAM_APDU [06:38:20]CAPDU: 80 09 00 00 [06:38:20]Write to MH i2c: E2 08 00 38 07 80 09 00 00 00 00 00 00 B1 [06:38:20]Write i2c OK [06:38:20]MH_I2C_Read... [06:38:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:38:20]Read from MH i2c: E2 [06:38:20]MH_I2C_Read... [06:38:20]Read from MH i2c: E2 03 00 [06:38:20]MH_I2C_Read... [06:38:20]Read from MH i2c: E2 03 00 38 07 00 90 00 B3 [06:38:20]RAPDU: 90 00 [06:38:20]wFMCommunicate OK [06:38:20]SAM_PROTO_ClearQueue done [06:38:20]KKMCreateOFDPacket [06:38:20]OFDProtocolAddRootSTLVToBuf [06:38:20]FM_MakeSignedData [06:38:20]FM_MakeSignedData [06:38:20]SAM_PROTO_SignData [06:38:20]wFMCommunicate request_size=4 [06:38:20]MH_SAM_APDU [06:38:20]CAPDU: 80 0D 01 02 [06:38:20]Write to MH i2c: E2 08 00 39 07 80 0D 01 02 00 00 00 00 B9 [06:38:20]Write i2c OK [06:38:20]MH_I2C_Read... [06:38:20]Read from MH i2c: E2 [06:38:20]MH_I2C_Read... [06:38:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:38:20]Read from MH i2c: E2 03 00 [06:38:20]MH_I2C_Read... [06:38:20]Read from MH i2c: E2 03 00 39 07 00 90 00 B4 [06:38:20]RAPDU: 90 00 [06:38:20]wFMCommunicate OK [06:38:20]wFMCommunicate request_size=255 [06:38:20]MH_SAM_APDU [06:38:20]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 0C 00 00 00 F4 03 04 00 5D FB 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 2C [06:38:20]Write to MH i2c: E2 02 01 3A 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0C 00 00 00 F4 03 04 00 5D FB 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 2C 00 00 45 [06:38:20]Write i2c OK [06:38:20]MH_I2C_Read... [06:38:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:20]Read from MH i2c: E2 [06:38:20]MH_I2C_Read... [06:38:20]Read from MH i2c: E2 03 00 [06:38:20]MH_I2C_Read... [06:38:20]Read from MH i2c: E2 03 00 3A 07 00 90 00 B5 [06:38:20]RAPDU: 90 00 [06:38:20]wFMCommunicate OK [06:38:20]wFMCommunicate request_size=10 [06:38:20]MH_SAM_APDU [06:38:20]CAPDU: 80 0D 02 02 05 6E 40 75 5F EA [06:38:20]Write to MH i2c: E2 0D 00 3B 07 80 0D 02 02 05 00 6E 40 75 5F EA 00 00 32 [06:38:20]Write i2c OK [06:38:20]MH_I2C_Read... [06:38:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:20]Read from MH i2c: E2 [06:38:20]MH_I2C_Read... [06:38:20]Read from MH i2c: E2 03 00 [06:38:20]MH_I2C_Read... [06:38:20]Read from MH i2c: E2 03 00 3B 07 00 90 00 B6 [06:38:20]RAPDU: 90 00 [06:38:20]wFMCommunicate OK [06:38:20]wFMCommunicate request_size=4 [06:38:20]MH_SAM_APDU [06:38:20]CAPDU: 80 0D 03 02 [06:38:20]Write to MH i2c: E2 08 00 3C 07 80 0D 03 02 00 00 00 00 BE [06:38:20]Write i2c OK [06:38:20]MH_I2C_Read... [06:38:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:38:20]Read from MH i2c: E2 [06:38:20]MH_I2C_Read... [06:38:20]Read from MH i2c: E2 0B 00 [06:38:20]MH_I2C_Read... [06:38:20]Read from MH i2c: E2 0B 00 3C 07 00 CA B2 4D FA E6 02 20 48 90 00 D2 [06:38:20]RAPDU: CA B2 4D FA E6 02 20 48 90 00 [06:38:20]wFMCommunicate OK [06:38:20]SAM_PROTO_SignData done [06:38:20]FM_MakeSignedData done [06:38:20]CreateOFDProtocolMessage [06:38:20]wFMCommunicate request_size=4 [06:38:20]MH_SAM_APDU [06:38:20]CAPDU: 80 11 00 00 [06:38:20]Write to MH i2c: E2 08 00 3D 07 80 11 00 00 00 00 00 00 BE [06:38:20]Write i2c OK [06:38:20]MH_I2C_Read... [06:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:20]Read from MH i2c: E2 [06:38:20]MH_I2C_Read... [06:38:20]Read from MH i2c: E2 17 00 [06:38:20]MH_I2C_Read... [06:38:20]Read from MH i2c: E2 17 00 3D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 14 [06:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:38:20]wFMCommunicate OK [06:38:20]CreateOFDProtocolMessage done [06:38:20]OFDSenderStorePacket 67603 [06:38:20]StoreOFDPacket docnum=67603 [06:38:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 0E B8 07 01 77 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0C 00 00 00 F4 03 04 00 5D FB 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 2C 6E 40 75 5F EA CA B2 4D FA E6 02 20 48 [06:38:20]CheckFolder [06:38:20]dirname=/storage/ofd_packets [06:38:20]CheckFolder done [06:38:20]ProducePacketName [06:38:20]name=ofd_packets/00067603 [06:38:20]NVStorageSaveData ofd_packets/00067603 [06:38:20]File name is /storage/ofd_packets/00067603 [06:38:20]Write 301 bytes [06:38:20]NVStorageSaveData done [06:38:20]OFDSenderStorePacket done [06:38:20]KKMCreateOFDPacket done [06:38:20]NVStorageSaveData kkm_last_timestamp [06:38:20]File name is /storage/kkm_last_timestamp [06:38:20]Write 4 bytes [06:38:20]NVStorageSaveData done [06:38:20]ExternCall_PrintAddStr [06:38:20]wPrintStart [06:38:20]Write to MH i2c: 01 00 00 3E 07 45 [06:38:20]Write i2c OK [06:38:20]MH_I2C_Read... [06:38:20]Read from MH i2c: 01 [06:38:20]MH_I2C_Read... [06:38:20]Read from MH i2c: 01 07 00 [06:38:20]MH_I2C_Read... [06:38:20]Read from MH i2c: 01 07 00 3E 07 00 00 00 00 00 FF 0F 5A [06:38:20]RasterBufferAndPrint [06:38:20]line Счет N : (1)507687 [06:38:20]line ИНН: 02508201610067 [06:38:20]line Контрольно-Кассовый Чек [06:38:20]line ПРОДАЖА [06:38:20]line ТРК (МРК, ГНК) : 33 [06:38:20]line Товар: 2710124130 [06:38:20]line Аи-92-К-5 [06:38:20]line 11.980 * 66.80 [06:38:20]line = 800.26 [06:38:20]line НДС 12% НСП 1% [06:38:20]line > о реализуемом товаре [06:38:20]line ИТОГО: 800.26 [06:38:20]line НСП 1% : 7.08 [06:38:20]line НДС 12% : 84.98 [06:38:20]line Наличными: 0.00 [06:38:20]line Безнал.: 800.26 [06:38:20]line Место: АЗС № 91 "Партнер Нефть" [06:38:20]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [06:38:20]line СНО: Общий режим [06:38:20]line Чек 12 17.05.2024 06:38 [06:38:20]line Смена: 358 ФФД: 1.0 [06:38:20]line ЗНМ: 0300000119 [06:38:20]line РНМ: 0000000000091845 [06:38:20]line Версия ККМ: 001 [06:38:20]line Платежная система: O! деньги [06:38:20]line ФМ: 0000000000871829 [06:38:20]line ФД: 67603 [06:38:20]line ФПД: 48852039458794 [06:38:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T063821&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67603&fm=48852039458794&tin=02508201610067®Number=0000000000091845&sum=80026 [06:38:21]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:38:21]ProducePacketName [06:38:21]name=ofd_packets/00067603 [06:38:21]OFD Sender: To server: pG, [06:38:21]CommunicateWithHost lk.salyk.kg:30040 [06:38:21]ConnectInit lk.salyk.kg [06:38:21]written 0, free lines is 4095 [06:38:21]ConnectInit Can't take IP for lk.salyk.kg [06:38:21]CommunicateWithHost connect error [06:38:21]CommunicateWithHost err = -1 [06:38:21]OFD Sender: Server communicate error [06:38:21]Write to MH i2c: 01 00 00 67 07 6E [06:38:21]Write i2c OK [06:38:21]MH_I2C_Read... [06:38:21]Read from MH i2c: 01 [06:38:21]MH_I2C_Read... [06:38:21]Read from MH i2c: 01 07 00 [06:38:21]MH_I2C_Read... [06:38:21]Read from MH i2c: 01 07 00 67 07 00 00 00 00 00 DE 0C 5F [06:38:21]RasterBufferAndPrint [06:38:21]line [06:38:21]line [06:38:21]line [06:38:21]line [06:38:21]line [06:38:21]written 0, free lines is 3300 [06:38:21]MH_Cut [06:38:21]Write to MH i2c: D1 01 00 6E 07 01 47 [06:38:21]Write i2c OK [06:38:21]MH_I2C_Read... [06:38:21]Read from MH i2c: D1 [06:38:21]MH_I2C_Read... [06:38:21]Read from MH i2c: D1 01 00 [06:38:21]MH_I2C_Read... [06:38:21]Read from MH i2c: D1 01 00 6E 07 00 46 [06:38:21]Write to MH i2c: 01 00 00 6F 07 76 [06:38:21]Write i2c OK [06:38:21]MH_I2C_Read... [06:38:22]*** Cut start [06:38:22]*** Purtial cut [06:38:22]*** Stage 1: CUTSNS_PIN = 1 [06:38:22]Read from MH i2c: 01 [06:38:22]MH_I2C_Read... [06:38:22]*** Stop cut motor [06:38:22]*** Cut end [06:38:22]Read from MH i2c: 01 07 00 [06:38:22]MH_I2C_Read... [06:38:22]Read from MH i2c: 01 07 00 6F 07 00 00 00 00 00 FF 0F 8B [06:38:22]process_action close_receipt done [06:38:22]requested_data is exist [06:38:22]produce_requested_data [06:38:22]requested_item fm.sn is exist - process it [06:38:22]wFMCommunicate request_size=4 [06:38:22]MH_SAM_APDU [06:38:22]CAPDU: 80 11 00 00 [06:38:22]Write to MH i2c: E2 08 00 70 07 80 11 00 00 00 00 00 00 F1 [06:38:22]Write i2c OK [06:38:22]MH_I2C_Read... [06:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:22]Read from MH i2c: E2 [06:38:22]MH_I2C_Read... [06:38:22]Read from MH i2c: E2 17 00 [06:38:22]MH_I2C_Read... [06:38:22]Read from MH i2c: E2 17 00 70 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 47 [06:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:38:22]wFMCommunicate OK [06:38:22]requested_item fd.num is exist - process it [06:38:22]SAM_PROTO_GetFieldsCounters [06:38:22]wFMCommunicate request_size=4 [06:38:22]MH_SAM_APDU [06:38:22]CAPDU: 80 13 00 00 [06:38:22]Write to MH i2c: E2 08 00 71 07 80 13 00 00 00 00 00 00 F4 [06:38:22]Write i2c OK [06:38:22]MH_I2C_Read... [06:38:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:38:23]Read from MH i2c: E2 [06:38:23]MH_I2C_Read... [06:38:23]Read from MH i2c: E2 62 00 [06:38:23]MH_I2C_Read... [06:38:23]Read from MH i2c: E2 62 00 71 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 13 08 01 00 0E 04 04 00 66 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 C1 [06:38: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 13 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:38:23]wFMCommunicate OK [06:38:23]SAM_PROTO_GetFieldsCounters done [06:38:23]requested_item shift.num is exist - process it [06:38:23]requested_item shift.opened is exist - process it [06:38:23]req_shift_opened [06:38:23]FM_GetShiftState [06:38:23]SAM_PROTO_GetShiftState [06:38:23]wFMCommunicate request_size=4 [06:38:23]MH_SAM_APDU [06:38:23]CAPDU: 80 13 01 00 [06:38:23]Write to MH i2c: E2 08 00 72 07 80 13 01 00 00 00 00 00 F6 [06:38:23]Write i2c OK [06:38:23]MH_I2C_Read... [06:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:23]Read from MH i2c: E2 [06:38:23]MH_I2C_Read... [06:38:23]Read from MH i2c: E2 0E 00 [06:38:23]MH_I2C_Read... [06:38:23]Read from MH i2c: E2 0E 00 72 07 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 7C [06:38:23]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [06:38:23]wFMCommunicate OK [06:38:23]SAM_PROTO_GetShiftState done [06:38:23]FM_GetShiftState done [06:38:23]req_shift_opened done [06:38:23]requested_item shift.open_date is exist - process it [06:38:23]req_shift_open_date [06:38:23]req_shift_open_date done [06:38:23]produce_requested_data done [06:38:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67603,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [06:38:23]process_action_free close_receipt [06:38:23]json_value_free [06:38:23]json_value_free done [06:38:23]process_json_proto returns [06:38:23]Send response to host [06:38:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67603,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [06:38:23]free response buf [06:38:23]execute_script done [06:38:23]execute_script returns [06:38:23]free content buf [06:38:23]Sock 7.Close socket [06:38:23]Sock 7.Thread stoped [06:38:26]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:38:26]ProducePacketName [06:38:26]name=ofd_packets/00067603 [06:38:26]OFD Sender: To server: pG, [06:38:26]CommunicateWithHost lk.salyk.kg:30040 [06:38:26]ConnectInit lk.salyk.kg [06:38:26]ConnectInit Can't take IP for lk.salyk.kg [06:38:26]CommunicateWithHost connect error [06:38:26]CommunicateWithHost err = -1 [06:38:26]OFD Sender: Server communicate error [06:38:31]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:38:31]ProducePacketName [06:38:31]name=ofd_packets/00067603 [06:38:31]OFD Sender: To server: pG, [06:38:31]CommunicateWithHost lk.salyk.kg:30040 [06:38:31]ConnectInit lk.salyk.kg [06:38:31]ConnectInit Can't take IP for lk.salyk.kg [06:38:31]CommunicateWithHost connect error [06:38:31]CommunicateWithHost err = -1 [06:38:31]OFD Sender: Server communicate error [06:38:36]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:38:36]ProducePacketName [06:38:36]name=ofd_packets/00067603 [06:38:36]OFD Sender: To server: pG, [06:38:36]CommunicateWithHost lk.salyk.kg:30040 [06:38:36]ConnectInit lk.salyk.kg [06:38:36]ConnectInit Can't take IP for lk.salyk.kg [06:38:36]CommunicateWithHost connect error [06:38:36]CommunicateWithHost err = -1 [06:38:36]OFD Sender: Server communicate error [06:38:41]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:38:41]ProducePacketName [06:38:41]name=ofd_packets/00067603 [06:38:41]OFD Sender: To server: pG, [06:38:41]CommunicateWithHost lk.salyk.kg:30040 [06:38:41]ConnectInit lk.salyk.kg [06:38:41]ConnectInit Can't take IP for lk.salyk.kg [06:38:41]CommunicateWithHost connect error [06:38:41]CommunicateWithHost err = -1 [06:38:41]OFD Sender: Server communicate error [06:38:46]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:38:46]ProducePacketName [06:38:46]name=ofd_packets/00067603 [06:38:46]OFD Sender: To server: pG, [06:38:46]CommunicateWithHost lk.salyk.kg:30040 [06:38:46]ConnectInit lk.salyk.kg [06:38:46]ConnectInit Can't take IP for lk.salyk.kg [06:38:46]CommunicateWithHost connect error [06:38:46]CommunicateWithHost err = -1 [06:38:46]OFD Sender: Server communicate error [06:38:51]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:38:51]ProducePacketName [06:38:51]name=ofd_packets/00067603 [06:38:51]OFD Sender: To server: pG, [06:38:51]CommunicateWithHost lk.salyk.kg:30040 [06:38:51]ConnectInit lk.salyk.kg [06:38:51]ConnectInit Can't take IP for lk.salyk.kg [06:38:51]CommunicateWithHost connect error [06:38:51]CommunicateWithHost err = -1 [06:38:51]OFD Sender: Server communicate error [06:38:56]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:38:56]ProducePacketName [06:38:56]name=ofd_packets/00067603 [06:38:56]OFD Sender: To server: pG, [06:38:56]CommunicateWithHost lk.salyk.kg:30040 [06:38:56]ConnectInit lk.salyk.kg [06:38:57]ConnectInit Can't take IP for lk.salyk.kg [06:38:57]CommunicateWithHost connect error [06:38:57]CommunicateWithHost err = -1 [06:38:57]OFD Sender: Server communicate error [06:39:02]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:39:02]ProducePacketName [06:39:02]name=ofd_packets/00067603 [06:39:02]OFD Sender: To server: pG, [06:39:02]CommunicateWithHost lk.salyk.kg:30040 [06:39:02]ConnectInit lk.salyk.kg [06:39:02]ConnectInit Can't take IP for lk.salyk.kg [06:39:02]CommunicateWithHost connect error [06:39:02]CommunicateWithHost err = -1 [06:39:02]OFD Sender: Server communicate error [06:39:07]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:39:07]ProducePacketName [06:39:07]name=ofd_packets/00067603 [06:39:07]OFD Sender: To server: pG, [06:39:07]CommunicateWithHost lk.salyk.kg:30040 [06:39:07]ConnectInit lk.salyk.kg [06:39:07]ConnectInit Can't take IP for lk.salyk.kg [06:39:07]CommunicateWithHost connect error [06:39:07]CommunicateWithHost err = -1 [06:39:07]OFD Sender: Server communicate error [06:39:12]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:39:12]ProducePacketName [06:39:12]name=ofd_packets/00067603 [06:39:12]OFD Sender: To server: pG, [06:39:12]CommunicateWithHost lk.salyk.kg:30040 [06:39:12]ConnectInit lk.salyk.kg [06:39:12]ConnectInit Can't take IP for lk.salyk.kg [06:39:12]CommunicateWithHost connect error [06:39:12]CommunicateWithHost err = -1 [06:39:12]OFD Sender: Server communicate error [06:39:17]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:39:17]ProducePacketName [06:39:17]name=ofd_packets/00067603 [06:39:17]OFD Sender: To server: pG, [06:39:17]CommunicateWithHost lk.salyk.kg:30040 [06:39:17]ConnectInit lk.salyk.kg [06:39:17]ConnectInit Can't take IP for lk.salyk.kg [06:39:17]CommunicateWithHost connect error [06:39:17]CommunicateWithHost err = -1 [06:39:17]OFD Sender: Server communicate error [06:39:22]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:39:22]ProducePacketName [06:39:22]name=ofd_packets/00067603 [06:39:22]OFD Sender: To server: pG, [06:39:22]CommunicateWithHost lk.salyk.kg:30040 [06:39:22]ConnectInit lk.salyk.kg [06:39:22]ConnectInit Can't take IP for lk.salyk.kg [06:39:22]CommunicateWithHost connect error [06:39:22]CommunicateWithHost err = -1 [06:39:22]OFD Sender: Server communicate error [06:39:27]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:39:27]ProducePacketName [06:39:27]name=ofd_packets/00067603 [06:39:27]OFD Sender: To server: pG, [06:39:27]CommunicateWithHost lk.salyk.kg:30040 [06:39:27]ConnectInit lk.salyk.kg [06:39:27]ConnectInit Can't take IP for lk.salyk.kg [06:39:27]CommunicateWithHost connect error [06:39:27]CommunicateWithHost err = -1 [06:39:27]OFD Sender: Server communicate error [06:39:32]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:39:32]ProducePacketName [06:39:32]name=ofd_packets/00067603 [06:39:32]OFD Sender: To server: pG, [06:39:32]CommunicateWithHost lk.salyk.kg:30040 [06:39:32]ConnectInit lk.salyk.kg [06:39:32]ConnectInit Can't take IP for lk.salyk.kg [06:39:32]CommunicateWithHost connect error [06:39:32]CommunicateWithHost err = -1 [06:39:32]OFD Sender: Server communicate error [06:39:37]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:39:37]ProducePacketName [06:39:37]name=ofd_packets/00067603 [06:39:37]OFD Sender: To server: pG, [06:39:37]CommunicateWithHost lk.salyk.kg:30040 [06:39:37]ConnectInit lk.salyk.kg [06:39:37]ConnectInit Can't take IP for lk.salyk.kg [06:39:37]CommunicateWithHost connect error [06:39:37]CommunicateWithHost err = -1 [06:39:37]OFD Sender: Server communicate error [06:39:42]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:39:42]ProducePacketName [06:39:42]name=ofd_packets/00067603 [06:39:42]OFD Sender: To server: pG, [06:39:42]CommunicateWithHost lk.salyk.kg:30040 [06:39:42]ConnectInit lk.salyk.kg [06:39:42]ConnectInit Can't take IP for lk.salyk.kg [06:39:42]CommunicateWithHost connect error [06:39:42]CommunicateWithHost err = -1 [06:39:42]OFD Sender: Server communicate error [06:39:47]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:39:47]ProducePacketName [06:39:47]name=ofd_packets/00067603 [06:39:47]OFD Sender: To server: pG, [06:39:47]CommunicateWithHost lk.salyk.kg:30040 [06:39:47]ConnectInit lk.salyk.kg [06:39:47]ConnectInit Can't take IP for lk.salyk.kg [06:39:47]CommunicateWithHost connect error [06:39:47]CommunicateWithHost err = -1 [06:39:47]OFD Sender: Server communicate error [06:39:52]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:39:52]ProducePacketName [06:39:52]name=ofd_packets/00067603 [06:39:52]OFD Sender: To server: pG, [06:39:52]CommunicateWithHost lk.salyk.kg:30040 [06:39:52]ConnectInit lk.salyk.kg [06:39:53]ConnectInit Can't take IP for lk.salyk.kg [06:39:53]CommunicateWithHost connect error [06:39:53]CommunicateWithHost err = -1 [06:39:53]OFD Sender: Server communicate error [06:39:58]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:39:58]ProducePacketName [06:39:58]name=ofd_packets/00067603 [06:39:58]OFD Sender: To server: pG, [06:39:58]CommunicateWithHost lk.salyk.kg:30040 [06:39:58]ConnectInit lk.salyk.kg [06:39:58]ConnectInit Can't take IP for lk.salyk.kg [06:39:58]CommunicateWithHost connect error [06:39:58]CommunicateWithHost err = -1 [06:39:58]OFD Sender: Server communicate error [06:40:03]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:40:03]ProducePacketName [06:40:03]name=ofd_packets/00067603 [06:40:03]OFD Sender: To server: pG, [06:40:03]CommunicateWithHost lk.salyk.kg:30040 [06:40:03]ConnectInit lk.salyk.kg [06:40:03]ConnectInit Can't take IP for lk.salyk.kg [06:40:03]CommunicateWithHost connect error [06:40:03]CommunicateWithHost err = -1 [06:40:03]OFD Sender: Server communicate error [06:40:08]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:40:08]ProducePacketName [06:40:08]name=ofd_packets/00067603 [06:40:08]OFD Sender: To server: pG, [06:40:08]CommunicateWithHost lk.salyk.kg:30040 [06:40:08]ConnectInit lk.salyk.kg [06:40:08]ConnectInit Can't take IP for lk.salyk.kg [06:40:08]CommunicateWithHost connect error [06:40:08]CommunicateWithHost err = -1 [06:40:08]OFD Sender: Server communicate error [06:40:13]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:40:13]ProducePacketName [06:40:13]name=ofd_packets/00067603 [06:40:13]OFD Sender: To server: pG, [06:40:13]CommunicateWithHost lk.salyk.kg:30040 [06:40:13]ConnectInit lk.salyk.kg [06:40:13]ConnectInit Can't take IP for lk.salyk.kg [06:40:13]CommunicateWithHost connect error [06:40:13]CommunicateWithHost err = -1 [06:40:13]OFD Sender: Server communicate error [06:40:18]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:40:18]ProducePacketName [06:40:18]name=ofd_packets/00067603 [06:40:18]OFD Sender: To server: pG, [06:40:18]CommunicateWithHost lk.salyk.kg:30040 [06:40:18]ConnectInit lk.salyk.kg [06:40:18]ConnectInit Can't take IP for lk.salyk.kg [06:40:18]CommunicateWithHost connect error [06:40:18]CommunicateWithHost err = -1 [06:40:18]OFD Sender: Server communicate error [06:40:23]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:40:23]ProducePacketName [06:40:23]name=ofd_packets/00067603 [06:40:23]OFD Sender: To server: pG, [06:40:23]CommunicateWithHost lk.salyk.kg:30040 [06:40:23]ConnectInit lk.salyk.kg [06:40:23]ConnectInit Can't take IP for lk.salyk.kg [06:40:23]CommunicateWithHost connect error [06:40:23]CommunicateWithHost err = -1 [06:40:23]OFD Sender: Server communicate error [06:40:28]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:40:28]ProducePacketName [06:40:28]name=ofd_packets/00067603 [06:40:28]OFD Sender: To server: pG, [06:40:28]CommunicateWithHost lk.salyk.kg:30040 [06:40:28]ConnectInit lk.salyk.kg [06:40:28]ConnectInit Can't take IP for lk.salyk.kg [06:40:28]CommunicateWithHost connect error [06:40:28]CommunicateWithHost err = -1 [06:40:28]OFD Sender: Server communicate error [06:40:33]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:40:33]ProducePacketName [06:40:33]name=ofd_packets/00067603 [06:40:33]OFD Sender: To server: pG, [06:40:33]CommunicateWithHost lk.salyk.kg:30040 [06:40:33]ConnectInit lk.salyk.kg [06:40:33]ConnectInit Can't take IP for lk.salyk.kg [06:40:33]CommunicateWithHost connect error [06:40:33]CommunicateWithHost err = -1 [06:40:33]OFD Sender: Server communicate error [06:40:38]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:40:38]ProducePacketName [06:40:38]name=ofd_packets/00067603 [06:40:38]OFD Sender: To server: pG, [06:40:38]CommunicateWithHost lk.salyk.kg:30040 [06:40:38]ConnectInit lk.salyk.kg [06:40:38]ConnectInit Can't take IP for lk.salyk.kg [06:40:38]CommunicateWithHost connect error [06:40:38]CommunicateWithHost err = -1 [06:40:38]OFD Sender: Server communicate error [06:40:43]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:40:43]ProducePacketName [06:40:43]name=ofd_packets/00067603 [06:40:43]OFD Sender: To server: pG, [06:40:43]CommunicateWithHost lk.salyk.kg:30040 [06:40:43]ConnectInit lk.salyk.kg [06:40:43]ConnectInit Can't take IP for lk.salyk.kg [06:40:43]CommunicateWithHost connect error [06:40:43]CommunicateWithHost err = -1 [06:40:43]OFD Sender: Server communicate error [06:40:48]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:40:48]ProducePacketName [06:40:48]name=ofd_packets/00067603 [06:40:48]OFD Sender: To server: pG, [06:40:48]CommunicateWithHost lk.salyk.kg:30040 [06:40:48]ConnectInit lk.salyk.kg [06:40:49]ConnectInit Can't take IP for lk.salyk.kg [06:40:49]CommunicateWithHost connect error [06:40:49]CommunicateWithHost err = -1 [06:40:49]OFD Sender: Server communicate error [06:40:54]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:40:54]ProducePacketName [06:40:54]name=ofd_packets/00067603 [06:40:54]OFD Sender: To server: pG, [06:40:54]CommunicateWithHost lk.salyk.kg:30040 [06:40:54]ConnectInit lk.salyk.kg [06:40:54]ConnectInit Can't take IP for lk.salyk.kg [06:40:54]CommunicateWithHost connect error [06:40:54]CommunicateWithHost err = -1 [06:40:54]OFD Sender: Server communicate error [06:40:59]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:40:59]ProducePacketName [06:40:59]name=ofd_packets/00067603 [06:40:59]OFD Sender: To server: pG, [06:40:59]CommunicateWithHost lk.salyk.kg:30040 [06:40:59]ConnectInit lk.salyk.kg [06:40:59]ConnectInit Can't take IP for lk.salyk.kg [06:40:59]CommunicateWithHost connect error [06:40:59]CommunicateWithHost err = -1 [06:40:59]OFD Sender: Server communicate error [06:41:04]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:41:04]ProducePacketName [06:41:04]name=ofd_packets/00067603 [06:41:04]OFD Sender: To server: pG, [06:41:04]CommunicateWithHost lk.salyk.kg:30040 [06:41:04]ConnectInit lk.salyk.kg [06:41:04]ConnectInit Can't take IP for lk.salyk.kg [06:41:04]CommunicateWithHost connect error [06:41:04]CommunicateWithHost err = -1 [06:41:04]OFD Sender: Server communicate error [06:41:09]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:41:09]ProducePacketName [06:41:09]name=ofd_packets/00067603 [06:41:09]OFD Sender: To server: pG, [06:41:09]CommunicateWithHost lk.salyk.kg:30040 [06:41:09]ConnectInit lk.salyk.kg [06:41:09]ConnectInit Can't take IP for lk.salyk.kg [06:41:09]CommunicateWithHost connect error [06:41:09]CommunicateWithHost err = -1 [06:41:09]OFD Sender: Server communicate error [06:41:14]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:41:14]ProducePacketName [06:41:14]name=ofd_packets/00067603 [06:41:14]OFD Sender: To server: pG, [06:41:14]CommunicateWithHost lk.salyk.kg:30040 [06:41:14]ConnectInit lk.salyk.kg [06:41:14]ConnectInit Can't take IP for lk.salyk.kg [06:41:14]CommunicateWithHost connect error [06:41:14]CommunicateWithHost err = -1 [06:41:14]OFD Sender: Server communicate error [06:41:19]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:41:19]ProducePacketName [06:41:19]name=ofd_packets/00067603 [06:41:19]OFD Sender: To server: pG, [06:41:19]CommunicateWithHost lk.salyk.kg:30040 [06:41:19]ConnectInit lk.salyk.kg [06:41:19]ConnectInit Can't take IP for lk.salyk.kg [06:41:19]CommunicateWithHost connect error [06:41:19]CommunicateWithHost err = -1 [06:41:19]OFD Sender: Server communicate error [06:41:24]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:41:24]ProducePacketName [06:41:24]name=ofd_packets/00067603 [06:41:24]OFD Sender: To server: pG, [06:41:24]CommunicateWithHost lk.salyk.kg:30040 [06:41:24]ConnectInit lk.salyk.kg [06:41:24]ConnectInit Can't take IP for lk.salyk.kg [06:41:24]CommunicateWithHost connect error [06:41:24]CommunicateWithHost err = -1 [06:41:24]OFD Sender: Server communicate error [06:41:29]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:41:29]ProducePacketName [06:41:29]name=ofd_packets/00067603 [06:41:29]OFD Sender: To server: pG, [06:41:29]CommunicateWithHost lk.salyk.kg:30040 [06:41:29]ConnectInit lk.salyk.kg [06:41:29]ConnectInit Can't take IP for lk.salyk.kg [06:41:29]CommunicateWithHost connect error [06:41:29]CommunicateWithHost err = -1 [06:41:29]OFD Sender: Server communicate error [06:41:34]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:41:34]ProducePacketName [06:41:34]name=ofd_packets/00067603 [06:41:34]OFD Sender: To server: pG, [06:41:34]CommunicateWithHost lk.salyk.kg:30040 [06:41:34]ConnectInit lk.salyk.kg [06:41:34]ConnectInit Can't take IP for lk.salyk.kg [06:41:34]CommunicateWithHost connect error [06:41:34]CommunicateWithHost err = -1 [06:41:34]OFD Sender: Server communicate error [06:41:39]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:41:39]ProducePacketName [06:41:39]name=ofd_packets/00067603 [06:41:39]OFD Sender: To server: pG, [06:41:39]CommunicateWithHost lk.salyk.kg:30040 [06:41:39]ConnectInit lk.salyk.kg [06:41:40]ConnectInit Can't take IP for lk.salyk.kg [06:41:40]CommunicateWithHost connect error [06:41:40]CommunicateWithHost err = -1 [06:41:40]OFD Sender: Server communicate error [06:41:45]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:41:45]ProducePacketName [06:41:45]name=ofd_packets/00067603 [06:41:45]OFD Sender: To server: pG, [06:41:45]CommunicateWithHost lk.salyk.kg:30040 [06:41:45]ConnectInit lk.salyk.kg [06:41:45]ConnectInit Can't take IP for lk.salyk.kg [06:41:45]CommunicateWithHost connect error [06:41:45]CommunicateWithHost err = -1 [06:41:45]OFD Sender: Server communicate error [06:41:50]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:41:50]ProducePacketName [06:41:50]name=ofd_packets/00067603 [06:41:50]OFD Sender: To server: pG, [06:41:50]CommunicateWithHost lk.salyk.kg:30040 [06:41:50]ConnectInit lk.salyk.kg [06:41:50]ConnectInit Can't take IP for lk.salyk.kg [06:41:50]CommunicateWithHost connect error [06:41:50]CommunicateWithHost err = -1 [06:41:50]OFD Sender: Server communicate error [06:41:55]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:41:55]ProducePacketName [06:41:55]name=ofd_packets/00067603 [06:41:55]OFD Sender: To server: pG, [06:41:55]CommunicateWithHost lk.salyk.kg:30040 [06:41:55]ConnectInit lk.salyk.kg [06:41:55]ConnectInit Can't take IP for lk.salyk.kg [06:41:55]CommunicateWithHost connect error [06:41:55]CommunicateWithHost err = -1 [06:41:55]OFD Sender: Server communicate error [06:42:00]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:42:00]ProducePacketName [06:42:00]name=ofd_packets/00067603 [06:42:00]OFD Sender: To server: pG, [06:42:00]CommunicateWithHost lk.salyk.kg:30040 [06:42:00]ConnectInit lk.salyk.kg [06:42:00]ConnectInit Can't take IP for lk.salyk.kg [06:42:00]CommunicateWithHost connect error [06:42:00]CommunicateWithHost err = -1 [06:42:00]OFD Sender: Server communicate error [06:42:05]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:42:05]ProducePacketName [06:42:05]name=ofd_packets/00067603 [06:42:05]OFD Sender: To server: pG, [06:42:05]CommunicateWithHost lk.salyk.kg:30040 [06:42:05]ConnectInit lk.salyk.kg [06:42:05]ConnectInit Can't take IP for lk.salyk.kg [06:42:05]CommunicateWithHost connect error [06:42:05]CommunicateWithHost err = -1 [06:42:05]OFD Sender: Server communicate error [06:42:10]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:42:10]ProducePacketName [06:42:10]name=ofd_packets/00067603 [06:42:10]OFD Sender: To server: pG, [06:42:10]CommunicateWithHost lk.salyk.kg:30040 [06:42:10]ConnectInit lk.salyk.kg [06:42:10]ConnectInit Can't take IP for lk.salyk.kg [06:42:10]CommunicateWithHost connect error [06:42:10]CommunicateWithHost err = -1 [06:42:10]OFD Sender: Server communicate error [06:42:15]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:42:15]ProducePacketName [06:42:15]name=ofd_packets/00067603 [06:42:15]OFD Sender: To server: pG, [06:42:15]CommunicateWithHost lk.salyk.kg:30040 [06:42:15]ConnectInit lk.salyk.kg [06:42:15]ConnectInit Can't take IP for lk.salyk.kg [06:42:15]CommunicateWithHost connect error [06:42:15]CommunicateWithHost err = -1 [06:42:15]OFD Sender: Server communicate error [06:42:20]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:42:20]ProducePacketName [06:42:20]name=ofd_packets/00067603 [06:42:20]OFD Sender: To server: pG, [06:42:20]CommunicateWithHost lk.salyk.kg:30040 [06:42:20]ConnectInit lk.salyk.kg [06:42:20]ConnectInit Can't take IP for lk.salyk.kg [06:42:20]CommunicateWithHost connect error [06:42:20]CommunicateWithHost err = -1 [06:42:20]OFD Sender: Server communicate error [06:42:25]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:42:25]ProducePacketName [06:42:25]name=ofd_packets/00067603 [06:42:25]OFD Sender: To server: pG, [06:42:25]CommunicateWithHost lk.salyk.kg:30040 [06:42:25]ConnectInit lk.salyk.kg [06:42:25]ConnectInit Can't take IP for lk.salyk.kg [06:42:25]CommunicateWithHost connect error [06:42:25]CommunicateWithHost err = -1 [06:42:25]OFD Sender: Server communicate error [06:42:30]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:42:30]ProducePacketName [06:42:30]name=ofd_packets/00067603 [06:42:30]OFD Sender: To server: pG, [06:42:30]CommunicateWithHost lk.salyk.kg:30040 [06:42:30]ConnectInit lk.salyk.kg [06:42:30]ConnectInit Can't take IP for lk.salyk.kg [06:42:30]CommunicateWithHost connect error [06:42:30]CommunicateWithHost err = -1 [06:42:30]OFD Sender: Server communicate error [06:42:35]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:42:35]ProducePacketName [06:42:35]name=ofd_packets/00067603 [06:42:35]OFD Sender: To server: pG, [06:42:35]CommunicateWithHost lk.salyk.kg:30040 [06:42:35]ConnectInit lk.salyk.kg [06:42:36]ConnectInit Can't take IP for lk.salyk.kg [06:42:36]CommunicateWithHost connect error [06:42:36]CommunicateWithHost err = -1 [06:42:36]OFD Sender: Server communicate error [06:42:41]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:42:41]ProducePacketName [06:42:41]name=ofd_packets/00067603 [06:42:41]OFD Sender: To server: pG, [06:42:41]CommunicateWithHost lk.salyk.kg:30040 [06:42:41]ConnectInit lk.salyk.kg [06:42:41]ConnectInit Can't take IP for lk.salyk.kg [06:42:41]CommunicateWithHost connect error [06:42:41]CommunicateWithHost err = -1 [06:42:41]OFD Sender: Server communicate error [06:42:46]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:42:46]ProducePacketName [06:42:46]name=ofd_packets/00067603 [06:42:46]OFD Sender: To server: pG, [06:42:46]CommunicateWithHost lk.salyk.kg:30040 [06:42:46]ConnectInit lk.salyk.kg [06:42:46]ConnectInit Can't take IP for lk.salyk.kg [06:42:46]CommunicateWithHost connect error [06:42:46]CommunicateWithHost err = -1 [06:42:46]OFD Sender: Server communicate error [06:42:51]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:42:51]ProducePacketName [06:42:51]name=ofd_packets/00067603 [06:42:51]OFD Sender: To server: pG, [06:42:51]CommunicateWithHost lk.salyk.kg:30040 [06:42:51]ConnectInit lk.salyk.kg [06:42:51]ConnectInit Can't take IP for lk.salyk.kg [06:42:51]CommunicateWithHost connect error [06:42:51]CommunicateWithHost err = -1 [06:42:51]OFD Sender: Server communicate error [06:42:56]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:42:56]ProducePacketName [06:42:56]name=ofd_packets/00067603 [06:42:56]OFD Sender: To server: pG, [06:42:56]CommunicateWithHost lk.salyk.kg:30040 [06:42:56]ConnectInit lk.salyk.kg [06:42:56]ConnectInit Can't take IP for lk.salyk.kg [06:42:56]CommunicateWithHost connect error [06:42:56]CommunicateWithHost err = -1 [06:42:56]OFD Sender: Server communicate error [06:43:01]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:43:01]ProducePacketName [06:43:01]name=ofd_packets/00067603 [06:43:01]OFD Sender: To server: pG, [06:43:01]CommunicateWithHost lk.salyk.kg:30040 [06:43:01]ConnectInit lk.salyk.kg [06:43:01]ConnectInit Can't take IP for lk.salyk.kg [06:43:01]CommunicateWithHost connect error [06:43:01]CommunicateWithHost err = -1 [06:43:01]OFD Sender: Server communicate error [06:43:06]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:43:06]ProducePacketName [06:43:06]name=ofd_packets/00067603 [06:43:06]OFD Sender: To server: pG, [06:43:06]CommunicateWithHost lk.salyk.kg:30040 [06:43:06]ConnectInit lk.salyk.kg [06:43:06]ConnectInit Can't take IP for lk.salyk.kg [06:43:06]CommunicateWithHost connect error [06:43:06]CommunicateWithHost err = -1 [06:43:06]OFD Sender: Server communicate error [06:43:11]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:43:11]ProducePacketName [06:43:11]name=ofd_packets/00067603 [06:43:11]OFD Sender: To server: pG, [06:43:11]CommunicateWithHost lk.salyk.kg:30040 [06:43:11]ConnectInit lk.salyk.kg [06:43:11]ConnectInit Can't take IP for lk.salyk.kg [06:43:11]CommunicateWithHost connect error [06:43:11]CommunicateWithHost err = -1 [06:43:11]OFD Sender: Server communicate error [06:43:16]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:43:16]ProducePacketName [06:43:16]name=ofd_packets/00067603 [06:43:16]OFD Sender: To server: pG, [06:43:16]CommunicateWithHost lk.salyk.kg:30040 [06:43:16]ConnectInit lk.salyk.kg [06:43:16]ConnectInit Can't take IP for lk.salyk.kg [06:43:16]CommunicateWithHost connect error [06:43:16]CommunicateWithHost err = -1 [06:43:16]OFD Sender: Server communicate error [06:43:21]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:43:21]ProducePacketName [06:43:21]name=ofd_packets/00067603 [06:43:21]OFD Sender: To server: pG, [06:43:21]CommunicateWithHost lk.salyk.kg:30040 [06:43:21]ConnectInit lk.salyk.kg [06:43:21]ConnectInit Can't take IP for lk.salyk.kg [06:43:21]CommunicateWithHost connect error [06:43:21]CommunicateWithHost err = -1 [06:43:21]OFD Sender: Server communicate error [06:43:26]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:43:26]ProducePacketName [06:43:26]name=ofd_packets/00067603 [06:43:26]OFD Sender: To server: pG, [06:43:26]CommunicateWithHost lk.salyk.kg:30040 [06:43:26]ConnectInit lk.salyk.kg [06:43:26]ConnectInit Can't take IP for lk.salyk.kg [06:43:26]CommunicateWithHost connect error [06:43:26]CommunicateWithHost err = -1 [06:43:26]OFD Sender: Server communicate error [06:43:31]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:43:31]ProducePacketName [06:43:31]name=ofd_packets/00067603 [06:43:31]OFD Sender: To server: pG, [06:43:31]CommunicateWithHost lk.salyk.kg:30040 [06:43:31]ConnectInit lk.salyk.kg [06:43:32]ConnectInit Can't take IP for lk.salyk.kg [06:43:32]CommunicateWithHost connect error [06:43:32]CommunicateWithHost err = -1 [06:43:32]OFD Sender: Server communicate error [06:43:37]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:43:37]ProducePacketName [06:43:37]name=ofd_packets/00067603 [06:43:37]OFD Sender: To server: pG, [06:43:37]CommunicateWithHost lk.salyk.kg:30040 [06:43:37]ConnectInit lk.salyk.kg [06:43:37]ConnectInit Can't take IP for lk.salyk.kg [06:43:37]CommunicateWithHost connect error [06:43:37]CommunicateWithHost err = -1 [06:43:37]OFD Sender: Server communicate error [06:43:42]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:43:42]ProducePacketName [06:43:42]name=ofd_packets/00067603 [06:43:42]OFD Sender: To server: pG, [06:43:42]CommunicateWithHost lk.salyk.kg:30040 [06:43:42]ConnectInit lk.salyk.kg [06:43:42]ConnectInit Can't take IP for lk.salyk.kg [06:43:42]CommunicateWithHost connect error [06:43:42]CommunicateWithHost err = -1 [06:43:42]OFD Sender: Server communicate error [06:43:47]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:43:47]ProducePacketName [06:43:47]name=ofd_packets/00067603 [06:43:47]OFD Sender: To server: pG, [06:43:47]CommunicateWithHost lk.salyk.kg:30040 [06:43:47]ConnectInit lk.salyk.kg [06:43:47]ConnectInit Can't take IP for lk.salyk.kg [06:43:47]CommunicateWithHost connect error [06:43:47]CommunicateWithHost err = -1 [06:43:47]OFD Sender: Server communicate error [06:43:52]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:43:52]ProducePacketName [06:43:52]name=ofd_packets/00067603 [06:43:52]OFD Sender: To server: pG, [06:43:52]CommunicateWithHost lk.salyk.kg:30040 [06:43:52]ConnectInit lk.salyk.kg [06:43:52]ConnectInit Can't take IP for lk.salyk.kg [06:43:52]CommunicateWithHost connect error [06:43:52]CommunicateWithHost err = -1 [06:43:52]OFD Sender: Server communicate error [06:43:57]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:43:57]ProducePacketName [06:43:57]name=ofd_packets/00067603 [06:43:57]OFD Sender: To server: pG, [06:43:57]CommunicateWithHost lk.salyk.kg:30040 [06:43:57]ConnectInit lk.salyk.kg [06:43:57]ConnectInit Can't take IP for lk.salyk.kg [06:43:57]CommunicateWithHost connect error [06:43:57]CommunicateWithHost err = -1 [06:43:57]OFD Sender: Server communicate error [06:44:02]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:44:02]ProducePacketName [06:44:02]name=ofd_packets/00067603 [06:44:02]OFD Sender: To server: pG, [06:44:02]CommunicateWithHost lk.salyk.kg:30040 [06:44:02]ConnectInit lk.salyk.kg [06:44:02]ConnectInit Can't take IP for lk.salyk.kg [06:44:02]CommunicateWithHost connect error [06:44:02]CommunicateWithHost err = -1 [06:44:02]OFD Sender: Server communicate error [06:44:07]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:44:07]ProducePacketName [06:44:07]name=ofd_packets/00067603 [06:44:07]OFD Sender: To server: pG, [06:44:07]CommunicateWithHost lk.salyk.kg:30040 [06:44:07]ConnectInit lk.salyk.kg [06:44:07]ConnectInit Can't take IP for lk.salyk.kg [06:44:07]CommunicateWithHost connect error [06:44:07]CommunicateWithHost err = -1 [06:44:07]OFD Sender: Server communicate error [06:44:12]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:44:12]ProducePacketName [06:44:12]name=ofd_packets/00067603 [06:44:12]OFD Sender: To server: pG, [06:44:12]CommunicateWithHost lk.salyk.kg:30040 [06:44:12]ConnectInit lk.salyk.kg [06:44:12]ConnectInit Can't take IP for lk.salyk.kg [06:44:12]CommunicateWithHost connect error [06:44:12]CommunicateWithHost err = -1 [06:44:12]OFD Sender: Server communicate error [06:44:17]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:44:17]ProducePacketName [06:44:17]name=ofd_packets/00067603 [06:44:17]OFD Sender: To server: pG, [06:44:17]CommunicateWithHost lk.salyk.kg:30040 [06:44:17]ConnectInit lk.salyk.kg [06:44:17]ConnectInit Can't take IP for lk.salyk.kg [06:44:17]CommunicateWithHost connect error [06:44:17]CommunicateWithHost err = -1 [06:44:17]OFD Sender: Server communicate error [06:44:22]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:44:22]ProducePacketName [06:44:22]name=ofd_packets/00067603 [06:44:22]OFD Sender: To server: pG, [06:44:22]CommunicateWithHost lk.salyk.kg:30040 [06:44:22]ConnectInit lk.salyk.kg [06:44:22]ConnectInit Can't take IP for lk.salyk.kg [06:44:22]CommunicateWithHost connect error [06:44:22]CommunicateWithHost err = -1 [06:44:22]OFD Sender: Server communicate error [06:44:27]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:44:27]ProducePacketName [06:44:27]name=ofd_packets/00067603 [06:44:27]OFD Sender: To server: pG, [06:44:27]CommunicateWithHost lk.salyk.kg:30040 [06:44:27]ConnectInit lk.salyk.kg [06:44:28]ConnectInit Can't take IP for lk.salyk.kg [06:44:28]CommunicateWithHost connect error [06:44:28]CommunicateWithHost err = -1 [06:44:28]OFD Sender: Server communicate error [06:44:33]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:44:33]ProducePacketName [06:44:33]name=ofd_packets/00067603 [06:44:33]OFD Sender: To server: pG, [06:44:33]CommunicateWithHost lk.salyk.kg:30040 [06:44:33]ConnectInit lk.salyk.kg [06:44:33]ConnectInit Can't take IP for lk.salyk.kg [06:44:33]CommunicateWithHost connect error [06:44:33]CommunicateWithHost err = -1 [06:44:33]OFD Sender: Server communicate error [06:44:38]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:44:38]ProducePacketName [06:44:38]name=ofd_packets/00067603 [06:44:38]OFD Sender: To server: pG, [06:44:38]CommunicateWithHost lk.salyk.kg:30040 [06:44:38]ConnectInit lk.salyk.kg [06:44:38]ConnectInit Can't take IP for lk.salyk.kg [06:44:38]CommunicateWithHost connect error [06:44:38]CommunicateWithHost err = -1 [06:44:38]OFD Sender: Server communicate error [06:44:43]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:44:43]ProducePacketName [06:44:43]name=ofd_packets/00067603 [06:44:43]OFD Sender: To server: pG, [06:44:43]CommunicateWithHost lk.salyk.kg:30040 [06:44:43]ConnectInit lk.salyk.kg [06:44:43]ConnectInit Can't take IP for lk.salyk.kg [06:44:43]CommunicateWithHost connect error [06:44:43]CommunicateWithHost err = -1 [06:44:43]OFD Sender: Server communicate error [06:44:48]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:44:48]ProducePacketName [06:44:48]name=ofd_packets/00067603 [06:44:48]OFD Sender: To server: pG, [06:44:48]CommunicateWithHost lk.salyk.kg:30040 [06:44:48]ConnectInit lk.salyk.kg [06:44:48]ConnectInit Can't take IP for lk.salyk.kg [06:44:48]CommunicateWithHost connect error [06:44:48]CommunicateWithHost err = -1 [06:44:48]OFD Sender: Server communicate error [06:44:53]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:44:53]ProducePacketName [06:44:53]name=ofd_packets/00067603 [06:44:53]OFD Sender: To server: pG, [06:44:53]CommunicateWithHost lk.salyk.kg:30040 [06:44:53]ConnectInit lk.salyk.kg [06:44:53]ConnectInit Can't take IP for lk.salyk.kg [06:44:53]CommunicateWithHost connect error [06:44:53]CommunicateWithHost err = -1 [06:44:53]OFD Sender: Server communicate error [06:44:58]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:44:58]ProducePacketName [06:44:58]name=ofd_packets/00067603 [06:44:58]OFD Sender: To server: pG, [06:44:58]CommunicateWithHost lk.salyk.kg:30040 [06:44:58]ConnectInit lk.salyk.kg [06:44:58]ConnectInit Can't take IP for lk.salyk.kg [06:44:58]CommunicateWithHost connect error [06:44:58]CommunicateWithHost err = -1 [06:44:58]OFD Sender: Server communicate error [06:45:03]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:45:03]ProducePacketName [06:45:03]name=ofd_packets/00067603 [06:45:03]OFD Sender: To server: pG, [06:45:03]CommunicateWithHost lk.salyk.kg:30040 [06:45:03]ConnectInit lk.salyk.kg [06:45:03]ConnectInit Can't take IP for lk.salyk.kg [06:45:03]CommunicateWithHost connect error [06:45:03]CommunicateWithHost err = -1 [06:45:03]OFD Sender: Server communicate error [06:45:08]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:45:08]ProducePacketName [06:45:08]name=ofd_packets/00067603 [06:45:08]OFD Sender: To server: pG, [06:45:08]CommunicateWithHost lk.salyk.kg:30040 [06:45:08]ConnectInit lk.salyk.kg [06:45:08]ConnectInit Can't take IP for lk.salyk.kg [06:45:08]CommunicateWithHost connect error [06:45:08]CommunicateWithHost err = -1 [06:45:08]OFD Sender: Server communicate error [06:45:13]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:45:13]ProducePacketName [06:45:13]name=ofd_packets/00067603 [06:45:13]OFD Sender: To server: pG, [06:45:13]CommunicateWithHost lk.salyk.kg:30040 [06:45:13]ConnectInit lk.salyk.kg [06:45:13]ConnectInit Can't take IP for lk.salyk.kg [06:45:13]CommunicateWithHost connect error [06:45:13]CommunicateWithHost err = -1 [06:45:13]OFD Sender: Server communicate error [06:45:18]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:45:18]ProducePacketName [06:45:18]name=ofd_packets/00067603 [06:45:18]OFD Sender: To server: pG, [06:45:18]CommunicateWithHost lk.salyk.kg:30040 [06:45:18]ConnectInit lk.salyk.kg [06:45:18]ConnectInit Can't take IP for lk.salyk.kg [06:45:18]CommunicateWithHost connect error [06:45:18]CommunicateWithHost err = -1 [06:45:18]OFD Sender: Server communicate error [06:45:23]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:45:23]ProducePacketName [06:45:23]name=ofd_packets/00067603 [06:45:23]OFD Sender: To server: pG, [06:45:23]CommunicateWithHost lk.salyk.kg:30040 [06:45:23]ConnectInit lk.salyk.kg [06:45:24]ConnectInit Can't take IP for lk.salyk.kg [06:45:24]CommunicateWithHost connect error [06:45:24]CommunicateWithHost err = -1 [06:45:24]OFD Sender: Server communicate error [06:45:29]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:45:29]ProducePacketName [06:45:29]name=ofd_packets/00067603 [06:45:29]OFD Sender: To server: pG, [06:45:29]CommunicateWithHost lk.salyk.kg:30040 [06:45:29]ConnectInit lk.salyk.kg [06:45:29]ConnectInit Can't take IP for lk.salyk.kg [06:45:29]CommunicateWithHost connect error [06:45:29]CommunicateWithHost err = -1 [06:45:29]OFD Sender: Server communicate error [06:45:34]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:45:34]ProducePacketName [06:45:34]name=ofd_packets/00067603 [06:45:34]OFD Sender: To server: pG, [06:45:34]CommunicateWithHost lk.salyk.kg:30040 [06:45:34]ConnectInit lk.salyk.kg [06:45:34]ConnectInit Can't take IP for lk.salyk.kg [06:45:34]CommunicateWithHost connect error [06:45:34]CommunicateWithHost err = -1 [06:45:34]OFD Sender: Server communicate error [06:45:39]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:45:39]ProducePacketName [06:45:39]name=ofd_packets/00067603 [06:45:39]OFD Sender: To server: pG, [06:45:39]CommunicateWithHost lk.salyk.kg:30040 [06:45:39]ConnectInit lk.salyk.kg [06:45:39]ConnectInit Can't take IP for lk.salyk.kg [06:45:39]CommunicateWithHost connect error [06:45:39]CommunicateWithHost err = -1 [06:45:39]OFD Sender: Server communicate error [06:45:44]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:45:44]ProducePacketName [06:45:44]name=ofd_packets/00067603 [06:45:44]OFD Sender: To server: pG, [06:45:44]CommunicateWithHost lk.salyk.kg:30040 [06:45:44]ConnectInit lk.salyk.kg [06:45:44]ConnectInit Can't take IP for lk.salyk.kg [06:45:44]CommunicateWithHost connect error [06:45:44]CommunicateWithHost err = -1 [06:45:44]OFD Sender: Server communicate error [06:45:49]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:45:49]ProducePacketName [06:45:49]name=ofd_packets/00067603 [06:45:49]OFD Sender: To server: pG, [06:45:49]CommunicateWithHost lk.salyk.kg:30040 [06:45:49]ConnectInit lk.salyk.kg [06:45:49]ConnectInit Can't take IP for lk.salyk.kg [06:45:49]CommunicateWithHost connect error [06:45:49]CommunicateWithHost err = -1 [06:45:49]OFD Sender: Server communicate error [06:45:54]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:45:54]ProducePacketName [06:45:54]name=ofd_packets/00067603 [06:45:54]OFD Sender: To server: pG, [06:45:54]CommunicateWithHost lk.salyk.kg:30040 [06:45:54]ConnectInit lk.salyk.kg [06:45:54]ConnectInit Can't take IP for lk.salyk.kg [06:45:54]CommunicateWithHost connect error [06:45:54]CommunicateWithHost err = -1 [06:45:54]OFD Sender: Server communicate error [06:45:59]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:45:59]ProducePacketName [06:45:59]name=ofd_packets/00067603 [06:45:59]OFD Sender: To server: pG, [06:45:59]CommunicateWithHost lk.salyk.kg:30040 [06:45:59]ConnectInit lk.salyk.kg [06:45:59]ConnectInit Can't take IP for lk.salyk.kg [06:45:59]CommunicateWithHost connect error [06:45:59]CommunicateWithHost err = -1 [06:45:59]OFD Sender: Server communicate error [06:46:04]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:46:04]ProducePacketName [06:46:04]name=ofd_packets/00067603 [06:46:04]OFD Sender: To server: pG, [06:46:04]CommunicateWithHost lk.salyk.kg:30040 [06:46:04]ConnectInit lk.salyk.kg [06:46:04]ConnectInit Can't take IP for lk.salyk.kg [06:46:04]CommunicateWithHost connect error [06:46:04]CommunicateWithHost err = -1 [06:46:04]OFD Sender: Server communicate error [06:46:09]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:46:09]ProducePacketName [06:46:09]name=ofd_packets/00067603 [06:46:09]OFD Sender: To server: pG, [06:46:09]CommunicateWithHost lk.salyk.kg:30040 [06:46:09]ConnectInit lk.salyk.kg [06:46:09]ConnectInit Can't take IP for lk.salyk.kg [06:46:09]CommunicateWithHost connect error [06:46:09]CommunicateWithHost err = -1 [06:46:09]OFD Sender: Server communicate error [06:46:14]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:46:14]ProducePacketName [06:46:14]name=ofd_packets/00067603 [06:46:14]OFD Sender: To server: pG, [06:46:14]CommunicateWithHost lk.salyk.kg:30040 [06:46:14]ConnectInit lk.salyk.kg [06:46:14]ConnectInit Can't take IP for lk.salyk.kg [06:46:14]CommunicateWithHost connect error [06:46:14]CommunicateWithHost err = -1 [06:46:14]OFD Sender: Server communicate error [06:46:19]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:46:19]ProducePacketName [06:46:19]name=ofd_packets/00067603 [06:46:19]OFD Sender: To server: pG, [06:46:19]CommunicateWithHost lk.salyk.kg:30040 [06:46:19]ConnectInit lk.salyk.kg [06:46:20]ConnectInit Can't take IP for lk.salyk.kg [06:46:20]CommunicateWithHost connect error [06:46:20]CommunicateWithHost err = -1 [06:46:20]OFD Sender: Server communicate error [06:46:25]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:46:25]ProducePacketName [06:46:25]name=ofd_packets/00067603 [06:46:25]OFD Sender: To server: pG, [06:46:25]CommunicateWithHost lk.salyk.kg:30040 [06:46:25]ConnectInit lk.salyk.kg [06:46:25]ConnectInit Can't take IP for lk.salyk.kg [06:46:25]CommunicateWithHost connect error [06:46:25]CommunicateWithHost err = -1 [06:46:25]OFD Sender: Server communicate error [06:46:30]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:46:30]ProducePacketName [06:46:30]name=ofd_packets/00067603 [06:46:30]OFD Sender: To server: pG, [06:46:30]CommunicateWithHost lk.salyk.kg:30040 [06:46:30]ConnectInit lk.salyk.kg [06:46:30]ConnectInit Can't take IP for lk.salyk.kg [06:46:30]CommunicateWithHost connect error [06:46:30]CommunicateWithHost err = -1 [06:46:30]OFD Sender: Server communicate error [06:46:35]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:46:35]ProducePacketName [06:46:35]name=ofd_packets/00067603 [06:46:35]OFD Sender: To server: pG, [06:46:35]CommunicateWithHost lk.salyk.kg:30040 [06:46:35]ConnectInit lk.salyk.kg [06:46:35]ConnectInit Can't take IP for lk.salyk.kg [06:46:35]CommunicateWithHost connect error [06:46:35]CommunicateWithHost err = -1 [06:46:35]OFD Sender: Server communicate error [06:46:40]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:46:40]ProducePacketName [06:46:40]name=ofd_packets/00067603 [06:46:40]OFD Sender: To server: pG, [06:46:40]CommunicateWithHost lk.salyk.kg:30040 [06:46:40]ConnectInit lk.salyk.kg [06:46:40]ConnectInit Can't take IP for lk.salyk.kg [06:46:40]CommunicateWithHost connect error [06:46:40]CommunicateWithHost err = -1 [06:46:40]OFD Sender: Server communicate error [06:46:45]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:46:45]ProducePacketName [06:46:45]name=ofd_packets/00067603 [06:46:45]OFD Sender: To server: pG, [06:46:45]CommunicateWithHost lk.salyk.kg:30040 [06:46:45]ConnectInit lk.salyk.kg [06:46:45]ConnectInit Can't take IP for lk.salyk.kg [06:46:45]CommunicateWithHost connect error [06:46:45]CommunicateWithHost err = -1 [06:46:45]OFD Sender: Server communicate error [06:46:50]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:46:50]ProducePacketName [06:46:50]name=ofd_packets/00067603 [06:46:50]OFD Sender: To server: pG, [06:46:50]CommunicateWithHost lk.salyk.kg:30040 [06:46:50]ConnectInit lk.salyk.kg [06:46:50]ConnectInit Can't take IP for lk.salyk.kg [06:46:50]CommunicateWithHost connect error [06:46:50]CommunicateWithHost err = -1 [06:46:50]OFD Sender: Server communicate error [06:46:55]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:46:55]ProducePacketName [06:46:55]name=ofd_packets/00067603 [06:46:55]OFD Sender: To server: pG, [06:46:55]CommunicateWithHost lk.salyk.kg:30040 [06:46:55]ConnectInit lk.salyk.kg [06:46:55]ConnectInit Can't take IP for lk.salyk.kg [06:46:55]CommunicateWithHost connect error [06:46:55]CommunicateWithHost err = -1 [06:46:55]OFD Sender: Server communicate error [06:47:00]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:47:00]ProducePacketName [06:47:00]name=ofd_packets/00067603 [06:47:00]OFD Sender: To server: pG, [06:47:00]CommunicateWithHost lk.salyk.kg:30040 [06:47:00]ConnectInit lk.salyk.kg [06:47:00]ConnectInit Can't take IP for lk.salyk.kg [06:47:00]CommunicateWithHost connect error [06:47:00]CommunicateWithHost err = -1 [06:47:00]OFD Sender: Server communicate error [06:47:05]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:47:05]ProducePacketName [06:47:05]name=ofd_packets/00067603 [06:47:05]OFD Sender: To server: pG, [06:47:05]CommunicateWithHost lk.salyk.kg:30040 [06:47:05]ConnectInit lk.salyk.kg [06:47:05]ConnectInit Can't take IP for lk.salyk.kg [06:47:05]CommunicateWithHost connect error [06:47:05]CommunicateWithHost err = -1 [06:47:05]OFD Sender: Server communicate error [06:47:10]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:47:10]ProducePacketName [06:47:10]name=ofd_packets/00067603 [06:47:10]OFD Sender: To server: pG, [06:47:10]CommunicateWithHost lk.salyk.kg:30040 [06:47:10]ConnectInit lk.salyk.kg [06:47:10]ConnectInit Can't take IP for lk.salyk.kg [06:47:10]CommunicateWithHost connect error [06:47:10]CommunicateWithHost err = -1 [06:47:10]OFD Sender: Server communicate error [06:47:15]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:47:15]ProducePacketName [06:47:15]name=ofd_packets/00067603 [06:47:15]OFD Sender: To server: pG, [06:47:15]CommunicateWithHost lk.salyk.kg:30040 [06:47:15]ConnectInit lk.salyk.kg [06:47:16]ConnectInit Can't take IP for lk.salyk.kg [06:47:16]CommunicateWithHost connect error [06:47:16]CommunicateWithHost err = -1 [06:47:16]OFD Sender: Server communicate error [06:47:21]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:47:21]ProducePacketName [06:47:21]name=ofd_packets/00067603 [06:47:21]OFD Sender: To server: pG, [06:47:21]CommunicateWithHost lk.salyk.kg:30040 [06:47:21]ConnectInit lk.salyk.kg [06:47:21]ConnectInit Can't take IP for lk.salyk.kg [06:47:21]CommunicateWithHost connect error [06:47:21]CommunicateWithHost err = -1 [06:47:21]OFD Sender: Server communicate error [06:47:23]accept exits with 9 [06:47:23]New connection [06:47:23]New thread 3067395428 created [06:47:23]Thread 3067538788 joined [06:47:23]Waiting for new connection... [06:47:23] Sock 9.Parse request [06:47:23]Sock 9.Check first char [06:47:23]Sock 9.First char is OK [06:47:23]request: POST /json_proto HTTP/1.0 [06:47:23]Method: POST [06:47:23]URL: /json_proto [06:47:23]Method is POST - this is cgi request [06:47:23]url: /json_proto [06:47:23]query_string will be loaded in cgi processing [06:47:23]execute_cgi json_proto POST (null) [06:47:23]execute_cgi path=json_proto method=POST [06:47:23]POST find Content-Length [06:47:23]Host: 172.17.41.195:8080 [06:47:23]Content-Length: 1179 [06:47:23]Content-Type: application/json [06:47:23] [06:47:23]POST finish read [06:47:23]Found Content-Length = 1179 [06:47: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507688\u000A17.05.2024 06: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 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:47:23]execute_script... [06:47: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507688\u000A17.05.2024 06: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 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:47:23]POST & json_proto [06:47:23]process_json_proto [06:47:23]json parsed OK: [06:47:23]protocol is kg_v1.0 [06:47:23]action value=print_text [06:47:23]process_action print_text [06:47:23]cmd_print_text [06:47:23]ExternCall_PrintAddStr [06:47:23]wPrintStart [06:47:23]Write to MH i2c: 01 00 00 73 07 7A [06:47:23]Write i2c OK [06:47:23]MH_I2C_Read... [06:47:23]Read from MH i2c: 01 [06:47:23]MH_I2C_Read... [06:47:23]Read from MH i2c: 01 07 00 [06:47:23]MH_I2C_Read... [06:47:23]Read from MH i2c: 01 07 00 73 07 00 00 00 00 00 FF 0F 8F [06:47:23]RasterBufferAndPrint [06:47:23]line *****ТОВАРНЫЙ ЧЕК***** [06:47:23]line АЗС-91 [06:47:23]line Партнер нефть [06:47:23]line 02508201610067 [06:47:23]line Кассир : Адишов И. [06:47:23]line Счет N : (1)507688 [06:47:23]line 17.05.2024 06:29 [06:47:23]line ПРОДАЖА [06:47:23]line ТРК (МРК, ГНК): 41 [06:47:23]line Вид ГСМ : 2710194210 [06:47:23]line ДТ-К-5 [06:47:23]line 13.390 x 74.70 [06:47:23]line ИТОГ: 1000.23 [06:47:23]line Тип оплаты: Талоны: Топливная Карта [06:47:23]line 02750 [06:47:23]line ______________________ [06:47:23]line (подпись) [06:47:23]written 0, free lines is 4095 [06:47:23]Write to MH i2c: 01 00 00 87 07 8E [06:47:23]Write i2c OK [06:47:23]MH_I2C_Read... [06:47:23]Read from MH i2c: 01 [06:47:23]MH_I2C_Read... [06:47:23]Read from MH i2c: 01 07 00 [06:47:23]MH_I2C_Read... [06:47:23]Read from MH i2c: 01 07 00 87 07 00 00 00 00 00 0E 0E B1 [06:47:23]RasterBufferAndPrint [06:47:23]line [06:47:23]line [06:47:23]line [06:47:23]line [06:47:23]line [06:47:23]written 0, free lines is 3600 [06:47:23]MH_Cut [06:47:23]Write to MH i2c: D1 01 00 8E 07 01 67 [06:47:23]Write i2c OK [06:47:23]MH_I2C_Read... [06:47:23]Read from MH i2c: D1 [06:47:23]MH_I2C_Read... [06:47:23]Read from MH i2c: D1 01 00 [06:47:23]MH_I2C_Read... [06:47:23]Read from MH i2c: D1 01 00 8E 07 00 66 [06:47:23]Write to MH i2c: 01 00 00 8F 07 96 [06:47:23]Write i2c OK [06:47:23]MH_I2C_Read... [06:47:24]*** Cut start [06:47:24]*** Purtial cut [06:47:24]*** CUTSNS_PIN = 0 [06:47:24]*** Stage 1: CUTSNS_PIN = 1 [06:47:26]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:47:26]ProducePacketName [06:47:26]name=ofd_packets/00067603 [06:47:26]OFD Sender: To server: pG, [06:47:26]CommunicateWithHost lk.salyk.kg:30040 [06:47:26]ConnectInit lk.salyk.kg [06:47:26]Read from MH i2c: 01 [06:47:26]MH_I2C_Read... [06:47:26]*** Stop cut motor [06:47:26]*** Cut end [06:47:26]Read from MH i2c: 01 07 00 [06:47:26]MH_I2C_Read... [06:47:26]Read from MH i2c: 01 07 00 8F 07 00 00 00 00 00 FF 0F AB [06:47:26]process_action print_text done [06:47:26]requested_data is exist [06:47:26]produce_requested_data [06:47:26]requested_item fm.sn is exist - process it [06:47:26]wFMCommunicate request_size=4 [06:47:26]MH_SAM_APDU [06:47:26]CAPDU: 80 11 00 00 [06:47:26]Write to MH i2c: E2 08 00 90 07 80 11 00 00 00 00 00 00 11 [06:47:26]Write i2c OK [06:47:26]MH_I2C_Read... [06:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:47:26]Read from MH i2c: E2 [06:47:26]MH_I2C_Read... [06:47:26]Read from MH i2c: E2 17 00 [06:47:26]MH_I2C_Read... [06:47:26]Read from MH i2c: E2 17 00 90 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 67 [06:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:47:26]wFMCommunicate OK [06:47:26]requested_item fd.num is exist - process it [06:47:26]SAM_PROTO_GetFieldsCounters [06:47:26]wFMCommunicate request_size=4 [06:47:26]MH_SAM_APDU [06:47:26]CAPDU: 80 13 00 00 [06:47:26]Write to MH i2c: E2 08 00 91 07 80 13 00 00 00 00 00 00 14 [06:47:26]Write i2c OK [06:47:26]MH_I2C_Read... [06:47:26]ConnectInit Can't take IP for lk.salyk.kg [06:47:26]CommunicateWithHost connect error [06:47:26]CommunicateWithHost err = -1 [06:47:26]OFD Sender: Server communicate error [06:47:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:47:26]Read from MH i2c: E2 [06:47:26]MH_I2C_Read... [06:47:26]Read from MH i2c: E2 62 00 [06:47:26]MH_I2C_Read... [06:47:26]Read from MH i2c: E2 62 00 91 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 13 08 01 00 0E 04 04 00 66 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 E1 [06:47: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 13 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:47:26]wFMCommunicate OK [06:47:26]SAM_PROTO_GetFieldsCounters done [06:47:26]requested_item shift.num is exist - process it [06:47:26]requested_item shift.opened is exist - process it [06:47:26]req_shift_opened [06:47:26]FM_GetShiftState [06:47:26]SAM_PROTO_GetShiftState [06:47:26]wFMCommunicate request_size=4 [06:47:26]MH_SAM_APDU [06:47:26]CAPDU: 80 13 01 00 [06:47:26]Write to MH i2c: E2 08 00 92 07 80 13 01 00 00 00 00 00 16 [06:47:26]Write i2c OK [06:47:26]MH_I2C_Read... [06:47:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:47:26]Read from MH i2c: E2 [06:47:26]MH_I2C_Read... [06:47:26]Read from MH i2c: E2 0E 00 [06:47:26]MH_I2C_Read... [06:47:26]Read from MH i2c: E2 0E 00 92 07 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 9C [06:47:26]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [06:47:26]wFMCommunicate OK [06:47:26]SAM_PROTO_GetShiftState done [06:47:26]FM_GetShiftState done [06:47:26]req_shift_opened done [06:47:26]requested_item shift.open_date is exist - process it [06:47:26]req_shift_open_date [06:47:26]req_shift_open_date done [06:47:26]produce_requested_data done [06:47:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67603,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [06:47:26]process_action_free print_text [06:47:26]json_value_free [06:47:26]json_value_free done [06:47:26]process_json_proto returns [06:47:26]Send response to host [06:47:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67603,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [06:47:26]free response buf [06:47:26]execute_script done [06:47:26]execute_script returns [06:47:26]free content buf [06:47:26]Sock 9.Close socket [06:47:26]Sock 9.Thread stoped [06:47:31]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:47:31]ProducePacketName [06:47:31]name=ofd_packets/00067603 [06:47:31]OFD Sender: To server: pG, [06:47:31]CommunicateWithHost lk.salyk.kg:30040 [06:47:31]ConnectInit lk.salyk.kg [06:47:31]ConnectInit Can't take IP for lk.salyk.kg [06:47:31]CommunicateWithHost connect error [06:47:31]CommunicateWithHost err = -1 [06:47:31]OFD Sender: Server communicate error [06:47:36]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:47:36]ProducePacketName [06:47:36]name=ofd_packets/00067603 [06:47:36]OFD Sender: To server: pG, [06:47:36]CommunicateWithHost lk.salyk.kg:30040 [06:47:36]ConnectInit lk.salyk.kg [06:47:36]ConnectInit Can't take IP for lk.salyk.kg [06:47:36]CommunicateWithHost connect error [06:47:36]CommunicateWithHost err = -1 [06:47:36]OFD Sender: Server communicate error [06:47:41]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:47:41]ProducePacketName [06:47:41]name=ofd_packets/00067603 [06:47:41]OFD Sender: To server: pG, [06:47:41]CommunicateWithHost lk.salyk.kg:30040 [06:47:41]ConnectInit lk.salyk.kg [06:47:41]ConnectInit Can't take IP for lk.salyk.kg [06:47:41]CommunicateWithHost connect error [06:47:41]CommunicateWithHost err = -1 [06:47:41]OFD Sender: Server communicate error [06:47:46]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:47:46]ProducePacketName [06:47:46]name=ofd_packets/00067603 [06:47:46]OFD Sender: To server: pG, [06:47:46]CommunicateWithHost lk.salyk.kg:30040 [06:47:46]ConnectInit lk.salyk.kg [06:47:46]ConnectInit Can't take IP for lk.salyk.kg [06:47:46]CommunicateWithHost connect error [06:47:46]CommunicateWithHost err = -1 [06:47:46]OFD Sender: Server communicate error [06:47:51]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:47:51]ProducePacketName [06:47:51]name=ofd_packets/00067603 [06:47:51]OFD Sender: To server: pG, [06:47:51]CommunicateWithHost lk.salyk.kg:30040 [06:47:51]ConnectInit lk.salyk.kg [06:47:51]ConnectInit Can't take IP for lk.salyk.kg [06:47:51]CommunicateWithHost connect error [06:47:51]CommunicateWithHost err = -1 [06:47:51]OFD Sender: Server communicate error [06:47:56]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:47:56]ProducePacketName [06:47:56]name=ofd_packets/00067603 [06:47:56]OFD Sender: To server: pG, [06:47:56]CommunicateWithHost lk.salyk.kg:30040 [06:47:56]ConnectInit lk.salyk.kg [06:47:56]ConnectInit Can't take IP for lk.salyk.kg [06:47:56]CommunicateWithHost connect error [06:47:56]CommunicateWithHost err = -1 [06:47:56]OFD Sender: Server communicate error [06:48:01]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:48:01]ProducePacketName [06:48:01]name=ofd_packets/00067603 [06:48:01]OFD Sender: To server: pG, [06:48:01]CommunicateWithHost lk.salyk.kg:30040 [06:48:01]ConnectInit lk.salyk.kg [06:48:01]ConnectInit Can't take IP for lk.salyk.kg [06:48:01]CommunicateWithHost connect error [06:48:01]CommunicateWithHost err = -1 [06:48:01]OFD Sender: Server communicate error [06:48:06]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:48:06]ProducePacketName [06:48:06]name=ofd_packets/00067603 [06:48:06]OFD Sender: To server: pG, [06:48:06]CommunicateWithHost lk.salyk.kg:30040 [06:48:06]ConnectInit lk.salyk.kg [06:48:06]ConnectInit Can't take IP for lk.salyk.kg [06:48:06]CommunicateWithHost connect error [06:48:06]CommunicateWithHost err = -1 [06:48:06]OFD Sender: Server communicate error [06:48:11]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:48:11]ProducePacketName [06:48:11]name=ofd_packets/00067603 [06:48:11]OFD Sender: To server: pG, [06:48:11]CommunicateWithHost lk.salyk.kg:30040 [06:48:11]ConnectInit lk.salyk.kg [06:48:12]ConnectInit Can't take IP for lk.salyk.kg [06:48:12]CommunicateWithHost connect error [06:48:12]CommunicateWithHost err = -1 [06:48:12]OFD Sender: Server communicate error [06:48:17]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:48:17]ProducePacketName [06:48:17]name=ofd_packets/00067603 [06:48:17]OFD Sender: To server: pG, [06:48:17]CommunicateWithHost lk.salyk.kg:30040 [06:48:17]ConnectInit lk.salyk.kg [06:48:17]ConnectInit Can't take IP for lk.salyk.kg [06:48:17]CommunicateWithHost connect error [06:48:17]CommunicateWithHost err = -1 [06:48:17]OFD Sender: Server communicate error [06:48:22]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:48:22]ProducePacketName [06:48:22]name=ofd_packets/00067603 [06:48:22]OFD Sender: To server: pG, [06:48:22]CommunicateWithHost lk.salyk.kg:30040 [06:48:22]ConnectInit lk.salyk.kg [06:48:22]ConnectInit Can't take IP for lk.salyk.kg [06:48:22]CommunicateWithHost connect error [06:48:22]CommunicateWithHost err = -1 [06:48:22]OFD Sender: Server communicate error [06:48:27]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:48:27]ProducePacketName [06:48:27]name=ofd_packets/00067603 [06:48:27]OFD Sender: To server: pG, [06:48:27]CommunicateWithHost lk.salyk.kg:30040 [06:48:27]ConnectInit lk.salyk.kg [06:48:27]ConnectInit Can't take IP for lk.salyk.kg [06:48:27]CommunicateWithHost connect error [06:48:27]CommunicateWithHost err = -1 [06:48:27]OFD Sender: Server communicate error [06:48:32]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:48:32]ProducePacketName [06:48:32]name=ofd_packets/00067603 [06:48:32]OFD Sender: To server: pG, [06:48:32]CommunicateWithHost lk.salyk.kg:30040 [06:48:32]ConnectInit lk.salyk.kg [06:48:32]ConnectInit Can't take IP for lk.salyk.kg [06:48:32]CommunicateWithHost connect error [06:48:32]CommunicateWithHost err = -1 [06:48:32]OFD Sender: Server communicate error [06:48:37]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:48:37]ProducePacketName [06:48:37]name=ofd_packets/00067603 [06:48:37]OFD Sender: To server: pG, [06:48:37]CommunicateWithHost lk.salyk.kg:30040 [06:48:37]ConnectInit lk.salyk.kg [06:48:37]ConnectInit Can't take IP for lk.salyk.kg [06:48:37]CommunicateWithHost connect error [06:48:37]CommunicateWithHost err = -1 [06:48:37]OFD Sender: Server communicate error [06:48:42]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:48:42]ProducePacketName [06:48:42]name=ofd_packets/00067603 [06:48:42]OFD Sender: To server: pG, [06:48:42]CommunicateWithHost lk.salyk.kg:30040 [06:48:42]ConnectInit lk.salyk.kg [06:48:42]ConnectInit Can't take IP for lk.salyk.kg [06:48:42]CommunicateWithHost connect error [06:48:42]CommunicateWithHost err = -1 [06:48:42]OFD Sender: Server communicate error [06:48:47]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:48:47]ProducePacketName [06:48:47]name=ofd_packets/00067603 [06:48:47]OFD Sender: To server: pG, [06:48:47]CommunicateWithHost lk.salyk.kg:30040 [06:48:47]ConnectInit lk.salyk.kg [06:48:47]ConnectInit Can't take IP for lk.salyk.kg [06:48:47]CommunicateWithHost connect error [06:48:47]CommunicateWithHost err = -1 [06:48:47]OFD Sender: Server communicate error [06:48:52]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:48:52]ProducePacketName [06:48:52]name=ofd_packets/00067603 [06:48:52]OFD Sender: To server: pG, [06:48:52]CommunicateWithHost lk.salyk.kg:30040 [06:48:52]ConnectInit lk.salyk.kg [06:48:52]ConnectInit Can't take IP for lk.salyk.kg [06:48:52]CommunicateWithHost connect error [06:48:52]CommunicateWithHost err = -1 [06:48:52]OFD Sender: Server communicate error [06:48:57]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:48:57]ProducePacketName [06:48:57]name=ofd_packets/00067603 [06:48:57]OFD Sender: To server: pG, [06:48:57]CommunicateWithHost lk.salyk.kg:30040 [06:48:57]ConnectInit lk.salyk.kg [06:48:57]ConnectInit Can't take IP for lk.salyk.kg [06:48:57]CommunicateWithHost connect error [06:48:57]CommunicateWithHost err = -1 [06:48:57]OFD Sender: Server communicate error [06:49:02]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:49:02]ProducePacketName [06:49:02]name=ofd_packets/00067603 [06:49:02]OFD Sender: To server: pG, [06:49:02]CommunicateWithHost lk.salyk.kg:30040 [06:49:02]ConnectInit lk.salyk.kg [06:49:02]ConnectInit Can't take IP for lk.salyk.kg [06:49:02]CommunicateWithHost connect error [06:49:02]CommunicateWithHost err = -1 [06:49:02]OFD Sender: Server communicate error [06:49:07]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:49:07]ProducePacketName [06:49:07]name=ofd_packets/00067603 [06:49:07]OFD Sender: To server: pG, [06:49:07]CommunicateWithHost lk.salyk.kg:30040 [06:49:07]ConnectInit lk.salyk.kg [06:49:08]ConnectInit Can't take IP for lk.salyk.kg [06:49:08]CommunicateWithHost connect error [06:49:08]CommunicateWithHost err = -1 [06:49:08]OFD Sender: Server communicate error [06:49:13]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:49:13]ProducePacketName [06:49:13]name=ofd_packets/00067603 [06:49:13]OFD Sender: To server: pG, [06:49:13]CommunicateWithHost lk.salyk.kg:30040 [06:49:13]ConnectInit lk.salyk.kg [06:49:13]ConnectInit Can't take IP for lk.salyk.kg [06:49:13]CommunicateWithHost connect error [06:49:13]CommunicateWithHost err = -1 [06:49:13]OFD Sender: Server communicate error [06:49:18]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:49:18]ProducePacketName [06:49:18]name=ofd_packets/00067603 [06:49:18]OFD Sender: To server: pG, [06:49:18]CommunicateWithHost lk.salyk.kg:30040 [06:49:18]ConnectInit lk.salyk.kg [06:49:18]ConnectInit Can't take IP for lk.salyk.kg [06:49:18]CommunicateWithHost connect error [06:49:18]CommunicateWithHost err = -1 [06:49:18]OFD Sender: Server communicate error [06:49:23]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:49:23]ProducePacketName [06:49:23]name=ofd_packets/00067603 [06:49:23]OFD Sender: To server: pG, [06:49:23]CommunicateWithHost lk.salyk.kg:30040 [06:49:23]ConnectInit lk.salyk.kg [06:49:23]ConnectInit Can't take IP for lk.salyk.kg [06:49:23]CommunicateWithHost connect error [06:49:23]CommunicateWithHost err = -1 [06:49:23]OFD Sender: Server communicate error [06:49:28]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:49:28]ProducePacketName [06:49:28]name=ofd_packets/00067603 [06:49:28]OFD Sender: To server: pG, [06:49:28]CommunicateWithHost lk.salyk.kg:30040 [06:49:28]ConnectInit lk.salyk.kg [06:49:28]ConnectInit Can't take IP for lk.salyk.kg [06:49:28]CommunicateWithHost connect error [06:49:28]CommunicateWithHost err = -1 [06:49:28]OFD Sender: Server communicate error [06:49:33]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:49:33]ProducePacketName [06:49:33]name=ofd_packets/00067603 [06:49:33]OFD Sender: To server: pG, [06:49:33]CommunicateWithHost lk.salyk.kg:30040 [06:49:33]ConnectInit lk.salyk.kg [06:49:33]ConnectInit Can't take IP for lk.salyk.kg [06:49:33]CommunicateWithHost connect error [06:49:33]CommunicateWithHost err = -1 [06:49:33]OFD Sender: Server communicate error [06:49:38]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:49:38]ProducePacketName [06:49:38]name=ofd_packets/00067603 [06:49:38]OFD Sender: To server: pG, [06:49:38]CommunicateWithHost lk.salyk.kg:30040 [06:49:38]ConnectInit lk.salyk.kg [06:49:38]ConnectInit Can't take IP for lk.salyk.kg [06:49:38]CommunicateWithHost connect error [06:49:38]CommunicateWithHost err = -1 [06:49:38]OFD Sender: Server communicate error [06:49:43]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:49:43]ProducePacketName [06:49:43]name=ofd_packets/00067603 [06:49:43]OFD Sender: To server: pG, [06:49:43]CommunicateWithHost lk.salyk.kg:30040 [06:49:43]ConnectInit lk.salyk.kg [06:49:43]ConnectInit Can't take IP for lk.salyk.kg [06:49:43]CommunicateWithHost connect error [06:49:43]CommunicateWithHost err = -1 [06:49:43]OFD Sender: Server communicate error [06:49:48]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:49:48]ProducePacketName [06:49:48]name=ofd_packets/00067603 [06:49:48]OFD Sender: To server: pG, [06:49:48]CommunicateWithHost lk.salyk.kg:30040 [06:49:48]ConnectInit lk.salyk.kg [06:49:48]ConnectInit Can't take IP for lk.salyk.kg [06:49:48]CommunicateWithHost connect error [06:49:48]CommunicateWithHost err = -1 [06:49:48]OFD Sender: Server communicate error [06:49:53]OFD Sender: Processing packet 67603 [packets to send 35, broken 34] [06:49:53]ProducePacketName [06:49:53]name=ofd_packets/00067603 [06:49:53]OFD Sender: To server: pG, [06:49:53]CommunicateWithHost lk.salyk.kg:30040 [06:49:53]ConnectInit lk.salyk.kg [06:49:53]Connected sock=9 [06: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 0F 01 00 00 0E B8 07 01 77 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0C 00 00 00 F4 03 04 00 5D FB 46 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 2C 6E 40 75 5F EA CA B2 4D FA E6 02 20 48 [06:49: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 41 89 47 00 60 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 13 08 01 00 F4 03 04 00 EA A5 46 66 B6 04 01 00 00 99 9B 77 DD 3B CA 6C 97 [06:49:54]CommunicateWithHost err = 0 [06:49:54]CheckOFDResponse [06:49:54]1017 (14) - 77093643461234 [06:49:54]1041 (16) - 0000000000871829 [06:49:54]1040 (4) - 67603 [06:49:54]1012 (4) - 17.05.2024 00:33 [06:49:54]1206 (1) - 0 [06:49:54]OFD Sender: Remove packet 67603 [06:49:54]ProducePacketName [06:49:54]name=ofd_packets/00067603 [06:49:54]NVStorageDeleteData [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:54]OFD Sender: No OFD packet to send [06:52:59]OFD Sender: No OFD packet to send [06:53:04]OFD Sender: No OFD packet to send [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]OFD Sender: No OFD packet to send [06:54:24]OFD Sender: No OFD packet to send [06:54:29]OFD Sender: No OFD packet to send [06:54:34]OFD Sender: No OFD packet to send [06:54:39]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:54]OFD Sender: No OFD packet to send [06:54:59]OFD Sender: No OFD packet to send [06:55:04]OFD Sender: No OFD packet to send [06:55:09]OFD Sender: No OFD packet to send [06:55:14]OFD Sender: No OFD packet to send [06:55:19]OFD Sender: No OFD packet to send [06:55:24]OFD Sender: No OFD packet to send [06:55:29]OFD Sender: No OFD packet to send [06:55:34]OFD Sender: No OFD packet to send [06:55:39]OFD Sender: No OFD packet to send [06:55:44]OFD Sender: No OFD packet to send [06:55:49]OFD Sender: No OFD packet to send [06:55:54]OFD Sender: No OFD packet to send [06:55:59]OFD Sender: No OFD packet to send [06:56:04]OFD Sender: No OFD packet to send [06:56:09]OFD Sender: No OFD packet to send [06:56:14]OFD Sender: No OFD packet to send [06:56:19]OFD Sender: No OFD packet to send [06:56:24]OFD Sender: No OFD packet to send [06:56:29]OFD Sender: No OFD packet to send [06:56:34]OFD Sender: No OFD packet to send [06:56:39]OFD Sender: No OFD packet to send [06:56:44]OFD Sender: No OFD packet to send [06:56:49]OFD Sender: No OFD packet to send [06:56:54]OFD Sender: No OFD packet to send [06:56:59]OFD Sender: No OFD packet to send [06:57:04]OFD Sender: No OFD packet to send [06:57:09]OFD Sender: No OFD packet to send [06:57:14]OFD Sender: No OFD packet to send [06:57:19]OFD Sender: No OFD packet to send [06:57:24]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:02]accept exits with 7 [07:08:02]New connection [07:08:02]New thread 3067538788 created [07:08:02]Thread 3067395428 joined [07:08:02]Waiting for new connection... [07:08:02] Sock 7.Parse request [07:08:02]Sock 7.Check first char [07:08:02]Sock 7.First char is OK [07:08:02]request: POST /json_proto HTTP/1.0 [07:08:02]Method: POST [07:08:02]URL: /json_proto [07:08:02]Method is POST - this is cgi request [07:08:02]url: /json_proto [07:08:02]query_string will be loaded in cgi processing [07:08:02]execute_cgi json_proto POST (null) [07:08:02]execute_cgi path=json_proto method=POST [07:08:02]POST find Content-Length [07:08:02]Host: 172.17.41.195:8080 [07:08:02]Content-Length: 670 [07:08:02]Content-Type: application/json [07:08:02] [07:08:02]POST finish read [07:08:02]Found Content-Length = 670 [07:08:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507690", "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" ] } } [07:08:02]execute_script... [07:08: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)507690", "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" ] } } [07:08:02]POST & json_proto [07:08:02]process_json_proto [07:08:02]json parsed OK: [07:08:02]protocol is kg_v1.0 [07:08:02]action value=close_receipt [07:08:02]process_action close_receipt [07:08:02]cmd_close_receipt [07:08:02]MH_GetDate [07:08:02]Write to MH i2c: F0 00 00 93 07 89 [07:08:02]Write i2c OK [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: F0 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: F0 09 00 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: F0 09 00 93 07 00 54 02 47 66 FC 21 6F 64 85 [07:08:02]GetLastDocTimeStamp 1715927901 [07:08:02]current date 1715929684 [07:08:02]FM_GetShiftState [07:08:02]SAM_PROTO_GetShiftState [07:08:02]wFMCommunicate request_size=4 [07:08:02]MH_SAM_APDU [07:08:02]CAPDU: 80 13 01 00 [07:08:02]Write to MH i2c: E2 08 00 94 07 80 13 01 00 00 00 00 00 18 [07:08:02]Write i2c OK [07:08:02]MH_I2C_Read... [07:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:02]Read from MH i2c: E2 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: E2 0E 00 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: E2 0E 00 94 07 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 9E [07:08:02]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [07:08:02]wFMCommunicate OK [07:08:02]SAM_PROTO_GetShiftState done [07:08:02]FM_GetShiftState done [07:08:02]opened in 1715905068 [07:08:02]opened+sec_in_day 1715991468 [07:08:02]quantity*price = 50036 [07:08:02]sum+1 = 50037 [07:08:02]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 СНО: Общий режим Чек 13 17.05.2024 07:08 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67604 ФПД: 272890684865521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T070804&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67604&fm=272890684865521&tin=02508201610067®Number=0000000000091845&sum=50000 [07:08:03]StoreToDocumentArchive [07:08:03]shift 358 fd 67604 [07:08:03]save to /storage/0358/doc_00067604 [07:08:03]save last doc name /storage/0358/doc_00067604 to /storage/kkm_last_doc_name [07:08:03]save OK [07:08:03]Clear old archive folders... [07:08:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:08:03]tlvbuf is 0162F110 [07:08:03]SAM_PROTO_ClearQueue [07:08:03]wFMCommunicate request_size=4 [07:08:03]MH_SAM_APDU [07:08:03]CAPDU: 80 09 00 00 [07:08:03]Write to MH i2c: E2 08 00 A1 07 80 09 00 00 00 00 00 00 1A [07:08:03]Write i2c OK [07:08:03]MH_I2C_Read... [07:08:03]Read from MH i2c: E2 [07:08:03]MH_I2C_Read... [07:08:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:08:03]Read from MH i2c: E2 03 00 [07:08:03]MH_I2C_Read... [07:08:03]Read from MH i2c: E2 03 00 A1 07 00 90 00 1C [07:08:03]RAPDU: 90 00 [07:08:03]wFMCommunicate OK [07:08:03]SAM_PROTO_ClearQueue done [07:08:03]KKMCreateOFDPacket [07:08:03]OFDProtocolAddRootSTLVToBuf [07:08:03]FM_MakeSignedData [07:08:03]FM_MakeSignedData [07:08:03]SAM_PROTO_SignData [07:08:03]wFMCommunicate request_size=4 [07:08:03]MH_SAM_APDU [07:08:03]CAPDU: 80 0D 01 02 [07:08:03]Write to MH i2c: E2 08 00 A2 07 80 0D 01 02 00 00 00 00 22 [07:08:03]Write i2c OK [07:08:03]MH_I2C_Read... [07:08:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:08:03]Read from MH i2c: E2 [07:08:03]MH_I2C_Read... [07:08:03]Read from MH i2c: E2 03 00 [07:08:03]MH_I2C_Read... [07:08:03]Read from MH i2c: E2 03 00 A2 07 00 90 00 1D [07:08:03]RAPDU: 90 00 [07:08:03]wFMCommunicate OK [07:08:03]wFMCommunicate request_size=255 [07:08:03]MH_SAM_APDU [07:08: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 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 0D 00 00 00 F4 03 04 00 54 02 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 [07:08:03]Write to MH i2c: E2 02 01 A3 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 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 0D 00 00 00 F4 03 04 00 54 02 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 00 00 64 [07:08:03]Write i2c OK [07:08:03]MH_I2C_Read... [07:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:03]Read from MH i2c: E2 [07:08:03]MH_I2C_Read... [07:08:03]Read from MH i2c: E2 03 00 [07:08:03]MH_I2C_Read... [07:08:03]Read from MH i2c: E2 03 00 A3 07 00 90 00 1E [07:08:03]RAPDU: 90 00 [07:08:03]wFMCommunicate OK [07:08:03]wFMCommunicate request_size=11 [07:08:03]MH_SAM_APDU [07:08:03]CAPDU: 80 0D 02 02 06 F8 31 50 55 7B F1 [07:08:03]Write to MH i2c: E2 0E 00 A4 07 80 0D 02 02 06 00 F8 31 50 55 7B F1 00 00 6B [07:08:03]Write i2c OK [07:08:03]MH_I2C_Read... [07:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:03]Read from MH i2c: E2 [07:08:03]MH_I2C_Read... [07:08:03]Read from MH i2c: E2 03 00 [07:08:03]MH_I2C_Read... [07:08:03]Read from MH i2c: E2 03 00 A4 07 00 90 00 1F [07:08:03]RAPDU: 90 00 [07:08:03]wFMCommunicate OK [07:08:03]wFMCommunicate request_size=4 [07:08:03]MH_SAM_APDU [07:08:03]CAPDU: 80 0D 03 02 [07:08:03]Write to MH i2c: E2 08 00 A5 07 80 0D 03 02 00 00 00 00 27 [07:08:03]Write i2c OK [07:08:03]MH_I2C_Read... [07:08:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:08:03]Read from MH i2c: E2 [07:08:03]MH_I2C_Read... [07:08:03]Read from MH i2c: E2 0B 00 [07:08:03]MH_I2C_Read... [07:08:03]Read from MH i2c: E2 0B 00 A5 07 00 AD EE C9 49 6A 5D 2C E4 90 00 AC [07:08:03]RAPDU: AD EE C9 49 6A 5D 2C E4 90 00 [07:08:03]wFMCommunicate OK [07:08:03]SAM_PROTO_SignData done [07:08:03]FM_MakeSignedData done [07:08:03]CreateOFDProtocolMessage [07:08:03]wFMCommunicate request_size=4 [07:08:03]MH_SAM_APDU [07:08:03]CAPDU: 80 11 00 00 [07:08:03]Write to MH i2c: E2 08 00 A6 07 80 11 00 00 00 00 00 00 27 [07:08:03]Write i2c OK [07:08:03]MH_I2C_Read... [07:08:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:03]Read from MH i2c: E2 [07:08:03]MH_I2C_Read... [07:08:03]Read from MH i2c: E2 17 00 [07:08:03]MH_I2C_Read... [07:08:03]Read from MH i2c: E2 17 00 A6 07 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:08:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:08:03]wFMCommunicate OK [07:08:03]CreateOFDProtocolMessage done [07:08:03]OFDSenderStorePacket 67604 [07:08:03]StoreOFDPacket docnum=67604 [07:08: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 10 01 00 00 72 D2 08 01 7B 3A 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 0D 00 00 00 F4 03 04 00 54 02 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F8 31 50 55 7B F1 AD EE C9 49 6A 5D 2C E4 [07:08:03]CheckFolder [07:08:03]dirname=/storage/ofd_packets [07:08:03]CheckFolder done [07:08:03]ProducePacketName [07:08:03]name=ofd_packets/00067604 [07:08:03]NVStorageSaveData ofd_packets/00067604 [07:08:03]File name is /storage/ofd_packets/00067604 [07:08:03]Write 302 bytes [07:08:03]NVStorageSaveData done [07:08:03]OFDSenderStorePacket done [07:08:03]KKMCreateOFDPacket done [07:08:03]NVStorageSaveData kkm_last_timestamp [07:08:03]File name is /storage/kkm_last_timestamp [07:08:03]Write 4 bytes [07:08:03]NVStorageSaveData done [07:08:03]ExternCall_PrintAddStr [07:08:03]wPrintStart [07:08:03]Write to MH i2c: 01 00 00 A7 07 AE [07:08:03]Write i2c OK [07:08:03]MH_I2C_Read... [07:08:03]Read from MH i2c: 01 [07:08:03]MH_I2C_Read... [07:08:03]Read from MH i2c: 01 07 00 [07:08:03]MH_I2C_Read... [07:08:03]Read from MH i2c: 01 07 00 A7 07 00 00 00 00 00 FF 0F C3 [07:08:03]RasterBufferAndPrint [07:08:03]line Счет N : (1)507690 [07:08:03]line ИНН: 02508201610067 [07:08:03]line Контрольно-Кассовый Чек [07:08:03]line ПРОДАЖА [07:08:03]line ТРК (МРК, ГНК) : 42 [07:08:03]line Товар: 2710124130 [07:08:03]line Super-92-К-5 [07:08:03]line 7.380 * 67.80 [07:08:03]line = 500.36 [07:08:03]line НДС 12% НСП 1% [07:08:03]line > о реализуемом товаре [07:08:03]line ОКРУГЛЕНИЕ: -0.36 [07:08:03]line ИТОГО: 500.00 [07:08:03]line Внесено: 500.00 [07:08:03]line СДАЧА: 0.00 [07:08:03]line НСП 1% : 4.43 [07:08:03]line НДС 12% : 53.14 [07:08:03]line Наличными: 500.00 [07:08:03]line Безнал.: 0.00 [07:08:03]line Место: АЗС № 91 "Партнер Нефть" [07:08:03]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:08:03]line СНО: Общий режим [07:08:03]line Чек 13 17.05.2024 07:08 [07:08:03]line Смена: 358 ФФД: 1.0 [07:08:03]line ЗНМ: 0300000119 [07:08:03]line РНМ: 0000000000091845 [07:08:03]line Версия ККМ: 001 [07:08:03]line ФМ: 0000000000871829 [07:08:03]line ФД: 67604 [07:08:03]line ФПД: 272890684865521 [07:08:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T070804&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67604&fm=272890684865521&tin=02508201610067®Number=0000000000091845&sum=50000 [07:08:04]OFD Sender: Processing packet 67604 [packets to send 35, broken 34] [07:08:04]ProducePacketName [07:08:04]name=ofd_packets/00067604 [07:08:04]OFD Sender: To server: pG, [07:08:04]CommunicateWithHost lk.salyk.kg:30040 [07:08:04]ConnectInit lk.salyk.kg [07:08:04]written 0, free lines is 4095 [07:08:04]ConnectInit Can't take IP for lk.salyk.kg [07:08:04]CommunicateWithHost connect error [07:08:04]CommunicateWithHost err = -1 [07:08:04]OFD Sender: Server communicate error [07:08:04]Write to MH i2c: 01 00 00 D1 07 D8 [07:08:04]Write i2c OK [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: 01 [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: 01 07 00 [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: 01 07 00 D1 07 00 00 00 00 00 C3 0C AE [07:08:04]RasterBufferAndPrint [07:08:04]line [07:08:04]line [07:08:04]line [07:08:04]line [07:08:04]line [07:08:04]written 0, free lines is 3272 [07:08:04]MH_Cut [07:08:04]Write to MH i2c: D1 01 00 D8 07 01 B1 [07:08:04]Write i2c OK [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: D1 [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: D1 01 00 [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: D1 01 00 D8 07 00 B0 [07:08:04]Write to MH i2c: 01 00 00 D9 07 E0 [07:08:04]Write i2c OK [07:08:04]MH_I2C_Read... [07:08:05]*** Cut start [07:08:05]*** Purtial cut [07:08:05]*** Stage 1: CUTSNS_PIN = 1 [07:08:05]Read from MH i2c: 01 [07:08:05]MH_I2C_Read... [07:08:05]*** Stop cut motor [07:08:05]*** Cut end [07:08:05]Read from MH i2c: 01 07 00 [07:08:05]MH_I2C_Read... [07:08:05]Read from MH i2c: 01 07 00 D9 07 00 00 00 00 00 FF 0F F5 [07:08:05]process_action close_receipt done [07:08:05]requested_data is exist [07:08:05]produce_requested_data [07:08:05]requested_item fm.sn is exist - process it [07:08:05]wFMCommunicate request_size=4 [07:08:05]MH_SAM_APDU [07:08:05]CAPDU: 80 11 00 00 [07:08:05]Write to MH i2c: E2 08 00 DA 07 80 11 00 00 00 00 00 00 5B [07:08:05]Write i2c OK [07:08:05]MH_I2C_Read... [07:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:05]Read from MH i2c: E2 [07:08:05]MH_I2C_Read... [07:08:05]Read from MH i2c: E2 17 00 [07:08:05]MH_I2C_Read... [07:08:05]Read from MH i2c: E2 17 00 DA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B1 [07:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:08:05]wFMCommunicate OK [07:08:05]requested_item fd.num is exist - process it [07:08:05]SAM_PROTO_GetFieldsCounters [07:08:05]wFMCommunicate request_size=4 [07:08:05]MH_SAM_APDU [07:08:05]CAPDU: 80 13 00 00 [07:08:05]Write to MH i2c: E2 08 00 DB 07 80 13 00 00 00 00 00 00 5E [07:08:05]Write i2c OK [07:08:05]MH_I2C_Read... [07:08:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:08:06]Read from MH i2c: E2 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 62 00 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 62 00 DB 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 14 08 01 00 0E 04 04 00 66 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 2F [07:08: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 14 08 01 00 0E 04 04 00 66 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:08:06]wFMCommunicate OK [07:08:06]SAM_PROTO_GetFieldsCounters done [07:08:06]requested_item shift.num is exist - process it [07:08:06]requested_item shift.opened is exist - process it [07:08:06]req_shift_opened [07:08:06]FM_GetShiftState [07:08:06]SAM_PROTO_GetShiftState [07:08:06]wFMCommunicate request_size=4 [07:08:06]MH_SAM_APDU [07:08:06]CAPDU: 80 13 01 00 [07:08:06]Write to MH i2c: E2 08 00 DC 07 80 13 01 00 00 00 00 00 60 [07:08:06]Write i2c OK [07:08:06]MH_I2C_Read... [07:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:06]Read from MH i2c: E2 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 0E 00 [07:08:06]MH_I2C_Read... [07:08:06]Read from MH i2c: E2 0E 00 DC 07 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 E6 [07:08:06]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [07:08:06]wFMCommunicate OK [07:08:06]SAM_PROTO_GetShiftState done [07:08:06]FM_GetShiftState done [07:08:06]req_shift_opened done [07:08:06]requested_item shift.open_date is exist - process it [07:08:06]req_shift_open_date [07:08:06]req_shift_open_date done [07:08:06]produce_requested_data done [07:08:06]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67604,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [07:08:06]process_action_free close_receipt [07:08:06]json_value_free [07:08:06]json_value_free done [07:08:06]process_json_proto returns [07:08:06]Send response to host [07:08:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67604,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [07:08:06]free response buf [07:08:06]execute_script done [07:08:06]execute_script returns [07:08:06]free content buf [07:08:06]Sock 7.Close socket [07:08:06]Sock 7.Thread stoped [07:08:09]OFD Sender: Processing packet 67604 [packets to send 35, broken 34] [07:08:09]ProducePacketName [07:08:09]name=ofd_packets/00067604 [07:08:09]OFD Sender: To server: pG, [07:08:09]CommunicateWithHost lk.salyk.kg:30040 [07:08:09]ConnectInit lk.salyk.kg [07:08:09]ConnectInit Can't take IP for lk.salyk.kg [07:08:09]CommunicateWithHost connect error [07:08:09]CommunicateWithHost err = -1 [07:08:09]OFD Sender: Server communicate error [07:08:14]OFD Sender: Processing packet 67604 [packets to send 35, broken 34] [07:08:14]ProducePacketName [07:08:14]name=ofd_packets/00067604 [07:08:14]OFD Sender: To server: pG, [07:08:14]CommunicateWithHost lk.salyk.kg:30040 [07:08:14]ConnectInit lk.salyk.kg [07:08:14]ConnectInit Can't take IP for lk.salyk.kg [07:08:14]CommunicateWithHost connect error [07:08:14]CommunicateWithHost err = -1 [07:08:14]OFD Sender: Server communicate error [07:08:19]OFD Sender: Processing packet 67604 [packets to send 35, broken 34] [07:08:19]ProducePacketName [07:08:19]name=ofd_packets/00067604 [07:08:19]OFD Sender: To server: pG, [07:08:19]CommunicateWithHost lk.salyk.kg:30040 [07:08:19]ConnectInit lk.salyk.kg [07:08:19]Connected sock=7 [07:08:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 72 D2 08 01 7B 3A 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 0D 00 00 00 F4 03 04 00 54 02 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F8 31 50 55 7B F1 AD EE C9 49 6A 5D 2C E4 [07:08: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 A9 8C 47 00 93 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 14 08 01 00 F4 03 04 00 3C AA 46 66 B6 04 01 00 00 BD 7C 33 BD FC FE 3C AD [07:08:19]CommunicateWithHost err = 0 [07:08:19]CheckOFDResponse [07:08:19]1017 (14) - 77093643461234 [07:08:19]1041 (16) - 0000000000871829 [07:08:19]1040 (4) - 67604 [07:08:19]1012 (4) - 17.05.2024 00:52 [07:08:19]1206 (1) - 0 [07:08:19]OFD Sender: Remove packet 67604 [07:08:19]ProducePacketName [07:08:19]name=ofd_packets/00067604 [07:08:19]NVStorageDeleteData [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:30]OFD Sender: No OFD packet to send [07:09:35]OFD Sender: No OFD packet to send [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:35]OFD Sender: No OFD packet to send [07:13:40]OFD Sender: No OFD packet to send [07:13:45]OFD Sender: No OFD packet to send [07:13:50]OFD Sender: No OFD packet to send [07:13:55]OFD Sender: No OFD packet to send [07:14:00]OFD Sender: No OFD packet to send [07:14:05]OFD Sender: No OFD packet to send [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:35]OFD Sender: No OFD packet to send [07:14:40]OFD Sender: No OFD packet to send [07:14:45]OFD Sender: No OFD packet to send [07:14:50]OFD Sender: No OFD packet to send [07:14:55]OFD Sender: No OFD packet to send [07:15:00]OFD Sender: No OFD packet to send [07:15:05]OFD Sender: No OFD packet to send [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:50]OFD Sender: No OFD packet to send [07:15:55]OFD Sender: No OFD packet to send [07:16:00]OFD Sender: No OFD packet to send [07:16:05]OFD Sender: No OFD packet to send [07:16:10]OFD Sender: No OFD packet to send [07:16:15]OFD Sender: No OFD packet to send [07:16:20]OFD Sender: No OFD packet to send [07:16:25]OFD Sender: No OFD packet to send [07:16:30]OFD Sender: No OFD packet to send [07:16:35]OFD Sender: No OFD packet to send [07:16:40]OFD Sender: No OFD packet to send [07:16:45]OFD Sender: No OFD packet to send [07:16:50]OFD Sender: No OFD packet to send [07:16:55]OFD Sender: No OFD packet to send [07:17:00]OFD Sender: No OFD packet to send [07:17:05]OFD Sender: No OFD packet to send [07:17:10]OFD Sender: No OFD packet to send [07:17:15]OFD Sender: No OFD packet to send [07:17:20]OFD Sender: No OFD packet to send [07:17:25]OFD Sender: No OFD packet to send [07:17:30]OFD Sender: No OFD packet to send [07:17:35]OFD Sender: No OFD packet to send [07:17:40]OFD Sender: No OFD packet to send [07:17:45]OFD Sender: No OFD packet to send [07:17:50]OFD Sender: No OFD packet to send [07:17:55]OFD Sender: No OFD packet to send [07:18:00]OFD Sender: No OFD packet to send [07:18:05]OFD Sender: No OFD packet to send [07:18:10]OFD Sender: No OFD packet to send [07:18:15]OFD Sender: No OFD packet to send [07:18:20]OFD Sender: No OFD packet to send [07:18:25]OFD Sender: No OFD packet to send [07:18:30]OFD Sender: No OFD packet to send [07:18:35]OFD Sender: No OFD packet to send [07:18:40]OFD Sender: No OFD packet to send [07:18:45]OFD Sender: No OFD packet to send [07:18:50]OFD Sender: No OFD packet to send [07:18:55]OFD Sender: No OFD packet to send [07:19:00]OFD Sender: No OFD packet to send [07:19:05]OFD Sender: No OFD packet to send [07:19:10]OFD Sender: No OFD packet to send [07:19:15]OFD Sender: No OFD packet to send [07:19:20]OFD Sender: No OFD packet to send [07:19:25]OFD Sender: No OFD packet to send [07:19:30]OFD Sender: No OFD packet to send [07:19:35]OFD Sender: No OFD packet to send [07:19:40]OFD Sender: No OFD packet to send [07:19:45]OFD Sender: No OFD packet to send [07:19:50]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:38]accept exits with 10 [07:24:38]New connection [07:24:38]New thread 3067395428 created [07:24:38]Thread 3067538788 joined [07:24:38]Waiting for new connection... [07:24:38] Sock 10.Parse request [07:24:38]Sock 10.Check first char [07:24:38]Sock 10.First char is OK [07:24:38]request: POST /json_proto HTTP/1.0 [07:24:38]Method: POST [07:24:38]URL: /json_proto [07:24:38]Method is POST - this is cgi request [07:24:38]url: /json_proto [07:24:38]query_string will be loaded in cgi processing [07:24:38]execute_cgi json_proto POST (null) [07:24:38]execute_cgi path=json_proto method=POST [07:24:38]POST find Content-Length [07:24:38]Host: 172.17.41.195:8080 [07:24:38]Content-Length: 1179 [07:24:38]Content-Type: application/json [07:24:38] [07:24:38]POST finish read [07:24:38]Found Content-Length = 1179 [07:24: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507691\u000A17.05.2024 07:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3735.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:38]execute_script... [07:24: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507691\u000A17.05.2024 07:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3735.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:38]POST & json_proto [07:24:38]process_json_proto [07:24:38]json parsed OK: [07:24:38]protocol is kg_v1.0 [07:24:38]action value=print_text [07:24:38]process_action print_text [07:24:38]cmd_print_text [07:24:38]ExternCall_PrintAddStr [07:24:38]wPrintStart [07:24:38]Write to MH i2c: 01 00 00 DD 07 E4 [07:24:38]Write i2c OK [07:24:38]MH_I2C_Read... [07:24:38]Read from MH i2c: 01 [07:24:38]MH_I2C_Read... [07:24:38]Read from MH i2c: 01 07 00 [07:24:38]MH_I2C_Read... [07:24:38]Read from MH i2c: 01 07 00 DD 07 00 00 00 00 00 FF 0F F9 [07:24:38]RasterBufferAndPrint [07:24:38]line *****ТОВАРНЫЙ ЧЕК***** [07:24:38]line АЗС-91 [07:24:38]line Партнер нефть [07:24:38]line 02508201610067 [07:24:38]line Кассир : Адишов И. [07:24:38]line Счет N : (1)507691 [07:24:38]line 17.05.2024 07:07 [07:24:38]line ПРОДАЖА [07:24:38]line ТРК (МРК, ГНК): 11 [07:24:38]line Вид ГСМ : 2710194210 [07:24:38]line ДТ-К-5 [07:24:38]line 50.000 x 74.70 [07:24:38]line ИТОГ: 3735.00 [07:24:38]line Тип оплаты: Талоны: Топливная Карта [07:24:38]line 02750 [07:24:38]line ______________________ [07:24:38]line (подпись) [07:24:38]written 0, free lines is 4095 [07:24:38]Write to MH i2c: 01 00 00 F1 07 F8 [07:24:38]Write i2c OK [07:24:38]MH_I2C_Read... [07:24:38]Read from MH i2c: 01 [07:24:38]MH_I2C_Read... [07:24:38]Read from MH i2c: 01 07 00 [07:24:38]MH_I2C_Read... [07:24:38]Read from MH i2c: 01 07 00 F1 07 00 00 00 00 00 0D 0E 1A [07:24:38]RasterBufferAndPrint [07:24:38]line [07:24:38]line [07:24:38]line [07:24:38]line [07:24:38]line [07:24:38]written 0, free lines is 3598 [07:24:38]MH_Cut [07:24:38]Write to MH i2c: D1 01 00 F8 07 01 D1 [07:24:38]Write i2c OK [07:24:38]MH_I2C_Read... [07:24:38]Read from MH i2c: D1 [07:24:38]MH_I2C_Read... [07:24:38]Read from MH i2c: D1 01 00 [07:24:38]MH_I2C_Read... [07:24:38]Read from MH i2c: D1 01 00 F8 07 00 D0 [07:24:38]Write to MH i2c: 01 00 00 F9 07 00 [07:24:38]Write i2c OK [07:24:38]MH_I2C_Read... [07:24:39]*** Cut start [07:24:39]*** Purtial cut [07:24:39]*** CUTSNS_PIN = 0 [07:24:39]*** Stage 1: CUTSNS_PIN = 1 [07:24:41]Read from MH i2c: 01 [07:24:41]MH_I2C_Read... [07:24:41]*** Stop cut motor [07:24:41]*** Cut end [07:24:41]Read from MH i2c: 01 07 00 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: 01 07 00 F9 07 00 00 00 00 00 FF 0F 15 [07:24:41]process_action print_text done [07:24:41]requested_data is exist [07:24:41]produce_requested_data [07:24:41]requested_item fm.sn is exist - process it [07:24:41]wFMCommunicate request_size=4 [07:24:41]MH_SAM_APDU [07:24:41]CAPDU: 80 11 00 00 [07:24:41]Write to MH i2c: E2 08 00 FA 07 80 11 00 00 00 00 00 00 7B [07:24:41]Write i2c OK [07:24:41]MH_I2C_Read... [07:24:41]OFD Sender: No OFD packet to send [07:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:41]Read from MH i2c: E2 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 17 00 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 17 00 FA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D1 [07:24: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:24:41]wFMCommunicate OK [07:24:41]requested_item fd.num is exist - process it [07:24:41]SAM_PROTO_GetFieldsCounters [07:24:41]wFMCommunicate request_size=4 [07:24:41]MH_SAM_APDU [07:24:41]CAPDU: 80 13 00 00 [07:24:41]Write to MH i2c: E2 08 00 FB 07 80 13 00 00 00 00 00 00 7E [07:24:41]Write i2c OK [07:24:41]MH_I2C_Read... [07:24:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:24:41]Read from MH i2c: E2 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 62 00 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 62 00 FB 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 14 08 01 00 0E 04 04 00 66 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 4F [07:24: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 14 08 01 00 0E 04 04 00 66 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:24:41]wFMCommunicate OK [07:24:41]SAM_PROTO_GetFieldsCounters done [07:24:41]requested_item shift.num is exist - process it [07:24:41]requested_item shift.opened is exist - process it [07:24:41]req_shift_opened [07:24:41]FM_GetShiftState [07:24:41]SAM_PROTO_GetShiftState [07:24:41]wFMCommunicate request_size=4 [07:24:41]MH_SAM_APDU [07:24:41]CAPDU: 80 13 01 00 [07:24:41]Write to MH i2c: E2 08 00 FC 07 80 13 01 00 00 00 00 00 80 [07:24:41]Write i2c OK [07:24:41]MH_I2C_Read... [07:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:41]Read from MH i2c: E2 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 0E 00 [07:24:41]MH_I2C_Read... [07:24:41]Read from MH i2c: E2 0E 00 FC 07 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 06 [07:24:41]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [07:24:41]wFMCommunicate OK [07:24:41]SAM_PROTO_GetShiftState done [07:24:41]FM_GetShiftState done [07:24:41]req_shift_opened done [07:24:41]requested_item shift.open_date is exist - process it [07:24:41]req_shift_open_date [07:24:41]req_shift_open_date done [07:24:41]produce_requested_data done [07:24:41]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67604,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [07:24:41]process_action_free print_text [07:24:41]json_value_free [07:24:41]json_value_free done [07:24:41]process_json_proto returns [07:24:41]Send response to host [07:24:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67604,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [07:24:41]free response buf [07:24:41]execute_script done [07:24:41]execute_script returns [07:24:41]free content buf [07:24:41]Sock 10.Close socket [07:24:41]Sock 10.Thread stoped [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:05]accept exits with 7 [07:33:05]New connection [07:33:05]New thread 3067538788 created [07:33:05]Thread 3067395428 joined [07:33:05]Waiting for new connection... [07:33:05] Sock 7.Parse request [07:33:05]Sock 7.Check first char [07:33:05]Sock 7.First char is OK [07:33:05]request: POST /json_proto HTTP/1.0 [07:33:05]Method: POST [07:33:05]URL: /json_proto [07:33:05]Method is POST - this is cgi request [07:33:05]url: /json_proto [07:33:05]query_string will be loaded in cgi processing [07:33:05]execute_cgi json_proto POST (null) [07:33:05]execute_cgi path=json_proto method=POST [07:33:05]POST find Content-Length [07:33:05]Host: 172.17.41.195:8080 [07:33:05]Content-Length: 640 [07:33:05]Content-Type: application/json [07:33:05] [07:33:05]POST finish read [07:33:05]Found Content-Length = 640 [07:33:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.000, "sum" : 668.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 668.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:05]execute_script... [07:33: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)507692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.000, "sum" : 668.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 668.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:05]POST & json_proto [07:33:05]process_json_proto [07:33:05]json parsed OK: [07:33:05]protocol is kg_v1.0 [07:33:05]action value=close_receipt [07:33:05]process_action close_receipt [07:33:05]cmd_close_receipt [07:33:05]MH_GetDate [07:33:05]Write to MH i2c: F0 00 00 FD 07 F3 [07:33:05]Write i2c OK [07:33:05]MH_I2C_Read... [07:33:05]Read from MH i2c: F0 [07:33:05]MH_I2C_Read... [07:33:05]Read from MH i2c: F0 09 00 [07:33:05]MH_I2C_Read... [07:33:05]Read from MH i2c: F0 09 00 FD 07 00 33 08 47 66 FC 21 6F 64 D4 [07:33:05]GetLastDocTimeStamp 1715929684 [07:33:05]current date 1715931187 [07:33:05]FM_GetShiftState [07:33:05]SAM_PROTO_GetShiftState [07:33:05]wFMCommunicate request_size=4 [07:33:05]MH_SAM_APDU [07:33:05]CAPDU: 80 13 01 00 [07:33:05]Write to MH i2c: E2 08 00 FE 07 80 13 01 00 00 00 00 00 82 [07:33:05]Write i2c OK [07:33:05]MH_I2C_Read... [07:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:05]Read from MH i2c: E2 [07:33:05]MH_I2C_Read... [07:33:05]Read from MH i2c: E2 0E 00 [07:33:05]MH_I2C_Read... [07:33:05]Read from MH i2c: E2 0E 00 FE 07 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 08 [07:33:05]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [07:33:05]wFMCommunicate OK [07:33:05]SAM_PROTO_GetShiftState done [07:33:05]FM_GetShiftState done [07:33:05]opened in 1715905068 [07:33:05]opened+sec_in_day 1715991468 [07:33:05]quantity*price = 66800 [07:33:05]sum+1 = 66801 [07:33:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 668.00 НСП 1% : 5.91 НДС 12% : 70.94 Наличными: 668.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 14 17.05.2024 07:33 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67605 ФПД: 10558079608312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T073307&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67605&fm=10558079608312&tin=02508201610067®Number=0000000000091845&sum=66800 [07:33:06]StoreToDocumentArchive [07:33:06]shift 358 fd 67605 [07:33:06]save to /storage/0358/doc_00067605 [07:33:06]save last doc name /storage/0358/doc_00067605 to /storage/kkm_last_doc_name [07:33:06]save OK [07:33:06]Clear old archive folders... [07:33:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:33:06]tlvbuf is 01639620 [07:33:06]SAM_PROTO_ClearQueue [07:33:06]wFMCommunicate request_size=4 [07:33:06]MH_SAM_APDU [07:33:06]CAPDU: 80 09 00 00 [07:33:06]Write to MH i2c: E2 08 00 0B 08 80 09 00 00 00 00 00 00 85 [07:33:06]Write i2c OK [07:33:06]MH_I2C_Read... [07:33:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:33:06]Read from MH i2c: E2 [07:33:06]MH_I2C_Read... [07:33:06]Read from MH i2c: E2 03 00 [07:33:06]MH_I2C_Read... [07:33:06]Read from MH i2c: E2 03 00 0B 08 00 90 00 87 [07:33:06]RAPDU: 90 00 [07:33:06]wFMCommunicate OK [07:33:06]SAM_PROTO_ClearQueue done [07:33:06]KKMCreateOFDPacket [07:33:06]OFDProtocolAddRootSTLVToBuf [07:33:06]FM_MakeSignedData [07:33:06]FM_MakeSignedData [07:33:06]SAM_PROTO_SignData [07:33:06]wFMCommunicate request_size=4 [07:33:06]MH_SAM_APDU [07:33:06]CAPDU: 80 0D 01 02 [07:33:06]Write to MH i2c: E2 08 00 0C 08 80 0D 01 02 00 00 00 00 8D [07:33:06]Write i2c OK [07:33:06]MH_I2C_Read... [07:33:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:33:06]Read from MH i2c: E2 [07:33:06]MH_I2C_Read... [07:33:06]Read from MH i2c: E2 03 00 [07:33:06]MH_I2C_Read... [07:33:06]Read from MH i2c: E2 03 00 0C 08 00 90 00 88 [07:33:06]RAPDU: 90 00 [07:33:06]wFMCommunicate OK [07:33:06]wFMCommunicate request_size=255 [07:33:06]MH_SAM_APDU [07:33:06]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 10 27 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 F0 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 1B 00 00 00 00 07 04 06 00 F0 04 01 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 33 08 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 09 [07:33:06]Write to MH i2c: E2 02 01 0D 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 10 27 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 F0 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 1B 00 00 00 00 07 04 06 00 F0 04 01 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 33 08 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 09 00 00 8A [07:33:06]Write i2c OK [07:33:06]MH_I2C_Read... [07:33:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:06]Read from MH i2c: E2 [07:33:06]MH_I2C_Read... [07:33:06]Read from MH i2c: E2 03 00 [07:33:06]MH_I2C_Read... [07:33:06]Read from MH i2c: E2 03 00 0D 08 00 90 00 89 [07:33:06]RAPDU: 90 00 [07:33:06]wFMCommunicate OK [07:33:06]wFMCommunicate request_size=10 [07:33:06]MH_SAM_APDU [07:33:06]CAPDU: 80 0D 02 02 05 9A 3E 95 A5 F8 [07:33:06]Write to MH i2c: E2 0D 00 0E 08 80 0D 02 02 05 00 9A 3E 95 A5 F8 00 00 A4 [07:33:06]Write i2c OK [07:33:06]MH_I2C_Read... [07:33:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:06]Read from MH i2c: E2 [07:33:06]MH_I2C_Read... [07:33:06]Read from MH i2c: E2 03 00 [07:33:06]MH_I2C_Read... [07:33:06]Read from MH i2c: E2 03 00 0E 08 00 90 00 8A [07:33:06]RAPDU: 90 00 [07:33:06]wFMCommunicate OK [07:33:06]wFMCommunicate request_size=4 [07:33:06]MH_SAM_APDU [07:33:06]CAPDU: 80 0D 03 02 [07:33:06]Write to MH i2c: E2 08 00 0F 08 80 0D 03 02 00 00 00 00 92 [07:33:06]Write i2c OK [07:33:06]MH_I2C_Read... [07:33:06]OFD Sender: No OFD packet to send [07:33:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:33:06]Read from MH i2c: E2 [07:33:06]MH_I2C_Read... [07:33:06]Read from MH i2c: E2 0B 00 [07:33:06]MH_I2C_Read... [07:33:06]Read from MH i2c: E2 0B 00 0F 08 00 D7 73 26 2E 0D EB 07 5D 90 00 8D [07:33:06]RAPDU: D7 73 26 2E 0D EB 07 5D 90 00 [07:33:06]wFMCommunicate OK [07:33:06]SAM_PROTO_SignData done [07:33:06]FM_MakeSignedData done [07:33:06]CreateOFDProtocolMessage [07:33:06]wFMCommunicate request_size=4 [07:33:06]MH_SAM_APDU [07:33:06]CAPDU: 80 11 00 00 [07:33:06]Write to MH i2c: E2 08 00 10 08 80 11 00 00 00 00 00 00 92 [07:33:06]Write i2c OK [07:33:06]MH_I2C_Read... [07:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:06]Read from MH i2c: E2 [07:33:06]MH_I2C_Read... [07:33:06]Read from MH i2c: E2 17 00 [07:33:06]MH_I2C_Read... [07:33:06]Read from MH i2c: E2 17 00 10 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E8 [07:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:33:06]wFMCommunicate OK [07:33:06]CreateOFDProtocolMessage done [07:33:06]OFDSenderStorePacket 67605 [07:33:06]StoreOFDPacket docnum=67605 [07:33: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 A4 71 07 01 CE 46 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 10 27 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 F0 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 1B 00 00 00 00 07 04 06 00 F0 04 01 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 33 08 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 09 9A 3E 95 A5 F8 D7 73 26 2E 0D EB 07 5D [07:33:06]CheckFolder [07:33:06]dirname=/storage/ofd_packets [07:33:06]CheckFolder done [07:33:06]ProducePacketName [07:33:06]name=ofd_packets/00067605 [07:33:06]NVStorageSaveData ofd_packets/00067605 [07:33:06]File name is /storage/ofd_packets/00067605 [07:33:06]Write 301 bytes [07:33:06]NVStorageSaveData done [07:33:06]OFDSenderStorePacket done [07:33:06]KKMCreateOFDPacket done [07:33:06]NVStorageSaveData kkm_last_timestamp [07:33:06]File name is /storage/kkm_last_timestamp [07:33:06]Write 4 bytes [07:33:06]NVStorageSaveData done [07:33:06]ExternCall_PrintAddStr [07:33:06]wPrintStart [07:33:06]Write to MH i2c: 01 00 00 11 08 19 [07:33:06]Write i2c OK [07:33:06]MH_I2C_Read... [07:33:06]Read from MH i2c: 01 [07:33:06]MH_I2C_Read... [07:33:06]Read from MH i2c: 01 07 00 [07:33:06]MH_I2C_Read... [07:33:06]Read from MH i2c: 01 07 00 11 08 00 00 00 00 00 FF 0F 2E [07:33:06]RasterBufferAndPrint [07:33:06]line Счет N : (1)507692 [07:33:06]line ИНН: 02508201610067 [07:33:06]line Контрольно-Кассовый Чек [07:33:06]line ПРОДАЖА [07:33:06]line ТРК (МРК, ГНК) : 43 [07:33:06]line Товар: 2710124130 [07:33:06]line Аи-92-К-5 [07:33:06]line 10.000 * 66.80 [07:33:06]line = 668.00 [07:33:06]line НДС 12% НСП 1% [07:33:06]line > о реализуемом товаре [07:33:06]line ИТОГО: 668.00 [07:33:06]line НСП 1% : 5.91 [07:33:06]line НДС 12% : 70.94 [07:33:06]line Наличными: 668.00 [07:33:06]line Безнал.: 0.00 [07:33:06]line Место: АЗС № 91 "Партнер Нефть" [07:33:06]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:33:06]line СНО: Общий режим [07:33:06]line Чек 14 17.05.2024 07:33 [07:33:06]line Смена: 358 ФФД: 1.0 [07:33:06]line ЗНМ: 0300000119 [07:33:06]line РНМ: 0000000000091845 [07:33:06]line Версия ККМ: 001 [07:33:06]line ФМ: 0000000000871829 [07:33:06]line ФД: 67605 [07:33:06]line ФПД: 10558079608312 [07:33:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T073307&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67605&fm=10558079608312&tin=02508201610067®Number=0000000000091845&sum=66800 [07:33:06]OFD Sender: Processing packet 67605 [packets to send 35, broken 34] [07:33:06]ProducePacketName [07:33:07]name=ofd_packets/00067605 [07:33:07]OFD Sender: To server: pG, [07:33:07]CommunicateWithHost lk.salyk.kg:30040 [07:33:07]ConnectInit lk.salyk.kg [07:33:07]written 0, free lines is 4095 [07:33:07]Connected sock=10 [07:33: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 A4 71 07 01 CE 46 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 10 27 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 F0 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 04 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 1B 00 00 00 00 07 04 06 00 F0 04 01 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 33 08 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 09 9A 3E 95 A5 F8 D7 73 26 2E 0D EB 07 5D [07:33: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 AB 33 47 00 F7 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 15 08 01 00 F4 03 04 00 0C B0 46 66 B6 04 01 00 00 D7 5B C3 84 2D 8E 08 40 [07:33:07]CommunicateWithHost err = 0 [07:33:07]CheckOFDResponse [07:33:07]1017 (14) - 77093643461234 [07:33:07]1041 (16) - 0000000000871829 [07:33:07]1040 (4) - 67605 [07:33:07]1012 (4) - 17.05.2024 01:17 [07:33:07]1206 (1) - 0 [07:33:07]OFD Sender: Remove packet 67605 [07:33:07]ProducePacketName [07:33:07]name=ofd_packets/00067605 [07:33:07]NVStorageDeleteData [07:33:07]Write to MH i2c: 01 00 00 38 08 40 [07:33:07]Write i2c OK [07:33:07]MH_I2C_Read... [07:33:07]Read from MH i2c: 01 [07:33:07]MH_I2C_Read... [07:33:07]Read from MH i2c: 01 07 00 [07:33:07]MH_I2C_Read... [07:33:07]Read from MH i2c: 01 07 00 38 08 00 00 00 00 00 0B 0D 5F [07:33:07]RasterBufferAndPrint [07:33:07]line [07:33:07]line [07:33:07]line [07:33:07]line [07:33:07]line [07:33:07]written 0, free lines is 3345 [07:33:07]MH_Cut [07:33:07]Write to MH i2c: D1 01 00 3F 08 01 19 [07:33:07]Write i2c OK [07:33:07]MH_I2C_Read... [07:33:07]Read from MH i2c: D1 [07:33:07]MH_I2C_Read... [07:33:07]Read from MH i2c: D1 01 00 [07:33:07]MH_I2C_Read... [07:33:07]Read from MH i2c: D1 01 00 3F 08 00 18 [07:33:07]Write to MH i2c: 01 00 00 40 08 48 [07:33:07]Write i2c OK [07:33:07]MH_I2C_Read... [07:33:08]OFD Sender: No OFD packet to send [07:33:08]*** Cut start [07:33:08]*** Purtial cut [07:33:08]*** Stage 1: CUTSNS_PIN = 1 [07:33:08]Read from MH i2c: 01 [07:33:08]MH_I2C_Read... [07:33:08]*** Stop cut motor [07:33:08]*** Cut end [07:33:08]Read from MH i2c: 01 07 00 [07:33:08]MH_I2C_Read... [07:33:08]Read from MH i2c: 01 07 00 40 08 00 00 00 00 00 FF 0F 5D [07:33:08]process_action close_receipt done [07:33:08]requested_data is exist [07:33:08]produce_requested_data [07:33:08]requested_item fm.sn is exist - process it [07:33:08]wFMCommunicate request_size=4 [07:33:08]MH_SAM_APDU [07:33:08]CAPDU: 80 11 00 00 [07:33:08]Write to MH i2c: E2 08 00 41 08 80 11 00 00 00 00 00 00 C3 [07:33:08]Write i2c OK [07:33:08]MH_I2C_Read... [07:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:08]Read from MH i2c: E2 [07:33:08]MH_I2C_Read... [07:33:08]Read from MH i2c: E2 17 00 [07:33:08]MH_I2C_Read... [07:33:08]Read from MH i2c: E2 17 00 41 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 19 [07:33: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:33:08]wFMCommunicate OK [07:33:08]requested_item fd.num is exist - process it [07:33:08]SAM_PROTO_GetFieldsCounters [07:33:08]wFMCommunicate request_size=4 [07:33:08]MH_SAM_APDU [07:33:08]CAPDU: 80 13 00 00 [07:33:08]Write to MH i2c: E2 08 00 42 08 80 13 00 00 00 00 00 00 C6 [07:33:08]Write i2c OK [07:33:08]MH_I2C_Read... [07:33:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:33:08]Read from MH i2c: E2 [07:33:08]MH_I2C_Read... [07:33:08]Read from MH i2c: E2 62 00 [07:33:08]MH_I2C_Read... [07:33:08]Read from MH i2c: E2 62 00 42 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 15 08 01 00 0E 04 04 00 66 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 9B [07:33: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 15 08 01 00 0E 04 04 00 66 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:33:08]wFMCommunicate OK [07:33:08]SAM_PROTO_GetFieldsCounters done [07:33:08]requested_item shift.num is exist - process it [07:33:08]requested_item shift.opened is exist - process it [07:33:08]req_shift_opened [07:33:08]FM_GetShiftState [07:33:08]SAM_PROTO_GetShiftState [07:33:08]wFMCommunicate request_size=4 [07:33:08]MH_SAM_APDU [07:33:08]CAPDU: 80 13 01 00 [07:33:08]Write to MH i2c: E2 08 00 43 08 80 13 01 00 00 00 00 00 C8 [07:33:08]Write i2c OK [07:33:08]MH_I2C_Read... [07:33:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:08]Read from MH i2c: E2 [07:33:08]MH_I2C_Read... [07:33:08]Read from MH i2c: E2 0E 00 [07:33:08]MH_I2C_Read... [07:33:08]Read from MH i2c: E2 0E 00 43 08 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 4E [07:33:08]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [07:33:08]wFMCommunicate OK [07:33:08]SAM_PROTO_GetShiftState done [07:33:08]FM_GetShiftState done [07:33:08]req_shift_opened done [07:33:08]requested_item shift.open_date is exist - process it [07:33:08]req_shift_open_date [07:33:08]req_shift_open_date done [07:33:08]produce_requested_data done [07:33:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67605,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [07:33:08]process_action_free close_receipt [07:33:08]json_value_free [07:33:08]json_value_free done [07:33:08]process_json_proto returns [07:33:08]Send response to host [07:33:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67605,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [07:33:08]free response buf [07:33:08]execute_script done [07:33:08]execute_script returns [07:33:08]free content buf [07:33:08]Sock 7.Close socket [07:33:08]Sock 7.Thread stoped [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:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:09]accept exits with 9 [07:47:09]New connection [07:47:09]New thread 3067395428 created [07:47:09]Thread 3067538788 joined [07:47:09]Waiting for new connection... [07:47:09] Sock 9.Parse request [07:47:09]Sock 9.Check first char [07:47:09]Sock 9.First char is OK [07:47:09]request: POST /json_proto HTTP/1.0 [07:47:09]Method: POST [07:47:09]URL: /json_proto [07:47:09]Method is POST - this is cgi request [07:47:09]url: /json_proto [07:47:09]query_string will be loaded in cgi processing [07:47:09]execute_cgi json_proto POST (null) [07:47:09]execute_cgi path=json_proto method=POST [07:47:09]POST find Content-Length [07:47:09]Host: 172.17.41.195:8080 [07:47:09]Content-Length: 796 [07:47:09]Content-Type: application/json [07:47:09] [07:47:09]POST finish read [07:47:09]Found Content-Length = 796 [07:47:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:47:09]execute_script... [07:47: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)507693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:47:09]POST & json_proto [07:47:09]process_json_proto [07:47:09]json parsed OK: [07:47:09]protocol is kg_v1.0 [07:47:09]action value=close_receipt [07:47:09]process_action close_receipt [07:47:09]cmd_close_receipt [07:47:09]MH_GetDate [07:47:09]Write to MH i2c: F0 00 00 44 08 3B [07:47:09]Write i2c OK [07:47:09]MH_I2C_Read... [07:47:09]Read from MH i2c: F0 [07:47:09]MH_I2C_Read... [07:47:09]Read from MH i2c: F0 09 00 [07:47:09]MH_I2C_Read... [07:47:09]Read from MH i2c: F0 09 00 44 08 00 80 0B 47 66 FC 21 6F 64 6C [07:47:09]GetLastDocTimeStamp 1715931187 [07:47:09]current date 1715932032 [07:47:09]FM_GetShiftState [07:47:09]SAM_PROTO_GetShiftState [07:47:09]wFMCommunicate request_size=4 [07:47:09]MH_SAM_APDU [07:47:09]CAPDU: 80 13 01 00 [07:47:09]Write to MH i2c: E2 08 00 45 08 80 13 01 00 00 00 00 00 CA [07:47:09]Write i2c OK [07:47:09]MH_I2C_Read... [07:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:09]Read from MH i2c: E2 [07:47:09]MH_I2C_Read... [07:47:09]Read from MH i2c: E2 0E 00 [07:47:09]MH_I2C_Read... [07:47:09]Read from MH i2c: E2 0E 00 45 08 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 50 [07:47:09]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [07:47:09]wFMCommunicate OK [07:47:09]SAM_PROTO_GetShiftState done [07:47:09]FM_GetShiftState done [07:47:09]opened in 1715905068 [07:47:09]opened+sec_in_day 1715991468 [07:47:09]quantity*price = 100005 [07:47:09]sum+1 = 100006 [07:47:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 15 17.05.2024 07:47 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67606 ФПД: 203295080654211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T074712&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67606&fm=203295080654211&tin=02508201610067®Number=0000000000091845&sum=100005 [07:47:11]StoreToDocumentArchive [07:47:11]shift 358 fd 67606 [07:47:11]save to /storage/0358/doc_00067606 [07:47:11]save last doc name /storage/0358/doc_00067606 to /storage/kkm_last_doc_name [07:47:11]save OK [07:47:11]Clear old archive folders... [07:47:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:47:11]tlvbuf is B6F37570 [07:47:11]SAM_PROTO_ClearQueue [07:47:11]wFMCommunicate request_size=4 [07:47:11]MH_SAM_APDU [07:47:11]CAPDU: 80 09 00 00 [07:47:11]Write to MH i2c: E2 08 00 52 08 80 09 00 00 00 00 00 00 CC [07:47:11]Write i2c OK [07:47:11]MH_I2C_Read... [07:47:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:47:11]Read from MH i2c: E2 [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: E2 03 00 [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: E2 03 00 52 08 00 90 00 CE [07:47:11]RAPDU: 90 00 [07:47:11]wFMCommunicate OK [07:47:11]SAM_PROTO_ClearQueue done [07:47:11]KKMCreateOFDPacket [07:47:11]OFDProtocolAddRootSTLVToBuf [07:47:11]FM_MakeSignedData [07:47:11]FM_MakeSignedData [07:47:11]SAM_PROTO_SignData [07:47:11]wFMCommunicate request_size=4 [07:47:11]MH_SAM_APDU [07:47:11]CAPDU: 80 0D 01 02 [07:47:11]Write to MH i2c: E2 08 00 53 08 80 0D 01 02 00 00 00 00 D4 [07:47:11]Write i2c OK [07:47:11]MH_I2C_Read... [07:47:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:47:11]Read from MH i2c: E2 [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: E2 03 00 [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: E2 03 00 53 08 00 90 00 CF [07:47:11]RAPDU: 90 00 [07:47:11]wFMCommunicate OK [07:47:11]wFMCommunicate request_size=255 [07:47:11]MH_SAM_APDU [07:47:11]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 0F 00 00 00 F4 03 04 00 80 0B 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 [07:47:11]Write to MH i2c: E2 02 01 54 08 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 0F 00 00 00 F4 03 04 00 80 0B 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 00 00 E8 [07:47:11]Write i2c OK [07:47:11]MH_I2C_Read... [07:47:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:11]Read from MH i2c: E2 [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: E2 03 00 [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: E2 03 00 54 08 00 90 00 D0 [07:47:11]RAPDU: 90 00 [07:47:11]wFMCommunicate OK [07:47:11]wFMCommunicate request_size=11 [07:47:11]MH_SAM_APDU [07:47:11]CAPDU: 80 0D 02 02 06 B8 E5 53 11 25 83 [07:47:11]Write to MH i2c: E2 0E 00 55 08 80 0D 02 02 06 00 B8 E5 53 11 25 83 00 00 8C [07:47:11]Write i2c OK [07:47:11]MH_I2C_Read... [07:47:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:11]Read from MH i2c: E2 [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: E2 03 00 [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: E2 03 00 55 08 00 90 00 D1 [07:47:11]RAPDU: 90 00 [07:47:11]wFMCommunicate OK [07:47:11]wFMCommunicate request_size=4 [07:47:11]MH_SAM_APDU [07:47:11]CAPDU: 80 0D 03 02 [07:47:11]Write to MH i2c: E2 08 00 56 08 80 0D 03 02 00 00 00 00 D9 [07:47:11]Write i2c OK [07:47:11]MH_I2C_Read... [07:47:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:47:11]Read from MH i2c: E2 [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: E2 0B 00 [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: E2 0B 00 56 08 00 1F 51 02 6E E6 93 BB 95 90 00 83 [07:47:11]RAPDU: 1F 51 02 6E E6 93 BB 95 90 00 [07:47:11]wFMCommunicate OK [07:47:11]SAM_PROTO_SignData done [07:47:11]FM_MakeSignedData done [07:47:11]CreateOFDProtocolMessage [07:47:11]wFMCommunicate request_size=4 [07:47:11]MH_SAM_APDU [07:47:11]CAPDU: 80 11 00 00 [07:47:11]Write to MH i2c: E2 08 00 57 08 80 11 00 00 00 00 00 00 D9 [07:47:11]Write i2c OK [07:47:11]MH_I2C_Read... [07:47:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:11]Read from MH i2c: E2 [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: E2 17 00 [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: E2 17 00 57 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2F [07:47: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:47:11]wFMCommunicate OK [07:47:11]CreateOFDProtocolMessage done [07:47:11]OFDSenderStorePacket 67606 [07:47:11]StoreOFDPacket docnum=67606 [07:47:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 F6 CF 08 01 09 C3 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 0F 00 00 00 F4 03 04 00 80 0B 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 B8 E5 53 11 25 83 1F 51 02 6E E6 93 BB 95 [07:47:11]CheckFolder [07:47:11]dirname=/storage/ofd_packets [07:47:11]CheckFolder done [07:47:11]ProducePacketName [07:47:11]name=ofd_packets/00067606 [07:47:11]NVStorageSaveData ofd_packets/00067606 [07:47:11]File name is /storage/ofd_packets/00067606 [07:47:11]Write 302 bytes [07:47:11]NVStorageSaveData done [07:47:11]OFDSenderStorePacket done [07:47:11]KKMCreateOFDPacket done [07:47:11]NVStorageSaveData kkm_last_timestamp [07:47:11]File name is /storage/kkm_last_timestamp [07:47:11]Write 4 bytes [07:47:11]NVStorageSaveData done [07:47:11]ExternCall_PrintAddStr [07:47:11]wPrintStart [07:47:11]Write to MH i2c: 01 00 00 58 08 60 [07:47:11]Write i2c OK [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: 01 [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: 01 07 00 [07:47:11]MH_I2C_Read... [07:47:11]Read from MH i2c: 01 07 00 58 08 00 00 00 00 00 FF 0F 75 [07:47:11]RasterBufferAndPrint [07:47:11]line Счет N : (1)507693 [07:47:11]line ИНН: 02508201610067 [07:47:11]line Контрольно-Кассовый Чек [07:47:11]line ПРОДАЖА [07:47:11]line ТРК (МРК, ГНК) : 32 [07:47:11]line Товар: 2710124130 [07:47:11]line Super-92-К-5 [07:47:11]line 14.750 * 67.80 [07:47:11]line = 1000.05 [07:47:11]line НДС 12% НСП 1% [07:47:11]line > о реализуемом товаре [07:47:11]line ИТОГО: 1000.05 [07:47:11]line НСП 1% : 8.85 [07:47:11]line НДС 12% : 106.20 [07:47:11]line Наличными: 0.00 [07:47:11]line Безнал.: 1000.05 [07:47:11]line Место: АЗС № 91 "Партнер Нефть" [07:47:11]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:47:11]line СНО: Общий режим [07:47:11]line Чек 15 17.05.2024 07:47 [07:47:11]line Смена: 358 ФФД: 1.0 [07:47:11]line ЗНМ: 0300000119 [07:47:11]line РНМ: 0000000000091845 [07:47:11]line Версия ККМ: 001 [07:47:11]line Платежная система: O! деньги [07:47:11]line ФМ: 0000000000871829 [07:47:11]line ФД: 67606 [07:47:11]line ФПД: 203295080654211 [07:47:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T074712&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67606&fm=203295080654211&tin=02508201610067®Number=0000000000091845&sum=100005 [07:47:11]OFD Sender: Processing packet 67606 [packets to send 35, broken 34] [07:47:11]ProducePacketName [07:47:11]name=ofd_packets/00067606 [07:47:11]OFD Sender: To server: pG, [07:47:11]CommunicateWithHost lk.salyk.kg:30040 [07:47:11]ConnectInit lk.salyk.kg [07:47:11]written 0, free lines is 4095 [07:47:12]Connected sock=10 [07:47:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 F6 CF 08 01 09 C3 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 0F 00 00 00 F4 03 04 00 80 0B 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 B8 E5 53 11 25 83 1F 51 02 6E E6 93 BB 95 [07:47: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 59 AD 47 00 8E C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 58 B3 46 66 B6 04 01 00 00 46 F3 CD A3 6F EA 30 EB [07:47:12]CommunicateWithHost err = 0 [07:47:12]CheckOFDResponse [07:47:12]1017 (14) - 77093643461234 [07:47:12]1041 (16) - 0000000000871829 [07:47:12]1040 (4) - 67606 [07:47:12]1012 (4) - 17.05.2024 01:31 [07:47:12]1206 (1) - 0 [07:47:12]OFD Sender: Remove packet 67606 [07:47:12]ProducePacketName [07:47:12]name=ofd_packets/00067606 [07:47:12]NVStorageDeleteData [07:47:12]Write to MH i2c: 01 00 00 81 08 89 [07:47:12]Write i2c OK [07:47:12]MH_I2C_Read... [07:47:12]Read from MH i2c: 01 [07:47:12]MH_I2C_Read... [07:47:12]Read from MH i2c: 01 07 00 [07:47:12]MH_I2C_Read... [07:47:12]Read from MH i2c: 01 07 00 81 08 00 00 00 00 00 E4 0C 80 [07:47:12]RasterBufferAndPrint [07:47:12]line [07:47:12]line [07:47:12]line [07:47:12]line [07:47:12]line [07:47:12]written 0, free lines is 3305 [07:47:12]MH_Cut [07:47:12]Write to MH i2c: D1 01 00 88 08 01 62 [07:47:12]Write i2c OK [07:47:12]MH_I2C_Read... [07:47:12]Read from MH i2c: D1 [07:47:12]MH_I2C_Read... [07:47:12]Read from MH i2c: D1 01 00 [07:47:12]MH_I2C_Read... [07:47:12]Read from MH i2c: D1 01 00 88 08 00 61 [07:47:12]Write to MH i2c: 01 00 00 89 08 91 [07:47:12]Write i2c OK [07:47:12]MH_I2C_Read... [07:47:12]OFD Sender: No OFD packet to send [07:47:13]*** Cut start [07:47:13]*** Purtial cut [07:47:13]*** CUTSNS_PIN = 0 [07:47:13]*** Stage 1: CUTSNS_PIN = 1 [07:47:15]Read from MH i2c: 01 [07:47:15]MH_I2C_Read... [07:47:15]*** Stop cut motor [07:47:15]*** Cut end [07:47:15]Read from MH i2c: 01 07 00 [07:47:15]MH_I2C_Read... [07:47:15]Read from MH i2c: 01 07 00 89 08 00 00 00 00 00 FF 0F A6 [07:47:15]process_action close_receipt done [07:47:15]requested_data is exist [07:47:15]produce_requested_data [07:47:15]requested_item fm.sn is exist - process it [07:47:15]wFMCommunicate request_size=4 [07:47:15]MH_SAM_APDU [07:47:15]CAPDU: 80 11 00 00 [07:47:15]Write to MH i2c: E2 08 00 8A 08 80 11 00 00 00 00 00 00 0C [07:47:15]Write i2c OK [07:47:15]MH_I2C_Read... [07:47:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:15]Read from MH i2c: E2 [07:47:15]MH_I2C_Read... [07:47:15]Read from MH i2c: E2 17 00 [07:47:15]MH_I2C_Read... [07:47:15]Read from MH i2c: E2 17 00 8A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 62 [07:47: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:47:15]wFMCommunicate OK [07:47:15]requested_item fd.num is exist - process it [07:47:15]SAM_PROTO_GetFieldsCounters [07:47:15]wFMCommunicate request_size=4 [07:47:15]MH_SAM_APDU [07:47:15]CAPDU: 80 13 00 00 [07:47:15]Write to MH i2c: E2 08 00 8B 08 80 13 00 00 00 00 00 00 0F [07:47:15]Write i2c OK [07:47:15]MH_I2C_Read... [07:47:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:47:15]Read from MH i2c: E2 [07:47:15]MH_I2C_Read... [07:47:15]Read from MH i2c: E2 62 00 [07:47:15]MH_I2C_Read... [07:47:15]Read from MH i2c: E2 62 00 8B 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 16 08 01 00 0E 04 04 00 66 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 E8 [07:47: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 16 08 01 00 0E 04 04 00 66 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:47:15]wFMCommunicate OK [07:47:15]SAM_PROTO_GetFieldsCounters done [07:47:15]requested_item shift.num is exist - process it [07:47:15]requested_item shift.opened is exist - process it [07:47:15]req_shift_opened [07:47:15]FM_GetShiftState [07:47:15]SAM_PROTO_GetShiftState [07:47:15]wFMCommunicate request_size=4 [07:47:15]MH_SAM_APDU [07:47:15]CAPDU: 80 13 01 00 [07:47:15]Write to MH i2c: E2 08 00 8C 08 80 13 01 00 00 00 00 00 11 [07:47:15]Write i2c OK [07:47:15]MH_I2C_Read... [07:47:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:15]Read from MH i2c: E2 [07:47:15]MH_I2C_Read... [07:47:15]Read from MH i2c: E2 0E 00 [07:47:15]MH_I2C_Read... [07:47:15]Read from MH i2c: E2 0E 00 8C 08 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 97 [07:47:15]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [07:47:15]wFMCommunicate OK [07:47:15]SAM_PROTO_GetShiftState done [07:47:15]FM_GetShiftState done [07:47:15]req_shift_opened done [07:47:15]requested_item shift.open_date is exist - process it [07:47:15]req_shift_open_date [07:47:15]req_shift_open_date done [07:47:15]produce_requested_data done [07:47:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67606,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [07:47:15]process_action_free close_receipt [07:47:15]json_value_free [07:47:15]json_value_free done [07:47:15]process_json_proto returns [07:47:15]Send response to host [07:47:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67606,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [07:47:15]free response buf [07:47:15]execute_script done [07:47:15]execute_script returns [07:47:15]free content buf [07:47:15]Sock 9.Close socket [07:47:15]Sock 9.Thread stoped [07:47:17]OFD Sender: No OFD packet to send [07:47:22]OFD Sender: No OFD packet to send [07:47:27]OFD Sender: No OFD packet to send [07:47:32]OFD Sender: No OFD packet to send [07:47:37]OFD Sender: No OFD packet to send [07:47:42]OFD Sender: No OFD packet to send [07:47:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]accept exits with 7 [07:50:27]New connection [07:50:27]New thread 3067538788 created [07:50:27]Thread 3067395428 joined [07:50:27]Waiting for new connection... [07:50:27] Sock 7.Parse request [07:50:27]Sock 7.Check first char [07:50:27]Sock 7.First char is OK [07:50:27]request: POST /json_proto HTTP/1.0 [07:50:27]Method: POST [07:50:27]URL: /json_proto [07:50:27]Method is POST - this is cgi request [07:50:27]url: /json_proto [07:50:27]query_string will be loaded in cgi processing [07:50:27]execute_cgi json_proto POST (null) [07:50:27]execute_cgi path=json_proto method=POST [07:50:27]POST find Content-Length [07:50:27]Host: 172.17.41.195:8080 [07:50:27]Content-Length: 674 [07:50:27]Content-Type: application/json [07:50:27] [07:50:27]POST finish read [07:50:27]Found Content-Length = 674 [07:50:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:27]execute_script... [07:50: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)507694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:27]POST & json_proto [07:50:27]process_json_proto [07:50:27]json parsed OK: [07:50:27]protocol is kg_v1.0 [07:50:27]action value=close_receipt [07:50:27]process_action close_receipt [07:50:27]cmd_close_receipt [07:50:27]MH_GetDate [07:50:27]Write to MH i2c: F0 00 00 8D 08 84 [07:50:27]Write i2c OK [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: F0 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: F0 09 00 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: F0 09 00 8D 08 00 45 0C 47 66 FC 21 6F 64 7B [07:50:27]GetLastDocTimeStamp 1715932032 [07:50:27]current date 1715932229 [07:50:27]FM_GetShiftState [07:50:27]SAM_PROTO_GetShiftState [07:50:27]wFMCommunicate request_size=4 [07:50:27]MH_SAM_APDU [07:50:27]CAPDU: 80 13 01 00 [07:50:27]Write to MH i2c: E2 08 00 8E 08 80 13 01 00 00 00 00 00 13 [07:50:27]Write i2c OK [07:50:27]MH_I2C_Read... [07:50:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:27]Read from MH i2c: E2 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: E2 0E 00 [07:50:27]MH_I2C_Read... [07:50:27]Read from MH i2c: E2 0E 00 8E 08 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 99 [07:50:27]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [07:50:27]wFMCommunicate OK [07:50:27]SAM_PROTO_GetShiftState done [07:50:27]FM_GetShiftState done [07:50:27]opened in 1715905068 [07:50:27]opened+sec_in_day 1715991468 [07:50:27]quantity*price = 50049 [07:50:27]sum+1 = 50050 [07:50:27]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 СНО: Общий режим Чек 16 17.05.2024 07:50 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67607 ФПД: 43428027587733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T075029&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67607&fm=43428027587733&tin=02508201610067®Number=0000000000091845&sum=50000 [07:50:28]StoreToDocumentArchive [07:50:28]shift 358 fd 67607 [07:50:28]save to /storage/0358/doc_00067607 [07:50:28]save last doc name /storage/0358/doc_00067607 to /storage/kkm_last_doc_name [07:50:28]save OK [07:50:28]Clear old archive folders... [07:50:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:50:28]tlvbuf is 015C2890 [07:50:28]SAM_PROTO_ClearQueue [07:50:28]wFMCommunicate request_size=4 [07:50:28]MH_SAM_APDU [07:50:28]CAPDU: 80 09 00 00 [07:50:28]Write to MH i2c: E2 08 00 9B 08 80 09 00 00 00 00 00 00 15 [07:50:28]Write i2c OK [07:50:28]MH_I2C_Read... [07:50:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:28]Read from MH i2c: E2 [07:50:28]MH_I2C_Read... [07:50:28]Read from MH i2c: E2 03 00 [07:50:28]MH_I2C_Read... [07:50:28]Read from MH i2c: E2 03 00 9B 08 00 90 00 17 [07:50:28]RAPDU: 90 00 [07:50:28]wFMCommunicate OK [07:50:28]SAM_PROTO_ClearQueue done [07:50:28]KKMCreateOFDPacket [07:50:28]OFDProtocolAddRootSTLVToBuf [07:50:28]FM_MakeSignedData [07:50:28]FM_MakeSignedData [07:50:28]SAM_PROTO_SignData [07:50:28]wFMCommunicate request_size=4 [07:50:28]MH_SAM_APDU [07:50:28]CAPDU: 80 0D 01 02 [07:50:28]Write to MH i2c: E2 08 00 9C 08 80 0D 01 02 00 00 00 00 1D [07:50:28]Write i2c OK [07:50:28]MH_I2C_Read... [07:50:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:28]Read from MH i2c: E2 [07:50:28]MH_I2C_Read... [07:50:28]Read from MH i2c: E2 03 00 [07:50:28]MH_I2C_Read... [07:50:28]Read from MH i2c: E2 03 00 9C 08 00 90 00 18 [07:50:28]RAPDU: 90 00 [07:50:28]wFMCommunicate OK [07:50:28]wFMCommunicate request_size=255 [07:50:28]MH_SAM_APDU [07:50: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 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 10 00 00 00 F4 03 04 00 45 0C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 27 7F 60 28 [07:50:28]Write to MH i2c: E2 02 01 9D 08 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 10 00 00 00 F4 03 04 00 45 0C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 27 7F 60 28 00 00 D0 [07:50:28]Write i2c OK [07:50:28]MH_I2C_Read... [07:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:29]Read from MH i2c: E2 [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: E2 03 00 [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: E2 03 00 9D 08 00 90 00 19 [07:50:29]RAPDU: 90 00 [07:50:29]wFMCommunicate OK [07:50:29]wFMCommunicate request_size=7 [07:50:29]MH_SAM_APDU [07:50:29]CAPDU: 80 0D 02 02 02 5C 95 [07:50:29]Write to MH i2c: E2 0A 00 9E 08 80 0D 02 02 02 00 5C 95 00 00 15 [07:50:29]Write i2c OK [07:50:29]MH_I2C_Read... [07:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:29]Read from MH i2c: E2 [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: E2 03 00 [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: E2 03 00 9E 08 00 90 00 1A [07:50:29]RAPDU: 90 00 [07:50:29]wFMCommunicate OK [07:50:29]wFMCommunicate request_size=4 [07:50:29]MH_SAM_APDU [07:50:29]CAPDU: 80 0D 03 02 [07:50:29]Write to MH i2c: E2 08 00 9F 08 80 0D 03 02 00 00 00 00 22 [07:50:29]Write i2c OK [07:50:29]MH_I2C_Read... [07:50:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:29]Read from MH i2c: E2 [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: E2 0B 00 [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: E2 0B 00 9F 08 00 0D DF 2E 63 4D 6B D7 3F 90 00 6E [07:50:29]RAPDU: 0D DF 2E 63 4D 6B D7 3F 90 00 [07:50:29]wFMCommunicate OK [07:50:29]SAM_PROTO_SignData done [07:50:29]FM_MakeSignedData done [07:50:29]CreateOFDProtocolMessage [07:50:29]wFMCommunicate request_size=4 [07:50:29]MH_SAM_APDU [07:50:29]CAPDU: 80 11 00 00 [07:50:29]Write to MH i2c: E2 08 00 A0 08 80 11 00 00 00 00 00 00 22 [07:50:29]Write i2c OK [07:50:29]MH_I2C_Read... [07:50:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:29]Read from MH i2c: E2 [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: E2 17 00 [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: E2 17 00 A0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 78 [07:50:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:50:29]wFMCommunicate OK [07:50:29]CreateOFDProtocolMessage done [07:50:29]OFDSenderStorePacket 67607 [07:50:29]StoreOFDPacket docnum=67607 [07:50: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 BE 64 04 01 01 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 10 00 00 00 F4 03 04 00 45 0C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 27 7F 60 28 5C 95 0D DF 2E 63 4D 6B D7 3F [07:50:29]CheckFolder [07:50:29]dirname=/storage/ofd_packets [07:50:29]CheckFolder done [07:50:29]ProducePacketName [07:50:29]name=ofd_packets/00067607 [07:50:29]NVStorageSaveData ofd_packets/00067607 [07:50:29]File name is /storage/ofd_packets/00067607 [07:50:29]Write 298 bytes [07:50:29]NVStorageSaveData done [07:50:29]OFDSenderStorePacket done [07:50:29]KKMCreateOFDPacket done [07:50:29]NVStorageSaveData kkm_last_timestamp [07:50:29]File name is /storage/kkm_last_timestamp [07:50:29]Write 4 bytes [07:50:29]NVStorageSaveData done [07:50:29]ExternCall_PrintAddStr [07:50:29]wPrintStart [07:50:29]Write to MH i2c: 01 00 00 A1 08 A9 [07:50:29]Write i2c OK [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: 01 [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: 01 07 00 [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: 01 07 00 A1 08 00 00 00 00 00 FF 0F BE [07:50:29]RasterBufferAndPrint [07:50:29]line Счет N : (1)507694 [07:50:29]line ИНН: 02508201610067 [07:50:29]line Контрольно-Кассовый Чек [07:50:29]line ПРОДАЖА [07:50:29]line ТРК (МРК, ГНК) : 31 [07:50:29]line Товар: 2710194210 [07:50:29]line ДТ-К-5 [07:50:29]line 6.700 * 74.70 [07:50:29]line = 500.49 [07:50:29]line НДС 12% НСП 1% [07:50:29]line > о реализуемом товаре [07:50:29]line ОКРУГЛЕНИЕ: -0.49 [07:50:29]line ИТОГО: 500.00 [07:50:29]line Внесено: 500.00 [07:50:29]line СДАЧА: 0.00 [07:50:29]line НСП 1% : 4.43 [07:50:29]line НДС 12% : 53.15 [07:50:29]line Наличными: 500.00 [07:50:29]line Безнал.: 0.00 [07:50:29]line Место: АЗС № 91 "Партнер Нефть" [07:50:29]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:50:29]line СНО: Общий режим [07:50:29]line Чек 16 17.05.2024 07:50 [07:50:29]line Смена: 358 ФФД: 1.0 [07:50:29]line ЗНМ: 0300000119 [07:50:29]line РНМ: 0000000000091845 [07:50:29]line Версия ККМ: 001 [07:50:29]line ФМ: 0000000000871829 [07:50:29]line ФД: 67607 [07:50:29]line ФПД: 43428027587733 [07:50:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T075029&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67607&fm=43428027587733&tin=02508201610067®Number=0000000000091845&sum=50000 [07:50:29]OFD Sender: Processing packet 67607 [packets to send 35, broken 34] [07:50:29]ProducePacketName [07:50:29]name=ofd_packets/00067607 [07:50:29]OFD Sender: To server: pG, [07:50:29]CommunicateWithHost lk.salyk.kg:30040 [07:50:29]ConnectInit lk.salyk.kg [07:50:29]written 0, free lines is 4095 [07:50:29]Connected sock=10 [07:50: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 BE 64 04 01 01 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 10 00 00 00 F4 03 04 00 45 0C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 27 7F 60 28 5C 95 0D DF 2E 63 4D 6B D7 3F [07:50: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 03 F1 47 00 38 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 17 08 01 00 F4 03 04 00 1E B4 46 66 B6 04 01 00 00 41 4B 3D F8 BE C5 2F 85 [07:50:29]CommunicateWithHost err = 0 [07:50:29]CheckOFDResponse [07:50:29]1017 (14) - 77093643461234 [07:50:29]1041 (16) - 0000000000871829 [07:50:29]1040 (4) - 67607 [07:50:29]1012 (4) - 17.05.2024 01:34 [07:50:29]1206 (1) - 0 [07:50:29]OFD Sender: Remove packet 67607 [07:50:29]ProducePacketName [07:50:29]name=ofd_packets/00067607 [07:50:29]NVStorageDeleteData [07:50:29]Write to MH i2c: 01 00 00 CB 08 D3 [07:50:29]Write i2c OK [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: 01 [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: 01 07 00 [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: 01 07 00 CB 08 00 00 00 00 00 C1 0C A7 [07:50:29]RasterBufferAndPrint [07:50:29]line [07:50:29]line [07:50:29]line [07:50:29]line [07:50:29]line [07:50:29]written 0, free lines is 3272 [07:50:29]MH_Cut [07:50:29]Write to MH i2c: D1 01 00 D2 08 01 AC [07:50:29]Write i2c OK [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: D1 [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: D1 01 00 [07:50:29]MH_I2C_Read... [07:50:29]Read from MH i2c: D1 01 00 D2 08 00 AB [07:50:29]Write to MH i2c: 01 00 00 D3 08 DB [07:50:29]Write i2c OK [07:50:29]MH_I2C_Read... [07:50:30]OFD Sender: No OFD packet to send [07:50:30]*** Cut start [07:50:30]*** Purtial cut [07:50:30]*** Stage 1: CUTSNS_PIN = 1 [07:50:31]Read from MH i2c: 01 [07:50:31]MH_I2C_Read... [07:50:31]*** Stop cut motor [07:50:31]*** Cut end [07:50:31]Read from MH i2c: 01 07 00 [07:50:31]MH_I2C_Read... [07:50:31]Read from MH i2c: 01 07 00 D3 08 00 00 00 00 00 FF 0F F0 [07:50:31]process_action close_receipt done [07:50:31]requested_data is exist [07:50:31]produce_requested_data [07:50:31]requested_item fm.sn is exist - process it [07:50:31]wFMCommunicate request_size=4 [07:50:31]MH_SAM_APDU [07:50:31]CAPDU: 80 11 00 00 [07:50:31]Write to MH i2c: E2 08 00 D4 08 80 11 00 00 00 00 00 00 56 [07:50:31]Write i2c OK [07:50:31]MH_I2C_Read... [07:50:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:31]Read from MH i2c: E2 [07:50:31]MH_I2C_Read... [07:50:31]Read from MH i2c: E2 17 00 [07:50:31]MH_I2C_Read... [07:50:31]Read from MH i2c: E2 17 00 D4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AC [07:50:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:50:31]wFMCommunicate OK [07:50:31]requested_item fd.num is exist - process it [07:50:31]SAM_PROTO_GetFieldsCounters [07:50:31]wFMCommunicate request_size=4 [07:50:31]MH_SAM_APDU [07:50:31]CAPDU: 80 13 00 00 [07:50:31]Write to MH i2c: E2 08 00 D5 08 80 13 00 00 00 00 00 00 59 [07:50:31]Write i2c OK [07:50:31]MH_I2C_Read... [07:50:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:31]Read from MH i2c: E2 [07:50:31]MH_I2C_Read... [07:50:31]Read from MH i2c: E2 62 00 [07:50:31]MH_I2C_Read... [07:50:31]Read from MH i2c: E2 62 00 D5 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 17 08 01 00 0E 04 04 00 66 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 36 [07:50: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 17 08 01 00 0E 04 04 00 66 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:50:31]wFMCommunicate OK [07:50:31]SAM_PROTO_GetFieldsCounters done [07:50:31]requested_item shift.num is exist - process it [07:50:31]requested_item shift.opened is exist - process it [07:50:31]req_shift_opened [07:50:31]FM_GetShiftState [07:50:31]SAM_PROTO_GetShiftState [07:50:31]wFMCommunicate request_size=4 [07:50:31]MH_SAM_APDU [07:50:31]CAPDU: 80 13 01 00 [07:50:31]Write to MH i2c: E2 08 00 D6 08 80 13 01 00 00 00 00 00 5B [07:50:31]Write i2c OK [07:50:31]MH_I2C_Read... [07:50:31]Read from MH i2c: E2 [07:50:31]MH_I2C_Read... [07:50:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:31]Read from MH i2c: E2 0E 00 [07:50:31]MH_I2C_Read... [07:50:31]Read from MH i2c: E2 0E 00 D6 08 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 E1 [07:50:31]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [07:50:31]wFMCommunicate OK [07:50:31]SAM_PROTO_GetShiftState done [07:50:31]FM_GetShiftState done [07:50:31]req_shift_opened done [07:50:31]requested_item shift.open_date is exist - process it [07:50:31]req_shift_open_date [07:50:31]req_shift_open_date done [07:50:31]produce_requested_data done [07:50:31]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67607,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [07:50:31]process_action_free close_receipt [07:50:31]json_value_free [07:50:31]json_value_free done [07:50:31]process_json_proto returns [07:50:31]Send response to host [07:50:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67607,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [07:50:31]free response buf [07:50:31]execute_script done [07:50:31]execute_script returns [07:50:31]free content buf [07:50:31]Sock 7.Close socket [07:50:31]Sock 7.Thread stoped [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:46]accept exits with 9 [07:55:46]New connection [07:55:46]New thread 3067395428 created [07:55:46]Thread 3067538788 joined [07:55:46]Waiting for new connection... [07:55:46] Sock 9.Parse request [07:55:46]Sock 9.Check first char [07:55:46]Sock 9.First char is OK [07:55:46]request: POST /json_proto HTTP/1.0 [07:55:46]Method: POST [07:55:46]URL: /json_proto [07:55:46]Method is POST - this is cgi request [07:55:46]url: /json_proto [07:55:46]query_string will be loaded in cgi processing [07:55:46]execute_cgi json_proto POST (null) [07:55:46]execute_cgi path=json_proto method=POST [07:55:46]POST find Content-Length [07:55:46]Host: 172.17.41.195:8080 [07:55:46]Content-Length: 677 [07:55:46]Content-Type: application/json [07:55:46] [07:55:46]POST finish read [07:55:46]Found Content-Length = 677 [07:55:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507695", "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" ] } } [07:55:46]execute_script... [07:55: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)507695", "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" ] } } [07:55:46]POST & json_proto [07:55:46]process_json_proto [07:55:46]json parsed OK: [07:55:46]protocol is kg_v1.0 [07:55:46]action value=close_receipt [07:55:46]process_action close_receipt [07:55:46]cmd_close_receipt [07:55:46]MH_GetDate [07:55:46]Write to MH i2c: F0 00 00 D7 08 CE [07:55:46]Write i2c OK [07:55:46]MH_I2C_Read... [07:55:46]Read from MH i2c: F0 [07:55:46]MH_I2C_Read... [07:55:46]Read from MH i2c: F0 09 00 [07:55:46]MH_I2C_Read... [07:55:46]Read from MH i2c: F0 09 00 D7 08 00 84 0D 47 66 FC 21 6F 64 05 [07:55:46]GetLastDocTimeStamp 1715932229 [07:55:46]current date 1715932548 [07:55:46]FM_GetShiftState [07:55:46]SAM_PROTO_GetShiftState [07:55:46]wFMCommunicate request_size=4 [07:55:46]MH_SAM_APDU [07:55:46]CAPDU: 80 13 01 00 [07:55:46]Write to MH i2c: E2 08 00 D8 08 80 13 01 00 00 00 00 00 5D [07:55:46]Write i2c OK [07:55:46]MH_I2C_Read... [07:55:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:46]Read from MH i2c: E2 [07:55:46]MH_I2C_Read... [07:55:46]Read from MH i2c: E2 0E 00 [07:55:46]MH_I2C_Read... [07:55:46]Read from MH i2c: E2 0E 00 D8 08 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 E3 [07:55:46]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [07:55:46]wFMCommunicate OK [07:55:46]SAM_PROTO_GetShiftState done [07:55:46]FM_GetShiftState done [07:55:46]opened in 1715905068 [07:55:46]opened+sec_in_day 1715991468 [07:55:46]quantity*price = 50033 [07:55:46]sum+1 = 50034 [07:55:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 17 17.05.2024 07:55 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67608 ФПД: 21504289503763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T075548&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67608&fm=21504289503763&tin=02508201610067®Number=0000000000091845&sum=50000 [07:55:47]StoreToDocumentArchive [07:55:47]shift 358 fd 67608 [07:55:47]save to /storage/0358/doc_00067608 [07:55:47]save last doc name /storage/0358/doc_00067608 to /storage/kkm_last_doc_name [07:55:47]save OK [07:55:47]Clear old archive folders... [07:55:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:55:47]tlvbuf is 0162E3D0 [07:55:47]SAM_PROTO_ClearQueue [07:55:47]wFMCommunicate request_size=4 [07:55:47]MH_SAM_APDU [07:55:47]CAPDU: 80 09 00 00 [07:55:47]Write to MH i2c: E2 08 00 E5 08 80 09 00 00 00 00 00 00 5F [07:55:47]Write i2c OK [07:55:47]MH_I2C_Read... [07:55:47]Read from MH i2c: E2 [07:55:47]MH_I2C_Read... [07:55:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:55:47]Read from MH i2c: E2 03 00 [07:55:47]MH_I2C_Read... [07:55:47]Read from MH i2c: E2 03 00 E5 08 00 90 00 61 [07:55:47]RAPDU: 90 00 [07:55:47]wFMCommunicate OK [07:55:47]SAM_PROTO_ClearQueue done [07:55:47]KKMCreateOFDPacket [07:55:47]OFDProtocolAddRootSTLVToBuf [07:55:47]FM_MakeSignedData [07:55:47]FM_MakeSignedData [07:55:47]SAM_PROTO_SignData [07:55:47]wFMCommunicate request_size=4 [07:55:47]MH_SAM_APDU [07:55:47]CAPDU: 80 0D 01 02 [07:55:47]Write to MH i2c: E2 08 00 E6 08 80 0D 01 02 00 00 00 00 67 [07:55:47]Write i2c OK [07:55:47]MH_I2C_Read... [07:55:47]Read from MH i2c: E2 [07:55:47]MH_I2C_Read... [07:55:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:55:47]Read from MH i2c: E2 03 00 [07:55:47]MH_I2C_Read... [07:55:47]Read from MH i2c: E2 03 00 E6 08 00 90 00 62 [07:55:47]RAPDU: 90 00 [07:55:47]wFMCommunicate OK [07:55:47]wFMCommunicate request_size=255 [07:55:47]MH_SAM_APDU [07:55:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 84 0D 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 13 [07:55:47]Write to MH i2c: E2 02 01 E7 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 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 84 0D 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 13 00 00 DC [07:55:47]Write i2c OK [07:55:47]MH_I2C_Read... [07:55:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:47]Read from MH i2c: E2 [07:55:47]MH_I2C_Read... [07:55:47]Read from MH i2c: E2 03 00 [07:55:47]MH_I2C_Read... [07:55:47]Read from MH i2c: E2 03 00 E7 08 00 90 00 63 [07:55:47]RAPDU: 90 00 [07:55:47]wFMCommunicate OK [07:55:47]wFMCommunicate request_size=10 [07:55:47]MH_SAM_APDU [07:55:47]CAPDU: 80 0D 02 02 05 8E DB 89 7A 13 [07:55:47]Write to MH i2c: E2 0D 00 E8 08 80 0D 02 02 05 00 8E DB 89 7A 13 00 00 F3 [07:55:47]Write i2c OK [07:55:47]MH_I2C_Read... [07:55:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:47]Read from MH i2c: E2 [07:55:47]MH_I2C_Read... [07:55:47]Read from MH i2c: E2 03 00 [07:55:47]MH_I2C_Read... [07:55:47]Read from MH i2c: E2 03 00 E8 08 00 90 00 64 [07:55:47]RAPDU: 90 00 [07:55:47]wFMCommunicate OK [07:55:47]wFMCommunicate request_size=4 [07:55:47]MH_SAM_APDU [07:55:47]CAPDU: 80 0D 03 02 [07:55:47]Write to MH i2c: E2 08 00 E9 08 80 0D 03 02 00 00 00 00 6C [07:55:47]Write i2c OK [07:55:47]MH_I2C_Read... [07:55:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:55:47]Read from MH i2c: E2 [07:55:47]MH_I2C_Read... [07:55:47]Read from MH i2c: E2 0B 00 [07:55:47]MH_I2C_Read... [07:55:47]Read from MH i2c: E2 0B 00 E9 08 00 A2 2B E1 05 C0 41 90 27 90 00 D8 [07:55:47]RAPDU: A2 2B E1 05 C0 41 90 27 90 00 [07:55:47]wFMCommunicate OK [07:55:47]SAM_PROTO_SignData done [07:55:47]FM_MakeSignedData done [07:55:47]CreateOFDProtocolMessage [07:55:47]wFMCommunicate request_size=4 [07:55:47]MH_SAM_APDU [07:55:47]CAPDU: 80 11 00 00 [07:55:47]Write to MH i2c: E2 08 00 EA 08 80 11 00 00 00 00 00 00 6C [07:55:47]Write i2c OK [07:55:47]MH_I2C_Read... [07:55:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:47]Read from MH i2c: E2 [07:55:47]MH_I2C_Read... [07:55:47]Read from MH i2c: E2 17 00 [07:55:47]MH_I2C_Read... [07:55:47]Read from MH i2c: E2 17 00 EA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C2 [07:55:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:55:47]wFMCommunicate OK [07:55:47]CreateOFDProtocolMessage done [07:55:47]OFDSenderStorePacket 67608 [07:55:47]StoreOFDPacket docnum=67608 [07:55:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 56 62 07 01 DC D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 84 0D 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 13 8E DB 89 7A 13 A2 2B E1 05 C0 41 90 27 [07:55:47]CheckFolder [07:55:47]dirname=/storage/ofd_packets [07:55:47]CheckFolder done [07:55:47]ProducePacketName [07:55:47]name=ofd_packets/00067608 [07:55:47]NVStorageSaveData ofd_packets/00067608 [07:55:47]File name is /storage/ofd_packets/00067608 [07:55:47]Write 301 bytes [07:55:47]NVStorageSaveData done [07:55:47]OFDSenderStorePacket done [07:55:47]KKMCreateOFDPacket done [07:55:47]NVStorageSaveData kkm_last_timestamp [07:55:47]File name is /storage/kkm_last_timestamp [07:55:47]Write 4 bytes [07:55:47]NVStorageSaveData done [07:55:47]ExternCall_PrintAddStr [07:55:47]wPrintStart [07:55:47]Write to MH i2c: 01 00 00 EB 08 F3 [07:55:47]Write i2c OK [07:55:47]MH_I2C_Read... [07:55:47]Read from MH i2c: 01 [07:55:47]MH_I2C_Read... [07:55:47]Read from MH i2c: 01 07 00 [07:55:47]MH_I2C_Read... [07:55:47]Read from MH i2c: 01 07 00 EB 08 00 00 00 00 00 FF 0F 08 [07:55:47]RasterBufferAndPrint [07:55:47]line Счет N : (1)507695 [07:55:47]line ИНН: 02508201610067 [07:55:47]line Контрольно-Кассовый Чек [07:55:47]line ПРОДАЖА [07:55:47]line ТРК (МРК, ГНК) : 13 [07:55:47]line Товар: 2710124130 [07:55:47]line Аи-92-К-5 [07:55:47]line 7.490 * 66.80 [07:55:47]line = 500.33 [07:55:47]line НДС 12% НСП 1% [07:55:47]line > о реализуемом товаре [07:55:47]line ОКРУГЛЕНИЕ: -0.33 [07:55:47]line ИТОГО: 500.00 [07:55:47]line Внесено: 500.00 [07:55:47]line СДАЧА: 0.00 [07:55:47]line НСП 1% : 4.43 [07:55:47]line НДС 12% : 53.13 [07:55:47]line Наличными: 500.00 [07:55:47]line Безнал.: 0.00 [07:55:47]line Место: АЗС № 91 "Партнер Нефть" [07:55:47]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:55:47]line СНО: Общий режим [07:55:47]line Чек 17 17.05.2024 07:55 [07:55:47]line Смена: 358 ФФД: 1.0 [07:55:47]line ЗНМ: 0300000119 [07:55:47]line РНМ: 0000000000091845 [07:55:47]line Версия ККМ: 001 [07:55:47]line ФМ: 0000000000871829 [07:55:47]line ФД: 67608 [07:55:47]line ФПД: 21504289503763 [07:55:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T075548&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67608&fm=21504289503763&tin=02508201610067®Number=0000000000091845&sum=50000 [07:55:48]written 0, free lines is 4095 [07:55:48]OFD Sender: Processing packet 67608 [packets to send 35, broken 34] [07:55:48]ProducePacketName [07:55:48]name=ofd_packets/00067608 [07:55:48]OFD Sender: To server: pG, [07:55:48]CommunicateWithHost lk.salyk.kg:30040 [07:55:48]ConnectInit lk.salyk.kg [07:55:48]Connected sock=10 [07:55:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 56 62 07 01 DC D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 84 0D 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 13 8E DB 89 7A 13 A2 2B E1 05 C0 41 90 27 [07:55: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 84 02 47 00 12 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 18 08 01 00 F4 03 04 00 5D B5 46 66 B6 04 01 00 00 33 46 42 CD 98 9B CE B8 [07:55:48]CommunicateWithHost err = 0 [07:55:48]CheckOFDResponse [07:55:48]1017 (14) - 77093643461234 [07:55:48]1041 (16) - 0000000000871829 [07:55:48]1040 (4) - 67608 [07:55:48]1012 (4) - 17.05.2024 01:39 [07:55:48]1206 (1) - 0 [07:55:48]OFD Sender: Remove packet 67608 [07:55:48]ProducePacketName [07:55:48]name=ofd_packets/00067608 [07:55:48]NVStorageDeleteData [07:55:48]Write to MH i2c: 01 00 00 15 09 1E [07:55:48]Write i2c OK [07:55:48]MH_I2C_Read... [07:55:48]Read from MH i2c: 01 [07:55:48]MH_I2C_Read... [07:55:48]Read from MH i2c: 01 07 00 [07:55:48]MH_I2C_Read... [07:55:48]Read from MH i2c: 01 07 00 15 09 00 00 00 00 00 B9 0C EA [07:55:48]RasterBufferAndPrint [07:55:48]line [07:55:48]line [07:55:48]line [07:55:48]line [07:55:48]line [07:55:48]written 0, free lines is 3265 [07:55:48]MH_Cut [07:55:48]Write to MH i2c: D1 01 00 1C 09 01 F7 [07:55:48]Write i2c OK [07:55:48]MH_I2C_Read... [07:55:48]Read from MH i2c: D1 [07:55:48]MH_I2C_Read... [07:55:48]Read from MH i2c: D1 01 00 [07:55:48]MH_I2C_Read... [07:55:48]Read from MH i2c: D1 01 00 1C 09 00 F6 [07:55:48]Write to MH i2c: 01 00 00 1D 09 26 [07:55:48]Write i2c OK [07:55:48]MH_I2C_Read... [07:55:49]OFD Sender: No OFD packet to send [07:55:49]*** Cut start [07:55:49]*** Purtial cut [07:55:49]*** CUTSNS_PIN = 0 [07:55:49]*** Stage 1: CUTSNS_PIN = 1 [07:55:51]Read from MH i2c: 01 [07:55:51]MH_I2C_Read... [07:55:51]*** Stop cut motor [07:55:51]*** Cut end [07:55:51]Read from MH i2c: 01 07 00 [07:55:51]MH_I2C_Read... [07:55:51]Read from MH i2c: 01 07 00 1D 09 00 00 00 00 00 FF 0F 3B [07:55:51]process_action close_receipt done [07:55:51]requested_data is exist [07:55:51]produce_requested_data [07:55:51]requested_item fm.sn is exist - process it [07:55:51]wFMCommunicate request_size=4 [07:55:51]MH_SAM_APDU [07:55:51]CAPDU: 80 11 00 00 [07:55:51]Write to MH i2c: E2 08 00 1E 09 80 11 00 00 00 00 00 00 A1 [07:55:51]Write i2c OK [07:55:51]MH_I2C_Read... [07:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:51]Read from MH i2c: E2 [07:55:51]MH_I2C_Read... [07:55:51]Read from MH i2c: E2 17 00 [07:55:51]MH_I2C_Read... [07:55:51]Read from MH i2c: E2 17 00 1E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F7 [07:55:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:55:51]wFMCommunicate OK [07:55:51]requested_item fd.num is exist - process it [07:55:51]SAM_PROTO_GetFieldsCounters [07:55:51]wFMCommunicate request_size=4 [07:55:51]MH_SAM_APDU [07:55:51]CAPDU: 80 13 00 00 [07:55:51]Write to MH i2c: E2 08 00 1F 09 80 13 00 00 00 00 00 00 A4 [07:55:51]Write i2c OK [07:55:51]MH_I2C_Read... [07:55:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:55:51]Read from MH i2c: E2 [07:55:51]MH_I2C_Read... [07:55:51]Read from MH i2c: E2 62 00 [07:55:51]MH_I2C_Read... [07:55:51]Read from MH i2c: E2 62 00 1F 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 18 08 01 00 0E 04 04 00 66 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 85 [07:55: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 18 08 01 00 0E 04 04 00 66 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:55:51]wFMCommunicate OK [07:55:51]SAM_PROTO_GetFieldsCounters done [07:55:51]requested_item shift.num is exist - process it [07:55:51]requested_item shift.opened is exist - process it [07:55:51]req_shift_opened [07:55:51]FM_GetShiftState [07:55:51]SAM_PROTO_GetShiftState [07:55:51]wFMCommunicate request_size=4 [07:55:51]MH_SAM_APDU [07:55:51]CAPDU: 80 13 01 00 [07:55:51]Write to MH i2c: E2 08 00 20 09 80 13 01 00 00 00 00 00 A6 [07:55:51]Write i2c OK [07:55:51]MH_I2C_Read... [07:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:51]Read from MH i2c: E2 [07:55:51]MH_I2C_Read... [07:55:51]Read from MH i2c: E2 0E 00 [07:55:51]MH_I2C_Read... [07:55:51]Read from MH i2c: E2 0E 00 20 09 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 2C [07:55:51]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [07:55:51]wFMCommunicate OK [07:55:51]SAM_PROTO_GetShiftState done [07:55:51]FM_GetShiftState done [07:55:51]req_shift_opened done [07:55:51]requested_item shift.open_date is exist - process it [07:55:51]req_shift_open_date [07:55:51]req_shift_open_date done [07:55:51]produce_requested_data done [07:55:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67608,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [07:55:51]process_action_free close_receipt [07:55:51]json_value_free [07:55:51]json_value_free done [07:55:51]process_json_proto returns [07:55:51]Send response to host [07:55:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67608,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [07:55:51]free response buf [07:55:51]execute_script done [07:55:51]execute_script returns [07:55:51]free content buf [07:55:51]Sock 9.Close socket [07:55:51]Sock 9.Thread stoped [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:44]OFD Sender: No OFD packet to send [08:07:49]OFD Sender: No OFD packet to send [08:07:54]OFD Sender: No OFD packet to send [08:07:59]OFD Sender: No OFD packet to send [08:08:04]OFD Sender: No OFD packet to send [08:08:09]OFD Sender: No OFD packet to send [08:08:14]OFD Sender: No OFD packet to send [08:08:19]OFD Sender: No OFD packet to send [08:08:24]OFD Sender: No OFD packet to send [08:08:29]OFD Sender: No OFD packet to send [08:08:34]OFD Sender: No OFD packet to send [08:08:39]OFD Sender: No OFD packet to send [08:08:44]OFD Sender: No OFD packet to send [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:59]OFD Sender: No OFD packet to send [08:09:04]OFD Sender: No OFD packet to send [08:09:09]OFD Sender: No OFD packet to send [08:09:14]OFD Sender: No OFD packet to send [08:09:19]OFD Sender: No OFD packet to send [08:09:24]OFD Sender: No OFD packet to send [08:09:29]OFD Sender: No OFD packet to send [08:09:34]OFD Sender: No OFD packet to send [08:09:39]OFD Sender: No OFD packet to send [08:09:44]OFD Sender: No OFD packet to send [08:09:49]OFD Sender: No OFD packet to send [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:19]OFD Sender: No OFD packet to send [08:10:24]OFD Sender: No OFD packet to send [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:30]accept exits with 7 [08:18:30]New connection [08:18:30]New thread 3067538788 created [08:18:30]Thread 3067395428 joined [08:18:30]Waiting for new connection... [08:18:30] Sock 7.Parse request [08:18:30]Sock 7.Check first char [08:18:30]Sock 7.First char is OK [08:18:30]request: POST /json_proto HTTP/1.0 [08:18:30]Method: POST [08:18:30]URL: /json_proto [08:18:30]Method is POST - this is cgi request [08:18:30]url: /json_proto [08:18:30]query_string will be loaded in cgi processing [08:18:30]execute_cgi json_proto POST (null) [08:18:30]execute_cgi path=json_proto method=POST [08:18:30]POST find Content-Length [08:18:30]Host: 172.17.41.195:8080 [08:18:30]Content-Length: 1179 [08:18:30]Content-Type: application/json [08:18:30] [08:18:30]POST finish read [08:18:30]Found Content-Length = 1179 [08:18: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507697\u000A17.05.2024 08:01\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 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" ] } } [08:18:30]execute_script... [08:18: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507697\u000A17.05.2024 08:01\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 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" ] } } [08:18:30]POST & json_proto [08:18:30]process_json_proto [08:18:30]json parsed OK: [08:18:30]protocol is kg_v1.0 [08:18:30]action value=print_text [08:18:30]process_action print_text [08:18:30]cmd_print_text [08:18:30]ExternCall_PrintAddStr [08:18:30]wPrintStart [08:18:30]Write to MH i2c: 01 00 00 21 09 2A [08:18:30]Write i2c OK [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: 01 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: 01 07 00 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: 01 07 00 21 09 00 00 00 00 00 FF 0F 3F [08:18:30]RasterBufferAndPrint [08:18:30]line *****ТОВАРНЫЙ ЧЕК***** [08:18:30]line АЗС-91 [08:18:30]line Партнер нефть [08:18:30]line 02508201610067 [08:18:30]line Кассир : Адишов И. [08:18:30]line Счет N : (1)507697 [08:18:30]line 17.05.2024 08:01 [08:18:30]line ПРОДАЖА [08:18:30]line ТРК (МРК, ГНК): 11 [08:18:30]line Вид ГСМ : 2710194210 [08:18:30]line ДТ-К-5 [08:18:30]line 30.000 x 74.70 [08:18:30]line ИТОГ: 2241.00 [08:18:30]line Тип оплаты: Талоны: Топливная Карта [08:18:30]line 02750 [08:18:30]line ______________________ [08:18:30]line (подпись) [08:18:30]written 0, free lines is 4095 [08:18:31]Write to MH i2c: 01 00 00 35 09 3E [08:18:31]Write i2c OK [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: 01 [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: 01 07 00 [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: 01 07 00 35 09 00 00 00 00 00 0D 0E 60 [08:18:31]RasterBufferAndPrint [08:18:31]line [08:18:31]line [08:18:31]line [08:18:31]line [08:18:31]line [08:18:31]written 0, free lines is 3599 [08:18:31]MH_Cut [08:18:31]Write to MH i2c: D1 01 00 3C 09 01 17 [08:18:31]Write i2c OK [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: D1 [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: D1 01 00 [08:18:31]MH_I2C_Read... [08:18:31]Read from MH i2c: D1 01 00 3C 09 00 16 [08:18:31]Write to MH i2c: 01 00 00 3D 09 46 [08:18:31]Write i2c OK [08:18:31]MH_I2C_Read... [08:18:31]*** Cut start [08:18:31]*** Purtial cut [08:18:31]*** Stage 1: CUTSNS_PIN = 1 [08:18:32]Read from MH i2c: 01 [08:18:32]MH_I2C_Read... [08:18:32]*** Stop cut motor [08:18:32]*** Cut end [08:18:32]Read from MH i2c: 01 07 00 [08:18:32]MH_I2C_Read... [08:18:32]Read from MH i2c: 01 07 00 3D 09 00 00 00 00 00 FF 0F 5B [08:18:32]process_action print_text done [08:18:32]requested_data is exist [08:18:32]produce_requested_data [08:18:32]requested_item fm.sn is exist - process it [08:18:32]wFMCommunicate request_size=4 [08:18:32]MH_SAM_APDU [08:18:32]CAPDU: 80 11 00 00 [08:18:32]Write to MH i2c: E2 08 00 3E 09 80 11 00 00 00 00 00 00 C1 [08:18:32]Write i2c OK [08:18:32]MH_I2C_Read... [08:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:32]Read from MH i2c: E2 [08:18:32]MH_I2C_Read... [08:18:32]Read from MH i2c: E2 17 00 [08:18:32]MH_I2C_Read... [08:18:32]Read from MH i2c: E2 17 00 3E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 17 [08:18: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:18:32]wFMCommunicate OK [08:18:32]requested_item fd.num is exist - process it [08:18:32]SAM_PROTO_GetFieldsCounters [08:18:32]wFMCommunicate request_size=4 [08:18:32]MH_SAM_APDU [08:18:32]CAPDU: 80 13 00 00 [08:18:32]Write to MH i2c: E2 08 00 3F 09 80 13 00 00 00 00 00 00 C4 [08:18:32]Write i2c OK [08:18:32]MH_I2C_Read... [08:18:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:32]Read from MH i2c: E2 [08:18:32]MH_I2C_Read... [08:18:32]Read from MH i2c: E2 62 00 [08:18:32]MH_I2C_Read... [08:18:32]Read from MH i2c: E2 62 00 3F 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 18 08 01 00 0E 04 04 00 66 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 A5 [08:18: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 18 08 01 00 0E 04 04 00 66 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 [08:18:32]wFMCommunicate OK [08:18:32]SAM_PROTO_GetFieldsCounters done [08:18:32]requested_item shift.num is exist - process it [08:18:32]requested_item shift.opened is exist - process it [08:18:32]req_shift_opened [08:18:32]FM_GetShiftState [08:18:32]SAM_PROTO_GetShiftState [08:18:32]wFMCommunicate request_size=4 [08:18:32]MH_SAM_APDU [08:18:32]CAPDU: 80 13 01 00 [08:18:32]Write to MH i2c: E2 08 00 40 09 80 13 01 00 00 00 00 00 C6 [08:18:32]Write i2c OK [08:18:32]MH_I2C_Read... [08:18:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:32]Read from MH i2c: E2 [08:18:32]MH_I2C_Read... [08:18:32]Read from MH i2c: E2 0E 00 [08:18:32]MH_I2C_Read... [08:18:32]Read from MH i2c: E2 0E 00 40 09 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 4C [08:18:32]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [08:18:32]wFMCommunicate OK [08:18:32]SAM_PROTO_GetShiftState done [08:18:32]FM_GetShiftState done [08:18:32]req_shift_opened done [08:18:32]requested_item shift.open_date is exist - process it [08:18:32]req_shift_open_date [08:18:32]req_shift_open_date done [08:18:32]produce_requested_data done [08:18:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67608,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [08:18:32]process_action_free print_text [08:18:32]json_value_free [08:18:32]json_value_free done [08:18:32]process_json_proto returns [08:18:32]Send response to host [08:18:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67608,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [08:18:32]free response buf [08:18:32]execute_script done [08:18:32]execute_script returns [08:18:32]free content buf [08:18:32]Sock 7.Close socket [08:18:32]Sock 7.Thread stoped [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:07]accept exits with 9 [08:21:07]New connection [08:21:07]New thread 3067395428 created [08:21:07]Thread 3067538788 joined [08:21:07]Waiting for new connection... [08:21:07] Sock 9.Parse request [08:21:07]Sock 9.Check first char [08:21:07]Sock 9.First char is OK [08:21:07]request: POST /json_proto HTTP/1.0 [08:21:07]Method: POST [08:21:07]URL: /json_proto [08:21:07]Method is POST - this is cgi request [08:21:07]url: /json_proto [08:21:07]query_string will be loaded in cgi processing [08:21:07]execute_cgi json_proto POST (null) [08:21:07]execute_cgi path=json_proto method=POST [08:21:07]POST find Content-Length [08:21:07]Host: 172.17.41.195:8080 [08:21:07]Content-Length: 682 [08:21:07]Content-Type: application/json [08:21:07] [08:21:07]POST finish read [08:21:07]Found Content-Length = 682 [08:21:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507698", "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" ] } } [08:21:07]execute_script... [08:21: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)507698", "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" ] } } [08:21:07]POST & json_proto [08:21:07]process_json_proto [08:21:07]json parsed OK: [08:21:07]protocol is kg_v1.0 [08:21:07]action value=close_receipt [08:21:07]process_action close_receipt [08:21:07]cmd_close_receipt [08:21:07]MH_GetDate [08:21:07]Write to MH i2c: F0 00 00 41 09 39 [08:21:07]Write i2c OK [08:21:07]MH_I2C_Read... [08:21:07]Read from MH i2c: F0 [08:21:07]MH_I2C_Read... [08:21:07]Read from MH i2c: F0 09 00 [08:21:07]MH_I2C_Read... [08:21:07]Read from MH i2c: F0 09 00 41 09 00 75 13 47 66 FC 21 6F 64 67 [08:21:07]GetLastDocTimeStamp 1715932548 [08:21:07]current date 1715934069 [08:21:07]FM_GetShiftState [08:21:07]SAM_PROTO_GetShiftState [08:21:07]wFMCommunicate request_size=4 [08:21:07]MH_SAM_APDU [08:21:07]CAPDU: 80 13 01 00 [08:21:07]Write to MH i2c: E2 08 00 42 09 80 13 01 00 00 00 00 00 C8 [08:21:07]Write i2c OK [08:21:07]MH_I2C_Read... [08:21:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:07]Read from MH i2c: E2 [08:21:07]MH_I2C_Read... [08:21:07]Read from MH i2c: E2 0E 00 [08:21:07]MH_I2C_Read... [08:21:07]Read from MH i2c: E2 0E 00 42 09 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 4E [08:21:07]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [08:21:07]wFMCommunicate OK [08:21:07]SAM_PROTO_GetShiftState done [08:21:07]FM_GetShiftState done [08:21:07]opened in 1715905068 [08:21:07]opened+sec_in_day 1715991468 [08:21:07]quantity*price = 100066 [08:21:07]sum+1 = 100067 [08:21:07]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 СНО: Общий режим Чек 18 17.05.2024 08:21 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67609 ФПД: 82194279804185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T082110&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67609&fm=82194279804185&tin=02508201610067®Number=0000000000091845&sum=100000 [08:21:08]StoreToDocumentArchive [08:21:08]shift 358 fd 67609 [08:21:08]save to /storage/0358/doc_00067609 [08:21:08]save last doc name /storage/0358/doc_00067609 to /storage/kkm_last_doc_name [08:21:08]save OK [08:21:08]Clear old archive folders... [08:21:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:21:08]tlvbuf is 015C6D90 [08:21:08]SAM_PROTO_ClearQueue [08:21:08]wFMCommunicate request_size=4 [08:21:08]MH_SAM_APDU [08:21:08]CAPDU: 80 09 00 00 [08:21:08]Write to MH i2c: E2 08 00 4F 09 80 09 00 00 00 00 00 00 CA [08:21:08]Write i2c OK [08:21:08]MH_I2C_Read... [08:21:08]Read from MH i2c: E2 [08:21:08]MH_I2C_Read... [08:21:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:21:08]Read from MH i2c: E2 03 00 [08:21:08]MH_I2C_Read... [08:21:08]Read from MH i2c: E2 03 00 4F 09 00 90 00 CC [08:21:08]RAPDU: 90 00 [08:21:08]wFMCommunicate OK [08:21:08]SAM_PROTO_ClearQueue done [08:21:08]KKMCreateOFDPacket [08:21:08]OFDProtocolAddRootSTLVToBuf [08:21:08]FM_MakeSignedData [08:21:08]FM_MakeSignedData [08:21:08]SAM_PROTO_SignData [08:21:08]wFMCommunicate request_size=4 [08:21:08]MH_SAM_APDU [08:21:08]CAPDU: 80 0D 01 02 [08:21:08]Write to MH i2c: E2 08 00 50 09 80 0D 01 02 00 00 00 00 D2 [08:21:08]Write i2c OK [08:21:08]MH_I2C_Read... [08:21:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:21:08]Read from MH i2c: E2 [08:21:08]MH_I2C_Read... [08:21:08]Read from MH i2c: E2 03 00 [08:21:08]MH_I2C_Read... [08:21:08]Read from MH i2c: E2 03 00 50 09 00 90 00 CD [08:21:08]RAPDU: 90 00 [08:21:08]wFMCommunicate OK [08:21:08]wFMCommunicate request_size=255 [08:21:08]MH_SAM_APDU [08:21: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 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 12 00 00 00 F4 03 04 00 76 13 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 4A [08:21:08]Write to MH i2c: E2 02 01 51 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 12 00 00 00 F4 03 04 00 76 13 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 4A 00 00 C6 [08:21:08]Write i2c OK [08:21:08]MH_I2C_Read... [08:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:09]Read from MH i2c: E2 [08:21:09]MH_I2C_Read... [08:21:09]Read from MH i2c: E2 03 00 [08:21:09]MH_I2C_Read... [08:21:09]Read from MH i2c: E2 03 00 51 09 00 90 00 CE [08:21:09]RAPDU: 90 00 [08:21:09]wFMCommunicate OK [08:21:09]wFMCommunicate request_size=10 [08:21:09]MH_SAM_APDU [08:21:09]CAPDU: 80 0D 02 02 05 C1 58 D9 AD 19 [08:21:09]Write to MH i2c: E2 0D 00 52 09 80 0D 02 02 05 00 C1 58 D9 AD 19 00 00 97 [08:21:09]Write i2c OK [08:21:09]MH_I2C_Read... [08:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:09]Read from MH i2c: E2 [08:21:09]MH_I2C_Read... [08:21:09]Read from MH i2c: E2 03 00 [08:21:09]MH_I2C_Read... [08:21:09]Read from MH i2c: E2 03 00 52 09 00 90 00 CF [08:21:09]RAPDU: 90 00 [08:21:09]wFMCommunicate OK [08:21:09]wFMCommunicate request_size=4 [08:21:09]MH_SAM_APDU [08:21:09]CAPDU: 80 0D 03 02 [08:21:09]Write to MH i2c: E2 08 00 53 09 80 0D 03 02 00 00 00 00 D7 [08:21:09]Write i2c OK [08:21:09]MH_I2C_Read... [08:21:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:21:09]Read from MH i2c: E2 [08:21:09]MH_I2C_Read... [08:21:09]Read from MH i2c: E2 0B 00 [08:21:09]MH_I2C_Read... [08:21:09]Read from MH i2c: E2 0B 00 53 09 00 49 0E F9 87 AB 8D C7 D4 90 00 82 [08:21:09]RAPDU: 49 0E F9 87 AB 8D C7 D4 90 00 [08:21:09]wFMCommunicate OK [08:21:09]SAM_PROTO_SignData done [08:21:09]FM_MakeSignedData done [08:21:09]CreateOFDProtocolMessage [08:21:09]wFMCommunicate request_size=4 [08:21:09]MH_SAM_APDU [08:21:09]CAPDU: 80 11 00 00 [08:21:09]Write to MH i2c: E2 08 00 54 09 80 11 00 00 00 00 00 00 D7 [08:21:09]Write i2c OK [08:21:09]MH_I2C_Read... [08:21:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:09]Read from MH i2c: E2 [08:21:09]MH_I2C_Read... [08:21:09]Read from MH i2c: E2 17 00 [08:21:09]MH_I2C_Read... [08:21:09]Read from MH i2c: E2 17 00 54 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2D [08:21:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:21:09]wFMCommunicate OK [08:21:09]CreateOFDProtocolMessage done [08:21:09]OFDSenderStorePacket 67609 [08:21:09]StoreOFDPacket docnum=67609 [08:21: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 1E 76 07 01 3D 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 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 12 00 00 00 F4 03 04 00 76 13 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 4A C1 58 D9 AD 19 49 0E F9 87 AB 8D C7 D4 [08:21:09]CheckFolder [08:21:09]dirname=/storage/ofd_packets [08:21:09]CheckFolder done [08:21:09]ProducePacketName [08:21:09]name=ofd_packets/00067609 [08:21:09]NVStorageSaveData ofd_packets/00067609 [08:21:09]File name is /storage/ofd_packets/00067609 [08:21:09]Write 301 bytes [08:21:09]NVStorageSaveData done [08:21:09]OFDSenderStorePacket done [08:21:09]KKMCreateOFDPacket done [08:21:09]NVStorageSaveData kkm_last_timestamp [08:21:09]File name is /storage/kkm_last_timestamp [08:21:09]Write 4 bytes [08:21:09]NVStorageSaveData done [08:21:09]ExternCall_PrintAddStr [08:21:09]wPrintStart [08:21:09]Write to MH i2c: 01 00 00 55 09 5E [08:21:09]Write i2c OK [08:21:09]MH_I2C_Read... [08:21:09]Read from MH i2c: 01 [08:21:09]MH_I2C_Read... [08:21:09]Read from MH i2c: 01 07 00 [08:21:09]MH_I2C_Read... [08:21:09]Read from MH i2c: 01 07 00 55 09 00 00 00 00 00 FF 0F 73 [08:21:09]RasterBufferAndPrint [08:21:09]line Счет N : (1)507698 [08:21:09]line ИНН: 02508201610067 [08:21:09]line Контрольно-Кассовый Чек [08:21:09]line ПРОДАЖА [08:21:09]line ТРК (МРК, ГНК) : 13 [08:21:09]line Товар: 2710124130 [08:21:09]line Аи-92-К-5 [08:21:09]line 14.980 * 66.80 [08:21:09]line = 1000.66 [08:21:09]line НДС 12% НСП 1% [08:21:09]line > о реализуемом товаре [08:21:09]line ОКРУГЛЕНИЕ: -0.66 [08:21:09]line ИТОГО: 1000.00 [08:21:09]line Внесено: 1000.00 [08:21:09]line СДАЧА: 0.00 [08:21:09]line НСП 1% : 8.85 [08:21:09]line НДС 12% : 106.26 [08:21:09]line Наличными: 1000.00 [08:21:09]line Безнал.: 0.00 [08:21:09]line Место: АЗС № 91 "Партнер Нефть" [08:21:09]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:21:09]line СНО: Общий режим [08:21:09]line Чек 18 17.05.2024 08:21 [08:21:09]line Смена: 358 ФФД: 1.0 [08:21:09]line ЗНМ: 0300000119 [08:21:09]line РНМ: 0000000000091845 [08:21:09]line Версия ККМ: 001 [08:21:09]line ФМ: 0000000000871829 [08:21:09]line ФД: 67609 [08:21:09]line ФПД: 82194279804185 [08:21:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T082110&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67609&fm=82194279804185&tin=02508201610067®Number=0000000000091845&sum=100000 [08:21:09]OFD Sender: Processing packet 67609 [packets to send 35, broken 34] [08:21:09]ProducePacketName [08:21:09]name=ofd_packets/00067609 [08:21:09]OFD Sender: To server: pG, [08:21:09]CommunicateWithHost lk.salyk.kg:30040 [08:21:09]ConnectInit lk.salyk.kg [08:21:09]written 0, free lines is 4095 [08:21:09]Connected sock=10 [08:21: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 1E 76 07 01 3D 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 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 12 00 00 00 F4 03 04 00 76 13 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 4A C1 58 D9 AD 19 49 0E F9 87 AB 8D C7 D4 [08:21: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 37 88 47 00 31 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 19 08 01 00 F4 03 04 00 4E BB 46 66 B6 04 01 00 00 A7 61 FE F1 33 8B 94 21 [08:21:09]CommunicateWithHost err = 0 [08:21:09]CheckOFDResponse [08:21:09]1017 (14) - 77093643461234 [08:21:09]1041 (16) - 0000000000871829 [08:21:09]1040 (4) - 67609 [08:21:09]1012 (4) - 17.05.2024 02:05 [08:21:09]1206 (1) - 0 [08:21:09]OFD Sender: Remove packet 67609 [08:21:09]ProducePacketName [08:21:09]name=ofd_packets/00067609 [08:21:09]NVStorageDeleteData [08:21:10]Write to MH i2c: 01 00 00 7F 09 88 [08:21:10]Write i2c OK [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: 01 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: 01 07 00 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: 01 07 00 7F 09 00 00 00 00 00 C0 0C 5B [08:21:10]RasterBufferAndPrint [08:21:10]line [08:21:10]line [08:21:10]line [08:21:10]line [08:21:10]line [08:21:10]written 0, free lines is 3270 [08:21:10]MH_Cut [08:21:10]Write to MH i2c: D1 01 00 86 09 01 61 [08:21:10]Write i2c OK [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: D1 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: D1 01 00 [08:21:10]MH_I2C_Read... [08:21:10]Read from MH i2c: D1 01 00 86 09 00 60 [08:21:10]Write to MH i2c: 01 00 00 87 09 90 [08:21:10]Write i2c OK [08:21:10]MH_I2C_Read... [08:21:10]OFD Sender: No OFD packet to send [08:21:10]*** Cut start [08:21:10]*** Purtial cut [08:21:10]*** CUTSNS_PIN = 0 [08:21:11]*** Stage 1: CUTSNS_PIN = 1 [08:21:12]Read from MH i2c: 01 [08:21:12]MH_I2C_Read... [08:21:12]*** Stop cut motor [08:21:12]*** Cut end [08:21:12]Read from MH i2c: 01 07 00 [08:21:12]MH_I2C_Read... [08:21:12]Read from MH i2c: 01 07 00 87 09 00 00 00 00 00 FF 0F A5 [08:21:12]process_action close_receipt done [08:21:12]requested_data is exist [08:21:12]produce_requested_data [08:21:12]requested_item fm.sn is exist - process it [08:21:12]wFMCommunicate request_size=4 [08:21:12]MH_SAM_APDU [08:21:12]CAPDU: 80 11 00 00 [08:21:12]Write to MH i2c: E2 08 00 88 09 80 11 00 00 00 00 00 00 0B [08:21:12]Write i2c OK [08:21:12]MH_I2C_Read... [08:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:12]Read from MH i2c: E2 [08:21:12]MH_I2C_Read... [08:21:12]Read from MH i2c: E2 17 00 [08:21:12]MH_I2C_Read... [08:21:12]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 [08:21: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:21:12]wFMCommunicate OK [08:21:12]requested_item fd.num is exist - process it [08:21:12]SAM_PROTO_GetFieldsCounters [08:21:12]wFMCommunicate request_size=4 [08:21:12]MH_SAM_APDU [08:21:12]CAPDU: 80 13 00 00 [08:21:12]Write to MH i2c: E2 08 00 89 09 80 13 00 00 00 00 00 00 0E [08:21:12]Write i2c OK [08:21:12]MH_I2C_Read... [08:21:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:13]Read from MH i2c: E2 [08:21:13]MH_I2C_Read... [08:21:13]Read from MH i2c: E2 62 00 [08:21:13]MH_I2C_Read... [08:21:13]Read from MH i2c: E2 62 00 89 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 19 08 01 00 0E 04 04 00 66 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 F3 [08:21: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 19 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:21:13]wFMCommunicate OK [08:21:13]SAM_PROTO_GetFieldsCounters done [08:21:13]requested_item shift.num is exist - process it [08:21:13]requested_item shift.opened is exist - process it [08:21:13]req_shift_opened [08:21:13]FM_GetShiftState [08:21:13]SAM_PROTO_GetShiftState [08:21:13]wFMCommunicate request_size=4 [08:21:13]MH_SAM_APDU [08:21:13]CAPDU: 80 13 01 00 [08:21:13]Write to MH i2c: E2 08 00 8A 09 80 13 01 00 00 00 00 00 10 [08:21:13]Write i2c OK [08:21:13]MH_I2C_Read... [08:21:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:13]Read from MH i2c: E2 [08:21:13]MH_I2C_Read... [08:21:13]Read from MH i2c: E2 0E 00 [08:21:13]MH_I2C_Read... [08:21:13]Read from MH i2c: E2 0E 00 8A 09 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 96 [08:21:13]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [08:21:13]wFMCommunicate OK [08:21:13]SAM_PROTO_GetShiftState done [08:21:13]FM_GetShiftState done [08:21:13]req_shift_opened done [08:21:13]requested_item shift.open_date is exist - process it [08:21:13]req_shift_open_date [08:21:13]req_shift_open_date done [08:21:13]produce_requested_data done [08:21:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67609,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [08:21:13]process_action_free close_receipt [08:21:13]json_value_free [08:21:13]json_value_free done [08:21:13]process_json_proto returns [08:21:13]Send response to host [08:21:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67609,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [08:21:13]free response buf [08:21:13]execute_script done [08:21:13]execute_script returns [08:21:13]free content buf [08:21:13]Sock 9.Close socket [08:21:13]Sock 9.Thread stoped [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:04]accept exits with 7 [08:27:04]New connection [08:27:04]New thread 3067538788 created [08:27:04]Thread 3067395428 joined [08:27:04]Waiting for new connection... [08:27:04] Sock 7.Parse request [08:27:04]Sock 7.Check first char [08:27:04]Sock 7.First char is OK [08:27:04]request: POST /json_proto HTTP/1.0 [08:27:04]Method: POST [08:27:04]URL: /json_proto [08:27:04]Method is POST - this is cgi request [08:27:04]url: /json_proto [08:27:04]query_string will be loaded in cgi processing [08:27:04]execute_cgi json_proto POST (null) [08:27:04]execute_cgi path=json_proto method=POST [08:27:04]POST find Content-Length [08:27:04]Host: 172.17.41.195:8080 [08:27:04]Content-Length: 1179 [08:27:04]Content-Type: application/json [08:27:04] [08:27:04]POST finish read [08:27:04]Found Content-Length = 1179 [08:27: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507701\u000A17.05.2024 08:09\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" ] } } [08:27:04]execute_script... [08:27: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507701\u000A17.05.2024 08:09\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" ] } } [08:27:04]POST & json_proto [08:27:04]process_json_proto [08:27:04]json parsed OK: [08:27:04]protocol is kg_v1.0 [08:27:04]action value=print_text [08:27:04]process_action print_text [08:27:04]cmd_print_text [08:27:04]ExternCall_PrintAddStr [08:27:04]wPrintStart [08:27:04]Write to MH i2c: 01 00 00 8B 09 94 [08:27:04]Write i2c OK [08:27:04]MH_I2C_Read... [08:27:04]Read from MH i2c: 01 [08:27:04]MH_I2C_Read... [08:27:04]Read from MH i2c: 01 07 00 [08:27:04]MH_I2C_Read... [08:27:04]Read from MH i2c: 01 07 00 8B 09 00 00 00 00 00 FF 0F A9 [08:27:04]RasterBufferAndPrint [08:27:04]line *****ТОВАРНЫЙ ЧЕК***** [08:27:04]line АЗС-91 [08:27:04]line Партнер нефть [08:27:04]line 02508201610067 [08:27:04]line Кассир : Адишов И. [08:27:04]line Счет N : (1)507701 [08:27:04]line 17.05.2024 08:09 [08:27:04]line ПРОДАЖА [08:27:04]line ТРК (МРК, ГНК): 21 [08:27:04]line Вид ГСМ : 2710194210 [08:27:04]line ДТ-К-5 [08:27:04]line 30.000 x 74.70 [08:27:04]line ИТОГ: 2241.00 [08:27:04]line Тип оплаты: Талоны: Топливная Карта [08:27:04]line 02750 [08:27:04]line ______________________ [08:27:04]line (подпись) [08:27:04]written 0, free lines is 4095 [08:27:04]Write to MH i2c: 01 00 00 9F 09 A8 [08:27:04]Write i2c OK [08:27:04]MH_I2C_Read... [08:27:04]Read from MH i2c: 01 [08:27:04]MH_I2C_Read... [08:27:04]Read from MH i2c: 01 07 00 [08:27:04]MH_I2C_Read... [08:27:04]Read from MH i2c: 01 07 00 9F 09 00 00 00 00 00 0C 0E C9 [08:27:04]RasterBufferAndPrint [08:27:04]line [08:27:04]line [08:27:04]line [08:27:04]line [08:27:04]line [08:27:04]written 0, free lines is 3598 [08:27:04]MH_Cut [08:27:04]Write to MH i2c: D1 01 00 A6 09 01 81 [08:27:04]Write i2c OK [08:27:04]MH_I2C_Read... [08:27:04]Read from MH i2c: D1 [08:27:04]MH_I2C_Read... [08:27:04]Read from MH i2c: D1 01 00 [08:27:04]MH_I2C_Read... [08:27:04]Read from MH i2c: D1 01 00 A6 09 00 80 [08:27:04]Write to MH i2c: 01 00 00 A7 09 B0 [08:27:04]Write i2c OK [08:27:04]MH_I2C_Read... [08:27:04]*** Cut start [08:27:04]*** Purtial cut [08:27:04]*** Stage 1: CUTSNS_PIN = 1 [08:27:05]Read from MH i2c: 01 [08:27:05]MH_I2C_Read... [08:27:05]Read from MH i2c: 01 07 00 [08:27:05]MH_I2C_Read... [08:27:05]*** Stop cut motor [08:27:05]*** Cut end [08:27:05]Read from MH i2c: 01 07 00 A7 09 00 00 00 00 00 FF 0F C5 [08:27:05]process_action print_text done [08:27:05]requested_data is exist [08:27:05]produce_requested_data [08:27:05]requested_item fm.sn is exist - process it [08:27:05]wFMCommunicate request_size=4 [08:27:05]MH_SAM_APDU [08:27:05]CAPDU: 80 11 00 00 [08:27:05]Write to MH i2c: E2 08 00 A8 09 80 11 00 00 00 00 00 00 2B [08:27:05]Write i2c OK [08:27:05]MH_I2C_Read... [08:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:05]Read from MH i2c: E2 [08:27:05]MH_I2C_Read... [08:27:05]Read from MH i2c: E2 17 00 [08:27:05]MH_I2C_Read... [08:27:05]Read from MH i2c: E2 17 00 A8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 81 [08:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:27:05]wFMCommunicate OK [08:27:05]requested_item fd.num is exist - process it [08:27:05]SAM_PROTO_GetFieldsCounters [08:27:05]wFMCommunicate request_size=4 [08:27:05]MH_SAM_APDU [08:27:05]CAPDU: 80 13 00 00 [08:27:05]Write to MH i2c: E2 08 00 A9 09 80 13 00 00 00 00 00 00 2E [08:27:05]Write i2c OK [08:27:05]MH_I2C_Read... [08:27:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:05]Read from MH i2c: E2 [08:27:05]MH_I2C_Read... [08:27:05]Read from MH i2c: E2 62 00 [08:27:05]MH_I2C_Read... [08:27:05]Read from MH i2c: E2 62 00 A9 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 19 08 01 00 0E 04 04 00 66 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 13 [08:27: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 19 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:27:05]wFMCommunicate OK [08:27:05]SAM_PROTO_GetFieldsCounters done [08:27:05]requested_item shift.num is exist - process it [08:27:05]requested_item shift.opened is exist - process it [08:27:05]req_shift_opened [08:27:05]FM_GetShiftState [08:27:05]SAM_PROTO_GetShiftState [08:27:05]wFMCommunicate request_size=4 [08:27:05]MH_SAM_APDU [08:27:05]CAPDU: 80 13 01 00 [08:27:05]Write to MH i2c: E2 08 00 AA 09 80 13 01 00 00 00 00 00 30 [08:27:05]Write i2c OK [08:27:05]MH_I2C_Read... [08:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:05]Read from MH i2c: E2 [08:27:05]MH_I2C_Read... [08:27:05]Read from MH i2c: E2 0E 00 [08:27:05]MH_I2C_Read... [08:27:05]Read from MH i2c: E2 0E 00 AA 09 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 B6 [08:27:05]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [08:27:05]wFMCommunicate OK [08:27:05]SAM_PROTO_GetShiftState done [08:27:05]FM_GetShiftState done [08:27:05]req_shift_opened done [08:27:05]requested_item shift.open_date is exist - process it [08:27:05]req_shift_open_date [08:27:05]req_shift_open_date done [08:27:05]produce_requested_data done [08:27:05]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67609,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [08:27:05]process_action_free print_text [08:27:05]json_value_free [08:27:05]json_value_free done [08:27:05]process_json_proto returns [08:27:05]Send response to host [08:27:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67609,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [08:27:05]free response buf [08:27:05]execute_script done [08:27:05]execute_script returns [08:27:05]free content buf [08:27:05]Sock 7.Close socket [08:27:05]Sock 7.Thread stoped [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:37]accept exits with 9 [08:28:37]New connection [08:28:37]New thread 3067395428 created [08:28:37]Thread 3067538788 joined [08:28:37]Waiting for new connection... [08:28:37] Sock 9.Parse request [08:28:37]Sock 9.Check first char [08:28:37]Sock 9.First char is OK [08:28:37]request: POST /json_proto HTTP/1.0 [08:28:37]Method: POST [08:28:37]URL: /json_proto [08:28:37]Method is POST - this is cgi request [08:28:37]url: /json_proto [08:28:37]query_string will be loaded in cgi processing [08:28:37]execute_cgi json_proto POST (null) [08:28:37]execute_cgi path=json_proto method=POST [08:28:37]POST find Content-Length [08:28:37]Host: 172.17.41.195:8080 [08:28:37]Content-Length: 1142 [08:28:37]Content-Type: application/json [08:28:37] [08:28:37]POST finish read [08:28:37]Found Content-Length = 1142 [08:28: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507699\u000A17.05.2024 08: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 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30079943\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:37]execute_script... [08:28: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507699\u000A17.05.2024 08: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 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30079943\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:37]POST & json_proto [08:28:37]process_json_proto [08:28:37]json parsed OK: [08:28:37]protocol is kg_v1.0 [08:28:37]action value=print_text [08:28:37]process_action print_text [08:28:37]cmd_print_text [08:28:37]ExternCall_PrintAddStr [08:28:37]wPrintStart [08:28:37]Write to MH i2c: 01 00 00 AB 09 B4 [08:28:37]Write i2c OK [08:28:37]MH_I2C_Read... [08:28:37]Read from MH i2c: 01 [08:28:37]MH_I2C_Read... [08:28:37]Read from MH i2c: 01 07 00 [08:28:37]MH_I2C_Read... [08:28:37]Read from MH i2c: 01 07 00 AB 09 00 00 00 00 00 FF 0F C9 [08:28:37]RasterBufferAndPrint [08:28:37]line *****ТОВАРНЫЙ ЧЕК***** [08:28:37]line АЗС-91 [08:28:37]line Партнер нефть [08:28:37]line 02508201610067 [08:28:37]line Кассир : Адишов И. [08:28:37]line Счет N : (1)507699 [08:28:37]line 17.05.2024 08:11 [08:28:37]line ПРОДАЖА [08:28:37]line ТРК (МРК, ГНК): 31 [08:28:37]line Вид ГСМ : 2710194210 [08:28:37]line ДТ-К-5 [08:28:37]line 100.000 x 74.70 [08:28:37]line ИТОГ: 7470.00 [08:28:37]line Тип оплаты: Талоны: ТК ГПНА Online [08:28:37]line 30079943 [08:28:37]line ______________________ [08:28:37]line (подпись) [08:28:37]written 0, free lines is 4095 [08:28:37]Write to MH i2c: 01 00 00 BF 09 C8 [08:28:37]Write i2c OK [08:28:37]MH_I2C_Read... [08:28:37]Read from MH i2c: 01 [08:28:37]MH_I2C_Read... [08:28:37]Read from MH i2c: 01 07 00 [08:28:37]MH_I2C_Read... [08:28:37]Read from MH i2c: 01 07 00 BF 09 00 00 00 00 00 0C 0E E9 [08:28:37]RasterBufferAndPrint [08:28:37]line [08:28:37]line [08:28:37]line [08:28:37]line [08:28:37]line [08:28:37]written 0, free lines is 3598 [08:28:37]MH_Cut [08:28:37]Write to MH i2c: D1 01 00 C6 09 01 A1 [08:28:37]Write i2c OK [08:28:37]MH_I2C_Read... [08:28:37]Read from MH i2c: D1 [08:28:37]MH_I2C_Read... [08:28:37]Read from MH i2c: D1 01 00 [08:28:37]MH_I2C_Read... [08:28:37]Read from MH i2c: D1 01 00 C6 09 00 A0 [08:28:37]Write to MH i2c: 01 00 00 C7 09 D0 [08:28:37]Write i2c OK [08:28:37]MH_I2C_Read... [08:28:38]*** Cut start [08:28:38]*** Purtial cut [08:28:38]*** CUTSNS_PIN = 0 [08:28:38]*** Stage 1: CUTSNS_PIN = 1 [08:28:40]Read from MH i2c: 01 [08:28:40]MH_I2C_Read... [08:28:40]*** Stop cut motor [08:28:40]*** Cut end [08:28:40]Read from MH i2c: 01 07 00 [08:28:40]MH_I2C_Read... [08:28:40]Read from MH i2c: 01 07 00 C7 09 00 00 00 00 00 FF 0F E5 [08:28:40]process_action print_text done [08:28:40]requested_data is exist [08:28:40]produce_requested_data [08:28:40]requested_item fm.sn is exist - process it [08:28:40]wFMCommunicate request_size=4 [08:28:40]MH_SAM_APDU [08:28:40]CAPDU: 80 11 00 00 [08:28:40]Write to MH i2c: E2 08 00 C8 09 80 11 00 00 00 00 00 00 4B [08:28:40]Write i2c OK [08:28:40]MH_I2C_Read... [08:28:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:40]Read from MH i2c: E2 [08:28:40]MH_I2C_Read... [08:28:40]Read from MH i2c: E2 17 00 [08:28:40]MH_I2C_Read... [08:28:40]Read from MH i2c: E2 17 00 C8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A1 [08:28:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:28:40]wFMCommunicate OK [08:28:40]requested_item fd.num is exist - process it [08:28:40]SAM_PROTO_GetFieldsCounters [08:28:40]wFMCommunicate request_size=4 [08:28:40]MH_SAM_APDU [08:28:40]CAPDU: 80 13 00 00 [08:28:40]Write to MH i2c: E2 08 00 C9 09 80 13 00 00 00 00 00 00 4E [08:28:40]Write i2c OK [08:28:40]MH_I2C_Read... [08:28:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:40]Read from MH i2c: E2 [08:28:40]MH_I2C_Read... [08:28:40]Read from MH i2c: E2 62 00 [08:28:40]MH_I2C_Read... [08:28:40]Read from MH i2c: E2 62 00 C9 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 19 08 01 00 0E 04 04 00 66 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 33 [08:28: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 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:28:40]wFMCommunicate OK [08:28:40]SAM_PROTO_GetFieldsCounters done [08:28:40]requested_item shift.num is exist - process it [08:28:40]requested_item shift.opened is exist - process it [08:28:40]req_shift_opened [08:28:40]FM_GetShiftState [08:28:40]SAM_PROTO_GetShiftState [08:28:40]wFMCommunicate request_size=4 [08:28:40]MH_SAM_APDU [08:28:40]CAPDU: 80 13 01 00 [08:28:40]Write to MH i2c: E2 08 00 CA 09 80 13 01 00 00 00 00 00 50 [08:28:40]Write i2c OK [08:28:40]MH_I2C_Read... [08:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:40]Read from MH i2c: E2 [08:28:40]MH_I2C_Read... [08:28:40]Read from MH i2c: E2 0E 00 [08:28:40]MH_I2C_Read... [08:28:40]Read from MH i2c: E2 0E 00 CA 09 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 D6 [08:28:40]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [08:28:40]wFMCommunicate OK [08:28:40]SAM_PROTO_GetShiftState done [08:28:40]FM_GetShiftState done [08:28:40]req_shift_opened done [08:28:40]requested_item shift.open_date is exist - process it [08:28:40]req_shift_open_date [08:28:40]req_shift_open_date done [08:28:40]produce_requested_data done [08:28:40]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67609,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [08:28:40]process_action_free print_text [08:28:40]json_value_free [08:28:40]json_value_free done [08:28:40]process_json_proto returns [08:28:40]Send response to host [08:28:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67609,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [08:28:40]free response buf [08:28:40]execute_script done [08:28:40]execute_script returns [08:28:40]free content buf [08:28:40]Sock 9.Close socket [08:28:40]Sock 9.Thread stoped [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:35]accept exits with 10 [08:29:35]New connection [08:29:35]New thread 3067538788 created [08:29:35]Thread 3067395428 joined [08:29:35]Waiting for new connection... [08:29:35] Sock 10.Parse request [08:29:35]Sock 10.Check first char [08:29:35]Sock 10.First char is OK [08:29:35]request: POST /json_proto HTTP/1.0 [08:29:35]Method: POST [08:29:35]URL: /json_proto [08:29:35]Method is POST - this is cgi request [08:29:35]url: /json_proto [08:29:35]query_string will be loaded in cgi processing [08:29:35]execute_cgi json_proto POST (null) [08:29:35]execute_cgi path=json_proto method=POST [08:29:35]POST find Content-Length [08:29:35]Host: 172.17.41.195:8080 [08:29:35]Content-Length: 1142 [08:29:35]Content-Type: application/json [08:29:35] [08:29:35]POST finish read [08:29:35]Found Content-Length = 1142 [08:29: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507700\u000A17.05.2024 08:12\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 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30079943\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:35]execute_script... [08:29: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507700\u000A17.05.2024 08:12\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 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30079943\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:35]POST & json_proto [08:29:35]process_json_proto [08:29:35]json parsed OK: [08:29:35]protocol is kg_v1.0 [08:29:35]action value=print_text [08:29:35]process_action print_text [08:29:35]cmd_print_text [08:29:35]ExternCall_PrintAddStr [08:29:35]wPrintStart [08:29:35]Write to MH i2c: 01 00 00 CB 09 D4 [08:29:35]Write i2c OK [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: 01 [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: 01 07 00 [08:29:35]MH_I2C_Read... [08:29:35]Read from MH i2c: 01 07 00 CB 09 00 00 00 00 00 FF 0F E9 [08:29:35]RasterBufferAndPrint [08:29:35]line *****ТОВАРНЫЙ ЧЕК***** [08:29:35]line АЗС-91 [08:29:35]line Партнер нефть [08:29:35]line 02508201610067 [08:29:35]line Кассир : Адишов И. [08:29:35]line Счет N : (1)507700 [08:29:35]line 17.05.2024 08:12 [08:29:35]line ПРОДАЖА [08:29:35]line ТРК (МРК, ГНК): 41 [08:29:35]line Вид ГСМ : 2710194210 [08:29:35]line ДТ-К-5 [08:29:35]line 100.000 x 74.70 [08:29:35]line ИТОГ: 7470.00 [08:29:35]line Тип оплаты: Талоны: ТК ГПНА Online [08:29:35]line 30079943 [08:29:35]line ______________________ [08:29:35]line (подпись) [08:29:35]written 0, free lines is 4095 [08:29:36]Write to MH i2c: 01 00 00 DF 09 E8 [08:29:36]Write i2c OK [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: 01 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: 01 07 00 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: 01 07 00 DF 09 00 00 00 00 00 0C 0E 09 [08:29:36]RasterBufferAndPrint [08:29:36]line [08:29:36]line [08:29:36]line [08:29:36]line [08:29:36]line [08:29:36]written 0, free lines is 3597 [08:29:36]MH_Cut [08:29:36]Write to MH i2c: D1 01 00 E6 09 01 C1 [08:29:36]Write i2c OK [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: D1 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: D1 01 00 [08:29:36]MH_I2C_Read... [08:29:36]Read from MH i2c: D1 01 00 E6 09 00 C0 [08:29:36]Write to MH i2c: 01 00 00 E7 09 F0 [08:29:36]Write i2c OK [08:29:36]MH_I2C_Read... [08:29:36]*** Cut start [08:29:36]*** Purtial cut [08:29:36]*** Stage 1: CUTSNS_PIN = 1 [08:29:37]Read from MH i2c: 01 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: 01 07 00 [08:29:37]MH_I2C_Read... [08:29:37]*** Stop cut motor [08:29:37]*** Cut end [08:29:37]Read from MH i2c: 01 07 00 E7 09 00 00 00 00 00 FF 0F 05 [08:29:37]process_action print_text done [08:29:37]requested_data is exist [08:29:37]produce_requested_data [08:29:37]requested_item fm.sn is exist - process it [08:29:37]wFMCommunicate request_size=4 [08:29:37]MH_SAM_APDU [08:29:37]CAPDU: 80 11 00 00 [08:29:37]Write to MH i2c: E2 08 00 E8 09 80 11 00 00 00 00 00 00 6B [08:29:37]Write i2c OK [08:29:37]MH_I2C_Read... [08:29:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:37]Read from MH i2c: E2 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 17 00 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 17 00 E8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C1 [08:29:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:29:37]wFMCommunicate OK [08:29:37]requested_item fd.num is exist - process it [08:29:37]SAM_PROTO_GetFieldsCounters [08:29:37]wFMCommunicate request_size=4 [08:29:37]MH_SAM_APDU [08:29:37]CAPDU: 80 13 00 00 [08:29:37]Write to MH i2c: E2 08 00 E9 09 80 13 00 00 00 00 00 00 6E [08:29:37]Write i2c OK [08:29:37]MH_I2C_Read... [08:29:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:37]Read from MH i2c: E2 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 62 00 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 62 00 E9 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 19 08 01 00 0E 04 04 00 66 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 53 [08:29: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 19 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:29:37]wFMCommunicate OK [08:29:37]SAM_PROTO_GetFieldsCounters done [08:29:37]requested_item shift.num is exist - process it [08:29:37]requested_item shift.opened is exist - process it [08:29:37]req_shift_opened [08:29:37]FM_GetShiftState [08:29:37]SAM_PROTO_GetShiftState [08:29:37]wFMCommunicate request_size=4 [08:29:37]MH_SAM_APDU [08:29:37]CAPDU: 80 13 01 00 [08:29:37]Write to MH i2c: E2 08 00 EA 09 80 13 01 00 00 00 00 00 70 [08:29:37]Write i2c OK [08:29:37]MH_I2C_Read... [08:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:37]Read from MH i2c: E2 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 0E 00 [08:29:37]MH_I2C_Read... [08:29:37]Read from MH i2c: E2 0E 00 EA 09 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F6 [08:29:37]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [08:29:37]wFMCommunicate OK [08:29:37]SAM_PROTO_GetShiftState done [08:29:37]FM_GetShiftState done [08:29:37]req_shift_opened done [08:29:37]requested_item shift.open_date is exist - process it [08:29:37]req_shift_open_date [08:29:37]req_shift_open_date done [08:29:37]produce_requested_data done [08:29:37]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67609,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [08:29:37]process_action_free print_text [08:29:37]json_value_free [08:29:37]json_value_free done [08:29:37]process_json_proto returns [08:29:37]Send response to host [08:29:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67609,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [08:29:37]free response buf [08:29:37]execute_script done [08:29:37]execute_script returns [08:29:37]free content buf [08:29:37]Sock 10.Close socket [08:29:37]Sock 10.Thread stoped [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:50]accept exits with 9 [08:33:50]New connection [08:33:50]New thread 3067395428 created [08:33:50]Thread 3067538788 joined [08:33:50]Waiting for new connection... [08:33:50] Sock 9.Parse request [08:33:50]Sock 9.Check first char [08:33:50]Sock 9.First char is OK [08:33:50]request: POST /json_proto HTTP/1.0 [08:33:50]Method: POST [08:33:50]URL: /json_proto [08:33:50]Method is POST - this is cgi request [08:33:50]url: /json_proto [08:33:50]query_string will be loaded in cgi processing [08:33:50]execute_cgi json_proto POST (null) [08:33:50]execute_cgi path=json_proto method=POST [08:33:50]POST find Content-Length [08:33:50]Host: 172.17.41.195:8080 [08:33:50]Content-Length: 1142 [08:33:50]Content-Type: application/json [08:33:50] [08:33:50]POST finish read [08:33:50]Found Content-Length = 1142 [08:33: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507702\u000A17.05.2024 08:16\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 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30079943\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:50]execute_script... [08:33: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507702\u000A17.05.2024 08:16\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 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30079943\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:50]POST & json_proto [08:33:50]process_json_proto [08:33:50]json parsed OK: [08:33:50]protocol is kg_v1.0 [08:33:50]action value=print_text [08:33:50]process_action print_text [08:33:50]cmd_print_text [08:33:50]ExternCall_PrintAddStr [08:33:50]wPrintStart [08:33:50]Write to MH i2c: 01 00 00 EB 09 F4 [08:33:50]Write i2c OK [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: 01 [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: 01 07 00 [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: 01 07 00 EB 09 00 00 00 00 00 FF 0F 09 [08:33:50]RasterBufferAndPrint [08:33:50]line *****ТОВАРНЫЙ ЧЕК***** [08:33:50]line АЗС-91 [08:33:50]line Партнер нефть [08:33:50]line 02508201610067 [08:33:50]line Кассир : Адишов И. [08:33:50]line Счет N : (1)507702 [08:33:50]line 17.05.2024 08:16 [08:33:50]line ПРОДАЖА [08:33:50]line ТРК (МРК, ГНК): 31 [08:33:50]line Вид ГСМ : 2710194210 [08:33:50]line ДТ-К-5 [08:33:50]line 100.000 x 74.70 [08:33:50]line ИТОГ: 7470.00 [08:33:50]line Тип оплаты: Талоны: ТК ГПНА Online [08:33:50]line 30079943 [08:33:50]line ______________________ [08:33:50]line (подпись) [08:33:50]written 0, free lines is 4095 [08:33:50]Write to MH i2c: 01 00 00 FF 09 08 [08:33:50]Write i2c OK [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: 01 [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: 01 07 00 [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: 01 07 00 FF 09 00 00 00 00 00 0C 0E 29 [08:33:50]RasterBufferAndPrint [08:33:50]line [08:33:50]line [08:33:50]line [08:33:50]line [08:33:50]line [08:33:50]written 0, free lines is 3598 [08:33:50]MH_Cut [08:33:50]Write to MH i2c: D1 01 00 06 0A 01 E2 [08:33:50]Write i2c OK [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: D1 [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: D1 01 00 [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: D1 01 00 06 0A 00 E1 [08:33:50]Write to MH i2c: 01 00 00 07 0A 11 [08:33:50]Write i2c OK [08:33:50]MH_I2C_Read... [08:33:50]*** Cut start [08:33:50]*** Purtial cut [08:33:50]*** CUTSNS_PIN = 0 [08:33:51]OFD Sender: No OFD packet to send [08:33:51]*** Stage 1: CUTSNS_PIN = 1 [08:33:52]Read from MH i2c: 01 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: 01 07 00 [08:33:52]MH_I2C_Read... [08:33:52]*** Stop cut motor [08:33:52]*** Cut end [08:33:52]Read from MH i2c: 01 07 00 07 0A 00 00 00 00 00 FF 0F 26 [08:33:52]process_action print_text done [08:33:52]requested_data is exist [08:33:52]produce_requested_data [08:33:52]requested_item fm.sn is exist - process it [08:33:52]wFMCommunicate request_size=4 [08:33:52]MH_SAM_APDU [08:33:52]CAPDU: 80 11 00 00 [08:33:52]Write to MH i2c: E2 08 00 08 0A 80 11 00 00 00 00 00 00 8C [08:33:52]Write i2c OK [08:33:52]MH_I2C_Read... [08:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:52]Read from MH i2c: E2 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: E2 17 00 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: E2 17 00 08 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E2 [08: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 [08:33:52]wFMCommunicate OK [08:33:52]requested_item fd.num is exist - process it [08:33:52]SAM_PROTO_GetFieldsCounters [08:33:52]wFMCommunicate request_size=4 [08:33:52]MH_SAM_APDU [08:33:52]CAPDU: 80 13 00 00 [08:33:52]Write to MH i2c: E2 08 00 09 0A 80 13 00 00 00 00 00 00 8F [08:33:52]Write i2c OK [08:33:52]MH_I2C_Read... [08:33:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:53]Read from MH i2c: E2 [08:33:53]MH_I2C_Read... [08:33:53]Read from MH i2c: E2 62 00 [08:33:53]MH_I2C_Read... [08:33:53]Read from MH i2c: E2 62 00 09 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 19 08 01 00 0E 04 04 00 66 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 74 [08:33: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 19 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:33:53]wFMCommunicate OK [08:33:53]SAM_PROTO_GetFieldsCounters done [08:33:53]requested_item shift.num is exist - process it [08:33:53]requested_item shift.opened is exist - process it [08:33:53]req_shift_opened [08:33:53]FM_GetShiftState [08:33:53]SAM_PROTO_GetShiftState [08:33:53]wFMCommunicate request_size=4 [08:33:53]MH_SAM_APDU [08:33:53]CAPDU: 80 13 01 00 [08:33:53]Write to MH i2c: E2 08 00 0A 0A 80 13 01 00 00 00 00 00 91 [08:33:53]Write i2c OK [08:33:53]MH_I2C_Read... [08:33:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:53]Read from MH i2c: E2 [08:33:53]MH_I2C_Read... [08:33:53]Read from MH i2c: E2 0E 00 [08:33:53]MH_I2C_Read... [08:33:53]Read from MH i2c: E2 0E 00 0A 0A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 17 [08:33:53]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [08:33:53]wFMCommunicate OK [08:33:53]SAM_PROTO_GetShiftState done [08:33:53]FM_GetShiftState done [08:33:53]req_shift_opened done [08:33:53]requested_item shift.open_date is exist - process it [08:33:53]req_shift_open_date [08:33:53]req_shift_open_date done [08:33:53]produce_requested_data done [08:33:53]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67609,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [08:33:53]process_action_free print_text [08:33:53]json_value_free [08:33:53]json_value_free done [08:33:53]process_json_proto returns [08:33:53]Send response to host [08:33:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67609,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [08:33:53]free response buf [08:33:53]execute_script done [08:33:53]execute_script returns [08:33:53]free content buf [08:33:53]Sock 9.Close socket [08:33:53]Sock 9.Thread stoped [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:35]accept exits with 7 [08:44:35]New connection [08:44:35]New thread 3067538788 created [08:44:35]Thread 3067395428 joined [08:44:35]Waiting for new connection... [08:44:35] Sock 7.Parse request [08:44:35]Sock 7.Check first char [08:44:35]Sock 7.First char is OK [08:44:35]request: POST /json_proto HTTP/1.0 [08:44:35]Method: POST [08:44:35]URL: /json_proto [08:44:35]Method is POST - this is cgi request [08:44:35]url: /json_proto [08:44:35]query_string will be loaded in cgi processing [08:44:35]execute_cgi json_proto POST (null) [08:44:35]execute_cgi path=json_proto method=POST [08:44:35]POST find Content-Length [08:44:35]Host: 172.17.41.195:8080 [08:44:35]Content-Length: 1179 [08:44:35]Content-Type: application/json [08:44:35] [08:44:35]POST finish read [08:44:35]Found Content-Length = 1179 [08:44: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507703\u000A17.05.2024 08:27\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" ] } } [08:44:35]execute_script... [08:44: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507703\u000A17.05.2024 08:27\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" ] } } [08:44:35]POST & json_proto [08:44:35]process_json_proto [08:44:35]json parsed OK: [08:44:35]protocol is kg_v1.0 [08:44:35]action value=print_text [08:44:35]process_action print_text [08:44:35]cmd_print_text [08:44:35]ExternCall_PrintAddStr [08:44:35]wPrintStart [08:44:35]Write to MH i2c: 01 00 00 0B 0A 15 [08:44:35]Write i2c OK [08:44:35]MH_I2C_Read... [08:44:35]Read from MH i2c: 01 [08:44:35]MH_I2C_Read... [08:44:35]Read from MH i2c: 01 07 00 [08:44:35]MH_I2C_Read... [08:44:35]Read from MH i2c: 01 07 00 0B 0A 00 00 00 00 00 FF 0F 2A [08:44:35]RasterBufferAndPrint [08:44:35]line *****ТОВАРНЫЙ ЧЕК***** [08:44:35]line АЗС-91 [08:44:35]line Партнер нефть [08:44:35]line 02508201610067 [08:44:35]line Кассир : Адишов И. [08:44:35]line Счет N : (1)507703 [08:44:35]line 17.05.2024 08:27 [08:44:35]line ПРОДАЖА [08:44:35]line ТРК (МРК, ГНК): 31 [08:44:35]line Вид ГСМ : 2710194210 [08:44:35]line ДТ-К-5 [08:44:35]line 20.000 x 74.70 [08:44:35]line ИТОГ: 1494.00 [08:44:35]line Тип оплаты: Талоны: Топливная Карта [08:44:35]line 02750 [08:44:35]line ______________________ [08:44:35]line (подпись) [08:44:35]written 0, free lines is 4095 [08:44:35]Write to MH i2c: 01 00 00 1F 0A 29 [08:44:35]Write i2c OK [08:44:35]MH_I2C_Read... [08:44:35]Read from MH i2c: 01 [08:44:35]MH_I2C_Read... [08:44:35]Read from MH i2c: 01 07 00 [08:44:35]MH_I2C_Read... [08:44:35]Read from MH i2c: 01 07 00 1F 0A 00 00 00 00 00 0C 0E 4A [08:44:35]RasterBufferAndPrint [08:44:35]line [08:44:35]line [08:44:35]line [08:44:35]line [08:44:35]line [08:44:35]written 0, free lines is 3598 [08:44:35]MH_Cut [08:44:35]Write to MH i2c: D1 01 00 26 0A 01 02 [08:44:35]Write i2c OK [08:44:35]MH_I2C_Read... [08:44:35]Read from MH i2c: D1 [08:44:35]MH_I2C_Read... [08:44:35]Read from MH i2c: D1 01 00 [08:44:35]MH_I2C_Read... [08:44:35]Read from MH i2c: D1 01 00 26 0A 00 01 [08:44:35]Write to MH i2c: 01 00 00 27 0A 31 [08:44:35]Write i2c OK [08:44:35]MH_I2C_Read... [08:44:35]*** Cut start [08:44:35]*** Purtial cut [08:44:35]*** Stage 1: CUTSNS_PIN = 1 [08:44:36]Read from MH i2c: 01 [08:44:36]MH_I2C_Read... [08:44:36]Read from MH i2c: 01 07 00 [08:44:36]MH_I2C_Read... [08:44:36]*** Stop cut motor [08:44:36]*** Cut end [08:44:36]Read from MH i2c: 01 07 00 27 0A 00 00 00 00 00 FF 0F 46 [08:44:36]process_action print_text done [08:44:36]requested_data is exist [08:44:36]produce_requested_data [08:44:36]requested_item fm.sn is exist - process it [08:44:36]wFMCommunicate request_size=4 [08:44:36]MH_SAM_APDU [08:44:36]CAPDU: 80 11 00 00 [08:44:36]Write to MH i2c: E2 08 00 28 0A 80 11 00 00 00 00 00 00 AC [08:44:36]Write i2c OK [08:44:36]MH_I2C_Read... [08:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:36]Read from MH i2c: E2 [08:44:36]MH_I2C_Read... [08:44:36]Read from MH i2c: E2 17 00 [08:44:36]MH_I2C_Read... [08:44:36]Read from MH i2c: E2 17 00 28 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 02 [08:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:44:36]wFMCommunicate OK [08:44:36]requested_item fd.num is exist - process it [08:44:36]SAM_PROTO_GetFieldsCounters [08:44:36]wFMCommunicate request_size=4 [08:44:36]MH_SAM_APDU [08:44:36]CAPDU: 80 13 00 00 [08:44:36]Write to MH i2c: E2 08 00 29 0A 80 13 00 00 00 00 00 00 AF [08:44:36]Write i2c OK [08:44:36]MH_I2C_Read... [08:44:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:36]Read from MH i2c: E2 [08:44:36]MH_I2C_Read... [08:44:36]Read from MH i2c: E2 62 00 [08:44:36]MH_I2C_Read... [08:44:36]Read from MH i2c: E2 62 00 29 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 19 08 01 00 0E 04 04 00 66 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 94 [08:44: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 19 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:44:36]wFMCommunicate OK [08:44:36]SAM_PROTO_GetFieldsCounters done [08:44:36]requested_item shift.num is exist - process it [08:44:36]requested_item shift.opened is exist - process it [08:44:36]req_shift_opened [08:44:36]FM_GetShiftState [08:44:36]SAM_PROTO_GetShiftState [08:44:36]wFMCommunicate request_size=4 [08:44:36]MH_SAM_APDU [08:44:36]CAPDU: 80 13 01 00 [08:44:36]Write to MH i2c: E2 08 00 2A 0A 80 13 01 00 00 00 00 00 B1 [08:44:36]Write i2c OK [08:44:36]MH_I2C_Read... [08:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:36]Read from MH i2c: E2 [08:44:36]MH_I2C_Read... [08:44:36]Read from MH i2c: E2 0E 00 [08:44:36]MH_I2C_Read... [08:44:36]Read from MH i2c: E2 0E 00 2A 0A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 37 [08:44:36]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [08:44:36]wFMCommunicate OK [08:44:36]SAM_PROTO_GetShiftState done [08:44:36]FM_GetShiftState done [08:44:36]req_shift_opened done [08:44:36]requested_item shift.open_date is exist - process it [08:44:36]req_shift_open_date [08:44:36]req_shift_open_date done [08:44:36]produce_requested_data done [08:44:36]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67609,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [08:44:36]process_action_free print_text [08:44:36]json_value_free [08:44:36]json_value_free done [08:44:36]process_json_proto returns [08:44:36]Send response to host [08:44:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67609,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [08:44:36]free response buf [08:44:36]execute_script done [08:44:36]execute_script returns [08:44:36]free content buf [08:44:36]Sock 7.Close socket [08:44:36]Sock 7.Thread stoped [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:03]accept exits with 9 [08:48:03]New connection [08:48:03]New thread 3067395428 created [08:48:03]Thread 3067538788 joined [08:48:03]Waiting for new connection... [08:48:03] Sock 9.Parse request [08:48:03]Sock 9.Check first char [08:48:03]Sock 9.First char is OK [08:48:03]request: POST /json_proto HTTP/1.0 [08:48:03]Method: POST [08:48:03]URL: /json_proto [08:48:03]Method is POST - this is cgi request [08:48:03]url: /json_proto [08:48:03]query_string will be loaded in cgi processing [08:48:03]execute_cgi json_proto POST (null) [08:48:03]execute_cgi path=json_proto method=POST [08:48:03]POST find Content-Length [08:48:03]Host: 172.17.41.195:8080 [08:48:03]Content-Length: 803 [08:48:03]Content-Type: application/json [08:48:03] [08:48:03]POST finish read [08:48:03]Found Content-Length = 803 [08:48:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507704", "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" ] } } [08:48:03]execute_script... [08:48: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)507704", "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" ] } } [08:48:03]POST & json_proto [08:48:03]process_json_proto [08:48:03]json parsed OK: [08:48:03]protocol is kg_v1.0 [08:48:03]action value=close_receipt [08:48:03]process_action close_receipt [08:48:03]cmd_close_receipt [08:48:03]MH_GetDate [08:48:03]Write to MH i2c: F0 00 00 2B 0A 24 [08:48:03]Write i2c OK [08:48:03]MH_I2C_Read... [08:48:03]Read from MH i2c: F0 [08:48:03]MH_I2C_Read... [08:48:03]Read from MH i2c: F0 09 00 [08:48:03]MH_I2C_Read... [08:48:03]Read from MH i2c: F0 09 00 2B 0A 00 C5 19 47 66 FC 21 6F 64 A8 [08:48:03]GetLastDocTimeStamp 1715934070 [08:48:03]current date 1715935685 [08:48:03]FM_GetShiftState [08:48:03]SAM_PROTO_GetShiftState [08:48:03]wFMCommunicate request_size=4 [08:48:03]MH_SAM_APDU [08:48:03]CAPDU: 80 13 01 00 [08:48:03]Write to MH i2c: E2 08 00 2C 0A 80 13 01 00 00 00 00 00 B3 [08:48:03]Write i2c OK [08:48:03]MH_I2C_Read... [08:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:03]Read from MH i2c: E2 [08:48:03]MH_I2C_Read... [08:48:03]Read from MH i2c: E2 0E 00 [08:48:03]MH_I2C_Read... [08:48:03]Read from MH i2c: E2 0E 00 2C 0A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 39 [08:48:03]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [08:48:03]wFMCommunicate OK [08:48:03]SAM_PROTO_GetShiftState done [08:48:03]FM_GetShiftState done [08:48:03]opened in 1715905068 [08:48:03]opened+sec_in_day 1715991468 [08:48:03]quantity*price = 100066 [08:48:03]sum+1 = 100067 [08:48:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 19 17.05.2024 08:48 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67610 ФПД: 245671248052547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T084805&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67610&fm=245671248052547&tin=02508201610067®Number=0000000000091845&sum=100066 [08:48:04]StoreToDocumentArchive [08:48:04]shift 358 fd 67610 [08:48:04]save to /storage/0358/doc_00067610 [08:48:04]save last doc name /storage/0358/doc_00067610 to /storage/kkm_last_doc_name [08:48:04]save OK [08:48:04]Clear old archive folders... [08:48:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:04]tlvbuf is B6FE4A30 [08:48:04]SAM_PROTO_ClearQueue [08:48:04]wFMCommunicate request_size=4 [08:48:04]MH_SAM_APDU [08:48:04]CAPDU: 80 09 00 00 [08:48:04]Write to MH i2c: E2 08 00 39 0A 80 09 00 00 00 00 00 00 B5 [08:48:04]Write i2c OK [08:48:04]MH_I2C_Read... [08:48:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:04]Read from MH i2c: E2 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 03 00 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 03 00 39 0A 00 90 00 B7 [08:48:04]RAPDU: 90 00 [08:48:04]wFMCommunicate OK [08:48:04]SAM_PROTO_ClearQueue done [08:48:04]KKMCreateOFDPacket [08:48:04]OFDProtocolAddRootSTLVToBuf [08:48:04]FM_MakeSignedData [08:48:04]FM_MakeSignedData [08:48:04]SAM_PROTO_SignData [08:48:04]wFMCommunicate request_size=4 [08:48:04]MH_SAM_APDU [08:48:04]CAPDU: 80 0D 01 02 [08:48:04]Write to MH i2c: E2 08 00 3A 0A 80 0D 01 02 00 00 00 00 BD [08:48:04]Write i2c OK [08:48:04]MH_I2C_Read... [08:48:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:04]Read from MH i2c: E2 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 03 00 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 03 00 3A 0A 00 90 00 B8 [08:48:04]RAPDU: 90 00 [08:48:04]wFMCommunicate OK [08:48:04]wFMCommunicate request_size=255 [08:48:04]MH_SAM_APDU [08:48:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 13 00 00 00 F4 03 04 00 C5 19 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 DF [08:48:04]Write to MH i2c: E2 02 01 3B 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 C5 19 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 DF 00 00 21 [08:48:04]Write i2c OK [08:48:04]MH_I2C_Read... [08:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:04]Read from MH i2c: E2 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 03 00 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 03 00 3B 0A 00 90 00 B9 [08:48:04]RAPDU: 90 00 [08:48:04]wFMCommunicate OK [08:48:04]wFMCommunicate request_size=10 [08:48:04]MH_SAM_APDU [08:48:04]CAPDU: 80 0D 02 02 05 6F CB 78 C1 43 [08:48:04]Write to MH i2c: E2 0D 00 3C 0A 80 0D 02 02 05 00 6F CB 78 C1 43 00 00 80 [08:48:04]Write i2c OK [08:48:04]MH_I2C_Read... [08:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:04]Read from MH i2c: E2 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 03 00 [08:48:04]MH_I2C_Read... [08:48:04]Read from MH i2c: E2 03 00 3C 0A 00 90 00 BA [08:48:04]RAPDU: 90 00 [08:48:04]wFMCommunicate OK [08:48:04]wFMCommunicate request_size=4 [08:48:04]MH_SAM_APDU [08:48:04]CAPDU: 80 0D 03 02 [08:48:04]Write to MH i2c: E2 08 00 3D 0A 80 0D 03 02 00 00 00 00 C2 [08:48:04]Write i2c OK [08:48:04]MH_I2C_Read... [08:48:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:05]Read from MH i2c: E2 [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: E2 0B 00 [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: E2 0B 00 3D 0A 00 D1 D5 C9 88 1F 74 89 BB 90 00 91 [08:48:05]RAPDU: D1 D5 C9 88 1F 74 89 BB 90 00 [08:48:05]wFMCommunicate OK [08:48:05]SAM_PROTO_SignData done [08:48:05]FM_MakeSignedData done [08:48:05]CreateOFDProtocolMessage [08:48:05]wFMCommunicate request_size=4 [08:48:05]MH_SAM_APDU [08:48:05]CAPDU: 80 11 00 00 [08:48:05]Write to MH i2c: E2 08 00 3E 0A 80 11 00 00 00 00 00 00 C2 [08:48:05]Write i2c OK [08:48:05]MH_I2C_Read... [08:48:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:05]Read from MH i2c: E2 [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: E2 17 00 [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: E2 17 00 3E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 18 [08:48:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:48:05]wFMCommunicate OK [08:48:05]CreateOFDProtocolMessage done [08:48:05]OFDSenderStorePacket 67610 [08:48:05]StoreOFDPacket docnum=67610 [08:48: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 0F 01 00 00 AB A0 07 01 20 89 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 13 00 00 00 F4 03 04 00 C5 19 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 DF 6F CB 78 C1 43 D1 D5 C9 88 1F 74 89 BB [08:48:05]CheckFolder [08:48:05]dirname=/storage/ofd_packets [08:48:05]CheckFolder done [08:48:05]ProducePacketName [08:48:05]name=ofd_packets/00067610 [08:48:05]NVStorageSaveData ofd_packets/00067610 [08:48:05]File name is /storage/ofd_packets/00067610 [08:48:05]Write 301 bytes [08:48:05]NVStorageSaveData done [08:48:05]OFDSenderStorePacket done [08:48:05]KKMCreateOFDPacket done [08:48:05]NVStorageSaveData kkm_last_timestamp [08:48:05]File name is /storage/kkm_last_timestamp [08:48:05]Write 4 bytes [08:48:05]NVStorageSaveData done [08:48:05]ExternCall_PrintAddStr [08:48:05]wPrintStart [08:48:05]Write to MH i2c: 01 00 00 3F 0A 49 [08:48:05]Write i2c OK [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: 01 [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: 01 07 00 [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: 01 07 00 3F 0A 00 00 00 00 00 FF 0F 5E [08:48:05]RasterBufferAndPrint [08:48:05]line Счет N : (1)507704 [08:48:05]line ИНН: 02508201610067 [08:48:05]line Контрольно-Кассовый Чек [08:48:05]line ПРОДАЖА [08:48:05]line ТРК (МРК, ГНК) : 33 [08:48:05]line Товар: 2710124130 [08:48:05]line Аи-92-К-5 [08:48:05]line 14.980 * 66.80 [08:48:05]line = 1000.66 [08:48:05]line НДС 12% НСП 1% [08:48:05]line > о реализуемом товаре [08:48:05]line ИТОГО: 1000.66 [08:48:05]line НСП 1% : 8.85 [08:48:05]line НДС 12% : 106.26 [08:48:05]line Наличными: 0.00 [08:48:05]line Безнал.: 1000.66 [08:48:05]line Место: АЗС № 91 "Партнер Нефть" [08:48:05]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:48:05]line СНО: Общий режим [08:48:05]line Чек 19 17.05.2024 08:48 [08:48:05]line Смена: 358 ФФД: 1.0 [08:48:05]line ЗНМ: 0300000119 [08:48:05]line РНМ: 0000000000091845 [08:48:05]line Версия ККМ: 001 [08:48:05]line Платежная система: O! деньги [08:48:05]line ФМ: 0000000000871829 [08:48:05]line ФД: 67610 [08:48:05]line ФПД: 245671248052547 [08:48:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T084805&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67610&fm=245671248052547&tin=02508201610067®Number=0000000000091845&sum=100066 [08:48:05]OFD Sender: Processing packet 67610 [packets to send 35, broken 34] [08:48:05]ProducePacketName [08:48:05]name=ofd_packets/00067610 [08:48:05]OFD Sender: To server: pG, [08:48:05]CommunicateWithHost lk.salyk.kg:30040 [08:48:05]ConnectInit lk.salyk.kg [08:48:05]written 0, free lines is 4095 [08:48:05]Connected sock=10 [08:48:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 AB A0 07 01 20 89 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 13 00 00 00 F4 03 04 00 C5 19 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 DF 6F CB 78 C1 43 D1 D5 C9 88 1F 74 89 BB [08:48: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 9F 97 47 00 22 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 1A 08 01 00 F4 03 04 00 9E C1 46 66 B6 04 01 00 00 67 7F 45 E4 46 AE 7B 77 [08:48:05]CommunicateWithHost err = 0 [08:48:05]CheckOFDResponse [08:48:05]1017 (14) - 77093643461234 [08:48:05]1041 (16) - 0000000000871829 [08:48:05]1040 (4) - 67610 [08:48:05]1012 (4) - 17.05.2024 02:31 [08:48:05]1206 (1) - 0 [08:48:05]OFD Sender: Remove packet 67610 [08:48:05]ProducePacketName [08:48:05]name=ofd_packets/00067610 [08:48:05]NVStorageDeleteData [08:48:05]Write to MH i2c: 01 00 00 68 0A 72 [08:48:05]Write i2c OK [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: 01 [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: 01 07 00 [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: 01 07 00 68 0A 00 00 00 00 00 D6 0C 5B [08:48:05]RasterBufferAndPrint [08:48:05]line [08:48:05]line [08:48:05]line [08:48:05]line [08:48:05]line [08:48:05]written 0, free lines is 3294 [08:48:05]MH_Cut [08:48:05]Write to MH i2c: D1 01 00 6F 0A 01 4B [08:48:05]Write i2c OK [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: D1 [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: D1 01 00 [08:48:05]MH_I2C_Read... [08:48:05]Read from MH i2c: D1 01 00 6F 0A 00 4A [08:48:05]Write to MH i2c: 01 00 00 70 0A 7A [08:48:05]Write i2c OK [08:48:05]MH_I2C_Read... [08:48:06]OFD Sender: No OFD packet to send [08:48:06]*** Cut start [08:48:06]*** Purtial cut [08:48:06]*** CUTSNS_PIN = 0 [08:48:06]*** Stage 1: CUTSNS_PIN = 1 [08:48:08]Read from MH i2c: 01 [08:48:08]MH_I2C_Read... [08:48:08]*** Stop cut motor [08:48:08]*** Cut end [08:48:08]Read from MH i2c: 01 07 00 [08:48:08]MH_I2C_Read... [08:48:08]Read from MH i2c: 01 07 00 70 0A 00 00 00 00 00 FF 0F 8F [08:48:08]process_action close_receipt done [08:48:08]requested_data is exist [08:48:08]produce_requested_data [08:48:08]requested_item fm.sn is exist - process it [08:48:08]wFMCommunicate request_size=4 [08:48:08]MH_SAM_APDU [08:48:08]CAPDU: 80 11 00 00 [08:48:08]Write to MH i2c: E2 08 00 71 0A 80 11 00 00 00 00 00 00 F5 [08:48:08]Write i2c OK [08:48:08]MH_I2C_Read... [08:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:08]Read from MH i2c: E2 [08:48:08]MH_I2C_Read... [08:48:08]Read from MH i2c: E2 17 00 [08:48:08]MH_I2C_Read... [08:48:08]Read from MH i2c: E2 17 00 71 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4B [08:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:48:08]wFMCommunicate OK [08:48:08]requested_item fd.num is exist - process it [08:48:08]SAM_PROTO_GetFieldsCounters [08:48:08]wFMCommunicate request_size=4 [08:48:08]MH_SAM_APDU [08:48:08]CAPDU: 80 13 00 00 [08:48:08]Write to MH i2c: E2 08 00 72 0A 80 13 00 00 00 00 00 00 F8 [08:48:08]Write i2c OK [08:48:08]MH_I2C_Read... [08:48:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:08]Read from MH i2c: E2 [08:48:08]MH_I2C_Read... [08:48:08]Read from MH i2c: E2 62 00 [08:48:08]MH_I2C_Read... [08:48:08]Read from MH i2c: E2 62 00 72 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 1A 08 01 00 0E 04 04 00 66 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 E1 [08:48: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 1A 08 01 00 0E 04 04 00 66 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:48:08]wFMCommunicate OK [08:48:08]SAM_PROTO_GetFieldsCounters done [08:48:08]requested_item shift.num is exist - process it [08:48:08]requested_item shift.opened is exist - process it [08:48:08]req_shift_opened [08:48:08]FM_GetShiftState [08:48:08]SAM_PROTO_GetShiftState [08:48:08]wFMCommunicate request_size=4 [08:48:08]MH_SAM_APDU [08:48:08]CAPDU: 80 13 01 00 [08:48:08]Write to MH i2c: E2 08 00 73 0A 80 13 01 00 00 00 00 00 FA [08:48:08]Write i2c OK [08:48:08]MH_I2C_Read... [08:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:08]Read from MH i2c: E2 [08:48:08]MH_I2C_Read... [08:48:08]Read from MH i2c: E2 0E 00 [08:48:08]MH_I2C_Read... [08:48:08]Read from MH i2c: E2 0E 00 73 0A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 80 [08:48:08]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [08:48:08]wFMCommunicate OK [08:48:08]SAM_PROTO_GetShiftState done [08:48:08]FM_GetShiftState done [08:48:08]req_shift_opened done [08:48:08]requested_item shift.open_date is exist - process it [08:48:08]req_shift_open_date [08:48:08]req_shift_open_date done [08:48:08]produce_requested_data done [08:48:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67610,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [08:48:08]process_action_free close_receipt [08:48:08]json_value_free [08:48:08]json_value_free done [08:48:08]process_json_proto returns [08:48:08]Send response to host [08:48:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67610,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [08:48:08]free response buf [08:48:08]execute_script done [08:48:08]execute_script returns [08:48:08]free content buf [08:48:08]Sock 9.Close socket [08:48:08]Sock 9.Thread stoped [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:37]accept exits with 7 [08:49:37]New connection [08:49:37]New thread 3067538788 created [08:49:37]Thread 3067395428 joined [08:49:37]Waiting for new connection... [08:49:37] Sock 7.Parse request [08:49:37]Sock 7.Check first char [08:49:37]Sock 7.First char is OK [08:49:37]request: POST /json_proto HTTP/1.0 [08:49:37]Method: POST [08:49:37]URL: /json_proto [08:49:37]Method is POST - this is cgi request [08:49:37]url: /json_proto [08:49:37]query_string will be loaded in cgi processing [08:49:37]execute_cgi json_proto POST (null) [08:49:37]execute_cgi path=json_proto method=POST [08:49:37]POST find Content-Length [08:49:37]Host: 172.17.41.195:8080 [08:49:37]Content-Length: 670 [08:49:37]Content-Type: application/json [08:49:37] [08:49:37]POST finish read [08:49:37]Found Content-Length = 670 [08:49:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507705", "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" : 5.900, "sum" : 400.02, "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" ] } } [08:49:37]execute_script... [08:49: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)507705", "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" : 5.900, "sum" : 400.02, "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" ] } } [08:49:37]POST & json_proto [08:49:37]process_json_proto [08:49:37]json parsed OK: [08:49:37]protocol is kg_v1.0 [08:49:37]action value=close_receipt [08:49:37]process_action close_receipt [08:49:37]cmd_close_receipt [08:49:37]MH_GetDate [08:49:37]Write to MH i2c: F0 00 00 74 0A 6D [08:49:37]Write i2c OK [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: F0 [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: F0 09 00 [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: F0 09 00 74 0A 00 23 1A 47 66 FC 21 6F 64 50 [08:49:37]GetLastDocTimeStamp 1715935685 [08:49:37]current date 1715935779 [08:49:37]FM_GetShiftState [08:49:37]SAM_PROTO_GetShiftState [08:49:37]wFMCommunicate request_size=4 [08:49:37]MH_SAM_APDU [08:49:37]CAPDU: 80 13 01 00 [08:49:37]Write to MH i2c: E2 08 00 75 0A 80 13 01 00 00 00 00 00 FC [08:49:37]Write i2c OK [08:49:37]MH_I2C_Read... [08:49:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:37]Read from MH i2c: E2 [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: E2 0E 00 [08:49:37]MH_I2C_Read... [08:49:37]Read from MH i2c: E2 0E 00 75 0A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 82 [08:49:37]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [08:49:37]wFMCommunicate OK [08:49:37]SAM_PROTO_GetShiftState done [08:49:37]FM_GetShiftState done [08:49:37]opened in 1715905068 [08:49:37]opened+sec_in_day 1715991468 [08:49:37]quantity*price = 40002 [08:49:37]sum+1 = 40003 [08:49:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 20 17.05.2024 08:49 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67611 ФПД: 38481618142442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T084939&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67611&fm=38481618142442&tin=02508201610067®Number=0000000000091845&sum=40000 [08:49:38]StoreToDocumentArchive [08:49:38]shift 358 fd 67611 [08:49:38]save to /storage/0358/doc_00067611 [08:49:38]save last doc name /storage/0358/doc_00067611 to /storage/kkm_last_doc_name [08:49:38]save OK [08:49:38]Clear old archive folders... [08:49:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:49:38]tlvbuf is 015BAA40 [08:49:38]SAM_PROTO_ClearQueue [08:49:38]wFMCommunicate request_size=4 [08:49:38]MH_SAM_APDU [08:49:38]CAPDU: 80 09 00 00 [08:49:38]Write to MH i2c: E2 08 00 82 0A 80 09 00 00 00 00 00 00 FE [08:49:38]Write i2c OK [08:49:38]MH_I2C_Read... [08:49:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:38]Read from MH i2c: E2 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 03 00 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 03 00 82 0A 00 90 00 00 [08:49:38]RAPDU: 90 00 [08:49:38]wFMCommunicate OK [08:49:38]SAM_PROTO_ClearQueue done [08:49:38]KKMCreateOFDPacket [08:49:38]OFDProtocolAddRootSTLVToBuf [08:49:38]FM_MakeSignedData [08:49:38]FM_MakeSignedData [08:49:38]SAM_PROTO_SignData [08:49:38]wFMCommunicate request_size=4 [08:49:38]MH_SAM_APDU [08:49:38]CAPDU: 80 0D 01 02 [08:49:38]Write to MH i2c: E2 08 00 83 0A 80 0D 01 02 00 00 00 00 06 [08:49:38]Write i2c OK [08:49:38]MH_I2C_Read... [08:49:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:38]Read from MH i2c: E2 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 03 00 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 03 00 83 0A 00 90 00 01 [08:49:38]RAPDU: 90 00 [08:49:38]wFMCommunicate OK [08:49:38]wFMCommunicate request_size=255 [08:49:38]MH_SAM_APDU [08:49: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 98 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 14 00 00 00 F4 03 04 00 23 1A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 [08:49:38]Write to MH i2c: E2 02 01 84 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 98 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 14 00 00 00 F4 03 04 00 23 1A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 00 00 22 [08:49:38]Write i2c OK [08:49:38]MH_I2C_Read... [08:49:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:38]Read from MH i2c: E2 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 03 00 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 03 00 84 0A 00 90 00 02 [08:49:38]RAPDU: 90 00 [08:49:38]wFMCommunicate OK [08:49:38]wFMCommunicate request_size=11 [08:49:38]MH_SAM_APDU [08:49:38]CAPDU: 80 0D 02 02 06 22 FF B3 2E 04 EA [08:49:38]Write to MH i2c: E2 0E 00 85 0A 80 0D 02 02 06 00 22 FF B3 2E 04 EA 00 00 05 [08:49:38]Write i2c OK [08:49:38]MH_I2C_Read... [08:49:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:38]Read from MH i2c: E2 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 03 00 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 03 00 85 0A 00 90 00 03 [08:49:38]RAPDU: 90 00 [08:49:38]wFMCommunicate OK [08:49:38]wFMCommunicate request_size=4 [08:49:38]MH_SAM_APDU [08:49:38]CAPDU: 80 0D 03 02 [08:49:38]Write to MH i2c: E2 08 00 86 0A 80 0D 03 02 00 00 00 00 0B [08:49:38]Write i2c OK [08:49:38]MH_I2C_Read... [08:49:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:38]Read from MH i2c: E2 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 0B 00 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 0B 00 86 0A 00 A1 6C AB B0 7B E0 5B D4 90 00 FE [08:49:38]RAPDU: A1 6C AB B0 7B E0 5B D4 90 00 [08:49:38]wFMCommunicate OK [08:49:38]SAM_PROTO_SignData done [08:49:38]FM_MakeSignedData done [08:49:38]CreateOFDProtocolMessage [08:49:38]wFMCommunicate request_size=4 [08:49:38]MH_SAM_APDU [08:49:38]CAPDU: 80 11 00 00 [08:49:38]Write to MH i2c: E2 08 00 87 0A 80 11 00 00 00 00 00 00 0B [08:49:38]Write i2c OK [08:49:38]MH_I2C_Read... [08:49:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:38]Read from MH i2c: E2 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 17 00 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: E2 17 00 87 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 61 [08:49:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:49:38]wFMCommunicate OK [08:49:38]CreateOFDProtocolMessage done [08:49:38]OFDSenderStorePacket 67611 [08:49:38]StoreOFDPacket docnum=67611 [08:49:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 6E 92 08 01 55 A4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 98 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 14 00 00 00 F4 03 04 00 23 1A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 22 FF B3 2E 04 EA A1 6C AB B0 7B E0 5B D4 [08:49:38]CheckFolder [08:49:38]dirname=/storage/ofd_packets [08:49:38]CheckFolder done [08:49:38]ProducePacketName [08:49:38]name=ofd_packets/00067611 [08:49:38]NVStorageSaveData ofd_packets/00067611 [08:49:38]File name is /storage/ofd_packets/00067611 [08:49:38]Write 302 bytes [08:49:38]NVStorageSaveData done [08:49:38]OFDSenderStorePacket done [08:49:38]KKMCreateOFDPacket done [08:49:38]NVStorageSaveData kkm_last_timestamp [08:49:38]File name is /storage/kkm_last_timestamp [08:49:38]Write 4 bytes [08:49:38]NVStorageSaveData done [08:49:38]OFD Sender: Processing packet 67611 [packets to send 35, broken 34] [08:49:38]ProducePacketName [08:49:38]name=ofd_packets/00067611 [08:49:38]OFD Sender: To server: pG, [08:49:38]CommunicateWithHost lk.salyk.kg:30040 [08:49:38]ConnectInit lk.salyk.kg [08:49:38]ExternCall_PrintAddStr [08:49:38]wPrintStart [08:49:38]Write to MH i2c: 01 00 00 88 0A 92 [08:49:38]Write i2c OK [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: 01 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: 01 07 00 [08:49:38]MH_I2C_Read... [08:49:38]Read from MH i2c: 01 07 00 88 0A 00 00 00 00 00 FF 0F A7 [08:49:38]RasterBufferAndPrint [08:49:38]line Счет N : (1)507705 [08:49:38]line ИНН: 02508201610067 [08:49:38]line Контрольно-Кассовый Чек [08:49:38]line ПРОДАЖА [08:49:38]line ТРК (МРК, ГНК) : 32 [08:49:38]line Товар: 2710124130 [08:49:38]line Super-92-К-5 [08:49:38]line 5.900 * 67.80 [08:49:38]line = 400.02 [08:49:38]line НДС 12% НСП 1% [08:49:38]line > о реализуемом товаре [08:49:38]line ОКРУГЛЕНИЕ: -0.02 [08:49:38]line ИТОГО: 400.00 [08:49:38]line Внесено: 400.00 [08:49:38]line СДАЧА: 0.00 [08:49:38]line НСП 1% : 3.54 [08:49:38]line НДС 12% : 42.48 [08:49:38]line Наличными: 400.00 [08:49:38]line Безнал.: 0.00 [08:49:38]line Место: АЗС № 91 "Партнер Нефть" [08:49:38]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:49:38]line СНО: Общий режим [08:49:38]line Чек 20 17.05.2024 08:49 [08:49:38]line Смена: 358 ФФД: 1.0 [08:49:38]line ЗНМ: 0300000119 [08:49:38]line РНМ: 0000000000091845 [08:49:38]line Версия ККМ: 001 [08:49:38]line ФМ: 0000000000871829 [08:49:38]line ФД: 67611 [08:49:38]line ФПД: 38481618142442 [08:49:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T084939&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67611&fm=38481618142442&tin=02508201610067®Number=0000000000091845&sum=40000 [08:49:39]Connected sock=11 [08:49: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 6E 92 08 01 55 A4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 98 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 14 00 00 00 F4 03 04 00 23 1A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 22 FF B3 2E 04 EA A1 6C AB B0 7B E0 5B D4 [08:49:39]written 0, free lines is 4095 [08:49: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 04 F6 47 00 A8 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 1B 08 01 00 F4 03 04 00 FC C1 46 66 B6 04 01 00 00 7A 8E AF 58 6D 05 9D EC [08:49:39]CommunicateWithHost err = 0 [08:49:39]CheckOFDResponse [08:49:39]1017 (14) - 77093643461234 [08:49:39]1041 (16) - 0000000000871829 [08:49:39]1040 (4) - 67611 [08:49:39]1012 (4) - 17.05.2024 02:33 [08:49:39]1206 (1) - 0 [08:49:39]OFD Sender: Remove packet 67611 [08:49:39]ProducePacketName [08:49:39]name=ofd_packets/00067611 [08:49:39]NVStorageDeleteData [08:49:39]Write to MH i2c: 01 00 00 B2 0A BC [08:49:39]Write i2c OK [08:49:39]MH_I2C_Read... [08:49:39]Read from MH i2c: 01 [08:49:39]MH_I2C_Read... [08:49:39]Read from MH i2c: 01 07 00 [08:49:39]MH_I2C_Read... [08:49:39]Read from MH i2c: 01 07 00 B2 0A 00 00 00 00 00 C7 0C 96 [08:49:39]RasterBufferAndPrint [08:49:39]line [08:49:39]line [08:49:39]line [08:49:39]line [08:49:39]line [08:49:39]written 0, free lines is 3276 [08:49:39]MH_Cut [08:49:39]Write to MH i2c: D1 01 00 B9 0A 01 95 [08:49:39]Write i2c OK [08:49:39]MH_I2C_Read... [08:49:39]Read from MH i2c: D1 [08:49:39]MH_I2C_Read... [08:49:39]Read from MH i2c: D1 01 00 [08:49:39]MH_I2C_Read... [08:49:39]Read from MH i2c: D1 01 00 B9 0A 00 94 [08:49:39]Write to MH i2c: 01 00 00 BA 0A C4 [08:49:39]Write i2c OK [08:49:39]MH_I2C_Read... [08:49:39]OFD Sender: No OFD packet to send [08:49:40]*** Cut start [08:49:40]*** Purtial cut [08:49:40]*** Stage 1: CUTSNS_PIN = 1 [08:49:40]Read from MH i2c: 01 [08:49:40]MH_I2C_Read... [08:49:40]*** Stop cut motor [08:49:40]*** Cut end [08:49:40]Read from MH i2c: 01 07 00 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: 01 07 00 BA 0A 00 00 00 00 00 FF 0F D9 [08:49:40]process_action close_receipt done [08:49:40]requested_data is exist [08:49:40]produce_requested_data [08:49:40]requested_item fm.sn is exist - process it [08:49:40]wFMCommunicate request_size=4 [08:49:40]MH_SAM_APDU [08:49:40]CAPDU: 80 11 00 00 [08:49:40]Write to MH i2c: E2 08 00 BB 0A 80 11 00 00 00 00 00 00 3F [08:49:40]Write i2c OK [08:49:40]MH_I2C_Read... [08:49:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:40]Read from MH i2c: E2 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: E2 17 00 [08:49:40]MH_I2C_Read... [08:49:40]Read from MH i2c: E2 17 00 BB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 95 [08:49:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:49:40]wFMCommunicate OK [08:49:40]requested_item fd.num is exist - process it [08:49:40]SAM_PROTO_GetFieldsCounters [08:49:40]wFMCommunicate request_size=4 [08:49:40]MH_SAM_APDU [08:49:40]CAPDU: 80 13 00 00 [08:49:40]Write to MH i2c: E2 08 00 BC 0A 80 13 00 00 00 00 00 00 42 [08:49:40]Write i2c OK [08:49:40]MH_I2C_Read... [08:49:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:41]Read from MH i2c: E2 [08:49:41]MH_I2C_Read... [08:49:41]Read from MH i2c: E2 62 00 [08:49:41]MH_I2C_Read... [08:49:41]Read from MH i2c: E2 62 00 BC 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 1B 08 01 00 0E 04 04 00 66 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 2F [08:49: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 1B 08 01 00 0E 04 04 00 66 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:49:41]wFMCommunicate OK [08:49:41]SAM_PROTO_GetFieldsCounters done [08:49:41]requested_item shift.num is exist - process it [08:49:41]requested_item shift.opened is exist - process it [08:49:41]req_shift_opened [08:49:41]FM_GetShiftState [08:49:41]SAM_PROTO_GetShiftState [08:49:41]wFMCommunicate request_size=4 [08:49:41]MH_SAM_APDU [08:49:41]CAPDU: 80 13 01 00 [08:49:41]Write to MH i2c: E2 08 00 BD 0A 80 13 01 00 00 00 00 00 44 [08:49:41]Write i2c OK [08:49:41]MH_I2C_Read... [08:49:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:41]Read from MH i2c: E2 [08:49:41]MH_I2C_Read... [08:49:41]Read from MH i2c: E2 0E 00 [08:49:41]MH_I2C_Read... [08:49:41]Read from MH i2c: E2 0E 00 BD 0A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CA [08:49:41]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [08:49:41]wFMCommunicate OK [08:49:41]SAM_PROTO_GetShiftState done [08:49:41]FM_GetShiftState done [08:49:41]req_shift_opened done [08:49:41]requested_item shift.open_date is exist - process it [08:49:41]req_shift_open_date [08:49:41]req_shift_open_date done [08:49:41]produce_requested_data done [08:49:41]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67611,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [08:49:41]process_action_free close_receipt [08:49:41]json_value_free [08:49:41]json_value_free done [08:49:41]process_json_proto returns [08:49:41]Send response to host [08:49:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67611,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [08:49:41]free response buf [08:49:41]execute_script done [08:49:41]execute_script returns [08:49:41]free content buf [08:49:41]Sock 7.Close socket [08:49:41]Sock 7.Thread stoped [08:49:44]OFD Sender: No OFD packet to send [08:49:49]OFD Sender: No OFD packet to send [08:49:54]OFD Sender: No OFD packet to send [08:49:59]OFD Sender: No OFD packet to send [08:50:04]OFD Sender: No OFD packet to send [08:50:09]OFD Sender: No OFD packet to send [08:50:14]OFD Sender: No OFD packet to send [08:50:19]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:55]OFD Sender: No OFD packet to send [08:52:55]accept exits with 9 [08:52:55]New connection [08:52:55]New thread 3067395428 created [08:52:55]Thread 3067538788 joined [08:52:55]Waiting for new connection... [08:52:55] Sock 9.Parse request [08:52:55]Sock 9.Check first char [08:52:55]Sock 9.First char is OK [08:52:55]request: POST /json_proto HTTP/1.0 [08:52:55]Method: POST [08:52:55]URL: /json_proto [08:52:55]Method is POST - this is cgi request [08:52:55]url: /json_proto [08:52:55]query_string will be loaded in cgi processing [08:52:55]execute_cgi json_proto POST (null) [08:52:55]execute_cgi path=json_proto method=POST [08:52:55]POST find Content-Length [08:52:55]Host: 172.17.41.195:8080 [08:52:55]Content-Length: 1179 [08:52:55]Content-Type: application/json [08:52:55] [08:52:55]POST finish read [08:52:55]Found Content-Length = 1179 [08:52: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507706\u000A17.05.2024 08:35\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:52:55]execute_script... [08:52: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507706\u000A17.05.2024 08:35\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:52:55]POST & json_proto [08:52:55]process_json_proto [08:52:55]json parsed OK: [08:52:55]protocol is kg_v1.0 [08:52:55]action value=print_text [08:52:55]process_action print_text [08:52:55]cmd_print_text [08:52:55]ExternCall_PrintAddStr [08:52:55]wPrintStart [08:52:55]Write to MH i2c: 01 00 00 BE 0A C8 [08:52:55]Write i2c OK [08:52:55]MH_I2C_Read... [08:52:55]Read from MH i2c: 01 [08:52:55]MH_I2C_Read... [08:52:55]Read from MH i2c: 01 07 00 [08:52:55]MH_I2C_Read... [08:52:55]Read from MH i2c: 01 07 00 BE 0A 00 00 00 00 00 FF 0F DD [08:52:55]RasterBufferAndPrint [08:52:55]line *****ТОВАРНЫЙ ЧЕК***** [08:52:55]line АЗС-91 [08:52:55]line Партнер нефть [08:52:55]line 02508201610067 [08:52:55]line Кассир : Адишов И. [08:52:55]line Счет N : (1)507706 [08:52:55]line 17.05.2024 08:35 [08:52:55]line ПРОДАЖА [08:52:55]line ТРК (МРК, ГНК): 31 [08:52:55]line Вид ГСМ : 2710194210 [08:52:55]line ДТ-К-5 [08:52:55]line 40.170 x 74.70 [08:52:55]line ИТОГ: 3000.70 [08:52:55]line Тип оплаты: Талоны: Топливная Карта [08:52:55]line 02750 [08:52:55]line ______________________ [08:52:55]line (подпись) [08:52:55]written 0, free lines is 4095 [08:52:55]Write to MH i2c: 01 00 00 D2 0A DC [08:52:55]Write i2c OK [08:52:55]MH_I2C_Read... [08:52:55]Read from MH i2c: 01 [08:52:55]MH_I2C_Read... [08:52:55]Read from MH i2c: 01 07 00 [08:52:55]MH_I2C_Read... [08:52:55]Read from MH i2c: 01 07 00 D2 0A 00 00 00 00 00 0C 0E FD [08:52:55]RasterBufferAndPrint [08:52:55]line [08:52:55]line [08:52:55]line [08:52:55]line [08:52:55]line [08:52:55]written 0, free lines is 3597 [08:52:55]MH_Cut [08:52:55]Write to MH i2c: D1 01 00 D9 0A 01 B5 [08:52:55]Write i2c OK [08:52:55]MH_I2C_Read... [08:52:55]Read from MH i2c: D1 [08:52:55]MH_I2C_Read... [08:52:55]Read from MH i2c: D1 01 00 [08:52:55]MH_I2C_Read... [08:52:55]Read from MH i2c: D1 01 00 D9 0A 00 B4 [08:52:55]Write to MH i2c: 01 00 00 DA 0A E4 [08:52:55]Write i2c OK [08:52:55]MH_I2C_Read... [08:52:56]*** Cut start [08:52:56]*** Purtial cut [08:52:56]*** CUTSNS_PIN = 0 [08:52:56]*** Stage 1: CUTSNS_PIN = 1 [08:52:58]Read from MH i2c: 01 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: 01 07 00 [08:52:58]MH_I2C_Read... [08:52:58]*** Stop cut motor [08:52:58]*** Cut end [08:52:58]Read from MH i2c: 01 07 00 DA 0A 00 00 00 00 00 FF 0F F9 [08:52:58]process_action print_text done [08:52:58]requested_data is exist [08:52:58]produce_requested_data [08:52:58]requested_item fm.sn is exist - process it [08:52:58]wFMCommunicate request_size=4 [08:52:58]MH_SAM_APDU [08:52:58]CAPDU: 80 11 00 00 [08:52:58]Write to MH i2c: E2 08 00 DB 0A 80 11 00 00 00 00 00 00 5F [08:52:58]Write i2c OK [08:52:58]MH_I2C_Read... [08:52:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:58]Read from MH i2c: E2 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: E2 17 00 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: E2 17 00 DB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B5 [08:52:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:52:58]wFMCommunicate OK [08:52:58]requested_item fd.num is exist - process it [08:52:58]SAM_PROTO_GetFieldsCounters [08:52:58]wFMCommunicate request_size=4 [08:52:58]MH_SAM_APDU [08:52:58]CAPDU: 80 13 00 00 [08:52:58]Write to MH i2c: E2 08 00 DC 0A 80 13 00 00 00 00 00 00 62 [08:52:58]Write i2c OK [08:52:58]MH_I2C_Read... [08:52:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:58]Read from MH i2c: E2 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: E2 62 00 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: E2 62 00 DC 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 1B 08 01 00 0E 04 04 00 66 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 4F [08:52: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 1B 08 01 00 0E 04 04 00 66 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:52:58]wFMCommunicate OK [08:52:58]SAM_PROTO_GetFieldsCounters done [08:52:58]requested_item shift.num is exist - process it [08:52:58]requested_item shift.opened is exist - process it [08:52:58]req_shift_opened [08:52:58]FM_GetShiftState [08:52:58]SAM_PROTO_GetShiftState [08:52:58]wFMCommunicate request_size=4 [08:52:58]MH_SAM_APDU [08:52:58]CAPDU: 80 13 01 00 [08:52:58]Write to MH i2c: E2 08 00 DD 0A 80 13 01 00 00 00 00 00 64 [08:52:58]Write i2c OK [08:52:58]MH_I2C_Read... [08:52:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:58]Read from MH i2c: E2 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: E2 0E 00 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: E2 0E 00 DD 0A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 EA [08:52:58]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [08:52:58]wFMCommunicate OK [08:52:58]SAM_PROTO_GetShiftState done [08:52:58]FM_GetShiftState done [08:52:58]req_shift_opened done [08:52:58]requested_item shift.open_date is exist - process it [08:52:58]req_shift_open_date [08:52:58]req_shift_open_date done [08:52:58]produce_requested_data done [08:52:58]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67611,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [08:52:58]process_action_free print_text [08:52:58]json_value_free [08:52:58]json_value_free done [08:52:58]process_json_proto returns [08:52:58]Send response to host [08:52:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67611,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [08:52:58]free response buf [08:52:58]execute_script done [08:52:58]execute_script returns [08:52:58]free content buf [08:52:58]Sock 9.Close socket [08:52:58]Sock 9.Thread stoped [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:10]OFD Sender: No OFD packet to send [08:56:15]OFD Sender: No OFD packet to send [08:56:20]OFD Sender: No OFD packet to send [08:56:25]OFD Sender: No OFD packet to send [08:56:30]OFD Sender: No OFD packet to send [08:56:31]accept exits with 7 [08:56:31]New connection [08:56:31]New thread 3067538788 created [08:56:31]Thread 3067395428 joined [08:56:31]Waiting for new connection... [08:56:31] Sock 7.Parse request [08:56:31]Sock 7.Check first char [08:56:31]Sock 7.First char is OK [08:56:31]request: POST /json_proto HTTP/1.0 [08:56:31]Method: POST [08:56:31]URL: /json_proto [08:56:31]Method is POST - this is cgi request [08:56:31]url: /json_proto [08:56:31]query_string will be loaded in cgi processing [08:56:31]execute_cgi json_proto POST (null) [08:56:31]execute_cgi path=json_proto method=POST [08:56:31]POST find Content-Length [08:56:31]Host: 172.17.41.195:8080 [08:56:31]Content-Length: 1180 [08:56:31]Content-Type: application/json [08:56:31] [08:56:31]POST finish read [08:56:31]Found Content-Length = 1180 [08:56: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507708\u000A17.05.2024 08:39\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 7.490 x 66.80\u000A\u0418\u0422\u041E\u0413: 500.33\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:31]execute_script... [08:56: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507708\u000A17.05.2024 08:39\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 7.490 x 66.80\u000A\u0418\u0422\u041E\u0413: 500.33\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:31]POST & json_proto [08:56:31]process_json_proto [08:56:31]json parsed OK: [08:56:31]protocol is kg_v1.0 [08:56:31]action value=print_text [08:56:31]process_action print_text [08:56:31]cmd_print_text [08:56:31]ExternCall_PrintAddStr [08:56:31]wPrintStart [08:56:31]Write to MH i2c: 01 00 00 DE 0A E8 [08:56:31]Write i2c OK [08:56:31]MH_I2C_Read... [08:56:31]Read from MH i2c: 01 [08:56:31]MH_I2C_Read... [08:56:31]Read from MH i2c: 01 07 00 [08:56:31]MH_I2C_Read... [08:56:31]Read from MH i2c: 01 07 00 DE 0A 00 00 00 00 00 FF 0F FD [08:56:31]RasterBufferAndPrint [08:56:31]line *****ТОВАРНЫЙ ЧЕК***** [08:56:31]line АЗС-91 [08:56:31]line Партнер нефть [08:56:31]line 02508201610067 [08:56:31]line Кассир : Адишов И. [08:56:31]line Счет N : (1)507708 [08:56:31]line 17.05.2024 08:39 [08:56:31]line ПРОДАЖА [08:56:31]line ТРК (МРК, ГНК): 43 [08:56:31]line Вид ГСМ : 2710124130 [08:56:31]line Аи-92-К-5 [08:56:31]line 7.490 x 66.80 [08:56:31]line ИТОГ: 500.33 [08:56:31]line Тип оплаты: Талоны: Топливная Карта [08:56:31]line 02750 [08:56:31]line ______________________ [08:56:31]line (подпись) [08:56:31]written 0, free lines is 4095 [08:56:32]Write to MH i2c: 01 00 00 F2 0A FC [08:56:32]Write i2c OK [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: 01 [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: 01 07 00 [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: 01 07 00 F2 0A 00 00 00 00 00 0E 0E 1F [08:56:32]RasterBufferAndPrint [08:56:32]line [08:56:32]line [08:56:32]line [08:56:32]line [08:56:32]line [08:56:32]written 0, free lines is 3599 [08:56:32]MH_Cut [08:56:32]Write to MH i2c: D1 01 00 F9 0A 01 D5 [08:56:32]Write i2c OK [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: D1 [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: D1 01 00 [08:56:32]MH_I2C_Read... [08:56:32]Read from MH i2c: D1 01 00 F9 0A 00 D4 [08:56:32]Write to MH i2c: 01 00 00 FA 0A 04 [08:56:32]Write i2c OK [08:56:32]MH_I2C_Read... [08:56:32]*** Cut start [08:56:32]*** Purtial cut [08:56:32]*** Stage 1: CUTSNS_PIN = 1 [08:56:33]Read from MH i2c: 01 [08:56:33]MH_I2C_Read... [08:56:33]Read from MH i2c: 01 07 00 [08:56:33]MH_I2C_Read... [08:56:33]*** Stop cut motor [08:56:33]*** Cut end [08:56:33]Read from MH i2c: 01 07 00 FA 0A 00 00 00 00 00 FF 0F 19 [08:56:33]process_action print_text done [08:56:33]requested_data is exist [08:56:33]produce_requested_data [08:56:33]requested_item fm.sn is exist - process it [08:56:33]wFMCommunicate request_size=4 [08:56:33]MH_SAM_APDU [08:56:33]CAPDU: 80 11 00 00 [08:56:33]Write to MH i2c: E2 08 00 FB 0A 80 11 00 00 00 00 00 00 7F [08:56:33]Write i2c OK [08:56:33]MH_I2C_Read... [08:56:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:33]Read from MH i2c: E2 [08:56:33]MH_I2C_Read... [08:56:33]Read from MH i2c: E2 17 00 [08:56:33]MH_I2C_Read... [08:56:33]Read from MH i2c: E2 17 00 FB 0A 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:56: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:56:33]wFMCommunicate OK [08:56:33]requested_item fd.num is exist - process it [08:56:33]SAM_PROTO_GetFieldsCounters [08:56:33]wFMCommunicate request_size=4 [08:56:33]MH_SAM_APDU [08:56:33]CAPDU: 80 13 00 00 [08:56:33]Write to MH i2c: E2 08 00 FC 0A 80 13 00 00 00 00 00 00 82 [08:56:33]Write i2c OK [08:56:33]MH_I2C_Read... [08:56:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:33]Read from MH i2c: E2 [08:56:33]MH_I2C_Read... [08:56:33]Read from MH i2c: E2 62 00 [08:56:33]MH_I2C_Read... [08:56:33]Read from MH i2c: E2 62 00 FC 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 1B 08 01 00 0E 04 04 00 66 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 6F [08:56: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 1B 08 01 00 0E 04 04 00 66 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:56:33]wFMCommunicate OK [08:56:33]SAM_PROTO_GetFieldsCounters done [08:56:33]requested_item shift.num is exist - process it [08:56:33]requested_item shift.opened is exist - process it [08:56:33]req_shift_opened [08:56:33]FM_GetShiftState [08:56:33]SAM_PROTO_GetShiftState [08:56:33]wFMCommunicate request_size=4 [08:56:33]MH_SAM_APDU [08:56:33]CAPDU: 80 13 01 00 [08:56:33]Write to MH i2c: E2 08 00 FD 0A 80 13 01 00 00 00 00 00 84 [08:56:33]Write i2c OK [08:56:33]MH_I2C_Read... [08:56:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:33]Read from MH i2c: E2 [08:56:33]MH_I2C_Read... [08:56:33]Read from MH i2c: E2 0E 00 [08:56:33]MH_I2C_Read... [08:56:33]Read from MH i2c: E2 0E 00 FD 0A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 0A [08:56:33]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [08:56:33]wFMCommunicate OK [08:56:33]SAM_PROTO_GetShiftState done [08:56:33]FM_GetShiftState done [08:56:33]req_shift_opened done [08:56:33]requested_item shift.open_date is exist - process it [08:56:33]req_shift_open_date [08:56:33]req_shift_open_date done [08:56:33]produce_requested_data done [08:56:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67611,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [08:56:33]process_action_free print_text [08:56:33]json_value_free [08:56:33]json_value_free done [08:56:33]process_json_proto returns [08:56:33]Send response to host [08:56:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67611,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [08:56:33]free response buf [08:56:33]execute_script done [08:56:33]execute_script returns [08:56:33]free content buf [08:56:33]Sock 7.Close socket [08:56:33]Sock 7.Thread stoped [08:56:35]OFD Sender: No OFD packet to send [08:56:40]OFD Sender: No OFD packet to send [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:20]OFD Sender: No OFD packet to send [08:57:25]OFD Sender: No OFD packet to send [08:57:30]OFD Sender: No OFD packet to send [08:57:35]OFD Sender: No OFD packet to send [08:57:40]OFD Sender: No OFD packet to send [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:55]OFD Sender: No OFD packet to send [08:58:00]OFD Sender: No OFD packet to send [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:30]OFD Sender: No OFD packet to send [08:58:35]OFD Sender: No OFD packet to send [08:58:36]accept exits with 9 [08:58:36]New connection [08:58:36]New thread 3067395428 created [08:58:36]Thread 3067538788 joined [08:58:36]Waiting for new connection... [08:58:36] Sock 9.Parse request [08:58:36]Sock 9.Check first char [08:58:36]Sock 9.First char is OK [08:58:36]request: POST /json_proto HTTP/1.0 [08:58:36]Method: POST [08:58:36]URL: /json_proto [08:58:36]Method is POST - this is cgi request [08:58:36]url: /json_proto [08:58:36]query_string will be loaded in cgi processing [08:58:36]execute_cgi json_proto POST (null) [08:58:36]execute_cgi path=json_proto method=POST [08:58:36]POST find Content-Length [08:58:36]Host: 172.17.41.195:8080 [08:58:36]Content-Length: 682 [08:58:36]Content-Type: application/json [08:58:36] [08:58:36]POST finish read [08:58:36]Found Content-Length = 682 [08:58:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507707", "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" : 37.430, "sum" : 2500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:36]execute_script... [08:58: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)507707", "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" : 37.430, "sum" : 2500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:36]POST & json_proto [08:58:36]process_json_proto [08:58:36]json parsed OK: [08:58:36]protocol is kg_v1.0 [08:58:36]action value=close_receipt [08:58:36]process_action close_receipt [08:58:36]cmd_close_receipt [08:58:36]MH_GetDate [08:58:36]Write to MH i2c: F0 00 00 FE 0A F7 [08:58:36]Write i2c OK [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: F0 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: F0 09 00 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: F0 09 00 FE 0A 00 3E 1C 47 66 FC 21 6F 64 F7 [08:58:36]GetLastDocTimeStamp 1715935779 [08:58:36]current date 1715936318 [08:58:36]FM_GetShiftState [08:58:36]SAM_PROTO_GetShiftState [08:58:36]wFMCommunicate request_size=4 [08:58:36]MH_SAM_APDU [08:58:36]CAPDU: 80 13 01 00 [08:58:36]Write to MH i2c: E2 08 00 FF 0A 80 13 01 00 00 00 00 00 86 [08:58:36]Write i2c OK [08:58:36]MH_I2C_Read... [08:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:36]Read from MH i2c: E2 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: E2 0E 00 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: E2 0E 00 FF 0A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 0C [08:58:36]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [08:58:36]wFMCommunicate OK [08:58:36]SAM_PROTO_GetShiftState done [08:58:36]FM_GetShiftState done [08:58:36]opened in 1715905068 [08:58:36]opened+sec_in_day 1715991468 [08:58:36]quantity*price = 250032 [08:58:36]sum+1 = 250033 [08:58:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 21 17.05.2024 08:58 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67612 ФПД: 53955377752727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T085838&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67612&fm=53955377752727&tin=02508201610067®Number=0000000000091845&sum=250000 [08:58:37]StoreToDocumentArchive [08:58:37]shift 358 fd 67612 [08:58:37]save to /storage/0358/doc_00067612 [08:58:37]save last doc name /storage/0358/doc_00067612 to /storage/kkm_last_doc_name [08:58:37]save OK [08:58:37]Clear old archive folders... [08:58:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:58:37]tlvbuf is 015B8440 [08:58:37]SAM_PROTO_ClearQueue [08:58:37]wFMCommunicate request_size=4 [08:58:37]MH_SAM_APDU [08:58:37]CAPDU: 80 09 00 00 [08:58:37]Write to MH i2c: E2 08 00 0C 0B 80 09 00 00 00 00 00 00 89 [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:37]Read from MH i2c: E2 03 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 03 00 0C 0B 00 90 00 8B [08:58:37]RAPDU: 90 00 [08:58:37]wFMCommunicate OK [08:58:37]SAM_PROTO_ClearQueue done [08:58:37]KKMCreateOFDPacket [08:58:37]OFDProtocolAddRootSTLVToBuf [08:58:37]FM_MakeSignedData [08:58:37]FM_MakeSignedData [08:58:37]SAM_PROTO_SignData [08:58:37]wFMCommunicate request_size=4 [08:58:37]MH_SAM_APDU [08:58:37]CAPDU: 80 0D 01 02 [08:58:37]Write to MH i2c: E2 08 00 0D 0B 80 0D 01 02 00 00 00 00 91 [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 03 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 03 00 0D 0B 00 90 00 8C [08:58:37]RAPDU: 90 00 [08:58:37]wFMCommunicate OK [08:58:37]wFMCommunicate request_size=255 [08:58:37]MH_SAM_APDU [08:58: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 36 92 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 B8 67 00 00 00 00 07 04 06 00 90 D0 03 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 3E 1C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 31 [08:58:37]Write to MH i2c: E2 02 01 0E 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 36 92 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 B8 67 00 00 00 00 07 04 06 00 90 D0 03 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 3E 1C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 31 00 00 88 [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 03 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 03 00 0E 0B 00 90 00 8D [08:58:37]RAPDU: 90 00 [08:58:37]wFMCommunicate OK [08:58:37]wFMCommunicate request_size=10 [08:58:37]MH_SAM_APDU [08:58:37]CAPDU: 80 0D 02 02 05 12 77 1F EA 97 [08:58:37]Write to MH i2c: E2 0D 00 0F 0B 80 0D 02 02 05 00 12 77 1F EA 97 00 00 C7 [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 03 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 03 00 0F 0B 00 90 00 8E [08:58:37]RAPDU: 90 00 [08:58:37]wFMCommunicate OK [08:58:37]wFMCommunicate request_size=4 [08:58:37]MH_SAM_APDU [08:58:37]CAPDU: 80 0D 03 02 [08:58:37]Write to MH i2c: E2 08 00 10 0B 80 0D 03 02 00 00 00 00 96 [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 0B 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 0B 00 10 0B 00 3F 48 E9 6A 21 D3 EE C9 90 00 1C [08:58:37]RAPDU: 3F 48 E9 6A 21 D3 EE C9 90 00 [08:58:37]wFMCommunicate OK [08:58:37]SAM_PROTO_SignData done [08:58:37]FM_MakeSignedData done [08:58:37]CreateOFDProtocolMessage [08:58:37]wFMCommunicate request_size=4 [08:58:37]MH_SAM_APDU [08:58:37]CAPDU: 80 11 00 00 [08:58:37]Write to MH i2c: E2 08 00 11 0B 80 11 00 00 00 00 00 00 96 [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 17 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 17 00 11 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EC [08:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:58:37]wFMCommunicate OK [08:58:37]CreateOFDProtocolMessage done [08:58:37]OFDSenderStorePacket 67612 [08:58:37]StoreOFDPacket docnum=67612 [08:58: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 3F 7C 07 01 9C 83 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 36 92 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 B8 67 00 00 00 00 07 04 06 00 90 D0 03 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 3E 1C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 31 12 77 1F EA 97 3F 48 E9 6A 21 D3 EE C9 [08:58:37]CheckFolder [08:58:37]dirname=/storage/ofd_packets [08:58:37]CheckFolder done [08:58:37]ProducePacketName [08:58:37]name=ofd_packets/00067612 [08:58:37]NVStorageSaveData ofd_packets/00067612 [08:58:37]File name is /storage/ofd_packets/00067612 [08:58:37]Write 301 bytes [08:58:37]NVStorageSaveData done [08:58:37]OFDSenderStorePacket done [08:58:37]KKMCreateOFDPacket done [08:58:37]NVStorageSaveData kkm_last_timestamp [08:58:37]File name is /storage/kkm_last_timestamp [08:58:37]Write 4 bytes [08:58:37]NVStorageSaveData done [08:58:37]ExternCall_PrintAddStr [08:58:37]wPrintStart [08:58:37]Write to MH i2c: 01 00 00 12 0B 1D [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: 01 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: 01 07 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: 01 07 00 12 0B 00 00 00 00 00 FF 0F 32 [08:58:37]RasterBufferAndPrint [08:58:37]line Счет N : (1)507707 [08:58:37]line ИНН: 02508201610067 [08:58:37]line Контрольно-Кассовый Чек [08:58:37]line ПРОДАЖА [08:58:37]line ТРК (МРК, ГНК) : 33 [08:58:37]line Товар: 2710124130 [08:58:37]line Аи-92-К-5 [08:58:37]line 37.430 * 66.80 [08:58:37]line = 2500.32 [08:58:37]line НДС 12% НСП 1% [08:58:37]line > о реализуемом товаре [08:58:37]line ОКРУГЛЕНИЕ: -0.32 [08:58:37]line ИТОГО: 2500.00 [08:58:37]line Внесено: 2500.00 [08:58:37]line СДАЧА: 0.00 [08:58:37]line НСП 1% : 22.13 [08:58:37]line НДС 12% : 265.52 [08:58:37]line Наличными: 2500.00 [08:58:37]line Безнал.: 0.00 [08:58:37]line Место: АЗС № 91 "Партнер Нефть" [08:58:37]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:58:37]line СНО: Общий режим [08:58:37]line Чек 21 17.05.2024 08:58 [08:58:37]line Смена: 358 ФФД: 1.0 [08:58:37]line ЗНМ: 0300000119 [08:58:37]line РНМ: 0000000000091845 [08:58:37]line Версия ККМ: 001 [08:58:37]line ФМ: 0000000000871829 [08:58:37]line ФД: 67612 [08:58:37]line ФПД: 53955377752727 [08:58:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T085838&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67612&fm=53955377752727&tin=02508201610067®Number=0000000000091845&sum=250000 [08:58:38]written 0, free lines is 4095 [08:58:38]OFD Sender: Processing packet 67612 [packets to send 35, broken 34] [08:58:38]ProducePacketName [08:58:38]name=ofd_packets/00067612 [08:58:38]OFD Sender: To server: pG, [08:58:38]CommunicateWithHost lk.salyk.kg:30040 [08:58:38]ConnectInit lk.salyk.kg [08:58:38]Connected sock=10 [08:58: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 3F 7C 07 01 9C 83 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 36 92 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 B8 67 00 00 00 00 07 04 06 00 90 D0 03 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 3E 1C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 31 12 77 1F EA 97 3F 48 E9 6A 21 D3 EE C9 [08:58: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 59 AD 47 00 C8 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 1C 08 01 00 F4 03 04 00 17 C4 46 66 B6 04 01 00 00 93 E1 B2 27 6B 5D 9C 3E [08:58:38]CommunicateWithHost err = 0 [08:58:38]CheckOFDResponse [08:58:38]1017 (14) - 77093643461234 [08:58:38]1041 (16) - 0000000000871829 [08:58:38]1040 (4) - 67612 [08:58:38]1012 (4) - 17.05.2024 02:42 [08:58:38]1206 (1) - 0 [08:58:38]OFD Sender: Remove packet 67612 [08:58:38]ProducePacketName [08:58:38]name=ofd_packets/00067612 [08:58:38]NVStorageDeleteData [08:58:38]Write to MH i2c: 01 00 00 3C 0B 47 [08:58:38]Write i2c OK [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: 01 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: 01 07 00 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: 01 07 00 3C 0B 00 00 00 00 00 C2 0C 1C [08:58:38]RasterBufferAndPrint [08:58:38]line [08:58:38]line [08:58:38]line [08:58:38]line [08:58:38]line [08:58:38]written 0, free lines is 3272 [08:58:38]MH_Cut [08:58:38]Write to MH i2c: D1 01 00 43 0B 01 20 [08:58:38]Write i2c OK [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: D1 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: D1 01 00 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: D1 01 00 43 0B 00 1F [08:58:38]Write to MH i2c: 01 00 00 44 0B 4F [08:58:38]Write i2c OK [08:58:38]MH_I2C_Read... [08:58:39]OFD Sender: No OFD packet to send [08:58:39]*** Cut start [08:58:39]*** Purtial cut [08:58:39]*** CUTSNS_PIN = 0 [08:58:39]*** Stage 1: CUTSNS_PIN = 1 [08:58:41]Read from MH i2c: 01 [08:58:41]MH_I2C_Read... [08:58:41]*** Stop cut motor [08:58:41]*** Cut end [08:58:41]Read from MH i2c: 01 07 00 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: 01 07 00 44 0B 00 00 00 00 00 FF 0F 64 [08:58:41]process_action close_receipt done [08:58:41]requested_data is exist [08:58:41]produce_requested_data [08:58:41]requested_item fm.sn is exist - process it [08:58:41]wFMCommunicate request_size=4 [08:58:41]MH_SAM_APDU [08:58:41]CAPDU: 80 11 00 00 [08:58:41]Write to MH i2c: E2 08 00 45 0B 80 11 00 00 00 00 00 00 CA [08:58:41]Write i2c OK [08:58:41]MH_I2C_Read... [08:58:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:41]Read from MH i2c: E2 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 17 00 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 17 00 45 0B 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:58:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:58:41]wFMCommunicate OK [08:58:41]requested_item fd.num is exist - process it [08:58:41]SAM_PROTO_GetFieldsCounters [08:58:41]wFMCommunicate request_size=4 [08:58:41]MH_SAM_APDU [08:58:41]CAPDU: 80 13 00 00 [08:58:41]Write to MH i2c: E2 08 00 46 0B 80 13 00 00 00 00 00 00 CD [08:58:41]Write i2c OK [08:58:41]MH_I2C_Read... [08:58:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:41]Read from MH i2c: E2 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 62 00 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 62 00 46 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 1C 08 01 00 0E 04 04 00 66 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 BE [08:58: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 1C 08 01 00 0E 04 04 00 66 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:58:41]wFMCommunicate OK [08:58:41]SAM_PROTO_GetFieldsCounters done [08:58:41]requested_item shift.num is exist - process it [08:58:41]requested_item shift.opened is exist - process it [08:58:41]req_shift_opened [08:58:41]FM_GetShiftState [08:58:41]SAM_PROTO_GetShiftState [08:58:41]wFMCommunicate request_size=4 [08:58:41]MH_SAM_APDU [08:58:41]CAPDU: 80 13 01 00 [08:58:41]Write to MH i2c: E2 08 00 47 0B 80 13 01 00 00 00 00 00 CF [08:58:41]Write i2c OK [08:58:41]MH_I2C_Read... [08:58:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:41]Read from MH i2c: E2 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 0E 00 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: E2 0E 00 47 0B 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 55 [08:58:41]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [08:58:41]wFMCommunicate OK [08:58:41]SAM_PROTO_GetShiftState done [08:58:41]FM_GetShiftState done [08:58:41]req_shift_opened done [08:58:41]requested_item shift.open_date is exist - process it [08:58:41]req_shift_open_date [08:58:41]req_shift_open_date done [08:58:41]produce_requested_data done [08:58:41]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [08:58:41]process_action_free close_receipt [08:58:41]json_value_free [08:58:41]json_value_free done [08:58:41]process_json_proto returns [08:58:41]Send response to host [08:58:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [08:58:41]free response buf [08:58:41]execute_script done [08:58:41]execute_script returns [08:58:41]free content buf [08:58:41]Sock 9.Close socket [08:58:41]Sock 9.Thread stoped [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:49]OFD Sender: No OFD packet to send [08:59:54]OFD Sender: No OFD packet to send [08:59:59]OFD Sender: No OFD packet to send [09:00:04]OFD Sender: No OFD packet to send [09:00:09]OFD Sender: No OFD packet to send [09:00:14]OFD Sender: No OFD packet to send [09:00:19]OFD Sender: No OFD packet to send [09:00:24]OFD Sender: No OFD packet to send [09:00:29]OFD Sender: No OFD packet to send [09:00:34]OFD Sender: No OFD packet to send [09:00:39]OFD Sender: No OFD packet to send [09:00:44]OFD Sender: No OFD packet to send [09:00:49]OFD Sender: No OFD packet to send [09:00:54]OFD Sender: No OFD packet to send [09:00:59]OFD Sender: No OFD packet to send [09:01:04]OFD Sender: No OFD packet to send [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]OFD Sender: No OFD packet to send [09:02:19]OFD Sender: No OFD packet to send [09:02:24]OFD Sender: No OFD packet to send [09:02:29]OFD Sender: No OFD packet to send [09:02:34]OFD Sender: No OFD packet to send [09:02:39]OFD Sender: No OFD packet to send [09:02:44]OFD Sender: No OFD packet to send [09:02:49]OFD Sender: No OFD packet to send [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:19]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:39]OFD Sender: No OFD packet to send [09:03:44]OFD Sender: No OFD packet to send [09:03:49]OFD Sender: No OFD packet to send [09:03:54]OFD Sender: No OFD packet to send [09:03:59]OFD Sender: No OFD packet to send [09:04:04]OFD Sender: No OFD packet to send [09:04:09]OFD Sender: No OFD packet to send [09:04:14]OFD Sender: No OFD packet to send [09:04:19]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:29]OFD Sender: No OFD packet to send [09:04:34]accept exits with 7 [09:04:34]New connection [09:04:34]New thread 3067538788 created [09:04:34]Thread 3067395428 joined [09:04:34]Waiting for new connection... [09:04:34] Sock 7.Parse request [09:04:34]Sock 7.Check first char [09:04:34]Sock 7.First char is OK [09:04:34]request: POST /json_proto HTTP/1.0 [09:04:34]Method: POST [09:04:34]URL: /json_proto [09:04:34]Method is POST - this is cgi request [09:04:34]url: /json_proto [09:04:34]query_string will be loaded in cgi processing [09:04:34]execute_cgi json_proto POST (null) [09:04:34]execute_cgi path=json_proto method=POST [09:04:34]POST find Content-Length [09:04:34]Host: 172.17.41.195:8080 [09:04:34]Content-Length: 1178 [09:04:34]Content-Type: application/json [09:04:34] [09:04:34]POST finish read [09:04:34]Found Content-Length = 1178 [09:04: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507710\u000A17.05.2024 08:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 747.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:34]execute_script... [09:04: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507710\u000A17.05.2024 08:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 747.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:34]POST & json_proto [09:04:34]process_json_proto [09:04:34]json parsed OK: [09:04:34]protocol is kg_v1.0 [09:04:34]action value=print_text [09:04:34]process_action print_text [09:04:34]cmd_print_text [09:04:34]ExternCall_PrintAddStr [09:04:34]wPrintStart [09:04:34]Write to MH i2c: 01 00 00 48 0B 53 [09:04:34]Write i2c OK [09:04:34]MH_I2C_Read... [09:04:34]Read from MH i2c: 01 [09:04:34]MH_I2C_Read... [09:04:34]Read from MH i2c: 01 07 00 [09:04:34]MH_I2C_Read... [09:04:34]Read from MH i2c: 01 07 00 48 0B 00 00 00 00 00 FF 0F 68 [09:04:34]RasterBufferAndPrint [09:04:34]line *****ТОВАРНЫЙ ЧЕК***** [09:04:34]line АЗС-91 [09:04:34]line Партнер нефть [09:04:34]line 02508201610067 [09:04:34]line Кассир : Адишов И. [09:04:34]line Счет N : (1)507710 [09:04:34]line 17.05.2024 08:47 [09:04:34]line ПРОДАЖА [09:04:34]line ТРК (МРК, ГНК): 21 [09:04:34]line Вид ГСМ : 2710194210 [09:04:34]line ДТ-К-5 [09:04:34]line 10.000 x 74.70 [09:04:34]line ИТОГ: 747.00 [09:04:34]line Тип оплаты: Талоны: Топливная Карта [09:04:34]line 02750 [09:04:34]line ______________________ [09:04:34]line (подпись) [09:04:34]written 0, free lines is 4095 [09:04:34]Write to MH i2c: 01 00 00 5C 0B 67 [09:04:34]Write i2c OK [09:04:34]MH_I2C_Read... [09:04:34]Read from MH i2c: 01 [09:04:34]MH_I2C_Read... [09:04:34]Read from MH i2c: 01 07 00 [09:04:34]MH_I2C_Read... [09:04:34]Read from MH i2c: 01 07 00 5C 0B 00 00 00 00 00 0B 0E 87 [09:04:34]RasterBufferAndPrint [09:04:34]line [09:04:34]line [09:04:34]line [09:04:34]line [09:04:34]line [09:04:34]written 0, free lines is 3596 [09:04:34]MH_Cut [09:04:34]Write to MH i2c: D1 01 00 63 0B 01 40 [09:04:34]Write i2c OK [09:04:34]MH_I2C_Read... [09:04:34]Read from MH i2c: D1 [09:04:34]MH_I2C_Read... [09:04:34]Read from MH i2c: D1 01 00 [09:04:34]MH_I2C_Read... [09:04:34]Read from MH i2c: D1 01 00 63 0B 00 3F [09:04:34]Write to MH i2c: 01 00 00 64 0B 6F [09:04:34]Write i2c OK [09:04:34]MH_I2C_Read... [09:04:34]OFD Sender: No OFD packet to send [09:04:34]*** Cut start [09:04:34]*** Purtial cut [09:04:34]*** Stage 1: CUTSNS_PIN = 1 [09:04:35]Read from MH i2c: 01 [09:04:35]MH_I2C_Read... [09:04:35]Read from MH i2c: 01 07 00 [09:04:35]MH_I2C_Read... [09:04:35]*** Stop cut motor [09:04:35]*** Cut end [09:04:35]Read from MH i2c: 01 07 00 64 0B 00 00 00 00 00 FF 0F 84 [09:04:35]process_action print_text done [09:04:35]requested_data is exist [09:04:35]produce_requested_data [09:04:35]requested_item fm.sn is exist - process it [09:04:35]wFMCommunicate request_size=4 [09:04:35]MH_SAM_APDU [09:04:35]CAPDU: 80 11 00 00 [09:04:35]Write to MH i2c: E2 08 00 65 0B 80 11 00 00 00 00 00 00 EA [09:04:35]Write i2c OK [09:04:35]MH_I2C_Read... [09:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:35]Read from MH i2c: E2 [09:04:35]MH_I2C_Read... [09:04:35]Read from MH i2c: E2 17 00 [09:04:35]MH_I2C_Read... [09:04:35]Read from MH i2c: E2 17 00 65 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 40 [09:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:04:35]wFMCommunicate OK [09:04:35]requested_item fd.num is exist - process it [09:04:35]SAM_PROTO_GetFieldsCounters [09:04:35]wFMCommunicate request_size=4 [09:04:35]MH_SAM_APDU [09:04:35]CAPDU: 80 13 00 00 [09:04:35]Write to MH i2c: E2 08 00 66 0B 80 13 00 00 00 00 00 00 ED [09:04:35]Write i2c OK [09:04:35]MH_I2C_Read... [09:04:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:35]Read from MH i2c: E2 [09:04:35]MH_I2C_Read... [09:04:35]Read from MH i2c: E2 62 00 [09:04:35]MH_I2C_Read... [09:04:35]Read from MH i2c: E2 62 00 66 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 1C 08 01 00 0E 04 04 00 66 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 DE [09:04: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 1C 08 01 00 0E 04 04 00 66 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 [09:04:35]wFMCommunicate OK [09:04:35]SAM_PROTO_GetFieldsCounters done [09:04:35]requested_item shift.num is exist - process it [09:04:35]requested_item shift.opened is exist - process it [09:04:35]req_shift_opened [09:04:35]FM_GetShiftState [09:04:35]SAM_PROTO_GetShiftState [09:04:35]wFMCommunicate request_size=4 [09:04:35]MH_SAM_APDU [09:04:35]CAPDU: 80 13 01 00 [09:04:35]Write to MH i2c: E2 08 00 67 0B 80 13 01 00 00 00 00 00 EF [09:04:35]Write i2c OK [09:04:35]MH_I2C_Read... [09:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:35]Read from MH i2c: E2 [09:04:35]MH_I2C_Read... [09:04:35]Read from MH i2c: E2 0E 00 [09:04:35]MH_I2C_Read... [09:04:35]Read from MH i2c: E2 0E 00 67 0B 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 75 [09:04:35]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:04:35]wFMCommunicate OK [09:04:35]SAM_PROTO_GetShiftState done [09:04:35]FM_GetShiftState done [09:04:35]req_shift_opened done [09:04:35]requested_item shift.open_date is exist - process it [09:04:35]req_shift_open_date [09:04:35]req_shift_open_date done [09:04:35]produce_requested_data done [09:04:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:04:35]process_action_free print_text [09:04:35]json_value_free [09:04:35]json_value_free done [09:04:35]process_json_proto returns [09:04:35]Send response to host [09:04:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:04:35]free response buf [09:04:35]execute_script done [09:04:35]execute_script returns [09:04:35]free content buf [09:04:35]Sock 7.Close socket [09:04:35]Sock 7.Thread stoped [09:04:38]accept exits with 9 [09:04:38]New connection [09:04:38]New thread 3067395428 created [09:04:38]Thread 3067538788 joined [09:04:38]Waiting for new connection... [09:04:38] Sock 9.Parse request [09:04:38]Sock 9.Check first char [09:04:38]Sock 9.First char is OK [09:04:38]request: POST /json_proto HTTP/1.0 [09:04:38]Method: POST [09:04:38]URL: /json_proto [09:04:38]Method is POST - this is cgi request [09:04:38]url: /json_proto [09:04:38]query_string will be loaded in cgi processing [09:04:38]execute_cgi json_proto POST (null) [09:04:38]execute_cgi path=json_proto method=POST [09:04:38]POST find Content-Length [09:04:38]Host: 172.17.41.195:8080 [09:04:38]Content-Length: 1179 [09:04:38]Content-Type: application/json [09:04:38] [09:04:38]POST finish read [09:04:38]Found Content-Length = 1179 [09:04: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507709\u000A17.05.2024 08:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:04:38]execute_script... [09:04: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507709\u000A17.05.2024 08:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:04:38]POST & json_proto [09:04:39]process_json_proto [09:04:39]json parsed OK: [09:04:39]protocol is kg_v1.0 [09:04:39]action value=print_text [09:04:39]process_action print_text [09:04:39]cmd_print_text [09:04:39]ExternCall_PrintAddStr [09:04:39]wPrintStart [09:04:39]Write to MH i2c: 01 00 00 68 0B 73 [09:04:39]Write i2c OK [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: 01 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: 01 07 00 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: 01 07 00 68 0B 00 00 00 00 00 FF 0F 88 [09:04:39]RasterBufferAndPrint [09:04:39]line *****ТОВАРНЫЙ ЧЕК***** [09:04:39]line АЗС-91 [09:04:39]line Партнер нефть [09:04:39]line 02508201610067 [09:04:39]line Кассир : Адишов И. [09:04:39]line Счет N : (1)507709 [09:04:39]line 17.05.2024 08:47 [09:04:39]line ПРОДАЖА [09:04:39]line ТРК (МРК, ГНК): 11 [09:04:39]line Вид ГСМ : 2710194210 [09:04:39]line ДТ-К-5 [09:04:39]line 20.000 x 74.70 [09:04:39]line ИТОГ: 1494.00 [09:04:39]line Тип оплаты: Талоны: Топливная Карта [09:04:39]line 02750 [09:04:39]line ______________________ [09:04:39]line (подпись) [09:04:39]written 0, free lines is 4095 [09:04:39]Write to MH i2c: 01 00 00 7C 0B 87 [09:04:39]Write i2c OK [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: 01 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: 01 07 00 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: 01 07 00 7C 0B 00 00 00 00 00 0C 0E A8 [09:04:39]RasterBufferAndPrint [09:04:39]line [09:04:39]line [09:04:39]line [09:04:39]line [09:04:39]line [09:04:39]written 0, free lines is 3597 [09:04:39]MH_Cut [09:04:39]Write to MH i2c: D1 01 00 83 0B 01 60 [09:04:39]Write i2c OK [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: D1 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: D1 01 00 [09:04:39]MH_I2C_Read... [09:04:39]Read from MH i2c: D1 01 00 83 0B 00 5F [09:04:39]Write to MH i2c: 01 00 00 84 0B 8F [09:04:39]Write i2c OK [09:04:39]MH_I2C_Read... [09:04:39]OFD Sender: No OFD packet to send [09:04:39]*** Cut start [09:04:39]*** Purtial cut [09:04:39]*** CUTSNS_PIN = 0 [09:04:40]*** Stage 1: CUTSNS_PIN = 1 [09:04:41]Read from MH i2c: 01 [09:04:41]MH_I2C_Read... [09:04:41]*** Stop cut motor [09:04:41]*** Cut end [09:04:41]Read from MH i2c: 01 07 00 [09:04:41]MH_I2C_Read... [09:04:41]Read from MH i2c: 01 07 00 84 0B 00 00 00 00 00 FF 0F A4 [09:04:41]process_action print_text done [09:04:41]requested_data is exist [09:04:41]produce_requested_data [09:04:41]requested_item fm.sn is exist - process it [09:04:41]wFMCommunicate request_size=4 [09:04:41]MH_SAM_APDU [09:04:41]CAPDU: 80 11 00 00 [09:04:41]Write to MH i2c: E2 08 00 85 0B 80 11 00 00 00 00 00 00 0A [09:04:41]Write i2c OK [09:04:41]MH_I2C_Read... [09:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:41]Read from MH i2c: E2 [09:04:41]MH_I2C_Read... [09:04:41]Read from MH i2c: E2 17 00 [09:04:41]MH_I2C_Read... [09:04:41]Read from MH i2c: E2 17 00 85 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 60 [09:04: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:04:41]wFMCommunicate OK [09:04:41]requested_item fd.num is exist - process it [09:04:41]SAM_PROTO_GetFieldsCounters [09:04:41]wFMCommunicate request_size=4 [09:04:41]MH_SAM_APDU [09:04:41]CAPDU: 80 13 00 00 [09:04:41]Write to MH i2c: E2 08 00 86 0B 80 13 00 00 00 00 00 00 0D [09:04:41]Write i2c OK [09:04:41]MH_I2C_Read... [09:04:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:41]Read from MH i2c: E2 [09:04:41]MH_I2C_Read... [09:04:41]Read from MH i2c: E2 62 00 [09:04:41]MH_I2C_Read... [09:04:41]Read from MH i2c: E2 62 00 86 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 1C 08 01 00 0E 04 04 00 66 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 FE [09:04: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 1C 08 01 00 0E 04 04 00 66 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 [09:04:41]wFMCommunicate OK [09:04:41]SAM_PROTO_GetFieldsCounters done [09:04:41]requested_item shift.num is exist - process it [09:04:41]requested_item shift.opened is exist - process it [09:04:41]req_shift_opened [09:04:41]FM_GetShiftState [09:04:41]SAM_PROTO_GetShiftState [09:04:41]wFMCommunicate request_size=4 [09:04:41]MH_SAM_APDU [09:04:41]CAPDU: 80 13 01 00 [09:04:41]Write to MH i2c: E2 08 00 87 0B 80 13 01 00 00 00 00 00 0F [09:04:41]Write i2c OK [09:04:41]MH_I2C_Read... [09:04:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:42]Read from MH i2c: E2 [09:04:42]MH_I2C_Read... [09:04:42]Read from MH i2c: E2 0E 00 [09:04:42]MH_I2C_Read... [09:04:42]Read from MH i2c: E2 0E 00 87 0B 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 95 [09:04:42]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:04:42]wFMCommunicate OK [09:04:42]SAM_PROTO_GetShiftState done [09:04:42]FM_GetShiftState done [09:04:42]req_shift_opened done [09:04:42]requested_item shift.open_date is exist - process it [09:04:42]req_shift_open_date [09:04:42]req_shift_open_date done [09:04:42]produce_requested_data done [09:04:42]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:04:42]process_action_free print_text [09:04:42]json_value_free [09:04:42]json_value_free done [09:04:42]process_json_proto returns [09:04:42]Send response to host [09:04:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:04:42]free response buf [09:04:42]execute_script done [09:04:42]execute_script returns [09:04:42]free content buf [09:04:42]Sock 9.Close socket [09:04:42]Sock 9.Thread stoped [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:13]accept exits with 7 [09:05:13]New connection [09:05:13]New thread 3067538788 created [09:05:13]Thread 3067395428 joined [09:05:13]Waiting for new connection... [09:05:13] Sock 7.Parse request [09:05:13]Sock 7.Check first char [09:05:13]Sock 7.First char is OK [09:05:13]request: POST /json_proto HTTP/1.0 [09:05:13]Method: POST [09:05:13]URL: /json_proto [09:05:13]Method is POST - this is cgi request [09:05:13]url: /json_proto [09:05:13]query_string will be loaded in cgi processing [09:05:13]execute_cgi json_proto POST (null) [09:05:13]execute_cgi path=json_proto method=POST [09:05:13]POST find Content-Length [09:05:13]Host: 172.17.41.195:8080 [09:05:13]Content-Length: 1179 [09:05:13]Content-Type: application/json [09:05:13] [09:05:13]POST finish read [09:05:13]Found Content-Length = 1179 [09:05:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507711\u000A17.05.2024 08:47\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:05:13]execute_script... [09:05:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507711\u000A17.05.2024 08:47\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:05:13]POST & json_proto [09:05:13]process_json_proto [09:05:13]json parsed OK: [09:05:13]protocol is kg_v1.0 [09:05:13]action value=print_text [09:05:13]process_action print_text [09:05:13]cmd_print_text [09:05:13]ExternCall_PrintAddStr [09:05:13]wPrintStart [09:05:13]Write to MH i2c: 01 00 00 88 0B 93 [09:05:13]Write i2c OK [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: 01 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: 01 07 00 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: 01 07 00 88 0B 00 00 00 00 00 FF 0F A8 [09:05:13]RasterBufferAndPrint [09:05:13]line *****ТОВАРНЫЙ ЧЕК***** [09:05:13]line АЗС-91 [09:05:13]line Партнер нефть [09:05:13]line 02508201610067 [09:05:13]line Кассир : Адишов И. [09:05:13]line Счет N : (1)507711 [09:05:13]line 17.05.2024 08:47 [09:05:13]line ПРОДАЖА [09:05:13]line ТРК (МРК, ГНК): 41 [09:05:13]line Вид ГСМ : 2710194210 [09:05:13]line ДТ-К-5 [09:05:13]line 20.000 x 74.70 [09:05:13]line ИТОГ: 1494.00 [09:05:13]line Тип оплаты: Талоны: Топливная Карта [09:05:13]line 02750 [09:05:13]line ______________________ [09:05:13]line (подпись) [09:05:13]written 0, free lines is 4095 [09:05:13]Write to MH i2c: 01 00 00 9C 0B A7 [09:05:13]Write i2c OK [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: 01 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: 01 07 00 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: 01 07 00 9C 0B 00 00 00 00 00 0C 0E C8 [09:05:13]RasterBufferAndPrint [09:05:13]line [09:05:13]line [09:05:13]line [09:05:13]line [09:05:13]line [09:05:13]written 0, free lines is 3597 [09:05:13]MH_Cut [09:05:13]Write to MH i2c: D1 01 00 A3 0B 01 80 [09:05:13]Write i2c OK [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: D1 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: D1 01 00 [09:05:13]MH_I2C_Read... [09:05:13]Read from MH i2c: D1 01 00 A3 0B 00 7F [09:05:13]Write to MH i2c: 01 00 00 A4 0B AF [09:05:13]Write i2c OK [09:05:13]MH_I2C_Read... [09:05:14]*** Cut start [09:05:14]*** Purtial cut [09:05:14]*** Stage 1: CUTSNS_PIN = 1 [09:05:14]OFD Sender: No OFD packet to send [09:05:14]Read from MH i2c: 01 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: 01 07 00 [09:05:14]MH_I2C_Read... [09:05:14]*** Stop cut motor [09:05:14]*** Cut end [09:05:14]Read from MH i2c: 01 07 00 A4 0B 00 00 00 00 00 FF 0F C4 [09:05:14]process_action print_text done [09:05:14]requested_data is exist [09:05:14]produce_requested_data [09:05:14]requested_item fm.sn is exist - process it [09:05:14]wFMCommunicate request_size=4 [09:05:14]MH_SAM_APDU [09:05:14]CAPDU: 80 11 00 00 [09:05:14]Write to MH i2c: E2 08 00 A5 0B 80 11 00 00 00 00 00 00 2A [09:05:14]Write i2c OK [09:05:14]MH_I2C_Read... [09:05:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:05:14]Read from MH i2c: E2 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: E2 17 00 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: E2 17 00 A5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 80 [09:05:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:05:14]wFMCommunicate OK [09:05:14]requested_item fd.num is exist - process it [09:05:14]SAM_PROTO_GetFieldsCounters [09:05:14]wFMCommunicate request_size=4 [09:05:14]MH_SAM_APDU [09:05:14]CAPDU: 80 13 00 00 [09:05:14]Write to MH i2c: E2 08 00 A6 0B 80 13 00 00 00 00 00 00 2D [09:05:14]Write i2c OK [09:05:14]MH_I2C_Read... [09:05:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:05:14]Read from MH i2c: E2 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: E2 62 00 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: E2 62 00 A6 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 1C 08 01 00 0E 04 04 00 66 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 1E [09:05: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 1C 08 01 00 0E 04 04 00 66 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 [09:05:14]wFMCommunicate OK [09:05:14]SAM_PROTO_GetFieldsCounters done [09:05:14]requested_item shift.num is exist - process it [09:05:14]requested_item shift.opened is exist - process it [09:05:14]req_shift_opened [09:05:14]FM_GetShiftState [09:05:14]SAM_PROTO_GetShiftState [09:05:14]wFMCommunicate request_size=4 [09:05:14]MH_SAM_APDU [09:05:14]CAPDU: 80 13 01 00 [09:05:14]Write to MH i2c: E2 08 00 A7 0B 80 13 01 00 00 00 00 00 2F [09:05:14]Write i2c OK [09:05:14]MH_I2C_Read... [09:05:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:05:14]Read from MH i2c: E2 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: E2 0E 00 [09:05:14]MH_I2C_Read... [09:05:14]Read from MH i2c: E2 0E 00 A7 0B 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 B5 [09:05:14]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:05:14]wFMCommunicate OK [09:05:14]SAM_PROTO_GetShiftState done [09:05:14]FM_GetShiftState done [09:05:14]req_shift_opened done [09:05:14]requested_item shift.open_date is exist - process it [09:05:14]req_shift_open_date [09:05:14]req_shift_open_date done [09:05:14]produce_requested_data done [09:05:14]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:05:14]process_action_free print_text [09:05:14]json_value_free [09:05:14]json_value_free done [09:05:14]process_json_proto returns [09:05:14]Send response to host [09:05:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:05:14]free response buf [09:05:14]execute_script done [09:05:14]execute_script returns [09:05:14]free content buf [09:05:14]Sock 7.Close socket [09:05:14]Sock 7.Thread stoped [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:09]OFD Sender: No OFD packet to send [09:06:14]OFD Sender: No OFD packet to send [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:29]OFD Sender: No OFD packet to send [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:09]OFD Sender: No OFD packet to send [09:07:14]OFD Sender: No OFD packet to send [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:25]accept exits with 9 [09:07:25]New connection [09:07:25]New thread 3067395428 created [09:07:25]Thread 3067538788 joined [09:07:25]Waiting for new connection... [09:07:25] Sock 9.Parse request [09:07:25]Sock 9.Check first char [09:07:25]Sock 9.First char is OK [09:07:25]request: POST /json_proto HTTP/1.0 [09:07:25]Method: POST [09:07:25]URL: /json_proto [09:07:25]Method is POST - this is cgi request [09:07:25]url: /json_proto [09:07:25]query_string will be loaded in cgi processing [09:07:25]execute_cgi json_proto POST (null) [09:07:25]execute_cgi path=json_proto method=POST [09:07:25]POST find Content-Length [09:07:25]Host: 172.17.41.195:8080 [09:07:25]Content-Length: 1177 [09:07:25]Content-Type: application/json [09:07:25] [09:07:25]POST finish read [09:07:25]Found Content-Length = 1177 [09:07: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507712\u000A17.05.2024 08:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 5.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 373.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:25]execute_script... [09:07: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507712\u000A17.05.2024 08:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 5.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 373.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:25]POST & json_proto [09:07:25]process_json_proto [09:07:25]json parsed OK: [09:07:25]protocol is kg_v1.0 [09:07:25]action value=print_text [09:07:25]process_action print_text [09:07:25]cmd_print_text [09:07:25]ExternCall_PrintAddStr [09:07:25]wPrintStart [09:07:25]Write to MH i2c: 01 00 00 A8 0B B3 [09:07:25]Write i2c OK [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: 01 [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: 01 07 00 [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: 01 07 00 A8 0B 00 00 00 00 00 FF 0F C8 [09:07:25]RasterBufferAndPrint [09:07:25]line *****ТОВАРНЫЙ ЧЕК***** [09:07:25]line АЗС-91 [09:07:25]line Партнер нефть [09:07:25]line 02508201610067 [09:07:25]line Кассир : Адишов И. [09:07:25]line Счет N : (1)507712 [09:07:25]line 17.05.2024 08:49 [09:07:25]line ПРОДАЖА [09:07:25]line ТРК (МРК, ГНК): 31 [09:07:25]line Вид ГСМ : 2710194210 [09:07:25]line ДТ-К-5 [09:07:25]line 5.000 x 74.70 [09:07:25]line ИТОГ: 373.50 [09:07:25]line Тип оплаты: Талоны: Топливная Карта [09:07:25]line 02750 [09:07:25]line ______________________ [09:07:25]line (подпись) [09:07:25]written 0, free lines is 4095 [09:07:25]Write to MH i2c: 01 00 00 BC 0B C7 [09:07:25]Write i2c OK [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: 01 [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: 01 07 00 [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: 01 07 00 BC 0B 00 00 00 00 00 0C 0E E8 [09:07:25]RasterBufferAndPrint [09:07:25]line [09:07:25]line [09:07:25]line [09:07:25]line [09:07:25]line [09:07:25]written 0, free lines is 3597 [09:07:25]MH_Cut [09:07:25]Write to MH i2c: D1 01 00 C3 0B 01 A0 [09:07:25]Write i2c OK [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: D1 [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: D1 01 00 [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: D1 01 00 C3 0B 00 9F [09:07:25]Write to MH i2c: 01 00 00 C4 0B CF [09:07:25]Write i2c OK [09:07:25]MH_I2C_Read... [09:07:26]*** Cut start [09:07:26]*** Purtial cut [09:07:26]*** CUTSNS_PIN = 0 [09:07:26]*** Stage 1: CUTSNS_PIN = 1 [09:07:28]Read from MH i2c: 01 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: 01 07 00 [09:07:28]MH_I2C_Read... [09:07:28]*** Stop cut motor [09:07:28]*** Cut end [09:07:28]Read from MH i2c: 01 07 00 C4 0B 00 00 00 00 00 FF 0F E4 [09:07:28]process_action print_text done [09:07:28]requested_data is exist [09:07:28]produce_requested_data [09:07:28]requested_item fm.sn is exist - process it [09:07:28]wFMCommunicate request_size=4 [09:07:28]MH_SAM_APDU [09:07:28]CAPDU: 80 11 00 00 [09:07:28]Write to MH i2c: E2 08 00 C5 0B 80 11 00 00 00 00 00 00 4A [09:07:28]Write i2c OK [09:07:28]MH_I2C_Read... [09:07:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:28]Read from MH i2c: E2 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: E2 17 00 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: E2 17 00 C5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A0 [09:07: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:07:28]wFMCommunicate OK [09:07:28]requested_item fd.num is exist - process it [09:07:28]SAM_PROTO_GetFieldsCounters [09:07:28]wFMCommunicate request_size=4 [09:07:28]MH_SAM_APDU [09:07:28]CAPDU: 80 13 00 00 [09:07:28]Write to MH i2c: E2 08 00 C6 0B 80 13 00 00 00 00 00 00 4D [09:07:28]Write i2c OK [09:07:28]MH_I2C_Read... [09:07:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:28]Read from MH i2c: E2 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: E2 62 00 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: E2 62 00 C6 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 1C 08 01 00 0E 04 04 00 66 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 3E [09:07: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 1C 08 01 00 0E 04 04 00 66 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 [09:07:28]wFMCommunicate OK [09:07:28]SAM_PROTO_GetFieldsCounters done [09:07:28]requested_item shift.num is exist - process it [09:07:28]requested_item shift.opened is exist - process it [09:07:28]req_shift_opened [09:07:28]FM_GetShiftState [09:07:28]SAM_PROTO_GetShiftState [09:07:28]wFMCommunicate request_size=4 [09:07:28]MH_SAM_APDU [09:07:28]CAPDU: 80 13 01 00 [09:07:28]Write to MH i2c: E2 08 00 C7 0B 80 13 01 00 00 00 00 00 4F [09:07:28]Write i2c OK [09:07:28]MH_I2C_Read... [09:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:28]Read from MH i2c: E2 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: E2 0E 00 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: E2 0E 00 C7 0B 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 D5 [09:07:28]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:07:28]wFMCommunicate OK [09:07:28]SAM_PROTO_GetShiftState done [09:07:28]FM_GetShiftState done [09:07:28]req_shift_opened done [09:07:28]requested_item shift.open_date is exist - process it [09:07:28]req_shift_open_date [09:07:28]req_shift_open_date done [09:07:28]produce_requested_data done [09:07:28]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:07:28]process_action_free print_text [09:07:28]json_value_free [09:07:28]json_value_free done [09:07:28]process_json_proto returns [09:07:28]Send response to host [09:07:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:07:28]free response buf [09:07:28]execute_script done [09:07:28]execute_script returns [09:07:28]free content buf [09:07:28]Sock 9.Close socket [09:07:28]Sock 9.Thread stoped [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]OFD Sender: No OFD packet to send [09:08:04]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:29]OFD Sender: No OFD packet to send [09:08:34]OFD Sender: No OFD packet to send [09:08:39]OFD Sender: No OFD packet to send [09:08:44]OFD Sender: No OFD packet to send [09:08:49]OFD Sender: No OFD packet to send [09:08:53]accept exits with 7 [09:08:53]New connection [09:08:53]New thread 3067538788 created [09:08:53]Thread 3067395428 joined [09:08:53]Waiting for new connection... [09:08:53] Sock 7.Parse request [09:08:53]Sock 7.Check first char [09:08:53]Sock 7.First char is OK [09:08:53]request: POST /json_proto HTTP/1.0 [09:08:53]Method: POST [09:08:53]URL: /json_proto [09:08:53]Method is POST - this is cgi request [09:08:53]url: /json_proto [09:08:53]query_string will be loaded in cgi processing [09:08:53]execute_cgi json_proto POST (null) [09:08:53]execute_cgi path=json_proto method=POST [09:08:53]POST find Content-Length [09:08:53]Host: 172.17.41.195:8080 [09:08:53]Content-Length: 1179 [09:08:53]Content-Type: application/json [09:08:53] [09:08:53]POST finish read [09:08:53]Found Content-Length = 1179 [09:08:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507714\u000A17.05.2024 08:51\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:08:53]execute_script... [09:08:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507714\u000A17.05.2024 08:51\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:08:53]POST & json_proto [09:08:53]process_json_proto [09:08:53]json parsed OK: [09:08:53]protocol is kg_v1.0 [09:08:53]action value=print_text [09:08:53]process_action print_text [09:08:53]cmd_print_text [09:08:53]ExternCall_PrintAddStr [09:08:53]wPrintStart [09:08:53]Write to MH i2c: 01 00 00 C8 0B D3 [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 07 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 07 00 C8 0B 00 00 00 00 00 FF 0F E8 [09:08:53]RasterBufferAndPrint [09:08:53]line *****ТОВАРНЫЙ ЧЕК***** [09:08:53]line АЗС-91 [09:08:53]line Партнер нефть [09:08:53]line 02508201610067 [09:08:53]line Кассир : Адишов И. [09:08:53]line Счет N : (1)507714 [09:08:53]line 17.05.2024 08:51 [09:08:53]line ПРОДАЖА [09:08:53]line ТРК (МРК, ГНК): 11 [09:08:53]line Вид ГСМ : 2710194210 [09:08:53]line ДТ-К-5 [09:08:53]line 25.000 x 74.70 [09:08:53]line ИТОГ: 1867.50 [09:08:53]line Тип оплаты: Талоны: Топливная Карта [09:08:53]line 02750 [09:08:53]line ______________________ [09:08:53]line (подпись) [09:08:53]written 0, free lines is 4095 [09:08:53]Write to MH i2c: 01 00 00 DC 0B E7 [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 07 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 07 00 DC 0B 00 00 00 00 00 0C 0E 08 [09:08:53]RasterBufferAndPrint [09:08:53]line [09:08:53]line [09:08:53]line [09:08:53]line [09:08:53]line [09:08:53]written 0, free lines is 3597 [09:08:53]MH_Cut [09:08:53]Write to MH i2c: D1 01 00 E3 0B 01 C0 [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: D1 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: D1 01 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: D1 01 00 E3 0B 00 BF [09:08:53]Write to MH i2c: 01 00 00 E4 0B EF [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:54]*** Cut start [09:08:54]*** Purtial cut [09:08:54]*** Stage 1: CUTSNS_PIN = 1 [09:08:54]Read from MH i2c: 01 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: 01 07 00 [09:08:54]MH_I2C_Read... [09:08:54]*** Stop cut motor [09:08:54]*** Cut end [09:08:54]Read from MH i2c: 01 07 00 E4 0B 00 00 00 00 00 FF 0F 04 [09:08:54]process_action print_text done [09:08:54]requested_data is exist [09:08:54]produce_requested_data [09:08:54]requested_item fm.sn is exist - process it [09:08:54]wFMCommunicate request_size=4 [09:08:54]MH_SAM_APDU [09:08:54]CAPDU: 80 11 00 00 [09:08:54]Write to MH i2c: E2 08 00 E5 0B 80 11 00 00 00 00 00 00 6A [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]OFD Sender: No OFD packet to send [09:08:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:54]Read from MH i2c: E2 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 17 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 17 00 E5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C0 [09:08: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:08:54]wFMCommunicate OK [09:08:54]requested_item fd.num is exist - process it [09:08:54]SAM_PROTO_GetFieldsCounters [09:08:54]wFMCommunicate request_size=4 [09:08:54]MH_SAM_APDU [09:08:54]CAPDU: 80 13 00 00 [09:08:54]Write to MH i2c: E2 08 00 E6 0B 80 13 00 00 00 00 00 00 6D [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:54]Read from MH i2c: E2 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 62 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 62 00 E6 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 1C 08 01 00 0E 04 04 00 66 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 5E [09:08:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 1C 08 01 00 0E 04 04 00 66 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 [09:08:54]wFMCommunicate OK [09:08:54]SAM_PROTO_GetFieldsCounters done [09:08:54]requested_item shift.num is exist - process it [09:08:54]requested_item shift.opened is exist - process it [09:08:54]req_shift_opened [09:08:54]FM_GetShiftState [09:08:54]SAM_PROTO_GetShiftState [09:08:54]wFMCommunicate request_size=4 [09:08:54]MH_SAM_APDU [09:08:54]CAPDU: 80 13 01 00 [09:08:54]Write to MH i2c: E2 08 00 E7 0B 80 13 01 00 00 00 00 00 6F [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:54]Read from MH i2c: E2 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 0E 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 0E 00 E7 0B 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F5 [09:08:54]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:08:54]wFMCommunicate OK [09:08:54]SAM_PROTO_GetShiftState done [09:08:54]FM_GetShiftState done [09:08:54]req_shift_opened done [09:08:54]requested_item shift.open_date is exist - process it [09:08:54]req_shift_open_date [09:08:54]req_shift_open_date done [09:08:54]produce_requested_data done [09:08:54]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:08:54]process_action_free print_text [09:08:54]json_value_free [09:08:54]json_value_free done [09:08:54]process_json_proto returns [09:08:54]Send response to host [09:08:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:08:54]free response buf [09:08:54]execute_script done [09:08:54]execute_script returns [09:08:54]free content buf [09:08:54]Sock 7.Close socket [09:08:54]Sock 7.Thread stoped [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:21]accept exits with 9 [09:09:21]New connection [09:09:21]New thread 3067395428 created [09:09:21]Thread 3067538788 joined [09:09:21]Waiting for new connection... [09:09:21] Sock 9.Parse request [09:09:21]Sock 9.Check first char [09:09:21]Sock 9.First char is OK [09:09:21]request: POST /json_proto HTTP/1.0 [09:09:21]Method: POST [09:09:21]URL: /json_proto [09:09:21]Method is POST - this is cgi request [09:09:21]url: /json_proto [09:09:21]query_string will be loaded in cgi processing [09:09:21]execute_cgi json_proto POST (null) [09:09:21]execute_cgi path=json_proto method=POST [09:09:21]POST find Content-Length [09:09:21]Host: 172.17.41.195:8080 [09:09:21]Content-Length: 1179 [09:09:21]Content-Type: application/json [09:09:21] [09:09:21]POST finish read [09:09:21]Found Content-Length = 1179 [09:09: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507713\u000A17.05.2024 08:51\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:09:21]execute_script... [09:09: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507713\u000A17.05.2024 08:51\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:09:21]POST & json_proto [09:09:21]process_json_proto [09:09:21]json parsed OK: [09:09:21]protocol is kg_v1.0 [09:09:21]action value=print_text [09:09:21]process_action print_text [09:09:21]cmd_print_text [09:09:21]ExternCall_PrintAddStr [09:09:21]wPrintStart [09:09:21]Write to MH i2c: 01 00 00 E8 0B F3 [09:09:21]Write i2c OK [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 07 00 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 07 00 E8 0B 00 00 00 00 00 FF 0F 08 [09:09:21]RasterBufferAndPrint [09:09:21]line *****ТОВАРНЫЙ ЧЕК***** [09:09:21]line АЗС-91 [09:09:21]line Партнер нефть [09:09:21]line 02508201610067 [09:09:21]line Кассир : Адишов И. [09:09:21]line Счет N : (1)507713 [09:09:21]line 17.05.2024 08:51 [09:09:21]line ПРОДАЖА [09:09:21]line ТРК (МРК, ГНК): 41 [09:09:21]line Вид ГСМ : 2710194210 [09:09:21]line ДТ-К-5 [09:09:21]line 29.000 x 74.70 [09:09:21]line ИТОГ: 2166.30 [09:09:21]line Тип оплаты: Талоны: Топливная Карта [09:09:21]line 02750 [09:09:21]line ______________________ [09:09:21]line (подпись) [09:09:21]written 0, free lines is 4095 [09:09:21]Write to MH i2c: 01 00 00 FC 0B 07 [09:09:21]Write i2c OK [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 07 00 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: 01 07 00 FC 0B 00 00 00 00 00 0C 0E 28 [09:09:21]RasterBufferAndPrint [09:09:21]line [09:09:21]line [09:09:21]line [09:09:21]line [09:09:21]line [09:09:21]written 0, free lines is 3598 [09:09:21]MH_Cut [09:09:21]Write to MH i2c: D1 01 00 03 0C 01 E1 [09:09:21]Write i2c OK [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: D1 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: D1 01 00 [09:09:21]MH_I2C_Read... [09:09:21]Read from MH i2c: D1 01 00 03 0C 00 E0 [09:09:21]Write to MH i2c: 01 00 00 04 0C 10 [09:09:21]Write i2c OK [09:09:21]MH_I2C_Read... [09:09:22]*** Cut start [09:09:22]*** Purtial cut [09:09:22]*** CUTSNS_PIN = 0 [09:09:22]*** Stage 1: CUTSNS_PIN = 1 [09:09:24]Read from MH i2c: 01 [09:09:24]MH_I2C_Read... [09:09:24]*** Stop cut motor [09:09:24]*** Cut end [09:09:24]Read from MH i2c: 01 07 00 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: 01 07 00 04 0C 00 00 00 00 00 FF 0F 25 [09:09:24]process_action print_text done [09:09:24]requested_data is exist [09:09:24]produce_requested_data [09:09:24]requested_item fm.sn is exist - process it [09:09:24]wFMCommunicate request_size=4 [09:09:24]MH_SAM_APDU [09:09:24]CAPDU: 80 11 00 00 [09:09:24]Write to MH i2c: E2 08 00 05 0C 80 11 00 00 00 00 00 00 8B [09:09:24]Write i2c OK [09:09:24]MH_I2C_Read... [09:09:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:24]Read from MH i2c: E2 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: E2 17 00 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: E2 17 00 05 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E1 [09:09: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:09:24]wFMCommunicate OK [09:09:24]requested_item fd.num is exist - process it [09:09:24]SAM_PROTO_GetFieldsCounters [09:09:24]wFMCommunicate request_size=4 [09:09:24]MH_SAM_APDU [09:09:24]CAPDU: 80 13 00 00 [09:09:24]Write to MH i2c: E2 08 00 06 0C 80 13 00 00 00 00 00 00 8E [09:09:24]Write i2c OK [09:09:24]MH_I2C_Read... [09:09:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:24]Read from MH i2c: E2 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: E2 62 00 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: E2 62 00 06 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 1C 08 01 00 0E 04 04 00 66 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 7F [09:09: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 1C 08 01 00 0E 04 04 00 66 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 [09:09:24]wFMCommunicate OK [09:09:24]SAM_PROTO_GetFieldsCounters done [09:09:24]requested_item shift.num is exist - process it [09:09:24]requested_item shift.opened is exist - process it [09:09:24]req_shift_opened [09:09:24]FM_GetShiftState [09:09:24]SAM_PROTO_GetShiftState [09:09:24]wFMCommunicate request_size=4 [09:09:24]MH_SAM_APDU [09:09:24]CAPDU: 80 13 01 00 [09:09:24]Write to MH i2c: E2 08 00 07 0C 80 13 01 00 00 00 00 00 90 [09:09:24]Write i2c OK [09:09:24]MH_I2C_Read... [09:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:24]Read from MH i2c: E2 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: E2 0E 00 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: E2 0E 00 07 0C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 16 [09:09:24]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:09:24]wFMCommunicate OK [09:09:24]SAM_PROTO_GetShiftState done [09:09:24]FM_GetShiftState done [09:09:24]req_shift_opened done [09:09:24]requested_item shift.open_date is exist - process it [09:09:24]req_shift_open_date [09:09:24]req_shift_open_date done [09:09:24]produce_requested_data done [09:09:24]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:09:24]process_action_free print_text [09:09:24]json_value_free [09:09:24]json_value_free done [09:09:24]process_json_proto returns [09:09:24]Send response to host [09:09:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:09:24]free response buf [09:09:24]execute_script done [09:09:24]execute_script returns [09:09:24]free content buf [09:09:24]Sock 9.Close socket [09:09:24]Sock 9.Thread stoped [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [09:09:54]OFD Sender: No OFD packet to send [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [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:47]accept exits with 7 [09:10:47]New connection [09:10:47]New thread 3067538788 created [09:10:47]Thread 3067395428 joined [09:10:47]Waiting for new connection... [09:10:47] Sock 7.Parse request [09:10:47]Sock 7.Check first char [09:10:47]Sock 7.First char is OK [09:10:47]request: POST /json_proto HTTP/1.0 [09:10:47]Method: POST [09:10:47]URL: /json_proto [09:10:47]Method is POST - this is cgi request [09:10:47]url: /json_proto [09:10:47]query_string will be loaded in cgi processing [09:10:47]execute_cgi json_proto POST (null) [09:10:47]execute_cgi path=json_proto method=POST [09:10:47]POST find Content-Length [09:10:47]Host: 172.17.41.195:8080 [09:10:47]Content-Length: 1179 [09:10:47]Content-Type: application/json [09:10:47] [09:10:47]POST finish read [09:10:47]Found Content-Length = 1179 [09:10: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507715\u000A17.05.2024 08:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 24.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1792.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:47]execute_script... [09:10: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507715\u000A17.05.2024 08:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 24.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1792.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:47]POST & json_proto [09:10:47]process_json_proto [09:10:47]json parsed OK: [09:10:47]protocol is kg_v1.0 [09:10:47]action value=print_text [09:10:47]process_action print_text [09:10:47]cmd_print_text [09:10:47]ExternCall_PrintAddStr [09:10:47]wPrintStart [09:10:47]Write to MH i2c: 01 00 00 08 0C 14 [09:10:47]Write i2c OK [09:10:47]MH_I2C_Read... [09:10:47]Read from MH i2c: 01 [09:10:47]MH_I2C_Read... [09:10:47]Read from MH i2c: 01 07 00 [09:10:47]MH_I2C_Read... [09:10:47]Read from MH i2c: 01 07 00 08 0C 00 00 00 00 00 FF 0F 29 [09:10:47]RasterBufferAndPrint [09:10:47]line *****ТОВАРНЫЙ ЧЕК***** [09:10:47]line АЗС-91 [09:10:47]line Партнер нефть [09:10:47]line 02508201610067 [09:10:47]line Кассир : Адишов И. [09:10:47]line Счет N : (1)507715 [09:10:47]line 17.05.2024 08:53 [09:10:47]line ПРОДАЖА [09:10:47]line ТРК (МРК, ГНК): 21 [09:10:47]line Вид ГСМ : 2710194210 [09:10:47]line ДТ-К-5 [09:10:47]line 24.000 x 74.70 [09:10:47]line ИТОГ: 1792.80 [09:10:47]line Тип оплаты: Талоны: Топливная Карта [09:10:47]line 02750 [09:10:47]line ______________________ [09:10:47]line (подпись) [09:10:47]written 0, free lines is 4095 [09:10:47]Write to MH i2c: 01 00 00 1C 0C 28 [09:10:47]Write i2c OK [09:10:47]MH_I2C_Read... [09:10:47]Read from MH i2c: 01 [09:10:47]MH_I2C_Read... [09:10:47]Read from MH i2c: 01 07 00 [09:10:47]MH_I2C_Read... [09:10:47]Read from MH i2c: 01 07 00 1C 0C 00 00 00 00 00 0C 0E 49 [09:10:47]RasterBufferAndPrint [09:10:47]line [09:10:47]line [09:10:47]line [09:10:47]line [09:10:47]line [09:10:47]written 0, free lines is 3598 [09:10:47]MH_Cut [09:10:47]Write to MH i2c: D1 01 00 23 0C 01 01 [09:10:47]Write i2c OK [09:10:47]MH_I2C_Read... [09:10:47]Read from MH i2c: D1 [09:10:47]MH_I2C_Read... [09:10:47]Read from MH i2c: D1 01 00 [09:10:47]MH_I2C_Read... [09:10:47]Read from MH i2c: D1 01 00 23 0C 00 00 [09:10:47]Write to MH i2c: 01 00 00 24 0C 30 [09:10:47]Write i2c OK [09:10:47]MH_I2C_Read... [09:10:48]*** Cut start [09:10:48]*** Purtial cut [09:10:48]*** Stage 1: CUTSNS_PIN = 1 [09:10:48]Read from MH i2c: 01 [09:10:48]MH_I2C_Read... [09:10:48]Read from MH i2c: 01 07 00 [09:10:48]MH_I2C_Read... [09:10:48]*** Stop cut motor [09:10:48]*** Cut end [09:10:48]Read from MH i2c: 01 07 00 24 0C 00 00 00 00 00 FF 0F 45 [09:10:48]process_action print_text done [09:10:48]requested_data is exist [09:10:48]produce_requested_data [09:10:48]requested_item fm.sn is exist - process it [09:10:48]wFMCommunicate request_size=4 [09:10:48]MH_SAM_APDU [09:10:48]CAPDU: 80 11 00 00 [09:10:48]Write to MH i2c: E2 08 00 25 0C 80 11 00 00 00 00 00 00 AB [09:10:48]Write i2c OK [09:10:48]MH_I2C_Read... [09:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:48]Read from MH i2c: E2 [09:10:48]MH_I2C_Read... [09:10:48]Read from MH i2c: E2 17 00 [09:10:48]MH_I2C_Read... [09:10:48]Read from MH i2c: E2 17 00 25 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 01 [09:10: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:10:48]wFMCommunicate OK [09:10:48]requested_item fd.num is exist - process it [09:10:48]SAM_PROTO_GetFieldsCounters [09:10:48]wFMCommunicate request_size=4 [09:10:48]MH_SAM_APDU [09:10:48]CAPDU: 80 13 00 00 [09:10:48]Write to MH i2c: E2 08 00 26 0C 80 13 00 00 00 00 00 00 AE [09:10:48]Write i2c OK [09:10:48]MH_I2C_Read... [09:10:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:48]Read from MH i2c: E2 [09:10:48]MH_I2C_Read... [09:10:48]Read from MH i2c: E2 62 00 [09:10:48]MH_I2C_Read... [09:10:48]Read from MH i2c: E2 62 00 26 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 1C 08 01 00 0E 04 04 00 66 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 9F [09:10: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 1C 08 01 00 0E 04 04 00 66 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 [09:10:48]wFMCommunicate OK [09:10:48]SAM_PROTO_GetFieldsCounters done [09:10:48]requested_item shift.num is exist - process it [09:10:48]requested_item shift.opened is exist - process it [09:10:48]req_shift_opened [09:10:48]FM_GetShiftState [09:10:48]SAM_PROTO_GetShiftState [09:10:48]wFMCommunicate request_size=4 [09:10:48]MH_SAM_APDU [09:10:48]CAPDU: 80 13 01 00 [09:10:48]Write to MH i2c: E2 08 00 27 0C 80 13 01 00 00 00 00 00 B0 [09:10:48]Write i2c OK [09:10:48]MH_I2C_Read... [09:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:48]Read from MH i2c: E2 [09:10:48]MH_I2C_Read... [09:10:48]Read from MH i2c: E2 0E 00 [09:10:48]MH_I2C_Read... [09:10:48]Read from MH i2c: E2 0E 00 27 0C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 36 [09:10:48]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:10:48]wFMCommunicate OK [09:10:48]SAM_PROTO_GetShiftState done [09:10:48]FM_GetShiftState done [09:10:48]req_shift_opened done [09:10:48]requested_item shift.open_date is exist - process it [09:10:48]req_shift_open_date [09:10:48]req_shift_open_date done [09:10:48]produce_requested_data done [09:10:48]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:10:48]process_action_free print_text [09:10:48]json_value_free [09:10:48]json_value_free done [09:10:48]process_json_proto returns [09:10:48]Send response to host [09:10:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:10:48]free response buf [09:10:48]execute_script done [09:10:48]execute_script returns [09:10:48]free content buf [09:10:48]Sock 7.Close socket [09:10:48]Sock 7.Thread stoped [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:23]accept exits with 9 [09:12:23]New connection [09:12:23]New thread 3067395428 created [09:12:23]Thread 3067538788 joined [09:12:23]Waiting for new connection... [09:12:23] Sock 9.Parse request [09:12:23]Sock 9.Check first char [09:12:23]Sock 9.First char is OK [09:12:23]request: POST /json_proto HTTP/1.0 [09:12:23]Method: POST [09:12:23]URL: /json_proto [09:12:23]Method is POST - this is cgi request [09:12:23]url: /json_proto [09:12:23]query_string will be loaded in cgi processing [09:12:23]execute_cgi json_proto POST (null) [09:12:23]execute_cgi path=json_proto method=POST [09:12:23]POST find Content-Length [09:12:23]Host: 172.17.41.195:8080 [09:12:23]Content-Length: 1179 [09:12:23]Content-Type: application/json [09:12:23] [09:12:23]POST finish read [09:12:23]Found Content-Length = 1179 [09:12: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507716\u000A17.05.2024 08:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:12:23]execute_script... [09:12: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507716\u000A17.05.2024 08:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:12:23]POST & json_proto [09:12:23]process_json_proto [09:12:23]json parsed OK: [09:12:23]protocol is kg_v1.0 [09:12:23]action value=print_text [09:12:23]process_action print_text [09:12:23]cmd_print_text [09:12:23]ExternCall_PrintAddStr [09:12:23]wPrintStart [09:12:23]Write to MH i2c: 01 00 00 28 0C 34 [09:12:23]Write i2c OK [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: 01 [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: 01 07 00 [09:12:23]MH_I2C_Read... [09:12:23]Read from MH i2c: 01 07 00 28 0C 00 00 00 00 00 FF 0F 49 [09:12:23]RasterBufferAndPrint [09:12:23]line *****ТОВАРНЫЙ ЧЕК***** [09:12:23]line АЗС-91 [09:12:23]line Партнер нефть [09:12:23]line 02508201610067 [09:12:23]line Кассир : Адишов И. [09:12:23]line Счет N : (1)507716 [09:12:23]line 17.05.2024 08:54 [09:12:23]line ПРОДАЖА [09:12:23]line ТРК (МРК, ГНК): 11 [09:12:23]line Вид ГСМ : 2710194210 [09:12:23]line ДТ-К-5 [09:12:23]line 20.000 x 74.70 [09:12:23]line ИТОГ: 1494.00 [09:12:23]line Тип оплаты: Талоны: Топливная Карта [09:12:23]line 02750 [09:12:23]line ______________________ [09:12:23]line (подпись) [09:12:23]written 0, free lines is 4095 [09:12:24]Write to MH i2c: 01 00 00 3C 0C 48 [09:12:24]Write i2c OK [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: 01 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: 01 07 00 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: 01 07 00 3C 0C 00 00 00 00 00 0C 0E 69 [09:12:24]RasterBufferAndPrint [09:12:24]line [09:12:24]line [09:12:24]line [09:12:24]line [09:12:24]line [09:12:24]written 0, free lines is 3597 [09:12:24]MH_Cut [09:12:24]Write to MH i2c: D1 01 00 43 0C 01 21 [09:12:24]Write i2c OK [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: D1 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: D1 01 00 [09:12:24]MH_I2C_Read... [09:12:24]Read from MH i2c: D1 01 00 43 0C 00 20 [09:12:24]Write to MH i2c: 01 00 00 44 0C 50 [09:12:24]Write i2c OK [09:12:24]MH_I2C_Read... [09:12:24]*** Cut start [09:12:24]*** Purtial cut [09:12:24]*** CUTSNS_PIN = 0 [09:12:24]OFD Sender: No OFD packet to send [09:12:24]*** Stage 1: CUTSNS_PIN = 1 [09:12:26]Read from MH i2c: 01 [09:12:26]MH_I2C_Read... [09:12:26]*** Stop cut motor [09:12:26]*** Cut end [09:12:26]Read from MH i2c: 01 07 00 [09:12:26]MH_I2C_Read... [09:12:26]Read from MH i2c: 01 07 00 44 0C 00 00 00 00 00 FF 0F 65 [09:12:26]process_action print_text done [09:12:26]requested_data is exist [09:12:26]produce_requested_data [09:12:26]requested_item fm.sn is exist - process it [09:12:26]wFMCommunicate request_size=4 [09:12:26]MH_SAM_APDU [09:12:26]CAPDU: 80 11 00 00 [09:12:26]Write to MH i2c: E2 08 00 45 0C 80 11 00 00 00 00 00 00 CB [09:12:26]Write i2c OK [09:12:26]MH_I2C_Read... [09:12:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:26]Read from MH i2c: E2 [09:12:26]MH_I2C_Read... [09:12:26]Read from MH i2c: E2 17 00 [09:12:26]MH_I2C_Read... [09:12:26]Read from MH i2c: E2 17 00 45 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 21 [09: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 [09:12:26]wFMCommunicate OK [09:12:26]requested_item fd.num is exist - process it [09:12:26]SAM_PROTO_GetFieldsCounters [09:12:26]wFMCommunicate request_size=4 [09:12:26]MH_SAM_APDU [09:12:26]CAPDU: 80 13 00 00 [09:12:26]Write to MH i2c: E2 08 00 46 0C 80 13 00 00 00 00 00 00 CE [09:12:26]Write i2c OK [09:12:26]MH_I2C_Read... [09:12:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:26]Read from MH i2c: E2 [09:12:26]MH_I2C_Read... [09:12:26]Read from MH i2c: E2 62 00 [09:12:26]MH_I2C_Read... [09:12:26]Read from MH i2c: E2 62 00 46 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 1C 08 01 00 0E 04 04 00 66 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 [09: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 1C 08 01 00 0E 04 04 00 66 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 [09:12:26]wFMCommunicate OK [09:12:26]SAM_PROTO_GetFieldsCounters done [09:12:26]requested_item shift.num is exist - process it [09:12:26]requested_item shift.opened is exist - process it [09:12:26]req_shift_opened [09:12:26]FM_GetShiftState [09:12:26]SAM_PROTO_GetShiftState [09:12:26]wFMCommunicate request_size=4 [09:12:26]MH_SAM_APDU [09:12:26]CAPDU: 80 13 01 00 [09:12:26]Write to MH i2c: E2 08 00 47 0C 80 13 01 00 00 00 00 00 D0 [09:12:26]Write i2c OK [09:12:26]MH_I2C_Read... [09:12:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:26]Read from MH i2c: E2 [09:12:26]MH_I2C_Read... [09:12:26]Read from MH i2c: E2 0E 00 [09:12:26]MH_I2C_Read... [09:12:26]Read from MH i2c: E2 0E 00 47 0C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 56 [09:12:26]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:12:26]wFMCommunicate OK [09:12:26]SAM_PROTO_GetShiftState done [09:12:26]FM_GetShiftState done [09:12:26]req_shift_opened done [09:12:26]requested_item shift.open_date is exist - process it [09:12:26]req_shift_open_date [09:12:26]req_shift_open_date done [09:12:26]produce_requested_data done [09:12:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:12:26]process_action_free print_text [09:12:26]json_value_free [09:12:26]json_value_free done [09:12:26]process_json_proto returns [09:12:26]Send response to host [09:12:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:12:26]free response buf [09:12:26]execute_script done [09:12:26]execute_script returns [09:12:26]free content buf [09:12:26]Sock 9.Close socket [09:12:26]Sock 9.Thread stoped [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:14]OFD Sender: No OFD packet to send [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: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:22]accept exits with 7 [09:15:22]New connection [09:15:22]New thread 3067538788 created [09:15:22]Thread 3067395428 joined [09:15:22]Waiting for new connection... [09:15:22] Sock 7.Parse request [09:15:22]Sock 7.Check first char [09:15:22]Sock 7.First char is OK [09:15:22]request: POST /json_proto HTTP/1.0 [09:15:22]Method: POST [09:15:22]URL: /json_proto [09:15:22]Method is POST - this is cgi request [09:15:22]url: /json_proto [09:15:22]query_string will be loaded in cgi processing [09:15:22]execute_cgi json_proto POST (null) [09:15:22]execute_cgi path=json_proto method=POST [09:15:22]POST find Content-Length [09:15:22]Host: 172.17.41.195:8080 [09:15:22]Content-Length: 1178 [09:15:22]Content-Type: application/json [09:15:22] [09:15:22]POST finish read [09:15:22]Found Content-Length = 1178 [09:15: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507718\u000A17.05.2024 08:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 747.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:22]execute_script... [09:15: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507718\u000A17.05.2024 08:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 747.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:22]POST & json_proto [09:15:22]process_json_proto [09:15:22]json parsed OK: [09:15:22]protocol is kg_v1.0 [09:15:22]action value=print_text [09:15:22]process_action print_text [09:15:22]cmd_print_text [09:15:22]ExternCall_PrintAddStr [09:15:22]wPrintStart [09:15:22]Write to MH i2c: 01 00 00 48 0C 54 [09:15:22]Write i2c OK [09:15:22]MH_I2C_Read... [09:15:22]Read from MH i2c: 01 [09:15:22]MH_I2C_Read... [09:15:22]Read from MH i2c: 01 07 00 [09:15:22]MH_I2C_Read... [09:15:22]Read from MH i2c: 01 07 00 48 0C 00 00 00 00 00 FF 0F 69 [09:15:22]RasterBufferAndPrint [09:15:22]line *****ТОВАРНЫЙ ЧЕК***** [09:15:22]line АЗС-91 [09:15:22]line Партнер нефть [09:15:22]line 02508201610067 [09:15:22]line Кассир : Адишов И. [09:15:22]line Счет N : (1)507718 [09:15:22]line 17.05.2024 08:57 [09:15:22]line ПРОДАЖА [09:15:22]line ТРК (МРК, ГНК): 11 [09:15:22]line Вид ГСМ : 2710194210 [09:15:22]line ДТ-К-5 [09:15:22]line 10.000 x 74.70 [09:15:22]line ИТОГ: 747.00 [09:15:22]line Тип оплаты: Талоны: Топливная Карта [09:15:22]line 02750 [09:15:22]line ______________________ [09:15:22]line (подпись) [09:15:22]written 0, free lines is 4095 [09:15:22]Write to MH i2c: 01 00 00 5C 0C 68 [09:15:22]Write i2c OK [09:15:22]MH_I2C_Read... [09:15:22]Read from MH i2c: 01 [09:15:22]MH_I2C_Read... [09:15:22]Read from MH i2c: 01 07 00 [09:15:22]MH_I2C_Read... [09:15:22]Read from MH i2c: 01 07 00 5C 0C 00 00 00 00 00 0B 0E 88 [09:15:22]RasterBufferAndPrint [09:15:22]line [09:15:22]line [09:15:22]line [09:15:22]line [09:15:22]line [09:15:22]written 0, free lines is 3597 [09:15:22]MH_Cut [09:15:22]Write to MH i2c: D1 01 00 63 0C 01 41 [09:15:22]Write i2c OK [09:15:22]MH_I2C_Read... [09:15:22]Read from MH i2c: D1 [09:15:22]MH_I2C_Read... [09:15:22]Read from MH i2c: D1 01 00 [09:15:22]MH_I2C_Read... [09:15:22]Read from MH i2c: D1 01 00 63 0C 00 40 [09:15:22]Write to MH i2c: 01 00 00 64 0C 70 [09:15:22]Write i2c OK [09:15:22]MH_I2C_Read... [09:15:23]*** Cut start [09:15:23]*** Purtial cut [09:15:23]*** Stage 1: CUTSNS_PIN = 1 [09:15:23]Read from MH i2c: 01 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: 01 07 00 [09:15:23]MH_I2C_Read... [09:15:23]*** Stop cut motor [09:15:23]*** Cut end [09:15:23]Read from MH i2c: 01 07 00 64 0C 00 00 00 00 00 FF 0F 85 [09:15:23]process_action print_text done [09:15:23]requested_data is exist [09:15:23]produce_requested_data [09:15:23]requested_item fm.sn is exist - process it [09:15:23]wFMCommunicate request_size=4 [09:15:23]MH_SAM_APDU [09:15:23]CAPDU: 80 11 00 00 [09:15:23]Write to MH i2c: E2 08 00 65 0C 80 11 00 00 00 00 00 00 EB [09:15:23]Write i2c OK [09:15:23]MH_I2C_Read... [09:15:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:23]Read from MH i2c: E2 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: E2 17 00 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: E2 17 00 65 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 41 [09:15: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:15:23]wFMCommunicate OK [09:15:23]requested_item fd.num is exist - process it [09:15:23]SAM_PROTO_GetFieldsCounters [09:15:23]wFMCommunicate request_size=4 [09:15:23]MH_SAM_APDU [09:15:23]CAPDU: 80 13 00 00 [09:15:23]Write to MH i2c: E2 08 00 66 0C 80 13 00 00 00 00 00 00 EE [09:15:23]Write i2c OK [09:15:23]MH_I2C_Read... [09:15:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:23]Read from MH i2c: E2 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: E2 62 00 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: E2 62 00 66 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 1C 08 01 00 0E 04 04 00 66 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 DF [09:15: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 1C 08 01 00 0E 04 04 00 66 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 [09:15:23]wFMCommunicate OK [09:15:23]SAM_PROTO_GetFieldsCounters done [09:15:23]requested_item shift.num is exist - process it [09:15:23]requested_item shift.opened is exist - process it [09:15:23]req_shift_opened [09:15:23]FM_GetShiftState [09:15:23]SAM_PROTO_GetShiftState [09:15:23]wFMCommunicate request_size=4 [09:15:23]MH_SAM_APDU [09:15:23]CAPDU: 80 13 01 00 [09:15:23]Write to MH i2c: E2 08 00 67 0C 80 13 01 00 00 00 00 00 F0 [09:15:23]Write i2c OK [09:15:23]MH_I2C_Read... [09:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:23]Read from MH i2c: E2 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: E2 0E 00 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: E2 0E 00 67 0C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 76 [09:15:23]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:15:23]wFMCommunicate OK [09:15:23]SAM_PROTO_GetShiftState done [09:15:23]FM_GetShiftState done [09:15:23]req_shift_opened done [09:15:23]requested_item shift.open_date is exist - process it [09:15:23]req_shift_open_date [09:15:23]req_shift_open_date done [09:15:23]produce_requested_data done [09:15:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:15:23]process_action_free print_text [09:15:23]json_value_free [09:15:23]json_value_free done [09:15:23]process_json_proto returns [09:15:23]Send response to host [09:15:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:15:23]free response buf [09:15:23]execute_script done [09:15:23]execute_script returns [09:15:23]free content buf [09:15:23]Sock 7.Close socket [09:15:23]Sock 7.Thread stoped [09:15:25]OFD Sender: No OFD packet to send [09:15:30]OFD Sender: No OFD packet to send [09:15:35]OFD Sender: No OFD packet to send [09:15:40]OFD Sender: No OFD packet to send [09:15:45]OFD Sender: No OFD packet to send [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:31]accept exits with 9 [09:16:31]New connection [09:16:31]New thread 3067395428 created [09:16:31]Thread 3067538788 joined [09:16:31]Waiting for new connection... [09:16:31] Sock 9.Parse request [09:16:31]Sock 9.Check first char [09:16:31]Sock 9.First char is OK [09:16:31]request: POST /json_proto HTTP/1.0 [09:16:31]Method: POST [09:16:31]URL: /json_proto [09:16:31]Method is POST - this is cgi request [09:16:31]url: /json_proto [09:16:31]query_string will be loaded in cgi processing [09:16:31]execute_cgi json_proto POST (null) [09:16:31]execute_cgi path=json_proto method=POST [09:16:31]POST find Content-Length [09:16:31]Host: 172.17.41.195:8080 [09:16:31]Content-Length: 1178 [09:16:31]Content-Type: application/json [09:16:31] [09:16:31]POST finish read [09:16:31]Found Content-Length = 1178 [09: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507719\u000A17.05.2024 08:59\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:16:31]execute_script... [09: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507719\u000A17.05.2024 08:59\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:16:31]POST & json_proto [09:16:31]process_json_proto [09:16:31]json parsed OK: [09:16:31]protocol is kg_v1.0 [09:16:31]action value=print_text [09:16:31]process_action print_text [09:16:31]cmd_print_text [09:16:31]ExternCall_PrintAddStr [09:16:31]wPrintStart [09:16:31]Write to MH i2c: 01 00 00 68 0C 74 [09:16:31]Write i2c OK [09:16:31]MH_I2C_Read... [09:16:31]Read from MH i2c: 01 [09:16:31]MH_I2C_Read... [09:16:31]Read from MH i2c: 01 07 00 [09:16:31]MH_I2C_Read... [09:16:31]Read from MH i2c: 01 07 00 68 0C 00 00 00 00 00 FF 0F 89 [09:16:31]RasterBufferAndPrint [09:16:31]line *****ТОВАРНЫЙ ЧЕК***** [09:16:31]line АЗС-91 [09:16:31]line Партнер нефть [09:16:31]line 02508201610067 [09:16:31]line Кассир : Адишов И. [09:16:31]line Счет N : (1)507719 [09:16:31]line 17.05.2024 08:59 [09:16:31]line ПРОДАЖА [09:16:31]line ТРК (МРК, ГНК): 41 [09:16:31]line Вид ГСМ : 2710194210 [09:16:31]line ДТ-К-5 [09:16:31]line 10.000 x 74.70 [09:16:31]line ИТОГ: 747.00 [09:16:31]line Тип оплаты: Талоны: Топливная Карта [09:16:31]line 02750 [09:16:31]line ______________________ [09:16:31]line (подпись) [09:16:31]written 0, free lines is 4095 [09:16:31]Write to MH i2c: 01 00 00 7C 0C 88 [09:16:31]Write i2c OK [09:16:31]MH_I2C_Read... [09:16:31]Read from MH i2c: 01 [09:16:31]MH_I2C_Read... [09:16:31]Read from MH i2c: 01 07 00 [09:16:31]MH_I2C_Read... [09:16:31]Read from MH i2c: 01 07 00 7C 0C 00 00 00 00 00 0C 0E A9 [09:16:31]RasterBufferAndPrint [09:16:31]line [09:16:31]line [09:16:31]line [09:16:31]line [09:16:31]line [09:16:31]written 0, free lines is 3597 [09:16:31]MH_Cut [09:16:31]Write to MH i2c: D1 01 00 83 0C 01 61 [09:16:31]Write i2c OK [09:16:31]MH_I2C_Read... [09:16:31]Read from MH i2c: D1 [09:16:31]MH_I2C_Read... [09:16:31]Read from MH i2c: D1 01 00 [09:16:31]MH_I2C_Read... [09:16:31]Read from MH i2c: D1 01 00 83 0C 00 60 [09:16:31]Write to MH i2c: 01 00 00 84 0C 90 [09:16:31]Write i2c OK [09:16:31]MH_I2C_Read... [09:16:32]*** Cut start [09:16:32]*** Purtial cut [09:16:32]*** CUTSNS_PIN = 0 [09:16:32]*** Stage 1: CUTSNS_PIN = 1 [09:16:34]Read from MH i2c: 01 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: 01 07 00 [09:16:34]MH_I2C_Read... [09:16:34]*** Stop cut motor [09:16:34]*** Cut end [09:16:34]Read from MH i2c: 01 07 00 84 0C 00 00 00 00 00 FF 0F A5 [09:16:34]process_action print_text done [09:16:34]requested_data is exist [09:16:34]produce_requested_data [09:16:34]requested_item fm.sn is exist - process it [09:16:34]wFMCommunicate request_size=4 [09:16:34]MH_SAM_APDU [09:16:34]CAPDU: 80 11 00 00 [09:16:34]Write to MH i2c: E2 08 00 85 0C 80 11 00 00 00 00 00 00 0B [09:16:34]Write i2c OK [09:16:34]MH_I2C_Read... [09:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:34]Read from MH i2c: E2 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: E2 17 00 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: E2 17 00 85 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 61 [09:16: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:16:34]wFMCommunicate OK [09:16:34]requested_item fd.num is exist - process it [09:16:34]SAM_PROTO_GetFieldsCounters [09:16:34]wFMCommunicate request_size=4 [09:16:34]MH_SAM_APDU [09:16:34]CAPDU: 80 13 00 00 [09:16:34]Write to MH i2c: E2 08 00 86 0C 80 13 00 00 00 00 00 00 0E [09:16:34]Write i2c OK [09:16:34]MH_I2C_Read... [09:16:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:34]Read from MH i2c: E2 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: E2 62 00 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: E2 62 00 86 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 1C 08 01 00 0E 04 04 00 66 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 FF [09:16: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 1C 08 01 00 0E 04 04 00 66 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 [09:16:34]wFMCommunicate OK [09:16:34]SAM_PROTO_GetFieldsCounters done [09:16:34]requested_item shift.num is exist - process it [09:16:34]requested_item shift.opened is exist - process it [09:16:34]req_shift_opened [09:16:34]FM_GetShiftState [09:16:34]SAM_PROTO_GetShiftState [09:16:34]wFMCommunicate request_size=4 [09:16:34]MH_SAM_APDU [09:16:34]CAPDU: 80 13 01 00 [09:16:34]Write to MH i2c: E2 08 00 87 0C 80 13 01 00 00 00 00 00 10 [09:16:34]Write i2c OK [09:16:34]MH_I2C_Read... [09:16:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:34]Read from MH i2c: E2 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: E2 0E 00 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: E2 0E 00 87 0C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 96 [09:16:34]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:16:34]wFMCommunicate OK [09:16:34]SAM_PROTO_GetShiftState done [09:16:34]FM_GetShiftState done [09:16:34]req_shift_opened done [09:16:34]requested_item shift.open_date is exist - process it [09:16:34]req_shift_open_date [09:16:34]req_shift_open_date done [09:16:34]produce_requested_data done [09:16:34]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:16:34]process_action_free print_text [09:16:34]json_value_free [09:16:34]json_value_free done [09:16:34]process_json_proto returns [09:16:34]Send response to host [09:16:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:16:34]free response buf [09:16:34]execute_script done [09:16:34]execute_script returns [09:16:34]free content buf [09:16:34]Sock 9.Close socket [09:16:34]Sock 9.Thread stoped [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:20]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:40]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:27]accept exits with 7 [09:18:27]New connection [09:18:27]New thread 3067538788 created [09:18:27]Thread 3067395428 joined [09:18:27]Waiting for new connection... [09:18:27] Sock 7.Parse request [09:18:27]Sock 7.Check first char [09:18:27]Sock 7.First char is OK [09:18:27]request: POST /json_proto HTTP/1.0 [09:18:27]Method: POST [09:18:27]URL: /json_proto [09:18:27]Method is POST - this is cgi request [09:18:27]url: /json_proto [09:18:27]query_string will be loaded in cgi processing [09:18:27]execute_cgi json_proto POST (null) [09:18:27]execute_cgi path=json_proto method=POST [09:18:27]POST find Content-Length [09:18:27]Host: 172.17.41.195:8080 [09:18:27]Content-Length: 1141 [09:18:27]Content-Type: application/json [09:18:27] [09:18:27]POST finish read [09:18:27]Found Content-Length = 1141 [09:18: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507717\u000A17.05.2024 09:00\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 41.900 x 74.70\u000A\u0418\u0422\u041E\u0413: 3129.93\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30025243\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:27]execute_script... [09:18: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507717\u000A17.05.2024 09:00\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 41.900 x 74.70\u000A\u0418\u0422\u041E\u0413: 3129.93\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30025243\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:27]POST & json_proto [09:18:27]process_json_proto [09:18:27]json parsed OK: [09:18:27]protocol is kg_v1.0 [09:18:27]action value=print_text [09:18:27]process_action print_text [09:18:27]cmd_print_text [09:18:27]ExternCall_PrintAddStr [09:18:27]wPrintStart [09:18:27]Write to MH i2c: 01 00 00 88 0C 94 [09:18:27]Write i2c OK [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: 01 [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: 01 07 00 [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: 01 07 00 88 0C 00 00 00 00 00 FF 0F A9 [09:18:27]RasterBufferAndPrint [09:18:27]line *****ТОВАРНЫЙ ЧЕК***** [09:18:27]line АЗС-91 [09:18:27]line Партнер нефть [09:18:27]line 02508201610067 [09:18:27]line Кассир : Адишов И. [09:18:27]line Счет N : (1)507717 [09:18:27]line 17.05.2024 09:00 [09:18:27]line ПРОДАЖА [09:18:27]line ТРК (МРК, ГНК): 21 [09:18:27]line Вид ГСМ : 2710194210 [09:18:27]line ДТ-К-5 [09:18:27]line 41.900 x 74.70 [09:18:27]line ИТОГ: 3129.93 [09:18:27]line Тип оплаты: Талоны: ТК ГПНА Online [09:18:27]line 30025243 [09:18:27]line ______________________ [09:18:27]line (подпись) [09:18:27]written 0, free lines is 4095 [09:18:27]Write to MH i2c: 01 00 00 9C 0C A8 [09:18:27]Write i2c OK [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: 01 [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: 01 07 00 [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: 01 07 00 9C 0C 00 00 00 00 00 0D 0E CA [09:18:27]RasterBufferAndPrint [09:18:27]line [09:18:27]line [09:18:27]line [09:18:27]line [09:18:27]line [09:18:27]written 0, free lines is 3598 [09:18:27]MH_Cut [09:18:27]Write to MH i2c: D1 01 00 A3 0C 01 81 [09:18:27]Write i2c OK [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: D1 [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: D1 01 00 [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: D1 01 00 A3 0C 00 80 [09:18:27]Write to MH i2c: 01 00 00 A4 0C B0 [09:18:27]Write i2c OK [09:18:27]MH_I2C_Read... [09:18:27]*** Cut start [09:18:27]*** Purtial cut [09:18:27]*** Stage 1: CUTSNS_PIN = 1 [09:18:28]Read from MH i2c: 01 [09:18:28]MH_I2C_Read... [09:18:28]*** Stop cut motor [09:18:28]*** Cut end [09:18:28]Read from MH i2c: 01 07 00 [09:18:28]MH_I2C_Read... [09:18:28]Read from MH i2c: 01 07 00 A4 0C 00 00 00 00 00 FF 0F C5 [09:18:28]process_action print_text done [09:18:28]requested_data is exist [09:18:28]produce_requested_data [09:18:28]requested_item fm.sn is exist - process it [09:18:28]wFMCommunicate request_size=4 [09:18:28]MH_SAM_APDU [09:18:28]CAPDU: 80 11 00 00 [09:18:28]Write to MH i2c: E2 08 00 A5 0C 80 11 00 00 00 00 00 00 2B [09:18:28]Write i2c OK [09:18:28]MH_I2C_Read... [09:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:28]Read from MH i2c: E2 [09:18:28]MH_I2C_Read... [09:18:28]Read from MH i2c: E2 17 00 [09:18:28]MH_I2C_Read... [09:18:28]Read from MH i2c: E2 17 00 A5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 81 [09:18:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:18:28]wFMCommunicate OK [09:18:28]requested_item fd.num is exist - process it [09:18:28]SAM_PROTO_GetFieldsCounters [09:18:28]wFMCommunicate request_size=4 [09:18:28]MH_SAM_APDU [09:18:28]CAPDU: 80 13 00 00 [09:18:28]Write to MH i2c: E2 08 00 A6 0C 80 13 00 00 00 00 00 00 2E [09:18:28]Write i2c OK [09:18:28]MH_I2C_Read... [09:18:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:28]Read from MH i2c: E2 [09:18:28]MH_I2C_Read... [09:18:28]Read from MH i2c: E2 62 00 [09:18:28]MH_I2C_Read... [09:18:28]Read from MH i2c: E2 62 00 A6 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 1C 08 01 00 0E 04 04 00 66 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 1F [09:18: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 1C 08 01 00 0E 04 04 00 66 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 [09:18:28]wFMCommunicate OK [09:18:28]SAM_PROTO_GetFieldsCounters done [09:18:28]requested_item shift.num is exist - process it [09:18:28]requested_item shift.opened is exist - process it [09:18:28]req_shift_opened [09:18:28]FM_GetShiftState [09:18:28]SAM_PROTO_GetShiftState [09:18:28]wFMCommunicate request_size=4 [09:18:28]MH_SAM_APDU [09:18:28]CAPDU: 80 13 01 00 [09:18:28]Write to MH i2c: E2 08 00 A7 0C 80 13 01 00 00 00 00 00 30 [09:18:28]Write i2c OK [09:18:28]MH_I2C_Read... [09:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:28]Read from MH i2c: E2 [09:18:28]MH_I2C_Read... [09:18:28]Read from MH i2c: E2 0E 00 [09:18:28]MH_I2C_Read... [09:18:28]Read from MH i2c: E2 0E 00 A7 0C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 B6 [09:18:28]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:18:28]wFMCommunicate OK [09:18:28]SAM_PROTO_GetShiftState done [09:18:28]FM_GetShiftState done [09:18:28]req_shift_opened done [09:18:28]requested_item shift.open_date is exist - process it [09:18:28]req_shift_open_date [09:18:28]req_shift_open_date done [09:18:28]produce_requested_data done [09:18:28]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:18:28]process_action_free print_text [09:18:28]json_value_free [09:18:28]json_value_free done [09:18:28]process_json_proto returns [09:18:28]Send response to host [09:18:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:18:28]free response buf [09:18:28]execute_script done [09:18:28]execute_script returns [09:18:28]free content buf [09:18:28]Sock 7.Close socket [09:18:28]Sock 7.Thread stoped [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:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [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:46]accept exits with 9 [09:19:46]New connection [09:19:46]New thread 3067395428 created [09:19:46]Thread 3067538788 joined [09:19:46]Waiting for new connection... [09:19:46] Sock 9.Parse request [09:19:46]Sock 9.Check first char [09:19:46]Sock 9.First char is OK [09:19:46]request: POST /json_proto HTTP/1.0 [09:19:46]Method: POST [09:19:46]URL: /json_proto [09:19:46]Method is POST - this is cgi request [09:19:46]url: /json_proto [09:19:46]query_string will be loaded in cgi processing [09:19:46]execute_cgi json_proto POST (null) [09:19:46]execute_cgi path=json_proto method=POST [09:19:46]POST find Content-Length [09:19:46]Host: 172.17.41.195:8080 [09:19:46]Content-Length: 1179 [09:19:46]Content-Type: application/json [09:19:46] [09:19:46]POST finish read [09:19:46]Found Content-Length = 1179 [09:19: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507720\u000A17.05.2024 09:02\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:19:46]execute_script... [09:19: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507720\u000A17.05.2024 09:02\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:19:46]POST & json_proto [09:19:46]process_json_proto [09:19:46]json parsed OK: [09:19:46]protocol is kg_v1.0 [09:19:46]action value=print_text [09:19:46]process_action print_text [09:19:46]cmd_print_text [09:19:46]ExternCall_PrintAddStr [09:19:46]wPrintStart [09:19:46]Write to MH i2c: 01 00 00 A8 0C B4 [09:19:46]Write i2c OK [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: 01 [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: 01 07 00 [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: 01 07 00 A8 0C 00 00 00 00 00 FF 0F C9 [09:19:46]RasterBufferAndPrint [09:19:46]line *****ТОВАРНЫЙ ЧЕК***** [09:19:46]line АЗС-91 [09:19:46]line Партнер нефть [09:19:46]line 02508201610067 [09:19:46]line Кассир : Адишов И. [09:19:46]line Счет N : (1)507720 [09:19:46]line 17.05.2024 09:02 [09:19:46]line ПРОДАЖА [09:19:46]line ТРК (МРК, ГНК): 11 [09:19:46]line Вид ГСМ : 2710194210 [09:19:46]line ДТ-К-5 [09:19:46]line 25.000 x 74.70 [09:19:46]line ИТОГ: 1867.50 [09:19:46]line Тип оплаты: Талоны: Топливная Карта [09:19:46]line 02750 [09:19:46]line ______________________ [09:19:46]line (подпись) [09:19:46]written 0, free lines is 4095 [09:19:47]Write to MH i2c: 01 00 00 BC 0C C8 [09:19:47]Write i2c OK [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: 01 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: 01 07 00 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: 01 07 00 BC 0C 00 00 00 00 00 0C 0E E9 [09:19:47]RasterBufferAndPrint [09:19:47]line [09:19:47]line [09:19:47]line [09:19:47]line [09:19:47]line [09:19:47]written 0, free lines is 3598 [09:19:47]MH_Cut [09:19:47]Write to MH i2c: D1 01 00 C3 0C 01 A1 [09:19:47]Write i2c OK [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: D1 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: D1 01 00 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: D1 01 00 C3 0C 00 A0 [09:19:47]Write to MH i2c: 01 00 00 C4 0C D0 [09:19:47]Write i2c OK [09:19:47]MH_I2C_Read... [09:19:47]*** Cut start [09:19:47]*** Purtial cut [09:19:47]*** CUTSNS_PIN = 0 [09:19:48]*** Stage 1: CUTSNS_PIN = 1 [09:19:49]Read from MH i2c: 01 [09:19:49]MH_I2C_Read... [09:19:49]*** Stop cut motor [09:19:49]*** Cut end [09:19:49]Read from MH i2c: 01 07 00 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: 01 07 00 C4 0C 00 00 00 00 00 FF 0F E5 [09:19:49]process_action print_text done [09:19:49]requested_data is exist [09:19:49]produce_requested_data [09:19:49]requested_item fm.sn is exist - process it [09:19:49]wFMCommunicate request_size=4 [09:19:49]MH_SAM_APDU [09:19:49]CAPDU: 80 11 00 00 [09:19:49]Write to MH i2c: E2 08 00 C5 0C 80 11 00 00 00 00 00 00 4B [09:19:49]Write i2c OK [09:19:49]MH_I2C_Read... [09:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:49]Read from MH i2c: E2 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 17 00 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 17 00 C5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A1 [09:19:49]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:49]wFMCommunicate OK [09:19:49]requested_item fd.num is exist - process it [09:19:49]SAM_PROTO_GetFieldsCounters [09:19:49]wFMCommunicate request_size=4 [09:19:49]MH_SAM_APDU [09:19:49]CAPDU: 80 13 00 00 [09:19:49]Write to MH i2c: E2 08 00 C6 0C 80 13 00 00 00 00 00 00 4E [09:19:49]Write i2c OK [09:19:49]MH_I2C_Read... [09:19:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:49]Read from MH i2c: E2 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 62 00 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 62 00 C6 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 1C 08 01 00 0E 04 04 00 66 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 3F [09:19: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 1C 08 01 00 0E 04 04 00 66 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 [09:19:49]wFMCommunicate OK [09:19:49]SAM_PROTO_GetFieldsCounters done [09:19:49]requested_item shift.num is exist - process it [09:19:49]requested_item shift.opened is exist - process it [09:19:49]req_shift_opened [09:19:49]FM_GetShiftState [09:19:49]SAM_PROTO_GetShiftState [09:19:49]wFMCommunicate request_size=4 [09:19:49]MH_SAM_APDU [09:19:49]CAPDU: 80 13 01 00 [09:19:49]Write to MH i2c: E2 08 00 C7 0C 80 13 01 00 00 00 00 00 50 [09:19:49]Write i2c OK [09:19:49]MH_I2C_Read... [09:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:49]Read from MH i2c: E2 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 0E 00 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 0E 00 C7 0C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 D6 [09:19:49]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:19:49]wFMCommunicate OK [09:19:49]SAM_PROTO_GetShiftState done [09:19:49]FM_GetShiftState done [09:19:49]req_shift_opened done [09:19:49]requested_item shift.open_date is exist - process it [09:19:49]req_shift_open_date [09:19:49]req_shift_open_date done [09:19:49]produce_requested_data done [09:19:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:19:49]process_action_free print_text [09:19:49]json_value_free [09:19:49]json_value_free done [09:19:49]process_json_proto returns [09:19:49]Send response to host [09:19:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67612,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:19:49]free response buf [09:19:49]execute_script done [09:19:49]execute_script returns [09:19:49]free content buf [09:19:49]Sock 9.Close socket [09:19:49]Sock 9.Thread stoped [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: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: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:39]accept exits with 7 [09:24:39]New connection [09:24:39]New thread 3067538788 created [09:24:39]Thread 3067395428 joined [09:24:39]Waiting for new connection... [09:24:39] Sock 7.Parse request [09:24:39]Sock 7.Check first char [09:24:39]Sock 7.First char is OK [09:24:39]request: POST /json_proto HTTP/1.0 [09:24:39]Method: POST [09:24:39]URL: /json_proto [09:24:39]Method is POST - this is cgi request [09:24:39]url: /json_proto [09:24:39]query_string will be loaded in cgi processing [09:24:39]execute_cgi json_proto POST (null) [09:24:39]execute_cgi path=json_proto method=POST [09:24:39]POST find Content-Length [09:24:39]Host: 172.17.41.195:8080 [09:24:39]Content-Length: 819 [09:24:39]Content-Type: application/json [09:24:39] [09:24:39]POST finish read [09:24:39]Found Content-Length = 819 [09:24:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507722", "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: \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" ] } } [09:24:39]execute_script... [09:24: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)507722", "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: \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" ] } } [09:24:39]POST & json_proto [09:24:39]process_json_proto [09:24:39]json parsed OK: [09:24:39]protocol is kg_v1.0 [09:24:39]action value=close_receipt [09:24:39]process_action close_receipt [09:24:39]cmd_close_receipt [09:24:39]MH_GetDate [09:24:39]Write to MH i2c: F0 00 00 C8 0C C3 [09:24:39]Write i2c OK [09:24:39]MH_I2C_Read... [09:24:39]Read from MH i2c: F0 [09:24:39]MH_I2C_Read... [09:24:39]Read from MH i2c: F0 09 00 [09:24:39]MH_I2C_Read... [09:24:39]Read from MH i2c: F0 09 00 C8 0C 00 5A 22 47 66 FC 21 6F 64 E5 [09:24:39]GetLastDocTimeStamp 1715936318 [09:24:39]current date 1715937882 [09:24:39]FM_GetShiftState [09:24:39]SAM_PROTO_GetShiftState [09:24:39]wFMCommunicate request_size=4 [09:24:39]MH_SAM_APDU [09:24:39]CAPDU: 80 13 01 00 [09:24:39]Write to MH i2c: E2 08 00 C9 0C 80 13 01 00 00 00 00 00 52 [09:24:39]Write i2c OK [09:24:39]MH_I2C_Read... [09:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:39]Read from MH i2c: E2 [09:24:39]MH_I2C_Read... [09:24:39]Read from MH i2c: E2 0E 00 [09:24:39]MH_I2C_Read... [09:24:39]Read from MH i2c: E2 0E 00 C9 0C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 D8 [09:24:39]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:24:39]wFMCommunicate OK [09:24:39]SAM_PROTO_GetShiftState done [09:24:39]FM_GetShiftState done [09:24:39]opened in 1715905068 [09:24:39]opened+sec_in_day 1715991468 [09:24:39]quantity*price = 100066 [09:24:39]sum+1 = 100067 [09:24:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 22 17.05.2024 09:24 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67613 ФПД: 153781993005775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T092442&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67613&fm=153781993005775&tin=02508201610067®Number=0000000000091845&sum=100066 [09:24:40]StoreToDocumentArchive [09:24:40]shift 358 fd 67613 [09:24:40]save to /storage/0358/doc_00067613 [09:24:40]save last doc name /storage/0358/doc_00067613 to /storage/kkm_last_doc_name [09:24:40]save OK [09:24:40]Clear old archive folders... [09:24:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:24:40]tlvbuf is 016444B0 [09:24:40]SAM_PROTO_ClearQueue [09:24:40]wFMCommunicate request_size=4 [09:24:40]MH_SAM_APDU [09:24:40]CAPDU: 80 09 00 00 [09:24:40]Write to MH i2c: E2 08 00 D6 0C 80 09 00 00 00 00 00 00 54 [09:24:40]Write i2c OK [09:24:40]MH_I2C_Read... [09:24:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:40]Read from MH i2c: E2 [09:24:40]MH_I2C_Read... [09:24:40]Read from MH i2c: E2 03 00 [09:24:40]MH_I2C_Read... [09:24:40]Read from MH i2c: E2 03 00 D6 0C 00 90 00 56 [09:24:40]RAPDU: 90 00 [09:24:40]wFMCommunicate OK [09:24:40]SAM_PROTO_ClearQueue done [09:24:40]KKMCreateOFDPacket [09:24:40]OFDProtocolAddRootSTLVToBuf [09:24:40]FM_MakeSignedData [09:24:40]FM_MakeSignedData [09:24:40]SAM_PROTO_SignData [09:24:40]wFMCommunicate request_size=4 [09:24:40]MH_SAM_APDU [09:24:40]CAPDU: 80 0D 01 02 [09:24:40]Write to MH i2c: E2 08 00 D7 0C 80 0D 01 02 00 00 00 00 5C [09:24:40]Write i2c OK [09:24:40]MH_I2C_Read... [09:24:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:40]Read from MH i2c: E2 [09:24:40]MH_I2C_Read... [09:24:40]Read from MH i2c: E2 03 00 [09:24:40]MH_I2C_Read... [09:24:40]Read from MH i2c: E2 03 00 D7 0C 00 90 00 57 [09:24:40]RAPDU: 90 00 [09:24:40]wFMCommunicate OK [09:24:40]wFMCommunicate request_size=255 [09:24:40]MH_SAM_APDU [09:24: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 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 16 00 00 00 F4 03 04 00 5A 22 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 8B [09:24:40]Write to MH i2c: E2 02 01 D8 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 16 00 00 00 F4 03 04 00 5A 22 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 8B 00 00 10 [09:24:40]Write i2c OK [09:24:40]MH_I2C_Read... [09:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:41]Read from MH i2c: E2 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: E2 03 00 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: E2 03 00 D8 0C 00 90 00 58 [09:24:41]RAPDU: 90 00 [09:24:41]wFMCommunicate OK [09:24:41]wFMCommunicate request_size=10 [09:24:41]MH_SAM_APDU [09:24:41]CAPDU: 80 0D 02 02 05 DD 29 10 E2 CF [09:24:41]Write to MH i2c: E2 0D 00 D9 0C 80 0D 02 02 05 00 DD 29 10 E2 CF 00 00 30 [09:24:41]Write i2c OK [09:24:41]MH_I2C_Read... [09:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:41]Read from MH i2c: E2 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: E2 03 00 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: E2 03 00 D9 0C 00 90 00 59 [09:24:41]RAPDU: 90 00 [09:24:41]wFMCommunicate OK [09:24:41]wFMCommunicate request_size=4 [09:24:41]MH_SAM_APDU [09:24:41]CAPDU: 80 0D 03 02 [09:24:41]Write to MH i2c: E2 08 00 DA 0C 80 0D 03 02 00 00 00 00 61 [09:24:41]Write i2c OK [09:24:41]MH_I2C_Read... [09:24:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:41]Read from MH i2c: E2 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: E2 0B 00 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: E2 0B 00 DA 0C 00 BA 04 2F BF 60 35 B1 43 90 00 97 [09:24:41]RAPDU: BA 04 2F BF 60 35 B1 43 90 00 [09:24:41]wFMCommunicate OK [09:24:41]SAM_PROTO_SignData done [09:24:41]FM_MakeSignedData done [09:24:41]CreateOFDProtocolMessage [09:24:41]wFMCommunicate request_size=4 [09:24:41]MH_SAM_APDU [09:24:41]CAPDU: 80 11 00 00 [09:24:41]Write to MH i2c: E2 08 00 DB 0C 80 11 00 00 00 00 00 00 61 [09:24:41]Write i2c OK [09:24:41]MH_I2C_Read... [09:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:41]Read from MH i2c: E2 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: E2 17 00 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: E2 17 00 DB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B7 [09:24: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:24:41]wFMCommunicate OK [09:24:41]CreateOFDProtocolMessage done [09:24:41]OFDSenderStorePacket 67613 [09:24:41]StoreOFDPacket docnum=67613 [09:24: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 F3 E0 07 01 EB F5 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 16 00 00 00 F4 03 04 00 5A 22 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 8B DD 29 10 E2 CF BA 04 2F BF 60 35 B1 43 [09:24:41]CheckFolder [09:24:41]dirname=/storage/ofd_packets [09:24:41]CheckFolder done [09:24:41]ProducePacketName [09:24:41]name=ofd_packets/00067613 [09:24:41]NVStorageSaveData ofd_packets/00067613 [09:24:41]File name is /storage/ofd_packets/00067613 [09:24:41]Write 301 bytes [09:24:41]NVStorageSaveData done [09:24:41]OFDSenderStorePacket done [09:24:41]KKMCreateOFDPacket done [09:24:41]NVStorageSaveData kkm_last_timestamp [09:24:41]File name is /storage/kkm_last_timestamp [09:24:41]Write 4 bytes [09:24:41]NVStorageSaveData done [09:24:41]ExternCall_PrintAddStr [09:24:41]wPrintStart [09:24:41]Write to MH i2c: 01 00 00 DC 0C E8 [09:24:41]Write i2c OK [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: 01 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: 01 07 00 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: 01 07 00 DC 0C 00 00 00 00 00 FF 0F FD [09:24:41]RasterBufferAndPrint [09:24:41]line Счет N : (1)507722 [09:24:41]line ИНН: 02508201610067 [09:24:41]line Контрольно-Кассовый Чек [09:24:41]line ПРОДАЖА [09:24:41]line ТРК (МРК, ГНК) : 13 [09:24:41]line Товар: 2710124130 [09:24:41]line Аи-92-К-5 [09:24:41]line 14.980 * 66.80 [09:24:41]line = 1000.66 [09:24:41]line НДС 12% НСП 1% [09:24:41]line > о реализуемом товаре [09:24:41]line ИТОГО: 1000.66 [09:24:41]line НСП 1% : 8.85 [09:24:41]line НДС 12% : 106.26 [09:24:41]line Наличными: 0.00 [09:24:41]line Безнал.: 1000.66 [09:24:41]line Место: АЗС № 91 "Партнер Нефть" [09:24:41]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:24:41]line СНО: Общий режим [09:24:41]line Чек 22 17.05.2024 09:24 [09:24:41]line Смена: 358 ФФД: 1.0 [09:24:41]line ЗНМ: 0300000119 [09:24:41]line РНМ: 0000000000091845 [09:24:41]line Версия ККМ: 001 [09:24:41]line Платежная система: Бакай Банк [09:24:41]line ФМ: 0000000000871829 [09:24:41]line ФД: 67613 [09:24:41]line ФПД: 153781993005775 [09:24:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T092442&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67613&fm=153781993005775&tin=02508201610067®Number=0000000000091845&sum=100066 [09:24:41]OFD Sender: Processing packet 67613 [packets to send 35, broken 34] [09:24:41]ProducePacketName [09:24:41]name=ofd_packets/00067613 [09:24:41]OFD Sender: To server: pG, [09:24:41]CommunicateWithHost lk.salyk.kg:30040 [09:24:41]ConnectInit lk.salyk.kg [09:24:41]written 0, free lines is 4095 [09:24:41]Connected sock=10 [09:24: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 F3 E0 07 01 EB F5 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 16 00 00 00 F4 03 04 00 5A 22 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 8B DD 29 10 E2 CF BA 04 2F BF 60 35 B1 43 [09:24: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 05 51 47 00 5E 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 1D 08 01 00 F4 03 04 00 32 CA 46 66 B6 04 01 00 00 B8 6F 71 7B 97 97 EE 62 [09:24:42]CommunicateWithHost err = 0 [09:24:42]CheckOFDResponse [09:24:42]1017 (14) - 77093643461234 [09:24:42]1041 (16) - 0000000000871829 [09:24:42]1040 (4) - 67613 [09:24:42]1012 (4) - 17.05.2024 03:08 [09:24:42]1206 (1) - 0 [09:24:42]OFD Sender: Remove packet 67613 [09:24:42]ProducePacketName [09:24:42]name=ofd_packets/00067613 [09:24:42]NVStorageDeleteData [09:24:42]Write to MH i2c: 01 00 00 05 0D 12 [09:24:42]Write i2c OK [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: 01 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: 01 07 00 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: 01 07 00 05 0D 00 00 00 00 00 E1 0C 06 [09:24:42]RasterBufferAndPrint [09:24:42]line [09:24:42]line [09:24:42]line [09:24:42]line [09:24:42]line [09:24:42]written 0, free lines is 3302 [09:24:42]MH_Cut [09:24:42]Write to MH i2c: D1 01 00 0C 0D 01 EB [09:24:42]Write i2c OK [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: D1 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: D1 01 00 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: D1 01 00 0C 0D 00 EA [09:24:42]Write to MH i2c: 01 00 00 0D 0D 1A [09:24:42]Write i2c OK [09:24:42]MH_I2C_Read... [09:24:42]OFD Sender: No OFD packet to send [09:24:42]*** Cut start [09:24:42]*** Purtial cut [09:24:42]*** Stage 1: CUTSNS_PIN = 1 [09:24:43]Read from MH i2c: 01 [09:24:43]MH_I2C_Read... [09:24:43]*** Stop cut motor [09:24:43]*** Cut end [09:24:43]Read from MH i2c: 01 07 00 [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: 01 07 00 0D 0D 00 00 00 00 00 FF 0F 2F [09:24:43]process_action close_receipt done [09:24:43]requested_data is exist [09:24:43]produce_requested_data [09:24:43]requested_item fm.sn is exist - process it [09:24:43]wFMCommunicate request_size=4 [09:24:43]MH_SAM_APDU [09:24:43]CAPDU: 80 11 00 00 [09:24:43]Write to MH i2c: E2 08 00 0E 0D 80 11 00 00 00 00 00 00 95 [09:24:43]Write i2c OK [09:24:43]MH_I2C_Read... [09:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:43]Read from MH i2c: E2 [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: E2 17 00 [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: E2 17 00 0E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EB [09:24: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:24:43]wFMCommunicate OK [09:24:43]requested_item fd.num is exist - process it [09:24:43]SAM_PROTO_GetFieldsCounters [09:24:43]wFMCommunicate request_size=4 [09:24:43]MH_SAM_APDU [09:24:43]CAPDU: 80 13 00 00 [09:24:43]Write to MH i2c: E2 08 00 0F 0D 80 13 00 00 00 00 00 00 98 [09:24:43]Write i2c OK [09:24:43]MH_I2C_Read... [09:24:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:43]Read from MH i2c: E2 [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: E2 62 00 [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: E2 62 00 0F 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 1D 08 01 00 0E 04 04 00 66 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 8D [09:24: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 1D 08 01 00 0E 04 04 00 66 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 [09:24:43]wFMCommunicate OK [09:24:43]SAM_PROTO_GetFieldsCounters done [09:24:43]requested_item shift.num is exist - process it [09:24:43]requested_item shift.opened is exist - process it [09:24:43]req_shift_opened [09:24:43]FM_GetShiftState [09:24:43]SAM_PROTO_GetShiftState [09:24:43]wFMCommunicate request_size=4 [09:24:43]MH_SAM_APDU [09:24:43]CAPDU: 80 13 01 00 [09:24:43]Write to MH i2c: E2 08 00 10 0D 80 13 01 00 00 00 00 00 9A [09:24:43]Write i2c OK [09:24:43]MH_I2C_Read... [09:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:43]Read from MH i2c: E2 [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: E2 0E 00 [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: E2 0E 00 10 0D 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 20 [09:24:43]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:24:43]wFMCommunicate OK [09:24:43]SAM_PROTO_GetShiftState done [09:24:43]FM_GetShiftState done [09:24:43]req_shift_opened done [09:24:43]requested_item shift.open_date is exist - process it [09:24:43]req_shift_open_date [09:24:43]req_shift_open_date done [09:24:43]produce_requested_data done [09:24:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67613,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:24:43]process_action_free close_receipt [09:24:43]json_value_free [09:24:43]json_value_free done [09:24:43]process_json_proto returns [09:24:43]Send response to host [09:24:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67613,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:24:43]free response buf [09:24:43]execute_script done [09:24:43]execute_script returns [09:24:43]free content buf [09:24:43]Sock 7.Close socket [09:24:43]Sock 7.Thread stoped [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:52]accept exits with 9 [09:26:52]New connection [09:26:52]New thread 3067395428 created [09:26:52]Thread 3067538788 joined [09:26:52]Waiting for new connection... [09:26:52] Sock 9.Parse request [09:26:52]Sock 9.Check first char [09:26:52]Sock 9.First char is OK [09:26:52]request: POST /json_proto HTTP/1.0 [09:26:52]Method: POST [09:26:52]URL: /json_proto [09:26:52]Method is POST - this is cgi request [09:26:52]url: /json_proto [09:26:52]query_string will be loaded in cgi processing [09:26:52]execute_cgi json_proto POST (null) [09:26:52]execute_cgi path=json_proto method=POST [09:26:52]POST find Content-Length [09:26:52]Host: 172.17.41.195:8080 [09:26:52]Content-Length: 1144 [09:26:52]Content-Type: application/json [09:26:52] [09:26:52]POST finish read [09:26:52]Found Content-Length = 1144 [09:26: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507721\u000A17.05.2024 09:09\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\u000A30069308\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:52]execute_script... [09:26: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507721\u000A17.05.2024 09:09\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\u000A30069308\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:52]POST & json_proto [09:26:52]process_json_proto [09:26:52]json parsed OK: [09:26:52]protocol is kg_v1.0 [09:26:52]action value=print_text [09:26:52]process_action print_text [09:26:52]cmd_print_text [09:26:52]ExternCall_PrintAddStr [09:26:52]wPrintStart [09:26:52]Write to MH i2c: 01 00 00 11 0D 1E [09:26:52]Write i2c OK [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: 01 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: 01 07 00 [09:26:52]MH_I2C_Read... [09:26:52]Read from MH i2c: 01 07 00 11 0D 00 00 00 00 00 FF 0F 33 [09:26:52]RasterBufferAndPrint [09:26:52]line *****ТОВАРНЫЙ ЧЕК***** [09:26:52]line АЗС-91 [09:26:52]line Партнер нефть [09:26:52]line 02508201610067 [09:26:52]line Кассир : Адишов И. [09:26:52]line Счет N : (1)507721 [09:26:52]line 17.05.2024 09:09 [09:26:52]line ПРОДАЖА [09:26:52]line ТРК (МРК, ГНК): 33 [09:26:52]line Вид ГСМ : 2710124130 [09:26:52]line Аи-92-К-5 [09:26:52]line 30.000 x 66.80 [09:26:52]line ИТОГ: 2004.00 [09:26:52]line Тип оплаты: Талоны: ТК ГПНА Online [09:26:52]line 30069308 [09:26:52]line ______________________ [09:26:52]line (подпись) [09:26:52]written 0, free lines is 4095 [09:26:53]Write to MH i2c: 01 00 00 25 0D 32 [09:26:53]Write i2c OK [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: 01 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: 01 07 00 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: 01 07 00 25 0D 00 00 00 00 00 11 0E 58 [09:26:53]RasterBufferAndPrint [09:26:53]line [09:26:53]line [09:26:53]line [09:26:53]line [09:26:53]line [09:26:53]written 0, free lines is 3602 [09:26:53]MH_Cut [09:26:53]Write to MH i2c: D1 01 00 2C 0D 01 0B [09:26:53]Write i2c OK [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: D1 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: D1 01 00 [09:26:53]MH_I2C_Read... [09:26:53]Read from MH i2c: D1 01 00 2C 0D 00 0A [09:26:53]Write to MH i2c: 01 00 00 2D 0D 3A [09:26:53]Write i2c OK [09:26:53]MH_I2C_Read... [09:26:53]*** Cut start [09:26:53]*** Purtial cut [09:26:53]*** CUTSNS_PIN = 0 [09:26:53]*** Stage 1: CUTSNS_PIN = 1 [09:26:55]Read from MH i2c: 01 [09:26:55]MH_I2C_Read... [09:26:55]*** Stop cut motor [09:26:55]*** Cut end [09:26:55]Read from MH i2c: 01 07 00 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: 01 07 00 2D 0D 00 00 00 00 00 FF 0F 4F [09:26:55]process_action print_text done [09:26:55]requested_data is exist [09:26:55]produce_requested_data [09:26:55]requested_item fm.sn is exist - process it [09:26:55]wFMCommunicate request_size=4 [09:26:55]MH_SAM_APDU [09:26:55]CAPDU: 80 11 00 00 [09:26:55]Write to MH i2c: E2 08 00 2E 0D 80 11 00 00 00 00 00 00 B5 [09:26:55]Write i2c OK [09:26:55]MH_I2C_Read... [09:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:55]Read from MH i2c: E2 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 17 00 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 17 00 2E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0B [09:26:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:26:55]wFMCommunicate OK [09:26:55]requested_item fd.num is exist - process it [09:26:55]SAM_PROTO_GetFieldsCounters [09:26:55]wFMCommunicate request_size=4 [09:26:55]MH_SAM_APDU [09:26:55]CAPDU: 80 13 00 00 [09:26:55]Write to MH i2c: E2 08 00 2F 0D 80 13 00 00 00 00 00 00 B8 [09:26:55]Write i2c OK [09:26:55]MH_I2C_Read... [09:26:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:55]Read from MH i2c: E2 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 62 00 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 62 00 2F 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 1D 08 01 00 0E 04 04 00 66 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 AD [09:26: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 1D 08 01 00 0E 04 04 00 66 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 [09:26:55]wFMCommunicate OK [09:26:55]SAM_PROTO_GetFieldsCounters done [09:26:55]requested_item shift.num is exist - process it [09:26:55]requested_item shift.opened is exist - process it [09:26:55]req_shift_opened [09:26:55]FM_GetShiftState [09:26:55]SAM_PROTO_GetShiftState [09:26:55]wFMCommunicate request_size=4 [09:26:55]MH_SAM_APDU [09:26:55]CAPDU: 80 13 01 00 [09:26:55]Write to MH i2c: E2 08 00 30 0D 80 13 01 00 00 00 00 00 BA [09:26:55]Write i2c OK [09:26:55]MH_I2C_Read... [09:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:55]Read from MH i2c: E2 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 0E 00 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 0E 00 30 0D 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 40 [09:26:55]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:26:55]wFMCommunicate OK [09:26:55]SAM_PROTO_GetShiftState done [09:26:55]FM_GetShiftState done [09:26:55]req_shift_opened done [09:26:55]requested_item shift.open_date is exist - process it [09:26:55]req_shift_open_date [09:26:55]req_shift_open_date done [09:26:55]produce_requested_data done [09:26:55]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67613,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:26:55]process_action_free print_text [09:26:55]json_value_free [09:26:55]json_value_free done [09:26:55]process_json_proto returns [09:26:55]Send response to host [09:26:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67613,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:26:55]free response buf [09:26:55]execute_script done [09:26:55]execute_script returns [09:26:55]free content buf [09:26:55]Sock 9.Close socket [09:26:55]Sock 9.Thread stoped [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:52]OFD Sender: No OFD packet to send [09:27:57]OFD Sender: No OFD packet to send [09:28:02]OFD Sender: No OFD packet to send [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]OFD Sender: No OFD packet to send [09:28:47]OFD Sender: No OFD packet to send [09:28:52]OFD Sender: No OFD packet to send [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:53]accept exits with 7 [09:29:53]New connection [09:29:53]New thread 3067538788 created [09:29:53]Thread 3067395428 joined [09:29:53]Waiting for new connection... [09:29:53] Sock 7.Parse request [09:29:53]Sock 7.Check first char [09:29:53]Sock 7.First char is OK [09:29:53]request: POST /json_proto HTTP/1.0 [09:29:53]Method: POST [09:29:53]URL: /json_proto [09:29:53]Method is POST - this is cgi request [09:29:53]url: /json_proto [09:29:53]query_string will be loaded in cgi processing [09:29:53]execute_cgi json_proto POST (null) [09:29:53]execute_cgi path=json_proto method=POST [09:29:53]POST find Content-Length [09:29:53]Host: 172.17.41.195:8080 [09:29:53]Content-Length: 1179 [09:29:53]Content-Type: application/json [09:29:53] [09:29:53]POST finish read [09:29:53]Found Content-Length = 1179 [09:29:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507723\u000A17.05.2024 09:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:29:53]execute_script... [09:29:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507723\u000A17.05.2024 09:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:29:53]POST & json_proto [09:29:53]process_json_proto [09:29:53]json parsed OK: [09:29:53]protocol is kg_v1.0 [09:29:53]action value=print_text [09:29:53]process_action print_text [09:29:53]cmd_print_text [09:29:53]ExternCall_PrintAddStr [09:29:53]wPrintStart [09:29:53]Write to MH i2c: 01 00 00 31 0D 3E [09:29:53]Write i2c OK [09:29:53]MH_I2C_Read... [09:29:53]Read from MH i2c: 01 [09:29:53]MH_I2C_Read... [09:29:53]Read from MH i2c: 01 07 00 [09:29:53]MH_I2C_Read... [09:29:53]Read from MH i2c: 01 07 00 31 0D 00 00 00 00 00 FF 0F 53 [09:29:53]RasterBufferAndPrint [09:29:53]line *****ТОВАРНЫЙ ЧЕК***** [09:29:53]line АЗС-91 [09:29:53]line Партнер нефть [09:29:53]line 02508201610067 [09:29:53]line Кассир : Адишов И. [09:29:53]line Счет N : (1)507723 [09:29:53]line 17.05.2024 09:12 [09:29:53]line ПРОДАЖА [09:29:53]line ТРК (МРК, ГНК): 21 [09:29:53]line Вид ГСМ : 2710194210 [09:29:53]line ДТ-К-5 [09:29:53]line 15.000 x 74.70 [09:29:53]line ИТОГ: 1120.50 [09:29:53]line Тип оплаты: Талоны: Топливная Карта [09:29:53]line 02750 [09:29:53]line ______________________ [09:29:53]line (подпись) [09:29:53]written 0, free lines is 4095 [09:29:53]Write to MH i2c: 01 00 00 45 0D 52 [09:29:53]Write i2c OK [09:29:53]MH_I2C_Read... [09:29:53]Read from MH i2c: 01 [09:29:53]MH_I2C_Read... [09:29:53]Read from MH i2c: 01 07 00 [09:29:53]MH_I2C_Read... [09:29:53]Read from MH i2c: 01 07 00 45 0D 00 00 00 00 00 0C 0E 73 [09:29:53]RasterBufferAndPrint [09:29:53]line [09:29:53]line [09:29:53]line [09:29:53]line [09:29:53]line [09:29:53]written 0, free lines is 3597 [09:29:53]MH_Cut [09:29:53]Write to MH i2c: D1 01 00 4C 0D 01 2B [09:29:53]Write i2c OK [09:29:53]MH_I2C_Read... [09:29:53]Read from MH i2c: D1 [09:29:53]MH_I2C_Read... [09:29:53]Read from MH i2c: D1 01 00 [09:29:53]MH_I2C_Read... [09:29:53]Read from MH i2c: D1 01 00 4C 0D 00 2A [09:29:53]Write to MH i2c: 01 00 00 4D 0D 5A [09:29:53]Write i2c OK [09:29:53]MH_I2C_Read... [09:29:54]*** Cut start [09:29:54]*** Purtial cut [09:29:54]*** Stage 1: CUTSNS_PIN = 1 [09:29:54]Read from MH i2c: 01 [09:29:54]MH_I2C_Read... [09:29:54]Read from MH i2c: 01 07 00 [09:29:54]MH_I2C_Read... [09:29:54]*** Stop cut motor [09:29:54]*** Cut end [09:29:54]Read from MH i2c: 01 07 00 4D 0D 00 00 00 00 00 FF 0F 6F [09:29:54]process_action print_text done [09:29:54]requested_data is exist [09:29:54]produce_requested_data [09:29:54]requested_item fm.sn is exist - process it [09:29:54]wFMCommunicate request_size=4 [09:29:54]MH_SAM_APDU [09:29:54]CAPDU: 80 11 00 00 [09:29:54]Write to MH i2c: E2 08 00 4E 0D 80 11 00 00 00 00 00 00 D5 [09:29:54]Write i2c OK [09:29:54]MH_I2C_Read... [09:29:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:54]Read from MH i2c: E2 [09:29:54]MH_I2C_Read... [09:29:54]Read from MH i2c: E2 17 00 [09:29:54]MH_I2C_Read... [09:29:54]Read from MH i2c: E2 17 00 4E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2B [09:29: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:29:54]wFMCommunicate OK [09:29:54]requested_item fd.num is exist - process it [09:29:54]SAM_PROTO_GetFieldsCounters [09:29:54]wFMCommunicate request_size=4 [09:29:54]MH_SAM_APDU [09:29:54]CAPDU: 80 13 00 00 [09:29:54]Write to MH i2c: E2 08 00 4F 0D 80 13 00 00 00 00 00 00 D8 [09:29:54]Write i2c OK [09:29:54]MH_I2C_Read... [09:29:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:54]Read from MH i2c: E2 [09:29:54]MH_I2C_Read... [09:29:54]Read from MH i2c: E2 62 00 [09:29:54]MH_I2C_Read... [09:29:54]Read from MH i2c: E2 62 00 4F 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 1D 08 01 00 0E 04 04 00 66 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 CD [09:29: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 1D 08 01 00 0E 04 04 00 66 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 [09:29:54]wFMCommunicate OK [09:29:54]SAM_PROTO_GetFieldsCounters done [09:29:54]requested_item shift.num is exist - process it [09:29:54]requested_item shift.opened is exist - process it [09:29:54]req_shift_opened [09:29:54]FM_GetShiftState [09:29:54]SAM_PROTO_GetShiftState [09:29:54]wFMCommunicate request_size=4 [09:29:54]MH_SAM_APDU [09:29:54]CAPDU: 80 13 01 00 [09:29:54]Write to MH i2c: E2 08 00 50 0D 80 13 01 00 00 00 00 00 DA [09:29:54]Write i2c OK [09:29:54]MH_I2C_Read... [09:29:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:54]Read from MH i2c: E2 [09:29:54]MH_I2C_Read... [09:29:54]Read from MH i2c: E2 0E 00 [09:29:54]MH_I2C_Read... [09:29:54]Read from MH i2c: E2 0E 00 50 0D 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 60 [09:29:54]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:29:54]wFMCommunicate OK [09:29:54]SAM_PROTO_GetShiftState done [09:29:54]FM_GetShiftState done [09:29:54]req_shift_opened done [09:29:54]requested_item shift.open_date is exist - process it [09:29:54]req_shift_open_date [09:29:54]req_shift_open_date done [09:29:54]produce_requested_data done [09:29:54]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67613,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:29:54]process_action_free print_text [09:29:54]json_value_free [09:29:54]json_value_free done [09:29:54]process_json_proto returns [09:29:54]Send response to host [09:29:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67613,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:29:54]free response buf [09:29:54]execute_script done [09:29:54]execute_script returns [09:29:54]free content buf [09:29:54]Sock 7.Close socket [09:29:54]Sock 7.Thread stoped [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:41]accept exits with 9 [09:31:41]New connection [09:31:41]New thread 3067395428 created [09:31:41]Thread 3067538788 joined [09:31:41]Waiting for new connection... [09:31:41] Sock 9.Parse request [09:31:41]Sock 9.Check first char [09:31:41]Sock 9.First char is OK [09:31:41]request: POST /json_proto HTTP/1.0 [09:31:41]Method: POST [09:31:41]URL: /json_proto [09:31:41]Method is POST - this is cgi request [09:31:41]url: /json_proto [09:31:41]query_string will be loaded in cgi processing [09:31:41]execute_cgi json_proto POST (null) [09:31:41]execute_cgi path=json_proto method=POST [09:31:41]POST find Content-Length [09:31:41]Host: 172.17.41.195:8080 [09:31:41]Content-Length: 1182 [09:31:41]Content-Type: application/json [09:31:41] [09:31:41]POST finish read [09:31:41]Found Content-Length = 1182 [09:31: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507724\u000A17.05.2024 09:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 14.980 x 66.80\u000A\u0418\u0422\u041E\u0413: 1000.66\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:41]execute_script... [09:31: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507724\u000A17.05.2024 09:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 14.980 x 66.80\u000A\u0418\u0422\u041E\u0413: 1000.66\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:41]POST & json_proto [09:31:41]process_json_proto [09:31:41]json parsed OK: [09:31:41]protocol is kg_v1.0 [09:31:41]action value=print_text [09:31:41]process_action print_text [09:31:41]cmd_print_text [09:31:41]ExternCall_PrintAddStr [09:31:41]wPrintStart [09:31:41]Write to MH i2c: 01 00 00 51 0D 5E [09:31:41]Write i2c OK [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: 01 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: 01 07 00 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: 01 07 00 51 0D 00 00 00 00 00 FF 0F 73 [09:31:41]RasterBufferAndPrint [09:31:41]line *****ТОВАРНЫЙ ЧЕК***** [09:31:41]line АЗС-91 [09:31:41]line Партнер нефть [09:31:41]line 02508201610067 [09:31:41]line Кассир : Адишов И. [09:31:41]line Счет N : (1)507724 [09:31:41]line 17.05.2024 09:14 [09:31:41]line ПРОДАЖА [09:31:41]line ТРК (МРК, ГНК): 33 [09:31:41]line Вид ГСМ : 2710124130 [09:31:41]line Аи-92-К-5 [09:31:41]line 14.980 x 66.80 [09:31:41]line ИТОГ: 1000.66 [09:31:41]line Тип оплаты: Талоны: Топливная Карта [09:31:41]line 02750 [09:31:41]line ______________________ [09:31:41]line (подпись) [09:31:41]written 0, free lines is 4095 [09:31:41]Write to MH i2c: 01 00 00 65 0D 72 [09:31:41]Write i2c OK [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: 01 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: 01 07 00 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: 01 07 00 65 0D 00 00 00 00 00 0F 0E 96 [09:31:41]RasterBufferAndPrint [09:31:41]line [09:31:41]line [09:31:41]line [09:31:41]line [09:31:41]line [09:31:41]written 0, free lines is 3600 [09:31:41]MH_Cut [09:31:41]Write to MH i2c: D1 01 00 6C 0D 01 4B [09:31:41]Write i2c OK [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: D1 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: D1 01 00 [09:31:41]MH_I2C_Read... [09:31:41]Read from MH i2c: D1 01 00 6C 0D 00 4A [09:31:41]Write to MH i2c: 01 00 00 6D 0D 7A [09:31:41]Write i2c OK [09:31:41]MH_I2C_Read... [09:31:42]*** Cut start [09:31:42]*** Purtial cut [09:31:42]*** CUTSNS_PIN = 0 [09:31:42]*** Stage 1: CUTSNS_PIN = 1 [09:31:42]OFD Sender: No OFD packet to send [09:31:44]Read from MH i2c: 01 [09:31:44]MH_I2C_Read... [09:31:44]*** Stop cut motor [09:31:44]*** Cut end [09:31:44]Read from MH i2c: 01 07 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: 01 07 00 6D 0D 00 00 00 00 00 FF 0F 8F [09:31:44]process_action print_text done [09:31:44]requested_data is exist [09:31:44]produce_requested_data [09:31:44]requested_item fm.sn is exist - process it [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 11 00 00 [09:31:44]Write to MH i2c: E2 08 00 6E 0D 80 11 00 00 00 00 00 00 F5 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 17 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 17 00 6E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4B [09: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 [09:31:44]wFMCommunicate OK [09:31:44]requested_item fd.num is exist - process it [09:31:44]SAM_PROTO_GetFieldsCounters [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 13 00 00 [09:31:44]Write to MH i2c: E2 08 00 6F 0D 80 13 00 00 00 00 00 00 F8 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 62 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 62 00 6F 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 1D 08 01 00 0E 04 04 00 66 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 ED [09: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 1D 08 01 00 0E 04 04 00 66 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 [09:31:44]wFMCommunicate OK [09:31:44]SAM_PROTO_GetFieldsCounters done [09:31:44]requested_item shift.num is exist - process it [09:31:44]requested_item shift.opened is exist - process it [09:31:44]req_shift_opened [09:31:44]FM_GetShiftState [09:31:44]SAM_PROTO_GetShiftState [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 13 01 00 [09:31:44]Write to MH i2c: E2 08 00 70 0D 80 13 01 00 00 00 00 00 FA [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 0E 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 0E 00 70 0D 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 80 [09:31:44]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:31:44]wFMCommunicate OK [09:31:44]SAM_PROTO_GetShiftState done [09:31:44]FM_GetShiftState done [09:31:44]req_shift_opened done [09:31:44]requested_item shift.open_date is exist - process it [09:31:44]req_shift_open_date [09:31:44]req_shift_open_date done [09:31:44]produce_requested_data done [09:31:44]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67613,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:31:44]process_action_free print_text [09:31:44]json_value_free [09:31:44]json_value_free done [09:31:44]process_json_proto returns [09:31:44]Send response to host [09:31:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67613,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:31:44]free response buf [09:31:44]execute_script done [09:31:44]execute_script returns [09:31:44]free content buf [09:31:44]Sock 9.Close socket [09:31:44]Sock 9.Thread stoped [09:31:47]OFD Sender: No OFD packet to send [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:17]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:04]accept exits with 7 [09:33:04]New connection [09:33:04]New thread 3067538788 created [09:33:04]Thread 3067395428 joined [09:33:04]Waiting for new connection... [09:33:04] Sock 7.Parse request [09:33:04]Sock 7.Check first char [09:33:04]Sock 7.First char is OK [09:33:04]request: POST /json_proto HTTP/1.0 [09:33:04]Method: POST [09:33:04]URL: /json_proto [09:33:04]Method is POST - this is cgi request [09:33:04]url: /json_proto [09:33:04]query_string will be loaded in cgi processing [09:33:04]execute_cgi json_proto POST (null) [09:33:04]execute_cgi path=json_proto method=POST [09:33:04]POST find Content-Length [09:33:04]Host: 172.17.41.195:8080 [09:33:04]Content-Length: 678 [09:33:04]Content-Type: application/json [09:33:04] [09:33:04]POST finish read [09:33:04]Found Content-Length = 678 [09:33:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507725", "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" : 13.480, "sum" : 900.46, "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:33:04]execute_script... [09:33: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)507725", "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" : 13.480, "sum" : 900.46, "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:33:04]POST & json_proto [09:33:04]process_json_proto [09:33:04]json parsed OK: [09:33:04]protocol is kg_v1.0 [09:33:04]action value=close_receipt [09:33:04]process_action close_receipt [09:33:04]cmd_close_receipt [09:33:04]MH_GetDate [09:33:04]Write to MH i2c: F0 00 00 71 0D 6D [09:33:04]Write i2c OK [09:33:04]MH_I2C_Read... [09:33:04]Read from MH i2c: F0 [09:33:04]MH_I2C_Read... [09:33:04]Read from MH i2c: F0 09 00 [09:33:04]MH_I2C_Read... [09:33:04]Read from MH i2c: F0 09 00 71 0D 00 53 24 47 66 FC 21 6F 64 8A [09:33:04]GetLastDocTimeStamp 1715937882 [09:33:04]current date 1715938387 [09:33:04]FM_GetShiftState [09:33:04]SAM_PROTO_GetShiftState [09:33:04]wFMCommunicate request_size=4 [09:33:04]MH_SAM_APDU [09:33:04]CAPDU: 80 13 01 00 [09:33:04]Write to MH i2c: E2 08 00 72 0D 80 13 01 00 00 00 00 00 FC [09:33:04]Write i2c OK [09:33:04]MH_I2C_Read... [09:33:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:04]Read from MH i2c: E2 [09:33:04]MH_I2C_Read... [09:33:04]Read from MH i2c: E2 0E 00 [09:33:04]MH_I2C_Read... [09:33:04]Read from MH i2c: E2 0E 00 72 0D 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 82 [09:33:04]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:33:04]wFMCommunicate OK [09:33:04]SAM_PROTO_GetShiftState done [09:33:04]FM_GetShiftState done [09:33:04]opened in 1715905068 [09:33:04]opened+sec_in_day 1715991468 [09:33:04]quantity*price = 90046 [09:33:04]sum+1 = 90047 [09:33:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 23 17.05.2024 09:33 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67614 ФПД: 129506241649137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T093307&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67614&fm=129506241649137&tin=02508201610067®Number=0000000000091845&sum=90000 [09:33:05]StoreToDocumentArchive [09:33:05]shift 358 fd 67614 [09:33:05]save to /storage/0358/doc_00067614 [09:33:05]save last doc name /storage/0358/doc_00067614 to /storage/kkm_last_doc_name [09:33:05]save OK [09:33:05]Clear old archive folders... [09:33:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:05]tlvbuf is 01641FE0 [09:33:05]SAM_PROTO_ClearQueue [09:33:05]wFMCommunicate request_size=4 [09:33:05]MH_SAM_APDU [09:33:05]CAPDU: 80 09 00 00 [09:33:05]Write to MH i2c: E2 08 00 7F 0D 80 09 00 00 00 00 00 00 FE [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 [09:33:05]MH_I2C_Read... [09:33:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:05]Read from MH i2c: E2 03 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 03 00 7F 0D 00 90 00 00 [09:33:05]RAPDU: 90 00 [09:33:05]wFMCommunicate OK [09:33:05]SAM_PROTO_ClearQueue done [09:33:05]KKMCreateOFDPacket [09:33:05]OFDProtocolAddRootSTLVToBuf [09:33:05]FM_MakeSignedData [09:33:05]FM_MakeSignedData [09:33:05]SAM_PROTO_SignData [09:33:05]wFMCommunicate request_size=4 [09:33:05]MH_SAM_APDU [09:33:05]CAPDU: 80 0D 01 02 [09:33:05]Write to MH i2c: E2 08 00 80 0D 80 0D 01 02 00 00 00 00 06 [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:05]Read from MH i2c: E2 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 03 00 [09:33:05]MH_I2C_Read... [09:33:05]Read from MH i2c: E2 03 00 80 0D 00 90 00 01 [09:33:05]RAPDU: 90 00 [09:33:05]wFMCommunicate OK [09:33:05]wFMCommunicate request_size=255 [09:33:05]MH_SAM_APDU [09:33: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 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 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 17 00 00 00 F4 03 04 00 53 24 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 75 [09:33:05]Write to MH i2c: E2 02 01 81 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 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 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 17 00 00 00 F4 03 04 00 53 24 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 75 00 00 FE [09:33:05]Write i2c OK [09:33:05]MH_I2C_Read... [09:33:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:06]Read from MH i2c: E2 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: E2 03 00 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: E2 03 00 81 0D 00 90 00 02 [09:33:06]RAPDU: 90 00 [09:33:06]wFMCommunicate OK [09:33:06]wFMCommunicate request_size=10 [09:33:06]MH_SAM_APDU [09:33:06]CAPDU: 80 0D 02 02 05 C9 05 87 99 F1 [09:33:06]Write to MH i2c: E2 0D 00 82 0D 80 0D 02 02 05 00 C9 05 87 99 F1 00 00 F2 [09:33:06]Write i2c OK [09:33:06]MH_I2C_Read... [09:33:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:06]Read from MH i2c: E2 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: E2 03 00 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: E2 03 00 82 0D 00 90 00 03 [09:33:06]RAPDU: 90 00 [09:33:06]wFMCommunicate OK [09:33:06]wFMCommunicate request_size=4 [09:33:06]MH_SAM_APDU [09:33:06]CAPDU: 80 0D 03 02 [09:33:06]Write to MH i2c: E2 08 00 83 0D 80 0D 03 02 00 00 00 00 0B [09:33:06]Write i2c OK [09:33:06]MH_I2C_Read... [09:33:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:06]Read from MH i2c: E2 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: E2 0B 00 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: E2 0B 00 83 0D 00 A6 63 D8 6D 7A 4E A8 4F 90 00 19 [09:33:06]RAPDU: A6 63 D8 6D 7A 4E A8 4F 90 00 [09:33:06]wFMCommunicate OK [09:33:06]SAM_PROTO_SignData done [09:33:06]FM_MakeSignedData done [09:33:06]CreateOFDProtocolMessage [09:33:06]wFMCommunicate request_size=4 [09:33:06]MH_SAM_APDU [09:33:06]CAPDU: 80 11 00 00 [09:33:06]Write to MH i2c: E2 08 00 84 0D 80 11 00 00 00 00 00 00 0B [09:33:06]Write i2c OK [09:33:06]MH_I2C_Read... [09:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:06]Read from MH i2c: E2 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: E2 17 00 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: E2 17 00 84 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 61 [09:33:06]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:06]wFMCommunicate OK [09:33:06]CreateOFDProtocolMessage done [09:33:06]OFDSenderStorePacket 67614 [09:33:06]StoreOFDPacket docnum=67614 [09:33: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 E4 9D 07 01 5E 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 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 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 17 00 00 00 F4 03 04 00 53 24 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 75 C9 05 87 99 F1 A6 63 D8 6D 7A 4E A8 4F [09:33:06]CheckFolder [09:33:06]dirname=/storage/ofd_packets [09:33:06]CheckFolder done [09:33:06]ProducePacketName [09:33:06]name=ofd_packets/00067614 [09:33:06]NVStorageSaveData ofd_packets/00067614 [09:33:06]File name is /storage/ofd_packets/00067614 [09:33:06]Write 301 bytes [09:33:06]NVStorageSaveData done [09:33:06]OFDSenderStorePacket done [09:33:06]KKMCreateOFDPacket done [09:33:06]NVStorageSaveData kkm_last_timestamp [09:33:06]File name is /storage/kkm_last_timestamp [09:33:06]Write 4 bytes [09:33:06]NVStorageSaveData done [09:33:06]ExternCall_PrintAddStr [09:33:06]wPrintStart [09:33:06]Write to MH i2c: 01 00 00 85 0D 92 [09:33:06]Write i2c OK [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: 01 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: 01 07 00 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: 01 07 00 85 0D 00 00 00 00 00 FF 0F A7 [09:33:06]RasterBufferAndPrint [09:33:06]line Счет N : (1)507725 [09:33:06]line ИНН: 02508201610067 [09:33:06]line Контрольно-Кассовый Чек [09:33:06]line ПРОДАЖА [09:33:06]line ТРК (МРК, ГНК) : 43 [09:33:06]line Товар: 2710124130 [09:33:06]line Аи-92-К-5 [09:33:06]line 13.480 * 66.80 [09:33:06]line = 900.46 [09:33:06]line НДС 12% НСП 1% [09:33:06]line > о реализуемом товаре [09:33:06]line ОКРУГЛЕНИЕ: -0.46 [09:33:06]line ИТОГО: 900.00 [09:33:06]line Внесено: 900.00 [09:33:06]line СДАЧА: 0.00 [09:33:06]line НСП 1% : 7.97 [09:33:06]line НДС 12% : 95.62 [09:33:06]line Наличными: 900.00 [09:33:06]line Безнал.: 0.00 [09:33:06]line Место: АЗС № 91 "Партнер Нефть" [09:33:06]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:33:06]line СНО: Общий режим [09:33:06]line Чек 23 17.05.2024 09:33 [09:33:06]line Смена: 358 ФФД: 1.0 [09:33:06]line ЗНМ: 0300000119 [09:33:06]line РНМ: 0000000000091845 [09:33:06]line Версия ККМ: 001 [09:33:06]line ФМ: 0000000000871829 [09:33:06]line ФД: 67614 [09:33:06]line ФПД: 129506241649137 [09:33:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T093307&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67614&fm=129506241649137&tin=02508201610067®Number=0000000000091845&sum=90000 [09:33:06]OFD Sender: Processing packet 67614 [packets to send 35, broken 34] [09:33:06]ProducePacketName [09:33:06]name=ofd_packets/00067614 [09:33:06]OFD Sender: To server: pG, [09:33:06]CommunicateWithHost lk.salyk.kg:30040 [09:33:06]ConnectInit lk.salyk.kg [09:33:06]written 0, free lines is 4095 [09:33:06]Connected sock=10 [09:33: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 0F 01 00 00 E4 9D 07 01 5E 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 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 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 17 00 00 00 F4 03 04 00 53 24 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 75 C9 05 87 99 F1 A6 63 D8 6D 7A 4E A8 4F [09:33: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 34 AF 47 00 20 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 1E 08 01 00 F4 03 04 00 2B CC 46 66 B6 04 01 00 00 AF 24 7C 48 91 98 DB 17 [09:33:06]CommunicateWithHost err = 0 [09:33:06]CheckOFDResponse [09:33:06]1017 (14) - 77093643461234 [09:33:06]1041 (16) - 0000000000871829 [09:33:06]1040 (4) - 67614 [09:33:06]1012 (4) - 17.05.2024 03:16 [09:33:06]1206 (1) - 0 [09:33:06]OFD Sender: Remove packet 67614 [09:33:06]ProducePacketName [09:33:06]name=ofd_packets/00067614 [09:33:06]NVStorageDeleteData [09:33:06]Write to MH i2c: 01 00 00 AF 0D BC [09:33:06]Write i2c OK [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: 01 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: 01 07 00 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: 01 07 00 AF 0D 00 00 00 00 00 C6 0C 95 [09:33:06]RasterBufferAndPrint [09:33:06]line [09:33:06]line [09:33:06]line [09:33:06]line [09:33:06]line [09:33:06]written 0, free lines is 3275 [09:33:06]MH_Cut [09:33:06]Write to MH i2c: D1 01 00 B6 0D 01 95 [09:33:06]Write i2c OK [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: D1 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: D1 01 00 [09:33:06]MH_I2C_Read... [09:33:06]Read from MH i2c: D1 01 00 B6 0D 00 94 [09:33:06]Write to MH i2c: 01 00 00 B7 0D C4 [09:33:06]Write i2c OK [09:33:06]MH_I2C_Read... [09:33:07]OFD Sender: No OFD packet to send [09:33:07]*** Cut start [09:33:07]*** Purtial cut [09:33:07]*** Stage 1: CUTSNS_PIN = 1 [09:33:08]Read from MH i2c: 01 [09:33:08]MH_I2C_Read... [09:33:08]*** Stop cut motor [09:33:08]*** Cut end [09:33:08]Read from MH i2c: 01 07 00 [09:33:08]MH_I2C_Read... [09:33:08]Read from MH i2c: 01 07 00 B7 0D 00 00 00 00 00 FF 0F D9 [09:33:08]process_action close_receipt done [09:33:08]requested_data is exist [09:33:08]produce_requested_data [09:33:08]requested_item fm.sn is exist - process it [09:33:08]wFMCommunicate request_size=4 [09:33:08]MH_SAM_APDU [09:33:08]CAPDU: 80 11 00 00 [09:33:08]Write to MH i2c: E2 08 00 B8 0D 80 11 00 00 00 00 00 00 3F [09:33:08]Write i2c OK [09:33:08]MH_I2C_Read... [09:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:08]Read from MH i2c: E2 [09:33:08]MH_I2C_Read... [09:33:08]Read from MH i2c: E2 17 00 [09:33:08]MH_I2C_Read... [09:33:08]Read from MH i2c: E2 17 00 B8 0D 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:33: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:33:08]wFMCommunicate OK [09:33:08]requested_item fd.num is exist - process it [09:33:08]SAM_PROTO_GetFieldsCounters [09:33:08]wFMCommunicate request_size=4 [09:33:08]MH_SAM_APDU [09:33:08]CAPDU: 80 13 00 00 [09:33:08]Write to MH i2c: E2 08 00 B9 0D 80 13 00 00 00 00 00 00 42 [09:33:08]Write i2c OK [09:33:08]MH_I2C_Read... [09:33:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:08]Read from MH i2c: E2 [09:33:08]MH_I2C_Read... [09:33:08]Read from MH i2c: E2 62 00 [09:33:08]MH_I2C_Read... [09:33:08]Read from MH i2c: E2 62 00 B9 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 1E 08 01 00 0E 04 04 00 66 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 3B [09:33: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 1E 08 01 00 0E 04 04 00 66 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 [09:33:08]wFMCommunicate OK [09:33:08]SAM_PROTO_GetFieldsCounters done [09:33:08]requested_item shift.num is exist - process it [09:33:08]requested_item shift.opened is exist - process it [09:33:08]req_shift_opened [09:33:08]FM_GetShiftState [09:33:08]SAM_PROTO_GetShiftState [09:33:08]wFMCommunicate request_size=4 [09:33:08]MH_SAM_APDU [09:33:08]CAPDU: 80 13 01 00 [09:33:08]Write to MH i2c: E2 08 00 BA 0D 80 13 01 00 00 00 00 00 44 [09:33:08]Write i2c OK [09:33:08]MH_I2C_Read... [09:33:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:08]Read from MH i2c: E2 [09:33:08]MH_I2C_Read... [09:33:08]Read from MH i2c: E2 0E 00 [09:33:08]MH_I2C_Read... [09:33:08]Read from MH i2c: E2 0E 00 BA 0D 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CA [09:33:08]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:33:08]wFMCommunicate OK [09:33:08]SAM_PROTO_GetShiftState done [09:33:08]FM_GetShiftState done [09:33:08]req_shift_opened done [09:33:08]requested_item shift.open_date is exist - process it [09:33:08]req_shift_open_date [09:33:08]req_shift_open_date done [09:33:08]produce_requested_data done [09:33:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67614,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:33:08]process_action_free close_receipt [09:33:08]json_value_free [09:33:08]json_value_free done [09:33:08]process_json_proto returns [09:33:08]Send response to host [09:33:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67614,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:33:08]free response buf [09:33:08]execute_script done [09:33:08]execute_script returns [09:33:08]free content buf [09:33:08]Sock 7.Close socket [09:33:08]Sock 7.Thread stoped [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:37]OFD Sender: No OFD packet to send [09:34:42]accept exits with 9 [09:34:42]New connection [09:34:42]New thread 3067395428 created [09:34:42]Thread 3067538788 joined [09:34:42]Waiting for new connection... [09:34:42] Sock 9.Parse request [09:34:42]Sock 9.Check first char [09:34:42]Sock 9.First char is OK [09:34:42]request: POST /json_proto HTTP/1.0 [09:34:42]Method: POST [09:34:42]URL: /json_proto [09:34:42]Method is POST - this is cgi request [09:34:42]url: /json_proto [09:34:42]query_string will be loaded in cgi processing [09:34:42]execute_cgi json_proto POST (null) [09:34:42]execute_cgi path=json_proto method=POST [09:34:42]POST find Content-Length [09:34:42]Host: 172.17.41.195:8080 [09:34:42]Content-Length: 965 [09:34:42]Content-Type: application/json [09:34:42] [09:34:42]POST finish read [09:34:42]Found Content-Length = 965 [09:34:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507726", "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" : 66.80, "quantity" : 22.460, "sum" : 1500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000AS-92\u000A\u043D\u043E\u043C\u0435\u0440 91\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.46 \u0441\u043E\u043C", "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" ] } } [09:34:42]execute_script... [09:34: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)507726", "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" : 66.80, "quantity" : 22.460, "sum" : 1500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000AS-92\u000A\u043D\u043E\u043C\u0435\u0440 91\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.46 \u0441\u043E\u043C", "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" ] } } [09:34:42]POST & json_proto [09:34:42]process_json_proto [09:34:42]json parsed OK: [09:34:42]protocol is kg_v1.0 [09:34:42]action value=close_receipt [09:34:42]process_action close_receipt [09:34:42]cmd_close_receipt [09:34:42]MH_GetDate [09:34:42]Write to MH i2c: F0 00 00 BB 0D B7 [09:34:42]Write i2c OK [09:34:42]MH_I2C_Read... [09:34:42]Read from MH i2c: F0 [09:34:42]MH_I2C_Read... [09:34:42]Read from MH i2c: F0 09 00 [09:34:42]MH_I2C_Read... [09:34:42]Read from MH i2c: F0 09 00 BB 0D 00 B4 24 47 66 FC 21 6F 64 35 [09:34:42]GetLastDocTimeStamp 1715938387 [09:34:42]current date 1715938484 [09:34:42]FM_GetShiftState [09:34:42]SAM_PROTO_GetShiftState [09:34:42]wFMCommunicate request_size=4 [09:34:42]MH_SAM_APDU [09:34:42]CAPDU: 80 13 01 00 [09:34:42]Write to MH i2c: E2 08 00 BC 0D 80 13 01 00 00 00 00 00 46 [09:34:42]Write i2c OK [09:34:42]MH_I2C_Read... [09:34:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:42]Read from MH i2c: E2 [09:34:42]MH_I2C_Read... [09:34:42]Read from MH i2c: E2 0E 00 [09:34:42]MH_I2C_Read... [09:34:42]Read from MH i2c: E2 0E 00 BC 0D 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CC [09:34:42]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:34:42]wFMCommunicate OK [09:34:42]SAM_PROTO_GetShiftState done [09:34:42]FM_GetShiftState done [09:34:42]opened in 1715905068 [09:34:42]opened+sec_in_day 1715991468 [09:34:42]quantity*price = 150032 [09:34:42]sum+1 = 150034 [09:34:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 24 17.05.2024 09:34 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Дисконтная программа S-92 номер 91 сэкономлено 22.46 сом ФМ: 0000000000871829 ФД: 67615 ФПД: 198980247181579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T093445&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67615&fm=198980247181579&tin=02508201610067®Number=0000000000091845&sum=150000 [09:34:43]StoreToDocumentArchive [09:34:43]shift 358 fd 67615 [09:34:43]save to /storage/0358/doc_00067615 [09:34:43]save last doc name /storage/0358/doc_00067615 to /storage/kkm_last_doc_name [09:34:43]save OK [09:34:43]Clear old archive folders... [09:34:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:34:43]tlvbuf is 015BB7C0 [09:34:43]SAM_PROTO_ClearQueue [09:34:43]wFMCommunicate request_size=4 [09:34:43]MH_SAM_APDU [09:34:43]CAPDU: 80 09 00 00 [09:34:43]Write to MH i2c: E2 08 00 C9 0D 80 09 00 00 00 00 00 00 48 [09:34:43]Write i2c OK [09:34:43]MH_I2C_Read... [09:34:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:43]Read from MH i2c: E2 [09:34:43]MH_I2C_Read... [09:34:43]Read from MH i2c: E2 03 00 [09:34:43]MH_I2C_Read... [09:34:43]Read from MH i2c: E2 03 00 C9 0D 00 90 00 4A [09:34:43]RAPDU: 90 00 [09:34:43]wFMCommunicate OK [09:34:43]SAM_PROTO_ClearQueue done [09:34:43]KKMCreateOFDPacket [09:34:43]OFDProtocolAddRootSTLVToBuf [09:34:43]FM_MakeSignedData [09:34:43]FM_MakeSignedData [09:34:43]SAM_PROTO_SignData [09:34:43]wFMCommunicate request_size=4 [09:34:43]MH_SAM_APDU [09:34:43]CAPDU: 80 0D 01 02 [09:34:43]Write to MH i2c: E2 08 00 CA 0D 80 0D 01 02 00 00 00 00 50 [09:34:43]Write i2c OK [09:34:43]MH_I2C_Read... [09:34:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:43]Read from MH i2c: E2 [09:34:43]MH_I2C_Read... [09:34:43]Read from MH i2c: E2 03 00 [09:34:43]MH_I2C_Read... [09:34:43]Read from MH i2c: E2 03 00 CA 0D 00 90 00 4B [09:34:43]RAPDU: 90 00 [09:34:43]wFMCommunicate OK [09:34:43]wFMCommunicate request_size=255 [09:34:43]MH_SAM_APDU [09:34: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 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 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 3D 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 18 00 00 00 F4 03 04 00 B5 24 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 [09:34:43]Write to MH i2c: E2 02 01 CB 0D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 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 3D 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 18 00 00 00 F4 03 04 00 B5 24 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 00 00 7E [09:34:43]Write i2c OK [09:34:43]MH_I2C_Read... [09:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:43]Read from MH i2c: E2 [09:34:43]MH_I2C_Read... [09:34:43]Read from MH i2c: E2 03 00 [09:34:43]MH_I2C_Read... [09:34:43]Read from MH i2c: E2 03 00 CB 0D 00 90 00 4C [09:34:43]RAPDU: 90 00 [09:34:43]wFMCommunicate OK [09:34:43]wFMCommunicate request_size=11 [09:34:43]MH_SAM_APDU [09:34:43]CAPDU: 80 0D 02 02 06 B4 F8 B2 F3 59 0B [09:34:43]Write to MH i2c: E2 0E 00 CC 0D 80 0D 02 02 06 00 B4 F8 B2 F3 59 0B 00 00 14 [09:34:43]Write i2c OK [09:34:43]MH_I2C_Read... [09:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:43]Read from MH i2c: E2 [09:34:43]MH_I2C_Read... [09:34:43]Read from MH i2c: E2 03 00 [09:34:43]MH_I2C_Read... [09:34:43]Read from MH i2c: E2 03 00 CC 0D 00 90 00 4D [09:34:43]RAPDU: 90 00 [09:34:43]wFMCommunicate OK [09:34:43]wFMCommunicate request_size=4 [09:34:43]MH_SAM_APDU [09:34:43]CAPDU: 80 0D 03 02 [09:34:43]Write to MH i2c: E2 08 00 CD 0D 80 0D 03 02 00 00 00 00 55 [09:34:43]Write i2c OK [09:34:43]MH_I2C_Read... [09:34:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:43]Read from MH i2c: E2 [09:34:43]MH_I2C_Read... [09:34:43]Read from MH i2c: E2 0B 00 [09:34:43]MH_I2C_Read... [09:34:43]Read from MH i2c: E2 0B 00 CD 0D 00 1D FA B3 28 43 07 95 67 90 00 8E [09:34:43]RAPDU: 1D FA B3 28 43 07 95 67 90 00 [09:34:43]wFMCommunicate OK [09:34:43]SAM_PROTO_SignData done [09:34:43]FM_MakeSignedData done [09:34:43]CreateOFDProtocolMessage [09:34:43]wFMCommunicate request_size=4 [09:34:43]MH_SAM_APDU [09:34:43]CAPDU: 80 11 00 00 [09:34:43]Write to MH i2c: E2 08 00 CE 0D 80 11 00 00 00 00 00 00 55 [09:34:43]Write i2c OK [09:34:43]MH_I2C_Read... [09:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:44]Read from MH i2c: E2 [09:34:44]MH_I2C_Read... [09:34:44]Read from MH i2c: E2 17 00 [09:34:44]MH_I2C_Read... [09:34:44]Read from MH i2c: E2 17 00 CE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AB [09: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 [09:34:44]wFMCommunicate OK [09:34:44]CreateOFDProtocolMessage done [09:34:44]OFDSenderStorePacket 67615 [09:34:44]StoreOFDPacket docnum=67615 [09:34: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 E8 5C 08 01 7B 0F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 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 3D 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 18 00 00 00 F4 03 04 00 B5 24 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 B4 F8 B2 F3 59 0B 1D FA B3 28 43 07 95 67 [09:34:44]CheckFolder [09:34:44]dirname=/storage/ofd_packets [09:34:44]CheckFolder done [09:34:44]ProducePacketName [09:34:44]name=ofd_packets/00067615 [09:34:44]NVStorageSaveData ofd_packets/00067615 [09:34:44]File name is /storage/ofd_packets/00067615 [09:34:44]Write 302 bytes [09:34:44]NVStorageSaveData done [09:34:44]OFDSenderStorePacket done [09:34:44]KKMCreateOFDPacket done [09:34:44]NVStorageSaveData kkm_last_timestamp [09:34:44]File name is /storage/kkm_last_timestamp [09:34:44]Write 4 bytes [09:34:44]NVStorageSaveData done [09:34:44]ExternCall_PrintAddStr [09:34:44]wPrintStart [09:34:44]Write to MH i2c: 01 00 00 CF 0D DC [09:34:44]Write i2c OK [09:34:44]MH_I2C_Read... [09:34:44]Read from MH i2c: 01 [09:34:44]MH_I2C_Read... [09:34:44]Read from MH i2c: 01 07 00 [09:34:44]MH_I2C_Read... [09:34:44]Read from MH i2c: 01 07 00 CF 0D 00 00 00 00 00 FF 0F F1 [09:34:44]RasterBufferAndPrint [09:34:44]line Счет N : (1)507726 [09:34:44]line ИНН: 02508201610067 [09:34:44]line Контрольно-Кассовый Чек [09:34:44]line ПРОДАЖА [09:34:44]line ТРК (МРК, ГНК) : 22 [09:34:44]line Товар: 2710124130 [09:34:44]line Super-92-К-5 [09:34:44]line 22.460 * 66.80 [09:34:44]line = 1500.33 [09:34:44]line НДС 12% НСП 1% [09:34:44]line > о реализуемом товаре [09:34:44]line ОКРУГЛЕНИЕ: -0.33 [09:34:44]line ИТОГО: 1500.00 [09:34:44]line Внесено: 1500.00 [09:34:44]line СДАЧА: 0.00 [09:34:44]line НСП 1% : 13.28 [09:34:44]line НДС 12% : 159.33 [09:34:44]line Наличными: 1500.00 [09:34:44]line Безнал.: 0.00 [09:34:44]line Место: АЗС № 91 "Партнер Нефть" [09:34:44]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:34:44]line СНО: Общий режим [09:34:44]line Чек 24 17.05.2024 09:34 [09:34:44]line Смена: 358 ФФД: 1.0 [09:34:44]line ЗНМ: 0300000119 [09:34:44]line РНМ: 0000000000091845 [09:34:44]line Версия ККМ: 001 [09:34:44]line [09:34:44]line Дисконтная программа [09:34:44]line S-92 [09:34:44]line номер 91 [09:34:44]line сэкономлено 22.46 сом [09:34:44]line ФМ: 0000000000871829 [09:34:44]line ФД: 67615 [09:34:44]line ФПД: 198980247181579 [09:34:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T093445&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67615&fm=198980247181579&tin=02508201610067®Number=0000000000091845&sum=150000 [09:34:44]OFD Sender: Processing packet 67615 [packets to send 35, broken 34] [09:34:44]ProducePacketName [09:34:44]name=ofd_packets/00067615 [09:34:44]OFD Sender: To server: pG, [09:34:44]CommunicateWithHost lk.salyk.kg:30040 [09:34:44]ConnectInit lk.salyk.kg [09:34:44]written 0, free lines is 4095 [09:34:44]Connected sock=10 [09:34: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 E8 5C 08 01 7B 0F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 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 3D 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 18 00 00 00 F4 03 04 00 B5 24 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 B4 F8 B2 F3 59 0B 1D FA B3 28 43 07 95 67 [09:34:44]Write to MH i2c: 01 00 00 FE 0D 0B [09:34:44]Write i2c OK [09:34:44]MH_I2C_Read... [09:34:44]Read from MH i2c: 01 [09:34:44]MH_I2C_Read... [09:34:44]Read from MH i2c: 01 07 00 [09:34:44]MH_I2C_Read... [09:34:44]Read from MH i2c: 01 07 00 FE 0D 00 00 00 00 00 70 0C 8E [09:34:44]RasterBufferAndPrint [09:34:44]line [09:34:44]line [09:34:44]line [09:34:44]line [09:34:44]line [09:34:44]written 0, free lines is 3190 [09:34:44]MH_Cut [09:34:44]Write to MH i2c: D1 01 00 05 0E 01 E5 [09:34:44]Write i2c OK [09:34:44]MH_I2C_Read... [09:34:44]Read from MH i2c: D1 [09:34:44]MH_I2C_Read... [09:34:44]Read from MH i2c: D1 01 00 [09:34:44]MH_I2C_Read... [09:34:44]Read from MH i2c: D1 01 00 05 0E 00 E4 [09:34:44]Write to MH i2c: 01 00 00 06 0E 14 [09:34:44]Write i2c OK [09:34:44]MH_I2C_Read... [09:34: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 6F 08 47 00 89 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 1F 08 01 00 F4 03 04 00 8D CC 46 66 B6 04 01 00 00 13 A8 31 97 C6 5B 7D 51 [09:34:44]CommunicateWithHost err = 0 [09:34:44]CheckOFDResponse [09:34:44]1017 (14) - 77093643461234 [09:34:44]1041 (16) - 0000000000871829 [09:34:44]1040 (4) - 67615 [09:34:44]1012 (4) - 17.05.2024 03:18 [09:34:44]1206 (1) - 0 [09:34:44]OFD Sender: Remove packet 67615 [09:34:44]ProducePacketName [09:34:44]name=ofd_packets/00067615 [09:34:44]NVStorageDeleteData [09:34:45]OFD Sender: No OFD packet to send [09:34:45]*** Cut start [09:34:45]*** Purtial cut [09:34:45]*** CUTSNS_PIN = 0 [09:34:46]*** Stage 1: CUTSNS_PIN = 1 [09:34:47]Read from MH i2c: 01 [09:34:47]MH_I2C_Read... [09:34:47]*** Stop cut motor [09:34:47]*** Cut end [09:34:47]Read from MH i2c: 01 07 00 [09:34:47]MH_I2C_Read... [09:34:47]Read from MH i2c: 01 07 00 06 0E 00 00 00 00 00 FF 0F 29 [09:34:47]process_action close_receipt done [09:34:47]requested_data is exist [09:34:47]produce_requested_data [09:34:47]requested_item fm.sn is exist - process it [09:34:47]wFMCommunicate request_size=4 [09:34:47]MH_SAM_APDU [09:34:47]CAPDU: 80 11 00 00 [09:34:47]Write to MH i2c: E2 08 00 07 0E 80 11 00 00 00 00 00 00 8F [09:34:47]Write i2c OK [09:34:47]MH_I2C_Read... [09:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:47]Read from MH i2c: E2 [09:34:47]MH_I2C_Read... [09:34:47]Read from MH i2c: E2 17 00 [09:34:47]MH_I2C_Read... [09:34:47]Read from MH i2c: E2 17 00 07 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E5 [09:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:34:47]wFMCommunicate OK [09:34:47]requested_item fd.num is exist - process it [09:34:47]SAM_PROTO_GetFieldsCounters [09:34:47]wFMCommunicate request_size=4 [09:34:47]MH_SAM_APDU [09:34:47]CAPDU: 80 13 00 00 [09:34:47]Write to MH i2c: E2 08 00 08 0E 80 13 00 00 00 00 00 00 92 [09:34:47]Write i2c OK [09:34:47]MH_I2C_Read... [09:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:47]Read from MH i2c: E2 [09:34:47]MH_I2C_Read... [09:34:47]Read from MH i2c: E2 62 00 [09:34:47]MH_I2C_Read... [09:34:47]Read from MH i2c: E2 62 00 08 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 1F 08 01 00 0E 04 04 00 66 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 8F [09:34: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 1F 08 01 00 0E 04 04 00 66 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 [09:34:47]wFMCommunicate OK [09:34:47]SAM_PROTO_GetFieldsCounters done [09:34:47]requested_item shift.num is exist - process it [09:34:47]requested_item shift.opened is exist - process it [09:34:47]req_shift_opened [09:34:47]FM_GetShiftState [09:34:47]SAM_PROTO_GetShiftState [09:34:47]wFMCommunicate request_size=4 [09:34:47]MH_SAM_APDU [09:34:47]CAPDU: 80 13 01 00 [09:34:47]Write to MH i2c: E2 08 00 09 0E 80 13 01 00 00 00 00 00 94 [09:34:48]Write i2c OK [09:34:48]MH_I2C_Read... [09:34:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:48]Read from MH i2c: E2 [09:34:48]MH_I2C_Read... [09:34:48]Read from MH i2c: E2 0E 00 [09:34:48]MH_I2C_Read... [09:34:48]Read from MH i2c: E2 0E 00 09 0E 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 1A [09:34:48]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:34:48]wFMCommunicate OK [09:34:48]SAM_PROTO_GetShiftState done [09:34:48]FM_GetShiftState done [09:34:48]req_shift_opened done [09:34:48]requested_item shift.open_date is exist - process it [09:34:48]req_shift_open_date [09:34:48]req_shift_open_date done [09:34:48]produce_requested_data done [09:34:48]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67615,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:34:48]process_action_free close_receipt [09:34:48]json_value_free [09:34:48]json_value_free done [09:34:48]process_json_proto returns [09:34:48]Send response to host [09:34:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67615,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:34:48]free response buf [09:34:48]execute_script done [09:34:48]execute_script returns [09:34:48]free content buf [09:34:48]Sock 9.Close socket [09:34:48]Sock 9.Thread stoped [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:15]accept exits with 7 [09:35:15]New connection [09:35:15]New thread 3067538788 created [09:35:15]Thread 3067395428 joined [09:35:15]Waiting for new connection... [09:35:15] Sock 7.Parse request [09:35:15]Sock 7.Check first char [09:35:15]Sock 7.First char is OK [09:35:15]request: POST /json_proto HTTP/1.0 [09:35:15]Method: POST [09:35:15]URL: /json_proto [09:35:15]Method is POST - this is cgi request [09:35:15]url: /json_proto [09:35:15]query_string will be loaded in cgi processing [09:35:15]execute_cgi json_proto POST (null) [09:35:15]execute_cgi path=json_proto method=POST [09:35:15]POST find Content-Length [09:35:15]Host: 172.17.41.195:8080 [09:35:15]Content-Length: 678 [09:35:15]Content-Type: application/json [09:35:15] [09:35:15]POST finish read [09:35:15]Found Content-Length = 678 [09:35:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 11.980, "sum" : 800.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:15]execute_script... [09:35: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)507727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 11.980, "sum" : 800.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:15]POST & json_proto [09:35:15]process_json_proto [09:35:15]json parsed OK: [09:35:15]protocol is kg_v1.0 [09:35:15]action value=close_receipt [09:35:15]process_action close_receipt [09:35:15]cmd_close_receipt [09:35:15]MH_GetDate [09:35:15]Write to MH i2c: F0 00 00 0A 0E 07 [09:35:15]Write i2c OK [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: F0 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: F0 09 00 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: F0 09 00 0A 0E 00 D6 24 47 66 FC 21 6F 64 A7 [09:35:15]GetLastDocTimeStamp 1715938485 [09:35:15]current date 1715938518 [09:35:15]FM_GetShiftState [09:35:15]SAM_PROTO_GetShiftState [09:35:15]wFMCommunicate request_size=4 [09:35:15]MH_SAM_APDU [09:35:15]CAPDU: 80 13 01 00 [09:35:15]Write to MH i2c: E2 08 00 0B 0E 80 13 01 00 00 00 00 00 96 [09:35:15]Write i2c OK [09:35:15]MH_I2C_Read... [09:35:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:15]Read from MH i2c: E2 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: E2 0E 00 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: E2 0E 00 0B 0E 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 1C [09:35:15]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:35:15]wFMCommunicate OK [09:35:15]SAM_PROTO_GetShiftState done [09:35:15]FM_GetShiftState done [09:35:15]opened in 1715905068 [09:35:15]opened+sec_in_day 1715991468 [09:35:15]quantity*price = 80026 [09:35:15]sum+1 = 80027 [09:35: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 СНО: Общий режим Чек 25 17.05.2024 09:35 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67616 ФПД: 145666153139692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T093518&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67616&fm=145666153139692&tin=02508201610067®Number=0000000000091845&sum=80000 [09:35:16]StoreToDocumentArchive [09:35:16]shift 358 fd 67616 [09:35:16]save to /storage/0358/doc_00067616 [09:35:16]save last doc name /storage/0358/doc_00067616 to /storage/kkm_last_doc_name [09:35:16]save OK [09:35:16]Clear old archive folders... [09:35:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:35:16]tlvbuf is 0163F540 [09:35:16]SAM_PROTO_ClearQueue [09:35:16]wFMCommunicate request_size=4 [09:35:16]MH_SAM_APDU [09:35:16]CAPDU: 80 09 00 00 [09:35:16]Write to MH i2c: E2 08 00 18 0E 80 09 00 00 00 00 00 00 98 [09:35:16]Write i2c OK [09:35:16]MH_I2C_Read... [09:35:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:16]Read from MH i2c: E2 [09:35:16]MH_I2C_Read... [09:35:16]Read from MH i2c: E2 03 00 [09:35:16]MH_I2C_Read... [09:35:16]Read from MH i2c: E2 03 00 18 0E 00 90 00 9A [09:35:16]RAPDU: 90 00 [09:35:16]wFMCommunicate OK [09:35:16]SAM_PROTO_ClearQueue done [09:35:16]KKMCreateOFDPacket [09:35:16]OFDProtocolAddRootSTLVToBuf [09:35:16]FM_MakeSignedData [09:35:16]FM_MakeSignedData [09:35:16]SAM_PROTO_SignData [09:35:16]wFMCommunicate request_size=4 [09:35:16]MH_SAM_APDU [09:35:16]CAPDU: 80 0D 01 02 [09:35:16]Write to MH i2c: E2 08 00 19 0E 80 0D 01 02 00 00 00 00 A0 [09:35:16]Write i2c OK [09:35:16]MH_I2C_Read... [09:35:16]Read from MH i2c: E2 [09:35:16]MH_I2C_Read... [09:35:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:16]Read from MH i2c: E2 03 00 [09:35:16]MH_I2C_Read... [09:35:16]Read from MH i2c: E2 03 00 19 0E 00 90 00 9B [09:35:16]RAPDU: 90 00 [09:35:16]wFMCommunicate OK [09:35:16]wFMCommunicate request_size=255 [09:35:16]MH_SAM_APDU [09:35: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 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 19 00 00 00 F4 03 04 00 D6 24 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 84 [09:35:16]Write to MH i2c: E2 02 01 1A 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 19 00 00 00 F4 03 04 00 D6 24 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 84 00 00 0D [09:35:16]Write i2c OK [09:35:16]MH_I2C_Read... [09:35:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:17]Read from MH i2c: E2 [09:35:17]MH_I2C_Read... [09:35:17]Read from MH i2c: E2 03 00 [09:35:17]MH_I2C_Read... [09:35:17]Read from MH i2c: E2 03 00 1A 0E 00 90 00 9C [09:35:17]RAPDU: 90 00 [09:35:17]wFMCommunicate OK [09:35:17]wFMCommunicate request_size=10 [09:35:17]MH_SAM_APDU [09:35:17]CAPDU: 80 0D 02 02 05 7B 8B 50 4D EC [09:35:17]Write to MH i2c: E2 0D 00 1B 0E 80 0D 02 02 05 00 7B 8B 50 4D EC 00 00 3C [09:35:17]Write i2c OK [09:35:17]MH_I2C_Read... [09:35:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:17]Read from MH i2c: E2 [09:35:17]MH_I2C_Read... [09:35:17]Read from MH i2c: E2 03 00 [09:35:17]MH_I2C_Read... [09:35:17]Read from MH i2c: E2 03 00 1B 0E 00 90 00 9D [09:35:17]RAPDU: 90 00 [09:35:17]wFMCommunicate OK [09:35:17]wFMCommunicate request_size=4 [09:35:17]MH_SAM_APDU [09:35:17]CAPDU: 80 0D 03 02 [09:35:17]Write to MH i2c: E2 08 00 1C 0E 80 0D 03 02 00 00 00 00 A5 [09:35:17]Write i2c OK [09:35:17]MH_I2C_Read... [09:35:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:17]Read from MH i2c: E2 [09:35:17]MH_I2C_Read... [09:35:17]Read from MH i2c: E2 0B 00 [09:35:17]MH_I2C_Read... [09:35:17]Read from MH i2c: E2 0B 00 1C 0E 00 8C 8E 22 30 F0 96 B2 9A 90 00 E4 [09:35:17]RAPDU: 8C 8E 22 30 F0 96 B2 9A 90 00 [09:35:17]wFMCommunicate OK [09:35:17]SAM_PROTO_SignData done [09:35:17]FM_MakeSignedData done [09:35:17]CreateOFDProtocolMessage [09:35:17]wFMCommunicate request_size=4 [09:35:17]MH_SAM_APDU [09:35:17]CAPDU: 80 11 00 00 [09:35:17]Write to MH i2c: E2 08 00 1D 0E 80 11 00 00 00 00 00 00 A5 [09:35:17]Write i2c OK [09:35:17]MH_I2C_Read... [09:35:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:17]Read from MH i2c: E2 [09:35:17]MH_I2C_Read... [09:35:17]Read from MH i2c: E2 17 00 [09:35:17]MH_I2C_Read... [09:35:17]Read from MH i2c: E2 17 00 1D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FB [09:35: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:35:17]wFMCommunicate OK [09:35:17]CreateOFDProtocolMessage done [09:35:17]OFDSenderStorePacket 67616 [09:35:17]StoreOFDPacket docnum=67616 [09:35: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 44 80 07 01 28 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 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 19 00 00 00 F4 03 04 00 D6 24 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 84 7B 8B 50 4D EC 8C 8E 22 30 F0 96 B2 9A [09:35:17]CheckFolder [09:35:17]dirname=/storage/ofd_packets [09:35:17]CheckFolder done [09:35:17]ProducePacketName [09:35:17]name=ofd_packets/00067616 [09:35:17]NVStorageSaveData ofd_packets/00067616 [09:35:17]File name is /storage/ofd_packets/00067616 [09:35:17]Write 301 bytes [09:35:17]NVStorageSaveData done [09:35:17]OFDSenderStorePacket done [09:35:17]KKMCreateOFDPacket done [09:35:17]NVStorageSaveData kkm_last_timestamp [09:35:17]File name is /storage/kkm_last_timestamp [09:35:17]Write 4 bytes [09:35:17]NVStorageSaveData done [09:35:17]ExternCall_PrintAddStr [09:35:17]wPrintStart [09:35:17]Write to MH i2c: 01 00 00 1E 0E 2C [09:35:17]Write i2c OK [09:35:17]MH_I2C_Read... [09:35:17]Read from MH i2c: 01 [09:35:17]MH_I2C_Read... [09:35:17]Read from MH i2c: 01 07 00 [09:35:17]MH_I2C_Read... [09:35:17]Read from MH i2c: 01 07 00 1E 0E 00 00 00 00 00 FF 0F 41 [09:35:17]RasterBufferAndPrint [09:35:17]line Счет N : (1)507727 [09:35:17]line ИНН: 02508201610067 [09:35:17]line Контрольно-Кассовый Чек [09:35:17]line ПРОДАЖА [09:35:17]line ТРК (МРК, ГНК) : 33 [09:35:17]line Товар: 2710124130 [09:35:17]line Аи-92-К-5 [09:35:17]line 11.980 * 66.80 [09:35:17]line = 800.26 [09:35:17]line НДС 12% НСП 1% [09:35:17]line > о реализуемом товаре [09:35:17]line ОКРУГЛЕНИЕ: -0.26 [09:35:17]line ИТОГО: 800.00 [09:35:17]line Внесено: 800.00 [09:35:17]line СДАЧА: 0.00 [09:35:17]line НСП 1% : 7.08 [09:35:17]line НДС 12% : 84.98 [09:35:17]line Наличными: 800.00 [09:35:17]line Безнал.: 0.00 [09:35:17]line Место: АЗС № 91 "Партнер Нефть" [09:35:17]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:35:17]line СНО: Общий режим [09:35:17]line Чек 25 17.05.2024 09:35 [09:35:17]line Смена: 358 ФФД: 1.0 [09:35:17]line ЗНМ: 0300000119 [09:35:17]line РНМ: 0000000000091845 [09:35:17]line Версия ККМ: 001 [09:35:17]line ФМ: 0000000000871829 [09:35:17]line ФД: 67616 [09:35:17]line ФПД: 145666153139692 [09:35:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T093518&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67616&fm=145666153139692&tin=02508201610067®Number=0000000000091845&sum=80000 [09:35:17]OFD Sender: Processing packet 67616 [packets to send 35, broken 34] [09:35:17]ProducePacketName [09:35:17]name=ofd_packets/00067616 [09:35:17]OFD Sender: To server: pG, [09:35:17]CommunicateWithHost lk.salyk.kg:30040 [09:35:17]ConnectInit lk.salyk.kg [09:35:17]written 0, free lines is 4095 [09:35:17]Connected sock=10 [09:35: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 44 80 07 01 28 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 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 19 00 00 00 F4 03 04 00 D6 24 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 84 7B 8B 50 4D EC 8C 8E 22 30 F0 96 B2 9A [09:35: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 B0 ED 47 00 F7 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 20 08 01 00 F4 03 04 00 AE CC 46 66 B6 04 01 00 00 FB 39 69 25 92 0D 04 65 [09:35:18]CommunicateWithHost err = 0 [09:35:18]CheckOFDResponse [09:35:18]1017 (14) - 77093643461234 [09:35:18]1041 (16) - 0000000000871829 [09:35:18]1040 (4) - 67616 [09:35:18]1012 (4) - 17.05.2024 03:19 [09:35:18]1206 (1) - 0 [09:35:18]OFD Sender: Remove packet 67616 [09:35:18]ProducePacketName [09:35:18]name=ofd_packets/00067616 [09:35:18]NVStorageDeleteData [09:35:18]Write to MH i2c: 01 00 00 48 0E 56 [09:35:18]Write i2c OK [09:35:18]MH_I2C_Read... [09:35:18]Read from MH i2c: 01 [09:35:18]MH_I2C_Read... [09:35:18]Read from MH i2c: 01 07 00 [09:35:18]MH_I2C_Read... [09:35:18]Read from MH i2c: 01 07 00 48 0E 00 00 00 00 00 D6 0C 3F [09:35:18]RasterBufferAndPrint [09:35:18]line [09:35:18]line [09:35:18]line [09:35:18]line [09:35:18]line [09:35:18]written 0, free lines is 3292 [09:35:18]MH_Cut [09:35:18]Write to MH i2c: D1 01 00 4F 0E 01 2F [09:35:18]Write i2c OK [09:35:18]MH_I2C_Read... [09:35:18]Read from MH i2c: D1 [09:35:18]MH_I2C_Read... [09:35:18]Read from MH i2c: D1 01 00 [09:35:18]MH_I2C_Read... [09:35:18]Read from MH i2c: D1 01 00 4F 0E 00 2E [09:35:18]Write to MH i2c: 01 00 00 50 0E 5E [09:35:18]Write i2c OK [09:35:18]MH_I2C_Read... [09:35:18]OFD Sender: No OFD packet to send [09:35:18]*** Cut start [09:35:18]*** Purtial cut [09:35:18]*** Stage 1: CUTSNS_PIN = 1 [09:35:19]Read from MH i2c: 01 [09:35:19]MH_I2C_Read... [09:35:19]*** Stop cut motor [09:35:19]*** Cut end [09:35:19]Read from MH i2c: 01 07 00 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: 01 07 00 50 0E 00 00 00 00 00 FF 0F 73 [09:35:19]process_action close_receipt done [09:35:19]requested_data is exist [09:35:19]produce_requested_data [09:35:19]requested_item fm.sn is exist - process it [09:35:19]wFMCommunicate request_size=4 [09:35:19]MH_SAM_APDU [09:35:19]CAPDU: 80 11 00 00 [09:35:19]Write to MH i2c: E2 08 00 51 0E 80 11 00 00 00 00 00 00 D9 [09:35:19]Write i2c OK [09:35:19]MH_I2C_Read... [09:35:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:19]Read from MH i2c: E2 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E2 17 00 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E2 17 00 51 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2F [09:35: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:35:19]wFMCommunicate OK [09:35:19]requested_item fd.num is exist - process it [09:35:19]SAM_PROTO_GetFieldsCounters [09:35:19]wFMCommunicate request_size=4 [09:35:19]MH_SAM_APDU [09:35:19]CAPDU: 80 13 00 00 [09:35:19]Write to MH i2c: E2 08 00 52 0E 80 13 00 00 00 00 00 00 DC [09:35:19]Write i2c OK [09:35:19]MH_I2C_Read... [09:35:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:19]Read from MH i2c: E2 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E2 62 00 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E2 62 00 52 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 20 08 01 00 0E 04 04 00 66 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 DD [09:35: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 20 08 01 00 0E 04 04 00 66 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 [09:35:19]wFMCommunicate OK [09:35:19]SAM_PROTO_GetFieldsCounters done [09:35:19]requested_item shift.num is exist - process it [09:35:19]requested_item shift.opened is exist - process it [09:35:19]req_shift_opened [09:35:19]FM_GetShiftState [09:35:19]SAM_PROTO_GetShiftState [09:35:19]wFMCommunicate request_size=4 [09:35:19]MH_SAM_APDU [09:35:19]CAPDU: 80 13 01 00 [09:35:19]Write to MH i2c: E2 08 00 53 0E 80 13 01 00 00 00 00 00 DE [09:35:19]Write i2c OK [09:35:19]MH_I2C_Read... [09:35:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:19]Read from MH i2c: E2 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E2 0E 00 [09:35:19]MH_I2C_Read... [09:35:19]Read from MH i2c: E2 0E 00 53 0E 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 64 [09:35:19]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:35:19]wFMCommunicate OK [09:35:19]SAM_PROTO_GetShiftState done [09:35:19]FM_GetShiftState done [09:35:19]req_shift_opened done [09:35:19]requested_item shift.open_date is exist - process it [09:35:19]req_shift_open_date [09:35:19]req_shift_open_date done [09:35:19]produce_requested_data done [09:35:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67616,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:35:19]process_action_free close_receipt [09:35:19]json_value_free [09:35:19]json_value_free done [09:35:19]process_json_proto returns [09:35:19]Send response to host [09:35:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67616,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:35:19]free response buf [09:35:19]execute_script done [09:35:19]execute_script returns [09:35:19]free content buf [09:35:19]Sock 7.Close socket [09:35:19]Sock 7.Thread stoped [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:43]accept exits with 9 [09:39:43]New connection [09:39:43]New thread 3067395428 created [09:39:43]Thread 3067538788 joined [09:39:43]Waiting for new connection... [09:39:43] Sock 9.Parse request [09:39:43]Sock 9.Check first char [09:39:43]Sock 9.First char is OK [09:39:43]request: POST /json_proto HTTP/1.0 [09:39:43]Method: POST [09:39:43]URL: /json_proto [09:39:43]Method is POST - this is cgi request [09:39:43]url: /json_proto [09:39:43]query_string will be loaded in cgi processing [09:39:43]execute_cgi json_proto POST (null) [09:39:43]execute_cgi path=json_proto method=POST [09:39:43]POST find Content-Length [09:39:43]Host: 172.17.41.195:8080 [09:39:43]Content-Length: 682 [09:39:43]Content-Type: application/json [09:39:43] [09:39:43]POST finish read [09:39:43]Found Content-Length = 682 [09:39:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:43]execute_script... [09:39: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)507728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:43]POST & json_proto [09:39:43]process_json_proto [09:39:43]json parsed OK: [09:39:43]protocol is kg_v1.0 [09:39:43]action value=close_receipt [09:39:43]process_action close_receipt [09:39:43]cmd_close_receipt [09:39:43]MH_GetDate [09:39:43]Write to MH i2c: F0 00 00 54 0E 51 [09:39:43]Write i2c OK [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: F0 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: F0 09 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: F0 09 00 54 0E 00 E2 25 47 66 FC 21 6F 64 FE [09:39:43]GetLastDocTimeStamp 1715938518 [09:39:43]current date 1715938786 [09:39:43]FM_GetShiftState [09:39:43]SAM_PROTO_GetShiftState [09:39:43]wFMCommunicate request_size=4 [09:39:43]MH_SAM_APDU [09:39:43]CAPDU: 80 13 01 00 [09:39:43]Write to MH i2c: E2 08 00 55 0E 80 13 01 00 00 00 00 00 E0 [09:39:43]Write i2c OK [09:39:43]MH_I2C_Read... [09:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:43]Read from MH i2c: E2 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 0E 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 0E 00 55 0E 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 66 [09:39:43]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:39:43]wFMCommunicate OK [09:39:43]SAM_PROTO_GetShiftState done [09:39:43]FM_GetShiftState done [09:39:43]opened in 1715905068 [09:39:43]opened+sec_in_day 1715991468 [09:39:43]quantity*price = 100066 [09:39:43]sum+1 = 100067 [09:39:43]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 СНО: Общий режим Чек 26 17.05.2024 09:39 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67617 ФПД: 53650024027540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T093946&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67617&fm=53650024027540&tin=02508201610067®Number=0000000000091845&sum=100000 [09:39:45]StoreToDocumentArchive [09:39:45]shift 358 fd 67617 [09:39:45]save to /storage/0358/doc_00067617 [09:39:45]save last doc name /storage/0358/doc_00067617 to /storage/kkm_last_doc_name [09:39:45]save OK [09:39:45]Clear old archive folders... [09:39:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:45]tlvbuf is 01642010 [09:39:45]SAM_PROTO_ClearQueue [09:39:45]wFMCommunicate request_size=4 [09:39:45]MH_SAM_APDU [09:39:45]CAPDU: 80 09 00 00 [09:39:45]Write to MH i2c: E2 08 00 62 0E 80 09 00 00 00 00 00 00 E2 [09:39:45]Write i2c OK [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 [09:39:45]MH_I2C_Read... [09:39:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:45]Read from MH i2c: E2 03 00 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 03 00 62 0E 00 90 00 E4 [09:39:45]RAPDU: 90 00 [09:39:45]wFMCommunicate OK [09:39:45]SAM_PROTO_ClearQueue done [09:39:45]KKMCreateOFDPacket [09:39:45]OFDProtocolAddRootSTLVToBuf [09:39:45]FM_MakeSignedData [09:39:45]FM_MakeSignedData [09:39:45]SAM_PROTO_SignData [09:39:45]wFMCommunicate request_size=4 [09:39:45]MH_SAM_APDU [09:39:45]CAPDU: 80 0D 01 02 [09:39:45]Write to MH i2c: E2 08 00 63 0E 80 0D 01 02 00 00 00 00 EA [09:39:45]Write i2c OK [09:39:45]MH_I2C_Read... [09:39:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:45]Read from MH i2c: E2 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 03 00 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 03 00 63 0E 00 90 00 E5 [09:39:45]RAPDU: 90 00 [09:39:45]wFMCommunicate OK [09:39:45]wFMCommunicate request_size=255 [09:39:45]MH_SAM_APDU [09:39:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 00 00 00 F4 03 04 00 E2 25 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 30 [09:39:45]Write to MH i2c: E2 02 01 64 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 1A 00 00 00 F4 03 04 00 E2 25 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 30 00 00 52 [09:39:45]Write i2c OK [09:39:45]MH_I2C_Read... [09:39:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:45]Read from MH i2c: E2 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 03 00 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 03 00 64 0E 00 90 00 E6 [09:39:45]RAPDU: 90 00 [09:39:45]wFMCommunicate OK [09:39:45]wFMCommunicate request_size=10 [09:39:45]MH_SAM_APDU [09:39:45]CAPDU: 80 0D 02 02 05 CB 5E 9F D5 94 [09:39:45]Write to MH i2c: E2 0D 00 65 0E 80 0D 02 02 05 00 CB 5E 9F D5 94 00 00 28 [09:39:45]Write i2c OK [09:39:45]MH_I2C_Read... [09:39:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:45]Read from MH i2c: E2 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 03 00 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 03 00 65 0E 00 90 00 E7 [09:39:45]RAPDU: 90 00 [09:39:45]wFMCommunicate OK [09:39:45]wFMCommunicate request_size=4 [09:39:45]MH_SAM_APDU [09:39:45]CAPDU: 80 0D 03 02 [09:39:45]Write to MH i2c: E2 08 00 66 0E 80 0D 03 02 00 00 00 00 EF [09:39:45]Write i2c OK [09:39:45]MH_I2C_Read... [09:39:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:45]Read from MH i2c: E2 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 0B 00 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 0B 00 66 0E 00 71 C3 94 A8 83 BD 88 69 90 00 91 [09:39:45]RAPDU: 71 C3 94 A8 83 BD 88 69 90 00 [09:39:45]wFMCommunicate OK [09:39:45]SAM_PROTO_SignData done [09:39:45]FM_MakeSignedData done [09:39:45]CreateOFDProtocolMessage [09:39:45]wFMCommunicate request_size=4 [09:39:45]MH_SAM_APDU [09:39:45]CAPDU: 80 11 00 00 [09:39:45]Write to MH i2c: E2 08 00 67 0E 80 11 00 00 00 00 00 00 EF [09:39:45]Write i2c OK [09:39:45]MH_I2C_Read... [09:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:45]Read from MH i2c: E2 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 17 00 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 17 00 67 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 45 [09:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:39:45]wFMCommunicate OK [09:39:45]CreateOFDProtocolMessage done [09:39:45]OFDSenderStorePacket 67617 [09:39:45]StoreOFDPacket docnum=67617 [09:39: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 2C C6 07 01 19 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 00 00 00 F4 03 04 00 E2 25 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 30 CB 5E 9F D5 94 71 C3 94 A8 83 BD 88 69 [09:39:45]CheckFolder [09:39:45]dirname=/storage/ofd_packets [09:39:45]CheckFolder done [09:39:45]ProducePacketName [09:39:45]name=ofd_packets/00067617 [09:39:45]NVStorageSaveData ofd_packets/00067617 [09:39:45]File name is /storage/ofd_packets/00067617 [09:39:45]Write 301 bytes [09:39:45]NVStorageSaveData done [09:39:45]OFDSenderStorePacket done [09:39:45]KKMCreateOFDPacket done [09:39:45]NVStorageSaveData kkm_last_timestamp [09:39:45]File name is /storage/kkm_last_timestamp [09:39:45]Write 4 bytes [09:39:45]NVStorageSaveData done [09:39:45]ExternCall_PrintAddStr [09:39:45]wPrintStart [09:39:45]Write to MH i2c: 01 00 00 68 0E 76 [09:39:45]Write i2c OK [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: 01 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: 01 07 00 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: 01 07 00 68 0E 00 00 00 00 00 FF 0F 8B [09:39:45]RasterBufferAndPrint [09:39:45]line Счет N : (1)507728 [09:39:45]line ИНН: 02508201610067 [09:39:45]line Контрольно-Кассовый Чек [09:39:45]line ПРОДАЖА [09:39:45]line ТРК (МРК, ГНК) : 23 [09:39:45]line Товар: 2710124130 [09:39:45]line Аи-92-К-5 [09:39:45]line 14.980 * 66.80 [09:39:45]line = 1000.66 [09:39:45]line НДС 12% НСП 1% [09:39:45]line > о реализуемом товаре [09:39:45]line ОКРУГЛЕНИЕ: -0.66 [09:39:45]line ИТОГО: 1000.00 [09:39:45]line Внесено: 1000.00 [09:39:45]line СДАЧА: 0.00 [09:39:45]line НСП 1% : 8.85 [09:39:45]line НДС 12% : 106.26 [09:39:45]line Наличными: 1000.00 [09:39:45]line Безнал.: 0.00 [09:39:45]line Место: АЗС № 91 "Партнер Нефть" [09:39:45]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:39:45]line СНО: Общий режим [09:39:45]line Чек 26 17.05.2024 09:39 [09:39:45]line Смена: 358 ФФД: 1.0 [09:39:45]line ЗНМ: 0300000119 [09:39:45]line РНМ: 0000000000091845 [09:39:45]line Версия ККМ: 001 [09:39:45]line ФМ: 0000000000871829 [09:39:45]line ФД: 67617 [09:39:45]line ФПД: 53650024027540 [09:39:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T093946&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67617&fm=53650024027540&tin=02508201610067®Number=0000000000091845&sum=100000 [09:39:45]OFD Sender: Processing packet 67617 [packets to send 35, broken 34] [09:39:45]ProducePacketName [09:39:45]name=ofd_packets/00067617 [09:39:45]OFD Sender: To server: pG, [09:39:45]CommunicateWithHost lk.salyk.kg:30040 [09:39:45]ConnectInit lk.salyk.kg [09:39:45]written 0, free lines is 4095 [09:39:46]Connected sock=10 [09:39: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 2C C6 07 01 19 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 00 00 00 F4 03 04 00 E2 25 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 30 CB 5E 9F D5 94 71 C3 94 A8 83 BD 88 69 [09:39:46]Write to MH i2c: 01 00 00 92 0E A0 [09:39:46]Write i2c OK [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: 01 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: 01 07 00 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: 01 07 00 92 0E 00 00 00 00 00 C8 0C 7B [09:39:46]RasterBufferAndPrint [09:39:46]line [09:39:46]line [09:39:46]line [09:39:46]line [09:39:46]line [09:39:46]written 0, free lines is 3277 [09:39:46]MH_Cut [09:39:46]Write to MH i2c: D1 01 00 99 0E 01 79 [09:39:46]Write i2c OK [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: D1 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: D1 01 00 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: D1 01 00 99 0E 00 78 [09:39:46]Write to MH i2c: 01 00 00 9A 0E A8 [09:39:46]Write i2c OK [09:39:46]MH_I2C_Read... [09:39: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 0A FD 47 00 18 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 21 08 01 00 F4 03 04 00 BB CD 46 66 B6 04 01 00 00 CD 80 6E 11 AE FD 3F 16 [09:39:46]CommunicateWithHost err = 0 [09:39:46]CheckOFDResponse [09:39:46]1017 (14) - 77093643461234 [09:39:46]1041 (16) - 0000000000871829 [09:39:46]1040 (4) - 67617 [09:39:46]1012 (4) - 17.05.2024 03:23 [09:39:46]1206 (1) - 0 [09:39:46]OFD Sender: Remove packet 67617 [09:39:46]ProducePacketName [09:39:46]name=ofd_packets/00067617 [09:39:46]NVStorageDeleteData [09:39:46]OFD Sender: No OFD packet to send [09:39:47]*** Cut start [09:39:47]*** Purtial cut [09:39:47]*** CUTSNS_PIN = 0 [09:39:47]*** Stage 1: CUTSNS_PIN = 1 [09:39:49]Read from MH i2c: 01 [09:39:49]MH_I2C_Read... [09:39:49]*** Stop cut motor [09:39:49]*** Cut end [09:39:49]Read from MH i2c: 01 07 00 [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: 01 07 00 9A 0E 00 00 00 00 00 FF 0F BD [09:39:49]process_action close_receipt done [09:39:49]requested_data is exist [09:39:49]produce_requested_data [09:39:49]requested_item fm.sn is exist - process it [09:39:49]wFMCommunicate request_size=4 [09:39:49]MH_SAM_APDU [09:39:49]CAPDU: 80 11 00 00 [09:39:49]Write to MH i2c: E2 08 00 9B 0E 80 11 00 00 00 00 00 00 23 [09:39:49]Write i2c OK [09:39:49]MH_I2C_Read... [09:39:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:49]Read from MH i2c: E2 [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: E2 17 00 [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: E2 17 00 9B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 79 [09:39:49]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:49]wFMCommunicate OK [09:39:49]requested_item fd.num is exist - process it [09:39:49]SAM_PROTO_GetFieldsCounters [09:39:49]wFMCommunicate request_size=4 [09:39:49]MH_SAM_APDU [09:39:49]CAPDU: 80 13 00 00 [09:39:49]Write to MH i2c: E2 08 00 9C 0E 80 13 00 00 00 00 00 00 26 [09:39:49]Write i2c OK [09:39:49]MH_I2C_Read... [09:39:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:49]Read from MH i2c: E2 [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: E2 62 00 [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: E2 62 00 9C 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 21 08 01 00 0E 04 04 00 66 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 2B [09:39: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 21 08 01 00 0E 04 04 00 66 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:39:49]wFMCommunicate OK [09:39:49]SAM_PROTO_GetFieldsCounters done [09:39:49]requested_item shift.num is exist - process it [09:39:49]requested_item shift.opened is exist - process it [09:39:49]req_shift_opened [09:39:49]FM_GetShiftState [09:39:49]SAM_PROTO_GetShiftState [09:39:49]wFMCommunicate request_size=4 [09:39:49]MH_SAM_APDU [09:39:49]CAPDU: 80 13 01 00 [09:39:49]Write to MH i2c: E2 08 00 9D 0E 80 13 01 00 00 00 00 00 28 [09:39:49]Write i2c OK [09:39:49]MH_I2C_Read... [09:39:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:49]Read from MH i2c: E2 [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: E2 0E 00 [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: E2 0E 00 9D 0E 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 AE [09:39:49]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:39:49]wFMCommunicate OK [09:39:49]SAM_PROTO_GetShiftState done [09:39:49]FM_GetShiftState done [09:39:49]req_shift_opened done [09:39:49]requested_item shift.open_date is exist - process it [09:39:49]req_shift_open_date [09:39:49]req_shift_open_date done [09:39:49]produce_requested_data done [09:39:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67617,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:39:49]process_action_free close_receipt [09:39:49]json_value_free [09:39:49]json_value_free done [09:39:49]process_json_proto returns [09:39:49]Send response to host [09:39:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67617,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:39:49]free response buf [09:39:49]execute_script done [09:39:49]execute_script returns [09:39:49]free content buf [09:39:49]Sock 9.Close socket [09:39:49]Sock 9.Thread stoped [09:39:49]accept exits with 7 [09:39:49]New connection [09:39:49]New thread 3067538788 created [09:39:49]Thread 3067395428 joined [09:39:49]Waiting for new connection... [09:39:49] Sock 7.Parse request [09:39:49]Sock 7.Check first char [09:39:49]Sock 7.First char is OK [09:39:49]request: POST /json_proto HTTP/1.0 [09:39:49]Method: POST [09:39:49]URL: /json_proto [09:39:49]Method is POST - this is cgi request [09:39:49]url: /json_proto [09:39:49]query_string will be loaded in cgi processing [09:39:49]execute_cgi json_proto POST (null) [09:39:49]execute_cgi path=json_proto method=POST [09:39:49]POST find Content-Length [09:39:49]Host: 172.17.41.195:8080 [09:39:49]Content-Length: 800 [09:39:49]Content-Type: application/json [09:39:49] [09:39:49]POST finish read [09:39:49]Found Content-Length = 800 [09:39:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 4.500, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:49]execute_script... [09:39: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)507729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 4.500, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:49]POST & json_proto [09:39:49]process_json_proto [09:39:49]json parsed OK: [09:39:49]protocol is kg_v1.0 [09:39:49]action value=close_receipt [09:39:49]process_action close_receipt [09:39:49]cmd_close_receipt [09:39:49]MH_GetDate [09:39:49]Write to MH i2c: F0 00 00 9E 0E 9B [09:39:49]Write i2c OK [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: F0 [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: F0 09 00 [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: F0 09 00 9E 0E 00 E8 25 47 66 FC 21 6F 64 4E [09:39:49]GetLastDocTimeStamp 1715938786 [09:39:49]current date 1715938792 [09:39:49]FM_GetShiftState [09:39:49]SAM_PROTO_GetShiftState [09:39:49]wFMCommunicate request_size=4 [09:39:49]MH_SAM_APDU [09:39:49]CAPDU: 80 13 01 00 [09:39:49]Write to MH i2c: E2 08 00 9F 0E 80 13 01 00 00 00 00 00 2A [09:39:49]Write i2c OK [09:39:49]MH_I2C_Read... [09:39:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:49]Read from MH i2c: E2 [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: E2 0E 00 [09:39:49]MH_I2C_Read... [09:39:49]Read from MH i2c: E2 0E 00 9F 0E 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 B0 [09:39:49]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:39:49]wFMCommunicate OK [09:39:49]SAM_PROTO_GetShiftState done [09:39:49]FM_GetShiftState done [09:39:49]opened in 1715905068 [09:39:49]opened+sec_in_day 1715991468 [09:39:49]quantity*price = 30060 [09:39:49]sum+1 = 30061 [09:39:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.60 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 0.00 Безнал.: 300.60 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 27 17.05.2024 09:39 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67618 ФПД: 146748394493691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T093952&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67618&fm=146748394493691&tin=02508201610067®Number=0000000000091845&sum=30060 [09:39:51]StoreToDocumentArchive [09:39:51]shift 358 fd 67618 [09:39:51]save to /storage/0358/doc_00067618 [09:39:51]save last doc name /storage/0358/doc_00067618 to /storage/kkm_last_doc_name [09:39:51]save OK [09:39:51]Clear old archive folders... [09:39:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:51]tlvbuf is 015FA700 [09:39:51]SAM_PROTO_ClearQueue [09:39:51]wFMCommunicate request_size=4 [09:39:51]MH_SAM_APDU [09:39:51]CAPDU: 80 09 00 00 [09:39:51]Write to MH i2c: E2 08 00 AC 0E 80 09 00 00 00 00 00 00 2C [09:39:51]Write i2c OK [09:39:51]MH_I2C_Read... [09:39:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:51]Read from MH i2c: E2 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 03 00 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 03 00 AC 0E 00 90 00 2E [09:39:51]RAPDU: 90 00 [09:39:51]wFMCommunicate OK [09:39:51]SAM_PROTO_ClearQueue done [09:39:51]KKMCreateOFDPacket [09:39:51]OFDProtocolAddRootSTLVToBuf [09:39:51]FM_MakeSignedData [09:39:51]FM_MakeSignedData [09:39:51]SAM_PROTO_SignData [09:39:51]wFMCommunicate request_size=4 [09:39:51]MH_SAM_APDU [09:39:51]CAPDU: 80 0D 01 02 [09:39:51]Write to MH i2c: E2 08 00 AD 0E 80 0D 01 02 00 00 00 00 34 [09:39:51]Write i2c OK [09:39:51]MH_I2C_Read... [09:39:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:51]Read from MH i2c: E2 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 03 00 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 03 00 AD 0E 00 90 00 2F [09:39:51]RAPDU: 90 00 [09:39:51]wFMCommunicate OK [09:39:51]wFMCommunicate request_size=255 [09:39:51]MH_SAM_APDU [09:39:51]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 1B 00 00 00 F4 03 04 00 E8 25 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 85 [09:39:51]Write to MH i2c: E2 02 01 AE 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 E8 25 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 85 00 00 38 [09:39:51]Write i2c OK [09:39:51]MH_I2C_Read... [09:39:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:51]Read from MH i2c: E2 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 03 00 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 03 00 AE 0E 00 90 00 30 [09:39:51]RAPDU: 90 00 [09:39:51]wFMCommunicate OK [09:39:51]wFMCommunicate request_size=10 [09:39:51]MH_SAM_APDU [09:39:51]CAPDU: 80 0D 02 02 05 77 85 EC D6 FB [09:39:51]Write to MH i2c: E2 0D 00 AF 0E 80 0D 02 02 05 00 77 85 EC D6 FB 00 00 FA [09:39:51]Write i2c OK [09:39:51]MH_I2C_Read... [09:39:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:51]Read from MH i2c: E2 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 03 00 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 03 00 AF 0E 00 90 00 31 [09:39:51]RAPDU: 90 00 [09:39:51]wFMCommunicate OK [09:39:51]wFMCommunicate request_size=4 [09:39:51]MH_SAM_APDU [09:39:51]CAPDU: 80 0D 03 02 [09:39:51]Write to MH i2c: E2 08 00 B0 0E 80 0D 03 02 00 00 00 00 39 [09:39:51]Write i2c OK [09:39:51]MH_I2C_Read... [09:39:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:51]Read from MH i2c: E2 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 0B 00 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 0B 00 B0 0E 00 3E 74 CE D5 48 50 94 B1 90 00 6C [09:39:51]RAPDU: 3E 74 CE D5 48 50 94 B1 90 00 [09:39:51]wFMCommunicate OK [09:39:51]SAM_PROTO_SignData done [09:39:51]FM_MakeSignedData done [09:39:51]CreateOFDProtocolMessage [09:39:51]wFMCommunicate request_size=4 [09:39:51]MH_SAM_APDU [09:39:51]CAPDU: 80 11 00 00 [09:39:51]Write to MH i2c: E2 08 00 B1 0E 80 11 00 00 00 00 00 00 39 [09:39:51]Write i2c OK [09:39:51]MH_I2C_Read... [09:39:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:51]Read from MH i2c: E2 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 17 00 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: E2 17 00 B1 0E 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:39: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:39:51]wFMCommunicate OK [09:39:51]CreateOFDProtocolMessage done [09:39:51]OFDSenderStorePacket 67618 [09:39:51]StoreOFDPacket docnum=67618 [09:39: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 0F 01 00 00 42 97 07 01 B5 95 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 1B 00 00 00 F4 03 04 00 E8 25 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 85 77 85 EC D6 FB 3E 74 CE D5 48 50 94 B1 [09:39:51]CheckFolder [09:39:51]dirname=/storage/ofd_packets [09:39:51]CheckFolder done [09:39:51]ProducePacketName [09:39:51]name=ofd_packets/00067618 [09:39:51]NVStorageSaveData ofd_packets/00067618 [09:39:51]File name is /storage/ofd_packets/00067618 [09:39:51]Write 301 bytes [09:39:51]NVStorageSaveData done [09:39:51]OFDSenderStorePacket done [09:39:51]KKMCreateOFDPacket done [09:39:51]NVStorageSaveData kkm_last_timestamp [09:39:51]File name is /storage/kkm_last_timestamp [09:39:51]Write 4 bytes [09:39:51]NVStorageSaveData done [09:39:51]ExternCall_PrintAddStr [09:39:51]wPrintStart [09:39:51]Write to MH i2c: 01 00 00 B2 0E C0 [09:39:51]Write i2c OK [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: 01 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: 01 07 00 [09:39:51]MH_I2C_Read... [09:39:51]Read from MH i2c: 01 07 00 B2 0E 00 00 00 00 00 FF 0F D5 [09:39:51]RasterBufferAndPrint [09:39:51]line Счет N : (1)507729 [09:39:51]line ИНН: 02508201610067 [09:39:51]line Контрольно-Кассовый Чек [09:39:51]line ПРОДАЖА [09:39:51]line ТРК (МРК, ГНК) : 43 [09:39:51]line Товар: 2710124130 [09:39:51]line Аи-92-К-5 [09:39:51]line 4.500 * 66.80 [09:39:51]line = 300.60 [09:39:51]line НДС 12% НСП 1% [09:39:51]line > о реализуемом товаре [09:39:51]line ИТОГО: 300.60 [09:39:51]line НСП 1% : 2.66 [09:39:51]line НДС 12% : 31.92 [09:39:51]line Наличными: 0.00 [09:39:51]line Безнал.: 300.60 [09:39:51]line Место: АЗС № 91 "Партнер Нефть" [09:39:51]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:39:51]line СНО: Общий режим [09:39:51]line Чек 27 17.05.2024 09:39 [09:39:51]line Смена: 358 ФФД: 1.0 [09:39:51]line ЗНМ: 0300000119 [09:39:51]line РНМ: 0000000000091845 [09:39:51]line Версия ККМ: 001 [09:39:51]line Платежная система: O! деньги [09:39:51]line ФМ: 0000000000871829 [09:39:51]line ФД: 67618 [09:39:51]line ФПД: 146748394493691 [09:39:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T093952&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67618&fm=146748394493691&tin=02508201610067®Number=0000000000091845&sum=30060 [09:39:51]OFD Sender: Processing packet 67618 [packets to send 35, broken 34] [09:39:51]ProducePacketName [09:39:51]name=ofd_packets/00067618 [09:39:51]OFD Sender: To server: pG, [09:39:51]CommunicateWithHost lk.salyk.kg:30040 [09:39:51]ConnectInit lk.salyk.kg [09:39:51]written 0, free lines is 4095 [09:39:51]Connected sock=10 [09:39: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 42 97 07 01 B5 95 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 1B 00 00 00 F4 03 04 00 E8 25 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 85 77 85 EC D6 FB 3E 74 CE D5 48 50 94 B1 [09:39: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 BB 9B 47 00 7A F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 22 08 01 00 F4 03 04 00 C0 CD 46 66 B6 04 01 00 00 59 2C 60 4A 09 05 1A BA [09:39:52]CommunicateWithHost err = 0 [09:39:52]CheckOFDResponse [09:39:52]1017 (14) - 77093643461234 [09:39:52]1041 (16) - 0000000000871829 [09:39:52]1040 (4) - 67618 [09:39:52]1012 (4) - 17.05.2024 03:23 [09:39:52]1206 (1) - 0 [09:39:52]OFD Sender: Remove packet 67618 [09:39:52]ProducePacketName [09:39:52]name=ofd_packets/00067618 [09:39:52]NVStorageDeleteData [09:39:52]Write to MH i2c: 01 00 00 DB 0E E9 [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 DB 0E 00 00 00 00 00 E9 0C E5 [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 3319 [09:39:52]MH_Cut [09:39:52]Write to MH i2c: D1 01 00 E2 0E 01 C2 [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 E2 0E 00 C1 [09:39:52]Write to MH i2c: 01 00 00 E3 0E F1 [09:39:52]Write i2c OK [09:39:52]MH_I2C_Read... [09:39:52]OFD Sender: No OFD packet to send [09:39:53]*** Cut start [09:39:53]*** Purtial cut [09:39:53]*** Stage 1: CUTSNS_PIN = 1 [09:39:53]Read from MH i2c: 01 [09:39:53]*** Stop cut motor [09:39:53]MH_I2C_Read... [09:39:53]*** Cut end [09:39:53]Read from MH i2c: 01 07 00 [09:39:53]MH_I2C_Read... [09:39:53]Read from MH i2c: 01 07 00 E3 0E 00 00 00 00 00 FF 0F 06 [09:39:53]process_action close_receipt 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 E4 0E 80 11 00 00 00 00 00 00 6C [09:39:53]Write i2c OK [09:39:53]MH_I2C_Read... [09:39:53]Read from MH i2c: *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:53]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 E4 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C2 [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 E5 0E 80 13 00 00 00 00 00 00 6F [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 E5 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 22 08 01 00 0E 04 04 00 66 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: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 22 08 01 00 0E 04 04 00 66 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: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 E6 0E 80 13 01 00 00 00 00 00 71 [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 E6 0E 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F7 [09:39:53]RAPDU: 09 00 01 2C A2 46 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":67618,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:39:53]process_action_free close_receipt [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":67618,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [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 7.Close socket [09:39:53]Sock 7.Thread stoped [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]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:54]recv_with_timeout no data received [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:27]OFD Sender: No OFD packet to send [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44:38]accept exits with 9 [09:44:38]New connection [09:44:38]New thread 3067395428 created [09:44:38]Thread 3067538788 joined [09:44:38]Waiting for new connection... [09:44:38] Sock 9.Parse request [09:44:38]Sock 9.Check first char [09:44:38]Sock 9.First char is OK [09:44:38]request: POST /json_proto HTTP/1.0 [09:44:38]Method: POST [09:44:38]URL: /json_proto [09:44:38]Method is POST - this is cgi request [09:44:38]url: /json_proto [09:44:38]query_string will be loaded in cgi processing [09:44:38]execute_cgi json_proto POST (null) [09:44:38]execute_cgi path=json_proto method=POST [09:44:38]POST find Content-Length [09:44:38]Host: 172.17.41.195:8080 [09:44:38]Content-Length: 1143 [09:44:38]Content-Type: application/json [09:44:38] [09:44:38]POST finish read [09:44:38]Found Content-Length = 1143 [09:44: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507730\u000A17.05.2024 09:27\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" ] } } [09:44:38]execute_script... [09:44: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507730\u000A17.05.2024 09:27\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" ] } } [09:44:38]POST & json_proto [09:44:38]process_json_proto [09:44:38]json parsed OK: [09:44:38]protocol is kg_v1.0 [09:44:38]action value=print_text [09:44:38]process_action print_text [09:44:38]cmd_print_text [09:44:38]ExternCall_PrintAddStr [09:44:38]wPrintStart [09:44:38]Write to MH i2c: 01 00 00 E7 0E F5 [09:44:38]Write i2c OK [09:44:38]MH_I2C_Read... [09:44:38]Read from MH i2c: 01 [09:44:38]MH_I2C_Read... [09:44:38]Read from MH i2c: 01 07 00 [09:44:38]MH_I2C_Read... [09:44:38]Read from MH i2c: 01 07 00 E7 0E 00 00 00 00 00 FF 0F 0A [09:44:38]RasterBufferAndPrint [09:44:38]line *****ТОВАРНЫЙ ЧЕК***** [09:44:38]line АЗС-91 [09:44:38]line Партнер нефть [09:44:38]line 02508201610067 [09:44:38]line Кассир : Адишов И. [09:44:38]line Счет N : (1)507730 [09:44:38]line 17.05.2024 09:27 [09:44:38]line ПРОДАЖА [09:44:38]line ТРК (МРК, ГНК): 33 [09:44:38]line Вид ГСМ : 2710124130 [09:44:38]line Аи-92-К-5 [09:44:38]line 10.000 x 66.80 [09:44:38]line ИТОГ: 668.00 [09:44:38]line Тип оплаты: Талоны: ТК ГПНА Online [09:44:38]line 30039368 [09:44:38]line ______________________ [09:44:38]line (подпись) [09:44:38]written 0, free lines is 4095 [09:44:38]Write to MH i2c: 01 00 00 FB 0E 09 [09:44:38]Write i2c OK [09:44:38]MH_I2C_Read... [09:44:38]Read from MH i2c: 01 [09:44:38]MH_I2C_Read... [09:44:38]Read from MH i2c: 01 07 00 [09:44:38]MH_I2C_Read... [09:44:38]Read from MH i2c: 01 07 00 FB 0E 00 00 00 00 00 10 0E 2E [09:44:38]RasterBufferAndPrint [09:44:38]line [09:44:38]line [09:44:38]line [09:44:38]line [09:44:38]line [09:44:38]written 0, free lines is 3602 [09:44:38]MH_Cut [09:44:38]Write to MH i2c: D1 01 00 02 0F 01 E3 [09:44:38]Write i2c OK [09:44:38]MH_I2C_Read... [09:44:38]Read from MH i2c: D1 [09:44:38]MH_I2C_Read... [09:44:38]Read from MH i2c: D1 01 00 [09:44:38]MH_I2C_Read... [09:44:38]Read from MH i2c: D1 01 00 02 0F 00 E2 [09:44:38]Write to MH i2c: 01 00 00 03 0F 12 [09:44:38]Write i2c OK [09:44:38]MH_I2C_Read... [09:44:39]*** Cut start [09:44:39]*** Purtial cut [09:44:39]*** CUTSNS_PIN = 0 [09:44:39]*** Stage 1: CUTSNS_PIN = 1 [09:44:41]Read from MH i2c: 01 [09:44:41]MH_I2C_Read... [09:44:41]*** Stop cut motor [09:44:41]*** Cut end [09:44:41]Read from MH i2c: 01 07 00 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: 01 07 00 03 0F 00 00 00 00 00 FF 0F 27 [09:44:41]process_action print_text done [09:44:41]requested_data is exist [09:44:41]produce_requested_data [09:44:41]requested_item fm.sn is exist - process it [09:44:41]wFMCommunicate request_size=4 [09:44:41]MH_SAM_APDU [09:44:41]CAPDU: 80 11 00 00 [09:44:41]Write to MH i2c: E2 08 00 04 0F 80 11 00 00 00 00 00 00 8D [09:44:41]Write i2c OK [09:44:41]MH_I2C_Read... [09:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:41]Read from MH i2c: E2 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: E2 17 00 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: E2 17 00 04 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E3 [09:44: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:44:41]wFMCommunicate OK [09:44:41]requested_item fd.num is exist - process it [09:44:41]SAM_PROTO_GetFieldsCounters [09:44:41]wFMCommunicate request_size=4 [09:44:41]MH_SAM_APDU [09:44:41]CAPDU: 80 13 00 00 [09:44:41]Write to MH i2c: E2 08 00 05 0F 80 13 00 00 00 00 00 00 90 [09:44:41]Write i2c OK [09:44:41]MH_I2C_Read... [09:44:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:41]Read from MH i2c: E2 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: E2 62 00 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: E2 62 00 05 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 22 08 01 00 0E 04 04 00 66 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 99 [09:44: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 22 08 01 00 0E 04 04 00 66 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:44:41]wFMCommunicate OK [09:44:41]SAM_PROTO_GetFieldsCounters done [09:44:41]requested_item shift.num is exist - process it [09:44:41]requested_item shift.opened is exist - process it [09:44:41]req_shift_opened [09:44:41]FM_GetShiftState [09:44:41]SAM_PROTO_GetShiftState [09:44:41]wFMCommunicate request_size=4 [09:44:41]MH_SAM_APDU [09:44:41]CAPDU: 80 13 01 00 [09:44:41]Write to MH i2c: E2 08 00 06 0F 80 13 01 00 00 00 00 00 92 [09:44:41]Write i2c OK [09:44:41]MH_I2C_Read... [09:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:41]Read from MH i2c: E2 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: E2 0E 00 [09:44:41]MH_I2C_Read... [09:44:41]Read from MH i2c: E2 0E 00 06 0F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 18 [09:44:41]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:44:41]wFMCommunicate OK [09:44:41]SAM_PROTO_GetShiftState done [09:44:41]FM_GetShiftState done [09:44:41]req_shift_opened done [09:44:41]requested_item shift.open_date is exist - process it [09:44:41]req_shift_open_date [09:44:41]req_shift_open_date done [09:44:41]produce_requested_data done [09:44:41]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67618,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:44:41]process_action_free print_text [09:44:41]json_value_free [09:44:41]json_value_free done [09:44:41]process_json_proto returns [09:44:41]Send response to host [09:44:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67618,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:44:41]free response buf [09:44:41]execute_script done [09:44:41]execute_script returns [09:44:41]free content buf [09:44:41]Sock 9.Close socket [09:44:41]Sock 9.Thread stoped [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:55]accept exits with 7 [09:46:55]New connection [09:46:55]New thread 3067538788 created [09:46:55]Thread 3067395428 joined [09:46:55]Waiting for new connection... [09:46:55] Sock 7.Parse request [09:46:55]Sock 7.Check first char [09:46:55]Sock 7.First char is OK [09:46:55]request: POST /json_proto HTTP/1.0 [09:46:55]Method: POST [09:46:55]URL: /json_proto [09:46:55]Method is POST - this is cgi request [09:46:55]url: /json_proto [09:46:55]query_string will be loaded in cgi processing [09:46:55]execute_cgi json_proto POST (null) [09:46:55]execute_cgi path=json_proto method=POST [09:46:55]POST find Content-Length [09:46:55]Host: 172.17.41.195:8080 [09:46:55]Content-Length: 1179 [09:46:55]Content-Type: application/json [09:46:55] [09:46:55]POST finish read [09:46:55]Found Content-Length = 1179 [09:46: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507731\u000A17.05.2024 09:29\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 24.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1792.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:55]execute_script... [09:46: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507731\u000A17.05.2024 09:29\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 24.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1792.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:55]POST & json_proto [09:46:55]process_json_proto [09:46:55]json parsed OK: [09:46:55]protocol is kg_v1.0 [09:46:55]action value=print_text [09:46:55]process_action print_text [09:46:55]cmd_print_text [09:46:55]ExternCall_PrintAddStr [09:46:55]wPrintStart [09:46:55]Write to MH i2c: 01 00 00 07 0F 16 [09:46:55]Write i2c OK [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: 01 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: 01 07 00 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: 01 07 00 07 0F 00 00 00 00 00 FF 0F 2B [09:46:55]RasterBufferAndPrint [09:46:55]line *****ТОВАРНЫЙ ЧЕК***** [09:46:55]line АЗС-91 [09:46:55]line Партнер нефть [09:46:55]line 02508201610067 [09:46:55]line Кассир : Адишов И. [09:46:55]line Счет N : (1)507731 [09:46:55]line 17.05.2024 09:29 [09:46:55]line ПРОДАЖА [09:46:55]line ТРК (МРК, ГНК): 21 [09:46:55]line Вид ГСМ : 2710194210 [09:46:55]line ДТ-К-5 [09:46:55]line 24.000 x 74.70 [09:46:55]line ИТОГ: 1792.80 [09:46:55]line Тип оплаты: Талоны: Топливная Карта [09:46:55]line 02750 [09:46:55]line ______________________ [09:46:55]line (подпись) [09:46:55]written 0, free lines is 4095 [09:46:55]Write to MH i2c: 01 00 00 1B 0F 2A [09:46:55]Write i2c OK [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: 01 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: 01 07 00 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: 01 07 00 1B 0F 00 00 00 00 00 0D 0E 4C [09:46:55]RasterBufferAndPrint [09:46:55]line [09:46:55]line [09:46:55]line [09:46:55]line [09:46:55]line [09:46:55]written 0, free lines is 3598 [09:46:55]MH_Cut [09:46:55]Write to MH i2c: D1 01 00 22 0F 01 03 [09:46:55]Write i2c OK [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: D1 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: D1 01 00 [09:46:55]MH_I2C_Read... [09:46:55]Read from MH i2c: D1 01 00 22 0F 00 02 [09:46:55]Write to MH i2c: 01 00 00 23 0F 32 [09:46:55]Write i2c OK [09:46:55]MH_I2C_Read... [09:46:56]*** Cut start [09:46:56]*** Purtial cut [09:46:56]*** Stage 1: CUTSNS_PIN = 1 [09:46:56]Read from MH i2c: 01 [09:46:56]MH_I2C_Read... [09:46:56]*** Stop cut motor [09:46:56]*** Cut end [09:46:56]Read from MH i2c: 01 07 00 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: 01 07 00 23 0F 00 00 00 00 00 FF 0F 47 [09:46:56]process_action print_text done [09:46:56]requested_data is exist [09:46:56]produce_requested_data [09:46:56]requested_item fm.sn is exist - process it [09:46:56]wFMCommunicate request_size=4 [09:46:56]MH_SAM_APDU [09:46:56]CAPDU: 80 11 00 00 [09:46:56]Write to MH i2c: E2 08 00 24 0F 80 11 00 00 00 00 00 00 AD [09:46:56]Write i2c OK [09:46:56]MH_I2C_Read... [09:46:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:56]Read from MH i2c: E2 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: E2 17 00 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: E2 17 00 24 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 03 [09:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:46:56]wFMCommunicate OK [09:46:56]requested_item fd.num is exist - process it [09:46:56]SAM_PROTO_GetFieldsCounters [09:46:56]wFMCommunicate request_size=4 [09:46:56]MH_SAM_APDU [09:46:56]CAPDU: 80 13 00 00 [09:46:56]Write to MH i2c: E2 08 00 25 0F 80 13 00 00 00 00 00 00 B0 [09:46:56]Write i2c OK [09:46:56]MH_I2C_Read... [09:46:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:56]Read from MH i2c: E2 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: E2 62 00 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: E2 62 00 25 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 22 08 01 00 0E 04 04 00 66 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 B9 [09:46: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 22 08 01 00 0E 04 04 00 66 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:46:56]wFMCommunicate OK [09:46:56]SAM_PROTO_GetFieldsCounters done [09:46:56]requested_item shift.num is exist - process it [09:46:56]requested_item shift.opened is exist - process it [09:46:56]req_shift_opened [09:46:56]FM_GetShiftState [09:46:56]SAM_PROTO_GetShiftState [09:46:56]wFMCommunicate request_size=4 [09:46:56]MH_SAM_APDU [09:46:56]CAPDU: 80 13 01 00 [09:46:56]Write to MH i2c: E2 08 00 26 0F 80 13 01 00 00 00 00 00 B2 [09:46:56]Write i2c OK [09:46:56]MH_I2C_Read... [09:46:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:56]Read from MH i2c: E2 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: E2 0E 00 [09:46:56]MH_I2C_Read... [09:46:56]Read from MH i2c: E2 0E 00 26 0F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 38 [09:46:56]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:46:56]wFMCommunicate OK [09:46:56]SAM_PROTO_GetShiftState done [09:46:56]FM_GetShiftState done [09:46:56]req_shift_opened done [09:46:56]requested_item shift.open_date is exist - process it [09:46:56]req_shift_open_date [09:46:56]req_shift_open_date done [09:46:56]produce_requested_data done [09:46:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67618,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:46:56]process_action_free print_text [09:46:56]json_value_free [09:46:56]json_value_free done [09:46:56]process_json_proto returns [09:46:56]Send response to host [09:46:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67618,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:46:56]free response buf [09:46:56]execute_script done [09:46:56]execute_script returns [09:46:56]free content buf [09:46:56]Sock 7.Close socket [09:46:56]Sock 7.Thread stoped [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:18]accept exits with 9 [09:48:18]New connection [09:48:18]New thread 3067395428 created [09:48:18]Thread 3067538788 joined [09:48:18]Waiting for new connection... [09:48:18] Sock 9.Parse request [09:48:18]Sock 9.Check first char [09:48:18]Sock 9.First char is OK [09:48:18]request: POST /json_proto HTTP/1.0 [09:48:18]Method: POST [09:48:18]URL: /json_proto [09:48:18]Method is POST - this is cgi request [09:48:18]url: /json_proto [09:48:18]query_string will be loaded in cgi processing [09:48:18]execute_cgi json_proto POST (null) [09:48:18]execute_cgi path=json_proto method=POST [09:48:18]POST find Content-Length [09:48:18]Host: 172.17.41.195:8080 [09:48:18]Content-Length: 1189 [09:48:18]Content-Type: application/json [09:48:18] [09:48:18]POST finish read [09:48:18]Found Content-Length = 1189 [09:48: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507732\u000A17.05.2024 09: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.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 668.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3883604\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:18]execute_script... [09:48: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507732\u000A17.05.2024 09: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.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 668.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3883604\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:18]POST & json_proto [09:48:18]process_json_proto [09:48:18]json parsed OK: [09:48:18]protocol is kg_v1.0 [09:48:18]action value=print_text [09:48:18]process_action print_text [09:48:18]cmd_print_text [09:48:18]ExternCall_PrintAddStr [09:48:18]wPrintStart [09:48:18]Write to MH i2c: 01 00 00 27 0F 36 [09:48:18]Write i2c OK [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: 01 [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: 01 07 00 [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: 01 07 00 27 0F 00 00 00 00 00 FF 0F 4B [09:48:18]RasterBufferAndPrint [09:48:18]line *****ТОВАРНЫЙ ЧЕК***** [09:48:18]line АЗС-91 [09:48:18]line Партнер нефть [09:48:18]line 02508201610067 [09:48:18]line Кассир : Адишов И. [09:48:18]line Счет N : (1)507732 [09:48:18]line 17.05.2024 09:30 [09:48:18]line ПРОДАЖА [09:48:18]line ТРК (МРК, ГНК): 43 [09:48:18]line Вид ГСМ : 2710124130 [09:48:18]line Аи-92-К-5 [09:48:18]line 10.000 x 66.80 [09:48:18]line ИТОГ: 668.00 [09:48:18]line Тип оплаты: Талоны: Топливные Талоны [09:48:18]line 3883604 [09:48:18]line ______________________ [09:48:18]line (подпись) [09:48:18]written 0, free lines is 4095 [09:48:18]Write to MH i2c: 01 00 00 3B 0F 4A [09:48:18]Write i2c OK [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: 01 [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: 01 07 00 [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: 01 07 00 3B 0F 00 00 00 00 00 0F 0E 6E [09:48:18]RasterBufferAndPrint [09:48:18]line [09:48:18]line [09:48:18]line [09:48:18]line [09:48:18]line [09:48:18]written 0, free lines is 3601 [09:48:18]MH_Cut [09:48:18]Write to MH i2c: D1 01 00 42 0F 01 23 [09:48:18]Write i2c OK [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: D1 [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: D1 01 00 [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: D1 01 00 42 0F 00 22 [09:48:18]Write to MH i2c: 01 00 00 43 0F 52 [09:48:18]Write i2c OK [09:48:18]MH_I2C_Read... [09:48:19]*** Cut start [09:48:19]*** Purtial cut [09:48:19]*** CUTSNS_PIN = 0 [09:48:19]*** Stage 1: CUTSNS_PIN = 1 [09:48:21]Read from MH i2c: 01 [09:48:21]MH_I2C_Read... [09:48:21]*** Stop cut motor [09:48:21]*** Cut end [09:48:21]Read from MH i2c: 01 07 00 [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: 01 07 00 43 0F 00 00 00 00 00 FF 0F 67 [09:48:21]process_action print_text done [09:48:21]requested_data is exist [09:48:21]produce_requested_data [09:48:21]requested_item fm.sn is exist - process it [09:48:21]wFMCommunicate request_size=4 [09:48:21]MH_SAM_APDU [09:48:21]CAPDU: 80 11 00 00 [09:48:21]Write to MH i2c: E2 08 00 44 0F 80 11 00 00 00 00 00 00 CD [09:48:21]Write i2c OK [09:48:21]MH_I2C_Read... [09:48:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:21]Read from MH i2c: E2 [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: E2 17 00 [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: E2 17 00 44 0F 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:48:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:48:21]wFMCommunicate OK [09:48:21]requested_item fd.num is exist - process it [09:48:21]SAM_PROTO_GetFieldsCounters [09:48:21]wFMCommunicate request_size=4 [09:48:21]MH_SAM_APDU [09:48:21]CAPDU: 80 13 00 00 [09:48:21]Write to MH i2c: E2 08 00 45 0F 80 13 00 00 00 00 00 00 D0 [09:48:21]Write i2c OK [09:48:21]MH_I2C_Read... [09:48:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:21]Read from MH i2c: E2 [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: E2 62 00 [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: E2 62 00 45 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 22 08 01 00 0E 04 04 00 66 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 D9 [09:48: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 22 08 01 00 0E 04 04 00 66 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:48:21]wFMCommunicate OK [09:48:21]SAM_PROTO_GetFieldsCounters done [09:48:21]requested_item shift.num is exist - process it [09:48:21]requested_item shift.opened is exist - process it [09:48:21]req_shift_opened [09:48:21]FM_GetShiftState [09:48:21]SAM_PROTO_GetShiftState [09:48:21]wFMCommunicate request_size=4 [09:48:21]MH_SAM_APDU [09:48:21]CAPDU: 80 13 01 00 [09:48:21]Write to MH i2c: E2 08 00 46 0F 80 13 01 00 00 00 00 00 D2 [09:48:21]Write i2c OK [09:48:21]MH_I2C_Read... [09:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:21]Read from MH i2c: E2 [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: E2 0E 00 [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: E2 0E 00 46 0F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 58 [09:48:21]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:48:21]wFMCommunicate OK [09:48:21]SAM_PROTO_GetShiftState done [09:48:21]FM_GetShiftState done [09:48:21]req_shift_opened done [09:48:21]requested_item shift.open_date is exist - process it [09:48:21]req_shift_open_date [09:48:21]req_shift_open_date done [09:48:21]produce_requested_data done [09:48:21]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67618,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:48:21]process_action_free print_text [09:48:21]json_value_free [09:48:21]json_value_free done [09:48:21]process_json_proto returns [09:48:21]Send response to host [09:48:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67618,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:48:21]free response buf [09:48:21]execute_script done [09:48:21]execute_script returns [09:48:21]free content buf [09:48:21]Sock 9.Close socket [09:48:21]Sock 9.Thread stoped [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:23]OFD Sender: No OFD packet to send [09:49:28]OFD Sender: No OFD packet to send [09:49:29]accept exits with 7 [09:49:29]New connection [09:49:29]New thread 3067538788 created [09:49:29]Thread 3067395428 joined [09:49:29]Waiting for new connection... [09:49:29] Sock 7.Parse request [09:49:29]Sock 7.Check first char [09:49:29]Sock 7.First char is OK [09:49:29]request: POST /json_proto HTTP/1.0 [09:49:29]Method: POST [09:49:29]URL: /json_proto [09:49:29]Method is POST - this is cgi request [09:49:29]url: /json_proto [09:49:29]query_string will be loaded in cgi processing [09:49:29]execute_cgi json_proto POST (null) [09:49:29]execute_cgi path=json_proto method=POST [09:49:29]POST find Content-Length [09:49:29]Host: 172.17.41.195:8080 [09:49:29]Content-Length: 800 [09:49:29]Content-Type: application/json [09:49:29] [09:49:29]POST finish read [09:49:29]Found Content-Length = 800 [09:49:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507733", "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" ] } } [09:49:29]execute_script... [09:49: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)507733", "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" ] } } [09:49:29]POST & json_proto [09:49:29]process_json_proto [09:49:29]json parsed OK: [09:49:29]protocol is kg_v1.0 [09:49:29]action value=close_receipt [09:49:29]process_action close_receipt [09:49:29]cmd_close_receipt [09:49:29]MH_GetDate [09:49:29]Write to MH i2c: F0 00 00 47 0F 45 [09:49:29]Write i2c OK [09:49:29]MH_I2C_Read... [09:49:29]Read from MH i2c: F0 [09:49:29]MH_I2C_Read... [09:49:29]Read from MH i2c: F0 09 00 [09:49:29]MH_I2C_Read... [09:49:29]Read from MH i2c: F0 09 00 47 0F 00 2C 28 47 66 FC 21 6F 64 3F [09:49:29]GetLastDocTimeStamp 1715938792 [09:49:29]current date 1715939372 [09:49:29]FM_GetShiftState [09:49:29]SAM_PROTO_GetShiftState [09:49:29]wFMCommunicate request_size=4 [09:49:29]MH_SAM_APDU [09:49:29]CAPDU: 80 13 01 00 [09:49:29]Write to MH i2c: E2 08 00 48 0F 80 13 01 00 00 00 00 00 D4 [09:49:29]Write i2c OK [09:49:29]MH_I2C_Read... [09:49:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:29]Read from MH i2c: E2 [09:49:29]MH_I2C_Read... [09:49:29]Read from MH i2c: E2 0E 00 [09:49:29]MH_I2C_Read... [09:49:29]Read from MH i2c: E2 0E 00 48 0F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 5A [09:49:29]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:49:29]wFMCommunicate OK [09:49:29]SAM_PROTO_GetShiftState done [09:49:29]FM_GetShiftState done [09:49:29]opened in 1715905068 [09:49:29]opened+sec_in_day 1715991468 [09:49:29]quantity*price = 100023 [09:49:29]sum+1 = 100024 [09:49:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 28 17.05.2024 09:49 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67619 ФПД: 2633188156209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T094932&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67619&fm=2633188156209&tin=02508201610067®Number=0000000000091845&sum=100023 [09:49:30]StoreToDocumentArchive [09:49:30]shift 358 fd 67619 [09:49:30]save to /storage/0358/doc_00067619 [09:49:30]save last doc name /storage/0358/doc_00067619 to /storage/kkm_last_doc_name [09:49:30]save OK [09:49:30]Clear old archive folders... [09:49:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:49:30]tlvbuf is 015C7590 [09:49:30]SAM_PROTO_ClearQueue [09:49:30]wFMCommunicate request_size=4 [09:49:30]MH_SAM_APDU [09:49:30]CAPDU: 80 09 00 00 [09:49:30]Write to MH i2c: E2 08 00 55 0F 80 09 00 00 00 00 00 00 D6 [09:49:30]Write i2c OK [09:49:30]MH_I2C_Read... [09:49:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:30]Read from MH i2c: E2 [09:49:30]MH_I2C_Read... [09:49:30]Read from MH i2c: E2 03 00 [09:49:30]MH_I2C_Read... [09:49:30]Read from MH i2c: E2 03 00 55 0F 00 90 00 D8 [09:49:30]RAPDU: 90 00 [09:49:30]wFMCommunicate OK [09:49:30]SAM_PROTO_ClearQueue done [09:49:30]KKMCreateOFDPacket [09:49:30]OFDProtocolAddRootSTLVToBuf [09:49:30]FM_MakeSignedData [09:49:30]FM_MakeSignedData [09:49:30]SAM_PROTO_SignData [09:49:30]wFMCommunicate request_size=4 [09:49:30]MH_SAM_APDU [09:49:30]CAPDU: 80 0D 01 02 [09:49:30]Write to MH i2c: E2 08 00 56 0F 80 0D 01 02 00 00 00 00 DE [09:49:30]Write i2c OK [09:49:30]MH_I2C_Read... [09:49:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:30]Read from MH i2c: E2 [09:49:30]MH_I2C_Read... [09:49:30]Read from MH i2c: E2 03 00 [09:49:30]MH_I2C_Read... [09:49:30]Read from MH i2c: E2 03 00 56 0F 00 90 00 D9 [09:49:30]RAPDU: 90 00 [09:49:30]wFMCommunicate OK [09:49:30]wFMCommunicate request_size=255 [09:49:30]MH_SAM_APDU [09:49:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1C 00 00 00 F4 03 04 00 2C 28 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 02 65 16 3E [09:49:30]Write to MH i2c: E2 02 01 57 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 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 1C 00 00 00 F4 03 04 00 2C 28 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 02 65 16 3E 00 00 51 [09:49:31]Write i2c OK [09:49:31]MH_I2C_Read... [09:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:31]Read from MH i2c: E2 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: E2 03 00 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: E2 03 00 57 0F 00 90 00 DA [09:49:31]RAPDU: 90 00 [09:49:31]wFMCommunicate OK [09:49:31]wFMCommunicate request_size=7 [09:49:31]MH_SAM_APDU [09:49:31]CAPDU: 80 0D 02 02 02 A3 31 [09:49:31]Write to MH i2c: E2 0A 00 58 0F 80 0D 02 02 02 00 A3 31 00 00 B9 [09:49:31]Write i2c OK [09:49:31]MH_I2C_Read... [09:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:31]Read from MH i2c: E2 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: E2 03 00 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: E2 03 00 58 0F 00 90 00 DB [09:49:31]RAPDU: 90 00 [09:49:31]wFMCommunicate OK [09:49:31]wFMCommunicate request_size=4 [09:49:31]MH_SAM_APDU [09:49:31]CAPDU: 80 0D 03 02 [09:49:31]Write to MH i2c: E2 08 00 59 0F 80 0D 03 02 00 00 00 00 E3 [09:49:31]Write i2c OK [09:49:31]MH_I2C_Read... [09:49:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:31]Read from MH i2c: E2 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: E2 0B 00 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: E2 0B 00 59 0F 00 01 C0 26 C7 23 D7 66 B5 90 00 A7 [09:49:31]RAPDU: 01 C0 26 C7 23 D7 66 B5 90 00 [09:49:31]wFMCommunicate OK [09:49:31]SAM_PROTO_SignData done [09:49:31]FM_MakeSignedData done [09:49:31]CreateOFDProtocolMessage [09:49:31]wFMCommunicate request_size=4 [09:49:31]MH_SAM_APDU [09:49:31]CAPDU: 80 11 00 00 [09:49:31]Write to MH i2c: E2 08 00 5A 0F 80 11 00 00 00 00 00 00 E3 [09:49:31]Write i2c OK [09:49:31]MH_I2C_Read... [09:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:31]Read from MH i2c: E2 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: E2 17 00 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: E2 17 00 5A 0F 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:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:49:31]wFMCommunicate OK [09:49:31]CreateOFDProtocolMessage done [09:49:31]OFDSenderStorePacket 67619 [09:49:31]StoreOFDPacket docnum=67619 [09:49:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 96 70 04 01 93 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1C 00 00 00 F4 03 04 00 2C 28 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 02 65 16 3E A3 31 01 C0 26 C7 23 D7 66 B5 [09:49:31]CheckFolder [09:49:31]dirname=/storage/ofd_packets [09:49:31]CheckFolder done [09:49:31]ProducePacketName [09:49:31]name=ofd_packets/00067619 [09:49:31]NVStorageSaveData ofd_packets/00067619 [09:49:31]File name is /storage/ofd_packets/00067619 [09:49:31]Write 298 bytes [09:49:31]NVStorageSaveData done [09:49:31]OFDSenderStorePacket done [09:49:31]KKMCreateOFDPacket done [09:49:31]NVStorageSaveData kkm_last_timestamp [09:49:31]File name is /storage/kkm_last_timestamp [09:49:31]Write 4 bytes [09:49:31]NVStorageSaveData done [09:49:31]ExternCall_PrintAddStr [09:49:31]wPrintStart [09:49:31]Write to MH i2c: 01 00 00 5B 0F 6A [09:49:31]Write i2c OK [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: 01 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: 01 07 00 [09:49:31]MH_I2C_Read... [09:49:31]Read from MH i2c: 01 07 00 5B 0F 00 00 00 00 00 FF 0F 7F [09:49:31]RasterBufferAndPrint [09:49:31]line Счет N : (1)507733 [09:49:31]line ИНН: 02508201610067 [09:49:31]line Контрольно-Кассовый Чек [09:49:31]line ПРОДАЖА [09:49:31]line ТРК (МРК, ГНК) : 11 [09:49:31]line Товар: 2710194210 [09:49:31]line ДТ-К-5 [09:49:31]line 13.390 * 74.70 [09:49:31]line = 1000.23 [09:49:31]line НДС 12% НСП 1% [09:49:31]line > о реализуемом товаре [09:49:31]line ИТОГО: 1000.23 [09:49:31]line НСП 1% : 8.85 [09:49:31]line НДС 12% : 106.22 [09:49:31]line Наличными: 0.00 [09:49:31]line Безнал.: 1000.23 [09:49:31]line Место: АЗС № 91 "Партнер Нефть" [09:49:31]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:49:31]line СНО: Общий режим [09:49:31]line Чек 28 17.05.2024 09:49 [09:49:31]line Смена: 358 ФФД: 1.0 [09:49:31]line ЗНМ: 0300000119 [09:49:31]line РНМ: 0000000000091845 [09:49:31]line Версия ККМ: 001 [09:49:31]line Платежная система: O! деньги [09:49:31]line ФМ: 0000000000871829 [09:49:31]line ФД: 67619 [09:49:31]line ФПД: 2633188156209 [09:49:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T094932&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67619&fm=2633188156209&tin=02508201610067®Number=0000000000091845&sum=100023 [09:49:31]OFD Sender: Processing packet 67619 [packets to send 35, broken 34] [09:49:31]ProducePacketName [09:49:31]name=ofd_packets/00067619 [09:49:31]OFD Sender: To server: pG, [09:49:31]CommunicateWithHost lk.salyk.kg:30040 [09:49:31]ConnectInit lk.salyk.kg [09:49:31]written 0, free lines is 4095 [09:49:31]Connected sock=10 [09:49:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 96 70 04 01 93 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1C 00 00 00 F4 03 04 00 2C 28 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 02 65 16 3E A3 31 01 C0 26 C7 23 D7 66 B5 [09:49: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 8C 99 47 00 EE C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 04 D0 46 66 B6 04 01 00 00 32 F6 6F 65 91 03 49 8D [09:49:32]CommunicateWithHost err = 0 [09:49:32]CheckOFDResponse [09:49:32]1017 (14) - 77093643461234 [09:49:32]1041 (16) - 0000000000871829 [09:49:32]1040 (4) - 67619 [09:49:32]1012 (4) - 17.05.2024 03:33 [09:49:32]1206 (1) - 0 [09:49:32]OFD Sender: Remove packet 67619 [09:49:32]ProducePacketName [09:49:32]name=ofd_packets/00067619 [09:49:32]NVStorageDeleteData [09:49:32]Write to MH i2c: 01 00 00 84 0F 93 [09:49:32]Write i2c OK [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: 01 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: 01 07 00 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: 01 07 00 84 0F 00 00 00 00 00 D3 0C 79 [09:49:32]RasterBufferAndPrint [09:49:32]line [09:49:32]line [09:49:32]line [09:49:32]line [09:49:32]line [09:49:32]written 0, free lines is 3288 [09:49:32]MH_Cut [09:49:32]Write to MH i2c: D1 01 00 8B 0F 01 6C [09:49:32]Write i2c OK [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: D1 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: D1 01 00 [09:49:32]MH_I2C_Read... [09:49:32]Read from MH i2c: D1 01 00 8B 0F 00 6B [09:49:32]Write to MH i2c: 01 00 00 8C 0F 9B [09:49:32]Write i2c OK [09:49:32]MH_I2C_Read... [09:49:32]OFD Sender: No OFD packet to send [09:49:33]*** Cut start [09:49:33]*** Purtial cut [09:49:33]*** Stage 1: CUTSNS_PIN = 1 [09:49:33]Read from MH i2c: 01 [09:49:33]MH_I2C_Read... [09:49:33]*** Stop cut motor [09:49:33]*** Cut end [09:49:33]Read from MH i2c: 01 07 00 [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: 01 07 00 8C 0F 00 00 00 00 00 FF 0F B0 [09:49:33]process_action close_receipt done [09:49:33]requested_data is exist [09:49:33]produce_requested_data [09:49:33]requested_item fm.sn is exist - process it [09:49:33]wFMCommunicate request_size=4 [09:49:33]MH_SAM_APDU [09:49:33]CAPDU: 80 11 00 00 [09:49:33]Write to MH i2c: E2 08 00 8D 0F 80 11 00 00 00 00 00 00 16 [09:49:33]Write i2c OK [09:49:33]MH_I2C_Read... [09:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:33]Read from MH i2c: E2 [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: E2 17 00 [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: E2 17 00 8D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6C [09:49:33]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:33]wFMCommunicate OK [09:49:33]requested_item fd.num is exist - process it [09:49:33]SAM_PROTO_GetFieldsCounters [09:49:33]wFMCommunicate request_size=4 [09:49:33]MH_SAM_APDU [09:49:33]CAPDU: 80 13 00 00 [09:49:33]Write to MH i2c: E2 08 00 8E 0F 80 13 00 00 00 00 00 00 19 [09:49:33]Write i2c OK [09:49:33]MH_I2C_Read... [09:49:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:33]Read from MH i2c: E2 [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: E2 62 00 [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: E2 62 00 8E 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 23 08 01 00 0E 04 04 00 66 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 26 [09:49: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 23 08 01 00 0E 04 04 00 66 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:49:33]wFMCommunicate OK [09:49:33]SAM_PROTO_GetFieldsCounters done [09:49:33]requested_item shift.num is exist - process it [09:49:33]requested_item shift.opened is exist - process it [09:49:33]req_shift_opened [09:49:33]FM_GetShiftState [09:49:33]SAM_PROTO_GetShiftState [09:49:33]wFMCommunicate request_size=4 [09:49:33]MH_SAM_APDU [09:49:33]CAPDU: 80 13 01 00 [09:49:33]Write to MH i2c: E2 08 00 8F 0F 80 13 01 00 00 00 00 00 1B [09:49:33]Write i2c OK [09:49:33]MH_I2C_Read... [09:49:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:33]Read from MH i2c: E2 [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: E2 0E 00 [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: E2 0E 00 8F 0F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 A1 [09:49:33]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:49:33]wFMCommunicate OK [09:49:33]SAM_PROTO_GetShiftState done [09:49:33]FM_GetShiftState done [09:49:33]req_shift_opened done [09:49:33]requested_item shift.open_date is exist - process it [09:49:33]req_shift_open_date [09:49:33]req_shift_open_date done [09:49:33]produce_requested_data done [09:49:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67619,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:49:33]process_action_free close_receipt [09:49:33]json_value_free [09:49:33]json_value_free done [09:49:33]process_json_proto returns [09:49:33]Send response to host [09:49:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67619,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:49:33]free response buf [09:49:33]execute_script done [09:49:33]execute_script returns [09:49:33]free content buf [09:49:33]Sock 7.Close socket [09:49:33]Sock 7.Thread stoped [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:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:11]accept exits with 9 [09:55:11]New connection [09:55:11]New thread 3067395428 created [09:55:11]Thread 3067538788 joined [09:55:11]Waiting for new connection... [09:55:11] Sock 9.Parse request [09:55:11]Sock 9.Check first char [09:55:11]Sock 9.First char is OK [09:55:11]request: POST /json_proto HTTP/1.0 [09:55:11]Method: POST [09:55:11]URL: /json_proto [09:55:11]Method is POST - this is cgi request [09:55:11]url: /json_proto [09:55:11]query_string will be loaded in cgi processing [09:55:11]execute_cgi json_proto POST (null) [09:55:11]execute_cgi path=json_proto method=POST [09:55:11]POST find Content-Length [09:55:11]Host: 172.17.41.195:8080 [09:55:11]Content-Length: 1179 [09:55:11]Content-Type: application/json [09:55:11] [09:55:11]POST finish read [09:55:11]Found Content-Length = 1179 [09:55: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507734\u000A17.05.2024 09: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\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:11]execute_script... [09:55: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507734\u000A17.05.2024 09: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\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:11]POST & json_proto [09:55:11]process_json_proto [09:55:11]json parsed OK: [09:55:11]protocol is kg_v1.0 [09:55:11]action value=print_text [09:55:11]process_action print_text [09:55:11]cmd_print_text [09:55:11]ExternCall_PrintAddStr [09:55:11]wPrintStart [09:55:11]Write to MH i2c: 01 00 00 90 0F 9F [09:55:11]Write i2c OK [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: 01 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: 01 07 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: 01 07 00 90 0F 00 00 00 00 00 FF 0F B4 [09:55:11]RasterBufferAndPrint [09:55:11]line *****ТОВАРНЫЙ ЧЕК***** [09:55:11]line АЗС-91 [09:55:11]line Партнер нефть [09:55:11]line 02508201610067 [09:55:11]line Кассир : Адишов И. [09:55:12]line Счет N : (1)507734 [09:55:12]line 17.05.2024 09:37 [09:55:12]line ПРОДАЖА [09:55:12]line ТРК (МРК, ГНК): 31 [09:55:12]line Вид ГСМ : 2710194210 [09:55:12]line ДТ-К-5 [09:55:12]line 25.000 x 74.70 [09:55:12]line ИТОГ: 1867.50 [09:55:12]line Тип оплаты: Талоны: Топливная Карта [09:55:12]line 02750 [09:55:12]line ______________________ [09:55:12]line (подпись) [09:55:12]written 0, free lines is 4095 [09:55:12]Write to MH i2c: 01 00 00 A4 0F B3 [09:55:12]Write i2c OK [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: 01 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: 01 07 00 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: 01 07 00 A4 0F 00 00 00 00 00 0D 0E D5 [09:55:12]RasterBufferAndPrint [09:55:12]line [09:55:12]line [09:55:12]line [09:55:12]line [09:55:12]line [09:55:12]written 0, free lines is 3598 [09:55:12]MH_Cut [09:55:12]Write to MH i2c: D1 01 00 AB 0F 01 8C [09:55:12]Write i2c OK [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: D1 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: D1 01 00 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: D1 01 00 AB 0F 00 8B [09:55:12]Write to MH i2c: 01 00 00 AC 0F BB [09:55:12]Write i2c OK [09:55:12]MH_I2C_Read... [09:55:12]*** Cut start [09:55:12]*** Purtial cut [09:55:12]*** CUTSNS_PIN = 0 [09:55:12]OFD Sender: No OFD packet to send [09:55:13]*** Stage 1: CUTSNS_PIN = 1 [09:55:14]Read from MH i2c: 01 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: 01 07 00 [09:55:14]MH_I2C_Read... [09:55:14]*** Stop cut motor [09:55:14]*** Cut end [09:55:14]Read from MH i2c: 01 07 00 AC 0F 00 00 00 00 00 FF 0F D0 [09:55:14]process_action print_text done [09:55:14]requested_data is exist [09:55:14]produce_requested_data [09:55:14]requested_item fm.sn is exist - process it [09:55:14]wFMCommunicate request_size=4 [09:55:14]MH_SAM_APDU [09:55:14]CAPDU: 80 11 00 00 [09:55:14]Write to MH i2c: E2 08 00 AD 0F 80 11 00 00 00 00 00 00 36 [09:55:14]Write i2c OK [09:55:14]MH_I2C_Read... [09:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:14]Read from MH i2c: E2 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: E2 17 00 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: E2 17 00 AD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8C [09:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:55:14]wFMCommunicate OK [09:55:14]requested_item fd.num is exist - process it [09:55:14]SAM_PROTO_GetFieldsCounters [09:55:14]wFMCommunicate request_size=4 [09:55:14]MH_SAM_APDU [09:55:14]CAPDU: 80 13 00 00 [09:55:14]Write to MH i2c: E2 08 00 AE 0F 80 13 00 00 00 00 00 00 39 [09:55:14]Write i2c OK [09:55:14]MH_I2C_Read... [09:55:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:14]Read from MH i2c: E2 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: E2 62 00 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: E2 62 00 AE 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 23 08 01 00 0E 04 04 00 66 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 46 [09:55: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 23 08 01 00 0E 04 04 00 66 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:55:14]wFMCommunicate OK [09:55:14]SAM_PROTO_GetFieldsCounters done [09:55:14]requested_item shift.num is exist - process it [09:55:14]requested_item shift.opened is exist - process it [09:55:14]req_shift_opened [09:55:14]FM_GetShiftState [09:55:14]SAM_PROTO_GetShiftState [09:55:14]wFMCommunicate request_size=4 [09:55:14]MH_SAM_APDU [09:55:14]CAPDU: 80 13 01 00 [09:55:14]Write to MH i2c: E2 08 00 AF 0F 80 13 01 00 00 00 00 00 3B [09:55:14]Write i2c OK [09:55:14]MH_I2C_Read... [09:55:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:15]Read from MH i2c: E2 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 0E 00 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 0E 00 AF 0F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 C1 [09:55:15]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:55:15]wFMCommunicate OK [09:55:15]SAM_PROTO_GetShiftState done [09:55:15]FM_GetShiftState done [09:55:15]req_shift_opened done [09:55:15]requested_item shift.open_date is exist - process it [09:55:15]req_shift_open_date [09:55:15]req_shift_open_date done [09:55:15]produce_requested_data done [09:55:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67619,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:55:15]process_action_free print_text [09:55:15]json_value_free [09:55:15]json_value_free done [09:55:15]process_json_proto returns [09:55:15]Send response to host [09:55:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67619,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:55:15]free response buf [09:55:15]execute_script done [09:55:15]execute_script returns [09:55:15]free content buf [09:55:15]Sock 9.Close socket [09:55:15]Sock 9.Thread stoped [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]accept exits with 10 [09:55:52]New connection [09:55:52]New thread 3067538788 created [09:55:52]Thread 3067395428 joined [09:55:52]Waiting for new connection... [09:55:52] Sock 10.Parse request [09:55:52]Sock 10.Check first char [09:55:52]Sock 10.First char is OK [09:55:52]request: POST /json_proto HTTP/1.0 [09:55:52]Method: POST [09:55:52]URL: /json_proto [09:55:52]Method is POST - this is cgi request [09:55:52]url: /json_proto [09:55:52]query_string will be loaded in cgi processing [09:55:52]execute_cgi json_proto POST (null) [09:55:52]execute_cgi path=json_proto method=POST [09:55:52]POST find Content-Length [09:55:52]Host: 172.17.41.195:8080 [09:55:52]Content-Length: 1179 [09:55:52]Content-Type: application/json [09:55:52] [09:55:52]POST finish read [09:55:52]Found Content-Length = 1179 [09:55: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507735\u000A17.05.2024 09:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:52]execute_script... [09:55: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507735\u000A17.05.2024 09:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:52]POST & json_proto [09:55:52]process_json_proto [09:55:52]json parsed OK: [09:55:52]protocol is kg_v1.0 [09:55:52]action value=print_text [09:55:52]process_action print_text [09:55:52]cmd_print_text [09:55:52]ExternCall_PrintAddStr [09:55:52]wPrintStart [09:55:52]Write to MH i2c: 01 00 00 B0 0F BF [09:55:52]Write i2c OK [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: 01 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: 01 07 00 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: 01 07 00 B0 0F 00 00 00 00 00 FF 0F D4 [09:55:52]RasterBufferAndPrint [09:55:52]line *****ТОВАРНЫЙ ЧЕК***** [09:55:52]line АЗС-91 [09:55:52]line Партнер нефть [09:55:52]line 02508201610067 [09:55:52]line Кассир : Адишов И. [09:55:52]line Счет N : (1)507735 [09:55:52]line 17.05.2024 09:38 [09:55:52]line ПРОДАЖА [09:55:52]line ТРК (МРК, ГНК): 41 [09:55:52]line Вид ГСМ : 2710194210 [09:55:52]line ДТ-К-5 [09:55:52]line 15.000 x 74.70 [09:55:52]line ИТОГ: 1120.50 [09:55:52]line Тип оплаты: Талоны: Топливная Карта [09:55:52]line 02750 [09:55:52]line ______________________ [09:55:52]line (подпись) [09:55:52]written 0, free lines is 4095 [09:55:52]Write to MH i2c: 01 00 00 C4 0F D3 [09:55:52]Write i2c OK [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: 01 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: 01 07 00 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: 01 07 00 C4 0F 00 00 00 00 00 0C 0E F4 [09:55:52]RasterBufferAndPrint [09:55:52]line [09:55:52]line [09:55:52]line [09:55:52]line [09:55:52]line [09:55:52]written 0, free lines is 3597 [09:55:52]MH_Cut [09:55:52]Write to MH i2c: D1 01 00 CB 0F 01 AC [09:55:52]Write i2c OK [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: D1 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: D1 01 00 [09:55:52]MH_I2C_Read... [09:55:52]Read from MH i2c: D1 01 00 CB 0F 00 AB [09:55:52]Write to MH i2c: 01 00 00 CC 0F DB [09:55:52]Write i2c OK [09:55:52]MH_I2C_Read... [09:55:52]OFD Sender: No OFD packet to send [09:55:53]*** Cut start [09:55:53]*** Purtial cut [09:55:53]*** Stage 1: CUTSNS_PIN = 1 [09:55:53]Read from MH i2c: 01 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: 01 07 00 [09:55:53]MH_I2C_Read... [09:55:53]*** Stop cut motor [09:55:53]*** Cut end [09:55:53]Read from MH i2c: 01 07 00 CC 0F 00 00 00 00 00 FF 0F F0 [09:55:53]process_action print_text done [09:55:53]requested_data is exist [09:55:53]produce_requested_data [09:55:53]requested_item fm.sn is exist - process it [09:55:53]wFMCommunicate request_size=4 [09:55:53]MH_SAM_APDU [09:55:53]CAPDU: 80 11 00 00 [09:55:53]Write to MH i2c: E2 08 00 CD 0F 80 11 00 00 00 00 00 00 56 [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:53]Read from MH i2c: E2 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 17 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 17 00 CD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AC [09:55: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:55:53]wFMCommunicate OK [09:55:53]requested_item fd.num is exist - process it [09:55:53]SAM_PROTO_GetFieldsCounters [09:55:53]wFMCommunicate request_size=4 [09:55:53]MH_SAM_APDU [09:55:53]CAPDU: 80 13 00 00 [09:55:53]Write to MH i2c: E2 08 00 CE 0F 80 13 00 00 00 00 00 00 59 [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:53]Read from MH i2c: E2 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 62 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 62 00 CE 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 23 08 01 00 0E 04 04 00 66 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 66 [09:55: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 23 08 01 00 0E 04 04 00 66 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:55:53]wFMCommunicate OK [09:55:53]SAM_PROTO_GetFieldsCounters done [09:55:53]requested_item shift.num is exist - process it [09:55:53]requested_item shift.opened is exist - process it [09:55:53]req_shift_opened [09:55:53]FM_GetShiftState [09:55:53]SAM_PROTO_GetShiftState [09:55:53]wFMCommunicate request_size=4 [09:55:53]MH_SAM_APDU [09:55:53]CAPDU: 80 13 01 00 [09:55:53]Write to MH i2c: E2 08 00 CF 0F 80 13 01 00 00 00 00 00 5B [09:55:53]Write i2c OK [09:55:53]MH_I2C_Read... [09:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:53]Read from MH i2c: E2 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 0E 00 [09:55:53]MH_I2C_Read... [09:55:53]Read from MH i2c: E2 0E 00 CF 0F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 E1 [09:55:53]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:55:53]wFMCommunicate OK [09:55:53]SAM_PROTO_GetShiftState done [09:55:53]FM_GetShiftState done [09:55:53]req_shift_opened done [09:55:53]requested_item shift.open_date is exist - process it [09:55:53]req_shift_open_date [09:55:53]req_shift_open_date done [09:55:53]produce_requested_data done [09:55:53]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67619,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:55:53]process_action_free print_text [09:55:53]json_value_free [09:55:53]json_value_free done [09:55:53]process_json_proto returns [09:55:53]Send response to host [09:55:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67619,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:55:53]free response buf [09:55:53]execute_script done [09:55:53]execute_script returns [09:55:53]free content buf [09:55:53]Sock 10.Close socket [09:55:53]Sock 10.Thread stoped [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:43]accept exits with 7 [09:59:43]New connection [09:59:43]New thread 3067395428 created [09:59:43]Thread 3067538788 joined [09:59:43]Waiting for new connection... [09:59:43] Sock 7.Parse request [09:59:43]Sock 7.Check first char [09:59:43]Sock 7.First char is OK [09:59:43]request: POST /json_proto HTTP/1.0 [09:59:43]Method: POST [09:59:43]URL: /json_proto [09:59:43]Method is POST - this is cgi request [09:59:43]url: /json_proto [09:59:43]query_string will be loaded in cgi processing [09:59:43]execute_cgi json_proto POST (null) [09:59:43]execute_cgi path=json_proto method=POST [09:59:43]POST find Content-Length [09:59:43]Host: 172.17.41.195:8080 [09:59:43]Content-Length: 639 [09:59:43]Content-Type: application/json [09:59:43] [09:59:43]POST finish read [09:59:43]Found Content-Length = 639 [09:59:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507737", "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.000, "sum" : 334.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 334.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:43]execute_script... [09:59: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)507737", "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.000, "sum" : 334.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 334.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:43]POST & json_proto [09:59:43]process_json_proto [09:59:43]json parsed OK: [09:59:43]protocol is kg_v1.0 [09:59:43]action value=close_receipt [09:59:43]process_action close_receipt [09:59:43]cmd_close_receipt [09:59:43]MH_GetDate [09:59:43]Write to MH i2c: F0 00 00 D0 0F CE [09:59:43]Write i2c OK [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: F0 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: F0 09 00 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: F0 09 00 D0 0F 00 92 2A 47 66 FC 21 6F 64 30 [09:59:43]GetLastDocTimeStamp 1715939372 [09:59:43]current date 1715939986 [09:59:43]FM_GetShiftState [09:59:43]SAM_PROTO_GetShiftState [09:59:43]wFMCommunicate request_size=4 [09:59:43]MH_SAM_APDU [09:59:43]CAPDU: 80 13 01 00 [09:59:43]Write to MH i2c: E2 08 00 D1 0F 80 13 01 00 00 00 00 00 5D [09:59:43]Write i2c OK [09:59:43]MH_I2C_Read... [09:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:43]Read from MH i2c: E2 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: E2 0E 00 [09:59:43]MH_I2C_Read... [09:59:43]Read from MH i2c: E2 0E 00 D1 0F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 E3 [09:59:43]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:59:43]wFMCommunicate OK [09:59:43]SAM_PROTO_GetShiftState done [09:59:43]FM_GetShiftState done [09:59:43]opened in 1715905068 [09:59:43]opened+sec_in_day 1715991468 [09:59:43]quantity*price = 33400 [09:59:43]sum+1 = 33401 [09:59:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 334.00 НСП 1% : 2.96 НДС 12% : 35.47 Наличными: 334.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 29 17.05.2024 09:59 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67620 ФПД: 173954676392824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T095946&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67620&fm=173954676392824&tin=02508201610067®Number=0000000000091845&sum=33400 [09:59:44]StoreToDocumentArchive [09:59:44]shift 358 fd 67620 [09:59:44]save to /storage/0358/doc_00067620 [09:59:44]save last doc name /storage/0358/doc_00067620 to /storage/kkm_last_doc_name [09:59:44]save OK [09:59:44]Clear old archive folders... [09:59:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:44]tlvbuf is 015C7280 [09:59:44]SAM_PROTO_ClearQueue [09:59:44]wFMCommunicate request_size=4 [09:59:44]MH_SAM_APDU [09:59:44]CAPDU: 80 09 00 00 [09:59:44]Write to MH i2c: E2 08 00 DE 0F 80 09 00 00 00 00 00 00 5F [09:59:44]Write i2c OK [09:59:44]MH_I2C_Read... [09:59:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:44]Read from MH i2c: E2 [09:59:44]MH_I2C_Read... [09:59:44]Read from MH i2c: E2 03 00 [09:59:44]MH_I2C_Read... [09:59:44]Read from MH i2c: E2 03 00 DE 0F 00 90 00 61 [09:59:44]RAPDU: 90 00 [09:59:44]wFMCommunicate OK [09:59:44]SAM_PROTO_ClearQueue done [09:59:44]KKMCreateOFDPacket [09:59:44]OFDProtocolAddRootSTLVToBuf [09:59:44]FM_MakeSignedData [09:59:44]FM_MakeSignedData [09:59:44]SAM_PROTO_SignData [09:59:44]wFMCommunicate request_size=4 [09:59:44]MH_SAM_APDU [09:59:44]CAPDU: 80 0D 01 02 [09:59:44]Write to MH i2c: E2 08 00 DF 0F 80 0D 01 02 00 00 00 00 67 [09:59:44]Write i2c OK [09:59:44]MH_I2C_Read... [09:59:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:44]Read from MH i2c: E2 [09:59:44]MH_I2C_Read... [09:59:44]Read from MH i2c: E2 03 00 [09:59:44]MH_I2C_Read... [09:59:44]Read from MH i2c: E2 03 00 DF 0F 00 90 00 62 [09:59:44]RAPDU: 90 00 [09:59:44]wFMCommunicate OK [09:59:44]wFMCommunicate request_size=255 [09:59:44]MH_SAM_APDU [09:59: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 88 13 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 78 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 0D 00 00 00 00 07 04 06 00 78 82 00 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 92 2A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 9E [09:59:44]Write to MH i2c: E2 02 01 E0 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 78 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 0D 00 00 00 00 07 04 06 00 78 82 00 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 92 2A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 9E 00 00 FA [09:59:44]Write i2c OK [09:59:44]MH_I2C_Read... [09:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:45]Read from MH i2c: E2 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 03 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 03 00 E0 0F 00 90 00 63 [09:59:45]RAPDU: 90 00 [09:59:45]wFMCommunicate OK [09:59:45]wFMCommunicate request_size=10 [09:59:45]MH_SAM_APDU [09:59:45]CAPDU: 80 0D 02 02 05 35 FA B1 83 78 [09:59:45]Write to MH i2c: E2 0D 00 E1 0F 80 0D 02 02 05 00 35 FA B1 83 78 00 00 4F [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:45]Read from MH i2c: E2 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 03 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 03 00 E1 0F 00 90 00 64 [09:59:45]RAPDU: 90 00 [09:59:45]wFMCommunicate OK [09:59:45]wFMCommunicate request_size=4 [09:59:45]MH_SAM_APDU [09:59:45]CAPDU: 80 0D 03 02 [09:59:45]Write to MH i2c: E2 08 00 E2 0F 80 0D 03 02 00 00 00 00 6C [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:45]Read from MH i2c: E2 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 0B 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 0B 00 E2 0F 00 25 DC BF 2B 8B 96 CD 35 90 00 7B [09:59:45]RAPDU: 25 DC BF 2B 8B 96 CD 35 90 00 [09:59:45]wFMCommunicate OK [09:59:45]SAM_PROTO_SignData done [09:59:45]FM_MakeSignedData done [09:59:45]CreateOFDProtocolMessage [09:59:45]wFMCommunicate request_size=4 [09:59:45]MH_SAM_APDU [09:59:45]CAPDU: 80 11 00 00 [09:59:45]Write to MH i2c: E2 08 00 E3 0F 80 11 00 00 00 00 00 00 6C [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:45]Read from MH i2c: E2 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 17 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: E2 17 00 E3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C2 [09:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:59:45]wFMCommunicate OK [09:59:45]CreateOFDProtocolMessage done [09:59:45]OFDSenderStorePacket 67620 [09:59:45]StoreOFDPacket docnum=67620 [09:59: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 4E 04 07 01 5D 6A 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 88 13 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 78 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 0D 00 00 00 00 07 04 06 00 78 82 00 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 92 2A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 9E 35 FA B1 83 78 25 DC BF 2B 8B 96 CD 35 [09:59:45]CheckFolder [09:59:45]dirname=/storage/ofd_packets [09:59:45]CheckFolder done [09:59:45]ProducePacketName [09:59:45]name=ofd_packets/00067620 [09:59:45]NVStorageSaveData ofd_packets/00067620 [09:59:45]File name is /storage/ofd_packets/00067620 [09:59:45]Write 301 bytes [09:59:45]NVStorageSaveData done [09:59:45]OFDSenderStorePacket done [09:59:45]KKMCreateOFDPacket done [09:59:45]NVStorageSaveData kkm_last_timestamp [09:59:45]File name is /storage/kkm_last_timestamp [09:59:45]Write 4 bytes [09:59:45]NVStorageSaveData done [09:59:45]ExternCall_PrintAddStr [09:59:45]wPrintStart [09:59:45]Write to MH i2c: 01 00 00 E4 0F F3 [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: 01 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: 01 07 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: 01 07 00 E4 0F 00 00 00 00 00 FF 0F 08 [09:59:45]RasterBufferAndPrint [09:59:45]line Счет N : (1)507737 [09:59:45]line ИНН: 02508201610067 [09:59:45]line Контрольно-Кассовый Чек [09:59:45]line ПРОДАЖА [09:59:45]line ТРК (МРК, ГНК) : 43 [09:59:45]line Товар: 2710124130 [09:59:45]line Аи-92-К-5 [09:59:45]line 5.000 * 66.80 [09:59:45]line = 334.00 [09:59:45]line НДС 12% НСП 1% [09:59:45]line > о реализуемом товаре [09:59:45]line ИТОГО: 334.00 [09:59:45]line НСП 1% : 2.96 [09:59:45]line НДС 12% : 35.47 [09:59:45]line Наличными: 334.00 [09:59:45]line Безнал.: 0.00 [09:59:45]line Место: АЗС № 91 "Партнер Нефть" [09:59:45]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:59:45]line СНО: Общий режим [09:59:45]line Чек 29 17.05.2024 09:59 [09:59:45]line Смена: 358 ФФД: 1.0 [09:59:45]line ЗНМ: 0300000119 [09:59:45]line РНМ: 0000000000091845 [09:59:45]line Версия ККМ: 001 [09:59:45]line ФМ: 0000000000871829 [09:59:45]line ФД: 67620 [09:59:45]line ФПД: 173954676392824 [09:59:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T095946&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67620&fm=173954676392824&tin=02508201610067®Number=0000000000091845&sum=33400 [09:59:45]OFD Sender: Processing packet 67620 [packets to send 35, broken 34] [09:59:45]ProducePacketName [09:59:45]name=ofd_packets/00067620 [09:59:45]OFD Sender: To server: pG, [09:59:45]CommunicateWithHost lk.salyk.kg:30040 [09:59:45]ConnectInit lk.salyk.kg [09:59:45]written 0, free lines is 4095 [09:59:45]Connected sock=10 [09:59: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 4E 04 07 01 5D 6A 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 88 13 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 78 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 0D 00 00 00 00 07 04 06 00 78 82 00 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 92 2A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 9E 35 FA B1 83 78 25 DC BF 2B 8B 96 CD 35 [09:59: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 11 B6 47 00 23 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 24 08 01 00 F4 03 04 00 6A D2 46 66 B6 04 01 00 00 73 E8 86 D2 B2 1E 37 CC [09:59:45]CommunicateWithHost err = 0 [09:59:45]CheckOFDResponse [09:59:45]1017 (14) - 77093643461234 [09:59:45]1041 (16) - 0000000000871829 [09:59:45]1040 (4) - 67620 [09:59:45]1012 (4) - 17.05.2024 03:43 [09:59:45]1206 (1) - 0 [09:59:45]OFD Sender: Remove packet 67620 [09:59:45]ProducePacketName [09:59:45]name=ofd_packets/00067620 [09:59:45]NVStorageDeleteData [09:59:45]Write to MH i2c: 01 00 00 0B 10 1B [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: 01 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: 01 07 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: 01 07 00 0B 10 00 00 00 00 00 00 0D 2F [09:59:45]RasterBufferAndPrint [09:59:45]line [09:59:45]line [09:59:45]line [09:59:45]line [09:59:45]line [09:59:45]written 0, free lines is 3332 [09:59:45]MH_Cut [09:59:45]Write to MH i2c: D1 01 00 12 10 01 F4 [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: D1 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: D1 01 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: D1 01 00 12 10 00 F3 [09:59:45]Write to MH i2c: 01 00 00 13 10 23 [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:46]OFD Sender: No OFD packet to send [09:59:46]*** Cut start [09:59:46]*** Purtial cut [09:59:46]*** CUTSNS_PIN = 0 [09:59:46]*** Stage 1: CUTSNS_PIN = 1 [09:59:48]Read from MH i2c: 01 [09:59:48]MH_I2C_Read... [09:59:48]*** Stop cut motor [09:59:48]*** Cut end [09:59:48]Read from MH i2c: 01 07 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: 01 07 00 13 10 00 00 00 00 00 FF 0F 38 [09:59:48]process_action close_receipt done [09:59:48]requested_data is exist [09:59:48]produce_requested_data [09:59:48]requested_item fm.sn is exist - process it [09:59:48]wFMCommunicate request_size=4 [09:59:48]MH_SAM_APDU [09:59:48]CAPDU: 80 11 00 00 [09:59:48]Write to MH i2c: E2 08 00 14 10 80 11 00 00 00 00 00 00 9E [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:48]Read from MH i2c: E2 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 17 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 17 00 14 10 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:59: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:59:48]wFMCommunicate OK [09:59:48]requested_item fd.num is exist - process it [09:59:48]SAM_PROTO_GetFieldsCounters [09:59:48]wFMCommunicate request_size=4 [09:59:48]MH_SAM_APDU [09:59:48]CAPDU: 80 13 00 00 [09:59:48]Write to MH i2c: E2 08 00 15 10 80 13 00 00 00 00 00 00 A1 [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:48]Read from MH i2c: E2 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 62 00 [09:59:48]MH_I2C_Read... [09:59:48]Read from MH i2c: E2 62 00 15 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 24 08 01 00 0E 04 04 00 66 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 B2 [09:59: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 24 08 01 00 0E 04 04 00 66 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:59:48]wFMCommunicate OK [09:59:48]SAM_PROTO_GetFieldsCounters done [09:59:48]requested_item shift.num is exist - process it [09:59:48]requested_item shift.opened is exist - process it [09:59:48]req_shift_opened [09:59:48]FM_GetShiftState [09:59:48]SAM_PROTO_GetShiftState [09:59:48]wFMCommunicate request_size=4 [09:59:48]MH_SAM_APDU [09:59:48]CAPDU: 80 13 01 00 [09:59:48]Write to MH i2c: E2 08 00 16 10 80 13 01 00 00 00 00 00 A3 [09:59:48]Write i2c OK [09:59:48]MH_I2C_Read... [09:59:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:49]Read from MH i2c: E2 [09:59:49]MH_I2C_Read... [09:59:49]Read from MH i2c: E2 0E 00 [09:59:49]MH_I2C_Read... [09:59:49]Read from MH i2c: E2 0E 00 16 10 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 29 [09:59:49]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:59:49]wFMCommunicate OK [09:59:49]SAM_PROTO_GetShiftState done [09:59:49]FM_GetShiftState done [09:59:49]req_shift_opened done [09:59:49]requested_item shift.open_date is exist - process it [09:59:49]req_shift_open_date [09:59:49]req_shift_open_date done [09:59:49]produce_requested_data done [09:59:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67620,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:59:49]process_action_free close_receipt [09:59:49]json_value_free [09:59:49]json_value_free done [09:59:49]process_json_proto returns [09:59:49]Send response to host [09:59:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67620,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:59:49]free response buf [09:59:49]execute_script done [09:59:49]execute_script returns [09:59:49]free content buf [09:59:49]Sock 7.Close socket [09:59:49]Sock 7.Thread stoped [09:59:51]OFD Sender: No OFD packet to send [09:59:53]accept exits with 9 [09:59:53]New connection [09:59:53]New thread 3067538788 created [09:59:53]Thread 3067395428 joined [09:59:53]Waiting for new connection... [09:59:53] Sock 9.Parse request [09:59:53]Sock 9.Check first char [09:59:53]Sock 9.First char is OK [09:59:53]request: POST /json_proto HTTP/1.0 [09:59:53]Method: POST [09:59:53]URL: /json_proto [09:59:53]Method is POST - this is cgi request [09:59:53]url: /json_proto [09:59:53]query_string will be loaded in cgi processing [09:59:53]execute_cgi json_proto POST (null) [09:59:53]execute_cgi path=json_proto method=POST [09:59:53]POST find Content-Length [09:59:53]Host: 172.17.41.195:8080 [09:59:53]Content-Length: 1179 [09:59:54]Content-Type: application/json [09:59:54] [09:59:54]POST finish read [09:59:54]Found Content-Length = 1179 [09: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507736\u000A17.05.2024 09:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:59:54]execute_script... [09: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507736\u000A17.05.2024 09:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:59:54]POST & json_proto [09:59:54]process_json_proto [09:59:54]json parsed OK: [09:59:54]protocol is kg_v1.0 [09:59:54]action value=print_text [09:59:54]process_action print_text [09:59:54]cmd_print_text [09:59:54]ExternCall_PrintAddStr [09:59:54]wPrintStart [09:59:54]Write to MH i2c: 01 00 00 17 10 27 [09:59:54]Write i2c OK [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: 01 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: 01 07 00 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: 01 07 00 17 10 00 00 00 00 00 FF 0F 3C [09:59:54]RasterBufferAndPrint [09:59:54]line *****ТОВАРНЫЙ ЧЕК***** [09:59:54]line АЗС-91 [09:59:54]line Партнер нефть [09:59:54]line 02508201610067 [09:59:54]line Кассир : Адишов И. [09:59:54]line Счет N : (1)507736 [09:59:54]line 17.05.2024 09:42 [09:59:54]line ПРОДАЖА [09:59:54]line ТРК (МРК, ГНК): 11 [09:59:54]line Вид ГСМ : 2710194210 [09:59:54]line ДТ-К-5 [09:59:54]line 26.780 x 74.70 [09:59:54]line ИТОГ: 2000.47 [09:59:54]line Тип оплаты: Талоны: Топливная Карта [09:59:54]line 02750 [09:59:54]line ______________________ [09:59:54]line (подпись) [09:59:54]written 0, free lines is 4095 [09:59:54]Write to MH i2c: 01 00 00 2B 10 3B [09:59:54]Write i2c OK [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: 01 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: 01 07 00 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: 01 07 00 2B 10 00 00 00 00 00 0C 0E 5C [09:59:54]RasterBufferAndPrint [09:59:54]line [09:59:54]line [09:59:54]line [09:59:54]line [09:59:54]line [09:59:54]written 0, free lines is 3598 [09:59:54]MH_Cut [09:59:54]Write to MH i2c: D1 01 00 32 10 01 14 [09:59:54]Write i2c OK [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: D1 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: D1 01 00 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: D1 01 00 32 10 00 13 [09:59:54]Write to MH i2c: 01 00 00 33 10 43 [09:59:54]Write i2c OK [09:59:54]MH_I2C_Read... [09:59:54]*** Cut start [09:59:54]*** Purtial cut [09:59:54]*** Stage 1: CUTSNS_PIN = 1 [09:59:55]Read from MH i2c: 01 [09:59:55]MH_I2C_Read... [09:59:55]*** Stop cut motor [09:59:55]*** Cut end [09:59:55]Read from MH i2c: 01 07 00 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 07 00 33 10 00 00 00 00 00 FF 0F 58 [09:59:55]process_action print_text done [09:59:55]requested_data is exist [09:59:55]produce_requested_data [09:59:55]requested_item fm.sn is exist - process it [09:59:55]wFMCommunicate request_size=4 [09:59:55]MH_SAM_APDU [09:59:55]CAPDU: 80 11 00 00 [09:59:55]Write to MH i2c: E2 08 00 34 10 80 11 00 00 00 00 00 00 BE [09:59:55]Write i2c OK [09:59:55]MH_I2C_Read... [09:59:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:55]Read from MH i2c: E2 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: E2 17 00 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: E2 17 00 34 10 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:59:55]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:55]wFMCommunicate OK [09:59:55]requested_item fd.num is exist - process it [09:59:55]SAM_PROTO_GetFieldsCounters [09:59:55]wFMCommunicate request_size=4 [09:59:55]MH_SAM_APDU [09:59:55]CAPDU: 80 13 00 00 [09:59:55]Write to MH i2c: E2 08 00 35 10 80 13 00 00 00 00 00 00 C1 [09:59:55]Write i2c OK [09:59:55]MH_I2C_Read... [09:59:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:55]Read from MH i2c: E2 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: E2 62 00 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: E2 62 00 35 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 24 08 01 00 0E 04 04 00 66 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 D2 [09:59: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 24 08 01 00 0E 04 04 00 66 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:59:55]wFMCommunicate OK [09:59:55]SAM_PROTO_GetFieldsCounters done [09:59:55]requested_item shift.num is exist - process it [09:59:55]requested_item shift.opened is exist - process it [09:59:55]req_shift_opened [09:59:55]FM_GetShiftState [09:59:55]SAM_PROTO_GetShiftState [09:59:55]wFMCommunicate request_size=4 [09:59:55]MH_SAM_APDU [09:59:55]CAPDU: 80 13 01 00 [09:59:55]Write to MH i2c: E2 08 00 36 10 80 13 01 00 00 00 00 00 C3 [09:59:55]Write i2c OK [09:59:55]MH_I2C_Read... [09:59:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:55]Read from MH i2c: E2 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: E2 0E 00 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: E2 0E 00 36 10 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 49 [09:59:55]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [09:59:55]wFMCommunicate OK [09:59:55]SAM_PROTO_GetShiftState done [09:59:55]FM_GetShiftState done [09:59:55]req_shift_opened done [09:59:55]requested_item shift.open_date is exist - process it [09:59:55]req_shift_open_date [09:59:55]req_shift_open_date done [09:59:55]produce_requested_data done [09:59:55]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67620,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [09:59:55]process_action_free print_text [09:59:55]json_value_free [09:59:55]json_value_free done [09:59:55]process_json_proto returns [09:59:55]Send response to host [09:59:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67620,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [09:59:55]free response buf [09:59:55]execute_script done [09:59:55]execute_script returns [09:59:55]free content buf [09:59:55]Sock 9.Close socket [09:59:55]Sock 9.Thread stoped [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:21]OFD Sender: No OFD packet to send [10:01:26]OFD Sender: No OFD packet to send [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:11]OFD Sender: No OFD packet to send [10:02:16]OFD Sender: No OFD packet to send [10:02:21]OFD Sender: No OFD packet to send [10:02:26]OFD Sender: No OFD packet to send [10:02:31]OFD Sender: No OFD packet to send [10:02:36]OFD Sender: No OFD packet to send [10:02:41]OFD Sender: No OFD packet to send [10:02:46]OFD Sender: No OFD packet to send [10:02:51]OFD Sender: No OFD packet to send [10:02:56]OFD Sender: No OFD packet to send [10:03:01]OFD Sender: No OFD packet to send [10:03:06]OFD Sender: No OFD packet to send [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:21]OFD Sender: No OFD packet to send [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:56]OFD Sender: No OFD packet to send [10:04:01]OFD Sender: No OFD packet to send [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:11]OFD Sender: No OFD packet to send [10:06:16]OFD Sender: No OFD packet to send [10:06:21]OFD Sender: No OFD packet to send [10:06:26]OFD Sender: No OFD packet to send [10:06:31]OFD Sender: No OFD packet to send [10:06:36]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:47]accept exits with 7 [10:07:47]New connection [10:07:47]New thread 3067395428 created [10:07:47]Thread 3067538788 joined [10:07:47]Waiting for new connection... [10:07:47] Sock 7.Parse request [10:07:47]Sock 7.Check first char [10:07:47]Sock 7.First char is OK [10:07:47]request: POST /json_proto HTTP/1.0 [10:07:47]Method: POST [10:07:47]URL: /json_proto [10:07:47]Method is POST - this is cgi request [10:07:47]url: /json_proto [10:07:47]query_string will be loaded in cgi processing [10:07:47]execute_cgi json_proto POST (null) [10:07:47]execute_cgi path=json_proto method=POST [10:07:47]POST find Content-Length [10:07:47]Host: 172.17.41.195:8080 [10:07:47]Content-Length: 1179 [10:07:47]Content-Type: application/json [10:07:47] [10:07:47]POST finish read [10:07:47]Found Content-Length = 1179 [10:07: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507738\u000A17.05.2024 09:50\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" ] } } [10:07:47]execute_script... [10:07: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507738\u000A17.05.2024 09:50\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" ] } } [10:07:47]POST & json_proto [10:07:47]process_json_proto [10:07:47]json parsed OK: [10:07:47]protocol is kg_v1.0 [10:07:47]action value=print_text [10:07:47]process_action print_text [10:07:47]cmd_print_text [10:07:47]ExternCall_PrintAddStr [10:07:47]wPrintStart [10:07:47]Write to MH i2c: 01 00 00 37 10 47 [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: 01 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: 01 07 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: 01 07 00 37 10 00 00 00 00 00 FF 0F 5C [10:07:47]RasterBufferAndPrint [10:07:47]line *****ТОВАРНЫЙ ЧЕК***** [10:07:47]line АЗС-91 [10:07:47]line Партнер нефть [10:07:47]line 02508201610067 [10:07:47]line Кассир : Адишов И. [10:07:47]line Счет N : (1)507738 [10:07:47]line 17.05.2024 09:50 [10:07:47]line ПРОДАЖА [10:07:47]line ТРК (МРК, ГНК): 21 [10:07:47]line Вид ГСМ : 2710194210 [10:07:47]line ДТ-К-5 [10:07:47]line 20.000 x 74.70 [10:07:47]line ИТОГ: 1494.00 [10:07:47]line Тип оплаты: Талоны: Топливная Карта [10:07:47]line 02750 [10:07:47]line ______________________ [10:07:47]line (подпись) [10:07:47]written 0, free lines is 4095 [10:07:47]Write to MH i2c: 01 00 00 4B 10 5B [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: 01 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: 01 07 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: 01 07 00 4B 10 00 00 00 00 00 0D 0E 7D [10:07:47]RasterBufferAndPrint [10:07:47]line [10:07:47]line [10:07:47]line [10:07:47]line [10:07:47]line [10:07:47]written 0, free lines is 3598 [10:07:47]MH_Cut [10:07:47]Write to MH i2c: D1 01 00 52 10 01 34 [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: D1 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: D1 01 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: D1 01 00 52 10 00 33 [10:07:47]Write to MH i2c: 01 00 00 53 10 63 [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:48]*** Cut start [10:07:48]*** Purtial cut [10:07:48]*** CUTSNS_PIN = 0 [10:07:48]*** Stage 1: CUTSNS_PIN = 1 [10:07:50]Read from MH i2c: 01 [10:07:50]MH_I2C_Read... [10:07:50]*** Stop cut motor [10:07:50]*** Cut end [10:07:50]Read from MH i2c: 01 07 00 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: 01 07 00 53 10 00 00 00 00 00 FF 0F 78 [10:07:50]process_action print_text done [10:07:50]requested_data is exist [10:07:50]produce_requested_data [10:07:50]requested_item fm.sn is exist - process it [10:07:50]wFMCommunicate request_size=4 [10:07:50]MH_SAM_APDU [10:07:50]CAPDU: 80 11 00 00 [10:07:50]Write to MH i2c: E2 08 00 54 10 80 11 00 00 00 00 00 00 DE [10:07:50]Write i2c OK [10:07:50]MH_I2C_Read... [10:07:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:50]Read from MH i2c: E2 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: E2 17 00 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: E2 17 00 54 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 34 [10:07: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:07:50]wFMCommunicate OK [10:07:50]requested_item fd.num is exist - process it [10:07:50]SAM_PROTO_GetFieldsCounters [10:07:50]wFMCommunicate request_size=4 [10:07:50]MH_SAM_APDU [10:07:50]CAPDU: 80 13 00 00 [10:07:50]Write to MH i2c: E2 08 00 55 10 80 13 00 00 00 00 00 00 E1 [10:07:50]Write i2c OK [10:07:50]MH_I2C_Read... [10:07:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:50]Read from MH i2c: E2 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: E2 62 00 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: E2 62 00 55 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 24 08 01 00 0E 04 04 00 66 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 F2 [10:07: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 24 08 01 00 0E 04 04 00 66 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 [10:07:50]wFMCommunicate OK [10:07:50]SAM_PROTO_GetFieldsCounters done [10:07:50]requested_item shift.num is exist - process it [10:07:50]requested_item shift.opened is exist - process it [10:07:50]req_shift_opened [10:07:50]FM_GetShiftState [10:07:50]SAM_PROTO_GetShiftState [10:07:50]wFMCommunicate request_size=4 [10:07:50]MH_SAM_APDU [10:07:50]CAPDU: 80 13 01 00 [10:07:50]Write to MH i2c: E2 08 00 56 10 80 13 01 00 00 00 00 00 E3 [10:07:50]Write i2c OK [10:07:50]MH_I2C_Read... [10:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:50]Read from MH i2c: E2 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: E2 0E 00 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: E2 0E 00 56 10 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 69 [10:07:50]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [10:07:50]wFMCommunicate OK [10:07:50]SAM_PROTO_GetShiftState done [10:07:50]FM_GetShiftState done [10:07:50]req_shift_opened done [10:07:50]requested_item shift.open_date is exist - process it [10:07:50]req_shift_open_date [10:07:50]req_shift_open_date done [10:07:50]produce_requested_data done [10:07:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67620,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [10:07:50]process_action_free print_text [10:07:50]json_value_free [10:07:50]json_value_free done [10:07:50]process_json_proto returns [10:07:50]Send response to host [10:07:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67620,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [10:07:50]free response buf [10:07:50]execute_script done [10:07:50]execute_script returns [10:07:50]free content buf [10:07:50]Sock 7.Close socket [10:07:50]Sock 7.Thread stoped [10:07:51]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:26]OFD Sender: No OFD packet to send [10:08:31]OFD Sender: No OFD packet to send [10:08:36]OFD Sender: No OFD packet to send [10:08:41]OFD Sender: No OFD packet to send [10:08:46]OFD Sender: No OFD packet to send [10:08:51]OFD Sender: No OFD packet to send [10:08:56]OFD Sender: No OFD packet to send [10:09:01]OFD Sender: No OFD packet to send [10:09:06]OFD Sender: No OFD packet to send [10:09:11]OFD Sender: No OFD packet to send [10:09:16]OFD Sender: No OFD packet to send [10:09:21]OFD Sender: No OFD packet to send [10:09:26]OFD Sender: No OFD packet to send [10:09:31]OFD Sender: No OFD packet to send [10:09:36]OFD Sender: No OFD packet to send [10:09:41]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:46]OFD Sender: No OFD packet to send [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:18:39]ConnectInit Can't connect to host [10:18:44]OFD Sender: Processing packet 67621 [packets to send 36, broken 34] [10:18:44]ProducePacketName [10:18:44]name=ofd_packets/00067621 [10:18:44]OFD Sender: To server: pG, [10:18:44]CommunicateWithHost lk.salyk.kg:30040 [10:18:44]ConnectInit lk.salyk.kg [10:18:44]Connected sock=9 [10:18:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 61 1E 07 01 1D 7F 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 1E 00 00 00 F4 03 04 00 CF 2D 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 25 60 DB 4C 26 01 33 BE E8 C1 81 D1 A9 55 [10:18: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 5A E9 47 00 F5 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 25 08 01 00 F4 03 04 00 DD D6 46 66 B6 04 01 00 00 23 0F 8A 0E 9B EB 7F 8A [10:18:44]CommunicateWithHost err = 0 [10:18:44]CheckOFDResponse [10:18:44]1017 (14) - 77093643461234 [10:18:44]1041 (16) - 0000000000871829 [10:18:44]1040 (4) - 67621 [10:18:44]1012 (4) - 17.05.2024 04:02 [10:18:44]1206 (1) - 0 [10:18:44]OFD Sender: Remove packet 67621 [10:18:44]ProducePacketName [10:18:44]name=ofd_packets/00067621 [10:18:44]NVStorageDeleteData [10:18:45]OFD Sender: Processing packet 67622 [packets to send 35, broken 34] [10:18:45]ProducePacketName [10:18:45]name=ofd_packets/00067622 [10:18:45]OFD Sender: To server: pG, [10:18:45]CommunicateWithHost lk.salyk.kg:30040 [10:18:45]ConnectInit lk.salyk.kg [10:18:45]Connected sock=9 [10:18: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 EB A9 08 01 25 02 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 1F 00 00 00 F4 03 04 00 83 2E 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 D4 32 AF 49 51 D2 7E F6 D0 19 5E 0E 35 03 [10:18: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 E5 E8 47 00 A2 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 26 08 01 00 F4 03 04 00 DE D6 46 66 B6 04 01 00 00 0C 9B E7 34 F7 DD 2C FC [10:18:45]CommunicateWithHost err = 0 [10:18:45]CheckOFDResponse [10:18:45]1017 (14) - 77093643461234 [10:18:45]1041 (16) - 0000000000871829 [10:18:45]1040 (4) - 67622 [10:18:45]1012 (4) - 17.05.2024 04:02 [10:18:45]1206 (1) - 0 [10:18:45]OFD Sender: Remove packet 67622 [10:18:45]ProducePacketName [10:18:45]name=ofd_packets/00067622 [10:18:45]NVStorageDeleteData [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]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:27]accept exits with 7 [10:20:27]New connection [10:20:27]New thread 3067395428 created [10:20:27]Thread 3067538788 joined [10:20:27]Waiting for new connection... [10:20:27] Sock 7.Parse request [10:20:27]Sock 7.Check first char [10:20:27]Sock 7.First char is OK [10:20:27]request: POST /json_proto HTTP/1.0 [10:20:27]Method: POST [10:20:27]URL: /json_proto [10:20:27]Method is POST - this is cgi request [10:20:27]url: /json_proto [10:20:27]query_string will be loaded in cgi processing [10:20:27]execute_cgi json_proto POST (null) [10:20:27]execute_cgi path=json_proto method=POST [10:20:27]POST find Content-Length [10:20:27]Host: 172.17.41.195:8080 [10:20:27]Content-Length: 682 [10:20:27]Content-Type: application/json [10:20:27] [10:20:27]POST finish read [10:20:27]Found Content-Length = 682 [10:20:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507742", "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:20:27]execute_script... [10:20: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)507742", "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:20:27]POST & json_proto [10:20:27]process_json_proto [10:20:27]json parsed OK: [10:20:27]protocol is kg_v1.0 [10:20:27]action value=close_receipt [10:20:27]process_action close_receipt [10:20:27]cmd_close_receipt [10:20:27]MH_GetDate [10:20:27]Write to MH i2c: F0 00 00 0B 11 0B [10:20:27]Write i2c OK [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: F0 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: F0 09 00 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: F0 09 00 0B 11 00 6E 2F 47 66 FC 21 6F 64 4E [10:20:27]GetLastDocTimeStamp 1715940995 [10:20:27]current date 1715941230 [10:20:27]FM_GetShiftState [10:20:27]SAM_PROTO_GetShiftState [10:20:27]wFMCommunicate request_size=4 [10:20:27]MH_SAM_APDU [10:20:27]CAPDU: 80 13 01 00 [10:20:27]Write to MH i2c: E2 08 00 0C 11 80 13 01 00 00 00 00 00 9A [10:20:27]Write i2c OK [10:20:27]MH_I2C_Read... [10:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:27]Read from MH i2c: E2 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 0E 00 [10:20:27]MH_I2C_Read... [10:20:27]Read from MH i2c: E2 0E 00 0C 11 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 20 [10:20:27]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [10:20:27]wFMCommunicate OK [10:20:27]SAM_PROTO_GetShiftState done [10:20:27]FM_GetShiftState done [10:20:27]opened in 1715905068 [10:20:27]opened+sec_in_day 1715991468 [10:20:27]quantity*price = 100066 [10:20:27]sum+1 = 100067 [10:20:27]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 СНО: Общий режим Чек 32 17.05.2024 10:20 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67623 ФПД: 130865946962842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T102030&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67623&fm=130865946962842&tin=02508201610067®Number=0000000000091845&sum=100000 [10:20:28]StoreToDocumentArchive [10:20:28]shift 358 fd 67623 [10:20:28]save to /storage/0358/doc_00067623 [10:20:28]save last doc name /storage/0358/doc_00067623 to /storage/kkm_last_doc_name [10:20:28]save OK [10:20:28]Clear old archive folders... [10:20:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:28]tlvbuf is 015E3070 [10:20:28]SAM_PROTO_ClearQueue [10:20:28]wFMCommunicate request_size=4 [10:20:28]MH_SAM_APDU [10:20:28]CAPDU: 80 09 00 00 [10:20:28]Write to MH i2c: E2 08 00 19 11 80 09 00 00 00 00 00 00 9C [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 [10:20:28]MH_I2C_Read... [10:20:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:28]Read from MH i2c: E2 03 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 03 00 19 11 00 90 00 9E [10:20:28]RAPDU: 90 00 [10:20:28]wFMCommunicate OK [10:20:28]SAM_PROTO_ClearQueue done [10:20:28]KKMCreateOFDPacket [10:20:28]OFDProtocolAddRootSTLVToBuf [10:20:28]FM_MakeSignedData [10:20:28]FM_MakeSignedData [10:20:28]SAM_PROTO_SignData [10:20:28]wFMCommunicate request_size=4 [10:20:28]MH_SAM_APDU [10:20:28]CAPDU: 80 0D 01 02 [10:20:28]Write to MH i2c: E2 08 00 1A 11 80 0D 01 02 00 00 00 00 A4 [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:28]Read from MH i2c: E2 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 03 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 03 00 1A 11 00 90 00 9F [10:20:28]RAPDU: 90 00 [10:20:28]wFMCommunicate OK [10:20:28]wFMCommunicate request_size=255 [10:20:28]MH_SAM_APDU [10:20: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 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 20 00 00 00 F4 03 04 00 6E 2F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 77 [10:20:28]Write to MH i2c: E2 02 01 1B 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 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 20 00 00 00 F4 03 04 00 6E 2F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 77 00 00 F5 [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:28]Read from MH i2c: E2 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 03 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 03 00 1B 11 00 90 00 A0 [10:20:28]RAPDU: 90 00 [10:20:28]wFMCommunicate OK [10:20:28]wFMCommunicate request_size=10 [10:20:28]MH_SAM_APDU [10:20:28]CAPDU: 80 0D 02 02 05 05 9A 48 2B 9A [10:20:28]Write to MH i2c: E2 0D 00 1C 11 80 0D 02 02 05 00 05 9A 48 2B 9A 00 00 5D [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:28]Read from MH i2c: E2 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 03 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 03 00 1C 11 00 90 00 A1 [10:20:28]RAPDU: 90 00 [10:20:28]wFMCommunicate OK [10:20:28]wFMCommunicate request_size=4 [10:20:28]MH_SAM_APDU [10:20:28]CAPDU: 80 0D 03 02 [10:20:28]Write to MH i2c: E2 08 00 1D 11 80 0D 03 02 00 00 00 00 A9 [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:28]Read from MH i2c: E2 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 0B 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 0B 00 1D 11 00 AF 26 66 D2 9D 2B 1B 67 90 00 01 [10:20:28]RAPDU: AF 26 66 D2 9D 2B 1B 67 90 00 [10:20:28]wFMCommunicate OK [10:20:28]SAM_PROTO_SignData done [10:20:28]FM_MakeSignedData done [10:20:28]CreateOFDProtocolMessage [10:20:28]wFMCommunicate request_size=4 [10:20:28]MH_SAM_APDU [10:20:28]CAPDU: 80 11 00 00 [10:20:28]Write to MH i2c: E2 08 00 1E 11 80 11 00 00 00 00 00 00 A9 [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:28]Read from MH i2c: E2 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 17 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: E2 17 00 1E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FF [10:20:28]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:28]wFMCommunicate OK [10:20:28]CreateOFDProtocolMessage done [10:20:28]OFDSenderStorePacket 67623 [10:20:28]StoreOFDPacket docnum=67623 [10:20: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 41 1C 07 01 F0 D1 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 20 00 00 00 F4 03 04 00 6E 2F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 77 05 9A 48 2B 9A AF 26 66 D2 9D 2B 1B 67 [10:20:28]CheckFolder [10:20:28]dirname=/storage/ofd_packets [10:20:28]CheckFolder done [10:20:28]ProducePacketName [10:20:28]name=ofd_packets/00067623 [10:20:28]NVStorageSaveData ofd_packets/00067623 [10:20:28]File name is /storage/ofd_packets/00067623 [10:20:28]Write 301 bytes [10:20:28]NVStorageSaveData done [10:20:28]OFDSenderStorePacket done [10:20:28]KKMCreateOFDPacket done [10:20:28]NVStorageSaveData kkm_last_timestamp [10:20:28]File name is /storage/kkm_last_timestamp [10:20:28]Write 4 bytes [10:20:28]NVStorageSaveData done [10:20:28]ExternCall_PrintAddStr [10:20:28]wPrintStart [10:20:28]Write to MH i2c: 01 00 00 1F 11 30 [10:20:28]Write i2c OK [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: 01 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: 01 07 00 [10:20:28]MH_I2C_Read... [10:20:28]Read from MH i2c: 01 07 00 1F 11 00 00 00 00 00 FF 0F 45 [10:20:28]RasterBufferAndPrint [10:20:28]line Счет N : (1)507742 [10:20:28]line ИНН: 02508201610067 [10:20:28]line Контрольно-Кассовый Чек [10:20:28]line ПРОДАЖА [10:20:28]line ТРК (МРК, ГНК) : 33 [10:20:28]line Товар: 2710124130 [10:20:28]line Аи-92-К-5 [10:20:28]line 14.980 * 66.80 [10:20:28]line = 1000.66 [10:20:28]line НДС 12% НСП 1% [10:20:28]line > о реализуемом товаре [10:20:28]line ОКРУГЛЕНИЕ: -0.66 [10:20:28]line ИТОГО: 1000.00 [10:20:28]line Внесено: 1000.00 [10:20:28]line СДАЧА: 0.00 [10:20:28]line НСП 1% : 8.85 [10:20:28]line НДС 12% : 106.26 [10:20:28]line Наличными: 1000.00 [10:20:28]line Безнал.: 0.00 [10:20:28]line Место: АЗС № 91 "Партнер Нефть" [10:20:28]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:20:28]line СНО: Общий режим [10:20:28]line Чек 32 17.05.2024 10:20 [10:20:28]line Смена: 358 ФФД: 1.0 [10:20:28]line ЗНМ: 0300000119 [10:20:28]line РНМ: 0000000000091845 [10:20:28]line Версия ККМ: 001 [10:20:28]line ФМ: 0000000000871829 [10:20:28]line ФД: 67623 [10:20:28]line ФПД: 130865946962842 [10:20:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T102030&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67623&fm=130865946962842&tin=02508201610067®Number=0000000000091845&sum=100000 [10:20:29]written 0, free lines is 4095 [10:20:29]OFD Sender: Processing packet 67623 [packets to send 35, broken 34] [10:20:29]ProducePacketName [10:20:29]name=ofd_packets/00067623 [10:20:29]OFD Sender: To server: pG, [10:20:29]CommunicateWithHost lk.salyk.kg:30040 [10:20:29]ConnectInit lk.salyk.kg [10:20:29]Connected sock=10 [10:20: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 41 1C 07 01 F0 D1 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 20 00 00 00 F4 03 04 00 6E 2F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 77 05 9A 48 2B 9A AF 26 66 D2 9D 2B 1B 67 [10:20: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 B8 B0 47 00 15 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 27 08 01 00 F4 03 04 00 46 D7 46 66 B6 04 01 00 00 B6 59 38 8A 80 36 15 0E [10:20:29]CommunicateWithHost err = 0 [10:20:29]CheckOFDResponse [10:20:29]1017 (14) - 77093643461234 [10:20:29]1041 (16) - 0000000000871829 [10:20:29]1040 (4) - 67623 [10:20:29]1012 (4) - 17.05.2024 04:04 [10:20:29]1206 (1) - 0 [10:20:29]OFD Sender: Remove packet 67623 [10:20:29]ProducePacketName [10:20:29]name=ofd_packets/00067623 [10:20:29]NVStorageDeleteData [10:20:29]Write to MH i2c: 01 00 00 49 11 5A [10:20:29]Write i2c OK [10:20:29]MH_I2C_Read... [10:20:29]Read from MH i2c: 01 [10:20:29]MH_I2C_Read... [10:20:29]Read from MH i2c: 01 07 00 [10:20:29]MH_I2C_Read... [10:20:29]Read from MH i2c: 01 07 00 49 11 00 00 00 00 00 D8 0C 45 [10:20:29]RasterBufferAndPrint [10:20:29]line [10:20:29]line [10:20:29]line [10:20:29]line [10:20:29]line [10:20:29]written 0, free lines is 3295 [10:20:29]MH_Cut [10:20:29]Write to MH i2c: D1 01 00 50 11 01 33 [10:20:29]Write i2c OK [10:20:29]MH_I2C_Read... [10:20:29]Read from MH i2c: D1 [10:20:29]MH_I2C_Read... [10:20:29]Read from MH i2c: D1 01 00 [10:20:29]MH_I2C_Read... [10:20:29]Read from MH i2c: D1 01 00 50 11 00 32 [10:20:29]Write to MH i2c: 01 00 00 51 11 62 [10:20:29]Write i2c OK [10:20:29]MH_I2C_Read... [10:20:30]OFD Sender: No OFD packet to send [10:20:30]*** Cut start [10:20:30]*** Purtial cut [10:20:30]*** CUTSNS_PIN = 0 [10:20:30]*** Stage 1: CUTSNS_PIN = 1 [10:20:32]Read from MH i2c: 01 [10:20:32]MH_I2C_Read... [10:20:32]*** Stop cut motor [10:20:32]*** Cut end [10:20:32]Read from MH i2c: 01 07 00 [10:20:32]MH_I2C_Read... [10:20:32]Read from MH i2c: 01 07 00 51 11 00 00 00 00 00 FF 0F 77 [10:20:32]process_action close_receipt done [10:20:32]requested_data is exist [10:20:32]produce_requested_data [10:20:32]requested_item fm.sn is exist - process it [10:20:32]wFMCommunicate request_size=4 [10:20:32]MH_SAM_APDU [10:20:32]CAPDU: 80 11 00 00 [10:20:32]Write to MH i2c: E2 08 00 52 11 80 11 00 00 00 00 00 00 DD [10:20:32]Write i2c OK [10:20:32]MH_I2C_Read... [10:20:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:32]Read from MH i2c: E2 [10:20:32]MH_I2C_Read... [10:20:32]Read from MH i2c: E2 17 00 [10:20:32]MH_I2C_Read... [10:20:32]Read from MH i2c: E2 17 00 52 11 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:20:32]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:32]wFMCommunicate OK [10:20:32]requested_item fd.num is exist - process it [10:20:32]SAM_PROTO_GetFieldsCounters [10:20:32]wFMCommunicate request_size=4 [10:20:32]MH_SAM_APDU [10:20:32]CAPDU: 80 13 00 00 [10:20:32]Write to MH i2c: E2 08 00 53 11 80 13 00 00 00 00 00 00 E0 [10:20:32]Write i2c OK [10:20:32]MH_I2C_Read... [10:20:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:32]Read from MH i2c: E2 [10:20:32]MH_I2C_Read... [10:20:32]Read from MH i2c: E2 62 00 [10:20:32]MH_I2C_Read... [10:20:32]Read from MH i2c: E2 62 00 53 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 27 08 01 00 0E 04 04 00 66 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 FD [10:20: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 27 08 01 00 0E 04 04 00 66 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 [10:20:32]wFMCommunicate OK [10:20:32]SAM_PROTO_GetFieldsCounters done [10:20:32]requested_item shift.num is exist - process it [10:20:32]requested_item shift.opened is exist - process it [10:20:32]req_shift_opened [10:20:32]FM_GetShiftState [10:20:32]SAM_PROTO_GetShiftState [10:20:32]wFMCommunicate request_size=4 [10:20:32]MH_SAM_APDU [10:20:32]CAPDU: 80 13 01 00 [10:20:32]Write to MH i2c: E2 08 00 54 11 80 13 01 00 00 00 00 00 E2 [10:20:32]Write i2c OK [10:20:32]MH_I2C_Read... [10:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:32]Read from MH i2c: E2 [10:20:32]MH_I2C_Read... [10:20:32]Read from MH i2c: E2 0E 00 [10:20:32]MH_I2C_Read... [10:20:32]Read from MH i2c: E2 0E 00 54 11 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 68 [10:20:32]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [10:20:32]wFMCommunicate OK [10:20:32]SAM_PROTO_GetShiftState done [10:20:32]FM_GetShiftState done [10:20:32]req_shift_opened done [10:20:32]requested_item shift.open_date is exist - process it [10:20:32]req_shift_open_date [10:20:32]req_shift_open_date done [10:20:32]produce_requested_data done [10:20:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67623,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [10:20:32]process_action_free close_receipt [10:20:32]json_value_free [10:20:32]json_value_free done [10:20:32]process_json_proto returns [10:20:32]Send response to host [10:20:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67623,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [10:20:32]free response buf [10:20:32]execute_script done [10:20:32]execute_script returns [10:20:32]free content buf [10:20:32]Sock 7.Close socket [10:20:32]Sock 7.Thread stoped [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [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:06]accept exits with 9 [10:22:06]New connection [10:22:06]New thread 3067538788 created [10:22:06]Thread 3067395428 joined [10:22:06]Waiting for new connection... [10:22:06] Sock 9.Parse request [10:22:06]Sock 9.Check first char [10:22:06]Sock 9.First char is OK [10:22:06]request: POST /json_proto HTTP/1.0 [10:22:06]Method: POST [10:22:06]URL: /json_proto [10:22:06]Method is POST - this is cgi request [10:22:06]url: /json_proto [10:22:06]query_string will be loaded in cgi processing [10:22:06]execute_cgi json_proto POST (null) [10:22:06]execute_cgi path=json_proto method=POST [10:22:06]POST find Content-Length [10:22:06]Host: 172.17.41.195:8080 [10:22:06]Content-Length: 632 [10:22:06]Content-Type: application/json [10:22:06] [10:22:06]POST finish read [10:22:06]Found Content-Length = 632 [10:22:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12097", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:06]execute_script... [10: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 : (3)12097", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:06]POST & json_proto [10:22:06]process_json_proto [10:22:06]json parsed OK: [10:22:06]protocol is kg_v1.0 [10:22:06]action value=close_receipt [10:22:06]process_action close_receipt [10:22:06]cmd_close_receipt [10:22:06]MH_GetDate [10:22:06]Write to MH i2c: F0 00 00 55 11 55 [10:22:06]Write i2c OK [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: F0 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: F0 09 00 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: F0 09 00 55 11 00 D1 2F 47 66 FC 21 6F 64 FB [10:22:06]GetLastDocTimeStamp 1715941230 [10:22:06]current date 1715941329 [10:22:06]FM_GetShiftState [10:22:06]SAM_PROTO_GetShiftState [10:22:06]wFMCommunicate request_size=4 [10:22:06]MH_SAM_APDU [10:22:06]CAPDU: 80 13 01 00 [10:22:06]Write to MH i2c: E2 08 00 56 11 80 13 01 00 00 00 00 00 E4 [10:22:06]Write i2c OK [10:22:06]MH_I2C_Read... [10:22:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:06]Read from MH i2c: E2 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: E2 0E 00 [10:22:06]MH_I2C_Read... [10:22:06]Read from MH i2c: E2 0E 00 56 11 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 6A [10:22:06]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [10:22:06]wFMCommunicate OK [10:22:06]SAM_PROTO_GetShiftState done [10:22:06]FM_GetShiftState done [10:22:06]opened in 1715905068 [10:22:06]opened+sec_in_day 1715991468 [10:22:06]quantity*price = 7000 [10:22:06]sum+1 = 7001 [10:22:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 33 17.05.2024 10:22 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67624 ФПД: 35869363280473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T102209&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67624&fm=35869363280473&tin=02508201610067®Number=0000000000091845&sum=7000 0 [10:22:07]StoreToDocumentArchive [10:22:07]shift 358 fd 67624 [10:22:07]save to /storage/0358/doc_00067624 [10:22:07]save last doc name /storage/0358/doc_00067624 to /storage/kkm_last_doc_name [10:22:07]save OK [10:22:07]Clear old archive folders... [10:22:07]ProcessDocumentItem done err = 0, tmpTLVsize=268 [10:22:07]tlvbuf is 015C7410 [10:22:07]SAM_PROTO_ClearQueue [10:22:07]wFMCommunicate request_size=4 [10:22:07]MH_SAM_APDU [10:22:07]CAPDU: 80 09 00 00 [10:22:07]Write to MH i2c: E2 08 00 63 11 80 09 00 00 00 00 00 00 E6 [10:22:07]Write i2c OK [10:22:07]MH_I2C_Read... [10:22:07]Read from MH i2c: E2 [10:22:07]MH_I2C_Read... [10:22:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:07]Read from MH i2c: E2 03 00 [10:22:07]MH_I2C_Read... [10:22:07]Read from MH i2c: E2 03 00 63 11 00 90 00 E8 [10:22:07]RAPDU: 90 00 [10:22:07]wFMCommunicate OK [10:22:07]SAM_PROTO_ClearQueue done [10:22:07]KKMCreateOFDPacket [10:22:07]OFDProtocolAddRootSTLVToBuf [10:22:07]FM_MakeSignedData [10:22:07]FM_MakeSignedData [10:22:07]SAM_PROTO_SignData [10:22:07]wFMCommunicate request_size=4 [10:22:07]MH_SAM_APDU [10:22:07]CAPDU: 80 0D 01 02 [10:22:07]Write to MH i2c: E2 08 00 64 11 80 0D 01 02 00 00 00 00 EE [10:22:07]Write i2c OK [10:22:07]MH_I2C_Read... [10:22:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:07]Read from MH i2c: E2 [10:22:07]MH_I2C_Read... [10:22:07]Read from MH i2c: E2 03 00 [10:22:07]MH_I2C_Read... [10:22:07]Read from MH i2c: E2 03 00 64 11 00 90 00 E9 [10:22:07]RAPDU: 90 00 [10:22:07]wFMCommunicate OK [10:22:07]wFMCommunicate request_size=255 [10:22:07]MH_SAM_APDU [10:22:07]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 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 D1 2F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [10:22:07]Write to MH i2c: E2 02 01 65 11 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 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 D1 2F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 6E [10:22:07]Write i2c OK [10:22:07]MH_I2C_Read... [10:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:08]Read from MH i2c: E2 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 03 00 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 03 00 65 11 00 90 00 EA [10:22:08]RAPDU: 90 00 [10:22:08]wFMCommunicate OK [10:22:08]wFMCommunicate request_size=27 [10:22:08]MH_SAM_APDU [10:22:08]CAPDU: 80 0D 02 02 16 31 38 32 39 10 04 04 00 28 08 01 00 35 04 06 00 20 9F 7C A8 1A 59 [10:22:08]Write to MH i2c: E2 1E 00 66 11 80 0D 02 02 16 00 31 38 32 39 10 04 04 00 28 08 01 00 35 04 06 00 20 9F 7C A8 1A 59 00 00 CF [10:22:08]Write i2c OK [10:22:08]MH_I2C_Read... [10:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:08]Read from MH i2c: E2 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 03 00 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 03 00 66 11 00 90 00 EB [10:22:08]RAPDU: 90 00 [10:22:08]wFMCommunicate OK [10:22:08]wFMCommunicate request_size=4 [10:22:08]MH_SAM_APDU [10:22:08]CAPDU: 80 0D 03 02 [10:22:08]Write to MH i2c: E2 08 00 67 11 80 0D 03 02 00 00 00 00 F3 [10:22:08]Write i2c OK [10:22:08]MH_I2C_Read... [10:22:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:08]Read from MH i2c: E2 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 0B 00 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 0B 00 67 11 00 88 77 C5 FC 25 75 3A 1A 90 00 A2 [10:22:08]RAPDU: 88 77 C5 FC 25 75 3A 1A 90 00 [10:22:08]wFMCommunicate OK [10:22:08]SAM_PROTO_SignData done [10:22:08]FM_MakeSignedData done [10:22:08]CreateOFDProtocolMessage [10:22:08]wFMCommunicate request_size=4 [10:22:08]MH_SAM_APDU [10:22:08]CAPDU: 80 11 00 00 [10:22:08]Write to MH i2c: E2 08 00 68 11 80 11 00 00 00 00 00 00 F3 [10:22:08]Write i2c OK [10:22:08]MH_I2C_Read... [10:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:08]Read from MH i2c: E2 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 17 00 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 17 00 68 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 49 [10: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 [10:22:08]wFMCommunicate OK [10:22:08]CreateOFDProtocolMessage done [10:22:08]OFDSenderStorePacket 67624 [10:22:08]StoreOFDPacket docnum=67624 [10: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 20 01 00 00 42 35 18 01 2F 15 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 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 D1 2F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 20 9F 7C A8 1A 59 88 77 C5 FC 25 75 3A 1A [10:22:08]CheckFolder [10:22:08]dirname=/storage/ofd_packets [10:22:08]CheckFolder done [10:22:08]ProducePacketName [10:22:08]name=ofd_packets/00067624 [10:22:08]NVStorageSaveData ofd_packets/00067624 [10:22:08]File name is /storage/ofd_packets/00067624 [10:22:08]Write 318 bytes [10:22:08]NVStorageSaveData done [10:22:08]OFDSenderStorePacket done [10:22:08]KKMCreateOFDPacket done [10:22:08]NVStorageSaveData kkm_last_timestamp [10:22:08]File name is /storage/kkm_last_timestamp [10:22:08]Write 4 bytes [10:22:08]NVStorageSaveData done [10:22:08]ExternCall_PrintAddStr [10:22:08]wPrintStart [10:22:08]Write to MH i2c: 01 00 00 69 11 7A [10:22:08]Write i2c OK [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: 01 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: 01 07 00 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: 01 07 00 69 11 00 00 00 00 00 FF 0F 8F [10:22:08]RasterBufferAndPrint [10:22:08]line Счет N : (3)12097 [10:22:08]line ИНН: 02508201610067 [10:22:08]line Контрольно-Кассовый Чек [10:22:08]line ПРОДАЖА [10:22:08]line Товар: 40822938 [10:22:08]line Напиток Фанта 0,5л [10:22:08]line 1.000 * 70.00 [10:22:08]line = 70.00 [10:22:08]line НДС 12% НСП 1% [10:22:08]line > о реализуемом товаре [10:22:08]line ИТОГО: 70.00 [10:22:08]line НСП 1% : 0.62 [10:22:08]line НДС 12% : 7.43 [10:22:08]line Наличными: 70.00 [10:22:08]line Безнал.: 0.00 [10:22:08]line Место: АЗС № 91 "Партнер Нефть" [10:22:08]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:22:08]line СНО: Общий режим [10:22:08]line Чек 33 17.05.2024 10:22 [10:22:08]line Смена: 358 ФФД: 1.0 [10:22:08]line ЗНМ: 0300000119 [10:22:08]line РНМ: 0000000000091845 [10:22:08]line Версия ККМ: 001 [10:22:08]line ФМ: 0000000000871829 [10:22:08]line ФД: 67624 [10:22:08]line ФПД: 35869363280473 [10:22:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T102209&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67624&fm=35869363280473&tin=02508201610067®Number=0000000000091845&sum=7000 [10:22:08]line 0 [10:22:08]OFD Sender: Processing packet 67624 [packets to send 35, broken 34] [10:22:08]ProducePacketName [10:22:08]name=ofd_packets/00067624 [10:22:08]OFD Sender: To server: pG, [10:22:08]CommunicateWithHost lk.salyk.kg:30040 [10:22:08]ConnectInit lk.salyk.kg [10:22:08]written 0, free lines is 4095 [10:22:08]Connected sock=7 [10: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 20 01 00 00 42 35 18 01 2F 15 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 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 D1 2F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 20 9F 7C A8 1A 59 88 77 C5 FC 25 75 3A 1A [10:22: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 AE E8 47 00 4A 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 28 08 01 00 F4 03 04 00 A9 D7 46 66 B6 04 01 00 00 0A EF AB 33 DD 50 C3 26 [10:22:08]CommunicateWithHost err = 0 [10:22:08]CheckOFDResponse [10:22:08]1017 (14) - 77093643461234 [10:22:08]1041 (16) - 0000000000871829 [10:22:08]1040 (4) - 67624 [10:22:08]1012 (4) - 17.05.2024 04:06 [10:22:08]1206 (1) - 0 [10:22:08]OFD Sender: Remove packet 67624 [10:22:08]ProducePacketName [10:22:08]name=ofd_packets/00067624 [10:22:08]NVStorageDeleteData [10:22:09]Write to MH i2c: 01 00 00 90 11 A1 [10:22:09]Write i2c OK [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: 01 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: 01 07 00 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: 01 07 00 90 11 00 00 00 00 00 F9 0C AD [10:22:09]RasterBufferAndPrint [10:22:09]line [10:22:09]line [10:22:09]line [10:22:09]line [10:22:09]line [10:22:09]written 0, free lines is 3327 [10:22:09]MH_Cut [10:22:09]Write to MH i2c: D1 01 00 97 11 01 7A [10:22:09]Write i2c OK [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: D1 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: D1 01 00 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: D1 01 00 97 11 00 79 [10:22:09]Write to MH i2c: 01 00 00 98 11 A9 [10:22:09]Write i2c OK [10:22:09]MH_I2C_Read... [10:22:09]OFD Sender: No OFD packet to send [10:22:09]*** Cut start [10:22:09]*** Purtial cut [10:22:09]*** Stage 1: CUTSNS_PIN = 1 [10:22:10]Read from MH i2c: 01 [10:22:10]MH_I2C_Read... [10:22:10]*** Stop cut motor [10:22:10]*** Cut end [10:22:10]Read from MH i2c: 01 07 00 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: 01 07 00 98 11 00 00 00 00 00 FF 0F BE [10:22:10]process_action close_receipt done [10:22:10]requested_data is exist [10:22:10]produce_requested_data [10:22:10]requested_item fm.sn is exist - process it [10:22:10]wFMCommunicate request_size=4 [10:22:10]MH_SAM_APDU [10:22:10]CAPDU: 80 11 00 00 [10:22:10]Write to MH i2c: E2 08 00 99 11 80 11 00 00 00 00 00 00 24 [10:22:10]Write i2c OK [10:22:10]MH_I2C_Read... [10:22:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:10]Read from MH i2c: E2 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 17 00 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 17 00 99 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7A [10: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 [10:22:10]wFMCommunicate OK [10:22:10]requested_item fd.num is exist - process it [10:22:10]SAM_PROTO_GetFieldsCounters [10:22:10]wFMCommunicate request_size=4 [10:22:10]MH_SAM_APDU [10:22:10]CAPDU: 80 13 00 00 [10:22:10]Write to MH i2c: E2 08 00 9A 11 80 13 00 00 00 00 00 00 27 [10:22:10]Write i2c OK [10:22:10]MH_I2C_Read... [10:22:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:10]Read from MH i2c: E2 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 62 00 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 62 00 9A 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 28 08 01 00 0E 04 04 00 66 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 48 [10: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 28 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:10]wFMCommunicate OK [10:22:10]SAM_PROTO_GetFieldsCounters done [10:22:10]requested_item shift.num is exist - process it [10:22:10]requested_item shift.opened is exist - process it [10:22:10]req_shift_opened [10:22:10]FM_GetShiftState [10:22:10]SAM_PROTO_GetShiftState [10:22:10]wFMCommunicate request_size=4 [10:22:10]MH_SAM_APDU [10:22:10]CAPDU: 80 13 01 00 [10:22:10]Write to MH i2c: E2 08 00 9B 11 80 13 01 00 00 00 00 00 29 [10:22:10]Write i2c OK [10:22:10]MH_I2C_Read... [10:22:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:10]Read from MH i2c: E2 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 0E 00 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 0E 00 9B 11 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 AF [10:22:10]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [10:22:10]wFMCommunicate OK [10:22:10]SAM_PROTO_GetShiftState done [10:22:10]FM_GetShiftState done [10:22:10]req_shift_opened done [10:22:10]requested_item shift.open_date is exist - process it [10:22:10]req_shift_open_date [10:22:10]req_shift_open_date done [10:22:10]produce_requested_data done [10:22:10]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67624,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [10:22:10]process_action_free close_receipt [10:22:10]json_value_free [10:22:10]json_value_free done [10:22:10]process_json_proto returns [10:22:10]Send response to host [10:22:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67624,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [10:22:10]free response buf [10:22:10]execute_script done [10:22:10]execute_script returns [10:22:10]free content buf [10:22:10]Sock 9.Close socket [10:22:10]Sock 9.Thread stoped [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:30]accept exits with 10 [10:22:30]New connection [10:22:30]New thread 3067395428 created [10:22:30]Thread 3067538788 joined [10:22:30]Waiting for new connection... [10:22:30] Sock 10.Parse request [10:22:30]Sock 10.Check first char [10:22:30]Sock 10.First char is OK [10:22:30]request: POST /json_proto HTTP/1.0 [10:22:30]Method: POST [10:22:30]URL: /json_proto [10:22:30]Method is POST - this is cgi request [10:22:30]url: /json_proto [10:22:30]query_string will be loaded in cgi processing [10:22:30]execute_cgi json_proto POST (null) [10:22:30]execute_cgi path=json_proto method=POST [10:22:30]POST find Content-Length [10:22:30]Host: 172.17.41.195:8080 [10:22:30]Content-Length: 1179 [10:22:30]Content-Type: application/json [10:22:30] [10:22:30]POST finish read [10:22:30]Found Content-Length = 1179 [10:22: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507743\u000A17.05.2024 10:05\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" ] } } [10:22:30]execute_script... [10:22: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507743\u000A17.05.2024 10:05\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" ] } } [10:22:30]POST & json_proto [10:22:30]process_json_proto [10:22:30]json parsed OK: [10:22:30]protocol is kg_v1.0 [10:22:30]action value=print_text [10:22:30]process_action print_text [10:22:30]cmd_print_text [10:22:30]ExternCall_PrintAddStr [10:22:30]wPrintStart [10:22:30]Write to MH i2c: 01 00 00 9C 11 AD [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: 01 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: 01 07 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: 01 07 00 9C 11 00 00 00 00 00 FF 0F C2 [10:22:30]RasterBufferAndPrint [10:22:30]line *****ТОВАРНЫЙ ЧЕК***** [10:22:30]line АЗС-91 [10:22:30]line Партнер нефть [10:22:30]line 02508201610067 [10:22:30]line Кассир : Адишов И. [10:22:30]line Счет N : (1)507743 [10:22:30]line 17.05.2024 10:05 [10:22:30]line ПРОДАЖА [10:22:30]line ТРК (МРК, ГНК): 41 [10:22:30]line Вид ГСМ : 2710194210 [10:22:30]line ДТ-К-5 [10:22:30]line 26.780 x 74.70 [10:22:30]line ИТОГ: 2000.47 [10:22:30]line Тип оплаты: Талоны: Топливная Карта [10:22:30]line 02750 [10:22:30]line ______________________ [10:22:30]line (подпись) [10:22:30]written 0, free lines is 4095 [10:22:30]Write to MH i2c: 01 00 00 B0 11 C1 [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: 01 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: 01 07 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: 01 07 00 B0 11 00 00 00 00 00 0D 0E E3 [10:22:30]RasterBufferAndPrint [10:22:30]line [10:22:30]line [10:22:30]line [10:22:30]line [10:22:30]line [10:22:30]written 0, free lines is 3599 [10:22:30]MH_Cut [10:22:30]Write to MH i2c: D1 01 00 B7 11 01 9A [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: D1 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: D1 01 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: D1 01 00 B7 11 00 99 [10:22:30]Write to MH i2c: 01 00 00 B8 11 C9 [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:31]*** Cut start [10:22:31]*** Purtial cut [10:22:31]*** CUTSNS_PIN = 0 [10:22:31]*** Stage 1: CUTSNS_PIN = 1 [10:22:33]Read from MH i2c: 01 [10:22:33]MH_I2C_Read... [10:22:33]*** Stop cut motor [10:22:33]*** Cut end [10:22:33]Read from MH i2c: 01 07 00 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: 01 07 00 B8 11 00 00 00 00 00 FF 0F DE [10:22:33]process_action print_text done [10:22:33]requested_data is exist [10:22:33]produce_requested_data [10:22:33]requested_item fm.sn is exist - process it [10:22:33]wFMCommunicate request_size=4 [10:22:33]MH_SAM_APDU [10:22:33]CAPDU: 80 11 00 00 [10:22:33]Write to MH i2c: E2 08 00 B9 11 80 11 00 00 00 00 00 00 44 [10:22:33]Write i2c OK [10:22:33]MH_I2C_Read... [10:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:33]Read from MH i2c: E2 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 17 00 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 17 00 B9 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9A [10: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 [10:22:33]wFMCommunicate OK [10:22:33]requested_item fd.num is exist - process it [10:22:33]SAM_PROTO_GetFieldsCounters [10:22:33]wFMCommunicate request_size=4 [10:22:33]MH_SAM_APDU [10:22:33]CAPDU: 80 13 00 00 [10:22:33]Write to MH i2c: E2 08 00 BA 11 80 13 00 00 00 00 00 00 47 [10:22:33]Write i2c OK [10:22:33]MH_I2C_Read... [10:22:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:33]Read from MH i2c: E2 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 62 00 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 62 00 BA 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 28 08 01 00 0E 04 04 00 66 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 68 [10:22: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 28 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:33]wFMCommunicate OK [10:22:33]SAM_PROTO_GetFieldsCounters done [10:22:33]requested_item shift.num is exist - process it [10:22:33]requested_item shift.opened is exist - process it [10:22:33]req_shift_opened [10:22:33]FM_GetShiftState [10:22:33]SAM_PROTO_GetShiftState [10:22:33]wFMCommunicate request_size=4 [10:22:33]MH_SAM_APDU [10:22:33]CAPDU: 80 13 01 00 [10:22:33]Write to MH i2c: E2 08 00 BB 11 80 13 01 00 00 00 00 00 49 [10:22:33]Write i2c OK [10:22:33]MH_I2C_Read... [10:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:33]Read from MH i2c: E2 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 0E 00 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 0E 00 BB 11 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CF [10:22:33]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [10:22:33]wFMCommunicate OK [10:22:33]SAM_PROTO_GetShiftState done [10:22:33]FM_GetShiftState done [10:22:33]req_shift_opened done [10:22:33]requested_item shift.open_date is exist - process it [10:22:33]req_shift_open_date [10:22:33]req_shift_open_date done [10:22:33]produce_requested_data done [10:22:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67624,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [10:22:33]process_action_free print_text [10:22:33]json_value_free [10:22:33]json_value_free done [10:22:33]process_json_proto returns [10:22:33]Send response to host [10:22:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67624,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [10:22:33]free response buf [10:22:33]execute_script done [10:22:33]execute_script returns [10:22:33]free content buf [10:22:33]Sock 10.Close socket [10:22:33]Sock 10.Thread stoped [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:23]accept exits with 7 [10:28:23]New connection [10:28:23]New thread 3067538788 created [10:28:23]Thread 3067395428 joined [10:28:23]Waiting for new connection... [10:28:23] Sock 7.Parse request [10:28:23]Sock 7.Check first char [10:28:23]Sock 7.First char is OK [10:28:23]request: POST /json_proto HTTP/1.0 [10:28:23]Method: POST [10:28:23]URL: /json_proto [10:28:23]Method is POST - this is cgi request [10:28:23]url: /json_proto [10:28:23]query_string will be loaded in cgi processing [10:28:23]execute_cgi json_proto POST (null) [10:28:23]execute_cgi path=json_proto method=POST [10:28:23]POST find Content-Length [10:28:23]Host: 172.17.41.195:8080 [10:28:23]Content-Length: 1179 [10:28:23]Content-Type: application/json [10:28:23] [10:28:23]POST finish read [10:28:23]Found Content-Length = 1179 [10:28: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507744\u000A17.05.2024 10:10\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" ] } } [10:28:23]execute_script... [10:28: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507744\u000A17.05.2024 10:10\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" ] } } [10:28:23]POST & json_proto [10:28:23]process_json_proto [10:28:23]json parsed OK: [10:28:23]protocol is kg_v1.0 [10:28:23]action value=print_text [10:28:23]process_action print_text [10:28:23]cmd_print_text [10:28:23]ExternCall_PrintAddStr [10:28:23]wPrintStart [10:28:23]Write to MH i2c: 01 00 00 BC 11 CD [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 07 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 07 00 BC 11 00 00 00 00 00 FF 0F E2 [10:28:23]RasterBufferAndPrint [10:28:23]line *****ТОВАРНЫЙ ЧЕК***** [10:28:23]line АЗС-91 [10:28:23]line Партнер нефть [10:28:23]line 02508201610067 [10:28:23]line Кассир : Адишов И. [10:28:23]line Счет N : (1)507744 [10:28:23]line 17.05.2024 10:10 [10:28:23]line ПРОДАЖА [10:28:23]line ТРК (МРК, ГНК): 21 [10:28:23]line Вид ГСМ : 2710194210 [10:28:23]line ДТ-К-5 [10:28:23]line 20.000 x 74.70 [10:28:23]line ИТОГ: 1494.00 [10:28:23]line Тип оплаты: Талоны: Топливная Карта [10:28:23]line 02750 [10:28:23]line ______________________ [10:28:23]line (подпись) [10:28:23]written 0, free lines is 4095 [10:28:23]Write to MH i2c: 01 00 00 D0 11 E1 [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 07 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 07 00 D0 11 00 00 00 00 00 0D 0E 03 [10:28:23]RasterBufferAndPrint [10:28:23]line [10:28:23]line [10:28:23]line [10:28:23]line [10:28:23]line [10:28:23]written 0, free lines is 3598 [10:28:23]MH_Cut [10:28:23]Write to MH i2c: D1 01 00 D7 11 01 BA [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: D1 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: D1 01 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: D1 01 00 D7 11 00 B9 [10:28:23]Write to MH i2c: 01 00 00 D8 11 E9 [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:24]*** Cut start [10:28:24]*** Purtial cut [10:28:24]*** Stage 1: CUTSNS_PIN = 1 [10:28:24]OFD Sender: No OFD packet to send [10:28:24]Read from MH i2c: 01 [10:28:24]MH_I2C_Read... [10:28:24]*** Stop cut motor [10:28:24]*** Cut end [10:28:24]Read from MH i2c: 01 07 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: 01 07 00 D8 11 00 00 00 00 00 FF 0F FE [10:28:24]process_action print_text done [10:28:24]requested_data is exist [10:28:24]produce_requested_data [10:28:24]requested_item fm.sn is exist - process it [10:28:24]wFMCommunicate request_size=4 [10:28:24]MH_SAM_APDU [10:28:24]CAPDU: 80 11 00 00 [10:28:24]Write to MH i2c: E2 08 00 D9 11 80 11 00 00 00 00 00 00 64 [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:24]Read from MH i2c: E2 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 17 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 17 00 D9 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BA [10: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 [10:28:24]wFMCommunicate OK [10:28:24]requested_item fd.num is exist - process it [10:28:24]SAM_PROTO_GetFieldsCounters [10:28:24]wFMCommunicate request_size=4 [10:28:24]MH_SAM_APDU [10:28:24]CAPDU: 80 13 00 00 [10:28:24]Write to MH i2c: E2 08 00 DA 11 80 13 00 00 00 00 00 00 67 [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:24]Read from MH i2c: E2 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 62 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 62 00 DA 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 28 08 01 00 0E 04 04 00 66 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 88 [10: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 28 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:24]wFMCommunicate OK [10:28:25]SAM_PROTO_GetFieldsCounters done [10:28:25]requested_item shift.num is exist - process it [10:28:25]requested_item shift.opened is exist - process it [10:28:25]req_shift_opened [10:28:25]FM_GetShiftState [10:28:25]SAM_PROTO_GetShiftState [10:28:25]wFMCommunicate request_size=4 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 13 01 00 [10:28:25]Write to MH i2c: E2 08 00 DB 11 80 13 01 00 00 00 00 00 69 [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 0E 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 0E 00 DB 11 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 EF [10:28:25]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [10:28:25]wFMCommunicate OK [10:28:25]SAM_PROTO_GetShiftState done [10:28:25]FM_GetShiftState done [10:28:25]req_shift_opened done [10:28:25]requested_item shift.open_date is exist - process it [10:28:25]req_shift_open_date [10:28:25]req_shift_open_date done [10:28:25]produce_requested_data done [10:28:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67624,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [10:28:25]process_action_free print_text [10:28:25]json_value_free [10:28:25]json_value_free done [10:28:25]process_json_proto returns [10:28:25]Send response to host [10:28:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67624,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [10:28:25]free response buf [10:28:25]execute_script done [10:28:25]execute_script returns [10:28:25]free content buf [10:28:25]Sock 7.Close socket [10:28:25]Sock 7.Thread stoped [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [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:32:00]OFD Sender: No OFD packet to send [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:30]OFD Sender: No OFD packet to send [10:33:35]OFD Sender: No OFD packet to send [10:33:40]OFD Sender: No OFD packet to send [10:33:45]OFD Sender: No OFD packet to send [10:33:50]OFD Sender: No OFD packet to send [10:33:55]OFD Sender: No OFD packet to send [10:34:00]OFD Sender: No OFD packet to send [10:34:05]OFD Sender: No OFD packet to send [10:34:10]OFD Sender: No OFD packet to send [10:34:15]OFD Sender: No OFD packet to send [10:34:20]OFD Sender: No OFD packet to send [10:34:25]OFD Sender: No OFD packet to send [10:34:30]OFD Sender: No OFD packet to send [10:34:35]OFD Sender: No OFD packet to send [10:34:40]OFD Sender: No OFD packet to send [10:34:45]OFD Sender: No OFD packet to send [10:34:50]OFD Sender: No OFD packet to send [10:34:55]OFD Sender: No OFD packet to send [10:35:00]OFD Sender: No OFD packet to send [10:35:05]OFD Sender: No OFD packet to send [10:35:10]OFD Sender: No OFD packet to send [10:35:15]OFD Sender: No OFD packet to send [10:35:20]OFD Sender: No OFD packet to send [10:35:25]OFD Sender: No OFD packet to send [10:35:30]OFD Sender: No OFD packet to send [10:35:35]OFD Sender: No OFD packet to send [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:50]OFD Sender: No OFD packet to send [10:35:55]OFD Sender: No OFD packet to send [10:36:00]OFD Sender: No OFD packet to send [10:36:05]OFD Sender: No OFD packet to send [10:36:10]OFD Sender: No OFD packet to send [10:36:15]OFD Sender: No OFD packet to send [10:36:18]accept exits with 9 [10:36:18]New connection [10:36:18]New thread 3067395428 created [10:36:18]Thread 3067538788 joined [10:36:18]Waiting for new connection... [10:36:18] Sock 9.Parse request [10:36:18]Sock 9.Check first char [10:36:18]Sock 9.First char is OK [10:36:18]request: POST /json_proto HTTP/1.0 [10:36:18]Method: POST [10:36:18]URL: /json_proto [10:36:18]Method is POST - this is cgi request [10:36:18]url: /json_proto [10:36:18]query_string will be loaded in cgi processing [10:36:18]execute_cgi json_proto POST (null) [10:36:18]execute_cgi path=json_proto method=POST [10:36:18]POST find Content-Length [10:36:18]Host: 172.17.41.195:8080 [10:36:18]Content-Length: 671 [10:36:18]Content-Type: application/json [10:36:18] [10:36:18]POST finish read [10:36:18]Found Content-Length = 671 [10:36:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507745", "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" ] } } [10:36:18]execute_script... [10:36: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)507745", "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" ] } } [10:36:18]POST & json_proto [10:36:18]process_json_proto [10:36:18]json parsed OK: [10:36:18]protocol is kg_v1.0 [10:36:18]action value=close_receipt [10:36:18]process_action close_receipt [10:36:18]cmd_close_receipt [10:36:18]MH_GetDate [10:36:18]Write to MH i2c: F0 00 00 DC 11 DC [10:36:18]Write i2c OK [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: F0 [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: F0 09 00 [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: F0 09 00 DC 11 00 25 33 47 66 FC 21 6F 64 DA [10:36:18]GetLastDocTimeStamp 1715941329 [10:36:18]current date 1715942181 [10:36:18]FM_GetShiftState [10:36:18]SAM_PROTO_GetShiftState [10:36:18]wFMCommunicate request_size=4 [10:36:18]MH_SAM_APDU [10:36:18]CAPDU: 80 13 01 00 [10:36:18]Write to MH i2c: E2 08 00 DD 11 80 13 01 00 00 00 00 00 6B [10:36:18]Write i2c OK [10:36:18]MH_I2C_Read... [10:36:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:18]Read from MH i2c: E2 [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: E2 0E 00 [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: E2 0E 00 DD 11 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F1 [10:36:18]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [10:36:18]wFMCommunicate OK [10:36:18]SAM_PROTO_GetShiftState done [10:36:18]FM_GetShiftState done [10:36:18]opened in 1715905068 [10:36:18]opened+sec_in_day 1715991468 [10:36:18]quantity*price = 70037 [10:36:18]sum+1 = 70038 [10:36:18]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 СНО: Общий режим Чек 34 17.05.2024 10:36 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67625 ФПД: 82762666044172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T103621&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67625&fm=82762666044172&tin=02508201610067®Number=0000000000091845&sum=70000 [10:36:20]StoreToDocumentArchive [10:36:20]shift 358 fd 67625 [10:36:20]save to /storage/0358/doc_00067625 [10:36:20]save last doc name /storage/0358/doc_00067625 to /storage/kkm_last_doc_name [10:36:20]save OK [10:36:20]Clear old archive folders... [10:36:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:36:20]tlvbuf is 0159F9E0 [10:36:20]SAM_PROTO_ClearQueue [10:36:20]wFMCommunicate request_size=4 [10:36:20]MH_SAM_APDU [10:36:20]CAPDU: 80 09 00 00 [10:36:20]Write to MH i2c: E2 08 00 EA 11 80 09 00 00 00 00 00 00 6D [10:36:20]Write i2c OK [10:36:20]MH_I2C_Read... [10:36:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:20]Read from MH i2c: E2 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 03 00 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 03 00 EA 11 00 90 00 6F [10:36:20]RAPDU: 90 00 [10:36:20]wFMCommunicate OK [10:36:20]SAM_PROTO_ClearQueue done [10:36:20]KKMCreateOFDPacket [10:36:20]OFDProtocolAddRootSTLVToBuf [10:36:20]FM_MakeSignedData [10:36:20]FM_MakeSignedData [10:36:20]SAM_PROTO_SignData [10:36:20]wFMCommunicate request_size=4 [10:36:20]MH_SAM_APDU [10:36:20]CAPDU: 80 0D 01 02 [10:36:20]Write to MH i2c: E2 08 00 EB 11 80 0D 01 02 00 00 00 00 75 [10:36:20]Write i2c OK [10:36:20]MH_I2C_Read... [10:36:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:20]Read from MH i2c: E2 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 03 00 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 03 00 EB 11 00 90 00 70 [10:36:20]RAPDU: 90 00 [10:36:20]wFMCommunicate OK [10:36:20]wFMCommunicate request_size=255 [10:36:20]MH_SAM_APDU [10:36: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 22 00 00 00 F4 03 04 00 25 33 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 [10:36:20]Write to MH i2c: E2 02 01 EC 11 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 22 00 00 00 F4 03 04 00 25 33 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 00 00 CA [10:36:20]Write i2c OK [10:36:20]MH_I2C_Read... [10:36:20]OFD Sender: No OFD packet to send [10:36:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:20]Read from MH i2c: E2 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 03 00 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 03 00 EC 11 00 90 00 71 [10:36:20]RAPDU: 90 00 [10:36:20]wFMCommunicate OK [10:36:20]wFMCommunicate request_size=11 [10:36:20]MH_SAM_APDU [10:36:20]CAPDU: 80 0D 02 02 06 4B 45 AF 4F 6B 0C [10:36:20]Write to MH i2c: E2 0E 00 ED 11 80 0D 02 02 06 00 4B 45 AF 4F 6B 0C 00 00 89 [10:36:20]Write i2c OK [10:36:20]MH_I2C_Read... [10:36:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:20]Read from MH i2c: E2 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 03 00 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 03 00 ED 11 00 90 00 72 [10:36:20]RAPDU: 90 00 [10:36:20]wFMCommunicate OK [10:36:20]wFMCommunicate request_size=4 [10:36:20]MH_SAM_APDU [10:36:20]CAPDU: 80 0D 03 02 [10:36:20]Write to MH i2c: E2 08 00 EE 11 80 0D 03 02 00 00 00 00 7A [10:36:20]Write i2c OK [10:36:20]MH_I2C_Read... [10:36:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:20]Read from MH i2c: E2 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 0B 00 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 0B 00 EE 11 00 71 D5 F3 87 65 FF 43 1F 90 00 01 [10:36:20]RAPDU: 71 D5 F3 87 65 FF 43 1F 90 00 [10:36:20]wFMCommunicate OK [10:36:20]SAM_PROTO_SignData done [10:36:20]FM_MakeSignedData done [10:36:20]CreateOFDProtocolMessage [10:36:20]wFMCommunicate request_size=4 [10:36:20]MH_SAM_APDU [10:36:20]CAPDU: 80 11 00 00 [10:36:20]Write to MH i2c: E2 08 00 EF 11 80 11 00 00 00 00 00 00 7A [10:36:20]Write i2c OK [10:36:20]MH_I2C_Read... [10:36:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:20]Read from MH i2c: E2 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 17 00 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 17 00 EF 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D0 [10:36: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:36:20]wFMCommunicate OK [10:36:20]CreateOFDProtocolMessage done [10:36:20]OFDSenderStorePacket 67625 [10:36:20]StoreOFDPacket docnum=67625 [10:36: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 C5 53 08 01 F8 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 22 00 00 00 F4 03 04 00 25 33 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 4B 45 AF 4F 6B 0C 71 D5 F3 87 65 FF 43 1F [10:36:20]CheckFolder [10:36:20]dirname=/storage/ofd_packets [10:36:20]CheckFolder done [10:36:20]ProducePacketName [10:36:20]name=ofd_packets/00067625 [10:36:20]NVStorageSaveData ofd_packets/00067625 [10:36:20]File name is /storage/ofd_packets/00067625 [10:36:20]Write 302 bytes [10:36:20]NVStorageSaveData done [10:36:20]OFDSenderStorePacket done [10:36:20]KKMCreateOFDPacket done [10:36:20]NVStorageSaveData kkm_last_timestamp [10:36:20]File name is /storage/kkm_last_timestamp [10:36:20]Write 4 bytes [10:36:20]NVStorageSaveData done [10:36:20]ExternCall_PrintAddStr [10:36:20]wPrintStart [10:36:20]Write to MH i2c: 01 00 00 F0 11 01 [10:36:20]Write i2c OK [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: 01 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: 01 07 00 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: 01 07 00 F0 11 00 00 00 00 00 FF 0F 16 [10:36:20]RasterBufferAndPrint [10:36:20]line Счет N : (1)507745 [10:36:20]line ИНН: 02508201610067 [10:36:20]line Контрольно-Кассовый Чек [10:36:20]line ПРОДАЖА [10:36:20]line ТРК (МРК, ГНК) : 42 [10:36:20]line Товар: 2710124130 [10:36:20]line Super-92-К-5 [10:36:20]line 10.330 * 67.80 [10:36:20]line = 700.37 [10:36:20]line НДС 12% НСП 1% [10:36:20]line > о реализуемом товаре [10:36:20]line ОКРУГЛЕНИЕ: -0.37 [10:36:20]line ИТОГО: 700.00 [10:36:20]line Внесено: 700.00 [10:36:20]line СДАЧА: 0.00 [10:36:20]line НСП 1% : 6.20 [10:36:20]line НДС 12% : 74.38 [10:36:20]line Наличными: 700.00 [10:36:20]line Безнал.: 0.00 [10:36:20]line Место: АЗС № 91 "Партнер Нефть" [10:36:20]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:36:20]line СНО: Общий режим [10:36:20]line Чек 34 17.05.2024 10:36 [10:36:20]line Смена: 358 ФФД: 1.0 [10:36:20]line ЗНМ: 0300000119 [10:36:20]line РНМ: 0000000000091845 [10:36:20]line Версия ККМ: 001 [10:36:20]line ФМ: 0000000000871829 [10:36:20]line ФД: 67625 [10:36:20]line ФПД: 82762666044172 [10:36:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T103621&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67625&fm=82762666044172&tin=02508201610067®Number=0000000000091845&sum=70000 [10:36:20]OFD Sender: Processing packet 67625 [packets to send 35, broken 34] [10:36:20]ProducePacketName [10:36:20]name=ofd_packets/00067625 [10:36:20]OFD Sender: To server: pG, [10:36:20]CommunicateWithHost lk.salyk.kg:30040 [10:36:20]ConnectInit lk.salyk.kg [10:36:20]written 0, free lines is 4095 [10:36:21]Connected sock=10 [10:36: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 C5 53 08 01 F8 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 22 00 00 00 F4 03 04 00 25 33 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 4B 45 AF 4F 6B 0C 71 D5 F3 87 65 FF 43 1F [10:36: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 6D C3 47 00 5E AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 FE DA 46 66 B6 04 01 00 00 15 60 D5 78 2D 19 7B 25 [10:36:21]CommunicateWithHost err = 0 [10:36:21]CheckOFDResponse [10:36:21]1017 (14) - 77093643461234 [10:36:21]1041 (16) - 0000000000871829 [10:36:21]1040 (4) - 67625 [10:36:21]1012 (4) - 17.05.2024 04:20 [10:36:21]1206 (1) - 0 [10:36:21]OFD Sender: Remove packet 67625 [10:36:21]ProducePacketName [10:36:21]name=ofd_packets/00067625 [10:36:21]NVStorageDeleteData [10:36:21]Write to MH i2c: 01 00 00 1A 12 2C [10:36:21]Write i2c OK [10:36:21]MH_I2C_Read... [10:36:21]Read from MH i2c: 01 [10:36:21]MH_I2C_Read... [10:36:21]Read from MH i2c: 01 07 00 [10:36:21]MH_I2C_Read... [10:36:21]Read from MH i2c: 01 07 00 1A 12 00 00 00 00 00 C0 0C FF [10:36:21]RasterBufferAndPrint [10:36:21]line [10:36:21]line [10:36:21]line [10:36:21]line [10:36:21]line [10:36:21]written 0, free lines is 3269 [10:36:21]MH_Cut [10:36:21]Write to MH i2c: D1 01 00 21 12 01 05 [10:36:21]Write i2c OK [10:36:21]MH_I2C_Read... [10:36:21]Read from MH i2c: D1 [10:36:21]MH_I2C_Read... [10:36:21]Read from MH i2c: D1 01 00 [10:36:21]MH_I2C_Read... [10:36:21]Read from MH i2c: D1 01 00 21 12 00 04 [10:36:21]Write to MH i2c: 01 00 00 22 12 34 [10:36:21]Write i2c OK [10:36:21]MH_I2C_Read... [10:36:21]OFD Sender: No OFD packet to send [10:36:22]*** Cut start [10:36:22]*** Purtial cut [10:36:22]*** CUTSNS_PIN = 0 [10:36:22]*** Stage 1: CUTSNS_PIN = 1 [10:36:24]Read from MH i2c: 01 [10:36:24]MH_I2C_Read... [10:36:24]*** Stop cut motor [10:36:24]*** Cut end [10:36:24]Read from MH i2c: 01 07 00 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: 01 07 00 22 12 00 00 00 00 00 FF 0F 49 [10:36:24]process_action close_receipt done [10:36:24]requested_data is exist [10:36:24]produce_requested_data [10:36:24]requested_item fm.sn is exist - process it [10:36:24]wFMCommunicate request_size=4 [10:36:24]MH_SAM_APDU [10:36:24]CAPDU: 80 11 00 00 [10:36:24]Write to MH i2c: E2 08 00 23 12 80 11 00 00 00 00 00 00 AF [10:36:24]Write i2c OK [10:36:24]MH_I2C_Read... [10:36:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:24]Read from MH i2c: E2 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: E2 17 00 [10:36:24]MH_I2C_Read... [10:36:24]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 [10: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 [10:36:24]wFMCommunicate OK [10:36:24]requested_item fd.num is exist - process it [10:36:24]SAM_PROTO_GetFieldsCounters [10:36:24]wFMCommunicate request_size=4 [10:36:24]MH_SAM_APDU [10:36:24]CAPDU: 80 13 00 00 [10:36:24]Write to MH i2c: E2 08 00 24 12 80 13 00 00 00 00 00 00 B2 [10:36:24]Write i2c OK [10:36:24]MH_I2C_Read... [10:36:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:24]Read from MH i2c: E2 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: E2 62 00 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: E2 62 00 24 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 29 08 01 00 0E 04 04 00 66 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 D7 [10:36: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 29 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:24]wFMCommunicate OK [10:36:24]SAM_PROTO_GetFieldsCounters done [10:36:24]requested_item shift.num is exist - process it [10:36:24]requested_item shift.opened is exist - process it [10:36:24]req_shift_opened [10:36:24]FM_GetShiftState [10:36:24]SAM_PROTO_GetShiftState [10:36:24]wFMCommunicate request_size=4 [10:36:24]MH_SAM_APDU [10:36:24]CAPDU: 80 13 01 00 [10:36:24]Write to MH i2c: E2 08 00 25 12 80 13 01 00 00 00 00 00 B4 [10:36:24]Write i2c OK [10:36:24]MH_I2C_Read... [10:36:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:24]Read from MH i2c: E2 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: E2 0E 00 [10:36:24]MH_I2C_Read... [10:36:24]Read from MH i2c: E2 0E 00 25 12 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 3A [10:36:24]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [10:36:24]wFMCommunicate OK [10:36:24]SAM_PROTO_GetShiftState done [10:36:24]FM_GetShiftState done [10:36:24]req_shift_opened done [10:36:24]requested_item shift.open_date is exist - process it [10:36:24]req_shift_open_date [10:36:24]req_shift_open_date done [10:36:24]produce_requested_data done [10:36:24]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67625,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [10:36:24]process_action_free close_receipt [10:36:24]json_value_free [10:36:24]json_value_free done [10:36:24]process_json_proto returns [10:36:24]Send response to host [10:36:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67625,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [10:36:24]free response buf [10:36:24]execute_script done [10:36:24]execute_script returns [10:36:24]free content buf [10:36:24]Sock 9.Close socket [10:36:24]Sock 9.Thread stoped [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:08]accept exits with 7 [10:47:08]New connection [10:47:08]New thread 3067538788 created [10:47:08]Thread 3067395428 joined [10:47:08]Waiting for new connection... [10:47:08] Sock 7.Parse request [10:47:08]Sock 7.Check first char [10:47:08]Sock 7.First char is OK [10:47:08]request: POST /json_proto HTTP/1.0 [10:47:08]Method: POST [10:47:08]URL: /json_proto [10:47:08]Method is POST - this is cgi request [10:47:08]url: /json_proto [10:47:08]query_string will be loaded in cgi processing [10:47:08]execute_cgi json_proto POST (null) [10:47:08]execute_cgi path=json_proto method=POST [10:47:08]POST find Content-Length [10:47:08]Host: 172.17.41.195:8080 [10:47:08]Content-Length: 1144 [10:47:08]Content-Type: application/json [10:47:08] [10:47:08]POST finish read [10:47:08]Found Content-Length = 1144 [10:47: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507747\u000A17.05.2024 10:29\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 19.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1269.20\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30076592\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:08]execute_script... [10:47: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507747\u000A17.05.2024 10:29\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 19.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1269.20\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30076592\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:08]POST & json_proto [10:47:08]process_json_proto [10:47:08]json parsed OK: [10:47:08]protocol is kg_v1.0 [10:47:08]action value=print_text [10:47:08]process_action print_text [10:47:08]cmd_print_text [10:47:08]ExternCall_PrintAddStr [10:47:08]wPrintStart [10:47:08]Write to MH i2c: 01 00 00 26 12 38 [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: 01 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: 01 07 00 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: 01 07 00 26 12 00 00 00 00 00 FF 0F 4D [10:47:08]RasterBufferAndPrint [10:47:08]line *****ТОВАРНЫЙ ЧЕК***** [10:47:08]line АЗС-91 [10:47:08]line Партнер нефть [10:47:08]line 02508201610067 [10:47:08]line Кассир : Адишов И. [10:47:08]line Счет N : (1)507747 [10:47:08]line 17.05.2024 10:29 [10:47:08]line ПРОДАЖА [10:47:08]line ТРК (МРК, ГНК): 13 [10:47:08]line Вид ГСМ : 2710124130 [10:47:08]line Аи-92-К-5 [10:47:08]line 19.000 x 66.80 [10:47:08]line ИТОГ: 1269.20 [10:47:08]line Тип оплаты: Талоны: ТК ГПНА Online [10:47:08]line 30076592 [10:47:08]line ______________________ [10:47:08]line (подпись) [10:47:08]written 0, free lines is 4095 [10:47:08]Write to MH i2c: 01 00 00 3A 12 4C [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: 01 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: 01 07 00 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: 01 07 00 3A 12 00 00 00 00 00 0E 0E 6F [10:47:08]RasterBufferAndPrint [10:47:08]line [10:47:08]line [10:47:08]line [10:47:08]line [10:47:08]line [10:47:08]written 0, free lines is 3600 [10:47:08]MH_Cut [10:47:08]Write to MH i2c: D1 01 00 41 12 01 25 [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: D1 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: D1 01 00 [10:47:08]MH_I2C_Read... [10:47:08]Read from MH i2c: D1 01 00 41 12 00 24 [10:47:08]Write to MH i2c: 01 00 00 42 12 54 [10:47:08]Write i2c OK [10:47:08]MH_I2C_Read... [10:47:09]*** Cut start [10:47:09]*** Purtial cut [10:47:09]*** Stage 1: CUTSNS_PIN = 1 [10:47:09]Read from MH i2c: 01 [10:47:09]MH_I2C_Read... [10:47:09]*** Stop cut motor [10:47:09]*** Cut end [10:47:09]Read from MH i2c: 01 07 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: 01 07 00 42 12 00 00 00 00 00 FF 0F 69 [10:47:09]process_action print_text done [10:47:09]requested_data is exist [10:47:09]produce_requested_data [10:47:09]requested_item fm.sn is exist - process it [10:47:09]wFMCommunicate request_size=4 [10:47:09]MH_SAM_APDU [10:47:09]CAPDU: 80 11 00 00 [10:47:09]Write to MH i2c: E2 08 00 43 12 80 11 00 00 00 00 00 00 CF [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:09]Read from MH i2c: E2 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 17 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 17 00 43 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 25 [10:47: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:47:09]wFMCommunicate OK [10:47:09]requested_item fd.num is exist - process it [10:47:09]SAM_PROTO_GetFieldsCounters [10:47:09]wFMCommunicate request_size=4 [10:47:09]MH_SAM_APDU [10:47:09]CAPDU: 80 13 00 00 [10:47:09]Write to MH i2c: E2 08 00 44 12 80 13 00 00 00 00 00 00 D2 [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:09]Read from MH i2c: E2 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 62 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 62 00 44 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 29 08 01 00 0E 04 04 00 66 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 F7 [10:47: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 29 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:09]wFMCommunicate OK [10:47:09]SAM_PROTO_GetFieldsCounters done [10:47:09]requested_item shift.num is exist - process it [10:47:09]requested_item shift.opened is exist - process it [10:47:09]req_shift_opened [10:47:09]FM_GetShiftState [10:47:09]SAM_PROTO_GetShiftState [10:47:09]wFMCommunicate request_size=4 [10:47:09]MH_SAM_APDU [10:47:09]CAPDU: 80 13 01 00 [10:47:09]Write to MH i2c: E2 08 00 45 12 80 13 01 00 00 00 00 00 D4 [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:09]Read from MH i2c: E2 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 0E 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 0E 00 45 12 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 5A [10:47:09]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [10:47:09]wFMCommunicate OK [10:47:09]SAM_PROTO_GetShiftState done [10:47:09]FM_GetShiftState done [10:47:09]req_shift_opened done [10:47:09]requested_item shift.open_date is exist - process it [10:47:09]req_shift_open_date [10:47:09]req_shift_open_date done [10:47:09]produce_requested_data done [10:47:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67625,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [10:47:09]process_action_free print_text [10:47:09]json_value_free [10:47:09]json_value_free done [10:47:09]process_json_proto returns [10:47:09]Send response to host [10:47:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67625,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [10:47:09]free response buf [10:47:09]execute_script done [10:47:09]execute_script returns [10:47:09]free content buf [10:47:09]Sock 7.Close socket [10:47:09]Sock 7.Thread stoped [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:19]accept exits with 9 [10:47:19]New connection [10:47:19]New thread 3067395428 created [10:47:19]Thread 3067538788 joined [10:47:19]Waiting for new connection... [10:47:19] Sock 9.Parse request [10:47:19]Sock 9.Check first char [10:47:19]Sock 9.First char is OK [10:47:19]request: POST /json_proto HTTP/1.0 [10:47:19]Method: POST [10:47:19]URL: /json_proto [10:47:19]Method is POST - this is cgi request [10:47:19]url: /json_proto [10:47:19]query_string will be loaded in cgi processing [10:47:19]execute_cgi json_proto POST (null) [10:47:19]execute_cgi path=json_proto method=POST [10:47:19]POST find Content-Length [10:47:19]Host: 172.17.41.195:8080 [10:47:19]Content-Length: 1179 [10:47:19]Content-Type: application/json [10:47:19] [10:47:19]POST finish read [10:47:19]Found Content-Length = 1179 [10:47: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507746\u000A17.05.2024 10:29\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 53.550 x 74.70\u000A\u0418\u0422\u041E\u0413: 4000.19\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:47:19]execute_script... [10:47: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507746\u000A17.05.2024 10:29\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 53.550 x 74.70\u000A\u0418\u0422\u041E\u0413: 4000.19\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:47:19]POST & json_proto [10:47:19]process_json_proto [10:47:19]json parsed OK: [10:47:19]protocol is kg_v1.0 [10:47:19]action value=print_text [10:47:19]process_action print_text [10:47:19]cmd_print_text [10:47:19]ExternCall_PrintAddStr [10:47:19]wPrintStart [10:47:19]Write to MH i2c: 01 00 00 46 12 58 [10:47:19]Write i2c OK [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: 01 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: 01 07 00 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: 01 07 00 46 12 00 00 00 00 00 FF 0F 6D [10:47:19]RasterBufferAndPrint [10:47:19]line *****ТОВАРНЫЙ ЧЕК***** [10:47:19]line АЗС-91 [10:47:19]line Партнер нефть [10:47:19]line 02508201610067 [10:47:19]line Кассир : Адишов И. [10:47:19]line Счет N : (1)507746 [10:47:19]line 17.05.2024 10:29 [10:47:19]line ПРОДАЖА [10:47:19]line ТРК (МРК, ГНК): 21 [10:47:19]line Вид ГСМ : 2710194210 [10:47:19]line ДТ-К-5 [10:47:19]line 53.550 x 74.70 [10:47:19]line ИТОГ: 4000.19 [10:47:19]line Тип оплаты: Талоны: Топливная Карта [10:47:19]line 02750 [10:47:19]line ______________________ [10:47:19]line (подпись) [10:47:19]written 0, free lines is 4095 [10:47:19]Write to MH i2c: 01 00 00 5A 12 6C [10:47:19]Write i2c OK [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: 01 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: 01 07 00 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: 01 07 00 5A 12 00 00 00 00 00 0C 0E 8D [10:47:19]RasterBufferAndPrint [10:47:19]line [10:47:19]line [10:47:19]line [10:47:19]line [10:47:19]line [10:47:19]written 0, free lines is 3598 [10:47:19]MH_Cut [10:47:19]Write to MH i2c: D1 01 00 61 12 01 45 [10:47:19]Write i2c OK [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: D1 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: D1 01 00 [10:47:19]MH_I2C_Read... [10:47:19]Read from MH i2c: D1 01 00 61 12 00 44 [10:47:19]Write to MH i2c: 01 00 00 62 12 74 [10:47:19]Write i2c OK [10:47:19]MH_I2C_Read... [10:47:19]*** Cut start [10:47:19]*** Purtial cut [10:47:19]*** CUTSNS_PIN = 0 [10:47:20]*** Stage 1: CUTSNS_PIN = 1 [10:47:21]Read from MH i2c: 01 [10:47:21]MH_I2C_Read... [10:47:21]*** Stop cut motor [10:47:21]*** Cut end [10:47:21]Read from MH i2c: 01 07 00 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: 01 07 00 62 12 00 00 00 00 00 FF 0F 89 [10:47:21]process_action print_text done [10:47:21]requested_data is exist [10:47:21]produce_requested_data [10:47:21]requested_item fm.sn is exist - process it [10:47:21]wFMCommunicate request_size=4 [10:47:21]MH_SAM_APDU [10:47:21]CAPDU: 80 11 00 00 [10:47:21]Write to MH i2c: E2 08 00 63 12 80 11 00 00 00 00 00 00 EF [10:47:21]Write i2c OK [10:47:21]MH_I2C_Read... [10:47:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:21]Read from MH i2c: E2 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 17 00 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 17 00 63 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 45 [10:47:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:47:21]wFMCommunicate OK [10:47:21]requested_item fd.num is exist - process it [10:47:21]SAM_PROTO_GetFieldsCounters [10:47:21]wFMCommunicate request_size=4 [10:47:21]MH_SAM_APDU [10:47:21]CAPDU: 80 13 00 00 [10:47:21]Write to MH i2c: E2 08 00 64 12 80 13 00 00 00 00 00 00 F2 [10:47:21]Write i2c OK [10:47:21]MH_I2C_Read... [10:47:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:22]Read from MH i2c: E2 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: E2 62 00 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: E2 62 00 64 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 29 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [10:47: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 29 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:22]wFMCommunicate OK [10:47:22]SAM_PROTO_GetFieldsCounters done [10:47:22]requested_item shift.num is exist - process it [10:47:22]requested_item shift.opened is exist - process it [10:47:22]req_shift_opened [10:47:22]FM_GetShiftState [10:47:22]SAM_PROTO_GetShiftState [10:47:22]wFMCommunicate request_size=4 [10:47:22]MH_SAM_APDU [10:47:22]CAPDU: 80 13 01 00 [10:47:22]Write to MH i2c: E2 08 00 65 12 80 13 01 00 00 00 00 00 F4 [10:47:22]Write i2c OK [10:47:22]MH_I2C_Read... [10:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:22]Read from MH i2c: E2 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: E2 0E 00 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: E2 0E 00 65 12 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 7A [10:47:22]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [10:47:22]wFMCommunicate OK [10:47:22]SAM_PROTO_GetShiftState done [10:47:22]FM_GetShiftState done [10:47:22]req_shift_opened done [10:47:22]requested_item shift.open_date is exist - process it [10:47:22]req_shift_open_date [10:47:22]req_shift_open_date done [10:47:22]produce_requested_data done [10:47:22]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67625,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [10:47:22]process_action_free print_text [10:47:22]json_value_free [10:47:22]json_value_free done [10:47:22]process_json_proto returns [10:47:22]Send response to host [10:47:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67625,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [10:47:22]free response buf [10:47:22]execute_script done [10:47:22]execute_script returns [10:47:22]free content buf [10:47:22]Sock 9.Close socket [10:47:22]Sock 9.Thread stoped [10:47:22]OFD Sender: No OFD packet to send [10:47:22]accept exits with 7 [10:47:22]New connection [10:47:22]New thread 3067538788 created [10:47:22]Thread 3067395428 joined [10:47:22]Waiting for new connection... [10:47:22] Sock 7.Parse request [10:47:22]Sock 7.Check first char [10:47:22]Sock 7.First char is OK [10:47:22]request: POST /json_proto HTTP/1.0 [10:47:22]Method: POST [10:47:22]URL: /json_proto [10:47:22]Method is POST - this is cgi request [10:47:22]url: /json_proto [10:47:22]query_string will be loaded in cgi processing [10:47:22]execute_cgi json_proto POST (null) [10:47:22]execute_cgi path=json_proto method=POST [10:47:22]POST find Content-Length [10:47:22]Host: 172.17.41.195:8080 [10:47:22]Content-Length: 1179 [10:47:22]Content-Type: application/json [10:47:22] [10:47:22]POST finish read [10:47:22]Found Content-Length = 1179 [10:47: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507748\u000A17.05.2024 10: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 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:22]execute_script... [10:47: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507748\u000A17.05.2024 10: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 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:22]POST & json_proto [10:47:22]process_json_proto [10:47:22]json parsed OK: [10:47:22]protocol is kg_v1.0 [10:47:22]action value=print_text [10:47:22]process_action print_text [10:47:22]cmd_print_text [10:47:22]ExternCall_PrintAddStr [10:47:22]wPrintStart [10:47:22]Write to MH i2c: 01 00 00 66 12 78 [10:47:22]Write i2c OK [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: 01 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: 01 07 00 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: 01 07 00 66 12 00 00 00 00 00 FF 0F 8D [10:47:22]RasterBufferAndPrint [10:47:22]line *****ТОВАРНЫЙ ЧЕК***** [10:47:22]line АЗС-91 [10:47:22]line Партнер нефть [10:47:22]line 02508201610067 [10:47:22]line Кассир : Адишов И. [10:47:22]line Счет N : (1)507748 [10:47:22]line 17.05.2024 10:29 [10:47:22]line ПРОДАЖА [10:47:22]line ТРК (МРК, ГНК): 41 [10:47:22]line Вид ГСМ : 2710194210 [10:47:22]line ДТ-К-5 [10:47:22]line 15.000 x 74.70 [10:47:22]line ИТОГ: 1120.50 [10:47:22]line Тип оплаты: Талоны: Топливная Карта [10:47:22]line 02750 [10:47:22]line ______________________ [10:47:22]line (подпись) [10:47:22]written 0, free lines is 4095 [10:47:22]Write to MH i2c: 01 00 00 7A 12 8C [10:47:22]Write i2c OK [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: 01 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: 01 07 00 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: 01 07 00 7A 12 00 00 00 00 00 0C 0E AD [10:47:22]RasterBufferAndPrint [10:47:22]line [10:47:22]line [10:47:22]line [10:47:22]line [10:47:22]line [10:47:22]written 0, free lines is 3597 [10:47:22]MH_Cut [10:47:22]Write to MH i2c: D1 01 00 81 12 01 65 [10:47:22]Write i2c OK [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: D1 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: D1 01 00 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: D1 01 00 81 12 00 64 [10:47:22]Write to MH i2c: 01 00 00 82 12 94 [10:47:22]Write i2c OK [10:47:22]MH_I2C_Read... [10:47:23]*** Cut start [10:47:23]*** Purtial cut [10:47:23]*** Stage 1: CUTSNS_PIN = 1 [10:47:23]Read from MH i2c: 01 [10:47:23]MH_I2C_Read... [10:47:23]*** Stop cut motor [10:47:23]*** Cut end [10:47:23]Read from MH i2c: 01 07 00 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: 01 07 00 82 12 00 00 00 00 00 FF 0F A9 [10:47:23]process_action print_text done [10:47:23]requested_data is exist [10:47:23]produce_requested_data [10:47:23]requested_item fm.sn is exist - process it [10:47:23]wFMCommunicate request_size=4 [10:47:23]MH_SAM_APDU [10:47:23]CAPDU: 80 11 00 00 [10:47:23]Write to MH i2c: E2 08 00 83 12 80 11 00 00 00 00 00 00 0F [10:47:23]Write i2c OK [10:47:23]MH_I2C_Read... [10:47:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:23]Read from MH i2c: E2 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 17 00 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 17 00 83 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 65 [10:47: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:47:23]wFMCommunicate OK [10:47:23]requested_item fd.num is exist - process it [10:47:23]SAM_PROTO_GetFieldsCounters [10:47:23]wFMCommunicate request_size=4 [10:47:23]MH_SAM_APDU [10:47:23]CAPDU: 80 13 00 00 [10:47:23]Write to MH i2c: E2 08 00 84 12 80 13 00 00 00 00 00 00 12 [10:47:23]Write i2c OK [10:47:23]MH_I2C_Read... [10:47:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:23]Read from MH i2c: E2 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 62 00 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 62 00 84 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 29 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [10:47: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 29 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:23]wFMCommunicate OK [10:47:23]SAM_PROTO_GetFieldsCounters done [10:47:23]requested_item shift.num is exist - process it [10:47:23]requested_item shift.opened is exist - process it [10:47:23]req_shift_opened [10:47:23]FM_GetShiftState [10:47:23]SAM_PROTO_GetShiftState [10:47:23]wFMCommunicate request_size=4 [10:47:23]MH_SAM_APDU [10:47:23]CAPDU: 80 13 01 00 [10:47:23]Write to MH i2c: E2 08 00 85 12 80 13 01 00 00 00 00 00 14 [10:47:23]Write i2c OK [10:47:23]MH_I2C_Read... [10:47:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:23]Read from MH i2c: E2 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 0E 00 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: E2 0E 00 85 12 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 9A [10:47:23]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [10:47:23]wFMCommunicate OK [10:47:23]SAM_PROTO_GetShiftState done [10:47:23]FM_GetShiftState done [10:47:23]req_shift_opened done [10:47:23]requested_item shift.open_date is exist - process it [10:47:23]req_shift_open_date [10:47:23]req_shift_open_date done [10:47:23]produce_requested_data done [10:47:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67625,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [10:47:23]process_action_free print_text [10:47:23]json_value_free [10:47:23]json_value_free done [10:47:23]process_json_proto returns [10:47:23]Send response to host [10:47:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67625,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [10:47:23]free response buf [10:47:23]execute_script done [10:47:23]execute_script returns [10:47:23]free content buf [10:47:23]Sock 7.Close socket [10:47:23]Sock 7.Thread stoped [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:25]accept exits with 9 [10:49:25]New connection [10:49:25]New thread 3067395428 created [10:49:25]Thread 3067538788 joined [10:49:25]Waiting for new connection... [10:49:25] Sock 9.Parse request [10:49:25]Sock 9.Check first char [10:49:25]Sock 9.First char is OK [10:49:25]request: POST /json_proto HTTP/1.0 [10:49:25]Method: POST [10:49:25]URL: /json_proto [10:49:25]Method is POST - this is cgi request [10:49:25]url: /json_proto [10:49:25]query_string will be loaded in cgi processing [10:49:25]execute_cgi json_proto POST (null) [10:49:25]execute_cgi path=json_proto method=POST [10:49:25]POST find Content-Length [10:49:25]Host: 172.17.41.195:8080 [10:49:25]Content-Length: 671 [10:49:25]Content-Type: application/json [10:49:25] [10:49:25]POST finish read [10:49:25]Found Content-Length = 671 [10:49:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507749", "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" ] } } [10:49:25]execute_script... [10:49: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)507749", "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" ] } } [10:49:25]POST & json_proto [10:49:25]process_json_proto [10:49:25]json parsed OK: [10:49:25]protocol is kg_v1.0 [10:49:25]action value=close_receipt [10:49:25]process_action close_receipt [10:49:25]cmd_close_receipt [10:49:25]MH_GetDate [10:49:25]Write to MH i2c: F0 00 00 86 12 87 [10:49:25]Write i2c OK [10:49:25]MH_I2C_Read... [10:49:25]Read from MH i2c: F0 [10:49:25]MH_I2C_Read... [10:49:25]Read from MH i2c: F0 09 00 [10:49:25]MH_I2C_Read... [10:49:25]Read from MH i2c: F0 09 00 86 12 00 38 36 47 66 FC 21 6F 64 9B [10:49:25]GetLastDocTimeStamp 1715942181 [10:49:25]current date 1715942968 [10:49:25]FM_GetShiftState [10:49:25]SAM_PROTO_GetShiftState [10:49:25]wFMCommunicate request_size=4 [10:49:25]MH_SAM_APDU [10:49:25]CAPDU: 80 13 01 00 [10:49:25]Write to MH i2c: E2 08 00 87 12 80 13 01 00 00 00 00 00 16 [10:49:25]Write i2c OK [10:49:25]MH_I2C_Read... [10:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:25]Read from MH i2c: E2 [10:49:25]MH_I2C_Read... [10:49:25]Read from MH i2c: E2 0E 00 [10:49:25]MH_I2C_Read... [10:49:25]Read from MH i2c: E2 0E 00 87 12 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 9C [10:49:25]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [10:49:25]wFMCommunicate OK [10:49:25]SAM_PROTO_GetShiftState done [10:49:25]FM_GetShiftState done [10:49:25]opened in 1715905068 [10:49:25]opened+sec_in_day 1715991468 [10:49:25]quantity*price = 70037 [10:49:25]sum+1 = 70038 [10:49:25]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 СНО: Общий режим Чек 35 17.05.2024 10:49 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67626 ФПД: 44041310487852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T104928&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67626&fm=44041310487852&tin=02508201610067®Number=0000000000091845&sum=70000 [10:49:26]StoreToDocumentArchive [10:49:26]shift 358 fd 67626 [10:49:26]save to /storage/0358/doc_00067626 [10:49:26]save last doc name /storage/0358/doc_00067626 to /storage/kkm_last_doc_name [10:49:26]save OK [10:49:26]Clear old archive folders... [10:49:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:49:26]tlvbuf is B6F503F0 [10:49:26]SAM_PROTO_ClearQueue [10:49:26]wFMCommunicate request_size=4 [10:49:26]MH_SAM_APDU [10:49:26]CAPDU: 80 09 00 00 [10:49:26]Write to MH i2c: E2 08 00 94 12 80 09 00 00 00 00 00 00 18 [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:26]Read from MH i2c: E2 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 03 00 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 03 00 94 12 00 90 00 1A [10:49:26]RAPDU: 90 00 [10:49:26]wFMCommunicate OK [10:49:26]SAM_PROTO_ClearQueue done [10:49:26]KKMCreateOFDPacket [10:49:26]OFDProtocolAddRootSTLVToBuf [10:49:26]FM_MakeSignedData [10:49:26]FM_MakeSignedData [10:49:26]SAM_PROTO_SignData [10:49:26]wFMCommunicate request_size=4 [10:49:26]MH_SAM_APDU [10:49:26]CAPDU: 80 0D 01 02 [10:49:26]Write to MH i2c: E2 08 00 95 12 80 0D 01 02 00 00 00 00 20 [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:26]Read from MH i2c: E2 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 03 00 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 03 00 95 12 00 90 00 1B [10:49:26]RAPDU: 90 00 [10:49:26]wFMCommunicate OK [10:49:26]wFMCommunicate request_size=255 [10:49:26]MH_SAM_APDU [10:49:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 23 00 00 00 F4 03 04 00 38 36 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 [10:49:26]Write to MH i2c: E2 02 01 96 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 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 23 00 00 00 F4 03 04 00 38 36 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 00 00 8D [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:26]Read from MH i2c: E2 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 03 00 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 03 00 96 12 00 90 00 1C [10:49:26]RAPDU: 90 00 [10:49:26]wFMCommunicate OK [10:49:26]wFMCommunicate request_size=11 [10:49:26]MH_SAM_APDU [10:49:26]CAPDU: 80 0D 02 02 06 28 0E 2A AA C5 2C [10:49:26]Write to MH i2c: E2 0E 00 97 12 80 0D 02 02 06 00 28 0E 2A AA C5 2C 00 00 2A [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:26]Read from MH i2c: E2 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 03 00 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 03 00 97 12 00 90 00 1D [10:49:26]RAPDU: 90 00 [10:49:26]wFMCommunicate OK [10:49:26]wFMCommunicate request_size=4 [10:49:26]MH_SAM_APDU [10:49:26]CAPDU: 80 0D 03 02 [10:49:26]Write to MH i2c: E2 08 00 98 12 80 0D 03 02 00 00 00 00 25 [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:26]Read from MH i2c: E2 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 0B 00 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 0B 00 98 12 00 90 B5 8E F5 8F 7B 15 4F 90 00 5C [10:49:26]RAPDU: 90 B5 8E F5 8F 7B 15 4F 90 00 [10:49:26]wFMCommunicate OK [10:49:26]SAM_PROTO_SignData done [10:49:26]FM_MakeSignedData done [10:49:26]CreateOFDProtocolMessage [10:49:26]wFMCommunicate request_size=4 [10:49:26]MH_SAM_APDU [10:49:26]CAPDU: 80 11 00 00 [10:49:26]Write to MH i2c: E2 08 00 99 12 80 11 00 00 00 00 00 00 25 [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:26]Read from MH i2c: E2 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 17 00 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: E2 17 00 99 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7B [10:49:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:49:26]wFMCommunicate OK [10:49:26]CreateOFDProtocolMessage done [10:49:26]OFDSenderStorePacket 67626 [10:49:26]StoreOFDPacket docnum=67626 [10:49: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 10 01 00 00 D2 18 08 01 4A EF 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 23 00 00 00 F4 03 04 00 38 36 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 28 0E 2A AA C5 2C 90 B5 8E F5 8F 7B 15 4F [10:49:26]CheckFolder [10:49:26]dirname=/storage/ofd_packets [10:49:26]CheckFolder done [10:49:26]ProducePacketName [10:49:26]name=ofd_packets/00067626 [10:49:26]NVStorageSaveData ofd_packets/00067626 [10:49:26]File name is /storage/ofd_packets/00067626 [10:49:26]Write 302 bytes [10:49:26]NVStorageSaveData done [10:49:26]OFDSenderStorePacket done [10:49:26]KKMCreateOFDPacket done [10:49:26]NVStorageSaveData kkm_last_timestamp [10:49:26]File name is /storage/kkm_last_timestamp [10:49:26]Write 4 bytes [10:49:26]NVStorageSaveData done [10:49:26]ExternCall_PrintAddStr [10:49:26]wPrintStart [10:49:26]Write to MH i2c: 01 00 00 9A 12 AC [10:49:26]OFD Sender: Processing packet 67626 [packets to send 35, broken 34] [10:49:26]ProducePacketName [10:49:26]name=ofd_packets/00067626 [10:49:26]OFD Sender: To server: pG, [10:49:26]CommunicateWithHost lk.salyk.kg:30040 [10:49:26]ConnectInit lk.salyk.kg [10:49:26]Write i2c OK [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: 01 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: 01 07 00 [10:49:26]MH_I2C_Read... [10:49:26]Read from MH i2c: 01 07 00 9A 12 00 00 00 00 00 FF 0F C1 [10:49:26]RasterBufferAndPrint [10:49:26]line Счет N : (1)507749 [10:49:26]line ИНН: 02508201610067 [10:49:26]line Контрольно-Кассовый Чек [10:49:26]line ПРОДАЖА [10:49:26]line ТРК (МРК, ГНК) : 42 [10:49:26]line Товар: 2710124130 [10:49:26]line Super-92-К-5 [10:49:26]line 10.330 * 67.80 [10:49:26]line = 700.37 [10:49:26]line НДС 12% НСП 1% [10:49:26]line > о реализуемом товаре [10:49:26]line ОКРУГЛЕНИЕ: -0.37 [10:49:26]line ИТОГО: 700.00 [10:49:26]line Внесено: 700.00 [10:49:26]line СДАЧА: 0.00 [10:49:26]line НСП 1% : 6.20 [10:49:26]line НДС 12% : 74.38 [10:49:26]line Наличными: 700.00 [10:49:26]line Безнал.: 0.00 [10:49:26]line Место: АЗС № 91 "Партнер Нефть" [10:49:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:49:26]line СНО: Общий режим [10:49:26]line Чек 35 17.05.2024 10:49 [10:49:26]line Смена: 358 ФФД: 1.0 [10:49:26]line ЗНМ: 0300000119 [10:49:26]line РНМ: 0000000000091845 [10:49:26]line Версия ККМ: 001 [10:49:26]line ФМ: 0000000000871829 [10:49:26]line ФД: 67626 [10:49:26]line ФПД: 44041310487852 [10:49:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T104928&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67626&fm=44041310487852&tin=02508201610067®Number=0000000000091845&sum=70000 [10:49:27]Connected sock=10 [10:49:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 D2 18 08 01 4A EF 5A 03 01 00 03 00 FC written 0, free lines is 4095 [10:49:27]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 23 00 00 00 F4 03 04 00 38 36 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 28 0E 2A AA C5 2C 90 B5 8E F5 8F 7B 15 4F [10:49: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 70 7B 47 00 05 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 2A 08 01 00 F4 03 04 00 10 DE 46 66 B6 04 01 00 00 5A 1E 67 32 D4 D0 09 BD [10:49:27]CommunicateWithHost err = 0 [10:49:27]CheckOFDResponse [10:49:27]1017 (14) - 77093643461234 [10:49:27]1041 (16) - 0000000000871829 [10:49:27]1040 (4) - 67626 [10:49:27]1012 (4) - 17.05.2024 04:33 [10:49:27]1206 (1) - 0 [10:49:27]OFD Sender: Remove packet 67626 [10:49:27]ProducePacketName [10:49:27]name=ofd_packets/00067626 [10:49:27]NVStorageDeleteData [10:49:27]Write to MH i2c: 01 00 00 C4 12 D6 [10:49:27]Write i2c OK [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: 01 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: 01 07 00 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: 01 07 00 C4 12 00 00 00 00 00 B9 0C A2 [10:49:27]RasterBufferAndPrint [10:49:27]line [10:49:27]line [10:49:27]line [10:49:27]line [10:49:27]line [10:49:27]written 0, free lines is 3264 [10:49:27]MH_Cut [10:49:27]Write to MH i2c: D1 01 00 CB 12 01 AF [10:49:27]Write i2c OK [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: D1 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: D1 01 00 [10:49:27]MH_I2C_Read... [10:49:27]Read from MH i2c: D1 01 00 CB 12 00 AE [10:49:27]Write to MH i2c: 01 00 00 CC 12 DE [10:49:27]Write i2c OK [10:49:27]MH_I2C_Read... [10:49:27]OFD Sender: No OFD packet to send [10:49:28]*** Cut start [10:49:28]*** Purtial cut [10:49:28]*** CUTSNS_PIN = 0 [10:49:28]*** Stage 1: CUTSNS_PIN = 1 [10:49:30]Read from MH i2c: 01 [10:49:30]MH_I2C_Read... [10:49:30]*** Stop cut motor [10:49:30]*** Cut end [10:49:30]Read from MH i2c: 01 07 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: 01 07 00 CC 12 00 00 00 00 00 FF 0F F3 [10:49:30]process_action close_receipt done [10:49:30]requested_data is exist [10:49:30]produce_requested_data [10:49:30]requested_item fm.sn is exist - process it [10:49:30]wFMCommunicate request_size=4 [10:49:30]MH_SAM_APDU [10:49:30]CAPDU: 80 11 00 00 [10:49:30]Write to MH i2c: E2 08 00 CD 12 80 11 00 00 00 00 00 00 59 [10:49:30]Write i2c OK [10:49:30]MH_I2C_Read... [10:49:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:30]Read from MH i2c: E2 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 17 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 17 00 CD 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AF [10:49:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:49:30]wFMCommunicate OK [10:49:30]requested_item fd.num is exist - process it [10:49:30]SAM_PROTO_GetFieldsCounters [10:49:30]wFMCommunicate request_size=4 [10:49:30]MH_SAM_APDU [10:49:30]CAPDU: 80 13 00 00 [10:49:30]Write to MH i2c: E2 08 00 CE 12 80 13 00 00 00 00 00 00 5C [10:49:30]Write i2c OK [10:49:30]MH_I2C_Read... [10:49:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:30]Read from MH i2c: E2 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 62 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 62 00 CE 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 2A 08 01 00 0E 04 04 00 66 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 85 [10:49: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 2A 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:30]wFMCommunicate OK [10:49:30]SAM_PROTO_GetFieldsCounters done [10:49:30]requested_item shift.num is exist - process it [10:49:30]requested_item shift.opened is exist - process it [10:49:30]req_shift_opened [10:49:30]FM_GetShiftState [10:49:30]SAM_PROTO_GetShiftState [10:49:30]wFMCommunicate request_size=4 [10:49:30]MH_SAM_APDU [10:49:30]CAPDU: 80 13 01 00 [10:49:30]Write to MH i2c: E2 08 00 CF 12 80 13 01 00 00 00 00 00 5E [10:49:30]Write i2c OK [10:49:30]MH_I2C_Read... [10:49:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:30]Read from MH i2c: E2 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 0E 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 0E 00 CF 12 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 E4 [10:49:30]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [10:49:30]wFMCommunicate OK [10:49:30]SAM_PROTO_GetShiftState done [10:49:30]FM_GetShiftState done [10:49:30]req_shift_opened done [10:49:30]requested_item shift.open_date is exist - process it [10:49:30]req_shift_open_date [10:49:30]req_shift_open_date done [10:49:30]produce_requested_data done [10:49:30]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67626,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [10:49:30]process_action_free close_receipt [10:49:30]json_value_free [10:49:30]json_value_free done [10:49:30]process_json_proto returns [10:49:30]Send response to host [10:49:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67626,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [10:49:30]free response buf [10:49:30]execute_script done [10:49:30]execute_script returns [10:49:30]free content buf [10:49:30]Sock 9.Close socket [10:49:30]Sock 9.Thread stoped [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:50]accept exits with 7 [10:49:50]New connection [10:49:50]New thread 3067538788 created [10:49:50]Thread 3067395428 joined [10:49:50]Waiting for new connection... [10:49:50] Sock 7.Parse request [10:49:50]Sock 7.Check first char [10:49:50]Sock 7.First char is OK [10:49:50]request: POST /json_proto HTTP/1.0 [10:49:50]Method: POST [10:49:50]URL: /json_proto [10:49:50]Method is POST - this is cgi request [10:49:50]url: /json_proto [10:49:50]query_string will be loaded in cgi processing [10:49:50]execute_cgi json_proto POST (null) [10:49:50]execute_cgi path=json_proto method=POST [10:49:50]POST find Content-Length [10:49:50]Host: 172.17.41.195:8080 [10:49:50]Content-Length: 1177 [10:49:50]Content-Type: application/json [10:49:50] [10:49:50]POST finish read [10:49:50]Found Content-Length = 1177 [10:49: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507750\u000A17.05.2024 10:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 5.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 373.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:50]execute_script... [10:49: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507750\u000A17.05.2024 10:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 5.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 373.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:50]POST & json_proto [10:49:50]process_json_proto [10:49:50]json parsed OK: [10:49:50]protocol is kg_v1.0 [10:49:50]action value=print_text [10:49:50]process_action print_text [10:49:50]cmd_print_text [10:49:50]ExternCall_PrintAddStr [10:49:50]wPrintStart [10:49:50]Write to MH i2c: 01 00 00 D0 12 E2 [10:49:50]Write i2c OK [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: 01 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: 01 07 00 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: 01 07 00 D0 12 00 00 00 00 00 FF 0F F7 [10:49:50]RasterBufferAndPrint [10:49:50]line *****ТОВАРНЫЙ ЧЕК***** [10:49:50]line АЗС-91 [10:49:50]line Партнер нефть [10:49:50]line 02508201610067 [10:49:50]line Кассир : Адишов И. [10:49:50]line Счет N : (1)507750 [10:49:50]line 17.05.2024 10:32 [10:49:50]line ПРОДАЖА [10:49:50]line ТРК (МРК, ГНК): 31 [10:49:50]line Вид ГСМ : 2710194210 [10:49:50]line ДТ-К-5 [10:49:50]line 5.000 x 74.70 [10:49:50]line ИТОГ: 373.50 [10:49:50]line Тип оплаты: Талоны: Топливная Карта [10:49:50]line 02750 [10:49:50]line ______________________ [10:49:50]line (подпись) [10:49:50]written 0, free lines is 4095 [10:49:50]Write to MH i2c: 01 00 00 E4 12 F6 [10:49:50]Write i2c OK [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: 01 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: 01 07 00 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: 01 07 00 E4 12 00 00 00 00 00 0B 0E 16 [10:49:50]RasterBufferAndPrint [10:49:50]line [10:49:50]line [10:49:50]line [10:49:50]line [10:49:50]line [10:49:50]written 0, free lines is 3597 [10:49:50]MH_Cut [10:49:50]Write to MH i2c: D1 01 00 EB 12 01 CF [10:49:50]Write i2c OK [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: D1 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: D1 01 00 [10:49:50]MH_I2C_Read... [10:49:50]Read from MH i2c: D1 01 00 EB 12 00 CE [10:49:50]Write to MH i2c: 01 00 00 EC 12 FE [10:49:50]Write i2c OK [10:49:50]MH_I2C_Read... [10:49:51]*** Cut start [10:49:51]*** Purtial cut [10:49:51]*** Stage 1: CUTSNS_PIN = 1 [10:49:51]Read from MH i2c: 01 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: 01 07 00 [10:49:51]MH_I2C_Read... [10:49:51]*** Stop cut motor [10:49:51]*** Cut end [10:49:51]Read from MH i2c: 01 07 00 EC 12 00 00 00 00 00 FF 0F 13 [10:49:51]process_action print_text done [10:49:51]requested_data is exist [10:49:51]produce_requested_data [10:49:51]requested_item fm.sn is exist - process it [10:49:51]wFMCommunicate request_size=4 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 11 00 00 [10:49:51]Write to MH i2c: E2 08 00 ED 12 80 11 00 00 00 00 00 00 79 [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 17 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 17 00 ED 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CF [10:49:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:49:51]wFMCommunicate OK [10:49:51]requested_item fd.num is exist - process it [10:49:51]SAM_PROTO_GetFieldsCounters [10:49:51]wFMCommunicate request_size=4 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 13 00 00 [10:49:51]Write to MH i2c: E2 08 00 EE 12 80 13 00 00 00 00 00 00 7C [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 62 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 62 00 EE 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 2A 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [10:49: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 2A 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:51]wFMCommunicate OK [10:49:51]SAM_PROTO_GetFieldsCounters done [10:49:51]requested_item shift.num is exist - process it [10:49:51]requested_item shift.opened is exist - process it [10:49:51]req_shift_opened [10:49:51]FM_GetShiftState [10:49:51]SAM_PROTO_GetShiftState [10:49:51]wFMCommunicate request_size=4 [10:49:51]MH_SAM_APDU [10:49:51]CAPDU: 80 13 01 00 [10:49:51]Write to MH i2c: E2 08 00 EF 12 80 13 01 00 00 00 00 00 7E [10:49:51]Write i2c OK [10:49:51]MH_I2C_Read... [10:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:51]Read from MH i2c: E2 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 0E 00 [10:49:51]MH_I2C_Read... [10:49:51]Read from MH i2c: E2 0E 00 EF 12 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 04 [10:49:51]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [10:49:51]wFMCommunicate OK [10:49:51]SAM_PROTO_GetShiftState done [10:49:51]FM_GetShiftState done [10:49:51]req_shift_opened done [10:49:51]requested_item shift.open_date is exist - process it [10:49:51]req_shift_open_date [10:49:51]req_shift_open_date done [10:49:51]produce_requested_data done [10:49:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67626,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [10:49:51]process_action_free print_text [10:49:51]json_value_free [10:49:51]json_value_free done [10:49:51]process_json_proto returns [10:49:51]Send response to host [10:49:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67626,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [10:49:51]free response buf [10:49:51]execute_script done [10:49:51]execute_script returns [10:49:51]free content buf [10:49:51]Sock 7.Close socket [10:49:51]Sock 7.Thread stoped [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:02]accept exits with 9 [10:52:02]New connection [10:52:02]New thread 3067395428 created [10:52:02]Thread 3067538788 joined [10:52:02]Waiting for new connection... [10:52:02] Sock 9.Parse request [10:52:02]Sock 9.Check first char [10:52:02]Sock 9.First char is OK [10:52:02]request: POST /json_proto HTTP/1.0 [10:52:02]Method: POST [10:52:02]URL: /json_proto [10:52:02]Method is POST - this is cgi request [10:52:02]url: /json_proto [10:52:02]query_string will be loaded in cgi processing [10:52:02]execute_cgi json_proto POST (null) [10:52:02]execute_cgi path=json_proto method=POST [10:52:02]POST find Content-Length [10:52:02]Host: 172.17.41.195:8080 [10:52:02]Content-Length: 983 [10:52:02]Content-Type: application/json [10:52:02] [10:52:02]POST finish read [10:52:02]Found Content-Length = 983 [10:52:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507751", "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" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "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\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 91\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.80 \u0441\u043E\u043C", "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" ] } } [10:52:02]execute_script... [10:52: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)507751", "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" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "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\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 91\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.80 \u0441\u043E\u043C", "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" ] } } [10:52:02]POST & json_proto [10:52:02]process_json_proto [10:52:02]json parsed OK: [10:52:02]protocol is kg_v1.0 [10:52:02]action value=close_receipt [10:52:02]process_action close_receipt [10:52:02]cmd_close_receipt [10:52:02]MH_GetDate [10:52:02]Write to MH i2c: F0 00 00 F0 12 F1 [10:52:02]Write i2c OK [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: F0 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: F0 09 00 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: F0 09 00 F0 12 00 D5 36 47 66 FC 21 6F 64 A2 [10:52:02]GetLastDocTimeStamp 1715942968 [10:52:02]current date 1715943125 [10:52:02]FM_GetShiftState [10:52:02]SAM_PROTO_GetShiftState [10:52:02]wFMCommunicate request_size=4 [10:52:02]MH_SAM_APDU [10:52:02]CAPDU: 80 13 01 00 [10:52:02]Write to MH i2c: E2 08 00 F1 12 80 13 01 00 00 00 00 00 80 [10:52:02]Write i2c OK [10:52:02]MH_I2C_Read... [10:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:02]Read from MH i2c: E2 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: E2 0E 00 [10:52:02]MH_I2C_Read... [10:52:02]Read from MH i2c: E2 0E 00 F1 12 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 06 [10:52:02]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [10:52:02]wFMCommunicate OK [10:52:02]SAM_PROTO_GetShiftState done [10:52:02]FM_GetShiftState done [10:52:02]opened in 1715905068 [10:52:02]opened+sec_in_day 1715991468 [10:52:02]quantity*price = 150024 [10:52:02]sum+1 = 150025 [10:52:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 36 17.05.2024 10:52 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Дисконтная программа АИ-92 номер 91 сэкономлено 22.80 сом ФМ: 0000000000871829 ФД: 67627 ФПД: 201031811788904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T105205&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67627&fm=201031811788904&tin=02508201610067®Number=0000000000091845&sum=150000 [10:52:04]StoreToDocumentArchive [10:52:04]shift 358 fd 67627 [10:52:04]save to /storage/0358/doc_00067627 [10:52:04]save last doc name /storage/0358/doc_00067627 to /storage/kkm_last_doc_name [10:52:04]save OK [10:52:04]Clear old archive folders... [10:52:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:04]tlvbuf is B6F374C0 [10:52:04]SAM_PROTO_ClearQueue [10:52:04]wFMCommunicate request_size=4 [10:52:04]MH_SAM_APDU [10:52:04]CAPDU: 80 09 00 00 [10:52:04]Write to MH i2c: E2 08 00 FE 12 80 09 00 00 00 00 00 00 82 [10:52:04]Write i2c OK [10:52:04]MH_I2C_Read... [10:52:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:04]Read from MH i2c: E2 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 03 00 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 03 00 FE 12 00 90 00 84 [10:52:04]RAPDU: 90 00 [10:52:04]wFMCommunicate OK [10:52:04]SAM_PROTO_ClearQueue done [10:52:04]KKMCreateOFDPacket [10:52:04]OFDProtocolAddRootSTLVToBuf [10:52:04]FM_MakeSignedData [10:52:04]FM_MakeSignedData [10:52:04]SAM_PROTO_SignData [10:52:04]wFMCommunicate request_size=4 [10:52:04]MH_SAM_APDU [10:52:04]CAPDU: 80 0D 01 02 [10:52:04]Write to MH i2c: E2 08 00 FF 12 80 0D 01 02 00 00 00 00 8A [10:52:04]Write i2c OK [10:52:04]MH_I2C_Read... [10:52:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:04]Read from MH i2c: E2 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 03 00 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 03 00 FF 12 00 90 00 85 [10:52:04]RAPDU: 90 00 [10:52:04]wFMCommunicate OK [10:52:04]wFMCommunicate request_size=255 [10:52:04]MH_SAM_APDU [10:52:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 24 00 00 00 F4 03 04 00 D5 36 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 B6 [10:52:04]Write to MH i2c: E2 02 01 00 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 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 24 00 00 00 F4 03 04 00 D5 36 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 B6 00 00 76 [10:52:04]Write i2c OK [10:52:04]MH_I2C_Read... [10:52:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:04]Read from MH i2c: E2 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 03 00 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 03 00 00 13 00 90 00 87 [10:52:04]RAPDU: 90 00 [10:52:04]wFMCommunicate OK [10:52:04]wFMCommunicate request_size=10 [10:52:04]MH_SAM_APDU [10:52:04]CAPDU: 80 0D 02 02 05 D6 5D BA F0 68 [10:52:04]Write to MH i2c: E2 0D 00 01 13 80 0D 02 02 05 00 D6 5D BA F0 68 00 00 DD [10:52:04]Write i2c OK [10:52:04]MH_I2C_Read... [10:52:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:04]Read from MH i2c: E2 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 03 00 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 03 00 01 13 00 90 00 88 [10:52:04]RAPDU: 90 00 [10:52:04]wFMCommunicate OK [10:52:04]wFMCommunicate request_size=4 [10:52:04]MH_SAM_APDU [10:52:04]CAPDU: 80 0D 03 02 [10:52:04]Write to MH i2c: E2 08 00 02 13 80 0D 03 02 00 00 00 00 90 [10:52:04]Write i2c OK [10:52:04]MH_I2C_Read... [10:52:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:04]Read from MH i2c: E2 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 0B 00 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 0B 00 02 13 00 0A B1 3B 0F 03 6E 28 19 90 00 48 [10:52:04]RAPDU: 0A B1 3B 0F 03 6E 28 19 90 00 [10:52:04]wFMCommunicate OK [10:52:04]SAM_PROTO_SignData done [10:52:04]FM_MakeSignedData done [10:52:04]CreateOFDProtocolMessage [10:52:04]wFMCommunicate request_size=4 [10:52:04]MH_SAM_APDU [10:52:04]CAPDU: 80 11 00 00 [10:52:04]Write to MH i2c: E2 08 00 03 13 80 11 00 00 00 00 00 00 90 [10:52:04]Write i2c OK [10:52:04]MH_I2C_Read... [10:52:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:04]Read from MH i2c: E2 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 17 00 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: E2 17 00 03 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E6 [10:52:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:52:04]wFMCommunicate OK [10:52:04]CreateOFDProtocolMessage done [10:52:04]OFDSenderStorePacket 67627 [10:52:04]StoreOFDPacket docnum=67627 [10:52:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 38 BD 07 01 6B F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 24 00 00 00 F4 03 04 00 D5 36 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 B6 D6 5D BA F0 68 0A B1 3B 0F 03 6E 28 19 [10:52:04]CheckFolder [10:52:04]dirname=/storage/ofd_packets [10:52:04]CheckFolder done [10:52:04]ProducePacketName [10:52:04]name=ofd_packets/00067627 [10:52:04]NVStorageSaveData ofd_packets/00067627 [10:52:04]File name is /storage/ofd_packets/00067627 [10:52:04]Write 301 bytes [10:52:04]NVStorageSaveData done [10:52:04]OFDSenderStorePacket done [10:52:04]KKMCreateOFDPacket done [10:52:04]NVStorageSaveData kkm_last_timestamp [10:52:04]File name is /storage/kkm_last_timestamp [10:52:04]Write 4 bytes [10:52:04]NVStorageSaveData done [10:52:04]ExternCall_PrintAddStr [10:52:04]wPrintStart [10:52:04]Write to MH i2c: 01 00 00 04 13 17 [10:52:04]Write i2c OK [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: 01 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: 01 07 00 [10:52:04]MH_I2C_Read... [10:52:04]Read from MH i2c: 01 07 00 04 13 00 00 00 00 00 FF 0F 2C [10:52:04]RasterBufferAndPrint [10:52:04]line Счет N : (1)507751 [10:52:04]line ИНН: 02508201610067 [10:52:04]line Контрольно-Кассовый Чек [10:52:04]line ПРОДАЖА [10:52:04]line ТРК (МРК, ГНК) : 13 [10:52:04]line Товар: 2710124130 [10:52:04]line Аи-92-К-5 [10:52:04]line 22.800 * 65.80 [10:52:04]line = 1500.24 [10:52:04]line НДС 12% НСП 1% [10:52:04]line > о реализуемом товаре [10:52:04]line ОКРУГЛЕНИЕ: -0.24 [10:52:04]line ИТОГО: 1500.00 [10:52:04]line Внесено: 1500.00 [10:52:04]line СДАЧА: 0.00 [10:52:04]line НСП 1% : 13.28 [10:52:04]line НДС 12% : 159.32 [10:52:04]line Наличными: 1500.00 [10:52:04]line Безнал.: 0.00 [10:52:04]line Место: АЗС № 91 "Партнер Нефть" [10:52:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:52:04]line СНО: Общий режим [10:52:04]line Чек 36 17.05.2024 10:52 [10:52:04]line Смена: 358 ФФД: 1.0 [10:52:04]line ЗНМ: 0300000119 [10:52:04]line РНМ: 0000000000091845 [10:52:04]line Версия ККМ: 001 [10:52:04]line [10:52:04]line Дисконтная программа [10:52:04]line АИ-92 [10:52:04]line номер 91 [10:52:04]line сэкономлено 22.80 сом [10:52:04]line ФМ: 0000000000871829 [10:52:04]line ФД: 67627 [10:52:04]line ФПД: 201031811788904 [10:52:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T105205&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67627&fm=201031811788904&tin=02508201610067®Number=0000000000091845&sum=150000 [10:52:04]OFD Sender: Processing packet 67627 [packets to send 35, broken 34] [10:52:04]ProducePacketName [10:52:04]name=ofd_packets/00067627 [10:52:04]OFD Sender: To server: pG, [10:52:04]CommunicateWithHost lk.salyk.kg:30040 [10:52:04]ConnectInit lk.salyk.kg [10:52:04]written 0, free lines is 4095 [10:52:05]Connected sock=10 [10:52:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 38 BD 07 01 6B F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 24 00 00 00 F4 03 04 00 D5 36 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 B6 D6 5D BA F0 68 0A B1 3B 0F 03 6E 28 19 [10:52: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 C4 F9 47 00 59 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 2B 08 01 00 F4 03 04 00 AE DE 46 66 B6 04 01 00 00 BF 26 FB 81 15 AA E2 D9 [10:52:05]CommunicateWithHost err = 0 [10:52:05]CheckOFDResponse [10:52:05]1017 (14) - 77093643461234 [10:52:05]1041 (16) - 0000000000871829 [10:52:05]1040 (4) - 67627 [10:52:05]1012 (4) - 17.05.2024 04:35 [10:52:05]1206 (1) - 0 [10:52:05]OFD Sender: Remove packet 67627 [10:52:05]ProducePacketName [10:52:05]name=ofd_packets/00067627 [10:52:05]NVStorageDeleteData [10:52:05]Write to MH i2c: 01 00 00 33 13 46 [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: 01 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: 01 07 00 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: 01 07 00 33 13 00 00 00 00 00 66 0C BF [10:52:05]RasterBufferAndPrint [10:52:05]line [10:52:05]line [10:52:05]line [10:52:05]line [10:52:05]line [10:52:05]written 0, free lines is 3179 [10:52:05]MH_Cut [10:52:05]Write to MH i2c: D1 01 00 3A 13 01 1F [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: D1 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: D1 01 00 [10:52:05]MH_I2C_Read... [10:52:05]Read from MH i2c: D1 01 00 3A 13 00 1E [10:52:05]Write to MH i2c: 01 00 00 3B 13 4E [10:52:05]Write i2c OK [10:52:05]MH_I2C_Read... [10:52:05]OFD Sender: No OFD packet to send [10:52:06]*** Cut start [10:52:06]*** Purtial cut [10:52:06]*** CUTSNS_PIN = 0 [10:52:06]*** Stage 1: CUTSNS_PIN = 1 [10:52:08]Read from MH i2c: 01 [10:52:08]MH_I2C_Read... [10:52:08]*** Stop cut motor [10:52:08]*** Cut end [10:52:08]Read from MH i2c: 01 07 00 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: 01 07 00 3B 13 00 00 00 00 00 FF 0F 63 [10:52:08]process_action close_receipt done [10:52:08]requested_data is exist [10:52:08]produce_requested_data [10:52:08]requested_item fm.sn is exist - process it [10:52:08]wFMCommunicate request_size=4 [10:52:08]MH_SAM_APDU [10:52:08]CAPDU: 80 11 00 00 [10:52:08]Write to MH i2c: E2 08 00 3C 13 80 11 00 00 00 00 00 00 C9 [10:52:08]Write i2c OK [10:52:08]MH_I2C_Read... [10:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:08]Read from MH i2c: E2 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 17 00 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 17 00 3C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1F [10:52: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:52:08]wFMCommunicate OK [10:52:08]requested_item fd.num is exist - process it [10:52:08]SAM_PROTO_GetFieldsCounters [10:52:08]wFMCommunicate request_size=4 [10:52:08]MH_SAM_APDU [10:52:08]CAPDU: 80 13 00 00 [10:52:08]Write to MH i2c: E2 08 00 3D 13 80 13 00 00 00 00 00 00 CC [10:52:08]Write i2c OK [10:52:08]MH_I2C_Read... [10:52:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:08]Read from MH i2c: E2 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 62 00 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 62 00 3D 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 2B 08 01 00 0E 04 04 00 66 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 F9 [10:52: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 2B 08 01 00 0E 04 04 00 66 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:52:08]wFMCommunicate OK [10:52:08]SAM_PROTO_GetFieldsCounters done [10:52:08]requested_item shift.num is exist - process it [10:52:08]requested_item shift.opened is exist - process it [10:52:08]req_shift_opened [10:52:08]FM_GetShiftState [10:52:08]SAM_PROTO_GetShiftState [10:52:08]wFMCommunicate request_size=4 [10:52:08]MH_SAM_APDU [10:52:08]CAPDU: 80 13 01 00 [10:52:08]Write to MH i2c: E2 08 00 3E 13 80 13 01 00 00 00 00 00 CE [10:52:08]Write i2c OK [10:52:08]MH_I2C_Read... [10:52:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:08]Read from MH i2c: E2 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 0E 00 [10:52:08]MH_I2C_Read... [10:52:08]Read from MH i2c: E2 0E 00 3E 13 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 54 [10:52:08]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [10:52:08]wFMCommunicate OK [10:52:08]SAM_PROTO_GetShiftState done [10:52:08]FM_GetShiftState done [10:52:08]req_shift_opened done [10:52:08]requested_item shift.open_date is exist - process it [10:52:08]req_shift_open_date [10:52:08]req_shift_open_date done [10:52:08]produce_requested_data done [10:52:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67627,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [10:52:08]process_action_free close_receipt [10:52:08]json_value_free [10:52:08]json_value_free done [10:52:08]process_json_proto returns [10:52:08]Send response to host [10:52:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67627,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [10:52:08]free response buf [10:52:08]execute_script done [10:52:08]execute_script returns [10:52:08]free content buf [10:52:08]Sock 9.Close socket [10:52:08]Sock 9.Thread stoped [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:41]accept exits with 7 [10:55:41]New connection [10:55:41]New thread 3067538788 created [10:55:41]Thread 3067395428 joined [10:55:41]Waiting for new connection... [10:55:41] Sock 7.Parse request [10:55:41]Sock 7.Check first char [10:55:41]Sock 7.First char is OK [10:55:41]request: POST /json_proto HTTP/1.0 [10:55:41]Method: POST [10:55:41]URL: /json_proto [10:55:41]Method is POST - this is cgi request [10:55:41]url: /json_proto [10:55:41]query_string will be loaded in cgi processing [10:55:41]execute_cgi json_proto POST (null) [10:55:41]execute_cgi path=json_proto method=POST [10:55:41]POST find Content-Length [10:55:41]Host: 172.17.41.195:8080 [10:55:41]Content-Length: 1144 [10:55:41]Content-Type: application/json [10:55:41] [10:55:41]POST finish read [10:55:41]Found Content-Length = 1144 [10:55: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507752\u000A17.05.2024 10:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 16.940 x 66.80\u000A\u0418\u0422\u041E\u0413: 1131.59\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30005955\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:41]execute_script... [10:55: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507752\u000A17.05.2024 10:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 16.940 x 66.80\u000A\u0418\u0422\u041E\u0413: 1131.59\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30005955\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:41]POST & json_proto [10:55:41]process_json_proto [10:55:41]json parsed OK: [10:55:41]protocol is kg_v1.0 [10:55:41]action value=print_text [10:55:41]process_action print_text [10:55:41]cmd_print_text [10:55:41]ExternCall_PrintAddStr [10:55:41]wPrintStart [10:55:41]Write to MH i2c: 01 00 00 3F 13 52 [10:55:41]Write i2c OK [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: 01 [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: 01 07 00 [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: 01 07 00 3F 13 00 00 00 00 00 FF 0F 67 [10:55:41]RasterBufferAndPrint [10:55:41]line *****ТОВАРНЫЙ ЧЕК***** [10:55:41]line АЗС-91 [10:55:41]line Партнер нефть [10:55:41]line 02508201610067 [10:55:41]line Кассир : Адишов И. [10:55:41]line Счет N : (1)507752 [10:55:41]line 17.05.2024 10:38 [10:55:41]line ПРОДАЖА [10:55:41]line ТРК (МРК, ГНК): 43 [10:55:41]line Вид ГСМ : 2710124130 [10:55:41]line Аи-92-К-5 [10:55:41]line 16.940 x 66.80 [10:55:41]line ИТОГ: 1131.59 [10:55:41]line Тип оплаты: Талоны: ТК ГПНА Online [10:55:41]line 30005955 [10:55:41]line ______________________ [10:55:41]line (подпись) [10:55:41]written 0, free lines is 4095 [10:55:41]Write to MH i2c: 01 00 00 53 13 66 [10:55:41]Write i2c OK [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: 01 [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: 01 07 00 [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: 01 07 00 53 13 00 00 00 00 00 0E 0E 89 [10:55:41]RasterBufferAndPrint [10:55:41]line [10:55:41]line [10:55:41]line [10:55:41]line [10:55:41]line [10:55:41]written 0, free lines is 3600 [10:55:41]MH_Cut [10:55:41]Write to MH i2c: D1 01 00 5A 13 01 3F [10:55:41]Write i2c OK [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: D1 [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: D1 01 00 [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: D1 01 00 5A 13 00 3E [10:55:41]Write to MH i2c: 01 00 00 5B 13 6E [10:55:41]Write i2c OK [10:55:41]MH_I2C_Read... [10:55:42]*** Cut start [10:55:42]*** Purtial cut [10:55:42]*** Stage 1: CUTSNS_PIN = 1 [10:55:42]Read from MH i2c: 01 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: 01 07 00 [10:55:42]MH_I2C_Read... [10:55:42]*** Stop cut motor [10:55:42]*** Cut end [10:55:42]Read from MH i2c: 01 07 00 5B 13 00 00 00 00 00 FF 0F 83 [10:55:42]process_action print_text done [10:55:42]requested_data is exist [10:55:42]produce_requested_data [10:55:42]requested_item fm.sn is exist - process it [10:55:42]wFMCommunicate request_size=4 [10:55:42]MH_SAM_APDU [10:55:42]CAPDU: 80 11 00 00 [10:55:42]Write to MH i2c: E2 08 00 5C 13 80 11 00 00 00 00 00 00 E9 [10:55:42]Write i2c OK [10:55:42]MH_I2C_Read... [10:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:42]Read from MH i2c: E2 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 17 00 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 17 00 5C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3F [10:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:55:42]wFMCommunicate OK [10:55:42]requested_item fd.num is exist - process it [10:55:42]SAM_PROTO_GetFieldsCounters [10:55:42]wFMCommunicate request_size=4 [10:55:42]MH_SAM_APDU [10:55:42]CAPDU: 80 13 00 00 [10:55:42]Write to MH i2c: E2 08 00 5D 13 80 13 00 00 00 00 00 00 EC [10:55:42]Write i2c OK [10:55:42]MH_I2C_Read... [10:55:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:42]Read from MH i2c: E2 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 62 00 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 62 00 5D 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 2B 08 01 00 0E 04 04 00 66 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 19 [10:55: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 2B 08 01 00 0E 04 04 00 66 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:55:42]wFMCommunicate OK [10:55:42]SAM_PROTO_GetFieldsCounters done [10:55:42]requested_item shift.num is exist - process it [10:55:42]requested_item shift.opened is exist - process it [10:55:42]req_shift_opened [10:55:42]FM_GetShiftState [10:55:42]SAM_PROTO_GetShiftState [10:55:42]wFMCommunicate request_size=4 [10:55:42]MH_SAM_APDU [10:55:42]CAPDU: 80 13 01 00 [10:55:42]Write to MH i2c: E2 08 00 5E 13 80 13 01 00 00 00 00 00 EE [10:55:42]Write i2c OK [10:55:42]MH_I2C_Read... [10:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:43]Read from MH i2c: E2 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: E2 0E 00 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: E2 0E 00 5E 13 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 74 [10:55:43]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [10:55:43]wFMCommunicate OK [10:55:43]SAM_PROTO_GetShiftState done [10:55:43]FM_GetShiftState done [10:55:43]req_shift_opened done [10:55:43]requested_item shift.open_date is exist - process it [10:55:43]req_shift_open_date [10:55:43]req_shift_open_date done [10:55:43]produce_requested_data done [10:55:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67627,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [10:55:43]process_action_free print_text [10:55:43]json_value_free [10:55:43]json_value_free done [10:55:43]process_json_proto returns [10:55:43]Send response to host [10:55:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67627,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [10:55:43]free response buf [10:55:43]execute_script done [10:55:43]execute_script returns [10:55:43]free content buf [10:55:43]Sock 7.Close socket [10:55:43]Sock 7.Thread stoped [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:13]accept exits with 10 [10:57:13]New connection [10:57:13]New thread 3067395428 created [10:57:13]Thread 3067538788 joined [10:57:13]Waiting for new connection... [10:57:13] Sock 10.Parse request [10:57:13]Sock 10.Check first char [10:57:13]Sock 10.First char is OK [10:57:13]request: POST /json_proto HTTP/1.0 [10:57:13]Method: POST [10:57:13]URL: /json_proto [10:57:13]Method is POST - this is cgi request [10:57:13]url: /json_proto [10:57:13]query_string will be loaded in cgi processing [10:57:13]execute_cgi json_proto POST (null) [10:57:13]execute_cgi path=json_proto method=POST [10:57:13]POST find Content-Length [10:57:13]Host: 172.17.41.195:8080 [10:57:13]Content-Length: 975 [10:57:13]Content-Type: application/json [10:57:13] [10:57:13]POST finish read [10:57:13]Found Content-Length = 975 [10:57:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12098", "tax_sys" : 0, "items" : [ { "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 3.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:13]execute_script... [10:57: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 : (3)12098", "tax_sys" : 0, "items" : [ { "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 3.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:13]POST & json_proto [10:57:13]process_json_proto [10:57:13]json parsed OK: [10:57:13]protocol is kg_v1.0 [10:57:13]action value=close_receipt [10:57:13]process_action close_receipt [10:57:13]cmd_close_receipt [10:57:13]MH_GetDate [10:57:13]Write to MH i2c: F0 00 00 5F 13 61 [10:57:13]Write i2c OK [10:57:13]MH_I2C_Read... [10:57:13]Read from MH i2c: F0 [10:57:13]MH_I2C_Read... [10:57:13]Read from MH i2c: F0 09 00 [10:57:13]MH_I2C_Read... [10:57:13]Read from MH i2c: F0 09 00 5F 13 00 0C 38 47 66 FC 21 6F 64 4B [10:57:13]GetLastDocTimeStamp 1715943125 [10:57:13]current date 1715943436 [10:57:13]FM_GetShiftState [10:57:13]SAM_PROTO_GetShiftState [10:57:13]wFMCommunicate request_size=4 [10:57:13]MH_SAM_APDU [10:57:13]CAPDU: 80 13 01 00 [10:57:13]Write to MH i2c: E2 08 00 60 13 80 13 01 00 00 00 00 00 F0 [10:57:13]Write i2c OK [10:57:13]MH_I2C_Read... [10:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:13]Read from MH i2c: E2 [10:57:13]MH_I2C_Read... [10:57:13]Read from MH i2c: E2 0E 00 [10:57:13]MH_I2C_Read... [10:57:13]Read from MH i2c: E2 0E 00 60 13 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 76 [10:57:13]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [10:57:13]wFMCommunicate OK [10:57:13]SAM_PROTO_GetShiftState done [10:57:13]FM_GetShiftState done [10:57:13]opened in 1715905068 [10:57:13]opened+sec_in_day 1715991468 [10:57:13]quantity*price = 15000 [10:57:13]sum+1 = 15001 [10:57:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010018 Чай хол Let`s Go! зел лим ПЭТ 0,5л 2.000 * 50.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 37 17.05.2024 10:57 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67628 ФПД: 6897267496925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T105716&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67628&fm=6897267496925&tin=02508201610067®Number=0000000000091845&sum=25000 0 [10:57:14]StoreToDocumentArchive [10:57:14]shift 358 fd 67628 [10:57:14]save to /storage/0358/doc_00067628 [10:57:14]save last doc name /storage/0358/doc_00067628 to /storage/kkm_last_doc_name [10:57:14]save OK [10:57:14]Clear old archive folders... [10:57:14]ProcessDocumentItem done err = 0, tmpTLVsize=420 [10:57:14]tlvbuf is 015D54E0 [10:57:14]SAM_PROTO_ClearQueue [10:57:14]wFMCommunicate request_size=4 [10:57:14]MH_SAM_APDU [10:57:14]CAPDU: 80 09 00 00 [10:57:14]Write to MH i2c: E2 08 00 6D 13 80 09 00 00 00 00 00 00 F2 [10:57:14]Write i2c OK [10:57:14]MH_I2C_Read... [10:57:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:14]Read from MH i2c: E2 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 03 00 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 03 00 6D 13 00 90 00 F4 [10:57:14]RAPDU: 90 00 [10:57:14]wFMCommunicate OK [10:57:14]SAM_PROTO_ClearQueue done [10:57:14]KKMCreateOFDPacket [10:57:14]OFDProtocolAddRootSTLVToBuf [10:57:14]FM_MakeSignedData [10:57:14]FM_MakeSignedData [10:57:14]SAM_PROTO_SignData [10:57:14]wFMCommunicate request_size=4 [10:57:14]MH_SAM_APDU [10:57:14]CAPDU: 80 0D 01 02 [10:57:14]Write to MH i2c: E2 08 00 6E 13 80 0D 01 02 00 00 00 00 FA [10:57:14]Write i2c OK [10:57:14]MH_I2C_Read... [10:57:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:15]Read from MH i2c: E2 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 03 00 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 03 00 6E 13 00 90 00 F5 [10:57:15]RAPDU: 90 00 [10:57:15]wFMCommunicate OK [10:57:15]wFMCommunicate request_size=255 [10:57:15]MH_SAM_APDU [10:57:15]CAPDU: 80 0D 02 02 FA 03 00 A4 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 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 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 [10:57:15]Write to MH i2c: E2 02 01 6F 13 80 0D 02 02 FA 00 03 00 A4 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 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 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 00 00 6A [10:57:15]Write i2c OK [10:57:15]MH_I2C_Read... [10:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:15]Read from MH i2c: E2 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 03 00 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 03 00 6F 13 00 90 00 F6 [10:57:15]RAPDU: 90 00 [10:57:15]wFMCommunicate OK [10:57:15]wFMCommunicate request_size=179 [10:57:15]MH_SAM_APDU [10:57:15]CAPDU: 80 0D 02 02 AE 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 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 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 25 00 00 00 F4 03 04 00 0C 38 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 06 45 E5 2D D7 DD [10:57:15]Write to MH i2c: E2 B6 00 70 13 80 0D 02 02 AE 00 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 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 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 25 00 00 00 F4 03 04 00 0C 38 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 06 45 E5 2D D7 DD 00 00 82 [10:57:15]Write i2c OK [10:57:15]MH_I2C_Read... [10:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:15]Read from MH i2c: E2 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 03 00 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 03 00 70 13 00 90 00 F7 [10:57:15]RAPDU: 90 00 [10:57:15]wFMCommunicate OK [10:57:15]wFMCommunicate request_size=4 [10:57:15]MH_SAM_APDU [10:57:15]CAPDU: 80 0D 03 02 [10:57:15]Write to MH i2c: E2 08 00 71 13 80 0D 03 02 00 00 00 00 FF [10:57:15]Write i2c OK [10:57:15]MH_I2C_Read... [10:57:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:15]Read from MH i2c: E2 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 0B 00 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 0B 00 71 13 00 3B E1 C7 C6 29 DF 20 76 90 00 47 [10:57:15]RAPDU: 3B E1 C7 C6 29 DF 20 76 90 00 [10:57:15]wFMCommunicate OK [10:57:15]SAM_PROTO_SignData done [10:57:15]FM_MakeSignedData done [10:57:15]CreateOFDProtocolMessage [10:57:15]wFMCommunicate request_size=4 [10:57:15]MH_SAM_APDU [10:57:15]CAPDU: 80 11 00 00 [10:57:15]Write to MH i2c: E2 08 00 72 13 80 11 00 00 00 00 00 00 FF [10:57:15]Write i2c OK [10:57:15]MH_I2C_Read... [10:57:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:15]Read from MH i2c: E2 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 17 00 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 17 00 72 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 55 [10:57: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:57:15]wFMCommunicate OK [10:57:15]CreateOFDProtocolMessage done [10:57:15]OFDSenderStorePacket 67628 [10:57:15]StoreOFDPacket docnum=67628 [10:57: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 B8 01 00 00 33 3B B0 01 17 F6 5A 03 01 00 03 00 A4 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 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 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 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 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 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 25 00 00 00 F4 03 04 00 0C 38 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 06 45 E5 2D D7 DD 3B E1 C7 C6 29 DF 20 76 [10:57:15]CheckFolder [10:57:15]dirname=/storage/ofd_packets [10:57:15]CheckFolder done [10:57:15]ProducePacketName [10:57:15]name=ofd_packets/00067628 [10:57:15]NVStorageSaveData ofd_packets/00067628 [10:57:15]File name is /storage/ofd_packets/00067628 [10:57:15]Write 470 bytes [10:57:15]NVStorageSaveData done [10:57:15]OFDSenderStorePacket done [10:57:15]KKMCreateOFDPacket done [10:57:15]NVStorageSaveData kkm_last_timestamp [10:57:15]File name is /storage/kkm_last_timestamp [10:57:15]Write 4 bytes [10:57:15]NVStorageSaveData done [10:57:15]ExternCall_PrintAddStr [10:57:15]wPrintStart [10:57:15]Write to MH i2c: 01 00 00 73 13 86 [10:57:15]OFD Sender: Processing packet 67628 [packets to send 35, broken 34] [10:57:15]ProducePacketName [10:57:15]name=ofd_packets/00067628 [10:57:15]OFD Sender: To server: pG, [10:57:15]CommunicateWithHost lk.salyk.kg:30040 [10:57:15]ConnectInit lk.salyk.kg [10:57:15]Write i2c OK [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: 01 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: 01 07 00 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: 01 07 00 73 13 00 00 00 00 00 FF 0F 9B [10:57:15]RasterBufferAndPrint [10:57:15]line Счет N : (3)12098 [10:57:15]line ИНН: 02508201610067 [10:57:15]line Контрольно-Кассовый Чек [10:57:15]line ПРОДАЖА [10:57:15]line Товар: 4700003010032 [10:57:15]line Чай хол Let`s Go! чер персик ПЭТ 0,5л [10:57:15]line 3.000 * 50.00 [10:57:15]line = 150.00 [10:57:15]line НДС 12% НСП 1% [10:57:15]line > о реализуемом товаре [10:57:15]line Товар: 4700003010018 [10:57:15]line Чай хол Let`s Go! зел лим ПЭТ 0,5л [10:57:15]line 2.000 * 50.00 [10:57:15]line = 100.00 [10:57:15]line НДС 12% НСП 1% [10:57:15]line > о реализуемом товаре [10:57:15]line ИТОГО: 250.00 [10:57:15]line НСП 1% : 2.21 [10:57:15]line НДС 12% : 26.55 [10:57:15]line Наличными: 250.00 [10:57:15]line Безнал.: 0.00 [10:57:15]line Место: АЗС № 91 "Партнер Нефть" [10:57:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:57:15]line СНО: Общий режим [10:57:15]line Чек 37 17.05.2024 10:57 [10:57:15]line Смена: 358 ФФД: 1.0 [10:57:15]line ЗНМ: 0300000119 [10:57:15]line РНМ: 0000000000091845 [10:57:15]line Версия ККМ: 001 [10:57:15]line ФМ: 0000000000871829 [10:57:15]line ФД: 67628 [10:57:15]line ФПД: 6897267496925 [10:57:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T105716&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67628&fm=6897267496925&tin=02508201610067®Number=0000000000091845&sum=25000 [10:57:15]line 0 [10:57:15]written 0, free lines is 4095 [10:57:16]Connected sock=9 [10:57: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 B8 01 00 00 33 3B B0 01 17 F6 5A 03 01 00 03 00 A4 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 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 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 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 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 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 25 00 00 00 F4 03 04 00 0C 38 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 06 45 E5 2D D7 DD 3B E1 C7 C6 29 DF 20 76 [10:57: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 DD 97 47 00 D2 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2C 08 01 00 F4 03 04 00 E5 DF 46 66 B6 04 01 00 00 1C 94 71 73 33 D7 AD EA [10:57:16]CommunicateWithHost err = 0 [10:57:16]CheckOFDResponse [10:57:16]1017 (14) - 77093643461234 [10:57:16]1041 (16) - 0000000000871829 [10:57:16]1040 (4) - 67628 [10:57:16]1012 (4) - 17.05.2024 04:41 [10:57:16]1206 (1) - 0 [10:57:16]OFD Sender: Remove packet 67628 [10:57:16]ProducePacketName [10:57:16]name=ofd_packets/00067628 [10:57:16]NVStorageDeleteData [10:57:16]Write to MH i2c: 01 00 00 A2 13 B5 [10:57:16]Write i2c OK [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: 01 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: 01 07 00 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: 01 07 00 A2 13 00 00 00 00 00 51 0C 19 [10:57:16]RasterBufferAndPrint [10:57:16]line [10:57:16]line [10:57:16]line [10:57:16]line [10:57:16]line [10:57:16]written 0, free lines is 3159 [10:57:16]MH_Cut [10:57:16]Write to MH i2c: D1 01 00 A9 13 01 8E [10:57:16]Write i2c OK [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: D1 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: D1 01 00 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: D1 01 00 A9 13 00 8D [10:57:16]Write to MH i2c: 01 00 00 AA 13 BD [10:57:16]Write i2c OK [10:57:16]MH_I2C_Read... [10:57:16]OFD Sender: No OFD packet to send [10:57:17]*** Cut start [10:57:17]*** Purtial cut [10:57:17]*** CUTSNS_PIN = 0 [10:57:17]*** Stage 1: CUTSNS_PIN = 1 [10:57:19]Read from MH i2c: 01 [10:57:19]MH_I2C_Read... [10:57:19]*** Stop cut motor [10:57:19]*** Cut end [10:57:19]Read from MH i2c: 01 07 00 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: 01 07 00 AA 13 00 00 00 00 00 FF 0F D2 [10:57:19]process_action close_receipt done [10:57:19]requested_data is exist [10:57:19]produce_requested_data [10:57:19]requested_item fm.sn is exist - process it [10:57:19]wFMCommunicate request_size=4 [10:57:19]MH_SAM_APDU [10:57:19]CAPDU: 80 11 00 00 [10:57:19]Write to MH i2c: E2 08 00 AB 13 80 11 00 00 00 00 00 00 38 [10:57:19]Write i2c OK [10:57:19]MH_I2C_Read... [10:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:19]Read from MH i2c: E2 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 17 00 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 17 00 AB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8E [10:57: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:57:19]wFMCommunicate OK [10:57:19]requested_item fd.num is exist - process it [10:57:19]SAM_PROTO_GetFieldsCounters [10:57:19]wFMCommunicate request_size=4 [10:57:19]MH_SAM_APDU [10:57:19]CAPDU: 80 13 00 00 [10:57:19]Write to MH i2c: E2 08 00 AC 13 80 13 00 00 00 00 00 00 3B [10:57:19]Write i2c OK [10:57:19]MH_I2C_Read... [10:57:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:19]Read from MH i2c: E2 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 62 00 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 62 00 AC 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 2C 08 01 00 0E 04 04 00 66 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 6C [10:57: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 2C 08 01 00 0E 04 04 00 66 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:57:19]wFMCommunicate OK [10:57:19]SAM_PROTO_GetFieldsCounters done [10:57:19]requested_item shift.num is exist - process it [10:57:19]requested_item shift.opened is exist - process it [10:57:19]req_shift_opened [10:57:19]FM_GetShiftState [10:57:19]SAM_PROTO_GetShiftState [10:57:19]wFMCommunicate request_size=4 [10:57:19]MH_SAM_APDU [10:57:19]CAPDU: 80 13 01 00 [10:57:19]Write to MH i2c: E2 08 00 AD 13 80 13 01 00 00 00 00 00 3D [10:57:19]Write i2c OK [10:57:19]MH_I2C_Read... [10:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:19]Read from MH i2c: E2 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 0E 00 [10:57:19]MH_I2C_Read... [10:57:19]Read from MH i2c: E2 0E 00 AD 13 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 C3 [10:57:19]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [10:57:19]wFMCommunicate OK [10:57:19]SAM_PROTO_GetShiftState done [10:57:19]FM_GetShiftState done [10:57:19]req_shift_opened done [10:57:19]requested_item shift.open_date is exist - process it [10:57:19]req_shift_open_date [10:57:19]req_shift_open_date done [10:57:19]produce_requested_data done [10:57:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67628,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [10:57:19]process_action_free close_receipt [10:57:19]json_value_free [10:57:19]json_value_free done [10:57:19]process_json_proto returns [10:57:19]Send response to host [10:57:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67628,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [10:57:19]free response buf [10:57:19]execute_script done [10:57:19]execute_script returns [10:57:19]free content buf [10:57:19]Sock 10.Close socket [10:57:19]Sock 10.Thread stoped [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [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:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:20]accept exits with 7 [11:00:20]New connection [11:00:20]New thread 3067538788 created [11:00:20]Thread 3067395428 joined [11:00:20]Waiting for new connection... [11:00:20] Sock 7.Parse request [11:00:20]Sock 7.Check first char [11:00:20]Sock 7.First char is OK [11:00:20]request: POST /json_proto HTTP/1.0 [11:00:20]Method: POST [11:00:20]URL: /json_proto [11:00:20]Method is POST - this is cgi request [11:00:20]url: /json_proto [11:00:20]query_string will be loaded in cgi processing [11:00:20]execute_cgi json_proto POST (null) [11:00:20]execute_cgi path=json_proto method=POST [11:00:20]POST find Content-Length [11:00:20]Host: 172.17.41.195:8080 [11:00:20]Content-Length: 677 [11:00:20]Content-Type: application/json [11:00:20] [11:00:20]POST finish read [11:00:20]Found Content-Length = 677 [11:00:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507753", "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" ] } } [11:00:20]execute_script... [11:00: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)507753", "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" ] } } [11:00:20]POST & json_proto [11:00:20]process_json_proto [11:00:20]json parsed OK: [11:00:20]protocol is kg_v1.0 [11:00:20]action value=close_receipt [11:00:20]process_action close_receipt [11:00:20]cmd_close_receipt [11:00:20]MH_GetDate [11:00:20]Write to MH i2c: F0 00 00 AE 13 B0 [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: F0 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: F0 09 00 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: F0 09 00 AE 13 00 C7 38 47 66 FC 21 6F 64 55 [11:00:20]GetLastDocTimeStamp 1715943436 [11:00:20]current date 1715943623 [11:00:20]FM_GetShiftState [11:00:20]SAM_PROTO_GetShiftState [11:00:20]wFMCommunicate request_size=4 [11:00:20]MH_SAM_APDU [11:00:20]CAPDU: 80 13 01 00 [11:00:20]Write to MH i2c: E2 08 00 AF 13 80 13 01 00 00 00 00 00 3F [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:20]Read from MH i2c: E2 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 0E 00 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 0E 00 AF 13 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 C5 [11:00:20]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:00:20]wFMCommunicate OK [11:00:20]SAM_PROTO_GetShiftState done [11:00:20]FM_GetShiftState done [11:00:20]opened in 1715905068 [11:00:20]opened+sec_in_day 1715991468 [11:00:20]quantity*price = 50033 [11:00:20]sum+1 = 50034 [11:00:20]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 СНО: Общий режим Чек 38 17.05.2024 11:00 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67629 ФПД: 181029657020920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T110023&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67629&fm=181029657020920&tin=02508201610067®Number=0000000000091845&sum=50000 [11:00:21]StoreToDocumentArchive [11:00:21]shift 358 fd 67629 [11:00:21]save to /storage/0358/doc_00067629 [11:00:21]save last doc name /storage/0358/doc_00067629 to /storage/kkm_last_doc_name [11:00:21]save OK [11:00:21]Clear old archive folders... [11:00:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:21]tlvbuf is 015E9570 [11:00:21]SAM_PROTO_ClearQueue [11:00:21]wFMCommunicate request_size=4 [11:00:21]MH_SAM_APDU [11:00:21]CAPDU: 80 09 00 00 [11:00:21]Write to MH i2c: E2 08 00 BC 13 80 09 00 00 00 00 00 00 41 [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:21]Read from MH i2c: E2 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 03 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 03 00 BC 13 00 90 00 43 [11:00:21]RAPDU: 90 00 [11:00:21]wFMCommunicate OK [11:00:21]SAM_PROTO_ClearQueue done [11:00:21]KKMCreateOFDPacket [11:00:21]OFDProtocolAddRootSTLVToBuf [11:00:21]FM_MakeSignedData [11:00:21]FM_MakeSignedData [11:00:21]SAM_PROTO_SignData [11:00:21]wFMCommunicate request_size=4 [11:00:21]MH_SAM_APDU [11:00:21]CAPDU: 80 0D 01 02 [11:00:21]Write to MH i2c: E2 08 00 BD 13 80 0D 01 02 00 00 00 00 49 [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:21]Read from MH i2c: E2 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 03 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 03 00 BD 13 00 90 00 44 [11:00:21]RAPDU: 90 00 [11:00:21]wFMCommunicate OK [11:00:21]wFMCommunicate request_size=255 [11:00:21]MH_SAM_APDU [11:00: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 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 26 00 00 00 F4 03 04 00 C7 38 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 A4 [11:00:21]Write to MH i2c: E2 02 01 BE 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 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 26 00 00 00 F4 03 04 00 C7 38 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 A4 00 00 E7 [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:21]Read from MH i2c: E2 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 03 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 03 00 BE 13 00 90 00 45 [11:00:21]RAPDU: 90 00 [11:00:21]wFMCommunicate OK [11:00:21]wFMCommunicate request_size=10 [11:00:21]MH_SAM_APDU [11:00:21]CAPDU: 80 0D 02 02 05 A5 40 66 89 F8 [11:00:21]Write to MH i2c: E2 0D 00 BF 13 80 0D 02 02 05 00 A5 40 66 89 F8 00 00 22 [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:21]Read from MH i2c: E2 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 03 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 03 00 BF 13 00 90 00 46 [11:00:21]RAPDU: 90 00 [11:00:21]wFMCommunicate OK [11:00:21]wFMCommunicate request_size=4 [11:00:21]MH_SAM_APDU [11:00:21]CAPDU: 80 0D 03 02 [11:00:21]Write to MH i2c: E2 08 00 C0 13 80 0D 03 02 00 00 00 00 4E [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:21]Read from MH i2c: E2 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 0B 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 0B 00 C0 13 00 0A 71 F0 40 2C E2 8B 75 90 00 08 [11:00:21]RAPDU: 0A 71 F0 40 2C E2 8B 75 90 00 [11:00:21]wFMCommunicate OK [11:00:21]SAM_PROTO_SignData done [11:00:21]FM_MakeSignedData done [11:00:21]CreateOFDProtocolMessage [11:00:21]wFMCommunicate request_size=4 [11:00:21]MH_SAM_APDU [11:00:21]CAPDU: 80 11 00 00 [11:00:21]Write to MH i2c: E2 08 00 C1 13 80 11 00 00 00 00 00 00 4E [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:21]Read from MH i2c: E2 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 17 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 17 00 C1 13 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:00:21]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:21]wFMCommunicate OK [11:00:21]CreateOFDProtocolMessage done [11:00:21]OFDSenderStorePacket 67629 [11:00:21]StoreOFDPacket docnum=67629 [11:00: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 31 41 07 01 85 A8 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 26 00 00 00 F4 03 04 00 C7 38 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 A4 A5 40 66 89 F8 0A 71 F0 40 2C E2 8B 75 [11:00:21]CheckFolder [11:00:21]dirname=/storage/ofd_packets [11:00:21]CheckFolder done [11:00:21]ProducePacketName [11:00:21]name=ofd_packets/00067629 [11:00:21]NVStorageSaveData ofd_packets/00067629 [11:00:21]File name is /storage/ofd_packets/00067629 [11:00:21]Write 301 bytes [11:00:21]NVStorageSaveData done [11:00:21]OFDSenderStorePacket done [11:00:21]KKMCreateOFDPacket done [11:00:21]NVStorageSaveData kkm_last_timestamp [11:00:21]File name is /storage/kkm_last_timestamp [11:00:21]Write 4 bytes [11:00:21]NVStorageSaveData done [11:00:21]ExternCall_PrintAddStr [11:00:21]wPrintStart [11:00:21]Write to MH i2c: 01 00 00 C2 13 D5 [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: 01 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: 01 07 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: 01 07 00 C2 13 00 00 00 00 00 FF 0F EA [11:00:21]RasterBufferAndPrint [11:00:21]line Счет N : (1)507753 [11:00:21]line ИНН: 02508201610067 [11:00:21]line Контрольно-Кассовый Чек [11:00:21]line ПРОДАЖА [11:00:21]line ТРК (МРК, ГНК) : 33 [11:00:21]line Товар: 2710124130 [11:00:21]line Аи-92-К-5 [11:00:21]line 7.490 * 66.80 [11:00:21]line = 500.33 [11:00:21]line НДС 12% НСП 1% [11:00:21]line > о реализуемом товаре [11:00:21]line ОКРУГЛЕНИЕ: -0.33 [11:00:21]line ИТОГО: 500.00 [11:00:21]line Внесено: 500.00 [11:00:21]line СДАЧА: 0.00 [11:00:21]line НСП 1% : 4.43 [11:00:21]line НДС 12% : 53.13 [11:00:21]line Наличными: 500.00 [11:00:21]line Безнал.: 0.00 [11:00:21]line Место: АЗС № 91 "Партнер Нефть" [11:00:21]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:00:21]line СНО: Общий режим [11:00:21]line Чек 38 17.05.2024 11:00 [11:00:21]line Смена: 358 ФФД: 1.0 [11:00:21]line ЗНМ: 0300000119 [11:00:21]line РНМ: 0000000000091845 [11:00:21]line Версия ККМ: 001 [11:00:21]line ФМ: 0000000000871829 [11:00:21]line ФД: 67629 [11:00:21]line ФПД: 181029657020920 [11:00:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T110023&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67629&fm=181029657020920&tin=02508201610067®Number=0000000000091845&sum=50000 [11:00:22]OFD Sender: Processing packet 67629 [packets to send 35, broken 34] [11:00:22]ProducePacketName [11:00:22]name=ofd_packets/00067629 [11:00:22]OFD Sender: To server: pG, [11:00:22]CommunicateWithHost lk.salyk.kg:30040 [11:00:22]ConnectInit lk.salyk.kg [11:00:22]written 0, free lines is 4095 [11:00:22]Connected sock=10 [11:00: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 31 41 07 01 85 A8 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 26 00 00 00 F4 03 04 00 C7 38 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 A4 A5 40 66 89 F8 0A 71 F0 40 2C E2 8B 75 [11:00: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 67 05 47 00 99 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 9F E0 46 66 B6 04 01 00 00 3B 5D 0B D7 C0 C9 8C 94 [11:00:22]CommunicateWithHost err = 0 [11:00:22]CheckOFDResponse [11:00:22]1017 (14) - 77093643461234 [11:00:22]1041 (16) - 0000000000871829 [11:00:22]1040 (4) - 67629 [11:00:22]1012 (4) - 17.05.2024 04:44 [11:00:22]1206 (1) - 0 [11:00:22]OFD Sender: Remove packet 67629 [11:00:22]ProducePacketName [11:00:22]name=ofd_packets/00067629 [11:00:22]NVStorageDeleteData [11:00:22]Write to MH i2c: 01 00 00 EC 13 FF [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: 01 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: 01 07 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: 01 07 00 EC 13 00 00 00 00 00 C8 0C DA [11:00:22]RasterBufferAndPrint [11:00:22]line [11:00:22]line [11:00:22]line [11:00:22]line [11:00:22]line [11:00:22]written 0, free lines is 3278 [11:00:22]MH_Cut [11:00:22]Write to MH i2c: D1 01 00 F3 13 01 D8 [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: D1 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: D1 01 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: D1 01 00 F3 13 00 D7 [11:00:22]Write to MH i2c: 01 00 00 F4 13 07 [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]OFD Sender: No OFD packet to send [11:00:23]*** Cut start [11:00:23]*** Purtial cut [11:00:23]*** Stage 1: CUTSNS_PIN = 1 [11:00:23]Read from MH i2c: 01 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: 01 07 00 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: 01 07 00 F4 13 00 00 00 00 00 FF 0F 1C [11:00:23]process_action close_receipt done [11:00:23]requested_data is exist [11:00:23]produce_requested_data [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 F5 13 80 11 00 00 00 00 00 00 82 [11:00:23]*** Stop cut motor [11:00:23]*** Cut end [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 F5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D8 [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 F6 13 80 13 00 00 00 00 00 00 85 [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 F6 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 2D 08 01 00 0E 04 04 00 66 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 BA [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 2D 08 01 00 0E 04 04 00 66 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 [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 F7 13 80 13 01 00 00 00 00 00 87 [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 F7 13 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 0D [11:00:23]RAPDU: 09 00 01 2C A2 46 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 {"fm.sn":"0000000000871829","fd.num":67629,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:00:23]process_action_free close_receipt [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":{"fm.sn":"0000000000871829","fd.num":67629,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [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 7.Close socket [11:00:23]Sock 7.Thread stoped [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]accept exits with 9 [11:01:12]New connection [11:01:12]New thread 3067395428 created [11:01:12]Thread 3067538788 joined [11:01:12]Waiting for new connection... [11:01:12] Sock 9.Parse request [11:01:12]Sock 9.Check first char [11:01:12]Sock 9.First char is OK [11:01:12]request: POST /json_proto HTTP/1.0 [11:01:12]Method: POST [11:01:12]URL: /json_proto [11:01:12]Method is POST - this is cgi request [11:01:12]url: /json_proto [11:01:12]query_string will be loaded in cgi processing [11:01:12]execute_cgi json_proto POST (null) [11:01:12]execute_cgi path=json_proto method=POST [11:01:12]POST find Content-Length [11:01:12]Host: 172.17.41.195:8080 [11:01:12]Content-Length: 683 [11:01:12]Content-Type: application/json [11:01:12] [11:01:12]POST finish read [11:01:12]Found Content-Length = 683 [11:01:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12099", "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" ] } } [11:01:12]execute_script... [11:01: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 : (3)12099", "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" ] } } [11:01:12]POST & json_proto [11:01:12]process_json_proto [11:01:12]json parsed OK: [11:01:12]protocol is kg_v1.0 [11:01:12]action value=close_receipt [11:01:12]process_action close_receipt [11:01:12]cmd_close_receipt [11:01:12]MH_GetDate [11:01:12]Write to MH i2c: F0 00 00 F8 13 FA [11:01:12]Write i2c OK [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: F0 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: F0 09 00 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: F0 09 00 F8 13 00 FB 38 47 66 FC 21 6F 64 D3 [11:01:12]GetLastDocTimeStamp 1715943623 [11:01:12]current date 1715943675 [11:01:12]FM_GetShiftState [11:01:12]SAM_PROTO_GetShiftState [11:01:12]wFMCommunicate request_size=4 [11:01:12]MH_SAM_APDU [11:01:12]CAPDU: 80 13 01 00 [11:01:12]Write to MH i2c: E2 08 00 F9 13 80 13 01 00 00 00 00 00 89 [11:01:12]Write i2c OK [11:01:12]MH_I2C_Read... [11:01:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:12]Read from MH i2c: E2 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: E2 0E 00 [11:01:12]MH_I2C_Read... [11:01:12]Read from MH i2c: E2 0E 00 F9 13 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 0F [11:01:12]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:01:12]wFMCommunicate OK [11:01:12]SAM_PROTO_GetShiftState done [11:01:12]FM_GetShiftState done [11:01:12]opened in 1715905068 [11:01:12]opened+sec_in_day 1715991468 [11:01:12]quantity*price = 6200 [11:01:12]sum+1 = 6201 [11:01:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 62.00 НСП 1% : 0.55 НДС 12% : 6.58 Наличными: 62.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 39 17.05.2024 11:01 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67630 ФПД: 249267696520386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T110115&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67630&fm=249267696520386&tin=02508201610067®Number=0000000000091845&sum=6200 0 [11:01:13]StoreToDocumentArchive [11:01:13]shift 358 fd 67630 [11:01:13]save to /storage/0358/doc_00067630 [11:01:13]save last doc name /storage/0358/doc_00067630 to /storage/kkm_last_doc_name [11:01:13]save OK [11:01:13]Clear old archive folders... [11:01:13]ProcessDocumentItem done err = 0, tmpTLVsize=295 [11:01:13]tlvbuf is 015C6A60 [11:01:13]SAM_PROTO_ClearQueue [11:01:13]wFMCommunicate request_size=4 [11:01:13]MH_SAM_APDU [11:01:13]CAPDU: 80 09 00 00 [11:01:13]Write to MH i2c: E2 08 00 06 14 80 09 00 00 00 00 00 00 8C [11:01:13]Write i2c OK [11:01:13]MH_I2C_Read... [11:01:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:13]Read from MH i2c: E2 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: E2 03 00 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: E2 03 00 06 14 00 90 00 8E [11:01:13]RAPDU: 90 00 [11:01:13]wFMCommunicate OK [11:01:13]SAM_PROTO_ClearQueue done [11:01:13]KKMCreateOFDPacket [11:01:13]OFDProtocolAddRootSTLVToBuf [11:01:13]FM_MakeSignedData [11:01:13]FM_MakeSignedData [11:01:13]SAM_PROTO_SignData [11:01:13]wFMCommunicate request_size=4 [11:01:13]MH_SAM_APDU [11:01:13]CAPDU: 80 0D 01 02 [11:01:13]Write to MH i2c: E2 08 00 07 14 80 0D 01 02 00 00 00 00 94 [11:01:13]Write i2c OK [11:01:13]MH_I2C_Read... [11:01:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:13]Read from MH i2c: E2 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: E2 03 00 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: E2 03 00 07 14 00 90 00 8F [11:01:13]RAPDU: 90 00 [11:01:13]wFMCommunicate OK [11:01:13]wFMCommunicate request_size=255 [11:01:13]MH_SAM_APDU [11:01:13]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 27 00 00 00 F4 03 04 00 FB 38 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [11:01:13]Write to MH i2c: E2 02 01 08 14 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 27 00 00 00 F4 03 04 00 FB 38 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 4D [11:01:13]Write i2c OK [11:01:13]MH_I2C_Read... [11:01:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:13]Read from MH i2c: E2 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: E2 03 00 [11:01:13]MH_I2C_Read... [11:01:13]Read from MH i2c: E2 03 00 08 14 00 90 00 90 [11:01:13]RAPDU: 90 00 [11:01:13]wFMCommunicate OK [11:01:13]wFMCommunicate request_size=54 [11:01:13]MH_SAM_APDU [11:01:13]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 2E 08 01 00 35 04 06 00 E2 B5 28 81 4C C2 [11:01:13]Write to MH i2c: E2 39 00 09 14 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 2E 08 01 00 35 04 06 00 E2 B5 28 81 4C C2 00 00 48 [11:01:13]Write i2c OK [11:01:13]MH_I2C_Read... [11:01:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:14]Read from MH i2c: E2 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 03 00 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 03 00 09 14 00 90 00 91 [11:01:14]RAPDU: 90 00 [11:01:14]wFMCommunicate OK [11:01:14]wFMCommunicate request_size=4 [11:01:14]MH_SAM_APDU [11:01:14]CAPDU: 80 0D 03 02 [11:01:14]Write to MH i2c: E2 08 00 0A 14 80 0D 03 02 00 00 00 00 99 [11:01:14]Write i2c OK [11:01:14]MH_I2C_Read... [11:01:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:14]Read from MH i2c: E2 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 0B 00 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 0B 00 0A 14 00 32 33 FF 27 6D CE 11 CC 90 00 3D [11:01:14]RAPDU: 32 33 FF 27 6D CE 11 CC 90 00 [11:01:14]wFMCommunicate OK [11:01:14]SAM_PROTO_SignData done [11:01:14]FM_MakeSignedData done [11:01:14]CreateOFDProtocolMessage [11:01:14]wFMCommunicate request_size=4 [11:01:14]MH_SAM_APDU [11:01:14]CAPDU: 80 11 00 00 [11:01:14]Write to MH i2c: E2 08 00 0B 14 80 11 00 00 00 00 00 00 99 [11:01:14]Write i2c OK [11:01:14]MH_I2C_Read... [11:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:14]Read from MH i2c: E2 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: E2 17 00 [11:01:14]MH_I2C_Read... [11:01:14]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 [11:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:01:14]wFMCommunicate OK [11:01:14]CreateOFDProtocolMessage done [11:01:14]OFDSenderStorePacket 67630 [11:01:14]StoreOFDPacket docnum=67630 [11:01: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 3B 01 00 00 B0 C1 33 01 F1 17 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 27 00 00 00 F4 03 04 00 FB 38 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 E2 B5 28 81 4C C2 32 33 FF 27 6D CE 11 CC [11:01:14]CheckFolder [11:01:14]dirname=/storage/ofd_packets [11:01:14]CheckFolder done [11:01:14]ProducePacketName [11:01:14]name=ofd_packets/00067630 [11:01:14]NVStorageSaveData ofd_packets/00067630 [11:01:14]File name is /storage/ofd_packets/00067630 [11:01:14]Write 345 bytes [11:01:14]NVStorageSaveData done [11:01:14]OFDSenderStorePacket done [11:01:14]KKMCreateOFDPacket done [11:01:14]NVStorageSaveData kkm_last_timestamp [11:01:14]File name is /storage/kkm_last_timestamp [11:01:14]Write 4 bytes [11:01:14]NVStorageSaveData done [11:01:14]ExternCall_PrintAddStr [11:01:14]wPrintStart [11:01:14]Write to MH i2c: 01 00 00 0C 14 20 [11:01:14]Write i2c OK [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: 01 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: 01 07 00 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: 01 07 00 0C 14 00 00 00 00 00 FF 0F 35 [11:01:14]RasterBufferAndPrint [11:01:14]line Счет N : (3)12099 [11:01:14]line ИНН: 02508201610067 [11:01:14]line Контрольно-Кассовый Чек [11:01:14]line ПРОДАЖА [11:01:14]line Товар: 5449000027450 [11:01:14]line Напиток FuzeTea чай манго,ром 0,5л [11:01:14]line 1.000 * 62.00 [11:01:14]line = 62.00 [11:01:14]line НДС 12% НСП 1% [11:01:14]line > о реализуемом товаре [11:01:14]line ИТОГО: 62.00 [11:01:14]line НСП 1% : 0.55 [11:01:14]line НДС 12% : 6.58 [11:01:14]line Наличными: 62.00 [11:01:14]line Безнал.: 0.00 [11:01:14]line Место: АЗС № 91 "Партнер Нефть" [11:01:14]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:01:14]line СНО: Общий режим [11:01:14]line Чек 39 17.05.2024 11:01 [11:01:14]line Смена: 358 ФФД: 1.0 [11:01:14]line ЗНМ: 0300000119 [11:01:14]line РНМ: 0000000000091845 [11:01:14]line Версия ККМ: 001 [11:01:14]line ФМ: 0000000000871829 [11:01:14]line ФД: 67630 [11:01:14]line ФПД: 249267696520386 [11:01:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T110115&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67630&fm=249267696520386&tin=02508201610067®Number=0000000000091845&sum=6200 [11:01:14]line 0 [11:01:14]OFD Sender: Processing packet 67630 [packets to send 35, broken 34] [11:01:14]ProducePacketName [11:01:14]name=ofd_packets/00067630 [11:01:14]OFD Sender: To server: pG, [11:01:14]CommunicateWithHost lk.salyk.kg:30040 [11:01:14]ConnectInit lk.salyk.kg [11:01:14]written 0, free lines is 4095 [11:01:14]Connected sock=10 [11:01: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 3B 01 00 00 B0 C1 33 01 F1 17 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 27 00 00 00 F4 03 04 00 FB 38 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 E2 B5 28 81 4C C2 32 33 FF 27 6D CE 11 CC [11:01: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 ED 8A 47 00 C3 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 D3 E0 46 66 B6 04 01 00 00 F2 B4 E6 0C E9 D9 3A 25 [11:01:14]CommunicateWithHost err = 0 [11:01:14]CheckOFDResponse [11:01:14]1017 (14) - 77093643461234 [11:01:14]1041 (16) - 0000000000871829 [11:01:14]1040 (4) - 67630 [11:01:14]1012 (4) - 17.05.2024 04:45 [11:01:14]1206 (1) - 0 [11:01:14]OFD Sender: Remove packet 67630 [11:01:14]ProducePacketName [11:01:14]name=ofd_packets/00067630 [11:01:14]NVStorageDeleteData [11:01:14]Write to MH i2c: 01 00 00 34 14 48 [11:01:14]Write i2c OK [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: 01 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: 01 07 00 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: 01 07 00 34 14 00 00 00 00 00 D3 0C 2E [11:01:14]RasterBufferAndPrint [11:01:14]line [11:01:14]line [11:01:14]line [11:01:14]line [11:01:14]line [11:01:14]written 0, free lines is 3287 [11:01:14]MH_Cut [11:01:14]Write to MH i2c: D1 01 00 3B 14 01 21 [11:01:14]Write i2c OK [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: D1 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: D1 01 00 [11:01:14]MH_I2C_Read... [11:01:14]Read from MH i2c: D1 01 00 3B 14 00 20 [11:01:14]Write to MH i2c: 01 00 00 3C 14 50 [11:01:14]Write i2c OK [11:01:14]MH_I2C_Read... [11:01:15]OFD Sender: No OFD packet to send [11:01:15]*** Cut start [11:01:15]*** Purtial cut [11:01:15]*** CUTSNS_PIN = 0 [11:01:16]*** Stage 1: CUTSNS_PIN = 1 [11:01:17]Read from MH i2c: 01 [11:01:17]MH_I2C_Read... [11:01:17]*** Stop cut motor [11:01:17]*** Cut end [11:01:17]Read from MH i2c: 01 07 00 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: 01 07 00 3C 14 00 00 00 00 00 FF 0F 65 [11:01:17]process_action close_receipt done [11:01:17]requested_data is exist [11:01:17]produce_requested_data [11:01:17]requested_item fm.sn is exist - process it [11:01:17]wFMCommunicate request_size=4 [11:01:17]MH_SAM_APDU [11:01:17]CAPDU: 80 11 00 00 [11:01:17]Write to MH i2c: E2 08 00 3D 14 80 11 00 00 00 00 00 00 CB [11:01:17]Write i2c OK [11:01:17]MH_I2C_Read... [11:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:17]Read from MH i2c: E2 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 17 00 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 17 00 3D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 21 [11:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:01:17]wFMCommunicate OK [11:01:17]requested_item fd.num is exist - process it [11:01:17]SAM_PROTO_GetFieldsCounters [11:01:17]wFMCommunicate request_size=4 [11:01:17]MH_SAM_APDU [11:01:17]CAPDU: 80 13 00 00 [11:01:17]Write to MH i2c: E2 08 00 3E 14 80 13 00 00 00 00 00 00 CE [11:01:17]Write i2c OK [11:01:17]MH_I2C_Read... [11:01:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:17]Read from MH i2c: E2 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 62 00 [11:01:17]MH_I2C_Read... [11:01:17]Read from MH i2c: E2 62 00 3E 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 2E 08 01 00 0E 04 04 00 66 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 07 [11:01: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 2E 08 01 00 0E 04 04 00 66 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 [11:01:17]wFMCommunicate OK [11:01:17]SAM_PROTO_GetFieldsCounters done [11:01:17]requested_item shift.num is exist - process it [11:01:17]requested_item shift.opened is exist - process it [11:01:17]req_shift_opened [11:01:17]FM_GetShiftState [11:01:17]SAM_PROTO_GetShiftState [11:01:17]wFMCommunicate request_size=4 [11:01:17]MH_SAM_APDU [11:01:17]CAPDU: 80 13 01 00 [11:01:17]Write to MH i2c: E2 08 00 3F 14 80 13 01 00 00 00 00 00 D0 [11:01:17]Write i2c OK [11:01:17]MH_I2C_Read... [11:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:18]Read from MH i2c: E2 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 0E 00 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 0E 00 3F 14 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 56 [11:01:18]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:01:18]wFMCommunicate OK [11:01:18]SAM_PROTO_GetShiftState done [11:01:18]FM_GetShiftState done [11:01:18]req_shift_opened done [11:01:18]requested_item shift.open_date is exist - process it [11:01:18]req_shift_open_date [11:01:18]req_shift_open_date done [11:01:18]produce_requested_data done [11:01:18]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67630,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:01:18]process_action_free close_receipt [11:01:18]json_value_free [11:01:18]json_value_free done [11:01:18]process_json_proto returns [11:01:18]Send response to host [11:01:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67630,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:01:18]free response buf [11:01:18]execute_script done [11:01:18]execute_script returns [11:01:18]free content buf [11:01:18]Sock 9.Close socket [11:01:18]Sock 9.Thread stoped [11:01:18]accept exits with 7 [11:01:18]New connection [11:01:18]New thread 3067538788 created [11:01:18]Thread 3067395428 joined [11:01:18]Waiting for new connection... [11:01:18] Sock 7.Parse request [11:01:18]Sock 7.Check first char [11:01:18]Sock 7.First char is OK [11:01:18]request: POST /json_proto HTTP/1.0 [11:01:18]Method: POST [11:01:18]URL: /json_proto [11:01:18]Method is POST - this is cgi request [11:01:18]url: /json_proto [11:01:18]query_string will be loaded in cgi processing [11:01:18]execute_cgi json_proto POST (null) [11:01:18]execute_cgi path=json_proto method=POST [11:01:18]POST find Content-Length [11:01:18]Host: 172.17.41.195:8080 [11:01:18]Content-Length: 816 [11:01:18]Content-Type: application/json [11:01:18] [11:01:18]POST finish read [11:01:18]Found Content-Length = 816 [11:01:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:18]execute_script... [11:01: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)507754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:18]POST & json_proto [11:01:18]process_json_proto [11:01:18]json parsed OK: [11:01:18]protocol is kg_v1.0 [11:01:18]action value=close_receipt [11:01:18]process_action close_receipt [11:01:18]cmd_close_receipt [11:01:18]MH_GetDate [11:01:18]Write to MH i2c: F0 00 00 40 14 43 [11:01:18]Write i2c OK [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: F0 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: F0 09 00 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: F0 09 00 40 14 00 01 39 47 66 FC 21 6F 64 23 [11:01:18]GetLastDocTimeStamp 1715943675 [11:01:18]current date 1715943681 [11:01:18]FM_GetShiftState [11:01:18]SAM_PROTO_GetShiftState [11:01:18]wFMCommunicate request_size=4 [11:01:18]MH_SAM_APDU [11:01:18]CAPDU: 80 13 01 00 [11:01:18]Write to MH i2c: E2 08 00 41 14 80 13 01 00 00 00 00 00 D2 [11:01:18]Write i2c OK [11:01:18]MH_I2C_Read... [11:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:18]Read from MH i2c: E2 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 0E 00 [11:01:18]MH_I2C_Read... [11:01:18]Read from MH i2c: E2 0E 00 41 14 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 58 [11:01:18]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:01:18]wFMCommunicate OK [11:01:18]SAM_PROTO_GetShiftState done [11:01:18]FM_GetShiftState done [11:01:18]opened in 1715905068 [11:01:18]opened+sec_in_day 1715991468 [11:01:18]quantity*price = 100023 [11:01:18]sum+1 = 100024 [11:01:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 40 17.05.2024 11:01 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67631 ФПД: 40850528525691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T110121&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67631&fm=40850528525691&tin=02508201610067®Number=0000000000091845&sum=100023 [11:01:19]StoreToDocumentArchive [11:01:19]shift 358 fd 67631 [11:01:19]save to /storage/0358/doc_00067631 [11:01:19]save last doc name /storage/0358/doc_00067631 to /storage/kkm_last_doc_name [11:01:19]save OK [11:01:19]Clear old archive folders... [11:01:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:01:19]tlvbuf is 015C2080 [11:01:19]SAM_PROTO_ClearQueue [11:01:19]wFMCommunicate request_size=4 [11:01:19]MH_SAM_APDU [11:01:19]CAPDU: 80 09 00 00 [11:01:19]Write to MH i2c: E2 08 00 4E 14 80 09 00 00 00 00 00 00 D4 [11:01:19]Write i2c OK [11:01:19]MH_I2C_Read... [11:01:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:19]Read from MH i2c: E2 [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: E2 03 00 [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: E2 03 00 4E 14 00 90 00 D6 [11:01:19]RAPDU: 90 00 [11:01:19]wFMCommunicate OK [11:01:19]SAM_PROTO_ClearQueue done [11:01:19]KKMCreateOFDPacket [11:01:19]OFDProtocolAddRootSTLVToBuf [11:01:19]FM_MakeSignedData [11:01:19]FM_MakeSignedData [11:01:19]SAM_PROTO_SignData [11:01:19]wFMCommunicate request_size=4 [11:01:19]MH_SAM_APDU [11:01:19]CAPDU: 80 0D 01 02 [11:01:19]Write to MH i2c: E2 08 00 4F 14 80 0D 01 02 00 00 00 00 DC [11:01:19]Write i2c OK [11:01:19]MH_I2C_Read... [11:01:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:19]Read from MH i2c: E2 [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: E2 03 00 [11:01:19]MH_I2C_Read... [11:01:19]Read from MH i2c: E2 03 00 4F 14 00 90 00 D7 [11:01:19]RAPDU: 90 00 [11:01:19]wFMCommunicate OK [11:01:19]wFMCommunicate request_size=255 [11:01:19]MH_SAM_APDU [11:01: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 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 28 00 00 00 F4 03 04 00 01 39 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 25 27 41 3D [11:01:19]Write to MH i2c: E2 02 01 50 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 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 28 00 00 00 F4 03 04 00 01 39 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 25 27 41 3D 00 00 5C [11:01:19]Write i2c OK [11:01:19]MH_I2C_Read... [11:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:20]Read from MH i2c: E2 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 03 00 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 03 00 50 14 00 90 00 D8 [11:01:20]RAPDU: 90 00 [11:01:20]wFMCommunicate OK [11:01:20]wFMCommunicate request_size=7 [11:01:20]MH_SAM_APDU [11:01:20]CAPDU: 80 0D 02 02 02 DD 7B [11:01:20]Write to MH i2c: E2 0A 00 51 14 80 0D 02 02 02 00 DD 7B 00 00 3B [11:01:20]Write i2c OK [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 [11:01:20]MH_I2C_Read... [11:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:20]Read from MH i2c: E2 03 00 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 03 00 51 14 00 90 00 D9 [11:01:20]RAPDU: 90 00 [11:01:20]wFMCommunicate OK [11:01:20]wFMCommunicate request_size=4 [11:01:20]MH_SAM_APDU [11:01:20]CAPDU: 80 0D 03 02 [11:01:20]Write to MH i2c: E2 08 00 52 14 80 0D 03 02 00 00 00 00 E1 [11:01:20]Write i2c OK [11:01:20]MH_I2C_Read... [11:01:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:20]Read from MH i2c: E2 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 0B 00 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 0B 00 52 14 00 D8 DE 77 AB 64 41 90 CC 90 00 BB [11:01:20]RAPDU: D8 DE 77 AB 64 41 90 CC 90 00 [11:01:20]wFMCommunicate OK [11:01:20]SAM_PROTO_SignData done [11:01:20]FM_MakeSignedData done [11:01:20]CreateOFDProtocolMessage [11:01:20]wFMCommunicate request_size=4 [11:01:20]MH_SAM_APDU [11:01:20]CAPDU: 80 11 00 00 [11:01:20]Write to MH i2c: E2 08 00 53 14 80 11 00 00 00 00 00 00 E1 [11:01:20]Write i2c OK [11:01:20]MH_I2C_Read... [11:01:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:20]Read from MH i2c: E2 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 17 00 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: E2 17 00 53 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 37 [11:01: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:01:20]wFMCommunicate OK [11:01:20]CreateOFDProtocolMessage done [11:01:20]OFDSenderStorePacket 67631 [11:01:20]StoreOFDPacket docnum=67631 [11:01: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 1E 38 04 01 60 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 28 00 00 00 F4 03 04 00 01 39 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 25 27 41 3D DD 7B D8 DE 77 AB 64 41 90 CC [11:01:20]CheckFolder [11:01:20]dirname=/storage/ofd_packets [11:01:20]CheckFolder done [11:01:20]ProducePacketName [11:01:20]name=ofd_packets/00067631 [11:01:20]NVStorageSaveData ofd_packets/00067631 [11:01:20]File name is /storage/ofd_packets/00067631 [11:01:20]Write 298 bytes [11:01:20]NVStorageSaveData done [11:01:20]OFDSenderStorePacket done [11:01:20]KKMCreateOFDPacket done [11:01:20]NVStorageSaveData kkm_last_timestamp [11:01:20]File name is /storage/kkm_last_timestamp [11:01:20]Write 4 bytes [11:01:20]NVStorageSaveData done [11:01:20]ExternCall_PrintAddStr [11:01:20]wPrintStart [11:01:20]Write to MH i2c: 01 00 00 54 14 68 [11:01:20]Write i2c OK [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: 01 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: 01 07 00 [11:01:20]MH_I2C_Read... [11:01:20]Read from MH i2c: 01 07 00 54 14 00 00 00 00 00 FF 0F 7D [11:01:20]RasterBufferAndPrint [11:01:20]line Счет N : (1)507754 [11:01:20]line ИНН: 02508201610067 [11:01:20]line Контрольно-Кассовый Чек [11:01:20]line ПРОДАЖА [11:01:20]line ТРК (МРК, ГНК) : 11 [11:01:20]line Товар: 2710194210 [11:01:20]line ДТ-К-5 [11:01:20]line 13.390 * 74.70 [11:01:20]line = 1000.23 [11:01:20]line НДС 12% НСП 1% [11:01:20]line > о реализуемом товаре [11:01:20]line ИТОГО: 1000.23 [11:01:20]line НСП 1% : 8.85 [11:01:20]line НДС 12% : 106.22 [11:01:20]line Наличными: 0.00 [11:01:20]line Безнал.: 1000.23 [11:01:20]line Место: АЗС № 91 "Партнер Нефть" [11:01:20]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:01:20]line СНО: Общий режим [11:01:20]line Чек 40 17.05.2024 11:01 [11:01:20]line Смена: 358 ФФД: 1.0 [11:01:20]line ЗНМ: 0300000119 [11:01:20]line РНМ: 0000000000091845 [11:01:20]line Версия ККМ: 001 [11:01:20]line Платежная система: Бакай Банк [11:01:20]line ФМ: 0000000000871829 [11:01:20]line ФД: 67631 [11:01:20]line ФПД: 40850528525691 [11:01:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T110121&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67631&fm=40850528525691&tin=02508201610067®Number=0000000000091845&sum=100023 [11:01:20]OFD Sender: Processing packet 67631 [packets to send 35, broken 34] [11:01:20]ProducePacketName [11:01:20]name=ofd_packets/00067631 [11:01:20]OFD Sender: To server: pG, [11:01:20]CommunicateWithHost lk.salyk.kg:30040 [11:01:20]ConnectInit lk.salyk.kg [11:01:20]written 0, free lines is 4095 [11:01:20]Connected sock=10 [11:01: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 1E 38 04 01 60 06 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 28 00 00 00 F4 03 04 00 01 39 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 25 27 41 3D DD 7B D8 DE 77 AB 64 41 90 CC [11:01: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 3A 45 47 00 3B 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 2F 08 01 00 F4 03 04 00 D9 E0 46 66 B6 04 01 00 00 5F 64 A9 56 34 0D 22 3B [11:01:20]CommunicateWithHost err = 0 [11:01:20]CheckOFDResponse [11:01:20]1017 (14) - 77093643461234 [11:01:20]1041 (16) - 0000000000871829 [11:01:20]1040 (4) - 67631 [11:01:20]1012 (4) - 17.05.2024 04:45 [11:01:20]1206 (1) - 0 [11:01:20]OFD Sender: Remove packet 67631 [11:01:20]ProducePacketName [11:01:20]name=ofd_packets/00067631 [11:01:20]NVStorageDeleteData [11:01:21]Write to MH i2c: 01 00 00 7D 14 91 [11:01:21]Write i2c OK [11:01:21]MH_I2C_Read... [11:01:21]Read from MH i2c: 01 [11:01:21]MH_I2C_Read... [11:01:21]Read from MH i2c: 01 07 00 [11:01:21]MH_I2C_Read... [11:01:21]Read from MH i2c: 01 07 00 7D 14 00 00 00 00 00 DA 0C 7E [11:01:21]RasterBufferAndPrint [11:01:21]line [11:01:21]line [11:01:21]line [11:01:21]line [11:01:21]line [11:01:21]written 0, free lines is 3299 [11:01:21]MH_Cut [11:01:21]Write to MH i2c: D1 01 00 84 14 01 6A [11:01:21]Write i2c OK [11:01:21]MH_I2C_Read... [11:01:21]Read from MH i2c: D1 [11:01:21]MH_I2C_Read... [11:01:21]Read from MH i2c: D1 01 00 [11:01:21]MH_I2C_Read... [11:01:21]Read from MH i2c: D1 01 00 84 14 00 69 [11:01:21]Write to MH i2c: 01 00 00 85 14 99 [11:01:21]Write i2c OK [11:01:21]MH_I2C_Read... [11:01:21]OFD Sender: No OFD packet to send [11:01:21]*** Cut start [11:01:21]*** Purtial cut [11:01:21]*** Stage 1: CUTSNS_PIN = 1 [11:01:22]Read from MH i2c: 01 [11:01:22]MH_I2C_Read... [11:01:22]*** Stop cut motor [11:01:22]*** Cut end [11:01:22]Read from MH i2c: 01 07 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: 01 07 00 85 14 00 00 00 00 00 FF 0F AE [11:01:22]process_action close_receipt done [11:01:22]requested_data is exist [11:01:22]produce_requested_data [11:01:22]requested_item fm.sn is exist - process it [11:01:22]wFMCommunicate request_size=4 [11:01:22]MH_SAM_APDU [11:01:22]CAPDU: 80 11 00 00 [11:01:22]Write to MH i2c: E2 08 00 86 14 80 11 00 00 00 00 00 00 14 [11:01:22]Write i2c OK [11:01:22]MH_I2C_Read... [11:01:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:22]Read from MH i2c: E2 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 17 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 17 00 86 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6A [11:01:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:01:22]wFMCommunicate OK [11:01:22]requested_item fd.num is exist - process it [11:01:22]SAM_PROTO_GetFieldsCounters [11:01:22]wFMCommunicate request_size=4 [11:01:22]MH_SAM_APDU [11:01:22]CAPDU: 80 13 00 00 [11:01:22]Write to MH i2c: E2 08 00 87 14 80 13 00 00 00 00 00 00 17 [11:01:22]Write i2c OK [11:01:22]MH_I2C_Read... [11:01:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:22]Read from MH i2c: E2 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 62 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 62 00 87 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 2F 08 01 00 0E 04 04 00 66 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 54 [11:01:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 2F 08 01 00 0E 04 04 00 66 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 [11:01:22]wFMCommunicate OK [11:01:22]SAM_PROTO_GetFieldsCounters done [11:01:22]requested_item shift.num is exist - process it [11:01:22]requested_item shift.opened is exist - process it [11:01:22]req_shift_opened [11:01:22]FM_GetShiftState [11:01:22]SAM_PROTO_GetShiftState [11:01:22]wFMCommunicate request_size=4 [11:01:22]MH_SAM_APDU [11:01:22]CAPDU: 80 13 01 00 [11:01:22]Write to MH i2c: E2 08 00 88 14 80 13 01 00 00 00 00 00 19 [11:01:22]Write i2c OK [11:01:22]MH_I2C_Read... [11:01:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:22]Read from MH i2c: E2 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 0E 00 [11:01:22]MH_I2C_Read... [11:01:22]Read from MH i2c: E2 0E 00 88 14 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 9F [11:01:22]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:01:22]wFMCommunicate OK [11:01:22]SAM_PROTO_GetShiftState done [11:01:22]FM_GetShiftState done [11:01:22]req_shift_opened done [11:01:22]requested_item shift.open_date is exist - process it [11:01:22]req_shift_open_date [11:01:22]req_shift_open_date done [11:01:22]produce_requested_data done [11:01:22]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67631,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:01:22]process_action_free close_receipt [11:01:22]json_value_free [11:01:22]json_value_free done [11:01:22]process_json_proto returns [11:01:22]Send response to host [11:01:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67631,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:01:22]free response buf [11:01:22]execute_script done [11:01:22]execute_script returns [11:01:22]free content buf [11:01:22]Sock 7.Close socket [11:01:22]Sock 7.Thread stoped [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:35]accept exits with 9 [11:01:35]New connection [11:01:35]New thread 3067395428 created [11:01:35]Thread 3067538788 joined [11:01:35]Waiting for new connection... [11:01:35] Sock 9.Parse request [11:01:35]Sock 9.Check first char [11:01:35]Sock 9.First char is OK [11:01:35]request: POST /json_proto HTTP/1.0 [11:01:35]Method: POST [11:01:35]URL: /json_proto [11:01:35]Method is POST - this is cgi request [11:01:35]url: /json_proto [11:01:35]query_string will be loaded in cgi processing [11:01:35]execute_cgi json_proto POST (null) [11:01:35]execute_cgi path=json_proto method=POST [11:01:35]POST find Content-Length [11:01:35]Host: 172.17.41.195:8080 [11:01:35]Content-Length: 677 [11:01:35]Content-Type: application/json [11:01:35] [11:01:35]POST finish read [11:01:35]Found Content-Length = 677 [11:01:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507755", "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" : 6.560, "sum" : 438.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 438.00, "total" : 438.00, "payments": [ { "type": 0, "sum" : 438.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:35]execute_script... [11:01: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)507755", "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" : 6.560, "sum" : 438.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 438.00, "total" : 438.00, "payments": [ { "type": 0, "sum" : 438.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:35]POST & json_proto [11:01:35]process_json_proto [11:01:35]json parsed OK: [11:01:35]protocol is kg_v1.0 [11:01:35]action value=close_receipt [11:01:35]process_action close_receipt [11:01:35]cmd_close_receipt [11:01:35]MH_GetDate [11:01:35]Write to MH i2c: F0 00 00 89 14 8C [11:01:35]Write i2c OK [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: F0 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: F0 09 00 [11:01:35]MH_I2C_Read... [11:01:35]Read from MH i2c: F0 09 00 89 14 00 12 39 47 66 FC 21 6F 64 7D [11:01:35]GetLastDocTimeStamp 1715943681 [11:01:35]current date 1715943698 [11:01:35]FM_GetShiftState [11:01:35]SAM_PROTO_GetShiftState [11:01:35]wFMCommunicate request_size=4 [11:01:35]MH_SAM_APDU [11:01:35]CAPDU: 80 13 01 00 [11:01:35]Write to MH i2c: E2 08 00 8A 14 80 13 01 00 00 00 00 00 1B [11:01:35]Write i2c OK [11:01:35]MH_I2C_Read... [11:01:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:36]Read from MH i2c: E2 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: E2 0E 00 [11:01:36]MH_I2C_Read... [11:01:36]Read from MH i2c: E2 0E 00 8A 14 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 A1 [11:01:36]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:01:36]wFMCommunicate OK [11:01:36]SAM_PROTO_GetShiftState done [11:01:36]FM_GetShiftState done [11:01:36]opened in 1715905068 [11:01:36]opened+sec_in_day 1715991468 [11:01:36]quantity*price = 43820 [11:01:36]sum+1 = 43822 [11:01:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 438.00 Внесено: 438.00 СДАЧА: 0.00 НСП 1% : 3.88 НДС 12% : 46.54 Наличными: 438.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 41 17.05.2024 11:01 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67632 ФПД: 44400002398115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T110138&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67632&fm=44400002398115&tin=02508201610067®Number=0000000000091845&sum=43800 [11:01:37]StoreToDocumentArchive [11:01:37]shift 358 fd 67632 [11:01:37]save to /storage/0358/doc_00067632 [11:01:37]save last doc name /storage/0358/doc_00067632 to /storage/kkm_last_doc_name [11:01:37]save OK [11:01:37]Clear old archive folders... [11:01:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:01:37]tlvbuf is B6F37AF0 [11:01:37]SAM_PROTO_ClearQueue [11:01:37]wFMCommunicate request_size=4 [11:01:37]MH_SAM_APDU [11:01:37]CAPDU: 80 09 00 00 [11:01:37]Write to MH i2c: E2 08 00 97 14 80 09 00 00 00 00 00 00 1D [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:37]Read from MH i2c: E2 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 03 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 03 00 97 14 00 90 00 1F [11:01:37]RAPDU: 90 00 [11:01:37]wFMCommunicate OK [11:01:37]SAM_PROTO_ClearQueue done [11:01:37]KKMCreateOFDPacket [11:01:37]OFDProtocolAddRootSTLVToBuf [11:01:37]FM_MakeSignedData [11:01:37]FM_MakeSignedData [11:01:37]SAM_PROTO_SignData [11:01:37]wFMCommunicate request_size=4 [11:01:37]MH_SAM_APDU [11:01:37]CAPDU: 80 0D 01 02 [11:01:37]Write to MH i2c: E2 08 00 98 14 80 0D 01 02 00 00 00 00 25 [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:37]Read from MH i2c: E2 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 03 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 03 00 98 14 00 90 00 20 [11:01:37]RAPDU: 90 00 [11:01:37]wFMCommunicate OK [11:01:37]wFMCommunicate request_size=255 [11:01:37]MH_SAM_APDU [11:01: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 A0 19 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 2D AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 12 00 00 00 00 07 04 06 00 18 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 12 39 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 28 [11:01:37]Write to MH i2c: E2 02 01 99 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 A0 19 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 2D AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 12 00 00 00 00 07 04 06 00 18 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 12 39 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 28 00 00 2B [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:37]Read from MH i2c: E2 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 03 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 03 00 99 14 00 90 00 21 [11:01:37]RAPDU: 90 00 [11:01:37]wFMCommunicate OK [11:01:37]wFMCommunicate request_size=10 [11:01:37]MH_SAM_APDU [11:01:37]CAPDU: 80 0D 02 02 05 61 AE 5E F7 A3 [11:01:37]Write to MH i2c: E2 0D 00 9A 14 80 0D 02 02 05 00 61 AE 5E F7 A3 00 00 39 [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:37]Read from MH i2c: E2 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 03 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 03 00 9A 14 00 90 00 22 [11:01:37]RAPDU: 90 00 [11:01:37]wFMCommunicate OK [11:01:37]wFMCommunicate request_size=4 [11:01:37]MH_SAM_APDU [11:01:37]CAPDU: 80 0D 03 02 [11:01:37]Write to MH i2c: E2 08 00 9B 14 80 0D 03 02 00 00 00 00 2A [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:37]Read from MH i2c: E2 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 0B 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 0B 00 9B 14 00 02 6B 88 58 17 37 44 D9 90 00 E3 [11:01:37]RAPDU: 02 6B 88 58 17 37 44 D9 90 00 [11:01:37]wFMCommunicate OK [11:01:37]SAM_PROTO_SignData done [11:01:37]FM_MakeSignedData done [11:01:37]CreateOFDProtocolMessage [11:01:37]wFMCommunicate request_size=4 [11:01:37]MH_SAM_APDU [11:01:37]CAPDU: 80 11 00 00 [11:01:37]Write to MH i2c: E2 08 00 9C 14 80 11 00 00 00 00 00 00 2A [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:37]Read from MH i2c: E2 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 17 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: E2 17 00 9C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 80 [11:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:01:37]wFMCommunicate OK [11:01:37]CreateOFDProtocolMessage done [11:01:37]OFDSenderStorePacket 67632 [11:01:37]StoreOFDPacket docnum=67632 [11:01: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 F4 9A 07 01 57 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 A0 19 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 2D AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 12 00 00 00 00 07 04 06 00 18 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 12 39 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 28 61 AE 5E F7 A3 02 6B 88 58 17 37 44 D9 [11:01:37]CheckFolder [11:01:37]dirname=/storage/ofd_packets [11:01:37]CheckFolder done [11:01:37]ProducePacketName [11:01:37]name=ofd_packets/00067632 [11:01:37]NVStorageSaveData ofd_packets/00067632 [11:01:37]File name is /storage/ofd_packets/00067632 [11:01:37]Write 301 bytes [11:01:37]NVStorageSaveData done [11:01:37]OFDSenderStorePacket done [11:01:37]KKMCreateOFDPacket done [11:01:37]NVStorageSaveData kkm_last_timestamp [11:01:37]File name is /storage/kkm_last_timestamp [11:01:37]Write 4 bytes [11:01:37]NVStorageSaveData done [11:01:37]ExternCall_PrintAddStr [11:01:37]wPrintStart [11:01:37]Write to MH i2c: 01 00 00 9D 14 B1 [11:01:37]Write i2c OK [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: 01 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: 01 07 00 [11:01:37]MH_I2C_Read... [11:01:37]Read from MH i2c: 01 07 00 9D 14 00 00 00 00 00 FF 0F C6 [11:01:37]RasterBufferAndPrint [11:01:37]line Счет N : (1)507755 [11:01:37]line ИНН: 02508201610067 [11:01:37]line Контрольно-Кассовый Чек [11:01:37]line ПРОДАЖА [11:01:37]line ТРК (МРК, ГНК) : 23 [11:01:37]line Товар: 2710124130 [11:01:37]line Аи-92-К-5 [11:01:37]line 6.560 * 66.80 [11:01:37]line = 438.21 [11:01:37]line НДС 12% НСП 1% [11:01:37]line > о реализуемом товаре [11:01:37]line ОКРУГЛЕНИЕ: -0.21 [11:01:37]line ИТОГО: 438.00 [11:01:37]line Внесено: 438.00 [11:01:37]line СДАЧА: 0.00 [11:01:37]line НСП 1% : 3.88 [11:01:37]line НДС 12% : 46.54 [11:01:37]line Наличными: 438.00 [11:01:37]line Безнал.: 0.00 [11:01:37]line Место: АЗС № 91 "Партнер Нефть" [11:01:37]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:01:37]line СНО: Общий режим [11:01:37]line Чек 41 17.05.2024 11:01 [11:01:37]line Смена: 358 ФФД: 1.0 [11:01:37]line ЗНМ: 0300000119 [11:01:37]line РНМ: 0000000000091845 [11:01:37]line Версия ККМ: 001 [11:01:37]line ФМ: 0000000000871829 [11:01:37]line ФД: 67632 [11:01:37]line ФПД: 44400002398115 [11:01:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T110138&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67632&fm=44400002398115&tin=02508201610067®Number=0000000000091845&sum=43800 [11:01:37]written 0, free lines is 4095 [11:01:37]OFD Sender: Processing packet 67632 [packets to send 35, broken 34] [11:01:37]ProducePacketName [11:01:37]name=ofd_packets/00067632 [11:01:37]OFD Sender: To server: pG, [11:01:37]CommunicateWithHost lk.salyk.kg:30040 [11:01:37]ConnectInit lk.salyk.kg [11:01:37]Connected sock=10 [11:01: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 F4 9A 07 01 57 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 A0 19 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 2D AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 12 00 00 00 00 07 04 06 00 18 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 12 39 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 28 61 AE 5E F7 A3 02 6B 88 58 17 37 44 D9 [11:01: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 5A BA 47 00 F3 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 30 08 01 00 F4 03 04 00 EA E0 46 66 B6 04 01 00 00 09 E0 17 29 68 99 F4 A5 [11:01:38]CommunicateWithHost err = 0 [11:01:38]CheckOFDResponse [11:01:38]1017 (14) - 77093643461234 [11:01:38]1041 (16) - 0000000000871829 [11:01:38]1040 (4) - 67632 [11:01:38]1012 (4) - 17.05.2024 04:45 [11:01:38]1206 (1) - 0 [11:01:38]OFD Sender: Remove packet 67632 [11:01:38]ProducePacketName [11:01:38]name=ofd_packets/00067632 [11:01:38]NVStorageDeleteData [11:01:38]Write to MH i2c: 01 00 00 C7 14 DB [11:01:38]Write i2c OK [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: 01 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: 01 07 00 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: 01 07 00 C7 14 00 00 00 00 00 CF 0C BD [11:01:38]RasterBufferAndPrint [11:01:38]line [11:01:38]line [11:01:38]line [11:01:38]line [11:01:38]line [11:01:38]written 0, free lines is 3288 [11:01:38]MH_Cut [11:01:38]Write to MH i2c: D1 01 00 CE 14 01 B4 [11:01:38]Write i2c OK [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: D1 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: D1 01 00 [11:01:38]MH_I2C_Read... [11:01:38]Read from MH i2c: D1 01 00 CE 14 00 B3 [11:01:38]Write to MH i2c: 01 00 00 CF 14 E3 [11:01:38]Write i2c OK [11:01:38]MH_I2C_Read... [11:01:38]OFD Sender: No OFD packet to send [11:01:38]*** Cut start [11:01:38]*** Purtial cut [11:01:38]*** CUTSNS_PIN = 0 [11:01:39]*** Stage 1: CUTSNS_PIN = 1 [11:01:40]Read from MH i2c: 01 [11:01:40]MH_I2C_Read... [11:01:40]*** Stop cut motor [11:01:40]*** Cut end [11:01:40]Read from MH i2c: 01 07 00 [11:01:40]MH_I2C_Read... [11:01:40]Read from MH i2c: 01 07 00 CF 14 00 00 00 00 00 FF 0F F8 [11:01:40]process_action close_receipt done [11:01:40]requested_data is exist [11:01:40]produce_requested_data [11:01:40]requested_item fm.sn is exist - process it [11:01:40]wFMCommunicate request_size=4 [11:01:40]MH_SAM_APDU [11:01:40]CAPDU: 80 11 00 00 [11:01:40]Write to MH i2c: E2 08 00 D0 14 80 11 00 00 00 00 00 00 5E [11:01:40]Write i2c OK [11:01:40]MH_I2C_Read... [11:01:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:40]Read from MH i2c: E2 [11:01:40]MH_I2C_Read... [11:01:40]Read from MH i2c: E2 17 00 [11:01:40]MH_I2C_Read... [11:01:40]Read from MH i2c: E2 17 00 D0 14 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:01: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:01:40]wFMCommunicate OK [11:01:40]requested_item fd.num is exist - process it [11:01:40]SAM_PROTO_GetFieldsCounters [11:01:40]wFMCommunicate request_size=4 [11:01:40]MH_SAM_APDU [11:01:40]CAPDU: 80 13 00 00 [11:01:40]Write to MH i2c: E2 08 00 D1 14 80 13 00 00 00 00 00 00 61 [11:01:40]Write i2c OK [11:01:40]MH_I2C_Read... [11:01:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:41]Read from MH i2c: E2 [11:01:41]MH_I2C_Read... [11:01:41]Read from MH i2c: E2 62 00 [11:01:41]MH_I2C_Read... [11:01:41]Read from MH i2c: E2 62 00 D1 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 30 08 01 00 0E 04 04 00 66 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 A2 [11:01: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 30 08 01 00 0E 04 04 00 66 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 [11:01:41]wFMCommunicate OK [11:01:41]SAM_PROTO_GetFieldsCounters done [11:01:41]requested_item shift.num is exist - process it [11:01:41]requested_item shift.opened is exist - process it [11:01:41]req_shift_opened [11:01:41]FM_GetShiftState [11:01:41]SAM_PROTO_GetShiftState [11:01:41]wFMCommunicate request_size=4 [11:01:41]MH_SAM_APDU [11:01:41]CAPDU: 80 13 01 00 [11:01:41]Write to MH i2c: E2 08 00 D2 14 80 13 01 00 00 00 00 00 63 [11:01:41]Write i2c OK [11:01:41]MH_I2C_Read... [11:01:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:41]Read from MH i2c: E2 [11:01:41]MH_I2C_Read... [11:01:41]Read from MH i2c: E2 0E 00 [11:01:41]MH_I2C_Read... [11:01:41]Read from MH i2c: E2 0E 00 D2 14 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 E9 [11:01:41]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:01:41]wFMCommunicate OK [11:01:41]SAM_PROTO_GetShiftState done [11:01:41]FM_GetShiftState done [11:01:41]req_shift_opened done [11:01:41]requested_item shift.open_date is exist - process it [11:01:41]req_shift_open_date [11:01:41]req_shift_open_date done [11:01:41]produce_requested_data done [11:01:41]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67632,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:01:41]process_action_free close_receipt [11:01:41]json_value_free [11:01:41]json_value_free done [11:01:41]process_json_proto returns [11:01:41]Send response to host [11:01:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67632,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:01:41]free response buf [11:01:41]execute_script done [11:01:41]execute_script returns [11:01:41]free content buf [11:01:41]Sock 9.Close socket [11:01:41]Sock 9.Thread stoped [11:01:43]OFD Sender: No OFD packet to send [11:01:48]OFD Sender: No OFD packet to send [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:03]OFD Sender: No OFD packet to send [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:30]accept exits with 7 [11:02:30]New connection [11:02:30]New thread 3067538788 created [11:02:30]Thread 3067395428 joined [11:02:30]Waiting for new connection... [11:02:30] Sock 7.Parse request [11:02:30]Sock 7.Check first char [11:02:30]Sock 7.First char is OK [11:02:30]request: POST /json_proto HTTP/1.0 [11:02:30]Method: POST [11:02:30]URL: /json_proto [11:02:30]Method is POST - this is cgi request [11:02:30]url: /json_proto [11:02:30]query_string will be loaded in cgi processing [11:02:30]execute_cgi json_proto POST (null) [11:02:30]execute_cgi path=json_proto method=POST [11:02:30]POST find Content-Length [11:02:30]Host: 172.17.41.195:8080 [11:02:30]Content-Length: 675 [11:02:30]Content-Type: application/json [11:02:30] [11:02:30]POST finish read [11:02:30]Found Content-Length = 675 [11:02:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:30]execute_script... [11:02: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)507756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:30]POST & json_proto [11:02:30]process_json_proto [11:02:30]json parsed OK: [11:02:30]protocol is kg_v1.0 [11:02:30]action value=close_receipt [11:02:30]process_action close_receipt [11:02:30]cmd_close_receipt [11:02:30]MH_GetDate [11:02:30]Write to MH i2c: F0 00 00 D3 14 D6 [11:02:30]Write i2c OK [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: F0 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: F0 09 00 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: F0 09 00 D3 14 00 49 39 47 66 FC 21 6F 64 FE [11:02:30]GetLastDocTimeStamp 1715943698 [11:02:30]current date 1715943753 [11:02:30]FM_GetShiftState [11:02:30]SAM_PROTO_GetShiftState [11:02:30]wFMCommunicate request_size=4 [11:02:30]MH_SAM_APDU [11:02:30]CAPDU: 80 13 01 00 [11:02:30]Write to MH i2c: E2 08 00 D4 14 80 13 01 00 00 00 00 00 65 [11:02:30]Write i2c OK [11:02:30]MH_I2C_Read... [11:02:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:31]Read from MH i2c: E2 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: E2 0E 00 [11:02:31]MH_I2C_Read... [11:02:31]Read from MH i2c: E2 0E 00 D4 14 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 EB [11:02:31]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:02:31]wFMCommunicate OK [11:02:31]SAM_PROTO_GetShiftState done [11:02:31]FM_GetShiftState done [11:02:31]opened in 1715905068 [11:02:31]opened+sec_in_day 1715991468 [11:02:31]quantity*price = 100005 [11:02:31]sum+1 = 100006 [11:02:31]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 СНО: Общий режим Чек 42 17.05.2024 11:02 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67633 ФПД: 274248971074828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T110233&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67633&fm=274248971074828&tin=02508201610067®Number=0000000000091845&sum=100000 [11:02:32]StoreToDocumentArchive [11:02:32]shift 358 fd 67633 [11:02:32]save to /storage/0358/doc_00067633 [11:02:32]save last doc name /storage/0358/doc_00067633 to /storage/kkm_last_doc_name [11:02:32]save OK [11:02:32]Clear old archive folders... [11:02:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:02:32]tlvbuf is 015E6A80 [11:02:32]SAM_PROTO_ClearQueue [11:02:32]wFMCommunicate request_size=4 [11:02:32]MH_SAM_APDU [11:02:32]CAPDU: 80 09 00 00 [11:02:32]Write to MH i2c: E2 08 00 E1 14 80 09 00 00 00 00 00 00 67 [11:02:32]Write i2c OK [11:02:32]MH_I2C_Read... [11:02:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:32]Read from MH i2c: E2 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 03 00 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 03 00 E1 14 00 90 00 69 [11:02:32]RAPDU: 90 00 [11:02:32]wFMCommunicate OK [11:02:32]SAM_PROTO_ClearQueue done [11:02:32]KKMCreateOFDPacket [11:02:32]OFDProtocolAddRootSTLVToBuf [11:02:32]FM_MakeSignedData [11:02:32]FM_MakeSignedData [11:02:32]SAM_PROTO_SignData [11:02:32]wFMCommunicate request_size=4 [11:02:32]MH_SAM_APDU [11:02:32]CAPDU: 80 0D 01 02 [11:02:32]Write to MH i2c: E2 08 00 E2 14 80 0D 01 02 00 00 00 00 6F [11:02:32]Write i2c OK [11:02:32]MH_I2C_Read... [11:02:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:32]Read from MH i2c: E2 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 03 00 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 03 00 E2 14 00 90 00 6A [11:02:32]RAPDU: 90 00 [11:02:32]wFMCommunicate OK [11:02:32]wFMCommunicate request_size=255 [11:02:32]MH_SAM_APDU [11:02:32]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 2A 00 00 00 F4 03 04 00 49 39 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 [11:02:32]Write to MH i2c: E2 02 01 E3 14 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 2A 00 00 00 F4 03 04 00 49 39 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 00 00 A6 [11:02:32]Write i2c OK [11:02:32]MH_I2C_Read... [11:02:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:32]Read from MH i2c: E2 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 03 00 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 03 00 E3 14 00 90 00 6B [11:02:32]RAPDU: 90 00 [11:02:32]wFMCommunicate OK [11:02:32]wFMCommunicate request_size=11 [11:02:32]MH_SAM_APDU [11:02:32]CAPDU: 80 0D 02 02 06 F9 6D 90 80 3D 0C [11:02:32]Write to MH i2c: E2 0E 00 E4 14 80 0D 02 02 06 00 F9 6D 90 80 3D 0C 00 00 3D [11:02:32]Write i2c OK [11:02:32]MH_I2C_Read... [11:02:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:32]Read from MH i2c: E2 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 03 00 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 03 00 E4 14 00 90 00 6C [11:02:32]RAPDU: 90 00 [11:02:32]wFMCommunicate OK [11:02:32]wFMCommunicate request_size=4 [11:02:32]MH_SAM_APDU [11:02:32]CAPDU: 80 0D 03 02 [11:02:32]Write to MH i2c: E2 08 00 E5 14 80 0D 03 02 00 00 00 00 74 [11:02:32]Write i2c OK [11:02:32]MH_I2C_Read... [11:02:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:32]Read from MH i2c: E2 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 0B 00 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 0B 00 E5 14 00 60 A8 AF FA 19 FD B7 A5 90 00 98 [11:02:32]RAPDU: 60 A8 AF FA 19 FD B7 A5 90 00 [11:02:32]wFMCommunicate OK [11:02:32]SAM_PROTO_SignData done [11:02:32]FM_MakeSignedData done [11:02:32]CreateOFDProtocolMessage [11:02:32]wFMCommunicate request_size=4 [11:02:32]MH_SAM_APDU [11:02:32]CAPDU: 80 11 00 00 [11:02:32]Write to MH i2c: E2 08 00 E6 14 80 11 00 00 00 00 00 00 74 [11:02:32]Write i2c OK [11:02:32]MH_I2C_Read... [11:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:32]Read from MH i2c: E2 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 17 00 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: E2 17 00 E6 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CA [11: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 [11:02:32]wFMCommunicate OK [11:02:32]CreateOFDProtocolMessage done [11:02:32]OFDSenderStorePacket 67633 [11:02:32]StoreOFDPacket docnum=67633 [11:02: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 10 01 00 00 66 39 08 01 6B B3 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 2A 00 00 00 F4 03 04 00 49 39 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F9 6D 90 80 3D 0C 60 A8 AF FA 19 FD B7 A5 [11:02:32]CheckFolder [11:02:32]dirname=/storage/ofd_packets [11:02:32]CheckFolder done [11:02:32]ProducePacketName [11:02:32]name=ofd_packets/00067633 [11:02:32]NVStorageSaveData ofd_packets/00067633 [11:02:32]File name is /storage/ofd_packets/00067633 [11:02:32]Write 302 bytes [11:02:32]NVStorageSaveData done [11:02:32]OFDSenderStorePacket done [11:02:32]KKMCreateOFDPacket done [11:02:32]NVStorageSaveData kkm_last_timestamp [11:02:32]File name is /storage/kkm_last_timestamp [11:02:32]Write 4 bytes [11:02:32]NVStorageSaveData done [11:02:32]ExternCall_PrintAddStr [11:02:32]wPrintStart [11:02:32]Write to MH i2c: 01 00 00 E7 14 FB [11:02:32]Write i2c OK [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: 01 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: 01 07 00 [11:02:32]MH_I2C_Read... [11:02:32]Read from MH i2c: 01 07 00 E7 14 00 00 00 00 00 FF 0F 10 [11:02:32]RasterBufferAndPrint [11:02:32]line Счет N : (1)507756 [11:02:32]line ИНН: 02508201610067 [11:02:32]line Контрольно-Кассовый Чек [11:02:32]line ПРОДАЖА [11:02:32]line ТРК (МРК, ГНК) : 32 [11:02:32]line Товар: 2710124130 [11:02:32]line Super-92-К-5 [11:02:32]line 14.750 * 67.80 [11:02:32]line = 1000.05 [11:02:32]line НДС 12% НСП 1% [11:02:32]line > о реализуемом товаре [11:02:32]line ОКРУГЛЕНИЕ: -0.05 [11:02:32]line ИТОГО: 1000.00 [11:02:32]line Внесено: 1000.00 [11:02:32]line СДАЧА: 0.00 [11:02:32]line НСП 1% : 8.85 [11:02:32]line НДС 12% : 106.20 [11:02:32]line Наличными: 1000.00 [11:02:32]line Безнал.: 0.00 [11:02:32]line Место: АЗС № 91 "Партнер Нефть" [11:02:32]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:02:32]line СНО: Общий режим [11:02:32]line Чек 42 17.05.2024 11:02 [11:02:32]line Смена: 358 ФФД: 1.0 [11:02:32]line ЗНМ: 0300000119 [11:02:32]line РНМ: 0000000000091845 [11:02:32]line Версия ККМ: 001 [11:02:32]line ФМ: 0000000000871829 [11:02:32]line ФД: 67633 [11:02:32]line ФПД: 274248971074828 [11:02:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T110233&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67633&fm=274248971074828&tin=02508201610067®Number=0000000000091845&sum=100000 [11:02:32]written 0, free lines is 4095 [11:02:32]OFD Sender: Processing packet 67633 [packets to send 35, broken 34] [11:02:32]ProducePacketName [11:02:32]name=ofd_packets/00067633 [11:02:32]OFD Sender: To server: pG, [11:02:32]CommunicateWithHost lk.salyk.kg:30040 [11:02:32]ConnectInit lk.salyk.kg [11:02:33]Connected sock=10 [11:02: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 10 01 00 00 66 39 08 01 6B B3 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 2A 00 00 00 F4 03 04 00 49 39 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F9 6D 90 80 3D 0C 60 A8 AF FA 19 FD B7 A5 [11:02:33]Write to MH i2c: 01 00 00 11 15 26 [11:02:33]Write i2c OK [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: 01 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: 01 07 00 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: 01 07 00 11 15 00 00 00 00 00 CC 0C 05 [11:02:33]RasterBufferAndPrint [11:02:33]line [11:02:33]line [11:02:33]line [11:02:33]line [11:02:33]line [11:02:33]written 0, free lines is 3282 [11:02:33]MH_Cut [11:02:33]Write to MH i2c: D1 01 00 18 15 01 FF [11:02:33]Write i2c OK [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: D1 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: D1 01 00 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: D1 01 00 18 15 00 FE [11:02:33]Write to MH i2c: 01 00 00 19 15 2E [11:02:33]Write i2c OK [11:02:33]MH_I2C_Read... [11:02: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 0F 49 47 00 F7 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 22 E1 46 66 B6 04 01 00 00 3A F3 F1 51 AD E8 18 8B [11:02:33]CommunicateWithHost err = 0 [11:02:33]CheckOFDResponse [11:02:33]1017 (14) - 77093643461234 [11:02:33]1041 (16) - 0000000000871829 [11:02:33]1040 (4) - 67633 [11:02:33]1012 (4) - 17.05.2024 04:46 [11:02:33]1206 (1) - 0 [11:02:33]OFD Sender: Remove packet 67633 [11:02:33]ProducePacketName [11:02:33]name=ofd_packets/00067633 [11:02:33]NVStorageDeleteData [11:02:33]OFD Sender: No OFD packet to send [11:02:33]*** Cut start [11:02:33]*** Purtial cut [11:02:33]*** Stage 1: CUTSNS_PIN = 1 [11:02:34]Read from MH i2c: 01 [11:02:34]MH_I2C_Read... [11:02:34]*** Stop cut motor [11:02:34]*** Cut end [11:02:34]Read from MH i2c: 01 07 00 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: 01 07 00 19 15 00 00 00 00 00 FF 0F 43 [11:02:34]process_action close_receipt done [11:02:34]requested_data is exist [11:02:34]produce_requested_data [11:02:34]requested_item fm.sn is exist - process it [11:02:34]wFMCommunicate request_size=4 [11:02:34]MH_SAM_APDU [11:02:34]CAPDU: 80 11 00 00 [11:02:34]Write to MH i2c: E2 08 00 1A 15 80 11 00 00 00 00 00 00 A9 [11:02:34]Write i2c OK [11:02:34]MH_I2C_Read... [11:02:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:34]Read from MH i2c: E2 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: E2 17 00 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: E2 17 00 1A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FF [11:02:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:02:34]wFMCommunicate OK [11:02:34]requested_item fd.num is exist - process it [11:02:34]SAM_PROTO_GetFieldsCounters [11:02:34]wFMCommunicate request_size=4 [11:02:34]MH_SAM_APDU [11:02:34]CAPDU: 80 13 00 00 [11:02:34]Write to MH i2c: E2 08 00 1B 15 80 13 00 00 00 00 00 00 AC [11:02:34]Write i2c OK [11:02:34]MH_I2C_Read... [11:02:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:34]Read from MH i2c: E2 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: E2 62 00 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: E2 62 00 1B 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 31 08 01 00 0E 04 04 00 66 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 F1 [11:02: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 31 08 01 00 0E 04 04 00 66 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 [11:02:34]wFMCommunicate OK [11:02:34]SAM_PROTO_GetFieldsCounters done [11:02:34]requested_item shift.num is exist - process it [11:02:34]requested_item shift.opened is exist - process it [11:02:34]req_shift_opened [11:02:34]FM_GetShiftState [11:02:34]SAM_PROTO_GetShiftState [11:02:34]wFMCommunicate request_size=4 [11:02:34]MH_SAM_APDU [11:02:34]CAPDU: 80 13 01 00 [11:02:34]Write to MH i2c: E2 08 00 1C 15 80 13 01 00 00 00 00 00 AE [11:02:34]Write i2c OK [11:02:34]MH_I2C_Read... [11:02:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:34]Read from MH i2c: E2 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: E2 0E 00 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: E2 0E 00 1C 15 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 34 [11:02:34]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:02:34]wFMCommunicate OK [11:02:34]SAM_PROTO_GetShiftState done [11:02:34]FM_GetShiftState done [11:02:34]req_shift_opened done [11:02:34]requested_item shift.open_date is exist - process it [11:02:34]req_shift_open_date [11:02:34]req_shift_open_date done [11:02:34]produce_requested_data done [11:02:34]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67633,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:02:34]process_action_free close_receipt [11:02:34]json_value_free [11:02:34]json_value_free done [11:02:34]process_json_proto returns [11:02:34]Send response to host [11:02:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67633,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:02:34]free response buf [11:02:34]execute_script done [11:02:34]execute_script returns [11:02:34]free content buf [11:02:34]Sock 7.Close socket [11:02:34]Sock 7.Thread stoped [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]accept exits with 9 [11:04:58]New connection [11:04:58]New thread 3067395428 created [11:04:58]Thread 3067538788 joined [11:04:58]Waiting for new connection... [11:04:58] Sock 9.Parse request [11:04:58]Sock 9.Check first char [11:04:58]Sock 9.First char is OK [11:04:58]request: POST /json_proto HTTP/1.0 [11:04:58]Method: POST [11:04:58]URL: /json_proto [11:04:58]Method is POST - this is cgi request [11:04:58]url: /json_proto [11:04:58]query_string will be loaded in cgi processing [11:04:58]execute_cgi json_proto POST (null) [11:04:58]execute_cgi path=json_proto method=POST [11:04:58]POST find Content-Length [11:04:58]Host: 172.17.41.195:8080 [11:04:58]Content-Length: 809 [11:04:58]Content-Type: application/json [11:04:58] [11:04:58]POST finish read [11:04:58]Found Content-Length = 809 [11:04:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507757", "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" ] } } [11:04:58]execute_script... [11:04: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)507757", "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" ] } } [11:04:58]POST & json_proto [11:04:58]process_json_proto [11:04:58]json parsed OK: [11:04:58]protocol is kg_v1.0 [11:04:58]action value=close_receipt [11:04:58]process_action close_receipt [11:04:58]cmd_close_receipt [11:04:58]MH_GetDate [11:04:58]Write to MH i2c: F0 00 00 1D 15 21 [11:04:58]Write i2c OK [11:04:58]MH_I2C_Read... [11:04:58]Read from MH i2c: F0 [11:04:58]MH_I2C_Read... [11:04:58]Read from MH i2c: F0 09 00 [11:04:58]MH_I2C_Read... [11:04:58]Read from MH i2c: F0 09 00 1D 15 00 DD 39 47 66 FC 21 6F 64 DD [11:04:58]GetLastDocTimeStamp 1715943753 [11:04:58]current date 1715943901 [11:04:58]FM_GetShiftState [11:04:58]SAM_PROTO_GetShiftState [11:04:58]wFMCommunicate request_size=4 [11:04:58]MH_SAM_APDU [11:04:58]CAPDU: 80 13 01 00 [11:04:58]Write to MH i2c: E2 08 00 1E 15 80 13 01 00 00 00 00 00 B0 [11:04:58]Write i2c OK [11:04:58]MH_I2C_Read... [11:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:58]Read from MH i2c: E2 [11:04:58]MH_I2C_Read... [11:04:58]Read from MH i2c: E2 0E 00 [11:04:58]MH_I2C_Read... [11:04:58]Read from MH i2c: E2 0E 00 1E 15 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 36 [11:04:58]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:04:58]wFMCommunicate OK [11:04:58]SAM_PROTO_GetShiftState done [11:04:58]FM_GetShiftState done [11:04:58]opened in 1715905068 [11:04:58]opened+sec_in_day 1715991468 [11:04:58]quantity*price = 50036 [11:04:58]sum+1 = 50037 [11:04:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 43 17.05.2024 11:05 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67634 ФПД: 237635805767405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T110501&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67634&fm=237635805767405&tin=02508201610067®Number=0000000000091845&sum=50036 [11:04:59]StoreToDocumentArchive [11:04:59]shift 358 fd 67634 [11:04:59]save to /storage/0358/doc_00067634 [11:04:59]save last doc name /storage/0358/doc_00067634 to /storage/kkm_last_doc_name [11:04:59]save OK [11:04:59]Clear old archive folders... [11:04:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:04:59]tlvbuf is 015C6D00 [11:04:59]SAM_PROTO_ClearQueue [11:04:59]wFMCommunicate request_size=4 [11:04:59]MH_SAM_APDU [11:04:59]CAPDU: 80 09 00 00 [11:04:59]Write to MH i2c: E2 08 00 2B 15 80 09 00 00 00 00 00 00 B2 [11:04:59]Write i2c OK [11:04:59]MH_I2C_Read... [11:04:59]Read from MH i2c: E2 [11:04:59]MH_I2C_Read... [11:04:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:59]Read from MH i2c: E2 03 00 [11:04:59]MH_I2C_Read... [11:04:59]Read from MH i2c: E2 03 00 2B 15 00 90 00 B4 [11:04:59]RAPDU: 90 00 [11:04:59]wFMCommunicate OK [11:04:59]SAM_PROTO_ClearQueue done [11:04:59]KKMCreateOFDPacket [11:04:59]OFDProtocolAddRootSTLVToBuf [11:04:59]FM_MakeSignedData [11:04:59]FM_MakeSignedData [11:04:59]SAM_PROTO_SignData [11:04:59]wFMCommunicate request_size=4 [11:04:59]MH_SAM_APDU [11:04:59]CAPDU: 80 0D 01 02 [11:04:59]Write to MH i2c: E2 08 00 2C 15 80 0D 01 02 00 00 00 00 BA [11:04:59]Write i2c OK [11:04:59]MH_I2C_Read... [11:04:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:59]Read from MH i2c: E2 [11:04:59]MH_I2C_Read... [11:04:59]Read from MH i2c: E2 03 00 [11:04:59]MH_I2C_Read... [11:04:59]Read from MH i2c: E2 03 00 2C 15 00 90 00 B5 [11:04:59]RAPDU: 90 00 [11:04:59]wFMCommunicate OK [11:04:59]wFMCommunicate request_size=255 [11:04:59]MH_SAM_APDU [11:04:59]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 2B 00 00 00 F4 03 04 00 DD 39 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 [11:04:59]Write to MH i2c: E2 02 01 2D 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 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 2B 00 00 00 F4 03 04 00 DD 39 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 00 00 40 [11:04:59]Write i2c OK [11:04:59]MH_I2C_Read... [11:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:00]Read from MH i2c: E2 [11:05:00]MH_I2C_Read... [11:05:00]Read from MH i2c: E2 03 00 [11:05:00]MH_I2C_Read... [11:05:00]Read from MH i2c: E2 03 00 2D 15 00 90 00 B6 [11:05:00]RAPDU: 90 00 [11:05:00]wFMCommunicate OK [11:05:00]wFMCommunicate request_size=11 [11:05:00]MH_SAM_APDU [11:05:00]CAPDU: 80 0D 02 02 06 D8 20 E5 C9 E6 ED [11:05:00]Write to MH i2c: E2 0E 00 2E 15 80 0D 02 02 06 00 D8 20 E5 C9 E6 ED 00 00 42 [11:05:00]Write i2c OK [11:05:00]MH_I2C_Read... [11:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:00]Read from MH i2c: E2 [11:05:00]MH_I2C_Read... [11:05:00]Read from MH i2c: E2 03 00 [11:05:00]MH_I2C_Read... [11:05:00]Read from MH i2c: E2 03 00 2E 15 00 90 00 B7 [11:05:00]RAPDU: 90 00 [11:05:00]wFMCommunicate OK [11:05:00]wFMCommunicate request_size=4 [11:05:00]MH_SAM_APDU [11:05:00]CAPDU: 80 0D 03 02 [11:05:00]Write to MH i2c: E2 08 00 2F 15 80 0D 03 02 00 00 00 00 BF [11:05:00]Write i2c OK [11:05:00]MH_I2C_Read... [11:05:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:00]Read from MH i2c: E2 [11:05:00]MH_I2C_Read... [11:05:00]Read from MH i2c: E2 0B 00 [11:05:00]MH_I2C_Read... [11:05:00]Read from MH i2c: E2 0B 00 2F 15 00 49 2F 8D 3B EF 79 09 4F 90 00 C0 [11:05:00]RAPDU: 49 2F 8D 3B EF 79 09 4F 90 00 [11:05:00]wFMCommunicate OK [11:05:00]SAM_PROTO_SignData done [11:05:00]FM_MakeSignedData done [11:05:00]CreateOFDProtocolMessage [11:05:00]wFMCommunicate request_size=4 [11:05:00]MH_SAM_APDU [11:05:00]CAPDU: 80 11 00 00 [11:05:00]Write to MH i2c: E2 08 00 30 15 80 11 00 00 00 00 00 00 BF [11:05:00]Write i2c OK [11:05:00]MH_I2C_Read... [11:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:00]Read from MH i2c: E2 [11:05:00]MH_I2C_Read... [11:05:00]Read from MH i2c: E2 17 00 [11:05:00]MH_I2C_Read... [11:05:00]Read from MH i2c: E2 17 00 30 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 15 [11:05: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:05:00]wFMCommunicate OK [11:05:00]CreateOFDProtocolMessage done [11:05:00]OFDSenderStorePacket 67634 [11:05:00]StoreOFDPacket docnum=67634 [11:05: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 C8 A7 08 01 7D B7 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 2B 00 00 00 F4 03 04 00 DD 39 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 D8 20 E5 C9 E6 ED 49 2F 8D 3B EF 79 09 4F [11:05:00]CheckFolder [11:05:00]dirname=/storage/ofd_packets [11:05:00]CheckFolder done [11:05:00]ProducePacketName [11:05:00]name=ofd_packets/00067634 [11:05:00]NVStorageSaveData ofd_packets/00067634 [11:05:00]File name is /storage/ofd_packets/00067634 [11:05:00]Write 302 bytes [11:05:00]NVStorageSaveData done [11:05:00]OFDSenderStorePacket done [11:05:00]KKMCreateOFDPacket done [11:05:00]NVStorageSaveData kkm_last_timestamp [11:05:00]File name is /storage/kkm_last_timestamp [11:05:00]Write 4 bytes [11:05:00]NVStorageSaveData done [11:05:00]ExternCall_PrintAddStr [11:05:00]wPrintStart [11:05:00]Write to MH i2c: 01 00 00 31 15 46 [11:05:00]Write i2c OK [11:05:00]MH_I2C_Read... [11:05:00]Read from MH i2c: 01 [11:05:00]MH_I2C_Read... [11:05:00]Read from MH i2c: 01 07 00 [11:05:00]MH_I2C_Read... [11:05:00]Read from MH i2c: 01 07 00 31 15 00 00 00 00 00 FF 0F 5B [11:05:00]RasterBufferAndPrint [11:05:00]line Счет N : (1)507757 [11:05:00]line ИНН: 02508201610067 [11:05:00]line Контрольно-Кассовый Чек [11:05:00]line ПРОДАЖА [11:05:00]line ТРК (МРК, ГНК) : 42 [11:05:00]line Товар: 2710124130 [11:05:00]line Super-92-К-5 [11:05:00]line 7.380 * 67.80 [11:05:00]line = 500.36 [11:05:00]line НДС 12% НСП 1% [11:05:00]line > о реализуемом товаре [11:05:00]line ИТОГО: 500.36 [11:05:00]line НСП 1% : 4.43 [11:05:00]line НДС 12% : 53.14 [11:05:00]line Наличными: 0.00 [11:05:00]line Безнал.: 500.36 [11:05:00]line Место: АЗС № 91 "Партнер Нефть" [11:05:00]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:05:00]line СНО: Общий режим [11:05:00]line Чек 43 17.05.2024 11:05 [11:05:00]line Смена: 358 ФФД: 1.0 [11:05:00]line ЗНМ: 0300000119 [11:05:00]line РНМ: 0000000000091845 [11:05:00]line Версия ККМ: 001 [11:05:00]line Платежная система: Бакай Банк [11:05:00]line ФМ: 0000000000871829 [11:05:00]line ФД: 67634 [11:05:00]line ФПД: 237635805767405 [11:05:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T110501&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67634&fm=237635805767405&tin=02508201610067®Number=0000000000091845&sum=50036 [11:05:00]OFD Sender: Processing packet 67634 [packets to send 35, broken 34] [11:05:00]ProducePacketName [11:05:00]name=ofd_packets/00067634 [11:05:00]OFD Sender: To server: pG, [11:05:00]CommunicateWithHost lk.salyk.kg:30040 [11:05:00]ConnectInit lk.salyk.kg [11:05:00]written 0, free lines is 4095 [11:05:00]Connected sock=10 [11:05: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 10 01 00 00 C8 A7 08 01 7D B7 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 2B 00 00 00 F4 03 04 00 DD 39 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 D8 20 E5 C9 E6 ED 49 2F 8D 3B EF 79 09 4F [11:05: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 46 00 47 00 2A 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 32 08 01 00 F4 03 04 00 B5 E1 46 66 B6 04 01 00 00 86 FC FF 92 84 FF D5 E3 [11:05:00]CommunicateWithHost err = 0 [11:05:00]CheckOFDResponse [11:05:00]1017 (14) - 77093643461234 [11:05:00]1041 (16) - 0000000000871829 [11:05:00]1040 (4) - 67634 [11:05:00]1012 (4) - 17.05.2024 04:48 [11:05:00]1206 (1) - 0 [11:05:00]OFD Sender: Remove packet 67634 [11:05:00]ProducePacketName [11:05:00]name=ofd_packets/00067634 [11:05:00]NVStorageDeleteData [11:05:01]Write to MH i2c: 01 00 00 5A 15 6F [11:05:01]Write i2c OK [11:05:01]MH_I2C_Read... [11:05:01]Read from MH i2c: 01 [11:05:01]MH_I2C_Read... [11:05:01]Read from MH i2c: 01 07 00 [11:05:01]MH_I2C_Read... [11:05:01]Read from MH i2c: 01 07 00 5A 15 00 00 00 00 00 D6 0C 58 [11:05:01]RasterBufferAndPrint [11:05:01]line [11:05:01]line [11:05:01]line [11:05:01]line [11:05:01]line [11:05:01]written 0, free lines is 3290 [11:05:01]MH_Cut [11:05:01]Write to MH i2c: D1 01 00 61 15 01 48 [11:05:01]Write i2c OK [11:05:01]MH_I2C_Read... [11:05:01]Read from MH i2c: D1 [11:05:01]MH_I2C_Read... [11:05:01]Read from MH i2c: D1 01 00 [11:05:01]MH_I2C_Read... [11:05:01]Read from MH i2c: D1 01 00 61 15 00 47 [11:05:01]Write to MH i2c: 01 00 00 62 15 77 [11:05:01]Write i2c OK [11:05:01]MH_I2C_Read... [11:05:01]OFD Sender: No OFD packet to send [11:05:01]*** Cut start [11:05:01]*** Purtial cut [11:05:01]*** CUTSNS_PIN = 0 [11:05:02]*** Stage 1: CUTSNS_PIN = 1 [11:05:03]Read from MH i2c: 01 [11:05:03]MH_I2C_Read... [11:05:03]*** Stop cut motor [11:05:03]*** Cut end [11:05:03]Read from MH i2c: 01 07 00 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: 01 07 00 62 15 00 00 00 00 00 FF 0F 8C [11:05:03]process_action close_receipt done [11:05:03]requested_data is exist [11:05:03]produce_requested_data [11:05:03]requested_item fm.sn is exist - process it [11:05:03]wFMCommunicate request_size=4 [11:05:03]MH_SAM_APDU [11:05:03]CAPDU: 80 11 00 00 [11:05:03]Write to MH i2c: E2 08 00 63 15 80 11 00 00 00 00 00 00 F2 [11:05:03]Write i2c OK [11:05:03]MH_I2C_Read... [11:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:03]Read from MH i2c: E2 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 17 00 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 17 00 63 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 48 [11:05: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:05:03]wFMCommunicate OK [11:05:03]requested_item fd.num is exist - process it [11:05:03]SAM_PROTO_GetFieldsCounters [11:05:03]wFMCommunicate request_size=4 [11:05:03]MH_SAM_APDU [11:05:03]CAPDU: 80 13 00 00 [11:05:03]Write to MH i2c: E2 08 00 64 15 80 13 00 00 00 00 00 00 F5 [11:05:03]Write i2c OK [11:05:03]MH_I2C_Read... [11:05:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:04]Read from MH i2c: E2 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: E2 62 00 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: E2 62 00 64 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 32 08 01 00 0E 04 04 00 66 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 3E [11:05: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 32 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:04]wFMCommunicate OK [11:05:04]SAM_PROTO_GetFieldsCounters done [11:05:04]requested_item shift.num is exist - process it [11:05:04]requested_item shift.opened is exist - process it [11:05:04]req_shift_opened [11:05:04]FM_GetShiftState [11:05:04]SAM_PROTO_GetShiftState [11:05:04]wFMCommunicate request_size=4 [11:05:04]MH_SAM_APDU [11:05:04]CAPDU: 80 13 01 00 [11:05:04]Write to MH i2c: E2 08 00 65 15 80 13 01 00 00 00 00 00 F7 [11:05:04]Write i2c OK [11:05:04]MH_I2C_Read... [11:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:04]Read from MH i2c: E2 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: E2 0E 00 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: E2 0E 00 65 15 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 7D [11:05:04]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:05:04]wFMCommunicate OK [11:05:04]SAM_PROTO_GetShiftState done [11:05:04]FM_GetShiftState done [11:05:04]req_shift_opened done [11:05:04]requested_item shift.open_date is exist - process it [11:05:04]req_shift_open_date [11:05:04]req_shift_open_date done [11:05:04]produce_requested_data done [11:05:04]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67634,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:05:04]process_action_free close_receipt [11:05:04]json_value_free [11:05:04]json_value_free done [11:05:04]process_json_proto returns [11:05:04]Send response to host [11:05:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67634,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:05:04]free response buf [11:05:04]execute_script done [11:05:04]execute_script returns [11:05:04]free content buf [11:05:04]Sock 9.Close socket [11:05:04]Sock 9.Thread stoped [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:03]accept exits with 7 [11:08:03]New connection [11:08:03]New thread 3067538788 created [11:08:03]Thread 3067395428 joined [11:08:03]Waiting for new connection... [11:08:03] Sock 7.Parse request [11:08:03]Sock 7.Check first char [11:08:03]Sock 7.First char is OK [11:08:03]request: POST /json_proto HTTP/1.0 [11:08:03]Method: POST [11:08:03]URL: /json_proto [11:08:03]Method is POST - this is cgi request [11:08:03]url: /json_proto [11:08:03]query_string will be loaded in cgi processing [11:08:03]execute_cgi json_proto POST (null) [11:08:03]execute_cgi path=json_proto method=POST [11:08:03]POST find Content-Length [11:08:03]Host: 172.17.41.195:8080 [11:08:03]Content-Length: 803 [11:08:03]Content-Type: application/json [11:08:03] [11:08:03]POST finish read [11:08:03]Found Content-Length = 803 [11:08:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507758", "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" ] } } [11:08:03]execute_script... [11:08: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)507758", "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" ] } } [11:08:03]POST & json_proto [11:08:03]process_json_proto [11:08:03]json parsed OK: [11:08:03]protocol is kg_v1.0 [11:08:03]action value=close_receipt [11:08:03]process_action close_receipt [11:08:03]cmd_close_receipt [11:08:03]MH_GetDate [11:08:03]Write to MH i2c: F0 00 00 66 15 6A [11:08:03]Write i2c OK [11:08:03]MH_I2C_Read... [11:08:03]Read from MH i2c: F0 [11:08:03]MH_I2C_Read... [11:08:03]Read from MH i2c: F0 09 00 [11:08:03]MH_I2C_Read... [11:08:03]Read from MH i2c: F0 09 00 66 15 00 96 3A 47 66 FC 21 6F 64 E0 [11:08:03]GetLastDocTimeStamp 1715943901 [11:08:03]current date 1715944086 [11:08:03]FM_GetShiftState [11:08:03]SAM_PROTO_GetShiftState [11:08:03]wFMCommunicate request_size=4 [11:08:03]MH_SAM_APDU [11:08:03]CAPDU: 80 13 01 00 [11:08:03]Write to MH i2c: E2 08 00 67 15 80 13 01 00 00 00 00 00 F9 [11:08:03]Write i2c OK [11:08:03]MH_I2C_Read... [11:08:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:03]Read from MH i2c: E2 [11:08:03]MH_I2C_Read... [11:08:03]Read from MH i2c: E2 0E 00 [11:08:03]MH_I2C_Read... [11:08:03]Read from MH i2c: E2 0E 00 67 15 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 7F [11:08:03]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:08:03]wFMCommunicate OK [11:08:03]SAM_PROTO_GetShiftState done [11:08:03]FM_GetShiftState done [11:08:03]opened in 1715905068 [11:08:03]opened+sec_in_day 1715991468 [11:08:03]quantity*price = 100066 [11:08:03]sum+1 = 100067 [11:08:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 44 17.05.2024 11:08 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67635 ФПД: 231426994487892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T110806&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67635&fm=231426994487892&tin=02508201610067®Number=0000000000091845&sum=100066 [11:08:04]StoreToDocumentArchive [11:08:04]shift 358 fd 67635 [11:08:04]save to /storage/0358/doc_00067635 [11:08:04]save last doc name /storage/0358/doc_00067635 to /storage/kkm_last_doc_name [11:08:04]save OK [11:08:04]Clear old archive folders... [11:08:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:04]tlvbuf is 015E6EA0 [11:08:04]SAM_PROTO_ClearQueue [11:08:04]wFMCommunicate request_size=4 [11:08:04]MH_SAM_APDU [11:08:04]CAPDU: 80 09 00 00 [11:08:04]Write to MH i2c: E2 08 00 74 15 80 09 00 00 00 00 00 00 FB [11:08:04]Write i2c OK [11:08:04]MH_I2C_Read... [11:08:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:04]Read from MH i2c: E2 [11:08:04]MH_I2C_Read... [11:08:04]Read from MH i2c: E2 03 00 [11:08:04]MH_I2C_Read... [11:08:04]Read from MH i2c: E2 03 00 74 15 00 90 00 FD [11:08:04]RAPDU: 90 00 [11:08:04]wFMCommunicate OK [11:08:04]SAM_PROTO_ClearQueue done [11:08:04]KKMCreateOFDPacket [11:08:04]OFDProtocolAddRootSTLVToBuf [11:08:04]FM_MakeSignedData [11:08:04]FM_MakeSignedData [11:08:04]SAM_PROTO_SignData [11:08:04]wFMCommunicate request_size=4 [11:08:04]MH_SAM_APDU [11:08:04]CAPDU: 80 0D 01 02 [11:08:04]Write to MH i2c: E2 08 00 75 15 80 0D 01 02 00 00 00 00 03 [11:08:04]Write i2c OK [11:08:04]MH_I2C_Read... [11:08:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:04]Read from MH i2c: E2 [11:08:04]MH_I2C_Read... [11:08:04]Read from MH i2c: E2 03 00 [11:08:04]MH_I2C_Read... [11:08:04]Read from MH i2c: E2 03 00 75 15 00 90 00 FE [11:08:04]RAPDU: 90 00 [11:08:04]wFMCommunicate OK [11:08:04]wFMCommunicate request_size=255 [11:08:04]MH_SAM_APDU [11:08:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 2C 00 00 00 F4 03 04 00 96 3A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 D2 [11:08:04]Write to MH i2c: E2 02 01 76 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 2C 00 00 00 F4 03 04 00 96 3A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 D2 00 00 7E [11:08:04]Write i2c OK [11:08:04]MH_I2C_Read... [11:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:05]Read from MH i2c: E2 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 03 00 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 03 00 76 15 00 90 00 FF [11:08:05]RAPDU: 90 00 [11:08:05]wFMCommunicate OK [11:08:05]wFMCommunicate request_size=10 [11:08:05]MH_SAM_APDU [11:08:05]CAPDU: 80 0D 02 02 05 7B 4B CC 42 54 [11:08:05]Write to MH i2c: E2 0D 00 77 15 80 0D 02 02 05 00 7B 4B CC 42 54 00 00 38 [11:08:05]Write i2c OK [11:08:05]MH_I2C_Read... [11:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:05]Read from MH i2c: E2 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 03 00 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 03 00 77 15 00 90 00 00 [11:08:05]RAPDU: 90 00 [11:08:05]wFMCommunicate OK [11:08:05]wFMCommunicate request_size=4 [11:08:05]MH_SAM_APDU [11:08:05]CAPDU: 80 0D 03 02 [11:08:05]Write to MH i2c: E2 08 00 78 15 80 0D 03 02 00 00 00 00 08 [11:08:05]Write i2c OK [11:08:05]MH_I2C_Read... [11:08:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:05]Read from MH i2c: E2 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 0B 00 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 0B 00 78 15 00 E7 37 8C 8F 84 53 1B 1B 90 00 4F [11:08:05]RAPDU: E7 37 8C 8F 84 53 1B 1B 90 00 [11:08:05]wFMCommunicate OK [11:08:05]SAM_PROTO_SignData done [11:08:05]FM_MakeSignedData done [11:08:05]CreateOFDProtocolMessage [11:08:05]wFMCommunicate request_size=4 [11:08:05]MH_SAM_APDU [11:08:05]CAPDU: 80 11 00 00 [11:08:05]Write to MH i2c: E2 08 00 79 15 80 11 00 00 00 00 00 00 08 [11:08:05]Write i2c OK [11:08:05]MH_I2C_Read... [11:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:05]Read from MH i2c: E2 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 17 00 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: E2 17 00 79 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5E [11:08: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:08:05]wFMCommunicate OK [11:08:05]CreateOFDProtocolMessage done [11:08:05]OFDSenderStorePacket 67635 [11:08:05]StoreOFDPacket docnum=67635 [11:08: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 0F 01 00 00 7D 2A 07 01 86 1D 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 2C 00 00 00 F4 03 04 00 96 3A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 D2 7B 4B CC 42 54 E7 37 8C 8F 84 53 1B 1B [11:08:05]CheckFolder [11:08:05]dirname=/storage/ofd_packets [11:08:05]CheckFolder done [11:08:05]ProducePacketName [11:08:05]name=ofd_packets/00067635 [11:08:05]NVStorageSaveData ofd_packets/00067635 [11:08:05]File name is /storage/ofd_packets/00067635 [11:08:05]Write 301 bytes [11:08:05]NVStorageSaveData done [11:08:05]OFDSenderStorePacket done [11:08:05]KKMCreateOFDPacket done [11:08:05]NVStorageSaveData kkm_last_timestamp [11:08:05]File name is /storage/kkm_last_timestamp [11:08:05]Write 4 bytes [11:08:05]NVStorageSaveData done [11:08:05]ExternCall_PrintAddStr [11:08:05]wPrintStart [11:08:05]Write to MH i2c: 01 00 00 7A 15 8F [11:08:05]Write i2c OK [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: 01 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: 01 07 00 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: 01 07 00 7A 15 00 00 00 00 00 FF 0F A4 [11:08:05]RasterBufferAndPrint [11:08:05]line Счет N : (1)507758 [11:08:05]line ИНН: 02508201610067 [11:08:05]line Контрольно-Кассовый Чек [11:08:05]line ПРОДАЖА [11:08:05]line ТРК (МРК, ГНК) : 13 [11:08:05]line Товар: 2710124130 [11:08:05]line Аи-92-К-5 [11:08:05]line 14.980 * 66.80 [11:08:05]line = 1000.66 [11:08:05]line НДС 12% НСП 1% [11:08:05]line > о реализуемом товаре [11:08:05]line ИТОГО: 1000.66 [11:08:05]line НСП 1% : 8.85 [11:08:05]line НДС 12% : 106.26 [11:08:05]line Наличными: 0.00 [11:08:05]line Безнал.: 1000.66 [11:08:05]line Место: АЗС № 91 "Партнер Нефть" [11:08:05]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:08:05]line СНО: Общий режим [11:08:05]line Чек 44 17.05.2024 11:08 [11:08:05]line Смена: 358 ФФД: 1.0 [11:08:05]line ЗНМ: 0300000119 [11:08:05]line РНМ: 0000000000091845 [11:08:05]line Версия ККМ: 001 [11:08:05]line Платежная система: O! деньги [11:08:05]line ФМ: 0000000000871829 [11:08:05]line ФД: 67635 [11:08:05]line ФПД: 231426994487892 [11:08:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T110806&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67635&fm=231426994487892&tin=02508201610067®Number=0000000000091845&sum=100066 [11:08:05]written 0, free lines is 4095 [11:08:05]OFD Sender: Processing packet 67635 [packets to send 35, broken 34] [11:08:05]ProducePacketName [11:08:05]name=ofd_packets/00067635 [11:08:05]OFD Sender: To server: pG, [11:08:05]CommunicateWithHost lk.salyk.kg:30040 [11:08:05]ConnectInit lk.salyk.kg [11:08:05]Write to MH i2c: 01 00 00 A3 15 B8 [11:08:05]Write i2c OK [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: 01 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: 01 07 00 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: 01 07 00 A3 15 00 00 00 00 00 D9 0C A4 [11:08:05]RasterBufferAndPrint [11:08:05]line [11:08:05]line [11:08:05]line [11:08:05]line [11:08:05]line [11:08:05]written 0, free lines is 3296 [11:08:05]MH_Cut [11:08:05]Write to MH i2c: D1 01 00 AA 15 01 91 [11:08:05]Write i2c OK [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: D1 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: D1 01 00 [11:08:05]MH_I2C_Read... [11:08:05]Read from MH i2c: D1 01 00 AA 15 00 90 [11:08:05]Write to MH i2c: 01 00 00 AB 15 C0 [11:08:05]Connected sock=10 [11:08:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 7D 2A 07 01 86 1D 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 2C 00 00 00 F4 03 04 00 96 3A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 D2 7B 4B CC 42 54 E7 37 8C 8F 84 53 1B 1B [11:08:05]Write i2c OK [11:08:05]MH_I2C_Read... [11:08: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 7D E6 47 00 DE 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 33 08 01 00 F4 03 04 00 6E E2 46 66 B6 04 01 00 00 C2 9C B9 76 8E F9 DE 17 [11:08:06]CommunicateWithHost err = 0 [11:08:06]CheckOFDResponse [11:08:06]1017 (14) - 77093643461234 [11:08:06]1041 (16) - 0000000000871829 [11:08:06]1040 (4) - 67635 [11:08:06]1012 (4) - 17.05.2024 04:51 [11:08:06]1206 (1) - 0 [11:08:06]OFD Sender: Remove packet 67635 [11:08:06]ProducePacketName [11:08:06]name=ofd_packets/00067635 [11:08:06]NVStorageDeleteData [11:08:06]OFD Sender: No OFD packet to send [11:08:06]*** Cut start [11:08:06]*** Purtial cut [11:08:06]*** Stage 1: CUTSNS_PIN = 1 [11:08:06]Read from MH i2c: 01 [11:08:06]MH_I2C_Read... [11:08:06]*** Stop cut motor [11:08:06]*** Cut end [11:08:06]Read from MH i2c: 01 07 00 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: 01 07 00 AB 15 00 00 00 00 00 FF 0F D5 [11:08:06]process_action close_receipt done [11:08:06]requested_data is exist [11:08:06]produce_requested_data [11:08:06]requested_item fm.sn is exist - process it [11:08:06]wFMCommunicate request_size=4 [11:08:06]MH_SAM_APDU [11:08:06]CAPDU: 80 11 00 00 [11:08:06]Write to MH i2c: E2 08 00 AC 15 80 11 00 00 00 00 00 00 3B [11:08:06]Write i2c OK [11:08:06]MH_I2C_Read... [11:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:06]Read from MH i2c: E2 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: E2 17 00 [11:08:06]MH_I2C_Read... [11:08:06]Read from MH i2c: E2 17 00 AC 15 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:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:08:06]wFMCommunicate OK [11:08:06]requested_item fd.num is exist - process it [11:08:06]SAM_PROTO_GetFieldsCounters [11:08:06]wFMCommunicate request_size=4 [11:08:06]MH_SAM_APDU [11:08:06]CAPDU: 80 13 00 00 [11:08:06]Write to MH i2c: E2 08 00 AD 15 80 13 00 00 00 00 00 00 3E [11:08:06]Write i2c OK [11:08:06]MH_I2C_Read... [11:08:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:07]Read from MH i2c: E2 [11:08:07]MH_I2C_Read... [11:08:07]Read from MH i2c: E2 62 00 [11:08:07]MH_I2C_Read... [11:08:07]Read from MH i2c: E2 62 00 AD 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 33 08 01 00 0E 04 04 00 66 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 8B [11:08: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 33 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:07]wFMCommunicate OK [11:08:07]SAM_PROTO_GetFieldsCounters done [11:08:07]requested_item shift.num is exist - process it [11:08:07]requested_item shift.opened is exist - process it [11:08:07]req_shift_opened [11:08:07]FM_GetShiftState [11:08:07]SAM_PROTO_GetShiftState [11:08:07]wFMCommunicate request_size=4 [11:08:07]MH_SAM_APDU [11:08:07]CAPDU: 80 13 01 00 [11:08:07]Write to MH i2c: E2 08 00 AE 15 80 13 01 00 00 00 00 00 40 [11:08:07]Write i2c OK [11:08:07]MH_I2C_Read... [11:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:07]Read from MH i2c: E2 [11:08:07]MH_I2C_Read... [11:08:07]Read from MH i2c: E2 0E 00 [11:08:07]MH_I2C_Read... [11:08:07]Read from MH i2c: E2 0E 00 AE 15 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 C6 [11:08:07]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:08:07]wFMCommunicate OK [11:08:07]SAM_PROTO_GetShiftState done [11:08:07]FM_GetShiftState done [11:08:07]req_shift_opened done [11:08:07]requested_item shift.open_date is exist - process it [11:08:07]req_shift_open_date [11:08:07]req_shift_open_date done [11:08:07]produce_requested_data done [11:08:07]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67635,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:08:07]process_action_free close_receipt [11:08:07]json_value_free [11:08:07]json_value_free done [11:08:07]process_json_proto returns [11:08:07]Send response to host [11:08:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67635,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:08:07]free response buf [11:08:07]execute_script done [11:08:07]execute_script returns [11:08:07]free content buf [11:08:07]Sock 7.Close socket [11:08:07]Sock 7.Thread stoped [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:03]accept exits with 9 [11:09:03]New connection [11:09:03]New thread 3067395428 created [11:09:03]Thread 3067538788 joined [11:09:03]Waiting for new connection... [11:09:03] Sock 9.Parse request [11:09:03]Sock 9.Check first char [11:09:03]Sock 9.First char is OK [11:09:03]request: POST /json_proto HTTP/1.0 [11:09:03]Method: POST [11:09:03]URL: /json_proto [11:09:03]Method is POST - this is cgi request [11:09:03]url: /json_proto [11:09:03]query_string will be loaded in cgi processing [11:09:03]execute_cgi json_proto POST (null) [11:09:03]execute_cgi path=json_proto method=POST [11:09:03]POST find Content-Length [11:09:03]Host: 172.17.41.195:8080 [11:09:03]Content-Length: 803 [11:09:03]Content-Type: application/json [11:09:03] [11:09:03]POST finish read [11:09:03]Found Content-Length = 803 [11:09:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507759", "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" ] } } [11:09:03]execute_script... [11:09: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)507759", "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" ] } } [11:09:03]POST & json_proto [11:09:03]process_json_proto [11:09:03]json parsed OK: [11:09:03]protocol is kg_v1.0 [11:09:03]action value=close_receipt [11:09:03]process_action close_receipt [11:09:03]cmd_close_receipt [11:09:03]MH_GetDate [11:09:03]Write to MH i2c: F0 00 00 AF 15 B3 [11:09:03]Write i2c OK [11:09:03]MH_I2C_Read... [11:09:03]Read from MH i2c: F0 [11:09:03]MH_I2C_Read... [11:09:03]Read from MH i2c: F0 09 00 [11:09:03]MH_I2C_Read... [11:09:03]Read from MH i2c: F0 09 00 AF 15 00 D2 3A 47 66 FC 21 6F 64 65 [11:09:03]GetLastDocTimeStamp 1715944086 [11:09:03]current date 1715944146 [11:09:03]FM_GetShiftState [11:09:03]SAM_PROTO_GetShiftState [11:09:03]wFMCommunicate request_size=4 [11:09:03]MH_SAM_APDU [11:09:03]CAPDU: 80 13 01 00 [11:09:03]Write to MH i2c: E2 08 00 B0 15 80 13 01 00 00 00 00 00 42 [11:09:03]Write i2c OK [11:09:03]MH_I2C_Read... [11:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:03]Read from MH i2c: E2 [11:09:03]MH_I2C_Read... [11:09:03]Read from MH i2c: E2 0E 00 [11:09:03]MH_I2C_Read... [11:09:03]Read from MH i2c: E2 0E 00 B0 15 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 C8 [11:09:03]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:09:03]wFMCommunicate OK [11:09:03]SAM_PROTO_GetShiftState done [11:09:03]FM_GetShiftState done [11:09:03]opened in 1715905068 [11:09:03]opened+sec_in_day 1715991468 [11:09:03]quantity*price = 100066 [11:09:03]sum+1 = 100067 [11:09:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 45 17.05.2024 11:09 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67636 ФПД: 224861544183034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T110906&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67636&fm=224861544183034&tin=02508201610067®Number=0000000000091845&sum=100066 [11:09:04]StoreToDocumentArchive [11:09:04]shift 358 fd 67636 [11:09:04]save to /storage/0358/doc_00067636 [11:09:04]save last doc name /storage/0358/doc_00067636 to /storage/kkm_last_doc_name [11:09:04]save OK [11:09:04]Clear old archive folders... [11:09:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:09:04]tlvbuf is B6F50740 [11:09:04]SAM_PROTO_ClearQueue [11:09:04]wFMCommunicate request_size=4 [11:09:04]MH_SAM_APDU [11:09:04]CAPDU: 80 09 00 00 [11:09:04]Write to MH i2c: E2 08 00 BD 15 80 09 00 00 00 00 00 00 44 [11:09:04]Write i2c OK [11:09:04]MH_I2C_Read... [11:09:04]Read from MH i2c: E2 [11:09:04]MH_I2C_Read... [11:09:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:04]Read from MH i2c: E2 03 00 [11:09:04]MH_I2C_Read... [11:09:04]Read from MH i2c: E2 03 00 BD 15 00 90 00 46 [11:09:04]RAPDU: 90 00 [11:09:04]wFMCommunicate OK [11:09:04]SAM_PROTO_ClearQueue done [11:09:04]KKMCreateOFDPacket [11:09:04]OFDProtocolAddRootSTLVToBuf [11:09:04]FM_MakeSignedData [11:09:04]FM_MakeSignedData [11:09:04]SAM_PROTO_SignData [11:09:04]wFMCommunicate request_size=4 [11:09:04]MH_SAM_APDU [11:09:04]CAPDU: 80 0D 01 02 [11:09:04]Write to MH i2c: E2 08 00 BE 15 80 0D 01 02 00 00 00 00 4C [11:09:04]Write i2c OK [11:09:04]MH_I2C_Read... [11:09:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:04]Read from MH i2c: E2 [11:09:04]MH_I2C_Read... [11:09:04]Read from MH i2c: E2 03 00 [11:09:04]MH_I2C_Read... [11:09:04]Read from MH i2c: E2 03 00 BE 15 00 90 00 47 [11:09:04]RAPDU: 90 00 [11:09:04]wFMCommunicate OK [11:09:04]wFMCommunicate request_size=255 [11:09:04]MH_SAM_APDU [11:09:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 2D 00 00 00 F4 03 04 00 D2 3A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CC [11:09:04]Write to MH i2c: E2 02 01 BF 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 2D 00 00 00 F4 03 04 00 D2 3A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CC 00 00 FF [11:09:04]Write i2c OK [11:09:04]MH_I2C_Read... [11:09:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:04]Read from MH i2c: E2 [11:09:04]MH_I2C_Read... [11:09:04]Read from MH i2c: E2 03 00 [11:09:04]MH_I2C_Read... [11:09:04]Read from MH i2c: E2 03 00 BF 15 00 90 00 48 [11:09:04]RAPDU: 90 00 [11:09:04]wFMCommunicate OK [11:09:04]wFMCommunicate request_size=10 [11:09:04]MH_SAM_APDU [11:09:04]CAPDU: 80 0D 02 02 05 82 A8 76 F4 FA [11:09:04]Write to MH i2c: E2 0D 00 C0 15 80 0D 02 02 05 00 82 A8 76 F4 FA 00 00 E7 [11:09:04]Write i2c OK [11:09:04]MH_I2C_Read... [11:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:05]Read from MH i2c: E2 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: E2 03 00 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: E2 03 00 C0 15 00 90 00 49 [11:09:05]RAPDU: 90 00 [11:09:05]wFMCommunicate OK [11:09:05]wFMCommunicate request_size=4 [11:09:05]MH_SAM_APDU [11:09:05]CAPDU: 80 0D 03 02 [11:09:05]Write to MH i2c: E2 08 00 C1 15 80 0D 03 02 00 00 00 00 51 [11:09:05]Write i2c OK [11:09:05]MH_I2C_Read... [11:09:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:05]Read from MH i2c: E2 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: E2 0B 00 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: E2 0B 00 C1 15 00 2D A8 DB 89 69 DF DB 14 90 00 C2 [11:09:05]RAPDU: 2D A8 DB 89 69 DF DB 14 90 00 [11:09:05]wFMCommunicate OK [11:09:05]SAM_PROTO_SignData done [11:09:05]FM_MakeSignedData done [11:09:05]CreateOFDProtocolMessage [11:09:05]wFMCommunicate request_size=4 [11:09:05]MH_SAM_APDU [11:09:05]CAPDU: 80 11 00 00 [11:09:05]Write to MH i2c: E2 08 00 C2 15 80 11 00 00 00 00 00 00 51 [11:09:05]Write i2c OK [11:09:05]MH_I2C_Read... [11:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:05]Read from MH i2c: E2 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: E2 17 00 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: E2 17 00 C2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A7 [11:09: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:09:05]wFMCommunicate OK [11:09:05]CreateOFDProtocolMessage done [11:09:05]OFDSenderStorePacket 67636 [11:09:05]StoreOFDPacket docnum=67636 [11:09: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 0F 01 00 00 1D E6 07 01 49 FC 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 2D 00 00 00 F4 03 04 00 D2 3A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CC 82 A8 76 F4 FA 2D A8 DB 89 69 DF DB 14 [11:09:05]CheckFolder [11:09:05]dirname=/storage/ofd_packets [11:09:05]CheckFolder done [11:09:05]ProducePacketName [11:09:05]name=ofd_packets/00067636 [11:09:05]NVStorageSaveData ofd_packets/00067636 [11:09:05]File name is /storage/ofd_packets/00067636 [11:09:05]Write 301 bytes [11:09:05]NVStorageSaveData done [11:09:05]OFDSenderStorePacket done [11:09:05]KKMCreateOFDPacket done [11:09:05]NVStorageSaveData kkm_last_timestamp [11:09:05]File name is /storage/kkm_last_timestamp [11:09:05]Write 4 bytes [11:09:05]NVStorageSaveData done [11:09:05]ExternCall_PrintAddStr [11:09:05]wPrintStart [11:09:05]Write to MH i2c: 01 00 00 C3 15 D8 [11:09:05]Write i2c OK [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: 01 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: 01 07 00 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: 01 07 00 C3 15 00 00 00 00 00 FF 0F ED [11:09:05]RasterBufferAndPrint [11:09:05]line Счет N : (1)507759 [11:09:05]line ИНН: 02508201610067 [11:09:05]line Контрольно-Кассовый Чек [11:09:05]line ПРОДАЖА [11:09:05]line ТРК (МРК, ГНК) : 33 [11:09:05]line Товар: 2710124130 [11:09:05]line Аи-92-К-5 [11:09:05]line 14.980 * 66.80 [11:09:05]line = 1000.66 [11:09:05]line НДС 12% НСП 1% [11:09:05]line > о реализуемом товаре [11:09:05]line ИТОГО: 1000.66 [11:09:05]line НСП 1% : 8.85 [11:09:05]line НДС 12% : 106.26 [11:09:05]line Наличными: 0.00 [11:09:05]line Безнал.: 1000.66 [11:09:05]line Место: АЗС № 91 "Партнер Нефть" [11:09:05]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:09:05]line СНО: Общий режим [11:09:05]line Чек 45 17.05.2024 11:09 [11:09:05]line Смена: 358 ФФД: 1.0 [11:09:05]line ЗНМ: 0300000119 [11:09:05]line РНМ: 0000000000091845 [11:09:05]line Версия ККМ: 001 [11:09:05]line Платежная система: O! деньги [11:09:05]line ФМ: 0000000000871829 [11:09:05]line ФД: 67636 [11:09:05]line ФПД: 224861544183034 [11:09:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T110906&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67636&fm=224861544183034&tin=02508201610067®Number=0000000000091845&sum=100066 [11:09:05]OFD Sender: Processing packet 67636 [packets to send 35, broken 34] [11:09:05]ProducePacketName [11:09:05]name=ofd_packets/00067636 [11:09:05]OFD Sender: To server: pG, [11:09:05]CommunicateWithHost lk.salyk.kg:30040 [11:09:05]ConnectInit lk.salyk.kg [11:09:05]written 0, free lines is 4095 [11:09:05]Connected sock=7 [11:09:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 1D E6 07 01 49 FC 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 2D 00 00 00 F4 03 04 00 D2 3A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CC 82 A8 76 F4 FA 2D A8 DB 89 69 DF DB 14 [11:09: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 EF C3 47 00 F6 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 AA E2 46 66 B6 04 01 00 00 67 2F FE 38 69 C9 56 BF [11:09:05]CommunicateWithHost err = 0 [11:09:05]CheckOFDResponse [11:09:05]1017 (14) - 77093643461234 [11:09:05]1041 (16) - 0000000000871829 [11:09:05]1040 (4) - 67636 [11:09:05]1012 (4) - 17.05.2024 04:52 [11:09:05]1206 (1) - 0 [11:09:05]OFD Sender: Remove packet 67636 [11:09:05]ProducePacketName [11:09:05]name=ofd_packets/00067636 [11:09:05]NVStorageDeleteData [11:09:05]Write to MH i2c: 01 00 00 EC 15 01 [11:09:05]Write i2c OK [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: 01 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: 01 07 00 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: 01 07 00 EC 15 00 00 00 00 00 D9 0C ED [11:09:05]RasterBufferAndPrint [11:09:05]line [11:09:05]line [11:09:05]line [11:09:05]line [11:09:05]line [11:09:05]written 0, free lines is 3298 [11:09:05]MH_Cut [11:09:05]Write to MH i2c: D1 01 00 F3 15 01 DA [11:09:05]Write i2c OK [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: D1 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: D1 01 00 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: D1 01 00 F3 15 00 D9 [11:09:05]Write to MH i2c: 01 00 00 F4 15 09 [11:09:05]Write i2c OK [11:09:05]MH_I2C_Read... [11:09:06]OFD Sender: No OFD packet to send [11:09:06]*** Cut start [11:09:06]*** Purtial cut [11:09:06]*** CUTSNS_PIN = 0 [11:09:06]*** Stage 1: CUTSNS_PIN = 1 [11:09:08]Read from MH i2c: 01 [11:09:08]MH_I2C_Read... [11:09:08]*** Stop cut motor [11:09:08]*** Cut end [11:09:08]Read from MH i2c: 01 07 00 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: 01 07 00 F4 15 00 00 00 00 00 FF 0F 1E [11:09:08]process_action close_receipt done [11:09:08]requested_data is exist [11:09:08]produce_requested_data [11:09:08]requested_item fm.sn is exist - process it [11:09:08]wFMCommunicate request_size=4 [11:09:08]MH_SAM_APDU [11:09:08]CAPDU: 80 11 00 00 [11:09:08]Write to MH i2c: E2 08 00 F5 15 80 11 00 00 00 00 00 00 84 [11:09:08]Write i2c OK [11:09:08]MH_I2C_Read... [11:09:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:08]Read from MH i2c: E2 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 17 00 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 17 00 F5 15 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:09:08]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:08]wFMCommunicate OK [11:09:08]requested_item fd.num is exist - process it [11:09:08]SAM_PROTO_GetFieldsCounters [11:09:08]wFMCommunicate request_size=4 [11:09:08]MH_SAM_APDU [11:09:08]CAPDU: 80 13 00 00 [11:09:08]Write to MH i2c: E2 08 00 F6 15 80 13 00 00 00 00 00 00 87 [11:09:08]Write i2c OK [11:09:08]MH_I2C_Read... [11:09:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:08]Read from MH i2c: E2 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 62 00 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 62 00 F6 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 34 08 01 00 0E 04 04 00 66 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 D8 [11:09: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 34 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:08]wFMCommunicate OK [11:09:08]SAM_PROTO_GetFieldsCounters done [11:09:08]requested_item shift.num is exist - process it [11:09:08]requested_item shift.opened is exist - process it [11:09:08]req_shift_opened [11:09:08]FM_GetShiftState [11:09:08]SAM_PROTO_GetShiftState [11:09:08]wFMCommunicate request_size=4 [11:09:08]MH_SAM_APDU [11:09:08]CAPDU: 80 13 01 00 [11:09:08]Write to MH i2c: E2 08 00 F7 15 80 13 01 00 00 00 00 00 89 [11:09:08]Write i2c OK [11:09:08]MH_I2C_Read... [11:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:09]Read from MH i2c: E2 [11:09:09]MH_I2C_Read... [11:09:09]Read from MH i2c: E2 0E 00 [11:09:09]MH_I2C_Read... [11:09:09]Read from MH i2c: E2 0E 00 F7 15 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 0F [11:09:09]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:09:09]wFMCommunicate OK [11:09:09]SAM_PROTO_GetShiftState done [11:09:09]FM_GetShiftState done [11:09:09]req_shift_opened done [11:09:09]requested_item shift.open_date is exist - process it [11:09:09]req_shift_open_date [11:09:09]req_shift_open_date done [11:09:09]produce_requested_data done [11:09:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67636,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:09:09]process_action_free close_receipt [11:09:09]json_value_free [11:09:09]json_value_free done [11:09:09]process_json_proto returns [11:09:09]Send response to host [11:09:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67636,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:09:09]free response buf [11:09:09]execute_script done [11:09:09]execute_script returns [11:09:09]free content buf [11:09:09]Sock 9.Close socket [11:09:09]Sock 9.Thread stoped [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [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: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: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: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:21]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:40]accept exits with 10 [11:16:40]New connection [11:16:40]New thread 3067538788 created [11:16:40]Thread 3067395428 joined [11:16:40]Waiting for new connection... [11:16:40] Sock 10.Parse request [11:16:40]Sock 10.Check first char [11:16:40]Sock 10.First char is OK [11:16:40]request: POST /json_proto HTTP/1.0 [11:16:40]Method: POST [11:16:40]URL: /json_proto [11:16:40]Method is POST - this is cgi request [11:16:40]url: /json_proto [11:16:40]query_string will be loaded in cgi processing [11:16:40]execute_cgi json_proto POST (null) [11:16:40]execute_cgi path=json_proto method=POST [11:16:40]POST find Content-Length [11:16:40]Host: 172.17.41.195:8080 [11:16:40]Content-Length: 1179 [11:16:40]Content-Type: application/json [11:16:40] [11:16:40]POST finish read [11:16:40]Found Content-Length = 1179 [11:16: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507760\u000A17.05.2024 10: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 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" ] } } [11:16:40]execute_script... [11:16: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507760\u000A17.05.2024 10: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 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" ] } } [11:16:40]POST & json_proto [11:16:40]process_json_proto [11:16:40]json parsed OK: [11:16:40]protocol is kg_v1.0 [11:16:40]action value=print_text [11:16:40]process_action print_text [11:16:40]cmd_print_text [11:16:40]ExternCall_PrintAddStr [11:16:40]wPrintStart [11:16:40]Write to MH i2c: 01 00 00 F8 15 0D [11:16:40]Write i2c OK [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: 01 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: 01 07 00 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: 01 07 00 F8 15 00 00 00 00 00 FF 0F 22 [11:16:40]RasterBufferAndPrint [11:16:40]line *****ТОВАРНЫЙ ЧЕК***** [11:16:40]line АЗС-91 [11:16:40]line Партнер нефть [11:16:40]line 02508201610067 [11:16:40]line Кассир : Адишов И. [11:16:40]line Счет N : (1)507760 [11:16:40]line 17.05.2024 10:59 [11:16:40]line ПРОДАЖА [11:16:40]line ТРК (МРК, ГНК): 31 [11:16:40]line Вид ГСМ : 2710194210 [11:16:40]line ДТ-К-5 [11:16:40]line 33.470 x 74.70 [11:16:40]line ИТОГ: 2500.21 [11:16:40]line Тип оплаты: Талоны: Топливная Карта [11:16:40]line 02750 [11:16:40]line ______________________ [11:16:40]line (подпись) [11:16:40]written 0, free lines is 4095 [11:16:40]Write to MH i2c: 01 00 00 0C 16 22 [11:16:40]Write i2c OK [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: 01 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: 01 07 00 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: 01 07 00 0C 16 00 00 00 00 00 0C 0E 43 [11:16:40]RasterBufferAndPrint [11:16:40]line [11:16:40]line [11:16:40]line [11:16:40]line [11:16:40]line [11:16:40]written 0, free lines is 3597 [11:16:40]MH_Cut [11:16:40]Write to MH i2c: D1 01 00 13 16 01 FB [11:16:40]Write i2c OK [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: D1 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: D1 01 00 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: D1 01 00 13 16 00 FA [11:16:40]Write to MH i2c: 01 00 00 14 16 2A [11:16:40]Write i2c OK [11:16:40]MH_I2C_Read... [11:16:41]*** Cut start [11:16:41]*** Purtial cut [11:16:41]*** Stage 1: CUTSNS_PIN = 1 [11:16:41]Read from MH i2c: 01 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: 01 07 00 [11:16:41]MH_I2C_Read... [11:16:41]*** Stop cut motor [11:16:41]*** Cut end [11:16:41]Read from MH i2c: 01 07 00 14 16 00 00 00 00 00 FF 0F 3F [11:16:41]process_action print_text done [11:16:41]requested_data is exist [11:16:41]produce_requested_data [11:16:41]requested_item fm.sn is exist - process it [11:16:41]wFMCommunicate request_size=4 [11:16:41]MH_SAM_APDU [11:16:41]CAPDU: 80 11 00 00 [11:16:41]Write to MH i2c: E2 08 00 15 16 80 11 00 00 00 00 00 00 A5 [11:16:41]Write i2c OK [11:16:41]MH_I2C_Read... [11:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:41]Read from MH i2c: E2 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 17 00 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 17 00 15 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FB [11:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:16:41]wFMCommunicate OK [11:16:41]requested_item fd.num is exist - process it [11:16:41]SAM_PROTO_GetFieldsCounters [11:16:41]wFMCommunicate request_size=4 [11:16:41]MH_SAM_APDU [11:16:41]CAPDU: 80 13 00 00 [11:16:41]Write to MH i2c: E2 08 00 16 16 80 13 00 00 00 00 00 00 A8 [11:16:41]Write i2c OK [11:16:41]MH_I2C_Read... [11:16:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:41]Read from MH i2c: E2 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 62 00 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 62 00 16 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 34 08 01 00 0E 04 04 00 66 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 F9 [11:16: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 34 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:41]wFMCommunicate OK [11:16:41]SAM_PROTO_GetFieldsCounters done [11:16:41]requested_item shift.num is exist - process it [11:16:41]requested_item shift.opened is exist - process it [11:16:41]req_shift_opened [11:16:41]FM_GetShiftState [11:16:41]SAM_PROTO_GetShiftState [11:16:41]wFMCommunicate request_size=4 [11:16:41]MH_SAM_APDU [11:16:41]CAPDU: 80 13 01 00 [11:16:41]Write to MH i2c: E2 08 00 17 16 80 13 01 00 00 00 00 00 AA [11:16:41]Write i2c OK [11:16:41]MH_I2C_Read... [11:16:41]OFD Sender: No OFD packet to send [11:16:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:41]Read from MH i2c: E2 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 0E 00 [11:16:41]MH_I2C_Read... [11:16:41]Read from MH i2c: E2 0E 00 17 16 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 30 [11:16:41]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:16:41]wFMCommunicate OK [11:16:41]SAM_PROTO_GetShiftState done [11:16:41]FM_GetShiftState done [11:16:41]req_shift_opened done [11:16:41]requested_item shift.open_date is exist - process it [11:16:41]req_shift_open_date [11:16:41]req_shift_open_date done [11:16:41]produce_requested_data done [11:16:41]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67636,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:16:41]process_action_free print_text [11:16:41]json_value_free [11:16:41]json_value_free done [11:16:41]process_json_proto returns [11:16:41]Send response to host [11:16:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67636,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:16:41]free response buf [11:16:41]execute_script done [11:16:41]execute_script returns [11:16:41]free content buf [11:16:41]Sock 10.Close socket [11:16:41]Sock 10.Thread stoped [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:05]accept exits with 7 [11:17:05]New connection [11:17:05]New thread 3067395428 created [11:17:05]Thread 3067538788 joined [11:17:05]Waiting for new connection... [11:17:05] Sock 7.Parse request [11:17:05]Sock 7.Check first char [11:17:05]Sock 7.First char is OK [11:17:05]request: POST /json_proto HTTP/1.0 [11:17:05]Method: POST [11:17:05]URL: /json_proto [11:17:05]Method is POST - this is cgi request [11:17:05]url: /json_proto [11:17:05]query_string will be loaded in cgi processing [11:17:05]execute_cgi json_proto POST (null) [11:17:05]execute_cgi path=json_proto method=POST [11:17:05]POST find Content-Length [11:17:05]Host: 172.17.41.195:8080 [11:17:05]Content-Length: 1031 [11:17:05]Content-Type: application/json [11:17:05] [11:17:05]POST finish read [11:17:05]Found Content-Length = 1031 [11:17:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12100", "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 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 211.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:05]execute_script... [11:17: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 : (3)12100", "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 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 211.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:05]POST & json_proto [11:17:05]process_json_proto [11:17:05]json parsed OK: [11:17:05]protocol is kg_v1.0 [11:17:05]action value=close_receipt [11:17:05]process_action close_receipt [11:17:05]cmd_close_receipt [11:17:05]MH_GetDate [11:17:05]Write to MH i2c: F0 00 00 18 16 1D [11:17:05]Write i2c OK [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: F0 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: F0 09 00 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: F0 09 00 18 16 00 B4 3C 47 66 FC 21 6F 64 B3 [11:17:05]GetLastDocTimeStamp 1715944146 [11:17:05]current date 1715944628 [11:17:05]FM_GetShiftState [11:17:05]SAM_PROTO_GetShiftState [11:17:05]wFMCommunicate request_size=4 [11:17:05]MH_SAM_APDU [11:17:05]CAPDU: 80 13 01 00 [11:17:05]Write to MH i2c: E2 08 00 19 16 80 13 01 00 00 00 00 00 AC [11:17:05]Write i2c OK [11:17:05]MH_I2C_Read... [11:17:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:05]Read from MH i2c: E2 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 0E 00 [11:17:05]MH_I2C_Read... [11:17:05]Read from MH i2c: E2 0E 00 19 16 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 32 [11:17:05]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:17:05]wFMCommunicate OK [11:17:05]SAM_PROTO_GetShiftState done [11:17:05]FM_GetShiftState done [11:17:05]opened in 1715905068 [11:17:05]opened+sec_in_day 1715991468 [11:17:05]quantity*price = 9600 [11:17:05]sum+1 = 9601 [11:17:05]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 211.00 НСП 1% : 1.87 НДС 12% : 22.40 Наличными: 211.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 46 17.05.2024 11:17 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67637 ФПД: 20415190016959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T111708&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67637&fm=20415190016959&tin=02508201610067®Number=0000000000091845&sum=21100 0 [11:17:06]StoreToDocumentArchive [11:17:06]shift 358 fd 67637 [11:17:06]save to /storage/0358/doc_00067637 [11:17:06]save last doc name /storage/0358/doc_00067637 to /storage/kkm_last_doc_name [11:17:06]save OK [11:17:06]Clear old archive folders... [11:17:06]ProcessDocumentItem done err = 0, tmpTLVsize=432 [11:17:06]tlvbuf is 015DBD20 [11:17:06]SAM_PROTO_ClearQueue [11:17:06]wFMCommunicate request_size=4 [11:17:06]MH_SAM_APDU [11:17:06]CAPDU: 80 09 00 00 [11:17:06]Write to MH i2c: E2 08 00 26 16 80 09 00 00 00 00 00 00 AE [11:17:06]Write i2c OK [11:17:06]MH_I2C_Read... [11:17:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:06]Read from MH i2c: E2 [11:17:06]MH_I2C_Read... [11:17:06]Read from MH i2c: E2 03 00 [11:17:06]MH_I2C_Read... [11:17:06]Read from MH i2c: E2 03 00 26 16 00 90 00 B0 [11:17:06]RAPDU: 90 00 [11:17:06]wFMCommunicate OK [11:17:06]SAM_PROTO_ClearQueue done [11:17:06]KKMCreateOFDPacket [11:17:06]OFDProtocolAddRootSTLVToBuf [11:17:06]FM_MakeSignedData [11:17:06]FM_MakeSignedData [11:17:06]SAM_PROTO_SignData [11:17:06]wFMCommunicate request_size=4 [11:17:06]MH_SAM_APDU [11:17:06]CAPDU: 80 0D 01 02 [11:17:06]Write to MH i2c: E2 08 00 27 16 80 0D 01 02 00 00 00 00 B6 [11:17:06]Write i2c OK [11:17:06]MH_I2C_Read... [11:17:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:06]Read from MH i2c: E2 [11:17:06]MH_I2C_Read... [11:17:06]Read from MH i2c: E2 03 00 [11:17:06]MH_I2C_Read... [11:17:06]Read from MH i2c: E2 03 00 27 16 00 90 00 B1 [11:17:06]RAPDU: 90 00 [11:17:06]wFMCommunicate OK [11:17:06]wFMCommunicate request_size=255 [11:17:06]MH_SAM_APDU [11:17:06]CAPDU: 80 0D 02 02 FA 03 00 B0 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 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 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 D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 [11:17:06]Write to MH i2c: E2 02 01 28 16 80 0D 02 02 FA 00 03 00 B0 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 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 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 D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 00 00 E8 [11:17:06]Write i2c OK [11:17:06]MH_I2C_Read... [11:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:07]Read from MH i2c: E2 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 03 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 03 00 28 16 00 90 00 B2 [11:17:07]RAPDU: 90 00 [11:17:07]wFMCommunicate OK [11:17:07]wFMCommunicate request_size=191 [11:17:07]MH_SAM_APDU [11:17:07]CAPDU: 80 0D 02 02 BA EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 08 00 00 00 00 07 04 06 00 6C 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 B4 3C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 12 91 48 26 23 BF [11:17:07]Write to MH i2c: E2 C2 00 29 16 80 0D 02 02 BA 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 08 00 00 00 00 07 04 06 00 6C 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 B4 3C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 12 91 48 26 23 BF 00 00 A2 [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:07]Read from MH i2c: E2 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 03 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 03 00 29 16 00 90 00 B3 [11:17:07]RAPDU: 90 00 [11:17:07]wFMCommunicate OK [11:17:07]wFMCommunicate request_size=4 [11:17:07]MH_SAM_APDU [11:17:07]CAPDU: 80 0D 03 02 [11:17:07]Write to MH i2c: E2 08 00 2A 16 80 0D 03 02 00 00 00 00 BB [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:07]Read from MH i2c: E2 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 0B 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 0B 00 2A 16 00 90 FD 74 7C 3C 3F FD B7 90 00 68 [11:17:07]RAPDU: 90 FD 74 7C 3C 3F FD B7 90 00 [11:17:07]wFMCommunicate OK [11:17:07]SAM_PROTO_SignData done [11:17:07]FM_MakeSignedData done [11:17:07]CreateOFDProtocolMessage [11:17:07]wFMCommunicate request_size=4 [11:17:07]MH_SAM_APDU [11:17:07]CAPDU: 80 11 00 00 [11:17:07]Write to MH i2c: E2 08 00 2B 16 80 11 00 00 00 00 00 00 BB [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:07]Read from MH i2c: E2 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 17 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 17 00 2B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 11 [11:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:17:07]wFMCommunicate OK [11:17:07]CreateOFDProtocolMessage done [11:17:07]OFDSenderStorePacket 67637 [11:17:07]StoreOFDPacket docnum=67637 [11:17: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 C4 01 00 00 B0 EF BC 01 90 76 5A 03 01 00 03 00 B0 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 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 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 D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 08 00 00 00 00 07 04 06 00 6C 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 B4 3C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 12 91 48 26 23 BF 90 FD 74 7C 3C 3F FD B7 [11:17:07]CheckFolder [11:17:07]dirname=/storage/ofd_packets [11:17:07]CheckFolder done [11:17:07]ProducePacketName [11:17:07]name=ofd_packets/00067637 [11:17:07]NVStorageSaveData ofd_packets/00067637 [11:17:07]File name is /storage/ofd_packets/00067637 [11:17:07]Write 482 bytes [11:17:07]NVStorageSaveData done [11:17:07]OFDSenderStorePacket done [11:17:07]KKMCreateOFDPacket done [11:17:07]NVStorageSaveData kkm_last_timestamp [11:17:07]File name is /storage/kkm_last_timestamp [11:17:07]Write 4 bytes [11:17:07]NVStorageSaveData done [11:17:07]ExternCall_PrintAddStr [11:17:07]wPrintStart [11:17:07]Write to MH i2c: 01 00 00 2C 16 42 [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:07]OFD Sender: Processing packet 67637 [packets to send 35, broken 34] [11:17:07]Read from MH i2c: ProducePacketName [11:17:07]01 name=ofd_packets/00067637 [11:17:07] [11:17:07]MH_I2C_Read... [11:17:07]OFD Sender: To server: pG, [11:17:07]CommunicateWithHost lk.salyk.kg:30040 [11:17:07]Read from MH i2c: ConnectInit lk.salyk.kg [11:17:07]01 07 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: 01 07 00 2C 16 00 00 00 00 00 FF 0F 57 [11:17:07]RasterBufferAndPrint [11:17:07]line Счет N : (3)12100 [11:17:07]line ИНН: 02508201610067 [11:17:07]line Контрольно-Кассовый Чек [11:17:07]line ПРОДАЖА [11:17:07]line Товар: 4870202521247 [11:17:07]line Напиток MAXI чай 1,2 черн.персик [11:17:07]line 1.000 * 96.00 [11:17:07]line = 96.00 [11:17:07]line НДС 12% НСП 1% [11:17:07]line > о реализуемом товаре [11:17:07]line Товар: 5449000027474 [11:17:07]line Напиток FuzeTea зел чай манго,ромашка 1л [11:17:07]line 1.000 * 115.00 [11:17:07]line = 115.00 [11:17:07]line НДС 12% НСП 1% [11:17:07]line > о реализуемом товаре [11:17:07]line ИТОГО: 211.00 [11:17:07]line НСП 1% : 1.87 [11:17:07]line НДС 12% : 22.40 [11:17:07]line Наличными: 211.00 [11:17:07]line Безнал.: 0.00 [11:17:07]line Место: АЗС № 91 "Партнер Нефть" [11:17:07]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:17:07]line СНО: Общий режим [11:17:07]line Чек 46 17.05.2024 11:17 [11:17:07]line Смена: 358 ФФД: 1.0 [11:17:07]line ЗНМ: 0300000119 [11:17:07]line РНМ: 0000000000091845 [11:17:07]line Версия ККМ: 001 [11:17:07]line ФМ: 0000000000871829 [11:17:07]line ФД: 67637 [11:17:07]line ФПД: 20415190016959 [11:17:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T111708&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67637&fm=20415190016959&tin=02508201610067®Number=0000000000091845&sum=21100 [11:17:07]line 0 [11:17:07]written 0, free lines is 4095 [11:17:07]Connected sock=11 [11:17: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 C4 01 00 00 B0 EF BC 01 90 76 5A 03 01 00 03 00 B0 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 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 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 D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 08 00 00 00 00 07 04 06 00 6C 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 B4 3C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 12 91 48 26 23 BF 90 FD 74 7C 3C 3F FD B7 [11:17:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 62 82 47 00 8B 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 35 08 01 00 F4 03 04 00 8D E4 46 66 B6 04 01 00 00 91 3F B4 BD 08 35 2A 47 [11:17:08]CommunicateWithHost err = 0 [11:17:08]CheckOFDResponse [11:17:08]1017 (14) - 77093643461234 [11:17:08]1041 (16) - 0000000000871829 [11:17:08]1040 (4) - 67637 [11:17:08]1012 (4) - 17.05.2024 05:01 [11:17:08]1206 (1) - 0 [11:17:08]OFD Sender: Remove packet 67637 [11:17:08]ProducePacketName [11:17:08]name=ofd_packets/00067637 [11:17:08]NVStorageDeleteData [11:17:08]Write to MH i2c: 01 00 00 5B 16 71 [11:17:08]Write i2c OK [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: 01 [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: 01 07 00 [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: 01 07 00 5B 16 00 00 00 00 00 5C 0C E0 [11:17:08]RasterBufferAndPrint [11:17:08]line [11:17:08]line [11:17:08]line [11:17:08]line [11:17:08]line [11:17:08]written 0, free lines is 3172 [11:17:08]MH_Cut [11:17:08]Write to MH i2c: D1 01 00 62 16 01 4A [11:17:08]Write i2c OK [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: D1 [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: D1 01 00 [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: D1 01 00 62 16 00 49 [11:17:08]Write to MH i2c: 01 00 00 63 16 79 [11:17:08]Write i2c OK [11:17:08]MH_I2C_Read... [11:17:08]OFD Sender: No OFD packet to send [11:17:09]*** Cut start [11:17:09]*** Purtial cut [11:17:09]*** CUTSNS_PIN = 0 [11:17:09]*** Stage 1: CUTSNS_PIN = 1 [11:17:11]Read from MH i2c: 01 [11:17:11]MH_I2C_Read... [11:17:11]*** Stop cut motor [11:17:11]*** Cut end [11:17:11]Read from MH i2c: 01 07 00 [11:17:11]MH_I2C_Read... [11:17:11]Read from MH i2c: 01 07 00 63 16 00 00 00 00 00 FF 0F 8E [11:17:11]process_action close_receipt done [11:17:11]requested_data is exist [11:17:11]produce_requested_data [11:17:11]requested_item fm.sn is exist - process it [11:17:11]wFMCommunicate request_size=4 [11:17:11]MH_SAM_APDU [11:17:11]CAPDU: 80 11 00 00 [11:17:11]Write to MH i2c: E2 08 00 64 16 80 11 00 00 00 00 00 00 F4 [11:17:11]Write i2c OK [11:17:11]MH_I2C_Read... [11:17:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:11]Read from MH i2c: E2 [11:17:11]MH_I2C_Read... [11:17:11]Read from MH i2c: E2 17 00 [11:17:11]MH_I2C_Read... [11:17:11]Read from MH i2c: E2 17 00 64 16 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: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 [11:17:11]wFMCommunicate OK [11:17:11]requested_item fd.num is exist - process it [11:17:11]SAM_PROTO_GetFieldsCounters [11:17:11]wFMCommunicate request_size=4 [11:17:11]MH_SAM_APDU [11:17:11]CAPDU: 80 13 00 00 [11:17:11]Write to MH i2c: E2 08 00 65 16 80 13 00 00 00 00 00 00 F7 [11:17:11]Write i2c OK [11:17:11]MH_I2C_Read... [11:17:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:11]Read from MH i2c: E2 [11:17:11]MH_I2C_Read... [11:17:11]Read from MH i2c: E2 62 00 [11:17:11]MH_I2C_Read... [11:17:11]Read from MH i2c: E2 62 00 65 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 35 08 01 00 0E 04 04 00 66 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 4C [11: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 35 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:11]wFMCommunicate OK [11:17:11]SAM_PROTO_GetFieldsCounters done [11:17:11]requested_item shift.num is exist - process it [11:17:11]requested_item shift.opened is exist - process it [11:17:11]req_shift_opened [11:17:11]FM_GetShiftState [11:17:11]SAM_PROTO_GetShiftState [11:17:11]wFMCommunicate request_size=4 [11:17:11]MH_SAM_APDU [11:17:11]CAPDU: 80 13 01 00 [11:17:11]Write to MH i2c: E2 08 00 66 16 80 13 01 00 00 00 00 00 F9 [11:17:11]Write i2c OK [11:17:11]MH_I2C_Read... [11:17:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:11]Read from MH i2c: E2 [11:17:11]MH_I2C_Read... [11:17:11]Read from MH i2c: E2 0E 00 [11:17:11]MH_I2C_Read... [11:17:11]Read from MH i2c: E2 0E 00 66 16 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 7F [11:17:11]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:17:11]wFMCommunicate OK [11:17:11]SAM_PROTO_GetShiftState done [11:17:11]FM_GetShiftState done [11:17:11]req_shift_opened done [11:17:11]requested_item shift.open_date is exist - process it [11:17:11]req_shift_open_date [11:17:11]req_shift_open_date done [11:17:11]produce_requested_data done [11:17:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67637,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:17:11]process_action_free close_receipt [11:17:11]json_value_free [11:17:11]json_value_free done [11:17:11]process_json_proto returns [11:17:11]Send response to host [11:17:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67637,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:17:11]free response buf [11:17:11]execute_script done [11:17:11]execute_script returns [11:17:11]free content buf [11:17:11]Sock 7.Close socket [11:17:11]Sock 7.Thread stoped [11:17:13]OFD Sender: No OFD packet to send [11:17:18]accept exits with 9 [11:17:18]New connection [11:17:18]New thread 3067538788 created [11:17:18]Thread 3067395428 joined [11:17:18]Waiting for new connection... [11:17:18] Sock 9.Parse request [11:17:18]Sock 9.Check first char [11:17:18]Sock 9.First char is OK [11:17:18]request: POST /json_proto HTTP/1.0 [11:17:18]Method: POST [11:17:18]URL: /json_proto [11:17:18]Method is POST - this is cgi request [11:17:18]url: /json_proto [11:17:18]query_string will be loaded in cgi processing [11:17:18]execute_cgi json_proto POST (null) [11:17:18]execute_cgi path=json_proto method=POST [11:17:18]POST find Content-Length [11:17:18]Host: 172.17.41.195:8080 [11:17:18]Content-Length: 800 [11:17:18]Content-Type: application/json [11:17:18] [11:17:18]POST finish read [11:17:18]Found Content-Length = 800 [11:17:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:18]execute_script... [11:17: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)507761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:18]POST & json_proto [11:17:18]process_json_proto [11:17:18]json parsed OK: [11:17:18]protocol is kg_v1.0 [11:17:18]action value=close_receipt [11:17:18]process_action close_receipt [11:17:18]cmd_close_receipt [11:17:18]MH_GetDate [11:17:18]Write to MH i2c: F0 00 00 67 16 6C [11:17:18]Write i2c OK [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: F0 [11:17:18]MH_I2C_Read... [11:17:18]OFD Sender: No OFD packet to send [11:17:18]Read from MH i2c: F0 09 00 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: F0 09 00 67 16 00 C1 3C 47 66 FC 21 6F 64 0F [11:17:18]GetLastDocTimeStamp 1715944628 [11:17:18]current date 1715944641 [11:17:18]FM_GetShiftState [11:17:18]SAM_PROTO_GetShiftState [11:17:18]wFMCommunicate request_size=4 [11:17:18]MH_SAM_APDU [11:17:18]CAPDU: 80 13 01 00 [11:17:18]Write to MH i2c: E2 08 00 68 16 80 13 01 00 00 00 00 00 FB [11:17:18]Write i2c OK [11:17:18]MH_I2C_Read... [11:17:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:18]Read from MH i2c: E2 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: E2 0E 00 [11:17:18]MH_I2C_Read... [11:17:18]Read from MH i2c: E2 0E 00 68 16 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 81 [11:17:18]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:17:18]wFMCommunicate OK [11:17:18]SAM_PROTO_GetShiftState done [11:17:18]FM_GetShiftState done [11:17:18]opened in 1715905068 [11:17:18]opened+sec_in_day 1715991468 [11:17:18]quantity*price = 100023 [11:17:18]sum+1 = 100024 [11:17:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 47 17.05.2024 11:17 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67638 ФПД: 275387831619491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T111721&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67638&fm=275387831619491&tin=02508201610067®Number=0000000000091845&sum=100023 [11:17:19]StoreToDocumentArchive [11:17:19]shift 358 fd 67638 [11:17:19]save to /storage/0358/doc_00067638 [11:17:19]save last doc name /storage/0358/doc_00067638 to /storage/kkm_last_doc_name [11:17:19]save OK [11:17:19]Clear old archive folders... [11:17:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:17:19]tlvbuf is 0165A290 [11:17:19]SAM_PROTO_ClearQueue [11:17:19]wFMCommunicate request_size=4 [11:17:19]MH_SAM_APDU [11:17:19]CAPDU: 80 09 00 00 [11:17:19]Write to MH i2c: E2 08 00 75 16 80 09 00 00 00 00 00 00 FD [11:17:19]Write i2c OK [11:17:19]MH_I2C_Read... [11:17:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:19]Read from MH i2c: E2 [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: E2 03 00 [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: E2 03 00 75 16 00 90 00 FF [11:17:19]RAPDU: 90 00 [11:17:19]wFMCommunicate OK [11:17:19]SAM_PROTO_ClearQueue done [11:17:19]KKMCreateOFDPacket [11:17:19]OFDProtocolAddRootSTLVToBuf [11:17:19]FM_MakeSignedData [11:17:19]FM_MakeSignedData [11:17:19]SAM_PROTO_SignData [11:17:19]wFMCommunicate request_size=4 [11:17:19]MH_SAM_APDU [11:17:19]CAPDU: 80 0D 01 02 [11:17:19]Write to MH i2c: E2 08 00 76 16 80 0D 01 02 00 00 00 00 05 [11:17:19]Write i2c OK [11:17:19]MH_I2C_Read... [11:17:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:19]Read from MH i2c: E2 [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: E2 03 00 [11:17:19]MH_I2C_Read... [11:17:19]Read from MH i2c: E2 03 00 76 16 00 90 00 00 [11:17:19]RAPDU: 90 00 [11:17:19]wFMCommunicate OK [11:17:19]wFMCommunicate request_size=255 [11:17:19]MH_SAM_APDU [11:17: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 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 2F 00 00 00 F4 03 04 00 C1 3C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 FA 76 B9 E1 [11:17:19]Write to MH i2c: E2 02 01 77 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 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 2F 00 00 00 F4 03 04 00 C1 3C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 FA 76 B9 E1 00 00 96 [11:17:19]Write i2c OK [11:17:19]MH_I2C_Read... [11:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:20]Read from MH i2c: E2 [11:17:20]MH_I2C_Read... [11:17:20]Read from MH i2c: E2 03 00 [11:17:20]MH_I2C_Read... [11:17:20]Read from MH i2c: E2 03 00 77 16 00 90 00 01 [11:17:20]RAPDU: 90 00 [11:17:20]wFMCommunicate OK [11:17:20]wFMCommunicate request_size=7 [11:17:20]MH_SAM_APDU [11:17:20]CAPDU: 80 0D 02 02 02 0F A3 [11:17:20]Write to MH i2c: E2 0A 00 78 16 80 0D 02 02 02 00 0F A3 00 00 BE [11:17:20]Write i2c OK [11:17:20]MH_I2C_Read... [11:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:20]Read from MH i2c: E2 [11:17:20]MH_I2C_Read... [11:17:20]Read from MH i2c: E2 03 00 [11:17:20]MH_I2C_Read... [11:17:20]Read from MH i2c: E2 03 00 78 16 00 90 00 02 [11:17:20]RAPDU: 90 00 [11:17:20]wFMCommunicate OK [11:17:20]wFMCommunicate request_size=4 [11:17:20]MH_SAM_APDU [11:17:20]CAPDU: 80 0D 03 02 [11:17:20]Write to MH i2c: E2 08 00 79 16 80 0D 03 02 00 00 00 00 0A [11:17:20]Write i2c OK [11:17:20]MH_I2C_Read... [11:17:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:20]Read from MH i2c: E2 [11:17:20]MH_I2C_Read... [11:17:20]Read from MH i2c: E2 0B 00 [11:17:20]MH_I2C_Read... [11:17:20]Read from MH i2c: E2 0B 00 79 16 00 5B 13 4C 59 20 6E CC 13 90 00 8B [11:17:20]RAPDU: 5B 13 4C 59 20 6E CC 13 90 00 [11:17:20]wFMCommunicate OK [11:17:20]SAM_PROTO_SignData done [11:17:20]FM_MakeSignedData done [11:17:20]CreateOFDProtocolMessage [11:17:20]wFMCommunicate request_size=4 [11:17:20]MH_SAM_APDU [11:17:20]CAPDU: 80 11 00 00 [11:17:20]Write to MH i2c: E2 08 00 7A 16 80 11 00 00 00 00 00 00 0A [11:17:20]Write i2c OK [11:17:20]MH_I2C_Read... [11:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:20]Read from MH i2c: E2 [11:17:20]MH_I2C_Read... [11:17:20]Read from MH i2c: E2 17 00 [11:17:20]MH_I2C_Read... [11:17:20]Read from MH i2c: E2 17 00 7A 16 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:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:17:20]wFMCommunicate OK [11:17:20]CreateOFDProtocolMessage done [11:17:20]OFDSenderStorePacket 67638 [11:17:20]StoreOFDPacket docnum=67638 [11:17: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 C2 04 01 CF 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 2F 00 00 00 F4 03 04 00 C1 3C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 FA 76 B9 E1 0F A3 5B 13 4C 59 20 6E CC 13 [11:17:20]CheckFolder [11:17:20]dirname=/storage/ofd_packets [11:17:20]CheckFolder done [11:17:20]ProducePacketName [11:17:20]name=ofd_packets/00067638 [11:17:20]NVStorageSaveData ofd_packets/00067638 [11:17:20]File name is /storage/ofd_packets/00067638 [11:17:20]Write 298 bytes [11:17:20]NVStorageSaveData done [11:17:20]OFDSenderStorePacket done [11:17:20]KKMCreateOFDPacket done [11:17:20]NVStorageSaveData kkm_last_timestamp [11:17:20]File name is /storage/kkm_last_timestamp [11:17:20]Write 4 bytes [11:17:20]NVStorageSaveData done [11:17:20]ExternCall_PrintAddStr [11:17:20]wPrintStart [11:17:20]Write to MH i2c: 01 00 00 7B 16 91 [11:17:20]Write i2c OK [11:17:20]MH_I2C_Read... [11:17:20]Read from MH i2c: 01 [11:17:20]MH_I2C_Read... [11:17:20]Read from MH i2c: 01 07 00 [11:17:20]MH_I2C_Read... [11:17:20]Read from MH i2c: 01 07 00 7B 16 00 00 00 00 00 FF 0F A6 [11:17:20]RasterBufferAndPrint [11:17:20]line Счет N : (1)507761 [11:17:20]line ИНН: 02508201610067 [11:17:20]line Контрольно-Кассовый Чек [11:17:20]line ПРОДАЖА [11:17:20]line ТРК (МРК, ГНК) : 11 [11:17:20]line Товар: 2710194210 [11:17:20]line ДТ-К-5 [11:17:20]line 13.390 * 74.70 [11:17:20]line = 1000.23 [11:17:20]line НДС 12% НСП 1% [11:17:20]line > о реализуемом товаре [11:17:20]line ИТОГО: 1000.23 [11:17:20]line НСП 1% : 8.85 [11:17:20]line НДС 12% : 106.22 [11:17:20]line Наличными: 0.00 [11:17:20]line Безнал.: 1000.23 [11:17:20]line Место: АЗС № 91 "Партнер Нефть" [11:17:20]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:17:20]line СНО: Общий режим [11:17:20]line Чек 47 17.05.2024 11:17 [11:17:20]line Смена: 358 ФФД: 1.0 [11:17:20]line ЗНМ: 0300000119 [11:17:20]line РНМ: 0000000000091845 [11:17:20]line Версия ККМ: 001 [11:17:20]line Платежная система: O! деньги [11:17:20]line ФМ: 0000000000871829 [11:17:20]line ФД: 67638 [11:17:20]line ФПД: 275387831619491 [11:17:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T111721&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67638&fm=275387831619491&tin=02508201610067®Number=0000000000091845&sum=100023 [11:17:20]OFD Sender: Processing packet 67638 [packets to send 35, broken 34] [11:17:20]ProducePacketName [11:17:20]name=ofd_packets/00067638 [11:17:20]OFD Sender: To server: pG, [11:17:20]CommunicateWithHost lk.salyk.kg:30040 [11:17:20]ConnectInit lk.salyk.kg [11:17:20]written 0, free lines is 4095 [11:17:20]Connected sock=10 [11:17: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 71 C2 04 01 CF 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 2F 00 00 00 F4 03 04 00 C1 3C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 FA 76 B9 E1 0F A3 5B 13 4C 59 20 6E CC 13 [11:17: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 29 95 47 00 BA EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 99 E4 46 66 B6 04 01 00 00 CE AD BC 58 38 3D 6A B6 [11:17:20]CommunicateWithHost err = 0 [11:17:20]CheckOFDResponse [11:17:20]1017 (14) - 77093643461234 [11:17:20]1041 (16) - 0000000000871829 [11:17:20]1040 (4) - 67638 [11:17:20]1012 (4) - 17.05.2024 05:01 [11:17:20]1206 (1) - 0 [11:17:20]OFD Sender: Remove packet 67638 [11:17:20]ProducePacketName [11:17:20]name=ofd_packets/00067638 [11:17:20]NVStorageDeleteData [11:17:21]Write to MH i2c: 01 00 00 A4 16 BA [11:17:21]Write i2c OK [11:17:21]MH_I2C_Read... [11:17:21]Read from MH i2c: 01 [11:17:21]MH_I2C_Read... [11:17:21]Read from MH i2c: 01 07 00 [11:17:21]MH_I2C_Read... [11:17:21]Read from MH i2c: 01 07 00 A4 16 00 00 00 00 00 EA 0C B7 [11:17:21]RasterBufferAndPrint [11:17:21]line [11:17:21]line [11:17:21]line [11:17:21]line [11:17:21]line [11:17:21]written 0, free lines is 3315 [11:17:21]MH_Cut [11:17:21]Write to MH i2c: D1 01 00 AB 16 01 93 [11:17:21]Write i2c OK [11:17:21]MH_I2C_Read... [11:17:21]Read from MH i2c: D1 [11:17:21]MH_I2C_Read... [11:17:21]Read from MH i2c: D1 01 00 [11:17:21]MH_I2C_Read... [11:17:21]Read from MH i2c: D1 01 00 AB 16 00 92 [11:17:21]Write to MH i2c: 01 00 00 AC 16 C2 [11:17:21]Write i2c OK [11:17:21]MH_I2C_Read... [11:17:21]OFD Sender: No OFD packet to send [11:17:21]*** Cut start [11:17:21]*** Purtial cut [11:17:21]*** Stage 1: CUTSNS_PIN = 1 [11:17:22]Read from MH i2c: 01 [11:17:22]MH_I2C_Read... [11:17:22]*** Stop cut motor [11:17:22]*** Cut end [11:17:22]Read from MH i2c: 01 07 00 [11:17:22]MH_I2C_Read... [11:17:22]Read from MH i2c: 01 07 00 AC 16 00 00 00 00 00 FF 0F D7 [11:17:22]process_action close_receipt done [11:17:22]requested_data is exist [11:17:22]produce_requested_data [11:17:22]requested_item fm.sn is exist - process it [11:17:22]wFMCommunicate request_size=4 [11:17:22]MH_SAM_APDU [11:17:22]CAPDU: 80 11 00 00 [11:17:22]Write to MH i2c: E2 08 00 AD 16 80 11 00 00 00 00 00 00 3D [11:17:22]Write i2c OK [11:17:22]MH_I2C_Read... [11:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:22]Read from MH i2c: E2 [11:17:22]MH_I2C_Read... [11:17:22]Read from MH i2c: E2 17 00 [11:17:22]MH_I2C_Read... [11:17:22]Read from MH i2c: E2 17 00 AD 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 93 [11:17: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:17:22]wFMCommunicate OK [11:17:22]requested_item fd.num is exist - process it [11:17:22]SAM_PROTO_GetFieldsCounters [11:17:22]wFMCommunicate request_size=4 [11:17:22]MH_SAM_APDU [11:17:22]CAPDU: 80 13 00 00 [11:17:22]Write to MH i2c: E2 08 00 AE 16 80 13 00 00 00 00 00 00 40 [11:17:22]Write i2c OK [11:17:22]MH_I2C_Read... [11:17:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:22]Read from MH i2c: E2 [11:17:22]MH_I2C_Read... [11:17:22]Read from MH i2c: E2 62 00 [11:17:22]MH_I2C_Read... [11:17:22]Read from MH i2c: E2 62 00 AE 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 36 08 01 00 0E 04 04 00 66 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 99 [11:17: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 36 08 01 00 0E 04 04 00 66 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:17:22]wFMCommunicate OK [11:17:22]SAM_PROTO_GetFieldsCounters done [11:17:22]requested_item shift.num is exist - process it [11:17:22]requested_item shift.opened is exist - process it [11:17:22]req_shift_opened [11:17:22]FM_GetShiftState [11:17:22]SAM_PROTO_GetShiftState [11:17:22]wFMCommunicate request_size=4 [11:17:22]MH_SAM_APDU [11:17:22]CAPDU: 80 13 01 00 [11:17:22]Write to MH i2c: E2 08 00 AF 16 80 13 01 00 00 00 00 00 42 [11:17:22]Write i2c OK [11:17:22]MH_I2C_Read... [11:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:22]Read from MH i2c: E2 [11:17:22]MH_I2C_Read... [11:17:22]Read from MH i2c: E2 0E 00 [11:17:22]MH_I2C_Read... [11:17:22]Read from MH i2c: E2 0E 00 AF 16 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 C8 [11:17:22]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:17:22]wFMCommunicate OK [11:17:22]SAM_PROTO_GetShiftState done [11:17:22]FM_GetShiftState done [11:17:22]req_shift_opened done [11:17:22]requested_item shift.open_date is exist - process it [11:17:22]req_shift_open_date [11:17:22]req_shift_open_date done [11:17:22]produce_requested_data done [11:17:22]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67638,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:17:22]process_action_free close_receipt [11:17:22]json_value_free [11:17:22]json_value_free done [11:17:22]process_json_proto returns [11:17:22]Send response to host [11:17:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67638,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:17:22]free response buf [11:17:22]execute_script done [11:17:22]execute_script returns [11:17:22]free content buf [11:17:22]Sock 9.Close socket [11:17:22]Sock 9.Thread stoped [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:20:58]accept exits with 7 [11:20:58]New connection [11:20:58]New thread 3067395428 created [11:20:58]Thread 3067538788 joined [11:20:58]Waiting for new connection... [11:20:58] Sock 7.Parse request [11:20:58]Sock 7.Check first char [11:20:58]Sock 7.First char is OK [11:20:58]request: POST /json_proto HTTP/1.0 [11:20:58]Method: POST [11:20:58]URL: /json_proto [11:20:58]Method is POST - this is cgi request [11:20:58]url: /json_proto [11:20:58]query_string will be loaded in cgi processing [11:20:58]execute_cgi json_proto POST (null) [11:20:58]execute_cgi path=json_proto method=POST [11:20:58]POST find Content-Length [11:20:58]Host: 172.17.41.195:8080 [11:20:58]Content-Length: 1179 [11:20:58]Content-Type: application/json [11:20:58] [11:20:58]POST finish read [11:20:58]Found Content-Length = 1179 [11:20: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507762\u000A17.05.2024 11:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:20:58]execute_script... [11:20: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507762\u000A17.05.2024 11:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:20:58]POST & json_proto [11:20:58]process_json_proto [11:20:58]json parsed OK: [11:20:58]protocol is kg_v1.0 [11:20:58]action value=print_text [11:20:58]process_action print_text [11:20:58]cmd_print_text [11:20:58]ExternCall_PrintAddStr [11:20:58]wPrintStart [11:20:58]Write to MH i2c: 01 00 00 B0 16 C6 [11:20:58]Write i2c OK [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: 01 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: 01 07 00 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: 01 07 00 B0 16 00 00 00 00 00 FF 0F DB [11:20:58]RasterBufferAndPrint [11:20:58]line *****ТОВАРНЫЙ ЧЕК***** [11:20:58]line АЗС-91 [11:20:58]line Партнер нефть [11:20:58]line 02508201610067 [11:20:58]line Кассир : Адишов И. [11:20:58]line Счет N : (1)507762 [11:20:58]line 17.05.2024 11:03 [11:20:58]line ПРОДАЖА [11:20:58]line ТРК (МРК, ГНК): 41 [11:20:58]line Вид ГСМ : 2710194210 [11:20:58]line ДТ-К-5 [11:20:58]line 13.390 x 74.70 [11:20:58]line ИТОГ: 1000.23 [11:20:58]line Тип оплаты: Талоны: Топливная Карта [11:20:58]line 02750 [11:20:58]line ______________________ [11:20:58]line (подпись) [11:20:58]written 0, free lines is 4095 [11:20:58]Write to MH i2c: 01 00 00 C4 16 DA [11:20:58]Write i2c OK [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: 01 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: 01 07 00 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: 01 07 00 C4 16 00 00 00 00 00 0D 0E FC [11:20:58]RasterBufferAndPrint [11:20:58]line [11:20:58]line [11:20:58]line [11:20:58]line [11:20:58]line [11:20:58]written 0, free lines is 3598 [11:20:58]MH_Cut [11:20:58]Write to MH i2c: D1 01 00 CB 16 01 B3 [11:20:58]Write i2c OK [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: D1 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: D1 01 00 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: D1 01 00 CB 16 00 B2 [11:20:58]Write to MH i2c: 01 00 00 CC 16 E2 [11:20:58]Write i2c OK [11:20:58]MH_I2C_Read... [11:20:59]*** Cut start [11:20:59]*** Purtial cut [11:20:59]*** CUTSNS_PIN = 0 [11:20:59]*** Stage 1: CUTSNS_PIN = 1 [11:21:01]Read from MH i2c: 01 [11:21:01]MH_I2C_Read... [11:21:01]*** Stop cut motor [11:21:01]*** Cut end [11:21:01]Read from MH i2c: 01 07 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: 01 07 00 CC 16 00 00 00 00 00 FF 0F F7 [11:21:01]process_action print_text done [11:21:01]requested_data is exist [11:21:01]produce_requested_data [11:21:01]requested_item fm.sn is exist - process it [11:21:01]wFMCommunicate request_size=4 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 11 00 00 [11:21:01]Write to MH i2c: E2 08 00 CD 16 80 11 00 00 00 00 00 00 5D [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 17 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 17 00 CD 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B3 [11:21:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:21:01]wFMCommunicate OK [11:21:01]requested_item fd.num is exist - process it [11:21:01]SAM_PROTO_GetFieldsCounters [11:21:01]wFMCommunicate request_size=4 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 13 00 00 [11:21:01]Write to MH i2c: E2 08 00 CE 16 80 13 00 00 00 00 00 00 60 [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 62 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 62 00 CE 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 36 08 01 00 0E 04 04 00 66 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 B9 [11:21: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 36 08 01 00 0E 04 04 00 66 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:21:01]wFMCommunicate OK [11:21:01]SAM_PROTO_GetFieldsCounters done [11:21:01]requested_item shift.num is exist - process it [11:21:01]requested_item shift.opened is exist - process it [11:21:01]req_shift_opened [11:21:01]FM_GetShiftState [11:21:01]SAM_PROTO_GetShiftState [11:21:01]wFMCommunicate request_size=4 [11:21:01]MH_SAM_APDU [11:21:01]CAPDU: 80 13 01 00 [11:21:01]Write to MH i2c: E2 08 00 CF 16 80 13 01 00 00 00 00 00 62 [11:21:01]Write i2c OK [11:21:01]MH_I2C_Read... [11:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:01]Read from MH i2c: E2 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 0E 00 [11:21:01]MH_I2C_Read... [11:21:01]Read from MH i2c: E2 0E 00 CF 16 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 E8 [11:21:01]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:21:01]wFMCommunicate OK [11:21:01]SAM_PROTO_GetShiftState done [11:21:01]FM_GetShiftState done [11:21:01]req_shift_opened done [11:21:01]requested_item shift.open_date is exist - process it [11:21:01]req_shift_open_date [11:21:01]req_shift_open_date done [11:21:01]produce_requested_data done [11:21:01]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67638,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:21:01]process_action_free print_text [11:21:01]json_value_free [11:21:01]json_value_free done [11:21:01]process_json_proto returns [11:21:01]Send response to host [11:21:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67638,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:21:01]free response buf [11:21:01]execute_script done [11:21:01]execute_script returns [11:21:01]free content buf [11:21:01]Sock 7.Close socket [11:21:01]Sock 7.Thread stoped [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:55]accept exits with 9 [11:21:55]New connection [11:21:55]New thread 3067538788 created [11:21:55]Thread 3067395428 joined [11:21:55]Waiting for new connection... [11:21:55] Sock 9.Parse request [11:21:55]Sock 9.Check first char [11:21:55]Sock 9.First char is OK [11:21:55]request: POST /json_proto HTTP/1.0 [11:21:55]Method: POST [11:21:55]URL: /json_proto [11:21:55]Method is POST - this is cgi request [11:21:55]url: /json_proto [11:21:55]query_string will be loaded in cgi processing [11:21:55]execute_cgi json_proto POST (null) [11:21:55]execute_cgi path=json_proto method=POST [11:21:55]POST find Content-Length [11:21:55]Host: 172.17.41.195:8080 [11:21:55]Content-Length: 1182 [11:21:55]Content-Type: application/json [11:21:55] [11:21:55]POST finish read [11:21:55]Found Content-Length = 1182 [11:21: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507763\u000A17.05.2024 11:04\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 24.420 x 66.80\u000A\u0418\u0422\u041E\u0413: 1631.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:21:55]execute_script... [11:21: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507763\u000A17.05.2024 11:04\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 24.420 x 66.80\u000A\u0418\u0422\u041E\u0413: 1631.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:21:55]POST & json_proto [11:21:55]process_json_proto [11:21:55]json parsed OK: [11:21:55]protocol is kg_v1.0 [11:21:55]action value=print_text [11:21:55]process_action print_text [11:21:55]cmd_print_text [11:21:55]ExternCall_PrintAddStr [11:21:55]wPrintStart [11:21:55]Write to MH i2c: 01 00 00 D0 16 E6 [11:21:55]Write i2c OK [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: 01 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: 01 07 00 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: 01 07 00 D0 16 00 00 00 00 00 FF 0F FB [11:21:55]RasterBufferAndPrint [11:21:55]line *****ТОВАРНЫЙ ЧЕК***** [11:21:55]line АЗС-91 [11:21:55]line Партнер нефть [11:21:55]line 02508201610067 [11:21:55]line Кассир : Адишов И. [11:21:55]line Счет N : (1)507763 [11:21:55]line 17.05.2024 11:04 [11:21:55]line ПРОДАЖА [11:21:55]line ТРК (МРК, ГНК): 23 [11:21:55]line Вид ГСМ : 2710124130 [11:21:55]line Аи-92-К-5 [11:21:55]line 24.420 x 66.80 [11:21:55]line ИТОГ: 1631.26 [11:21:55]line Тип оплаты: Талоны: Топливная Карта [11:21:55]line 02750 [11:21:55]line ______________________ [11:21:55]line (подпись) [11:21:55]written 0, free lines is 4095 [11:21:56]Write to MH i2c: 01 00 00 E4 16 FA [11:21:56]Write i2c OK [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: 01 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: 01 07 00 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: 01 07 00 E4 16 00 00 00 00 00 10 0E 1F [11:21:56]RasterBufferAndPrint [11:21:56]line [11:21:56]line [11:21:56]line [11:21:56]line [11:21:56]line [11:21:56]written 0, free lines is 3601 [11:21:56]MH_Cut [11:21:56]Write to MH i2c: D1 01 00 EB 16 01 D3 [11:21:56]Write i2c OK [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: D1 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: D1 01 00 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: D1 01 00 EB 16 00 D2 [11:21:56]Write to MH i2c: 01 00 00 EC 16 02 [11:21:56]Write i2c OK [11:21:56]MH_I2C_Read... [11:21:56]*** Cut start [11:21:56]*** Purtial cut [11:21:56]*** Stage 1: CUTSNS_PIN = 1 [11:21:56]OFD Sender: No OFD packet to send [11:21:56]Read from MH i2c: 01 [11:21:56]MH_I2C_Read... [11:21:56]*** Stop cut motor [11:21:56]*** Cut end [11:21:56]Read from MH i2c: 01 07 00 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: 01 07 00 EC 16 00 00 00 00 00 FF 0F 17 [11:21:56]process_action print_text done [11:21:56]requested_data is exist [11:21:56]produce_requested_data [11:21:56]requested_item fm.sn is exist - process it [11:21:56]wFMCommunicate request_size=4 [11:21:56]MH_SAM_APDU [11:21:56]CAPDU: 80 11 00 00 [11:21:56]Write to MH i2c: E2 08 00 ED 16 80 11 00 00 00 00 00 00 7D [11:21:56]Write i2c OK [11:21:56]MH_I2C_Read... [11:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:56]Read from MH i2c: E2 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: E2 17 00 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: E2 17 00 ED 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D3 [11: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 [11:21:56]wFMCommunicate OK [11:21:56]requested_item fd.num is exist - process it [11:21:56]SAM_PROTO_GetFieldsCounters [11:21:56]wFMCommunicate request_size=4 [11:21:56]MH_SAM_APDU [11:21:56]CAPDU: 80 13 00 00 [11:21:56]Write to MH i2c: E2 08 00 EE 16 80 13 00 00 00 00 00 00 80 [11:21:56]Write i2c OK [11:21:56]MH_I2C_Read... [11:21:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:57]Read from MH i2c: E2 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: E2 62 00 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: E2 62 00 EE 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 36 08 01 00 0E 04 04 00 66 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 D9 [11: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 36 08 01 00 0E 04 04 00 66 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:21:57]wFMCommunicate OK [11:21:57]SAM_PROTO_GetFieldsCounters done [11:21:57]requested_item shift.num is exist - process it [11:21:57]requested_item shift.opened is exist - process it [11:21:57]req_shift_opened [11:21:57]FM_GetShiftState [11:21:57]SAM_PROTO_GetShiftState [11:21:57]wFMCommunicate request_size=4 [11:21:57]MH_SAM_APDU [11:21:57]CAPDU: 80 13 01 00 [11:21:57]Write to MH i2c: E2 08 00 EF 16 80 13 01 00 00 00 00 00 82 [11:21:57]Write i2c OK [11:21:57]MH_I2C_Read... [11:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:57]Read from MH i2c: E2 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: E2 0E 00 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: E2 0E 00 EF 16 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 08 [11:21:57]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:21:57]wFMCommunicate OK [11:21:57]SAM_PROTO_GetShiftState done [11:21:57]FM_GetShiftState done [11:21:57]req_shift_opened done [11:21:57]requested_item shift.open_date is exist - process it [11:21:57]req_shift_open_date [11:21:57]req_shift_open_date done [11:21:57]produce_requested_data done [11:21:57]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67638,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:21:57]process_action_free print_text [11:21:57]json_value_free [11:21:57]json_value_free done [11:21:57]process_json_proto returns [11:21:57]Send response to host [11:21:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67638,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:21:57]free response buf [11:21:57]execute_script done [11:21:57]execute_script returns [11:21:57]free content buf [11:21:57]Sock 9.Close socket [11:21:57]Sock 9.Thread stoped [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:27]accept exits with 7 [11:22:27]New connection [11:22:27]New thread 3067395428 created [11:22:27]Thread 3067538788 joined [11:22:27]Waiting for new connection... [11:22:27] Sock 7.Parse request [11:22:27]Sock 7.Check first char [11:22:27]Sock 7.First char is OK [11:22:27]request: POST /json_proto HTTP/1.0 [11:22:27]Method: POST [11:22:27]URL: /json_proto [11:22:27]Method is POST - this is cgi request [11:22:27]url: /json_proto [11:22:27]query_string will be loaded in cgi processing [11:22:27]execute_cgi json_proto POST (null) [11:22:27]execute_cgi path=json_proto method=POST [11:22:27]POST find Content-Length [11:22:27]Host: 172.17.41.195:8080 [11:22:27]Content-Length: 675 [11:22:27]Content-Type: application/json [11:22:27] [11:22:27]POST finish read [11:22:27]Found Content-Length = 675 [11:22:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507764", "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" : 46.480, "sum" : 3151.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 3151.00, "payments": [ { "type": 0, "sum" : 3151.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:27]execute_script... [11:22: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)507764", "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" : 46.480, "sum" : 3151.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 3151.00, "payments": [ { "type": 0, "sum" : 3151.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:27]POST & json_proto [11:22:27]process_json_proto [11:22:27]json parsed OK: [11:22:27]protocol is kg_v1.0 [11:22:27]action value=close_receipt [11:22:27]process_action close_receipt [11:22:27]cmd_close_receipt [11:22:27]MH_GetDate [11:22:27]Write to MH i2c: F0 00 00 F0 16 F5 [11:22:27]Write i2c OK [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: F0 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: F0 09 00 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: F0 09 00 F0 16 00 F6 3D 47 66 FC 21 6F 64 CE [11:22:27]GetLastDocTimeStamp 1715944641 [11:22:27]current date 1715944950 [11:22:27]FM_GetShiftState [11:22:27]SAM_PROTO_GetShiftState [11:22:27]wFMCommunicate request_size=4 [11:22:27]MH_SAM_APDU [11:22:27]CAPDU: 80 13 01 00 [11:22:27]Write to MH i2c: E2 08 00 F1 16 80 13 01 00 00 00 00 00 84 [11:22:27]Write i2c OK [11:22:27]MH_I2C_Read... [11:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:27]Read from MH i2c: E2 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 0E 00 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: E2 0E 00 F1 16 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 0A [11:22:27]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:22:27]wFMCommunicate OK [11:22:27]SAM_PROTO_GetShiftState done [11:22:27]FM_GetShiftState done [11:22:27]opened in 1715905068 [11:22:27]opened+sec_in_day 1715991468 [11:22:27]quantity*price = 315134 [11:22:27]sum+1 = 315135 [11:22:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 3151.00 Внесено: 6000.00 СДАЧА: 2849.00 НСП 1% : 27.89 НДС 12% : 334.66 Наличными: 3151.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 48 17.05.2024 11:22 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67639 ФПД: 236849805617083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T112231&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67639&fm=236849805617083&tin=02508201610067®Number=0000000000091845&sum=315100 [11:22:29]StoreToDocumentArchive [11:22:29]shift 358 fd 67639 [11:22:29]save to /storage/0358/doc_00067639 [11:22:29]save last doc name /storage/0358/doc_00067639 to /storage/kkm_last_doc_name [11:22:29]save OK [11:22:29]Clear old archive folders... [11:22:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:22:29]tlvbuf is 015D5400 [11:22:29]SAM_PROTO_ClearQueue [11:22:29]wFMCommunicate request_size=4 [11:22:29]MH_SAM_APDU [11:22:29]CAPDU: 80 09 00 00 [11:22:29]Write to MH i2c: E2 08 00 FE 16 80 09 00 00 00 00 00 00 86 [11:22:29]Write i2c OK [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 [11:22:29]MH_I2C_Read... [11:22:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:29]Read from MH i2c: E2 03 00 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 03 00 FE 16 00 90 00 88 [11:22:29]RAPDU: 90 00 [11:22:29]wFMCommunicate OK [11:22:29]SAM_PROTO_ClearQueue done [11:22:29]KKMCreateOFDPacket [11:22:29]OFDProtocolAddRootSTLVToBuf [11:22:29]FM_MakeSignedData [11:22:29]FM_MakeSignedData [11:22:29]SAM_PROTO_SignData [11:22:29]wFMCommunicate request_size=4 [11:22:29]MH_SAM_APDU [11:22:29]CAPDU: 80 0D 01 02 [11:22:29]Write to MH i2c: E2 08 00 FF 16 80 0D 01 02 00 00 00 00 8E [11:22:29]Write i2c OK [11:22:29]MH_I2C_Read... [11:22:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:29]Read from MH i2c: E2 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 03 00 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 03 00 FF 16 00 90 00 89 [11:22:29]RAPDU: 90 00 [11:22:29]wFMCommunicate OK [11:22:29]wFMCommunicate request_size=255 [11:22:29]MH_SAM_APDU [11:22: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 90 B5 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FE CE 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC CE 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 82 00 00 00 00 07 04 06 00 DC CE 04 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 F7 3D 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 [11:22:29]Write to MH i2c: E2 02 01 00 17 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 90 B5 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FE CE 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC CE 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 82 00 00 00 00 07 04 06 00 DC CE 04 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 F7 3D 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 00 00 B2 [11:22:29]Write i2c OK [11:22:29]MH_I2C_Read... [11:22:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:29]Read from MH i2c: E2 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 03 00 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 03 00 00 17 00 90 00 8B [11:22:29]RAPDU: 90 00 [11:22:29]wFMCommunicate OK [11:22:29]wFMCommunicate request_size=11 [11:22:29]MH_SAM_APDU [11:22:29]CAPDU: 80 0D 02 02 06 D7 69 E4 87 67 BB [11:22:29]Write to MH i2c: E2 0E 00 01 17 80 0D 02 02 06 00 D7 69 E4 87 67 BB 00 00 6B [11:22:29]Write i2c OK [11:22:29]MH_I2C_Read... [11:22:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:29]Read from MH i2c: E2 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 03 00 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 03 00 01 17 00 90 00 8C [11:22:29]RAPDU: 90 00 [11:22:29]wFMCommunicate OK [11:22:29]wFMCommunicate request_size=4 [11:22:29]MH_SAM_APDU [11:22:29]CAPDU: 80 0D 03 02 [11:22:29]Write to MH i2c: E2 08 00 02 17 80 0D 03 02 00 00 00 00 94 [11:22:29]Write i2c OK [11:22:29]MH_I2C_Read... [11:22:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:29]Read from MH i2c: E2 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 0B 00 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 0B 00 02 17 00 00 7F DC C8 29 C1 91 F7 90 00 2A [11:22:29]RAPDU: 00 7F DC C8 29 C1 91 F7 90 00 [11:22:29]wFMCommunicate OK [11:22:29]SAM_PROTO_SignData done [11:22:29]FM_MakeSignedData done [11:22:29]CreateOFDProtocolMessage [11:22:29]wFMCommunicate request_size=4 [11:22:29]MH_SAM_APDU [11:22:29]CAPDU: 80 11 00 00 [11:22:29]Write to MH i2c: E2 08 00 03 17 80 11 00 00 00 00 00 00 94 [11:22:29]Write i2c OK [11:22:29]MH_I2C_Read... [11:22:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:29]Read from MH i2c: E2 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 17 00 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: E2 17 00 03 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EA [11:22:29]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:29]wFMCommunicate OK [11:22:29]CreateOFDProtocolMessage done [11:22:29]OFDSenderStorePacket 67639 [11:22:29]StoreOFDPacket docnum=67639 [11:22: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 10 01 00 00 CC A9 08 01 93 EB 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 90 B5 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FE CE 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC CE 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 82 00 00 00 00 07 04 06 00 DC CE 04 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 F7 3D 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 D7 69 E4 87 67 BB 00 7F DC C8 29 C1 91 F7 [11:22:29]CheckFolder [11:22:29]dirname=/storage/ofd_packets [11:22:29]CheckFolder done [11:22:29]ProducePacketName [11:22:29]name=ofd_packets/00067639 [11:22:29]NVStorageSaveData ofd_packets/00067639 [11:22:29]File name is /storage/ofd_packets/00067639 [11:22:29]Write 302 bytes [11:22:29]NVStorageSaveData done [11:22:29]OFDSenderStorePacket done [11:22:29]KKMCreateOFDPacket done [11:22:29]NVStorageSaveData kkm_last_timestamp [11:22:29]File name is /storage/kkm_last_timestamp [11:22:29]Write 4 bytes [11:22:29]OFD Sender: Processing packet 67639 [packets to send 35, broken 34] [11:22:29]ProducePacketName [11:22:29]name=ofd_packets/00067639 [11:22:29]OFD Sender: To server: pG, [11:22:29]CommunicateWithHost lk.salyk.kg:30040 [11:22:29]ConnectInit lk.salyk.kg [11:22:29]NVStorageSaveData done [11:22:29]ExternCall_PrintAddStr [11:22:29]wPrintStart [11:22:29]Write to MH i2c: 01 00 00 04 17 1B [11:22:29]Write i2c OK [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: 01 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: 01 07 00 [11:22:29]MH_I2C_Read... [11:22:29]Read from MH i2c: 01 07 00 04 17 00 00 00 00 00 FF 0F 30 [11:22:29]RasterBufferAndPrint [11:22:29]line Счет N : (1)507764 [11:22:29]line ИНН: 02508201610067 [11:22:29]line Контрольно-Кассовый Чек [11:22:29]line ПРОДАЖА [11:22:29]line ТРК (МРК, ГНК) : 12 [11:22:29]line Товар: 2710124130 [11:22:29]line Super-92-К-5 [11:22:29]line 46.480 * 67.80 [11:22:29]line = 3151.34 [11:22:29]line НДС 12% НСП 1% [11:22:29]line > о реализуемом товаре [11:22:29]line ОКРУГЛЕНИЕ: -0.34 [11:22:29]line ИТОГО: 3151.00 [11:22:29]line Внесено: 6000.00 [11:22:29]line СДАЧА: 2849.00 [11:22:29]line НСП 1% : 27.89 [11:22:29]line НДС 12% : 334.66 [11:22:29]line Наличными: 3151.00 [11:22:29]line Безнал.: 0.00 [11:22:29]line Место: АЗС № 91 "Партнер Нефть" [11:22:29]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:22:29]line СНО: Общий режим [11:22:29]line Чек 48 17.05.2024 11:22 [11:22:29]line Смена: 358 ФФД: 1.0 [11:22:29]line ЗНМ: 0300000119 [11:22:29]line РНМ: 0000000000091845 [11:22:29]line Версия ККМ: 001 [11:22:29]line ФМ: 0000000000871829 [11:22:29]line ФД: 67639 [11:22:29]line ФПД: 236849805617083 [11:22:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T112231&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67639&fm=236849805617083&tin=02508201610067®Number=0000000000091845&sum=315100 [11:22:29]Connected sock=11 [11:22: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 CC A9 08 01 93 EB 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 90 B5 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FE CE 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC CE 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 82 00 00 00 00 07 04 06 00 DC CE 04 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 F7 3D 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 D7 69 E4 87 67 BB 00 7F DC C8 29 C1 91 F7 [11:22:29]written 0, free lines is 4095 [11:22: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 CA 08 47 00 80 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 37 08 01 00 F4 03 04 00 CF E5 46 66 B6 04 01 00 00 AB A2 F2 CE C0 4B F9 56 [11:22:30]CommunicateWithHost err = 0 [11:22:30]CheckOFDResponse [11:22:30]1017 (14) - 77093643461234 [11:22:30]1041 (16) - 0000000000871829 [11:22:30]1040 (4) - 67639 [11:22:30]1012 (4) - 17.05.2024 05:06 [11:22:30]1206 (1) - 0 [11:22:30]OFD Sender: Remove packet 67639 [11:22:30]ProducePacketName [11:22:30]name=ofd_packets/00067639 [11:22:30]NVStorageDeleteData [11:22:30]Write to MH i2c: 01 00 00 2E 17 45 [11:22:30]Write i2c OK [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: 01 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: 01 07 00 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: 01 07 00 2E 17 00 00 00 00 00 D8 0C 30 [11:22:30]RasterBufferAndPrint [11:22:30]line [11:22:30]line [11:22:30]line [11:22:30]line [11:22:30]line [11:22:30]written 0, free lines is 3297 [11:22:30]MH_Cut [11:22:30]Write to MH i2c: D1 01 00 35 17 01 1E [11:22:30]Write i2c OK [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: D1 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: D1 01 00 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: D1 01 00 35 17 00 1D [11:22:30]Write to MH i2c: 01 00 00 36 17 4D [11:22:30]Write i2c OK [11:22:30]MH_I2C_Read... [11:22:30]OFD Sender: No OFD packet to send [11:22:31]*** Cut start [11:22:31]*** Purtial cut [11:22:31]*** CUTSNS_PIN = 0 [11:22:31]*** Stage 1: CUTSNS_PIN = 1 [11:22:33]Read from MH i2c: 01 [11:22:33]MH_I2C_Read... [11:22:33]*** Stop cut motor [11:22:33]*** Cut end [11:22:33]Read from MH i2c: 01 07 00 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: 01 07 00 36 17 00 00 00 00 00 FF 0F 62 [11:22:33]process_action close_receipt done [11:22:33]requested_data is exist [11:22:33]produce_requested_data [11:22:33]requested_item fm.sn is exist - process it [11:22:33]wFMCommunicate request_size=4 [11:22:33]MH_SAM_APDU [11:22:33]CAPDU: 80 11 00 00 [11:22:33]Write to MH i2c: E2 08 00 37 17 80 11 00 00 00 00 00 00 C8 [11:22:33]Write i2c OK [11:22:33]MH_I2C_Read... [11:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:33]Read from MH i2c: E2 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: E2 17 00 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: E2 17 00 37 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1E [11: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 [11:22:33]wFMCommunicate OK [11:22:33]requested_item fd.num is exist - process it [11:22:33]SAM_PROTO_GetFieldsCounters [11:22:33]wFMCommunicate request_size=4 [11:22:33]MH_SAM_APDU [11:22:33]CAPDU: 80 13 00 00 [11:22:33]Write to MH i2c: E2 08 00 38 17 80 13 00 00 00 00 00 00 CB [11:22:33]Write i2c OK [11:22:33]MH_I2C_Read... [11:22:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:33]Read from MH i2c: E2 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: E2 62 00 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: E2 62 00 38 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 37 08 01 00 0E 04 04 00 66 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 28 [11:22: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 37 08 01 00 0E 04 04 00 66 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:22:33]wFMCommunicate OK [11:22:33]SAM_PROTO_GetFieldsCounters done [11:22:33]requested_item shift.num is exist - process it [11:22:33]requested_item shift.opened is exist - process it [11:22:33]req_shift_opened [11:22:33]FM_GetShiftState [11:22:33]SAM_PROTO_GetShiftState [11:22:33]wFMCommunicate request_size=4 [11:22:33]MH_SAM_APDU [11:22:33]CAPDU: 80 13 01 00 [11:22:33]Write to MH i2c: E2 08 00 39 17 80 13 01 00 00 00 00 00 CD [11:22:33]Write i2c OK [11:22:33]MH_I2C_Read... [11:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:33]Read from MH i2c: E2 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: E2 0E 00 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: E2 0E 00 39 17 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 53 [11:22:33]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:22:33]wFMCommunicate OK [11:22:33]SAM_PROTO_GetShiftState done [11:22:33]FM_GetShiftState done [11:22:33]req_shift_opened done [11:22:33]requested_item shift.open_date is exist - process it [11:22:33]req_shift_open_date [11:22:33]req_shift_open_date done [11:22:33]produce_requested_data done [11:22:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67639,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:22:33]process_action_free close_receipt [11:22:33]json_value_free [11:22:33]json_value_free done [11:22:33]process_json_proto returns [11:22:33]Send response to host [11:22:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67639,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:22:33]free response buf [11:22:33]execute_script done [11:22:33]execute_script returns [11:22:33]free content buf [11:22:33]Sock 7.Close socket [11:22:33]Sock 7.Thread stoped [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:05]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:20]OFD Sender: No OFD packet to send [11:23:25]OFD Sender: No OFD packet to send [11:23:30]OFD Sender: No OFD packet to send [11:23:35]OFD Sender: No OFD packet to send [11:23:40]OFD Sender: No OFD packet to send [11:23:45]OFD Sender: No OFD packet to send [11:23:50]OFD Sender: No OFD packet to send [11:23:55]OFD Sender: No OFD packet to send [11:24:00]OFD Sender: No OFD packet to send [11:24:05]OFD Sender: No OFD packet to send [11:24:10]OFD Sender: No OFD packet to send [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:46]accept exits with 9 [11:27:46]New connection [11:27:46]New thread 3067538788 created [11:27:46]Thread 3067395428 joined [11:27:46]Waiting for new connection... [11:27:46] Sock 9.Parse request [11:27:46]Sock 9.Check first char [11:27:46]Sock 9.First char is OK [11:27:46]request: POST /json_proto HTTP/1.0 [11:27:46]Method: POST [11:27:46]URL: /json_proto [11:27:46]Method is POST - this is cgi request [11:27:46]url: /json_proto [11:27:46]query_string will be loaded in cgi processing [11:27:46]execute_cgi json_proto POST (null) [11:27:46]execute_cgi path=json_proto method=POST [11:27:46]POST find Content-Length [11:27:46]Host: 172.17.41.195:8080 [11:27:46]Content-Length: 1144 [11:27:46]Content-Type: application/json [11:27:46] [11:27:46]POST finish read [11:27:46]Found Content-Length = 1144 [11:27: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507766\u000A17.05.2024 11:10\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 15.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1002.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106118\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:46]execute_script... [11:27: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507766\u000A17.05.2024 11:10\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 15.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1002.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106118\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:46]POST & json_proto [11:27:46]process_json_proto [11:27:46]json parsed OK: [11:27:46]protocol is kg_v1.0 [11:27:46]action value=print_text [11:27:46]process_action print_text [11:27:46]cmd_print_text [11:27:46]ExternCall_PrintAddStr [11:27:46]wPrintStart [11:27:46]Write to MH i2c: 01 00 00 3A 17 51 [11:27:46]Write i2c OK [11:27:46]MH_I2C_Read... [11:27:46]Read from MH i2c: 01 [11:27:46]MH_I2C_Read... [11:27:46]Read from MH i2c: 01 07 00 [11:27:46]MH_I2C_Read... [11:27:46]Read from MH i2c: 01 07 00 3A 17 00 00 00 00 00 FF 0F 66 [11:27:46]RasterBufferAndPrint [11:27:46]line *****ТОВАРНЫЙ ЧЕК***** [11:27:46]line АЗС-91 [11:27:46]line Партнер нефть [11:27:46]line 02508201610067 [11:27:46]line Кассир : Адишов И. [11:27:46]line Счет N : (1)507766 [11:27:46]line 17.05.2024 11:10 [11:27:46]line ПРОДАЖА [11:27:46]line ТРК (МРК, ГНК): 43 [11:27:46]line Вид ГСМ : 2710124130 [11:27:46]line Аи-92-К-5 [11:27:46]line 15.000 x 66.80 [11:27:46]line ИТОГ: 1002.00 [11:27:46]line Тип оплаты: Талоны: ТК ГПНА Online [11:27:46]line 30106118 [11:27:46]line ______________________ [11:27:46]line (подпись) [11:27:46]written 0, free lines is 4095 [11:27:47]Write to MH i2c: 01 00 00 4E 17 65 [11:27:47]Write i2c OK [11:27:47]MH_I2C_Read... [11:27:47]Read from MH i2c: 01 [11:27:47]MH_I2C_Read... [11:27:47]Read from MH i2c: 01 07 00 [11:27:47]MH_I2C_Read... [11:27:47]Read from MH i2c: 01 07 00 4E 17 00 00 00 00 00 0E 0E 88 [11:27:47]RasterBufferAndPrint [11:27:47]line [11:27:47]line [11:27:47]line [11:27:47]line [11:27:47]line [11:27:47]written 0, free lines is 3600 [11:27:47]MH_Cut [11:27:47]Write to MH i2c: D1 01 00 55 17 01 3E [11:27:47]Write i2c OK [11:27:47]MH_I2C_Read... [11:27:47]Read from MH i2c: D1 [11:27:47]MH_I2C_Read... [11:27:47]Read from MH i2c: D1 01 00 [11:27:47]MH_I2C_Read... [11:27:47]Read from MH i2c: D1 01 00 55 17 00 3D [11:27:47]Write to MH i2c: 01 00 00 56 17 6D [11:27:47]Write i2c OK [11:27:47]MH_I2C_Read... [11:27:47]*** Cut start [11:27:47]*** Purtial cut [11:27:47]*** Stage 1: CUTSNS_PIN = 1 [11:27:47]Read from MH i2c: 01 [11:27:47]MH_I2C_Read... [11:27:47]*** Stop cut motor [11:27:47]*** Cut end [11:27:47]Read from MH i2c: 01 07 00 [11:27:47]MH_I2C_Read... [11:27:47]Read from MH i2c: 01 07 00 56 17 00 00 00 00 00 FF 0F 82 [11:27:47]process_action print_text done [11:27:47]requested_data is exist [11:27:47]produce_requested_data [11:27:47]requested_item fm.sn is exist - process it [11:27:47]wFMCommunicate request_size=4 [11:27:47]MH_SAM_APDU [11:27:47]CAPDU: 80 11 00 00 [11:27:47]Write to MH i2c: E2 08 00 57 17 80 11 00 00 00 00 00 00 E8 [11:27:47]Write i2c OK [11:27:47]MH_I2C_Read... [11:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:48]Read from MH i2c: E2 [11:27:48]MH_I2C_Read... [11:27:48]Read from MH i2c: E2 17 00 [11:27:48]MH_I2C_Read... [11:27:48]Read from MH i2c: E2 17 00 57 17 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: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 [11:27:48]wFMCommunicate OK [11:27:48]requested_item fd.num is exist - process it [11:27:48]SAM_PROTO_GetFieldsCounters [11:27:48]wFMCommunicate request_size=4 [11:27:48]MH_SAM_APDU [11:27:48]CAPDU: 80 13 00 00 [11:27:48]Write to MH i2c: E2 08 00 58 17 80 13 00 00 00 00 00 00 EB [11:27:48]Write i2c OK [11:27:48]MH_I2C_Read... [11:27:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:48]Read from MH i2c: E2 [11:27:48]MH_I2C_Read... [11:27:48]Read from MH i2c: E2 62 00 [11:27:48]MH_I2C_Read... [11:27:48]Read from MH i2c: E2 62 00 58 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 37 08 01 00 0E 04 04 00 66 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 48 [11:27: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 37 08 01 00 0E 04 04 00 66 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:27:48]wFMCommunicate OK [11:27:48]SAM_PROTO_GetFieldsCounters done [11:27:48]requested_item shift.num is exist - process it [11:27:48]requested_item shift.opened is exist - process it [11:27:48]req_shift_opened [11:27:48]FM_GetShiftState [11:27:48]SAM_PROTO_GetShiftState [11:27:48]wFMCommunicate request_size=4 [11:27:48]MH_SAM_APDU [11:27:48]CAPDU: 80 13 01 00 [11:27:48]Write to MH i2c: E2 08 00 59 17 80 13 01 00 00 00 00 00 ED [11:27:48]Write i2c OK [11:27:48]MH_I2C_Read... [11:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:48]Read from MH i2c: E2 [11:27:48]MH_I2C_Read... [11:27:48]Read from MH i2c: E2 0E 00 [11:27:48]MH_I2C_Read... [11:27:48]Read from MH i2c: E2 0E 00 59 17 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 73 [11:27:48]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:27:48]wFMCommunicate OK [11:27:48]SAM_PROTO_GetShiftState done [11:27:48]FM_GetShiftState done [11:27:48]req_shift_opened done [11:27:48]requested_item shift.open_date is exist - process it [11:27:48]req_shift_open_date [11:27:48]req_shift_open_date done [11:27:48]produce_requested_data done [11:27:48]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67639,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:27:48]process_action_free print_text [11:27:48]json_value_free [11:27:48]json_value_free done [11:27:48]process_json_proto returns [11:27:48]Send response to host [11:27:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67639,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:27:48]free response buf [11:27:48]execute_script done [11:27:48]execute_script returns [11:27:48]free content buf [11:27:48]Sock 9.Close socket [11:27:48]Sock 9.Thread stoped [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:13]accept exits with 7 [11:28:13]New connection [11:28:13]New thread 3067395428 created [11:28:13]Thread 3067538788 joined [11:28:13]Waiting for new connection... [11:28:13] Sock 7.Parse request [11:28:13]Sock 7.Check first char [11:28:13]Sock 7.First char is OK [11:28:13]request: POST /json_proto HTTP/1.0 [11:28:13]Method: POST [11:28:13]URL: /json_proto [11:28:13]Method is POST - this is cgi request [11:28:13]url: /json_proto [11:28:13]query_string will be loaded in cgi processing [11:28:13]execute_cgi json_proto POST (null) [11:28:13]execute_cgi path=json_proto method=POST [11:28:13]POST find Content-Length [11:28:13]Host: 172.17.41.195:8080 [11:28:13]Content-Length: 1144 [11:28:13]Content-Type: application/json [11:28:13] [11:28:13]POST finish read [11:28:13]Found Content-Length = 1144 [11:28:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507765\u000A17.05.2024 11:10\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30106126\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:13]execute_script... [11:28:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507765\u000A17.05.2024 11:10\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30106126\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:13]POST & json_proto [11:28:13]process_json_proto [11:28:13]json parsed OK: [11:28:13]protocol is kg_v1.0 [11:28:13]action value=print_text [11:28:13]process_action print_text [11:28:13]cmd_print_text [11:28:13]ExternCall_PrintAddStr [11:28:13]wPrintStart [11:28:13]Write to MH i2c: 01 00 00 5A 17 71 [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: 01 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: 01 07 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: 01 07 00 5A 17 00 00 00 00 00 FF 0F 86 [11:28:13]RasterBufferAndPrint [11:28:13]line *****ТОВАРНЫЙ ЧЕК***** [11:28:13]line АЗС-91 [11:28:13]line Партнер нефть [11:28:13]line 02508201610067 [11:28:13]line Кассир : Адишов И. [11:28:13]line Счет N : (1)507765 [11:28:13]line 17.05.2024 11:10 [11:28:13]line ПРОДАЖА [11:28:13]line ТРК (МРК, ГНК): 33 [11:28:13]line Вид ГСМ : 2710124130 [11:28:13]line Аи-92-К-5 [11:28:13]line 20.000 x 66.80 [11:28:13]line ИТОГ: 1336.00 [11:28:13]line Тип оплаты: Талоны: ТК ГПНА Online [11:28:13]line 30106126 [11:28:13]line ______________________ [11:28:13]line (подпись) [11:28:13]written 0, free lines is 4095 [11:28:13]Write to MH i2c: 01 00 00 6E 17 85 [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: 01 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: 01 07 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: 01 07 00 6E 17 00 00 00 00 00 10 0E AA [11:28:13]RasterBufferAndPrint [11:28:13]line [11:28:13]line [11:28:13]line [11:28:13]line [11:28:13]line [11:28:13]written 0, free lines is 3602 [11:28:13]MH_Cut [11:28:13]Write to MH i2c: D1 01 00 75 17 01 5E [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: D1 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: D1 01 00 [11:28:13]MH_I2C_Read... [11:28:13]Read from MH i2c: D1 01 00 75 17 00 5D [11:28:13]Write to MH i2c: 01 00 00 76 17 8D [11:28:13]Write i2c OK [11:28:13]MH_I2C_Read... [11:28:14]*** Cut start [11:28:14]*** Purtial cut [11:28:14]*** CUTSNS_PIN = 0 [11:28:14]*** Stage 1: CUTSNS_PIN = 1 [11:28:15]OFD Sender: No OFD packet to send [11:28:16]Read from MH i2c: 01 [11:28:16]MH_I2C_Read... [11:28:16]*** Stop cut motor [11:28:16]*** Cut end [11:28:16]Read from MH i2c: 01 07 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: 01 07 00 76 17 00 00 00 00 00 FF 0F A2 [11:28:16]process_action print_text done [11:28:16]requested_data is exist [11:28:16]produce_requested_data [11:28:16]requested_item fm.sn is exist - process it [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 11 00 00 [11:28:16]Write to MH i2c: E2 08 00 77 17 80 11 00 00 00 00 00 00 08 [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 17 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 17 00 77 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5E [11:28:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:28:16]wFMCommunicate OK [11:28:16]requested_item fd.num is exist - process it [11:28:16]SAM_PROTO_GetFieldsCounters [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 13 00 00 [11:28:16]Write to MH i2c: E2 08 00 78 17 80 13 00 00 00 00 00 00 0B [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 62 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 62 00 78 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 37 08 01 00 0E 04 04 00 66 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 68 [11:28:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 37 08 01 00 0E 04 04 00 66 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:28:16]wFMCommunicate OK [11:28:16]SAM_PROTO_GetFieldsCounters done [11:28:16]requested_item shift.num is exist - process it [11:28:16]requested_item shift.opened is exist - process it [11:28:16]req_shift_opened [11:28:16]FM_GetShiftState [11:28:16]SAM_PROTO_GetShiftState [11:28:16]wFMCommunicate request_size=4 [11:28:16]MH_SAM_APDU [11:28:16]CAPDU: 80 13 01 00 [11:28:16]Write to MH i2c: E2 08 00 79 17 80 13 01 00 00 00 00 00 0D [11:28:16]Write i2c OK [11:28:16]MH_I2C_Read... [11:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:16]Read from MH i2c: E2 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 0E 00 [11:28:16]MH_I2C_Read... [11:28:16]Read from MH i2c: E2 0E 00 79 17 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 93 [11:28:16]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:28:16]wFMCommunicate OK [11:28:16]SAM_PROTO_GetShiftState done [11:28:16]FM_GetShiftState done [11:28:16]req_shift_opened done [11:28:16]requested_item shift.open_date is exist - process it [11:28:16]req_shift_open_date [11:28:16]req_shift_open_date done [11:28:16]produce_requested_data done [11:28:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67639,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:28:16]process_action_free print_text [11:28:16]json_value_free [11:28:16]json_value_free done [11:28:16]process_json_proto returns [11:28:16]Send response to host [11:28:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67639,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:28:16]free response buf [11:28:16]execute_script done [11:28:16]execute_script returns [11:28:16]free content buf [11:28:16]Sock 7.Close socket [11:28:16]Sock 7.Thread stoped [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:46]OFD Sender: No OFD packet to send [11:28:51]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:21]accept exits with 10 [11:29:21]New connection [11:29:21]New thread 3067538788 created [11:29:21]Thread 3067395428 joined [11:29:21]Waiting for new connection... [11:29:21] Sock 10.Parse request [11:29:21]Sock 10.Check first char [11:29:21]Sock 10.First char is OK [11:29:21]request: POST /json_proto HTTP/1.0 [11:29:21]Method: POST [11:29:21]URL: /json_proto [11:29:21]Method is POST - this is cgi request [11:29:21]url: /json_proto [11:29:21]query_string will be loaded in cgi processing [11:29:21]execute_cgi json_proto POST (null) [11:29:21]execute_cgi path=json_proto method=POST [11:29:21]POST find Content-Length [11:29:21]Host: 172.17.41.195:8080 [11:29:21]Content-Length: 793 [11:29:21]Content-Type: application/json [11:29:21] [11:29:21]POST finish read [11:29:21]Found Content-Length = 793 [11:29:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507767", "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" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:21]execute_script... [11:29: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)507767", "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" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:21]POST & json_proto [11:29:21]process_json_proto [11:29:21]json parsed OK: [11:29:21]protocol is kg_v1.0 [11:29:21]action value=close_receipt [11:29:21]process_action close_receipt [11:29:21]cmd_close_receipt [11:29:21]MH_GetDate [11:29:21]Write to MH i2c: F0 00 00 7A 17 80 [11:29:21]Write i2c OK [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: F0 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: F0 09 00 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: F0 09 00 7A 17 00 94 3F 47 66 FC 21 6F 64 F9 [11:29:21]GetLastDocTimeStamp 1715944951 [11:29:21]current date 1715945364 [11:29:21]FM_GetShiftState [11:29:21]SAM_PROTO_GetShiftState [11:29:21]wFMCommunicate request_size=4 [11:29:21]MH_SAM_APDU [11:29:21]CAPDU: 80 13 01 00 [11:29:21]Write to MH i2c: E2 08 00 7B 17 80 13 01 00 00 00 00 00 0F [11:29:21]Write i2c OK [11:29:21]MH_I2C_Read... [11:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:21]Read from MH i2c: E2 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 0E 00 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 0E 00 7B 17 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 95 [11:29:21]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:29:21]wFMCommunicate OK [11:29:21]SAM_PROTO_GetShiftState done [11:29:21]FM_GetShiftState done [11:29:21]opened in 1715905068 [11:29:21]opened+sec_in_day 1715991468 [11:29:21]quantity*price = 40002 [11:29:21]sum+1 = 40003 [11:29:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.02 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.02 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 49 17.05.2024 11:29 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67640 ФПД: 117912519985268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T112924&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67640&fm=117912519985268&tin=02508201610067®Number=0000000000091845&sum=40002 [11:29:22]StoreToDocumentArchive [11:29:22]shift 358 fd 67640 [11:29:22]save to /storage/0358/doc_00067640 [11:29:22]save last doc name /storage/0358/doc_00067640 to /storage/kkm_last_doc_name [11:29:22]save OK [11:29:22]Clear old archive folders... [11:29:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:29:22]tlvbuf is B6F37380 [11:29:22]SAM_PROTO_ClearQueue [11:29:22]wFMCommunicate request_size=4 [11:29:22]MH_SAM_APDU [11:29:22]CAPDU: 80 09 00 00 [11:29:22]Write to MH i2c: E2 08 00 88 17 80 09 00 00 00 00 00 00 11 [11:29:22]Write i2c OK [11:29:22]MH_I2C_Read... [11:29:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:22]Read from MH i2c: E2 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 03 00 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 03 00 88 17 00 90 00 13 [11:29:22]RAPDU: 90 00 [11:29:22]wFMCommunicate OK [11:29:22]SAM_PROTO_ClearQueue done [11:29:22]KKMCreateOFDPacket [11:29:22]OFDProtocolAddRootSTLVToBuf [11:29:22]FM_MakeSignedData [11:29:22]FM_MakeSignedData [11:29:22]SAM_PROTO_SignData [11:29:22]wFMCommunicate request_size=4 [11:29:22]MH_SAM_APDU [11:29:22]CAPDU: 80 0D 01 02 [11:29:22]Write to MH i2c: E2 08 00 89 17 80 0D 01 02 00 00 00 00 19 [11:29:22]Write i2c OK [11:29:22]MH_I2C_Read... [11:29:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:22]Read from MH i2c: E2 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 03 00 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 03 00 89 17 00 90 00 14 [11:29:22]RAPDU: 90 00 [11:29:22]wFMCommunicate OK [11:29:22]wFMCommunicate request_size=255 [11:29:22]MH_SAM_APDU [11:29: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 94 3F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 [11:29:22]Write to MH i2c: E2 02 01 8A 17 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 94 3F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 00 00 09 [11:29:22]Write i2c OK [11:29:22]MH_I2C_Read... [11:29:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:22]Read from MH i2c: E2 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 03 00 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 03 00 8A 17 00 90 00 15 [11:29:22]RAPDU: 90 00 [11:29:22]wFMCommunicate OK [11:29:22]wFMCommunicate request_size=11 [11:29:22]MH_SAM_APDU [11:29:22]CAPDU: 80 0D 02 02 06 6B 3D A5 DE 48 74 [11:29:22]Write to MH i2c: E2 0E 00 8B 17 80 0D 02 02 06 00 6B 3D A5 DE 48 74 00 00 0F [11:29:22]Write i2c OK [11:29:22]MH_I2C_Read... [11:29:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:22]Read from MH i2c: E2 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 03 00 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 03 00 8B 17 00 90 00 16 [11:29:22]RAPDU: 90 00 [11:29:22]wFMCommunicate OK [11:29:22]wFMCommunicate request_size=4 [11:29:22]MH_SAM_APDU [11:29:22]CAPDU: 80 0D 03 02 [11:29:22]Write to MH i2c: E2 08 00 8C 17 80 0D 03 02 00 00 00 00 1E [11:29:22]Write i2c OK [11:29:22]MH_I2C_Read... [11:29:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:22]Read from MH i2c: E2 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 0B 00 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 0B 00 8C 17 00 B5 8F 0C 19 19 B0 F2 73 90 00 B6 [11:29:22]RAPDU: B5 8F 0C 19 19 B0 F2 73 90 00 [11:29:22]wFMCommunicate OK [11:29:22]SAM_PROTO_SignData done [11:29:22]FM_MakeSignedData done [11:29:22]CreateOFDProtocolMessage [11:29:22]wFMCommunicate request_size=4 [11:29:22]MH_SAM_APDU [11:29:22]CAPDU: 80 11 00 00 [11:29:22]Write to MH i2c: E2 08 00 8D 17 80 11 00 00 00 00 00 00 1E [11:29:22]Write i2c OK [11:29:22]MH_I2C_Read... [11:29:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:22]Read from MH i2c: E2 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 17 00 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 17 00 8D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 74 [11:29: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:29:22]wFMCommunicate OK [11:29:22]CreateOFDProtocolMessage done [11:29:22]OFDSenderStorePacket 67640 [11:29:22]StoreOFDPacket docnum=67640 [11:29: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 A2 FD 08 01 5A 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 94 3F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 6B 3D A5 DE 48 74 B5 8F 0C 19 19 B0 F2 73 [11:29:22]CheckFolder [11:29:22]dirname=/storage/ofd_packets [11:29:22]CheckFolder done [11:29:22]ProducePacketName [11:29:22]name=ofd_packets/00067640 [11:29:22]NVStorageSaveData ofd_packets/00067640 [11:29:22]File name is /storage/ofd_packets/00067640 [11:29:22]Write 302 bytes [11:29:22]NVStorageSaveData done [11:29:22]OFDSenderStorePacket done [11:29:22]KKMCreateOFDPacket done [11:29:22]NVStorageSaveData kkm_last_timestamp [11:29:22]File name is /storage/kkm_last_timestamp [11:29:22]Write 4 bytes [11:29:22]NVStorageSaveData done [11:29:22]ExternCall_PrintAddStr [11:29:22]wPrintStart [11:29:22]Write to MH i2c: 01 00 00 8E 17 A5 [11:29:22]Write i2c OK [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: 01 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: 01 07 00 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: 01 07 00 8E 17 00 00 00 00 00 FF 0F BA [11:29:22]RasterBufferAndPrint [11:29:22]line Счет N : (1)507767 [11:29:22]line ИНН: 02508201610067 [11:29:22]line Контрольно-Кассовый Чек [11:29:22]line ПРОДАЖА [11:29:22]line ТРК (МРК, ГНК) : 22 [11:29:22]line Товар: 2710124130 [11:29:22]line Super-92-К-5 [11:29:22]line 5.900 * 67.80 [11:29:22]line = 400.02 [11:29:22]line НДС 12% НСП 1% [11:29:22]line > о реализуемом товаре [11:29:22]line ИТОГО: 400.02 [11:29:22]line НСП 1% : 3.54 [11:29:22]line НДС 12% : 42.48 [11:29:22]line Наличными: 0.00 [11:29:22]line Безнал.: 400.02 [11:29:22]line Место: АЗС № 91 "Партнер Нефть" [11:29:22]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:29:22]line СНО: Общий режим [11:29:22]line Чек 49 17.05.2024 11:29 [11:29:22]line Смена: 358 ФФД: 1.0 [11:29:22]line ЗНМ: 0300000119 [11:29:22]line РНМ: 0000000000091845 [11:29:22]line Версия ККМ: 001 [11:29:22]line Платежная система: O! деньги [11:29:22]line ФМ: 0000000000871829 [11:29:22]line ФД: 67640 [11:29:22]line ФПД: 117912519985268 [11:29:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T112924&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67640&fm=117912519985268&tin=02508201610067®Number=0000000000091845&sum=40002 [11:29:23]OFD Sender: Processing packet 67640 [packets to send 35, broken 34] [11:29:23]ProducePacketName [11:29:23]name=ofd_packets/00067640 [11:29:23]OFD Sender: To server: pG, [11:29:23]CommunicateWithHost lk.salyk.kg:30040 [11:29:23]ConnectInit lk.salyk.kg [11:29:23]written 0, free lines is 4095 [11:29:23]Connected sock=9 [11:29:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 A2 FD 08 01 5A 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 94 3F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 6B 3D A5 DE 48 74 B5 8F 0C 19 19 B0 F2 73 [11:29: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 27 FE 47 00 94 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 38 08 01 00 F4 03 04 00 6C E7 46 66 B6 04 01 00 00 BE C8 90 D9 02 F2 A9 3B [11:29:23]CommunicateWithHost err = 0 [11:29:23]CheckOFDResponse [11:29:23]1017 (14) - 77093643461234 [11:29:23]1041 (16) - 0000000000871829 [11:29:23]1040 (4) - 67640 [11:29:23]1012 (4) - 17.05.2024 05:13 [11:29:23]1206 (1) - 0 [11:29:23]OFD Sender: Remove packet 67640 [11:29:23]ProducePacketName [11:29:23]name=ofd_packets/00067640 [11:29:23]NVStorageDeleteData [11:29:23]Write to MH i2c: 01 00 00 B7 17 CE [11:29:23]Write i2c OK [11:29:23]MH_I2C_Read... [11:29:23]Read from MH i2c: 01 [11:29:23]MH_I2C_Read... [11:29:23]Read from MH i2c: 01 07 00 [11:29:23]MH_I2C_Read... [11:29:23]Read from MH i2c: 01 07 00 B7 17 00 00 00 00 00 E6 0C C7 [11:29:23]RasterBufferAndPrint [11:29:23]line [11:29:23]line [11:29:23]line [11:29:23]line [11:29:23]line [11:29:23]written 0, free lines is 3308 [11:29:23]MH_Cut [11:29:23]Write to MH i2c: D1 01 00 BE 17 01 A7 [11:29:23]Write i2c OK [11:29:23]MH_I2C_Read... [11:29:23]Read from MH i2c: D1 [11:29:23]MH_I2C_Read... [11:29:23]Read from MH i2c: D1 01 00 [11:29:23]MH_I2C_Read... [11:29:23]Read from MH i2c: D1 01 00 BE 17 00 A6 [11:29:23]Write to MH i2c: 01 00 00 BF 17 D6 [11:29:23]Write i2c OK [11:29:23]MH_I2C_Read... [11:29:24]OFD Sender: No OFD packet to send [11:29:24]*** Cut start [11:29:24]*** Purtial cut [11:29:24]*** Stage 1: CUTSNS_PIN = 1 [11:29:24]Read from MH i2c: 01 [11:29:24]MH_I2C_Read... [11:29:24]*** Stop cut motor [11:29:24]*** Cut end [11:29:24]Read from MH i2c: 01 07 00 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: 01 07 00 BF 17 00 00 00 00 00 FF 0F EB [11:29:24]process_action close_receipt done [11:29:24]requested_data is exist [11:29:24]produce_requested_data [11:29:24]requested_item fm.sn is exist - process it [11:29:24]wFMCommunicate request_size=4 [11:29:24]MH_SAM_APDU [11:29:24]CAPDU: 80 11 00 00 [11:29:24]Write to MH i2c: E2 08 00 C0 17 80 11 00 00 00 00 00 00 51 [11:29:24]Write i2c OK [11:29:24]MH_I2C_Read... [11:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:24]Read from MH i2c: E2 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: E2 17 00 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: E2 17 00 C0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A7 [11: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 [11:29:24]wFMCommunicate OK [11:29:24]requested_item fd.num is exist - process it [11:29:24]SAM_PROTO_GetFieldsCounters [11:29:24]wFMCommunicate request_size=4 [11:29:24]MH_SAM_APDU [11:29:24]CAPDU: 80 13 00 00 [11:29:24]Write to MH i2c: E2 08 00 C1 17 80 13 00 00 00 00 00 00 54 [11:29:24]Write i2c OK [11:29:24]MH_I2C_Read... [11:29:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:24]Read from MH i2c: E2 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: E2 62 00 [11:29:24]MH_I2C_Read... [11:29:24]Read from MH i2c: E2 62 00 C1 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 38 08 01 00 0E 04 04 00 66 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 B5 [11: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 38 08 01 00 0E 04 04 00 66 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:29:24]wFMCommunicate OK [11:29:24]SAM_PROTO_GetFieldsCounters done [11:29:24]requested_item shift.num is exist - process it [11:29:24]requested_item shift.opened is exist - process it [11:29:24]req_shift_opened [11:29:24]FM_GetShiftState [11:29:24]SAM_PROTO_GetShiftState [11:29:24]wFMCommunicate request_size=4 [11:29:24]MH_SAM_APDU [11:29:24]CAPDU: 80 13 01 00 [11:29:24]Write to MH i2c: E2 08 00 C2 17 80 13 01 00 00 00 00 00 56 [11:29:24]Write i2c OK [11:29:24]MH_I2C_Read... [11:29:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:25]Read from MH i2c: E2 [11:29:25]MH_I2C_Read... [11:29:25]Read from MH i2c: E2 0E 00 [11:29:25]MH_I2C_Read... [11:29:25]Read from MH i2c: E2 0E 00 C2 17 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 DC [11:29:25]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:29:25]wFMCommunicate OK [11:29:25]SAM_PROTO_GetShiftState done [11:29:25]FM_GetShiftState done [11:29:25]req_shift_opened done [11:29:25]requested_item shift.open_date is exist - process it [11:29:25]req_shift_open_date [11:29:25]req_shift_open_date done [11:29:25]produce_requested_data done [11:29:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67640,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:29:25]process_action_free close_receipt [11:29:25]json_value_free [11:29:25]json_value_free done [11:29:25]process_json_proto returns [11:29:25]Send response to host [11:29:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67640,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:29:25]free response buf [11:29:25]execute_script done [11:29:25]execute_script returns [11:29:25]free content buf [11:29:25]Sock 10.Close socket [11:29:25]Sock 10.Thread stoped [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:54]OFD Sender: No OFD packet to send [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:29]OFD Sender: No OFD packet to send [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:39]OFD Sender: No OFD packet to send [11:33:44]OFD Sender: No OFD packet to send [11:33:49]OFD Sender: No OFD packet to send [11:33:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:10]accept exits with 7 [11:34:10]New connection [11:34:10]New thread 3067395428 created [11:34:10]Thread 3067538788 joined [11:34:10]Waiting for new connection... [11:34:10] Sock 7.Parse request [11:34:10]Sock 7.Check first char [11:34:10]Sock 7.First char is OK [11:34:10]request: POST /json_proto HTTP/1.0 [11:34:10]Method: POST [11:34:10]URL: /json_proto [11:34:10]Method is POST - this is cgi request [11:34:10]url: /json_proto [11:34:10]query_string will be loaded in cgi processing [11:34:10]execute_cgi json_proto POST (null) [11:34:10]execute_cgi path=json_proto method=POST [11:34:10]POST find Content-Length [11:34:10]Host: 172.17.41.195:8080 [11:34:10]Content-Length: 800 [11:34:10]Content-Type: application/json [11:34:10] [11:34:10]POST finish read [11:34:10]Found Content-Length = 800 [11:34:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507768", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\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" ] } } [11:34:10]execute_script... [11:34: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)507768", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\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" ] } } [11:34:10]POST & json_proto [11:34:10]process_json_proto [11:34:10]json parsed OK: [11:34:10]protocol is kg_v1.0 [11:34:10]action value=close_receipt [11:34:10]process_action close_receipt [11:34:10]cmd_close_receipt [11:34:10]MH_GetDate [11:34:10]Write to MH i2c: F0 00 00 C3 17 C9 [11:34:10]Write i2c OK [11:34:10]MH_I2C_Read... [11:34:10]Read from MH i2c: F0 [11:34:10]MH_I2C_Read... [11:34:10]Read from MH i2c: F0 09 00 [11:34:10]MH_I2C_Read... [11:34:10]Read from MH i2c: F0 09 00 C3 17 00 B5 40 47 66 FC 21 6F 64 64 [11:34:10]GetLastDocTimeStamp 1715945364 [11:34:10]current date 1715945653 [11:34:10]FM_GetShiftState [11:34:10]SAM_PROTO_GetShiftState [11:34:10]wFMCommunicate request_size=4 [11:34:10]MH_SAM_APDU [11:34:10]CAPDU: 80 13 01 00 [11:34:10]Write to MH i2c: E2 08 00 C4 17 80 13 01 00 00 00 00 00 58 [11:34:10]Write i2c OK [11:34:10]MH_I2C_Read... [11:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:10]Read from MH i2c: E2 [11:34:10]MH_I2C_Read... [11:34:10]Read from MH i2c: E2 0E 00 [11:34:10]MH_I2C_Read... [11:34:10]Read from MH i2c: E2 0E 00 C4 17 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 DE [11:34:10]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:34:10]wFMCommunicate OK [11:34:10]SAM_PROTO_GetShiftState done [11:34:10]FM_GetShiftState done [11:34:10]opened in 1715905068 [11:34:10]opened+sec_in_day 1715991468 [11:34:10]quantity*price = 30060 [11:34:10]sum+1 = 30061 [11:34:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.60 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 0.00 Безнал.: 300.60 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 50 17.05.2024 11:34 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67641 ФПД: 75447086520634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T113413&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67641&fm=75447086520634&tin=02508201610067®Number=0000000000091845&sum=30060 [11:34:11]StoreToDocumentArchive [11:34:11]shift 358 fd 67641 [11:34:11]save to /storage/0358/doc_00067641 [11:34:11]save last doc name /storage/0358/doc_00067641 to /storage/kkm_last_doc_name [11:34:11]save OK [11:34:11]Clear old archive folders... [11:34:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:34:11]tlvbuf is 015DC050 [11:34:11]SAM_PROTO_ClearQueue [11:34:11]wFMCommunicate request_size=4 [11:34:11]MH_SAM_APDU [11:34:11]CAPDU: 80 09 00 00 [11:34:11]Write to MH i2c: E2 08 00 D1 17 80 09 00 00 00 00 00 00 5A [11:34:11]Write i2c OK [11:34:11]MH_I2C_Read... [11:34:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:11]Read from MH i2c: E2 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 03 00 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 03 00 D1 17 00 90 00 5C [11:34:11]RAPDU: 90 00 [11:34:11]wFMCommunicate OK [11:34:11]SAM_PROTO_ClearQueue done [11:34:11]KKMCreateOFDPacket [11:34:11]OFDProtocolAddRootSTLVToBuf [11:34:11]FM_MakeSignedData [11:34:11]FM_MakeSignedData [11:34:11]SAM_PROTO_SignData [11:34:11]wFMCommunicate request_size=4 [11:34:11]MH_SAM_APDU [11:34:11]CAPDU: 80 0D 01 02 [11:34:11]Write to MH i2c: E2 08 00 D2 17 80 0D 01 02 00 00 00 00 62 [11:34:11]Write i2c OK [11:34:11]MH_I2C_Read... [11:34:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:11]Read from MH i2c: E2 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 03 00 [11:34:11]MH_I2C_Read... [11:34:11]Read from MH i2c: E2 03 00 D2 17 00 90 00 5D [11:34:11]RAPDU: 90 00 [11:34:11]wFMCommunicate OK [11:34:11]wFMCommunicate request_size=255 [11:34:11]MH_SAM_APDU [11:34: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 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 32 00 00 00 F4 03 04 00 B5 40 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 44 [11:34:11]Write to MH i2c: E2 02 01 D3 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 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 32 00 00 00 F4 03 04 00 B5 40 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 44 00 00 3B [11:34:11]Write i2c OK [11:34:11]MH_I2C_Read... [11:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:12]Read from MH i2c: E2 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: E2 03 00 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: E2 03 00 D3 17 00 90 00 5E [11:34:12]RAPDU: 90 00 [11:34:12]wFMCommunicate OK [11:34:12]wFMCommunicate request_size=10 [11:34:12]MH_SAM_APDU [11:34:12]CAPDU: 80 0D 02 02 05 9E 64 CA 99 3A [11:34:12]Write to MH i2c: E2 0D 00 D4 17 80 0D 02 02 05 00 9E 64 CA 99 3A 00 00 0E [11:34:12]Write i2c OK [11:34:12]MH_I2C_Read... [11:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:12]Read from MH i2c: E2 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: E2 03 00 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: E2 03 00 D4 17 00 90 00 5F [11:34:12]RAPDU: 90 00 [11:34:12]wFMCommunicate OK [11:34:12]wFMCommunicate request_size=4 [11:34:12]MH_SAM_APDU [11:34:12]CAPDU: 80 0D 03 02 [11:34:12]Write to MH i2c: E2 08 00 D5 17 80 0D 03 02 00 00 00 00 67 [11:34:12]Write i2c OK [11:34:12]MH_I2C_Read... [11:34:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:12]Read from MH i2c: E2 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: E2 0B 00 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: E2 0B 00 D5 17 00 C6 13 74 D5 80 24 CE 9C 90 00 98 [11:34:12]RAPDU: C6 13 74 D5 80 24 CE 9C 90 00 [11:34:12]wFMCommunicate OK [11:34:12]SAM_PROTO_SignData done [11:34:12]FM_MakeSignedData done [11:34:12]CreateOFDProtocolMessage [11:34:12]wFMCommunicate request_size=4 [11:34:12]MH_SAM_APDU [11:34:12]CAPDU: 80 11 00 00 [11:34:12]Write to MH i2c: E2 08 00 D6 17 80 11 00 00 00 00 00 00 67 [11:34:12]Write i2c OK [11:34:12]MH_I2C_Read... [11:34:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:12]Read from MH i2c: E2 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: E2 17 00 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: E2 17 00 D6 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BD [11:34:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:34:12]wFMCommunicate OK [11:34:12]CreateOFDProtocolMessage done [11:34:12]OFDSenderStorePacket 67641 [11:34:12]StoreOFDPacket docnum=67641 [11:34: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 3B E7 07 01 42 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 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 32 00 00 00 F4 03 04 00 B5 40 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 44 9E 64 CA 99 3A C6 13 74 D5 80 24 CE 9C [11:34:12]CheckFolder [11:34:12]dirname=/storage/ofd_packets [11:34:12]CheckFolder done [11:34:12]ProducePacketName [11:34:12]name=ofd_packets/00067641 [11:34:12]NVStorageSaveData ofd_packets/00067641 [11:34:12]File name is /storage/ofd_packets/00067641 [11:34:12]Write 301 bytes [11:34:12]NVStorageSaveData done [11:34:12]OFDSenderStorePacket done [11:34:12]KKMCreateOFDPacket done [11:34:12]NVStorageSaveData kkm_last_timestamp [11:34:12]File name is /storage/kkm_last_timestamp [11:34:12]Write 4 bytes [11:34:12]NVStorageSaveData done [11:34:12]ExternCall_PrintAddStr [11:34:12]wPrintStart [11:34:12]Write to MH i2c: 01 00 00 D7 17 EE [11:34:12]Write i2c OK [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: 01 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: 01 07 00 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: 01 07 00 D7 17 00 00 00 00 00 FF 0F 03 [11:34:12]RasterBufferAndPrint [11:34:12]line Счет N : (1)507768 [11:34:12]line ИНН: 02508201610067 [11:34:12]line Контрольно-Кассовый Чек [11:34:12]line ПРОДАЖА [11:34:12]line ТРК (МРК, ГНК) : 33 [11:34:12]line Товар: 2710124130 [11:34:12]line Аи-92-К-5 [11:34:12]line 4.500 * 66.80 [11:34:12]line = 300.60 [11:34:12]line НДС 12% НСП 1% [11:34:12]line > о реализуемом товаре [11:34:12]line ИТОГО: 300.60 [11:34:12]line НСП 1% : 2.66 [11:34:12]line НДС 12% : 31.92 [11:34:12]line Наличными: 0.00 [11:34:12]line Безнал.: 300.60 [11:34:12]line Место: АЗС № 91 "Партнер Нефть" [11:34:12]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:34:12]line СНО: Общий режим [11:34:12]line Чек 50 17.05.2024 11:34 [11:34:12]line Смена: 358 ФФД: 1.0 [11:34:12]line ЗНМ: 0300000119 [11:34:12]line РНМ: 0000000000091845 [11:34:12]line Версия ККМ: 001 [11:34:12]line Платежная система: O! деньги [11:34:12]line ФМ: 0000000000871829 [11:34:12]line ФД: 67641 [11:34:12]line ФПД: 75447086520634 [11:34:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T113413&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67641&fm=75447086520634&tin=02508201610067®Number=0000000000091845&sum=30060 [11:34:12]OFD Sender: Processing packet 67641 [packets to send 35, broken 34] [11:34:12]ProducePacketName [11:34:12]name=ofd_packets/00067641 [11:34:12]OFD Sender: To server: pG, [11:34:12]CommunicateWithHost lk.salyk.kg:30040 [11:34:12]ConnectInit lk.salyk.kg [11:34:12]written 0, free lines is 4095 [11:34:12]Connected sock=11 [11:34: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 3B E7 07 01 42 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 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 32 00 00 00 F4 03 04 00 B5 40 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 44 9E 64 CA 99 3A C6 13 74 D5 80 24 CE 9C [11:34: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 90 7F 47 00 98 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 39 08 01 00 F4 03 04 00 8D E8 46 66 B6 04 01 00 00 83 01 E2 12 A8 B1 CB 62 [11:34:12]CommunicateWithHost err = 0 [11:34:12]CheckOFDResponse [11:34:12]1017 (14) - 77093643461234 [11:34:12]1041 (16) - 0000000000871829 [11:34:12]1040 (4) - 67641 [11:34:12]1012 (4) - 17.05.2024 05:18 [11:34:12]1206 (1) - 0 [11:34:12]OFD Sender: Remove packet 67641 [11:34:12]ProducePacketName [11:34:12]name=ofd_packets/00067641 [11:34:12]NVStorageDeleteData [11:34:12]Write to MH i2c: 01 00 00 00 18 18 [11:34:12]Write i2c OK [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: 01 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: 01 07 00 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: 01 07 00 00 18 00 00 00 00 00 DC 0C 07 [11:34:12]RasterBufferAndPrint [11:34:12]line [11:34:12]line [11:34:12]line [11:34:12]line [11:34:12]line [11:34:12]written 0, free lines is 3298 [11:34:13]MH_Cut [11:34:13]Write to MH i2c: D1 01 00 07 18 01 F1 [11:34:13]Write i2c OK [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: D1 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: D1 01 00 [11:34:13]MH_I2C_Read... [11:34:13]Read from MH i2c: D1 01 00 07 18 00 F0 [11:34:13]Write to MH i2c: 01 00 00 08 18 20 [11:34:13]Write i2c OK [11:34:13]MH_I2C_Read... [11:34:13]OFD Sender: No OFD packet to send [11:34:13]*** Cut start [11:34:13]*** Purtial cut [11:34:13]*** CUTSNS_PIN = 0 [11:34:14]*** Stage 1: CUTSNS_PIN = 1 [11:34:15]Read from MH i2c: 01 [11:34:15]MH_I2C_Read... [11:34:15]*** Stop cut motor [11:34:15]*** Cut end [11:34:15]Read from MH i2c: 01 07 00 [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: 01 07 00 08 18 00 00 00 00 00 FF 0F 35 [11:34:15]process_action close_receipt done [11:34:15]requested_data is exist [11:34:15]produce_requested_data [11:34:15]requested_item fm.sn is exist - process it [11:34:15]wFMCommunicate request_size=4 [11:34:15]MH_SAM_APDU [11:34:15]CAPDU: 80 11 00 00 [11:34:15]Write to MH i2c: E2 08 00 09 18 80 11 00 00 00 00 00 00 9B [11:34:15]Write i2c OK [11:34:15]MH_I2C_Read... [11:34:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:15]Read from MH i2c: E2 [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: E2 17 00 [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: E2 17 00 09 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F1 [11:34:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:34:15]wFMCommunicate OK [11:34:15]requested_item fd.num is exist - process it [11:34:15]SAM_PROTO_GetFieldsCounters [11:34:15]wFMCommunicate request_size=4 [11:34:15]MH_SAM_APDU [11:34:15]CAPDU: 80 13 00 00 [11:34:15]Write to MH i2c: E2 08 00 0A 18 80 13 00 00 00 00 00 00 9E [11:34:15]Write i2c OK [11:34:15]MH_I2C_Read... [11:34:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:16]Read from MH i2c: E2 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 62 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 62 00 0A 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 39 08 01 00 0E 04 04 00 66 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 03 [11:34: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 39 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:34:16]wFMCommunicate OK [11:34:16]SAM_PROTO_GetFieldsCounters done [11:34:16]requested_item shift.num is exist - process it [11:34:16]requested_item shift.opened is exist - process it [11:34:16]req_shift_opened [11:34:16]FM_GetShiftState [11:34:16]SAM_PROTO_GetShiftState [11:34:16]wFMCommunicate request_size=4 [11:34:16]MH_SAM_APDU [11:34:16]CAPDU: 80 13 01 00 [11:34:16]Write to MH i2c: E2 08 00 0B 18 80 13 01 00 00 00 00 00 A0 [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:16]Read from MH i2c: E2 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 0E 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 0E 00 0B 18 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 26 [11:34:16]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:34:16]wFMCommunicate OK [11:34:16]SAM_PROTO_GetShiftState done [11:34:16]FM_GetShiftState done [11:34:16]req_shift_opened done [11:34:16]requested_item shift.open_date is exist - process it [11:34:16]req_shift_open_date [11:34:16]req_shift_open_date done [11:34:16]produce_requested_data done [11:34:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67641,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:34:16]process_action_free close_receipt [11:34:16]json_value_free [11:34:16]json_value_free done [11:34:16]process_json_proto returns [11:34:16]Send response to host [11:34:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67641,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:34:16]free response buf [11:34:16]execute_script done [11:34:16]execute_script returns [11:34:16]free content buf [11:34:16]Sock 7.Close socket [11:34:16]Sock 7.Thread stoped [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:46]accept exits with 9 [11:40:46]New connection [11:40:46]New thread 3067538788 created [11:40:46]Thread 3067395428 joined [11:40:46]Waiting for new connection... [11:40:46] Sock 9.Parse request [11:40:46]Sock 9.Check first char [11:40:46]Sock 9.First char is OK [11:40:46]request: POST /json_proto HTTP/1.0 [11:40:46]Method: POST [11:40:46]URL: /json_proto [11:40:46]Method is POST - this is cgi request [11:40:46]url: /json_proto [11:40:46]query_string will be loaded in cgi processing [11:40:46]execute_cgi json_proto POST (null) [11:40:46]execute_cgi path=json_proto method=POST [11:40:46]POST find Content-Length [11:40:46]Host: 172.17.41.195:8080 [11:40:46]Content-Length: 682 [11:40:46]Content-Type: application/json [11:40:46] [11:40:46]POST finish read [11:40:46]Found Content-Length = 682 [11:40:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:46]execute_script... [11:40: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)507770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:46]POST & json_proto [11:40:46]process_json_proto [11:40:46]json parsed OK: [11:40:46]protocol is kg_v1.0 [11:40:46]action value=close_receipt [11:40:46]process_action close_receipt [11:40:46]cmd_close_receipt [11:40:46]MH_GetDate [11:40:46]Write to MH i2c: F0 00 00 0C 18 13 [11:40:46]Write i2c OK [11:40:46]MH_I2C_Read... [11:40:46]Read from MH i2c: F0 [11:40:46]MH_I2C_Read... [11:40:46]Read from MH i2c: F0 09 00 [11:40:46]MH_I2C_Read... [11:40:46]Read from MH i2c: F0 09 00 0C 18 00 42 42 47 66 FC 21 6F 64 3D [11:40:46]GetLastDocTimeStamp 1715945653 [11:40:46]current date 1715946050 [11:40:46]FM_GetShiftState [11:40:46]SAM_PROTO_GetShiftState [11:40:46]wFMCommunicate request_size=4 [11:40:46]MH_SAM_APDU [11:40:46]CAPDU: 80 13 01 00 [11:40:46]Write to MH i2c: E2 08 00 0D 18 80 13 01 00 00 00 00 00 A2 [11:40:46]Write i2c OK [11:40:46]MH_I2C_Read... [11:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:47]Read from MH i2c: E2 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: E2 0E 00 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: E2 0E 00 0D 18 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 28 [11:40:47]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:40:47]wFMCommunicate OK [11:40:47]SAM_PROTO_GetShiftState done [11:40:47]FM_GetShiftState done [11:40:47]opened in 1715905068 [11:40:47]opened+sec_in_day 1715991468 [11:40:47]quantity*price = 100066 [11:40:47]sum+1 = 100067 [11:40:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 51 17.05.2024 11:40 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67642 ФПД: 35752304634088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T114050&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67642&fm=35752304634088&tin=02508201610067®Number=0000000000091845&sum=100000 [11:40:48]StoreToDocumentArchive [11:40:48]shift 358 fd 67642 [11:40:48]save to /storage/0358/doc_00067642 [11:40:48]save last doc name /storage/0358/doc_00067642 to /storage/kkm_last_doc_name [11:40:48]save OK [11:40:48]Clear old archive folders... [11:40:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:48]tlvbuf is 015C4330 [11:40:48]SAM_PROTO_ClearQueue [11:40:48]wFMCommunicate request_size=4 [11:40:48]MH_SAM_APDU [11:40:48]CAPDU: 80 09 00 00 [11:40:48]Write to MH i2c: E2 08 00 1A 18 80 09 00 00 00 00 00 00 A4 [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:48]Read from MH i2c: E2 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 1A 18 00 90 00 A6 [11:40:48]RAPDU: 90 00 [11:40:48]wFMCommunicate OK [11:40:48]SAM_PROTO_ClearQueue done [11:40:48]KKMCreateOFDPacket [11:40:48]OFDProtocolAddRootSTLVToBuf [11:40:48]FM_MakeSignedData [11:40:48]FM_MakeSignedData [11:40:48]SAM_PROTO_SignData [11:40:48]wFMCommunicate request_size=4 [11:40:48]MH_SAM_APDU [11:40:48]CAPDU: 80 0D 01 02 [11:40:48]Write to MH i2c: E2 08 00 1B 18 80 0D 01 02 00 00 00 00 AC [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:48]Read from MH i2c: E2 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 1B 18 00 90 00 A7 [11:40:48]RAPDU: 90 00 [11:40:48]wFMCommunicate OK [11:40:48]wFMCommunicate request_size=255 [11:40:48]MH_SAM_APDU [11:40:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 42 42 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 20 [11:40:48]Write to MH i2c: E2 02 01 1C 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 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 33 00 00 00 F4 03 04 00 42 42 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 20 00 00 B3 [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:48]Read from MH i2c: E2 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 1C 18 00 90 00 A8 [11:40:48]RAPDU: 90 00 [11:40:48]wFMCommunicate OK [11:40:48]wFMCommunicate request_size=10 [11:40:48]MH_SAM_APDU [11:40:48]CAPDU: 80 0D 02 02 05 84 3B 6A E8 E8 [11:40:48]Write to MH i2c: E2 0D 00 1D 18 80 0D 02 02 05 00 84 3B 6A E8 E8 00 00 B2 [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:48]Read from MH i2c: E2 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 03 00 1D 18 00 90 00 A9 [11:40:48]RAPDU: 90 00 [11:40:48]wFMCommunicate OK [11:40:48]wFMCommunicate request_size=4 [11:40:48]MH_SAM_APDU [11:40:48]CAPDU: 80 0D 03 02 [11:40:48]Write to MH i2c: E2 08 00 1E 18 80 0D 03 02 00 00 00 00 B1 [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:48]Read from MH i2c: E2 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 0B 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 0B 00 1E 18 00 A0 FE F1 18 32 D1 A4 C7 90 00 C7 [11:40:48]RAPDU: A0 FE F1 18 32 D1 A4 C7 90 00 [11:40:48]wFMCommunicate OK [11:40:48]SAM_PROTO_SignData done [11:40:48]FM_MakeSignedData done [11:40:48]CreateOFDProtocolMessage [11:40:48]wFMCommunicate request_size=4 [11:40:48]MH_SAM_APDU [11:40:48]CAPDU: 80 11 00 00 [11:40:48]Write to MH i2c: E2 08 00 1F 18 80 11 00 00 00 00 00 00 B1 [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:48]Read from MH i2c: E2 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 17 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: E2 17 00 1F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 07 [11: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 [11:40:48]wFMCommunicate OK [11:40:48]CreateOFDProtocolMessage done [11:40:48]OFDSenderStorePacket 67642 [11:40:48]StoreOFDPacket docnum=67642 [11: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 0F 01 00 00 D2 B0 07 01 1F BD 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 33 00 00 00 F4 03 04 00 42 42 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 20 84 3B 6A E8 E8 A0 FE F1 18 32 D1 A4 C7 [11:40:48]CheckFolder [11:40:48]dirname=/storage/ofd_packets [11:40:48]CheckFolder done [11:40:48]ProducePacketName [11:40:48]name=ofd_packets/00067642 [11:40:48]NVStorageSaveData ofd_packets/00067642 [11:40:48]File name is /storage/ofd_packets/00067642 [11:40:48]Write 301 bytes [11:40:48]NVStorageSaveData done [11:40:48]OFDSenderStorePacket done [11:40:48]KKMCreateOFDPacket done [11:40:48]NVStorageSaveData kkm_last_timestamp [11:40:48]File name is /storage/kkm_last_timestamp [11:40:48]Write 4 bytes [11:40:48]NVStorageSaveData done [11:40:48]ExternCall_PrintAddStr [11:40:48]wPrintStart [11:40:48]Write to MH i2c: 01 00 00 20 18 38 [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: 01 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: 01 07 00 [11:40:48]MH_I2C_Read... [11:40:48]Read from MH i2c: 01 07 00 20 18 00 00 00 00 00 FF 0F 4D [11:40:48]RasterBufferAndPrint [11:40:48]line Счет N : (1)507770 [11:40:48]line ИНН: 02508201610067 [11:40:48]line Контрольно-Кассовый Чек [11:40:48]line ПРОДАЖА [11:40:48]line ТРК (МРК, ГНК) : 23 [11:40:48]line Товар: 2710124130 [11:40:48]line Аи-92-К-5 [11:40:48]line 14.980 * 66.80 [11:40:48]line = 1000.66 [11:40:48]line НДС 12% НСП 1% [11:40:48]line > о реализуемом товаре [11:40:48]line ОКРУГЛЕНИЕ: -0.66 [11:40:48]line ИТОГО: 1000.00 [11:40:48]line Внесено: 1000.00 [11:40:48]line СДАЧА: 0.00 [11:40:48]line НСП 1% : 8.85 [11:40:48]line НДС 12% : 106.26 [11:40:48]line Наличными: 1000.00 [11:40:48]line Безнал.: 0.00 [11:40:48]line Место: АЗС № 91 "Партнер Нефть" [11:40:48]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:40:48]line СНО: Общий режим [11:40:48]line Чек 51 17.05.2024 11:40 [11:40:48]line Смена: 358 ФФД: 1.0 [11:40:48]line ЗНМ: 0300000119 [11:40:48]line РНМ: 0000000000091845 [11:40:48]line Версия ККМ: 001 [11:40:48]line ФМ: 0000000000871829 [11:40:48]line ФД: 67642 [11:40:48]line ФПД: 35752304634088 [11:40:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T114050&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67642&fm=35752304634088&tin=02508201610067®Number=0000000000091845&sum=100000 [11:40:49]OFD Sender: Processing packet 67642 [packets to send 35, broken 34] [11:40:49]ProducePacketName [11:40:49]name=ofd_packets/00067642 [11:40:49]OFD Sender: To server: pG, [11:40:49]CommunicateWithHost lk.salyk.kg:30040 [11:40:49]ConnectInit lk.salyk.kg [11:40:49]written 0, free lines is 4095 [11:40:49]Connected sock=10 [11: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 0F 01 00 00 D2 B0 07 01 1F BD 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 33 00 00 00 F4 03 04 00 42 42 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 20 84 3B 6A E8 E8 A0 FE F1 18 32 D1 A4 C7 [11: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 D0 A0 47 00 F7 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 1A EA 46 66 B6 04 01 00 00 89 31 EA 6E 96 C1 6F 42 [11:40:49]CommunicateWithHost err = 0 [11:40:49]CheckOFDResponse [11:40:49]1017 (14) - 77093643461234 [11:40:49]1041 (16) - 0000000000871829 [11:40:49]1040 (4) - 67642 [11:40:49]1012 (4) - 17.05.2024 05:24 [11:40:49]1206 (1) - 0 [11:40:49]OFD Sender: Remove packet 67642 [11:40:49]ProducePacketName [11:40:49]name=ofd_packets/00067642 [11:40:49]NVStorageDeleteData [11:40:49]Write to MH i2c: 01 00 00 4A 18 62 [11:40:49]Write i2c OK [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: 01 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: 01 07 00 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: 01 07 00 4A 18 00 00 00 00 00 CB 0C 40 [11:40:49]RasterBufferAndPrint [11:40:49]line [11:40:49]line [11:40:49]line [11:40:49]line [11:40:49]line [11:40:49]written 0, free lines is 3281 [11:40:49]MH_Cut [11:40:49]Write to MH i2c: D1 01 00 51 18 01 3B [11:40:49]Write i2c OK [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: D1 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: D1 01 00 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: D1 01 00 51 18 00 3A [11:40:49]Write to MH i2c: 01 00 00 52 18 6A [11:40:49]Write i2c OK [11:40:49]MH_I2C_Read... [11:40:49]OFD Sender: No OFD packet to send [11:40:50]*** Cut start [11:40:50]*** Purtial cut [11:40:50]*** Stage 1: CUTSNS_PIN = 1 [11:40:50]Read from MH i2c: 01 [11:40:50]MH_I2C_Read... [11:40:50]*** Stop cut motor [11:40:50]*** Cut end [11:40:50]Read from MH i2c: 01 07 00 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: 01 07 00 52 18 00 00 00 00 00 FF 0F 7F [11:40:50]process_action close_receipt done [11:40:50]requested_data is exist [11:40:50]produce_requested_data [11:40:50]requested_item fm.sn is exist - process it [11:40:50]wFMCommunicate request_size=4 [11:40:50]MH_SAM_APDU [11:40:50]CAPDU: 80 11 00 00 [11:40:50]Write to MH i2c: E2 08 00 53 18 80 11 00 00 00 00 00 00 E5 [11:40:50]Write i2c OK [11:40:50]MH_I2C_Read... [11:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:50]Read from MH i2c: E2 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 17 00 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 17 00 53 18 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:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:40:50]wFMCommunicate OK [11:40:50]requested_item fd.num is exist - process it [11:40:50]SAM_PROTO_GetFieldsCounters [11:40:50]wFMCommunicate request_size=4 [11:40:50]MH_SAM_APDU [11:40:50]CAPDU: 80 13 00 00 [11:40:50]Write to MH i2c: E2 08 00 54 18 80 13 00 00 00 00 00 00 E8 [11:40:50]Write i2c OK [11:40:50]MH_I2C_Read... [11:40:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:50]Read from MH i2c: E2 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 62 00 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 62 00 54 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 3A 08 01 00 0E 04 04 00 66 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 51 [11:40: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 3A 08 01 00 0E 04 04 00 66 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:40:50]wFMCommunicate OK [11:40:50]SAM_PROTO_GetFieldsCounters done [11:40:50]requested_item shift.num is exist - process it [11:40:50]requested_item shift.opened is exist - process it [11:40:50]req_shift_opened [11:40:50]FM_GetShiftState [11:40:50]SAM_PROTO_GetShiftState [11:40:50]wFMCommunicate request_size=4 [11:40:50]MH_SAM_APDU [11:40:50]CAPDU: 80 13 01 00 [11:40:50]Write to MH i2c: E2 08 00 55 18 80 13 01 00 00 00 00 00 EA [11:40:50]Write i2c OK [11:40:50]MH_I2C_Read... [11:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:50]Read from MH i2c: E2 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 0E 00 [11:40:50]MH_I2C_Read... [11:40:50]Read from MH i2c: E2 0E 00 55 18 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 70 [11:40:50]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:40:50]wFMCommunicate OK [11:40:50]SAM_PROTO_GetShiftState done [11:40:50]FM_GetShiftState done [11:40:50]req_shift_opened done [11:40:50]requested_item shift.open_date is exist - process it [11:40:50]req_shift_open_date [11:40:50]req_shift_open_date done [11:40:50]produce_requested_data done [11:40:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67642,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:40:50]process_action_free close_receipt [11:40:50]json_value_free [11:40:50]json_value_free done [11:40:50]process_json_proto returns [11:40:50]Send response to host [11:40:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67642,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:40:50]free response buf [11:40:50]execute_script done [11:40:50]execute_script returns [11:40:50]free content buf [11:40:50]Sock 9.Close socket [11:40:50]Sock 9.Thread stoped [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]accept exits with 7 [11:42:44]New connection [11:42:44]New thread 3067395428 created [11:42:44]Thread 3067538788 joined [11:42:44]Waiting for new connection... [11:42:44] Sock 7.Parse request [11:42:44]Sock 7.Check first char [11:42:44]Sock 7.First char is OK [11:42:44]request: POST /json_proto HTTP/1.0 [11:42:44]Method: POST [11:42:44]URL: /json_proto [11:42:44]Method is POST - this is cgi request [11:42:44]url: /json_proto [11:42:44]query_string will be loaded in cgi processing [11:42:44]execute_cgi json_proto POST (null) [11:42:44]execute_cgi path=json_proto method=POST [11:42:44]POST find Content-Length [11:42:44]Host: 172.17.41.195:8080 [11:42:44]Content-Length: 983 [11:42:44]Content-Type: application/json [11:42:44] [11:42:44]POST finish read [11:42:44]Found Content-Length = 983 [11:42:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507769", "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" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "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\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 91\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.80 \u0441\u043E\u043C", "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" ] } } [11:42:44]execute_script... [11:42: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)507769", "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" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "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\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 91\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.80 \u0441\u043E\u043C", "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" ] } } [11:42:44]POST & json_proto [11:42:44]process_json_proto [11:42:44]json parsed OK: [11:42:44]protocol is kg_v1.0 [11:42:44]action value=close_receipt [11:42:44]process_action close_receipt [11:42:44]cmd_close_receipt [11:42:44]MH_GetDate [11:42:44]Write to MH i2c: F0 00 00 56 18 5D [11:42:44]Write i2c OK [11:42:44]MH_I2C_Read... [11:42:44]Read from MH i2c: F0 [11:42:44]MH_I2C_Read... [11:42:44]Read from MH i2c: F0 09 00 [11:42:44]MH_I2C_Read... [11:42:44]Read from MH i2c: F0 09 00 56 18 00 B7 42 47 66 FC 21 6F 64 FC [11:42:44]GetLastDocTimeStamp 1715946050 [11:42:44]current date 1715946167 [11:42:44]FM_GetShiftState [11:42:44]SAM_PROTO_GetShiftState [11:42:44]wFMCommunicate request_size=4 [11:42:44]MH_SAM_APDU [11:42:44]CAPDU: 80 13 01 00 [11:42:44]Write to MH i2c: E2 08 00 57 18 80 13 01 00 00 00 00 00 EC [11:42:44]Write i2c OK [11:42:44]MH_I2C_Read... [11:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:44]Read from MH i2c: E2 [11:42:44]MH_I2C_Read... [11:42:44]Read from MH i2c: E2 0E 00 [11:42:44]MH_I2C_Read... [11:42:44]Read from MH i2c: E2 0E 00 57 18 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 72 [11:42:44]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:42:44]wFMCommunicate OK [11:42:44]SAM_PROTO_GetShiftState done [11:42:44]FM_GetShiftState done [11:42:44]opened in 1715905068 [11:42:44]opened+sec_in_day 1715991468 [11:42:44]quantity*price = 150024 [11:42:44]sum+1 = 150025 [11:42:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 52 17.05.2024 11:42 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Дисконтная программа АИ-92 номер 91 сэкономлено 22.80 сом ФМ: 0000000000871829 ФД: 67643 ФПД: 90754465129271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T114247&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67643&fm=90754465129271&tin=02508201610067®Number=0000000000091845&sum=150000 [11:42:45]StoreToDocumentArchive [11:42:45]shift 358 fd 67643 [11:42:45]save to /storage/0358/doc_00067643 [11:42:45]save last doc name /storage/0358/doc_00067643 to /storage/kkm_last_doc_name [11:42:45]save OK [11:42:45]Clear old archive folders... [11:42:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:45]tlvbuf is 015ED300 [11:42:45]SAM_PROTO_ClearQueue [11:42:45]wFMCommunicate request_size=4 [11:42:45]MH_SAM_APDU [11:42:45]CAPDU: 80 09 00 00 [11:42:45]Write to MH i2c: E2 08 00 64 18 80 09 00 00 00 00 00 00 EE [11:42:45]Write i2c OK [11:42:45]MH_I2C_Read... [11:42:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:45]Read from MH i2c: E2 [11:42:45]MH_I2C_Read... [11:42:45]Read from MH i2c: E2 03 00 [11:42:45]MH_I2C_Read... [11:42:45]Read from MH i2c: E2 03 00 64 18 00 90 00 F0 [11:42:45]RAPDU: 90 00 [11:42:45]wFMCommunicate OK [11:42:45]SAM_PROTO_ClearQueue done [11:42:45]KKMCreateOFDPacket [11:42:45]OFDProtocolAddRootSTLVToBuf [11:42:45]FM_MakeSignedData [11:42:45]FM_MakeSignedData [11:42:45]SAM_PROTO_SignData [11:42:45]wFMCommunicate request_size=4 [11:42:45]MH_SAM_APDU [11:42:45]CAPDU: 80 0D 01 02 [11:42:45]Write to MH i2c: E2 08 00 65 18 80 0D 01 02 00 00 00 00 F6 [11:42:45]Write i2c OK [11:42:45]MH_I2C_Read... [11:42:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:45]Read from MH i2c: E2 [11:42:45]MH_I2C_Read... [11:42:45]Read from MH i2c: E2 03 00 [11:42:45]MH_I2C_Read... [11:42:45]Read from MH i2c: E2 03 00 65 18 00 90 00 F1 [11:42:45]RAPDU: 90 00 [11:42:45]wFMCommunicate OK [11:42:45]wFMCommunicate request_size=255 [11:42:45]MH_SAM_APDU [11:42:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 34 00 00 00 F4 03 04 00 B7 42 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 52 [11:42:45]Write to MH i2c: E2 02 01 66 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 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 34 00 00 00 F4 03 04 00 B7 42 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 52 00 00 8B [11:42:45]Write i2c OK [11:42:45]MH_I2C_Read... [11:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:46]Read from MH i2c: E2 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 03 00 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 03 00 66 18 00 90 00 F2 [11:42:46]RAPDU: 90 00 [11:42:46]wFMCommunicate OK [11:42:46]wFMCommunicate request_size=10 [11:42:46]MH_SAM_APDU [11:42:46]CAPDU: 80 0D 02 02 05 8A 6B A7 E3 37 [11:42:46]Write to MH i2c: E2 0D 00 67 18 80 0D 02 02 05 00 8A 6B A7 E3 37 00 00 B9 [11:42:46]Write i2c OK [11:42:46]MH_I2C_Read... [11:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:46]Read from MH i2c: E2 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 03 00 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 03 00 67 18 00 90 00 F3 [11:42:46]RAPDU: 90 00 [11:42:46]wFMCommunicate OK [11:42:46]wFMCommunicate request_size=4 [11:42:46]MH_SAM_APDU [11:42:46]CAPDU: 80 0D 03 02 [11:42:46]Write to MH i2c: E2 08 00 68 18 80 0D 03 02 00 00 00 00 FB [11:42:46]Write i2c OK [11:42:46]MH_I2C_Read... [11:42:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:46]Read from MH i2c: E2 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 0B 00 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 0B 00 68 18 00 5E 1C 74 72 E9 15 F6 08 90 00 58 [11:42:46]RAPDU: 5E 1C 74 72 E9 15 F6 08 90 00 [11:42:46]wFMCommunicate OK [11:42:46]SAM_PROTO_SignData done [11:42:46]FM_MakeSignedData done [11:42:46]CreateOFDProtocolMessage [11:42:46]wFMCommunicate request_size=4 [11:42:46]MH_SAM_APDU [11:42:46]CAPDU: 80 11 00 00 [11:42:46]Write to MH i2c: E2 08 00 69 18 80 11 00 00 00 00 00 00 FB [11:42:46]Write i2c OK [11:42:46]MH_I2C_Read... [11:42:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:46]Read from MH i2c: E2 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 17 00 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 17 00 69 18 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:42:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:42:46]wFMCommunicate OK [11:42:46]CreateOFDProtocolMessage done [11:42:46]OFDSenderStorePacket 67643 [11:42:46]StoreOFDPacket docnum=67643 [11:42: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 B7 DC 07 01 2E 1B 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 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 34 00 00 00 F4 03 04 00 B7 42 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 52 8A 6B A7 E3 37 5E 1C 74 72 E9 15 F6 08 [11:42:46]CheckFolder [11:42:46]dirname=/storage/ofd_packets [11:42:46]CheckFolder done [11:42:46]ProducePacketName [11:42:46]name=ofd_packets/00067643 [11:42:46]NVStorageSaveData ofd_packets/00067643 [11:42:46]File name is /storage/ofd_packets/00067643 [11:42:46]Write 301 bytes [11:42:46]NVStorageSaveData done [11:42:46]OFDSenderStorePacket done [11:42:46]KKMCreateOFDPacket done [11:42:46]NVStorageSaveData kkm_last_timestamp [11:42:46]File name is /storage/kkm_last_timestamp [11:42:46]Write 4 bytes [11:42:46]NVStorageSaveData done [11:42:46]ExternCall_PrintAddStr [11:42:46]wPrintStart [11:42:46]Write to MH i2c: 01 00 00 6A 18 82 [11:42:46]Write i2c OK [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: 01 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: 01 07 00 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: 01 07 00 6A 18 00 00 00 00 00 FF 0F 97 [11:42:46]RasterBufferAndPrint [11:42:46]line Счет N : (1)507769 [11:42:46]line ИНН: 02508201610067 [11:42:46]line Контрольно-Кассовый Чек [11:42:46]line ПРОДАЖА [11:42:46]line ТРК (МРК, ГНК) : 33 [11:42:46]line Товар: 2710124130 [11:42:46]line Аи-92-К-5 [11:42:46]line 22.800 * 65.80 [11:42:46]line = 1500.24 [11:42:46]line НДС 12% НСП 1% [11:42:46]line > о реализуемом товаре [11:42:46]line ОКРУГЛЕНИЕ: -0.24 [11:42:46]line ИТОГО: 1500.00 [11:42:46]line Внесено: 1500.00 [11:42:46]line СДАЧА: 0.00 [11:42:46]line НСП 1% : 13.28 [11:42:46]line НДС 12% : 159.32 [11:42:46]line Наличными: 1500.00 [11:42:46]line Безнал.: 0.00 [11:42:46]line Место: АЗС № 91 "Партнер Нефть" [11:42:46]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:42:46]line СНО: Общий режим [11:42:46]line Чек 52 17.05.2024 11:42 [11:42:46]line Смена: 358 ФФД: 1.0 [11:42:46]line ЗНМ: 0300000119 [11:42:46]line РНМ: 0000000000091845 [11:42:46]line Версия ККМ: 001 [11:42:46]line [11:42:46]line Дисконтная программа [11:42:46]line АИ-92 [11:42:46]line номер 91 [11:42:46]line сэкономлено 22.80 сом [11:42:46]line ФМ: 0000000000871829 [11:42:46]line ФД: 67643 [11:42:46]line ФПД: 90754465129271 [11:42:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T114247&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67643&fm=90754465129271&tin=02508201610067®Number=0000000000091845&sum=150000 [11:42:46]OFD Sender: Processing packet 67643 [packets to send 35, broken 34] [11:42:46]ProducePacketName [11:42:46]name=ofd_packets/00067643 [11:42:46]OFD Sender: To server: pG, [11:42:46]CommunicateWithHost lk.salyk.kg:30040 [11:42:46]ConnectInit lk.salyk.kg [11:42:46]written 0, free lines is 4095 [11:42:46]Connected sock=10 [11:42: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 B7 DC 07 01 2E 1B 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 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 34 00 00 00 F4 03 04 00 B7 42 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 52 8A 6B A7 E3 37 5E 1C 74 72 E9 15 F6 08 [11:42: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 36 9D 47 00 49 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 3B 08 01 00 F4 03 04 00 8F EA 46 66 B6 04 01 00 00 DD D7 E6 91 7C 10 62 72 [11:42:46]CommunicateWithHost err = 0 [11:42:46]CheckOFDResponse [11:42:46]1017 (14) - 77093643461234 [11:42:46]1041 (16) - 0000000000871829 [11:42:46]1040 (4) - 67643 [11:42:46]1012 (4) - 17.05.2024 05:26 [11:42:46]1206 (1) - 0 [11:42:46]OFD Sender: Remove packet 67643 [11:42:46]ProducePacketName [11:42:46]name=ofd_packets/00067643 [11:42:46]NVStorageDeleteData [11:42:47]Write to MH i2c: 01 00 00 99 18 B1 [11:42:47]Write i2c OK [11:42:47]MH_I2C_Read... [11:42:47]Read from MH i2c: 01 [11:42:47]MH_I2C_Read... [11:42:47]Read from MH i2c: 01 07 00 [11:42:47]MH_I2C_Read... [11:42:47]Read from MH i2c: 01 07 00 99 18 00 00 00 00 00 77 0C 3B [11:42:47]RasterBufferAndPrint [11:42:47]line [11:42:47]line [11:42:47]line [11:42:47]line [11:42:47]line [11:42:47]written 0, free lines is 3198 [11:42:47]MH_Cut [11:42:47]Write to MH i2c: D1 01 00 A0 18 01 8A [11:42:47]Write i2c OK [11:42:47]MH_I2C_Read... [11:42:47]Read from MH i2c: D1 [11:42:47]MH_I2C_Read... [11:42:47]Read from MH i2c: D1 01 00 [11:42:47]MH_I2C_Read... [11:42:47]Read from MH i2c: D1 01 00 A0 18 00 89 [11:42:47]Write to MH i2c: 01 00 00 A1 18 B9 [11:42:47]Write i2c OK [11:42:47]MH_I2C_Read... [11:42:47]OFD Sender: No OFD packet to send [11:42:47]*** Cut start [11:42:47]*** Purtial cut [11:42:47]*** CUTSNS_PIN = 0 [11:42:48]*** Stage 1: CUTSNS_PIN = 1 [11:42:49]Read from MH i2c: 01 [11:42:49]MH_I2C_Read... [11:42:49]*** Stop cut motor [11:42:50]*** Cut end [11:42:50]Read from MH i2c: 01 07 00 [11:42:50]MH_I2C_Read... [11:42:50]Read from MH i2c: 01 07 00 A1 18 00 00 00 00 00 FF 0F CE [11:42:50]process_action close_receipt done [11:42:50]requested_data is exist [11:42:50]produce_requested_data [11:42:50]requested_item fm.sn is exist - process it [11:42:50]wFMCommunicate request_size=4 [11:42:50]MH_SAM_APDU [11:42:50]CAPDU: 80 11 00 00 [11:42:50]Write to MH i2c: E2 08 00 A2 18 80 11 00 00 00 00 00 00 34 [11:42:50]Write i2c OK [11:42:50]MH_I2C_Read... [11:42:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:50]Read from MH i2c: E2 [11:42:50]MH_I2C_Read... [11:42:50]Read from MH i2c: E2 17 00 [11:42:50]MH_I2C_Read... [11:42:50]Read from MH i2c: E2 17 00 A2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8A [11: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 [11:42:50]wFMCommunicate OK [11:42:50]requested_item fd.num is exist - process it [11:42:50]SAM_PROTO_GetFieldsCounters [11:42:50]wFMCommunicate request_size=4 [11:42:50]MH_SAM_APDU [11:42:50]CAPDU: 80 13 00 00 [11:42:50]Write to MH i2c: E2 08 00 A3 18 80 13 00 00 00 00 00 00 37 [11:42:50]Write i2c OK [11:42:50]MH_I2C_Read... [11:42:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:50]Read from MH i2c: E2 [11:42:50]MH_I2C_Read... [11:42:50]Read from MH i2c: E2 62 00 [11:42:50]MH_I2C_Read... [11:42:50]Read from MH i2c: E2 62 00 A3 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 3B 08 01 00 0E 04 04 00 66 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 A4 [11:42: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 3B 08 01 00 0E 04 04 00 66 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:42:50]wFMCommunicate OK [11:42:50]SAM_PROTO_GetFieldsCounters done [11:42:50]requested_item shift.num is exist - process it [11:42:50]requested_item shift.opened is exist - process it [11:42:50]req_shift_opened [11:42:50]FM_GetShiftState [11:42:50]SAM_PROTO_GetShiftState [11:42:50]wFMCommunicate request_size=4 [11:42:50]MH_SAM_APDU [11:42:50]CAPDU: 80 13 01 00 [11:42:50]Write to MH i2c: E2 08 00 A4 18 80 13 01 00 00 00 00 00 39 [11:42:50]Write i2c OK [11:42:50]MH_I2C_Read... [11:42:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:50]Read from MH i2c: E2 [11:42:50]MH_I2C_Read... [11:42:50]Read from MH i2c: E2 0E 00 [11:42:50]MH_I2C_Read... [11:42:50]Read from MH i2c: E2 0E 00 A4 18 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 BF [11:42:50]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:42:50]wFMCommunicate OK [11:42:50]SAM_PROTO_GetShiftState done [11:42:50]FM_GetShiftState done [11:42:50]req_shift_opened done [11:42:50]requested_item shift.open_date is exist - process it [11:42:50]req_shift_open_date [11:42:50]req_shift_open_date done [11:42:50]produce_requested_data done [11:42:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67643,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:42:50]process_action_free close_receipt [11:42:50]json_value_free [11:42:50]json_value_free done [11:42:50]process_json_proto returns [11:42:50]Send response to host [11:42:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67643,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:42:50]free response buf [11:42:50]execute_script done [11:42:50]execute_script returns [11:42:50]free content buf [11:42:50]Sock 7.Close socket [11:42:50]Sock 7.Thread stoped [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:44:58]accept exits with 9 [11:44:58]New connection [11:44:58]New thread 3067538788 created [11:44:58]Thread 3067395428 joined [11:44:58]Waiting for new connection... [11:44:58] Sock 9.Parse request [11:44:58]Sock 9.Check first char [11:44:58]Sock 9.First char is OK [11:44:58]request: POST /json_proto HTTP/1.0 [11:44:58]Method: POST [11:44:58]URL: /json_proto [11:44:58]Method is POST - this is cgi request [11:44:58]url: /json_proto [11:44:58]query_string will be loaded in cgi processing [11:44:58]execute_cgi json_proto POST (null) [11:44:58]execute_cgi path=json_proto method=POST [11:44:58]POST find Content-Length [11:44:58]Host: 172.17.41.195:8080 [11:44:58]Content-Length: 643 [11:44:58]Content-Type: application/json [11:44:58] [11:44:58]POST finish read [11:44:58]Found Content-Length = 643 [11:44:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12101", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 38.00, "quantity" : 1.000, "sum" : 38.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 38.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:58]execute_script... [11:44: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)12101", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 38.00, "quantity" : 1.000, "sum" : 38.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 38.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:58]POST & json_proto [11:44:58]process_json_proto [11:44:58]json parsed OK: [11:44:58]protocol is kg_v1.0 [11:44:58]action value=close_receipt [11:44:58]process_action close_receipt [11:44:58]cmd_close_receipt [11:44:58]MH_GetDate [11:44:58]Write to MH i2c: F0 00 00 A5 18 AC [11:44:58]Write i2c OK [11:44:58]MH_I2C_Read... [11:44:58]Read from MH i2c: F0 [11:44:58]MH_I2C_Read... [11:44:58]Read from MH i2c: F0 09 00 [11:44:58]MH_I2C_Read... [11:44:58]Read from MH i2c: F0 09 00 A5 18 00 3D 43 47 66 FC 21 6F 64 D2 [11:44:58]GetLastDocTimeStamp 1715946167 [11:44:58]current date 1715946301 [11:44:58]FM_GetShiftState [11:44:58]SAM_PROTO_GetShiftState [11:44:58]wFMCommunicate request_size=4 [11:44:58]MH_SAM_APDU [11:44:58]CAPDU: 80 13 01 00 [11:44:58]Write to MH i2c: E2 08 00 A6 18 80 13 01 00 00 00 00 00 3B [11:44:58]Write i2c OK [11:44:58]MH_I2C_Read... [11:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:58]Read from MH i2c: E2 [11:44:58]MH_I2C_Read... [11:44:58]Read from MH i2c: E2 0E 00 [11:44:58]MH_I2C_Read... [11:44:58]Read from MH i2c: E2 0E 00 A6 18 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 C1 [11:44:58]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:44:58]wFMCommunicate OK [11:44:58]SAM_PROTO_GetShiftState done [11:44:58]FM_GetShiftState done [11:44:58]opened in 1715905068 [11:44:58]opened+sec_in_day 1715991468 [11:44:58]quantity*price = 3800 [11:44:58]sum+1 = 3801 [11:44:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 38.00 НСП 1% : 0.34 НДС 12% : 4.03 Наличными: 38.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 53 17.05.2024 11:45 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67644 ФПД: 189588002352040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T114501&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67644&fm=189588002352040&tin=02508201610067®Number=0000000000091845&sum=3800 0 [11:44:59]StoreToDocumentArchive [11:44:59]shift 358 fd 67644 [11:44:59]save to /storage/0358/doc_00067644 [11:44:59]save last doc name /storage/0358/doc_00067644 to /storage/kkm_last_doc_name [11:44:59]save OK [11:44:59]Clear old archive folders... [11:44:59]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:44:59]tlvbuf is B6F50230 [11:44:59]SAM_PROTO_ClearQueue [11:44:59]wFMCommunicate request_size=4 [11:44:59]MH_SAM_APDU [11:44:59]CAPDU: 80 09 00 00 [11:44:59]Write to MH i2c: E2 08 00 B3 18 80 09 00 00 00 00 00 00 3D [11:44:59]Write i2c OK [11:44:59]MH_I2C_Read... [11:44:59]Read from MH i2c: E2 [11:44:59]MH_I2C_Read... [11:44:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:59]Read from MH i2c: E2 03 00 [11:44:59]MH_I2C_Read... [11:44:59]Read from MH i2c: E2 03 00 B3 18 00 90 00 3F [11:44:59]RAPDU: 90 00 [11:44:59]wFMCommunicate OK [11:44:59]SAM_PROTO_ClearQueue done [11:44:59]KKMCreateOFDPacket [11:44:59]OFDProtocolAddRootSTLVToBuf [11:44:59]FM_MakeSignedData [11:44:59]FM_MakeSignedData [11:44:59]SAM_PROTO_SignData [11:44:59]wFMCommunicate request_size=4 [11:44:59]MH_SAM_APDU [11:44:59]CAPDU: 80 0D 01 02 [11:44:59]Write to MH i2c: E2 08 00 B4 18 80 0D 01 02 00 00 00 00 45 [11:44:59]Write i2c OK [11:44:59]MH_I2C_Read... [11:44:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:59]Read from MH i2c: E2 [11:44:59]MH_I2C_Read... [11:44:59]Read from MH i2c: E2 03 00 [11:44:59]MH_I2C_Read... [11:44:59]Read from MH i2c: E2 03 00 B4 18 00 90 00 40 [11:44:59]RAPDU: 90 00 [11:44:59]wFMCommunicate OK [11:44:59]wFMCommunicate request_size=255 [11:44:59]MH_SAM_APDU [11:44:59]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 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 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 0E 00 00 00 00 13 04 06 00 D8 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 01 00 00 00 00 07 04 06 00 D8 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 3D 43 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 [11:44:59]Write to MH i2c: E2 02 01 B5 18 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 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 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 0E 00 00 00 00 13 04 06 00 D8 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 01 00 00 00 00 07 04 06 00 D8 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 3D 43 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 00 00 12 [11:44:59]Write i2c OK [11:44:59]MH_I2C_Read... [11:44:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:59]Read from MH i2c: E2 [11:44:59]MH_I2C_Read... [11:44:59]Read from MH i2c: E2 03 00 [11:44:59]MH_I2C_Read... [11:44:59]Read from MH i2c: E2 03 00 B5 18 00 90 00 41 [11:44:59]RAPDU: 90 00 [11:44:59]wFMCommunicate OK [11:44:59]wFMCommunicate request_size=34 [11:44:59]MH_SAM_APDU [11:44:59]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3C 08 01 00 35 04 06 00 AC 6D E5 88 AB A8 [11:44:59]Write to MH i2c: E2 25 00 B6 18 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3C 08 01 00 35 04 06 00 AC 6D E5 88 AB A8 00 00 2A [11:44:59]Write i2c OK [11:44:59]MH_I2C_Read... [11:44:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:59]Read from MH i2c: E2 [11:44:59]MH_I2C_Read... [11:44:59]Read from MH i2c: E2 03 00 [11:44:59]MH_I2C_Read... [11:44:59]Read from MH i2c: E2 03 00 B6 18 00 90 00 42 [11:44:59]RAPDU: 90 00 [11:44:59]wFMCommunicate OK [11:44:59]wFMCommunicate request_size=4 [11:44:59]MH_SAM_APDU [11:44:59]CAPDU: 80 0D 03 02 [11:44:59]Write to MH i2c: E2 08 00 B7 18 80 0D 03 02 00 00 00 00 4A [11:44:59]Write i2c OK [11:44:59]MH_I2C_Read... [11:44:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:59]Read from MH i2c: E2 [11:44:59]MH_I2C_Read... [11:44:59]Read from MH i2c: E2 0B 00 [11:44:59]MH_I2C_Read... [11:44:59]Read from MH i2c: E2 0B 00 B7 18 00 A4 28 AC F9 C6 38 E4 80 90 00 1E [11:44:59]RAPDU: A4 28 AC F9 C6 38 E4 80 90 00 [11:44:59]wFMCommunicate OK [11:44:59]SAM_PROTO_SignData done [11:44:59]FM_MakeSignedData done [11:44:59]CreateOFDProtocolMessage [11:44:59]wFMCommunicate request_size=4 [11:45:00]MH_SAM_APDU [11:45:00]CAPDU: 80 11 00 00 [11:45:00]Write to MH i2c: E2 08 00 B8 18 80 11 00 00 00 00 00 00 4A [11:45:00]Write i2c OK [11:45:00]MH_I2C_Read... [11:45:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:00]Read from MH i2c: E2 [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: E2 17 00 [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: E2 17 00 B8 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A0 [11:45: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:45:00]wFMCommunicate OK [11:45:00]CreateOFDProtocolMessage done [11:45:00]OFDSenderStorePacket 67644 [11:45:00]StoreOFDPacket docnum=67644 [11:45: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 27 01 00 00 75 3A 1F 01 38 7F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 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 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 0E 00 00 00 00 13 04 06 00 D8 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 01 00 00 00 00 07 04 06 00 D8 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 3D 43 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 AC 6D E5 88 AB A8 A4 28 AC F9 C6 38 E4 80 [11:45:00]CheckFolder [11:45:00]dirname=/storage/ofd_packets [11:45:00]CheckFolder done [11:45:00]ProducePacketName [11:45:00]name=ofd_packets/00067644 [11:45:00]NVStorageSaveData ofd_packets/00067644 [11:45:00]File name is /storage/ofd_packets/00067644 [11:45:00]Write 325 bytes [11:45:00]NVStorageSaveData done [11:45:00]OFDSenderStorePacket done [11:45:00]KKMCreateOFDPacket done [11:45:00]NVStorageSaveData kkm_last_timestamp [11:45:00]File name is /storage/kkm_last_timestamp [11:45:00]Write 4 bytes [11:45:00]NVStorageSaveData done [11:45:00]ExternCall_PrintAddStr [11:45:00]wPrintStart [11:45:00]Write to MH i2c: 01 00 00 B9 18 D1 [11:45:00]Write i2c OK [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: 01 [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: 01 07 00 [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: 01 07 00 B9 18 00 00 00 00 00 FF 0F E6 [11:45:00]RasterBufferAndPrint [11:45:00]line Счет N : (3)12101 [11:45:00]line ИНН: 02508201610067 [11:45:00]line Контрольно-Кассовый Чек [11:45:00]line ПРОДАЖА [11:45:00]line Товар: 5449000005489 [11:45:00]line Вода Бонаква 1л б/г [11:45:00]line 1.000 * 38.00 [11:45:00]line = 38.00 [11:45:00]line НДС 12% НСП 1% [11:45:00]line > о реализуемом товаре [11:45:00]line ИТОГО: 38.00 [11:45:00]line НСП 1% : 0.34 [11:45:00]line НДС 12% : 4.03 [11:45:00]line Наличными: 38.00 [11:45:00]line Безнал.: 0.00 [11:45:00]line Место: АЗС № 91 "Партнер Нефть" [11:45:00]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:45:00]line СНО: Общий режим [11:45:00]line Чек 53 17.05.2024 11:45 [11:45:00]line Смена: 358 ФФД: 1.0 [11:45:00]line ЗНМ: 0300000119 [11:45:00]line РНМ: 0000000000091845 [11:45:00]line Версия ККМ: 001 [11:45:00]line ФМ: 0000000000871829 [11:45:00]line ФД: 67644 [11:45:00]line ФПД: 189588002352040 [11:45:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T114501&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67644&fm=189588002352040&tin=02508201610067®Number=0000000000091845&sum=3800 [11:45:00]line 0 [11:45:00]written 0, free lines is 4095 [11:45:00]OFD Sender: Processing packet 67644 [packets to send 35, broken 34] [11:45:00]ProducePacketName [11:45:00]name=ofd_packets/00067644 [11:45:00]OFD Sender: To server: pG, [11:45:00]CommunicateWithHost lk.salyk.kg:30040 [11:45:00]ConnectInit lk.salyk.kg [11:45:00]Connected sock=10 [11:45: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 27 01 00 00 75 3A 1F 01 38 7F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 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 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 0E 00 00 00 00 13 04 06 00 D8 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 01 00 00 00 00 07 04 06 00 D8 0E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 3D 43 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 AC 6D E5 88 AB A8 A4 28 AC F9 C6 38 E4 80 [11:45: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 54 99 47 00 3A 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 3C 08 01 00 F4 03 04 00 15 EB 46 66 B6 04 01 00 00 35 D4 F5 68 B0 08 A0 D2 [11:45:00]CommunicateWithHost err = 0 [11:45:00]CheckOFDResponse [11:45:00]1017 (14) - 77093643461234 [11:45:00]1041 (16) - 0000000000871829 [11:45:00]1040 (4) - 67644 [11:45:00]1012 (4) - 17.05.2024 05:28 [11:45:00]1206 (1) - 0 [11:45:00]OFD Sender: Remove packet 67644 [11:45:00]ProducePacketName [11:45:00]name=ofd_packets/00067644 [11:45:00]NVStorageDeleteData [11:45:00]Write to MH i2c: 01 00 00 E0 18 F8 [11:45:00]Write i2c OK [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: 01 [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: 01 07 00 [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: 01 07 00 E0 18 00 00 00 00 00 EF 0C FA [11:45:00]RasterBufferAndPrint [11:45:00]line [11:45:00]line [11:45:00]line [11:45:00]line [11:45:00]line [11:45:00]written 0, free lines is 3317 [11:45:00]MH_Cut [11:45:00]Write to MH i2c: D1 01 00 E7 18 01 D1 [11:45:00]Write i2c OK [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: D1 [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: D1 01 00 [11:45:00]MH_I2C_Read... [11:45:00]Read from MH i2c: D1 01 00 E7 18 00 D0 [11:45:00]Write to MH i2c: 01 00 00 E8 18 00 [11:45:00]Write i2c OK [11:45:00]MH_I2C_Read... [11:45:01]OFD Sender: No OFD packet to send [11:45:01]*** Cut start [11:45:01]*** Purtial cut [11:45:01]*** Stage 1: CUTSNS_PIN = 1 [11:45:01]Read from MH i2c: 01 [11:45:01]MH_I2C_Read... [11:45:01]*** Stop cut motor [11:45:01]*** Cut end [11:45:01]Read from MH i2c: 01 07 00 [11:45:01]MH_I2C_Read... [11:45:01]Read from MH i2c: 01 07 00 E8 18 00 00 00 00 00 FF 0F 15 [11:45:01]process_action close_receipt done [11:45:01]requested_data is exist [11:45:01]produce_requested_data [11:45:01]requested_item fm.sn is exist - process it [11:45:01]wFMCommunicate request_size=4 [11:45:01]MH_SAM_APDU [11:45:01]CAPDU: 80 11 00 00 [11:45:01]Write to MH i2c: E2 08 00 E9 18 80 11 00 00 00 00 00 00 7B [11:45:01]Write i2c OK [11:45:01]MH_I2C_Read... [11:45:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:01]Read from MH i2c: E2 [11:45:01]MH_I2C_Read... [11:45:01]Read from MH i2c: E2 17 00 [11:45:01]MH_I2C_Read... [11:45:01]Read from MH i2c: E2 17 00 E9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D1 [11:45:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:45:01]wFMCommunicate OK [11:45:01]requested_item fd.num is exist - process it [11:45:01]SAM_PROTO_GetFieldsCounters [11:45:01]wFMCommunicate request_size=4 [11:45:01]MH_SAM_APDU [11:45:01]CAPDU: 80 13 00 00 [11:45:01]Write to MH i2c: E2 08 00 EA 18 80 13 00 00 00 00 00 00 7E [11:45:01]Write i2c OK [11:45:01]MH_I2C_Read... [11:45:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:02]Read from MH i2c: E2 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 62 00 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 62 00 EA 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 3C 08 01 00 0E 04 04 00 66 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 EF [11:45: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 3C 08 01 00 0E 04 04 00 66 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:45:02]wFMCommunicate OK [11:45:02]SAM_PROTO_GetFieldsCounters done [11:45:02]requested_item shift.num is exist - process it [11:45:02]requested_item shift.opened is exist - process it [11:45:02]req_shift_opened [11:45:02]FM_GetShiftState [11:45:02]SAM_PROTO_GetShiftState [11:45:02]wFMCommunicate request_size=4 [11:45:02]MH_SAM_APDU [11:45:02]CAPDU: 80 13 01 00 [11:45:02]Write to MH i2c: E2 08 00 EB 18 80 13 01 00 00 00 00 00 80 [11:45:02]Write i2c OK [11:45:02]MH_I2C_Read... [11:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:02]Read from MH i2c: E2 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 0E 00 [11:45:02]MH_I2C_Read... [11:45:02]Read from MH i2c: E2 0E 00 EB 18 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 06 [11:45:02]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:45:02]wFMCommunicate OK [11:45:02]SAM_PROTO_GetShiftState done [11:45:02]FM_GetShiftState done [11:45:02]req_shift_opened done [11:45:02]requested_item shift.open_date is exist - process it [11:45:02]req_shift_open_date [11:45:02]req_shift_open_date done [11:45:02]produce_requested_data done [11:45:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67644,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:45:02]process_action_free close_receipt [11:45:02]json_value_free [11:45:02]json_value_free done [11:45:02]process_json_proto returns [11:45:02]Send response to host [11:45:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67644,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:45:02]free response buf [11:45:02]execute_script done [11:45:02]execute_script returns [11:45:02]free content buf [11:45:02]Sock 9.Close socket [11:45:02]Sock 9.Thread stoped [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:41]OFD Sender: No OFD packet to send [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: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:33]accept exits with 7 [11:48:33]New connection [11:48:33]New thread 3067395428 created [11:48:33]Thread 3067538788 joined [11:48:33]Waiting for new connection... [11:48:33] Sock 7.Parse request [11:48:33]Sock 7.Check first char [11:48:33]Sock 7.First char is OK [11:48:33]request: POST /json_proto HTTP/1.0 [11:48:33]Method: POST [11:48:33]URL: /json_proto [11:48:33]Method is POST - this is cgi request [11:48:33]url: /json_proto [11:48:33]query_string will be loaded in cgi processing [11:48:33]execute_cgi json_proto POST (null) [11:48:33]execute_cgi path=json_proto method=POST [11:48:33]POST find Content-Length [11:48:33]Host: 172.17.41.195:8080 [11:48:33]Content-Length: 1179 [11:48:33]Content-Type: application/json [11:48:33] [11:48:33]POST finish read [11:48:33]Found Content-Length = 1179 [11:48: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507771\u000A17.05.2024 11:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 53.550 x 74.70\u000A\u0418\u0422\u041E\u0413: 4000.19\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:48:33]execute_script... [11:48: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507771\u000A17.05.2024 11:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 53.550 x 74.70\u000A\u0418\u0422\u041E\u0413: 4000.19\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:48:33]POST & json_proto [11:48:33]process_json_proto [11:48:33]json parsed OK: [11:48:33]protocol is kg_v1.0 [11:48:33]action value=print_text [11:48:33]process_action print_text [11:48:33]cmd_print_text [11:48:33]ExternCall_PrintAddStr [11:48:33]wPrintStart [11:48:33]Write to MH i2c: 01 00 00 EC 18 04 [11:48:33]Write i2c OK [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: 01 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: 01 07 00 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: 01 07 00 EC 18 00 00 00 00 00 FF 0F 19 [11:48:33]RasterBufferAndPrint [11:48:33]line *****ТОВАРНЫЙ ЧЕК***** [11:48:33]line АЗС-91 [11:48:33]line Партнер нефть [11:48:33]line 02508201610067 [11:48:33]line Кассир : Адишов И. [11:48:33]line Счет N : (1)507771 [11:48:33]line 17.05.2024 11:31 [11:48:33]line ПРОДАЖА [11:48:33]line ТРК (МРК, ГНК): 31 [11:48:33]line Вид ГСМ : 2710194210 [11:48:33]line ДТ-К-5 [11:48:33]line 53.550 x 74.70 [11:48:33]line ИТОГ: 4000.19 [11:48:33]line Тип оплаты: Талоны: Топливная Карта [11:48:33]line 02750 [11:48:33]line ______________________ [11:48:33]line (подпись) [11:48:33]written 0, free lines is 4095 [11:48:33]Write to MH i2c: 01 00 00 00 19 19 [11:48:33]Write i2c OK [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: 01 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: 01 07 00 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: 01 07 00 00 19 00 00 00 00 00 0C 0E 3A [11:48:33]RasterBufferAndPrint [11:48:33]line [11:48:33]line [11:48:33]line [11:48:33]line [11:48:33]line [11:48:33]written 0, free lines is 3598 [11:48:33]MH_Cut [11:48:33]Write to MH i2c: D1 01 00 07 19 01 F2 [11:48:33]Write i2c OK [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: D1 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: D1 01 00 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: D1 01 00 07 19 00 F1 [11:48:33]Write to MH i2c: 01 00 00 08 19 21 [11:48:33]Write i2c OK [11:48:33]MH_I2C_Read... [11:48:34]*** Cut start [11:48:34]*** Purtial cut [11:48:34]*** CUTSNS_PIN = 0 [11:48:34]*** Stage 1: CUTSNS_PIN = 1 [11:48:36]Read from MH i2c: 01 [11:48:36]MH_I2C_Read... [11:48:36]*** Stop cut motor [11:48:36]*** Cut end [11:48:36]Read from MH i2c: 01 07 00 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: 01 07 00 08 19 00 00 00 00 00 FF 0F 36 [11:48:36]process_action print_text done [11:48:36]requested_data is exist [11:48:36]produce_requested_data [11:48:36]requested_item fm.sn is exist - process it [11:48:36]wFMCommunicate request_size=4 [11:48:36]MH_SAM_APDU [11:48:36]CAPDU: 80 11 00 00 [11:48:36]Write to MH i2c: E2 08 00 09 19 80 11 00 00 00 00 00 00 9C [11:48:36]Write i2c OK [11:48:36]MH_I2C_Read... [11:48:36]OFD Sender: No OFD packet to send [11:48:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:36]Read from MH i2c: E2 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: E2 17 00 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: E2 17 00 09 19 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:48:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:48:36]wFMCommunicate OK [11:48:36]requested_item fd.num is exist - process it [11:48:36]SAM_PROTO_GetFieldsCounters [11:48:36]wFMCommunicate request_size=4 [11:48:36]MH_SAM_APDU [11:48:36]CAPDU: 80 13 00 00 [11:48:36]Write to MH i2c: E2 08 00 0A 19 80 13 00 00 00 00 00 00 9F [11:48:36]Write i2c OK [11:48:36]MH_I2C_Read... [11:48:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:36]Read from MH i2c: E2 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: E2 62 00 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: E2 62 00 0A 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 3C 08 01 00 0E 04 04 00 66 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 10 [11:48: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 3C 08 01 00 0E 04 04 00 66 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:48:36]wFMCommunicate OK [11:48:36]SAM_PROTO_GetFieldsCounters done [11:48:36]requested_item shift.num is exist - process it [11:48:36]requested_item shift.opened is exist - process it [11:48:36]req_shift_opened [11:48:36]FM_GetShiftState [11:48:36]SAM_PROTO_GetShiftState [11:48:36]wFMCommunicate request_size=4 [11:48:36]MH_SAM_APDU [11:48:36]CAPDU: 80 13 01 00 [11:48:36]Write to MH i2c: E2 08 00 0B 19 80 13 01 00 00 00 00 00 A1 [11:48:36]Write i2c OK [11:48:36]MH_I2C_Read... [11:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:36]Read from MH i2c: E2 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: E2 0E 00 [11:48:36]MH_I2C_Read... [11:48:36]Read from MH i2c: E2 0E 00 0B 19 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 27 [11:48:36]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:48:36]wFMCommunicate OK [11:48:36]SAM_PROTO_GetShiftState done [11:48:36]FM_GetShiftState done [11:48:36]req_shift_opened done [11:48:36]requested_item shift.open_date is exist - process it [11:48:36]req_shift_open_date [11:48:36]req_shift_open_date done [11:48:36]produce_requested_data done [11:48:36]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67644,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:48:36]process_action_free print_text [11:48:36]json_value_free [11:48:36]json_value_free done [11:48:36]process_json_proto returns [11:48:36]Send response to host [11:48:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67644,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:48:36]free response buf [11:48:36]execute_script done [11:48:36]execute_script returns [11:48:36]free content buf [11:48:36]Sock 7.Close socket [11:48:36]Sock 7.Thread stoped [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]accept exits with 9 [11:52:26]New connection [11:52:26]New thread 3067538788 created [11:52:26]Thread 3067395428 joined [11:52:26]Waiting for new connection... [11:52:26] Sock 9.Parse request [11:52:26]Sock 9.Check first char [11:52:26]Sock 9.First char is OK [11:52:26]request: POST /json_proto HTTP/1.0 [11:52:26]Method: POST [11:52:26]URL: /json_proto [11:52:26]Method is POST - this is cgi request [11:52:26]url: /json_proto [11:52:26]query_string will be loaded in cgi processing [11:52:26]execute_cgi json_proto POST (null) [11:52:26]execute_cgi path=json_proto method=POST [11:52:26]POST find Content-Length [11:52:26]Host: 172.17.41.195:8080 [11:52:26]Content-Length: 1177 [11:52:26]Content-Type: application/json [11:52:26] [11:52:26]POST finish read [11:52:26]Found Content-Length = 1177 [11:52: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507773\u000A17.05.2024 11:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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" ] } } [11:52:26]execute_script... [11:52: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507773\u000A17.05.2024 11:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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" ] } } [11:52:26]POST & json_proto [11:52:26]process_json_proto [11:52:26]json parsed OK: [11:52:26]protocol is kg_v1.0 [11:52:26]action value=print_text [11:52:26]process_action print_text [11:52:26]cmd_print_text [11:52:26]ExternCall_PrintAddStr [11:52:26]wPrintStart [11:52:26]Write to MH i2c: 01 00 00 0C 19 25 [11:52:26]Write i2c OK [11:52:26]MH_I2C_Read... [11:52:26]Read from MH i2c: 01 [11:52:26]MH_I2C_Read... [11:52:26]Read from MH i2c: 01 07 00 [11:52:26]MH_I2C_Read... [11:52:26]Read from MH i2c: 01 07 00 0C 19 00 00 00 00 00 FF 0F 3A [11:52:26]RasterBufferAndPrint [11:52:26]line *****ТОВАРНЫЙ ЧЕК***** [11:52:26]line АЗС-91 [11:52:26]line Партнер нефть [11:52:26]line 02508201610067 [11:52:26]line Кассир : Адишов И. [11:52:26]line Счет N : (1)507773 [11:52:26]line 17.05.2024 11:34 [11:52:26]line ПРОДАЖА [11:52:26]line ТРК (МРК, ГНК): 31 [11:52:26]line Вид ГСМ : 2710194210 [11:52:26]line ДТ-К-5 [11:52:26]line 6.700 x 74.70 [11:52:26]line ИТОГ: 500.49 [11:52:26]line Тип оплаты: Талоны: Топливная Карта [11:52:26]line 02750 [11:52:26]line ______________________ [11:52:26]line (подпись) [11:52:26]written 0, free lines is 4095 [11:52:26]Write to MH i2c: 01 00 00 20 19 39 [11:52:26]Write i2c OK [11:52:26]MH_I2C_Read... [11:52:26]Read from MH i2c: 01 [11:52:26]MH_I2C_Read... [11:52:26]Read from MH i2c: 01 07 00 [11:52:26]MH_I2C_Read... [11:52:26]Read from MH i2c: 01 07 00 20 19 00 00 00 00 00 0C 0E 5A [11:52:26]RasterBufferAndPrint [11:52:26]line [11:52:26]line [11:52:26]line [11:52:26]line [11:52:26]line [11:52:26]written 0, free lines is 3597 [11:52:26]MH_Cut [11:52:26]Write to MH i2c: D1 01 00 27 19 01 12 [11:52:26]Write i2c OK [11:52:26]MH_I2C_Read... [11:52:26]Read from MH i2c: D1 [11:52:26]MH_I2C_Read... [11:52:26]Read from MH i2c: D1 01 00 [11:52:26]MH_I2C_Read... [11:52:26]Read from MH i2c: D1 01 00 27 19 00 11 [11:52:26]Write to MH i2c: 01 00 00 28 19 41 [11:52:26]Write i2c OK [11:52:26]MH_I2C_Read... [11:52:26]OFD Sender: No OFD packet to send [11:52:26]*** Cut start [11:52:26]*** Purtial cut [11:52:26]*** Stage 1: CUTSNS_PIN = 1 [11:52:27]Read from MH i2c: 01 [11:52:27]MH_I2C_Read... [11:52:27]*** Stop cut motor [11:52:27]*** Cut end [11:52:27]Read from MH i2c: 01 07 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: 01 07 00 28 19 00 00 00 00 00 FF 0F 56 [11:52:27]process_action print_text done [11:52:27]requested_data is exist [11:52:27]produce_requested_data [11:52:27]requested_item fm.sn is exist - process it [11:52:27]wFMCommunicate request_size=4 [11:52:27]MH_SAM_APDU [11:52:27]CAPDU: 80 11 00 00 [11:52:27]Write to MH i2c: E2 08 00 29 19 80 11 00 00 00 00 00 00 BC [11:52:27]Write i2c OK [11:52:27]MH_I2C_Read... [11:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:27]Read from MH i2c: E2 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 17 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 17 00 29 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 12 [11:52: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:52:27]wFMCommunicate OK [11:52:27]requested_item fd.num is exist - process it [11:52:27]SAM_PROTO_GetFieldsCounters [11:52:27]wFMCommunicate request_size=4 [11:52:27]MH_SAM_APDU [11:52:27]CAPDU: 80 13 00 00 [11:52:27]Write to MH i2c: E2 08 00 2A 19 80 13 00 00 00 00 00 00 BF [11:52:27]Write i2c OK [11:52:27]MH_I2C_Read... [11:52:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:27]Read from MH i2c: E2 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 62 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 62 00 2A 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 3C 08 01 00 0E 04 04 00 66 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 30 [11:52: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 3C 08 01 00 0E 04 04 00 66 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:52:27]wFMCommunicate OK [11:52:27]SAM_PROTO_GetFieldsCounters done [11:52:27]requested_item shift.num is exist - process it [11:52:27]requested_item shift.opened is exist - process it [11:52:27]req_shift_opened [11:52:27]FM_GetShiftState [11:52:27]SAM_PROTO_GetShiftState [11:52:27]wFMCommunicate request_size=4 [11:52:27]MH_SAM_APDU [11:52:27]CAPDU: 80 13 01 00 [11:52:27]Write to MH i2c: E2 08 00 2B 19 80 13 01 00 00 00 00 00 C1 [11:52:27]Write i2c OK [11:52:27]MH_I2C_Read... [11:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:27]Read from MH i2c: E2 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 0E 00 [11:52:27]MH_I2C_Read... [11:52:27]Read from MH i2c: E2 0E 00 2B 19 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 47 [11:52:27]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:52:27]wFMCommunicate OK [11:52:27]SAM_PROTO_GetShiftState done [11:52:27]FM_GetShiftState done [11:52:27]req_shift_opened done [11:52:27]requested_item shift.open_date is exist - process it [11:52:27]req_shift_open_date [11:52:27]req_shift_open_date done [11:52:27]produce_requested_data done [11:52:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67644,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:52:27]process_action_free print_text [11:52:27]json_value_free [11:52:27]json_value_free done [11:52:27]process_json_proto returns [11:52:27]Send response to host [11:52:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67644,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:52:27]free response buf [11:52:27]execute_script done [11:52:27]execute_script returns [11:52:27]free content buf [11:52:27]Sock 9.Close socket [11:52:27]Sock 9.Thread stoped [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:21]accept exits with 7 [11:53:21]New connection [11:53:21]New thread 3067395428 created [11:53:21]Thread 3067538788 joined [11:53:21]Waiting for new connection... [11:53:21] Sock 7.Parse request [11:53:21]Sock 7.Check first char [11:53:21]Sock 7.First char is OK [11:53:21]request: POST /json_proto HTTP/1.0 [11:53:21]Method: POST [11:53:21]URL: /json_proto [11:53:21]Method is POST - this is cgi request [11:53:21]url: /json_proto [11:53:21]query_string will be loaded in cgi processing [11:53:21]execute_cgi json_proto POST (null) [11:53:21]execute_cgi path=json_proto method=POST [11:53:21]POST find Content-Length [11:53:21]Host: 172.17.41.195:8080 [11:53:21]Content-Length: 670 [11:53:21]Content-Type: application/json [11:53:21] [11:53:21]POST finish read [11:53:21]Found Content-Length = 670 [11:53:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507772", "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" ] } } [11:53:21]execute_script... [11:53: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)507772", "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" ] } } [11:53:21]POST & json_proto [11:53:21]process_json_proto [11:53:21]json parsed OK: [11:53:21]protocol is kg_v1.0 [11:53:21]action value=close_receipt [11:53:21]process_action close_receipt [11:53:21]cmd_close_receipt [11:53:21]MH_GetDate [11:53:21]Write to MH i2c: F0 00 00 2C 19 34 [11:53:21]Write i2c OK [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: F0 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: F0 09 00 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: F0 09 00 2C 19 00 34 45 47 66 FC 21 6F 64 53 [11:53:21]GetLastDocTimeStamp 1715946301 [11:53:21]current date 1715946804 [11:53:21]FM_GetShiftState [11:53:21]SAM_PROTO_GetShiftState [11:53:21]wFMCommunicate request_size=4 [11:53:21]MH_SAM_APDU [11:53:21]CAPDU: 80 13 01 00 [11:53:21]Write to MH i2c: E2 08 00 2D 19 80 13 01 00 00 00 00 00 C3 [11:53:21]Write i2c OK [11:53:21]MH_I2C_Read... [11:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:21]Read from MH i2c: E2 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 0E 00 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 0E 00 2D 19 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 49 [11:53:21]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:53:21]wFMCommunicate OK [11:53:21]SAM_PROTO_GetShiftState done [11:53:21]FM_GetShiftState done [11:53:21]opened in 1715905068 [11:53:21]opened+sec_in_day 1715991468 [11:53:21]quantity*price = 50036 [11:53:21]sum+1 = 50037 [11:53:21]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 СНО: Общий режим Чек 54 17.05.2024 11:53 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67645 ФПД: 151251318231911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T115324&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67645&fm=151251318231911&tin=02508201610067®Number=0000000000091845&sum=50000 [11:53:22]StoreToDocumentArchive [11:53:22]shift 358 fd 67645 [11:53:22]save to /storage/0358/doc_00067645 [11:53:22]save last doc name /storage/0358/doc_00067645 to /storage/kkm_last_doc_name [11:53:22]save OK [11:53:22]Clear old archive folders... [11:53:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:53:22]tlvbuf is 016303D0 [11:53:22]SAM_PROTO_ClearQueue [11:53:22]wFMCommunicate request_size=4 [11:53:22]MH_SAM_APDU [11:53:22]CAPDU: 80 09 00 00 [11:53:22]Write to MH i2c: E2 08 00 3A 19 80 09 00 00 00 00 00 00 C5 [11:53:22]Write i2c OK [11:53:22]MH_I2C_Read... [11:53:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:22]Read from MH i2c: E2 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: E2 03 00 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: E2 03 00 3A 19 00 90 00 C7 [11:53:22]RAPDU: 90 00 [11:53:22]wFMCommunicate OK [11:53:22]SAM_PROTO_ClearQueue done [11:53:22]KKMCreateOFDPacket [11:53:22]OFDProtocolAddRootSTLVToBuf [11:53:22]FM_MakeSignedData [11:53:22]FM_MakeSignedData [11:53:22]SAM_PROTO_SignData [11:53:22]wFMCommunicate request_size=4 [11:53:22]MH_SAM_APDU [11:53:22]CAPDU: 80 0D 01 02 [11:53:22]Write to MH i2c: E2 08 00 3B 19 80 0D 01 02 00 00 00 00 CD [11:53:22]Write i2c OK [11:53:22]MH_I2C_Read... [11:53:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:22]Read from MH i2c: E2 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: E2 03 00 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: E2 03 00 3B 19 00 90 00 C8 [11:53:22]RAPDU: 90 00 [11:53:22]wFMCommunicate OK [11:53:22]wFMCommunicate request_size=255 [11:53:22]MH_SAM_APDU [11:53: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 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 36 00 00 00 F4 03 04 00 34 45 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 [11:53:22]Write to MH i2c: E2 02 01 3C 19 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 36 00 00 00 F4 03 04 00 34 45 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 00 00 84 [11:53:22]Write i2c OK [11:53:22]MH_I2C_Read... [11:53:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:23]Read from MH i2c: E2 [11:53:23]MH_I2C_Read... [11:53:23]Read from MH i2c: E2 03 00 [11:53:23]MH_I2C_Read... [11:53:23]Read from MH i2c: E2 03 00 3C 19 00 90 00 C9 [11:53:23]RAPDU: 90 00 [11:53:23]wFMCommunicate OK [11:53:23]wFMCommunicate request_size=11 [11:53:23]MH_SAM_APDU [11:53:23]CAPDU: 80 0D 02 02 06 89 8F F1 18 53 67 [11:53:23]Write to MH i2c: E2 0E 00 3D 19 80 0D 02 02 06 00 89 8F F1 18 53 67 00 00 B7 [11:53:23]Write i2c OK [11:53:23]MH_I2C_Read... [11:53:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:23]Read from MH i2c: E2 [11:53:23]MH_I2C_Read... [11:53:23]Read from MH i2c: E2 03 00 [11:53:23]MH_I2C_Read... [11:53:23]Read from MH i2c: E2 03 00 3D 19 00 90 00 CA [11:53:23]RAPDU: 90 00 [11:53:23]wFMCommunicate OK [11:53:23]wFMCommunicate request_size=4 [11:53:23]MH_SAM_APDU [11:53:23]CAPDU: 80 0D 03 02 [11:53:23]Write to MH i2c: E2 08 00 3E 19 80 0D 03 02 00 00 00 00 D2 [11:53:23]Write i2c OK [11:53:23]MH_I2C_Read... [11:53:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:23]Read from MH i2c: E2 [11:53:23]MH_I2C_Read... [11:53:23]Read from MH i2c: E2 0B 00 [11:53:23]MH_I2C_Read... [11:53:23]Read from MH i2c: E2 0B 00 3E 19 00 9C D0 2F AA 91 5F 86 19 90 00 A7 [11:53:23]RAPDU: 9C D0 2F AA 91 5F 86 19 90 00 [11:53:23]wFMCommunicate OK [11:53:23]SAM_PROTO_SignData done [11:53:23]FM_MakeSignedData done [11:53:23]CreateOFDProtocolMessage [11:53:23]wFMCommunicate request_size=4 [11:53:23]MH_SAM_APDU [11:53:23]CAPDU: 80 11 00 00 [11:53:23]Write to MH i2c: E2 08 00 3F 19 80 11 00 00 00 00 00 00 D2 [11:53:23]Write i2c OK [11:53:23]MH_I2C_Read... [11:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:23]Read from MH i2c: E2 [11:53:23]MH_I2C_Read... [11:53:23]Read from MH i2c: E2 17 00 [11:53:23]MH_I2C_Read... [11:53:23]Read from MH i2c: E2 17 00 3F 19 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:53: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:53:23]wFMCommunicate OK [11:53:23]CreateOFDProtocolMessage done [11:53:23]OFDSenderStorePacket 67645 [11:53:23]StoreOFDPacket docnum=67645 [11:53: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 7D 3C 08 01 FC 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 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 36 00 00 00 F4 03 04 00 34 45 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 89 8F F1 18 53 67 9C D0 2F AA 91 5F 86 19 [11:53:23]CheckFolder [11:53:23]dirname=/storage/ofd_packets [11:53:23]CheckFolder done [11:53:23]ProducePacketName [11:53:23]name=ofd_packets/00067645 [11:53:23]NVStorageSaveData ofd_packets/00067645 [11:53:23]File name is /storage/ofd_packets/00067645 [11:53:23]Write 302 bytes [11:53:23]NVStorageSaveData done [11:53:23]OFDSenderStorePacket done [11:53:23]KKMCreateOFDPacket done [11:53:23]NVStorageSaveData kkm_last_timestamp [11:53:23]File name is /storage/kkm_last_timestamp [11:53:23]Write 4 bytes [11:53:23]NVStorageSaveData done [11:53:23]ExternCall_PrintAddStr [11:53:23]wPrintStart [11:53:23]Write to MH i2c: 01 00 00 40 19 59 [11:53:23]Write i2c OK [11:53:23]MH_I2C_Read... [11:53:23]Read from MH i2c: 01 [11:53:23]MH_I2C_Read... [11:53:23]Read from MH i2c: 01 07 00 [11:53:23]MH_I2C_Read... [11:53:23]Read from MH i2c: 01 07 00 40 19 00 00 00 00 00 FF 0F 6E [11:53:23]RasterBufferAndPrint [11:53:23]line Счет N : (1)507772 [11:53:23]line ИНН: 02508201610067 [11:53:23]line Контрольно-Кассовый Чек [11:53:23]line ПРОДАЖА [11:53:23]line ТРК (МРК, ГНК) : 12 [11:53:23]line Товар: 2710124130 [11:53:23]line Super-92-К-5 [11:53:23]line 7.380 * 67.80 [11:53:23]line = 500.36 [11:53:23]line НДС 12% НСП 1% [11:53:23]line > о реализуемом товаре [11:53:23]line ОКРУГЛЕНИЕ: -0.36 [11:53:23]line ИТОГО: 500.00 [11:53:23]line Внесено: 500.00 [11:53:23]line СДАЧА: 0.00 [11:53:23]line НСП 1% : 4.43 [11:53:23]line НДС 12% : 53.14 [11:53:23]line Наличными: 500.00 [11:53:23]line Безнал.: 0.00 [11:53:23]line Место: АЗС № 91 "Партнер Нефть" [11:53:23]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:53:23]line СНО: Общий режим [11:53:23]line Чек 54 17.05.2024 11:53 [11:53:23]line Смена: 358 ФФД: 1.0 [11:53:23]line ЗНМ: 0300000119 [11:53:23]line РНМ: 0000000000091845 [11:53:23]line Версия ККМ: 001 [11:53:23]line ФМ: 0000000000871829 [11:53:23]line ФД: 67645 [11:53:23]line ФПД: 151251318231911 [11:53:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T115324&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67645&fm=151251318231911&tin=02508201610067®Number=0000000000091845&sum=50000 [11:53:23]written 0, free lines is 4095 [11:53:23]OFD Sender: Processing packet 67645 [packets to send 35, broken 34] [11:53:23]ProducePacketName [11:53:23]name=ofd_packets/00067645 [11:53:23]OFD Sender: To server: pG, [11:53:23]CommunicateWithHost lk.salyk.kg:30040 [11:53:23]ConnectInit lk.salyk.kg [11:53:23]Connected sock=10 [11:53: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 7D 3C 08 01 FC 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 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 36 00 00 00 F4 03 04 00 34 45 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 89 8F F1 18 53 67 9C D0 2F AA 91 5F 86 19 [11:53: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 D2 AE 47 00 CA 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3D 08 01 00 F4 03 04 00 0D ED 46 66 B6 04 01 00 00 47 09 27 66 AD F3 80 CB [11:53:24]CommunicateWithHost err = 0 [11:53:24]CheckOFDResponse [11:53:24]1017 (14) - 77093643461234 [11:53:24]1041 (16) - 0000000000871829 [11:53:24]1040 (4) - 67645 [11:53:24]1012 (4) - 17.05.2024 05:37 [11:53:24]1206 (1) - 0 [11:53:24]OFD Sender: Remove packet 67645 [11:53:24]ProducePacketName [11:53:24]name=ofd_packets/00067645 [11:53:24]NVStorageDeleteData [11:53:24]Write to MH i2c: 01 00 00 6A 19 83 [11:53:24]Write i2c OK [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: 01 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: 01 07 00 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: 01 07 00 6A 19 00 00 00 00 00 CB 0C 61 [11:53:24]RasterBufferAndPrint [11:53:24]line [11:53:24]line [11:53:24]line [11:53:24]line [11:53:24]line [11:53:24]written 0, free lines is 3281 [11:53:24]MH_Cut [11:53:24]Write to MH i2c: D1 01 00 71 19 01 5C [11:53:24]Write i2c OK [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: D1 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: D1 01 00 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: D1 01 00 71 19 00 5B [11:53:24]Write to MH i2c: 01 00 00 72 19 8B [11:53:24]Write i2c OK [11:53:24]MH_I2C_Read... [11:53:24]OFD Sender: No OFD packet to send [11:53:24]*** Cut start [11:53:24]*** Purtial cut [11:53:24]*** CUTSNS_PIN = 0 [11:53:25]*** Stage 1: CUTSNS_PIN = 1 [11:53:26]Read from MH i2c: 01 [11:53:26]MH_I2C_Read... [11:53:26]*** Stop cut motor [11:53:26]*** Cut end [11:53:26]Read from MH i2c: 01 07 00 [11:53:26]MH_I2C_Read... [11:53:26]Read from MH i2c: 01 07 00 72 19 00 00 00 00 00 FF 0F A0 [11:53:26]process_action close_receipt done [11:53:26]requested_data is exist [11:53:26]produce_requested_data [11:53:26]requested_item fm.sn is exist - process it [11:53:26]wFMCommunicate request_size=4 [11:53:26]MH_SAM_APDU [11:53:26]CAPDU: 80 11 00 00 [11:53:26]Write to MH i2c: E2 08 00 73 19 80 11 00 00 00 00 00 00 06 [11:53:26]Write i2c OK [11:53:26]MH_I2C_Read... [11:53:27]Read from MH i2c: E2 [11:53:27]MH_I2C_Read... [11:53:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:27]Read from MH i2c: E2 17 00 [11:53:27]MH_I2C_Read... [11:53:27]Read from MH i2c: E2 17 00 73 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5C [11:53: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:53:27]wFMCommunicate OK [11:53:27]requested_item fd.num is exist - process it [11:53:27]SAM_PROTO_GetFieldsCounters [11:53:27]wFMCommunicate request_size=4 [11:53:27]MH_SAM_APDU [11:53:27]CAPDU: 80 13 00 00 [11:53:27]Write to MH i2c: E2 08 00 74 19 80 13 00 00 00 00 00 00 09 [11:53:27]Write i2c OK [11:53:27]MH_I2C_Read... [11:53:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:27]Read from MH i2c: E2 [11:53:27]MH_I2C_Read... [11:53:27]Read from MH i2c: E2 62 00 [11:53:27]MH_I2C_Read... [11:53:27]Read from MH i2c: E2 62 00 74 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 3D 08 01 00 0E 04 04 00 66 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 7E [11:53: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 3D 08 01 00 0E 04 04 00 66 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:53:27]wFMCommunicate OK [11:53:27]SAM_PROTO_GetFieldsCounters done [11:53:27]requested_item shift.num is exist - process it [11:53:27]requested_item shift.opened is exist - process it [11:53:27]req_shift_opened [11:53:27]FM_GetShiftState [11:53:27]SAM_PROTO_GetShiftState [11:53:27]wFMCommunicate request_size=4 [11:53:27]MH_SAM_APDU [11:53:27]CAPDU: 80 13 01 00 [11:53:27]Write to MH i2c: E2 08 00 75 19 80 13 01 00 00 00 00 00 0B [11:53:27]Write i2c OK [11:53:27]MH_I2C_Read... [11:53:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:27]Read from MH i2c: E2 [11:53:27]MH_I2C_Read... [11:53:27]Read from MH i2c: E2 0E 00 [11:53:27]MH_I2C_Read... [11:53:27]Read from MH i2c: E2 0E 00 75 19 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 91 [11:53:27]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:53:27]wFMCommunicate OK [11:53:27]SAM_PROTO_GetShiftState done [11:53:27]FM_GetShiftState done [11:53:27]req_shift_opened done [11:53:27]requested_item shift.open_date is exist - process it [11:53:27]req_shift_open_date [11:53:27]req_shift_open_date done [11:53:27]produce_requested_data done [11:53:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67645,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:53:27]process_action_free close_receipt [11:53:27]json_value_free [11:53:27]json_value_free done [11:53:27]process_json_proto returns [11:53:27]Send response to host [11:53:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67645,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:53:27]free response buf [11:53:27]execute_script done [11:53:27]execute_script returns [11:53:27]free content buf [11:53:27]Sock 7.Close socket [11:53:27]Sock 7.Thread stoped [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:06]accept exits with 9 [11:55:06]New connection [11:55:06]New thread 3067538788 created [11:55:06]Thread 3067395428 joined [11:55:06]Waiting for new connection... [11:55:06] Sock 9.Parse request [11:55:06]Sock 9.Check first char [11:55:06]Sock 9.First char is OK [11:55:06]request: POST /json_proto HTTP/1.0 [11:55:06]Method: POST [11:55:06]URL: /json_proto [11:55:06]Method is POST - this is cgi request [11:55:06]url: /json_proto [11:55:06]query_string will be loaded in cgi processing [11:55:06]execute_cgi json_proto POST (null) [11:55:06]execute_cgi path=json_proto method=POST [11:55:06]POST find Content-Length [11:55:06]Host: 172.17.41.195:8080 [11:55:06]Content-Length: 679 [11:55:06]Content-Type: application/json [11:55:06] [11:55:06]POST finish read [11:55:06]Found Content-Length = 679 [11:55:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507774", "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 }]} ], "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" ] } } [11:55:06]execute_script... [11:55: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)507774", "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 }]} ], "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" ] } } [11:55:06]POST & json_proto [11:55:06]process_json_proto [11:55:06]json parsed OK: [11:55:06]protocol is kg_v1.0 [11:55:06]action value=close_receipt [11:55:06]process_action close_receipt [11:55:06]cmd_close_receipt [11:55:06]MH_GetDate [11:55:06]Write to MH i2c: F0 00 00 76 19 7E [11:55:06]Write i2c OK [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: F0 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: F0 09 00 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: F0 09 00 76 19 00 9D 45 47 66 FC 21 6F 64 06 [11:55:06]GetLastDocTimeStamp 1715946804 [11:55:06]current date 1715946909 [11:55:06]FM_GetShiftState [11:55:06]SAM_PROTO_GetShiftState [11:55:06]wFMCommunicate request_size=4 [11:55:06]MH_SAM_APDU [11:55:06]CAPDU: 80 13 01 00 [11:55:06]Write to MH i2c: E2 08 00 77 19 80 13 01 00 00 00 00 00 0D [11:55:06]Write i2c OK [11:55:06]MH_I2C_Read... [11:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:06]Read from MH i2c: E2 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: E2 0E 00 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: E2 0E 00 77 19 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 93 [11:55:06]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:55:06]wFMCommunicate OK [11:55:06]SAM_PROTO_GetShiftState done [11:55:06]FM_GetShiftState done [11:55:06]opened in 1715905068 [11:55:06]opened+sec_in_day 1715991468 [11:55:06]quantity*price = 150072 [11:55:06]sum+1 = 150073 [11:55:06]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 СНО: Общий режим Чек 55 17.05.2024 11:55 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67646 ФПД: 107556396188639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T115509&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67646&fm=107556396188639&tin=02508201610067®Number=0000000000091845&sum=150000 [11:55:07]StoreToDocumentArchive [11:55:07]shift 358 fd 67646 [11:55:07]save to /storage/0358/doc_00067646 [11:55:07]save last doc name /storage/0358/doc_00067646 to /storage/kkm_last_doc_name [11:55:07]save OK [11:55:07]Clear old archive folders... [11:55:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:55:07]tlvbuf is 015CE540 [11:55:07]SAM_PROTO_ClearQueue [11:55:07]wFMCommunicate request_size=4 [11:55:07]MH_SAM_APDU [11:55:07]CAPDU: 80 09 00 00 [11:55:07]Write to MH i2c: E2 08 00 84 19 80 09 00 00 00 00 00 00 0F [11:55:07]Write i2c OK [11:55:07]MH_I2C_Read... [11:55:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:07]Read from MH i2c: E2 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 03 00 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 03 00 84 19 00 90 00 11 [11:55:07]RAPDU: 90 00 [11:55:07]wFMCommunicate OK [11:55:07]SAM_PROTO_ClearQueue done [11:55:07]KKMCreateOFDPacket [11:55:07]OFDProtocolAddRootSTLVToBuf [11:55:07]FM_MakeSignedData [11:55:07]FM_MakeSignedData [11:55:07]SAM_PROTO_SignData [11:55:07]wFMCommunicate request_size=4 [11:55:07]MH_SAM_APDU [11:55:07]CAPDU: 80 0D 01 02 [11:55:07]Write to MH i2c: E2 08 00 85 19 80 0D 01 02 00 00 00 00 17 [11:55:07]Write i2c OK [11:55:07]MH_I2C_Read... [11:55:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:07]Read from MH i2c: E2 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 03 00 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 03 00 85 19 00 90 00 12 [11:55:07]RAPDU: 90 00 [11:55:07]wFMCommunicate OK [11:55:07]wFMCommunicate request_size=255 [11:55:07]MH_SAM_APDU [11:55: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 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 37 00 00 00 F4 03 04 00 9D 45 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 61 D2 6C C9 [11:55:07]Write to MH i2c: E2 02 01 86 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 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 37 00 00 00 F4 03 04 00 9D 45 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 61 D2 6C C9 00 00 16 [11:55:07]Write i2c OK [11:55:07]MH_I2C_Read... [11:55:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:08]Read from MH i2c: E2 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 03 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 03 00 86 19 00 90 00 13 [11:55:08]RAPDU: 90 00 [11:55:08]wFMCommunicate OK [11:55:08]wFMCommunicate request_size=7 [11:55:08]MH_SAM_APDU [11:55:08]CAPDU: 80 0D 02 02 02 C3 DF [11:55:08]Write to MH i2c: E2 0A 00 87 19 80 0D 02 02 02 00 C3 DF 00 00 C0 [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:08]Read from MH i2c: E2 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 03 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 03 00 87 19 00 90 00 14 [11:55:08]RAPDU: 90 00 [11:55:08]wFMCommunicate OK [11:55:08]wFMCommunicate request_size=4 [11:55:08]MH_SAM_APDU [11:55:08]CAPDU: 80 0D 03 02 [11:55:08]Write to MH i2c: E2 08 00 88 19 80 0D 03 02 00 00 00 00 1C [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:08]Read from MH i2c: E2 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 0B 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 0B 00 88 19 00 02 BD 58 03 39 B4 8F 7E 90 00 31 [11:55:08]RAPDU: 02 BD 58 03 39 B4 8F 7E 90 00 [11:55:08]wFMCommunicate OK [11:55:08]SAM_PROTO_SignData done [11:55:08]FM_MakeSignedData done [11:55:08]CreateOFDProtocolMessage [11:55:08]wFMCommunicate request_size=4 [11:55:08]MH_SAM_APDU [11:55:08]CAPDU: 80 11 00 00 [11:55:08]Write to MH i2c: E2 08 00 89 19 80 11 00 00 00 00 00 00 1C [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:08]Read from MH i2c: E2 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 17 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 17 00 89 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 72 [11:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:55:08]wFMCommunicate OK [11:55:08]CreateOFDProtocolMessage done [11:55:08]OFDSenderStorePacket 67646 [11:55:08]StoreOFDPacket docnum=67646 [11:55: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 D3 78 04 01 7B 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 37 00 00 00 F4 03 04 00 9D 45 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 61 D2 6C C9 C3 DF 02 BD 58 03 39 B4 8F 7E [11:55:08]CheckFolder [11:55:08]dirname=/storage/ofd_packets [11:55:08]CheckFolder done [11:55:08]ProducePacketName [11:55:08]name=ofd_packets/00067646 [11:55:08]NVStorageSaveData ofd_packets/00067646 [11:55:08]File name is /storage/ofd_packets/00067646 [11:55:08]Write 298 bytes [11:55:08]NVStorageSaveData done [11:55:08]OFDSenderStorePacket done [11:55:08]KKMCreateOFDPacket done [11:55:08]NVStorageSaveData kkm_last_timestamp [11:55:08]File name is /storage/kkm_last_timestamp [11:55:08]Write 4 bytes [11:55:08]NVStorageSaveData done [11:55:08]ExternCall_PrintAddStr [11:55:08]wPrintStart [11:55:08]Write to MH i2c: 01 00 00 8A 19 A3 [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: 01 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: 01 07 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: 01 07 00 8A 19 00 00 00 00 00 FF 0F B8 [11:55:08]RasterBufferAndPrint [11:55:08]line Счет N : (1)507774 [11:55:08]line ИНН: 02508201610067 [11:55:08]line Контрольно-Кассовый Чек [11:55:08]line ПРОДАЖА [11:55:08]line ТРК (МРК, ГНК) : 11 [11:55:08]line Товар: 2710194210 [11:55:08]line ДТ-К-5 [11:55:08]line 20.090 * 74.70 [11:55:08]line = 1500.72 [11:55:08]line НДС 12% НСП 1% [11:55:08]line > о реализуемом товаре [11:55:08]line ОКРУГЛЕНИЕ: -0.72 [11:55:08]line ИТОГО: 1500.00 [11:55:08]line Внесено: 1500.00 [11:55:08]line СДАЧА: 0.00 [11:55:08]line НСП 1% : 13.28 [11:55:08]line НДС 12% : 159.37 [11:55:08]line Наличными: 1500.00 [11:55:08]line Безнал.: 0.00 [11:55:08]line Место: АЗС № 91 "Партнер Нефть" [11:55:08]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:55:08]line СНО: Общий режим [11:55:08]line Чек 55 17.05.2024 11:55 [11:55:08]line Смена: 358 ФФД: 1.0 [11:55:08]line ЗНМ: 0300000119 [11:55:08]line РНМ: 0000000000091845 [11:55:08]line Версия ККМ: 001 [11:55:08]line ФМ: 0000000000871829 [11:55:08]line ФД: 67646 [11:55:08]line ФПД: 107556396188639 [11:55:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T115509&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67646&fm=107556396188639&tin=02508201610067®Number=0000000000091845&sum=150000 [11:55:08]OFD Sender: Processing packet 67646 [packets to send 35, broken 34] [11:55:08]ProducePacketName [11:55:08]name=ofd_packets/00067646 [11:55:08]OFD Sender: To server: pG, [11:55:08]CommunicateWithHost lk.salyk.kg:30040 [11:55:08]ConnectInit lk.salyk.kg [11:55:08]written 0, free lines is 4095 [11:55:08]Connected sock=10 [11:55: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 D3 78 04 01 7B 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 37 00 00 00 F4 03 04 00 9D 45 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 61 D2 6C C9 C3 DF 02 BD 58 03 39 B4 8F 7E [11:55: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 12 20 47 00 0E B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 75 ED 46 66 B6 04 01 00 00 20 34 4C AF 88 15 CC 0A [11:55:08]CommunicateWithHost err = 0 [11:55:08]CheckOFDResponse [11:55:08]1017 (14) - 77093643461234 [11:55:08]1041 (16) - 0000000000871829 [11:55:08]1040 (4) - 67646 [11:55:08]1012 (4) - 17.05.2024 05:39 [11:55:08]1206 (1) - 0 [11:55:08]OFD Sender: Remove packet 67646 [11:55:08]ProducePacketName [11:55:08]name=ofd_packets/00067646 [11:55:08]NVStorageDeleteData [11:55:08]Write to MH i2c: 01 00 00 B4 19 CD [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: 01 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: 01 07 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: 01 07 00 B4 19 00 00 00 00 00 CE 0C AE [11:55:08]RasterBufferAndPrint [11:55:08]line [11:55:08]line [11:55:08]line [11:55:08]line [11:55:08]line [11:55:08]written 0, free lines is 3284 [11:55:08]MH_Cut [11:55:08]Write to MH i2c: D1 01 00 BB 19 01 A6 [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: D1 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: D1 01 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: D1 01 00 BB 19 00 A5 [11:55:08]Write to MH i2c: 01 00 00 BC 19 D5 [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:09]OFD Sender: No OFD packet to send [11:55:09]*** Cut start [11:55:09]*** Purtial cut [11:55:09]*** Stage 1: CUTSNS_PIN = 1 [11:55:10]Read from MH i2c: 01 [11:55:10]MH_I2C_Read... [11:55:10]*** Stop cut motor [11:55:10]*** Cut end [11:55:10]Read from MH i2c: 01 07 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: 01 07 00 BC 19 00 00 00 00 00 FF 0F EA [11:55:10]process_action close_receipt done [11:55:10]requested_data is exist [11:55:10]produce_requested_data [11:55:10]requested_item fm.sn is exist - process it [11:55:10]wFMCommunicate request_size=4 [11:55:10]MH_SAM_APDU [11:55:10]CAPDU: 80 11 00 00 [11:55:10]Write to MH i2c: E2 08 00 BD 19 80 11 00 00 00 00 00 00 50 [11:55:10]Write i2c OK [11:55:10]MH_I2C_Read... [11:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:10]Read from MH i2c: E2 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 17 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 17 00 BD 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A6 [11:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:55:10]wFMCommunicate OK [11:55:10]requested_item fd.num is exist - process it [11:55:10]SAM_PROTO_GetFieldsCounters [11:55:10]wFMCommunicate request_size=4 [11:55:10]MH_SAM_APDU [11:55:10]CAPDU: 80 13 00 00 [11:55:10]Write to MH i2c: E2 08 00 BE 19 80 13 00 00 00 00 00 00 53 [11:55:10]Write i2c OK [11:55:10]MH_I2C_Read... [11:55:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:10]Read from MH i2c: E2 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 62 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 62 00 BE 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 3E 08 01 00 0E 04 04 00 66 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 CC [11:55: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 3E 08 01 00 0E 04 04 00 66 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:55:10]wFMCommunicate OK [11:55:10]SAM_PROTO_GetFieldsCounters done [11:55:10]requested_item shift.num is exist - process it [11:55:10]requested_item shift.opened is exist - process it [11:55:10]req_shift_opened [11:55:10]FM_GetShiftState [11:55:10]SAM_PROTO_GetShiftState [11:55:10]wFMCommunicate request_size=4 [11:55:10]MH_SAM_APDU [11:55:10]CAPDU: 80 13 01 00 [11:55:10]Write to MH i2c: E2 08 00 BF 19 80 13 01 00 00 00 00 00 55 [11:55:10]Write i2c OK [11:55:10]MH_I2C_Read... [11:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:10]Read from MH i2c: E2 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 0E 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 0E 00 BF 19 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 DB [11:55:10]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:55:10]wFMCommunicate OK [11:55:10]SAM_PROTO_GetShiftState done [11:55:10]FM_GetShiftState done [11:55:10]req_shift_opened done [11:55:10]requested_item shift.open_date is exist - process it [11:55:10]req_shift_open_date [11:55:10]req_shift_open_date done [11:55:10]produce_requested_data done [11:55:10]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67646,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:55:10]process_action_free close_receipt [11:55:10]json_value_free [11:55:10]json_value_free done [11:55:10]process_json_proto returns [11:55:10]Send response to host [11:55:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67646,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:55:10]free response buf [11:55:10]execute_script done [11:55:10]execute_script returns [11:55:10]free content buf [11:55:10]Sock 9.Close socket [11:55:10]Sock 9.Thread stoped [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:42]accept exits with 7 [11:55:42]New connection [11:55:42]New thread 3067395428 created [11:55:42]Thread 3067538788 joined [11:55:42]Waiting for new connection... [11:55:42] Sock 7.Parse request [11:55:42]Sock 7.Check first char [11:55:42]Sock 7.First char is OK [11:55:42]request: POST /json_proto HTTP/1.0 [11:55:42]Method: POST [11:55:42]URL: /json_proto [11:55:42]Method is POST - this is cgi request [11:55:42]url: /json_proto [11:55:42]query_string will be loaded in cgi processing [11:55:42]execute_cgi json_proto POST (null) [11:55:42]execute_cgi path=json_proto method=POST [11:55:42]POST find Content-Length [11:55:42]Host: 172.17.41.195:8080 [11:55:42]Content-Length: 654 [11:55:42]Content-Type: application/json [11:55:42] [11:55:42]POST finish read [11:55:42]Found Content-Length = 654 [11:55:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12102", "tax_sys" : 0, "items" : [ { "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 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" ] } } [11:55:42]execute_script... [11:55: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 : (3)12102", "tax_sys" : 0, "items" : [ { "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 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" ] } } [11:55:42]POST & json_proto [11:55:42]process_json_proto [11:55:42]json parsed OK: [11:55:42]protocol is kg_v1.0 [11:55:42]action value=close_receipt [11:55:42]process_action close_receipt [11:55:42]cmd_close_receipt [11:55:42]MH_GetDate [11:55:42]Write to MH i2c: F0 00 00 C0 19 C8 [11:55:42]Write i2c OK [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: F0 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: F0 09 00 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: F0 09 00 C0 19 00 C1 45 47 66 FC 21 6F 64 74 [11:55:42]GetLastDocTimeStamp 1715946909 [11:55:42]current date 1715946945 [11:55:42]FM_GetShiftState [11:55:42]SAM_PROTO_GetShiftState [11:55:42]wFMCommunicate request_size=4 [11:55:42]MH_SAM_APDU [11:55:42]CAPDU: 80 13 01 00 [11:55:42]Write to MH i2c: E2 08 00 C1 19 80 13 01 00 00 00 00 00 57 [11:55:42]Write i2c OK [11:55:42]MH_I2C_Read... [11:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:42]Read from MH i2c: E2 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 0E 00 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 0E 00 C1 19 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 DD [11:55:42]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:55:42]wFMCommunicate OK [11:55:42]SAM_PROTO_GetShiftState done [11:55:42]FM_GetShiftState done [11:55:42]opened in 1715905068 [11:55:42]opened+sec_in_day 1715991468 [11:55:42]quantity*price = 4500 [11:55:42]sum+1 = 4501 [11:55:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 56 17.05.2024 11:55 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67647 ФПД: 250285664507892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T115545&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67647&fm=250285664507892&tin=02508201610067®Number=0000000000091845&sum=4500 0 [11:55:43]StoreToDocumentArchive [11:55:43]shift 358 fd 67647 [11:55:43]save to /storage/0358/doc_00067647 [11:55:43]save last doc name /storage/0358/doc_00067647 to /storage/kkm_last_doc_name [11:55:43]save OK [11:55:43]Clear old archive folders... [11:55:43]ProcessDocumentItem done err = 0, tmpTLVsize=282 [11:55:43]tlvbuf is B6F505F0 [11:55:43]SAM_PROTO_ClearQueue [11:55:43]wFMCommunicate request_size=4 [11:55:43]MH_SAM_APDU [11:55:43]CAPDU: 80 09 00 00 [11:55:43]Write to MH i2c: E2 08 00 CE 19 80 09 00 00 00 00 00 00 59 [11:55:43]Write i2c OK [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 [11:55:43]MH_I2C_Read... [11:55:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:43]Read from MH i2c: E2 03 00 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 03 00 CE 19 00 90 00 5B [11:55:43]RAPDU: 90 00 [11:55:43]wFMCommunicate OK [11:55:43]SAM_PROTO_ClearQueue done [11:55:43]KKMCreateOFDPacket [11:55:43]OFDProtocolAddRootSTLVToBuf [11:55:43]FM_MakeSignedData [11:55:43]FM_MakeSignedData [11:55:43]SAM_PROTO_SignData [11:55:43]wFMCommunicate request_size=4 [11:55:43]MH_SAM_APDU [11:55:43]CAPDU: 80 0D 01 02 [11:55:43]Write to MH i2c: E2 08 00 CF 19 80 0D 01 02 00 00 00 00 61 [11:55:43]Write i2c OK [11:55:43]MH_I2C_Read... [11:55:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:43]Read from MH i2c: E2 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 03 00 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 03 00 CF 19 00 90 00 5C [11:55:43]RAPDU: 90 00 [11:55:43]wFMCommunicate OK [11:55:43]wFMCommunicate request_size=255 [11:55:43]MH_SAM_APDU [11:55:43]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 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 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 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 38 00 00 00 F4 03 04 00 C1 45 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 [11:55:43]Write to MH i2c: E2 02 01 D0 19 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 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 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 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 38 00 00 00 F4 03 04 00 C1 45 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 00 00 9A [11:55:43]Write i2c OK [11:55:43]MH_I2C_Read... [11:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:43]Read from MH i2c: E2 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 03 00 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 03 00 D0 19 00 90 00 5D [11:55:43]RAPDU: 90 00 [11:55:43]wFMCommunicate OK [11:55:43]wFMCommunicate request_size=41 [11:55:43]MH_SAM_APDU [11:55:43]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3F 08 01 00 35 04 06 00 E3 A2 2C 20 17 F4 [11:55:43]Write to MH i2c: E2 2C 00 D1 19 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3F 08 01 00 35 04 06 00 E3 A2 2C 20 17 F4 00 00 5A [11:55:43]Write i2c OK [11:55:43]MH_I2C_Read... [11:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:43]Read from MH i2c: E2 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 03 00 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 03 00 D1 19 00 90 00 5E [11:55:43]RAPDU: 90 00 [11:55:43]wFMCommunicate OK [11:55:43]wFMCommunicate request_size=4 [11:55:43]MH_SAM_APDU [11:55:43]CAPDU: 80 0D 03 02 [11:55:43]Write to MH i2c: E2 08 00 D2 19 80 0D 03 02 00 00 00 00 66 [11:55:43]Write i2c OK [11:55:43]MH_I2C_Read... [11:55:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:44]Read from MH i2c: E2 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: E2 0B 00 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: E2 0B 00 D2 19 00 75 94 F2 6E 53 C3 A2 B5 90 00 3D [11:55:44]RAPDU: 75 94 F2 6E 53 C3 A2 B5 90 00 [11:55:44]wFMCommunicate OK [11:55:44]SAM_PROTO_SignData done [11:55:44]FM_MakeSignedData done [11:55:44]CreateOFDProtocolMessage [11:55:44]wFMCommunicate request_size=4 [11:55:44]MH_SAM_APDU [11:55:44]CAPDU: 80 11 00 00 [11:55:44]Write to MH i2c: E2 08 00 D3 19 80 11 00 00 00 00 00 00 66 [11:55:44]Write i2c OK [11:55:44]MH_I2C_Read... [11:55:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:44]Read from MH i2c: E2 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: E2 17 00 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: E2 17 00 D3 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BC [11:55: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:55:44]wFMCommunicate OK [11:55:44]CreateOFDProtocolMessage done [11:55:44]OFDSenderStorePacket 67647 [11:55:44]StoreOFDPacket docnum=67647 [11:55: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 2E 01 00 00 25 B7 26 01 29 17 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 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 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 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 38 00 00 00 F4 03 04 00 C1 45 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 E3 A2 2C 20 17 F4 75 94 F2 6E 53 C3 A2 B5 [11:55:44]CheckFolder [11:55:44]dirname=/storage/ofd_packets [11:55:44]CheckFolder done [11:55:44]ProducePacketName [11:55:44]name=ofd_packets/00067647 [11:55:44]NVStorageSaveData ofd_packets/00067647 [11:55:44]File name is /storage/ofd_packets/00067647 [11:55:44]Write 332 bytes [11:55:44]NVStorageSaveData done [11:55:44]OFDSenderStorePacket done [11:55:44]KKMCreateOFDPacket done [11:55:44]NVStorageSaveData kkm_last_timestamp [11:55:44]File name is /storage/kkm_last_timestamp [11:55:44]Write 4 bytes [11:55:44]NVStorageSaveData done [11:55:44]ExternCall_PrintAddStr [11:55:44]wPrintStart [11:55:44]Write to MH i2c: 01 00 00 D4 19 ED [11:55:44]Write i2c OK [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: 01 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: 01 07 00 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: 01 07 00 D4 19 00 00 00 00 00 FF 0F 02 [11:55:44]RasterBufferAndPrint [11:55:44]line Счет N : (3)12102 [11:55:44]line ИНН: 02508201610067 [11:55:44]line Контрольно-Кассовый Чек [11:55:44]line ПРОДАЖА [11:55:44]line Товар: 4870001159955 [11:55:44]line Вода ASU пит н.газ ПЭТ 1л [11:55:44]line 1.000 * 45.00 [11:55:44]line = 45.00 [11:55:44]line НДС 12% НСП 1% [11:55:44]line > о реализуемом товаре [11:55:44]line ИТОГО: 45.00 [11:55:44]line НСП 1% : 0.40 [11:55:44]line НДС 12% : 4.78 [11:55:44]line Наличными: 45.00 [11:55:44]line Безнал.: 0.00 [11:55:44]line Место: АЗС № 91 "Партнер Нефть" [11:55:44]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:55:44]line СНО: Общий режим [11:55:44]line Чек 56 17.05.2024 11:55 [11:55:44]line Смена: 358 ФФД: 1.0 [11:55:44]line ЗНМ: 0300000119 [11:55:44]line РНМ: 0000000000091845 [11:55:44]line Версия ККМ: 001 [11:55:44]line ФМ: 0000000000871829 [11:55:44]line ФД: 67647 [11:55:44]line ФПД: 250285664507892 [11:55:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T115545&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67647&fm=250285664507892&tin=02508201610067®Number=0000000000091845&sum=4500 [11:55:44]line 0 [11:55:44]OFD Sender: Processing packet 67647 [packets to send 35, broken 34] [11:55:44]ProducePacketName [11:55:44]name=ofd_packets/00067647 [11:55:44]OFD Sender: To server: pG, [11:55:44]CommunicateWithHost lk.salyk.kg:30040 [11:55:44]ConnectInit lk.salyk.kg [11:55:44]written 0, free lines is 4095 [11:55:44]Connected sock=10 [11:55: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 2E 01 00 00 25 B7 26 01 29 17 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 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 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 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 38 00 00 00 F4 03 04 00 C1 45 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 E3 A2 2C 20 17 F4 75 94 F2 6E 53 C3 A2 B5 [11:55: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 91 9F 47 00 20 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 3F 08 01 00 F4 03 04 00 99 ED 46 66 B6 04 01 00 00 9B 4A B0 5B F8 7F B2 B0 [11:55:44]CommunicateWithHost err = 0 [11:55:44]CheckOFDResponse [11:55:44]1017 (14) - 77093643461234 [11:55:44]1041 (16) - 0000000000871829 [11:55:44]1040 (4) - 67647 [11:55:44]1012 (4) - 17.05.2024 05:39 [11:55:44]1206 (1) - 0 [11:55:44]OFD Sender: Remove packet 67647 [11:55:44]ProducePacketName [11:55:44]name=ofd_packets/00067647 [11:55:44]NVStorageDeleteData [11:55:44]Write to MH i2c: 01 00 00 FB 19 14 [11:55:44]Write i2c OK [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: 01 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: 01 07 00 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: 01 07 00 FB 19 00 00 00 00 00 FC 0C 23 [11:55:44]RasterBufferAndPrint [11:55:44]line [11:55:44]line [11:55:44]line [11:55:44]line [11:55:44]line [11:55:44]written 0, free lines is 3333 [11:55:44]MH_Cut [11:55:44]Write to MH i2c: D1 01 00 02 1A 01 EE [11:55:44]Write i2c OK [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: D1 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: D1 01 00 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: D1 01 00 02 1A 00 ED [11:55:44]Write to MH i2c: 01 00 00 03 1A 1D [11:55:44]Write i2c OK [11:55:44]MH_I2C_Read... [11:55:45]OFD Sender: No OFD packet to send [11:55:45]*** Cut start [11:55:45]*** Purtial cut [11:55:45]*** CUTSNS_PIN = 0 [11:55:45]*** Stage 1: CUTSNS_PIN = 1 [11:55:47]Read from MH i2c: 01 [11:55:47]MH_I2C_Read... [11:55:47]*** Stop cut motor [11:55:47]*** Cut end [11:55:47]Read from MH i2c: 01 07 00 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: 01 07 00 03 1A 00 00 00 00 00 FF 0F 32 [11:55:47]process_action close_receipt done [11:55:47]requested_data is exist [11:55:47]produce_requested_data [11:55:47]requested_item fm.sn is exist - process it [11:55:47]wFMCommunicate request_size=4 [11:55:47]MH_SAM_APDU [11:55:47]CAPDU: 80 11 00 00 [11:55:47]Write to MH i2c: E2 08 00 04 1A 80 11 00 00 00 00 00 00 98 [11:55:47]Write i2c OK [11:55:47]MH_I2C_Read... [11:55:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:47]Read from MH i2c: E2 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: E2 17 00 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: E2 17 00 04 1A 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:55:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:55:47]wFMCommunicate OK [11:55:47]requested_item fd.num is exist - process it [11:55:47]SAM_PROTO_GetFieldsCounters [11:55:47]wFMCommunicate request_size=4 [11:55:47]MH_SAM_APDU [11:55:47]CAPDU: 80 13 00 00 [11:55:47]Write to MH i2c: E2 08 00 05 1A 80 13 00 00 00 00 00 00 9B [11:55:47]Write i2c OK [11:55:47]MH_I2C_Read... [11:55:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:47]Read from MH i2c: E2 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: E2 62 00 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: E2 62 00 05 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 3F 08 01 00 0E 04 04 00 66 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 18 [11:55: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 3F 08 01 00 0E 04 04 00 66 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:55:47]wFMCommunicate OK [11:55:47]SAM_PROTO_GetFieldsCounters done [11:55:47]requested_item shift.num is exist - process it [11:55:47]requested_item shift.opened is exist - process it [11:55:47]req_shift_opened [11:55:47]FM_GetShiftState [11:55:47]SAM_PROTO_GetShiftState [11:55:47]wFMCommunicate request_size=4 [11:55:47]MH_SAM_APDU [11:55:47]CAPDU: 80 13 01 00 [11:55:47]Write to MH i2c: E2 08 00 06 1A 80 13 01 00 00 00 00 00 9D [11:55:47]Write i2c OK [11:55:47]MH_I2C_Read... [11:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:47]Read from MH i2c: E2 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: E2 0E 00 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: E2 0E 00 06 1A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 23 [11:55:47]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [11:55:47]wFMCommunicate OK [11:55:47]SAM_PROTO_GetShiftState done [11:55:47]FM_GetShiftState done [11:55:47]req_shift_opened done [11:55:47]requested_item shift.open_date is exist - process it [11:55:47]req_shift_open_date [11:55:47]req_shift_open_date done [11:55:47]produce_requested_data done [11:55:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67647,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [11:55:47]process_action_free close_receipt [11:55:47]json_value_free [11:55:47]json_value_free done [11:55:47]process_json_proto returns [11:55:47]Send response to host [11:55:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67647,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [11:55:47]free response buf [11:55:47]execute_script done [11:55:47]execute_script returns [11:55:47]free content buf [11:55:47]Sock 7.Close socket [11:55:47]Sock 7.Thread stoped [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:22]accept exits with 9 [12:00:22]New connection [12:00:22]New thread 3067538788 created [12:00:22]Thread 3067395428 joined [12:00:22]Waiting for new connection... [12:00:22] Sock 9.Parse request [12:00:22]Sock 9.Check first char [12:00:22]Sock 9.First char is OK [12:00:22]request: POST /json_proto HTTP/1.0 [12:00:22]Method: POST [12:00:22]URL: /json_proto [12:00:22]Method is POST - this is cgi request [12:00:22]url: /json_proto [12:00:22]query_string will be loaded in cgi processing [12:00:22]execute_cgi json_proto POST (null) [12:00:22]execute_cgi path=json_proto method=POST [12:00:22]POST find Content-Length [12:00:22]Host: 172.17.41.195:8080 [12:00:22]Content-Length: 1179 [12:00:22]Content-Type: application/json [12:00:22] [12:00:22]POST finish read [12:00:22]Found Content-Length = 1179 [12:00: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507775\u000A17.05.2024 11:42\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" ] } } [12:00:22]execute_script... [12:00: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507775\u000A17.05.2024 11:42\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" ] } } [12:00:22]POST & json_proto [12:00:22]process_json_proto [12:00:22]json parsed OK: [12:00:22]protocol is kg_v1.0 [12:00:22]action value=print_text [12:00:22]process_action print_text [12:00:22]cmd_print_text [12:00:22]ExternCall_PrintAddStr [12:00:22]wPrintStart [12:00:22]Write to MH i2c: 01 00 00 07 1A 21 [12:00:22]Write i2c OK [12:00:22]MH_I2C_Read... [12:00:22]Read from MH i2c: 01 [12:00:22]MH_I2C_Read... [12:00:22]Read from MH i2c: 01 07 00 [12:00:22]MH_I2C_Read... [12:00:22]Read from MH i2c: 01 07 00 07 1A 00 00 00 00 00 FF 0F 36 [12:00:22]RasterBufferAndPrint [12:00:22]line *****ТОВАРНЫЙ ЧЕК***** [12:00:22]line АЗС-91 [12:00:22]line Партнер нефть [12:00:22]line 02508201610067 [12:00:22]line Кассир : Адишов И. [12:00:22]line Счет N : (1)507775 [12:00:22]line 17.05.2024 11:42 [12:00:22]line ПРОДАЖА [12:00:22]line ТРК (МРК, ГНК): 41 [12:00:22]line Вид ГСМ : 2710194210 [12:00:22]line ДТ-К-5 [12:00:22]line 20.090 x 74.70 [12:00:22]line ИТОГ: 1500.72 [12:00:22]line Тип оплаты: Талоны: Топливная Карта [12:00:22]line 02750 [12:00:22]line ______________________ [12:00:22]line (подпись) [12:00:22]written 0, free lines is 4095 [12:00:23]Write to MH i2c: 01 00 00 1B 1A 35 [12:00:23]Write i2c OK [12:00:23]MH_I2C_Read... [12:00:23]Read from MH i2c: 01 [12:00:23]MH_I2C_Read... [12:00:23]Read from MH i2c: 01 07 00 [12:00:23]MH_I2C_Read... [12:00:23]Read from MH i2c: 01 07 00 1B 1A 00 00 00 00 00 0D 0E 57 [12:00:23]RasterBufferAndPrint [12:00:23]line [12:00:23]line [12:00:23]line [12:00:23]line [12:00:23]line [12:00:23]written 0, free lines is 3598 [12:00:23]MH_Cut [12:00:23]Write to MH i2c: D1 01 00 22 1A 01 0E [12:00:23]Write i2c OK [12:00:23]MH_I2C_Read... [12:00:23]Read from MH i2c: D1 [12:00:23]MH_I2C_Read... [12:00:23]Read from MH i2c: D1 01 00 [12:00:23]MH_I2C_Read... [12:00:23]Read from MH i2c: D1 01 00 22 1A 00 0D [12:00:23]Write to MH i2c: 01 00 00 23 1A 3D [12:00:23]Write i2c OK [12:00:23]MH_I2C_Read... [12:00:23]*** Cut start [12:00:23]*** Purtial cut [12:00:23]*** Stage 1: CUTSNS_PIN = 1 [12:00:23]Read from MH i2c: 01 [12:00:23]MH_I2C_Read... [12:00:23]*** Stop cut motor [12:00:23]*** Cut end [12:00:23]Read from MH i2c: 01 07 00 [12:00:23]MH_I2C_Read... [12:00:23]Read from MH i2c: 01 07 00 23 1A 00 00 00 00 00 FF 0F 52 [12:00:23]process_action print_text done [12:00:23]requested_data is exist [12:00:23]produce_requested_data [12:00:23]requested_item fm.sn is exist - process it [12:00:23]wFMCommunicate request_size=4 [12:00:23]MH_SAM_APDU [12:00:23]CAPDU: 80 11 00 00 [12:00:23]Write to MH i2c: E2 08 00 24 1A 80 11 00 00 00 00 00 00 B8 [12:00:23]Write i2c OK [12:00:23]MH_I2C_Read... [12:00:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:24]Read from MH i2c: E2 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 17 00 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 17 00 24 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0E [12:00:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:00:24]wFMCommunicate OK [12:00:24]requested_item fd.num is exist - process it [12:00:24]SAM_PROTO_GetFieldsCounters [12:00:24]wFMCommunicate request_size=4 [12:00:24]MH_SAM_APDU [12:00:24]CAPDU: 80 13 00 00 [12:00:24]Write to MH i2c: E2 08 00 25 1A 80 13 00 00 00 00 00 00 BB [12:00:24]Write i2c OK [12:00:24]MH_I2C_Read... [12:00:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:24]Read from MH i2c: E2 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 62 00 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 62 00 25 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 3F 08 01 00 0E 04 04 00 66 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 38 [12:00: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 3F 08 01 00 0E 04 04 00 66 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 [12:00:24]wFMCommunicate OK [12:00:24]SAM_PROTO_GetFieldsCounters done [12:00:24]requested_item shift.num is exist - process it [12:00:24]requested_item shift.opened is exist - process it [12:00:24]req_shift_opened [12:00:24]FM_GetShiftState [12:00:24]SAM_PROTO_GetShiftState [12:00:24]wFMCommunicate request_size=4 [12:00:24]MH_SAM_APDU [12:00:24]CAPDU: 80 13 01 00 [12:00:24]Write to MH i2c: E2 08 00 26 1A 80 13 01 00 00 00 00 00 BD [12:00:24]Write i2c OK [12:00:24]MH_I2C_Read... [12:00:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:24]Read from MH i2c: E2 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 0E 00 [12:00:24]MH_I2C_Read... [12:00:24]Read from MH i2c: E2 0E 00 26 1A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 43 [12:00:24]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [12:00:24]wFMCommunicate OK [12:00:24]SAM_PROTO_GetShiftState done [12:00:24]FM_GetShiftState done [12:00:24]req_shift_opened done [12:00:24]requested_item shift.open_date is exist - process it [12:00:24]req_shift_open_date [12:00:24]req_shift_open_date done [12:00:24]produce_requested_data done [12:00:24]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67647,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [12:00:24]process_action_free print_text [12:00:24]json_value_free [12:00:24]json_value_free done [12:00:24]process_json_proto returns [12:00:24]Send response to host [12:00:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67647,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [12:00:24]free response buf [12:00:24]execute_script done [12:00:24]execute_script returns [12:00:24]free content buf [12:00:24]Sock 9.Close socket [12:00:24]Sock 9.Thread stoped [12:00:25]OFD Sender: No OFD packet to send [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:10]OFD Sender: No OFD packet to send [12:01:15]OFD Sender: No OFD packet to send [12:01:20]OFD Sender: No OFD packet to send [12:01:25]OFD Sender: No OFD packet to send [12:01:30]OFD Sender: No OFD packet to send [12:01:35]OFD Sender: No OFD packet to send [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]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:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:30]accept exits with 7 [12:23:30]New connection [12:23:30]New thread 3067395428 created [12:23:30]Thread 3067538788 joined [12:23:30]Waiting for new connection... [12:23:30] Sock 7.Parse request [12:23:30]Sock 7.Check first char [12:23:30]Sock 7.First char is OK [12:23:30]request: POST /json_proto HTTP/1.0 [12:23:30]Method: POST [12:23:30]URL: /json_proto [12:23:30]Method is POST - this is cgi request [12:23:30]url: /json_proto [12:23:30]query_string will be loaded in cgi processing [12:23:30]execute_cgi json_proto POST (null) [12:23:30]execute_cgi path=json_proto method=POST [12:23:30]POST find Content-Length [12:23:30]Host: 172.17.41.195:8080 [12:23:30]Content-Length: 677 [12:23:30]Content-Type: application/json [12:23:30] [12:23:30]POST finish read [12:23:30]Found Content-Length = 677 [12:23:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 4.500, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:30]execute_script... [12:23: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)507776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 4.500, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:30]POST & json_proto [12:23:30]process_json_proto [12:23:30]json parsed OK: [12:23:30]protocol is kg_v1.0 [12:23:30]action value=close_receipt [12:23:30]process_action close_receipt [12:23:30]cmd_close_receipt [12:23:30]MH_GetDate [12:23:30]Write to MH i2c: F0 00 00 27 1A 30 [12:23:30]Write i2c OK [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: F0 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: F0 09 00 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: F0 09 00 27 1A 00 45 4C 47 66 FC 21 6F 64 67 [12:23:30]GetLastDocTimeStamp 1715946945 [12:23:30]current date 1715948613 [12:23:30]FM_GetShiftState [12:23:30]SAM_PROTO_GetShiftState [12:23:30]wFMCommunicate request_size=4 [12:23:30]MH_SAM_APDU [12:23:30]CAPDU: 80 13 01 00 [12:23:30]Write to MH i2c: E2 08 00 28 1A 80 13 01 00 00 00 00 00 BF [12:23:30]Write i2c OK [12:23:30]MH_I2C_Read... [12:23:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:30]Read from MH i2c: E2 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: E2 0E 00 [12:23:30]MH_I2C_Read... [12:23:30]Read from MH i2c: E2 0E 00 28 1A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 45 [12:23:30]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [12:23:30]wFMCommunicate OK [12:23:30]SAM_PROTO_GetShiftState done [12:23:30]FM_GetShiftState done [12:23:30]opened in 1715905068 [12:23:30]opened+sec_in_day 1715991468 [12:23:30]quantity*price = 30060 [12:23:30]sum+1 = 30061 [12:23:30]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 СНО: Общий режим Чек 57 17.05.2024 12:23 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67648 ФПД: 86732833122719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T122333&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67648&fm=86732833122719&tin=02508201610067®Number=0000000000091845&sum=30000 [12:23:31]StoreToDocumentArchive [12:23:31]shift 358 fd 67648 [12:23:31]save to /storage/0358/doc_00067648 [12:23:31]save last doc name /storage/0358/doc_00067648 to /storage/kkm_last_doc_name [12:23:31]save OK [12:23:31]Clear old archive folders... [12:23:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:23:31]tlvbuf is B6F50220 [12:23:31]SAM_PROTO_ClearQueue [12:23:31]wFMCommunicate request_size=4 [12:23:31]MH_SAM_APDU [12:23:31]CAPDU: 80 09 00 00 [12:23:31]Write to MH i2c: E2 08 00 35 1A 80 09 00 00 00 00 00 00 C1 [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:31]Read from MH i2c: E2 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 35 1A 00 90 00 C3 [12:23:31]RAPDU: 90 00 [12:23:31]wFMCommunicate OK [12:23:31]SAM_PROTO_ClearQueue done [12:23:31]KKMCreateOFDPacket [12:23:31]OFDProtocolAddRootSTLVToBuf [12:23:31]FM_MakeSignedData [12:23:31]FM_MakeSignedData [12:23:31]SAM_PROTO_SignData [12:23:31]wFMCommunicate request_size=4 [12:23:31]MH_SAM_APDU [12:23:31]CAPDU: 80 0D 01 02 [12:23:31]Write to MH i2c: E2 08 00 36 1A 80 0D 01 02 00 00 00 00 C9 [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:31]Read from MH i2c: E2 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 36 1A 00 90 00 C4 [12:23:31]RAPDU: 90 00 [12:23:31]wFMCommunicate OK [12:23:31]wFMCommunicate request_size=255 [12:23:31]MH_SAM_APDU [12:23:31]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 39 00 00 00 F4 03 04 00 45 4C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 4E [12:23:31]Write to MH i2c: E2 02 01 37 1A 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 39 00 00 00 F4 03 04 00 45 4C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 4E 00 00 DE [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:31]Read from MH i2c: E2 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 37 1A 00 90 00 C5 [12:23:31]RAPDU: 90 00 [12:23:31]wFMCommunicate OK [12:23:31]wFMCommunicate request_size=10 [12:23:31]MH_SAM_APDU [12:23:31]CAPDU: 80 0D 02 02 05 E2 0F B5 69 9F [12:23:31]Write to MH i2c: E2 0D 00 38 1A 80 0D 02 02 05 00 E2 0F B5 69 9F 00 00 84 [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:31]Read from MH i2c: E2 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 03 00 38 1A 00 90 00 C6 [12:23:31]RAPDU: 90 00 [12:23:31]wFMCommunicate OK [12:23:31]wFMCommunicate request_size=4 [12:23:31]MH_SAM_APDU [12:23:31]CAPDU: 80 0D 03 02 [12:23:31]Write to MH i2c: E2 08 00 39 1A 80 0D 03 02 00 00 00 00 CE [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:31]Read from MH i2c: E2 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 0B 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 0B 00 39 1A 00 6F 83 A2 20 B2 E5 28 D2 90 00 14 [12:23:31]RAPDU: 6F 83 A2 20 B2 E5 28 D2 90 00 [12:23:31]wFMCommunicate OK [12:23:31]SAM_PROTO_SignData done [12:23:31]FM_MakeSignedData done [12:23:31]CreateOFDProtocolMessage [12:23:31]wFMCommunicate request_size=4 [12:23:31]MH_SAM_APDU [12:23:31]CAPDU: 80 11 00 00 [12:23:31]Write to MH i2c: E2 08 00 3A 1A 80 11 00 00 00 00 00 00 CE [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:31]Read from MH i2c: E2 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 17 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: E2 17 00 3A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 24 [12: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 [12:23:31]wFMCommunicate OK [12:23:31]CreateOFDProtocolMessage done [12:23:31]OFDSenderStorePacket 67648 [12:23:31]StoreOFDPacket docnum=67648 [12:23: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 15 30 07 01 59 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 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 39 00 00 00 F4 03 04 00 45 4C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 4E E2 0F B5 69 9F 6F 83 A2 20 B2 E5 28 D2 [12:23:31]CheckFolder [12:23:31]dirname=/storage/ofd_packets [12:23:31]CheckFolder done [12:23:31]ProducePacketName [12:23:31]name=ofd_packets/00067648 [12:23:31]NVStorageSaveData ofd_packets/00067648 [12:23:31]File name is /storage/ofd_packets/00067648 [12:23:31]Write 301 bytes [12:23:31]NVStorageSaveData done [12:23:31]OFDSenderStorePacket done [12:23:31]KKMCreateOFDPacket done [12:23:31]NVStorageSaveData kkm_last_timestamp [12:23:31]File name is /storage/kkm_last_timestamp [12:23:31]Write 4 bytes [12:23:31]NVStorageSaveData done [12:23:31]ExternCall_PrintAddStr [12:23:31]wPrintStart [12:23:31]Write to MH i2c: 01 00 00 3B 1A 55 [12:23:31]Write i2c OK [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: 01 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: 01 07 00 [12:23:31]MH_I2C_Read... [12:23:31]Read from MH i2c: 01 07 00 3B 1A 00 00 00 00 00 FF 0F 6A [12:23:31]RasterBufferAndPrint [12:23:31]line Счет N : (1)507776 [12:23:31]line ИНН: 02508201610067 [12:23:31]line Контрольно-Кассовый Чек [12:23:31]line ПРОДАЖА [12:23:31]line ТРК (МРК, ГНК) : 43 [12:23:31]line Товар: 2710124130 [12:23:31]line Аи-92-К-5 [12:23:31]line 4.500 * 66.80 [12:23:31]line = 300.60 [12:23:31]line НДС 12% НСП 1% [12:23:31]line > о реализуемом товаре [12:23:31]line ОКРУГЛЕНИЕ: -0.60 [12:23:31]line ИТОГО: 300.00 [12:23:31]line Внесено: 300.00 [12:23:31]line СДАЧА: 0.00 [12:23:31]line НСП 1% : 2.66 [12:23:31]line НДС 12% : 31.92 [12:23:31]line Наличными: 300.00 [12:23:31]line Безнал.: 0.00 [12:23:31]line Место: АЗС № 91 "Партнер Нефть" [12:23:31]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:23:31]line СНО: Общий режим [12:23:31]line Чек 57 17.05.2024 12:23 [12:23:31]line Смена: 358 ФФД: 1.0 [12:23:31]line ЗНМ: 0300000119 [12:23:31]line РНМ: 0000000000091845 [12:23:31]line Версия ККМ: 001 [12:23:31]line ФМ: 0000000000871829 [12:23:31]line ФД: 67648 [12:23:31]line ФПД: 86732833122719 [12:23:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T122333&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67648&fm=86732833122719&tin=02508201610067®Number=0000000000091845&sum=30000 [12:23:32]written 0, free lines is 4095 [12:23:32]OFD Sender: Processing packet 67648 [packets to send 35, broken 34] [12:23:32]ProducePacketName [12:23:32]name=ofd_packets/00067648 [12:23:32]OFD Sender: To server: pG, [12:23:32]CommunicateWithHost lk.salyk.kg:30040 [12:23:32]ConnectInit lk.salyk.kg [12:23:32]Connected sock=11 [12:23: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 15 30 07 01 59 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 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 39 00 00 00 F4 03 04 00 45 4C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 4E E2 0F B5 69 9F 6F 83 A2 20 B2 E5 28 D2 [12:23: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 A3 3E 47 00 A1 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 40 08 01 00 F4 03 04 00 1D F4 46 66 B6 04 01 00 00 79 56 54 E5 73 A5 BC F0 [12:23:32]CommunicateWithHost err = 0 [12:23:32]CheckOFDResponse [12:23:32]1017 (14) - 77093643461234 [12:23:32]1041 (16) - 0000000000871829 [12:23:32]1040 (4) - 67648 [12:23:32]1012 (4) - 17.05.2024 06:07 [12:23:32]1206 (1) - 0 [12:23:32]OFD Sender: Remove packet 67648 [12:23:32]ProducePacketName [12:23:32]name=ofd_packets/00067648 [12:23:32]NVStorageDeleteData [12:23:32]Write to MH i2c: 01 00 00 65 1A 7F [12:23:32]Write i2c OK [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: 01 [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: 01 07 00 [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: 01 07 00 65 1A 00 00 00 00 00 D2 0C 64 [12:23:32]RasterBufferAndPrint [12:23:32]line [12:23:32]line [12:23:32]line [12:23:32]line [12:23:32]line [12:23:32]written 0, free lines is 3288 [12:23:32]MH_Cut [12:23:32]Write to MH i2c: D1 01 00 6C 1A 01 58 [12:23:32]Write i2c OK [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: D1 [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: D1 01 00 [12:23:32]MH_I2C_Read... [12:23:32]Read from MH i2c: D1 01 00 6C 1A 00 57 [12:23:32]Write to MH i2c: 01 00 00 6D 1A 87 [12:23:32]Write i2c OK [12:23:32]MH_I2C_Read... [12:23:32]OFD Sender: No OFD packet to send [12:23:33]*** Cut start [12:23:33]*** Purtial cut [12:23:33]*** CUTSNS_PIN = 0 [12:23:33]*** Stage 1: CUTSNS_PIN = 1 [12:23:35]Read from MH i2c: 01 [12:23:35]MH_I2C_Read... [12:23:35]*** Stop cut motor [12:23:35]*** Cut end [12:23:35]Read from MH i2c: 01 07 00 [12:23:35]MH_I2C_Read... [12:23:35]Read from MH i2c: 01 07 00 6D 1A 00 00 00 00 00 FF 0F 9C [12:23:35]process_action close_receipt done [12:23:35]requested_data is exist [12:23:35]produce_requested_data [12:23:35]requested_item fm.sn is exist - process it [12:23:35]wFMCommunicate request_size=4 [12:23:35]MH_SAM_APDU [12:23:35]CAPDU: 80 11 00 00 [12:23:35]Write to MH i2c: E2 08 00 6E 1A 80 11 00 00 00 00 00 00 02 [12:23:35]Write i2c OK [12:23:35]MH_I2C_Read... [12:23:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:35]Read from MH i2c: E2 [12:23:35]MH_I2C_Read... [12:23:35]Read from MH i2c: E2 17 00 [12:23:35]MH_I2C_Read... [12:23:35]Read from MH i2c: E2 17 00 6E 1A 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:23:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:23:35]wFMCommunicate OK [12:23:35]requested_item fd.num is exist - process it [12:23:35]SAM_PROTO_GetFieldsCounters [12:23:35]wFMCommunicate request_size=4 [12:23:35]MH_SAM_APDU [12:23:35]CAPDU: 80 13 00 00 [12:23:35]Write to MH i2c: E2 08 00 6F 1A 80 13 00 00 00 00 00 00 05 [12:23:35]Write i2c OK [12:23:35]MH_I2C_Read... [12:23:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:35]Read from MH i2c: E2 [12:23:35]MH_I2C_Read... [12:23:35]Read from MH i2c: E2 62 00 [12:23:35]MH_I2C_Read... [12:23:35]Read from MH i2c: E2 62 00 6F 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 40 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [12:23: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 40 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:35]wFMCommunicate OK [12:23:35]SAM_PROTO_GetFieldsCounters done [12:23:35]requested_item shift.num is exist - process it [12:23:35]requested_item shift.opened is exist - process it [12:23:35]req_shift_opened [12:23:35]FM_GetShiftState [12:23:35]SAM_PROTO_GetShiftState [12:23:35]wFMCommunicate request_size=4 [12:23:35]MH_SAM_APDU [12:23:35]CAPDU: 80 13 01 00 [12:23:35]Write to MH i2c: E2 08 00 70 1A 80 13 01 00 00 00 00 00 07 [12:23:35]Write i2c OK [12:23:35]MH_I2C_Read... [12:23:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:35]Read from MH i2c: E2 [12:23:35]MH_I2C_Read... [12:23:35]Read from MH i2c: E2 0E 00 [12:23:35]MH_I2C_Read... [12:23:35]Read from MH i2c: E2 0E 00 70 1A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 8D [12:23:35]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [12:23:35]wFMCommunicate OK [12:23:35]SAM_PROTO_GetShiftState done [12:23:35]FM_GetShiftState done [12:23:35]req_shift_opened done [12:23:35]requested_item shift.open_date is exist - process it [12:23:35]req_shift_open_date [12:23:35]req_shift_open_date done [12:23:35]produce_requested_data done [12:23:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67648,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [12:23:35]process_action_free close_receipt [12:23:35]json_value_free [12:23:35]json_value_free done [12:23:35]process_json_proto returns [12:23:35]Send response to host [12:23:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67648,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [12:23:35]free response buf [12:23:35]execute_script done [12:23:35]execute_script returns [12:23:35]free content buf [12:23:35]Sock 7.Close socket [12:23:35]Sock 7.Thread stoped [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [12:27:43]OFD Sender: No OFD packet to send [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:04]accept exits with 9 [12:28:04]New connection [12:28:04]New thread 3067538788 created [12:28:04]Thread 3067395428 joined [12:28:04]Waiting for new connection... [12:28:04] Sock 9.Parse request [12:28:04]Sock 9.Check first char [12:28:04]Sock 9.First char is OK [12:28:04]request: POST /json_proto HTTP/1.0 [12:28:04]Method: POST [12:28:04]URL: /json_proto [12:28:04]Method is POST - this is cgi request [12:28:04]url: /json_proto [12:28:04]query_string will be loaded in cgi processing [12:28:04]execute_cgi json_proto POST (null) [12:28:04]execute_cgi path=json_proto method=POST [12:28:04]POST find Content-Length [12:28:04]Host: 172.17.41.195:8080 [12:28:04]Content-Length: 677 [12:28:04]Content-Type: application/json [12:28:04] [12:28:04]POST finish read [12:28:04]Found Content-Length = 677 [12:28:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507777", "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" ] } } [12:28:04]execute_script... [12:28: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)507777", "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" ] } } [12:28:04]POST & json_proto [12:28:04]process_json_proto [12:28:04]json parsed OK: [12:28:04]protocol is kg_v1.0 [12:28:04]action value=close_receipt [12:28:04]process_action close_receipt [12:28:04]cmd_close_receipt [12:28:04]MH_GetDate [12:28:04]Write to MH i2c: F0 00 00 71 1A 7A [12:28:04]Write i2c OK [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: F0 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: F0 09 00 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: F0 09 00 71 1A 00 58 4D 47 66 FC 21 6F 64 C5 [12:28:04]GetLastDocTimeStamp 1715948613 [12:28:04]current date 1715948888 [12:28:04]FM_GetShiftState [12:28:04]SAM_PROTO_GetShiftState [12:28:04]wFMCommunicate request_size=4 [12:28:04]MH_SAM_APDU [12:28:04]CAPDU: 80 13 01 00 [12:28:04]Write to MH i2c: E2 08 00 72 1A 80 13 01 00 00 00 00 00 09 [12:28:04]Write i2c OK [12:28:04]MH_I2C_Read... [12:28:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:04]Read from MH i2c: E2 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: E2 0E 00 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: E2 0E 00 72 1A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 8F [12:28:04]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [12:28:04]wFMCommunicate OK [12:28:04]SAM_PROTO_GetShiftState done [12:28:04]FM_GetShiftState done [12:28:04]opened in 1715905068 [12:28:04]opened+sec_in_day 1715991468 [12:28:04]quantity*price = 30060 [12:28:04]sum+1 = 30061 [12:28:04]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 СНО: Общий режим Чек 58 17.05.2024 12:28 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67649 ФПД: 40193220411916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T122808&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67649&fm=40193220411916&tin=02508201610067®Number=0000000000091845&sum=30000 [12:28:06]StoreToDocumentArchive [12:28:06]shift 358 fd 67649 [12:28:06]save to /storage/0358/doc_00067649 [12:28:06]save last doc name /storage/0358/doc_00067649 to /storage/kkm_last_doc_name [12:28:06]save OK [12:28:06]Clear old archive folders... [12:28:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:28:06]tlvbuf is 016306C0 [12:28:06]SAM_PROTO_ClearQueue [12:28:06]wFMCommunicate request_size=4 [12:28:06]MH_SAM_APDU [12:28:06]CAPDU: 80 09 00 00 [12:28:06]Write to MH i2c: E2 08 00 7F 1A 80 09 00 00 00 00 00 00 0B [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 03 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 03 00 7F 1A 00 90 00 0D [12:28:06]RAPDU: 90 00 [12:28:06]wFMCommunicate OK [12:28:06]SAM_PROTO_ClearQueue done [12:28:06]KKMCreateOFDPacket [12:28:06]OFDProtocolAddRootSTLVToBuf [12:28:06]FM_MakeSignedData [12:28:06]FM_MakeSignedData [12:28:06]SAM_PROTO_SignData [12:28:06]wFMCommunicate request_size=4 [12:28:06]MH_SAM_APDU [12:28:06]CAPDU: 80 0D 01 02 [12:28:06]Write to MH i2c: E2 08 00 80 1A 80 0D 01 02 00 00 00 00 13 [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 03 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 03 00 80 1A 00 90 00 0E [12:28:06]RAPDU: 90 00 [12:28:06]wFMCommunicate OK [12:28:06]wFMCommunicate request_size=255 [12:28:06]MH_SAM_APDU [12:28:06]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 3A 00 00 00 F4 03 04 00 58 4D 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 24 [12:28:06]Write to MH i2c: E2 02 01 81 1A 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 3A 00 00 00 F4 03 04 00 58 4D 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 24 00 00 14 [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 03 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 03 00 81 1A 00 90 00 0F [12:28:06]RAPDU: 90 00 [12:28:06]wFMCommunicate OK [12:28:06]wFMCommunicate request_size=10 [12:28:06]MH_SAM_APDU [12:28:06]CAPDU: 80 0D 02 02 05 8E 36 A0 02 0C [12:28:06]Write to MH i2c: E2 0D 00 82 1A 80 0D 02 02 05 00 8E 36 A0 02 0C 00 00 92 [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 03 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 03 00 82 1A 00 90 00 10 [12:28:06]RAPDU: 90 00 [12:28:06]wFMCommunicate OK [12:28:06]wFMCommunicate request_size=4 [12:28:06]MH_SAM_APDU [12:28:06]CAPDU: 80 0D 03 02 [12:28:06]Write to MH i2c: E2 08 00 83 1A 80 0D 03 02 00 00 00 00 18 [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 0B 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 0B 00 83 1A 00 EF 53 4F 4D DE E8 5D A0 90 00 BA [12:28:06]RAPDU: EF 53 4F 4D DE E8 5D A0 90 00 [12:28:06]wFMCommunicate OK [12:28:06]SAM_PROTO_SignData done [12:28:06]FM_MakeSignedData done [12:28:06]CreateOFDProtocolMessage [12:28:06]wFMCommunicate request_size=4 [12:28:06]MH_SAM_APDU [12:28:06]CAPDU: 80 11 00 00 [12:28:06]Write to MH i2c: E2 08 00 84 1A 80 11 00 00 00 00 00 00 18 [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 17 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 17 00 84 1A 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:28: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:28:06]wFMCommunicate OK [12:28:06]CreateOFDProtocolMessage done [12:28:06]OFDSenderStorePacket 67649 [12:28:06]StoreOFDPacket docnum=67649 [12:28: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 BB 01 07 01 E8 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3A 00 00 00 F4 03 04 00 58 4D 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 24 8E 36 A0 02 0C EF 53 4F 4D DE E8 5D A0 [12:28:06]CheckFolder [12:28:06]dirname=/storage/ofd_packets [12:28:06]CheckFolder done [12:28:06]ProducePacketName [12:28:06]name=ofd_packets/00067649 [12:28:06]NVStorageSaveData ofd_packets/00067649 [12:28:06]File name is /storage/ofd_packets/00067649 [12:28:06]Write 301 bytes [12:28:06]NVStorageSaveData done [12:28:06]OFDSenderStorePacket done [12:28:06]KKMCreateOFDPacket done [12:28:06]NVStorageSaveData kkm_last_timestamp [12:28:06]File name is /storage/kkm_last_timestamp [12:28:06]Write 4 bytes [12:28:06]NVStorageSaveData done [12:28:06]ExternCall_PrintAddStr [12:28:06]wPrintStart [12:28:06]Write to MH i2c: 01 00 00 85 1A 9F [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: 01 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: 01 07 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: 01 07 00 85 1A 00 00 00 00 00 FF 0F B4 [12:28:06]RasterBufferAndPrint [12:28:06]line Счет N : (1)507777 [12:28:06]line ИНН: 02508201610067 [12:28:06]line Контрольно-Кассовый Чек [12:28:06]line ПРОДАЖА [12:28:06]line ТРК (МРК, ГНК) : 33 [12:28:06]line Товар: 2710124130 [12:28:06]line Аи-92-К-5 [12:28:06]line 4.500 * 66.80 [12:28:06]line = 300.60 [12:28:06]line НДС 12% НСП 1% [12:28:06]line > о реализуемом товаре [12:28:06]line ОКРУГЛЕНИЕ: -0.60 [12:28:06]line ИТОГО: 300.00 [12:28:06]line Внесено: 300.00 [12:28:06]line СДАЧА: 0.00 [12:28:06]line НСП 1% : 2.66 [12:28:06]line НДС 12% : 31.92 [12:28:06]line Наличными: 300.00 [12:28:06]line Безнал.: 0.00 [12:28:06]line Место: АЗС № 91 "Партнер Нефть" [12:28:06]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:28:06]line СНО: Общий режим [12:28:06]line Чек 58 17.05.2024 12:28 [12:28:06]line Смена: 358 ФФД: 1.0 [12:28:06]line ЗНМ: 0300000119 [12:28:06]line РНМ: 0000000000091845 [12:28:06]line Версия ККМ: 001 [12:28:06]line ФМ: 0000000000871829 [12:28:06]line ФД: 67649 [12:28:06]line ФПД: 40193220411916 [12:28:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T122808&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67649&fm=40193220411916&tin=02508201610067®Number=0000000000091845&sum=30000 [12:28:06]written 0, free lines is 4095 [12:28:06]OFD Sender: Processing packet 67649 [packets to send 35, broken 34] [12:28:06]ProducePacketName [12:28:06]name=ofd_packets/00067649 [12:28:06]OFD Sender: To server: pG, [12:28:06]CommunicateWithHost lk.salyk.kg:30040 [12:28:06]ConnectInit lk.salyk.kg [12:28:07]Connected sock=10 [12:28: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 BB 01 07 01 E8 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3A 00 00 00 F4 03 04 00 58 4D 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 24 8E 36 A0 02 0C EF 53 4F 4D DE E8 5D A0 [12:28: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 EE FE 47 00 F7 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 41 08 01 00 F4 03 04 00 30 F5 46 66 B6 04 01 00 00 FB D1 C8 E8 0A D6 54 AD [12:28:07]CommunicateWithHost err = 0 [12:28:07]CheckOFDResponse [12:28:07]1017 (14) - 77093643461234 [12:28:07]1041 (16) - 0000000000871829 [12:28:07]1040 (4) - 67649 [12:28:07]1012 (4) - 17.05.2024 06:12 [12:28:07]1206 (1) - 0 [12:28:07]OFD Sender: Remove packet 67649 [12:28:07]ProducePacketName [12:28:07]name=ofd_packets/00067649 [12:28:07]NVStorageDeleteData [12:28:07]Write to MH i2c: 01 00 00 AF 1A C9 [12:28:07]Write i2c OK [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: 01 [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: 01 07 00 [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: 01 07 00 AF 1A 00 00 00 00 00 CE 0C AA [12:28:07]RasterBufferAndPrint [12:28:07]line [12:28:07]line [12:28:07]line [12:28:07]line [12:28:07]line [12:28:07]written 0, free lines is 3286 [12:28:07]MH_Cut [12:28:07]Write to MH i2c: D1 01 00 B6 1A 01 A2 [12:28:07]Write i2c OK [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: D1 [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: D1 01 00 [12:28:07]MH_I2C_Read... [12:28:07]Read from MH i2c: D1 01 00 B6 1A 00 A1 [12:28:07]Write to MH i2c: 01 00 00 B7 1A D1 [12:28:07]Write i2c OK [12:28:07]MH_I2C_Read... [12:28:07]OFD Sender: No OFD packet to send [12:28:08]*** Cut start [12:28:08]*** Purtial cut [12:28:08]*** Stage 1: CUTSNS_PIN = 1 [12:28:08]Read from MH i2c: 01 [12:28:08]MH_I2C_Read... [12:28:08]*** Stop cut motor [12:28:08]*** Cut end [12:28:08]Read from MH i2c: 01 07 00 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: 01 07 00 B7 1A 00 00 00 00 00 FF 0F E6 [12:28:08]process_action close_receipt done [12:28:08]requested_data is exist [12:28:08]produce_requested_data [12:28:08]requested_item fm.sn is exist - process it [12:28:08]wFMCommunicate request_size=4 [12:28:08]MH_SAM_APDU [12:28:08]CAPDU: 80 11 00 00 [12:28:08]Write to MH i2c: E2 08 00 B8 1A 80 11 00 00 00 00 00 00 4C [12:28:08]Write i2c OK [12:28:08]MH_I2C_Read... [12:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:08]Read from MH i2c: E2 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: E2 17 00 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: E2 17 00 B8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A2 [12:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:28:08]wFMCommunicate OK [12:28:08]requested_item fd.num is exist - process it [12:28:08]SAM_PROTO_GetFieldsCounters [12:28:08]wFMCommunicate request_size=4 [12:28:08]MH_SAM_APDU [12:28:08]CAPDU: 80 13 00 00 [12:28:08]Write to MH i2c: E2 08 00 B9 1A 80 13 00 00 00 00 00 00 4F [12:28:08]Write i2c OK [12:28:08]MH_I2C_Read... [12:28:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:08]Read from MH i2c: E2 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: E2 62 00 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: E2 62 00 B9 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 41 08 01 00 0E 04 04 00 66 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 D4 [12:28: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 41 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:08]wFMCommunicate OK [12:28:08]SAM_PROTO_GetFieldsCounters done [12:28:08]requested_item shift.num is exist - process it [12:28:08]requested_item shift.opened is exist - process it [12:28:08]req_shift_opened [12:28:08]FM_GetShiftState [12:28:08]SAM_PROTO_GetShiftState [12:28:08]wFMCommunicate request_size=4 [12:28:08]MH_SAM_APDU [12:28:08]CAPDU: 80 13 01 00 [12:28:08]Write to MH i2c: E2 08 00 BA 1A 80 13 01 00 00 00 00 00 51 [12:28:08]Write i2c OK [12:28:08]MH_I2C_Read... [12:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:08]Read from MH i2c: E2 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: E2 0E 00 [12:28:08]MH_I2C_Read... [12:28:08]Read from MH i2c: E2 0E 00 BA 1A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 D7 [12:28:08]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [12:28:08]wFMCommunicate OK [12:28:08]SAM_PROTO_GetShiftState done [12:28:08]FM_GetShiftState done [12:28:08]req_shift_opened done [12:28:08]requested_item shift.open_date is exist - process it [12:28:08]req_shift_open_date [12:28:08]req_shift_open_date done [12:28:08]produce_requested_data done [12:28:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67649,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [12:28:08]process_action_free close_receipt [12:28:08]json_value_free [12:28:08]json_value_free done [12:28:08]process_json_proto returns [12:28:08]Send response to host [12:28:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67649,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [12:28:08]free response buf [12:28:08]execute_script done [12:28:08]execute_script returns [12:28:08]free content buf [12:28:08]Sock 9.Close socket [12:28:08]Sock 9.Thread stoped [12:28:12]OFD Sender: No OFD packet to send [12:28:17]OFD Sender: No OFD packet to send [12:28:22]OFD Sender: No OFD packet to send [12:28:27]OFD Sender: No OFD packet to send [12:28:32]OFD Sender: No OFD packet to send [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:09]accept exits with 7 [12:34:09]New connection [12:34:09]New thread 3067395428 created [12:34:09]Thread 3067538788 joined [12:34:09]Waiting for new connection... [12:34:09] Sock 7.Parse request [12:34:09]Sock 7.Check first char [12:34:09]Sock 7.First char is OK [12:34:09]request: POST /json_proto HTTP/1.0 [12:34:09]Method: POST [12:34:09]URL: /json_proto [12:34:09]Method is POST - this is cgi request [12:34:09]url: /json_proto [12:34:09]query_string will be loaded in cgi processing [12:34:09]execute_cgi json_proto POST (null) [12:34:09]execute_cgi path=json_proto method=POST [12:34:09]POST find Content-Length [12:34:09]Host: 172.17.41.195:8080 [12:34:09]Content-Length: 1180 [12:34:09]Content-Type: application/json [12:34:09] [12:34:09]POST finish read [12:34:09]Found Content-Length = 1180 [12:34: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507778\u000A17.05.2024 12:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.490 x 66.80\u000A\u0418\u0422\u041E\u0413: 500.33\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:09]execute_script... [12:34: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507778\u000A17.05.2024 12:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.490 x 66.80\u000A\u0418\u0422\u041E\u0413: 500.33\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:09]POST & json_proto [12:34:09]process_json_proto [12:34:09]json parsed OK: [12:34:09]protocol is kg_v1.0 [12:34:09]action value=print_text [12:34:09]process_action print_text [12:34:09]cmd_print_text [12:34:09]ExternCall_PrintAddStr [12:34:09]wPrintStart [12:34:09]Write to MH i2c: 01 00 00 BB 1A D5 [12:34:09]Write i2c OK [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: 01 [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: 01 07 00 [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: 01 07 00 BB 1A 00 00 00 00 00 FF 0F EA [12:34:09]RasterBufferAndPrint [12:34:09]line *****ТОВАРНЫЙ ЧЕК***** [12:34:09]line АЗС-91 [12:34:09]line Партнер нефть [12:34:09]line 02508201610067 [12:34:09]line Кассир : Адишов И. [12:34:09]line Счет N : (1)507778 [12:34:09]line 17.05.2024 12:16 [12:34:09]line ПРОДАЖА [12:34:09]line ТРК (МРК, ГНК): 33 [12:34:09]line Вид ГСМ : 2710124130 [12:34:09]line Аи-92-К-5 [12:34:09]line 7.490 x 66.80 [12:34:09]line ИТОГ: 500.33 [12:34:09]line Тип оплаты: Талоны: Топливная Карта [12:34:09]line 02750 [12:34:09]line ______________________ [12:34:09]line (подпись) [12:34:09]written 0, free lines is 4095 [12:34:09]Write to MH i2c: 01 00 00 CF 1A E9 [12:34:09]Write i2c OK [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: 01 [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: 01 07 00 [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: 01 07 00 CF 1A 00 00 00 00 00 0F 0E 0D [12:34:09]RasterBufferAndPrint [12:34:09]line [12:34:09]line [12:34:09]line [12:34:09]line [12:34:09]line [12:34:09]written 0, free lines is 3600 [12:34:09]MH_Cut [12:34:09]Write to MH i2c: D1 01 00 D6 1A 01 C2 [12:34:09]Write i2c OK [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: D1 [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: D1 01 00 [12:34:09]MH_I2C_Read... [12:34:09]Read from MH i2c: D1 01 00 D6 1A 00 C1 [12:34:09]Write to MH i2c: 01 00 00 D7 1A F1 [12:34:09]Write i2c OK [12:34:09]MH_I2C_Read... [12:34:10]*** Cut start [12:34:10]*** Purtial cut [12:34:10]*** CUTSNS_PIN = 0 [12:34:10]*** Stage 1: CUTSNS_PIN = 1 [12:34:12]Read from MH i2c: 01 [12:34:12]MH_I2C_Read... [12:34:12]*** Stop cut motor [12:34:12]*** Cut end [12:34:12]Read from MH i2c: 01 07 00 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: 01 07 00 D7 1A 00 00 00 00 00 FF 0F 06 [12:34:12]process_action print_text done [12:34:12]requested_data is exist [12:34:12]produce_requested_data [12:34:12]requested_item fm.sn is exist - process it [12:34:12]wFMCommunicate request_size=4 [12:34:12]MH_SAM_APDU [12:34:12]CAPDU: 80 11 00 00 [12:34:12]Write to MH i2c: E2 08 00 D8 1A 80 11 00 00 00 00 00 00 6C [12:34:12]Write i2c OK [12:34:12]MH_I2C_Read... [12:34:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:12]Read from MH i2c: E2 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: E2 17 00 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: E2 17 00 D8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C2 [12:34:12]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:12]wFMCommunicate OK [12:34:12]requested_item fd.num is exist - process it [12:34:12]SAM_PROTO_GetFieldsCounters [12:34:12]wFMCommunicate request_size=4 [12:34:12]MH_SAM_APDU [12:34:12]CAPDU: 80 13 00 00 [12:34:12]Write to MH i2c: E2 08 00 D9 1A 80 13 00 00 00 00 00 00 6F [12:34:12]Write i2c OK [12:34:12]MH_I2C_Read... [12:34:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:12]Read from MH i2c: E2 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: E2 62 00 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: E2 62 00 D9 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 41 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [12:34: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 41 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:12]wFMCommunicate OK [12:34:12]SAM_PROTO_GetFieldsCounters done [12:34:12]requested_item shift.num is exist - process it [12:34:12]requested_item shift.opened is exist - process it [12:34:12]req_shift_opened [12:34:12]FM_GetShiftState [12:34:12]SAM_PROTO_GetShiftState [12:34:12]wFMCommunicate request_size=4 [12:34:12]MH_SAM_APDU [12:34:12]CAPDU: 80 13 01 00 [12:34:12]Write to MH i2c: E2 08 00 DA 1A 80 13 01 00 00 00 00 00 71 [12:34:12]Write i2c OK [12:34:12]MH_I2C_Read... [12:34:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:12]Read from MH i2c: E2 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: E2 0E 00 [12:34:12]MH_I2C_Read... [12:34:12]Read from MH i2c: E2 0E 00 DA 1A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F7 [12:34:12]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [12:34:12]wFMCommunicate OK [12:34:12]SAM_PROTO_GetShiftState done [12:34:12]FM_GetShiftState done [12:34:12]req_shift_opened done [12:34:12]requested_item shift.open_date is exist - process it [12:34:12]req_shift_open_date [12:34:12]req_shift_open_date done [12:34:12]produce_requested_data done [12:34:12]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67649,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [12:34:12]process_action_free print_text [12:34:12]json_value_free [12:34:12]json_value_free done [12:34:12]process_json_proto returns [12:34:12]Send response to host [12:34:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67649,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [12:34:12]free response buf [12:34:12]execute_script done [12:34:12]execute_script returns [12:34:12]free content buf [12:34:12]Sock 7.Close socket [12:34:12]Sock 7.Thread stoped [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:13]accept exits with 9 [12:36:13]New connection [12:36:13]New thread 3067538788 created [12:36:13]Thread 3067395428 joined [12:36:13]Waiting for new connection... [12:36:13] Sock 9.Parse request [12:36:13]Sock 9.Check first char [12:36:13]Sock 9.First char is OK [12:36:13]request: POST /json_proto HTTP/1.0 [12:36:13]Method: POST [12:36:13]URL: /json_proto [12:36:13]Method is POST - this is cgi request [12:36:13]url: /json_proto [12:36:13]query_string will be loaded in cgi processing [12:36:13]execute_cgi json_proto POST (null) [12:36:13]execute_cgi path=json_proto method=POST [12:36:13]POST find Content-Length [12:36:13]Host: 172.17.41.195:8080 [12:36:13]Content-Length: 677 [12:36:13]Content-Type: application/json [12:36:13] [12:36:13]POST finish read [12:36:13]Found Content-Length = 677 [12:36:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507779", "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" ] } } [12:36:13]execute_script... [12: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)507779", "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" ] } } [12:36:13]POST & json_proto [12:36:13]process_json_proto [12:36:13]json parsed OK: [12:36:13]protocol is kg_v1.0 [12:36:13]action value=close_receipt [12:36:13]process_action close_receipt [12:36:13]cmd_close_receipt [12:36:13]MH_GetDate [12:36:13]Write to MH i2c: F0 00 00 DB 1A E4 [12:36:13]Write i2c OK [12:36:13]MH_I2C_Read... [12:36:13]Read from MH i2c: F0 [12:36:13]MH_I2C_Read... [12:36:13]Read from MH i2c: F0 09 00 [12:36:13]MH_I2C_Read... [12:36:13]Read from MH i2c: F0 09 00 DB 1A 00 40 4F 47 66 FC 21 6F 64 19 [12:36:13]GetLastDocTimeStamp 1715948888 [12:36:13]current date 1715949376 [12:36:13]FM_GetShiftState [12:36:13]SAM_PROTO_GetShiftState [12:36:13]wFMCommunicate request_size=4 [12:36:13]MH_SAM_APDU [12:36:13]CAPDU: 80 13 01 00 [12:36:13]Write to MH i2c: E2 08 00 DC 1A 80 13 01 00 00 00 00 00 73 [12:36:13]Write i2c OK [12:36:13]MH_I2C_Read... [12:36:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:13]Read from MH i2c: E2 [12:36:13]MH_I2C_Read... [12:36:13]Read from MH i2c: E2 0E 00 [12:36:13]MH_I2C_Read... [12:36:13]Read from MH i2c: E2 0E 00 DC 1A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F9 [12:36:13]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [12:36:13]wFMCommunicate OK [12:36:13]SAM_PROTO_GetShiftState done [12:36:13]FM_GetShiftState done [12:36:13]opened in 1715905068 [12:36:13]opened+sec_in_day 1715991468 [12:36:13]quantity*price = 40013 [12:36:13]sum+1 = 40014 [12:36:13]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 СНО: Общий режим Чек 59 17.05.2024 12:36 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67650 ФПД: 226766777491511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T123616&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67650&fm=226766777491511&tin=02508201610067®Number=0000000000091845&sum=40000 [12:36:14]StoreToDocumentArchive [12:36:14]shift 358 fd 67650 [12:36:14]save to /storage/0358/doc_00067650 [12:36:14]save last doc name /storage/0358/doc_00067650 to /storage/kkm_last_doc_name [12:36:14]save OK [12:36:14]Clear old archive folders... [12:36:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:14]tlvbuf is B6F69B80 [12:36:14]SAM_PROTO_ClearQueue [12:36:14]wFMCommunicate request_size=4 [12:36:14]MH_SAM_APDU [12:36:14]CAPDU: 80 09 00 00 [12:36:14]Write to MH i2c: E2 08 00 E9 1A 80 09 00 00 00 00 00 00 75 [12:36:14]Write i2c OK [12:36:14]MH_I2C_Read... [12:36:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:14]Read from MH i2c: E2 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 03 00 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 03 00 E9 1A 00 90 00 77 [12:36:14]RAPDU: 90 00 [12:36:14]wFMCommunicate OK [12:36:14]SAM_PROTO_ClearQueue done [12:36:14]KKMCreateOFDPacket [12:36:14]OFDProtocolAddRootSTLVToBuf [12:36:14]FM_MakeSignedData [12:36:14]FM_MakeSignedData [12:36:14]SAM_PROTO_SignData [12:36:14]wFMCommunicate request_size=4 [12:36:14]MH_SAM_APDU [12:36:14]CAPDU: 80 0D 01 02 [12:36:14]Write to MH i2c: E2 08 00 EA 1A 80 0D 01 02 00 00 00 00 7D [12:36:14]Write i2c OK [12:36:14]MH_I2C_Read... [12:36:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:14]Read from MH i2c: E2 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 03 00 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 03 00 EA 1A 00 90 00 78 [12:36:14]RAPDU: 90 00 [12:36:14]wFMCommunicate OK [12:36:14]wFMCommunicate request_size=255 [12:36:14]MH_SAM_APDU [12:36: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 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 3B 00 00 00 F4 03 04 00 40 4F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CE [12:36:14]Write to MH i2c: E2 02 01 EB 1A 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 3B 00 00 00 F4 03 04 00 40 4F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CE 00 00 DF [12:36:14]Write i2c OK [12:36:14]MH_I2C_Read... [12:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:14]Read from MH i2c: E2 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 03 00 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 03 00 EB 1A 00 90 00 79 [12:36:14]RAPDU: 90 00 [12:36:14]wFMCommunicate OK [12:36:14]wFMCommunicate request_size=10 [12:36:14]MH_SAM_APDU [12:36:14]CAPDU: 80 0D 02 02 05 3E 41 38 20 37 [12:36:14]Write to MH i2c: E2 0D 00 EC 1A 80 0D 02 02 05 00 3E 41 38 20 37 00 00 98 [12:36:14]Write i2c OK [12:36:14]MH_I2C_Read... [12:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:14]Read from MH i2c: E2 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 03 00 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 03 00 EC 1A 00 90 00 7A [12:36:14]RAPDU: 90 00 [12:36:14]wFMCommunicate OK [12:36:14]wFMCommunicate request_size=4 [12:36:14]MH_SAM_APDU [12:36:14]CAPDU: 80 0D 03 02 [12:36:14]Write to MH i2c: E2 08 00 ED 1A 80 0D 03 02 00 00 00 00 82 [12:36:14]Write i2c OK [12:36:14]MH_I2C_Read... [12:36:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:14]Read from MH i2c: E2 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 0B 00 [12:36:14]MH_I2C_Read... [12:36:14]Read from MH i2c: E2 0B 00 ED 1A 00 F3 E2 72 46 7A 35 97 86 90 00 DC [12:36:14]RAPDU: F3 E2 72 46 7A 35 97 86 90 00 [12:36:14]wFMCommunicate OK [12:36:14]SAM_PROTO_SignData done [12:36:14]FM_MakeSignedData done [12:36:14]CreateOFDProtocolMessage [12:36:14]wFMCommunicate request_size=4 [12:36:14]MH_SAM_APDU [12:36:14]CAPDU: 80 11 00 00 [12:36:14]Write to MH i2c: E2 08 00 EE 1A 80 11 00 00 00 00 00 00 82 [12:36:14]Write i2c OK [12:36:14]MH_I2C_Read... [12:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:15]Read from MH i2c: E2 [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: E2 17 00 [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: E2 17 00 EE 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D8 [12: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 [12:36:15]wFMCommunicate OK [12:36:15]CreateOFDProtocolMessage done [12:36:15]OFDSenderStorePacket 67650 [12:36:15]StoreOFDPacket docnum=67650 [12: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 1D 10 07 01 B5 5A 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 3B 00 00 00 F4 03 04 00 40 4F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CE 3E 41 38 20 37 F3 E2 72 46 7A 35 97 86 [12:36:15]CheckFolder [12:36:15]dirname=/storage/ofd_packets [12:36:15]CheckFolder done [12:36:15]ProducePacketName [12:36:15]name=ofd_packets/00067650 [12:36:15]NVStorageSaveData ofd_packets/00067650 [12:36:15]File name is /storage/ofd_packets/00067650 [12:36:15]Write 301 bytes [12:36:15]NVStorageSaveData done [12:36:15]OFDSenderStorePacket done [12:36:15]KKMCreateOFDPacket done [12:36:15]NVStorageSaveData kkm_last_timestamp [12:36:15]File name is /storage/kkm_last_timestamp [12:36:15]Write 4 bytes [12:36:15]NVStorageSaveData done [12:36:15]ExternCall_PrintAddStr [12:36:15]wPrintStart [12:36:15]Write to MH i2c: 01 00 00 EF 1A 09 [12:36:15]Write i2c OK [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: 01 [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: 01 07 00 [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: 01 07 00 EF 1A 00 00 00 00 00 FF 0F 1E [12:36:15]RasterBufferAndPrint [12:36:15]line Счет N : (1)507779 [12:36:15]line ИНН: 02508201610067 [12:36:15]line Контрольно-Кассовый Чек [12:36:15]line ПРОДАЖА [12:36:15]line ТРК (МРК, ГНК) : 43 [12:36:15]line Товар: 2710124130 [12:36:15]line Аи-92-К-5 [12:36:15]line 5.990 * 66.80 [12:36:15]line = 400.13 [12:36:15]line НДС 12% НСП 1% [12:36:15]line > о реализуемом товаре [12:36:15]line ОКРУГЛЕНИЕ: -0.13 [12:36:15]line ИТОГО: 400.00 [12:36:15]line Внесено: 400.00 [12:36:15]line СДАЧА: 0.00 [12:36:15]line НСП 1% : 3.54 [12:36:15]line НДС 12% : 42.49 [12:36:15]line Наличными: 400.00 [12:36:15]line Безнал.: 0.00 [12:36:15]line Место: АЗС № 91 "Партнер Нефть" [12:36:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:36:15]line СНО: Общий режим [12:36:15]line Чек 59 17.05.2024 12:36 [12:36:15]line Смена: 358 ФФД: 1.0 [12:36:15]line ЗНМ: 0300000119 [12:36:15]line РНМ: 0000000000091845 [12:36:15]line Версия ККМ: 001 [12:36:15]line ФМ: 0000000000871829 [12:36:15]line ФД: 67650 [12:36:15]line ФПД: 226766777491511 [12:36:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T123616&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67650&fm=226766777491511&tin=02508201610067®Number=0000000000091845&sum=40000 [12:36:15]written 0, free lines is 4095 [12:36:15]OFD Sender: Processing packet 67650 [packets to send 35, broken 34] [12:36:15]ProducePacketName [12:36:15]name=ofd_packets/00067650 [12:36:15]OFD Sender: To server: pG, [12:36:15]CommunicateWithHost lk.salyk.kg:30040 [12:36:15]ConnectInit lk.salyk.kg [12:36:15]Connected sock=10 [12:36:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 1D 10 07 01 B5 5A 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 3B 00 00 00 F4 03 04 00 40 4F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CE 3E 41 38 20 37 F3 E2 72 46 7A 35 97 86 [12:36: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 09 58 47 00 C8 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 42 08 01 00 F4 03 04 00 18 F7 46 66 B6 04 01 00 00 90 23 F0 40 D0 DE 7A 51 [12:36:15]CommunicateWithHost err = 0 [12:36:15]CheckOFDResponse [12:36:15]1017 (14) - 77093643461234 [12:36:15]1041 (16) - 0000000000871829 [12:36:15]1040 (4) - 67650 [12:36:15]1012 (4) - 17.05.2024 06:20 [12:36:15]1206 (1) - 0 [12:36:15]OFD Sender: Remove packet 67650 [12:36:15]ProducePacketName [12:36:15]name=ofd_packets/00067650 [12:36:15]NVStorageDeleteData [12:36:15]Write to MH i2c: 01 00 00 19 1B 34 [12:36:15]Write i2c OK [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: 01 [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: 01 07 00 [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: 01 07 00 19 1B 00 00 00 00 00 C3 0C 0A [12:36:15]RasterBufferAndPrint [12:36:15]line [12:36:15]line [12:36:15]line [12:36:15]line [12:36:15]line [12:36:15]written 0, free lines is 3273 [12:36:15]MH_Cut [12:36:15]Write to MH i2c: D1 01 00 20 1B 01 0D [12:36:15]Write i2c OK [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: D1 [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: D1 01 00 [12:36:15]MH_I2C_Read... [12:36:15]Read from MH i2c: D1 01 00 20 1B 00 0C [12:36:15]Write to MH i2c: 01 00 00 21 1B 3C [12:36:15]Write i2c OK [12:36:15]MH_I2C_Read... [12:36:16]OFD Sender: No OFD packet to send [12:36:16]*** Cut start [12:36:16]*** Purtial cut [12:36:16]*** Stage 1: CUTSNS_PIN = 1 [12:36:16]Read from MH i2c: 01 [12:36:16]MH_I2C_Read... [12:36:16]*** Stop cut motor [12:36:16]*** Cut end [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 21 1B 00 00 00 00 00 FF 0F 51 [12:36:16]process_action close_receipt done [12:36:16]requested_data is exist [12:36:16]produce_requested_data [12:36:16]requested_item fm.sn is exist - process it [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 22 1B 80 11 00 00 00 00 00 00 B7 [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 22 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0D [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]requested_item fd.num is exist - process it [12:36:16]SAM_PROTO_GetFieldsCounters [12:36:16]wFMCommunicate request_size=4 [12:36:16]MH_SAM_APDU [12:36:16]CAPDU: 80 13 00 00 [12:36:16]Write to MH i2c: E2 08 00 23 1B 80 13 00 00 00 00 00 00 BA [12:36:16]Write i2c OK [12:36:16]MH_I2C_Read... [12:36:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:17]Read from MH i2c: E2 [12:36:17]MH_I2C_Read... [12:36:17]Read from MH i2c: E2 62 00 [12:36:17]MH_I2C_Read... [12:36:17]Read from MH i2c: E2 62 00 23 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 42 08 01 00 0E 04 04 00 66 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 43 [12: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 42 08 01 00 0E 04 04 00 66 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:36:17]wFMCommunicate OK [12:36:17]SAM_PROTO_GetFieldsCounters done [12:36:17]requested_item shift.num is exist - process it [12:36:17]requested_item shift.opened is exist - process it [12:36:17]req_shift_opened [12:36:17]FM_GetShiftState [12:36:17]SAM_PROTO_GetShiftState [12:36:17]wFMCommunicate request_size=4 [12:36:17]MH_SAM_APDU [12:36:17]CAPDU: 80 13 01 00 [12:36:17]Write to MH i2c: E2 08 00 24 1B 80 13 01 00 00 00 00 00 BC [12:36:17]Write i2c OK [12:36:17]MH_I2C_Read... [12:36:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:17]Read from MH i2c: E2 [12:36:17]MH_I2C_Read... [12:36:17]Read from MH i2c: E2 0E 00 [12:36:17]MH_I2C_Read... [12:36:17]Read from MH i2c: E2 0E 00 24 1B 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 42 [12:36:17]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [12:36:17]wFMCommunicate OK [12:36:17]SAM_PROTO_GetShiftState done [12:36:17]FM_GetShiftState done [12:36:17]req_shift_opened done [12:36:17]requested_item shift.open_date is exist - process it [12:36:17]req_shift_open_date [12:36:17]req_shift_open_date done [12:36:17]produce_requested_data done [12:36:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67650,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [12:36:17]process_action_free close_receipt [12:36:17]json_value_free [12:36:17]json_value_free done [12:36:17]process_json_proto returns [12:36:17]Send response to host [12:36:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67650,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [12:36:17]free response buf [12:36:17]execute_script done [12:36:17]execute_script returns [12:36:17]free content buf [12:36:17]Sock 9.Close socket [12:36:17]Sock 9.Thread stoped [12:36:21]OFD Sender: No OFD packet to send [12:36:26]OFD Sender: No OFD packet to send [12:36:31]OFD Sender: No OFD packet to send [12:36:36]OFD Sender: No OFD packet to send [12:36:41]OFD Sender: No OFD packet to send [12:36:46]OFD Sender: No OFD packet to send [12:36:51]OFD Sender: No OFD packet to send [12:36:56]OFD Sender: No OFD packet to send [12:37:01]OFD Sender: No OFD packet to send [12:37:06]OFD Sender: No OFD packet to send [12:37:11]OFD Sender: No OFD packet to send [12:37:16]OFD Sender: No OFD packet to send [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:30]accept exits with 7 [12:37:30]New connection [12:37:30]New thread 3067395428 created [12:37:30]Thread 3067538788 joined [12:37:30]Waiting for new connection... [12:37:30] Sock 7.Parse request [12:37:30]Sock 7.Check first char [12:37:30]Sock 7.First char is OK [12:37:30]request: POST /json_proto HTTP/1.0 [12:37:30]Method: POST [12:37:30]URL: /json_proto [12:37:30]Method is POST - this is cgi request [12:37:30]url: /json_proto [12:37:30]query_string will be loaded in cgi processing [12:37:30]execute_cgi json_proto POST (null) [12:37:30]execute_cgi path=json_proto method=POST [12:37:30]POST find Content-Length [12:37:30]Host: 172.17.41.195:8080 [12:37:30]Content-Length: 1177 [12:37:30]Content-Type: application/json [12:37:30] [12:37:30]POST finish read [12:37:30]Found Content-Length = 1177 [12:37: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507781\u000A17.05.2024 12:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 4.020 x 74.70\u000A\u0418\u0422\u041E\u0413: 300.29\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:37:30]execute_script... [12:37: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507781\u000A17.05.2024 12:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 4.020 x 74.70\u000A\u0418\u0422\u041E\u0413: 300.29\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:37:30]POST & json_proto [12:37:30]process_json_proto [12:37:30]json parsed OK: [12:37:30]protocol is kg_v1.0 [12:37:30]action value=print_text [12:37:30]process_action print_text [12:37:30]cmd_print_text [12:37:30]ExternCall_PrintAddStr [12:37:30]wPrintStart [12:37:30]Write to MH i2c: 01 00 00 25 1B 40 [12:37:30]Write i2c OK [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: 01 [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: 01 07 00 [12:37:30]MH_I2C_Read... [12:37:30]Read from MH i2c: 01 07 00 25 1B 00 00 00 00 00 FF 0F 55 [12:37:30]RasterBufferAndPrint [12:37:30]line *****ТОВАРНЫЙ ЧЕК***** [12:37:30]line АЗС-91 [12:37:30]line Партнер нефть [12:37:30]line 02508201610067 [12:37:30]line Кассир : Адишов И. [12:37:30]line Счет N : (1)507781 [12:37:30]line 17.05.2024 12:20 [12:37:30]line ПРОДАЖА [12:37:30]line ТРК (МРК, ГНК): 11 [12:37:30]line Вид ГСМ : 2710194210 [12:37:30]line ДТ-К-5 [12:37:30]line 4.020 x 74.70 [12:37:30]line ИТОГ: 300.29 [12:37:30]line Тип оплаты: Талоны: Топливная Карта [12:37:30]line 02750 [12:37:30]line ______________________ [12:37:30]line (подпись) [12:37:30]written 0, free lines is 4095 [12:37:30]Write to MH i2c: 01 00 00 39 1B 54 [12:37:31]Write i2c OK [12:37:31]MH_I2C_Read... [12:37:31]Read from MH i2c: 01 [12:37:31]MH_I2C_Read... [12:37:31]Read from MH i2c: 01 07 00 [12:37:31]MH_I2C_Read... [12:37:31]Read from MH i2c: 01 07 00 39 1B 00 00 00 00 00 0B 0E 74 [12:37:31]RasterBufferAndPrint [12:37:31]line [12:37:31]line [12:37:31]line [12:37:31]line [12:37:31]line [12:37:31]written 0, free lines is 3596 [12:37:31]MH_Cut [12:37:31]Write to MH i2c: D1 01 00 40 1B 01 2D [12:37:31]Write i2c OK [12:37:31]MH_I2C_Read... [12:37:31]Read from MH i2c: D1 [12:37:31]MH_I2C_Read... [12:37:31]Read from MH i2c: D1 01 00 [12:37:31]MH_I2C_Read... [12:37:31]Read from MH i2c: D1 01 00 40 1B 00 2C [12:37:31]Write to MH i2c: 01 00 00 41 1B 5C [12:37:31]Write i2c OK [12:37:31]MH_I2C_Read... [12:37:31]OFD Sender: No OFD packet to send [12:37:31]*** Cut start [12:37:31]*** Purtial cut [12:37:31]*** CUTSNS_PIN = 0 [12:37:31]*** Stage 1: CUTSNS_PIN = 1 [12:37:33]Read from MH i2c: 01 [12:37:33]MH_I2C_Read... [12:37:33]Read from MH i2c: 01 07 00 [12:37:33]MH_I2C_Read... [12:37:33]*** Stop cut motor [12:37:33]*** Cut end [12:37:33]Read from MH i2c: 01 07 00 41 1B 00 00 00 00 00 FF 0F 71 [12:37:33]process_action print_text done [12:37:33]requested_data is exist [12:37:33]produce_requested_data [12:37:33]requested_item fm.sn is exist - process it [12:37:33]wFMCommunicate request_size=4 [12:37:33]MH_SAM_APDU [12:37:33]CAPDU: 80 11 00 00 [12:37:33]Write to MH i2c: E2 08 00 42 1B 80 11 00 00 00 00 00 00 D7 [12:37:33]Write i2c OK [12:37:33]MH_I2C_Read... [12:37:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:33]Read from MH i2c: E2 [12:37:33]MH_I2C_Read... [12:37:33]Read from MH i2c: E2 17 00 [12:37:33]MH_I2C_Read... [12:37:33]Read from MH i2c: E2 17 00 42 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2D [12:37:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:37:33]wFMCommunicate OK [12:37:33]requested_item fd.num is exist - process it [12:37:33]SAM_PROTO_GetFieldsCounters [12:37:33]wFMCommunicate request_size=4 [12:37:33]MH_SAM_APDU [12:37:33]CAPDU: 80 13 00 00 [12:37:33]Write to MH i2c: E2 08 00 43 1B 80 13 00 00 00 00 00 00 DA [12:37:33]Write i2c OK [12:37:33]MH_I2C_Read... [12:37:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:33]Read from MH i2c: E2 [12:37:33]MH_I2C_Read... [12:37:33]Read from MH i2c: E2 62 00 [12:37:33]MH_I2C_Read... [12:37:33]Read from MH i2c: E2 62 00 43 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 42 08 01 00 0E 04 04 00 66 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 63 [12:37: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 42 08 01 00 0E 04 04 00 66 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:37:33]wFMCommunicate OK [12:37:33]SAM_PROTO_GetFieldsCounters done [12:37:33]requested_item shift.num is exist - process it [12:37:33]requested_item shift.opened is exist - process it [12:37:33]req_shift_opened [12:37:33]FM_GetShiftState [12:37:33]SAM_PROTO_GetShiftState [12:37:33]wFMCommunicate request_size=4 [12:37:33]MH_SAM_APDU [12:37:33]CAPDU: 80 13 01 00 [12:37:33]Write to MH i2c: E2 08 00 44 1B 80 13 01 00 00 00 00 00 DC [12:37:33]Write i2c OK [12:37:33]MH_I2C_Read... [12:37:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:33]Read from MH i2c: E2 [12:37:33]MH_I2C_Read... [12:37:33]Read from MH i2c: E2 0E 00 [12:37:33]MH_I2C_Read... [12:37:33]Read from MH i2c: E2 0E 00 44 1B 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 62 [12:37:33]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [12:37:33]wFMCommunicate OK [12:37:33]SAM_PROTO_GetShiftState done [12:37:33]FM_GetShiftState done [12:37:33]req_shift_opened done [12:37:33]requested_item shift.open_date is exist - process it [12:37:33]req_shift_open_date [12:37:33]req_shift_open_date done [12:37:33]produce_requested_data done [12:37:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67650,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [12:37:33]process_action_free print_text [12:37:33]json_value_free [12:37:33]json_value_free done [12:37:33]process_json_proto returns [12:37:33]Send response to host [12:37:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67650,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [12:37:33]free response buf [12:37:33]execute_script done [12:37:33]execute_script returns [12:37:33]free content buf [12:37:33]Sock 7.Close socket [12:37:33]Sock 7.Thread stoped [12:37:36]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:50]accept exits with 9 [12:37:50]New connection [12:37:50]New thread 3067538788 created [12:37:50]Thread 3067395428 joined [12:37:50]Waiting for new connection... [12:37:50] Sock 9.Parse request [12:37:50]Sock 9.Check first char [12:37:50]Sock 9.First char is OK [12:37:50]request: POST /json_proto HTTP/1.0 [12:37:50]Method: POST [12:37:50]URL: /json_proto [12:37:50]Method is POST - this is cgi request [12:37:50]url: /json_proto [12:37:50]query_string will be loaded in cgi processing [12:37:50]execute_cgi json_proto POST (null) [12:37:50]execute_cgi path=json_proto method=POST [12:37:50]POST find Content-Length [12:37:50]Host: 172.17.41.195:8080 [12:37:50]Content-Length: 816 [12:37:50]Content-Type: application/json [12:37:50] [12:37:50]POST finish read [12:37:50]Found Content-Length = 816 [12:37:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507780", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:50]execute_script... [12:37: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)507780", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:50]POST & json_proto [12:37:50]process_json_proto [12:37:50]json parsed OK: [12:37:50]protocol is kg_v1.0 [12:37:50]action value=close_receipt [12:37:50]process_action close_receipt [12:37:50]cmd_close_receipt [12:37:50]MH_GetDate [12:37:50]Write to MH i2c: F0 00 00 45 1B 4F [12:37:50]Write i2c OK [12:37:50]MH_I2C_Read... [12:37:50]Read from MH i2c: F0 [12:37:50]MH_I2C_Read... [12:37:50]Read from MH i2c: F0 09 00 [12:37:50]MH_I2C_Read... [12:37:50]Read from MH i2c: F0 09 00 45 1B 00 A2 4F 47 66 FC 21 6F 64 E6 [12:37:50]GetLastDocTimeStamp 1715949376 [12:37:50]current date 1715949474 [12:37:50]FM_GetShiftState [12:37:50]SAM_PROTO_GetShiftState [12:37:50]wFMCommunicate request_size=4 [12:37:50]MH_SAM_APDU [12:37:50]CAPDU: 80 13 01 00 [12:37:50]Write to MH i2c: E2 08 00 46 1B 80 13 01 00 00 00 00 00 DE [12:37:50]Write i2c OK [12:37:50]MH_I2C_Read... [12:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:50]Read from MH i2c: E2 [12:37:50]MH_I2C_Read... [12:37:50]Read from MH i2c: E2 0E 00 [12:37:50]MH_I2C_Read... [12:37:50]Read from MH i2c: E2 0E 00 46 1B 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 64 [12:37:50]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [12:37:50]wFMCommunicate OK [12:37:50]SAM_PROTO_GetShiftState done [12:37:50]FM_GetShiftState done [12:37:50]opened in 1715905068 [12:37:50]opened+sec_in_day 1715991468 [12:37:50]quantity*price = 100023 [12:37:50]sum+1 = 100024 [12:37:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 60 17.05.2024 12:37 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67651 ФПД: 137552488316374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T123754&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67651&fm=137552488316374&tin=02508201610067®Number=0000000000091845&sum=100023 [12:37:51]StoreToDocumentArchive [12:37:51]shift 358 fd 67651 [12:37:51]save to /storage/0358/doc_00067651 [12:37:51]save last doc name /storage/0358/doc_00067651 to /storage/kkm_last_doc_name [12:37:51]save OK [12:37:51]Clear old archive folders... [12:37:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:37:51]tlvbuf is B6F37930 [12:37:51]SAM_PROTO_ClearQueue [12:37:51]wFMCommunicate request_size=4 [12:37:51]MH_SAM_APDU [12:37:51]CAPDU: 80 09 00 00 [12:37:51]Write to MH i2c: E2 08 00 53 1B 80 09 00 00 00 00 00 00 E0 [12:37:51]Write i2c OK [12:37:51]MH_I2C_Read... [12:37:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:51]Read from MH i2c: E2 [12:37:51]MH_I2C_Read... [12:37:51]Read from MH i2c: E2 03 00 [12:37:51]MH_I2C_Read... [12:37:51]Read from MH i2c: E2 03 00 53 1B 00 90 00 E2 [12:37:51]RAPDU: 90 00 [12:37:51]wFMCommunicate OK [12:37:51]SAM_PROTO_ClearQueue done [12:37:51]KKMCreateOFDPacket [12:37:51]OFDProtocolAddRootSTLVToBuf [12:37:51]FM_MakeSignedData [12:37:51]FM_MakeSignedData [12:37:51]SAM_PROTO_SignData [12:37:51]wFMCommunicate request_size=4 [12:37:51]MH_SAM_APDU [12:37:51]CAPDU: 80 0D 01 02 [12:37:51]Write to MH i2c: E2 08 00 54 1B 80 0D 01 02 00 00 00 00 E8 [12:37:51]Write i2c OK [12:37:51]MH_I2C_Read... [12:37:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:52]Read from MH i2c: E2 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 03 00 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 03 00 54 1B 00 90 00 E3 [12:37:52]RAPDU: 90 00 [12:37:52]wFMCommunicate OK [12:37:52]wFMCommunicate request_size=255 [12:37:52]MH_SAM_APDU [12: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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 A2 4F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 7D 1A 6F 34 [12:37:52]Write to MH i2c: E2 02 01 55 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 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 A2 4F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 7D 1A 6F 34 00 00 B7 [12:37:52]Write i2c OK [12:37:52]MH_I2C_Read... [12:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:52]Read from MH i2c: E2 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 03 00 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 03 00 55 1B 00 90 00 E4 [12:37:52]RAPDU: 90 00 [12:37:52]wFMCommunicate OK [12:37:52]wFMCommunicate request_size=7 [12:37:52]MH_SAM_APDU [12:37:52]CAPDU: 80 0D 02 02 02 3D D6 [12:37:52]Write to MH i2c: E2 0A 00 56 1B 80 0D 02 02 02 00 3D D6 00 00 02 [12:37:52]Write i2c OK [12:37:52]MH_I2C_Read... [12:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:52]Read from MH i2c: E2 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 03 00 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 03 00 56 1B 00 90 00 E5 [12:37:52]RAPDU: 90 00 [12:37:52]wFMCommunicate OK [12:37:52]wFMCommunicate request_size=4 [12:37:52]MH_SAM_APDU [12:37:52]CAPDU: 80 0D 03 02 [12:37:52]Write to MH i2c: E2 08 00 57 1B 80 0D 03 02 00 00 00 00 ED [12:37:52]Write i2c OK [12:37:52]MH_I2C_Read... [12:37:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:52]Read from MH i2c: E2 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 0B 00 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 0B 00 57 1B 00 79 8C 88 55 85 BF 31 18 90 00 5D [12:37:52]RAPDU: 79 8C 88 55 85 BF 31 18 90 00 [12:37:52]wFMCommunicate OK [12:37:52]SAM_PROTO_SignData done [12:37:52]FM_MakeSignedData done [12:37:52]CreateOFDProtocolMessage [12:37:52]wFMCommunicate request_size=4 [12:37:52]MH_SAM_APDU [12:37:52]CAPDU: 80 11 00 00 [12:37:52]Write to MH i2c: E2 08 00 58 1B 80 11 00 00 00 00 00 00 ED [12:37:52]Write i2c OK [12:37:52]MH_I2C_Read... [12:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:52]Read from MH i2c: E2 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 17 00 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 17 00 58 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 43 [12:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:37:52]wFMCommunicate OK [12:37:52]CreateOFDProtocolMessage done [12:37:52]OFDSenderStorePacket 67651 [12:37:52]StoreOFDPacket docnum=67651 [12:37: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 21 AD 04 01 F3 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 3C 00 00 00 F4 03 04 00 A2 4F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 7D 1A 6F 34 3D D6 79 8C 88 55 85 BF 31 18 [12:37:52]CheckFolder [12:37:52]dirname=/storage/ofd_packets [12:37:52]CheckFolder done [12:37:52]ProducePacketName [12:37:52]name=ofd_packets/00067651 [12:37:52]NVStorageSaveData ofd_packets/00067651 [12:37:52]File name is /storage/ofd_packets/00067651 [12:37:52]Write 298 bytes [12:37:52]NVStorageSaveData done [12:37:52]OFDSenderStorePacket done [12:37:52]KKMCreateOFDPacket done [12:37:52]NVStorageSaveData kkm_last_timestamp [12:37:52]File name is /storage/kkm_last_timestamp [12:37:52]Write 4 bytes [12:37:52]NVStorageSaveData done [12:37:52]ExternCall_PrintAddStr [12:37:52]wPrintStart [12:37:52]Write to MH i2c: 01 00 00 59 1B 74 [12:37:52]Write i2c OK [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: 01 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: 01 07 00 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: 01 07 00 59 1B 00 00 00 00 00 FF 0F 89 [12:37:52]RasterBufferAndPrint [12:37:52]line Счет N : (1)507780 [12:37:52]line ИНН: 02508201610067 [12:37:52]line Контрольно-Кассовый Чек [12:37:52]line ПРОДАЖА [12:37:52]line ТРК (МРК, ГНК) : 31 [12:37:52]line Товар: 2710194210 [12:37:52]line ДТ-К-5 [12:37:52]line 13.390 * 74.70 [12:37:52]line = 1000.23 [12:37:52]line НДС 12% НСП 1% [12:37:52]line > о реализуемом товаре [12:37:52]line ИТОГО: 1000.23 [12:37:52]line НСП 1% : 8.85 [12:37:52]line НДС 12% : 106.22 [12:37:52]line Наличными: 0.00 [12:37:52]line Безнал.: 1000.23 [12:37:52]line Место: АЗС № 91 "Партнер Нефть" [12:37:52]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:37:52]line СНО: Общий режим [12:37:52]line Чек 60 17.05.2024 12:37 [12:37:52]line Смена: 358 ФФД: 1.0 [12:37:52]line ЗНМ: 0300000119 [12:37:52]line РНМ: 0000000000091845 [12:37:52]line Версия ККМ: 001 [12:37:52]line Платежная система: Бакай Банк [12:37:52]line ФМ: 0000000000871829 [12:37:52]line ФД: 67651 [12:37:52]line ФПД: 137552488316374 [12:37:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T123754&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67651&fm=137552488316374&tin=02508201610067®Number=0000000000091845&sum=100023 [12:37:52]OFD Sender: Processing packet 67651 [packets to send 35, broken 34] [12:37:52]ProducePacketName [12:37:52]name=ofd_packets/00067651 [12:37:52]OFD Sender: To server: pG, [12:37:52]CommunicateWithHost lk.salyk.kg:30040 [12:37:52]ConnectInit lk.salyk.kg [12:37:52]written 0, free lines is 4095 [12:37:52]Connected sock=10 [12:37:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 21 AD 04 01 F3 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 3C 00 00 00 F4 03 04 00 A2 4F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 7D 1A 6F 34 3D D6 79 8C 88 55 85 BF 31 18 [12: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 98 56 47 00 AC 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 43 08 01 00 F4 03 04 00 7A F7 46 66 B6 04 01 00 00 17 21 BF 7F 21 BD 6D 5B [12:37:53]CommunicateWithHost err = 0 [12:37:53]CheckOFDResponse [12:37:53]1017 (14) - 77093643461234 [12:37:53]1041 (16) - 0000000000871829 [12:37:53]1040 (4) - 67651 [12:37:53]1012 (4) - 17.05.2024 06:21 [12:37:53]1206 (1) - 0 [12:37:53]OFD Sender: Remove packet 67651 [12:37:53]ProducePacketName [12:37:53]name=ofd_packets/00067651 [12:37:53]NVStorageDeleteData [12:37:53]Write to MH i2c: 01 00 00 82 1B 9D [12:37:53]Write i2c OK [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: 01 [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: 01 07 00 [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: 01 07 00 82 1B 00 00 00 00 00 D6 0C 86 [12:37:53]RasterBufferAndPrint [12:37:53]line [12:37:53]line [12:37:53]line [12:37:53]line [12:37:53]line [12:37:53]written 0, free lines is 3290 [12:37:53]MH_Cut [12:37:53]Write to MH i2c: D1 01 00 89 1B 01 76 [12:37:53]Write i2c OK [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: D1 [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: D1 01 00 [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: D1 01 00 89 1B 00 75 [12:37:53]Write to MH i2c: 01 00 00 8A 1B A5 [12:37:53]Write i2c OK [12:37:53]MH_I2C_Read... [12:37:53]OFD Sender: No OFD packet to send [12:37:54]*** Cut start [12:37:54]*** Purtial cut [12:37:54]*** Stage 1: CUTSNS_PIN = 1 [12:37:54]Read from MH i2c: 01 [12:37:54]MH_I2C_Read... [12:37:54]*** Stop cut motor [12:37:54]*** Cut end [12:37:54]Read from MH i2c: 01 07 00 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: 01 07 00 8A 1B 00 00 00 00 00 FF 0F BA [12:37:54]process_action close_receipt done [12:37:54]requested_data is exist [12:37:54]produce_requested_data [12:37:54]requested_item fm.sn is exist - process it [12:37:54]wFMCommunicate request_size=4 [12:37:54]MH_SAM_APDU [12:37:54]CAPDU: 80 11 00 00 [12:37:54]Write to MH i2c: E2 08 00 8B 1B 80 11 00 00 00 00 00 00 20 [12:37:54]Write i2c OK [12:37:54]MH_I2C_Read... [12:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:54]Read from MH i2c: E2 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: E2 17 00 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: E2 17 00 8B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 76 [12:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:37:54]wFMCommunicate OK [12:37:54]requested_item fd.num is exist - process it [12:37:54]SAM_PROTO_GetFieldsCounters [12:37:54]wFMCommunicate request_size=4 [12:37:54]MH_SAM_APDU [12:37:54]CAPDU: 80 13 00 00 [12:37:54]Write to MH i2c: E2 08 00 8C 1B 80 13 00 00 00 00 00 00 23 [12:37:54]Write i2c OK [12:37:54]MH_I2C_Read... [12:37:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:54]Read from MH i2c: E2 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: E2 62 00 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: E2 62 00 8C 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 43 08 01 00 0E 04 04 00 66 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 B0 [12:37: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 43 08 01 00 0E 04 04 00 66 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:37:54]wFMCommunicate OK [12:37:54]SAM_PROTO_GetFieldsCounters done [12:37:54]requested_item shift.num is exist - process it [12:37:54]requested_item shift.opened is exist - process it [12:37:54]req_shift_opened [12:37:54]FM_GetShiftState [12:37:54]SAM_PROTO_GetShiftState [12:37:54]wFMCommunicate request_size=4 [12:37:54]MH_SAM_APDU [12:37:54]CAPDU: 80 13 01 00 [12:37:54]Write to MH i2c: E2 08 00 8D 1B 80 13 01 00 00 00 00 00 25 [12:37:54]Write i2c OK [12:37:54]MH_I2C_Read... [12:37:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:54]Read from MH i2c: E2 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: E2 0E 00 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: E2 0E 00 8D 1B 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 AB [12:37:54]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [12:37:54]wFMCommunicate OK [12:37:54]SAM_PROTO_GetShiftState done [12:37:54]FM_GetShiftState done [12:37:54]req_shift_opened done [12:37:54]requested_item shift.open_date is exist - process it [12:37:54]req_shift_open_date [12:37:54]req_shift_open_date done [12:37:54]produce_requested_data done [12:37:54]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67651,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [12:37:54]process_action_free close_receipt [12:37:54]json_value_free [12:37:54]json_value_free done [12:37:54]process_json_proto returns [12:37:54]Send response to host [12:37:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67651,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [12:37:54]free response buf [12:37:54]execute_script done [12:37:54]execute_script returns [12:37:54]free content buf [12:37:54]Sock 9.Close socket [12:37:54]Sock 9.Thread stoped [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]accept exits with 7 [12:44:08]New connection [12:44:08]New thread 3067395428 created [12:44:08]Thread 3067538788 joined [12:44:08]Waiting for new connection... [12:44:08] Sock 7.Parse request [12:44:08]Sock 7.Check first char [12:44:08]Sock 7.First char is OK [12:44:08]request: POST /json_proto HTTP/1.0 [12:44:08]Method: POST [12:44:08]URL: /json_proto [12:44:08]Method is POST - this is cgi request [12:44:08]url: /json_proto [12:44:08]query_string will be loaded in cgi processing [12:44:08]execute_cgi json_proto POST (null) [12:44:08]execute_cgi path=json_proto method=POST [12:44:08]POST find Content-Length [12:44:08]Host: 172.17.41.195:8080 [12:44:08]Content-Length: 1182 [12:44:08]Content-Type: application/json [12:44:08] [12:44:08]POST finish read [12:44:08]Found Content-Length = 1182 [12:44: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507782\u000A17.05.2024 12:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1002.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:44:08]execute_script... [12:44: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507782\u000A17.05.2024 12:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1002.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:44:08]POST & json_proto [12:44:08]process_json_proto [12:44:08]json parsed OK: [12:44:08]protocol is kg_v1.0 [12:44:08]action value=print_text [12:44:08]process_action print_text [12:44:08]cmd_print_text [12:44:08]ExternCall_PrintAddStr [12:44:08]wPrintStart [12:44:08]Write to MH i2c: 01 00 00 8E 1B A9 [12:44:08]Write i2c OK [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: 01 [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: 01 07 00 [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: 01 07 00 8E 1B 00 00 00 00 00 FF 0F BE [12:44:08]RasterBufferAndPrint [12:44:08]line *****ТОВАРНЫЙ ЧЕК***** [12:44:08]line АЗС-91 [12:44:08]line Партнер нефть [12:44:08]line 02508201610067 [12:44:08]line Кассир : Адишов И. [12:44:08]line Счет N : (1)507782 [12:44:08]line 17.05.2024 12:26 [12:44:08]line ПРОДАЖА [12:44:08]line ТРК (МРК, ГНК): 33 [12:44:08]line Вид ГСМ : 2710124130 [12:44:08]line Аи-92-К-5 [12:44:08]line 15.000 x 66.80 [12:44:08]line ИТОГ: 1002.00 [12:44:08]line Тип оплаты: Талоны: Топливная Карта [12:44:08]line 02750 [12:44:08]line ______________________ [12:44:08]line (подпись) [12:44:08]written 0, free lines is 4095 [12:44:08]Write to MH i2c: 01 00 00 A2 1B BD [12:44:08]Write i2c OK [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: 01 [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: 01 07 00 [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: 01 07 00 A2 1B 00 00 00 00 00 0E 0E E0 [12:44:08]RasterBufferAndPrint [12:44:08]line [12:44:08]line [12:44:08]line [12:44:08]line [12:44:08]line [12:44:08]written 0, free lines is 3600 [12:44:08]MH_Cut [12:44:08]Write to MH i2c: D1 01 00 A9 1B 01 96 [12:44:08]Write i2c OK [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: D1 [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: D1 01 00 [12:44:08]MH_I2C_Read... [12:44:08]Read from MH i2c: D1 01 00 A9 1B 00 95 [12:44:08]Write to MH i2c: 01 00 00 AA 1B C5 [12:44:08]Write i2c OK [12:44:08]MH_I2C_Read... [12:44:08]OFD Sender: No OFD packet to send [12:44:09]*** Cut start [12:44:09]*** Purtial cut [12:44:09]*** CUTSNS_PIN = 0 [12:44:09]*** Stage 1: CUTSNS_PIN = 1 [12:44:11]Read from MH i2c: 01 [12:44:11]MH_I2C_Read... [12:44:11]Read from MH i2c: 01 07 00 [12:44:11]MH_I2C_Read... [12:44:11]*** Stop cut motor [12:44:11]*** Cut end [12:44:11]Read from MH i2c: 01 07 00 AA 1B 00 00 00 00 00 FF 0F DA [12:44:11]process_action print_text done [12:44:11]requested_data is exist [12:44:11]produce_requested_data [12:44:11]requested_item fm.sn is exist - process it [12:44:11]wFMCommunicate request_size=4 [12:44:11]MH_SAM_APDU [12:44:11]CAPDU: 80 11 00 00 [12:44:11]Write to MH i2c: E2 08 00 AB 1B 80 11 00 00 00 00 00 00 40 [12:44:11]Write i2c OK [12:44:11]MH_I2C_Read... [12:44:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:11]Read from MH i2c: E2 [12:44:11]MH_I2C_Read... [12:44:11]Read from MH i2c: E2 17 00 [12:44:11]MH_I2C_Read... [12:44:11]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 [12:44:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:44:11]wFMCommunicate OK [12:44:11]requested_item fd.num is exist - process it [12:44:11]SAM_PROTO_GetFieldsCounters [12:44:11]wFMCommunicate request_size=4 [12:44:11]MH_SAM_APDU [12:44:11]CAPDU: 80 13 00 00 [12:44:11]Write to MH i2c: E2 08 00 AC 1B 80 13 00 00 00 00 00 00 43 [12:44:11]Write i2c OK [12:44:11]MH_I2C_Read... [12:44:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:11]Read from MH i2c: E2 [12:44:11]MH_I2C_Read... [12:44:11]Read from MH i2c: E2 62 00 [12:44:11]MH_I2C_Read... [12:44:11]Read from MH i2c: E2 62 00 AC 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 43 08 01 00 0E 04 04 00 66 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 D0 [12:44: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 43 08 01 00 0E 04 04 00 66 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:44:11]wFMCommunicate OK [12:44:11]SAM_PROTO_GetFieldsCounters done [12:44:11]requested_item shift.num is exist - process it [12:44:11]requested_item shift.opened is exist - process it [12:44:11]req_shift_opened [12:44:11]FM_GetShiftState [12:44:11]SAM_PROTO_GetShiftState [12:44:11]wFMCommunicate request_size=4 [12:44:11]MH_SAM_APDU [12:44:11]CAPDU: 80 13 01 00 [12:44:11]Write to MH i2c: E2 08 00 AD 1B 80 13 01 00 00 00 00 00 45 [12:44:11]Write i2c OK [12:44:11]MH_I2C_Read... [12:44:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:11]Read from MH i2c: E2 [12:44:11]MH_I2C_Read... [12:44:11]Read from MH i2c: E2 0E 00 [12:44:11]MH_I2C_Read... [12:44:11]Read from MH i2c: E2 0E 00 AD 1B 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CB [12:44:11]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [12:44:11]wFMCommunicate OK [12:44:11]SAM_PROTO_GetShiftState done [12:44:11]FM_GetShiftState done [12:44:11]req_shift_opened done [12:44:11]requested_item shift.open_date is exist - process it [12:44:11]req_shift_open_date [12:44:11]req_shift_open_date done [12:44:11]produce_requested_data done [12:44:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67651,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [12:44:11]process_action_free print_text [12:44:11]json_value_free [12:44:11]json_value_free done [12:44:11]process_json_proto returns [12:44:11]Send response to host [12:44:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67651,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [12:44:11]free response buf [12:44:11]execute_script done [12:44:11]execute_script returns [12:44:11]free content buf [12:44:11]Sock 7.Close socket [12:44:11]Sock 7.Thread stoped [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:39]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]accept exits with 9 [12:57:09]New connection [12:57:09]New thread 3067538788 created [12:57:09]Thread 3067395428 joined [12:57:09]Waiting for new connection... [12:57:09] Sock 9.Parse request [12:57:09]Sock 9.Check first char [12:57:09]Sock 9.First char is OK [12:57:09]request: POST /json_proto HTTP/1.0 [12:57:09]Method: POST [12:57:09]URL: /json_proto [12:57:09]Method is POST - this is cgi request [12:57:09]url: /json_proto [12:57:09]query_string will be loaded in cgi processing [12:57:09]execute_cgi json_proto POST (null) [12:57:09]execute_cgi path=json_proto method=POST [12:57:09]POST find Content-Length [12:57:09]Host: 172.17.41.195:8080 [12:57:09]Content-Length: 677 [12:57:09]Content-Type: application/json [12:57:09] [12:57:09]POST finish read [12:57:09]Found Content-Length = 677 [12:57:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507783", "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" ] } } [12:57:09]execute_script... [12:57: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)507783", "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" ] } } [12:57:09]POST & json_proto [12:57:09]process_json_proto [12:57:09]json parsed OK: [12:57:09]protocol is kg_v1.0 [12:57:09]action value=close_receipt [12:57:09]process_action close_receipt [12:57:09]cmd_close_receipt [12:57:09]MH_GetDate [12:57:09]Write to MH i2c: F0 00 00 AE 1B B8 [12:57:09]Write i2c OK [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: F0 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: F0 09 00 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: F0 09 00 AE 1B 00 28 54 47 66 FC 21 6F 64 DA [12:57:09]GetLastDocTimeStamp 1715949474 [12:57:09]current date 1715950632 [12:57:09]FM_GetShiftState [12:57:09]SAM_PROTO_GetShiftState [12:57:09]wFMCommunicate request_size=4 [12:57:09]MH_SAM_APDU [12:57:09]CAPDU: 80 13 01 00 [12:57:09]Write to MH i2c: E2 08 00 AF 1B 80 13 01 00 00 00 00 00 47 [12:57:09]Write i2c OK [12:57:09]MH_I2C_Read... [12:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:09]Read from MH i2c: E2 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: E2 0E 00 [12:57:09]MH_I2C_Read... [12:57:09]Read from MH i2c: E2 0E 00 AF 1B 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CD [12:57:09]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [12:57:09]wFMCommunicate OK [12:57:09]SAM_PROTO_GetShiftState done [12:57:09]FM_GetShiftState done [12:57:09]opened in 1715905068 [12:57:09]opened+sec_in_day 1715991468 [12:57:09]quantity*price = 40013 [12:57:09]sum+1 = 40014 [12:57:09]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 СНО: Общий режим Чек 61 17.05.2024 12:57 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67652 ФПД: 89630133440500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T125712&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67652&fm=89630133440500&tin=02508201610067®Number=0000000000091845&sum=40000 [12:57:10]StoreToDocumentArchive [12:57:10]shift 358 fd 67652 [12:57:10]save to /storage/0358/doc_00067652 [12:57:10]save last doc name /storage/0358/doc_00067652 to /storage/kkm_last_doc_name [12:57:10]save OK [12:57:10]Clear old archive folders... [12:57:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:57:10]tlvbuf is 015CE6B0 [12:57:10]SAM_PROTO_ClearQueue [12:57:10]wFMCommunicate request_size=4 [12:57:10]MH_SAM_APDU [12:57:10]CAPDU: 80 09 00 00 [12:57:10]Write to MH i2c: E2 08 00 BC 1B 80 09 00 00 00 00 00 00 49 [12:57:10]Write i2c OK [12:57:10]MH_I2C_Read... [12:57:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:10]Read from MH i2c: E2 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: E2 03 00 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: E2 03 00 BC 1B 00 90 00 4B [12:57:10]RAPDU: 90 00 [12:57:10]wFMCommunicate OK [12:57:10]SAM_PROTO_ClearQueue done [12:57:10]KKMCreateOFDPacket [12:57:10]OFDProtocolAddRootSTLVToBuf [12:57:10]FM_MakeSignedData [12:57:10]FM_MakeSignedData [12:57:10]SAM_PROTO_SignData [12:57:10]wFMCommunicate request_size=4 [12:57:10]MH_SAM_APDU [12:57:10]CAPDU: 80 0D 01 02 [12:57:10]Write to MH i2c: E2 08 00 BD 1B 80 0D 01 02 00 00 00 00 51 [12:57:10]Write i2c OK [12:57:10]MH_I2C_Read... [12:57:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:10]Read from MH i2c: E2 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: E2 03 00 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: E2 03 00 BD 1B 00 90 00 4C [12:57:10]RAPDU: 90 00 [12:57:10]wFMCommunicate OK [12:57:10]wFMCommunicate request_size=255 [12:57:10]MH_SAM_APDU [12:57: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 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 3D 00 00 00 F4 03 04 00 28 54 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 51 [12:57:10]Write to MH i2c: E2 02 01 BE 1B 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 3D 00 00 00 F4 03 04 00 28 54 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 51 00 00 27 [12:57:10]Write i2c OK [12:57:10]MH_I2C_Read... [12:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:10]Read from MH i2c: E2 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: E2 03 00 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: E2 03 00 BE 1B 00 90 00 4D [12:57:10]RAPDU: 90 00 [12:57:10]wFMCommunicate OK [12:57:10]wFMCommunicate request_size=10 [12:57:10]MH_SAM_APDU [12:57:10]CAPDU: 80 0D 02 02 05 84 A4 43 CF F4 [12:57:10]Write to MH i2c: E2 0D 00 BF 1B 80 0D 02 02 05 00 84 A4 43 CF F4 00 00 8C [12:57:10]Write i2c OK [12:57:10]MH_I2C_Read... [12:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:10]Read from MH i2c: E2 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: E2 03 00 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: E2 03 00 BF 1B 00 90 00 4E [12:57:10]RAPDU: 90 00 [12:57:10]wFMCommunicate OK [12:57:10]wFMCommunicate request_size=4 [12:57:10]MH_SAM_APDU [12:57:10]CAPDU: 80 0D 03 02 [12:57:10]Write to MH i2c: E2 08 00 C0 1B 80 0D 03 02 00 00 00 00 56 [12:57:10]Write i2c OK [12:57:10]MH_I2C_Read... [12:57:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:10]Read from MH i2c: E2 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: E2 0B 00 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: E2 0B 00 C0 1B 00 CC 7B D3 82 34 09 AB A3 90 00 7E [12:57:10]RAPDU: CC 7B D3 82 34 09 AB A3 90 00 [12:57:10]wFMCommunicate OK [12:57:10]SAM_PROTO_SignData done [12:57:10]FM_MakeSignedData done [12:57:10]CreateOFDProtocolMessage [12:57:10]wFMCommunicate request_size=4 [12:57:10]MH_SAM_APDU [12:57:10]CAPDU: 80 11 00 00 [12:57:10]Write to MH i2c: E2 08 00 C1 1B 80 11 00 00 00 00 00 00 56 [12:57:10]Write i2c OK [12:57:10]MH_I2C_Read... [12:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:10]Read from MH i2c: E2 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: E2 17 00 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: E2 17 00 C1 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AC [12: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 [12:57:10]wFMCommunicate OK [12:57:10]CreateOFDProtocolMessage done [12:57:10]OFDSenderStorePacket 67652 [12:57:10]StoreOFDPacket docnum=67652 [12:57: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 AD 48 07 01 37 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 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 3D 00 00 00 F4 03 04 00 28 54 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 51 84 A4 43 CF F4 CC 7B D3 82 34 09 AB A3 [12:57:10]CheckFolder [12:57:10]dirname=/storage/ofd_packets [12:57:10]CheckFolder done [12:57:10]ProducePacketName [12:57:10]name=ofd_packets/00067652 [12:57:10]NVStorageSaveData ofd_packets/00067652 [12:57:10]File name is /storage/ofd_packets/00067652 [12:57:10]Write 301 bytes [12:57:10]NVStorageSaveData done [12:57:10]OFDSenderStorePacket done [12:57:10]KKMCreateOFDPacket done [12:57:10]NVStorageSaveData kkm_last_timestamp [12:57:10]File name is /storage/kkm_last_timestamp [12:57:10]Write 4 bytes [12:57:10]NVStorageSaveData done [12:57:10]ExternCall_PrintAddStr [12:57:10]wPrintStart [12:57:10]Write to MH i2c: 01 00 00 C2 1B DD [12:57:10]Write i2c OK [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: 01 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: 01 07 00 [12:57:10]MH_I2C_Read... [12:57:10]Read from MH i2c: 01 07 00 C2 1B 00 00 00 00 00 FF 0F F2 [12:57:10]RasterBufferAndPrint [12:57:10]line Счет N : (1)507783 [12:57:10]line ИНН: 02508201610067 [12:57:10]line Контрольно-Кассовый Чек [12:57:10]line ПРОДАЖА [12:57:10]line ТРК (МРК, ГНК) : 43 [12:57:10]line Товар: 2710124130 [12:57:10]line Аи-92-К-5 [12:57:10]line 5.990 * 66.80 [12:57:10]line = 400.13 [12:57:10]line НДС 12% НСП 1% [12:57:10]line > о реализуемом товаре [12:57:10]line ОКРУГЛЕНИЕ: -0.13 [12:57:10]line ИТОГО: 400.00 [12:57:10]line Внесено: 400.00 [12:57:10]line СДАЧА: 0.00 [12:57:10]line НСП 1% : 3.54 [12:57:10]line НДС 12% : 42.49 [12:57:10]line Наличными: 400.00 [12:57:10]line Безнал.: 0.00 [12:57:10]line Место: АЗС № 91 "Партнер Нефть" [12:57:10]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:57:10]line СНО: Общий режим [12:57:10]line Чек 61 17.05.2024 12:57 [12:57:10]line Смена: 358 ФФД: 1.0 [12:57:10]line ЗНМ: 0300000119 [12:57:10]line РНМ: 0000000000091845 [12:57:10]line Версия ККМ: 001 [12:57:10]line ФМ: 0000000000871829 [12:57:10]line ФД: 67652 [12:57:10]line ФПД: 89630133440500 [12:57:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T125712&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67652&fm=89630133440500&tin=02508201610067®Number=0000000000091845&sum=40000 [12:57:11]written 0, free lines is 4095 [12:57:11]OFD Sender: Processing packet 67652 [packets to send 35, broken 34] [12:57:11]ProducePacketName [12:57:11]name=ofd_packets/00067652 [12:57:11]OFD Sender: To server: pG, [12:57:11]CommunicateWithHost lk.salyk.kg:30040 [12:57:11]ConnectInit lk.salyk.kg [12:57:11]Connected sock=10 [12:57: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 AD 48 07 01 37 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 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 3D 00 00 00 F4 03 04 00 28 54 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 51 84 A4 43 CF F4 CC 7B D3 82 34 09 AB A3 [12:57: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 87 E3 47 00 5B 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 44 08 01 00 F4 03 04 00 00 FC 46 66 B6 04 01 00 00 25 8C 9A 78 B3 C6 94 E4 [12:57:11]CommunicateWithHost err = 0 [12:57:11]CheckOFDResponse [12:57:11]1017 (14) - 77093643461234 [12:57:11]1041 (16) - 0000000000871829 [12:57:11]1040 (4) - 67652 [12:57:11]1012 (4) - 17.05.2024 06:41 [12:57:11]1206 (1) - 0 [12:57:11]OFD Sender: Remove packet 67652 [12:57:11]ProducePacketName [12:57:11]name=ofd_packets/00067652 [12:57:11]NVStorageDeleteData [12:57:11]Write to MH i2c: 01 00 00 EC 1B 07 [12:57:11]Write i2c OK [12:57:11]MH_I2C_Read... [12:57:11]Read from MH i2c: 01 [12:57:11]MH_I2C_Read... [12:57:11]Read from MH i2c: 01 07 00 [12:57:11]MH_I2C_Read... [12:57:11]Read from MH i2c: 01 07 00 EC 1B 00 00 00 00 00 CC 0C E6 [12:57:11]RasterBufferAndPrint [12:57:11]line [12:57:11]line [12:57:11]line [12:57:11]line [12:57:11]line [12:57:11]written 0, free lines is 3283 [12:57:11]MH_Cut [12:57:11]Write to MH i2c: D1 01 00 F3 1B 01 E0 [12:57:11]Write i2c OK [12:57:11]MH_I2C_Read... [12:57:11]Read from MH i2c: D1 [12:57:11]MH_I2C_Read... [12:57:11]Read from MH i2c: D1 01 00 [12:57:11]MH_I2C_Read... [12:57:11]Read from MH i2c: D1 01 00 F3 1B 00 DF [12:57:11]Write to MH i2c: 01 00 00 F4 1B 0F [12:57:11]Write i2c OK [12:57:11]MH_I2C_Read... [12:57:12]OFD Sender: No OFD packet to send [12:57:12]*** Cut start [12:57:12]*** Purtial cut [12:57:12]*** Stage 1: CUTSNS_PIN = 1 [12:57:12]Read from MH i2c: 01 [12:57:12]MH_I2C_Read... [12:57:12]*** Stop cut motor [12:57:12]*** Cut end [12:57:12]Read from MH i2c: 01 07 00 [12:57:12]MH_I2C_Read... [12:57:12]Read from MH i2c: 01 07 00 F4 1B 00 00 00 00 00 FF 0F 24 [12:57:12]process_action close_receipt done [12:57:12]requested_data is exist [12:57:12]produce_requested_data [12:57:12]requested_item fm.sn is exist - process it [12:57:12]wFMCommunicate request_size=4 [12:57:12]MH_SAM_APDU [12:57:12]CAPDU: 80 11 00 00 [12:57:12]Write to MH i2c: E2 08 00 F5 1B 80 11 00 00 00 00 00 00 8A [12:57:12]Write i2c OK [12:57:12]MH_I2C_Read... [12:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:12]Read from MH i2c: E2 [12:57:12]MH_I2C_Read... [12:57:12]Read from MH i2c: E2 17 00 [12:57:12]MH_I2C_Read... [12:57:12]Read from MH i2c: E2 17 00 F5 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E0 [12:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:57:12]wFMCommunicate OK [12:57:12]requested_item fd.num is exist - process it [12:57:12]SAM_PROTO_GetFieldsCounters [12:57:12]wFMCommunicate request_size=4 [12:57:12]MH_SAM_APDU [12:57:12]CAPDU: 80 13 00 00 [12:57:12]Write to MH i2c: E2 08 00 F6 1B 80 13 00 00 00 00 00 00 8D [12:57:12]Write i2c OK [12:57:12]MH_I2C_Read... [12:57:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:13]Read from MH i2c: E2 [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: E2 62 00 [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: E2 62 00 F6 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 44 08 01 00 0E 04 04 00 66 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 1E [12:57: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 44 08 01 00 0E 04 04 00 66 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:57:13]wFMCommunicate OK [12:57:13]SAM_PROTO_GetFieldsCounters done [12:57:13]requested_item shift.num is exist - process it [12:57:13]requested_item shift.opened is exist - process it [12:57:13]req_shift_opened [12:57:13]FM_GetShiftState [12:57:13]SAM_PROTO_GetShiftState [12:57:13]wFMCommunicate request_size=4 [12:57:13]MH_SAM_APDU [12:57:13]CAPDU: 80 13 01 00 [12:57:13]Write to MH i2c: E2 08 00 F7 1B 80 13 01 00 00 00 00 00 8F [12:57:13]Write i2c OK [12:57:13]MH_I2C_Read... [12:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:13]Read from MH i2c: E2 [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: E2 0E 00 [12:57:13]MH_I2C_Read... [12:57:13]Read from MH i2c: E2 0E 00 F7 1B 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 15 [12:57:13]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [12:57:13]wFMCommunicate OK [12:57:13]SAM_PROTO_GetShiftState done [12:57:13]FM_GetShiftState done [12:57:13]req_shift_opened done [12:57:13]requested_item shift.open_date is exist - process it [12:57:13]req_shift_open_date [12:57:13]req_shift_open_date done [12:57:13]produce_requested_data done [12:57:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67652,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [12:57:13]process_action_free close_receipt [12:57:13]json_value_free [12:57:13]json_value_free done [12:57:13]process_json_proto returns [12:57:13]Send response to host [12:57:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67652,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [12:57:13]free response buf [12:57:13]execute_script done [12:57:13]execute_script returns [12:57:13]free content buf [12:57:13]Sock 9.Close socket [12:57:13]Sock 9.Thread stoped [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:32]accept exits with 7 [13:00:32]New connection [13:00:32]New thread 3067395428 created [13:00:32]Thread 3067538788 joined [13:00:32]Waiting for new connection... [13:00:32] Sock 7.Parse request [13:00:32]Sock 7.Check first char [13:00:32]Sock 7.First char is OK [13:00:32]request: POST /json_proto HTTP/1.0 [13:00:32]Method: POST [13:00:32]URL: /json_proto [13:00:32]Method is POST - this is cgi request [13:00:32]url: /json_proto [13:00:32]query_string will be loaded in cgi processing [13:00:32]execute_cgi json_proto POST (null) [13:00:32]execute_cgi path=json_proto method=POST [13:00:32]POST find Content-Length [13:00:32]Host: 172.17.41.195:8080 [13:00:32]Content-Length: 801 [13:00:32]Content-Type: application/json [13:00:32] [13:00:32]POST finish read [13:00:32]Found Content-Length = 801 [13:00:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507784", "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" ] } } [13:00:32]execute_script... [13:00: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)507784", "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" ] } } [13:00:32]POST & json_proto [13:00:32]process_json_proto [13:00:32]json parsed OK: [13:00:32]protocol is kg_v1.0 [13:00:32]action value=close_receipt [13:00:32]process_action close_receipt [13:00:32]cmd_close_receipt [13:00:32]MH_GetDate [13:00:32]Write to MH i2c: F0 00 00 F8 1B 02 [13:00:32]Write i2c OK [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: F0 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: F0 09 00 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: F0 09 00 F8 1B 00 F3 54 47 66 FC 21 6F 64 EF [13:00:32]GetLastDocTimeStamp 1715950632 [13:00:32]current date 1715950835 [13:00:32]FM_GetShiftState [13:00:32]SAM_PROTO_GetShiftState [13:00:32]wFMCommunicate request_size=4 [13:00:32]MH_SAM_APDU [13:00:32]CAPDU: 80 13 01 00 [13:00:32]Write to MH i2c: E2 08 00 F9 1B 80 13 01 00 00 00 00 00 91 [13:00:32]Write i2c OK [13:00:32]MH_I2C_Read... [13:00:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:32]Read from MH i2c: E2 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: E2 0E 00 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: E2 0E 00 F9 1B 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 17 [13:00:32]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:00:32]wFMCommunicate OK [13:00:32]SAM_PROTO_GetShiftState done [13:00:32]FM_GetShiftState done [13:00:32]opened in 1715905068 [13:00:32]opened+sec_in_day 1715991468 [13:00:32]quantity*price = 80026 [13:00:32]sum+1 = 80027 [13:00:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.26 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 0.00 Безнал.: 800.26 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 62 17.05.2024 13:00 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67653 ФПД: 73728564092042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T130035&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67653&fm=73728564092042&tin=02508201610067®Number=0000000000091845&sum=80026 [13:00:33]StoreToDocumentArchive [13:00:33]shift 358 fd 67653 [13:00:33]save to /storage/0358/doc_00067653 [13:00:33]save last doc name /storage/0358/doc_00067653 to /storage/kkm_last_doc_name [13:00:33]save OK [13:00:33]Clear old archive folders... [13:00:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:33]tlvbuf is 016604E0 [13:00:33]SAM_PROTO_ClearQueue [13:00:33]wFMCommunicate request_size=4 [13:00:33]MH_SAM_APDU [13:00:33]CAPDU: 80 09 00 00 [13:00:33]Write to MH i2c: E2 08 00 06 1C 80 09 00 00 00 00 00 00 94 [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:33]Read from MH i2c: E2 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 03 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 03 00 06 1C 00 90 00 96 [13:00:33]RAPDU: 90 00 [13:00:33]wFMCommunicate OK [13:00:33]SAM_PROTO_ClearQueue done [13:00:33]KKMCreateOFDPacket [13:00:33]OFDProtocolAddRootSTLVToBuf [13:00:33]FM_MakeSignedData [13:00:33]FM_MakeSignedData [13:00:33]SAM_PROTO_SignData [13:00:33]wFMCommunicate request_size=4 [13:00:33]MH_SAM_APDU [13:00:33]CAPDU: 80 0D 01 02 [13:00:33]Write to MH i2c: E2 08 00 07 1C 80 0D 01 02 00 00 00 00 9C [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:33]Read from MH i2c: E2 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 03 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 03 00 07 1C 00 90 00 97 [13:00:33]RAPDU: 90 00 [13:00:33]wFMCommunicate OK [13:00:33]wFMCommunicate request_size=255 [13:00:33]MH_SAM_APDU [13:00: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 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 3E 00 00 00 F4 03 04 00 F3 54 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 43 [13:00:33]Write to MH i2c: E2 02 01 08 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 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 3E 00 00 00 F4 03 04 00 F3 54 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 43 00 00 93 [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:34]Read from MH i2c: E2 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 03 00 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 03 00 08 1C 00 90 00 98 [13:00:34]RAPDU: 90 00 [13:00:34]wFMCommunicate OK [13:00:34]wFMCommunicate request_size=10 [13:00:34]MH_SAM_APDU [13:00:34]CAPDU: 80 0D 02 02 05 0E 44 DF 5C 8A [13:00:34]Write to MH i2c: E2 0D 00 09 1C 80 0D 02 02 05 00 0E 44 DF 5C 8A 00 00 C0 [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:34]Read from MH i2c: E2 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 03 00 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 03 00 09 1C 00 90 00 99 [13:00:34]RAPDU: 90 00 [13:00:34]wFMCommunicate OK [13:00:34]wFMCommunicate request_size=4 [13:00:34]MH_SAM_APDU [13:00:34]CAPDU: 80 0D 03 02 [13:00:34]Write to MH i2c: E2 08 00 0A 1C 80 0D 03 02 00 00 00 00 A1 [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:34]Read from MH i2c: E2 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 0B 00 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 0B 00 0A 1C 00 2D 9D 71 5E BE 55 00 46 90 00 94 [13:00:34]RAPDU: 2D 9D 71 5E BE 55 00 46 90 00 [13:00:34]wFMCommunicate OK [13:00:34]SAM_PROTO_SignData done [13:00:34]FM_MakeSignedData done [13:00:34]CreateOFDProtocolMessage [13:00:34]wFMCommunicate request_size=4 [13:00:34]MH_SAM_APDU [13:00:34]CAPDU: 80 11 00 00 [13:00:34]Write to MH i2c: E2 08 00 0B 1C 80 11 00 00 00 00 00 00 A1 [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:34]Read from MH i2c: E2 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 17 00 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: E2 17 00 0B 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F7 [13:00:34]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:34]wFMCommunicate OK [13:00:34]CreateOFDProtocolMessage done [13:00:34]OFDSenderStorePacket 67653 [13:00:34]StoreOFDPacket docnum=67653 [13:00: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 49 0A 07 01 52 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 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 3E 00 00 00 F4 03 04 00 F3 54 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 43 0E 44 DF 5C 8A 2D 9D 71 5E BE 55 00 46 [13:00:34]CheckFolder [13:00:34]dirname=/storage/ofd_packets [13:00:34]CheckFolder done [13:00:34]ProducePacketName [13:00:34]name=ofd_packets/00067653 [13:00:34]NVStorageSaveData ofd_packets/00067653 [13:00:34]File name is /storage/ofd_packets/00067653 [13:00:34]Write 301 bytes [13:00:34]NVStorageSaveData done [13:00:34]OFDSenderStorePacket done [13:00:34]KKMCreateOFDPacket done [13:00:34]NVStorageSaveData kkm_last_timestamp [13:00:34]File name is /storage/kkm_last_timestamp [13:00:34]Write 4 bytes [13:00:34]NVStorageSaveData done [13:00:34]ExternCall_PrintAddStr [13:00:34]wPrintStart [13:00:34]Write to MH i2c: 01 00 00 0C 1C 28 [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: 01 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: 01 07 00 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: 01 07 00 0C 1C 00 00 00 00 00 FF 0F 3D [13:00:34]RasterBufferAndPrint [13:00:34]line Счет N : (1)507784 [13:00:34]line ИНН: 02508201610067 [13:00:34]line Контрольно-Кассовый Чек [13:00:34]line ПРОДАЖА [13:00:34]line ТРК (МРК, ГНК) : 33 [13:00:34]line Товар: 2710124130 [13:00:34]line Аи-92-К-5 [13:00:34]line 11.980 * 66.80 [13:00:34]line = 800.26 [13:00:34]line НДС 12% НСП 1% [13:00:34]line > о реализуемом товаре [13:00:34]line ИТОГО: 800.26 [13:00:34]line НСП 1% : 7.08 [13:00:34]line НДС 12% : 84.98 [13:00:34]line Наличными: 0.00 [13:00:34]line Безнал.: 800.26 [13:00:34]line Место: АЗС № 91 "Партнер Нефть" [13:00:34]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:00:34]line СНО: Общий режим [13:00:34]line Чек 62 17.05.2024 13:00 [13:00:34]line Смена: 358 ФФД: 1.0 [13:00:34]line ЗНМ: 0300000119 [13:00:34]line РНМ: 0000000000091845 [13:00:34]line Версия ККМ: 001 [13:00:34]line Платежная система: O! деньги [13:00:34]line ФМ: 0000000000871829 [13:00:34]line ФД: 67653 [13:00:34]line ФПД: 73728564092042 [13:00:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T130035&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67653&fm=73728564092042&tin=02508201610067®Number=0000000000091845&sum=80026 [13:00:34]OFD Sender: Processing packet 67653 [packets to send 35, broken 34] [13:00:34]ProducePacketName [13:00:34]name=ofd_packets/00067653 [13:00:34]OFD Sender: To server: pG, [13:00:34]CommunicateWithHost lk.salyk.kg:30040 [13:00:34]ConnectInit lk.salyk.kg [13:00:34]written 0, free lines is 4095 [13:00:34]Connected sock=10 [13:00: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 49 0A 07 01 52 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 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 3E 00 00 00 F4 03 04 00 F3 54 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 43 0E 44 DF 5C 8A 2D 9D 71 5E BE 55 00 46 [13:00: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 AD 36 47 00 80 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 45 08 01 00 F4 03 04 00 CB FC 46 66 B6 04 01 00 00 48 0A 18 DE BC 1F 42 9D [13:00:34]CommunicateWithHost err = 0 [13:00:34]CheckOFDResponse [13:00:34]1017 (14) - 77093643461234 [13:00:34]1041 (16) - 0000000000871829 [13:00:34]1040 (4) - 67653 [13:00:34]1012 (4) - 17.05.2024 06:44 [13:00:34]1206 (1) - 0 [13:00:34]OFD Sender: Remove packet 67653 [13:00:34]ProducePacketName [13:00:34]name=ofd_packets/00067653 [13:00:34]NVStorageDeleteData [13:00:34]Write to MH i2c: 01 00 00 35 1C 51 [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: 01 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: 01 07 00 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: 01 07 00 35 1C 00 00 00 00 00 E9 0C 4D [13:00:34]RasterBufferAndPrint [13:00:34]line [13:00:34]line [13:00:34]line [13:00:34]line [13:00:34]line [13:00:34]written 0, free lines is 3311 [13:00:34]MH_Cut [13:00:34]Write to MH i2c: D1 01 00 3C 1C 01 2A [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: D1 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: D1 01 00 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: D1 01 00 3C 1C 00 29 [13:00:34]Write to MH i2c: 01 00 00 3D 1C 59 [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:35]OFD Sender: No OFD packet to send [13:00:35]*** Cut start [13:00:35]*** Purtial cut [13:00:35]*** CUTSNS_PIN = 0 [13:00:36]*** Stage 1: CUTSNS_PIN = 1 [13:00:37]Read from MH i2c: 01 [13:00:37]MH_I2C_Read... [13:00:37]*** Stop cut motor [13:00:37]*** Cut end [13:00:37]Read from MH i2c: 01 07 00 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: 01 07 00 3D 1C 00 00 00 00 00 FF 0F 6E [13:00:37]process_action close_receipt done [13:00:37]requested_data is exist [13:00:37]produce_requested_data [13:00:37]requested_item fm.sn is exist - process it [13:00:37]wFMCommunicate request_size=4 [13:00:37]MH_SAM_APDU [13:00:37]CAPDU: 80 11 00 00 [13:00:37]Write to MH i2c: E2 08 00 3E 1C 80 11 00 00 00 00 00 00 D4 [13:00:37]Write i2c OK [13:00:37]MH_I2C_Read... [13:00:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:37]Read from MH i2c: E2 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: E2 17 00 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: E2 17 00 3E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2A [13:00: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:00:37]wFMCommunicate OK [13:00:37]requested_item fd.num is exist - process it [13:00:37]SAM_PROTO_GetFieldsCounters [13:00:37]wFMCommunicate request_size=4 [13:00:37]MH_SAM_APDU [13:00:37]CAPDU: 80 13 00 00 [13:00:37]Write to MH i2c: E2 08 00 3F 1C 80 13 00 00 00 00 00 00 D7 [13:00:37]Write i2c OK [13:00:37]MH_I2C_Read... [13:00:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:37]Read from MH i2c: E2 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: E2 62 00 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: E2 62 00 3F 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 45 08 01 00 0E 04 04 00 66 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 6C [13:00: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 45 08 01 00 0E 04 04 00 66 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 [13:00:37]wFMCommunicate OK [13:00:37]SAM_PROTO_GetFieldsCounters done [13:00:37]requested_item shift.num is exist - process it [13:00:37]requested_item shift.opened is exist - process it [13:00:37]req_shift_opened [13:00:37]FM_GetShiftState [13:00:37]SAM_PROTO_GetShiftState [13:00:37]wFMCommunicate request_size=4 [13:00:37]MH_SAM_APDU [13:00:37]CAPDU: 80 13 01 00 [13:00:37]Write to MH i2c: E2 08 00 40 1C 80 13 01 00 00 00 00 00 D9 [13:00:37]Write i2c OK [13:00:37]MH_I2C_Read... [13:00:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:38]Read from MH i2c: E2 [13:00:38]MH_I2C_Read... [13:00:38]Read from MH i2c: E2 0E 00 [13:00:38]MH_I2C_Read... [13:00:38]Read from MH i2c: E2 0E 00 40 1C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 5F [13:00:38]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:00:38]wFMCommunicate OK [13:00:38]SAM_PROTO_GetShiftState done [13:00:38]FM_GetShiftState done [13:00:38]req_shift_opened done [13:00:38]requested_item shift.open_date is exist - process it [13:00:38]req_shift_open_date [13:00:38]req_shift_open_date done [13:00:38]produce_requested_data done [13:00:38]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67653,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [13:00:38]process_action_free close_receipt [13:00:38]json_value_free [13:00:38]json_value_free done [13:00:38]process_json_proto returns [13:00:38]Send response to host [13:00:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67653,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [13:00:38]free response buf [13:00:38]execute_script done [13:00:38]execute_script returns [13:00:38]free content buf [13:00:38]Sock 7.Close socket [13:00:38]Sock 7.Thread stoped [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:47]accept exits with 9 [13:01:47]New connection [13:01:47]New thread 3067538788 created [13:01:47]Thread 3067395428 joined [13:01:47]Waiting for new connection... [13:01:47] Sock 9.Parse request [13:01:47]Sock 9.Check first char [13:01:47]Sock 9.First char is OK [13:01:47]request: POST /json_proto HTTP/1.0 [13:01:47]Method: POST [13:01:47]URL: /json_proto [13:01:47]Method is POST - this is cgi request [13:01:47]url: /json_proto [13:01:47]query_string will be loaded in cgi processing [13:01:47]execute_cgi json_proto POST (null) [13:01:47]execute_cgi path=json_proto method=POST [13:01:47]POST find Content-Length [13:01:47]Host: 172.17.41.195:8080 [13:01:47]Content-Length: 1179 [13:01:47]Content-Type: application/json [13:01:47] [13:01:47]POST finish read [13:01:47]Found Content-Length = 1179 [13:01: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507785\u000A17.05.2024 12: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 53.550 x 74.70\u000A\u0418\u0422\u041E\u0413: 4000.19\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:01:47]execute_script... [13:01: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507785\u000A17.05.2024 12: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 53.550 x 74.70\u000A\u0418\u0422\u041E\u0413: 4000.19\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:01:47]POST & json_proto [13:01:47]process_json_proto [13:01:47]json parsed OK: [13:01:47]protocol is kg_v1.0 [13:01:47]action value=print_text [13:01:47]process_action print_text [13:01:47]cmd_print_text [13:01:47]ExternCall_PrintAddStr [13:01:47]wPrintStart [13:01:47]Write to MH i2c: 01 00 00 41 1C 5D [13:01:47]Write i2c OK [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: 01 [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: 01 07 00 [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: 01 07 00 41 1C 00 00 00 00 00 FF 0F 72 [13:01:47]RasterBufferAndPrint [13:01:47]line *****ТОВАРНЫЙ ЧЕК***** [13:01:47]line АЗС-91 [13:01:47]line Партнер нефть [13:01:47]line 02508201610067 [13:01:47]line Кассир : Адишов И. [13:01:47]line Счет N : (1)507785 [13:01:47]line 17.05.2024 12:44 [13:01:47]line ПРОДАЖА [13:01:47]line ТРК (МРК, ГНК): 11 [13:01:47]line Вид ГСМ : 2710194210 [13:01:47]line ДТ-К-5 [13:01:47]line 53.550 x 74.70 [13:01:47]line ИТОГ: 4000.19 [13:01:47]line Тип оплаты: Талоны: Топливная Карта [13:01:47]line 02750 [13:01:47]line ______________________ [13:01:47]line (подпись) [13:01:47]written 0, free lines is 4095 [13:01:48]Write to MH i2c: 01 00 00 55 1C 71 [13:01:48]Write i2c OK [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: 01 [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: 01 07 00 [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: 01 07 00 55 1C 00 00 00 00 00 0D 0E 93 [13:01:48]RasterBufferAndPrint [13:01:48]line [13:01:48]line [13:01:48]line [13:01:48]line [13:01:48]line [13:01:48]written 0, free lines is 3599 [13:01:48]MH_Cut [13:01:48]Write to MH i2c: D1 01 00 5C 1C 01 4A [13:01:48]Write i2c OK [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: D1 [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: D1 01 00 [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: D1 01 00 5C 1C 00 49 [13:01:48]Write to MH i2c: 01 00 00 5D 1C 79 [13:01:48]Write i2c OK [13:01:48]MH_I2C_Read... [13:01:48]*** Cut start [13:01:48]*** Purtial cut [13:01:48]*** Stage 1: CUTSNS_PIN = 1 [13:01:48]Read from MH i2c: 01 [13:01:48]MH_I2C_Read... [13:01:48]*** Stop cut motor [13:01:48]*** Cut end [13:01:48]Read from MH i2c: 01 07 00 [13:01:48]MH_I2C_Read... [13:01:48]Read from MH i2c: 01 07 00 5D 1C 00 00 00 00 00 FF 0F 8E [13:01:48]process_action print_text done [13:01:48]requested_data is exist [13:01:48]produce_requested_data [13:01:48]requested_item fm.sn is exist - process it [13:01:48]wFMCommunicate request_size=4 [13:01:48]MH_SAM_APDU [13:01:48]CAPDU: 80 11 00 00 [13:01:48]Write to MH i2c: E2 08 00 5E 1C 80 11 00 00 00 00 00 00 F4 [13:01:48]Write i2c OK [13:01:48]MH_I2C_Read... [13:01:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:49]Read from MH i2c: E2 [13:01:49]MH_I2C_Read... [13:01:49]Read from MH i2c: E2 17 00 [13:01:49]MH_I2C_Read... [13:01:49]Read from MH i2c: E2 17 00 5E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4A [13:01:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:01:49]wFMCommunicate OK [13:01:49]requested_item fd.num is exist - process it [13:01:49]SAM_PROTO_GetFieldsCounters [13:01:49]wFMCommunicate request_size=4 [13:01:49]MH_SAM_APDU [13:01:49]CAPDU: 80 13 00 00 [13:01:49]Write to MH i2c: E2 08 00 5F 1C 80 13 00 00 00 00 00 00 F7 [13:01:49]Write i2c OK [13:01:49]MH_I2C_Read... [13:01:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:49]Read from MH i2c: E2 [13:01:49]MH_I2C_Read... [13:01:49]Read from MH i2c: E2 62 00 [13:01:49]MH_I2C_Read... [13:01:49]Read from MH i2c: E2 62 00 5F 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 45 08 01 00 0E 04 04 00 66 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 8C [13:01:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 45 08 01 00 0E 04 04 00 66 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 [13:01:49]wFMCommunicate OK [13:01:49]SAM_PROTO_GetFieldsCounters done [13:01:49]requested_item shift.num is exist - process it [13:01:49]requested_item shift.opened is exist - process it [13:01:49]req_shift_opened [13:01:49]FM_GetShiftState [13:01:49]SAM_PROTO_GetShiftState [13:01:49]wFMCommunicate request_size=4 [13:01:49]MH_SAM_APDU [13:01:49]CAPDU: 80 13 01 00 [13:01:49]Write to MH i2c: E2 08 00 60 1C 80 13 01 00 00 00 00 00 F9 [13:01:49]Write i2c OK [13:01:49]MH_I2C_Read... [13:01:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:49]Read from MH i2c: E2 [13:01:49]MH_I2C_Read... [13:01:49]Read from MH i2c: E2 0E 00 [13:01:49]MH_I2C_Read... [13:01:49]Read from MH i2c: E2 0E 00 60 1C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 7F [13:01:49]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:01:49]wFMCommunicate OK [13:01:49]SAM_PROTO_GetShiftState done [13:01:49]FM_GetShiftState done [13:01:49]req_shift_opened done [13:01:49]requested_item shift.open_date is exist - process it [13:01:49]req_shift_open_date [13:01:49]req_shift_open_date done [13:01:49]produce_requested_data done [13:01:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67653,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [13:01:49]process_action_free print_text [13:01:49]json_value_free [13:01:49]json_value_free done [13:01:49]process_json_proto returns [13:01:49]Send response to host [13:01:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67653,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [13:01:49]free response buf [13:01:49]execute_script done [13:01:49]execute_script returns [13:01:49]free content buf [13:01:49]Sock 9.Close socket [13:01:49]Sock 9.Thread stoped [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:22]accept exits with 7 [13:02:22]New connection [13:02:22]New thread 3067395428 created [13:02:22]Thread 3067538788 joined [13:02:22]Waiting for new connection... [13:02:22] Sock 7.Parse request [13:02:22]Sock 7.Check first char [13:02:22]Sock 7.First char is OK [13:02:22]request: POST /json_proto HTTP/1.0 [13:02:22]Method: POST [13:02:22]URL: /json_proto [13:02:22]Method is POST - this is cgi request [13:02:22]url: /json_proto [13:02:22]query_string will be loaded in cgi processing [13:02:22]execute_cgi json_proto POST (null) [13:02:22]execute_cgi path=json_proto method=POST [13:02:22]POST find Content-Length [13:02:22]Host: 172.17.41.195:8080 [13:02:22]Content-Length: 800 [13:02:22]Content-Type: application/json [13:02:22] [13:02:22]POST finish read [13:02:22]Found Content-Length = 800 [13:02:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507786", "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" ] } } [13:02:22]execute_script... [13:02: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)507786", "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" ] } } [13:02:22]POST & json_proto [13:02:22]process_json_proto [13:02:22]json parsed OK: [13:02:22]protocol is kg_v1.0 [13:02:22]action value=close_receipt [13:02:22]process_action close_receipt [13:02:22]cmd_close_receipt [13:02:22]MH_GetDate [13:02:22]Write to MH i2c: F0 00 00 61 1C 6C [13:02:22]Write i2c OK [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: F0 [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: F0 09 00 [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: F0 09 00 61 1C 00 61 55 47 66 FC 21 6F 64 C8 [13:02:22]GetLastDocTimeStamp 1715950835 [13:02:22]current date 1715950945 [13:02:22]FM_GetShiftState [13:02:22]SAM_PROTO_GetShiftState [13:02:22]wFMCommunicate request_size=4 [13:02:22]MH_SAM_APDU [13:02:22]CAPDU: 80 13 01 00 [13:02:22]Write to MH i2c: E2 08 00 62 1C 80 13 01 00 00 00 00 00 FB [13:02:22]Write i2c OK [13:02:22]MH_I2C_Read... [13:02:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:22]Read from MH i2c: E2 [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: E2 0E 00 [13:02:22]MH_I2C_Read... [13:02:22]Read from MH i2c: E2 0E 00 62 1C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 81 [13:02:22]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:02:22]wFMCommunicate OK [13:02:22]SAM_PROTO_GetShiftState done [13:02:22]FM_GetShiftState done [13:02:22]opened in 1715905068 [13:02:22]opened+sec_in_day 1715991468 [13:02:22]quantity*price = 50033 [13:02:22]sum+1 = 50034 [13:02: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 СНО: Общий режим Чек 63 17.05.2024 13:02 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67654 ФПД: 266274958695183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T130225&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67654&fm=266274958695183&tin=02508201610067®Number=0000000000091845&sum=50033 [13:02:23]StoreToDocumentArchive [13:02:23]shift 358 fd 67654 [13:02:23]save to /storage/0358/doc_00067654 [13:02:23]save last doc name /storage/0358/doc_00067654 to /storage/kkm_last_doc_name [13:02:23]save OK [13:02:23]Clear old archive folders... [13:02:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:23]tlvbuf is 016300A0 [13:02:23]SAM_PROTO_ClearQueue [13:02:23]wFMCommunicate request_size=4 [13:02:23]MH_SAM_APDU [13:02:23]CAPDU: 80 09 00 00 [13:02:23]Write to MH i2c: E2 08 00 6F 1C 80 09 00 00 00 00 00 00 FD [13:02:23]Write i2c OK [13:02:23]MH_I2C_Read... [13:02:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:23]Read from MH i2c: E2 [13:02:23]MH_I2C_Read... [13:02:23]Read from MH i2c: E2 03 00 [13:02:23]MH_I2C_Read... [13:02:23]Read from MH i2c: E2 03 00 6F 1C 00 90 00 FF [13:02:23]RAPDU: 90 00 [13:02:23]wFMCommunicate OK [13:02:23]SAM_PROTO_ClearQueue done [13:02:23]KKMCreateOFDPacket [13:02:23]OFDProtocolAddRootSTLVToBuf [13:02:23]FM_MakeSignedData [13:02:23]FM_MakeSignedData [13:02:23]SAM_PROTO_SignData [13:02:23]wFMCommunicate request_size=4 [13:02:23]MH_SAM_APDU [13:02:23]CAPDU: 80 0D 01 02 [13:02:23]Write to MH i2c: E2 08 00 70 1C 80 0D 01 02 00 00 00 00 05 [13:02:23]Write i2c OK [13:02:23]MH_I2C_Read... [13:02:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:23]Read from MH i2c: E2 [13:02:23]MH_I2C_Read... [13:02:23]Read from MH i2c: E2 03 00 [13:02:23]MH_I2C_Read... [13:02:23]Read from MH i2c: E2 03 00 70 1C 00 90 00 00 [13:02:23]RAPDU: 90 00 [13:02:23]wFMCommunicate OK [13:02:23]wFMCommunicate request_size=255 [13:02:23]MH_SAM_APDU [13:02: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 3F 00 00 00 F4 03 04 00 61 55 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F2 [13:02:23]Write to MH i2c: E2 02 01 71 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 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 3F 00 00 00 F4 03 04 00 61 55 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F2 00 00 1C [13:02:23]Write i2c OK [13:02:23]MH_I2C_Read... [13:02:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:24]Read from MH i2c: E2 [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: E2 03 00 [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: E2 03 00 71 1C 00 90 00 01 [13:02:24]RAPDU: 90 00 [13:02:24]wFMCommunicate OK [13:02:24]wFMCommunicate request_size=10 [13:02:24]MH_SAM_APDU [13:02:24]CAPDU: 80 0D 02 02 05 2C F8 53 5B 0F [13:02:24]Write to MH i2c: E2 0D 00 72 1C 80 0D 02 02 05 00 2C F8 53 5B 0F 00 00 F3 [13:02:24]Write i2c OK [13:02:24]MH_I2C_Read... [13:02:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:24]Read from MH i2c: E2 [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: E2 03 00 [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: E2 03 00 72 1C 00 90 00 02 [13:02:24]RAPDU: 90 00 [13:02:24]wFMCommunicate OK [13:02:24]wFMCommunicate request_size=4 [13:02:24]MH_SAM_APDU [13:02:24]CAPDU: 80 0D 03 02 [13:02:24]Write to MH i2c: E2 08 00 73 1C 80 0D 03 02 00 00 00 00 0A [13:02:24]Write i2c OK [13:02:24]MH_I2C_Read... [13:02:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:24]Read from MH i2c: E2 [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: E2 0B 00 [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: E2 0B 00 73 1C 00 FC 15 5E 6C AB E3 36 46 90 00 F0 [13:02:24]RAPDU: FC 15 5E 6C AB E3 36 46 90 00 [13:02:24]wFMCommunicate OK [13:02:24]SAM_PROTO_SignData done [13:02:24]FM_MakeSignedData done [13:02:24]CreateOFDProtocolMessage [13:02:24]wFMCommunicate request_size=4 [13:02:24]MH_SAM_APDU [13:02:24]CAPDU: 80 11 00 00 [13:02:24]Write to MH i2c: E2 08 00 74 1C 80 11 00 00 00 00 00 00 0A [13:02:24]Write i2c OK [13:02:24]MH_I2C_Read... [13:02:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:24]Read from MH i2c: E2 [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: E2 17 00 [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: E2 17 00 74 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 60 [13:02: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:02:24]wFMCommunicate OK [13:02:24]CreateOFDProtocolMessage done [13:02:24]OFDSenderStorePacket 67654 [13:02:24]StoreOFDPacket docnum=67654 [13:02: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 0F 01 00 00 CE F9 07 01 41 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3F 00 00 00 F4 03 04 00 61 55 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F2 2C F8 53 5B 0F FC 15 5E 6C AB E3 36 46 [13:02:24]CheckFolder [13:02:24]dirname=/storage/ofd_packets [13:02:24]CheckFolder done [13:02:24]ProducePacketName [13:02:24]name=ofd_packets/00067654 [13:02:24]NVStorageSaveData ofd_packets/00067654 [13:02:24]File name is /storage/ofd_packets/00067654 [13:02:24]Write 301 bytes [13:02:24]NVStorageSaveData done [13:02:24]OFDSenderStorePacket done [13:02:24]KKMCreateOFDPacket done [13:02:24]NVStorageSaveData kkm_last_timestamp [13:02:24]File name is /storage/kkm_last_timestamp [13:02:24]Write 4 bytes [13:02:24]NVStorageSaveData done [13:02:24]ExternCall_PrintAddStr [13:02:24]wPrintStart [13:02:24]Write to MH i2c: 01 00 00 75 1C 91 [13:02:24]Write i2c OK [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: 01 [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: 01 07 00 [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: 01 07 00 75 1C 00 00 00 00 00 FF 0F A6 [13:02:24]RasterBufferAndPrint [13:02:24]line Счет N : (1)507786 [13:02:24]line ИНН: 02508201610067 [13:02:24]line Контрольно-Кассовый Чек [13:02:24]line ПРОДАЖА [13:02:24]line ТРК (МРК, ГНК) : 43 [13:02:24]line Товар: 2710124130 [13:02:24]line Аи-92-К-5 [13:02:24]line 7.490 * 66.80 [13:02:24]line = 500.33 [13:02:24]line НДС 12% НСП 1% [13:02:24]line > о реализуемом товаре [13:02:24]line ИТОГО: 500.33 [13:02:24]line НСП 1% : 4.43 [13:02:24]line НДС 12% : 53.13 [13:02:24]line Наличными: 0.00 [13:02:24]line Безнал.: 500.33 [13:02:24]line Место: АЗС № 91 "Партнер Нефть" [13:02:24]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:02:24]line СНО: Общий режим [13:02:24]line Чек 63 17.05.2024 13:02 [13:02:24]line Смена: 358 ФФД: 1.0 [13:02:24]line ЗНМ: 0300000119 [13:02:24]line РНМ: 0000000000091845 [13:02:24]line Версия ККМ: 001 [13:02:24]line Платежная система: O! деньги [13:02:24]line ФМ: 0000000000871829 [13:02:24]line ФД: 67654 [13:02:24]line ФПД: 266274958695183 [13:02:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T130225&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67654&fm=266274958695183&tin=02508201610067®Number=0000000000091845&sum=50033 [13:02:24]written 0, free lines is 4095 [13:02:24]OFD Sender: Processing packet 67654 [packets to send 35, broken 34] [13:02:24]ProducePacketName [13:02:24]name=ofd_packets/00067654 [13:02:24]OFD Sender: To server: pG, [13:02:24]CommunicateWithHost lk.salyk.kg:30040 [13:02:24]ConnectInit lk.salyk.kg [13:02:24]Connected sock=11 [13:02: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 0F 01 00 00 CE F9 07 01 41 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3F 00 00 00 F4 03 04 00 61 55 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F2 2C F8 53 5B 0F FC 15 5E 6C AB E3 36 46 [13:02: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 D6 6C 47 00 37 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 46 08 01 00 F4 03 04 00 39 FD 46 66 B6 04 01 00 00 5A D4 C8 8E BA 86 BC B6 [13:02:24]CommunicateWithHost err = 0 [13:02:24]CheckOFDResponse [13:02:24]1017 (14) - 77093643461234 [13:02:24]1041 (16) - 0000000000871829 [13:02:24]1040 (4) - 67654 [13:02:24]1012 (4) - 17.05.2024 06:46 [13:02:24]1206 (1) - 0 [13:02:24]OFD Sender: Remove packet 67654 [13:02:24]ProducePacketName [13:02:24]name=ofd_packets/00067654 [13:02:24]NVStorageDeleteData [13:02:24]Write to MH i2c: 01 00 00 9E 1C BA [13:02:24]Write i2c OK [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: 01 [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: 01 07 00 [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: 01 07 00 9E 1C 00 00 00 00 00 EE 0C BB [13:02:24]RasterBufferAndPrint [13:02:24]line [13:02:24]line [13:02:24]line [13:02:24]line [13:02:24]line [13:02:24]written 0, free lines is 3317 [13:02:24]MH_Cut [13:02:24]Write to MH i2c: D1 01 00 A5 1C 01 93 [13:02:24]Write i2c OK [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: D1 [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: D1 01 00 [13:02:24]MH_I2C_Read... [13:02:24]Read from MH i2c: D1 01 00 A5 1C 00 92 [13:02:24]Write to MH i2c: 01 00 00 A6 1C C2 [13:02:24]Write i2c OK [13:02:24]MH_I2C_Read... [13:02:25]OFD Sender: No OFD packet to send [13:02:25]*** Cut start [13:02:25]*** Purtial cut [13:02:25]*** CUTSNS_PIN = 0 [13:02:25]*** Stage 1: CUTSNS_PIN = 1 [13:02:27]Read from MH i2c: 01 [13:02:27]MH_I2C_Read... [13:02:27]*** Stop cut motor [13:02:27]*** Cut end [13:02:27]Read from MH i2c: 01 07 00 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: 01 07 00 A6 1C 00 00 00 00 00 FF 0F D7 [13:02:27]process_action close_receipt done [13:02:27]requested_data is exist [13:02:27]produce_requested_data [13:02:27]requested_item fm.sn is exist - process it [13:02:27]wFMCommunicate request_size=4 [13:02:27]MH_SAM_APDU [13:02:27]CAPDU: 80 11 00 00 [13:02:27]Write to MH i2c: E2 08 00 A7 1C 80 11 00 00 00 00 00 00 3D [13:02:27]Write i2c OK [13:02:27]MH_I2C_Read... [13:02:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:27]Read from MH i2c: E2 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: E2 17 00 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: E2 17 00 A7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 93 [13:02:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:02:27]wFMCommunicate OK [13:02:27]requested_item fd.num is exist - process it [13:02:27]SAM_PROTO_GetFieldsCounters [13:02:27]wFMCommunicate request_size=4 [13:02:27]MH_SAM_APDU [13:02:27]CAPDU: 80 13 00 00 [13:02:27]Write to MH i2c: E2 08 00 A8 1C 80 13 00 00 00 00 00 00 40 [13:02:27]Write i2c OK [13:02:27]MH_I2C_Read... [13:02:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:27]Read from MH i2c: E2 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: E2 62 00 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: E2 62 00 A8 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 46 08 01 00 0E 04 04 00 66 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 D9 [13:02:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 46 08 01 00 0E 04 04 00 66 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 [13:02:27]wFMCommunicate OK [13:02:27]SAM_PROTO_GetFieldsCounters done [13:02:27]requested_item shift.num is exist - process it [13:02:27]requested_item shift.opened is exist - process it [13:02:27]req_shift_opened [13:02:27]FM_GetShiftState [13:02:27]SAM_PROTO_GetShiftState [13:02:27]wFMCommunicate request_size=4 [13:02:27]MH_SAM_APDU [13:02:27]CAPDU: 80 13 01 00 [13:02:27]Write to MH i2c: E2 08 00 A9 1C 80 13 01 00 00 00 00 00 42 [13:02:27]Write i2c OK [13:02:27]MH_I2C_Read... [13:02:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:27]Read from MH i2c: E2 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: E2 0E 00 [13:02:27]MH_I2C_Read... [13:02:27]Read from MH i2c: E2 0E 00 A9 1C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 C8 [13:02:27]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:02:27]wFMCommunicate OK [13:02:27]SAM_PROTO_GetShiftState done [13:02:27]FM_GetShiftState done [13:02:27]req_shift_opened done [13:02:27]requested_item shift.open_date is exist - process it [13:02:27]req_shift_open_date [13:02:27]req_shift_open_date done [13:02:27]produce_requested_data done [13:02:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67654,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [13:02:27]process_action_free close_receipt [13:02:27]json_value_free [13:02:27]json_value_free done [13:02:27]process_json_proto returns [13:02:27]Send response to host [13:02:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67654,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [13:02:27]free response buf [13:02:27]execute_script done [13:02:27]execute_script returns [13:02:27]free content buf [13:02:27]Sock 7.Close socket [13:02:27]Sock 7.Thread stoped [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:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:49]accept exits with 10 [13:03:49]New connection [13:03:49]New thread 3067538788 created [13:03:49]Thread 3067395428 joined [13:03:49]Waiting for new connection... [13:03:49] Sock 10.Parse request [13:03:49]Sock 10.Check first char [13:03:49]Sock 10.First char is OK [13:03:49]request: POST /json_proto HTTP/1.0 [13:03:49]Method: POST [13:03:49]URL: /json_proto [13:03:49]Method is POST - this is cgi request [13:03:49]url: /json_proto [13:03:49]query_string will be loaded in cgi processing [13:03:49]execute_cgi json_proto POST (null) [13:03:49]execute_cgi path=json_proto method=POST [13:03:49]POST find Content-Length [13:03:49]Host: 172.17.41.195:8080 [13:03:49]Content-Length: 803 [13:03:49]Content-Type: application/json [13:03:49] [13:03:49]POST finish read [13:03:49]Found Content-Length = 803 [13:03:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507787", "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" ] } } [13:03:49]execute_script... [13:03: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)507787", "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" ] } } [13:03:49]POST & json_proto [13:03:49]process_json_proto [13:03:49]json parsed OK: [13:03:49]protocol is kg_v1.0 [13:03:49]action value=close_receipt [13:03:49]process_action close_receipt [13:03:49]cmd_close_receipt [13:03:49]MH_GetDate [13:03:49]Write to MH i2c: F0 00 00 AA 1C B5 [13:03:49]Write i2c OK [13:03:49]MH_I2C_Read... [13:03:49]Read from MH i2c: F0 [13:03:49]MH_I2C_Read... [13:03:49]Read from MH i2c: F0 09 00 [13:03:49]MH_I2C_Read... [13:03:49]Read from MH i2c: F0 09 00 AA 1C 00 B9 55 47 66 FC 21 6F 64 69 [13:03:49]GetLastDocTimeStamp 1715950945 [13:03:49]current date 1715951033 [13:03:49]FM_GetShiftState [13:03:49]SAM_PROTO_GetShiftState [13:03:49]wFMCommunicate request_size=4 [13:03:49]MH_SAM_APDU [13:03:49]CAPDU: 80 13 01 00 [13:03:49]Write to MH i2c: E2 08 00 AB 1C 80 13 01 00 00 00 00 00 44 [13:03:49]Write i2c OK [13:03:49]MH_I2C_Read... [13:03:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:49]Read from MH i2c: E2 [13:03:49]MH_I2C_Read... [13:03:49]Read from MH i2c: E2 0E 00 [13:03:49]MH_I2C_Read... [13:03:49]Read from MH i2c: E2 0E 00 AB 1C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CA [13:03:49]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:03:49]wFMCommunicate OK [13:03:49]SAM_PROTO_GetShiftState done [13:03:49]FM_GetShiftState done [13:03:49]opened in 1715905068 [13:03:49]opened+sec_in_day 1715991468 [13:03:49]quantity*price = 100066 [13:03:49]sum+1 = 100067 [13:03:49]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 17.05.2024 13:03 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67655 ФПД: 10418410371227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T130353&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67655&fm=10418410371227&tin=02508201610067®Number=0000000000091845&sum=100066 [13:03:50]StoreToDocumentArchive [13:03:50]shift 358 fd 67655 [13:03:50]save to /storage/0358/doc_00067655 [13:03:50]save last doc name /storage/0358/doc_00067655 to /storage/kkm_last_doc_name [13:03:50]save OK [13:03:50]Clear old archive folders... [13:03:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:03:50]tlvbuf is B6FE7230 [13:03:50]SAM_PROTO_ClearQueue [13:03:50]wFMCommunicate request_size=4 [13:03:50]MH_SAM_APDU [13:03:50]CAPDU: 80 09 00 00 [13:03:50]Write to MH i2c: E2 08 00 B8 1C 80 09 00 00 00 00 00 00 46 [13:03:50]Write i2c OK [13:03:50]MH_I2C_Read... [13:03:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:50]Read from MH i2c: E2 [13:03:50]MH_I2C_Read... [13:03:50]Read from MH i2c: E2 03 00 [13:03:50]MH_I2C_Read... [13:03:50]Read from MH i2c: E2 03 00 B8 1C 00 90 00 48 [13:03:50]RAPDU: 90 00 [13:03:50]wFMCommunicate OK [13:03:50]SAM_PROTO_ClearQueue done [13:03:50]KKMCreateOFDPacket [13:03:50]OFDProtocolAddRootSTLVToBuf [13:03:50]FM_MakeSignedData [13:03:50]FM_MakeSignedData [13:03:50]SAM_PROTO_SignData [13:03:50]wFMCommunicate request_size=4 [13:03:50]MH_SAM_APDU [13:03:50]CAPDU: 80 0D 01 02 [13:03:50]Write to MH i2c: E2 08 00 B9 1C 80 0D 01 02 00 00 00 00 4E [13:03:50]Write i2c OK [13:03:50]MH_I2C_Read... [13:03:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:50]Read from MH i2c: E2 [13:03:50]MH_I2C_Read... [13:03:50]Read from MH i2c: E2 03 00 [13:03:50]MH_I2C_Read... [13:03:50]Read from MH i2c: E2 03 00 B9 1C 00 90 00 49 [13:03:50]RAPDU: 90 00 [13:03:50]wFMCommunicate OK [13:03:50]wFMCommunicate request_size=255 [13:03:50]MH_SAM_APDU [13:03: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 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 B9 55 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 09 [13:03:50]Write to MH i2c: E2 02 01 BA 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 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 B9 55 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 09 00 00 66 [13:03:50]Write i2c OK [13:03:50]MH_I2C_Read... [13:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:51]Read from MH i2c: E2 [13:03:51]MH_I2C_Read... [13:03:51]Read from MH i2c: E2 03 00 [13:03:51]MH_I2C_Read... [13:03:51]Read from MH i2c: E2 03 00 BA 1C 00 90 00 4A [13:03:51]RAPDU: 90 00 [13:03:51]wFMCommunicate OK [13:03:51]wFMCommunicate request_size=10 [13:03:51]MH_SAM_APDU [13:03:51]CAPDU: 80 0D 02 02 05 79 B9 A6 38 9B [13:03:51]Write to MH i2c: E2 0D 00 BB 1C 80 0D 02 02 05 00 79 B9 A6 38 9B 00 00 06 [13:03:51]Write i2c OK [13:03:51]MH_I2C_Read... [13:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:51]Read from MH i2c: E2 [13:03:51]MH_I2C_Read... [13:03:51]Read from MH i2c: E2 03 00 [13:03:51]MH_I2C_Read... [13:03:51]Read from MH i2c: E2 03 00 BB 1C 00 90 00 4B [13:03:51]RAPDU: 90 00 [13:03:51]wFMCommunicate OK [13:03:51]wFMCommunicate request_size=4 [13:03:51]MH_SAM_APDU [13:03:51]CAPDU: 80 0D 03 02 [13:03:51]Write to MH i2c: E2 08 00 BC 1C 80 0D 03 02 00 00 00 00 53 [13:03:51]Write i2c OK [13:03:51]MH_I2C_Read... [13:03:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:51]Read from MH i2c: E2 [13:03:51]MH_I2C_Read... [13:03:51]Read from MH i2c: E2 0B 00 [13:03:51]MH_I2C_Read... [13:03:51]Read from MH i2c: E2 0B 00 BC 1C 00 9E 31 04 34 D3 B3 7B 74 90 00 D0 [13:03:51]RAPDU: 9E 31 04 34 D3 B3 7B 74 90 00 [13:03:51]wFMCommunicate OK [13:03:51]SAM_PROTO_SignData done [13:03:51]FM_MakeSignedData done [13:03:51]CreateOFDProtocolMessage [13:03:51]wFMCommunicate request_size=4 [13:03:51]MH_SAM_APDU [13:03:51]CAPDU: 80 11 00 00 [13:03:51]Write to MH i2c: E2 08 00 BD 1C 80 11 00 00 00 00 00 00 53 [13:03:51]Write i2c OK [13:03:51]MH_I2C_Read... [13:03:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:51]Read from MH i2c: E2 [13:03:51]MH_I2C_Read... [13:03:51]Read from MH i2c: E2 17 00 [13:03:51]MH_I2C_Read... [13:03:51]Read from MH i2c: E2 17 00 BD 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A9 [13:03: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:03:51]wFMCommunicate OK [13:03:51]CreateOFDProtocolMessage done [13:03:51]OFDSenderStorePacket 67655 [13:03:51]StoreOFDPacket docnum=67655 [13:03: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 0F 01 00 00 BA 7D 07 01 17 D1 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 B9 55 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 09 79 B9 A6 38 9B 9E 31 04 34 D3 B3 7B 74 [13:03:51]CheckFolder [13:03:51]dirname=/storage/ofd_packets [13:03:51]CheckFolder done [13:03:51]ProducePacketName [13:03:51]name=ofd_packets/00067655 [13:03:51]NVStorageSaveData ofd_packets/00067655 [13:03:51]File name is /storage/ofd_packets/00067655 [13:03:51]Write 301 bytes [13:03:51]NVStorageSaveData done [13:03:51]OFDSenderStorePacket done [13:03:51]KKMCreateOFDPacket done [13:03:51]NVStorageSaveData kkm_last_timestamp [13:03:51]File name is /storage/kkm_last_timestamp [13:03:51]Write 4 bytes [13:03:51]NVStorageSaveData done [13:03:51]ExternCall_PrintAddStr [13:03:51]wPrintStart [13:03:51]Write to MH i2c: 01 00 00 BE 1C DA [13:03:51]Write i2c OK [13:03:51]MH_I2C_Read... [13:03:51]Read from MH i2c: 01 [13:03:51]MH_I2C_Read... [13:03:51]Read from MH i2c: 01 07 00 [13:03:51]MH_I2C_Read... [13:03:51]Read from MH i2c: 01 07 00 BE 1C 00 00 00 00 00 FF 0F EF [13:03:51]RasterBufferAndPrint [13:03:51]line Счет N : (1)507787 [13:03:51]line ИНН: 02508201610067 [13:03:51]line Контрольно-Кассовый Чек [13:03:51]line ПРОДАЖА [13:03:51]line ТРК (МРК, ГНК) : 33 [13:03:51]line Товар: 2710124130 [13:03:51]line Аи-92-К-5 [13:03:51]line 14.980 * 66.80 [13:03:51]line = 1000.66 [13:03:51]line НДС 12% НСП 1% [13:03:51]line > о реализуемом товаре [13:03:51]line ИТОГО: 1000.66 [13:03:51]line НСП 1% : 8.85 [13:03:51]line НДС 12% : 106.26 [13:03:51]line Наличными: 0.00 [13:03:51]line Безнал.: 1000.66 [13:03:51]line Место: АЗС № 91 "Партнер Нефть" [13:03:51]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:03:51]line СНО: Общий режим [13:03:51]line Чек 64 17.05.2024 13:03 [13:03:51]line Смена: 358 ФФД: 1.0 [13:03:51]line ЗНМ: 0300000119 [13:03:51]line РНМ: 0000000000091845 [13:03:51]line Версия ККМ: 001 [13:03:51]line Платежная система: O! деньги [13:03:51]line ФМ: 0000000000871829 [13:03:51]line ФД: 67655 [13:03:51]line ФПД: 10418410371227 [13:03:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T130353&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67655&fm=10418410371227&tin=02508201610067®Number=0000000000091845&sum=100066 [13:03:51]OFD Sender: Processing packet 67655 [packets to send 35, broken 34] [13:03:51]ProducePacketName [13:03:51]name=ofd_packets/00067655 [13:03:51]OFD Sender: To server: pG, [13:03:51]CommunicateWithHost lk.salyk.kg:30040 [13:03:51]ConnectInit lk.salyk.kg [13:03:51]written 0, free lines is 4095 [13:03:51]Connected sock=9 [13:03: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 BA 7D 07 01 17 D1 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 B9 55 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 09 79 B9 A6 38 9B 9E 31 04 34 D3 B3 7B 74 [13:03: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 4D 32 47 00 5B 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 47 08 01 00 F4 03 04 00 91 FD 46 66 B6 04 01 00 00 70 27 71 79 9F AA 58 25 [13:03:52]CommunicateWithHost err = 0 [13:03:52]CheckOFDResponse [13:03:52]1017 (14) - 77093643461234 [13:03:52]1041 (16) - 0000000000871829 [13:03:52]1040 (4) - 67655 [13:03:52]1012 (4) - 17.05.2024 06:47 [13:03:52]1206 (1) - 0 [13:03:52]OFD Sender: Remove packet 67655 [13:03:52]ProducePacketName [13:03:52]name=ofd_packets/00067655 [13:03:52]NVStorageDeleteData [13:03:52]Write to MH i2c: 01 00 00 E7 1C 03 [13:03:52]Write i2c OK [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: 01 [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: 01 07 00 [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: 01 07 00 E7 1C 00 00 00 00 00 EA 0C 00 [13:03:52]RasterBufferAndPrint [13:03:52]line [13:03:52]line [13:03:52]line [13:03:52]line [13:03:52]line [13:03:52]written 0, free lines is 3312 [13:03:52]MH_Cut [13:03:52]Write to MH i2c: D1 01 00 EE 1C 01 DC [13:03:52]Write i2c OK [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: D1 [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: D1 01 00 [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: D1 01 00 EE 1C 00 DB [13:03:52]Write to MH i2c: 01 00 00 EF 1C 0B [13:03:52]Write i2c OK [13:03:52]MH_I2C_Read... [13:03:52]OFD Sender: No OFD packet to send [13:03:52]*** Cut start [13:03:52]*** Purtial cut [13:03:52]*** Stage 1: CUTSNS_PIN = 1 [13:03:53]Read from MH i2c: 01 [13:03:53]MH_I2C_Read... [13:03:53]*** Stop cut motor [13:03:53]*** Cut end [13:03:53]Read from MH i2c: 01 07 00 [13:03:53]MH_I2C_Read... [13:03:53]Read from MH i2c: 01 07 00 EF 1C 00 00 00 00 00 FF 0F 20 [13:03:53]process_action close_receipt done [13:03:53]requested_data is exist [13:03:53]produce_requested_data [13:03:53]requested_item fm.sn is exist - process it [13:03:53]wFMCommunicate request_size=4 [13:03:53]MH_SAM_APDU [13:03:53]CAPDU: 80 11 00 00 [13:03:53]Write to MH i2c: E2 08 00 F0 1C 80 11 00 00 00 00 00 00 86 [13:03:53]Write i2c OK [13:03:53]MH_I2C_Read... [13:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:53]Read from MH i2c: E2 [13:03:53]MH_I2C_Read... [13:03:53]Read from MH i2c: E2 17 00 [13:03:53]MH_I2C_Read... [13:03:53]Read from MH i2c: E2 17 00 F0 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DC [13:03:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:03:53]wFMCommunicate OK [13:03:53]requested_item fd.num is exist - process it [13:03:53]SAM_PROTO_GetFieldsCounters [13:03:53]wFMCommunicate request_size=4 [13:03:53]MH_SAM_APDU [13:03:53]CAPDU: 80 13 00 00 [13:03:53]Write to MH i2c: E2 08 00 F1 1C 80 13 00 00 00 00 00 00 89 [13:03:53]Write i2c OK [13:03:53]MH_I2C_Read... [13:03:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:53]Read from MH i2c: E2 [13:03:53]MH_I2C_Read... [13:03:53]Read from MH i2c: E2 62 00 [13:03:53]MH_I2C_Read... [13:03:53]Read from MH i2c: E2 62 00 F1 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 47 08 01 00 0E 04 04 00 66 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 26 [13:03: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 47 08 01 00 0E 04 04 00 66 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 [13:03:53]wFMCommunicate OK [13:03:53]SAM_PROTO_GetFieldsCounters done [13:03:53]requested_item shift.num is exist - process it [13:03:53]requested_item shift.opened is exist - process it [13:03:53]req_shift_opened [13:03:53]FM_GetShiftState [13:03:53]SAM_PROTO_GetShiftState [13:03:53]wFMCommunicate request_size=4 [13:03:53]MH_SAM_APDU [13:03:53]CAPDU: 80 13 01 00 [13:03:53]Write to MH i2c: E2 08 00 F2 1C 80 13 01 00 00 00 00 00 8B [13:03:53]Write i2c OK [13:03:53]MH_I2C_Read... [13:03:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:53]Read from MH i2c: E2 [13:03:53]MH_I2C_Read... [13:03:53]Read from MH i2c: E2 0E 00 [13:03:53]MH_I2C_Read... [13:03:53]Read from MH i2c: E2 0E 00 F2 1C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 11 [13:03:53]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:03:53]wFMCommunicate OK [13:03:53]SAM_PROTO_GetShiftState done [13:03:53]FM_GetShiftState done [13:03:53]req_shift_opened done [13:03:53]requested_item shift.open_date is exist - process it [13:03:53]req_shift_open_date [13:03:53]req_shift_open_date done [13:03:53]produce_requested_data done [13:03:53]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67655,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [13:03:53]process_action_free close_receipt [13:03:53]json_value_free [13:03:53]json_value_free done [13:03:53]process_json_proto returns [13:03:53]Send response to host [13:03:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67655,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [13:03:53]free response buf [13:03:53]execute_script done [13:03:53]execute_script returns [13:03:53]free content buf [13:03:53]Sock 10.Close socket [13:03:53]Sock 10.Thread stoped [13:03:56]accept exits with 7 [13:03:56]New connection [13:03:56]New thread 3067395428 created [13:03:56]Thread 3067538788 joined [13:03:56]Waiting for new connection... [13:03:56] Sock 7.Parse request [13:03:56]Sock 7.Check first char [13:03:56]Sock 7.First char is OK [13:03:56]request: POST /json_proto HTTP/1.0 [13:03:56]Method: POST [13:03:56]URL: /json_proto [13:03:56]Method is POST - this is cgi request [13:03:56]url: /json_proto [13:03:56]query_string will be loaded in cgi processing [13:03:56]execute_cgi json_proto POST (null) [13:03:56]execute_cgi path=json_proto method=POST [13:03:56]POST find Content-Length [13:03:56]Host: 172.17.41.195:8080 [13:03:56]Content-Length: 612 [13:03:56]Content-Type: application/json [13:03:56] [13:03:56]POST finish read [13:03:56]Found Content-Length = 612 [13:03:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12103", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "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" ] } } [13:03:56]execute_script... [13:03: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 : (3)12103", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "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" ] } } [13:03:56]POST & json_proto [13:03:56]process_json_proto [13:03:56]json parsed OK: [13:03:56]protocol is kg_v1.0 [13:03:56]action value=close_receipt [13:03:56]process_action close_receipt [13:03:56]cmd_close_receipt [13:03:56]MH_GetDate [13:03:56]Write to MH i2c: F0 00 00 F3 1C FE [13:03:56]Write i2c OK [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: F0 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: F0 09 00 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: F0 09 00 F3 1C 00 BF 55 47 66 FC 21 6F 64 B8 [13:03:56]GetLastDocTimeStamp 1715951033 [13:03:56]current date 1715951039 [13:03:56]FM_GetShiftState [13:03:56]SAM_PROTO_GetShiftState [13:03:56]wFMCommunicate request_size=4 [13:03:56]MH_SAM_APDU [13:03:56]CAPDU: 80 13 01 00 [13:03:56]Write to MH i2c: E2 08 00 F4 1C 80 13 01 00 00 00 00 00 8D [13:03:56]Write i2c OK [13:03:56]MH_I2C_Read... [13:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:56]Read from MH i2c: E2 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: E2 0E 00 [13:03:56]MH_I2C_Read... [13:03:56]Read from MH i2c: E2 0E 00 F4 1C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 13 [13:03:56]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:03:56]wFMCommunicate OK [13:03:56]SAM_PROTO_GetShiftState done [13:03:56]FM_GetShiftState done [13:03:56]opened in 1715905068 [13:03:56]opened+sec_in_day 1715991468 [13:03:56]quantity*price = 7500 [13:03:56]sum+1 = 7501 [13:03:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 65 17.05.2024 13:03 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67656 ФПД: 263834208903513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T130359&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67656&fm=263834208903513&tin=02508201610067®Number=0000000000091845&sum=7500 0 [13:03:57]StoreToDocumentArchive [13:03:57]shift 358 fd 67656 [13:03:57]save to /storage/0358/doc_00067656 [13:03:57]save last doc name /storage/0358/doc_00067656 to /storage/kkm_last_doc_name [13:03:57]save OK [13:03:57]Clear old archive folders... [13:03:57]ProcessDocumentItem done err = 0, tmpTLVsize=268 [13:03:57]tlvbuf is 01617BC0 [13:03:57]SAM_PROTO_ClearQueue [13:03:57]wFMCommunicate request_size=4 [13:03:57]MH_SAM_APDU [13:03:57]CAPDU: 80 09 00 00 [13:03:57]Write to MH i2c: E2 08 00 01 1D 80 09 00 00 00 00 00 00 90 [13:03:57]Write i2c OK [13:03:57]MH_I2C_Read... [13:03:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:57]Read from MH i2c: E2 [13:03:57]MH_I2C_Read... [13:03:57]Read from MH i2c: E2 03 00 [13:03:57]MH_I2C_Read... [13:03:57]Read from MH i2c: E2 03 00 01 1D 00 90 00 92 [13:03:57]RAPDU: 90 00 [13:03:57]wFMCommunicate OK [13:03:57]SAM_PROTO_ClearQueue done [13:03:57]KKMCreateOFDPacket [13:03:57]OFDProtocolAddRootSTLVToBuf [13:03:57]FM_MakeSignedData [13:03:57]FM_MakeSignedData [13:03:57]SAM_PROTO_SignData [13:03:57]wFMCommunicate request_size=4 [13:03:57]MH_SAM_APDU [13:03:57]CAPDU: 80 0D 01 02 [13:03:57]Write to MH i2c: E2 08 00 02 1D 80 0D 01 02 00 00 00 00 98 [13:03:57]Write i2c OK [13:03:57]MH_I2C_Read... [13:03:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:57]Read from MH i2c: E2 [13:03:57]MH_I2C_Read... [13:03:57]Read from MH i2c: E2 03 00 [13:03:57]MH_I2C_Read... [13:03:57]Read from MH i2c: E2 03 00 02 1D 00 90 00 93 [13:03:57]RAPDU: 90 00 [13:03:57]wFMCommunicate OK [13:03:57]wFMCommunicate request_size=255 [13:03:57]MH_SAM_APDU [13:03:57]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB 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 41 00 00 00 F4 03 04 00 BF 55 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [13:03:57]Write to MH i2c: E2 02 01 03 1D 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB 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 41 00 00 00 F4 03 04 00 BF 55 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 03 [13:03:57]Write i2c OK [13:03:57]MH_I2C_Read... [13:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:58]Read from MH i2c: E2 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 03 00 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 03 00 03 1D 00 90 00 94 [13:03:58]RAPDU: 90 00 [13:03:58]wFMCommunicate OK [13:03:58]wFMCommunicate request_size=27 [13:03:58]MH_SAM_APDU [13:03:58]CAPDU: 80 0D 02 02 16 31 38 32 39 10 04 04 00 48 08 01 00 35 04 06 00 EF F4 B0 4D 21 59 [13:03:58]Write to MH i2c: E2 1E 00 04 1D 80 0D 02 02 16 00 31 38 32 39 10 04 04 00 48 08 01 00 35 04 06 00 EF F4 B0 4D 21 59 00 00 9D [13:03:58]Write i2c OK [13:03:58]MH_I2C_Read... [13:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:58]Read from MH i2c: E2 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 03 00 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 03 00 04 1D 00 90 00 95 [13:03:58]RAPDU: 90 00 [13:03:58]wFMCommunicate OK [13:03:58]wFMCommunicate request_size=4 [13:03:58]MH_SAM_APDU [13:03:58]CAPDU: 80 0D 03 02 [13:03:58]Write to MH i2c: E2 08 00 05 1D 80 0D 03 02 00 00 00 00 9D [13:03:58]Write i2c OK [13:03:58]MH_I2C_Read... [13:03:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:58]Read from MH i2c: E2 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 0B 00 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 0B 00 05 1D 00 33 FA 60 90 44 87 B8 D0 90 00 0E [13:03:58]RAPDU: 33 FA 60 90 44 87 B8 D0 90 00 [13:03:58]wFMCommunicate OK [13:03:58]SAM_PROTO_SignData done [13:03:58]FM_MakeSignedData done [13:03:58]CreateOFDProtocolMessage [13:03:58]wFMCommunicate request_size=4 [13:03:58]MH_SAM_APDU [13:03:58]CAPDU: 80 11 00 00 [13:03:58]Write to MH i2c: E2 08 00 06 1D 80 11 00 00 00 00 00 00 9D [13:03:58]Write i2c OK [13:03:58]MH_I2C_Read... [13:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:58]Read from MH i2c: E2 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 17 00 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: E2 17 00 06 1D 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:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:03:58]wFMCommunicate OK [13:03:58]CreateOFDProtocolMessage done [13:03:58]OFDSenderStorePacket 67656 [13:03:58]StoreOFDPacket docnum=67656 [13:03: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 20 01 00 00 E8 21 18 01 A9 09 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB 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 41 00 00 00 F4 03 04 00 BF 55 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 EF F4 B0 4D 21 59 33 FA 60 90 44 87 B8 D0 [13:03:58]CheckFolder [13:03:58]dirname=/storage/ofd_packets [13:03:58]CheckFolder done [13:03:58]ProducePacketName [13:03:58]name=ofd_packets/00067656 [13:03:58]NVStorageSaveData ofd_packets/00067656 [13:03:58]File name is /storage/ofd_packets/00067656 [13:03:58]Write 318 bytes [13:03:58]NVStorageSaveData done [13:03:58]OFDSenderStorePacket done [13:03:58]KKMCreateOFDPacket done [13:03:58]NVStorageSaveData kkm_last_timestamp [13:03:58]File name is /storage/kkm_last_timestamp [13:03:58]Write 4 bytes [13:03:58]NVStorageSaveData done [13:03:58]ExternCall_PrintAddStr [13:03:58]wPrintStart [13:03:58]Write to MH i2c: 01 00 00 07 1D 24 [13:03:58]Write i2c OK [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: 01 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: 01 07 00 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: 01 07 00 07 1D 00 00 00 00 00 FF 0F 39 [13:03:58]RasterBufferAndPrint [13:03:58]line Счет N : (3)12103 [13:03:58]line ИНН: 02508201610067 [13:03:58]line Контрольно-Кассовый Чек [13:03:58]line ПРОДАЖА [13:03:58]line Товар: 4870001570057 [13:03:58]line Напиток Pepsi 0,5л [13:03:58]line 1.000 * 75.00 [13:03:58]line = 75.00 [13:03:58]line НДС 12% НСП 1% [13:03:58]line > о реализуемом товаре [13:03:58]line ИТОГО: 75.00 [13:03:58]line НСП 1% : 0.66 [13:03:58]line НДС 12% : 7.96 [13:03:58]line Наличными: 75.00 [13:03:58]line Безнал.: 0.00 [13:03:58]line Место: АЗС № 91 "Партнер Нефть" [13:03:58]OFD Sender: Processing packet 67656 [packets to send 35, broken 34] [13:03:58]ProducePacketName [13:03:58]name=ofd_packets/00067656 [13:03:58]OFD Sender: To server: pG, [13:03:58]CommunicateWithHost lk.salyk.kg:30040 [13:03:58]ConnectInit lk.salyk.kg [13:03:58]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:03:58]line СНО: Общий режим [13:03:58]line Чек 65 17.05.2024 13:03 [13:03:58]line Смена: 358 ФФД: 1.0 [13:03:58]line ЗНМ: 0300000119 [13:03:58]line РНМ: 0000000000091845 [13:03:58]line Версия ККМ: 001 [13:03:58]line ФМ: 0000000000871829 [13:03:58]line ФД: 67656 [13:03:58]line ФПД: 263834208903513 [13:03:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T130359&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67656&fm=263834208903513&tin=02508201610067®Number=0000000000091845&sum=7500 [13:03:58]line 0 [13:03:58]written 0, free lines is 4095 [13:03:58]Connected sock=10 [13:03: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 20 01 00 00 E8 21 18 01 A9 09 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB 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 41 00 00 00 F4 03 04 00 BF 55 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 EF F4 B0 4D 21 59 33 FA 60 90 44 87 B8 D0 [13:03: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 74 34 47 00 B3 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 48 08 01 00 F4 03 04 00 97 FD 46 66 B6 04 01 00 00 FC FE 93 C0 33 DE F7 0E [13:03:58]CommunicateWithHost err = 0 [13:03:58]CheckOFDResponse [13:03:58]1017 (14) - 77093643461234 [13:03:58]1041 (16) - 0000000000871829 [13:03:58]1040 (4) - 67656 [13:03:58]1012 (4) - 17.05.2024 06:47 [13:03:58]1206 (1) - 0 [13:03:58]OFD Sender: Remove packet 67656 [13:03:58]ProducePacketName [13:03:58]name=ofd_packets/00067656 [13:03:58]NVStorageDeleteData [13:03:58]Write to MH i2c: 01 00 00 2E 1D 4B [13:03:58]Write i2c OK [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: 01 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: 01 07 00 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: 01 07 00 2E 1D 00 00 00 00 00 08 0D 67 [13:03:58]RasterBufferAndPrint [13:03:58]line [13:03:58]line [13:03:58]line [13:03:58]line [13:03:58]line [13:03:58]written 0, free lines is 3348 [13:03:58]MH_Cut [13:03:58]Write to MH i2c: D1 01 00 35 1D 01 24 [13:03:58]Write i2c OK [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: D1 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: D1 01 00 [13:03:58]MH_I2C_Read... [13:03:58]Read from MH i2c: D1 01 00 35 1D 00 23 [13:03:58]Write to MH i2c: 01 00 00 36 1D 53 [13:03:58]Write i2c OK [13:03:58]MH_I2C_Read... [13:03:59]OFD Sender: No OFD packet to send [13:03:59]*** Cut start [13:03:59]*** Purtial cut [13:03:59]*** CUTSNS_PIN = 0 [13:03:59]*** Stage 1: CUTSNS_PIN = 1 [13:04:01]Read from MH i2c: 01 [13:04:01]MH_I2C_Read... [13:04:01]*** Stop cut motor [13:04:01]*** Cut end [13:04:01]Read from MH i2c: 01 07 00 [13:04:01]MH_I2C_Read... [13:04:01]Read from MH i2c: 01 07 00 36 1D 00 00 00 00 00 FF 0F 68 [13:04:01]process_action close_receipt done [13:04:01]requested_data is exist [13:04:01]produce_requested_data [13:04:01]requested_item fm.sn is exist - process it [13:04:01]wFMCommunicate request_size=4 [13:04:01]MH_SAM_APDU [13:04:01]CAPDU: 80 11 00 00 [13:04:01]Write to MH i2c: E2 08 00 37 1D 80 11 00 00 00 00 00 00 CE [13:04:01]Write i2c OK [13:04:01]MH_I2C_Read... [13:04:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:01]Read from MH i2c: E2 [13:04:01]MH_I2C_Read... [13:04:01]Read from MH i2c: E2 17 00 [13:04:01]MH_I2C_Read... [13:04:01]Read from MH i2c: E2 17 00 37 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 24 [13:04:01]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:01]wFMCommunicate OK [13:04:01]requested_item fd.num is exist - process it [13:04:01]SAM_PROTO_GetFieldsCounters [13:04:01]wFMCommunicate request_size=4 [13:04:01]MH_SAM_APDU [13:04:01]CAPDU: 80 13 00 00 [13:04:01]Write to MH i2c: E2 08 00 38 1D 80 13 00 00 00 00 00 00 D1 [13:04:01]Write i2c OK [13:04:01]MH_I2C_Read... [13:04:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:01]Read from MH i2c: E2 [13:04:01]MH_I2C_Read... [13:04:01]Read from MH i2c: E2 62 00 [13:04:01]MH_I2C_Read... [13:04:01]Read from MH i2c: E2 62 00 38 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 48 08 01 00 0E 04 04 00 66 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 72 [13:04: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 48 08 01 00 0E 04 04 00 66 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 [13:04:01]wFMCommunicate OK [13:04:01]SAM_PROTO_GetFieldsCounters done [13:04:01]requested_item shift.num is exist - process it [13:04:01]requested_item shift.opened is exist - process it [13:04:01]req_shift_opened [13:04:01]FM_GetShiftState [13:04:01]SAM_PROTO_GetShiftState [13:04:01]wFMCommunicate request_size=4 [13:04:01]MH_SAM_APDU [13:04:01]CAPDU: 80 13 01 00 [13:04:01]Write to MH i2c: E2 08 00 39 1D 80 13 01 00 00 00 00 00 D3 [13:04:01]Write i2c OK [13:04:01]MH_I2C_Read... [13:04:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:01]Read from MH i2c: E2 [13:04:01]MH_I2C_Read... [13:04:01]Read from MH i2c: E2 0E 00 [13:04:01]MH_I2C_Read... [13:04:01]Read from MH i2c: E2 0E 00 39 1D 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 59 [13:04:01]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:04:01]wFMCommunicate OK [13:04:01]SAM_PROTO_GetShiftState done [13:04:01]FM_GetShiftState done [13:04:01]req_shift_opened done [13:04:01]requested_item shift.open_date is exist - process it [13:04:01]req_shift_open_date [13:04:01]req_shift_open_date done [13:04:01]produce_requested_data done [13:04:01]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67656,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [13:04:01]process_action_free close_receipt [13:04:01]json_value_free [13:04:01]json_value_free done [13:04:01]process_json_proto returns [13:04:01]Send response to host [13:04:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67656,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [13:04:01]free response buf [13:04:01]execute_script done [13:04:01]execute_script returns [13:04:01]free content buf [13:04:01]Sock 7.Close socket [13:04:01]Sock 7.Thread stoped [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:32]accept exits with 9 [13:04:32]New connection [13:04:32]New thread 3067538788 created [13:04:32]Thread 3067395428 joined [13:04:32]Waiting for new connection... [13:04:32] Sock 9.Parse request [13:04:32]Sock 9.Check first char [13:04:32]Sock 9.First char is OK [13:04:32]request: POST /json_proto HTTP/1.0 [13:04:32]Method: POST [13:04:32]URL: /json_proto [13:04:32]Method is POST - this is cgi request [13:04:32]url: /json_proto [13:04:32]query_string will be loaded in cgi processing [13:04:32]execute_cgi json_proto POST (null) [13:04:32]execute_cgi path=json_proto method=POST [13:04:32]POST find Content-Length [13:04:32]Host: 172.17.41.195:8080 [13:04:32]Content-Length: 1180 [13:04:32]Content-Type: application/json [13:04:32] [13:04:32]POST finish read [13:04:32]Found Content-Length = 1180 [13:04: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507788\u000A17.05.2024 12:47\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" ] } } [13:04:32]execute_script... [13:04: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507788\u000A17.05.2024 12:47\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" ] } } [13:04:32]POST & json_proto [13:04:32]process_json_proto [13:04:32]json parsed OK: [13:04:32]protocol is kg_v1.0 [13:04:32]action value=print_text [13:04:32]process_action print_text [13:04:32]cmd_print_text [13:04:32]ExternCall_PrintAddStr [13:04:32]wPrintStart [13:04:32]Write to MH i2c: 01 00 00 3A 1D 57 [13:04:32]Write i2c OK [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: 01 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: 01 07 00 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: 01 07 00 3A 1D 00 00 00 00 00 FF 0F 6C [13:04:32]RasterBufferAndPrint [13:04:32]line *****ТОВАРНЫЙ ЧЕК***** [13:04:32]line АЗС-91 [13:04:32]line Партнер нефть [13:04:32]line 02508201610067 [13:04:32]line Кассир : Адишов И. [13:04:32]line Счет N : (1)507788 [13:04:32]line 17.05.2024 12:47 [13:04:32]line ПРОДАЖА [13:04:32]line ТРК (МРК, ГНК): 23 [13:04:32]line Вид ГСМ : 2710124130 [13:04:32]line Аи-92-К-5 [13:04:32]line 7.490 x 66.80 [13:04:32]line ИТОГ: 500.33 [13:04:32]line Тип оплаты: Талоны: Топливная Карта [13:04:32]line 02750 [13:04:32]line ______________________ [13:04:32]line (подпись) [13:04:32]written 0, free lines is 4095 [13:04:32]Write to MH i2c: 01 00 00 4E 1D 6B [13:04:32]Write i2c OK [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: 01 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: 01 07 00 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: 01 07 00 4E 1D 00 00 00 00 00 0E 0E 8E [13:04:32]RasterBufferAndPrint [13:04:32]line [13:04:32]line [13:04:32]line [13:04:32]line [13:04:32]line [13:04:32]written 0, free lines is 3600 [13:04:32]MH_Cut [13:04:32]Write to MH i2c: D1 01 00 55 1D 01 44 [13:04:32]Write i2c OK [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: D1 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: D1 01 00 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: D1 01 00 55 1D 00 43 [13:04:32]Write to MH i2c: 01 00 00 56 1D 73 [13:04:32]Write i2c OK [13:04:32]MH_I2C_Read... [13:04:32]*** Cut start [13:04:32]*** Purtial cut [13:04:32]*** Stage 1: CUTSNS_PIN = 1 [13:04:33]Read from MH i2c: 01 [13:04:33]MH_I2C_Read... [13:04:33]*** Stop cut motor [13:04:33]*** Cut end [13:04:33]Read from MH i2c: 01 07 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: 01 07 00 56 1D 00 00 00 00 00 FF 0F 88 [13:04:33]process_action print_text done [13:04:33]requested_data is exist [13:04:33]produce_requested_data [13:04:33]requested_item fm.sn is exist - process it [13:04:33]wFMCommunicate request_size=4 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 11 00 00 [13:04:33]Write to MH i2c: E2 08 00 57 1D 80 11 00 00 00 00 00 00 EE [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 17 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 17 00 57 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 44 [13:04: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:04:33]wFMCommunicate OK [13:04:33]requested_item fd.num is exist - process it [13:04:33]SAM_PROTO_GetFieldsCounters [13:04:33]wFMCommunicate request_size=4 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 13 00 00 [13:04:33]Write to MH i2c: E2 08 00 58 1D 80 13 00 00 00 00 00 00 F1 [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 62 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 62 00 58 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 48 08 01 00 0E 04 04 00 66 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 92 [13:04: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 48 08 01 00 0E 04 04 00 66 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 [13:04:33]wFMCommunicate OK [13:04:33]SAM_PROTO_GetFieldsCounters done [13:04:33]requested_item shift.num is exist - process it [13:04:33]requested_item shift.opened is exist - process it [13:04:33]req_shift_opened [13:04:33]FM_GetShiftState [13:04:33]SAM_PROTO_GetShiftState [13:04:33]wFMCommunicate request_size=4 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 13 01 00 [13:04:33]Write to MH i2c: E2 08 00 59 1D 80 13 01 00 00 00 00 00 F3 [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 0E 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 0E 00 59 1D 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 79 [13:04:33]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:04:33]wFMCommunicate OK [13:04:33]SAM_PROTO_GetShiftState done [13:04:33]FM_GetShiftState done [13:04:33]req_shift_opened done [13:04:33]requested_item shift.open_date is exist - process it [13:04:33]req_shift_open_date [13:04:33]req_shift_open_date done [13:04:33]produce_requested_data done [13:04:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67656,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [13:04:33]process_action_free print_text [13:04:33]json_value_free [13:04:33]json_value_free done [13:04:33]process_json_proto returns [13:04:33]Send response to host [13:04:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67656,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [13:04:33]free response buf [13:04:33]execute_script done [13:04:33]execute_script returns [13:04:33]free content buf [13:04:33]Sock 9.Close socket [13:04:33]Sock 9.Thread stoped [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:47]accept exits with 7 [13:04:47]New connection [13:04:47]New thread 3067395428 created [13:04:47]Thread 3067538788 joined [13:04:47]Waiting for new connection... [13:04:47] Sock 7.Parse request [13:04:47]Sock 7.Check first char [13:04:47]Sock 7.First char is OK [13:04:47]request: POST /json_proto HTTP/1.0 [13:04:47]Method: POST [13:04:47]URL: /json_proto [13:04:47]Method is POST - this is cgi request [13:04:47]url: /json_proto [13:04:47]query_string will be loaded in cgi processing [13:04:47]execute_cgi json_proto POST (null) [13:04:47]execute_cgi path=json_proto method=POST [13:04:47]POST find Content-Length [13:04:47]Host: 172.17.41.195:8080 [13:04:47]Content-Length: 1173 [13:04:47]Content-Type: application/json [13:04:47] [13:04:47]POST finish read [13:04:47]Found Content-Length = 1173 [13:04: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507790\u000A17.05.2024 12:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000ASuper-92-\u041A-5\u000A 2.950 x 67.80\u000A\u0418\u0422\u041E\u0413: 200.01\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:04:47]execute_script... [13:04: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507790\u000A17.05.2024 12:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000ASuper-92-\u041A-5\u000A 2.950 x 67.80\u000A\u0418\u0422\u041E\u0413: 200.01\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:04:47]POST & json_proto [13:04:47]process_json_proto [13:04:47]json parsed OK: [13:04:47]protocol is kg_v1.0 [13:04:47]action value=print_text [13:04:47]process_action print_text [13:04:47]cmd_print_text [13:04:47]ExternCall_PrintAddStr [13:04:47]wPrintStart [13:04:47]Write to MH i2c: 01 00 00 5A 1D 77 [13:04:47]Write i2c OK [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: 01 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: 01 07 00 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: 01 07 00 5A 1D 00 00 00 00 00 FF 0F 8C [13:04:47]RasterBufferAndPrint [13:04:47]line *****ТОВАРНЫЙ ЧЕК***** [13:04:47]line АЗС-91 [13:04:47]line Партнер нефть [13:04:47]line 02508201610067 [13:04:47]line Кассир : Адишов И. [13:04:47]line Счет N : (1)507790 [13:04:47]line 17.05.2024 12:47 [13:04:47]line ПРОДАЖА [13:04:47]line ТРК (МРК, ГНК): 12 [13:04:47]line Вид ГСМ : 2710124130 [13:04:47]line Super-92-К-5 [13:04:47]line 2.950 x 67.80 [13:04:47]line ИТОГ: 200.01 [13:04:47]line Тип оплаты: Талоны: Топливная Карта [13:04:47]line 02750 [13:04:47]line ______________________ [13:04:47]line (подпись) [13:04:47]written 0, free lines is 4095 [13:04:47]Write to MH i2c: 01 00 00 6E 1D 8B [13:04:47]Write i2c OK [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: 01 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: 01 07 00 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: 01 07 00 6E 1D 00 00 00 00 00 0F 0E AF [13:04:47]RasterBufferAndPrint [13:04:47]line [13:04:47]line [13:04:47]line [13:04:47]line [13:04:47]line [13:04:47]written 0, free lines is 3600 [13:04:47]MH_Cut [13:04:47]Write to MH i2c: D1 01 00 75 1D 01 64 [13:04:47]Write i2c OK [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: D1 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: D1 01 00 [13:04:47]MH_I2C_Read... [13:04:47]Read from MH i2c: D1 01 00 75 1D 00 63 [13:04:47]Write to MH i2c: 01 00 00 76 1D 93 [13:04:47]Write i2c OK [13:04:47]MH_I2C_Read... [13:04:47]*** Cut start [13:04:47]*** Purtial cut [13:04:47]*** CUTSNS_PIN = 0 [13:04:48]*** Stage 1: CUTSNS_PIN = 1 [13:04:49]OFD Sender: No OFD packet to send [13:04:49]Read from MH i2c: 01 [13:04:49]MH_I2C_Read... [13:04:49]*** Stop cut motor [13:04:49]*** Cut end [13:04:49]Read from MH i2c: 01 07 00 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: 01 07 00 76 1D 00 00 00 00 00 FF 0F A8 [13:04:49]process_action print_text done [13:04:49]requested_data is exist [13:04:49]produce_requested_data [13:04:49]requested_item fm.sn is exist - process it [13:04:49]wFMCommunicate request_size=4 [13:04:49]MH_SAM_APDU [13:04:49]CAPDU: 80 11 00 00 [13:04:49]Write to MH i2c: E2 08 00 77 1D 80 11 00 00 00 00 00 00 0E [13:04:49]Write i2c OK [13:04:49]MH_I2C_Read... [13:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:49]Read from MH i2c: E2 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: E2 17 00 [13:04:49]MH_I2C_Read... [13:04:49]Read from MH i2c: E2 17 00 77 1D 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:04: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:04:49]wFMCommunicate OK [13:04:49]requested_item fd.num is exist - process it [13:04:49]SAM_PROTO_GetFieldsCounters [13:04:49]wFMCommunicate request_size=4 [13:04:49]MH_SAM_APDU [13:04:49]CAPDU: 80 13 00 00 [13:04:49]Write to MH i2c: E2 08 00 78 1D 80 13 00 00 00 00 00 00 11 [13:04:49]Write i2c OK [13:04:49]MH_I2C_Read... [13:04:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:50]Read from MH i2c: E2 [13:04:50]MH_I2C_Read... [13:04:50]Read from MH i2c: E2 62 00 [13:04:50]MH_I2C_Read... [13:04:50]Read from MH i2c: E2 62 00 78 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 48 08 01 00 0E 04 04 00 66 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 B2 [13:04: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 48 08 01 00 0E 04 04 00 66 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 [13:04:50]wFMCommunicate OK [13:04:50]SAM_PROTO_GetFieldsCounters done [13:04:50]requested_item shift.num is exist - process it [13:04:50]requested_item shift.opened is exist - process it [13:04:50]req_shift_opened [13:04:50]FM_GetShiftState [13:04:50]SAM_PROTO_GetShiftState [13:04:50]wFMCommunicate request_size=4 [13:04:50]MH_SAM_APDU [13:04:50]CAPDU: 80 13 01 00 [13:04:50]Write to MH i2c: E2 08 00 79 1D 80 13 01 00 00 00 00 00 13 [13:04:50]Write i2c OK [13:04:50]MH_I2C_Read... [13:04:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:50]Read from MH i2c: E2 [13:04:50]MH_I2C_Read... [13:04:50]Read from MH i2c: E2 0E 00 [13:04:50]MH_I2C_Read... [13:04:50]Read from MH i2c: E2 0E 00 79 1D 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 99 [13:04:50]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:04:50]wFMCommunicate OK [13:04:50]SAM_PROTO_GetShiftState done [13:04:50]FM_GetShiftState done [13:04:50]req_shift_opened done [13:04:50]requested_item shift.open_date is exist - process it [13:04:50]req_shift_open_date [13:04:50]req_shift_open_date done [13:04:50]produce_requested_data done [13:04:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67656,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [13:04:50]process_action_free print_text [13:04:50]json_value_free [13:04:50]json_value_free done [13:04:50]process_json_proto returns [13:04:50]Send response to host [13:04:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67656,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [13:04:50]free response buf [13:04:50]execute_script done [13:04:50]execute_script returns [13:04:50]free content buf [13:04:50]Sock 7.Close socket [13:04:50]Sock 7.Thread stoped [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:10]accept exits with 9 [13:05:10]New connection [13:05:10]New thread 3067538788 created [13:05:10]Thread 3067395428 joined [13:05:10]Waiting for new connection... [13:05:10] Sock 9.Parse request [13:05:10]Sock 9.Check first char [13:05:10]Sock 9.First char is OK [13:05:10]request: POST /json_proto HTTP/1.0 [13:05:10]Method: POST [13:05:10]URL: /json_proto [13:05:10]Method is POST - this is cgi request [13:05:10]url: /json_proto [13:05:10]query_string will be loaded in cgi processing [13:05:10]execute_cgi json_proto POST (null) [13:05:10]execute_cgi path=json_proto method=POST [13:05:10]POST find Content-Length [13:05:10]Host: 172.17.41.195:8080 [13:05:10]Content-Length: 1181 [13:05:10]Content-Type: application/json [13:05:10] [13:05:10]POST finish read [13:05:10]Found Content-Length = 1181 [13:05: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507789\u000A17.05.2024 12:47\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 13.850 x 66.80\u000A\u0418\u0422\u041E\u0413: 925.18\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:05:10]execute_script... [13:05: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507789\u000A17.05.2024 12:47\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 13.850 x 66.80\u000A\u0418\u0422\u041E\u0413: 925.18\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:05:10]POST & json_proto [13:05:10]process_json_proto [13:05:10]json parsed OK: [13:05:10]protocol is kg_v1.0 [13:05:10]action value=print_text [13:05:10]process_action print_text [13:05:10]cmd_print_text [13:05:10]ExternCall_PrintAddStr [13:05:10]wPrintStart [13:05:10]Write to MH i2c: 01 00 00 7A 1D 97 [13:05:10]Write i2c OK [13:05:10]MH_I2C_Read... [13:05:10]Read from MH i2c: 01 [13:05:10]MH_I2C_Read... [13:05:10]Read from MH i2c: 01 07 00 [13:05:10]MH_I2C_Read... [13:05:10]Read from MH i2c: 01 07 00 7A 1D 00 00 00 00 00 FF 0F AC [13:05:10]RasterBufferAndPrint [13:05:10]line *****ТОВАРНЫЙ ЧЕК***** [13:05:10]line АЗС-91 [13:05:10]line Партнер нефть [13:05:10]line 02508201610067 [13:05:10]line Кассир : Адишов И. [13:05:10]line Счет N : (1)507789 [13:05:10]line 17.05.2024 12:47 [13:05:10]line ПРОДАЖА [13:05:10]line ТРК (МРК, ГНК): 43 [13:05:10]line Вид ГСМ : 2710124130 [13:05:10]line Аи-92-К-5 [13:05:10]line 13.850 x 66.80 [13:05:10]line ИТОГ: 925.18 [13:05:10]line Тип оплаты: Талоны: Топливная Карта [13:05:10]line 02750 [13:05:10]line ______________________ [13:05:10]line (подпись) [13:05:10]written 0, free lines is 4095 [13:05:10]Write to MH i2c: 01 00 00 8E 1D AB [13:05:10]Write i2c OK [13:05:10]MH_I2C_Read... [13:05:10]Read from MH i2c: 01 [13:05:10]MH_I2C_Read... [13:05:10]Read from MH i2c: 01 07 00 [13:05:10]MH_I2C_Read... [13:05:10]Read from MH i2c: 01 07 00 8E 1D 00 00 00 00 00 0F 0E CF [13:05:10]RasterBufferAndPrint [13:05:10]line [13:05:10]line [13:05:10]line [13:05:10]line [13:05:10]line [13:05:10]written 0, free lines is 3601 [13:05:10]MH_Cut [13:05:10]Write to MH i2c: D1 01 00 95 1D 01 84 [13:05:10]Write i2c OK [13:05:10]MH_I2C_Read... [13:05:10]Read from MH i2c: D1 [13:05:10]MH_I2C_Read... [13:05:10]Read from MH i2c: D1 01 00 [13:05:10]MH_I2C_Read... [13:05:10]Read from MH i2c: D1 01 00 95 1D 00 83 [13:05:10]Write to MH i2c: 01 00 00 96 1D B3 [13:05:10]Write i2c OK [13:05:10]MH_I2C_Read... [13:05:11]*** Cut start [13:05:11]*** Purtial cut [13:05:11]*** Stage 1: CUTSNS_PIN = 1 [13:05:11]Read from MH i2c: 01 [13:05:11]MH_I2C_Read... [13:05:11]*** Stop cut motor [13:05:11]*** Cut end [13:05:11]Read from MH i2c: 01 07 00 [13:05:11]MH_I2C_Read... [13:05:11]Read from MH i2c: 01 07 00 96 1D 00 00 00 00 00 FF 0F C8 [13:05:11]process_action print_text done [13:05:11]requested_data is exist [13:05:11]produce_requested_data [13:05:11]requested_item fm.sn is exist - process it [13:05:11]wFMCommunicate request_size=4 [13:05:11]MH_SAM_APDU [13:05:11]CAPDU: 80 11 00 00 [13:05:11]Write to MH i2c: E2 08 00 97 1D 80 11 00 00 00 00 00 00 2E [13:05:11]Write i2c OK [13:05:11]MH_I2C_Read... [13:05:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:11]Read from MH i2c: E2 [13:05:11]MH_I2C_Read... [13:05:11]Read from MH i2c: E2 17 00 [13:05:11]MH_I2C_Read... [13:05:11]Read from MH i2c: E2 17 00 97 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 84 [13:05:11]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:11]wFMCommunicate OK [13:05:11]requested_item fd.num is exist - process it [13:05:11]SAM_PROTO_GetFieldsCounters [13:05:11]wFMCommunicate request_size=4 [13:05:11]MH_SAM_APDU [13:05:11]CAPDU: 80 13 00 00 [13:05:11]Write to MH i2c: E2 08 00 98 1D 80 13 00 00 00 00 00 00 31 [13:05:11]Write i2c OK [13:05:11]MH_I2C_Read... [13:05:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:11]Read from MH i2c: E2 [13:05:11]MH_I2C_Read... [13:05:11]Read from MH i2c: E2 62 00 [13:05:11]MH_I2C_Read... [13:05:11]Read from MH i2c: E2 62 00 98 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 48 08 01 00 0E 04 04 00 66 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 D2 [13:05: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 48 08 01 00 0E 04 04 00 66 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 [13:05:11]wFMCommunicate OK [13:05:11]SAM_PROTO_GetFieldsCounters done [13:05:11]requested_item shift.num is exist - process it [13:05:11]requested_item shift.opened is exist - process it [13:05:11]req_shift_opened [13:05:11]FM_GetShiftState [13:05:11]SAM_PROTO_GetShiftState [13:05:11]wFMCommunicate request_size=4 [13:05:11]MH_SAM_APDU [13:05:11]CAPDU: 80 13 01 00 [13:05:11]Write to MH i2c: E2 08 00 99 1D 80 13 01 00 00 00 00 00 33 [13:05:11]Write i2c OK [13:05:11]MH_I2C_Read... [13:05:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:11]Read from MH i2c: E2 [13:05:11]MH_I2C_Read... [13:05:11]Read from MH i2c: E2 0E 00 [13:05:11]MH_I2C_Read... [13:05:11]Read from MH i2c: E2 0E 00 99 1D 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 B9 [13:05:11]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:05:11]wFMCommunicate OK [13:05:11]SAM_PROTO_GetShiftState done [13:05:11]FM_GetShiftState done [13:05:11]req_shift_opened done [13:05:11]requested_item shift.open_date is exist - process it [13:05:11]req_shift_open_date [13:05:11]req_shift_open_date done [13:05:11]produce_requested_data done [13:05:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67656,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [13:05:11]process_action_free print_text [13:05:11]json_value_free [13:05:11]json_value_free done [13:05:11]process_json_proto returns [13:05:11]Send response to host [13:05:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67656,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [13:05:11]free response buf [13:05:11]execute_script done [13:05:11]execute_script returns [13:05:11]free content buf [13:05:11]Sock 9.Close socket [13:05:11]Sock 9.Thread stoped [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:34]OFD Sender: No OFD packet to send [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:44]OFD Sender: No OFD packet to send [13:08:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:24]OFD Sender: No OFD packet to send [13:09:29]OFD Sender: No OFD packet to send [13:09:34]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:49]OFD Sender: No OFD packet to send [13:09:54]OFD Sender: No OFD packet to send [13:09:59]OFD Sender: No OFD packet to send [13:10:04]OFD Sender: No OFD packet to send [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:19]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:54]OFD Sender: No OFD packet to send [13:18:59]OFD Sender: No OFD packet to send [13:19:03]accept exits with 7 [13:19:03]New connection [13:19:03]New thread 3067395428 created [13:19:03]Thread 3067538788 joined [13:19:03]Waiting for new connection... [13:19:03] Sock 7.Parse request [13:19:03]Sock 7.Check first char [13:19:03]Sock 7.First char is OK [13:19:03]request: POST /json_proto HTTP/1.0 [13:19:03]Method: POST [13:19:03]URL: /json_proto [13:19:03]Method is POST - this is cgi request [13:19:03]url: /json_proto [13:19:03]query_string will be loaded in cgi processing [13:19:03]execute_cgi json_proto POST (null) [13:19:03]execute_cgi path=json_proto method=POST [13:19:03]POST find Content-Length [13:19:03]Host: 172.17.41.195:8080 [13:19:03]Content-Length: 800 [13:19:03]Content-Type: application/json [13:19:03] [13:19:03]POST finish read [13:19:03]Found Content-Length = 800 [13:19:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507791", "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" ] } } [13:19:03]execute_script... [13:19: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)507791", "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" ] } } [13:19:03]POST & json_proto [13:19:03]process_json_proto [13:19:03]json parsed OK: [13:19:03]protocol is kg_v1.0 [13:19:03]action value=close_receipt [13:19:03]process_action close_receipt [13:19:03]cmd_close_receipt [13:19:03]MH_GetDate [13:19:03]Write to MH i2c: F0 00 00 9A 1D A6 [13:19:03]Write i2c OK [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: F0 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: F0 09 00 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: F0 09 00 9A 1D 00 4A 59 47 66 FC 21 6F 64 EF [13:19:03]GetLastDocTimeStamp 1715951039 [13:19:03]current date 1715951946 [13:19:03]FM_GetShiftState [13:19:03]SAM_PROTO_GetShiftState [13:19:03]wFMCommunicate request_size=4 [13:19:03]MH_SAM_APDU [13:19:03]CAPDU: 80 13 01 00 [13:19:03]Write to MH i2c: E2 08 00 9B 1D 80 13 01 00 00 00 00 00 35 [13:19:03]Write i2c OK [13:19:03]MH_I2C_Read... [13:19:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:03]Read from MH i2c: E2 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 0E 00 [13:19:03]MH_I2C_Read... [13:19:03]Read from MH i2c: E2 0E 00 9B 1D 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 BB [13:19:03]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:19:03]wFMCommunicate OK [13:19:03]SAM_PROTO_GetShiftState done [13:19:03]FM_GetShiftState done [13:19:03]opened in 1715905068 [13:19:03]opened+sec_in_day 1715991468 [13:19:03]quantity*price = 40013 [13:19:03]sum+1 = 40014 [13:19:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.13 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 0.00 Безнал.: 400.13 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 66 17.05.2024 13:19 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67657 ФПД: 85433351983885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T131906&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67657&fm=85433351983885&tin=02508201610067®Number=0000000000091845&sum=40013 [13:19:04]StoreToDocumentArchive [13:19:04]shift 358 fd 67657 [13:19:04]save to /storage/0358/doc_00067657 [13:19:04]save last doc name /storage/0358/doc_00067657 to /storage/kkm_last_doc_name [13:19:04]save OK [13:19:04]Clear old archive folders... [13:19:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:19:04]tlvbuf is 016604C0 [13:19:04]SAM_PROTO_ClearQueue [13:19:04]wFMCommunicate request_size=4 [13:19:04]MH_SAM_APDU [13:19:04]CAPDU: 80 09 00 00 [13:19:04]Write to MH i2c: E2 08 00 A8 1D 80 09 00 00 00 00 00 00 37 [13:19:04]Write i2c OK [13:19:04]MH_I2C_Read... [13:19:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:04]Read from MH i2c: E2 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: E2 03 00 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: E2 03 00 A8 1D 00 90 00 39 [13:19:04]RAPDU: 90 00 [13:19:04]wFMCommunicate OK [13:19:04]SAM_PROTO_ClearQueue done [13:19:04]KKMCreateOFDPacket [13:19:04]OFDProtocolAddRootSTLVToBuf [13:19:04]FM_MakeSignedData [13:19:04]FM_MakeSignedData [13:19:04]SAM_PROTO_SignData [13:19:04]wFMCommunicate request_size=4 [13:19:04]MH_SAM_APDU [13:19:04]CAPDU: 80 0D 01 02 [13:19:04]Write to MH i2c: E2 08 00 A9 1D 80 0D 01 02 00 00 00 00 3F [13:19:04]Write i2c OK [13:19:04]MH_I2C_Read... [13:19:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:04]Read from MH i2c: E2 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: E2 03 00 [13:19:04]MH_I2C_Read... [13:19:04]Read from MH i2c: E2 03 00 A9 1D 00 90 00 3A [13:19:04]RAPDU: 90 00 [13:19:04]wFMCommunicate OK [13:19:04]wFMCommunicate request_size=255 [13:19:04]MH_SAM_APDU [13:19:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 4A 59 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 4D [13:19:04]Write to MH i2c: E2 02 01 AA 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 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 42 00 00 00 F4 03 04 00 4A 59 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 4D 00 00 5C [13:19:04]Write i2c OK [13:19:04]MH_I2C_Read... [13:19:04]OFD Sender: No OFD packet to send [13:19:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:05]Read from MH i2c: E2 [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: E2 03 00 [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: E2 03 00 AA 1D 00 90 00 3B [13:19:05]RAPDU: 90 00 [13:19:05]wFMCommunicate OK [13:19:05]wFMCommunicate request_size=10 [13:19:05]MH_SAM_APDU [13:19:05]CAPDU: 80 0D 02 02 05 B3 80 98 D3 0D [13:19:05]Write to MH i2c: E2 0D 00 AB 1D 80 0D 02 02 05 00 B3 80 98 D3 0D 00 00 F7 [13:19:05]Write i2c OK [13:19:05]MH_I2C_Read... [13:19:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:05]Read from MH i2c: E2 [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: E2 03 00 [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: E2 03 00 AB 1D 00 90 00 3C [13:19:05]RAPDU: 90 00 [13:19:05]wFMCommunicate OK [13:19:05]wFMCommunicate request_size=4 [13:19:05]MH_SAM_APDU [13:19:05]CAPDU: 80 0D 03 02 [13:19:05]Write to MH i2c: E2 08 00 AC 1D 80 0D 03 02 00 00 00 00 44 [13:19:05]Write i2c OK [13:19:05]MH_I2C_Read... [13:19:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:05]Read from MH i2c: E2 [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: E2 0B 00 [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: E2 0B 00 AC 1D 00 23 03 DF 61 3A 06 47 87 90 00 B9 [13:19:05]RAPDU: 23 03 DF 61 3A 06 47 87 90 00 [13:19:05]wFMCommunicate OK [13:19:05]SAM_PROTO_SignData done [13:19:05]FM_MakeSignedData done [13:19:05]CreateOFDProtocolMessage [13:19:05]wFMCommunicate request_size=4 [13:19:05]MH_SAM_APDU [13:19:05]CAPDU: 80 11 00 00 [13:19:05]Write to MH i2c: E2 08 00 AD 1D 80 11 00 00 00 00 00 00 44 [13:19:05]Write i2c OK [13:19:05]MH_I2C_Read... [13:19:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:05]Read from MH i2c: E2 [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: E2 17 00 [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: E2 17 00 AD 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9A [13:19:05]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:05]wFMCommunicate OK [13:19:05]CreateOFDProtocolMessage done [13:19:05]OFDSenderStorePacket 67657 [13:19:05]StoreOFDPacket docnum=67657 [13:19: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 0F 01 00 00 3C C1 07 01 97 96 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 42 00 00 00 F4 03 04 00 4A 59 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 4D B3 80 98 D3 0D 23 03 DF 61 3A 06 47 87 [13:19:05]CheckFolder [13:19:05]dirname=/storage/ofd_packets [13:19:05]CheckFolder done [13:19:05]ProducePacketName [13:19:05]name=ofd_packets/00067657 [13:19:05]NVStorageSaveData ofd_packets/00067657 [13:19:05]File name is /storage/ofd_packets/00067657 [13:19:05]Write 301 bytes [13:19:05]NVStorageSaveData done [13:19:05]OFDSenderStorePacket done [13:19:05]KKMCreateOFDPacket done [13:19:05]NVStorageSaveData kkm_last_timestamp [13:19:05]File name is /storage/kkm_last_timestamp [13:19:05]Write 4 bytes [13:19:05]NVStorageSaveData done [13:19:05]ExternCall_PrintAddStr [13:19:05]wPrintStart [13:19:05]Write to MH i2c: 01 00 00 AE 1D CB [13:19:05]Write i2c OK [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: 01 [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: 01 07 00 [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: 01 07 00 AE 1D 00 00 00 00 00 FF 0F E0 [13:19:05]RasterBufferAndPrint [13:19:05]line Счет N : (1)507791 [13:19:05]line ИНН: 02508201610067 [13:19:05]line Контрольно-Кассовый Чек [13:19:05]line ПРОДАЖА [13:19:05]line ТРК (МРК, ГНК) : 43 [13:19:05]line Товар: 2710124130 [13:19:05]line Аи-92-К-5 [13:19:05]line 5.990 * 66.80 [13:19:05]line = 400.13 [13:19:05]line НДС 12% НСП 1% [13:19:05]line > о реализуемом товаре [13:19:05]line ИТОГО: 400.13 [13:19:05]line НСП 1% : 3.54 [13:19:05]line НДС 12% : 42.49 [13:19:05]line Наличными: 0.00 [13:19:05]line Безнал.: 400.13 [13:19:05]line Место: АЗС № 91 "Партнер Нефть" [13:19:05]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:19:05]line СНО: Общий режим [13:19:05]line Чек 66 17.05.2024 13:19 [13:19:05]line Смена: 358 ФФД: 1.0 [13:19:05]line ЗНМ: 0300000119 [13:19:05]line РНМ: 0000000000091845 [13:19:05]line Версия ККМ: 001 [13:19:05]line Платежная система: O! деньги [13:19:05]line ФМ: 0000000000871829 [13:19:05]line ФД: 67657 [13:19:05]line ФПД: 85433351983885 [13:19:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T131906&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67657&fm=85433351983885&tin=02508201610067®Number=0000000000091845&sum=40013 [13:19:05]written 0, free lines is 4095 [13:19:05]OFD Sender: Processing packet 67657 [packets to send 35, broken 34] [13:19:05]ProducePacketName [13:19:05]name=ofd_packets/00067657 [13:19:05]OFD Sender: To server: pG, [13:19:05]CommunicateWithHost lk.salyk.kg:30040 [13:19:05]ConnectInit lk.salyk.kg [13:19:05]Connected sock=10 [13:19:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 3C C1 07 01 97 96 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 42 00 00 00 F4 03 04 00 4A 59 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 4D B3 80 98 D3 0D 23 03 DF 61 3A 06 47 87 [13:19: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 5F A7 47 00 50 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 49 08 01 00 F4 03 04 00 23 01 47 66 B6 04 01 00 00 28 59 F4 C8 44 88 E3 CC [13:19:05]CommunicateWithHost err = 0 [13:19:05]CheckOFDResponse [13:19:05]1017 (14) - 77093643461234 [13:19:05]1041 (16) - 0000000000871829 [13:19:05]1040 (4) - 67657 [13:19:05]1012 (4) - 17.05.2024 07:02 [13:19:05]1206 (1) - 0 [13:19:05]OFD Sender: Remove packet 67657 [13:19:05]ProducePacketName [13:19:05]name=ofd_packets/00067657 [13:19:05]NVStorageDeleteData [13:19:05]Write to MH i2c: 01 00 00 D7 1D F4 [13:19:05]Write i2c OK [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: 01 [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: 01 07 00 [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: 01 07 00 D7 1D 00 00 00 00 00 E4 0C EB [13:19:05]RasterBufferAndPrint [13:19:05]line [13:19:05]line [13:19:05]line [13:19:05]line [13:19:05]line [13:19:05]written 0, free lines is 3305 [13:19:05]MH_Cut [13:19:05]Write to MH i2c: D1 01 00 DE 1D 01 CD [13:19:05]Write i2c OK [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: D1 [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: D1 01 00 [13:19:05]MH_I2C_Read... [13:19:05]Read from MH i2c: D1 01 00 DE 1D 00 CC [13:19:05]Write to MH i2c: 01 00 00 DF 1D FC [13:19:05]Write i2c OK [13:19:05]MH_I2C_Read... [13:19:06]OFD Sender: No OFD packet to send [13:19:06]*** Cut start [13:19:06]*** Purtial cut [13:19:06]*** CUTSNS_PIN = 0 [13:19:07]*** Stage 1: CUTSNS_PIN = 1 [13:19:08]Read from MH i2c: 01 [13:19:08]MH_I2C_Read... [13:19:08]*** Stop cut motor [13:19:08]*** Cut end [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 DF 1D 00 00 00 00 00 FF 0F 11 [13:19:08]process_action close_receipt done [13:19:08]requested_data is exist [13:19:08]produce_requested_data [13:19:08]requested_item fm.sn is exist - process it [13:19:08]wFMCommunicate request_size=4 [13:19:08]MH_SAM_APDU [13:19:08]CAPDU: 80 11 00 00 [13:19:08]Write to MH i2c: E2 08 00 E0 1D 80 11 00 00 00 00 00 00 77 [13:19:08]Write i2c OK [13:19:08]MH_I2C_Read... [13:19:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:08]Read from MH i2c: E2 [13:19:08]MH_I2C_Read... [13:19:08]Read from MH i2c: E2 17 00 [13:19:08]MH_I2C_Read... [13:19:08]Read from MH i2c: E2 17 00 E0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CD [13:19: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:19:08]wFMCommunicate OK [13:19:08]requested_item fd.num is exist - process it [13:19:08]SAM_PROTO_GetFieldsCounters [13:19:08]wFMCommunicate request_size=4 [13:19:08]MH_SAM_APDU [13:19:08]CAPDU: 80 13 00 00 [13:19:08]Write to MH i2c: E2 08 00 E1 1D 80 13 00 00 00 00 00 00 7A [13:19:08]Write i2c OK [13:19:08]MH_I2C_Read... [13:19:08]*** 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 E1 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 49 08 01 00 0E 04 04 00 66 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 1F [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 49 08 01 00 0E 04 04 00 66 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 [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 E2 1D 80 13 01 00 00 00 00 00 7C [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 E2 1D 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 02 [13:19:09]RAPDU: 09 00 01 2C A2 46 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":67657,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [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":67657,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [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:11]OFD Sender: No OFD packet to send [13:19:16]OFD Sender: No OFD packet to send [13:19:21]OFD Sender: No OFD packet to send [13:19:26]OFD Sender: No OFD packet to send [13:19:31]OFD Sender: No OFD packet to send [13:19:36]OFD Sender: No OFD packet to send [13:19:41]OFD Sender: No OFD packet to send [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:13]accept exits with 9 [13:21:13]New connection [13:21:13]New thread 3067538788 created [13:21:13]Thread 3067395428 joined [13:21:13]Waiting for new connection... [13:21:13] Sock 9.Parse request [13:21:13]Sock 9.Check first char [13:21:13]Sock 9.First char is OK [13:21:13]request: POST /json_proto HTTP/1.0 [13:21:13]Method: POST [13:21:13]URL: /json_proto [13:21:13]Method is POST - this is cgi request [13:21:13]url: /json_proto [13:21:13]query_string will be loaded in cgi processing [13:21:13]execute_cgi json_proto POST (null) [13:21:13]execute_cgi path=json_proto method=POST [13:21:13]POST find Content-Length [13:21:13]Host: 172.17.41.195:8080 [13:21:13]Content-Length: 1179 [13:21:13]Content-Type: application/json [13:21:13] [13:21:13]POST finish read [13:21:13]Found Content-Length = 1179 [13:21:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507792\u000A17.05.2024 13:03\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" ] } } [13:21:13]execute_script... [13:21:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507792\u000A17.05.2024 13:03\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" ] } } [13:21:13]POST & json_proto [13:21:13]process_json_proto [13:21:13]json parsed OK: [13:21:13]protocol is kg_v1.0 [13:21:13]action value=print_text [13:21:13]process_action print_text [13:21:13]cmd_print_text [13:21:13]ExternCall_PrintAddStr [13:21:13]wPrintStart [13:21:13]Write to MH i2c: 01 00 00 E3 1D 00 [13:21:13]Write i2c OK [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: 01 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: 01 07 00 [13:21:13]MH_I2C_Read... [13:21:13]Read from MH i2c: 01 07 00 E3 1D 00 00 00 00 00 FF 0F 15 [13:21:13]RasterBufferAndPrint [13:21:13]line *****ТОВАРНЫЙ ЧЕК***** [13:21:13]line АЗС-91 [13:21:13]line Партнер нефть [13:21:13]line 02508201610067 [13:21:13]line Кассир : Адишов И. [13:21:13]line Счет N : (1)507792 [13:21:13]line 17.05.2024 13:03 [13:21:13]line ПРОДАЖА [13:21:13]line ТРК (МРК, ГНК): 21 [13:21:13]line Вид ГСМ : 2710194210 [13:21:13]line ДТ-К-5 [13:21:13]line 20.000 x 74.70 [13:21:13]line ИТОГ: 1494.00 [13:21:13]line Тип оплаты: Талоны: Топливная Карта [13:21:13]line 02750 [13:21:13]line ______________________ [13:21:13]line (подпись) [13:21:13]written 0, free lines is 4095 [13:21:14]Write to MH i2c: 01 00 00 F7 1D 14 [13:21:14]Write i2c OK [13:21:14]MH_I2C_Read... [13:21:14]Read from MH i2c: 01 [13:21:14]MH_I2C_Read... [13:21:14]Read from MH i2c: 01 07 00 [13:21:14]MH_I2C_Read... [13:21:14]Read from MH i2c: 01 07 00 F7 1D 00 00 00 00 00 0D 0E 36 [13:21:14]RasterBufferAndPrint [13:21:14]line [13:21:14]line [13:21:14]line [13:21:14]line [13:21:14]line [13:21:14]written 0, free lines is 3599 [13:21:14]MH_Cut [13:21:14]Write to MH i2c: D1 01 00 FE 1D 01 ED [13:21:14]Write i2c OK [13:21:14]MH_I2C_Read... [13:21:14]Read from MH i2c: D1 [13:21:14]MH_I2C_Read... [13:21:14]Read from MH i2c: D1 01 00 [13:21:14]MH_I2C_Read... [13:21:14]Read from MH i2c: D1 01 00 FE 1D 00 EC [13:21:14]Write to MH i2c: 01 00 00 FF 1D 1C [13:21:14]Write i2c OK [13:21:14]MH_I2C_Read... [13:21:14]*** Cut start [13:21:14]*** Purtial cut [13:21:14]*** Stage 1: CUTSNS_PIN = 1 [13:21:14]Read from MH i2c: 01 [13:21:14]MH_I2C_Read... [13:21:14]*** Stop cut motor [13:21:14]*** Cut end [13:21:14]Read from MH i2c: 01 07 00 [13:21:14]MH_I2C_Read... [13:21:14]Read from MH i2c: 01 07 00 FF 1D 00 00 00 00 00 FF 0F 31 [13:21:14]process_action print_text done [13:21:14]requested_data is exist [13:21:14]produce_requested_data [13:21:14]requested_item fm.sn is exist - process it [13:21:14]wFMCommunicate request_size=4 [13:21:14]MH_SAM_APDU [13:21:14]CAPDU: 80 11 00 00 [13:21:14]Write to MH i2c: E2 08 00 00 1E 80 11 00 00 00 00 00 00 98 [13:21:14]Write i2c OK [13:21:14]MH_I2C_Read... [13:21:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:15]Read from MH i2c: E2 [13:21:15]MH_I2C_Read... [13:21:15]Read from MH i2c: E2 17 00 [13:21:15]MH_I2C_Read... [13:21:15]Read from MH i2c: E2 17 00 00 1E 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:21:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:21:15]wFMCommunicate OK [13:21:15]requested_item fd.num is exist - process it [13:21:15]SAM_PROTO_GetFieldsCounters [13:21:15]wFMCommunicate request_size=4 [13:21:15]MH_SAM_APDU [13:21:15]CAPDU: 80 13 00 00 [13:21:15]Write to MH i2c: E2 08 00 01 1E 80 13 00 00 00 00 00 00 9B [13:21:15]Write i2c OK [13:21:15]MH_I2C_Read... [13:21:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:15]Read from MH i2c: E2 [13:21:15]MH_I2C_Read... [13:21:15]Read from MH i2c: E2 62 00 [13:21:15]MH_I2C_Read... [13:21:15]Read from MH i2c: E2 62 00 01 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 49 08 01 00 0E 04 04 00 66 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 40 [13:21: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 49 08 01 00 0E 04 04 00 66 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 [13:21:15]wFMCommunicate OK [13:21:15]SAM_PROTO_GetFieldsCounters done [13:21:15]requested_item shift.num is exist - process it [13:21:15]requested_item shift.opened is exist - process it [13:21:15]req_shift_opened [13:21:15]FM_GetShiftState [13:21:15]SAM_PROTO_GetShiftState [13:21:15]wFMCommunicate request_size=4 [13:21:15]MH_SAM_APDU [13:21:15]CAPDU: 80 13 01 00 [13:21:15]Write to MH i2c: E2 08 00 02 1E 80 13 01 00 00 00 00 00 9D [13:21:15]Write i2c OK [13:21:15]MH_I2C_Read... [13:21:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:15]Read from MH i2c: E2 [13:21:15]MH_I2C_Read... [13:21:15]Read from MH i2c: E2 0E 00 [13:21:15]MH_I2C_Read... [13:21:15]Read from MH i2c: E2 0E 00 02 1E 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 23 [13:21:15]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:21:15]wFMCommunicate OK [13:21:15]SAM_PROTO_GetShiftState done [13:21:15]FM_GetShiftState done [13:21:15]req_shift_opened done [13:21:15]requested_item shift.open_date is exist - process it [13:21:15]req_shift_open_date [13:21:15]req_shift_open_date done [13:21:15]produce_requested_data done [13:21:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67657,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [13:21:15]process_action_free print_text [13:21:15]json_value_free [13:21:15]json_value_free done [13:21:15]process_json_proto returns [13:21:15]Send response to host [13:21:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67657,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [13:21:15]free response buf [13:21:15]execute_script done [13:21:15]execute_script returns [13:21:15]free content buf [13:21:15]Sock 9.Close socket [13:21:15]Sock 9.Thread stoped [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:31]OFD Sender: No OFD packet to send [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:22:01]OFD Sender: No OFD packet to send [13:22:06]OFD Sender: No OFD packet to send [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:24]accept exits with 7 [13:22:24]New connection [13:22:24]New thread 3067395428 created [13:22:24]Thread 3067538788 joined [13:22:24]Waiting for new connection... [13:22:24] Sock 7.Parse request [13:22:24]Sock 7.Check first char [13:22:24]Sock 7.First char is OK [13:22:24]request: POST /json_proto HTTP/1.0 [13:22:24]Method: POST [13:22:24]URL: /json_proto [13:22:24]Method is POST - this is cgi request [13:22:24]url: /json_proto [13:22:24]query_string will be loaded in cgi processing [13:22:24]execute_cgi json_proto POST (null) [13:22:24]execute_cgi path=json_proto method=POST [13:22:24]POST find Content-Length [13:22:24]Host: 172.17.41.195:8080 [13:22:24]Content-Length: 1179 [13:22:24]Content-Type: application/json [13:22:24] [13:22:24]POST finish read [13:22:24]Found Content-Length = 1179 [13:22:24]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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507793\u000A17.05.2024 13:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.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" ] } } [13:22:24]execute_script... [13:22:24]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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507793\u000A17.05.2024 13:04\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.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" ] } } [13:22:24]POST & json_proto [13:22:24]process_json_proto [13:22:24]json parsed OK: [13:22:24]protocol is kg_v1.0 [13:22:24]action value=print_text [13:22:24]process_action print_text [13:22:24]cmd_print_text [13:22:24]ExternCall_PrintAddStr [13:22:24]wPrintStart [13:22:24]Write to MH i2c: 01 00 00 03 1E 21 [13:22:24]Write i2c OK [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: 01 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: 01 07 00 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: 01 07 00 03 1E 00 00 00 00 00 FF 0F 36 [13:22:24]RasterBufferAndPrint [13:22:24]line *****ТОВАРНЫЙ ЧЕК***** [13:22:24]line АЗС-91 [13:22:24]line Партнер нефть [13:22:24]line 02508201610067 [13:22:24]line Кассир : Адишов И. [13:22:24]line Счет N : (1)507793 [13:22:24]line 17.05.2024 13:04 [13:22:24]line ПРОДАЖА [13:22:24]line ТРК (МРК, ГНК): 11 [13:22:24]line Вид ГСМ : 2710194210 [13:22:24]line ДТ-К-5 [13:22:24]line 40.170 x 74.70 [13:22:24]line ИТОГ: 3000.70 [13:22:24]line Тип оплаты: Талоны: Топливная Карта [13:22:24]line 02750 [13:22:24]line ______________________ [13:22:24]line (подпись) [13:22:24]written 0, free lines is 4095 [13:22:24]Write to MH i2c: 01 00 00 17 1E 35 [13:22:24]Write i2c OK [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: 01 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: 01 07 00 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: 01 07 00 17 1E 00 00 00 00 00 0D 0E 57 [13:22:24]RasterBufferAndPrint [13:22:24]line [13:22:24]line [13:22:24]line [13:22:24]line [13:22:24]line [13:22:24]written 0, free lines is 3598 [13:22:24]MH_Cut [13:22:24]Write to MH i2c: D1 01 00 1E 1E 01 0E [13:22:24]Write i2c OK [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: D1 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: D1 01 00 [13:22:24]MH_I2C_Read... [13:22:24]Read from MH i2c: D1 01 00 1E 1E 00 0D [13:22:24]Write to MH i2c: 01 00 00 1F 1E 3D [13:22:24]Write i2c OK [13:22:24]MH_I2C_Read... [13:22:25]*** Cut start [13:22:25]*** Purtial cut [13:22:25]*** CUTSNS_PIN = 0 [13:22:25]*** Stage 1: CUTSNS_PIN = 1 [13:22:26]OFD Sender: No OFD packet to send [13:22:27]Read from MH i2c: 01 [13:22:27]MH_I2C_Read... [13:22:27]*** Stop cut motor [13:22:27]*** Cut end [13:22:27]Read from MH i2c: 01 07 00 [13:22:27]MH_I2C_Read... [13:22:27]Read from MH i2c: 01 07 00 1F 1E 00 00 00 00 00 FF 0F 52 [13:22:27]process_action print_text done [13:22:27]requested_data is exist [13:22:27]produce_requested_data [13:22:27]requested_item fm.sn is exist - process it [13:22:27]wFMCommunicate request_size=4 [13:22:27]MH_SAM_APDU [13:22:27]CAPDU: 80 11 00 00 [13:22:27]Write to MH i2c: E2 08 00 20 1E 80 11 00 00 00 00 00 00 B8 [13:22:27]Write i2c OK [13:22:27]MH_I2C_Read... [13:22:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:27]Read from MH i2c: E2 [13:22:27]MH_I2C_Read... [13:22:27]Read from MH i2c: E2 17 00 [13:22:27]MH_I2C_Read... [13:22:27]Read from MH i2c: E2 17 00 20 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0E [13:22:27]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:27]wFMCommunicate OK [13:22:27]requested_item fd.num is exist - process it [13:22:27]SAM_PROTO_GetFieldsCounters [13:22:27]wFMCommunicate request_size=4 [13:22:27]MH_SAM_APDU [13:22:27]CAPDU: 80 13 00 00 [13:22:27]Write to MH i2c: E2 08 00 21 1E 80 13 00 00 00 00 00 00 BB [13:22:27]Write i2c OK [13:22:27]MH_I2C_Read... [13:22:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:27]Read from MH i2c: E2 [13:22:27]MH_I2C_Read... [13:22:27]Read from MH i2c: E2 62 00 [13:22:27]MH_I2C_Read... [13:22:27]Read from MH i2c: E2 62 00 21 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 49 08 01 00 0E 04 04 00 66 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 60 [13:22: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 49 08 01 00 0E 04 04 00 66 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 [13:22:27]wFMCommunicate OK [13:22:27]SAM_PROTO_GetFieldsCounters done [13:22:27]requested_item shift.num is exist - process it [13:22:27]requested_item shift.opened is exist - process it [13:22:27]req_shift_opened [13:22:27]FM_GetShiftState [13:22:27]SAM_PROTO_GetShiftState [13:22:27]wFMCommunicate request_size=4 [13:22:27]MH_SAM_APDU [13:22:27]CAPDU: 80 13 01 00 [13:22:27]Write to MH i2c: E2 08 00 22 1E 80 13 01 00 00 00 00 00 BD [13:22:27]Write i2c OK [13:22:27]MH_I2C_Read... [13:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:27]Read from MH i2c: E2 [13:22:27]MH_I2C_Read... [13:22:27]Read from MH i2c: E2 0E 00 [13:22:27]MH_I2C_Read... [13:22:27]Read from MH i2c: E2 0E 00 22 1E 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 43 [13:22:27]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:22:27]wFMCommunicate OK [13:22:27]SAM_PROTO_GetShiftState done [13:22:27]FM_GetShiftState done [13:22:27]req_shift_opened done [13:22:27]requested_item shift.open_date is exist - process it [13:22:27]req_shift_open_date [13:22:27]req_shift_open_date done [13:22:27]produce_requested_data done [13:22:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67657,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [13:22:27]process_action_free print_text [13:22:27]json_value_free [13:22:27]json_value_free done [13:22:27]process_json_proto returns [13:22:27]Send response to host [13:22:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67657,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [13:22:27]free response buf [13:22:27]execute_script done [13:22:27]execute_script returns [13:22:27]free content buf [13:22:27]Sock 7.Close socket [13:22:27]Sock 7.Thread stoped [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:36]OFD Sender: No OFD packet to send [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:35]accept exits with 9 [13:26:35]New connection [13:26:35]New thread 3067538788 created [13:26:35]Thread 3067395428 joined [13:26:35]Waiting for new connection... [13:26:35] Sock 9.Parse request [13:26:35]Sock 9.Check first char [13:26:35]Sock 9.First char is OK [13:26:35]request: POST /json_proto HTTP/1.0 [13:26:35]Method: POST [13:26:35]URL: /json_proto [13:26:35]Method is POST - this is cgi request [13:26:35]url: /json_proto [13:26:35]query_string will be loaded in cgi processing [13:26:35]execute_cgi json_proto POST (null) [13:26:35]execute_cgi path=json_proto method=POST [13:26:35]POST find Content-Length [13:26:35]Host: 172.17.41.195:8080 [13:26:35]Content-Length: 674 [13:26:35]Content-Type: application/json [13:26:35] [13:26:35]POST finish read [13:26:35]Found Content-Length = 674 [13:26:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507794", "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" : 2.680, "sum" : 200.20, "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" ] } } [13:26:35]execute_script... [13:26: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)507794", "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" : 2.680, "sum" : 200.20, "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" ] } } [13:26:35]POST & json_proto [13:26:35]process_json_proto [13:26:35]json parsed OK: [13:26:35]protocol is kg_v1.0 [13:26:35]action value=close_receipt [13:26:35]process_action close_receipt [13:26:35]cmd_close_receipt [13:26:35]MH_GetDate [13:26:35]Write to MH i2c: F0 00 00 23 1E 30 [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: F0 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: F0 09 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: F0 09 00 23 1E 00 0F 5B 47 66 FC 21 6F 64 40 [13:26:35]GetLastDocTimeStamp 1715951946 [13:26:35]current date 1715952399 [13:26:35]FM_GetShiftState [13:26:35]SAM_PROTO_GetShiftState [13:26:35]wFMCommunicate request_size=4 [13:26:35]MH_SAM_APDU [13:26:35]CAPDU: 80 13 01 00 [13:26:35]Write to MH i2c: E2 08 00 24 1E 80 13 01 00 00 00 00 00 BF [13:26:35]Write i2c OK [13:26:35]MH_I2C_Read... [13:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:35]Read from MH i2c: E2 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 0E 00 [13:26:35]MH_I2C_Read... [13:26:35]Read from MH i2c: E2 0E 00 24 1E 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 45 [13:26:35]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:26:35]wFMCommunicate OK [13:26:35]SAM_PROTO_GetShiftState done [13:26:35]FM_GetShiftState done [13:26:35]opened in 1715905068 [13:26:35]opened+sec_in_day 1715991468 [13:26:35]quantity*price = 20019 [13:26:35]sum+1 = 20021 [13:26:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 67 17.05.2024 13:26 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67658 ФПД: 269916468867984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T132639&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67658&fm=269916468867984&tin=02508201610067®Number=0000000000091845&sum=20000 [13:26:36]StoreToDocumentArchive [13:26:36]shift 358 fd 67658 [13:26:36]save to /storage/0358/doc_00067658 [13:26:36]save last doc name /storage/0358/doc_00067658 to /storage/kkm_last_doc_name [13:26:36]save OK [13:26:36]Clear old archive folders... [13:26:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:26:36]tlvbuf is 01623A00 [13:26:36]SAM_PROTO_ClearQueue [13:26:36]wFMCommunicate request_size=4 [13:26:36]MH_SAM_APDU [13:26:36]CAPDU: 80 09 00 00 [13:26:36]Write to MH i2c: E2 08 00 31 1E 80 09 00 00 00 00 00 00 C1 [13:26:36]Write i2c OK [13:26:36]MH_I2C_Read... [13:26:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:37]Read from MH i2c: E2 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 03 00 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 03 00 31 1E 00 90 00 C3 [13:26:37]RAPDU: 90 00 [13:26:37]wFMCommunicate OK [13:26:37]SAM_PROTO_ClearQueue done [13:26:37]KKMCreateOFDPacket [13:26:37]OFDProtocolAddRootSTLVToBuf [13:26:37]FM_MakeSignedData [13:26:37]FM_MakeSignedData [13:26:37]SAM_PROTO_SignData [13:26:37]wFMCommunicate request_size=4 [13:26:37]MH_SAM_APDU [13:26:37]CAPDU: 80 0D 01 02 [13:26:37]Write to MH i2c: E2 08 00 32 1E 80 0D 01 02 00 00 00 00 C9 [13:26:37]Write i2c OK [13:26:37]MH_I2C_Read... [13:26:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:37]Read from MH i2c: E2 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 03 00 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 03 00 32 1E 00 90 00 C4 [13:26:37]RAPDU: 90 00 [13:26:37]wFMCommunicate OK [13:26:37]wFMCommunicate request_size=255 [13:26:37]MH_SAM_APDU [13:26: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 78 0A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 34 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 4E 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 43 00 00 00 F4 03 04 00 0F 5B 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F5 7C D3 3E [13:26:37]Write to MH i2c: E2 02 01 33 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 78 0A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 34 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 4E 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 43 00 00 00 F4 03 04 00 0F 5B 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F5 7C D3 3E 00 00 F3 [13:26:37]Write i2c OK [13:26:37]MH_I2C_Read... [13:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:37]Read from MH i2c: E2 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 03 00 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 03 00 33 1E 00 90 00 C5 [13:26:37]RAPDU: 90 00 [13:26:37]wFMCommunicate OK [13:26:37]wFMCommunicate request_size=7 [13:26:37]MH_SAM_APDU [13:26:37]CAPDU: 80 0D 02 02 02 F3 90 [13:26:37]Write to MH i2c: E2 0A 00 34 1E 80 0D 02 02 02 00 F3 90 00 00 53 [13:26:37]Write i2c OK [13:26:37]MH_I2C_Read... [13:26:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:37]Read from MH i2c: E2 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 03 00 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 03 00 34 1E 00 90 00 C6 [13:26:37]RAPDU: 90 00 [13:26:37]wFMCommunicate OK [13:26:37]wFMCommunicate request_size=4 [13:26:37]MH_SAM_APDU [13:26:37]CAPDU: 80 0D 03 02 [13:26:37]Write to MH i2c: E2 08 00 35 1E 80 0D 03 02 00 00 00 00 CE [13:26:37]Write i2c OK [13:26:37]MH_I2C_Read... [13:26:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:37]Read from MH i2c: E2 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 0B 00 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 0B 00 35 1E 00 5E 6C 5C B0 D3 D2 53 D1 90 00 6E [13:26:37]RAPDU: 5E 6C 5C B0 D3 D2 53 D1 90 00 [13:26:37]wFMCommunicate OK [13:26:37]SAM_PROTO_SignData done [13:26:37]FM_MakeSignedData done [13:26:37]CreateOFDProtocolMessage [13:26:37]wFMCommunicate request_size=4 [13:26:37]MH_SAM_APDU [13:26:37]CAPDU: 80 11 00 00 [13:26:37]Write to MH i2c: E2 08 00 36 1E 80 11 00 00 00 00 00 00 CE [13:26:37]Write i2c OK [13:26:37]MH_I2C_Read... [13:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:37]Read from MH i2c: E2 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 17 00 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: E2 17 00 36 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 24 [13: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 [13:26:37]wFMCommunicate OK [13:26:37]CreateOFDProtocolMessage done [13:26:37]OFDSenderStorePacket 67658 [13:26:37]StoreOFDPacket docnum=67658 [13:26:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 A9 58 04 01 02 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 78 0A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 34 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 4E 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 43 00 00 00 F4 03 04 00 0F 5B 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F5 7C D3 3E F3 90 5E 6C 5C B0 D3 D2 53 D1 [13:26:37]CheckFolder [13:26:37]dirname=/storage/ofd_packets [13:26:37]CheckFolder done [13:26:37]ProducePacketName [13:26:37]name=ofd_packets/00067658 [13:26:37]NVStorageSaveData ofd_packets/00067658 [13:26:37]File name is /storage/ofd_packets/00067658 [13:26:37]Write 298 bytes [13:26:37]NVStorageSaveData done [13:26:37]OFDSenderStorePacket done [13:26:37]KKMCreateOFDPacket done [13:26:37]NVStorageSaveData kkm_last_timestamp [13:26:37]File name is /storage/kkm_last_timestamp [13:26:37]Write 4 bytes [13:26:37]NVStorageSaveData done [13:26:37]ExternCall_PrintAddStr [13:26:37]wPrintStart [13:26:37]Write to MH i2c: 01 00 00 37 1E 55 [13:26:37]OFD Sender: Processing packet 67658 [packets to send 35, broken 34] [13:26:37]ProducePacketName [13:26:37]name=ofd_packets/00067658 [13:26:37]OFD Sender: To server: pG, [13:26:37]CommunicateWithHost lk.salyk.kg:30040 [13:26:37]ConnectInit lk.salyk.kg [13:26:37]Write i2c OK [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: 01 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: 01 07 00 [13:26:37]MH_I2C_Read... [13:26:37]Read from MH i2c: 01 07 00 37 1E 00 00 00 00 00 FF 0F 6A [13:26:37]RasterBufferAndPrint [13:26:37]line Счет N : (1)507794 [13:26:37]line ИНН: 02508201610067 [13:26:37]line Контрольно-Кассовый Чек [13:26:37]line ПРОДАЖА [13:26:37]line ТРК (МРК, ГНК) : 21 [13:26:37]line Товар: 2710194210 [13:26:37]line ДТ-К-5 [13:26:37]line 2.680 * 74.70 [13:26:37]line = 200.20 [13:26:37]line НДС 12% НСП 1% [13:26:37]line > о реализуемом товаре [13:26:37]line ОКРУГЛЕНИЕ: -0.20 [13:26:37]line ИТОГО: 200.00 [13:26:37]line Внесено: 200.00 [13:26:37]line СДАЧА: 0.00 [13:26:37]line НСП 1% : 1.77 [13:26:37]line НДС 12% : 21.26 [13:26:37]line Наличными: 200.00 [13:26:37]line Безнал.: 0.00 [13:26:37]line Место: АЗС № 91 "Партнер Нефть" [13:26:37]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:26:37]line СНО: Общий режим [13:26:37]line Чек 67 17.05.2024 13:26 [13:26:37]line Смена: 358 ФФД: 1.0 [13:26:37]line ЗНМ: 0300000119 [13:26:37]line РНМ: 0000000000091845 [13:26:37]line Версия ККМ: 001 [13:26:37]line ФМ: 0000000000871829 [13:26:37]line ФД: 67658 [13:26:37]line ФПД: 269916468867984 [13:26:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T132639&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67658&fm=269916468867984&tin=02508201610067®Number=0000000000091845&sum=20000 [13:26:37]Connected sock=10 [13:26:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 A9 58 04 01 02 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 78 0A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 34 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 4E 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 43 00 00 00 F4 03 04 00 0F 5B 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F5 7C D3 3E F3 90 5E 6C 5C B0 D3 D2 53 D1 [13:26:37]written 0, free lines is 4095 [13:26: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 99 89 47 00 B4 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 4A 08 01 00 F4 03 04 00 E7 02 47 66 B6 04 01 00 00 60 32 E0 FE 62 BE 4F AB [13:26:38]CommunicateWithHost err = 0 [13:26:38]CheckOFDResponse [13:26:38]1017 (14) - 77093643461234 [13:26:38]1041 (16) - 0000000000871829 [13:26:38]1040 (4) - 67658 [13:26:38]1012 (4) - 17.05.2024 07:10 [13:26:38]1206 (1) - 0 [13:26:38]OFD Sender: Remove packet 67658 [13:26:38]ProducePacketName [13:26:38]name=ofd_packets/00067658 [13:26:38]NVStorageDeleteData [13:26:38]Write to MH i2c: 01 00 00 61 1E 7F [13:26:38]Write i2c OK [13:26:38]MH_I2C_Read... [13:26:38]Read from MH i2c: 01 [13:26:38]MH_I2C_Read... [13:26:38]Read from MH i2c: 01 07 00 [13:26:38]MH_I2C_Read... [13:26:38]Read from MH i2c: 01 07 00 61 1E 00 00 00 00 00 C5 0C 57 [13:26:38]RasterBufferAndPrint [13:26:38]line [13:26:38]line [13:26:38]line [13:26:38]line [13:26:38]line [13:26:38]written 0, free lines is 3275 [13:26:38]MH_Cut [13:26:38]Write to MH i2c: D1 01 00 68 1E 01 58 [13:26:38]Write i2c OK [13:26:38]MH_I2C_Read... [13:26:38]Read from MH i2c: D1 [13:26:38]MH_I2C_Read... [13:26:38]Read from MH i2c: D1 01 00 [13:26:38]MH_I2C_Read... [13:26:38]Read from MH i2c: D1 01 00 68 1E 00 57 [13:26:38]Write to MH i2c: 01 00 00 69 1E 87 [13:26:38]Write i2c OK [13:26:38]MH_I2C_Read... [13:26:38]OFD Sender: No OFD packet to send [13:26:39]*** Cut start [13:26:39]*** Purtial cut [13:26:39]*** Stage 1: CUTSNS_PIN = 1 [13:26:39]Read from MH i2c: 01 [13:26:39]MH_I2C_Read... [13:26:39]*** Stop cut motor [13:26:39]*** Cut end [13:26:39]Read from MH i2c: 01 07 00 [13:26:39]MH_I2C_Read... [13:26:39]Read from MH i2c: 01 07 00 69 1E 00 00 00 00 00 FF 0F 9C [13:26:39]process_action close_receipt done [13:26:39]requested_data is exist [13:26:39]produce_requested_data [13:26:39]requested_item fm.sn is exist - process it [13:26:39]wFMCommunicate request_size=4 [13:26:39]MH_SAM_APDU [13:26:39]CAPDU: 80 11 00 00 [13:26:39]Write to MH i2c: E2 08 00 6A 1E 80 11 00 00 00 00 00 00 02 [13:26:39]Write i2c OK [13:26:39]MH_I2C_Read... [13:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:39]Read from MH i2c: E2 [13:26:39]MH_I2C_Read... [13:26:39]Read from MH i2c: E2 17 00 [13:26:39]MH_I2C_Read... [13:26:39]Read from MH i2c: E2 17 00 6A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 58 [13:26: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:26:39]wFMCommunicate OK [13:26:39]requested_item fd.num is exist - process it [13:26:39]SAM_PROTO_GetFieldsCounters [13:26:39]wFMCommunicate request_size=4 [13:26:39]MH_SAM_APDU [13:26:39]CAPDU: 80 13 00 00 [13:26:39]Write to MH i2c: E2 08 00 6B 1E 80 13 00 00 00 00 00 00 05 [13:26:39]Write i2c OK [13:26:39]MH_I2C_Read... [13:26:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:39]Read from MH i2c: E2 [13:26:39]MH_I2C_Read... [13:26:39]Read from MH i2c: E2 62 00 [13:26:39]MH_I2C_Read... [13:26:39]Read from MH i2c: E2 62 00 6B 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 4A 08 01 00 0E 04 04 00 66 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 AE [13:26: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 4A 08 01 00 0E 04 04 00 66 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 [13:26:39]wFMCommunicate OK [13:26:39]SAM_PROTO_GetFieldsCounters done [13:26:39]requested_item shift.num is exist - process it [13:26:39]requested_item shift.opened is exist - process it [13:26:39]req_shift_opened [13:26:39]FM_GetShiftState [13:26:39]SAM_PROTO_GetShiftState [13:26:39]wFMCommunicate request_size=4 [13:26:39]MH_SAM_APDU [13:26:39]CAPDU: 80 13 01 00 [13:26:39]Write to MH i2c: E2 08 00 6C 1E 80 13 01 00 00 00 00 00 07 [13:26:39]Write i2c OK [13:26:39]MH_I2C_Read... [13:26:39]Read from MH i2c: E2 [13:26:39]MH_I2C_Read... [13:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:39]Read from MH i2c: E2 0E 00 [13:26:39]MH_I2C_Read... [13:26:39]Read from MH i2c: E2 0E 00 6C 1E 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 8D [13:26:39]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:26:39]wFMCommunicate OK [13:26:39]SAM_PROTO_GetShiftState done [13:26:39]FM_GetShiftState done [13:26:39]req_shift_opened done [13:26:39]requested_item shift.open_date is exist - process it [13:26:39]req_shift_open_date [13:26:39]req_shift_open_date done [13:26:39]produce_requested_data done [13:26:39]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67658,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [13:26:39]process_action_free close_receipt [13:26:39]json_value_free [13:26:39]json_value_free done [13:26:39]process_json_proto returns [13:26:39]Send response to host [13:26:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67658,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [13:26:39]free response buf [13:26:39]execute_script done [13:26:39]execute_script returns [13:26:39]free content buf [13:26:39]Sock 9.Close socket [13:26:39]Sock 9.Thread stoped [13:26:43]OFD Sender: No OFD packet to send [13:26:48]OFD Sender: No OFD packet to send [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:29:48]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:28]OFD Sender: No OFD packet to send [13:30:33]OFD Sender: No OFD packet to send [13:30:38]OFD Sender: No OFD packet to send [13:30:43]OFD Sender: No OFD packet to send [13:30:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:08]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:18]OFD Sender: No OFD packet to send [13:31:23]OFD Sender: No OFD packet to send [13:31:28]OFD Sender: No OFD packet to send [13:31:33]OFD Sender: No OFD packet to send [13:31:38]OFD Sender: No OFD packet to send [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:53]OFD Sender: No OFD packet to send [13:31:58]OFD Sender: No OFD packet to send [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:13]OFD Sender: No OFD packet to send [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]OFD Sender: No OFD packet to send [13:32:58]OFD Sender: No OFD packet to send [13:33:03]OFD Sender: No OFD packet to send [13:33:08]OFD Sender: No OFD packet to send [13:33:13]OFD Sender: No OFD packet to send [13:33:18]OFD Sender: No OFD packet to send [13:33:23]OFD Sender: No OFD packet to send [13:33:28]OFD Sender: No OFD packet to send [13:33:33]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]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:46]accept exits with 7 [13:36:46]New connection [13:36:46]New thread 3067395428 created [13:36:46]Thread 3067538788 joined [13:36:46]Waiting for new connection... [13:36:46] Sock 7.Parse request [13:36:46]Sock 7.Check first char [13:36:46]Sock 7.First char is OK [13:36:46]request: POST /json_proto HTTP/1.0 [13:36:46]Method: POST [13:36:46]URL: /json_proto [13:36:46]Method is POST - this is cgi request [13:36:46]url: /json_proto [13:36:46]query_string will be loaded in cgi processing [13:36:46]execute_cgi json_proto POST (null) [13:36:46]execute_cgi path=json_proto method=POST [13:36:46]POST find Content-Length [13:36:46]Host: 172.17.41.195:8080 [13:36:46]Content-Length: 1190 [13:36:46]Content-Type: application/json [13:36:46] [13:36:46]POST finish read [13:36:46]Found Content-Length = 1190 [13:36: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507795\u000A17.05.2024 13: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 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\u000A3921223\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:46]execute_script... [13:36: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507795\u000A17.05.2024 13: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 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\u000A3921223\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:46]POST & json_proto [13:36:46]process_json_proto [13:36:46]json parsed OK: [13:36:46]protocol is kg_v1.0 [13:36:46]action value=print_text [13:36:46]process_action print_text [13:36:46]cmd_print_text [13:36:46]ExternCall_PrintAddStr [13:36:46]wPrintStart [13:36:46]Write to MH i2c: 01 00 00 6D 1E 8B [13:36:46]Write i2c OK [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: 01 [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: 01 07 00 [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: 01 07 00 6D 1E 00 00 00 00 00 FF 0F A0 [13:36:46]RasterBufferAndPrint [13:36:46]line *****ТОВАРНЫЙ ЧЕК***** [13:36:46]line АЗС-91 [13:36:46]line Партнер нефть [13:36:46]line 02508201610067 [13:36:46]line Кассир : Адишов И. [13:36:46]line Счет N : (1)507795 [13:36:46]line 17.05.2024 13:19 [13:36:46]line ПРОДАЖА [13:36:46]line ТРК (МРК, ГНК): 43 [13:36:46]line Вид ГСМ : 2710124130 [13:36:46]line Аи-92-К-5 [13:36:46]line 20.000 x 66.80 [13:36:46]line ИТОГ: 1336.00 [13:36:46]line Тип оплаты: Талоны: Топливные Талоны [13:36:46]line 3921223 [13:36:46]line ______________________ [13:36:46]line (подпись) [13:36:46]written 0, free lines is 4095 [13:36:46]Write to MH i2c: 01 00 00 81 1E 9F [13:36:46]Write i2c OK [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: 01 [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: 01 07 00 [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: 01 07 00 81 1E 00 00 00 00 00 0F 0E C3 [13:36:46]RasterBufferAndPrint [13:36:46]line [13:36:46]line [13:36:46]line [13:36:46]line [13:36:46]line [13:36:46]written 0, free lines is 3600 [13:36:46]MH_Cut [13:36:46]Write to MH i2c: D1 01 00 88 1E 01 78 [13:36:46]Write i2c OK [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: D1 [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: D1 01 00 [13:36:46]MH_I2C_Read... [13:36:46]Read from MH i2c: D1 01 00 88 1E 00 77 [13:36:46]Write to MH i2c: 01 00 00 89 1E A7 [13:36:46]Write i2c OK [13:36:46]MH_I2C_Read... [13:36:47]*** Cut start [13:36:47]*** Purtial cut [13:36:47]*** CUTSNS_PIN = 0 [13:36:47]*** Stage 1: CUTSNS_PIN = 1 [13:36:49]OFD Sender: No OFD packet to send [13:36:49]Read from MH i2c: 01 [13:36:49]MH_I2C_Read... [13:36:49]Read from MH i2c: 01 07 00 [13:36:49]MH_I2C_Read... [13:36:49]*** Stop cut motor [13:36:49]*** Cut end [13:36:49]Read from MH i2c: 01 07 00 89 1E 00 00 00 00 00 FF 0F BC [13:36:49]process_action print_text done [13:36:49]requested_data is exist [13:36:49]produce_requested_data [13:36:49]requested_item fm.sn is exist - process it [13:36:49]wFMCommunicate request_size=4 [13:36:49]MH_SAM_APDU [13:36:49]CAPDU: 80 11 00 00 [13:36:49]Write to MH i2c: E2 08 00 8A 1E 80 11 00 00 00 00 00 00 22 [13:36:49]Write i2c OK [13:36:49]MH_I2C_Read... [13:36:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:49]Read from MH i2c: E2 [13:36:49]MH_I2C_Read... [13:36:49]Read from MH i2c: E2 17 00 [13:36:49]MH_I2C_Read... [13:36:49]Read from MH i2c: E2 17 00 8A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 78 [13:36: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:36:49]wFMCommunicate OK [13:36:49]requested_item fd.num is exist - process it [13:36:49]SAM_PROTO_GetFieldsCounters [13:36:49]wFMCommunicate request_size=4 [13:36:49]MH_SAM_APDU [13:36:49]CAPDU: 80 13 00 00 [13:36:49]Write to MH i2c: E2 08 00 8B 1E 80 13 00 00 00 00 00 00 25 [13:36:49]Write i2c OK [13:36:49]MH_I2C_Read... [13:36:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:49]Read from MH i2c: E2 [13:36:49]MH_I2C_Read... [13:36:49]Read from MH i2c: E2 62 00 [13:36:49]MH_I2C_Read... [13:36:49]Read from MH i2c: E2 62 00 8B 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 4A 08 01 00 0E 04 04 00 66 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 CE [13:36: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 4A 08 01 00 0E 04 04 00 66 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 [13:36:49]wFMCommunicate OK [13:36:49]SAM_PROTO_GetFieldsCounters done [13:36:49]requested_item shift.num is exist - process it [13:36:49]requested_item shift.opened is exist - process it [13:36:49]req_shift_opened [13:36:49]FM_GetShiftState [13:36:49]SAM_PROTO_GetShiftState [13:36:49]wFMCommunicate request_size=4 [13:36:49]MH_SAM_APDU [13:36:49]CAPDU: 80 13 01 00 [13:36:49]Write to MH i2c: E2 08 00 8C 1E 80 13 01 00 00 00 00 00 27 [13:36:49]Write i2c OK [13:36:49]MH_I2C_Read... [13:36:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:49]Read from MH i2c: E2 [13:36:49]MH_I2C_Read... [13:36:49]Read from MH i2c: E2 0E 00 [13:36:49]MH_I2C_Read... [13:36:49]Read from MH i2c: E2 0E 00 8C 1E 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 AD [13:36:49]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:36:49]wFMCommunicate OK [13:36:49]SAM_PROTO_GetShiftState done [13:36:49]FM_GetShiftState done [13:36:49]req_shift_opened done [13:36:49]requested_item shift.open_date is exist - process it [13:36:49]req_shift_open_date [13:36:49]req_shift_open_date done [13:36:49]produce_requested_data done [13:36:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67658,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [13:36:49]process_action_free print_text [13:36:49]json_value_free [13:36:49]json_value_free done [13:36:49]process_json_proto returns [13:36:49]Send response to host [13:36:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67658,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [13:36:49]free response buf [13:36:49]execute_script done [13:36:49]execute_script returns [13:36:49]free content buf [13:36:49]Sock 7.Close socket [13:36:49]Sock 7.Thread stoped [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:09]OFD Sender: No OFD packet to send [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:44]OFD Sender: No OFD packet to send [13:37:49]OFD Sender: No OFD packet to send [13:37:54]OFD Sender: No OFD packet to send [13:37:59]OFD Sender: No OFD packet to send [13:38:04]OFD Sender: No OFD packet to send [13:38:09]OFD Sender: No OFD packet to send [13:38:14]OFD Sender: No OFD packet to send [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:54]OFD Sender: No OFD packet to send [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:54]OFD Sender: No OFD packet to send [13:39:59]OFD Sender: No OFD packet to send [13:40:04]OFD Sender: No OFD packet to send [13:40:09]OFD Sender: No OFD packet to send [13:40:14]OFD Sender: No OFD packet to send [13:40:19]OFD Sender: No OFD packet to send [13:40:24]OFD Sender: No OFD packet to send [13:40:29]OFD Sender: No OFD packet to send [13:40:34]OFD Sender: No OFD packet to send [13:40:39]OFD Sender: No OFD packet to send [13:40:44]OFD Sender: No OFD packet to send [13:40:49]OFD Sender: No OFD packet to send [13:40:54]OFD Sender: No OFD packet to send [13:40:59]OFD Sender: No OFD packet to send [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:31]accept exits with 9 [13:44:31]New connection [13:44:31]New thread 3067538788 created [13:44:31]Thread 3067395428 joined [13:44:31]Waiting for new connection... [13:44:31] Sock 9.Parse request [13:44:31]Sock 9.Check first char [13:44:31]Sock 9.First char is OK [13:44:31]request: POST /json_proto HTTP/1.0 [13:44:31]Method: POST [13:44:31]URL: /json_proto [13:44:31]Method is POST - this is cgi request [13:44:31]url: /json_proto [13:44:31]query_string will be loaded in cgi processing [13:44:31]execute_cgi json_proto POST (null) [13:44:31]execute_cgi path=json_proto method=POST [13:44:31]POST find Content-Length [13:44:31]Host: 172.17.41.195:8080 [13:44:31]Content-Length: 1179 [13:44:31]Content-Type: application/json [13:44:31] [13:44:31]POST finish read [13:44:31]Found Content-Length = 1179 [13:44: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507797\u000A17.05.2024 13:27\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" ] } } [13:44:31]execute_script... [13:44: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507797\u000A17.05.2024 13:27\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" ] } } [13:44:31]POST & json_proto [13:44:31]process_json_proto [13:44:31]json parsed OK: [13:44:31]protocol is kg_v1.0 [13:44:31]action value=print_text [13:44:31]process_action print_text [13:44:31]cmd_print_text [13:44:31]ExternCall_PrintAddStr [13:44:31]wPrintStart [13:44:31]Write to MH i2c: 01 00 00 8D 1E AB [13:44:31]Write i2c OK [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: 01 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: 01 07 00 [13:44:31]MH_I2C_Read... [13:44:31]Read from MH i2c: 01 07 00 8D 1E 00 00 00 00 00 FF 0F C0 [13:44:31]RasterBufferAndPrint [13:44:31]line *****ТОВАРНЫЙ ЧЕК***** [13:44:31]line АЗС-91 [13:44:31]line Партнер нефть [13:44:31]line 02508201610067 [13:44:31]line Кассир : Адишов И. [13:44:31]line Счет N : (1)507797 [13:44:31]line 17.05.2024 13:27 [13:44:31]line ПРОДАЖА [13:44:31]line ТРК (МРК, ГНК): 31 [13:44:31]line Вид ГСМ : 2710194210 [13:44:31]line ДТ-К-5 [13:44:31]line 40.170 x 74.70 [13:44:31]line ИТОГ: 3000.70 [13:44:31]line Тип оплаты: Талоны: Топливная Карта [13:44:31]line 02750 [13:44:31]line ______________________ [13:44:31]line (подпись) [13:44:31]written 0, free lines is 4095 [13:44:32]Write to MH i2c: 01 00 00 A1 1E BF [13:44:32]Write i2c OK [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: 01 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: 01 07 00 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: 01 07 00 A1 1E 00 00 00 00 00 0C 0E E0 [13:44:32]RasterBufferAndPrint [13:44:32]line [13:44:32]line [13:44:32]line [13:44:32]line [13:44:32]line [13:44:32]written 0, free lines is 3597 [13:44:32]MH_Cut [13:44:32]Write to MH i2c: D1 01 00 A8 1E 01 98 [13:44:32]Write i2c OK [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: D1 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: D1 01 00 [13:44:32]MH_I2C_Read... [13:44:32]Read from MH i2c: D1 01 00 A8 1E 00 97 [13:44:32]Write to MH i2c: 01 00 00 A9 1E C7 [13:44:32]Write i2c OK [13:44:32]MH_I2C_Read... [13:44:32]*** Cut start [13:44:32]*** Purtial cut [13:44:32]*** Stage 1: CUTSNS_PIN = 1 [13:44:33]Read from MH i2c: 01 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: 01 07 00 [13:44:33]MH_I2C_Read... [13:44:33]*** Stop cut motor [13:44:33]*** Cut end [13:44:33]Read from MH i2c: 01 07 00 A9 1E 00 00 00 00 00 FF 0F DC [13:44:33]process_action print_text done [13:44:33]requested_data is exist [13:44:33]produce_requested_data [13:44:33]requested_item fm.sn is exist - process it [13:44:33]wFMCommunicate request_size=4 [13:44:33]MH_SAM_APDU [13:44:33]CAPDU: 80 11 00 00 [13:44:33]Write to MH i2c: E2 08 00 AA 1E 80 11 00 00 00 00 00 00 42 [13:44:33]Write i2c OK [13:44:33]MH_I2C_Read... [13:44:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:33]Read from MH i2c: E2 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: E2 17 00 [13:44:33]MH_I2C_Read... [13:44:33]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 [13:44: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:44:33]wFMCommunicate OK [13:44:33]requested_item fd.num is exist - process it [13:44:33]SAM_PROTO_GetFieldsCounters [13:44:33]wFMCommunicate request_size=4 [13:44:33]MH_SAM_APDU [13:44:33]CAPDU: 80 13 00 00 [13:44:33]Write to MH i2c: E2 08 00 AB 1E 80 13 00 00 00 00 00 00 45 [13:44:33]Write i2c OK [13:44:33]MH_I2C_Read... [13:44:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:33]Read from MH i2c: E2 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: E2 62 00 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: E2 62 00 AB 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 4A 08 01 00 0E 04 04 00 66 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 EE [13:44: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 4A 08 01 00 0E 04 04 00 66 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 [13:44:33]wFMCommunicate OK [13:44:33]SAM_PROTO_GetFieldsCounters done [13:44:33]requested_item shift.num is exist - process it [13:44:33]requested_item shift.opened is exist - process it [13:44:33]req_shift_opened [13:44:33]FM_GetShiftState [13:44:33]SAM_PROTO_GetShiftState [13:44:33]wFMCommunicate request_size=4 [13:44:33]MH_SAM_APDU [13:44:33]CAPDU: 80 13 01 00 [13:44:33]Write to MH i2c: E2 08 00 AC 1E 80 13 01 00 00 00 00 00 47 [13:44:33]Write i2c OK [13:44:33]MH_I2C_Read... [13:44:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:33]Read from MH i2c: E2 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: E2 0E 00 [13:44:33]MH_I2C_Read... [13:44:33]Read from MH i2c: E2 0E 00 AC 1E 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CD [13:44:33]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:44:33]wFMCommunicate OK [13:44:33]SAM_PROTO_GetShiftState done [13:44:33]FM_GetShiftState done [13:44:33]req_shift_opened done [13:44:33]requested_item shift.open_date is exist - process it [13:44:33]req_shift_open_date [13:44:33]req_shift_open_date done [13:44:33]produce_requested_data done [13:44:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67658,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [13:44:33]process_action_free print_text [13:44:33]json_value_free [13:44:33]json_value_free done [13:44:33]process_json_proto returns [13:44:33]Send response to host [13:44:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67658,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [13:44:33]free response buf [13:44:33]execute_script done [13:44:33]execute_script returns [13:44:33]free content buf [13:44:33]Sock 9.Close socket [13:44:33]Sock 9.Thread stoped [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:12]accept exits with 7 [13:45:12]New connection [13:45:12]New thread 3067395428 created [13:45:12]Thread 3067538788 joined [13:45:12]Waiting for new connection... [13:45:12] Sock 7.Parse request [13:45:12]Sock 7.Check first char [13:45:12]Sock 7.First char is OK [13:45:12]request: POST /json_proto HTTP/1.0 [13:45:12]Method: POST [13:45:12]URL: /json_proto [13:45:12]Method is POST - this is cgi request [13:45:12]url: /json_proto [13:45:12]query_string will be loaded in cgi processing [13:45:12]execute_cgi json_proto POST (null) [13:45:12]execute_cgi path=json_proto method=POST [13:45:12]POST find Content-Length [13:45:12]Host: 172.17.41.195:8080 [13:45:12]Content-Length: 639 [13:45:12]Content-Type: application/json [13:45:12] [13:45:12]POST finish read [13:45:12]Found Content-Length = 639 [13:45:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507798", "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.000, "sum" : 334.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 334.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:12]execute_script... [13:45: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)507798", "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.000, "sum" : 334.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 334.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:12]POST & json_proto [13:45:12]process_json_proto [13:45:12]json parsed OK: [13:45:12]protocol is kg_v1.0 [13:45:12]action value=close_receipt [13:45:12]process_action close_receipt [13:45:12]cmd_close_receipt [13:45:12]MH_GetDate [13:45:12]Write to MH i2c: F0 00 00 AD 1E BA [13:45:12]Write i2c OK [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: F0 [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: F0 09 00 [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: F0 09 00 AD 1E 00 6C 5F 47 66 FC 21 6F 64 2B [13:45:12]GetLastDocTimeStamp 1715952399 [13:45:12]current date 1715953516 [13:45:12]FM_GetShiftState [13:45:12]SAM_PROTO_GetShiftState [13:45:12]wFMCommunicate request_size=4 [13:45:12]MH_SAM_APDU [13:45:12]CAPDU: 80 13 01 00 [13:45:12]Write to MH i2c: E2 08 00 AE 1E 80 13 01 00 00 00 00 00 49 [13:45:12]Write i2c OK [13:45:12]MH_I2C_Read... [13:45:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:12]Read from MH i2c: E2 [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: E2 0E 00 [13:45:12]MH_I2C_Read... [13:45:12]Read from MH i2c: E2 0E 00 AE 1E 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CF [13:45:12]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:45:12]wFMCommunicate OK [13:45:12]SAM_PROTO_GetShiftState done [13:45:12]FM_GetShiftState done [13:45:12]opened in 1715905068 [13:45:12]opened+sec_in_day 1715991468 [13:45:12]quantity*price = 33400 [13:45:12]sum+1 = 33401 [13:45:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 334.00 НСП 1% : 2.96 НДС 12% : 35.47 Наличными: 334.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 68 17.05.2024 13:45 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67659 ФПД: 119951138261967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T134516&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67659&fm=119951138261967&tin=02508201610067®Number=0000000000091845&sum=33400 [13:45:13]StoreToDocumentArchive [13:45:13]shift 358 fd 67659 [13:45:13]save to /storage/0358/doc_00067659 [13:45:13]save last doc name /storage/0358/doc_00067659 to /storage/kkm_last_doc_name [13:45:13]save OK [13:45:13]Clear old archive folders... [13:45:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:13]tlvbuf is 0160D710 [13:45:13]SAM_PROTO_ClearQueue [13:45:13]wFMCommunicate request_size=4 [13:45:13]MH_SAM_APDU [13:45:13]CAPDU: 80 09 00 00 [13:45:13]Write to MH i2c: E2 08 00 BB 1E 80 09 00 00 00 00 00 00 4B [13:45:13]Write i2c OK [13:45:13]MH_I2C_Read... [13:45:13]Read from MH i2c: E2 [13:45:13]MH_I2C_Read... [13:45:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:13]Read from MH i2c: E2 03 00 [13:45:13]MH_I2C_Read... [13:45:13]Read from MH i2c: E2 03 00 BB 1E 00 90 00 4D [13:45:13]RAPDU: 90 00 [13:45:13]wFMCommunicate OK [13:45:13]SAM_PROTO_ClearQueue done [13:45:13]KKMCreateOFDPacket [13:45:13]OFDProtocolAddRootSTLVToBuf [13:45:13]FM_MakeSignedData [13:45:13]FM_MakeSignedData [13:45:13]SAM_PROTO_SignData [13:45:13]wFMCommunicate request_size=4 [13:45:13]MH_SAM_APDU [13:45:13]CAPDU: 80 0D 01 02 [13:45:13]Write to MH i2c: E2 08 00 BC 1E 80 0D 01 02 00 00 00 00 53 [13:45:13]Write i2c OK [13:45:13]MH_I2C_Read... [13:45:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:13]Read from MH i2c: E2 [13:45:13]MH_I2C_Read... [13:45:13]Read from MH i2c: E2 03 00 [13:45:13]MH_I2C_Read... [13:45:13]Read from MH i2c: E2 03 00 BC 1E 00 90 00 4E [13:45:13]RAPDU: 90 00 [13:45:13]wFMCommunicate OK [13:45:13]wFMCommunicate request_size=255 [13:45:13]MH_SAM_APDU [13:45: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 88 13 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 78 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 0D 00 00 00 00 07 04 06 00 78 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 6C 5F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 6D [13:45:13]Write to MH i2c: E2 02 01 BD 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 88 13 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 78 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 0D 00 00 00 00 07 04 06 00 78 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 6C 5F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 6D 00 00 12 [13:45:13]Write i2c OK [13:45:13]MH_I2C_Read... [13:45:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:14]Read from MH i2c: E2 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 03 00 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 03 00 BD 1E 00 90 00 4F [13:45:14]RAPDU: 90 00 [13:45:14]wFMCommunicate OK [13:45:14]wFMCommunicate request_size=10 [13:45:14]MH_SAM_APDU [13:45:14]CAPDU: 80 0D 02 02 05 18 4C FC 8B CF [13:45:14]Write to MH i2c: E2 0D 00 BE 1E 80 0D 02 02 05 00 18 4C FC 8B CF 00 00 1A [13:45:14]Write i2c OK [13:45:14]MH_I2C_Read... [13:45:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:14]Read from MH i2c: E2 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 03 00 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 03 00 BE 1E 00 90 00 50 [13:45:14]RAPDU: 90 00 [13:45:14]wFMCommunicate OK [13:45:14]wFMCommunicate request_size=4 [13:45:14]MH_SAM_APDU [13:45:14]CAPDU: 80 0D 03 02 [13:45:14]Write to MH i2c: E2 08 00 BF 1E 80 0D 03 02 00 00 00 00 58 [13:45:14]Write i2c OK [13:45:14]MH_I2C_Read... [13:45:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:14]Read from MH i2c: E2 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 0B 00 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 0B 00 BF 1E 00 30 17 28 69 FF 58 67 2D 90 00 1C [13:45:14]RAPDU: 30 17 28 69 FF 58 67 2D 90 00 [13:45:14]wFMCommunicate OK [13:45:14]SAM_PROTO_SignData done [13:45:14]FM_MakeSignedData done [13:45:14]CreateOFDProtocolMessage [13:45:14]wFMCommunicate request_size=4 [13:45:14]MH_SAM_APDU [13:45:14]CAPDU: 80 11 00 00 [13:45:14]Write to MH i2c: E2 08 00 C0 1E 80 11 00 00 00 00 00 00 58 [13:45:14]Write i2c OK [13:45:14]MH_I2C_Read... [13:45:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:14]Read from MH i2c: E2 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 17 00 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: E2 17 00 C0 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AE [13:45:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:45:14]wFMCommunicate OK [13:45:14]CreateOFDProtocolMessage done [13:45:14]OFDSenderStorePacket 67659 [13:45:14]StoreOFDPacket docnum=67659 [13:45: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 F5 F4 07 01 EF 24 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 88 13 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 78 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 0D 00 00 00 00 07 04 06 00 78 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 6C 5F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 6D 18 4C FC 8B CF 30 17 28 69 FF 58 67 2D [13:45:14]CheckFolder [13:45:14]dirname=/storage/ofd_packets [13:45:14]CheckFolder done [13:45:14]ProducePacketName [13:45:14]name=ofd_packets/00067659 [13:45:14]NVStorageSaveData ofd_packets/00067659 [13:45:14]File name is /storage/ofd_packets/00067659 [13:45:14]Write 301 bytes [13:45:14]NVStorageSaveData done [13:45:14]OFDSenderStorePacket done [13:45:14]KKMCreateOFDPacket done [13:45:14]NVStorageSaveData kkm_last_timestamp [13:45:14]File name is /storage/kkm_last_timestamp [13:45:14]Write 4 bytes [13:45:14]NVStorageSaveData done [13:45:14]ExternCall_PrintAddStr [13:45:14]wPrintStart [13:45:14]Write to MH i2c: 01 00 00 C1 1E DF [13:45:14]Write i2c OK [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: 01 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: 01 07 00 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: 01 07 00 C1 1E 00 00 00 00 00 FF 0F F4 [13:45:14]RasterBufferAndPrint [13:45:14]line Счет N : (1)507798 [13:45:14]line ИНН: 02508201610067 [13:45:14]line Контрольно-Кассовый Чек [13:45:14]line ПРОДАЖА [13:45:14]line ТРК (МРК, ГНК) : 13 [13:45:14]line Товар: 2710124130 [13:45:14]line Аи-92-К-5 [13:45:14]line 5.000 * 66.80 [13:45:14]line = 334.00 [13:45:14]line НДС 12% НСП 1% [13:45:14]line > о реализуемом товаре [13:45:14]line ИТОГО: 334.00 [13:45:14]line НСП 1% : 2.96 [13:45:14]line НДС 12% : 35.47 [13:45:14]line Наличными: 334.00 [13:45:14]line Безнал.: 0.00 [13:45:14]line Место: АЗС № 91 "Партнер Нефть" [13:45:14]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:45:14]line СНО: Общий режим [13:45:14]line Чек 68 17.05.2024 13:45 [13:45:14]line Смена: 358 ФФД: 1.0 [13:45:14]line ЗНМ: 0300000119 [13:45:14]line РНМ: 0000000000091845 [13:45:14]line Версия ККМ: 001 [13:45:14]line ФМ: 0000000000871829 [13:45:14]line ФД: 67659 [13:45:14]line ФПД: 119951138261967 [13:45:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T134516&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67659&fm=119951138261967&tin=02508201610067®Number=0000000000091845&sum=33400 [13:45:14]OFD Sender: Processing packet 67659 [packets to send 35, broken 34] [13:45:14]ProducePacketName [13:45:14]name=ofd_packets/00067659 [13:45:14]OFD Sender: To server: pG, [13:45:14]CommunicateWithHost lk.salyk.kg:30040 [13:45:14]ConnectInit lk.salyk.kg [13:45:14]written 0, free lines is 4095 [13:45:14]Connected sock=10 [13:45: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 F4 07 01 EF 24 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 88 13 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 78 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 0D 00 00 00 00 07 04 06 00 78 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 6C 5F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 6D 18 4C FC 8B CF 30 17 28 69 FF 58 67 2D [13:45:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 D6 9A 47 00 03 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 4B 08 01 00 F4 03 04 00 44 07 47 66 B6 04 01 00 00 07 4A 69 3C 3A CB 17 B0 [13:45:14]CommunicateWithHost err = 0 [13:45:14]CheckOFDResponse [13:45:14]1017 (14) - 77093643461234 [13:45:14]1041 (16) - 0000000000871829 [13:45:14]1040 (4) - 67659 [13:45:14]1012 (4) - 17.05.2024 07:29 [13:45:14]1206 (1) - 0 [13:45:14]OFD Sender: Remove packet 67659 [13:45:14]ProducePacketName [13:45:14]name=ofd_packets/00067659 [13:45:14]NVStorageDeleteData [13:45:14]Write to MH i2c: 01 00 00 E8 1E 06 [13:45:14]Write i2c OK [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: 01 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: 01 07 00 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: 01 07 00 E8 1E 00 00 00 00 00 04 0D 1E [13:45:14]RasterBufferAndPrint [13:45:14]line [13:45:14]line [13:45:14]line [13:45:14]line [13:45:14]line [13:45:14]written 0, free lines is 3338 [13:45:14]MH_Cut [13:45:14]Write to MH i2c: D1 01 00 EF 1E 01 DF [13:45:14]Write i2c OK [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: D1 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: D1 01 00 [13:45:14]MH_I2C_Read... [13:45:14]Read from MH i2c: D1 01 00 EF 1E 00 DE [13:45:14]Write to MH i2c: 01 00 00 F0 1E 0E [13:45:14]Write i2c OK [13:45:14]MH_I2C_Read... [13:45:15]OFD Sender: No OFD packet to send [13:45:15]*** Cut start [13:45:15]*** Purtial cut [13:45:15]*** CUTSNS_PIN = 0 [13:45:15]*** Stage 1: CUTSNS_PIN = 1 [13:45:17]Read from MH i2c: 01 [13:45:17]MH_I2C_Read... [13:45:17]*** Stop cut motor [13:45:17]*** Cut end [13:45:17]Read from MH i2c: 01 07 00 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: 01 07 00 F0 1E 00 00 00 00 00 FF 0F 23 [13:45:17]process_action close_receipt done [13:45:17]requested_data is exist [13:45:17]produce_requested_data [13:45:17]requested_item fm.sn is exist - process it [13:45:17]wFMCommunicate request_size=4 [13:45:17]MH_SAM_APDU [13:45:17]CAPDU: 80 11 00 00 [13:45:17]Write to MH i2c: E2 08 00 F1 1E 80 11 00 00 00 00 00 00 89 [13:45:17]Write i2c OK [13:45:17]MH_I2C_Read... [13:45:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:17]Read from MH i2c: E2 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: E2 17 00 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: E2 17 00 F1 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DF [13: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 [13:45:17]wFMCommunicate OK [13:45:17]requested_item fd.num is exist - process it [13:45:17]SAM_PROTO_GetFieldsCounters [13:45:17]wFMCommunicate request_size=4 [13:45:17]MH_SAM_APDU [13:45:17]CAPDU: 80 13 00 00 [13:45:17]Write to MH i2c: E2 08 00 F2 1E 80 13 00 00 00 00 00 00 8C [13:45:17]Write i2c OK [13:45:17]MH_I2C_Read... [13:45:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:17]Read from MH i2c: E2 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: E2 62 00 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: E2 62 00 F2 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 4B 08 01 00 0E 04 04 00 66 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 39 [13: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 4B 08 01 00 0E 04 04 00 66 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 [13:45:17]wFMCommunicate OK [13:45:17]SAM_PROTO_GetFieldsCounters done [13:45:17]requested_item shift.num is exist - process it [13:45:17]requested_item shift.opened is exist - process it [13:45:17]req_shift_opened [13:45:17]FM_GetShiftState [13:45:17]SAM_PROTO_GetShiftState [13:45:17]wFMCommunicate request_size=4 [13:45:17]MH_SAM_APDU [13:45:17]CAPDU: 80 13 01 00 [13:45:17]Write to MH i2c: E2 08 00 F3 1E 80 13 01 00 00 00 00 00 8E [13:45:17]Write i2c OK [13:45:17]MH_I2C_Read... [13:45:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:17]Read from MH i2c: E2 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: E2 0E 00 [13:45:17]MH_I2C_Read... [13:45:17]Read from MH i2c: E2 0E 00 F3 1E 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 14 [13:45:17]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:45:17]wFMCommunicate OK [13:45:17]SAM_PROTO_GetShiftState done [13:45:17]FM_GetShiftState done [13:45:17]req_shift_opened done [13:45:17]requested_item shift.open_date is exist - process it [13:45:17]req_shift_open_date [13:45:17]req_shift_open_date done [13:45:17]produce_requested_data done [13:45:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67659,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [13:45:17]process_action_free close_receipt [13:45:17]json_value_free [13:45:17]json_value_free done [13:45:17]process_json_proto returns [13:45:17]Send response to host [13:45:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67659,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [13:45:17]free response buf [13:45:17]execute_script done [13:45:17]execute_script returns [13:45:17]free content buf [13:45:17]Sock 7.Close socket [13:45:17]Sock 7.Thread stoped [13:45:20]OFD Sender: No OFD packet to send [13:45:25]OFD Sender: No OFD packet to send [13:45:30]OFD Sender: No OFD packet to send [13:45:35]OFD Sender: No OFD packet to send [13:45:40]OFD Sender: No OFD packet to send [13:45:45]OFD Sender: No OFD packet to send [13:45:50]OFD Sender: No OFD packet to send [13:45:55]OFD Sender: No OFD packet to send [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:01]accept exits with 9 [13:47:01]New connection [13:47:01]New thread 3067538788 created [13:47:01]Thread 3067395428 joined [13:47:01]Waiting for new connection... [13:47:01] Sock 9.Parse request [13:47:01]Sock 9.Check first char [13:47:01]Sock 9.First char is OK [13:47:01]request: POST /json_proto HTTP/1.0 [13:47:01]Method: POST [13:47:01]URL: /json_proto [13:47:01]Method is POST - this is cgi request [13:47:01]url: /json_proto [13:47:01]query_string will be loaded in cgi processing [13:47:01]execute_cgi json_proto POST (null) [13:47:01]execute_cgi path=json_proto method=POST [13:47:01]POST find Content-Length [13:47:01]Host: 172.17.41.195:8080 [13:47:01]Content-Length: 1180 [13:47:01]Content-Type: application/json [13:47:01] [13:47:01]POST finish read [13:47:01]Found Content-Length = 1180 [13:47: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507796\u000A17.05.2024 13:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 120.490 x 74.70\u000A\u0418\u0422\u041E\u0413: 9000.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:01]execute_script... [13:47: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507796\u000A17.05.2024 13:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 120.490 x 74.70\u000A\u0418\u0422\u041E\u0413: 9000.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:01]POST & json_proto [13:47:01]process_json_proto [13:47:01]json parsed OK: [13:47:01]protocol is kg_v1.0 [13:47:01]action value=print_text [13:47:01]process_action print_text [13:47:01]cmd_print_text [13:47:01]ExternCall_PrintAddStr [13:47:01]wPrintStart [13:47:01]Write to MH i2c: 01 00 00 F4 1E 12 [13:47:01]Write i2c OK [13:47:01]MH_I2C_Read... [13:47:01]Read from MH i2c: 01 [13:47:01]MH_I2C_Read... [13:47:01]Read from MH i2c: 01 07 00 [13:47:01]MH_I2C_Read... [13:47:01]Read from MH i2c: 01 07 00 F4 1E 00 00 00 00 00 FF 0F 27 [13:47:01]RasterBufferAndPrint [13:47:01]line *****ТОВАРНЫЙ ЧЕК***** [13:47:01]line АЗС-91 [13:47:01]line Партнер нефть [13:47:01]line 02508201610067 [13:47:01]line Кассир : Адишов И. [13:47:01]line Счет N : (1)507796 [13:47:01]line 17.05.2024 13:29 [13:47:01]line ПРОДАЖА [13:47:01]line ТРК (МРК, ГНК): 21 [13:47:01]line Вид ГСМ : 2710194210 [13:47:01]line ДТ-К-5 [13:47:01]line 120.490 x 74.70 [13:47:01]line ИТОГ: 9000.60 [13:47:01]line Тип оплаты: Талоны: Топливная Карта [13:47:01]line 02750 [13:47:01]line ______________________ [13:47:01]line (подпись) [13:47:01]written 0, free lines is 4095 [13:47:01]Write to MH i2c: 01 00 00 08 1F 27 [13:47:01]Write i2c OK [13:47:01]MH_I2C_Read... [13:47:01]Read from MH i2c: 01 [13:47:01]MH_I2C_Read... [13:47:01]Read from MH i2c: 01 07 00 [13:47:01]MH_I2C_Read... [13:47:01]Read from MH i2c: 01 07 00 08 1F 00 00 00 00 00 0D 0E 49 [13:47:01]RasterBufferAndPrint [13:47:01]line [13:47:01]line [13:47:01]line [13:47:01]line [13:47:01]line [13:47:01]written 0, free lines is 3599 [13:47:01]MH_Cut [13:47:01]Write to MH i2c: D1 01 00 0F 1F 01 00 [13:47:01]Write i2c OK [13:47:01]MH_I2C_Read... [13:47:01]Read from MH i2c: D1 [13:47:01]MH_I2C_Read... [13:47:01]Read from MH i2c: D1 01 00 [13:47:01]MH_I2C_Read... [13:47:01]Read from MH i2c: D1 01 00 0F 1F 00 FF [13:47:01]Write to MH i2c: 01 00 00 10 1F 2F [13:47:01]Write i2c OK [13:47:01]MH_I2C_Read... [13:47:01]*** Cut start [13:47:01]*** Purtial cut [13:47:01]*** Stage 1: CUTSNS_PIN = 1 [13:47:02]Read from MH i2c: 01 [13:47:02]MH_I2C_Read... [13:47:02]Read from MH i2c: 01 07 00 [13:47:02]MH_I2C_Read... [13:47:02]*** Stop cut motor [13:47:02]*** Cut end [13:47:02]Read from MH i2c: 01 07 00 10 1F 00 00 00 00 00 FF 0F 44 [13:47:02]process_action print_text done [13:47:02]requested_data is exist [13:47:02]produce_requested_data [13:47:02]requested_item fm.sn is exist - process it [13:47:02]wFMCommunicate request_size=4 [13:47:02]MH_SAM_APDU [13:47:02]CAPDU: 80 11 00 00 [13:47:02]Write to MH i2c: E2 08 00 11 1F 80 11 00 00 00 00 00 00 AA [13:47:02]Write i2c OK [13:47:02]MH_I2C_Read... [13:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:02]Read from MH i2c: E2 [13:47:02]MH_I2C_Read... [13:47:02]Read from MH i2c: E2 17 00 [13:47:02]MH_I2C_Read... [13:47:02]Read from MH i2c: E2 17 00 11 1F 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:47: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:47:02]wFMCommunicate OK [13:47:02]requested_item fd.num is exist - process it [13:47:02]SAM_PROTO_GetFieldsCounters [13:47:02]wFMCommunicate request_size=4 [13:47:02]MH_SAM_APDU [13:47:02]CAPDU: 80 13 00 00 [13:47:02]Write to MH i2c: E2 08 00 12 1F 80 13 00 00 00 00 00 00 AD [13:47:02]Write i2c OK [13:47:02]MH_I2C_Read... [13:47:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:02]Read from MH i2c: E2 [13:47:02]MH_I2C_Read... [13:47:02]Read from MH i2c: E2 62 00 [13:47:02]MH_I2C_Read... [13:47:02]Read from MH i2c: E2 62 00 12 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 4B 08 01 00 0E 04 04 00 66 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 5A [13:47: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 4B 08 01 00 0E 04 04 00 66 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 [13:47:02]wFMCommunicate OK [13:47:02]SAM_PROTO_GetFieldsCounters done [13:47:02]requested_item shift.num is exist - process it [13:47:02]requested_item shift.opened is exist - process it [13:47:02]req_shift_opened [13:47:02]FM_GetShiftState [13:47:02]SAM_PROTO_GetShiftState [13:47:02]wFMCommunicate request_size=4 [13:47:02]MH_SAM_APDU [13:47:02]CAPDU: 80 13 01 00 [13:47:02]Write to MH i2c: E2 08 00 13 1F 80 13 01 00 00 00 00 00 AF [13:47:02]Write i2c OK [13:47:02]MH_I2C_Read... [13:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:02]Read from MH i2c: E2 [13:47:02]MH_I2C_Read... [13:47:02]Read from MH i2c: E2 0E 00 [13:47:02]MH_I2C_Read... [13:47:02]Read from MH i2c: E2 0E 00 13 1F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 35 [13:47:02]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:47:02]wFMCommunicate OK [13:47:02]SAM_PROTO_GetShiftState done [13:47:02]FM_GetShiftState done [13:47:02]req_shift_opened done [13:47:02]requested_item shift.open_date is exist - process it [13:47:02]req_shift_open_date [13:47:02]req_shift_open_date done [13:47:02]produce_requested_data done [13:47:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67659,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [13:47:02]process_action_free print_text [13:47:02]json_value_free [13:47:02]json_value_free done [13:47:02]process_json_proto returns [13:47:02]Send response to host [13:47:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67659,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [13:47:02]free response buf [13:47:02]execute_script done [13:47:02]execute_script returns [13:47:02]free content buf [13:47:02]Sock 9.Close socket [13:47:02]Sock 9.Thread stoped [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:28]accept exits with 7 [13:48:28]New connection [13:48:28]New thread 3067395428 created [13:48:28]Thread 3067538788 joined [13:48:28]Waiting for new connection... [13:48:28] Sock 7.Parse request [13:48:28]Sock 7.Check first char [13:48:28]Sock 7.First char is OK [13:48:28]request: POST /json_proto HTTP/1.0 [13:48:28]Method: POST [13:48:28]URL: /json_proto [13:48:28]Method is POST - this is cgi request [13:48:28]url: /json_proto [13:48:28]query_string will be loaded in cgi processing [13:48:28]execute_cgi json_proto POST (null) [13:48:28]execute_cgi path=json_proto method=POST [13:48:28]POST find Content-Length [13:48:28]Host: 172.17.41.195:8080 [13:48:28]Content-Length: 679 [13:48:28]Content-Type: application/json [13:48:28] [13:48:28]POST finish read [13:48:28]Found Content-Length = 679 [13:48:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507800", "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" ] } } [13:48:28]execute_script... [13:48: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)507800", "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" ] } } [13:48:28]POST & json_proto [13:48:28]process_json_proto [13:48:28]json parsed OK: [13:48:28]protocol is kg_v1.0 [13:48:28]action value=close_receipt [13:48:28]process_action close_receipt [13:48:28]cmd_close_receipt [13:48:28]MH_GetDate [13:48:28]Write to MH i2c: F0 00 00 14 1F 22 [13:48:28]Write i2c OK [13:48:28]MH_I2C_Read... [13:48:28]Read from MH i2c: F0 [13:48:28]MH_I2C_Read... [13:48:28]Read from MH i2c: F0 09 00 [13:48:28]MH_I2C_Read... [13:48:28]Read from MH i2c: F0 09 00 14 1F 00 2F 60 47 66 FC 21 6F 64 57 [13:48:28]GetLastDocTimeStamp 1715953516 [13:48:28]current date 1715953711 [13:48:28]FM_GetShiftState [13:48:28]SAM_PROTO_GetShiftState [13:48:28]wFMCommunicate request_size=4 [13:48:28]MH_SAM_APDU [13:48:28]CAPDU: 80 13 01 00 [13:48:28]Write to MH i2c: E2 08 00 15 1F 80 13 01 00 00 00 00 00 B1 [13:48:28]Write i2c OK [13:48:28]MH_I2C_Read... [13:48:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:28]Read from MH i2c: E2 [13:48:28]MH_I2C_Read... [13:48:28]Read from MH i2c: E2 0E 00 [13:48:28]MH_I2C_Read... [13:48:28]Read from MH i2c: E2 0E 00 15 1F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 37 [13:48:28]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:48:28]wFMCommunicate OK [13:48:28]SAM_PROTO_GetShiftState done [13:48:28]FM_GetShiftState done [13:48:28]opened in 1715905068 [13:48:28]opened+sec_in_day 1715991468 [13:48:28]quantity*price = 150072 [13:48:28]sum+1 = 150073 [13:48:28]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 СНО: Общий режим Чек 69 17.05.2024 13:48 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67660 ФПД: 227407904795519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T134831&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67660&fm=227407904795519&tin=02508201610067®Number=0000000000091845&sum=150000 [13:48:29]StoreToDocumentArchive [13:48:29]shift 358 fd 67660 [13:48:29]save to /storage/0358/doc_00067660 [13:48:29]save last doc name /storage/0358/doc_00067660 to /storage/kkm_last_doc_name [13:48:29]save OK [13:48:29]Clear old archive folders... [13:48:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:48:29]tlvbuf is 015BE2D0 [13:48:29]SAM_PROTO_ClearQueue [13:48:29]wFMCommunicate request_size=4 [13:48:29]MH_SAM_APDU [13:48:29]CAPDU: 80 09 00 00 [13:48:29]Write to MH i2c: E2 08 00 22 1F 80 09 00 00 00 00 00 00 B3 [13:48:29]Write i2c OK [13:48:29]MH_I2C_Read... [13:48:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:29]Read from MH i2c: E2 [13:48:29]MH_I2C_Read... [13:48:29]Read from MH i2c: E2 03 00 [13:48:29]MH_I2C_Read... [13:48:29]Read from MH i2c: E2 03 00 22 1F 00 90 00 B5 [13:48:29]RAPDU: 90 00 [13:48:29]wFMCommunicate OK [13:48:29]SAM_PROTO_ClearQueue done [13:48:29]KKMCreateOFDPacket [13:48:29]OFDProtocolAddRootSTLVToBuf [13:48:29]FM_MakeSignedData [13:48:29]FM_MakeSignedData [13:48:29]SAM_PROTO_SignData [13:48:29]wFMCommunicate request_size=4 [13:48:29]MH_SAM_APDU [13:48:29]CAPDU: 80 0D 01 02 [13:48:29]Write to MH i2c: E2 08 00 23 1F 80 0D 01 02 00 00 00 00 BB [13:48:29]Write i2c OK [13:48:29]MH_I2C_Read... [13:48:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:29]Read from MH i2c: E2 [13:48:29]MH_I2C_Read... [13:48:29]Read from MH i2c: E2 03 00 [13:48:29]MH_I2C_Read... [13:48:29]Read from MH i2c: E2 03 00 23 1F 00 90 00 B6 [13:48:29]RAPDU: 90 00 [13:48:29]wFMCommunicate OK [13:48:29]wFMCommunicate request_size=255 [13:48:29]MH_SAM_APDU [13:48: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 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 45 00 00 00 F4 03 04 00 2F 60 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CE D3 87 62 [13:48:29]Write to MH i2c: E2 02 01 24 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 45 00 00 00 F4 03 04 00 2F 60 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CE D3 87 62 00 00 A5 [13:48:29]Write i2c OK [13:48:29]MH_I2C_Read... [13:48:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:29]Read from MH i2c: E2 [13:48:29]MH_I2C_Read... [13:48:29]Read from MH i2c: E2 03 00 [13:48:29]MH_I2C_Read... [13:48:29]Read from MH i2c: E2 03 00 24 1F 00 90 00 B7 [13:48:29]RAPDU: 90 00 [13:48:29]wFMCommunicate OK [13:48:29]wFMCommunicate request_size=7 [13:48:29]MH_SAM_APDU [13:48:29]CAPDU: 80 0D 02 02 02 6B 7F [13:48:29]Write to MH i2c: E2 0A 00 25 1F 80 0D 02 02 02 00 6B 7F 00 00 AC [13:48:29]Write i2c OK [13:48:29]MH_I2C_Read... [13:48:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:29]Read from MH i2c: E2 [13:48:29]MH_I2C_Read... [13:48:29]Read from MH i2c: E2 03 00 [13:48:29]MH_I2C_Read... [13:48:29]Read from MH i2c: E2 03 00 25 1F 00 90 00 B8 [13:48:29]RAPDU: 90 00 [13:48:29]wFMCommunicate OK [13:48:29]wFMCommunicate request_size=4 [13:48:29]MH_SAM_APDU [13:48:29]CAPDU: 80 0D 03 02 [13:48:29]Write to MH i2c: E2 08 00 26 1F 80 0D 03 02 00 00 00 00 C0 [13:48:29]Write i2c OK [13:48:29]MH_I2C_Read... [13:48:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:29]Read from MH i2c: E2 [13:48:29]MH_I2C_Read... [13:48:29]Read from MH i2c: E2 0B 00 [13:48:29]MH_I2C_Read... [13:48:29]Read from MH i2c: E2 0B 00 26 1F 00 E2 B1 42 A0 F5 BD 10 14 90 00 0C [13:48:29]RAPDU: E2 B1 42 A0 F5 BD 10 14 90 00 [13:48:29]wFMCommunicate OK [13:48:29]SAM_PROTO_SignData done [13:48:29]FM_MakeSignedData done [13:48:29]CreateOFDProtocolMessage [13:48:29]wFMCommunicate request_size=4 [13:48:29]MH_SAM_APDU [13:48:29]CAPDU: 80 11 00 00 [13:48:29]Write to MH i2c: E2 08 00 27 1F 80 11 00 00 00 00 00 00 C0 [13:48:29]Write i2c OK [13:48:29]MH_I2C_Read... [13:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:29]Read from MH i2c: E2 [13:48:29]MH_I2C_Read... [13:48:29]Read from MH i2c: E2 17 00 [13:48:29]MH_I2C_Read... [13:48:29]Read from MH i2c: E2 17 00 27 1F 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:48: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:48:29]wFMCommunicate OK [13:48:29]CreateOFDProtocolMessage done [13:48:29]OFDSenderStorePacket 67660 [13:48:29]StoreOFDPacket docnum=67660 [13:48: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 36 BF 04 01 CC 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 45 00 00 00 F4 03 04 00 2F 60 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CE D3 87 62 6B 7F E2 B1 42 A0 F5 BD 10 14 [13:48:29]CheckFolder [13:48:29]dirname=/storage/ofd_packets [13:48:29]CheckFolder done [13:48:29]ProducePacketName [13:48:29]name=ofd_packets/00067660 [13:48:29]NVStorageSaveData ofd_packets/00067660 [13:48:29]File name is /storage/ofd_packets/00067660 [13:48:29]Write 298 bytes [13:48:29]NVStorageSaveData done [13:48:29]OFDSenderStorePacket done [13:48:29]KKMCreateOFDPacket done [13:48:29]NVStorageSaveData kkm_last_timestamp [13:48:29]File name is /storage/kkm_last_timestamp [13:48:29]Write 4 bytes [13:48:29]NVStorageSaveData done [13:48:29]ExternCall_PrintAddStr [13:48:29]wPrintStart [13:48:29]Write to MH i2c: 01 00 00 28 1F 47 [13:48:29]Write i2c OK [13:48:29]MH_I2C_Read... [13:48:29]Read from MH i2c: 01 [13:48:29]MH_I2C_Read... [13:48:29]Read from MH i2c: 01 07 00 [13:48:29]MH_I2C_Read... [13:48:29]Read from MH i2c: 01 07 00 28 1F 00 00 00 00 00 FF 0F 5C [13:48:29]RasterBufferAndPrint [13:48:29]line Счет N : (1)507800 [13:48:29]line ИНН: 02508201610067 [13:48:29]line Контрольно-Кассовый Чек [13:48:29]line ПРОДАЖА [13:48:29]line ТРК (МРК, ГНК) : 41 [13:48:29]line Товар: 2710194210 [13:48:29]line ДТ-К-5 [13:48:29]line 20.090 * 74.70 [13:48:29]line = 1500.72 [13:48:29]line НДС 12% НСП 1% [13:48:29]line > о реализуемом товаре [13:48:29]line ОКРУГЛЕНИЕ: -0.72 [13:48:29]line ИТОГО: 1500.00 [13:48:29]line Внесено: 1500.00 [13:48:29]line СДАЧА: 0.00 [13:48:29]line НСП 1% : 13.28 [13:48:29]line НДС 12% : 159.37 [13:48:29]line Наличными: 1500.00 [13:48:29]line Безнал.: 0.00 [13:48:29]line Место: АЗС № 91 "Партнер Нефть" [13:48:29]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:48:29]line СНО: Общий режим [13:48:29]line Чек 69 17.05.2024 13:48 [13:48:29]line Смена: 358 ФФД: 1.0 [13:48:29]line ЗНМ: 0300000119 [13:48:29]line РНМ: 0000000000091845 [13:48:29]line Версия ККМ: 001 [13:48:29]line ФМ: 0000000000871829 [13:48:29]line ФД: 67660 [13:48:29]line ФПД: 227407904795519 [13:48:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T134831&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67660&fm=227407904795519&tin=02508201610067®Number=0000000000091845&sum=150000 [13:48:30]OFD Sender: Processing packet 67660 [packets to send 35, broken 34] [13:48:30]ProducePacketName [13:48:30]name=ofd_packets/00067660 [13:48:30]OFD Sender: To server: pG, [13:48:30]CommunicateWithHost lk.salyk.kg:30040 [13:48:30]ConnectInit lk.salyk.kg [13:48:30]written 0, free lines is 4095 [13:48:30]Connected sock=10 [13:48: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 36 BF 04 01 CC 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 45 00 00 00 F4 03 04 00 2F 60 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CE D3 87 62 6B 7F E2 B1 42 A0 F5 BD 10 14 [13:48: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 7D 4C 47 00 03 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 4C 08 01 00 F4 03 04 00 07 08 47 66 B6 04 01 00 00 1E E0 53 AF DE 15 B7 9D [13:48:30]CommunicateWithHost err = 0 [13:48:30]CheckOFDResponse [13:48:30]1017 (14) - 77093643461234 [13:48:30]1041 (16) - 0000000000871829 [13:48:30]1040 (4) - 67660 [13:48:30]1012 (4) - 17.05.2024 07:32 [13:48:30]1206 (1) - 0 [13:48:30]OFD Sender: Remove packet 67660 [13:48:30]ProducePacketName [13:48:30]name=ofd_packets/00067660 [13:48:30]NVStorageDeleteData [13:48:30]Write to MH i2c: 01 00 00 52 1F 71 [13:48:30]Write i2c OK [13:48:30]MH_I2C_Read... [13:48:30]Read from MH i2c: 01 [13:48:30]MH_I2C_Read... [13:48:30]Read from MH i2c: 01 07 00 [13:48:30]MH_I2C_Read... [13:48:30]Read from MH i2c: 01 07 00 52 1F 00 00 00 00 00 C3 0C 47 [13:48:30]RasterBufferAndPrint [13:48:30]line [13:48:30]line [13:48:30]line [13:48:30]line [13:48:30]line [13:48:30]written 0, free lines is 3275 [13:48:30]MH_Cut [13:48:30]Write to MH i2c: D1 01 00 59 1F 01 4A [13:48:30]Write i2c OK [13:48:30]MH_I2C_Read... [13:48:30]Read from MH i2c: D1 [13:48:30]MH_I2C_Read... [13:48:30]Read from MH i2c: D1 01 00 [13:48:30]MH_I2C_Read... [13:48:30]Read from MH i2c: D1 01 00 59 1F 00 49 [13:48:30]Write to MH i2c: 01 00 00 5A 1F 79 [13:48:30]Write i2c OK [13:48:30]MH_I2C_Read... [13:48:31]OFD Sender: No OFD packet to send [13:48:31]*** Cut start [13:48:31]*** Purtial cut [13:48:31]*** CUTSNS_PIN = 0 [13:48:31]*** Stage 1: CUTSNS_PIN = 1 [13:48:33]Read from MH i2c: 01 [13:48:33]MH_I2C_Read... [13:48:33]*** Stop cut motor [13:48:33]*** Cut end [13:48:33]Read from MH i2c: 01 07 00 [13:48:33]MH_I2C_Read... [13:48:33]Read from MH i2c: 01 07 00 5A 1F 00 00 00 00 00 FF 0F 8E [13:48:33]process_action close_receipt done [13:48:33]requested_data is exist [13:48:33]produce_requested_data [13:48:33]requested_item fm.sn is exist - process it [13:48:33]wFMCommunicate request_size=4 [13:48:33]MH_SAM_APDU [13:48:33]CAPDU: 80 11 00 00 [13:48:33]Write to MH i2c: E2 08 00 5B 1F 80 11 00 00 00 00 00 00 F4 [13:48:33]Write i2c OK [13:48:33]MH_I2C_Read... [13:48:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:33]Read from MH i2c: E2 [13:48:33]MH_I2C_Read... [13:48:33]Read from MH i2c: E2 17 00 [13:48:33]MH_I2C_Read... [13:48:33]Read from MH i2c: E2 17 00 5B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4A [13:48: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:48:33]wFMCommunicate OK [13:48:33]requested_item fd.num is exist - process it [13:48:33]SAM_PROTO_GetFieldsCounters [13:48:33]wFMCommunicate request_size=4 [13:48:33]MH_SAM_APDU [13:48:33]CAPDU: 80 13 00 00 [13:48:33]Write to MH i2c: E2 08 00 5C 1F 80 13 00 00 00 00 00 00 F7 [13:48:33]Write i2c OK [13:48:33]MH_I2C_Read... [13:48:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:33]Read from MH i2c: E2 [13:48:33]MH_I2C_Read... [13:48:33]Read from MH i2c: E2 62 00 [13:48:33]MH_I2C_Read... [13:48:33]Read from MH i2c: E2 62 00 5C 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 4C 08 01 00 0E 04 04 00 66 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 A8 [13:48: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 4C 08 01 00 0E 04 04 00 66 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 [13:48:33]wFMCommunicate OK [13:48:33]SAM_PROTO_GetFieldsCounters done [13:48:33]requested_item shift.num is exist - process it [13:48:33]requested_item shift.opened is exist - process it [13:48:33]req_shift_opened [13:48:33]FM_GetShiftState [13:48:33]SAM_PROTO_GetShiftState [13:48:33]wFMCommunicate request_size=4 [13:48:33]MH_SAM_APDU [13:48:33]CAPDU: 80 13 01 00 [13:48:33]Write to MH i2c: E2 08 00 5D 1F 80 13 01 00 00 00 00 00 F9 [13:48:33]Write i2c OK [13:48:33]MH_I2C_Read... [13:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:33]Read from MH i2c: E2 [13:48:33]MH_I2C_Read... [13:48:33]Read from MH i2c: E2 0E 00 [13:48:33]MH_I2C_Read... [13:48:33]Read from MH i2c: E2 0E 00 5D 1F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 7F [13:48:33]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:48:33]wFMCommunicate OK [13:48:33]SAM_PROTO_GetShiftState done [13:48:33]FM_GetShiftState done [13:48:33]req_shift_opened done [13:48:33]requested_item shift.open_date is exist - process it [13:48:33]req_shift_open_date [13:48:33]req_shift_open_date done [13:48:33]produce_requested_data done [13:48:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67660,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [13:48:33]process_action_free close_receipt [13:48:33]json_value_free [13:48:33]json_value_free done [13:48:33]process_json_proto returns [13:48:33]Send response to host [13:48:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67660,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [13:48:33]free response buf [13:48:33]execute_script done [13:48:33]execute_script returns [13:48:33]free content buf [13:48:33]Sock 7.Close socket [13:48:33]Sock 7.Thread stoped [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:49:58]accept exits with 9 [13:49:58]New connection [13:49:58]New thread 3067538788 created [13:49:58]Thread 3067395428 joined [13:49:58]Waiting for new connection... [13:49:58] Sock 9.Parse request [13:49:58]Sock 9.Check first char [13:49:58]Sock 9.First char is OK [13:49:58]request: POST /json_proto HTTP/1.0 [13:49:58]Method: POST [13:49:58]URL: /json_proto [13:49:58]Method is POST - this is cgi request [13:49:58]url: /json_proto [13:49:58]query_string will be loaded in cgi processing [13:49:58]execute_cgi json_proto POST (null) [13:49:58]execute_cgi path=json_proto method=POST [13:49:58]POST find Content-Length [13:49:58]Host: 172.17.41.195:8080 [13:49:58]Content-Length: 1179 [13:49:58]Content-Type: application/json [13:49:58] [13:49:58]POST finish read [13:49:58]Found Content-Length = 1179 [13:49: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507799\u000A17.05.2024 13: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 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" ] } } [13:49:58]execute_script... [13:49: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507799\u000A17.05.2024 13: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 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" ] } } [13:49:58]POST & json_proto [13:49:58]process_json_proto [13:49:58]json parsed OK: [13:49:58]protocol is kg_v1.0 [13:49:58]action value=print_text [13:49:58]process_action print_text [13:49:58]cmd_print_text [13:49:58]ExternCall_PrintAddStr [13:49:58]wPrintStart [13:49:58]Write to MH i2c: 01 00 00 5E 1F 7D [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: 01 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: 01 07 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: 01 07 00 5E 1F 00 00 00 00 00 FF 0F 92 [13:49:58]RasterBufferAndPrint [13:49:58]line *****ТОВАРНЫЙ ЧЕК***** [13:49:58]line АЗС-91 [13:49:58]line Партнер нефть [13:49:58]line 02508201610067 [13:49:58]line Кассир : Адишов И. [13:49:58]line Счет N : (1)507799 [13:49:58]line 17.05.2024 13:32 [13:49:58]line ПРОДАЖА [13:49:58]line ТРК (МРК, ГНК): 11 [13:49:58]line Вид ГСМ : 2710194210 [13:49:58]line ДТ-К-5 [13:49:58]line 40.000 x 74.70 [13:49:58]line ИТОГ: 2988.00 [13:49:58]line Тип оплаты: Талоны: Топливная Карта [13:49:58]line 02750 [13:49:58]line ______________________ [13:49:58]line (подпись) [13:49:58]written 0, free lines is 4095 [13:49:58]Write to MH i2c: 01 00 00 72 1F 91 [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: 01 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: 01 07 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: 01 07 00 72 1F 00 00 00 00 00 0D 0E B3 [13:49:58]RasterBufferAndPrint [13:49:58]line [13:49:58]line [13:49:58]line [13:49:58]line [13:49:58]line [13:49:58]written 0, free lines is 3598 [13:49:58]MH_Cut [13:49:58]Write to MH i2c: D1 01 00 79 1F 01 6A [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: D1 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: D1 01 00 [13:49:58]MH_I2C_Read... [13:49:58]Read from MH i2c: D1 01 00 79 1F 00 69 [13:49:58]Write to MH i2c: 01 00 00 7A 1F 99 [13:49:58]Write i2c OK [13:49:58]MH_I2C_Read... [13:49:58]*** Cut start [13:49:58]*** Purtial cut [13:49:58]*** Stage 1: CUTSNS_PIN = 1 [13:49:59]Read from MH i2c: 01 [13:49:59]MH_I2C_Read... [13:49:59]*** Stop cut motor [13:49:59]*** Cut end [13:49:59]Read from MH i2c: 01 07 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: 01 07 00 7A 1F 00 00 00 00 00 FF 0F AE [13:49:59]process_action print_text done [13:49:59]requested_data is exist [13:49:59]produce_requested_data [13:49:59]requested_item fm.sn is exist - process it [13:49:59]wFMCommunicate request_size=4 [13:49:59]MH_SAM_APDU [13:49:59]CAPDU: 80 11 00 00 [13:49:59]Write to MH i2c: E2 08 00 7B 1F 80 11 00 00 00 00 00 00 14 [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:59]Read from MH i2c: E2 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 17 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 17 00 7B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6A [13:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:49:59]wFMCommunicate OK [13:49:59]requested_item fd.num is exist - process it [13:49:59]SAM_PROTO_GetFieldsCounters [13:49:59]wFMCommunicate request_size=4 [13:49:59]MH_SAM_APDU [13:49:59]CAPDU: 80 13 00 00 [13:49:59]Write to MH i2c: E2 08 00 7C 1F 80 13 00 00 00 00 00 00 17 [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:59]Read from MH i2c: E2 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 62 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 62 00 7C 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 4C 08 01 00 0E 04 04 00 66 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 C8 [13: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 4C 08 01 00 0E 04 04 00 66 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 [13:49:59]wFMCommunicate OK [13:49:59]SAM_PROTO_GetFieldsCounters done [13:49:59]requested_item shift.num is exist - process it [13:49:59]requested_item shift.opened is exist - process it [13:49:59]req_shift_opened [13:49:59]FM_GetShiftState [13:49:59]SAM_PROTO_GetShiftState [13:49:59]wFMCommunicate request_size=4 [13:49:59]MH_SAM_APDU [13:49:59]CAPDU: 80 13 01 00 [13:49:59]Write to MH i2c: E2 08 00 7D 1F 80 13 01 00 00 00 00 00 19 [13:49:59]Write i2c OK [13:49:59]MH_I2C_Read... [13:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:59]Read from MH i2c: E2 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 0E 00 [13:49:59]MH_I2C_Read... [13:49:59]Read from MH i2c: E2 0E 00 7D 1F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 9F [13:49:59]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:49:59]wFMCommunicate OK [13:49:59]SAM_PROTO_GetShiftState done [13:49:59]FM_GetShiftState done [13:49:59]req_shift_opened done [13:49:59]requested_item shift.open_date is exist - process it [13:49:59]req_shift_open_date [13:49:59]req_shift_open_date done [13:49:59]produce_requested_data done [13:49:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67660,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [13:49:59]process_action_free print_text [13:49:59]json_value_free [13:49:59]json_value_free done [13:49:59]process_json_proto returns [13:49:59]Send response to host [13:49:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67660,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [13:49:59]free response buf [13:49:59]execute_script done [13:49:59]execute_script returns [13:49:59]free content buf [13:49:59]Sock 9.Close socket [13:49:59]Sock 9.Thread stoped [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:50]accept exits with 7 [13:50:50]New connection [13:50:50]New thread 3067395428 created [13:50:50]Thread 3067538788 joined [13:50:50]Waiting for new connection... [13:50:50] Sock 7.Parse request [13:50:50]Sock 7.Check first char [13:50:50]Sock 7.First char is OK [13:50:50]request: POST /json_proto HTTP/1.0 [13:50:50]Method: POST [13:50:50]URL: /json_proto [13:50:50]Method is POST - this is cgi request [13:50:50]url: /json_proto [13:50:50]query_string will be loaded in cgi processing [13:50:50]execute_cgi json_proto POST (null) [13:50:50]execute_cgi path=json_proto method=POST [13:50:50]POST find Content-Length [13:50:50]Host: 172.17.41.195:8080 [13:50:50]Content-Length: 1179 [13:50:50]Content-Type: application/json [13:50:50] [13:50:50]POST finish read [13:50:50]Found Content-Length = 1179 [13:50: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507801\u000A17.05.2024 13:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 53.550 x 74.70\u000A\u0418\u0422\u041E\u0413: 4000.19\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:50:50]execute_script... [13:50: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507801\u000A17.05.2024 13:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 53.550 x 74.70\u000A\u0418\u0422\u041E\u0413: 4000.19\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:50:50]POST & json_proto [13:50:50]process_json_proto [13:50:50]json parsed OK: [13:50:50]protocol is kg_v1.0 [13:50:50]action value=print_text [13:50:50]process_action print_text [13:50:50]cmd_print_text [13:50:50]ExternCall_PrintAddStr [13:50:50]wPrintStart [13:50:50]Write to MH i2c: 01 00 00 7E 1F 9D [13:50:50]Write i2c OK [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: 01 [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: 01 07 00 [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: 01 07 00 7E 1F 00 00 00 00 00 FF 0F B2 [13:50:50]RasterBufferAndPrint [13:50:50]line *****ТОВАРНЫЙ ЧЕК***** [13:50:50]line АЗС-91 [13:50:50]line Партнер нефть [13:50:50]line 02508201610067 [13:50:50]line Кассир : Адишов И. [13:50:50]line Счет N : (1)507801 [13:50:50]line 17.05.2024 13:33 [13:50:50]line ПРОДАЖА [13:50:50]line ТРК (МРК, ГНК): 21 [13:50:50]line Вид ГСМ : 2710194210 [13:50:50]line ДТ-К-5 [13:50:50]line 53.550 x 74.70 [13:50:50]line ИТОГ: 4000.19 [13:50:50]line Тип оплаты: Талоны: Топливная Карта [13:50:50]line 02750 [13:50:50]line ______________________ [13:50:50]line (подпись) [13:50:50]written 0, free lines is 4095 [13:50:50]Write to MH i2c: 01 00 00 92 1F B1 [13:50:50]Write i2c OK [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: 01 [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: 01 07 00 [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: 01 07 00 92 1F 00 00 00 00 00 0C 0E D2 [13:50:50]RasterBufferAndPrint [13:50:50]line [13:50:50]line [13:50:50]line [13:50:50]line [13:50:50]line [13:50:50]written 0, free lines is 3598 [13:50:50]MH_Cut [13:50:50]Write to MH i2c: D1 01 00 99 1F 01 8A [13:50:50]Write i2c OK [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: D1 [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: D1 01 00 [13:50:50]MH_I2C_Read... [13:50:50]Read from MH i2c: D1 01 00 99 1F 00 89 [13:50:50]Write to MH i2c: 01 00 00 9A 1F B9 [13:50:50]Write i2c OK [13:50:50]MH_I2C_Read... [13:50:51]*** Cut start [13:50:51]*** Purtial cut [13:50:51]*** CUTSNS_PIN = 0 [13:50:51]OFD Sender: No OFD packet to send [13:50:51]*** Stage 1: CUTSNS_PIN = 1 [13:50:53]Read from MH i2c: 01 [13:50:53]MH_I2C_Read... [13:50:53]*** Stop cut motor [13:50:53]*** Cut end [13:50:53]Read from MH i2c: 01 07 00 [13:50:53]MH_I2C_Read... [13:50:53]Read from MH i2c: 01 07 00 9A 1F 00 00 00 00 00 FF 0F CE [13:50:53]process_action print_text done [13:50:53]requested_data is exist [13:50:53]produce_requested_data [13:50:53]requested_item fm.sn is exist - process it [13:50:53]wFMCommunicate request_size=4 [13:50:53]MH_SAM_APDU [13:50:53]CAPDU: 80 11 00 00 [13:50:53]Write to MH i2c: E2 08 00 9B 1F 80 11 00 00 00 00 00 00 34 [13:50:53]Write i2c OK [13:50:53]MH_I2C_Read... [13:50:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:53]Read from MH i2c: E2 [13:50:53]MH_I2C_Read... [13:50:53]Read from MH i2c: E2 17 00 [13:50:53]MH_I2C_Read... [13:50:53]Read from MH i2c: E2 17 00 9B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8A [13:50:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:50:53]wFMCommunicate OK [13:50:53]requested_item fd.num is exist - process it [13:50:53]SAM_PROTO_GetFieldsCounters [13:50:53]wFMCommunicate request_size=4 [13:50:53]MH_SAM_APDU [13:50:53]CAPDU: 80 13 00 00 [13:50:53]Write to MH i2c: E2 08 00 9C 1F 80 13 00 00 00 00 00 00 37 [13:50:53]Write i2c OK [13:50:53]MH_I2C_Read... [13:50:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:53]Read from MH i2c: E2 [13:50:53]MH_I2C_Read... [13:50:53]Read from MH i2c: E2 62 00 [13:50:53]MH_I2C_Read... [13:50:53]Read from MH i2c: E2 62 00 9C 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 4C 08 01 00 0E 04 04 00 66 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 E8 [13:50:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 4C 08 01 00 0E 04 04 00 66 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 [13:50:53]wFMCommunicate OK [13:50:53]SAM_PROTO_GetFieldsCounters done [13:50:53]requested_item shift.num is exist - process it [13:50:53]requested_item shift.opened is exist - process it [13:50:53]req_shift_opened [13:50:53]FM_GetShiftState [13:50:53]SAM_PROTO_GetShiftState [13:50:53]wFMCommunicate request_size=4 [13:50:53]MH_SAM_APDU [13:50:53]CAPDU: 80 13 01 00 [13:50:53]Write to MH i2c: E2 08 00 9D 1F 80 13 01 00 00 00 00 00 39 [13:50:53]Write i2c OK [13:50:53]MH_I2C_Read... [13:50:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:53]Read from MH i2c: E2 [13:50:53]MH_I2C_Read... [13:50:53]Read from MH i2c: E2 0E 00 [13:50:53]MH_I2C_Read... [13:50:53]Read from MH i2c: E2 0E 00 9D 1F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 BF [13:50:53]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:50:53]wFMCommunicate OK [13:50:53]SAM_PROTO_GetShiftState done [13:50:53]FM_GetShiftState done [13:50:53]req_shift_opened done [13:50:53]requested_item shift.open_date is exist - process it [13:50:53]req_shift_open_date [13:50:53]req_shift_open_date done [13:50:53]produce_requested_data done [13:50:53]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67660,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [13:50:53]process_action_free print_text [13:50:53]json_value_free [13:50:53]json_value_free done [13:50:53]process_json_proto returns [13:50:53]Send response to host [13:50:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67660,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [13:50:53]free response buf [13:50:53]execute_script done [13:50:53]execute_script returns [13:50:53]free content buf [13:50:53]Sock 7.Close socket [13:50:53]Sock 7.Thread stoped [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:48]accept exits with 9 [13:55:48]New connection [13:55:48]New thread 3067538788 created [13:55:48]Thread 3067395428 joined [13:55:48]Waiting for new connection... [13:55:48] Sock 9.Parse request [13:55:48]Sock 9.Check first char [13:55:48]Sock 9.First char is OK [13:55:48]request: POST /json_proto HTTP/1.0 [13:55:48]Method: POST [13:55:48]URL: /json_proto [13:55:48]Method is POST - this is cgi request [13:55:48]url: /json_proto [13:55:48]query_string will be loaded in cgi processing [13:55:48]execute_cgi json_proto POST (null) [13:55:48]execute_cgi path=json_proto method=POST [13:55:48]POST find Content-Length [13:55:48]Host: 172.17.41.195:8080 [13:55:48]Content-Length: 674 [13:55:48]Content-Type: application/json [13:55:48] [13:55:48]POST finish read [13:55:48]Found Content-Length = 674 [13:55:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507802", "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" : 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" ] } } [13:55:48]execute_script... [13:55: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)507802", "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" : 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" ] } } [13:55:48]POST & json_proto [13:55:48]process_json_proto [13:55:48]json parsed OK: [13:55:48]protocol is kg_v1.0 [13:55:48]action value=close_receipt [13:55:48]process_action close_receipt [13:55:48]cmd_close_receipt [13:55:48]MH_GetDate [13:55:48]Write to MH i2c: F0 00 00 9E 1F AC [13:55:48]Write i2c OK [13:55:48]MH_I2C_Read... [13:55:48]Read from MH i2c: F0 [13:55:48]MH_I2C_Read... [13:55:48]Read from MH i2c: F0 09 00 [13:55:48]MH_I2C_Read... [13:55:48]Read from MH i2c: F0 09 00 9E 1F 00 E8 61 47 66 FC 21 6F 64 9B [13:55:48]GetLastDocTimeStamp 1715953711 [13:55:48]current date 1715954152 [13:55:48]FM_GetShiftState [13:55:48]SAM_PROTO_GetShiftState [13:55:48]wFMCommunicate request_size=4 [13:55:48]MH_SAM_APDU [13:55:48]CAPDU: 80 13 01 00 [13:55:48]Write to MH i2c: E2 08 00 9F 1F 80 13 01 00 00 00 00 00 3B [13:55:48]Write i2c OK [13:55:48]MH_I2C_Read... [13:55:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:48]Read from MH i2c: E2 [13:55:48]MH_I2C_Read... [13:55:48]Read from MH i2c: E2 0E 00 [13:55:48]MH_I2C_Read... [13:55:48]Read from MH i2c: E2 0E 00 9F 1F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 C1 [13:55:48]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:55:48]wFMCommunicate OK [13:55:48]SAM_PROTO_GetShiftState done [13:55:48]FM_GetShiftState done [13:55:48]opened in 1715905068 [13:55:48]opened+sec_in_day 1715991468 [13:55:48]quantity*price = 60058 [13:55:48]sum+1 = 60060 [13:55: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 СНО: Общий режим Чек 70 17.05.2024 13:55 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67661 ФПД: 185637706085374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T135552&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67661&fm=185637706085374&tin=02508201610067®Number=0000000000091845&sum=60000 [13:55:50]StoreToDocumentArchive [13:55:50]shift 358 fd 67661 [13:55:50]save to /storage/0358/doc_00067661 [13:55:50]save last doc name /storage/0358/doc_00067661 to /storage/kkm_last_doc_name [13:55:50]save OK [13:55:50]Clear old archive folders... [13:55:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:55:50]tlvbuf is 016306B0 [13:55:50]SAM_PROTO_ClearQueue [13:55:50]wFMCommunicate request_size=4 [13:55:50]MH_SAM_APDU [13:55:50]CAPDU: 80 09 00 00 [13:55:50]Write to MH i2c: E2 08 00 AC 1F 80 09 00 00 00 00 00 00 3D [13:55:50]Write i2c OK [13:55:50]MH_I2C_Read... [13:55:50]Read from MH i2c: E2 [13:55:50]MH_I2C_Read... [13:55:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:50]Read from MH i2c: E2 03 00 [13:55:50]MH_I2C_Read... [13:55:50]Read from MH i2c: E2 03 00 AC 1F 00 90 00 3F [13:55:50]RAPDU: 90 00 [13:55:50]wFMCommunicate OK [13:55:50]SAM_PROTO_ClearQueue done [13:55:50]KKMCreateOFDPacket [13:55:50]OFDProtocolAddRootSTLVToBuf [13:55:50]FM_MakeSignedData [13:55:50]FM_MakeSignedData [13:55:50]SAM_PROTO_SignData [13:55:50]wFMCommunicate request_size=4 [13:55:50]MH_SAM_APDU [13:55:50]CAPDU: 80 0D 01 02 [13:55:50]Write to MH i2c: E2 08 00 AD 1F 80 0D 01 02 00 00 00 00 45 [13:55:50]Write i2c OK [13:55:50]MH_I2C_Read... [13:55:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:50]Read from MH i2c: E2 [13:55:50]MH_I2C_Read... [13:55:50]Read from MH i2c: E2 03 00 [13:55:50]MH_I2C_Read... [13:55:50]Read from MH i2c: E2 03 00 AD 1F 00 90 00 40 [13:55:50]RAPDU: 90 00 [13:55:50]wFMCommunicate OK [13:55:50]wFMCommunicate request_size=255 [13:55:50]MH_SAM_APDU [13:55: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 46 00 00 00 F4 03 04 00 E8 61 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 A8 D6 25 87 [13:55:50]Write to MH i2c: E2 02 01 AE 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 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 46 00 00 00 F4 03 04 00 E8 61 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 A8 D6 25 87 00 00 CC [13:55:50]Write i2c OK [13:55:50]MH_I2C_Read... [13:55:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:50]Read from MH i2c: E2 [13:55:50]MH_I2C_Read... [13:55:50]Read from MH i2c: E2 03 00 [13:55:50]MH_I2C_Read... [13:55:50]Read from MH i2c: E2 03 00 AE 1F 00 90 00 41 [13:55:50]RAPDU: 90 00 [13:55:50]wFMCommunicate OK [13:55:50]wFMCommunicate request_size=7 [13:55:50]MH_SAM_APDU [13:55:50]CAPDU: 80 0D 02 02 02 33 FE [13:55:50]Write to MH i2c: E2 0A 00 AF 1F 80 0D 02 02 02 00 33 FE 00 00 7D [13:55:50]Write i2c OK [13:55:50]MH_I2C_Read... [13:55:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:50]Read from MH i2c: E2 [13:55:50]MH_I2C_Read... [13:55:50]Read from MH i2c: E2 03 00 [13:55:50]MH_I2C_Read... [13:55:50]Read from MH i2c: E2 03 00 AF 1F 00 90 00 42 [13:55:50]RAPDU: 90 00 [13:55:50]wFMCommunicate OK [13:55:50]wFMCommunicate request_size=4 [13:55:50]MH_SAM_APDU [13:55:50]CAPDU: 80 0D 03 02 [13:55:50]Write to MH i2c: E2 08 00 B0 1F 80 0D 03 02 00 00 00 00 4A [13:55:50]Write i2c OK [13:55:50]MH_I2C_Read... [13:55:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:50]Read from MH i2c: E2 [13:55:50]MH_I2C_Read... [13:55:50]Read from MH i2c: E2 0B 00 [13:55:50]MH_I2C_Read... [13:55:50]Read from MH i2c: E2 0B 00 B0 1F 00 00 33 0A 67 22 E0 10 F9 90 00 FA [13:55:50]RAPDU: 00 33 0A 67 22 E0 10 F9 90 00 [13:55:50]wFMCommunicate OK [13:55:50]SAM_PROTO_SignData done [13:55:50]FM_MakeSignedData done [13:55:50]CreateOFDProtocolMessage [13:55:50]wFMCommunicate request_size=4 [13:55:50]MH_SAM_APDU [13:55:50]CAPDU: 80 11 00 00 [13:55:50]Write to MH i2c: E2 08 00 B1 1F 80 11 00 00 00 00 00 00 4A [13:55:50]Write i2c OK [13:55:50]MH_I2C_Read... [13:55:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:50]Read from MH i2c: E2 [13:55:50]MH_I2C_Read... [13:55:50]Read from MH i2c: E2 17 00 [13:55:50]MH_I2C_Read... [13:55:50]Read from MH i2c: E2 17 00 B1 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A0 [13:55: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:55:50]wFMCommunicate OK [13:55:50]CreateOFDProtocolMessage done [13:55:50]OFDSenderStorePacket 67661 [13:55:50]StoreOFDPacket docnum=67661 [13:55: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 A9 4A 04 01 18 A7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 46 00 00 00 F4 03 04 00 E8 61 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 A8 D6 25 87 33 FE 00 33 0A 67 22 E0 10 F9 [13:55:50]CheckFolder [13:55:50]dirname=/storage/ofd_packets [13:55:50]CheckFolder done [13:55:50]ProducePacketName [13:55:50]name=ofd_packets/00067661 [13:55:50]NVStorageSaveData ofd_packets/00067661 [13:55:50]File name is /storage/ofd_packets/00067661 [13:55:50]Write 298 bytes [13:55:50]NVStorageSaveData done [13:55:50]OFDSenderStorePacket done [13:55:50]KKMCreateOFDPacket done [13:55:50]NVStorageSaveData kkm_last_timestamp [13:55:50]File name is /storage/kkm_last_timestamp [13:55:50]Write 4 bytes [13:55:50]NVStorageSaveData done [13:55:50]ExternCall_PrintAddStr [13:55:50]wPrintStart [13:55:50]Write to MH i2c: 01 00 00 B2 1F D1 [13:55:50]Write i2c OK [13:55:50]MH_I2C_Read... [13:55:50]Read from MH i2c: 01 [13:55:50]MH_I2C_Read... [13:55:50]Read from MH i2c: 01 07 00 [13:55:50]MH_I2C_Read... [13:55:50]Read from MH i2c: 01 07 00 B2 1F 00 00 00 00 00 FF 0F E6 [13:55:50]RasterBufferAndPrint [13:55:50]line Счет N : (1)507802 [13:55:50]line ИНН: 02508201610067 [13:55:50]line Контрольно-Кассовый Чек [13:55:50]line ПРОДАЖА [13:55:50]line ТРК (МРК, ГНК) : 41 [13:55:50]line Товар: 2710194210 [13:55:50]line ДТ-К-5 [13:55:50]line 8.040 * 74.70 [13:55:50]line = 600.59 [13:55:50]line НДС 12% НСП 1% [13:55:50]line > о реализуемом товаре [13:55:50]line ОКРУГЛЕНИЕ: -0.59 [13:55:50]line ИТОГО: 600.00 [13:55:50]line Внесено: 600.00 [13:55:50]line СДАЧА: 0.00 [13:55:50]line НСП 1% : 5.31 [13:55:50]line НДС 12% : 63.78 [13:55:50]line Наличными: 600.00 [13:55:50]line Безнал.: 0.00 [13:55:50]line Место: АЗС № 91 "Партнер Нефть" [13:55:50]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:55:50]line СНО: Общий режим [13:55:50]line Чек 70 17.05.2024 13:55 [13:55:50]line Смена: 358 ФФД: 1.0 [13:55:50]line ЗНМ: 0300000119 [13:55:50]line РНМ: 0000000000091845 [13:55:50]line Версия ККМ: 001 [13:55:50]line ФМ: 0000000000871829 [13:55:50]line ФД: 67661 [13:55:50]line ФПД: 185637706085374 [13:55:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T135552&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67661&fm=185637706085374&tin=02508201610067®Number=0000000000091845&sum=60000 [13:55:50]OFD Sender: Processing packet 67661 [packets to send 35, broken 34] [13:55:50]ProducePacketName [13:55:50]name=ofd_packets/00067661 [13:55:50]OFD Sender: To server: pG, [13:55:50]CommunicateWithHost lk.salyk.kg:30040 [13:55:50]ConnectInit lk.salyk.kg [13:55:50]written 0, free lines is 4095 [13:55:51]Connected sock=7 [13:55: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 A9 4A 04 01 18 A7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 46 00 00 00 F4 03 04 00 E8 61 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 A8 D6 25 87 33 FE 00 33 0A 67 22 E0 10 F9 [13:55: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 24 4F 47 00 4A 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4D 08 01 00 F4 03 04 00 C0 09 47 66 B6 04 01 00 00 0E DC 94 FA 20 F6 73 2D [13:55:51]CommunicateWithHost err = 0 [13:55:51]CheckOFDResponse [13:55:51]1017 (14) - 77093643461234 [13:55:51]1041 (16) - 0000000000871829 [13:55:51]1040 (4) - 67661 [13:55:51]1012 (4) - 17.05.2024 07:39 [13:55:51]1206 (1) - 0 [13:55:51]OFD Sender: Remove packet 67661 [13:55:51]ProducePacketName [13:55:51]name=ofd_packets/00067661 [13:55:51]NVStorageDeleteData [13:55:51]Write to MH i2c: 01 00 00 DC 1F FB [13:55:51]Write i2c OK [13:55:51]MH_I2C_Read... [13:55:51]Read from MH i2c: 01 [13:55:51]MH_I2C_Read... [13:55:51]Read from MH i2c: 01 07 00 [13:55:51]MH_I2C_Read... [13:55:51]Read from MH i2c: 01 07 00 DC 1F 00 00 00 00 00 D5 0C E3 [13:55:51]RasterBufferAndPrint [13:55:51]line [13:55:51]line [13:55:51]line [13:55:51]line [13:55:51]line [13:55:51]written 0, free lines is 3294 [13:55:51]MH_Cut [13:55:51]Write to MH i2c: D1 01 00 E3 1F 01 D4 [13:55:51]Write i2c OK [13:55:51]MH_I2C_Read... [13:55:51]Read from MH i2c: D1 [13:55:51]MH_I2C_Read... [13:55:51]Read from MH i2c: D1 01 00 [13:55:51]MH_I2C_Read... [13:55:51]Read from MH i2c: D1 01 00 E3 1F 00 D3 [13:55:51]Write to MH i2c: 01 00 00 E4 1F 03 [13:55:51]Write i2c OK [13:55:51]MH_I2C_Read... [13:55:51]OFD Sender: No OFD packet to send [13:55:52]*** Cut start [13:55:52]*** Purtial cut [13:55:52]*** Stage 1: CUTSNS_PIN = 1 [13:55:52]Read from MH i2c: 01 [13:55:52]MH_I2C_Read... [13:55:52]*** Stop cut motor [13:55:52]*** Cut end [13:55:52]Read from MH i2c: 01 07 00 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: 01 07 00 E4 1F 00 00 00 00 00 FF 0F 18 [13:55:52]process_action close_receipt done [13:55:52]requested_data is exist [13:55:52]produce_requested_data [13:55:52]requested_item fm.sn is exist - process it [13:55:52]wFMCommunicate request_size=4 [13:55:52]MH_SAM_APDU [13:55:52]CAPDU: 80 11 00 00 [13:55:52]Write to MH i2c: E2 08 00 E5 1F 80 11 00 00 00 00 00 00 7E [13:55:52]Write i2c OK [13:55:52]MH_I2C_Read... [13:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:52]Read from MH i2c: E2 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: E2 17 00 [13:55:52]MH_I2C_Read... [13:55:52]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 [13:55: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:55:52]wFMCommunicate OK [13:55:52]requested_item fd.num is exist - process it [13:55:52]SAM_PROTO_GetFieldsCounters [13:55:52]wFMCommunicate request_size=4 [13:55:52]MH_SAM_APDU [13:55:52]CAPDU: 80 13 00 00 [13:55:52]Write to MH i2c: E2 08 00 E6 1F 80 13 00 00 00 00 00 00 81 [13:55:52]Write i2c OK [13:55:52]MH_I2C_Read... [13:55:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:52]Read from MH i2c: E2 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: E2 62 00 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: E2 62 00 E6 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 4D 08 01 00 0E 04 04 00 66 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 36 [13:55: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 4D 08 01 00 0E 04 04 00 66 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 [13:55:52]wFMCommunicate OK [13:55:52]SAM_PROTO_GetFieldsCounters done [13:55:52]requested_item shift.num is exist - process it [13:55:52]requested_item shift.opened is exist - process it [13:55:52]req_shift_opened [13:55:52]FM_GetShiftState [13:55:52]SAM_PROTO_GetShiftState [13:55:52]wFMCommunicate request_size=4 [13:55:52]MH_SAM_APDU [13:55:52]CAPDU: 80 13 01 00 [13:55:52]Write to MH i2c: E2 08 00 E7 1F 80 13 01 00 00 00 00 00 83 [13:55:52]Write i2c OK [13:55:52]MH_I2C_Read... [13:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:52]Read from MH i2c: E2 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: E2 0E 00 [13:55:52]MH_I2C_Read... [13:55:52]Read from MH i2c: E2 0E 00 E7 1F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 09 [13:55:52]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [13:55:52]wFMCommunicate OK [13:55:52]SAM_PROTO_GetShiftState done [13:55:52]FM_GetShiftState done [13:55:52]req_shift_opened done [13:55:52]requested_item shift.open_date is exist - process it [13:55:52]req_shift_open_date [13:55:52]req_shift_open_date done [13:55:52]produce_requested_data done [13:55:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67661,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [13:55:52]process_action_free close_receipt [13:55:52]json_value_free [13:55:52]json_value_free done [13:55:52]process_json_proto returns [13:55:52]Send response to host [13:55:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67661,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [13:55:52]free response buf [13:55:52]execute_script done [13:55:52]execute_script returns [13:55:52]free content buf [13:55:52]Sock 9.Close socket [13:55:52]Sock 9.Thread stoped [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:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:22]OFD Sender: No OFD packet to send [14:01:27]OFD Sender: No OFD packet to send [14:01:32]OFD Sender: No OFD packet to send [14:01:37]OFD Sender: No OFD packet to send [14:01:42]OFD Sender: No OFD packet to send [14:01:47]OFD Sender: No OFD packet to send [14:01:52]OFD Sender: No OFD packet to send [14:01:57]OFD Sender: No OFD packet to send [14:02:02]OFD Sender: No OFD packet to send [14:02:07]OFD Sender: No OFD packet to send [14:02:12]OFD Sender: No OFD packet to send [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:32]OFD Sender: No OFD packet to send [14:03:37]OFD Sender: No OFD packet to send [14:03:42]OFD Sender: No OFD packet to send [14:03:47]OFD Sender: No OFD packet to send [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]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:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:57]OFD Sender: No OFD packet to send [14:13:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:12]OFD Sender: No OFD packet to send [14:13:17]OFD Sender: No OFD packet to send [14:13:22]OFD Sender: No OFD packet to send [14:13:27]OFD Sender: No OFD packet to send [14:13:32]OFD Sender: No OFD packet to send [14:13:37]OFD Sender: No OFD packet to send [14:13:42]OFD Sender: No OFD packet to send [14:13:47]OFD Sender: No OFD packet to send [14:13:52]OFD Sender: No OFD packet to send [14:13:57]OFD Sender: No OFD packet to send [14:14:02]OFD Sender: No OFD packet to send [14:14:07]OFD Sender: No OFD packet to send [14:14:12]OFD Sender: No OFD packet to send [14:14:17]OFD Sender: No OFD packet to send [14:14:22]OFD Sender: No OFD packet to send [14:14:27]OFD Sender: No OFD packet to send [14:14:32]OFD Sender: No OFD packet to send [14:14:37]OFD Sender: No OFD packet to send [14:14:39]accept exits with 10 [14:14:39]New connection [14:14:39]New thread 3067395428 created [14:14:39]Thread 3067538788 joined [14:14:39]Waiting for new connection... [14:14:39] Sock 10.Parse request [14:14:39]Sock 10.Check first char [14:14:39]Sock 10.First char is OK [14:14:39]request: POST /json_proto HTTP/1.0 [14:14:39]Method: POST [14:14:39]URL: /json_proto [14:14:39]Method is POST - this is cgi request [14:14:39]url: /json_proto [14:14:39]query_string will be loaded in cgi processing [14:14:39]execute_cgi json_proto POST (null) [14:14:39]execute_cgi path=json_proto method=POST [14:14:39]POST find Content-Length [14:14:39]Host: 172.17.41.195:8080 [14:14:39]Content-Length: 979 [14:14:39]Content-Type: application/json [14:14:39] [14:14:39]POST finish read [14:14:39]Found Content-Length = 979 [14:14:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507804", "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" : 73.70, "quantity" : 122.120, "sum" : 9000.24, "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 122.12 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:39]execute_script... [14:14: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)507804", "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" : 73.70, "quantity" : 122.120, "sum" : 9000.24, "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 122.12 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:39]POST & json_proto [14:14:39]process_json_proto [14:14:39]json parsed OK: [14:14:39]protocol is kg_v1.0 [14:14:39]action value=close_receipt [14:14:39]process_action close_receipt [14:14:39]cmd_close_receipt [14:14:39]MH_GetDate [14:14:39]Write to MH i2c: F0 00 00 E8 1F F6 [14:14:39]Write i2c OK [14:14:39]MH_I2C_Read... [14:14:39]Read from MH i2c: F0 [14:14:39]MH_I2C_Read... [14:14:39]Read from MH i2c: F0 09 00 [14:14:39]MH_I2C_Read... [14:14:39]Read from MH i2c: F0 09 00 E8 1F 00 53 66 47 66 FC 21 6F 64 55 [14:14:39]GetLastDocTimeStamp 1715954152 [14:14:39]current date 1715955283 [14:14:39]FM_GetShiftState [14:14:39]SAM_PROTO_GetShiftState [14:14:39]wFMCommunicate request_size=4 [14:14:39]MH_SAM_APDU [14:14:39]CAPDU: 80 13 01 00 [14:14:39]Write to MH i2c: E2 08 00 E9 1F 80 13 01 00 00 00 00 00 85 [14:14:39]Write i2c OK [14:14:39]MH_I2C_Read... [14:14:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:39]Read from MH i2c: E2 [14:14:39]MH_I2C_Read... [14:14:39]Read from MH i2c: E2 0E 00 [14:14:39]MH_I2C_Read... [14:14:39]Read from MH i2c: E2 0E 00 E9 1F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 0B [14:14:39]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:14:39]wFMCommunicate OK [14:14:39]SAM_PROTO_GetShiftState done [14:14:39]FM_GetShiftState done [14:14:39]opened in 1715905068 [14:14:39]opened+sec_in_day 1715991468 [14:14:39]quantity*price = 900024 [14:14:39]sum+1 = 900025 [14:14:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 9000.00 Внесено: 9000.00 СДАЧА: 0.00 НСП 1% : 79.65 НДС 12% : 955.78 Наличными: 9000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 71 17.05.2024 14:14 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Дисконтная программа ДТ номер 91 сэкономлено 122.12 сом ФМ: 0000000000871829 ФД: 67662 ФПД: 187592564832604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T141443&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67662&fm=187592564832604&tin=02508201610067®Number=0000000000091845&sum=900000 [14:14:40]StoreToDocumentArchive [14:14:40]shift 358 fd 67662 [14:14:40]save to /storage/0358/doc_00067662 [14:14:40]save last doc name /storage/0358/doc_00067662 to /storage/kkm_last_doc_name [14:14:40]save OK [14:14:40]Clear old archive folders... [14:14:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:14:40]tlvbuf is 015F40D0 [14:14:40]SAM_PROTO_ClearQueue [14:14:40]wFMCommunicate request_size=4 [14:14:40]MH_SAM_APDU [14:14:40]CAPDU: 80 09 00 00 [14:14:40]Write to MH i2c: E2 08 00 F6 1F 80 09 00 00 00 00 00 00 87 [14:14:40]Write i2c OK [14:14:40]MH_I2C_Read... [14:14:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:40]Read from MH i2c: E2 [14:14:40]MH_I2C_Read... [14:14:40]Read from MH i2c: E2 03 00 [14:14:40]MH_I2C_Read... [14:14:40]Read from MH i2c: E2 03 00 F6 1F 00 90 00 89 [14:14:40]RAPDU: 90 00 [14:14:40]wFMCommunicate OK [14:14:40]SAM_PROTO_ClearQueue done [14:14:40]KKMCreateOFDPacket [14:14:40]OFDProtocolAddRootSTLVToBuf [14:14:40]FM_MakeSignedData [14:14:40]FM_MakeSignedData [14:14:40]SAM_PROTO_SignData [14:14:40]wFMCommunicate request_size=4 [14:14:40]MH_SAM_APDU [14:14:40]CAPDU: 80 0D 01 02 [14:14:40]Write to MH i2c: E2 08 00 F7 1F 80 0D 01 02 00 00 00 00 8F [14:14:40]Write i2c OK [14:14:40]MH_I2C_Read... [14:14:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:40]Read from MH i2c: E2 [14:14:40]MH_I2C_Read... [14:14:40]Read from MH i2c: E2 03 00 [14:14:40]MH_I2C_Read... [14:14:40]Read from MH i2c: E2 03 00 F7 1F 00 90 00 8A [14:14:40]RAPDU: 90 00 [14:14:40]wFMCommunicate OK [14:14:40]wFMCommunicate request_size=255 [14:14:40]MH_SAM_APDU [14:14: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 08 DD 01 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 B8 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 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 5A 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 53 66 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 AA 9D 4C 30 [14:14:41]Write to MH i2c: E2 02 01 F8 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 08 DD 01 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 B8 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 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 5A 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 53 66 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 AA 9D 4C 30 00 00 47 [14:14:41]Write i2c OK [14:14:41]MH_I2C_Read... [14:14:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:41]Read from MH i2c: E2 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 03 00 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 03 00 F8 1F 00 90 00 8B [14:14:41]RAPDU: 90 00 [14:14:41]wFMCommunicate OK [14:14:41]wFMCommunicate request_size=7 [14:14:41]MH_SAM_APDU [14:14:41]CAPDU: 80 0D 02 02 02 79 5C [14:14:41]Write to MH i2c: E2 0A 00 F9 1F 80 0D 02 02 02 00 79 5C 00 00 6B [14:14:41]Write i2c OK [14:14:41]MH_I2C_Read... [14:14:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:41]Read from MH i2c: E2 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 03 00 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 03 00 F9 1F 00 90 00 8C [14:14:41]RAPDU: 90 00 [14:14:41]wFMCommunicate OK [14:14:41]wFMCommunicate request_size=4 [14:14:41]MH_SAM_APDU [14:14:41]CAPDU: 80 0D 03 02 [14:14:41]Write to MH i2c: E2 08 00 FA 1F 80 0D 03 02 00 00 00 00 94 [14:14:41]Write i2c OK [14:14:41]MH_I2C_Read... [14:14:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:41]Read from MH i2c: E2 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 0B 00 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 0B 00 FA 1F 00 2B FD 0C 30 9A FD 70 EC 90 00 EC [14:14:41]RAPDU: 2B FD 0C 30 9A FD 70 EC 90 00 [14:14:41]wFMCommunicate OK [14:14:41]SAM_PROTO_SignData done [14:14:41]FM_MakeSignedData done [14:14:41]CreateOFDProtocolMessage [14:14:41]wFMCommunicate request_size=4 [14:14:41]MH_SAM_APDU [14:14:41]CAPDU: 80 11 00 00 [14:14:41]Write to MH i2c: E2 08 00 FB 1F 80 11 00 00 00 00 00 00 94 [14:14:41]Write i2c OK [14:14:41]MH_I2C_Read... [14:14:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:41]Read from MH i2c: E2 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 17 00 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: E2 17 00 FB 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EA [14:14:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:14:41]wFMCommunicate OK [14:14:41]CreateOFDProtocolMessage done [14:14:41]OFDSenderStorePacket 67662 [14:14:41]StoreOFDPacket docnum=67662 [14:14: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 66 10 04 01 3C 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 08 DD 01 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 B8 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 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 5A 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 53 66 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 AA 9D 4C 30 79 5C 2B FD 0C 30 9A FD 70 EC [14:14:41]CheckFolder [14:14:41]dirname=/storage/ofd_packets [14:14:41]CheckFolder done [14:14:41]ProducePacketName [14:14:41]name=ofd_packets/00067662 [14:14:41]NVStorageSaveData ofd_packets/00067662 [14:14:41]File name is /storage/ofd_packets/00067662 [14:14:41]Write 298 bytes [14:14:41]NVStorageSaveData done [14:14:41]OFDSenderStorePacket done [14:14:41]KKMCreateOFDPacket done [14:14:41]NVStorageSaveData kkm_last_timestamp [14:14:41]File name is /storage/kkm_last_timestamp [14:14:41]Write 4 bytes [14:14:41]NVStorageSaveData done [14:14:41]ExternCall_PrintAddStr [14:14:41]wPrintStart [14:14:41]Write to MH i2c: 01 00 00 FC 1F 1B [14:14:41]Write i2c OK [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: 01 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: 01 07 00 [14:14:41]MH_I2C_Read... [14:14:41]Read from MH i2c: 01 07 00 FC 1F 00 00 00 00 00 FF 0F 30 [14:14:41]RasterBufferAndPrint [14:14:41]line Счет N : (1)507804 [14:14:41]line ИНН: 02508201610067 [14:14:41]line Контрольно-Кассовый Чек [14:14:41]line ПРОДАЖА [14:14:41]line ТРК (МРК, ГНК) : 21 [14:14:41]line Товар: 2710194210 [14:14:41]line ДТ-К-5 [14:14:41]line 122.120 * 73.70 [14:14:41]line = 9000.24 [14:14:41]line НДС 12% НСП 1% [14:14:41]line > о реализуемом товаре [14:14:41]line ОКРУГЛЕНИЕ: -0.24 [14:14:41]line ИТОГО: 9000.00 [14:14:41]line Внесено: 9000.00 [14:14:41]line СДАЧА: 0.00 [14:14:41]line НСП 1% : 79.65 [14:14:41]line НДС 12% : 955.78 [14:14:41]line Наличными: 9000.00 [14:14:41]line Безнал.: 0.00 [14:14:41]line Место: АЗС № 91 "Партнер Нефть" [14:14:41]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:14:41]line СНО: Общий режим [14:14:41]line Чек 71 17.05.2024 14:14 [14:14:41]line Смена: 358 ФФД: 1.0 [14:14:41]line ЗНМ: 0300000119 [14:14:41]line РНМ: 0000000000091845 [14:14:41]line Версия ККМ: 001 [14:14:41]line [14:14:41]line Дисконтная программа [14:14:41]line ДТ [14:14:41]line номер 91 [14:14:41]line сэкономлено 122.12 сом [14:14:41]line ФМ: 0000000000871829 [14:14:41]line ФД: 67662 [14:14:41]line ФПД: 187592564832604 [14:14:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T141443&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67662&fm=187592564832604&tin=02508201610067®Number=0000000000091845&sum=900000 [14:14:41]OFD Sender: Processing packet 67662 [packets to send 35, broken 34] [14:14:41]ProducePacketName [14:14:41]name=ofd_packets/00067662 [14:14:41]OFD Sender: To server: pG, [14:14:41]CommunicateWithHost lk.salyk.kg:30040 [14:14:41]ConnectInit lk.salyk.kg [14:14:41]written 0, free lines is 4095 [14:14:41]Connected sock=9 [14:14: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 66 10 04 01 3C 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 08 DD 01 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 B8 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 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 5A 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 53 66 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 AA 9D 4C 30 79 5C 2B FD 0C 30 9A FD 70 EC [14:14: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 78 6D 47 00 D7 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 4E 08 01 00 F4 03 04 00 2B 0E 47 66 B6 04 01 00 00 FB 33 6E 3A BE 6F 8D 14 [14:14:42]CommunicateWithHost err = 0 [14:14:42]CheckOFDResponse [14:14:42]1017 (14) - 77093643461234 [14:14:42]1041 (16) - 0000000000871829 [14:14:42]1040 (4) - 67662 [14:14:42]1012 (4) - 17.05.2024 07:58 [14:14:42]1206 (1) - 0 [14:14:42]OFD Sender: Remove packet 67662 [14:14:42]ProducePacketName [14:14:42]name=ofd_packets/00067662 [14:14:42]NVStorageDeleteData [14:14:42]Write to MH i2c: 01 00 00 2B 20 4B [14:14:42]Write i2c OK [14:14:42]MH_I2C_Read... [14:14:42]Read from MH i2c: 01 [14:14:42]MH_I2C_Read... [14:14:42]Read from MH i2c: 01 07 00 [14:14:42]MH_I2C_Read... [14:14:42]Read from MH i2c: 01 07 00 2B 20 00 00 00 00 00 78 0C D6 [14:14:42]RasterBufferAndPrint [14:14:42]line [14:14:42]line [14:14:42]line [14:14:42]line [14:14:42]line [14:14:42]written 0, free lines is 3197 [14:14:42]MH_Cut [14:14:42]Write to MH i2c: D1 01 00 32 20 01 24 [14:14:42]Write i2c OK [14:14:42]MH_I2C_Read... [14:14:42]Read from MH i2c: D1 [14:14:42]MH_I2C_Read... [14:14:42]Read from MH i2c: D1 01 00 [14:14:42]MH_I2C_Read... [14:14:42]Read from MH i2c: D1 01 00 32 20 00 23 [14:14:42]Write to MH i2c: 01 00 00 33 20 53 [14:14:42]Write i2c OK [14:14:42]MH_I2C_Read... [14:14:42]OFD Sender: No OFD packet to send [14:14:43]*** Cut start [14:14:43]*** Purtial cut [14:14:43]*** CUTSNS_PIN = 0 [14:14:43]*** Stage 1: CUTSNS_PIN = 1 [14:14:45]Read from MH i2c: 01 [14:14:45]MH_I2C_Read... [14:14:45]*** Stop cut motor [14:14:45]*** Cut end [14:14:45]Read from MH i2c: 01 07 00 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: 01 07 00 33 20 00 00 00 00 00 FF 0F 68 [14:14:45]process_action close_receipt done [14:14:45]requested_data is exist [14:14:45]produce_requested_data [14:14:45]requested_item fm.sn is exist - process it [14:14:45]wFMCommunicate request_size=4 [14:14:45]MH_SAM_APDU [14:14:45]CAPDU: 80 11 00 00 [14:14:45]Write to MH i2c: E2 08 00 34 20 80 11 00 00 00 00 00 00 CE [14:14:45]Write i2c OK [14:14:45]MH_I2C_Read... [14:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:45]Read from MH i2c: E2 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 17 00 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 17 00 34 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 24 [14:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:14:45]wFMCommunicate OK [14:14:45]requested_item fd.num is exist - process it [14:14:45]SAM_PROTO_GetFieldsCounters [14:14:45]wFMCommunicate request_size=4 [14:14:45]MH_SAM_APDU [14:14:45]CAPDU: 80 13 00 00 [14:14:45]Write to MH i2c: E2 08 00 35 20 80 13 00 00 00 00 00 00 D1 [14:14:45]Write i2c OK [14:14:45]MH_I2C_Read... [14:14:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:45]Read from MH i2c: E2 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 62 00 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 62 00 35 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 4E 08 01 00 0E 04 04 00 66 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 8A [14:14: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 4E 08 01 00 0E 04 04 00 66 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 [14:14:45]wFMCommunicate OK [14:14:45]SAM_PROTO_GetFieldsCounters done [14:14:45]requested_item shift.num is exist - process it [14:14:45]requested_item shift.opened is exist - process it [14:14:45]req_shift_opened [14:14:45]FM_GetShiftState [14:14:45]SAM_PROTO_GetShiftState [14:14:45]wFMCommunicate request_size=4 [14:14:45]MH_SAM_APDU [14:14:45]CAPDU: 80 13 01 00 [14:14:45]Write to MH i2c: E2 08 00 36 20 80 13 01 00 00 00 00 00 D3 [14:14:45]Write i2c OK [14:14:45]MH_I2C_Read... [14:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:45]Read from MH i2c: E2 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 0E 00 [14:14:45]MH_I2C_Read... [14:14:45]Read from MH i2c: E2 0E 00 36 20 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 59 [14:14:45]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:14:45]wFMCommunicate OK [14:14:45]SAM_PROTO_GetShiftState done [14:14:45]FM_GetShiftState done [14:14:45]req_shift_opened done [14:14:45]requested_item shift.open_date is exist - process it [14:14:45]req_shift_open_date [14:14:45]req_shift_open_date done [14:14:45]produce_requested_data done [14:14:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67662,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [14:14:45]process_action_free close_receipt [14:14:45]json_value_free [14:14:45]json_value_free done [14:14:45]process_json_proto returns [14:14:45]Send response to host [14:14:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67662,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [14:14:45]free response buf [14:14:45]execute_script done [14:14:45]execute_script returns [14:14:45]free content buf [14:14:45]Sock 10.Close socket [14:14:45]Sock 10.Thread stoped [14:14:47]OFD Sender: No OFD packet to send [14:14:52]OFD Sender: No OFD packet to send [14:14:57]OFD Sender: No OFD packet to send [14:15:02]OFD Sender: No OFD packet to send [14:15:07]OFD Sender: No OFD packet to send [14:15:12]OFD Sender: No OFD packet to send [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]OFD Sender: No OFD packet to send [14:15:32]OFD Sender: No OFD packet to send [14:15:37]OFD Sender: No OFD packet to send [14:15:42]OFD Sender: No OFD packet to send [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:28]accept exits with 7 [14:16:28]New connection [14:16:28]New thread 3067538788 created [14:16:28]Thread 3067395428 joined [14:16:28]Waiting for new connection... [14:16:28] Sock 7.Parse request [14:16:28]Sock 7.Check first char [14:16:28]Sock 7.First char is OK [14:16:28]request: POST /json_proto HTTP/1.0 [14:16:28]Method: POST [14:16:28]URL: /json_proto [14:16:28]Method is POST - this is cgi request [14:16:28]url: /json_proto [14:16:28]query_string will be loaded in cgi processing [14:16:28]execute_cgi json_proto POST (null) [14:16:28]execute_cgi path=json_proto method=POST [14:16:28]POST find Content-Length [14:16:28]Host: 172.17.41.195:8080 [14:16:28]Content-Length: 979 [14:16:28]Content-Type: application/json [14:16:28] [14:16:28]POST finish read [14:16:28]Found Content-Length = 979 [14:16:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507803", "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" : 73.70, "quantity" : 122.120, "sum" : 9000.24, "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 122.12 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:28]execute_script... [14:16: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)507803", "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" : 73.70, "quantity" : 122.120, "sum" : 9000.24, "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 122.12 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:28]POST & json_proto [14:16:28]process_json_proto [14:16:28]json parsed OK: [14:16:28]protocol is kg_v1.0 [14:16:28]action value=close_receipt [14:16:28]process_action close_receipt [14:16:28]cmd_close_receipt [14:16:28]MH_GetDate [14:16:28]Write to MH i2c: F0 00 00 37 20 46 [14:16:28]Write i2c OK [14:16:28]MH_I2C_Read... [14:16:28]Read from MH i2c: F0 [14:16:28]MH_I2C_Read... [14:16:28]Read from MH i2c: F0 09 00 [14:16:28]MH_I2C_Read... [14:16:28]Read from MH i2c: F0 09 00 37 20 00 BF 66 47 66 FC 21 6F 64 11 [14:16:28]GetLastDocTimeStamp 1715955283 [14:16:28]current date 1715955391 [14:16:28]FM_GetShiftState [14:16:28]SAM_PROTO_GetShiftState [14:16:28]wFMCommunicate request_size=4 [14:16:28]MH_SAM_APDU [14:16:28]CAPDU: 80 13 01 00 [14:16:28]Write to MH i2c: E2 08 00 38 20 80 13 01 00 00 00 00 00 D5 [14:16:28]Write i2c OK [14:16:28]MH_I2C_Read... [14:16:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:28]Read from MH i2c: E2 [14:16:28]MH_I2C_Read... [14:16:28]Read from MH i2c: E2 0E 00 [14:16:28]MH_I2C_Read... [14:16:28]Read from MH i2c: E2 0E 00 38 20 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 5B [14:16:28]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:16:28]wFMCommunicate OK [14:16:28]SAM_PROTO_GetShiftState done [14:16:28]FM_GetShiftState done [14:16:28]opened in 1715905068 [14:16:28]opened+sec_in_day 1715991468 [14:16:28]quantity*price = 900024 [14:16:28]sum+1 = 900025 [14:16:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 9000.00 Внесено: 9000.00 СДАЧА: 0.00 НСП 1% : 79.65 НДС 12% : 955.78 Наличными: 9000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 72 17.05.2024 14:16 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Дисконтная программа ДТ номер 91 сэкономлено 122.12 сом ФМ: 0000000000871829 ФД: 67663 ФПД: 36157812077293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T141631&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67663&fm=36157812077293&tin=02508201610067®Number=0000000000091845&sum=900000 [14:16:29]StoreToDocumentArchive [14:16:29]shift 358 fd 67663 [14:16:29]save to /storage/0358/doc_00067663 [14:16:29]save last doc name /storage/0358/doc_00067663 to /storage/kkm_last_doc_name [14:16:29]save OK [14:16:29]Clear old archive folders... [14:16:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:16:29]tlvbuf is 016542D0 [14:16:29]SAM_PROTO_ClearQueue [14:16:29]wFMCommunicate request_size=4 [14:16:29]MH_SAM_APDU [14:16:29]CAPDU: 80 09 00 00 [14:16:29]Write to MH i2c: E2 08 00 45 20 80 09 00 00 00 00 00 00 D7 [14:16:29]Write i2c OK [14:16:29]MH_I2C_Read... [14:16:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:29]Read from MH i2c: E2 [14:16:29]MH_I2C_Read... [14:16:29]Read from MH i2c: E2 03 00 [14:16:29]MH_I2C_Read... [14:16:29]Read from MH i2c: E2 03 00 45 20 00 90 00 D9 [14:16:29]RAPDU: 90 00 [14:16:29]wFMCommunicate OK [14:16:29]SAM_PROTO_ClearQueue done [14:16:29]KKMCreateOFDPacket [14:16:29]OFDProtocolAddRootSTLVToBuf [14:16:29]FM_MakeSignedData [14:16:29]FM_MakeSignedData [14:16:29]SAM_PROTO_SignData [14:16:29]wFMCommunicate request_size=4 [14:16:29]MH_SAM_APDU [14:16:29]CAPDU: 80 0D 01 02 [14:16:29]Write to MH i2c: E2 08 00 46 20 80 0D 01 02 00 00 00 00 DF [14:16:29]Write i2c OK [14:16:29]MH_I2C_Read... [14:16:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:29]Read from MH i2c: E2 [14:16:29]MH_I2C_Read... [14:16:29]Read from MH i2c: E2 03 00 [14:16:29]MH_I2C_Read... [14:16:29]Read from MH i2c: E2 03 00 46 20 00 90 00 DA [14:16:29]RAPDU: 90 00 [14:16:29]wFMCommunicate OK [14:16:29]wFMCommunicate request_size=255 [14:16:29]MH_SAM_APDU [14:16: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 08 DD 01 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 B8 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 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 5A 75 01 00 00 00 07 04 06 00 A0 BB 0D 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 BF 66 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 20 E2 A5 8B [14:16:29]Write to MH i2c: E2 02 01 47 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 08 DD 01 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 B8 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 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 5A 75 01 00 00 00 07 04 06 00 A0 BB 0D 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 BF 66 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 20 E2 A5 8B 00 00 74 [14:16:29]Write i2c OK [14:16:29]MH_I2C_Read... [14:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:29]Read from MH i2c: E2 [14:16:29]MH_I2C_Read... [14:16:29]Read from MH i2c: E2 03 00 [14:16:29]MH_I2C_Read... [14:16:29]Read from MH i2c: E2 03 00 47 20 00 90 00 DB [14:16:29]RAPDU: 90 00 [14:16:29]wFMCommunicate OK [14:16:29]wFMCommunicate request_size=7 [14:16:29]MH_SAM_APDU [14:16:29]CAPDU: 80 0D 02 02 02 72 ED [14:16:29]Write to MH i2c: E2 0A 00 48 20 80 0D 02 02 02 00 72 ED 00 00 45 [14:16:29]Write i2c OK [14:16:29]MH_I2C_Read... [14:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:29]Read from MH i2c: E2 [14:16:29]MH_I2C_Read... [14:16:29]Read from MH i2c: E2 03 00 [14:16:29]MH_I2C_Read... [14:16:29]Read from MH i2c: E2 03 00 48 20 00 90 00 DC [14:16:29]RAPDU: 90 00 [14:16:29]wFMCommunicate OK [14:16:29]wFMCommunicate request_size=4 [14:16:29]MH_SAM_APDU [14:16:29]CAPDU: 80 0D 03 02 [14:16:29]Write to MH i2c: E2 08 00 49 20 80 0D 03 02 00 00 00 00 E4 [14:16:29]Write i2c OK [14:16:29]MH_I2C_Read... [14:16:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:29]Read from MH i2c: E2 [14:16:29]MH_I2C_Read... [14:16:29]Read from MH i2c: E2 0B 00 [14:16:29]MH_I2C_Read... [14:16:29]Read from MH i2c: E2 0B 00 49 20 00 14 61 D4 1D FE A4 1F BD 90 00 C9 [14:16:29]RAPDU: 14 61 D4 1D FE A4 1F BD 90 00 [14:16:29]wFMCommunicate OK [14:16:29]SAM_PROTO_SignData done [14:16:29]FM_MakeSignedData done [14:16:29]CreateOFDProtocolMessage [14:16:29]wFMCommunicate request_size=4 [14:16:29]MH_SAM_APDU [14:16:29]CAPDU: 80 11 00 00 [14:16:29]Write to MH i2c: E2 08 00 4A 20 80 11 00 00 00 00 00 00 E4 [14:16:29]Write i2c OK [14:16:29]MH_I2C_Read... [14:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:29]Read from MH i2c: E2 [14:16:29]MH_I2C_Read... [14:16:29]Read from MH i2c: E2 17 00 [14:16:29]MH_I2C_Read... [14:16:29]Read from MH i2c: E2 17 00 4A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3A [14:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:16:29]wFMCommunicate OK [14:16:29]CreateOFDProtocolMessage done [14:16:29]OFDSenderStorePacket 67663 [14:16:29]StoreOFDPacket docnum=67663 [14:16: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 BD C4 04 01 F7 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 DD 01 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 B8 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 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 5A 75 01 00 00 00 07 04 06 00 A0 BB 0D 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 BF 66 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 20 E2 A5 8B 72 ED 14 61 D4 1D FE A4 1F BD [14:16:29]CheckFolder [14:16:29]dirname=/storage/ofd_packets [14:16:29]CheckFolder done [14:16:29]ProducePacketName [14:16:29]name=ofd_packets/00067663 [14:16:29]NVStorageSaveData ofd_packets/00067663 [14:16:29]File name is /storage/ofd_packets/00067663 [14:16:29]Write 298 bytes [14:16:29]NVStorageSaveData done [14:16:29]OFDSenderStorePacket done [14:16:29]KKMCreateOFDPacket done [14:16:29]NVStorageSaveData kkm_last_timestamp [14:16:29]File name is /storage/kkm_last_timestamp [14:16:29]Write 4 bytes [14:16:29]NVStorageSaveData done [14:16:29]ExternCall_PrintAddStr [14:16:29]wPrintStart [14:16:29]Write to MH i2c: 01 00 00 4B 20 6B [14:16:29]Write i2c OK [14:16:29]MH_I2C_Read... [14:16:29]Read from MH i2c: 01 [14:16:29]MH_I2C_Read... [14:16:29]Read from MH i2c: 01 07 00 [14:16:29]MH_I2C_Read... [14:16:29]Read from MH i2c: 01 07 00 4B 20 00 00 00 00 00 FF 0F 80 [14:16:29]RasterBufferAndPrint [14:16:29]line Счет N : (1)507803 [14:16:29]line ИНН: 02508201610067 [14:16:29]line Контрольно-Кассовый Чек [14:16:29]line ПРОДАЖА [14:16:29]line ТРК (МРК, ГНК) : 11 [14:16:29]line Товар: 2710194210 [14:16:29]line ДТ-К-5 [14:16:29]line 122.120 * 73.70 [14:16:29]line = 9000.24 [14:16:29]line НДС 12% НСП 1% [14:16:29]line > о реализуемом товаре [14:16:29]line ОКРУГЛЕНИЕ: -0.24 [14:16:29]line ИТОГО: 9000.00 [14:16:29]line Внесено: 9000.00 [14:16:29]line СДАЧА: 0.00 [14:16:29]line НСП 1% : 79.65 [14:16:29]line НДС 12% : 955.78 [14:16:29]line Наличными: 9000.00 [14:16:29]line Безнал.: 0.00 [14:16:29]line Место: АЗС № 91 "Партнер Нефть" [14:16:29]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:16:29]line СНО: Общий режим [14:16:29]line Чек 72 17.05.2024 14:16 [14:16:29]line Смена: 358 ФФД: 1.0 [14:16:29]line ЗНМ: 0300000119 [14:16:29]line РНМ: 0000000000091845 [14:16:29]line Версия ККМ: 001 [14:16:29]line [14:16:29]line Дисконтная программа [14:16:29]line ДТ [14:16:29]line номер 91 [14:16:29]line сэкономлено 122.12 сом [14:16:29]line ФМ: 0000000000871829 [14:16:29]line ФД: 67663 [14:16:29]line ФПД: 36157812077293 [14:16:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T141631&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67663&fm=36157812077293&tin=02508201610067®Number=0000000000091845&sum=900000 [14:16:30]OFD Sender: Processing packet 67663 [packets to send 35, broken 34] [14:16:30]ProducePacketName [14:16:30]name=ofd_packets/00067663 [14:16:30]OFD Sender: To server: pG, [14:16:30]CommunicateWithHost lk.salyk.kg:30040 [14:16:30]ConnectInit lk.salyk.kg [14:16:30]written 0, free lines is 4095 [14:16:30]Connected sock=10 [14:16: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 BD C4 04 01 F7 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 DD 01 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 B8 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 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 5A 75 01 00 00 00 07 04 06 00 A0 BB 0D 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 BF 66 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 20 E2 A5 8B 72 ED 14 61 D4 1D FE A4 1F BD [14:16: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 41 2C 47 00 37 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 97 0E 47 66 B6 04 01 00 00 64 B8 53 00 87 45 C1 62 [14:16:30]CommunicateWithHost err = 0 [14:16:30]CheckOFDResponse [14:16:30]1017 (14) - 77093643461234 [14:16:30]1041 (16) - 0000000000871829 [14:16:30]1040 (4) - 67663 [14:16:30]1012 (4) - 17.05.2024 08:00 [14:16:30]1206 (1) - 0 [14:16:30]OFD Sender: Remove packet 67663 [14:16:30]ProducePacketName [14:16:30]name=ofd_packets/00067663 [14:16:30]NVStorageDeleteData [14:16:30]Write to MH i2c: 01 00 00 7A 20 9A [14:16:30]Write i2c OK [14:16:30]MH_I2C_Read... [14:16:30]Read from MH i2c: 01 [14:16:30]MH_I2C_Read... [14:16:30]Read from MH i2c: 01 07 00 [14:16:30]MH_I2C_Read... [14:16:30]Read from MH i2c: 01 07 00 7A 20 00 00 00 00 00 78 0C 25 [14:16:30]RasterBufferAndPrint [14:16:30]line [14:16:30]line [14:16:30]line [14:16:30]line [14:16:30]line [14:16:30]written 0, free lines is 3196 [14:16:30]MH_Cut [14:16:30]Write to MH i2c: D1 01 00 81 20 01 73 [14:16:30]Write i2c OK [14:16:30]MH_I2C_Read... [14:16:30]Read from MH i2c: D1 [14:16:30]MH_I2C_Read... [14:16:30]Read from MH i2c: D1 01 00 [14:16:30]MH_I2C_Read... [14:16:30]Read from MH i2c: D1 01 00 81 20 00 72 [14:16:30]Write to MH i2c: 01 00 00 82 20 A2 [14:16:30]Write i2c OK [14:16:30]MH_I2C_Read... [14:16:31]OFD Sender: No OFD packet to send [14:16:31]*** Cut start [14:16:31]*** Purtial cut [14:16:31]*** Stage 1: CUTSNS_PIN = 1 [14:16:31]Read from MH i2c: 01 [14:16:31]MH_I2C_Read... [14:16:31]*** Stop cut motor [14:16:31]*** Cut end [14:16:31]Read from MH i2c: 01 07 00 [14:16:31]MH_I2C_Read... [14:16:31]Read from MH i2c: 01 07 00 82 20 00 00 00 00 00 FF 0F B7 [14:16:31]process_action close_receipt done [14:16:31]requested_data is exist [14:16:31]produce_requested_data [14:16:31]requested_item fm.sn is exist - process it [14:16:31]wFMCommunicate request_size=4 [14:16:31]MH_SAM_APDU [14:16:31]CAPDU: 80 11 00 00 [14:16:31]Write to MH i2c: E2 08 00 83 20 80 11 00 00 00 00 00 00 1D [14:16:31]Write i2c OK [14:16:31]MH_I2C_Read... [14:16:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:32]Read from MH i2c: E2 [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: E2 17 00 [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: E2 17 00 83 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 73 [14: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 [14:16:32]wFMCommunicate OK [14:16:32]requested_item fd.num is exist - process it [14:16:32]SAM_PROTO_GetFieldsCounters [14:16:32]wFMCommunicate request_size=4 [14:16:32]MH_SAM_APDU [14:16:32]CAPDU: 80 13 00 00 [14:16:32]Write to MH i2c: E2 08 00 84 20 80 13 00 00 00 00 00 00 20 [14:16:32]Write i2c OK [14:16:32]MH_I2C_Read... [14:16:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:32]Read from MH i2c: E2 [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: E2 62 00 [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: E2 62 00 84 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 4F 08 01 00 0E 04 04 00 66 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 DD [14: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 4F 08 01 00 0E 04 04 00 66 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 [14:16:32]wFMCommunicate OK [14:16:32]SAM_PROTO_GetFieldsCounters done [14:16:32]requested_item shift.num is exist - process it [14:16:32]requested_item shift.opened is exist - process it [14:16:32]req_shift_opened [14:16:32]FM_GetShiftState [14:16:32]SAM_PROTO_GetShiftState [14:16:32]wFMCommunicate request_size=4 [14:16:32]MH_SAM_APDU [14:16:32]CAPDU: 80 13 01 00 [14:16:32]Write to MH i2c: E2 08 00 85 20 80 13 01 00 00 00 00 00 22 [14:16:32]Write i2c OK [14:16:32]MH_I2C_Read... [14:16:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:32]Read from MH i2c: E2 [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: E2 0E 00 [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: E2 0E 00 85 20 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 A8 [14:16:32]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:16:32]wFMCommunicate OK [14:16:32]SAM_PROTO_GetShiftState done [14:16:32]FM_GetShiftState done [14:16:32]req_shift_opened done [14:16:32]requested_item shift.open_date is exist - process it [14:16:32]req_shift_open_date [14:16:32]req_shift_open_date done [14:16:32]produce_requested_data done [14:16:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67663,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [14:16:32]process_action_free close_receipt [14:16:32]json_value_free [14:16:32]json_value_free done [14:16:32]process_json_proto returns [14:16:32]Send response to host [14:16:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67663,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [14:16:32]free response buf [14:16:32]execute_script done [14:16:32]execute_script returns [14:16:32]free content buf [14:16:32]Sock 7.Close socket [14:16:32]Sock 7.Thread stoped [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:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:40]accept exits with 9 [14:19:40]New connection [14:19:40]New thread 3067395428 created [14:19:40]Thread 3067538788 joined [14:19:40]Waiting for new connection... [14:19:40] Sock 9.Parse request [14:19:40]Sock 9.Check first char [14:19:40]Sock 9.First char is OK [14:19:40]request: POST /json_proto HTTP/1.0 [14:19:40]Method: POST [14:19:40]URL: /json_proto [14:19:40]Method is POST - this is cgi request [14:19:40]url: /json_proto [14:19:40]query_string will be loaded in cgi processing [14:19:40]execute_cgi json_proto POST (null) [14:19:40]execute_cgi path=json_proto method=POST [14:19:40]POST find Content-Length [14:19:40]Host: 172.17.41.195:8080 [14:19:40]Content-Length: 1180 [14:19:40]Content-Type: application/json [14:19:40] [14:19:40]POST finish read [14:19:40]Found Content-Length = 1180 [14:19: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507806\u000A17.05.2024 14:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.490 x 66.80\u000A\u0418\u0422\u041E\u0413: 500.33\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:40]execute_script... [14:19: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507806\u000A17.05.2024 14:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 7.490 x 66.80\u000A\u0418\u0422\u041E\u0413: 500.33\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:40]POST & json_proto [14:19:40]process_json_proto [14:19:40]json parsed OK: [14:19:40]protocol is kg_v1.0 [14:19:40]action value=print_text [14:19:40]process_action print_text [14:19:40]cmd_print_text [14:19:40]ExternCall_PrintAddStr [14:19:40]wPrintStart [14:19:40]Write to MH i2c: 01 00 00 86 20 A6 [14:19:40]Write i2c OK [14:19:40]MH_I2C_Read... [14:19:40]Read from MH i2c: 01 [14:19:40]MH_I2C_Read... [14:19:40]Read from MH i2c: 01 07 00 [14:19:40]MH_I2C_Read... [14:19:40]Read from MH i2c: 01 07 00 86 20 00 00 00 00 00 FF 0F BB [14:19:40]RasterBufferAndPrint [14:19:40]line *****ТОВАРНЫЙ ЧЕК***** [14:19:40]line АЗС-91 [14:19:40]line Партнер нефть [14:19:40]line 02508201610067 [14:19:40]line Кассир : Адишов И. [14:19:40]line Счет N : (1)507806 [14:19:40]line 17.05.2024 14:02 [14:19:40]line ПРОДАЖА [14:19:40]line ТРК (МРК, ГНК): 33 [14:19:40]line Вид ГСМ : 2710124130 [14:19:40]line Аи-92-К-5 [14:19:40]line 7.490 x 66.80 [14:19:40]line ИТОГ: 500.33 [14:19:40]line Тип оплаты: Талоны: Топливная Карта [14:19:40]line 02750 [14:19:40]line ______________________ [14:19:40]line (подпись) [14:19:40]written 0, free lines is 4095 [14:19:40]Write to MH i2c: 01 00 00 9A 20 BA [14:19:40]Write i2c OK [14:19:40]MH_I2C_Read... [14:19:40]Read from MH i2c: 01 [14:19:40]MH_I2C_Read... [14:19:40]Read from MH i2c: 01 07 00 [14:19:40]MH_I2C_Read... [14:19:40]Read from MH i2c: 01 07 00 9A 20 00 00 00 00 00 0F 0E DE [14:19:40]RasterBufferAndPrint [14:19:40]line [14:19:40]line [14:19:40]line [14:19:40]line [14:19:40]line [14:19:40]written 0, free lines is 3600 [14:19:40]MH_Cut [14:19:40]Write to MH i2c: D1 01 00 A1 20 01 93 [14:19:40]Write i2c OK [14:19:40]MH_I2C_Read... [14:19:40]Read from MH i2c: D1 [14:19:40]MH_I2C_Read... [14:19:40]Read from MH i2c: D1 01 00 [14:19:40]MH_I2C_Read... [14:19:40]Read from MH i2c: D1 01 00 A1 20 00 92 [14:19:40]Write to MH i2c: 01 00 00 A2 20 C2 [14:19:40]Write i2c OK [14:19:40]MH_I2C_Read... [14:19:41]OFD Sender: No OFD packet to send [14:19:41]*** Cut start [14:19:41]*** Purtial cut [14:19:41]*** CUTSNS_PIN = 0 [14:19:41]*** Stage 1: CUTSNS_PIN = 1 [14:19:43]Read from MH i2c: 01 [14:19:43]MH_I2C_Read... [14:19:43]*** Stop cut motor [14:19:43]*** Cut end [14:19:43]Read from MH i2c: 01 07 00 [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: 01 07 00 A2 20 00 00 00 00 00 FF 0F D7 [14:19:43]process_action print_text done [14:19:43]requested_data is exist [14:19:43]produce_requested_data [14:19:43]requested_item fm.sn is exist - process it [14:19:43]wFMCommunicate request_size=4 [14:19:43]MH_SAM_APDU [14:19:43]CAPDU: 80 11 00 00 [14:19:43]Write to MH i2c: E2 08 00 A3 20 80 11 00 00 00 00 00 00 3D [14:19:43]Write i2c OK [14:19:43]MH_I2C_Read... [14:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:43]Read from MH i2c: E2 [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: E2 17 00 [14:19:43]MH_I2C_Read... [14:19:43]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 [14:19:43]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:43]wFMCommunicate OK [14:19:43]requested_item fd.num is exist - process it [14:19:43]SAM_PROTO_GetFieldsCounters [14:19:43]wFMCommunicate request_size=4 [14:19:43]MH_SAM_APDU [14:19:43]CAPDU: 80 13 00 00 [14:19:43]Write to MH i2c: E2 08 00 A4 20 80 13 00 00 00 00 00 00 40 [14:19:43]Write i2c OK [14:19:43]MH_I2C_Read... [14:19:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:43]Read from MH i2c: E2 [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: E2 62 00 [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: E2 62 00 A4 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 4F 08 01 00 0E 04 04 00 66 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 FD [14:19: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 4F 08 01 00 0E 04 04 00 66 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 [14:19:43]wFMCommunicate OK [14:19:43]SAM_PROTO_GetFieldsCounters done [14:19:43]requested_item shift.num is exist - process it [14:19:43]requested_item shift.opened is exist - process it [14:19:43]req_shift_opened [14:19:43]FM_GetShiftState [14:19:43]SAM_PROTO_GetShiftState [14:19:43]wFMCommunicate request_size=4 [14:19:43]MH_SAM_APDU [14:19:43]CAPDU: 80 13 01 00 [14:19:43]Write to MH i2c: E2 08 00 A5 20 80 13 01 00 00 00 00 00 42 [14:19:43]Write i2c OK [14:19:43]MH_I2C_Read... [14:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:43]Read from MH i2c: E2 [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: E2 0E 00 [14:19:43]MH_I2C_Read... [14:19:43]Read from MH i2c: E2 0E 00 A5 20 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 C8 [14:19:43]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:19:43]wFMCommunicate OK [14:19:43]SAM_PROTO_GetShiftState done [14:19:43]FM_GetShiftState done [14:19:43]req_shift_opened done [14:19:43]requested_item shift.open_date is exist - process it [14:19:43]req_shift_open_date [14:19:43]req_shift_open_date done [14:19:43]produce_requested_data done [14:19:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67663,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [14:19:43]process_action_free print_text [14:19:43]json_value_free [14:19:43]json_value_free done [14:19:43]process_json_proto returns [14:19:43]Send response to host [14:19:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67663,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [14:19:43]free response buf [14:19:43]execute_script done [14:19:43]execute_script returns [14:19:43]free content buf [14:19:43]Sock 9.Close socket [14:19:43]Sock 9.Thread stoped [14:19:46]OFD Sender: No OFD packet to send [14:19:50]accept exits with 7 [14:19:50]New connection [14:19:50]New thread 3067538788 created [14:19:50]Thread 3067395428 joined [14:19:50]Waiting for new connection... [14:19:50] Sock 7.Parse request [14:19:50]Sock 7.Check first char [14:19:50]Sock 7.First char is OK [14:19:50]request: POST /json_proto HTTP/1.0 [14:19:50]Method: POST [14:19:50]URL: /json_proto [14:19:50]Method is POST - this is cgi request [14:19:50]url: /json_proto [14:19:50]query_string will be loaded in cgi processing [14:19:50]execute_cgi json_proto POST (null) [14:19:50]execute_cgi path=json_proto method=POST [14:19:50]POST find Content-Length [14:19:50]Host: 172.17.41.195:8080 [14:19:50]Content-Length: 979 [14:19:50]Content-Type: application/json [14:19:50] [14:19:50]POST finish read [14:19:50]Found Content-Length = 979 [14:19:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507805", "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" : 73.70, "quantity" : 122.120, "sum" : 9000.24, "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 122.12 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:50]execute_script... [14:19: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)507805", "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" : 73.70, "quantity" : 122.120, "sum" : 9000.24, "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 122.12 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:50]POST & json_proto [14:19:50]process_json_proto [14:19:50]json parsed OK: [14:19:50]protocol is kg_v1.0 [14:19:50]action value=close_receipt [14:19:50]process_action close_receipt [14:19:50]cmd_close_receipt [14:19:50]MH_GetDate [14:19:50]Write to MH i2c: F0 00 00 A6 20 B5 [14:19:50]Write i2c OK [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: F0 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: F0 09 00 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: F0 09 00 A6 20 00 8A 67 47 66 FC 21 6F 64 4C [14:19:50]GetLastDocTimeStamp 1715955391 [14:19:50]current date 1715955594 [14:19:50]FM_GetShiftState [14:19:50]SAM_PROTO_GetShiftState [14:19:50]wFMCommunicate request_size=4 [14:19:50]MH_SAM_APDU [14:19:50]CAPDU: 80 13 01 00 [14:19:50]Write to MH i2c: E2 08 00 A7 20 80 13 01 00 00 00 00 00 44 [14:19:50]Write i2c OK [14:19:50]MH_I2C_Read... [14:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:50]Read from MH i2c: E2 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: E2 0E 00 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: E2 0E 00 A7 20 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CA [14:19:50]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:19:50]wFMCommunicate OK [14:19:50]SAM_PROTO_GetShiftState done [14:19:50]FM_GetShiftState done [14:19:50]opened in 1715905068 [14:19:50]opened+sec_in_day 1715991468 [14:19:50]quantity*price = 900024 [14:19:50]sum+1 = 900025 [14:19:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 9000.00 Внесено: 9000.00 СДАЧА: 0.00 НСП 1% : 79.65 НДС 12% : 955.78 Наличными: 9000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 73 17.05.2024 14:19 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Дисконтная программа ДТ номер 91 сэкономлено 122.12 сом ФМ: 0000000000871829 ФД: 67664 ФПД: 98908966569830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T141954&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67664&fm=98908966569830&tin=02508201610067®Number=0000000000091845&sum=900000 [14:19:52]StoreToDocumentArchive [14:19:52]shift 358 fd 67664 [14:19:52]save to /storage/0358/doc_00067664 [14:19:52]save last doc name /storage/0358/doc_00067664 to /storage/kkm_last_doc_name [14:19:52]save OK [14:19:52]Clear old archive folders... [14:19:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:19:52]tlvbuf is B6F37350 [14:19:52]SAM_PROTO_ClearQueue [14:19:52]wFMCommunicate request_size=4 [14:19:52]MH_SAM_APDU [14:19:52]CAPDU: 80 09 00 00 [14:19:52]Write to MH i2c: E2 08 00 B4 20 80 09 00 00 00 00 00 00 46 [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:52]Read from MH i2c: E2 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 03 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 03 00 B4 20 00 90 00 48 [14:19:52]RAPDU: 90 00 [14:19:52]wFMCommunicate OK [14:19:52]SAM_PROTO_ClearQueue done [14:19:52]KKMCreateOFDPacket [14:19:52]OFDProtocolAddRootSTLVToBuf [14:19:52]FM_MakeSignedData [14:19:52]FM_MakeSignedData [14:19:52]SAM_PROTO_SignData [14:19:52]wFMCommunicate request_size=4 [14:19:52]MH_SAM_APDU [14:19:52]CAPDU: 80 0D 01 02 [14:19:52]Write to MH i2c: E2 08 00 B5 20 80 0D 01 02 00 00 00 00 4E [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:52]Read from MH i2c: E2 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 03 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 03 00 B5 20 00 90 00 49 [14:19:52]RAPDU: 90 00 [14:19:52]wFMCommunicate OK [14:19:52]wFMCommunicate request_size=255 [14:19:52]MH_SAM_APDU [14:19: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 08 DD 01 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 B8 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 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 5A 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 8A 67 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 50 08 01 00 35 04 06 00 59 F5 09 D1 [14:19:52]Write to MH i2c: E2 02 01 B6 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 08 DD 01 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 B8 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 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 5A 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 8A 67 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 50 08 01 00 35 04 06 00 59 F5 09 D1 00 00 A7 [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:52]Read from MH i2c: E2 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 03 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 03 00 B6 20 00 90 00 4A [14:19:52]RAPDU: 90 00 [14:19:52]wFMCommunicate OK [14:19:52]wFMCommunicate request_size=7 [14:19:52]MH_SAM_APDU [14:19:52]CAPDU: 80 0D 02 02 02 47 66 [14:19:52]Write to MH i2c: E2 0A 00 B7 20 80 0D 02 02 02 00 47 66 00 00 02 [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:52]Read from MH i2c: E2 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 03 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 03 00 B7 20 00 90 00 4B [14:19:52]RAPDU: 90 00 [14:19:52]wFMCommunicate OK [14:19:52]wFMCommunicate request_size=4 [14:19:52]MH_SAM_APDU [14:19:52]CAPDU: 80 0D 03 02 [14:19:52]Write to MH i2c: E2 08 00 B8 20 80 0D 03 02 00 00 00 00 53 [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:52]Read from MH i2c: E2 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 0B 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 0B 00 B8 20 00 69 88 8B 0B D1 81 4E 86 90 00 01 [14:19:52]RAPDU: 69 88 8B 0B D1 81 4E 86 90 00 [14:19:52]wFMCommunicate OK [14:19:52]SAM_PROTO_SignData done [14:19:52]FM_MakeSignedData done [14:19:52]CreateOFDProtocolMessage [14:19:52]wFMCommunicate request_size=4 [14:19:52]MH_SAM_APDU [14:19:52]CAPDU: 80 11 00 00 [14:19:52]Write to MH i2c: E2 08 00 B9 20 80 11 00 00 00 00 00 00 53 [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:52]Read from MH i2c: E2 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 17 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 17 00 B9 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A9 [14:19:52]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:52]wFMCommunicate OK [14:19:52]CreateOFDProtocolMessage done [14:19:52]OFDSenderStorePacket 67664 [14:19:52]StoreOFDPacket docnum=67664 [14:19: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 C6 8A 04 01 A8 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 08 DD 01 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 B8 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 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 5A 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 8A 67 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 50 08 01 00 35 04 06 00 59 F5 09 D1 47 66 69 88 8B 0B D1 81 4E 86 [14:19:52]CheckFolder [14:19:52]dirname=/storage/ofd_packets [14:19:52]CheckFolder done [14:19:52]ProducePacketName [14:19:52]name=ofd_packets/00067664 [14:19:52]NVStorageSaveData ofd_packets/00067664 [14:19:52]File name is /storage/ofd_packets/00067664 [14:19:52]Write 298 bytes [14:19:52]NVStorageSaveData done [14:19:52]OFDSenderStorePacket done [14:19:52]KKMCreateOFDPacket done [14:19:52]NVStorageSaveData kkm_last_timestamp [14:19:52]File name is /storage/kkm_last_timestamp [14:19:52]Write 4 bytes [14:19:52]NVStorageSaveData done [14:19:52]ExternCall_PrintAddStr [14:19:52]wPrintStart [14:19:52]Write to MH i2c: 01 00 00 BA 20 DA [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: 01 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: 01 07 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: 01 07 00 BA 20 00 00 00 00 00 FF 0F EF [14:19:52]RasterBufferAndPrint [14:19:52]line Счет N : (1)507805 [14:19:52]line ИНН: 02508201610067 [14:19:52]line Контрольно-Кассовый Чек [14:19:52]line ПРОДАЖА [14:19:52]line ТРК (МРК, ГНК) : 21 [14:19:52]line Товар: 2710194210 [14:19:52]line ДТ-К-5 [14:19:52]line 122.120 * 73.70 [14:19:52]line = 9000.24 [14:19:52]line НДС 12% НСП 1% [14:19:52]line > о реализуемом товаре [14:19:52]line ОКРУГЛЕНИЕ: -0.24 [14:19:52]line ИТОГО: 9000.00 [14:19:52]line Внесено: 9000.00 [14:19:52]line СДАЧА: 0.00 [14:19:52]line НСП 1% : 79.65 [14:19:52]line НДС 12% : 955.78 [14:19:52]line Наличными: 9000.00 [14:19:52]line Безнал.: 0.00 [14:19:52]line Место: АЗС № 91 "Партнер Нефть" [14:19:52]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:19:52]line СНО: Общий режим [14:19:52]line Чек 73 17.05.2024 14:19 [14:19:52]line Смена: 358 ФФД: 1.0 [14:19:52]line ЗНМ: 0300000119 [14:19:52]line РНМ: 0000000000091845 [14:19:52]line Версия ККМ: 001 [14:19:52]line [14:19:52]line Дисконтная программа [14:19:52]line ДТ [14:19:52]line номер 91 [14:19:52]line сэкономлено 122.12 сом [14:19:52]line ФМ: 0000000000871829 [14:19:52]line ФД: 67664 [14:19:52]line ФПД: 98908966569830 [14:19:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T141954&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67664&fm=98908966569830&tin=02508201610067®Number=0000000000091845&sum=900000 [14:19:52]OFD Sender: Processing packet 67664 [packets to send 35, broken 34] [14:19:52]ProducePacketName [14:19:52]name=ofd_packets/00067664 [14:19:52]OFD Sender: To server: pG, [14:19:52]CommunicateWithHost lk.salyk.kg:30040 [14:19:52]ConnectInit lk.salyk.kg [14:19:52]written 0, free lines is 4095 [14:19:53]Connected sock=10 [14:19: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 C6 8A 04 01 A8 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 08 DD 01 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 B8 BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 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 5A 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 8A 67 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 50 08 01 00 35 04 06 00 59 F5 09 D1 47 66 69 88 8B 0B D1 81 4E 86 [14:19: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 57 3F 47 00 1E 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 50 08 01 00 F4 03 04 00 62 0F 47 66 B6 04 01 00 00 72 FA 7D 4C CA F2 48 28 [14:19:53]CommunicateWithHost err = 0 [14:19:53]CheckOFDResponse [14:19:53]1017 (14) - 77093643461234 [14:19:53]1041 (16) - 0000000000871829 [14:19:53]1040 (4) - 67664 [14:19:53]1012 (4) - 17.05.2024 08:03 [14:19:53]1206 (1) - 0 [14:19:53]OFD Sender: Remove packet 67664 [14:19:53]ProducePacketName [14:19:53]name=ofd_packets/00067664 [14:19:53]NVStorageDeleteData [14:19:53]Write to MH i2c: 01 00 00 E9 20 09 [14:19:53]Write i2c OK [14:19:53]MH_I2C_Read... [14:19:53]Read from MH i2c: 01 [14:19:53]MH_I2C_Read... [14:19:53]Read from MH i2c: 01 07 00 [14:19:53]MH_I2C_Read... [14:19:53]Read from MH i2c: 01 07 00 E9 20 00 00 00 00 00 7B 0C 97 [14:19:53]RasterBufferAndPrint [14:19:53]line [14:19:53]line [14:19:53]line [14:19:53]line [14:19:53]line [14:19:53]written 0, free lines is 3204 [14:19:53]MH_Cut [14:19:53]Write to MH i2c: D1 01 00 F0 20 01 E2 [14:19:53]Write i2c OK [14:19:53]MH_I2C_Read... [14:19:53]Read from MH i2c: D1 [14:19:53]MH_I2C_Read... [14:19:53]Read from MH i2c: D1 01 00 [14:19:53]MH_I2C_Read... [14:19:53]Read from MH i2c: D1 01 00 F0 20 00 E1 [14:19:53]Write to MH i2c: 01 00 00 F1 20 11 [14:19:53]Write i2c OK [14:19:53]MH_I2C_Read... [14:19:53]OFD Sender: No OFD packet to send [14:19:54]*** Cut start [14:19:54]*** Purtial cut [14:19:54]*** Stage 1: CUTSNS_PIN = 1 [14:19:54]Read from MH i2c: 01 [14:19:54]MH_I2C_Read... [14:19:54]*** Stop cut motor [14:19:54]*** Cut end [14:19:54]Read from MH i2c: 01 07 00 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: 01 07 00 F1 20 00 00 00 00 00 FF 0F 26 [14:19:54]process_action close_receipt done [14:19:54]requested_data is exist [14:19:54]produce_requested_data [14:19:54]requested_item fm.sn is exist - process it [14:19:54]wFMCommunicate request_size=4 [14:19:54]MH_SAM_APDU [14:19:54]CAPDU: 80 11 00 00 [14:19:54]Write to MH i2c: E2 08 00 F2 20 80 11 00 00 00 00 00 00 8C [14:19:54]Write i2c OK [14:19:54]MH_I2C_Read... [14:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:54]Read from MH i2c: E2 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 17 00 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 17 00 F2 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E2 [14:19:54]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:54]wFMCommunicate OK [14:19:54]requested_item fd.num is exist - process it [14:19:54]SAM_PROTO_GetFieldsCounters [14:19:54]wFMCommunicate request_size=4 [14:19:54]MH_SAM_APDU [14:19:54]CAPDU: 80 13 00 00 [14:19:54]Write to MH i2c: E2 08 00 F3 20 80 13 00 00 00 00 00 00 8F [14:19:54]Write i2c OK [14:19:54]MH_I2C_Read... [14:19:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:54]Read from MH i2c: E2 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 62 00 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 62 00 F3 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 50 08 01 00 0E 04 04 00 66 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 50 [14:19: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 50 08 01 00 0E 04 04 00 66 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 [14:19:54]wFMCommunicate OK [14:19:54]SAM_PROTO_GetFieldsCounters done [14:19:54]requested_item shift.num is exist - process it [14:19:54]requested_item shift.opened is exist - process it [14:19:54]req_shift_opened [14:19:54]FM_GetShiftState [14:19:54]SAM_PROTO_GetShiftState [14:19:54]wFMCommunicate request_size=4 [14:19:54]MH_SAM_APDU [14:19:54]CAPDU: 80 13 01 00 [14:19:54]Write to MH i2c: E2 08 00 F4 20 80 13 01 00 00 00 00 00 91 [14:19:54]Write i2c OK [14:19:54]MH_I2C_Read... [14:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:54]Read from MH i2c: E2 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 0E 00 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 0E 00 F4 20 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 17 [14:19:54]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:19:54]wFMCommunicate OK [14:19:54]SAM_PROTO_GetShiftState done [14:19:54]FM_GetShiftState done [14:19:54]req_shift_opened done [14:19:54]requested_item shift.open_date is exist - process it [14:19:54]req_shift_open_date [14:19:54]req_shift_open_date done [14:19:54]produce_requested_data done [14:19:54]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67664,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [14:19:54]process_action_free close_receipt [14:19:54]json_value_free [14:19:54]json_value_free done [14:19:54]process_json_proto returns [14:19:54]Send response to host [14:19:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67664,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [14:19:54]free response buf [14:19:54]execute_script done [14:19:54]execute_script returns [14:19:54]free content buf [14:19:54]Sock 7.Close socket [14:19:54]Sock 7.Thread stoped [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:53]OFD Sender: No OFD packet to send [14:21:58]OFD Sender: No OFD packet to send [14:22:03]OFD Sender: No OFD packet to send [14:22:08]OFD Sender: No OFD packet to send [14:22:13]OFD Sender: No OFD packet to send [14:22:18]OFD Sender: No OFD packet to send [14:22:23]OFD Sender: No OFD packet to send [14:22:28]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:58]OFD Sender: No OFD packet to send [14:23:03]OFD Sender: No OFD packet to send [14:23:08]OFD Sender: No OFD packet to send [14:23:13]OFD Sender: No OFD packet to send [14:23:18]OFD Sender: No OFD packet to send [14:23:23]OFD Sender: No OFD packet to send [14:23:28]OFD Sender: No OFD packet to send [14:23:33]OFD Sender: No OFD packet to send [14:23:38]OFD Sender: No OFD packet to send [14:23:43]OFD Sender: No OFD packet to send [14:23:48]OFD Sender: No OFD packet to send [14:23:53]OFD Sender: No OFD packet to send [14:23:58]OFD Sender: No OFD packet to send [14:24:03]OFD Sender: No OFD packet to send [14:24:08]OFD Sender: No OFD packet to send [14:24:13]OFD Sender: No OFD packet to send [14:24:18]OFD Sender: No OFD packet to send [14:24:23]OFD Sender: No OFD packet to send [14:24:28]OFD Sender: No OFD packet to send [14:24:30]accept exits with 9 [14:24:30]New connection [14:24:30]New thread 3067395428 created [14:24:30]Thread 3067538788 joined [14:24:30]Waiting for new connection... [14:24:30] Sock 9.Parse request [14:24:30]Sock 9.Check first char [14:24:30]Sock 9.First char is OK [14:24:30]request: POST /json_proto HTTP/1.0 [14:24:30]Method: POST [14:24:30]URL: /json_proto [14:24:30]Method is POST - this is cgi request [14:24:30]url: /json_proto [14:24:30]query_string will be loaded in cgi processing [14:24:30]execute_cgi json_proto POST (null) [14:24:30]execute_cgi path=json_proto method=POST [14:24:30]POST find Content-Length [14:24:30]Host: 172.17.41.195:8080 [14:24:30]Content-Length: 1180 [14:24:30]Content-Type: application/json [14:24:30] [14:24:30]POST finish read [14:24:30]Found Content-Length = 1180 [14:24: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507807\u000A17.05.2024 14:07\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.500 x 66.80\u000A\u0418\u0422\u041E\u0413: 300.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:30]execute_script... [14:24: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507807\u000A17.05.2024 14:07\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.500 x 66.80\u000A\u0418\u0422\u041E\u0413: 300.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:30]POST & json_proto [14:24:30]process_json_proto [14:24:30]json parsed OK: [14:24:30]protocol is kg_v1.0 [14:24:30]action value=print_text [14:24:30]process_action print_text [14:24:30]cmd_print_text [14:24:30]ExternCall_PrintAddStr [14:24:30]wPrintStart [14:24:30]Write to MH i2c: 01 00 00 F5 20 15 [14:24:30]Write i2c OK [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: 01 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: 01 07 00 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: 01 07 00 F5 20 00 00 00 00 00 FF 0F 2A [14:24:30]RasterBufferAndPrint [14:24:30]line *****ТОВАРНЫЙ ЧЕК***** [14:24:30]line АЗС-91 [14:24:30]line Партнер нефть [14:24:30]line 02508201610067 [14:24:30]line Кассир : Адишов И. [14:24:30]line Счет N : (1)507807 [14:24:30]line 17.05.2024 14:07 [14:24:30]line ПРОДАЖА [14:24:30]line ТРК (МРК, ГНК): 13 [14:24:30]line Вид ГСМ : 2710124130 [14:24:30]line Аи-92-К-5 [14:24:30]line 4.500 x 66.80 [14:24:30]line ИТОГ: 300.60 [14:24:30]line Тип оплаты: Талоны: Топливная Карта [14:24:30]line 02750 [14:24:30]line ______________________ [14:24:30]line (подпись) [14:24:30]written 0, free lines is 4095 [14:24:30]Write to MH i2c: 01 00 00 09 21 2A [14:24:30]Write i2c OK [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: 01 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: 01 07 00 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: 01 07 00 09 21 00 00 00 00 00 0D 0E 4C [14:24:30]RasterBufferAndPrint [14:24:30]line [14:24:30]line [14:24:30]line [14:24:30]line [14:24:30]line [14:24:30]written 0, free lines is 3598 [14:24:30]MH_Cut [14:24:30]Write to MH i2c: D1 01 00 10 21 01 03 [14:24:30]Write i2c OK [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: D1 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: D1 01 00 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: D1 01 00 10 21 00 02 [14:24:30]Write to MH i2c: 01 00 00 11 21 32 [14:24:30]Write i2c OK [14:24:30]MH_I2C_Read... [14:24:31]*** Cut start [14:24:31]*** Purtial cut [14:24:31]*** CUTSNS_PIN = 0 [14:24:31]*** Stage 1: CUTSNS_PIN = 1 [14:24:33]Read from MH i2c: 01 [14:24:33]MH_I2C_Read... [14:24:33]*** Stop cut motor [14:24:33]*** Cut end [14:24:33]Read from MH i2c: 01 07 00 [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: 01 07 00 11 21 00 00 00 00 00 FF 0F 47 [14:24:33]process_action print_text done [14:24:33]requested_data is exist [14:24:33]produce_requested_data [14:24:33]requested_item fm.sn is exist - process it [14:24:33]wFMCommunicate request_size=4 [14:24:33]MH_SAM_APDU [14:24:33]CAPDU: 80 11 00 00 [14:24:33]Write to MH i2c: E2 08 00 12 21 80 11 00 00 00 00 00 00 AD [14:24:33]Write i2c OK [14:24:33]MH_I2C_Read... [14:24:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:33]Read from MH i2c: E2 [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: E2 17 00 [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: E2 17 00 12 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 03 [14:24:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:24:33]wFMCommunicate OK [14:24:33]requested_item fd.num is exist - process it [14:24:33]SAM_PROTO_GetFieldsCounters [14:24:33]wFMCommunicate request_size=4 [14:24:33]MH_SAM_APDU [14:24:33]CAPDU: 80 13 00 00 [14:24:33]Write to MH i2c: E2 08 00 13 21 80 13 00 00 00 00 00 00 B0 [14:24:33]Write i2c OK [14:24:33]MH_I2C_Read... [14:24:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:33]Read from MH i2c: E2 [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: E2 62 00 [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: E2 62 00 13 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 50 08 01 00 0E 04 04 00 66 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 71 [14:24: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 50 08 01 00 0E 04 04 00 66 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 [14:24:33]wFMCommunicate OK [14:24:33]SAM_PROTO_GetFieldsCounters done [14:24:33]requested_item shift.num is exist - process it [14:24:33]requested_item shift.opened is exist - process it [14:24:33]req_shift_opened [14:24:33]FM_GetShiftState [14:24:33]SAM_PROTO_GetShiftState [14:24:33]wFMCommunicate request_size=4 [14:24:33]MH_SAM_APDU [14:24:33]CAPDU: 80 13 01 00 [14:24:33]Write to MH i2c: E2 08 00 14 21 80 13 01 00 00 00 00 00 B2 [14:24:33]Write i2c OK [14:24:33]MH_I2C_Read... [14:24:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:33]Read from MH i2c: E2 [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: E2 0E 00 [14:24:33]MH_I2C_Read... [14:24:33]Read from MH i2c: E2 0E 00 14 21 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 38 [14:24:33]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:24:33]wFMCommunicate OK [14:24:33]SAM_PROTO_GetShiftState done [14:24:33]FM_GetShiftState done [14:24:33]req_shift_opened done [14:24:33]requested_item shift.open_date is exist - process it [14:24:33]req_shift_open_date [14:24:33]req_shift_open_date done [14:24:33]produce_requested_data done [14:24:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67664,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [14:24:33]process_action_free print_text [14:24:33]json_value_free [14:24:33]json_value_free done [14:24:33]process_json_proto returns [14:24:33]Send response to host [14:24:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67664,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [14:24:33]free response buf [14:24:33]execute_script done [14:24:33]execute_script returns [14:24:33]free content buf [14:24:33]Sock 9.Close socket [14:24:33]Sock 9.Thread stoped [14:24:34]OFD Sender: No OFD packet to send [14:24:39]OFD Sender: No OFD packet to send [14:24:44]OFD Sender: No OFD packet to send [14:24:49]OFD Sender: No OFD packet to send [14:24:54]OFD Sender: No OFD packet to send [14:24:59]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25:09]OFD Sender: No OFD packet to send [14:25:14]OFD Sender: No OFD packet to send [14:25:19]OFD Sender: No OFD packet to send [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:49]OFD Sender: No OFD packet to send [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:47]accept exits with 7 [14:26:47]New connection [14:26:47]New thread 3067538788 created [14:26:47]Thread 3067395428 joined [14:26:47]Waiting for new connection... [14:26:47] Sock 7.Parse request [14:26:47]Sock 7.Check first char [14:26:47]Sock 7.First char is OK [14:26:47]request: POST /json_proto HTTP/1.0 [14:26:47]Method: POST [14:26:47]URL: /json_proto [14:26:47]Method is POST - this is cgi request [14:26:47]url: /json_proto [14:26:47]query_string will be loaded in cgi processing [14:26:47]execute_cgi json_proto POST (null) [14:26:47]execute_cgi path=json_proto method=POST [14:26:47]POST find Content-Length [14:26:47]Host: 172.17.41.195:8080 [14:26:47]Content-Length: 1180 [14:26:47]Content-Type: application/json [14:26:47] [14:26:47]POST finish read [14:26:47]Found Content-Length = 1180 [14:26: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507809\u000A17.05.2024 14:09\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 4.500 x 66.80\u000A\u0418\u0422\u041E\u0413: 300.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:47]execute_script... [14:26: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507809\u000A17.05.2024 14:09\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 4.500 x 66.80\u000A\u0418\u0422\u041E\u0413: 300.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:47]POST & json_proto [14:26:47]process_json_proto [14:26:47]json parsed OK: [14:26:47]protocol is kg_v1.0 [14:26:47]action value=print_text [14:26:47]process_action print_text [14:26:47]cmd_print_text [14:26:47]ExternCall_PrintAddStr [14:26:47]wPrintStart [14:26:47]Write to MH i2c: 01 00 00 15 21 36 [14:26:47]Write i2c OK [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: 01 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: 01 07 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: 01 07 00 15 21 00 00 00 00 00 FF 0F 4B [14:26:47]RasterBufferAndPrint [14:26:47]line *****ТОВАРНЫЙ ЧЕК***** [14:26:47]line АЗС-91 [14:26:47]line Партнер нефть [14:26:47]line 02508201610067 [14:26:47]line Кассир : Адишов И. [14:26:47]line Счет N : (1)507809 [14:26:47]line 17.05.2024 14:09 [14:26:47]line ПРОДАЖА [14:26:47]line ТРК (МРК, ГНК): 23 [14:26:47]line Вид ГСМ : 2710124130 [14:26:47]line Аи-92-К-5 [14:26:47]line 4.500 x 66.80 [14:26:47]line ИТОГ: 300.60 [14:26:47]line Тип оплаты: Талоны: Топливная Карта [14:26:47]line 02750 [14:26:47]line ______________________ [14:26:47]line (подпись) [14:26:47]written 0, free lines is 4095 [14:26:47]Write to MH i2c: 01 00 00 29 21 4A [14:26:47]Write i2c OK [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: 01 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: 01 07 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: 01 07 00 29 21 00 00 00 00 00 0E 0E 6D [14:26:47]RasterBufferAndPrint [14:26:47]line [14:26:47]line [14:26:47]line [14:26:47]line [14:26:47]line [14:26:47]written 0, free lines is 3599 [14:26:47]MH_Cut [14:26:47]Write to MH i2c: D1 01 00 30 21 01 23 [14:26:47]Write i2c OK [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: D1 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: D1 01 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: D1 01 00 30 21 00 22 [14:26:47]Write to MH i2c: 01 00 00 31 21 52 [14:26:47]Write i2c OK [14:26:47]MH_I2C_Read... [14:26:48]*** Cut start [14:26:48]*** Purtial cut [14:26:48]*** Stage 1: CUTSNS_PIN = 1 [14:26:48]Read from MH i2c: 01 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: 01 07 00 [14:26:48]MH_I2C_Read... [14:26:48]*** Stop cut motor [14:26:48]*** Cut end [14:26:48]Read from MH i2c: 01 07 00 31 21 00 00 00 00 00 FF 0F 67 [14:26:48]process_action print_text done [14:26:48]requested_data is exist [14:26:48]produce_requested_data [14:26:48]requested_item fm.sn is exist - process it [14:26:48]wFMCommunicate request_size=4 [14:26:48]MH_SAM_APDU [14:26:48]CAPDU: 80 11 00 00 [14:26:48]Write to MH i2c: E2 08 00 32 21 80 11 00 00 00 00 00 00 CD [14:26:48]Write i2c OK [14:26:48]MH_I2C_Read... [14:26:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:48]Read from MH i2c: E2 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 17 00 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 17 00 32 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 23 [14:26: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:26:48]wFMCommunicate OK [14:26:48]requested_item fd.num is exist - process it [14:26:48]SAM_PROTO_GetFieldsCounters [14:26:48]wFMCommunicate request_size=4 [14:26:48]MH_SAM_APDU [14:26:48]CAPDU: 80 13 00 00 [14:26:48]Write to MH i2c: E2 08 00 33 21 80 13 00 00 00 00 00 00 D0 [14:26:48]Write i2c OK [14:26:48]MH_I2C_Read... [14:26:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:48]Read from MH i2c: E2 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 62 00 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 62 00 33 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 50 08 01 00 0E 04 04 00 66 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 91 [14:26: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 50 08 01 00 0E 04 04 00 66 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 [14:26:48]wFMCommunicate OK [14:26:48]SAM_PROTO_GetFieldsCounters done [14:26:48]requested_item shift.num is exist - process it [14:26:48]requested_item shift.opened is exist - process it [14:26:48]req_shift_opened [14:26:48]FM_GetShiftState [14:26:48]SAM_PROTO_GetShiftState [14:26:48]wFMCommunicate request_size=4 [14:26:48]MH_SAM_APDU [14:26:48]CAPDU: 80 13 01 00 [14:26:48]Write to MH i2c: E2 08 00 34 21 80 13 01 00 00 00 00 00 D2 [14:26:48]Write i2c OK [14:26:48]MH_I2C_Read... [14:26:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:48]Read from MH i2c: E2 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 0E 00 [14:26:48]MH_I2C_Read... [14:26:48]Read from MH i2c: E2 0E 00 34 21 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 58 [14:26:48]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:26:48]wFMCommunicate OK [14:26:48]SAM_PROTO_GetShiftState done [14:26:48]FM_GetShiftState done [14:26:48]req_shift_opened done [14:26:48]requested_item shift.open_date is exist - process it [14:26:48]req_shift_open_date [14:26:48]req_shift_open_date done [14:26:48]produce_requested_data done [14:26:48]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67664,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [14:26:48]process_action_free print_text [14:26:48]json_value_free [14:26:48]json_value_free done [14:26:48]process_json_proto returns [14:26:48]Send response to host [14:26:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67664,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [14:26:48]free response buf [14:26:48]execute_script done [14:26:48]execute_script returns [14:26:48]free content buf [14:26:48]Sock 7.Close socket [14:26:48]Sock 7.Thread stoped [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:23]accept exits with 9 [14:27:23]New connection [14:27:23]New thread 3067395428 created [14:27:23]Thread 3067538788 joined [14:27:23]Waiting for new connection... [14:27:23] Sock 9.Parse request [14:27:23]Sock 9.Check first char [14:27:23]Sock 9.First char is OK [14:27:23]request: POST /json_proto HTTP/1.0 [14:27:23]Method: POST [14:27:23]URL: /json_proto [14:27:23]Method is POST - this is cgi request [14:27:23]url: /json_proto [14:27:23]query_string will be loaded in cgi processing [14:27:23]execute_cgi json_proto POST (null) [14:27:23]execute_cgi path=json_proto method=POST [14:27:23]POST find Content-Length [14:27:23]Host: 172.17.41.195:8080 [14:27:23]Content-Length: 894 [14:27:23]Content-Type: application/json [14:27:23] [14:27:23]POST finish read [14:27:23]Found Content-Length = 894 [14:27:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12104", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:23]execute_script... [14: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 : (3)12104", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:23]POST & json_proto [14:27:23]process_json_proto [14:27:23]json parsed OK: [14:27:23]protocol is kg_v1.0 [14:27:23]action value=close_receipt [14:27:23]process_action close_receipt [14:27:23]cmd_close_receipt [14:27:23]MH_GetDate [14:27:23]Write to MH i2c: F0 00 00 35 21 45 [14:27:23]Write i2c OK [14:27:23]MH_I2C_Read... [14:27:23]Read from MH i2c: F0 [14:27:23]MH_I2C_Read... [14:27:23]Read from MH i2c: F0 09 00 [14:27:23]MH_I2C_Read... [14:27:23]Read from MH i2c: F0 09 00 35 21 00 4F 69 47 66 FC 21 6F 64 A3 [14:27:23]GetLastDocTimeStamp 1715955594 [14:27:23]current date 1715956047 [14:27:23]FM_GetShiftState [14:27:23]SAM_PROTO_GetShiftState [14:27:23]wFMCommunicate request_size=4 [14:27:23]MH_SAM_APDU [14:27:23]CAPDU: 80 13 01 00 [14:27:23]Write to MH i2c: E2 08 00 36 21 80 13 01 00 00 00 00 00 D4 [14:27:23]Write i2c OK [14:27:23]MH_I2C_Read... [14:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:23]Read from MH i2c: E2 [14:27:23]MH_I2C_Read... [14:27:23]Read from MH i2c: E2 0E 00 [14:27:23]MH_I2C_Read... [14:27:23]Read from MH i2c: E2 0E 00 36 21 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 5A [14:27:23]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:27:23]wFMCommunicate OK [14:27:23]SAM_PROTO_GetShiftState done [14:27:23]FM_GetShiftState done [14:27:23]opened in 1715905068 [14:27:23]opened+sec_in_day 1715991468 [14:27:23]quantity*price = 5500 [14:27:23]sum+1 = 5501 [14:27:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 55.00 = 55.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.98 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 74 17.05.2024 14:27 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67665 ФПД: 169017564889619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T142727&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67665&fm=169017564889619&tin=02508201610067®Number=0000000000091845&sum=11000 0 [14:27:24]StoreToDocumentArchive [14:27:24]shift 358 fd 67665 [14:27:24]save to /storage/0358/doc_00067665 [14:27:24]save last doc name /storage/0358/doc_00067665 to /storage/kkm_last_doc_name [14:27:24]save OK [14:27:24]Clear old archive folders... [14:27:24]ProcessDocumentItem done err = 0, tmpTLVsize=377 [14:27:24]tlvbuf is 015CB8F0 [14:27:24]SAM_PROTO_ClearQueue [14:27:24]wFMCommunicate request_size=4 [14:27:24]MH_SAM_APDU [14:27:24]CAPDU: 80 09 00 00 [14:27:24]Write to MH i2c: E2 08 00 43 21 80 09 00 00 00 00 00 00 D6 [14:27:24]Write i2c OK [14:27:24]MH_I2C_Read... [14:27:24]Read from MH i2c: E2 [14:27:24]MH_I2C_Read... [14:27:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:24]Read from MH i2c: E2 03 00 [14:27:24]MH_I2C_Read... [14:27:24]Read from MH i2c: E2 03 00 43 21 00 90 00 D8 [14:27:24]RAPDU: 90 00 [14:27:24]wFMCommunicate OK [14:27:24]SAM_PROTO_ClearQueue done [14:27:24]KKMCreateOFDPacket [14:27:24]OFDProtocolAddRootSTLVToBuf [14:27:24]FM_MakeSignedData [14:27:24]FM_MakeSignedData [14:27:24]SAM_PROTO_SignData [14:27:24]wFMCommunicate request_size=4 [14:27:24]MH_SAM_APDU [14:27:24]CAPDU: 80 0D 01 02 [14:27:24]Write to MH i2c: E2 08 00 44 21 80 0D 01 02 00 00 00 00 DE [14:27:24]Write i2c OK [14:27:24]MH_I2C_Read... [14:27:24]Read from MH i2c: E2 [14:27:24]MH_I2C_Read... [14:27:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:24]Read from MH i2c: E2 03 00 [14:27:24]MH_I2C_Read... [14:27:24]Read from MH i2c: E2 03 00 44 21 00 90 00 D9 [14:27:24]RAPDU: 90 00 [14:27:24]wFMCommunicate OK [14:27:24]wFMCommunicate request_size=255 [14:27:24]MH_SAM_APDU [14:27:24]CAPDU: 80 0D 02 02 FA 03 00 79 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE [14:27:24]Write to MH i2c: E2 02 01 45 21 80 0D 02 02 FA 00 03 00 79 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 00 00 A4 [14:27:24]Write i2c OK [14:27:24]MH_I2C_Read... [14:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:25]Read from MH i2c: E2 [14:27:25]MH_I2C_Read... [14:27:25]Read from MH i2c: E2 03 00 [14:27:25]MH_I2C_Read... [14:27:25]Read from MH i2c: E2 03 00 45 21 00 90 00 DA [14:27:25]RAPDU: 90 00 [14:27:25]wFMCommunicate OK [14:27:25]wFMCommunicate request_size=136 [14:27:25]MH_SAM_APDU [14:27:25]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 4F 69 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 51 08 01 00 35 04 06 00 99 B8 77 EA 82 13 [14:27:25]Write to MH i2c: E2 8B 00 46 21 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 4F 69 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 51 08 01 00 35 04 06 00 99 B8 77 EA 82 13 00 00 98 [14:27:25]Write i2c OK [14:27:25]MH_I2C_Read... [14:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:25]Read from MH i2c: E2 [14:27:25]MH_I2C_Read... [14:27:25]Read from MH i2c: E2 03 00 [14:27:25]MH_I2C_Read... [14:27:25]Read from MH i2c: E2 03 00 46 21 00 90 00 DB [14:27:25]RAPDU: 90 00 [14:27:25]wFMCommunicate OK [14:27:25]wFMCommunicate request_size=4 [14:27:25]MH_SAM_APDU [14:27:25]CAPDU: 80 0D 03 02 [14:27:25]Write to MH i2c: E2 08 00 47 21 80 0D 03 02 00 00 00 00 E3 [14:27:25]Write i2c OK [14:27:25]MH_I2C_Read... [14:27:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:25]Read from MH i2c: E2 [14:27:25]MH_I2C_Read... [14:27:25]Read from MH i2c: E2 0B 00 [14:27:25]MH_I2C_Read... [14:27:25]Read from MH i2c: E2 0B 00 47 21 00 B4 53 5A B0 34 BE 95 38 90 00 B4 [14:27:25]RAPDU: B4 53 5A B0 34 BE 95 38 90 00 [14:27:25]wFMCommunicate OK [14:27:25]SAM_PROTO_SignData done [14:27:25]FM_MakeSignedData done [14:27:25]CreateOFDProtocolMessage [14:27:25]wFMCommunicate request_size=4 [14:27:25]MH_SAM_APDU [14:27:25]CAPDU: 80 11 00 00 [14:27:25]Write to MH i2c: E2 08 00 48 21 80 11 00 00 00 00 00 00 E3 [14:27:25]Write i2c OK [14:27:25]MH_I2C_Read... [14:27:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:25]Read from MH i2c: E2 [14:27:25]MH_I2C_Read... [14:27:25]Read from MH i2c: E2 17 00 [14:27:25]MH_I2C_Read... [14:27:25]Read from MH i2c: E2 17 00 48 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 39 [14:27:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:27:25]wFMCommunicate OK [14:27:25]CreateOFDProtocolMessage done [14:27:25]OFDSenderStorePacket 67665 [14:27:25]StoreOFDPacket docnum=67665 [14:27: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 8D 01 00 00 24 F1 85 01 97 10 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 4F 69 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 51 08 01 00 35 04 06 00 99 B8 77 EA 82 13 B4 53 5A B0 34 BE 95 38 [14:27:25]CheckFolder [14:27:25]dirname=/storage/ofd_packets [14:27:25]CheckFolder done [14:27:25]ProducePacketName [14:27:25]name=ofd_packets/00067665 [14:27:25]NVStorageSaveData ofd_packets/00067665 [14:27:25]File name is /storage/ofd_packets/00067665 [14:27:25]Write 427 bytes [14:27:25]NVStorageSaveData done [14:27:25]OFDSenderStorePacket done [14:27:25]KKMCreateOFDPacket done [14:27:25]NVStorageSaveData kkm_last_timestamp [14:27:25]File name is /storage/kkm_last_timestamp [14:27:25]Write 4 bytes [14:27:25]NVStorageSaveData done [14:27:25]ExternCall_PrintAddStr [14:27:25]wPrintStart [14:27:25]Write to MH i2c: 01 00 00 49 21 6A [14:27:25]Write i2c OK [14:27:25]MH_I2C_Read... [14:27:25]Read from MH i2c: 01 [14:27:25]MH_I2C_Read... [14:27:25]Read from MH i2c: 01 07 00 [14:27:25]MH_I2C_Read... [14:27:25]Read from MH i2c: 01 07 00 49 21 00 00 00 00 00 FF 0F 7F [14:27:25]RasterBufferAndPrint [14:27:25]line Счет N : (3)12104 [14:27:25]line ИНН: 02508201610067 [14:27:25]line Контрольно-Кассовый Чек [14:27:25]line ПРОДАЖА [14:27:25]line Товар: 4700000310043 [14:27:25]line Вода Жалалабат 27 1л [14:27:25]line 1.000 * 55.00 [14:27:25]line = 55.00 [14:27:25]line НДС 12% НСП 1% [14:27:25]line > о реализуемом товаре [14:27:25]line Товар: 4700000160204 [14:27:25]line Вода Легенда 1,5л [14:27:25]line 1.000 * 55.00 [14:27:25]line = 55.00 [14:27:25]line НДС 12% НСП 1% [14:27:25]line > о реализуемом товаре [14:27:25]line ИТОГО: 110.00 [14:27:25]line НСП 1% : 0.98 [14:27:25]line НДС 12% : 11.68 [14:27:25]line Наличными: 110.00 [14:27:25]line Безнал.: 0.00 [14:27:25]line Место: АЗС № 91 "Партнер Нефть" [14:27:25]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:27:25]line СНО: Общий режим [14:27:25]line Чек 74 17.05.2024 14:27 [14:27:25]line Смена: 358 ФФД: 1.0 [14:27:25]line ЗНМ: 0300000119 [14:27:25]line РНМ: 0000000000091845 [14:27:25]line Версия ККМ: 001 [14:27:25]line ФМ: 0000000000871829 [14:27:25]line ФД: 67665 [14:27:25]line ФПД: 169017564889619 [14:27:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T142727&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67665&fm=169017564889619&tin=02508201610067®Number=0000000000091845&sum=11000 [14:27:25]line 0 [14:27:25]OFD Sender: Processing packet 67665 [packets to send 35, broken 34] [14:27:25]ProducePacketName [14:27:25]name=ofd_packets/00067665 [14:27:25]OFD Sender: To server: pG, [14:27:25]CommunicateWithHost lk.salyk.kg:30040 [14:27:25]ConnectInit lk.salyk.kg [14:27:25]written 0, free lines is 4095 [14:27:25]Connected sock=7 [14: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 8D 01 00 00 24 F1 85 01 97 10 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 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 4F 69 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 51 08 01 00 35 04 06 00 99 B8 77 EA 82 13 B4 53 5A B0 34 BE 95 38 [14: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 0D FA 47 00 CE 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 51 08 01 00 F4 03 04 00 27 11 47 66 B6 04 01 00 00 4D 2A 74 3D 66 72 65 14 [14:27:25]CommunicateWithHost err = 0 [14:27:25]CheckOFDResponse [14:27:25]1017 (14) - 77093643461234 [14:27:25]1041 (16) - 0000000000871829 [14:27:25]1040 (4) - 67665 [14:27:25]1012 (4) - 17.05.2024 08:11 [14:27:25]1206 (1) - 0 [14:27:25]OFD Sender: Remove packet 67665 [14:27:25]ProducePacketName [14:27:25]name=ofd_packets/00067665 [14:27:25]NVStorageDeleteData [14:27:26]Write to MH i2c: 01 00 00 76 21 97 [14:27:26]Write i2c OK [14:27:26]MH_I2C_Read... [14:27:26]Read from MH i2c: 01 [14:27:26]MH_I2C_Read... [14:27:26]Read from MH i2c: 01 07 00 [14:27:26]MH_I2C_Read... [14:27:26]Read from MH i2c: 01 07 00 76 21 00 00 00 00 00 98 0C 42 [14:27:26]RasterBufferAndPrint [14:27:26]line [14:27:26]line [14:27:26]line [14:27:26]line [14:27:26]line [14:27:26]written 0, free lines is 3230 [14:27:26]MH_Cut [14:27:26]Write to MH i2c: D1 01 00 7D 21 01 70 [14:27:26]Write i2c OK [14:27:26]MH_I2C_Read... [14:27:26]Read from MH i2c: D1 [14:27:26]MH_I2C_Read... [14:27:26]Read from MH i2c: D1 01 00 [14:27:26]MH_I2C_Read... [14:27:26]Read from MH i2c: D1 01 00 7D 21 00 6F [14:27:26]Write to MH i2c: 01 00 00 7E 21 9F [14:27:26]Write i2c OK [14:27:26]MH_I2C_Read... [14:27:26]OFD Sender: No OFD packet to send [14:27:26]*** Cut start [14:27:26]*** Purtial cut [14:27:26]*** CUTSNS_PIN = 0 [14:27:27]*** Stage 1: CUTSNS_PIN = 1 [14:27:28]Read from MH i2c: 01 [14:27:28]MH_I2C_Read... [14:27:28]*** Stop cut motor [14:27:28]*** Cut end [14:27:28]Read from MH i2c: 01 07 00 [14:27:28]MH_I2C_Read... [14:27:28]Read from MH i2c: 01 07 00 7E 21 00 00 00 00 00 FF 0F B4 [14:27:28]process_action close_receipt done [14:27:28]requested_data is exist [14:27:28]produce_requested_data [14:27:28]requested_item fm.sn is exist - process it [14:27:28]wFMCommunicate request_size=4 [14:27:28]MH_SAM_APDU [14:27:28]CAPDU: 80 11 00 00 [14:27:28]Write to MH i2c: E2 08 00 7F 21 80 11 00 00 00 00 00 00 1A [14:27:28]Write i2c OK [14:27:28]MH_I2C_Read... [14:27:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:29]Read from MH i2c: E2 [14:27:29]MH_I2C_Read... [14:27:29]Read from MH i2c: E2 17 00 [14:27:29]MH_I2C_Read... [14:27:29]Read from MH i2c: E2 17 00 7F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 70 [14:27:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:27:29]wFMCommunicate OK [14:27:29]requested_item fd.num is exist - process it [14:27:29]SAM_PROTO_GetFieldsCounters [14:27:29]wFMCommunicate request_size=4 [14:27:29]MH_SAM_APDU [14:27:29]CAPDU: 80 13 00 00 [14:27:29]Write to MH i2c: E2 08 00 80 21 80 13 00 00 00 00 00 00 1D [14:27:29]Write i2c OK [14:27:29]MH_I2C_Read... [14:27:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:29]Read from MH i2c: E2 [14:27:29]MH_I2C_Read... [14:27:29]Read from MH i2c: E2 62 00 [14:27:29]MH_I2C_Read... [14:27:29]Read from MH i2c: E2 62 00 80 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 51 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [14:27: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 51 08 01 00 0E 04 04 00 66 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 [14:27:29]wFMCommunicate OK [14:27:29]SAM_PROTO_GetFieldsCounters done [14:27:29]requested_item shift.num is exist - process it [14:27:29]requested_item shift.opened is exist - process it [14:27:29]req_shift_opened [14:27:29]FM_GetShiftState [14:27:29]SAM_PROTO_GetShiftState [14:27:29]wFMCommunicate request_size=4 [14:27:29]MH_SAM_APDU [14:27:29]CAPDU: 80 13 01 00 [14:27:29]Write to MH i2c: E2 08 00 81 21 80 13 01 00 00 00 00 00 1F [14:27:29]Write i2c OK [14:27:29]MH_I2C_Read... [14:27:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:29]Read from MH i2c: E2 [14:27:29]MH_I2C_Read... [14:27:29]Read from MH i2c: E2 0E 00 [14:27:29]MH_I2C_Read... [14:27:29]Read from MH i2c: E2 0E 00 81 21 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 A5 [14:27:29]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:27:29]wFMCommunicate OK [14:27:29]SAM_PROTO_GetShiftState done [14:27:29]FM_GetShiftState done [14:27:29]req_shift_opened done [14:27:29]requested_item shift.open_date is exist - process it [14:27:29]req_shift_open_date [14:27:29]req_shift_open_date done [14:27:29]produce_requested_data done [14:27:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67665,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [14:27:29]process_action_free close_receipt [14:27:29]json_value_free [14:27:29]json_value_free done [14:27:29]process_json_proto returns [14:27:29]Send response to host [14:27:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67665,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [14:27:29]free response buf [14:27:29]execute_script done [14:27:29]execute_script returns [14:27:29]free content buf [14:27:29]Sock 9.Close socket [14:27:29]Sock 9.Thread stoped [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:53]accept exits with 10 [14:27:53]New connection [14:27:53]New thread 3067538788 created [14:27:53]Thread 3067395428 joined [14:27:53]Waiting for new connection... [14:27:53] Sock 10.Parse request [14:27:53]Sock 10.Check first char [14:27:53]Sock 10.First char is OK [14:27:53]request: POST /json_proto HTTP/1.0 [14:27:53]Method: POST [14:27:53]URL: /json_proto [14:27:53]Method is POST - this is cgi request [14:27:53]url: /json_proto [14:27:53]query_string will be loaded in cgi processing [14:27:53]execute_cgi json_proto POST (null) [14:27:53]execute_cgi path=json_proto method=POST [14:27:53]POST find Content-Length [14:27:53]Host: 172.17.41.195:8080 [14:27:53]Content-Length: 1182 [14:27:53]Content-Type: application/json [14:27:53] [14:27:53]POST finish read [14:27:53]Found Content-Length = 1182 [14:27:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507808\u000A17.05.2024 14:10\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 17.970 x 66.80\u000A\u0418\u0422\u041E\u0413: 1200.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" ] } } [14:27:53]execute_script... [14:27:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507808\u000A17.05.2024 14:10\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 17.970 x 66.80\u000A\u0418\u0422\u041E\u0413: 1200.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" ] } } [14:27:53]POST & json_proto [14:27:53]process_json_proto [14:27:53]json parsed OK: [14:27:53]protocol is kg_v1.0 [14:27:53]action value=print_text [14:27:53]process_action print_text [14:27:53]cmd_print_text [14:27:53]ExternCall_PrintAddStr [14:27:53]wPrintStart [14:27:53]Write to MH i2c: 01 00 00 82 21 A3 [14:27:53]Write i2c OK [14:27:53]MH_I2C_Read... [14:27:53]Read from MH i2c: 01 [14:27:53]MH_I2C_Read... [14:27:53]Read from MH i2c: 01 07 00 [14:27:53]MH_I2C_Read... [14:27:53]Read from MH i2c: 01 07 00 82 21 00 00 00 00 00 FF 0F B8 [14:27:53]RasterBufferAndPrint [14:27:53]line *****ТОВАРНЫЙ ЧЕК***** [14:27:53]line АЗС-91 [14:27:53]line Партнер нефть [14:27:53]line 02508201610067 [14:27:53]line Кассир : Адишов И. [14:27:53]line Счет N : (1)507808 [14:27:53]line 17.05.2024 14:10 [14:27:53]line ПРОДАЖА [14:27:53]line ТРК (МРК, ГНК): 33 [14:27:53]line Вид ГСМ : 2710124130 [14:27:53]line Аи-92-К-5 [14:27:53]line 17.970 x 66.80 [14:27:53]line ИТОГ: 1200.40 [14:27:53]line Тип оплаты: Талоны: Топливная Карта [14:27:53]line 02750 [14:27:53]line ______________________ [14:27:53]line (подпись) [14:27:53]written 0, free lines is 4095 [14:27:54]Write to MH i2c: 01 00 00 96 21 B7 [14:27:54]Write i2c OK [14:27:54]MH_I2C_Read... [14:27:54]Read from MH i2c: 01 [14:27:54]MH_I2C_Read... [14:27:54]Read from MH i2c: 01 07 00 [14:27:54]MH_I2C_Read... [14:27:54]Read from MH i2c: 01 07 00 96 21 00 00 00 00 00 0E 0E DA [14:27:54]RasterBufferAndPrint [14:27:54]line [14:27:54]line [14:27:54]line [14:27:54]line [14:27:54]line [14:27:54]written 0, free lines is 3599 [14:27:54]MH_Cut [14:27:54]Write to MH i2c: D1 01 00 9D 21 01 90 [14:27:54]Write i2c OK [14:27:54]MH_I2C_Read... [14:27:54]Read from MH i2c: D1 [14:27:54]MH_I2C_Read... [14:27:54]Read from MH i2c: D1 01 00 [14:27:54]MH_I2C_Read... [14:27:54]Read from MH i2c: D1 01 00 9D 21 00 8F [14:27:54]Write to MH i2c: 01 00 00 9E 21 BF [14:27:54]Write i2c OK [14:27:54]MH_I2C_Read... [14:27:54]*** Cut start [14:27:54]*** Purtial cut [14:27:54]*** Stage 1: CUTSNS_PIN = 1 [14:27:55]Read from MH i2c: 01 [14:27:55]MH_I2C_Read... [14:27:55]*** Stop cut motor [14:27:55]*** Cut end [14:27:55]Read from MH i2c: 01 07 00 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: 01 07 00 9E 21 00 00 00 00 00 FF 0F D4 [14:27:55]process_action print_text done [14:27:55]requested_data is exist [14:27:55]produce_requested_data [14:27:55]requested_item fm.sn is exist - process it [14:27:55]wFMCommunicate request_size=4 [14:27:55]MH_SAM_APDU [14:27:55]CAPDU: 80 11 00 00 [14:27:55]Write to MH i2c: E2 08 00 9F 21 80 11 00 00 00 00 00 00 3A [14:27:55]Write i2c OK [14:27:55]MH_I2C_Read... [14:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:55]Read from MH i2c: E2 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: E2 17 00 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: E2 17 00 9F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 90 [14:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:27:55]wFMCommunicate OK [14:27:55]requested_item fd.num is exist - process it [14:27:55]SAM_PROTO_GetFieldsCounters [14:27:55]wFMCommunicate request_size=4 [14:27:55]MH_SAM_APDU [14:27:55]CAPDU: 80 13 00 00 [14:27:55]Write to MH i2c: E2 08 00 A0 21 80 13 00 00 00 00 00 00 3D [14:27:55]Write i2c OK [14:27:55]MH_I2C_Read... [14:27:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:55]Read from MH i2c: E2 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: E2 62 00 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: E2 62 00 A0 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 51 08 01 00 0E 04 04 00 66 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 02 [14:27: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 51 08 01 00 0E 04 04 00 66 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 [14:27:55]wFMCommunicate OK [14:27:55]SAM_PROTO_GetFieldsCounters done [14:27:55]requested_item shift.num is exist - process it [14:27:55]requested_item shift.opened is exist - process it [14:27:55]req_shift_opened [14:27:55]FM_GetShiftState [14:27:55]SAM_PROTO_GetShiftState [14:27:55]wFMCommunicate request_size=4 [14:27:55]MH_SAM_APDU [14:27:55]CAPDU: 80 13 01 00 [14:27:55]Write to MH i2c: E2 08 00 A1 21 80 13 01 00 00 00 00 00 3F [14:27:55]Write i2c OK [14:27:55]MH_I2C_Read... [14:27:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:55]Read from MH i2c: E2 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: E2 0E 00 [14:27:55]MH_I2C_Read... [14:27:55]Read from MH i2c: E2 0E 00 A1 21 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 C5 [14:27:55]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:27:55]wFMCommunicate OK [14:27:55]SAM_PROTO_GetShiftState done [14:27:55]FM_GetShiftState done [14:27:55]req_shift_opened done [14:27:55]requested_item shift.open_date is exist - process it [14:27:55]req_shift_open_date [14:27:55]req_shift_open_date done [14:27:55]produce_requested_data done [14:27:55]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67665,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [14:27:55]process_action_free print_text [14:27:55]json_value_free [14:27:55]json_value_free done [14:27:55]process_json_proto returns [14:27:55]Send response to host [14:27:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67665,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [14:27:55]free response buf [14:27:55]execute_script done [14:27:55]execute_script returns [14:27:55]free content buf [14:27:55]Sock 10.Close socket [14:27:55]Sock 10.Thread stoped [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:55]accept exits with 7 [14:31:55]New connection [14:31:55]New thread 3067395428 created [14:31:55]Thread 3067538788 joined [14:31:55]Waiting for new connection... [14:31:55] Sock 7.Parse request [14:31:55]Sock 7.Check first char [14:31:55]Sock 7.First char is OK [14:31:55]request: POST /json_proto HTTP/1.0 [14:31:55]Method: POST [14:31:55]URL: /json_proto [14:31:55]Method is POST - this is cgi request [14:31:55]url: /json_proto [14:31:55]query_string will be loaded in cgi processing [14:31:55]execute_cgi json_proto POST (null) [14:31:55]execute_cgi path=json_proto method=POST [14:31:55]POST find Content-Length [14:31:55]Host: 172.17.41.195:8080 [14:31:55]Content-Length: 1179 [14:31:55]Content-Type: application/json [14:31:55] [14:31:55]POST finish read [14:31:55]Found Content-Length = 1179 [14:31: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507810\u000A17.05.2024 14: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 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" ] } } [14:31:55]execute_script... [14:31: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507810\u000A17.05.2024 14: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 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" ] } } [14:31:55]POST & json_proto [14:31:55]process_json_proto [14:31:55]json parsed OK: [14:31:55]protocol is kg_v1.0 [14:31:55]action value=print_text [14:31:55]process_action print_text [14:31:55]cmd_print_text [14:31:55]ExternCall_PrintAddStr [14:31:55]wPrintStart [14:31:55]Write to MH i2c: 01 00 00 A2 21 C3 [14:31:55]Write i2c OK [14:31:55]MH_I2C_Read... [14:31:55]Read from MH i2c: 01 [14:31:55]MH_I2C_Read... [14:31:55]Read from MH i2c: 01 07 00 [14:31:55]MH_I2C_Read... [14:31:55]Read from MH i2c: 01 07 00 A2 21 00 00 00 00 00 FF 0F D8 [14:31:55]RasterBufferAndPrint [14:31:55]line *****ТОВАРНЫЙ ЧЕК***** [14:31:55]line АЗС-91 [14:31:55]line Партнер нефть [14:31:55]line 02508201610067 [14:31:55]line Кассир : Адишов И. [14:31:55]line Счет N : (1)507810 [14:31:55]line 17.05.2024 14:14 [14:31:55]line ПРОДАЖА [14:31:55]line ТРК (МРК, ГНК): 11 [14:31:55]line Вид ГСМ : 2710194210 [14:31:55]line ДТ-К-5 [14:31:55]line 26.780 x 74.70 [14:31:55]line ИТОГ: 2000.47 [14:31:55]line Тип оплаты: Талоны: Топливная Карта [14:31:55]line 02750 [14:31:55]line ______________________ [14:31:55]line (подпись) [14:31:55]written 0, free lines is 4095 [14:31:56]Write to MH i2c: 01 00 00 B6 21 D7 [14:31:56]Write i2c OK [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: 01 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: 01 07 00 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: 01 07 00 B6 21 00 00 00 00 00 0C 0E F8 [14:31:56]RasterBufferAndPrint [14:31:56]line [14:31:56]line [14:31:56]line [14:31:56]line [14:31:56]line [14:31:56]written 0, free lines is 3597 [14:31:56]MH_Cut [14:31:56]Write to MH i2c: D1 01 00 BD 21 01 B0 [14:31:56]Write i2c OK [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: D1 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: D1 01 00 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: D1 01 00 BD 21 00 AF [14:31:56]Write to MH i2c: 01 00 00 BE 21 DF [14:31:56]Write i2c OK [14:31:56]MH_I2C_Read... [14:31:56]*** Cut start [14:31:56]*** Purtial cut [14:31:56]*** CUTSNS_PIN = 0 [14:31:56]OFD Sender: No OFD packet to send [14:31:56]*** Stage 1: CUTSNS_PIN = 1 [14:31:58]Read from MH i2c: 01 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: 01 07 00 [14:31:58]MH_I2C_Read... [14:31:58]*** Stop cut motor [14:31:58]*** Cut end [14:31:58]Read from MH i2c: 01 07 00 BE 21 00 00 00 00 00 FF 0F F4 [14:31:58]process_action print_text done [14:31:58]requested_data is exist [14:31:58]produce_requested_data [14:31:58]requested_item fm.sn is exist - process it [14:31:58]wFMCommunicate request_size=4 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 11 00 00 [14:31:58]Write to MH i2c: E2 08 00 BF 21 80 11 00 00 00 00 00 00 5A [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:58]Read from MH i2c: E2 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 17 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 17 00 BF 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B0 [14:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:31:58]wFMCommunicate OK [14:31:58]requested_item fd.num is exist - process it [14:31:58]SAM_PROTO_GetFieldsCounters [14:31:58]wFMCommunicate request_size=4 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 13 00 00 [14:31:58]Write to MH i2c: E2 08 00 C0 21 80 13 00 00 00 00 00 00 5D [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:58]Read from MH i2c: E2 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 62 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 62 00 C0 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 51 08 01 00 0E 04 04 00 66 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 22 [14:31: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 51 08 01 00 0E 04 04 00 66 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 [14:31:58]wFMCommunicate OK [14:31:58]SAM_PROTO_GetFieldsCounters done [14:31:58]requested_item shift.num is exist - process it [14:31:58]requested_item shift.opened is exist - process it [14:31:58]req_shift_opened [14:31:58]FM_GetShiftState [14:31:58]SAM_PROTO_GetShiftState [14:31:58]wFMCommunicate request_size=4 [14:31:58]MH_SAM_APDU [14:31:58]CAPDU: 80 13 01 00 [14:31:58]Write to MH i2c: E2 08 00 C1 21 80 13 01 00 00 00 00 00 5F [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:58]Read from MH i2c: E2 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 0E 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: E2 0E 00 C1 21 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 E5 [14:31:58]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:31:58]wFMCommunicate OK [14:31:58]SAM_PROTO_GetShiftState done [14:31:58]FM_GetShiftState done [14:31:58]req_shift_opened done [14:31:58]requested_item shift.open_date is exist - process it [14:31:58]req_shift_open_date [14:31:58]req_shift_open_date done [14:31:58]produce_requested_data done [14:31:58]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67665,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [14:31:58]process_action_free print_text [14:31:58]json_value_free [14:31:58]json_value_free done [14:31:58]process_json_proto returns [14:31:58]Send response to host [14:31:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67665,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [14:31:58]free response buf [14:31:58]execute_script done [14:31:58]execute_script returns [14:31:58]free content buf [14:31:58]Sock 7.Close socket [14:31:58]Sock 7.Thread stoped [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:20]accept exits with 9 [14:32:20]New connection [14:32:20]New thread 3067538788 created [14:32:20]Thread 3067395428 joined [14:32:20]Waiting for new connection... [14:32:20] Sock 9.Parse request [14:32:20]Sock 9.Check first char [14:32:20]Sock 9.First char is OK [14:32:20]request: POST /json_proto HTTP/1.0 [14:32:20]Method: POST [14:32:20]URL: /json_proto [14:32:20]Method is POST - this is cgi request [14:32:20]url: /json_proto [14:32:20]query_string will be loaded in cgi processing [14:32:20]execute_cgi json_proto POST (null) [14:32:20]execute_cgi path=json_proto method=POST [14:32:20]POST find Content-Length [14:32:20]Host: 172.17.41.195:8080 [14:32:20]Content-Length: 798 [14:32:20]Content-Type: application/json [14:32:20] [14:32:20]POST finish read [14:32:20]Found Content-Length = 798 [14:32:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507811", "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" ] } } [14:32:20]execute_script... [14:32: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)507811", "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" ] } } [14:32:20]POST & json_proto [14:32:20]process_json_proto [14:32:20]json parsed OK: [14:32:20]protocol is kg_v1.0 [14:32:20]action value=close_receipt [14:32:20]process_action close_receipt [14:32:20]cmd_close_receipt [14:32:20]MH_GetDate [14:32:20]Write to MH i2c: F0 00 00 C2 21 D2 [14:32:20]Write i2c OK [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: F0 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: F0 09 00 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: F0 09 00 C2 21 00 77 6A 47 66 FC 21 6F 64 59 [14:32:20]GetLastDocTimeStamp 1715956047 [14:32:20]current date 1715956343 [14:32:20]FM_GetShiftState [14:32:20]SAM_PROTO_GetShiftState [14:32:20]wFMCommunicate request_size=4 [14:32:20]MH_SAM_APDU [14:32:20]CAPDU: 80 13 01 00 [14:32:20]Write to MH i2c: E2 08 00 C3 21 80 13 01 00 00 00 00 00 61 [14:32:20]Write i2c OK [14:32:20]MH_I2C_Read... [14:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:20]Read from MH i2c: E2 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: E2 0E 00 [14:32:20]MH_I2C_Read... [14:32:20]Read from MH i2c: E2 0E 00 C3 21 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 E7 [14:32:20]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:32:20]wFMCommunicate OK [14:32:20]SAM_PROTO_GetShiftState done [14:32:20]FM_GetShiftState done [14:32:20]opened in 1715905068 [14:32:20]opened+sec_in_day 1715991468 [14:32:20]quantity*price = 90013 [14:32:20]sum+1 = 90015 [14:32:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.14 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 0.00 Безнал.: 900.14 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 75 17.05.2024 14:32 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67666 ФПД: 163464764028498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T143223&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67666&fm=163464764028498&tin=02508201610067®Number=0000000000091845&sum=90014 [14:32:21]StoreToDocumentArchive [14:32:21]shift 358 fd 67666 [14:32:21]save to /storage/0358/doc_00067666 [14:32:21]save last doc name /storage/0358/doc_00067666 to /storage/kkm_last_doc_name [14:32:21]save OK [14:32:21]Clear old archive folders... [14:32:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:32:21]tlvbuf is B6F69970 [14:32:21]SAM_PROTO_ClearQueue [14:32:21]wFMCommunicate request_size=4 [14:32:21]MH_SAM_APDU [14:32:21]CAPDU: 80 09 00 00 [14:32:21]Write to MH i2c: E2 08 00 D0 21 80 09 00 00 00 00 00 00 63 [14:32:21]Write i2c OK [14:32:21]MH_I2C_Read... [14:32:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:21]Read from MH i2c: E2 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 03 00 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 03 00 D0 21 00 90 00 65 [14:32:21]RAPDU: 90 00 [14:32:21]wFMCommunicate OK [14:32:21]SAM_PROTO_ClearQueue done [14:32:21]KKMCreateOFDPacket [14:32:21]OFDProtocolAddRootSTLVToBuf [14:32:21]FM_MakeSignedData [14:32:21]FM_MakeSignedData [14:32:21]SAM_PROTO_SignData [14:32:21]wFMCommunicate request_size=4 [14:32:21]MH_SAM_APDU [14:32:21]CAPDU: 80 0D 01 02 [14:32:21]Write to MH i2c: E2 08 00 D1 21 80 0D 01 02 00 00 00 00 6B [14:32:21]Write i2c OK [14:32:21]MH_I2C_Read... [14:32:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:21]Read from MH i2c: E2 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 03 00 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 03 00 D1 21 00 90 00 66 [14:32:21]RAPDU: 90 00 [14:32:21]wFMCommunicate OK [14:32:21]wFMCommunicate request_size=255 [14:32:21]MH_SAM_APDU [14:32: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 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 4B 00 00 00 F4 03 04 00 77 6A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 52 08 01 00 35 04 06 00 94 AB 9B 31 [14:32:21]Write to MH i2c: E2 02 01 D2 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 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 4B 00 00 00 F4 03 04 00 77 6A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 52 08 01 00 35 04 06 00 94 AB 9B 31 00 00 95 [14:32:21]Write i2c OK [14:32:21]MH_I2C_Read... [14:32:21]OFD Sender: No OFD packet to send [14:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:21]Read from MH i2c: E2 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 03 00 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 03 00 D2 21 00 90 00 67 [14:32:21]RAPDU: 90 00 [14:32:21]wFMCommunicate OK [14:32:21]wFMCommunicate request_size=7 [14:32:21]MH_SAM_APDU [14:32:21]CAPDU: 80 0D 02 02 02 76 52 [14:32:21]Write to MH i2c: E2 0A 00 D3 21 80 0D 02 02 02 00 76 52 00 00 3A [14:32:21]Write i2c OK [14:32:21]MH_I2C_Read... [14:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:21]Read from MH i2c: E2 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 03 00 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 03 00 D3 21 00 90 00 68 [14:32:21]RAPDU: 90 00 [14:32:21]wFMCommunicate OK [14:32:21]wFMCommunicate request_size=4 [14:32:21]MH_SAM_APDU [14:32:21]CAPDU: 80 0D 03 02 [14:32:21]Write to MH i2c: E2 08 00 D4 21 80 0D 03 02 00 00 00 00 70 [14:32:21]Write i2c OK [14:32:21]MH_I2C_Read... [14:32:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:21]Read from MH i2c: E2 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 0B 00 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 0B 00 D4 21 00 82 E9 18 80 EA F3 B2 69 90 00 6C [14:32:21]RAPDU: 82 E9 18 80 EA F3 B2 69 90 00 [14:32:21]wFMCommunicate OK [14:32:21]SAM_PROTO_SignData done [14:32:21]FM_MakeSignedData done [14:32:21]CreateOFDProtocolMessage [14:32:21]wFMCommunicate request_size=4 [14:32:21]MH_SAM_APDU [14:32:21]CAPDU: 80 11 00 00 [14:32:21]Write to MH i2c: E2 08 00 D5 21 80 11 00 00 00 00 00 00 70 [14:32:21]Write i2c OK [14:32:21]MH_I2C_Read... [14:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:21]Read from MH i2c: E2 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 17 00 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: E2 17 00 D5 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C6 [14: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 [14:32:21]wFMCommunicate OK [14:32:21]CreateOFDProtocolMessage done [14:32:21]OFDSenderStorePacket 67666 [14:32:21]StoreOFDPacket docnum=67666 [14: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 0C 01 00 00 D5 3F 04 01 51 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 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 4B 00 00 00 F4 03 04 00 77 6A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 52 08 01 00 35 04 06 00 94 AB 9B 31 76 52 82 E9 18 80 EA F3 B2 69 [14:32:21]CheckFolder [14:32:21]dirname=/storage/ofd_packets [14:32:21]CheckFolder done [14:32:21]ProducePacketName [14:32:21]name=ofd_packets/00067666 [14:32:21]NVStorageSaveData ofd_packets/00067666 [14:32:21]File name is /storage/ofd_packets/00067666 [14:32:21]Write 298 bytes [14:32:21]NVStorageSaveData done [14:32:21]OFDSenderStorePacket done [14:32:21]KKMCreateOFDPacket done [14:32:21]NVStorageSaveData kkm_last_timestamp [14:32:21]File name is /storage/kkm_last_timestamp [14:32:21]Write 4 bytes [14:32:21]NVStorageSaveData done [14:32:21]ExternCall_PrintAddStr [14:32:21]wPrintStart [14:32:21]Write to MH i2c: 01 00 00 D6 21 F7 [14:32:21]Write i2c OK [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: 01 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: 01 07 00 [14:32:21]MH_I2C_Read... [14:32:21]Read from MH i2c: 01 07 00 D6 21 00 00 00 00 00 FF 0F 0C [14:32:21]RasterBufferAndPrint [14:32:21]line Счет N : (1)507811 [14:32:21]line ИНН: 02508201610067 [14:32:21]line Контрольно-Кассовый Чек [14:32:21]line ПРОДАЖА [14:32:21]line ТРК (МРК, ГНК) : 31 [14:32:21]line Товар: 2710194210 [14:32:21]line ДТ-К-5 [14:32:21]line 12.050 * 74.70 [14:32:21]line = 900.14 [14:32:21]line НДС 12% НСП 1% [14:32:21]line > о реализуемом товаре [14:32:21]line ИТОГО: 900.14 [14:32:21]line НСП 1% : 7.97 [14:32:21]line НДС 12% : 95.59 [14:32:21]line Наличными: 0.00 [14:32:21]line Безнал.: 900.14 [14:32:21]line Место: АЗС № 91 "Партнер Нефть" [14:32:21]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:32:21]line СНО: Общий режим [14:32:21]line Чек 75 17.05.2024 14:32 [14:32:21]line Смена: 358 ФФД: 1.0 [14:32:21]line ЗНМ: 0300000119 [14:32:21]line РНМ: 0000000000091845 [14:32:21]line Версия ККМ: 001 [14:32:21]line Платежная система: O! деньги [14:32:21]line ФМ: 0000000000871829 [14:32:21]line ФД: 67666 [14:32:21]line ФПД: 163464764028498 [14:32:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T143223&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67666&fm=163464764028498&tin=02508201610067®Number=0000000000091845&sum=90014 [14:32:21]written 0, free lines is 4095 [14:32:21]OFD Sender: Processing packet 67666 [packets to send 35, broken 34] [14:32:21]ProducePacketName [14:32:21]name=ofd_packets/00067666 [14:32:21]OFD Sender: To server: pG, [14:32:21]CommunicateWithHost lk.salyk.kg:30040 [14:32:21]ConnectInit lk.salyk.kg [14:32:22]Connected sock=10 [14:32: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 D5 3F 04 01 51 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 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 4B 00 00 00 F4 03 04 00 77 6A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 52 08 01 00 35 04 06 00 94 AB 9B 31 76 52 82 E9 18 80 EA F3 B2 69 [14:32: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 97 0C 47 00 98 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 52 08 01 00 F4 03 04 00 4F 12 47 66 B6 04 01 00 00 56 5F 84 C0 9A 3D E2 63 [14:32:22]CommunicateWithHost err = 0 [14:32:22]CheckOFDResponse [14:32:22]1017 (14) - 77093643461234 [14:32:22]1041 (16) - 0000000000871829 [14:32:22]1040 (4) - 67666 [14:32:22]1012 (4) - 17.05.2024 08:16 [14:32:22]1206 (1) - 0 [14:32:22]OFD Sender: Remove packet 67666 [14:32:22]ProducePacketName [14:32:22]name=ofd_packets/00067666 [14:32:22]NVStorageDeleteData [14:32:22]Write to MH i2c: 01 00 00 FF 21 20 [14:32:22]Write i2c OK [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: 01 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: 01 07 00 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: 01 07 00 FF 21 00 00 00 00 00 E3 0C 16 [14:32:22]RasterBufferAndPrint [14:32:22]line [14:32:22]line [14:32:22]line [14:32:22]line [14:32:22]line [14:32:22]written 0, free lines is 3305 [14:32:22]MH_Cut [14:32:22]Write to MH i2c: D1 01 00 06 22 01 FA [14:32:22]Write i2c OK [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: D1 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: D1 01 00 [14:32:22]MH_I2C_Read... [14:32:22]Read from MH i2c: D1 01 00 06 22 00 F9 [14:32:22]Write to MH i2c: 01 00 00 07 22 29 [14:32:22]Write i2c OK [14:32:22]MH_I2C_Read... [14:32:22]OFD Sender: No OFD packet to send [14:32:23]*** Cut start [14:32:23]*** Purtial cut [14:32:23]*** Stage 1: CUTSNS_PIN = 1 [14:32:23]Read from MH i2c: 01 [14:32:23]MH_I2C_Read... [14:32:23]*** Stop cut motor [14:32:23]*** Cut end [14:32:23]Read from MH i2c: 01 07 00 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: 01 07 00 07 22 00 00 00 00 00 FF 0F 3E [14:32:23]process_action close_receipt done [14:32:23]requested_data is exist [14:32:23]produce_requested_data [14:32:23]requested_item fm.sn is exist - process it [14:32:23]wFMCommunicate request_size=4 [14:32:23]MH_SAM_APDU [14:32:23]CAPDU: 80 11 00 00 [14:32:23]Write to MH i2c: E2 08 00 08 22 80 11 00 00 00 00 00 00 A4 [14:32:23]Write i2c OK [14:32:23]MH_I2C_Read... [14:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:23]Read from MH i2c: E2 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: E2 17 00 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: E2 17 00 08 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FA [14: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 [14:32:23]wFMCommunicate OK [14:32:23]requested_item fd.num is exist - process it [14:32:23]SAM_PROTO_GetFieldsCounters [14:32:23]wFMCommunicate request_size=4 [14:32:23]MH_SAM_APDU [14:32:23]CAPDU: 80 13 00 00 [14:32:23]Write to MH i2c: E2 08 00 09 22 80 13 00 00 00 00 00 00 A7 [14:32:23]Write i2c OK [14:32:23]MH_I2C_Read... [14:32:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:23]Read from MH i2c: E2 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: E2 62 00 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: E2 62 00 09 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 52 08 01 00 0E 04 04 00 66 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 70 [14: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 52 08 01 00 0E 04 04 00 66 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 [14:32:23]wFMCommunicate OK [14:32:23]SAM_PROTO_GetFieldsCounters done [14:32:23]requested_item shift.num is exist - process it [14:32:23]requested_item shift.opened is exist - process it [14:32:23]req_shift_opened [14:32:23]FM_GetShiftState [14:32:23]SAM_PROTO_GetShiftState [14:32:23]wFMCommunicate request_size=4 [14:32:23]MH_SAM_APDU [14:32:23]CAPDU: 80 13 01 00 [14:32:23]Write to MH i2c: E2 08 00 0A 22 80 13 01 00 00 00 00 00 A9 [14:32:23]Write i2c OK [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: E2 [14:32:23]MH_I2C_Read... [14:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:23]Read from MH i2c: E2 0E 00 [14:32:23]MH_I2C_Read... [14:32:23]Read from MH i2c: E2 0E 00 0A 22 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 2F [14:32:23]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:32:23]wFMCommunicate OK [14:32:23]SAM_PROTO_GetShiftState done [14:32:23]FM_GetShiftState done [14:32:23]req_shift_opened done [14:32:23]requested_item shift.open_date is exist - process it [14:32:23]req_shift_open_date [14:32:23]req_shift_open_date done [14:32:23]produce_requested_data done [14:32:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67666,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [14:32:23]process_action_free close_receipt [14:32:23]json_value_free [14:32:23]json_value_free done [14:32:23]process_json_proto returns [14:32:23]Send response to host [14:32:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67666,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [14:32:23]free response buf [14:32:23]execute_script done [14:32:23]execute_script returns [14:32:23]free content buf [14:32:23]Sock 9.Close socket [14:32:23]Sock 9.Thread stoped [14:32:27]OFD Sender: No OFD packet to send [14:32:32]OFD Sender: No OFD packet to send [14:32:37]OFD Sender: No OFD packet to send [14:32:42]OFD Sender: No OFD packet to send [14:32:47]OFD Sender: No OFD packet to send [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:12]OFD Sender: No OFD packet to send [14:33:17]OFD Sender: No OFD packet to send [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:32]OFD Sender: No OFD packet to send [14:33:33]accept exits with 7 [14:33:33]New connection [14:33:33]New thread 3067395428 created [14:33:33]Thread 3067538788 joined [14:33:33]Waiting for new connection... [14:33:33] Sock 7.Parse request [14:33:33]Sock 7.Check first char [14:33:33]Sock 7.First char is OK [14:33:33]request: POST /json_proto HTTP/1.0 [14:33:33]Method: POST [14:33:33]URL: /json_proto [14:33:33]Method is POST - this is cgi request [14:33:33]url: /json_proto [14:33:33]query_string will be loaded in cgi processing [14:33:33]execute_cgi json_proto POST (null) [14:33:33]execute_cgi path=json_proto method=POST [14:33:33]POST find Content-Length [14:33:33]Host: 172.17.41.195:8080 [14:33:33]Content-Length: 965 [14:33:33]Content-Type: application/json [14:33:33] [14:33:33]POST finish read [14:33:33]Found Content-Length = 965 [14:33:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 66.80, "quantity" : 47.910, "sum" : 3200.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000AS-92\u000A\u043D\u043E\u043C\u0435\u0440 91\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 47.91 \u0441\u043E\u043C", "deposit" : 3200.00, "total" : 3200.00, "payments": [ { "type": 0, "sum" : 3200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:33]execute_script... [14:33: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)507812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 66.80, "quantity" : 47.910, "sum" : 3200.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000AS-92\u000A\u043D\u043E\u043C\u0435\u0440 91\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 47.91 \u0441\u043E\u043C", "deposit" : 3200.00, "total" : 3200.00, "payments": [ { "type": 0, "sum" : 3200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:33]POST & json_proto [14:33:33]process_json_proto [14:33:33]json parsed OK: [14:33:33]protocol is kg_v1.0 [14:33:33]action value=close_receipt [14:33:33]process_action close_receipt [14:33:33]cmd_close_receipt [14:33:33]MH_GetDate [14:33:33]Write to MH i2c: F0 00 00 0B 22 1C [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: F0 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: F0 09 00 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: F0 09 00 0B 22 00 C1 6A 47 66 FC 21 6F 64 ED [14:33:33]GetLastDocTimeStamp 1715956343 [14:33:33]current date 1715956417 [14:33:33]FM_GetShiftState [14:33:33]SAM_PROTO_GetShiftState [14:33:33]wFMCommunicate request_size=4 [14:33:33]MH_SAM_APDU [14:33:33]CAPDU: 80 13 01 00 [14:33:33]Write to MH i2c: E2 08 00 0C 22 80 13 01 00 00 00 00 00 AB [14:33:33]Write i2c OK [14:33:33]MH_I2C_Read... [14:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:33]Read from MH i2c: E2 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 0E 00 [14:33:33]MH_I2C_Read... [14:33:33]Read from MH i2c: E2 0E 00 0C 22 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 31 [14:33:33]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:33:33]wFMCommunicate OK [14:33:33]SAM_PROTO_GetShiftState done [14:33:33]FM_GetShiftState done [14:33:33]opened in 1715905068 [14:33:33]opened+sec_in_day 1715991468 [14:33:33]quantity*price = 320038 [14:33:33]sum+1 = 320040 [14:33:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 3200.00 Внесено: 3200.00 СДАЧА: 0.00 НСП 1% : 28.32 НДС 12% : 339.86 Наличными: 3200.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 76 17.05.2024 14:33 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Дисконтная программа S-92 номер 91 сэкономлено 47.91 сом ФМ: 0000000000871829 ФД: 67667 ФПД: 157380429240860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T143337&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67667&fm=157380429240860&tin=02508201610067®Number=0000000000091845&sum=320000 [14:33:34]StoreToDocumentArchive [14:33:34]shift 358 fd 67667 [14:33:34]save to /storage/0358/doc_00067667 [14:33:34]save last doc name /storage/0358/doc_00067667 to /storage/kkm_last_doc_name [14:33:34]save OK [14:33:34]Clear old archive folders... [14:33:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:33:34]tlvbuf is 0165FE10 [14:33:34]SAM_PROTO_ClearQueue [14:33:34]wFMCommunicate request_size=4 [14:33:34]MH_SAM_APDU [14:33:34]CAPDU: 80 09 00 00 [14:33:34]Write to MH i2c: E2 08 00 19 22 80 09 00 00 00 00 00 00 AD [14:33:34]Write i2c OK [14:33:34]MH_I2C_Read... [14:33:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:34]Read from MH i2c: E2 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 03 00 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 03 00 19 22 00 90 00 AF [14:33:34]RAPDU: 90 00 [14:33:34]wFMCommunicate OK [14:33:34]SAM_PROTO_ClearQueue done [14:33:34]KKMCreateOFDPacket [14:33:34]OFDProtocolAddRootSTLVToBuf [14:33:34]FM_MakeSignedData [14:33:34]FM_MakeSignedData [14:33:34]SAM_PROTO_SignData [14:33:34]wFMCommunicate request_size=4 [14:33:34]MH_SAM_APDU [14:33:34]CAPDU: 80 0D 01 02 [14:33:34]Write to MH i2c: E2 08 00 1A 22 80 0D 01 02 00 00 00 00 B5 [14:33:34]Write i2c OK [14:33:34]MH_I2C_Read... [14:33:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:34]Read from MH i2c: E2 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 03 00 [14:33:34]MH_I2C_Read... [14:33:34]Read from MH i2c: E2 03 00 1A 22 00 90 00 B0 [14:33:34]RAPDU: 90 00 [14:33:34]wFMCommunicate OK [14:33:34]wFMCommunicate request_size=255 [14:33:34]MH_SAM_APDU [14:33: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 26 BB 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 27 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 84 00 00 00 00 07 04 06 00 00 E2 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 C1 6A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 53 08 01 00 35 04 06 00 [14:33:34]Write to MH i2c: E2 02 01 1B 22 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 BB 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 27 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 84 00 00 00 00 07 04 06 00 00 E2 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 C1 6A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 53 08 01 00 35 04 06 00 00 00 22 [14:33:34]Write i2c OK [14:33:34]MH_I2C_Read... [14:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:35]Read from MH i2c: E2 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: E2 03 00 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: E2 03 00 1B 22 00 90 00 B1 [14:33:35]RAPDU: 90 00 [14:33:35]wFMCommunicate OK [14:33:35]wFMCommunicate request_size=11 [14:33:35]MH_SAM_APDU [14:33:35]CAPDU: 80 0D 02 02 06 8F 22 FC 94 5A 1C [14:33:35]Write to MH i2c: E2 0E 00 1C 22 80 0D 02 02 06 00 8F 22 FC 94 5A 1C 00 00 7B [14:33:35]Write i2c OK [14:33:35]MH_I2C_Read... [14:33:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:35]Read from MH i2c: E2 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: E2 03 00 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: E2 03 00 1C 22 00 90 00 B2 [14:33:35]RAPDU: 90 00 [14:33:35]wFMCommunicate OK [14:33:35]wFMCommunicate request_size=4 [14:33:35]MH_SAM_APDU [14:33:35]CAPDU: 80 0D 03 02 [14:33:35]Write to MH i2c: E2 08 00 1D 22 80 0D 03 02 00 00 00 00 BA [14:33:35]Write i2c OK [14:33:35]MH_I2C_Read... [14:33:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:35]Read from MH i2c: E2 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: E2 0B 00 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: E2 0B 00 1D 22 00 BA 1F 46 CB E7 B5 6F AA 90 00 5A [14:33:35]RAPDU: BA 1F 46 CB E7 B5 6F AA 90 00 [14:33:35]wFMCommunicate OK [14:33:35]SAM_PROTO_SignData done [14:33:35]FM_MakeSignedData done [14:33:35]CreateOFDProtocolMessage [14:33:35]wFMCommunicate request_size=4 [14:33:35]MH_SAM_APDU [14:33:35]CAPDU: 80 11 00 00 [14:33:35]Write to MH i2c: E2 08 00 1E 22 80 11 00 00 00 00 00 00 BA [14:33:35]Write i2c OK [14:33:35]MH_I2C_Read... [14:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:35]Read from MH i2c: E2 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: E2 17 00 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: E2 17 00 1E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 10 [14:33: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:33:35]wFMCommunicate OK [14:33:35]CreateOFDProtocolMessage done [14:33:35]OFDSenderStorePacket 67667 [14:33:35]StoreOFDPacket docnum=67667 [14:33: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 A3 FA 08 01 09 70 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 26 BB 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 27 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 84 00 00 00 00 07 04 06 00 00 E2 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 C1 6A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 53 08 01 00 35 04 06 00 8F 22 FC 94 5A 1C BA 1F 46 CB E7 B5 6F AA [14:33:35]CheckFolder [14:33:35]dirname=/storage/ofd_packets [14:33:35]CheckFolder done [14:33:35]ProducePacketName [14:33:35]name=ofd_packets/00067667 [14:33:35]NVStorageSaveData ofd_packets/00067667 [14:33:35]File name is /storage/ofd_packets/00067667 [14:33:35]Write 302 bytes [14:33:35]NVStorageSaveData done [14:33:35]OFDSenderStorePacket done [14:33:35]KKMCreateOFDPacket done [14:33:35]NVStorageSaveData kkm_last_timestamp [14:33:35]File name is /storage/kkm_last_timestamp [14:33:35]Write 4 bytes [14:33:35]NVStorageSaveData done [14:33:35]ExternCall_PrintAddStr [14:33:35]wPrintStart [14:33:35]Write to MH i2c: 01 00 00 1F 22 41 [14:33:35]Write i2c OK [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: 01 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: 01 07 00 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: 01 07 00 1F 22 00 00 00 00 00 FF 0F 56 [14:33:35]RasterBufferAndPrint [14:33:35]line Счет N : (1)507812 [14:33:35]line ИНН: 02508201610067 [14:33:35]line Контрольно-Кассовый Чек [14:33:35]line ПРОДАЖА [14:33:35]line ТРК (МРК, ГНК) : 42 [14:33:35]line Товар: 2710124130 [14:33:35]line Super-92-К-5 [14:33:35]line 47.910 * 66.80 [14:33:35]line = 3200.39 [14:33:35]line НДС 12% НСП 1% [14:33:35]line > о реализуемом товаре [14:33:35]line ОКРУГЛЕНИЕ: -0.39 [14:33:35]line ИТОГО: 3200.00 [14:33:35]line Внесено: 3200.00 [14:33:35]line СДАЧА: 0.00 [14:33:35]line НСП 1% : 28.32 [14:33:35]line НДС 12% : 339.86 [14:33:35]line Наличными: 3200.00 [14:33:35]line Безнал.: 0.00 [14:33:35]line Место: АЗС № 91 "Партнер Нефть" [14:33:35]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:33:35]line СНО: Общий режим [14:33:35]line Чек 76 17.05.2024 14:33 [14:33:35]line Смена: 358 ФФД: 1.0 [14:33:35]line ЗНМ: 0300000119 [14:33:35]line РНМ: 0000000000091845 [14:33:35]line Версия ККМ: 001 [14:33:35]line [14:33:35]line Дисконтная программа [14:33:35]line S-92 [14:33:35]line номер 91 [14:33:35]line сэкономлено 47.91 сом [14:33:35]line ФМ: 0000000000871829 [14:33:35]line ФД: 67667 [14:33:35]line ФПД: 157380429240860 [14:33:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T143337&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67667&fm=157380429240860&tin=02508201610067®Number=0000000000091845&sum=320000 [14:33:35]OFD Sender: Processing packet 67667 [packets to send 35, broken 34] [14:33:35]ProducePacketName [14:33:35]name=ofd_packets/00067667 [14:33:35]OFD Sender: To server: pG, [14:33:35]CommunicateWithHost lk.salyk.kg:30040 [14:33:35]ConnectInit lk.salyk.kg [14:33:35]written 0, free lines is 4095 [14:33:35]Connected sock=10 [14:33: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 A3 FA 08 01 09 70 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 26 BB 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 27 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 84 00 00 00 00 07 04 06 00 00 E2 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 C1 6A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 53 08 01 00 35 04 06 00 8F 22 FC 94 5A 1C BA 1F 46 CB E7 B5 6F AA [14:33: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 67 BB 47 00 4A 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 53 08 01 00 F4 03 04 00 99 12 47 66 B6 04 01 00 00 4F 6D 15 EB 89 F7 48 42 [14:33:35]CommunicateWithHost err = 0 [14:33:35]CheckOFDResponse [14:33:35]1017 (14) - 77093643461234 [14:33:35]1041 (16) - 0000000000871829 [14:33:35]1040 (4) - 67667 [14:33:35]1012 (4) - 17.05.2024 08:17 [14:33:35]1206 (1) - 0 [14:33:35]OFD Sender: Remove packet 67667 [14:33:35]ProducePacketName [14:33:35]name=ofd_packets/00067667 [14:33:35]NVStorageDeleteData [14:33:35]Write to MH i2c: 01 00 00 4E 22 70 [14:33:35]Write i2c OK [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: 01 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: 01 07 00 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: 01 07 00 4E 22 00 00 00 00 00 72 0C F5 [14:33:35]RasterBufferAndPrint [14:33:35]line [14:33:35]line [14:33:35]line [14:33:35]line [14:33:35]line [14:33:35]written 0, free lines is 3192 [14:33:35]MH_Cut [14:33:35]Write to MH i2c: D1 01 00 55 22 01 49 [14:33:35]Write i2c OK [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: D1 [14:33:35]MH_I2C_Read... [14:33:35]Read from MH i2c: D1 01 00 [14:33:36]MH_I2C_Read... [14:33:36]Read from MH i2c: D1 01 00 55 22 00 48 [14:33:36]Write to MH i2c: 01 00 00 56 22 78 [14:33:36]Write i2c OK [14:33:36]MH_I2C_Read... [14:33:36]OFD Sender: No OFD packet to send [14:33:36]*** Cut start [14:33:36]*** Purtial cut [14:33:36]*** CUTSNS_PIN = 0 [14:33:37]*** Stage 1: CUTSNS_PIN = 1 [14:33:38]Read from MH i2c: 01 [14:33:38]MH_I2C_Read... [14:33:38]*** Stop cut motor [14:33:38]*** Cut end [14:33:38]Read from MH i2c: 01 07 00 [14:33:38]MH_I2C_Read... [14:33:38]Read from MH i2c: 01 07 00 56 22 00 00 00 00 00 FF 0F 8D [14:33:38]process_action close_receipt done [14:33:38]requested_data is exist [14:33:38]produce_requested_data [14:33:38]requested_item fm.sn is exist - process it [14:33:38]wFMCommunicate request_size=4 [14:33:38]MH_SAM_APDU [14:33:38]CAPDU: 80 11 00 00 [14:33:38]Write to MH i2c: E2 08 00 57 22 80 11 00 00 00 00 00 00 F3 [14:33:38]Write i2c OK [14:33:38]MH_I2C_Read... [14:33:38]Read from MH i2c: E2 [14:33:38]MH_I2C_Read... [14:33:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:38]Read from MH i2c: E2 17 00 [14:33:38]MH_I2C_Read... [14:33:38]Read from MH i2c: E2 17 00 57 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 49 [14:33: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:33:38]wFMCommunicate OK [14:33:38]requested_item fd.num is exist - process it [14:33:38]SAM_PROTO_GetFieldsCounters [14:33:38]wFMCommunicate request_size=4 [14:33:38]MH_SAM_APDU [14:33:38]CAPDU: 80 13 00 00 [14:33:38]Write to MH i2c: E2 08 00 58 22 80 13 00 00 00 00 00 00 F6 [14:33:38]Write i2c OK [14:33:38]MH_I2C_Read... [14:33:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:39]Read from MH i2c: E2 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: E2 62 00 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: E2 62 00 58 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 53 08 01 00 0E 04 04 00 66 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 C3 [14:33: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 53 08 01 00 0E 04 04 00 66 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 [14:33:39]wFMCommunicate OK [14:33:39]SAM_PROTO_GetFieldsCounters done [14:33:39]requested_item shift.num is exist - process it [14:33:39]requested_item shift.opened is exist - process it [14:33:39]req_shift_opened [14:33:39]FM_GetShiftState [14:33:39]SAM_PROTO_GetShiftState [14:33:39]wFMCommunicate request_size=4 [14:33:39]MH_SAM_APDU [14:33:39]CAPDU: 80 13 01 00 [14:33:39]Write to MH i2c: E2 08 00 59 22 80 13 01 00 00 00 00 00 F8 [14:33:39]Write i2c OK [14:33:39]MH_I2C_Read... [14:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:39]Read from MH i2c: E2 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: E2 0E 00 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: E2 0E 00 59 22 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 7E [14:33:39]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:33:39]wFMCommunicate OK [14:33:39]SAM_PROTO_GetShiftState done [14:33:39]FM_GetShiftState done [14:33:39]req_shift_opened done [14:33:39]requested_item shift.open_date is exist - process it [14:33:39]req_shift_open_date [14:33:39]req_shift_open_date done [14:33:39]produce_requested_data done [14:33:39]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67667,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [14:33:39]process_action_free close_receipt [14:33:39]json_value_free [14:33:39]json_value_free done [14:33:39]process_json_proto returns [14:33:39]Send response to host [14:33:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67667,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [14:33:39]free response buf [14:33:39]execute_script done [14:33:39]execute_script returns [14:33:39]free content buf [14:33:39]Sock 7.Close socket [14:33:39]Sock 7.Thread stoped [14:33:41]OFD Sender: No OFD packet to send [14:33:42]accept exits with 9 [14:33:42]New connection [14:33:42]New thread 3067538788 created [14:33:42]Thread 3067395428 joined [14:33:42]Waiting for new connection... [14:33:42] Sock 9.Parse request [14:33:42]Sock 9.Check first char [14:33:42]Sock 9.First char is OK [14:33:42]request: POST /json_proto HTTP/1.0 [14:33:42]Method: POST [14:33:42]URL: /json_proto [14:33:42]Method is POST - this is cgi request [14:33:42]url: /json_proto [14:33:42]query_string will be loaded in cgi processing [14:33:42]execute_cgi json_proto POST (null) [14:33:42]execute_cgi path=json_proto method=POST [14:33:42]POST find Content-Length [14:33:42]Host: 172.17.41.195:8080 [14:33:42]Content-Length: 674 [14:33:42]Content-Type: application/json [14:33:42] [14:33:42]POST finish read [14:33:42]Found Content-Length = 674 [14:33:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507813", "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" : 4.020, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:42]execute_script... [14:33: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)507813", "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" : 4.020, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:42]POST & json_proto [14:33:42]process_json_proto [14:33:42]json parsed OK: [14:33:42]protocol is kg_v1.0 [14:33:42]action value=close_receipt [14:33:42]process_action close_receipt [14:33:42]cmd_close_receipt [14:33:42]MH_GetDate [14:33:42]Write to MH i2c: F0 00 00 5A 22 6B [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: F0 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: F0 09 00 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: F0 09 00 5A 22 00 C9 6A 47 66 FC 21 6F 64 44 [14:33:42]GetLastDocTimeStamp 1715956417 [14:33:42]current date 1715956425 [14:33:42]FM_GetShiftState [14:33:42]SAM_PROTO_GetShiftState [14:33:42]wFMCommunicate request_size=4 [14:33:42]MH_SAM_APDU [14:33:42]CAPDU: 80 13 01 00 [14:33:42]Write to MH i2c: E2 08 00 5B 22 80 13 01 00 00 00 00 00 FA [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:42]Read from MH i2c: E2 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: E2 0E 00 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: E2 0E 00 5B 22 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 80 [14:33:42]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:33:42]wFMCommunicate OK [14:33:42]SAM_PROTO_GetShiftState done [14:33:42]FM_GetShiftState done [14:33:42]opened in 1715905068 [14:33:42]opened+sec_in_day 1715991468 [14:33:42]quantity*price = 30029 [14:33:42]sum+1 = 30030 [14:33:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 77 17.05.2024 14:33 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67668 ФПД: 59310551130651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T143345&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67668&fm=59310551130651&tin=02508201610067®Number=0000000000091845&sum=30000 [14:33:43]StoreToDocumentArchive [14:33:43]shift 358 fd 67668 [14:33:43]save to /storage/0358/doc_00067668 [14:33:43]save last doc name /storage/0358/doc_00067668 to /storage/kkm_last_doc_name [14:33:43]save OK [14:33:43]Clear old archive folders... [14:33:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:33:43]tlvbuf is 0163F830 [14:33:43]SAM_PROTO_ClearQueue [14:33:43]wFMCommunicate request_size=4 [14:33:43]MH_SAM_APDU [14:33:43]CAPDU: 80 09 00 00 [14:33:43]Write to MH i2c: E2 08 00 68 22 80 09 00 00 00 00 00 00 FC [14:33:43]Write i2c OK [14:33:43]MH_I2C_Read... [14:33:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:43]Read from MH i2c: E2 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 03 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 03 00 68 22 00 90 00 FE [14:33:43]RAPDU: 90 00 [14:33:43]wFMCommunicate OK [14:33:43]SAM_PROTO_ClearQueue done [14:33:43]KKMCreateOFDPacket [14:33:43]OFDProtocolAddRootSTLVToBuf [14:33:43]FM_MakeSignedData [14:33:43]FM_MakeSignedData [14:33:43]SAM_PROTO_SignData [14:33:43]wFMCommunicate request_size=4 [14:33:43]MH_SAM_APDU [14:33:43]CAPDU: 80 0D 01 02 [14:33:43]Write to MH i2c: E2 08 00 69 22 80 0D 01 02 00 00 00 00 04 [14:33:43]Write i2c OK [14:33:43]MH_I2C_Read... [14:33:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:43]Read from MH i2c: E2 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 03 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 03 00 69 22 00 90 00 FF [14:33:43]RAPDU: 90 00 [14:33:43]wFMCommunicate OK [14:33:43]wFMCommunicate request_size=255 [14:33:43]MH_SAM_APDU [14:33: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 B4 0F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 C9 6A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 54 08 01 00 35 04 06 00 35 F1 50 54 [14:33:43]Write to MH i2c: E2 02 01 6A 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 B4 0F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 C9 6A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 54 08 01 00 35 04 06 00 35 F1 50 54 00 00 C7 [14:33:43]Write i2c OK [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 [14:33:43]MH_I2C_Read... [14:33:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:43]Read from MH i2c: E2 03 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 03 00 6A 22 00 90 00 00 [14:33:43]RAPDU: 90 00 [14:33:43]wFMCommunicate OK [14:33:43]wFMCommunicate request_size=7 [14:33:43]MH_SAM_APDU [14:33:43]CAPDU: 80 0D 02 02 02 E2 1B [14:33:43]Write to MH i2c: E2 0A 00 6B 22 80 0D 02 02 02 00 E2 1B 00 00 08 [14:33:43]Write i2c OK [14:33:43]MH_I2C_Read... [14:33:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:43]Read from MH i2c: E2 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 03 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 03 00 6B 22 00 90 00 01 [14:33:43]RAPDU: 90 00 [14:33:43]wFMCommunicate OK [14:33:43]wFMCommunicate request_size=4 [14:33:43]MH_SAM_APDU [14:33:43]CAPDU: 80 0D 03 02 [14:33:43]Write to MH i2c: E2 08 00 6C 22 80 0D 03 02 00 00 00 00 09 [14:33:43]Write i2c OK [14:33:43]MH_I2C_Read... [14:33:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:43]Read from MH i2c: E2 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 0B 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 0B 00 6C 22 00 E2 95 85 BB 7D 85 B8 39 90 00 B4 [14:33:43]RAPDU: E2 95 85 BB 7D 85 B8 39 90 00 [14:33:43]wFMCommunicate OK [14:33:43]SAM_PROTO_SignData done [14:33:43]FM_MakeSignedData done [14:33:43]CreateOFDProtocolMessage [14:33:43]wFMCommunicate request_size=4 [14:33:43]MH_SAM_APDU [14:33:43]CAPDU: 80 11 00 00 [14:33:43]Write to MH i2c: E2 08 00 6D 22 80 11 00 00 00 00 00 00 09 [14:33:43]Write i2c OK [14:33:43]MH_I2C_Read... [14:33:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:43]Read from MH i2c: E2 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 17 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: E2 17 00 6D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5F [14:33:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:33:43]wFMCommunicate OK [14:33:43]CreateOFDProtocolMessage done [14:33:43]OFDSenderStorePacket 67668 [14:33:43]StoreOFDPacket docnum=67668 [14:33: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 4B 98 04 01 40 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 0F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 C9 6A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 54 08 01 00 35 04 06 00 35 F1 50 54 E2 1B E2 95 85 BB 7D 85 B8 39 [14:33:43]CheckFolder [14:33:43]dirname=/storage/ofd_packets [14:33:43]CheckFolder done [14:33:43]ProducePacketName [14:33:43]name=ofd_packets/00067668 [14:33:43]NVStorageSaveData ofd_packets/00067668 [14:33:43]File name is /storage/ofd_packets/00067668 [14:33:43]Write 298 bytes [14:33:43]NVStorageSaveData done [14:33:43]OFDSenderStorePacket done [14:33:43]KKMCreateOFDPacket done [14:33:43]NVStorageSaveData kkm_last_timestamp [14:33:43]File name is /storage/kkm_last_timestamp [14:33:43]Write 4 bytes [14:33:43]NVStorageSaveData done [14:33:43]ExternCall_PrintAddStr [14:33:43]wPrintStart [14:33:43]Write to MH i2c: 01 00 00 6E 22 90 [14:33:43]Write i2c OK [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: 01 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: 01 07 00 [14:33:43]MH_I2C_Read... [14:33:43]Read from MH i2c: 01 07 00 6E 22 00 00 00 00 00 FF 0F A5 [14:33:43]RasterBufferAndPrint [14:33:43]line Счет N : (1)507813 [14:33:43]line ИНН: 02508201610067 [14:33:43]line Контрольно-Кассовый Чек [14:33:43]line ПРОДАЖА [14:33:43]line ТРК (МРК, ГНК) : 11 [14:33:43]line Товар: 2710194210 [14:33:43]line ДТ-К-5 [14:33:43]line 4.020 * 74.70 [14:33:43]line = 300.29 [14:33:43]line НДС 12% НСП 1% [14:33:43]line > о реализуемом товаре [14:33:43]line ОКРУГЛЕНИЕ: -0.29 [14:33:43]line ИТОГО: 300.00 [14:33:43]line Внесено: 300.00 [14:33:43]line СДАЧА: 0.00 [14:33:43]line НСП 1% : 2.66 [14:33:43]line НДС 12% : 31.89 [14:33:43]line Наличными: 300.00 [14:33:43]line Безнал.: 0.00 [14:33:43]line Место: АЗС № 91 "Партнер Нефть" [14:33:43]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:33:43]line СНО: Общий режим [14:33:43]line Чек 77 17.05.2024 14:33 [14:33:43]line Смена: 358 ФФД: 1.0 [14:33:43]line ЗНМ: 0300000119 [14:33:43]line РНМ: 0000000000091845 [14:33:43]line Версия ККМ: 001 [14:33:43]line ФМ: 0000000000871829 [14:33:43]line ФД: 67668 [14:33:43]line ФПД: 59310551130651 [14:33:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T143345&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67668&fm=59310551130651&tin=02508201610067®Number=0000000000091845&sum=30000 [14:33:43]written 0, free lines is 4095 [14:33:43]OFD Sender: Processing packet 67668 [packets to send 35, broken 34] [14:33:43]ProducePacketName [14:33:43]name=ofd_packets/00067668 [14:33:43]OFD Sender: To server: pG, [14:33:43]CommunicateWithHost lk.salyk.kg:30040 [14:33:43]ConnectInit lk.salyk.kg [14:33:43]Connected sock=10 [14:33: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 4B 98 04 01 40 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 0F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 C9 6A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 54 08 01 00 35 04 06 00 35 F1 50 54 E2 1B E2 95 85 BB 7D 85 B8 39 [14:33: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 51 E7 47 00 F3 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 54 08 01 00 F4 03 04 00 A1 12 47 66 B6 04 01 00 00 A7 55 74 12 6B F2 73 E3 [14:33:44]CommunicateWithHost err = 0 [14:33:44]CheckOFDResponse [14:33:44]1017 (14) - 77093643461234 [14:33:44]1041 (16) - 0000000000871829 [14:33:44]1040 (4) - 67668 [14:33:44]1012 (4) - 17.05.2024 08:17 [14:33:44]1206 (1) - 0 [14:33:44]OFD Sender: Remove packet 67668 [14:33:44]ProducePacketName [14:33:44]name=ofd_packets/00067668 [14:33:44]NVStorageDeleteData [14:33:44]Write to MH i2c: 01 00 00 98 22 BA [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: 01 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: 01 07 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: 01 07 00 98 22 00 00 00 00 00 D6 0C A3 [14:33:44]RasterBufferAndPrint [14:33:44]line [14:33:44]line [14:33:44]line [14:33:44]line [14:33:44]line [14:33:44]written 0, free lines is 3295 [14:33:44]MH_Cut [14:33:44]Write to MH i2c: D1 01 00 9F 22 01 93 [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: D1 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: D1 01 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: D1 01 00 9F 22 00 92 [14:33:44]Write to MH i2c: 01 00 00 A0 22 C2 [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]OFD Sender: No OFD packet to send [14:33:45]*** Cut start [14:33:45]*** Purtial cut [14:33:45]*** Stage 1: CUTSNS_PIN = 1 [14:33:45]Read from MH i2c: 01 [14:33:45]MH_I2C_Read... [14:33:45]*** Stop cut motor [14:33:45]*** Cut end [14:33:45]Read from MH i2c: 01 07 00 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: 01 07 00 A0 22 00 00 00 00 00 FF 0F D7 [14:33:45]process_action close_receipt done [14:33:45]requested_data is exist [14:33:45]produce_requested_data [14:33:45]requested_item fm.sn is exist - process it [14:33:45]wFMCommunicate request_size=4 [14:33:45]MH_SAM_APDU [14:33:45]CAPDU: 80 11 00 00 [14:33:45]Write to MH i2c: E2 08 00 A1 22 80 11 00 00 00 00 00 00 3D [14:33:45]Write i2c OK [14:33:45]MH_I2C_Read... [14:33:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:45]Read from MH i2c: E2 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 17 00 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 17 00 A1 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 93 [14:33:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:33:45]wFMCommunicate OK [14:33:45]requested_item fd.num is exist - process it [14:33:45]SAM_PROTO_GetFieldsCounters [14:33:45]wFMCommunicate request_size=4 [14:33:45]MH_SAM_APDU [14:33:45]CAPDU: 80 13 00 00 [14:33:45]Write to MH i2c: E2 08 00 A2 22 80 13 00 00 00 00 00 00 40 [14:33:45]Write i2c OK [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 [14:33:45]MH_I2C_Read... [14:33:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:45]Read from MH i2c: E2 62 00 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 62 00 A2 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 54 08 01 00 0E 04 04 00 66 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 11 [14:33: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 54 08 01 00 0E 04 04 00 66 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 [14:33:45]wFMCommunicate OK [14:33:45]SAM_PROTO_GetFieldsCounters done [14:33:45]requested_item shift.num is exist - process it [14:33:45]requested_item shift.opened is exist - process it [14:33:45]req_shift_opened [14:33:45]FM_GetShiftState [14:33:45]SAM_PROTO_GetShiftState [14:33:45]wFMCommunicate request_size=4 [14:33:45]MH_SAM_APDU [14:33:45]CAPDU: 80 13 01 00 [14:33:45]Write to MH i2c: E2 08 00 A3 22 80 13 01 00 00 00 00 00 42 [14:33:45]Write i2c OK [14:33:45]MH_I2C_Read... [14:33:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:45]Read from MH i2c: E2 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 0E 00 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 0E 00 A3 22 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 C8 [14:33:45]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:33:45]wFMCommunicate OK [14:33:45]SAM_PROTO_GetShiftState done [14:33:45]FM_GetShiftState done [14:33:45]req_shift_opened done [14:33:45]requested_item shift.open_date is exist - process it [14:33:45]req_shift_open_date [14:33:45]req_shift_open_date done [14:33:45]produce_requested_data done [14:33:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67668,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [14:33:45]process_action_free close_receipt [14:33:45]json_value_free [14:33:45]json_value_free done [14:33:45]process_json_proto returns [14:33:45]Send response to host [14:33:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67668,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [14:33:45]free response buf [14:33:45]execute_script done [14:33:45]execute_script returns [14:33:45]free content buf [14:33:45]Sock 9.Close socket [14:33:45]Sock 9.Thread stoped [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:41:59]accept exits with 7 [14:41:59]New connection [14:41:59]New thread 3067395428 created [14:41:59]Thread 3067538788 joined [14:41:59]Waiting for new connection... [14:41:59] Sock 7.Parse request [14:41:59]Sock 7.Check first char [14:41:59]Sock 7.First char is OK [14:41:59]request: POST /json_proto HTTP/1.0 [14:41:59]Method: POST [14:41:59]URL: /json_proto [14:41:59]Method is POST - this is cgi request [14:41:59]url: /json_proto [14:41:59]query_string will be loaded in cgi processing [14:41:59]execute_cgi json_proto POST (null) [14:41:59]execute_cgi path=json_proto method=POST [14:41:59]POST find Content-Length [14:41:59]Host: 172.17.41.195:8080 [14:41:59]Content-Length: 800 [14:41:59]Content-Type: application/json [14:41:59] [14:41:59]POST finish read [14:41:59]Found Content-Length = 800 [14:41:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507814", "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" ] } } [14:41:59]execute_script... [14:41: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)507814", "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" ] } } [14:41:59]POST & json_proto [14:41:59]process_json_proto [14:41:59]json parsed OK: [14:41:59]protocol is kg_v1.0 [14:41:59]action value=close_receipt [14:41:59]process_action close_receipt [14:41:59]cmd_close_receipt [14:41:59]MH_GetDate [14:41:59]Write to MH i2c: F0 00 00 A4 22 B5 [14:41:59]Write i2c OK [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: F0 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: F0 09 00 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: F0 09 00 A4 22 00 BB 6C 47 66 FC 21 6F 64 82 [14:41:59]GetLastDocTimeStamp 1715956425 [14:41:59]current date 1715956923 [14:41:59]FM_GetShiftState [14:41:59]SAM_PROTO_GetShiftState [14:41:59]wFMCommunicate request_size=4 [14:41:59]MH_SAM_APDU [14:41:59]CAPDU: 80 13 01 00 [14:41:59]Write to MH i2c: E2 08 00 A5 22 80 13 01 00 00 00 00 00 44 [14:41:59]Write i2c OK [14:41:59]MH_I2C_Read... [14:41:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:59]Read from MH i2c: E2 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: E2 0E 00 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: E2 0E 00 A5 22 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CA [14:41:59]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:41:59]wFMCommunicate OK [14:41:59]SAM_PROTO_GetShiftState done [14:41:59]FM_GetShiftState done [14:41:59]opened in 1715905068 [14:41:59]opened+sec_in_day 1715991468 [14:41:59]quantity*price = 200046 [14:41:59]sum+1 = 200048 [14:41:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 78 17.05.2024 14:42 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67669 ФПД: 200629441938378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T144203&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67669&fm=200629441938378&tin=02508201610067®Number=0000000000091845&sum=200047 [14:42:00]StoreToDocumentArchive [14:42:00]shift 358 fd 67669 [14:42:00]save to /storage/0358/doc_00067669 [14:42:00]save last doc name /storage/0358/doc_00067669 to /storage/kkm_last_doc_name [14:42:00]save OK [14:42:00]Clear old archive folders... [14:42:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:42:00]tlvbuf is B6FE7520 [14:42:00]SAM_PROTO_ClearQueue [14:42:00]wFMCommunicate request_size=4 [14:42:00]MH_SAM_APDU [14:42:00]CAPDU: 80 09 00 00 [14:42:00]Write to MH i2c: E2 08 00 B2 22 80 09 00 00 00 00 00 00 46 [14:42:00]Write i2c OK [14:42:00]MH_I2C_Read... [14:42:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:00]Read from MH i2c: E2 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: E2 03 00 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: E2 03 00 B2 22 00 90 00 48 [14:42:00]RAPDU: 90 00 [14:42:00]wFMCommunicate OK [14:42:00]SAM_PROTO_ClearQueue done [14:42:00]KKMCreateOFDPacket [14:42:00]OFDProtocolAddRootSTLVToBuf [14:42:00]FM_MakeSignedData [14:42:00]FM_MakeSignedData [14:42:00]SAM_PROTO_SignData [14:42:00]wFMCommunicate request_size=4 [14:42:00]MH_SAM_APDU [14:42:00]CAPDU: 80 0D 01 02 [14:42:00]Write to MH i2c: E2 08 00 B3 22 80 0D 01 02 00 00 00 00 4E [14:42:00]Write i2c OK [14:42:00]MH_I2C_Read... [14:42:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:00]Read from MH i2c: E2 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: E2 03 00 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: E2 03 00 B3 22 00 90 00 49 [14:42:00]RAPDU: 90 00 [14:42:00]wFMCommunicate OK [14:42:00]wFMCommunicate request_size=255 [14:42:00]MH_SAM_APDU [14:42:00]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 4E 00 00 00 F4 03 04 00 BB 6C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 55 08 01 00 35 04 06 00 B6 78 AE 9E [14:42:00]Write to MH i2c: E2 02 01 B4 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 BB 6C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 55 08 01 00 35 04 06 00 B6 78 AE 9E 00 00 1B [14:42:00]Write i2c OK [14:42:00]MH_I2C_Read... [14:42:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:01]Read from MH i2c: E2 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 03 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 03 00 B4 22 00 90 00 4A [14:42:01]RAPDU: 90 00 [14:42:01]wFMCommunicate OK [14:42:01]wFMCommunicate request_size=7 [14:42:01]MH_SAM_APDU [14:42:01]CAPDU: 80 0D 02 02 02 43 CA [14:42:01]Write to MH i2c: E2 0A 00 B5 22 80 0D 02 02 02 00 43 CA 00 00 62 [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:01]Read from MH i2c: E2 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 03 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 03 00 B5 22 00 90 00 4B [14:42:01]RAPDU: 90 00 [14:42:01]wFMCommunicate OK [14:42:01]wFMCommunicate request_size=4 [14:42:01]MH_SAM_APDU [14:42:01]CAPDU: 80 0D 03 02 [14:42:01]Write to MH i2c: E2 08 00 B6 22 80 0D 03 02 00 00 00 00 53 [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:01]Read from MH i2c: E2 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 0B 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 0B 00 B6 22 00 3A 71 46 C7 14 40 A7 D2 90 00 D9 [14:42:01]RAPDU: 3A 71 46 C7 14 40 A7 D2 90 00 [14:42:01]wFMCommunicate OK [14:42:01]SAM_PROTO_SignData done [14:42:01]FM_MakeSignedData done [14:42:01]CreateOFDProtocolMessage [14:42:01]wFMCommunicate request_size=4 [14:42:01]MH_SAM_APDU [14:42:01]CAPDU: 80 11 00 00 [14:42:01]Write to MH i2c: E2 08 00 B7 22 80 11 00 00 00 00 00 00 53 [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:01]Read from MH i2c: E2 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 17 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 17 00 B7 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A9 [14:42:01]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:01]wFMCommunicate OK [14:42:01]CreateOFDProtocolMessage done [14:42:01]OFDSenderStorePacket 67669 [14:42:01]StoreOFDPacket docnum=67669 [14:42:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 8D F7 04 01 D7 20 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 4E 00 00 00 F4 03 04 00 BB 6C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 55 08 01 00 35 04 06 00 B6 78 AE 9E 43 CA 3A 71 46 C7 14 40 A7 D2 [14:42:01]CheckFolder [14:42:01]dirname=/storage/ofd_packets [14:42:01]CheckFolder done [14:42:01]ProducePacketName [14:42:01]name=ofd_packets/00067669 [14:42:01]NVStorageSaveData ofd_packets/00067669 [14:42:01]File name is /storage/ofd_packets/00067669 [14:42:01]Write 298 bytes [14:42:01]NVStorageSaveData done [14:42:01]OFDSenderStorePacket done [14:42:01]KKMCreateOFDPacket done [14:42:01]NVStorageSaveData kkm_last_timestamp [14:42:01]File name is /storage/kkm_last_timestamp [14:42:01]Write 4 bytes [14:42:01]NVStorageSaveData done [14:42:01]ExternCall_PrintAddStr [14:42:01]wPrintStart [14:42:01]Write to MH i2c: 01 00 00 B8 22 DA [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: 01 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: 01 07 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: 01 07 00 B8 22 00 00 00 00 00 FF 0F EF [14:42:01]RasterBufferAndPrint [14:42:01]line Счет N : (1)507814 [14:42:01]line ИНН: 02508201610067 [14:42:01]line Контрольно-Кассовый Чек [14:42:01]line ПРОДАЖА [14:42:01]line ТРК (МРК, ГНК) : 31 [14:42:01]line Товар: 2710194210 [14:42:01]line ДТ-К-5 [14:42:01]line 26.780 * 74.70 [14:42:01]line = 2000.47 [14:42:01]line НДС 12% НСП 1% [14:42:01]line > о реализуемом товаре [14:42:01]line ИТОГО: 2000.47 [14:42:01]line НСП 1% : 17.70 [14:42:01]line НДС 12% : 212.44 [14:42:01]line Наличными: 0.00 [14:42:01]line Безнал.: 2000.47 [14:42:01]line Место: АЗС № 91 "Партнер Нефть" [14:42:01]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:42:01]line СНО: Общий режим [14:42:01]line Чек 78 17.05.2024 14:42 [14:42:01]line Смена: 358 ФФД: 1.0 [14:42:01]line ЗНМ: 0300000119 [14:42:01]line РНМ: 0000000000091845 [14:42:01]line Версия ККМ: 001 [14:42:01]line Платежная система: O! деньги [14:42:01]line ФМ: 0000000000871829 [14:42:01]line ФД: 67669 [14:42:01]line ФПД: 200629441938378 [14:42:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T144203&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67669&fm=200629441938378&tin=02508201610067®Number=0000000000091845&sum=200047 [14:42:01]OFD Sender: Processing packet 67669 [packets to send 35, broken 34] [14:42:01]ProducePacketName [14:42:01]name=ofd_packets/00067669 [14:42:01]OFD Sender: To server: pG, [14:42:01]CommunicateWithHost lk.salyk.kg:30040 [14:42:01]ConnectInit lk.salyk.kg [14:42:01]written 0, free lines is 4095 [14:42:01]Connected sock=10 [14:42: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 0C 01 00 00 8D F7 04 01 D7 20 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 4E 00 00 00 F4 03 04 00 BB 6C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 55 08 01 00 35 04 06 00 B6 78 AE 9E 43 CA 3A 71 46 C7 14 40 A7 D2 [14:42: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 A9 B3 47 00 75 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 55 08 01 00 F4 03 04 00 93 14 47 66 B6 04 01 00 00 7B 46 33 05 CB EC 53 27 [14:42:01]CommunicateWithHost err = 0 [14:42:01]CheckOFDResponse [14:42:01]1017 (14) - 77093643461234 [14:42:01]1041 (16) - 0000000000871829 [14:42:01]1040 (4) - 67669 [14:42:01]1012 (4) - 17.05.2024 08:25 [14:42:01]1206 (1) - 0 [14:42:01]OFD Sender: Remove packet 67669 [14:42:01]ProducePacketName [14:42:01]name=ofd_packets/00067669 [14:42:01]NVStorageDeleteData [14:42:01]Write to MH i2c: 01 00 00 E1 22 03 [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: 01 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: 01 07 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: 01 07 00 E1 22 00 00 00 00 00 D6 0C EC [14:42:01]RasterBufferAndPrint [14:42:01]line [14:42:01]line [14:42:01]line [14:42:01]line [14:42:01]line [14:42:01]written 0, free lines is 3294 [14:42:01]MH_Cut [14:42:01]Write to MH i2c: D1 01 00 E8 22 01 DC [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:02]Read from MH i2c: D1 [14:42:02]MH_I2C_Read... [14:42:02]Read from MH i2c: D1 01 00 [14:42:02]MH_I2C_Read... [14:42:02]Read from MH i2c: D1 01 00 E8 22 00 DB [14:42:02]Write to MH i2c: 01 00 00 E9 22 0B [14:42:02]Write i2c OK [14:42:02]MH_I2C_Read... [14:42:02]OFD Sender: No OFD packet to send [14:42:02]*** Cut start [14:42:02]*** Purtial cut [14:42:02]*** CUTSNS_PIN = 0 [14:42:03]*** Stage 1: CUTSNS_PIN = 1 [14:42:04]Read from MH i2c: 01 [14:42:04]MH_I2C_Read... [14:42:04]*** Stop cut motor [14:42:04]*** Cut end [14:42:04]Read from MH i2c: 01 07 00 [14:42:04]MH_I2C_Read... [14:42:04]Read from MH i2c: 01 07 00 E9 22 00 00 00 00 00 FF 0F 20 [14:42:04]process_action close_receipt done [14:42:04]requested_data is exist [14:42:04]produce_requested_data [14:42:04]requested_item fm.sn is exist - process it [14:42:04]wFMCommunicate request_size=4 [14:42:04]MH_SAM_APDU [14:42:04]CAPDU: 80 11 00 00 [14:42:04]Write to MH i2c: E2 08 00 EA 22 80 11 00 00 00 00 00 00 86 [14:42:04]Write i2c OK [14:42:04]MH_I2C_Read... [14:42:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:04]Read from MH i2c: E2 [14:42:04]MH_I2C_Read... [14:42:04]Read from MH i2c: E2 17 00 [14:42:04]MH_I2C_Read... [14:42:04]Read from MH i2c: E2 17 00 EA 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DC [14:42:04]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:04]wFMCommunicate OK [14:42:04]requested_item fd.num is exist - process it [14:42:04]SAM_PROTO_GetFieldsCounters [14:42:04]wFMCommunicate request_size=4 [14:42:04]MH_SAM_APDU [14:42:04]CAPDU: 80 13 00 00 [14:42:04]Write to MH i2c: E2 08 00 EB 22 80 13 00 00 00 00 00 00 89 [14:42:04]Write i2c OK [14:42:04]MH_I2C_Read... [14:42:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:05]Read from MH i2c: E2 [14:42:05]MH_I2C_Read... [14:42:05]Read from MH i2c: E2 62 00 [14:42:05]MH_I2C_Read... [14:42:05]Read from MH i2c: E2 62 00 EB 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 55 08 01 00 0E 04 04 00 66 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 5E [14:42: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 55 08 01 00 0E 04 04 00 66 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 [14:42:05]wFMCommunicate OK [14:42:05]SAM_PROTO_GetFieldsCounters done [14:42:05]requested_item shift.num is exist - process it [14:42:05]requested_item shift.opened is exist - process it [14:42:05]req_shift_opened [14:42:05]FM_GetShiftState [14:42:05]SAM_PROTO_GetShiftState [14:42:05]wFMCommunicate request_size=4 [14:42:05]MH_SAM_APDU [14:42:05]CAPDU: 80 13 01 00 [14:42:05]Write to MH i2c: E2 08 00 EC 22 80 13 01 00 00 00 00 00 8B [14:42:05]Write i2c OK [14:42:05]MH_I2C_Read... [14:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:05]Read from MH i2c: E2 [14:42:05]MH_I2C_Read... [14:42:05]Read from MH i2c: E2 0E 00 [14:42:05]MH_I2C_Read... [14:42:05]Read from MH i2c: E2 0E 00 EC 22 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 11 [14:42:05]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:42:05]wFMCommunicate OK [14:42:05]SAM_PROTO_GetShiftState done [14:42:05]FM_GetShiftState done [14:42:05]req_shift_opened done [14:42:05]requested_item shift.open_date is exist - process it [14:42:05]req_shift_open_date [14:42:05]req_shift_open_date done [14:42:05]produce_requested_data done [14:42:05]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67669,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [14:42:05]process_action_free close_receipt [14:42:05]json_value_free [14:42:05]json_value_free done [14:42:05]process_json_proto returns [14:42:05]Send response to host [14:42:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67669,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [14:42:05]free response buf [14:42:05]execute_script done [14:42:05]execute_script returns [14:42:05]free content buf [14:42:05]Sock 7.Close socket [14:42:05]Sock 7.Thread stoped [14:42:07]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:07]OFD Sender: No OFD packet to send [14:50:12]OFD Sender: No OFD packet to send [14:50:17]OFD Sender: No OFD packet to send [14:50:22]OFD Sender: No OFD packet to send [14:50:27]OFD Sender: No OFD packet to send [14:50:32]OFD Sender: No OFD packet to send [14:50:37]OFD Sender: No OFD packet to send [14:50:42]OFD Sender: No OFD packet to send [14:50:47]OFD Sender: No OFD packet to send [14:50:52]OFD Sender: No OFD packet to send [14:50:57]OFD Sender: No OFD packet to send [14:51:02]OFD Sender: No OFD packet to send [14:51:07]OFD Sender: No OFD packet to send [14:51:12]OFD Sender: No OFD packet to send [14:51:17]OFD Sender: No OFD packet to send [14:51:22]OFD Sender: No OFD packet to send [14:51:27]OFD Sender: No OFD packet to send [14:51:32]OFD Sender: No OFD packet to send [14:51:37]OFD Sender: No OFD packet to send [14:51:42]OFD Sender: No OFD packet to send [14:51:47]OFD Sender: No OFD packet to send [14:51:52]OFD Sender: No OFD packet to send [14:51:57]OFD Sender: No OFD packet to send [14:52:02]OFD Sender: No OFD packet to send [14:52:07]OFD Sender: No OFD packet to send [14:52:12]OFD Sender: No OFD packet to send [14:52:17]OFD Sender: No OFD packet to send [14:52:22]OFD Sender: No OFD packet to send [14:52:27]OFD Sender: No OFD packet to send [14:52:32]OFD Sender: No OFD packet to send [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:57]OFD Sender: No OFD packet to send [14:53:02]OFD Sender: No OFD packet to send [14:53:07]accept exits with 9 [14:53:07]New connection [14:53:07]New thread 3067538788 created [14:53:07]Thread 3067395428 joined [14:53:07]Waiting for new connection... [14:53:07] Sock 9.Parse request [14:53:07]Sock 9.Check first char [14:53:07]Sock 9.First char is OK [14:53:07]request: POST /json_proto HTTP/1.0 [14:53:07]Method: POST [14:53:07]URL: /json_proto [14:53:07]Method is POST - this is cgi request [14:53:07]url: /json_proto [14:53:07]query_string will be loaded in cgi processing [14:53:07]execute_cgi json_proto POST (null) [14:53:07]execute_cgi path=json_proto method=POST [14:53:07]POST find Content-Length [14:53:07]Host: 172.17.41.195:8080 [14:53:07]Content-Length: 1141 [14:53:07]Content-Type: application/json [14:53:07] [14:53:07]POST finish read [14:53:07]Found Content-Length = 1141 [14:53: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507815\u000A17.05.2024 14: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 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30080925\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:07]execute_script... [14:53: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507815\u000A17.05.2024 14: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 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30080925\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:07]POST & json_proto [14:53:07]process_json_proto [14:53:07]json parsed OK: [14:53:07]protocol is kg_v1.0 [14:53:07]action value=print_text [14:53:07]process_action print_text [14:53:07]cmd_print_text [14:53:07]ExternCall_PrintAddStr [14:53:07]wPrintStart [14:53:07]Write to MH i2c: 01 00 00 ED 22 0F [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: 01 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: 01 07 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: 01 07 00 ED 22 00 00 00 00 00 FF 0F 24 [14:53:07]RasterBufferAndPrint [14:53:07]line *****ТОВАРНЫЙ ЧЕК***** [14:53:07]line АЗС-91 [14:53:07]line Партнер нефть [14:53:07]line 02508201610067 [14:53:07]line Кассир : Адишов И. [14:53:07]line Счет N : (1)507815 [14:53:07]line 17.05.2024 14:35 [14:53:07]line ПРОДАЖА [14:53:07]line ТРК (МРК, ГНК): 41 [14:53:07]line Вид ГСМ : 2710194210 [14:53:07]line ДТ-К-5 [14:53:07]line 60.000 x 74.70 [14:53:07]line ИТОГ: 4482.00 [14:53:07]line Тип оплаты: Талоны: ТК ГПНА Online [14:53:07]line 30080925 [14:53:07]line ______________________ [14:53:07]line (подпись) [14:53:07]written 0, free lines is 4095 [14:53:07]Write to MH i2c: 01 00 00 01 23 24 [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: 01 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: 01 07 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: 01 07 00 01 23 00 00 00 00 00 0C 0E 45 [14:53:07]RasterBufferAndPrint [14:53:07]line [14:53:07]line [14:53:07]line [14:53:07]line [14:53:07]line [14:53:07]written 0, free lines is 3598 [14:53:07]MH_Cut [14:53:07]Write to MH i2c: D1 01 00 08 23 01 FD [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: D1 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: D1 01 00 [14:53:07]MH_I2C_Read... [14:53:07]Read from MH i2c: D1 01 00 08 23 00 FC [14:53:07]Write to MH i2c: 01 00 00 09 23 2C [14:53:07]Write i2c OK [14:53:07]MH_I2C_Read... [14:53:07]OFD Sender: No OFD packet to send [14:53:08]*** Cut start [14:53:08]*** Purtial cut [14:53:08]*** Stage 1: CUTSNS_PIN = 1 [14:53:08]Read from MH i2c: 01 [14:53:08]MH_I2C_Read... [14:53:08]*** Stop cut motor [14:53:08]*** Cut end [14:53:08]Read from MH i2c: 01 07 00 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: 01 07 00 09 23 00 00 00 00 00 FF 0F 41 [14:53:08]process_action print_text done [14:53:08]requested_data is exist [14:53:08]produce_requested_data [14:53:08]requested_item fm.sn is exist - process it [14:53:08]wFMCommunicate request_size=4 [14:53:08]MH_SAM_APDU [14:53:08]CAPDU: 80 11 00 00 [14:53:08]Write to MH i2c: E2 08 00 0A 23 80 11 00 00 00 00 00 00 A7 [14:53:08]Write i2c OK [14:53:08]MH_I2C_Read... [14:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:08]Read from MH i2c: E2 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 17 00 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 17 00 0A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FD [14:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:53:08]wFMCommunicate OK [14:53:08]requested_item fd.num is exist - process it [14:53:08]SAM_PROTO_GetFieldsCounters [14:53:08]wFMCommunicate request_size=4 [14:53:08]MH_SAM_APDU [14:53:08]CAPDU: 80 13 00 00 [14:53:08]Write to MH i2c: E2 08 00 0B 23 80 13 00 00 00 00 00 00 AA [14:53:08]Write i2c OK [14:53:08]MH_I2C_Read... [14:53:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:08]Read from MH i2c: E2 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 62 00 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 62 00 0B 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 55 08 01 00 0E 04 04 00 66 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 7F [14:53: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 55 08 01 00 0E 04 04 00 66 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 [14:53:08]wFMCommunicate OK [14:53:08]SAM_PROTO_GetFieldsCounters done [14:53:08]requested_item shift.num is exist - process it [14:53:08]requested_item shift.opened is exist - process it [14:53:08]req_shift_opened [14:53:08]FM_GetShiftState [14:53:08]SAM_PROTO_GetShiftState [14:53:08]wFMCommunicate request_size=4 [14:53:08]MH_SAM_APDU [14:53:08]CAPDU: 80 13 01 00 [14:53:08]Write to MH i2c: E2 08 00 0C 23 80 13 01 00 00 00 00 00 AC [14:53:08]Write i2c OK [14:53:08]MH_I2C_Read... [14:53:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:08]Read from MH i2c: E2 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 0E 00 [14:53:08]MH_I2C_Read... [14:53:08]Read from MH i2c: E2 0E 00 0C 23 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 32 [14:53:08]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:53:08]wFMCommunicate OK [14:53:08]SAM_PROTO_GetShiftState done [14:53:08]FM_GetShiftState done [14:53:08]req_shift_opened done [14:53:08]requested_item shift.open_date is exist - process it [14:53:08]req_shift_open_date [14:53:08]req_shift_open_date done [14:53:08]produce_requested_data done [14:53:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67669,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [14:53:08]process_action_free print_text [14:53:08]json_value_free [14:53:08]json_value_free done [14:53:08]process_json_proto returns [14:53:08]Send response to host [14:53:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67669,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [14:53:08]free response buf [14:53:08]execute_script done [14:53:08]execute_script returns [14:53:08]free content buf [14:53:08]Sock 9.Close socket [14:53:08]Sock 9.Thread stoped [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [14:54:13]OFD Sender: No OFD packet to send [14:54:18]OFD Sender: No OFD packet to send [14:54:23]OFD Sender: No OFD packet to send [14:54:28]OFD Sender: No OFD packet to send [14:54:33]OFD Sender: No OFD packet to send [14:54:38]OFD Sender: No OFD packet to send [14:54:43]OFD Sender: No OFD packet to send [14:54:48]OFD Sender: No OFD packet to send [14:54:53]OFD Sender: No OFD packet to send [14:54:58]OFD Sender: No OFD packet to send [14:55:03]OFD Sender: No OFD packet to send [14:55:08]OFD Sender: No OFD packet to send [14:55:13]OFD Sender: No OFD packet to send [14:55:18]OFD Sender: No OFD packet to send [14:55:23]OFD Sender: No OFD packet to send [14:55:28]OFD Sender: No OFD packet to send [14:55:33]OFD Sender: No OFD packet to send [14:55:38]OFD Sender: No OFD packet to send [14:55:43]OFD Sender: No OFD packet to send [14:55:48]OFD Sender: No OFD packet to send [14:55:53]OFD Sender: No OFD packet to send [14:55:58]OFD Sender: No OFD packet to send [14:56:03]OFD Sender: No OFD packet to send [14:56:08]OFD Sender: No OFD packet to send [14:56:13]OFD Sender: No OFD packet to send [14:56:18]OFD Sender: No OFD packet to send [14:56:23]OFD Sender: No OFD packet to send [14:56:28]OFD Sender: No OFD packet to send [14:56:33]OFD Sender: No OFD packet to send [14:56:38]OFD Sender: No OFD packet to send [14:56:43]OFD Sender: No OFD packet to send [14:56:48]OFD Sender: No OFD packet to send [14:56:53]OFD Sender: No OFD packet to send [14:56:58]OFD Sender: No OFD packet to send [14:57:03]OFD Sender: No OFD packet to send [14:57:08]OFD Sender: No OFD packet to send [14:57:13]OFD Sender: No OFD packet to send [14:57:18]OFD Sender: No OFD packet to send [14:57:23]OFD Sender: No OFD packet to send [14:57:28]OFD Sender: No OFD packet to send [14:57:33]OFD Sender: No OFD packet to send [14:57:38]OFD Sender: No OFD packet to send [14:57:43]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:10]accept exits with 7 [14:58:10]New connection [14:58:10]New thread 3067395428 created [14:58:10]Thread 3067538788 joined [14:58:10]Waiting for new connection... [14:58:10] Sock 7.Parse request [14:58:10]Sock 7.Check first char [14:58:10]Sock 7.First char is OK [14:58:10]request: POST /json_proto HTTP/1.0 [14:58:10]Method: POST [14:58:10]URL: /json_proto [14:58:10]Method is POST - this is cgi request [14:58:10]url: /json_proto [14:58:10]query_string will be loaded in cgi processing [14:58:10]execute_cgi json_proto POST (null) [14:58:10]execute_cgi path=json_proto method=POST [14:58:10]POST find Content-Length [14:58:10]Host: 172.17.41.195:8080 [14:58:10]Content-Length: 679 [14:58:10]Content-Type: application/json [14:58:10] [14:58:10]POST finish read [14:58:10]Found Content-Length = 679 [14:58:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:10]execute_script... [14:58: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)507816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:10]POST & json_proto [14:58:10]process_json_proto [14:58:10]json parsed OK: [14:58:10]protocol is kg_v1.0 [14:58:10]action value=close_receipt [14:58:10]process_action close_receipt [14:58:10]cmd_close_receipt [14:58:10]MH_GetDate [14:58:10]Write to MH i2c: F0 00 00 0D 23 1F [14:58:10]Write i2c OK [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: F0 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: F0 09 00 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: F0 09 00 0D 23 00 86 70 47 66 FC 21 6F 64 BB [14:58:10]GetLastDocTimeStamp 1715956923 [14:58:10]current date 1715957894 [14:58:10]FM_GetShiftState [14:58:10]SAM_PROTO_GetShiftState [14:58:10]wFMCommunicate request_size=4 [14:58:10]MH_SAM_APDU [14:58:10]CAPDU: 80 13 01 00 [14:58:10]Write to MH i2c: E2 08 00 0E 23 80 13 01 00 00 00 00 00 AE [14:58:10]Write i2c OK [14:58:10]MH_I2C_Read... [14:58:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:10]Read from MH i2c: E2 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 0E 00 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 0E 00 0E 23 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 34 [14:58:10]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:58:10]wFMCommunicate OK [14:58:10]SAM_PROTO_GetShiftState done [14:58:10]FM_GetShiftState done [14:58:10]opened in 1715905068 [14:58:10]opened+sec_in_day 1715991468 [14:58:10]quantity*price = 100023 [14:58:10]sum+1 = 100024 [14:58: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 СНО: Общий режим Чек 79 17.05.2024 14:58 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67670 ФПД: 271367856484076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T145814&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67670&fm=271367856484076&tin=02508201610067®Number=0000000000091845&sum=100000 [14:58:12]StoreToDocumentArchive [14:58:12]shift 358 fd 67670 [14:58:12]save to /storage/0358/doc_00067670 [14:58:12]save last doc name /storage/0358/doc_00067670 to /storage/kkm_last_doc_name [14:58:12]save OK [14:58:12]Clear old archive folders... [14:58:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:58:12]tlvbuf is 016304C0 [14:58:12]SAM_PROTO_ClearQueue [14:58:12]wFMCommunicate request_size=4 [14:58:12]MH_SAM_APDU [14:58:12]CAPDU: 80 09 00 00 [14:58:12]Write to MH i2c: E2 08 00 1B 23 80 09 00 00 00 00 00 00 B0 [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:12]Read from MH i2c: E2 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 03 00 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 03 00 1B 23 00 90 00 B2 [14:58:12]RAPDU: 90 00 [14:58:12]wFMCommunicate OK [14:58:12]SAM_PROTO_ClearQueue done [14:58:12]KKMCreateOFDPacket [14:58:12]OFDProtocolAddRootSTLVToBuf [14:58:12]FM_MakeSignedData [14:58:12]FM_MakeSignedData [14:58:12]SAM_PROTO_SignData [14:58:12]wFMCommunicate request_size=4 [14:58:12]MH_SAM_APDU [14:58:12]CAPDU: 80 0D 01 02 [14:58:12]Write to MH i2c: E2 08 00 1C 23 80 0D 01 02 00 00 00 00 B8 [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:12]Read from MH i2c: E2 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 03 00 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 03 00 1C 23 00 90 00 B3 [14:58:12]RAPDU: 90 00 [14:58:12]wFMCommunicate OK [14:58:12]wFMCommunicate request_size=255 [14:58:12]MH_SAM_APDU [14:58:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 4F 00 00 00 F4 03 04 00 86 70 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 56 08 01 00 35 04 06 00 F6 CE C0 B0 [14:58:12]Write to MH i2c: E2 02 01 1D 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 4F 00 00 00 F4 03 04 00 86 70 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 56 08 01 00 35 04 06 00 F6 CE C0 B0 00 00 7E [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:12]Read from MH i2c: E2 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 03 00 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 03 00 1D 23 00 90 00 B4 [14:58:12]RAPDU: 90 00 [14:58:12]wFMCommunicate OK [14:58:12]wFMCommunicate request_size=7 [14:58:12]MH_SAM_APDU [14:58:12]CAPDU: 80 0D 02 02 02 6E EC [14:58:12]Write to MH i2c: E2 0A 00 1E 23 80 0D 02 02 02 00 6E EC 00 00 19 [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:12]Read from MH i2c: E2 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 03 00 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 03 00 1E 23 00 90 00 B5 [14:58:12]RAPDU: 90 00 [14:58:12]wFMCommunicate OK [14:58:12]wFMCommunicate request_size=4 [14:58:12]MH_SAM_APDU [14:58:12]CAPDU: 80 0D 03 02 [14:58:12]Write to MH i2c: E2 08 00 1F 23 80 0D 03 02 00 00 00 00 BD [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:12]Read from MH i2c: E2 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 0B 00 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 0B 00 1F 23 00 0D E7 4D D0 4B BE 6A 70 90 00 B2 [14:58:12]RAPDU: 0D E7 4D D0 4B BE 6A 70 90 00 [14:58:12]wFMCommunicate OK [14:58:12]SAM_PROTO_SignData done [14:58:12]FM_MakeSignedData done [14:58:12]CreateOFDProtocolMessage [14:58:12]wFMCommunicate request_size=4 [14:58:12]MH_SAM_APDU [14:58:12]CAPDU: 80 11 00 00 [14:58:12]Write to MH i2c: E2 08 00 20 23 80 11 00 00 00 00 00 00 BD [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:12]Read from MH i2c: E2 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 17 00 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 17 00 20 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 13 [14:58: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:58:12]wFMCommunicate OK [14:58:12]CreateOFDProtocolMessage done [14:58:12]OFDSenderStorePacket 67670 [14:58:12]StoreOFDPacket docnum=67670 [14:58: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 D7 4F 04 01 BE 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 4F 00 00 00 F4 03 04 00 86 70 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 56 08 01 00 35 04 06 00 F6 CE C0 B0 6E EC 0D E7 4D D0 4B BE 6A 70 [14:58:12]CheckFolder [14:58:12]dirname=/storage/ofd_packets [14:58:12]CheckFolder done [14:58:12]ProducePacketName [14:58:12]name=ofd_packets/00067670 [14:58:12]NVStorageSaveData ofd_packets/00067670 [14:58:12]File name is /storage/ofd_packets/00067670 [14:58:12]Write 298 bytes [14:58:12]NVStorageSaveData done [14:58:12]OFDSenderStorePacket done [14:58:12]KKMCreateOFDPacket done [14:58:12]NVStorageSaveData kkm_last_timestamp [14:58:12]File name is /storage/kkm_last_timestamp [14:58:12]Write 4 bytes [14:58:12]NVStorageSaveData done [14:58:12]ExternCall_PrintAddStr [14:58:12]wPrintStart [14:58:12]Write to MH i2c: 01 00 00 21 23 44 [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: 01 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: 01 07 00 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: 01 07 00 21 23 00 00 00 00 00 FF 0F 59 [14:58:12]RasterBufferAndPrint [14:58:12]line Счет N : (1)507816 [14:58:12]line ИНН: 02508201610067 [14:58:12]line Контрольно-Кассовый Чек [14:58:12]line ПРОДАЖА [14:58:12]line ТРК (МРК, ГНК) : 11 [14:58:12]line Товар: 2710194210 [14:58:12]line ДТ-К-5 [14:58:12]line 13.390 * 74.70 [14:58:12]line = 1000.23 [14:58:12]line НДС 12% НСП 1% [14:58:12]line > о реализуемом товаре [14:58:12]line ОКРУГЛЕНИЕ: -0.23 [14:58:12]line ИТОГО: 1000.00 [14:58:12]line Внесено: 1000.00 [14:58:12]line СДАЧА: 0.00 [14:58:12]line НСП 1% : 8.85 [14:58:12]line НДС 12% : 106.22 [14:58:12]line Наличными: 1000.00 [14:58:12]line Безнал.: 0.00 [14:58:12]line Место: АЗС № 91 "Партнер Нефть" [14:58:12]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:58:12]line СНО: Общий режим [14:58:12]line Чек 79 17.05.2024 14:58 [14:58:12]line Смена: 358 ФФД: 1.0 [14:58:12]line ЗНМ: 0300000119 [14:58:12]line РНМ: 0000000000091845 [14:58:12]line Версия ККМ: 001 [14:58:12]line ФМ: 0000000000871829 [14:58:12]line ФД: 67670 [14:58:12]line ФПД: 271367856484076 [14:58:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T145814&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67670&fm=271367856484076&tin=02508201610067®Number=0000000000091845&sum=100000 [14:58:12]OFD Sender: Processing packet 67670 [packets to send 35, broken 34] [14:58:12]ProducePacketName [14:58:12]name=ofd_packets/00067670 [14:58:12]OFD Sender: To server: pG, [14:58:12]CommunicateWithHost lk.salyk.kg:30040 [14:58:12]ConnectInit lk.salyk.kg [14:58:12]written 0, free lines is 4095 [14:58:13]Connected sock=10 [14:58:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 D7 4F 04 01 BE 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 4F 00 00 00 F4 03 04 00 86 70 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 56 08 01 00 35 04 06 00 F6 CE C0 B0 6E EC 0D E7 4D D0 4B BE 6A 70 [14:58: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 18 A1 47 00 87 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 56 08 01 00 F4 03 04 00 5E 18 47 66 B6 04 01 00 00 E1 80 82 22 9C 09 3B A1 [14:58:13]CommunicateWithHost err = 0 [14:58:13]CheckOFDResponse [14:58:13]1017 (14) - 77093643461234 [14:58:13]1041 (16) - 0000000000871829 [14:58:13]1040 (4) - 67670 [14:58:13]1012 (4) - 17.05.2024 08:42 [14:58:13]1206 (1) - 0 [14:58:13]OFD Sender: Remove packet 67670 [14:58:13]ProducePacketName [14:58:13]name=ofd_packets/00067670 [14:58:13]NVStorageDeleteData [14:58:13]Write to MH i2c: 01 00 00 4B 23 6E [14:58:13]Write i2c OK [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: 01 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: 01 07 00 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: 01 07 00 4B 23 00 00 00 00 00 CB 0C 4C [14:58:13]RasterBufferAndPrint [14:58:13]line [14:58:13]line [14:58:13]line [14:58:13]line [14:58:13]line [14:58:13]written 0, free lines is 3281 [14:58:13]MH_Cut [14:58:13]Write to MH i2c: D1 01 00 52 23 01 47 [14:58:13]Write i2c OK [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: D1 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: D1 01 00 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: D1 01 00 52 23 00 46 [14:58:13]Write to MH i2c: 01 00 00 53 23 76 [14:58:13]Write i2c OK [14:58:13]MH_I2C_Read... [14:58:13]OFD Sender: No OFD packet to send [14:58:14]*** Cut start [14:58:14]*** Purtial cut [14:58:14]*** CUTSNS_PIN = 0 [14:58:14]*** Stage 1: CUTSNS_PIN = 1 [14:58:16]Read from MH i2c: 01 [14:58:16]MH_I2C_Read... [14:58:16]*** Stop cut motor [14:58:16]*** Cut end [14:58:16]Read from MH i2c: 01 07 00 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: 01 07 00 53 23 00 00 00 00 00 FF 0F 8B [14:58:16]process_action close_receipt done [14:58:16]requested_data is exist [14:58:16]produce_requested_data [14:58:16]requested_item fm.sn is exist - process it [14:58:16]wFMCommunicate request_size=4 [14:58:16]MH_SAM_APDU [14:58:16]CAPDU: 80 11 00 00 [14:58:16]Write to MH i2c: E2 08 00 54 23 80 11 00 00 00 00 00 00 F1 [14:58:16]Write i2c OK [14:58:16]MH_I2C_Read... [14:58:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:16]Read from MH i2c: E2 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 17 00 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 17 00 54 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 47 [14:58: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:58:16]wFMCommunicate OK [14:58:16]requested_item fd.num is exist - process it [14:58:16]SAM_PROTO_GetFieldsCounters [14:58:16]wFMCommunicate request_size=4 [14:58:16]MH_SAM_APDU [14:58:16]CAPDU: 80 13 00 00 [14:58:16]Write to MH i2c: E2 08 00 55 23 80 13 00 00 00 00 00 00 F4 [14:58:16]Write i2c OK [14:58:16]MH_I2C_Read... [14:58:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:16]Read from MH i2c: E2 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 62 00 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 62 00 55 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 56 08 01 00 0E 04 04 00 66 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 CD [14:58: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 56 08 01 00 0E 04 04 00 66 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 [14:58:16]wFMCommunicate OK [14:58:16]SAM_PROTO_GetFieldsCounters done [14:58:16]requested_item shift.num is exist - process it [14:58:16]requested_item shift.opened is exist - process it [14:58:16]req_shift_opened [14:58:16]FM_GetShiftState [14:58:16]SAM_PROTO_GetShiftState [14:58:16]wFMCommunicate request_size=4 [14:58:16]MH_SAM_APDU [14:58:16]CAPDU: 80 13 01 00 [14:58:16]Write to MH i2c: E2 08 00 56 23 80 13 01 00 00 00 00 00 F6 [14:58:16]Write i2c OK [14:58:16]MH_I2C_Read... [14:58:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:16]Read from MH i2c: E2 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 0E 00 [14:58:16]MH_I2C_Read... [14:58:16]Read from MH i2c: E2 0E 00 56 23 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 7C [14:58:16]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [14:58:16]wFMCommunicate OK [14:58:16]SAM_PROTO_GetShiftState done [14:58:16]FM_GetShiftState done [14:58:16]req_shift_opened done [14:58:16]requested_item shift.open_date is exist - process it [14:58:16]req_shift_open_date [14:58:16]req_shift_open_date done [14:58:16]produce_requested_data done [14:58:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67670,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [14:58:16]process_action_free close_receipt [14:58:16]json_value_free [14:58:16]json_value_free done [14:58:16]process_json_proto returns [14:58:16]Send response to host [14:58:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67670,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [14:58:16]free response buf [14:58:16]execute_script done [14:58:16]execute_script returns [14:58:16]free content buf [14:58:16]Sock 7.Close socket [14:58:16]Sock 7.Thread stoped [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:38]OFD Sender: No OFD packet to send [14:58:43]OFD Sender: No OFD packet to send [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:38]OFD Sender: No OFD packet to send [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:28]OFD Sender: No OFD packet to send [15:02:33]OFD Sender: No OFD packet to send [15:02:38]OFD Sender: No OFD packet to send [15:02:43]OFD Sender: No OFD packet to send [15:02:48]OFD Sender: No OFD packet to send [15:02:53]OFD Sender: No OFD packet to send [15:02:58]OFD Sender: No OFD packet to send [15:03:03]OFD Sender: No OFD packet to send [15:03:08]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:54]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:54]OFD Sender: No OFD packet to send [15:10:59]OFD Sender: No OFD packet to send [15:11:04]OFD Sender: No OFD packet to send [15:11:09]OFD Sender: No OFD packet to send [15:11:14]OFD Sender: No OFD packet to send [15:11:19]OFD Sender: No OFD packet to send [15:11:24]OFD Sender: No OFD packet to send [15:11:29]OFD Sender: No OFD packet to send [15:11:34]OFD Sender: No OFD packet to send [15:11:39]OFD Sender: No OFD packet to send [15:11:44]OFD Sender: No OFD packet to send [15:11:49]OFD Sender: No OFD packet to send [15:11:54]OFD Sender: No OFD packet to send [15:11:59]OFD Sender: No OFD packet to send [15:12:04]OFD Sender: No OFD packet to send [15:12:09]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:25]accept exits with 9 [15:13:25]New connection [15:13:25]New thread 3067538788 created [15:13:25]Thread 3067395428 joined [15:13:25]Waiting for new connection... [15:13:25] Sock 9.Parse request [15:13:25]Sock 9.Check first char [15:13:25]Sock 9.First char is OK [15:13:25]request: POST /json_proto HTTP/1.0 [15:13:25]Method: POST [15:13:25]URL: /json_proto [15:13:25]Method is POST - this is cgi request [15:13:25]url: /json_proto [15:13:25]query_string will be loaded in cgi processing [15:13:25]execute_cgi json_proto POST (null) [15:13:25]execute_cgi path=json_proto method=POST [15:13:25]POST find Content-Length [15:13:25]Host: 172.17.41.195:8080 [15:13:25]Content-Length: 1182 [15:13:25]Content-Type: application/json [15:13:25] [15:13:25]POST finish read [15:13:25]Found Content-Length = 1182 [15:13: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507817\u000A17.05.2024 14: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 29.950 x 66.80\u000A\u0418\u0422\u041E\u0413: 2000.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" ] } } [15:13:25]execute_script... [15:13: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507817\u000A17.05.2024 14: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 29.950 x 66.80\u000A\u0418\u0422\u041E\u0413: 2000.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" ] } } [15:13:25]POST & json_proto [15:13:25]process_json_proto [15:13:25]json parsed OK: [15:13:25]protocol is kg_v1.0 [15:13:25]action value=print_text [15:13:25]process_action print_text [15:13:25]cmd_print_text [15:13:25]ExternCall_PrintAddStr [15:13:25]wPrintStart [15:13:25]Write to MH i2c: 01 00 00 57 23 7A [15:13:25]Write i2c OK [15:13:25]MH_I2C_Read... [15:13:25]Read from MH i2c: 01 [15:13:25]MH_I2C_Read... [15:13:25]Read from MH i2c: 01 07 00 [15:13:25]MH_I2C_Read... [15:13:25]Read from MH i2c: 01 07 00 57 23 00 00 00 00 00 FF 0F 8F [15:13:25]RasterBufferAndPrint [15:13:25]line *****ТОВАРНЫЙ ЧЕК***** [15:13:25]line АЗС-91 [15:13:25]line Партнер нефть [15:13:25]line 02508201610067 [15:13:25]line Кассир : Адишов И. [15:13:25]line Счет N : (1)507817 [15:13:25]line 17.05.2024 14:55 [15:13:25]line ПРОДАЖА [15:13:25]line ТРК (МРК, ГНК): 23 [15:13:25]line Вид ГСМ : 2710124130 [15:13:25]line Аи-92-К-5 [15:13:25]line 29.950 x 66.80 [15:13:25]line ИТОГ: 2000.66 [15:13:25]line Тип оплаты: Талоны: Топливная Карта [15:13:25]line 02750 [15:13:25]line ______________________ [15:13:25]line (подпись) [15:13:25]written 0, free lines is 4095 [15:13:25]Write to MH i2c: 01 00 00 6B 23 8E [15:13:25]Write i2c OK [15:13:25]MH_I2C_Read... [15:13:25]Read from MH i2c: 01 [15:13:25]MH_I2C_Read... [15:13:25]Read from MH i2c: 01 07 00 [15:13:25]MH_I2C_Read... [15:13:25]Read from MH i2c: 01 07 00 6B 23 00 00 00 00 00 0F 0E B2 [15:13:25]RasterBufferAndPrint [15:13:25]line [15:13:25]line [15:13:25]line [15:13:25]line [15:13:25]line [15:13:25]written 0, free lines is 3601 [15:13:25]MH_Cut [15:13:25]Write to MH i2c: D1 01 00 72 23 01 67 [15:13:25]Write i2c OK [15:13:25]MH_I2C_Read... [15:13:25]Read from MH i2c: D1 [15:13:25]MH_I2C_Read... [15:13:25]Read from MH i2c: D1 01 00 [15:13:25]MH_I2C_Read... [15:13:25]Read from MH i2c: D1 01 00 72 23 00 66 [15:13:25]Write to MH i2c: 01 00 00 73 23 96 [15:13:25]Write i2c OK [15:13:25]MH_I2C_Read... [15:13:26]*** Cut start [15:13:26]*** Purtial cut [15:13:26]*** Stage 1: CUTSNS_PIN = 1 [15:13:26]Read from MH i2c: 01 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: 01 07 00 [15:13:26]MH_I2C_Read... [15:13:26]*** Stop cut motor [15:13:26]*** Cut end [15:13:26]Read from MH i2c: 01 07 00 73 23 00 00 00 00 00 FF 0F AB [15:13:26]process_action print_text done [15:13:26]requested_data is exist [15:13:26]produce_requested_data [15:13:26]requested_item fm.sn is exist - process it [15:13:26]wFMCommunicate request_size=4 [15:13:26]MH_SAM_APDU [15:13:26]CAPDU: 80 11 00 00 [15:13:26]Write to MH i2c: E2 08 00 74 23 80 11 00 00 00 00 00 00 11 [15:13:26]Write i2c OK [15:13:26]MH_I2C_Read... [15:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:26]Read from MH i2c: E2 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 17 00 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 17 00 74 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 67 [15:13: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:13:26]wFMCommunicate OK [15:13:26]requested_item fd.num is exist - process it [15:13:26]SAM_PROTO_GetFieldsCounters [15:13:26]wFMCommunicate request_size=4 [15:13:26]MH_SAM_APDU [15:13:26]CAPDU: 80 13 00 00 [15:13:26]Write to MH i2c: E2 08 00 75 23 80 13 00 00 00 00 00 00 14 [15:13:26]Write i2c OK [15:13:26]MH_I2C_Read... [15:13:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:26]Read from MH i2c: E2 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 62 00 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 62 00 75 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 56 08 01 00 0E 04 04 00 66 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 ED [15:13: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 56 08 01 00 0E 04 04 00 66 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 [15:13:26]wFMCommunicate OK [15:13:26]SAM_PROTO_GetFieldsCounters done [15:13:26]requested_item shift.num is exist - process it [15:13:26]requested_item shift.opened is exist - process it [15:13:26]req_shift_opened [15:13:26]FM_GetShiftState [15:13:26]SAM_PROTO_GetShiftState [15:13:26]wFMCommunicate request_size=4 [15:13:26]MH_SAM_APDU [15:13:26]CAPDU: 80 13 01 00 [15:13:26]Write to MH i2c: E2 08 00 76 23 80 13 01 00 00 00 00 00 16 [15:13:26]Write i2c OK [15:13:26]MH_I2C_Read... [15:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:26]Read from MH i2c: E2 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 0E 00 [15:13:26]MH_I2C_Read... [15:13:26]Read from MH i2c: E2 0E 00 76 23 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 9C [15:13:26]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:13:26]wFMCommunicate OK [15:13:26]SAM_PROTO_GetShiftState done [15:13:26]FM_GetShiftState done [15:13:26]req_shift_opened done [15:13:26]requested_item shift.open_date is exist - process it [15:13:26]req_shift_open_date [15:13:26]req_shift_open_date done [15:13:26]produce_requested_data done [15:13:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67670,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [15:13:26]process_action_free print_text [15:13:26]json_value_free [15:13:26]json_value_free done [15:13:26]process_json_proto returns [15:13:26]Send response to host [15:13:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67670,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [15:13:26]free response buf [15:13:26]execute_script done [15:13:26]execute_script returns [15:13:26]free content buf [15:13:26]Sock 9.Close socket [15:13:26]Sock 9.Thread stoped [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:02]accept exits with 7 [15:14:02]New connection [15:14:02]New thread 3067395428 created [15:14:02]Thread 3067538788 joined [15:14:02]Waiting for new connection... [15:14:02] Sock 7.Parse request [15:14:02]Sock 7.Check first char [15:14:02]Sock 7.First char is OK [15:14:02]request: POST /json_proto HTTP/1.0 [15:14:02]Method: POST [15:14:02]URL: /json_proto [15:14:02]Method is POST - this is cgi request [15:14:02]url: /json_proto [15:14:02]query_string will be loaded in cgi processing [15:14:02]execute_cgi json_proto POST (null) [15:14:02]execute_cgi path=json_proto method=POST [15:14:02]POST find Content-Length [15:14:02]Host: 172.17.41.195:8080 [15:14:02]Content-Length: 816 [15:14:02]Content-Type: application/json [15:14:02] [15:14:02]POST finish read [15:14:02]Found Content-Length = 816 [15:14:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507818", "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" ] } } [15:14:02]execute_script... [15:14:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507818", "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" ] } } [15:14:02]POST & json_proto [15:14:02]process_json_proto [15:14:02]json parsed OK: [15:14:02]protocol is kg_v1.0 [15:14:02]action value=close_receipt [15:14:02]process_action close_receipt [15:14:02]cmd_close_receipt [15:14:02]MH_GetDate [15:14:02]Write to MH i2c: F0 00 00 77 23 89 [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: F0 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: F0 09 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: F0 09 00 77 23 00 3E 74 47 66 FC 21 6F 64 E1 [15:14:02]GetLastDocTimeStamp 1715957894 [15:14:02]current date 1715958846 [15:14:02]FM_GetShiftState [15:14:02]SAM_PROTO_GetShiftState [15:14:02]wFMCommunicate request_size=4 [15:14:02]MH_SAM_APDU [15:14:02]CAPDU: 80 13 01 00 [15:14:02]Write to MH i2c: E2 08 00 78 23 80 13 01 00 00 00 00 00 18 [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:02]Read from MH i2c: E2 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 0E 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 0E 00 78 23 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 9E [15:14:02]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:14:02]wFMCommunicate OK [15:14:02]SAM_PROTO_GetShiftState done [15:14:02]FM_GetShiftState done [15:14:02]opened in 1715905068 [15:14:02]opened+sec_in_day 1715991468 [15:14:02]quantity*price = 50033 [15:14:02]sum+1 = 50034 [15:14:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 80 17.05.2024 15:14 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67671 ФПД: 75889491411627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T151406&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67671&fm=75889491411627&tin=02508201610067®Number=0000000000091845&sum=50033 [15:14:03]StoreToDocumentArchive [15:14:03]shift 358 fd 67671 [15:14:03]save to /storage/0358/doc_00067671 [15:14:03]save last doc name /storage/0358/doc_00067671 to /storage/kkm_last_doc_name [15:14:03]save OK [15:14:03]Clear old archive folders... [15:14:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:14:03]tlvbuf is B6F69510 [15:14:03]SAM_PROTO_ClearQueue [15:14:03]wFMCommunicate request_size=4 [15:14:03]MH_SAM_APDU [15:14:03]CAPDU: 80 09 00 00 [15:14:03]Write to MH i2c: E2 08 00 85 23 80 09 00 00 00 00 00 00 1A [15:14:03]Write i2c OK [15:14:03]MH_I2C_Read... [15:14:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:03]Read from MH i2c: E2 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 03 00 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 03 00 85 23 00 90 00 1C [15:14:03]RAPDU: 90 00 [15:14:03]wFMCommunicate OK [15:14:03]SAM_PROTO_ClearQueue done [15:14:03]KKMCreateOFDPacket [15:14:03]OFDProtocolAddRootSTLVToBuf [15:14:03]FM_MakeSignedData [15:14:03]FM_MakeSignedData [15:14:03]SAM_PROTO_SignData [15:14:03]wFMCommunicate request_size=4 [15:14:03]MH_SAM_APDU [15:14:03]CAPDU: 80 0D 01 02 [15:14:03]Write to MH i2c: E2 08 00 86 23 80 0D 01 02 00 00 00 00 22 [15:14:03]Write i2c OK [15:14:03]MH_I2C_Read... [15:14:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:03]Read from MH i2c: E2 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 03 00 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 03 00 86 23 00 90 00 1D [15:14:03]RAPDU: 90 00 [15:14:03]wFMCommunicate OK [15:14:03]wFMCommunicate request_size=255 [15:14:03]MH_SAM_APDU [15:14:03]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 50 00 00 00 F4 03 04 00 3E 74 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 57 08 01 00 35 04 06 00 45 [15:14:03]Write to MH i2c: E2 02 01 87 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 3E 74 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 57 08 01 00 35 04 06 00 45 00 00 AA [15:14:03]Write i2c OK [15:14:03]MH_I2C_Read... [15:14:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:03]Read from MH i2c: E2 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 03 00 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 03 00 87 23 00 90 00 1E [15:14:03]RAPDU: 90 00 [15:14:03]wFMCommunicate OK [15:14:03]wFMCommunicate request_size=10 [15:14:03]MH_SAM_APDU [15:14:03]CAPDU: 80 0D 02 02 05 05 66 2D 82 AB [15:14:03]Write to MH i2c: E2 0D 00 88 23 80 0D 02 02 05 00 05 66 2D 82 AB 00 00 F4 [15:14:03]Write i2c OK [15:14:03]MH_I2C_Read... [15:14:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:03]Read from MH i2c: E2 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 03 00 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 03 00 88 23 00 90 00 1F [15:14:03]RAPDU: 90 00 [15:14:03]wFMCommunicate OK [15:14:03]wFMCommunicate request_size=4 [15:14:03]MH_SAM_APDU [15:14:03]CAPDU: 80 0D 03 02 [15:14:03]Write to MH i2c: E2 08 00 89 23 80 0D 03 02 00 00 00 00 27 [15:14:03]Write i2c OK [15:14:03]MH_I2C_Read... [15:14:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:03]Read from MH i2c: E2 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 0B 00 [15:14:03]MH_I2C_Read... [15:14:03]Read from MH i2c: E2 0B 00 89 23 00 43 1C C8 9A F7 A7 70 A8 90 00 9F [15:14:03]RAPDU: 43 1C C8 9A F7 A7 70 A8 90 00 [15:14:03]wFMCommunicate OK [15:14:03]SAM_PROTO_SignData done [15:14:03]FM_MakeSignedData done [15:14:03]CreateOFDProtocolMessage [15:14:03]wFMCommunicate request_size=4 [15:14:03]MH_SAM_APDU [15:14:03]CAPDU: 80 11 00 00 [15:14:03]Write to MH i2c: E2 08 00 8A 23 80 11 00 00 00 00 00 00 27 [15:14:03]Write i2c OK [15:14:03]MH_I2C_Read... [15:14:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:04]Read from MH i2c: E2 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 17 00 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: E2 17 00 8A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7D [15:14:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:14:04]wFMCommunicate OK [15:14:04]CreateOFDProtocolMessage done [15:14:04]OFDSenderStorePacket 67671 [15:14:04]StoreOFDPacket docnum=67671 [15:14:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 63 D0 07 01 A3 2C 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 50 00 00 00 F4 03 04 00 3E 74 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 57 08 01 00 35 04 06 00 45 05 66 2D 82 AB 43 1C C8 9A F7 A7 70 A8 [15:14:04]CheckFolder [15:14:04]dirname=/storage/ofd_packets [15:14:04]CheckFolder done [15:14:04]ProducePacketName [15:14:04]name=ofd_packets/00067671 [15:14:04]NVStorageSaveData ofd_packets/00067671 [15:14:04]File name is /storage/ofd_packets/00067671 [15:14:04]Write 301 bytes [15:14:04]NVStorageSaveData done [15:14:04]OFDSenderStorePacket done [15:14:04]KKMCreateOFDPacket done [15:14:04]NVStorageSaveData kkm_last_timestamp [15:14:04]File name is /storage/kkm_last_timestamp [15:14:04]Write 4 bytes [15:14:04]NVStorageSaveData done [15:14:04]ExternCall_PrintAddStr [15:14:04]wPrintStart [15:14:04]Write to MH i2c: 01 00 00 8B 23 AE [15:14:04]Write i2c OK [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: 01 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: 01 07 00 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: 01 07 00 8B 23 00 00 00 00 00 FF 0F C3 [15:14:04]RasterBufferAndPrint [15:14:04]line Счет N : (1)507818 [15:14:04]line ИНН: 02508201610067 [15:14:04]line Контрольно-Кассовый Чек [15:14:04]line ПРОДАЖА [15:14:04]line ТРК (МРК, ГНК) : 33 [15:14:04]line Товар: 2710124130 [15:14:04]line Аи-92-К-5 [15:14:04]line 7.490 * 66.80 [15:14:04]line = 500.33 [15:14:04]line НДС 12% НСП 1% [15:14:04]line > о реализуемом товаре [15:14:04]line ИТОГО: 500.33 [15:14:04]line НСП 1% : 4.43 [15:14:04]line НДС 12% : 53.13 [15:14:04]line Наличными: 0.00 [15:14:04]line Безнал.: 500.33 [15:14:04]line Место: АЗС № 91 "Партнер Нефть" [15:14:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:14:04]line СНО: Общий режим [15:14:04]line Чек 80 17.05.2024 15:14 [15:14:04]line Смена: 358 ФФД: 1.0 [15:14:04]line ЗНМ: 0300000119 [15:14:04]line РНМ: 0000000000091845 [15:14:04]line Версия ККМ: 001 [15:14:04]line Платежная система: Бакай Банк [15:14:04]line ФМ: 0000000000871829 [15:14:04]line ФД: 67671 [15:14:04]line ФПД: 75889491411627 [15:14:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T151406&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67671&fm=75889491411627&tin=02508201610067®Number=0000000000091845&sum=50033 [15:14:04]written 0, free lines is 4095 [15:14:04]OFD Sender: Processing packet 67671 [packets to send 35, broken 34] [15:14:04]ProducePacketName [15:14:04]name=ofd_packets/00067671 [15:14:04]OFD Sender: To server: pG, [15:14:04]CommunicateWithHost lk.salyk.kg:30040 [15:14:04]ConnectInit lk.salyk.kg [15:14:04]Connected sock=10 [15:14:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 63 D0 07 01 A3 2C 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 50 00 00 00 F4 03 04 00 3E 74 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 57 08 01 00 35 04 06 00 45 05 66 2D 82 AB 43 1C C8 9A F7 A7 70 A8 [15:14:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 25 FF 47 00 46 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 57 08 01 00 F4 03 04 00 15 1C 47 66 B6 04 01 00 00 42 27 A2 0D 58 1D 27 AE [15:14:04]CommunicateWithHost err = 0 [15:14:04]CheckOFDResponse [15:14:04]1017 (14) - 77093643461234 [15:14:04]1041 (16) - 0000000000871829 [15:14:04]1040 (4) - 67671 [15:14:04]1012 (4) - 17.05.2024 08:57 [15:14:04]1206 (1) - 0 [15:14:04]OFD Sender: Remove packet 67671 [15:14:04]ProducePacketName [15:14:04]name=ofd_packets/00067671 [15:14:04]NVStorageDeleteData [15:14:04]Write to MH i2c: 01 00 00 B4 23 D7 [15:14:04]Write i2c OK [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: 01 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: 01 07 00 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: 01 07 00 B4 23 00 00 00 00 00 DE 0C C8 [15:14:04]RasterBufferAndPrint [15:14:04]line [15:14:04]line [15:14:04]line [15:14:04]line [15:14:04]line [15:14:04]written 0, free lines is 3300 [15:14:04]MH_Cut [15:14:04]Write to MH i2c: D1 01 00 BB 23 01 B0 [15:14:04]Write i2c OK [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: D1 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: D1 01 00 [15:14:04]MH_I2C_Read... [15:14:04]Read from MH i2c: D1 01 00 BB 23 00 AF [15:14:04]Write to MH i2c: 01 00 00 BC 23 DF [15:14:04]Write i2c OK [15:14:04]MH_I2C_Read... [15:14:04]OFD Sender: No OFD packet to send [15:14:05]*** Cut start [15:14:05]*** Purtial cut [15:14:05]*** CUTSNS_PIN = 0 [15:14:05]*** Stage 1: CUTSNS_PIN = 1 [15:14:07]Read from MH i2c: 01 [15:14:07]MH_I2C_Read... [15:14:07]*** Stop cut motor [15:14:07]*** Cut end [15:14:07]Read from MH i2c: 01 07 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: 01 07 00 BC 23 00 00 00 00 00 FF 0F F4 [15:14:07]process_action close_receipt done [15:14:07]requested_data is exist [15:14:07]produce_requested_data [15:14:07]requested_item fm.sn is exist - process it [15:14:07]wFMCommunicate request_size=4 [15:14:07]MH_SAM_APDU [15:14:07]CAPDU: 80 11 00 00 [15:14:07]Write to MH i2c: E2 08 00 BD 23 80 11 00 00 00 00 00 00 5A [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:07]Read from MH i2c: E2 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 17 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 17 00 BD 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B0 [15:14:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:14:07]wFMCommunicate OK [15:14:07]requested_item fd.num is exist - process it [15:14:07]SAM_PROTO_GetFieldsCounters [15:14:07]wFMCommunicate request_size=4 [15:14:07]MH_SAM_APDU [15:14:07]CAPDU: 80 13 00 00 [15:14:07]Write to MH i2c: E2 08 00 BE 23 80 13 00 00 00 00 00 00 5D [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:07]Read from MH i2c: E2 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 62 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 62 00 BE 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 57 08 01 00 0E 04 04 00 66 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 3A [15:14: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 57 08 01 00 0E 04 04 00 66 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 [15:14:07]wFMCommunicate OK [15:14:07]SAM_PROTO_GetFieldsCounters done [15:14:07]requested_item shift.num is exist - process it [15:14:07]requested_item shift.opened is exist - process it [15:14:07]req_shift_opened [15:14:07]FM_GetShiftState [15:14:07]SAM_PROTO_GetShiftState [15:14:07]wFMCommunicate request_size=4 [15:14:07]MH_SAM_APDU [15:14:07]CAPDU: 80 13 01 00 [15:14:07]Write to MH i2c: E2 08 00 BF 23 80 13 01 00 00 00 00 00 5F [15:14:07]Write i2c OK [15:14:07]MH_I2C_Read... [15:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:07]Read from MH i2c: E2 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 0E 00 [15:14:07]MH_I2C_Read... [15:14:07]Read from MH i2c: E2 0E 00 BF 23 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 E5 [15:14:07]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:14:07]wFMCommunicate OK [15:14:07]SAM_PROTO_GetShiftState done [15:14:07]FM_GetShiftState done [15:14:07]req_shift_opened done [15:14:07]requested_item shift.open_date is exist - process it [15:14:07]req_shift_open_date [15:14:07]req_shift_open_date done [15:14:07]produce_requested_data done [15:14:07]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67671,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [15:14:07]process_action_free close_receipt [15:14:07]json_value_free [15:14:07]json_value_free done [15:14:07]process_json_proto returns [15:14:07]Send response to host [15:14:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67671,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [15:14:07]free response buf [15:14:07]execute_script done [15:14:07]execute_script returns [15:14:07]free content buf [15:14:07]Sock 7.Close socket [15:14:07]Sock 7.Thread stoped [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:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]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:32]accept exits with 9 [15:22:32]New connection [15:22:32]New thread 3067538788 created [15:22:32]Thread 3067395428 joined [15:22:32]Waiting for new connection... [15:22:32] Sock 9.Parse request [15:22:32]Sock 9.Check first char [15:22:32]Sock 9.First char is OK [15:22:32]request: POST /json_proto HTTP/1.0 [15:22:32]Method: POST [15:22:32]URL: /json_proto [15:22:32]Method is POST - this is cgi request [15:22:32]url: /json_proto [15:22:32]query_string will be loaded in cgi processing [15:22:32]execute_cgi json_proto POST (null) [15:22:32]execute_cgi path=json_proto method=POST [15:22:32]POST find Content-Length [15:22:32]Host: 172.17.41.195:8080 [15:22:32]Content-Length: 1177 [15:22:32]Content-Type: application/json [15:22:32] [15:22:32]POST finish read [15:22:32]Found Content-Length = 1177 [15:22: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507819\u000A17.05.2024 15:05\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 5.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 373.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:32]execute_script... [15:22: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507819\u000A17.05.2024 15:05\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 5.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 373.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:32]POST & json_proto [15:22:32]process_json_proto [15:22:32]json parsed OK: [15:22:32]protocol is kg_v1.0 [15:22:32]action value=print_text [15:22:32]process_action print_text [15:22:32]cmd_print_text [15:22:32]ExternCall_PrintAddStr [15:22:32]wPrintStart [15:22:32]Write to MH i2c: 01 00 00 C0 23 E3 [15:22:32]Write i2c OK [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: 01 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: 01 07 00 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: 01 07 00 C0 23 00 00 00 00 00 FF 0F F8 [15:22:32]RasterBufferAndPrint [15:22:32]line *****ТОВАРНЫЙ ЧЕК***** [15:22:32]line АЗС-91 [15:22:32]line Партнер нефть [15:22:32]line 02508201610067 [15:22:32]line Кассир : Адишов И. [15:22:32]line Счет N : (1)507819 [15:22:32]line 17.05.2024 15:05 [15:22:32]line ПРОДАЖА [15:22:32]line ТРК (МРК, ГНК): 21 [15:22:32]line Вид ГСМ : 2710194210 [15:22:32]line ДТ-К-5 [15:22:32]line 5.000 x 74.70 [15:22:32]line ИТОГ: 373.50 [15:22:32]line Тип оплаты: Талоны: Топливная Карта [15:22:32]line 02750 [15:22:32]line ______________________ [15:22:32]line (подпись) [15:22:32]written 0, free lines is 4095 [15:22:32]Write to MH i2c: 01 00 00 D4 23 F7 [15:22:32]Write i2c OK [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: 01 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: 01 07 00 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: 01 07 00 D4 23 00 00 00 00 00 0B 0E 17 [15:22:32]RasterBufferAndPrint [15:22:32]line [15:22:32]line [15:22:32]line [15:22:32]line [15:22:32]line [15:22:32]written 0, free lines is 3596 [15:22:32]MH_Cut [15:22:32]Write to MH i2c: D1 01 00 DB 23 01 D0 [15:22:32]Write i2c OK [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: D1 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: D1 01 00 [15:22:32]MH_I2C_Read... [15:22:32]Read from MH i2c: D1 01 00 DB 23 00 CF [15:22:32]Write to MH i2c: 01 00 00 DC 23 FF [15:22:32]Write i2c OK [15:22:32]MH_I2C_Read... [15:22:33]*** Cut start [15:22:33]*** Purtial cut [15:22:33]*** Stage 1: CUTSNS_PIN = 1 [15:22:33]Read from MH i2c: 01 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: 01 07 00 [15:22:33]MH_I2C_Read... [15:22:33]*** Stop cut motor [15:22:33]*** Cut end [15:22:33]Read from MH i2c: 01 07 00 DC 23 00 00 00 00 00 FF 0F 14 [15:22:33]process_action print_text done [15:22:33]requested_data is exist [15:22:33]produce_requested_data [15:22:33]requested_item fm.sn is exist - process it [15:22:33]wFMCommunicate request_size=4 [15:22:33]MH_SAM_APDU [15:22:33]CAPDU: 80 11 00 00 [15:22:33]Write to MH i2c: E2 08 00 DD 23 80 11 00 00 00 00 00 00 7A [15:22:33]Write i2c OK [15:22:33]MH_I2C_Read... [15:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:33]Read from MH i2c: E2 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 17 00 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 17 00 DD 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D0 [15: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 [15:22:33]wFMCommunicate OK [15:22:33]requested_item fd.num is exist - process it [15:22:33]SAM_PROTO_GetFieldsCounters [15:22:33]wFMCommunicate request_size=4 [15:22:33]MH_SAM_APDU [15:22:33]CAPDU: 80 13 00 00 [15:22:33]Write to MH i2c: E2 08 00 DE 23 80 13 00 00 00 00 00 00 7D [15:22:33]Write i2c OK [15:22:33]MH_I2C_Read... [15:22:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:33]Read from MH i2c: E2 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 62 00 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 62 00 DE 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 57 08 01 00 0E 04 04 00 66 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 5A [15:22: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 57 08 01 00 0E 04 04 00 66 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 [15:22:33]wFMCommunicate OK [15:22:33]SAM_PROTO_GetFieldsCounters done [15:22:33]requested_item shift.num is exist - process it [15:22:33]requested_item shift.opened is exist - process it [15:22:33]req_shift_opened [15:22:33]FM_GetShiftState [15:22:33]SAM_PROTO_GetShiftState [15:22:33]wFMCommunicate request_size=4 [15:22:33]MH_SAM_APDU [15:22:33]CAPDU: 80 13 01 00 [15:22:33]Write to MH i2c: E2 08 00 DF 23 80 13 01 00 00 00 00 00 7F [15:22:33]Write i2c OK [15:22:33]MH_I2C_Read... [15:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:33]Read from MH i2c: E2 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 0E 00 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 0E 00 DF 23 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 05 [15:22:33]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:22:33]wFMCommunicate OK [15:22:33]SAM_PROTO_GetShiftState done [15:22:33]FM_GetShiftState done [15:22:33]req_shift_opened done [15:22:33]requested_item shift.open_date is exist - process it [15:22:33]req_shift_open_date [15:22:33]req_shift_open_date done [15:22:33]produce_requested_data done [15:22:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67671,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [15:22:33]process_action_free print_text [15:22:33]json_value_free [15:22:33]json_value_free done [15:22:33]process_json_proto returns [15:22:33]Send response to host [15:22:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67671,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [15:22:33]free response buf [15:22:33]execute_script done [15:22:33]execute_script returns [15:22:33]free content buf [15:22:33]Sock 9.Close socket [15:22:33]Sock 9.Thread stoped [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:29]accept exits with 7 [15:26:29]New connection [15:26:29]New thread 3067395428 created [15:26:29]Thread 3067538788 joined [15:26:29]Waiting for new connection... [15:26:29] Sock 7.Parse request [15:26:29]Sock 7.Check first char [15:26:29]Sock 7.First char is OK [15:26:29]request: POST /json_proto HTTP/1.0 [15:26:29]Method: POST [15:26:29]URL: /json_proto [15:26:29]Method is POST - this is cgi request [15:26:29]url: /json_proto [15:26:29]query_string will be loaded in cgi processing [15:26:29]execute_cgi json_proto POST (null) [15:26:29]execute_cgi path=json_proto method=POST [15:26:29]POST find Content-Length [15:26:29]Host: 172.17.41.195:8080 [15:26:29]Content-Length: 800 [15:26:29]Content-Type: application/json [15:26:29] [15:26:29]POST finish read [15:26:29]Found Content-Length = 800 [15:26:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507821", "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" ] } } [15:26:29]execute_script... [15:26: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)507821", "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" ] } } [15:26:29]POST & json_proto [15:26:29]process_json_proto [15:26:29]json parsed OK: [15:26:29]protocol is kg_v1.0 [15:26:29]action value=close_receipt [15:26:29]process_action close_receipt [15:26:29]cmd_close_receipt [15:26:29]MH_GetDate [15:26:29]Write to MH i2c: F0 00 00 E0 23 F2 [15:26:29]Write i2c OK [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: F0 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: F0 09 00 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: F0 09 00 E0 23 00 28 77 47 66 FC 21 6F 64 37 [15:26:29]GetLastDocTimeStamp 1715958846 [15:26:29]current date 1715959592 [15:26:29]FM_GetShiftState [15:26:29]SAM_PROTO_GetShiftState [15:26:29]wFMCommunicate request_size=4 [15:26:29]MH_SAM_APDU [15:26:29]CAPDU: 80 13 01 00 [15:26:29]Write to MH i2c: E2 08 00 E1 23 80 13 01 00 00 00 00 00 81 [15:26:29]Write i2c OK [15:26:29]MH_I2C_Read... [15:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:29]Read from MH i2c: E2 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: E2 0E 00 [15:26:29]MH_I2C_Read... [15:26:29]Read from MH i2c: E2 0E 00 E1 23 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 07 [15:26:29]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:26:29]wFMCommunicate OK [15:26:29]SAM_PROTO_GetShiftState done [15:26:29]FM_GetShiftState done [15:26:29]opened in 1715905068 [15:26:29]opened+sec_in_day 1715991468 [15:26:29]quantity*price = 100023 [15:26:29]sum+1 = 100024 [15:26:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 81 17.05.2024 15:26 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67672 ФПД: 78723791522006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T152632&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67672&fm=78723791522006&tin=02508201610067®Number=0000000000091845&sum=100023 [15:26:30]StoreToDocumentArchive [15:26:30]shift 358 fd 67672 [15:26:30]save to /storage/0358/doc_00067672 [15:26:30]save last doc name /storage/0358/doc_00067672 to /storage/kkm_last_doc_name [15:26:30]save OK [15:26:30]Clear old archive folders... [15:26:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:26:30]tlvbuf is 015CBBB0 [15:26:30]SAM_PROTO_ClearQueue [15:26:30]wFMCommunicate request_size=4 [15:26:30]MH_SAM_APDU [15:26:30]CAPDU: 80 09 00 00 [15:26:30]Write to MH i2c: E2 08 00 EE 23 80 09 00 00 00 00 00 00 83 [15:26:30]Write i2c OK [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 [15:26:30]MH_I2C_Read... [15:26:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:30]Read from MH i2c: E2 03 00 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 03 00 EE 23 00 90 00 85 [15:26:30]RAPDU: 90 00 [15:26:30]wFMCommunicate OK [15:26:30]SAM_PROTO_ClearQueue done [15:26:30]KKMCreateOFDPacket [15:26:30]OFDProtocolAddRootSTLVToBuf [15:26:30]FM_MakeSignedData [15:26:30]FM_MakeSignedData [15:26:30]SAM_PROTO_SignData [15:26:30]wFMCommunicate request_size=4 [15:26:30]MH_SAM_APDU [15:26:30]CAPDU: 80 0D 01 02 [15:26:30]Write to MH i2c: E2 08 00 EF 23 80 0D 01 02 00 00 00 00 8B [15:26:30]Write i2c OK [15:26:30]MH_I2C_Read... [15:26:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:30]Read from MH i2c: E2 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 03 00 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 03 00 EF 23 00 90 00 86 [15:26:30]RAPDU: 90 00 [15:26:30]wFMCommunicate OK [15:26:30]wFMCommunicate request_size=255 [15:26:30]MH_SAM_APDU [15:26:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 51 00 00 00 F4 03 04 00 28 77 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 58 08 01 00 35 04 06 00 47 99 4F A1 [15:26:30]Write to MH i2c: E2 02 01 F0 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 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 51 00 00 00 F4 03 04 00 28 77 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 58 08 01 00 35 04 06 00 47 99 4F A1 00 00 C8 [15:26:30]Write i2c OK [15:26:30]MH_I2C_Read... [15:26:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:30]Read from MH i2c: E2 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 03 00 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 03 00 F0 23 00 90 00 87 [15:26:30]RAPDU: 90 00 [15:26:30]wFMCommunicate OK [15:26:30]wFMCommunicate request_size=7 [15:26:30]MH_SAM_APDU [15:26:30]CAPDU: 80 0D 02 02 02 08 D6 [15:26:30]Write to MH i2c: E2 0A 00 F1 23 80 0D 02 02 02 00 08 D6 00 00 70 [15:26:30]Write i2c OK [15:26:30]MH_I2C_Read... [15:26:30]OFD Sender: No OFD packet to send [15:26:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:30]Read from MH i2c: E2 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 03 00 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 03 00 F1 23 00 90 00 88 [15:26:30]RAPDU: 90 00 [15:26:30]wFMCommunicate OK [15:26:30]wFMCommunicate request_size=4 [15:26:30]MH_SAM_APDU [15:26:30]CAPDU: 80 0D 03 02 [15:26:30]Write to MH i2c: E2 08 00 F2 23 80 0D 03 02 00 00 00 00 90 [15:26:30]Write i2c OK [15:26:30]MH_I2C_Read... [15:26:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:30]Read from MH i2c: E2 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 0B 00 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 0B 00 F2 23 00 9F FE 58 AE C3 63 0C E5 90 00 4B [15:26:30]RAPDU: 9F FE 58 AE C3 63 0C E5 90 00 [15:26:30]wFMCommunicate OK [15:26:30]SAM_PROTO_SignData done [15:26:30]FM_MakeSignedData done [15:26:30]CreateOFDProtocolMessage [15:26:30]wFMCommunicate request_size=4 [15:26:30]MH_SAM_APDU [15:26:30]CAPDU: 80 11 00 00 [15:26:30]Write to MH i2c: E2 08 00 F3 23 80 11 00 00 00 00 00 00 90 [15:26:30]Write i2c OK [15:26:30]MH_I2C_Read... [15:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:30]Read from MH i2c: E2 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 17 00 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: E2 17 00 F3 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E6 [15:26: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:26:30]wFMCommunicate OK [15:26:30]CreateOFDProtocolMessage done [15:26:30]OFDSenderStorePacket 67672 [15:26:30]StoreOFDPacket docnum=67672 [15:26: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 B4 E5 04 01 A2 EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 51 00 00 00 F4 03 04 00 28 77 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 58 08 01 00 35 04 06 00 47 99 4F A1 08 D6 9F FE 58 AE C3 63 0C E5 [15:26:30]CheckFolder [15:26:30]dirname=/storage/ofd_packets [15:26:30]CheckFolder done [15:26:30]ProducePacketName [15:26:30]name=ofd_packets/00067672 [15:26:30]NVStorageSaveData ofd_packets/00067672 [15:26:30]File name is /storage/ofd_packets/00067672 [15:26:30]Write 298 bytes [15:26:30]NVStorageSaveData done [15:26:30]OFDSenderStorePacket done [15:26:30]KKMCreateOFDPacket done [15:26:30]NVStorageSaveData kkm_last_timestamp [15:26:30]File name is /storage/kkm_last_timestamp [15:26:30]Write 4 bytes [15:26:30]NVStorageSaveData done [15:26:30]ExternCall_PrintAddStr [15:26:30]wPrintStart [15:26:30]Write to MH i2c: 01 00 00 F4 23 17 [15:26:30]Write i2c OK [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: 01 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: 01 07 00 [15:26:30]MH_I2C_Read... [15:26:30]Read from MH i2c: 01 07 00 F4 23 00 00 00 00 00 FF 0F 2C [15:26:30]RasterBufferAndPrint [15:26:30]line Счет N : (1)507821 [15:26:30]line ИНН: 02508201610067 [15:26:30]line Контрольно-Кассовый Чек [15:26:30]line ПРОДАЖА [15:26:30]line ТРК (МРК, ГНК) : 11 [15:26:30]line Товар: 2710194210 [15:26:30]line ДТ-К-5 [15:26:30]line 13.390 * 74.70 [15:26:30]line = 1000.23 [15:26:30]line НДС 12% НСП 1% [15:26:30]line > о реализуемом товаре [15:26:30]line ИТОГО: 1000.23 [15:26:30]line НСП 1% : 8.85 [15:26:30]line НДС 12% : 106.22 [15:26:30]line Наличными: 0.00 [15:26:30]line Безнал.: 1000.23 [15:26:30]line Место: АЗС № 91 "Партнер Нефть" [15:26:30]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:26:30]line СНО: Общий режим [15:26:30]line Чек 81 17.05.2024 15:26 [15:26:30]line Смена: 358 ФФД: 1.0 [15:26:30]line ЗНМ: 0300000119 [15:26:30]line РНМ: 0000000000091845 [15:26:30]line Версия ККМ: 001 [15:26:30]line Платежная система: O! деньги [15:26:30]line ФМ: 0000000000871829 [15:26:30]line ФД: 67672 [15:26:30]line ФПД: 78723791522006 [15:26:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T152632&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67672&fm=78723791522006&tin=02508201610067®Number=0000000000091845&sum=100023 [15:26:31]OFD Sender: Processing packet 67672 [packets to send 35, broken 34] [15:26:31]ProducePacketName [15:26:31]name=ofd_packets/00067672 [15:26:31]OFD Sender: To server: pG, [15:26:31]CommunicateWithHost lk.salyk.kg:30040 [15:26:31]ConnectInit lk.salyk.kg [15:26:31]written 0, free lines is 4095 [15:26:31]Connected sock=10 [15:26:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 B4 E5 04 01 A2 EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 51 00 00 00 F4 03 04 00 28 77 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 58 08 01 00 35 04 06 00 47 99 4F A1 08 D6 9F FE 58 AE C3 63 0C E5 [15:26: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 29 A5 47 00 D6 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 58 08 01 00 F4 03 04 00 00 1F 47 66 B6 04 01 00 00 E5 93 96 9E 25 05 08 CE [15:26:31]CommunicateWithHost err = 0 [15:26:31]CheckOFDResponse [15:26:31]1017 (14) - 77093643461234 [15:26:31]1041 (16) - 0000000000871829 [15:26:31]1040 (4) - 67672 [15:26:31]1012 (4) - 17.05.2024 09:10 [15:26:31]1206 (1) - 0 [15:26:31]OFD Sender: Remove packet 67672 [15:26:31]ProducePacketName [15:26:31]name=ofd_packets/00067672 [15:26:31]NVStorageDeleteData [15:26:31]Write to MH i2c: 01 00 00 1D 24 41 [15:26:31]Write i2c OK [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: 01 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: 01 07 00 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: 01 07 00 1D 24 00 00 00 00 00 D3 0C 27 [15:26:31]RasterBufferAndPrint [15:26:31]line [15:26:31]line [15:26:31]line [15:26:31]line [15:26:31]line [15:26:31]written 0, free lines is 3288 [15:26:31]MH_Cut [15:26:31]Write to MH i2c: D1 01 00 24 24 01 1A [15:26:31]Write i2c OK [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: D1 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: D1 01 00 [15:26:31]MH_I2C_Read... [15:26:31]Read from MH i2c: D1 01 00 24 24 00 19 [15:26:31]Write to MH i2c: 01 00 00 25 24 49 [15:26:31]Write i2c OK [15:26:31]MH_I2C_Read... [15:26:31]OFD Sender: No OFD packet to send [15:26:32]*** Cut start [15:26:32]*** Purtial cut [15:26:32]*** CUTSNS_PIN = 0 [15:26:32]*** Stage 1: CUTSNS_PIN = 1 [15:26:34]Read from MH i2c: 01 [15:26:34]MH_I2C_Read... [15:26:34]*** Stop cut motor [15:26:34]*** Cut end [15:26:34]Read from MH i2c: 01 07 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: 01 07 00 25 24 00 00 00 00 00 FF 0F 5E [15:26:34]process_action close_receipt done [15:26:34]requested_data is exist [15:26:34]produce_requested_data [15:26:34]requested_item fm.sn is exist - process it [15:26:34]wFMCommunicate request_size=4 [15:26:34]MH_SAM_APDU [15:26:34]CAPDU: 80 11 00 00 [15:26:34]Write to MH i2c: E2 08 00 26 24 80 11 00 00 00 00 00 00 C4 [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:34]Read from MH i2c: E2 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 17 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 17 00 26 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1A [15: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 [15:26:34]wFMCommunicate OK [15:26:34]requested_item fd.num is exist - process it [15:26:34]SAM_PROTO_GetFieldsCounters [15:26:34]wFMCommunicate request_size=4 [15:26:34]MH_SAM_APDU [15:26:34]CAPDU: 80 13 00 00 [15:26:34]Write to MH i2c: E2 08 00 27 24 80 13 00 00 00 00 00 00 C7 [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:34]Read from MH i2c: E2 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 62 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 62 00 27 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 58 08 01 00 0E 04 04 00 66 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 A8 [15:26: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 58 08 01 00 0E 04 04 00 66 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 [15:26:34]wFMCommunicate OK [15:26:34]SAM_PROTO_GetFieldsCounters done [15:26:34]requested_item shift.num is exist - process it [15:26:34]requested_item shift.opened is exist - process it [15:26:34]req_shift_opened [15:26:34]FM_GetShiftState [15:26:34]SAM_PROTO_GetShiftState [15:26:34]wFMCommunicate request_size=4 [15:26:34]MH_SAM_APDU [15:26:34]CAPDU: 80 13 01 00 [15:26:34]Write to MH i2c: E2 08 00 28 24 80 13 01 00 00 00 00 00 C9 [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:34]Read from MH i2c: E2 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 0E 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 0E 00 28 24 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 4F [15:26:34]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:26:34]wFMCommunicate OK [15:26:34]SAM_PROTO_GetShiftState done [15:26:34]FM_GetShiftState done [15:26:34]req_shift_opened done [15:26:34]requested_item shift.open_date is exist - process it [15:26:34]req_shift_open_date [15:26:34]req_shift_open_date done [15:26:34]produce_requested_data done [15:26:34]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67672,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [15:26:34]process_action_free close_receipt [15:26:34]json_value_free [15:26:34]json_value_free done [15:26:34]process_json_proto returns [15:26:34]Send response to host [15:26:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67672,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [15:26:34]free response buf [15:26:34]execute_script done [15:26:34]execute_script returns [15:26:34]free content buf [15:26:34]Sock 7.Close socket [15:26:34]Sock 7.Thread stoped [15:26:34]accept exits with 9 [15:26:34]New connection [15:26:34]New thread 3067538788 created [15:26:34]Thread 3067395428 joined [15:26:34]Waiting for new connection... [15:26:34] Sock 9.Parse request [15:26:34]Sock 9.Check first char [15:26:34]Sock 9.First char is OK [15:26:34]request: POST /json_proto HTTP/1.0 [15:26:34]Method: POST [15:26:34]URL: /json_proto [15:26:34]Method is POST - this is cgi request [15:26:34]url: /json_proto [15:26:34]query_string will be loaded in cgi processing [15:26:34]execute_cgi json_proto POST (null) [15:26:34]execute_cgi path=json_proto method=POST [15:26:34]POST find Content-Length [15:26:34]Host: 172.17.41.195:8080 [15:26:34]Content-Length: 1190 [15:26:34]Content-Type: application/json [15:26:34] [15:26:34]POST finish read [15:26:34]Found Content-Length = 1190 [15:26: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507822\u000A17.05.2024 15:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 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\u000A3921517\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:34]execute_script... [15:26: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507822\u000A17.05.2024 15:09\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 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\u000A3921517\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:34]POST & json_proto [15:26:34]process_json_proto [15:26:34]json parsed OK: [15:26:34]protocol is kg_v1.0 [15:26:34]action value=print_text [15:26:34]process_action print_text [15:26:34]cmd_print_text [15:26:34]ExternCall_PrintAddStr [15:26:34]wPrintStart [15:26:34]Write to MH i2c: 01 00 00 29 24 4D [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: 01 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: 01 07 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: 01 07 00 29 24 00 00 00 00 00 FF 0F 62 [15:26:34]RasterBufferAndPrint [15:26:34]line *****ТОВАРНЫЙ ЧЕК***** [15:26:34]line АЗС-91 [15:26:34]line Партнер нефть [15:26:34]line 02508201610067 [15:26:34]line Кассир : Адишов И. [15:26:34]line Счет N : (1)507822 [15:26:34]line 17.05.2024 15:09 [15:26:34]line ПРОДАЖА [15:26:34]line ТРК (МРК, ГНК): 43 [15:26:34]line Вид ГСМ : 2710124130 [15:26:34]line Аи-92-К-5 [15:26:34]line 20.000 x 66.80 [15:26:34]line ИТОГ: 1336.00 [15:26:34]line Тип оплаты: Талоны: Топливные Талоны [15:26:34]line 3921517 [15:26:34]line ______________________ [15:26:34]line (подпись) [15:26:34]written 0, free lines is 4095 [15:26:35]Write to MH i2c: 01 00 00 3D 24 61 [15:26:35]Write i2c OK [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: 01 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: 01 07 00 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: 01 07 00 3D 24 00 00 00 00 00 0F 0E 85 [15:26:35]RasterBufferAndPrint [15:26:35]line [15:26:35]line [15:26:35]line [15:26:35]line [15:26:35]line [15:26:35]written 0, free lines is 3601 [15:26:35]MH_Cut [15:26:35]Write to MH i2c: D1 01 00 44 24 01 3A [15:26:35]Write i2c OK [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: D1 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: D1 01 00 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: D1 01 00 44 24 00 39 [15:26:35]Write to MH i2c: 01 00 00 45 24 69 [15:26:35]Write i2c OK [15:26:35]MH_I2C_Read... [15:26:35]*** Cut start [15:26:35]*** Purtial cut [15:26:35]*** Stage 1: CUTSNS_PIN = 1 [15:26:35]Read from MH i2c: 01 [15:26:35]MH_I2C_Read... [15:26:36]*** Stop cut motor [15:26:36]*** Cut end [15:26:36]Read from MH i2c: 01 07 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: 01 07 00 45 24 00 00 00 00 00 FF 0F 7E [15:26:36]process_action print_text done [15:26:36]requested_data is exist [15:26:36]produce_requested_data [15:26:36]requested_item fm.sn is exist - process it [15:26:36]wFMCommunicate request_size=4 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 11 00 00 [15:26:36]Write to MH i2c: E2 08 00 46 24 80 11 00 00 00 00 00 00 E4 [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:36]Read from MH i2c: E2 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 17 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 17 00 46 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3A [15:26: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:26:36]wFMCommunicate OK [15:26:36]requested_item fd.num is exist - process it [15:26:36]SAM_PROTO_GetFieldsCounters [15:26:36]wFMCommunicate request_size=4 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 13 00 00 [15:26:36]Write to MH i2c: E2 08 00 47 24 80 13 00 00 00 00 00 00 E7 [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:36]Read from MH i2c: E2 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 62 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 62 00 47 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 58 08 01 00 0E 04 04 00 66 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 C8 [15:26: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 58 08 01 00 0E 04 04 00 66 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 [15:26:36]wFMCommunicate OK [15:26:36]SAM_PROTO_GetFieldsCounters done [15:26:36]requested_item shift.num is exist - process it [15:26:36]requested_item shift.opened is exist - process it [15:26:36]req_shift_opened [15:26:36]FM_GetShiftState [15:26:36]SAM_PROTO_GetShiftState [15:26:36]wFMCommunicate request_size=4 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 13 01 00 [15:26:36]Write to MH i2c: E2 08 00 48 24 80 13 01 00 00 00 00 00 E9 [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 [15:26:36]MH_I2C_Read... [15:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:36]Read from MH i2c: E2 0E 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 0E 00 48 24 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 6F [15:26:36]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:26:36]wFMCommunicate OK [15:26:36]SAM_PROTO_GetShiftState done [15:26:36]FM_GetShiftState done [15:26:36]req_shift_opened done [15:26:36]requested_item shift.open_date is exist - process it [15:26:36]req_shift_open_date [15:26:36]req_shift_open_date done [15:26:36]produce_requested_data done [15:26:36]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67672,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [15:26:36]process_action_free print_text [15:26:36]json_value_free [15:26:36]json_value_free done [15:26:36]process_json_proto returns [15:26:36]Send response to host [15:26:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67672,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [15:26:36]free response buf [15:26:36]execute_script done [15:26:36]execute_script returns [15:26:36]free content buf [15:26:36]Sock 9.Close socket [15:26:36]Sock 9.Thread stoped [15:26:36]OFD Sender: No OFD packet to send [15:26:41]OFD Sender: No OFD packet to send [15:26:46]OFD Sender: No OFD packet to send [15:26:51]OFD Sender: No OFD packet to send [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:39]accept exits with 7 [15:27:39]New connection [15:27:39]New thread 3067395428 created [15:27:39]Thread 3067538788 joined [15:27:39]Waiting for new connection... [15:27:39] Sock 7.Parse request [15:27:39]Sock 7.Check first char [15:27:39]Sock 7.First char is OK [15:27:39]request: POST /json_proto HTTP/1.0 [15:27:39]Method: POST [15:27:39]URL: /json_proto [15:27:39]Method is POST - this is cgi request [15:27:39]url: /json_proto [15:27:39]query_string will be loaded in cgi processing [15:27:39]execute_cgi json_proto POST (null) [15:27:39]execute_cgi path=json_proto method=POST [15:27:39]POST find Content-Length [15:27:39]Host: 172.17.41.195:8080 [15:27:39]Content-Length: 800 [15:27:39]Content-Type: application/json [15:27:39] [15:27:39]POST finish read [15:27:39]Found Content-Length = 800 [15:27:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507820", "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" : 65.600, "sum" : 4900.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4900.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:39]execute_script... [15:27: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)507820", "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" : 65.600, "sum" : 4900.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4900.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:39]POST & json_proto [15:27:39]process_json_proto [15:27:39]json parsed OK: [15:27:39]protocol is kg_v1.0 [15:27:39]action value=close_receipt [15:27:39]process_action close_receipt [15:27:39]cmd_close_receipt [15:27:39]MH_GetDate [15:27:39]Write to MH i2c: F0 00 00 49 24 5C [15:27:39]Write i2c OK [15:27:39]MH_I2C_Read... [15:27:39]Read from MH i2c: F0 [15:27:39]MH_I2C_Read... [15:27:39]Read from MH i2c: F0 09 00 [15:27:39]MH_I2C_Read... [15:27:39]Read from MH i2c: F0 09 00 49 24 00 6F 77 47 66 FC 21 6F 64 E8 [15:27:39]GetLastDocTimeStamp 1715959592 [15:27:39]current date 1715959663 [15:27:39]FM_GetShiftState [15:27:39]SAM_PROTO_GetShiftState [15:27:39]wFMCommunicate request_size=4 [15:27:39]MH_SAM_APDU [15:27:39]CAPDU: 80 13 01 00 [15:27:39]Write to MH i2c: E2 08 00 4A 24 80 13 01 00 00 00 00 00 EB [15:27:39]Write i2c OK [15:27:39]MH_I2C_Read... [15:27:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:39]Read from MH i2c: E2 [15:27:39]MH_I2C_Read... [15:27:39]Read from MH i2c: E2 0E 00 [15:27:39]MH_I2C_Read... [15:27:39]Read from MH i2c: E2 0E 00 4A 24 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 71 [15:27:39]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:27:39]wFMCommunicate OK [15:27:39]SAM_PROTO_GetShiftState done [15:27:39]FM_GetShiftState done [15:27:39]opened in 1715905068 [15:27:39]opened+sec_in_day 1715991468 [15:27:39]quantity*price = 490032 [15:27:39]sum+1 = 490033 [15:27:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4900.32 НСП 1% : 43.37 НДС 12% : 520.39 Наличными: 0.00 Безнал.: 4900.32 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 82 17.05.2024 15:27 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67673 ФПД: 47143005988453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T152743&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67673&fm=47143005988453&tin=02508201610067®Number=0000000000091845&sum=490032 [15:27:40]StoreToDocumentArchive [15:27:40]shift 358 fd 67673 [15:27:40]save to /storage/0358/doc_00067673 [15:27:40]save last doc name /storage/0358/doc_00067673 to /storage/kkm_last_doc_name [15:27:40]save OK [15:27:40]Clear old archive folders... [15:27:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:27:40]tlvbuf is 015ED6D0 [15:27:40]SAM_PROTO_ClearQueue [15:27:40]wFMCommunicate request_size=4 [15:27:40]MH_SAM_APDU [15:27:40]CAPDU: 80 09 00 00 [15:27:40]Write to MH i2c: E2 08 00 57 24 80 09 00 00 00 00 00 00 ED [15:27:40]Write i2c OK [15:27:40]MH_I2C_Read... [15:27:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:40]Read from MH i2c: E2 [15:27:40]MH_I2C_Read... [15:27:40]Read from MH i2c: E2 03 00 [15:27:40]MH_I2C_Read... [15:27:40]Read from MH i2c: E2 03 00 57 24 00 90 00 EF [15:27:40]RAPDU: 90 00 [15:27:40]wFMCommunicate OK [15:27:40]SAM_PROTO_ClearQueue done [15:27:40]KKMCreateOFDPacket [15:27:40]OFDProtocolAddRootSTLVToBuf [15:27:40]FM_MakeSignedData [15:27:40]FM_MakeSignedData [15:27:40]SAM_PROTO_SignData [15:27:40]wFMCommunicate request_size=4 [15:27:40]MH_SAM_APDU [15:27:40]CAPDU: 80 0D 01 02 [15:27:40]Write to MH i2c: E2 08 00 58 24 80 0D 01 02 00 00 00 00 F5 [15:27:40]Write i2c OK [15:27:40]MH_I2C_Read... [15:27:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:40]Read from MH i2c: E2 [15:27:40]MH_I2C_Read... [15:27:40]Read from MH i2c: E2 03 00 [15:27:40]MH_I2C_Read... [15:27:40]Read from MH i2c: E2 03 00 58 24 00 90 00 F0 [15:27:40]RAPDU: 90 00 [15:27:40]wFMCommunicate OK [15:27:40]wFMCommunicate request_size=255 [15:27:40]MH_SAM_APDU [15:27: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 40 00 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 30 7A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 7A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 CB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 7A 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 6F 77 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 59 08 01 00 35 04 06 00 2A E0 56 20 [15:27:40]Write to MH i2c: E2 02 01 59 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 40 00 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 30 7A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 7A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 CB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 7A 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 6F 77 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 59 08 01 00 35 04 06 00 2A E0 56 20 00 00 37 [15:27:40]Write i2c OK [15:27:40]MH_I2C_Read... [15:27:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:41]Read from MH i2c: E2 [15:27:41]MH_I2C_Read... [15:27:41]Read from MH i2c: E2 03 00 [15:27:41]MH_I2C_Read... [15:27:41]Read from MH i2c: E2 03 00 59 24 00 90 00 F1 [15:27:41]RAPDU: 90 00 [15:27:41]wFMCommunicate OK [15:27:41]wFMCommunicate request_size=7 [15:27:41]MH_SAM_APDU [15:27:41]CAPDU: 80 0D 02 02 02 26 65 [15:27:41]Write to MH i2c: E2 0A 00 5A 24 80 0D 02 02 02 00 26 65 00 00 87 [15:27:41]Write i2c OK [15:27:41]MH_I2C_Read... [15:27:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:41]Read from MH i2c: E2 [15:27:41]MH_I2C_Read... [15:27:41]Read from MH i2c: E2 03 00 [15:27:41]MH_I2C_Read... [15:27:41]Read from MH i2c: E2 03 00 5A 24 00 90 00 F2 [15:27:41]RAPDU: 90 00 [15:27:41]wFMCommunicate OK [15:27:41]wFMCommunicate request_size=4 [15:27:41]MH_SAM_APDU [15:27:41]CAPDU: 80 0D 03 02 [15:27:41]Write to MH i2c: E2 08 00 5B 24 80 0D 03 02 00 00 00 00 FA [15:27:41]Write i2c OK [15:27:41]MH_I2C_Read... [15:27:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:41]Read from MH i2c: E2 [15:27:41]MH_I2C_Read... [15:27:41]Read from MH i2c: E2 0B 00 [15:27:41]MH_I2C_Read... [15:27:41]Read from MH i2c: E2 0B 00 5B 24 00 A8 09 35 47 AA E3 CD 72 90 00 F4 [15:27:41]RAPDU: A8 09 35 47 AA E3 CD 72 90 00 [15:27:41]wFMCommunicate OK [15:27:41]SAM_PROTO_SignData done [15:27:41]FM_MakeSignedData done [15:27:41]CreateOFDProtocolMessage [15:27:41]wFMCommunicate request_size=4 [15:27:41]MH_SAM_APDU [15:27:41]CAPDU: 80 11 00 00 [15:27:41]Write to MH i2c: E2 08 00 5C 24 80 11 00 00 00 00 00 00 FA [15:27:41]Write i2c OK [15:27:41]MH_I2C_Read... [15:27:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:41]Read from MH i2c: E2 [15:27:41]MH_I2C_Read... [15:27:41]Read from MH i2c: E2 17 00 [15:27:41]MH_I2C_Read... [15:27:41]Read from MH i2c: E2 17 00 5C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 50 [15:27:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:27:41]wFMCommunicate OK [15:27:41]CreateOFDProtocolMessage done [15:27:41]OFDSenderStorePacket 67673 [15:27:41]StoreOFDPacket docnum=67673 [15:27: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 53 AE 04 01 D5 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 00 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 30 7A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 7A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 CB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 7A 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 6F 77 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 59 08 01 00 35 04 06 00 2A E0 56 20 26 65 A8 09 35 47 AA E3 CD 72 [15:27:41]CheckFolder [15:27:41]dirname=/storage/ofd_packets [15:27:41]CheckFolder done [15:27:41]ProducePacketName [15:27:41]name=ofd_packets/00067673 [15:27:41]NVStorageSaveData ofd_packets/00067673 [15:27:41]File name is /storage/ofd_packets/00067673 [15:27:41]Write 298 bytes [15:27:41]NVStorageSaveData done [15:27:41]OFDSenderStorePacket done [15:27:41]KKMCreateOFDPacket done [15:27:41]NVStorageSaveData kkm_last_timestamp [15:27:41]File name is /storage/kkm_last_timestamp [15:27:41]Write 4 bytes [15:27:41]NVStorageSaveData done [15:27:41]ExternCall_PrintAddStr [15:27:41]wPrintStart [15:27:41]Write to MH i2c: 01 00 00 5D 24 81 [15:27:41]Write i2c OK [15:27:41]MH_I2C_Read... [15:27:41]Read from MH i2c: 01 [15:27:41]MH_I2C_Read... [15:27:41]Read from MH i2c: 01 07 00 [15:27:41]MH_I2C_Read... [15:27:41]Read from MH i2c: 01 07 00 5D 24 00 00 00 00 00 FF 0F 96 [15:27:41]RasterBufferAndPrint [15:27:41]line Счет N : (1)507820 [15:27:41]line ИНН: 02508201610067 [15:27:41]line Контрольно-Кассовый Чек [15:27:41]line ПРОДАЖА [15:27:41]line ТРК (МРК, ГНК) : 21 [15:27:41]line Товар: 2710194210 [15:27:41]line ДТ-К-5 [15:27:41]line 65.600 * 74.70 [15:27:41]line = 4900.32 [15:27:41]line НДС 12% НСП 1% [15:27:41]line > о реализуемом товаре [15:27:41]line ИТОГО: 4900.32 [15:27:41]line НСП 1% : 43.37 [15:27:41]line НДС 12% : 520.39 [15:27:41]line Наличными: 0.00 [15:27:41]line Безнал.: 4900.32 [15:27:41]line Место: АЗС № 91 "Партнер Нефть" [15:27:41]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:27:41]line СНО: Общий режим [15:27:41]line Чек 82 17.05.2024 15:27 [15:27:41]line Смена: 358 ФФД: 1.0 [15:27:41]line ЗНМ: 0300000119 [15:27:41]line РНМ: 0000000000091845 [15:27:41]line Версия ККМ: 001 [15:27:41]line Платежная система: O! деньги [15:27:41]line ФМ: 0000000000871829 [15:27:41]line ФД: 67673 [15:27:41]line ФПД: 47143005988453 [15:27:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T152743&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67673&fm=47143005988453&tin=02508201610067®Number=0000000000091845&sum=490032 [15:27:41]OFD Sender: Processing packet 67673 [packets to send 35, broken 34] [15:27:41]ProducePacketName [15:27:41]name=ofd_packets/00067673 [15:27:41]OFD Sender: To server: pG, [15:27:41]CommunicateWithHost lk.salyk.kg:30040 [15:27:41]ConnectInit lk.salyk.kg [15:27:41]written 0, free lines is 4095 [15:27:41]Connected sock=10 [15:27: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 53 AE 04 01 D5 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 00 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 30 7A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 7A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 CB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 7A 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 6F 77 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 59 08 01 00 35 04 06 00 2A E0 56 20 26 65 A8 09 35 47 AA E3 CD 72 [15:27: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 3B 1B 47 00 73 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 59 08 01 00 F4 03 04 00 47 1F 47 66 B6 04 01 00 00 47 B0 48 5B 1F CE EA A4 [15:27:41]CommunicateWithHost err = 0 [15:27:41]CheckOFDResponse [15:27:41]1017 (14) - 77093643461234 [15:27:41]1041 (16) - 0000000000871829 [15:27:41]1040 (4) - 67673 [15:27:41]1012 (4) - 17.05.2024 09:11 [15:27:41]1206 (1) - 0 [15:27:41]OFD Sender: Remove packet 67673 [15:27:41]ProducePacketName [15:27:41]name=ofd_packets/00067673 [15:27:41]NVStorageDeleteData [15:27:42]Write to MH i2c: 01 00 00 86 24 AA [15:27:42]Write i2c OK [15:27:42]MH_I2C_Read... [15:27:42]Read from MH i2c: 01 [15:27:42]MH_I2C_Read... [15:27:42]Read from MH i2c: 01 07 00 [15:27:42]MH_I2C_Read... [15:27:42]Read from MH i2c: 01 07 00 86 24 00 00 00 00 00 D8 0C 95 [15:27:42]RasterBufferAndPrint [15:27:42]line [15:27:42]line [15:27:42]line [15:27:42]line [15:27:42]line [15:27:42]written 0, free lines is 3293 [15:27:42]MH_Cut [15:27:42]Write to MH i2c: D1 01 00 8D 24 01 83 [15:27:42]Write i2c OK [15:27:42]MH_I2C_Read... [15:27:42]Read from MH i2c: D1 [15:27:42]MH_I2C_Read... [15:27:42]Read from MH i2c: D1 01 00 [15:27:42]MH_I2C_Read... [15:27:42]Read from MH i2c: D1 01 00 8D 24 00 82 [15:27:42]Write to MH i2c: 01 00 00 8E 24 B2 [15:27:42]Write i2c OK [15:27:42]MH_I2C_Read... [15:27:42]OFD Sender: No OFD packet to send [15:27:42]*** Cut start [15:27:42]*** Purtial cut [15:27:42]*** CUTSNS_PIN = 0 [15:27:43]*** Stage 1: CUTSNS_PIN = 1 [15:27:44]Read from MH i2c: 01 [15:27:44]MH_I2C_Read... [15:27:44]*** Stop cut motor [15:27:44]*** Cut end [15:27:44]Read from MH i2c: 01 07 00 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: 01 07 00 8E 24 00 00 00 00 00 FF 0F C7 [15:27:44]process_action close_receipt done [15:27:44]requested_data is exist [15:27:44]produce_requested_data [15:27:44]requested_item fm.sn is exist - process it [15:27:44]wFMCommunicate request_size=4 [15:27:44]MH_SAM_APDU [15:27:44]CAPDU: 80 11 00 00 [15:27:44]Write to MH i2c: E2 08 00 8F 24 80 11 00 00 00 00 00 00 2D [15:27:44]Write i2c OK [15:27:44]MH_I2C_Read... [15:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:44]Read from MH i2c: E2 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: E2 17 00 [15:27:44]MH_I2C_Read... [15:27:44]Read from MH i2c: E2 17 00 8F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 83 [15:27: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:27:44]wFMCommunicate OK [15:27:44]requested_item fd.num is exist - process it [15:27:44]SAM_PROTO_GetFieldsCounters [15:27:44]wFMCommunicate request_size=4 [15:27:44]MH_SAM_APDU [15:27:44]CAPDU: 80 13 00 00 [15:27:44]Write to MH i2c: E2 08 00 90 24 80 13 00 00 00 00 00 00 30 [15:27:44]Write i2c OK [15:27:44]MH_I2C_Read... [15:27:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:45]Read from MH i2c: E2 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 62 00 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 62 00 90 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 59 08 01 00 0E 04 04 00 66 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 15 [15:27: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 59 08 01 00 0E 04 04 00 66 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 [15:27:45]wFMCommunicate OK [15:27:45]SAM_PROTO_GetFieldsCounters done [15:27:45]requested_item shift.num is exist - process it [15:27:45]requested_item shift.opened is exist - process it [15:27:45]req_shift_opened [15:27:45]FM_GetShiftState [15:27:45]SAM_PROTO_GetShiftState [15:27:45]wFMCommunicate request_size=4 [15:27:45]MH_SAM_APDU [15:27:45]CAPDU: 80 13 01 00 [15:27:45]Write to MH i2c: E2 08 00 91 24 80 13 01 00 00 00 00 00 32 [15:27:45]Write i2c OK [15:27:45]MH_I2C_Read... [15:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:45]Read from MH i2c: E2 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 0E 00 [15:27:45]MH_I2C_Read... [15:27:45]Read from MH i2c: E2 0E 00 91 24 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 B8 [15:27:45]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:27:45]wFMCommunicate OK [15:27:45]SAM_PROTO_GetShiftState done [15:27:45]FM_GetShiftState done [15:27:45]req_shift_opened done [15:27:45]requested_item shift.open_date is exist - process it [15:27:45]req_shift_open_date [15:27:45]req_shift_open_date done [15:27:45]produce_requested_data done [15:27:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67673,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [15:27:45]process_action_free close_receipt [15:27:45]json_value_free [15:27:45]json_value_free done [15:27:45]process_json_proto returns [15:27:45]Send response to host [15:27:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67673,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [15:27:45]free response buf [15:27:45]execute_script done [15:27:45]execute_script returns [15:27:45]free content buf [15:27:45]Sock 7.Close socket [15:27:45]Sock 7.Thread stoped [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:38]accept exits with 9 [15:31:38]New connection [15:31:38]New thread 3067538788 created [15:31:38]Thread 3067395428 joined [15:31:38]Waiting for new connection... [15:31:38] Sock 9.Parse request [15:31:38]Sock 9.Check first char [15:31:38]Sock 9.First char is OK [15:31:38]request: POST /json_proto HTTP/1.0 [15:31:38]Method: POST [15:31:38]URL: /json_proto [15:31:38]Method is POST - this is cgi request [15:31:38]url: /json_proto [15:31:38]query_string will be loaded in cgi processing [15:31:38]execute_cgi json_proto POST (null) [15:31:38]execute_cgi path=json_proto method=POST [15:31:38]POST find Content-Length [15:31:38]Host: 172.17.41.195:8080 [15:31:38]Content-Length: 803 [15:31:38]Content-Type: application/json [15:31:38] [15:31:38]POST finish read [15:31:38]Found Content-Length = 803 [15:31:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507823", "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" ] } } [15:31:38]execute_script... [15:31: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)507823", "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" ] } } [15:31:38]POST & json_proto [15:31:38]process_json_proto [15:31:38]json parsed OK: [15:31:38]protocol is kg_v1.0 [15:31:38]action value=close_receipt [15:31:38]process_action close_receipt [15:31:38]cmd_close_receipt [15:31:38]MH_GetDate [15:31:38]Write to MH i2c: F0 00 00 92 24 A5 [15:31:38]Write i2c OK [15:31:38]MH_I2C_Read... [15:31:38]Read from MH i2c: F0 [15:31:38]MH_I2C_Read... [15:31:38]Read from MH i2c: F0 09 00 [15:31:38]MH_I2C_Read... [15:31:38]Read from MH i2c: F0 09 00 92 24 00 5E 78 47 66 FC 21 6F 64 21 [15:31:38]GetLastDocTimeStamp 1715959663 [15:31:38]current date 1715959902 [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 93 24 80 13 01 00 00 00 00 00 34 [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 93 24 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 BA [15:31:38]RAPDU: 09 00 01 2C A2 46 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]opened in 1715905068 [15:31:38]opened+sec_in_day 1715991468 [15:31:38]quantity*price = 150032 [15:31:38]sum+1 = 150034 [15:31:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.33 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 83 17.05.2024 15:31 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67674 ФПД: 205360947345178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T153142&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67674&fm=205360947345178&tin=02508201610067®Number=0000000000091845&sum=150033 [15:31:39]StoreToDocumentArchive [15:31:39]shift 358 fd 67674 [15:31:39]save to /storage/0358/doc_00067674 [15:31:39]save last doc name /storage/0358/doc_00067674 to /storage/kkm_last_doc_name [15:31:39]save OK [15:31:39]Clear old archive folders... [15:31:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:31:39]tlvbuf is 015BE3E0 [15:31:39]SAM_PROTO_ClearQueue [15:31:39]wFMCommunicate request_size=4 [15:31:39]MH_SAM_APDU [15:31:39]CAPDU: 80 09 00 00 [15:31:39]Write to MH i2c: E2 08 00 A0 24 80 09 00 00 00 00 00 00 36 [15:31:39]Write i2c OK [15:31:39]MH_I2C_Read... [15:31:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:39]Read from MH i2c: E2 [15:31:39]MH_I2C_Read... [15:31:39]Read from MH i2c: E2 03 00 [15:31:39]MH_I2C_Read... [15:31:39]Read from MH i2c: E2 03 00 A0 24 00 90 00 38 [15:31:39]RAPDU: 90 00 [15:31:39]wFMCommunicate OK [15:31:39]SAM_PROTO_ClearQueue done [15:31:39]KKMCreateOFDPacket [15:31:39]OFDProtocolAddRootSTLVToBuf [15:31:39]FM_MakeSignedData [15:31:39]FM_MakeSignedData [15:31:39]SAM_PROTO_SignData [15:31:39]wFMCommunicate request_size=4 [15:31:39]MH_SAM_APDU [15:31:39]CAPDU: 80 0D 01 02 [15:31:39]Write to MH i2c: E2 08 00 A1 24 80 0D 01 02 00 00 00 00 3E [15:31:39]Write i2c OK [15:31:39]MH_I2C_Read... [15:31:39]*** 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 A1 24 00 90 00 39 [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 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 53 00 00 00 F4 03 04 00 5E 78 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5A 08 01 00 35 04 06 00 BA [15:31:40]Write to MH i2c: E2 02 01 A2 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 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 53 00 00 00 F4 03 04 00 5E 78 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5A 08 01 00 35 04 06 00 BA 00 00 B3 [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 A2 24 00 90 00 3A [15:31:40]RAPDU: 90 00 [15:31:40]wFMCommunicate OK [15:31:40]wFMCommunicate request_size=10 [15:31:40]MH_SAM_APDU [15:31:40]CAPDU: 80 0D 02 02 05 C6 52 51 37 1A [15:31:40]Write to MH i2c: E2 0D 00 A3 24 80 0D 02 02 05 00 C6 52 51 37 1A 00 00 05 [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 A3 24 00 90 00 3B [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 A4 24 80 0D 03 02 00 00 00 00 43 [15:31:40]Write i2c OK [15:31:40]MH_I2C_Read... [15:31:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:40]Read from MH i2c: E2 [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: E2 0B 00 [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: E2 0B 00 A4 24 00 5B 82 D4 C5 D6 F3 55 AF 90 00 87 [15:31:40]RAPDU: 5B 82 D4 C5 D6 F3 55 AF 90 00 [15:31:40]wFMCommunicate OK [15:31:40]SAM_PROTO_SignData done [15:31:40]FM_MakeSignedData done [15:31:40]CreateOFDProtocolMessage [15:31:40]wFMCommunicate request_size=4 [15:31:40]MH_SAM_APDU [15:31:40]CAPDU: 80 11 00 00 [15:31:40]Write to MH i2c: E2 08 00 A5 24 80 11 00 00 00 00 00 00 43 [15:31:40]Write i2c OK [15:31:40]MH_I2C_Read... [15:31:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:40]Read from MH i2c: E2 [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: E2 17 00 [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: E2 17 00 A5 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 99 [15:31:40]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:40]wFMCommunicate OK [15:31:40]CreateOFDProtocolMessage done [15:31:40]OFDSenderStorePacket 67674 [15:31:40]StoreOFDPacket docnum=67674 [15:31: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 7B 25 07 01 34 4C 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 53 00 00 00 F4 03 04 00 5E 78 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5A 08 01 00 35 04 06 00 BA C6 52 51 37 1A 5B 82 D4 C5 D6 F3 55 AF [15:31:40]CheckFolder [15:31:40]dirname=/storage/ofd_packets [15:31:40]CheckFolder done [15:31:40]ProducePacketName [15:31:40]name=ofd_packets/00067674 [15:31:40]NVStorageSaveData ofd_packets/00067674 [15:31:40]File name is /storage/ofd_packets/00067674 [15:31:40]Write 301 bytes [15:31:40]NVStorageSaveData done [15:31:40]OFDSenderStorePacket done [15:31:40]KKMCreateOFDPacket done [15:31:40]NVStorageSaveData kkm_last_timestamp [15:31:40]File name is /storage/kkm_last_timestamp [15:31:40]Write 4 bytes [15:31:40]NVStorageSaveData done [15:31:40]ExternCall_PrintAddStr [15:31:40]wPrintStart [15:31:40]Write to MH i2c: 01 00 00 A6 24 CA [15:31:40]Write i2c OK [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: 01 [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: 01 07 00 [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: 01 07 00 A6 24 00 00 00 00 00 FF 0F DF [15:31:40]RasterBufferAndPrint [15:31:40]line Счет N : (1)507823 [15:31:40]line ИНН: 02508201610067 [15:31:40]line Контрольно-Кассовый Чек [15:31:40]line ПРОДАЖА [15:31:40]line ТРК (МРК, ГНК) : 23 [15:31:40]line Товар: 2710124130 [15:31:40]line Аи-92-К-5 [15:31:40]line 22.460 * 66.80 [15:31:40]line = 1500.33 [15:31:40]line НДС 12% НСП 1% [15:31:40]line > о реализуемом товаре [15:31:40]line ИТОГО: 1500.33 [15:31:40]line НСП 1% : 13.28 [15:31:40]line НДС 12% : 159.33 [15:31:40]line Наличными: 0.00 [15:31:40]line Безнал.: 1500.33 [15:31:40]line Место: АЗС № 91 "Партнер Нефть" [15:31:40]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:31:40]line СНО: Общий режим [15:31:40]line Чек 83 17.05.2024 15:31 [15:31:40]line Смена: 358 ФФД: 1.0 [15:31:40]line ЗНМ: 0300000119 [15:31:40]line РНМ: 0000000000091845 [15:31:40]line Версия ККМ: 001 [15:31:40]line Платежная система: O! деньги [15:31:40]line ФМ: 0000000000871829 [15:31:40]line ФД: 67674 [15:31:40]line ФПД: 205360947345178 [15:31:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T153142&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67674&fm=205360947345178&tin=02508201610067®Number=0000000000091845&sum=150033 [15:31:40]OFD Sender: Processing packet 67674 [packets to send 35, broken 34] [15:31:40]ProducePacketName [15:31:40]name=ofd_packets/00067674 [15:31:40]OFD Sender: To server: pG, [15:31:40]CommunicateWithHost lk.salyk.kg:30040 [15:31:40]ConnectInit lk.salyk.kg [15:31:40]written 0, free lines is 4095 [15:31:40]Connected sock=10 [15:31: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 7B 25 07 01 34 4C 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 53 00 00 00 F4 03 04 00 5E 78 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5A 08 01 00 35 04 06 00 BA C6 52 51 37 1A 5B 82 D4 C5 D6 F3 55 AF [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 0C E0 47 00 7A 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5A 08 01 00 F4 03 04 00 36 20 47 66 B6 04 01 00 00 44 BB BB BE 48 F2 FB 70 [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) - 67674 [15:31:41]1012 (4) - 17.05.2024 09:15 [15:31:41]1206 (1) - 0 [15:31:41]OFD Sender: Remove packet 67674 [15:31:41]ProducePacketName [15:31:41]name=ofd_packets/00067674 [15:31:41]NVStorageDeleteData [15:31:41]Write to MH i2c: 01 00 00 CF 24 F3 [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 CF 24 00 00 00 00 00 DF 0C E5 [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 3300 [15:31:41]MH_Cut [15:31:41]Write to MH i2c: D1 01 00 D6 24 01 CC [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 D6 24 00 CB [15:31:41]Write to MH i2c: 01 00 00 D7 24 FB [15:31:41]Write i2c OK [15:31:41]MH_I2C_Read... [15:31:41]OFD Sender: No OFD packet to send [15:31:42]*** Cut start [15:31:42]*** Purtial cut [15:31:42]*** Stage 1: CUTSNS_PIN = 1 [15:31:42]Read from MH i2c: 01 [15:31:42]MH_I2C_Read... [15:31:42]*** Stop cut motor [15:31:42]*** Cut end [15:31:42]Read from MH i2c: 01 07 00 [15:31:42]MH_I2C_Read... [15:31:42]Read from MH i2c: 01 07 00 D7 24 00 00 00 00 00 FF 0F 10 [15:31:42]process_action close_receipt done [15:31:42]requested_data is exist [15:31:42]produce_requested_data [15:31:42]requested_item fm.sn is exist - process it [15:31:42]wFMCommunicate request_size=4 [15:31:42]MH_SAM_APDU [15:31:42]CAPDU: 80 11 00 00 [15:31:42]Write to MH i2c: E2 08 00 D8 24 80 11 00 00 00 00 00 00 76 [15:31:42]Write i2c OK [15:31:42]MH_I2C_Read... [15:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:42]Read from MH i2c: E2 [15:31:42]MH_I2C_Read... [15:31:42]Read from MH i2c: E2 17 00 [15:31:42]MH_I2C_Read... [15:31:42]Read from MH i2c: E2 17 00 D8 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CC [15:31: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:31:42]wFMCommunicate OK [15:31:42]requested_item fd.num is exist - process it [15:31:42]SAM_PROTO_GetFieldsCounters [15:31:42]wFMCommunicate request_size=4 [15:31:42]MH_SAM_APDU [15:31:42]CAPDU: 80 13 00 00 [15:31:42]Write to MH i2c: E2 08 00 D9 24 80 13 00 00 00 00 00 00 79 [15:31:42]Write i2c OK [15:31:42]MH_I2C_Read... [15:31:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:42]Read from MH i2c: E2 [15:31:42]MH_I2C_Read... [15:31:42]Read from MH i2c: E2 62 00 [15:31:42]MH_I2C_Read... [15:31:42]Read from MH i2c: E2 62 00 D9 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 5A 08 01 00 0E 04 04 00 66 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 62 [15:31: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 5A 08 01 00 0E 04 04 00 66 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 [15:31:42]wFMCommunicate OK [15:31:42]SAM_PROTO_GetFieldsCounters done [15:31:42]requested_item shift.num is exist - process it [15:31:42]requested_item shift.opened is exist - process it [15:31:42]req_shift_opened [15:31:42]FM_GetShiftState [15:31:42]SAM_PROTO_GetShiftState [15:31:42]wFMCommunicate request_size=4 [15:31:42]MH_SAM_APDU [15:31:42]CAPDU: 80 13 01 00 [15:31:42]Write to MH i2c: E2 08 00 DA 24 80 13 01 00 00 00 00 00 7B [15:31:42]Write i2c OK [15:31:42]MH_I2C_Read... [15:31:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:42]Read from MH i2c: E2 [15:31:42]MH_I2C_Read... [15:31:42]Read from MH i2c: E2 0E 00 [15:31:42]MH_I2C_Read... [15:31:42]Read from MH i2c: E2 0E 00 DA 24 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 01 [15:31:42]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:31:42]wFMCommunicate OK [15:31:42]SAM_PROTO_GetShiftState done [15:31:42]FM_GetShiftState done [15:31:42]req_shift_opened done [15:31:42]requested_item shift.open_date is exist - process it [15:31:42]req_shift_open_date [15:31:42]req_shift_open_date done [15:31:42]produce_requested_data done [15:31:42]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67674,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [15:31:42]process_action_free close_receipt [15:31:42]json_value_free [15:31:42]json_value_free done [15:31:42]process_json_proto returns [15:31:42]Send response to host [15:31:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67674,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [15:31:42]free response buf [15:31:42]execute_script done [15:31:42]execute_script returns [15:31:42]free content buf [15:31:42]Sock 9.Close socket [15:31:42]Sock 9.Thread stoped [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:46]accept exits with 7 [15:32:46]New connection [15:32:46]New thread 3067395428 created [15:32:46]Thread 3067538788 joined [15:32:46]Waiting for new connection... [15:32:46] Sock 7.Parse request [15:32:46]Sock 7.Check first char [15:32:46]Sock 7.First char is OK [15:32:46]request: POST /json_proto HTTP/1.0 [15:32:46]Method: POST [15:32:46]URL: /json_proto [15:32:46]Method is POST - this is cgi request [15:32:46]url: /json_proto [15:32:46]query_string will be loaded in cgi processing [15:32:46]execute_cgi json_proto POST (null) [15:32:46]execute_cgi path=json_proto method=POST [15:32:46]POST find Content-Length [15:32:46]Host: 172.17.41.195:8080 [15:32:46]Content-Length: 670 [15:32:46]Content-Type: application/json [15:32:46] [15:32:46]POST finish read [15:32:46]Found Content-Length = 670 [15:32:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507824", "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" : 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" ] } } [15:32:46]execute_script... [15: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)507824", "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" : 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" ] } } [15:32:46]POST & json_proto [15:32:46]process_json_proto [15:32:46]json parsed OK: [15:32:46]protocol is kg_v1.0 [15:32:46]action value=close_receipt [15:32:46]process_action close_receipt [15:32:46]cmd_close_receipt [15:32:46]MH_GetDate [15:32:46]Write to MH i2c: F0 00 00 DB 24 EE [15:32:46]Write i2c OK [15:32:46]MH_I2C_Read... [15:32:46]Read from MH i2c: F0 [15:32:46]MH_I2C_Read... [15:32:46]Read from MH i2c: F0 09 00 [15:32:46]MH_I2C_Read... [15:32:46]Read from MH i2c: F0 09 00 DB 24 00 A2 78 47 66 FC 21 6F 64 AE [15:32:46]GetLastDocTimeStamp 1715959902 [15:32:46]current date 1715959970 [15:32:46]FM_GetShiftState [15:32:46]SAM_PROTO_GetShiftState [15:32:46]wFMCommunicate request_size=4 [15:32:46]MH_SAM_APDU [15:32:46]CAPDU: 80 13 01 00 [15:32:46]Write to MH i2c: E2 08 00 DC 24 80 13 01 00 00 00 00 00 7D [15:32:46]Write i2c OK [15:32:46]MH_I2C_Read... [15:32:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:46]Read from MH i2c: E2 [15:32:46]MH_I2C_Read... [15:32:46]Read from MH i2c: E2 0E 00 [15:32:46]MH_I2C_Read... [15:32:46]Read from MH i2c: E2 0E 00 DC 24 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 03 [15:32:46]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:32:46]wFMCommunicate OK [15:32:46]SAM_PROTO_GetShiftState done [15:32:46]FM_GetShiftState done [15:32:46]opened in 1715905068 [15:32:46]opened+sec_in_day 1715991468 [15:32:46]quantity*price = 60003 [15:32:46]sum+1 = 60004 [15:32:46]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 СНО: Общий режим Чек 84 17.05.2024 15:32 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67675 ФПД: 206546191483786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T153250&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67675&fm=206546191483786&tin=02508201610067®Number=0000000000091845&sum=60000 [15:32:47]StoreToDocumentArchive [15:32:47]shift 358 fd 67675 [15:32:47]save to /storage/0358/doc_00067675 [15:32:47]save last doc name /storage/0358/doc_00067675 to /storage/kkm_last_doc_name [15:32:47]save OK [15:32:47]Clear old archive folders... [15:32:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:32:47]tlvbuf is 015D2C10 [15:32:47]SAM_PROTO_ClearQueue [15:32:47]wFMCommunicate request_size=4 [15:32:47]MH_SAM_APDU [15:32:47]CAPDU: 80 09 00 00 [15:32:47]Write to MH i2c: E2 08 00 E9 24 80 09 00 00 00 00 00 00 7F [15:32:47]Write i2c OK [15:32:47]MH_I2C_Read... [15:32:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:47]Read from MH i2c: E2 [15:32:47]MH_I2C_Read... [15:32:47]Read from MH i2c: E2 03 00 [15:32:47]MH_I2C_Read... [15:32:47]Read from MH i2c: E2 03 00 E9 24 00 90 00 81 [15:32:47]RAPDU: 90 00 [15:32:47]wFMCommunicate OK [15:32:47]SAM_PROTO_ClearQueue done [15:32:47]KKMCreateOFDPacket [15:32:47]OFDProtocolAddRootSTLVToBuf [15:32:47]FM_MakeSignedData [15:32:47]FM_MakeSignedData [15:32:47]SAM_PROTO_SignData [15:32:47]wFMCommunicate request_size=4 [15:32:47]MH_SAM_APDU [15:32:47]CAPDU: 80 0D 01 02 [15:32:47]Write to MH i2c: E2 08 00 EA 24 80 0D 01 02 00 00 00 00 87 [15:32:47]Write i2c OK [15:32:47]MH_I2C_Read... [15:32:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:48]Read from MH i2c: E2 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: E2 03 00 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: E2 03 00 EA 24 00 90 00 82 [15:32:48]RAPDU: 90 00 [15:32:48]wFMCommunicate OK [15:32:48]wFMCommunicate request_size=255 [15:32:48]MH_SAM_APDU [15:32:48]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 54 00 00 00 F4 03 04 00 A2 78 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5B 08 01 00 35 04 06 00 [15:32:48]Write to MH i2c: E2 02 01 EB 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 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 54 00 00 00 F4 03 04 00 A2 78 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5B 08 01 00 35 04 06 00 00 00 E2 [15:32:48]Write i2c OK [15:32:48]MH_I2C_Read... [15:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:48]Read from MH i2c: E2 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: E2 03 00 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: E2 03 00 EB 24 00 90 00 83 [15:32:48]RAPDU: 90 00 [15:32:48]wFMCommunicate OK [15:32:48]wFMCommunicate request_size=11 [15:32:48]MH_SAM_APDU [15:32:48]CAPDU: 80 0D 02 02 06 BB DA 48 5F 83 8A [15:32:48]Write to MH i2c: E2 0E 00 EC 24 80 0D 02 02 06 00 BB DA 48 5F 83 8A 00 00 DF [15:32:48]Write i2c OK [15:32:48]MH_I2C_Read... [15:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:48]Read from MH i2c: E2 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: E2 03 00 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: E2 03 00 EC 24 00 90 00 84 [15:32:48]RAPDU: 90 00 [15:32:48]wFMCommunicate OK [15:32:48]wFMCommunicate request_size=4 [15:32:48]MH_SAM_APDU [15:32:48]CAPDU: 80 0D 03 02 [15:32:48]Write to MH i2c: E2 08 00 ED 24 80 0D 03 02 00 00 00 00 8C [15:32:48]Write i2c OK [15:32:48]MH_I2C_Read... [15:32:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:48]Read from MH i2c: E2 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: E2 0B 00 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: E2 0B 00 ED 24 00 E0 A6 0D 8C 8E 18 B8 8B 90 00 95 [15:32:48]RAPDU: E0 A6 0D 8C 8E 18 B8 8B 90 00 [15:32:48]wFMCommunicate OK [15:32:48]SAM_PROTO_SignData done [15:32:48]FM_MakeSignedData done [15:32:48]CreateOFDProtocolMessage [15:32:48]wFMCommunicate request_size=4 [15:32:48]MH_SAM_APDU [15:32:48]CAPDU: 80 11 00 00 [15:32:48]Write to MH i2c: E2 08 00 EE 24 80 11 00 00 00 00 00 00 8C [15:32:48]Write i2c OK [15:32:48]MH_I2C_Read... [15:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:48]Read from MH i2c: E2 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: E2 17 00 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: E2 17 00 EE 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E2 [15: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 [15:32:48]wFMCommunicate OK [15:32:48]CreateOFDProtocolMessage done [15:32:48]OFDSenderStorePacket 67675 [15:32:48]StoreOFDPacket docnum=67675 [15: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 10 01 00 00 F4 89 08 01 BB FF 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 54 00 00 00 F4 03 04 00 A2 78 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5B 08 01 00 35 04 06 00 BB DA 48 5F 83 8A E0 A6 0D 8C 8E 18 B8 8B [15:32:48]CheckFolder [15:32:48]dirname=/storage/ofd_packets [15:32:48]CheckFolder done [15:32:48]ProducePacketName [15:32:48]name=ofd_packets/00067675 [15:32:48]NVStorageSaveData ofd_packets/00067675 [15:32:48]File name is /storage/ofd_packets/00067675 [15:32:48]Write 302 bytes [15:32:48]NVStorageSaveData done [15:32:48]OFDSenderStorePacket done [15:32:48]KKMCreateOFDPacket done [15:32:48]NVStorageSaveData kkm_last_timestamp [15:32:48]File name is /storage/kkm_last_timestamp [15:32:48]Write 4 bytes [15:32:48]NVStorageSaveData done [15:32:48]ExternCall_PrintAddStr [15:32:48]wPrintStart [15:32:48]Write to MH i2c: 01 00 00 EF 24 13 [15:32:48]Write i2c OK [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: 01 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: 01 07 00 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: 01 07 00 EF 24 00 00 00 00 00 FF 0F 28 [15:32:48]RasterBufferAndPrint [15:32:48]line Счет N : (1)507824 [15:32:48]line ИНН: 02508201610067 [15:32:48]line Контрольно-Кассовый Чек [15:32:48]line ПРОДАЖА [15:32:48]line ТРК (МРК, ГНК) : 42 [15:32:48]line Товар: 2710124130 [15:32:48]line Super-92-К-5 [15:32:48]line 8.850 * 67.80 [15:32:48]line = 600.03 [15:32:48]line НДС 12% НСП 1% [15:32:48]line > о реализуемом товаре [15:32:48]line ОКРУГЛЕНИЕ: -0.03 [15:32:48]line ИТОГО: 600.00 [15:32:48]line Внесено: 600.00 [15:32:48]line СДАЧА: 0.00 [15:32:48]line НСП 1% : 5.31 [15:32:48]line НДС 12% : 63.72 [15:32:48]line Наличными: 600.00 [15:32:48]line Безнал.: 0.00 [15:32:48]line Место: АЗС № 91 "Партнер Нефть" [15:32:48]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:32:48]line СНО: Общий режим [15:32:48]line Чек 84 17.05.2024 15:32 [15:32:48]line Смена: 358 ФФД: 1.0 [15:32:48]line ЗНМ: 0300000119 [15:32:48]line РНМ: 0000000000091845 [15:32:48]line Версия ККМ: 001 [15:32:48]line ФМ: 0000000000871829 [15:32:48]line ФД: 67675 [15:32:48]line ФПД: 206546191483786 [15:32:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T153250&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67675&fm=206546191483786&tin=02508201610067®Number=0000000000091845&sum=60000 [15:32:48]OFD Sender: Processing packet 67675 [packets to send 35, broken 34] [15:32:48]ProducePacketName [15:32:48]name=ofd_packets/00067675 [15:32:48]OFD Sender: To server: pG, [15:32:48]CommunicateWithHost lk.salyk.kg:30040 [15:32:48]ConnectInit lk.salyk.kg [15:32:48]written 0, free lines is 4095 [15:32:48]Connected sock=10 [15: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 10 01 00 00 F4 89 08 01 BB FF 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 54 00 00 00 F4 03 04 00 A2 78 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5B 08 01 00 35 04 06 00 BB DA 48 5F 83 8A E0 A6 0D 8C 8E 18 B8 8B [15: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 43 F3 47 00 CD 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 5B 08 01 00 F4 03 04 00 7A 20 47 66 B6 04 01 00 00 8C 81 3B D2 0F EC 73 D8 [15:32:49]CommunicateWithHost err = 0 [15:32:49]CheckOFDResponse [15:32:49]1017 (14) - 77093643461234 [15:32:49]1041 (16) - 0000000000871829 [15:32:49]1040 (4) - 67675 [15:32:49]1012 (4) - 17.05.2024 09:16 [15:32:49]1206 (1) - 0 [15:32:49]OFD Sender: Remove packet 67675 [15:32:49]ProducePacketName [15:32:49]name=ofd_packets/00067675 [15:32:49]NVStorageDeleteData [15:32:49]Write to MH i2c: 01 00 00 19 25 3E [15:32:49]Write i2c OK [15:32:49]MH_I2C_Read... [15:32:49]Read from MH i2c: 01 [15:32:49]MH_I2C_Read... [15:32:49]Read from MH i2c: 01 07 00 [15:32:49]MH_I2C_Read... [15:32:49]Read from MH i2c: 01 07 00 19 25 00 00 00 00 00 C9 0C 1A [15:32:49]RasterBufferAndPrint [15:32:49]line [15:32:49]line [15:32:49]line [15:32:49]line [15:32:49]line [15:32:49]written 0, free lines is 3278 [15:32:49]MH_Cut [15:32:49]Write to MH i2c: D1 01 00 20 25 01 17 [15:32:49]Write i2c OK [15:32:49]MH_I2C_Read... [15:32:49]Read from MH i2c: D1 [15:32:49]MH_I2C_Read... [15:32:49]Read from MH i2c: D1 01 00 [15:32:49]MH_I2C_Read... [15:32:49]Read from MH i2c: D1 01 00 20 25 00 16 [15:32:49]Write to MH i2c: 01 00 00 21 25 46 [15:32:49]Write i2c OK [15:32:49]MH_I2C_Read... [15:32:49]OFD Sender: No OFD packet to send [15:32:50]*** Cut start [15:32:50]*** Purtial cut [15:32:50]*** CUTSNS_PIN = 0 [15:32:50]*** Stage 1: CUTSNS_PIN = 1 [15:32:52]Read from MH i2c: 01 [15:32:52]MH_I2C_Read... [15:32:52]*** Stop cut motor [15:32:52]*** Cut end [15:32:52]Read from MH i2c: 01 07 00 [15:32:52]MH_I2C_Read... [15:32:52]Read from MH i2c: 01 07 00 21 25 00 00 00 00 00 FF 0F 5B [15:32:52]process_action close_receipt done [15:32:52]requested_data is exist [15:32:52]produce_requested_data [15:32:52]requested_item fm.sn is exist - process it [15:32:52]wFMCommunicate request_size=4 [15:32:52]MH_SAM_APDU [15:32:52]CAPDU: 80 11 00 00 [15:32:52]Write to MH i2c: E2 08 00 22 25 80 11 00 00 00 00 00 00 C1 [15:32:52]Write i2c OK [15:32:52]MH_I2C_Read... [15:32:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:52]Read from MH i2c: E2 [15:32:52]MH_I2C_Read... [15:32:52]Read from MH i2c: E2 17 00 [15:32:52]MH_I2C_Read... [15:32:52]Read from MH i2c: E2 17 00 22 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 17 [15:32:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:32:52]wFMCommunicate OK [15:32:52]requested_item fd.num is exist - process it [15:32:52]SAM_PROTO_GetFieldsCounters [15:32:52]wFMCommunicate request_size=4 [15:32:52]MH_SAM_APDU [15:32:52]CAPDU: 80 13 00 00 [15:32:52]Write to MH i2c: E2 08 00 23 25 80 13 00 00 00 00 00 00 C4 [15:32:52]Write i2c OK [15:32:52]MH_I2C_Read... [15:32:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:52]Read from MH i2c: E2 [15:32:52]MH_I2C_Read... [15:32:52]Read from MH i2c: E2 62 00 [15:32:52]MH_I2C_Read... [15:32:52]Read from MH i2c: E2 62 00 23 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 5B 08 01 00 0E 04 04 00 66 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 B1 [15:32: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 5B 08 01 00 0E 04 04 00 66 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 [15:32:52]wFMCommunicate OK [15:32:52]SAM_PROTO_GetFieldsCounters done [15:32:52]requested_item shift.num is exist - process it [15:32:52]requested_item shift.opened is exist - process it [15:32:52]req_shift_opened [15:32:52]FM_GetShiftState [15:32:52]SAM_PROTO_GetShiftState [15:32:52]wFMCommunicate request_size=4 [15:32:52]MH_SAM_APDU [15:32:52]CAPDU: 80 13 01 00 [15:32:52]Write to MH i2c: E2 08 00 24 25 80 13 01 00 00 00 00 00 C6 [15:32:52]Write i2c OK [15:32:52]MH_I2C_Read... [15:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:52]Read from MH i2c: E2 [15:32:52]MH_I2C_Read... [15:32:52]Read from MH i2c: E2 0E 00 [15:32:52]MH_I2C_Read... [15:32:52]Read from MH i2c: E2 0E 00 24 25 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 4C [15:32:52]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:32:52]wFMCommunicate OK [15:32:52]SAM_PROTO_GetShiftState done [15:32:52]FM_GetShiftState done [15:32:52]req_shift_opened done [15:32:52]requested_item shift.open_date is exist - process it [15:32:52]req_shift_open_date [15:32:52]req_shift_open_date done [15:32:52]produce_requested_data done [15:32:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67675,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [15:32:52]process_action_free close_receipt [15:32:52]json_value_free [15:32:52]json_value_free done [15:32:52]process_json_proto returns [15:32:52]Send response to host [15:32:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67675,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [15:32:52]free response buf [15:32:52]execute_script done [15:32:52]execute_script returns [15:32:52]free content buf [15:32:52]Sock 7.Close socket [15:32:52]Sock 7.Thread stoped [15:32:54]OFD Sender: No OFD packet to send [15:32:55]int [15:32:55]Write to MH i2c: 01 00 00 25 25 4A [15:32:55]*** FLAG_PRN_PAP1 set [15:32:55]Write i2c OK [15:32:55]MH_I2C_Read... [15:32:55]Read from MH i2c: 01 [15:32:55]MH_I2C_Read... [15:32:55]Read from MH i2c: 01 07 00 [15:32:55]MH_I2C_Read... [15:32:55]Read from MH i2c: 01 07 00 25 25 00 01 00 00 00 FF 0F 60 [15:32:55]state=0 [15:32:55]No paper [15:32:55]int [15:32:55]Write to MH i2c: 01 00 00 26 25 4B [15:32:55]*** FLAG_PRN_PAP2 set [15:32:55]Write i2c OK [15:32:55]MH_I2C_Read... [15:32:55]Read from MH i2c: 01 [15:32:55]MH_I2C_Read... [15:32:55]Read from MH i2c: 01 07 00 [15:32:55]MH_I2C_Read... [15:32:55]Read from MH i2c: 01 07 00 26 25 00 03 00 00 00 FF 0F 63 [15:32:55]state=0 [15:32:55]No paper [15:32:55]Cover opened [15:32:59]OFD Sender: No OFD packet to send [15:33:00]Write to MH i2c: 01 00 00 27 25 4C [15:33:00]Write i2c OK [15:33:00]MH_I2C_Read... [15:33:00]Read from MH i2c: 01 [15:33:00]MH_I2C_Read... [15:33:00]Read from MH i2c: 01 07 00 [15:33:00]MH_I2C_Read... [15:33:00]Read from MH i2c: 01 07 00 27 25 00 03 00 00 00 FF 0F 64 [15:33:00]state=3 [15:33:00]No paper [15:33:00]Cover opened [15:33:01]int [15:33:01]Write to MH i2c: 01 00 00 28 25 4D [15:33:01]*** FLAG_PRN_PAP1 reset [15:33:01]*** FLAG_PRN_PAP2 reset [15:33:01]Write i2c OK [15:33:01]MH_I2C_Read... [15:33:01]Read from MH i2c: 01 [15:33:01]MH_I2C_Read... [15:33:01]Read from MH i2c: 01 07 00 [15:33:01]MH_I2C_Read... [15:33:01]Read from MH i2c: 01 07 00 28 25 00 00 00 00 00 FF 0F 62 [15:33:01]state=3 [15:33:01]Cover closed [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:35]accept exits with 9 [15:34:35]New connection [15:34:35]New thread 3067538788 created [15:34:35]Thread 3067395428 joined [15:34:35]Waiting for new connection... [15:34:35] Sock 9.Parse request [15:34:35]Sock 9.Check first char [15:34:35]Sock 9.First char is OK [15:34:35]request: POST /json_proto HTTP/1.0 [15:34:35]Method: POST [15:34:35]URL: /json_proto [15:34:35]Method is POST - this is cgi request [15:34:35]url: /json_proto [15:34:35]query_string will be loaded in cgi processing [15:34:35]execute_cgi json_proto POST (null) [15:34:35]execute_cgi path=json_proto method=POST [15:34:35]POST find Content-Length [15:34:35]Host: 172.17.41.195:8080 [15:34:35]Content-Length: 800 [15:34:35]Content-Type: application/json [15:34:35] [15:34:35]POST finish read [15:34:35]Found Content-Length = 800 [15:34:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507826", "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" ] } } [15:34:35]execute_script... [15:34: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)507826", "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" ] } } [15:34:35]POST & json_proto [15:34:35]process_json_proto [15:34:35]json parsed OK: [15:34:35]protocol is kg_v1.0 [15:34:35]action value=close_receipt [15:34:35]process_action close_receipt [15:34:35]cmd_close_receipt [15:34:35]MH_GetDate [15:34:35]Write to MH i2c: F0 00 00 29 25 3D [15:34:35]Write i2c OK [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: F0 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: F0 09 00 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: F0 09 00 29 25 00 0F 79 47 66 FC 21 6F 64 6B [15:34:35]GetLastDocTimeStamp 1715959970 [15:34:35]current date 1715960079 [15:34:35]FM_GetShiftState [15:34:35]SAM_PROTO_GetShiftState [15:34:35]wFMCommunicate request_size=4 [15:34:35]MH_SAM_APDU [15:34:35]CAPDU: 80 13 01 00 [15:34:35]Write to MH i2c: E2 08 00 2A 25 80 13 01 00 00 00 00 00 CC [15:34:35]Write i2c OK [15:34:35]MH_I2C_Read... [15:34:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:35]Read from MH i2c: E2 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: E2 0E 00 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: E2 0E 00 2A 25 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 52 [15:34:35]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:34:35]wFMCommunicate OK [15:34:35]SAM_PROTO_GetShiftState done [15:34:35]FM_GetShiftState done [15:34:35]opened in 1715905068 [15:34:35]opened+sec_in_day 1715991468 [15:34:35]quantity*price = 100023 [15:34:35]sum+1 = 100024 [15:34:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 85 17.05.2024 15:34 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67676 ФПД: 201347488447854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T153439&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67676&fm=201347488447854&tin=02508201610067®Number=0000000000091845&sum=100023 [15:34:36]StoreToDocumentArchive [15:34:36]shift 358 fd 67676 [15:34:36]save to /storage/0358/doc_00067676 [15:34:36]save last doc name /storage/0358/doc_00067676 to /storage/kkm_last_doc_name [15:34:36]save OK [15:34:36]Clear old archive folders... [15:34:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:34:36]tlvbuf is 016035D0 [15:34:36]SAM_PROTO_ClearQueue [15:34:36]wFMCommunicate request_size=4 [15:34:36]MH_SAM_APDU [15:34:36]CAPDU: 80 09 00 00 [15:34:36]Write to MH i2c: E2 08 00 37 25 80 09 00 00 00 00 00 00 CE [15:34:36]Write i2c OK [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: E2 [15:34:36]MH_I2C_Read... [15:34:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:36]Read from MH i2c: E2 03 00 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: E2 03 00 37 25 00 90 00 D0 [15:34:36]RAPDU: 90 00 [15:34:36]wFMCommunicate OK [15:34:36]SAM_PROTO_ClearQueue done [15:34:36]KKMCreateOFDPacket [15:34:36]OFDProtocolAddRootSTLVToBuf [15:34:36]FM_MakeSignedData [15:34:36]FM_MakeSignedData [15:34:36]SAM_PROTO_SignData [15:34:36]wFMCommunicate request_size=4 [15:34:36]MH_SAM_APDU [15:34:36]CAPDU: 80 0D 01 02 [15:34:36]Write to MH i2c: E2 08 00 38 25 80 0D 01 02 00 00 00 00 D6 [15:34:36]Write i2c OK [15:34:36]MH_I2C_Read... [15:34:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:36]Read from MH i2c: E2 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: E2 03 00 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: E2 03 00 38 25 00 90 00 D1 [15:34:36]RAPDU: 90 00 [15:34:36]wFMCommunicate OK [15:34:36]wFMCommunicate request_size=255 [15:34:36]MH_SAM_APDU [15:34:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 55 00 00 00 F4 03 04 00 0F 79 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5C 08 01 00 35 04 06 00 B7 1F DD 86 [15:34:36]Write to MH i2c: E2 02 01 39 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 55 00 00 00 F4 03 04 00 0F 79 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5C 08 01 00 35 04 06 00 B7 1F DD 86 00 00 6D [15:34:36]Write i2c OK [15:34:36]MH_I2C_Read... [15:34:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:36]Read from MH i2c: E2 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: E2 03 00 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: E2 03 00 39 25 00 90 00 D2 [15:34:36]RAPDU: 90 00 [15:34:36]wFMCommunicate OK [15:34:36]wFMCommunicate request_size=7 [15:34:36]MH_SAM_APDU [15:34:36]CAPDU: 80 0D 02 02 02 7D 6E [15:34:36]Write to MH i2c: E2 0A 00 3A 25 80 0D 02 02 02 00 7D 6E 00 00 C8 [15:34:36]Write i2c OK [15:34:36]MH_I2C_Read... [15:34:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:36]Read from MH i2c: E2 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: E2 03 00 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: E2 03 00 3A 25 00 90 00 D3 [15:34:36]RAPDU: 90 00 [15:34:36]wFMCommunicate OK [15:34:36]wFMCommunicate request_size=4 [15:34:36]MH_SAM_APDU [15:34:36]CAPDU: 80 0D 03 02 [15:34:36]Write to MH i2c: E2 08 00 3B 25 80 0D 03 02 00 00 00 00 DB [15:34:36]Write i2c OK [15:34:36]MH_I2C_Read... [15:34:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:36]Read from MH i2c: E2 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: E2 0B 00 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: E2 0B 00 3B 25 00 AD 04 A6 3E BB 95 2A FC 90 00 E7 [15:34:36]RAPDU: AD 04 A6 3E BB 95 2A FC 90 00 [15:34:36]wFMCommunicate OK [15:34:36]SAM_PROTO_SignData done [15:34:36]FM_MakeSignedData done [15:34:36]CreateOFDProtocolMessage [15:34:36]wFMCommunicate request_size=4 [15:34:36]MH_SAM_APDU [15:34:36]CAPDU: 80 11 00 00 [15:34:36]Write to MH i2c: E2 08 00 3C 25 80 11 00 00 00 00 00 00 DB [15:34:36]Write i2c OK [15:34:36]MH_I2C_Read... [15:34:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:37]Read from MH i2c: E2 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: E2 17 00 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: E2 17 00 3C 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 31 [15:34:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:34:37]wFMCommunicate OK [15:34:37]CreateOFDProtocolMessage done [15:34:37]OFDSenderStorePacket 67676 [15:34:37]StoreOFDPacket docnum=67676 [15:34:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 1F 7E 04 01 86 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 55 00 00 00 F4 03 04 00 0F 79 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5C 08 01 00 35 04 06 00 B7 1F DD 86 7D 6E AD 04 A6 3E BB 95 2A FC [15:34:37]CheckFolder [15:34:37]dirname=/storage/ofd_packets [15:34:37]CheckFolder done [15:34:37]ProducePacketName [15:34:37]name=ofd_packets/00067676 [15:34:37]NVStorageSaveData ofd_packets/00067676 [15:34:37]File name is /storage/ofd_packets/00067676 [15:34:37]Write 298 bytes [15:34:37]NVStorageSaveData done [15:34:37]OFDSenderStorePacket done [15:34:37]KKMCreateOFDPacket done [15:34:37]NVStorageSaveData kkm_last_timestamp [15:34:37]File name is /storage/kkm_last_timestamp [15:34:37]Write 4 bytes [15:34:37]NVStorageSaveData done [15:34:37]ExternCall_PrintAddStr [15:34:37]wPrintStart [15:34:37]Write to MH i2c: 01 00 00 3D 25 62 [15:34:37]Write i2c OK [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: 01 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: 01 07 00 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: 01 07 00 3D 25 00 00 00 00 00 FF 0F 77 [15:34:37]RasterBufferAndPrint [15:34:37]line Счет N : (1)507826 [15:34:37]line ИНН: 02508201610067 [15:34:37]line Контрольно-Кассовый Чек [15:34:37]line ПРОДАЖА [15:34:37]line ТРК (МРК, ГНК) : 11 [15:34:37]line Товар: 2710194210 [15:34:37]line ДТ-К-5 [15:34:37]line 13.390 * 74.70 [15:34:37]line = 1000.23 [15:34:37]line НДС 12% НСП 1% [15:34:37]line > о реализуемом товаре [15:34:37]line ИТОГО: 1000.23 [15:34:37]line НСП 1% : 8.85 [15:34:37]line НДС 12% : 106.22 [15:34:37]line Наличными: 0.00 [15:34:37]line Безнал.: 1000.23 [15:34:37]line Место: АЗС № 91 "Партнер Нефть" [15:34:37]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:34:37]line СНО: Общий режим [15:34:37]line Чек 85 17.05.2024 15:34 [15:34:37]line Смена: 358 ФФД: 1.0 [15:34:37]line ЗНМ: 0300000119 [15:34:37]line РНМ: 0000000000091845 [15:34:37]line Версия ККМ: 001 [15:34:37]line Платежная система: O! деньги [15:34:37]line ФМ: 0000000000871829 [15:34:37]line ФД: 67676 [15:34:37]line ФПД: 201347488447854 [15:34:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T153439&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67676&fm=201347488447854&tin=02508201610067®Number=0000000000091845&sum=100023 [15:34:37]OFD Sender: Processing packet 67676 [packets to send 35, broken 34] [15:34:37]ProducePacketName [15:34:37]name=ofd_packets/00067676 [15:34:37]OFD Sender: To server: pG, [15:34:37]CommunicateWithHost lk.salyk.kg:30040 [15:34:37]ConnectInit lk.salyk.kg [15:34:37]written 0, free lines is 4095 [15:34:37]Connected sock=10 [15:34:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 1F 7E 04 01 86 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 55 00 00 00 F4 03 04 00 0F 79 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5C 08 01 00 35 04 06 00 B7 1F DD 86 7D 6E AD 04 A6 3E BB 95 2A FC [15:34: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 A6 F1 47 00 12 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 5C 08 01 00 F4 03 04 00 E7 20 47 66 B6 04 01 00 00 4F E9 99 86 5E C2 A4 A9 [15:34:37]CommunicateWithHost err = 0 [15:34:37]CheckOFDResponse [15:34:37]1017 (14) - 77093643461234 [15:34:37]1041 (16) - 0000000000871829 [15:34:37]1040 (4) - 67676 [15:34:37]1012 (4) - 17.05.2024 09:18 [15:34:37]1206 (1) - 0 [15:34:37]OFD Sender: Remove packet 67676 [15:34:37]ProducePacketName [15:34:37]name=ofd_packets/00067676 [15:34:37]NVStorageDeleteData [15:34:37]Write to MH i2c: 01 00 00 66 25 8B [15:34:37]Write i2c OK [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: 01 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: 01 07 00 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: 01 07 00 66 25 00 00 00 00 00 D7 0C 75 [15:34:37]RasterBufferAndPrint [15:34:37]line [15:34:37]line [15:34:37]line [15:34:37]line [15:34:37]line [15:34:37]written 0, free lines is 3296 [15:34:37]MH_Cut [15:34:37]Write to MH i2c: D1 01 00 6D 25 01 64 [15:34:37]Write i2c OK [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: D1 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: D1 01 00 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: D1 01 00 6D 25 00 63 [15:34:37]Write to MH i2c: 01 00 00 6E 25 93 [15:34:37]Write i2c OK [15:34:37]MH_I2C_Read... [15:34:38]OFD Sender: No OFD packet to send [15:34:38]*** Cut start [15:34:38]*** Purtial cut [15:34:38]*** Stage 1: CUTSNS_PIN = 1 [15:34:38]Read from MH i2c: 01 [15:34:38]MH_I2C_Read... [15:34:38]*** Stop cut motor [15:34:38]*** Cut end [15:34:38]Read from MH i2c: 01 07 00 [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: 01 07 00 6E 25 00 00 00 00 00 FF 0F A8 [15:34:38]process_action close_receipt done [15:34:38]requested_data is exist [15:34:38]produce_requested_data [15:34:38]requested_item fm.sn is exist - process it [15:34:38]wFMCommunicate request_size=4 [15:34:38]MH_SAM_APDU [15:34:38]CAPDU: 80 11 00 00 [15:34:38]Write to MH i2c: E2 08 00 6F 25 80 11 00 00 00 00 00 00 0E [15:34:38]Write i2c OK [15:34:38]MH_I2C_Read... [15:34:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:38]Read from MH i2c: E2 [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: E2 17 00 [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: E2 17 00 6F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 64 [15:34: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:34:38]wFMCommunicate OK [15:34:38]requested_item fd.num is exist - process it [15:34:38]SAM_PROTO_GetFieldsCounters [15:34:38]wFMCommunicate request_size=4 [15:34:38]MH_SAM_APDU [15:34:38]CAPDU: 80 13 00 00 [15:34:38]Write to MH i2c: E2 08 00 70 25 80 13 00 00 00 00 00 00 11 [15:34:38]Write i2c OK [15:34:38]MH_I2C_Read... [15:34:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:39]Read from MH i2c: E2 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: E2 62 00 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: E2 62 00 70 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 5C 08 01 00 0E 04 04 00 66 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 02 [15:34: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 5C 08 01 00 0E 04 04 00 66 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 [15:34:39]wFMCommunicate OK [15:34:39]SAM_PROTO_GetFieldsCounters done [15:34:39]requested_item shift.num is exist - process it [15:34:39]requested_item shift.opened is exist - process it [15:34:39]req_shift_opened [15:34:39]FM_GetShiftState [15:34:39]SAM_PROTO_GetShiftState [15:34:39]wFMCommunicate request_size=4 [15:34:39]MH_SAM_APDU [15:34:39]CAPDU: 80 13 01 00 [15:34:39]Write to MH i2c: E2 08 00 71 25 80 13 01 00 00 00 00 00 13 [15:34:39]Write i2c OK [15:34:39]MH_I2C_Read... [15:34:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:39]Read from MH i2c: E2 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: E2 0E 00 [15:34:39]MH_I2C_Read... [15:34:39]Read from MH i2c: E2 0E 00 71 25 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 99 [15:34:39]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:34:39]wFMCommunicate OK [15:34:39]SAM_PROTO_GetShiftState done [15:34:39]FM_GetShiftState done [15:34:39]req_shift_opened done [15:34:39]requested_item shift.open_date is exist - process it [15:34:39]req_shift_open_date [15:34:39]req_shift_open_date done [15:34:39]produce_requested_data done [15:34:39]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67676,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [15:34:39]process_action_free close_receipt [15:34:39]json_value_free [15:34:39]json_value_free done [15:34:39]process_json_proto returns [15:34:39]Send response to host [15:34:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67676,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [15:34:39]free response buf [15:34:39]execute_script done [15:34:39]execute_script returns [15:34:39]free content buf [15:34:39]Sock 9.Close socket [15:34:39]Sock 9.Thread stoped [15:34:43]OFD Sender: No OFD packet to send [15:34:48]OFD Sender: No OFD packet to send [15:34:53]OFD Sender: No OFD packet to send [15:34:58]OFD Sender: No OFD packet to send [15:35:03]OFD Sender: No OFD packet to send [15:35:08]OFD Sender: No OFD packet to send [15:35:13]OFD Sender: No OFD packet to send [15:35:18]OFD Sender: No OFD packet to send [15:35:19]accept exits with 7 [15:35:19]New connection [15:35:19]New thread 3067395428 created [15:35:19]Thread 3067538788 joined [15:35:19]Waiting for new connection... [15:35:19] Sock 7.Parse request [15:35:19]Sock 7.Check first char [15:35:19]Sock 7.First char is OK [15:35:19]request: POST /json_proto HTTP/1.0 [15:35:19]Method: POST [15:35:19]URL: /json_proto [15:35:19]Method is POST - this is cgi request [15:35:19]url: /json_proto [15:35:19]query_string will be loaded in cgi processing [15:35:19]execute_cgi json_proto POST (null) [15:35:19]execute_cgi path=json_proto method=POST [15:35:19]POST find Content-Length [15:35:19]Host: 172.17.41.195:8080 [15:35:19]Content-Length: 800 [15:35:19]Content-Type: application/json [15:35:19] [15:35:19]POST finish read [15:35:19]Found Content-Length = 800 [15:35:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507825", "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" : 57.300, "sum" : 4280.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4280.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:19]execute_script... [15:35: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)507825", "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" : 57.300, "sum" : 4280.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4280.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:19]POST & json_proto [15:35:19]process_json_proto [15:35:19]json parsed OK: [15:35:19]protocol is kg_v1.0 [15:35:19]action value=close_receipt [15:35:19]process_action close_receipt [15:35:19]cmd_close_receipt [15:35:19]MH_GetDate [15:35:19]Write to MH i2c: F0 00 00 72 25 86 [15:35:19]Write i2c OK [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: F0 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: F0 09 00 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: F0 09 00 72 25 00 3A 79 47 66 FC 21 6F 64 DF [15:35:19]GetLastDocTimeStamp 1715960079 [15:35:19]current date 1715960122 [15:35:19]FM_GetShiftState [15:35:19]SAM_PROTO_GetShiftState [15:35:19]wFMCommunicate request_size=4 [15:35:19]MH_SAM_APDU [15:35:19]CAPDU: 80 13 01 00 [15:35:19]Write to MH i2c: E2 08 00 73 25 80 13 01 00 00 00 00 00 15 [15:35:19]Write i2c OK [15:35:19]MH_I2C_Read... [15:35:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:19]Read from MH i2c: E2 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: E2 0E 00 [15:35:19]MH_I2C_Read... [15:35:19]Read from MH i2c: E2 0E 00 73 25 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 9B [15:35:19]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:35:19]wFMCommunicate OK [15:35:19]SAM_PROTO_GetShiftState done [15:35:19]FM_GetShiftState done [15:35:19]opened in 1715905068 [15:35:19]opened+sec_in_day 1715991468 [15:35:19]quantity*price = 428031 [15:35:19]sum+1 = 428032 [15:35:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4280.31 НСП 1% : 37.88 НДС 12% : 454.55 Наличными: 0.00 Безнал.: 4280.31 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 86 17.05.2024 15:35 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67677 ФПД: 124468526654969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T153523&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67677&fm=124468526654969&tin=02508201610067®Number=0000000000091845&sum=428031 [15:35:20]StoreToDocumentArchive [15:35:20]shift 358 fd 67677 [15:35:20]save to /storage/0358/doc_00067677 [15:35:20]save last doc name /storage/0358/doc_00067677 to /storage/kkm_last_doc_name [15:35:20]save OK [15:35:20]Clear old archive folders... [15:35:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:35:20]tlvbuf is 01623680 [15:35:20]SAM_PROTO_ClearQueue [15:35:20]wFMCommunicate request_size=4 [15:35:20]MH_SAM_APDU [15:35:20]CAPDU: 80 09 00 00 [15:35:20]Write to MH i2c: E2 08 00 80 25 80 09 00 00 00 00 00 00 17 [15:35:20]Write i2c OK [15:35:20]MH_I2C_Read... [15:35:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:20]Read from MH i2c: E2 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 03 00 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 03 00 80 25 00 90 00 19 [15:35:20]RAPDU: 90 00 [15:35:20]wFMCommunicate OK [15:35:20]SAM_PROTO_ClearQueue done [15:35:20]KKMCreateOFDPacket [15:35:20]OFDProtocolAddRootSTLVToBuf [15:35:20]FM_MakeSignedData [15:35:20]FM_MakeSignedData [15:35:20]SAM_PROTO_SignData [15:35:20]wFMCommunicate request_size=4 [15:35:20]MH_SAM_APDU [15:35:20]CAPDU: 80 0D 01 02 [15:35:20]Write to MH i2c: E2 08 00 81 25 80 0D 01 02 00 00 00 00 1F [15:35:20]Write i2c OK [15:35:20]MH_I2C_Read... [15:35:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:20]Read from MH i2c: E2 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 03 00 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 03 00 81 25 00 90 00 1A [15:35:20]RAPDU: 90 00 [15:35:20]wFMCommunicate OK [15:35:20]wFMCommunicate request_size=255 [15:35:20]MH_SAM_APDU [15:35: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 D4 DF 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 FF 87 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FF 87 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F B1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FF 87 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 3B 79 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5D 08 01 00 35 04 06 00 71 34 16 51 [15:35:20]Write to MH i2c: E2 02 01 82 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 DF 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 FF 87 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FF 87 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F B1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FF 87 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 3B 79 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5D 08 01 00 35 04 06 00 71 34 16 51 00 00 CD [15:35:20]Write i2c OK [15:35:20]MH_I2C_Read... [15:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:20]Read from MH i2c: E2 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 03 00 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 03 00 82 25 00 90 00 1B [15:35:20]RAPDU: 90 00 [15:35:20]wFMCommunicate OK [15:35:20]wFMCommunicate request_size=7 [15:35:20]MH_SAM_APDU [15:35:20]CAPDU: 80 0D 02 02 02 25 F9 [15:35:20]Write to MH i2c: E2 0A 00 83 25 80 0D 02 02 02 00 25 F9 00 00 44 [15:35:20]Write i2c OK [15:35:20]MH_I2C_Read... [15:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:20]Read from MH i2c: E2 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 03 00 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 03 00 83 25 00 90 00 1C [15:35:20]RAPDU: 90 00 [15:35:20]wFMCommunicate OK [15:35:20]wFMCommunicate request_size=4 [15:35:20]MH_SAM_APDU [15:35:20]CAPDU: 80 0D 03 02 [15:35:20]Write to MH i2c: E2 08 00 84 25 80 0D 03 02 00 00 00 00 24 [15:35:20]Write i2c OK [15:35:20]MH_I2C_Read... [15:35:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:20]Read from MH i2c: E2 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 0B 00 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 0B 00 84 25 00 6C 83 6E EA 0D 92 4E F6 90 00 4F [15:35:20]RAPDU: 6C 83 6E EA 0D 92 4E F6 90 00 [15:35:20]wFMCommunicate OK [15:35:20]SAM_PROTO_SignData done [15:35:20]FM_MakeSignedData done [15:35:20]CreateOFDProtocolMessage [15:35:20]wFMCommunicate request_size=4 [15:35:20]MH_SAM_APDU [15:35:20]CAPDU: 80 11 00 00 [15:35:20]Write to MH i2c: E2 08 00 85 25 80 11 00 00 00 00 00 00 24 [15:35:20]Write i2c OK [15:35:20]MH_I2C_Read... [15:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:20]Read from MH i2c: E2 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 17 00 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: E2 17 00 85 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7A [15:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:35:20]wFMCommunicate OK [15:35:20]CreateOFDProtocolMessage done [15:35:20]OFDSenderStorePacket 67677 [15:35:20]StoreOFDPacket docnum=67677 [15:35: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 21 2F 04 01 6C 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 DF 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 FF 87 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FF 87 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F B1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FF 87 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 3B 79 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5D 08 01 00 35 04 06 00 71 34 16 51 25 F9 6C 83 6E EA 0D 92 4E F6 [15:35:20]CheckFolder [15:35:20]dirname=/storage/ofd_packets [15:35:20]CheckFolder done [15:35:20]ProducePacketName [15:35:20]name=ofd_packets/00067677 [15:35:20]NVStorageSaveData ofd_packets/00067677 [15:35:20]File name is /storage/ofd_packets/00067677 [15:35:20]Write 298 bytes [15:35:20]NVStorageSaveData done [15:35:20]OFDSenderStorePacket done [15:35:20]KKMCreateOFDPacket done [15:35:20]NVStorageSaveData kkm_last_timestamp [15:35:20]File name is /storage/kkm_last_timestamp [15:35:20]Write 4 bytes [15:35:20]NVStorageSaveData done [15:35:20]ExternCall_PrintAddStr [15:35:20]wPrintStart [15:35:20]Write to MH i2c: 01 00 00 86 25 AB [15:35:20]Write i2c OK [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: 01 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: 01 07 00 [15:35:20]MH_I2C_Read... [15:35:20]Read from MH i2c: 01 07 00 86 25 00 00 00 00 00 FF 0F C0 [15:35:20]RasterBufferAndPrint [15:35:20]line Счет N : (1)507825 [15:35:20]line ИНН: 02508201610067 [15:35:20]line Контрольно-Кассовый Чек [15:35:20]line ПРОДАЖА [15:35:20]line ТРК (МРК, ГНК) : 31 [15:35:20]line Товар: 2710194210 [15:35:20]line ДТ-К-5 [15:35:20]line 57.300 * 74.70 [15:35:20]line = 4280.31 [15:35:20]line НДС 12% НСП 1% [15:35:20]line > о реализуемом товаре [15:35:20]line ИТОГО: 4280.31 [15:35:20]line НСП 1% : 37.88 [15:35:20]line НДС 12% : 454.55 [15:35:20]line Наличными: 0.00 [15:35:20]line Безнал.: 4280.31 [15:35:20]line Место: АЗС № 91 "Партнер Нефть" [15:35:20]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:35:20]line СНО: Общий режим [15:35:20]line Чек 86 17.05.2024 15:35 [15:35:20]line Смена: 358 ФФД: 1.0 [15:35:20]line ЗНМ: 0300000119 [15:35:20]line РНМ: 0000000000091845 [15:35:20]line Версия ККМ: 001 [15:35:20]line Платежная система: O! деньги [15:35:20]line ФМ: 0000000000871829 [15:35:20]line ФД: 67677 [15:35:20]line ФПД: 124468526654969 [15:35:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T153523&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67677&fm=124468526654969&tin=02508201610067®Number=0000000000091845&sum=428031 [15:35:21]OFD Sender: Processing packet 67677 [packets to send 35, broken 34] [15:35:21]ProducePacketName [15:35:21]name=ofd_packets/00067677 [15:35:21]OFD Sender: To server: pG, [15:35:21]CommunicateWithHost lk.salyk.kg:30040 [15:35:21]ConnectInit lk.salyk.kg [15:35:21]written 0, free lines is 4095 [15:35:21]Connected sock=10 [15:35: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 21 2F 04 01 6C 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 DF 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 FF 87 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FF 87 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F B1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FF 87 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 3B 79 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5D 08 01 00 35 04 06 00 71 34 16 51 25 F9 6C 83 6E EA 0D 92 4E F6 [15:35: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 C9 DA 47 00 51 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 5D 08 01 00 F4 03 04 00 12 21 47 66 B6 04 01 00 00 ED D7 63 89 59 DC AF 6B [15:35:21]CommunicateWithHost err = 0 [15:35:21]CheckOFDResponse [15:35:21]1017 (14) - 77093643461234 [15:35:21]1041 (16) - 0000000000871829 [15:35:21]1040 (4) - 67677 [15:35:21]1012 (4) - 17.05.2024 09:19 [15:35:21]1206 (1) - 0 [15:35:21]OFD Sender: Remove packet 67677 [15:35:21]ProducePacketName [15:35:21]name=ofd_packets/00067677 [15:35:21]NVStorageDeleteData [15:35:21]Write to MH i2c: 01 00 00 AF 25 D4 [15:35:21]Write i2c OK [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: 01 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: 01 07 00 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: 01 07 00 AF 25 00 00 00 00 00 E6 0C CD [15:35:21]RasterBufferAndPrint [15:35:21]line [15:35:21]line [15:35:21]line [15:35:21]line [15:35:21]line [15:35:21]written 0, free lines is 3308 [15:35:21]MH_Cut [15:35:21]Write to MH i2c: D1 01 00 B6 25 01 AD [15:35:21]Write i2c OK [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: D1 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: D1 01 00 [15:35:21]MH_I2C_Read... [15:35:21]Read from MH i2c: D1 01 00 B6 25 00 AC [15:35:21]Write to MH i2c: 01 00 00 B7 25 DC [15:35:21]Write i2c OK [15:35:21]MH_I2C_Read... [15:35:21]OFD Sender: No OFD packet to send [15:35:22]*** Cut start [15:35:22]*** Purtial cut [15:35:22]*** CUTSNS_PIN = 0 [15:35:22]*** Stage 1: CUTSNS_PIN = 1 [15:35:24]Read from MH i2c: 01 [15:35:24]MH_I2C_Read... [15:35:24]*** Stop cut motor [15:35:24]*** Cut end [15:35:24]Read from MH i2c: 01 07 00 [15:35:24]MH_I2C_Read... [15:35:24]Read from MH i2c: 01 07 00 B7 25 00 00 00 00 00 FF 0F F1 [15:35:24]process_action close_receipt done [15:35:24]requested_data is exist [15:35:24]produce_requested_data [15:35:24]requested_item fm.sn is exist - process it [15:35:24]wFMCommunicate request_size=4 [15:35:24]MH_SAM_APDU [15:35:24]CAPDU: 80 11 00 00 [15:35:24]Write to MH i2c: E2 08 00 B8 25 80 11 00 00 00 00 00 00 57 [15:35:24]Write i2c OK [15:35:24]MH_I2C_Read... [15:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:24]Read from MH i2c: E2 [15:35:24]MH_I2C_Read... [15:35:24]Read from MH i2c: E2 17 00 [15:35:24]MH_I2C_Read... [15:35:24]Read from MH i2c: E2 17 00 B8 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AD [15: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 [15:35:24]wFMCommunicate OK [15:35:24]requested_item fd.num is exist - process it [15:35:24]SAM_PROTO_GetFieldsCounters [15:35:24]wFMCommunicate request_size=4 [15:35:24]MH_SAM_APDU [15:35:24]CAPDU: 80 13 00 00 [15:35:24]Write to MH i2c: E2 08 00 B9 25 80 13 00 00 00 00 00 00 5A [15:35:24]Write i2c OK [15:35:24]MH_I2C_Read... [15:35:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:24]Read from MH i2c: E2 [15:35:24]MH_I2C_Read... [15:35:24]Read from MH i2c: E2 62 00 [15:35:24]MH_I2C_Read... [15:35:24]Read from MH i2c: E2 62 00 B9 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 5D 08 01 00 0E 04 04 00 66 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 4F [15:35: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 5D 08 01 00 0E 04 04 00 66 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 [15:35:24]wFMCommunicate OK [15:35:24]SAM_PROTO_GetFieldsCounters done [15:35:24]requested_item shift.num is exist - process it [15:35:24]requested_item shift.opened is exist - process it [15:35:24]req_shift_opened [15:35:24]FM_GetShiftState [15:35:24]SAM_PROTO_GetShiftState [15:35:24]wFMCommunicate request_size=4 [15:35:24]MH_SAM_APDU [15:35:24]CAPDU: 80 13 01 00 [15:35:24]Write to MH i2c: E2 08 00 BA 25 80 13 01 00 00 00 00 00 5C [15:35:24]Write i2c OK [15:35:24]MH_I2C_Read... [15:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:24]Read from MH i2c: E2 [15:35:24]MH_I2C_Read... [15:35:24]Read from MH i2c: E2 0E 00 [15:35:24]MH_I2C_Read... [15:35:24]Read from MH i2c: E2 0E 00 BA 25 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 E2 [15:35:24]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:35:24]wFMCommunicate OK [15:35:24]SAM_PROTO_GetShiftState done [15:35:24]FM_GetShiftState done [15:35:24]req_shift_opened done [15:35:24]requested_item shift.open_date is exist - process it [15:35:24]req_shift_open_date [15:35:24]req_shift_open_date done [15:35:24]produce_requested_data done [15:35:24]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67677,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [15:35:24]process_action_free close_receipt [15:35:24]json_value_free [15:35:24]json_value_free done [15:35:24]process_json_proto returns [15:35:24]Send response to host [15:35:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67677,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [15:35:24]free response buf [15:35:24]execute_script done [15:35:24]execute_script returns [15:35:24]free content buf [15:35:24]Sock 7.Close socket [15:35:24]Sock 7.Thread stoped [15:35:26]OFD Sender: No OFD packet to send [15:35:30]accept exits with 9 [15:35:30]New connection [15:35:30]New thread 3067538788 created [15:35:30]Thread 3067395428 joined [15:35:30]Waiting for new connection... [15:35:30] Sock 9.Parse request [15:35:30]Sock 9.Check first char [15:35:30]Sock 9.First char is OK [15:35:30]request: POST /json_proto HTTP/1.0 [15:35:30]Method: POST [15:35:30]URL: /json_proto [15:35:30]Method is POST - this is cgi request [15:35:30]url: /json_proto [15:35:30]query_string will be loaded in cgi processing [15:35:30]execute_cgi json_proto POST (null) [15:35:30]execute_cgi path=json_proto method=POST [15:35:30]POST find Content-Length [15:35:30]Host: 172.17.41.195:8080 [15:35:30]Content-Length: 796 [15:35:30]Content-Type: application/json [15:35:30] [15:35:30]POST finish read [15:35:30]Found Content-Length = 796 [15:35:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507827", "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" ] } } [15:35:30]execute_script... [15:35: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)507827", "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" ] } } [15:35:30]POST & json_proto [15:35:30]process_json_proto [15:35:30]json parsed OK: [15:35:30]protocol is kg_v1.0 [15:35:30]action value=close_receipt [15:35:30]process_action close_receipt [15:35:30]cmd_close_receipt [15:35:30]MH_GetDate [15:35:30]Write to MH i2c: F0 00 00 BB 25 CF [15:35:30]Write i2c OK [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: F0 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: F0 09 00 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: F0 09 00 BB 25 00 46 79 47 66 FC 21 6F 64 34 [15:35:30]GetLastDocTimeStamp 1715960123 [15:35:30]current date 1715960134 [15:35:30]FM_GetShiftState [15:35:30]SAM_PROTO_GetShiftState [15:35:30]wFMCommunicate request_size=4 [15:35:30]MH_SAM_APDU [15:35:30]CAPDU: 80 13 01 00 [15:35:30]Write to MH i2c: E2 08 00 BC 25 80 13 01 00 00 00 00 00 5E [15:35:30]Write i2c OK [15:35:30]MH_I2C_Read... [15:35:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:30]Read from MH i2c: E2 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 0E 00 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 0E 00 BC 25 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 E4 [15:35:30]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:35:30]wFMCommunicate OK [15:35:30]SAM_PROTO_GetShiftState done [15:35:30]FM_GetShiftState done [15:35:30]opened in 1715905068 [15:35:30]opened+sec_in_day 1715991468 [15:35:30]quantity*price = 100005 [15:35:30]sum+1 = 100006 [15:35: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 СНО: Общий режим Чек 87 17.05.2024 15:35 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67678 ФПД: 8527302538996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T153534&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67678&fm=8527302538996&tin=02508201610067®Number=0000000000091845&sum=100005 [15:35:31]StoreToDocumentArchive [15:35:31]shift 358 fd 67678 [15:35:31]save to /storage/0358/doc_00067678 [15:35:31]save last doc name /storage/0358/doc_00067678 to /storage/kkm_last_doc_name [15:35:31]save OK [15:35:31]Clear old archive folders... [15:35:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:35:31]tlvbuf is 015BE3A0 [15:35:31]SAM_PROTO_ClearQueue [15:35:31]wFMCommunicate request_size=4 [15:35:31]MH_SAM_APDU [15:35:31]CAPDU: 80 09 00 00 [15:35:31]Write to MH i2c: E2 08 00 C9 25 80 09 00 00 00 00 00 00 60 [15:35:31]Write i2c OK [15:35:31]MH_I2C_Read... [15:35:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:31]Read from MH i2c: E2 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: E2 03 00 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: E2 03 00 C9 25 00 90 00 62 [15:35:31]RAPDU: 90 00 [15:35:31]wFMCommunicate OK [15:35:31]SAM_PROTO_ClearQueue done [15:35:31]KKMCreateOFDPacket [15:35:31]OFDProtocolAddRootSTLVToBuf [15:35:31]FM_MakeSignedData [15:35:31]FM_MakeSignedData [15:35:31]SAM_PROTO_SignData [15:35:31]wFMCommunicate request_size=4 [15:35:31]MH_SAM_APDU [15:35:31]CAPDU: 80 0D 01 02 [15:35:31]Write to MH i2c: E2 08 00 CA 25 80 0D 01 02 00 00 00 00 68 [15:35:31]Write i2c OK [15:35:31]MH_I2C_Read... [15:35:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:31]Read from MH i2c: E2 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: E2 03 00 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: E2 03 00 CA 25 00 90 00 63 [15:35:31]RAPDU: 90 00 [15:35:31]wFMCommunicate OK [15:35:31]wFMCommunicate request_size=255 [15:35:31]MH_SAM_APDU [15:35: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 57 00 00 00 F4 03 04 00 46 79 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5E 08 01 00 35 04 06 00 [15:35:31]Write to MH i2c: E2 02 01 CB 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 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 57 00 00 00 F4 03 04 00 46 79 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5E 08 01 00 35 04 06 00 00 00 40 [15:35:31]Write i2c OK [15:35:31]MH_I2C_Read... [15:35:31]OFD Sender: No OFD packet to send [15:35:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:32]Read from MH i2c: E2 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 03 00 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 03 00 CB 25 00 90 00 64 [15:35:32]RAPDU: 90 00 [15:35:32]wFMCommunicate OK [15:35:32]wFMCommunicate request_size=11 [15:35:32]MH_SAM_APDU [15:35:32]CAPDU: 80 0D 02 02 06 07 C1 6A D6 B6 F4 [15:35:32]Write to MH i2c: E2 0E 00 CC 25 80 0D 02 02 06 00 07 C1 6A D6 B6 F4 00 00 29 [15:35:32]Write i2c OK [15:35:32]MH_I2C_Read... [15:35:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:32]Read from MH i2c: E2 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 03 00 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 03 00 CC 25 00 90 00 65 [15:35:32]RAPDU: 90 00 [15:35:32]wFMCommunicate OK [15:35:32]wFMCommunicate request_size=4 [15:35:32]MH_SAM_APDU [15:35:32]CAPDU: 80 0D 03 02 [15:35:32]Write to MH i2c: E2 08 00 CD 25 80 0D 03 02 00 00 00 00 6D [15:35:32]Write i2c OK [15:35:32]MH_I2C_Read... [15:35:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:32]Read from MH i2c: E2 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 0B 00 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 0B 00 CD 25 00 73 0E 6B 04 2A 9B 62 BF 90 00 44 [15:35:32]RAPDU: 73 0E 6B 04 2A 9B 62 BF 90 00 [15:35:32]wFMCommunicate OK [15:35:32]SAM_PROTO_SignData done [15:35:32]FM_MakeSignedData done [15:35:32]CreateOFDProtocolMessage [15:35:32]wFMCommunicate request_size=4 [15:35:32]MH_SAM_APDU [15:35:32]CAPDU: 80 11 00 00 [15:35:32]Write to MH i2c: E2 08 00 CE 25 80 11 00 00 00 00 00 00 6D [15:35:32]Write i2c OK [15:35:32]MH_I2C_Read... [15:35:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:32]Read from MH i2c: E2 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 17 00 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: E2 17 00 CE 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C3 [15: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 [15:35:32]wFMCommunicate OK [15:35:32]CreateOFDProtocolMessage done [15:35:32]OFDSenderStorePacket 67678 [15:35:32]StoreOFDPacket docnum=67678 [15:35: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 10 01 00 00 64 97 08 01 4B 7E 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 57 00 00 00 F4 03 04 00 46 79 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5E 08 01 00 35 04 06 00 07 C1 6A D6 B6 F4 73 0E 6B 04 2A 9B 62 BF [15:35:32]CheckFolder [15:35:32]dirname=/storage/ofd_packets [15:35:32]CheckFolder done [15:35:32]ProducePacketName [15:35:32]name=ofd_packets/00067678 [15:35:32]NVStorageSaveData ofd_packets/00067678 [15:35:32]File name is /storage/ofd_packets/00067678 [15:35:32]Write 302 bytes [15:35:32]NVStorageSaveData done [15:35:32]OFDSenderStorePacket done [15:35:32]KKMCreateOFDPacket done [15:35:32]NVStorageSaveData kkm_last_timestamp [15:35:32]File name is /storage/kkm_last_timestamp [15:35:32]Write 4 bytes [15:35:32]NVStorageSaveData done [15:35:32]ExternCall_PrintAddStr [15:35:32]wPrintStart [15:35:32]Write to MH i2c: 01 00 00 CF 25 F4 [15:35:32]Write i2c OK [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: 01 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: 01 07 00 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: 01 07 00 CF 25 00 00 00 00 00 FF 0F 09 [15:35:32]RasterBufferAndPrint [15:35:32]line Счет N : (1)507827 [15:35:32]line ИНН: 02508201610067 [15:35:32]line Контрольно-Кассовый Чек [15:35:32]line ПРОДАЖА [15:35:32]line ТРК (МРК, ГНК) : 42 [15:35:32]line Товар: 2710124130 [15:35:32]line Super-92-К-5 [15:35:32]line 14.750 * 67.80 [15:35:32]line = 1000.05 [15:35:32]line НДС 12% НСП 1% [15:35:32]line > о реализуемом товаре [15:35:32]line ИТОГО: 1000.05 [15:35:32]line НСП 1% : 8.85 [15:35:32]line НДС 12% : 106.20 [15:35:32]line Наличными: 0.00 [15:35:32]line Безнал.: 1000.05 [15:35:32]line Место: АЗС № 91 "Партнер Нефть" [15:35:32]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:35:32]line СНО: Общий режим [15:35:32]line Чек 87 17.05.2024 15:35 [15:35:32]line Смена: 358 ФФД: 1.0 [15:35:32]line ЗНМ: 0300000119 [15:35:32]line РНМ: 0000000000091845 [15:35:32]line Версия ККМ: 001 [15:35:32]line Платежная система: O! деньги [15:35:32]line ФМ: 0000000000871829 [15:35:32]line ФД: 67678 [15:35:32]line ФПД: 8527302538996 [15:35:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T153534&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67678&fm=8527302538996&tin=02508201610067®Number=0000000000091845&sum=100005 [15:35:32]written 0, free lines is 4095 [15:35:32]OFD Sender: Processing packet 67678 [packets to send 35, broken 34] [15:35:32]ProducePacketName [15:35:32]name=ofd_packets/00067678 [15:35:32]OFD Sender: To server: pG, [15:35:32]CommunicateWithHost lk.salyk.kg:30040 [15:35:32]ConnectInit lk.salyk.kg [15:35:32]Connected sock=11 [15:35: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 64 97 08 01 4B 7E 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 57 00 00 00 F4 03 04 00 46 79 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5E 08 01 00 35 04 06 00 07 C1 6A D6 B6 F4 73 0E 6B 04 2A 9B 62 BF [15:35: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 D1 43 47 00 DE 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 5E 08 01 00 F4 03 04 00 1D 21 47 66 B6 04 01 00 00 CB 69 49 58 94 03 A0 96 [15:35:32]CommunicateWithHost err = 0 [15:35:32]CheckOFDResponse [15:35:32]1017 (14) - 77093643461234 [15:35:32]1041 (16) - 0000000000871829 [15:35:32]1040 (4) - 67678 [15:35:32]1012 (4) - 17.05.2024 09:19 [15:35:32]1206 (1) - 0 [15:35:32]OFD Sender: Remove packet 67678 [15:35:32]ProducePacketName [15:35:32]name=ofd_packets/00067678 [15:35:32]NVStorageDeleteData [15:35:32]Write to MH i2c: 01 00 00 F8 25 1D [15:35:32]Write i2c OK [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: 01 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: 01 07 00 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: 01 07 00 F8 25 00 00 00 00 00 E5 0C 15 [15:35:32]RasterBufferAndPrint [15:35:32]line [15:35:32]line [15:35:32]line [15:35:32]line [15:35:32]line [15:35:32]written 0, free lines is 3309 [15:35:32]MH_Cut [15:35:32]Write to MH i2c: D1 01 00 FF 25 01 F6 [15:35:32]Write i2c OK [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: D1 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: D1 01 00 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: D1 01 00 FF 25 00 F5 [15:35:32]Write to MH i2c: 01 00 00 00 26 26 [15:35:32]Write i2c OK [15:35:32]MH_I2C_Read... [15:35:33]OFD Sender: No OFD packet to send [15:35:33]*** Cut start [15:35:33]*** Purtial cut [15:35:33]*** Stage 1: CUTSNS_PIN = 1 [15:35:33]Read from MH i2c: 01 [15:35:33]MH_I2C_Read... [15:35:33]*** Stop cut motor [15:35:33]*** Cut end [15:35:33]Read from MH i2c: 01 07 00 [15:35:33]MH_I2C_Read... [15:35:33]Read from MH i2c: 01 07 00 00 26 00 00 00 00 00 FF 0F 3B [15:35:33]process_action close_receipt done [15:35:33]requested_data is exist [15:35:33]produce_requested_data [15:35:33]requested_item fm.sn is exist - process it [15:35:33]wFMCommunicate request_size=4 [15:35:33]MH_SAM_APDU [15:35:33]CAPDU: 80 11 00 00 [15:35:33]Write to MH i2c: E2 08 00 01 26 80 11 00 00 00 00 00 00 A1 [15:35:33]Write i2c OK [15:35:33]MH_I2C_Read... [15:35:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:33]Read from MH i2c: E2 [15:35:33]MH_I2C_Read... [15:35:33]Read from MH i2c: E2 17 00 [15:35:33]MH_I2C_Read... [15:35:33]Read from MH i2c: E2 17 00 01 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F7 [15:35:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:35:33]wFMCommunicate OK [15:35:33]requested_item fd.num is exist - process it [15:35:33]SAM_PROTO_GetFieldsCounters [15:35:33]wFMCommunicate request_size=4 [15:35:33]MH_SAM_APDU [15:35:33]CAPDU: 80 13 00 00 [15:35:33]Write to MH i2c: E2 08 00 02 26 80 13 00 00 00 00 00 00 A4 [15:35:33]Write i2c OK [15:35:33]MH_I2C_Read... [15:35:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:34]Read from MH i2c: E2 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: E2 62 00 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: E2 62 00 02 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 5E 08 01 00 0E 04 04 00 66 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 9D [15:35: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 5E 08 01 00 0E 04 04 00 66 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 [15:35:34]wFMCommunicate OK [15:35:34]SAM_PROTO_GetFieldsCounters done [15:35:34]requested_item shift.num is exist - process it [15:35:34]requested_item shift.opened is exist - process it [15:35:34]req_shift_opened [15:35:34]FM_GetShiftState [15:35:34]SAM_PROTO_GetShiftState [15:35:34]wFMCommunicate request_size=4 [15:35:34]MH_SAM_APDU [15:35:34]CAPDU: 80 13 01 00 [15:35:34]Write to MH i2c: E2 08 00 03 26 80 13 01 00 00 00 00 00 A6 [15:35:34]Write i2c OK [15:35:34]MH_I2C_Read... [15:35:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:34]Read from MH i2c: E2 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: E2 0E 00 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: E2 0E 00 03 26 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 2C [15:35:34]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:35:34]wFMCommunicate OK [15:35:34]SAM_PROTO_GetShiftState done [15:35:34]FM_GetShiftState done [15:35:34]req_shift_opened done [15:35:34]requested_item shift.open_date is exist - process it [15:35:34]req_shift_open_date [15:35:34]req_shift_open_date done [15:35:34]produce_requested_data done [15:35:34]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67678,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [15:35:34]process_action_free close_receipt [15:35:34]json_value_free [15:35:34]json_value_free done [15:35:34]process_json_proto returns [15:35:34]Send response to host [15:35:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67678,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [15:35:34]free response buf [15:35:34]execute_script done [15:35:34]execute_script returns [15:35:34]free content buf [15:35:34]Sock 9.Close socket [15:35:34]Sock 9.Thread stoped [15:35:38]OFD Sender: No OFD packet to send [15:35:43]OFD Sender: No OFD packet to send [15:35:48]OFD Sender: No OFD packet to send [15:35:53]OFD Sender: No OFD packet to send [15:35:56]accept exits with 7 [15:35:56]New connection [15:35:56]New thread 3067395428 created [15:35:56]Thread 3067538788 joined [15:35:56]Waiting for new connection... [15:35:56] Sock 7.Parse request [15:35:56]Sock 7.Check first char [15:35:56]Sock 7.First char is OK [15:35:56]request: POST /json_proto HTTP/1.0 [15:35:56]Method: POST [15:35:56]URL: /json_proto [15:35:56]Method is POST - this is cgi request [15:35:56]url: /json_proto [15:35:56]query_string will be loaded in cgi processing [15:35:56]execute_cgi json_proto POST (null) [15:35:56]execute_cgi path=json_proto method=POST [15:35:56]POST find Content-Length [15:35:56]Host: 172.17.41.195:8080 [15:35:56]Content-Length: 803 [15:35:56]Content-Type: application/json [15:35:56] [15:35:56]POST finish read [15:35:56]Found Content-Length = 803 [15:35:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:56]execute_script... [15: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)507828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:56]POST & json_proto [15:35:56]process_json_proto [15:35:56]json parsed OK: [15:35:56]protocol is kg_v1.0 [15:35:56]action value=close_receipt [15:35:56]process_action close_receipt [15:35:56]cmd_close_receipt [15:35:56]MH_GetDate [15:35:56]Write to MH i2c: F0 00 00 04 26 19 [15:35:56]Write i2c OK [15:35:56]MH_I2C_Read... [15:35:56]Read from MH i2c: F0 [15:35:56]MH_I2C_Read... [15:35:56]Read from MH i2c: F0 09 00 [15:35:56]MH_I2C_Read... [15:35:56]Read from MH i2c: F0 09 00 04 26 00 60 79 47 66 FC 21 6F 64 98 [15:35:56]GetLastDocTimeStamp 1715960134 [15:35:56]current date 1715960160 [15:35:56]FM_GetShiftState [15:35:56]SAM_PROTO_GetShiftState [15:35:56]wFMCommunicate request_size=4 [15:35:56]MH_SAM_APDU [15:35:56]CAPDU: 80 13 01 00 [15:35:56]Write to MH i2c: E2 08 00 05 26 80 13 01 00 00 00 00 00 A8 [15:35:56]Write i2c OK [15:35:56]MH_I2C_Read... [15:35:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:56]Read from MH i2c: E2 [15:35:56]MH_I2C_Read... [15:35:56]Read from MH i2c: E2 0E 00 [15:35:56]MH_I2C_Read... [15:35:56]Read from MH i2c: E2 0E 00 05 26 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 2E [15:35:56]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:35:56]wFMCommunicate OK [15:35:56]SAM_PROTO_GetShiftState done [15:35:56]FM_GetShiftState done [15:35:56]opened in 1715905068 [15:35:56]opened+sec_in_day 1715991468 [15:35:56]quantity*price = 100066 [15:35:56]sum+1 = 100067 [15: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 СНО: Общий режим Чек 88 17.05.2024 15:36 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67679 ФПД: 134835119140390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T153600&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67679&fm=134835119140390&tin=02508201610067®Number=0000000000091845&sum=100066 [15:35:57]StoreToDocumentArchive [15:35:57]shift 358 fd 67679 [15:35:57]save to /storage/0358/doc_00067679 [15:35:57]save last doc name /storage/0358/doc_00067679 to /storage/kkm_last_doc_name [15:35:57]save OK [15:35:57]Clear old archive folders... [15:35:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:57]tlvbuf is B6F69BC0 [15:35:57]SAM_PROTO_ClearQueue [15:35:57]wFMCommunicate request_size=4 [15:35:57]MH_SAM_APDU [15:35:57]CAPDU: 80 09 00 00 [15:35:57]Write to MH i2c: E2 08 00 12 26 80 09 00 00 00 00 00 00 AA [15:35:57]Write i2c OK [15:35:57]MH_I2C_Read... [15:35:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:57]Read from MH i2c: E2 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 03 00 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 03 00 12 26 00 90 00 AC [15:35:57]RAPDU: 90 00 [15:35:57]wFMCommunicate OK [15:35:57]SAM_PROTO_ClearQueue done [15:35:57]KKMCreateOFDPacket [15:35:57]OFDProtocolAddRootSTLVToBuf [15:35:57]FM_MakeSignedData [15:35:57]FM_MakeSignedData [15:35:57]SAM_PROTO_SignData [15:35:57]wFMCommunicate request_size=4 [15:35:57]MH_SAM_APDU [15:35:57]CAPDU: 80 0D 01 02 [15:35:57]Write to MH i2c: E2 08 00 13 26 80 0D 01 02 00 00 00 00 B2 [15:35:57]Write i2c OK [15:35:57]MH_I2C_Read... [15:35:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:57]Read from MH i2c: E2 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 03 00 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 03 00 13 26 00 90 00 AD [15:35:57]RAPDU: 90 00 [15:35:57]wFMCommunicate OK [15:35:57]wFMCommunicate request_size=255 [15:35:57]MH_SAM_APDU [15: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 58 00 00 00 F4 03 04 00 60 79 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5F 08 01 00 35 04 06 00 7A [15:35:57]Write to MH i2c: E2 02 01 14 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 58 00 00 00 F4 03 04 00 60 79 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5F 08 01 00 35 04 06 00 7A 00 00 36 [15:35:57]Write i2c OK [15:35:57]MH_I2C_Read... [15:35:58]OFD Sender: No OFD packet to send [15:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:58]Read from MH i2c: E2 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 03 00 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 03 00 14 26 00 90 00 AE [15:35:58]RAPDU: 90 00 [15:35:58]wFMCommunicate OK [15:35:58]wFMCommunicate request_size=10 [15:35:58]MH_SAM_APDU [15:35:58]CAPDU: 80 0D 02 02 05 A1 BF 61 2E 26 [15:35:58]Write to MH i2c: E2 0D 00 15 26 80 0D 02 02 05 00 A1 BF 61 2E 26 00 00 D4 [15:35:58]Write i2c OK [15:35:58]MH_I2C_Read... [15:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:58]Read from MH i2c: E2 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 03 00 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 03 00 15 26 00 90 00 AF [15:35:58]RAPDU: 90 00 [15:35:58]wFMCommunicate OK [15:35:58]wFMCommunicate request_size=4 [15:35:58]MH_SAM_APDU [15:35:58]CAPDU: 80 0D 03 02 [15:35:58]Write to MH i2c: E2 08 00 16 26 80 0D 03 02 00 00 00 00 B7 [15:35:58]Write i2c OK [15:35:58]MH_I2C_Read... [15:35:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:58]Read from MH i2c: E2 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 0B 00 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 0B 00 16 26 00 7A 65 0C 83 78 FF 68 77 90 00 7C [15:35:58]RAPDU: 7A 65 0C 83 78 FF 68 77 90 00 [15:35:58]wFMCommunicate OK [15:35:58]SAM_PROTO_SignData done [15:35:58]FM_MakeSignedData done [15:35:58]CreateOFDProtocolMessage [15:35:58]wFMCommunicate request_size=4 [15:35:58]MH_SAM_APDU [15:35:58]CAPDU: 80 11 00 00 [15:35:58]Write to MH i2c: E2 08 00 17 26 80 11 00 00 00 00 00 00 B7 [15:35:58]Write i2c OK [15:35:58]MH_I2C_Read... [15:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:58]Read from MH i2c: E2 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 17 00 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 17 00 17 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0D [15: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 [15:35:58]wFMCommunicate OK [15:35:58]CreateOFDProtocolMessage done [15:35:58]OFDSenderStorePacket 67679 [15:35:58]StoreOFDPacket docnum=67679 [15: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 F6 01 07 01 F6 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 60 79 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5F 08 01 00 35 04 06 00 7A A1 BF 61 2E 26 7A 65 0C 83 78 FF 68 77 [15:35:58]CheckFolder [15:35:58]dirname=/storage/ofd_packets [15:35:58]CheckFolder done [15:35:58]ProducePacketName [15:35:58]name=ofd_packets/00067679 [15:35:58]NVStorageSaveData ofd_packets/00067679 [15:35:58]File name is /storage/ofd_packets/00067679 [15:35:58]Write 301 bytes [15:35:58]NVStorageSaveData done [15:35:58]OFDSenderStorePacket done [15:35:58]KKMCreateOFDPacket done [15:35:58]NVStorageSaveData kkm_last_timestamp [15:35:58]File name is /storage/kkm_last_timestamp [15:35:58]Write 4 bytes [15:35:58]NVStorageSaveData done [15:35:58]ExternCall_PrintAddStr [15:35:58]wPrintStart [15:35:58]Write to MH i2c: 01 00 00 18 26 3E [15:35:58]Write i2c OK [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: 01 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: 01 07 00 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: 01 07 00 18 26 00 00 00 00 00 FF 0F 53 [15:35:58]RasterBufferAndPrint [15:35:58]line Счет N : (1)507828 [15:35:58]line ИНН: 02508201610067 [15:35:58]line Контрольно-Кассовый Чек [15:35:58]line ПРОДАЖА [15:35:58]line ТРК (МРК, ГНК) : 23 [15:35:58]line Товар: 2710124130 [15:35:58]line Аи-92-К-5 [15:35:58]line 14.980 * 66.80 [15:35:58]line = 1000.66 [15:35:58]line НДС 12% НСП 1% [15:35:58]line > о реализуемом товаре [15:35:58]line ИТОГО: 1000.66 [15:35:58]line НСП 1% : 8.85 [15:35:58]line НДС 12% : 106.26 [15:35:58]line Наличными: 0.00 [15:35:58]line Безнал.: 1000.66 [15:35:58]line Место: АЗС № 91 "Партнер Нефть" [15:35:58]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:35:58]line СНО: Общий режим [15:35:58]line Чек 88 17.05.2024 15:36 [15:35:58]line Смена: 358 ФФД: 1.0 [15:35:58]line ЗНМ: 0300000119 [15:35:58]line РНМ: 0000000000091845 [15:35:58]line Версия ККМ: 001 [15:35:58]line Платежная система: O! деньги [15:35:58]line ФМ: 0000000000871829 [15:35:58]line ФД: 67679 [15:35:58]line ФПД: 134835119140390 [15:35:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T153600&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67679&fm=134835119140390&tin=02508201610067®Number=0000000000091845&sum=100066 [15:35:58]written 0, free lines is 4095 [15:35:58]OFD Sender: Processing packet 67679 [packets to send 35, broken 34] [15:35:58]ProducePacketName [15:35:58]name=ofd_packets/00067679 [15:35:58]OFD Sender: To server: pG, [15:35:58]CommunicateWithHost lk.salyk.kg:30040 [15:35:58]ConnectInit lk.salyk.kg [15:35:58]Connected sock=10 [15: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 F6 01 07 01 F6 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E2 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 60 79 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5F 08 01 00 35 04 06 00 7A A1 BF 61 2E 26 7A 65 0C 83 78 FF 68 77 [15: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 37 36 47 00 A4 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 5F 08 01 00 F4 03 04 00 38 21 47 66 B6 04 01 00 00 36 8E A3 96 F6 C6 AB B1 [15:35:58]CommunicateWithHost err = 0 [15:35:58]CheckOFDResponse [15:35:58]1017 (14) - 77093643461234 [15:35:58]1041 (16) - 0000000000871829 [15:35:58]1040 (4) - 67679 [15:35:58]1012 (4) - 17.05.2024 09:19 [15:35:58]1206 (1) - 0 [15:35:58]OFD Sender: Remove packet 67679 [15:35:58]ProducePacketName [15:35:58]name=ofd_packets/00067679 [15:35:58]NVStorageDeleteData [15:35:58]Write to MH i2c: 01 00 00 41 26 67 [15:35:58]Write i2c OK [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: 01 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: 01 07 00 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: 01 07 00 41 26 00 00 00 00 00 04 0D 7F [15:35:58]RasterBufferAndPrint [15:35:58]line [15:35:58]line [15:35:58]line [15:35:58]line [15:35:58]line [15:35:58]written 0, free lines is 3336 [15:35:58]MH_Cut [15:35:58]Write to MH i2c: D1 01 00 48 26 01 40 [15:35:58]Write i2c OK [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: D1 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: D1 01 00 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: D1 01 00 48 26 00 3F [15:35:58]Write to MH i2c: 01 00 00 49 26 6F [15:35:58]Write i2c OK [15:35:58]MH_I2C_Read... [15:35:59]OFD Sender: No OFD packet to send [15:35:59]*** Cut start [15:35:59]*** Purtial cut [15:35:59]*** CUTSNS_PIN = 0 [15:35:59]*** Stage 1: CUTSNS_PIN = 1 [15:36:01]Read from MH i2c: 01 [15:36:01]MH_I2C_Read... [15:36:01]*** Stop cut motor [15:36:01]*** Cut end [15:36:01]Read from MH i2c: 01 07 00 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: 01 07 00 49 26 00 00 00 00 00 FF 0F 84 [15:36:01]process_action close_receipt done [15:36:01]requested_data is exist [15:36:01]produce_requested_data [15:36:01]requested_item fm.sn is exist - process it [15:36:01]wFMCommunicate request_size=4 [15:36:01]MH_SAM_APDU [15:36:01]CAPDU: 80 11 00 00 [15:36:01]Write to MH i2c: E2 08 00 4A 26 80 11 00 00 00 00 00 00 EA [15:36:01]Write i2c OK [15:36:01]MH_I2C_Read... [15:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:01]Read from MH i2c: E2 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: E2 17 00 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: E2 17 00 4A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 40 [15:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:36:01]wFMCommunicate OK [15:36:01]requested_item fd.num is exist - process it [15:36:01]SAM_PROTO_GetFieldsCounters [15:36:01]wFMCommunicate request_size=4 [15:36:01]MH_SAM_APDU [15:36:01]CAPDU: 80 13 00 00 [15:36:01]Write to MH i2c: E2 08 00 4B 26 80 13 00 00 00 00 00 00 ED [15:36:01]Write i2c OK [15:36:01]MH_I2C_Read... [15:36:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:01]Read from MH i2c: E2 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: E2 62 00 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: E2 62 00 4B 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 5F 08 01 00 0E 04 04 00 66 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 EA [15:36: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 5F 08 01 00 0E 04 04 00 66 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 [15:36:01]wFMCommunicate OK [15:36:01]SAM_PROTO_GetFieldsCounters done [15:36:01]requested_item shift.num is exist - process it [15:36:01]requested_item shift.opened is exist - process it [15:36:01]req_shift_opened [15:36:01]FM_GetShiftState [15:36:01]SAM_PROTO_GetShiftState [15:36:01]wFMCommunicate request_size=4 [15:36:01]MH_SAM_APDU [15:36:01]CAPDU: 80 13 01 00 [15:36:01]Write to MH i2c: E2 08 00 4C 26 80 13 01 00 00 00 00 00 EF [15:36:01]Write i2c OK [15:36:01]MH_I2C_Read... [15:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:01]Read from MH i2c: E2 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: E2 0E 00 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: E2 0E 00 4C 26 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 75 [15:36:01]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:36:01]wFMCommunicate OK [15:36:01]SAM_PROTO_GetShiftState done [15:36:01]FM_GetShiftState done [15:36:01]req_shift_opened done [15:36:01]requested_item shift.open_date is exist - process it [15:36:01]req_shift_open_date [15:36:01]req_shift_open_date done [15:36:01]produce_requested_data done [15:36:01]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67679,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [15:36:01]process_action_free close_receipt [15:36:01]json_value_free [15:36:01]json_value_free done [15:36:01]process_json_proto returns [15:36:01]Send response to host [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: 30955419+1685004796=1715960215 [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 97 79 47 66 FC 21 6F 64 AC [15:36:55]Current date/time: 17.05.2024 15:36 [15:36:55]FM_Init [15:36:55]wFMConnect [15:36:55]MH_SAM_On [15:36:55]Write to MH i2c: E0 00 00 08 00 E7 [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:55]*** iso7816_init finished! [15:36:55]*** atr: [15:36:55]*** 0F 3B D5 18 FF 81 91 FE [15:36:55]*** 1F C3 80 73 C8 21 10 0A [15:36:55]*** 00 00 00 00 00 00 00 00 [15:36:55]*** 00 00 00 00 00 00 00 00 [15:36:55]*** 00 00 00 00 00 00 00 00 [15:36:55]*** 00 00 00 00 00 00 00 00 [15:36:55]*** 00 00 00 00 00 00 00 00 [15:36:55]*** 00 00 00 00 00 00 00 00 [15:36:55]Read from MH i2c: E0 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E0 10 00 [15:36:55]MH_I2C_Read... [15:36:55]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 [15:36:55]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [15:36:55]wFMCommunicate request_size=10 [15:36:55]MH_SAM_APDU [15:36:55]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [15:36:55]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:55]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [15:36:55]Read from MH i2c: E2 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 03 00 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [15:36:55]RAPDU: 90 00 [15:36:55]wFMCommunicate OK [15:36:55]wFMCommunicate request_size=4 [15:36:55]MH_SAM_APDU [15:36:55]CAPDU: 80 11 00 00 [15:36:55]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:55]Read from MH i2c: E2 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 17 00 [15:36:55]MH_I2C_Read... [15:36:55]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 [15:36: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:36:55]wFMCommunicate OK [15:36:55]Detected FM SN is 0000000000871829 [15:36:55]Stored FM SN is 0000000000871829 [15:36:55]wFMCommunicate request_size=9 [15:36:55]MH_SAM_APDU [15:36:55]CAPDU: 80 16 00 00 04 44 DD 00 00 [15:36:55]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 44 DD 00 00 00 00 B3 [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:55]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [15:36:55]Read from MH i2c: E2 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 03 00 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [15:36:55]RAPDU: 90 00 [15:36:55]wFMCommunicate OK [15:36:55]FM PIN OK [15:36:55]wFMCommunicate request_size=8 [15:36:55]MH_SAM_APDU [15:36:55]CAPDU: 80 14 04 00 03 02 00 01 [15:36:55]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 [15:36:55]MH_I2C_Read... [15:36:55]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [15:36:55]Read from MH i2c: E2 03 00 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [15:36:55]RAPDU: 90 00 [15:36:55]wFMCommunicate OK [15:36:55]wFMCommunicate request_size=13 [15:36:55]MH_SAM_APDU [15:36:55]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [15:36:55]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 [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:55]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [15:36:55]Read from MH i2c: E2 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 03 00 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [15:36:55]RAPDU: 90 00 [15:36:55]wFMCommunicate OK [15:36:55]wFMCommunicate request_size=4 [15:36:55]MH_SAM_APDU [15:36:55]CAPDU: 80 11 00 00 [15:36:55]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:55]Read from MH i2c: E2 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 17 00 [15:36:55]MH_I2C_Read... [15:36:55]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 [15:36: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:36:55]wFMCommunicate OK [15:36:55]DocumentArchiveInit [15:36:55]Start Httpd... [15:36:55]Httpd thread 3067039076 created [15:36:55]Write to MH i2c: 01 00 00 0F 00 0F [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: 01 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: 01 07 00 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [15:36:55]MH Int Process started [15:36:55]Allocated Socket 8 [15:36:55]Bind OK [15:36:55]Listen OK [15:36:55]httpd running on port 8080 [15:36:55]Waiting for new connection... [15:36:55]OFD Sender: No OFD packet to send [15:36:55]accept exits with 9 [15:36:55]New connection [15:36:55]New thread 3066752356 created [15:36:55]Waiting for new connection... [15:36:55] Sock 9.Parse request [15:36:55]Sock 9.Check first char [15:36:55]Sock 9.First char is OK [15:36:55]request: POST /json_proto HTTP/1.0 [15:36:55]Method: POST [15:36:55]URL: /json_proto [15:36:55]Method is POST - this is cgi request [15:36:55]url: /json_proto [15:36:55]query_string will be loaded in cgi processing [15:36:55]execute_cgi json_proto POST (null) [15:36:55]execute_cgi path=json_proto method=POST [15:36:55]POST find Content-Length [15:36:55]Host: 172.17.41.195:8080 [15:36:55]Content-Length: 215 [15:36:55]Content-Type: application/json [15:36:55] [15:36:55]POST finish read [15:36:55]Found Content-Length = 215 [15:36: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" ] } } [15:36:55]execute_script... [15:36: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" ] } } [15:36:55]POST & json_proto [15:36:55]process_json_proto [15:36:55]json parsed OK: [15:36:55]protocol is kg_v1.0 [15:36:55]action value=get_value [15:36:55]process_action get_value [15:36:55]cmd_get_value [15:36:55]process_action get_value done [15:36:55]requested_data is exist [15:36:55]produce_requested_data [15:36:55]requested_item kkm.sn is exist - process it [15:36:55]requested_item kkm.ver is exist - process it [15:36:55]requested_item fm.sn is exist - process it [15:36:55]wFMCommunicate request_size=4 [15:36:55]MH_SAM_APDU [15:36:55]CAPDU: 80 11 00 00 [15:36:55]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:55]Read from MH i2c: E2 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 17 00 [15:36:55]MH_I2C_Read... [15:36:55]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 [15:36: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:36:55]wFMCommunicate OK [15:36:55]requested_item fd.num is exist - process it [15:36:55]SAM_PROTO_GetFieldsCounters [15:36:55]wFMCommunicate request_size=4 [15:36:55]MH_SAM_APDU [15:36:55]CAPDU: 80 13 00 00 [15:36:55]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 [15:36:55]MH_I2C_Read... [15:36:55]Read from MH i2c: E2 62 00 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:55] [15:36:55]MH_I2C_Read... [15:36:55]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 5F 08 01 00 0E 04 04 00 66 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 8A [15:36: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 5F 08 01 00 0E 04 04 00 66 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 [15:36:55]wFMCommunicate OK [15:36:55]SAM_PROTO_GetFieldsCounters done [15:36:55]requested_item shift.num is exist - process it [15:36:55]requested_item shift.opened is exist - process it [15:36:55]req_shift_opened [15:36:55]FM_GetShiftState [15:36:55]SAM_PROTO_GetShiftState [15:36:55]wFMCommunicate request_size=4 [15:36:55]MH_SAM_APDU [15:36:55]CAPDU: 80 13 01 00 [15:36:55]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [15:36:55]Write i2c OK [15:36:55]MH_I2C_Read... [15:36:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:56]Read from MH i2c: E2 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: E2 0E 00 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 15 [15:36:56]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:36:56]wFMCommunicate OK [15:36:56]SAM_PROTO_GetShiftState done [15:36:56]FM_GetShiftState done [15:36:56]req_shift_opened done [15:36:56]requested_item shift.open_date is exist - process it [15:36:56]req_shift_open_date [15:36:56]req_shift_open_date done [15:36:56]produce_requested_data done [15:36:56]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67679,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [15:36:56]process_action_free get_value [15:36:56]json_value_free [15:36:56]json_value_free done [15:36:56]process_json_proto returns [15:36:56]Send response to host [15:36:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67679,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [15:36:56]free response buf [15:36:56]execute_script done [15:36:56]execute_script returns [15:36:56]free content buf [15:36:56]Sock 9.Close socket [15:36:56]Sock 9.Thread stoped [15:36:56]accept exits with 6 [15:36:56]New connection [15:36:56]New thread 3066608996 created [15:36:56]Thread 3066752356 joined [15:36:56]Waiting for new connection... [15:36:56] Sock 6.Parse request [15:36:56]Sock 6.Check first char [15:36:56]Sock 6.First char is OK [15:36:56]request: POST /json_proto HTTP/1.0 [15:36:56]Method: POST [15:36:56]URL: /json_proto [15:36:56]Method is POST - this is cgi request [15:36:56]url: /json_proto [15:36:56]query_string will be loaded in cgi processing [15:36:56]execute_cgi json_proto POST (null) [15:36:56]execute_cgi path=json_proto method=POST [15:36:56]POST find Content-Length [15:36:56]Host: 172.17.41.195:8080 [15:36:56]Content-Length: 331 [15:36:56]Content-Type: application/json [15:36:56] [15:36:56]POST finish read [15:36:56]Found Content-Length = 331 [15:36:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:36:56]execute_script... [15:36:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:36:56]POST & json_proto [15:36:56]process_json_proto [15:36:56]json parsed OK: [15:36:56]protocol is kg_v1.0 [15:36:56]action value=get_value [15:36:56]process_action get_value [15:36:56]cmd_get_value [15:36:56]process_action get_value done [15:36:56]requested_data is exist [15:36:56]produce_requested_data [15:36:56]requested_item fm.sale.total is exist - process it [15:36:56]SAM_PROTO_GetFMData [15:36:56]wFMCommunicate request_size=4 [15:36:56]MH_SAM_APDU [15:36:56]CAPDU: 80 13 03 00 [15:36:56]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [15:36:56]Write i2c OK [15:36:56]MH_I2C_Read... [15:36:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:36:56]Read from MH i2c: E2 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: E2 FD 00 [15:36:56]MH_I2C_Read... [15:36:56]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 93 05 01 00 69 04 A3 00 6F 04 04 00 E9 04 01 00 B1 04 05 00 BB D3 FE 1C 03 70 04 05 00 9C 32 82 C0 02 72 04 04 00 1F A1 7C 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 23 F6 A5 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 F2 BF 0D 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 9D [15:36:56]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 93 05 01 00 69 04 A3 00 6F 04 04 00 E9 04 01 00 B1 04 05 00 BB D3 FE 1C 03 70 04 05 00 9C 32 82 C0 02 72 04 04 00 1F A1 7C 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 23 F6 A5 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 F2 BF 0D 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [15:36:56]wFMCommunicate OK [15:36:56]wFMCommunicate request_size=4 [15:36:56]MH_SAM_APDU [15:36:56]CAPDU: 80 17 00 00 [15:36:56]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [15:36:56]Write i2c OK [15:36:56]MH_I2C_Read... [15:36:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:36:57]Read from MH i2c: E2 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: E2 FD 00 [15:36:57]MH_I2C_Read... [15:36:57]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 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 CF [15:36:57]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [15:36:57]wFMCommunicate OK [15:36:57]wFMCommunicate request_size=4 [15:36:57]MH_SAM_APDU [15:36:57]CAPDU: 80 17 00 00 [15:36:57]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [15:36:57]Write i2c OK [15:36:57]MH_I2C_Read... [15:36:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:36:57]Read from MH i2c: E2 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: E2 FD 00 [15:36:57]MH_I2C_Read... [15:36:57]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 [15:36:57]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [15:36:57]wFMCommunicate OK [15:36:57]wFMCommunicate request_size=4 [15:36:57]MH_SAM_APDU [15:36:57]CAPDU: 80 17 00 00 [15:36:57]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [15:36:57]Write i2c OK [15:36:57]MH_I2C_Read... [15:36:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:36:57]Read from MH i2c: E2 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: E2 FD 00 [15:36:57]MH_I2C_Read... [15:36:57]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 [15:36:57]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [15:36:57]wFMCommunicate OK [15:36:57]wFMCommunicate request_size=4 [15:36:57]MH_SAM_APDU [15:36:57]CAPDU: 80 17 00 00 [15:36:57]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [15:36:57]Write i2c OK [15:36:57]MH_I2C_Read... [15:36:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [15:36:57]Read from MH i2c: E2 [15:36:57]MH_I2C_Read... [15:36:57]Read from MH i2c: E2 E3 00 [15:36:57]MH_I2C_Read... [15:36:57]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 [15:36: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 [15:36:57]wFMCommunicate OK [15:36:57]SAM_PROTO_GetFMData done [15:36:57]requested_item fm.sale_refund.total is exist - process it [15:36:57]requested_item fm.buy.total is exist - process it [15:36:57]requested_item shift.sale.total is exist - process it [15:36:57]SAM_PROTO_GetShiftData [15:36:57]wFMCommunicate request_size=4 [15:36:57]MH_SAM_APDU [15:36:57]CAPDU: 80 13 02 00 [15:36:57]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [15:36:57]Write i2c OK [15:36:57]MH_I2C_Read... [15:36:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:36:58]Read from MH i2c: E2 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 FD 00 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 58 00 00 00 69 04 9C 00 6F 04 04 00 58 00 00 00 B1 04 03 00 1C 97 A7 70 04 03 00 30 6A 6A 72 04 03 00 EC 2C 3D 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 AC CC 11 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 B6 7B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 84 [15:36:58]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 58 00 00 00 69 04 9C 00 6F 04 04 00 58 00 00 00 B1 04 03 00 1C 97 A7 70 04 03 00 30 6A 6A 72 04 03 00 EC 2C 3D 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 AC CC 11 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 B6 7B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [15:36:58]wFMCommunicate OK [15:36:58]wFMCommunicate request_size=4 [15:36:58]MH_SAM_APDU [15:36:58]CAPDU: 80 17 00 00 [15:36:58]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [15:36:58]Write i2c OK [15:36:58]MH_I2C_Read... [15:36:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:36:58]Read from MH i2c: E2 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 FD 00 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [15:36:58]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [15:36:58]wFMCommunicate OK [15:36:58]wFMCommunicate request_size=4 [15:36:58]MH_SAM_APDU [15:36:58]CAPDU: 80 17 00 00 [15:36:58]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [15:36:58]Write i2c OK [15:36:58]MH_I2C_Read... [15:36:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:36:58]Read from MH i2c: E2 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 FD 00 [15:36:58]MH_I2C_Read... [15:36:58]Read from MH i2c: E2 FD 00 1A 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [15:36:58]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [15:36:58]wFMCommunicate OK [15:36:58]wFMCommunicate request_size=4 [15:36:58]MH_SAM_APDU [15:36:58]CAPDU: 80 17 00 00 [15:36:58]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [15:36:59]Write i2c OK [15:36:59]MH_I2C_Read... [15:36:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:36:59]Read from MH i2c: E2 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: E2 FD 00 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [15:36:59]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [15:36:59]wFMCommunicate OK [15:36:59]wFMCommunicate request_size=4 [15:36:59]MH_SAM_APDU [15:36:59]CAPDU: 80 17 00 00 [15:36:59]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [15:36:59]Write i2c OK [15:36:59]MH_I2C_Read... [15:36:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [15:36:59]Read from MH i2c: E2 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: E2 CC 00 [15:36:59]MH_I2C_Read... [15:36:59]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [15:36:59]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:36:59]wFMCommunicate OK [15:36:59]SAM_PROTO_GetShiftData done [15:36:59]requested_item shift.sale.total_cash is exist - process it [15:36:59]requested_item shift.sale_refund.total is exist - process it [15:36:59]requested_item shift.sale_refund.total_cash is exist - process it [15:36:59]requested_item shift.buy.total is exist - process it [15:36:59]requested_item shift.buy.total_cash is exist - process it [15:36:59]produce_requested_data done [15:36:59]produce_requested_data return {"fm.sale.total":133713642.83,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":109831.96,"shift.sale.total_cash":69740.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:36:59]process_action_free get_value [15:36:59]json_value_free [15:36:59]json_value_free done [15:36:59]process_json_proto returns [15:36:59]Send response to host [15:36:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133713642.83,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":109831.96,"shift.sale.total_cash":69740.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:36:59]free response buf [15:36:59]execute_script done [15:36:59]execute_script returns [15:36:59]free content buf [15:36:59]Sock 6.Close socket [15:36:59]Sock 6.Thread stoped [15:37:00]OFD Sender: No OFD packet to send [15:37:05]OFD Sender: No OFD packet to send [15:37:10]OFD Sender: No OFD packet to send [15:37:15]OFD Sender: No OFD packet to send [15:37:20]OFD Sender: No OFD packet to send [15:37:25]OFD Sender: No OFD packet to send [15:37:30]OFD Sender: No OFD packet to send [15:37:35]OFD Sender: No OFD packet to send [15:37:40]OFD Sender: No OFD packet to send [15:37:45]OFD Sender: No OFD packet to send [15:37:50]OFD Sender: No OFD packet to send [15:37:55]OFD Sender: No OFD packet to send [15:38:00]OFD Sender: No OFD packet to send [15:38:05]OFD Sender: No OFD packet to send [15:38:10]OFD Sender: No OFD packet to send [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:25]OFD Sender: No OFD packet to send [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:40]accept exits with 9 [15:38:40]New connection [15:38:40]New thread 3066752356 created [15:38:40]Thread 3066608996 joined [15:38:40]Waiting for new connection... [15:38:40] Sock 9.Parse request [15:38:40]Sock 9.Check first char [15:38:40]Sock 9.First char is OK [15:38:40]request: POST /json_proto HTTP/1.0 [15:38:40]Method: POST [15:38:40]URL: /json_proto [15:38:40]Method is POST - this is cgi request [15:38:40]url: /json_proto [15:38:40]query_string will be loaded in cgi processing [15:38:40]execute_cgi json_proto POST (null) [15:38:40]execute_cgi path=json_proto method=POST [15:38:40]POST find Content-Length [15:38:40]Host: 172.17.41.195:8080 [15:38:40]Content-Length: 796 [15:38:40]Content-Type: application/json [15:38:40] [15:38:40]POST finish read [15:38:40]Found Content-Length = 796 [15:38:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507829", "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" : 36.880, "sum" : 2500.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" : 2500.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:40]execute_script... [15:38: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)507829", "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" : 36.880, "sum" : 2500.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" : 2500.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:40]POST & json_proto [15:38:40]process_json_proto [15:38:40]json parsed OK: [15:38:40]protocol is kg_v1.0 [15:38:40]action value=close_receipt [15:38:40]process_action close_receipt [15:38:40]cmd_close_receipt [15:38:40]MH_GetDate [15:38:40]Write to MH i2c: F0 00 00 1D 00 0C [15:38:40]Write i2c OK [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: F0 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: F0 09 00 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: F0 09 00 1D 00 00 00 7A 47 66 FC 21 6F 64 2C [15:38:40]GetLastDocTimeStamp 97 [15:38:40]current date 1715960320 [15:38:40]FM_GetShiftState [15:38:40]SAM_PROTO_GetShiftState [15:38:40]wFMCommunicate request_size=4 [15:38:40]MH_SAM_APDU [15:38:40]CAPDU: 80 13 01 00 [15:38:40]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [15:38:40]Write i2c OK [15:38:40]MH_I2C_Read... [15:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:40]Read from MH i2c: E2 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 0E 00 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 21 [15:38:40]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:38:40]wFMCommunicate OK [15:38:40]SAM_PROTO_GetShiftState done [15:38:40]FM_GetShiftState done [15:38:40]opened in 1715905068 [15:38:40]opened+sec_in_day 1715991468 [15:38:40]quantity*price = 250046 [15:38:40]sum+1 = 250047 [15:38:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.46 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.46 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 89 17.05.2024 15:38 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67680 ФПД: 17904116913801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T153841&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67680&fm=17904116913801&tin=02508201610067®Number=0000000000091845&sum=250046 [15:38:41]StoreToDocumentArchive [15:38:41]shift 358 fd 67680 [15:38:41]save to /storage/0358/doc_00067680 [15:38:41]save last doc name /storage/0358/doc_00067680 to /storage/kkm_last_doc_name [15:38:41]save OK [15:38:41]Clear old archive folders... [15:38:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:38:41]tlvbuf is 01AF8B00 [15:38:41]SAM_PROTO_ClearQueue [15:38:41]wFMCommunicate request_size=4 [15:38:41]MH_SAM_APDU [15:38:41]CAPDU: 80 09 00 00 [15:38:41]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [15:38:41]Write i2c OK [15:38:41]MH_I2C_Read... [15:38:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:41]Read from MH i2c: E2 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 03 00 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [15:38:41]RAPDU: 90 00 [15:38:41]wFMCommunicate OK [15:38:41]SAM_PROTO_ClearQueue done [15:38:41]KKMCreateOFDPacket [15:38:41]OFDProtocolAddRootSTLVToBuf [15:38:41]FM_MakeSignedData [15:38:41]FM_MakeSignedData [15:38:41]SAM_PROTO_SignData [15:38:41]wFMCommunicate request_size=4 [15:38:41]MH_SAM_APDU [15:38:41]CAPDU: 80 0D 01 02 [15:38:41]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [15:38:41]Write i2c OK [15:38:41]MH_I2C_Read... [15:38:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:41]Read from MH i2c: E2 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 03 00 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [15:38:41]RAPDU: 90 00 [15:38:41]wFMCommunicate OK [15:38:41]wFMCommunicate request_size=255 [15:38:41]MH_SAM_APDU [15:38:41]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 90 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 01 7A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 60 08 01 00 35 04 06 00 [15:38:41]Write to MH i2c: E2 02 01 2D 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 10 90 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 01 7A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 60 08 01 00 35 04 06 00 00 00 E6 [15:38:41]Write i2c OK [15:38:41]MH_I2C_Read... [15:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:41]Read from MH i2c: E2 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 03 00 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [15:38:41]RAPDU: 90 00 [15:38:41]wFMCommunicate OK [15:38:41]wFMCommunicate request_size=11 [15:38:41]MH_SAM_APDU [15:38:41]CAPDU: 80 0D 02 02 06 10 48 A0 87 56 89 [15:38:41]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 10 48 A0 87 56 89 00 00 12 [15:38:41]Write i2c OK [15:38:41]MH_I2C_Read... [15:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:41]Read from MH i2c: E2 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 03 00 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [15:38:41]RAPDU: 90 00 [15:38:41]wFMCommunicate OK [15:38:41]wFMCommunicate request_size=4 [15:38:41]MH_SAM_APDU [15:38:41]CAPDU: 80 0D 03 02 [15:38:41]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [15:38:41]Write i2c OK [15:38:41]MH_I2C_Read... [15:38:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:41]Read from MH i2c: E2 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 0B 00 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 0B 00 2F 00 00 5F 06 E7 7D 94 8B 78 06 90 00 11 [15:38:41]RAPDU: 5F 06 E7 7D 94 8B 78 06 90 00 [15:38:41]wFMCommunicate OK [15:38:41]SAM_PROTO_SignData done [15:38:41]FM_MakeSignedData done [15:38:41]CreateOFDProtocolMessage [15:38:41]wFMCommunicate request_size=4 [15:38:41]MH_SAM_APDU [15:38:41]CAPDU: 80 11 00 00 [15:38:41]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [15:38:41]Write i2c OK [15:38:41]MH_I2C_Read... [15:38:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:41]Read from MH i2c: E2 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 17 00 [15:38:41]MH_I2C_Read... [15:38:41]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 [15:38: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:38:41]wFMCommunicate OK [15:38:41]CreateOFDProtocolMessage done [15:38:41]OFDSenderStorePacket 67680 [15:38:41]StoreOFDPacket docnum=67680 [15:38: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 30 9A 08 01 C6 D0 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 90 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 01 7A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 60 08 01 00 35 04 06 00 10 48 A0 87 56 89 5F 06 E7 7D 94 8B 78 06 [15:38:41]CheckFolder [15:38:41]dirname=/storage/ofd_packets [15:38:41]CheckFolder done [15:38:41]ProducePacketName [15:38:41]name=ofd_packets/00067680 [15:38:41]NVStorageSaveData ofd_packets/00067680 [15:38:41]File name is /storage/ofd_packets/00067680 [15:38:41]Write 302 bytes [15:38:41]NVStorageSaveData done [15:38:41]OFDSenderStorePacket done [15:38:41]KKMCreateOFDPacket done [15:38:41]NVStorageSaveData kkm_last_timestamp [15:38:41]File name is /storage/kkm_last_timestamp [15:38:41]Write 4 bytes [15:38:41]NVStorageSaveData done [15:38:41]ExternCall_PrintAddStr [15:38:41]wPrintStart [15:38:41]Write to MH i2c: 01 00 00 31 00 31 [15:38:41]Write i2c OK [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: 01 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: 01 07 00 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [15:38:41]RasterBufferAndPrint [15:38:41]line Счет N : (1)507829 [15:38:41]line ИНН: 02508201610067 [15:38:41]line Контрольно-Кассовый Чек [15:38:41]line ПРОДАЖА [15:38:41]line ТРК (МРК, ГНК) : 12 [15:38:41]line Товар: 2710124130 [15:38:41]line Super-92-К-5 [15:38:41]line 36.880 * 67.80 [15:38:41]line = 2500.46 [15:38:41]line НДС 12% НСП 1% [15:38:41]line > о реализуемом товаре [15:38:41]line ИТОГО: 2500.46 [15:38:41]line НСП 1% : 22.13 [15:38:41]line НДС 12% : 265.54 [15:38:41]line Наличными: 0.00 [15:38:41]line Безнал.: 2500.46 [15:38:41]line Место: АЗС № 91 "Партнер Нефть" [15:38:41]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:38:41]line СНО: Общий режим [15:38:41]line Чек 89 17.05.2024 15:38 [15:38:41]line Смена: 358 ФФД: 1.0 [15:38:41]line ЗНМ: 0300000119 [15:38:41]line РНМ: 0000000000091845 [15:38:41]line Версия ККМ: 001 [15:38:41]line Платежная система: O! деньги [15:38:41]line ФМ: 0000000000871829 [15:38:41]line ФД: 67680 [15:38:41]line ФПД: 17904116913801 [15:38:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T153841&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67680&fm=17904116913801&tin=02508201610067®Number=0000000000091845&sum=250046 [15:38:41]OFD Sender: Processing packet 67680 [packets to send 35, broken 34] [15:38:41]ProducePacketName [15:38:41]name=ofd_packets/00067680 [15:38:41]OFD Sender: To server: pG, [15:38:41]CommunicateWithHost lk.salyk.kg:30040 [15:38:41]ConnectInit lk.salyk.kg [15:38:41]written 0, free lines is 4095 [15:38:42]Connected sock=10 [15:38:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 30 9A 08 01 C6 D0 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 90 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 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 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 01 7A 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 60 08 01 00 35 04 06 00 10 48 A0 87 56 89 5F 06 E7 7D 94 8B 78 06 [15:38: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 B1 B3 47 00 DA 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 60 08 01 00 F4 03 04 00 D8 21 47 66 B6 04 01 00 00 9E 57 21 62 81 91 8C 3C [15:38:42]CommunicateWithHost err = 0 [15:38:42]CheckOFDResponse [15:38:42]1017 (14) - 77093643461234 [15:38:42]1041 (16) - 0000000000871829 [15:38:42]1040 (4) - 67680 [15:38:42]1012 (4) - 17.05.2024 09:22 [15:38:42]1206 (1) - 0 [15:38:42]OFD Sender: Remove packet 67680 [15:38:42]ProducePacketName [15:38:42]name=ofd_packets/00067680 [15:38:42]NVStorageDeleteData [15:38:42]Write to MH i2c: 01 00 00 5A 00 5A [15:38:42]Write i2c OK [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: 01 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: 01 07 00 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 FA 0C 67 [15:38:42]RasterBufferAndPrint [15:38:42]line [15:38:42]line [15:38:42]line [15:38:42]line [15:38:42]line [15:38:42]written 0, free lines is 3329 [15:38:42]MH_Cut [15:38:42]Write to MH i2c: D1 01 00 61 00 01 33 [15:38:42]Write i2c OK [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: D1 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: D1 01 00 [15:38:42]MH_I2C_Read... [15:38:42]Read from MH i2c: D1 01 00 61 00 00 32 [15:38:42]Write to MH i2c: 01 00 00 62 00 62 [15:38:42]Write i2c OK [15:38:42]MH_I2C_Read... [15:38:42]OFD Sender: No OFD packet to send [15:38:43]*** Cut start [15:38:43]*** Purtial cut [15:38:43]*** Stage 1: CUTSNS_PIN = 1 [15:38:43]Read from MH i2c: 01 [15:38:43]MH_I2C_Read... [15:38:43]*** Stop cut motor [15:38:43]*** Cut end [15:38:43]Read from MH i2c: 01 07 00 [15:38:43]MH_I2C_Read... [15:38:43]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [15:38:43]process_action close_receipt done [15:38:43]requested_data is exist [15:38:43]produce_requested_data [15:38:43]requested_item fm.sn is exist - process it [15:38:43]wFMCommunicate request_size=4 [15:38:43]MH_SAM_APDU [15:38:43]CAPDU: 80 11 00 00 [15:38:43]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [15:38:43]Write i2c OK [15:38:43]MH_I2C_Read... [15:38:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:43]Read from MH i2c: E2 [15:38:43]MH_I2C_Read... [15:38:43]Read from MH i2c: E2 17 00 [15:38:43]MH_I2C_Read... [15:38:43]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 [15:38:43]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:43]wFMCommunicate OK [15:38:43]requested_item fd.num is exist - process it [15:38:43]SAM_PROTO_GetFieldsCounters [15:38:43]wFMCommunicate request_size=4 [15:38:43]MH_SAM_APDU [15:38:43]CAPDU: 80 13 00 00 [15:38:43]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [15:38:43]Write i2c OK [15:38:43]MH_I2C_Read... [15:38:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:43]Read from MH i2c: E2 [15:38:43]MH_I2C_Read... [15:38:43]Read from MH i2c: E2 62 00 [15:38:43]MH_I2C_Read... [15:38:43]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 60 08 01 00 0E 04 04 00 66 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 E1 [15:38: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 60 08 01 00 0E 04 04 00 66 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 [15:38:43]wFMCommunicate OK [15:38:43]SAM_PROTO_GetFieldsCounters done [15:38:43]requested_item shift.num is exist - process it [15:38:43]requested_item shift.opened is exist - process it [15:38:43]req_shift_opened [15:38:43]FM_GetShiftState [15:38:43]SAM_PROTO_GetShiftState [15:38:43]wFMCommunicate request_size=4 [15:38:43]MH_SAM_APDU [15:38:43]CAPDU: 80 13 01 00 [15:38:43]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [15:38:43]Write i2c OK [15:38:43]MH_I2C_Read... [15:38:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:43]Read from MH i2c: E2 [15:38:43]MH_I2C_Read... [15:38:43]Read from MH i2c: E2 0E 00 [15:38:43]MH_I2C_Read... [15:38:43]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 68 [15:38:43]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:38:43]wFMCommunicate OK [15:38:43]SAM_PROTO_GetShiftState done [15:38:43]FM_GetShiftState done [15:38:43]req_shift_opened done [15:38:43]requested_item shift.open_date is exist - process it [15:38:43]req_shift_open_date [15:38:43]req_shift_open_date done [15:38:43]produce_requested_data done [15:38:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67680,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [15:38:43]process_action_free close_receipt [15:38:43]json_value_free [15:38:43]json_value_free done [15:38:43]process_json_proto returns [15:38:43]Send response to host [15:38:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67680,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [15:38:43]free response buf [15:38:43]execute_script done [15:38:43]execute_script returns [15:38:43]free content buf [15:38:43]Sock 9.Close socket [15:38:43]Sock 9.Thread stoped [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:27]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:33]OFD Sender: No OFD packet to send [15:43:38]OFD Sender: No OFD packet to send [15:43:43]OFD Sender: No OFD packet to send [15:43:48]OFD Sender: No OFD packet to send [15:43:53]OFD Sender: No OFD packet to send [15:43:58]OFD Sender: No OFD packet to send [15:44:03]OFD Sender: No OFD packet to send [15:44:08]OFD Sender: No OFD packet to send [15:44:13]OFD Sender: No OFD packet to send [15:44:18]OFD Sender: No OFD packet to send [15:44:23]OFD Sender: No OFD packet to send [15:44:28]OFD Sender: No OFD packet to send [15:44:33]OFD Sender: No OFD packet to send [15:44:38]OFD Sender: No OFD packet to send [15:44:43]OFD Sender: No OFD packet to send [15:44:48]OFD Sender: No OFD packet to send [15:44:53]OFD Sender: No OFD packet to send [15:44:58]OFD Sender: No OFD packet to send [15:45:03]OFD Sender: No OFD packet to send [15:45:06]accept exits with 7 [15:45:06]New connection [15:45:06]New thread 3066608996 created [15:45:06]Thread 3066752356 joined [15:45:06]Waiting for new connection... [15:45:06] Sock 7.Parse request [15:45:06]Sock 7.Check first char [15:45:06]Sock 7.First char is OK [15:45:06]request: POST /json_proto HTTP/1.0 [15:45:06]Method: POST [15:45:06]URL: /json_proto [15:45:06]Method is POST - this is cgi request [15:45:06]url: /json_proto [15:45:06]query_string will be loaded in cgi processing [15:45:06]execute_cgi json_proto POST (null) [15:45:06]execute_cgi path=json_proto method=POST [15:45:06]POST find Content-Length [15:45:06]Host: 172.17.41.195:8080 [15:45:06]Content-Length: 678 [15:45:06]Content-Type: application/json [15:45:06] [15:45:06]POST finish read [15:45:06]Found Content-Length = 678 [15:45:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507830", "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" : 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" ] } } [15:45:06]execute_script... [15:45: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)507830", "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" : 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" ] } } [15:45:06]POST & json_proto [15:45:06]process_json_proto [15:45:06]json parsed OK: [15:45:06]protocol is kg_v1.0 [15:45:06]action value=close_receipt [15:45:06]process_action close_receipt [15:45:06]cmd_close_receipt [15:45:06]MH_GetDate [15:45:06]Write to MH i2c: F0 00 00 66 00 55 [15:45:06]Write i2c OK [15:45:06]MH_I2C_Read... [15:45:06]Read from MH i2c: F0 [15:45:06]MH_I2C_Read... [15:45:06]Read from MH i2c: F0 09 00 [15:45:06]MH_I2C_Read... [15:45:06]Read from MH i2c: F0 09 00 66 00 00 82 7B 47 66 FC 21 6F 64 F8 [15:45:06]GetLastDocTimeStamp 1715960321 [15:45:06]current date 1715960706 [15:45:06]FM_GetShiftState [15:45:06]SAM_PROTO_GetShiftState [15:45:06]wFMCommunicate request_size=4 [15:45:06]MH_SAM_APDU [15:45:06]CAPDU: 80 13 01 00 [15:45:06]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [15:45:06]Write i2c OK [15:45:06]MH_I2C_Read... [15:45:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:06]Read from MH i2c: E2 [15:45:06]MH_I2C_Read... [15:45:06]Read from MH i2c: E2 0E 00 [15:45:06]MH_I2C_Read... [15:45:06]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 6A [15:45:06]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:45:06]wFMCommunicate OK [15:45:06]SAM_PROTO_GetShiftState done [15:45:06]FM_GetShiftState done [15:45:06]opened in 1715905068 [15:45:06]opened+sec_in_day 1715991468 [15:45:06]quantity*price = 70006 [15:45:06]sum+1 = 70007 [15:45:06]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 СНО: Общий режим Чек 90 17.05.2024 15:45 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67681 ФПД: 196206907009518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T154507&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67681&fm=196206907009518&tin=02508201610067®Number=0000000000091845&sum=70000 [15:45:07]StoreToDocumentArchive [15:45:07]shift 358 fd 67681 [15:45:07]save to /storage/0358/doc_00067681 [15:45:07]save last doc name /storage/0358/doc_00067681 to /storage/kkm_last_doc_name [15:45:07]save OK [15:45:07]Clear old archive folders... [15:45:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:07]tlvbuf is 01AEF680 [15:45:07]SAM_PROTO_ClearQueue [15:45:07]wFMCommunicate request_size=4 [15:45:07]MH_SAM_APDU [15:45:07]CAPDU: 80 09 00 00 [15:45:07]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [15:45:07]Write i2c OK [15:45:07]MH_I2C_Read... [15:45:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:07]Read from MH i2c: E2 [15:45:07]MH_I2C_Read... [15:45:07]Read from MH i2c: E2 03 00 [15:45:07]MH_I2C_Read... [15:45:07]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [15:45:07]RAPDU: 90 00 [15:45:07]wFMCommunicate OK [15:45:07]SAM_PROTO_ClearQueue done [15:45:07]KKMCreateOFDPacket [15:45:07]OFDProtocolAddRootSTLVToBuf [15:45:07]FM_MakeSignedData [15:45:07]FM_MakeSignedData [15:45:07]SAM_PROTO_SignData [15:45:07]wFMCommunicate request_size=4 [15:45:07]MH_SAM_APDU [15:45:07]CAPDU: 80 0D 01 02 [15:45:07]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [15:45:07]Write i2c OK [15:45:07]MH_I2C_Read... [15:45:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:07]Read from MH i2c: E2 [15:45:07]MH_I2C_Read... [15:45:07]Read from MH i2c: E2 03 00 [15:45:07]MH_I2C_Read... [15:45:07]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [15:45:07]RAPDU: 90 00 [15:45:07]wFMCommunicate OK [15:45:07]wFMCommunicate request_size=255 [15:45:07]MH_SAM_APDU [15:45: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 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 5A 00 00 00 F4 03 04 00 83 7B 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 61 08 01 00 35 04 06 00 B2 [15:45:07]Write to MH i2c: E2 02 01 76 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 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 5A 00 00 00 F4 03 04 00 83 7B 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 61 08 01 00 35 04 06 00 B2 00 00 EF [15:45:07]Write i2c OK [15:45:07]MH_I2C_Read... [15:45:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:07]Read from MH i2c: E2 [15:45:07]MH_I2C_Read... [15:45:07]Read from MH i2c: E2 03 00 [15:45:07]MH_I2C_Read... [15:45:07]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [15:45:07]RAPDU: 90 00 [15:45:07]wFMCommunicate OK [15:45:07]wFMCommunicate request_size=10 [15:45:07]MH_SAM_APDU [15:45:07]CAPDU: 80 0D 02 02 05 72 FA FE A9 EE [15:45:07]Write to MH i2c: E2 0D 00 77 00 80 0D 02 02 05 00 72 FA FE A9 EE 00 00 FC [15:45:07]Write i2c OK [15:45:07]MH_I2C_Read... [15:45:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:07]Read from MH i2c: E2 [15:45:07]MH_I2C_Read... [15:45:07]Read from MH i2c: E2 03 00 [15:45:07]MH_I2C_Read... [15:45:07]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [15:45:07]RAPDU: 90 00 [15:45:07]wFMCommunicate OK [15:45:07]wFMCommunicate request_size=4 [15:45:07]MH_SAM_APDU [15:45:07]CAPDU: 80 0D 03 02 [15:45:07]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [15:45:07]Write i2c OK [15:45:07]MH_I2C_Read... [15:45:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:07]Read from MH i2c: E2 [15:45:07]MH_I2C_Read... [15:45:07]Read from MH i2c: E2 0B 00 [15:45:07]MH_I2C_Read... [15:45:07]Read from MH i2c: E2 0B 00 78 00 00 96 EB 9E 26 10 CC 9C CF 90 00 80 [15:45:07]RAPDU: 96 EB 9E 26 10 CC 9C CF 90 00 [15:45:07]wFMCommunicate OK [15:45:07]SAM_PROTO_SignData done [15:45:07]FM_MakeSignedData done [15:45:07]CreateOFDProtocolMessage [15:45:07]wFMCommunicate request_size=4 [15:45:07]MH_SAM_APDU [15:45:07]CAPDU: 80 11 00 00 [15:45:07]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [15:45:07]Write i2c OK [15:45:07]MH_I2C_Read... [15:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:07]Read from MH i2c: E2 [15:45:07]MH_I2C_Read... [15:45:07]Read from MH i2c: E2 17 00 [15:45:07]MH_I2C_Read... [15:45:07]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 49 [15: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 [15:45:07]wFMCommunicate OK [15:45:07]CreateOFDProtocolMessage done [15:45:07]OFDSenderStorePacket 67681 [15:45:07]StoreOFDPacket docnum=67681 [15:45: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 FC 98 07 01 09 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5A 00 00 00 F4 03 04 00 83 7B 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 61 08 01 00 35 04 06 00 B2 72 FA FE A9 EE 96 EB 9E 26 10 CC 9C CF [15:45:07]CheckFolder [15:45:07]dirname=/storage/ofd_packets [15:45:07]CheckFolder done [15:45:07]ProducePacketName [15:45:07]name=ofd_packets/00067681 [15:45:07]NVStorageSaveData ofd_packets/00067681 [15:45:07]File name is /storage/ofd_packets/00067681 [15:45:07]Write 301 bytes [15:45:07]NVStorageSaveData done [15:45:07]OFDSenderStorePacket done [15:45:07]KKMCreateOFDPacket done [15:45:07]NVStorageSaveData kkm_last_timestamp [15:45:07]File name is /storage/kkm_last_timestamp [15:45:07]Write 4 bytes [15:45:07]NVStorageSaveData done [15:45:07]ExternCall_PrintAddStr [15:45:07]wPrintStart [15:45:07]Write to MH i2c: 01 00 00 7A 00 7A [15:45:07]Write i2c OK [15:45:07]MH_I2C_Read... [15:45:07]Read from MH i2c: 01 [15:45:07]MH_I2C_Read... [15:45:07]Read from MH i2c: 01 07 00 [15:45:07]MH_I2C_Read... [15:45:07]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [15:45:07]RasterBufferAndPrint [15:45:07]line Счет N : (1)507830 [15:45:07]line ИНН: 02508201610067 [15:45:07]line Контрольно-Кассовый Чек [15:45:07]line ПРОДАЖА [15:45:07]line ТРК (МРК, ГНК) : 23 [15:45:07]line Товар: 2710124130 [15:45:07]line Аи-92-К-5 [15:45:07]line 10.480 * 66.80 [15:45:07]line = 700.06 [15:45:07]line НДС 12% НСП 1% [15:45:07]line > о реализуемом товаре [15:45:07]line ОКРУГЛЕНИЕ: -0.06 [15:45:07]line ИТОГО: 700.00 [15:45:07]line Внесено: 700.00 [15:45:07]line СДАЧА: 0.00 [15:45:07]line НСП 1% : 6.19 [15:45:07]line НДС 12% : 74.34 [15:45:07]line Наличными: 700.00 [15:45:07]line Безнал.: 0.00 [15:45:07]line Место: АЗС № 91 "Партнер Нефть" [15:45:07]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:45:07]line СНО: Общий режим [15:45:07]line Чек 90 17.05.2024 15:45 [15:45:07]line Смена: 358 ФФД: 1.0 [15:45:07]line ЗНМ: 0300000119 [15:45:07]line РНМ: 0000000000091845 [15:45:07]line Версия ККМ: 001 [15:45:07]line ФМ: 0000000000871829 [15:45:07]line ФД: 67681 [15:45:07]line ФПД: 196206907009518 [15:45:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T154507&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67681&fm=196206907009518&tin=02508201610067®Number=0000000000091845&sum=70000 [15:45:08]written 0, free lines is 4095 [15:45:08]OFD Sender: Processing packet 67681 [packets to send 35, broken 34] [15:45:08]ProducePacketName [15:45:08]name=ofd_packets/00067681 [15:45:08]OFD Sender: To server: pG, [15:45:08]CommunicateWithHost lk.salyk.kg:30040 [15:45:08]ConnectInit lk.salyk.kg [15:45:08]Connected sock=10 [15:45: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 FC 98 07 01 09 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5A 00 00 00 F4 03 04 00 83 7B 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 61 08 01 00 35 04 06 00 B2 72 FA FE A9 EE 96 EB 9E 26 10 CC 9C CF [15:45: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 2C 87 47 00 D5 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 61 08 01 00 F4 03 04 00 5A 23 47 66 B6 04 01 00 00 B0 74 DA B8 E8 B7 A5 47 [15:45:08]CommunicateWithHost err = 0 [15:45:08]CheckOFDResponse [15:45:08]1017 (14) - 77093643461234 [15:45:08]1041 (16) - 0000000000871829 [15:45:08]1040 (4) - 67681 [15:45:08]1012 (4) - 17.05.2024 09:28 [15:45:08]1206 (1) - 0 [15:45:08]OFD Sender: Remove packet 67681 [15:45:08]ProducePacketName [15:45:08]name=ofd_packets/00067681 [15:45:08]NVStorageDeleteData [15:45:08]Write to MH i2c: 01 00 00 A4 00 A4 [15:45:08]Write i2c OK [15:45:08]MH_I2C_Read... [15:45:08]Read from MH i2c: 01 [15:45:08]MH_I2C_Read... [15:45:08]Read from MH i2c: 01 07 00 [15:45:08]MH_I2C_Read... [15:45:08]Read from MH i2c: 01 07 00 A4 00 00 00 00 00 00 CC 0C 83 [15:45:08]RasterBufferAndPrint [15:45:08]line [15:45:08]line [15:45:08]line [15:45:08]line [15:45:08]line [15:45:08]written 0, free lines is 3282 [15:45:08]MH_Cut [15:45:08]Write to MH i2c: D1 01 00 AB 00 01 7D [15:45:08]Write i2c OK [15:45:08]MH_I2C_Read... [15:45:08]Read from MH i2c: D1 [15:45:08]MH_I2C_Read... [15:45:08]Read from MH i2c: D1 01 00 [15:45:08]MH_I2C_Read... [15:45:08]Read from MH i2c: D1 01 00 AB 00 00 7C [15:45:08]Write to MH i2c: 01 00 00 AC 00 AC [15:45:08]Write i2c OK [15:45:08]MH_I2C_Read... [15:45:08]OFD Sender: No OFD packet to send [15:45:09]*** Cut start [15:45:09]*** Purtial cut [15:45:09]*** CUTSNS_PIN = 0 [15:45:09]*** Stage 1: CUTSNS_PIN = 1 [15:45:11]Read from MH i2c: 01 [15:45:11]MH_I2C_Read... [15:45:11]*** Stop cut motor [15:45:11]*** Cut end [15:45:11]Read from MH i2c: 01 07 00 [15:45:11]MH_I2C_Read... [15:45:11]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 FF 0F C1 [15:45:11]process_action close_receipt done [15:45:11]requested_data is exist [15:45:11]produce_requested_data [15:45:11]requested_item fm.sn is exist - process it [15:45:11]wFMCommunicate request_size=4 [15:45:11]MH_SAM_APDU [15:45:11]CAPDU: 80 11 00 00 [15:45:11]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [15:45:11]Write i2c OK [15:45:11]MH_I2C_Read... [15:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:11]Read from MH i2c: E2 [15:45:11]MH_I2C_Read... [15:45:11]Read from MH i2c: E2 17 00 [15:45:11]MH_I2C_Read... [15:45:11]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7D [15:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:45:11]wFMCommunicate OK [15:45:11]requested_item fd.num is exist - process it [15:45:11]SAM_PROTO_GetFieldsCounters [15:45:11]wFMCommunicate request_size=4 [15:45:11]MH_SAM_APDU [15:45:11]CAPDU: 80 13 00 00 [15:45:11]Write to MH i2c: E2 08 00 AE 00 80 13 00 00 00 00 00 00 2A [15:45:11]Write i2c OK [15:45:11]MH_I2C_Read... [15:45:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:11]Read from MH i2c: E2 [15:45:11]MH_I2C_Read... [15:45:11]Read from MH i2c: E2 62 00 [15:45:11]MH_I2C_Read... [15:45:11]Read from MH i2c: E2 62 00 AE 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 61 08 01 00 0E 04 04 00 66 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 2F [15:45: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 61 08 01 00 0E 04 04 00 66 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 [15:45:11]wFMCommunicate OK [15:45:11]SAM_PROTO_GetFieldsCounters done [15:45:11]requested_item shift.num is exist - process it [15:45:11]requested_item shift.opened is exist - process it [15:45:11]req_shift_opened [15:45:11]FM_GetShiftState [15:45:11]SAM_PROTO_GetShiftState [15:45:11]wFMCommunicate request_size=4 [15:45:11]MH_SAM_APDU [15:45:11]CAPDU: 80 13 01 00 [15:45:11]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [15:45:11]Write i2c OK [15:45:11]MH_I2C_Read... [15:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:11]Read from MH i2c: E2 [15:45:11]MH_I2C_Read... [15:45:11]Read from MH i2c: E2 0E 00 [15:45:11]MH_I2C_Read... [15:45:11]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 B2 [15:45:11]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:45:11]wFMCommunicate OK [15:45:11]SAM_PROTO_GetShiftState done [15:45:11]FM_GetShiftState done [15:45:11]req_shift_opened done [15:45:11]requested_item shift.open_date is exist - process it [15:45:11]req_shift_open_date [15:45:11]req_shift_open_date done [15:45:11]produce_requested_data done [15:45:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67681,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [15:45:11]process_action_free close_receipt [15:45:11]json_value_free [15:45:11]json_value_free done [15:45:11]process_json_proto returns [15:45:11]Send response to host [15:45:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67681,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [15:45:11]free response buf [15:45:11]execute_script done [15:45:11]execute_script returns [15:45:11]free content buf [15:45:11]Sock 7.Close socket [15:45:11]Sock 7.Thread stoped [15:45:13]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:42]accept exits with 9 [15:45:42]New connection [15:45:42]New thread 3066752356 created [15:45:42]Thread 3066608996 joined [15:45:42]Waiting for new connection... [15:45:42] Sock 9.Parse request [15:45:42]Sock 9.Check first char [15:45:42]Sock 9.First char is OK [15:45:42]request: POST /json_proto HTTP/1.0 [15:45:42]Method: POST [15:45:42]URL: /json_proto [15:45:42]Method is POST - this is cgi request [15:45:42]url: /json_proto [15:45:42]query_string will be loaded in cgi processing [15:45:42]execute_cgi json_proto POST (null) [15:45:42]execute_cgi path=json_proto method=POST [15:45:42]POST find Content-Length [15:45:42]Host: 172.17.41.195:8080 [15:45:42]Content-Length: 800 [15:45:42]Content-Type: application/json [15:45:42] [15:45:42]POST finish read [15:45:42]Found Content-Length = 800 [15:45:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507831", "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" ] } } [15:45:42]execute_script... [15:45: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)507831", "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" ] } } [15:45:42]POST & json_proto [15:45:42]process_json_proto [15:45:42]json parsed OK: [15:45:42]protocol is kg_v1.0 [15:45:42]action value=close_receipt [15:45:42]process_action close_receipt [15:45:42]cmd_close_receipt [15:45:42]MH_GetDate [15:45:42]Write to MH i2c: F0 00 00 B0 00 9F [15:45:42]Write i2c OK [15:45:42]MH_I2C_Read... [15:45:42]Read from MH i2c: F0 [15:45:42]MH_I2C_Read... [15:45:42]Read from MH i2c: F0 09 00 [15:45:42]MH_I2C_Read... [15:45:42]Read from MH i2c: F0 09 00 B0 00 00 A7 7B 47 66 FC 21 6F 64 67 [15:45:42]GetLastDocTimeStamp 1715960707 [15:45:42]current date 1715960743 [15:45:42]FM_GetShiftState [15:45:42]SAM_PROTO_GetShiftState [15:45:42]wFMCommunicate request_size=4 [15:45:42]MH_SAM_APDU [15:45:42]CAPDU: 80 13 01 00 [15:45:42]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [15:45:42]Write i2c OK [15:45:42]MH_I2C_Read... [15:45:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:42]Read from MH i2c: E2 [15:45:42]MH_I2C_Read... [15:45:42]Read from MH i2c: E2 0E 00 [15:45:42]MH_I2C_Read... [15:45:42]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 B4 [15:45:42]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:45:42]wFMCommunicate OK [15:45:42]SAM_PROTO_GetShiftState done [15:45:42]FM_GetShiftState done [15:45:42]opened in 1715905068 [15:45:42]opened+sec_in_day 1715991468 [15:45:42]quantity*price = 50033 [15:45:42]sum+1 = 50034 [15:45:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 91 17.05.2024 15:45 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67682 ФПД: 57067411376012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T154543&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67682&fm=57067411376012&tin=02508201610067®Number=0000000000091845&sum=50033 [15:45:43]StoreToDocumentArchive [15:45:43]shift 358 fd 67682 [15:45:43]save to /storage/0358/doc_00067682 [15:45:43]save last doc name /storage/0358/doc_00067682 to /storage/kkm_last_doc_name [15:45:43]save OK [15:45:43]Clear old archive folders... [15:45:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:43]tlvbuf is 01B2B590 [15:45:43]SAM_PROTO_ClearQueue [15:45:43]wFMCommunicate request_size=4 [15:45:43]MH_SAM_APDU [15:45:43]CAPDU: 80 09 00 00 [15:45:43]Write to MH i2c: E2 08 00 BE 00 80 09 00 00 00 00 00 00 30 [15:45:43]Write i2c OK [15:45:43]MH_I2C_Read... [15:45:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:43]Read from MH i2c: E2 [15:45:43]MH_I2C_Read... [15:45:43]Read from MH i2c: E2 03 00 [15:45:43]MH_I2C_Read... [15:45:43]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [15:45:43]RAPDU: 90 00 [15:45:43]wFMCommunicate OK [15:45:43]SAM_PROTO_ClearQueue done [15:45:43]KKMCreateOFDPacket [15:45:43]OFDProtocolAddRootSTLVToBuf [15:45:43]FM_MakeSignedData [15:45:43]FM_MakeSignedData [15:45:43]SAM_PROTO_SignData [15:45:43]wFMCommunicate request_size=4 [15:45:43]MH_SAM_APDU [15:45:43]CAPDU: 80 0D 01 02 [15:45:43]Write to MH i2c: E2 08 00 BF 00 80 0D 01 02 00 00 00 00 38 [15:45:43]Write i2c OK [15:45:43]MH_I2C_Read... [15:45:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:43]Read from MH i2c: E2 [15:45:43]MH_I2C_Read... [15:45:43]Read from MH i2c: E2 03 00 [15:45:43]MH_I2C_Read... [15:45:43]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [15:45:43]RAPDU: 90 00 [15:45:43]wFMCommunicate OK [15:45:43]wFMCommunicate request_size=255 [15:45:43]MH_SAM_APDU [15:45:43]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 5B 00 00 00 F4 03 04 00 A7 7B 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 62 08 01 00 35 04 06 00 33 [15:45:43]Write to MH i2c: E2 02 01 C0 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 5B 00 00 00 F4 03 04 00 A7 7B 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 62 08 01 00 35 04 06 00 33 00 00 34 [15:45:43]Write i2c OK [15:45:43]MH_I2C_Read... [15:45:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:44]Read from MH i2c: E2 [15:45:44]MH_I2C_Read... [15:45:44]Read from MH i2c: E2 03 00 [15:45:44]MH_I2C_Read... [15:45:44]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [15:45:44]RAPDU: 90 00 [15:45:44]wFMCommunicate OK [15:45:44]wFMCommunicate request_size=10 [15:45:44]MH_SAM_APDU [15:45:44]CAPDU: 80 0D 02 02 05 E7 0A C8 87 8C [15:45:44]Write to MH i2c: E2 0D 00 C1 00 80 0D 02 02 05 00 E7 0A C8 87 8C 00 00 11 [15:45:44]Write i2c OK [15:45:44]MH_I2C_Read... [15:45:44]OFD Sender: No OFD packet to send [15:45:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:44]Read from MH i2c: E2 [15:45:44]MH_I2C_Read... [15:45:44]Read from MH i2c: E2 03 00 [15:45:44]MH_I2C_Read... [15:45:44]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [15:45:44]RAPDU: 90 00 [15:45:44]wFMCommunicate OK [15:45:44]wFMCommunicate request_size=4 [15:45:44]MH_SAM_APDU [15:45:44]CAPDU: 80 0D 03 02 [15:45:44]Write to MH i2c: E2 08 00 C2 00 80 0D 03 02 00 00 00 00 3D [15:45:44]Write i2c OK [15:45:44]MH_I2C_Read... [15:45:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:44]Read from MH i2c: E2 [15:45:44]MH_I2C_Read... [15:45:44]Read from MH i2c: E2 0B 00 [15:45:44]MH_I2C_Read... [15:45:44]Read from MH i2c: E2 0B 00 C2 00 00 05 47 EF 09 7D A5 F9 89 90 00 26 [15:45:44]RAPDU: 05 47 EF 09 7D A5 F9 89 90 00 [15:45:44]wFMCommunicate OK [15:45:44]SAM_PROTO_SignData done [15:45:44]FM_MakeSignedData done [15:45:44]CreateOFDProtocolMessage [15:45:44]wFMCommunicate request_size=4 [15:45:44]MH_SAM_APDU [15:45:44]CAPDU: 80 11 00 00 [15:45:44]Write to MH i2c: E2 08 00 C3 00 80 11 00 00 00 00 00 00 3D [15:45:44]Write i2c OK [15:45:44]MH_I2C_Read... [15:45:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:44]Read from MH i2c: E2 [15:45:44]MH_I2C_Read... [15:45:44]Read from MH i2c: E2 17 00 [15:45:44]MH_I2C_Read... [15:45:44]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 [15:45: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:45:44]wFMCommunicate OK [15:45:44]CreateOFDProtocolMessage done [15:45:44]OFDSenderStorePacket 67682 [15:45:44]StoreOFDPacket docnum=67682 [15:45:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 02 17 07 01 3E EE 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 5B 00 00 00 F4 03 04 00 A7 7B 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 62 08 01 00 35 04 06 00 33 E7 0A C8 87 8C 05 47 EF 09 7D A5 F9 89 [15:45:44]CheckFolder [15:45:44]dirname=/storage/ofd_packets [15:45:44]CheckFolder done [15:45:44]ProducePacketName [15:45:44]name=ofd_packets/00067682 [15:45:44]NVStorageSaveData ofd_packets/00067682 [15:45:44]File name is /storage/ofd_packets/00067682 [15:45:44]Write 301 bytes [15:45:44]NVStorageSaveData done [15:45:44]OFDSenderStorePacket done [15:45:44]KKMCreateOFDPacket done [15:45:44]NVStorageSaveData kkm_last_timestamp [15:45:44]File name is /storage/kkm_last_timestamp [15:45:44]Write 4 bytes [15:45:44]NVStorageSaveData done [15:45:44]ExternCall_PrintAddStr [15:45:44]wPrintStart [15:45:44]Write to MH i2c: 01 00 00 C4 00 C4 [15:45:44]Write i2c OK [15:45:44]MH_I2C_Read... [15:45:44]Read from MH i2c: 01 [15:45:44]MH_I2C_Read... [15:45:44]Read from MH i2c: 01 07 00 [15:45:44]MH_I2C_Read... [15:45:44]Read from MH i2c: 01 07 00 C4 00 00 00 00 00 00 FF 0F D9 [15:45:44]RasterBufferAndPrint [15:45:44]line Счет N : (1)507831 [15:45:44]line ИНН: 02508201610067 [15:45:44]line Контрольно-Кассовый Чек [15:45:44]line ПРОДАЖА [15:45:44]line ТРК (МРК, ГНК) : 43 [15:45:44]line Товар: 2710124130 [15:45:44]line Аи-92-К-5 [15:45:44]line 7.490 * 66.80 [15:45:44]line = 500.33 [15:45:44]line НДС 12% НСП 1% [15:45:44]line > о реализуемом товаре [15:45:44]line ИТОГО: 500.33 [15:45:44]line НСП 1% : 4.43 [15:45:44]line НДС 12% : 53.13 [15:45:44]line Наличными: 0.00 [15:45:44]line Безнал.: 500.33 [15:45:44]line Место: АЗС № 91 "Партнер Нефть" [15:45:44]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:45:44]line СНО: Общий режим [15:45:44]line Чек 91 17.05.2024 15:45 [15:45:44]line Смена: 358 ФФД: 1.0 [15:45:44]line ЗНМ: 0300000119 [15:45:44]line РНМ: 0000000000091845 [15:45:44]line Версия ККМ: 001 [15:45:44]line Платежная система: O! деньги [15:45:44]line ФМ: 0000000000871829 [15:45:44]line ФД: 67682 [15:45:44]line ФПД: 57067411376012 [15:45:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T154543&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67682&fm=57067411376012&tin=02508201610067®Number=0000000000091845&sum=50033 [15:45:44]written 0, free lines is 4095 [15:45:44]OFD Sender: Processing packet 67682 [packets to send 35, broken 34] [15:45:44]ProducePacketName [15:45:44]name=ofd_packets/00067682 [15:45:44]OFD Sender: To server: pG, [15:45:44]CommunicateWithHost lk.salyk.kg:30040 [15:45:44]ConnectInit lk.salyk.kg [15:45:44]Connected sock=10 [15:45:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 02 17 07 01 3E EE 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 5B 00 00 00 F4 03 04 00 A7 7B 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 62 08 01 00 35 04 06 00 33 E7 0A C8 87 8C 05 47 EF 09 7D A5 F9 89 [15:45: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 78 BF 47 00 A2 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 62 08 01 00 F4 03 04 00 7E 23 47 66 B6 04 01 00 00 F2 67 AF EA 9B 9F CF 4A [15:45:44]CommunicateWithHost err = 0 [15:45:44]CheckOFDResponse [15:45:44]1017 (14) - 77093643461234 [15:45:44]1041 (16) - 0000000000871829 [15:45:44]1040 (4) - 67682 [15:45:44]1012 (4) - 17.05.2024 09:29 [15:45:44]1206 (1) - 0 [15:45:44]OFD Sender: Remove packet 67682 [15:45:44]ProducePacketName [15:45:44]name=ofd_packets/00067682 [15:45:44]NVStorageDeleteData [15:45:44]Write to MH i2c: 01 00 00 ED 00 ED [15:45:44]Write i2c OK [15:45:44]MH_I2C_Read... [15:45:44]Read from MH i2c: 01 [15:45:44]MH_I2C_Read... [15:45:44]Read from MH i2c: 01 07 00 [15:45:44]MH_I2C_Read... [15:45:44]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 F4 0C F4 [15:45:44]RasterBufferAndPrint [15:45:44]line [15:45:44]line [15:45:44]line [15:45:44]line [15:45:44]line [15:45:44]written 0, free lines is 3322 [15:45:44]MH_Cut [15:45:44]Write to MH i2c: D1 01 00 F4 00 01 C6 [15:45:44]Write i2c OK [15:45:44]MH_I2C_Read... [15:45:44]Read from MH i2c: D1 [15:45:44]MH_I2C_Read... [15:45:44]Read from MH i2c: D1 01 00 [15:45:44]MH_I2C_Read... [15:45:44]Read from MH i2c: D1 01 00 F4 00 00 C5 [15:45:44]Write to MH i2c: 01 00 00 F5 00 F5 [15:45:44]Write i2c OK [15:45:44]MH_I2C_Read... [15:45:45]OFD Sender: No OFD packet to send [15:45:45]*** Cut start [15:45:45]*** Purtial cut [15:45:45]*** Stage 1: CUTSNS_PIN = 1 [15:45:45]Read from MH i2c: 01 [15:45:45]MH_I2C_Read... [15:45:45]*** Stop cut motor [15:45:45]*** Cut end [15:45:45]Read from MH i2c: 01 07 00 [15:45:45]MH_I2C_Read... [15:45:45]Read from MH i2c: 01 07 00 F5 00 00 00 00 00 00 FF 0F 0A [15:45:45]process_action close_receipt done [15:45:45]requested_data is exist [15:45:45]produce_requested_data [15:45:45]requested_item fm.sn is exist - process it [15:45:45]wFMCommunicate request_size=4 [15:45:45]MH_SAM_APDU [15:45:45]CAPDU: 80 11 00 00 [15:45:45]Write to MH i2c: E2 08 00 F6 00 80 11 00 00 00 00 00 00 70 [15:45:45]Write i2c OK [15:45:45]MH_I2C_Read... [15:45:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:45]Read from MH i2c: E2 [15:45:45]MH_I2C_Read... [15:45:45]Read from MH i2c: E2 17 00 [15:45:45]MH_I2C_Read... [15:45:45]Read from MH i2c: E2 17 00 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C6 [15:45:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:45:45]wFMCommunicate OK [15:45:45]requested_item fd.num is exist - process it [15:45:45]SAM_PROTO_GetFieldsCounters [15:45:45]wFMCommunicate request_size=4 [15:45:45]MH_SAM_APDU [15:45:45]CAPDU: 80 13 00 00 [15:45:45]Write to MH i2c: E2 08 00 F7 00 80 13 00 00 00 00 00 00 73 [15:45:45]Write i2c OK [15:45:45]MH_I2C_Read... [15:45:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:45]Read from MH i2c: E2 [15:45:45]MH_I2C_Read... [15:45:45]Read from MH i2c: E2 62 00 [15:45:45]MH_I2C_Read... [15:45:45]Read from MH i2c: E2 62 00 F7 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 62 08 01 00 0E 04 04 00 66 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 7C [15:45: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 62 08 01 00 0E 04 04 00 66 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 [15:45:45]wFMCommunicate OK [15:45:45]SAM_PROTO_GetFieldsCounters done [15:45:45]requested_item shift.num is exist - process it [15:45:45]requested_item shift.opened is exist - process it [15:45:45]req_shift_opened [15:45:45]FM_GetShiftState [15:45:45]SAM_PROTO_GetShiftState [15:45:45]wFMCommunicate request_size=4 [15:45:45]MH_SAM_APDU [15:45:45]CAPDU: 80 13 01 00 [15:45:45]Write to MH i2c: E2 08 00 F8 00 80 13 01 00 00 00 00 00 75 [15:45:45]Write i2c OK [15:45:45]MH_I2C_Read... [15:45:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:45]Read from MH i2c: E2 [15:45:45]MH_I2C_Read... [15:45:45]Read from MH i2c: E2 0E 00 [15:45:45]MH_I2C_Read... [15:45:45]Read from MH i2c: E2 0E 00 F8 00 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 FB [15:45:45]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:45:45]wFMCommunicate OK [15:45:45]SAM_PROTO_GetShiftState done [15:45:45]FM_GetShiftState done [15:45:45]req_shift_opened done [15:45:45]requested_item shift.open_date is exist - process it [15:45:45]req_shift_open_date [15:45:45]req_shift_open_date done [15:45:45]produce_requested_data done [15:45:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67682,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [15:45:45]process_action_free close_receipt [15:45:45]json_value_free [15:45:45]json_value_free done [15:45:45]process_json_proto returns [15:45:45]Send response to host [15:45:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67682,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [15:45:45]free response buf [15:45:45]execute_script done [15:45:45]execute_script returns [15:45:45]free content buf [15:45:45]Sock 9.Close socket [15:45:45]Sock 9.Thread stoped [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:38]accept exits with 7 [15:46:38]New connection [15:46:38]New thread 3066608996 created [15:46:38]Thread 3066752356 joined [15:46:38]Waiting for new connection... [15:46:38] Sock 7.Parse request [15:46:38]Sock 7.Check first char [15:46:38]Sock 7.First char is OK [15:46:38]request: POST /json_proto HTTP/1.0 [15:46:38]Method: POST [15:46:38]URL: /json_proto [15:46:38]Method is POST - this is cgi request [15:46:38]url: /json_proto [15:46:38]query_string will be loaded in cgi processing [15:46:38]execute_cgi json_proto POST (null) [15:46:38]execute_cgi path=json_proto method=POST [15:46:38]POST find Content-Length [15:46:38]Host: 172.17.41.195:8080 [15:46:38]Content-Length: 1177 [15:46:38]Content-Type: application/json [15:46:38] [15:46:38]POST finish read [15:46:38]Found Content-Length = 1177 [15:46: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507832\u000A17.05.2024 15: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 6.700 x 74.70\u000A\u0418\u0422\u041E\u0413: 500.49\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:38]execute_script... [15:46: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507832\u000A17.05.2024 15: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 6.700 x 74.70\u000A\u0418\u0422\u041E\u0413: 500.49\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:38]POST & json_proto [15:46:38]process_json_proto [15:46:38]json parsed OK: [15:46:38]protocol is kg_v1.0 [15:46:38]action value=print_text [15:46:38]process_action print_text [15:46:38]cmd_print_text [15:46:38]ExternCall_PrintAddStr [15:46:38]wPrintStart [15:46:38]Write to MH i2c: 01 00 00 F9 00 F9 [15:46:38]Write i2c OK [15:46:38]MH_I2C_Read... [15:46:38]Read from MH i2c: 01 [15:46:38]MH_I2C_Read... [15:46:38]Read from MH i2c: 01 07 00 [15:46:38]MH_I2C_Read... [15:46:38]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [15:46:38]RasterBufferAndPrint [15:46:38]line *****ТОВАРНЫЙ ЧЕК***** [15:46:38]line АЗС-91 [15:46:38]line Партнер нефть [15:46:38]line 02508201610067 [15:46:38]line Кассир : Адишов И. [15:46:38]line Счет N : (1)507832 [15:46:38]line 17.05.2024 15:29 [15:46:38]line ПРОДАЖА [15:46:38]line ТРК (МРК, ГНК): 11 [15:46:38]line Вид ГСМ : 2710194210 [15:46:38]line ДТ-К-5 [15:46:38]line 6.700 x 74.70 [15:46:38]line ИТОГ: 500.49 [15:46:38]line Тип оплаты: Талоны: Топливная Карта [15:46:38]line 02750 [15:46:38]line ______________________ [15:46:38]line (подпись) [15:46:38]written 0, free lines is 4095 [15:46:38]Write to MH i2c: 01 00 00 0D 01 0E [15:46:38]Write i2c OK [15:46:38]MH_I2C_Read... [15:46:38]Read from MH i2c: 01 [15:46:38]MH_I2C_Read... [15:46:38]Read from MH i2c: 01 07 00 [15:46:38]MH_I2C_Read... [15:46:38]Read from MH i2c: 01 07 00 0D 01 00 00 00 00 00 0C 0E 2F [15:46:38]RasterBufferAndPrint [15:46:38]line [15:46:38]line [15:46:38]line [15:46:38]line [15:46:38]line [15:46:38]written 0, free lines is 3598 [15:46:38]MH_Cut [15:46:38]Write to MH i2c: D1 01 00 14 01 01 E7 [15:46:38]Write i2c OK [15:46:38]MH_I2C_Read... [15:46:38]Read from MH i2c: D1 [15:46:38]MH_I2C_Read... [15:46:38]Read from MH i2c: D1 01 00 [15:46:38]MH_I2C_Read... [15:46:38]Read from MH i2c: D1 01 00 14 01 00 E6 [15:46:38]Write to MH i2c: 01 00 00 15 01 16 [15:46:38]Write i2c OK [15:46:38]MH_I2C_Read... [15:46:39]*** Cut start [15:46:39]*** Purtial cut [15:46:39]*** CUTSNS_PIN = 0 [15:46:39]*** Stage 1: CUTSNS_PIN = 1 [15:46:40]OFD Sender: No OFD packet to send [15:46:41]Read from MH i2c: 01 [15:46:41]MH_I2C_Read... [15:46:41]*** Stop cut motor [15:46:41]*** Cut end [15:46:41]Read from MH i2c: 01 07 00 [15:46:41]MH_I2C_Read... [15:46:41]Read from MH i2c: 01 07 00 15 01 00 00 00 00 00 FF 0F 2B [15:46:41]process_action print_text done [15:46:41]requested_data is exist [15:46:41]produce_requested_data [15:46:41]requested_item fm.sn is exist - process it [15:46:41]wFMCommunicate request_size=4 [15:46:41]MH_SAM_APDU [15:46:41]CAPDU: 80 11 00 00 [15:46:41]Write to MH i2c: E2 08 00 16 01 80 11 00 00 00 00 00 00 91 [15:46:41]Write i2c OK [15:46:41]MH_I2C_Read... [15:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:41]Read from MH i2c: E2 [15:46:41]MH_I2C_Read... [15:46:41]Read from MH i2c: E2 17 00 [15:46:41]MH_I2C_Read... [15:46:41]Read from MH i2c: E2 17 00 16 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E7 [15:46: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:46:41]wFMCommunicate OK [15:46:41]requested_item fd.num is exist - process it [15:46:41]SAM_PROTO_GetFieldsCounters [15:46:41]wFMCommunicate request_size=4 [15:46:41]MH_SAM_APDU [15:46:41]CAPDU: 80 13 00 00 [15:46:41]Write to MH i2c: E2 08 00 17 01 80 13 00 00 00 00 00 00 94 [15:46:41]Write i2c OK [15:46:41]MH_I2C_Read... [15:46:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:41]Read from MH i2c: E2 [15:46:41]MH_I2C_Read... [15:46:41]Read from MH i2c: E2 62 00 [15:46:41]MH_I2C_Read... [15:46:41]Read from MH i2c: E2 62 00 17 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 62 08 01 00 0E 04 04 00 66 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 9D [15:46: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 62 08 01 00 0E 04 04 00 66 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 [15:46:41]wFMCommunicate OK [15:46:41]SAM_PROTO_GetFieldsCounters done [15:46:41]requested_item shift.num is exist - process it [15:46:41]requested_item shift.opened is exist - process it [15:46:41]req_shift_opened [15:46:41]FM_GetShiftState [15:46:41]SAM_PROTO_GetShiftState [15:46:41]wFMCommunicate request_size=4 [15:46:41]MH_SAM_APDU [15:46:41]CAPDU: 80 13 01 00 [15:46:41]Write to MH i2c: E2 08 00 18 01 80 13 01 00 00 00 00 00 96 [15:46:41]Write i2c OK [15:46:41]MH_I2C_Read... [15:46:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:41]Read from MH i2c: E2 [15:46:41]MH_I2C_Read... [15:46:41]Read from MH i2c: E2 0E 00 [15:46:41]MH_I2C_Read... [15:46:41]Read from MH i2c: E2 0E 00 18 01 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 1C [15:46:41]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:46:41]wFMCommunicate OK [15:46:41]SAM_PROTO_GetShiftState done [15:46:41]FM_GetShiftState done [15:46:41]req_shift_opened done [15:46:41]requested_item shift.open_date is exist - process it [15:46:41]req_shift_open_date [15:46:41]req_shift_open_date done [15:46:41]produce_requested_data done [15:46:41]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67682,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [15:46:41]process_action_free print_text [15:46:41]json_value_free [15:46:41]json_value_free done [15:46:41]process_json_proto returns [15:46:41]Send response to host [15:46:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67682,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [15:46:41]free response buf [15:46:41]execute_script done [15:46:41]execute_script returns [15:46:41]free content buf [15:46:41]Sock 7.Close socket [15:46:41]Sock 7.Thread stoped [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:00]accept exits with 9 [15:49:00]New connection [15:49:00]New thread 3066752356 created [15:49:00]Thread 3066608996 joined [15:49:00]Waiting for new connection... [15:49:00] Sock 9.Parse request [15:49:00]Sock 9.Check first char [15:49:00]Sock 9.First char is OK [15:49:00]request: POST /json_proto HTTP/1.0 [15:49:00]Method: POST [15:49:00]URL: /json_proto [15:49:00]Method is POST - this is cgi request [15:49:00]url: /json_proto [15:49:00]query_string will be loaded in cgi processing [15:49:00]execute_cgi json_proto POST (null) [15:49:00]execute_cgi path=json_proto method=POST [15:49:00]POST find Content-Length [15:49:00]Host: 172.17.41.195:8080 [15:49:00]Content-Length: 677 [15:49:00]Content-Type: application/json [15:49:00] [15:49:00]POST finish read [15:49:00]Found Content-Length = 677 [15:49:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507833", "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.240, "sum" : 350.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:00]execute_script... [15:49: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)507833", "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.240, "sum" : 350.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:00]POST & json_proto [15:49:00]process_json_proto [15:49:00]json parsed OK: [15:49:00]protocol is kg_v1.0 [15:49:00]action value=close_receipt [15:49:00]process_action close_receipt [15:49:00]cmd_close_receipt [15:49:00]MH_GetDate [15:49:00]Write to MH i2c: F0 00 00 19 01 09 [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: F0 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: F0 09 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: F0 09 00 19 01 00 6D 7C 47 66 FC 21 6F 64 98 [15:49:00]GetLastDocTimeStamp 1715960743 [15:49:00]current date 1715960941 [15:49:00]FM_GetShiftState [15:49:00]SAM_PROTO_GetShiftState [15:49:00]wFMCommunicate request_size=4 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 13 01 00 [15:49:00]Write to MH i2c: E2 08 00 1A 01 80 13 01 00 00 00 00 00 98 [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:00]Read from MH i2c: E2 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 0E 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 0E 00 1A 01 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 1E [15:49:00]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:49:00]wFMCommunicate OK [15:49:00]SAM_PROTO_GetShiftState done [15:49:00]FM_GetShiftState done [15:49:00]opened in 1715905068 [15:49:00]opened+sec_in_day 1715991468 [15:49:00]quantity*price = 35003 [15:49:00]sum+1 = 35004 [15:49:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 92 17.05.2024 15:49 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67683 ФПД: 56380238742912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T154901&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67683&fm=56380238742912&tin=02508201610067®Number=0000000000091845&sum=35000 [15:49:02]StoreToDocumentArchive [15:49:02]shift 358 fd 67683 [15:49:02]save to /storage/0358/doc_00067683 [15:49:02]save last doc name /storage/0358/doc_00067683 to /storage/kkm_last_doc_name [15:49:02]save OK [15:49:02]Clear old archive folders... [15:49:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:49:02]tlvbuf is 01B2B180 [15:49:02]SAM_PROTO_ClearQueue [15:49:02]wFMCommunicate request_size=4 [15:49:02]MH_SAM_APDU [15:49:02]CAPDU: 80 09 00 00 [15:49:02]Write to MH i2c: E2 08 00 27 01 80 09 00 00 00 00 00 00 9A [15:49:02]Write i2c OK [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 [15:49:02]MH_I2C_Read... [15:49:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:02]Read from MH i2c: E2 03 00 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 03 00 27 01 00 90 00 9C [15:49:02]RAPDU: 90 00 [15:49:02]wFMCommunicate OK [15:49:02]SAM_PROTO_ClearQueue done [15:49:02]KKMCreateOFDPacket [15:49:02]OFDProtocolAddRootSTLVToBuf [15:49:02]FM_MakeSignedData [15:49:02]FM_MakeSignedData [15:49:02]SAM_PROTO_SignData [15:49:02]wFMCommunicate request_size=4 [15:49:02]MH_SAM_APDU [15:49:02]CAPDU: 80 0D 01 02 [15:49:02]Write to MH i2c: E2 08 00 28 01 80 0D 01 02 00 00 00 00 A2 [15:49:02]Write i2c OK [15:49:02]MH_I2C_Read... [15:49:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:02]Read from MH i2c: E2 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 03 00 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 03 00 28 01 00 90 00 9D [15:49:02]RAPDU: 90 00 [15:49:02]wFMCommunicate OK [15:49:02]wFMCommunicate request_size=255 [15:49:02]MH_SAM_APDU [15:49:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 BB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 6D 7C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 63 08 01 00 35 04 06 00 33 [15:49:02]Write to MH i2c: E2 02 01 29 01 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 78 14 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 BB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 6D 7C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 63 08 01 00 35 04 06 00 33 00 00 F4 [15:49:02]Write i2c OK [15:49:02]MH_I2C_Read... [15:49:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:02]Read from MH i2c: E2 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 03 00 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 03 00 29 01 00 90 00 9E [15:49:02]RAPDU: 90 00 [15:49:02]wFMCommunicate OK [15:49:02]wFMCommunicate request_size=10 [15:49:02]MH_SAM_APDU [15:49:02]CAPDU: 80 0D 02 02 05 47 0C 1A 45 80 [15:49:02]Write to MH i2c: E2 0D 00 2A 01 80 0D 02 02 05 00 47 0C 1A 45 80 00 00 E1 [15:49:02]Write i2c OK [15:49:02]MH_I2C_Read... [15:49:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:02]Read from MH i2c: E2 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 03 00 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 03 00 2A 01 00 90 00 9F [15:49:02]RAPDU: 90 00 [15:49:02]wFMCommunicate OK [15:49:02]wFMCommunicate request_size=4 [15:49:02]MH_SAM_APDU [15:49:02]CAPDU: 80 0D 03 02 [15:49:02]Write to MH i2c: E2 08 00 2B 01 80 0D 03 02 00 00 00 00 A7 [15:49:02]Write i2c OK [15:49:02]MH_I2C_Read... [15:49:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:02]Read from MH i2c: E2 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 0B 00 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 0B 00 2B 01 00 A9 9D 52 D8 C5 AE 41 3F 90 00 0B [15:49:02]RAPDU: A9 9D 52 D8 C5 AE 41 3F 90 00 [15:49:02]wFMCommunicate OK [15:49:02]SAM_PROTO_SignData done [15:49:02]FM_MakeSignedData done [15:49:02]CreateOFDProtocolMessage [15:49:02]wFMCommunicate request_size=4 [15:49:02]MH_SAM_APDU [15:49:02]CAPDU: 80 11 00 00 [15:49:02]Write to MH i2c: E2 08 00 2C 01 80 11 00 00 00 00 00 00 A7 [15:49:02]Write i2c OK [15:49:02]MH_I2C_Read... [15:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:02]Read from MH i2c: E2 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 17 00 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 17 00 2C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FD [15:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:49:02]wFMCommunicate OK [15:49:02]CreateOFDProtocolMessage done [15:49:02]OFDSenderStorePacket 67683 [15:49:02]StoreOFDPacket docnum=67683 [15:49: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 5A 25 07 01 7A 42 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 78 14 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 BB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 6D 7C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 63 08 01 00 35 04 06 00 33 47 0C 1A 45 80 A9 9D 52 D8 C5 AE 41 3F [15:49:02]CheckFolder [15:49:02]dirname=/storage/ofd_packets [15:49:02]CheckFolder done [15:49:02]ProducePacketName [15:49:02]name=ofd_packets/00067683 [15:49:02]NVStorageSaveData ofd_packets/00067683 [15:49:02]File name is /storage/ofd_packets/00067683 [15:49:02]Write 301 bytes [15:49:02]NVStorageSaveData done [15:49:02]OFDSenderStorePacket done [15:49:02]KKMCreateOFDPacket done [15:49:02]NVStorageSaveData kkm_last_timestamp [15:49:02]File name is /storage/kkm_last_timestamp [15:49:02]Write 4 bytes [15:49:02]NVStorageSaveData done [15:49:02]ExternCall_PrintAddStr [15:49:02]wPrintStart [15:49:02]Write to MH i2c: 01 00 00 2D 01 2E [15:49:02]Write i2c OK [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: 01 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: 01 07 00 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: 01 07 00 2D 01 00 00 00 00 00 FF 0F 43 [15:49:02]RasterBufferAndPrint [15:49:02]line Счет N : (1)507833 [15:49:02]line ИНН: 02508201610067 [15:49:02]line Контрольно-Кассовый Чек [15:49:02]line ПРОДАЖА [15:49:02]line ТРК (МРК, ГНК) : 43 [15:49:02]line Товар: 2710124130 [15:49:02]line Аи-92-К-5 [15:49:02]line 5.240 * 66.80 [15:49:02]line = 350.03 [15:49:02]line НДС 12% НСП 1% [15:49:02]line > о реализуемом товаре [15:49:02]line ОКРУГЛЕНИЕ: -0.03 [15:49:02]line ИТОГО: 350.00 [15:49:02]line Внесено: 350.00 [15:49:02]line СДАЧА: 0.00 [15:49:02]line НСП 1% : 3.10 [15:49:02]line НДС 12% : 37.17 [15:49:02]line Наличными: 350.00 [15:49:02]line Безнал.: 0.00 [15:49:02]line Место: АЗС № 91 "Партнер Нефть" [15:49:02]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:49:02]line СНО: Общий режим [15:49:02]line Чек 92 17.05.2024 15:49 [15:49:02]line Смена: 358 ФФД: 1.0 [15:49:02]line ЗНМ: 0300000119 [15:49:02]line РНМ: 0000000000091845 [15:49:02]line Версия ККМ: 001 [15:49:02]line ФМ: 0000000000871829 [15:49:02]line ФД: 67683 [15:49:02]line ФПД: 56380238742912 [15:49:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T154901&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67683&fm=56380238742912&tin=02508201610067®Number=0000000000091845&sum=35000 [15:49:02]written 0, free lines is 4095 [15:49:02]OFD Sender: Processing packet 67683 [packets to send 35, broken 34] [15:49:02]ProducePacketName [15:49:02]name=ofd_packets/00067683 [15:49:02]OFD Sender: To server: pG, [15:49:02]CommunicateWithHost lk.salyk.kg:30040 [15:49:02]ConnectInit lk.salyk.kg [15:49:03]Write to MH i2c: 01 00 00 57 01 58 [15:49:03]Write i2c OK [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: 01 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: 01 07 00 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: 01 07 00 57 01 00 00 00 00 00 CD 0C 38 [15:49:03]RasterBufferAndPrint [15:49:03]line [15:49:03]line [15:49:03]line [15:49:03]line [15:49:03]line [15:49:03]written 0, free lines is 3280 [15:49:03]MH_Cut [15:49:03]Write to MH i2c: D1 01 00 5E 01 01 31 [15:49:03]Write i2c OK [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: D1 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: D1 01 00 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: D1 01 00 5E 01 00 30 [15:49:03]Write to MH i2c: 01 00 00 5F 01 60 [15:49:03]Write i2c OK [15:49:03]MH_I2C_Read... [15:49:04]*** Cut start [15:49:04]*** Purtial cut [15:49:04]*** Stage 1: CUTSNS_PIN = 1 [15:49:04]Read from MH i2c: 01 [15:49:04]MH_I2C_Read... [15:49:04]*** Stop cut motor [15:49:04]*** Cut end [15:49:04]Read from MH i2c: 01 07 00 [15:49:04]MH_I2C_Read... [15:49:04]Read from MH i2c: 01 07 00 5F 01 00 00 00 00 00 FF 0F 75 [15:49:04]process_action close_receipt done [15:49:04]requested_data is exist [15:49:04]produce_requested_data [15:49:04]requested_item fm.sn is exist - process it [15:49:04]wFMCommunicate request_size=4 [15:49:04]MH_SAM_APDU [15:49:04]CAPDU: 80 11 00 00 [15:49:04]Write to MH i2c: E2 08 00 60 01 80 11 00 00 00 00 00 00 DB [15:49:04]Write i2c OK [15:49:04]MH_I2C_Read... [15:49:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:04]Read from MH i2c: E2 [15:49:04]MH_I2C_Read... [15:49:04]Read from MH i2c: E2 17 00 [15:49:04]MH_I2C_Read... [15:49:04]Read from MH i2c: E2 17 00 60 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 31 [15:49:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:49:04]wFMCommunicate OK [15:49:04]requested_item fd.num is exist - process it [15:49:04]SAM_PROTO_GetFieldsCounters [15:49:04]wFMCommunicate request_size=4 [15:49:04]MH_SAM_APDU [15:49:04]CAPDU: 80 13 00 00 [15:49:04]Write to MH i2c: E2 08 00 61 01 80 13 00 00 00 00 00 00 DE [15:49:04]Write i2c OK [15:49:04]MH_I2C_Read... [15:49:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:04]Read from MH i2c: E2 [15:49:04]MH_I2C_Read... [15:49:04]Read from MH i2c: E2 62 00 [15:49:04]MH_I2C_Read... [15:49:04]Read from MH i2c: E2 62 00 61 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 63 08 01 00 0E 04 04 00 66 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 EB [15:49: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 63 08 01 00 0E 04 04 00 66 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 [15:49:04]wFMCommunicate OK [15:49:04]SAM_PROTO_GetFieldsCounters done [15:49:04]requested_item shift.num is exist - process it [15:49:04]requested_item shift.opened is exist - process it [15:49:04]req_shift_opened [15:49:04]FM_GetShiftState [15:49:04]SAM_PROTO_GetShiftState [15:49:04]wFMCommunicate request_size=4 [15:49:04]MH_SAM_APDU [15:49:04]CAPDU: 80 13 01 00 [15:49:04]Write to MH i2c: E2 08 00 62 01 80 13 01 00 00 00 00 00 E0 [15:49:04]Write i2c OK [15:49:04]MH_I2C_Read... [15:49:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:04]Read from MH i2c: E2 [15:49:04]MH_I2C_Read... [15:49:04]Read from MH i2c: E2 0E 00 [15:49:04]MH_I2C_Read... [15:49:04]Read from MH i2c: E2 0E 00 62 01 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 66 [15:49:04]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:49:04]wFMCommunicate OK [15:49:04]SAM_PROTO_GetShiftState done [15:49:04]FM_GetShiftState done [15:49:04]req_shift_opened done [15:49:04]requested_item shift.open_date is exist - process it [15:49:04]req_shift_open_date [15:49:04]req_shift_open_date done [15:49:04]produce_requested_data done [15:49:04]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67683,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [15:49:04]process_action_free close_receipt [15:49:04]json_value_free [15:49:04]json_value_free done [15:49:04]process_json_proto returns [15:49:04]Send response to host [15:49:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67683,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [15:49:04]free response buf [15:49:04]execute_script done [15:49:04]execute_script returns [15:49:04]free content buf [15:49:04]Sock 9.Close socket [15:49:04]Sock 9.Thread stoped [15:51:14]ConnectInit Can't connect to host [15:51:14]CommunicateWithHost connect error [15:51:14]CommunicateWithHost err = -1 [15:51:14]OFD Sender: Server communicate error [15:51:19]OFD Sender: Processing packet 67683 [packets to send 35, broken 34] [15:51:19]ProducePacketName [15:51:19]name=ofd_packets/00067683 [15:51:19]OFD Sender: To server: pG, [15:51:19]CommunicateWithHost lk.salyk.kg:30040 [15:51:19]ConnectInit lk.salyk.kg [15:51:19]Connected sock=9 [15:51: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 5A 25 07 01 7A 42 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 78 14 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 BB 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 6D 7C 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 63 08 01 00 35 04 06 00 33 47 0C 1A 45 80 A9 9D 52 D8 C5 AE 41 3F [15:51: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 4A 65 47 00 5C CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 63 08 01 00 F4 03 04 00 CE 24 47 66 B6 04 01 00 00 4B 40 C8 60 30 A7 55 59 [15:51:19]CommunicateWithHost err = 0 [15:51:19]CheckOFDResponse [15:51:19]1017 (14) - 77093643461234 [15:51:19]1041 (16) - 0000000000871829 [15:51:19]1040 (4) - 67683 [15:51:19]1012 (4) - 17.05.2024 09:35 [15:51:19]1206 (1) - 0 [15:51:19]OFD Sender: Remove packet 67683 [15:51:19]ProducePacketName [15:51:19]name=ofd_packets/00067683 [15:51:19]NVStorageDeleteData [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:12]accept exits with 7 [15:54:12]New connection [15:54:12]New thread 3066608996 created [15:54:12]Thread 3066752356 joined [15:54:12]Waiting for new connection... [15:54:12] Sock 7.Parse request [15:54:12]Sock 7.Check first char [15:54:12]Sock 7.First char is OK [15:54:12]request: POST /json_proto HTTP/1.0 [15:54:12]Method: POST [15:54:12]URL: /json_proto [15:54:12]Method is POST - this is cgi request [15:54:12]url: /json_proto [15:54:12]query_string will be loaded in cgi processing [15:54:12]execute_cgi json_proto POST (null) [15:54:12]execute_cgi path=json_proto method=POST [15:54:12]POST find Content-Length [15:54:12]Host: 172.17.41.195:8080 [15:54:12]Content-Length: 800 [15:54:12]Content-Type: application/json [15:54:12] [15:54:12]POST finish read [15:54:12]Found Content-Length = 800 [15:54:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507834", "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" ] } } [15:54:12]execute_script... [15:54: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)507834", "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" ] } } [15:54:12]POST & json_proto [15:54:12]process_json_proto [15:54:12]json parsed OK: [15:54:12]protocol is kg_v1.0 [15:54:12]action value=close_receipt [15:54:12]process_action close_receipt [15:54:12]cmd_close_receipt [15:54:12]MH_GetDate [15:54:12]Write to MH i2c: F0 00 00 63 01 53 [15:54:12]Write i2c OK [15:54:12]MH_I2C_Read... [15:54:12]Read from MH i2c: F0 [15:54:12]MH_I2C_Read... [15:54:12]Read from MH i2c: F0 09 00 [15:54:12]MH_I2C_Read... [15:54:12]Read from MH i2c: F0 09 00 63 01 00 A5 7D 47 66 FC 21 6F 64 1B [15:54:12]GetLastDocTimeStamp 1715960941 [15:54:12]current date 1715961253 [15:54:12]FM_GetShiftState [15:54:12]SAM_PROTO_GetShiftState [15:54:12]wFMCommunicate request_size=4 [15:54:12]MH_SAM_APDU [15:54:12]CAPDU: 80 13 01 00 [15:54:12]Write to MH i2c: E2 08 00 64 01 80 13 01 00 00 00 00 00 E2 [15:54:12]Write i2c OK [15:54:12]MH_I2C_Read... [15:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:12]Read from MH i2c: E2 [15:54:12]MH_I2C_Read... [15:54:12]Read from MH i2c: E2 0E 00 [15:54:12]MH_I2C_Read... [15:54:12]Read from MH i2c: E2 0E 00 64 01 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 68 [15:54:12]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:54:12]wFMCommunicate OK [15:54:12]SAM_PROTO_GetShiftState done [15:54:12]FM_GetShiftState done [15:54:12]opened in 1715905068 [15:54:12]opened+sec_in_day 1715991468 [15:54:12]quantity*price = 100023 [15:54:12]sum+1 = 100024 [15:54:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 93 17.05.2024 15:54 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67684 ФПД: 208239555932355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T155413&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67684&fm=208239555932355&tin=02508201610067®Number=0000000000091845&sum=100023 [15:54:13]StoreToDocumentArchive [15:54:13]shift 358 fd 67684 [15:54:13]save to /storage/0358/doc_00067684 [15:54:13]save last doc name /storage/0358/doc_00067684 to /storage/kkm_last_doc_name [15:54:13]save OK [15:54:13]Clear old archive folders... [15:54:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:54:13]tlvbuf is 01AFA9A0 [15:54:13]SAM_PROTO_ClearQueue [15:54:13]wFMCommunicate request_size=4 [15:54:13]MH_SAM_APDU [15:54:13]CAPDU: 80 09 00 00 [15:54:13]Write to MH i2c: E2 08 00 71 01 80 09 00 00 00 00 00 00 E4 [15:54:13]Write i2c OK [15:54:13]MH_I2C_Read... [15:54:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:54:13]Read from MH i2c: E2 [15:54:13]MH_I2C_Read... [15:54:13]Read from MH i2c: E2 03 00 [15:54:13]MH_I2C_Read... [15:54:13]Read from MH i2c: E2 03 00 71 01 00 90 00 E6 [15:54:13]RAPDU: 90 00 [15:54:13]wFMCommunicate OK [15:54:13]SAM_PROTO_ClearQueue done [15:54:13]KKMCreateOFDPacket [15:54:13]OFDProtocolAddRootSTLVToBuf [15:54:13]FM_MakeSignedData [15:54:13]FM_MakeSignedData [15:54:13]SAM_PROTO_SignData [15:54:13]wFMCommunicate request_size=4 [15:54:13]MH_SAM_APDU [15:54:13]CAPDU: 80 0D 01 02 [15:54:13]Write to MH i2c: E2 08 00 72 01 80 0D 01 02 00 00 00 00 EC [15:54:13]Write i2c OK [15:54:13]MH_I2C_Read... [15:54:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:54:13]Read from MH i2c: E2 [15:54:13]MH_I2C_Read... [15:54:13]Read from MH i2c: E2 03 00 [15:54:13]MH_I2C_Read... [15:54:13]Read from MH i2c: E2 03 00 72 01 00 90 00 E7 [15:54:13]RAPDU: 90 00 [15:54:13]wFMCommunicate OK [15:54:13]wFMCommunicate request_size=255 [15:54:13]MH_SAM_APDU [15:54: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 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 5D 00 00 00 F4 03 04 00 A5 7D 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 64 08 01 00 35 04 06 00 BD 64 8C C2 [15:54:13]Write to MH i2c: E2 02 01 73 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 5D 00 00 00 F4 03 04 00 A5 7D 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 64 08 01 00 35 04 06 00 BD 64 8C C2 00 00 63 [15:54:13]Write i2c OK [15:54:13]MH_I2C_Read... [15:54:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:13]Read from MH i2c: E2 [15:54:13]MH_I2C_Read... [15:54:13]Read from MH i2c: E2 03 00 [15:54:13]MH_I2C_Read... [15:54:13]Read from MH i2c: E2 03 00 73 01 00 90 00 E8 [15:54:13]RAPDU: 90 00 [15:54:13]wFMCommunicate OK [15:54:13]wFMCommunicate request_size=7 [15:54:13]MH_SAM_APDU [15:54:13]CAPDU: 80 0D 02 02 02 70 C3 [15:54:13]Write to MH i2c: E2 0A 00 74 01 80 0D 02 02 02 00 70 C3 00 00 26 [15:54:13]Write i2c OK [15:54:13]MH_I2C_Read... [15:54:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:13]Read from MH i2c: E2 [15:54:13]MH_I2C_Read... [15:54:13]Read from MH i2c: E2 03 00 [15:54:13]MH_I2C_Read... [15:54:13]Read from MH i2c: E2 03 00 74 01 00 90 00 E9 [15:54:13]RAPDU: 90 00 [15:54:13]wFMCommunicate OK [15:54:13]wFMCommunicate request_size=4 [15:54:13]MH_SAM_APDU [15:54:13]CAPDU: 80 0D 03 02 [15:54:13]Write to MH i2c: E2 08 00 75 01 80 0D 03 02 00 00 00 00 F1 [15:54:13]Write i2c OK [15:54:13]MH_I2C_Read... [15:54:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:54:14]Read from MH i2c: E2 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: E2 0B 00 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: E2 0B 00 75 01 00 DC 77 13 47 89 B9 6D EE 90 00 3C [15:54:14]RAPDU: DC 77 13 47 89 B9 6D EE 90 00 [15:54:14]wFMCommunicate OK [15:54:14]SAM_PROTO_SignData done [15:54:14]FM_MakeSignedData done [15:54:14]CreateOFDProtocolMessage [15:54:14]wFMCommunicate request_size=4 [15:54:14]MH_SAM_APDU [15:54:14]CAPDU: 80 11 00 00 [15:54:14]Write to MH i2c: E2 08 00 76 01 80 11 00 00 00 00 00 00 F1 [15:54:14]Write i2c OK [15:54:14]MH_I2C_Read... [15:54:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:14]Read from MH i2c: E2 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: E2 17 00 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: E2 17 00 76 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 47 [15: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 [15:54:14]wFMCommunicate OK [15:54:14]CreateOFDProtocolMessage done [15:54:14]OFDSenderStorePacket 67684 [15:54:14]StoreOFDPacket docnum=67684 [15:54: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 52 84 04 01 5C 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 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 5D 00 00 00 F4 03 04 00 A5 7D 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 64 08 01 00 35 04 06 00 BD 64 8C C2 70 C3 DC 77 13 47 89 B9 6D EE [15:54:14]CheckFolder [15:54:14]dirname=/storage/ofd_packets [15:54:14]CheckFolder done [15:54:14]ProducePacketName [15:54:14]name=ofd_packets/00067684 [15:54:14]NVStorageSaveData ofd_packets/00067684 [15:54:14]File name is /storage/ofd_packets/00067684 [15:54:14]Write 298 bytes [15:54:14]NVStorageSaveData done [15:54:14]OFDSenderStorePacket done [15:54:14]KKMCreateOFDPacket done [15:54:14]NVStorageSaveData kkm_last_timestamp [15:54:14]File name is /storage/kkm_last_timestamp [15:54:14]Write 4 bytes [15:54:14]NVStorageSaveData done [15:54:14]ExternCall_PrintAddStr [15:54:14]wPrintStart [15:54:14]Write to MH i2c: 01 00 00 77 01 78 [15:54:14]Write i2c OK [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: 01 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: 01 07 00 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: 01 07 00 77 01 00 00 00 00 00 FF 0F 8D [15:54:14]RasterBufferAndPrint [15:54:14]line Счет N : (1)507834 [15:54:14]line ИНН: 02508201610067 [15:54:14]line Контрольно-Кассовый Чек [15:54:14]line ПРОДАЖА [15:54:14]line ТРК (МРК, ГНК) : 21 [15:54:14]line Товар: 2710194210 [15:54:14]line ДТ-К-5 [15:54:14]line 13.390 * 74.70 [15:54:14]line = 1000.23 [15:54:14]line НДС 12% НСП 1% [15:54:14]line > о реализуемом товаре [15:54:14]line ИТОГО: 1000.23 [15:54:14]line НСП 1% : 8.85 [15:54:14]line НДС 12% : 106.22 [15:54:14]line Наличными: 0.00 [15:54:14]line Безнал.: 1000.23 [15:54:14]line Место: АЗС № 91 "Партнер Нефть" [15:54:14]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:54:14]line СНО: Общий режим [15:54:14]line Чек 93 17.05.2024 15:54 [15:54:14]line Смена: 358 ФФД: 1.0 [15:54:14]line ЗНМ: 0300000119 [15:54:14]line РНМ: 0000000000091845 [15:54:14]line Версия ККМ: 001 [15:54:14]line Платежная система: O! деньги [15:54:14]line ФМ: 0000000000871829 [15:54:14]line ФД: 67684 [15:54:14]line ФПД: 208239555932355 [15:54:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T155413&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67684&fm=208239555932355&tin=02508201610067®Number=0000000000091845&sum=100023 [15:54:14]OFD Sender: Processing packet 67684 [packets to send 35, broken 34] [15:54:14]ProducePacketName [15:54:14]name=ofd_packets/00067684 [15:54:14]OFD Sender: To server: pG, [15:54:14]CommunicateWithHost lk.salyk.kg:30040 [15:54:14]ConnectInit lk.salyk.kg [15:54:14]written 0, free lines is 4095 [15:54:14]Connected sock=10 [15:54: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 52 84 04 01 5C 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 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 5D 00 00 00 F4 03 04 00 A5 7D 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 64 08 01 00 35 04 06 00 BD 64 8C C2 70 C3 DC 77 13 47 89 B9 6D EE [15:54: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 7A DD 47 00 7F 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 64 08 01 00 F4 03 04 00 7D 25 47 66 B6 04 01 00 00 55 A6 C7 50 01 01 2B 20 [15:54:14]CommunicateWithHost err = 0 [15:54:14]CheckOFDResponse [15:54:14]1017 (14) - 77093643461234 [15:54:14]1041 (16) - 0000000000871829 [15:54:14]1040 (4) - 67684 [15:54:14]1012 (4) - 17.05.2024 09:38 [15:54:14]1206 (1) - 0 [15:54:14]OFD Sender: Remove packet 67684 [15:54:14]ProducePacketName [15:54:14]name=ofd_packets/00067684 [15:54:14]NVStorageDeleteData [15:54:14]Write to MH i2c: 01 00 00 A0 01 A1 [15:54:14]Write i2c OK [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: 01 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: 01 07 00 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: 01 07 00 A0 01 00 00 00 00 00 F7 0C AB [15:54:14]RasterBufferAndPrint [15:54:14]line [15:54:14]line [15:54:14]line [15:54:14]line [15:54:14]line [15:54:14]written 0, free lines is 3326 [15:54:14]MH_Cut [15:54:14]Write to MH i2c: D1 01 00 A7 01 01 7A [15:54:14]Write i2c OK [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: D1 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: D1 01 00 [15:54:14]MH_I2C_Read... [15:54:14]Read from MH i2c: D1 01 00 A7 01 00 79 [15:54:14]Write to MH i2c: 01 00 00 A8 01 A9 [15:54:14]Write i2c OK [15:54:14]MH_I2C_Read... [15:54:15]OFD Sender: No OFD packet to send [15:54:15]*** Cut start [15:54:15]*** Purtial cut [15:54:15]*** CUTSNS_PIN = 0 [15:54:15]*** Stage 1: CUTSNS_PIN = 1 [15:54:17]Read from MH i2c: 01 [15:54:17]MH_I2C_Read... [15:54:17]*** Stop cut motor [15:54:17]*** Cut end [15:54:17]Read from MH i2c: 01 07 00 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: 01 07 00 A8 01 00 00 00 00 00 FF 0F BE [15:54:17]process_action close_receipt done [15:54:17]requested_data is exist [15:54:17]produce_requested_data [15:54:17]requested_item fm.sn is exist - process it [15:54:17]wFMCommunicate request_size=4 [15:54:17]MH_SAM_APDU [15:54:17]CAPDU: 80 11 00 00 [15:54:17]Write to MH i2c: E2 08 00 A9 01 80 11 00 00 00 00 00 00 24 [15:54:17]Write i2c OK [15:54:17]MH_I2C_Read... [15:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:17]Read from MH i2c: E2 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 17 00 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 17 00 A9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7A [15:54:17]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:17]wFMCommunicate OK [15:54:17]requested_item fd.num is exist - process it [15:54:17]SAM_PROTO_GetFieldsCounters [15:54:17]wFMCommunicate request_size=4 [15:54:17]MH_SAM_APDU [15:54:17]CAPDU: 80 13 00 00 [15:54:17]Write to MH i2c: E2 08 00 AA 01 80 13 00 00 00 00 00 00 27 [15:54:17]Write i2c OK [15:54:17]MH_I2C_Read... [15:54:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:17]Read from MH i2c: E2 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 62 00 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 62 00 AA 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 64 08 01 00 0E 04 04 00 66 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 38 [15:54: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 64 08 01 00 0E 04 04 00 66 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 [15:54:17]wFMCommunicate OK [15:54:17]SAM_PROTO_GetFieldsCounters done [15:54:17]requested_item shift.num is exist - process it [15:54:17]requested_item shift.opened is exist - process it [15:54:17]req_shift_opened [15:54:17]FM_GetShiftState [15:54:17]SAM_PROTO_GetShiftState [15:54:17]wFMCommunicate request_size=4 [15:54:17]MH_SAM_APDU [15:54:17]CAPDU: 80 13 01 00 [15:54:17]Write to MH i2c: E2 08 00 AB 01 80 13 01 00 00 00 00 00 29 [15:54:17]Write i2c OK [15:54:17]MH_I2C_Read... [15:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:17]Read from MH i2c: E2 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 0E 00 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 0E 00 AB 01 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 AF [15:54:17]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [15:54:17]wFMCommunicate OK [15:54:17]SAM_PROTO_GetShiftState done [15:54:17]FM_GetShiftState done [15:54:17]req_shift_opened done [15:54:17]requested_item shift.open_date is exist - process it [15:54:17]req_shift_open_date [15:54:17]req_shift_open_date done [15:54:17]produce_requested_data done [15:54:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67684,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [15:54:17]process_action_free close_receipt [15:54:17]json_value_free [15:54:17]json_value_free done [15:54:17]process_json_proto returns [15:54:17]Send response to host [15:54:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67684,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [15:54:17]free response buf [15:54:17]execute_script done [15:54:17]execute_script returns [15:54:17]free content buf [15:54:17]Sock 7.Close socket [15:54:17]Sock 7.Thread stoped [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]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:25]OFD Sender: No OFD packet to send [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:02]accept exits with 9 [16:08:02]New connection [16:08:02]New thread 3066752356 created [16:08:02]Thread 3066608996 joined [16:08:02]Waiting for new connection... [16:08:02] Sock 9.Parse request [16:08:02]Sock 9.Check first char [16:08:02]Sock 9.First char is OK [16:08:02]request: POST /json_proto HTTP/1.0 [16:08:02]Method: POST [16:08:02]URL: /json_proto [16:08:02]Method is POST - this is cgi request [16:08:02]url: /json_proto [16:08:02]query_string will be loaded in cgi processing [16:08:02]execute_cgi json_proto POST (null) [16:08:02]execute_cgi path=json_proto method=POST [16:08:02]POST find Content-Length [16:08:02]Host: 172.17.41.195:8080 [16:08:02]Content-Length: 677 [16:08:02]Content-Type: application/json [16:08:02] [16:08:02]POST finish read [16:08:02]Found Content-Length = 677 [16:08:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507835", "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" ] } } [16:08:02]execute_script... [16:08: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)507835", "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" ] } } [16:08:02]POST & json_proto [16:08:02]process_json_proto [16:08:02]json parsed OK: [16:08:02]protocol is kg_v1.0 [16:08:02]action value=close_receipt [16:08:02]process_action close_receipt [16:08:02]cmd_close_receipt [16:08:02]MH_GetDate [16:08:02]Write to MH i2c: F0 00 00 AC 01 9C [16:08:02]Write i2c OK [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: F0 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: F0 09 00 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: F0 09 00 AC 01 00 E3 80 47 66 FC 21 6F 64 A5 [16:08:02]GetLastDocTimeStamp 1715961253 [16:08:02]current date 1715962083 [16:08:02]FM_GetShiftState [16:08:02]SAM_PROTO_GetShiftState [16:08:02]wFMCommunicate request_size=4 [16:08:02]MH_SAM_APDU [16:08:02]CAPDU: 80 13 01 00 [16:08:02]Write to MH i2c: E2 08 00 AD 01 80 13 01 00 00 00 00 00 2B [16:08:02]Write i2c OK [16:08:02]MH_I2C_Read... [16:08:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:03]Read from MH i2c: E2 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 0E 00 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: E2 0E 00 AD 01 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 B1 [16:08:03]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [16:08:03]wFMCommunicate OK [16:08:03]SAM_PROTO_GetShiftState done [16:08:03]FM_GetShiftState done [16:08:03]opened in 1715905068 [16:08:03]opened+sec_in_day 1715991468 [16:08:03]quantity*price = 60053 [16:08:03]sum+1 = 60054 [16:08:03]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 СНО: Общий режим Чек 94 17.05.2024 16:08 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67685 ФПД: 84588501494686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T160803&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67685&fm=84588501494686&tin=02508201610067®Number=0000000000091845&sum=60000 [16:08:04]StoreToDocumentArchive [16:08:04]shift 358 fd 67685 [16:08:04]save to /storage/0358/doc_00067685 [16:08:04]save last doc name /storage/0358/doc_00067685 to /storage/kkm_last_doc_name [16:08:04]save OK [16:08:04]Clear old archive folders... [16:08:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:04]tlvbuf is 01AFA580 [16:08:04]SAM_PROTO_ClearQueue [16:08:04]wFMCommunicate request_size=4 [16:08:04]MH_SAM_APDU [16:08:04]CAPDU: 80 09 00 00 [16:08:04]Write to MH i2c: E2 08 00 BA 01 80 09 00 00 00 00 00 00 2D [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 [16:08:04]MH_I2C_Read... [16:08:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:04]Read from MH i2c: E2 03 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 03 00 BA 01 00 90 00 2F [16:08:04]RAPDU: 90 00 [16:08:04]wFMCommunicate OK [16:08:04]SAM_PROTO_ClearQueue done [16:08:04]KKMCreateOFDPacket [16:08:04]OFDProtocolAddRootSTLVToBuf [16:08:04]FM_MakeSignedData [16:08:04]FM_MakeSignedData [16:08:04]SAM_PROTO_SignData [16:08:04]wFMCommunicate request_size=4 [16:08:04]MH_SAM_APDU [16:08:04]CAPDU: 80 0D 01 02 [16:08:04]Write to MH i2c: E2 08 00 BB 01 80 0D 01 02 00 00 00 00 35 [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:04]Read from MH i2c: E2 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 03 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 03 00 BB 01 00 90 00 30 [16:08:04]RAPDU: 90 00 [16:08:04]wFMCommunicate OK [16:08:04]wFMCommunicate request_size=255 [16:08:04]MH_SAM_APDU [16:08:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5E 00 00 00 F4 03 04 00 E3 80 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 65 08 01 00 35 04 06 00 4C [16:08:04]Write to MH i2c: E2 02 01 BC 01 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 5E 00 00 00 F4 03 04 00 E3 80 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 65 08 01 00 35 04 06 00 4C 00 00 6F [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:04]Read from MH i2c: E2 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 03 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 03 00 BC 01 00 90 00 31 [16:08:04]RAPDU: 90 00 [16:08:04]wFMCommunicate OK [16:08:04]wFMCommunicate request_size=10 [16:08:04]MH_SAM_APDU [16:08:04]CAPDU: 80 0D 02 02 05 EE CB 95 6B 9E [16:08:04]Write to MH i2c: E2 0D 00 BD 01 80 0D 02 02 05 00 EE CB 95 6B 9E 00 00 99 [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:04]Read from MH i2c: E2 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 03 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 03 00 BD 01 00 90 00 32 [16:08:04]RAPDU: 90 00 [16:08:04]wFMCommunicate OK [16:08:04]wFMCommunicate request_size=4 [16:08:04]MH_SAM_APDU [16:08:04]CAPDU: 80 0D 03 02 [16:08:04]Write to MH i2c: E2 08 00 BE 01 80 0D 03 02 00 00 00 00 3A [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:04]Read from MH i2c: E2 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 0B 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 0B 00 BE 01 00 0E 39 5F 0F 9F 48 2D 30 90 00 34 [16:08:04]RAPDU: 0E 39 5F 0F 9F 48 2D 30 90 00 [16:08:04]wFMCommunicate OK [16:08:04]SAM_PROTO_SignData done [16:08:04]FM_MakeSignedData done [16:08:04]CreateOFDProtocolMessage [16:08:04]wFMCommunicate request_size=4 [16:08:04]MH_SAM_APDU [16:08:04]CAPDU: 80 11 00 00 [16:08:04]Write to MH i2c: E2 08 00 BF 01 80 11 00 00 00 00 00 00 3A [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:04]Read from MH i2c: E2 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 17 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 17 00 BF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 90 [16:08:04]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:04]wFMCommunicate OK [16:08:04]CreateOFDProtocolMessage done [16:08:04]OFDSenderStorePacket 67685 [16:08:04]StoreOFDPacket docnum=67685 [16:08:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 66 B0 07 01 EF 9C 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 5E 00 00 00 F4 03 04 00 E3 80 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 65 08 01 00 35 04 06 00 4C EE CB 95 6B 9E 0E 39 5F 0F 9F 48 2D 30 [16:08:04]CheckFolder [16:08:04]dirname=/storage/ofd_packets [16:08:04]CheckFolder done [16:08:04]ProducePacketName [16:08:04]name=ofd_packets/00067685 [16:08:04]NVStorageSaveData ofd_packets/00067685 [16:08:04]File name is /storage/ofd_packets/00067685 [16:08:04]Write 301 bytes [16:08:04]NVStorageSaveData done [16:08:04]OFDSenderStorePacket done [16:08:04]KKMCreateOFDPacket done [16:08:04]NVStorageSaveData kkm_last_timestamp [16:08:04]File name is /storage/kkm_last_timestamp [16:08:04]Write 4 bytes [16:08:04]NVStorageSaveData done [16:08:04]ExternCall_PrintAddStr [16:08:04]wPrintStart [16:08:04]Write to MH i2c: 01 00 00 C0 01 C1 [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: 01 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: 01 07 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: 01 07 00 C0 01 00 00 00 00 00 FF 0F D6 [16:08:04]RasterBufferAndPrint [16:08:04]line Счет N : (1)507835 [16:08:04]line ИНН: 02508201610067 [16:08:04]line Контрольно-Кассовый Чек [16:08:04]line ПРОДАЖА [16:08:04]line ТРК (МРК, ГНК) : 33 [16:08:04]line Товар: 2710124130 [16:08:04]line Аи-92-К-5 [16:08:04]line 8.990 * 66.80 [16:08:04]line = 600.53 [16:08:04]line НДС 12% НСП 1% [16:08:04]line > о реализуемом товаре [16:08:04]line ОКРУГЛЕНИЕ: -0.53 [16:08:04]line ИТОГО: 600.00 [16:08:04]line Внесено: 600.00 [16:08:04]line СДАЧА: 0.00 [16:08:04]line НСП 1% : 5.31 [16:08:04]line НДС 12% : 63.77 [16:08:04]line Наличными: 600.00 [16:08:04]line Безнал.: 0.00 [16:08:04]line Место: АЗС № 91 "Партнер Нефть" [16:08:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:08:04]line СНО: Общий режим [16:08:04]line Чек 94 17.05.2024 16:08 [16:08:04]line Смена: 358 ФФД: 1.0 [16:08:04]line ЗНМ: 0300000119 [16:08:04]line РНМ: 0000000000091845 [16:08:04]line Версия ККМ: 001 [16:08:04]line ФМ: 0000000000871829 [16:08:04]line ФД: 67685 [16:08:04]line ФПД: 84588501494686 [16:08:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T160803&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67685&fm=84588501494686&tin=02508201610067®Number=0000000000091845&sum=60000 [16:08:04]written 0, free lines is 4095 [16:08:04]OFD Sender: Processing packet 67685 [packets to send 35, broken 34] [16:08:04]ProducePacketName [16:08:04]name=ofd_packets/00067685 [16:08:04]OFD Sender: To server: pG, [16:08:04]CommunicateWithHost lk.salyk.kg:30040 [16:08:04]ConnectInit lk.salyk.kg [16:08:05]Connected sock=10 [16:08:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 66 B0 07 01 EF 9C 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 5E 00 00 00 F4 03 04 00 E3 80 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 65 08 01 00 35 04 06 00 4C EE CB 95 6B 9E 0E 39 5F 0F 9F 48 2D 30 [16:08: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 75 12 47 00 53 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 65 08 01 00 F4 03 04 00 BB 28 47 66 B6 04 01 00 00 00 D6 39 8F 43 4C BC 46 [16:08:05]CommunicateWithHost err = 0 [16:08:05]CheckOFDResponse [16:08:05]1017 (14) - 77093643461234 [16:08:05]1041 (16) - 0000000000871829 [16:08:05]1040 (4) - 67685 [16:08:05]1012 (4) - 17.05.2024 09:51 [16:08:05]1206 (1) - 0 [16:08:05]OFD Sender: Remove packet 67685 [16:08:05]ProducePacketName [16:08:05]name=ofd_packets/00067685 [16:08:05]NVStorageDeleteData [16:08:05]Write to MH i2c: 01 00 00 EA 01 EB [16:08:05]Write i2c OK [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: 01 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: 01 07 00 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: 01 07 00 EA 01 00 00 00 00 00 CB 0C C9 [16:08:05]RasterBufferAndPrint [16:08:05]line [16:08:05]line [16:08:05]line [16:08:05]line [16:08:05]line [16:08:05]written 0, free lines is 3281 [16:08:05]MH_Cut [16:08:05]Write to MH i2c: D1 01 00 F1 01 01 C4 [16:08:05]Write i2c OK [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: D1 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: D1 01 00 [16:08:05]MH_I2C_Read... [16:08:05]Read from MH i2c: D1 01 00 F1 01 00 C3 [16:08:05]Write to MH i2c: 01 00 00 F2 01 F3 [16:08:05]Write i2c OK [16:08:05]MH_I2C_Read... [16:08:05]OFD Sender: No OFD packet to send [16:08:06]*** Cut start [16:08:06]*** Purtial cut [16:08:06]*** Stage 1: CUTSNS_PIN = 1 [16:08:06]Read from MH i2c: 01 [16:08:06]MH_I2C_Read... [16:08:06]*** Stop cut motor [16:08:06]*** Cut end [16:08:06]Read from MH i2c: 01 07 00 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: 01 07 00 F2 01 00 00 00 00 00 FF 0F 08 [16:08:06]process_action close_receipt done [16:08:06]requested_data is exist [16:08:06]produce_requested_data [16:08:06]requested_item fm.sn is exist - process it [16:08:06]wFMCommunicate request_size=4 [16:08:06]MH_SAM_APDU [16:08:06]CAPDU: 80 11 00 00 [16:08:06]Write to MH i2c: E2 08 00 F3 01 80 11 00 00 00 00 00 00 6E [16:08:06]Write i2c OK [16:08:06]MH_I2C_Read... [16:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:06]Read from MH i2c: E2 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 17 00 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 17 00 F3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C4 [16:08:06]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:06]wFMCommunicate OK [16:08:06]requested_item fd.num is exist - process it [16:08:06]SAM_PROTO_GetFieldsCounters [16:08:06]wFMCommunicate request_size=4 [16:08:06]MH_SAM_APDU [16:08:06]CAPDU: 80 13 00 00 [16:08:06]Write to MH i2c: E2 08 00 F4 01 80 13 00 00 00 00 00 00 71 [16:08:06]Write i2c OK [16:08:06]MH_I2C_Read... [16:08:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:06]Read from MH i2c: E2 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 62 00 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 62 00 F4 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 65 08 01 00 0E 04 04 00 66 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 86 [16:08: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 65 08 01 00 0E 04 04 00 66 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 [16:08:06]wFMCommunicate OK [16:08:06]SAM_PROTO_GetFieldsCounters done [16:08:06]requested_item shift.num is exist - process it [16:08:06]requested_item shift.opened is exist - process it [16:08:06]req_shift_opened [16:08:06]FM_GetShiftState [16:08:06]SAM_PROTO_GetShiftState [16:08:06]wFMCommunicate request_size=4 [16:08:06]MH_SAM_APDU [16:08:06]CAPDU: 80 13 01 00 [16:08:06]Write to MH i2c: E2 08 00 F5 01 80 13 01 00 00 00 00 00 73 [16:08:06]Write i2c OK [16:08:06]MH_I2C_Read... [16:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:06]Read from MH i2c: E2 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 0E 00 [16:08:06]MH_I2C_Read... [16:08:06]Read from MH i2c: E2 0E 00 F5 01 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F9 [16:08:06]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [16:08:06]wFMCommunicate OK [16:08:06]SAM_PROTO_GetShiftState done [16:08:06]FM_GetShiftState done [16:08:06]req_shift_opened done [16:08:06]requested_item shift.open_date is exist - process it [16:08:06]req_shift_open_date [16:08:06]req_shift_open_date done [16:08:06]produce_requested_data done [16:08:06]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67685,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [16:08:06]process_action_free close_receipt [16:08:06]json_value_free [16:08:06]json_value_free done [16:08:06]process_json_proto returns [16:08:06]Send response to host [16:08:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67685,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [16:08:06]free response buf [16:08:06]execute_script done [16:08:06]execute_script returns [16:08:06]free content buf [16:08:06]Sock 9.Close socket [16:08:06]Sock 9.Thread stoped [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: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:09:56]accept exits with 7 [16:09:56]New connection [16:09:56]New thread 3066608996 created [16:09:56]Thread 3066752356 joined [16:09:56]Waiting for new connection... [16:09:56] Sock 7.Parse request [16:09:56]Sock 7.Check first char [16:09:56]Sock 7.First char is OK [16:09:56]request: POST /json_proto HTTP/1.0 [16:09:56]Method: POST [16:09:56]URL: /json_proto [16:09:56]Method is POST - this is cgi request [16:09:56]url: /json_proto [16:09:56]query_string will be loaded in cgi processing [16:09:56]execute_cgi json_proto POST (null) [16:09:56]execute_cgi path=json_proto method=POST [16:09:56]POST find Content-Length [16:09:56]Host: 172.17.41.195:8080 [16:09:56]Content-Length: 796 [16:09:56]Content-Type: application/json [16:09:56] [16:09:56]POST finish read [16:09:56]Found Content-Length = 796 [16:09:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:56]execute_script... [16:09: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)507836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:56]POST & json_proto [16:09:56]process_json_proto [16:09:56]json parsed OK: [16:09:56]protocol is kg_v1.0 [16:09:56]action value=close_receipt [16:09:56]process_action close_receipt [16:09:56]cmd_close_receipt [16:09:56]MH_GetDate [16:09:56]Write to MH i2c: F0 00 00 F6 01 E6 [16:09:56]Write i2c OK [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: F0 [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: F0 09 00 [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: F0 09 00 F6 01 00 55 81 47 66 FC 21 6F 64 62 [16:09:56]GetLastDocTimeStamp 1715962083 [16:09:56]current date 1715962197 [16:09:56]FM_GetShiftState [16:09:56]SAM_PROTO_GetShiftState [16:09:56]wFMCommunicate request_size=4 [16:09:56]MH_SAM_APDU [16:09:56]CAPDU: 80 13 01 00 [16:09:56]Write to MH i2c: E2 08 00 F7 01 80 13 01 00 00 00 00 00 75 [16:09:56]Write i2c OK [16:09:56]MH_I2C_Read... [16:09:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:56]Read from MH i2c: E2 [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: E2 0E 00 [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: E2 0E 00 F7 01 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 FB [16:09:56]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [16:09:56]wFMCommunicate OK [16:09:56]SAM_PROTO_GetShiftState done [16:09:56]FM_GetShiftState done [16:09:56]opened in 1715905068 [16:09:56]opened+sec_in_day 1715991468 [16:09:56]quantity*price = 100005 [16:09:56]sum+1 = 100006 [16:09:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 95 17.05.2024 16:09 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67686 ФПД: 137124542241641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T160957&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67686&fm=137124542241641&tin=02508201610067®Number=0000000000091845&sum=100005 [16:09:57]StoreToDocumentArchive [16:09:57]shift 358 fd 67686 [16:09:57]save to /storage/0358/doc_00067686 [16:09:57]save last doc name /storage/0358/doc_00067686 to /storage/kkm_last_doc_name [16:09:57]save OK [16:09:57]Clear old archive folders... [16:09:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:09:57]tlvbuf is 01B2B5D0 [16:09:57]SAM_PROTO_ClearQueue [16:09:57]wFMCommunicate request_size=4 [16:09:57]MH_SAM_APDU [16:09:57]CAPDU: 80 09 00 00 [16:09:57]Write to MH i2c: E2 08 00 04 02 80 09 00 00 00 00 00 00 78 [16:09:57]Write i2c OK [16:09:57]MH_I2C_Read... [16:09:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:57]Read from MH i2c: E2 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 03 00 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 03 00 04 02 00 90 00 7A [16:09:57]RAPDU: 90 00 [16:09:57]wFMCommunicate OK [16:09:57]SAM_PROTO_ClearQueue done [16:09:57]KKMCreateOFDPacket [16:09:57]OFDProtocolAddRootSTLVToBuf [16:09:57]FM_MakeSignedData [16:09:57]FM_MakeSignedData [16:09:57]SAM_PROTO_SignData [16:09:57]wFMCommunicate request_size=4 [16:09:57]MH_SAM_APDU [16:09:57]CAPDU: 80 0D 01 02 [16:09:57]Write to MH i2c: E2 08 00 05 02 80 0D 01 02 00 00 00 00 80 [16:09:57]Write i2c OK [16:09:57]MH_I2C_Read... [16:09:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:57]Read from MH i2c: E2 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 03 00 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 03 00 05 02 00 90 00 7B [16:09:57]RAPDU: 90 00 [16:09:57]wFMCommunicate OK [16:09:57]wFMCommunicate request_size=255 [16:09:57]MH_SAM_APDU [16:09:57]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5F 00 00 00 F4 03 04 00 55 81 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 66 08 01 00 35 04 06 00 [16:09:57]Write to MH i2c: E2 02 01 06 02 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 5F 00 00 00 F4 03 04 00 55 81 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 66 08 01 00 35 04 06 00 00 00 7F [16:09:57]Write i2c OK [16:09:57]MH_I2C_Read... [16:09:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:57]Read from MH i2c: E2 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 03 00 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 03 00 06 02 00 90 00 7C [16:09:57]RAPDU: 90 00 [16:09:57]wFMCommunicate OK [16:09:57]wFMCommunicate request_size=11 [16:09:57]MH_SAM_APDU [16:09:57]CAPDU: 80 0D 02 02 06 7C B6 CB A1 5B 69 [16:09:57]Write to MH i2c: E2 0E 00 07 02 80 0D 02 02 06 00 7C B6 CB A1 5B 69 00 00 F1 [16:09:57]Write i2c OK [16:09:57]MH_I2C_Read... [16:09:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:57]Read from MH i2c: E2 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 03 00 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 03 00 07 02 00 90 00 7D [16:09:57]RAPDU: 90 00 [16:09:57]wFMCommunicate OK [16:09:57]wFMCommunicate request_size=4 [16:09:57]MH_SAM_APDU [16:09:57]CAPDU: 80 0D 03 02 [16:09:57]Write to MH i2c: E2 08 00 08 02 80 0D 03 02 00 00 00 00 85 [16:09:57]Write i2c OK [16:09:57]MH_I2C_Read... [16:09:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:57]Read from MH i2c: E2 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 0B 00 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 0B 00 08 02 00 F8 A2 9D 05 5F E7 64 C3 90 00 2F [16:09:58]RAPDU: F8 A2 9D 05 5F E7 64 C3 90 00 [16:09:58]wFMCommunicate OK [16:09:58]SAM_PROTO_SignData done [16:09:58]FM_MakeSignedData done [16:09:58]CreateOFDProtocolMessage [16:09:58]wFMCommunicate request_size=4 [16:09:58]MH_SAM_APDU [16:09:58]CAPDU: 80 11 00 00 [16:09:58]Write to MH i2c: E2 08 00 09 02 80 11 00 00 00 00 00 00 85 [16:09:58]Write i2c OK [16:09:58]MH_I2C_Read... [16:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:58]Read from MH i2c: E2 [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: E2 17 00 [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: E2 17 00 09 02 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:09: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:09:58]wFMCommunicate OK [16:09:58]CreateOFDProtocolMessage done [16:09:58]OFDSenderStorePacket 67686 [16:09:58]StoreOFDPacket docnum=67686 [16:09:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 F1 C8 08 01 12 A3 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 5F 00 00 00 F4 03 04 00 55 81 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 66 08 01 00 35 04 06 00 7C B6 CB A1 5B 69 F8 A2 9D 05 5F E7 64 C3 [16:09:58]CheckFolder [16:09:58]dirname=/storage/ofd_packets [16:09:58]CheckFolder done [16:09:58]ProducePacketName [16:09:58]name=ofd_packets/00067686 [16:09:58]NVStorageSaveData ofd_packets/00067686 [16:09:58]File name is /storage/ofd_packets/00067686 [16:09:58]Write 302 bytes [16:09:58]NVStorageSaveData done [16:09:58]OFDSenderStorePacket done [16:09:58]KKMCreateOFDPacket done [16:09:58]NVStorageSaveData kkm_last_timestamp [16:09:58]File name is /storage/kkm_last_timestamp [16:09:58]Write 4 bytes [16:09:58]NVStorageSaveData done [16:09:58]ExternCall_PrintAddStr [16:09:58]wPrintStart [16:09:58]Write to MH i2c: 01 00 00 0A 02 0C [16:09:58]Write i2c OK [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: 01 [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: 01 07 00 [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: 01 07 00 0A 02 00 00 00 00 00 FF 0F 21 [16:09:58]RasterBufferAndPrint [16:09:58]line Счет N : (1)507836 [16:09:58]line ИНН: 02508201610067 [16:09:58]line Контрольно-Кассовый Чек [16:09:58]line ПРОДАЖА [16:09:58]line ТРК (МРК, ГНК) : 32 [16:09:58]line Товар: 2710124130 [16:09:58]line Super-92-К-5 [16:09:58]line 14.750 * 67.80 [16:09:58]line = 1000.05 [16:09:58]line НДС 12% НСП 1% [16:09:58]line > о реализуемом товаре [16:09:58]line ИТОГО: 1000.05 [16:09:58]line НСП 1% : 8.85 [16:09:58]line НДС 12% : 106.20 [16:09:58]line Наличными: 0.00 [16:09:58]line Безнал.: 1000.05 [16:09:58]line Место: АЗС № 91 "Партнер Нефть" [16:09:58]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:09:58]line СНО: Общий режим [16:09:58]line Чек 95 17.05.2024 16:09 [16:09:58]line Смена: 358 ФФД: 1.0 [16:09:58]line ЗНМ: 0300000119 [16:09:58]line РНМ: 0000000000091845 [16:09:58]line Версия ККМ: 001 [16:09:58]line Платежная система: O! деньги [16:09:58]line ФМ: 0000000000871829 [16:09:58]line ФД: 67686 [16:09:58]line ФПД: 137124542241641 [16:09:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T160957&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67686&fm=137124542241641&tin=02508201610067®Number=0000000000091845&sum=100005 [16:09:58]OFD Sender: Processing packet 67686 [packets to send 35, broken 34] [16:09:58]ProducePacketName [16:09:58]name=ofd_packets/00067686 [16:09:58]OFD Sender: To server: pG, [16:09:58]CommunicateWithHost lk.salyk.kg:30040 [16:09:58]ConnectInit lk.salyk.kg [16:09:58]written 0, free lines is 4095 [16:09:58]Connected sock=10 [16:09: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 F1 C8 08 01 12 A3 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 5F 00 00 00 F4 03 04 00 55 81 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 66 08 01 00 35 04 06 00 7C B6 CB A1 5B 69 F8 A2 9D 05 5F E7 64 C3 [16:09: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 7C 36 47 00 29 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 66 08 01 00 F4 03 04 00 2D 29 47 66 B6 04 01 00 00 89 57 5D C3 13 07 63 76 [16:09:58]CommunicateWithHost err = 0 [16:09:58]CheckOFDResponse [16:09:58]1017 (14) - 77093643461234 [16:09:58]1041 (16) - 0000000000871829 [16:09:58]1040 (4) - 67686 [16:09:58]1012 (4) - 17.05.2024 09:53 [16:09:58]1206 (1) - 0 [16:09:58]OFD Sender: Remove packet 67686 [16:09:58]ProducePacketName [16:09:58]name=ofd_packets/00067686 [16:09:58]NVStorageDeleteData [16:09:58]Write to MH i2c: 01 00 00 33 02 35 [16:09:58]Write i2c OK [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: 01 [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: 01 07 00 [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: 01 07 00 33 02 00 00 00 00 00 E2 0C 2A [16:09:58]RasterBufferAndPrint [16:09:58]line [16:09:58]line [16:09:58]line [16:09:58]line [16:09:58]line [16:09:58]written 0, free lines is 3303 [16:09:58]MH_Cut [16:09:58]Write to MH i2c: D1 01 00 3A 02 01 0E [16:09:58]Write i2c OK [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: D1 [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: D1 01 00 [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: D1 01 00 3A 02 00 0D [16:09:58]Write to MH i2c: 01 00 00 3B 02 3D [16:09:58]Write i2c OK [16:09:58]MH_I2C_Read... [16:09:59]OFD Sender: No OFD packet to send [16:09:59]*** Cut start [16:09:59]*** Purtial cut [16:09:59]*** CUTSNS_PIN = 0 [16:09:59]*** Stage 1: CUTSNS_PIN = 1 [16:10:01]Read from MH i2c: 01 [16:10:01]MH_I2C_Read... [16:10:01]*** Stop cut motor [16:10:01]*** Cut end [16:10:01]Read from MH i2c: 01 07 00 [16:10:01]MH_I2C_Read... [16:10:01]Read from MH i2c: 01 07 00 3B 02 00 00 00 00 00 FF 0F 52 [16:10:01]process_action close_receipt done [16:10:01]requested_data is exist [16:10:01]produce_requested_data [16:10:01]requested_item fm.sn is exist - process it [16:10:01]wFMCommunicate request_size=4 [16:10:01]MH_SAM_APDU [16:10:01]CAPDU: 80 11 00 00 [16:10:01]Write to MH i2c: E2 08 00 3C 02 80 11 00 00 00 00 00 00 B8 [16:10:01]Write i2c OK [16:10:01]MH_I2C_Read... [16:10:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:01]Read from MH i2c: E2 [16:10:01]MH_I2C_Read... [16:10:01]Read from MH i2c: E2 17 00 [16:10:01]MH_I2C_Read... [16:10:01]Read from MH i2c: E2 17 00 3C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0E [16:10:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:10:01]wFMCommunicate OK [16:10:01]requested_item fd.num is exist - process it [16:10:01]SAM_PROTO_GetFieldsCounters [16:10:01]wFMCommunicate request_size=4 [16:10:01]MH_SAM_APDU [16:10:01]CAPDU: 80 13 00 00 [16:10:01]Write to MH i2c: E2 08 00 3D 02 80 13 00 00 00 00 00 00 BB [16:10:01]Write i2c OK [16:10:01]MH_I2C_Read... [16:10:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:01]Read from MH i2c: E2 [16:10:01]MH_I2C_Read... [16:10:01]Read from MH i2c: E2 62 00 [16:10:01]MH_I2C_Read... [16:10:01]Read from MH i2c: E2 62 00 3D 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 66 08 01 00 0E 04 04 00 66 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 D4 [16:10: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 66 08 01 00 0E 04 04 00 66 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 [16:10:01]wFMCommunicate OK [16:10:01]SAM_PROTO_GetFieldsCounters done [16:10:01]requested_item shift.num is exist - process it [16:10:01]requested_item shift.opened is exist - process it [16:10:01]req_shift_opened [16:10:01]FM_GetShiftState [16:10:01]SAM_PROTO_GetShiftState [16:10:01]wFMCommunicate request_size=4 [16:10:01]MH_SAM_APDU [16:10:01]CAPDU: 80 13 01 00 [16:10:01]Write to MH i2c: E2 08 00 3E 02 80 13 01 00 00 00 00 00 BD [16:10:01]Write i2c OK [16:10:01]MH_I2C_Read... [16:10:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:01]Read from MH i2c: E2 [16:10:01]MH_I2C_Read... [16:10:01]Read from MH i2c: E2 0E 00 [16:10:01]MH_I2C_Read... [16:10:01]Read from MH i2c: E2 0E 00 3E 02 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 43 [16:10:01]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [16:10:01]wFMCommunicate OK [16:10:01]SAM_PROTO_GetShiftState done [16:10:01]FM_GetShiftState done [16:10:01]req_shift_opened done [16:10:01]requested_item shift.open_date is exist - process it [16:10:01]req_shift_open_date [16:10:01]req_shift_open_date done [16:10:01]produce_requested_data done [16:10:01]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67686,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [16:10:01]process_action_free close_receipt [16:10:01]json_value_free [16:10:01]json_value_free done [16:10:01]process_json_proto returns [16:10:01]Send response to host [16:10:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67686,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [16:10:01]free response buf [16:10:01]execute_script done [16:10:01]execute_script returns [16:10:01]free content buf [16:10:01]Sock 7.Close socket [16:10:01]Sock 7.Thread stoped [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:24]OFD Sender: No OFD packet to send [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:09]OFD Sender: No OFD packet to send [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:39]OFD Sender: No OFD packet to send [16:14:44]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:14]OFD Sender: No OFD packet to send [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:46]accept exits with 9 [16:15:46]New connection [16:15:46]New thread 3066752356 created [16:15:46]Thread 3066608996 joined [16:15:46]Waiting for new connection... [16:15:46] Sock 9.Parse request [16:15:46]Sock 9.Check first char [16:15:46]Sock 9.First char is OK [16:15:46]request: POST /json_proto HTTP/1.0 [16:15:46]Method: POST [16:15:46]URL: /json_proto [16:15:46]Method is POST - this is cgi request [16:15:46]url: /json_proto [16:15:46]query_string will be loaded in cgi processing [16:15:46]execute_cgi json_proto POST (null) [16:15:46]execute_cgi path=json_proto method=POST [16:15:46]POST find Content-Length [16:15:46]Host: 172.17.41.195:8080 [16:15:46]Content-Length: 1182 [16:15:46]Content-Type: application/json [16:15:46] [16:15:46]POST finish read [16:15:46]Found Content-Length = 1182 [16:15: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507837\u000A17.05.2024 15: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 20.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1336.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:46]execute_script... [16:15: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507837\u000A17.05.2024 15: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 20.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1336.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:46]POST & json_proto [16:15:46]process_json_proto [16:15:46]json parsed OK: [16:15:46]protocol is kg_v1.0 [16:15:46]action value=print_text [16:15:46]process_action print_text [16:15:46]cmd_print_text [16:15:46]ExternCall_PrintAddStr [16:15:46]wPrintStart [16:15:46]Write to MH i2c: 01 00 00 3F 02 41 [16:15:46]Write i2c OK [16:15:46]MH_I2C_Read... [16:15:46]Read from MH i2c: 01 [16:15:46]MH_I2C_Read... [16:15:46]Read from MH i2c: 01 07 00 [16:15:46]MH_I2C_Read... [16:15:46]Read from MH i2c: 01 07 00 3F 02 00 00 00 00 00 FF 0F 56 [16:15:46]RasterBufferAndPrint [16:15:46]line *****ТОВАРНЫЙ ЧЕК***** [16:15:46]line АЗС-91 [16:15:46]line Партнер нефть [16:15:46]line 02508201610067 [16:15:46]line Кассир : Адишов И. [16:15:46]line Счет N : (1)507837 [16:15:46]line 17.05.2024 15:58 [16:15:46]line ПРОДАЖА [16:15:46]line ТРК (МРК, ГНК): 43 [16:15:46]line Вид ГСМ : 2710124130 [16:15:46]line Аи-92-К-5 [16:15:46]line 20.000 x 66.80 [16:15:46]line ИТОГ: 1336.00 [16:15:46]line Тип оплаты: Талоны: Топливная Карта [16:15:46]line 02750 [16:15:46]line ______________________ [16:15:46]line (подпись) [16:15:46]written 0, free lines is 4095 [16:15:46]Write to MH i2c: 01 00 00 53 02 55 [16:15:46]Write i2c OK [16:15:46]MH_I2C_Read... [16:15:46]Read from MH i2c: 01 [16:15:46]MH_I2C_Read... [16:15:46]Read from MH i2c: 01 07 00 [16:15:46]MH_I2C_Read... [16:15:46]Read from MH i2c: 01 07 00 53 02 00 00 00 00 00 10 0E 7A [16:15:46]RasterBufferAndPrint [16:15:46]line [16:15:46]line [16:15:46]line [16:15:46]line [16:15:46]line [16:15:46]written 0, free lines is 3601 [16:15:46]MH_Cut [16:15:46]Write to MH i2c: D1 01 00 5A 02 01 2E [16:15:46]Write i2c OK [16:15:46]MH_I2C_Read... [16:15:46]Read from MH i2c: D1 [16:15:46]MH_I2C_Read... [16:15:46]Read from MH i2c: D1 01 00 [16:15:46]MH_I2C_Read... [16:15:46]Read from MH i2c: D1 01 00 5A 02 00 2D [16:15:46]Write to MH i2c: 01 00 00 5B 02 5D [16:15:46]Write i2c OK [16:15:46]MH_I2C_Read... [16:15:47]*** Cut start [16:15:47]*** Purtial cut [16:15:47]*** Stage 1: CUTSNS_PIN = 1 [16:15:47]Read from MH i2c: 01 [16:15:47]MH_I2C_Read... [16:15:47]*** Stop cut motor [16:15:47]*** Cut end [16:15:47]Read from MH i2c: 01 07 00 [16:15:47]MH_I2C_Read... [16:15:47]Read from MH i2c: 01 07 00 5B 02 00 00 00 00 00 FF 0F 72 [16:15:47]process_action print_text done [16:15:47]requested_data is exist [16:15:47]produce_requested_data [16:15:47]requested_item fm.sn is exist - process it [16:15:47]wFMCommunicate request_size=4 [16:15:47]MH_SAM_APDU [16:15:47]CAPDU: 80 11 00 00 [16:15:47]Write to MH i2c: E2 08 00 5C 02 80 11 00 00 00 00 00 00 D8 [16:15:47]Write i2c OK [16:15:47]MH_I2C_Read... [16:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:47]Read from MH i2c: E2 [16:15:47]MH_I2C_Read... [16:15:47]Read from MH i2c: E2 17 00 [16:15:47]MH_I2C_Read... [16:15:47]Read from MH i2c: E2 17 00 5C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2E [16: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 [16:15:47]wFMCommunicate OK [16:15:47]requested_item fd.num is exist - process it [16:15:47]SAM_PROTO_GetFieldsCounters [16:15:47]wFMCommunicate request_size=4 [16:15:47]MH_SAM_APDU [16:15:47]CAPDU: 80 13 00 00 [16:15:47]Write to MH i2c: E2 08 00 5D 02 80 13 00 00 00 00 00 00 DB [16:15:47]Write i2c OK [16:15:47]MH_I2C_Read... [16:15:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:47]Read from MH i2c: E2 [16:15:47]MH_I2C_Read... [16:15:47]Read from MH i2c: E2 62 00 [16:15:47]MH_I2C_Read... [16:15:47]Read from MH i2c: E2 62 00 5D 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 66 08 01 00 0E 04 04 00 66 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 F4 [16: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 66 08 01 00 0E 04 04 00 66 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 [16:15:47]wFMCommunicate OK [16:15:47]SAM_PROTO_GetFieldsCounters done [16:15:47]requested_item shift.num is exist - process it [16:15:47]requested_item shift.opened is exist - process it [16:15:47]req_shift_opened [16:15:47]FM_GetShiftState [16:15:47]SAM_PROTO_GetShiftState [16:15:47]wFMCommunicate request_size=4 [16:15:47]MH_SAM_APDU [16:15:47]CAPDU: 80 13 01 00 [16:15:47]Write to MH i2c: E2 08 00 5E 02 80 13 01 00 00 00 00 00 DD [16:15:47]Write i2c OK [16:15:47]MH_I2C_Read... [16:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:47]Read from MH i2c: E2 [16:15:47]MH_I2C_Read... [16:15:47]Read from MH i2c: E2 0E 00 [16:15:47]MH_I2C_Read... [16:15:47]Read from MH i2c: E2 0E 00 5E 02 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 63 [16:15:47]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [16:15:47]wFMCommunicate OK [16:15:47]SAM_PROTO_GetShiftState done [16:15:47]FM_GetShiftState done [16:15:47]req_shift_opened done [16:15:47]requested_item shift.open_date is exist - process it [16:15:47]req_shift_open_date [16:15:47]req_shift_open_date done [16:15:47]produce_requested_data done [16:15:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67686,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [16:15:47]process_action_free print_text [16:15:47]json_value_free [16:15:47]json_value_free done [16:15:47]process_json_proto returns [16:15:47]Send response to host [16:15:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67686,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [16:15:47]free response buf [16:15:47]execute_script done [16:15:47]execute_script returns [16:15:47]free content buf [16:15:47]Sock 9.Close socket [16:15:47]Sock 9.Thread stoped [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:28:35]OFD Sender: No OFD packet to send [16:28:40]OFD Sender: No OFD packet to send [16:28:45]OFD Sender: No OFD packet to send [16:28:50]OFD Sender: No OFD packet to send [16:28:55]OFD Sender: No OFD packet to send [16:29:00]OFD Sender: No OFD packet to send [16:29:05]OFD Sender: No OFD packet to send [16:29:10]OFD Sender: No OFD packet to send [16:29:15]OFD Sender: No OFD packet to send [16:29:20]OFD Sender: No OFD packet to send [16:29:25]OFD Sender: No OFD packet to send [16:29:30]OFD Sender: No OFD packet to send [16:29:35]OFD Sender: No OFD packet to send [16:29:40]OFD Sender: No OFD packet to send [16:29:45]OFD Sender: No OFD packet to send [16:29:50]OFD Sender: No OFD packet to send [16:29:55]OFD Sender: No OFD packet to send [16:30:00]OFD Sender: No OFD packet to send [16:30:05]OFD Sender: No OFD packet to send [16:30:10]OFD Sender: No OFD packet to send [16:30:15]OFD Sender: No OFD packet to send [16:30:20]OFD Sender: No OFD packet to send [16:30:25]OFD Sender: No OFD packet to send [16:30:30]OFD Sender: No OFD packet to send [16:30:35]OFD Sender: No OFD packet to send [16:30:40]OFD Sender: No OFD packet to send [16:30:45]OFD Sender: No OFD packet to send [16:30:50]OFD Sender: No OFD packet to send [16:30:55]OFD Sender: No OFD packet to send [16:31:00]OFD Sender: No OFD packet to send [16:31:05]OFD Sender: No OFD packet to send [16:31:10]OFD Sender: No OFD packet to send [16:31:15]OFD Sender: No OFD packet to send [16:31:20]OFD Sender: No OFD packet to send [16:31:25]OFD Sender: No OFD packet to send [16:31:30]OFD Sender: No OFD packet to send [16:31:35]OFD Sender: No OFD packet to send [16:31:40]OFD Sender: No OFD packet to send [16:31:45]OFD Sender: No OFD packet to send [16:31:50]OFD Sender: No OFD packet to send [16:31:55]OFD Sender: No OFD packet to send [16:32:00]OFD Sender: No OFD packet to send [16:32:05]OFD Sender: No OFD packet to send [16:32:10]OFD Sender: No OFD packet to send [16:32:15]OFD Sender: No OFD packet to send [16:32:20]OFD Sender: No OFD packet to send [16:32:25]OFD Sender: No OFD packet to send [16:32:30]OFD Sender: No OFD packet to send [16:32:35]OFD Sender: No OFD packet to send [16:32:40]OFD Sender: No OFD packet to send [16:32:45]OFD Sender: No OFD packet to send [16:32:50]OFD Sender: No OFD packet to send [16:32:55]OFD Sender: No OFD packet to send [16:33:00]OFD Sender: No OFD packet to send [16:33:05]OFD Sender: No OFD packet to send [16:33:10]OFD Sender: No OFD packet to send [16:33:15]OFD Sender: No OFD packet to send [16:33:20]OFD Sender: No OFD packet to send [16:33:25]OFD Sender: No OFD packet to send [16:33:30]OFD Sender: No OFD packet to send [16:33:35]OFD Sender: No OFD packet to send [16:33:40]OFD Sender: No OFD packet to send [16:33:45]OFD Sender: No OFD packet to send [16:33:50]OFD Sender: No OFD packet to send [16:33:55]OFD Sender: No OFD packet to send [16:34:00]OFD Sender: No OFD packet to send [16:34:05]OFD Sender: No OFD packet to send [16:34:10]OFD Sender: No OFD packet to send [16:34:15]OFD Sender: No OFD packet to send [16:34:20]OFD Sender: No OFD packet to send [16:34:25]OFD Sender: No OFD packet to send [16:34:30]OFD Sender: No OFD packet to send [16:34:35]OFD Sender: No OFD packet to send [16:34:40]OFD Sender: No OFD packet to send [16:34:45]OFD Sender: No OFD packet to send [16:34:50]OFD Sender: No OFD packet to send [16:34:55]OFD Sender: No OFD packet to send [16:35:00]OFD Sender: No OFD packet to send [16:35:05]OFD Sender: No OFD packet to send [16:35:10]OFD Sender: No OFD packet to send [16:35:15]OFD Sender: No OFD packet to send [16:35:20]OFD Sender: No OFD packet to send [16:35:25]OFD Sender: No OFD packet to send [16:35:30]OFD Sender: No OFD packet to send [16:35:35]OFD Sender: No OFD packet to send [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:36:00]OFD Sender: No OFD packet to send [16:36:05]OFD Sender: No OFD packet to send [16:36:10]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:20]OFD Sender: No OFD packet to send [16:36:22]accept exits with 7 [16:36:22]New connection [16:36:22]New thread 3066608996 created [16:36:22]Thread 3066752356 joined [16:36:22]Waiting for new connection... [16:36:22] Sock 7.Parse request [16:36:22]Sock 7.Check first char [16:36:22]Sock 7.First char is OK [16:36:22]request: POST /json_proto HTTP/1.0 [16:36:22]Method: POST [16:36:22]URL: /json_proto [16:36:22]Method is POST - this is cgi request [16:36:22]url: /json_proto [16:36:22]query_string will be loaded in cgi processing [16:36:22]execute_cgi json_proto POST (null) [16:36:22]execute_cgi path=json_proto method=POST [16:36:22]POST find Content-Length [16:36:22]Host: 172.17.41.195:8080 [16:36:22]Content-Length: 816 [16:36:22]Content-Type: application/json [16:36:22] [16:36:22]POST finish read [16:36:22]Found Content-Length = 816 [16:36:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 53.550, "sum" : 4000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:22]execute_script... [16: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)507839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 53.550, "sum" : 4000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:22]POST & json_proto [16:36:22]process_json_proto [16:36:22]json parsed OK: [16:36:22]protocol is kg_v1.0 [16:36:22]action value=close_receipt [16:36:22]process_action close_receipt [16:36:22]cmd_close_receipt [16:36:22]MH_GetDate [16:36:22]Write to MH i2c: F0 00 00 5F 02 50 [16:36:22]Write i2c OK [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: F0 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: F0 09 00 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: F0 09 00 5F 02 00 87 87 47 66 FC 21 6F 64 04 [16:36:22]GetLastDocTimeStamp 1715962197 [16:36:22]current date 1715963783 [16:36:22]FM_GetShiftState [16:36:22]SAM_PROTO_GetShiftState [16:36:22]wFMCommunicate request_size=4 [16:36:22]MH_SAM_APDU [16:36:22]CAPDU: 80 13 01 00 [16:36:22]Write to MH i2c: E2 08 00 60 02 80 13 01 00 00 00 00 00 DF [16:36:22]Write i2c OK [16:36:22]MH_I2C_Read... [16:36:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:22]Read from MH i2c: E2 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: E2 0E 00 [16:36:22]MH_I2C_Read... [16:36:22]Read from MH i2c: E2 0E 00 60 02 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 65 [16:36:22]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [16:36:22]wFMCommunicate OK [16:36:22]SAM_PROTO_GetShiftState done [16:36:22]FM_GetShiftState done [16:36:22]opened in 1715905068 [16:36:22]opened+sec_in_day 1715991468 [16:36:22]quantity*price = 400018 [16:36:22]sum+1 = 400020 [16:36:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.19 НСП 1% : 35.40 НДС 12% : 424.80 Наличными: 0.00 Безнал.: 4000.19 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 96 17.05.2024 16:36 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67687 ФПД: 241088072315890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T163623&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67687&fm=241088072315890&tin=02508201610067®Number=0000000000091845&sum=400019 [16:36:23]StoreToDocumentArchive [16:36:23]shift 358 fd 67687 [16:36:23]save to /storage/0358/doc_00067687 [16:36:23]save last doc name /storage/0358/doc_00067687 to /storage/kkm_last_doc_name [16:36:23]save OK [16:36:23]Clear old archive folders... [16:36:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:36:23]tlvbuf is 01B2B4A0 [16:36:23]SAM_PROTO_ClearQueue [16:36:23]wFMCommunicate request_size=4 [16:36:23]MH_SAM_APDU [16:36:23]CAPDU: 80 09 00 00 [16:36:23]Write to MH i2c: E2 08 00 6D 02 80 09 00 00 00 00 00 00 E1 [16:36:23]Write i2c OK [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: E2 [16:36:23]MH_I2C_Read... [16:36:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:23]Read from MH i2c: E2 03 00 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [16:36:23]RAPDU: 90 00 [16:36:23]wFMCommunicate OK [16:36:23]SAM_PROTO_ClearQueue done [16:36:23]KKMCreateOFDPacket [16:36:23]OFDProtocolAddRootSTLVToBuf [16:36:23]FM_MakeSignedData [16:36:23]FM_MakeSignedData [16:36:23]SAM_PROTO_SignData [16:36:23]wFMCommunicate request_size=4 [16:36:23]MH_SAM_APDU [16:36:23]CAPDU: 80 0D 01 02 [16:36:23]Write to MH i2c: E2 08 00 6E 02 80 0D 01 02 00 00 00 00 E9 [16:36:23]Write i2c OK [16:36:23]MH_I2C_Read... [16:36:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:23]Read from MH i2c: E2 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: E2 03 00 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [16:36:23]RAPDU: 90 00 [16:36:23]wFMCommunicate OK [16:36:23]wFMCommunicate request_size=255 [16:36:23]MH_SAM_APDU [16:36: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 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 60 00 00 00 F4 03 04 00 87 87 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 67 08 01 00 35 04 06 00 DB 44 B0 E8 [16:36:23]Write to MH i2c: E2 02 01 6F 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 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 60 00 00 00 F4 03 04 00 87 87 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 67 08 01 00 35 04 06 00 DB 44 B0 E8 00 00 CD [16:36:23]Write i2c OK [16:36:23]MH_I2C_Read... [16:36:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:23]Read from MH i2c: E2 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: E2 03 00 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [16:36:23]RAPDU: 90 00 [16:36:23]wFMCommunicate OK [16:36:23]wFMCommunicate request_size=7 [16:36:23]MH_SAM_APDU [16:36:23]CAPDU: 80 0D 02 02 02 F3 F2 [16:36:23]Write to MH i2c: E2 0A 00 70 02 80 0D 02 02 02 00 F3 F2 00 00 D5 [16:36:23]Write i2c OK [16:36:23]MH_I2C_Read... [16:36:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:23]Read from MH i2c: E2 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: E2 03 00 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: E2 03 00 70 02 00 90 00 E6 [16:36:23]RAPDU: 90 00 [16:36:23]wFMCommunicate OK [16:36:23]wFMCommunicate request_size=4 [16:36:23]MH_SAM_APDU [16:36:23]CAPDU: 80 0D 03 02 [16:36:23]Write to MH i2c: E2 08 00 71 02 80 0D 03 02 00 00 00 00 EE [16:36:23]Write i2c OK [16:36:23]MH_I2C_Read... [16:36:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:23]Read from MH i2c: E2 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: E2 0B 00 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: E2 0B 00 71 02 00 26 59 3E B9 55 0A 3B EC 90 00 EB [16:36:23]RAPDU: 26 59 3E B9 55 0A 3B EC 90 00 [16:36:23]wFMCommunicate OK [16:36:23]SAM_PROTO_SignData done [16:36:23]FM_MakeSignedData done [16:36:23]CreateOFDProtocolMessage [16:36:23]wFMCommunicate request_size=4 [16:36:23]MH_SAM_APDU [16:36:23]CAPDU: 80 11 00 00 [16:36:23]Write to MH i2c: E2 08 00 72 02 80 11 00 00 00 00 00 00 EE [16:36:23]Write i2c OK [16:36:23]MH_I2C_Read... [16:36:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:23]Read from MH i2c: E2 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: E2 17 00 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: E2 17 00 72 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 44 [16:36: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:36:23]wFMCommunicate OK [16:36:23]CreateOFDProtocolMessage done [16:36:23]OFDSenderStorePacket 67687 [16:36:23]StoreOFDPacket docnum=67687 [16:36: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 49 EB 04 01 14 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 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 60 00 00 00 F4 03 04 00 87 87 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 67 08 01 00 35 04 06 00 DB 44 B0 E8 F3 F2 26 59 3E B9 55 0A 3B EC [16:36:23]CheckFolder [16:36:23]dirname=/storage/ofd_packets [16:36:23]CheckFolder done [16:36:23]ProducePacketName [16:36:23]name=ofd_packets/00067687 [16:36:23]NVStorageSaveData ofd_packets/00067687 [16:36:23]File name is /storage/ofd_packets/00067687 [16:36:23]Write 298 bytes [16:36:23]NVStorageSaveData done [16:36:23]OFDSenderStorePacket done [16:36:23]KKMCreateOFDPacket done [16:36:23]NVStorageSaveData kkm_last_timestamp [16:36:23]File name is /storage/kkm_last_timestamp [16:36:23]Write 4 bytes [16:36:23]NVStorageSaveData done [16:36:23]ExternCall_PrintAddStr [16:36:23]wPrintStart [16:36:23]Write to MH i2c: 01 00 00 73 02 75 [16:36:23]Write i2c OK [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: 01 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: 01 07 00 [16:36:23]MH_I2C_Read... [16:36:23]Read from MH i2c: 01 07 00 73 02 00 00 00 00 00 FF 0F 8A [16:36:23]RasterBufferAndPrint [16:36:23]line Счет N : (1)507839 [16:36:23]line ИНН: 02508201610067 [16:36:23]line Контрольно-Кассовый Чек [16:36:23]line ПРОДАЖА [16:36:23]line ТРК (МРК, ГНК) : 31 [16:36:23]line Товар: 2710194210 [16:36:23]line ДТ-К-5 [16:36:23]line 53.550 * 74.70 [16:36:23]line = 4000.19 [16:36:23]line НДС 12% НСП 1% [16:36:23]line > о реализуемом товаре [16:36:23]line ИТОГО: 4000.19 [16:36:23]line НСП 1% : 35.40 [16:36:23]line НДС 12% : 424.80 [16:36:23]line Наличными: 0.00 [16:36:23]line Безнал.: 4000.19 [16:36:23]line Место: АЗС № 91 "Партнер Нефть" [16:36:23]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:36:23]line СНО: Общий режим [16:36:23]line Чек 96 17.05.2024 16:36 [16:36:23]line Смена: 358 ФФД: 1.0 [16:36:23]line ЗНМ: 0300000119 [16:36:23]line РНМ: 0000000000091845 [16:36:23]line Версия ККМ: 001 [16:36:23]line Платежная система: Бакай Банк [16:36:23]line ФМ: 0000000000871829 [16:36:23]line ФД: 67687 [16:36:23]line ФПД: 241088072315890 [16:36:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T163623&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67687&fm=241088072315890&tin=02508201610067®Number=0000000000091845&sum=400019 [16:36:24]OFD Sender: Processing packet 67687 [packets to send 35, broken 34] [16:36:24]ProducePacketName [16:36:24]name=ofd_packets/00067687 [16:36:24]OFD Sender: To server: pG, [16:36:24]CommunicateWithHost lk.salyk.kg:30040 [16:36:24]ConnectInit lk.salyk.kg [16:36:24]written 0, free lines is 4095 [16:36:24]Connected sock=11 [16: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 49 EB 04 01 14 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 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 60 00 00 00 F4 03 04 00 87 87 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 67 08 01 00 35 04 06 00 DB 44 B0 E8 F3 F2 26 59 3E B9 55 0A 3B EC [16:36: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 62 E2 47 00 53 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 67 08 01 00 F4 03 04 00 5E 2F 47 66 B6 04 01 00 00 7D 09 4E 6D B2 B8 83 6A [16:36:24]CommunicateWithHost err = 0 [16:36:24]CheckOFDResponse [16:36:24]1017 (14) - 77093643461234 [16:36:24]1041 (16) - 0000000000871829 [16:36:24]1040 (4) - 67687 [16:36:24]1012 (4) - 17.05.2024 10:20 [16:36:24]1206 (1) - 0 [16:36:24]OFD Sender: Remove packet 67687 [16:36:24]ProducePacketName [16:36:24]name=ofd_packets/00067687 [16:36:24]NVStorageDeleteData [16:36:24]Write to MH i2c: 01 00 00 9C 02 9E [16:36:24]Write i2c OK [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: 01 [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: 01 07 00 [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: 01 07 00 9C 02 00 00 00 00 00 D8 0C 89 [16:36:24]RasterBufferAndPrint [16:36:24]line [16:36:24]line [16:36:24]line [16:36:24]line [16:36:24]line [16:36:24]written 0, free lines is 3294 [16:36:24]MH_Cut [16:36:24]Write to MH i2c: D1 01 00 A3 02 01 77 [16:36:24]Write i2c OK [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: D1 [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: D1 01 00 [16:36:24]MH_I2C_Read... [16:36:24]Read from MH i2c: D1 01 00 A3 02 00 76 [16:36:24]Write to MH i2c: 01 00 00 A4 02 A6 [16:36:24]Write i2c OK [16:36:24]MH_I2C_Read... [16:36:24]OFD Sender: No OFD packet to send [16:36:25]*** Cut start [16:36:25]*** Purtial cut [16:36:25]*** CUTSNS_PIN = 0 [16:36:25]*** Stage 1: CUTSNS_PIN = 1 [16:36:27]Read from MH i2c: 01 [16:36:27]MH_I2C_Read... [16:36:27]*** Stop cut motor [16:36:27]*** Cut end [16:36:27]Read from MH i2c: 01 07 00 [16:36:27]MH_I2C_Read... [16:36:27]Read from MH i2c: 01 07 00 A4 02 00 00 00 00 00 FF 0F BB [16:36:27]process_action close_receipt done [16:36:27]requested_data is exist [16:36:27]produce_requested_data [16:36:27]requested_item fm.sn is exist - process it [16:36:27]wFMCommunicate request_size=4 [16:36:27]MH_SAM_APDU [16:36:27]CAPDU: 80 11 00 00 [16:36:27]Write to MH i2c: E2 08 00 A5 02 80 11 00 00 00 00 00 00 21 [16:36:27]Write i2c OK [16:36:27]MH_I2C_Read... [16:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:27]Read from MH i2c: E2 [16:36:27]MH_I2C_Read... [16:36:27]Read from MH i2c: E2 17 00 [16:36:27]MH_I2C_Read... [16:36:27]Read from MH i2c: E2 17 00 A5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 77 [16: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 [16:36:27]wFMCommunicate OK [16:36:27]requested_item fd.num is exist - process it [16:36:27]SAM_PROTO_GetFieldsCounters [16:36:27]wFMCommunicate request_size=4 [16:36:27]MH_SAM_APDU [16:36:27]CAPDU: 80 13 00 00 [16:36:27]Write to MH i2c: E2 08 00 A6 02 80 13 00 00 00 00 00 00 24 [16:36:27]Write i2c OK [16:36:27]MH_I2C_Read... [16:36:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:27]Read from MH i2c: E2 [16:36:27]MH_I2C_Read... [16:36:27]Read from MH i2c: E2 62 00 [16:36:27]MH_I2C_Read... [16:36:27]Read from MH i2c: E2 62 00 A6 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 67 08 01 00 0E 04 04 00 66 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 41 [16:36:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 67 08 01 00 0E 04 04 00 66 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 [16:36:27]wFMCommunicate OK [16:36:27]SAM_PROTO_GetFieldsCounters done [16:36:27]requested_item shift.num is exist - process it [16:36:27]requested_item shift.opened is exist - process it [16:36:27]req_shift_opened [16:36:27]FM_GetShiftState [16:36:27]SAM_PROTO_GetShiftState [16:36:27]wFMCommunicate request_size=4 [16:36:27]MH_SAM_APDU [16:36:27]CAPDU: 80 13 01 00 [16:36:27]Write to MH i2c: E2 08 00 A7 02 80 13 01 00 00 00 00 00 26 [16:36:27]Write i2c OK [16:36:27]MH_I2C_Read... [16:36:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:27]Read from MH i2c: E2 [16:36:27]MH_I2C_Read... [16:36:27]Read from MH i2c: E2 0E 00 [16:36:27]MH_I2C_Read... [16:36:27]Read from MH i2c: E2 0E 00 A7 02 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 AC [16:36:27]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [16:36:27]wFMCommunicate OK [16:36:27]SAM_PROTO_GetShiftState done [16:36:27]FM_GetShiftState done [16:36:27]req_shift_opened done [16:36:27]requested_item shift.open_date is exist - process it [16:36:27]req_shift_open_date [16:36:27]req_shift_open_date done [16:36:27]produce_requested_data done [16:36:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67687,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [16:36:27]process_action_free close_receipt [16:36:27]json_value_free [16:36:27]json_value_free done [16:36:27]process_json_proto returns [16:36:27]Send response to host [16:36:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67687,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [16:36:27]free response buf [16:36:27]execute_script done [16:36:27]execute_script returns [16:36:27]free content buf [16:36:27]Sock 7.Close socket [16:36:27]Sock 7.Thread stoped [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]accept exits with 9 [16:36:44]New connection [16:36:44]New thread 3066752356 created [16:36:44]Thread 3066608996 joined [16:36:44]Waiting for new connection... [16:36:44] Sock 9.Parse request [16:36:44]Sock 9.Check first char [16:36:44]Sock 9.First char is OK [16:36:44]request: POST /json_proto HTTP/1.0 [16:36:44]Method: POST [16:36:44]URL: /json_proto [16:36:44]Method is POST - this is cgi request [16:36:44]url: /json_proto [16:36:44]query_string will be loaded in cgi processing [16:36:44]execute_cgi json_proto POST (null) [16:36:44]execute_cgi path=json_proto method=POST [16:36:44]POST find Content-Length [16:36:44]Host: 172.17.41.195:8080 [16:36:44]Content-Length: 1179 [16:36:44]Content-Type: application/json [16:36:44] [16:36:44]POST finish read [16:36:44]Found Content-Length = 1179 [16:36: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507838\u000A17.05.2024 16:19\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 70.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 5229.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:44]execute_script... [16:36: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507838\u000A17.05.2024 16:19\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 70.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 5229.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:44]POST & json_proto [16:36:44]process_json_proto [16:36:44]json parsed OK: [16:36:44]protocol is kg_v1.0 [16:36:44]action value=print_text [16:36:44]process_action print_text [16:36:44]cmd_print_text [16:36:44]ExternCall_PrintAddStr [16:36:44]wPrintStart [16:36:44]Write to MH i2c: 01 00 00 A8 02 AA [16:36:44]Write i2c OK [16:36:44]MH_I2C_Read... [16:36:44]Read from MH i2c: 01 [16:36:44]MH_I2C_Read... [16:36:44]Read from MH i2c: 01 07 00 [16:36:44]MH_I2C_Read... [16:36:44]Read from MH i2c: 01 07 00 A8 02 00 00 00 00 00 FF 0F BF [16:36:44]RasterBufferAndPrint [16:36:44]line *****ТОВАРНЫЙ ЧЕК***** [16:36:44]line АЗС-91 [16:36:44]line Партнер нефть [16:36:44]line 02508201610067 [16:36:44]line Кассир : Адишов И. [16:36:44]line Счет N : (1)507838 [16:36:44]line 17.05.2024 16:19 [16:36:44]line ПРОДАЖА [16:36:44]line ТРК (МРК, ГНК): 11 [16:36:44]line Вид ГСМ : 2710194210 [16:36:44]line ДТ-К-5 [16:36:44]line 70.000 x 74.70 [16:36:44]line ИТОГ: 5229.00 [16:36:44]line Тип оплаты: Талоны: Топливная Карта [16:36:44]line 02750 [16:36:44]line ______________________ [16:36:44]line (подпись) [16:36:44]written 0, free lines is 4095 [16:36:44]Write to MH i2c: 01 00 00 BC 02 BE [16:36:44]Write i2c OK [16:36:44]MH_I2C_Read... [16:36:44]Read from MH i2c: 01 [16:36:44]MH_I2C_Read... [16:36:44]Read from MH i2c: 01 07 00 [16:36:44]MH_I2C_Read... [16:36:44]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 0D 0E E0 [16:36:44]RasterBufferAndPrint [16:36:44]line [16:36:44]line [16:36:44]line [16:36:44]line [16:36:44]line [16:36:44]written 0, free lines is 3598 [16:36:44]MH_Cut [16:36:44]Write to MH i2c: D1 01 00 C3 02 01 97 [16:36:44]Write i2c OK [16:36:44]MH_I2C_Read... [16:36:44]Read from MH i2c: D1 [16:36:44]MH_I2C_Read... [16:36:44]Read from MH i2c: D1 01 00 [16:36:44]MH_I2C_Read... [16:36:44]Read from MH i2c: D1 01 00 C3 02 00 96 [16:36:44]Write to MH i2c: 01 00 00 C4 02 C6 [16:36:44]Write i2c OK [16:36:44]MH_I2C_Read... [16:36:44]OFD Sender: No OFD packet to send [16:36:45]*** Cut start [16:36:45]*** Purtial cut [16:36:45]*** Stage 1: CUTSNS_PIN = 1 [16:36:45]Read from MH i2c: 01 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: 01 07 00 [16:36:45]MH_I2C_Read... [16:36:45]*** Stop cut motor [16:36:45]*** Cut end [16:36:45]Read from MH i2c: 01 07 00 C4 02 00 00 00 00 00 FF 0F DB [16:36:45]process_action print_text done [16:36:45]requested_data is exist [16:36:45]produce_requested_data [16:36:45]requested_item fm.sn is exist - process it [16:36:45]wFMCommunicate request_size=4 [16:36:45]MH_SAM_APDU [16:36:45]CAPDU: 80 11 00 00 [16:36:45]Write to MH i2c: E2 08 00 C5 02 80 11 00 00 00 00 00 00 41 [16:36:45]Write i2c OK [16:36:45]MH_I2C_Read... [16:36:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:45]Read from MH i2c: E2 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 17 00 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 17 00 C5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 97 [16:36:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:36:45]wFMCommunicate OK [16:36:45]requested_item fd.num is exist - process it [16:36:45]SAM_PROTO_GetFieldsCounters [16:36:45]wFMCommunicate request_size=4 [16:36:45]MH_SAM_APDU [16:36:45]CAPDU: 80 13 00 00 [16:36:45]Write to MH i2c: E2 08 00 C6 02 80 13 00 00 00 00 00 00 44 [16:36:45]Write i2c OK [16:36:45]MH_I2C_Read... [16:36:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:45]Read from MH i2c: E2 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 62 00 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 62 00 C6 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 67 08 01 00 0E 04 04 00 66 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 61 [16:36: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 67 08 01 00 0E 04 04 00 66 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 [16:36:45]wFMCommunicate OK [16:36:45]SAM_PROTO_GetFieldsCounters done [16:36:45]requested_item shift.num is exist - process it [16:36:45]requested_item shift.opened is exist - process it [16:36:45]req_shift_opened [16:36:45]FM_GetShiftState [16:36:45]SAM_PROTO_GetShiftState [16:36:45]wFMCommunicate request_size=4 [16:36:45]MH_SAM_APDU [16:36:45]CAPDU: 80 13 01 00 [16:36:45]Write to MH i2c: E2 08 00 C7 02 80 13 01 00 00 00 00 00 46 [16:36:45]Write i2c OK [16:36:45]MH_I2C_Read... [16:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:45]Read from MH i2c: E2 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 0E 00 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 0E 00 C7 02 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CC [16:36:45]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [16:36:45]wFMCommunicate OK [16:36:45]SAM_PROTO_GetShiftState done [16:36:45]FM_GetShiftState done [16:36:45]req_shift_opened done [16:36:45]requested_item shift.open_date is exist - process it [16:36:45]req_shift_open_date [16:36:45]req_shift_open_date done [16:36:45]produce_requested_data done [16:36:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67687,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [16:36:45]process_action_free print_text [16:36:45]json_value_free [16:36:45]json_value_free done [16:36:45]process_json_proto returns [16:36:45]Send response to host [16:36:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67687,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [16:36:45]free response buf [16:36:45]execute_script done [16:36:45]execute_script returns [16:36:45]free content buf [16:36:45]Sock 9.Close socket [16:36:45]Sock 9.Thread stoped [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:05]OFD Sender: No OFD packet to send [16:37:10]OFD Sender: No OFD packet to send [16:37:15]OFD Sender: No OFD packet to send [16:37:20]OFD Sender: No OFD packet to send [16:37:25]OFD Sender: No OFD packet to send [16:37:30]OFD Sender: No OFD packet to send [16:37:35]OFD Sender: No OFD packet to send [16:37:40]OFD Sender: No OFD packet to send [16:37:45]OFD Sender: No OFD packet to send [16:37:50]OFD Sender: No OFD packet to send [16:37:55]OFD Sender: No OFD packet to send [16:38:00]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:30]OFD Sender: No OFD packet to send [16:38:35]OFD Sender: No OFD packet to send [16:38:40]OFD Sender: No OFD packet to send [16:38:45]OFD Sender: No OFD packet to send [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:25]OFD Sender: No OFD packet to send [16:40:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:40]OFD Sender: No OFD packet to send [16:40:45]OFD Sender: No OFD packet to send [16:40:50]OFD Sender: No OFD packet to send [16:40:55]OFD Sender: No OFD packet to send [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:50]OFD Sender: No OFD packet to send [16:41:55]OFD Sender: No OFD packet to send [16:42:00]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:10]OFD Sender: No OFD packet to send [16:42:15]OFD Sender: No OFD packet to send [16:42:20]OFD Sender: No OFD packet to send [16:42:25]OFD Sender: No OFD packet to send [16:42:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:24]accept exits with 7 [16:45:24]New connection [16:45:24]New thread 3066608996 created [16:45:24]Thread 3066752356 joined [16:45:24]Waiting for new connection... [16:45:24] Sock 7.Parse request [16:45:24]Sock 7.Check first char [16:45:24]Sock 7.First char is OK [16:45:24]request: POST /json_proto HTTP/1.0 [16:45:24]Method: POST [16:45:24]URL: /json_proto [16:45:24]Method is POST - this is cgi request [16:45:24]url: /json_proto [16:45:24]query_string will be loaded in cgi processing [16:45:24]execute_cgi json_proto POST (null) [16:45:24]execute_cgi path=json_proto method=POST [16:45:24]POST find Content-Length [16:45:24]Host: 172.17.41.195:8080 [16:45:24]Content-Length: 800 [16:45:24]Content-Type: application/json [16:45:24] [16:45:24]POST finish read [16:45:24]Found Content-Length = 800 [16:45:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507840", "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" ] } } [16:45:24]execute_script... [16:45: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)507840", "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" ] } } [16:45:24]POST & json_proto [16:45:24]process_json_proto [16:45:24]json parsed OK: [16:45:24]protocol is kg_v1.0 [16:45:24]action value=close_receipt [16:45:24]process_action close_receipt [16:45:24]cmd_close_receipt [16:45:24]MH_GetDate [16:45:24]Write to MH i2c: F0 00 00 C8 02 B9 [16:45:24]Write i2c OK [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: F0 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: F0 09 00 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: F0 09 00 C8 02 00 A5 89 47 66 FC 21 6F 64 8D [16:45:24]GetLastDocTimeStamp 1715963783 [16:45:24]current date 1715964325 [16:45:24]FM_GetShiftState [16:45:24]SAM_PROTO_GetShiftState [16:45:24]wFMCommunicate request_size=4 [16:45:24]MH_SAM_APDU [16:45:24]CAPDU: 80 13 01 00 [16:45:24]Write to MH i2c: E2 08 00 C9 02 80 13 01 00 00 00 00 00 48 [16:45:24]Write i2c OK [16:45:24]MH_I2C_Read... [16:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:24]Read from MH i2c: E2 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 0E 00 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: E2 0E 00 C9 02 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CE [16:45:24]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [16:45:24]wFMCommunicate OK [16:45:24]SAM_PROTO_GetShiftState done [16:45:24]FM_GetShiftState done [16:45:24]opened in 1715905068 [16:45:24]opened+sec_in_day 1715991468 [16:45:24]quantity*price = 250020 [16:45:24]sum+1 = 250022 [16:45:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.21 НСП 1% : 22.13 НДС 12% : 265.51 Наличными: 0.00 Безнал.: 2500.21 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 97 17.05.2024 16:45 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67688 ФПД: 171066979370061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T164525&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67688&fm=171066979370061&tin=02508201610067®Number=0000000000091845&sum=250021 [16:45:25]StoreToDocumentArchive [16:45:25]shift 358 fd 67688 [16:45:25]save to /storage/0358/doc_00067688 [16:45:25]save last doc name /storage/0358/doc_00067688 to /storage/kkm_last_doc_name [16:45:25]save OK [16:45:25]Clear old archive folders... [16:45:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:45:25]tlvbuf is 01B1BE30 [16:45:25]SAM_PROTO_ClearQueue [16:45:25]wFMCommunicate request_size=4 [16:45:25]MH_SAM_APDU [16:45:25]CAPDU: 80 09 00 00 [16:45:25]Write to MH i2c: E2 08 00 D6 02 80 09 00 00 00 00 00 00 4A [16:45:25]Write i2c OK [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: E2 [16:45:25]MH_I2C_Read... [16:45:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:25]Read from MH i2c: E2 03 00 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: E2 03 00 D6 02 00 90 00 4C [16:45:25]RAPDU: 90 00 [16:45:25]wFMCommunicate OK [16:45:25]SAM_PROTO_ClearQueue done [16:45:25]KKMCreateOFDPacket [16:45:25]OFDProtocolAddRootSTLVToBuf [16:45:25]FM_MakeSignedData [16:45:25]FM_MakeSignedData [16:45:25]SAM_PROTO_SignData [16:45:25]wFMCommunicate request_size=4 [16:45:25]MH_SAM_APDU [16:45:25]CAPDU: 80 0D 01 02 [16:45:25]Write to MH i2c: E2 08 00 D7 02 80 0D 01 02 00 00 00 00 52 [16:45:25]Write i2c OK [16:45:25]MH_I2C_Read... [16:45:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:26]Read from MH i2c: E2 [16:45:26]MH_I2C_Read... [16:45:26]Read from MH i2c: E2 03 00 [16:45:26]MH_I2C_Read... [16:45:26]Read from MH i2c: E2 03 00 D7 02 00 90 00 4D [16:45:26]RAPDU: 90 00 [16:45:26]wFMCommunicate OK [16:45:26]wFMCommunicate request_size=255 [16:45:26]MH_SAM_APDU [16:45:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 82 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 A5 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 A5 89 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 68 08 01 00 35 04 06 00 9B 95 A2 89 [16:45:26]Write to MH i2c: E2 02 01 D8 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 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 61 00 00 00 F4 03 04 00 A5 89 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 68 08 01 00 35 04 06 00 9B 95 A2 89 00 00 E1 [16:45:26]Write i2c OK [16:45:26]MH_I2C_Read... [16:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:26]Read from MH i2c: E2 [16:45:26]MH_I2C_Read... [16:45:26]Read from MH i2c: E2 03 00 [16:45:26]MH_I2C_Read... [16:45:26]Read from MH i2c: E2 03 00 D8 02 00 90 00 4E [16:45:26]RAPDU: 90 00 [16:45:26]wFMCommunicate OK [16:45:26]wFMCommunicate request_size=7 [16:45:26]MH_SAM_APDU [16:45:26]CAPDU: 80 0D 02 02 02 C4 4D [16:45:26]Write to MH i2c: E2 0A 00 D9 02 80 0D 02 02 02 00 C4 4D 00 00 6A [16:45:26]Write i2c OK [16:45:26]MH_I2C_Read... [16:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:26]Read from MH i2c: E2 [16:45:26]MH_I2C_Read... [16:45:26]Read from MH i2c: E2 03 00 [16:45:26]MH_I2C_Read... [16:45:26]Read from MH i2c: E2 03 00 D9 02 00 90 00 4F [16:45:26]RAPDU: 90 00 [16:45:26]wFMCommunicate OK [16:45:26]wFMCommunicate request_size=4 [16:45:26]MH_SAM_APDU [16:45:26]CAPDU: 80 0D 03 02 [16:45:26]Write to MH i2c: E2 08 00 DA 02 80 0D 03 02 00 00 00 00 57 [16:45:26]Write i2c OK [16:45:26]MH_I2C_Read... [16:45:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:26]Read from MH i2c: E2 [16:45:26]MH_I2C_Read... [16:45:26]Read from MH i2c: E2 0B 00 [16:45:26]MH_I2C_Read... [16:45:26]Read from MH i2c: E2 0B 00 DA 02 00 E6 AA 6B 71 8C 13 0C 0F 90 00 7E [16:45:26]RAPDU: E6 AA 6B 71 8C 13 0C 0F 90 00 [16:45:26]wFMCommunicate OK [16:45:26]SAM_PROTO_SignData done [16:45:26]FM_MakeSignedData done [16:45:26]CreateOFDProtocolMessage [16:45:26]wFMCommunicate request_size=4 [16:45:26]MH_SAM_APDU [16:45:26]CAPDU: 80 11 00 00 [16:45:26]Write to MH i2c: E2 08 00 DB 02 80 11 00 00 00 00 00 00 57 [16:45:26]Write i2c OK [16:45:26]MH_I2C_Read... [16:45:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:26]Read from MH i2c: E2 [16:45:26]MH_I2C_Read... [16:45:26]Read from MH i2c: E2 17 00 [16:45:26]MH_I2C_Read... [16:45:26]Read from MH i2c: E2 17 00 DB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AD [16:45: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:45:26]wFMCommunicate OK [16:45:26]CreateOFDProtocolMessage done [16:45:26]OFDSenderStorePacket 67688 [16:45:26]StoreOFDPacket docnum=67688 [16:45: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 90 75 04 01 2F 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 61 00 00 00 F4 03 04 00 A5 89 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 68 08 01 00 35 04 06 00 9B 95 A2 89 C4 4D E6 AA 6B 71 8C 13 0C 0F [16:45:26]CheckFolder [16:45:26]dirname=/storage/ofd_packets [16:45:26]CheckFolder done [16:45:26]ProducePacketName [16:45:26]name=ofd_packets/00067688 [16:45:26]NVStorageSaveData ofd_packets/00067688 [16:45:26]File name is /storage/ofd_packets/00067688 [16:45:26]Write 298 bytes [16:45:26]NVStorageSaveData done [16:45:26]OFDSenderStorePacket done [16:45:26]KKMCreateOFDPacket done [16:45:26]NVStorageSaveData kkm_last_timestamp [16:45:26]File name is /storage/kkm_last_timestamp [16:45:26]Write 4 bytes [16:45:26]NVStorageSaveData done [16:45:26]ExternCall_PrintAddStr [16:45:26]wPrintStart [16:45:26]Write to MH i2c: 01 00 00 DC 02 DE [16:45:26]Write i2c OK [16:45:26]MH_I2C_Read... [16:45:26]Read from MH i2c: 01 [16:45:26]MH_I2C_Read... [16:45:26]Read from MH i2c: 01 07 00 [16:45:26]MH_I2C_Read... [16:45:26]Read from MH i2c: 01 07 00 DC 02 00 00 00 00 00 FF 0F F3 [16:45:26]RasterBufferAndPrint [16:45:26]line Счет N : (1)507840 [16:45:26]line ИНН: 02508201610067 [16:45:26]line Контрольно-Кассовый Чек [16:45:26]line ПРОДАЖА [16:45:26]line ТРК (МРК, ГНК) : 31 [16:45:26]line Товар: 2710194210 [16:45:26]line ДТ-К-5 [16:45:26]line 33.470 * 74.70 [16:45:26]line = 2500.21 [16:45:26]line НДС 12% НСП 1% [16:45:26]line > о реализуемом товаре [16:45:26]line ИТОГО: 2500.21 [16:45:26]line НСП 1% : 22.13 [16:45:26]line НДС 12% : 265.51 [16:45:26]line Наличными: 0.00 [16:45:26]line Безнал.: 2500.21 [16:45:26]line Место: АЗС № 91 "Партнер Нефть" [16:45:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:45:26]line СНО: Общий режим [16:45:26]line Чек 97 17.05.2024 16:45 [16:45:26]line Смена: 358 ФФД: 1.0 [16:45:26]line ЗНМ: 0300000119 [16:45:26]line РНМ: 0000000000091845 [16:45:26]line Версия ККМ: 001 [16:45:26]line Платежная система: O! деньги [16:45:26]line ФМ: 0000000000871829 [16:45:26]line ФД: 67688 [16:45:26]line ФПД: 171066979370061 [16:45:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T164525&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67688&fm=171066979370061&tin=02508201610067®Number=0000000000091845&sum=250021 [16:45:26]OFD Sender: Processing packet 67688 [packets to send 35, broken 34] [16:45:26]ProducePacketName [16:45:26]name=ofd_packets/00067688 [16:45:26]OFD Sender: To server: pG, [16:45:26]CommunicateWithHost lk.salyk.kg:30040 [16:45:26]ConnectInit lk.salyk.kg [16:45:26]written 0, free lines is 4095 [16:45:26]Connected sock=10 [16:45: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 90 75 04 01 2F 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 61 00 00 00 F4 03 04 00 A5 89 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 68 08 01 00 35 04 06 00 9B 95 A2 89 C4 4D E6 AA 6B 71 8C 13 0C 0F [16:45: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 AE 2D 47 00 A0 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 68 08 01 00 F4 03 04 00 7D 31 47 66 B6 04 01 00 00 D0 42 7A EC AA DC 32 FE [16:45:27]CommunicateWithHost err = 0 [16:45:27]CheckOFDResponse [16:45:27]1017 (14) - 77093643461234 [16:45:27]1041 (16) - 0000000000871829 [16:45:27]1040 (4) - 67688 [16:45:27]1012 (4) - 17.05.2024 10:29 [16:45:27]1206 (1) - 0 [16:45:27]OFD Sender: Remove packet 67688 [16:45:27]ProducePacketName [16:45:27]name=ofd_packets/00067688 [16:45:27]NVStorageDeleteData [16:45:27]Write to MH i2c: 01 00 00 05 03 08 [16:45:27]Write i2c OK [16:45:27]MH_I2C_Read... [16:45:27]Read from MH i2c: 01 [16:45:27]MH_I2C_Read... [16:45:27]Read from MH i2c: 01 07 00 [16:45:27]MH_I2C_Read... [16:45:27]Read from MH i2c: 01 07 00 05 03 00 00 00 00 00 EE 0C 09 [16:45:27]RasterBufferAndPrint [16:45:27]line [16:45:27]line [16:45:27]line [16:45:27]line [16:45:27]line [16:45:27]written 0, free lines is 3316 [16:45:27]MH_Cut [16:45:27]Write to MH i2c: D1 01 00 0C 03 01 E1 [16:45:27]Write i2c OK [16:45:27]MH_I2C_Read... [16:45:27]Read from MH i2c: D1 [16:45:27]MH_I2C_Read... [16:45:27]Read from MH i2c: D1 01 00 [16:45:27]MH_I2C_Read... [16:45:27]Read from MH i2c: D1 01 00 0C 03 00 E0 [16:45:27]Write to MH i2c: 01 00 00 0D 03 10 [16:45:27]Write i2c OK [16:45:27]MH_I2C_Read... [16:45:27]OFD Sender: No OFD packet to send [16:45:28]*** Cut start [16:45:28]*** Purtial cut [16:45:28]*** CUTSNS_PIN = 0 [16:45:28]*** Stage 1: CUTSNS_PIN = 1 [16:45:30]Read from MH i2c: 01 [16:45:30]MH_I2C_Read... [16:45:30]*** Stop cut motor [16:45:30]*** Cut end [16:45:30]Read from MH i2c: 01 07 00 [16:45:30]MH_I2C_Read... [16:45:30]Read from MH i2c: 01 07 00 0D 03 00 00 00 00 00 FF 0F 25 [16:45:30]process_action close_receipt done [16:45:30]requested_data is exist [16:45:30]produce_requested_data [16:45:30]requested_item fm.sn is exist - process it [16:45:30]wFMCommunicate request_size=4 [16:45:30]MH_SAM_APDU [16:45:30]CAPDU: 80 11 00 00 [16:45:30]Write to MH i2c: E2 08 00 0E 03 80 11 00 00 00 00 00 00 8B [16:45:30]Write i2c OK [16:45:30]MH_I2C_Read... [16:45:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:30]Read from MH i2c: E2 [16:45:30]MH_I2C_Read... [16:45:30]Read from MH i2c: E2 17 00 [16:45:30]MH_I2C_Read... [16:45:30]Read from MH i2c: E2 17 00 0E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E1 [16:45:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:45:30]wFMCommunicate OK [16:45:30]requested_item fd.num is exist - process it [16:45:30]SAM_PROTO_GetFieldsCounters [16:45:30]wFMCommunicate request_size=4 [16:45:30]MH_SAM_APDU [16:45:30]CAPDU: 80 13 00 00 [16:45:30]Write to MH i2c: E2 08 00 0F 03 80 13 00 00 00 00 00 00 8E [16:45:30]Write i2c OK [16:45:30]MH_I2C_Read... [16:45:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:30]Read from MH i2c: E2 [16:45:30]MH_I2C_Read... [16:45:30]Read from MH i2c: E2 62 00 [16:45:30]MH_I2C_Read... [16:45:30]Read from MH i2c: E2 62 00 0F 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 68 08 01 00 0E 04 04 00 66 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 AF [16:45:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 68 08 01 00 0E 04 04 00 66 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 [16:45:30]wFMCommunicate OK [16:45:30]SAM_PROTO_GetFieldsCounters done [16:45:30]requested_item shift.num is exist - process it [16:45:30]requested_item shift.opened is exist - process it [16:45:30]req_shift_opened [16:45:30]FM_GetShiftState [16:45:30]SAM_PROTO_GetShiftState [16:45:30]wFMCommunicate request_size=4 [16:45:30]MH_SAM_APDU [16:45:30]CAPDU: 80 13 01 00 [16:45:30]Write to MH i2c: E2 08 00 10 03 80 13 01 00 00 00 00 00 90 [16:45:30]Write i2c OK [16:45:30]MH_I2C_Read... [16:45:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:30]Read from MH i2c: E2 [16:45:30]MH_I2C_Read... [16:45:30]Read from MH i2c: E2 0E 00 [16:45:30]MH_I2C_Read... [16:45:30]Read from MH i2c: E2 0E 00 10 03 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 16 [16:45:30]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [16:45:30]wFMCommunicate OK [16:45:30]SAM_PROTO_GetShiftState done [16:45:30]FM_GetShiftState done [16:45:30]req_shift_opened done [16:45:30]requested_item shift.open_date is exist - process it [16:45:30]req_shift_open_date [16:45:30]req_shift_open_date done [16:45:30]produce_requested_data done [16:45:30]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67688,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [16:45:30]process_action_free close_receipt [16:45:30]json_value_free [16:45:30]json_value_free done [16:45:30]process_json_proto returns [16:45:30]Send response to host [16:45:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67688,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [16:45:30]free response buf [16:45:30]execute_script done [16:45:30]execute_script returns [16:45:30]free content buf [16:45:30]Sock 7.Close socket [16:45:30]Sock 7.Thread stoped [16:45:32]OFD Sender: No OFD packet to send [16:45:37]OFD Sender: No OFD packet to send [16:45:42]OFD Sender: No OFD packet to send [16:45:47]OFD Sender: No OFD packet to send [16:45:52]OFD Sender: No OFD packet to send [16:45:57]OFD Sender: No OFD packet to send [16:46:02]OFD Sender: No OFD packet to send [16:46:07]OFD Sender: No OFD packet to send [16:46:12]OFD Sender: No OFD packet to send [16:46:17]OFD Sender: No OFD packet to send [16:46:22]OFD Sender: No OFD packet to send [16:46:27]OFD Sender: No OFD packet to send [16:46:32]OFD Sender: No OFD packet to send [16:46:33]accept exits with 9 [16:46:33]New connection [16:46:33]New thread 3066752356 created [16:46:33]Thread 3066608996 joined [16:46:33]Waiting for new connection... [16:46:33] Sock 9.Parse request [16:46:33]Sock 9.Check first char [16:46:33]Sock 9.First char is OK [16:46:33]request: POST /json_proto HTTP/1.0 [16:46:33]Method: POST [16:46:33]URL: /json_proto [16:46:33]Method is POST - this is cgi request [16:46:33]url: /json_proto [16:46:33]query_string will be loaded in cgi processing [16:46:33]execute_cgi json_proto POST (null) [16:46:33]execute_cgi path=json_proto method=POST [16:46:33]POST find Content-Length [16:46:33]Host: 172.17.41.195:8080 [16:46:33]Content-Length: 1179 [16:46:33]Content-Type: application/json [16:46:33] [16:46:33]POST finish read [16:46:33]Found Content-Length = 1179 [16:46: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507841\u000A17.05.2024 16: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 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" ] } } [16:46:33]execute_script... [16:46: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507841\u000A17.05.2024 16: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 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" ] } } [16:46:33]POST & json_proto [16:46:33]process_json_proto [16:46:33]json parsed OK: [16:46:33]protocol is kg_v1.0 [16:46:33]action value=print_text [16:46:33]process_action print_text [16:46:33]cmd_print_text [16:46:33]ExternCall_PrintAddStr [16:46:33]wPrintStart [16:46:33]Write to MH i2c: 01 00 00 11 03 14 [16:46:33]Write i2c OK [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: 01 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: 01 07 00 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: 01 07 00 11 03 00 00 00 00 00 FF 0F 29 [16:46:33]RasterBufferAndPrint [16:46:33]line *****ТОВАРНЫЙ ЧЕК***** [16:46:33]line АЗС-91 [16:46:33]line Партнер нефть [16:46:33]line 02508201610067 [16:46:33]line Кассир : Адишов И. [16:46:33]line Счет N : (1)507841 [16:46:33]line 17.05.2024 16:29 [16:46:33]line ПРОДАЖА [16:46:33]line ТРК (МРК, ГНК): 11 [16:46:33]line Вид ГСМ : 2710194210 [16:46:33]line ДТ-К-5 [16:46:33]line 20.000 x 74.70 [16:46:33]line ИТОГ: 1494.00 [16:46:33]line Тип оплаты: Талоны: Топливная Карта [16:46:33]line 02750 [16:46:33]line ______________________ [16:46:33]line (подпись) [16:46:33]written 0, free lines is 4095 [16:46:33]Write to MH i2c: 01 00 00 25 03 28 [16:46:33]Write i2c OK [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: 01 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: 01 07 00 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: 01 07 00 25 03 00 00 00 00 00 0C 0E 49 [16:46:33]RasterBufferAndPrint [16:46:33]line [16:46:33]line [16:46:33]line [16:46:33]line [16:46:33]line [16:46:33]written 0, free lines is 3598 [16:46:33]MH_Cut [16:46:33]Write to MH i2c: D1 01 00 2C 03 01 01 [16:46:33]Write i2c OK [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: D1 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: D1 01 00 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: D1 01 00 2C 03 00 00 [16:46:33]Write to MH i2c: 01 00 00 2D 03 30 [16:46:33]Write i2c OK [16:46:33]MH_I2C_Read... [16:46:33]*** Cut start [16:46:33]*** Purtial cut [16:46:33]*** Stage 1: CUTSNS_PIN = 1 [16:46:34]Read from MH i2c: 01 [16:46:34]MH_I2C_Read... [16:46:34]*** Stop cut motor [16:46:34]*** Cut end [16:46:34]Read from MH i2c: 01 07 00 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: 01 07 00 2D 03 00 00 00 00 00 FF 0F 45 [16:46:34]process_action print_text done [16:46:34]requested_data is exist [16:46:34]produce_requested_data [16:46:34]requested_item fm.sn is exist - process it [16:46:34]wFMCommunicate request_size=4 [16:46:34]MH_SAM_APDU [16:46:34]CAPDU: 80 11 00 00 [16:46:34]Write to MH i2c: E2 08 00 2E 03 80 11 00 00 00 00 00 00 AB [16:46:34]Write i2c OK [16:46:34]MH_I2C_Read... [16:46:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:34]Read from MH i2c: E2 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 17 00 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 17 00 2E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 01 [16: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 [16:46:34]wFMCommunicate OK [16:46:34]requested_item fd.num is exist - process it [16:46:34]SAM_PROTO_GetFieldsCounters [16:46:34]wFMCommunicate request_size=4 [16:46:34]MH_SAM_APDU [16:46:34]CAPDU: 80 13 00 00 [16:46:34]Write to MH i2c: E2 08 00 2F 03 80 13 00 00 00 00 00 00 AE [16:46:34]Write i2c OK [16:46:34]MH_I2C_Read... [16:46:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:34]Read from MH i2c: E2 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 62 00 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 62 00 2F 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 68 08 01 00 0E 04 04 00 66 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 CF [16: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 68 08 01 00 0E 04 04 00 66 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 [16:46:34]wFMCommunicate OK [16:46:34]SAM_PROTO_GetFieldsCounters done [16:46:34]requested_item shift.num is exist - process it [16:46:34]requested_item shift.opened is exist - process it [16:46:34]req_shift_opened [16:46:34]FM_GetShiftState [16:46:34]SAM_PROTO_GetShiftState [16:46:34]wFMCommunicate request_size=4 [16:46:34]MH_SAM_APDU [16:46:34]CAPDU: 80 13 01 00 [16:46:34]Write to MH i2c: E2 08 00 30 03 80 13 01 00 00 00 00 00 B0 [16:46:34]Write i2c OK [16:46:34]MH_I2C_Read... [16:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:34]Read from MH i2c: E2 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 0E 00 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 0E 00 30 03 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 36 [16:46:34]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [16:46:34]wFMCommunicate OK [16:46:34]SAM_PROTO_GetShiftState done [16:46:34]FM_GetShiftState done [16:46:34]req_shift_opened done [16:46:34]requested_item shift.open_date is exist - process it [16:46:34]req_shift_open_date [16:46:34]req_shift_open_date done [16:46:34]produce_requested_data done [16:46:34]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67688,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [16:46:34]process_action_free print_text [16:46:34]json_value_free [16:46:34]json_value_free done [16:46:34]process_json_proto returns [16:46:34]Send response to host [16:46:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67688,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [16:46:34]free response buf [16:46:34]execute_script done [16:46:34]execute_script returns [16:46:34]free content buf [16:46:34]Sock 9.Close socket [16:46:34]Sock 9.Thread stoped [16:46:37]OFD Sender: No OFD packet to send [16:46:42]OFD Sender: No OFD packet to send [16:46:47]OFD Sender: No OFD packet to send [16:46:52]OFD Sender: No OFD packet to send [16:46:57]OFD Sender: No OFD packet to send [16:47:02]OFD Sender: No OFD packet to send [16:47:07]OFD Sender: No OFD packet to send [16:47:12]OFD Sender: No OFD packet to send [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:37]OFD Sender: No OFD packet to send [16:47:42]OFD Sender: No OFD packet to send [16:47:47]OFD Sender: No OFD packet to send [16:47:52]OFD Sender: No OFD packet to send [16:47:57]OFD Sender: No OFD packet to send [16:48:02]OFD Sender: No OFD packet to send [16:48:07]OFD Sender: No OFD packet to send [16:48:12]OFD Sender: No OFD packet to send [16:48:17]OFD Sender: No OFD packet to send [16:48:22]OFD Sender: No OFD packet to send [16:48:27]OFD Sender: No OFD packet to send [16:48:32]OFD Sender: No OFD packet to send [16:48:37]OFD Sender: No OFD packet to send [16:48:42]OFD Sender: No OFD packet to send [16:48:47]OFD Sender: No OFD packet to send [16:48:52]OFD Sender: No OFD packet to send [16:48:57]OFD Sender: No OFD packet to send [16:49:02]OFD Sender: No OFD packet to send [16:49:07]OFD Sender: No OFD packet to send [16:49:12]OFD Sender: No OFD packet to send [16:49:17]OFD Sender: No OFD packet to send [16:49:22]OFD Sender: No OFD packet to send [16:49:27]OFD Sender: No OFD packet to send [16:49:32]OFD Sender: No OFD packet to send [16:49:37]OFD Sender: No OFD packet to send [16:49:42]OFD Sender: No OFD packet to send [16:49:47]OFD Sender: No OFD packet to send [16:49:52]OFD Sender: No OFD packet to send [16:49:57]OFD Sender: No OFD packet to send [16:50:02]OFD Sender: No OFD packet to send [16:50:07]OFD Sender: No OFD packet to send [16:50:12]OFD Sender: No OFD packet to send [16:50:17]OFD Sender: No OFD packet to send [16:50:22]OFD Sender: No OFD packet to send [16:50:27]OFD Sender: No OFD packet to send [16:50:32]OFD Sender: No OFD packet to send [16:50:37]OFD Sender: No OFD packet to send [16:50:42]OFD Sender: No OFD packet to send [16:50:47]OFD Sender: No OFD packet to send [16:50:52]OFD Sender: No OFD packet to send [16:50:57]OFD Sender: No OFD packet to send [16:51:02]OFD Sender: No OFD packet to send [16:51:07]OFD Sender: No OFD packet to send [16:51:12]OFD Sender: No OFD packet to send [16:51:17]OFD Sender: No OFD packet to send [16:51:22]OFD Sender: No OFD packet to send [16:51:27]OFD Sender: No OFD packet to send [16:51:32]OFD Sender: No OFD packet to send [16:51:37]OFD Sender: No OFD packet to send [16:51:42]OFD Sender: No OFD packet to send [16:51:47]OFD Sender: No OFD packet to send [16:51:52]OFD Sender: No OFD packet to send [16:51:57]OFD Sender: No OFD packet to send [16:52:02]OFD Sender: No OFD packet to send [16:52:07]OFD Sender: No OFD packet to send [16:52:12]OFD Sender: No OFD packet to send [16:52:17]OFD Sender: No OFD packet to send [16:52:22]OFD Sender: No OFD packet to send [16:52:27]OFD Sender: No OFD packet to send [16:52:32]OFD Sender: No OFD packet to send [16:52:37]OFD Sender: No OFD packet to send [16:52:42]OFD Sender: No OFD packet to send [16:52:47]OFD Sender: No OFD packet to send [16:52:52]OFD Sender: No OFD packet to send [16:52:57]OFD Sender: No OFD packet to send [16:53:02]OFD Sender: No OFD packet to send [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:28]OFD Sender: No OFD packet to send [16:53:33]OFD Sender: No OFD packet to send [16:53:38]OFD Sender: No OFD packet to send [16:53:43]OFD Sender: No OFD packet to send [16:53:48]OFD Sender: No OFD packet to send [16:53:53]OFD Sender: No OFD packet to send [16:53:58]OFD Sender: No OFD packet to send [16:54:03]OFD Sender: No OFD packet to send [16:54:05]accept exits with 7 [16:54:05]New connection [16:54:05]New thread 3066608996 created [16:54:05]Thread 3066752356 joined [16:54:05]Waiting for new connection... [16:54:05] Sock 7.Parse request [16:54:05]Sock 7.Check first char [16:54:05]Sock 7.First char is OK [16:54:05]request: POST /json_proto HTTP/1.0 [16:54:05]Method: POST [16:54:05]URL: /json_proto [16:54:05]Method is POST - this is cgi request [16:54:05]url: /json_proto [16:54:05]query_string will be loaded in cgi processing [16:54:05]execute_cgi json_proto POST (null) [16:54:05]execute_cgi path=json_proto method=POST [16:54:05]POST find Content-Length [16:54:05]Host: 172.17.41.195:8080 [16:54:05]Content-Length: 682 [16:54:05]Content-Type: application/json [16:54:05] [16:54:05]POST finish read [16:54:05]Found Content-Length = 682 [16:54:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507842", "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" ] } } [16:54:05]execute_script... [16:54: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)507842", "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" ] } } [16:54:05]POST & json_proto [16:54:05]process_json_proto [16:54:05]json parsed OK: [16:54:05]protocol is kg_v1.0 [16:54:05]action value=close_receipt [16:54:05]process_action close_receipt [16:54:05]cmd_close_receipt [16:54:05]MH_GetDate [16:54:05]Write to MH i2c: F0 00 00 31 03 23 [16:54:05]Write i2c OK [16:54:05]MH_I2C_Read... [16:54:05]Read from MH i2c: F0 [16:54:05]MH_I2C_Read... [16:54:05]Read from MH i2c: F0 09 00 [16:54:05]MH_I2C_Read... [16:54:05]Read from MH i2c: F0 09 00 31 03 00 AE 8B 47 66 FC 21 6F 64 02 [16:54:05]GetLastDocTimeStamp 1715964325 [16:54:05]current date 1715964846 [16:54:05]FM_GetShiftState [16:54:05]SAM_PROTO_GetShiftState [16:54:05]wFMCommunicate request_size=4 [16:54:05]MH_SAM_APDU [16:54:05]CAPDU: 80 13 01 00 [16:54:05]Write to MH i2c: E2 08 00 32 03 80 13 01 00 00 00 00 00 B2 [16:54:05]Write i2c OK [16:54:05]MH_I2C_Read... [16:54:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:05]Read from MH i2c: E2 [16:54:05]MH_I2C_Read... [16:54:05]Read from MH i2c: E2 0E 00 [16:54:05]MH_I2C_Read... [16:54:05]Read from MH i2c: E2 0E 00 32 03 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 38 [16:54:05]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [16:54:05]wFMCommunicate OK [16:54:05]SAM_PROTO_GetShiftState done [16:54:05]FM_GetShiftState done [16:54:05]opened in 1715905068 [16:54:05]opened+sec_in_day 1715991468 [16:54:05]quantity*price = 100066 [16:54:05]sum+1 = 100067 [16:54:05]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 СНО: Общий режим Чек 98 17.05.2024 16:54 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67689 ФПД: 121451650298512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T165406&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67689&fm=121451650298512&tin=02508201610067®Number=0000000000091845&sum=100000 [16:54:06]StoreToDocumentArchive [16:54:06]shift 358 fd 67689 [16:54:06]save to /storage/0358/doc_00067689 [16:54:06]save last doc name /storage/0358/doc_00067689 to /storage/kkm_last_doc_name [16:54:06]save OK [16:54:06]Clear old archive folders... [16:54:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:54:06]tlvbuf is 01AF8A70 [16:54:06]SAM_PROTO_ClearQueue [16:54:06]wFMCommunicate request_size=4 [16:54:06]MH_SAM_APDU [16:54:06]CAPDU: 80 09 00 00 [16:54:06]Write to MH i2c: E2 08 00 3F 03 80 09 00 00 00 00 00 00 B4 [16:54:06]Write i2c OK [16:54:06]MH_I2C_Read... [16:54:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:06]Read from MH i2c: E2 [16:54:06]MH_I2C_Read... [16:54:06]Read from MH i2c: E2 03 00 [16:54:06]MH_I2C_Read... [16:54:06]Read from MH i2c: E2 03 00 3F 03 00 90 00 B6 [16:54:06]RAPDU: 90 00 [16:54:06]wFMCommunicate OK [16:54:06]SAM_PROTO_ClearQueue done [16:54:06]KKMCreateOFDPacket [16:54:06]OFDProtocolAddRootSTLVToBuf [16:54:06]FM_MakeSignedData [16:54:06]FM_MakeSignedData [16:54:06]SAM_PROTO_SignData [16:54:06]wFMCommunicate request_size=4 [16:54:06]MH_SAM_APDU [16:54:06]CAPDU: 80 0D 01 02 [16:54:06]Write to MH i2c: E2 08 00 40 03 80 0D 01 02 00 00 00 00 BC [16:54:06]Write i2c OK [16:54:06]MH_I2C_Read... [16:54:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:07]Read from MH i2c: E2 [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: E2 03 00 [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: E2 03 00 40 03 00 90 00 B7 [16:54:07]RAPDU: 90 00 [16:54:07]wFMCommunicate OK [16:54:07]wFMCommunicate request_size=255 [16:54:07]MH_SAM_APDU [16:54: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 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 62 00 00 00 F4 03 04 00 AE 8B 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 69 08 01 00 35 04 06 00 6E [16:54:07]Write to MH i2c: E2 02 01 41 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 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 62 00 00 00 F4 03 04 00 AE 8B 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 69 08 01 00 35 04 06 00 6E 00 00 24 [16:54:07]Write i2c OK [16:54:07]MH_I2C_Read... [16:54:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:07]Read from MH i2c: E2 [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: E2 03 00 [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: E2 03 00 41 03 00 90 00 B8 [16:54:07]RAPDU: 90 00 [16:54:07]wFMCommunicate OK [16:54:07]wFMCommunicate request_size=10 [16:54:07]MH_SAM_APDU [16:54:07]CAPDU: 80 0D 02 02 05 75 AA 79 32 90 [16:54:07]Write to MH i2c: E2 0D 00 42 03 80 0D 02 02 05 00 75 AA 79 32 90 00 00 23 [16:54:07]Write i2c OK [16:54:07]MH_I2C_Read... [16:54:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:07]Read from MH i2c: E2 [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: E2 03 00 [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: E2 03 00 42 03 00 90 00 B9 [16:54:07]RAPDU: 90 00 [16:54:07]wFMCommunicate OK [16:54:07]wFMCommunicate request_size=4 [16:54:07]MH_SAM_APDU [16:54:07]CAPDU: 80 0D 03 02 [16:54:07]Write to MH i2c: E2 08 00 43 03 80 0D 03 02 00 00 00 00 C1 [16:54:07]Write i2c OK [16:54:07]MH_I2C_Read... [16:54:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:07]Read from MH i2c: E2 [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: E2 0B 00 [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: E2 0B 00 43 03 00 C7 72 99 EE B6 EB 8B C4 90 00 72 [16:54:07]RAPDU: C7 72 99 EE B6 EB 8B C4 90 00 [16:54:07]wFMCommunicate OK [16:54:07]SAM_PROTO_SignData done [16:54:07]FM_MakeSignedData done [16:54:07]CreateOFDProtocolMessage [16:54:07]wFMCommunicate request_size=4 [16:54:07]MH_SAM_APDU [16:54:07]CAPDU: 80 11 00 00 [16:54:07]Write to MH i2c: E2 08 00 44 03 80 11 00 00 00 00 00 00 C1 [16:54:07]Write i2c OK [16:54:07]MH_I2C_Read... [16:54:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:07]Read from MH i2c: E2 [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: E2 17 00 [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: E2 17 00 44 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 17 [16:54:07]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:07]wFMCommunicate OK [16:54:07]CreateOFDProtocolMessage done [16:54:07]OFDSenderStorePacket 67689 [16:54:07]StoreOFDPacket docnum=67689 [16:54: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 6A AD 07 01 1C A0 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 62 00 00 00 F4 03 04 00 AE 8B 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 69 08 01 00 35 04 06 00 6E 75 AA 79 32 90 C7 72 99 EE B6 EB 8B C4 [16:54:07]CheckFolder [16:54:07]dirname=/storage/ofd_packets [16:54:07]CheckFolder done [16:54:07]ProducePacketName [16:54:07]name=ofd_packets/00067689 [16:54:07]NVStorageSaveData ofd_packets/00067689 [16:54:07]File name is /storage/ofd_packets/00067689 [16:54:07]Write 301 bytes [16:54:07]NVStorageSaveData done [16:54:07]OFDSenderStorePacket done [16:54:07]KKMCreateOFDPacket done [16:54:07]NVStorageSaveData kkm_last_timestamp [16:54:07]File name is /storage/kkm_last_timestamp [16:54:07]Write 4 bytes [16:54:07]NVStorageSaveData done [16:54:07]ExternCall_PrintAddStr [16:54:07]wPrintStart [16:54:07]Write to MH i2c: 01 00 00 45 03 48 [16:54:07]Write i2c OK [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: 01 [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: 01 07 00 [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: 01 07 00 45 03 00 00 00 00 00 FF 0F 5D [16:54:07]RasterBufferAndPrint [16:54:07]line Счет N : (1)507842 [16:54:07]line ИНН: 02508201610067 [16:54:07]line Контрольно-Кассовый Чек [16:54:07]line ПРОДАЖА [16:54:07]line ТРК (МРК, ГНК) : 43 [16:54:07]line Товар: 2710124130 [16:54:07]line Аи-92-К-5 [16:54:07]line 14.980 * 66.80 [16:54:07]line = 1000.66 [16:54:07]line НДС 12% НСП 1% [16:54:07]line > о реализуемом товаре [16:54:07]line ОКРУГЛЕНИЕ: -0.66 [16:54:07]line ИТОГО: 1000.00 [16:54:07]line Внесено: 1000.00 [16:54:07]line СДАЧА: 0.00 [16:54:07]line НСП 1% : 8.85 [16:54:07]line НДС 12% : 106.26 [16:54:07]line Наличными: 1000.00 [16:54:07]line Безнал.: 0.00 [16:54:07]line Место: АЗС № 91 "Партнер Нефть" [16:54:07]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:54:07]line СНО: Общий режим [16:54:07]line Чек 98 17.05.2024 16:54 [16:54:07]line Смена: 358 ФФД: 1.0 [16:54:07]line ЗНМ: 0300000119 [16:54:07]line РНМ: 0000000000091845 [16:54:07]line Версия ККМ: 001 [16:54:07]line ФМ: 0000000000871829 [16:54:07]line ФД: 67689 [16:54:07]line ФПД: 121451650298512 [16:54:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T165406&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67689&fm=121451650298512&tin=02508201610067®Number=0000000000091845&sum=100000 [16:54:07]written 0, free lines is 4095 [16:54:07]OFD Sender: Processing packet 67689 [packets to send 35, broken 34] [16:54:07]ProducePacketName [16:54:07]name=ofd_packets/00067689 [16:54:07]OFD Sender: To server: pG, [16:54:07]CommunicateWithHost lk.salyk.kg:30040 [16:54:07]ConnectInit lk.salyk.kg [16:54:07]Connected sock=10 [16:54: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 6A AD 07 01 1C A0 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 62 00 00 00 F4 03 04 00 AE 8B 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 69 08 01 00 35 04 06 00 6E 75 AA 79 32 90 C7 72 99 EE B6 EB 8B C4 [16:54: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 3A F7 47 00 F3 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 69 08 01 00 F4 03 04 00 86 33 47 66 B6 04 01 00 00 62 55 95 C2 A6 22 63 28 [16:54:08]CommunicateWithHost err = 0 [16:54:08]CheckOFDResponse [16:54:08]1017 (14) - 77093643461234 [16:54:08]1041 (16) - 0000000000871829 [16:54:08]1040 (4) - 67689 [16:54:08]1012 (4) - 17.05.2024 10:37 [16:54:08]1206 (1) - 0 [16:54:08]OFD Sender: Remove packet 67689 [16:54:08]ProducePacketName [16:54:08]name=ofd_packets/00067689 [16:54:08]NVStorageDeleteData [16:54:08]Write to MH i2c: 01 00 00 6F 03 72 [16:54:08]Write i2c OK [16:54:08]MH_I2C_Read... [16:54:08]Read from MH i2c: 01 [16:54:08]MH_I2C_Read... [16:54:08]Read from MH i2c: 01 07 00 [16:54:08]MH_I2C_Read... [16:54:08]Read from MH i2c: 01 07 00 6F 03 00 00 00 00 00 CF 0C 54 [16:54:08]RasterBufferAndPrint [16:54:08]line [16:54:08]line [16:54:08]line [16:54:08]line [16:54:08]line [16:54:08]written 0, free lines is 3285 [16:54:08]MH_Cut [16:54:08]Write to MH i2c: D1 01 00 76 03 01 4B [16:54:08]Write i2c OK [16:54:08]MH_I2C_Read... [16:54:08]Read from MH i2c: D1 [16:54:08]MH_I2C_Read... [16:54:08]Read from MH i2c: D1 01 00 [16:54:08]MH_I2C_Read... [16:54:08]Read from MH i2c: D1 01 00 76 03 00 4A [16:54:08]Write to MH i2c: 01 00 00 77 03 7A [16:54:08]Write i2c OK [16:54:08]MH_I2C_Read... [16:54:08]OFD Sender: No OFD packet to send [16:54:09]*** Cut start [16:54:09]*** Purtial cut [16:54:09]*** CUTSNS_PIN = 0 [16:54:09]*** Stage 1: CUTSNS_PIN = 1 [16:54:11]Read from MH i2c: 01 [16:54:11]MH_I2C_Read... [16:54:11]*** Stop cut motor [16:54:11]*** Cut end [16:54:11]Read from MH i2c: 01 07 00 [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: 01 07 00 77 03 00 00 00 00 00 FF 0F 8F [16:54:11]process_action close_receipt done [16:54:11]requested_data is exist [16:54:11]produce_requested_data [16:54:11]requested_item fm.sn is exist - process it [16:54:11]wFMCommunicate request_size=4 [16:54:11]MH_SAM_APDU [16:54:11]CAPDU: 80 11 00 00 [16:54:11]Write to MH i2c: E2 08 00 78 03 80 11 00 00 00 00 00 00 F5 [16:54:11]Write i2c OK [16:54:11]MH_I2C_Read... [16:54:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:11]Read from MH i2c: E2 [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: E2 17 00 [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: E2 17 00 78 03 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:54:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:54:11]wFMCommunicate OK [16:54:11]requested_item fd.num is exist - process it [16:54:11]SAM_PROTO_GetFieldsCounters [16:54:11]wFMCommunicate request_size=4 [16:54:11]MH_SAM_APDU [16:54:11]CAPDU: 80 13 00 00 [16:54:11]Write to MH i2c: E2 08 00 79 03 80 13 00 00 00 00 00 00 F8 [16:54:11]Write i2c OK [16:54:11]MH_I2C_Read... [16:54:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:11]Read from MH i2c: E2 [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: E2 62 00 [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: E2 62 00 79 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 69 08 01 00 0E 04 04 00 66 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 1D [16:54: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 69 08 01 00 0E 04 04 00 66 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 [16:54:11]wFMCommunicate OK [16:54:11]SAM_PROTO_GetFieldsCounters done [16:54:11]requested_item shift.num is exist - process it [16:54:11]requested_item shift.opened is exist - process it [16:54:11]req_shift_opened [16:54:11]FM_GetShiftState [16:54:11]SAM_PROTO_GetShiftState [16:54:11]wFMCommunicate request_size=4 [16:54:11]MH_SAM_APDU [16:54:11]CAPDU: 80 13 01 00 [16:54:11]Write to MH i2c: E2 08 00 7A 03 80 13 01 00 00 00 00 00 FA [16:54:11]Write i2c OK [16:54:11]MH_I2C_Read... [16:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:11]Read from MH i2c: E2 [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: E2 0E 00 [16:54:11]MH_I2C_Read... [16:54:11]Read from MH i2c: E2 0E 00 7A 03 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 80 [16:54:11]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [16:54:11]wFMCommunicate OK [16:54:11]SAM_PROTO_GetShiftState done [16:54:11]FM_GetShiftState done [16:54:11]req_shift_opened done [16:54:11]requested_item shift.open_date is exist - process it [16:54:11]req_shift_open_date [16:54:11]req_shift_open_date done [16:54:11]produce_requested_data done [16:54:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67689,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [16:54:11]process_action_free close_receipt [16:54:11]json_value_free [16:54:11]json_value_free done [16:54:11]process_json_proto returns [16:54:11]Send response to host [16:54:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67689,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [16:54:11]free response buf [16:54:11]execute_script done [16:54:11]execute_script returns [16:54:11]free content buf [16:54:11]Sock 7.Close socket [16:54:11]Sock 7.Thread stoped [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:53]OFD Sender: No OFD packet to send [16:54:58]OFD Sender: No OFD packet to send [16:55:03]OFD Sender: No OFD packet to send [16:55:08]OFD Sender: No OFD packet to send [16:55:13]OFD Sender: No OFD packet to send [16:55:18]OFD Sender: No OFD packet to send [16:55:23]OFD Sender: No OFD packet to send [16:55:28]OFD Sender: No OFD packet to send [16:55:33]OFD Sender: No OFD packet to send [16:55:38]OFD Sender: No OFD packet to send [16:55:43]OFD Sender: No OFD packet to send [16:55:48]OFD Sender: No OFD packet to send [16:55:53]OFD Sender: No OFD packet to send [16:55:58]OFD Sender: No OFD packet to send [16:56:03]OFD Sender: No OFD packet to send [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:03]OFD Sender: No OFD packet to send [16:59:08]OFD Sender: No OFD packet to send [16:59:13]OFD Sender: No OFD packet to send [16:59:18]OFD Sender: No OFD packet to send [16:59:23]OFD Sender: No OFD packet to send [16:59:28]OFD Sender: No OFD packet to send [16:59:33]OFD Sender: No OFD packet to send [16:59:38]OFD Sender: No OFD packet to send [16:59:43]OFD Sender: No OFD packet to send [16:59:48]OFD Sender: No OFD packet to send [16:59:53]OFD Sender: No OFD packet to send [16:59:58]OFD Sender: No OFD packet to send [17:00:03]OFD Sender: No OFD packet to send [17:00:08]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:18]OFD Sender: No OFD packet to send [17:00:23]OFD Sender: No OFD packet to send [17:00:28]OFD Sender: No OFD packet to send [17:00:33]OFD Sender: No OFD packet to send [17:00:38]OFD Sender: No OFD packet to send [17:00:43]OFD Sender: No OFD packet to send [17:00:48]OFD Sender: No OFD packet to send [17:00:53]OFD Sender: No OFD packet to send [17:00:58]OFD Sender: No OFD packet to send [17:01:03]OFD Sender: No OFD packet to send [17:01:08]OFD Sender: No OFD packet to send [17:01:13]OFD Sender: No OFD packet to send [17:01:18]OFD Sender: No OFD packet to send [17:01:23]OFD Sender: No OFD packet to send [17:01:28]OFD Sender: No OFD packet to send [17:01:33]OFD Sender: No OFD packet to send [17:01:38]OFD Sender: No OFD packet to send [17:01:43]OFD Sender: No OFD packet to send [17:01:48]OFD Sender: No OFD packet to send [17:01:53]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:11]accept exits with 9 [17:05:11]New connection [17:05:11]New thread 3066752356 created [17:05:11]Thread 3066608996 joined [17:05:11]Waiting for new connection... [17:05:11] Sock 9.Parse request [17:05:11]Sock 9.Check first char [17:05:11]Sock 9.First char is OK [17:05:11]request: POST /json_proto HTTP/1.0 [17:05:11]Method: POST [17:05:11]URL: /json_proto [17:05:11]Method is POST - this is cgi request [17:05:11]url: /json_proto [17:05:11]query_string will be loaded in cgi processing [17:05:11]execute_cgi json_proto POST (null) [17:05:11]execute_cgi path=json_proto method=POST [17:05:11]POST find Content-Length [17:05:11]Host: 172.17.41.195:8080 [17:05:11]Content-Length: 679 [17:05:11]Content-Type: application/json [17:05:11] [17:05:11]POST finish read [17:05:11]Found Content-Length = 679 [17:05:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507843", "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 }]} ], "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" ] } } [17:05:11]execute_script... [17:05: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)507843", "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 }]} ], "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" ] } } [17:05:11]POST & json_proto [17:05:11]process_json_proto [17:05:11]json parsed OK: [17:05:11]protocol is kg_v1.0 [17:05:11]action value=close_receipt [17:05:11]process_action close_receipt [17:05:11]cmd_close_receipt [17:05:11]MH_GetDate [17:05:11]Write to MH i2c: F0 00 00 7B 03 6D [17:05:11]Write i2c OK [17:05:11]MH_I2C_Read... [17:05:11]Read from MH i2c: F0 [17:05:11]MH_I2C_Read... [17:05:11]Read from MH i2c: F0 09 00 [17:05:11]MH_I2C_Read... [17:05:11]Read from MH i2c: F0 09 00 7B 03 00 48 8E 47 66 FC 21 6F 64 E9 [17:05:11]GetLastDocTimeStamp 1715964846 [17:05:11]current date 1715965512 [17:05:11]FM_GetShiftState [17:05:11]SAM_PROTO_GetShiftState [17:05:11]wFMCommunicate request_size=4 [17:05:11]MH_SAM_APDU [17:05:11]CAPDU: 80 13 01 00 [17:05:11]Write to MH i2c: E2 08 00 7C 03 80 13 01 00 00 00 00 00 FC [17:05:11]Write i2c OK [17:05:11]MH_I2C_Read... [17:05:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:11]Read from MH i2c: E2 [17:05:11]MH_I2C_Read... [17:05:11]Read from MH i2c: E2 0E 00 [17:05:11]MH_I2C_Read... [17:05:11]Read from MH i2c: E2 0E 00 7C 03 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 82 [17:05:11]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:05:11]wFMCommunicate OK [17:05:11]SAM_PROTO_GetShiftState done [17:05:11]FM_GetShiftState done [17:05:11]opened in 1715905068 [17:05:11]opened+sec_in_day 1715991468 [17:05:11]quantity*price = 200046 [17:05:11]sum+1 = 200048 [17:05:11]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 СНО: Общий режим Чек 99 17.05.2024 17:05 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67690 ФПД: 254460775810793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T170512&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67690&fm=254460775810793&tin=02508201610067®Number=0000000000091845&sum=200000 [17:05:12]StoreToDocumentArchive [17:05:12]shift 358 fd 67690 [17:05:12]save to /storage/0358/doc_00067690 [17:05:12]save last doc name /storage/0358/doc_00067690 to /storage/kkm_last_doc_name [17:05:12]save OK [17:05:12]Clear old archive folders... [17:05:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:05:12]tlvbuf is 01AF5FE0 [17:05:12]SAM_PROTO_ClearQueue [17:05:12]wFMCommunicate request_size=4 [17:05:12]MH_SAM_APDU [17:05:12]CAPDU: 80 09 00 00 [17:05:12]Write to MH i2c: E2 08 00 89 03 80 09 00 00 00 00 00 00 FE [17:05:12]Write i2c OK [17:05:12]MH_I2C_Read... [17:05:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:12]Read from MH i2c: E2 [17:05:12]MH_I2C_Read... [17:05:12]Read from MH i2c: E2 03 00 [17:05:12]MH_I2C_Read... [17:05:12]Read from MH i2c: E2 03 00 89 03 00 90 00 00 [17:05:12]RAPDU: 90 00 [17:05:12]wFMCommunicate OK [17:05:12]SAM_PROTO_ClearQueue done [17:05:12]KKMCreateOFDPacket [17:05:12]OFDProtocolAddRootSTLVToBuf [17:05:12]FM_MakeSignedData [17:05:12]FM_MakeSignedData [17:05:12]SAM_PROTO_SignData [17:05:12]wFMCommunicate request_size=4 [17:05:12]MH_SAM_APDU [17:05:12]CAPDU: 80 0D 01 02 [17:05:12]Write to MH i2c: E2 08 00 8A 03 80 0D 01 02 00 00 00 00 06 [17:05:12]Write i2c OK [17:05:12]MH_I2C_Read... [17:05:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:12]Read from MH i2c: E2 [17:05:12]MH_I2C_Read... [17:05:12]Read from MH i2c: E2 03 00 [17:05:12]MH_I2C_Read... [17:05:12]Read from MH i2c: E2 03 00 8A 03 00 90 00 01 [17:05:12]RAPDU: 90 00 [17:05:12]wFMCommunicate OK [17:05:12]wFMCommunicate request_size=255 [17:05:12]MH_SAM_APDU [17:05:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 63 00 00 00 F4 03 04 00 48 8E 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6A 08 01 00 35 04 06 00 E7 6E 44 26 [17:05:12]Write to MH i2c: E2 02 01 8B 03 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 63 00 00 00 F4 03 04 00 48 8E 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6A 08 01 00 35 04 06 00 E7 6E 44 26 00 00 93 [17:05:12]Write i2c OK [17:05:12]MH_I2C_Read... [17:05:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:12]Read from MH i2c: E2 [17:05:12]MH_I2C_Read... [17:05:12]Read from MH i2c: E2 03 00 [17:05:12]MH_I2C_Read... [17:05:12]Read from MH i2c: E2 03 00 8B 03 00 90 00 02 [17:05:12]RAPDU: 90 00 [17:05:12]wFMCommunicate OK [17:05:12]wFMCommunicate request_size=7 [17:05:12]MH_SAM_APDU [17:05:12]CAPDU: 80 0D 02 02 02 C6 E9 [17:05:12]Write to MH i2c: E2 0A 00 8C 03 80 0D 02 02 02 00 C6 E9 00 00 BC [17:05:12]Write i2c OK [17:05:12]MH_I2C_Read... [17:05:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:12]Read from MH i2c: E2 [17:05:12]MH_I2C_Read... [17:05:12]Read from MH i2c: E2 03 00 [17:05:12]MH_I2C_Read... [17:05:12]Read from MH i2c: E2 03 00 8C 03 00 90 00 03 [17:05:12]RAPDU: 90 00 [17:05:12]wFMCommunicate OK [17:05:12]wFMCommunicate request_size=4 [17:05:12]MH_SAM_APDU [17:05:12]CAPDU: 80 0D 03 02 [17:05:12]Write to MH i2c: E2 08 00 8D 03 80 0D 03 02 00 00 00 00 0B [17:05:12]Write i2c OK [17:05:12]MH_I2C_Read... [17:05:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:12]Read from MH i2c: E2 [17:05:12]MH_I2C_Read... [17:05:12]Read from MH i2c: E2 0B 00 [17:05:12]MH_I2C_Read... [17:05:12]Read from MH i2c: E2 0B 00 8D 03 00 7D E3 14 9A DD 7B 68 30 90 00 0A [17:05:12]RAPDU: 7D E3 14 9A DD 7B 68 30 90 00 [17:05:12]wFMCommunicate OK [17:05:12]SAM_PROTO_SignData done [17:05:12]FM_MakeSignedData done [17:05:12]CreateOFDProtocolMessage [17:05:12]wFMCommunicate request_size=4 [17:05:12]MH_SAM_APDU [17:05:12]CAPDU: 80 11 00 00 [17:05:12]Write to MH i2c: E2 08 00 8E 03 80 11 00 00 00 00 00 00 0B [17:05:12]Write i2c OK [17:05:12]MH_I2C_Read... [17:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:12]Read from MH i2c: E2 [17:05:12]MH_I2C_Read... [17:05:12]Read from MH i2c: E2 17 00 [17:05:12]MH_I2C_Read... [17:05:12]Read from MH i2c: E2 17 00 8E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 61 [17:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:05:12]wFMCommunicate OK [17:05:12]CreateOFDProtocolMessage done [17:05:12]OFDSenderStorePacket 67690 [17:05:12]StoreOFDPacket docnum=67690 [17:05: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 90 DF 04 01 33 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 63 00 00 00 F4 03 04 00 48 8E 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6A 08 01 00 35 04 06 00 E7 6E 44 26 C6 E9 7D E3 14 9A DD 7B 68 30 [17:05:12]CheckFolder [17:05:12]dirname=/storage/ofd_packets [17:05:12]CheckFolder done [17:05:12]ProducePacketName [17:05:12]name=ofd_packets/00067690 [17:05:12]NVStorageSaveData ofd_packets/00067690 [17:05:12]File name is /storage/ofd_packets/00067690 [17:05:12]Write 298 bytes [17:05:12]NVStorageSaveData done [17:05:12]OFDSenderStorePacket done [17:05:12]KKMCreateOFDPacket done [17:05:12]NVStorageSaveData kkm_last_timestamp [17:05:12]File name is /storage/kkm_last_timestamp [17:05:12]Write 4 bytes [17:05:12]NVStorageSaveData done [17:05:12]ExternCall_PrintAddStr [17:05:12]wPrintStart [17:05:12]Write to MH i2c: 01 00 00 8F 03 92 [17:05:12]Write i2c OK [17:05:12]MH_I2C_Read... [17:05:12]Read from MH i2c: 01 [17:05:12]MH_I2C_Read... [17:05:12]Read from MH i2c: 01 07 00 [17:05:12]MH_I2C_Read... [17:05:12]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 FF 0F A7 [17:05:12]RasterBufferAndPrint [17:05:12]line Счет N : (1)507843 [17:05:12]line ИНН: 02508201610067 [17:05:12]line Контрольно-Кассовый Чек [17:05:12]line ПРОДАЖА [17:05:12]line ТРК (МРК, ГНК) : 31 [17:05:12]line Товар: 2710194210 [17:05:12]line ДТ-К-5 [17:05:12]line 26.780 * 74.70 [17:05:12]line = 2000.47 [17:05:12]line НДС 12% НСП 1% [17:05:12]line > о реализуемом товаре [17:05:12]line ОКРУГЛЕНИЕ: -0.47 [17:05:12]line ИТОГО: 2000.00 [17:05:12]line Внесено: 2000.00 [17:05:12]line СДАЧА: 0.00 [17:05:12]line НСП 1% : 17.70 [17:05:12]line НДС 12% : 212.44 [17:05:12]line Наличными: 2000.00 [17:05:12]line Безнал.: 0.00 [17:05:12]line Место: АЗС № 91 "Партнер Нефть" [17:05:12]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:05:12]line СНО: Общий режим [17:05:12]line Чек 99 17.05.2024 17:05 [17:05:12]line Смена: 358 ФФД: 1.0 [17:05:12]line ЗНМ: 0300000119 [17:05:12]line РНМ: 0000000000091845 [17:05:12]line Версия ККМ: 001 [17:05:12]line ФМ: 0000000000871829 [17:05:12]line ФД: 67690 [17:05:12]line ФПД: 254460775810793 [17:05:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T170512&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67690&fm=254460775810793&tin=02508201610067®Number=0000000000091845&sum=200000 [17:05:13]OFD Sender: Processing packet 67690 [packets to send 35, broken 34] [17:05:13]ProducePacketName [17:05:13]name=ofd_packets/00067690 [17:05:13]OFD Sender: To server: pG, [17:05:13]CommunicateWithHost lk.salyk.kg:30040 [17:05:13]ConnectInit lk.salyk.kg [17:05:13]written 0, free lines is 4095 [17:05:13]Connected sock=10 [17:05:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 90 DF 04 01 33 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 63 00 00 00 F4 03 04 00 48 8E 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6A 08 01 00 35 04 06 00 E7 6E 44 26 C6 E9 7D E3 14 9A DD 7B 68 30 [17:05: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 3E A0 47 00 16 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6A 08 01 00 F4 03 04 00 1F 36 47 66 B6 04 01 00 00 6E BD 67 AB 93 34 E0 B4 [17:05:13]CommunicateWithHost err = 0 [17:05:13]CheckOFDResponse [17:05:13]1017 (14) - 77093643461234 [17:05:13]1041 (16) - 0000000000871829 [17:05:13]1040 (4) - 67690 [17:05:13]1012 (4) - 17.05.2024 10:49 [17:05:13]1206 (1) - 0 [17:05:13]OFD Sender: Remove packet 67690 [17:05:13]ProducePacketName [17:05:13]name=ofd_packets/00067690 [17:05:13]NVStorageDeleteData [17:05:13]Write to MH i2c: 01 00 00 B9 03 BC [17:05:13]Write i2c OK [17:05:13]MH_I2C_Read... [17:05:13]Read from MH i2c: 01 [17:05:13]MH_I2C_Read... [17:05:13]Read from MH i2c: 01 07 00 [17:05:13]MH_I2C_Read... [17:05:13]Read from MH i2c: 01 07 00 B9 03 00 00 00 00 00 C3 0C 92 [17:05:13]RasterBufferAndPrint [17:05:13]line [17:05:13]line [17:05:13]line [17:05:13]line [17:05:13]line [17:05:13]written 0, free lines is 3275 [17:05:13]MH_Cut [17:05:13]Write to MH i2c: D1 01 00 C0 03 01 95 [17:05:13]Write i2c OK [17:05:13]MH_I2C_Read... [17:05:13]Read from MH i2c: D1 [17:05:13]MH_I2C_Read... [17:05:13]Read from MH i2c: D1 01 00 [17:05:13]MH_I2C_Read... [17:05:13]Read from MH i2c: D1 01 00 C0 03 00 94 [17:05:13]Write to MH i2c: 01 00 00 C1 03 C4 [17:05:13]Write i2c OK [17:05:13]MH_I2C_Read... [17:05:14]OFD Sender: No OFD packet to send [17:05:14]*** Cut start [17:05:14]*** Purtial cut [17:05:14]*** Stage 1: CUTSNS_PIN = 1 [17:05:14]Read from MH i2c: 01 [17:05:14]MH_I2C_Read... [17:05:14]*** Stop cut motor [17:05:14]*** Cut end [17:05:14]Read from MH i2c: 01 07 00 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: 01 07 00 C1 03 00 00 00 00 00 FF 0F D9 [17:05:14]process_action close_receipt done [17:05:14]requested_data is exist [17:05:14]produce_requested_data [17:05:14]requested_item fm.sn is exist - process it [17:05:14]wFMCommunicate request_size=4 [17:05:14]MH_SAM_APDU [17:05:14]CAPDU: 80 11 00 00 [17:05:14]Write to MH i2c: E2 08 00 C2 03 80 11 00 00 00 00 00 00 3F [17:05:14]Write i2c OK [17:05:14]MH_I2C_Read... [17:05:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:14]Read from MH i2c: E2 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 17 00 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 17 00 C2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 95 [17:05:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:05:14]wFMCommunicate OK [17:05:14]requested_item fd.num is exist - process it [17:05:14]SAM_PROTO_GetFieldsCounters [17:05:14]wFMCommunicate request_size=4 [17:05:14]MH_SAM_APDU [17:05:14]CAPDU: 80 13 00 00 [17:05:14]Write to MH i2c: E2 08 00 C3 03 80 13 00 00 00 00 00 00 42 [17:05:14]Write i2c OK [17:05:14]MH_I2C_Read... [17:05:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:14]Read from MH i2c: E2 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 62 00 [17:05:14]MH_I2C_Read... [17:05:14]Read from MH i2c: E2 62 00 C3 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 6A 08 01 00 0E 04 04 00 66 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 6B [17:05: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 6A 08 01 00 0E 04 04 00 66 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 [17:05:14]wFMCommunicate OK [17:05:14]SAM_PROTO_GetFieldsCounters done [17:05:14]requested_item shift.num is exist - process it [17:05:14]requested_item shift.opened is exist - process it [17:05:14]req_shift_opened [17:05:14]FM_GetShiftState [17:05:14]SAM_PROTO_GetShiftState [17:05:14]wFMCommunicate request_size=4 [17:05:14]MH_SAM_APDU [17:05:14]CAPDU: 80 13 01 00 [17:05:14]Write to MH i2c: E2 08 00 C4 03 80 13 01 00 00 00 00 00 44 [17:05:14]Write i2c OK [17:05:14]MH_I2C_Read... [17:05:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:15]Read from MH i2c: E2 [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: E2 0E 00 [17:05:15]MH_I2C_Read... [17:05:15]Read from MH i2c: E2 0E 00 C4 03 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CA [17:05:15]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:05:15]wFMCommunicate OK [17:05:15]SAM_PROTO_GetShiftState done [17:05:15]FM_GetShiftState done [17:05:15]req_shift_opened done [17:05:15]requested_item shift.open_date is exist - process it [17:05:15]req_shift_open_date [17:05:15]req_shift_open_date done [17:05:15]produce_requested_data done [17:05:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67690,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [17:05:15]process_action_free close_receipt [17:05:15]json_value_free [17:05:15]json_value_free done [17:05:15]process_json_proto returns [17:05:15]Send response to host [17:05:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67690,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [17:05:15]free response buf [17:05:15]execute_script done [17:05:15]execute_script returns [17:05:15]free content buf [17:05:15]Sock 9.Close socket [17:05:15]Sock 9.Thread stoped [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:29]OFD Sender: No OFD packet to send [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:44]OFD Sender: No OFD packet to send [17:06:49]OFD Sender: No OFD packet to send [17:06:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:07:04]OFD Sender: No OFD packet to send [17:07:09]OFD Sender: No OFD packet to send [17:07:14]OFD Sender: No OFD packet to send [17:07:14]accept exits with 7 [17:07:14]New connection [17:07:14]New thread 3066608996 created [17:07:14]Thread 3066752356 joined [17:07:14]Waiting for new connection... [17:07:14] Sock 7.Parse request [17:07:14]Sock 7.Check first char [17:07:14]Sock 7.First char is OK [17:07:14]request: POST /json_proto HTTP/1.0 [17:07:14]Method: POST [17:07:14]URL: /json_proto [17:07:14]Method is POST - this is cgi request [17:07:14]url: /json_proto [17:07:14]query_string will be loaded in cgi processing [17:07:14]execute_cgi json_proto POST (null) [17:07:14]execute_cgi path=json_proto method=POST [17:07:14]POST find Content-Length [17:07:14]Host: 172.17.41.195:8080 [17:07:14]Content-Length: 674 [17:07:14]Content-Type: application/json [17:07:14] [17:07:14]POST finish read [17:07:14]Found Content-Length = 674 [17:07:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507845", "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" : 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" ] } } [17:07:14]execute_script... [17:07: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)507845", "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" : 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" ] } } [17:07:14]POST & json_proto [17:07:14]process_json_proto [17:07:14]json parsed OK: [17:07:14]protocol is kg_v1.0 [17:07:14]action value=close_receipt [17:07:14]process_action close_receipt [17:07:14]cmd_close_receipt [17:07:14]MH_GetDate [17:07:14]Write to MH i2c: F0 00 00 C5 03 B7 [17:07:14]Write i2c OK [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: F0 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: F0 09 00 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: F0 09 00 C5 03 00 C3 8E 47 66 FC 21 6F 64 AE [17:07:14]GetLastDocTimeStamp 1715965512 [17:07:14]current date 1715965635 [17:07:14]FM_GetShiftState [17:07:14]SAM_PROTO_GetShiftState [17:07:14]wFMCommunicate request_size=4 [17:07:14]MH_SAM_APDU [17:07:14]CAPDU: 80 13 01 00 [17:07:14]Write to MH i2c: E2 08 00 C6 03 80 13 01 00 00 00 00 00 46 [17:07:14]Write i2c OK [17:07:14]MH_I2C_Read... [17:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:14]Read from MH i2c: E2 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: E2 0E 00 [17:07:14]MH_I2C_Read... [17:07:14]Read from MH i2c: E2 0E 00 C6 03 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CC [17:07:14]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:07:14]wFMCommunicate OK [17:07:14]SAM_PROTO_GetShiftState done [17:07:14]FM_GetShiftState done [17:07:14]opened in 1715905068 [17:07:14]opened+sec_in_day 1715991468 [17:07:14]quantity*price = 40039 [17:07:14]sum+1 = 40040 [17:07:14]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 СНО: Общий режим Чек 100 17.05.2024 17:07 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67691 ФПД: 156436328372101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T170715&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67691&fm=156436328372101&tin=02508201610067®Number=0000000000091845&sum=40000 [17:07:15]StoreToDocumentArchive [17:07:15]shift 358 fd 67691 [17:07:15]save to /storage/0358/doc_00067691 [17:07:15]save last doc name /storage/0358/doc_00067691 to /storage/kkm_last_doc_name [17:07:15]save OK [17:07:15]Clear old archive folders... [17:07:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:07:15]tlvbuf is 01AFB8A0 [17:07:15]SAM_PROTO_ClearQueue [17:07:15]wFMCommunicate request_size=4 [17:07:15]MH_SAM_APDU [17:07:15]CAPDU: 80 09 00 00 [17:07:15]Write to MH i2c: E2 08 00 D3 03 80 09 00 00 00 00 00 00 48 [17:07:15]Write i2c OK [17:07:15]MH_I2C_Read... [17:07:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:15]Read from MH i2c: E2 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 03 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 03 00 D3 03 00 90 00 4A [17:07:15]RAPDU: 90 00 [17:07:15]wFMCommunicate OK [17:07:15]SAM_PROTO_ClearQueue done [17:07:15]KKMCreateOFDPacket [17:07:15]OFDProtocolAddRootSTLVToBuf [17:07:15]FM_MakeSignedData [17:07:15]FM_MakeSignedData [17:07:15]SAM_PROTO_SignData [17:07:15]wFMCommunicate request_size=4 [17:07:15]MH_SAM_APDU [17:07:15]CAPDU: 80 0D 01 02 [17:07:15]Write to MH i2c: E2 08 00 D4 03 80 0D 01 02 00 00 00 00 50 [17:07:15]Write i2c OK [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 [17:07:15]MH_I2C_Read... [17:07:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:15]Read from MH i2c: E2 03 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 03 00 D4 03 00 90 00 4B [17:07:15]RAPDU: 90 00 [17:07:15]wFMCommunicate OK [17:07:15]wFMCommunicate request_size=255 [17:07:15]MH_SAM_APDU [17:07:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 64 00 00 00 F4 03 04 00 C3 8E 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6B 08 01 00 35 04 06 00 8E 47 2B C8 [17:07:15]Write to MH i2c: E2 02 01 D5 03 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 64 00 00 00 F4 03 04 00 C3 8E 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6B 08 01 00 35 04 06 00 8E 47 2B C8 00 00 D0 [17:07:15]Write i2c OK [17:07:15]MH_I2C_Read... [17:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:15]Read from MH i2c: E2 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 03 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 03 00 D5 03 00 90 00 4C [17:07:15]RAPDU: 90 00 [17:07:15]wFMCommunicate OK [17:07:15]wFMCommunicate request_size=7 [17:07:15]MH_SAM_APDU [17:07:15]CAPDU: 80 0D 02 02 02 57 85 [17:07:15]Write to MH i2c: E2 0A 00 D6 03 80 0D 02 02 02 00 57 85 00 00 33 [17:07:15]Write i2c OK [17:07:15]MH_I2C_Read... [17:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:15]Read from MH i2c: E2 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 03 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 03 00 D6 03 00 90 00 4D [17:07:15]RAPDU: 90 00 [17:07:15]wFMCommunicate OK [17:07:15]wFMCommunicate request_size=4 [17:07:15]MH_SAM_APDU [17:07:15]CAPDU: 80 0D 03 02 [17:07:15]Write to MH i2c: E2 08 00 D7 03 80 0D 03 02 00 00 00 00 55 [17:07:15]Write i2c OK [17:07:15]MH_I2C_Read... [17:07:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:15]Read from MH i2c: E2 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 0B 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 0B 00 D7 03 00 37 09 31 D5 5C 18 26 81 90 00 B7 [17:07:15]RAPDU: 37 09 31 D5 5C 18 26 81 90 00 [17:07:15]wFMCommunicate OK [17:07:15]SAM_PROTO_SignData done [17:07:15]FM_MakeSignedData done [17:07:15]CreateOFDProtocolMessage [17:07:15]wFMCommunicate request_size=4 [17:07:15]MH_SAM_APDU [17:07:15]CAPDU: 80 11 00 00 [17:07:15]Write to MH i2c: E2 08 00 D8 03 80 11 00 00 00 00 00 00 55 [17:07:15]Write i2c OK [17:07:15]MH_I2C_Read... [17:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:15]Read from MH i2c: E2 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 17 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: E2 17 00 D8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AB [17:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:07:15]wFMCommunicate OK [17:07:15]CreateOFDProtocolMessage done [17:07:15]OFDSenderStorePacket 67691 [17:07:15]StoreOFDPacket docnum=67691 [17:07:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 99 52 04 01 43 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 64 00 00 00 F4 03 04 00 C3 8E 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6B 08 01 00 35 04 06 00 8E 47 2B C8 57 85 37 09 31 D5 5C 18 26 81 [17:07:15]CheckFolder [17:07:15]dirname=/storage/ofd_packets [17:07:15]CheckFolder done [17:07:15]ProducePacketName [17:07:15]name=ofd_packets/00067691 [17:07:15]NVStorageSaveData ofd_packets/00067691 [17:07:15]File name is /storage/ofd_packets/00067691 [17:07:15]Write 298 bytes [17:07:15]NVStorageSaveData done [17:07:15]OFDSenderStorePacket done [17:07:15]KKMCreateOFDPacket done [17:07:15]NVStorageSaveData kkm_last_timestamp [17:07:15]File name is /storage/kkm_last_timestamp [17:07:15]Write 4 bytes [17:07:15]NVStorageSaveData done [17:07:15]ExternCall_PrintAddStr [17:07:15]wPrintStart [17:07:15]Write to MH i2c: 01 00 00 D9 03 DC [17:07:15]Write i2c OK [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: 01 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: 01 07 00 [17:07:15]MH_I2C_Read... [17:07:15]Read from MH i2c: 01 07 00 D9 03 00 00 00 00 00 FF 0F F1 [17:07:15]RasterBufferAndPrint [17:07:15]line Счет N : (1)507845 [17:07:15]line ИНН: 02508201610067 [17:07:15]line Контрольно-Кассовый Чек [17:07:15]line ПРОДАЖА [17:07:15]line ТРК (МРК, ГНК) : 41 [17:07:15]line Товар: 2710194210 [17:07:15]line ДТ-К-5 [17:07:15]line 5.360 * 74.70 [17:07:15]line = 400.39 [17:07:15]line НДС 12% НСП 1% [17:07:15]line > о реализуемом товаре [17:07:15]line ОКРУГЛЕНИЕ: -0.39 [17:07:15]line ИТОГО: 400.00 [17:07:15]line Внесено: 400.00 [17:07:15]line СДАЧА: 0.00 [17:07:15]line НСП 1% : 3.54 [17:07:15]line НДС 12% : 42.52 [17:07:15]line Наличными: 400.00 [17:07:15]line Безнал.: 0.00 [17:07:15]line Место: АЗС № 91 "Партнер Нефть" [17:07:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:07:16]line СНО: Общий режим [17:07:16]line Чек 100 17.05.2024 17:07 [17:07:16]line Смена: 358 ФФД: 1.0 [17:07:16]line ЗНМ: 0300000119 [17:07:16]line РНМ: 0000000000091845 [17:07:16]line Версия ККМ: 001 [17:07:16]line ФМ: 0000000000871829 [17:07:16]line ФД: 67691 [17:07:16]line ФПД: 156436328372101 [17:07:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T170715&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67691&fm=156436328372101&tin=02508201610067®Number=0000000000091845&sum=40000 [17:07:16]OFD Sender: Processing packet 67691 [packets to send 35, broken 34] [17:07:16]ProducePacketName [17:07:16]name=ofd_packets/00067691 [17:07:16]OFD Sender: To server: pG, [17:07:16]CommunicateWithHost lk.salyk.kg:30040 [17:07:16]ConnectInit lk.salyk.kg [17:07:16]written 0, free lines is 4095 [17:07:16]Connected sock=10 [17:07:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 99 52 04 01 43 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 64 00 00 00 F4 03 04 00 C3 8E 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6B 08 01 00 35 04 06 00 8E 47 2B C8 57 85 37 09 31 D5 5C 18 26 81 [17:07: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 90 43 47 00 A9 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6B 08 01 00 F4 03 04 00 9A 36 47 66 B6 04 01 00 00 00 E8 55 0C BF F5 89 93 [17:07:16]CommunicateWithHost err = 0 [17:07:16]CheckOFDResponse [17:07:16]1017 (14) - 77093643461234 [17:07:16]1041 (16) - 0000000000871829 [17:07:16]1040 (4) - 67691 [17:07:16]1012 (4) - 17.05.2024 10:51 [17:07:16]1206 (1) - 0 [17:07:16]OFD Sender: Remove packet 67691 [17:07:16]ProducePacketName [17:07:16]name=ofd_packets/00067691 [17:07:16]NVStorageDeleteData [17:07:16]Write to MH i2c: 01 00 00 03 04 07 [17:07:16]Write i2c OK [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: 01 [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: 01 07 00 [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: 01 07 00 03 04 00 00 00 00 00 C8 0C E2 [17:07:16]RasterBufferAndPrint [17:07:16]line [17:07:16]line [17:07:16]line [17:07:16]line [17:07:16]line [17:07:16]written 0, free lines is 3278 [17:07:16]MH_Cut [17:07:16]Write to MH i2c: D1 01 00 0A 04 01 E0 [17:07:16]Write i2c OK [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: D1 [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: D1 01 00 [17:07:16]MH_I2C_Read... [17:07:16]Read from MH i2c: D1 01 00 0A 04 00 DF [17:07:16]Write to MH i2c: 01 00 00 0B 04 0F [17:07:16]Write i2c OK [17:07:16]MH_I2C_Read... [17:07:17]OFD Sender: No OFD packet to send [17:07:17]*** Cut start [17:07:17]*** Purtial cut [17:07:17]*** CUTSNS_PIN = 0 [17:07:17]*** Stage 1: CUTSNS_PIN = 1 [17:07:19]Read from MH i2c: 01 [17:07:19]MH_I2C_Read... [17:07:19]*** Stop cut motor [17:07:19]*** Cut end [17:07:19]Read from MH i2c: 01 07 00 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: 01 07 00 0B 04 00 00 00 00 00 FF 0F 24 [17:07:19]process_action close_receipt done [17:07:19]requested_data is exist [17:07:19]produce_requested_data [17:07:19]requested_item fm.sn is exist - process it [17:07:19]wFMCommunicate request_size=4 [17:07:19]MH_SAM_APDU [17:07:19]CAPDU: 80 11 00 00 [17:07:19]Write to MH i2c: E2 08 00 0C 04 80 11 00 00 00 00 00 00 8A [17:07:19]Write i2c OK [17:07:19]MH_I2C_Read... [17:07:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:19]Read from MH i2c: E2 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: E2 17 00 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: E2 17 00 0C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E0 [17: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 [17:07:19]wFMCommunicate OK [17:07:19]requested_item fd.num is exist - process it [17:07:19]SAM_PROTO_GetFieldsCounters [17:07:19]wFMCommunicate request_size=4 [17:07:19]MH_SAM_APDU [17:07:19]CAPDU: 80 13 00 00 [17:07:19]Write to MH i2c: E2 08 00 0D 04 80 13 00 00 00 00 00 00 8D [17:07:19]Write i2c OK [17:07:19]MH_I2C_Read... [17:07:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:19]Read from MH i2c: E2 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: E2 62 00 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: E2 62 00 0D 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 6B 08 01 00 0E 04 04 00 66 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 BA [17: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 6B 08 01 00 0E 04 04 00 66 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 [17:07:19]wFMCommunicate OK [17:07:19]SAM_PROTO_GetFieldsCounters done [17:07:19]requested_item shift.num is exist - process it [17:07:19]requested_item shift.opened is exist - process it [17:07:19]req_shift_opened [17:07:19]FM_GetShiftState [17:07:19]SAM_PROTO_GetShiftState [17:07:19]wFMCommunicate request_size=4 [17:07:19]MH_SAM_APDU [17:07:19]CAPDU: 80 13 01 00 [17:07:19]Write to MH i2c: E2 08 00 0E 04 80 13 01 00 00 00 00 00 8F [17:07:19]Write i2c OK [17:07:19]MH_I2C_Read... [17:07:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:19]Read from MH i2c: E2 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: E2 0E 00 [17:07:19]MH_I2C_Read... [17:07:19]Read from MH i2c: E2 0E 00 0E 04 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 15 [17:07:19]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:07:19]wFMCommunicate OK [17:07:19]SAM_PROTO_GetShiftState done [17:07:19]FM_GetShiftState done [17:07:19]req_shift_opened done [17:07:19]requested_item shift.open_date is exist - process it [17:07:19]req_shift_open_date [17:07:19]req_shift_open_date done [17:07:19]produce_requested_data done [17:07:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67691,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [17:07:19]process_action_free close_receipt [17:07:19]json_value_free [17:07:19]json_value_free done [17:07:19]process_json_proto returns [17:07:19]Send response to host [17:07:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67691,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [17:07:19]free response buf [17:07:19]execute_script done [17:07:19]execute_script returns [17:07:19]free content buf [17:07:19]Sock 7.Close socket [17:07:19]Sock 7.Thread stoped [17:07:20]accept exits with 9 [17:07:20]New connection [17:07:20]New thread 3066752356 created [17:07:20]Thread 3066608996 joined [17:07:20]Waiting for new connection... [17:07:20] Sock 9.Parse request [17:07:20]Sock 9.Check first char [17:07:20]Sock 9.First char is OK [17:07:20]request: POST /json_proto HTTP/1.0 [17:07:20]Method: POST [17:07:20]URL: /json_proto [17:07:20]Method is POST - this is cgi request [17:07:20]url: /json_proto [17:07:20]query_string will be loaded in cgi processing [17:07:20]execute_cgi json_proto POST (null) [17:07:20]execute_cgi path=json_proto method=POST [17:07:20]POST find Content-Length [17:07:20]Host: 172.17.41.195:8080 [17:07:20]Content-Length: 679 [17:07:20]Content-Type: application/json [17:07:20] [17:07:20]POST finish read [17:07:20]Found Content-Length = 679 [17:07:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507844", "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" : 65.580, "sum" : 4898.83, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 4898.00, "payments": [ { "type": 0, "sum" : 4898.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:20]execute_script... [17:07: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)507844", "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" : 65.580, "sum" : 4898.83, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 4898.00, "payments": [ { "type": 0, "sum" : 4898.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:20]POST & json_proto [17:07:20]process_json_proto [17:07:20]json parsed OK: [17:07:20]protocol is kg_v1.0 [17:07:20]action value=close_receipt [17:07:20]process_action close_receipt [17:07:20]cmd_close_receipt [17:07:20]MH_GetDate [17:07:20]Write to MH i2c: F0 00 00 0F 04 02 [17:07:20]Write i2c OK [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: F0 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: F0 09 00 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: F0 09 00 0F 04 00 C9 8E 47 66 FC 21 6F 64 FF [17:07:20]GetLastDocTimeStamp 1715965635 [17:07:20]current date 1715965641 [17:07:20]FM_GetShiftState [17:07:20]SAM_PROTO_GetShiftState [17:07:20]wFMCommunicate request_size=4 [17:07:20]MH_SAM_APDU [17:07:20]CAPDU: 80 13 01 00 [17:07:20]Write to MH i2c: E2 08 00 10 04 80 13 01 00 00 00 00 00 91 [17:07:20]Write i2c OK [17:07:20]MH_I2C_Read... [17:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:20]Read from MH i2c: E2 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 0E 00 [17:07:20]MH_I2C_Read... [17:07:20]Read from MH i2c: E2 0E 00 10 04 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 17 [17:07:20]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:07:20]wFMCommunicate OK [17:07:20]SAM_PROTO_GetShiftState done [17:07:20]FM_GetShiftState done [17:07:20]opened in 1715905068 [17:07:20]opened+sec_in_day 1715991468 [17:07:20]quantity*price = 489882 [17:07:20]sum+1 = 489884 [17:07:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.83 ИТОГО: 4898.00 Внесено: 6000.00 СДАЧА: 1102.00 НСП 1% : 43.35 НДС 12% : 520.23 Наличными: 4898.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 101 17.05.2024 17:07 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67692 ФПД: 239052336695103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T170721&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67692&fm=239052336695103&tin=02508201610067®Number=0000000000091845&sum=489800 [17:07:21]StoreToDocumentArchive [17:07:21]shift 358 fd 67692 [17:07:21]save to /storage/0358/doc_00067692 [17:07:21]save last doc name /storage/0358/doc_00067692 to /storage/kkm_last_doc_name [17:07:21]save OK [17:07:21]Clear old archive folders... [17:07:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:07:21]tlvbuf is 01AE7630 [17:07:21]SAM_PROTO_ClearQueue [17:07:21]wFMCommunicate request_size=4 [17:07:21]MH_SAM_APDU [17:07:21]CAPDU: 80 09 00 00 [17:07:21]Write to MH i2c: E2 08 00 1D 04 80 09 00 00 00 00 00 00 93 [17:07:21]Write i2c OK [17:07:21]MH_I2C_Read... [17:07:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:21]Read from MH i2c: E2 [17:07:21]MH_I2C_Read... [17:07:21]Read from MH i2c: E2 03 00 [17:07:21]MH_I2C_Read... [17:07:21]Read from MH i2c: E2 03 00 1D 04 00 90 00 95 [17:07:21]RAPDU: 90 00 [17:07:21]wFMCommunicate OK [17:07:21]SAM_PROTO_ClearQueue done [17:07:21]KKMCreateOFDPacket [17:07:21]OFDProtocolAddRootSTLVToBuf [17:07:21]FM_MakeSignedData [17:07:21]FM_MakeSignedData [17:07:21]SAM_PROTO_SignData [17:07:21]wFMCommunicate request_size=4 [17:07:21]MH_SAM_APDU [17:07:21]CAPDU: 80 0D 01 02 [17:07:21]Write to MH i2c: E2 08 00 1E 04 80 0D 01 02 00 00 00 00 9B [17:07:21]Write i2c OK [17:07:21]MH_I2C_Read... [17:07:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:21]Read from MH i2c: E2 [17:07:21]MH_I2C_Read... [17:07:21]Read from MH i2c: E2 03 00 [17:07:21]MH_I2C_Read... [17:07:21]Read from MH i2c: E2 03 00 1E 04 00 90 00 96 [17:07:21]RAPDU: 90 00 [17:07:21]wFMCommunicate OK [17:07:21]wFMCommunicate request_size=255 [17:07:21]MH_SAM_APDU [17:07: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 2C 00 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9B 79 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 79 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 CB 00 00 00 00 07 04 06 00 48 79 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 C9 8E 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6C 08 01 00 35 04 06 00 D9 6A B5 9C [17:07:21]Write to MH i2c: E2 02 01 1F 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 2C 00 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9B 79 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 79 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 CB 00 00 00 00 07 04 06 00 48 79 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 C9 8E 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6C 08 01 00 35 04 06 00 D9 6A B5 9C 00 00 FA [17:07:21]Write i2c OK [17:07:21]MH_I2C_Read... [17:07:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:21]Read from MH i2c: E2 [17:07:21]MH_I2C_Read... [17:07:21]Read from MH i2c: E2 03 00 [17:07:21]MH_I2C_Read... [17:07:21]Read from MH i2c: E2 03 00 1F 04 00 90 00 97 [17:07:21]RAPDU: 90 00 [17:07:21]wFMCommunicate OK [17:07:21]wFMCommunicate request_size=7 [17:07:21]MH_SAM_APDU [17:07:21]CAPDU: 80 0D 02 02 02 87 3F [17:07:21]Write to MH i2c: E2 0A 00 20 04 80 0D 02 02 02 00 87 3F 00 00 68 [17:07:21]Write i2c OK [17:07:21]MH_I2C_Read... [17:07:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:22]Read from MH i2c: E2 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 03 00 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 03 00 20 04 00 90 00 98 [17:07:22]RAPDU: 90 00 [17:07:22]wFMCommunicate OK [17:07:22]wFMCommunicate request_size=4 [17:07:22]MH_SAM_APDU [17:07:22]CAPDU: 80 0D 03 02 [17:07:22]Write to MH i2c: E2 08 00 21 04 80 0D 03 02 00 00 00 00 A0 [17:07:22]Write i2c OK [17:07:22]MH_I2C_Read... [17:07:22]OFD Sender: No OFD packet to send [17:07:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:22]Read from MH i2c: E2 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 0B 00 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 0B 00 21 04 00 BF F3 A4 CB 52 32 50 48 90 00 DE [17:07:22]RAPDU: BF F3 A4 CB 52 32 50 48 90 00 [17:07:22]wFMCommunicate OK [17:07:22]SAM_PROTO_SignData done [17:07:22]FM_MakeSignedData done [17:07:22]CreateOFDProtocolMessage [17:07:22]wFMCommunicate request_size=4 [17:07:22]MH_SAM_APDU [17:07:22]CAPDU: 80 11 00 00 [17:07:22]Write to MH i2c: E2 08 00 22 04 80 11 00 00 00 00 00 00 A0 [17:07:22]Write i2c OK [17:07:22]MH_I2C_Read... [17:07:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:22]Read from MH i2c: E2 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 17 00 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: E2 17 00 22 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F6 [17:07: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:07:22]wFMCommunicate OK [17:07:22]CreateOFDProtocolMessage done [17:07:22]OFDSenderStorePacket 67692 [17:07:22]StoreOFDPacket docnum=67692 [17:07: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 F9 98 04 01 E3 96 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 00 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9B 79 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 79 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 CB 00 00 00 00 07 04 06 00 48 79 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 C9 8E 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6C 08 01 00 35 04 06 00 D9 6A B5 9C 87 3F BF F3 A4 CB 52 32 50 48 [17:07:22]CheckFolder [17:07:22]dirname=/storage/ofd_packets [17:07:22]CheckFolder done [17:07:22]ProducePacketName [17:07:22]name=ofd_packets/00067692 [17:07:22]NVStorageSaveData ofd_packets/00067692 [17:07:22]File name is /storage/ofd_packets/00067692 [17:07:22]Write 298 bytes [17:07:22]NVStorageSaveData done [17:07:22]OFDSenderStorePacket done [17:07:22]KKMCreateOFDPacket done [17:07:22]NVStorageSaveData kkm_last_timestamp [17:07:22]File name is /storage/kkm_last_timestamp [17:07:22]Write 4 bytes [17:07:22]NVStorageSaveData done [17:07:22]ExternCall_PrintAddStr [17:07:22]wPrintStart [17:07:22]Write to MH i2c: 01 00 00 23 04 27 [17:07:22]Write i2c OK [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: 01 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: 01 07 00 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: 01 07 00 23 04 00 00 00 00 00 FF 0F 3C [17:07:22]RasterBufferAndPrint [17:07:22]line Счет N : (1)507844 [17:07:22]line ИНН: 02508201610067 [17:07:22]line Контрольно-Кассовый Чек [17:07:22]line ПРОДАЖА [17:07:22]line ТРК (МРК, ГНК) : 21 [17:07:22]line Товар: 2710194210 [17:07:22]line ДТ-К-5 [17:07:22]line 65.580 * 74.70 [17:07:22]line = 4898.83 [17:07:22]line НДС 12% НСП 1% [17:07:22]line > о реализуемом товаре [17:07:22]line ОКРУГЛЕНИЕ: -0.83 [17:07:22]line ИТОГО: 4898.00 [17:07:22]line Внесено: 6000.00 [17:07:22]line СДАЧА: 1102.00 [17:07:22]line НСП 1% : 43.35 [17:07:22]line НДС 12% : 520.23 [17:07:22]line Наличными: 4898.00 [17:07:22]line Безнал.: 0.00 [17:07:22]line Место: АЗС № 91 "Партнер Нефть" [17:07:22]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:07:22]line СНО: Общий режим [17:07:22]line Чек 101 17.05.2024 17:07 [17:07:22]line Смена: 358 ФФД: 1.0 [17:07:22]line ЗНМ: 0300000119 [17:07:22]line РНМ: 0000000000091845 [17:07:22]line Версия ККМ: 001 [17:07:22]line ФМ: 0000000000871829 [17:07:22]line ФД: 67692 [17:07:22]line ФПД: 239052336695103 [17:07:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T170721&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67692&fm=239052336695103&tin=02508201610067®Number=0000000000091845&sum=489800 [17:07:22]OFD Sender: Processing packet 67692 [packets to send 35, broken 34] [17:07:22]ProducePacketName [17:07:22]name=ofd_packets/00067692 [17:07:22]OFD Sender: To server: pG, [17:07:22]CommunicateWithHost lk.salyk.kg:30040 [17:07:22]ConnectInit lk.salyk.kg [17:07:22]written 0, free lines is 4095 [17:07:22]Connected sock=10 [17:07: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 F9 98 04 01 E3 96 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 00 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9B 79 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 79 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 CB 00 00 00 00 07 04 06 00 48 79 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 C9 8E 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6C 08 01 00 35 04 06 00 D9 6A B5 9C 87 3F BF F3 A4 CB 52 32 50 48 [17:07: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 4A D7 47 00 94 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6C 08 01 00 F4 03 04 00 A1 36 47 66 B6 04 01 00 00 59 78 D4 F7 5B 69 4B C0 [17:07:22]CommunicateWithHost err = 0 [17:07:22]CheckOFDResponse [17:07:22]1017 (14) - 77093643461234 [17:07:22]1041 (16) - 0000000000871829 [17:07:22]1040 (4) - 67692 [17:07:22]1012 (4) - 17.05.2024 10:51 [17:07:22]1206 (1) - 0 [17:07:22]OFD Sender: Remove packet 67692 [17:07:22]ProducePacketName [17:07:22]name=ofd_packets/00067692 [17:07:22]NVStorageDeleteData [17:07:22]Write to MH i2c: 01 00 00 4D 04 51 [17:07:22]Write i2c OK [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: 01 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: 01 07 00 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: 01 07 00 4D 04 00 00 00 00 00 D4 0C 38 [17:07:22]RasterBufferAndPrint [17:07:22]line [17:07:22]line [17:07:22]line [17:07:22]line [17:07:22]line [17:07:22]written 0, free lines is 3294 [17:07:22]MH_Cut [17:07:22]Write to MH i2c: D1 01 00 54 04 01 2A [17:07:22]Write i2c OK [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: D1 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: D1 01 00 [17:07:22]MH_I2C_Read... [17:07:22]Read from MH i2c: D1 01 00 54 04 00 29 [17:07:22]Write to MH i2c: 01 00 00 55 04 59 [17:07:22]Write i2c OK [17:07:22]MH_I2C_Read... [17:07:23]OFD Sender: No OFD packet to send [17:07:23]*** Cut start [17:07:23]*** Purtial cut [17:07:23]*** Stage 1: CUTSNS_PIN = 1 [17:07:24]Read from MH i2c: 01 [17:07:24]MH_I2C_Read... [17:07:24]*** Stop cut motor [17:07:24]*** Cut end [17:07:24]Read from MH i2c: 01 07 00 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: 01 07 00 55 04 00 00 00 00 00 FF 0F 6E [17:07:24]process_action close_receipt done [17:07:24]requested_data is exist [17:07:24]produce_requested_data [17:07:24]requested_item fm.sn is exist - process it [17:07:24]wFMCommunicate request_size=4 [17:07:24]MH_SAM_APDU [17:07:24]CAPDU: 80 11 00 00 [17:07:24]Write to MH i2c: E2 08 00 56 04 80 11 00 00 00 00 00 00 D4 [17:07:24]Write i2c OK [17:07:24]MH_I2C_Read... [17:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:24]Read from MH i2c: E2 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 17 00 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 17 00 56 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2A [17:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:07:24]wFMCommunicate OK [17:07:24]requested_item fd.num is exist - process it [17:07:24]SAM_PROTO_GetFieldsCounters [17:07:24]wFMCommunicate request_size=4 [17:07:24]MH_SAM_APDU [17:07:24]CAPDU: 80 13 00 00 [17:07:24]Write to MH i2c: E2 08 00 57 04 80 13 00 00 00 00 00 00 D7 [17:07:24]Write i2c OK [17:07:24]MH_I2C_Read... [17:07:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:24]Read from MH i2c: E2 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 62 00 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 62 00 57 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 6C 08 01 00 0E 04 04 00 66 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 08 [17:07: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 6C 08 01 00 0E 04 04 00 66 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 [17:07:24]wFMCommunicate OK [17:07:24]SAM_PROTO_GetFieldsCounters done [17:07:24]requested_item shift.num is exist - process it [17:07:24]requested_item shift.opened is exist - process it [17:07:24]req_shift_opened [17:07:24]FM_GetShiftState [17:07:24]SAM_PROTO_GetShiftState [17:07:24]wFMCommunicate request_size=4 [17:07:24]MH_SAM_APDU [17:07:24]CAPDU: 80 13 01 00 [17:07:24]Write to MH i2c: E2 08 00 58 04 80 13 01 00 00 00 00 00 D9 [17:07:24]Write i2c OK [17:07:24]MH_I2C_Read... [17:07:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:24]Read from MH i2c: E2 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 0E 00 [17:07:24]MH_I2C_Read... [17:07:24]Read from MH i2c: E2 0E 00 58 04 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 5F [17:07:24]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:07:24]wFMCommunicate OK [17:07:24]SAM_PROTO_GetShiftState done [17:07:24]FM_GetShiftState done [17:07:24]req_shift_opened done [17:07:24]requested_item shift.open_date is exist - process it [17:07:24]req_shift_open_date [17:07:24]req_shift_open_date done [17:07:24]produce_requested_data done [17:07:24]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67692,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [17:07:24]process_action_free close_receipt [17:07:24]json_value_free [17:07:24]json_value_free done [17:07:24]process_json_proto returns [17:07:24]Send response to host [17:07:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67692,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [17:07:24]free response buf [17:07:24]execute_script done [17:07:24]execute_script returns [17:07:24]free content buf [17:07:24]Sock 9.Close socket [17:07:24]Sock 9.Thread stoped [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:08]OFD Sender: No OFD packet to send [17:08:13]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:13]OFD Sender: No OFD packet to send [17:10:16]accept exits with 7 [17:10:16]New connection [17:10:16]New thread 3066608996 created [17:10:16]Thread 3066752356 joined [17:10:16]Waiting for new connection... [17:10:16] Sock 7.Parse request [17:10:16]Sock 7.Check first char [17:10:16]Sock 7.First char is OK [17:10:16]request: POST /json_proto HTTP/1.0 [17:10:16]Method: POST [17:10:16]URL: /json_proto [17:10:16]Method is POST - this is cgi request [17:10:16]url: /json_proto [17:10:16]query_string will be loaded in cgi processing [17:10:16]execute_cgi json_proto POST (null) [17:10:16]execute_cgi path=json_proto method=POST [17:10:16]POST find Content-Length [17:10:16]Host: 172.17.41.195:8080 [17:10:16]Content-Length: 670 [17:10:16]Content-Type: application/json [17:10:16] [17:10:16]POST finish read [17:10:16]Found Content-Length = 670 [17:10:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507846", "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" : 9.900, "sum" : 671.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 671.00, "total" : 671.00, "payments": [ { "type": 0, "sum" : 671.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:16]execute_script... [17:10: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)507846", "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" : 9.900, "sum" : 671.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 671.00, "total" : 671.00, "payments": [ { "type": 0, "sum" : 671.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:16]POST & json_proto [17:10:16]process_json_proto [17:10:16]json parsed OK: [17:10:16]protocol is kg_v1.0 [17:10:16]action value=close_receipt [17:10:16]process_action close_receipt [17:10:16]cmd_close_receipt [17:10:16]MH_GetDate [17:10:16]Write to MH i2c: F0 00 00 59 04 4C [17:10:16]Write i2c OK [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: F0 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: F0 09 00 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: F0 09 00 59 04 00 79 8F 47 66 FC 21 6F 64 FA [17:10:16]GetLastDocTimeStamp 1715965641 [17:10:16]current date 1715965817 [17:10:16]FM_GetShiftState [17:10:16]SAM_PROTO_GetShiftState [17:10:16]wFMCommunicate request_size=4 [17:10:16]MH_SAM_APDU [17:10:16]CAPDU: 80 13 01 00 [17:10:16]Write to MH i2c: E2 08 00 5A 04 80 13 01 00 00 00 00 00 DB [17:10:16]Write i2c OK [17:10:16]MH_I2C_Read... [17:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:16]Read from MH i2c: E2 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: E2 0E 00 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: E2 0E 00 5A 04 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 61 [17:10:16]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:10:16]wFMCommunicate OK [17:10:16]SAM_PROTO_GetShiftState done [17:10:16]FM_GetShiftState done [17:10:16]opened in 1715905068 [17:10:16]opened+sec_in_day 1715991468 [17:10:16]quantity*price = 67122 [17:10:16]sum+1 = 67123 [17:10:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 671.00 Внесено: 671.00 СДАЧА: 0.00 НСП 1% : 5.94 НДС 12% : 71.28 Наличными: 671.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 102 17.05.2024 17:10 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67693 ФПД: 233464875871272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T171017&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67693&fm=233464875871272&tin=02508201610067®Number=0000000000091845&sum=67100 [17:10:17]StoreToDocumentArchive [17:10:17]shift 358 fd 67693 [17:10:17]save to /storage/0358/doc_00067693 [17:10:17]save last doc name /storage/0358/doc_00067693 to /storage/kkm_last_doc_name [17:10:17]save OK [17:10:17]Clear old archive folders... [17:10:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:10:17]tlvbuf is 01AE2DC0 [17:10:17]SAM_PROTO_ClearQueue [17:10:17]wFMCommunicate request_size=4 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 09 00 00 [17:10:17]Write to MH i2c: E2 08 00 67 04 80 09 00 00 00 00 00 00 DD [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 67 04 00 90 00 DF [17:10:17]RAPDU: 90 00 [17:10:17]wFMCommunicate OK [17:10:17]SAM_PROTO_ClearQueue done [17:10:17]KKMCreateOFDPacket [17:10:17]OFDProtocolAddRootSTLVToBuf [17:10:17]FM_MakeSignedData [17:10:17]FM_MakeSignedData [17:10:17]SAM_PROTO_SignData [17:10:17]wFMCommunicate request_size=4 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 0D 01 02 [17:10:17]Write to MH i2c: E2 08 00 68 04 80 0D 01 02 00 00 00 00 E5 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 68 04 00 90 00 E0 [17:10:17]RAPDU: 90 00 [17:10:17]wFMCommunicate OK [17:10:17]wFMCommunicate request_size=255 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 26 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 06 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 06 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 1B 00 00 00 00 07 04 06 00 1C 06 01 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 79 8F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6D 08 01 00 35 04 06 00 [17:10:17]Write to MH i2c: E2 02 01 69 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 AC 26 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 06 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 06 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 1B 00 00 00 00 07 04 06 00 1C 06 01 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 79 8F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6D 08 01 00 35 04 06 00 00 00 44 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 69 04 00 90 00 E1 [17:10:17]RAPDU: 90 00 [17:10:17]wFMCommunicate OK [17:10:17]wFMCommunicate request_size=11 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 0D 02 02 06 D4 55 C6 FE 6C 28 [17:10:17]Write to MH i2c: E2 0E 00 6A 04 80 0D 02 02 06 00 D4 55 C6 FE 6C 28 00 00 75 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 6A 04 00 90 00 E2 [17:10:17]RAPDU: 90 00 [17:10:17]wFMCommunicate OK [17:10:17]wFMCommunicate request_size=4 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 0D 03 02 [17:10:17]Write to MH i2c: E2 08 00 6B 04 80 0D 03 02 00 00 00 00 EA [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 0B 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 0B 00 6B 04 00 76 FA 2A D7 EA CC B4 43 90 00 09 [17:10:17]RAPDU: 76 FA 2A D7 EA CC B4 43 90 00 [17:10:17]wFMCommunicate OK [17:10:17]SAM_PROTO_SignData done [17:10:17]FM_MakeSignedData done [17:10:17]CreateOFDProtocolMessage [17:10:17]wFMCommunicate request_size=4 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 11 00 00 [17:10:17]Write to MH i2c: E2 08 00 6C 04 80 11 00 00 00 00 00 00 EA [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 17 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 17 00 6C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 40 [17:10:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:10:17]wFMCommunicate OK [17:10:17]CreateOFDProtocolMessage done [17:10:17]OFDSenderStorePacket 67693 [17:10:17]StoreOFDPacket docnum=67693 [17:10: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 EA A1 08 01 9B 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 AC 26 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 06 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 06 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 1B 00 00 00 00 07 04 06 00 1C 06 01 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 79 8F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6D 08 01 00 35 04 06 00 D4 55 C6 FE 6C 28 76 FA 2A D7 EA CC B4 43 [17:10:17]CheckFolder [17:10:17]dirname=/storage/ofd_packets [17:10:17]CheckFolder done [17:10:17]ProducePacketName [17:10:17]name=ofd_packets/00067693 [17:10:17]NVStorageSaveData ofd_packets/00067693 [17:10:17]File name is /storage/ofd_packets/00067693 [17:10:17]Write 302 bytes [17:10:17]NVStorageSaveData done [17:10:17]OFDSenderStorePacket done [17:10:17]KKMCreateOFDPacket done [17:10:17]NVStorageSaveData kkm_last_timestamp [17:10:17]File name is /storage/kkm_last_timestamp [17:10:17]Write 4 bytes [17:10:17]NVStorageSaveData done [17:10:17]ExternCall_PrintAddStr [17:10:17]wPrintStart [17:10:17]Write to MH i2c: 01 00 00 6D 04 71 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: 01 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: 01 07 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: 01 07 00 6D 04 00 00 00 00 00 FF 0F 86 [17:10:17]RasterBufferAndPrint [17:10:17]line Счет N : (1)507846 [17:10:17]line ИНН: 02508201610067 [17:10:17]line Контрольно-Кассовый Чек [17:10:17]line ПРОДАЖА [17:10:17]line ТРК (МРК, ГНК) : 42 [17:10:17]line Товар: 2710124130 [17:10:18]line Super-92-К-5 [17:10:18]line 9.900 * 67.80 [17:10:18]line = 671.22 [17:10:18]line НДС 12% НСП 1% [17:10:18]line > о реализуемом товаре [17:10:18]line ОКРУГЛЕНИЕ: -0.22 [17:10:18]line ИТОГО: 671.00 [17:10:18]line Внесено: 671.00 [17:10:18]line СДАЧА: 0.00 [17:10:18]line НСП 1% : 5.94 [17:10:18]line НДС 12% : 71.28 [17:10:18]line Наличными: 671.00 [17:10:18]line Безнал.: 0.00 [17:10:18]line Место: АЗС № 91 "Партнер Нефть" [17:10:18]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:10:18]line СНО: Общий режим [17:10:18]line Чек 102 17.05.2024 17:10 [17:10:18]line Смена: 358 ФФД: 1.0 [17:10:18]line ЗНМ: 0300000119 [17:10:18]line РНМ: 0000000000091845 [17:10:18]line Версия ККМ: 001 [17:10:18]line ФМ: 0000000000871829 [17:10:18]line ФД: 67693 [17:10:18]line ФПД: 233464875871272 [17:10:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T171017&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67693&fm=233464875871272&tin=02508201610067®Number=0000000000091845&sum=67100 [17:10:18]written 0, free lines is 4095 [17:10:18]OFD Sender: Processing packet 67693 [packets to send 35, broken 34] [17:10:18]ProducePacketName [17:10:18]name=ofd_packets/00067693 [17:10:18]OFD Sender: To server: pG, [17:10:18]CommunicateWithHost lk.salyk.kg:30040 [17:10:18]ConnectInit lk.salyk.kg [17:10:18]Connected sock=10 [17:10:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 EA A1 08 01 9B 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 AC 26 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 06 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 06 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 1B 00 00 00 00 07 04 06 00 1C 06 01 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 79 8F 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6D 08 01 00 35 04 06 00 D4 55 C6 FE 6C 28 76 FA 2A D7 EA CC B4 43 [17:10: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 17 1A 47 00 3B 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 6D 08 01 00 F4 03 04 00 51 37 47 66 B6 04 01 00 00 8B 2E A2 B7 F1 2C 06 80 [17:10:18]CommunicateWithHost err = 0 [17:10:18]CheckOFDResponse [17:10:18]1017 (14) - 77093643461234 [17:10:18]1041 (16) - 0000000000871829 [17:10:18]1040 (4) - 67693 [17:10:18]1012 (4) - 17.05.2024 10:54 [17:10:18]1206 (1) - 0 [17:10:18]OFD Sender: Remove packet 67693 [17:10:18]ProducePacketName [17:10:18]name=ofd_packets/00067693 [17:10:18]NVStorageDeleteData [17:10:18]Write to MH i2c: 01 00 00 97 04 9B [17:10:18]Write i2c OK [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: 01 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: 01 07 00 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: 01 07 00 97 04 00 00 00 00 00 E3 0C 91 [17:10:18]RasterBufferAndPrint [17:10:18]line [17:10:18]line [17:10:18]line [17:10:18]line [17:10:18]line [17:10:18]written 0, free lines is 3305 [17:10:18]MH_Cut [17:10:18]Write to MH i2c: D1 01 00 9E 04 01 74 [17:10:18]Write i2c OK [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: D1 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: D1 01 00 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: D1 01 00 9E 04 00 73 [17:10:18]Write to MH i2c: 01 00 00 9F 04 A3 [17:10:18]Write i2c OK [17:10:18]MH_I2C_Read... [17:10:19]OFD Sender: No OFD packet to send [17:10:19]*** Cut start [17:10:19]*** Purtial cut [17:10:19]*** CUTSNS_PIN = 0 [17:10:19]*** Stage 1: CUTSNS_PIN = 1 [17:10:21]Read from MH i2c: 01 [17:10:21]MH_I2C_Read... [17:10:21]*** Stop cut motor [17:10:21]*** Cut end [17:10:21]Read from MH i2c: 01 07 00 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: 01 07 00 9F 04 00 00 00 00 00 FF 0F B8 [17:10:21]process_action close_receipt done [17:10:21]requested_data is exist [17:10:21]produce_requested_data [17:10:21]requested_item fm.sn is exist - process it [17:10:21]wFMCommunicate request_size=4 [17:10:21]MH_SAM_APDU [17:10:21]CAPDU: 80 11 00 00 [17:10:21]Write to MH i2c: E2 08 00 A0 04 80 11 00 00 00 00 00 00 1E [17:10:21]Write i2c OK [17:10:21]MH_I2C_Read... [17:10:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:21]Read from MH i2c: E2 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 17 00 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 17 00 A0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 74 [17:10: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:10:21]wFMCommunicate OK [17:10:21]requested_item fd.num is exist - process it [17:10:21]SAM_PROTO_GetFieldsCounters [17:10:21]wFMCommunicate request_size=4 [17:10:21]MH_SAM_APDU [17:10:21]CAPDU: 80 13 00 00 [17:10:21]Write to MH i2c: E2 08 00 A1 04 80 13 00 00 00 00 00 00 21 [17:10:21]Write i2c OK [17:10:21]MH_I2C_Read... [17:10:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:21]Read from MH i2c: E2 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 62 00 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 62 00 A1 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 6D 08 01 00 0E 04 04 00 66 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 56 [17:10: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 6D 08 01 00 0E 04 04 00 66 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 [17:10:21]wFMCommunicate OK [17:10:21]SAM_PROTO_GetFieldsCounters done [17:10:21]requested_item shift.num is exist - process it [17:10:21]requested_item shift.opened is exist - process it [17:10:21]req_shift_opened [17:10:21]FM_GetShiftState [17:10:21]SAM_PROTO_GetShiftState [17:10:21]wFMCommunicate request_size=4 [17:10:21]MH_SAM_APDU [17:10:21]CAPDU: 80 13 01 00 [17:10:21]Write to MH i2c: E2 08 00 A2 04 80 13 01 00 00 00 00 00 23 [17:10:21]Write i2c OK [17:10:21]MH_I2C_Read... [17:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:21]Read from MH i2c: E2 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 0E 00 [17:10:21]MH_I2C_Read... [17:10:21]Read from MH i2c: E2 0E 00 A2 04 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 A9 [17:10:21]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:10:21]wFMCommunicate OK [17:10:21]SAM_PROTO_GetShiftState done [17:10:21]FM_GetShiftState done [17:10:21]req_shift_opened done [17:10:21]requested_item shift.open_date is exist - process it [17:10:21]req_shift_open_date [17:10:21]req_shift_open_date done [17:10:21]produce_requested_data done [17:10:21]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67693,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [17:10:21]process_action_free close_receipt [17:10:21]json_value_free [17:10:21]json_value_free done [17:10:21]process_json_proto returns [17:10:21]Send response to host [17:10:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67693,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [17:10:21]free response buf [17:10:21]execute_script done [17:10:21]execute_script returns [17:10:21]free content buf [17:10:21]Sock 7.Close socket [17:10:21]Sock 7.Thread stoped [17:10:24]OFD Sender: No OFD packet to send [17:10:29]OFD Sender: No OFD packet to send [17:10:34]OFD Sender: No OFD packet to send [17:10:39]OFD Sender: No OFD packet to send [17:10:44]OFD Sender: No OFD packet to send [17:10:49]OFD Sender: No OFD packet to send [17:10:54]OFD Sender: No OFD packet to send [17:10:59]OFD Sender: No OFD packet to send [17:11:04]OFD Sender: No OFD packet to send [17:11:09]OFD Sender: No OFD packet to send [17:11:14]OFD Sender: No OFD packet to send [17:11:19]OFD Sender: No OFD packet to send [17:11:24]OFD Sender: No OFD packet to send [17:11:29]OFD Sender: No OFD packet to send [17:11:34]OFD Sender: No OFD packet to send [17:11:39]OFD Sender: No OFD packet to send [17:11:44]OFD Sender: No OFD packet to send [17:11:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [17:12:34]OFD Sender: No OFD packet to send [17:12:39]OFD Sender: No OFD packet to send [17:12:44]OFD Sender: No OFD packet to send [17:12:49]OFD Sender: No OFD packet to send [17:12:51]accept exits with 9 [17:12:51]New connection [17:12:51]New thread 3066752356 created [17:12:51]Thread 3066608996 joined [17:12:51]Waiting for new connection... [17:12:51] Sock 9.Parse request [17:12:51]Sock 9.Check first char [17:12:51]Sock 9.First char is OK [17:12:51]request: POST /json_proto HTTP/1.0 [17:12:51]Method: POST [17:12:51]URL: /json_proto [17:12:51]Method is POST - this is cgi request [17:12:51]url: /json_proto [17:12:51]query_string will be loaded in cgi processing [17:12:51]execute_cgi json_proto POST (null) [17:12:51]execute_cgi path=json_proto method=POST [17:12:51]POST find Content-Length [17:12:51]Host: 172.17.41.195:8080 [17:12:51]Content-Length: 682 [17:12:51]Content-Type: application/json [17:12:51] [17:12:51]POST finish read [17:12:51]Found Content-Length = 682 [17:12:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:51]execute_script... [17:12: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)507847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:51]POST & json_proto [17:12:51]process_json_proto [17:12:51]json parsed OK: [17:12:51]protocol is kg_v1.0 [17:12:51]action value=close_receipt [17:12:51]process_action close_receipt [17:12:51]cmd_close_receipt [17:12:51]MH_GetDate [17:12:51]Write to MH i2c: F0 00 00 A3 04 96 [17:12:51]Write i2c OK [17:12:51]MH_I2C_Read... [17:12:51]Read from MH i2c: F0 [17:12:51]MH_I2C_Read... [17:12:51]Read from MH i2c: F0 09 00 [17:12:51]MH_I2C_Read... [17:12:51]Read from MH i2c: F0 09 00 A3 04 00 14 90 47 66 FC 21 6F 64 E0 [17:12:51]GetLastDocTimeStamp 1715965817 [17:12:51]current date 1715965972 [17:12:51]FM_GetShiftState [17:12:51]SAM_PROTO_GetShiftState [17:12:51]wFMCommunicate request_size=4 [17:12:51]MH_SAM_APDU [17:12:51]CAPDU: 80 13 01 00 [17:12:51]Write to MH i2c: E2 08 00 A4 04 80 13 01 00 00 00 00 00 25 [17:12:51]Write i2c OK [17:12:51]MH_I2C_Read... [17:12:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:51]Read from MH i2c: E2 [17:12:51]MH_I2C_Read... [17:12:51]Read from MH i2c: E2 0E 00 [17:12:51]MH_I2C_Read... [17:12:51]Read from MH i2c: E2 0E 00 A4 04 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 AB [17:12:51]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:12:51]wFMCommunicate OK [17:12:51]SAM_PROTO_GetShiftState done [17:12:51]FM_GetShiftState done [17:12:51]opened in 1715905068 [17:12:51]opened+sec_in_day 1715991468 [17:12:51]quantity*price = 100066 [17:12:51]sum+1 = 100067 [17:12:51]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 СНО: Общий режим Чек 103 17.05.2024 17:12 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67694 ФПД: 49423375203653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T171252&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67694&fm=49423375203653&tin=02508201610067®Number=0000000000091845&sum=100000 [17:12:52]StoreToDocumentArchive [17:12:52]shift 358 fd 67694 [17:12:52]save to /storage/0358/doc_00067694 [17:12:52]save last doc name /storage/0358/doc_00067694 to /storage/kkm_last_doc_name [17:12:52]save OK [17:12:52]Clear old archive folders... [17:12:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:52]tlvbuf is B6EA9B80 [17:12:52]SAM_PROTO_ClearQueue [17:12:52]wFMCommunicate request_size=4 [17:12:52]MH_SAM_APDU [17:12:52]CAPDU: 80 09 00 00 [17:12:52]Write to MH i2c: E2 08 00 B1 04 80 09 00 00 00 00 00 00 27 [17:12:52]Write i2c OK [17:12:52]MH_I2C_Read... [17:12:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:52]Read from MH i2c: E2 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: E2 03 00 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: E2 03 00 B1 04 00 90 00 29 [17:12:52]RAPDU: 90 00 [17:12:52]wFMCommunicate OK [17:12:52]SAM_PROTO_ClearQueue done [17:12:52]KKMCreateOFDPacket [17:12:52]OFDProtocolAddRootSTLVToBuf [17:12:52]FM_MakeSignedData [17:12:52]FM_MakeSignedData [17:12:52]SAM_PROTO_SignData [17:12:52]wFMCommunicate request_size=4 [17:12:52]MH_SAM_APDU [17:12:52]CAPDU: 80 0D 01 02 [17:12:52]Write to MH i2c: E2 08 00 B2 04 80 0D 01 02 00 00 00 00 2F [17:12:52]Write i2c OK [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: E2 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: E2 03 00 [17:12:52]MH_I2C_Read... [17:12:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:52]Read from MH i2c: E2 03 00 B2 04 00 90 00 2A [17:12:52]RAPDU: 90 00 [17:12:52]wFMCommunicate OK [17:12:52]wFMCommunicate request_size=255 [17:12:52]MH_SAM_APDU [17:12:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 67 00 00 00 F4 03 04 00 14 90 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6E 08 01 00 35 04 06 00 2C [17:12:52]Write to MH i2c: E2 02 01 B3 04 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 67 00 00 00 F4 03 04 00 14 90 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6E 08 01 00 35 04 06 00 2C 00 00 CA [17:12:52]Write i2c OK [17:12:52]MH_I2C_Read... [17:12:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:52]Read from MH i2c: E2 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: E2 03 00 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: E2 03 00 B3 04 00 90 00 2B [17:12:52]RAPDU: 90 00 [17:12:52]wFMCommunicate OK [17:12:52]wFMCommunicate request_size=10 [17:12:52]MH_SAM_APDU [17:12:52]CAPDU: 80 0D 02 02 05 F3 46 B8 FD 45 [17:12:52]Write to MH i2c: E2 0D 00 B4 04 80 0D 02 02 05 00 F3 46 B8 FD 45 00 00 6F [17:12:52]Write i2c OK [17:12:52]MH_I2C_Read... [17:12:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:53]Read from MH i2c: E2 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: E2 03 00 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: E2 03 00 B4 04 00 90 00 2C [17:12:53]RAPDU: 90 00 [17:12:53]wFMCommunicate OK [17:12:53]wFMCommunicate request_size=4 [17:12:53]MH_SAM_APDU [17:12:53]CAPDU: 80 0D 03 02 [17:12:53]Write to MH i2c: E2 08 00 B5 04 80 0D 03 02 00 00 00 00 34 [17:12:53]Write i2c OK [17:12:53]MH_I2C_Read... [17:12:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:53]Read from MH i2c: E2 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: E2 0B 00 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: E2 0B 00 B5 04 00 7B A7 61 A2 6D A8 E9 5A 90 00 B2 [17:12:53]RAPDU: 7B A7 61 A2 6D A8 E9 5A 90 00 [17:12:53]wFMCommunicate OK [17:12:53]SAM_PROTO_SignData done [17:12:53]FM_MakeSignedData done [17:12:53]CreateOFDProtocolMessage [17:12:53]wFMCommunicate request_size=4 [17:12:53]MH_SAM_APDU [17:12:53]CAPDU: 80 11 00 00 [17:12:53]Write to MH i2c: E2 08 00 B6 04 80 11 00 00 00 00 00 00 34 [17:12:53]Write i2c OK [17:12:53]MH_I2C_Read... [17:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:53]Read from MH i2c: E2 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: E2 17 00 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: E2 17 00 B6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8A [17:12: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:12:53]wFMCommunicate OK [17:12:53]CreateOFDProtocolMessage done [17:12:53]OFDSenderStorePacket 67694 [17:12:53]StoreOFDPacket docnum=67694 [17:12:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 24 0E 07 01 1A 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 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 67 00 00 00 F4 03 04 00 14 90 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6E 08 01 00 35 04 06 00 2C F3 46 B8 FD 45 7B A7 61 A2 6D A8 E9 5A [17:12:53]CheckFolder [17:12:53]dirname=/storage/ofd_packets [17:12:53]CheckFolder done [17:12:53]ProducePacketName [17:12:53]name=ofd_packets/00067694 [17:12:53]NVStorageSaveData ofd_packets/00067694 [17:12:53]File name is /storage/ofd_packets/00067694 [17:12:53]Write 301 bytes [17:12:53]NVStorageSaveData done [17:12:53]OFDSenderStorePacket done [17:12:53]KKMCreateOFDPacket done [17:12:53]NVStorageSaveData kkm_last_timestamp [17:12:53]File name is /storage/kkm_last_timestamp [17:12:53]Write 4 bytes [17:12:53]NVStorageSaveData done [17:12:53]ExternCall_PrintAddStr [17:12:53]wPrintStart [17:12:53]Write to MH i2c: 01 00 00 B7 04 BB [17:12:53]Write i2c OK [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: 01 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: 01 07 00 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: 01 07 00 B7 04 00 00 00 00 00 FF 0F D0 [17:12:53]RasterBufferAndPrint [17:12:53]line Счет N : (1)507847 [17:12:53]line ИНН: 02508201610067 [17:12:53]line Контрольно-Кассовый Чек [17:12:53]line ПРОДАЖА [17:12:53]line ТРК (МРК, ГНК) : 23 [17:12:53]line Товар: 2710124130 [17:12:53]line Аи-92-К-5 [17:12:53]line 14.980 * 66.80 [17:12:53]line = 1000.66 [17:12:53]line НДС 12% НСП 1% [17:12:53]line > о реализуемом товаре [17:12:53]line ОКРУГЛЕНИЕ: -0.66 [17:12:53]line ИТОГО: 1000.00 [17:12:53]line Внесено: 1000.00 [17:12:53]line СДАЧА: 0.00 [17:12:53]line НСП 1% : 8.85 [17:12:53]line НДС 12% : 106.26 [17:12:53]line Наличными: 1000.00 [17:12:53]line Безнал.: 0.00 [17:12:53]line Место: АЗС № 91 "Партнер Нефть" [17:12:53]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:12:53]line СНО: Общий режим [17:12:53]line Чек 103 17.05.2024 17:12 [17:12:53]line Смена: 358 ФФД: 1.0 [17:12:53]line ЗНМ: 0300000119 [17:12:53]line РНМ: 0000000000091845 [17:12:53]line Версия ККМ: 001 [17:12:53]line ФМ: 0000000000871829 [17:12:53]line ФД: 67694 [17:12:53]line ФПД: 49423375203653 [17:12:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T171252&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67694&fm=49423375203653&tin=02508201610067®Number=0000000000091845&sum=100000 [17:12:53]OFD Sender: Processing packet 67694 [packets to send 35, broken 34] [17:12:53]ProducePacketName [17:12:53]name=ofd_packets/00067694 [17:12:53]OFD Sender: To server: pG, [17:12:53]CommunicateWithHost lk.salyk.kg:30040 [17:12:53]ConnectInit lk.salyk.kg [17:12:53]written 0, free lines is 4095 [17:12:53]Connected sock=10 [17:12:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 24 0E 07 01 1A 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 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 67 00 00 00 F4 03 04 00 14 90 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6E 08 01 00 35 04 06 00 2C F3 46 B8 FD 45 7B A7 61 A2 6D A8 E9 5A [17:12: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 A7 9C 47 00 84 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 6E 08 01 00 F4 03 04 00 EC 37 47 66 B6 04 01 00 00 A7 BF 29 D8 EC 2F 09 86 [17:12:53]CommunicateWithHost err = 0 [17:12:53]CheckOFDResponse [17:12:53]1017 (14) - 77093643461234 [17:12:53]1041 (16) - 0000000000871829 [17:12:53]1040 (4) - 67694 [17:12:53]1012 (4) - 17.05.2024 10:56 [17:12:53]1206 (1) - 0 [17:12:53]OFD Sender: Remove packet 67694 [17:12:53]ProducePacketName [17:12:53]name=ofd_packets/00067694 [17:12:53]NVStorageDeleteData [17:12:53]Write to MH i2c: 01 00 00 E1 04 E5 [17:12:53]Write i2c OK [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: 01 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: 01 07 00 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: 01 07 00 E1 04 00 00 00 00 00 C7 0C BF [17:12:53]RasterBufferAndPrint [17:12:53]line [17:12:53]line [17:12:53]line [17:12:53]line [17:12:53]line [17:12:53]written 0, free lines is 3275 [17:12:53]MH_Cut [17:12:53]Write to MH i2c: D1 01 00 E8 04 01 BE [17:12:53]Write i2c OK [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: D1 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: D1 01 00 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: D1 01 00 E8 04 00 BD [17:12:53]Write to MH i2c: 01 00 00 E9 04 ED [17:12:53]Write i2c OK [17:12:53]MH_I2C_Read... [17:12:54]OFD Sender: No OFD packet to send [17:12:54]*** Cut start [17:12:54]*** Purtial cut [17:12:54]*** Stage 1: CUTSNS_PIN = 1 [17:12:55]Read from MH i2c: 01 [17:12:55]MH_I2C_Read... [17:12:55]*** Stop cut motor [17:12:55]*** Cut end [17:12:55]Read from MH i2c: 01 07 00 [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: 01 07 00 E9 04 00 00 00 00 00 FF 0F 02 [17:12:55]process_action close_receipt done [17:12:55]requested_data is exist [17:12:55]produce_requested_data [17:12:55]requested_item fm.sn is exist - process it [17:12:55]wFMCommunicate request_size=4 [17:12:55]MH_SAM_APDU [17:12:55]CAPDU: 80 11 00 00 [17:12:55]Write to MH i2c: E2 08 00 EA 04 80 11 00 00 00 00 00 00 68 [17:12:55]Write i2c OK [17:12:55]MH_I2C_Read... [17:12:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:55]Read from MH i2c: E2 [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: E2 17 00 [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: E2 17 00 EA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BE [17:12:55]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:55]wFMCommunicate OK [17:12:55]requested_item fd.num is exist - process it [17:12:55]SAM_PROTO_GetFieldsCounters [17:12:55]wFMCommunicate request_size=4 [17:12:55]MH_SAM_APDU [17:12:55]CAPDU: 80 13 00 00 [17:12:55]Write to MH i2c: E2 08 00 EB 04 80 13 00 00 00 00 00 00 6B [17:12:55]Write i2c OK [17:12:55]MH_I2C_Read... [17:12:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:55]Read from MH i2c: E2 [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: E2 62 00 [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: E2 62 00 EB 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 6E 08 01 00 0E 04 04 00 66 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 A4 [17:12: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 6E 08 01 00 0E 04 04 00 66 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 [17:12:55]wFMCommunicate OK [17:12:55]SAM_PROTO_GetFieldsCounters done [17:12:55]requested_item shift.num is exist - process it [17:12:55]requested_item shift.opened is exist - process it [17:12:55]req_shift_opened [17:12:55]FM_GetShiftState [17:12:55]SAM_PROTO_GetShiftState [17:12:55]wFMCommunicate request_size=4 [17:12:55]MH_SAM_APDU [17:12:55]CAPDU: 80 13 01 00 [17:12:55]Write to MH i2c: E2 08 00 EC 04 80 13 01 00 00 00 00 00 6D [17:12:55]Write i2c OK [17:12:55]MH_I2C_Read... [17:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:55]Read from MH i2c: E2 [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: E2 0E 00 [17:12:55]MH_I2C_Read... [17:12:55]Read from MH i2c: E2 0E 00 EC 04 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F3 [17:12:55]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:12:55]wFMCommunicate OK [17:12:55]SAM_PROTO_GetShiftState done [17:12:55]FM_GetShiftState done [17:12:55]req_shift_opened done [17:12:55]requested_item shift.open_date is exist - process it [17:12:55]req_shift_open_date [17:12:55]req_shift_open_date done [17:12:55]produce_requested_data done [17:12:55]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67694,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [17:12:55]process_action_free close_receipt [17:12:55]json_value_free [17:12:55]json_value_free done [17:12:55]process_json_proto returns [17:12:55]Send response to host [17:12:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67694,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [17:12:55]free response buf [17:12:55]execute_script done [17:12:55]execute_script returns [17:12:55]free content buf [17:12:55]Sock 9.Close socket [17:12:55]Sock 9.Thread stoped [17:12:59]OFD Sender: No OFD packet to send [17:13:04]OFD Sender: No OFD packet to send [17:13:09]OFD Sender: No OFD packet to send [17:13:14]OFD Sender: No OFD packet to send [17:13:19]OFD Sender: No OFD packet to send [17:13:24]OFD Sender: No OFD packet to send [17:13:29]OFD Sender: No OFD packet to send [17:13:34]OFD Sender: No OFD packet to send [17:13:39]OFD Sender: No OFD packet to send [17:13:44]OFD Sender: No OFD packet to send [17:13:49]OFD Sender: No OFD packet to send [17:13:54]OFD Sender: No OFD packet to send [17:13:59]OFD Sender: No OFD packet to send [17:14:04]OFD Sender: No OFD packet to send [17:14:09]OFD Sender: No OFD packet to send [17:14:14]OFD Sender: No OFD packet to send [17:14:19]OFD Sender: No OFD packet to send [17:14:24]OFD Sender: No OFD packet to send [17:14:29]OFD Sender: No OFD packet to send [17:14:34]OFD Sender: No OFD packet to send [17:14:39]OFD Sender: No OFD packet to send [17:14:44]OFD Sender: No OFD packet to send [17:14:49]OFD Sender: No OFD packet to send [17:14:54]OFD Sender: No OFD packet to send [17:14:59]OFD Sender: No OFD packet to send [17:15:04]OFD Sender: No OFD packet to send [17:15:09]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:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:29]OFD Sender: No OFD packet to send [17:16:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:49]OFD Sender: No OFD packet to send [17:16:54]OFD Sender: No OFD packet to send [17:16:59]OFD Sender: No OFD packet to send [17:17:04]OFD Sender: No OFD packet to send [17:17:09]OFD Sender: No OFD packet to send [17:17:14]OFD Sender: No OFD packet to send [17:17:19]OFD Sender: No OFD packet to send [17:17:24]OFD Sender: No OFD packet to send [17:17:29]OFD Sender: No OFD packet to send [17:17:34]OFD Sender: No OFD packet to send [17:17:39]OFD Sender: No OFD packet to send [17:17:44]OFD Sender: No OFD packet to send [17:17:49]OFD Sender: No OFD packet to send [17:17:54]OFD Sender: No OFD packet to send [17:17:59]OFD Sender: No OFD packet to send [17:18:04]OFD Sender: No OFD packet to send [17:18:09]OFD Sender: No OFD packet to send [17:18:14]OFD Sender: No OFD packet to send [17:18:19]OFD Sender: No OFD packet to send [17:18:24]OFD Sender: No OFD packet to send [17:18:29]OFD Sender: No OFD packet to send [17:18:34]OFD Sender: No OFD packet to send [17:18:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:49]OFD Sender: No OFD packet to send [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:18:59]accept exits with 7 [17:18:59]New connection [17:18:59]New thread 3066608996 created [17:18:59]Thread 3066752356 joined [17:18:59]Waiting for new connection... [17:18:59] Sock 7.Parse request [17:18:59]Sock 7.Check first char [17:18:59]Sock 7.First char is OK [17:18:59]request: POST /json_proto HTTP/1.0 [17:18:59]Method: POST [17:18:59]URL: /json_proto [17:18:59]Method is POST - this is cgi request [17:18:59]url: /json_proto [17:18:59]query_string will be loaded in cgi processing [17:18:59]execute_cgi json_proto POST (null) [17:18:59]execute_cgi path=json_proto method=POST [17:18:59]POST find Content-Length [17:18:59]Host: 172.17.41.195:8080 [17:18:59]Content-Length: 800 [17:18:59]Content-Type: application/json [17:18:59] [17:18:59]POST finish read [17:18:59]Found Content-Length = 800 [17:18:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507848", "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:18:59]execute_script... [17:18: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)507848", "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:18:59]POST & json_proto [17:18:59]process_json_proto [17:18:59]json parsed OK: [17:18:59]protocol is kg_v1.0 [17:18:59]action value=close_receipt [17:18:59]process_action close_receipt [17:18:59]cmd_close_receipt [17:18:59]MH_GetDate [17:18:59]Write to MH i2c: F0 00 00 ED 04 E0 [17:18:59]Write i2c OK [17:18:59]MH_I2C_Read... [17:18:59]Read from MH i2c: F0 [17:18:59]MH_I2C_Read... [17:18:59]Read from MH i2c: F0 09 00 [17:18:59]MH_I2C_Read... [17:18:59]Read from MH i2c: F0 09 00 ED 04 00 84 91 47 66 FC 21 6F 64 9B [17:18:59]GetLastDocTimeStamp 1715965972 [17:18:59]current date 1715966340 [17:18:59]FM_GetShiftState [17:18:59]SAM_PROTO_GetShiftState [17:18:59]wFMCommunicate request_size=4 [17:18:59]MH_SAM_APDU [17:18:59]CAPDU: 80 13 01 00 [17:18:59]Write to MH i2c: E2 08 00 EE 04 80 13 01 00 00 00 00 00 6F [17:18:59]Write i2c OK [17:18:59]MH_I2C_Read... [17:18:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:59]Read from MH i2c: E2 [17:18:59]MH_I2C_Read... [17:18:59]Read from MH i2c: E2 0E 00 [17:18:59]MH_I2C_Read... [17:18:59]Read from MH i2c: E2 0E 00 EE 04 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F5 [17:18:59]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:18:59]wFMCommunicate OK [17:18:59]SAM_PROTO_GetShiftState done [17:18:59]FM_GetShiftState done [17:18:59]opened in 1715905068 [17:18:59]opened+sec_in_day 1715991468 [17:18:59]quantity*price = 250020 [17:18:59]sum+1 = 250022 [17:18:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.21 НСП 1% : 22.13 НДС 12% : 265.51 Наличными: 0.00 Безнал.: 2500.21 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 104 17.05.2024 17:19 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67695 ФПД: 117849104642016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T171900&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67695&fm=117849104642016&tin=02508201610067®Number=0000000000091845&sum=250021 [17:19:00]StoreToDocumentArchive [17:19:00]shift 358 fd 67695 [17:19:00]save to /storage/0358/doc_00067695 [17:19:00]save last doc name /storage/0358/doc_00067695 to /storage/kkm_last_doc_name [17:19:00]save OK [17:19:00]Clear old archive folders... [17:19:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:19:00]tlvbuf is B6EA9640 [17:19:00]SAM_PROTO_ClearQueue [17:19:00]wFMCommunicate request_size=4 [17:19:00]MH_SAM_APDU [17:19:00]CAPDU: 80 09 00 00 [17:19:00]Write to MH i2c: E2 08 00 FB 04 80 09 00 00 00 00 00 00 71 [17:19:00]Write i2c OK [17:19:00]MH_I2C_Read... [17:19:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:00]Read from MH i2c: E2 [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: E2 03 00 [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: E2 03 00 FB 04 00 90 00 73 [17:19:00]RAPDU: 90 00 [17:19:00]wFMCommunicate OK [17:19:00]SAM_PROTO_ClearQueue done [17:19:00]KKMCreateOFDPacket [17:19:00]OFDProtocolAddRootSTLVToBuf [17:19:00]FM_MakeSignedData [17:19:00]FM_MakeSignedData [17:19:00]SAM_PROTO_SignData [17:19:00]wFMCommunicate request_size=4 [17:19:00]MH_SAM_APDU [17:19:00]CAPDU: 80 0D 01 02 [17:19:00]Write to MH i2c: E2 08 00 FC 04 80 0D 01 02 00 00 00 00 79 [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:01]Read from MH i2c: E2 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 03 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 03 00 FC 04 00 90 00 74 [17:19:01]RAPDU: 90 00 [17:19:01]wFMCommunicate OK [17:19:01]wFMCommunicate request_size=255 [17:19:01]MH_SAM_APDU [17:19: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 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 68 00 00 00 F4 03 04 00 84 91 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6F 08 01 00 35 04 06 00 6B 2E E2 04 [17:19:01]Write to MH i2c: E2 02 01 FD 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 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 68 00 00 00 F4 03 04 00 84 91 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6F 08 01 00 35 04 06 00 6B 2E E2 04 00 00 21 [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:01]Read from MH i2c: E2 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 03 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 03 00 FD 04 00 90 00 75 [17:19:01]RAPDU: 90 00 [17:19:01]wFMCommunicate OK [17:19:01]wFMCommunicate request_size=7 [17:19:01]MH_SAM_APDU [17:19:01]CAPDU: 80 0D 02 02 02 EF E0 [17:19:01]Write to MH i2c: E2 0A 00 FE 04 80 0D 02 02 02 00 EF E0 00 00 4F [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:01]Read from MH i2c: E2 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 03 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 03 00 FE 04 00 90 00 76 [17:19:01]RAPDU: 90 00 [17:19:01]wFMCommunicate OK [17:19:01]wFMCommunicate request_size=4 [17:19:01]MH_SAM_APDU [17:19:01]CAPDU: 80 0D 03 02 [17:19:01]Write to MH i2c: E2 08 00 FF 04 80 0D 03 02 00 00 00 00 7E [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:01]Read from MH i2c: E2 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 0B 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 0B 00 FF 04 00 8D EF DA ED 14 53 C8 5F 90 00 50 [17:19:01]RAPDU: 8D EF DA ED 14 53 C8 5F 90 00 [17:19:01]wFMCommunicate OK [17:19:01]SAM_PROTO_SignData done [17:19:01]FM_MakeSignedData done [17:19:01]CreateOFDProtocolMessage [17:19:01]wFMCommunicate request_size=4 [17:19:01]MH_SAM_APDU [17:19:01]CAPDU: 80 11 00 00 [17:19:01]Write to MH i2c: E2 08 00 00 05 80 11 00 00 00 00 00 00 7F [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:01]Read from MH i2c: E2 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 17 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 17 00 00 05 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:19: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:19:01]wFMCommunicate OK [17:19:01]CreateOFDProtocolMessage done [17:19:01]OFDSenderStorePacket 67695 [17:19:01]StoreOFDPacket docnum=67695 [17:19:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 BD 40 04 01 12 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 68 00 00 00 F4 03 04 00 84 91 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6F 08 01 00 35 04 06 00 6B 2E E2 04 EF E0 8D EF DA ED 14 53 C8 5F [17:19:01]CheckFolder [17:19:01]dirname=/storage/ofd_packets [17:19:01]CheckFolder done [17:19:01]ProducePacketName [17:19:01]name=ofd_packets/00067695 [17:19:01]NVStorageSaveData ofd_packets/00067695 [17:19:01]File name is /storage/ofd_packets/00067695 [17:19:01]Write 298 bytes [17:19:01]NVStorageSaveData done [17:19:01]OFDSenderStorePacket done [17:19:01]KKMCreateOFDPacket done [17:19:01]NVStorageSaveData kkm_last_timestamp [17:19:01]File name is /storage/kkm_last_timestamp [17:19:01]Write 4 bytes [17:19:01]NVStorageSaveData done [17:19:01]ExternCall_PrintAddStr [17:19:01]wPrintStart [17:19:01]Write to MH i2c: 01 00 00 01 05 06 [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: 01 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: 01 07 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: 01 07 00 01 05 00 00 00 00 00 FF 0F 1B [17:19:01]RasterBufferAndPrint [17:19:01]line Счет N : (1)507848 [17:19:01]line ИНН: 02508201610067 [17:19:01]line Контрольно-Кассовый Чек [17:19:01]line ПРОДАЖА [17:19:01]line ТРК (МРК, ГНК) : 31 [17:19:01]line Товар: 2710194210 [17:19:01]line ДТ-К-5 [17:19:01]line 33.470 * 74.70 [17:19:01]line = 2500.21 [17:19:01]line НДС 12% НСП 1% [17:19:01]line > о реализуемом товаре [17:19:01]line ИТОГО: 2500.21 [17:19:01]line НСП 1% : 22.13 [17:19:01]line НДС 12% : 265.51 [17:19:01]line Наличными: 0.00 [17:19:01]line Безнал.: 2500.21 [17:19:01]line Место: АЗС № 91 "Партнер Нефть" [17:19:01]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:19:01]line СНО: Общий режим [17:19:01]line Чек 104 17.05.2024 17:19 [17:19:01]line Смена: 358 ФФД: 1.0 [17:19:01]line ЗНМ: 0300000119 [17:19:01]line РНМ: 0000000000091845 [17:19:01]line Версия ККМ: 001 [17:19:01]line Платежная система: O! деньги [17:19:01]line ФМ: 0000000000871829 [17:19:01]line ФД: 67695 [17:19:01]line ФПД: 117849104642016 [17:19:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T171900&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67695&fm=117849104642016&tin=02508201610067®Number=0000000000091845&sum=250021 [17:19:01]OFD Sender: Processing packet 67695 [packets to send 35, broken 34] [17:19:01]ProducePacketName [17:19:01]name=ofd_packets/00067695 [17:19:01]OFD Sender: To server: pG, [17:19:01]CommunicateWithHost lk.salyk.kg:30040 [17:19:01]ConnectInit lk.salyk.kg [17:19:01]written 0, free lines is 4095 [17:19:01]Connected sock=11 [17:19: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 0C 01 00 00 BD 40 04 01 12 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 68 00 00 00 F4 03 04 00 84 91 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6F 08 01 00 35 04 06 00 6B 2E E2 04 EF E0 8D EF DA ED 14 53 C8 5F [17:19: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 2A 60 47 00 FD 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 6F 08 01 00 F4 03 04 00 5C 39 47 66 B6 04 01 00 00 7D 33 E7 51 33 C3 82 F2 [17:19:02]CommunicateWithHost err = 0 [17:19:02]CheckOFDResponse [17:19:02]1017 (14) - 77093643461234 [17:19:02]1041 (16) - 0000000000871829 [17:19:02]1040 (4) - 67695 [17:19:02]1012 (4) - 17.05.2024 11:02 [17:19:02]1206 (1) - 0 [17:19:02]OFD Sender: Remove packet 67695 [17:19:02]ProducePacketName [17:19:02]name=ofd_packets/00067695 [17:19:02]NVStorageDeleteData [17:19:02]Write to MH i2c: 01 00 00 2A 05 2F [17:19:02]Write i2c OK [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: 01 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: 01 07 00 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: 01 07 00 2A 05 00 00 00 00 00 DA 0C 1C [17:19:02]RasterBufferAndPrint [17:19:02]line [17:19:02]line [17:19:02]line [17:19:02]line [17:19:02]line [17:19:02]written 0, free lines is 3297 [17:19:02]MH_Cut [17:19:02]Write to MH i2c: D1 01 00 31 05 01 08 [17:19:02]Write i2c OK [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: D1 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: D1 01 00 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: D1 01 00 31 05 00 07 [17:19:02]Write to MH i2c: 01 00 00 32 05 37 [17:19:02]Write i2c OK [17:19:02]MH_I2C_Read... [17:19:02]OFD Sender: No OFD packet to send [17:19:03]*** Cut start [17:19:03]*** Purtial cut [17:19:03]*** CUTSNS_PIN = 0 [17:19:03]*** Stage 1: CUTSNS_PIN = 1 [17:19:05]Read from MH i2c: 01 [17:19:05]MH_I2C_Read... [17:19:05]*** Stop cut motor [17:19:05]*** Cut end [17:19:05]Read from MH i2c: 01 07 00 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: 01 07 00 32 05 00 00 00 00 00 FF 0F 4C [17:19:05]process_action close_receipt done [17:19:05]requested_data is exist [17:19:05]produce_requested_data [17:19:05]requested_item fm.sn is exist - process it [17:19:05]wFMCommunicate request_size=4 [17:19:05]MH_SAM_APDU [17:19:05]CAPDU: 80 11 00 00 [17:19:05]Write to MH i2c: E2 08 00 33 05 80 11 00 00 00 00 00 00 B2 [17:19:05]Write i2c OK [17:19:05]MH_I2C_Read... [17:19:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:05]Read from MH i2c: E2 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: E2 17 00 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: E2 17 00 33 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 08 [17:19: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:19:05]wFMCommunicate OK [17:19:05]requested_item fd.num is exist - process it [17:19:05]SAM_PROTO_GetFieldsCounters [17:19:05]wFMCommunicate request_size=4 [17:19:05]MH_SAM_APDU [17:19:05]CAPDU: 80 13 00 00 [17:19:05]Write to MH i2c: E2 08 00 34 05 80 13 00 00 00 00 00 00 B5 [17:19:05]Write i2c OK [17:19:05]MH_I2C_Read... [17:19:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:05]Read from MH i2c: E2 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: E2 62 00 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: E2 62 00 34 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 6F 08 01 00 0E 04 04 00 66 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 F2 [17:19: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 6F 08 01 00 0E 04 04 00 66 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 [17:19:05]wFMCommunicate OK [17:19:05]SAM_PROTO_GetFieldsCounters done [17:19:05]requested_item shift.num is exist - process it [17:19:05]requested_item shift.opened is exist - process it [17:19:05]req_shift_opened [17:19:05]FM_GetShiftState [17:19:05]SAM_PROTO_GetShiftState [17:19:05]wFMCommunicate request_size=4 [17:19:05]MH_SAM_APDU [17:19:05]CAPDU: 80 13 01 00 [17:19:05]Write to MH i2c: E2 08 00 35 05 80 13 01 00 00 00 00 00 B7 [17:19:05]Write i2c OK [17:19:05]MH_I2C_Read... [17:19:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:05]Read from MH i2c: E2 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: E2 0E 00 [17:19:05]MH_I2C_Read... [17:19:05]Read from MH i2c: E2 0E 00 35 05 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 3D [17:19:05]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:19:05]wFMCommunicate OK [17:19:05]SAM_PROTO_GetShiftState done [17:19:05]FM_GetShiftState done [17:19:05]req_shift_opened done [17:19:05]requested_item shift.open_date is exist - process it [17:19:05]req_shift_open_date [17:19:05]req_shift_open_date done [17:19:05]produce_requested_data done [17:19:05]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67695,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [17:19:05]process_action_free close_receipt [17:19:05]json_value_free [17:19:05]json_value_free done [17:19:05]process_json_proto returns [17:19:05]Send response to host [17:19:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67695,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [17:19:05]free response buf [17:19:05]execute_script done [17:19:05]execute_script returns [17:19:05]free content buf [17:19:05]Sock 7.Close socket [17:19:05]Sock 7.Thread stoped [17:19:07]OFD Sender: No OFD packet to send [17:19:12]OFD Sender: No OFD packet to send [17:19:17]OFD Sender: No OFD packet to send [17:19:22]OFD Sender: No OFD packet to send [17:19:27]OFD Sender: No OFD packet to send [17:19:32]OFD Sender: No OFD packet to send [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:25]accept exits with 9 [17:20:25]New connection [17:20:25]New thread 3066752356 created [17:20:25]Thread 3066608996 joined [17:20:25]Waiting for new connection... [17:20:25] Sock 9.Parse request [17:20:25]Sock 9.Check first char [17:20:25]Sock 9.First char is OK [17:20:25]request: POST /json_proto HTTP/1.0 [17:20:25]Method: POST [17:20:25]URL: /json_proto [17:20:25]Method is POST - this is cgi request [17:20:25]url: /json_proto [17:20:25]query_string will be loaded in cgi processing [17:20:25]execute_cgi json_proto POST (null) [17:20:25]execute_cgi path=json_proto method=POST [17:20:25]POST find Content-Length [17:20:25]Host: 172.17.41.195:8080 [17:20:25]Content-Length: 682 [17:20:25]Content-Type: application/json [17:20:25] [17:20:25]POST finish read [17:20:25]Found Content-Length = 682 [17:20:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507849", "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" : 18.000, "sum" : 1202.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1202.00, "total" : 1202.00, "payments": [ { "type": 0, "sum" : 1202.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:25]execute_script... [17:20: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)507849", "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" : 18.000, "sum" : 1202.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1202.00, "total" : 1202.00, "payments": [ { "type": 0, "sum" : 1202.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:25]POST & json_proto [17:20:25]process_json_proto [17:20:25]json parsed OK: [17:20:25]protocol is kg_v1.0 [17:20:25]action value=close_receipt [17:20:25]process_action close_receipt [17:20:25]cmd_close_receipt [17:20:25]MH_GetDate [17:20:25]Write to MH i2c: F0 00 00 36 05 2A [17:20:25]Write i2c OK [17:20:25]MH_I2C_Read... [17:20:25]Read from MH i2c: F0 [17:20:25]MH_I2C_Read... [17:20:25]Read from MH i2c: F0 09 00 [17:20:25]MH_I2C_Read... [17:20:25]Read from MH i2c: F0 09 00 36 05 00 DA 91 47 66 FC 21 6F 64 3B [17:20:25]GetLastDocTimeStamp 1715966340 [17:20:25]current date 1715966426 [17:20:25]FM_GetShiftState [17:20:25]SAM_PROTO_GetShiftState [17:20:25]wFMCommunicate request_size=4 [17:20:25]MH_SAM_APDU [17:20:25]CAPDU: 80 13 01 00 [17:20:25]Write to MH i2c: E2 08 00 37 05 80 13 01 00 00 00 00 00 B9 [17:20:25]Write i2c OK [17:20:25]MH_I2C_Read... [17:20:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:25]Read from MH i2c: E2 [17:20:25]MH_I2C_Read... [17:20:25]Read from MH i2c: E2 0E 00 [17:20:25]MH_I2C_Read... [17:20:25]Read from MH i2c: E2 0E 00 37 05 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 3F [17:20:25]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:20:25]wFMCommunicate OK [17:20:25]SAM_PROTO_GetShiftState done [17:20:25]FM_GetShiftState done [17:20:25]opened in 1715905068 [17:20:25]opened+sec_in_day 1715991468 [17:20:25]quantity*price = 120240 [17:20:25]sum+1 = 120241 [17:20:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1202.00 Внесено: 1202.00 СДАЧА: 0.00 НСП 1% : 10.64 НДС 12% : 127.69 Наличными: 1202.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 105 17.05.2024 17:20 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67696 ФПД: 177844036853227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T172026&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67696&fm=177844036853227&tin=02508201610067®Number=0000000000091845&sum=120200 [17:20:26]StoreToDocumentArchive [17:20:26]shift 358 fd 67696 [17:20:26]save to /storage/0358/doc_00067696 [17:20:26]save last doc name /storage/0358/doc_00067696 to /storage/kkm_last_doc_name [17:20:26]save OK [17:20:26]Clear old archive folders... [17:20:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:20:26]tlvbuf is 01AE3B40 [17:20:26]SAM_PROTO_ClearQueue [17:20:26]wFMCommunicate request_size=4 [17:20:26]MH_SAM_APDU [17:20:26]CAPDU: 80 09 00 00 [17:20:26]Write to MH i2c: E2 08 00 44 05 80 09 00 00 00 00 00 00 BB [17:20:26]Write i2c OK [17:20:26]MH_I2C_Read... [17:20:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:26]Read from MH i2c: E2 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 03 00 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 03 00 44 05 00 90 00 BD [17:20:26]RAPDU: 90 00 [17:20:26]wFMCommunicate OK [17:20:26]SAM_PROTO_ClearQueue done [17:20:26]KKMCreateOFDPacket [17:20:26]OFDProtocolAddRootSTLVToBuf [17:20:26]FM_MakeSignedData [17:20:26]FM_MakeSignedData [17:20:26]SAM_PROTO_SignData [17:20:26]wFMCommunicate request_size=4 [17:20:26]MH_SAM_APDU [17:20:26]CAPDU: 80 0D 01 02 [17:20:26]Write to MH i2c: E2 08 00 45 05 80 0D 01 02 00 00 00 00 C3 [17:20:26]Write i2c OK [17:20:26]MH_I2C_Read... [17:20:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:26]Read from MH i2c: E2 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 03 00 [17:20:26]MH_I2C_Read... [17:20:26]Read from MH i2c: E2 03 00 45 05 00 90 00 BE [17:20:26]RAPDU: 90 00 [17:20:26]wFMCommunicate OK [17:20:26]wFMCommunicate request_size=255 [17:20:26]MH_SAM_APDU [17:20: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 50 46 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 D5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 31 00 00 00 00 07 04 06 00 88 D5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 DA 91 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 70 08 01 00 35 04 06 00 A1 [17:20:26]Write to MH i2c: E2 02 01 46 05 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 50 46 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 D5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 31 00 00 00 00 07 04 06 00 88 D5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 DA 91 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 70 08 01 00 35 04 06 00 A1 00 00 1C [17:20:26]Write i2c OK [17:20:26]MH_I2C_Read... [17:20:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:27]Read from MH i2c: E2 [17:20:27]MH_I2C_Read... [17:20:27]Read from MH i2c: E2 03 00 [17:20:27]MH_I2C_Read... [17:20:27]Read from MH i2c: E2 03 00 46 05 00 90 00 BF [17:20:27]RAPDU: 90 00 [17:20:27]wFMCommunicate OK [17:20:27]wFMCommunicate request_size=10 [17:20:27]MH_SAM_APDU [17:20:27]CAPDU: 80 0D 02 02 05 BF 8A A4 5D EB [17:20:27]Write to MH i2c: E2 0D 00 47 05 80 0D 02 02 05 00 BF 8A A4 5D EB 00 00 05 [17:20:27]Write i2c OK [17:20:27]MH_I2C_Read... [17:20:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:27]Read from MH i2c: E2 [17:20:27]MH_I2C_Read... [17:20:27]Read from MH i2c: E2 03 00 [17:20:27]MH_I2C_Read... [17:20:27]Read from MH i2c: E2 03 00 47 05 00 90 00 C0 [17:20:27]RAPDU: 90 00 [17:20:27]wFMCommunicate OK [17:20:27]wFMCommunicate request_size=4 [17:20:27]MH_SAM_APDU [17:20:27]CAPDU: 80 0D 03 02 [17:20:27]Write to MH i2c: E2 08 00 48 05 80 0D 03 02 00 00 00 00 C8 [17:20:27]Write i2c OK [17:20:27]MH_I2C_Read... [17:20:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:27]Read from MH i2c: E2 [17:20:27]MH_I2C_Read... [17:20:27]Read from MH i2c: E2 0B 00 [17:20:27]MH_I2C_Read... [17:20:27]Read from MH i2c: E2 0B 00 48 05 00 DD DD CE 73 9A D4 66 3A 90 00 D2 [17:20:27]RAPDU: DD DD CE 73 9A D4 66 3A 90 00 [17:20:27]wFMCommunicate OK [17:20:27]SAM_PROTO_SignData done [17:20:27]FM_MakeSignedData done [17:20:27]CreateOFDProtocolMessage [17:20:27]wFMCommunicate request_size=4 [17:20:27]MH_SAM_APDU [17:20:27]CAPDU: 80 11 00 00 [17:20:27]Write to MH i2c: E2 08 00 49 05 80 11 00 00 00 00 00 00 C8 [17:20:27]Write i2c OK [17:20:27]MH_I2C_Read... [17:20:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:27]Read from MH i2c: E2 [17:20:27]MH_I2C_Read... [17:20:27]Read from MH i2c: E2 17 00 [17:20:27]MH_I2C_Read... [17:20:27]Read from MH i2c: E2 17 00 49 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1E [17:20:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:20:27]wFMCommunicate OK [17:20:27]CreateOFDProtocolMessage done [17:20:27]OFDSenderStorePacket 67696 [17:20:27]StoreOFDPacket docnum=67696 [17:20: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 0F 01 00 00 F4 95 07 01 9A 35 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 50 46 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 D5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 31 00 00 00 00 07 04 06 00 88 D5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 DA 91 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 70 08 01 00 35 04 06 00 A1 BF 8A A4 5D EB DD DD CE 73 9A D4 66 3A [17:20:27]CheckFolder [17:20:27]dirname=/storage/ofd_packets [17:20:27]CheckFolder done [17:20:27]ProducePacketName [17:20:27]name=ofd_packets/00067696 [17:20:27]NVStorageSaveData ofd_packets/00067696 [17:20:27]File name is /storage/ofd_packets/00067696 [17:20:27]Write 301 bytes [17:20:27]NVStorageSaveData done [17:20:27]OFDSenderStorePacket done [17:20:27]KKMCreateOFDPacket done [17:20:27]NVStorageSaveData kkm_last_timestamp [17:20:27]File name is /storage/kkm_last_timestamp [17:20:27]Write 4 bytes [17:20:27]NVStorageSaveData done [17:20:27]ExternCall_PrintAddStr [17:20:27]wPrintStart [17:20:27]Write to MH i2c: 01 00 00 4A 05 4F [17:20:27]Write i2c OK [17:20:27]MH_I2C_Read... [17:20:27]Read from MH i2c: 01 [17:20:27]MH_I2C_Read... [17:20:27]Read from MH i2c: 01 07 00 [17:20:27]MH_I2C_Read... [17:20:27]Read from MH i2c: 01 07 00 4A 05 00 00 00 00 00 FF 0F 64 [17:20:27]RasterBufferAndPrint [17:20:27]line Счет N : (1)507849 [17:20:27]line ИНН: 02508201610067 [17:20:27]line Контрольно-Кассовый Чек [17:20:27]line ПРОДАЖА [17:20:27]line ТРК (МРК, ГНК) : 43 [17:20:27]line Товар: 2710124130 [17:20:27]line Аи-92-К-5 [17:20:27]line 18.000 * 66.80 [17:20:27]line = 1202.40 [17:20:27]line НДС 12% НСП 1% [17:20:27]line > о реализуемом товаре [17:20:27]line ОКРУГЛЕНИЕ: -0.40 [17:20:27]line ИТОГО: 1202.00 [17:20:27]line Внесено: 1202.00 [17:20:27]line СДАЧА: 0.00 [17:20:27]line НСП 1% : 10.64 [17:20:27]line НДС 12% : 127.69 [17:20:27]line Наличными: 1202.00 [17:20:27]line Безнал.: 0.00 [17:20:27]line Место: АЗС № 91 "Партнер Нефть" [17:20:27]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:20:27]line СНО: Общий режим [17:20:27]line Чек 105 17.05.2024 17:20 [17:20:27]line Смена: 358 ФФД: 1.0 [17:20:27]line ЗНМ: 0300000119 [17:20:27]line РНМ: 0000000000091845 [17:20:27]line Версия ККМ: 001 [17:20:27]line ФМ: 0000000000871829 [17:20:27]line ФД: 67696 [17:20:27]line ФПД: 177844036853227 [17:20:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T172026&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67696&fm=177844036853227&tin=02508201610067®Number=0000000000091845&sum=120200 [17:20:27]OFD Sender: Processing packet 67696 [packets to send 35, broken 34] [17:20:27]ProducePacketName [17:20:27]name=ofd_packets/00067696 [17:20:27]OFD Sender: To server: pG, [17:20:27]CommunicateWithHost lk.salyk.kg:30040 [17:20:27]ConnectInit lk.salyk.kg [17:20:27]written 0, free lines is 4095 [17:20:27]Connected sock=10 [17:20:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 F4 95 07 01 9A 35 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 50 46 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 B0 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 D5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 31 00 00 00 00 07 04 06 00 88 D5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 DA 91 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 70 08 01 00 35 04 06 00 A1 BF 8A A4 5D EB DD DD CE 73 9A D4 66 3A [17:20: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 EA 78 47 00 93 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 70 08 01 00 F4 03 04 00 B2 39 47 66 B6 04 01 00 00 5E 7F 8A E4 C4 49 04 E9 [17:20:27]CommunicateWithHost err = 0 [17:20:27]CheckOFDResponse [17:20:27]1017 (14) - 77093643461234 [17:20:27]1041 (16) - 0000000000871829 [17:20:27]1040 (4) - 67696 [17:20:27]1012 (4) - 17.05.2024 11:04 [17:20:27]1206 (1) - 0 [17:20:27]OFD Sender: Remove packet 67696 [17:20:27]ProducePacketName [17:20:27]name=ofd_packets/00067696 [17:20:27]NVStorageDeleteData [17:20:28]Write to MH i2c: 01 00 00 74 05 79 [17:20:28]Write i2c OK [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: 01 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: 01 07 00 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: 01 07 00 74 05 00 00 00 00 00 CD 0C 59 [17:20:28]RasterBufferAndPrint [17:20:28]line [17:20:28]line [17:20:28]line [17:20:28]line [17:20:28]line [17:20:28]written 0, free lines is 3283 [17:20:28]MH_Cut [17:20:28]Write to MH i2c: D1 01 00 7B 05 01 52 [17:20:28]Write i2c OK [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: D1 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: D1 01 00 [17:20:28]MH_I2C_Read... [17:20:28]Read from MH i2c: D1 01 00 7B 05 00 51 [17:20:28]Write to MH i2c: 01 00 00 7C 05 81 [17:20:28]Write i2c OK [17:20:28]MH_I2C_Read... [17:20:28]OFD Sender: No OFD packet to send [17:20:28]*** Cut start [17:20:28]*** Purtial cut [17:20:28]*** Stage 1: CUTSNS_PIN = 1 [17:20:29]Read from MH i2c: 01 [17:20:29]MH_I2C_Read... [17:20:29]*** Stop cut motor [17:20:29]*** Cut end [17:20:29]Read from MH i2c: 01 07 00 [17:20:29]MH_I2C_Read... [17:20:29]Read from MH i2c: 01 07 00 7C 05 00 00 00 00 00 FF 0F 96 [17:20:29]process_action close_receipt done [17:20:29]requested_data is exist [17:20:29]produce_requested_data [17:20:29]requested_item fm.sn is exist - process it [17:20:29]wFMCommunicate request_size=4 [17:20:29]MH_SAM_APDU [17:20:29]CAPDU: 80 11 00 00 [17:20:29]Write to MH i2c: E2 08 00 7D 05 80 11 00 00 00 00 00 00 FC [17:20:29]Write i2c OK [17:20:29]MH_I2C_Read... [17:20:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:29]Read from MH i2c: E2 [17:20:29]MH_I2C_Read... [17:20:29]Read from MH i2c: E2 17 00 [17:20:29]MH_I2C_Read... [17:20:29]Read from MH i2c: E2 17 00 7D 05 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:20:29]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:29]wFMCommunicate OK [17:20:29]requested_item fd.num is exist - process it [17:20:29]SAM_PROTO_GetFieldsCounters [17:20:29]wFMCommunicate request_size=4 [17:20:29]MH_SAM_APDU [17:20:29]CAPDU: 80 13 00 00 [17:20:29]Write to MH i2c: E2 08 00 7E 05 80 13 00 00 00 00 00 00 FF [17:20:29]Write i2c OK [17:20:29]MH_I2C_Read... [17:20:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:29]Read from MH i2c: E2 [17:20:29]MH_I2C_Read... [17:20:29]Read from MH i2c: E2 62 00 [17:20:29]MH_I2C_Read... [17:20:29]Read from MH i2c: E2 62 00 7E 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 70 08 01 00 0E 04 04 00 66 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 40 [17:20: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 70 08 01 00 0E 04 04 00 66 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 [17:20:29]wFMCommunicate OK [17:20:29]SAM_PROTO_GetFieldsCounters done [17:20:29]requested_item shift.num is exist - process it [17:20:29]requested_item shift.opened is exist - process it [17:20:29]req_shift_opened [17:20:29]FM_GetShiftState [17:20:29]SAM_PROTO_GetShiftState [17:20:29]wFMCommunicate request_size=4 [17:20:29]MH_SAM_APDU [17:20:29]CAPDU: 80 13 01 00 [17:20:29]Write to MH i2c: E2 08 00 7F 05 80 13 01 00 00 00 00 00 01 [17:20:29]Write i2c OK [17:20:29]MH_I2C_Read... [17:20:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:29]Read from MH i2c: E2 [17:20:29]MH_I2C_Read... [17:20:29]Read from MH i2c: E2 0E 00 [17:20:29]MH_I2C_Read... [17:20:29]Read from MH i2c: E2 0E 00 7F 05 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 87 [17:20:29]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:20:29]wFMCommunicate OK [17:20:29]SAM_PROTO_GetShiftState done [17:20:29]FM_GetShiftState done [17:20:29]req_shift_opened done [17:20:29]requested_item shift.open_date is exist - process it [17:20:29]req_shift_open_date [17:20:29]req_shift_open_date done [17:20:29]produce_requested_data done [17:20:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67696,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [17:20:29]process_action_free close_receipt [17:20:29]json_value_free [17:20:29]json_value_free done [17:20:29]process_json_proto returns [17:20:29]Send response to host [17:20:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67696,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [17:20:29]free response buf [17:20:29]execute_script done [17:20:29]execute_script returns [17:20:29]free content buf [17:20:29]Sock 9.Close socket [17:20:29]Sock 9.Thread stoped [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:48]OFD Sender: No OFD packet to send [17:20:53]OFD Sender: No OFD packet to send [17:20:58]OFD Sender: No OFD packet to send [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21:13]OFD Sender: No OFD packet to send [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:43]OFD Sender: No OFD packet to send [17:21:48]OFD Sender: No OFD packet to send [17:21:53]OFD Sender: No OFD packet to send [17:21:58]OFD Sender: No OFD packet to send [17:22:03]OFD Sender: No OFD packet to send [17:22:08]OFD Sender: No OFD packet to send [17:22:13]OFD Sender: No OFD packet to send [17:22:18]OFD Sender: No OFD packet to send [17:22:23]OFD Sender: No OFD packet to send [17:22:28]OFD Sender: No OFD packet to send [17:22:33]OFD Sender: No OFD packet to send [17:22:38]OFD Sender: No OFD packet to send [17:22:43]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:58]OFD Sender: No OFD packet to send [17:23:03]OFD Sender: No OFD packet to send [17:23:08]OFD Sender: No OFD packet to send [17:23:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:33]OFD Sender: No OFD packet to send [17:23:38]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:38]OFD Sender: No OFD packet to send [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26:53]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:09]accept exits with 7 [17:30:09]New connection [17:30:09]New thread 3066608996 created [17:30:09]Thread 3066752356 joined [17:30:09]Waiting for new connection... [17:30:09] Sock 7.Parse request [17:30:09]Sock 7.Check first char [17:30:09]Sock 7.First char is OK [17:30:09]request: POST /json_proto HTTP/1.0 [17:30:09]Method: POST [17:30:09]URL: /json_proto [17:30:09]Method is POST - this is cgi request [17:30:09]url: /json_proto [17:30:09]query_string will be loaded in cgi processing [17:30:09]execute_cgi json_proto POST (null) [17:30:09]execute_cgi path=json_proto method=POST [17:30:09]POST find Content-Length [17:30:09]Host: 172.17.41.195:8080 [17:30:09]Content-Length: 670 [17:30:09]Content-Type: application/json [17:30:09] [17:30:09]POST finish read [17:30:09]Found Content-Length = 670 [17:30:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507850", "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" : 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" ] } } [17:30:09]execute_script... [17:30: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)507850", "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" : 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" ] } } [17:30:09]POST & json_proto [17:30:09]process_json_proto [17:30:09]json parsed OK: [17:30:09]protocol is kg_v1.0 [17:30:09]action value=close_receipt [17:30:09]process_action close_receipt [17:30:09]cmd_close_receipt [17:30:09]MH_GetDate [17:30:09]Write to MH i2c: F0 00 00 80 05 74 [17:30:09]Write i2c OK [17:30:09]MH_I2C_Read... [17:30:09]Read from MH i2c: F0 [17:30:09]MH_I2C_Read... [17:30:09]Read from MH i2c: F0 09 00 [17:30:09]MH_I2C_Read... [17:30:09]Read from MH i2c: F0 09 00 80 05 00 22 94 47 66 FC 21 6F 64 D0 [17:30:09]GetLastDocTimeStamp 1715966426 [17:30:09]current date 1715967010 [17:30:09]FM_GetShiftState [17:30:09]SAM_PROTO_GetShiftState [17:30:09]wFMCommunicate request_size=4 [17:30:09]MH_SAM_APDU [17:30:09]CAPDU: 80 13 01 00 [17:30:09]Write to MH i2c: E2 08 00 81 05 80 13 01 00 00 00 00 00 03 [17:30:09]Write i2c OK [17:30:09]MH_I2C_Read... [17:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:09]Read from MH i2c: E2 [17:30:09]MH_I2C_Read... [17:30:09]Read from MH i2c: E2 0E 00 [17:30:09]MH_I2C_Read... [17:30:09]Read from MH i2c: E2 0E 00 81 05 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 89 [17:30:09]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:30:09]wFMCommunicate OK [17:30:09]SAM_PROTO_GetShiftState done [17:30:09]FM_GetShiftState done [17:30:09]opened in 1715905068 [17:30:09]opened+sec_in_day 1715991468 [17:30:09]quantity*price = 60003 [17:30:09]sum+1 = 60004 [17:30:09]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 СНО: Общий режим Чек 106 17.05.2024 17:30 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67697 ФПД: 174485113493673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T173010&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67697&fm=174485113493673&tin=02508201610067®Number=0000000000091845&sum=60000 [17:30:10]StoreToDocumentArchive [17:30:10]shift 358 fd 67697 [17:30:10]save to /storage/0358/doc_00067697 [17:30:10]save last doc name /storage/0358/doc_00067697 to /storage/kkm_last_doc_name [17:30:10]save OK [17:30:10]Clear old archive folders... [17:30:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:30:10]tlvbuf is 01B48A30 [17:30:10]SAM_PROTO_ClearQueue [17:30:10]wFMCommunicate request_size=4 [17:30:10]MH_SAM_APDU [17:30:10]CAPDU: 80 09 00 00 [17:30:10]Write to MH i2c: E2 08 00 8E 05 80 09 00 00 00 00 00 00 05 [17:30:10]Write i2c OK [17:30:10]MH_I2C_Read... [17:30:10]Read from MH i2c: E2 [17:30:10]MH_I2C_Read... [17:30:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:10]Read from MH i2c: E2 03 00 [17:30:10]MH_I2C_Read... [17:30:10]Read from MH i2c: E2 03 00 8E 05 00 90 00 07 [17:30:10]RAPDU: 90 00 [17:30:10]wFMCommunicate OK [17:30:10]SAM_PROTO_ClearQueue done [17:30:10]KKMCreateOFDPacket [17:30:10]OFDProtocolAddRootSTLVToBuf [17:30:10]FM_MakeSignedData [17:30:10]FM_MakeSignedData [17:30:10]SAM_PROTO_SignData [17:30:10]wFMCommunicate request_size=4 [17:30:10]MH_SAM_APDU [17:30:10]CAPDU: 80 0D 01 02 [17:30:10]Write to MH i2c: E2 08 00 8F 05 80 0D 01 02 00 00 00 00 0D [17:30:10]Write i2c OK [17:30:10]MH_I2C_Read... [17:30:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:10]Read from MH i2c: E2 [17:30:10]MH_I2C_Read... [17:30:10]Read from MH i2c: E2 03 00 [17:30:10]MH_I2C_Read... [17:30:10]Read from MH i2c: E2 03 00 8F 05 00 90 00 08 [17:30:10]RAPDU: 90 00 [17:30:10]wFMCommunicate OK [17:30:10]wFMCommunicate request_size=255 [17:30:10]MH_SAM_APDU [17:30: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 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 6A 00 00 00 F4 03 04 00 22 94 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 71 08 01 00 35 04 06 00 [17:30:10]Write to MH i2c: E2 02 01 90 05 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 6A 00 00 00 F4 03 04 00 22 94 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 71 08 01 00 35 04 06 00 00 00 30 [17:30:10]Write i2c OK [17:30:10]MH_I2C_Read... [17:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:10]Read from MH i2c: E2 [17:30:10]MH_I2C_Read... [17:30:10]Read from MH i2c: E2 03 00 [17:30:10]MH_I2C_Read... [17:30:10]Read from MH i2c: E2 03 00 90 05 00 90 00 09 [17:30:10]RAPDU: 90 00 [17:30:10]wFMCommunicate OK [17:30:10]wFMCommunicate request_size=11 [17:30:10]MH_SAM_APDU [17:30:10]CAPDU: 80 0D 02 02 06 9E B1 7B 35 58 A9 [17:30:10]Write to MH i2c: E2 0E 00 91 05 80 0D 02 02 06 00 9E B1 7B 35 58 A9 00 00 1C [17:30:10]Write i2c OK [17:30:10]MH_I2C_Read... [17:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:10]Read from MH i2c: E2 [17:30:10]MH_I2C_Read... [17:30:10]Read from MH i2c: E2 03 00 [17:30:10]MH_I2C_Read... [17:30:10]Read from MH i2c: E2 03 00 91 05 00 90 00 0A [17:30:10]RAPDU: 90 00 [17:30:10]wFMCommunicate OK [17:30:10]wFMCommunicate request_size=4 [17:30:10]MH_SAM_APDU [17:30:10]CAPDU: 80 0D 03 02 [17:30:10]Write to MH i2c: E2 08 00 92 05 80 0D 03 02 00 00 00 00 12 [17:30:10]Write i2c OK [17:30:10]MH_I2C_Read... [17:30:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:11]Read from MH i2c: E2 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: E2 0B 00 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: E2 0B 00 92 05 00 AA FE EC B6 B9 13 0F B3 90 00 EB [17:30:11]RAPDU: AA FE EC B6 B9 13 0F B3 90 00 [17:30:11]wFMCommunicate OK [17:30:11]SAM_PROTO_SignData done [17:30:11]FM_MakeSignedData done [17:30:11]CreateOFDProtocolMessage [17:30:11]wFMCommunicate request_size=4 [17:30:11]MH_SAM_APDU [17:30:11]CAPDU: 80 11 00 00 [17:30:11]Write to MH i2c: E2 08 00 93 05 80 11 00 00 00 00 00 00 12 [17:30:11]Write i2c OK [17:30:11]MH_I2C_Read... [17:30:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:11]Read from MH i2c: E2 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: E2 17 00 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: E2 17 00 93 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 68 [17:30:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:30:11]wFMCommunicate OK [17:30:11]CreateOFDProtocolMessage done [17:30:11]OFDSenderStorePacket 67697 [17:30:11]StoreOFDPacket docnum=67697 [17:30:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 8D 33 08 01 1D 82 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6A 00 00 00 F4 03 04 00 22 94 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 71 08 01 00 35 04 06 00 9E B1 7B 35 58 A9 AA FE EC B6 B9 13 0F B3 [17:30:11]CheckFolder [17:30:11]dirname=/storage/ofd_packets [17:30:11]CheckFolder done [17:30:11]ProducePacketName [17:30:11]name=ofd_packets/00067697 [17:30:11]NVStorageSaveData ofd_packets/00067697 [17:30:11]File name is /storage/ofd_packets/00067697 [17:30:11]Write 302 bytes [17:30:11]NVStorageSaveData done [17:30:11]OFDSenderStorePacket done [17:30:11]KKMCreateOFDPacket done [17:30:11]NVStorageSaveData kkm_last_timestamp [17:30:11]File name is /storage/kkm_last_timestamp [17:30:11]Write 4 bytes [17:30:11]NVStorageSaveData done [17:30:11]ExternCall_PrintAddStr [17:30:11]wPrintStart [17:30:11]Write to MH i2c: 01 00 00 94 05 99 [17:30:11]Write i2c OK [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: 01 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: 01 07 00 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: 01 07 00 94 05 00 00 00 00 00 FF 0F AE [17:30:11]RasterBufferAndPrint [17:30:11]line Счет N : (1)507850 [17:30:11]line ИНН: 02508201610067 [17:30:11]line Контрольно-Кассовый Чек [17:30:11]line ПРОДАЖА [17:30:11]line ТРК (МРК, ГНК) : 42 [17:30:11]line Товар: 2710124130 [17:30:11]line Super-92-К-5 [17:30:11]line 8.850 * 67.80 [17:30:11]line = 600.03 [17:30:11]line НДС 12% НСП 1% [17:30:11]line > о реализуемом товаре [17:30:11]line ОКРУГЛЕНИЕ: -0.03 [17:30:11]line ИТОГО: 600.00 [17:30:11]line Внесено: 600.00 [17:30:11]line СДАЧА: 0.00 [17:30:11]line НСП 1% : 5.31 [17:30:11]line НДС 12% : 63.72 [17:30:11]line Наличными: 600.00 [17:30:11]line Безнал.: 0.00 [17:30:11]line Место: АЗС № 91 "Партнер Нефть" [17:30:11]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:30:11]line СНО: Общий режим [17:30:11]line Чек 106 17.05.2024 17:30 [17:30:11]line Смена: 358 ФФД: 1.0 [17:30:11]line ЗНМ: 0300000119 [17:30:11]line РНМ: 0000000000091845 [17:30:11]line Версия ККМ: 001 [17:30:11]line ФМ: 0000000000871829 [17:30:11]line ФД: 67697 [17:30:11]line ФПД: 174485113493673 [17:30:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T173010&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67697&fm=174485113493673&tin=02508201610067®Number=0000000000091845&sum=60000 [17:30:11]OFD Sender: Processing packet 67697 [packets to send 35, broken 34] [17:30:11]ProducePacketName [17:30:11]name=ofd_packets/00067697 [17:30:11]OFD Sender: To server: pG, [17:30:11]CommunicateWithHost lk.salyk.kg:30040 [17:30:11]ConnectInit lk.salyk.kg [17:30:11]written 0, free lines is 4095 [17:30:11]Connected sock=10 [17:30: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 8D 33 08 01 1D 82 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6A 00 00 00 F4 03 04 00 22 94 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 71 08 01 00 35 04 06 00 9E B1 7B 35 58 A9 AA FE EC B6 B9 13 0F B3 [17:30: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 E2 8F 47 00 C9 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 71 08 01 00 F4 03 04 00 FA 3B 47 66 B6 04 01 00 00 C5 7D BE 19 6E C2 28 32 [17:30:11]CommunicateWithHost err = 0 [17:30:11]CheckOFDResponse [17:30:11]1017 (14) - 77093643461234 [17:30:11]1041 (16) - 0000000000871829 [17:30:11]1040 (4) - 67697 [17:30:11]1012 (4) - 17.05.2024 11:14 [17:30:11]1206 (1) - 0 [17:30:11]OFD Sender: Remove packet 67697 [17:30:11]ProducePacketName [17:30:11]name=ofd_packets/00067697 [17:30:11]NVStorageDeleteData [17:30:11]Write to MH i2c: 01 00 00 BE 05 C3 [17:30:11]Write i2c OK [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: 01 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: 01 07 00 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: 01 07 00 BE 05 00 00 00 00 00 C6 0C 9C [17:30:11]RasterBufferAndPrint [17:30:11]line [17:30:11]line [17:30:11]line [17:30:11]line [17:30:11]line [17:30:11]written 0, free lines is 3275 [17:30:11]MH_Cut [17:30:11]Write to MH i2c: D1 01 00 C5 05 01 9C [17:30:11]Write i2c OK [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: D1 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: D1 01 00 [17:30:11]MH_I2C_Read... [17:30:11]Read from MH i2c: D1 01 00 C5 05 00 9B [17:30:11]Write to MH i2c: 01 00 00 C6 05 CB [17:30:11]Write i2c OK [17:30:11]MH_I2C_Read... [17:30:12]OFD Sender: No OFD packet to send [17:30:12]*** Cut start [17:30:12]*** Purtial cut [17:30:12]*** CUTSNS_PIN = 0 [17:30:12]*** Stage 1: CUTSNS_PIN = 1 [17:30:14]Read from MH i2c: 01 [17:30:14]MH_I2C_Read... [17:30:14]*** Stop cut motor [17:30:14]*** Cut end [17:30:14]Read from MH i2c: 01 07 00 [17:30:14]MH_I2C_Read... [17:30:14]Read from MH i2c: 01 07 00 C6 05 00 00 00 00 00 FF 0F E0 [17:30:14]process_action close_receipt done [17:30:14]requested_data is exist [17:30:14]produce_requested_data [17:30:14]requested_item fm.sn is exist - process it [17:30:14]wFMCommunicate request_size=4 [17:30:14]MH_SAM_APDU [17:30:14]CAPDU: 80 11 00 00 [17:30:14]Write to MH i2c: E2 08 00 C7 05 80 11 00 00 00 00 00 00 46 [17:30:14]Write i2c OK [17:30:14]MH_I2C_Read... [17:30:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:14]Read from MH i2c: E2 [17:30:14]MH_I2C_Read... [17:30:14]Read from MH i2c: E2 17 00 [17:30:14]MH_I2C_Read... [17:30:14]Read from MH i2c: E2 17 00 C7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9C [17:30:14]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:14]wFMCommunicate OK [17:30:14]requested_item fd.num is exist - process it [17:30:14]SAM_PROTO_GetFieldsCounters [17:30:14]wFMCommunicate request_size=4 [17:30:14]MH_SAM_APDU [17:30:14]CAPDU: 80 13 00 00 [17:30:14]Write to MH i2c: E2 08 00 C8 05 80 13 00 00 00 00 00 00 49 [17:30:14]Write i2c OK [17:30:14]MH_I2C_Read... [17:30:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:14]Read from MH i2c: E2 [17:30:14]MH_I2C_Read... [17:30:14]Read from MH i2c: E2 62 00 [17:30:14]MH_I2C_Read... [17:30:14]Read from MH i2c: E2 62 00 C8 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 71 08 01 00 0E 04 04 00 66 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 8E [17:30: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 71 08 01 00 0E 04 04 00 66 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 [17:30:14]wFMCommunicate OK [17:30:14]SAM_PROTO_GetFieldsCounters done [17:30:14]requested_item shift.num is exist - process it [17:30:14]requested_item shift.opened is exist - process it [17:30:14]req_shift_opened [17:30:14]FM_GetShiftState [17:30:14]SAM_PROTO_GetShiftState [17:30:14]wFMCommunicate request_size=4 [17:30:14]MH_SAM_APDU [17:30:14]CAPDU: 80 13 01 00 [17:30:14]Write to MH i2c: E2 08 00 C9 05 80 13 01 00 00 00 00 00 4B [17:30:14]Write i2c OK [17:30:14]MH_I2C_Read... [17:30:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:14]Read from MH i2c: E2 [17:30:14]MH_I2C_Read... [17:30:14]Read from MH i2c: E2 0E 00 [17:30:14]MH_I2C_Read... [17:30:14]Read from MH i2c: E2 0E 00 C9 05 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 D1 [17:30:14]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:30:14]wFMCommunicate OK [17:30:14]SAM_PROTO_GetShiftState done [17:30:14]FM_GetShiftState done [17:30:14]req_shift_opened done [17:30:14]requested_item shift.open_date is exist - process it [17:30:14]req_shift_open_date [17:30:14]req_shift_open_date done [17:30:14]produce_requested_data done [17:30:14]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67697,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [17:30:14]process_action_free close_receipt [17:30:14]json_value_free [17:30:14]json_value_free done [17:30:14]process_json_proto returns [17:30:14]Send response to host [17:30:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67697,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [17:30:14]free response buf [17:30:14]execute_script done [17:30:14]execute_script returns [17:30:14]free content buf [17:30:14]Sock 7.Close socket [17:30:14]Sock 7.Thread stoped [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:42]OFD Sender: No OFD packet to send [17:30:47]OFD Sender: No OFD packet to send [17:30:52]OFD Sender: No OFD packet to send [17:30:57]OFD Sender: No OFD packet to send [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:15]accept exits with 9 [17:32:15]New connection [17:32:15]New thread 3066752356 created [17:32:15]Thread 3066608996 joined [17:32:15]Waiting for new connection... [17:32:15] Sock 9.Parse request [17:32:15]Sock 9.Check first char [17:32:15]Sock 9.First char is OK [17:32:15]request: POST /json_proto HTTP/1.0 [17:32:15]Method: POST [17:32:15]URL: /json_proto [17:32:15]Method is POST - this is cgi request [17:32:15]url: /json_proto [17:32:15]query_string will be loaded in cgi processing [17:32:15]execute_cgi json_proto POST (null) [17:32:15]execute_cgi path=json_proto method=POST [17:32:15]POST find Content-Length [17:32:15]Host: 172.17.41.195:8080 [17:32:15]Content-Length: 803 [17:32:15]Content-Type: application/json [17:32:15] [17:32:15]POST finish read [17:32:15]Found Content-Length = 803 [17:32:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:15]execute_script... [17:32: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)507851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:15]POST & json_proto [17:32:15]process_json_proto [17:32:15]json parsed OK: [17:32:15]protocol is kg_v1.0 [17:32:15]action value=close_receipt [17:32:15]process_action close_receipt [17:32:15]cmd_close_receipt [17:32:15]MH_GetDate [17:32:15]Write to MH i2c: F0 00 00 CA 05 BE [17:32:15]Write i2c OK [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: F0 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: F0 09 00 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: F0 09 00 CA 05 00 A0 94 47 66 FC 21 6F 64 98 [17:32:15]GetLastDocTimeStamp 1715967010 [17:32:15]current date 1715967136 [17:32:15]FM_GetShiftState [17:32:15]SAM_PROTO_GetShiftState [17:32:15]wFMCommunicate request_size=4 [17:32:15]MH_SAM_APDU [17:32:15]CAPDU: 80 13 01 00 [17:32:15]Write to MH i2c: E2 08 00 CB 05 80 13 01 00 00 00 00 00 4D [17:32:15]Write i2c OK [17:32:15]MH_I2C_Read... [17:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:15]Read from MH i2c: E2 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 0E 00 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 0E 00 CB 05 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 D3 [17:32:15]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:32:15]wFMCommunicate OK [17:32:15]SAM_PROTO_GetShiftState done [17:32:15]FM_GetShiftState done [17:32:15]opened in 1715905068 [17:32:15]opened+sec_in_day 1715991468 [17:32:15]quantity*price = 100066 [17:32:15]sum+1 = 100067 [17:32: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 СНО: Общий режим Чек 107 17.05.2024 17:32 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67698 ФПД: 68658874010235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T173216&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67698&fm=68658874010235&tin=02508201610067®Number=0000000000091845&sum=100066 [17:32:16]StoreToDocumentArchive [17:32:16]shift 358 fd 67698 [17:32:16]save to /storage/0358/doc_00067698 [17:32:16]save last doc name /storage/0358/doc_00067698 to /storage/kkm_last_doc_name [17:32:16]save OK [17:32:16]Clear old archive folders... [17:32:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:16]tlvbuf is 01AE2C70 [17:32:16]SAM_PROTO_ClearQueue [17:32:16]wFMCommunicate request_size=4 [17:32:16]MH_SAM_APDU [17:32:16]CAPDU: 80 09 00 00 [17:32:16]Write to MH i2c: E2 08 00 D8 05 80 09 00 00 00 00 00 00 4F [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 [17:32:16]MH_I2C_Read... [17:32:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:16]Read from MH i2c: E2 03 00 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 03 00 D8 05 00 90 00 51 [17:32:16]RAPDU: 90 00 [17:32:16]wFMCommunicate OK [17:32:16]SAM_PROTO_ClearQueue done [17:32:16]KKMCreateOFDPacket [17:32:16]OFDProtocolAddRootSTLVToBuf [17:32:16]FM_MakeSignedData [17:32:16]FM_MakeSignedData [17:32:16]SAM_PROTO_SignData [17:32:16]wFMCommunicate request_size=4 [17:32:16]MH_SAM_APDU [17:32:16]CAPDU: 80 0D 01 02 [17:32:16]Write to MH i2c: E2 08 00 D9 05 80 0D 01 02 00 00 00 00 57 [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:16]Read from MH i2c: E2 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 03 00 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 03 00 D9 05 00 90 00 52 [17:32:16]RAPDU: 90 00 [17:32:16]wFMCommunicate OK [17:32:16]wFMCommunicate request_size=255 [17:32:16]MH_SAM_APDU [17:32: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 6B 00 00 00 F4 03 04 00 A0 94 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 72 08 01 00 35 04 06 00 3E [17:32:16]Write to MH i2c: E2 02 01 DA 05 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 A0 94 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 72 08 01 00 35 04 06 00 3E 00 00 20 [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:16]Read from MH i2c: E2 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 03 00 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 03 00 DA 05 00 90 00 53 [17:32:16]RAPDU: 90 00 [17:32:16]wFMCommunicate OK [17:32:16]wFMCommunicate request_size=10 [17:32:16]MH_SAM_APDU [17:32:16]CAPDU: 80 0D 02 02 05 71 E3 CB CA 7B [17:32:16]Write to MH i2c: E2 0D 00 DB 05 80 0D 02 02 05 00 71 E3 CB CA 7B 00 00 C8 [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:16]Read from MH i2c: E2 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 03 00 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 03 00 DB 05 00 90 00 54 [17:32:16]RAPDU: 90 00 [17:32:16]wFMCommunicate OK [17:32:16]wFMCommunicate request_size=4 [17:32:16]MH_SAM_APDU [17:32:16]CAPDU: 80 0D 03 02 [17:32:16]Write to MH i2c: E2 08 00 DC 05 80 0D 03 02 00 00 00 00 5C [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:17]Read from MH i2c: E2 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 0B 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 0B 00 DC 05 00 70 11 58 23 72 76 DB 6C 90 00 88 [17:32:17]RAPDU: 70 11 58 23 72 76 DB 6C 90 00 [17:32:17]wFMCommunicate OK [17:32:17]SAM_PROTO_SignData done [17:32:17]FM_MakeSignedData done [17:32:17]CreateOFDProtocolMessage [17:32:17]wFMCommunicate request_size=4 [17:32:17]MH_SAM_APDU [17:32:17]CAPDU: 80 11 00 00 [17:32:17]Write to MH i2c: E2 08 00 DD 05 80 11 00 00 00 00 00 00 5C [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:17]Read from MH i2c: E2 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 17 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 17 00 DD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B2 [17: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 [17:32:17]wFMCommunicate OK [17:32:17]CreateOFDProtocolMessage done [17:32:17]OFDSenderStorePacket 67698 [17:32:17]StoreOFDPacket docnum=67698 [17: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 A0 0E 07 01 AB 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 6B 00 00 00 F4 03 04 00 A0 94 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 72 08 01 00 35 04 06 00 3E 71 E3 CB CA 7B 70 11 58 23 72 76 DB 6C [17:32:17]CheckFolder [17:32:17]dirname=/storage/ofd_packets [17:32:17]CheckFolder done [17:32:17]ProducePacketName [17:32:17]name=ofd_packets/00067698 [17:32:17]NVStorageSaveData ofd_packets/00067698 [17:32:17]File name is /storage/ofd_packets/00067698 [17:32:17]Write 301 bytes [17:32:17]NVStorageSaveData done [17:32:17]OFDSenderStorePacket done [17:32:17]KKMCreateOFDPacket done [17:32:17]NVStorageSaveData kkm_last_timestamp [17:32:17]File name is /storage/kkm_last_timestamp [17:32:17]Write 4 bytes [17:32:17]NVStorageSaveData done [17:32:17]ExternCall_PrintAddStr [17:32:17]wPrintStart [17:32:17]Write to MH i2c: 01 00 00 DE 05 E3 [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 07 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 07 00 DE 05 00 00 00 00 00 FF 0F F8 [17:32:17]RasterBufferAndPrint [17:32:17]line Счет N : (1)507851 [17:32:17]line ИНН: 02508201610067 [17:32:17]line Контрольно-Кассовый Чек [17:32:17]line ПРОДАЖА [17:32:17]line ТРК (МРК, ГНК) : 23 [17:32:17]line Товар: 2710124130 [17:32:17]line Аи-92-К-5 [17:32:17]line 14.980 * 66.80 [17:32:17]line = 1000.66 [17:32:17]line НДС 12% НСП 1% [17:32:17]line > о реализуемом товаре [17:32:17]line ИТОГО: 1000.66 [17:32:17]line НСП 1% : 8.85 [17:32:17]line НДС 12% : 106.26 [17:32:17]line Наличными: 0.00 [17:32:17]line Безнал.: 1000.66 [17:32:17]line Место: АЗС № 91 "Партнер Нефть" [17:32:17]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:32:17]line СНО: Общий режим [17:32:17]line Чек 107 17.05.2024 17:32 [17:32:17]line Смена: 358 ФФД: 1.0 [17:32:17]line ЗНМ: 0300000119 [17:32:17]line РНМ: 0000000000091845 [17:32:17]line Версия ККМ: 001 [17:32:17]line Платежная система: O! деньги [17:32:17]line ФМ: 0000000000871829 [17:32:17]line ФД: 67698 [17:32:17]line ФПД: 68658874010235 [17:32:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T173216&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67698&fm=68658874010235&tin=02508201610067®Number=0000000000091845&sum=100066 [17:32:17]OFD Sender: Processing packet 67698 [packets to send 35, broken 34] [17:32:17]ProducePacketName [17:32:17]name=ofd_packets/00067698 [17:32:17]OFD Sender: To server: pG, [17:32:17]CommunicateWithHost lk.salyk.kg:30040 [17:32:17]ConnectInit lk.salyk.kg [17:32:17]written 0, free lines is 4095 [17:32:17]Connected sock=10 [17:32: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 A0 0E 07 01 AB 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 6B 00 00 00 F4 03 04 00 A0 94 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 72 08 01 00 35 04 06 00 3E 71 E3 CB CA 7B 70 11 58 23 72 76 DB 6C [17:32: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 4C B2 47 00 7D 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 72 08 01 00 F4 03 04 00 78 3C 47 66 B6 04 01 00 00 48 48 B6 64 F9 6A 1D 37 [17:32:17]CommunicateWithHost err = 0 [17:32:17]CheckOFDResponse [17:32:17]1017 (14) - 77093643461234 [17:32:17]1041 (16) - 0000000000871829 [17:32:17]1040 (4) - 67698 [17:32:17]1012 (4) - 17.05.2024 11:16 [17:32:17]1206 (1) - 0 [17:32:17]OFD Sender: Remove packet 67698 [17:32:17]ProducePacketName [17:32:17]name=ofd_packets/00067698 [17:32:17]NVStorageDeleteData [17:32:17]Write to MH i2c: 01 00 00 07 06 0D [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 07 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 07 00 07 06 00 00 00 00 00 DE 0C FE [17:32:17]RasterBufferAndPrint [17:32:17]line [17:32:17]line [17:32:17]line [17:32:17]line [17:32:17]line [17:32:17]written 0, free lines is 3300 [17:32:17]MH_Cut [17:32:17]Write to MH i2c: D1 01 00 0E 06 01 E6 [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: D1 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: D1 01 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: D1 01 00 0E 06 00 E5 [17:32:17]Write to MH i2c: 01 00 00 0F 06 15 [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:18]OFD Sender: No OFD packet to send [17:32:18]*** Cut start [17:32:18]*** Purtial cut [17:32:18]*** Stage 1: CUTSNS_PIN = 1 [17:32:18]Read from MH i2c: 01 [17:32:18]MH_I2C_Read... [17:32:18]*** Stop cut motor [17:32:18]*** Cut end [17:32:18]Read from MH i2c: 01 07 00 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: 01 07 00 0F 06 00 00 00 00 00 FF 0F 2A [17:32:18]process_action close_receipt done [17:32:18]requested_data is exist [17:32:18]produce_requested_data [17:32:18]requested_item fm.sn is exist - process it [17:32:18]wFMCommunicate request_size=4 [17:32:18]MH_SAM_APDU [17:32:18]CAPDU: 80 11 00 00 [17:32:18]Write to MH i2c: E2 08 00 10 06 80 11 00 00 00 00 00 00 90 [17:32:18]Write i2c OK [17:32:18]MH_I2C_Read... [17:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:19]Read from MH i2c: E2 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 17 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 17 00 10 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E6 [17: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 [17:32:19]wFMCommunicate OK [17:32:19]requested_item fd.num is exist - process it [17:32:19]SAM_PROTO_GetFieldsCounters [17:32:19]wFMCommunicate request_size=4 [17:32:19]MH_SAM_APDU [17:32:19]CAPDU: 80 13 00 00 [17:32:19]Write to MH i2c: E2 08 00 11 06 80 13 00 00 00 00 00 00 93 [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:19]Read from MH i2c: E2 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 62 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 62 00 11 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 72 08 01 00 0E 04 04 00 66 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 DC [17:32: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 72 08 01 00 0E 04 04 00 66 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 [17:32:19]wFMCommunicate OK [17:32:19]SAM_PROTO_GetFieldsCounters done [17:32:19]requested_item shift.num is exist - process it [17:32:19]requested_item shift.opened is exist - process it [17:32:19]req_shift_opened [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 12 06 80 13 01 00 00 00 00 00 95 [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 12 06 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 1B [17:32:19]RAPDU: 09 00 01 2C A2 46 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]req_shift_opened done [17:32:19]requested_item shift.open_date is exist - process it [17:32:19]req_shift_open_date [17:32:19]req_shift_open_date done [17:32:19]produce_requested_data done [17:32:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67698,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [17:32:19]process_action_free close_receipt [17:32:19]json_value_free [17:32:19]json_value_free done [17:32:19]process_json_proto returns [17:32:19]Send response to host [17:32:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67698,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [17:32:19]free response buf [17:32:19]execute_script done [17:32:19]execute_script returns [17:32:19]free content buf [17:32:19]Sock 9.Close socket [17:32:19]Sock 9.Thread stoped [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:48]OFD Sender: No OFD packet to send [17:32:53]OFD Sender: No OFD packet to send [17:32:58]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:08]OFD Sender: No OFD packet to send [17:33:13]OFD Sender: No OFD packet to send [17:33:18]OFD Sender: No OFD packet to send [17:33:23]OFD Sender: No OFD packet to send [17:33:28]OFD Sender: No OFD packet to send [17:33:33]OFD Sender: No OFD packet to send [17:33:38]OFD Sender: No OFD packet to send [17:33:43]OFD Sender: No OFD packet to send [17:33:48]OFD Sender: No OFD packet to send [17:33:53]OFD Sender: No OFD packet to send [17:33:58]OFD Sender: No OFD packet to send [17:34:03]OFD Sender: No OFD packet to send [17:34:08]OFD Sender: No OFD packet to send [17:34:13]OFD Sender: No OFD packet to send [17:34:18]OFD Sender: No OFD packet to send [17:34:23]OFD Sender: No OFD packet to send [17:34:28]OFD Sender: No OFD packet to send [17:34:33]OFD Sender: No OFD packet to send [17:34:38]OFD Sender: No OFD packet to send [17:34:43]OFD Sender: No OFD packet to send [17:34:48]OFD Sender: No OFD packet to send [17:34:53]OFD Sender: No OFD packet to send [17:34:58]OFD Sender: No OFD packet to send [17:35:03]OFD Sender: No OFD packet to send [17:35:08]OFD Sender: No OFD packet to send [17:35:13]OFD Sender: No OFD packet to send [17:35:18]OFD Sender: No OFD packet to send [17:35:23]OFD Sender: No OFD packet to send [17:35:28]OFD Sender: No OFD packet to send [17:35:33]OFD Sender: No OFD packet to send [17:35:38]OFD Sender: No OFD packet to send [17:35:43]OFD Sender: No OFD packet to send [17:35:48]OFD Sender: No OFD packet to send [17:35:53]OFD Sender: No OFD packet to send [17:35:58]OFD Sender: No OFD packet to send [17:36:03]OFD Sender: No OFD packet to send [17:36:08]OFD Sender: No OFD packet to send [17:36:13]OFD Sender: No OFD packet to send [17:36:17]accept exits with 7 [17:36:17]New connection [17:36:17]New thread 3066608996 created [17:36:17]Thread 3066752356 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: 1179 [17:36:17]Content-Type: application/json [17:36:17] [17:36:17]POST finish read [17:36:17]Found Content-Length = 1179 [17:36: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507852\u000A17.05.2024 17:18\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 19.280 x 74.70\u000A\u0418\u0422\u041E\u0413: 1440.22\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:17]execute_script... [17:36: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507852\u000A17.05.2024 17:18\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 19.280 x 74.70\u000A\u0418\u0422\u041E\u0413: 1440.22\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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=print_text [17:36:17]process_action print_text [17:36:17]cmd_print_text [17:36:17]ExternCall_PrintAddStr [17:36:17]wPrintStart [17:36:17]Write to MH i2c: 01 00 00 13 06 19 [17:36:17]Write i2c OK [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: 01 [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: 01 07 00 [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: 01 07 00 13 06 00 00 00 00 00 FF 0F 2E [17:36:17]RasterBufferAndPrint [17:36:17]line *****ТОВАРНЫЙ ЧЕК***** [17:36:17]line АЗС-91 [17:36:17]line Партнер нефть [17:36:17]line 02508201610067 [17:36:17]line Кассир : Адишов И. [17:36:17]line Счет N : (1)507852 [17:36:17]line 17.05.2024 17:18 [17:36:17]line ПРОДАЖА [17:36:17]line ТРК (МРК, ГНК): 31 [17:36:17]line Вид ГСМ : 2710194210 [17:36:17]line ДТ-К-5 [17:36:17]line 19.280 x 74.70 [17:36:17]line ИТОГ: 1440.22 [17:36:17]line Тип оплаты: Талоны: Топливная Карта [17:36:17]line 02750 [17:36:17]line ______________________ [17:36:17]line (подпись) [17:36:17]written 0, free lines is 4095 [17:36:18]Write to MH i2c: 01 00 00 27 06 2D [17:36:18]Write i2c OK [17:36:18]MH_I2C_Read... [17:36:18]Read from MH i2c: 01 [17:36:18]MH_I2C_Read... [17:36:18]Read from MH i2c: 01 07 00 [17:36:18]MH_I2C_Read... [17:36:18]Read from MH i2c: 01 07 00 27 06 00 00 00 00 00 0D 0E 4F [17:36:18]RasterBufferAndPrint [17:36:18]line [17:36:18]line [17:36:18]line [17:36:18]line [17:36:18]line [17:36:18]written 0, free lines is 3598 [17:36:18]MH_Cut [17:36:18]Write to MH i2c: D1 01 00 2E 06 01 06 [17:36:18]Write i2c OK [17:36:18]MH_I2C_Read... [17:36:18]Read from MH i2c: D1 [17:36:18]MH_I2C_Read... [17:36:18]Read from MH i2c: D1 01 00 [17:36:18]MH_I2C_Read... [17:36:18]Read from MH i2c: D1 01 00 2E 06 00 05 [17:36:18]Write to MH i2c: 01 00 00 2F 06 35 [17:36:18]Write i2c OK [17:36:18]MH_I2C_Read... [17:36:18]OFD Sender: No OFD packet to send [17:36:18]*** Cut start [17:36:18]*** Purtial cut [17:36:18]*** CUTSNS_PIN = 0 [17:36:18]*** Stage 1: CUTSNS_PIN = 1 [17:36:20]Read from MH i2c: 01 [17:36:20]MH_I2C_Read... [17:36:20]*** Stop cut motor [17:36:20]*** Cut end [17:36:20]Read from MH i2c: 01 07 00 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: 01 07 00 2F 06 00 00 00 00 00 FF 0F 4A [17:36:20]process_action print_text done [17:36:20]requested_data is exist [17:36:20]produce_requested_data [17:36:20]requested_item fm.sn is exist - process it [17:36:20]wFMCommunicate request_size=4 [17:36:20]MH_SAM_APDU [17:36:20]CAPDU: 80 11 00 00 [17:36:20]Write to MH i2c: E2 08 00 30 06 80 11 00 00 00 00 00 00 B0 [17:36:20]Write i2c OK [17:36:20]MH_I2C_Read... [17:36:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:20]Read from MH i2c: E2 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: E2 17 00 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: E2 17 00 30 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 06 [17:36:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:36:20]wFMCommunicate OK [17:36:20]requested_item fd.num is exist - process it [17:36:20]SAM_PROTO_GetFieldsCounters [17:36:20]wFMCommunicate request_size=4 [17:36:20]MH_SAM_APDU [17:36:20]CAPDU: 80 13 00 00 [17:36:20]Write to MH i2c: E2 08 00 31 06 80 13 00 00 00 00 00 00 B3 [17:36:20]Write i2c OK [17:36:20]MH_I2C_Read... [17:36:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:20]Read from MH i2c: E2 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: E2 62 00 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: E2 62 00 31 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 72 08 01 00 0E 04 04 00 66 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 FC [17:36: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 72 08 01 00 0E 04 04 00 66 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 [17:36:20]wFMCommunicate OK [17:36:20]SAM_PROTO_GetFieldsCounters done [17:36:20]requested_item shift.num is exist - process it [17:36:20]requested_item shift.opened is exist - process it [17:36:20]req_shift_opened [17:36:20]FM_GetShiftState [17:36:20]SAM_PROTO_GetShiftState [17:36:20]wFMCommunicate request_size=4 [17:36:20]MH_SAM_APDU [17:36:20]CAPDU: 80 13 01 00 [17:36:20]Write to MH i2c: E2 08 00 32 06 80 13 01 00 00 00 00 00 B5 [17:36:20]Write i2c OK [17:36:20]MH_I2C_Read... [17:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:20]Read from MH i2c: E2 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: E2 0E 00 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: E2 0E 00 32 06 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 3B [17:36:20]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:36:20]wFMCommunicate OK [17:36:20]SAM_PROTO_GetShiftState done [17:36:20]FM_GetShiftState done [17:36:20]req_shift_opened done [17:36:20]requested_item shift.open_date is exist - process it [17:36:20]req_shift_open_date [17:36:20]req_shift_open_date done [17:36:20]produce_requested_data done [17:36:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67698,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [17:36:20]process_action_free print_text [17:36:20]json_value_free [17:36:20]json_value_free done [17:36:20]process_json_proto returns [17:36:20]Send response to host [17:36:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67698,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [17:36:20]free response buf [17:36:20]execute_script done [17:36:20]execute_script returns [17:36:20]free content buf [17:36:20]Sock 7.Close socket [17:36:20]Sock 7.Thread stoped [17:36:23]OFD Sender: No OFD packet to send [17:36:28]OFD Sender: No OFD packet to send [17:36:33]OFD Sender: No OFD packet to send [17:36:38]OFD Sender: No OFD packet to send [17:36:43]OFD Sender: No OFD packet to send [17:36:48]OFD Sender: No OFD packet to send [17:36:53]OFD Sender: No OFD packet to send [17:36:58]OFD Sender: No OFD packet to send [17:37:03]OFD Sender: No OFD packet to send [17:37:08]OFD Sender: No OFD packet to send [17:37:13]OFD Sender: No OFD packet to send [17:37:18]OFD Sender: No OFD packet to send [17:37:23]OFD Sender: No OFD packet to send [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:23]OFD Sender: No OFD packet to send [17:38:28]OFD Sender: No OFD packet to send [17:38:33]OFD Sender: No OFD packet to send [17:38:38]OFD Sender: No OFD packet to send [17:38:43]accept exits with 9 [17:38:43]New connection [17:38:43]New thread 3066752356 created [17:38:43]Thread 3066608996 joined [17:38:43]Waiting for new connection... [17:38:43] Sock 9.Parse request [17:38:43]Sock 9.Check first char [17:38:43]Sock 9.First char is OK [17:38:43]request: POST /json_proto HTTP/1.0 [17:38:43]Method: POST [17:38:43]URL: /json_proto [17:38:43]Method is POST - this is cgi request [17:38:43]url: /json_proto [17:38:43]query_string will be loaded in cgi processing [17:38:43]execute_cgi json_proto POST (null) [17:38:43]execute_cgi path=json_proto method=POST [17:38:43]POST find Content-Length [17:38:43]Host: 172.17.41.195:8080 [17:38:43]Content-Length: 639 [17:38:43]Content-Type: application/json [17:38:43] [17:38:43]POST finish read [17:38:43]Found Content-Length = 639 [17:38:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507853", "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:38:43]execute_script... [17:38: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)507853", "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:38:43]POST & json_proto [17:38:43]process_json_proto [17:38:43]json parsed OK: [17:38:43]protocol is kg_v1.0 [17:38:43]action value=close_receipt [17:38:43]process_action close_receipt [17:38:43]cmd_close_receipt [17:38:43]MH_GetDate [17:38:43]Write to MH i2c: F0 00 00 33 06 28 [17:38:43]Write i2c OK [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: F0 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: F0 09 00 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: F0 09 00 33 06 00 24 96 47 66 FC 21 6F 64 88 [17:38:43]GetLastDocTimeStamp 1715967136 [17:38:43]current date 1715967524 [17:38:43]FM_GetShiftState [17:38:43]SAM_PROTO_GetShiftState [17:38:43]wFMCommunicate request_size=4 [17:38:43]MH_SAM_APDU [17:38:43]CAPDU: 80 13 01 00 [17:38:43]Write to MH i2c: E2 08 00 34 06 80 13 01 00 00 00 00 00 B7 [17:38:43]Write i2c OK [17:38:43]MH_I2C_Read... [17:38:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:43]Read from MH i2c: E2 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: E2 0E 00 [17:38:43]MH_I2C_Read... [17:38:43]Read from MH i2c: E2 0E 00 34 06 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 3D [17:38:43]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:38:43]wFMCommunicate OK [17:38:43]SAM_PROTO_GetShiftState done [17:38:43]FM_GetShiftState done [17:38:43]opened in 1715905068 [17:38:43]opened+sec_in_day 1715991468 [17:38:43]quantity*price = 224100 [17:38:43]sum+1 = 224101 [17:38:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2241.00 НСП 1% : 19.83 НДС 12% : 237.98 Наличными: 2241.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 108 17.05.2024 17:38 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67699 ФПД: 100508062264727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T173844&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67699&fm=100508062264727&tin=02508201610067®Number=0000000000091845&sum=224100 [17:38:44]StoreToDocumentArchive [17:38:44]shift 358 fd 67699 [17:38:44]save to /storage/0358/doc_00067699 [17:38:44]save last doc name /storage/0358/doc_00067699 to /storage/kkm_last_doc_name [17:38:44]save OK [17:38:44]Clear old archive folders... [17:38:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:38:44]tlvbuf is 01AF9440 [17:38:44]SAM_PROTO_ClearQueue [17:38:44]wFMCommunicate request_size=4 [17:38:44]MH_SAM_APDU [17:38:44]CAPDU: 80 09 00 00 [17:38:44]Write to MH i2c: E2 08 00 41 06 80 09 00 00 00 00 00 00 B9 [17:38:44]Write i2c OK [17:38:44]MH_I2C_Read... [17:38:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:44]Read from MH i2c: E2 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 03 00 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 03 00 41 06 00 90 00 BB [17:38:44]RAPDU: 90 00 [17:38:44]wFMCommunicate OK [17:38:44]SAM_PROTO_ClearQueue done [17:38:44]KKMCreateOFDPacket [17:38:44]OFDProtocolAddRootSTLVToBuf [17:38:44]FM_MakeSignedData [17:38:44]FM_MakeSignedData [17:38:44]SAM_PROTO_SignData [17:38:44]wFMCommunicate request_size=4 [17:38:44]MH_SAM_APDU [17:38:44]CAPDU: 80 0D 01 02 [17:38:44]Write to MH i2c: E2 08 00 42 06 80 0D 01 02 00 00 00 00 C1 [17:38:44]Write i2c OK [17:38:44]MH_I2C_Read... [17:38:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:44]Read from MH i2c: E2 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 03 00 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 03 00 42 06 00 90 00 BC [17:38:44]RAPDU: 90 00 [17:38:44]wFMCommunicate OK [17:38:44]wFMCommunicate request_size=255 [17:38:44]MH_SAM_APDU [17:38: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 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 6C 00 00 00 F4 03 04 00 24 96 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 73 08 01 00 35 04 06 00 5B 69 5B 59 [17:38:44]Write to MH i2c: E2 02 01 43 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 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 6C 00 00 00 F4 03 04 00 24 96 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 73 08 01 00 35 04 06 00 5B 69 5B 59 00 00 CF [17:38:44]Write i2c OK [17:38:44]MH_I2C_Read... [17:38:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:44]Read from MH i2c: E2 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 03 00 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 03 00 43 06 00 90 00 BD [17:38:44]RAPDU: 90 00 [17:38:44]wFMCommunicate OK [17:38:44]wFMCommunicate request_size=7 [17:38:44]MH_SAM_APDU [17:38:44]CAPDU: 80 0D 02 02 02 2D 97 [17:38:44]Write to MH i2c: E2 0A 00 44 06 80 0D 02 02 02 00 2D 97 00 00 8C [17:38:44]Write i2c OK [17:38:44]MH_I2C_Read... [17:38:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:44]Read from MH i2c: E2 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 03 00 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 03 00 44 06 00 90 00 BE [17:38:44]RAPDU: 90 00 [17:38:44]wFMCommunicate OK [17:38:44]wFMCommunicate request_size=4 [17:38:44]MH_SAM_APDU [17:38:44]CAPDU: 80 0D 03 02 [17:38:44]Write to MH i2c: E2 08 00 45 06 80 0D 03 02 00 00 00 00 C6 [17:38:44]Write i2c OK [17:38:44]MH_I2C_Read... [17:38:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:44]Read from MH i2c: E2 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 0B 00 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 0B 00 45 06 00 79 41 23 EE 2C F1 AE 12 90 00 6F [17:38:44]RAPDU: 79 41 23 EE 2C F1 AE 12 90 00 [17:38:44]wFMCommunicate OK [17:38:44]SAM_PROTO_SignData done [17:38:44]FM_MakeSignedData done [17:38:44]CreateOFDProtocolMessage [17:38:44]wFMCommunicate request_size=4 [17:38:44]MH_SAM_APDU [17:38:44]CAPDU: 80 11 00 00 [17:38:44]Write to MH i2c: E2 08 00 46 06 80 11 00 00 00 00 00 00 C6 [17:38:44]Write i2c OK [17:38:44]MH_I2C_Read... [17:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:44]Read from MH i2c: E2 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 17 00 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 17 00 46 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1C [17:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:38:44]wFMCommunicate OK [17:38:44]CreateOFDProtocolMessage done [17:38:44]OFDSenderStorePacket 67699 [17:38:44]StoreOFDPacket docnum=67699 [17:38: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 7C 7B 04 01 47 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 6C 00 00 00 F4 03 04 00 24 96 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 73 08 01 00 35 04 06 00 5B 69 5B 59 2D 97 79 41 23 EE 2C F1 AE 12 [17:38:44]CheckFolder [17:38:44]dirname=/storage/ofd_packets [17:38:44]CheckFolder done [17:38:44]ProducePacketName [17:38:44]name=ofd_packets/00067699 [17:38:44]NVStorageSaveData ofd_packets/00067699 [17:38:44]File name is /storage/ofd_packets/00067699 [17:38:44]Write 298 bytes [17:38:44]NVStorageSaveData done [17:38:44]OFDSenderStorePacket done [17:38:44]KKMCreateOFDPacket done [17:38:44]NVStorageSaveData kkm_last_timestamp [17:38:44]File name is /storage/kkm_last_timestamp [17:38:44]Write 4 bytes [17:38:44]NVStorageSaveData done [17:38:44]ExternCall_PrintAddStr [17:38:44]wPrintStart [17:38:44]Write to MH i2c: 01 00 00 47 06 4D [17:38:44]Write i2c OK [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: 01 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: 01 07 00 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: 01 07 00 47 06 00 00 00 00 00 FF 0F 62 [17:38:44]RasterBufferAndPrint [17:38:44]line Счет N : (1)507853 [17:38:44]line ИНН: 02508201610067 [17:38:44]line Контрольно-Кассовый Чек [17:38:44]line ПРОДАЖА [17:38:44]line ТРК (МРК, ГНК) : 11 [17:38:44]line Товар: 2710194210 [17:38:44]line ДТ-К-5 [17:38:44]line 30.000 * 74.70 [17:38:44]line = 2241.00 [17:38:44]line НДС 12% НСП 1% [17:38:44]line > о реализуемом товаре [17:38:44]line ИТОГО: 2241.00 [17:38:44]line НСП 1% : 19.83 [17:38:44]line НДС 12% : 237.98 [17:38:44]line Наличными: 2241.00 [17:38:44]line Безнал.: 0.00 [17:38:44]line Место: АЗС № 91 "Партнер Нефть" [17:38:44]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:38:44]line СНО: Общий режим [17:38:44]line Чек 108 17.05.2024 17:38 [17:38:44]line Смена: 358 ФФД: 1.0 [17:38:45]line ЗНМ: 0300000119 [17:38:45]line РНМ: 0000000000091845 [17:38:45]line Версия ККМ: 001 [17:38:45]line ФМ: 0000000000871829 [17:38:45]line ФД: 67699 [17:38:45]line ФПД: 100508062264727 [17:38:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T173844&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67699&fm=100508062264727&tin=02508201610067®Number=0000000000091845&sum=224100 [17:38:45]OFD Sender: Processing packet 67699 [packets to send 35, broken 34] [17:38:45]ProducePacketName [17:38:45]name=ofd_packets/00067699 [17:38:45]OFD Sender: To server: pG, [17:38:45]CommunicateWithHost lk.salyk.kg:30040 [17:38:45]ConnectInit lk.salyk.kg [17:38:45]written 0, free lines is 4095 [17:38:45]Connected sock=10 [17:38: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 7C 7B 04 01 47 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 6C 00 00 00 F4 03 04 00 24 96 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 73 08 01 00 35 04 06 00 5B 69 5B 59 2D 97 79 41 23 EE 2C F1 AE 12 [17:38: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 AB DE 47 00 64 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 73 08 01 00 F4 03 04 00 FB 3D 47 66 B6 04 01 00 00 D0 37 60 16 E8 3D 07 FE [17:38:45]CommunicateWithHost err = 0 [17:38:45]CheckOFDResponse [17:38:45]1017 (14) - 77093643461234 [17:38:45]1041 (16) - 0000000000871829 [17:38:45]1040 (4) - 67699 [17:38:45]1012 (4) - 17.05.2024 11:22 [17:38:45]1206 (1) - 0 [17:38:45]OFD Sender: Remove packet 67699 [17:38:45]ProducePacketName [17:38:45]name=ofd_packets/00067699 [17:38:45]NVStorageDeleteData [17:38:45]Write to MH i2c: 01 00 00 6E 06 74 [17:38:45]Write i2c OK [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: 01 [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: 01 07 00 [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: 01 07 00 6E 06 00 00 00 00 00 FE 0C 85 [17:38:45]RasterBufferAndPrint [17:38:45]line [17:38:45]line [17:38:45]line [17:38:45]line [17:38:45]line [17:38:45]written 0, free lines is 3330 [17:38:45]MH_Cut [17:38:45]Write to MH i2c: D1 01 00 75 06 01 4D [17:38:45]Write i2c OK [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: D1 [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: D1 01 00 [17:38:45]MH_I2C_Read... [17:38:45]Read from MH i2c: D1 01 00 75 06 00 4C [17:38:45]Write to MH i2c: 01 00 00 76 06 7C [17:38:45]Write i2c OK [17:38:45]MH_I2C_Read... [17:38:46]OFD Sender: No OFD packet to send [17:38:46]*** Cut start [17:38:46]*** Purtial cut [17:38:46]*** Stage 1: CUTSNS_PIN = 1 [17:38:46]Read from MH i2c: 01 [17:38:46]MH_I2C_Read... [17:38:46]*** Stop cut motor [17:38:46]*** Cut end [17:38:46]Read from MH i2c: 01 07 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: 01 07 00 76 06 00 00 00 00 00 FF 0F 91 [17:38:46]process_action close_receipt done [17:38:46]requested_data is exist [17:38:46]produce_requested_data [17:38:46]requested_item fm.sn is exist - process it [17:38:46]wFMCommunicate request_size=4 [17:38:46]MH_SAM_APDU [17:38:46]CAPDU: 80 11 00 00 [17:38:46]Write to MH i2c: E2 08 00 77 06 80 11 00 00 00 00 00 00 F7 [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:46]Read from MH i2c: E2 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 17 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 17 00 77 06 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:38:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:38:46]wFMCommunicate OK [17:38:46]requested_item fd.num is exist - process it [17:38:46]SAM_PROTO_GetFieldsCounters [17:38:46]wFMCommunicate request_size=4 [17:38:46]MH_SAM_APDU [17:38:46]CAPDU: 80 13 00 00 [17:38:46]Write to MH i2c: E2 08 00 78 06 80 13 00 00 00 00 00 00 FA [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:46]Read from MH i2c: E2 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 62 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 62 00 78 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 73 08 01 00 0E 04 04 00 66 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 47 [17:38: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 73 08 01 00 0E 04 04 00 66 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 [17:38:46]wFMCommunicate OK [17:38:46]SAM_PROTO_GetFieldsCounters done [17:38:46]requested_item shift.num is exist - process it [17:38:46]requested_item shift.opened is exist - process it [17:38:46]req_shift_opened [17:38:46]FM_GetShiftState [17:38:46]SAM_PROTO_GetShiftState [17:38:46]wFMCommunicate request_size=4 [17:38:46]MH_SAM_APDU [17:38:46]CAPDU: 80 13 01 00 [17:38:46]Write to MH i2c: E2 08 00 79 06 80 13 01 00 00 00 00 00 FC [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:46]Read from MH i2c: E2 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 0E 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 0E 00 79 06 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 82 [17:38:46]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:38:46]wFMCommunicate OK [17:38:46]SAM_PROTO_GetShiftState done [17:38:46]FM_GetShiftState done [17:38:46]req_shift_opened done [17:38:46]requested_item shift.open_date is exist - process it [17:38:46]req_shift_open_date [17:38:46]req_shift_open_date done [17:38:46]produce_requested_data done [17:38:46]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67699,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [17:38:46]process_action_free close_receipt [17:38:46]json_value_free [17:38:46]json_value_free done [17:38:46]process_json_proto returns [17:38:46]Send response to host [17:38:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67699,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [17:38:46]free response buf [17:38:46]execute_script done [17:38:46]execute_script returns [17:38:46]free content buf [17:38:46]Sock 9.Close socket [17:38:46]Sock 9.Thread stoped [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:36]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:26]OFD Sender: No OFD packet to send [17:44:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:11]OFD Sender: No OFD packet to send [17:45:16]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:20]accept exits with 7 [17:48:20]New connection [17:48:20]New thread 3066608996 created [17:48:20]Thread 3066752356 joined [17:48:20]Waiting for new connection... [17:48:20] Sock 7.Parse request [17:48:20]Sock 7.Check first char [17:48:20]Sock 7.First char is OK [17:48:20]request: POST /json_proto HTTP/1.0 [17:48:20]Method: POST [17:48:20]URL: /json_proto [17:48:20]Method is POST - this is cgi request [17:48:20]url: /json_proto [17:48:20]query_string will be loaded in cgi processing [17:48:20]execute_cgi json_proto POST (null) [17:48:20]execute_cgi path=json_proto method=POST [17:48:20]POST find Content-Length [17:48:20]Host: 172.17.41.195:8080 [17:48:20]Content-Length: 674 [17:48:20]Content-Type: application/json [17:48:20] [17:48:20]POST finish read [17:48:20]Found Content-Length = 674 [17:48:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:20]execute_script... [17:48: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)507854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:20]POST & json_proto [17:48:20]process_json_proto [17:48:20]json parsed OK: [17:48:20]protocol is kg_v1.0 [17:48:20]action value=close_receipt [17:48:20]process_action close_receipt [17:48:20]cmd_close_receipt [17:48:20]MH_GetDate [17:48:20]Write to MH i2c: F0 00 00 7A 06 6F [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: F0 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: F0 09 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: F0 09 00 7A 06 00 65 98 47 66 FC 21 6F 64 12 [17:48:20]GetLastDocTimeStamp 1715967524 [17:48:20]current date 1715968101 [17:48:20]FM_GetShiftState [17:48:20]SAM_PROTO_GetShiftState [17:48:20]wFMCommunicate request_size=4 [17:48:20]MH_SAM_APDU [17:48:20]CAPDU: 80 13 01 00 [17:48:20]Write to MH i2c: E2 08 00 7B 06 80 13 01 00 00 00 00 00 FE [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:20]Read from MH i2c: E2 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 0E 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 0E 00 7B 06 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 84 [17:48:20]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:48:20]wFMCommunicate OK [17:48:20]SAM_PROTO_GetShiftState done [17:48:20]FM_GetShiftState done [17:48:20]opened in 1715905068 [17:48:20]opened+sec_in_day 1715991468 [17:48:20]quantity*price = 50049 [17:48:20]sum+1 = 50050 [17:48:20]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 СНО: Общий режим Чек 109 17.05.2024 17:48 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67700 ФПД: 59991428904013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T174821&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67700&fm=59991428904013&tin=02508201610067®Number=0000000000091845&sum=50000 [17:48:21]StoreToDocumentArchive [17:48:21]shift 358 fd 67700 [17:48:21]save to /storage/0358/doc_00067700 [17:48:21]save last doc name /storage/0358/doc_00067700 to /storage/kkm_last_doc_name [17:48:21]save OK [17:48:21]Clear old archive folders... [17:48:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:48:21]tlvbuf is 01B489F0 [17:48:21]SAM_PROTO_ClearQueue [17:48:21]wFMCommunicate request_size=4 [17:48:21]MH_SAM_APDU [17:48:21]CAPDU: 80 09 00 00 [17:48:21]Write to MH i2c: E2 08 00 88 06 80 09 00 00 00 00 00 00 00 [17:48:21]Write i2c OK [17:48:21]MH_I2C_Read... [17:48:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:21]Read from MH i2c: E2 [17:48:21]MH_I2C_Read... [17:48:21]Read from MH i2c: E2 03 00 [17:48:21]MH_I2C_Read... [17:48:21]Read from MH i2c: E2 03 00 88 06 00 90 00 02 [17:48:21]RAPDU: 90 00 [17:48:21]wFMCommunicate OK [17:48:21]SAM_PROTO_ClearQueue done [17:48:21]KKMCreateOFDPacket [17:48:21]OFDProtocolAddRootSTLVToBuf [17:48:21]FM_MakeSignedData [17:48:21]FM_MakeSignedData [17:48:21]SAM_PROTO_SignData [17:48:21]wFMCommunicate request_size=4 [17:48:21]MH_SAM_APDU [17:48:21]CAPDU: 80 0D 01 02 [17:48:21]Write to MH i2c: E2 08 00 89 06 80 0D 01 02 00 00 00 00 08 [17:48:21]Write i2c OK [17:48:21]MH_I2C_Read... [17:48:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:21]Read from MH i2c: E2 [17:48:21]MH_I2C_Read... [17:48:21]Read from MH i2c: E2 03 00 [17:48:21]MH_I2C_Read... [17:48:21]Read from MH i2c: E2 03 00 89 06 00 90 00 03 [17:48:21]RAPDU: 90 00 [17:48:21]wFMCommunicate OK [17:48:21]wFMCommunicate request_size=255 [17:48:21]MH_SAM_APDU [17:48: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 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 6D 00 00 00 F4 03 04 00 65 98 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 74 08 01 00 35 04 06 00 36 8F D7 CF [17:48:21]Write to MH i2c: E2 02 01 8A 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 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 6D 00 00 00 F4 03 04 00 65 98 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 74 08 01 00 35 04 06 00 36 8F D7 CF 00 00 5E [17:48:21]Write i2c OK [17:48:21]MH_I2C_Read... [17:48:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:22]Read from MH i2c: E2 [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: E2 03 00 [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: E2 03 00 8A 06 00 90 00 04 [17:48:22]RAPDU: 90 00 [17:48:22]wFMCommunicate OK [17:48:22]wFMCommunicate request_size=7 [17:48:22]MH_SAM_APDU [17:48:22]CAPDU: 80 0D 02 02 02 34 4D [17:48:22]Write to MH i2c: E2 0A 00 8B 06 80 0D 02 02 02 00 34 4D 00 00 90 [17:48:22]Write i2c OK [17:48:22]MH_I2C_Read... [17:48:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:22]Read from MH i2c: E2 [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: E2 03 00 [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: E2 03 00 8B 06 00 90 00 05 [17:48:22]RAPDU: 90 00 [17:48:22]wFMCommunicate OK [17:48:22]wFMCommunicate request_size=4 [17:48:22]MH_SAM_APDU [17:48:22]CAPDU: 80 0D 03 02 [17:48:22]Write to MH i2c: E2 08 00 8C 06 80 0D 03 02 00 00 00 00 0D [17:48:22]Write i2c OK [17:48:22]MH_I2C_Read... [17:48:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:22]Read from MH i2c: E2 [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: E2 0B 00 [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: E2 0B 00 8C 06 00 F4 63 09 9A 6D 15 BF B0 90 00 F9 [17:48:22]RAPDU: F4 63 09 9A 6D 15 BF B0 90 00 [17:48:22]wFMCommunicate OK [17:48:22]SAM_PROTO_SignData done [17:48:22]FM_MakeSignedData done [17:48:22]CreateOFDProtocolMessage [17:48:22]wFMCommunicate request_size=4 [17:48:22]MH_SAM_APDU [17:48:22]CAPDU: 80 11 00 00 [17:48:22]Write to MH i2c: E2 08 00 8D 06 80 11 00 00 00 00 00 00 0D [17:48:22]Write i2c OK [17:48:22]MH_I2C_Read... [17:48:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:22]Read from MH i2c: E2 [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: E2 17 00 [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: E2 17 00 8D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 63 [17:48: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:48:22]wFMCommunicate OK [17:48:22]CreateOFDProtocolMessage done [17:48:22]OFDSenderStorePacket 67700 [17:48:22]StoreOFDPacket docnum=67700 [17:48: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 F9 E3 04 01 57 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 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 6D 00 00 00 F4 03 04 00 65 98 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 74 08 01 00 35 04 06 00 36 8F D7 CF 34 4D F4 63 09 9A 6D 15 BF B0 [17:48:22]CheckFolder [17:48:22]dirname=/storage/ofd_packets [17:48:22]CheckFolder done [17:48:22]ProducePacketName [17:48:22]name=ofd_packets/00067700 [17:48:22]NVStorageSaveData ofd_packets/00067700 [17:48:22]File name is /storage/ofd_packets/00067700 [17:48:22]Write 298 bytes [17:48:22]NVStorageSaveData done [17:48:22]OFDSenderStorePacket done [17:48:22]KKMCreateOFDPacket done [17:48:22]NVStorageSaveData kkm_last_timestamp [17:48:22]File name is /storage/kkm_last_timestamp [17:48:22]Write 4 bytes [17:48:22]NVStorageSaveData done [17:48:22]ExternCall_PrintAddStr [17:48:22]wPrintStart [17:48:22]Write to MH i2c: 01 00 00 8E 06 94 [17:48:22]Write i2c OK [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: 01 [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: 01 07 00 [17:48:22]MH_I2C_Read... [17:48:22]Read from MH i2c: 01 07 00 8E 06 00 00 00 00 00 FF 0F A9 [17:48:22]RasterBufferAndPrint [17:48:22]line Счет N : (1)507854 [17:48:22]line ИНН: 02508201610067 [17:48:22]line Контрольно-Кассовый Чек [17:48:22]line ПРОДАЖА [17:48:22]line ТРК (МРК, ГНК) : 21 [17:48:22]line Товар: 2710194210 [17:48:22]line ДТ-К-5 [17:48:22]line 6.700 * 74.70 [17:48:22]line = 500.49 [17:48:22]line НДС 12% НСП 1% [17:48:22]line > о реализуемом товаре [17:48:22]line ОКРУГЛЕНИЕ: -0.49 [17:48:22]line ИТОГО: 500.00 [17:48:22]line Внесено: 500.00 [17:48:22]line СДАЧА: 0.00 [17:48:22]line НСП 1% : 4.43 [17:48:22]line НДС 12% : 53.15 [17:48:22]line Наличными: 500.00 [17:48:22]line Безнал.: 0.00 [17:48:22]line Место: АЗС № 91 "Партнер Нефть" [17:48:22]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:48:22]line СНО: Общий режим [17:48:22]line Чек 109 17.05.2024 17:48 [17:48:22]line Смена: 358 ФФД: 1.0 [17:48:22]line ЗНМ: 0300000119 [17:48:22]line РНМ: 0000000000091845 [17:48:22]line Версия ККМ: 001 [17:48:22]line ФМ: 0000000000871829 [17:48:22]line ФД: 67700 [17:48:22]line ФПД: 59991428904013 [17:48:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T174821&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67700&fm=59991428904013&tin=02508201610067®Number=0000000000091845&sum=50000 [17:48:22]OFD Sender: Processing packet 67700 [packets to send 35, broken 34] [17:48:22]ProducePacketName [17:48:22]name=ofd_packets/00067700 [17:48:22]OFD Sender: To server: pG, [17:48:22]CommunicateWithHost lk.salyk.kg:30040 [17:48:22]ConnectInit lk.salyk.kg [17:48:22]written 0, free lines is 4095 [17:48:22]Connected sock=10 [17:48: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 F9 E3 04 01 57 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 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 6D 00 00 00 F4 03 04 00 65 98 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 74 08 01 00 35 04 06 00 36 8F D7 CF 34 4D F4 63 09 9A 6D 15 BF B0 [17:48: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 72 3D 47 00 BA 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 74 08 01 00 F4 03 04 00 3D 40 47 66 B6 04 01 00 00 E7 E9 04 01 79 2D 78 B6 [17:48:23]CommunicateWithHost err = 0 [17:48:23]CheckOFDResponse [17:48:23]1017 (14) - 77093643461234 [17:48:23]1041 (16) - 0000000000871829 [17:48:23]1040 (4) - 67700 [17:48:23]1012 (4) - 17.05.2024 11:32 [17:48:23]1206 (1) - 0 [17:48:23]OFD Sender: Remove packet 67700 [17:48:23]ProducePacketName [17:48:23]name=ofd_packets/00067700 [17:48:23]NVStorageDeleteData [17:48:23]Write to MH i2c: 01 00 00 B8 06 BE [17:48:23]Write i2c OK [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: 01 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: 01 07 00 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: 01 07 00 B8 06 00 00 00 00 00 C8 0C 99 [17:48:23]RasterBufferAndPrint [17:48:23]line [17:48:23]line [17:48:23]line [17:48:23]line [17:48:23]line [17:48:23]written 0, free lines is 3278 [17:48:23]MH_Cut [17:48:23]Write to MH i2c: D1 01 00 BF 06 01 97 [17:48:23]Write i2c OK [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: D1 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: D1 01 00 [17:48:23]MH_I2C_Read... [17:48:23]Read from MH i2c: D1 01 00 BF 06 00 96 [17:48:23]Write to MH i2c: 01 00 00 C0 06 C6 [17:48:23]Write i2c OK [17:48:23]MH_I2C_Read... [17:48:23]OFD Sender: No OFD packet to send [17:48:23]*** Cut start [17:48:23]*** Purtial cut [17:48:23]*** CUTSNS_PIN = 0 [17:48:24]*** Stage 1: CUTSNS_PIN = 1 [17:48:25]Read from MH i2c: 01 [17:48:25]MH_I2C_Read... [17:48:25]*** Stop cut motor [17:48:25]*** Cut end [17:48:25]Read from MH i2c: 01 07 00 [17:48:25]MH_I2C_Read... [17:48:25]Read from MH i2c: 01 07 00 C0 06 00 00 00 00 00 FF 0F DB [17:48:25]process_action close_receipt done [17:48:25]requested_data is exist [17:48:25]produce_requested_data [17:48:25]requested_item fm.sn is exist - process it [17:48:25]wFMCommunicate request_size=4 [17:48:25]MH_SAM_APDU [17:48:25]CAPDU: 80 11 00 00 [17:48:25]Write to MH i2c: E2 08 00 C1 06 80 11 00 00 00 00 00 00 41 [17:48:25]Write i2c OK [17:48:25]MH_I2C_Read... [17:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:26]Read from MH i2c: E2 [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: E2 17 00 [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: E2 17 00 C1 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 97 [17:48: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:48:26]wFMCommunicate OK [17:48:26]requested_item fd.num is exist - process it [17:48:26]SAM_PROTO_GetFieldsCounters [17:48:26]wFMCommunicate request_size=4 [17:48:26]MH_SAM_APDU [17:48:26]CAPDU: 80 13 00 00 [17:48:26]Write to MH i2c: E2 08 00 C2 06 80 13 00 00 00 00 00 00 44 [17:48:26]Write i2c OK [17:48:26]MH_I2C_Read... [17:48:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:26]Read from MH i2c: E2 [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: E2 62 00 [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: E2 62 00 C2 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 74 08 01 00 0E 04 04 00 66 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 95 [17:48: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 74 08 01 00 0E 04 04 00 66 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 [17:48:26]wFMCommunicate OK [17:48:26]SAM_PROTO_GetFieldsCounters done [17:48:26]requested_item shift.num is exist - process it [17:48:26]requested_item shift.opened is exist - process it [17:48:26]req_shift_opened [17:48:26]FM_GetShiftState [17:48:26]SAM_PROTO_GetShiftState [17:48:26]wFMCommunicate request_size=4 [17:48:26]MH_SAM_APDU [17:48:26]CAPDU: 80 13 01 00 [17:48:26]Write to MH i2c: E2 08 00 C3 06 80 13 01 00 00 00 00 00 46 [17:48:26]Write i2c OK [17:48:26]MH_I2C_Read... [17:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:26]Read from MH i2c: E2 [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: E2 0E 00 [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: E2 0E 00 C3 06 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CC [17:48:26]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:48:26]wFMCommunicate OK [17:48:26]SAM_PROTO_GetShiftState done [17:48:26]FM_GetShiftState done [17:48:26]req_shift_opened done [17:48:26]requested_item shift.open_date is exist - process it [17:48:26]req_shift_open_date [17:48:26]req_shift_open_date done [17:48:26]produce_requested_data done [17:48:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67700,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [17:48:26]process_action_free close_receipt [17:48:26]json_value_free [17:48:26]json_value_free done [17:48:26]process_json_proto returns [17:48:26]Send response to host [17:48:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67700,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [17:48:26]free response buf [17:48:26]execute_script done [17:48:26]execute_script returns [17:48:26]free content buf [17:48:26]Sock 7.Close socket [17:48:26]Sock 7.Thread stoped [17:48:28]OFD Sender: No OFD packet to send [17:48:33]OFD Sender: No OFD packet to send [17:48:38]OFD Sender: No OFD packet to send [17:48:43]OFD Sender: No OFD packet to send [17:48:48]OFD Sender: No OFD packet to send [17:48:53]OFD Sender: No OFD packet to send [17:48:58]OFD Sender: No OFD packet to send [17:49:03]OFD Sender: No OFD packet to send [17:49:08]OFD Sender: No OFD packet to send [17:49:13]OFD Sender: No OFD packet to send [17:49:18]OFD Sender: No OFD packet to send [17:49:23]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:43]OFD Sender: No OFD packet to send [17:49:48]OFD Sender: No OFD packet to send [17:49:53]OFD Sender: No OFD packet to send [17:49:58]OFD Sender: No OFD packet to send [17:50:03]OFD Sender: No OFD packet to send [17:50:08]OFD Sender: No OFD packet to send [17:50:13]OFD Sender: No OFD packet to send [17:50:18]OFD Sender: No OFD packet to send [17:50:23]OFD Sender: No OFD packet to send [17:50:28]OFD Sender: No OFD packet to send [17:50:33]OFD Sender: No OFD packet to send [17:50:38]OFD Sender: No OFD packet to send [17:50:43]OFD Sender: No OFD packet to send [17:50:45]accept exits with 9 [17:50:45]New connection [17:50:45]New thread 3066752356 created [17:50:45]Thread 3066608996 joined [17:50:45]Waiting for new connection... [17:50:45] Sock 9.Parse request [17:50:45]Sock 9.Check first char [17:50:45]Sock 9.First char is OK [17:50:45]request: POST /json_proto HTTP/1.0 [17:50:45]Method: POST [17:50:45]URL: /json_proto [17:50:45]Method is POST - this is cgi request [17:50:45]url: /json_proto [17:50:45]query_string will be loaded in cgi processing [17:50:45]execute_cgi json_proto POST (null) [17:50:45]execute_cgi path=json_proto method=POST [17:50:45]POST find Content-Length [17:50:45]Host: 172.17.41.195:8080 [17:50:45]Content-Length: 639 [17:50:45]Content-Type: application/json [17:50:45] [17:50:45]POST finish read [17:50:45]Found Content-Length = 639 [17:50:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507855", "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.000, "sum" : 1494.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1494.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:45]execute_script... [17:50: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)507855", "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.000, "sum" : 1494.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1494.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:45]POST & json_proto [17:50:45]process_json_proto [17:50:45]json parsed OK: [17:50:45]protocol is kg_v1.0 [17:50:45]action value=close_receipt [17:50:45]process_action close_receipt [17:50:45]cmd_close_receipt [17:50:45]MH_GetDate [17:50:45]Write to MH i2c: F0 00 00 C4 06 B9 [17:50:45]Write i2c OK [17:50:45]MH_I2C_Read... [17:50:45]Read from MH i2c: F0 [17:50:45]MH_I2C_Read... [17:50:45]Read from MH i2c: F0 09 00 [17:50:45]MH_I2C_Read... [17:50:45]Read from MH i2c: F0 09 00 C4 06 00 F6 98 47 66 FC 21 6F 64 ED [17:50:45]GetLastDocTimeStamp 1715968101 [17:50:45]current date 1715968246 [17:50:45]FM_GetShiftState [17:50:45]SAM_PROTO_GetShiftState [17:50:45]wFMCommunicate request_size=4 [17:50:45]MH_SAM_APDU [17:50:45]CAPDU: 80 13 01 00 [17:50:45]Write to MH i2c: E2 08 00 C5 06 80 13 01 00 00 00 00 00 48 [17:50:45]Write i2c OK [17:50:45]MH_I2C_Read... [17:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:45]Read from MH i2c: E2 [17:50:45]MH_I2C_Read... [17:50:45]Read from MH i2c: E2 0E 00 [17:50:45]MH_I2C_Read... [17:50:45]Read from MH i2c: E2 0E 00 C5 06 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CE [17:50:45]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:50:45]wFMCommunicate OK [17:50:45]SAM_PROTO_GetShiftState done [17:50:45]FM_GetShiftState done [17:50:45]opened in 1715905068 [17:50:45]opened+sec_in_day 1715991468 [17:50:45]quantity*price = 149400 [17:50:45]sum+1 = 149401 [17:50:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1494.00 НСП 1% : 13.22 НДС 12% : 158.65 Наличными: 1494.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 110 17.05.2024 17:50 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67701 ФПД: 153972597611629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T175046&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67701&fm=153972597611629&tin=02508201610067®Number=0000000000091845&sum=149400 [17:50:46]StoreToDocumentArchive [17:50:46]shift 358 fd 67701 [17:50:46]save to /storage/0358/doc_00067701 [17:50:46]save last doc name /storage/0358/doc_00067701 to /storage/kkm_last_doc_name [17:50:46]save OK [17:50:46]Clear old archive folders... [17:50:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:50:46]tlvbuf is 01B19340 [17:50:46]SAM_PROTO_ClearQueue [17:50:46]wFMCommunicate request_size=4 [17:50:46]MH_SAM_APDU [17:50:46]CAPDU: 80 09 00 00 [17:50:46]Write to MH i2c: E2 08 00 D2 06 80 09 00 00 00 00 00 00 4A [17:50:46]Write i2c OK [17:50:46]MH_I2C_Read... [17:50:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:46]Read from MH i2c: E2 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: E2 03 00 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: E2 03 00 D2 06 00 90 00 4C [17:50:46]RAPDU: 90 00 [17:50:46]wFMCommunicate OK [17:50:46]SAM_PROTO_ClearQueue done [17:50:46]KKMCreateOFDPacket [17:50:46]OFDProtocolAddRootSTLVToBuf [17:50:46]FM_MakeSignedData [17:50:46]FM_MakeSignedData [17:50:46]SAM_PROTO_SignData [17:50:46]wFMCommunicate request_size=4 [17:50:46]MH_SAM_APDU [17:50:46]CAPDU: 80 0D 01 02 [17:50:46]Write to MH i2c: E2 08 00 D3 06 80 0D 01 02 00 00 00 00 52 [17:50:46]Write i2c OK [17:50:46]MH_I2C_Read... [17:50:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:46]Read from MH i2c: E2 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: E2 03 00 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: E2 03 00 D3 06 00 90 00 4D [17:50:46]RAPDU: 90 00 [17:50:46]wFMCommunicate OK [17:50:46]wFMCommunicate request_size=255 [17:50:46]MH_SAM_APDU [17:50:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 98 47 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 3D 00 00 00 00 07 04 06 00 98 47 02 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 F6 98 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 8C 09 89 FC [17:50:46]Write to MH i2c: E2 02 01 D4 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 20 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 98 47 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 3D 00 00 00 00 07 04 06 00 98 47 02 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 F6 98 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 8C 09 89 FC 00 00 1D [17:50:46]Write i2c OK [17:50:46]MH_I2C_Read... [17:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:46]Read from MH i2c: E2 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: E2 03 00 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: E2 03 00 D4 06 00 90 00 4E [17:50:46]RAPDU: 90 00 [17:50:46]wFMCommunicate OK [17:50:46]wFMCommunicate request_size=7 [17:50:46]MH_SAM_APDU [17:50:46]CAPDU: 80 0D 02 02 02 5C 6D [17:50:46]Write to MH i2c: E2 0A 00 D5 06 80 0D 02 02 02 00 5C 6D 00 00 22 [17:50:46]Write i2c OK [17:50:46]MH_I2C_Read... [17:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:46]Read from MH i2c: E2 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: E2 03 00 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: E2 03 00 D5 06 00 90 00 4F [17:50:46]RAPDU: 90 00 [17:50:46]wFMCommunicate OK [17:50:46]wFMCommunicate request_size=4 [17:50:46]MH_SAM_APDU [17:50:46]CAPDU: 80 0D 03 02 [17:50:46]Write to MH i2c: E2 08 00 D6 06 80 0D 03 02 00 00 00 00 57 [17:50:46]Write i2c OK [17:50:46]MH_I2C_Read... [17:50:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:46]Read from MH i2c: E2 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: E2 0B 00 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: E2 0B 00 D6 06 00 2E 16 1A 88 1C B8 91 A7 90 00 4A [17:50:46]RAPDU: 2E 16 1A 88 1C B8 91 A7 90 00 [17:50:46]wFMCommunicate OK [17:50:46]SAM_PROTO_SignData done [17:50:46]FM_MakeSignedData done [17:50:46]CreateOFDProtocolMessage [17:50:46]wFMCommunicate request_size=4 [17:50:46]MH_SAM_APDU [17:50:46]CAPDU: 80 11 00 00 [17:50:46]Write to MH i2c: E2 08 00 D7 06 80 11 00 00 00 00 00 00 57 [17:50:46]Write i2c OK [17:50:46]MH_I2C_Read... [17:50:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:46]Read from MH i2c: E2 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: E2 17 00 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: E2 17 00 D7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AD [17:50:46]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:46]wFMCommunicate OK [17:50:46]CreateOFDProtocolMessage done [17:50:46]OFDSenderStorePacket 67701 [17:50:46]StoreOFDPacket docnum=67701 [17:50: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 96 DA 04 01 4A AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 98 47 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 3D 00 00 00 00 07 04 06 00 98 47 02 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 F6 98 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 8C 09 89 FC 5C 6D 2E 16 1A 88 1C B8 91 A7 [17:50:46]CheckFolder [17:50:46]dirname=/storage/ofd_packets [17:50:46]CheckFolder done [17:50:46]ProducePacketName [17:50:46]name=ofd_packets/00067701 [17:50:46]NVStorageSaveData ofd_packets/00067701 [17:50:46]File name is /storage/ofd_packets/00067701 [17:50:46]Write 298 bytes [17:50:46]NVStorageSaveData done [17:50:46]OFDSenderStorePacket done [17:50:46]KKMCreateOFDPacket done [17:50:46]NVStorageSaveData kkm_last_timestamp [17:50:46]File name is /storage/kkm_last_timestamp [17:50:46]Write 4 bytes [17:50:46]NVStorageSaveData done [17:50:46]ExternCall_PrintAddStr [17:50:46]wPrintStart [17:50:46]Write to MH i2c: 01 00 00 D8 06 DE [17:50:46]Write i2c OK [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: 01 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: 01 07 00 [17:50:46]MH_I2C_Read... [17:50:46]Read from MH i2c: 01 07 00 D8 06 00 00 00 00 00 FF 0F F3 [17:50:46]RasterBufferAndPrint [17:50:46]line Счет N : (1)507855 [17:50:46]line ИНН: 02508201610067 [17:50:46]line Контрольно-Кассовый Чек [17:50:46]line ПРОДАЖА [17:50:46]line ТРК (МРК, ГНК) : 11 [17:50:46]line Товар: 2710194210 [17:50:46]line ДТ-К-5 [17:50:46]line 20.000 * 74.70 [17:50:46]line = 1494.00 [17:50:46]line НДС 12% НСП 1% [17:50:46]line > о реализуемом товаре [17:50:46]line ИТОГО: 1494.00 [17:50:46]line НСП 1% : 13.22 [17:50:46]line НДС 12% : 158.65 [17:50:46]line Наличными: 1494.00 [17:50:46]line Безнал.: 0.00 [17:50:46]line Место: АЗС № 91 "Партнер Нефть" [17:50:46]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:50:46]line СНО: Общий режим [17:50:46]line Чек 110 17.05.2024 17:50 [17:50:46]line Смена: 358 ФФД: 1.0 [17:50:47]line ЗНМ: 0300000119 [17:50:47]line РНМ: 0000000000091845 [17:50:47]line Версия ККМ: 001 [17:50:47]line ФМ: 0000000000871829 [17:50:47]line ФД: 67701 [17:50:47]line ФПД: 153972597611629 [17:50:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T175046&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67701&fm=153972597611629&tin=02508201610067®Number=0000000000091845&sum=149400 [17:50:47]OFD Sender: Processing packet 67701 [packets to send 35, broken 34] [17:50:47]ProducePacketName [17:50:47]name=ofd_packets/00067701 [17:50:47]OFD Sender: To server: pG, [17:50:47]CommunicateWithHost lk.salyk.kg:30040 [17:50:47]ConnectInit lk.salyk.kg [17:50:47]written 0, free lines is 4095 [17:50:47]Connected sock=10 [17:50:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 96 DA 04 01 4A AC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 98 47 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 3D 00 00 00 00 07 04 06 00 98 47 02 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 F6 98 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 8C 09 89 FC 5C 6D 2E 16 1A 88 1C B8 91 A7 [17:50: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 4B 73 47 00 B5 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 75 08 01 00 F4 03 04 00 CD 40 47 66 B6 04 01 00 00 3B 9A 6E 9C 28 20 96 BA [17:50:47]CommunicateWithHost err = 0 [17:50:47]CheckOFDResponse [17:50:47]1017 (14) - 77093643461234 [17:50:47]1041 (16) - 0000000000871829 [17:50:47]1040 (4) - 67701 [17:50:47]1012 (4) - 17.05.2024 11:34 [17:50:47]1206 (1) - 0 [17:50:47]OFD Sender: Remove packet 67701 [17:50:47]ProducePacketName [17:50:47]name=ofd_packets/00067701 [17:50:47]NVStorageDeleteData [17:50:47]Write to MH i2c: 01 00 00 FF 06 05 [17:50:47]Write i2c OK [17:50:47]MH_I2C_Read... [17:50:47]Read from MH i2c: 01 [17:50:47]MH_I2C_Read... [17:50:47]Read from MH i2c: 01 07 00 [17:50:47]MH_I2C_Read... [17:50:47]Read from MH i2c: 01 07 00 FF 06 00 00 00 00 00 FC 0C 14 [17:50:47]RasterBufferAndPrint [17:50:47]line [17:50:47]line [17:50:47]line [17:50:47]line [17:50:47]line [17:50:47]written 0, free lines is 3328 [17:50:47]MH_Cut [17:50:47]Write to MH i2c: D1 01 00 06 07 01 DF [17:50:47]Write i2c OK [17:50:47]MH_I2C_Read... [17:50:47]Read from MH i2c: D1 [17:50:47]MH_I2C_Read... [17:50:47]Read from MH i2c: D1 01 00 [17:50:47]MH_I2C_Read... [17:50:47]Read from MH i2c: D1 01 00 06 07 00 DE [17:50:47]Write to MH i2c: 01 00 00 07 07 0E [17:50:47]Write i2c OK [17:50:47]MH_I2C_Read... [17:50:47]OFD Sender: No OFD packet to send [17:50:48]*** Cut start [17:50:48]*** Purtial cut [17:50:48]*** Stage 1: CUTSNS_PIN = 1 [17:50:48]Read from MH i2c: 01 [17:50:48]MH_I2C_Read... [17:50:48]*** Stop cut motor [17:50:48]*** Cut end [17:50:48]Read from MH i2c: 01 07 00 [17:50:48]MH_I2C_Read... [17:50:48]Read from MH i2c: 01 07 00 07 07 00 00 00 00 00 FF 0F 23 [17:50:48]process_action close_receipt done [17:50:48]requested_data is exist [17:50:48]produce_requested_data [17:50:48]requested_item fm.sn is exist - process it [17:50:48]wFMCommunicate request_size=4 [17:50:48]MH_SAM_APDU [17:50:48]CAPDU: 80 11 00 00 [17:50:48]Write to MH i2c: E2 08 00 08 07 80 11 00 00 00 00 00 00 89 [17:50:48]Write i2c OK [17:50:48]MH_I2C_Read... [17:50:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:48]Read from MH i2c: E2 [17:50:48]MH_I2C_Read... [17:50:48]Read from MH i2c: E2 17 00 [17:50:48]MH_I2C_Read... [17:50:48]Read from MH i2c: E2 17 00 08 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DF [17:50:48]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:48]wFMCommunicate OK [17:50:48]requested_item fd.num is exist - process it [17:50:48]SAM_PROTO_GetFieldsCounters [17:50:48]wFMCommunicate request_size=4 [17:50:48]MH_SAM_APDU [17:50:48]CAPDU: 80 13 00 00 [17:50:48]Write to MH i2c: E2 08 00 09 07 80 13 00 00 00 00 00 00 8C [17:50:48]Write i2c OK [17:50:48]MH_I2C_Read... [17:50:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:48]Read from MH i2c: E2 [17:50:48]MH_I2C_Read... [17:50:48]Read from MH i2c: E2 62 00 [17:50:48]MH_I2C_Read... [17:50:48]Read from MH i2c: E2 62 00 09 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 75 08 01 00 0E 04 04 00 66 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 E1 [17:50: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 75 08 01 00 0E 04 04 00 66 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 [17:50:48]wFMCommunicate OK [17:50:48]SAM_PROTO_GetFieldsCounters done [17:50:48]requested_item shift.num is exist - process it [17:50:48]requested_item shift.opened is exist - process it [17:50:48]req_shift_opened [17:50:48]FM_GetShiftState [17:50:48]SAM_PROTO_GetShiftState [17:50:48]wFMCommunicate request_size=4 [17:50:48]MH_SAM_APDU [17:50:48]CAPDU: 80 13 01 00 [17:50:48]Write to MH i2c: E2 08 00 0A 07 80 13 01 00 00 00 00 00 8E [17:50:48]Write i2c OK [17:50:48]MH_I2C_Read... [17:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:48]Read from MH i2c: E2 [17:50:48]MH_I2C_Read... [17:50:48]Read from MH i2c: E2 0E 00 [17:50:48]MH_I2C_Read... [17:50:48]Read from MH i2c: E2 0E 00 0A 07 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 14 [17:50:48]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:50:48]wFMCommunicate OK [17:50:48]SAM_PROTO_GetShiftState done [17:50:48]FM_GetShiftState done [17:50:48]req_shift_opened done [17:50:48]requested_item shift.open_date is exist - process it [17:50:48]req_shift_open_date [17:50:48]req_shift_open_date done [17:50:48]produce_requested_data done [17:50:48]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67701,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [17:50:48]process_action_free close_receipt [17:50:48]json_value_free [17:50:48]json_value_free done [17:50:48]process_json_proto returns [17:50:48]Send response to host [17:50:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67701,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [17:50:48]free response buf [17:50:48]execute_script done [17:50:48]execute_script returns [17:50:48]free content buf [17:50:48]Sock 9.Close socket [17:50:48]Sock 9.Thread stoped [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:16]accept exits with 7 [17:51:16]New connection [17:51:16]New thread 3066608996 created [17:51:16]Thread 3066752356 joined [17:51:16]Waiting for new connection... [17:51:16] Sock 7.Parse request [17:51:16]Sock 7.Check first char [17:51:16]Sock 7.First char is OK [17:51:16]request: POST /json_proto HTTP/1.0 [17:51:16]Method: POST [17:51:16]URL: /json_proto [17:51:16]Method is POST - this is cgi request [17:51:16]url: /json_proto [17:51:16]query_string will be loaded in cgi processing [17:51:16]execute_cgi json_proto POST (null) [17:51:16]execute_cgi path=json_proto method=POST [17:51:16]POST find Content-Length [17:51:16]Host: 172.17.41.195:8080 [17:51:16]Content-Length: 631 [17:51:16]Content-Type: application/json [17:51:16] [17:51:16]POST finish read [17:51:16]Found Content-Length = 631 [17:51:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12105", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:16]execute_script... [17:51: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)12105", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:16]POST & json_proto [17:51:16]process_json_proto [17:51:16]json parsed OK: [17:51:16]protocol is kg_v1.0 [17:51:16]action value=close_receipt [17:51:16]process_action close_receipt [17:51:16]cmd_close_receipt [17:51:16]MH_GetDate [17:51:16]Write to MH i2c: F0 00 00 0B 07 01 [17:51:16]Write i2c OK [17:51:16]MH_I2C_Read... [17:51:16]Read from MH i2c: F0 [17:51:16]MH_I2C_Read... [17:51:16]Read from MH i2c: F0 09 00 [17:51:16]MH_I2C_Read... [17:51:16]Read from MH i2c: F0 09 00 0B 07 00 15 99 47 66 FC 21 6F 64 55 [17:51:16]GetLastDocTimeStamp 1715968246 [17:51:16]current date 1715968277 [17:51:16]FM_GetShiftState [17:51:16]SAM_PROTO_GetShiftState [17:51:16]wFMCommunicate request_size=4 [17:51:16]MH_SAM_APDU [17:51:16]CAPDU: 80 13 01 00 [17:51:16]Write to MH i2c: E2 08 00 0C 07 80 13 01 00 00 00 00 00 90 [17:51:16]Write i2c OK [17:51:16]MH_I2C_Read... [17:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:16]Read from MH i2c: E2 [17:51:16]MH_I2C_Read... [17:51:16]Read from MH i2c: E2 0E 00 [17:51:16]MH_I2C_Read... [17:51:16]Read from MH i2c: E2 0E 00 0C 07 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 16 [17:51:16]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:51:16]wFMCommunicate OK [17:51:16]SAM_PROTO_GetShiftState done [17:51:16]FM_GetShiftState done [17:51:16]opened in 1715905068 [17:51:16]opened+sec_in_day 1715991468 [17:51:16]quantity*price = 5500 [17:51:16]sum+1 = 5501 [17:51:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 55.00 НСП 1% : 0.49 НДС 12% : 5.84 Наличными: 55.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 111 17.05.2024 17:51 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67702 ФПД: 139223441528082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T175117&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67702&fm=139223441528082&tin=02508201610067®Number=0000000000091845&sum=5500 0 [17:51:17]StoreToDocumentArchive [17:51:17]shift 358 fd 67702 [17:51:17]save to /storage/0358/doc_00067702 [17:51:17]save last doc name /storage/0358/doc_00067702 to /storage/kkm_last_doc_name [17:51:17]save OK [17:51:17]Clear old archive folders... [17:51:17]ProcessDocumentItem done err = 0, tmpTLVsize=271 [17:51:17]tlvbuf is 01AF6350 [17:51:17]SAM_PROTO_ClearQueue [17:51:17]wFMCommunicate request_size=4 [17:51:17]MH_SAM_APDU [17:51:17]CAPDU: 80 09 00 00 [17:51:17]Write to MH i2c: E2 08 00 19 07 80 09 00 00 00 00 00 00 92 [17:51:17]Write i2c OK [17:51:17]MH_I2C_Read... [17:51:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:17]Read from MH i2c: E2 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 03 00 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 03 00 19 07 00 90 00 94 [17:51:17]RAPDU: 90 00 [17:51:17]wFMCommunicate OK [17:51:17]SAM_PROTO_ClearQueue done [17:51:17]KKMCreateOFDPacket [17:51:17]OFDProtocolAddRootSTLVToBuf [17:51:17]FM_MakeSignedData [17:51:17]FM_MakeSignedData [17:51:17]SAM_PROTO_SignData [17:51:17]wFMCommunicate request_size=4 [17:51:17]MH_SAM_APDU [17:51:17]CAPDU: 80 0D 01 02 [17:51:17]Write to MH i2c: E2 08 00 1A 07 80 0D 01 02 00 00 00 00 9A [17:51:17]Write i2c OK [17:51:17]MH_I2C_Read... [17:51:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:17]Read from MH i2c: E2 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 03 00 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 03 00 1A 07 00 90 00 95 [17:51:17]RAPDU: 90 00 [17:51:17]wFMCommunicate OK [17:51:17]wFMCommunicate request_size=255 [17:51:17]MH_SAM_APDU [17:51: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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 15 99 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [17:51:17]Write to MH i2c: E2 02 01 1B 07 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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 15 99 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 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 EB [17:51:17]Write i2c OK [17:51:17]MH_I2C_Read... [17:51:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:17]Read from MH i2c: E2 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 03 00 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 03 00 1B 07 00 90 00 96 [17:51:17]RAPDU: 90 00 [17:51:17]wFMCommunicate OK [17:51:17]wFMCommunicate request_size=30 [17:51:17]MH_SAM_APDU [17:51:17]CAPDU: 80 0D 02 02 19 30 38 37 31 38 32 39 10 04 04 00 76 08 01 00 35 04 06 00 7E 9F 7B C6 D5 12 [17:51:17]Write to MH i2c: E2 21 00 1C 07 80 0D 02 02 19 00 30 38 37 31 38 32 39 10 04 04 00 76 08 01 00 35 04 06 00 7E 9F 7B C6 D5 12 00 00 5D [17:51:17]Write i2c OK [17:51:17]MH_I2C_Read... [17:51:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:17]Read from MH i2c: E2 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 03 00 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 03 00 1C 07 00 90 00 97 [17:51:17]RAPDU: 90 00 [17:51:17]wFMCommunicate OK [17:51:17]wFMCommunicate request_size=4 [17:51:17]MH_SAM_APDU [17:51:17]CAPDU: 80 0D 03 02 [17:51:17]Write to MH i2c: E2 08 00 1D 07 80 0D 03 02 00 00 00 00 9F [17:51:17]Write i2c OK [17:51:17]MH_I2C_Read... [17:51:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:17]Read from MH i2c: E2 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 0B 00 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 0B 00 1D 07 00 CD 5C BE 54 BB 4C 75 80 90 00 D7 [17:51:17]RAPDU: CD 5C BE 54 BB 4C 75 80 90 00 [17:51:17]wFMCommunicate OK [17:51:17]SAM_PROTO_SignData done [17:51:17]FM_MakeSignedData done [17:51:17]CreateOFDProtocolMessage [17:51:17]wFMCommunicate request_size=4 [17:51:17]MH_SAM_APDU [17:51:17]CAPDU: 80 11 00 00 [17:51:17]Write to MH i2c: E2 08 00 1E 07 80 11 00 00 00 00 00 00 9F [17:51:17]Write i2c OK [17:51:17]MH_I2C_Read... [17:51:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:17]Read from MH i2c: E2 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 17 00 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: E2 17 00 1E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F5 [17: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 [17:51:17]wFMCommunicate OK [17:51:17]CreateOFDProtocolMessage done [17:51:17]OFDSenderStorePacket 67702 [17:51:17]StoreOFDPacket docnum=67702 [17:51: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 80 26 1B 01 99 B3 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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 15 99 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 7E 9F 7B C6 D5 12 CD 5C BE 54 BB 4C 75 80 [17:51:17]CheckFolder [17:51:17]dirname=/storage/ofd_packets [17:51:17]CheckFolder done [17:51:17]ProducePacketName [17:51:17]name=ofd_packets/00067702 [17:51:17]NVStorageSaveData ofd_packets/00067702 [17:51:17]File name is /storage/ofd_packets/00067702 [17:51:17]Write 321 bytes [17:51:17]NVStorageSaveData done [17:51:17]OFDSenderStorePacket done [17:51:17]KKMCreateOFDPacket done [17:51:17]NVStorageSaveData kkm_last_timestamp [17:51:17]File name is /storage/kkm_last_timestamp [17:51:17]Write 4 bytes [17:51:17]NVStorageSaveData done [17:51:17]ExternCall_PrintAddStr [17:51:17]wPrintStart [17:51:17]Write to MH i2c: 01 00 00 1F 07 26 [17:51:17]Write i2c OK [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: 01 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: 01 07 00 [17:51:17]MH_I2C_Read... [17:51:17]Read from MH i2c: 01 07 00 1F 07 00 00 00 00 00 FF 0F 3B [17:51:17]RasterBufferAndPrint [17:51:17]line Счет N : (3)12105 [17:51:17]line ИНН: 02508201610067 [17:51:17]line Контрольно-Кассовый Чек [17:51:17]line ПРОДАЖА [17:51:17]line Товар: 4700000160204 [17:51:17]line Вода Легенда 1,5л [17:51:17]line 1.000 * 55.00 [17:51:17]line = 55.00 [17:51:17]line НДС 12% НСП 1% [17:51:17]line > о реализуемом товаре [17:51:17]line ИТОГО: 55.00 [17:51:17]line НСП 1% : 0.49 [17:51:17]line НДС 12% : 5.84 [17:51:17]line Наличными: 55.00 [17:51:17]line Безнал.: 0.00 [17:51:17]line Место: АЗС № 91 "Партнер Нефть" [17:51:17]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:51:17]line СНО: Общий режим [17:51:17]line Чек 111 17.05.2024 17:51 [17:51:17]line Смена: 358 ФФД: 1.0 [17:51:17]line ЗНМ: 0300000119 [17:51:17]line РНМ: 0000000000091845 [17:51:17]line Версия ККМ: 001 [17:51:17]line ФМ: 0000000000871829 [17:51:17]line ФД: 67702 [17:51:17]line ФПД: 139223441528082 [17:51:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T175117&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67702&fm=139223441528082&tin=02508201610067®Number=0000000000091845&sum=5500 [17:51:18]line 0 [17:51:18]OFD Sender: Processing packet 67702 [packets to send 35, broken 34] [17:51:18]ProducePacketName [17:51:18]name=ofd_packets/00067702 [17:51:18]OFD Sender: To server: pG, [17:51:18]CommunicateWithHost lk.salyk.kg:30040 [17:51:18]ConnectInit lk.salyk.kg [17:51:18]written 0, free lines is 4095 [17:51:18]Connected sock=10 [17:51: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 80 26 1B 01 99 B3 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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 15 99 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 7E 9F 7B C6 D5 12 CD 5C BE 54 BB 4C 75 80 [17:51: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 55 5E 47 00 71 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 76 08 01 00 F4 03 04 00 ED 40 47 66 B6 04 01 00 00 56 A0 C5 F5 0A A5 FD A8 [17:51:18]CommunicateWithHost err = 0 [17:51:18]CheckOFDResponse [17:51:18]1017 (14) - 77093643461234 [17:51:18]1041 (16) - 0000000000871829 [17:51:18]1040 (4) - 67702 [17:51:18]1012 (4) - 17.05.2024 11:35 [17:51:18]1206 (1) - 0 [17:51:18]OFD Sender: Remove packet 67702 [17:51:18]ProducePacketName [17:51:18]name=ofd_packets/00067702 [17:51:18]NVStorageDeleteData [17:51:18]Write to MH i2c: 01 00 00 46 07 4D [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: 01 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: 01 07 00 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: 01 07 00 46 07 00 00 00 00 00 E6 0C 46 [17:51:18]RasterBufferAndPrint [17:51:18]line [17:51:18]line [17:51:18]line [17:51:18]line [17:51:18]line [17:51:18]written 0, free lines is 3306 [17:51:18]MH_Cut [17:51:18]Write to MH i2c: D1 01 00 4D 07 01 26 [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: D1 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: D1 01 00 [17:51:18]MH_I2C_Read... [17:51:18]Read from MH i2c: D1 01 00 4D 07 00 25 [17:51:18]Write to MH i2c: 01 00 00 4E 07 55 [17:51:18]Write i2c OK [17:51:18]MH_I2C_Read... [17:51:19]OFD Sender: No OFD packet to send [17:51:19]*** Cut start [17:51:19]*** Purtial cut [17:51:19]*** CUTSNS_PIN = 0 [17:51:19]*** Stage 1: CUTSNS_PIN = 1 [17:51:21]Read from MH i2c: 01 [17:51:21]MH_I2C_Read... [17:51:21]*** Stop cut motor [17:51:21]*** Cut end [17:51:21]Read from MH i2c: 01 07 00 [17:51:21]MH_I2C_Read... [17:51:21]Read from MH i2c: 01 07 00 4E 07 00 00 00 00 00 FF 0F 6A [17:51:21]process_action close_receipt done [17:51:21]requested_data is exist [17:51:21]produce_requested_data [17:51:21]requested_item fm.sn is exist - process it [17:51:21]wFMCommunicate request_size=4 [17:51:21]MH_SAM_APDU [17:51:21]CAPDU: 80 11 00 00 [17:51:21]Write to MH i2c: E2 08 00 4F 07 80 11 00 00 00 00 00 00 D0 [17:51:21]Write i2c OK [17:51:21]MH_I2C_Read... [17:51:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:21]Read from MH i2c: E2 [17:51:21]MH_I2C_Read... [17:51:21]Read from MH i2c: E2 17 00 [17:51:21]MH_I2C_Read... [17:51:21]Read from MH i2c: E2 17 00 4F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 26 [17:51: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:51:21]wFMCommunicate OK [17:51:21]requested_item fd.num is exist - process it [17:51:21]SAM_PROTO_GetFieldsCounters [17:51:21]wFMCommunicate request_size=4 [17:51:21]MH_SAM_APDU [17:51:21]CAPDU: 80 13 00 00 [17:51:21]Write to MH i2c: E2 08 00 50 07 80 13 00 00 00 00 00 00 D3 [17:51:21]Write i2c OK [17:51:21]MH_I2C_Read... [17:51:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:21]Read from MH i2c: E2 [17:51:21]MH_I2C_Read... [17:51:21]Read from MH i2c: E2 62 00 [17:51:21]MH_I2C_Read... [17:51:21]Read from MH i2c: E2 62 00 50 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 76 08 01 00 0E 04 04 00 66 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 2C [17:51: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 76 08 01 00 0E 04 04 00 66 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 [17:51:21]wFMCommunicate OK [17:51:21]SAM_PROTO_GetFieldsCounters done [17:51:21]requested_item shift.num is exist - process it [17:51:21]requested_item shift.opened is exist - process it [17:51:21]req_shift_opened [17:51:21]FM_GetShiftState [17:51:21]SAM_PROTO_GetShiftState [17:51:21]wFMCommunicate request_size=4 [17:51:21]MH_SAM_APDU [17:51:21]CAPDU: 80 13 01 00 [17:51:21]Write to MH i2c: E2 08 00 51 07 80 13 01 00 00 00 00 00 D5 [17:51:21]Write i2c OK [17:51:21]MH_I2C_Read... [17:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:21]Read from MH i2c: E2 [17:51:21]MH_I2C_Read... [17:51:21]Read from MH i2c: E2 0E 00 [17:51:21]MH_I2C_Read... [17:51:21]Read from MH i2c: E2 0E 00 51 07 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 5B [17:51:21]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:51:21]wFMCommunicate OK [17:51:21]SAM_PROTO_GetShiftState done [17:51:21]FM_GetShiftState done [17:51:21]req_shift_opened done [17:51:21]requested_item shift.open_date is exist - process it [17:51:21]req_shift_open_date [17:51:21]req_shift_open_date done [17:51:21]produce_requested_data done [17:51:21]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67702,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [17:51:21]process_action_free close_receipt [17:51:21]json_value_free [17:51:21]json_value_free done [17:51:21]process_json_proto returns [17:51:21]Send response to host [17:51:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67702,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [17:51:21]free response buf [17:51:21]execute_script done [17:51:21]execute_script returns [17:51:21]free content buf [17:51:21]Sock 7.Close socket [17:51:21]Sock 7.Thread stoped [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:34]accept exits with 9 [17:51:34]New connection [17:51:34]New thread 3066752356 created [17:51:34]Thread 3066608996 joined [17:51:34]Waiting for new connection... [17:51:34] Sock 9.Parse request [17:51:34]Sock 9.Check first char [17:51:34]Sock 9.First char is OK [17:51:34]request: POST /json_proto HTTP/1.0 [17:51:34]Method: POST [17:51:34]URL: /json_proto [17:51:34]Method is POST - this is cgi request [17:51:34]url: /json_proto [17:51:34]query_string will be loaded in cgi processing [17:51:34]execute_cgi json_proto POST (null) [17:51:34]execute_cgi path=json_proto method=POST [17:51:34]POST find Content-Length [17:51:34]Host: 172.17.41.195:8080 [17:51:34]Content-Length: 803 [17:51:34]Content-Type: application/json [17:51:34] [17:51:34]POST finish read [17:51:34]Found Content-Length = 803 [17:51:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:34]execute_script... [17:51: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)507856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:34]POST & json_proto [17:51:34]process_json_proto [17:51:34]json parsed OK: [17:51:34]protocol is kg_v1.0 [17:51:34]action value=close_receipt [17:51:34]process_action close_receipt [17:51:34]cmd_close_receipt [17:51:34]MH_GetDate [17:51:34]Write to MH i2c: F0 00 00 52 07 48 [17:51:34]Write i2c OK [17:51:34]MH_I2C_Read... [17:51:34]Read from MH i2c: F0 [17:51:34]MH_I2C_Read... [17:51:34]Read from MH i2c: F0 09 00 [17:51:34]MH_I2C_Read... [17:51:34]Read from MH i2c: F0 09 00 52 07 00 27 99 47 66 FC 21 6F 64 AE [17:51:34]GetLastDocTimeStamp 1715968277 [17:51:34]current date 1715968295 [17:51:34]FM_GetShiftState [17:51:34]SAM_PROTO_GetShiftState [17:51:34]wFMCommunicate request_size=4 [17:51:34]MH_SAM_APDU [17:51:34]CAPDU: 80 13 01 00 [17:51:34]Write to MH i2c: E2 08 00 53 07 80 13 01 00 00 00 00 00 D7 [17:51:34]Write i2c OK [17:51:34]MH_I2C_Read... [17:51:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:34]Read from MH i2c: E2 [17:51:34]MH_I2C_Read... [17:51:34]Read from MH i2c: E2 0E 00 [17:51:34]MH_I2C_Read... [17:51:34]Read from MH i2c: E2 0E 00 53 07 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 5D [17:51:34]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:51:34]wFMCommunicate OK [17:51:34]SAM_PROTO_GetShiftState done [17:51:34]FM_GetShiftState done [17:51:34]opened in 1715905068 [17:51:34]opened+sec_in_day 1715991468 [17:51:34]quantity*price = 100066 [17:51:34]sum+1 = 100067 [17:51: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 17.05.2024 17:51 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67703 ФПД: 36180358370440 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T175135&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67703&fm=36180358370440&tin=02508201610067®Number=0000000000091845&sum=100066 [17:51:35]StoreToDocumentArchive [17:51:35]shift 358 fd 67703 [17:51:35]save to /storage/0358/doc_00067703 [17:51:35]save last doc name /storage/0358/doc_00067703 to /storage/kkm_last_doc_name [17:51:35]save OK [17:51:35]Clear old archive folders... [17:51:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:35]tlvbuf is 01AE8640 [17:51:35]SAM_PROTO_ClearQueue [17:51:35]wFMCommunicate request_size=4 [17:51:35]MH_SAM_APDU [17:51:35]CAPDU: 80 09 00 00 [17:51:35]Write to MH i2c: E2 08 00 60 07 80 09 00 00 00 00 00 00 D9 [17:51:35]Write i2c OK [17:51:35]MH_I2C_Read... [17:51:35]Read from MH i2c: E2 [17:51:35]MH_I2C_Read... [17:51:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:35]Read from MH i2c: E2 03 00 [17:51:35]MH_I2C_Read... [17:51:35]Read from MH i2c: E2 03 00 60 07 00 90 00 DB [17:51:35]RAPDU: 90 00 [17:51:35]wFMCommunicate OK [17:51:35]SAM_PROTO_ClearQueue done [17:51:35]KKMCreateOFDPacket [17:51:35]OFDProtocolAddRootSTLVToBuf [17:51:35]FM_MakeSignedData [17:51:35]FM_MakeSignedData [17:51:35]SAM_PROTO_SignData [17:51:35]wFMCommunicate request_size=4 [17:51:35]MH_SAM_APDU [17:51:35]CAPDU: 80 0D 01 02 [17:51:35]Write to MH i2c: E2 08 00 61 07 80 0D 01 02 00 00 00 00 E1 [17:51:35]Write i2c OK [17:51:35]MH_I2C_Read... [17:51:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:35]Read from MH i2c: E2 [17:51:35]MH_I2C_Read... [17:51:35]Read from MH i2c: E2 03 00 [17:51:35]MH_I2C_Read... [17:51:35]Read from MH i2c: E2 03 00 61 07 00 90 00 DC [17:51:35]RAPDU: 90 00 [17:51:35]wFMCommunicate OK [17:51:35]wFMCommunicate request_size=255 [17:51:35]MH_SAM_APDU [17:51: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 27 99 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 20 [17:51:35]Write to MH i2c: E2 02 01 62 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 27 99 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 20 00 00 22 [17:51:35]Write i2c OK [17:51:35]MH_I2C_Read... [17:51:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:36]Read from MH i2c: E2 [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: E2 03 00 [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: E2 03 00 62 07 00 90 00 DD [17:51:36]RAPDU: 90 00 [17:51:36]wFMCommunicate OK [17:51:36]wFMCommunicate request_size=10 [17:51:36]MH_SAM_APDU [17:51:36]CAPDU: 80 0D 02 02 05 E7 E5 68 94 88 [17:51:36]Write to MH i2c: E2 0D 00 63 07 80 0D 02 02 05 00 E7 E5 68 94 88 00 00 3E [17:51:36]Write i2c OK [17:51:36]MH_I2C_Read... [17:51:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:36]Read from MH i2c: E2 [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: E2 03 00 [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: E2 03 00 63 07 00 90 00 DE [17:51:36]RAPDU: 90 00 [17:51:36]wFMCommunicate OK [17:51:36]wFMCommunicate request_size=4 [17:51:36]MH_SAM_APDU [17:51:36]CAPDU: 80 0D 03 02 [17:51:36]Write to MH i2c: E2 08 00 64 07 80 0D 03 02 00 00 00 00 E6 [17:51:36]Write i2c OK [17:51:36]MH_I2C_Read... [17:51:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:36]Read from MH i2c: E2 [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: E2 0B 00 [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: E2 0B 00 64 07 00 EA 74 F3 6D C4 F2 64 11 90 00 D0 [17:51:36]RAPDU: EA 74 F3 6D C4 F2 64 11 90 00 [17:51:36]wFMCommunicate OK [17:51:36]SAM_PROTO_SignData done [17:51:36]FM_MakeSignedData done [17:51:36]CreateOFDProtocolMessage [17:51:36]wFMCommunicate request_size=4 [17:51:36]MH_SAM_APDU [17:51:36]CAPDU: 80 11 00 00 [17:51:36]Write to MH i2c: E2 08 00 65 07 80 11 00 00 00 00 00 00 E6 [17:51:36]Write i2c OK [17:51:36]MH_I2C_Read... [17:51:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:36]Read from MH i2c: E2 [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: E2 17 00 [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: E2 17 00 65 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3C [17: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 [17:51:36]wFMCommunicate OK [17:51:36]CreateOFDProtocolMessage done [17:51:36]OFDSenderStorePacket 67703 [17:51:36]StoreOFDPacket docnum=67703 [17:51: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 98 2B 07 01 24 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 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 27 99 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 20 E7 E5 68 94 88 EA 74 F3 6D C4 F2 64 11 [17:51:36]CheckFolder [17:51:36]dirname=/storage/ofd_packets [17:51:36]CheckFolder done [17:51:36]ProducePacketName [17:51:36]name=ofd_packets/00067703 [17:51:36]NVStorageSaveData ofd_packets/00067703 [17:51:36]File name is /storage/ofd_packets/00067703 [17:51:36]Write 301 bytes [17:51:36]NVStorageSaveData done [17:51:36]OFDSenderStorePacket done [17:51:36]KKMCreateOFDPacket done [17:51:36]NVStorageSaveData kkm_last_timestamp [17:51:36]File name is /storage/kkm_last_timestamp [17:51:36]Write 4 bytes [17:51:36]NVStorageSaveData done [17:51:36]ExternCall_PrintAddStr [17:51:36]wPrintStart [17:51:36]Write to MH i2c: 01 00 00 66 07 6D [17:51:36]Write i2c OK [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: 01 [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: 01 07 00 [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: 01 07 00 66 07 00 00 00 00 00 FF 0F 82 [17:51:36]RasterBufferAndPrint [17:51:36]line Счет N : (1)507856 [17:51:36]line ИНН: 02508201610067 [17:51:36]line Контрольно-Кассовый Чек [17:51:36]line ПРОДАЖА [17:51:36]line ТРК (МРК, ГНК) : 43 [17:51:36]line Товар: 2710124130 [17:51:36]line Аи-92-К-5 [17:51:36]line 14.980 * 66.80 [17:51:36]line = 1000.66 [17:51:36]line НДС 12% НСП 1% [17:51:36]line > о реализуемом товаре [17:51:36]line ИТОГО: 1000.66 [17:51:36]line НСП 1% : 8.85 [17:51:36]line НДС 12% : 106.26 [17:51:36]line Наличными: 0.00 [17:51:36]line Безнал.: 1000.66 [17:51:36]line Место: АЗС № 91 "Партнер Нефть" [17:51:36]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:51:36]line СНО: Общий режим [17:51:36]line Чек 112 17.05.2024 17:51 [17:51:36]line Смена: 358 ФФД: 1.0 [17:51:36]line ЗНМ: 0300000119 [17:51:36]line РНМ: 0000000000091845 [17:51:36]line Версия ККМ: 001 [17:51:36]line Платежная система: O! деньги [17:51:36]line ФМ: 0000000000871829 [17:51:36]line ФД: 67703 [17:51:36]line ФПД: 36180358370440 [17:51:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T175135&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67703&fm=36180358370440&tin=02508201610067®Number=0000000000091845&sum=100066 [17:51:36]OFD Sender: Processing packet 67703 [packets to send 35, broken 34] [17:51:36]ProducePacketName [17:51:36]name=ofd_packets/00067703 [17:51:36]OFD Sender: To server: pG, [17:51:36]CommunicateWithHost lk.salyk.kg:30040 [17:51:36]ConnectInit lk.salyk.kg [17:51:36]written 0, free lines is 4095 [17:51:36]Connected sock=10 [17:51: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 98 2B 07 01 24 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 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 27 99 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 20 E7 E5 68 94 88 EA 74 F3 6D C4 F2 64 11 [17:51: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 45 47 47 00 86 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 77 08 01 00 F4 03 04 00 FF 40 47 66 B6 04 01 00 00 18 CA 0D 52 44 D3 E8 B0 [17:51:36]CommunicateWithHost err = 0 [17:51:36]CheckOFDResponse [17:51:36]1017 (14) - 77093643461234 [17:51:36]1041 (16) - 0000000000871829 [17:51:36]1040 (4) - 67703 [17:51:36]1012 (4) - 17.05.2024 11:35 [17:51:36]1206 (1) - 0 [17:51:36]OFD Sender: Remove packet 67703 [17:51:36]ProducePacketName [17:51:36]name=ofd_packets/00067703 [17:51:36]NVStorageDeleteData [17:51:37]Write to MH i2c: 01 00 00 8F 07 96 [17:51:37]Write i2c OK [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: 01 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: 01 07 00 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: 01 07 00 8F 07 00 00 00 00 00 E0 0C 89 [17:51:37]RasterBufferAndPrint [17:51:37]line [17:51:37]line [17:51:37]line [17:51:37]line [17:51:37]line [17:51:37]written 0, free lines is 3302 [17:51:37]MH_Cut [17:51:37]Write to MH i2c: D1 01 00 96 07 01 6F [17:51:37]Write i2c OK [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: D1 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: D1 01 00 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: D1 01 00 96 07 00 6E [17:51:37]Write to MH i2c: 01 00 00 97 07 9E [17:51:37]Write i2c OK [17:51:37]MH_I2C_Read... [17:51:37]OFD Sender: No OFD packet to send [17:51:37]*** Cut start [17:51:37]*** Purtial cut [17:51:37]*** Stage 1: CUTSNS_PIN = 1 [17:51:38]Read from MH i2c: 01 [17:51:38]MH_I2C_Read... [17:51:38]*** Stop cut motor [17:51:38]*** Cut end [17:51:38]Read from MH i2c: 01 07 00 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: 01 07 00 97 07 00 00 00 00 00 FF 0F B3 [17:51:38]process_action close_receipt done [17:51:38]requested_data is exist [17:51:38]produce_requested_data [17:51:38]requested_item fm.sn is exist - process it [17:51:38]wFMCommunicate request_size=4 [17:51:38]MH_SAM_APDU [17:51:38]CAPDU: 80 11 00 00 [17:51:38]Write to MH i2c: E2 08 00 98 07 80 11 00 00 00 00 00 00 19 [17:51:38]Write i2c OK [17:51:38]MH_I2C_Read... [17:51:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:38]Read from MH i2c: E2 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 17 00 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 17 00 98 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6F [17:51: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:51:38]wFMCommunicate OK [17:51:38]requested_item fd.num is exist - process it [17:51:38]SAM_PROTO_GetFieldsCounters [17:51:38]wFMCommunicate request_size=4 [17:51:38]MH_SAM_APDU [17:51:38]CAPDU: 80 13 00 00 [17:51:38]Write to MH i2c: E2 08 00 99 07 80 13 00 00 00 00 00 00 1C [17:51:38]Write i2c OK [17:51:38]MH_I2C_Read... [17:51:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:38]Read from MH i2c: E2 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 62 00 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 62 00 99 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 77 08 01 00 0E 04 04 00 66 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 79 [17:51:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 77 08 01 00 0E 04 04 00 66 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 [17:51:38]wFMCommunicate OK [17:51:38]SAM_PROTO_GetFieldsCounters done [17:51:38]requested_item shift.num is exist - process it [17:51:38]requested_item shift.opened is exist - process it [17:51:38]req_shift_opened [17:51:38]FM_GetShiftState [17:51:38]SAM_PROTO_GetShiftState [17:51:38]wFMCommunicate request_size=4 [17:51:38]MH_SAM_APDU [17:51:38]CAPDU: 80 13 01 00 [17:51:38]Write to MH i2c: E2 08 00 9A 07 80 13 01 00 00 00 00 00 1E [17:51:38]Write i2c OK [17:51:38]MH_I2C_Read... [17:51:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:38]Read from MH i2c: E2 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 0E 00 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: E2 0E 00 9A 07 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 A4 [17:51:38]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:51:38]wFMCommunicate OK [17:51:38]SAM_PROTO_GetShiftState done [17:51:38]FM_GetShiftState done [17:51:38]req_shift_opened done [17:51:38]requested_item shift.open_date is exist - process it [17:51:38]req_shift_open_date [17:51:38]req_shift_open_date done [17:51:38]produce_requested_data done [17:51:38]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67703,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [17:51:38]process_action_free close_receipt [17:51:38]json_value_free [17:51:38]json_value_free done [17:51:38]process_json_proto returns [17:51:38]Send response to host [17:51:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67703,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [17:51:38]free response buf [17:51:38]execute_script done [17:51:38]execute_script returns [17:51:38]free content buf [17:51:38]Sock 9.Close socket [17:51:38]Sock 9.Thread stoped [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:41]accept exits with 7 [17:53:41]New connection [17:53:41]New thread 3066608996 created [17:53:41]Thread 3066752356 joined [17:53:41]Waiting for new connection... [17:53:41] Sock 7.Parse request [17:53:41]Sock 7.Check first char [17:53:41]Sock 7.First char is OK [17:53:41]request: POST /json_proto HTTP/1.0 [17:53:41]Method: POST [17:53:41]URL: /json_proto [17:53:41]Method is POST - this is cgi request [17:53:41]url: /json_proto [17:53:41]query_string will be loaded in cgi processing [17:53:41]execute_cgi json_proto POST (null) [17:53:41]execute_cgi path=json_proto method=POST [17:53:41]POST find Content-Length [17:53:41]Host: 172.17.41.195:8080 [17:53:41]Content-Length: 708 [17:53:41]Content-Type: application/json [17:53:41] [17:53:41]POST finish read [17:53:41]Found Content-Length = 708 [17:53:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12106", "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" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:41]execute_script... [17:53: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)12106", "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" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:41]POST & json_proto [17:53:41]process_json_proto [17:53:41]json parsed OK: [17:53:41]protocol is kg_v1.0 [17:53:41]action value=close_receipt [17:53:41]process_action close_receipt [17:53:41]cmd_close_receipt [17:53:41]MH_GetDate [17:53:41]Write to MH i2c: F0 00 00 9B 07 91 [17:53:41]Write i2c OK [17:53:41]MH_I2C_Read... [17:53:41]Read from MH i2c: F0 [17:53:41]MH_I2C_Read... [17:53:41]Read from MH i2c: F0 09 00 [17:53:41]MH_I2C_Read... [17:53:41]Read from MH i2c: F0 09 00 9B 07 00 A6 99 47 66 FC 21 6F 64 76 [17:53:41]GetLastDocTimeStamp 1715968295 [17:53:41]current date 1715968422 [17:53:41]FM_GetShiftState [17:53:41]SAM_PROTO_GetShiftState [17:53:41]wFMCommunicate request_size=4 [17:53:41]MH_SAM_APDU [17:53:41]CAPDU: 80 13 01 00 [17:53:41]Write to MH i2c: E2 08 00 9C 07 80 13 01 00 00 00 00 00 20 [17:53:41]Write i2c OK [17:53:41]MH_I2C_Read... [17:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:41]Read from MH i2c: E2 [17:53:41]MH_I2C_Read... [17:53:41]Read from MH i2c: E2 0E 00 [17:53:41]MH_I2C_Read... [17:53:41]Read from MH i2c: E2 0E 00 9C 07 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 A6 [17:53:41]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:53:41]wFMCommunicate OK [17:53:41]SAM_PROTO_GetShiftState done [17:53:41]FM_GetShiftState done [17:53:41]opened in 1715905068 [17:53:41]opened+sec_in_day 1715991468 [17:53:41]quantity*price = 15000 [17:53:41]sum+1 = 15001 [17:53:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 113 17.05.2024 17:53 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67704 ФПД: 23762091436427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T175342&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67704&fm=23762091436427&tin=02508201610067®Number=0000000000091845&sum=15000 0 [17:53:42]StoreToDocumentArchive [17:53:42]shift 358 fd 67704 [17:53:42]save to /storage/0358/doc_00067704 [17:53:42]save last doc name /storage/0358/doc_00067704 to /storage/kkm_last_doc_name [17:53:42]save OK [17:53:42]Clear old archive folders... [17:53:42]ProcessDocumentItem done err = 0, tmpTLVsize=302 [17:53:42]tlvbuf is 01B4CDC0 [17:53:42]SAM_PROTO_ClearQueue [17:53:42]wFMCommunicate request_size=4 [17:53:42]MH_SAM_APDU [17:53:42]CAPDU: 80 09 00 00 [17:53:42]Write to MH i2c: E2 08 00 A9 07 80 09 00 00 00 00 00 00 22 [17:53:42]Write i2c OK [17:53:42]MH_I2C_Read... [17:53:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:42]Read from MH i2c: E2 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: E2 03 00 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: E2 03 00 A9 07 00 90 00 24 [17:53:42]RAPDU: 90 00 [17:53:42]wFMCommunicate OK [17:53:42]SAM_PROTO_ClearQueue done [17:53:42]KKMCreateOFDPacket [17:53:42]OFDProtocolAddRootSTLVToBuf [17:53:42]FM_MakeSignedData [17:53:42]FM_MakeSignedData [17:53:42]SAM_PROTO_SignData [17:53:42]wFMCommunicate request_size=4 [17:53:42]MH_SAM_APDU [17:53:42]CAPDU: 80 0D 01 02 [17:53:42]Write to MH i2c: E2 08 00 AA 07 80 0D 01 02 00 00 00 00 2A [17:53:42]Write i2c OK [17:53:42]MH_I2C_Read... [17:53:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:42]Read from MH i2c: E2 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: E2 03 00 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: E2 03 00 AA 07 00 90 00 25 [17:53:42]RAPDU: 90 00 [17:53:42]wFMCommunicate OK [17:53:42]wFMCommunicate request_size=255 [17:53:42]MH_SAM_APDU [17:53: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 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 A6 99 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 [17:53:42]Write to MH i2c: E2 02 01 AB 07 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 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 A6 99 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 00 00 CB [17:53:42]Write i2c OK [17:53:42]MH_I2C_Read... [17:53:42]OFD Sender: No OFD packet to send [17:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:42]Read from MH i2c: E2 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: E2 03 00 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: E2 03 00 AB 07 00 90 00 26 [17:53:42]RAPDU: 90 00 [17:53:42]wFMCommunicate OK [17:53:42]wFMCommunicate request_size=61 [17:53:42]MH_SAM_APDU [17:53: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 78 08 01 00 35 04 06 00 15 9C 8B 04 E9 8B [17:53:42]Write to MH i2c: E2 40 00 AC 07 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 78 08 01 00 35 04 06 00 15 9C 8B 04 E9 8B 00 00 9C [17:53:42]Write i2c OK [17:53:42]MH_I2C_Read... [17:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:42]Read from MH i2c: E2 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: E2 03 00 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: E2 03 00 AC 07 00 90 00 27 [17:53:42]RAPDU: 90 00 [17:53:42]wFMCommunicate OK [17:53:42]wFMCommunicate request_size=4 [17:53:42]MH_SAM_APDU [17:53:42]CAPDU: 80 0D 03 02 [17:53:42]Write to MH i2c: E2 08 00 AD 07 80 0D 03 02 00 00 00 00 2F [17:53:42]Write i2c OK [17:53:42]MH_I2C_Read... [17:53:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:42]Read from MH i2c: E2 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: E2 0B 00 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: E2 0B 00 AD 07 00 BC 32 63 E1 A0 B6 A7 84 90 00 E3 [17:53:42]RAPDU: BC 32 63 E1 A0 B6 A7 84 90 00 [17:53:42]wFMCommunicate OK [17:53:42]SAM_PROTO_SignData done [17:53:42]FM_MakeSignedData done [17:53:42]CreateOFDProtocolMessage [17:53:42]wFMCommunicate request_size=4 [17:53:42]MH_SAM_APDU [17:53:42]CAPDU: 80 11 00 00 [17:53:42]Write to MH i2c: E2 08 00 AE 07 80 11 00 00 00 00 00 00 2F [17:53:42]Write i2c OK [17:53:42]MH_I2C_Read... [17:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:42]Read from MH i2c: E2 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: E2 17 00 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: E2 17 00 AE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 85 [17:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:53:42]wFMCommunicate OK [17:53:42]CreateOFDProtocolMessage done [17:53:42]OFDSenderStorePacket 67704 [17:53:42]StoreOFDPacket docnum=67704 [17:53: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 31 22 3A 01 65 C0 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 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 A6 99 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 15 9C 8B 04 E9 8B BC 32 63 E1 A0 B6 A7 84 [17:53:42]CheckFolder [17:53:42]dirname=/storage/ofd_packets [17:53:42]CheckFolder done [17:53:42]ProducePacketName [17:53:42]name=ofd_packets/00067704 [17:53:42]NVStorageSaveData ofd_packets/00067704 [17:53:42]File name is /storage/ofd_packets/00067704 [17:53:42]Write 352 bytes [17:53:42]NVStorageSaveData done [17:53:42]OFDSenderStorePacket done [17:53:42]KKMCreateOFDPacket done [17:53:42]NVStorageSaveData kkm_last_timestamp [17:53:42]File name is /storage/kkm_last_timestamp [17:53:42]Write 4 bytes [17:53:42]NVStorageSaveData done [17:53:42]ExternCall_PrintAddStr [17:53:42]wPrintStart [17:53:42]Write to MH i2c: 01 00 00 AF 07 B6 [17:53:42]Write i2c OK [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: 01 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: 01 07 00 [17:53:42]MH_I2C_Read... [17:53:42]Read from MH i2c: 01 07 00 AF 07 00 00 00 00 00 FF 0F CB [17:53:42]RasterBufferAndPrint [17:53:42]line Счет N : (3)12106 [17:53:42]line ИНН: 02508201610067 [17:53:42]line Контрольно-Кассовый Чек [17:53:42]line ПРОДАЖА [17:53:42]line Товар: 4700000480050 [17:53:42]line Напиток энергетический Nitro 0.45 ж/б [17:53:42]line 2.000 * 75.00 [17:53:42]line = 150.00 [17:53:42]line НДС 12% НСП 1% [17:53:42]line > о реализуемом товаре [17:53:42]line ИТОГО: 150.00 [17:53:42]line НСП 1% : 1.33 [17:53:42]line НДС 12% : 15.93 [17:53:42]line Наличными: 150.00 [17:53:42]line Безнал.: 0.00 [17:53:42]line Место: АЗС № 91 "Партнер Нефть" [17:53:42]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:53:42]line СНО: Общий режим [17:53:42]line Чек 113 17.05.2024 17:53 [17:53:42]line Смена: 358 ФФД: 1.0 [17:53:42]line ЗНМ: 0300000119 [17:53:42]line РНМ: 0000000000091845 [17:53:42]line Версия ККМ: 001 [17:53:42]line ФМ: 0000000000871829 [17:53:42]line ФД: 67704 [17:53:42]line ФПД: 23762091436427 [17:53:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T175342&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67704&fm=23762091436427&tin=02508201610067®Number=0000000000091845&sum=15000 [17:53:43]line 0 [17:53:43]OFD Sender: Processing packet 67704 [packets to send 35, broken 34] [17:53:43]ProducePacketName [17:53:43]name=ofd_packets/00067704 [17:53:43]OFD Sender: To server: pG, [17:53:43]CommunicateWithHost lk.salyk.kg:30040 [17:53:43]ConnectInit lk.salyk.kg [17:53:43]written 0, free lines is 4095 [17:53:43]Connected sock=10 [17:53: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 42 01 00 00 31 22 3A 01 65 C0 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 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 A6 99 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 15 9C 8B 04 E9 8B BC 32 63 E1 A0 B6 A7 84 [17:53: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 9F 62 47 00 E2 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 78 08 01 00 F4 03 04 00 7E 41 47 66 B6 04 01 00 00 88 AB 79 A1 6E 4A 05 A0 [17:53:43]CommunicateWithHost err = 0 [17:53:43]CheckOFDResponse [17:53:43]1017 (14) - 77093643461234 [17:53:43]1041 (16) - 0000000000871829 [17:53:43]1040 (4) - 67704 [17:53:43]1012 (4) - 17.05.2024 11:37 [17:53:43]1206 (1) - 0 [17:53:43]OFD Sender: Remove packet 67704 [17:53:43]ProducePacketName [17:53:43]name=ofd_packets/00067704 [17:53:43]NVStorageDeleteData [17:53:43]Write to MH i2c: 01 00 00 D7 07 DE [17:53:43]Write i2c OK [17:53:43]MH_I2C_Read... [17:53:43]Read from MH i2c: 01 [17:53:43]MH_I2C_Read... [17:53:43]Read from MH i2c: 01 07 00 [17:53:43]MH_I2C_Read... [17:53:43]Read from MH i2c: 01 07 00 D7 07 00 00 00 00 00 D4 0C C5 [17:53:43]RasterBufferAndPrint [17:53:43]line [17:53:43]line [17:53:43]line [17:53:43]line [17:53:43]line [17:53:43]written 0, free lines is 3290 [17:53:43]MH_Cut [17:53:43]Write to MH i2c: D1 01 00 DE 07 01 B7 [17:53:43]Write i2c OK [17:53:43]MH_I2C_Read... [17:53:43]Read from MH i2c: D1 [17:53:43]MH_I2C_Read... [17:53:43]Read from MH i2c: D1 01 00 [17:53:43]MH_I2C_Read... [17:53:43]Read from MH i2c: D1 01 00 DE 07 00 B6 [17:53:43]Write to MH i2c: 01 00 00 DF 07 E6 [17:53:43]Write i2c OK [17:53:43]MH_I2C_Read... [17:53:44]OFD Sender: No OFD packet to send [17:53:44]*** Cut start [17:53:44]*** Purtial cut [17:53:44]*** CUTSNS_PIN = 0 [17:53:44]*** Stage 1: CUTSNS_PIN = 1 [17:53:46]Read from MH i2c: 01 [17:53:46]MH_I2C_Read... [17:53:46]*** Stop cut motor [17:53:46]*** Cut end [17:53:46]Read from MH i2c: 01 07 00 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: 01 07 00 DF 07 00 00 00 00 00 FF 0F FB [17:53:46]process_action close_receipt done [17:53:46]requested_data is exist [17:53:46]produce_requested_data [17:53:46]requested_item fm.sn is exist - process it [17:53:46]wFMCommunicate request_size=4 [17:53:46]MH_SAM_APDU [17:53:46]CAPDU: 80 11 00 00 [17:53:46]Write to MH i2c: E2 08 00 E0 07 80 11 00 00 00 00 00 00 61 [17:53:46]Write i2c OK [17:53:46]MH_I2C_Read... [17:53:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:46]Read from MH i2c: E2 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 17 00 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 17 00 E0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B7 [17:53:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:53:46]wFMCommunicate OK [17:53:46]requested_item fd.num is exist - process it [17:53:46]SAM_PROTO_GetFieldsCounters [17:53:46]wFMCommunicate request_size=4 [17:53:46]MH_SAM_APDU [17:53:46]CAPDU: 80 13 00 00 [17:53:46]Write to MH i2c: E2 08 00 E1 07 80 13 00 00 00 00 00 00 64 [17:53:46]Write i2c OK [17:53:46]MH_I2C_Read... [17:53:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:46]Read from MH i2c: E2 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 62 00 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 62 00 E1 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 78 08 01 00 0E 04 04 00 66 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 C5 [17:53: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 78 08 01 00 0E 04 04 00 66 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 [17:53:46]wFMCommunicate OK [17:53:46]SAM_PROTO_GetFieldsCounters done [17:53:46]requested_item shift.num is exist - process it [17:53:46]requested_item shift.opened is exist - process it [17:53:46]req_shift_opened [17:53:46]FM_GetShiftState [17:53:46]SAM_PROTO_GetShiftState [17:53:46]wFMCommunicate request_size=4 [17:53:46]MH_SAM_APDU [17:53:46]CAPDU: 80 13 01 00 [17:53:46]Write to MH i2c: E2 08 00 E2 07 80 13 01 00 00 00 00 00 66 [17:53:46]Write i2c OK [17:53:46]MH_I2C_Read... [17:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:46]Read from MH i2c: E2 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 0E 00 [17:53:46]MH_I2C_Read... [17:53:46]Read from MH i2c: E2 0E 00 E2 07 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 EC [17:53:46]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [17:53:46]wFMCommunicate OK [17:53:46]SAM_PROTO_GetShiftState done [17:53:46]FM_GetShiftState done [17:53:46]req_shift_opened done [17:53:46]requested_item shift.open_date is exist - process it [17:53:46]req_shift_open_date [17:53:46]req_shift_open_date done [17:53:46]produce_requested_data done [17:53:46]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67704,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [17:53:46]process_action_free close_receipt [17:53:46]json_value_free [17:53:46]json_value_free done [17:53:46]process_json_proto returns [17:53:46]Send response to host [17:53:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67704,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [17:53:46]free response buf [17:53:46]execute_script done [17:53:46]execute_script returns [17:53:46]free content buf [17:53:46]Sock 7.Close socket [17:53:46]Sock 7.Thread stoped [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [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:44]OFD Sender: No OFD packet to send [17:56:49]OFD Sender: No OFD packet to send [17:56:54]OFD Sender: No OFD packet to send [17:56:59]OFD Sender: No OFD packet to send [17:57:04]OFD Sender: No OFD packet to send [17:57:09]OFD Sender: No OFD packet to send [17:57:14]OFD Sender: No OFD packet to send [17:57:19]OFD Sender: No OFD packet to send [17:57:24]OFD Sender: No OFD packet to send [17:57:29]OFD Sender: No OFD packet to send [17:57:34]OFD Sender: No OFD packet to send [17:57:39]OFD Sender: No OFD packet to send [17:57:44]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:29]OFD Sender: No OFD packet to send [17:59:34]OFD Sender: No OFD packet to send [17:59:39]OFD Sender: No OFD packet to send [17:59:44]OFD Sender: No OFD packet to send [17:59:49]OFD Sender: No OFD packet to send [17:59:54]OFD Sender: No OFD packet to send [17:59:59]OFD Sender: No OFD packet to send [18:00:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:19]OFD Sender: No OFD packet to send [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [18:01:09]OFD Sender: No OFD packet to send [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:09]OFD Sender: No OFD packet to send [18:02:14]OFD Sender: No OFD packet to send [18:02:19]OFD Sender: No OFD packet to send [18:02:24]OFD Sender: No OFD packet to send [18:02:29]OFD Sender: No OFD packet to send [18:02:34]OFD Sender: No OFD packet to send [18:02:39]OFD Sender: No OFD packet to send [18:02:44]OFD Sender: No OFD packet to send [18:02:49]OFD Sender: No OFD packet to send [18:02:54]OFD Sender: No OFD packet to send [18:02:59]OFD Sender: No OFD packet to send [18:03:04]OFD Sender: No OFD packet to send [18:03:09]OFD Sender: No OFD packet to send [18:03:14]OFD Sender: No OFD packet to send [18:03:19]OFD Sender: No OFD packet to send [18:03:24]OFD Sender: No OFD packet to send [18:03:29]OFD Sender: No OFD packet to send [18:03:34]OFD Sender: No OFD packet to send [18:03:39]OFD Sender: No OFD packet to send [18:03:44]OFD Sender: No OFD packet to send [18:03:49]OFD Sender: No OFD packet to send [18:03:54]OFD Sender: No OFD packet to send [18:03:59]OFD Sender: No OFD packet to send [18:04:04]OFD Sender: No OFD packet to send [18:04:09]OFD Sender: No OFD packet to send [18:04:14]OFD Sender: No OFD packet to send [18:04:19]OFD Sender: No OFD packet to send [18:04:24]OFD Sender: No OFD packet to send [18:04:29]OFD Sender: No OFD packet to send [18:04:34]OFD Sender: No OFD packet to send [18:04:39]OFD Sender: No OFD packet to send [18:04:44]OFD Sender: No OFD packet to send [18:04:49]OFD Sender: No OFD packet to send [18:04:54]OFD Sender: No OFD packet to send [18:04:59]OFD Sender: No OFD packet to send [18:05:04]OFD Sender: No OFD packet to send [18:05:09]OFD Sender: No OFD packet to send [18:05:14]OFD Sender: No OFD packet to send [18:05:19]OFD Sender: No OFD packet to send [18:05:24]OFD Sender: No OFD packet to send [18:05:29]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:49]OFD Sender: No OFD packet to send [18:05:54]OFD Sender: No OFD packet to send [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:09]OFD Sender: No OFD packet to send [18:06:14]OFD Sender: No OFD packet to send [18:06:19]OFD Sender: No OFD packet to send [18:06:24]OFD Sender: No OFD packet to send [18:06:29]OFD Sender: No OFD packet to send [18:06:34]OFD Sender: No OFD packet to send [18:06:39]OFD Sender: No OFD packet to send [18:06:44]OFD Sender: No OFD packet to send [18:06:49]OFD Sender: No OFD packet to send [18:06:54]OFD Sender: No OFD packet to send [18:06:59]OFD Sender: No OFD packet to send [18:07:04]OFD Sender: No OFD packet to send [18:07:09]OFD Sender: No OFD packet to send [18:07:14]OFD Sender: No OFD packet to send [18:07:19]OFD Sender: No OFD packet to send [18:07:24]OFD Sender: No OFD packet to send [18:07:29]OFD Sender: No OFD packet to send [18:07:34]OFD Sender: No OFD packet to send [18:07:39]OFD Sender: No OFD packet to send [18:07:44]OFD Sender: No OFD packet to send [18:07:49]OFD Sender: No OFD packet to send [18:07:54]OFD Sender: No OFD packet to send [18:07:59]OFD Sender: No OFD packet to send [18:08:04]OFD Sender: No OFD packet to send [18:08:09]OFD Sender: No OFD packet to send [18:08:14]OFD Sender: No OFD packet to send [18:08:19]OFD Sender: No OFD packet to send [18:08:24]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:34]OFD Sender: No OFD packet to send [18:08:39]OFD Sender: No OFD packet to send [18:08:44]OFD Sender: No OFD packet to send [18:08:49]OFD Sender: No OFD packet to send [18:08:54]OFD Sender: No OFD packet to send [18:08:59]OFD Sender: No OFD packet to send [18:09:04]OFD Sender: No OFD packet to send [18:09:09]OFD Sender: No OFD packet to send [18:09:14]OFD Sender: No OFD packet to send [18:09:19]OFD Sender: No OFD packet to send [18:09:24]OFD Sender: No OFD packet to send [18:09:29]OFD Sender: No OFD packet to send [18:09:34]OFD Sender: No OFD packet to send [18:09:39]OFD Sender: No OFD packet to send [18:09:44]OFD Sender: No OFD packet to send [18:09:49]OFD Sender: No OFD packet to send [18:09:54]OFD Sender: No OFD packet to send [18:09:59]OFD Sender: No OFD packet to send [18:10:04]OFD Sender: No OFD packet to send [18:10:09]OFD Sender: No OFD packet to send [18:10:14]OFD Sender: No OFD packet to send [18:10:19]OFD Sender: No OFD packet to send [18:10:24]OFD Sender: No OFD packet to send [18:10:29]accept exits with 9 [18:10:29]New connection [18:10:29]New thread 3066752356 created [18:10:29]Thread 3066608996 joined [18:10:29]Waiting for new connection... [18:10:29] Sock 9.Parse request [18:10:29]Sock 9.Check first char [18:10:29]Sock 9.First char is OK [18:10:29]request: POST /json_proto HTTP/1.0 [18:10:29]Method: POST [18:10:29]URL: /json_proto [18:10:29]Method is POST - this is cgi request [18:10:29]url: /json_proto [18:10:29]query_string will be loaded in cgi processing [18:10:29]execute_cgi json_proto POST (null) [18:10:29]execute_cgi path=json_proto method=POST [18:10:29]POST find Content-Length [18:10:29]Host: 172.17.41.195:8080 [18:10:29]Content-Length: 679 [18:10:29]Content-Type: application/json [18:10:29] [18:10:29]POST finish read [18:10:29]Found Content-Length = 679 [18:10:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507857", "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" : 14.730, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:29]execute_script... [18:10: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)507857", "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" : 14.730, "sum" : 1100.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:29]POST & json_proto [18:10:29]process_json_proto [18:10:29]json parsed OK: [18:10:29]protocol is kg_v1.0 [18:10:29]action value=close_receipt [18:10:29]process_action close_receipt [18:10:29]cmd_close_receipt [18:10:29]MH_GetDate [18:10:29]Write to MH i2c: F0 00 00 E3 07 D9 [18:10:29]Write i2c OK [18:10:29]MH_I2C_Read... [18:10:29]Read from MH i2c: F0 [18:10:29]MH_I2C_Read... [18:10:29]Read from MH i2c: F0 09 00 [18:10:29]MH_I2C_Read... [18:10:29]Read from MH i2c: F0 09 00 E3 07 00 96 9D 47 66 FC 21 6F 64 B2 [18:10:29]GetLastDocTimeStamp 1715968422 [18:10:29]current date 1715969430 [18:10:29]FM_GetShiftState [18:10:29]SAM_PROTO_GetShiftState [18:10:29]wFMCommunicate request_size=4 [18:10:29]MH_SAM_APDU [18:10:29]CAPDU: 80 13 01 00 [18:10:29]Write to MH i2c: E2 08 00 E4 07 80 13 01 00 00 00 00 00 68 [18:10:29]Write i2c OK [18:10:29]MH_I2C_Read... [18:10:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:29]Read from MH i2c: E2 [18:10:29]MH_I2C_Read... [18:10:29]Read from MH i2c: E2 0E 00 [18:10:29]MH_I2C_Read... [18:10:29]Read from MH i2c: E2 0E 00 E4 07 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 EE [18:10:29]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [18:10:29]wFMCommunicate OK [18:10:29]SAM_PROTO_GetShiftState done [18:10:29]FM_GetShiftState done [18:10:29]opened in 1715905068 [18:10:29]opened+sec_in_day 1715991468 [18:10:29]quantity*price = 110033 [18:10:29]sum+1 = 110034 [18:10:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.85 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 114 17.05.2024 18:10 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67705 ФПД: 92177335383898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T181030&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67705&fm=92177335383898&tin=02508201610067®Number=0000000000091845&sum=110000 [18:10:30]StoreToDocumentArchive [18:10:30]shift 358 fd 67705 [18:10:30]save to /storage/0358/doc_00067705 [18:10:30]save last doc name /storage/0358/doc_00067705 to /storage/kkm_last_doc_name [18:10:30]save OK [18:10:30]Clear old archive folders... [18:10:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:10:30]tlvbuf is 01B2D860 [18:10:30]SAM_PROTO_ClearQueue [18:10:30]wFMCommunicate request_size=4 [18:10:30]MH_SAM_APDU [18:10:30]CAPDU: 80 09 00 00 [18:10:30]Write to MH i2c: E2 08 00 F1 07 80 09 00 00 00 00 00 00 6A [18:10:30]Write i2c OK [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 [18:10:30]MH_I2C_Read... [18:10:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:30]Read from MH i2c: E2 03 00 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 03 00 F1 07 00 90 00 6C [18:10:30]RAPDU: 90 00 [18:10:30]wFMCommunicate OK [18:10:30]SAM_PROTO_ClearQueue done [18:10:30]KKMCreateOFDPacket [18:10:30]OFDProtocolAddRootSTLVToBuf [18:10:30]FM_MakeSignedData [18:10:30]FM_MakeSignedData [18:10:30]SAM_PROTO_SignData [18:10:30]wFMCommunicate request_size=4 [18:10:30]MH_SAM_APDU [18:10:30]CAPDU: 80 0D 01 02 [18:10:30]Write to MH i2c: E2 08 00 F2 07 80 0D 01 02 00 00 00 00 72 [18:10:30]Write i2c OK [18:10:30]MH_I2C_Read... [18:10:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:30]Read from MH i2c: E2 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 03 00 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 03 00 F2 07 00 90 00 6D [18:10:30]RAPDU: 90 00 [18:10:30]wFMCommunicate OK [18:10:30]wFMCommunicate request_size=255 [18:10:30]MH_SAM_APDU [18:10:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 96 9D 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 53 D5 B5 54 [18:10:30]Write to MH i2c: E2 02 01 F3 07 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 8A 39 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 96 9D 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 53 D5 B5 54 00 00 2C [18:10:30]Write i2c OK [18:10:30]MH_I2C_Read... [18:10:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:30]Read from MH i2c: E2 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 03 00 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 03 00 F3 07 00 90 00 6E [18:10:30]RAPDU: 90 00 [18:10:30]wFMCommunicate OK [18:10:30]wFMCommunicate request_size=7 [18:10:30]MH_SAM_APDU [18:10:30]CAPDU: 80 0D 02 02 02 F7 5A [18:10:30]Write to MH i2c: E2 0A 00 F4 07 80 0D 02 02 02 00 F7 5A 00 00 CA [18:10:30]Write i2c OK [18:10:30]MH_I2C_Read... [18:10:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:30]Read from MH i2c: E2 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 03 00 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 03 00 F4 07 00 90 00 6F [18:10:30]RAPDU: 90 00 [18:10:30]wFMCommunicate OK [18:10:30]wFMCommunicate request_size=4 [18:10:30]MH_SAM_APDU [18:10:30]CAPDU: 80 0D 03 02 [18:10:30]Write to MH i2c: E2 08 00 F5 07 80 0D 03 02 00 00 00 00 77 [18:10:30]Write i2c OK [18:10:30]MH_I2C_Read... [18:10:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:30]Read from MH i2c: E2 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 0B 00 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 0B 00 F5 07 00 B1 33 90 E8 0B 0E 6A 63 90 00 BA [18:10:30]RAPDU: B1 33 90 E8 0B 0E 6A 63 90 00 [18:10:30]wFMCommunicate OK [18:10:30]SAM_PROTO_SignData done [18:10:30]FM_MakeSignedData done [18:10:30]CreateOFDProtocolMessage [18:10:30]wFMCommunicate request_size=4 [18:10:30]MH_SAM_APDU [18:10:30]CAPDU: 80 11 00 00 [18:10:30]Write to MH i2c: E2 08 00 F6 07 80 11 00 00 00 00 00 00 77 [18:10:30]Write i2c OK [18:10:30]MH_I2C_Read... [18:10:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:30]Read from MH i2c: E2 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 17 00 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: E2 17 00 F6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CD [18: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 [18:10:30]wFMCommunicate OK [18:10:30]CreateOFDProtocolMessage done [18:10:30]OFDSenderStorePacket 67705 [18:10:30]StoreOFDPacket docnum=67705 [18:10: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 02 93 04 01 2C C3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 96 9D 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 53 D5 B5 54 F7 5A B1 33 90 E8 0B 0E 6A 63 [18:10:30]CheckFolder [18:10:30]dirname=/storage/ofd_packets [18:10:30]CheckFolder done [18:10:30]ProducePacketName [18:10:30]name=ofd_packets/00067705 [18:10:30]NVStorageSaveData ofd_packets/00067705 [18:10:30]File name is /storage/ofd_packets/00067705 [18:10:30]Write 298 bytes [18:10:30]NVStorageSaveData done [18:10:30]OFDSenderStorePacket done [18:10:30]KKMCreateOFDPacket done [18:10:30]NVStorageSaveData kkm_last_timestamp [18:10:30]File name is /storage/kkm_last_timestamp [18:10:30]Write 4 bytes [18:10:30]NVStorageSaveData done [18:10:30]ExternCall_PrintAddStr [18:10:30]wPrintStart [18:10:30]Write to MH i2c: 01 00 00 F7 07 FE [18:10:30]Write i2c OK [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: 01 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: 01 07 00 [18:10:30]MH_I2C_Read... [18:10:30]Read from MH i2c: 01 07 00 F7 07 00 00 00 00 00 FF 0F 13 [18:10:30]RasterBufferAndPrint [18:10:30]line Счет N : (1)507857 [18:10:30]line ИНН: 02508201610067 [18:10:30]line Контрольно-Кассовый Чек [18:10:30]line ПРОДАЖА [18:10:30]line ТРК (МРК, ГНК) : 31 [18:10:30]line Товар: 2710194210 [18:10:30]line ДТ-К-5 [18:10:30]line 14.730 * 74.70 [18:10:30]line = 1100.33 [18:10:30]line НДС 12% НСП 1% [18:10:30]line > о реализуемом товаре [18:10:30]line ОКРУГЛЕНИЕ: -0.33 [18:10:30]line ИТОГО: 1100.00 [18:10:30]line Внесено: 1100.00 [18:10:30]line СДАЧА: 0.00 [18:10:30]line НСП 1% : 9.74 [18:10:30]line НДС 12% : 116.85 [18:10:30]line Наличными: 1100.00 [18:10:30]line Безнал.: 0.00 [18:10:30]line Место: АЗС № 91 "Партнер Нефть" [18:10:30]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:10:30]line СНО: Общий режим [18:10:30]line Чек 114 17.05.2024 18:10 [18:10:30]line Смена: 358 ФФД: 1.0 [18:10:30]line ЗНМ: 0300000119 [18:10:30]line РНМ: 0000000000091845 [18:10:30]line Версия ККМ: 001 [18:10:30]line ФМ: 0000000000871829 [18:10:30]line ФД: 67705 [18:10:30]line ФПД: 92177335383898 [18:10:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T181030&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67705&fm=92177335383898&tin=02508201610067®Number=0000000000091845&sum=110000 [18:10:31]OFD Sender: Processing packet 67705 [packets to send 35, broken 34] [18:10:31]ProducePacketName [18:10:31]name=ofd_packets/00067705 [18:10:31]OFD Sender: To server: pG, [18:10:31]CommunicateWithHost lk.salyk.kg:30040 [18:10:31]ConnectInit lk.salyk.kg [18:10:31]written 0, free lines is 4095 [18:10:31]Connected sock=10 [18:10:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 02 93 04 01 2C C3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 96 9D 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 53 D5 B5 54 F7 5A B1 33 90 E8 0B 0E 6A 63 [18:10: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 BB C7 47 00 93 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 79 08 01 00 F4 03 04 00 6E 45 47 66 B6 04 01 00 00 A1 A2 83 AB B1 15 2E A5 [18:10:31]CommunicateWithHost err = 0 [18:10:31]CheckOFDResponse [18:10:31]1017 (14) - 77093643461234 [18:10:31]1041 (16) - 0000000000871829 [18:10:31]1040 (4) - 67705 [18:10:31]1012 (4) - 17.05.2024 11:54 [18:10:31]1206 (1) - 0 [18:10:31]OFD Sender: Remove packet 67705 [18:10:31]ProducePacketName [18:10:31]name=ofd_packets/00067705 [18:10:31]NVStorageDeleteData [18:10:31]Write to MH i2c: 01 00 00 21 08 29 [18:10:31]Write i2c OK [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: 01 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: 01 07 00 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: 01 07 00 21 08 00 00 00 00 00 CB 0C 07 [18:10:31]RasterBufferAndPrint [18:10:31]line [18:10:31]line [18:10:31]line [18:10:31]line [18:10:31]line [18:10:31]written 0, free lines is 3281 [18:10:31]MH_Cut [18:10:31]Write to MH i2c: D1 01 00 28 08 01 02 [18:10:31]Write i2c OK [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: D1 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: D1 01 00 [18:10:31]MH_I2C_Read... [18:10:31]Read from MH i2c: D1 01 00 28 08 00 01 [18:10:31]Write to MH i2c: 01 00 00 29 08 31 [18:10:31]Write i2c OK [18:10:31]MH_I2C_Read... [18:10:32]OFD Sender: No OFD packet to send [18:10:32]*** Cut start [18:10:32]*** Purtial cut [18:10:32]*** Stage 1: CUTSNS_PIN = 1 [18:10:32]Read from MH i2c: 01 [18:10:32]MH_I2C_Read... [18:10:32]*** Stop cut motor [18:10:32]*** Cut end [18:10:32]Read from MH i2c: 01 07 00 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: 01 07 00 29 08 00 00 00 00 00 FF 0F 46 [18:10:32]process_action close_receipt done [18:10:32]requested_data is exist [18:10:32]produce_requested_data [18:10:32]requested_item fm.sn is exist - process it [18:10:32]wFMCommunicate request_size=4 [18:10:32]MH_SAM_APDU [18:10:32]CAPDU: 80 11 00 00 [18:10:32]Write to MH i2c: E2 08 00 2A 08 80 11 00 00 00 00 00 00 AC [18:10:32]Write i2c OK [18:10:32]MH_I2C_Read... [18:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:32]Read from MH i2c: E2 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: E2 17 00 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: E2 17 00 2A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 02 [18:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:10:32]wFMCommunicate OK [18:10:32]requested_item fd.num is exist - process it [18:10:32]SAM_PROTO_GetFieldsCounters [18:10:32]wFMCommunicate request_size=4 [18:10:32]MH_SAM_APDU [18:10:32]CAPDU: 80 13 00 00 [18:10:32]Write to MH i2c: E2 08 00 2B 08 80 13 00 00 00 00 00 00 AF [18:10:32]Write i2c OK [18:10:32]MH_I2C_Read... [18:10:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:32]Read from MH i2c: E2 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: E2 62 00 [18:10:32]MH_I2C_Read... [18:10:32]Read from MH i2c: E2 62 00 2B 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 79 08 01 00 0E 04 04 00 66 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 14 [18:10:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 79 08 01 00 0E 04 04 00 66 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 [18:10:33]wFMCommunicate OK [18:10:33]SAM_PROTO_GetFieldsCounters done [18:10:33]requested_item shift.num is exist - process it [18:10:33]requested_item shift.opened is exist - process it [18:10:33]req_shift_opened [18:10:33]FM_GetShiftState [18:10:33]SAM_PROTO_GetShiftState [18:10:33]wFMCommunicate request_size=4 [18:10:33]MH_SAM_APDU [18:10:33]CAPDU: 80 13 01 00 [18:10:33]Write to MH i2c: E2 08 00 2C 08 80 13 01 00 00 00 00 00 B1 [18:10:33]Write i2c OK [18:10:33]MH_I2C_Read... [18:10:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:33]Read from MH i2c: E2 [18:10:33]MH_I2C_Read... [18:10:33]Read from MH i2c: E2 0E 00 [18:10:33]MH_I2C_Read... [18:10:33]Read from MH i2c: E2 0E 00 2C 08 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 37 [18:10:33]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [18:10:33]wFMCommunicate OK [18:10:33]SAM_PROTO_GetShiftState done [18:10:33]FM_GetShiftState done [18:10:33]req_shift_opened done [18:10:33]requested_item shift.open_date is exist - process it [18:10:33]req_shift_open_date [18:10:33]req_shift_open_date done [18:10:33]produce_requested_data done [18:10:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67705,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [18:10:33]process_action_free close_receipt [18:10:33]json_value_free [18:10:33]json_value_free done [18:10:33]process_json_proto returns [18:10:33]Send response to host [18:10:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67705,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [18:10:33]free response buf [18:10:33]execute_script done [18:10:33]execute_script returns [18:10:33]free content buf [18:10:33]Sock 9.Close socket [18:10:33]Sock 9.Thread stoped [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:47]OFD Sender: No OFD packet to send [18:20:52]OFD Sender: No OFD packet to send [18:20:57]OFD Sender: No OFD packet to send [18:21:02]OFD Sender: No OFD packet to send [18:21:07]OFD Sender: No OFD packet to send [18:21:12]OFD Sender: No OFD packet to send [18:21:17]OFD Sender: No OFD packet to send [18:21:22]OFD Sender: No OFD packet to send [18:21:27]OFD Sender: No OFD packet to send [18:21:32]OFD Sender: No OFD packet to send [18:21:37]OFD Sender: No OFD packet to send [18:21:42]OFD Sender: No OFD packet to send [18:21:47]OFD Sender: No OFD packet to send [18:21:52]OFD Sender: No OFD packet to send [18:21:57]OFD Sender: No OFD packet to send [18:22:02]OFD Sender: No OFD packet to send [18:22:07]OFD Sender: No OFD packet to send [18:22:12]OFD Sender: No OFD packet to send [18:22:17]OFD Sender: No OFD packet to send [18:22:22]OFD Sender: No OFD packet to send [18:22:27]OFD Sender: No OFD packet to send [18:22:32]OFD Sender: No OFD packet to send [18:22:37]OFD Sender: No OFD packet to send [18:22:42]OFD Sender: No OFD packet to send [18:22:47]OFD Sender: No OFD packet to send [18:22:52]OFD Sender: No OFD packet to send [18:22:57]OFD Sender: No OFD packet to send [18:23:02]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:23:59]accept exits with 7 [18:23:59]New connection [18:23:59]New thread 3066608996 created [18:23:59]Thread 3066752356 joined [18:23:59]Waiting for new connection... [18:23:59] Sock 7.Parse request [18:23:59]Sock 7.Check first char [18:23:59]Sock 7.First char is OK [18:23:59]request: POST /json_proto HTTP/1.0 [18:23:59]Method: POST [18:23:59]URL: /json_proto [18:23:59]Method is POST - this is cgi request [18:23:59]url: /json_proto [18:23:59]query_string will be loaded in cgi processing [18:23:59]execute_cgi json_proto POST (null) [18:23:59]execute_cgi path=json_proto method=POST [18:23:59]POST find Content-Length [18:23:59]Host: 172.17.41.195:8080 [18:23:59]Content-Length: 800 [18:23:59]Content-Type: application/json [18:23:59] [18:23:59]POST finish read [18:23:59]Found Content-Length = 800 [18:23:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507858", "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" ] } } [18:23:59]execute_script... [18:23: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)507858", "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" ] } } [18:23:59]POST & json_proto [18:23:59]process_json_proto [18:23:59]json parsed OK: [18:23:59]protocol is kg_v1.0 [18:23:59]action value=close_receipt [18:23:59]process_action close_receipt [18:23:59]cmd_close_receipt [18:23:59]MH_GetDate [18:23:59]Write to MH i2c: F0 00 00 2D 08 24 [18:23:59]Write i2c OK [18:23:59]MH_I2C_Read... [18:23:59]Read from MH i2c: F0 [18:23:59]MH_I2C_Read... [18:23:59]Read from MH i2c: F0 09 00 [18:23:59]MH_I2C_Read... [18:23:59]Read from MH i2c: F0 09 00 2D 08 00 C0 A0 47 66 FC 21 6F 64 2A [18:23:59]GetLastDocTimeStamp 1715969430 [18:23:59]current date 1715970240 [18:23:59]FM_GetShiftState [18:23:59]SAM_PROTO_GetShiftState [18:23:59]wFMCommunicate request_size=4 [18:23:59]MH_SAM_APDU [18:23:59]CAPDU: 80 13 01 00 [18:23:59]Write to MH i2c: E2 08 00 2E 08 80 13 01 00 00 00 00 00 B3 [18:23:59]Write i2c OK [18:23:59]MH_I2C_Read... [18:23:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:59]Read from MH i2c: E2 [18:23:59]MH_I2C_Read... [18:23:59]Read from MH i2c: E2 0E 00 [18:23:59]MH_I2C_Read... [18:23:59]Read from MH i2c: E2 0E 00 2E 08 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 39 [18:23:59]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [18:23:59]wFMCommunicate OK [18:23:59]SAM_PROTO_GetShiftState done [18:23:59]FM_GetShiftState done [18:23:59]opened in 1715905068 [18:23:59]opened+sec_in_day 1715991468 [18:23:59]quantity*price = 50033 [18:23:59]sum+1 = 50034 [18:23:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 115 17.05.2024 18:24 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67706 ФПД: 25217970163527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T182400&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67706&fm=25217970163527&tin=02508201610067®Number=0000000000091845&sum=50033 [18:24:00]StoreToDocumentArchive [18:24:00]shift 358 fd 67706 [18:24:00]save to /storage/0358/doc_00067706 [18:24:00]save last doc name /storage/0358/doc_00067706 to /storage/kkm_last_doc_name [18:24:00]save OK [18:24:00]Clear old archive folders... [18:24:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:24:00]tlvbuf is 01AF5440 [18:24:00]SAM_PROTO_ClearQueue [18:24:00]wFMCommunicate request_size=4 [18:24:00]MH_SAM_APDU [18:24:00]CAPDU: 80 09 00 00 [18:24:00]Write to MH i2c: E2 08 00 3B 08 80 09 00 00 00 00 00 00 B5 [18:24:00]Write i2c OK [18:24:00]MH_I2C_Read... [18:24:00]Read from MH i2c: E2 [18:24:00]MH_I2C_Read... [18:24:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:00]Read from MH i2c: E2 03 00 [18:24:00]MH_I2C_Read... [18:24:00]Read from MH i2c: E2 03 00 3B 08 00 90 00 B7 [18:24:00]RAPDU: 90 00 [18:24:00]wFMCommunicate OK [18:24:00]SAM_PROTO_ClearQueue done [18:24:00]KKMCreateOFDPacket [18:24:00]OFDProtocolAddRootSTLVToBuf [18:24:00]FM_MakeSignedData [18:24:00]FM_MakeSignedData [18:24:00]SAM_PROTO_SignData [18:24:00]wFMCommunicate request_size=4 [18:24:00]MH_SAM_APDU [18:24:00]CAPDU: 80 0D 01 02 [18:24:00]Write to MH i2c: E2 08 00 3C 08 80 0D 01 02 00 00 00 00 BD [18:24:00]Write i2c OK [18:24:00]MH_I2C_Read... [18:24:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:00]Read from MH i2c: E2 [18:24:00]MH_I2C_Read... [18:24:00]Read from MH i2c: E2 03 00 [18:24:00]MH_I2C_Read... [18:24:00]Read from MH i2c: E2 03 00 3C 08 00 90 00 B8 [18:24:00]RAPDU: 90 00 [18:24:00]wFMCommunicate OK [18:24:00]wFMCommunicate request_size=255 [18:24:00]MH_SAM_APDU [18:24: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 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 73 00 00 00 F4 03 04 00 C0 A0 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 16 [18:24:00]Write to MH i2c: E2 02 01 3D 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 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 73 00 00 00 F4 03 04 00 C0 A0 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 16 00 00 0A [18:24:00]Write i2c OK [18:24:00]MH_I2C_Read... [18:24:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:01]Read from MH i2c: E2 [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: E2 03 00 [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: E2 03 00 3D 08 00 90 00 B9 [18:24:01]RAPDU: 90 00 [18:24:01]wFMCommunicate OK [18:24:01]wFMCommunicate request_size=10 [18:24:01]MH_SAM_APDU [18:24:01]CAPDU: 80 0D 02 02 05 EF 84 27 4F 47 [18:24:01]Write to MH i2c: E2 0D 00 3E 08 80 0D 02 02 05 00 EF 84 27 4F 47 00 00 FA [18:24:01]Write i2c OK [18:24:01]MH_I2C_Read... [18:24:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:01]Read from MH i2c: E2 [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: E2 03 00 [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: E2 03 00 3E 08 00 90 00 BA [18:24:01]RAPDU: 90 00 [18:24:01]wFMCommunicate OK [18:24:01]wFMCommunicate request_size=4 [18:24:01]MH_SAM_APDU [18:24:01]CAPDU: 80 0D 03 02 [18:24:01]Write to MH i2c: E2 08 00 3F 08 80 0D 03 02 00 00 00 00 C2 [18:24:01]Write i2c OK [18:24:01]MH_I2C_Read... [18:24:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:01]Read from MH i2c: E2 [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: E2 0B 00 [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: E2 0B 00 3F 08 00 02 C6 5F 43 62 CC 27 7F 90 00 01 [18:24:01]RAPDU: 02 C6 5F 43 62 CC 27 7F 90 00 [18:24:01]wFMCommunicate OK [18:24:01]SAM_PROTO_SignData done [18:24:01]FM_MakeSignedData done [18:24:01]CreateOFDProtocolMessage [18:24:01]wFMCommunicate request_size=4 [18:24:01]MH_SAM_APDU [18:24:01]CAPDU: 80 11 00 00 [18:24:01]Write to MH i2c: E2 08 00 40 08 80 11 00 00 00 00 00 00 C2 [18:24:01]Write i2c OK [18:24:01]MH_I2C_Read... [18:24:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:01]Read from MH i2c: E2 [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: E2 17 00 [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: E2 17 00 40 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 18 [18:24: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:24:01]wFMCommunicate OK [18:24:01]CreateOFDProtocolMessage done [18:24:01]OFDSenderStorePacket 67706 [18:24:01]StoreOFDPacket docnum=67706 [18:24: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 8D DC 07 01 EE C4 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 73 00 00 00 F4 03 04 00 C0 A0 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 16 EF 84 27 4F 47 02 C6 5F 43 62 CC 27 7F [18:24:01]CheckFolder [18:24:01]dirname=/storage/ofd_packets [18:24:01]CheckFolder done [18:24:01]ProducePacketName [18:24:01]name=ofd_packets/00067706 [18:24:01]NVStorageSaveData ofd_packets/00067706 [18:24:01]File name is /storage/ofd_packets/00067706 [18:24:01]Write 301 bytes [18:24:01]NVStorageSaveData done [18:24:01]OFDSenderStorePacket done [18:24:01]KKMCreateOFDPacket done [18:24:01]NVStorageSaveData kkm_last_timestamp [18:24:01]File name is /storage/kkm_last_timestamp [18:24:01]Write 4 bytes [18:24:01]NVStorageSaveData done [18:24:01]ExternCall_PrintAddStr [18:24:01]wPrintStart [18:24:01]Write to MH i2c: 01 00 00 41 08 49 [18:24:01]Write i2c OK [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: 01 [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: 01 07 00 [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: 01 07 00 41 08 00 00 00 00 00 FF 0F 5E [18:24:01]RasterBufferAndPrint [18:24:01]line Счет N : (1)507858 [18:24:01]line ИНН: 02508201610067 [18:24:01]line Контрольно-Кассовый Чек [18:24:01]line ПРОДАЖА [18:24:01]line ТРК (МРК, ГНК) : 33 [18:24:01]line Товар: 2710124130 [18:24:01]line Аи-92-К-5 [18:24:01]line 7.490 * 66.80 [18:24:01]line = 500.33 [18:24:01]line НДС 12% НСП 1% [18:24:01]line > о реализуемом товаре [18:24:01]line ИТОГО: 500.33 [18:24:01]line НСП 1% : 4.43 [18:24:01]line НДС 12% : 53.13 [18:24:01]line Наличными: 0.00 [18:24:01]line Безнал.: 500.33 [18:24:01]line Место: АЗС № 91 "Партнер Нефть" [18:24:01]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:24:01]line СНО: Общий режим [18:24:01]line Чек 115 17.05.2024 18:24 [18:24:01]line Смена: 358 ФФД: 1.0 [18:24:01]line ЗНМ: 0300000119 [18:24:01]line РНМ: 0000000000091845 [18:24:01]line Версия ККМ: 001 [18:24:01]line Платежная система: O! деньги [18:24:01]line ФМ: 0000000000871829 [18:24:01]line ФД: 67706 [18:24:01]line ФПД: 25217970163527 [18:24:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T182400&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67706&fm=25217970163527&tin=02508201610067®Number=0000000000091845&sum=50033 [18:24:01]OFD Sender: Processing packet 67706 [packets to send 35, broken 34] [18:24:01]ProducePacketName [18:24:01]name=ofd_packets/00067706 [18:24:01]OFD Sender: To server: pG, [18:24:01]CommunicateWithHost lk.salyk.kg:30040 [18:24:01]ConnectInit lk.salyk.kg [18:24:01]written 0, free lines is 4095 [18:24:01]Connected sock=9 [18:24: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 8D DC 07 01 EE C4 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 73 00 00 00 F4 03 04 00 C0 A0 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 16 EF 84 27 4F 47 02 C6 5F 43 62 CC 27 7F [18:24: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 BC 1D 47 00 99 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 7A 08 01 00 F4 03 04 00 98 48 47 66 B6 04 01 00 00 E6 7F 87 B4 9C F4 84 1A [18:24:01]CommunicateWithHost err = 0 [18:24:01]CheckOFDResponse [18:24:01]1017 (14) - 77093643461234 [18:24:01]1041 (16) - 0000000000871829 [18:24:01]1040 (4) - 67706 [18:24:01]1012 (4) - 17.05.2024 12:07 [18:24:01]1206 (1) - 0 [18:24:01]OFD Sender: Remove packet 67706 [18:24:01]ProducePacketName [18:24:01]name=ofd_packets/00067706 [18:24:01]NVStorageDeleteData [18:24:02]Write to MH i2c: 01 00 00 6A 08 72 [18:24:02]Write i2c OK [18:24:02]MH_I2C_Read... [18:24:02]Read from MH i2c: 01 [18:24:02]MH_I2C_Read... [18:24:02]Read from MH i2c: 01 07 00 [18:24:02]MH_I2C_Read... [18:24:02]Read from MH i2c: 01 07 00 6A 08 00 00 00 00 00 E2 0C 67 [18:24:02]RasterBufferAndPrint [18:24:02]line [18:24:02]line [18:24:02]line [18:24:02]line [18:24:02]line [18:24:02]written 0, free lines is 3306 [18:24:02]MH_Cut [18:24:02]Write to MH i2c: D1 01 00 71 08 01 4B [18:24:02]Write i2c OK [18:24:02]MH_I2C_Read... [18:24:02]Read from MH i2c: D1 [18:24:02]MH_I2C_Read... [18:24:02]Read from MH i2c: D1 01 00 [18:24:02]MH_I2C_Read... [18:24:02]Read from MH i2c: D1 01 00 71 08 00 4A [18:24:02]Write to MH i2c: 01 00 00 72 08 7A [18:24:02]Write i2c OK [18:24:02]MH_I2C_Read... [18:24:02]OFD Sender: No OFD packet to send [18:24:02]*** Cut start [18:24:02]*** Purtial cut [18:24:02]*** CUTSNS_PIN = 0 [18:24:03]*** Stage 1: CUTSNS_PIN = 1 [18:24:04]Read from MH i2c: 01 [18:24:04]MH_I2C_Read... [18:24:04]*** Stop cut motor [18:24:04]*** Cut end [18:24:04]Read from MH i2c: 01 07 00 [18:24:04]MH_I2C_Read... [18:24:04]Read from MH i2c: 01 07 00 72 08 00 00 00 00 00 FF 0F 8F [18:24:04]process_action close_receipt done [18:24:04]requested_data is exist [18:24:04]produce_requested_data [18:24:04]requested_item fm.sn is exist - process it [18:24:04]wFMCommunicate request_size=4 [18:24:04]MH_SAM_APDU [18:24:04]CAPDU: 80 11 00 00 [18:24:04]Write to MH i2c: E2 08 00 73 08 80 11 00 00 00 00 00 00 F5 [18:24:04]Write i2c OK [18:24:04]MH_I2C_Read... [18:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:04]Read from MH i2c: E2 [18:24:04]MH_I2C_Read... [18:24:04]Read from MH i2c: E2 17 00 [18:24:04]MH_I2C_Read... [18:24:04]Read from MH i2c: E2 17 00 73 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4B [18:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:24:04]wFMCommunicate OK [18:24:04]requested_item fd.num is exist - process it [18:24:04]SAM_PROTO_GetFieldsCounters [18:24:04]wFMCommunicate request_size=4 [18:24:04]MH_SAM_APDU [18:24:04]CAPDU: 80 13 00 00 [18:24:04]Write to MH i2c: E2 08 00 74 08 80 13 00 00 00 00 00 00 F8 [18:24:04]Write i2c OK [18:24:04]MH_I2C_Read... [18:24:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:05]Read from MH i2c: E2 [18:24:05]MH_I2C_Read... [18:24:05]Read from MH i2c: E2 62 00 [18:24:05]MH_I2C_Read... [18:24:05]Read from MH i2c: E2 62 00 74 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 7A 08 01 00 0E 04 04 00 66 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 61 [18:24: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 7A 08 01 00 0E 04 04 00 66 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 [18:24:05]wFMCommunicate OK [18:24:05]SAM_PROTO_GetFieldsCounters done [18:24:05]requested_item shift.num is exist - process it [18:24:05]requested_item shift.opened is exist - process it [18:24:05]req_shift_opened [18:24:05]FM_GetShiftState [18:24:05]SAM_PROTO_GetShiftState [18:24:05]wFMCommunicate request_size=4 [18:24:05]MH_SAM_APDU [18:24:05]CAPDU: 80 13 01 00 [18:24:05]Write to MH i2c: E2 08 00 75 08 80 13 01 00 00 00 00 00 FA [18:24:05]Write i2c OK [18:24:05]MH_I2C_Read... [18:24:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:05]Read from MH i2c: E2 [18:24:05]MH_I2C_Read... [18:24:05]Read from MH i2c: E2 0E 00 [18:24:05]MH_I2C_Read... [18:24:05]Read from MH i2c: E2 0E 00 75 08 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 80 [18:24:05]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [18:24:05]wFMCommunicate OK [18:24:05]SAM_PROTO_GetShiftState done [18:24:05]FM_GetShiftState done [18:24:05]req_shift_opened done [18:24:05]requested_item shift.open_date is exist - process it [18:24:05]req_shift_open_date [18:24:05]req_shift_open_date done [18:24:05]produce_requested_data done [18:24:05]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67706,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [18:24:05]process_action_free close_receipt [18:24:05]json_value_free [18:24:05]json_value_free done [18:24:05]process_json_proto returns [18:24:05]Send response to host [18:24:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67706,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [18:24:05]free response buf [18:24:05]execute_script done [18:24:05]execute_script returns [18:24:05]free content buf [18:24:05]Sock 7.Close socket [18:24:05]Sock 7.Thread stoped [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:04]accept exits with 10 [18:25:04]New connection [18:25:04]New thread 3066752356 created [18:25:04]Thread 3066608996 joined [18:25:04]Waiting for new connection... [18:25:04] Sock 10.Parse request [18:25:04]Sock 10.Check first char [18:25:04]Sock 10.First char is OK [18:25:04]request: POST /json_proto HTTP/1.0 [18:25:04]Method: POST [18:25:04]URL: /json_proto [18:25:04]Method is POST - this is cgi request [18:25:04]url: /json_proto [18:25:04]query_string will be loaded in cgi processing [18:25:04]execute_cgi json_proto POST (null) [18:25:04]execute_cgi path=json_proto method=POST [18:25:04]POST find Content-Length [18:25:04]Host: 172.17.41.195:8080 [18:25:04]Content-Length: 809 [18:25:04]Content-Type: application/json [18:25:04] [18:25:04]POST finish read [18:25:04]Found Content-Length = 809 [18:25:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507859", "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 }]} ], "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" ] } } [18:25:04]execute_script... [18:25: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)507859", "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 }]} ], "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" ] } } [18:25:04]POST & json_proto [18:25:04]process_json_proto [18:25:04]json parsed OK: [18:25:04]protocol is kg_v1.0 [18:25:04]action value=close_receipt [18:25:04]process_action close_receipt [18:25:04]cmd_close_receipt [18:25:04]MH_GetDate [18:25:04]Write to MH i2c: F0 00 00 76 08 6D [18:25:04]Write i2c OK [18:25:04]MH_I2C_Read... [18:25:04]Read from MH i2c: F0 [18:25:04]MH_I2C_Read... [18:25:04]Read from MH i2c: F0 09 00 [18:25:04]MH_I2C_Read... [18:25:04]Read from MH i2c: F0 09 00 76 08 00 01 A1 47 66 FC 21 6F 64 B5 [18:25:04]GetLastDocTimeStamp 1715970240 [18:25:04]current date 1715970305 [18:25:04]FM_GetShiftState [18:25:04]SAM_PROTO_GetShiftState [18:25:04]wFMCommunicate request_size=4 [18:25:04]MH_SAM_APDU [18:25:04]CAPDU: 80 13 01 00 [18:25:04]Write to MH i2c: E2 08 00 77 08 80 13 01 00 00 00 00 00 FC [18:25:04]Write i2c OK [18:25:04]MH_I2C_Read... [18:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:04]Read from MH i2c: E2 [18:25:04]MH_I2C_Read... [18:25:04]Read from MH i2c: E2 0E 00 [18:25:04]MH_I2C_Read... [18:25:04]Read from MH i2c: E2 0E 00 77 08 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 82 [18:25:04]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [18:25:04]wFMCommunicate OK [18:25:04]SAM_PROTO_GetShiftState done [18:25:04]FM_GetShiftState done [18:25:04]opened in 1715905068 [18:25:04]opened+sec_in_day 1715991468 [18:25:04]quantity*price = 50036 [18:25:04]sum+1 = 50037 [18:25:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 116 17.05.2024 18:25 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67707 ФПД: 245786655627103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T182505&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67707&fm=245786655627103&tin=02508201610067®Number=0000000000091845&sum=50036 [18:25:05]StoreToDocumentArchive [18:25:05]shift 358 fd 67707 [18:25:05]save to /storage/0358/doc_00067707 [18:25:05]save last doc name /storage/0358/doc_00067707 to /storage/kkm_last_doc_name [18:25:05]save OK [18:25:05]Clear old archive folders... [18:25:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:25:05]tlvbuf is 01AF08C0 [18:25:05]SAM_PROTO_ClearQueue [18:25:05]wFMCommunicate request_size=4 [18:25:05]MH_SAM_APDU [18:25:05]CAPDU: 80 09 00 00 [18:25:05]Write to MH i2c: E2 08 00 84 08 80 09 00 00 00 00 00 00 FE [18:25:05]Write i2c OK [18:25:05]MH_I2C_Read... [18:25:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:05]Read from MH i2c: E2 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: E2 03 00 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: E2 03 00 84 08 00 90 00 00 [18:25:05]RAPDU: 90 00 [18:25:05]wFMCommunicate OK [18:25:05]SAM_PROTO_ClearQueue done [18:25:05]KKMCreateOFDPacket [18:25:05]OFDProtocolAddRootSTLVToBuf [18:25:05]FM_MakeSignedData [18:25:05]FM_MakeSignedData [18:25:05]SAM_PROTO_SignData [18:25:05]wFMCommunicate request_size=4 [18:25:05]MH_SAM_APDU [18:25:05]CAPDU: 80 0D 01 02 [18:25:05]Write to MH i2c: E2 08 00 85 08 80 0D 01 02 00 00 00 00 06 [18:25:05]Write i2c OK [18:25:05]MH_I2C_Read... [18:25:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:05]Read from MH i2c: E2 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: E2 03 00 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: E2 03 00 85 08 00 90 00 01 [18:25:05]RAPDU: 90 00 [18:25:05]wFMCommunicate OK [18:25:05]wFMCommunicate request_size=255 [18:25:05]MH_SAM_APDU [18:25:05]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 74 00 00 00 F4 03 04 00 01 A1 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 [18:25:05]Write to MH i2c: E2 02 01 86 08 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 74 00 00 00 F4 03 04 00 01 A1 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 00 00 AA [18:25:05]Write i2c OK [18:25:05]MH_I2C_Read... [18:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:05]Read from MH i2c: E2 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: E2 03 00 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: E2 03 00 86 08 00 90 00 02 [18:25:05]RAPDU: 90 00 [18:25:05]wFMCommunicate OK [18:25:05]wFMCommunicate request_size=11 [18:25:05]MH_SAM_APDU [18:25:05]CAPDU: 80 0D 02 02 06 DF 8A AA 4C 97 5F [18:25:05]Write to MH i2c: E2 0E 00 87 08 80 0D 02 02 06 00 DF 8A AA 4C 97 5F 00 00 6A [18:25:05]Write i2c OK [18:25:05]MH_I2C_Read... [18:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:05]Read from MH i2c: E2 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: E2 03 00 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: E2 03 00 87 08 00 90 00 03 [18:25:05]RAPDU: 90 00 [18:25:05]wFMCommunicate OK [18:25:05]wFMCommunicate request_size=4 [18:25:05]MH_SAM_APDU [18:25:05]CAPDU: 80 0D 03 02 [18:25:05]Write to MH i2c: E2 08 00 88 08 80 0D 03 02 00 00 00 00 0B [18:25:05]Write i2c OK [18:25:05]MH_I2C_Read... [18:25:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:05]Read from MH i2c: E2 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: E2 0B 00 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: E2 0B 00 88 08 00 46 0C 1D 8C 70 C0 3C 9B 90 00 0E [18:25:05]RAPDU: 46 0C 1D 8C 70 C0 3C 9B 90 00 [18:25:05]wFMCommunicate OK [18:25:05]SAM_PROTO_SignData done [18:25:05]FM_MakeSignedData done [18:25:05]CreateOFDProtocolMessage [18:25:05]wFMCommunicate request_size=4 [18:25:05]MH_SAM_APDU [18:25:05]CAPDU: 80 11 00 00 [18:25:05]Write to MH i2c: E2 08 00 89 08 80 11 00 00 00 00 00 00 0B [18:25:05]Write i2c OK [18:25:05]MH_I2C_Read... [18:25:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:05]Read from MH i2c: E2 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: E2 17 00 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: E2 17 00 89 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 61 [18:25:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:25:05]wFMCommunicate OK [18:25:05]CreateOFDProtocolMessage done [18:25:05]OFDSenderStorePacket 67707 [18:25:05]StoreOFDPacket docnum=67707 [18:25: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 10 01 00 00 4F DF 08 01 E4 6C 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 74 00 00 00 F4 03 04 00 01 A1 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 DF 8A AA 4C 97 5F 46 0C 1D 8C 70 C0 3C 9B [18:25:05]CheckFolder [18:25:05]dirname=/storage/ofd_packets [18:25:05]CheckFolder done [18:25:05]ProducePacketName [18:25:05]name=ofd_packets/00067707 [18:25:05]NVStorageSaveData ofd_packets/00067707 [18:25:05]File name is /storage/ofd_packets/00067707 [18:25:05]Write 302 bytes [18:25:05]NVStorageSaveData done [18:25:05]OFDSenderStorePacket done [18:25:05]KKMCreateOFDPacket done [18:25:05]NVStorageSaveData kkm_last_timestamp [18:25:05]File name is /storage/kkm_last_timestamp [18:25:05]Write 4 bytes [18:25:05]NVStorageSaveData done [18:25:05]ExternCall_PrintAddStr [18:25:05]wPrintStart [18:25:05]Write to MH i2c: 01 00 00 8A 08 92 [18:25:05]Write i2c OK [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: 01 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: 01 07 00 [18:25:05]MH_I2C_Read... [18:25:05]Read from MH i2c: 01 07 00 8A 08 00 00 00 00 00 FF 0F A7 [18:25:05]RasterBufferAndPrint [18:25:05]line Счет N : (1)507859 [18:25:05]line ИНН: 02508201610067 [18:25:05]line Контрольно-Кассовый Чек [18:25:05]line ПРОДАЖА [18:25:05]line ТРК (МРК, ГНК) : 12 [18:25:05]line Товар: 2710124130 [18:25:05]line Super-92-К-5 [18:25:05]line 7.380 * 67.80 [18:25:05]line = 500.36 [18:25:05]line НДС 12% НСП 1% [18:25:05]line > о реализуемом товаре [18:25:05]line ИТОГО: 500.36 [18:25:05]line НСП 1% : 4.43 [18:25:05]line НДС 12% : 53.14 [18:25:05]line Наличными: 0.00 [18:25:05]line Безнал.: 500.36 [18:25:05]line Место: АЗС № 91 "Партнер Нефть" [18:25:05]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:25:05]line СНО: Общий режим [18:25:05]line Чек 116 17.05.2024 18:25 [18:25:05]line Смена: 358 ФФД: 1.0 [18:25:05]line ЗНМ: 0300000119 [18:25:05]line РНМ: 0000000000091845 [18:25:05]line Версия ККМ: 001 [18:25:05]line Платежная система: Бакай Банк [18:25:05]line ФМ: 0000000000871829 [18:25:05]line ФД: 67707 [18:25:05]line ФПД: 245786655627103 [18:25:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T182505&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67707&fm=245786655627103&tin=02508201610067®Number=0000000000091845&sum=50036 [18:25:05]written 0, free lines is 4095 [18:25:06]OFD Sender: Processing packet 67707 [packets to send 35, broken 34] [18:25:06]ProducePacketName [18:25:06]name=ofd_packets/00067707 [18:25:06]OFD Sender: To server: pG, [18:25:06]CommunicateWithHost lk.salyk.kg:30040 [18:25:06]ConnectInit lk.salyk.kg [18:25:06]Connected sock=9 [18:25: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 4F DF 08 01 E4 6C 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 74 00 00 00 F4 03 04 00 01 A1 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 DF 8A AA 4C 97 5F 46 0C 1D 8C 70 C0 3C 9B [18:25: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 59 4F 47 00 F2 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 D8 48 47 66 B6 04 01 00 00 2D 0D EF DB 76 C0 AD D4 [18:25:06]CommunicateWithHost err = 0 [18:25:06]CheckOFDResponse [18:25:06]1017 (14) - 77093643461234 [18:25:06]1041 (16) - 0000000000871829 [18:25:06]1040 (4) - 67707 [18:25:06]1012 (4) - 17.05.2024 12:08 [18:25:06]1206 (1) - 0 [18:25:06]OFD Sender: Remove packet 67707 [18:25:06]ProducePacketName [18:25:06]name=ofd_packets/00067707 [18:25:06]NVStorageDeleteData [18:25:06]Write to MH i2c: 01 00 00 B3 08 BB [18:25:06]Write i2c OK [18:25:06]MH_I2C_Read... [18:25:06]Read from MH i2c: 01 [18:25:06]MH_I2C_Read... [18:25:06]Read from MH i2c: 01 07 00 [18:25:06]MH_I2C_Read... [18:25:06]Read from MH i2c: 01 07 00 B3 08 00 00 00 00 00 F4 0C C2 [18:25:06]RasterBufferAndPrint [18:25:06]line [18:25:06]line [18:25:06]line [18:25:06]line [18:25:06]line [18:25:06]written 0, free lines is 3322 [18:25:06]MH_Cut [18:25:06]Write to MH i2c: D1 01 00 BA 08 01 94 [18:25:06]Write i2c OK [18:25:06]MH_I2C_Read... [18:25:06]Read from MH i2c: D1 [18:25:06]MH_I2C_Read... [18:25:06]Read from MH i2c: D1 01 00 [18:25:06]MH_I2C_Read... [18:25:06]Read from MH i2c: D1 01 00 BA 08 00 93 [18:25:06]Write to MH i2c: 01 00 00 BB 08 C3 [18:25:06]Write i2c OK [18:25:06]MH_I2C_Read... [18:25:06]OFD Sender: No OFD packet to send [18:25:07]*** Cut start [18:25:07]*** Purtial cut [18:25:07]*** Stage 1: CUTSNS_PIN = 1 [18:25:07]Read from MH i2c: 01 [18:25:07]MH_I2C_Read... [18:25:07]*** Stop cut motor [18:25:07]*** Cut end [18:25:07]Read from MH i2c: 01 07 00 [18:25:07]MH_I2C_Read... [18:25:07]Read from MH i2c: 01 07 00 BB 08 00 00 00 00 00 FF 0F D8 [18:25:07]process_action close_receipt done [18:25:07]requested_data is exist [18:25:07]produce_requested_data [18:25:07]requested_item fm.sn is exist - process it [18:25:07]wFMCommunicate request_size=4 [18:25:07]MH_SAM_APDU [18:25:07]CAPDU: 80 11 00 00 [18:25:07]Write to MH i2c: E2 08 00 BC 08 80 11 00 00 00 00 00 00 3E [18:25:07]Write i2c OK [18:25:07]MH_I2C_Read... [18:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:07]Read from MH i2c: E2 [18:25:07]MH_I2C_Read... [18:25:07]Read from MH i2c: E2 17 00 [18:25:07]MH_I2C_Read... [18:25:07]Read from MH i2c: E2 17 00 BC 08 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:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:25:07]wFMCommunicate OK [18:25:07]requested_item fd.num is exist - process it [18:25:07]SAM_PROTO_GetFieldsCounters [18:25:07]wFMCommunicate request_size=4 [18:25:07]MH_SAM_APDU [18:25:07]CAPDU: 80 13 00 00 [18:25:07]Write to MH i2c: E2 08 00 BD 08 80 13 00 00 00 00 00 00 41 [18:25:07]Write i2c OK [18:25:07]MH_I2C_Read... [18:25:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:07]Read from MH i2c: E2 [18:25:07]MH_I2C_Read... [18:25:07]Read from MH i2c: E2 62 00 [18:25:07]MH_I2C_Read... [18:25:07]Read from MH i2c: E2 62 00 BD 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 7B 08 01 00 0E 04 04 00 66 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 AE [18:25: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 7B 08 01 00 0E 04 04 00 66 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 [18:25:07]wFMCommunicate OK [18:25:07]SAM_PROTO_GetFieldsCounters done [18:25:07]requested_item shift.num is exist - process it [18:25:07]requested_item shift.opened is exist - process it [18:25:07]req_shift_opened [18:25:07]FM_GetShiftState [18:25:07]SAM_PROTO_GetShiftState [18:25:07]wFMCommunicate request_size=4 [18:25:07]MH_SAM_APDU [18:25:07]CAPDU: 80 13 01 00 [18:25:07]Write to MH i2c: E2 08 00 BE 08 80 13 01 00 00 00 00 00 43 [18:25:07]Write i2c OK [18:25:07]MH_I2C_Read... [18:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:07]Read from MH i2c: E2 [18:25:07]MH_I2C_Read... [18:25:07]Read from MH i2c: E2 0E 00 [18:25:07]MH_I2C_Read... [18:25:07]Read from MH i2c: E2 0E 00 BE 08 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 C9 [18:25:07]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [18:25:07]wFMCommunicate OK [18:25:07]SAM_PROTO_GetShiftState done [18:25:07]FM_GetShiftState done [18:25:07]req_shift_opened done [18:25:07]requested_item shift.open_date is exist - process it [18:25:07]req_shift_open_date [18:25:07]req_shift_open_date done [18:25:07]produce_requested_data done [18:25:07]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67707,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [18:25:07]process_action_free close_receipt [18:25:07]json_value_free [18:25:07]json_value_free done [18:25:07]process_json_proto returns [18:25:07]Send response to host [18:25:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67707,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [18:25:07]free response buf [18:25:07]execute_script done [18:25:07]execute_script returns [18:25:07]free content buf [18:25:07]Sock 10.Close socket [18:25:07]Sock 10.Thread stoped [18:25:11]OFD Sender: No OFD packet to send [18:25:16]OFD Sender: No OFD packet to send [18:25:21]OFD Sender: No OFD packet to send [18:25:26]OFD Sender: No OFD packet to send [18:25:31]OFD Sender: No OFD packet to send [18:25:36]OFD Sender: No OFD packet to send [18:25:41]OFD Sender: No OFD packet to send [18:25:46]OFD Sender: No OFD packet to send [18:25:51]OFD Sender: No OFD packet to send [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:37]OFD Sender: No OFD packet to send [18:28:42]OFD Sender: No OFD packet to send [18:28:47]OFD Sender: No OFD packet to send [18:28:52]OFD Sender: No OFD packet to send [18:28:57]OFD Sender: No OFD packet to send [18:29:02]OFD Sender: No OFD packet to send [18:29:07]OFD Sender: No OFD packet to send [18:29:12]OFD Sender: No OFD packet to send [18:29:17]OFD Sender: No OFD packet to send [18:29:22]OFD Sender: No OFD packet to send [18:29:27]OFD Sender: No OFD packet to send [18:29:32]OFD Sender: No OFD packet to send [18:29:37]OFD Sender: No OFD packet to send [18:29:42]OFD Sender: No OFD packet to send [18:29:47]OFD Sender: No OFD packet to send [18:29:52]OFD Sender: No OFD packet to send [18:29:57]OFD Sender: No OFD packet to send [18:30:02]OFD Sender: No OFD packet to send [18:30:07]OFD Sender: No OFD packet to send [18:30:12]OFD Sender: No OFD packet to send [18:30:17]OFD Sender: No OFD packet to send [18:30:22]OFD Sender: No OFD packet to send [18:30:27]OFD Sender: No OFD packet to send [18:30:32]OFD Sender: No OFD packet to send [18:30:37]OFD Sender: No OFD packet to send [18:30:42]OFD Sender: No OFD packet to send [18:30:47]OFD Sender: No OFD packet to send [18:30:52]OFD Sender: No OFD packet to send [18:30:57]OFD Sender: No OFD packet to send [18:31:02]OFD Sender: No OFD packet to send [18:31:07]OFD Sender: No OFD packet to send [18:31:12]OFD Sender: No OFD packet to send [18:31:13]accept exits with 7 [18:31:13]New connection [18:31:13]New thread 3066608996 created [18:31:13]Thread 3066752356 joined [18:31:13]Waiting for new connection... [18:31:13] Sock 7.Parse request [18:31:13]Sock 7.Check first char [18:31:13]Sock 7.First char is OK [18:31:13]request: POST /json_proto HTTP/1.0 [18:31:13]Method: POST [18:31:13]URL: /json_proto [18:31:13]Method is POST - this is cgi request [18:31:13]url: /json_proto [18:31:13]query_string will be loaded in cgi processing [18:31:13]execute_cgi json_proto POST (null) [18:31:13]execute_cgi path=json_proto method=POST [18:31:13]POST find Content-Length [18:31:13]Host: 172.17.41.195:8080 [18:31:13]Content-Length: 812 [18:31:13]Content-Type: application/json [18:31:13] [18:31:13]POST finish read [18:31:13]Found Content-Length = 812 [18:31:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507860", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:13]execute_script... [18:31: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)507860", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:13]POST & json_proto [18:31:13]process_json_proto [18:31:13]json parsed OK: [18:31:13]protocol is kg_v1.0 [18:31:13]action value=close_receipt [18:31:13]process_action close_receipt [18:31:13]cmd_close_receipt [18:31:13]MH_GetDate [18:31:13]Write to MH i2c: F0 00 00 BF 08 B6 [18:31:13]Write i2c OK [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: F0 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: F0 09 00 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: F0 09 00 BF 08 00 73 A2 47 66 FC 21 6F 64 71 [18:31:13]GetLastDocTimeStamp 1715970305 [18:31:13]current date 1715970675 [18:31:13]FM_GetShiftState [18:31:13]SAM_PROTO_GetShiftState [18:31:13]wFMCommunicate request_size=4 [18:31:13]MH_SAM_APDU [18:31:13]CAPDU: 80 13 01 00 [18:31:13]Write to MH i2c: E2 08 00 C0 08 80 13 01 00 00 00 00 00 45 [18:31:13]Write i2c OK [18:31:13]MH_I2C_Read... [18:31:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:13]Read from MH i2c: E2 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: E2 0E 00 [18:31:13]MH_I2C_Read... [18:31:13]Read from MH i2c: E2 0E 00 C0 08 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CB [18:31:13]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [18:31:13]wFMCommunicate OK [18:31:13]SAM_PROTO_GetShiftState done [18:31:13]FM_GetShiftState done [18:31:13]opened in 1715905068 [18:31:13]opened+sec_in_day 1715991468 [18:31:13]quantity*price = 150041 [18:31:13]sum+1 = 150042 [18:31:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.41 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.41 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 117 17.05.2024 18:31 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67708 ФПД: 71111013926830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T183115&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67708&fm=71111013926830&tin=02508201610067®Number=0000000000091845&sum=150041 [18:31:14]StoreToDocumentArchive [18:31:14]shift 358 fd 67708 [18:31:14]save to /storage/0358/doc_00067708 [18:31:14]save last doc name /storage/0358/doc_00067708 to /storage/kkm_last_doc_name [18:31:14]save OK [18:31:14]Clear old archive folders... [18:31:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:31:14]tlvbuf is 01B4D780 [18:31:14]SAM_PROTO_ClearQueue [18:31:14]wFMCommunicate request_size=4 [18:31:14]MH_SAM_APDU [18:31:14]CAPDU: 80 09 00 00 [18:31:14]Write to MH i2c: E2 08 00 CD 08 80 09 00 00 00 00 00 00 47 [18:31:14]Write i2c OK [18:31:14]MH_I2C_Read... [18:31:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:14]Read from MH i2c: E2 [18:31:14]MH_I2C_Read... [18:31:14]Read from MH i2c: E2 03 00 [18:31:14]MH_I2C_Read... [18:31:14]Read from MH i2c: E2 03 00 CD 08 00 90 00 49 [18:31:14]RAPDU: 90 00 [18:31:14]wFMCommunicate OK [18:31:14]SAM_PROTO_ClearQueue done [18:31:14]KKMCreateOFDPacket [18:31:14]OFDProtocolAddRootSTLVToBuf [18:31:14]FM_MakeSignedData [18:31:14]FM_MakeSignedData [18:31:14]SAM_PROTO_SignData [18:31:14]wFMCommunicate request_size=4 [18:31:14]MH_SAM_APDU [18:31:14]CAPDU: 80 0D 01 02 [18:31:14]Write to MH i2c: E2 08 00 CE 08 80 0D 01 02 00 00 00 00 4F [18:31:14]Write i2c OK [18:31:14]MH_I2C_Read... [18:31:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:14]Read from MH i2c: E2 [18:31:14]MH_I2C_Read... [18:31:14]Read from MH i2c: E2 03 00 [18:31:14]MH_I2C_Read... [18:31:14]Read from MH i2c: E2 03 00 CE 08 00 90 00 4A [18:31:14]RAPDU: 90 00 [18:31:14]wFMCommunicate OK [18:31:14]wFMCommunicate request_size=255 [18:31:14]MH_SAM_APDU [18:31:14]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 75 00 00 00 F4 03 04 00 73 A2 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 [18:31:14]Write to MH i2c: E2 02 01 CF 08 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 75 00 00 00 F4 03 04 00 73 A2 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 00 00 E9 [18:31:14]Write i2c OK [18:31:14]MH_I2C_Read... [18:31:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:15]Read from MH i2c: E2 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 03 00 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 03 00 CF 08 00 90 00 4B [18:31:15]RAPDU: 90 00 [18:31:15]wFMCommunicate OK [18:31:15]wFMCommunicate request_size=11 [18:31:15]MH_SAM_APDU [18:31:15]CAPDU: 80 0D 02 02 06 40 AC D2 B9 87 AE [18:31:15]Write to MH i2c: E2 0E 00 D0 08 80 0D 02 02 06 00 40 AC D2 B9 87 AE 00 00 0A [18:31:15]Write i2c OK [18:31:15]MH_I2C_Read... [18:31:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:15]Read from MH i2c: E2 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 03 00 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 03 00 D0 08 00 90 00 4C [18:31:15]RAPDU: 90 00 [18:31:15]wFMCommunicate OK [18:31:15]wFMCommunicate request_size=4 [18:31:15]MH_SAM_APDU [18:31:15]CAPDU: 80 0D 03 02 [18:31:15]Write to MH i2c: E2 08 00 D1 08 80 0D 03 02 00 00 00 00 54 [18:31:15]Write i2c OK [18:31:15]MH_I2C_Read... [18:31:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:15]Read from MH i2c: E2 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 0B 00 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 0B 00 D1 08 00 CD C3 7D E8 42 5E E2 9A 90 00 66 [18:31:15]RAPDU: CD C3 7D E8 42 5E E2 9A 90 00 [18:31:15]wFMCommunicate OK [18:31:15]SAM_PROTO_SignData done [18:31:15]FM_MakeSignedData done [18:31:15]CreateOFDProtocolMessage [18:31:15]wFMCommunicate request_size=4 [18:31:15]MH_SAM_APDU [18:31:15]CAPDU: 80 11 00 00 [18:31:15]Write to MH i2c: E2 08 00 D2 08 80 11 00 00 00 00 00 00 54 [18:31:15]Write i2c OK [18:31:15]MH_I2C_Read... [18:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:15]Read from MH i2c: E2 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 17 00 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: E2 17 00 D2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AA [18:31: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:31:15]wFMCommunicate OK [18:31:15]CreateOFDProtocolMessage done [18:31:15]OFDSenderStorePacket 67708 [18:31:15]StoreOFDPacket docnum=67708 [18:31:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 96 DB 08 01 43 5A 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 75 00 00 00 F4 03 04 00 73 A2 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 40 AC D2 B9 87 AE CD C3 7D E8 42 5E E2 9A [18:31:15]CheckFolder [18:31:15]dirname=/storage/ofd_packets [18:31:15]CheckFolder done [18:31:15]ProducePacketName [18:31:15]name=ofd_packets/00067708 [18:31:15]NVStorageSaveData ofd_packets/00067708 [18:31:15]File name is /storage/ofd_packets/00067708 [18:31:15]Write 302 bytes [18:31:15]NVStorageSaveData done [18:31:15]OFDSenderStorePacket done [18:31:15]KKMCreateOFDPacket done [18:31:15]NVStorageSaveData kkm_last_timestamp [18:31:15]File name is /storage/kkm_last_timestamp [18:31:15]Write 4 bytes [18:31:15]NVStorageSaveData done [18:31:15]ExternCall_PrintAddStr [18:31:15]wPrintStart [18:31:15]Write to MH i2c: 01 00 00 D3 08 DB [18:31:15]Write i2c OK [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: 01 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: 01 07 00 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: 01 07 00 D3 08 00 00 00 00 00 FF 0F F0 [18:31:15]RasterBufferAndPrint [18:31:15]line Счет N : (1)507860 [18:31:15]line ИНН: 02508201610067 [18:31:15]line Контрольно-Кассовый Чек [18:31:15]line ПРОДАЖА [18:31:15]line ТРК (МРК, ГНК) : 32 [18:31:15]line Товар: 2710124130 [18:31:15]line Super-92-К-5 [18:31:15]line 22.130 * 67.80 [18:31:15]line = 1500.41 [18:31:15]line НДС 12% НСП 1% [18:31:15]line > о реализуемом товаре [18:31:15]line ИТОГО: 1500.41 [18:31:15]line НСП 1% : 13.28 [18:31:15]line НДС 12% : 159.34 [18:31:15]line Наличными: 0.00 [18:31:15]line Безнал.: 1500.41 [18:31:15]line Место: АЗС № 91 "Партнер Нефть" [18:31:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:31:15]line СНО: Общий режим [18:31:15]line Чек 117 17.05.2024 18:31 [18:31:15]line Смена: 358 ФФД: 1.0 [18:31:15]line ЗНМ: 0300000119 [18:31:15]line РНМ: 0000000000091845 [18:31:15]line Версия ККМ: 001 [18:31:15]line Платежная система: Бакай Банк [18:31:15]line ФМ: 0000000000871829 [18:31:15]line ФД: 67708 [18:31:15]line ФПД: 71111013926830 [18:31:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T183115&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67708&fm=71111013926830&tin=02508201610067®Number=0000000000091845&sum=150041 [18:31:15]written 0, free lines is 4095 [18:31:15]OFD Sender: Processing packet 67708 [packets to send 35, broken 34] [18:31:15]ProducePacketName [18:31:15]name=ofd_packets/00067708 [18:31:15]OFD Sender: To server: pG, [18:31:15]CommunicateWithHost lk.salyk.kg:30040 [18:31:15]ConnectInit lk.salyk.kg [18:31:15]Connected sock=10 [18:31: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 10 01 00 00 96 DB 08 01 43 5A 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 75 00 00 00 F4 03 04 00 73 A2 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 40 AC D2 B9 87 AE CD C3 7D E8 42 5E E2 9A [18:31: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 70 E1 47 00 D1 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 7C 08 01 00 F4 03 04 00 4A 4A 47 66 B6 04 01 00 00 AE 4A 94 38 AB 07 B9 F5 [18:31:15]CommunicateWithHost err = 0 [18:31:15]CheckOFDResponse [18:31:15]1017 (14) - 77093643461234 [18:31:15]1041 (16) - 0000000000871829 [18:31:15]1040 (4) - 67708 [18:31:15]1012 (4) - 17.05.2024 12:15 [18:31:15]1206 (1) - 0 [18:31:15]OFD Sender: Remove packet 67708 [18:31:15]ProducePacketName [18:31:15]name=ofd_packets/00067708 [18:31:15]NVStorageDeleteData [18:31:15]Write to MH i2c: 01 00 00 FC 08 04 [18:31:15]Write i2c OK [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: 01 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: 01 07 00 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: 01 07 00 FC 08 00 00 00 00 00 EE 0C 05 [18:31:15]RasterBufferAndPrint [18:31:15]line [18:31:15]line [18:31:15]line [18:31:15]line [18:31:15]line [18:31:15]written 0, free lines is 3319 [18:31:15]MH_Cut [18:31:15]Write to MH i2c: D1 01 00 03 09 01 DE [18:31:15]Write i2c OK [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: D1 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: D1 01 00 [18:31:15]MH_I2C_Read... [18:31:15]Read from MH i2c: D1 01 00 03 09 00 DD [18:31:15]Write to MH i2c: 01 00 00 04 09 0D [18:31:15]Write i2c OK [18:31:15]MH_I2C_Read... [18:31:16]OFD Sender: No OFD packet to send [18:31:16]*** Cut start [18:31:16]*** Purtial cut [18:31:16]*** CUTSNS_PIN = 0 [18:31:16]*** Stage 1: CUTSNS_PIN = 1 [18:31:18]Read from MH i2c: 01 [18:31:18]MH_I2C_Read... [18:31:18]*** Stop cut motor [18:31:18]*** Cut end [18:31:18]Read from MH i2c: 01 07 00 [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: 01 07 00 04 09 00 00 00 00 00 FF 0F 22 [18:31:18]process_action close_receipt done [18:31:18]requested_data is exist [18:31:18]produce_requested_data [18:31:18]requested_item fm.sn is exist - process it [18:31:18]wFMCommunicate request_size=4 [18:31:18]MH_SAM_APDU [18:31:18]CAPDU: 80 11 00 00 [18:31:18]Write to MH i2c: E2 08 00 05 09 80 11 00 00 00 00 00 00 88 [18:31:18]Write i2c OK [18:31:18]MH_I2C_Read... [18:31:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:18]Read from MH i2c: E2 [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: E2 17 00 [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: E2 17 00 05 09 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:31:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:31:18]wFMCommunicate OK [18:31:18]requested_item fd.num is exist - process it [18:31:18]SAM_PROTO_GetFieldsCounters [18:31:18]wFMCommunicate request_size=4 [18:31:18]MH_SAM_APDU [18:31:18]CAPDU: 80 13 00 00 [18:31:18]Write to MH i2c: E2 08 00 06 09 80 13 00 00 00 00 00 00 8B [18:31:18]Write i2c OK [18:31:18]MH_I2C_Read... [18:31:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:18]Read from MH i2c: E2 [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: E2 62 00 [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: E2 62 00 06 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 7C 08 01 00 0E 04 04 00 66 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 FC [18:31: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 7C 08 01 00 0E 04 04 00 66 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 [18:31:18]wFMCommunicate OK [18:31:18]SAM_PROTO_GetFieldsCounters done [18:31:18]requested_item shift.num is exist - process it [18:31:18]requested_item shift.opened is exist - process it [18:31:18]req_shift_opened [18:31:18]FM_GetShiftState [18:31:18]SAM_PROTO_GetShiftState [18:31:18]wFMCommunicate request_size=4 [18:31:18]MH_SAM_APDU [18:31:18]CAPDU: 80 13 01 00 [18:31:18]Write to MH i2c: E2 08 00 07 09 80 13 01 00 00 00 00 00 8D [18:31:18]Write i2c OK [18:31:18]MH_I2C_Read... [18:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:18]Read from MH i2c: E2 [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: E2 0E 00 [18:31:18]MH_I2C_Read... [18:31:18]Read from MH i2c: E2 0E 00 07 09 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 13 [18:31:18]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [18:31:18]wFMCommunicate OK [18:31:18]SAM_PROTO_GetShiftState done [18:31:18]FM_GetShiftState done [18:31:18]req_shift_opened done [18:31:18]requested_item shift.open_date is exist - process it [18:31:18]req_shift_open_date [18:31:18]req_shift_open_date done [18:31:18]produce_requested_data done [18:31:18]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67708,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [18:31:18]process_action_free close_receipt [18:31:18]json_value_free [18:31:18]json_value_free done [18:31:18]process_json_proto returns [18:31:18]Send response to host [18:31:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67708,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [18:31:18]free response buf [18:31:18]execute_script done [18:31:18]execute_script returns [18:31:18]free content buf [18:31:18]Sock 7.Close socket [18:31:18]Sock 7.Thread stoped [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:31]OFD Sender: No OFD packet to send [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:26]OFD Sender: No OFD packet to send [18:37:31]OFD Sender: No OFD packet to send [18:37:36]OFD Sender: No OFD packet to send [18:37:41]OFD Sender: No OFD packet to send [18:37:46]OFD Sender: No OFD packet to send [18:37:51]OFD Sender: No OFD packet to send [18:37:56]OFD Sender: No OFD packet to send [18:38:01]OFD Sender: No OFD packet to send [18:38:06]OFD Sender: No OFD packet to send [18:38:11]OFD Sender: No OFD packet to send [18:38:16]OFD Sender: No OFD packet to send [18:38:21]OFD Sender: No OFD packet to send [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:36]OFD Sender: No OFD packet to send [18:38:41]OFD Sender: No OFD packet to send [18:38:46]OFD Sender: No OFD packet to send [18:38:51]OFD Sender: No OFD packet to send [18:38:56]OFD Sender: No OFD packet to send [18:39:01]OFD Sender: No OFD packet to send [18:39:06]OFD Sender: No OFD packet to send [18:39:11]OFD Sender: No OFD packet to send [18:39:16]OFD Sender: No OFD packet to send [18:39:21]OFD Sender: No OFD packet to send [18:39:26]OFD Sender: No OFD packet to send [18:39:31]OFD Sender: No OFD packet to send [18:39:36]OFD Sender: No OFD packet to send [18:39:41]OFD Sender: No OFD packet to send [18:39:46]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:56]OFD Sender: No OFD packet to send [18:40:01]OFD Sender: No OFD packet to send [18:40:06]OFD Sender: No OFD packet to send [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:41]OFD Sender: No OFD packet to send [18:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [18:42:46]OFD Sender: No OFD packet to send [18:42:51]OFD Sender: No OFD packet to send [18:42:56]OFD Sender: No OFD packet to send [18:43:01]OFD Sender: No OFD packet to send [18:43:06]OFD Sender: No OFD packet to send [18:43:11]OFD Sender: No OFD packet to send [18:43:16]OFD Sender: No OFD packet to send [18:43:21]OFD Sender: No OFD packet to send [18:43:26]OFD Sender: No OFD packet to send [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:41]OFD Sender: No OFD packet to send [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:26]OFD Sender: No OFD packet to send [18:45:31]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:06]OFD Sender: No OFD packet to send [18:46:11]OFD Sender: No OFD packet to send [18:46:16]OFD Sender: No OFD packet to send [18:46:21]OFD Sender: No OFD packet to send [18:46:26]OFD Sender: No OFD packet to send [18:46:31]OFD Sender: No OFD packet to send [18:46:36]OFD Sender: No OFD packet to send [18:46:41]OFD Sender: No OFD packet to send [18:46:46]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: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:17]OFD Sender: No OFD packet to send [18:52:22]OFD Sender: No OFD packet to send [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:47]OFD Sender: No OFD packet to send [18:52:52]OFD Sender: No OFD packet to send [18:52:57]OFD Sender: No OFD packet to send [18:53:02]OFD Sender: No OFD packet to send [18:53:07]OFD Sender: No OFD packet to send [18:53:12]OFD Sender: No OFD packet to send [18:53:17]OFD Sender: No OFD packet to send [18:53:22]OFD Sender: No OFD packet to send [18:53:27]OFD Sender: No OFD packet to send [18:53:32]OFD Sender: No OFD packet to send [18:53:37]OFD Sender: No OFD packet to send [18:53:42]OFD Sender: No OFD packet to send [18:53:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:57]OFD Sender: No OFD packet to send [18:54:02]OFD Sender: No OFD packet to send [18:54:07]OFD Sender: No OFD packet to send [18:54:12]OFD Sender: No OFD packet to send [18:54:17]OFD Sender: No OFD packet to send [18:54:22]OFD Sender: No OFD packet to send [18:54:27]OFD Sender: No OFD packet to send [18:54:32]OFD Sender: No OFD packet to send [18:54:36]accept exits with 9 [18:54:36]New connection [18:54:36]New thread 3066752356 created [18:54:36]Thread 3066608996 joined [18:54:36]Waiting for new connection... [18:54:36] Sock 9.Parse request [18:54:36]Sock 9.Check first char [18:54:36]Sock 9.First char is OK [18:54:36]request: POST /json_proto HTTP/1.0 [18:54:36]Method: POST [18:54:36]URL: /json_proto [18:54:36]Method is POST - this is cgi request [18:54:36]url: /json_proto [18:54:36]query_string will be loaded in cgi processing [18:54:36]execute_cgi json_proto POST (null) [18:54:36]execute_cgi path=json_proto method=POST [18:54:36]POST find Content-Length [18:54:36]Host: 172.17.41.195:8080 [18:54:36]Content-Length: 816 [18:54:36]Content-Type: application/json [18:54:36] [18:54:36]POST finish read [18:54:36]Found Content-Length = 816 [18:54:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507861", "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: \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" ] } } [18:54:36]execute_script... [18:54: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)507861", "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: \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" ] } } [18:54:36]POST & json_proto [18:54:36]process_json_proto [18:54:36]json parsed OK: [18:54:36]protocol is kg_v1.0 [18:54:36]action value=close_receipt [18:54:36]process_action close_receipt [18:54:36]cmd_close_receipt [18:54:36]MH_GetDate [18:54:36]Write to MH i2c: F0 00 00 08 09 00 [18:54:36]Write i2c OK [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: F0 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: F0 09 00 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: F0 09 00 08 09 00 ED A7 47 66 FC 21 6F 64 3A [18:54:36]GetLastDocTimeStamp 1715970675 [18:54:36]current date 1715972077 [18:54:36]FM_GetShiftState [18:54:36]SAM_PROTO_GetShiftState [18:54:36]wFMCommunicate request_size=4 [18:54:36]MH_SAM_APDU [18:54:36]CAPDU: 80 13 01 00 [18:54:36]Write to MH i2c: E2 08 00 09 09 80 13 01 00 00 00 00 00 8F [18:54:36]Write i2c OK [18:54:36]MH_I2C_Read... [18:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:36]Read from MH i2c: E2 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 0E 00 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 0E 00 09 09 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 15 [18:54:36]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [18:54:36]wFMCommunicate OK [18:54:36]SAM_PROTO_GetShiftState done [18:54:36]FM_GetShiftState done [18:54:36]opened in 1715905068 [18:54:36]opened+sec_in_day 1715991468 [18:54:36]quantity*price = 50033 [18:54:36]sum+1 = 50034 [18:54:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 118 17.05.2024 18:54 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67709 ФПД: 123594767174430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T185437&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67709&fm=123594767174430&tin=02508201610067®Number=0000000000091845&sum=50033 [18:54:37]StoreToDocumentArchive [18:54:37]shift 358 fd 67709 [18:54:37]save to /storage/0358/doc_00067709 [18:54:37]save last doc name /storage/0358/doc_00067709 to /storage/kkm_last_doc_name [18:54:37]save OK [18:54:37]Clear old archive folders... [18:54:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:37]tlvbuf is 01AF5CD0 [18:54:37]SAM_PROTO_ClearQueue [18:54:37]wFMCommunicate request_size=4 [18:54:37]MH_SAM_APDU [18:54:37]CAPDU: 80 09 00 00 [18:54:37]Write to MH i2c: E2 08 00 16 09 80 09 00 00 00 00 00 00 91 [18:54:37]Write i2c OK [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: E2 [18:54:37]MH_I2C_Read... [18:54:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:37]Read from MH i2c: E2 03 00 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: E2 03 00 16 09 00 90 00 93 [18:54:37]RAPDU: 90 00 [18:54:37]wFMCommunicate OK [18:54:37]SAM_PROTO_ClearQueue done [18:54:37]KKMCreateOFDPacket [18:54:37]OFDProtocolAddRootSTLVToBuf [18:54:37]FM_MakeSignedData [18:54:37]FM_MakeSignedData [18:54:37]SAM_PROTO_SignData [18:54:37]wFMCommunicate request_size=4 [18:54:37]MH_SAM_APDU [18:54:37]CAPDU: 80 0D 01 02 [18:54:37]Write to MH i2c: E2 08 00 17 09 80 0D 01 02 00 00 00 00 99 [18:54:37]Write i2c OK [18:54:37]MH_I2C_Read... [18:54:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:37]Read from MH i2c: E2 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: E2 03 00 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: E2 03 00 17 09 00 90 00 94 [18:54:37]RAPDU: 90 00 [18:54:37]wFMCommunicate OK [18:54:37]wFMCommunicate request_size=255 [18:54:37]MH_SAM_APDU [18:54:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 ED A7 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 70 [18:54:37]Write to MH i2c: E2 02 01 18 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 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 76 00 00 00 F4 03 04 00 ED A7 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 70 00 00 7A [18:54:37]Write i2c OK [18:54:37]MH_I2C_Read... [18:54:37]OFD Sender: No OFD packet to send [18:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:37]Read from MH i2c: E2 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: E2 03 00 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: E2 03 00 18 09 00 90 00 95 [18:54:37]RAPDU: 90 00 [18:54:37]wFMCommunicate OK [18:54:37]wFMCommunicate request_size=10 [18:54:37]MH_SAM_APDU [18:54:37]CAPDU: 80 0D 02 02 05 68 A6 31 8B 1E [18:54:37]Write to MH i2c: E2 0D 00 19 09 80 0D 02 02 05 00 68 A6 31 8B 1E 00 00 8E [18:54:37]Write i2c OK [18:54:37]MH_I2C_Read... [18:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:37]Read from MH i2c: E2 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: E2 03 00 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: E2 03 00 19 09 00 90 00 96 [18:54:37]RAPDU: 90 00 [18:54:37]wFMCommunicate OK [18:54:37]wFMCommunicate request_size=4 [18:54:37]MH_SAM_APDU [18:54:37]CAPDU: 80 0D 03 02 [18:54:37]Write to MH i2c: E2 08 00 1A 09 80 0D 03 02 00 00 00 00 9E [18:54:37]Write i2c OK [18:54:37]MH_I2C_Read... [18:54:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:37]Read from MH i2c: E2 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: E2 0B 00 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: E2 0B 00 1A 09 00 66 B9 93 48 6F 81 B0 9B 90 00 D4 [18:54:37]RAPDU: 66 B9 93 48 6F 81 B0 9B 90 00 [18:54:37]wFMCommunicate OK [18:54:37]SAM_PROTO_SignData done [18:54:37]FM_MakeSignedData done [18:54:37]CreateOFDProtocolMessage [18:54:37]wFMCommunicate request_size=4 [18:54:37]MH_SAM_APDU [18:54:37]CAPDU: 80 11 00 00 [18:54:37]Write to MH i2c: E2 08 00 1B 09 80 11 00 00 00 00 00 00 9E [18:54:37]Write i2c OK [18:54:37]MH_I2C_Read... [18:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:37]Read from MH i2c: E2 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: E2 17 00 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: E2 17 00 1B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F4 [18:54:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:54:37]wFMCommunicate OK [18:54:37]CreateOFDProtocolMessage done [18:54:37]OFDSenderStorePacket 67709 [18:54:37]StoreOFDPacket docnum=67709 [18:54: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 14 EA 07 01 67 C2 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 76 00 00 00 F4 03 04 00 ED A7 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 70 68 A6 31 8B 1E 66 B9 93 48 6F 81 B0 9B [18:54:37]CheckFolder [18:54:37]dirname=/storage/ofd_packets [18:54:37]CheckFolder done [18:54:37]ProducePacketName [18:54:37]name=ofd_packets/00067709 [18:54:37]NVStorageSaveData ofd_packets/00067709 [18:54:37]File name is /storage/ofd_packets/00067709 [18:54:37]Write 301 bytes [18:54:37]NVStorageSaveData done [18:54:37]OFDSenderStorePacket done [18:54:37]KKMCreateOFDPacket done [18:54:37]NVStorageSaveData kkm_last_timestamp [18:54:37]File name is /storage/kkm_last_timestamp [18:54:37]Write 4 bytes [18:54:37]NVStorageSaveData done [18:54:37]ExternCall_PrintAddStr [18:54:37]wPrintStart [18:54:37]Write to MH i2c: 01 00 00 1C 09 25 [18:54:37]Write i2c OK [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: 01 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: 01 07 00 [18:54:37]MH_I2C_Read... [18:54:37]Read from MH i2c: 01 07 00 1C 09 00 00 00 00 00 FF 0F 3A [18:54:37]RasterBufferAndPrint [18:54:37]line Счет N : (1)507861 [18:54:37]line ИНН: 02508201610067 [18:54:37]line Контрольно-Кассовый Чек [18:54:37]line ПРОДАЖА [18:54:37]line ТРК (МРК, ГНК) : 43 [18:54:37]line Товар: 2710124130 [18:54:37]line Аи-92-К-5 [18:54:37]line 7.490 * 66.80 [18:54:37]line = 500.33 [18:54:37]line НДС 12% НСП 1% [18:54:37]line > о реализуемом товаре [18:54:37]line ИТОГО: 500.33 [18:54:37]line НСП 1% : 4.43 [18:54:37]line НДС 12% : 53.13 [18:54:37]line Наличными: 0.00 [18:54:37]line Безнал.: 500.33 [18:54:37]line Место: АЗС № 91 "Партнер Нефть" [18:54:37]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:54:37]line СНО: Общий режим [18:54:37]line Чек 118 17.05.2024 18:54 [18:54:37]line Смена: 358 ФФД: 1.0 [18:54:37]line ЗНМ: 0300000119 [18:54:37]line РНМ: 0000000000091845 [18:54:37]line Версия ККМ: 001 [18:54:37]line Платежная система: Бакай Банк [18:54:37]line ФМ: 0000000000871829 [18:54:37]line ФД: 67709 [18:54:37]line ФПД: 123594767174430 [18:54:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T185437&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67709&fm=123594767174430&tin=02508201610067®Number=0000000000091845&sum=50033 [18:54:38]OFD Sender: Processing packet 67709 [packets to send 35, broken 34] [18:54:38]ProducePacketName [18:54:38]name=ofd_packets/00067709 [18:54:38]OFD Sender: To server: pG, [18:54:38]CommunicateWithHost lk.salyk.kg:30040 [18:54:38]ConnectInit lk.salyk.kg [18:54:38]written 0, free lines is 4095 [18:54:38]Connected sock=10 [18:54: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 14 EA 07 01 67 C2 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 76 00 00 00 F4 03 04 00 ED A7 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 70 68 A6 31 8B 1E 66 B9 93 48 6F 81 B0 9B [18:54: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 CC CB 47 00 E9 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 7D 08 01 00 F4 03 04 00 C5 4F 47 66 B6 04 01 00 00 AC AE F6 C1 4A 03 4E A5 [18:54:38]CommunicateWithHost err = 0 [18:54:38]CheckOFDResponse [18:54:38]1017 (14) - 77093643461234 [18:54:38]1041 (16) - 0000000000871829 [18:54:38]1040 (4) - 67709 [18:54:38]1012 (4) - 17.05.2024 12:38 [18:54:38]1206 (1) - 0 [18:54:38]OFD Sender: Remove packet 67709 [18:54:38]ProducePacketName [18:54:38]name=ofd_packets/00067709 [18:54:38]NVStorageDeleteData [18:54:38]Write to MH i2c: 01 00 00 45 09 4E [18:54:38]Write i2c OK [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: 01 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: 01 07 00 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: 01 07 00 45 09 00 00 00 00 00 F4 0C 55 [18:54:38]RasterBufferAndPrint [18:54:38]line [18:54:38]line [18:54:38]line [18:54:38]line [18:54:38]line [18:54:38]written 0, free lines is 3322 [18:54:38]MH_Cut [18:54:38]Write to MH i2c: D1 01 00 4C 09 01 27 [18:54:38]Write i2c OK [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: D1 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: D1 01 00 [18:54:38]MH_I2C_Read... [18:54:38]Read from MH i2c: D1 01 00 4C 09 00 26 [18:54:38]Write to MH i2c: 01 00 00 4D 09 56 [18:54:38]Write i2c OK [18:54:38]MH_I2C_Read... [18:54:38]OFD Sender: No OFD packet to send [18:54:39]*** Cut start [18:54:39]*** Purtial cut [18:54:39]*** Stage 1: CUTSNS_PIN = 1 [18:54:39]Read from MH i2c: 01 [18:54:39]MH_I2C_Read... [18:54:39]*** Stop cut motor [18:54:39]*** Cut end [18:54:39]Read from MH i2c: 01 07 00 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: 01 07 00 4D 09 00 00 00 00 00 FF 0F 6B [18:54:39]process_action close_receipt done [18:54:39]requested_data is exist [18:54:39]produce_requested_data [18:54:39]requested_item fm.sn is exist - process it [18:54:39]wFMCommunicate request_size=4 [18:54:39]MH_SAM_APDU [18:54:39]CAPDU: 80 11 00 00 [18:54:39]Write to MH i2c: E2 08 00 4E 09 80 11 00 00 00 00 00 00 D1 [18:54:39]Write i2c OK [18:54:39]MH_I2C_Read... [18:54:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:39]Read from MH i2c: E2 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: E2 17 00 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: E2 17 00 4E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 27 [18:54:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:54:39]wFMCommunicate OK [18:54:39]requested_item fd.num is exist - process it [18:54:39]SAM_PROTO_GetFieldsCounters [18:54:39]wFMCommunicate request_size=4 [18:54:39]MH_SAM_APDU [18:54:39]CAPDU: 80 13 00 00 [18:54:39]Write to MH i2c: E2 08 00 4F 09 80 13 00 00 00 00 00 00 D4 [18:54:39]Write i2c OK [18:54:39]MH_I2C_Read... [18:54:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:39]Read from MH i2c: E2 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: E2 62 00 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: E2 62 00 4F 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 7D 08 01 00 0E 04 04 00 66 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 49 [18:54: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 7D 08 01 00 0E 04 04 00 66 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 [18:54:39]wFMCommunicate OK [18:54:39]SAM_PROTO_GetFieldsCounters done [18:54:39]requested_item shift.num is exist - process it [18:54:39]requested_item shift.opened is exist - process it [18:54:39]req_shift_opened [18:54:39]FM_GetShiftState [18:54:39]SAM_PROTO_GetShiftState [18:54:39]wFMCommunicate request_size=4 [18:54:39]MH_SAM_APDU [18:54:39]CAPDU: 80 13 01 00 [18:54:39]Write to MH i2c: E2 08 00 50 09 80 13 01 00 00 00 00 00 D6 [18:54:39]Write i2c OK [18:54:39]MH_I2C_Read... [18:54:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:39]Read from MH i2c: E2 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: E2 0E 00 [18:54:39]MH_I2C_Read... [18:54:39]Read from MH i2c: E2 0E 00 50 09 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 5C [18:54:39]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [18:54:39]wFMCommunicate OK [18:54:39]SAM_PROTO_GetShiftState done [18:54:39]FM_GetShiftState done [18:54:39]req_shift_opened done [18:54:39]requested_item shift.open_date is exist - process it [18:54:39]req_shift_open_date [18:54:39]req_shift_open_date done [18:54:39]produce_requested_data done [18:54:39]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67709,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [18:54:39]process_action_free close_receipt [18:54:39]json_value_free [18:54:39]json_value_free done [18:54:39]process_json_proto returns [18:54:39]Send response to host [18:54:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67709,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [18:54:39]free response buf [18:54:39]execute_script done [18:54:39]execute_script returns [18:54:39]free content buf [18:54:39]Sock 9.Close socket [18:54:39]Sock 9.Thread stoped [18:54:43]OFD Sender: No OFD packet to send [18:54:48]OFD Sender: No OFD packet to send [18:54:53]OFD Sender: No OFD packet to send [18:54:58]OFD Sender: No OFD packet to send [18:55:03]OFD Sender: No OFD packet to send [18:55:08]OFD Sender: No OFD packet to send [18:55:13]OFD Sender: No OFD packet to send [18:55:18]OFD Sender: No OFD packet to send [18:55:23]OFD Sender: No OFD packet to send [18:55:28]OFD Sender: No OFD packet to send [18:55:33]OFD Sender: No OFD packet to send [18:55:38]OFD Sender: No OFD packet to send [18:55:43]OFD Sender: No OFD packet to send [18:55:48]OFD Sender: No OFD packet to send [18:55:53]OFD Sender: No OFD packet to send [18:55:58]OFD Sender: No OFD packet to send [18:56:03]OFD Sender: No OFD packet to send [18:56:09]OFD Sender: No OFD packet to send [18:56:14]OFD Sender: No OFD packet to send [18:56:19]OFD Sender: No OFD packet to send [18:56:24]OFD Sender: No OFD packet to send [18:56:29]OFD Sender: No OFD packet to send [18:56:34]OFD Sender: No OFD packet to send [18:56:39]OFD Sender: No OFD packet to send [18:56:44]OFD Sender: No OFD packet to send [18:56:49]OFD Sender: No OFD packet to send [18:56:54]OFD Sender: No OFD packet to send [18:56:59]OFD Sender: No OFD packet to send [18:57:04]OFD Sender: No OFD packet to send [18:57:09]OFD Sender: No OFD packet to send [18:57:14]OFD Sender: No OFD packet to send [18:57:19]OFD Sender: No OFD packet to send [18:57:24]OFD Sender: No OFD packet to send [18:57:29]OFD Sender: No OFD packet to send [18:57:34]OFD Sender: No OFD packet to send [18:57:39]OFD Sender: No OFD packet to send [18:57:44]OFD Sender: No OFD packet to send [18:57:49]OFD Sender: No OFD packet to send [18:57:54]OFD Sender: No OFD packet to send [18:57:59]OFD Sender: No OFD packet to send [18:58:04]OFD Sender: No OFD packet to send [18:58:09]OFD Sender: No OFD packet to send [18:58:14]OFD Sender: No OFD packet to send [18:58:19]OFD Sender: No OFD packet to send [18:58:24]OFD Sender: No OFD packet to send [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [18:58:39]OFD Sender: No OFD packet to send [18:58:44]OFD Sender: No OFD packet to send [18:58:49]OFD Sender: No OFD packet to send [18:58:54]OFD Sender: No OFD packet to send [18:58:59]OFD Sender: No OFD packet to send [18:59:04]OFD Sender: No OFD packet to send [18:59:09]OFD Sender: No OFD packet to send [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:29]OFD Sender: No OFD packet to send [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:19]OFD Sender: No OFD packet to send [19:01:24]OFD Sender: No OFD packet to send [19:01:29]OFD Sender: No OFD packet to send [19:01:34]OFD Sender: No OFD packet to send [19:01:39]OFD Sender: No OFD packet to send [19:01:44]OFD Sender: No OFD packet to send [19:01:49]OFD Sender: No OFD packet to send [19:01:54]OFD Sender: No OFD packet to send [19:01:59]OFD Sender: No OFD packet to send [19:02:04]OFD Sender: No OFD packet to send [19:02:09]OFD Sender: No OFD packet to send [19:02:14]OFD Sender: No OFD packet to send [19:02:19]OFD Sender: No OFD packet to send [19:02:24]OFD Sender: No OFD packet to send [19:02:29]OFD Sender: No OFD packet to send [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:29]accept exits with 7 [19:04:29]New connection [19:04:29]New thread 3066608996 created [19:04:29]Thread 3066752356 joined [19:04:29]Waiting for new connection... [19:04:29] Sock 7.Parse request [19:04:29]Sock 7.Check first char [19:04:29]Sock 7.First char is OK [19:04:29]request: POST /json_proto HTTP/1.0 [19:04:29]Method: POST [19:04:29]URL: /json_proto [19:04:29]Method is POST - this is cgi request [19:04:29]url: /json_proto [19:04:29]query_string will be loaded in cgi processing [19:04:29]execute_cgi json_proto POST (null) [19:04:29]execute_cgi path=json_proto method=POST [19:04:29]POST find Content-Length [19:04:29]Host: 172.17.41.195:8080 [19:04:29]Content-Length: 800 [19:04:29]Content-Type: application/json [19:04:29] [19:04:29]POST finish read [19:04:29]Found Content-Length = 800 [19:04:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507862", "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:04:29]execute_script... [19:04: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)507862", "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:04:29]POST & json_proto [19:04:29]process_json_proto [19:04:29]json parsed OK: [19:04:29]protocol is kg_v1.0 [19:04:29]action value=close_receipt [19:04:29]process_action close_receipt [19:04:29]cmd_close_receipt [19:04:29]MH_GetDate [19:04:29]Write to MH i2c: F0 00 00 51 09 49 [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: F0 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: F0 09 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: F0 09 00 51 09 00 3F AA 47 66 FC 21 6F 64 D8 [19:04:29]GetLastDocTimeStamp 1715972077 [19:04:29]current date 1715972671 [19:04:29]FM_GetShiftState [19:04:29]SAM_PROTO_GetShiftState [19:04:29]wFMCommunicate request_size=4 [19:04:29]MH_SAM_APDU [19:04:29]CAPDU: 80 13 01 00 [19:04:29]Write to MH i2c: E2 08 00 52 09 80 13 01 00 00 00 00 00 D8 [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:29]Read from MH i2c: E2 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 0E 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 0E 00 52 09 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 5E [19:04:29]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:04:29]wFMCommunicate OK [19:04:29]SAM_PROTO_GetShiftState done [19:04:29]FM_GetShiftState done [19:04:29]opened in 1715905068 [19:04:29]opened+sec_in_day 1715991468 [19:04:29]quantity*price = 150072 [19:04:29]sum+1 = 150073 [19:04:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.72 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.72 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 119 17.05.2024 19:04 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67710 ФПД: 71168902447603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T190431&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67710&fm=71168902447603&tin=02508201610067®Number=0000000000091845&sum=150072 [19:04:30]StoreToDocumentArchive [19:04:30]shift 358 fd 67710 [19:04:30]save to /storage/0358/doc_00067710 [19:04:30]save last doc name /storage/0358/doc_00067710 to /storage/kkm_last_doc_name [19:04:30]save OK [19:04:30]Clear old archive folders... [19:04:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:04:30]tlvbuf is 01AF9150 [19:04:30]SAM_PROTO_ClearQueue [19:04:30]wFMCommunicate request_size=4 [19:04:30]MH_SAM_APDU [19:04:30]CAPDU: 80 09 00 00 [19:04:30]Write to MH i2c: E2 08 00 5F 09 80 09 00 00 00 00 00 00 DA [19:04:30]Write i2c OK [19:04:30]MH_I2C_Read... [19:04:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:30]Read from MH i2c: E2 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: E2 03 00 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: E2 03 00 5F 09 00 90 00 DC [19:04:30]RAPDU: 90 00 [19:04:30]wFMCommunicate OK [19:04:30]SAM_PROTO_ClearQueue done [19:04:30]KKMCreateOFDPacket [19:04:30]OFDProtocolAddRootSTLVToBuf [19:04:30]FM_MakeSignedData [19:04:30]FM_MakeSignedData [19:04:30]SAM_PROTO_SignData [19:04:30]wFMCommunicate request_size=4 [19:04:30]MH_SAM_APDU [19:04:30]CAPDU: 80 0D 01 02 [19:04:30]Write to MH i2c: E2 08 00 60 09 80 0D 01 02 00 00 00 00 E2 [19:04:30]Write i2c OK [19:04:30]MH_I2C_Read... [19:04:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:30]Read from MH i2c: E2 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: E2 03 00 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: E2 03 00 60 09 00 90 00 DD [19:04:30]RAPDU: 90 00 [19:04:30]wFMCommunicate OK [19:04:30]wFMCommunicate request_size=255 [19:04:30]MH_SAM_APDU [19:04:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 77 00 00 00 F4 03 04 00 3F AA 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 40 BA 4D 26 [19:04:30]Write to MH i2c: E2 02 01 61 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 77 00 00 00 F4 03 04 00 3F AA 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 40 BA 4D 26 00 00 FF [19:04:30]Write i2c OK [19:04:30]MH_I2C_Read... [19:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:31]Read from MH i2c: E2 [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: E2 03 00 [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: E2 03 00 61 09 00 90 00 DE [19:04:31]RAPDU: 90 00 [19:04:31]wFMCommunicate OK [19:04:31]wFMCommunicate request_size=7 [19:04:31]MH_SAM_APDU [19:04:31]CAPDU: 80 0D 02 02 02 41 F3 [19:04:31]Write to MH i2c: E2 0A 00 62 09 80 0D 02 02 02 00 41 F3 00 00 1D [19:04:31]Write i2c OK [19:04:31]MH_I2C_Read... [19:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:31]Read from MH i2c: E2 [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: E2 03 00 [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: E2 03 00 62 09 00 90 00 DF [19:04:31]RAPDU: 90 00 [19:04:31]wFMCommunicate OK [19:04:31]wFMCommunicate request_size=4 [19:04:31]MH_SAM_APDU [19:04:31]CAPDU: 80 0D 03 02 [19:04:31]Write to MH i2c: E2 08 00 63 09 80 0D 03 02 00 00 00 00 E7 [19:04:31]Write i2c OK [19:04:31]MH_I2C_Read... [19:04:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:31]Read from MH i2c: E2 [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: E2 0B 00 [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: E2 0B 00 63 09 00 BA 57 6C C8 9C D6 C8 93 90 00 FA [19:04:31]RAPDU: BA 57 6C C8 9C D6 C8 93 90 00 [19:04:31]wFMCommunicate OK [19:04:31]SAM_PROTO_SignData done [19:04:31]FM_MakeSignedData done [19:04:31]CreateOFDProtocolMessage [19:04:31]wFMCommunicate request_size=4 [19:04:31]MH_SAM_APDU [19:04:31]CAPDU: 80 11 00 00 [19:04:31]Write to MH i2c: E2 08 00 64 09 80 11 00 00 00 00 00 00 E7 [19:04:31]Write i2c OK [19:04:31]MH_I2C_Read... [19:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:31]Read from MH i2c: E2 [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: E2 17 00 [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: E2 17 00 64 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3D [19:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:04:31]wFMCommunicate OK [19:04:31]CreateOFDProtocolMessage done [19:04:31]OFDSenderStorePacket 67710 [19:04:31]StoreOFDPacket docnum=67710 [19:04:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 B0 7D 04 01 BA 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 77 00 00 00 F4 03 04 00 3F AA 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 40 BA 4D 26 41 F3 BA 57 6C C8 9C D6 C8 93 [19:04:31]CheckFolder [19:04:31]dirname=/storage/ofd_packets [19:04:31]CheckFolder done [19:04:31]ProducePacketName [19:04:31]name=ofd_packets/00067710 [19:04:31]NVStorageSaveData ofd_packets/00067710 [19:04:31]File name is /storage/ofd_packets/00067710 [19:04:31]Write 298 bytes [19:04:31]NVStorageSaveData done [19:04:31]OFDSenderStorePacket done [19:04:31]KKMCreateOFDPacket done [19:04:31]NVStorageSaveData kkm_last_timestamp [19:04:31]File name is /storage/kkm_last_timestamp [19:04:31]Write 4 bytes [19:04:31]NVStorageSaveData done [19:04:31]ExternCall_PrintAddStr [19:04:31]wPrintStart [19:04:31]Write to MH i2c: 01 00 00 65 09 6E [19:04:31]Write i2c OK [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: 01 [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: 01 07 00 [19:04:31]MH_I2C_Read... [19:04:31]Read from MH i2c: 01 07 00 65 09 00 00 00 00 00 FF 0F 83 [19:04:31]RasterBufferAndPrint [19:04:31]line Счет N : (1)507862 [19:04:31]line ИНН: 02508201610067 [19:04:31]line Контрольно-Кассовый Чек [19:04:31]line ПРОДАЖА [19:04:31]line ТРК (МРК, ГНК) : 41 [19:04:31]line Товар: 2710194210 [19:04:31]line ДТ-К-5 [19:04:31]line 20.090 * 74.70 [19:04:31]line = 1500.72 [19:04:31]line НДС 12% НСП 1% [19:04:31]line > о реализуемом товаре [19:04:31]line ИТОГО: 1500.72 [19:04:31]line НСП 1% : 13.28 [19:04:31]line НДС 12% : 159.37 [19:04:31]line Наличными: 0.00 [19:04:31]line Безнал.: 1500.72 [19:04:31]line Место: АЗС № 91 "Партнер Нефть" [19:04:31]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:04:31]line СНО: Общий режим [19:04:31]line Чек 119 17.05.2024 19:04 [19:04:31]line Смена: 358 ФФД: 1.0 [19:04:31]line ЗНМ: 0300000119 [19:04:31]line РНМ: 0000000000091845 [19:04:31]line Версия ККМ: 001 [19:04:31]line Платежная система: O! деньги [19:04:31]line ФМ: 0000000000871829 [19:04:31]line ФД: 67710 [19:04:31]line ФПД: 71168902447603 [19:04:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T190431&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67710&fm=71168902447603&tin=02508201610067®Number=0000000000091845&sum=150072 [19:04:31]OFD Sender: Processing packet 67710 [packets to send 35, broken 34] [19:04:31]ProducePacketName [19:04:31]name=ofd_packets/00067710 [19:04:31]OFD Sender: To server: pG, [19:04:31]CommunicateWithHost lk.salyk.kg:30040 [19:04:31]ConnectInit lk.salyk.kg [19:04:31]written 0, free lines is 4095 [19:04:31]Connected sock=10 [19:04:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 B0 7D 04 01 BA 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 77 00 00 00 F4 03 04 00 3F AA 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 40 BA 4D 26 41 F3 BA 57 6C C8 9C D6 C8 93 [19:04: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 1F 60 47 00 09 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 7E 08 01 00 F4 03 04 00 16 52 47 66 B6 04 01 00 00 FF F2 F7 91 6D F8 DF C8 [19:04:31]CommunicateWithHost err = 0 [19:04:31]CheckOFDResponse [19:04:31]1017 (14) - 77093643461234 [19:04:31]1041 (16) - 0000000000871829 [19:04:31]1040 (4) - 67710 [19:04:31]1012 (4) - 17.05.2024 12:48 [19:04:31]1206 (1) - 0 [19:04:31]OFD Sender: Remove packet 67710 [19:04:31]ProducePacketName [19:04:31]name=ofd_packets/00067710 [19:04:31]NVStorageDeleteData [19:04:32]Write to MH i2c: 01 00 00 8E 09 97 [19:04:32]Write i2c OK [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: 01 [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: 01 07 00 [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: 01 07 00 8E 09 00 00 00 00 00 EE 0C 98 [19:04:32]RasterBufferAndPrint [19:04:32]line [19:04:32]line [19:04:32]line [19:04:32]line [19:04:32]line [19:04:32]written 0, free lines is 3316 [19:04:32]MH_Cut [19:04:32]Write to MH i2c: D1 01 00 95 09 01 70 [19:04:32]Write i2c OK [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: D1 [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: D1 01 00 [19:04:32]MH_I2C_Read... [19:04:32]Read from MH i2c: D1 01 00 95 09 00 6F [19:04:32]Write to MH i2c: 01 00 00 96 09 9F [19:04:32]Write i2c OK [19:04:32]MH_I2C_Read... [19:04:32]OFD Sender: No OFD packet to send [19:04:32]*** Cut start [19:04:32]*** Purtial cut [19:04:32]*** CUTSNS_PIN = 0 [19:04:33]*** Stage 1: CUTSNS_PIN = 1 [19:04:34]Read from MH i2c: 01 [19:04:34]MH_I2C_Read... [19:04:34]*** Stop cut motor [19:04:34]*** Cut end [19:04:34]Read from MH i2c: 01 07 00 [19:04:34]MH_I2C_Read... [19:04:34]Read from MH i2c: 01 07 00 96 09 00 00 00 00 00 FF 0F B4 [19:04:34]process_action close_receipt done [19:04:34]requested_data is exist [19:04:34]produce_requested_data [19:04:34]requested_item fm.sn is exist - process it [19:04:34]wFMCommunicate request_size=4 [19:04:34]MH_SAM_APDU [19:04:34]CAPDU: 80 11 00 00 [19:04:34]Write to MH i2c: E2 08 00 97 09 80 11 00 00 00 00 00 00 1A [19:04:34]Write i2c OK [19:04:34]MH_I2C_Read... [19:04:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:34]Read from MH i2c: E2 [19:04:34]MH_I2C_Read... [19:04:34]Read from MH i2c: E2 17 00 [19:04:34]MH_I2C_Read... [19:04:34]Read from MH i2c: E2 17 00 97 09 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:04:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:04:34]wFMCommunicate OK [19:04:34]requested_item fd.num is exist - process it [19:04:34]SAM_PROTO_GetFieldsCounters [19:04:34]wFMCommunicate request_size=4 [19:04:34]MH_SAM_APDU [19:04:34]CAPDU: 80 13 00 00 [19:04:34]Write to MH i2c: E2 08 00 98 09 80 13 00 00 00 00 00 00 1D [19:04:34]Write i2c OK [19:04:34]MH_I2C_Read... [19:04:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:35]Read from MH i2c: E2 [19:04:35]MH_I2C_Read... [19:04:35]Read from MH i2c: E2 62 00 [19:04:35]MH_I2C_Read... [19:04:35]Read from MH i2c: E2 62 00 98 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 7E 08 01 00 0E 04 04 00 66 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 96 [19:04: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 7E 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:04:35]wFMCommunicate OK [19:04:35]SAM_PROTO_GetFieldsCounters done [19:04:35]requested_item shift.num is exist - process it [19:04:35]requested_item shift.opened is exist - process it [19:04:35]req_shift_opened [19:04:35]FM_GetShiftState [19:04:35]SAM_PROTO_GetShiftState [19:04:35]wFMCommunicate request_size=4 [19:04:35]MH_SAM_APDU [19:04:35]CAPDU: 80 13 01 00 [19:04:35]Write to MH i2c: E2 08 00 99 09 80 13 01 00 00 00 00 00 1F [19:04:35]Write i2c OK [19:04:35]MH_I2C_Read... [19:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:35]Read from MH i2c: E2 [19:04:35]MH_I2C_Read... [19:04:35]Read from MH i2c: E2 0E 00 [19:04:35]MH_I2C_Read... [19:04:35]Read from MH i2c: E2 0E 00 99 09 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 A5 [19:04:35]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:04:35]wFMCommunicate OK [19:04:35]SAM_PROTO_GetShiftState done [19:04:35]FM_GetShiftState done [19:04:35]req_shift_opened done [19:04:35]requested_item shift.open_date is exist - process it [19:04:35]req_shift_open_date [19:04:35]req_shift_open_date done [19:04:35]produce_requested_data done [19:04:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67710,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [19:04:35]process_action_free close_receipt [19:04:35]json_value_free [19:04:35]json_value_free done [19:04:35]process_json_proto returns [19:04:35]Send response to host [19:04:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67710,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [19:04:35]free response buf [19:04:35]execute_script done [19:04:35]execute_script returns [19:04:35]free content buf [19:04:35]Sock 7.Close socket [19:04:35]Sock 7.Thread stoped [19:04:37]OFD Sender: No OFD packet to send [19:04:42]OFD Sender: No OFD packet to send [19:04:47]OFD Sender: No OFD packet to send [19:04:52]OFD Sender: No OFD packet to send [19:04:57]OFD Sender: No OFD packet to send [19:05:02]OFD Sender: No OFD packet to send [19:05:07]OFD Sender: No OFD packet to send [19:05:12]OFD Sender: No OFD packet to send [19:05:17]OFD Sender: No OFD packet to send [19:05:22]OFD Sender: No OFD packet to send [19:05:27]OFD Sender: No OFD packet to send [19:05:32]OFD Sender: No OFD packet to send [19:05:37]OFD Sender: No OFD packet to send [19:05:42]OFD Sender: No OFD packet to send [19:05:47]OFD Sender: No OFD packet to send [19:05:52]OFD Sender: No OFD packet to send [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]accept exits with 9 [19:06:37]New connection [19:06:37]New thread 3066752356 created [19:06:37]Thread 3066608996 joined [19:06:37]Waiting for new connection... [19:06:37] Sock 9.Parse request [19:06:37]Sock 9.Check first char [19:06:37]Sock 9.First char is OK [19:06:37]request: POST /json_proto HTTP/1.0 [19:06:37]Method: POST [19:06:37]URL: /json_proto [19:06:37]Method is POST - this is cgi request [19:06:37]url: /json_proto [19:06:37]query_string will be loaded in cgi processing [19:06:37]execute_cgi json_proto POST (null) [19:06:37]execute_cgi path=json_proto method=POST [19:06:37]POST find Content-Length [19:06:37]Host: 172.17.41.195:8080 [19:06:37]Content-Length: 800 [19:06:37]Content-Type: application/json [19:06:37] [19:06:37]POST finish read [19:06:37]Found Content-Length = 800 [19:06:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:37]execute_script... [19:06: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)507863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:37]POST & json_proto [19:06:37]process_json_proto [19:06:37]json parsed OK: [19:06:37]protocol is kg_v1.0 [19:06:37]action value=close_receipt [19:06:37]process_action close_receipt [19:06:37]cmd_close_receipt [19:06:37]MH_GetDate [19:06:37]Write to MH i2c: F0 00 00 9A 09 92 [19:06:37]Write i2c OK [19:06:37]MH_I2C_Read... [19:06:37]Read from MH i2c: F0 [19:06:37]MH_I2C_Read... [19:06:37]Read from MH i2c: F0 09 00 [19:06:37]MH_I2C_Read... [19:06:37]Read from MH i2c: F0 09 00 9A 09 00 BF AA 47 66 FC 21 6F 64 A1 [19:06:37]GetLastDocTimeStamp 1715972671 [19:06:37]current date 1715972799 [19:06:37]FM_GetShiftState [19:06:37]SAM_PROTO_GetShiftState [19:06:37]wFMCommunicate request_size=4 [19:06:37]MH_SAM_APDU [19:06:37]CAPDU: 80 13 01 00 [19:06:37]Write to MH i2c: E2 08 00 9B 09 80 13 01 00 00 00 00 00 21 [19:06:37]Write i2c OK [19:06:37]MH_I2C_Read... [19:06:37]OFD Sender: No OFD packet to send [19:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:37]Read from MH i2c: E2 [19:06:37]MH_I2C_Read... [19:06:37]Read from MH i2c: E2 0E 00 [19:06:37]MH_I2C_Read... [19:06:37]Read from MH i2c: E2 0E 00 9B 09 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 A7 [19:06:37]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:06:37]wFMCommunicate OK [19:06:37]SAM_PROTO_GetShiftState done [19:06:37]FM_GetShiftState done [19:06:37]opened in 1715905068 [19:06:37]opened+sec_in_day 1715991468 [19:06:37]quantity*price = 60053 [19:06:37]sum+1 = 60054 [19:06:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.53 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 0.00 Безнал.: 600.53 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 120 17.05.2024 19:06 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67711 ФПД: 2017772839352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T190639&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67711&fm=2017772839352&tin=02508201610067®Number=0000000000091845&sum=60053 [19:06:38]StoreToDocumentArchive [19:06:38]shift 358 fd 67711 [19:06:38]save to /storage/0358/doc_00067711 [19:06:38]save last doc name /storage/0358/doc_00067711 to /storage/kkm_last_doc_name [19:06:38]save OK [19:06:38]Clear old archive folders... [19:06:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:38]tlvbuf is 01AE5190 [19:06:38]SAM_PROTO_ClearQueue [19:06:38]wFMCommunicate request_size=4 [19:06:38]MH_SAM_APDU [19:06:38]CAPDU: 80 09 00 00 [19:06:38]Write to MH i2c: E2 08 00 A8 09 80 09 00 00 00 00 00 00 23 [19:06:38]Write i2c OK [19:06:38]MH_I2C_Read... [19:06:38]Read from MH i2c: E2 [19:06:38]MH_I2C_Read... [19:06:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:38]Read from MH i2c: E2 03 00 [19:06:38]MH_I2C_Read... [19:06:38]Read from MH i2c: E2 03 00 A8 09 00 90 00 25 [19:06:38]RAPDU: 90 00 [19:06:38]wFMCommunicate OK [19:06:38]SAM_PROTO_ClearQueue done [19:06:38]KKMCreateOFDPacket [19:06:38]OFDProtocolAddRootSTLVToBuf [19:06:38]FM_MakeSignedData [19:06:38]FM_MakeSignedData [19:06:38]SAM_PROTO_SignData [19:06:38]wFMCommunicate request_size=4 [19:06:38]MH_SAM_APDU [19:06:38]CAPDU: 80 0D 01 02 [19:06:38]Write to MH i2c: E2 08 00 A9 09 80 0D 01 02 00 00 00 00 2B [19:06:38]Write i2c OK [19:06:38]MH_I2C_Read... [19:06:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:38]Read from MH i2c: E2 [19:06:38]MH_I2C_Read... [19:06:38]Read from MH i2c: E2 03 00 [19:06:38]MH_I2C_Read... [19:06:38]Read from MH i2c: E2 03 00 A9 09 00 90 00 26 [19:06:38]RAPDU: 90 00 [19:06:38]wFMCommunicate OK [19:06:38]wFMCommunicate request_size=255 [19:06:38]MH_SAM_APDU [19:06: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 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 78 00 00 00 F4 03 04 00 BF AA 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 01 [19:06:38]Write to MH i2c: E2 02 01 AA 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 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 78 00 00 00 F4 03 04 00 BF AA 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 01 00 00 BE [19:06:38]Write i2c OK [19:06:38]MH_I2C_Read... [19:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:39]Read from MH i2c: E2 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 03 00 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 03 00 AA 09 00 90 00 27 [19:06:39]RAPDU: 90 00 [19:06:39]wFMCommunicate OK [19:06:39]wFMCommunicate request_size=10 [19:06:39]MH_SAM_APDU [19:06:39]CAPDU: 80 0D 02 02 05 D5 CC A2 21 B8 [19:06:39]Write to MH i2c: E2 0D 00 AB 09 80 0D 02 02 05 00 D5 CC A2 21 B8 00 00 54 [19:06:39]Write i2c OK [19:06:39]MH_I2C_Read... [19:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:39]Read from MH i2c: E2 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 03 00 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 03 00 AB 09 00 90 00 28 [19:06:39]RAPDU: 90 00 [19:06:39]wFMCommunicate OK [19:06:39]wFMCommunicate request_size=4 [19:06:39]MH_SAM_APDU [19:06:39]CAPDU: 80 0D 03 02 [19:06:39]Write to MH i2c: E2 08 00 AC 09 80 0D 03 02 00 00 00 00 30 [19:06:39]Write i2c OK [19:06:39]MH_I2C_Read... [19:06:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:39]Read from MH i2c: E2 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 0B 00 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 0B 00 AC 09 00 53 D6 9B D8 D2 BC F4 00 90 00 4F [19:06:39]RAPDU: 53 D6 9B D8 D2 BC F4 00 90 00 [19:06:39]wFMCommunicate OK [19:06:39]SAM_PROTO_SignData done [19:06:39]FM_MakeSignedData done [19:06:39]CreateOFDProtocolMessage [19:06:39]wFMCommunicate request_size=4 [19:06:39]MH_SAM_APDU [19:06:39]CAPDU: 80 11 00 00 [19:06:39]Write to MH i2c: E2 08 00 AD 09 80 11 00 00 00 00 00 00 30 [19:06:39]Write i2c OK [19:06:39]MH_I2C_Read... [19:06:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:39]Read from MH i2c: E2 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 17 00 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 17 00 AD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 86 [19:06:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:06:39]wFMCommunicate OK [19:06:39]CreateOFDProtocolMessage done [19:06:39]OFDSenderStorePacket 67711 [19:06:39]StoreOFDPacket docnum=67711 [19:06: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 5B 8E 07 01 52 45 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 78 00 00 00 F4 03 04 00 BF AA 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 01 D5 CC A2 21 B8 53 D6 9B D8 D2 BC F4 00 [19:06:39]CheckFolder [19:06:39]dirname=/storage/ofd_packets [19:06:39]CheckFolder done [19:06:39]ProducePacketName [19:06:39]name=ofd_packets/00067711 [19:06:39]NVStorageSaveData ofd_packets/00067711 [19:06:39]File name is /storage/ofd_packets/00067711 [19:06:39]Write 301 bytes [19:06:39]NVStorageSaveData done [19:06:39]OFDSenderStorePacket done [19:06:39]KKMCreateOFDPacket done [19:06:39]NVStorageSaveData kkm_last_timestamp [19:06:39]File name is /storage/kkm_last_timestamp [19:06:39]Write 4 bytes [19:06:39]NVStorageSaveData done [19:06:39]ExternCall_PrintAddStr [19:06:39]wPrintStart [19:06:39]Write to MH i2c: 01 00 00 AE 09 B7 [19:06:39]Write i2c OK [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: 01 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: 01 07 00 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: 01 07 00 AE 09 00 00 00 00 00 FF 0F CC [19:06:39]RasterBufferAndPrint [19:06:39]line Счет N : (1)507863 [19:06:39]line ИНН: 02508201610067 [19:06:39]line Контрольно-Кассовый Чек [19:06:39]line ПРОДАЖА [19:06:39]line ТРК (МРК, ГНК) : 23 [19:06:39]line Товар: 2710124130 [19:06:39]line Аи-92-К-5 [19:06:39]line 8.990 * 66.80 [19:06:39]line = 600.53 [19:06:39]line НДС 12% НСП 1% [19:06:39]line > о реализуемом товаре [19:06:39]line ИТОГО: 600.53 [19:06:39]line НСП 1% : 5.31 [19:06:39]line НДС 12% : 63.77 [19:06:39]line Наличными: 0.00 [19:06:39]line Безнал.: 600.53 [19:06:39]line Место: АЗС № 91 "Партнер Нефть" [19:06:39]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:06:39]line СНО: Общий режим [19:06:39]line Чек 120 17.05.2024 19:06 [19:06:39]line Смена: 358 ФФД: 1.0 [19:06:39]line ЗНМ: 0300000119 [19:06:39]line РНМ: 0000000000091845 [19:06:39]line Версия ККМ: 001 [19:06:39]line Платежная система: O! деньги [19:06:39]line ФМ: 0000000000871829 [19:06:39]line ФД: 67711 [19:06:39]line ФПД: 2017772839352 [19:06:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T190639&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67711&fm=2017772839352&tin=02508201610067®Number=0000000000091845&sum=60053 [19:06:39]OFD Sender: Processing packet 67711 [packets to send 35, broken 34] [19:06:39]ProducePacketName [19:06:39]name=ofd_packets/00067711 [19:06:39]OFD Sender: To server: pG, [19:06:39]CommunicateWithHost lk.salyk.kg:30040 [19:06:39]ConnectInit lk.salyk.kg [19:06:39]written 0, free lines is 4095 [19:06:39]Connected sock=10 [19:06: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 5B 8E 07 01 52 45 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 78 00 00 00 F4 03 04 00 BF AA 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 01 D5 CC A2 21 B8 53 D6 9B D8 D2 BC F4 00 [19:06: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 B5 7E 47 00 EB CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 96 52 47 66 B6 04 01 00 00 5C 28 B3 0A 2C 23 A6 2C [19:06:39]CommunicateWithHost err = 0 [19:06:39]CheckOFDResponse [19:06:39]1017 (14) - 77093643461234 [19:06:39]1041 (16) - 0000000000871829 [19:06:39]1040 (4) - 67711 [19:06:39]1012 (4) - 17.05.2024 12:50 [19:06:39]1206 (1) - 0 [19:06:39]OFD Sender: Remove packet 67711 [19:06:39]ProducePacketName [19:06:39]name=ofd_packets/00067711 [19:06:39]NVStorageDeleteData [19:06:40]Write to MH i2c: 01 00 00 D7 09 E0 [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: 01 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: 01 07 00 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: 01 07 00 D7 09 00 00 00 00 00 F1 0C E4 [19:06:40]RasterBufferAndPrint [19:06:40]line [19:06:40]line [19:06:40]line [19:06:40]line [19:06:40]line [19:06:40]written 0, free lines is 3319 [19:06:40]MH_Cut [19:06:40]Write to MH i2c: D1 01 00 DE 09 01 B9 [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: D1 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: D1 01 00 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: D1 01 00 DE 09 00 B8 [19:06:40]Write to MH i2c: 01 00 00 DF 09 E8 [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:40]OFD Sender: No OFD packet to send [19:06:40]*** Cut start [19:06:40]*** Purtial cut [19:06:40]*** Stage 1: CUTSNS_PIN = 1 [19:06:41]Read from MH i2c: 01 [19:06:41]MH_I2C_Read... [19:06:41]*** Stop cut motor [19:06:41]*** Cut end [19:06:41]Read from MH i2c: 01 07 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: 01 07 00 DF 09 00 00 00 00 00 FF 0F FD [19:06:41]process_action close_receipt done [19:06:41]requested_data is exist [19:06:41]produce_requested_data [19:06:41]requested_item fm.sn is exist - process it [19:06:41]wFMCommunicate request_size=4 [19:06:41]MH_SAM_APDU [19:06:41]CAPDU: 80 11 00 00 [19:06:41]Write to MH i2c: E2 08 00 E0 09 80 11 00 00 00 00 00 00 63 [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:41]Read from MH i2c: E2 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 17 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 17 00 E0 09 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:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:06:41]wFMCommunicate OK [19:06:41]requested_item fd.num is exist - process it [19:06:41]SAM_PROTO_GetFieldsCounters [19:06:41]wFMCommunicate request_size=4 [19:06:41]MH_SAM_APDU [19:06:41]CAPDU: 80 13 00 00 [19:06:41]Write to MH i2c: E2 08 00 E1 09 80 13 00 00 00 00 00 00 66 [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:41]Read from MH i2c: E2 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 62 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 62 00 E1 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 7F 08 01 00 0E 04 04 00 66 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 E3 [19:06: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 7F 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:41]wFMCommunicate OK [19:06:41]SAM_PROTO_GetFieldsCounters done [19:06:41]requested_item shift.num is exist - process it [19:06:41]requested_item shift.opened is exist - process it [19:06:41]req_shift_opened [19:06:41]FM_GetShiftState [19:06:41]SAM_PROTO_GetShiftState [19:06:41]wFMCommunicate request_size=4 [19:06:41]MH_SAM_APDU [19:06:41]CAPDU: 80 13 01 00 [19:06:41]Write to MH i2c: E2 08 00 E2 09 80 13 01 00 00 00 00 00 68 [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:41]Read from MH i2c: E2 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 0E 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: E2 0E 00 E2 09 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 EE [19:06:41]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:06:41]wFMCommunicate OK [19:06:41]SAM_PROTO_GetShiftState done [19:06:41]FM_GetShiftState done [19:06:41]req_shift_opened done [19:06:41]requested_item shift.open_date is exist - process it [19:06:41]req_shift_open_date [19:06:41]req_shift_open_date done [19:06:41]produce_requested_data done [19:06:41]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67711,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [19:06:41]process_action_free close_receipt [19:06:41]json_value_free [19:06:41]json_value_free done [19:06:41]process_json_proto returns [19:06:41]Send response to host [19:06:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67711,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [19:06:41]free response buf [19:06:41]execute_script done [19:06:41]execute_script returns [19:06:41]free content buf [19:06:41]Sock 9.Close socket [19:06:41]Sock 9.Thread stoped [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:26]accept exits with 7 [19:09:26]New connection [19:09:26]New thread 3066608996 created [19:09:26]Thread 3066752356 joined [19:09:26]Waiting for new connection... [19:09:26] Sock 7.Parse request [19:09:26]Sock 7.Check first char [19:09:26]Sock 7.First char is OK [19:09:26]request: POST /json_proto HTTP/1.0 [19:09:26]Method: POST [19:09:26]URL: /json_proto [19:09:26]Method is POST - this is cgi request [19:09:26]url: /json_proto [19:09:26]query_string will be loaded in cgi processing [19:09:26]execute_cgi json_proto POST (null) [19:09:26]execute_cgi path=json_proto method=POST [19:09:26]POST find Content-Length [19:09:26]Host: 172.17.41.195:8080 [19:09:26]Content-Length: 669 [19:09:26]Content-Type: application/json [19:09:26] [19:09:26]POST finish read [19:09:26]Found Content-Length = 669 [19:09:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12107", "tax_sys" : 0, "items" : [ { "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \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" ] } } [19:09:26]execute_script... [19:09: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 : (3)12107", "tax_sys" : 0, "items" : [ { "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \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" ] } } [19:09:26]POST & json_proto [19:09:26]process_json_proto [19:09:26]json parsed OK: [19:09:26]protocol is kg_v1.0 [19:09:26]action value=close_receipt [19:09:26]process_action close_receipt [19:09:26]cmd_close_receipt [19:09:26]MH_GetDate [19:09:26]Write to MH i2c: F0 00 00 E3 09 DB [19:09:26]Write i2c OK [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: F0 [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: F0 09 00 [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: F0 09 00 E3 09 00 67 AB 47 66 FC 21 6F 64 93 [19:09:26]GetLastDocTimeStamp 1715972799 [19:09:26]current date 1715972967 [19:09:26]FM_GetShiftState [19:09:26]SAM_PROTO_GetShiftState [19:09:26]wFMCommunicate request_size=4 [19:09:26]MH_SAM_APDU [19:09:26]CAPDU: 80 13 01 00 [19:09:26]Write to MH i2c: E2 08 00 E4 09 80 13 01 00 00 00 00 00 6A [19:09:26]Write i2c OK [19:09:26]MH_I2C_Read... [19:09:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:26]Read from MH i2c: E2 [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: E2 0E 00 [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: E2 0E 00 E4 09 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F0 [19:09:26]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:09:26]wFMCommunicate OK [19:09:26]SAM_PROTO_GetShiftState done [19:09:26]FM_GetShiftState done [19:09:26]opened in 1715905068 [19:09:26]opened+sec_in_day 1715991468 [19:09:26]quantity*price = 9500 [19:09:26]sum+1 = 9501 [19:09:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 121 17.05.2024 19:09 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67712 ФПД: 29252292928943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T190927&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67712&fm=29252292928943&tin=02508201610067®Number=0000000000091845&sum=9500 0 [19:09:27]StoreToDocumentArchive [19:09:27]shift 358 fd 67712 [19:09:27]save to /storage/0358/doc_00067712 [19:09:27]save last doc name /storage/0358/doc_00067712 to /storage/kkm_last_doc_name [19:09:27]save OK [19:09:27]Clear old archive folders... [19:09:27]ProcessDocumentItem done err = 0, tmpTLVsize=293 [19:09:27]tlvbuf is 01B4FAA0 [19:09:27]SAM_PROTO_ClearQueue [19:09:27]wFMCommunicate request_size=4 [19:09:27]MH_SAM_APDU [19:09:27]CAPDU: 80 09 00 00 [19:09:27]Write to MH i2c: E2 08 00 F1 09 80 09 00 00 00 00 00 00 6C [19:09:27]Write i2c OK [19:09:27]MH_I2C_Read... [19:09:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:27]Read from MH i2c: E2 [19:09:27]MH_I2C_Read... [19:09:27]Read from MH i2c: E2 03 00 [19:09:27]MH_I2C_Read... [19:09:27]Read from MH i2c: E2 03 00 F1 09 00 90 00 6E [19:09:27]RAPDU: 90 00 [19:09:27]wFMCommunicate OK [19:09:27]SAM_PROTO_ClearQueue done [19:09:27]KKMCreateOFDPacket [19:09:27]OFDProtocolAddRootSTLVToBuf [19:09:27]FM_MakeSignedData [19:09:27]FM_MakeSignedData [19:09:27]SAM_PROTO_SignData [19:09:27]wFMCommunicate request_size=4 [19:09:27]MH_SAM_APDU [19:09:27]CAPDU: 80 0D 01 02 [19:09:27]Write to MH i2c: E2 08 00 F2 09 80 0D 01 02 00 00 00 00 74 [19:09:27]Write i2c OK [19:09:27]MH_I2C_Read... [19:09:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:27]Read from MH i2c: E2 [19:09:27]MH_I2C_Read... [19:09:27]Read from MH i2c: E2 03 00 [19:09:27]MH_I2C_Read... [19:09:27]Read from MH i2c: E2 03 00 F2 09 00 90 00 6F [19:09:27]RAPDU: 90 00 [19:09:27]wFMCommunicate OK [19:09:27]wFMCommunicate request_size=255 [19:09:27]MH_SAM_APDU [19:09:27]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 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 79 00 00 00 F4 03 04 00 67 AB 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [19:09:27]Write to MH i2c: E2 02 01 F3 09 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 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 79 00 00 00 F4 03 04 00 67 AB 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 0B [19:09:27]Write i2c OK [19:09:27]MH_I2C_Read... [19:09:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:27]Read from MH i2c: E2 [19:09:27]MH_I2C_Read... [19:09:27]Read from MH i2c: E2 03 00 [19:09:27]MH_I2C_Read... [19:09:27]Read from MH i2c: E2 03 00 F3 09 00 90 00 70 [19:09:27]RAPDU: 90 00 [19:09:27]wFMCommunicate OK [19:09:27]wFMCommunicate request_size=52 [19:09:27]MH_SAM_APDU [19:09:27]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 80 08 01 00 35 04 06 00 1A 9A D4 87 65 AF [19:09:27]Write to MH i2c: E2 37 00 F4 09 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 80 08 01 00 35 04 06 00 1A 9A D4 87 65 AF 00 00 EB [19:09:27]Write i2c OK [19:09:27]MH_I2C_Read... [19:09:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:27]Read from MH i2c: E2 [19:09:27]MH_I2C_Read... [19:09:27]Read from MH i2c: E2 03 00 [19:09:27]MH_I2C_Read... [19:09:27]Read from MH i2c: E2 03 00 F4 09 00 90 00 71 [19:09:27]RAPDU: 90 00 [19:09:27]wFMCommunicate OK [19:09:27]wFMCommunicate request_size=4 [19:09:27]MH_SAM_APDU [19:09:27]CAPDU: 80 0D 03 02 [19:09:27]Write to MH i2c: E2 08 00 F5 09 80 0D 03 02 00 00 00 00 79 [19:09:27]Write i2c OK [19:09:27]MH_I2C_Read... [19:09:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:27]Read from MH i2c: E2 [19:09:27]MH_I2C_Read... [19:09:27]Read from MH i2c: E2 0B 00 [19:09:27]MH_I2C_Read... [19:09:27]Read from MH i2c: E2 0B 00 F5 09 00 87 DF CA AC 50 5E FC 31 90 00 31 [19:09:27]RAPDU: 87 DF CA AC 50 5E FC 31 90 00 [19:09:27]wFMCommunicate OK [19:09:27]SAM_PROTO_SignData done [19:09:27]FM_MakeSignedData done [19:09:27]CreateOFDProtocolMessage [19:09:27]wFMCommunicate request_size=4 [19:09:27]MH_SAM_APDU [19:09:27]CAPDU: 80 11 00 00 [19:09:27]Write to MH i2c: E2 08 00 F6 09 80 11 00 00 00 00 00 00 79 [19:09:27]Write i2c OK [19:09:27]MH_I2C_Read... [19:09:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:27]Read from MH i2c: E2 [19:09:27]MH_I2C_Read... [19:09:27]Read from MH i2c: E2 17 00 [19:09:27]MH_I2C_Read... [19:09:27]Read from MH i2c: E2 17 00 F6 09 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:09: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:09:27]wFMCommunicate OK [19:09:27]CreateOFDProtocolMessage done [19:09:27]OFDSenderStorePacket 67712 [19:09:27]StoreOFDPacket docnum=67712 [19:09: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 39 01 00 00 AB 3A 31 01 0B 6D 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 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 79 00 00 00 F4 03 04 00 67 AB 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 1A 9A D4 87 65 AF 87 DF CA AC 50 5E FC 31 [19:09:27]CheckFolder [19:09:27]dirname=/storage/ofd_packets [19:09:27]CheckFolder done [19:09:27]ProducePacketName [19:09:27]name=ofd_packets/00067712 [19:09:27]NVStorageSaveData ofd_packets/00067712 [19:09:27]File name is /storage/ofd_packets/00067712 [19:09:27]Write 343 bytes [19:09:27]NVStorageSaveData done [19:09:27]OFDSenderStorePacket done [19:09:27]KKMCreateOFDPacket done [19:09:27]NVStorageSaveData kkm_last_timestamp [19:09:27]File name is /storage/kkm_last_timestamp [19:09:27]Write 4 bytes [19:09:27]NVStorageSaveData done [19:09:27]ExternCall_PrintAddStr [19:09:27]wPrintStart [19:09:27]Write to MH i2c: 01 00 00 F7 09 00 [19:09:27]Write i2c OK [19:09:27]MH_I2C_Read... [19:09:27]Read from MH i2c: 01 [19:09:27]MH_I2C_Read... [19:09:27]Read from MH i2c: 01 07 00 [19:09:27]MH_I2C_Read... [19:09:27]Read from MH i2c: 01 07 00 F7 09 00 00 00 00 00 FF 0F 15 [19:09:27]RasterBufferAndPrint [19:09:27]line Счет N : (3)12107 [19:09:27]line ИНН: 02508201610067 [19:09:27]line Контрольно-Кассовый Чек [19:09:27]line ПРОДАЖА [19:09:27]line Товар: 4700003010056 [19:09:27]line Чай хол Let`s Go! зел лим ПЭТ 1,25л [19:09:27]line 1.000 * 95.00 [19:09:27]line = 95.00 [19:09:27]line НДС 12% НСП 1% [19:09:27]line > о реализуемом товаре [19:09:27]line ИТОГО: 95.00 [19:09:27]line НСП 1% : 0.84 [19:09:27]line НДС 12% : 10.09 [19:09:27]line Наличными: 95.00 [19:09:27]line Безнал.: 0.00 [19:09:27]line Место: АЗС № 91 "Партнер Нефть" [19:09:27]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:09:27]line СНО: Общий режим [19:09:27]line Чек 121 17.05.2024 19:09 [19:09:27]line Смена: 358 ФФД: 1.0 [19:09:27]line ЗНМ: 0300000119 [19:09:27]line РНМ: 0000000000091845 [19:09:27]line Версия ККМ: 001 [19:09:27]line ФМ: 0000000000871829 [19:09:27]line ФД: 67712 [19:09:27]line ФПД: 29252292928943 [19:09:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T190927&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67712&fm=29252292928943&tin=02508201610067®Number=0000000000091845&sum=9500 [19:09:28]OFD Sender: Processing packet 67712 [packets to send 35, broken 34] [19:09:28]ProducePacketName [19:09:28]name=ofd_packets/00067712 [19:09:28]OFD Sender: To server: pG, [19:09:28]CommunicateWithHost lk.salyk.kg:30040 [19:09:28]ConnectInit lk.salyk.kg [19:09:28]line 0 [19:09:28]written 0, free lines is 4095 [19:09:28]Connected sock=10 [19:09: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 39 01 00 00 AB 3A 31 01 0B 6D 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 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 79 00 00 00 F4 03 04 00 67 AB 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 1A 9A D4 87 65 AF 87 DF CA AC 50 5E FC 31 [19:09: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 D0 E7 47 00 DC 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 80 08 01 00 F4 03 04 00 3F 53 47 66 B6 04 01 00 00 4C 16 5D DF 2C 8D F8 8C [19:09:28]CommunicateWithHost err = 0 [19:09:28]CheckOFDResponse [19:09:28]1017 (14) - 77093643461234 [19:09:28]1041 (16) - 0000000000871829 [19:09:28]1040 (4) - 67712 [19:09:28]1012 (4) - 17.05.2024 12:53 [19:09:28]1206 (1) - 0 [19:09:28]OFD Sender: Remove packet 67712 [19:09:28]ProducePacketName [19:09:28]name=ofd_packets/00067712 [19:09:28]NVStorageDeleteData [19:09:28]Write to MH i2c: 01 00 00 1F 0A 29 [19:09:28]Write i2c OK [19:09:28]MH_I2C_Read... [19:09:28]Read from MH i2c: 01 [19:09:28]MH_I2C_Read... [19:09:28]Read from MH i2c: 01 07 00 [19:09:28]MH_I2C_Read... [19:09:28]Read from MH i2c: 01 07 00 1F 0A 00 00 00 00 00 E2 0C 1E [19:09:28]RasterBufferAndPrint [19:09:28]line [19:09:28]line [19:09:28]line [19:09:28]line [19:09:28]line [19:09:28]written 0, free lines is 3304 [19:09:28]MH_Cut [19:09:28]Write to MH i2c: D1 01 00 26 0A 01 02 [19:09:28]Write i2c OK [19:09:28]MH_I2C_Read... [19:09:28]Read from MH i2c: D1 [19:09:28]MH_I2C_Read... [19:09:28]Read from MH i2c: D1 01 00 [19:09:28]MH_I2C_Read... [19:09:28]Read from MH i2c: D1 01 00 26 0A 00 01 [19:09:28]Write to MH i2c: 01 00 00 27 0A 31 [19:09:28]Write i2c OK [19:09:28]MH_I2C_Read... [19:09:28]OFD Sender: No OFD packet to send [19:09:29]*** Cut start [19:09:29]*** Purtial cut [19:09:29]*** CUTSNS_PIN = 0 [19:09:29]*** Stage 1: CUTSNS_PIN = 1 [19:09:31]Read from MH i2c: 01 [19:09:31]MH_I2C_Read... [19:09:31]*** Stop cut motor [19:09:31]*** Cut end [19:09:31]Read from MH i2c: 01 07 00 [19:09:31]MH_I2C_Read... [19:09:31]Read from MH i2c: 01 07 00 27 0A 00 00 00 00 00 FF 0F 46 [19:09:31]process_action close_receipt done [19:09:31]requested_data is exist [19:09:31]produce_requested_data [19:09:31]requested_item fm.sn is exist - process it [19:09:31]wFMCommunicate request_size=4 [19:09:31]MH_SAM_APDU [19:09:31]CAPDU: 80 11 00 00 [19:09:31]Write to MH i2c: E2 08 00 28 0A 80 11 00 00 00 00 00 00 AC [19:09:31]Write i2c OK [19:09:31]MH_I2C_Read... [19:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:31]Read from MH i2c: E2 [19:09:31]MH_I2C_Read... [19:09:31]Read from MH i2c: E2 17 00 [19:09:31]MH_I2C_Read... [19:09:31]Read from MH i2c: E2 17 00 28 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 02 [19:09:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:09:31]wFMCommunicate OK [19:09:31]requested_item fd.num is exist - process it [19:09:31]SAM_PROTO_GetFieldsCounters [19:09:31]wFMCommunicate request_size=4 [19:09:31]MH_SAM_APDU [19:09:31]CAPDU: 80 13 00 00 [19:09:31]Write to MH i2c: E2 08 00 29 0A 80 13 00 00 00 00 00 00 AF [19:09:31]Write i2c OK [19:09:31]MH_I2C_Read... [19:09:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:31]Read from MH i2c: E2 [19:09:31]MH_I2C_Read... [19:09:31]Read from MH i2c: E2 62 00 [19:09:31]MH_I2C_Read... [19:09:31]Read from MH i2c: E2 62 00 29 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 80 08 01 00 0E 04 04 00 66 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 30 [19:09: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 80 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:31]wFMCommunicate OK [19:09:31]SAM_PROTO_GetFieldsCounters done [19:09:31]requested_item shift.num is exist - process it [19:09:31]requested_item shift.opened is exist - process it [19:09:31]req_shift_opened [19:09:31]FM_GetShiftState [19:09:31]SAM_PROTO_GetShiftState [19:09:31]wFMCommunicate request_size=4 [19:09:31]MH_SAM_APDU [19:09:31]CAPDU: 80 13 01 00 [19:09:31]Write to MH i2c: E2 08 00 2A 0A 80 13 01 00 00 00 00 00 B1 [19:09:31]Write i2c OK [19:09:31]MH_I2C_Read... [19:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:31]Read from MH i2c: E2 [19:09:31]MH_I2C_Read... [19:09:31]Read from MH i2c: E2 0E 00 [19:09:31]MH_I2C_Read... [19:09:31]Read from MH i2c: E2 0E 00 2A 0A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 37 [19:09:31]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:09:31]wFMCommunicate OK [19:09:31]SAM_PROTO_GetShiftState done [19:09:31]FM_GetShiftState done [19:09:31]req_shift_opened done [19:09:31]requested_item shift.open_date is exist - process it [19:09:31]req_shift_open_date [19:09:31]req_shift_open_date done [19:09:31]produce_requested_data done [19:09:31]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67712,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [19:09:31]process_action_free close_receipt [19:09:31]json_value_free [19:09:31]json_value_free done [19:09:31]process_json_proto returns [19:09:31]Send response to host [19:09:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67712,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [19:09:31]free response buf [19:09:31]execute_script done [19:09:31]execute_script returns [19:09:31]free content buf [19:09:31]Sock 7.Close socket [19:09:31]Sock 7.Thread stoped [19:09:33]OFD Sender: No OFD packet to send [19:09:38]OFD Sender: No OFD packet to send [19:09:43]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:13]OFD Sender: No OFD packet to send [19:10:19]OFD Sender: No OFD packet to send [19:10:24]OFD Sender: No OFD packet to send [19:10:29]OFD Sender: No OFD packet to send [19:10:34]OFD Sender: No OFD packet to send [19:10:39]OFD Sender: No OFD packet to send [19:10:44]OFD Sender: No OFD packet to send [19:10:49]OFD Sender: No OFD packet to send [19:10:54]OFD Sender: No OFD packet to send [19:10:59]OFD Sender: No OFD packet to send [19:11:04]OFD Sender: No OFD packet to send [19:11:09]OFD Sender: No OFD packet to send [19:11:14]OFD Sender: No OFD packet to send [19:11:19]OFD Sender: No OFD packet to send [19:11:24]OFD Sender: No OFD packet to send [19:11:29]OFD Sender: No OFD packet to send [19:11:34]OFD Sender: No OFD packet to send [19:11:39]OFD Sender: No OFD packet to send [19:11:44]OFD Sender: No OFD packet to send [19:11:49]OFD Sender: No OFD packet to send [19:11:54]OFD Sender: No OFD packet to send [19:11:59]OFD Sender: No OFD packet to send [19:12:04]OFD Sender: No OFD packet to send [19:12:09]OFD Sender: No OFD packet to send [19:12:14]OFD Sender: No OFD packet to send [19:12:16]accept exits with 9 [19:12:16]New connection [19:12:16]New thread 3066752356 created [19:12:16]Thread 3066608996 joined [19:12:16]Waiting for new connection... [19:12:16] Sock 9.Parse request [19:12:16]Sock 9.Check first char [19:12:16]Sock 9.First char is OK [19:12:16]request: POST /json_proto HTTP/1.0 [19:12:16]Method: POST [19:12:16]URL: /json_proto [19:12:16]Method is POST - this is cgi request [19:12:16]url: /json_proto [19:12:16]query_string will be loaded in cgi processing [19:12:16]execute_cgi json_proto POST (null) [19:12:16]execute_cgi path=json_proto method=POST [19:12:16]POST find Content-Length [19:12:16]Host: 172.17.41.195:8080 [19:12:16]Content-Length: 1180 [19:12:16]Content-Type: application/json [19:12:16] [19:12:16]POST finish read [19:12:16]Found Content-Length = 1180 [19:12:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507864\u000A17.05.2024 18:54\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 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\u000A29852\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:16]execute_script... [19:12:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507864\u000A17.05.2024 18:54\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 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\u000A29852\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:16]POST & json_proto [19:12:16]process_json_proto [19:12:16]json parsed OK: [19:12:16]protocol is kg_v1.0 [19:12:16]action value=print_text [19:12:16]process_action print_text [19:12:16]cmd_print_text [19:12:16]ExternCall_PrintAddStr [19:12:16]wPrintStart [19:12:16]Write to MH i2c: 01 00 00 2B 0A 35 [19:12:16]Write i2c OK [19:12:16]MH_I2C_Read... [19:12:16]Read from MH i2c: 01 [19:12:16]MH_I2C_Read... [19:12:16]Read from MH i2c: 01 07 00 [19:12:16]MH_I2C_Read... [19:12:16]Read from MH i2c: 01 07 00 2B 0A 00 00 00 00 00 FF 0F 4A [19:12:16]RasterBufferAndPrint [19:12:16]line *****ТОВАРНЫЙ ЧЕК***** [19:12:16]line АЗС-91 [19:12:16]line Партнер нефть [19:12:16]line 02508201610067 [19:12:16]line Кассир : Адишов И. [19:12:16]line Счет N : (1)507864 [19:12:16]line 17.05.2024 18:54 [19:12:16]line ПРОДАЖА [19:12:16]line ТРК (МРК, ГНК): 43 [19:12:16]line Вид ГСМ : 2710124130 [19:12:16]line Аи-92-К-5 [19:12:16]line 7.490 x 66.80 [19:12:16]line ИТОГ: 500.33 [19:12:16]line Тип оплаты: Талоны: Топливная Карта [19:12:16]line 29852 [19:12:16]line ______________________ [19:12:16]line (подпись) [19:12:16]written 0, free lines is 4095 [19:12:17]Write to MH i2c: 01 00 00 3F 0A 49 [19:12:17]Write i2c OK [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: 01 [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: 01 07 00 [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: 01 07 00 3F 0A 00 00 00 00 00 0F 0E 6D [19:12:17]RasterBufferAndPrint [19:12:17]line [19:12:17]line [19:12:17]line [19:12:17]line [19:12:17]line [19:12:17]written 0, free lines is 3600 [19:12:17]MH_Cut [19:12:17]Write to MH i2c: D1 01 00 46 0A 01 22 [19:12:17]Write i2c OK [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: D1 [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: D1 01 00 [19:12:17]MH_I2C_Read... [19:12:17]Read from MH i2c: D1 01 00 46 0A 00 21 [19:12:17]Write to MH i2c: 01 00 00 47 0A 51 [19:12:17]Write i2c OK [19:12:17]MH_I2C_Read... [19:12:17]*** Cut start [19:12:17]*** Purtial cut [19:12:17]*** Stage 1: CUTSNS_PIN = 1 [19:12:18]Read from MH i2c: 01 [19:12:18]MH_I2C_Read... [19:12:18]*** Stop cut motor [19:12:18]*** Cut end [19:12:18]Read from MH i2c: 01 07 00 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: 01 07 00 47 0A 00 00 00 00 00 FF 0F 66 [19:12:18]process_action print_text done [19:12:18]requested_data is exist [19:12:18]produce_requested_data [19:12:18]requested_item fm.sn is exist - process it [19:12:18]wFMCommunicate request_size=4 [19:12:18]MH_SAM_APDU [19:12:18]CAPDU: 80 11 00 00 [19:12:18]Write to MH i2c: E2 08 00 48 0A 80 11 00 00 00 00 00 00 CC [19:12:18]Write i2c OK [19:12:18]MH_I2C_Read... [19:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:18]Read from MH i2c: E2 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 17 00 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 17 00 48 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 22 [19:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:12:18]wFMCommunicate OK [19:12:18]requested_item fd.num is exist - process it [19:12:18]SAM_PROTO_GetFieldsCounters [19:12:18]wFMCommunicate request_size=4 [19:12:18]MH_SAM_APDU [19:12:18]CAPDU: 80 13 00 00 [19:12:18]Write to MH i2c: E2 08 00 49 0A 80 13 00 00 00 00 00 00 CF [19:12:18]Write i2c OK [19:12:18]MH_I2C_Read... [19:12:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:18]Read from MH i2c: E2 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 62 00 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 62 00 49 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 80 08 01 00 0E 04 04 00 66 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 50 [19:12: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 80 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:18]wFMCommunicate OK [19:12:18]SAM_PROTO_GetFieldsCounters done [19:12:18]requested_item shift.num is exist - process it [19:12:18]requested_item shift.opened is exist - process it [19:12:18]req_shift_opened [19:12:18]FM_GetShiftState [19:12:18]SAM_PROTO_GetShiftState [19:12:18]wFMCommunicate request_size=4 [19:12:18]MH_SAM_APDU [19:12:18]CAPDU: 80 13 01 00 [19:12:18]Write to MH i2c: E2 08 00 4A 0A 80 13 01 00 00 00 00 00 D1 [19:12:18]Write i2c OK [19:12:18]MH_I2C_Read... [19:12:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:18]Read from MH i2c: E2 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 0E 00 [19:12:18]MH_I2C_Read... [19:12:18]Read from MH i2c: E2 0E 00 4A 0A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 57 [19:12:18]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:12:18]wFMCommunicate OK [19:12:18]SAM_PROTO_GetShiftState done [19:12:18]FM_GetShiftState done [19:12:18]req_shift_opened done [19:12:18]requested_item shift.open_date is exist - process it [19:12:18]req_shift_open_date [19:12:18]req_shift_open_date done [19:12:18]produce_requested_data done [19:12:18]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67712,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [19:12:18]process_action_free print_text [19:12:18]json_value_free [19:12:18]json_value_free done [19:12:18]process_json_proto returns [19:12:18]Send response to host [19:12:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67712,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [19:12:18]free response buf [19:12:18]execute_script done [19:12:18]execute_script returns [19:12:18]free content buf [19:12:18]Sock 9.Close socket [19:12:18]Sock 9.Thread stoped [19:12:19]OFD Sender: No OFD packet to send [19:12:24]OFD Sender: No OFD packet to send [19:12:29]OFD Sender: No OFD packet to send [19:12:34]OFD Sender: No OFD packet to send [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:19]OFD Sender: No OFD packet to send [19:13:24]OFD Sender: No OFD packet to send [19:13:29]OFD Sender: No OFD packet to send [19:13:34]OFD Sender: No OFD packet to send [19:13:39]OFD Sender: No OFD packet to send [19:13:44]OFD Sender: No OFD packet to send [19:13:49]OFD Sender: No OFD packet to send [19:13:54]OFD Sender: No OFD packet to send [19:13:56]accept exits with 7 [19:13:56]New connection [19:13:56]New thread 3066608996 created [19:13:56] Sock 7.Parse request [19:13:56]Thread 3066752356 joined [19:13:56]Sock 7.Check first char [19:13:56]Waiting for new connection... [19:13:56]Sock 7.First char is OK [19:13:56]request: POST /json_proto HTTP/1.0 [19:13:56]Method: POST [19:13:56]URL: /json_proto [19:13:56]Method is POST - this is cgi request [19:13:56]url: /json_proto [19:13:56]query_string will be loaded in cgi processing [19:13:56]execute_cgi json_proto POST (null) [19:13:56]execute_cgi path=json_proto method=POST [19:13:56]POST find Content-Length [19:13:56]Host: 172.17.41.195:8080 [19:13:56]Content-Length: 800 [19:13:56]Content-Type: application/json [19:13:56] [19:13:56]POST finish read [19:13:56]Found Content-Length = 800 [19:13:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507865", "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" ] } } [19:13:56]execute_script... [19:13: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)507865", "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" ] } } [19:13:56]POST & json_proto [19:13:56]process_json_proto [19:13:56]json parsed OK: [19:13:56]protocol is kg_v1.0 [19:13:56]action value=close_receipt [19:13:56]process_action close_receipt [19:13:56]cmd_close_receipt [19:13:56]MH_GetDate [19:13:56]Write to MH i2c: F0 00 00 4B 0A 44 [19:13:56]Write i2c OK [19:13:56]MH_I2C_Read... [19:13:56]Read from MH i2c: F0 [19:13:56]MH_I2C_Read... [19:13:56]Read from MH i2c: F0 09 00 [19:13:56]MH_I2C_Read... [19:13:56]Read from MH i2c: F0 09 00 4B 0A 00 76 AC 47 66 FC 21 6F 64 0C [19:13:56]GetLastDocTimeStamp 1715972967 [19:13:56]current date 1715973238 [19:13:56]FM_GetShiftState [19:13:56]SAM_PROTO_GetShiftState [19:13:56]wFMCommunicate request_size=4 [19:13:56]MH_SAM_APDU [19:13:56]CAPDU: 80 13 01 00 [19:13:56]Write to MH i2c: E2 08 00 4C 0A 80 13 01 00 00 00 00 00 D3 [19:13:56]Write i2c OK [19:13:56]MH_I2C_Read... [19:13:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:56]Read from MH i2c: E2 [19:13:56]MH_I2C_Read... [19:13:56]Read from MH i2c: E2 0E 00 [19:13:56]MH_I2C_Read... [19:13:56]Read from MH i2c: E2 0E 00 4C 0A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 59 [19:13:56]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:13:56]wFMCommunicate OK [19:13:56]SAM_PROTO_GetShiftState done [19:13:56]FM_GetShiftState done [19:13:56]opened in 1715905068 [19:13:56]opened+sec_in_day 1715991468 [19:13:56]quantity*price = 50033 [19:13:56]sum+1 = 50034 [19:13: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 СНО: Общий режим Чек 122 17.05.2024 19:13 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67713 ФПД: 183478908260752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T191358&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67713&fm=183478908260752&tin=02508201610067®Number=0000000000091845&sum=50033 [19:13:58]StoreToDocumentArchive [19:13:58]shift 358 fd 67713 [19:13:58]save to /storage/0358/doc_00067713 [19:13:58]save last doc name /storage/0358/doc_00067713 to /storage/kkm_last_doc_name [19:13:58]save OK [19:13:58]Clear old archive folders... [19:13:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:13:58]tlvbuf is 01ACA490 [19:13:58]SAM_PROTO_ClearQueue [19:13:58]wFMCommunicate request_size=4 [19:13:58]MH_SAM_APDU [19:13:58]CAPDU: 80 09 00 00 [19:13:58]Write to MH i2c: E2 08 00 59 0A 80 09 00 00 00 00 00 00 D5 [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 [19:13:58]MH_I2C_Read... [19:13:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:58]Read from MH i2c: E2 03 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 59 0A 00 90 00 D7 [19:13:58]RAPDU: 90 00 [19:13:58]wFMCommunicate OK [19:13:58]SAM_PROTO_ClearQueue done [19:13:58]KKMCreateOFDPacket [19:13:58]OFDProtocolAddRootSTLVToBuf [19:13:58]FM_MakeSignedData [19:13:58]FM_MakeSignedData [19:13:58]SAM_PROTO_SignData [19:13:58]wFMCommunicate request_size=4 [19:13:58]MH_SAM_APDU [19:13:58]CAPDU: 80 0D 01 02 [19:13:58]Write to MH i2c: E2 08 00 5A 0A 80 0D 01 02 00 00 00 00 DD [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:58]Read from MH i2c: E2 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 5A 0A 00 90 00 D8 [19:13:58]RAPDU: 90 00 [19:13:58]wFMCommunicate OK [19:13:58]wFMCommunicate request_size=255 [19:13:58]MH_SAM_APDU [19:13: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 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 7A 00 00 00 F4 03 04 00 76 AC 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 A6 [19:13:58]Write to MH i2c: E2 02 01 5B 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7A 00 00 00 F4 03 04 00 76 AC 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 A6 00 00 8A [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:58]Read from MH i2c: E2 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 5B 0A 00 90 00 D9 [19:13:58]RAPDU: 90 00 [19:13:58]wFMCommunicate OK [19:13:58]wFMCommunicate request_size=10 [19:13:58]MH_SAM_APDU [19:13:58]CAPDU: 80 0D 02 02 05 DF 83 26 91 90 [19:13:58]Write to MH i2c: E2 0D 00 5C 0A 80 0D 02 02 05 00 DF 83 26 91 90 00 00 93 [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:58]Read from MH i2c: E2 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 03 00 5C 0A 00 90 00 DA [19:13:58]RAPDU: 90 00 [19:13:58]wFMCommunicate OK [19:13:58]wFMCommunicate request_size=4 [19:13:58]MH_SAM_APDU [19:13:58]CAPDU: 80 0D 03 02 [19:13:58]Write to MH i2c: E2 08 00 5D 0A 80 0D 03 02 00 00 00 00 E2 [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:58]Read from MH i2c: E2 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 0B 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 0B 00 5D 0A 00 6A B5 CC C5 DA DC AC 3C 90 00 31 [19:13:58]RAPDU: 6A B5 CC C5 DA DC AC 3C 90 00 [19:13:58]wFMCommunicate OK [19:13:58]SAM_PROTO_SignData done [19:13:58]FM_MakeSignedData done [19:13:58]CreateOFDProtocolMessage [19:13:58]wFMCommunicate request_size=4 [19:13:58]MH_SAM_APDU [19:13:58]CAPDU: 80 11 00 00 [19:13:58]Write to MH i2c: E2 08 00 5E 0A 80 11 00 00 00 00 00 00 E2 [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:58]Read from MH i2c: E2 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 17 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: E2 17 00 5E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 38 [19:13: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:13:58]wFMCommunicate OK [19:13:58]CreateOFDProtocolMessage done [19:13:58]OFDSenderStorePacket 67713 [19:13:58]StoreOFDPacket docnum=67713 [19:13: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 A7 3C 07 01 05 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 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 7A 00 00 00 F4 03 04 00 76 AC 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 A6 DF 83 26 91 90 6A B5 CC C5 DA DC AC 3C [19:13:58]CheckFolder [19:13:58]dirname=/storage/ofd_packets [19:13:58]CheckFolder done [19:13:58]ProducePacketName [19:13:58]name=ofd_packets/00067713 [19:13:58]NVStorageSaveData ofd_packets/00067713 [19:13:58]File name is /storage/ofd_packets/00067713 [19:13:58]Write 301 bytes [19:13:58]NVStorageSaveData done [19:13:58]OFDSenderStorePacket done [19:13:58]KKMCreateOFDPacket done [19:13:58]NVStorageSaveData kkm_last_timestamp [19:13:58]File name is /storage/kkm_last_timestamp [19:13:58]Write 4 bytes [19:13:58]NVStorageSaveData done [19:13:58]ExternCall_PrintAddStr [19:13:58]wPrintStart [19:13:58]Write to MH i2c: 01 00 00 5F 0A 69 [19:13:58]Write i2c OK [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: 01 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: 01 07 00 [19:13:58]MH_I2C_Read... [19:13:58]Read from MH i2c: 01 07 00 5F 0A 00 00 00 00 00 FF 0F 7E [19:13:58]RasterBufferAndPrint [19:13:58]line Счет N : (1)507865 [19:13:58]line ИНН: 02508201610067 [19:13:58]line Контрольно-Кассовый Чек [19:13:58]line ПРОДАЖА [19:13:58]line ТРК (МРК, ГНК) : 33 [19:13:58]line Товар: 2710124130 [19:13:58]line Аи-92-К-5 [19:13:58]line 7.490 * 66.80 [19:13:58]line = 500.33 [19:13:58]line НДС 12% НСП 1% [19:13:58]line > о реализуемом товаре [19:13:58]line ИТОГО: 500.33 [19:13:58]line НСП 1% : 4.43 [19:13:58]line НДС 12% : 53.13 [19:13:58]line Наличными: 0.00 [19:13:58]line Безнал.: 500.33 [19:13:58]line Место: АЗС № 91 "Партнер Нефть" [19:13:58]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:13:58]line СНО: Общий режим [19:13:58]line Чек 122 17.05.2024 19:13 [19:13:58]line Смена: 358 ФФД: 1.0 [19:13:58]line ЗНМ: 0300000119 [19:13:58]line РНМ: 0000000000091845 [19:13:58]line Версия ККМ: 001 [19:13:58]line Платежная система: O! деньги [19:13:58]line ФМ: 0000000000871829 [19:13:58]line ФД: 67713 [19:13:58]line ФПД: 183478908260752 [19:13:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T191358&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67713&fm=183478908260752&tin=02508201610067®Number=0000000000091845&sum=50033 [19:13:58]OFD Sender: Processing packet 67713 [packets to send 35, broken 34] [19:13:58]ProducePacketName [19:13:58]name=ofd_packets/00067713 [19:13:58]OFD Sender: To server: pG, [19:13:58]CommunicateWithHost lk.salyk.kg:30040 [19:13:58]ConnectInit lk.salyk.kg [19:13:58]written 0, free lines is 4095 [19:13:59]Connected sock=10 [19:13: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 A7 3C 07 01 05 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 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 7A 00 00 00 F4 03 04 00 76 AC 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 A6 DF 83 26 91 90 6A B5 CC C5 DA DC AC 3C [19:13: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 57 47 00 80 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 81 08 01 00 F4 03 04 00 4D 54 47 66 B6 04 01 00 00 10 68 DB 0C B3 1B EB DE [19:13:59]CommunicateWithHost err = 0 [19:13:59]CheckOFDResponse [19:13:59]1017 (14) - 77093643461234 [19:13:59]1041 (16) - 0000000000871829 [19:13:59]1040 (4) - 67713 [19:13:59]1012 (4) - 17.05.2024 12:57 [19:13:59]1206 (1) - 0 [19:13:59]OFD Sender: Remove packet 67713 [19:13:59]ProducePacketName [19:13:59]name=ofd_packets/00067713 [19:13:59]NVStorageDeleteData [19:13:59]Write to MH i2c: 01 00 00 88 0A 92 [19:13:59]Write i2c OK [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: 01 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: 01 07 00 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: 01 07 00 88 0A 00 00 00 00 00 F7 0C 9C [19:13:59]RasterBufferAndPrint [19:13:59]line [19:13:59]line [19:13:59]line [19:13:59]line [19:13:59]line [19:13:59]written 0, free lines is 3326 [19:13:59]MH_Cut [19:13:59]Write to MH i2c: D1 01 00 8F 0A 01 6B [19:13:59]Write i2c OK [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: D1 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: D1 01 00 [19:13:59]MH_I2C_Read... [19:13:59]Read from MH i2c: D1 01 00 8F 0A 00 6A [19:13:59]Write to MH i2c: 01 00 00 90 0A 9A [19:13:59]Write i2c OK [19:13:59]MH_I2C_Read... [19:13:59]OFD Sender: No OFD packet to send [19:14:00]*** Cut start [19:14:00]*** Purtial cut [19:14:00]*** CUTSNS_PIN = 0 [19:14:00]*** Stage 1: CUTSNS_PIN = 1 [19:14:02]Read from MH i2c: 01 [19:14:02]MH_I2C_Read... [19:14:02]*** Stop cut motor [19:14:02]*** Cut end [19:14:02]Read from MH i2c: 01 07 00 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: 01 07 00 90 0A 00 00 00 00 00 FF 0F AF [19:14:02]process_action close_receipt done [19:14:02]requested_data is exist [19:14:02]produce_requested_data [19:14:02]requested_item fm.sn is exist - process it [19:14:02]wFMCommunicate request_size=4 [19:14:02]MH_SAM_APDU [19:14:02]CAPDU: 80 11 00 00 [19:14:02]Write to MH i2c: E2 08 00 91 0A 80 11 00 00 00 00 00 00 15 [19:14:02]Write i2c OK [19:14:02]MH_I2C_Read... [19:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:02]Read from MH i2c: E2 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 17 00 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 17 00 91 0A 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:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:14:02]wFMCommunicate OK [19:14:02]requested_item fd.num is exist - process it [19:14:02]SAM_PROTO_GetFieldsCounters [19:14:02]wFMCommunicate request_size=4 [19:14:02]MH_SAM_APDU [19:14:02]CAPDU: 80 13 00 00 [19:14:02]Write to MH i2c: E2 08 00 92 0A 80 13 00 00 00 00 00 00 18 [19:14:02]Write i2c OK [19:14:02]MH_I2C_Read... [19:14:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:02]Read from MH i2c: E2 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 62 00 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 62 00 92 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 81 08 01 00 0E 04 04 00 66 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 9D [19:14: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 81 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:02]wFMCommunicate OK [19:14:02]SAM_PROTO_GetFieldsCounters done [19:14:02]requested_item shift.num is exist - process it [19:14:02]requested_item shift.opened is exist - process it [19:14:02]req_shift_opened [19:14:02]FM_GetShiftState [19:14:02]SAM_PROTO_GetShiftState [19:14:02]wFMCommunicate request_size=4 [19:14:02]MH_SAM_APDU [19:14:02]CAPDU: 80 13 01 00 [19:14:02]Write to MH i2c: E2 08 00 93 0A 80 13 01 00 00 00 00 00 1A [19:14:02]Write i2c OK [19:14:02]MH_I2C_Read... [19:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:02]Read from MH i2c: E2 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 0E 00 [19:14:02]MH_I2C_Read... [19:14:02]Read from MH i2c: E2 0E 00 93 0A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 A0 [19:14:02]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:14:02]wFMCommunicate OK [19:14:02]SAM_PROTO_GetShiftState done [19:14:02]FM_GetShiftState done [19:14:02]req_shift_opened done [19:14:02]requested_item shift.open_date is exist - process it [19:14:02]req_shift_open_date [19:14:02]req_shift_open_date done [19:14:02]produce_requested_data done [19:14:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67713,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [19:14:02]process_action_free close_receipt [19:14:02]json_value_free [19:14:02]json_value_free done [19:14:02]process_json_proto returns [19:14:02]Send response to host [19:14:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67713,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [19:14:02]free response buf [19:14:02]execute_script done [19:14:02]execute_script returns [19:14:02]free content buf [19:14:02]Sock 7.Close socket [19:14:02]Sock 7.Thread stoped [19:14:04]OFD Sender: No OFD packet to send [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:10]accept exits with 9 [19:16:10]New connection [19:16:10]New thread 3066752356 created [19:16:10]Thread 3066608996 joined [19:16:10]Waiting for new connection... [19:16:10] Sock 9.Parse request [19:16:10]Sock 9.Check first char [19:16:10]Sock 9.First char is OK [19:16:10]request: POST /json_proto HTTP/1.0 [19:16:10]Method: POST [19:16:10]URL: /json_proto [19:16:10]Method is POST - this is cgi request [19:16:10]url: /json_proto [19:16:10]query_string will be loaded in cgi processing [19:16:10]execute_cgi json_proto POST (null) [19:16:10]execute_cgi path=json_proto method=POST [19:16:10]POST find Content-Length [19:16:10]Host: 172.17.41.195:8080 [19:16:10]Content-Length: 800 [19:16:10]Content-Type: application/json [19:16:10] [19:16:10]POST finish read [19:16:10]Found Content-Length = 800 [19:16:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:10]execute_script... [19:16: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)507866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:10]POST & json_proto [19:16:10]process_json_proto [19:16:10]json parsed OK: [19:16:10]protocol is kg_v1.0 [19:16:10]action value=close_receipt [19:16:10]process_action close_receipt [19:16:10]cmd_close_receipt [19:16:10]MH_GetDate [19:16:10]Write to MH i2c: F0 00 00 94 0A 8D [19:16:10]Write i2c OK [19:16:10]MH_I2C_Read... [19:16:10]Read from MH i2c: F0 [19:16:10]MH_I2C_Read... [19:16:10]Read from MH i2c: F0 09 00 [19:16:10]MH_I2C_Read... [19:16:10]Read from MH i2c: F0 09 00 94 0A 00 FC AC 47 66 FC 21 6F 64 DB [19:16:10]GetLastDocTimeStamp 1715973238 [19:16:10]current date 1715973372 [19:16:10]FM_GetShiftState [19:16:10]SAM_PROTO_GetShiftState [19:16:10]wFMCommunicate request_size=4 [19:16:10]MH_SAM_APDU [19:16:10]CAPDU: 80 13 01 00 [19:16:10]Write to MH i2c: E2 08 00 95 0A 80 13 01 00 00 00 00 00 1C [19:16:10]Write i2c OK [19:16:10]MH_I2C_Read... [19:16:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:10]Read from MH i2c: E2 [19:16:10]MH_I2C_Read... [19:16:10]Read from MH i2c: E2 0E 00 [19:16:10]MH_I2C_Read... [19:16:10]Read from MH i2c: E2 0E 00 95 0A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 A2 [19:16:10]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:16:10]wFMCommunicate OK [19:16:10]SAM_PROTO_GetShiftState done [19:16:10]FM_GetShiftState done [19:16:10]opened in 1715905068 [19:16:10]opened+sec_in_day 1715991468 [19:16:10]quantity*price = 200046 [19:16:10]sum+1 = 200048 [19:16:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 123 17.05.2024 19:16 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67714 ФПД: 211669574360123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T191612&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67714&fm=211669574360123&tin=02508201610067®Number=0000000000091845&sum=200047 [19:16:11]StoreToDocumentArchive [19:16:11]shift 358 fd 67714 [19:16:11]save to /storage/0358/doc_00067714 [19:16:11]save last doc name /storage/0358/doc_00067714 to /storage/kkm_last_doc_name [19:16:11]save OK [19:16:11]Clear old archive folders... [19:16:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:16:11]tlvbuf is 01B1B480 [19:16:11]SAM_PROTO_ClearQueue [19:16:11]wFMCommunicate request_size=4 [19:16:11]MH_SAM_APDU [19:16:11]CAPDU: 80 09 00 00 [19:16:11]Write to MH i2c: E2 08 00 A2 0A 80 09 00 00 00 00 00 00 1E [19:16:11]Write i2c OK [19:16:11]MH_I2C_Read... [19:16:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:11]Read from MH i2c: E2 [19:16:11]MH_I2C_Read... [19:16:11]Read from MH i2c: E2 03 00 [19:16:11]MH_I2C_Read... [19:16:11]Read from MH i2c: E2 03 00 A2 0A 00 90 00 20 [19:16:11]RAPDU: 90 00 [19:16:11]wFMCommunicate OK [19:16:11]SAM_PROTO_ClearQueue done [19:16:11]KKMCreateOFDPacket [19:16:11]OFDProtocolAddRootSTLVToBuf [19:16:11]FM_MakeSignedData [19:16:11]FM_MakeSignedData [19:16:11]SAM_PROTO_SignData [19:16:11]wFMCommunicate request_size=4 [19:16:11]MH_SAM_APDU [19:16:11]CAPDU: 80 0D 01 02 [19:16:11]Write to MH i2c: E2 08 00 A3 0A 80 0D 01 02 00 00 00 00 26 [19:16:11]Write i2c OK [19:16:11]MH_I2C_Read... [19:16:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:11]Read from MH i2c: E2 [19:16:11]MH_I2C_Read... [19:16:11]Read from MH i2c: E2 03 00 [19:16:11]MH_I2C_Read... [19:16:11]Read from MH i2c: E2 03 00 A3 0A 00 90 00 21 [19:16:11]RAPDU: 90 00 [19:16:11]wFMCommunicate OK [19:16:11]wFMCommunicate request_size=255 [19:16:11]MH_SAM_APDU [19:16: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 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 7B 00 00 00 F4 03 04 00 FC AC 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 C0 83 29 CA [19:16:11]Write to MH i2c: E2 02 01 A4 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 7B 00 00 00 F4 03 04 00 FC AC 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 C0 83 29 CA 00 00 8A [19:16:11]Write i2c OK [19:16:11]MH_I2C_Read... [19:16:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:12]Read from MH i2c: E2 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 03 00 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 03 00 A4 0A 00 90 00 22 [19:16:12]RAPDU: 90 00 [19:16:12]wFMCommunicate OK [19:16:12]wFMCommunicate request_size=7 [19:16:12]MH_SAM_APDU [19:16:12]CAPDU: 80 0D 02 02 02 1C 3B [19:16:12]Write to MH i2c: E2 0A 00 A5 0A 80 0D 02 02 02 00 1C 3B 00 00 84 [19:16:12]Write i2c OK [19:16:12]MH_I2C_Read... [19:16:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:12]Read from MH i2c: E2 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 03 00 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 03 00 A5 0A 00 90 00 23 [19:16:12]RAPDU: 90 00 [19:16:12]wFMCommunicate OK [19:16:12]wFMCommunicate request_size=4 [19:16:12]MH_SAM_APDU [19:16:12]CAPDU: 80 0D 03 02 [19:16:12]Write to MH i2c: E2 08 00 A6 0A 80 0D 03 02 00 00 00 00 2B [19:16:12]Write i2c OK [19:16:12]MH_I2C_Read... [19:16:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:12]Read from MH i2c: E2 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 0B 00 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 0B 00 A6 0A 00 99 39 FD 76 EF 4F B8 75 90 00 DC [19:16:12]RAPDU: 99 39 FD 76 EF 4F B8 75 90 00 [19:16:12]wFMCommunicate OK [19:16:12]SAM_PROTO_SignData done [19:16:12]FM_MakeSignedData done [19:16:12]CreateOFDProtocolMessage [19:16:12]wFMCommunicate request_size=4 [19:16:12]MH_SAM_APDU [19:16:12]CAPDU: 80 11 00 00 [19:16:12]Write to MH i2c: E2 08 00 A7 0A 80 11 00 00 00 00 00 00 2B [19:16:12]Write i2c OK [19:16:12]MH_I2C_Read... [19:16:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:12]Read from MH i2c: E2 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 17 00 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 17 00 A7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 81 [19:16:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:16:12]wFMCommunicate OK [19:16:12]CreateOFDProtocolMessage done [19:16:12]OFDSenderStorePacket 67714 [19:16:12]StoreOFDPacket docnum=67714 [19:16: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 EF 36 04 01 2C CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7B 00 00 00 F4 03 04 00 FC AC 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 C0 83 29 CA 1C 3B 99 39 FD 76 EF 4F B8 75 [19:16:12]CheckFolder [19:16:12]dirname=/storage/ofd_packets [19:16:12]CheckFolder done [19:16:12]ProducePacketName [19:16:12]name=ofd_packets/00067714 [19:16:12]NVStorageSaveData ofd_packets/00067714 [19:16:12]File name is /storage/ofd_packets/00067714 [19:16:12]Write 298 bytes [19:16:12]NVStorageSaveData done [19:16:12]OFDSenderStorePacket done [19:16:12]KKMCreateOFDPacket done [19:16:12]NVStorageSaveData kkm_last_timestamp [19:16:12]File name is /storage/kkm_last_timestamp [19:16:12]Write 4 bytes [19:16:12]NVStorageSaveData done [19:16:12]ExternCall_PrintAddStr [19:16:12]wPrintStart [19:16:12]Write to MH i2c: 01 00 00 A8 0A B2 [19:16:12]Write i2c OK [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: 01 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: 01 07 00 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: 01 07 00 A8 0A 00 00 00 00 00 FF 0F C7 [19:16:12]RasterBufferAndPrint [19:16:12]line Счет N : (1)507866 [19:16:12]line ИНН: 02508201610067 [19:16:12]line Контрольно-Кассовый Чек [19:16:12]line ПРОДАЖА [19:16:12]line ТРК (МРК, ГНК) : 11 [19:16:12]line Товар: 2710194210 [19:16:12]line ДТ-К-5 [19:16:12]line 26.780 * 74.70 [19:16:12]line = 2000.47 [19:16:12]line НДС 12% НСП 1% [19:16:12]line > о реализуемом товаре [19:16:12]line ИТОГО: 2000.47 [19:16:12]line НСП 1% : 17.70 [19:16:12]line НДС 12% : 212.44 [19:16:12]line Наличными: 0.00 [19:16:12]line Безнал.: 2000.47 [19:16:12]line Место: АЗС № 91 "Партнер Нефть" [19:16:12]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:16:12]line СНО: Общий режим [19:16:12]line Чек 123 17.05.2024 19:16 [19:16:12]line Смена: 358 ФФД: 1.0 [19:16:12]line ЗНМ: 0300000119 [19:16:12]line РНМ: 0000000000091845 [19:16:12]line Версия ККМ: 001 [19:16:12]line Платежная система: O! деньги [19:16:12]line ФМ: 0000000000871829 [19:16:12]line ФД: 67714 [19:16:12]line ФПД: 211669574360123 [19:16:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T191612&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67714&fm=211669574360123&tin=02508201610067®Number=0000000000091845&sum=200047 [19:16:12]OFD Sender: Processing packet 67714 [packets to send 35, broken 34] [19:16:12]ProducePacketName [19:16:12]name=ofd_packets/00067714 [19:16:12]OFD Sender: To server: pG, [19:16:12]CommunicateWithHost lk.salyk.kg:30040 [19:16:12]ConnectInit lk.salyk.kg [19:16:12]written 0, free lines is 4095 [19:16:12]Connected sock=10 [19:16: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 EF 36 04 01 2C CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7B 00 00 00 F4 03 04 00 FC AC 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 C0 83 29 CA 1C 3B 99 39 FD 76 EF 4F B8 75 [19:16: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 71 6D 47 00 EC 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 82 08 01 00 F4 03 04 00 D3 54 47 66 B6 04 01 00 00 FF A3 8A 8B 76 E7 2C 71 [19:16:12]CommunicateWithHost err = 0 [19:16:12]CheckOFDResponse [19:16:12]1017 (14) - 77093643461234 [19:16:12]1041 (16) - 0000000000871829 [19:16:12]1040 (4) - 67714 [19:16:12]1012 (4) - 17.05.2024 13:00 [19:16:12]1206 (1) - 0 [19:16:12]OFD Sender: Remove packet 67714 [19:16:12]ProducePacketName [19:16:12]name=ofd_packets/00067714 [19:16:12]NVStorageDeleteData [19:16:12]Write to MH i2c: 01 00 00 D1 0A DB [19:16:12]Write i2c OK [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: 01 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: 01 07 00 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: 01 07 00 D1 0A 00 00 00 00 00 DF 0C CD [19:16:12]RasterBufferAndPrint [19:16:12]line [19:16:12]line [19:16:12]line [19:16:12]line [19:16:12]line [19:16:12]written 0, free lines is 3301 [19:16:12]MH_Cut [19:16:12]Write to MH i2c: D1 01 00 D8 0A 01 B4 [19:16:12]Write i2c OK [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: D1 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: D1 01 00 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: D1 01 00 D8 0A 00 B3 [19:16:12]Write to MH i2c: 01 00 00 D9 0A E3 [19:16:12]Write i2c OK [19:16:12]MH_I2C_Read... [19:16:13]OFD Sender: No OFD packet to send [19:16:13]*** Cut start [19:16:13]*** Purtial cut [19:16:13]*** Stage 1: CUTSNS_PIN = 1 [19:16:14]Read from MH i2c: 01 [19:16:14]MH_I2C_Read... [19:16:14]*** Stop cut motor [19:16:14]*** Cut end [19:16:14]Read from MH i2c: 01 07 00 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: 01 07 00 D9 0A 00 00 00 00 00 FF 0F F8 [19:16:14]process_action close_receipt done [19:16:14]requested_data is exist [19:16:14]produce_requested_data [19:16:14]requested_item fm.sn is exist - process it [19:16:14]wFMCommunicate request_size=4 [19:16:14]MH_SAM_APDU [19:16:14]CAPDU: 80 11 00 00 [19:16:14]Write to MH i2c: E2 08 00 DA 0A 80 11 00 00 00 00 00 00 5E [19:16:14]Write i2c OK [19:16:14]MH_I2C_Read... [19:16:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:14]Read from MH i2c: E2 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 17 00 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 17 00 DA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B4 [19:16: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:16:14]wFMCommunicate OK [19:16:14]requested_item fd.num is exist - process it [19:16:14]SAM_PROTO_GetFieldsCounters [19:16:14]wFMCommunicate request_size=4 [19:16:14]MH_SAM_APDU [19:16:14]CAPDU: 80 13 00 00 [19:16:14]Write to MH i2c: E2 08 00 DB 0A 80 13 00 00 00 00 00 00 61 [19:16:14]Write i2c OK [19:16:14]MH_I2C_Read... [19:16:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:14]Read from MH i2c: E2 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 62 00 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 62 00 DB 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 82 08 01 00 0E 04 04 00 66 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 EA [19:16: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 82 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:14]wFMCommunicate OK [19:16:14]SAM_PROTO_GetFieldsCounters done [19:16:14]requested_item shift.num is exist - process it [19:16:14]requested_item shift.opened is exist - process it [19:16:14]req_shift_opened [19:16:14]FM_GetShiftState [19:16:14]SAM_PROTO_GetShiftState [19:16:14]wFMCommunicate request_size=4 [19:16:14]MH_SAM_APDU [19:16:14]CAPDU: 80 13 01 00 [19:16:14]Write to MH i2c: E2 08 00 DC 0A 80 13 01 00 00 00 00 00 63 [19:16:14]Write i2c OK [19:16:14]MH_I2C_Read... [19:16:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:14]Read from MH i2c: E2 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 0E 00 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 0E 00 DC 0A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 E9 [19:16:14]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:16:14]wFMCommunicate OK [19:16:14]SAM_PROTO_GetShiftState done [19:16:14]FM_GetShiftState done [19:16:14]req_shift_opened done [19:16:14]requested_item shift.open_date is exist - process it [19:16:14]req_shift_open_date [19:16:14]req_shift_open_date done [19:16:14]produce_requested_data done [19:16:14]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67714,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [19:16:14]process_action_free close_receipt [19:16:14]json_value_free [19:16:14]json_value_free done [19:16:14]process_json_proto returns [19:16:14]Send response to host [19:16:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67714,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [19:16:14]free response buf [19:16:14]execute_script done [19:16:14]execute_script returns [19:16:14]free content buf [19:16:14]Sock 9.Close socket [19:16:14]Sock 9.Thread stoped [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:28]OFD Sender: No OFD packet to send [19:16:33]OFD Sender: No OFD packet to send [19:16:38]OFD Sender: No OFD packet to send [19:16:43]OFD Sender: No OFD packet to send [19:16:48]OFD Sender: No OFD packet to send [19:16:53]OFD Sender: No OFD packet to send [19:16:58]OFD Sender: No OFD packet to send [19:17:03]OFD Sender: No OFD packet to send [19:17:08]OFD Sender: No OFD packet to send [19:17:13]OFD Sender: No OFD packet to send [19:17:18]OFD Sender: No OFD packet to send [19:17:23]OFD Sender: No OFD packet to send [19:17:28]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [19:17:43]OFD Sender: No OFD packet to send [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]accept exits with 7 [19:18:38]New connection [19:18:38]New thread 3066608996 created [19:18:38]Thread 3066752356 joined [19:18:38]Waiting for new connection... [19:18:38] Sock 7.Parse request [19:18:38]Sock 7.Check first char [19:18:38]Sock 7.First char is OK [19:18:38]request: POST /json_proto HTTP/1.0 [19:18:38]Method: POST [19:18:38]URL: /json_proto [19:18:38]Method is POST - this is cgi request [19:18:38]url: /json_proto [19:18:38]query_string will be loaded in cgi processing [19:18:38]execute_cgi json_proto POST (null) [19:18:38]execute_cgi path=json_proto method=POST [19:18:38]POST find Content-Length [19:18:38]Host: 172.17.41.195:8080 [19:18:38]Content-Length: 679 [19:18:38]Content-Type: application/json [19:18:38] [19:18:38]POST finish read [19:18:38]Found Content-Length = 679 [19:18:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507867", "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" : 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" ] } } [19:18:38]execute_script... [19:18: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)507867", "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" : 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" ] } } [19:18:38]POST & json_proto [19:18:38]process_json_proto [19:18:38]json parsed OK: [19:18:38]protocol is kg_v1.0 [19:18:38]action value=close_receipt [19:18:38]process_action close_receipt [19:18:38]cmd_close_receipt [19:18:38]MH_GetDate [19:18:38]Write to MH i2c: F0 00 00 DD 0A D6 [19:18:38]Write i2c OK [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: F0 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: F0 09 00 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: F0 09 00 DD 0A 00 8F AD 47 66 FC 21 6F 64 B8 [19:18:38]GetLastDocTimeStamp 1715973372 [19:18:38]current date 1715973519 [19:18:38]FM_GetShiftState [19:18:38]SAM_PROTO_GetShiftState [19:18:38]wFMCommunicate request_size=4 [19:18:38]MH_SAM_APDU [19:18:38]CAPDU: 80 13 01 00 [19:18:38]Write to MH i2c: E2 08 00 DE 0A 80 13 01 00 00 00 00 00 65 [19:18:38]Write i2c OK [19:18:38]MH_I2C_Read... [19:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:38]Read from MH i2c: E2 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: E2 0E 00 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: E2 0E 00 DE 0A 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 EB [19:18:38]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:18:38]wFMCommunicate OK [19:18:38]SAM_PROTO_GetShiftState done [19:18:38]FM_GetShiftState done [19:18:38]opened in 1715905068 [19:18:38]opened+sec_in_day 1715991468 [19:18:38]quantity*price = 112050 [19:18:38]sum+1 = 112051 [19:18:38]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 СНО: Общий режим Чек 124 17.05.2024 19:18 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67715 ФПД: 184482714615727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T191839&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67715&fm=184482714615727&tin=02508201610067®Number=0000000000091845&sum=112000 [19:18:39]StoreToDocumentArchive [19:18:39]shift 358 fd 67715 [19:18:39]save to /storage/0358/doc_00067715 [19:18:39]save last doc name /storage/0358/doc_00067715 to /storage/kkm_last_doc_name [19:18:39]save OK [19:18:39]Clear old archive folders... [19:18:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:18:39]tlvbuf is 01AEB000 [19:18:39]SAM_PROTO_ClearQueue [19:18:39]wFMCommunicate request_size=4 [19:18:39]MH_SAM_APDU [19:18:39]CAPDU: 80 09 00 00 [19:18:39]Write to MH i2c: E2 08 00 EB 0A 80 09 00 00 00 00 00 00 67 [19:18:39]Write i2c OK [19:18:39]MH_I2C_Read... [19:18:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:39]Read from MH i2c: E2 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 03 00 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 03 00 EB 0A 00 90 00 69 [19:18:39]RAPDU: 90 00 [19:18:39]wFMCommunicate OK [19:18:39]SAM_PROTO_ClearQueue done [19:18:39]KKMCreateOFDPacket [19:18:39]OFDProtocolAddRootSTLVToBuf [19:18:39]FM_MakeSignedData [19:18:39]FM_MakeSignedData [19:18:39]SAM_PROTO_SignData [19:18:39]wFMCommunicate request_size=4 [19:18:39]MH_SAM_APDU [19:18:39]CAPDU: 80 0D 01 02 [19:18:39]Write to MH i2c: E2 08 00 EC 0A 80 0D 01 02 00 00 00 00 6F [19:18:39]Write i2c OK [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 [19:18:39]MH_I2C_Read... [19:18:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:39]Read from MH i2c: E2 03 00 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 03 00 EC 0A 00 90 00 6A [19:18:39]RAPDU: 90 00 [19:18:39]wFMCommunicate OK [19:18:39]wFMCommunicate request_size=255 [19:18:39]MH_SAM_APDU [19:18:39]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 7C 00 00 00 F4 03 04 00 8F AD 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 A7 C9 3A AB [19:18:39]Write to MH i2c: E2 02 01 ED 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B2 B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 7C 00 00 00 F4 03 04 00 8F AD 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 A7 C9 3A AB 00 00 FB [19:18:39]Write i2c OK [19:18:39]MH_I2C_Read... [19:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:39]Read from MH i2c: E2 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 03 00 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 03 00 ED 0A 00 90 00 6B [19:18:39]RAPDU: 90 00 [19:18:39]wFMCommunicate OK [19:18:39]wFMCommunicate request_size=7 [19:18:39]MH_SAM_APDU [19:18:39]CAPDU: 80 0D 02 02 02 FF AF [19:18:39]Write to MH i2c: E2 0A 00 EE 0A 80 0D 02 02 02 00 FF AF 00 00 24 [19:18:39]Write i2c OK [19:18:39]MH_I2C_Read... [19:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:39]Read from MH i2c: E2 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 03 00 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 03 00 EE 0A 00 90 00 6C [19:18:39]RAPDU: 90 00 [19:18:39]wFMCommunicate OK [19:18:39]wFMCommunicate request_size=4 [19:18:39]MH_SAM_APDU [19:18:39]CAPDU: 80 0D 03 02 [19:18:39]Write to MH i2c: E2 08 00 EF 0A 80 0D 03 02 00 00 00 00 74 [19:18:39]Write i2c OK [19:18:39]MH_I2C_Read... [19:18:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:39]Read from MH i2c: E2 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 0B 00 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 0B 00 EF 0A 00 6A 5C 7A 27 E5 F5 C5 C3 90 00 3E [19:18:39]RAPDU: 6A 5C 7A 27 E5 F5 C5 C3 90 00 [19:18:39]wFMCommunicate OK [19:18:39]SAM_PROTO_SignData done [19:18:39]FM_MakeSignedData done [19:18:39]CreateOFDProtocolMessage [19:18:39]wFMCommunicate request_size=4 [19:18:39]MH_SAM_APDU [19:18:39]CAPDU: 80 11 00 00 [19:18:39]Write to MH i2c: E2 08 00 F0 0A 80 11 00 00 00 00 00 00 74 [19:18:39]Write i2c OK [19:18:39]MH_I2C_Read... [19:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:39]Read from MH i2c: E2 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 17 00 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 17 00 F0 0A 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:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:18:39]wFMCommunicate OK [19:18:39]CreateOFDProtocolMessage done [19:18:39]OFDSenderStorePacket 67715 [19:18:39]StoreOFDPacket docnum=67715 [19:18: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 0C 01 00 00 16 5A 04 01 94 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7C 00 00 00 F4 03 04 00 8F AD 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 A7 C9 3A AB FF AF 6A 5C 7A 27 E5 F5 C5 C3 [19:18:39]CheckFolder [19:18:39]dirname=/storage/ofd_packets [19:18:39]CheckFolder done [19:18:39]ProducePacketName [19:18:39]name=ofd_packets/00067715 [19:18:39]NVStorageSaveData ofd_packets/00067715 [19:18:39]File name is /storage/ofd_packets/00067715 [19:18:39]Write 298 bytes [19:18:39]NVStorageSaveData done [19:18:39]OFDSenderStorePacket done [19:18:39]KKMCreateOFDPacket done [19:18:39]NVStorageSaveData kkm_last_timestamp [19:18:39]File name is /storage/kkm_last_timestamp [19:18:39]Write 4 bytes [19:18:39]NVStorageSaveData done [19:18:39]ExternCall_PrintAddStr [19:18:39]wPrintStart [19:18:39]Write to MH i2c: 01 00 00 F1 0A FB [19:18:39]Write i2c OK [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: 01 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: 01 07 00 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: 01 07 00 F1 0A 00 00 00 00 00 FF 0F 10 [19:18:39]RasterBufferAndPrint [19:18:39]line Счет N : (1)507867 [19:18:39]line ИНН: 02508201610067 [19:18:39]line Контрольно-Кассовый Чек [19:18:39]line ПРОДАЖА [19:18:39]line ТРК (МРК, ГНК) : 31 [19:18:39]line Товар: 2710194210 [19:18:39]line ДТ-К-5 [19:18:39]line 15.000 * 74.70 [19:18:39]line = 1120.50 [19:18:39]line НДС 12% НСП 1% [19:18:39]line > о реализуемом товаре [19:18:39]line ОКРУГЛЕНИЕ: -0.50 [19:18:39]line ИТОГО: 1120.00 [19:18:39]line Внесено: 1120.00 [19:18:39]line СДАЧА: 0.00 [19:18:39]line НСП 1% : 9.92 [19:18:39]line НДС 12% : 118.99 [19:18:39]line Наличными: 1120.00 [19:18:39]line Безнал.: 0.00 [19:18:40]line Место: АЗС № 91 "Партнер Нефть" [19:18:40]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:18:40]line СНО: Общий режим [19:18:40]line Чек 124 17.05.2024 19:18 [19:18:40]line Смена: 358 ФФД: 1.0 [19:18:40]line ЗНМ: 0300000119 [19:18:40]line РНМ: 0000000000091845 [19:18:40]line Версия ККМ: 001 [19:18:40]line ФМ: 0000000000871829 [19:18:40]line ФД: 67715 [19:18:40]line ФПД: 184482714615727 [19:18:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T191839&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67715&fm=184482714615727&tin=02508201610067®Number=0000000000091845&sum=112000 [19:18:40]OFD Sender: Processing packet 67715 [packets to send 35, broken 34] [19:18:40]ProducePacketName [19:18:40]name=ofd_packets/00067715 [19:18:40]OFD Sender: To server: pG, [19:18:40]CommunicateWithHost lk.salyk.kg:30040 [19:18:40]ConnectInit lk.salyk.kg [19:18:40]written 0, free lines is 4095 [19:18:40]Connected sock=10 [19:18: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 0C 01 00 00 16 5A 04 01 94 BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7C 00 00 00 F4 03 04 00 8F AD 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 A7 C9 3A AB FF AF 6A 5C 7A 27 E5 F5 C5 C3 [19:18: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 FA 51 47 00 6D A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 67 55 47 66 B6 04 01 00 00 5F 59 3D 6C 50 AB 5C E2 [19:18:40]CommunicateWithHost err = 0 [19:18:40]CheckOFDResponse [19:18:40]1017 (14) - 77093643461234 [19:18:40]1041 (16) - 0000000000871829 [19:18:40]1040 (4) - 67715 [19:18:40]1012 (4) - 17.05.2024 13:02 [19:18:40]1206 (1) - 0 [19:18:40]OFD Sender: Remove packet 67715 [19:18:40]ProducePacketName [19:18:40]name=ofd_packets/00067715 [19:18:40]NVStorageDeleteData [19:18:40]Write to MH i2c: 01 00 00 1B 0B 26 [19:18:40]Write i2c OK [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: 01 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: 01 07 00 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: 01 07 00 1B 0B 00 00 00 00 00 CF 0C 08 [19:18:40]RasterBufferAndPrint [19:18:40]line [19:18:40]line [19:18:40]line [19:18:40]line [19:18:40]line [19:18:40]written 0, free lines is 3285 [19:18:40]MH_Cut [19:18:40]Write to MH i2c: D1 01 00 22 0B 01 FF [19:18:40]Write i2c OK [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: D1 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: D1 01 00 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: D1 01 00 22 0B 00 FE [19:18:40]Write to MH i2c: 01 00 00 23 0B 2E [19:18:40]Write i2c OK [19:18:40]MH_I2C_Read... [19:18:40]OFD Sender: No OFD packet to send [19:18:41]*** Cut start [19:18:41]*** Purtial cut [19:18:41]*** CUTSNS_PIN = 0 [19:18:41]*** Stage 1: CUTSNS_PIN = 1 [19:18:43]Read from MH i2c: 01 [19:18:43]MH_I2C_Read... [19:18:43]*** Stop cut motor [19:18:43]*** Cut end [19:18:43]Read from MH i2c: 01 07 00 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: 01 07 00 23 0B 00 00 00 00 00 FF 0F 43 [19:18:43]process_action close_receipt done [19:18:43]requested_data is exist [19:18:43]produce_requested_data [19:18:43]requested_item fm.sn is exist - process it [19:18:43]wFMCommunicate request_size=4 [19:18:43]MH_SAM_APDU [19:18:43]CAPDU: 80 11 00 00 [19:18:43]Write to MH i2c: E2 08 00 24 0B 80 11 00 00 00 00 00 00 A9 [19:18:43]Write i2c OK [19:18:43]MH_I2C_Read... [19:18:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:43]Read from MH i2c: E2 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 17 00 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 17 00 24 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FF [19: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 [19:18:43]wFMCommunicate OK [19:18:43]requested_item fd.num is exist - process it [19:18:43]SAM_PROTO_GetFieldsCounters [19:18:43]wFMCommunicate request_size=4 [19:18:43]MH_SAM_APDU [19:18:43]CAPDU: 80 13 00 00 [19:18:43]Write to MH i2c: E2 08 00 25 0B 80 13 00 00 00 00 00 00 AC [19:18:43]Write i2c OK [19:18:43]MH_I2C_Read... [19:18:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:43]Read from MH i2c: E2 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 62 00 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 62 00 25 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 83 08 01 00 0E 04 04 00 66 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 39 [19:18: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 83 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:43]wFMCommunicate OK [19:18:43]SAM_PROTO_GetFieldsCounters done [19:18:43]requested_item shift.num is exist - process it [19:18:43]requested_item shift.opened is exist - process it [19:18:43]req_shift_opened [19:18:43]FM_GetShiftState [19:18:43]SAM_PROTO_GetShiftState [19:18:43]wFMCommunicate request_size=4 [19:18:43]MH_SAM_APDU [19:18:43]CAPDU: 80 13 01 00 [19:18:43]Write to MH i2c: E2 08 00 26 0B 80 13 01 00 00 00 00 00 AE [19:18:43]Write i2c OK [19:18:43]MH_I2C_Read... [19:18:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:43]Read from MH i2c: E2 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 0E 00 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 0E 00 26 0B 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 34 [19:18:43]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:18:43]wFMCommunicate OK [19:18:43]SAM_PROTO_GetShiftState done [19:18:43]FM_GetShiftState done [19:18:43]req_shift_opened done [19:18:43]requested_item shift.open_date is exist - process it [19:18:43]req_shift_open_date [19:18:43]req_shift_open_date done [19:18:43]produce_requested_data done [19:18:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67715,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [19:18:43]process_action_free close_receipt [19:18:43]json_value_free [19:18:43]json_value_free done [19:18:43]process_json_proto returns [19:18:43]Send response to host [19:18:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67715,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [19:18:43]free response buf [19:18:43]execute_script done [19:18:43]execute_script returns [19:18:43]free content buf [19:18:43]Sock 7.Close socket [19:18:43]Sock 7.Thread stoped [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:06]OFD Sender: No OFD packet to send [19:21:11]OFD Sender: No OFD packet to send [19:21:16]OFD Sender: No OFD packet to send [19:21:21]OFD Sender: No OFD packet to send [19:21:26]OFD Sender: No OFD packet to send [19:21:31]OFD Sender: No OFD packet to send [19:21:36]OFD Sender: No OFD packet to send [19:21:41]OFD Sender: No OFD packet to send [19:21:46]OFD Sender: No OFD packet to send [19:21:51]OFD Sender: No OFD packet to send [19:21:56]OFD Sender: No OFD packet to send [19:22:01]OFD Sender: No OFD packet to send [19:22:06]OFD Sender: No OFD packet to send [19:22:11]OFD Sender: No OFD packet to send [19:22:16]OFD Sender: No OFD packet to send [19:22:21]OFD Sender: No OFD packet to send [19:22:26]OFD Sender: No OFD packet to send [19:22:31]OFD Sender: No OFD packet to send [19:22:36]OFD Sender: No OFD packet to send [19:22:41]OFD Sender: No OFD packet to send [19:22:46]OFD Sender: No OFD packet to send [19:22:51]OFD Sender: No OFD packet to send [19:22:56]OFD Sender: No OFD packet to send [19:23:01]OFD Sender: No OFD packet to send [19:23:06]OFD Sender: No OFD packet to send [19:23:11]OFD Sender: No OFD packet to send [19:23:16]OFD Sender: No OFD packet to send [19:23:21]OFD Sender: No OFD packet to send [19:23:26]OFD Sender: No OFD packet to send [19:23:31]OFD Sender: No OFD packet to send [19:23:36]OFD Sender: No OFD packet to send [19:23:41]OFD Sender: No OFD packet to send [19:23:46]OFD Sender: No OFD packet to send [19:23:48]accept exits with 9 [19:23:48]New connection [19:23:48]New thread 3066752356 created [19:23:48]Thread 3066608996 joined [19:23:48]Waiting for new connection... [19:23:48] Sock 9.Parse request [19:23:48]Sock 9.Check first char [19:23:48]Sock 9.First char is OK [19:23:48]request: POST /json_proto HTTP/1.0 [19:23:48]Method: POST [19:23:48]URL: /json_proto [19:23:48]Method is POST - this is cgi request [19:23:48]url: /json_proto [19:23:48]query_string will be loaded in cgi processing [19:23:48]execute_cgi json_proto POST (null) [19:23:48]execute_cgi path=json_proto method=POST [19:23:48]POST find Content-Length [19:23:48]Host: 172.17.41.195:8080 [19:23:48]Content-Length: 674 [19:23:48]Content-Type: application/json [19:23:48] [19:23:48]POST finish read [19:23:48]Found Content-Length = 674 [19:23:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507868", "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" ] } } [19:23:48]execute_script... [19:23: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)507868", "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" ] } } [19:23:48]POST & json_proto [19:23:48]process_json_proto [19:23:48]json parsed OK: [19:23:48]protocol is kg_v1.0 [19:23:48]action value=close_receipt [19:23:48]process_action close_receipt [19:23:48]cmd_close_receipt [19:23:48]MH_GetDate [19:23:48]Write to MH i2c: F0 00 00 27 0B 21 [19:23:48]Write i2c OK [19:23:48]MH_I2C_Read... [19:23:48]Read from MH i2c: F0 [19:23:48]MH_I2C_Read... [19:23:48]Read from MH i2c: F0 09 00 [19:23:48]MH_I2C_Read... [19:23:48]Read from MH i2c: F0 09 00 27 0B 00 C5 AE 47 66 FC 21 6F 64 3A [19:23:48]GetLastDocTimeStamp 1715973519 [19:23:48]current date 1715973829 [19:23:48]FM_GetShiftState [19:23:48]SAM_PROTO_GetShiftState [19:23:48]wFMCommunicate request_size=4 [19:23:48]MH_SAM_APDU [19:23:48]CAPDU: 80 13 01 00 [19:23:48]Write to MH i2c: E2 08 00 28 0B 80 13 01 00 00 00 00 00 B0 [19:23:48]Write i2c OK [19:23:48]MH_I2C_Read... [19:23:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:48]Read from MH i2c: E2 [19:23:48]MH_I2C_Read... [19:23:48]Read from MH i2c: E2 0E 00 [19:23:48]MH_I2C_Read... [19:23:48]Read from MH i2c: E2 0E 00 28 0B 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 36 [19:23:48]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:23:48]wFMCommunicate OK [19:23:48]SAM_PROTO_GetShiftState done [19:23:48]FM_GetShiftState done [19:23:48]opened in 1715905068 [19:23:48]opened+sec_in_day 1715991468 [19:23:48]quantity*price = 40039 [19:23:48]sum+1 = 40040 [19:23:48]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 СНО: Общий режим Чек 125 17.05.2024 19:23 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67716 ФПД: 147029701975159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T192349&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67716&fm=147029701975159&tin=02508201610067®Number=0000000000091845&sum=40000 [19:23:49]StoreToDocumentArchive [19:23:49]shift 358 fd 67716 [19:23:49]save to /storage/0358/doc_00067716 [19:23:49]save last doc name /storage/0358/doc_00067716 to /storage/kkm_last_doc_name [19:23:49]save OK [19:23:49]Clear old archive folders... [19:23:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:23:49]tlvbuf is 01B2D220 [19:23:49]SAM_PROTO_ClearQueue [19:23:49]wFMCommunicate request_size=4 [19:23:49]MH_SAM_APDU [19:23:49]CAPDU: 80 09 00 00 [19:23:49]Write to MH i2c: E2 08 00 35 0B 80 09 00 00 00 00 00 00 B2 [19:23:49]Write i2c OK [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: E2 [19:23:49]MH_I2C_Read... [19:23:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:49]Read from MH i2c: E2 03 00 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: E2 03 00 35 0B 00 90 00 B4 [19:23:49]RAPDU: 90 00 [19:23:49]wFMCommunicate OK [19:23:49]SAM_PROTO_ClearQueue done [19:23:49]KKMCreateOFDPacket [19:23:49]OFDProtocolAddRootSTLVToBuf [19:23:49]FM_MakeSignedData [19:23:49]FM_MakeSignedData [19:23:49]SAM_PROTO_SignData [19:23:49]wFMCommunicate request_size=4 [19:23:49]MH_SAM_APDU [19:23:49]CAPDU: 80 0D 01 02 [19:23:49]Write to MH i2c: E2 08 00 36 0B 80 0D 01 02 00 00 00 00 BA [19:23:49]Write i2c OK [19:23:49]MH_I2C_Read... [19:23:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:49]Read from MH i2c: E2 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: E2 03 00 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: E2 03 00 36 0B 00 90 00 B5 [19:23:49]RAPDU: 90 00 [19:23:49]wFMCommunicate OK [19:23:49]wFMCommunicate request_size=255 [19:23:49]MH_SAM_APDU [19:23: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 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 7D 00 00 00 F4 03 04 00 C5 AE 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 85 B9 05 28 [19:23:49]Write to MH i2c: E2 02 01 37 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 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 7D 00 00 00 F4 03 04 00 C5 AE 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 85 B9 05 28 00 00 31 [19:23:49]Write i2c OK [19:23:49]MH_I2C_Read... [19:23:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:49]Read from MH i2c: E2 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: E2 03 00 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: E2 03 00 37 0B 00 90 00 B6 [19:23:49]RAPDU: 90 00 [19:23:49]wFMCommunicate OK [19:23:49]wFMCommunicate request_size=7 [19:23:49]MH_SAM_APDU [19:23:49]CAPDU: 80 0D 02 02 02 5C 77 [19:23:49]Write to MH i2c: E2 0A 00 38 0B 80 0D 02 02 02 00 5C 77 00 00 94 [19:23:49]Write i2c OK [19:23:49]MH_I2C_Read... [19:23:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:49]Read from MH i2c: E2 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: E2 03 00 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: E2 03 00 38 0B 00 90 00 B7 [19:23:49]RAPDU: 90 00 [19:23:49]wFMCommunicate OK [19:23:49]wFMCommunicate request_size=4 [19:23:49]MH_SAM_APDU [19:23:49]CAPDU: 80 0D 03 02 [19:23:49]Write to MH i2c: E2 08 00 39 0B 80 0D 03 02 00 00 00 00 BF [19:23:49]Write i2c OK [19:23:49]MH_I2C_Read... [19:23:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:49]Read from MH i2c: E2 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: E2 0B 00 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: E2 0B 00 39 0B 00 DB EF 45 98 B0 EA 54 47 90 00 9C [19:23:49]RAPDU: DB EF 45 98 B0 EA 54 47 90 00 [19:23:49]wFMCommunicate OK [19:23:49]SAM_PROTO_SignData done [19:23:49]FM_MakeSignedData done [19:23:49]CreateOFDProtocolMessage [19:23:49]wFMCommunicate request_size=4 [19:23:49]MH_SAM_APDU [19:23:49]CAPDU: 80 11 00 00 [19:23:49]Write to MH i2c: E2 08 00 3A 0B 80 11 00 00 00 00 00 00 BF [19:23:49]Write i2c OK [19:23:49]MH_I2C_Read... [19:23:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:49]Read from MH i2c: E2 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: E2 17 00 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: E2 17 00 3A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 15 [19:23:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:23:49]wFMCommunicate OK [19:23:49]CreateOFDProtocolMessage done [19:23:49]OFDSenderStorePacket 67716 [19:23:49]StoreOFDPacket docnum=67716 [19:23: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 84 29 04 01 55 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 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 7D 00 00 00 F4 03 04 00 C5 AE 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 85 B9 05 28 5C 77 DB EF 45 98 B0 EA 54 47 [19:23:49]CheckFolder [19:23:49]dirname=/storage/ofd_packets [19:23:49]CheckFolder done [19:23:49]ProducePacketName [19:23:49]name=ofd_packets/00067716 [19:23:49]NVStorageSaveData ofd_packets/00067716 [19:23:49]File name is /storage/ofd_packets/00067716 [19:23:49]Write 298 bytes [19:23:49]NVStorageSaveData done [19:23:49]OFDSenderStorePacket done [19:23:49]KKMCreateOFDPacket done [19:23:49]NVStorageSaveData kkm_last_timestamp [19:23:49]File name is /storage/kkm_last_timestamp [19:23:49]Write 4 bytes [19:23:49]NVStorageSaveData done [19:23:49]ExternCall_PrintAddStr [19:23:49]wPrintStart [19:23:49]Write to MH i2c: 01 00 00 3B 0B 46 [19:23:49]Write i2c OK [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: 01 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: 01 07 00 [19:23:49]MH_I2C_Read... [19:23:49]Read from MH i2c: 01 07 00 3B 0B 00 00 00 00 00 FF 0F 5B [19:23:49]RasterBufferAndPrint [19:23:49]line Счет N : (1)507868 [19:23:49]line ИНН: 02508201610067 [19:23:49]line Контрольно-Кассовый Чек [19:23:49]line ПРОДАЖА [19:23:49]line ТРК (МРК, ГНК) : 31 [19:23:49]line Товар: 2710194210 [19:23:49]line ДТ-К-5 [19:23:49]line 5.360 * 74.70 [19:23:49]line = 400.39 [19:23:49]line НДС 12% НСП 1% [19:23:49]line > о реализуемом товаре [19:23:49]line ОКРУГЛЕНИЕ: -0.39 [19:23:49]line ИТОГО: 400.00 [19:23:49]line Внесено: 400.00 [19:23:49]line СДАЧА: 0.00 [19:23:49]line НСП 1% : 3.54 [19:23:49]line НДС 12% : 42.52 [19:23:49]line Наличными: 400.00 [19:23:49]line Безнал.: 0.00 [19:23:49]line Место: АЗС № 91 "Партнер Нефть" [19:23:49]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:23:49]line СНО: Общий режим [19:23:49]line Чек 125 17.05.2024 19:23 [19:23:49]line Смена: 358 ФФД: 1.0 [19:23:49]line ЗНМ: 0300000119 [19:23:49]line РНМ: 0000000000091845 [19:23:49]line Версия ККМ: 001 [19:23:49]line ФМ: 0000000000871829 [19:23:49]line ФД: 67716 [19:23:49]line ФПД: 147029701975159 [19:23:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T192349&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67716&fm=147029701975159&tin=02508201610067®Number=0000000000091845&sum=40000 [19:23:50]OFD Sender: Processing packet 67716 [packets to send 35, broken 34] [19:23:50]ProducePacketName [19:23:50]name=ofd_packets/00067716 [19:23:50]OFD Sender: To server: pG, [19:23:50]CommunicateWithHost lk.salyk.kg:30040 [19:23:50]ConnectInit lk.salyk.kg [19:23:50]written 0, free lines is 4095 [19:23:50]Write to MH i2c: 01 00 00 65 0B 70 [19:23:50]Write i2c OK [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: 01 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: 01 07 00 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: 01 07 00 65 0B 00 00 00 00 00 CE 0C 51 [19:23:50]RasterBufferAndPrint [19:23:50]line [19:23:50]line [19:23:50]line [19:23:50]line [19:23:50]line [19:23:50]written 0, free lines is 3284 [19:23:50]MH_Cut [19:23:50]Write to MH i2c: D1 01 00 6C 0B 01 49 [19:23:50]Write i2c OK [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: D1 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: D1 01 00 [19:23:50]MH_I2C_Read... [19:23:50]Read from MH i2c: D1 01 00 6C 0B 00 48 [19:23:50]Write to MH i2c: 01 00 00 6D 0B 78 [19:23:50]Write i2c OK [19:23:50]MH_I2C_Read... [19:23:51]*** Cut start [19:23:51]*** Purtial cut [19:23:51]*** Stage 1: CUTSNS_PIN = 1 [19:23:51]Read from MH i2c: 01 [19:23:51]MH_I2C_Read... [19:23:51]*** Stop cut motor [19:23:51]*** Cut end [19:23:51]Read from MH i2c: 01 07 00 [19:23:51]MH_I2C_Read... [19:23:51]Read from MH i2c: 01 07 00 6D 0B 00 00 00 00 00 FF 0F 8D [19:23:51]process_action close_receipt done [19:23:51]requested_data is exist [19:23:51]produce_requested_data [19:23:51]requested_item fm.sn is exist - process it [19:23:51]wFMCommunicate request_size=4 [19:23:51]MH_SAM_APDU [19:23:51]CAPDU: 80 11 00 00 [19:23:51]Write to MH i2c: E2 08 00 6E 0B 80 11 00 00 00 00 00 00 F3 [19:23:51]Write i2c OK [19:23:51]MH_I2C_Read... [19:23:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:51]Read from MH i2c: E2 [19:23:51]MH_I2C_Read... [19:23:51]Read from MH i2c: E2 17 00 [19:23:51]MH_I2C_Read... [19:23:51]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 [19:23: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:23:51]wFMCommunicate OK [19:23:51]requested_item fd.num is exist - process it [19:23:51]SAM_PROTO_GetFieldsCounters [19:23:51]wFMCommunicate request_size=4 [19:23:51]MH_SAM_APDU [19:23:51]CAPDU: 80 13 00 00 [19:23:51]Write to MH i2c: E2 08 00 6F 0B 80 13 00 00 00 00 00 00 F6 [19:23:51]Write i2c OK [19:23:51]MH_I2C_Read... [19:23:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:51]Read from MH i2c: E2 [19:23:51]MH_I2C_Read... [19:23:51]Read from MH i2c: E2 62 00 [19:23:51]MH_I2C_Read... [19:23:51]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 84 08 01 00 0E 04 04 00 66 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 87 [19:23: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 84 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:23:51]wFMCommunicate OK [19:23:51]SAM_PROTO_GetFieldsCounters done [19:23:51]requested_item shift.num is exist - process it [19:23:51]requested_item shift.opened is exist - process it [19:23:51]req_shift_opened [19:23:51]FM_GetShiftState [19:23:51]SAM_PROTO_GetShiftState [19:23:51]wFMCommunicate request_size=4 [19:23:51]MH_SAM_APDU [19:23:51]CAPDU: 80 13 01 00 [19:23:51]Write to MH i2c: E2 08 00 70 0B 80 13 01 00 00 00 00 00 F8 [19:23:51]Write i2c OK [19:23:51]MH_I2C_Read... [19:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:51]Read from MH i2c: E2 [19:23:51]MH_I2C_Read... [19:23:51]Read from MH i2c: E2 0E 00 [19:23:51]MH_I2C_Read... [19:23:51]Read from MH i2c: E2 0E 00 70 0B 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 7E [19:23:51]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:23:51]wFMCommunicate OK [19:23:51]SAM_PROTO_GetShiftState done [19:23:51]FM_GetShiftState done [19:23:51]req_shift_opened done [19:23:51]requested_item shift.open_date is exist - process it [19:23:51]req_shift_open_date [19:23:51]req_shift_open_date done [19:23:51]produce_requested_data done [19:23:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67716,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [19:23:51]process_action_free close_receipt [19:23:51]json_value_free [19:23:51]json_value_free done [19:23:51]process_json_proto returns [19:23:51]Send response to host [19:23:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67716,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [19:23:51]free response buf [19:23:51]execute_script done [19:23:51]execute_script returns [19:23:51]free content buf [19:23:51]Sock 9.Close socket [19:23:51]Sock 9.Thread stoped [19:26:01]ConnectInit Can't connect to host [19:26:01]CommunicateWithHost connect error [19:26:01]CommunicateWithHost err = -1 [19:26:01]OFD Sender: Server communicate error [19:26:06]OFD Sender: Processing packet 67716 [packets to send 35, broken 34] [19:26:06]ProducePacketName [19:26:06]name=ofd_packets/00067716 [19:26:06]OFD Sender: To server: pG, [19:26:06]CommunicateWithHost lk.salyk.kg:30040 [19:26:06]ConnectInit lk.salyk.kg [19:26:06]Connected sock=9 [19:26:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 84 29 04 01 55 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 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 7D 00 00 00 F4 03 04 00 C5 AE 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 85 B9 05 28 5C 77 DB EF 45 98 B0 EA 54 47 [19:26: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 A2 47 47 00 39 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 84 08 01 00 F4 03 04 00 25 57 47 66 B6 04 01 00 00 81 89 85 36 46 0B D2 45 [19:26:06]CommunicateWithHost err = 0 [19:26:06]CheckOFDResponse [19:26:06]1017 (14) - 77093643461234 [19:26:06]1041 (16) - 0000000000871829 [19:26:06]1040 (4) - 67716 [19:26:06]1012 (4) - 17.05.2024 13:09 [19:26:06]1206 (1) - 0 [19:26:06]OFD Sender: Remove packet 67716 [19:26:06]ProducePacketName [19:26:06]name=ofd_packets/00067716 [19:26:06]NVStorageDeleteData [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:52]OFD Sender: No OFD packet to send [19:28:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:12]OFD Sender: No OFD packet to send [19:31:17]OFD Sender: No OFD packet to send [19:31:22]OFD Sender: No OFD packet to send [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:37]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [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:34:02]OFD Sender: No OFD packet to send [19:34:07]OFD Sender: No OFD packet to send [19:34:12]OFD Sender: No OFD packet to send [19:34:17]OFD Sender: No OFD packet to send [19:34:22]OFD Sender: No OFD packet to send [19:34:27]OFD Sender: No OFD packet to send [19:34:32]OFD Sender: No OFD packet to send [19:34:37]OFD Sender: No OFD packet to send [19:34:42]OFD Sender: No OFD packet to send [19:34:47]OFD Sender: No OFD packet to send [19:34:52]OFD Sender: No OFD packet to send [19:34:57]OFD Sender: No OFD packet to send [19:35:02]OFD Sender: No OFD packet to send [19:35:07]OFD Sender: No OFD packet to send [19:35:12]OFD Sender: No OFD packet to send [19:35:17]OFD Sender: No OFD packet to send [19:35:22]OFD Sender: No OFD packet to send [19:35:27]OFD Sender: No OFD packet to send [19:35:32]OFD Sender: No OFD packet to send [19:35:37]OFD Sender: No OFD packet to send [19:35:42]OFD Sender: No OFD packet to send [19:35:47]OFD Sender: No OFD packet to send [19:35:52]OFD Sender: No OFD packet to send [19:35:57]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:28]OFD Sender: No OFD packet to send [19:39:33]OFD Sender: No OFD packet to send [19:39:38]OFD Sender: No OFD packet to send [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:58]OFD Sender: No OFD packet to send [19:40:03]OFD Sender: No OFD packet to send [19:40:08]OFD Sender: No OFD packet to send [19:40:13]OFD Sender: No OFD packet to send [19:40:18]OFD Sender: No OFD packet to send [19:40:23]OFD Sender: No OFD packet to send [19:40:28]OFD Sender: No OFD packet to send [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:43]OFD Sender: No OFD packet to send [19:40:48]OFD Sender: No OFD packet to send [19:40:53]OFD Sender: No OFD packet to send [19:40:58]OFD Sender: No OFD packet to send [19:41:03]OFD Sender: No OFD packet to send [19:41:08]OFD Sender: No OFD packet to send [19:41:13]OFD Sender: No OFD packet to send [19:41:18]OFD Sender: No OFD packet to send [19:41:23]OFD Sender: No OFD packet to send [19:41:28]OFD Sender: No OFD packet to send [19:41:30]accept exits with 7 [19:41:30]New connection [19:41:30]New thread 3066608996 created [19:41:30]Thread 3066752356 joined [19:41:30]Waiting for new connection... [19:41:30] Sock 7.Parse request [19:41:30]Sock 7.Check first char [19:41:30]Sock 7.First char is OK [19:41:30]request: POST /json_proto HTTP/1.0 [19:41:30]Method: POST [19:41:30]URL: /json_proto [19:41:30]Method is POST - this is cgi request [19:41:30]url: /json_proto [19:41:30]query_string will be loaded in cgi processing [19:41:30]execute_cgi json_proto POST (null) [19:41:30]execute_cgi path=json_proto method=POST [19:41:30]POST find Content-Length [19:41:30]Host: 172.17.41.195:8080 [19:41:30]Content-Length: 803 [19:41:30]Content-Type: application/json [19:41:30] [19:41:30]POST finish read [19:41:30]Found Content-Length = 803 [19:41:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:30]execute_script... [19:41: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)507869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:30]POST & json_proto [19:41:30]process_json_proto [19:41:30]json parsed OK: [19:41:30]protocol is kg_v1.0 [19:41:30]action value=close_receipt [19:41:30]process_action close_receipt [19:41:30]cmd_close_receipt [19:41:30]MH_GetDate [19:41:30]Write to MH i2c: F0 00 00 71 0B 6B [19:41:30]Write i2c OK [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: F0 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: F0 09 00 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: F0 09 00 71 0B 00 EB B2 47 66 FC 21 6F 64 AE [19:41:30]GetLastDocTimeStamp 1715973829 [19:41:30]current date 1715974891 [19:41:30]FM_GetShiftState [19:41:30]SAM_PROTO_GetShiftState [19:41:30]wFMCommunicate request_size=4 [19:41:30]MH_SAM_APDU [19:41:30]CAPDU: 80 13 01 00 [19:41:30]Write to MH i2c: E2 08 00 72 0B 80 13 01 00 00 00 00 00 FA [19:41:30]Write i2c OK [19:41:30]MH_I2C_Read... [19:41:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:30]Read from MH i2c: E2 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: E2 0E 00 [19:41:30]MH_I2C_Read... [19:41:30]Read from MH i2c: E2 0E 00 72 0B 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 80 [19:41:30]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:41:30]wFMCommunicate OK [19:41:30]SAM_PROTO_GetShiftState done [19:41:30]FM_GetShiftState done [19:41:30]opened in 1715905068 [19:41:30]opened+sec_in_day 1715991468 [19:41:30]quantity*price = 100066 [19:41:30]sum+1 = 100067 [19:41:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 126 17.05.2024 19:41 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67717 ФПД: 222301577134546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T194131&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67717&fm=222301577134546&tin=02508201610067®Number=0000000000091845&sum=100066 [19:41:31]StoreToDocumentArchive [19:41:31]shift 358 fd 67717 [19:41:31]save to /storage/0358/doc_00067717 [19:41:31]save last doc name /storage/0358/doc_00067717 to /storage/kkm_last_doc_name [19:41:31]save OK [19:41:31]Clear old archive folders... [19:41:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:41:31]tlvbuf is 01ACA9F0 [19:41:31]SAM_PROTO_ClearQueue [19:41:31]wFMCommunicate request_size=4 [19:41:31]MH_SAM_APDU [19:41:31]CAPDU: 80 09 00 00 [19:41:31]Write to MH i2c: E2 08 00 7F 0B 80 09 00 00 00 00 00 00 FC [19:41:31]Write i2c OK [19:41:31]MH_I2C_Read... [19:41:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:31]Read from MH i2c: E2 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: E2 03 00 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: E2 03 00 7F 0B 00 90 00 FE [19:41:31]RAPDU: 90 00 [19:41:31]wFMCommunicate OK [19:41:31]SAM_PROTO_ClearQueue done [19:41:31]KKMCreateOFDPacket [19:41:31]OFDProtocolAddRootSTLVToBuf [19:41:31]FM_MakeSignedData [19:41:31]FM_MakeSignedData [19:41:31]SAM_PROTO_SignData [19:41:31]wFMCommunicate request_size=4 [19:41:31]MH_SAM_APDU [19:41:31]CAPDU: 80 0D 01 02 [19:41:31]Write to MH i2c: E2 08 00 80 0B 80 0D 01 02 00 00 00 00 04 [19:41:31]Write i2c OK [19:41:31]MH_I2C_Read... [19:41:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:31]Read from MH i2c: E2 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: E2 03 00 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: E2 03 00 80 0B 00 90 00 FF [19:41:31]RAPDU: 90 00 [19:41:31]wFMCommunicate OK [19:41:31]wFMCommunicate request_size=255 [19:41:31]MH_SAM_APDU [19:41:31]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 7E 00 00 00 F4 03 04 00 EB B2 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CA [19:41:31]Write to MH i2c: E2 02 01 81 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 7E 00 00 00 F4 03 04 00 EB B2 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CA 00 00 E8 [19:41:31]Write i2c OK [19:41:31]MH_I2C_Read... [19:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:31]Read from MH i2c: E2 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: E2 03 00 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: E2 03 00 81 0B 00 90 00 00 [19:41:31]RAPDU: 90 00 [19:41:31]wFMCommunicate OK [19:41:31]wFMCommunicate request_size=10 [19:41:31]MH_SAM_APDU [19:41:31]CAPDU: 80 0D 02 02 05 2E 9E 89 C1 D2 [19:41:31]Write to MH i2c: E2 0D 00 82 0B 80 0D 02 02 05 00 2E 9E 89 C1 D2 00 00 F9 [19:41:31]Write i2c OK [19:41:31]MH_I2C_Read... [19:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:31]Read from MH i2c: E2 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: E2 03 00 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: E2 03 00 82 0B 00 90 00 01 [19:41:31]RAPDU: 90 00 [19:41:31]wFMCommunicate OK [19:41:31]wFMCommunicate request_size=4 [19:41:31]MH_SAM_APDU [19:41:31]CAPDU: 80 0D 03 02 [19:41:31]Write to MH i2c: E2 08 00 83 0B 80 0D 03 02 00 00 00 00 09 [19:41:31]Write i2c OK [19:41:31]MH_I2C_Read... [19:41:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:31]Read from MH i2c: E2 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: E2 0B 00 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: E2 0B 00 83 0B 00 D4 28 8A 03 F2 4B 19 BA 90 00 A3 [19:41:31]RAPDU: D4 28 8A 03 F2 4B 19 BA 90 00 [19:41:31]wFMCommunicate OK [19:41:31]SAM_PROTO_SignData done [19:41:31]FM_MakeSignedData done [19:41:31]CreateOFDProtocolMessage [19:41:31]wFMCommunicate request_size=4 [19:41:31]MH_SAM_APDU [19:41:31]CAPDU: 80 11 00 00 [19:41:31]Write to MH i2c: E2 08 00 84 0B 80 11 00 00 00 00 00 00 09 [19:41:31]Write i2c OK [19:41:31]MH_I2C_Read... [19:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:31]Read from MH i2c: E2 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: E2 17 00 [19:41:31]MH_I2C_Read... [19:41:31]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 [19:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:41:31]wFMCommunicate OK [19:41:31]CreateOFDProtocolMessage done [19:41:31]OFDSenderStorePacket 67717 [19:41:31]StoreOFDPacket docnum=67717 [19:41: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 DA 90 07 01 74 90 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 7E 00 00 00 F4 03 04 00 EB B2 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CA 2E 9E 89 C1 D2 D4 28 8A 03 F2 4B 19 BA [19:41:31]CheckFolder [19:41:31]dirname=/storage/ofd_packets [19:41:31]CheckFolder done [19:41:31]ProducePacketName [19:41:31]name=ofd_packets/00067717 [19:41:31]NVStorageSaveData ofd_packets/00067717 [19:41:31]File name is /storage/ofd_packets/00067717 [19:41:31]Write 301 bytes [19:41:31]NVStorageSaveData done [19:41:31]OFDSenderStorePacket done [19:41:31]KKMCreateOFDPacket done [19:41:31]NVStorageSaveData kkm_last_timestamp [19:41:31]File name is /storage/kkm_last_timestamp [19:41:31]Write 4 bytes [19:41:31]NVStorageSaveData done [19:41:31]ExternCall_PrintAddStr [19:41:31]wPrintStart [19:41:31]Write to MH i2c: 01 00 00 85 0B 90 [19:41:31]Write i2c OK [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: 01 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: 01 07 00 [19:41:31]MH_I2C_Read... [19:41:31]Read from MH i2c: 01 07 00 85 0B 00 00 00 00 00 FF 0F A5 [19:41:31]RasterBufferAndPrint [19:41:31]line Счет N : (1)507869 [19:41:31]line ИНН: 02508201610067 [19:41:31]line Контрольно-Кассовый Чек [19:41:31]line ПРОДАЖА [19:41:31]line ТРК (МРК, ГНК) : 23 [19:41:31]line Товар: 2710124130 [19:41:31]line Аи-92-К-5 [19:41:31]line 14.980 * 66.80 [19:41:31]line = 1000.66 [19:41:31]line НДС 12% НСП 1% [19:41:31]line > о реализуемом товаре [19:41:31]line ИТОГО: 1000.66 [19:41:31]line НСП 1% : 8.85 [19:41:31]line НДС 12% : 106.26 [19:41:31]line Наличными: 0.00 [19:41:31]line Безнал.: 1000.66 [19:41:31]line Место: АЗС № 91 "Партнер Нефть" [19:41:31]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:41:31]line СНО: Общий режим [19:41:31]line Чек 126 17.05.2024 19:41 [19:41:31]line Смена: 358 ФФД: 1.0 [19:41:31]line ЗНМ: 0300000119 [19:41:31]line РНМ: 0000000000091845 [19:41:31]line Версия ККМ: 001 [19:41:31]line Платежная система: O! деньги [19:41:31]line ФМ: 0000000000871829 [19:41:31]line ФД: 67717 [19:41:31]line ФПД: 222301577134546 [19:41:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T194131&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67717&fm=222301577134546&tin=02508201610067®Number=0000000000091845&sum=100066 [19:41:31]written 0, free lines is 4095 [19:41:32]OFD Sender: Processing packet 67717 [packets to send 35, broken 34] [19:41:32]ProducePacketName [19:41:32]name=ofd_packets/00067717 [19:41:32]OFD Sender: To server: pG, [19:41:32]CommunicateWithHost lk.salyk.kg:30040 [19:41:32]ConnectInit lk.salyk.kg [19:41:32]Connected sock=10 [19:41: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 DA 90 07 01 74 90 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 7E 00 00 00 F4 03 04 00 EB B2 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CA 2E 9E 89 C1 D2 D4 28 8A 03 F2 4B 19 BA [19:41: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 E1 45 47 00 2E 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 C3 5A 47 66 B6 04 01 00 00 22 D1 09 B7 2B F1 DD 2C [19:41:32]CommunicateWithHost err = 0 [19:41:32]CheckOFDResponse [19:41:32]1017 (14) - 77093643461234 [19:41:32]1041 (16) - 0000000000871829 [19:41:32]1040 (4) - 67717 [19:41:32]1012 (4) - 17.05.2024 13:25 [19:41:32]1206 (1) - 0 [19:41:32]OFD Sender: Remove packet 67717 [19:41:32]ProducePacketName [19:41:32]name=ofd_packets/00067717 [19:41:32]NVStorageDeleteData [19:41:32]Write to MH i2c: 01 00 00 AE 0B B9 [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: 01 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: 01 07 00 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: 01 07 00 AE 0B 00 00 00 00 00 ED 0C B9 [19:41:32]RasterBufferAndPrint [19:41:32]line [19:41:32]line [19:41:32]line [19:41:32]line [19:41:32]line [19:41:32]written 0, free lines is 3315 [19:41:32]MH_Cut [19:41:32]Write to MH i2c: D1 01 00 B5 0B 01 92 [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: D1 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: D1 01 00 [19:41:32]MH_I2C_Read... [19:41:32]Read from MH i2c: D1 01 00 B5 0B 00 91 [19:41:32]Write to MH i2c: 01 00 00 B6 0B C1 [19:41:32]Write i2c OK [19:41:32]MH_I2C_Read... [19:41:32]OFD Sender: No OFD packet to send [19:41:33]*** Cut start [19:41:33]*** Purtial cut [19:41:33]*** CUTSNS_PIN = 0 [19:41:33]*** Stage 1: CUTSNS_PIN = 1 [19:41:35]Read from MH i2c: 01 [19:41:35]MH_I2C_Read... [19:41:35]*** Stop cut motor [19:41:35]*** Cut end [19:41:35]Read from MH i2c: 01 07 00 [19:41:35]MH_I2C_Read... [19:41:35]Read from MH i2c: 01 07 00 B6 0B 00 00 00 00 00 FF 0F D6 [19:41:35]process_action close_receipt done [19:41:35]requested_data is exist [19:41:35]produce_requested_data [19:41:35]requested_item fm.sn is exist - process it [19:41:35]wFMCommunicate request_size=4 [19:41:35]MH_SAM_APDU [19:41:35]CAPDU: 80 11 00 00 [19:41:35]Write to MH i2c: E2 08 00 B7 0B 80 11 00 00 00 00 00 00 3C [19:41:35]Write i2c OK [19:41:35]MH_I2C_Read... [19:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:35]Read from MH i2c: E2 [19:41:35]MH_I2C_Read... [19:41:35]Read from MH i2c: E2 17 00 [19:41:35]MH_I2C_Read... [19:41:35]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 [19:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:41:35]wFMCommunicate OK [19:41:35]requested_item fd.num is exist - process it [19:41:35]SAM_PROTO_GetFieldsCounters [19:41:35]wFMCommunicate request_size=4 [19:41:35]MH_SAM_APDU [19:41:35]CAPDU: 80 13 00 00 [19:41:35]Write to MH i2c: E2 08 00 B8 0B 80 13 00 00 00 00 00 00 3F [19:41:35]Write i2c OK [19:41:35]MH_I2C_Read... [19:41:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:35]Read from MH i2c: E2 [19:41:35]MH_I2C_Read... [19:41:35]Read from MH i2c: E2 62 00 [19:41:35]MH_I2C_Read... [19:41:35]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 85 08 01 00 0E 04 04 00 66 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 D4 [19:41:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 85 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:35]wFMCommunicate OK [19:41:35]SAM_PROTO_GetFieldsCounters done [19:41:35]requested_item shift.num is exist - process it [19:41:35]requested_item shift.opened is exist - process it [19:41:35]req_shift_opened [19:41:35]FM_GetShiftState [19:41:35]SAM_PROTO_GetShiftState [19:41:35]wFMCommunicate request_size=4 [19:41:35]MH_SAM_APDU [19:41:35]CAPDU: 80 13 01 00 [19:41:35]Write to MH i2c: E2 08 00 B9 0B 80 13 01 00 00 00 00 00 41 [19:41:35]Write i2c OK [19:41:35]MH_I2C_Read... [19:41:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:35]Read from MH i2c: E2 [19:41:35]MH_I2C_Read... [19:41:35]Read from MH i2c: E2 0E 00 [19:41:35]MH_I2C_Read... [19:41:35]Read from MH i2c: E2 0E 00 B9 0B 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 C7 [19:41:35]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:41:35]wFMCommunicate OK [19:41:35]SAM_PROTO_GetShiftState done [19:41:35]FM_GetShiftState done [19:41:35]req_shift_opened done [19:41:35]requested_item shift.open_date is exist - process it [19:41:35]req_shift_open_date [19:41:35]req_shift_open_date done [19:41:35]produce_requested_data done [19:41:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67717,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [19:41:35]process_action_free close_receipt [19:41:35]json_value_free [19:41:35]json_value_free done [19:41:35]process_json_proto returns [19:41:35]Send response to host [19:41:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67717,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [19:41:35]free response buf [19:41:35]execute_script done [19:41:35]execute_script returns [19:41:35]free content buf [19:41:35]Sock 7.Close socket [19:41:35]Sock 7.Thread stoped [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:36]accept exits with 9 [19:50:36]New connection [19:50:36]New thread 3066752356 created [19:50:36]Thread 3066608996 joined [19:50:36]Waiting for new connection... [19:50:36] Sock 9.Parse request [19:50:36]Sock 9.Check first char [19:50:36]Sock 9.First char is OK [19:50:36]request: POST /json_proto HTTP/1.0 [19:50:36]Method: POST [19:50:36]URL: /json_proto [19:50:36]Method is POST - this is cgi request [19:50:36]url: /json_proto [19:50:36]query_string will be loaded in cgi processing [19:50:36]execute_cgi json_proto POST (null) [19:50:36]execute_cgi path=json_proto method=POST [19:50:36]POST find Content-Length [19:50:36]Host: 172.17.41.195:8080 [19:50:36]Content-Length: 796 [19:50:36]Content-Type: application/json [19:50:36] [19:50:36]POST finish read [19:50:36]Found Content-Length = 796 [19:50:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507870", "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" : 32.450, "sum" : 2200.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2200.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:36]execute_script... [19:50: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)507870", "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" : 32.450, "sum" : 2200.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2200.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:36]POST & json_proto [19:50:36]process_json_proto [19:50:36]json parsed OK: [19:50:36]protocol is kg_v1.0 [19:50:36]action value=close_receipt [19:50:36]process_action close_receipt [19:50:36]cmd_close_receipt [19:50:36]MH_GetDate [19:50:36]Write to MH i2c: F0 00 00 BA 0B B4 [19:50:36]Write i2c OK [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: F0 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: F0 09 00 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: F0 09 00 BA 0B 00 0E B5 47 66 FC 21 6F 64 1D [19:50:36]GetLastDocTimeStamp 1715974891 [19:50:36]current date 1715975438 [19:50:36]FM_GetShiftState [19:50:36]SAM_PROTO_GetShiftState [19:50:36]wFMCommunicate request_size=4 [19:50:36]MH_SAM_APDU [19:50:36]CAPDU: 80 13 01 00 [19:50:36]Write to MH i2c: E2 08 00 BB 0B 80 13 01 00 00 00 00 00 43 [19:50:36]Write i2c OK [19:50:36]MH_I2C_Read... [19:50:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:36]Read from MH i2c: E2 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: E2 0E 00 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: E2 0E 00 BB 0B 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 C9 [19:50:36]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:50:36]wFMCommunicate OK [19:50:36]SAM_PROTO_GetShiftState done [19:50:36]FM_GetShiftState done [19:50:36]opened in 1715905068 [19:50:36]opened+sec_in_day 1715991468 [19:50:36]quantity*price = 220011 [19:50:36]sum+1 = 220012 [19:50:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2200.11 НСП 1% : 19.47 НДС 12% : 233.64 Наличными: 0.00 Безнал.: 2200.11 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 127 17.05.2024 19:50 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67718 ФПД: 264679255416031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T195038&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67718&fm=264679255416031&tin=02508201610067®Number=0000000000091845&sum=220011 [19:50:37]StoreToDocumentArchive [19:50:37]shift 358 fd 67718 [19:50:37]save to /storage/0358/doc_00067718 [19:50:37]save last doc name /storage/0358/doc_00067718 to /storage/kkm_last_doc_name [19:50:38]save OK [19:50:38]Clear old archive folders... [19:50:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:50:38]tlvbuf is 01B4C080 [19:50:38]SAM_PROTO_ClearQueue [19:50:38]wFMCommunicate request_size=4 [19:50:38]MH_SAM_APDU [19:50:38]CAPDU: 80 09 00 00 [19:50:38]Write to MH i2c: E2 08 00 C8 0B 80 09 00 00 00 00 00 00 45 [19:50:38]Write i2c OK [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: E2 [19:50:38]MH_I2C_Read... [19:50:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:38]Read from MH i2c: E2 03 00 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: E2 03 00 C8 0B 00 90 00 47 [19:50:38]RAPDU: 90 00 [19:50:38]wFMCommunicate OK [19:50:38]SAM_PROTO_ClearQueue done [19:50:38]KKMCreateOFDPacket [19:50:38]OFDProtocolAddRootSTLVToBuf [19:50:38]FM_MakeSignedData [19:50:38]FM_MakeSignedData [19:50:38]SAM_PROTO_SignData [19:50:38]wFMCommunicate request_size=4 [19:50:38]MH_SAM_APDU [19:50:38]CAPDU: 80 0D 01 02 [19:50:38]Write to MH i2c: E2 08 00 C9 0B 80 0D 01 02 00 00 00 00 4D [19:50:38]Write i2c OK [19:50:38]MH_I2C_Read... [19:50:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:38]Read from MH i2c: E2 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: E2 03 00 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: E2 03 00 C9 0B 00 90 00 48 [19:50:38]RAPDU: 90 00 [19:50:38]wFMCommunicate OK [19:50:38]wFMCommunicate request_size=255 [19:50:38]MH_SAM_APDU [19:50: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 C2 7E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6B 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 5B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 0E B5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 [19:50:38]Write to MH i2c: E2 02 01 CA 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 C2 7E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6B 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 5B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 0E B5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 00 00 DD [19:50:38]Write i2c OK [19:50:38]MH_I2C_Read... [19:50:38]OFD Sender: No OFD packet to send [19:50:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:38]Read from MH i2c: E2 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: E2 03 00 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: E2 03 00 CA 0B 00 90 00 49 [19:50:38]RAPDU: 90 00 [19:50:38]wFMCommunicate OK [19:50:38]wFMCommunicate request_size=11 [19:50:38]MH_SAM_APDU [19:50:38]CAPDU: 80 0D 02 02 06 F0 B9 70 FF 9C DF [19:50:38]Write to MH i2c: E2 0E 00 CB 0B 80 0D 02 02 06 00 F0 B9 70 FF 9C DF 00 00 EF [19:50:38]Write i2c OK [19:50:38]MH_I2C_Read... [19:50:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:38]Read from MH i2c: E2 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: E2 03 00 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: E2 03 00 CB 0B 00 90 00 4A [19:50:38]RAPDU: 90 00 [19:50:38]wFMCommunicate OK [19:50:38]wFMCommunicate request_size=4 [19:50:38]MH_SAM_APDU [19:50:38]CAPDU: 80 0D 03 02 [19:50:38]Write to MH i2c: E2 08 00 CC 0B 80 0D 03 02 00 00 00 00 52 [19:50:38]Write i2c OK [19:50:38]MH_I2C_Read... [19:50:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:38]Read from MH i2c: E2 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: E2 0B 00 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: E2 0B 00 CC 0B 00 76 ED 4A A1 4B 31 AE 9A 90 00 65 [19:50:38]RAPDU: 76 ED 4A A1 4B 31 AE 9A 90 00 [19:50:38]wFMCommunicate OK [19:50:38]SAM_PROTO_SignData done [19:50:38]FM_MakeSignedData done [19:50:38]CreateOFDProtocolMessage [19:50:38]wFMCommunicate request_size=4 [19:50:38]MH_SAM_APDU [19:50:38]CAPDU: 80 11 00 00 [19:50:38]Write to MH i2c: E2 08 00 CD 0B 80 11 00 00 00 00 00 00 52 [19:50:38]Write i2c OK [19:50:38]MH_I2C_Read... [19:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:38]Read from MH i2c: E2 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: E2 17 00 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: E2 17 00 CD 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A8 [19:50:38]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:38]wFMCommunicate OK [19:50:38]CreateOFDProtocolMessage done [19:50:38]OFDSenderStorePacket 67718 [19:50:38]StoreOFDPacket docnum=67718 [19:50:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 2B F5 08 01 73 63 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 C2 7E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6B 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 5B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 0E B5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F0 B9 70 FF 9C DF 76 ED 4A A1 4B 31 AE 9A [19:50:38]CheckFolder [19:50:38]dirname=/storage/ofd_packets [19:50:38]CheckFolder done [19:50:38]ProducePacketName [19:50:38]name=ofd_packets/00067718 [19:50:38]NVStorageSaveData ofd_packets/00067718 [19:50:38]File name is /storage/ofd_packets/00067718 [19:50:38]Write 302 bytes [19:50:38]NVStorageSaveData done [19:50:38]OFDSenderStorePacket done [19:50:38]KKMCreateOFDPacket done [19:50:38]NVStorageSaveData kkm_last_timestamp [19:50:38]File name is /storage/kkm_last_timestamp [19:50:38]Write 4 bytes [19:50:38]NVStorageSaveData done [19:50:38]ExternCall_PrintAddStr [19:50:38]wPrintStart [19:50:38]Write to MH i2c: 01 00 00 CE 0B D9 [19:50:38]Write i2c OK [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: 01 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: 01 07 00 [19:50:38]MH_I2C_Read... [19:50:38]Read from MH i2c: 01 07 00 CE 0B 00 00 00 00 00 FF 0F EE [19:50:38]RasterBufferAndPrint [19:50:38]line Счет N : (1)507870 [19:50:38]line ИНН: 02508201610067 [19:50:38]line Контрольно-Кассовый Чек [19:50:38]line ПРОДАЖА [19:50:38]line ТРК (МРК, ГНК) : 32 [19:50:38]line Товар: 2710124130 [19:50:38]line Super-92-К-5 [19:50:38]line 32.450 * 67.80 [19:50:38]line = 2200.11 [19:50:38]line НДС 12% НСП 1% [19:50:38]line > о реализуемом товаре [19:50:38]line ИТОГО: 2200.11 [19:50:38]line НСП 1% : 19.47 [19:50:38]line НДС 12% : 233.64 [19:50:38]line Наличными: 0.00 [19:50:38]line Безнал.: 2200.11 [19:50:38]line Место: АЗС № 91 "Партнер Нефть" [19:50:38]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:50:38]line СНО: Общий режим [19:50:38]line Чек 127 17.05.2024 19:50 [19:50:38]line Смена: 358 ФФД: 1.0 [19:50:38]line ЗНМ: 0300000119 [19:50:38]line РНМ: 0000000000091845 [19:50:38]line Версия ККМ: 001 [19:50:38]line Платежная система: O! деньги [19:50:38]line ФМ: 0000000000871829 [19:50:38]line ФД: 67718 [19:50:38]line ФПД: 264679255416031 [19:50:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T195038&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67718&fm=264679255416031&tin=02508201610067®Number=0000000000091845&sum=220011 [19:50:38]OFD Sender: Processing packet 67718 [packets to send 35, broken 34] [19:50:38]ProducePacketName [19:50:38]name=ofd_packets/00067718 [19:50:38]OFD Sender: To server: pG, [19:50:38]CommunicateWithHost lk.salyk.kg:30040 [19:50:38]ConnectInit lk.salyk.kg [19:50:38]written 0, free lines is 4095 [19:50:38]Connected sock=7 [19:50:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 2B F5 08 01 73 63 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 C2 7E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6B 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 5B 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 0E B5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F0 B9 70 FF 9C DF 76 ED 4A A1 4B 31 AE 9A [19:50: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 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 86 08 01 00 F4 03 04 00 E5 5C 47 66 B6 04 01 00 00 A8 28 D8 37 CF B4 30 56 [19:50:39]CommunicateWithHost err = 0 [19:50:39]CheckOFDResponse [19:50:39]1017 (14) - 77093643461234 [19:50:39]1041 (16) - 0000000000871829 [19:50:39]1040 (4) - 67718 [19:50:39]1012 (4) - 17.05.2024 13:34 [19:50:39]1206 (1) - 0 [19:50:39]OFD Sender: Remove packet 67718 [19:50:39]ProducePacketName [19:50:39]name=ofd_packets/00067718 [19:50:39]NVStorageDeleteData [19:50:39]Write to MH i2c: 01 00 00 F7 0B 02 [19:50:39]Write i2c OK [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: 01 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: 01 07 00 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: 01 07 00 F7 0B 00 00 00 00 00 F5 0C 0A [19:50:39]RasterBufferAndPrint [19:50:39]line [19:50:39]line [19:50:39]line [19:50:39]line [19:50:39]line [19:50:39]written 0, free lines is 3324 [19:50:39]MH_Cut [19:50:39]Write to MH i2c: D1 01 00 FE 0B 01 DB [19:50:39]Write i2c OK [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: D1 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: D1 01 00 [19:50:39]MH_I2C_Read... [19:50:39]Read from MH i2c: D1 01 00 FE 0B 00 DA [19:50:39]Write to MH i2c: 01 00 00 FF 0B 0A [19:50:39]Write i2c OK [19:50:39]MH_I2C_Read... [19:50:39]OFD Sender: No OFD packet to send [19:50:40]*** Cut start [19:50:40]*** Purtial cut [19:50:40]*** Stage 1: CUTSNS_PIN = 1 [19:50:40]Read from MH i2c: 01 [19:50:40]MH_I2C_Read... [19:50:40]*** Stop cut motor [19:50:40]*** Cut end [19:50:40]Read from MH i2c: 01 07 00 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: 01 07 00 FF 0B 00 00 00 00 00 FF 0F 1F [19:50:40]process_action close_receipt done [19:50:40]requested_data is exist [19:50:40]produce_requested_data [19:50:40]requested_item fm.sn is exist - process it [19:50:40]wFMCommunicate request_size=4 [19:50:40]MH_SAM_APDU [19:50:40]CAPDU: 80 11 00 00 [19:50:40]Write to MH i2c: E2 08 00 00 0C 80 11 00 00 00 00 00 00 86 [19:50:40]Write i2c OK [19:50:40]MH_I2C_Read... [19:50:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:40]Read from MH i2c: E2 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: E2 17 00 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: E2 17 00 00 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DC [19:50: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:50:40]wFMCommunicate OK [19:50:40]requested_item fd.num is exist - process it [19:50:40]SAM_PROTO_GetFieldsCounters [19:50:40]wFMCommunicate request_size=4 [19:50:40]MH_SAM_APDU [19:50:40]CAPDU: 80 13 00 00 [19:50:40]Write to MH i2c: E2 08 00 01 0C 80 13 00 00 00 00 00 00 89 [19:50:40]Write i2c OK [19:50:40]MH_I2C_Read... [19:50:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:40]Read from MH i2c: E2 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: E2 62 00 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: E2 62 00 01 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 86 08 01 00 0E 04 04 00 66 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 22 [19:50: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 86 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:50:40]wFMCommunicate OK [19:50:40]SAM_PROTO_GetFieldsCounters done [19:50:40]requested_item shift.num is exist - process it [19:50:40]requested_item shift.opened is exist - process it [19:50:40]req_shift_opened [19:50:40]FM_GetShiftState [19:50:40]SAM_PROTO_GetShiftState [19:50:40]wFMCommunicate request_size=4 [19:50:40]MH_SAM_APDU [19:50:40]CAPDU: 80 13 01 00 [19:50:40]Write to MH i2c: E2 08 00 02 0C 80 13 01 00 00 00 00 00 8B [19:50:40]Write i2c OK [19:50:40]MH_I2C_Read... [19:50:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:40]Read from MH i2c: E2 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: E2 0E 00 [19:50:40]MH_I2C_Read... [19:50:40]Read from MH i2c: E2 0E 00 02 0C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 11 [19:50:40]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:50:40]wFMCommunicate OK [19:50:40]SAM_PROTO_GetShiftState done [19:50:40]FM_GetShiftState done [19:50:40]req_shift_opened done [19:50:40]requested_item shift.open_date is exist - process it [19:50:40]req_shift_open_date [19:50:40]req_shift_open_date done [19:50:40]produce_requested_data done [19:50:40]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67718,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [19:50:40]process_action_free close_receipt [19:50:40]json_value_free [19:50:40]json_value_free done [19:50:40]process_json_proto returns [19:50:40]Send response to host [19:50:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67718,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [19:50:40]free response buf [19:50:40]execute_script done [19:50:40]execute_script returns [19:50:40]free content buf [19:50:40]Sock 9.Close socket [19:50:40]Sock 9.Thread stoped [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:43]accept exits with 10 [19:53:43]New connection [19:53:43]New thread 3066608996 created [19:53:43]Thread 3066752356 joined [19:53:43]Waiting for new connection... [19:53:43] Sock 10.Parse request [19:53:43]Sock 10.Check first char [19:53:43]Sock 10.First char is OK [19:53:43]request: POST /json_proto HTTP/1.0 [19:53:43]Method: POST [19:53:43]URL: /json_proto [19:53:43]Method is POST - this is cgi request [19:53:43]url: /json_proto [19:53:43]query_string will be loaded in cgi processing [19:53:43]execute_cgi json_proto POST (null) [19:53:43]execute_cgi path=json_proto method=POST [19:53:43]POST find Content-Length [19:53:43]Host: 172.17.41.195:8080 [19:53:43]Content-Length: 1182 [19:53:43]Content-Type: application/json [19:53:43] [19:53:43]POST finish read [19:53:43]Found Content-Length = 1182 [19:53:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507871\u000A17.05.2024 19:36\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 17.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1135.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\u000A03517\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:43]execute_script... [19:53:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507871\u000A17.05.2024 19:36\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 17.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1135.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\u000A03517\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:43]POST & json_proto [19:53:43]process_json_proto [19:53:43]json parsed OK: [19:53:43]protocol is kg_v1.0 [19:53:43]action value=print_text [19:53:43]process_action print_text [19:53:43]cmd_print_text [19:53:43]ExternCall_PrintAddStr [19:53:43]wPrintStart [19:53:43]Write to MH i2c: 01 00 00 03 0C 0F [19:53:43]Write i2c OK [19:53:43]MH_I2C_Read... [19:53:43]Read from MH i2c: 01 [19:53:43]MH_I2C_Read... [19:53:43]Read from MH i2c: 01 07 00 [19:53:43]MH_I2C_Read... [19:53:43]Read from MH i2c: 01 07 00 03 0C 00 00 00 00 00 FF 0F 24 [19:53:43]RasterBufferAndPrint [19:53:43]line *****ТОВАРНЫЙ ЧЕК***** [19:53:43]line АЗС-91 [19:53:43]line Партнер нефть [19:53:43]line 02508201610067 [19:53:43]line Кассир : Адишов И. [19:53:43]line Счет N : (1)507871 [19:53:43]line 17.05.2024 19:36 [19:53:43]line ПРОДАЖА [19:53:43]line ТРК (МРК, ГНК): 43 [19:53:43]line Вид ГСМ : 2710124130 [19:53:43]line Аи-92-К-5 [19:53:43]line 17.000 x 66.80 [19:53:43]line ИТОГ: 1135.60 [19:53:43]line Тип оплаты: Талоны: Топливная Карта [19:53:43]line 03517 [19:53:43]line ______________________ [19:53:43]line (подпись) [19:53:43]written 0, free lines is 4095 [19:53:44]Write to MH i2c: 01 00 00 17 0C 23 [19:53:44]Write i2c OK [19:53:44]MH_I2C_Read... [19:53:44]Read from MH i2c: 01 [19:53:44]MH_I2C_Read... [19:53:44]Read from MH i2c: 01 07 00 [19:53:44]MH_I2C_Read... [19:53:44]Read from MH i2c: 01 07 00 17 0C 00 00 00 00 00 0E 0E 46 [19:53:44]RasterBufferAndPrint [19:53:44]line [19:53:44]line [19:53:44]line [19:53:44]line [19:53:44]line [19:53:44]written 0, free lines is 3599 [19:53:44]MH_Cut [19:53:44]Write to MH i2c: D1 01 00 1E 0C 01 FC [19:53:44]Write i2c OK [19:53:44]MH_I2C_Read... [19:53:44]Read from MH i2c: D1 [19:53:44]MH_I2C_Read... [19:53:44]Read from MH i2c: D1 01 00 [19:53:44]MH_I2C_Read... [19:53:44]Read from MH i2c: D1 01 00 1E 0C 00 FB [19:53:44]Write to MH i2c: 01 00 00 1F 0C 2B [19:53:44]Write i2c OK [19:53:44]MH_I2C_Read... [19:53:44]*** Cut start [19:53:44]*** Purtial cut [19:53:44]*** CUTSNS_PIN = 0 [19:53:44]OFD Sender: No OFD packet to send [19:53:44]*** Stage 1: CUTSNS_PIN = 1 [19:53:46]Read from MH i2c: 01 [19:53:46]MH_I2C_Read... [19:53:46]Read from MH i2c: 01 07 00 [19:53:46]MH_I2C_Read... [19:53:46]*** Stop cut motor [19:53:46]*** Cut end [19:53:46]Read from MH i2c: 01 07 00 1F 0C 00 00 00 00 00 FF 0F 40 [19:53:46]process_action print_text done [19:53:46]requested_data is exist [19:53:46]produce_requested_data [19:53:46]requested_item fm.sn is exist - process it [19:53:46]wFMCommunicate request_size=4 [19:53:46]MH_SAM_APDU [19:53:46]CAPDU: 80 11 00 00 [19:53:46]Write to MH i2c: E2 08 00 20 0C 80 11 00 00 00 00 00 00 A6 [19:53:46]Write i2c OK [19:53:46]MH_I2C_Read... [19:53:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:46]Read from MH i2c: E2 [19:53:46]MH_I2C_Read... [19:53:46]Read from MH i2c: E2 17 00 [19:53:46]MH_I2C_Read... [19:53:46]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 [19:53: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:53:46]wFMCommunicate OK [19:53:46]requested_item fd.num is exist - process it [19:53:46]SAM_PROTO_GetFieldsCounters [19:53:46]wFMCommunicate request_size=4 [19:53:46]MH_SAM_APDU [19:53:46]CAPDU: 80 13 00 00 [19:53:46]Write to MH i2c: E2 08 00 21 0C 80 13 00 00 00 00 00 00 A9 [19:53:46]Write i2c OK [19:53:46]MH_I2C_Read... [19:53:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:46]Read from MH i2c: E2 [19:53:46]MH_I2C_Read... [19:53:46]Read from MH i2c: E2 62 00 [19:53:46]MH_I2C_Read... [19:53:46]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 86 08 01 00 0E 04 04 00 66 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 42 [19:53: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 86 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:53:46]wFMCommunicate OK [19:53:46]SAM_PROTO_GetFieldsCounters done [19:53:46]requested_item shift.num is exist - process it [19:53:46]requested_item shift.opened is exist - process it [19:53:46]req_shift_opened [19:53:46]FM_GetShiftState [19:53:46]SAM_PROTO_GetShiftState [19:53:46]wFMCommunicate request_size=4 [19:53:46]MH_SAM_APDU [19:53:46]CAPDU: 80 13 01 00 [19:53:46]Write to MH i2c: E2 08 00 22 0C 80 13 01 00 00 00 00 00 AB [19:53:46]Write i2c OK [19:53:46]MH_I2C_Read... [19:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:46]Read from MH i2c: E2 [19:53:46]MH_I2C_Read... [19:53:46]Read from MH i2c: E2 0E 00 [19:53:46]MH_I2C_Read... [19:53:46]Read from MH i2c: E2 0E 00 22 0C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 31 [19:53:46]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:53:46]wFMCommunicate OK [19:53:46]SAM_PROTO_GetShiftState done [19:53:46]FM_GetShiftState done [19:53:46]req_shift_opened done [19:53:46]requested_item shift.open_date is exist - process it [19:53:46]req_shift_open_date [19:53:46]req_shift_open_date done [19:53:46]produce_requested_data done [19:53:46]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67718,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [19:53:46]process_action_free print_text [19:53:46]json_value_free [19:53:46]json_value_free done [19:53:46]process_json_proto returns [19:53:46]Send response to host [19:53:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67718,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [19:53:46]free response buf [19:53:46]execute_script done [19:53:46]execute_script returns [19:53:46]free content buf [19:53:46]Sock 10.Close socket [19:53:46]Sock 10.Thread stoped [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:26]accept exits with 7 [19:58:26]New connection [19:58:26]New thread 3066752356 created [19:58:26]Thread 3066608996 joined [19:58:26]Waiting for new connection... [19:58:26] Sock 7.Parse request [19:58:26]Sock 7.Check first char [19:58:26]Sock 7.First char is OK [19:58:26]request: POST /json_proto HTTP/1.0 [19:58:26]Method: POST [19:58:26]URL: /json_proto [19:58:26]Method is POST - this is cgi request [19:58:26]url: /json_proto [19:58:26]query_string will be loaded in cgi processing [19:58:26]execute_cgi json_proto POST (null) [19:58:26]execute_cgi path=json_proto method=POST [19:58:26]POST find Content-Length [19:58:26]Host: 172.17.41.195:8080 [19:58:26]Content-Length: 674 [19:58:26]Content-Type: application/json [19:58:26] [19:58:26]POST finish read [19:58:26]Found Content-Length = 674 [19:58:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507874", "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" : 9.380, "sum" : 700.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:26]execute_script... [19:58: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)507874", "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" : 9.380, "sum" : 700.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:26]POST & json_proto [19:58:26]process_json_proto [19:58:26]json parsed OK: [19:58:26]protocol is kg_v1.0 [19:58:26]action value=close_receipt [19:58:26]process_action close_receipt [19:58:26]cmd_close_receipt [19:58:26]MH_GetDate [19:58:26]Write to MH i2c: F0 00 00 23 0C 1E [19:58:26]Write i2c OK [19:58:26]MH_I2C_Read... [19:58:26]Read from MH i2c: F0 [19:58:26]MH_I2C_Read... [19:58:26]Read from MH i2c: F0 09 00 [19:58:26]MH_I2C_Read... [19:58:26]Read from MH i2c: F0 09 00 23 0C 00 E3 B6 47 66 FC 21 6F 64 5D [19:58:26]GetLastDocTimeStamp 1715975438 [19:58:26]current date 1715975907 [19:58:26]FM_GetShiftState [19:58:26]SAM_PROTO_GetShiftState [19:58:26]wFMCommunicate request_size=4 [19:58:26]MH_SAM_APDU [19:58:26]CAPDU: 80 13 01 00 [19:58:26]Write to MH i2c: E2 08 00 24 0C 80 13 01 00 00 00 00 00 AD [19:58:26]Write i2c OK [19:58:26]MH_I2C_Read... [19:58:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:26]Read from MH i2c: E2 [19:58:26]MH_I2C_Read... [19:58:26]Read from MH i2c: E2 0E 00 [19:58:26]MH_I2C_Read... [19:58:26]Read from MH i2c: E2 0E 00 24 0C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 33 [19:58:26]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:58:26]wFMCommunicate OK [19:58:26]SAM_PROTO_GetShiftState done [19:58:26]FM_GetShiftState done [19:58:26]opened in 1715905068 [19:58:26]opened+sec_in_day 1715991468 [19:58:26]quantity*price = 70068 [19:58:26]sum+1 = 70070 [19:58:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.41 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 128 17.05.2024 19:58 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67719 ФПД: 255156657324190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T195827&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67719&fm=255156657324190&tin=02508201610067®Number=0000000000091845&sum=70000 [19:58:27]StoreToDocumentArchive [19:58:27]shift 358 fd 67719 [19:58:27]save to /storage/0358/doc_00067719 [19:58:27]save last doc name /storage/0358/doc_00067719 to /storage/kkm_last_doc_name [19:58:27]save OK [19:58:27]Clear old archive folders... [19:58:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:58:27]tlvbuf is 01B4C0B0 [19:58:27]SAM_PROTO_ClearQueue [19:58:27]wFMCommunicate request_size=4 [19:58:27]MH_SAM_APDU [19:58:27]CAPDU: 80 09 00 00 [19:58:27]Write to MH i2c: E2 08 00 31 0C 80 09 00 00 00 00 00 00 AF [19:58:27]Write i2c OK [19:58:27]MH_I2C_Read... [19:58:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:27]Read from MH i2c: E2 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 03 00 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 03 00 31 0C 00 90 00 B1 [19:58:27]RAPDU: 90 00 [19:58:27]wFMCommunicate OK [19:58:27]SAM_PROTO_ClearQueue done [19:58:27]KKMCreateOFDPacket [19:58:27]OFDProtocolAddRootSTLVToBuf [19:58:27]FM_MakeSignedData [19:58:27]FM_MakeSignedData [19:58:27]SAM_PROTO_SignData [19:58:27]wFMCommunicate request_size=4 [19:58:27]MH_SAM_APDU [19:58:27]CAPDU: 80 0D 01 02 [19:58:27]Write to MH i2c: E2 08 00 32 0C 80 0D 01 02 00 00 00 00 B7 [19:58:27]Write i2c OK [19:58:27]MH_I2C_Read... [19:58:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:27]Read from MH i2c: E2 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 03 00 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 03 00 32 0C 00 90 00 B2 [19:58:27]RAPDU: 90 00 [19:58:27]wFMCommunicate OK [19:58:27]wFMCommunicate request_size=255 [19:58:27]MH_SAM_APDU [19:58: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 A4 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 11 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 E3 B6 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 E8 10 49 EC [19:58:27]Write to MH i2c: E2 02 01 33 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 11 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 E3 B6 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 E8 10 49 EC 00 00 7D [19:58:27]Write i2c OK [19:58:27]MH_I2C_Read... [19:58:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:27]Read from MH i2c: E2 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 03 00 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 03 00 33 0C 00 90 00 B3 [19:58:27]RAPDU: 90 00 [19:58:27]wFMCommunicate OK [19:58:27]wFMCommunicate request_size=7 [19:58:27]MH_SAM_APDU [19:58:27]CAPDU: 80 0D 02 02 02 00 9E [19:58:27]Write to MH i2c: E2 0A 00 34 0C 80 0D 02 02 02 00 00 9E 00 00 5C [19:58:27]Write i2c OK [19:58:27]MH_I2C_Read... [19:58:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:27]Read from MH i2c: E2 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 03 00 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 03 00 34 0C 00 90 00 B4 [19:58:27]RAPDU: 90 00 [19:58:27]wFMCommunicate OK [19:58:27]wFMCommunicate request_size=4 [19:58:27]MH_SAM_APDU [19:58:27]CAPDU: 80 0D 03 02 [19:58:27]Write to MH i2c: E2 08 00 35 0C 80 0D 03 02 00 00 00 00 BC [19:58:27]Write i2c OK [19:58:27]MH_I2C_Read... [19:58:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:27]Read from MH i2c: E2 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 0B 00 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 0B 00 35 0C 00 DA 38 6D 7B 82 B1 B5 CF 90 00 6E [19:58:27]RAPDU: DA 38 6D 7B 82 B1 B5 CF 90 00 [19:58:27]wFMCommunicate OK [19:58:27]SAM_PROTO_SignData done [19:58:27]FM_MakeSignedData done [19:58:27]CreateOFDProtocolMessage [19:58:27]wFMCommunicate request_size=4 [19:58:27]MH_SAM_APDU [19:58:27]CAPDU: 80 11 00 00 [19:58:27]Write to MH i2c: E2 08 00 36 0C 80 11 00 00 00 00 00 00 BC [19:58:27]Write i2c OK [19:58:27]MH_I2C_Read... [19:58:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:27]Read from MH i2c: E2 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 17 00 [19:58:27]MH_I2C_Read... [19:58:27]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 [19:58: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:58:27]wFMCommunicate OK [19:58:27]CreateOFDProtocolMessage done [19:58:27]OFDSenderStorePacket 67719 [19:58:27]StoreOFDPacket docnum=67719 [19:58: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 7B 46 04 01 68 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 11 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 E3 B6 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 E8 10 49 EC 00 9E DA 38 6D 7B 82 B1 B5 CF [19:58:27]CheckFolder [19:58:27]dirname=/storage/ofd_packets [19:58:27]CheckFolder done [19:58:27]ProducePacketName [19:58:27]name=ofd_packets/00067719 [19:58:27]NVStorageSaveData ofd_packets/00067719 [19:58:27]File name is /storage/ofd_packets/00067719 [19:58:27]Write 298 bytes [19:58:27]NVStorageSaveData done [19:58:27]OFDSenderStorePacket done [19:58:27]KKMCreateOFDPacket done [19:58:27]NVStorageSaveData kkm_last_timestamp [19:58:27]File name is /storage/kkm_last_timestamp [19:58:27]Write 4 bytes [19:58:27]NVStorageSaveData done [19:58:27]ExternCall_PrintAddStr [19:58:27]wPrintStart [19:58:27]Write to MH i2c: 01 00 00 37 0C 43 [19:58:27]Write i2c OK [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: 01 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: 01 07 00 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: 01 07 00 37 0C 00 00 00 00 00 FF 0F 58 [19:58:27]RasterBufferAndPrint [19:58:27]line Счет N : (1)507874 [19:58:27]line ИНН: 02508201610067 [19:58:27]line Контрольно-Кассовый Чек [19:58:27]line ПРОДАЖА [19:58:27]line ТРК (МРК, ГНК) : 41 [19:58:27]line Товар: 2710194210 [19:58:27]line ДТ-К-5 [19:58:27]line 9.380 * 74.70 [19:58:27]line = 700.69 [19:58:27]line НДС 12% НСП 1% [19:58:27]line > о реализуемом товаре [19:58:27]line ОКРУГЛЕНИЕ: -0.69 [19:58:27]line ИТОГО: 700.00 [19:58:27]line Внесено: 700.00 [19:58:27]line СДАЧА: 0.00 [19:58:27]line НСП 1% : 6.20 [19:58:27]line НДС 12% : 74.41 [19:58:27]line Наличными: 700.00 [19:58:27]line Безнал.: 0.00 [19:58:27]line Место: АЗС № 91 "Партнер Нефть" [19:58:27]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:58:27]line СНО: Общий режим [19:58:27]line Чек 128 17.05.2024 19:58 [19:58:27]line Смена: 358 ФФД: 1.0 [19:58:27]line ЗНМ: 0300000119 [19:58:27]line РНМ: 0000000000091845 [19:58:27]line Версия ККМ: 001 [19:58:27]line ФМ: 0000000000871829 [19:58:27]line ФД: 67719 [19:58:27]line ФПД: 255156657324190 [19:58:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T195827&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67719&fm=255156657324190&tin=02508201610067®Number=0000000000091845&sum=70000 [19:58:28]OFD Sender: Processing packet 67719 [packets to send 35, broken 34] [19:58:28]ProducePacketName [19:58:28]name=ofd_packets/00067719 [19:58:28]OFD Sender: To server: pG, [19:58:28]CommunicateWithHost lk.salyk.kg:30040 [19:58:28]ConnectInit lk.salyk.kg [19:58:28]written 0, free lines is 4095 [19:58:28]Connected sock=9 [19:58: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 7B 46 04 01 68 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 11 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 E3 B6 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 E8 10 49 EC 00 9E DA 38 6D 7B 82 B1 B5 CF [19:58: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 CA 7F 47 00 A2 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 87 08 01 00 F4 03 04 00 BB 5E 47 66 B6 04 01 00 00 3E A0 32 6D 0A 48 47 5F [19:58:28]CommunicateWithHost err = 0 [19:58:28]CheckOFDResponse [19:58:28]1017 (14) - 77093643461234 [19:58:28]1041 (16) - 0000000000871829 [19:58:28]1040 (4) - 67719 [19:58:28]1012 (4) - 17.05.2024 13:42 [19:58:28]1206 (1) - 0 [19:58:28]OFD Sender: Remove packet 67719 [19:58:28]ProducePacketName [19:58:28]name=ofd_packets/00067719 [19:58:28]NVStorageDeleteData [19:58:28]Write to MH i2c: 01 00 00 61 0C 6D [19:58:28]Write i2c OK [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: 01 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: 01 07 00 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: 01 07 00 61 0C 00 00 00 00 00 C9 0C 49 [19:58:28]RasterBufferAndPrint [19:58:28]line [19:58:28]line [19:58:28]line [19:58:28]line [19:58:28]line [19:58:28]written 0, free lines is 3281 [19:58:28]MH_Cut [19:58:28]Write to MH i2c: D1 01 00 68 0C 01 46 [19:58:28]Write i2c OK [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: D1 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: D1 01 00 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: D1 01 00 68 0C 00 45 [19:58:28]Write to MH i2c: 01 00 00 69 0C 75 [19:58:28]Write i2c OK [19:58:28]MH_I2C_Read... [19:58:28]OFD Sender: No OFD packet to send [19:58:29]*** Cut start [19:58:29]*** Purtial cut [19:58:29]*** Stage 1: CUTSNS_PIN = 1 [19:58:29]Read from MH i2c: 01 [19:58:29]MH_I2C_Read... [19:58:29]*** Stop cut motor [19:58:29]*** Cut end [19:58:29]Read from MH i2c: 01 07 00 [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: 01 07 00 69 0C 00 00 00 00 00 FF 0F 8A [19:58:29]process_action close_receipt done [19:58:29]requested_data is exist [19:58:29]produce_requested_data [19:58:29]requested_item fm.sn is exist - process it [19:58:29]wFMCommunicate request_size=4 [19:58:29]MH_SAM_APDU [19:58:29]CAPDU: 80 11 00 00 [19:58:29]Write to MH i2c: E2 08 00 6A 0C 80 11 00 00 00 00 00 00 F0 [19:58:29]Write i2c OK [19:58:29]MH_I2C_Read... [19:58:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:29]Read from MH i2c: E2 [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: E2 17 00 [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: E2 17 00 6A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 46 [19:58: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:58:29]wFMCommunicate OK [19:58:29]requested_item fd.num is exist - process it [19:58:29]SAM_PROTO_GetFieldsCounters [19:58:29]wFMCommunicate request_size=4 [19:58:29]MH_SAM_APDU [19:58:29]CAPDU: 80 13 00 00 [19:58:29]Write to MH i2c: E2 08 00 6B 0C 80 13 00 00 00 00 00 00 F3 [19:58:29]Write i2c OK [19:58:29]MH_I2C_Read... [19:58:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:29]Read from MH i2c: E2 [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: E2 62 00 [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: E2 62 00 6B 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 87 08 01 00 0E 04 04 00 66 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 90 [19:58: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 87 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:58:29]wFMCommunicate OK [19:58:29]SAM_PROTO_GetFieldsCounters done [19:58:29]requested_item shift.num is exist - process it [19:58:29]requested_item shift.opened is exist - process it [19:58:29]req_shift_opened [19:58:29]FM_GetShiftState [19:58:29]SAM_PROTO_GetShiftState [19:58:29]wFMCommunicate request_size=4 [19:58:29]MH_SAM_APDU [19:58:29]CAPDU: 80 13 01 00 [19:58:29]Write to MH i2c: E2 08 00 6C 0C 80 13 01 00 00 00 00 00 F5 [19:58:29]Write i2c OK [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: E2 [19:58:29]MH_I2C_Read... [19:58:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:29]Read from MH i2c: E2 0E 00 [19:58:29]MH_I2C_Read... [19:58:29]Read from MH i2c: E2 0E 00 6C 0C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 7B [19:58:29]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [19:58:29]wFMCommunicate OK [19:58:29]SAM_PROTO_GetShiftState done [19:58:29]FM_GetShiftState done [19:58:29]req_shift_opened done [19:58:29]requested_item shift.open_date is exist - process it [19:58:29]req_shift_open_date [19:58:29]req_shift_open_date done [19:58:29]produce_requested_data done [19:58:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67719,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [19:58:29]process_action_free close_receipt [19:58:29]json_value_free [19:58:29]json_value_free done [19:58:29]process_json_proto returns [19:58:29]Send response to host [19:58:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67719,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [19:58:29]free response buf [19:58:29]execute_script done [19:58:29]execute_script returns [19:58:29]free content buf [19:58:29]Sock 7.Close socket [19:58:29]Sock 7.Thread stoped [19:58:33]OFD Sender: No OFD packet to send [19:58:38]OFD Sender: No OFD packet to send [19:58:43]OFD Sender: No OFD packet to send [19:58:48]OFD Sender: No OFD packet to send [19:58:53]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [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:54]accept exits with 10 [20:00:54]New connection [20:00:54]New thread 3066608996 created [20:00:54]Thread 3066752356 joined [20:00:54]Waiting for new connection... [20:00:54] Sock 10.Parse request [20:00:54]Sock 10.Check first char [20:00:54]Sock 10.First char is OK [20:00:54]request: POST /json_proto HTTP/1.0 [20:00:54]Method: POST [20:00:54]URL: /json_proto [20:00:54]Method is POST - this is cgi request [20:00:54]url: /json_proto [20:00:54]query_string will be loaded in cgi processing [20:00:54]execute_cgi json_proto POST (null) [20:00:54]execute_cgi path=json_proto method=POST [20:00:54]POST find Content-Length [20:00:54]Host: 172.17.41.195:8080 [20:00:54]Content-Length: 801 [20:00:54]Content-Type: application/json [20:00:54] [20:00:54]POST finish read [20:00:54]Found Content-Length = 801 [20:00:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507873", "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" : 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" ] } } [20:00:54]execute_script... [20:00: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)507873", "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" : 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" ] } } [20:00:54]POST & json_proto [20:00:54]process_json_proto [20:00:54]json parsed OK: [20:00:54]protocol is kg_v1.0 [20:00:54]action value=close_receipt [20:00:54]process_action close_receipt [20:00:54]cmd_close_receipt [20:00:54]MH_GetDate [20:00:54]Write to MH i2c: F0 00 00 6D 0C 68 [20:00:54]Write i2c OK [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: F0 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: F0 09 00 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: F0 09 00 6D 0C 00 77 B7 47 66 FC 21 6F 64 3C [20:00:54]GetLastDocTimeStamp 1715975907 [20:00:54]current date 1715976055 [20:00:54]FM_GetShiftState [20:00:54]SAM_PROTO_GetShiftState [20:00:54]wFMCommunicate request_size=4 [20:00:54]MH_SAM_APDU [20:00:54]CAPDU: 80 13 01 00 [20:00:54]Write to MH i2c: E2 08 00 6E 0C 80 13 01 00 00 00 00 00 F7 [20:00:54]Write i2c OK [20:00:54]MH_I2C_Read... [20:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:54]Read from MH i2c: E2 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: E2 0E 00 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: E2 0E 00 6E 0C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 7D [20:00:54]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:00:54]wFMCommunicate OK [20:00:54]SAM_PROTO_GetShiftState done [20:00:54]FM_GetShiftState done [20:00:54]opened in 1715905068 [20:00:54]opened+sec_in_day 1715991468 [20:00:54]quantity*price = 900060 [20:00:54]sum+1 = 900061 [20:00:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.60 НСП 1% : 79.65 НДС 12% : 955.82 Наличными: 0.00 Безнал.: 9000.60 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 129 17.05.2024 20:00 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67720 ФПД: 230850505200510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T200055&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67720&fm=230850505200510&tin=02508201610067®Number=0000000000091845&sum=900060 [20:00:55]StoreToDocumentArchive [20:00:55]shift 358 fd 67720 [20:00:55]save to /storage/0358/doc_00067720 [20:00:55]save last doc name /storage/0358/doc_00067720 to /storage/kkm_last_doc_name [20:00:55]save OK [20:00:55]Clear old archive folders... [20:00:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:00:55]tlvbuf is 01AC9F80 [20:00:55]SAM_PROTO_ClearQueue [20:00:55]wFMCommunicate request_size=4 [20:00:55]MH_SAM_APDU [20:00:55]CAPDU: 80 09 00 00 [20:00:55]Write to MH i2c: E2 08 00 7B 0C 80 09 00 00 00 00 00 00 F9 [20:00:55]Write i2c OK [20:00:55]MH_I2C_Read... [20:00:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:55]Read from MH i2c: E2 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: E2 03 00 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: E2 03 00 7B 0C 00 90 00 FB [20:00:55]RAPDU: 90 00 [20:00:55]wFMCommunicate OK [20:00:55]SAM_PROTO_ClearQueue done [20:00:55]KKMCreateOFDPacket [20:00:55]OFDProtocolAddRootSTLVToBuf [20:00:55]FM_MakeSignedData [20:00:55]FM_MakeSignedData [20:00:55]SAM_PROTO_SignData [20:00:55]wFMCommunicate request_size=4 [20:00:55]MH_SAM_APDU [20:00:55]CAPDU: 80 0D 01 02 [20:00:55]Write to MH i2c: E2 08 00 7C 0C 80 0D 01 02 00 00 00 00 01 [20:00:55]Write i2c OK [20:00:55]MH_I2C_Read... [20:00:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:55]Read from MH i2c: E2 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: E2 03 00 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: E2 03 00 7C 0C 00 90 00 FC [20:00:55]RAPDU: 90 00 [20:00:55]wFMCommunicate OK [20:00:55]wFMCommunicate request_size=255 [20:00:55]MH_SAM_APDU [20:00:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 81 00 00 00 F4 03 04 00 77 B7 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 D1 F5 12 5B [20:00:55]Write to MH i2c: E2 02 01 7D 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 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 81 00 00 00 F4 03 04 00 77 B7 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 D1 F5 12 5B 00 00 B2 [20:00:55]Write i2c OK [20:00:55]MH_I2C_Read... [20:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:55]Read from MH i2c: E2 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: E2 03 00 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: E2 03 00 7D 0C 00 90 00 FD [20:00:55]RAPDU: 90 00 [20:00:55]wFMCommunicate OK [20:00:55]wFMCommunicate request_size=7 [20:00:55]MH_SAM_APDU [20:00:55]CAPDU: 80 0D 02 02 02 D3 7E [20:00:55]Write to MH i2c: E2 0A 00 7E 0C 80 0D 02 02 02 00 D3 7E 00 00 59 [20:00:55]Write i2c OK [20:00:55]MH_I2C_Read... [20:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:55]Read from MH i2c: E2 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: E2 03 00 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: E2 03 00 7E 0C 00 90 00 FE [20:00:55]RAPDU: 90 00 [20:00:55]wFMCommunicate OK [20:00:55]wFMCommunicate request_size=4 [20:00:55]MH_SAM_APDU [20:00:55]CAPDU: 80 0D 03 02 [20:00:55]Write to MH i2c: E2 08 00 7F 0C 80 0D 03 02 00 00 00 00 06 [20:00:55]Write i2c OK [20:00:55]MH_I2C_Read... [20:00:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:55]Read from MH i2c: E2 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: E2 0B 00 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: E2 0B 00 7F 0C 00 2E 77 1C 24 E0 74 A5 48 90 00 2D [20:00:55]RAPDU: 2E 77 1C 24 E0 74 A5 48 90 00 [20:00:55]wFMCommunicate OK [20:00:55]SAM_PROTO_SignData done [20:00:55]FM_MakeSignedData done [20:00:55]CreateOFDProtocolMessage [20:00:55]wFMCommunicate request_size=4 [20:00:55]MH_SAM_APDU [20:00:55]CAPDU: 80 11 00 00 [20:00:55]Write to MH i2c: E2 08 00 80 0C 80 11 00 00 00 00 00 00 06 [20:00:55]Write i2c OK [20:00:55]MH_I2C_Read... [20:00:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:55]Read from MH i2c: E2 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: E2 17 00 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: E2 17 00 80 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5C [20:00:55]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:55]wFMCommunicate OK [20:00:55]CreateOFDProtocolMessage done [20:00:55]OFDSenderStorePacket 67720 [20:00:55]StoreOFDPacket docnum=67720 [20:00: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 0C 01 00 00 DE AB 04 01 60 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 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 81 00 00 00 F4 03 04 00 77 B7 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 D1 F5 12 5B D3 7E 2E 77 1C 24 E0 74 A5 48 [20:00:55]CheckFolder [20:00:55]dirname=/storage/ofd_packets [20:00:55]CheckFolder done [20:00:55]ProducePacketName [20:00:55]name=ofd_packets/00067720 [20:00:55]NVStorageSaveData ofd_packets/00067720 [20:00:55]File name is /storage/ofd_packets/00067720 [20:00:55]Write 298 bytes [20:00:55]NVStorageSaveData done [20:00:55]OFDSenderStorePacket done [20:00:55]KKMCreateOFDPacket done [20:00:55]NVStorageSaveData kkm_last_timestamp [20:00:55]File name is /storage/kkm_last_timestamp [20:00:55]Write 4 bytes [20:00:55]NVStorageSaveData done [20:00:55]ExternCall_PrintAddStr [20:00:55]wPrintStart [20:00:55]Write to MH i2c: 01 00 00 81 0C 8D [20:00:55]Write i2c OK [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: 01 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: 01 07 00 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: 01 07 00 81 0C 00 00 00 00 00 FF 0F A2 [20:00:55]RasterBufferAndPrint [20:00:55]line Счет N : (1)507873 [20:00:55]line ИНН: 02508201610067 [20:00:55]line Контрольно-Кассовый Чек [20:00:55]line ПРОДАЖА [20:00:55]line ТРК (МРК, ГНК) : 21 [20:00:55]line Товар: 2710194210 [20:00:55]line ДТ-К-5 [20:00:55]line 120.490 * 74.70 [20:00:55]line = 9000.60 [20:00:55]line НДС 12% НСП 1% [20:00:55]line > о реализуемом товаре [20:00:55]line ИТОГО: 9000.60 [20:00:55]line НСП 1% : 79.65 [20:00:55]line НДС 12% : 955.82 [20:00:55]line Наличными: 0.00 [20:00:55]line Безнал.: 9000.60 [20:00:55]line Место: АЗС № 91 "Партнер Нефть" [20:00:55]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:00:55]line СНО: Общий режим [20:00:55]line Чек 129 17.05.2024 20:00 [20:00:55]line Смена: 358 ФФД: 1.0 [20:00:55]line ЗНМ: 0300000119 [20:00:55]line РНМ: 0000000000091845 [20:00:55]line Версия ККМ: 001 [20:00:55]line Платежная система: O! деньги [20:00:55]line ФМ: 0000000000871829 [20:00:55]line ФД: 67720 [20:00:55]line ФПД: 230850505200510 [20:00:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T200055&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67720&fm=230850505200510&tin=02508201610067®Number=0000000000091845&sum=900060 [20:00:55]OFD Sender: Processing packet 67720 [packets to send 35, broken 34] [20:00:55]ProducePacketName [20:00:55]name=ofd_packets/00067720 [20:00:55]OFD Sender: To server: pG, [20:00:55]CommunicateWithHost lk.salyk.kg:30040 [20:00:55]ConnectInit lk.salyk.kg [20:00:55]written 0, free lines is 4095 [20:00:56]Connected sock=9 [20:00:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 DE AB 04 01 60 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 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 81 00 00 00 F4 03 04 00 77 B7 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 D1 F5 12 5B D3 7E 2E 77 1C 24 E0 74 A5 48 [20:00: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 49 3A 47 00 E5 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 88 08 01 00 F4 03 04 00 4F 5F 47 66 B6 04 01 00 00 F2 D5 EE 4D 15 6D 22 13 [20:00:56]CommunicateWithHost err = 0 [20:00:56]CheckOFDResponse [20:00:56]1017 (14) - 77093643461234 [20:00:56]1041 (16) - 0000000000871829 [20:00:56]1040 (4) - 67720 [20:00:56]1012 (4) - 17.05.2024 13:44 [20:00:56]1206 (1) - 0 [20:00:56]OFD Sender: Remove packet 67720 [20:00:56]ProducePacketName [20:00:56]name=ofd_packets/00067720 [20:00:56]NVStorageDeleteData [20:00:56]Write to MH i2c: 01 00 00 AA 0C B6 [20:00:56]Write i2c OK [20:00:56]MH_I2C_Read... [20:00:56]Read from MH i2c: 01 [20:00:56]MH_I2C_Read... [20:00:56]Read from MH i2c: 01 07 00 [20:00:56]MH_I2C_Read... [20:00:56]Read from MH i2c: 01 07 00 AA 0C 00 00 00 00 00 E2 0C AB [20:00:56]RasterBufferAndPrint [20:00:56]line [20:00:56]line [20:00:56]line [20:00:56]line [20:00:56]line [20:00:56]written 0, free lines is 3303 [20:00:56]MH_Cut [20:00:56]Write to MH i2c: D1 01 00 B1 0C 01 8F [20:00:56]Write i2c OK [20:00:56]MH_I2C_Read... [20:00:56]Read from MH i2c: D1 [20:00:56]MH_I2C_Read... [20:00:56]Read from MH i2c: D1 01 00 [20:00:56]MH_I2C_Read... [20:00:56]Read from MH i2c: D1 01 00 B1 0C 00 8E [20:00:56]Write to MH i2c: 01 00 00 B2 0C BE [20:00:56]Write i2c OK [20:00:56]MH_I2C_Read... [20:00:56]OFD Sender: No OFD packet to send [20:00:57]*** Cut start [20:00:57]*** Purtial cut [20:00:57]*** CUTSNS_PIN = 0 [20:00:57]*** Stage 1: CUTSNS_PIN = 1 [20:00:59]Read from MH i2c: 01 [20:00:59]MH_I2C_Read... [20:00:59]*** Stop cut motor [20:00:59]*** Cut end [20:00:59]Read from MH i2c: 01 07 00 [20:00:59]MH_I2C_Read... [20:00:59]Read from MH i2c: 01 07 00 B2 0C 00 00 00 00 00 FF 0F D3 [20:00:59]process_action close_receipt done [20:00:59]requested_data is exist [20:00:59]produce_requested_data [20:00:59]requested_item fm.sn is exist - process it [20:00:59]wFMCommunicate request_size=4 [20:00:59]MH_SAM_APDU [20:00:59]CAPDU: 80 11 00 00 [20:00:59]Write to MH i2c: E2 08 00 B3 0C 80 11 00 00 00 00 00 00 39 [20:00:59]Write i2c OK [20:00:59]MH_I2C_Read... [20:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:59]Read from MH i2c: E2 [20:00:59]MH_I2C_Read... [20:00:59]Read from MH i2c: E2 17 00 [20:00:59]MH_I2C_Read... [20:00:59]Read from MH i2c: E2 17 00 B3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8F [20:00: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:00:59]wFMCommunicate OK [20:00:59]requested_item fd.num is exist - process it [20:00:59]SAM_PROTO_GetFieldsCounters [20:00:59]wFMCommunicate request_size=4 [20:00:59]MH_SAM_APDU [20:00:59]CAPDU: 80 13 00 00 [20:00:59]Write to MH i2c: E2 08 00 B4 0C 80 13 00 00 00 00 00 00 3C [20:00:59]Write i2c OK [20:00:59]MH_I2C_Read... [20:00:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:59]Read from MH i2c: E2 [20:00:59]MH_I2C_Read... [20:00:59]Read from MH i2c: E2 62 00 [20:00:59]MH_I2C_Read... [20:00:59]Read from MH i2c: E2 62 00 B4 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 88 08 01 00 0E 04 04 00 66 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 DD [20:00: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 88 08 01 00 0E 04 04 00 66 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 [20:00:59]wFMCommunicate OK [20:00:59]SAM_PROTO_GetFieldsCounters done [20:00:59]requested_item shift.num is exist - process it [20:00:59]requested_item shift.opened is exist - process it [20:00:59]req_shift_opened [20:00:59]FM_GetShiftState [20:00:59]SAM_PROTO_GetShiftState [20:00:59]wFMCommunicate request_size=4 [20:00:59]MH_SAM_APDU [20:00:59]CAPDU: 80 13 01 00 [20:00:59]Write to MH i2c: E2 08 00 B5 0C 80 13 01 00 00 00 00 00 3E [20:00:59]Write i2c OK [20:00:59]MH_I2C_Read... [20:00:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:59]Read from MH i2c: E2 [20:00:59]MH_I2C_Read... [20:00:59]Read from MH i2c: E2 0E 00 [20:00:59]MH_I2C_Read... [20:00:59]Read from MH i2c: E2 0E 00 B5 0C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 C4 [20:00:59]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:00:59]wFMCommunicate OK [20:00:59]SAM_PROTO_GetShiftState done [20:00:59]FM_GetShiftState done [20:00:59]req_shift_opened done [20:00:59]requested_item shift.open_date is exist - process it [20:00:59]req_shift_open_date [20:00:59]req_shift_open_date done [20:00:59]produce_requested_data done [20:00:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67720,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:00:59]process_action_free close_receipt [20:00:59]json_value_free [20:00:59]json_value_free done [20:00:59]process_json_proto returns [20:00:59]Send response to host [20:00:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67720,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:00:59]free response buf [20:00:59]execute_script done [20:00:59]execute_script returns [20:00:59]free content buf [20:00:59]Sock 10.Close socket [20:00:59]Sock 10.Thread stoped [20:01:01]OFD Sender: No OFD packet to send [20:01:06]OFD Sender: No OFD packet to send [20:01:11]OFD Sender: No OFD packet to send [20:01:16]OFD Sender: No OFD packet to send [20:01:21]OFD Sender: No OFD packet to send [20:01:26]OFD Sender: No OFD packet to send [20:01:31]OFD Sender: No OFD packet to send [20:01:36]OFD Sender: No OFD packet to send [20:01:41]OFD Sender: No OFD packet to send [20:01:46]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:38]accept exits with 7 [20:02:38]New connection [20:02:38]New thread 3066752356 created [20:02:38]Thread 3066608996 joined [20:02:38]Waiting for new connection... [20:02:38] Sock 7.Parse request [20:02:38]Sock 7.Check first char [20:02:38]Sock 7.First char is OK [20:02:38]request: POST /json_proto HTTP/1.0 [20:02:38]Method: POST [20:02:38]URL: /json_proto [20:02:38]Method is POST - this is cgi request [20:02:38]url: /json_proto [20:02:38]query_string will be loaded in cgi processing [20:02:38]execute_cgi json_proto POST (null) [20:02:38]execute_cgi path=json_proto method=POST [20:02:38]POST find Content-Length [20:02:38]Host: 172.17.41.195:8080 [20:02:38]Content-Length: 800 [20:02:38]Content-Type: application/json [20:02:38] [20:02:38]POST finish read [20:02:38]Found Content-Length = 800 [20:02:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507875", "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" ] } } [20:02:38]execute_script... [20:02: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)507875", "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" ] } } [20:02:38]POST & json_proto [20:02:38]process_json_proto [20:02:38]json parsed OK: [20:02:38]protocol is kg_v1.0 [20:02:38]action value=close_receipt [20:02:38]process_action close_receipt [20:02:38]cmd_close_receipt [20:02:38]MH_GetDate [20:02:38]Write to MH i2c: F0 00 00 B6 0C B1 [20:02:38]Write i2c OK [20:02:38]MH_I2C_Read... [20:02:38]Read from MH i2c: F0 [20:02:38]MH_I2C_Read... [20:02:38]Read from MH i2c: F0 09 00 [20:02:38]MH_I2C_Read... [20:02:38]Read from MH i2c: F0 09 00 B6 0C 00 E0 B7 47 66 FC 21 6F 64 EE [20:02:38]GetLastDocTimeStamp 1715976055 [20:02:38]current date 1715976160 [20:02:38]FM_GetShiftState [20:02:38]SAM_PROTO_GetShiftState [20:02:38]wFMCommunicate request_size=4 [20:02:38]MH_SAM_APDU [20:02:38]CAPDU: 80 13 01 00 [20:02:38]Write to MH i2c: E2 08 00 B7 0C 80 13 01 00 00 00 00 00 40 [20:02:38]Write i2c OK [20:02:38]MH_I2C_Read... [20:02:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:38]Read from MH i2c: E2 [20:02:38]MH_I2C_Read... [20:02:38]Read from MH i2c: E2 0E 00 [20:02:38]MH_I2C_Read... [20:02:38]Read from MH i2c: E2 0E 00 B7 0C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 C6 [20:02:38]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:02:38]wFMCommunicate OK [20:02:38]SAM_PROTO_GetShiftState done [20:02:38]FM_GetShiftState done [20:02:38]opened in 1715905068 [20:02:38]opened+sec_in_day 1715991468 [20:02:38]quantity*price = 100023 [20:02:38]sum+1 = 100024 [20:02:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 130 17.05.2024 20:02 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67721 ФПД: 80636748181956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T200240&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67721&fm=80636748181956&tin=02508201610067®Number=0000000000091845&sum=100023 [20:02:39]StoreToDocumentArchive [20:02:39]shift 358 fd 67721 [20:02:39]save to /storage/0358/doc_00067721 [20:02:39]save last doc name /storage/0358/doc_00067721 to /storage/kkm_last_doc_name [20:02:39]save OK [20:02:39]Clear old archive folders... [20:02:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:02:39]tlvbuf is 01AF9180 [20:02:39]SAM_PROTO_ClearQueue [20:02:39]wFMCommunicate request_size=4 [20:02:39]MH_SAM_APDU [20:02:39]CAPDU: 80 09 00 00 [20:02:39]Write to MH i2c: E2 08 00 C4 0C 80 09 00 00 00 00 00 00 42 [20:02:39]Write i2c OK [20:02:39]MH_I2C_Read... [20:02:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:02:39]Read from MH i2c: E2 [20:02:39]MH_I2C_Read... [20:02:39]Read from MH i2c: E2 03 00 [20:02:39]MH_I2C_Read... [20:02:39]Read from MH i2c: E2 03 00 C4 0C 00 90 00 44 [20:02:39]RAPDU: 90 00 [20:02:39]wFMCommunicate OK [20:02:39]SAM_PROTO_ClearQueue done [20:02:39]KKMCreateOFDPacket [20:02:39]OFDProtocolAddRootSTLVToBuf [20:02:39]FM_MakeSignedData [20:02:39]FM_MakeSignedData [20:02:39]SAM_PROTO_SignData [20:02:39]wFMCommunicate request_size=4 [20:02:39]MH_SAM_APDU [20:02:39]CAPDU: 80 0D 01 02 [20:02:39]Write to MH i2c: E2 08 00 C5 0C 80 0D 01 02 00 00 00 00 4A [20:02:39]Write i2c OK [20:02:39]MH_I2C_Read... [20:02:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:02:40]Read from MH i2c: E2 [20:02:40]MH_I2C_Read... [20:02:40]Read from MH i2c: E2 03 00 [20:02:40]MH_I2C_Read... [20:02:40]Read from MH i2c: E2 03 00 C5 0C 00 90 00 45 [20:02:40]RAPDU: 90 00 [20:02:40]wFMCommunicate OK [20:02:40]wFMCommunicate request_size=255 [20:02:40]MH_SAM_APDU [20:02: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 82 00 00 00 F4 03 04 00 E0 B7 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 49 56 B4 BB [20:02:40]Write to MH i2c: E2 02 01 C6 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 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 82 00 00 00 F4 03 04 00 E0 B7 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 49 56 B4 BB 00 00 1F [20:02:40]Write i2c OK [20:02:40]MH_I2C_Read... [20:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:40]Read from MH i2c: E2 [20:02:40]MH_I2C_Read... [20:02:40]Read from MH i2c: E2 03 00 [20:02:40]MH_I2C_Read... [20:02:40]Read from MH i2c: E2 03 00 C6 0C 00 90 00 46 [20:02:40]RAPDU: 90 00 [20:02:40]wFMCommunicate OK [20:02:40]wFMCommunicate request_size=7 [20:02:40]MH_SAM_APDU [20:02:40]CAPDU: 80 0D 02 02 02 31 C4 [20:02:40]Write to MH i2c: E2 0A 00 C7 0C 80 0D 02 02 02 00 31 C4 00 00 46 [20:02:40]Write i2c OK [20:02:40]MH_I2C_Read... [20:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:40]Read from MH i2c: E2 [20:02:40]MH_I2C_Read... [20:02:40]Read from MH i2c: E2 03 00 [20:02:40]MH_I2C_Read... [20:02:40]Read from MH i2c: E2 03 00 C7 0C 00 90 00 47 [20:02:40]RAPDU: 90 00 [20:02:40]wFMCommunicate OK [20:02:40]wFMCommunicate request_size=4 [20:02:40]MH_SAM_APDU [20:02:40]CAPDU: 80 0D 03 02 [20:02:40]Write to MH i2c: E2 08 00 C8 0C 80 0D 03 02 00 00 00 00 4F [20:02:40]Write i2c OK [20:02:40]MH_I2C_Read... [20:02:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:02:40]Read from MH i2c: E2 [20:02:40]MH_I2C_Read... [20:02:40]Read from MH i2c: E2 0B 00 [20:02:40]MH_I2C_Read... [20:02:40]Read from MH i2c: E2 0B 00 C8 0C 00 30 A5 CA EB FC 18 51 1D 90 00 5C [20:02:40]RAPDU: 30 A5 CA EB FC 18 51 1D 90 00 [20:02:40]wFMCommunicate OK [20:02:40]SAM_PROTO_SignData done [20:02:40]FM_MakeSignedData done [20:02:40]CreateOFDProtocolMessage [20:02:40]wFMCommunicate request_size=4 [20:02:40]MH_SAM_APDU [20:02:40]CAPDU: 80 11 00 00 [20:02:40]Write to MH i2c: E2 08 00 C9 0C 80 11 00 00 00 00 00 00 4F [20:02:40]Write i2c OK [20:02:40]MH_I2C_Read... [20:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:40]Read from MH i2c: E2 [20:02:40]MH_I2C_Read... [20:02:40]Read from MH i2c: E2 17 00 [20:02:40]MH_I2C_Read... [20:02:40]Read from MH i2c: E2 17 00 C9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A5 [20:02: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:02:40]wFMCommunicate OK [20:02:40]CreateOFDProtocolMessage done [20:02:40]OFDSenderStorePacket 67721 [20:02:40]StoreOFDPacket docnum=67721 [20:02: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 D8 16 04 01 99 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 82 00 00 00 F4 03 04 00 E0 B7 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 49 56 B4 BB 31 C4 30 A5 CA EB FC 18 51 1D [20:02:40]CheckFolder [20:02:40]dirname=/storage/ofd_packets [20:02:40]CheckFolder done [20:02:40]ProducePacketName [20:02:40]name=ofd_packets/00067721 [20:02:40]NVStorageSaveData ofd_packets/00067721 [20:02:40]File name is /storage/ofd_packets/00067721 [20:02:40]Write 298 bytes [20:02:40]NVStorageSaveData done [20:02:40]OFDSenderStorePacket done [20:02:40]KKMCreateOFDPacket done [20:02:40]NVStorageSaveData kkm_last_timestamp [20:02:40]File name is /storage/kkm_last_timestamp [20:02:40]Write 4 bytes [20:02:40]NVStorageSaveData done [20:02:40]ExternCall_PrintAddStr [20:02:40]wPrintStart [20:02:40]Write to MH i2c: 01 00 00 CA 0C D6 [20:02:40]Write i2c OK [20:02:40]MH_I2C_Read... [20:02:40]Read from MH i2c: 01 [20:02:40]MH_I2C_Read... [20:02:40]Read from MH i2c: 01 07 00 [20:02:40]MH_I2C_Read... [20:02:40]Read from MH i2c: 01 07 00 CA 0C 00 00 00 00 00 FF 0F EB [20:02:40]RasterBufferAndPrint [20:02:40]line Счет N : (1)507875 [20:02:40]line ИНН: 02508201610067 [20:02:40]line Контрольно-Кассовый Чек [20:02:40]line ПРОДАЖА [20:02:40]line ТРК (МРК, ГНК) : 41 [20:02:40]line Товар: 2710194210 [20:02:40]line ДТ-К-5 [20:02:40]line 13.390 * 74.70 [20:02:40]line = 1000.23 [20:02:40]line НДС 12% НСП 1% [20:02:40]line > о реализуемом товаре [20:02:40]line ИТОГО: 1000.23 [20:02:40]line НСП 1% : 8.85 [20:02:40]line НДС 12% : 106.22 [20:02:40]line Наличными: 0.00 [20:02:40]line Безнал.: 1000.23 [20:02:40]line Место: АЗС № 91 "Партнер Нефть" [20:02:40]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:02:40]line СНО: Общий режим [20:02:40]line Чек 130 17.05.2024 20:02 [20:02:40]line Смена: 358 ФФД: 1.0 [20:02:40]line ЗНМ: 0300000119 [20:02:40]line РНМ: 0000000000091845 [20:02:40]line Версия ККМ: 001 [20:02:40]line Платежная система: O! деньги [20:02:40]line ФМ: 0000000000871829 [20:02:40]line ФД: 67721 [20:02:40]line ФПД: 80636748181956 [20:02:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T200240&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67721&fm=80636748181956&tin=02508201610067®Number=0000000000091845&sum=100023 [20:02:40]OFD Sender: Processing packet 67721 [packets to send 35, broken 34] [20:02:40]ProducePacketName [20:02:40]name=ofd_packets/00067721 [20:02:40]OFD Sender: To server: pG, [20:02:40]CommunicateWithHost lk.salyk.kg:30040 [20:02:40]ConnectInit lk.salyk.kg [20:02:40]written 0, free lines is 4095 [20:02:40]Connected sock=10 [20:02: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 0C 01 00 00 D8 16 04 01 99 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 82 00 00 00 F4 03 04 00 E0 B7 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 49 56 B4 BB 31 C4 30 A5 CA EB FC 18 51 1D [20:02: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 D2 2C 47 00 28 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 89 08 01 00 F4 03 04 00 B7 5F 47 66 B6 04 01 00 00 21 BB A2 3E F1 1F 18 3F [20:02:41]CommunicateWithHost err = 0 [20:02:41]CheckOFDResponse [20:02:41]1017 (14) - 77093643461234 [20:02:41]1041 (16) - 0000000000871829 [20:02:41]1040 (4) - 67721 [20:02:41]1012 (4) - 17.05.2024 13:46 [20:02:41]1206 (1) - 0 [20:02:41]OFD Sender: Remove packet 67721 [20:02:41]ProducePacketName [20:02:41]name=ofd_packets/00067721 [20:02:41]NVStorageDeleteData [20:02:41]Write to MH i2c: 01 00 00 F3 0C FF [20:02:41]Write i2c OK [20:02:41]MH_I2C_Read... [20:02:41]Read from MH i2c: 01 [20:02:41]MH_I2C_Read... [20:02:41]Read from MH i2c: 01 07 00 [20:02:41]MH_I2C_Read... [20:02:41]Read from MH i2c: 01 07 00 F3 0C 00 00 00 00 00 E5 0C F7 [20:02:41]RasterBufferAndPrint [20:02:41]line [20:02:41]line [20:02:41]line [20:02:41]line [20:02:41]line [20:02:41]written 0, free lines is 3306 [20:02:41]MH_Cut [20:02:41]Write to MH i2c: D1 01 00 FA 0C 01 D8 [20:02:41]Write i2c OK [20:02:41]MH_I2C_Read... [20:02:41]Read from MH i2c: D1 [20:02:41]MH_I2C_Read... [20:02:41]Read from MH i2c: D1 01 00 [20:02:41]MH_I2C_Read... [20:02:41]Read from MH i2c: D1 01 00 FA 0C 00 D7 [20:02:41]Write to MH i2c: 01 00 00 FB 0C 07 [20:02:41]Write i2c OK [20:02:41]MH_I2C_Read... [20:02:41]OFD Sender: No OFD packet to send [20:02:41]*** Cut start [20:02:41]*** Purtial cut [20:02:41]*** Stage 1: CUTSNS_PIN = 1 [20:02:42]Read from MH i2c: 01 [20:02:42]MH_I2C_Read... [20:02:42]*** Stop cut motor [20:02:42]*** Cut end [20:02:42]Read from MH i2c: 01 07 00 [20:02:42]MH_I2C_Read... [20:02:42]Read from MH i2c: 01 07 00 FB 0C 00 00 00 00 00 FF 0F 1C [20:02:42]process_action close_receipt done [20:02:42]requested_data is exist [20:02:42]produce_requested_data [20:02:42]requested_item fm.sn is exist - process it [20:02:42]wFMCommunicate request_size=4 [20:02:42]MH_SAM_APDU [20:02:42]CAPDU: 80 11 00 00 [20:02:42]Write to MH i2c: E2 08 00 FC 0C 80 11 00 00 00 00 00 00 82 [20:02:42]Write i2c OK [20:02:42]MH_I2C_Read... [20:02:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:42]Read from MH i2c: E2 [20:02:42]MH_I2C_Read... [20:02:42]Read from MH i2c: E2 17 00 [20:02:42]MH_I2C_Read... [20:02:42]Read from MH i2c: E2 17 00 FC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D8 [20:02: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:02:42]wFMCommunicate OK [20:02:42]requested_item fd.num is exist - process it [20:02:42]SAM_PROTO_GetFieldsCounters [20:02:42]wFMCommunicate request_size=4 [20:02:42]MH_SAM_APDU [20:02:42]CAPDU: 80 13 00 00 [20:02:42]Write to MH i2c: E2 08 00 FD 0C 80 13 00 00 00 00 00 00 85 [20:02:42]Write i2c OK [20:02:42]MH_I2C_Read... [20:02:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:02:42]Read from MH i2c: E2 [20:02:42]MH_I2C_Read... [20:02:42]Read from MH i2c: E2 62 00 [20:02:42]MH_I2C_Read... [20:02:42]Read from MH i2c: E2 62 00 FD 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 89 08 01 00 0E 04 04 00 66 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 2A [20:02: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 89 08 01 00 0E 04 04 00 66 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 [20:02:42]wFMCommunicate OK [20:02:42]SAM_PROTO_GetFieldsCounters done [20:02:42]requested_item shift.num is exist - process it [20:02:42]requested_item shift.opened is exist - process it [20:02:42]req_shift_opened [20:02:42]FM_GetShiftState [20:02:42]SAM_PROTO_GetShiftState [20:02:42]wFMCommunicate request_size=4 [20:02:42]MH_SAM_APDU [20:02:42]CAPDU: 80 13 01 00 [20:02:42]Write to MH i2c: E2 08 00 FE 0C 80 13 01 00 00 00 00 00 87 [20:02:42]Write i2c OK [20:02:42]MH_I2C_Read... [20:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:42]Read from MH i2c: E2 [20:02:42]MH_I2C_Read... [20:02:42]Read from MH i2c: E2 0E 00 [20:02:42]MH_I2C_Read... [20:02:42]Read from MH i2c: E2 0E 00 FE 0C 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 0D [20:02:42]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:02:42]wFMCommunicate OK [20:02:42]SAM_PROTO_GetShiftState done [20:02:42]FM_GetShiftState done [20:02:42]req_shift_opened done [20:02:42]requested_item shift.open_date is exist - process it [20:02:42]req_shift_open_date [20:02:42]req_shift_open_date done [20:02:42]produce_requested_data done [20:02:42]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67721,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:02:42]process_action_free close_receipt [20:02:42]json_value_free [20:02:42]json_value_free done [20:02:42]process_json_proto returns [20:02:42]Send response to host [20:02:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67721,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:02:42]free response buf [20:02:42]execute_script done [20:02:42]execute_script returns [20:02:42]free content buf [20:02:42]Sock 7.Close socket [20:02:42]Sock 7.Thread stoped [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]accept exits with 9 [20:04:51]New connection [20:04:51]New thread 3066608996 created [20:04:51]Thread 3066752356 joined [20:04:51]Waiting for new connection... [20:04:51] Sock 9.Parse request [20:04:51]Sock 9.Check first char [20:04:51]Sock 9.First char is OK [20:04:51]request: POST /json_proto HTTP/1.0 [20:04:51]Method: POST [20:04:51]URL: /json_proto [20:04:51]Method is POST - this is cgi request [20:04:51]url: /json_proto [20:04:51]query_string will be loaded in cgi processing [20:04:51]execute_cgi json_proto POST (null) [20:04:51]execute_cgi path=json_proto method=POST [20:04:51]POST find Content-Length [20:04:51]Host: 172.17.41.195:8080 [20:04:51]Content-Length: 677 [20:04:51]Content-Type: application/json [20:04:51] [20:04:51]POST finish read [20:04:51]Found Content-Length = 677 [20:04:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507876", "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" ] } } [20:04:51]execute_script... [20:04: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)507876", "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" ] } } [20:04:51]POST & json_proto [20:04:51]process_json_proto [20:04:51]json parsed OK: [20:04:51]protocol is kg_v1.0 [20:04:51]action value=close_receipt [20:04:51]process_action close_receipt [20:04:51]cmd_close_receipt [20:04:51]MH_GetDate [20:04:51]Write to MH i2c: F0 00 00 FF 0C FA [20:04:51]Write i2c OK [20:04:51]MH_I2C_Read... [20:04:51]Read from MH i2c: F0 [20:04:51]MH_I2C_Read... [20:04:51]Read from MH i2c: F0 09 00 [20:04:51]MH_I2C_Read... [20:04:51]Read from MH i2c: F0 09 00 FF 0C 00 64 B8 47 66 FC 21 6F 64 BC [20:04:51]GetLastDocTimeStamp 1715976160 [20:04:51]current date 1715976292 [20:04:51]FM_GetShiftState [20:04:51]SAM_PROTO_GetShiftState [20:04:51]wFMCommunicate request_size=4 [20:04:51]MH_SAM_APDU [20:04:51]CAPDU: 80 13 01 00 [20:04:51]Write to MH i2c: E2 08 00 00 0D 80 13 01 00 00 00 00 00 8A [20:04:51]Write i2c OK [20:04:51]MH_I2C_Read... [20:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:51]Read from MH i2c: E2 [20:04:51]MH_I2C_Read... [20:04:51]Read from MH i2c: E2 0E 00 [20:04:51]MH_I2C_Read... [20:04:51]Read from MH i2c: E2 0E 00 00 0D 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 10 [20:04:51]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:04:51]wFMCommunicate OK [20:04:51]SAM_PROTO_GetShiftState done [20:04:51]FM_GetShiftState done [20:04:51]opened in 1715905068 [20:04:51]opened+sec_in_day 1715991468 [20:04:51]quantity*price = 40013 [20:04:51]sum+1 = 40014 [20:04:51]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 СНО: Общий режим Чек 131 17.05.2024 20:04 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67722 ФПД: 100281897758361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T200453&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67722&fm=100281897758361&tin=02508201610067®Number=0000000000091845&sum=40000 [20:04:52]StoreToDocumentArchive [20:04:52]shift 358 fd 67722 [20:04:52]save to /storage/0358/doc_00067722 [20:04:52]save last doc name /storage/0358/doc_00067722 to /storage/kkm_last_doc_name [20:04:52]save OK [20:04:52]Clear old archive folders... [20:04:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:04:52]tlvbuf is 01B2D9B0 [20:04:52]SAM_PROTO_ClearQueue [20:04:52]wFMCommunicate request_size=4 [20:04:52]MH_SAM_APDU [20:04:52]CAPDU: 80 09 00 00 [20:04:52]Write to MH i2c: E2 08 00 0D 0D 80 09 00 00 00 00 00 00 8C [20:04:52]Write i2c OK [20:04:52]MH_I2C_Read... [20:04:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:04:52]Read from MH i2c: E2 [20:04:52]MH_I2C_Read... [20:04:52]Read from MH i2c: E2 03 00 [20:04:52]MH_I2C_Read... [20:04:52]Read from MH i2c: E2 03 00 0D 0D 00 90 00 8E [20:04:52]RAPDU: 90 00 [20:04:52]wFMCommunicate OK [20:04:52]SAM_PROTO_ClearQueue done [20:04:52]KKMCreateOFDPacket [20:04:52]OFDProtocolAddRootSTLVToBuf [20:04:52]FM_MakeSignedData [20:04:52]FM_MakeSignedData [20:04:52]SAM_PROTO_SignData [20:04:52]wFMCommunicate request_size=4 [20:04:52]MH_SAM_APDU [20:04:52]CAPDU: 80 0D 01 02 [20:04:52]Write to MH i2c: E2 08 00 0E 0D 80 0D 01 02 00 00 00 00 94 [20:04:52]Write i2c OK [20:04:52]MH_I2C_Read... [20:04:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:04:52]Read from MH i2c: E2 [20:04:52]MH_I2C_Read... [20:04:52]Read from MH i2c: E2 03 00 [20:04:52]MH_I2C_Read... [20:04:52]Read from MH i2c: E2 03 00 0E 0D 00 90 00 8F [20:04:52]RAPDU: 90 00 [20:04:52]wFMCommunicate OK [20:04:52]wFMCommunicate request_size=255 [20:04:52]MH_SAM_APDU [20:04:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 83 00 00 00 F4 03 04 00 65 B8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 5B [20:04:52]Write to MH i2c: E2 02 01 0F 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 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 83 00 00 00 F4 03 04 00 65 B8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 5B 00 00 A1 [20:04:52]Write i2c OK [20:04:52]MH_I2C_Read... [20:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:52]Read from MH i2c: E2 [20:04:52]MH_I2C_Read... [20:04:52]Read from MH i2c: E2 03 00 [20:04:52]MH_I2C_Read... [20:04:52]Read from MH i2c: E2 03 00 0F 0D 00 90 00 90 [20:04:52]RAPDU: 90 00 [20:04:52]wFMCommunicate OK [20:04:52]wFMCommunicate request_size=10 [20:04:52]MH_SAM_APDU [20:04:52]CAPDU: 80 0D 02 02 05 34 B2 E4 AE 99 [20:04:52]Write to MH i2c: E2 0D 00 10 0D 80 0D 02 02 05 00 34 B2 E4 AE 99 00 00 B2 [20:04:52]Write i2c OK [20:04:52]MH_I2C_Read... [20:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:52]Read from MH i2c: E2 [20:04:52]MH_I2C_Read... [20:04:52]Read from MH i2c: E2 03 00 [20:04:52]MH_I2C_Read... [20:04:52]Read from MH i2c: E2 03 00 10 0D 00 90 00 91 [20:04:52]RAPDU: 90 00 [20:04:52]wFMCommunicate OK [20:04:52]wFMCommunicate request_size=4 [20:04:52]MH_SAM_APDU [20:04:52]CAPDU: 80 0D 03 02 [20:04:52]Write to MH i2c: E2 08 00 11 0D 80 0D 03 02 00 00 00 00 99 [20:04:52]Write i2c OK [20:04:52]MH_I2C_Read... [20:04:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:04:52]Read from MH i2c: E2 [20:04:52]MH_I2C_Read... [20:04:52]Read from MH i2c: E2 0B 00 [20:04:52]MH_I2C_Read... [20:04:52]Read from MH i2c: E2 0B 00 11 0D 00 49 80 14 23 60 DC 9B 17 90 00 88 [20:04:52]RAPDU: 49 80 14 23 60 DC 9B 17 90 00 [20:04:52]wFMCommunicate OK [20:04:52]SAM_PROTO_SignData done [20:04:52]FM_MakeSignedData done [20:04:52]CreateOFDProtocolMessage [20:04:52]wFMCommunicate request_size=4 [20:04:52]MH_SAM_APDU [20:04:52]CAPDU: 80 11 00 00 [20:04:52]Write to MH i2c: E2 08 00 12 0D 80 11 00 00 00 00 00 00 99 [20:04:52]Write i2c OK [20:04:52]MH_I2C_Read... [20:04:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:52]Read from MH i2c: E2 [20:04:52]MH_I2C_Read... [20:04:52]Read from MH i2c: E2 17 00 [20:04:52]MH_I2C_Read... [20:04:52]Read from MH i2c: E2 17 00 12 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EF [20:04:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:04:52]wFMCommunicate OK [20:04:52]CreateOFDProtocolMessage done [20:04:52]OFDSenderStorePacket 67722 [20:04:52]StoreOFDPacket docnum=67722 [20:04: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 0F 01 00 00 62 4B 07 01 7E EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 83 00 00 00 F4 03 04 00 65 B8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 5B 34 B2 E4 AE 99 49 80 14 23 60 DC 9B 17 [20:04:52]CheckFolder [20:04:52]dirname=/storage/ofd_packets [20:04:52]CheckFolder done [20:04:52]ProducePacketName [20:04:52]name=ofd_packets/00067722 [20:04:52]NVStorageSaveData ofd_packets/00067722 [20:04:52]File name is /storage/ofd_packets/00067722 [20:04:52]Write 301 bytes [20:04:52]NVStorageSaveData done [20:04:52]OFDSenderStorePacket done [20:04:52]KKMCreateOFDPacket done [20:04:52]NVStorageSaveData kkm_last_timestamp [20:04:52]File name is /storage/kkm_last_timestamp [20:04:52]Write 4 bytes [20:04:52]NVStorageSaveData done [20:04:52]ExternCall_PrintAddStr [20:04:52]wPrintStart [20:04:52]Write to MH i2c: 01 00 00 13 0D 20 [20:04:52]OFD Sender: Processing packet 67722 [packets to send 35, broken 34] [20:04:52]ProducePacketName [20:04:52]name=ofd_packets/00067722 [20:04:52]OFD Sender: To server: pG, [20:04:52]CommunicateWithHost lk.salyk.kg:30040 [20:04:52]ConnectInit lk.salyk.kg [20:04:52]Write i2c OK [20:04:52]MH_I2C_Read... [20:04:52]Read from MH i2c: 01 [20:04:52]MH_I2C_Read... [20:04:52]Read from MH i2c: 01 07 00 [20:04:52]MH_I2C_Read... [20:04:52]Read from MH i2c: 01 07 00 13 0D 00 00 00 00 00 FF 0F 35 [20:04:52]RasterBufferAndPrint [20:04:52]line Счет N : (1)507876 [20:04:52]line ИНН: 02508201610067 [20:04:52]line Контрольно-Кассовый Чек [20:04:52]line ПРОДАЖА [20:04:52]line ТРК (МРК, ГНК) : 43 [20:04:52]line Товар: 2710124130 [20:04:52]line Аи-92-К-5 [20:04:52]line 5.990 * 66.80 [20:04:52]line = 400.13 [20:04:52]line НДС 12% НСП 1% [20:04:52]line > о реализуемом товаре [20:04:52]line ОКРУГЛЕНИЕ: -0.13 [20:04:52]line ИТОГО: 400.00 [20:04:52]line Внесено: 400.00 [20:04:52]line СДАЧА: 0.00 [20:04:52]line НСП 1% : 3.54 [20:04:52]line НДС 12% : 42.49 [20:04:52]line Наличными: 400.00 [20:04:52]line Безнал.: 0.00 [20:04:52]line Место: АЗС № 91 "Партнер Нефть" [20:04:52]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:04:52]line СНО: Общий режим [20:04:52]line Чек 131 17.05.2024 20:04 [20:04:52]line Смена: 358 ФФД: 1.0 [20:04:52]line ЗНМ: 0300000119 [20:04:52]line РНМ: 0000000000091845 [20:04:52]line Версия ККМ: 001 [20:04:52]line ФМ: 0000000000871829 [20:04:52]line ФД: 67722 [20:04:52]line ФПД: 100281897758361 [20:04:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T200453&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67722&fm=100281897758361&tin=02508201610067®Number=0000000000091845&sum=40000 [20:04:53]Connected sock=10 [20:04:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 62 4B 07 01 7E EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 83 00 00 00 F4 03 04 00 65 B8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 5B 34 B2 E4 AE 99 49 80 14 23 60 DC 9B 17 [20:04:53]written 0, free lines is 4095 [20:04: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 B2 F7 47 00 E7 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 3C 60 47 66 B6 04 01 00 00 38 F7 0C DA E3 79 CA 87 [20:04:53]CommunicateWithHost err = 0 [20:04:53]CheckOFDResponse [20:04:53]1017 (14) - 77093643461234 [20:04:53]1041 (16) - 0000000000871829 [20:04:53]1040 (4) - 67722 [20:04:53]1012 (4) - 17.05.2024 13:48 [20:04:53]1206 (1) - 0 [20:04:53]OFD Sender: Remove packet 67722 [20:04:53]ProducePacketName [20:04:53]name=ofd_packets/00067722 [20:04:53]NVStorageDeleteData [20:04:53]Write to MH i2c: 01 00 00 3D 0D 4A [20:04:53]Write i2c OK [20:04:53]MH_I2C_Read... [20:04:53]Read from MH i2c: 01 [20:04:53]MH_I2C_Read... [20:04:53]Read from MH i2c: 01 07 00 [20:04:53]MH_I2C_Read... [20:04:53]Read from MH i2c: 01 07 00 3D 0D 00 00 00 00 00 CD 0C 2A [20:04:53]RasterBufferAndPrint [20:04:53]line [20:04:53]line [20:04:53]line [20:04:53]line [20:04:53]line [20:04:53]written 0, free lines is 3283 [20:04:53]MH_Cut [20:04:53]Write to MH i2c: D1 01 00 44 0D 01 23 [20:04:53]Write i2c OK [20:04:53]MH_I2C_Read... [20:04:53]Read from MH i2c: D1 [20:04:53]MH_I2C_Read... [20:04:53]Read from MH i2c: D1 01 00 [20:04:53]MH_I2C_Read... [20:04:53]Read from MH i2c: D1 01 00 44 0D 00 22 [20:04:53]Write to MH i2c: 01 00 00 45 0D 52 [20:04:53]Write i2c OK [20:04:53]MH_I2C_Read... [20:04:53]OFD Sender: No OFD packet to send [20:04:54]*** Cut start [20:04:54]*** Purtial cut [20:04:54]*** CUTSNS_PIN = 0 [20:04:54]*** Stage 1: CUTSNS_PIN = 1 [20:04:56]Read from MH i2c: 01 [20:04:56]MH_I2C_Read... [20:04:56]*** Stop cut motor [20:04:56]*** Cut end [20:04:56]Read from MH i2c: 01 07 00 [20:04:56]MH_I2C_Read... [20:04:56]Read from MH i2c: 01 07 00 45 0D 00 00 00 00 00 FF 0F 67 [20:04:56]process_action close_receipt done [20:04:56]requested_data is exist [20:04:56]produce_requested_data [20:04:56]requested_item fm.sn is exist - process it [20:04:56]wFMCommunicate request_size=4 [20:04:56]MH_SAM_APDU [20:04:56]CAPDU: 80 11 00 00 [20:04:56]Write to MH i2c: E2 08 00 46 0D 80 11 00 00 00 00 00 00 CD [20:04:56]Write i2c OK [20:04:56]MH_I2C_Read... [20:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:56]Read from MH i2c: E2 [20:04:56]MH_I2C_Read... [20:04:56]Read from MH i2c: E2 17 00 [20:04:56]MH_I2C_Read... [20:04:56]Read from MH i2c: E2 17 00 46 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 23 [20:04:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:04:56]wFMCommunicate OK [20:04:56]requested_item fd.num is exist - process it [20:04:56]SAM_PROTO_GetFieldsCounters [20:04:56]wFMCommunicate request_size=4 [20:04:56]MH_SAM_APDU [20:04:56]CAPDU: 80 13 00 00 [20:04:56]Write to MH i2c: E2 08 00 47 0D 80 13 00 00 00 00 00 00 D0 [20:04:56]Write i2c OK [20:04:56]MH_I2C_Read... [20:04:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:04:56]Read from MH i2c: E2 [20:04:56]MH_I2C_Read... [20:04:56]Read from MH i2c: E2 62 00 [20:04:56]MH_I2C_Read... [20:04:56]Read from MH i2c: E2 62 00 47 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 8A 08 01 00 0E 04 04 00 66 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 79 [20:04: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 8A 08 01 00 0E 04 04 00 66 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 [20:04:56]wFMCommunicate OK [20:04:56]SAM_PROTO_GetFieldsCounters done [20:04:56]requested_item shift.num is exist - process it [20:04:56]requested_item shift.opened is exist - process it [20:04:56]req_shift_opened [20:04:56]FM_GetShiftState [20:04:56]SAM_PROTO_GetShiftState [20:04:56]wFMCommunicate request_size=4 [20:04:56]MH_SAM_APDU [20:04:56]CAPDU: 80 13 01 00 [20:04:56]Write to MH i2c: E2 08 00 48 0D 80 13 01 00 00 00 00 00 D2 [20:04:56]Write i2c OK [20:04:56]MH_I2C_Read... [20:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:56]Read from MH i2c: E2 [20:04:56]MH_I2C_Read... [20:04:56]Read from MH i2c: E2 0E 00 [20:04:56]MH_I2C_Read... [20:04:56]Read from MH i2c: E2 0E 00 48 0D 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 58 [20:04:56]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:04:56]wFMCommunicate OK [20:04:56]SAM_PROTO_GetShiftState done [20:04:56]FM_GetShiftState done [20:04:56]req_shift_opened done [20:04:56]requested_item shift.open_date is exist - process it [20:04:56]req_shift_open_date [20:04:56]req_shift_open_date done [20:04:56]produce_requested_data done [20:04:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67722,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:04:56]process_action_free close_receipt [20:04:56]json_value_free [20:04:56]json_value_free done [20:04:56]process_json_proto returns [20:04:56]Send response to host [20:04:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67722,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:04:56]free response buf [20:04:56]execute_script done [20:04:56]execute_script returns [20:04:56]free content buf [20:04:56]Sock 9.Close socket [20:04:56]Sock 9.Thread stoped [20:04:58]OFD Sender: No OFD packet to send [20:05:04]OFD Sender: No OFD packet to send [20:05:09]OFD Sender: No OFD packet to send [20:05:13]accept exits with 7 [20:05:13]New connection [20:05:13]New thread 3066752356 created [20:05:13]Thread 3066608996 joined [20:05:13]Waiting for new connection... [20:05:13] Sock 7.Parse request [20:05:13]Sock 7.Check first char [20:05:13]Sock 7.First char is OK [20:05:13]request: POST /json_proto HTTP/1.0 [20:05:13]Method: POST [20:05:13]URL: /json_proto [20:05:13]Method is POST - this is cgi request [20:05:13]url: /json_proto [20:05:13]query_string will be loaded in cgi processing [20:05:13]execute_cgi json_proto POST (null) [20:05:13]execute_cgi path=json_proto method=POST [20:05:13]POST find Content-Length [20:05:13]Host: 172.17.41.195:8080 [20:05:13]Content-Length: 801 [20:05:13]Content-Type: application/json [20:05:13] [20:05:13]POST finish read [20:05:13]Found Content-Length = 801 [20:05:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507872", "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.110, "sum" : 8001.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 8001.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:13]execute_script... [20:05: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)507872", "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.110, "sum" : 8001.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 8001.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:13]POST & json_proto [20:05:13]process_json_proto [20:05:13]json parsed OK: [20:05:13]protocol is kg_v1.0 [20:05:13]action value=close_receipt [20:05:13]process_action close_receipt [20:05:13]cmd_close_receipt [20:05:13]MH_GetDate [20:05:13]Write to MH i2c: F0 00 00 49 0D 45 [20:05:13]Write i2c OK [20:05:13]MH_I2C_Read... [20:05:13]Read from MH i2c: F0 [20:05:13]MH_I2C_Read... [20:05:13]Read from MH i2c: F0 09 00 [20:05:13]MH_I2C_Read... [20:05:13]Read from MH i2c: F0 09 00 49 0D 00 7B B8 47 66 FC 21 6F 64 1E [20:05:13]GetLastDocTimeStamp 1715976293 [20:05:13]current date 1715976315 [20:05:13]FM_GetShiftState [20:05:13]SAM_PROTO_GetShiftState [20:05:13]wFMCommunicate request_size=4 [20:05:13]MH_SAM_APDU [20:05:13]CAPDU: 80 13 01 00 [20:05:13]Write to MH i2c: E2 08 00 4A 0D 80 13 01 00 00 00 00 00 D4 [20:05:13]Write i2c OK [20:05:13]MH_I2C_Read... [20:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:13]Read from MH i2c: E2 [20:05:13]MH_I2C_Read... [20:05:13]Read from MH i2c: E2 0E 00 [20:05:13]MH_I2C_Read... [20:05:13]Read from MH i2c: E2 0E 00 4A 0D 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 5A [20:05:13]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:05:13]wFMCommunicate OK [20:05:13]SAM_PROTO_GetShiftState done [20:05:13]FM_GetShiftState done [20:05:13]opened in 1715905068 [20:05:13]opened+sec_in_day 1715991468 [20:05:13]quantity*price = 800111 [20:05:13]sum+1 = 800113 [20:05:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8001.12 НСП 1% : 70.81 НДС 12% : 849.68 Наличными: 0.00 Безнал.: 8001.12 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 132 17.05.2024 20:05 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67723 ФПД: 60763774341237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T200515&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67723&fm=60763774341237&tin=02508201610067®Number=0000000000091845&sum=800112 [20:05:14]StoreToDocumentArchive [20:05:14]shift 358 fd 67723 [20:05:14]save to /storage/0358/doc_00067723 [20:05:14]save last doc name /storage/0358/doc_00067723 to /storage/kkm_last_doc_name [20:05:14]save OK [20:05:14]Clear old archive folders... [20:05:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:05:14]tlvbuf is 01AC9A20 [20:05:14]SAM_PROTO_ClearQueue [20:05:14]wFMCommunicate request_size=4 [20:05:14]MH_SAM_APDU [20:05:14]CAPDU: 80 09 00 00 [20:05:14]Write to MH i2c: E2 08 00 57 0D 80 09 00 00 00 00 00 00 D6 [20:05:14]Write i2c OK [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 [20:05:14]MH_I2C_Read... [20:05:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:14]Read from MH i2c: E2 03 00 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 57 0D 00 90 00 D8 [20:05:14]RAPDU: 90 00 [20:05:14]wFMCommunicate OK [20:05:14]SAM_PROTO_ClearQueue done [20:05:14]KKMCreateOFDPacket [20:05:14]OFDProtocolAddRootSTLVToBuf [20:05:14]FM_MakeSignedData [20:05:14]FM_MakeSignedData [20:05:14]SAM_PROTO_SignData [20:05:14]wFMCommunicate request_size=4 [20:05:14]MH_SAM_APDU [20:05:14]CAPDU: 80 0D 01 02 [20:05:14]Write to MH i2c: E2 08 00 58 0D 80 0D 01 02 00 00 00 00 DE [20:05:14]Write i2c OK [20:05:14]MH_I2C_Read... [20:05:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:14]Read from MH i2c: E2 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 58 0D 00 90 00 D9 [20:05:14]RAPDU: 90 00 [20:05:14]wFMCommunicate OK [20:05:14]wFMCommunicate request_size=255 [20:05:14]MH_SAM_APDU [20:05: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 66 A2 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 70 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 7B B8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 37 43 AB 2F [20:05:14]Write to MH i2c: E2 02 01 59 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 66 A2 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 70 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 7B B8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 37 43 AB 2F 00 00 52 [20:05:14]Write i2c OK [20:05:14]MH_I2C_Read... [20:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:14]Read from MH i2c: E2 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 59 0D 00 90 00 DA [20:05:14]RAPDU: 90 00 [20:05:14]wFMCommunicate OK [20:05:14]wFMCommunicate request_size=7 [20:05:14]MH_SAM_APDU [20:05:14]CAPDU: 80 0D 02 02 02 50 75 [20:05:14]Write to MH i2c: E2 0A 00 5A 0D 80 0D 02 02 02 00 50 75 00 00 AA [20:05:14]Write i2c OK [20:05:14]MH_I2C_Read... [20:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:14]Read from MH i2c: E2 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 03 00 5A 0D 00 90 00 DB [20:05:14]RAPDU: 90 00 [20:05:14]wFMCommunicate OK [20:05:14]wFMCommunicate request_size=4 [20:05:14]MH_SAM_APDU [20:05:14]CAPDU: 80 0D 03 02 [20:05:14]Write to MH i2c: E2 08 00 5B 0D 80 0D 03 02 00 00 00 00 E3 [20:05:14]Write i2c OK [20:05:14]MH_I2C_Read... [20:05:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:14]Read from MH i2c: E2 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 0B 00 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 0B 00 5B 0D 00 1F 4A AB D3 16 23 76 B0 90 00 2A [20:05:14]RAPDU: 1F 4A AB D3 16 23 76 B0 90 00 [20:05:14]wFMCommunicate OK [20:05:14]SAM_PROTO_SignData done [20:05:14]FM_MakeSignedData done [20:05:14]CreateOFDProtocolMessage [20:05:14]wFMCommunicate request_size=4 [20:05:14]MH_SAM_APDU [20:05:14]CAPDU: 80 11 00 00 [20:05:14]Write to MH i2c: E2 08 00 5C 0D 80 11 00 00 00 00 00 00 E3 [20:05:14]Write i2c OK [20:05:14]MH_I2C_Read... [20:05:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:14]Read from MH i2c: E2 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 17 00 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: E2 17 00 5C 0D 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:05: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:05:14]wFMCommunicate OK [20:05:14]CreateOFDProtocolMessage done [20:05:14]OFDSenderStorePacket 67723 [20:05:14]StoreOFDPacket docnum=67723 [20:05: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 27 7A 04 01 99 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 66 A2 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 70 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 7B B8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 37 43 AB 2F 50 75 1F 4A AB D3 16 23 76 B0 [20:05:14]CheckFolder [20:05:14]dirname=/storage/ofd_packets [20:05:14]CheckFolder done [20:05:14]ProducePacketName [20:05:14]name=ofd_packets/00067723 [20:05:14]NVStorageSaveData ofd_packets/00067723 [20:05:14]File name is /storage/ofd_packets/00067723 [20:05:14]Write 298 bytes [20:05:14]NVStorageSaveData done [20:05:14]OFDSenderStorePacket done [20:05:14]KKMCreateOFDPacket done [20:05:14]NVStorageSaveData kkm_last_timestamp [20:05:14]File name is /storage/kkm_last_timestamp [20:05:14]Write 4 bytes [20:05:14]NVStorageSaveData done [20:05:14]ExternCall_PrintAddStr [20:05:14]wPrintStart [20:05:14]Write to MH i2c: 01 00 00 5D 0D 6A [20:05:14]Write i2c OK [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: 01 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: 01 07 00 [20:05:14]MH_I2C_Read... [20:05:14]Read from MH i2c: 01 07 00 5D 0D 00 00 00 00 00 FF 0F 7F [20:05:14]RasterBufferAndPrint [20:05:14]line Счет N : (1)507872 [20:05:14]line ИНН: 02508201610067 [20:05:14]line Контрольно-Кассовый Чек [20:05:14]line ПРОДАЖА [20:05:14]line ТРК (МРК, ГНК) : 11 [20:05:14]line Товар: 2710194210 [20:05:14]line ДТ-К-5 [20:05:14]line 107.110 * 74.70 [20:05:14]line = 8001.12 [20:05:14]line НДС 12% НСП 1% [20:05:14]line > о реализуемом товаре [20:05:14]line ИТОГО: 8001.12 [20:05:14]line НСП 1% : 70.81 [20:05:14]line НДС 12% : 849.68 [20:05:14]line Наличными: 0.00 [20:05:14]line Безнал.: 8001.12 [20:05:14]line Место: АЗС № 91 "Партнер Нефть" [20:05:14]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:05:14]line СНО: Общий режим [20:05:14]line Чек 132 17.05.2024 20:05 [20:05:14]line Смена: 358 ФФД: 1.0 [20:05:14]line ЗНМ: 0300000119 [20:05:14]line РНМ: 0000000000091845 [20:05:14]line Версия ККМ: 001 [20:05:14]line Платежная система: O! деньги [20:05:14]line ФМ: 0000000000871829 [20:05:14]line ФД: 67723 [20:05:14]line ФПД: 60763774341237 [20:05:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T200515&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67723&fm=60763774341237&tin=02508201610067®Number=0000000000091845&sum=800112 [20:05:15]OFD Sender: Processing packet 67723 [packets to send 35, broken 34] [20:05:15]ProducePacketName [20:05:15]name=ofd_packets/00067723 [20:05:15]OFD Sender: To server: pG, [20:05:15]CommunicateWithHost lk.salyk.kg:30040 [20:05:15]ConnectInit lk.salyk.kg [20:05:15]written 0, free lines is 4095 [20:05:15]Connected sock=10 [20:05: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 27 7A 04 01 99 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 66 A2 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 70 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 7B B8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 37 43 AB 2F 50 75 1F 4A AB D3 16 23 76 B0 [20:05:15]recv_with_timeout no data received [20:05:15]CommunicateWithHost answer receiving error [20:05:15]CommunicateWithHost err = -3 [20:05:15]OFD Sender: Server communicate error [20:05:15]Write to MH i2c: 01 00 00 86 0D 93 [20:05:15]Write i2c OK [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: 01 [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: 01 07 00 [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: 01 07 00 86 0D 00 00 00 00 00 E3 0C 89 [20:05:15]RasterBufferAndPrint [20:05:15]line [20:05:15]line [20:05:15]line [20:05:15]line [20:05:15]line [20:05:15]written 0, free lines is 3305 [20:05:15]MH_Cut [20:05:15]Write to MH i2c: D1 01 00 8D 0D 01 6C [20:05:15]Write i2c OK [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: D1 [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: D1 01 00 [20:05:15]MH_I2C_Read... [20:05:15]Read from MH i2c: D1 01 00 8D 0D 00 6B [20:05:15]Write to MH i2c: 01 00 00 8E 0D 9B [20:05:15]Write i2c OK [20:05:15]MH_I2C_Read... [20:05:16]*** Cut start [20:05:16]*** Purtial cut [20:05:16]*** Stage 1: CUTSNS_PIN = 1 [20:05:16]Read from MH i2c: 01 [20:05:16]MH_I2C_Read... [20:05:16]*** Stop cut motor [20:05:16]*** Cut end [20:05:16]Read from MH i2c: 01 07 00 [20:05:16]MH_I2C_Read... [20:05:16]Read from MH i2c: 01 07 00 8E 0D 00 00 00 00 00 FF 0F B0 [20:05:16]process_action close_receipt done [20:05:16]requested_data is exist [20:05:16]produce_requested_data [20:05:16]requested_item fm.sn is exist - process it [20:05:16]wFMCommunicate request_size=4 [20:05:16]MH_SAM_APDU [20:05:16]CAPDU: 80 11 00 00 [20:05:16]Write to MH i2c: E2 08 00 8F 0D 80 11 00 00 00 00 00 00 16 [20:05:16]Write i2c OK [20:05:16]MH_I2C_Read... [20:05:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:16]Read from MH i2c: E2 [20:05:16]MH_I2C_Read... [20:05:16]Read from MH i2c: E2 17 00 [20:05:16]MH_I2C_Read... [20:05:16]Read from MH i2c: E2 17 00 8F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6C [20:05:16]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:16]wFMCommunicate OK [20:05:16]requested_item fd.num is exist - process it [20:05:16]SAM_PROTO_GetFieldsCounters [20:05:16]wFMCommunicate request_size=4 [20:05:16]MH_SAM_APDU [20:05:16]CAPDU: 80 13 00 00 [20:05:16]Write to MH i2c: E2 08 00 90 0D 80 13 00 00 00 00 00 00 19 [20:05:16]Write i2c OK [20:05:16]MH_I2C_Read... [20:05:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:17]Read from MH i2c: E2 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: E2 62 00 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: E2 62 00 90 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 8B 08 01 00 0E 04 04 00 66 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 C6 [20:05: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 8B 08 01 00 0E 04 04 00 66 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 [20:05:17]wFMCommunicate OK [20:05:17]SAM_PROTO_GetFieldsCounters done [20:05:17]requested_item shift.num is exist - process it [20:05:17]requested_item shift.opened is exist - process it [20:05:17]req_shift_opened [20:05:17]FM_GetShiftState [20:05:17]SAM_PROTO_GetShiftState [20:05:17]wFMCommunicate request_size=4 [20:05:17]MH_SAM_APDU [20:05:17]CAPDU: 80 13 01 00 [20:05:17]Write to MH i2c: E2 08 00 91 0D 80 13 01 00 00 00 00 00 1B [20:05:17]Write i2c OK [20:05:17]MH_I2C_Read... [20:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:17]Read from MH i2c: E2 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: E2 0E 00 [20:05:17]MH_I2C_Read... [20:05:17]Read from MH i2c: E2 0E 00 91 0D 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 A1 [20:05:17]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:05:17]wFMCommunicate OK [20:05:17]SAM_PROTO_GetShiftState done [20:05:17]FM_GetShiftState done [20:05:17]req_shift_opened done [20:05:17]requested_item shift.open_date is exist - process it [20:05:17]req_shift_open_date [20:05:17]req_shift_open_date done [20:05:17]produce_requested_data done [20:05:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67723,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:05:17]process_action_free close_receipt [20:05:17]json_value_free [20:05:17]json_value_free done [20:05:17]process_json_proto returns [20:05:17]Send response to host [20:05:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67723,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:05:17]free response buf [20:05:17]execute_script done [20:05:17]execute_script returns [20:05:17]free content buf [20:05:17]Sock 7.Close socket [20:05:17]Sock 7.Thread stoped [20:05:20]OFD Sender: Processing packet 67723 [packets to send 35, broken 34] [20:05:20]ProducePacketName [20:05:20]name=ofd_packets/00067723 [20:05:20]OFD Sender: To server: pG, [20:05:20]CommunicateWithHost lk.salyk.kg:30040 [20:05:20]ConnectInit lk.salyk.kg [20:05:20]Connected sock=7 [20:05: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 27 7A 04 01 99 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 66 A2 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 70 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 7B B8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 37 43 AB 2F 50 75 1F 4A AB D3 16 23 76 B0 [20:05:20]recv_with_timeout no data received [20:05:20]CommunicateWithHost answer receiving error [20:05:20]CommunicateWithHost err = -3 [20:05:20]OFD Sender: Server communicate error [20:05:25]OFD Sender: Processing packet 67723 [packets to send 35, broken 34] [20:05:25]ProducePacketName [20:05:25]name=ofd_packets/00067723 [20:05:25]OFD Sender: To server: pG, [20:05:25]CommunicateWithHost lk.salyk.kg:30040 [20:05:25]ConnectInit lk.salyk.kg [20:05:25]Connected sock=7 [20:05: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 27 7A 04 01 99 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 66 A2 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 70 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 7B B8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 37 43 AB 2F 50 75 1F 4A AB D3 16 23 76 B0 [20:05:25]recv_with_timeout no data received [20:05:25]CommunicateWithHost answer receiving error [20:05:25]CommunicateWithHost err = -3 [20:05:25]OFD Sender: Server communicate error [20:05:30]OFD Sender: Processing packet 67723 [packets to send 35, broken 34] [20:05:30]ProducePacketName [20:05:30]name=ofd_packets/00067723 [20:05:30]OFD Sender: To server: pG, [20:05:30]CommunicateWithHost lk.salyk.kg:30040 [20:05:30]ConnectInit lk.salyk.kg [20:05:30]Connected sock=7 [20: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 0C 01 00 00 27 7A 04 01 99 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 66 A2 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 70 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 4B 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 35 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 7B B8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 37 43 AB 2F 50 75 1F 4A AB D3 16 23 76 B0 [20: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 84 7A 47 00 DF 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 8B 08 01 00 F4 03 04 00 61 60 47 66 B6 04 01 00 00 15 A9 BC 79 AB 80 DE 79 [20:05:30]CommunicateWithHost err = 0 [20:05:30]CheckOFDResponse [20:05:30]1017 (14) - 77093643461234 [20:05:30]1041 (16) - 0000000000871829 [20:05:30]1040 (4) - 67723 [20:05:30]1012 (4) - 17.05.2024 13:49 [20:05:30]1206 (1) - 0 [20:05:30]OFD Sender: Remove packet 67723 [20:05:30]ProducePacketName [20:05:30]name=ofd_packets/00067723 [20:05:30]NVStorageDeleteData [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:07]accept exits with 9 [20:06:07]New connection [20:06:07]New thread 3066608996 created [20:06:07]Thread 3066752356 joined [20:06:07]Waiting for new connection... [20:06:07] Sock 9.Parse request [20:06:07]Sock 9.Check first char [20:06:07]Sock 9.First char is OK [20:06:07]request: POST /json_proto HTTP/1.0 [20:06:07]Method: POST [20:06:07]URL: /json_proto [20:06:07]Method is POST - this is cgi request [20:06:07]url: /json_proto [20:06:07]query_string will be loaded in cgi processing [20:06:07]execute_cgi json_proto POST (null) [20:06:07]execute_cgi path=json_proto method=POST [20:06:07]POST find Content-Length [20:06:07]Host: 172.17.41.195:8080 [20:06:07]Content-Length: 674 [20:06:07]Content-Type: application/json [20:06:07] [20:06:07]POST finish read [20:06:07]Found Content-Length = 674 [20:06:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507878", "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" : 4.020, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:07]execute_script... [20:06: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)507878", "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" : 4.020, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:07]POST & json_proto [20:06:07]process_json_proto [20:06:07]json parsed OK: [20:06:07]protocol is kg_v1.0 [20:06:07]action value=close_receipt [20:06:07]process_action close_receipt [20:06:07]cmd_close_receipt [20:06:07]MH_GetDate [20:06:07]Write to MH i2c: F0 00 00 92 0D 8E [20:06:07]Write i2c OK [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: F0 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: F0 09 00 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: F0 09 00 92 0D 00 B1 B8 47 66 FC 21 6F 64 9D [20:06:07]GetLastDocTimeStamp 1715976315 [20:06:07]current date 1715976369 [20:06:07]FM_GetShiftState [20:06:07]SAM_PROTO_GetShiftState [20:06:07]wFMCommunicate request_size=4 [20:06:07]MH_SAM_APDU [20:06:07]CAPDU: 80 13 01 00 [20:06:07]Write to MH i2c: E2 08 00 93 0D 80 13 01 00 00 00 00 00 1D [20:06:07]Write i2c OK [20:06:07]MH_I2C_Read... [20:06:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:07]Read from MH i2c: E2 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 0E 00 [20:06:07]MH_I2C_Read... [20:06:07]Read from MH i2c: E2 0E 00 93 0D 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 A3 [20:06:07]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:06:07]wFMCommunicate OK [20:06:07]SAM_PROTO_GetShiftState done [20:06:07]FM_GetShiftState done [20:06:07]opened in 1715905068 [20:06:07]opened+sec_in_day 1715991468 [20:06:07]quantity*price = 30029 [20:06:07]sum+1 = 30030 [20:06:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 133 17.05.2024 20:06 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67724 ФПД: 32882649081281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T200609&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67724&fm=32882649081281&tin=02508201610067®Number=0000000000091845&sum=30000 [20:06:08]StoreToDocumentArchive [20:06:08]shift 358 fd 67724 [20:06:08]save to /storage/0358/doc_00067724 [20:06:08]save last doc name /storage/0358/doc_00067724 to /storage/kkm_last_doc_name [20:06:08]save OK [20:06:08]Clear old archive folders... [20:06:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:06:08]tlvbuf is 01B4CD60 [20:06:08]SAM_PROTO_ClearQueue [20:06:08]wFMCommunicate request_size=4 [20:06:08]MH_SAM_APDU [20:06:08]CAPDU: 80 09 00 00 [20:06:08]Write to MH i2c: E2 08 00 A0 0D 80 09 00 00 00 00 00 00 1F [20:06:08]Write i2c OK [20:06:08]MH_I2C_Read... [20:06:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:08]Read from MH i2c: E2 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 03 00 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 03 00 A0 0D 00 90 00 21 [20:06:08]RAPDU: 90 00 [20:06:08]wFMCommunicate OK [20:06:08]SAM_PROTO_ClearQueue done [20:06:08]KKMCreateOFDPacket [20:06:08]OFDProtocolAddRootSTLVToBuf [20:06:08]FM_MakeSignedData [20:06:08]FM_MakeSignedData [20:06:08]SAM_PROTO_SignData [20:06:08]wFMCommunicate request_size=4 [20:06:08]MH_SAM_APDU [20:06:08]CAPDU: 80 0D 01 02 [20:06:08]Write to MH i2c: E2 08 00 A1 0D 80 0D 01 02 00 00 00 00 27 [20:06:08]Write i2c OK [20:06:08]MH_I2C_Read... [20:06:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:08]Read from MH i2c: E2 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 03 00 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 03 00 A1 0D 00 90 00 22 [20:06:08]RAPDU: 90 00 [20:06:08]wFMCommunicate OK [20:06:08]wFMCommunicate request_size=255 [20:06:08]MH_SAM_APDU [20:06: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 B4 0F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 B1 B8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 1D E8 16 9E [20:06:08]Write to MH i2c: E2 02 01 A2 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 B4 0F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 B1 B8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 1D E8 16 9E 00 00 7F [20:06:08]Write i2c OK [20:06:08]MH_I2C_Read... [20:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:09]Read from MH i2c: E2 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: E2 03 00 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: E2 03 00 A2 0D 00 90 00 23 [20:06:09]RAPDU: 90 00 [20:06:09]wFMCommunicate OK [20:06:09]wFMCommunicate request_size=7 [20:06:09]MH_SAM_APDU [20:06:09]CAPDU: 80 0D 02 02 02 25 C1 [20:06:09]Write to MH i2c: E2 0A 00 A3 0D 80 0D 02 02 02 00 25 C1 00 00 14 [20:06:09]Write i2c OK [20:06:09]MH_I2C_Read... [20:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:09]Read from MH i2c: E2 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: E2 03 00 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: E2 03 00 A3 0D 00 90 00 24 [20:06:09]RAPDU: 90 00 [20:06:09]wFMCommunicate OK [20:06:09]wFMCommunicate request_size=4 [20:06:09]MH_SAM_APDU [20:06:09]CAPDU: 80 0D 03 02 [20:06:09]Write to MH i2c: E2 08 00 A4 0D 80 0D 03 02 00 00 00 00 2C [20:06:09]Write i2c OK [20:06:09]MH_I2C_Read... [20:06:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:09]Read from MH i2c: E2 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: E2 0B 00 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: E2 0B 00 A4 0D 00 FF 87 D4 23 60 6C 66 2F 90 00 0B [20:06:09]RAPDU: FF 87 D4 23 60 6C 66 2F 90 00 [20:06:09]wFMCommunicate OK [20:06:09]SAM_PROTO_SignData done [20:06:09]FM_MakeSignedData done [20:06:09]CreateOFDProtocolMessage [20:06:09]wFMCommunicate request_size=4 [20:06:09]MH_SAM_APDU [20:06:09]CAPDU: 80 11 00 00 [20:06:09]Write to MH i2c: E2 08 00 A5 0D 80 11 00 00 00 00 00 00 2C [20:06:09]Write i2c OK [20:06:09]MH_I2C_Read... [20:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:09]Read from MH i2c: E2 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: E2 17 00 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: E2 17 00 A5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 82 [20:06:09]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:09]wFMCommunicate OK [20:06:09]CreateOFDProtocolMessage done [20:06:09]OFDSenderStorePacket 67724 [20:06:09]StoreOFDPacket docnum=67724 [20:06: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 8C D8 04 01 9F 09 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 0F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 B1 B8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 1D E8 16 9E 25 C1 FF 87 D4 23 60 6C 66 2F [20:06:09]CheckFolder [20:06:09]dirname=/storage/ofd_packets [20:06:09]CheckFolder done [20:06:09]ProducePacketName [20:06:09]name=ofd_packets/00067724 [20:06:09]NVStorageSaveData ofd_packets/00067724 [20:06:09]File name is /storage/ofd_packets/00067724 [20:06:09]Write 298 bytes [20:06:09]NVStorageSaveData done [20:06:09]OFDSenderStorePacket done [20:06:09]KKMCreateOFDPacket done [20:06:09]NVStorageSaveData kkm_last_timestamp [20:06:09]File name is /storage/kkm_last_timestamp [20:06:09]Write 4 bytes [20:06:09]NVStorageSaveData done [20:06:09]ExternCall_PrintAddStr [20:06:09]wPrintStart [20:06:09]Write to MH i2c: 01 00 00 A6 0D B3 [20:06:09]Write i2c OK [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: 01 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: 01 07 00 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: 01 07 00 A6 0D 00 00 00 00 00 FF 0F C8 [20:06:09]RasterBufferAndPrint [20:06:09]line Счет N : (1)507878 [20:06:09]line ИНН: 02508201610067 [20:06:09]line Контрольно-Кассовый Чек [20:06:09]line ПРОДАЖА [20:06:09]line ТРК (МРК, ГНК) : 21 [20:06:09]line Товар: 2710194210 [20:06:09]line ДТ-К-5 [20:06:09]line 4.020 * 74.70 [20:06:09]line = 300.29 [20:06:09]line НДС 12% НСП 1% [20:06:09]line > о реализуемом товаре [20:06:09]line ОКРУГЛЕНИЕ: -0.29 [20:06:09]line ИТОГО: 300.00 [20:06:09]line Внесено: 300.00 [20:06:09]line СДАЧА: 0.00 [20:06:09]line НСП 1% : 2.66 [20:06:09]line НДС 12% : 31.89 [20:06:09]line Наличными: 300.00 [20:06:09]line Безнал.: 0.00 [20:06:09]line Место: АЗС № 91 "Партнер Нефть" [20:06:09]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:06:09]line СНО: Общий режим [20:06:09]line Чек 133 17.05.2024 20:06 [20:06:09]line Смена: 358 ФФД: 1.0 [20:06:09]line ЗНМ: 0300000119 [20:06:09]line РНМ: 0000000000091845 [20:06:09]line Версия ККМ: 001 [20:06:09]line ФМ: 0000000000871829 [20:06:09]line ФД: 67724 [20:06:09]line ФПД: 32882649081281 [20:06:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T200609&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67724&fm=32882649081281&tin=02508201610067®Number=0000000000091845&sum=30000 [20:06:09]OFD Sender: Processing packet 67724 [packets to send 35, broken 34] [20:06:09]ProducePacketName [20:06:09]name=ofd_packets/00067724 [20:06:09]OFD Sender: To server: pG, [20:06:09]CommunicateWithHost lk.salyk.kg:30040 [20:06:09]ConnectInit lk.salyk.kg [20:06:09]written 0, free lines is 4095 [20:06:10]Write to MH i2c: 01 00 00 D0 0D DD [20:06:10]Write i2c OK [20:06:10]MH_I2C_Read... [20:06:10]Read from MH i2c: 01 [20:06:10]MH_I2C_Read... [20:06:10]Read from MH i2c: 01 07 00 [20:06:10]MH_I2C_Read... [20:06:10]Read from MH i2c: 01 07 00 D0 0D 00 00 00 00 00 D2 0C C2 [20:06:10]RasterBufferAndPrint [20:06:10]line [20:06:10]line [20:06:10]line [20:06:10]line [20:06:10]line [20:06:10]written 0, free lines is 3286 [20:06:10]MH_Cut [20:06:10]Write to MH i2c: D1 01 00 D7 0D 01 B6 [20:06:10]Write i2c OK [20:06:10]MH_I2C_Read... [20:06:10]Read from MH i2c: D1 [20:06:10]MH_I2C_Read... [20:06:10]Read from MH i2c: D1 01 00 [20:06:10]MH_I2C_Read... [20:06:10]Read from MH i2c: D1 01 00 D7 0D 00 B5 [20:06:10]Write to MH i2c: 01 00 00 D8 0D E5 [20:06:10]Write i2c OK [20:06:10]MH_I2C_Read... [20:06:10]*** Cut start [20:06:10]*** Purtial cut [20:06:10]*** CUTSNS_PIN = 0 [20:06:11]*** Stage 1: CUTSNS_PIN = 1 [20:06:12]Read from MH i2c: 01 [20:06:12]MH_I2C_Read... [20:06:12]*** Stop cut motor [20:06:12]*** Cut end [20:06:12]Read from MH i2c: 01 07 00 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: 01 07 00 D8 0D 00 00 00 00 00 FF 0F FA [20:06:12]process_action close_receipt done [20:06:12]requested_data is exist [20:06:12]produce_requested_data [20:06:12]requested_item fm.sn is exist - process it [20:06:12]wFMCommunicate request_size=4 [20:06:12]MH_SAM_APDU [20:06:12]CAPDU: 80 11 00 00 [20:06:12]Write to MH i2c: E2 08 00 D9 0D 80 11 00 00 00 00 00 00 60 [20:06:12]Write i2c OK [20:06:12]MH_I2C_Read... [20:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:12]Read from MH i2c: E2 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 17 00 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 17 00 D9 0D 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:06: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:06:12]wFMCommunicate OK [20:06:12]requested_item fd.num is exist - process it [20:06:12]SAM_PROTO_GetFieldsCounters [20:06:12]wFMCommunicate request_size=4 [20:06:12]MH_SAM_APDU [20:06:12]CAPDU: 80 13 00 00 [20:06:12]Write to MH i2c: E2 08 00 DA 0D 80 13 00 00 00 00 00 00 63 [20:06:12]Write i2c OK [20:06:12]MH_I2C_Read... [20:06:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:13]Read from MH i2c: E2 [20:06:13]MH_I2C_Read... [20:06:13]Read from MH i2c: E2 62 00 [20:06:13]MH_I2C_Read... [20:06:13]Read from MH i2c: E2 62 00 DA 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 8C 08 01 00 0E 04 04 00 66 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 14 [20:06: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 8C 08 01 00 0E 04 04 00 66 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 [20:06:13]wFMCommunicate OK [20:06:13]SAM_PROTO_GetFieldsCounters done [20:06:13]requested_item shift.num is exist - process it [20:06:13]requested_item shift.opened is exist - process it [20:06:13]req_shift_opened [20:06:13]FM_GetShiftState [20:06:13]SAM_PROTO_GetShiftState [20:06:13]wFMCommunicate request_size=4 [20:06:13]MH_SAM_APDU [20:06:13]CAPDU: 80 13 01 00 [20:06:13]Write to MH i2c: E2 08 00 DB 0D 80 13 01 00 00 00 00 00 65 [20:06:13]Write i2c OK [20:06:13]MH_I2C_Read... [20:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:13]Read from MH i2c: E2 [20:06:13]MH_I2C_Read... [20:06:13]Read from MH i2c: E2 0E 00 [20:06:13]MH_I2C_Read... [20:06:13]Read from MH i2c: E2 0E 00 DB 0D 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 EB [20:06:13]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:06:13]wFMCommunicate OK [20:06:13]SAM_PROTO_GetShiftState done [20:06:13]FM_GetShiftState done [20:06:13]req_shift_opened done [20:06:13]requested_item shift.open_date is exist - process it [20:06:13]req_shift_open_date [20:06:13]req_shift_open_date done [20:06:13]produce_requested_data done [20:06:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67724,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:06:13]process_action_free close_receipt [20:06:13]json_value_free [20:06:13]json_value_free done [20:06:13]process_json_proto returns [20:06:13]Send response to host [20:06:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67724,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:06:13]free response buf [20:06:13]execute_script done [20:06:13]execute_script returns [20:06:13]free content buf [20:06:13]Sock 9.Close socket [20:06:13]Sock 9.Thread stoped [20:06:13]accept exits with 7 [20:06:13]New connection [20:06:13]New thread 3066752356 created [20:06:13]Thread 3066608996 joined [20:06:13]Waiting for new connection... [20:06:13] Sock 7.Parse request [20:06:13]Sock 7.Check first char [20:06:13]Sock 7.First char is OK [20:06:13]request: POST /json_proto HTTP/1.0 [20:06:13]Method: POST [20:06:13]URL: /json_proto [20:06:13]Method is POST - this is cgi request [20:06:13]url: /json_proto [20:06:13]query_string will be loaded in cgi processing [20:06:13]execute_cgi json_proto POST (null) [20:06:13]execute_cgi path=json_proto method=POST [20:06:13]POST find Content-Length [20:06:13]Host: 172.17.41.195:8080 [20:06:13]Content-Length: 675 [20:06:13]Content-Type: application/json [20:06:13] [20:06:13]POST finish read [20:06:13]Found Content-Length = 675 [20:06:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 12.050, "sum" : 900.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:13]execute_script... [20:06: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)507877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 12.050, "sum" : 900.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:13]POST & json_proto [20:06:13]process_json_proto [20:06:13]json parsed OK: [20:06:13]protocol is kg_v1.0 [20:06:13]action value=close_receipt [20:06:13]process_action close_receipt [20:06:13]cmd_close_receipt [20:06:13]MH_GetDate [20:06:13]Write to MH i2c: F0 00 00 DC 0D D8 [20:06:13]Write i2c OK [20:06:13]MH_I2C_Read... [20:06:13]Read from MH i2c: F0 [20:06:13]MH_I2C_Read... [20:06:13]Read from MH i2c: F0 09 00 [20:06:13]MH_I2C_Read... [20:06:13]Read from MH i2c: F0 09 00 DC 0D 00 B7 B8 47 66 FC 21 6F 64 ED [20:06:13]GetLastDocTimeStamp 1715976369 [20:06:13]current date 1715976375 [20:06:13]FM_GetShiftState [20:06:13]SAM_PROTO_GetShiftState [20:06:13]wFMCommunicate request_size=4 [20:06:13]MH_SAM_APDU [20:06:13]CAPDU: 80 13 01 00 [20:06:13]Write to MH i2c: E2 08 00 DD 0D 80 13 01 00 00 00 00 00 67 [20:06:13]Write i2c OK [20:06:13]MH_I2C_Read... [20:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:13]Read from MH i2c: E2 [20:06:13]MH_I2C_Read... [20:06:13]Read from MH i2c: E2 0E 00 [20:06:13]MH_I2C_Read... [20:06:13]Read from MH i2c: E2 0E 00 DD 0D 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 ED [20:06:13]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:06:13]wFMCommunicate OK [20:06:13]SAM_PROTO_GetShiftState done [20:06:13]FM_GetShiftState done [20:06:13]opened in 1715905068 [20:06:13]opened+sec_in_day 1715991468 [20:06:13]quantity*price = 90013 [20:06:13]sum+1 = 90015 [20:06:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 134 17.05.2024 20:06 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67725 ФПД: 127314659324881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T200615&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67725&fm=127314659324881&tin=02508201610067®Number=0000000000091845&sum=90000 [20:06:15]StoreToDocumentArchive [20:06:15]shift 358 fd 67725 [20:06:15]save to /storage/0358/doc_00067725 [20:06:15]save last doc name /storage/0358/doc_00067725 to /storage/kkm_last_doc_name [20:06:15]save OK [20:06:15]Clear old archive folders... [20:06:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:06:15]tlvbuf is 01ACAFF0 [20:06:15]SAM_PROTO_ClearQueue [20:06:15]wFMCommunicate request_size=4 [20:06:15]MH_SAM_APDU [20:06:15]CAPDU: 80 09 00 00 [20:06:15]Write to MH i2c: E2 08 00 EA 0D 80 09 00 00 00 00 00 00 69 [20:06:15]Write i2c OK [20:06:15]MH_I2C_Read... [20:06:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:15]Read from MH i2c: E2 [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: E2 03 00 [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: E2 03 00 EA 0D 00 90 00 6B [20:06:15]RAPDU: 90 00 [20:06:15]wFMCommunicate OK [20:06:15]SAM_PROTO_ClearQueue done [20:06:15]KKMCreateOFDPacket [20:06:15]OFDProtocolAddRootSTLVToBuf [20:06:15]FM_MakeSignedData [20:06:15]FM_MakeSignedData [20:06:15]SAM_PROTO_SignData [20:06:15]wFMCommunicate request_size=4 [20:06:15]MH_SAM_APDU [20:06:15]CAPDU: 80 0D 01 02 [20:06:15]Write to MH i2c: E2 08 00 EB 0D 80 0D 01 02 00 00 00 00 71 [20:06:15]Write i2c OK [20:06:15]MH_I2C_Read... [20:06:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:15]Read from MH i2c: E2 [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: E2 03 00 [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: E2 03 00 EB 0D 00 90 00 6C [20:06:15]RAPDU: 90 00 [20:06:15]wFMCommunicate OK [20:06:15]wFMCommunicate request_size=255 [20:06:15]MH_SAM_APDU [20:06:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 B7 B8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 73 CA C1 0B [20:06:15]Write to MH i2c: E2 02 01 EC 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 12 2F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 B7 B8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 73 CA C1 0B 00 00 81 [20:06:15]Write i2c OK [20:06:15]MH_I2C_Read... [20:06:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:15]Read from MH i2c: E2 [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: E2 03 00 [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: E2 03 00 EC 0D 00 90 00 6D [20:06:15]RAPDU: 90 00 [20:06:15]wFMCommunicate OK [20:06:15]wFMCommunicate request_size=7 [20:06:15]MH_SAM_APDU [20:06:15]CAPDU: 80 0D 02 02 02 33 D1 [20:06:15]Write to MH i2c: E2 0A 00 ED 0D 80 0D 02 02 02 00 33 D1 00 00 7C [20:06:15]Write i2c OK [20:06:15]MH_I2C_Read... [20:06:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:15]Read from MH i2c: E2 [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: E2 03 00 [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: E2 03 00 ED 0D 00 90 00 6E [20:06:15]RAPDU: 90 00 [20:06:15]wFMCommunicate OK [20:06:15]wFMCommunicate request_size=4 [20:06:15]MH_SAM_APDU [20:06:15]CAPDU: 80 0D 03 02 [20:06:15]Write to MH i2c: E2 08 00 EE 0D 80 0D 03 02 00 00 00 00 76 [20:06:15]Write i2c OK [20:06:15]MH_I2C_Read... [20:06:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:15]Read from MH i2c: E2 [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: E2 0B 00 [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: E2 0B 00 EE 0D 00 6B 9D 93 18 01 23 1C 77 90 00 E1 [20:06:15]RAPDU: 6B 9D 93 18 01 23 1C 77 90 00 [20:06:15]wFMCommunicate OK [20:06:15]SAM_PROTO_SignData done [20:06:15]FM_MakeSignedData done [20:06:15]CreateOFDProtocolMessage [20:06:15]wFMCommunicate request_size=4 [20:06:15]MH_SAM_APDU [20:06:15]CAPDU: 80 11 00 00 [20:06:15]Write to MH i2c: E2 08 00 EF 0D 80 11 00 00 00 00 00 00 76 [20:06:15]Write i2c OK [20:06:15]MH_I2C_Read... [20:06:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:15]Read from MH i2c: E2 [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: E2 17 00 [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: E2 17 00 EF 0D 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:06:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:06:15]wFMCommunicate OK [20:06:15]CreateOFDProtocolMessage done [20:06:15]OFDSenderStorePacket 67725 [20:06:15]StoreOFDPacket docnum=67725 [20:06: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 E4 E5 04 01 CC 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 B7 B8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 73 CA C1 0B 33 D1 6B 9D 93 18 01 23 1C 77 [20:06:15]CheckFolder [20:06:15]dirname=/storage/ofd_packets [20:06:15]CheckFolder done [20:06:15]ProducePacketName [20:06:15]name=ofd_packets/00067725 [20:06:15]NVStorageSaveData ofd_packets/00067725 [20:06:15]File name is /storage/ofd_packets/00067725 [20:06:15]Write 298 bytes [20:06:15]NVStorageSaveData done [20:06:15]OFDSenderStorePacket done [20:06:15]KKMCreateOFDPacket done [20:06:15]NVStorageSaveData kkm_last_timestamp [20:06:15]File name is /storage/kkm_last_timestamp [20:06:15]Write 4 bytes [20:06:15]NVStorageSaveData done [20:06:15]ExternCall_PrintAddStr [20:06:15]wPrintStart [20:06:15]Write to MH i2c: 01 00 00 F0 0D FD [20:06:15]Write i2c OK [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: 01 [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: 01 07 00 [20:06:15]MH_I2C_Read... [20:06:15]Read from MH i2c: 01 07 00 F0 0D 00 00 00 00 00 FF 0F 12 [20:06:15]RasterBufferAndPrint [20:06:15]line Счет N : (1)507877 [20:06:15]line ИНН: 02508201610067 [20:06:15]line Контрольно-Кассовый Чек [20:06:15]line ПРОДАЖА [20:06:15]line ТРК (МРК, ГНК) : 31 [20:06:15]line Товар: 2710194210 [20:06:15]line ДТ-К-5 [20:06:15]line 12.050 * 74.70 [20:06:15]line = 900.14 [20:06:15]line НДС 12% НСП 1% [20:06:15]line > о реализуемом товаре [20:06:15]line ОКРУГЛЕНИЕ: -0.14 [20:06:15]line ИТОГО: 900.00 [20:06:15]line Внесено: 900.00 [20:06:15]line СДАЧА: 0.00 [20:06:15]line НСП 1% : 7.97 [20:06:15]line НДС 12% : 95.59 [20:06:15]line Наличными: 900.00 [20:06:15]line Безнал.: 0.00 [20:06:15]line Место: АЗС № 91 "Партнер Нефть" [20:06:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:06:15]line СНО: Общий режим [20:06:15]line Чек 134 17.05.2024 20:06 [20:06:15]line Смена: 358 ФФД: 1.0 [20:06:15]line ЗНМ: 0300000119 [20:06:15]line РНМ: 0000000000091845 [20:06:15]line Версия ККМ: 001 [20:06:15]line ФМ: 0000000000871829 [20:06:15]line ФД: 67725 [20:06:15]line ФПД: 127314659324881 [20:06:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T200615&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67725&fm=127314659324881&tin=02508201610067®Number=0000000000091845&sum=90000 [20:06:15]written 0, free lines is 4095 [20:06:16]Write to MH i2c: 01 00 00 1A 0E 28 [20:06:16]Write i2c OK [20:06:16]MH_I2C_Read... [20:06:16]Read from MH i2c: 01 [20:06:16]MH_I2C_Read... [20:06:16]Read from MH i2c: 01 07 00 [20:06:16]MH_I2C_Read... [20:06:16]Read from MH i2c: 01 07 00 1A 0E 00 00 00 00 00 D3 0C 0E [20:06:16]RasterBufferAndPrint [20:06:16]line [20:06:16]line [20:06:16]line [20:06:16]line [20:06:16]line [20:06:16]written 0, free lines is 3292 [20:06:16]MH_Cut [20:06:16]Write to MH i2c: D1 01 00 21 0E 01 01 [20:06:16]Write i2c OK [20:06:16]MH_I2C_Read... [20:06:16]Read from MH i2c: D1 [20:06:16]MH_I2C_Read... [20:06:16]Read from MH i2c: D1 01 00 [20:06:16]MH_I2C_Read... [20:06:16]Read from MH i2c: D1 01 00 21 0E 00 00 [20:06:16]Write to MH i2c: 01 00 00 22 0E 30 [20:06:16]Write i2c OK [20:06:16]MH_I2C_Read... [20:06:17]*** Cut start [20:06:17]*** Purtial cut [20:06:17]*** Stage 1: CUTSNS_PIN = 1 [20:06:17]Read from MH i2c: 01 [20:06:17]MH_I2C_Read... [20:06:17]*** Stop cut motor [20:06:17]*** Cut end [20:06:17]Read from MH i2c: 01 07 00 [20:06:17]MH_I2C_Read... [20:06:17]Read from MH i2c: 01 07 00 22 0E 00 00 00 00 00 FF 0F 45 [20:06:17]process_action close_receipt done [20:06:17]requested_data is exist [20:06:17]produce_requested_data [20:06:17]requested_item fm.sn is exist - process it [20:06:17]wFMCommunicate request_size=4 [20:06:17]MH_SAM_APDU [20:06:17]CAPDU: 80 11 00 00 [20:06:17]Write to MH i2c: E2 08 00 23 0E 80 11 00 00 00 00 00 00 AB [20:06:17]Write i2c OK [20:06:17]MH_I2C_Read... [20:06:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:17]Read from MH i2c: E2 [20:06:17]MH_I2C_Read... [20:06:17]Read from MH i2c: E2 17 00 [20:06:17]MH_I2C_Read... [20:06:17]Read from MH i2c: E2 17 00 23 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 01 [20:06:17]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:17]wFMCommunicate OK [20:06:17]requested_item fd.num is exist - process it [20:06:17]SAM_PROTO_GetFieldsCounters [20:06:17]wFMCommunicate request_size=4 [20:06:17]MH_SAM_APDU [20:06:17]CAPDU: 80 13 00 00 [20:06:17]Write to MH i2c: E2 08 00 24 0E 80 13 00 00 00 00 00 00 AE [20:06:17]Write i2c OK [20:06:17]MH_I2C_Read... [20:06:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:17]Read from MH i2c: E2 [20:06:17]MH_I2C_Read... [20:06:17]Read from MH i2c: E2 62 00 [20:06:17]MH_I2C_Read... [20:06:17]Read from MH i2c: E2 62 00 24 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 8D 08 01 00 0E 04 04 00 66 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 63 [20:06: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 08 01 00 0E 04 04 00 66 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 [20:06:17]wFMCommunicate OK [20:06:17]SAM_PROTO_GetFieldsCounters done [20:06:17]requested_item shift.num is exist - process it [20:06:17]requested_item shift.opened is exist - process it [20:06:17]req_shift_opened [20:06:17]FM_GetShiftState [20:06:17]SAM_PROTO_GetShiftState [20:06:17]wFMCommunicate request_size=4 [20:06:17]MH_SAM_APDU [20:06:17]CAPDU: 80 13 01 00 [20:06:17]Write to MH i2c: E2 08 00 25 0E 80 13 01 00 00 00 00 00 B0 [20:06:17]Write i2c OK [20:06:17]MH_I2C_Read... [20:06:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:17]Read from MH i2c: E2 [20:06:17]MH_I2C_Read... [20:06:17]Read from MH i2c: E2 0E 00 [20:06:17]MH_I2C_Read... [20:06:17]Read from MH i2c: E2 0E 00 25 0E 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 36 [20:06:17]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:06:17]wFMCommunicate OK [20:06:17]SAM_PROTO_GetShiftState done [20:06:17]FM_GetShiftState done [20:06:17]req_shift_opened done [20:06:17]requested_item shift.open_date is exist - process it [20:06:17]req_shift_open_date [20:06:17]req_shift_open_date done [20:06:17]produce_requested_data done [20:06:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67725,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:06:17]process_action_free close_receipt [20:06:17]json_value_free [20:06:17]json_value_free done [20:06:17]process_json_proto returns [20:06:17]Send response to host [20:06:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67725,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:06:17]free response buf [20:06:17]execute_script done [20:06:17]execute_script returns [20:06:17]free content buf [20:06:17]Sock 7.Close socket [20:06:17]Sock 7.Thread stoped [20:08:21]ConnectInit Can't connect to host [20:08:21]CommunicateWithHost connect error [20:08:21]CommunicateWithHost err = -1 [20:08:21]OFD Sender: Server communicate error [20:08:21]OFD Sender: Processing packet 67724 [packets to send 36, broken 34] [20:08:21]ProducePacketName [20:08:21]name=ofd_packets/00067724 [20:08:21]OFD Sender: To server: pG, [20:08:21]CommunicateWithHost lk.salyk.kg:30040 [20:08:21]ConnectInit lk.salyk.kg [20:10:34]ConnectInit Can't connect to host [20:10:34]CommunicateWithHost connect error [20:10:34]CommunicateWithHost err = -1 [20:10:34]OFD Sender: Server communicate error [20:10:39]OFD Sender: Processing packet 67724 [packets to send 36, broken 34] [20:10:39]ProducePacketName [20:10:39]name=ofd_packets/00067724 [20:10:39]OFD Sender: To server: pG, [20:10:39]CommunicateWithHost lk.salyk.kg:30040 [20:10:39]ConnectInit lk.salyk.kg [20:10:39]Connected sock=7 [20:10: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 8C D8 04 01 9F 09 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 0F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 B1 B8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 1D E8 16 9E 25 C1 FF 87 D4 23 60 6C 66 2F [20:10: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 32 53 47 00 8C 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 8C 08 01 00 F4 03 04 00 96 61 47 66 B6 04 01 00 00 EB BA D5 BD CC 56 4A 88 [20:10:39]CommunicateWithHost err = 0 [20:10:39]CheckOFDResponse [20:10:39]1017 (14) - 77093643461234 [20:10:39]1041 (16) - 0000000000871829 [20:10:39]1040 (4) - 67724 [20:10:39]1012 (4) - 17.05.2024 13:54 [20:10:39]1206 (1) - 0 [20:10:39]OFD Sender: Remove packet 67724 [20:10:39]ProducePacketName [20:10:39]name=ofd_packets/00067724 [20:10:39]NVStorageDeleteData [20:10:40]OFD Sender: Processing packet 67725 [packets to send 35, broken 34] [20:10:40]ProducePacketName [20:10:40]name=ofd_packets/00067725 [20:10:40]OFD Sender: To server: pG, [20:10:40]CommunicateWithHost lk.salyk.kg:30040 [20:10:40]ConnectInit lk.salyk.kg [20:10:40]Connected sock=7 [20:10: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 0C 01 00 00 E4 E5 04 01 CC 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 2F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 B7 B8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 73 CA C1 0B 33 D1 6B 9D 93 18 01 23 1C 77 [20:10: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 74 A2 47 00 3A D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 97 61 47 66 B6 04 01 00 00 43 98 B8 3B A6 AF 11 52 [20:10:40]CommunicateWithHost err = 0 [20:10:40]CheckOFDResponse [20:10:40]1017 (14) - 77093643461234 [20:10:40]1041 (16) - 0000000000871829 [20:10:40]1040 (4) - 67725 [20:10:40]1012 (4) - 17.05.2024 13:54 [20:10:40]1206 (1) - 0 [20:10:40]OFD Sender: Remove packet 67725 [20:10:40]ProducePacketName [20:10:40]name=ofd_packets/00067725 [20:10:40]NVStorageDeleteData [20:10:40]OFD Sender: No OFD packet to send [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]accept exits with 9 [20:11:15]New connection [20:11:15]New thread 3066608996 created [20:11:15]Thread 3066752356 joined [20:11:15]Waiting for new connection... [20:11:15] Sock 9.Parse request [20:11:15]Sock 9.Check first char [20:11:15]Sock 9.First char is OK [20:11:15]request: POST /json_proto HTTP/1.0 [20:11:15]Method: POST [20:11:15]URL: /json_proto [20:11:15]Method is POST - this is cgi request [20:11:15]url: /json_proto [20:11:15]query_string will be loaded in cgi processing [20:11:15]execute_cgi json_proto POST (null) [20:11:15]execute_cgi path=json_proto method=POST [20:11:15]POST find Content-Length [20:11:15]Host: 172.17.41.195:8080 [20:11:15]Content-Length: 679 [20:11:15]Content-Type: application/json [20:11:15] [20:11:15]POST finish read [20:11:15]Found Content-Length = 679 [20:11:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507879", "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" ] } } [20:11:15]execute_script... [20:11: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)507879", "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" ] } } [20:11:15]POST & json_proto [20:11:15]process_json_proto [20:11:15]json parsed OK: [20:11:15]protocol is kg_v1.0 [20:11:15]action value=close_receipt [20:11:15]process_action close_receipt [20:11:15]cmd_close_receipt [20:11:15]MH_GetDate [20:11:15]Write to MH i2c: F0 00 00 26 0E 23 [20:11:15]Write i2c OK [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: F0 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: F0 09 00 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: F0 09 00 26 0E 00 E5 B9 47 66 FC 21 6F 64 67 [20:11:15]GetLastDocTimeStamp 1715976375 [20:11:15]current date 1715976677 [20:11:15]FM_GetShiftState [20:11:15]SAM_PROTO_GetShiftState [20:11:15]wFMCommunicate request_size=4 [20:11:15]MH_SAM_APDU [20:11:15]CAPDU: 80 13 01 00 [20:11:15]Write to MH i2c: E2 08 00 27 0E 80 13 01 00 00 00 00 00 B2 [20:11:15]Write i2c OK [20:11:15]MH_I2C_Read... [20:11:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:15]Read from MH i2c: E2 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: E2 0E 00 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: E2 0E 00 27 0E 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 38 [20:11:15]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:11:15]wFMCommunicate OK [20:11:15]SAM_PROTO_GetShiftState done [20:11:15]FM_GetShiftState done [20:11:15]opened in 1715905068 [20:11:15]opened+sec_in_day 1715991468 [20:11:15]quantity*price = 100023 [20:11:15]sum+1 = 100024 [20:11:15]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 СНО: Общий режим Чек 135 17.05.2024 20:11 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67726 ФПД: 216476247576036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T201117&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67726&fm=216476247576036&tin=02508201610067®Number=0000000000091845&sum=100000 [20:11:16]StoreToDocumentArchive [20:11:16]shift 358 fd 67726 [20:11:16]save to /storage/0358/doc_00067726 [20:11:16]save last doc name /storage/0358/doc_00067726 to /storage/kkm_last_doc_name [20:11:16]save OK [20:11:16]Clear old archive folders... [20:11:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:11:16]tlvbuf is 01AC9860 [20:11:16]SAM_PROTO_ClearQueue [20:11:16]wFMCommunicate request_size=4 [20:11:16]MH_SAM_APDU [20:11:16]CAPDU: 80 09 00 00 [20:11:16]Write to MH i2c: E2 08 00 34 0E 80 09 00 00 00 00 00 00 B4 [20:11:16]Write i2c OK [20:11:16]MH_I2C_Read... [20:11:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:11:16]Read from MH i2c: E2 [20:11:16]MH_I2C_Read... [20:11:16]Read from MH i2c: E2 03 00 [20:11:16]MH_I2C_Read... [20:11:16]Read from MH i2c: E2 03 00 34 0E 00 90 00 B6 [20:11:16]RAPDU: 90 00 [20:11:16]wFMCommunicate OK [20:11:16]SAM_PROTO_ClearQueue done [20:11:16]KKMCreateOFDPacket [20:11:16]OFDProtocolAddRootSTLVToBuf [20:11:16]FM_MakeSignedData [20:11:16]FM_MakeSignedData [20:11:16]SAM_PROTO_SignData [20:11:16]wFMCommunicate request_size=4 [20:11:16]MH_SAM_APDU [20:11:16]CAPDU: 80 0D 01 02 [20:11:16]Write to MH i2c: E2 08 00 35 0E 80 0D 01 02 00 00 00 00 BC [20:11:16]Write i2c OK [20:11:16]MH_I2C_Read... [20:11:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:11:16]Read from MH i2c: E2 [20:11:16]MH_I2C_Read... [20:11:16]Read from MH i2c: E2 03 00 [20:11:16]MH_I2C_Read... [20:11:16]Read from MH i2c: E2 03 00 35 0E 00 90 00 B7 [20:11:16]RAPDU: 90 00 [20:11:16]wFMCommunicate OK [20:11:16]wFMCommunicate request_size=255 [20:11:16]MH_SAM_APDU [20:11:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 87 00 00 00 F4 03 04 00 E5 B9 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 C4 E2 4D D6 [20:11:16]Write to MH i2c: E2 02 01 36 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 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 87 00 00 00 F4 03 04 00 E5 B9 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 C4 E2 4D D6 00 00 2F [20:11:16]Write i2c OK [20:11:16]MH_I2C_Read... [20:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:17]Read from MH i2c: E2 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 03 00 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 03 00 36 0E 00 90 00 B8 [20:11:17]RAPDU: 90 00 [20:11:17]wFMCommunicate OK [20:11:17]wFMCommunicate request_size=7 [20:11:17]MH_SAM_APDU [20:11:17]CAPDU: 80 0D 02 02 02 CD E4 [20:11:17]Write to MH i2c: E2 0A 00 37 0E 80 0D 02 02 02 00 CD E4 00 00 74 [20:11:17]Write i2c OK [20:11:17]MH_I2C_Read... [20:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:17]Read from MH i2c: E2 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 03 00 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 03 00 37 0E 00 90 00 B9 [20:11:17]RAPDU: 90 00 [20:11:17]wFMCommunicate OK [20:11:17]wFMCommunicate request_size=4 [20:11:17]MH_SAM_APDU [20:11:17]CAPDU: 80 0D 03 02 [20:11:17]Write to MH i2c: E2 08 00 38 0E 80 0D 03 02 00 00 00 00 C1 [20:11:17]Write i2c OK [20:11:17]MH_I2C_Read... [20:11:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:11:17]Read from MH i2c: E2 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 0B 00 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 0B 00 38 0E 00 5B C4 3D E4 8C BD A0 39 90 00 24 [20:11:17]RAPDU: 5B C4 3D E4 8C BD A0 39 90 00 [20:11:17]wFMCommunicate OK [20:11:17]SAM_PROTO_SignData done [20:11:17]FM_MakeSignedData done [20:11:17]CreateOFDProtocolMessage [20:11:17]wFMCommunicate request_size=4 [20:11:17]MH_SAM_APDU [20:11:17]CAPDU: 80 11 00 00 [20:11:17]Write to MH i2c: E2 08 00 39 0E 80 11 00 00 00 00 00 00 C1 [20:11:17]Write i2c OK [20:11:17]MH_I2C_Read... [20:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:17]Read from MH i2c: E2 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 17 00 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: E2 17 00 39 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 17 [20:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:11:17]wFMCommunicate OK [20:11:17]CreateOFDProtocolMessage done [20:11:17]OFDSenderStorePacket 67726 [20:11:17]StoreOFDPacket docnum=67726 [20:11: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 3C 7F 04 01 C4 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 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 87 00 00 00 F4 03 04 00 E5 B9 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 C4 E2 4D D6 CD E4 5B C4 3D E4 8C BD A0 39 [20:11:17]CheckFolder [20:11:17]dirname=/storage/ofd_packets [20:11:17]CheckFolder done [20:11:17]ProducePacketName [20:11:17]name=ofd_packets/00067726 [20:11:17]NVStorageSaveData ofd_packets/00067726 [20:11:17]File name is /storage/ofd_packets/00067726 [20:11:17]Write 298 bytes [20:11:17]NVStorageSaveData done [20:11:17]OFDSenderStorePacket done [20:11:17]KKMCreateOFDPacket done [20:11:17]NVStorageSaveData kkm_last_timestamp [20:11:17]File name is /storage/kkm_last_timestamp [20:11:17]Write 4 bytes [20:11:17]NVStorageSaveData done [20:11:17]ExternCall_PrintAddStr [20:11:17]wPrintStart [20:11:17]Write to MH i2c: 01 00 00 3A 0E 48 [20:11:17]Write i2c OK [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: 01 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: 01 07 00 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: 01 07 00 3A 0E 00 00 00 00 00 FF 0F 5D [20:11:17]RasterBufferAndPrint [20:11:17]line Счет N : (1)507879 [20:11:17]line ИНН: 02508201610067 [20:11:17]line Контрольно-Кассовый Чек [20:11:17]line ПРОДАЖА [20:11:17]line ТРК (МРК, ГНК) : 41 [20:11:17]line Товар: 2710194210 [20:11:17]line ДТ-К-5 [20:11:17]line 13.390 * 74.70 [20:11:17]line = 1000.23 [20:11:17]line НДС 12% НСП 1% [20:11:17]line > о реализуемом товаре [20:11:17]line ОКРУГЛЕНИЕ: -0.23 [20:11:17]line ИТОГО: 1000.00 [20:11:17]line Внесено: 1000.00 [20:11:17]line СДАЧА: 0.00 [20:11:17]line НСП 1% : 8.85 [20:11:17]line НДС 12% : 106.22 [20:11:17]line Наличными: 1000.00 [20:11:17]line Безнал.: 0.00 [20:11:17]line Место: АЗС № 91 "Партнер Нефть" [20:11:17]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:11:17]line СНО: Общий режим [20:11:17]line Чек 135 17.05.2024 20:11 [20:11:17]line Смена: 358 ФФД: 1.0 [20:11:17]line ЗНМ: 0300000119 [20:11:17]line РНМ: 0000000000091845 [20:11:17]line Версия ККМ: 001 [20:11:17]line ФМ: 0000000000871829 [20:11:17]line ФД: 67726 [20:11:17]line ФПД: 216476247576036 [20:11:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T201117&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67726&fm=216476247576036&tin=02508201610067®Number=0000000000091845&sum=100000 [20:11:17]OFD Sender: Processing packet 67726 [packets to send 35, broken 34] [20:11:17]ProducePacketName [20:11:17]name=ofd_packets/00067726 [20:11:17]OFD Sender: To server: pG, [20:11:17]CommunicateWithHost lk.salyk.kg:30040 [20:11:17]ConnectInit lk.salyk.kg [20:11:17]written 0, free lines is 4095 [20:11:17]Connected sock=10 [20:11:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 3C 7F 04 01 C4 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 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 87 00 00 00 F4 03 04 00 E5 B9 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 C4 E2 4D D6 CD E4 5B C4 3D E4 8C BD A0 39 [20:11: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 5F 19 47 00 C5 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 8E 08 01 00 F4 03 04 00 BC 61 47 66 B6 04 01 00 00 7F A0 4C 3B CF 27 AA B4 [20:11:17]CommunicateWithHost err = 0 [20:11:17]CheckOFDResponse [20:11:17]1017 (14) - 77093643461234 [20:11:17]1041 (16) - 0000000000871829 [20:11:17]1040 (4) - 67726 [20:11:17]1012 (4) - 17.05.2024 13:55 [20:11:17]1206 (1) - 0 [20:11:17]OFD Sender: Remove packet 67726 [20:11:17]ProducePacketName [20:11:17]name=ofd_packets/00067726 [20:11:17]NVStorageDeleteData [20:11:17]Write to MH i2c: 01 00 00 64 0E 72 [20:11:17]Write i2c OK [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: 01 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: 01 07 00 [20:11:17]MH_I2C_Read... [20:11:17]Read from MH i2c: 01 07 00 64 0E 00 00 00 00 00 D4 0C 59 [20:11:17]RasterBufferAndPrint [20:11:17]line [20:11:17]line [20:11:17]line [20:11:17]line [20:11:17]line [20:11:17]written 0, free lines is 3290 [20:11:18]MH_Cut [20:11:18]Write to MH i2c: D1 01 00 6B 0E 01 4B [20:11:18]Write i2c OK [20:11:18]MH_I2C_Read... [20:11:18]Read from MH i2c: D1 [20:11:18]MH_I2C_Read... [20:11:18]Read from MH i2c: D1 01 00 [20:11:18]MH_I2C_Read... [20:11:18]Read from MH i2c: D1 01 00 6B 0E 00 4A [20:11:18]Write to MH i2c: 01 00 00 6C 0E 7A [20:11:18]Write i2c OK [20:11:18]MH_I2C_Read... [20:11:18]OFD Sender: No OFD packet to send [20:11:18]*** Cut start [20:11:18]*** Purtial cut [20:11:18]*** CUTSNS_PIN = 0 [20:11:19]*** Stage 1: CUTSNS_PIN = 1 [20:11:20]Read from MH i2c: 01 [20:11:20]MH_I2C_Read... [20:11:20]*** Stop cut motor [20:11:20]*** Cut end [20:11:20]Read from MH i2c: 01 07 00 [20:11:20]MH_I2C_Read... [20:11:20]Read from MH i2c: 01 07 00 6C 0E 00 00 00 00 00 FF 0F 8F [20:11:20]process_action close_receipt done [20:11:20]requested_data is exist [20:11:20]produce_requested_data [20:11:20]requested_item fm.sn is exist - process it [20:11:20]wFMCommunicate request_size=4 [20:11:20]MH_SAM_APDU [20:11:20]CAPDU: 80 11 00 00 [20:11:20]Write to MH i2c: E2 08 00 6D 0E 80 11 00 00 00 00 00 00 F5 [20:11:20]Write i2c OK [20:11:20]MH_I2C_Read... [20:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:20]Read from MH i2c: E2 [20:11:20]MH_I2C_Read... [20:11:20]Read from MH i2c: E2 17 00 [20:11:20]MH_I2C_Read... [20:11:20]Read from MH i2c: E2 17 00 6D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4B [20:11: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:11:20]wFMCommunicate OK [20:11:20]requested_item fd.num is exist - process it [20:11:20]SAM_PROTO_GetFieldsCounters [20:11:20]wFMCommunicate request_size=4 [20:11:20]MH_SAM_APDU [20:11:20]CAPDU: 80 13 00 00 [20:11:20]Write to MH i2c: E2 08 00 6E 0E 80 13 00 00 00 00 00 00 F8 [20:11:20]Write i2c OK [20:11:20]MH_I2C_Read... [20:11:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:20]Read from MH i2c: E2 [20:11:20]MH_I2C_Read... [20:11:20]Read from MH i2c: E2 62 00 [20:11:20]MH_I2C_Read... [20:11:20]Read from MH i2c: E2 62 00 6E 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 8E 08 01 00 0E 04 04 00 66 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 B1 [20:11: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 8E 08 01 00 0E 04 04 00 66 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 [20:11:21]wFMCommunicate OK [20:11:21]SAM_PROTO_GetFieldsCounters done [20:11:21]requested_item shift.num is exist - process it [20:11:21]requested_item shift.opened is exist - process it [20:11:21]req_shift_opened [20:11:21]FM_GetShiftState [20:11:21]SAM_PROTO_GetShiftState [20:11:21]wFMCommunicate request_size=4 [20:11:21]MH_SAM_APDU [20:11:21]CAPDU: 80 13 01 00 [20:11:21]Write to MH i2c: E2 08 00 6F 0E 80 13 01 00 00 00 00 00 FA [20:11:21]Write i2c OK [20:11:21]MH_I2C_Read... [20:11:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:21]Read from MH i2c: E2 [20:11:21]MH_I2C_Read... [20:11:21]Read from MH i2c: E2 0E 00 [20:11:21]MH_I2C_Read... [20:11:21]Read from MH i2c: E2 0E 00 6F 0E 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 80 [20:11:21]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:11:21]wFMCommunicate OK [20:11:21]SAM_PROTO_GetShiftState done [20:11:21]FM_GetShiftState done [20:11:21]req_shift_opened done [20:11:21]requested_item shift.open_date is exist - process it [20:11:21]req_shift_open_date [20:11:21]req_shift_open_date done [20:11:21]produce_requested_data done [20:11:21]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67726,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:11:21]process_action_free close_receipt [20:11:21]json_value_free [20:11:21]json_value_free done [20:11:21]process_json_proto returns [20:11:21]Send response to host [20:11:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67726,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:11:21]free response buf [20:11:21]execute_script done [20:11:21]execute_script returns [20:11:21]free content buf [20:11:21]Sock 9.Close socket [20:11:21]Sock 9.Thread stoped [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:48]OFD Sender: No OFD packet to send [20:11:53]OFD Sender: No OFD packet to send [20:11:58]OFD Sender: No OFD packet to send [20:12:03]OFD Sender: No OFD packet to send [20:12:08]OFD Sender: No OFD packet to send [20:12:13]OFD Sender: No OFD packet to send [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:28]OFD Sender: No OFD packet to send [20:12:33]OFD Sender: No OFD packet to send [20:12:38]OFD Sender: No OFD packet to send [20:12:43]OFD Sender: No OFD packet to send [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:58]OFD Sender: No OFD packet to send [20:13:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:13]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:22]accept exits with 7 [20:13:22]New connection [20:13:22]New thread 3066752356 created [20:13:22]Thread 3066608996 joined [20:13:22]Waiting for new connection... [20:13:22] Sock 7.Parse request [20:13:22]Sock 7.Check first char [20:13:22]Sock 7.First char is OK [20:13:22]request: POST /json_proto HTTP/1.0 [20:13:22]Method: POST [20:13:22]URL: /json_proto [20:13:22]Method is POST - this is cgi request [20:13:22]url: /json_proto [20:13:22]query_string will be loaded in cgi processing [20:13:22]execute_cgi json_proto POST (null) [20:13:22]execute_cgi path=json_proto method=POST [20:13:22]POST find Content-Length [20:13:22]Host: 172.17.41.195:8080 [20:13:22]Content-Length: 677 [20:13:22]Content-Type: application/json [20:13:22] [20:13:22]POST finish read [20:13:22]Found Content-Length = 677 [20:13:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507880", "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" ] } } [20:13:22]execute_script... [20:13: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)507880", "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" ] } } [20:13:22]POST & json_proto [20:13:22]process_json_proto [20:13:22]json parsed OK: [20:13:22]protocol is kg_v1.0 [20:13:22]action value=close_receipt [20:13:22]process_action close_receipt [20:13:22]cmd_close_receipt [20:13:22]MH_GetDate [20:13:22]Write to MH i2c: F0 00 00 70 0E 6D [20:13:22]Write i2c OK [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: F0 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: F0 09 00 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: F0 09 00 70 0E 00 64 BA 47 66 FC 21 6F 64 31 [20:13:22]GetLastDocTimeStamp 1715976677 [20:13:22]current date 1715976804 [20:13:22]FM_GetShiftState [20:13:22]SAM_PROTO_GetShiftState [20:13:22]wFMCommunicate request_size=4 [20:13:22]MH_SAM_APDU [20:13:22]CAPDU: 80 13 01 00 [20:13:22]Write to MH i2c: E2 08 00 71 0E 80 13 01 00 00 00 00 00 FC [20:13:22]Write i2c OK [20:13:22]MH_I2C_Read... [20:13:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:22]Read from MH i2c: E2 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 0E 00 [20:13:22]MH_I2C_Read... [20:13:22]Read from MH i2c: E2 0E 00 71 0E 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 82 [20:13:22]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:13:22]wFMCommunicate OK [20:13:22]SAM_PROTO_GetShiftState done [20:13:22]FM_GetShiftState done [20:13:22]opened in 1715905068 [20:13:22]opened+sec_in_day 1715991468 [20:13:22]quantity*price = 50033 [20:13:22]sum+1 = 50034 [20:13:22]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 СНО: Общий режим Чек 136 17.05.2024 20:13 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67727 ФПД: 45462767606451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T201324&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67727&fm=45462767606451&tin=02508201610067®Number=0000000000091845&sum=50000 [20:13:23]StoreToDocumentArchive [20:13:23]shift 358 fd 67727 [20:13:23]save to /storage/0358/doc_00067727 [20:13:23]save last doc name /storage/0358/doc_00067727 to /storage/kkm_last_doc_name [20:13:23]save OK [20:13:23]Clear old archive folders... [20:13:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:13:23]tlvbuf is 01B50230 [20:13:23]SAM_PROTO_ClearQueue [20:13:23]wFMCommunicate request_size=4 [20:13:23]MH_SAM_APDU [20:13:23]CAPDU: 80 09 00 00 [20:13:23]Write to MH i2c: E2 08 00 7E 0E 80 09 00 00 00 00 00 00 FE [20:13:23]Write i2c OK [20:13:23]MH_I2C_Read... [20:13:23]Read from MH i2c: E2 [20:13:23]MH_I2C_Read... [20:13:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:23]Read from MH i2c: E2 03 00 [20:13:23]MH_I2C_Read... [20:13:23]Read from MH i2c: E2 03 00 7E 0E 00 90 00 00 [20:13:23]RAPDU: 90 00 [20:13:23]wFMCommunicate OK [20:13:23]SAM_PROTO_ClearQueue done [20:13:23]KKMCreateOFDPacket [20:13:23]OFDProtocolAddRootSTLVToBuf [20:13:23]FM_MakeSignedData [20:13:23]FM_MakeSignedData [20:13:23]SAM_PROTO_SignData [20:13:23]wFMCommunicate request_size=4 [20:13:23]MH_SAM_APDU [20:13:23]CAPDU: 80 0D 01 02 [20:13:23]Write to MH i2c: E2 08 00 7F 0E 80 0D 01 02 00 00 00 00 06 [20:13:23]Write i2c OK [20:13:23]MH_I2C_Read... [20:13:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:23]Read from MH i2c: E2 [20:13:23]MH_I2C_Read... [20:13:23]Read from MH i2c: E2 03 00 [20:13:23]MH_I2C_Read... [20:13:23]Read from MH i2c: E2 03 00 7F 0E 00 90 00 01 [20:13:23]RAPDU: 90 00 [20:13:23]wFMCommunicate OK [20:13:23]wFMCommunicate request_size=255 [20:13:23]MH_SAM_APDU [20:13: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 88 00 00 00 F4 03 04 00 64 BA 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 29 [20:13:23]Write to MH i2c: E2 02 01 80 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 88 00 00 00 F4 03 04 00 64 BA 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 29 00 00 0C [20:13:23]Write i2c OK [20:13:23]MH_I2C_Read... [20:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:24]Read from MH i2c: E2 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 03 00 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 03 00 80 0E 00 90 00 02 [20:13:24]RAPDU: 90 00 [20:13:24]wFMCommunicate OK [20:13:24]wFMCommunicate request_size=10 [20:13:24]MH_SAM_APDU [20:13:24]CAPDU: 80 0D 02 02 05 59 20 1D 1A B3 [20:13:24]Write to MH i2c: E2 0D 00 81 0E 80 0D 02 02 05 00 59 20 1D 1A B3 00 00 76 [20:13:24]Write i2c OK [20:13:24]MH_I2C_Read... [20:13:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:24]Read from MH i2c: E2 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 03 00 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 03 00 81 0E 00 90 00 03 [20:13:24]RAPDU: 90 00 [20:13:24]wFMCommunicate OK [20:13:24]wFMCommunicate request_size=4 [20:13:24]MH_SAM_APDU [20:13:24]CAPDU: 80 0D 03 02 [20:13:24]Write to MH i2c: E2 08 00 82 0E 80 0D 03 02 00 00 00 00 0B [20:13:24]Write i2c OK [20:13:24]MH_I2C_Read... [20:13:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:24]Read from MH i2c: E2 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 0B 00 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 0B 00 82 0E 00 62 AE AC 8F 10 B6 A8 7E 90 00 43 [20:13:24]RAPDU: 62 AE AC 8F 10 B6 A8 7E 90 00 [20:13:24]wFMCommunicate OK [20:13:24]SAM_PROTO_SignData done [20:13:24]FM_MakeSignedData done [20:13:24]CreateOFDProtocolMessage [20:13:24]wFMCommunicate request_size=4 [20:13:24]MH_SAM_APDU [20:13:24]CAPDU: 80 11 00 00 [20:13:24]Write to MH i2c: E2 08 00 83 0E 80 11 00 00 00 00 00 00 0B [20:13:24]Write i2c OK [20:13:24]MH_I2C_Read... [20:13:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:24]Read from MH i2c: E2 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 17 00 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: E2 17 00 83 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 61 [20:13:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:13:24]wFMCommunicate OK [20:13:24]CreateOFDProtocolMessage done [20:13:24]OFDSenderStorePacket 67727 [20:13:24]StoreOFDPacket docnum=67727 [20:13: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 0F 01 00 00 8B 1C 07 01 A4 71 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 88 00 00 00 F4 03 04 00 64 BA 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 29 59 20 1D 1A B3 62 AE AC 8F 10 B6 A8 7E [20:13:24]CheckFolder [20:13:24]dirname=/storage/ofd_packets [20:13:24]CheckFolder done [20:13:24]ProducePacketName [20:13:24]name=ofd_packets/00067727 [20:13:24]NVStorageSaveData ofd_packets/00067727 [20:13:24]File name is /storage/ofd_packets/00067727 [20:13:24]Write 301 bytes [20:13:24]NVStorageSaveData done [20:13:24]OFDSenderStorePacket done [20:13:24]KKMCreateOFDPacket done [20:13:24]NVStorageSaveData kkm_last_timestamp [20:13:24]File name is /storage/kkm_last_timestamp [20:13:24]Write 4 bytes [20:13:24]NVStorageSaveData done [20:13:24]ExternCall_PrintAddStr [20:13:24]wPrintStart [20:13:24]Write to MH i2c: 01 00 00 84 0E 92 [20:13:24]Write i2c OK [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: 01 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: 01 07 00 [20:13:24]MH_I2C_Read... [20:13:24]Read from MH i2c: 01 07 00 84 0E 00 00 00 00 00 FF 0F A7 [20:13:24]RasterBufferAndPrint [20:13:24]line Счет N : (1)507880 [20:13:24]line ИНН: 02508201610067 [20:13:24]line Контрольно-Кассовый Чек [20:13:24]line ПРОДАЖА [20:13:24]line ТРК (МРК, ГНК) : 23 [20:13:24]line Товар: 2710124130 [20:13:24]line Аи-92-К-5 [20:13:24]line 7.490 * 66.80 [20:13:24]line = 500.33 [20:13:24]line НДС 12% НСП 1% [20:13:24]line > о реализуемом товаре [20:13:24]line ОКРУГЛЕНИЕ: -0.33 [20:13:24]line ИТОГО: 500.00 [20:13:24]line Внесено: 500.00 [20:13:24]line СДАЧА: 0.00 [20:13:24]line НСП 1% : 4.43 [20:13:24]line НДС 12% : 53.13 [20:13:24]line Наличными: 500.00 [20:13:24]line Безнал.: 0.00 [20:13:24]line Место: АЗС № 91 "Партнер Нефть" [20:13:24]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:13:24]line СНО: Общий режим [20:13:24]line Чек 136 17.05.2024 20:13 [20:13:24]line Смена: 358 ФФД: 1.0 [20:13:24]line ЗНМ: 0300000119 [20:13:24]line РНМ: 0000000000091845 [20:13:24]line Версия ККМ: 001 [20:13:24]line ФМ: 0000000000871829 [20:13:24]line ФД: 67727 [20:13:24]line ФПД: 45462767606451 [20:13:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T201324&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67727&fm=45462767606451&tin=02508201610067®Number=0000000000091845&sum=50000 [20:13:24]OFD Sender: Processing packet 67727 [packets to send 35, broken 34] [20:13:24]ProducePacketName [20:13:24]name=ofd_packets/00067727 [20:13:24]OFD Sender: To server: pG, [20:13:24]CommunicateWithHost lk.salyk.kg:30040 [20:13:24]ConnectInit lk.salyk.kg [20:13:24]written 0, free lines is 4095 [20:13:24]Connected sock=10 [20:13: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 0F 01 00 00 8B 1C 07 01 A4 71 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 88 00 00 00 F4 03 04 00 64 BA 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 29 59 20 1D 1A B3 62 AE AC 8F 10 B6 A8 7E [20:13: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 3C A1 47 00 82 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 8F 08 01 00 F4 03 04 00 3B 62 47 66 B6 04 01 00 00 5B 38 1A 63 18 1B 51 17 [20:13:24]CommunicateWithHost err = 0 [20:13:24]CheckOFDResponse [20:13:24]1017 (14) - 77093643461234 [20:13:24]1041 (16) - 0000000000871829 [20:13:24]1040 (4) - 67727 [20:13:24]1012 (4) - 17.05.2024 13:57 [20:13:24]1206 (1) - 0 [20:13:24]OFD Sender: Remove packet 67727 [20:13:24]ProducePacketName [20:13:24]name=ofd_packets/00067727 [20:13:24]NVStorageDeleteData [20:13:25]Write to MH i2c: 01 00 00 AE 0E BC [20:13:25]Write i2c OK [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: 01 [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: 01 07 00 [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: 01 07 00 AE 0E 00 00 00 00 00 CB 0C 9A [20:13:25]RasterBufferAndPrint [20:13:25]line [20:13:25]line [20:13:25]line [20:13:25]line [20:13:25]line [20:13:25]written 0, free lines is 3281 [20:13:25]MH_Cut [20:13:25]Write to MH i2c: D1 01 00 B5 0E 01 95 [20:13:25]Write i2c OK [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: D1 [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: D1 01 00 [20:13:25]MH_I2C_Read... [20:13:25]Read from MH i2c: D1 01 00 B5 0E 00 94 [20:13:25]Write to MH i2c: 01 00 00 B6 0E C4 [20:13:25]Write i2c OK [20:13:25]MH_I2C_Read... [20:13:25]OFD Sender: No OFD packet to send [20:13:25]*** Cut start [20:13:25]*** Purtial cut [20:13:25]*** Stage 1: CUTSNS_PIN = 1 [20:13:26]Read from MH i2c: 01 [20:13:26]MH_I2C_Read... [20:13:26]*** Stop cut motor [20:13:26]*** Cut end [20:13:26]Read from MH i2c: 01 07 00 [20:13:26]MH_I2C_Read... [20:13:26]Read from MH i2c: 01 07 00 B6 0E 00 00 00 00 00 FF 0F D9 [20:13:26]process_action close_receipt done [20:13:26]requested_data is exist [20:13:26]produce_requested_data [20:13:26]requested_item fm.sn is exist - process it [20:13:26]wFMCommunicate request_size=4 [20:13:26]MH_SAM_APDU [20:13:26]CAPDU: 80 11 00 00 [20:13:26]Write to MH i2c: E2 08 00 B7 0E 80 11 00 00 00 00 00 00 3F [20:13:26]Write i2c OK [20:13:26]MH_I2C_Read... [20:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:26]Read from MH i2c: E2 [20:13:26]MH_I2C_Read... [20:13:26]Read from MH i2c: E2 17 00 [20:13:26]MH_I2C_Read... [20:13:26]Read from MH i2c: E2 17 00 B7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 95 [20:13: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:13:26]wFMCommunicate OK [20:13:26]requested_item fd.num is exist - process it [20:13:26]SAM_PROTO_GetFieldsCounters [20:13:26]wFMCommunicate request_size=4 [20:13:26]MH_SAM_APDU [20:13:26]CAPDU: 80 13 00 00 [20:13:26]Write to MH i2c: E2 08 00 B8 0E 80 13 00 00 00 00 00 00 42 [20:13:26]Write i2c OK [20:13:26]MH_I2C_Read... [20:13:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:26]Read from MH i2c: E2 [20:13:26]MH_I2C_Read... [20:13:26]Read from MH i2c: E2 62 00 [20:13:26]MH_I2C_Read... [20:13:26]Read from MH i2c: E2 62 00 B8 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 8F 08 01 00 0E 04 04 00 66 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 FF [20:13: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 8F 08 01 00 0E 04 04 00 66 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 [20:13:26]wFMCommunicate OK [20:13:26]SAM_PROTO_GetFieldsCounters done [20:13:26]requested_item shift.num is exist - process it [20:13:26]requested_item shift.opened is exist - process it [20:13:26]req_shift_opened [20:13:26]FM_GetShiftState [20:13:26]SAM_PROTO_GetShiftState [20:13:26]wFMCommunicate request_size=4 [20:13:26]MH_SAM_APDU [20:13:26]CAPDU: 80 13 01 00 [20:13:26]Write to MH i2c: E2 08 00 B9 0E 80 13 01 00 00 00 00 00 44 [20:13:26]Write i2c OK [20:13:26]MH_I2C_Read... [20:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:26]Read from MH i2c: E2 [20:13:26]MH_I2C_Read... [20:13:26]Read from MH i2c: E2 0E 00 [20:13:26]MH_I2C_Read... [20:13:26]Read from MH i2c: E2 0E 00 B9 0E 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CA [20:13:26]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:13:26]wFMCommunicate OK [20:13:26]SAM_PROTO_GetShiftState done [20:13:26]FM_GetShiftState done [20:13:26]req_shift_opened done [20:13:26]requested_item shift.open_date is exist - process it [20:13:26]req_shift_open_date [20:13:26]req_shift_open_date done [20:13:26]produce_requested_data done [20:13:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67727,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:13:26]process_action_free close_receipt [20:13:26]json_value_free [20:13:26]json_value_free done [20:13:26]process_json_proto returns [20:13:26]Send response to host [20:13:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67727,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:13:26]free response buf [20:13:26]execute_script done [20:13:26]execute_script returns [20:13:26]free content buf [20:13:26]Sock 7.Close socket [20:13:26]Sock 7.Thread stoped [20:13:30]OFD Sender: No OFD packet to send [20:13:35]OFD Sender: No OFD packet to send [20:13:40]OFD Sender: No OFD packet to send [20:13:45]OFD Sender: No OFD packet to send [20:13:50]OFD Sender: No OFD packet to send [20:13:55]OFD Sender: No OFD packet to send [20:14:00]OFD Sender: No OFD packet to send [20:14:05]OFD Sender: No OFD packet to send [20:14:10]OFD Sender: No OFD packet to send [20:14:15]OFD Sender: No OFD packet to send [20:14:20]OFD Sender: No OFD packet to send [20:14:25]OFD Sender: No OFD packet to send [20:14:30]OFD Sender: No OFD packet to send [20:14:35]OFD Sender: No OFD packet to send [20:14:40]OFD Sender: No OFD packet to send [20:14:45]OFD Sender: No OFD packet to send [20:14:50]OFD Sender: No OFD packet to send [20:14:55]OFD Sender: No OFD packet to send [20:15:00]OFD Sender: No OFD packet to send [20:15:04]accept exits with 9 [20:15:04]New connection [20:15:04]New thread 3066608996 created [20:15:04]Thread 3066752356 joined [20:15:04]Waiting for new connection... [20:15:04] Sock 9.Parse request [20:15:04]Sock 9.Check first char [20:15:04]Sock 9.First char is OK [20:15:04]request: POST /json_proto HTTP/1.0 [20:15:04]Method: POST [20:15:04]URL: /json_proto [20:15:04]Method is POST - this is cgi request [20:15:04]url: /json_proto [20:15:04]query_string will be loaded in cgi processing [20:15:04]execute_cgi json_proto POST (null) [20:15:04]execute_cgi path=json_proto method=POST [20:15:04]POST find Content-Length [20:15:04]Host: 172.17.41.195:8080 [20:15:04]Content-Length: 674 [20:15:04]Content-Type: application/json [20:15:04] [20:15:04]POST finish read [20:15:04]Found Content-Length = 674 [20:15:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507882", "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:15:04]execute_script... [20:15: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)507882", "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:15:04]POST & json_proto [20:15:04]process_json_proto [20:15:04]json parsed OK: [20:15:04]protocol is kg_v1.0 [20:15:04]action value=close_receipt [20:15:04]process_action close_receipt [20:15:04]cmd_close_receipt [20:15:04]MH_GetDate [20:15:04]Write to MH i2c: F0 00 00 BA 0E B7 [20:15:04]Write i2c OK [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: F0 [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: F0 09 00 [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: F0 09 00 BA 0E 00 C9 BA 47 66 FC 21 6F 64 E0 [20:15:04]GetLastDocTimeStamp 1715976804 [20:15:04]current date 1715976905 [20:15:04]FM_GetShiftState [20:15:04]SAM_PROTO_GetShiftState [20:15:04]wFMCommunicate request_size=4 [20:15:04]MH_SAM_APDU [20:15:04]CAPDU: 80 13 01 00 [20:15:04]Write to MH i2c: E2 08 00 BB 0E 80 13 01 00 00 00 00 00 46 [20:15:04]Write i2c OK [20:15:04]MH_I2C_Read... [20:15:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:04]Read from MH i2c: E2 [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: E2 0E 00 [20:15:04]MH_I2C_Read... [20:15:04]Read from MH i2c: E2 0E 00 BB 0E 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CC [20:15:04]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:15:04]wFMCommunicate OK [20:15:04]SAM_PROTO_GetShiftState done [20:15:04]FM_GetShiftState done [20:15:04]opened in 1715905068 [20:15:04]opened+sec_in_day 1715991468 [20:15:04]quantity*price = 50049 [20:15:04]sum+1 = 50050 [20:15:04]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 СНО: Общий режим Чек 137 17.05.2024 20:15 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67728 ФПД: 29647292225589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T201506&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67728&fm=29647292225589&tin=02508201610067®Number=0000000000091845&sum=50000 [20:15:05]StoreToDocumentArchive [20:15:05]shift 358 fd 67728 [20:15:05]save to /storage/0358/doc_00067728 [20:15:05]save last doc name /storage/0358/doc_00067728 to /storage/kkm_last_doc_name [20:15:05]save OK [20:15:05]Clear old archive folders... [20:15:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:15:05]tlvbuf is 01AC9F30 [20:15:05]SAM_PROTO_ClearQueue [20:15:05]wFMCommunicate request_size=4 [20:15:05]MH_SAM_APDU [20:15:05]CAPDU: 80 09 00 00 [20:15:05]Write to MH i2c: E2 08 00 C8 0E 80 09 00 00 00 00 00 00 48 [20:15:05]Write i2c OK [20:15:05]MH_I2C_Read... [20:15:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:05]Read from MH i2c: E2 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 03 00 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 03 00 C8 0E 00 90 00 4A [20:15:05]RAPDU: 90 00 [20:15:05]wFMCommunicate OK [20:15:05]SAM_PROTO_ClearQueue done [20:15:05]KKMCreateOFDPacket [20:15:05]OFDProtocolAddRootSTLVToBuf [20:15:05]FM_MakeSignedData [20:15:05]FM_MakeSignedData [20:15:05]SAM_PROTO_SignData [20:15:05]wFMCommunicate request_size=4 [20:15:05]MH_SAM_APDU [20:15:05]CAPDU: 80 0D 01 02 [20:15:05]Write to MH i2c: E2 08 00 C9 0E 80 0D 01 02 00 00 00 00 50 [20:15:05]Write i2c OK [20:15:05]MH_I2C_Read... [20:15:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:05]Read from MH i2c: E2 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 03 00 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 03 00 C9 0E 00 90 00 4B [20:15:05]RAPDU: 90 00 [20:15:05]wFMCommunicate OK [20:15:05]wFMCommunicate request_size=255 [20:15:05]MH_SAM_APDU [20:15:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 89 00 00 00 F4 03 04 00 CA BA 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 1A F6 CC 52 [20:15:05]Write to MH i2c: E2 02 01 CA 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 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 89 00 00 00 F4 03 04 00 CA BA 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 1A F6 CC 52 00 00 28 [20:15:05]Write i2c OK [20:15:05]MH_I2C_Read... [20:15:05]OFD Sender: No OFD packet to send [20:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:05]Read from MH i2c: E2 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 03 00 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 03 00 CA 0E 00 90 00 4C [20:15:05]RAPDU: 90 00 [20:15:05]wFMCommunicate OK [20:15:05]wFMCommunicate request_size=7 [20:15:05]MH_SAM_APDU [20:15:05]CAPDU: 80 0D 02 02 02 58 35 [20:15:05]Write to MH i2c: E2 0A 00 CB 0E 80 0D 02 02 02 00 58 35 00 00 E4 [20:15:05]Write i2c OK [20:15:05]MH_I2C_Read... [20:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:05]Read from MH i2c: E2 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 03 00 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 03 00 CB 0E 00 90 00 4D [20:15:05]RAPDU: 90 00 [20:15:05]wFMCommunicate OK [20:15:05]wFMCommunicate request_size=4 [20:15:05]MH_SAM_APDU [20:15:05]CAPDU: 80 0D 03 02 [20:15:05]Write to MH i2c: E2 08 00 CC 0E 80 0D 03 02 00 00 00 00 55 [20:15:05]Write i2c OK [20:15:05]MH_I2C_Read... [20:15:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:05]Read from MH i2c: E2 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 0B 00 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 0B 00 CC 0E 00 15 04 76 CD 23 89 9F 8F 90 00 8C [20:15:05]RAPDU: 15 04 76 CD 23 89 9F 8F 90 00 [20:15:05]wFMCommunicate OK [20:15:05]SAM_PROTO_SignData done [20:15:05]FM_MakeSignedData done [20:15:05]CreateOFDProtocolMessage [20:15:05]wFMCommunicate request_size=4 [20:15:05]MH_SAM_APDU [20:15:05]CAPDU: 80 11 00 00 [20:15:05]Write to MH i2c: E2 08 00 CD 0E 80 11 00 00 00 00 00 00 55 [20:15:05]Write i2c OK [20:15:05]MH_I2C_Read... [20:15:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:05]Read from MH i2c: E2 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 17 00 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: E2 17 00 CD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AB [20:15: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:15:05]wFMCommunicate OK [20:15:05]CreateOFDProtocolMessage done [20:15:05]OFDSenderStorePacket 67728 [20:15:05]StoreOFDPacket docnum=67728 [20:15: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 E7 38 04 01 F4 BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 89 00 00 00 F4 03 04 00 CA BA 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 1A F6 CC 52 58 35 15 04 76 CD 23 89 9F 8F [20:15:05]CheckFolder [20:15:05]dirname=/storage/ofd_packets [20:15:05]CheckFolder done [20:15:05]ProducePacketName [20:15:05]name=ofd_packets/00067728 [20:15:05]NVStorageSaveData ofd_packets/00067728 [20:15:05]File name is /storage/ofd_packets/00067728 [20:15:05]Write 298 bytes [20:15:05]NVStorageSaveData done [20:15:05]OFDSenderStorePacket done [20:15:05]KKMCreateOFDPacket done [20:15:05]NVStorageSaveData kkm_last_timestamp [20:15:05]File name is /storage/kkm_last_timestamp [20:15:05]Write 4 bytes [20:15:05]NVStorageSaveData done [20:15:05]ExternCall_PrintAddStr [20:15:05]wPrintStart [20:15:05]Write to MH i2c: 01 00 00 CE 0E DC [20:15:05]Write i2c OK [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: 01 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: 01 07 00 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: 01 07 00 CE 0E 00 00 00 00 00 FF 0F F1 [20:15:05]RasterBufferAndPrint [20:15:05]line Счет N : (1)507882 [20:15:05]line ИНН: 02508201610067 [20:15:05]line Контрольно-Кассовый Чек [20:15:05]line ПРОДАЖА [20:15:05]line ТРК (МРК, ГНК) : 11 [20:15:05]line Товар: 2710194210 [20:15:05]line ДТ-К-5 [20:15:05]line 6.700 * 74.70 [20:15:05]line = 500.49 [20:15:05]line НДС 12% НСП 1% [20:15:05]line > о реализуемом товаре [20:15:05]line ОКРУГЛЕНИЕ: -0.49 [20:15:05]line ИТОГО: 500.00 [20:15:05]line Внесено: 500.00 [20:15:05]line СДАЧА: 0.00 [20:15:05]line НСП 1% : 4.43 [20:15:05]line НДС 12% : 53.15 [20:15:05]line Наличными: 500.00 [20:15:05]line Безнал.: 0.00 [20:15:05]line Место: АЗС № 91 "Партнер Нефть" [20:15:05]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:15:05]line СНО: Общий режим [20:15:05]line Чек 137 17.05.2024 20:15 [20:15:05]line Смена: 358 ФФД: 1.0 [20:15:05]line ЗНМ: 0300000119 [20:15:05]line РНМ: 0000000000091845 [20:15:05]line Версия ККМ: 001 [20:15:05]line ФМ: 0000000000871829 [20:15:05]line ФД: 67728 [20:15:05]line ФПД: 29647292225589 [20:15:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T201506&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67728&fm=29647292225589&tin=02508201610067®Number=0000000000091845&sum=50000 [20:15:06]OFD Sender: Processing packet 67728 [packets to send 35, broken 34] [20:15:06]ProducePacketName [20:15:06]name=ofd_packets/00067728 [20:15:06]OFD Sender: To server: pG, [20:15:06]CommunicateWithHost lk.salyk.kg:30040 [20:15:06]ConnectInit lk.salyk.kg [20:15:06]written 0, free lines is 4095 [20:15:06]Connected sock=10 [20:15:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 E7 38 04 01 F4 BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 89 00 00 00 F4 03 04 00 CA BA 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 1A F6 CC 52 58 35 15 04 76 CD 23 89 9F 8F [20:15: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 4F 60 47 00 EA 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 90 08 01 00 F4 03 04 00 A1 62 47 66 B6 04 01 00 00 FE AB A6 75 A7 5B 33 D8 [20:15:06]CommunicateWithHost err = 0 [20:15:06]CheckOFDResponse [20:15:06]1017 (14) - 77093643461234 [20:15:06]1041 (16) - 0000000000871829 [20:15:06]1040 (4) - 67728 [20:15:06]1012 (4) - 17.05.2024 13:58 [20:15:06]1206 (1) - 0 [20:15:06]OFD Sender: Remove packet 67728 [20:15:06]ProducePacketName [20:15:06]name=ofd_packets/00067728 [20:15:06]NVStorageDeleteData [20:15:06]Write to MH i2c: 01 00 00 F8 0E 06 [20:15:06]Write i2c OK [20:15:06]MH_I2C_Read... [20:15:06]Read from MH i2c: 01 [20:15:06]MH_I2C_Read... [20:15:06]Read from MH i2c: 01 07 00 [20:15:06]MH_I2C_Read... [20:15:06]Read from MH i2c: 01 07 00 F8 0E 00 00 00 00 00 CE 0C E7 [20:15:06]RasterBufferAndPrint [20:15:06]line [20:15:06]line [20:15:06]line [20:15:06]line [20:15:06]line [20:15:06]written 0, free lines is 3285 [20:15:06]MH_Cut [20:15:06]Write to MH i2c: D1 01 00 FF 0E 01 DF [20:15:06]Write i2c OK [20:15:06]MH_I2C_Read... [20:15:06]Read from MH i2c: D1 [20:15:06]MH_I2C_Read... [20:15:06]Read from MH i2c: D1 01 00 [20:15:06]MH_I2C_Read... [20:15:06]Read from MH i2c: D1 01 00 FF 0E 00 DE [20:15:06]Write to MH i2c: 01 00 00 00 0F 0F [20:15:06]Write i2c OK [20:15:06]MH_I2C_Read... [20:15:07]OFD Sender: No OFD packet to send [20:15:07]*** Cut start [20:15:07]*** Purtial cut [20:15:07]*** CUTSNS_PIN = 0 [20:15:07]*** Stage 1: CUTSNS_PIN = 1 [20:15:09]Read from MH i2c: 01 [20:15:09]MH_I2C_Read... [20:15:09]*** Stop cut motor [20:15:09]*** Cut end [20:15:09]Read from MH i2c: 01 07 00 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: 01 07 00 00 0F 00 00 00 00 00 FF 0F 24 [20:15:09]process_action close_receipt done [20:15:09]requested_data is exist [20:15:09]produce_requested_data [20:15:09]requested_item fm.sn is exist - process it [20:15:09]wFMCommunicate request_size=4 [20:15:09]MH_SAM_APDU [20:15:09]CAPDU: 80 11 00 00 [20:15:09]Write to MH i2c: E2 08 00 01 0F 80 11 00 00 00 00 00 00 8A [20:15:09]Write i2c OK [20:15:09]MH_I2C_Read... [20:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:09]Read from MH i2c: E2 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: E2 17 00 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: E2 17 00 01 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E0 [20:15:09]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:09]wFMCommunicate OK [20:15:09]requested_item fd.num is exist - process it [20:15:09]SAM_PROTO_GetFieldsCounters [20:15:09]wFMCommunicate request_size=4 [20:15:09]MH_SAM_APDU [20:15:09]CAPDU: 80 13 00 00 [20:15:09]Write to MH i2c: E2 08 00 02 0F 80 13 00 00 00 00 00 00 8D [20:15:09]Write i2c OK [20:15:09]MH_I2C_Read... [20:15:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:09]Read from MH i2c: E2 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: E2 62 00 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: E2 62 00 02 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 90 08 01 00 0E 04 04 00 66 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 4E [20:15: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 90 08 01 00 0E 04 04 00 66 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 [20:15:09]wFMCommunicate OK [20:15:09]SAM_PROTO_GetFieldsCounters done [20:15:09]requested_item shift.num is exist - process it [20:15:09]requested_item shift.opened is exist - process it [20:15:09]req_shift_opened [20:15:09]FM_GetShiftState [20:15:09]SAM_PROTO_GetShiftState [20:15:09]wFMCommunicate request_size=4 [20:15:09]MH_SAM_APDU [20:15:09]CAPDU: 80 13 01 00 [20:15:09]Write to MH i2c: E2 08 00 03 0F 80 13 01 00 00 00 00 00 8F [20:15:09]Write i2c OK [20:15:09]MH_I2C_Read... [20:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:09]Read from MH i2c: E2 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: E2 0E 00 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: E2 0E 00 03 0F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 15 [20:15:09]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:15:09]wFMCommunicate OK [20:15:09]SAM_PROTO_GetShiftState done [20:15:09]FM_GetShiftState done [20:15:09]req_shift_opened done [20:15:09]requested_item shift.open_date is exist - process it [20:15:09]req_shift_open_date [20:15:09]req_shift_open_date done [20:15:09]produce_requested_data done [20:15:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67728,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:15:09]process_action_free close_receipt [20:15:09]json_value_free [20:15:09]json_value_free done [20:15:09]process_json_proto returns [20:15:09]Send response to host [20:15:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67728,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:15:09]free response buf [20:15:09]execute_script done [20:15:09]execute_script returns [20:15:09]free content buf [20:15:09]Sock 9.Close socket [20:15:09]Sock 9.Thread stoped [20:15:12]OFD Sender: No OFD packet to send [20:15:17]OFD Sender: No OFD packet to send [20:15:22]OFD Sender: No OFD packet to send [20:15:27]OFD Sender: No OFD packet to send [20:15:32]OFD Sender: No OFD packet to send [20:15:32]accept exits with 7 [20:15:32]New connection [20:15:32]New thread 3066752356 created [20:15:32]Thread 3066608996 joined [20:15:32]Waiting for new connection... [20:15:32] Sock 7.Parse request [20:15:32]Sock 7.Check first char [20:15:32]Sock 7.First char is OK [20:15:32]request: POST /json_proto HTTP/1.0 [20:15:32]Method: POST [20:15:32]URL: /json_proto [20:15:32]Method is POST - this is cgi request [20:15:32]url: /json_proto [20:15:32]query_string will be loaded in cgi processing [20:15:32]execute_cgi json_proto POST (null) [20:15:32]execute_cgi path=json_proto method=POST [20:15:32]POST find Content-Length [20:15:32]Host: 172.17.41.195:8080 [20:15:32]Content-Length: 678 [20:15:32]Content-Type: application/json [20:15:32] [20:15:32]POST finish read [20:15:32]Found Content-Length = 678 [20:15:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.480, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:32]execute_script... [20:15: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)507881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.480, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:32]POST & json_proto [20:15:32]process_json_proto [20:15:32]json parsed OK: [20:15:32]protocol is kg_v1.0 [20:15:32]action value=close_receipt [20:15:32]process_action close_receipt [20:15:32]cmd_close_receipt [20:15:32]MH_GetDate [20:15:32]Write to MH i2c: F0 00 00 04 0F 02 [20:15:32]Write i2c OK [20:15:32]MH_I2C_Read... [20:15:32]Read from MH i2c: F0 [20:15:32]MH_I2C_Read... [20:15:32]Read from MH i2c: F0 09 00 [20:15:32]MH_I2C_Read... [20:15:32]Read from MH i2c: F0 09 00 04 0F 00 E5 BA 47 66 FC 21 6F 64 47 [20:15:32]GetLastDocTimeStamp 1715976906 [20:15:32]current date 1715976933 [20:15:32]FM_GetShiftState [20:15:32]SAM_PROTO_GetShiftState [20:15:32]wFMCommunicate request_size=4 [20:15:32]MH_SAM_APDU [20:15:32]CAPDU: 80 13 01 00 [20:15:32]Write to MH i2c: E2 08 00 05 0F 80 13 01 00 00 00 00 00 91 [20:15:32]Write i2c OK [20:15:32]MH_I2C_Read... [20:15:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:32]Read from MH i2c: E2 [20:15:32]MH_I2C_Read... [20:15:32]Read from MH i2c: E2 0E 00 [20:15:32]MH_I2C_Read... [20:15:32]Read from MH i2c: E2 0E 00 05 0F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 17 [20:15:32]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:15:32]wFMCommunicate OK [20:15:32]SAM_PROTO_GetShiftState done [20:15:32]FM_GetShiftState done [20:15:32]opened in 1715905068 [20:15:32]opened+sec_in_day 1715991468 [20:15:32]quantity*price = 70006 [20:15:32]sum+1 = 70007 [20:15:32]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 СНО: Общий режим Чек 138 17.05.2024 20:15 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67729 ФПД: 128044176663099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T201533&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67729&fm=128044176663099&tin=02508201610067®Number=0000000000091845&sum=70000 [20:15:33]StoreToDocumentArchive [20:15:33]shift 358 fd 67729 [20:15:33]save to /storage/0358/doc_00067729 [20:15:33]save last doc name /storage/0358/doc_00067729 to /storage/kkm_last_doc_name [20:15:33]save OK [20:15:33]Clear old archive folders... [20:15:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:15:33]tlvbuf is 01AEA260 [20:15:33]SAM_PROTO_ClearQueue [20:15:33]wFMCommunicate request_size=4 [20:15:33]MH_SAM_APDU [20:15:33]CAPDU: 80 09 00 00 [20:15:33]Write to MH i2c: E2 08 00 12 0F 80 09 00 00 00 00 00 00 93 [20:15:33]Write i2c OK [20:15:33]MH_I2C_Read... [20:15:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:33]Read from MH i2c: E2 [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: E2 03 00 [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: E2 03 00 12 0F 00 90 00 95 [20:15:33]RAPDU: 90 00 [20:15:33]wFMCommunicate OK [20:15:33]SAM_PROTO_ClearQueue done [20:15:33]KKMCreateOFDPacket [20:15:33]OFDProtocolAddRootSTLVToBuf [20:15:33]FM_MakeSignedData [20:15:33]FM_MakeSignedData [20:15:33]SAM_PROTO_SignData [20:15:33]wFMCommunicate request_size=4 [20:15:33]MH_SAM_APDU [20:15:33]CAPDU: 80 0D 01 02 [20:15:33]Write to MH i2c: E2 08 00 13 0F 80 0D 01 02 00 00 00 00 9B [20:15:33]Write i2c OK [20:15:33]MH_I2C_Read... [20:15:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:33]Read from MH i2c: E2 [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: E2 03 00 [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: E2 03 00 13 0F 00 90 00 96 [20:15:33]RAPDU: 90 00 [20:15:33]wFMCommunicate OK [20:15:33]wFMCommunicate request_size=255 [20:15:33]MH_SAM_APDU [20:15:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8A 00 00 00 F4 03 04 00 E5 BA 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 74 [20:15:33]Write to MH i2c: E2 02 01 14 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8A 00 00 00 F4 03 04 00 E5 BA 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 74 00 00 5F [20:15:33]Write i2c OK [20:15:33]MH_I2C_Read... [20:15:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:33]Read from MH i2c: E2 [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: E2 03 00 [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: E2 03 00 14 0F 00 90 00 97 [20:15:33]RAPDU: 90 00 [20:15:33]wFMCommunicate OK [20:15:33]wFMCommunicate request_size=10 [20:15:33]MH_SAM_APDU [20:15:33]CAPDU: 80 0D 02 02 05 74 9B AA 62 3B [20:15:33]Write to MH i2c: E2 0D 00 15 0F 80 0D 02 02 05 00 74 9B AA 62 3B 00 00 FE [20:15:33]Write i2c OK [20:15:33]MH_I2C_Read... [20:15:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:33]Read from MH i2c: E2 [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: E2 03 00 [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: E2 03 00 15 0F 00 90 00 98 [20:15:33]RAPDU: 90 00 [20:15:33]wFMCommunicate OK [20:15:33]wFMCommunicate request_size=4 [20:15:33]MH_SAM_APDU [20:15:33]CAPDU: 80 0D 03 02 [20:15:33]Write to MH i2c: E2 08 00 16 0F 80 0D 03 02 00 00 00 00 A0 [20:15:33]Write i2c OK [20:15:33]MH_I2C_Read... [20:15:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:33]Read from MH i2c: E2 [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: E2 0B 00 [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: E2 0B 00 16 0F 00 B3 85 D9 DC B2 A3 B5 35 90 00 CD [20:15:33]RAPDU: B3 85 D9 DC B2 A3 B5 35 90 00 [20:15:33]wFMCommunicate OK [20:15:33]SAM_PROTO_SignData done [20:15:33]FM_MakeSignedData done [20:15:33]CreateOFDProtocolMessage [20:15:33]wFMCommunicate request_size=4 [20:15:33]MH_SAM_APDU [20:15:33]CAPDU: 80 11 00 00 [20:15:33]Write to MH i2c: E2 08 00 17 0F 80 11 00 00 00 00 00 00 A0 [20:15:33]Write i2c OK [20:15:33]MH_I2C_Read... [20:15:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:33]Read from MH i2c: E2 [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: E2 17 00 [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: E2 17 00 17 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F6 [20:15:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:15:33]wFMCommunicate OK [20:15:33]CreateOFDProtocolMessage done [20:15:33]OFDSenderStorePacket 67729 [20:15:33]StoreOFDPacket docnum=67729 [20:15:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 AD 63 07 01 F3 0A 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 8A 00 00 00 F4 03 04 00 E5 BA 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 74 74 9B AA 62 3B B3 85 D9 DC B2 A3 B5 35 [20:15:33]CheckFolder [20:15:33]dirname=/storage/ofd_packets [20:15:33]CheckFolder done [20:15:33]ProducePacketName [20:15:33]name=ofd_packets/00067729 [20:15:33]NVStorageSaveData ofd_packets/00067729 [20:15:33]File name is /storage/ofd_packets/00067729 [20:15:33]Write 301 bytes [20:15:33]NVStorageSaveData done [20:15:33]OFDSenderStorePacket done [20:15:33]KKMCreateOFDPacket done [20:15:33]NVStorageSaveData kkm_last_timestamp [20:15:33]File name is /storage/kkm_last_timestamp [20:15:33]Write 4 bytes [20:15:33]NVStorageSaveData done [20:15:33]ExternCall_PrintAddStr [20:15:33]wPrintStart [20:15:33]Write to MH i2c: 01 00 00 18 0F 27 [20:15:33]Write i2c OK [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: 01 [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: 01 07 00 [20:15:33]MH_I2C_Read... [20:15:33]Read from MH i2c: 01 07 00 18 0F 00 00 00 00 00 FF 0F 3C [20:15:33]RasterBufferAndPrint [20:15:33]line Счет N : (1)507881 [20:15:33]line ИНН: 02508201610067 [20:15:33]line Контрольно-Кассовый Чек [20:15:33]line ПРОДАЖА [20:15:33]line ТРК (МРК, ГНК) : 33 [20:15:33]line Товар: 2710124130 [20:15:33]line Аи-92-К-5 [20:15:33]line 10.480 * 66.80 [20:15:33]line = 700.06 [20:15:33]line НДС 12% НСП 1% [20:15:33]line > о реализуемом товаре [20:15:33]line ОКРУГЛЕНИЕ: -0.06 [20:15:33]line ИТОГО: 700.00 [20:15:33]line Внесено: 700.00 [20:15:33]line СДАЧА: 0.00 [20:15:33]line НСП 1% : 6.19 [20:15:33]line НДС 12% : 74.34 [20:15:33]line Наличными: 700.00 [20:15:33]line Безнал.: 0.00 [20:15:33]line Место: АЗС № 91 "Партнер Нефть" [20:15:33]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:15:33]line СНО: Общий режим [20:15:33]line Чек 138 17.05.2024 20:15 [20:15:33]line Смена: 358 ФФД: 1.0 [20:15:33]line ЗНМ: 0300000119 [20:15:33]line РНМ: 0000000000091845 [20:15:33]line Версия ККМ: 001 [20:15:33]line ФМ: 0000000000871829 [20:15:33]line ФД: 67729 [20:15:33]line ФПД: 128044176663099 [20:15:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T201533&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67729&fm=128044176663099&tin=02508201610067®Number=0000000000091845&sum=70000 [20:15:34]written 0, free lines is 4095 [20:15:34]OFD Sender: Processing packet 67729 [packets to send 35, broken 34] [20:15:34]ProducePacketName [20:15:34]name=ofd_packets/00067729 [20:15:34]OFD Sender: To server: pG, [20:15:34]CommunicateWithHost lk.salyk.kg:30040 [20:15:34]ConnectInit lk.salyk.kg [20:15:34]Connected sock=10 [20:15: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 AD 63 07 01 F3 0A 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 8A 00 00 00 F4 03 04 00 E5 BA 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 74 74 9B AA 62 3B B3 85 D9 DC B2 A3 B5 35 [20:15:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 B5 21 47 00 D5 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 91 08 01 00 F4 03 04 00 BD 62 47 66 B6 04 01 00 00 3C 91 8E 6F AA AF 95 01 [20:15:34]CommunicateWithHost err = 0 [20:15:34]CheckOFDResponse [20:15:34]1017 (14) - 77093643461234 [20:15:34]1041 (16) - 0000000000871829 [20:15:34]1040 (4) - 67729 [20:15:34]1012 (4) - 17.05.2024 13:59 [20:15:34]1206 (1) - 0 [20:15:34]OFD Sender: Remove packet 67729 [20:15:34]ProducePacketName [20:15:34]name=ofd_packets/00067729 [20:15:34]NVStorageDeleteData [20:15:34]Write to MH i2c: 01 00 00 42 0F 51 [20:15:34]Write i2c OK [20:15:34]MH_I2C_Read... [20:15:34]Read from MH i2c: 01 [20:15:34]MH_I2C_Read... [20:15:34]Read from MH i2c: 01 07 00 [20:15:34]MH_I2C_Read... [20:15:34]Read from MH i2c: 01 07 00 42 0F 00 00 00 00 00 CF 0C 33 [20:15:34]RasterBufferAndPrint [20:15:34]line [20:15:34]line [20:15:34]line [20:15:34]line [20:15:34]line [20:15:34]written 0, free lines is 3286 [20:15:34]MH_Cut [20:15:34]Write to MH i2c: D1 01 00 49 0F 01 2A [20:15:34]Write i2c OK [20:15:34]MH_I2C_Read... [20:15:34]Read from MH i2c: D1 [20:15:34]MH_I2C_Read... [20:15:34]Read from MH i2c: D1 01 00 [20:15:34]MH_I2C_Read... [20:15:34]Read from MH i2c: D1 01 00 49 0F 00 29 [20:15:34]Write to MH i2c: 01 00 00 4A 0F 59 [20:15:34]Write i2c OK [20:15:34]MH_I2C_Read... [20:15:34]OFD Sender: No OFD packet to send [20:15:35]*** Cut start [20:15:35]*** Purtial cut [20:15:35]*** Stage 1: CUTSNS_PIN = 1 [20:15:35]Read from MH i2c: 01 [20:15:35]MH_I2C_Read... [20:15:35]*** Stop cut motor [20:15:35]*** Cut end [20:15:35]Read from MH i2c: 01 07 00 [20:15:35]MH_I2C_Read... [20:15:35]Read from MH i2c: 01 07 00 4A 0F 00 00 00 00 00 FF 0F 6E [20:15:35]process_action close_receipt done [20:15:35]requested_data is exist [20:15:35]produce_requested_data [20:15:35]requested_item fm.sn is exist - process it [20:15:35]wFMCommunicate request_size=4 [20:15:35]MH_SAM_APDU [20:15:35]CAPDU: 80 11 00 00 [20:15:35]Write to MH i2c: E2 08 00 4B 0F 80 11 00 00 00 00 00 00 D4 [20:15:35]Write i2c OK [20:15:35]MH_I2C_Read... [20:15:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:35]Read from MH i2c: E2 [20:15:35]MH_I2C_Read... [20:15:35]Read from MH i2c: E2 17 00 [20:15:35]MH_I2C_Read... [20:15:35]Read from MH i2c: E2 17 00 4B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2A [20:15:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:15:35]wFMCommunicate OK [20:15:35]requested_item fd.num is exist - process it [20:15:35]SAM_PROTO_GetFieldsCounters [20:15:35]wFMCommunicate request_size=4 [20:15:35]MH_SAM_APDU [20:15:35]CAPDU: 80 13 00 00 [20:15:35]Write to MH i2c: E2 08 00 4C 0F 80 13 00 00 00 00 00 00 D7 [20:15:35]Write i2c OK [20:15:35]MH_I2C_Read... [20:15:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:35]Read from MH i2c: E2 [20:15:35]MH_I2C_Read... [20:15:35]Read from MH i2c: E2 62 00 [20:15:35]MH_I2C_Read... [20:15:35]Read from MH i2c: E2 62 00 4C 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 91 08 01 00 0E 04 04 00 66 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 9C [20:15:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 91 08 01 00 0E 04 04 00 66 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 [20:15:35]wFMCommunicate OK [20:15:35]SAM_PROTO_GetFieldsCounters done [20:15:35]requested_item shift.num is exist - process it [20:15:35]requested_item shift.opened is exist - process it [20:15:35]req_shift_opened [20:15:35]FM_GetShiftState [20:15:35]SAM_PROTO_GetShiftState [20:15:35]wFMCommunicate request_size=4 [20:15:35]MH_SAM_APDU [20:15:35]CAPDU: 80 13 01 00 [20:15:35]Write to MH i2c: E2 08 00 4D 0F 80 13 01 00 00 00 00 00 D9 [20:15:35]Write i2c OK [20:15:35]MH_I2C_Read... [20:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:35]Read from MH i2c: E2 [20:15:35]MH_I2C_Read... [20:15:35]Read from MH i2c: E2 0E 00 [20:15:35]MH_I2C_Read... [20:15:35]Read from MH i2c: E2 0E 00 4D 0F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 5F [20:15:35]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:15:35]wFMCommunicate OK [20:15:35]SAM_PROTO_GetShiftState done [20:15:35]FM_GetShiftState done [20:15:35]req_shift_opened done [20:15:35]requested_item shift.open_date is exist - process it [20:15:35]req_shift_open_date [20:15:35]req_shift_open_date done [20:15:35]produce_requested_data done [20:15:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67729,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:15:35]process_action_free close_receipt [20:15:35]json_value_free [20:15:35]json_value_free done [20:15:35]process_json_proto returns [20:15:35]Send response to host [20:15:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67729,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:15:35]free response buf [20:15:35]execute_script done [20:15:35]execute_script returns [20:15:35]free content buf [20:15:35]Sock 7.Close socket [20:15:35]Sock 7.Thread stoped [20:15:39]OFD Sender: No OFD packet to send [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:10]OFD Sender: No OFD packet to send [20:16:15]OFD Sender: No OFD packet to send [20:16:20]OFD Sender: No OFD packet to send [20:16:25]OFD Sender: No OFD packet to send [20:16:30]OFD Sender: No OFD packet to send [20:16:35]OFD Sender: No OFD packet to send [20:16:40]OFD Sender: No OFD packet to send [20:16:45]OFD Sender: No OFD packet to send [20:16:50]OFD Sender: No OFD packet to send [20:16:55]OFD Sender: No OFD packet to send [20:17:00]OFD Sender: No OFD packet to send [20:17:05]OFD Sender: No OFD packet to send [20:17:10]OFD Sender: No OFD packet to send [20:17:15]OFD Sender: No OFD packet to send [20:17:20]OFD Sender: No OFD packet to send [20:17:25]OFD Sender: No OFD packet to send [20:17:30]OFD Sender: No OFD packet to send [20:17:35]OFD Sender: No OFD packet to send [20:17:40]OFD Sender: No OFD packet to send [20:17:45]OFD Sender: No OFD packet to send [20:17:50]OFD Sender: No OFD packet to send [20:17:55]OFD Sender: No OFD packet to send [20:18:00]OFD Sender: No OFD packet to send [20:18:05]OFD Sender: No OFD packet to send [20:18:10]OFD Sender: No OFD packet to send [20:18:15]OFD Sender: No OFD packet to send [20:18:20]OFD Sender: No OFD packet to send [20:18:25]OFD Sender: No OFD packet to send [20:18:30]OFD Sender: No OFD packet to send [20:18:35]OFD Sender: No OFD packet to send [20:18:40]OFD Sender: No OFD packet to send [20:18:45]OFD Sender: No OFD packet to send [20:18:50]OFD Sender: No OFD packet to send [20:18:55]OFD Sender: No OFD packet to send [20:19:00]OFD Sender: No OFD packet to send [20:19:05]OFD Sender: No OFD packet to send [20:19:10]OFD Sender: No OFD packet to send [20:19:12]accept exits with 9 [20:19:12]New connection [20:19:12]New thread 3066608996 created [20:19:12]Thread 3066752356 joined [20:19:12]Waiting for new connection... [20:19:12] Sock 9.Parse request [20:19:12]Sock 9.Check first char [20:19:12]Sock 9.First char is OK [20:19:12]request: POST /json_proto HTTP/1.0 [20:19:12]Method: POST [20:19:12]URL: /json_proto [20:19:12]Method is POST - this is cgi request [20:19:12]url: /json_proto [20:19:12]query_string will be loaded in cgi processing [20:19:12]execute_cgi json_proto POST (null) [20:19:12]execute_cgi path=json_proto method=POST [20:19:12]POST find Content-Length [20:19:12]Host: 172.17.41.195:8080 [20:19:12]Content-Length: 1182 [20:19:12]Content-Type: application/json [20:19:12] [20:19:12]POST finish read [20:19:12]Found Content-Length = 1182 [20:19: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507883\u000A17.05.2024 20:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1336.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99928\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:12]execute_script... [20:19: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507883\u000A17.05.2024 20:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1336.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99928\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:12]POST & json_proto [20:19:12]process_json_proto [20:19:12]json parsed OK: [20:19:12]protocol is kg_v1.0 [20:19:12]action value=print_text [20:19:12]process_action print_text [20:19:12]cmd_print_text [20:19:12]ExternCall_PrintAddStr [20:19:12]wPrintStart [20:19:12]Write to MH i2c: 01 00 00 4E 0F 5D [20:19:12]Write i2c OK [20:19:12]MH_I2C_Read... [20:19:12]Read from MH i2c: 01 [20:19:12]MH_I2C_Read... [20:19:12]Read from MH i2c: 01 07 00 [20:19:12]MH_I2C_Read... [20:19:12]Read from MH i2c: 01 07 00 4E 0F 00 00 00 00 00 FF 0F 72 [20:19:12]RasterBufferAndPrint [20:19:12]line *****ТОВАРНЫЙ ЧЕК***** [20:19:12]line АЗС-91 [20:19:12]line Партнер нефть [20:19:12]line 02508201610067 [20:19:12]line Кассир : Адишов И. [20:19:12]line Счет N : (1)507883 [20:19:12]line 17.05.2024 20:01 [20:19:12]line ПРОДАЖА [20:19:12]line ТРК (МРК, ГНК): 23 [20:19:12]line Вид ГСМ : 2710124130 [20:19:12]line Аи-92-К-5 [20:19:12]line 20.000 x 66.80 [20:19:12]line ИТОГ: 1336.00 [20:19:12]line Тип оплаты: Талоны: Топливная Карта [20:19:12]line 99928 [20:19:12]line ______________________ [20:19:12]line (подпись) [20:19:12]written 0, free lines is 4095 [20:19:12]Write to MH i2c: 01 00 00 62 0F 71 [20:19:12]Write i2c OK [20:19:12]MH_I2C_Read... [20:19:12]Read from MH i2c: 01 [20:19:12]MH_I2C_Read... [20:19:12]Read from MH i2c: 01 07 00 [20:19:12]MH_I2C_Read... [20:19:12]Read from MH i2c: 01 07 00 62 0F 00 00 00 00 00 0F 0E 95 [20:19:12]RasterBufferAndPrint [20:19:12]line [20:19:12]line [20:19:12]line [20:19:12]line [20:19:12]line [20:19:12]written 0, free lines is 3601 [20:19:12]MH_Cut [20:19:12]Write to MH i2c: D1 01 00 69 0F 01 4A [20:19:12]Write i2c OK [20:19:12]MH_I2C_Read... [20:19:12]Read from MH i2c: D1 [20:19:12]MH_I2C_Read... [20:19:12]Read from MH i2c: D1 01 00 [20:19:12]MH_I2C_Read... [20:19:12]Read from MH i2c: D1 01 00 69 0F 00 49 [20:19:12]Write to MH i2c: 01 00 00 6A 0F 79 [20:19:12]Write i2c OK [20:19:12]MH_I2C_Read... [20:19:12]*** Cut start [20:19:12]*** Purtial cut [20:19:12]*** CUTSNS_PIN = 0 [20:19:13]*** Stage 1: CUTSNS_PIN = 1 [20:19:14]Read from MH i2c: 01 [20:19:14]MH_I2C_Read... [20:19:14]Read from MH i2c: 01 07 00 [20:19:14]MH_I2C_Read... [20:19:14]*** Stop cut motor [20:19:14]*** Cut end [20:19:14]Read from MH i2c: 01 07 00 6A 0F 00 00 00 00 00 FF 0F 8E [20:19:14]process_action print_text done [20:19:14]requested_data is exist [20:19:14]produce_requested_data [20:19:14]requested_item fm.sn is exist - process it [20:19:14]wFMCommunicate request_size=4 [20:19:14]MH_SAM_APDU [20:19:14]CAPDU: 80 11 00 00 [20:19:14]Write to MH i2c: E2 08 00 6B 0F 80 11 00 00 00 00 00 00 F4 [20:19:14]Write i2c OK [20:19:14]MH_I2C_Read... [20:19:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:15]Read from MH i2c: E2 [20:19:15]MH_I2C_Read... [20:19:15]Read from MH i2c: E2 17 00 [20:19:15]MH_I2C_Read... [20:19:15]Read from MH i2c: E2 17 00 6B 0F 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: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 [20:19:15]wFMCommunicate OK [20:19:15]requested_item fd.num is exist - process it [20:19:15]SAM_PROTO_GetFieldsCounters [20:19:15]wFMCommunicate request_size=4 [20:19:15]MH_SAM_APDU [20:19:15]CAPDU: 80 13 00 00 [20:19:15]Write to MH i2c: E2 08 00 6C 0F 80 13 00 00 00 00 00 00 F7 [20:19:15]Write i2c OK [20:19:15]MH_I2C_Read... [20:19:15]OFD Sender: No OFD packet to send [20:19:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:15]Read from MH i2c: E2 [20:19:15]MH_I2C_Read... [20:19:15]Read from MH i2c: E2 62 00 [20:19:15]MH_I2C_Read... [20:19:15]Read from MH i2c: E2 62 00 6C 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 91 08 01 00 0E 04 04 00 66 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 BC [20: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 91 08 01 00 0E 04 04 00 66 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 [20:19:15]wFMCommunicate OK [20:19:15]SAM_PROTO_GetFieldsCounters done [20:19:15]requested_item shift.num is exist - process it [20:19:15]requested_item shift.opened is exist - process it [20:19:15]req_shift_opened [20:19:15]FM_GetShiftState [20:19:15]SAM_PROTO_GetShiftState [20:19:15]wFMCommunicate request_size=4 [20:19:15]MH_SAM_APDU [20:19:15]CAPDU: 80 13 01 00 [20:19:15]Write to MH i2c: E2 08 00 6D 0F 80 13 01 00 00 00 00 00 F9 [20:19:15]Write i2c OK [20:19:15]MH_I2C_Read... [20:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:15]Read from MH i2c: E2 [20:19:15]MH_I2C_Read... [20:19:15]Read from MH i2c: E2 0E 00 [20:19:15]MH_I2C_Read... [20:19:15]Read from MH i2c: E2 0E 00 6D 0F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 7F [20:19:15]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:19:15]wFMCommunicate OK [20:19:15]SAM_PROTO_GetShiftState done [20:19:15]FM_GetShiftState done [20:19:15]req_shift_opened done [20:19:15]requested_item shift.open_date is exist - process it [20:19:15]req_shift_open_date [20:19:15]req_shift_open_date done [20:19:15]produce_requested_data done [20:19:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67729,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:19:15]process_action_free print_text [20:19:15]json_value_free [20:19:15]json_value_free done [20:19:15]process_json_proto returns [20:19:15]Send response to host [20:19:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67729,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:19:15]free response buf [20:19:15]execute_script done [20:19:15]execute_script returns [20:19:15]free content buf [20:19:15]Sock 9.Close socket [20:19:15]Sock 9.Thread stoped [20:19:20]OFD Sender: No OFD packet to send [20:19:25]OFD Sender: No OFD packet to send [20:19:30]OFD Sender: No OFD packet to send [20:19:35]OFD Sender: No OFD packet to send [20:19:40]OFD Sender: No OFD packet to send [20:19:45]OFD Sender: No OFD packet to send [20:19:50]OFD Sender: No OFD packet to send [20:19:55]OFD Sender: No OFD packet to send [20:20:00]OFD Sender: No OFD packet to send [20:20:05]OFD Sender: No OFD packet to send [20:20:10]OFD Sender: No OFD packet to send [20:20:15]OFD Sender: No OFD packet to send [20:20:20]OFD Sender: No OFD packet to send [20:20:25]OFD Sender: No OFD packet to send [20:20:30]OFD Sender: No OFD packet to send [20:20:35]OFD Sender: No OFD packet to send [20:20:40]OFD Sender: No OFD packet to send [20:20:45]OFD Sender: No OFD packet to send [20:20:50]OFD Sender: No OFD packet to send [20:20:55]OFD Sender: No OFD packet to send [20:21:00]OFD Sender: No OFD packet to send [20:21:05]OFD Sender: No OFD packet to send [20:21:10]OFD Sender: No OFD packet to send [20:21:15]OFD Sender: No OFD packet to send [20:21:20]OFD Sender: No OFD packet to send [20:21:25]OFD Sender: No OFD packet to send [20:21:30]OFD Sender: No OFD packet to send [20:21:35]OFD Sender: No OFD packet to send [20:21:40]OFD Sender: No OFD packet to send [20:21:45]OFD Sender: No OFD packet to send [20:21:50]OFD Sender: No OFD packet to send [20:21:55]OFD Sender: No OFD packet to send [20:22:00]OFD Sender: No OFD packet to send [20:22:05]OFD Sender: No OFD packet to send [20:22:10]OFD Sender: No OFD packet to send [20:22:15]OFD Sender: No OFD packet to send [20:22:20]OFD Sender: No OFD packet to send [20:22:25]OFD Sender: No OFD packet to send [20:22:30]OFD Sender: No OFD packet to send [20:22:35]OFD Sender: No OFD packet to send [20:22:40]OFD Sender: No OFD packet to send [20:22:45]OFD Sender: No OFD packet to send [20:22:50]OFD Sender: No OFD packet to send [20:22:55]OFD Sender: No OFD packet to send [20:23:00]OFD Sender: No OFD packet to send [20:23:05]OFD Sender: No OFD packet to send [20:23:10]OFD Sender: No OFD packet to send [20:23:15]OFD Sender: No OFD packet to send [20:23:20]OFD Sender: No OFD packet to send [20:23:25]OFD Sender: No OFD packet to send [20:23:30]OFD Sender: No OFD packet to send [20:23:35]OFD Sender: No OFD packet to send [20:23:40]OFD Sender: No OFD packet to send [20:23:45]OFD Sender: No OFD packet to send [20:23:50]OFD Sender: No OFD packet to send [20:23:55]OFD Sender: No OFD packet to send [20:24:00]OFD Sender: No OFD packet to send [20:24:05]OFD Sender: No OFD packet to send [20:24:10]OFD Sender: No OFD packet to send [20:24:15]OFD Sender: No OFD packet to send [20:24:20]OFD Sender: No OFD packet to send [20:24:25]OFD Sender: No OFD packet to send [20:24:30]OFD Sender: No OFD packet to send [20:24:35]OFD Sender: No OFD packet to send [20:24:40]OFD Sender: No OFD packet to send [20:24:45]OFD Sender: No OFD packet to send [20:24:50]OFD Sender: No OFD packet to send [20:24:55]OFD Sender: No OFD packet to send [20:25:00]OFD Sender: No OFD packet to send [20:25:05]OFD Sender: No OFD packet to send [20:25:10]OFD Sender: No OFD packet to send [20:25:15]OFD Sender: No OFD packet to send [20:25:20]OFD Sender: No OFD packet to send [20:25:25]OFD Sender: No OFD packet to send [20:25:30]OFD Sender: No OFD packet to send [20:25:35]OFD Sender: No OFD packet to send [20:25:40]OFD Sender: No OFD packet to send [20:25:45]OFD Sender: No OFD packet to send [20:25:50]OFD Sender: No OFD packet to send [20:25:55]OFD Sender: No OFD packet to send [20:26:00]OFD Sender: No OFD packet to send [20:26:05]OFD Sender: No OFD packet to send [20:26:10]OFD Sender: No OFD packet to send [20:26:15]OFD Sender: No OFD packet to send [20:26:20]OFD Sender: No OFD packet to send [20:26:25]OFD Sender: No OFD packet to send [20:26:30]OFD Sender: No OFD packet to send [20:26:35]OFD Sender: No OFD packet to send [20:26:40]OFD Sender: No OFD packet to send [20:26:45]OFD Sender: No OFD packet to send [20:26:50]OFD Sender: No OFD packet to send [20:26:55]OFD Sender: No OFD packet to send [20:27:00]OFD Sender: No OFD packet to send [20:27:05]OFD Sender: No OFD packet to send [20:27:10]OFD Sender: No OFD packet to send [20:27:15]OFD Sender: No OFD packet to send [20:27:20]OFD Sender: No OFD packet to send [20:27:25]OFD Sender: No OFD packet to send [20:27:30]OFD Sender: No OFD packet to send [20:27:35]OFD Sender: No OFD packet to send [20:27:40]OFD Sender: No OFD packet to send [20:27:45]OFD Sender: No OFD packet to send [20:27:50]OFD Sender: No OFD packet to send [20:27:55]OFD Sender: No OFD packet to send [20:28:00]OFD Sender: No OFD packet to send [20:28:05]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:40]OFD Sender: No OFD packet to send [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:10]OFD Sender: No OFD packet to send [20:29:15]OFD Sender: No OFD packet to send [20:29:16]accept exits with 7 [20:29:16]New connection [20:29:16]New thread 3066752356 created [20:29:16]Thread 3066608996 joined [20:29:16]Waiting for new connection... [20:29:16] Sock 7.Parse request [20:29:16]Sock 7.Check first char [20:29:16]Sock 7.First char is OK [20:29:16]request: POST /json_proto HTTP/1.0 [20:29:16]Method: POST [20:29:16]URL: /json_proto [20:29:16]Method is POST - this is cgi request [20:29:16]url: /json_proto [20:29:16]query_string will be loaded in cgi processing [20:29:16]execute_cgi json_proto POST (null) [20:29:16]execute_cgi path=json_proto method=POST [20:29:16]POST find Content-Length [20:29:16]Host: 172.17.41.195:8080 [20:29:16]Content-Length: 677 [20:29:16]Content-Type: application/json [20:29:16] [20:29:16]POST finish read [20:29:16]Found Content-Length = 677 [20:29:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507884", "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" ] } } [20:29:16]execute_script... [20:29: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)507884", "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" ] } } [20:29:16]POST & json_proto [20:29:16]process_json_proto [20:29:16]json parsed OK: [20:29:16]protocol is kg_v1.0 [20:29:16]action value=close_receipt [20:29:16]process_action close_receipt [20:29:16]cmd_close_receipt [20:29:16]MH_GetDate [20:29:16]Write to MH i2c: F0 00 00 6E 0F 6C [20:29:16]Write i2c OK [20:29:16]MH_I2C_Read... [20:29:16]Read from MH i2c: F0 [20:29:16]MH_I2C_Read... [20:29:16]Read from MH i2c: F0 09 00 [20:29:16]MH_I2C_Read... [20:29:16]Read from MH i2c: F0 09 00 6E 0F 00 1E BE 47 66 FC 21 6F 64 EE [20:29:16]GetLastDocTimeStamp 1715976933 [20:29:16]current date 1715977758 [20:29:16]FM_GetShiftState [20:29:16]SAM_PROTO_GetShiftState [20:29:16]wFMCommunicate request_size=4 [20:29:16]MH_SAM_APDU [20:29:16]CAPDU: 80 13 01 00 [20:29:16]Write to MH i2c: E2 08 00 6F 0F 80 13 01 00 00 00 00 00 FB [20:29:16]Write i2c OK [20:29:16]MH_I2C_Read... [20:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:16]Read from MH i2c: E2 [20:29:16]MH_I2C_Read... [20:29:16]Read from MH i2c: E2 0E 00 [20:29:16]MH_I2C_Read... [20:29:16]Read from MH i2c: E2 0E 00 6F 0F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 81 [20:29:16]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:29:16]wFMCommunicate OK [20:29:16]SAM_PROTO_GetShiftState done [20:29:16]FM_GetShiftState done [20:29:16]opened in 1715905068 [20:29:16]opened+sec_in_day 1715991468 [20:29:16]quantity*price = 40013 [20:29:16]sum+1 = 40014 [20:29: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 СНО: Общий режим Чек 139 17.05.2024 20:29 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67730 ФПД: 66123074353739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T202918&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67730&fm=66123074353739&tin=02508201610067®Number=0000000000091845&sum=40000 [20:29:17]StoreToDocumentArchive [20:29:17]shift 358 fd 67730 [20:29:17]save to /storage/0358/doc_00067730 [20:29:17]save last doc name /storage/0358/doc_00067730 to /storage/kkm_last_doc_name [20:29:17]save OK [20:29:17]Clear old archive folders... [20:29:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:29:17]tlvbuf is 01B4C7A0 [20:29:17]SAM_PROTO_ClearQueue [20:29:17]wFMCommunicate request_size=4 [20:29:17]MH_SAM_APDU [20:29:17]CAPDU: 80 09 00 00 [20:29:17]Write to MH i2c: E2 08 00 7C 0F 80 09 00 00 00 00 00 00 FD [20:29:17]Write i2c OK [20:29:17]MH_I2C_Read... [20:29:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:29:17]Read from MH i2c: E2 [20:29:17]MH_I2C_Read... [20:29:17]Read from MH i2c: E2 03 00 [20:29:17]MH_I2C_Read... [20:29:17]Read from MH i2c: E2 03 00 7C 0F 00 90 00 FF [20:29:17]RAPDU: 90 00 [20:29:17]wFMCommunicate OK [20:29:17]SAM_PROTO_ClearQueue done [20:29:17]KKMCreateOFDPacket [20:29:17]OFDProtocolAddRootSTLVToBuf [20:29:17]FM_MakeSignedData [20:29:17]FM_MakeSignedData [20:29:17]SAM_PROTO_SignData [20:29:17]wFMCommunicate request_size=4 [20:29:17]MH_SAM_APDU [20:29:17]CAPDU: 80 0D 01 02 [20:29:17]Write to MH i2c: E2 08 00 7D 0F 80 0D 01 02 00 00 00 00 05 [20:29:17]Write i2c OK [20:29:17]MH_I2C_Read... [20:29:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:29:17]Read from MH i2c: E2 [20:29:17]MH_I2C_Read... [20:29:17]Read from MH i2c: E2 03 00 [20:29:17]MH_I2C_Read... [20:29:17]Read from MH i2c: E2 03 00 7D 0F 00 90 00 00 [20:29:17]RAPDU: 90 00 [20:29:17]wFMCommunicate OK [20:29:17]wFMCommunicate request_size=255 [20:29:17]MH_SAM_APDU [20:29: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 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 8B 00 00 00 F4 03 04 00 1E BE 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 3C [20:29:17]Write to MH i2c: E2 02 01 7E 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8B 00 00 00 F4 03 04 00 1E BE 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 3C 00 00 C2 [20:29:17]Write i2c OK [20:29:17]MH_I2C_Read... [20:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:18]Read from MH i2c: E2 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: E2 03 00 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: E2 03 00 7E 0F 00 90 00 01 [20:29:18]RAPDU: 90 00 [20:29:18]wFMCommunicate OK [20:29:18]wFMCommunicate request_size=10 [20:29:18]MH_SAM_APDU [20:29:18]CAPDU: 80 0D 02 02 05 23 7A 5B BA 4B [20:29:18]Write to MH i2c: E2 0D 00 7F 0F 80 0D 02 02 05 00 23 7A 5B BA 4B 00 00 0F [20:29:18]Write i2c OK [20:29:18]MH_I2C_Read... [20:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:18]Read from MH i2c: E2 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: E2 03 00 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: E2 03 00 7F 0F 00 90 00 02 [20:29:18]RAPDU: 90 00 [20:29:18]wFMCommunicate OK [20:29:18]wFMCommunicate request_size=4 [20:29:18]MH_SAM_APDU [20:29:18]CAPDU: 80 0D 03 02 [20:29:18]Write to MH i2c: E2 08 00 80 0F 80 0D 03 02 00 00 00 00 0A [20:29:18]Write i2c OK [20:29:18]MH_I2C_Read... [20:29:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:29:18]Read from MH i2c: E2 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: E2 0B 00 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: E2 0B 00 80 0F 00 EE 1C 56 CE 17 BE F5 4E 90 00 51 [20:29:18]RAPDU: EE 1C 56 CE 17 BE F5 4E 90 00 [20:29:18]wFMCommunicate OK [20:29:18]SAM_PROTO_SignData done [20:29:18]FM_MakeSignedData done [20:29:18]CreateOFDProtocolMessage [20:29:18]wFMCommunicate request_size=4 [20:29:18]MH_SAM_APDU [20:29:18]CAPDU: 80 11 00 00 [20:29:18]Write to MH i2c: E2 08 00 81 0F 80 11 00 00 00 00 00 00 0A [20:29:18]Write i2c OK [20:29:18]MH_I2C_Read... [20:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:18]Read from MH i2c: E2 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: E2 17 00 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: E2 17 00 81 0F 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:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:29:18]wFMCommunicate OK [20:29:18]CreateOFDProtocolMessage done [20:29:18]OFDSenderStorePacket 67730 [20:29:18]StoreOFDPacket docnum=67730 [20:29: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 D0 41 07 01 1E 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 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 8B 00 00 00 F4 03 04 00 1E BE 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 3C 23 7A 5B BA 4B EE 1C 56 CE 17 BE F5 4E [20:29:18]CheckFolder [20:29:18]dirname=/storage/ofd_packets [20:29:18]CheckFolder done [20:29:18]ProducePacketName [20:29:18]name=ofd_packets/00067730 [20:29:18]NVStorageSaveData ofd_packets/00067730 [20:29:18]File name is /storage/ofd_packets/00067730 [20:29:18]Write 301 bytes [20:29:18]NVStorageSaveData done [20:29:18]OFDSenderStorePacket done [20:29:18]KKMCreateOFDPacket done [20:29:18]NVStorageSaveData kkm_last_timestamp [20:29:18]File name is /storage/kkm_last_timestamp [20:29:18]Write 4 bytes [20:29:18]NVStorageSaveData done [20:29:18]ExternCall_PrintAddStr [20:29:18]wPrintStart [20:29:18]Write to MH i2c: 01 00 00 82 0F 91 [20:29:18]Write i2c OK [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: 01 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: 01 07 00 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: 01 07 00 82 0F 00 00 00 00 00 FF 0F A6 [20:29:18]RasterBufferAndPrint [20:29:18]line Счет N : (1)507884 [20:29:18]line ИНН: 02508201610067 [20:29:18]line Контрольно-Кассовый Чек [20:29:18]line ПРОДАЖА [20:29:18]line ТРК (МРК, ГНК) : 33 [20:29:18]line Товар: 2710124130 [20:29:18]line Аи-92-К-5 [20:29:18]line 5.990 * 66.80 [20:29:18]line = 400.13 [20:29:18]line НДС 12% НСП 1% [20:29:18]line > о реализуемом товаре [20:29:18]line ОКРУГЛЕНИЕ: -0.13 [20:29:18]line ИТОГО: 400.00 [20:29:18]line Внесено: 400.00 [20:29:18]line СДАЧА: 0.00 [20:29:18]line НСП 1% : 3.54 [20:29:18]line НДС 12% : 42.49 [20:29:18]line Наличными: 400.00 [20:29:18]line Безнал.: 0.00 [20:29:18]line Место: АЗС № 91 "Партнер Нефть" [20:29:18]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:29:18]line СНО: Общий режим [20:29:18]line Чек 139 17.05.2024 20:29 [20:29:18]line Смена: 358 ФФД: 1.0 [20:29:18]line ЗНМ: 0300000119 [20:29:18]line РНМ: 0000000000091845 [20:29:18]line Версия ККМ: 001 [20:29:18]line ФМ: 0000000000871829 [20:29:18]line ФД: 67730 [20:29:18]line ФПД: 66123074353739 [20:29:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T202918&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67730&fm=66123074353739&tin=02508201610067®Number=0000000000091845&sum=40000 [20:29:18]written 0, free lines is 4095 [20:29:18]OFD Sender: Processing packet 67730 [packets to send 35, broken 34] [20:29:18]ProducePacketName [20:29:18]name=ofd_packets/00067730 [20:29:18]OFD Sender: To server: pG, [20:29:18]CommunicateWithHost lk.salyk.kg:30040 [20:29:18]ConnectInit lk.salyk.kg [20:29:18]Connected sock=10 [20:29: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 D0 41 07 01 1E 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 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 8B 00 00 00 F4 03 04 00 1E BE 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 3C 23 7A 5B BA 4B EE 1C 56 CE 17 BE F5 4E [20:29: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 99 91 47 00 82 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 92 08 01 00 F4 03 04 00 F5 65 47 66 B6 04 01 00 00 21 3D 15 C0 70 9F 81 37 [20:29:18]CommunicateWithHost err = 0 [20:29:18]CheckOFDResponse [20:29:18]1017 (14) - 77093643461234 [20:29:18]1041 (16) - 0000000000871829 [20:29:18]1040 (4) - 67730 [20:29:18]1012 (4) - 17.05.2024 14:13 [20:29:18]1206 (1) - 0 [20:29:18]OFD Sender: Remove packet 67730 [20:29:18]ProducePacketName [20:29:18]name=ofd_packets/00067730 [20:29:18]NVStorageDeleteData [20:29:18]Write to MH i2c: 01 00 00 AC 0F BB [20:29:18]Write i2c OK [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: 01 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: 01 07 00 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: 01 07 00 AC 0F 00 00 00 00 00 CB 0C 99 [20:29:18]RasterBufferAndPrint [20:29:18]line [20:29:18]line [20:29:18]line [20:29:18]line [20:29:18]line [20:29:18]written 0, free lines is 3281 [20:29:19]MH_Cut [20:29:19]Write to MH i2c: D1 01 00 B3 0F 01 94 [20:29:19]Write i2c OK [20:29:19]MH_I2C_Read... [20:29:19]Read from MH i2c: D1 [20:29:19]MH_I2C_Read... [20:29:19]Read from MH i2c: D1 01 00 [20:29:19]MH_I2C_Read... [20:29:19]Read from MH i2c: D1 01 00 B3 0F 00 93 [20:29:19]Write to MH i2c: 01 00 00 B4 0F C3 [20:29:19]Write i2c OK [20:29:19]MH_I2C_Read... [20:29:19]OFD Sender: No OFD packet to send [20:29:19]*** Cut start [20:29:19]*** Purtial cut [20:29:19]*** Stage 1: CUTSNS_PIN = 1 [20:29:20]Read from MH i2c: 01 [20:29:20]MH_I2C_Read... [20:29:20]*** Stop cut motor [20:29:20]*** Cut end [20:29:20]Read from MH i2c: 01 07 00 [20:29:20]MH_I2C_Read... [20:29:20]Read from MH i2c: 01 07 00 B4 0F 00 00 00 00 00 FF 0F D8 [20:29:20]process_action close_receipt done [20:29:20]requested_data is exist [20:29:20]produce_requested_data [20:29:20]requested_item fm.sn is exist - process it [20:29:20]wFMCommunicate request_size=4 [20:29:20]MH_SAM_APDU [20:29:20]CAPDU: 80 11 00 00 [20:29:20]Write to MH i2c: E2 08 00 B5 0F 80 11 00 00 00 00 00 00 3E [20:29:20]Write i2c OK [20:29:20]MH_I2C_Read... [20:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:20]Read from MH i2c: E2 [20:29:20]MH_I2C_Read... [20:29:20]Read from MH i2c: E2 17 00 [20:29:20]MH_I2C_Read... [20:29:20]Read from MH i2c: E2 17 00 B5 0F 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:29: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:29:20]wFMCommunicate OK [20:29:20]requested_item fd.num is exist - process it [20:29:20]SAM_PROTO_GetFieldsCounters [20:29:20]wFMCommunicate request_size=4 [20:29:20]MH_SAM_APDU [20:29:20]CAPDU: 80 13 00 00 [20:29:20]Write to MH i2c: E2 08 00 B6 0F 80 13 00 00 00 00 00 00 41 [20:29:20]Write i2c OK [20:29:20]MH_I2C_Read... [20:29:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:20]Read from MH i2c: E2 [20:29:20]MH_I2C_Read... [20:29:20]Read from MH i2c: E2 62 00 [20:29:20]MH_I2C_Read... [20:29:20]Read from MH i2c: E2 62 00 B6 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 92 08 01 00 0E 04 04 00 66 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 0A [20:29: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 08 01 00 0E 04 04 00 66 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 [20:29:20]wFMCommunicate OK [20:29:20]SAM_PROTO_GetFieldsCounters done [20:29:20]requested_item shift.num is exist - process it [20:29:20]requested_item shift.opened is exist - process it [20:29:20]req_shift_opened [20:29:20]FM_GetShiftState [20:29:20]SAM_PROTO_GetShiftState [20:29:20]wFMCommunicate request_size=4 [20:29:20]MH_SAM_APDU [20:29:20]CAPDU: 80 13 01 00 [20:29:20]Write to MH i2c: E2 08 00 B7 0F 80 13 01 00 00 00 00 00 43 [20:29:20]Write i2c OK [20:29:20]MH_I2C_Read... [20:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:20]Read from MH i2c: E2 [20:29:20]MH_I2C_Read... [20:29:20]Read from MH i2c: E2 0E 00 [20:29:20]MH_I2C_Read... [20:29:20]Read from MH i2c: E2 0E 00 B7 0F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 C9 [20:29:20]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:29:20]wFMCommunicate OK [20:29:20]SAM_PROTO_GetShiftState done [20:29:20]FM_GetShiftState done [20:29:20]req_shift_opened done [20:29:20]requested_item shift.open_date is exist - process it [20:29:20]req_shift_open_date [20:29:20]req_shift_open_date done [20:29:20]produce_requested_data done [20:29:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67730,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:29:20]process_action_free close_receipt [20:29:20]json_value_free [20:29:20]json_value_free done [20:29:20]process_json_proto returns [20:29:20]Send response to host [20:29:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67730,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:29:20]free response buf [20:29:20]execute_script done [20:29:20]execute_script returns [20:29:20]free content buf [20:29:20]Sock 7.Close socket [20:29:20]Sock 7.Thread stoped [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:44]OFD Sender: No OFD packet to send [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]OFD Sender: No OFD packet to send [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:24]OFD Sender: No OFD packet to send [20:31:29]OFD Sender: No OFD packet to send [20:31:34]OFD Sender: No OFD packet to send [20:31:39]OFD Sender: No OFD packet to send [20:31:44]OFD Sender: No OFD packet to send [20:31:49]OFD Sender: No OFD packet to send [20:31:54]OFD Sender: No OFD packet to send [20:31:59]OFD Sender: No OFD packet to send [20:32:04]OFD Sender: No OFD packet to send [20:32:09]OFD Sender: No OFD packet to send [20:32:14]OFD Sender: No OFD packet to send [20:32:19]OFD Sender: No OFD packet to send [20:32:24]OFD Sender: No OFD packet to send [20:32:29]OFD Sender: No OFD packet to send [20:32:34]OFD Sender: No OFD packet to send [20:32:37]accept exits with 9 [20:32:37]New connection [20:32:37]New thread 3066608996 created [20:32:37]Thread 3066752356 joined [20:32:37]Waiting for new connection... [20:32:37] Sock 9.Parse request [20:32:37]Sock 9.Check first char [20:32:37]Sock 9.First char is OK [20:32:37]request: POST /json_proto HTTP/1.0 [20:32:37]Method: POST [20:32:37]URL: /json_proto [20:32:37]Method is POST - this is cgi request [20:32:37]url: /json_proto [20:32:37]query_string will be loaded in cgi processing [20:32:37]execute_cgi json_proto POST (null) [20:32:37]execute_cgi path=json_proto method=POST [20:32:37]POST find Content-Length [20:32:37]Host: 172.17.41.195:8080 [20:32:37]Content-Length: 677 [20:32:37]Content-Type: application/json [20:32:37] [20:32:37]POST finish read [20:32:37]Found Content-Length = 677 [20:32:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507885", "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" : 6.290, "sum" : 420.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:37]execute_script... [20:32: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)507885", "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" : 6.290, "sum" : 420.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:37]POST & json_proto [20:32:37]process_json_proto [20:32:37]json parsed OK: [20:32:37]protocol is kg_v1.0 [20:32:37]action value=close_receipt [20:32:37]process_action close_receipt [20:32:37]cmd_close_receipt [20:32:37]MH_GetDate [20:32:37]Write to MH i2c: F0 00 00 B8 0F B6 [20:32:37]Write i2c OK [20:32:37]MH_I2C_Read... [20:32:37]Read from MH i2c: F0 [20:32:37]MH_I2C_Read... [20:32:37]Read from MH i2c: F0 09 00 [20:32:37]MH_I2C_Read... [20:32:37]Read from MH i2c: F0 09 00 B8 0F 00 E7 BE 47 66 FC 21 6F 64 01 [20:32:37]GetLastDocTimeStamp 1715977758 [20:32:37]current date 1715977959 [20:32:37]FM_GetShiftState [20:32:37]SAM_PROTO_GetShiftState [20:32:37]wFMCommunicate request_size=4 [20:32:37]MH_SAM_APDU [20:32:37]CAPDU: 80 13 01 00 [20:32:37]Write to MH i2c: E2 08 00 B9 0F 80 13 01 00 00 00 00 00 45 [20:32:37]Write i2c OK [20:32:37]MH_I2C_Read... [20:32:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:37]Read from MH i2c: E2 [20:32:37]MH_I2C_Read... [20:32:37]Read from MH i2c: E2 0E 00 [20:32:37]MH_I2C_Read... [20:32:37]Read from MH i2c: E2 0E 00 B9 0F 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CB [20:32:37]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:32:37]wFMCommunicate OK [20:32:37]SAM_PROTO_GetShiftState done [20:32:37]FM_GetShiftState done [20:32:37]opened in 1715905068 [20:32:37]opened+sec_in_day 1715991468 [20:32:37]quantity*price = 42017 [20:32:37]sum+1 = 42018 [20:32:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.62 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 140 17.05.2024 20:32 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67731 ФПД: 106549709526362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T203239&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67731&fm=106549709526362&tin=02508201610067®Number=0000000000091845&sum=42000 [20:32:38]StoreToDocumentArchive [20:32:38]shift 358 fd 67731 [20:32:38]save to /storage/0358/doc_00067731 [20:32:38]save last doc name /storage/0358/doc_00067731 to /storage/kkm_last_doc_name [20:32:38]save OK [20:32:38]Clear old archive folders... [20:32:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:32:38]tlvbuf is 01B2D5C0 [20:32:38]SAM_PROTO_ClearQueue [20:32:38]wFMCommunicate request_size=4 [20:32:38]MH_SAM_APDU [20:32:38]CAPDU: 80 09 00 00 [20:32:38]Write to MH i2c: E2 08 00 C6 0F 80 09 00 00 00 00 00 00 47 [20:32:38]Write i2c OK [20:32:38]MH_I2C_Read... [20:32:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:38]Read from MH i2c: E2 [20:32:38]MH_I2C_Read... [20:32:38]Read from MH i2c: E2 03 00 [20:32:38]MH_I2C_Read... [20:32:38]Read from MH i2c: E2 03 00 C6 0F 00 90 00 49 [20:32:38]RAPDU: 90 00 [20:32:38]wFMCommunicate OK [20:32:38]SAM_PROTO_ClearQueue done [20:32:38]KKMCreateOFDPacket [20:32:38]OFDProtocolAddRootSTLVToBuf [20:32:38]FM_MakeSignedData [20:32:38]FM_MakeSignedData [20:32:38]SAM_PROTO_SignData [20:32:38]wFMCommunicate request_size=4 [20:32:38]MH_SAM_APDU [20:32:38]CAPDU: 80 0D 01 02 [20:32:38]Write to MH i2c: E2 08 00 C7 0F 80 0D 01 02 00 00 00 00 4F [20:32:38]Write i2c OK [20:32:38]MH_I2C_Read... [20:32:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:38]Read from MH i2c: E2 [20:32:38]MH_I2C_Read... [20:32:38]Read from MH i2c: E2 03 00 [20:32:38]MH_I2C_Read... [20:32:38]Read from MH i2c: E2 03 00 C7 0F 00 90 00 4A [20:32:38]RAPDU: 90 00 [20:32:38]wFMCommunicate OK [20:32:38]wFMCommunicate request_size=255 [20:32:38]MH_SAM_APDU [20:32: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 92 18 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 21 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 E7 BE 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 60 [20:32:38]Write to MH i2c: E2 02 01 C8 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 18 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 21 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 E7 BE 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 60 00 00 9C [20:32:38]Write i2c OK [20:32:38]MH_I2C_Read... [20:32:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:39]Read from MH i2c: E2 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 03 00 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 03 00 C8 0F 00 90 00 4B [20:32:39]RAPDU: 90 00 [20:32:39]wFMCommunicate OK [20:32:39]wFMCommunicate request_size=10 [20:32:39]MH_SAM_APDU [20:32:39]CAPDU: 80 0D 02 02 05 E8 09 96 55 5A [20:32:39]Write to MH i2c: E2 0D 00 C9 0F 80 0D 02 02 05 00 E8 09 96 55 5A 00 00 92 [20:32:39]Write i2c OK [20:32:39]MH_I2C_Read... [20:32:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:39]Read from MH i2c: E2 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 03 00 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 03 00 C9 0F 00 90 00 4C [20:32:39]RAPDU: 90 00 [20:32:39]wFMCommunicate OK [20:32:39]wFMCommunicate request_size=4 [20:32:39]MH_SAM_APDU [20:32:39]CAPDU: 80 0D 03 02 [20:32:39]Write to MH i2c: E2 08 00 CA 0F 80 0D 03 02 00 00 00 00 54 [20:32:39]Write i2c OK [20:32:39]MH_I2C_Read... [20:32:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:39]Read from MH i2c: E2 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 0B 00 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 0B 00 CA 0F 00 BC B0 A5 F9 0E 44 2E C7 90 00 A6 [20:32:39]RAPDU: BC B0 A5 F9 0E 44 2E C7 90 00 [20:32:39]wFMCommunicate OK [20:32:39]SAM_PROTO_SignData done [20:32:39]FM_MakeSignedData done [20:32:39]CreateOFDProtocolMessage [20:32:39]wFMCommunicate request_size=4 [20:32:39]MH_SAM_APDU [20:32:39]CAPDU: 80 11 00 00 [20:32:39]Write to MH i2c: E2 08 00 CB 0F 80 11 00 00 00 00 00 00 54 [20:32:39]Write i2c OK [20:32:39]MH_I2C_Read... [20:32:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:39]Read from MH i2c: E2 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 17 00 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 17 00 CB 0F 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: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 [20:32:39]wFMCommunicate OK [20:32:39]CreateOFDProtocolMessage done [20:32:39]OFDSenderStorePacket 67731 [20:32:39]StoreOFDPacket docnum=67731 [20:32: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 B3 ED 07 01 65 2F 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 92 18 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 21 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 E7 BE 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 60 E8 09 96 55 5A BC B0 A5 F9 0E 44 2E C7 [20:32:39]CheckFolder [20:32:39]dirname=/storage/ofd_packets [20:32:39]CheckFolder done [20:32:39]ProducePacketName [20:32:39]name=ofd_packets/00067731 [20:32:39]NVStorageSaveData ofd_packets/00067731 [20:32:39]File name is /storage/ofd_packets/00067731 [20:32:39]Write 301 bytes [20:32:39]NVStorageSaveData done [20:32:39]OFDSenderStorePacket done [20:32:39]KKMCreateOFDPacket done [20:32:39]NVStorageSaveData kkm_last_timestamp [20:32:39]File name is /storage/kkm_last_timestamp [20:32:39]Write 4 bytes [20:32:39]NVStorageSaveData done [20:32:39]ExternCall_PrintAddStr [20:32:39]wPrintStart [20:32:39]Write to MH i2c: 01 00 00 CC 0F DB [20:32:39]Write i2c OK [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: 01 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: 01 07 00 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: 01 07 00 CC 0F 00 00 00 00 00 FF 0F F0 [20:32:39]RasterBufferAndPrint [20:32:39]line Счет N : (1)507885 [20:32:39]line ИНН: 02508201610067 [20:32:39]line Контрольно-Кассовый Чек [20:32:39]line ПРОДАЖА [20:32:39]line ТРК (МРК, ГНК) : 33 [20:32:39]line Товар: 2710124130 [20:32:39]line Аи-92-К-5 [20:32:39]line 6.290 * 66.80 [20:32:39]line = 420.17 [20:32:39]line НДС 12% НСП 1% [20:32:39]line > о реализуемом товаре [20:32:39]line ОКРУГЛЕНИЕ: -0.17 [20:32:39]line ИТОГО: 420.00 [20:32:39]line Внесено: 420.00 [20:32:39]line СДАЧА: 0.00 [20:32:39]line НСП 1% : 3.72 [20:32:39]line НДС 12% : 44.62 [20:32:39]line Наличными: 420.00 [20:32:39]line Безнал.: 0.00 [20:32:39]line Место: АЗС № 91 "Партнер Нефть" [20:32:39]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:32:39]line СНО: Общий режим [20:32:39]line Чек 140 17.05.2024 20:32 [20:32:39]line Смена: 358 ФФД: 1.0 [20:32:39]line ЗНМ: 0300000119 [20:32:39]line РНМ: 0000000000091845 [20:32:39]line Версия ККМ: 001 [20:32:39]line ФМ: 0000000000871829 [20:32:39]line ФД: 67731 [20:32:39]line ФПД: 106549709526362 [20:32:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T203239&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67731&fm=106549709526362&tin=02508201610067®Number=0000000000091845&sum=42000 [20:32:39]written 0, free lines is 4095 [20:32:39]OFD Sender: Processing packet 67731 [packets to send 35, broken 34] [20:32:39]ProducePacketName [20:32:39]name=ofd_packets/00067731 [20:32:39]OFD Sender: To server: pG, [20:32:39]CommunicateWithHost lk.salyk.kg:30040 [20:32:39]ConnectInit lk.salyk.kg [20:32:39]Connected sock=10 [20:32: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 B3 ED 07 01 65 2F 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 92 18 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 21 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 E7 BE 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 60 E8 09 96 55 5A BC B0 A5 F9 0E 44 2E C7 [20:32: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 D7 51 47 00 53 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 93 08 01 00 F4 03 04 00 BE 66 47 66 B6 04 01 00 00 D1 02 FA 8F F9 D2 87 F7 [20:32:40]CommunicateWithHost err = 0 [20:32:40]CheckOFDResponse [20:32:40]1017 (14) - 77093643461234 [20:32:40]1041 (16) - 0000000000871829 [20:32:40]1040 (4) - 67731 [20:32:40]1012 (4) - 17.05.2024 14:16 [20:32:40]1206 (1) - 0 [20:32:40]OFD Sender: Remove packet 67731 [20:32:40]ProducePacketName [20:32:40]name=ofd_packets/00067731 [20:32:40]NVStorageDeleteData [20:32:40]Write to MH i2c: 01 00 00 F6 0F 05 [20:32:40]Write i2c OK [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: 01 [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: 01 07 00 [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: 01 07 00 F6 0F 00 00 00 00 00 CF 0C E7 [20:32:40]RasterBufferAndPrint [20:32:40]line [20:32:40]line [20:32:40]line [20:32:40]line [20:32:40]line [20:32:40]written 0, free lines is 3284 [20:32:40]MH_Cut [20:32:40]Write to MH i2c: D1 01 00 FD 0F 01 DE [20:32:40]Write i2c OK [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: D1 [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: D1 01 00 [20:32:40]MH_I2C_Read... [20:32:40]Read from MH i2c: D1 01 00 FD 0F 00 DD [20:32:40]Write to MH i2c: 01 00 00 FE 0F 0D [20:32:40]Write i2c OK [20:32:40]MH_I2C_Read... [20:32:40]OFD Sender: No OFD packet to send [20:32:40]*** Cut start [20:32:40]*** Purtial cut [20:32:40]*** CUTSNS_PIN = 0 [20:32:41]*** Stage 1: CUTSNS_PIN = 1 [20:32:42]Read from MH i2c: 01 [20:32:42]MH_I2C_Read... [20:32:42]*** Stop cut motor [20:32:42]*** Cut end [20:32:42]Read from MH i2c: 01 07 00 [20:32:42]MH_I2C_Read... [20:32:42]Read from MH i2c: 01 07 00 FE 0F 00 00 00 00 00 FF 0F 22 [20:32:42]process_action close_receipt done [20:32:42]requested_data is exist [20:32:42]produce_requested_data [20:32:42]requested_item fm.sn is exist - process it [20:32:42]wFMCommunicate request_size=4 [20:32:42]MH_SAM_APDU [20:32:42]CAPDU: 80 11 00 00 [20:32:42]Write to MH i2c: E2 08 00 FF 0F 80 11 00 00 00 00 00 00 88 [20:32:42]Write i2c OK [20:32:42]MH_I2C_Read... [20:32:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:43]Read from MH i2c: E2 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 17 00 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 17 00 FF 0F 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:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:32:43]wFMCommunicate OK [20:32:43]requested_item fd.num is exist - process it [20:32:43]SAM_PROTO_GetFieldsCounters [20:32:43]wFMCommunicate request_size=4 [20:32:43]MH_SAM_APDU [20:32:43]CAPDU: 80 13 00 00 [20:32:43]Write to MH i2c: E2 08 00 00 10 80 13 00 00 00 00 00 00 8C [20:32:43]Write i2c OK [20:32:43]MH_I2C_Read... [20:32:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:43]Read from MH i2c: E2 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 62 00 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 62 00 00 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 93 08 01 00 0E 04 04 00 66 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 59 [20:32:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 93 08 01 00 0E 04 04 00 66 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 [20:32:43]wFMCommunicate OK [20:32:43]SAM_PROTO_GetFieldsCounters done [20:32:43]requested_item shift.num is exist - process it [20:32:43]requested_item shift.opened is exist - process it [20:32:43]req_shift_opened [20:32:43]FM_GetShiftState [20:32:43]SAM_PROTO_GetShiftState [20:32:43]wFMCommunicate request_size=4 [20:32:43]MH_SAM_APDU [20:32:43]CAPDU: 80 13 01 00 [20:32:43]Write to MH i2c: E2 08 00 01 10 80 13 01 00 00 00 00 00 8E [20:32:43]Write i2c OK [20:32:43]MH_I2C_Read... [20:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:43]Read from MH i2c: E2 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 0E 00 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 0E 00 01 10 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 14 [20:32:43]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:32:43]wFMCommunicate OK [20:32:43]SAM_PROTO_GetShiftState done [20:32:43]FM_GetShiftState done [20:32:43]req_shift_opened done [20:32:43]requested_item shift.open_date is exist - process it [20:32:43]req_shift_open_date [20:32:43]req_shift_open_date done [20:32:43]produce_requested_data done [20:32:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67731,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:32:43]process_action_free close_receipt [20:32:43]json_value_free [20:32:43]json_value_free done [20:32:43]process_json_proto returns [20:32:43]Send response to host [20:32:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67731,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:32:43]free response buf [20:32:43]execute_script done [20:32:43]execute_script returns [20:32:43]free content buf [20:32:43]Sock 9.Close socket [20:32:43]Sock 9.Thread stoped [20:32:45]OFD Sender: No OFD packet to send [20:32:47]accept exits with 7 [20:32:47]New connection [20:32:47]New thread 3066752356 created [20:32:47]Thread 3066608996 joined [20:32:47]Waiting for new connection... [20:32:47] Sock 7.Parse request [20:32:47]Sock 7.Check first char [20:32:47]Sock 7.First char is OK [20:32:47]request: POST /json_proto HTTP/1.0 [20:32:47]Method: POST [20:32:47]URL: /json_proto [20:32:47]Method is POST - this is cgi request [20:32:47]url: /json_proto [20:32:47]query_string will be loaded in cgi processing [20:32:47]execute_cgi json_proto POST (null) [20:32:47]execute_cgi path=json_proto method=POST [20:32:47]POST find Content-Length [20:32:47]Host: 172.17.41.195:8080 [20:32:47]Content-Length: 1189 [20:32:47]Content-Type: application/json [20:32:47] [20:32:47]POST finish read [20:32:47]Found Content-Length = 1189 [20:32: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507886\u000A17.05.2024 20:15\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 10.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 668.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3837776\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:47]execute_script... [20:32: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507886\u000A17.05.2024 20:15\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 10.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 668.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3837776\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:47]POST & json_proto [20:32:47]process_json_proto [20:32:47]json parsed OK: [20:32:47]protocol is kg_v1.0 [20:32:47]action value=print_text [20:32:47]process_action print_text [20:32:47]cmd_print_text [20:32:47]ExternCall_PrintAddStr [20:32:47]wPrintStart [20:32:47]Write to MH i2c: 01 00 00 02 10 12 [20:32:47]Write i2c OK [20:32:47]MH_I2C_Read... [20:32:47]Read from MH i2c: 01 [20:32:47]MH_I2C_Read... [20:32:47]Read from MH i2c: 01 07 00 [20:32:47]MH_I2C_Read... [20:32:47]Read from MH i2c: 01 07 00 02 10 00 00 00 00 00 FF 0F 27 [20:32:47]RasterBufferAndPrint [20:32:47]line *****ТОВАРНЫЙ ЧЕК***** [20:32:47]line АЗС-91 [20:32:47]line Партнер нефть [20:32:47]line 02508201610067 [20:32:47]line Кассир : Адишов И. [20:32:47]line Счет N : (1)507886 [20:32:47]line 17.05.2024 20:15 [20:32:47]line ПРОДАЖА [20:32:47]line ТРК (МРК, ГНК): 13 [20:32:47]line Вид ГСМ : 2710124130 [20:32:47]line Аи-92-К-5 [20:32:47]line 10.000 x 66.80 [20:32:47]line ИТОГ: 668.00 [20:32:47]line Тип оплаты: Талоны: Топливные Талоны [20:32:47]line 3837776 [20:32:47]line ______________________ [20:32:47]line (подпись) [20:32:47]written 0, free lines is 4095 [20:32:47]Write to MH i2c: 01 00 00 16 10 26 [20:32:47]Write i2c OK [20:32:47]MH_I2C_Read... [20:32:47]Read from MH i2c: 01 [20:32:47]MH_I2C_Read... [20:32:47]Read from MH i2c: 01 07 00 [20:32:47]MH_I2C_Read... [20:32:47]Read from MH i2c: 01 07 00 16 10 00 00 00 00 00 0F 0E 4A [20:32:47]RasterBufferAndPrint [20:32:47]line [20:32:47]line [20:32:47]line [20:32:47]line [20:32:47]line [20:32:47]written 0, free lines is 3600 [20:32:47]MH_Cut [20:32:47]Write to MH i2c: D1 01 00 1D 10 01 FF [20:32:47]Write i2c OK [20:32:47]MH_I2C_Read... [20:32:47]Read from MH i2c: D1 [20:32:47]MH_I2C_Read... [20:32:47]Read from MH i2c: D1 01 00 [20:32:47]MH_I2C_Read... [20:32:47]Read from MH i2c: D1 01 00 1D 10 00 FE [20:32:47]Write to MH i2c: 01 00 00 1E 10 2E [20:32:47]Write i2c OK [20:32:47]MH_I2C_Read... [20:32:48]*** Cut start [20:32:48]*** Purtial cut [20:32:48]*** Stage 1: CUTSNS_PIN = 1 [20:32:48]Read from MH i2c: 01 [20:32:48]MH_I2C_Read... [20:32:48]*** Stop cut motor [20:32:48]*** Cut end [20:32:48]Read from MH i2c: 01 07 00 [20:32:48]MH_I2C_Read... [20:32:48]Read from MH i2c: 01 07 00 1E 10 00 00 00 00 00 FF 0F 43 [20:32:48]process_action print_text done [20:32:48]requested_data is exist [20:32:48]produce_requested_data [20:32:48]requested_item fm.sn is exist - process it [20:32:48]wFMCommunicate request_size=4 [20:32:48]MH_SAM_APDU [20:32:48]CAPDU: 80 11 00 00 [20:32:48]Write to MH i2c: E2 08 00 1F 10 80 11 00 00 00 00 00 00 A9 [20:32:48]Write i2c OK [20:32:48]MH_I2C_Read... [20:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:48]Read from MH i2c: E2 [20:32:48]MH_I2C_Read... [20:32:48]Read from MH i2c: E2 17 00 [20:32:48]MH_I2C_Read... [20:32:48]Read from MH i2c: E2 17 00 1F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FF [20: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 [20:32:48]wFMCommunicate OK [20:32:48]requested_item fd.num is exist - process it [20:32:48]SAM_PROTO_GetFieldsCounters [20:32:48]wFMCommunicate request_size=4 [20:32:48]MH_SAM_APDU [20:32:48]CAPDU: 80 13 00 00 [20:32:48]Write to MH i2c: E2 08 00 20 10 80 13 00 00 00 00 00 00 AC [20:32:48]Write i2c OK [20:32:48]MH_I2C_Read... [20:32:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:49]Read from MH i2c: E2 [20:32:49]MH_I2C_Read... [20:32:49]Read from MH i2c: E2 62 00 [20:32:49]MH_I2C_Read... [20:32:49]Read from MH i2c: E2 62 00 20 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 93 08 01 00 0E 04 04 00 66 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 79 [20:32: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 93 08 01 00 0E 04 04 00 66 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 [20:32:49]wFMCommunicate OK [20:32:49]SAM_PROTO_GetFieldsCounters done [20:32:49]requested_item shift.num is exist - process it [20:32:49]requested_item shift.opened is exist - process it [20:32:49]req_shift_opened [20:32:49]FM_GetShiftState [20:32:49]SAM_PROTO_GetShiftState [20:32:49]wFMCommunicate request_size=4 [20:32:49]MH_SAM_APDU [20:32:49]CAPDU: 80 13 01 00 [20:32:49]Write to MH i2c: E2 08 00 21 10 80 13 01 00 00 00 00 00 AE [20:32:49]Write i2c OK [20:32:49]MH_I2C_Read... [20:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:49]Read from MH i2c: E2 [20:32:49]MH_I2C_Read... [20:32:49]Read from MH i2c: E2 0E 00 [20:32:49]MH_I2C_Read... [20:32:49]Read from MH i2c: E2 0E 00 21 10 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 34 [20:32:49]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:32:49]wFMCommunicate OK [20:32:49]SAM_PROTO_GetShiftState done [20:32:49]FM_GetShiftState done [20:32:49]req_shift_opened done [20:32:49]requested_item shift.open_date is exist - process it [20:32:49]req_shift_open_date [20:32:49]req_shift_open_date done [20:32:49]produce_requested_data done [20:32:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67731,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:32:49]process_action_free print_text [20:32:49]json_value_free [20:32:49]json_value_free done [20:32:49]process_json_proto returns [20:32:49]Send response to host [20:32:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67731,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:32:49]free response buf [20:32:49]execute_script done [20:32:49]execute_script returns [20:32:49]free content buf [20:32:49]Sock 7.Close socket [20:32:49]Sock 7.Thread stoped [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:20]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:05]OFD Sender: No OFD packet to send [20:38:10]OFD Sender: No OFD packet to send [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:25]OFD Sender: No OFD packet to send [20:38:30]OFD Sender: No OFD packet to send [20:38:35]OFD Sender: No OFD packet to send [20:38:40]OFD Sender: No OFD packet to send [20:38:45]OFD Sender: No OFD packet to send [20:38:50]OFD Sender: No OFD packet to send [20:38:55]OFD Sender: No OFD packet to send [20:39:00]OFD Sender: No OFD packet to send [20:39:05]OFD Sender: No OFD packet to send [20:39:10]OFD Sender: No OFD packet to send [20:39:15]OFD Sender: No OFD packet to send [20:39:20]OFD Sender: No OFD packet to send [20:39:25]OFD Sender: No OFD packet to send [20:39:30]OFD Sender: No OFD packet to send [20:39:35]OFD Sender: No OFD packet to send [20:39:40]OFD Sender: No OFD packet to send [20:39:45]OFD Sender: No OFD packet to send [20:39:50]OFD Sender: No OFD packet to send [20:39:55]OFD Sender: No OFD packet to send [20:40:00]OFD Sender: No OFD packet to send [20:40:05]OFD Sender: No OFD packet to send [20:40:10]OFD Sender: No OFD packet to send [20:40:15]OFD Sender: No OFD packet to send [20:40:20]OFD Sender: No OFD packet to send [20:40:25]OFD Sender: No OFD packet to send [20:40:30]OFD Sender: No OFD packet to send [20:40:35]OFD Sender: No OFD packet to send [20:40:40]OFD Sender: No OFD packet to send [20:40:45]OFD Sender: No OFD packet to send [20:40:50]OFD Sender: No OFD packet to send [20:40:55]OFD Sender: No OFD packet to send [20:41:00]OFD Sender: No OFD packet to send [20:41:05]OFD Sender: No OFD packet to send [20:41:10]OFD Sender: No OFD packet to send [20:41:15]OFD Sender: No OFD packet to send [20:41:20]OFD Sender: No OFD packet to send [20:41:25]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:07]accept exits with 9 [20:44:07]New connection [20:44:07]New thread 3066608996 created [20:44:07]Thread 3066752356 joined [20:44:07]Waiting for new connection... [20:44:07] Sock 9.Parse request [20:44:07]Sock 9.Check first char [20:44:07]Sock 9.First char is OK [20:44:07]request: POST /json_proto HTTP/1.0 [20:44:07]Method: POST [20:44:07]URL: /json_proto [20:44:07]Method is POST - this is cgi request [20:44:07]url: /json_proto [20:44:07]query_string will be loaded in cgi processing [20:44:07]execute_cgi json_proto POST (null) [20:44:07]execute_cgi path=json_proto method=POST [20:44:07]POST find Content-Length [20:44:07]Host: 172.17.41.195:8080 [20:44:07]Content-Length: 819 [20:44:07]Content-Type: application/json [20:44:07] [20:44:07]POST finish read [20:44:07]Found Content-Length = 819 [20:44:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507887", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:07]execute_script... [20:44: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)507887", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:07]POST & json_proto [20:44:07]process_json_proto [20:44:07]json parsed OK: [20:44:07]protocol is kg_v1.0 [20:44:07]action value=close_receipt [20:44:07]process_action close_receipt [20:44:07]cmd_close_receipt [20:44:07]MH_GetDate [20:44:07]Write to MH i2c: F0 00 00 22 10 21 [20:44:07]Write i2c OK [20:44:07]MH_I2C_Read... [20:44:07]Read from MH i2c: F0 [20:44:07]MH_I2C_Read... [20:44:07]Read from MH i2c: F0 09 00 [20:44:07]MH_I2C_Read... [20:44:07]Read from MH i2c: F0 09 00 22 10 00 99 C1 47 66 FC 21 6F 64 21 [20:44:07]GetLastDocTimeStamp 1715977959 [20:44:07]current date 1715978649 [20:44:07]FM_GetShiftState [20:44:07]SAM_PROTO_GetShiftState [20:44:07]wFMCommunicate request_size=4 [20:44:07]MH_SAM_APDU [20:44:07]CAPDU: 80 13 01 00 [20:44:07]Write to MH i2c: E2 08 00 23 10 80 13 01 00 00 00 00 00 B0 [20:44:07]Write i2c OK [20:44:07]MH_I2C_Read... [20:44:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:07]Read from MH i2c: E2 [20:44:07]MH_I2C_Read... [20:44:07]Read from MH i2c: E2 0E 00 [20:44:07]MH_I2C_Read... [20:44:07]Read from MH i2c: E2 0E 00 23 10 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 36 [20:44:07]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:44:07]wFMCommunicate OK [20:44:07]SAM_PROTO_GetShiftState done [20:44:07]FM_GetShiftState done [20:44:07]opened in 1715905068 [20:44:07]opened+sec_in_day 1715991468 [20:44:07]quantity*price = 150032 [20:44:07]sum+1 = 150034 [20:44:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.33 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 141 17.05.2024 20:44 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67732 ФПД: 272420930767428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T204409&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67732&fm=272420930767428&tin=02508201610067®Number=0000000000091845&sum=150033 [20:44:09]StoreToDocumentArchive [20:44:09]shift 358 fd 67732 [20:44:09]save to /storage/0358/doc_00067732 [20:44:09]save last doc name /storage/0358/doc_00067732 to /storage/kkm_last_doc_name [20:44:09]save OK [20:44:09]Clear old archive folders... [20:44:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:44:09]tlvbuf is 01B4C0C0 [20:44:09]SAM_PROTO_ClearQueue [20:44:09]wFMCommunicate request_size=4 [20:44:09]MH_SAM_APDU [20:44:09]CAPDU: 80 09 00 00 [20:44:09]Write to MH i2c: E2 08 00 30 10 80 09 00 00 00 00 00 00 B2 [20:44:09]Write i2c OK [20:44:09]MH_I2C_Read... [20:44:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:09]Read from MH i2c: E2 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 03 00 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 03 00 30 10 00 90 00 B4 [20:44:09]RAPDU: 90 00 [20:44:09]wFMCommunicate OK [20:44:09]SAM_PROTO_ClearQueue done [20:44:09]KKMCreateOFDPacket [20:44:09]OFDProtocolAddRootSTLVToBuf [20:44:09]FM_MakeSignedData [20:44:09]FM_MakeSignedData [20:44:09]SAM_PROTO_SignData [20:44:09]wFMCommunicate request_size=4 [20:44:09]MH_SAM_APDU [20:44:09]CAPDU: 80 0D 01 02 [20:44:09]Write to MH i2c: E2 08 00 31 10 80 0D 01 02 00 00 00 00 BA [20:44:09]Write i2c OK [20:44:09]MH_I2C_Read... [20:44:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:09]Read from MH i2c: E2 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 03 00 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 03 00 31 10 00 90 00 B5 [20:44:09]RAPDU: 90 00 [20:44:09]wFMCommunicate OK [20:44:09]wFMCommunicate request_size=255 [20:44:09]MH_SAM_APDU [20:44:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 57 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 11 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 99 C1 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F7 [20:44:09]Write to MH i2c: E2 02 01 32 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8D 00 00 00 F4 03 04 00 99 C1 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F7 00 00 64 [20:44:09]Write i2c OK [20:44:09]MH_I2C_Read... [20:44:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:09]Read from MH i2c: E2 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 03 00 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 03 00 32 10 00 90 00 B6 [20:44:09]RAPDU: 90 00 [20:44:09]wFMCommunicate OK [20:44:09]wFMCommunicate request_size=10 [20:44:09]MH_SAM_APDU [20:44:09]CAPDU: 80 0D 02 02 05 C3 F0 CE CA 44 [20:44:09]Write to MH i2c: E2 0D 00 33 10 80 0D 02 02 05 00 C3 F0 CE CA 44 00 00 56 [20:44:09]Write i2c OK [20:44:09]MH_I2C_Read... [20:44:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:09]Read from MH i2c: E2 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 03 00 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 03 00 33 10 00 90 00 B7 [20:44:09]RAPDU: 90 00 [20:44:09]wFMCommunicate OK [20:44:09]wFMCommunicate request_size=4 [20:44:09]MH_SAM_APDU [20:44:09]CAPDU: 80 0D 03 02 [20:44:09]Write to MH i2c: E2 08 00 34 10 80 0D 03 02 00 00 00 00 BF [20:44:09]Write i2c OK [20:44:09]MH_I2C_Read... [20:44:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:09]Read from MH i2c: E2 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 0B 00 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 0B 00 34 10 00 19 67 C0 F9 D6 8A B4 E7 90 00 F4 [20:44:09]RAPDU: 19 67 C0 F9 D6 8A B4 E7 90 00 [20:44:09]wFMCommunicate OK [20:44:09]SAM_PROTO_SignData done [20:44:09]FM_MakeSignedData done [20:44:09]CreateOFDProtocolMessage [20:44:09]wFMCommunicate request_size=4 [20:44:09]MH_SAM_APDU [20:44:09]CAPDU: 80 11 00 00 [20:44:09]Write to MH i2c: E2 08 00 35 10 80 11 00 00 00 00 00 00 BF [20:44:09]Write i2c OK [20:44:09]MH_I2C_Read... [20:44:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:09]Read from MH i2c: E2 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 17 00 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: E2 17 00 35 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 15 [20:44:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:44:09]wFMCommunicate OK [20:44:09]CreateOFDProtocolMessage done [20:44:09]OFDSenderStorePacket 67732 [20:44:09]StoreOFDPacket docnum=67732 [20:44: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 FB AF 07 01 85 4C 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 8D 00 00 00 F4 03 04 00 99 C1 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F7 C3 F0 CE CA 44 19 67 C0 F9 D6 8A B4 E7 [20:44:09]CheckFolder [20:44:09]dirname=/storage/ofd_packets [20:44:09]CheckFolder done [20:44:09]ProducePacketName [20:44:09]name=ofd_packets/00067732 [20:44:09]NVStorageSaveData ofd_packets/00067732 [20:44:09]File name is /storage/ofd_packets/00067732 [20:44:09]Write 301 bytes [20:44:09]NVStorageSaveData done [20:44:09]OFDSenderStorePacket done [20:44:09]KKMCreateOFDPacket done [20:44:09]NVStorageSaveData kkm_last_timestamp [20:44:09]File name is /storage/kkm_last_timestamp [20:44:09]Write 4 bytes [20:44:09]NVStorageSaveData done [20:44:09]ExternCall_PrintAddStr [20:44:09]wPrintStart [20:44:09]Write to MH i2c: 01 00 00 36 10 46 [20:44:09]Write i2c OK [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: 01 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: 01 07 00 [20:44:09]MH_I2C_Read... [20:44:09]Read from MH i2c: 01 07 00 36 10 00 00 00 00 00 FF 0F 5B [20:44:09]RasterBufferAndPrint [20:44:09]line Счет N : (1)507887 [20:44:09]line ИНН: 02508201610067 [20:44:09]line Контрольно-Кассовый Чек [20:44:09]line ПРОДАЖА [20:44:09]line ТРК (МРК, ГНК) : 43 [20:44:09]line Товар: 2710124130 [20:44:09]line Аи-92-К-5 [20:44:09]line 22.460 * 66.80 [20:44:09]line = 1500.33 [20:44:09]line НДС 12% НСП 1% [20:44:09]line > о реализуемом товаре [20:44:09]line ИТОГО: 1500.33 [20:44:09]line НСП 1% : 13.28 [20:44:09]line НДС 12% : 159.33 [20:44:09]line Наличными: 0.00 [20:44:09]line Безнал.: 1500.33 [20:44:09]line Место: АЗС № 91 "Партнер Нефть" [20:44:09]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:44:09]line СНО: Общий режим [20:44:09]line Чек 141 17.05.2024 20:44 [20:44:09]line Смена: 358 ФФД: 1.0 [20:44:09]line ЗНМ: 0300000119 [20:44:09]line РНМ: 0000000000091845 [20:44:09]line Версия ККМ: 001 [20:44:09]line Платежная система: Бакай Банк [20:44:09]line ФМ: 0000000000871829 [20:44:09]line ФД: 67732 [20:44:09]line ФПД: 272420930767428 [20:44:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T204409&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67732&fm=272420930767428&tin=02508201610067®Number=0000000000091845&sum=150033 [20:44:09]written 0, free lines is 4095 [20:44:09]OFD Sender: Processing packet 67732 [packets to send 35, broken 34] [20:44:09]ProducePacketName [20:44:09]name=ofd_packets/00067732 [20:44:09]OFD Sender: To server: pG, [20:44:09]CommunicateWithHost lk.salyk.kg:30040 [20:44:09]ConnectInit lk.salyk.kg [20:44:09]Connected sock=10 [20:44: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 FB AF 07 01 85 4C 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 8D 00 00 00 F4 03 04 00 99 C1 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F7 C3 F0 CE CA 44 19 67 C0 F9 D6 8A B4 E7 [20:44: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 14 E0 47 00 B0 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 94 08 01 00 F4 03 04 00 70 69 47 66 B6 04 01 00 00 A2 66 DA 85 4A 6D 15 9C [20:44:09]CommunicateWithHost err = 0 [20:44:09]CheckOFDResponse [20:44:09]1017 (14) - 77093643461234 [20:44:09]1041 (16) - 0000000000871829 [20:44:09]1040 (4) - 67732 [20:44:09]1012 (4) - 17.05.2024 14:28 [20:44:09]1206 (1) - 0 [20:44:09]OFD Sender: Remove packet 67732 [20:44:09]ProducePacketName [20:44:09]name=ofd_packets/00067732 [20:44:09]NVStorageDeleteData [20:44:10]Write to MH i2c: 01 00 00 5F 10 6F [20:44:10]Write i2c OK [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: 01 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: 01 07 00 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: 01 07 00 5F 10 00 00 00 00 00 F7 0C 79 [20:44:10]RasterBufferAndPrint [20:44:10]line [20:44:10]line [20:44:10]line [20:44:10]line [20:44:10]line [20:44:10]written 0, free lines is 3326 [20:44:10]MH_Cut [20:44:10]Write to MH i2c: D1 01 00 66 10 01 48 [20:44:10]Write i2c OK [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: D1 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: D1 01 00 [20:44:10]MH_I2C_Read... [20:44:10]Read from MH i2c: D1 01 00 66 10 00 47 [20:44:10]Write to MH i2c: 01 00 00 67 10 77 [20:44:10]Write i2c OK [20:44:10]MH_I2C_Read... [20:44:10]OFD Sender: No OFD packet to send [20:44:10]*** Cut start [20:44:10]*** Purtial cut [20:44:10]*** CUTSNS_PIN = 0 [20:44:11]*** Stage 1: CUTSNS_PIN = 1 [20:44:12]Read from MH i2c: 01 [20:44:12]MH_I2C_Read... [20:44:12]*** Stop cut motor [20:44:12]*** Cut end [20:44:12]Read from MH i2c: 01 07 00 [20:44:12]MH_I2C_Read... [20:44:12]Read from MH i2c: 01 07 00 67 10 00 00 00 00 00 FF 0F 8C [20:44:12]process_action close_receipt done [20:44:12]requested_data is exist [20:44:12]produce_requested_data [20:44:12]requested_item fm.sn is exist - process it [20:44:12]wFMCommunicate request_size=4 [20:44:12]MH_SAM_APDU [20:44:12]CAPDU: 80 11 00 00 [20:44:12]Write to MH i2c: E2 08 00 68 10 80 11 00 00 00 00 00 00 F2 [20:44:12]Write i2c OK [20:44:12]MH_I2C_Read... [20:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:12]Read from MH i2c: E2 [20:44:12]MH_I2C_Read... [20:44:12]Read from MH i2c: E2 17 00 [20:44:12]MH_I2C_Read... [20:44:12]Read from MH i2c: E2 17 00 68 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 48 [20:44: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:44:12]wFMCommunicate OK [20:44:12]requested_item fd.num is exist - process it [20:44:12]SAM_PROTO_GetFieldsCounters [20:44:12]wFMCommunicate request_size=4 [20:44:12]MH_SAM_APDU [20:44:12]CAPDU: 80 13 00 00 [20:44:12]Write to MH i2c: E2 08 00 69 10 80 13 00 00 00 00 00 00 F5 [20:44:12]Write i2c OK [20:44:12]MH_I2C_Read... [20:44:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:13]Read from MH i2c: E2 [20:44:13]MH_I2C_Read... [20:44:13]Read from MH i2c: E2 62 00 [20:44:13]MH_I2C_Read... [20:44:13]Read from MH i2c: E2 62 00 69 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 94 08 01 00 0E 04 04 00 66 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 C6 [20:44: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 94 08 01 00 0E 04 04 00 66 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 [20:44:13]wFMCommunicate OK [20:44:13]SAM_PROTO_GetFieldsCounters done [20:44:13]requested_item shift.num is exist - process it [20:44:13]requested_item shift.opened is exist - process it [20:44:13]req_shift_opened [20:44:13]FM_GetShiftState [20:44:13]SAM_PROTO_GetShiftState [20:44:13]wFMCommunicate request_size=4 [20:44:13]MH_SAM_APDU [20:44:13]CAPDU: 80 13 01 00 [20:44:13]Write to MH i2c: E2 08 00 6A 10 80 13 01 00 00 00 00 00 F7 [20:44:13]Write i2c OK [20:44:13]MH_I2C_Read... [20:44:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:13]Read from MH i2c: E2 [20:44:13]MH_I2C_Read... [20:44:13]Read from MH i2c: E2 0E 00 [20:44:13]MH_I2C_Read... [20:44:13]Read from MH i2c: E2 0E 00 6A 10 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 7D [20:44:13]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:44:13]wFMCommunicate OK [20:44:13]SAM_PROTO_GetShiftState done [20:44:13]FM_GetShiftState done [20:44:13]req_shift_opened done [20:44:13]requested_item shift.open_date is exist - process it [20:44:13]req_shift_open_date [20:44:13]req_shift_open_date done [20:44:13]produce_requested_data done [20:44:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67732,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:44:13]process_action_free close_receipt [20:44:13]json_value_free [20:44:13]json_value_free done [20:44:13]process_json_proto returns [20:44:13]Send response to host [20:44:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67732,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:44:13]free response buf [20:44:13]execute_script done [20:44:13]execute_script returns [20:44:13]free content buf [20:44:13]Sock 9.Close socket [20:44:13]Sock 9.Thread stoped [20:44:15]OFD Sender: No OFD packet to send [20:44:20]OFD Sender: No OFD packet to send [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:00]accept exits with 7 [20:46:00]New connection [20:46:00]New thread 3066752356 created [20:46:00]Thread 3066608996 joined [20:46:00]Waiting for new connection... [20:46:00] Sock 7.Parse request [20:46:00]Sock 7.Check first char [20:46:00]Sock 7.First char is OK [20:46:00]request: POST /json_proto HTTP/1.0 [20:46:00]Method: POST [20:46:00]URL: /json_proto [20:46:00]Method is POST - this is cgi request [20:46:00]url: /json_proto [20:46:00]query_string will be loaded in cgi processing [20:46:00]execute_cgi json_proto POST (null) [20:46:00]execute_cgi path=json_proto method=POST [20:46:00]POST find Content-Length [20:46:00]Host: 172.17.41.195:8080 [20:46:00]Content-Length: 679 [20:46:00]Content-Type: application/json [20:46:00] [20:46:00]POST finish read [20:46:00]Found Content-Length = 679 [20:46:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507888", "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" ] } } [20:46:00]execute_script... [20:46: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)507888", "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" ] } } [20:46:00]POST & json_proto [20:46:00]process_json_proto [20:46:00]json parsed OK: [20:46:00]protocol is kg_v1.0 [20:46:00]action value=close_receipt [20:46:00]process_action close_receipt [20:46:00]cmd_close_receipt [20:46:00]MH_GetDate [20:46:00]Write to MH i2c: F0 00 00 6B 10 6A [20:46:00]Write i2c OK [20:46:00]MH_I2C_Read... [20:46:00]Read from MH i2c: F0 [20:46:00]MH_I2C_Read... [20:46:00]Read from MH i2c: F0 09 00 [20:46:00]MH_I2C_Read... [20:46:00]Read from MH i2c: F0 09 00 6B 10 00 0A C2 47 66 FC 21 6F 64 DC [20:46:00]GetLastDocTimeStamp 1715978649 [20:46:00]current date 1715978762 [20:46:00]FM_GetShiftState [20:46:00]SAM_PROTO_GetShiftState [20:46:00]wFMCommunicate request_size=4 [20:46:00]MH_SAM_APDU [20:46:00]CAPDU: 80 13 01 00 [20:46:00]Write to MH i2c: E2 08 00 6C 10 80 13 01 00 00 00 00 00 F9 [20:46:00]Write i2c OK [20:46:00]MH_I2C_Read... [20:46:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:00]Read from MH i2c: E2 [20:46:00]MH_I2C_Read... [20:46:00]Read from MH i2c: E2 0E 00 [20:46:00]MH_I2C_Read... [20:46:00]Read from MH i2c: E2 0E 00 6C 10 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 7F [20:46:00]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:46:00]wFMCommunicate OK [20:46:00]SAM_PROTO_GetShiftState done [20:46:00]FM_GetShiftState done [20:46:00]opened in 1715905068 [20:46:00]opened+sec_in_day 1715991468 [20:46:00]quantity*price = 100023 [20:46:00]sum+1 = 100024 [20:46:00]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 СНО: Общий режим Чек 142 17.05.2024 20:46 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67733 ФПД: 271686645765974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T204602&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67733&fm=271686645765974&tin=02508201610067®Number=0000000000091845&sum=100000 [20:46:01]StoreToDocumentArchive [20:46:01]shift 358 fd 67733 [20:46:01]save to /storage/0358/doc_00067733 [20:46:01]save last doc name /storage/0358/doc_00067733 to /storage/kkm_last_doc_name [20:46:01]save OK [20:46:01]Clear old archive folders... [20:46:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:46:01]tlvbuf is 01AF3260 [20:46:01]SAM_PROTO_ClearQueue [20:46:01]wFMCommunicate request_size=4 [20:46:01]MH_SAM_APDU [20:46:01]CAPDU: 80 09 00 00 [20:46:01]Write to MH i2c: E2 08 00 79 10 80 09 00 00 00 00 00 00 FB [20:46:01]Write i2c OK [20:46:01]MH_I2C_Read... [20:46:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:01]Read from MH i2c: E2 [20:46:01]MH_I2C_Read... [20:46:01]Read from MH i2c: E2 03 00 [20:46:01]MH_I2C_Read... [20:46:01]Read from MH i2c: E2 03 00 79 10 00 90 00 FD [20:46:01]RAPDU: 90 00 [20:46:01]wFMCommunicate OK [20:46:01]SAM_PROTO_ClearQueue done [20:46:01]KKMCreateOFDPacket [20:46:01]OFDProtocolAddRootSTLVToBuf [20:46:01]FM_MakeSignedData [20:46:01]FM_MakeSignedData [20:46:01]SAM_PROTO_SignData [20:46:01]wFMCommunicate request_size=4 [20:46:01]MH_SAM_APDU [20:46:01]CAPDU: 80 0D 01 02 [20:46:01]Write to MH i2c: E2 08 00 7A 10 80 0D 01 02 00 00 00 00 03 [20:46:01]Write i2c OK [20:46:01]MH_I2C_Read... [20:46:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:01]Read from MH i2c: E2 [20:46:01]MH_I2C_Read... [20:46:01]Read from MH i2c: E2 03 00 [20:46:01]MH_I2C_Read... [20:46:01]Read from MH i2c: E2 03 00 7A 10 00 90 00 FE [20:46:01]RAPDU: 90 00 [20:46:01]wFMCommunicate OK [20:46:01]wFMCommunicate request_size=255 [20:46:01]MH_SAM_APDU [20:46: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 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 8E 00 00 00 F4 03 04 00 0A C2 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F7 18 FA 02 [20:46:01]Write to MH i2c: E2 02 01 7B 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 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 8E 00 00 00 F4 03 04 00 0A C2 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F7 18 FA 02 00 00 F4 [20:46:01]Write i2c OK [20:46:01]MH_I2C_Read... [20:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:02]Read from MH i2c: E2 [20:46:02]MH_I2C_Read... [20:46:02]Read from MH i2c: E2 03 00 [20:46:02]MH_I2C_Read... [20:46:02]Read from MH i2c: E2 03 00 7B 10 00 90 00 FF [20:46:02]RAPDU: 90 00 [20:46:02]wFMCommunicate OK [20:46:02]wFMCommunicate request_size=7 [20:46:02]MH_SAM_APDU [20:46:02]CAPDU: 80 0D 02 02 02 D7 56 [20:46:02]Write to MH i2c: E2 0A 00 7C 10 80 0D 02 02 02 00 D7 56 00 00 37 [20:46:02]Write i2c OK [20:46:02]MH_I2C_Read... [20:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:02]Read from MH i2c: E2 [20:46:02]MH_I2C_Read... [20:46:02]Read from MH i2c: E2 03 00 [20:46:02]MH_I2C_Read... [20:46:02]Read from MH i2c: E2 03 00 7C 10 00 90 00 00 [20:46:02]RAPDU: 90 00 [20:46:02]wFMCommunicate OK [20:46:02]wFMCommunicate request_size=4 [20:46:02]MH_SAM_APDU [20:46:02]CAPDU: 80 0D 03 02 [20:46:02]Write to MH i2c: E2 08 00 7D 10 80 0D 03 02 00 00 00 00 08 [20:46:02]Write i2c OK [20:46:02]MH_I2C_Read... [20:46:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:02]Read from MH i2c: E2 [20:46:02]MH_I2C_Read... [20:46:02]Read from MH i2c: E2 0B 00 [20:46:02]MH_I2C_Read... [20:46:02]Read from MH i2c: E2 0B 00 7D 10 00 A0 A9 37 31 F5 9D DB D2 90 00 F9 [20:46:02]RAPDU: A0 A9 37 31 F5 9D DB D2 90 00 [20:46:02]wFMCommunicate OK [20:46:02]SAM_PROTO_SignData done [20:46:02]FM_MakeSignedData done [20:46:02]CreateOFDProtocolMessage [20:46:02]wFMCommunicate request_size=4 [20:46:02]MH_SAM_APDU [20:46:02]CAPDU: 80 11 00 00 [20:46:02]Write to MH i2c: E2 08 00 7E 10 80 11 00 00 00 00 00 00 08 [20:46:02]Write i2c OK [20:46:02]MH_I2C_Read... [20:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:02]Read from MH i2c: E2 [20:46:02]MH_I2C_Read... [20:46:02]Read from MH i2c: E2 17 00 [20:46:02]MH_I2C_Read... [20:46:02]Read from MH i2c: E2 17 00 7E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5E [20: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 [20:46:02]wFMCommunicate OK [20:46:02]CreateOFDProtocolMessage done [20:46:02]OFDSenderStorePacket 67733 [20:46:02]StoreOFDPacket docnum=67733 [20:46: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 7F 21 04 01 A7 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 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 8E 00 00 00 F4 03 04 00 0A C2 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F7 18 FA 02 D7 56 A0 A9 37 31 F5 9D DB D2 [20:46:02]CheckFolder [20:46:02]dirname=/storage/ofd_packets [20:46:02]CheckFolder done [20:46:02]ProducePacketName [20:46:02]name=ofd_packets/00067733 [20:46:02]NVStorageSaveData ofd_packets/00067733 [20:46:02]File name is /storage/ofd_packets/00067733 [20:46:02]Write 298 bytes [20:46:02]NVStorageSaveData done [20:46:02]OFDSenderStorePacket done [20:46:02]KKMCreateOFDPacket done [20:46:02]NVStorageSaveData kkm_last_timestamp [20:46:02]File name is /storage/kkm_last_timestamp [20:46:02]Write 4 bytes [20:46:02]NVStorageSaveData done [20:46:02]ExternCall_PrintAddStr [20:46:02]wPrintStart [20:46:02]Write to MH i2c: 01 00 00 7F 10 8F [20:46:02]Write i2c OK [20:46:02]MH_I2C_Read... [20:46:02]Read from MH i2c: 01 [20:46:02]MH_I2C_Read... [20:46:02]Read from MH i2c: 01 07 00 [20:46:02]MH_I2C_Read... [20:46:02]Read from MH i2c: 01 07 00 7F 10 00 00 00 00 00 FF 0F A4 [20:46:02]RasterBufferAndPrint [20:46:02]line Счет N : (1)507888 [20:46:02]line ИНН: 02508201610067 [20:46:02]line Контрольно-Кассовый Чек [20:46:02]line ПРОДАЖА [20:46:02]line ТРК (МРК, ГНК) : 41 [20:46:02]line Товар: 2710194210 [20:46:02]line ДТ-К-5 [20:46:02]line 13.390 * 74.70 [20:46:02]line = 1000.23 [20:46:02]line НДС 12% НСП 1% [20:46:02]line > о реализуемом товаре [20:46:02]line ОКРУГЛЕНИЕ: -0.23 [20:46:02]line ИТОГО: 1000.00 [20:46:02]line Внесено: 1000.00 [20:46:02]line СДАЧА: 0.00 [20:46:02]line НСП 1% : 8.85 [20:46:02]line НДС 12% : 106.22 [20:46:02]line Наличными: 1000.00 [20:46:02]line Безнал.: 0.00 [20:46:02]line Место: АЗС № 91 "Партнер Нефть" [20:46:02]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:46:02]line СНО: Общий режим [20:46:02]line Чек 142 17.05.2024 20:46 [20:46:02]line Смена: 358 ФФД: 1.0 [20:46:02]line ЗНМ: 0300000119 [20:46:02]line РНМ: 0000000000091845 [20:46:02]line Версия ККМ: 001 [20:46:02]line ФМ: 0000000000871829 [20:46:02]line ФД: 67733 [20:46:02]line ФПД: 271686645765974 [20:46:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T204602&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67733&fm=271686645765974&tin=02508201610067®Number=0000000000091845&sum=100000 [20:46:02]OFD Sender: Processing packet 67733 [packets to send 35, broken 34] [20:46:02]ProducePacketName [20:46:02]name=ofd_packets/00067733 [20:46:02]OFD Sender: To server: pG, [20:46:02]CommunicateWithHost lk.salyk.kg:30040 [20:46:02]ConnectInit lk.salyk.kg [20:46:02]written 0, free lines is 4095 [20:46:02]Connected sock=10 [20:46: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 7F 21 04 01 A7 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 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 8E 00 00 00 F4 03 04 00 0A C2 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F7 18 FA 02 D7 56 A0 A9 37 31 F5 9D DB D2 [20:46: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 26 71 47 00 7E 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 95 08 01 00 F4 03 04 00 E1 69 47 66 B6 04 01 00 00 6A 78 BA 2D 24 59 C6 9D [20:46:02]CommunicateWithHost err = 0 [20:46:02]CheckOFDResponse [20:46:02]1017 (14) - 77093643461234 [20:46:02]1041 (16) - 0000000000871829 [20:46:02]1040 (4) - 67733 [20:46:02]1012 (4) - 17.05.2024 14:29 [20:46:02]1206 (1) - 0 [20:46:02]OFD Sender: Remove packet 67733 [20:46:02]ProducePacketName [20:46:02]name=ofd_packets/00067733 [20:46:02]NVStorageDeleteData [20:46:03]Write to MH i2c: 01 00 00 A9 10 B9 [20:46:03]Write i2c OK [20:46:03]MH_I2C_Read... [20:46:03]Read from MH i2c: 01 [20:46:03]MH_I2C_Read... [20:46:03]Read from MH i2c: 01 07 00 [20:46:03]MH_I2C_Read... [20:46:03]Read from MH i2c: 01 07 00 A9 10 00 00 00 00 00 CD 0C 99 [20:46:03]RasterBufferAndPrint [20:46:03]line [20:46:03]line [20:46:03]line [20:46:03]line [20:46:03]line [20:46:03]written 0, free lines is 3283 [20:46:03]MH_Cut [20:46:03]Write to MH i2c: D1 01 00 B0 10 01 92 [20:46:03]Write i2c OK [20:46:03]MH_I2C_Read... [20:46:03]Read from MH i2c: D1 [20:46:03]MH_I2C_Read... [20:46:03]Read from MH i2c: D1 01 00 [20:46:03]MH_I2C_Read... [20:46:03]Read from MH i2c: D1 01 00 B0 10 00 91 [20:46:03]Write to MH i2c: 01 00 00 B1 10 C1 [20:46:03]Write i2c OK [20:46:03]MH_I2C_Read... [20:46:03]OFD Sender: No OFD packet to send [20:46:03]*** Cut start [20:46:03]*** Purtial cut [20:46:03]*** Stage 1: CUTSNS_PIN = 1 [20:46:04]Read from MH i2c: 01 [20:46:04]MH_I2C_Read... [20:46:04]*** Stop cut motor [20:46:04]*** Cut end [20:46:04]Read from MH i2c: 01 07 00 [20:46:04]MH_I2C_Read... [20:46:04]Read from MH i2c: 01 07 00 B1 10 00 00 00 00 00 FF 0F D6 [20:46:04]process_action close_receipt done [20:46:04]requested_data is exist [20:46:04]produce_requested_data [20:46:04]requested_item fm.sn is exist - process it [20:46:04]wFMCommunicate request_size=4 [20:46:04]MH_SAM_APDU [20:46:04]CAPDU: 80 11 00 00 [20:46:04]Write to MH i2c: E2 08 00 B2 10 80 11 00 00 00 00 00 00 3C [20:46:04]Write i2c OK [20:46:04]MH_I2C_Read... [20:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:04]Read from MH i2c: E2 [20:46:04]MH_I2C_Read... [20:46:04]Read from MH i2c: E2 17 00 [20:46:04]MH_I2C_Read... [20:46:04]Read from MH i2c: E2 17 00 B2 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 92 [20:46:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:46:04]wFMCommunicate OK [20:46:04]requested_item fd.num is exist - process it [20:46:04]SAM_PROTO_GetFieldsCounters [20:46:04]wFMCommunicate request_size=4 [20:46:04]MH_SAM_APDU [20:46:04]CAPDU: 80 13 00 00 [20:46:04]Write to MH i2c: E2 08 00 B3 10 80 13 00 00 00 00 00 00 3F [20:46:04]Write i2c OK [20:46:04]MH_I2C_Read... [20:46:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:04]Read from MH i2c: E2 [20:46:04]MH_I2C_Read... [20:46:04]Read from MH i2c: E2 62 00 [20:46:04]MH_I2C_Read... [20:46:04]Read from MH i2c: E2 62 00 B3 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 95 08 01 00 0E 04 04 00 66 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 14 [20:46: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 95 08 01 00 0E 04 04 00 66 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 [20:46:04]wFMCommunicate OK [20:46:04]SAM_PROTO_GetFieldsCounters done [20:46:04]requested_item shift.num is exist - process it [20:46:04]requested_item shift.opened is exist - process it [20:46:04]req_shift_opened [20:46:04]FM_GetShiftState [20:46:04]SAM_PROTO_GetShiftState [20:46:04]wFMCommunicate request_size=4 [20:46:04]MH_SAM_APDU [20:46:04]CAPDU: 80 13 01 00 [20:46:04]Write to MH i2c: E2 08 00 B4 10 80 13 01 00 00 00 00 00 41 [20:46:04]Write i2c OK [20:46:04]MH_I2C_Read... [20:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:04]Read from MH i2c: E2 [20:46:04]MH_I2C_Read... [20:46:04]Read from MH i2c: E2 0E 00 [20:46:04]MH_I2C_Read... [20:46:04]Read from MH i2c: E2 0E 00 B4 10 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 C7 [20:46:04]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:46:04]wFMCommunicate OK [20:46:04]SAM_PROTO_GetShiftState done [20:46:04]FM_GetShiftState done [20:46:04]req_shift_opened done [20:46:04]requested_item shift.open_date is exist - process it [20:46:04]req_shift_open_date [20:46:04]req_shift_open_date done [20:46:04]produce_requested_data done [20:46:04]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67733,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:46:04]process_action_free close_receipt [20:46:04]json_value_free [20:46:04]json_value_free done [20:46:04]process_json_proto returns [20:46:04]Send response to host [20:46:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67733,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:46:04]free response buf [20:46:04]execute_script done [20:46:04]execute_script returns [20:46:04]free content buf [20:46:04]Sock 7.Close socket [20:46:04]Sock 7.Thread stoped [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:23]OFD Sender: No OFD packet to send [20:46:28]OFD Sender: No OFD packet to send [20:46:33]OFD Sender: No OFD packet to send [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:48]accept exits with 9 [20:46:48]New connection [20:46:48]New thread 3066608996 created [20:46:48]Thread 3066752356 joined [20:46:48]Waiting for new connection... [20:46:48] Sock 9.Parse request [20:46:48]Sock 9.Check first char [20:46:48]Sock 9.First char is OK [20:46:48]request: POST /json_proto HTTP/1.0 [20:46:48]Method: POST [20:46:48]URL: /json_proto [20:46:48]Method is POST - this is cgi request [20:46:48]url: /json_proto [20:46:48]query_string will be loaded in cgi processing [20:46:48]execute_cgi json_proto POST (null) [20:46:48]execute_cgi path=json_proto method=POST [20:46:48]POST find Content-Length [20:46:48]Host: 172.17.41.195:8080 [20:46:48]Content-Length: 674 [20:46:48]Content-Type: application/json [20:46:48] [20:46:48]POST finish read [20:46:48]Found Content-Length = 674 [20:46:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 9.380, "sum" : 700.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [20:46:48]execute_script... [20:46: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)507889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 9.380, "sum" : 700.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [20:46:48]POST & json_proto [20:46:48]process_json_proto [20:46:48]json parsed OK: [20:46:48]protocol is kg_v1.0 [20:46:48]action value=close_receipt [20:46:48]process_action close_receipt [20:46:48]cmd_close_receipt [20:46:48]MH_GetDate [20:46:48]Write to MH i2c: F0 00 00 B5 10 B4 [20:46:48]Write i2c OK [20:46:48]MH_I2C_Read... [20:46:48]Read from MH i2c: F0 [20:46:48]MH_I2C_Read... [20:46:48]Read from MH i2c: F0 09 00 [20:46:48]MH_I2C_Read... [20:46:48]Read from MH i2c: F0 09 00 B5 10 00 3A C2 47 66 FC 21 6F 64 56 [20:46:48]GetLastDocTimeStamp 1715978762 [20:46:48]current date 1715978810 [20:46:48]FM_GetShiftState [20:46:48]SAM_PROTO_GetShiftState [20:46:48]wFMCommunicate request_size=4 [20:46:48]MH_SAM_APDU [20:46:48]CAPDU: 80 13 01 00 [20:46:48]Write to MH i2c: E2 08 00 B6 10 80 13 01 00 00 00 00 00 43 [20:46:48]Write i2c OK [20:46:48]MH_I2C_Read... [20:46:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:48]Read from MH i2c: E2 [20:46:48]MH_I2C_Read... [20:46:48]Read from MH i2c: E2 0E 00 [20:46:48]MH_I2C_Read... [20:46:48]Read from MH i2c: E2 0E 00 B6 10 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 C9 [20:46:48]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:46:48]wFMCommunicate OK [20:46:48]SAM_PROTO_GetShiftState done [20:46:48]FM_GetShiftState done [20:46:48]opened in 1715905068 [20:46:48]opened+sec_in_day 1715991468 [20:46:48]quantity*price = 70068 [20:46:48]sum+1 = 70070 [20:46:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.41 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 143 17.05.2024 20:46 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67734 ФПД: 19074739084945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T204650&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67734&fm=19074739084945&tin=02508201610067®Number=0000000000091845&sum=70000 [20:46:49]StoreToDocumentArchive [20:46:49]shift 358 fd 67734 [20:46:49]save to /storage/0358/doc_00067734 [20:46:49]save last doc name /storage/0358/doc_00067734 to /storage/kkm_last_doc_name [20:46:49]save OK [20:46:49]Clear old archive folders... [20:46:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:46:49]tlvbuf is 01B192B0 [20:46:49]SAM_PROTO_ClearQueue [20:46:49]wFMCommunicate request_size=4 [20:46:49]MH_SAM_APDU [20:46:49]CAPDU: 80 09 00 00 [20:46:49]Write to MH i2c: E2 08 00 C3 10 80 09 00 00 00 00 00 00 45 [20:46:49]Write i2c OK [20:46:49]MH_I2C_Read... [20:46:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:49]Read from MH i2c: E2 [20:46:49]MH_I2C_Read... [20:46:49]Read from MH i2c: E2 03 00 [20:46:49]MH_I2C_Read... [20:46:49]Read from MH i2c: E2 03 00 C3 10 00 90 00 47 [20:46:49]RAPDU: 90 00 [20:46:49]wFMCommunicate OK [20:46:49]SAM_PROTO_ClearQueue done [20:46:49]KKMCreateOFDPacket [20:46:49]OFDProtocolAddRootSTLVToBuf [20:46:49]FM_MakeSignedData [20:46:49]FM_MakeSignedData [20:46:49]SAM_PROTO_SignData [20:46:49]wFMCommunicate request_size=4 [20:46:49]MH_SAM_APDU [20:46:49]CAPDU: 80 0D 01 02 [20:46:49]Write to MH i2c: E2 08 00 C4 10 80 0D 01 02 00 00 00 00 4D [20:46:49]Write i2c OK [20:46:49]MH_I2C_Read... [20:46:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:49]Read from MH i2c: E2 [20:46:49]MH_I2C_Read... [20:46:49]Read from MH i2c: E2 03 00 [20:46:49]MH_I2C_Read... [20:46:49]Read from MH i2c: E2 03 00 C4 10 00 90 00 48 [20:46:49]RAPDU: 90 00 [20:46:49]wFMCommunicate OK [20:46:49]wFMCommunicate request_size=255 [20:46:49]MH_SAM_APDU [20:46: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 A4 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 11 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 3A C2 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 11 59 2F 0C [20:46:49]Write to MH i2c: E2 02 01 C5 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 11 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 3A C2 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 11 59 2F 0C 00 00 0C [20:46:49]Write i2c OK [20:46:49]MH_I2C_Read... [20:46:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:50]Read from MH i2c: E2 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: E2 03 00 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: E2 03 00 C5 10 00 90 00 49 [20:46:50]RAPDU: 90 00 [20:46:50]wFMCommunicate OK [20:46:50]wFMCommunicate request_size=7 [20:46:50]MH_SAM_APDU [20:46:50]CAPDU: 80 0D 02 02 02 1E 91 [20:46:50]Write to MH i2c: E2 0A 00 C6 10 80 0D 02 02 02 00 1E 91 00 00 03 [20:46:50]Write i2c OK [20:46:50]MH_I2C_Read... [20:46:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:50]Read from MH i2c: E2 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: E2 03 00 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: E2 03 00 C6 10 00 90 00 4A [20:46:50]RAPDU: 90 00 [20:46:50]wFMCommunicate OK [20:46:50]wFMCommunicate request_size=4 [20:46:50]MH_SAM_APDU [20:46:50]CAPDU: 80 0D 03 02 [20:46:50]Write to MH i2c: E2 08 00 C7 10 80 0D 03 02 00 00 00 00 52 [20:46:50]Write i2c OK [20:46:50]MH_I2C_Read... [20:46:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:50]Read from MH i2c: E2 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: E2 0B 00 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: E2 0B 00 C7 10 00 29 26 4D CF E6 48 F7 0F 90 00 F2 [20:46:50]RAPDU: 29 26 4D CF E6 48 F7 0F 90 00 [20:46:50]wFMCommunicate OK [20:46:50]SAM_PROTO_SignData done [20:46:50]FM_MakeSignedData done [20:46:50]CreateOFDProtocolMessage [20:46:50]wFMCommunicate request_size=4 [20:46:50]MH_SAM_APDU [20:46:50]CAPDU: 80 11 00 00 [20:46:50]Write to MH i2c: E2 08 00 C8 10 80 11 00 00 00 00 00 00 52 [20:46:50]Write i2c OK [20:46:50]MH_I2C_Read... [20:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:50]Read from MH i2c: E2 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: E2 17 00 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: E2 17 00 C8 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A8 [20:46:50]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:50]wFMCommunicate OK [20:46:50]CreateOFDProtocolMessage done [20:46:50]OFDSenderStorePacket 67734 [20:46:50]StoreOFDPacket docnum=67734 [20:46:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 2B 85 04 01 F7 95 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 11 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 3A C2 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 11 59 2F 0C 1E 91 29 26 4D CF E6 48 F7 0F [20:46:50]CheckFolder [20:46:50]dirname=/storage/ofd_packets [20:46:50]CheckFolder done [20:46:50]ProducePacketName [20:46:50]name=ofd_packets/00067734 [20:46:50]NVStorageSaveData ofd_packets/00067734 [20:46:50]File name is /storage/ofd_packets/00067734 [20:46:50]Write 298 bytes [20:46:50]NVStorageSaveData done [20:46:50]OFDSenderStorePacket done [20:46:50]KKMCreateOFDPacket done [20:46:50]NVStorageSaveData kkm_last_timestamp [20:46:50]File name is /storage/kkm_last_timestamp [20:46:50]Write 4 bytes [20:46:50]NVStorageSaveData done [20:46:50]ExternCall_PrintAddStr [20:46:50]wPrintStart [20:46:50]Write to MH i2c: 01 00 00 C9 10 D9 [20:46:50]Write i2c OK [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: 01 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: 01 07 00 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: 01 07 00 C9 10 00 00 00 00 00 FF 0F EE [20:46:50]RasterBufferAndPrint [20:46:50]line Счет N : (1)507889 [20:46:50]line ИНН: 02508201610067 [20:46:50]line Контрольно-Кассовый Чек [20:46:50]line ПРОДАЖА [20:46:50]line ТРК (МРК, ГНК) : 31 [20:46:50]line Товар: 2710194210 [20:46:50]line ДТ-К-5 [20:46:50]line 9.380 * 74.70 [20:46:50]line = 700.69 [20:46:50]line НДС 12% НСП 1% [20:46:50]line > о реализуемом товаре [20:46:50]line ОКРУГЛЕНИЕ: -0.69 [20:46:50]line ИТОГО: 700.00 [20:46:50]line Внесено: 700.00 [20:46:50]line СДАЧА: 0.00 [20:46:50]line НСП 1% : 6.20 [20:46:50]line НДС 12% : 74.41 [20:46:50]line Наличными: 700.00 [20:46:50]line Безнал.: 0.00 [20:46:50]line Место: АЗС № 91 "Партнер Нефть" [20:46:50]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:46:50]line СНО: Общий режим [20:46:50]line Чек 143 17.05.2024 20:46 [20:46:50]line Смена: 358 ФФД: 1.0 [20:46:50]line ЗНМ: 0300000119 [20:46:50]line РНМ: 0000000000091845 [20:46:50]line Версия ККМ: 001 [20:46:50]line ФМ: 0000000000871829 [20:46:50]line ФД: 67734 [20:46:50]line ФПД: 19074739084945 [20:46:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T204650&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67734&fm=19074739084945&tin=02508201610067®Number=0000000000091845&sum=70000 [20:46:50]OFD Sender: Processing packet 67734 [packets to send 35, broken 34] [20:46:50]ProducePacketName [20:46:50]name=ofd_packets/00067734 [20:46:50]OFD Sender: To server: pG, [20:46:50]CommunicateWithHost lk.salyk.kg:30040 [20:46:50]ConnectInit lk.salyk.kg [20:46:50]written 0, free lines is 4095 [20:46:50]Connected sock=10 [20:46: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 2B 85 04 01 F7 95 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 24 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B5 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 11 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 3A C2 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 11 59 2F 0C 1E 91 29 26 4D CF E6 48 F7 0F [20:46: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 E3 00 47 00 65 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 11 6A 47 66 B6 04 01 00 00 79 30 79 15 18 93 6C 1B [20:46:50]CommunicateWithHost err = 0 [20:46:50]CheckOFDResponse [20:46:50]1017 (14) - 77093643461234 [20:46:50]1041 (16) - 0000000000871829 [20:46:50]1040 (4) - 67734 [20:46:50]1012 (4) - 17.05.2024 14:30 [20:46:50]1206 (1) - 0 [20:46:50]OFD Sender: Remove packet 67734 [20:46:50]ProducePacketName [20:46:50]name=ofd_packets/00067734 [20:46:50]NVStorageDeleteData [20:46:50]Write to MH i2c: 01 00 00 F3 10 03 [20:46:50]Write i2c OK [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: 01 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: 01 07 00 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: 01 07 00 F3 10 00 00 00 00 00 D9 0C EF [20:46:50]RasterBufferAndPrint [20:46:50]line [20:46:50]line [20:46:50]line [20:46:50]line [20:46:50]line [20:46:50]written 0, free lines is 3296 [20:46:50]MH_Cut [20:46:50]Write to MH i2c: D1 01 00 FA 10 01 DC [20:46:50]Write i2c OK [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: D1 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: D1 01 00 [20:46:50]MH_I2C_Read... [20:46:50]Read from MH i2c: D1 01 00 FA 10 00 DB [20:46:50]Write to MH i2c: 01 00 00 FB 10 0B [20:46:50]Write i2c OK [20:46:50]MH_I2C_Read... [20:46:51]OFD Sender: No OFD packet to send [20:46:51]*** Cut start [20:46:51]*** Purtial cut [20:46:51]*** CUTSNS_PIN = 0 [20:46:51]*** Stage 1: CUTSNS_PIN = 1 [20:46:53]Read from MH i2c: 01 [20:46:53]MH_I2C_Read... [20:46:53]*** Stop cut motor [20:46:53]*** Cut end [20:46:53]Read from MH i2c: 01 07 00 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: 01 07 00 FB 10 00 00 00 00 00 FF 0F 20 [20:46:53]process_action close_receipt done [20:46:53]requested_data is exist [20:46:53]produce_requested_data [20:46:53]requested_item fm.sn is exist - process it [20:46:53]wFMCommunicate request_size=4 [20:46:53]MH_SAM_APDU [20:46:53]CAPDU: 80 11 00 00 [20:46:53]Write to MH i2c: E2 08 00 FC 10 80 11 00 00 00 00 00 00 86 [20:46:53]Write i2c OK [20:46:53]MH_I2C_Read... [20:46:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:53]Read from MH i2c: E2 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 17 00 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 17 00 FC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DC [20:46:53]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:53]wFMCommunicate OK [20:46:53]requested_item fd.num is exist - process it [20:46:53]SAM_PROTO_GetFieldsCounters [20:46:53]wFMCommunicate request_size=4 [20:46:53]MH_SAM_APDU [20:46:53]CAPDU: 80 13 00 00 [20:46:53]Write to MH i2c: E2 08 00 FD 10 80 13 00 00 00 00 00 00 89 [20:46:53]Write i2c OK [20:46:53]MH_I2C_Read... [20:46:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:53]Read from MH i2c: E2 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 62 00 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 62 00 FD 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 96 08 01 00 0E 04 04 00 66 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 62 [20:46: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 96 08 01 00 0E 04 04 00 66 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 [20:46:53]wFMCommunicate OK [20:46:53]SAM_PROTO_GetFieldsCounters done [20:46:53]requested_item shift.num is exist - process it [20:46:53]requested_item shift.opened is exist - process it [20:46:53]req_shift_opened [20:46:53]FM_GetShiftState [20:46:53]SAM_PROTO_GetShiftState [20:46:53]wFMCommunicate request_size=4 [20:46:53]MH_SAM_APDU [20:46:53]CAPDU: 80 13 01 00 [20:46:53]Write to MH i2c: E2 08 00 FE 10 80 13 01 00 00 00 00 00 8B [20:46:53]Write i2c OK [20:46:53]MH_I2C_Read... [20:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:53]Read from MH i2c: E2 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 0E 00 [20:46:53]MH_I2C_Read... [20:46:53]Read from MH i2c: E2 0E 00 FE 10 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 11 [20:46:53]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:46:53]wFMCommunicate OK [20:46:53]SAM_PROTO_GetShiftState done [20:46:53]FM_GetShiftState done [20:46:53]req_shift_opened done [20:46:53]requested_item shift.open_date is exist - process it [20:46:53]req_shift_open_date [20:46:53]req_shift_open_date done [20:46:53]produce_requested_data done [20:46:53]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67734,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:46:53]process_action_free close_receipt [20:46:53]json_value_free [20:46:53]json_value_free done [20:46:53]process_json_proto returns [20:46:53]Send response to host [20:46:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67734,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:46:53]free response buf [20:46:53]execute_script done [20:46:53]execute_script returns [20:46:53]free content buf [20:46:53]Sock 9.Close socket [20:46:53]Sock 9.Thread stoped [20:46:56]OFD Sender: No OFD packet to send [20:47:01]OFD Sender: No OFD packet to send [20:47:06]OFD Sender: No OFD packet to send [20:47:11]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:16]OFD Sender: No OFD packet to send [20:50:21]OFD Sender: No OFD packet to send [20:50:26]OFD Sender: No OFD packet to send [20:50:31]OFD Sender: No OFD packet to send [20:50:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]OFD Sender: No OFD packet to send [20:50:51]OFD Sender: No OFD packet to send [20:50:56]OFD Sender: No OFD packet to send [20:51:01]OFD Sender: No OFD packet to send [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:31]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]accept exits with 7 [20:53:51]New connection [20:53:51]New thread 3066752356 created [20:53:51]Thread 3066608996 joined [20:53:51]Waiting for new connection... [20:53:51] Sock 7.Parse request [20:53:51]Sock 7.Check first char [20:53:51]Sock 7.First char is OK [20:53:51]request: POST /json_proto HTTP/1.0 [20:53:51]Method: POST [20:53:51]URL: /json_proto [20:53:51]Method is POST - this is cgi request [20:53:51]url: /json_proto [20:53:51]query_string will be loaded in cgi processing [20:53:51]execute_cgi json_proto POST (null) [20:53:51]execute_cgi path=json_proto method=POST [20:53:51]POST find Content-Length [20:53:51]Host: 172.17.41.195:8080 [20:53:51]Content-Length: 671 [20:53:51]Content-Type: application/json [20:53:51] [20:53:51]POST finish read [20:53:51]Found Content-Length = 671 [20:53:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [20:53:51]execute_script... [20:53: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)507891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [20:53:51]POST & json_proto [20:53:51]process_json_proto [20:53:51]json parsed OK: [20:53:51]protocol is kg_v1.0 [20:53:51]action value=close_receipt [20:53:51]process_action close_receipt [20:53:51]cmd_close_receipt [20:53:51]MH_GetDate [20:53:51]Write to MH i2c: F0 00 00 FF 10 FE [20:53:51]Write i2c OK [20:53:51]MH_I2C_Read... [20:53:51]Read from MH i2c: F0 [20:53:51]MH_I2C_Read... [20:53:51]Read from MH i2c: F0 09 00 [20:53:51]MH_I2C_Read... [20:53:51]Read from MH i2c: F0 09 00 FF 10 00 E1 C3 47 66 FC 21 6F 64 48 [20:53:51]GetLastDocTimeStamp 1715978810 [20:53:51]current date 1715979233 [20:53:51]FM_GetShiftState [20:53:51]SAM_PROTO_GetShiftState [20:53:51]wFMCommunicate request_size=4 [20:53:51]MH_SAM_APDU [20:53:51]CAPDU: 80 13 01 00 [20:53:51]Write to MH i2c: E2 08 00 00 11 80 13 01 00 00 00 00 00 8E [20:53:51]Write i2c OK [20:53:51]MH_I2C_Read... [20:53:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:51]Read from MH i2c: E2 [20:53:51]MH_I2C_Read... [20:53:51]Read from MH i2c: E2 0E 00 [20:53:51]MH_I2C_Read... [20:53:51]Read from MH i2c: E2 0E 00 00 11 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 14 [20:53:51]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:53:51]wFMCommunicate OK [20:53:51]SAM_PROTO_GetShiftState done [20:53:51]FM_GetShiftState done [20:53:51]opened in 1715905068 [20:53:51]opened+sec_in_day 1715991468 [20:53:51]quantity*price = 70037 [20:53:51]sum+1 = 70038 [20:53: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 СНО: Общий режим Чек 144 17.05.2024 20:53 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67735 ФПД: 265103314273542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T205353&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67735&fm=265103314273542&tin=02508201610067®Number=0000000000091845&sum=70000 [20:53:52]StoreToDocumentArchive [20:53:52]shift 358 fd 67735 [20:53:52]save to /storage/0358/doc_00067735 [20:53:52]save last doc name /storage/0358/doc_00067735 to /storage/kkm_last_doc_name [20:53:52]save OK [20:53:52]Clear old archive folders... [20:53:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:53:52]tlvbuf is 01B4C410 [20:53:52]SAM_PROTO_ClearQueue [20:53:52]wFMCommunicate request_size=4 [20:53:52]MH_SAM_APDU [20:53:52]CAPDU: 80 09 00 00 [20:53:52]Write to MH i2c: E2 08 00 0D 11 80 09 00 00 00 00 00 00 90 [20:53:52]Write i2c OK [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: E2 [20:53:52]MH_I2C_Read... [20:53:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:52]Read from MH i2c: E2 03 00 [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: E2 03 00 0D 11 00 90 00 92 [20:53:52]RAPDU: 90 00 [20:53:52]wFMCommunicate OK [20:53:52]SAM_PROTO_ClearQueue done [20:53:52]KKMCreateOFDPacket [20:53:52]OFDProtocolAddRootSTLVToBuf [20:53:52]FM_MakeSignedData [20:53:52]FM_MakeSignedData [20:53:52]SAM_PROTO_SignData [20:53:52]wFMCommunicate request_size=4 [20:53:52]MH_SAM_APDU [20:53:52]CAPDU: 80 0D 01 02 [20:53:52]Write to MH i2c: E2 08 00 0E 11 80 0D 01 02 00 00 00 00 98 [20:53:52]Write i2c OK [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: E2 [20:53:52]MH_I2C_Read... [20:53:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:52]Read from MH i2c: E2 03 00 [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: E2 03 00 0E 11 00 90 00 93 [20:53:52]RAPDU: 90 00 [20:53:52]wFMCommunicate OK [20:53:52]wFMCommunicate request_size=255 [20:53:52]MH_SAM_APDU [20:53: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 90 00 00 00 F4 03 04 00 E1 C3 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 [20:53:52]Write to MH i2c: E2 02 01 0F 11 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 90 00 00 00 F4 03 04 00 E1 C3 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 00 00 15 [20:53:52]Write i2c OK [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: E2 [20:53:52]MH_I2C_Read... [20:53:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:52]Read from MH i2c: E2 03 00 [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: E2 03 00 0F 11 00 90 00 94 [20:53:52]RAPDU: 90 00 [20:53:52]wFMCommunicate OK [20:53:52]wFMCommunicate request_size=11 [20:53:52]MH_SAM_APDU [20:53:52]CAPDU: 80 0D 02 02 06 F1 1C 2C E0 45 06 [20:53:52]Write to MH i2c: E2 0E 00 10 11 80 0D 02 02 06 00 F1 1C 2C E0 45 06 00 00 0B [20:53:52]Write i2c OK [20:53:52]MH_I2C_Read... [20:53:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:52]Read from MH i2c: E2 [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: E2 03 00 [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: E2 03 00 10 11 00 90 00 95 [20:53:52]RAPDU: 90 00 [20:53:52]wFMCommunicate OK [20:53:52]wFMCommunicate request_size=4 [20:53:52]MH_SAM_APDU [20:53:52]CAPDU: 80 0D 03 02 [20:53:52]Write to MH i2c: E2 08 00 11 11 80 0D 03 02 00 00 00 00 9D [20:53:52]Write i2c OK [20:53:52]MH_I2C_Read... [20:53:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:52]Read from MH i2c: E2 [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: E2 0B 00 [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: E2 0B 00 11 11 00 FA 3B C5 DB A4 32 08 4C 90 00 9D [20:53:52]RAPDU: FA 3B C5 DB A4 32 08 4C 90 00 [20:53:52]wFMCommunicate OK [20:53:52]SAM_PROTO_SignData done [20:53:52]FM_MakeSignedData done [20:53:52]CreateOFDProtocolMessage [20:53:52]wFMCommunicate request_size=4 [20:53:52]MH_SAM_APDU [20:53:52]CAPDU: 80 11 00 00 [20:53:52]Write to MH i2c: E2 08 00 12 11 80 11 00 00 00 00 00 00 9D [20:53:52]Write i2c OK [20:53:52]MH_I2C_Read... [20:53:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:52]Read from MH i2c: E2 [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: E2 17 00 [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: E2 17 00 12 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F3 [20:53:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:53:52]wFMCommunicate OK [20:53:52]CreateOFDProtocolMessage done [20:53:52]OFDSenderStorePacket 67735 [20:53:52]StoreOFDPacket docnum=67735 [20:53: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 26 49 08 01 E2 79 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 90 00 00 00 F4 03 04 00 E1 C3 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F1 1C 2C E0 45 06 FA 3B C5 DB A4 32 08 4C [20:53:52]CheckFolder [20:53:52]dirname=/storage/ofd_packets [20:53:52]CheckFolder done [20:53:52]ProducePacketName [20:53:52]name=ofd_packets/00067735 [20:53:52]NVStorageSaveData ofd_packets/00067735 [20:53:52]File name is /storage/ofd_packets/00067735 [20:53:52]Write 302 bytes [20:53:52]NVStorageSaveData done [20:53:52]OFDSenderStorePacket done [20:53:52]KKMCreateOFDPacket done [20:53:52]NVStorageSaveData kkm_last_timestamp [20:53:52]File name is /storage/kkm_last_timestamp [20:53:52]Write 4 bytes [20:53:52]NVStorageSaveData done [20:53:52]ExternCall_PrintAddStr [20:53:52]wPrintStart [20:53:52]Write to MH i2c: 01 00 00 13 11 24 [20:53:52]Write i2c OK [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: 01 [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: 01 07 00 [20:53:52]MH_I2C_Read... [20:53:52]Read from MH i2c: 01 07 00 13 11 00 00 00 00 00 FF 0F 39 [20:53:52]RasterBufferAndPrint [20:53:52]line Счет N : (1)507891 [20:53:52]line ИНН: 02508201610067 [20:53:52]line Контрольно-Кассовый Чек [20:53:52]line ПРОДАЖА [20:53:52]line ТРК (МРК, ГНК) : 32 [20:53:52]line Товар: 2710124130 [20:53:52]line Super-92-К-5 [20:53:52]line 10.330 * 67.80 [20:53:52]line = 700.37 [20:53:52]line НДС 12% НСП 1% [20:53:52]line > о реализуемом товаре [20:53:52]line ОКРУГЛЕНИЕ: -0.37 [20:53:52]line ИТОГО: 700.00 [20:53:52]line Внесено: 700.00 [20:53:52]line СДАЧА: 0.00 [20:53:52]line НСП 1% : 6.20 [20:53:52]line НДС 12% : 74.38 [20:53:52]line Наличными: 700.00 [20:53:52]line Безнал.: 0.00 [20:53:52]line Место: АЗС № 91 "Партнер Нефть" [20:53:52]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:53:52]line СНО: Общий режим [20:53:52]line Чек 144 17.05.2024 20:53 [20:53:52]line Смена: 358 ФФД: 1.0 [20:53:52]line ЗНМ: 0300000119 [20:53:52]line РНМ: 0000000000091845 [20:53:52]line Версия ККМ: 001 [20:53:52]line ФМ: 0000000000871829 [20:53:52]line ФД: 67735 [20:53:52]line ФПД: 265103314273542 [20:53:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T205353&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67735&fm=265103314273542&tin=02508201610067®Number=0000000000091845&sum=70000 [20:53:53]written 0, free lines is 4095 [20:53:53]OFD Sender: Processing packet 67735 [packets to send 35, broken 34] [20:53:53]ProducePacketName [20:53:53]name=ofd_packets/00067735 [20:53:53]OFD Sender: To server: pG, [20:53:53]CommunicateWithHost lk.salyk.kg:30040 [20:53:53]ConnectInit lk.salyk.kg [20:53:53]Connected sock=9 [20:53: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 26 49 08 01 E2 79 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 90 00 00 00 F4 03 04 00 E1 C3 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F1 1C 2C E0 45 06 FA 3B C5 DB A4 32 08 4C [20:53: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 39 19 47 00 30 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 97 08 01 00 F4 03 04 00 B8 6B 47 66 B6 04 01 00 00 4C 56 C7 46 D3 87 1E 35 [20:53:53]CommunicateWithHost err = 0 [20:53:53]CheckOFDResponse [20:53:53]1017 (14) - 77093643461234 [20:53:53]1041 (16) - 0000000000871829 [20:53:53]1040 (4) - 67735 [20:53:53]1012 (4) - 17.05.2024 14:37 [20:53:53]1206 (1) - 0 [20:53:53]OFD Sender: Remove packet 67735 [20:53:53]ProducePacketName [20:53:53]name=ofd_packets/00067735 [20:53:53]NVStorageDeleteData [20:53:53]Write to MH i2c: 01 00 00 3D 11 4E [20:53:53]Write i2c OK [20:53:53]MH_I2C_Read... [20:53:53]Read from MH i2c: 01 [20:53:53]MH_I2C_Read... [20:53:53]Read from MH i2c: 01 07 00 [20:53:53]MH_I2C_Read... [20:53:53]Read from MH i2c: 01 07 00 3D 11 00 00 00 00 00 CC 0C 2D [20:53:53]RasterBufferAndPrint [20:53:53]line [20:53:53]line [20:53:53]line [20:53:53]line [20:53:53]line [20:53:53]written 0, free lines is 3282 [20:53:53]MH_Cut [20:53:53]Write to MH i2c: D1 01 00 44 11 01 27 [20:53:53]Write i2c OK [20:53:53]MH_I2C_Read... [20:53:53]Read from MH i2c: D1 [20:53:53]MH_I2C_Read... [20:53:53]Read from MH i2c: D1 01 00 [20:53:53]MH_I2C_Read... [20:53:53]Read from MH i2c: D1 01 00 44 11 00 26 [20:53:53]Write to MH i2c: 01 00 00 45 11 56 [20:53:53]Write i2c OK [20:53:53]MH_I2C_Read... [20:53:54]OFD Sender: No OFD packet to send [20:53:54]*** Cut start [20:53:54]*** Purtial cut [20:53:54]*** Stage 1: CUTSNS_PIN = 1 [20:53:54]Read from MH i2c: 01 [20:53:54]MH_I2C_Read... [20:53:54]*** Stop cut motor [20:53:54]*** Cut end [20:53:54]Read from MH i2c: 01 07 00 [20:53:54]MH_I2C_Read... [20:53:54]Read from MH i2c: 01 07 00 45 11 00 00 00 00 00 FF 0F 6B [20:53:54]process_action close_receipt done [20:53:54]requested_data is exist [20:53:54]produce_requested_data [20:53:54]requested_item fm.sn is exist - process it [20:53:54]wFMCommunicate request_size=4 [20:53:54]MH_SAM_APDU [20:53:54]CAPDU: 80 11 00 00 [20:53:54]Write to MH i2c: E2 08 00 46 11 80 11 00 00 00 00 00 00 D1 [20:53:54]Write i2c OK [20:53:54]MH_I2C_Read... [20:53:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:54]Read from MH i2c: E2 [20:53:54]MH_I2C_Read... [20:53:54]Read from MH i2c: E2 17 00 [20:53:54]MH_I2C_Read... [20:53:54]Read from MH i2c: E2 17 00 46 11 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:53: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:53:54]wFMCommunicate OK [20:53:54]requested_item fd.num is exist - process it [20:53:54]SAM_PROTO_GetFieldsCounters [20:53:54]wFMCommunicate request_size=4 [20:53:54]MH_SAM_APDU [20:53:54]CAPDU: 80 13 00 00 [20:53:54]Write to MH i2c: E2 08 00 47 11 80 13 00 00 00 00 00 00 D4 [20:53:54]Write i2c OK [20:53:54]MH_I2C_Read... [20:53:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:54]Read from MH i2c: E2 [20:53:54]MH_I2C_Read... [20:53:54]Read from MH i2c: E2 62 00 [20:53:55]MH_I2C_Read... [20:53:55]Read from MH i2c: E2 62 00 47 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 97 08 01 00 0E 04 04 00 66 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 B1 [20:53: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 97 08 01 00 0E 04 04 00 66 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 [20:53:55]wFMCommunicate OK [20:53:55]SAM_PROTO_GetFieldsCounters done [20:53:55]requested_item shift.num is exist - process it [20:53:55]requested_item shift.opened is exist - process it [20:53:55]req_shift_opened [20:53:55]FM_GetShiftState [20:53:55]SAM_PROTO_GetShiftState [20:53:55]wFMCommunicate request_size=4 [20:53:55]MH_SAM_APDU [20:53:55]CAPDU: 80 13 01 00 [20:53:55]Write to MH i2c: E2 08 00 48 11 80 13 01 00 00 00 00 00 D6 [20:53:55]Write i2c OK [20:53:55]MH_I2C_Read... [20:53:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:55]Read from MH i2c: E2 [20:53:55]MH_I2C_Read... [20:53:55]Read from MH i2c: E2 0E 00 [20:53:55]MH_I2C_Read... [20:53:55]Read from MH i2c: E2 0E 00 48 11 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 5C [20:53:55]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:53:55]wFMCommunicate OK [20:53:55]SAM_PROTO_GetShiftState done [20:53:55]FM_GetShiftState done [20:53:55]req_shift_opened done [20:53:55]requested_item shift.open_date is exist - process it [20:53:55]req_shift_open_date [20:53:55]req_shift_open_date done [20:53:55]produce_requested_data done [20:53:55]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67735,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:53:55]process_action_free close_receipt [20:53:55]json_value_free [20:53:55]json_value_free done [20:53:55]process_json_proto returns [20:53:55]Send response to host [20:53:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67735,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:53:55]free response buf [20:53:55]execute_script done [20:53:55]execute_script returns [20:53:55]free content buf [20:53:55]Sock 7.Close socket [20:53:55]Sock 7.Thread stoped [20:53:59]OFD Sender: No OFD packet to send [20:54:04]OFD Sender: No OFD packet to send [20:54:04]accept exits with 10 [20:54:04]New connection [20:54:04]New thread 3066608996 created [20:54:04]Thread 3066752356 joined [20:54:04]Waiting for new connection... [20:54:04] Sock 10.Parse request [20:54:04]Sock 10.Check first char [20:54:04]Sock 10.First char is OK [20:54:04]request: POST /json_proto HTTP/1.0 [20:54:04]Method: POST [20:54:04]URL: /json_proto [20:54:04]Method is POST - this is cgi request [20:54:04]url: /json_proto [20:54:04]query_string will be loaded in cgi processing [20:54:04]execute_cgi json_proto POST (null) [20:54:04]execute_cgi path=json_proto method=POST [20:54:04]POST find Content-Length [20:54:04]Host: 172.17.41.195:8080 [20:54:04]Content-Length: 682 [20:54:04]Content-Type: application/json [20:54:04] [20:54:04]POST finish read [20:54:04]Found Content-Length = 682 [20:54:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507890", "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:54:04]execute_script... [20:54: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)507890", "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:54:04]POST & json_proto [20:54:04]process_json_proto [20:54:04]json parsed OK: [20:54:04]protocol is kg_v1.0 [20:54:04]action value=close_receipt [20:54:04]process_action close_receipt [20:54:04]cmd_close_receipt [20:54:04]MH_GetDate [20:54:04]Write to MH i2c: F0 00 00 49 11 49 [20:54:04]Write i2c OK [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: F0 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: F0 09 00 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: F0 09 00 49 11 00 EE C3 47 66 FC 21 6F 64 A0 [20:54:04]GetLastDocTimeStamp 1715979233 [20:54:04]current date 1715979246 [20:54:04]FM_GetShiftState [20:54:04]SAM_PROTO_GetShiftState [20:54:04]wFMCommunicate request_size=4 [20:54:04]MH_SAM_APDU [20:54:04]CAPDU: 80 13 01 00 [20:54:04]Write to MH i2c: E2 08 00 4A 11 80 13 01 00 00 00 00 00 D8 [20:54:04]Write i2c OK [20:54:04]MH_I2C_Read... [20:54:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:04]Read from MH i2c: E2 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: E2 0E 00 [20:54:04]MH_I2C_Read... [20:54:04]Read from MH i2c: E2 0E 00 4A 11 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 5E [20:54:04]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:54:04]wFMCommunicate OK [20:54:04]SAM_PROTO_GetShiftState done [20:54:04]FM_GetShiftState done [20:54:04]opened in 1715905068 [20:54:04]opened+sec_in_day 1715991468 [20:54:04]quantity*price = 100066 [20:54:04]sum+1 = 100067 [20:54:04]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 СНО: Общий режим Чек 145 17.05.2024 20:54 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67736 ФПД: 222262200313548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T205406&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67736&fm=222262200313548&tin=02508201610067®Number=0000000000091845&sum=100000 [20:54:05]StoreToDocumentArchive [20:54:05]shift 358 fd 67736 [20:54:05]save to /storage/0358/doc_00067736 [20:54:05]save last doc name /storage/0358/doc_00067736 to /storage/kkm_last_doc_name [20:54:05]save OK [20:54:05]Clear old archive folders... [20:54:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:54:05]tlvbuf is 01B4D120 [20:54:05]SAM_PROTO_ClearQueue [20:54:05]wFMCommunicate request_size=4 [20:54:05]MH_SAM_APDU [20:54:05]CAPDU: 80 09 00 00 [20:54:05]Write to MH i2c: E2 08 00 57 11 80 09 00 00 00 00 00 00 DA [20:54:05]Write i2c OK [20:54:05]MH_I2C_Read... [20:54:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:05]Read from MH i2c: E2 [20:54:05]MH_I2C_Read... [20:54:05]Read from MH i2c: E2 03 00 [20:54:05]MH_I2C_Read... [20:54:05]Read from MH i2c: E2 03 00 57 11 00 90 00 DC [20:54:05]RAPDU: 90 00 [20:54:05]wFMCommunicate OK [20:54:05]SAM_PROTO_ClearQueue done [20:54:05]KKMCreateOFDPacket [20:54:05]OFDProtocolAddRootSTLVToBuf [20:54:05]FM_MakeSignedData [20:54:05]FM_MakeSignedData [20:54:05]SAM_PROTO_SignData [20:54:05]wFMCommunicate request_size=4 [20:54:05]MH_SAM_APDU [20:54:05]CAPDU: 80 0D 01 02 [20:54:05]Write to MH i2c: E2 08 00 58 11 80 0D 01 02 00 00 00 00 E2 [20:54:05]Write i2c OK [20:54:05]MH_I2C_Read... [20:54:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:05]Read from MH i2c: E2 [20:54:05]MH_I2C_Read... [20:54:05]Read from MH i2c: E2 03 00 [20:54:05]MH_I2C_Read... [20:54:05]Read from MH i2c: E2 03 00 58 11 00 90 00 DD [20:54:05]RAPDU: 90 00 [20:54:05]wFMCommunicate OK [20:54:05]wFMCommunicate request_size=255 [20:54:05]MH_SAM_APDU [20:54: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 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 91 00 00 00 F4 03 04 00 EE C3 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CA [20:54:05]Write to MH i2c: E2 02 01 59 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 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 91 00 00 00 F4 03 04 00 EE C3 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CA 00 00 7C [20:54:05]Write i2c OK [20:54:05]MH_I2C_Read... [20:54:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:06]Read from MH i2c: E2 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 03 00 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 03 00 59 11 00 90 00 DE [20:54:06]RAPDU: 90 00 [20:54:06]wFMCommunicate OK [20:54:06]wFMCommunicate request_size=10 [20:54:06]MH_SAM_APDU [20:54:06]CAPDU: 80 0D 02 02 05 25 73 7F 26 CC [20:54:06]Write to MH i2c: E2 0D 00 5A 11 80 0D 02 02 05 00 25 73 7F 26 CC 00 00 F8 [20:54:06]Write i2c OK [20:54:06]MH_I2C_Read... [20:54:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:06]Read from MH i2c: E2 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 03 00 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 03 00 5A 11 00 90 00 DF [20:54:06]RAPDU: 90 00 [20:54:06]wFMCommunicate OK [20:54:06]wFMCommunicate request_size=4 [20:54:06]MH_SAM_APDU [20:54:06]CAPDU: 80 0D 03 02 [20:54:06]Write to MH i2c: E2 08 00 5B 11 80 0D 03 02 00 00 00 00 E7 [20:54:06]Write i2c OK [20:54:06]MH_I2C_Read... [20:54:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:06]Read from MH i2c: E2 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 0B 00 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 0B 00 5B 11 00 86 05 A5 C8 2D 2A B3 D0 90 00 BA [20:54:06]RAPDU: 86 05 A5 C8 2D 2A B3 D0 90 00 [20:54:06]wFMCommunicate OK [20:54:06]SAM_PROTO_SignData done [20:54:06]FM_MakeSignedData done [20:54:06]CreateOFDProtocolMessage [20:54:06]wFMCommunicate request_size=4 [20:54:06]MH_SAM_APDU [20:54:06]CAPDU: 80 11 00 00 [20:54:06]Write to MH i2c: E2 08 00 5C 11 80 11 00 00 00 00 00 00 E7 [20:54:06]Write i2c OK [20:54:06]MH_I2C_Read... [20:54:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:06]Read from MH i2c: E2 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 17 00 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: E2 17 00 5C 11 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:54:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:54:06]wFMCommunicate OK [20:54:06]CreateOFDProtocolMessage done [20:54:06]OFDSenderStorePacket 67736 [20:54:06]StoreOFDPacket docnum=67736 [20:54: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 55 BF 07 01 98 4B 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 91 00 00 00 F4 03 04 00 EE C3 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CA 25 73 7F 26 CC 86 05 A5 C8 2D 2A B3 D0 [20:54:06]CheckFolder [20:54:06]dirname=/storage/ofd_packets [20:54:06]CheckFolder done [20:54:06]ProducePacketName [20:54:06]name=ofd_packets/00067736 [20:54:06]NVStorageSaveData ofd_packets/00067736 [20:54:06]File name is /storage/ofd_packets/00067736 [20:54:06]Write 301 bytes [20:54:06]NVStorageSaveData done [20:54:06]OFDSenderStorePacket done [20:54:06]KKMCreateOFDPacket done [20:54:06]NVStorageSaveData kkm_last_timestamp [20:54:06]File name is /storage/kkm_last_timestamp [20:54:06]Write 4 bytes [20:54:06]NVStorageSaveData done [20:54:06]ExternCall_PrintAddStr [20:54:06]wPrintStart [20:54:06]Write to MH i2c: 01 00 00 5D 11 6E [20:54:06]Write i2c OK [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: 01 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: 01 07 00 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: 01 07 00 5D 11 00 00 00 00 00 FF 0F 83 [20:54:06]RasterBufferAndPrint [20:54:06]line Счет N : (1)507890 [20:54:06]line ИНН: 02508201610067 [20:54:06]line Контрольно-Кассовый Чек [20:54:06]line ПРОДАЖА [20:54:06]line ТРК (МРК, ГНК) : 43 [20:54:06]line Товар: 2710124130 [20:54:06]line Аи-92-К-5 [20:54:06]line 14.980 * 66.80 [20:54:06]line = 1000.66 [20:54:06]line НДС 12% НСП 1% [20:54:06]line > о реализуемом товаре [20:54:06]line ОКРУГЛЕНИЕ: -0.66 [20:54:06]line ИТОГО: 1000.00 [20:54:06]line Внесено: 1000.00 [20:54:06]line СДАЧА: 0.00 [20:54:06]line НСП 1% : 8.85 [20:54:06]line НДС 12% : 106.26 [20:54:06]line Наличными: 1000.00 [20:54:06]line Безнал.: 0.00 [20:54:06]line Место: АЗС № 91 "Партнер Нефть" [20:54:06]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:54:06]line СНО: Общий режим [20:54:06]line Чек 145 17.05.2024 20:54 [20:54:06]line Смена: 358 ФФД: 1.0 [20:54:06]line ЗНМ: 0300000119 [20:54:06]line РНМ: 0000000000091845 [20:54:06]line Версия ККМ: 001 [20:54:06]line ФМ: 0000000000871829 [20:54:06]line ФД: 67736 [20:54:06]line ФПД: 222262200313548 [20:54:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T205406&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67736&fm=222262200313548&tin=02508201610067®Number=0000000000091845&sum=100000 [20:54:06]written 0, free lines is 4095 [20:54:06]OFD Sender: Processing packet 67736 [packets to send 35, broken 34] [20:54:06]ProducePacketName [20:54:06]name=ofd_packets/00067736 [20:54:06]OFD Sender: To server: pG, [20:54:06]CommunicateWithHost lk.salyk.kg:30040 [20:54:06]ConnectInit lk.salyk.kg [20:54:06]Connected sock=9 [20:54: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 0F 01 00 00 55 BF 07 01 98 4B 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 91 00 00 00 F4 03 04 00 EE C3 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CA 25 73 7F 26 CC 86 05 A5 C8 2D 2A B3 D0 [20:54:06]Write to MH i2c: 01 00 00 87 11 98 [20:54:06]Write i2c OK [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: 01 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: 01 07 00 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: 01 07 00 87 11 00 00 00 00 00 E7 0C 92 [20:54:06]RasterBufferAndPrint [20:54:06]line [20:54:06]line [20:54:06]line [20:54:06]line [20:54:06]line [20:54:06]written 0, free lines is 3311 [20:54:06]MH_Cut [20:54:06]Write to MH i2c: D1 01 00 8E 11 01 71 [20:54:06]Write i2c OK [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: D1 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: D1 01 00 [20:54:06]MH_I2C_Read... [20:54:06]Read from MH i2c: D1 01 00 8E 11 00 70 [20:54:06]Write to MH i2c: 01 00 00 8F 11 A0 [20:54:06]Write i2c OK [20:54:06]MH_I2C_Read... [20:54: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 7D F1 47 00 07 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 98 08 01 00 F4 03 04 00 C5 6B 47 66 B6 04 01 00 00 04 31 E0 04 51 A0 23 0A [20:54:06]CommunicateWithHost err = 0 [20:54:06]CheckOFDResponse [20:54:06]1017 (14) - 77093643461234 [20:54:06]1041 (16) - 0000000000871829 [20:54:06]1040 (4) - 67736 [20:54:06]1012 (4) - 17.05.2024 14:37 [20:54:06]1206 (1) - 0 [20:54:06]OFD Sender: Remove packet 67736 [20:54:06]ProducePacketName [20:54:06]name=ofd_packets/00067736 [20:54:06]NVStorageDeleteData [20:54:07]OFD Sender: No OFD packet to send [20:54:07]*** Cut start [20:54:07]*** Purtial cut [20:54:07]*** CUTSNS_PIN = 0 [20:54:07]*** Stage 1: CUTSNS_PIN = 1 [20:54:09]Read from MH i2c: 01 [20:54:09]MH_I2C_Read... [20:54:09]*** Stop cut motor [20:54:09]*** Cut end [20:54:09]Read from MH i2c: 01 07 00 [20:54:09]MH_I2C_Read... [20:54:09]Read from MH i2c: 01 07 00 8F 11 00 00 00 00 00 FF 0F B5 [20:54:09]process_action close_receipt done [20:54:09]requested_data is exist [20:54:09]produce_requested_data [20:54:09]requested_item fm.sn is exist - process it [20:54:09]wFMCommunicate request_size=4 [20:54:09]MH_SAM_APDU [20:54:09]CAPDU: 80 11 00 00 [20:54:09]Write to MH i2c: E2 08 00 90 11 80 11 00 00 00 00 00 00 1B [20:54:09]Write i2c OK [20:54:09]MH_I2C_Read... [20:54:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:09]Read from MH i2c: E2 [20:54:09]MH_I2C_Read... [20:54:09]Read from MH i2c: E2 17 00 [20:54:09]MH_I2C_Read... [20:54:09]Read from MH i2c: E2 17 00 90 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 71 [20:54:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:54:09]wFMCommunicate OK [20:54:09]requested_item fd.num is exist - process it [20:54:09]SAM_PROTO_GetFieldsCounters [20:54:09]wFMCommunicate request_size=4 [20:54:09]MH_SAM_APDU [20:54:09]CAPDU: 80 13 00 00 [20:54:09]Write to MH i2c: E2 08 00 91 11 80 13 00 00 00 00 00 00 1E [20:54:09]Write i2c OK [20:54:09]MH_I2C_Read... [20:54:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:09]Read from MH i2c: E2 [20:54:09]MH_I2C_Read... [20:54:09]Read from MH i2c: E2 62 00 [20:54:09]MH_I2C_Read... [20:54:09]Read from MH i2c: E2 62 00 91 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 98 08 01 00 0E 04 04 00 66 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 FF [20:54: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 98 08 01 00 0E 04 04 00 66 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 [20:54:09]wFMCommunicate OK [20:54:09]SAM_PROTO_GetFieldsCounters done [20:54:09]requested_item shift.num is exist - process it [20:54:09]requested_item shift.opened is exist - process it [20:54:09]req_shift_opened [20:54:09]FM_GetShiftState [20:54:09]SAM_PROTO_GetShiftState [20:54:09]wFMCommunicate request_size=4 [20:54:09]MH_SAM_APDU [20:54:09]CAPDU: 80 13 01 00 [20:54:09]Write to MH i2c: E2 08 00 92 11 80 13 01 00 00 00 00 00 20 [20:54:09]Write i2c OK [20:54:09]MH_I2C_Read... [20:54:09]Read from MH i2c: E2 [20:54:09]MH_I2C_Read... [20:54:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:09]Read from MH i2c: E2 0E 00 [20:54:09]MH_I2C_Read... [20:54:09]Read from MH i2c: E2 0E 00 92 11 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 A6 [20:54:09]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:54:09]wFMCommunicate OK [20:54:09]SAM_PROTO_GetShiftState done [20:54:09]FM_GetShiftState done [20:54:09]req_shift_opened done [20:54:09]requested_item shift.open_date is exist - process it [20:54:09]req_shift_open_date [20:54:09]req_shift_open_date done [20:54:09]produce_requested_data done [20:54:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67736,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:54:09]process_action_free close_receipt [20:54:09]json_value_free [20:54:09]json_value_free done [20:54:09]process_json_proto returns [20:54:09]Send response to host [20:54:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67736,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:54:09]free response buf [20:54:09]execute_script done [20:54:09]execute_script returns [20:54:09]free content buf [20:54:09]Sock 10.Close socket [20:54:09]Sock 10.Thread stoped [20:54:12]OFD Sender: No OFD packet to send [20:54:16]accept exits with 7 [20:54:16]New connection [20:54:16]New thread 3066752356 created [20:54:16]Thread 3066608996 joined [20:54:16]Waiting for new connection... [20:54:16] Sock 7.Parse request [20:54:16]Sock 7.Check first char [20:54:16]Sock 7.First char is OK [20:54:16]request: POST /json_proto HTTP/1.0 [20:54:16]Method: POST [20:54:16]URL: /json_proto [20:54:16]Method is POST - this is cgi request [20:54:16]url: /json_proto [20:54:16]query_string will be loaded in cgi processing [20:54:16]execute_cgi json_proto POST (null) [20:54:16]execute_cgi path=json_proto method=POST [20:54:16]POST find Content-Length [20:54:16]Host: 172.17.41.195:8080 [20:54:16]Content-Length: 677 [20:54:16]Content-Type: application/json [20:54:16] [20:54:16]POST finish read [20:54:16]Found Content-Length = 677 [20:54:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507892", "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:54:16]execute_script... [20:54: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)507892", "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:54:16]POST & json_proto [20:54:16]process_json_proto [20:54:16]json parsed OK: [20:54:16]protocol is kg_v1.0 [20:54:16]action value=close_receipt [20:54:16]process_action close_receipt [20:54:16]cmd_close_receipt [20:54:16]MH_GetDate [20:54:16]Write to MH i2c: F0 00 00 93 11 93 [20:54:16]Write i2c OK [20:54:16]MH_I2C_Read... [20:54:16]Read from MH i2c: F0 [20:54:16]MH_I2C_Read... [20:54:16]Read from MH i2c: F0 09 00 [20:54:16]MH_I2C_Read... [20:54:16]Read from MH i2c: F0 09 00 93 11 00 F9 C3 47 66 FC 21 6F 64 F5 [20:54:16]GetLastDocTimeStamp 1715979246 [20:54:16]current date 1715979257 [20:54:16]FM_GetShiftState [20:54:16]SAM_PROTO_GetShiftState [20:54:16]wFMCommunicate request_size=4 [20:54:16]MH_SAM_APDU [20:54:16]CAPDU: 80 13 01 00 [20:54:16]Write to MH i2c: E2 08 00 94 11 80 13 01 00 00 00 00 00 22 [20:54:16]Write i2c OK [20:54:16]MH_I2C_Read... [20:54:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:16]Read from MH i2c: E2 [20:54:16]MH_I2C_Read... [20:54:16]Read from MH i2c: E2 0E 00 [20:54:16]MH_I2C_Read... [20:54:16]Read from MH i2c: E2 0E 00 94 11 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 A8 [20:54:16]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:54:16]wFMCommunicate OK [20:54:16]SAM_PROTO_GetShiftState done [20:54:16]FM_GetShiftState done [20:54:16]opened in 1715905068 [20:54:16]opened+sec_in_day 1715991468 [20:54:16]quantity*price = 40013 [20:54:16]sum+1 = 40014 [20:54: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 СНО: Общий режим Чек 146 17.05.2024 20:54 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67737 ФПД: 236796525041158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T205417&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67737&fm=236796525041158&tin=02508201610067®Number=0000000000091845&sum=40000 [20:54:17]StoreToDocumentArchive [20:54:17]shift 358 fd 67737 [20:54:17]save to /storage/0358/doc_00067737 [20:54:17]save last doc name /storage/0358/doc_00067737 to /storage/kkm_last_doc_name [20:54:17]save OK [20:54:17]Clear old archive folders... [20:54:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:54:17]tlvbuf is 01B87350 [20:54:17]SAM_PROTO_ClearQueue [20:54:17]wFMCommunicate request_size=4 [20:54:17]MH_SAM_APDU [20:54:17]CAPDU: 80 09 00 00 [20:54:17]Write to MH i2c: E2 08 00 A1 11 80 09 00 00 00 00 00 00 24 [20:54:17]Write i2c OK [20:54:17]MH_I2C_Read... [20:54:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:17]Read from MH i2c: E2 [20:54:17]MH_I2C_Read... [20:54:17]Read from MH i2c: E2 03 00 [20:54:17]MH_I2C_Read... [20:54:17]Read from MH i2c: E2 03 00 A1 11 00 90 00 26 [20:54:17]RAPDU: 90 00 [20:54:17]wFMCommunicate OK [20:54:17]SAM_PROTO_ClearQueue done [20:54:17]KKMCreateOFDPacket [20:54:17]OFDProtocolAddRootSTLVToBuf [20:54:17]FM_MakeSignedData [20:54:17]FM_MakeSignedData [20:54:17]SAM_PROTO_SignData [20:54:17]wFMCommunicate request_size=4 [20:54:17]MH_SAM_APDU [20:54:17]CAPDU: 80 0D 01 02 [20:54:17]Write to MH i2c: E2 08 00 A2 11 80 0D 01 02 00 00 00 00 2C [20:54:17]Write i2c OK [20:54:17]MH_I2C_Read... [20:54:17]OFD Sender: No OFD packet to send [20:54:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:17]Read from MH i2c: E2 [20:54:17]MH_I2C_Read... [20:54:17]Read from MH i2c: E2 03 00 [20:54:17]MH_I2C_Read... [20:54:17]Read from MH i2c: E2 03 00 A2 11 00 90 00 27 [20:54:17]RAPDU: 90 00 [20:54:17]wFMCommunicate OK [20:54:17]wFMCommunicate request_size=255 [20:54:17]MH_SAM_APDU [20:54: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 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 92 00 00 00 F4 03 04 00 F9 C3 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 D7 [20:54:17]Write to MH i2c: E2 02 01 A3 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 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 92 00 00 00 F4 03 04 00 F9 C3 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 D7 00 00 72 [20:54:17]Write i2c OK [20:54:17]MH_I2C_Read... [20:54:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:17]Read from MH i2c: E2 [20:54:17]MH_I2C_Read... [20:54:17]Read from MH i2c: E2 03 00 [20:54:17]MH_I2C_Read... [20:54:17]Read from MH i2c: E2 03 00 A3 11 00 90 00 28 [20:54:17]RAPDU: 90 00 [20:54:17]wFMCommunicate OK [20:54:17]wFMCommunicate request_size=10 [20:54:17]MH_SAM_APDU [20:54:17]CAPDU: 80 0D 02 02 05 5D 7C C2 56 06 [20:54:17]Write to MH i2c: E2 0D 00 A4 11 80 0D 02 02 05 00 5D 7C C2 56 06 00 00 30 [20:54:17]Write i2c OK [20:54:17]MH_I2C_Read... [20:54:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:17]Read from MH i2c: E2 [20:54:17]MH_I2C_Read... [20:54:17]Read from MH i2c: E2 03 00 [20:54:17]MH_I2C_Read... [20:54:17]Read from MH i2c: E2 03 00 A4 11 00 90 00 29 [20:54:17]RAPDU: 90 00 [20:54:17]wFMCommunicate OK [20:54:17]wFMCommunicate request_size=4 [20:54:17]MH_SAM_APDU [20:54:17]CAPDU: 80 0D 03 02 [20:54:17]Write to MH i2c: E2 08 00 A5 11 80 0D 03 02 00 00 00 00 31 [20:54:17]Write i2c OK [20:54:17]MH_I2C_Read... [20:54:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:17]Read from MH i2c: E2 [20:54:17]MH_I2C_Read... [20:54:17]Read from MH i2c: E2 0B 00 [20:54:17]MH_I2C_Read... [20:54:17]Read from MH i2c: E2 0B 00 A5 11 00 98 D2 0C 23 CA 20 A9 D4 90 00 32 [20:54:17]RAPDU: 98 D2 0C 23 CA 20 A9 D4 90 00 [20:54:17]wFMCommunicate OK [20:54:17]SAM_PROTO_SignData done [20:54:17]FM_MakeSignedData done [20:54:17]CreateOFDProtocolMessage [20:54:17]wFMCommunicate request_size=4 [20:54:17]MH_SAM_APDU [20:54:17]CAPDU: 80 11 00 00 [20:54:17]Write to MH i2c: E2 08 00 A6 11 80 11 00 00 00 00 00 00 31 [20:54:17]Write i2c OK [20:54:17]MH_I2C_Read... [20:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:17]Read from MH i2c: E2 [20:54:17]MH_I2C_Read... [20:54:17]Read from MH i2c: E2 17 00 [20:54:17]MH_I2C_Read... [20:54:17]Read from MH i2c: E2 17 00 A6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 87 [20:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:54:17]wFMCommunicate OK [20:54:17]CreateOFDProtocolMessage done [20:54:17]OFDSenderStorePacket 67737 [20:54:17]StoreOFDPacket docnum=67737 [20:54: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 90 98 07 01 DE 82 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 92 00 00 00 F4 03 04 00 F9 C3 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 D7 5D 7C C2 56 06 98 D2 0C 23 CA 20 A9 D4 [20:54:17]CheckFolder [20:54:17]dirname=/storage/ofd_packets [20:54:17]CheckFolder done [20:54:17]ProducePacketName [20:54:17]name=ofd_packets/00067737 [20:54:17]NVStorageSaveData ofd_packets/00067737 [20:54:17]File name is /storage/ofd_packets/00067737 [20:54:17]Write 301 bytes [20:54:17]NVStorageSaveData done [20:54:17]OFDSenderStorePacket done [20:54:17]KKMCreateOFDPacket done [20:54:17]NVStorageSaveData kkm_last_timestamp [20:54:17]File name is /storage/kkm_last_timestamp [20:54:17]Write 4 bytes [20:54:17]NVStorageSaveData done [20:54:17]ExternCall_PrintAddStr [20:54:17]wPrintStart [20:54:17]Write to MH i2c: 01 00 00 A7 11 B8 [20:54:17]Write i2c OK [20:54:17]MH_I2C_Read... [20:54:17]Read from MH i2c: 01 [20:54:17]MH_I2C_Read... [20:54:17]Read from MH i2c: 01 07 00 [20:54:17]MH_I2C_Read... [20:54:17]Read from MH i2c: 01 07 00 A7 11 00 00 00 00 00 FF 0F CD [20:54:17]RasterBufferAndPrint [20:54:17]line Счет N : (1)507892 [20:54:17]line ИНН: 02508201610067 [20:54:17]line Контрольно-Кассовый Чек [20:54:17]line ПРОДАЖА [20:54:17]line ТРК (МРК, ГНК) : 13 [20:54:17]line Товар: 2710124130 [20:54:17]line Аи-92-К-5 [20:54:17]line 5.990 * 66.80 [20:54:17]line = 400.13 [20:54:17]line НДС 12% НСП 1% [20:54:17]line > о реализуемом товаре [20:54:17]line ОКРУГЛЕНИЕ: -0.13 [20:54:17]line ИТОГО: 400.00 [20:54:17]line Внесено: 400.00 [20:54:17]line СДАЧА: 0.00 [20:54:17]line НСП 1% : 3.54 [20:54:17]line НДС 12% : 42.49 [20:54:17]line Наличными: 400.00 [20:54:17]line Безнал.: 0.00 [20:54:17]line Место: АЗС № 91 "Партнер Нефть" [20:54:17]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:54:17]line СНО: Общий режим [20:54:17]line Чек 146 17.05.2024 20:54 [20:54:17]line Смена: 358 ФФД: 1.0 [20:54:17]line ЗНМ: 0300000119 [20:54:17]line РНМ: 0000000000091845 [20:54:17]line Версия ККМ: 001 [20:54:17]line ФМ: 0000000000871829 [20:54:17]line ФД: 67737 [20:54:17]line ФПД: 236796525041158 [20:54:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T205417&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67737&fm=236796525041158&tin=02508201610067®Number=0000000000091845&sum=40000 [20:54:17]written 0, free lines is 4095 [20:54:17]OFD Sender: Processing packet 67737 [packets to send 35, broken 34] [20:54:17]ProducePacketName [20:54:17]name=ofd_packets/00067737 [20:54:17]OFD Sender: To server: pG, [20:54:17]CommunicateWithHost lk.salyk.kg:30040 [20:54:17]ConnectInit lk.salyk.kg [20:54:17]Connected sock=10 [20:54: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 98 07 01 DE 82 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 92 00 00 00 F4 03 04 00 F9 C3 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 D7 5D 7C C2 56 06 98 D2 0C 23 CA 20 A9 D4 [20:54: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 D9 87 47 00 5A 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 99 08 01 00 F4 03 04 00 D0 6B 47 66 B6 04 01 00 00 73 CE 2A A7 18 5C 7A 17 [20:54:18]CommunicateWithHost err = 0 [20:54:18]CheckOFDResponse [20:54:18]1017 (14) - 77093643461234 [20:54:18]1041 (16) - 0000000000871829 [20:54:18]1040 (4) - 67737 [20:54:18]1012 (4) - 17.05.2024 14:38 [20:54:18]1206 (1) - 0 [20:54:18]OFD Sender: Remove packet 67737 [20:54:18]ProducePacketName [20:54:18]name=ofd_packets/00067737 [20:54:18]NVStorageDeleteData [20:54:18]Write to MH i2c: 01 00 00 D1 11 E2 [20:54:18]Write i2c OK [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: 01 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: 01 07 00 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: 01 07 00 D1 11 00 00 00 00 00 EE 0C E3 [20:54:18]RasterBufferAndPrint [20:54:18]line [20:54:18]line [20:54:18]line [20:54:18]line [20:54:18]line [20:54:18]written 0, free lines is 3319 [20:54:18]MH_Cut [20:54:18]Write to MH i2c: D1 01 00 D8 11 01 BB [20:54:18]Write i2c OK [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: D1 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: D1 01 00 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: D1 01 00 D8 11 00 BA [20:54:18]Write to MH i2c: 01 00 00 D9 11 EA [20:54:18]Write i2c OK [20:54:18]MH_I2C_Read... [20:54:18]OFD Sender: No OFD packet to send [20:54:19]*** Cut start [20:54:19]*** Purtial cut [20:54:19]*** Stage 1: CUTSNS_PIN = 1 [20:54:19]Read from MH i2c: 01 [20:54:19]MH_I2C_Read... [20:54:19]*** Stop cut motor [20:54:19]*** Cut end [20:54:19]Read from MH i2c: 01 07 00 [20:54:19]MH_I2C_Read... [20:54:19]Read from MH i2c: 01 07 00 D9 11 00 00 00 00 00 FF 0F FF [20:54:19]process_action close_receipt done [20:54:19]requested_data is exist [20:54:19]produce_requested_data [20:54:19]requested_item fm.sn is exist - process it [20:54:19]wFMCommunicate request_size=4 [20:54:19]MH_SAM_APDU [20:54:19]CAPDU: 80 11 00 00 [20:54:19]Write to MH i2c: E2 08 00 DA 11 80 11 00 00 00 00 00 00 65 [20:54:19]Write i2c OK [20:54:19]MH_I2C_Read... [20:54:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:19]Read from MH i2c: E2 [20:54:19]MH_I2C_Read... [20:54:19]Read from MH i2c: E2 17 00 [20:54:19]MH_I2C_Read... [20:54:19]Read from MH i2c: E2 17 00 DA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BB [20:54:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:54:19]wFMCommunicate OK [20:54:19]requested_item fd.num is exist - process it [20:54:19]SAM_PROTO_GetFieldsCounters [20:54:19]wFMCommunicate request_size=4 [20:54:19]MH_SAM_APDU [20:54:19]CAPDU: 80 13 00 00 [20:54:19]Write to MH i2c: E2 08 00 DB 11 80 13 00 00 00 00 00 00 68 [20:54:19]Write i2c OK [20:54:19]MH_I2C_Read... [20:54:19]Read from MH i2c: E2 [20:54:19]MH_I2C_Read... [20:54:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:19]Read from MH i2c: E2 62 00 [20:54:19]MH_I2C_Read... [20:54:19]Read from MH i2c: E2 62 00 DB 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 99 08 01 00 0E 04 04 00 66 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 4D [20:54: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 99 08 01 00 0E 04 04 00 66 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 [20:54:19]wFMCommunicate OK [20:54:19]SAM_PROTO_GetFieldsCounters done [20:54:19]requested_item shift.num is exist - process it [20:54:19]requested_item shift.opened is exist - process it [20:54:19]req_shift_opened [20:54:19]FM_GetShiftState [20:54:19]SAM_PROTO_GetShiftState [20:54:19]wFMCommunicate request_size=4 [20:54:19]MH_SAM_APDU [20:54:19]CAPDU: 80 13 01 00 [20:54:19]Write to MH i2c: E2 08 00 DC 11 80 13 01 00 00 00 00 00 6A [20:54:19]Write i2c OK [20:54:19]MH_I2C_Read... [20:54:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:19]Read from MH i2c: E2 [20:54:19]MH_I2C_Read... [20:54:19]Read from MH i2c: E2 0E 00 [20:54:19]MH_I2C_Read... [20:54:19]Read from MH i2c: E2 0E 00 DC 11 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F0 [20:54:19]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:54:19]wFMCommunicate OK [20:54:19]SAM_PROTO_GetShiftState done [20:54:19]FM_GetShiftState done [20:54:19]req_shift_opened done [20:54:19]requested_item shift.open_date is exist - process it [20:54:19]req_shift_open_date [20:54:19]req_shift_open_date done [20:54:19]produce_requested_data done [20:54:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67737,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:54:19]process_action_free close_receipt [20:54:19]json_value_free [20:54:19]json_value_free done [20:54:19]process_json_proto returns [20:54:19]Send response to host [20:54:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67737,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:54:19]free response buf [20:54:19]execute_script done [20:54:19]execute_script returns [20:54:19]free content buf [20:54:19]Sock 7.Close socket [20:54:19]Sock 7.Thread stoped [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:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:10]accept exits with 9 [20:56:10]New connection [20:56:10]New thread 3066608996 created [20:56:10]Thread 3066752356 joined [20:56:10]Waiting for new connection... [20:56:10] Sock 9.Parse request [20:56:10]Sock 9.Check first char [20:56:10]Sock 9.First char is OK [20:56:10]request: POST /json_proto HTTP/1.0 [20:56:10]Method: POST [20:56:10]URL: /json_proto [20:56:10]Method is POST - this is cgi request [20:56:10]url: /json_proto [20:56:10]query_string will be loaded in cgi processing [20:56:10]execute_cgi json_proto POST (null) [20:56:10]execute_cgi path=json_proto method=POST [20:56:10]POST find Content-Length [20:56:10]Host: 172.17.41.195:8080 [20:56:10]Content-Length: 677 [20:56:10]Content-Type: application/json [20:56:10] [20:56:10]POST finish read [20:56:10]Found Content-Length = 677 [20:56:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507893", "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 }]} ], "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" ] } } [20:56:10]execute_script... [20:56: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)507893", "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 }]} ], "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" ] } } [20:56:10]POST & json_proto [20:56:10]process_json_proto [20:56:10]json parsed OK: [20:56:10]protocol is kg_v1.0 [20:56:10]action value=close_receipt [20:56:10]process_action close_receipt [20:56:10]cmd_close_receipt [20:56:10]MH_GetDate [20:56:10]Write to MH i2c: F0 00 00 DD 11 DD [20:56:10]Write i2c OK [20:56:10]MH_I2C_Read... [20:56:10]Read from MH i2c: F0 [20:56:10]MH_I2C_Read... [20:56:10]Read from MH i2c: F0 09 00 [20:56:10]MH_I2C_Read... [20:56:10]Read from MH i2c: F0 09 00 DD 11 00 6C C4 47 66 FC 21 6F 64 B3 [20:56:10]GetLastDocTimeStamp 1715979257 [20:56:10]current date 1715979372 [20:56:10]FM_GetShiftState [20:56:10]SAM_PROTO_GetShiftState [20:56:10]wFMCommunicate request_size=4 [20:56:10]MH_SAM_APDU [20:56:10]CAPDU: 80 13 01 00 [20:56:10]Write to MH i2c: E2 08 00 DE 11 80 13 01 00 00 00 00 00 6C [20:56:10]Write i2c OK [20:56:10]MH_I2C_Read... [20:56:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:10]Read from MH i2c: E2 [20:56:10]MH_I2C_Read... [20:56:10]Read from MH i2c: E2 0E 00 [20:56:10]MH_I2C_Read... [20:56:10]Read from MH i2c: E2 0E 00 DE 11 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F2 [20:56:10]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:56:10]wFMCommunicate OK [20:56:10]SAM_PROTO_GetShiftState done [20:56:10]FM_GetShiftState done [20:56:10]opened in 1715905068 [20:56:10]opened+sec_in_day 1715991468 [20:56:10]quantity*price = 30060 [20:56:10]sum+1 = 30061 [20:56:10]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 СНО: Общий режим Чек 147 17.05.2024 20:56 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67738 ФПД: 226449614751746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T205612&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67738&fm=226449614751746&tin=02508201610067®Number=0000000000091845&sum=30000 [20:56:11]StoreToDocumentArchive [20:56:11]shift 358 fd 67738 [20:56:11]save to /storage/0358/doc_00067738 [20:56:11]save last doc name /storage/0358/doc_00067738 to /storage/kkm_last_doc_name [20:56:11]save OK [20:56:11]Clear old archive folders... [20:56:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:56:11]tlvbuf is B6E77340 [20:56:11]SAM_PROTO_ClearQueue [20:56:11]wFMCommunicate request_size=4 [20:56:11]MH_SAM_APDU [20:56:11]CAPDU: 80 09 00 00 [20:56:11]Write to MH i2c: E2 08 00 EB 11 80 09 00 00 00 00 00 00 6E [20:56:11]Write i2c OK [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 [20:56:11]MH_I2C_Read... [20:56:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:56:11]Read from MH i2c: E2 03 00 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 03 00 EB 11 00 90 00 70 [20:56:11]RAPDU: 90 00 [20:56:11]wFMCommunicate OK [20:56:11]SAM_PROTO_ClearQueue done [20:56:11]KKMCreateOFDPacket [20:56:11]OFDProtocolAddRootSTLVToBuf [20:56:11]FM_MakeSignedData [20:56:11]FM_MakeSignedData [20:56:11]SAM_PROTO_SignData [20:56:11]wFMCommunicate request_size=4 [20:56:11]MH_SAM_APDU [20:56:11]CAPDU: 80 0D 01 02 [20:56:11]Write to MH i2c: E2 08 00 EC 11 80 0D 01 02 00 00 00 00 76 [20:56:11]Write i2c OK [20:56:11]MH_I2C_Read... [20:56:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:56:11]Read from MH i2c: E2 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 03 00 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 03 00 EC 11 00 90 00 71 [20:56:11]RAPDU: 90 00 [20:56:11]wFMCommunicate OK [20:56:11]wFMCommunicate request_size=255 [20:56:11]MH_SAM_APDU [20:56: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 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 93 00 00 00 F4 03 04 00 6C C4 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CD [20:56:11]Write to MH i2c: E2 02 01 ED 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 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 93 00 00 00 F4 03 04 00 6C C4 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CD 00 00 5D [20:56:11]Write i2c OK [20:56:11]MH_I2C_Read... [20:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:11]Read from MH i2c: E2 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 03 00 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 03 00 ED 11 00 90 00 72 [20:56:11]RAPDU: 90 00 [20:56:11]wFMCommunicate OK [20:56:11]wFMCommunicate request_size=10 [20:56:11]MH_SAM_APDU [20:56:11]CAPDU: 80 0D 02 02 05 F4 68 D8 C8 02 [20:56:11]Write to MH i2c: E2 0D 00 EE 11 80 0D 02 02 05 00 F4 68 D8 C8 02 00 00 81 [20:56:11]Write i2c OK [20:56:11]MH_I2C_Read... [20:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:11]Read from MH i2c: E2 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 03 00 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 03 00 EE 11 00 90 00 73 [20:56:11]RAPDU: 90 00 [20:56:11]wFMCommunicate OK [20:56:11]wFMCommunicate request_size=4 [20:56:11]MH_SAM_APDU [20:56:11]CAPDU: 80 0D 03 02 [20:56:11]Write to MH i2c: E2 08 00 EF 11 80 0D 03 02 00 00 00 00 7B [20:56:11]Write i2c OK [20:56:11]MH_I2C_Read... [20:56:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:56:11]Read from MH i2c: E2 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 0B 00 [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: E2 0B 00 EF 11 00 28 C4 8D AD C8 52 EF 08 90 00 B3 [20:56:11]RAPDU: 28 C4 8D AD C8 52 EF 08 90 00 [20:56:11]wFMCommunicate OK [20:56:11]SAM_PROTO_SignData done [20:56:11]FM_MakeSignedData done [20:56:11]CreateOFDProtocolMessage [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 F0 11 80 11 00 00 00 00 00 00 7B [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 F0 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D1 [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]CreateOFDProtocolMessage done [20:56:11]OFDSenderStorePacket 67738 [20:56:11]StoreOFDPacket docnum=67738 [20:56:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 DC 2D 07 01 7C B2 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 93 00 00 00 F4 03 04 00 6C C4 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CD F4 68 D8 C8 02 28 C4 8D AD C8 52 EF 08 [20:56:11]CheckFolder [20:56:11]dirname=/storage/ofd_packets [20:56:11]CheckFolder done [20:56:11]ProducePacketName [20:56:11]name=ofd_packets/00067738 [20:56:11]NVStorageSaveData ofd_packets/00067738 [20:56:11]File name is /storage/ofd_packets/00067738 [20:56:11]Write 301 bytes [20:56:11]NVStorageSaveData done [20:56:11]OFDSenderStorePacket done [20:56:11]KKMCreateOFDPacket done [20:56:11]NVStorageSaveData kkm_last_timestamp [20:56:11]File name is /storage/kkm_last_timestamp [20:56:11]Write 4 bytes [20:56:11]NVStorageSaveData done [20:56:11]ExternCall_PrintAddStr [20:56:11]wPrintStart [20:56:11]Write to MH i2c: 01 00 00 F1 11 02 [20:56:11]Write i2c OK [20:56:11]MH_I2C_Read... [20:56:11]Read from MH i2c: 01 [20:56:11]MH_I2C_Read... [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 F1 11 00 00 00 00 00 FF 0F 17 [20:56:11]RasterBufferAndPrint [20:56:11]line Счет N : (1)507893 [20:56:11]line ИНН: 02508201610067 [20:56:11]line Контрольно-Кассовый Чек [20:56:11]line ПРОДАЖА [20:56:11]line ТРК (МРК, ГНК) : 23 [20:56:11]line Товар: 2710124130 [20:56:11]line Аи-92-К-5 [20:56:11]line 4.500 * 66.80 [20:56:11]line = 300.60 [20:56:11]line НДС 12% НСП 1% [20:56:11]line > о реализуемом товаре [20:56:11]line ОКРУГЛЕНИЕ: -0.60 [20:56:11]line ИТОГО: 300.00 [20:56:11]line Внесено: 300.00 [20:56:11]line СДАЧА: 0.00 [20:56:11]line НСП 1% : 2.66 [20:56:11]line НДС 12% : 31.92 [20:56:11]line Наличными: 300.00 [20:56:11]line Безнал.: 0.00 [20:56:11]line Место: АЗС № 91 "Партнер Нефть" [20:56:11]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:56:11]line СНО: Общий режим [20:56:11]line Чек 147 17.05.2024 20:56 [20:56:11]line Смена: 358 ФФД: 1.0 [20:56:11]line ЗНМ: 0300000119 [20:56:11]line РНМ: 0000000000091845 [20:56:11]line Версия ККМ: 001 [20:56:11]line ФМ: 0000000000871829 [20:56:11]line ФД: 67738 [20:56:11]line ФПД: 226449614751746 [20:56:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T205612&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67738&fm=226449614751746&tin=02508201610067®Number=0000000000091845&sum=30000 [20:56:12]OFD Sender: Processing packet 67738 [packets to send 35, broken 34] [20:56:12]ProducePacketName [20:56:12]name=ofd_packets/00067738 [20:56:12]OFD Sender: To server: pG, [20:56:12]CommunicateWithHost lk.salyk.kg:30040 [20:56:12]ConnectInit lk.salyk.kg [20:56:12]written 0, free lines is 4095 [20:56:12]Connected sock=10 [20:56: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 DC 2D 07 01 7C B2 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 93 00 00 00 F4 03 04 00 6C C4 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 CD F4 68 D8 C8 02 28 C4 8D AD C8 52 EF 08 [20:56: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 64 21 47 00 7C DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9A 08 01 00 F4 03 04 00 43 6C 47 66 B6 04 01 00 00 D6 E3 A8 F5 21 73 88 A6 [20:56:12]CommunicateWithHost err = 0 [20:56:12]CheckOFDResponse [20:56:12]1017 (14) - 77093643461234 [20:56:12]1041 (16) - 0000000000871829 [20:56:12]1040 (4) - 67738 [20:56:12]1012 (4) - 17.05.2024 14:40 [20:56:12]1206 (1) - 0 [20:56:12]OFD Sender: Remove packet 67738 [20:56:12]ProducePacketName [20:56:12]name=ofd_packets/00067738 [20:56:12]NVStorageDeleteData [20:56:12]Write to MH i2c: 01 00 00 1B 12 2D [20:56:12]Write i2c OK [20:56:12]MH_I2C_Read... [20:56:12]Read from MH i2c: 01 [20:56:12]MH_I2C_Read... [20:56:12]Read from MH i2c: 01 07 00 [20:56:12]MH_I2C_Read... [20:56:12]Read from MH i2c: 01 07 00 1B 12 00 00 00 00 00 CB 0C 0B [20:56:12]RasterBufferAndPrint [20:56:12]line [20:56:12]line [20:56:12]line [20:56:12]line [20:56:12]line [20:56:12]written 0, free lines is 3281 [20:56:12]MH_Cut [20:56:12]Write to MH i2c: D1 01 00 22 12 01 06 [20:56:12]Write i2c OK [20:56:12]MH_I2C_Read... [20:56:12]Read from MH i2c: D1 [20:56:12]MH_I2C_Read... [20:56:12]Read from MH i2c: D1 01 00 [20:56:12]MH_I2C_Read... [20:56:12]Read from MH i2c: D1 01 00 22 12 00 05 [20:56:12]Write to MH i2c: 01 00 00 23 12 35 [20:56:12]Write i2c OK [20:56:12]MH_I2C_Read... [20:56:13]OFD Sender: No OFD packet to send [20:56:13]*** Cut start [20:56:13]*** Purtial cut [20:56:13]*** CUTSNS_PIN = 0 [20:56:13]*** Stage 1: CUTSNS_PIN = 1 [20:56:15]Read from MH i2c: 01 [20:56:15]MH_I2C_Read... [20:56:15]*** Stop cut motor [20:56:15]*** Cut end [20:56:15]Read from MH i2c: 01 07 00 [20:56:15]MH_I2C_Read... [20:56:15]Read from MH i2c: 01 07 00 23 12 00 00 00 00 00 FF 0F 4A [20:56:15]process_action close_receipt done [20:56:15]requested_data is exist [20:56:15]produce_requested_data [20:56:15]requested_item fm.sn is exist - process it [20:56:15]wFMCommunicate request_size=4 [20:56:15]MH_SAM_APDU [20:56:15]CAPDU: 80 11 00 00 [20:56:15]Write to MH i2c: E2 08 00 24 12 80 11 00 00 00 00 00 00 B0 [20:56:15]Write i2c OK [20:56:15]MH_I2C_Read... [20:56:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:15]Read from MH i2c: E2 [20:56:15]MH_I2C_Read... [20:56:15]Read from MH i2c: E2 17 00 [20:56:15]MH_I2C_Read... [20:56:15]Read from MH i2c: E2 17 00 24 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 06 [20:56: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:56:15]wFMCommunicate OK [20:56:15]requested_item fd.num is exist - process it [20:56:15]SAM_PROTO_GetFieldsCounters [20:56:15]wFMCommunicate request_size=4 [20:56:15]MH_SAM_APDU [20:56:15]CAPDU: 80 13 00 00 [20:56:15]Write to MH i2c: E2 08 00 25 12 80 13 00 00 00 00 00 00 B3 [20:56:15]Write i2c OK [20:56:15]MH_I2C_Read... [20:56:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:56:15]Read from MH i2c: E2 [20:56:15]MH_I2C_Read... [20:56:15]Read from MH i2c: E2 62 00 [20:56:15]MH_I2C_Read... [20:56:15]Read from MH i2c: E2 62 00 25 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 9A 08 01 00 0E 04 04 00 66 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 9C [20:56: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 9A 08 01 00 0E 04 04 00 66 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 [20:56:15]wFMCommunicate OK [20:56:15]SAM_PROTO_GetFieldsCounters done [20:56:15]requested_item shift.num is exist - process it [20:56:15]requested_item shift.opened is exist - process it [20:56:15]req_shift_opened [20:56:15]FM_GetShiftState [20:56:15]SAM_PROTO_GetShiftState [20:56:15]wFMCommunicate request_size=4 [20:56:15]MH_SAM_APDU [20:56:15]CAPDU: 80 13 01 00 [20:56:15]Write to MH i2c: E2 08 00 26 12 80 13 01 00 00 00 00 00 B5 [20:56:15]Write i2c OK [20:56:15]MH_I2C_Read... [20:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:15]Read from MH i2c: E2 [20:56:15]MH_I2C_Read... [20:56:15]Read from MH i2c: E2 0E 00 [20:56:15]MH_I2C_Read... [20:56:15]Read from MH i2c: E2 0E 00 26 12 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 3B [20:56:15]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:56:15]wFMCommunicate OK [20:56:15]SAM_PROTO_GetShiftState done [20:56:15]FM_GetShiftState done [20:56:15]req_shift_opened done [20:56:15]requested_item shift.open_date is exist - process it [20:56:15]req_shift_open_date [20:56:15]req_shift_open_date done [20:56:15]produce_requested_data done [20:56:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67738,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:56:15]process_action_free close_receipt [20:56:15]json_value_free [20:56:15]json_value_free done [20:56:15]process_json_proto returns [20:56:15]Send response to host [20:56:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67738,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:56:15]free response buf [20:56:15]execute_script done [20:56:15]execute_script returns [20:56:15]free content buf [20:56:15]Sock 9.Close socket [20:56:15]Sock 9.Thread stoped [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:52]accept exits with 7 [20:58:52]New connection [20:58:52]New thread 3066752356 created [20:58:52]Thread 3066608996 joined [20:58:52]Waiting for new connection... [20:58:52] Sock 7.Parse request [20:58:52]Sock 7.Check first char [20:58:52]Sock 7.First char is OK [20:58:52]request: POST /json_proto HTTP/1.0 [20:58:52]Method: POST [20:58:52]URL: /json_proto [20:58:52]Method is POST - this is cgi request [20:58:52]url: /json_proto [20:58:52]query_string will be loaded in cgi processing [20:58:52]execute_cgi json_proto POST (null) [20:58:52]execute_cgi path=json_proto method=POST [20:58:52]POST find Content-Length [20:58:52]Host: 172.17.41.195:8080 [20:58:52]Content-Length: 677 [20:58:52]Content-Type: application/json [20:58:52] [20:58:52]POST finish read [20:58:52]Found Content-Length = 677 [20:58:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507894", "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" ] } } [20:58:52]execute_script... [20:58: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)507894", "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" ] } } [20:58:52]POST & json_proto [20:58:52]process_json_proto [20:58:52]json parsed OK: [20:58:52]protocol is kg_v1.0 [20:58:52]action value=close_receipt [20:58:52]process_action close_receipt [20:58:52]cmd_close_receipt [20:58:52]MH_GetDate [20:58:52]Write to MH i2c: F0 00 00 27 12 28 [20:58:52]Write i2c OK [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: F0 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: F0 09 00 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: F0 09 00 27 12 00 0E C5 47 66 FC 21 6F 64 A1 [20:58:52]GetLastDocTimeStamp 1715979372 [20:58:52]current date 1715979534 [20:58:52]FM_GetShiftState [20:58:52]SAM_PROTO_GetShiftState [20:58:52]wFMCommunicate request_size=4 [20:58:52]MH_SAM_APDU [20:58:52]CAPDU: 80 13 01 00 [20:58:52]Write to MH i2c: E2 08 00 28 12 80 13 01 00 00 00 00 00 B7 [20:58:52]Write i2c OK [20:58:52]MH_I2C_Read... [20:58:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:52]Read from MH i2c: E2 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: E2 0E 00 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: E2 0E 00 28 12 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 3D [20:58:52]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:58:52]wFMCommunicate OK [20:58:52]SAM_PROTO_GetShiftState done [20:58:52]FM_GetShiftState done [20:58:52]opened in 1715905068 [20:58:52]opened+sec_in_day 1715991468 [20:58:52]quantity*price = 60053 [20:58:52]sum+1 = 60054 [20:58:52]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 СНО: Общий режим Чек 148 17.05.2024 20:58 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67739 ФПД: 240749733352388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T205854&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67739&fm=240749733352388&tin=02508201610067®Number=0000000000091845&sum=60000 [20:58:53]StoreToDocumentArchive [20:58:53]shift 358 fd 67739 [20:58:53]save to /storage/0358/doc_00067739 [20:58:53]save last doc name /storage/0358/doc_00067739 to /storage/kkm_last_doc_name [20:58:53]save OK [20:58:53]Clear old archive folders... [20:58:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:58:53]tlvbuf is 01B5AFB0 [20:58:53]SAM_PROTO_ClearQueue [20:58:53]wFMCommunicate request_size=4 [20:58:53]MH_SAM_APDU [20:58:53]CAPDU: 80 09 00 00 [20:58:53]Write to MH i2c: E2 08 00 35 12 80 09 00 00 00 00 00 00 B9 [20:58:53]Write i2c OK [20:58:53]MH_I2C_Read... [20:58:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:58:53]Read from MH i2c: E2 [20:58:53]MH_I2C_Read... [20:58:53]Read from MH i2c: E2 03 00 [20:58:53]MH_I2C_Read... [20:58:53]Read from MH i2c: E2 03 00 35 12 00 90 00 BB [20:58:53]RAPDU: 90 00 [20:58:53]wFMCommunicate OK [20:58:53]SAM_PROTO_ClearQueue done [20:58:53]KKMCreateOFDPacket [20:58:53]OFDProtocolAddRootSTLVToBuf [20:58:53]FM_MakeSignedData [20:58:53]FM_MakeSignedData [20:58:53]SAM_PROTO_SignData [20:58:53]wFMCommunicate request_size=4 [20:58:53]MH_SAM_APDU [20:58:53]CAPDU: 80 0D 01 02 [20:58:53]Write to MH i2c: E2 08 00 36 12 80 0D 01 02 00 00 00 00 C1 [20:58:53]Write i2c OK [20:58:53]MH_I2C_Read... [20:58:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:58:53]Read from MH i2c: E2 [20:58:53]MH_I2C_Read... [20:58:53]Read from MH i2c: E2 03 00 [20:58:53]MH_I2C_Read... [20:58:53]Read from MH i2c: E2 03 00 36 12 00 90 00 BC [20:58:53]RAPDU: 90 00 [20:58:53]wFMCommunicate OK [20:58:53]wFMCommunicate request_size=255 [20:58:53]MH_SAM_APDU [20:58:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 94 00 00 00 F4 03 04 00 0E C5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 DA [20:58:53]Write to MH i2c: E2 02 01 37 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 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 94 00 00 00 F4 03 04 00 0E C5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 DA 00 00 65 [20:58:53]Write i2c OK [20:58:53]MH_I2C_Read... [20:58:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:54]Read from MH i2c: E2 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 03 00 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 03 00 37 12 00 90 00 BD [20:58:54]RAPDU: 90 00 [20:58:54]wFMCommunicate OK [20:58:54]wFMCommunicate request_size=10 [20:58:54]MH_SAM_APDU [20:58:54]CAPDU: 80 0D 02 02 05 F5 EA 56 13 C4 [20:58:54]Write to MH i2c: E2 0D 00 38 12 80 0D 02 02 05 00 F5 EA 56 13 C4 00 00 DA [20:58:54]Write i2c OK [20:58:54]MH_I2C_Read... [20:58:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:54]Read from MH i2c: E2 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 03 00 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 03 00 38 12 00 90 00 BE [20:58:54]RAPDU: 90 00 [20:58:54]wFMCommunicate OK [20:58:54]wFMCommunicate request_size=4 [20:58:54]MH_SAM_APDU [20:58:54]CAPDU: 80 0D 03 02 [20:58:54]Write to MH i2c: E2 08 00 39 12 80 0D 03 02 00 00 00 00 C6 [20:58:54]Write i2c OK [20:58:54]MH_I2C_Read... [20:58:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:58:54]Read from MH i2c: E2 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 0B 00 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 0B 00 39 12 00 FF 7A 9C 22 D7 56 7B 77 90 00 1D [20:58:54]RAPDU: FF 7A 9C 22 D7 56 7B 77 90 00 [20:58:54]wFMCommunicate OK [20:58:54]SAM_PROTO_SignData done [20:58:54]FM_MakeSignedData done [20:58:54]CreateOFDProtocolMessage [20:58:54]wFMCommunicate request_size=4 [20:58:54]MH_SAM_APDU [20:58:54]CAPDU: 80 11 00 00 [20:58:54]Write to MH i2c: E2 08 00 3A 12 80 11 00 00 00 00 00 00 C6 [20:58:54]Write i2c OK [20:58:54]MH_I2C_Read... [20:58:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:54]Read from MH i2c: E2 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 17 00 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 17 00 3A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1C [20:58: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:58:54]wFMCommunicate OK [20:58:54]CreateOFDProtocolMessage done [20:58:54]OFDSenderStorePacket 67739 [20:58:54]StoreOFDPacket docnum=67739 [20:58:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 A6 0D 07 01 4D 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 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 94 00 00 00 F4 03 04 00 0E C5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 DA F5 EA 56 13 C4 FF 7A 9C 22 D7 56 7B 77 [20:58:54]CheckFolder [20:58:54]dirname=/storage/ofd_packets [20:58:54]CheckFolder done [20:58:54]ProducePacketName [20:58:54]name=ofd_packets/00067739 [20:58:54]NVStorageSaveData ofd_packets/00067739 [20:58:54]File name is /storage/ofd_packets/00067739 [20:58:54]Write 301 bytes [20:58:54]NVStorageSaveData done [20:58:54]OFDSenderStorePacket done [20:58:54]KKMCreateOFDPacket done [20:58:54]NVStorageSaveData kkm_last_timestamp [20:58:54]File name is /storage/kkm_last_timestamp [20:58:54]Write 4 bytes [20:58:54]NVStorageSaveData done [20:58:54]ExternCall_PrintAddStr [20:58:54]wPrintStart [20:58:54]Write to MH i2c: 01 00 00 3B 12 4D [20:58:54]Write i2c OK [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: 01 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: 01 07 00 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: 01 07 00 3B 12 00 00 00 00 00 FF 0F 62 [20:58:54]RasterBufferAndPrint [20:58:54]line Счет N : (1)507894 [20:58:54]line ИНН: 02508201610067 [20:58:54]line Контрольно-Кассовый Чек [20:58:54]line ПРОДАЖА [20:58:54]line ТРК (МРК, ГНК) : 33 [20:58:54]line Товар: 2710124130 [20:58:54]line Аи-92-К-5 [20:58:54]line 8.990 * 66.80 [20:58:54]line = 600.53 [20:58:54]line НДС 12% НСП 1% [20:58:54]line > о реализуемом товаре [20:58:54]line ОКРУГЛЕНИЕ: -0.53 [20:58:54]line ИТОГО: 600.00 [20:58:54]line Внесено: 600.00 [20:58:54]line СДАЧА: 0.00 [20:58:54]line НСП 1% : 5.31 [20:58:54]line НДС 12% : 63.77 [20:58:54]line Наличными: 600.00 [20:58:54]line Безнал.: 0.00 [20:58:54]line Место: АЗС № 91 "Партнер Нефть" [20:58:54]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:58:54]line СНО: Общий режим [20:58:54]line Чек 148 17.05.2024 20:58 [20:58:54]line Смена: 358 ФФД: 1.0 [20:58:54]line ЗНМ: 0300000119 [20:58:54]line РНМ: 0000000000091845 [20:58:54]line Версия ККМ: 001 [20:58:54]line ФМ: 0000000000871829 [20:58:54]line ФД: 67739 [20:58:54]line ФПД: 240749733352388 [20:58:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T205854&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67739&fm=240749733352388&tin=02508201610067®Number=0000000000091845&sum=60000 [20:58:54]written 0, free lines is 4095 [20:58:54]OFD Sender: Processing packet 67739 [packets to send 35, broken 34] [20:58:54]ProducePacketName [20:58:54]name=ofd_packets/00067739 [20:58:54]OFD Sender: To server: pG, [20:58:54]CommunicateWithHost lk.salyk.kg:30040 [20:58:54]ConnectInit lk.salyk.kg [20:58:54]Connected sock=10 [20:58:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 A6 0D 07 01 4D 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 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 94 00 00 00 F4 03 04 00 0E C5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 DA F5 EA 56 13 C4 FF 7A 9C 22 D7 56 7B 77 [20:58: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 14 75 47 00 A8 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 9B 08 01 00 F4 03 04 00 E5 6C 47 66 B6 04 01 00 00 C6 EF 65 4B C7 01 4B A6 [20:58:54]CommunicateWithHost err = 0 [20:58:54]CheckOFDResponse [20:58:54]1017 (14) - 77093643461234 [20:58:54]1041 (16) - 0000000000871829 [20:58:54]1040 (4) - 67739 [20:58:54]1012 (4) - 17.05.2024 14:42 [20:58:54]1206 (1) - 0 [20:58:54]OFD Sender: Remove packet 67739 [20:58:54]ProducePacketName [20:58:54]name=ofd_packets/00067739 [20:58:54]NVStorageDeleteData [20:58:54]Write to MH i2c: 01 00 00 65 12 77 [20:58:54]Write i2c OK [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: 01 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: 01 07 00 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: 01 07 00 65 12 00 00 00 00 00 CF 0C 59 [20:58:54]RasterBufferAndPrint [20:58:54]line [20:58:54]line [20:58:54]line [20:58:54]line [20:58:54]line [20:58:54]written 0, free lines is 3285 [20:58:54]MH_Cut [20:58:54]Write to MH i2c: D1 01 00 6C 12 01 50 [20:58:54]Write i2c OK [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: D1 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: D1 01 00 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: D1 01 00 6C 12 00 4F [20:58:54]Write to MH i2c: 01 00 00 6D 12 7F [20:58:54]Write i2c OK [20:58:54]MH_I2C_Read... [20:58:55]OFD Sender: No OFD packet to send [20:58:55]*** Cut start [20:58:55]*** Purtial cut [20:58:55]*** Stage 1: CUTSNS_PIN = 1 [20:58:56]Read from MH i2c: 01 [20:58:56]MH_I2C_Read... [20:58:56]*** Stop cut motor [20:58:56]*** Cut end [20:58:56]Read from MH i2c: 01 07 00 [20:58:56]MH_I2C_Read... [20:58:56]Read from MH i2c: 01 07 00 6D 12 00 00 00 00 00 FF 0F 94 [20:58:56]process_action close_receipt done [20:58:56]requested_data is exist [20:58:56]produce_requested_data [20:58:56]requested_item fm.sn is exist - process it [20:58:56]wFMCommunicate request_size=4 [20:58:56]MH_SAM_APDU [20:58:56]CAPDU: 80 11 00 00 [20:58:56]Write to MH i2c: E2 08 00 6E 12 80 11 00 00 00 00 00 00 FA [20:58:56]Write i2c OK [20:58:56]MH_I2C_Read... [20:58:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:56]Read from MH i2c: E2 [20:58:56]MH_I2C_Read... [20:58:56]Read from MH i2c: E2 17 00 [20:58:56]MH_I2C_Read... [20:58:56]Read from MH i2c: E2 17 00 6E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 50 [20:58: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:58:56]wFMCommunicate OK [20:58:56]requested_item fd.num is exist - process it [20:58:56]SAM_PROTO_GetFieldsCounters [20:58:56]wFMCommunicate request_size=4 [20:58:56]MH_SAM_APDU [20:58:56]CAPDU: 80 13 00 00 [20:58:56]Write to MH i2c: E2 08 00 6F 12 80 13 00 00 00 00 00 00 FD [20:58:56]Write i2c OK [20:58:56]MH_I2C_Read... [20:58:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:58:56]Read from MH i2c: E2 [20:58:56]MH_I2C_Read... [20:58:56]Read from MH i2c: E2 62 00 [20:58:56]MH_I2C_Read... [20:58:56]Read from MH i2c: E2 62 00 6F 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 9B 08 01 00 0E 04 04 00 66 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 EA [20:58: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 9B 08 01 00 0E 04 04 00 66 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 [20:58:56]wFMCommunicate OK [20:58:56]SAM_PROTO_GetFieldsCounters done [20:58:56]requested_item shift.num is exist - process it [20:58:56]requested_item shift.opened is exist - process it [20:58:56]req_shift_opened [20:58:56]FM_GetShiftState [20:58:56]SAM_PROTO_GetShiftState [20:58:56]wFMCommunicate request_size=4 [20:58:56]MH_SAM_APDU [20:58:56]CAPDU: 80 13 01 00 [20:58:56]Write to MH i2c: E2 08 00 70 12 80 13 01 00 00 00 00 00 FF [20:58:56]Write i2c OK [20:58:56]MH_I2C_Read... [20:58:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:56]Read from MH i2c: E2 [20:58:56]MH_I2C_Read... [20:58:56]Read from MH i2c: E2 0E 00 [20:58:56]MH_I2C_Read... [20:58:56]Read from MH i2c: E2 0E 00 70 12 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 85 [20:58:56]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [20:58:56]wFMCommunicate OK [20:58:56]SAM_PROTO_GetShiftState done [20:58:56]FM_GetShiftState done [20:58:56]req_shift_opened done [20:58:56]requested_item shift.open_date is exist - process it [20:58:56]req_shift_open_date [20:58:56]req_shift_open_date done [20:58:56]produce_requested_data done [20:58:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67739,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [20:58:56]process_action_free close_receipt [20:58:56]json_value_free [20:58:56]json_value_free done [20:58:56]process_json_proto returns [20:58:56]Send response to host [20:58:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67739,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [20:58:56]free response buf [20:58:56]execute_script done [20:58:56]execute_script returns [20:58:56]free content buf [20:58:56]Sock 7.Close socket [20:58:56]Sock 7.Thread stoped [20:59:00]OFD Sender: No OFD packet to send [20:59:05]OFD Sender: No OFD packet to send [20:59:10]OFD Sender: No OFD packet to send [20:59:15]OFD Sender: No OFD packet to send [20:59:20]OFD Sender: No OFD packet to send [20:59:25]OFD Sender: No OFD packet to send [20:59:30]OFD Sender: No OFD packet to send [20:59:35]OFD Sender: No OFD packet to send [20:59:40]OFD Sender: No OFD packet to send [20:59:45]OFD Sender: No OFD packet to send [20:59:50]OFD Sender: No OFD packet to send [20:59:55]OFD Sender: No OFD packet to send [21:00:00]OFD Sender: No OFD packet to send [21:00:05]OFD Sender: No OFD packet to send [21:00:10]OFD Sender: No OFD packet to send [21:00:15]OFD Sender: No OFD packet to send [21:00:20]OFD Sender: No OFD packet to send [21:00:25]OFD Sender: No OFD packet to send [21:00:30]OFD Sender: No OFD packet to send [21:00:35]OFD Sender: No OFD packet to send [21:00:40]OFD Sender: No OFD packet to send [21:00:45]OFD Sender: No OFD packet to send [21:00:50]OFD Sender: No OFD packet to send [21:00:55]OFD Sender: No OFD packet to send [21:01:00]OFD Sender: No OFD packet to send [21:01:05]OFD Sender: No OFD packet to send [21:01:10]OFD Sender: No OFD packet to send [21:01:15]OFD Sender: No OFD packet to send [21:01:20]OFD Sender: No OFD packet to send [21:01:25]OFD Sender: No OFD packet to send [21:01:30]OFD Sender: No OFD packet to send [21:01:35]OFD Sender: No OFD packet to send [21:01:40]OFD Sender: No OFD packet to send [21:01:45]OFD Sender: No OFD packet to send [21:01:50]OFD Sender: No OFD packet to send [21:01:55]OFD Sender: No OFD packet to send [21:02:00]OFD Sender: No OFD packet to send [21:02:05]OFD Sender: No OFD packet to send [21:02:10]OFD Sender: No OFD packet to send [21:02:15]OFD Sender: No OFD packet to send [21:02:20]OFD Sender: No OFD packet to send [21:02:25]OFD Sender: No OFD packet to send [21:02:30]OFD Sender: No OFD packet to send [21:02:35]OFD Sender: No OFD packet to send [21:02:40]OFD Sender: No OFD packet to send [21:02:45]OFD Sender: No OFD packet to send [21:02:50]OFD Sender: No OFD packet to send [21:02:55]OFD Sender: No OFD packet to send [21:03:00]OFD Sender: No OFD packet to send [21:03:05]OFD Sender: No OFD packet to send [21:03:10]OFD Sender: No OFD packet to send [21:03:15]OFD Sender: No OFD packet to send [21:03:20]OFD Sender: No OFD packet to send [21:03:25]OFD Sender: No OFD packet to send [21:03:30]OFD Sender: No OFD packet to send [21:03:35]OFD Sender: No OFD packet to send [21:03:40]OFD Sender: No OFD packet to send [21:03:45]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:15]OFD Sender: No OFD packet to send [21:04:20]OFD Sender: No OFD packet to send [21:04:20]accept exits with 9 [21:04:20]New connection [21:04:20]New thread 3066608996 created [21:04:20]Thread 3066752356 joined [21:04:20]Waiting for new connection... [21:04:20] Sock 9.Parse request [21:04:20]Sock 9.Check first char [21:04:20]Sock 9.First char is OK [21:04:20]request: POST /json_proto HTTP/1.0 [21:04:20]Method: POST [21:04:20]URL: /json_proto [21:04:20]Method is POST - this is cgi request [21:04:20]url: /json_proto [21:04:20]query_string will be loaded in cgi processing [21:04:20]execute_cgi json_proto POST (null) [21:04:20]execute_cgi path=json_proto method=POST [21:04:20]POST find Content-Length [21:04:20]Host: 172.17.41.195:8080 [21:04:20]Content-Length: 679 [21:04:20]Content-Type: application/json [21:04:20] [21:04:20]POST finish read [21:04:20]Found Content-Length = 679 [21:04:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507895", "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" ] } } [21:04:20]execute_script... [21:04: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)507895", "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" ] } } [21:04:20]POST & json_proto [21:04:20]process_json_proto [21:04:20]json parsed OK: [21:04:20]protocol is kg_v1.0 [21:04:20]action value=close_receipt [21:04:20]process_action close_receipt [21:04:20]cmd_close_receipt [21:04:20]MH_GetDate [21:04:20]Write to MH i2c: F0 00 00 71 12 72 [21:04:20]Write i2c OK [21:04:20]MH_I2C_Read... [21:04:20]Read from MH i2c: F0 [21:04:20]MH_I2C_Read... [21:04:20]Read from MH i2c: F0 09 00 [21:04:20]MH_I2C_Read... [21:04:20]Read from MH i2c: F0 09 00 71 12 00 56 C6 47 66 FC 21 6F 64 34 [21:04:20]GetLastDocTimeStamp 1715979534 [21:04:20]current date 1715979862 [21:04:20]FM_GetShiftState [21:04:20]SAM_PROTO_GetShiftState [21:04:20]wFMCommunicate request_size=4 [21:04:20]MH_SAM_APDU [21:04:20]CAPDU: 80 13 01 00 [21:04:20]Write to MH i2c: E2 08 00 72 12 80 13 01 00 00 00 00 00 01 [21:04:20]Write i2c OK [21:04:20]MH_I2C_Read... [21:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:21]Read from MH i2c: E2 [21:04:21]MH_I2C_Read... [21:04:21]Read from MH i2c: E2 0E 00 [21:04:21]MH_I2C_Read... [21:04:21]Read from MH i2c: E2 0E 00 72 12 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 87 [21:04:21]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [21:04:21]wFMCommunicate OK [21:04:21]SAM_PROTO_GetShiftState done [21:04:21]FM_GetShiftState done [21:04:21]opened in 1715905068 [21:04:21]opened+sec_in_day 1715991468 [21:04:21]quantity*price = 100023 [21:04:21]sum+1 = 100024 [21:04: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 СНО: Общий режим Чек 149 17.05.2024 21:04 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67740 ФПД: 40712847290166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T210422&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67740&fm=40712847290166&tin=02508201610067®Number=0000000000091845&sum=100000 [21:04:22]StoreToDocumentArchive [21:04:22]shift 358 fd 67740 [21:04:22]save to /storage/0358/doc_00067740 [21:04:22]save last doc name /storage/0358/doc_00067740 to /storage/kkm_last_doc_name [21:04:22]save OK [21:04:22]Clear old archive folders... [21:04:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:04:22]tlvbuf is B6E90AB0 [21:04:22]SAM_PROTO_ClearQueue [21:04:22]wFMCommunicate request_size=4 [21:04:22]MH_SAM_APDU [21:04:22]CAPDU: 80 09 00 00 [21:04:22]Write to MH i2c: E2 08 00 7F 12 80 09 00 00 00 00 00 00 03 [21:04:22]Write i2c OK [21:04:22]MH_I2C_Read... [21:04:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:22]Read from MH i2c: E2 [21:04:22]MH_I2C_Read... [21:04:22]Read from MH i2c: E2 03 00 [21:04:22]MH_I2C_Read... [21:04:22]Read from MH i2c: E2 03 00 7F 12 00 90 00 05 [21:04:22]RAPDU: 90 00 [21:04:22]wFMCommunicate OK [21:04:22]SAM_PROTO_ClearQueue done [21:04:22]KKMCreateOFDPacket [21:04:22]OFDProtocolAddRootSTLVToBuf [21:04:22]FM_MakeSignedData [21:04:22]FM_MakeSignedData [21:04:22]SAM_PROTO_SignData [21:04:22]wFMCommunicate request_size=4 [21:04:22]MH_SAM_APDU [21:04:22]CAPDU: 80 0D 01 02 [21:04:22]Write to MH i2c: E2 08 00 80 12 80 0D 01 02 00 00 00 00 0B [21:04:22]Write i2c OK [21:04:22]MH_I2C_Read... [21:04:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:22]Read from MH i2c: E2 [21:04:22]MH_I2C_Read... [21:04:22]Read from MH i2c: E2 03 00 [21:04:22]MH_I2C_Read... [21:04:22]Read from MH i2c: E2 03 00 80 12 00 90 00 06 [21:04:22]RAPDU: 90 00 [21:04:22]wFMCommunicate OK [21:04:22]wFMCommunicate request_size=255 [21:04:22]MH_SAM_APDU [21:04: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 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 95 00 00 00 F4 03 04 00 56 C6 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 25 07 32 CC [21:04:22]Write to MH i2c: E2 02 01 81 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 95 00 00 00 F4 03 04 00 56 C6 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 25 07 32 CC 00 00 79 [21:04:22]Write i2c OK [21:04:22]MH_I2C_Read... [21:04:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:22]Read from MH i2c: E2 [21:04:22]MH_I2C_Read... [21:04:22]Read from MH i2c: E2 03 00 [21:04:22]MH_I2C_Read... [21:04:22]Read from MH i2c: E2 03 00 81 12 00 90 00 07 [21:04:22]RAPDU: 90 00 [21:04:22]wFMCommunicate OK [21:04:22]wFMCommunicate request_size=7 [21:04:22]MH_SAM_APDU [21:04:22]CAPDU: 80 0D 02 02 02 EF 36 [21:04:22]Write to MH i2c: E2 0A 00 82 12 80 0D 02 02 02 00 EF 36 00 00 37 [21:04:22]Write i2c OK [21:04:22]MH_I2C_Read... [21:04:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:22]Read from MH i2c: E2 [21:04:22]MH_I2C_Read... [21:04:22]Read from MH i2c: E2 03 00 [21:04:22]MH_I2C_Read... [21:04:22]Read from MH i2c: E2 03 00 82 12 00 90 00 08 [21:04:22]RAPDU: 90 00 [21:04:22]wFMCommunicate OK [21:04:22]wFMCommunicate request_size=4 [21:04:22]MH_SAM_APDU [21:04:22]CAPDU: 80 0D 03 02 [21:04:22]Write to MH i2c: E2 08 00 83 12 80 0D 03 02 00 00 00 00 10 [21:04:22]Write i2c OK [21:04:22]MH_I2C_Read... [21:04:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:22]Read from MH i2c: E2 [21:04:22]MH_I2C_Read... [21:04:22]Read from MH i2c: E2 0B 00 [21:04:22]MH_I2C_Read... [21:04:22]Read from MH i2c: E2 0B 00 83 12 00 8B 7D 9D 96 33 50 A6 A4 90 00 19 [21:04:22]RAPDU: 8B 7D 9D 96 33 50 A6 A4 90 00 [21:04:22]wFMCommunicate OK [21:04:22]SAM_PROTO_SignData done [21:04:22]FM_MakeSignedData done [21:04:22]CreateOFDProtocolMessage [21:04:22]wFMCommunicate request_size=4 [21:04:22]MH_SAM_APDU [21:04:22]CAPDU: 80 11 00 00 [21:04:22]Write to MH i2c: E2 08 00 84 12 80 11 00 00 00 00 00 00 10 [21:04:22]Write i2c OK [21:04:22]MH_I2C_Read... [21:04:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:22]Read from MH i2c: E2 [21:04:22]MH_I2C_Read... [21:04:22]Read from MH i2c: E2 17 00 [21:04:22]MH_I2C_Read... [21:04:22]Read from MH i2c: E2 17 00 84 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 66 [21:04:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:04:22]wFMCommunicate OK [21:04:22]CreateOFDProtocolMessage done [21:04:22]OFDSenderStorePacket 67740 [21:04:22]StoreOFDPacket docnum=67740 [21:04: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 A2 1D 04 01 9B 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 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 95 00 00 00 F4 03 04 00 56 C6 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 25 07 32 CC EF 36 8B 7D 9D 96 33 50 A6 A4 [21:04:22]CheckFolder [21:04:22]dirname=/storage/ofd_packets [21:04:22]CheckFolder done [21:04:22]ProducePacketName [21:04:22]name=ofd_packets/00067740 [21:04:22]NVStorageSaveData ofd_packets/00067740 [21:04:22]File name is /storage/ofd_packets/00067740 [21:04:22]Write 298 bytes [21:04:22]NVStorageSaveData done [21:04:22]OFDSenderStorePacket done [21:04:22]KKMCreateOFDPacket done [21:04:22]NVStorageSaveData kkm_last_timestamp [21:04:22]File name is /storage/kkm_last_timestamp [21:04:22]Write 4 bytes [21:04:22]NVStorageSaveData done [21:04:22]ExternCall_PrintAddStr [21:04:22]wPrintStart [21:04:22]Write to MH i2c: 01 00 00 85 12 97 [21:04:22]Write i2c OK [21:04:22]MH_I2C_Read... [21:04:22]Read from MH i2c: 01 [21:04:22]MH_I2C_Read... [21:04:22]Read from MH i2c: 01 07 00 [21:04:22]MH_I2C_Read... [21:04:22]Read from MH i2c: 01 07 00 85 12 00 00 00 00 00 FF 0F AC [21:04:22]RasterBufferAndPrint [21:04:22]line Счет N : (1)507895 [21:04:22]line ИНН: 02508201610067 [21:04:22]line Контрольно-Кассовый Чек [21:04:22]line ПРОДАЖА [21:04:22]line ТРК (МРК, ГНК) : 21 [21:04:22]line Товар: 2710194210 [21:04:22]line ДТ-К-5 [21:04:22]line 13.390 * 74.70 [21:04:22]line = 1000.23 [21:04:22]line НДС 12% НСП 1% [21:04:22]line > о реализуемом товаре [21:04:22]line ОКРУГЛЕНИЕ: -0.23 [21:04:22]line ИТОГО: 1000.00 [21:04:22]line Внесено: 1000.00 [21:04:22]line СДАЧА: 0.00 [21:04:22]line НСП 1% : 8.85 [21:04:22]line НДС 12% : 106.22 [21:04:22]line Наличными: 1000.00 [21:04:22]line Безнал.: 0.00 [21:04:22]line Место: АЗС № 91 "Партнер Нефть" [21:04:22]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:04:22]line СНО: Общий режим [21:04:22]line Чек 149 17.05.2024 21:04 [21:04:22]line Смена: 358 ФФД: 1.0 [21:04:22]line ЗНМ: 0300000119 [21:04:22]line РНМ: 0000000000091845 [21:04:22]line Версия ККМ: 001 [21:04:22]line ФМ: 0000000000871829 [21:04:22]line ФД: 67740 [21:04:22]line ФПД: 40712847290166 [21:04:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T210422&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67740&fm=40712847290166&tin=02508201610067®Number=0000000000091845&sum=100000 [21:04:23]OFD Sender: Processing packet 67740 [packets to send 35, broken 34] [21:04:23]ProducePacketName [21:04:23]name=ofd_packets/00067740 [21:04:23]OFD Sender: To server: pG, [21:04:23]CommunicateWithHost lk.salyk.kg:30040 [21:04:23]ConnectInit lk.salyk.kg [21:04:23]written 0, free lines is 4095 [21:04:23]Connected sock=10 [21:04: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 A2 1D 04 01 9B 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 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 95 00 00 00 F4 03 04 00 56 C6 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 25 07 32 CC EF 36 8B 7D 9D 96 33 50 A6 A4 [21:04: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 60 C4 47 00 51 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 2E 6E 47 66 B6 04 01 00 00 9D 93 F5 08 D0 57 50 3A [21:04:23]CommunicateWithHost err = 0 [21:04:23]CheckOFDResponse [21:04:23]1017 (14) - 77093643461234 [21:04:23]1041 (16) - 0000000000871829 [21:04:23]1040 (4) - 67740 [21:04:23]1012 (4) - 17.05.2024 14:48 [21:04:23]1206 (1) - 0 [21:04:23]OFD Sender: Remove packet 67740 [21:04:23]ProducePacketName [21:04:23]name=ofd_packets/00067740 [21:04:23]NVStorageDeleteData [21:04:23]Write to MH i2c: 01 00 00 AF 12 C1 [21:04:23]Write i2c OK [21:04:23]MH_I2C_Read... [21:04:23]Read from MH i2c: 01 [21:04:23]MH_I2C_Read... [21:04:23]Read from MH i2c: 01 07 00 [21:04:23]MH_I2C_Read... [21:04:23]Read from MH i2c: 01 07 00 AF 12 00 00 00 00 00 CB 0C 9F [21:04:23]RasterBufferAndPrint [21:04:23]line [21:04:23]line [21:04:23]line [21:04:23]line [21:04:23]line [21:04:23]written 0, free lines is 3281 [21:04:23]MH_Cut [21:04:23]Write to MH i2c: D1 01 00 B6 12 01 9A [21:04:23]Write i2c OK [21:04:23]MH_I2C_Read... [21:04:23]Read from MH i2c: D1 [21:04:23]MH_I2C_Read... [21:04:23]Read from MH i2c: D1 01 00 [21:04:23]MH_I2C_Read... [21:04:23]Read from MH i2c: D1 01 00 B6 12 00 99 [21:04:23]Write to MH i2c: 01 00 00 B7 12 C9 [21:04:23]Write i2c OK [21:04:23]MH_I2C_Read... [21:04:23]OFD Sender: No OFD packet to send [21:04:24]*** Cut start [21:04:24]*** Purtial cut [21:04:24]*** CUTSNS_PIN = 0 [21:04:24]*** Stage 1: CUTSNS_PIN = 1 [21:04:26]Read from MH i2c: 01 [21:04:26]MH_I2C_Read... [21:04:26]*** Stop cut motor [21:04:26]*** Cut end [21:04:26]Read from MH i2c: 01 07 00 [21:04:26]MH_I2C_Read... [21:04:26]Read from MH i2c: 01 07 00 B7 12 00 00 00 00 00 FF 0F DE [21:04:26]process_action close_receipt done [21:04:26]requested_data is exist [21:04:26]produce_requested_data [21:04:26]requested_item fm.sn is exist - process it [21:04:26]wFMCommunicate request_size=4 [21:04:26]MH_SAM_APDU [21:04:26]CAPDU: 80 11 00 00 [21:04:26]Write to MH i2c: E2 08 00 B8 12 80 11 00 00 00 00 00 00 44 [21:04:26]Write i2c OK [21:04:26]MH_I2C_Read... [21:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:26]Read from MH i2c: E2 [21:04:26]MH_I2C_Read... [21:04:26]Read from MH i2c: E2 17 00 [21:04:26]MH_I2C_Read... [21:04:26]Read from MH i2c: E2 17 00 B8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9A [21: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 [21:04:26]wFMCommunicate OK [21:04:26]requested_item fd.num is exist - process it [21:04:26]SAM_PROTO_GetFieldsCounters [21:04:26]wFMCommunicate request_size=4 [21:04:26]MH_SAM_APDU [21:04:26]CAPDU: 80 13 00 00 [21:04:26]Write to MH i2c: E2 08 00 B9 12 80 13 00 00 00 00 00 00 47 [21:04:26]Write i2c OK [21:04:26]MH_I2C_Read... [21:04:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:26]Read from MH i2c: E2 [21:04:26]MH_I2C_Read... [21:04:26]Read from MH i2c: E2 62 00 [21:04:26]MH_I2C_Read... [21:04:26]Read from MH i2c: E2 62 00 B9 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 9C 08 01 00 0E 04 04 00 66 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 38 [21:04: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 9C 08 01 00 0E 04 04 00 66 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 [21:04:26]wFMCommunicate OK [21:04:26]SAM_PROTO_GetFieldsCounters done [21:04:26]requested_item shift.num is exist - process it [21:04:26]requested_item shift.opened is exist - process it [21:04:26]req_shift_opened [21:04:26]FM_GetShiftState [21:04:26]SAM_PROTO_GetShiftState [21:04:26]wFMCommunicate request_size=4 [21:04:26]MH_SAM_APDU [21:04:26]CAPDU: 80 13 01 00 [21:04:26]Write to MH i2c: E2 08 00 BA 12 80 13 01 00 00 00 00 00 49 [21:04:26]Write i2c OK [21:04:26]MH_I2C_Read... [21:04:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:26]Read from MH i2c: E2 [21:04:26]MH_I2C_Read... [21:04:26]Read from MH i2c: E2 0E 00 [21:04:26]MH_I2C_Read... [21:04:26]Read from MH i2c: E2 0E 00 BA 12 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CF [21:04:26]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [21:04:26]wFMCommunicate OK [21:04:26]SAM_PROTO_GetShiftState done [21:04:26]FM_GetShiftState done [21:04:26]req_shift_opened done [21:04:26]requested_item shift.open_date is exist - process it [21:04:26]req_shift_open_date [21:04:26]req_shift_open_date done [21:04:26]produce_requested_data done [21:04:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67740,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [21:04:26]process_action_free close_receipt [21:04:26]json_value_free [21:04:26]json_value_free done [21:04:26]process_json_proto returns [21:04:26]Send response to host [21:04:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67740,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [21:04:26]free response buf [21:04:26]execute_script done [21:04:26]execute_script returns [21:04:26]free content buf [21:04:26]Sock 9.Close socket [21:04:26]Sock 9.Thread stoped [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:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:34]accept exits with 7 [21:07:34]New connection [21:07:34]New thread 3066752356 created [21:07:34]Thread 3066608996 joined [21:07:34]Waiting for new connection... [21:07:34] Sock 7.Parse request [21:07:34]Sock 7.Check first char [21:07:34]Sock 7.First char is OK [21:07:34]request: POST /json_proto HTTP/1.0 [21:07:34]Method: POST [21:07:34]URL: /json_proto [21:07:34]Method is POST - this is cgi request [21:07:34]url: /json_proto [21:07:34]query_string will be loaded in cgi processing [21:07:34]execute_cgi json_proto POST (null) [21:07:34]execute_cgi path=json_proto method=POST [21:07:34]POST find Content-Length [21:07:34]Host: 172.17.41.195:8080 [21:07:34]Content-Length: 803 [21:07:34]Content-Type: application/json [21:07:34] [21:07:34]POST finish read [21:07:34]Found Content-Length = 803 [21:07:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507896", "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" : 35.840, "sum" : 2394.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2394.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:34]execute_script... [21: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)507896", "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" : 35.840, "sum" : 2394.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2394.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:07:34]POST & json_proto [21:07:34]process_json_proto [21:07:34]json parsed OK: [21:07:34]protocol is kg_v1.0 [21:07:34]action value=close_receipt [21:07:34]process_action close_receipt [21:07:34]cmd_close_receipt [21:07:34]MH_GetDate [21:07:34]Write to MH i2c: F0 00 00 BB 12 BC [21:07:34]Write i2c OK [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: F0 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: F0 09 00 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: F0 09 00 BB 12 00 18 C7 47 66 FC 21 6F 64 41 [21:07:34]GetLastDocTimeStamp 1715979862 [21:07:34]current date 1715980056 [21:07:34]FM_GetShiftState [21:07:34]SAM_PROTO_GetShiftState [21:07:34]wFMCommunicate request_size=4 [21:07:34]MH_SAM_APDU [21:07:34]CAPDU: 80 13 01 00 [21:07:34]Write to MH i2c: E2 08 00 BC 12 80 13 01 00 00 00 00 00 4B [21:07:34]Write i2c OK [21:07:34]MH_I2C_Read... [21:07:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:34]Read from MH i2c: E2 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: E2 0E 00 [21:07:34]MH_I2C_Read... [21:07:34]Read from MH i2c: E2 0E 00 BC 12 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 D1 [21:07:34]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [21:07:34]wFMCommunicate OK [21:07:34]SAM_PROTO_GetShiftState done [21:07:34]FM_GetShiftState done [21:07:34]opened in 1715905068 [21:07:34]opened+sec_in_day 1715991468 [21:07:34]quantity*price = 239411 [21:07:34]sum+1 = 239412 [21:07:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2394.11 НСП 1% : 21.19 НДС 12% : 254.24 Наличными: 0.00 Безнал.: 2394.11 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 150 17.05.2024 21:07 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67741 ФПД: 147730807829433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T210736&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67741&fm=147730807829433&tin=02508201610067®Number=0000000000091845&sum=239411 [21:07:35]StoreToDocumentArchive [21:07:35]shift 358 fd 67741 [21:07:35]save to /storage/0358/doc_00067741 [21:07:35]save last doc name /storage/0358/doc_00067741 to /storage/kkm_last_doc_name [21:07:35]save OK [21:07:35]Clear old archive folders... [21:07:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:07:35]tlvbuf is B6E77970 [21:07:35]SAM_PROTO_ClearQueue [21:07:35]wFMCommunicate request_size=4 [21:07:35]MH_SAM_APDU [21:07:35]CAPDU: 80 09 00 00 [21:07:35]Write to MH i2c: E2 08 00 C9 12 80 09 00 00 00 00 00 00 4D [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:07:35]Read from MH i2c: E2 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 03 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 03 00 C9 12 00 90 00 4F [21:07:35]RAPDU: 90 00 [21:07:35]wFMCommunicate OK [21:07:35]SAM_PROTO_ClearQueue done [21:07:35]KKMCreateOFDPacket [21:07:35]OFDProtocolAddRootSTLVToBuf [21:07:35]FM_MakeSignedData [21:07:35]FM_MakeSignedData [21:07:35]SAM_PROTO_SignData [21:07:35]wFMCommunicate request_size=4 [21:07:35]MH_SAM_APDU [21:07:35]CAPDU: 80 0D 01 02 [21:07:35]Write to MH i2c: E2 08 00 CA 12 80 0D 01 02 00 00 00 00 55 [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:07:35]Read from MH i2c: E2 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 03 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 03 00 CA 12 00 90 00 50 [21:07:35]RAPDU: 90 00 [21:07:35]wFMCommunicate OK [21:07:35]wFMCommunicate request_size=255 [21:07:35]MH_SAM_APDU [21:07: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 00 8C 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 33 A7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 A7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 A7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 18 C7 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 86 [21:07:35]Write to MH i2c: E2 02 01 CB 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 00 8C 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 33 A7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 A7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 A7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 18 C7 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 86 00 00 70 [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:35]Read from MH i2c: E2 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 03 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 03 00 CB 12 00 90 00 51 [21:07:35]RAPDU: 90 00 [21:07:35]wFMCommunicate OK [21:07:35]wFMCommunicate request_size=10 [21:07:35]MH_SAM_APDU [21:07:35]CAPDU: 80 0D 02 02 05 5C 42 52 B3 B9 [21:07:35]Write to MH i2c: E2 0D 00 CC 12 80 0D 02 02 05 00 5C 42 52 B3 B9 00 00 BE [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:07:35]Read from MH i2c: E2 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 03 00 [21:07:35]MH_I2C_Read... [21:07:35]Read from MH i2c: E2 03 00 CC 12 00 90 00 52 [21:07:35]RAPDU: 90 00 [21:07:35]wFMCommunicate OK [21:07:35]wFMCommunicate request_size=4 [21:07:35]MH_SAM_APDU [21:07:35]CAPDU: 80 0D 03 02 [21:07:35]Write to MH i2c: E2 08 00 CD 12 80 0D 03 02 00 00 00 00 5A [21:07:35]Write i2c OK [21:07:35]MH_I2C_Read... [21:07:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:07:36]Read from MH i2c: E2 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: E2 0B 00 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: E2 0B 00 CD 12 00 33 FA 6C F6 73 37 FC 34 90 00 C4 [21:07:36]RAPDU: 33 FA 6C F6 73 37 FC 34 90 00 [21:07:36]wFMCommunicate OK [21:07:36]SAM_PROTO_SignData done [21:07:36]FM_MakeSignedData done [21:07:36]CreateOFDProtocolMessage [21:07:36]wFMCommunicate request_size=4 [21:07:36]MH_SAM_APDU [21:07:36]CAPDU: 80 11 00 00 [21:07:36]Write to MH i2c: E2 08 00 CE 12 80 11 00 00 00 00 00 00 5A [21:07:36]Write i2c OK [21:07:36]MH_I2C_Read... [21:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:36]Read from MH i2c: E2 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: E2 17 00 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: E2 17 00 CE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B0 [21: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 [21:07:36]wFMCommunicate OK [21:07:36]CreateOFDProtocolMessage done [21:07:36]OFDSenderStorePacket 67741 [21:07:36]StoreOFDPacket docnum=67741 [21: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 00 CB 07 01 40 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 8C 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 33 A7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 A7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 A7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 18 C7 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 86 5C 42 52 B3 B9 33 FA 6C F6 73 37 FC 34 [21:07:36]CheckFolder [21:07:36]dirname=/storage/ofd_packets [21:07:36]CheckFolder done [21:07:36]ProducePacketName [21:07:36]name=ofd_packets/00067741 [21:07:36]NVStorageSaveData ofd_packets/00067741 [21:07:36]File name is /storage/ofd_packets/00067741 [21:07:36]Write 301 bytes [21:07:36]NVStorageSaveData done [21:07:36]OFDSenderStorePacket done [21:07:36]KKMCreateOFDPacket done [21:07:36]NVStorageSaveData kkm_last_timestamp [21:07:36]File name is /storage/kkm_last_timestamp [21:07:36]Write 4 bytes [21:07:36]NVStorageSaveData done [21:07:36]ExternCall_PrintAddStr [21:07:36]wPrintStart [21:07:36]Write to MH i2c: 01 00 00 CF 12 E1 [21:07:36]Write i2c OK [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: 01 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: 01 07 00 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: 01 07 00 CF 12 00 00 00 00 00 FF 0F F6 [21:07:36]RasterBufferAndPrint [21:07:36]line Счет N : (1)507896 [21:07:36]line ИНН: 02508201610067 [21:07:36]line Контрольно-Кассовый Чек [21:07:36]line ПРОДАЖА [21:07:36]line ТРК (МРК, ГНК) : 13 [21:07:36]line Товар: 2710124130 [21:07:36]line Аи-92-К-5 [21:07:36]line 35.840 * 66.80 [21:07:36]line = 2394.11 [21:07:36]line НДС 12% НСП 1% [21:07:36]line > о реализуемом товаре [21:07:36]line ИТОГО: 2394.11 [21:07:36]line НСП 1% : 21.19 [21:07:36]line НДС 12% : 254.24 [21:07:36]line Наличными: 0.00 [21:07:36]line Безнал.: 2394.11 [21:07:36]line Место: АЗС № 91 "Партнер Нефть" [21:07:36]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:07:36]line СНО: Общий режим [21:07:36]line Чек 150 17.05.2024 21:07 [21:07:36]line Смена: 358 ФФД: 1.0 [21:07:36]line ЗНМ: 0300000119 [21:07:36]line РНМ: 0000000000091845 [21:07:36]line Версия ККМ: 001 [21:07:36]line Платежная система: O! деньги [21:07:36]line ФМ: 0000000000871829 [21:07:36]line ФД: 67741 [21:07:36]line ФПД: 147730807829433 [21:07:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T210736&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67741&fm=147730807829433&tin=02508201610067®Number=0000000000091845&sum=239411 [21:07:36]written 0, free lines is 4095 [21:07:36]OFD Sender: Processing packet 67741 [packets to send 35, broken 34] [21:07:36]ProducePacketName [21:07:36]name=ofd_packets/00067741 [21:07:36]OFD Sender: To server: pG, [21:07:36]CommunicateWithHost lk.salyk.kg:30040 [21:07:36]ConnectInit lk.salyk.kg [21:07:36]Connected sock=10 [21: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 00 CB 07 01 40 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 8C 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 33 A7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 A7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 A7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 18 C7 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 86 5C 42 52 B3 B9 33 FA 6C F6 73 37 FC 34 [21:07:36]Write to MH i2c: 01 00 00 F8 12 0A [21:07:36]Write i2c OK [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: 01 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: 01 07 00 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: 01 07 00 F8 12 00 00 00 00 00 EE 0C 0B [21:07:36]RasterBufferAndPrint [21:07:36]line [21:07:36]line [21:07:36]line [21:07:36]line [21:07:36]line [21:07:36]written 0, free lines is 3316 [21:07:36]MH_Cut [21:07:36]Write to MH i2c: D1 01 00 FF 12 01 E3 [21:07:36]Write i2c OK [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: D1 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: D1 01 00 [21:07:36]MH_I2C_Read... [21:07:36]Read from MH i2c: D1 01 00 FF 12 00 E2 [21:07:36]Write to MH i2c: 01 00 00 00 13 13 [21:07:36]Write i2c OK [21:07:36]MH_I2C_Read... [21:07: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 EE C1 47 00 11 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 9D 08 01 00 F4 03 04 00 EF 6E 47 66 B6 04 01 00 00 9B 10 C8 EC D0 CD 40 58 [21:07:36]CommunicateWithHost err = 0 [21:07:36]CheckOFDResponse [21:07:36]1017 (14) - 77093643461234 [21:07:36]1041 (16) - 0000000000871829 [21:07:36]1040 (4) - 67741 [21:07:36]1012 (4) - 17.05.2024 14:51 [21:07:36]1206 (1) - 0 [21:07:36]OFD Sender: Remove packet 67741 [21:07:36]ProducePacketName [21:07:36]name=ofd_packets/00067741 [21:07:36]NVStorageDeleteData [21:07:37]OFD Sender: No OFD packet to send [21:07:37]*** Cut start [21:07:37]*** Purtial cut [21:07:37]*** Stage 1: CUTSNS_PIN = 1 [21:07:37]Read from MH i2c: 01 [21:07:37]MH_I2C_Read... [21:07:37]*** Stop cut motor [21:07:37]*** Cut end [21:07:37]Read from MH i2c: 01 07 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: 01 07 00 00 13 00 00 00 00 00 FF 0F 28 [21:07:37]process_action close_receipt done [21:07:37]requested_data is exist [21:07:37]produce_requested_data [21:07:37]requested_item fm.sn is exist - process it [21:07:37]wFMCommunicate request_size=4 [21:07:37]MH_SAM_APDU [21:07:37]CAPDU: 80 11 00 00 [21:07:37]Write to MH i2c: E2 08 00 01 13 80 11 00 00 00 00 00 00 8E [21:07:37]Write i2c OK [21:07:37]MH_I2C_Read... [21:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:37]Read from MH i2c: E2 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 17 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 17 00 01 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E4 [21:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:07:37]wFMCommunicate OK [21:07:37]requested_item fd.num is exist - process it [21:07:37]SAM_PROTO_GetFieldsCounters [21:07:37]wFMCommunicate request_size=4 [21:07:37]MH_SAM_APDU [21:07:37]CAPDU: 80 13 00 00 [21:07:37]Write to MH i2c: E2 08 00 02 13 80 13 00 00 00 00 00 00 91 [21:07:37]Write i2c OK [21:07:37]MH_I2C_Read... [21:07:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:37]Read from MH i2c: E2 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 62 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 62 00 02 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 9D 08 01 00 0E 04 04 00 66 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 86 [21:07:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9D 08 01 00 0E 04 04 00 66 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 [21:07:37]wFMCommunicate OK [21:07:37]SAM_PROTO_GetFieldsCounters done [21:07:37]requested_item shift.num is exist - process it [21:07:37]requested_item shift.opened is exist - process it [21:07:37]req_shift_opened [21:07:37]FM_GetShiftState [21:07:37]SAM_PROTO_GetShiftState [21:07:37]wFMCommunicate request_size=4 [21:07:37]MH_SAM_APDU [21:07:37]CAPDU: 80 13 01 00 [21:07:37]Write to MH i2c: E2 08 00 03 13 80 13 01 00 00 00 00 00 93 [21:07:37]Write i2c OK [21:07:37]MH_I2C_Read... [21:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:37]Read from MH i2c: E2 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 0E 00 [21:07:37]MH_I2C_Read... [21:07:37]Read from MH i2c: E2 0E 00 03 13 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 19 [21:07:37]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [21:07:37]wFMCommunicate OK [21:07:37]SAM_PROTO_GetShiftState done [21:07:37]FM_GetShiftState done [21:07:37]req_shift_opened done [21:07:37]requested_item shift.open_date is exist - process it [21:07:37]req_shift_open_date [21:07:37]req_shift_open_date done [21:07:37]produce_requested_data done [21:07:37]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67741,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [21:07:37]process_action_free close_receipt [21:07:37]json_value_free [21:07:37]json_value_free done [21:07:37]process_json_proto returns [21:07:37]Send response to host [21:07:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67741,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [21:07:37]free response buf [21:07:37]execute_script done [21:07:37]execute_script returns [21:07:37]free content buf [21:07:37]Sock 7.Close socket [21:07:37]Sock 7.Thread stoped [21:07:42]OFD Sender: No OFD packet to send [21:07:47]OFD Sender: No OFD packet to send [21:07:52]OFD Sender: No OFD packet to send [21:07:57]OFD Sender: No OFD packet to send [21:08:02]OFD Sender: No OFD packet to send [21:08:07]OFD Sender: No OFD packet to send [21:08:12]OFD Sender: No OFD packet to send [21:08:17]OFD Sender: No OFD packet to send [21:08:22]OFD Sender: No OFD packet to send [21:08:27]OFD Sender: No OFD packet to send [21:08:32]OFD Sender: No OFD packet to send [21:08:37]OFD Sender: No OFD packet to send [21:08:42]OFD Sender: No OFD packet to send [21:08:47]OFD Sender: No OFD packet to send [21:08:52]OFD Sender: No OFD packet to send [21:08:57]OFD Sender: No OFD packet to send [21:09:02]OFD Sender: No OFD packet to send [21:09:07]OFD Sender: No OFD packet to send [21:09:12]OFD Sender: No OFD packet to send [21:09:17]OFD Sender: No OFD packet to send [21:09:22]OFD Sender: No OFD packet to send [21:09:27]OFD Sender: No OFD packet to send [21:09:32]OFD Sender: No OFD packet to send [21:09:37]OFD Sender: No OFD packet to send [21:09:42]OFD Sender: No OFD packet to send [21:09:47]OFD Sender: No OFD packet to send [21:09:52]OFD Sender: No OFD packet to send [21:09:57]OFD Sender: No OFD packet to send [21:10:02]OFD Sender: No OFD packet to send [21:10:07]OFD Sender: No OFD packet to send [21:10:12]OFD Sender: No OFD packet to send [21:10:17]OFD Sender: No OFD packet to send [21:10:22]OFD Sender: No OFD packet to send [21:10:27]OFD Sender: No OFD packet to send [21:10:32]OFD Sender: No OFD packet to send [21:10:37]OFD Sender: No OFD packet to send [21:10:42]OFD Sender: No OFD packet to send [21:10:47]OFD Sender: No OFD packet to send [21:10:52]OFD Sender: No OFD packet to send [21:10:57]OFD Sender: No OFD packet to send [21:11:02]OFD Sender: No OFD packet to send [21:11:07]OFD Sender: No OFD packet to send [21:11:12]OFD Sender: No OFD packet to send [21:11:17]OFD Sender: No OFD packet to send [21:11:22]OFD Sender: No OFD packet to send [21:11:27]OFD Sender: No OFD packet to send [21:11:32]OFD Sender: No OFD packet to send [21:11:37]OFD Sender: No OFD packet to send [21:11:42]OFD Sender: No OFD packet to send [21:11:47]OFD Sender: No OFD packet to send [21:11:52]OFD Sender: No OFD packet to send [21:11:57]OFD Sender: No OFD packet to send [21:12:02]OFD Sender: No OFD packet to send [21:12:07]OFD Sender: No OFD packet to send [21:12:12]OFD Sender: No OFD packet to send [21:12:17]OFD Sender: No OFD packet to send [21:12:22]OFD Sender: No OFD packet to send [21:12:27]OFD Sender: No OFD packet to send [21:12:32]OFD Sender: No OFD packet to send [21:12:37]OFD Sender: No OFD packet to send [21:12:42]OFD Sender: No OFD packet to send [21:12:47]OFD Sender: No OFD packet to send [21:12:52]OFD Sender: No OFD packet to send [21:12:57]OFD Sender: No OFD packet to send [21:13:02]OFD Sender: No OFD packet to send [21:13:07]OFD Sender: No OFD packet to send [21:13:12]OFD Sender: No OFD packet to send [21:13:17]OFD Sender: No OFD packet to send [21:13:22]OFD Sender: No OFD packet to send [21:13:27]OFD Sender: No OFD packet to send [21:13:32]OFD Sender: No OFD packet to send [21:13:37]OFD Sender: No OFD packet to send [21:13:42]OFD Sender: No OFD packet to send [21:13:47]OFD Sender: No OFD packet to send [21:13:52]OFD Sender: No OFD packet to send [21:13:57]OFD Sender: No OFD packet to send [21:14:02]OFD Sender: No OFD packet to send [21:14:07]OFD Sender: No OFD packet to send [21:14:12]OFD Sender: No OFD packet to send [21:14:17]OFD Sender: No OFD packet to send [21:14:22]OFD Sender: No OFD packet to send [21:14:27]OFD Sender: No OFD packet to send [21:14:32]OFD Sender: No OFD packet to send [21:14:37]OFD Sender: No OFD packet to send [21:14:42]OFD Sender: No OFD packet to send [21:14:47]OFD Sender: No OFD packet to send [21:14:50]accept exits with 9 [21:14:50]New connection [21:14:50]New thread 3066608996 created [21:14:50]Thread 3066752356 joined [21:14:50]Waiting for new connection... [21:14:50] Sock 9.Parse request [21:14:50]Sock 9.Check first char [21:14:50]Sock 9.First char is OK [21:14:50]request: POST /json_proto HTTP/1.0 [21:14:50]Method: POST [21:14:50]URL: /json_proto [21:14:50]Method is POST - this is cgi request [21:14:50]url: /json_proto [21:14:50]query_string will be loaded in cgi processing [21:14:50]execute_cgi json_proto POST (null) [21:14:50]execute_cgi path=json_proto method=POST [21:14:50]POST find Content-Length [21:14:50]Host: 172.17.41.195:8080 [21:14:50]Content-Length: 677 [21:14:50]Content-Type: application/json [21:14:50] [21:14:50]POST finish read [21:14:50]Found Content-Length = 677 [21:14:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507897", "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" ] } } [21:14:50]execute_script... [21:14: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)507897", "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" ] } } [21:14:50]POST & json_proto [21:14:50]process_json_proto [21:14:50]json parsed OK: [21:14:50]protocol is kg_v1.0 [21:14:50]action value=close_receipt [21:14:50]process_action close_receipt [21:14:50]cmd_close_receipt [21:14:50]MH_GetDate [21:14:50]Write to MH i2c: F0 00 00 04 13 06 [21:14:50]Write i2c OK [21:14:50]MH_I2C_Read... [21:14:50]Read from MH i2c: F0 [21:14:50]MH_I2C_Read... [21:14:50]Read from MH i2c: F0 09 00 [21:14:50]MH_I2C_Read... [21:14:50]Read from MH i2c: F0 09 00 04 13 00 CC C8 47 66 FC 21 6F 64 40 [21:14:50]GetLastDocTimeStamp 1715980056 [21:14:50]current date 1715980492 [21:14:50]FM_GetShiftState [21:14:50]SAM_PROTO_GetShiftState [21:14:50]wFMCommunicate request_size=4 [21:14:50]MH_SAM_APDU [21:14:50]CAPDU: 80 13 01 00 [21:14:50]Write to MH i2c: E2 08 00 05 13 80 13 01 00 00 00 00 00 95 [21:14:50]Write i2c OK [21:14:50]MH_I2C_Read... [21:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:50]Read from MH i2c: E2 [21:14:50]MH_I2C_Read... [21:14:50]Read from MH i2c: E2 0E 00 [21:14:50]MH_I2C_Read... [21:14:50]Read from MH i2c: E2 0E 00 05 13 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 1B [21:14:50]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [21:14:50]wFMCommunicate OK [21:14:50]SAM_PROTO_GetShiftState done [21:14:50]FM_GetShiftState done [21:14:50]opened in 1715905068 [21:14:50]opened+sec_in_day 1715991468 [21:14:50]quantity*price = 50033 [21:14:50]sum+1 = 50034 [21:14:50]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 СНО: Общий режим Чек 151 17.05.2024 21:14 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67742 ФПД: 29842084894117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T211452&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67742&fm=29842084894117&tin=02508201610067®Number=0000000000091845&sum=50000 [21:14:51]StoreToDocumentArchive [21:14:51]shift 358 fd 67742 [21:14:51]save to /storage/0358/doc_00067742 [21:14:51]save last doc name /storage/0358/doc_00067742 to /storage/kkm_last_doc_name [21:14:51]save OK [21:14:51]Clear old archive folders... [21:14:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:14:51]tlvbuf is 01B26BF0 [21:14:51]SAM_PROTO_ClearQueue [21:14:51]wFMCommunicate request_size=4 [21:14:51]MH_SAM_APDU [21:14:51]CAPDU: 80 09 00 00 [21:14:51]Write to MH i2c: E2 08 00 12 13 80 09 00 00 00 00 00 00 97 [21:14:51]Write i2c OK [21:14:51]MH_I2C_Read... [21:14:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:14:51]Read from MH i2c: E2 [21:14:51]MH_I2C_Read... [21:14:51]Read from MH i2c: E2 03 00 [21:14:51]MH_I2C_Read... [21:14:51]Read from MH i2c: E2 03 00 12 13 00 90 00 99 [21:14:51]RAPDU: 90 00 [21:14:51]wFMCommunicate OK [21:14:51]SAM_PROTO_ClearQueue done [21:14:51]KKMCreateOFDPacket [21:14:51]OFDProtocolAddRootSTLVToBuf [21:14:51]FM_MakeSignedData [21:14:51]FM_MakeSignedData [21:14:51]SAM_PROTO_SignData [21:14:51]wFMCommunicate request_size=4 [21:14:51]MH_SAM_APDU [21:14:51]CAPDU: 80 0D 01 02 [21:14:51]Write to MH i2c: E2 08 00 13 13 80 0D 01 02 00 00 00 00 9F [21:14:51]Write i2c OK [21:14:51]MH_I2C_Read... [21:14:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:14:51]Read from MH i2c: E2 [21:14:51]MH_I2C_Read... [21:14:51]Read from MH i2c: E2 03 00 [21:14:51]MH_I2C_Read... [21:14:51]Read from MH i2c: E2 03 00 13 13 00 90 00 9A [21:14:51]RAPDU: 90 00 [21:14:51]wFMCommunicate OK [21:14:51]wFMCommunicate request_size=255 [21:14:51]MH_SAM_APDU [21:14:51]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 97 00 00 00 F4 03 04 00 CC C8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 1B [21:14:51]Write to MH i2c: E2 02 01 14 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 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 97 00 00 00 F4 03 04 00 CC C8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 1B 00 00 2B [21:14:51]Write i2c OK [21:14:51]MH_I2C_Read... [21:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:51]Read from MH i2c: E2 [21:14:51]MH_I2C_Read... [21:14:51]Read from MH i2c: E2 03 00 [21:14:51]MH_I2C_Read... [21:14:51]Read from MH i2c: E2 03 00 14 13 00 90 00 9B [21:14:51]RAPDU: 90 00 [21:14:51]wFMCommunicate OK [21:14:51]wFMCommunicate request_size=10 [21:14:51]MH_SAM_APDU [21:14:51]CAPDU: 80 0D 02 02 05 24 26 DE 95 A5 [21:14:51]Write to MH i2c: E2 0D 00 15 13 80 0D 02 02 05 00 24 26 DE 95 A5 00 00 0E [21:14:51]Write i2c OK [21:14:51]MH_I2C_Read... [21:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:51]Read from MH i2c: E2 [21:14:51]MH_I2C_Read... [21:14:51]Read from MH i2c: E2 03 00 [21:14:51]MH_I2C_Read... [21:14:51]Read from MH i2c: E2 03 00 15 13 00 90 00 9C [21:14:51]RAPDU: 90 00 [21:14:51]wFMCommunicate OK [21:14:51]wFMCommunicate request_size=4 [21:14:51]MH_SAM_APDU [21:14:51]CAPDU: 80 0D 03 02 [21:14:51]Write to MH i2c: E2 08 00 16 13 80 0D 03 02 00 00 00 00 A4 [21:14:51]Write i2c OK [21:14:51]MH_I2C_Read... [21:14:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:14:51]Read from MH i2c: E2 [21:14:51]MH_I2C_Read... [21:14:51]Read from MH i2c: E2 0B 00 [21:14:51]MH_I2C_Read... [21:14:51]Read from MH i2c: E2 0B 00 16 13 00 17 A6 CC F5 18 9F D6 25 90 00 D5 [21:14:51]RAPDU: 17 A6 CC F5 18 9F D6 25 90 00 [21:14:51]wFMCommunicate OK [21:14:51]SAM_PROTO_SignData done [21:14:51]FM_MakeSignedData done [21:14:51]CreateOFDProtocolMessage [21:14:51]wFMCommunicate request_size=4 [21:14:51]MH_SAM_APDU [21:14:51]CAPDU: 80 11 00 00 [21:14:51]Write to MH i2c: E2 08 00 17 13 80 11 00 00 00 00 00 00 A4 [21:14:51]Write i2c OK [21:14:51]MH_I2C_Read... [21:14:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:51]Read from MH i2c: E2 [21:14:51]MH_I2C_Read... [21:14:51]Read from MH i2c: E2 17 00 [21:14:51]MH_I2C_Read... [21:14:51]Read from MH i2c: E2 17 00 17 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FA [21:14: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:14:51]wFMCommunicate OK [21:14:51]CreateOFDProtocolMessage done [21:14:51]OFDSenderStorePacket 67742 [21:14:51]StoreOFDPacket docnum=67742 [21:14: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 0F 01 00 00 89 E1 07 01 76 D5 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 97 00 00 00 F4 03 04 00 CC C8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 1B 24 26 DE 95 A5 17 A6 CC F5 18 9F D6 25 [21:14:51]CheckFolder [21:14:51]dirname=/storage/ofd_packets [21:14:51]CheckFolder done [21:14:51]ProducePacketName [21:14:51]name=ofd_packets/00067742 [21:14:51]NVStorageSaveData ofd_packets/00067742 [21:14:51]File name is /storage/ofd_packets/00067742 [21:14:51]Write 301 bytes [21:14:51]NVStorageSaveData done [21:14:51]OFDSenderStorePacket done [21:14:51]KKMCreateOFDPacket done [21:14:51]NVStorageSaveData kkm_last_timestamp [21:14:51]File name is /storage/kkm_last_timestamp [21:14:51]Write 4 bytes [21:14:51]NVStorageSaveData done [21:14:51]ExternCall_PrintAddStr [21:14:51]wPrintStart [21:14:51]Write to MH i2c: 01 00 00 18 13 2B [21:14:51]Write i2c OK [21:14:51]MH_I2C_Read... [21:14:51]Read from MH i2c: 01 [21:14:51]MH_I2C_Read... [21:14:51]Read from MH i2c: 01 07 00 [21:14:51]MH_I2C_Read... [21:14:51]Read from MH i2c: 01 07 00 18 13 00 00 00 00 00 FF 0F 40 [21:14:51]RasterBufferAndPrint [21:14:51]line Счет N : (1)507897 [21:14:51]line ИНН: 02508201610067 [21:14:51]line Контрольно-Кассовый Чек [21:14:51]line ПРОДАЖА [21:14:51]line ТРК (МРК, ГНК) : 33 [21:14:51]line Товар: 2710124130 [21:14:51]line Аи-92-К-5 [21:14:51]line 7.490 * 66.80 [21:14:51]line = 500.33 [21:14:51]line НДС 12% НСП 1% [21:14:51]line > о реализуемом товаре [21:14:51]line ОКРУГЛЕНИЕ: -0.33 [21:14:51]line ИТОГО: 500.00 [21:14:51]line Внесено: 500.00 [21:14:51]line СДАЧА: 0.00 [21:14:51]line НСП 1% : 4.43 [21:14:51]line НДС 12% : 53.13 [21:14:51]line Наличными: 500.00 [21:14:51]line Безнал.: 0.00 [21:14:51]line Место: АЗС № 91 "Партнер Нефть" [21:14:51]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:14:51]line СНО: Общий режим [21:14:51]line Чек 151 17.05.2024 21:14 [21:14:51]line Смена: 358 ФФД: 1.0 [21:14:51]line ЗНМ: 0300000119 [21:14:51]line РНМ: 0000000000091845 [21:14:51]line Версия ККМ: 001 [21:14:51]line ФМ: 0000000000871829 [21:14:51]line ФД: 67742 [21:14:51]line ФПД: 29842084894117 [21:14:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T211452&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67742&fm=29842084894117&tin=02508201610067®Number=0000000000091845&sum=50000 [21:14:52]OFD Sender: Processing packet 67742 [packets to send 35, broken 34] [21:14:52]ProducePacketName [21:14:52]name=ofd_packets/00067742 [21:14:52]OFD Sender: To server: pG, [21:14:52]CommunicateWithHost lk.salyk.kg:30040 [21:14:52]ConnectInit lk.salyk.kg [21:14:52]written 0, free lines is 4095 [21:14:52]Connected sock=10 [21:14: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 0F 01 00 00 89 E1 07 01 76 D5 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 97 00 00 00 F4 03 04 00 CC C8 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 1B 24 26 DE 95 A5 17 A6 CC F5 18 9F D6 25 [21:14: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 7F 36 47 00 E8 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 9E 08 01 00 F4 03 04 00 A3 70 47 66 B6 04 01 00 00 E6 2D 52 21 12 DD 10 83 [21:14:52]CommunicateWithHost err = 0 [21:14:52]CheckOFDResponse [21:14:52]1017 (14) - 77093643461234 [21:14:52]1041 (16) - 0000000000871829 [21:14:52]1040 (4) - 67742 [21:14:52]1012 (4) - 17.05.2024 14:58 [21:14:52]1206 (1) - 0 [21:14:52]OFD Sender: Remove packet 67742 [21:14:52]ProducePacketName [21:14:52]name=ofd_packets/00067742 [21:14:52]NVStorageDeleteData [21:14:52]Write to MH i2c: 01 00 00 42 13 55 [21:14:52]Write i2c OK [21:14:52]MH_I2C_Read... [21:14:52]Read from MH i2c: 01 [21:14:52]MH_I2C_Read... [21:14:52]Read from MH i2c: 01 07 00 [21:14:52]MH_I2C_Read... [21:14:52]Read from MH i2c: 01 07 00 42 13 00 00 00 00 00 DD 0C 45 [21:14:52]RasterBufferAndPrint [21:14:52]line [21:14:52]line [21:14:52]line [21:14:52]line [21:14:52]line [21:14:52]written 0, free lines is 3298 [21:14:52]MH_Cut [21:14:52]Write to MH i2c: D1 01 00 49 13 01 2E [21:14:52]Write i2c OK [21:14:52]MH_I2C_Read... [21:14:52]Read from MH i2c: D1 [21:14:52]MH_I2C_Read... [21:14:52]Read from MH i2c: D1 01 00 [21:14:52]MH_I2C_Read... [21:14:52]Read from MH i2c: D1 01 00 49 13 00 2D [21:14:52]Write to MH i2c: 01 00 00 4A 13 5D [21:14:52]Write i2c OK [21:14:52]MH_I2C_Read... [21:14:52]OFD Sender: No OFD packet to send [21:14:53]*** Cut start [21:14:53]*** Purtial cut [21:14:53]*** CUTSNS_PIN = 0 [21:14:53]*** Stage 1: CUTSNS_PIN = 1 [21:14:55]Read from MH i2c: 01 [21:14:55]MH_I2C_Read... [21:14:55]*** Stop cut motor [21:14:55]*** Cut end [21:14:55]Read from MH i2c: 01 07 00 [21:14:55]MH_I2C_Read... [21:14:55]Read from MH i2c: 01 07 00 4A 13 00 00 00 00 00 FF 0F 72 [21:14:55]process_action close_receipt done [21:14:55]requested_data is exist [21:14:55]produce_requested_data [21:14:55]requested_item fm.sn is exist - process it [21:14:55]wFMCommunicate request_size=4 [21:14:55]MH_SAM_APDU [21:14:55]CAPDU: 80 11 00 00 [21:14:55]Write to MH i2c: E2 08 00 4B 13 80 11 00 00 00 00 00 00 D8 [21:14:55]Write i2c OK [21:14:55]MH_I2C_Read... [21:14:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:55]Read from MH i2c: E2 [21:14:55]MH_I2C_Read... [21:14:55]Read from MH i2c: E2 17 00 [21:14:55]MH_I2C_Read... [21:14:55]Read from MH i2c: E2 17 00 4B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2E [21:14: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:14:55]wFMCommunicate OK [21:14:55]requested_item fd.num is exist - process it [21:14:55]SAM_PROTO_GetFieldsCounters [21:14:55]wFMCommunicate request_size=4 [21:14:55]MH_SAM_APDU [21:14:55]CAPDU: 80 13 00 00 [21:14:55]Write to MH i2c: E2 08 00 4C 13 80 13 00 00 00 00 00 00 DB [21:14:55]Write i2c OK [21:14:55]MH_I2C_Read... [21:14:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:55]Read from MH i2c: E2 [21:14:55]MH_I2C_Read... [21:14:55]Read from MH i2c: E2 62 00 [21:14:55]MH_I2C_Read... [21:14:55]Read from MH i2c: E2 62 00 4C 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 9E 08 01 00 0E 04 04 00 66 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 D4 [21:14: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 9E 08 01 00 0E 04 04 00 66 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 [21:14:55]wFMCommunicate OK [21:14:55]SAM_PROTO_GetFieldsCounters done [21:14:55]requested_item shift.num is exist - process it [21:14:55]requested_item shift.opened is exist - process it [21:14:55]req_shift_opened [21:14:55]FM_GetShiftState [21:14:55]SAM_PROTO_GetShiftState [21:14:55]wFMCommunicate request_size=4 [21:14:55]MH_SAM_APDU [21:14:55]CAPDU: 80 13 01 00 [21:14:55]Write to MH i2c: E2 08 00 4D 13 80 13 01 00 00 00 00 00 DD [21:14:55]Write i2c OK [21:14:55]MH_I2C_Read... [21:14:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:55]Read from MH i2c: E2 [21:14:55]MH_I2C_Read... [21:14:55]Read from MH i2c: E2 0E 00 [21:14:55]MH_I2C_Read... [21:14:55]Read from MH i2c: E2 0E 00 4D 13 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 63 [21:14:55]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [21:14:55]wFMCommunicate OK [21:14:55]SAM_PROTO_GetShiftState done [21:14:55]FM_GetShiftState done [21:14:55]req_shift_opened done [21:14:55]requested_item shift.open_date is exist - process it [21:14:55]req_shift_open_date [21:14:55]req_shift_open_date done [21:14:55]produce_requested_data done [21:14:55]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67742,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [21:14:55]process_action_free close_receipt [21:14:55]json_value_free [21:14:55]json_value_free done [21:14:55]process_json_proto returns [21:14:55]Send response to host [21:14:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67742,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [21:14:55]free response buf [21:14:55]execute_script done [21:14:55]execute_script returns [21:14:55]free content buf [21:14:55]Sock 9.Close socket [21:14:55]Sock 9.Thread stoped [21:14:57]OFD Sender: No OFD packet to send [21:15:02]OFD Sender: No OFD packet to send [21:15:07]OFD Sender: No OFD packet to send [21:15:12]OFD Sender: No OFD packet to send [21:15:17]OFD Sender: No OFD packet to send [21:15:22]OFD Sender: No OFD packet to send [21:15:27]OFD Sender: No OFD packet to send [21:15:32]OFD Sender: No OFD packet to send [21:15:37]OFD Sender: No OFD packet to send [21:15:42]OFD Sender: No OFD packet to send [21:15:47]OFD Sender: No OFD packet to send [21:15:52]OFD Sender: No OFD packet to send [21:15:57]OFD Sender: No OFD packet to send [21:16:02]OFD Sender: No OFD packet to send [21:16:07]OFD Sender: No OFD packet to send [21:16:12]OFD Sender: No OFD packet to send [21:16:18]OFD Sender: No OFD packet to send [21:16:23]OFD Sender: No OFD packet to send [21:16:28]OFD Sender: No OFD packet to send [21:16:33]OFD Sender: No OFD packet to send [21:16:38]OFD Sender: No OFD packet to send [21:16:43]OFD Sender: No OFD packet to send [21:16:48]OFD Sender: No OFD packet to send [21:16:53]OFD Sender: No OFD packet to send [21:16:58]OFD Sender: No OFD packet to send [21:17:03]OFD Sender: No OFD packet to send [21:17:08]OFD Sender: No OFD packet to send [21:17:13]OFD Sender: No OFD packet to send [21:17:18]OFD Sender: No OFD packet to send [21:17:23]OFD Sender: No OFD packet to send [21:17:28]OFD Sender: No OFD packet to send [21:17:33]OFD Sender: No OFD packet to send [21:17:38]OFD Sender: No OFD packet to send [21:17:43]OFD Sender: No OFD packet to send [21:17:48]OFD Sender: No OFD packet to send [21:17:53]OFD Sender: No OFD packet to send [21:17:58]OFD Sender: No OFD packet to send [21:18:03]OFD Sender: No OFD packet to send [21:18:08]OFD Sender: No OFD packet to send [21:18:13]OFD Sender: No OFD packet to send [21:18:18]OFD Sender: No OFD packet to send [21:18:23]OFD Sender: No OFD packet to send [21:18:28]OFD Sender: No OFD packet to send [21:18:33]OFD Sender: No OFD packet to send [21:18:38]OFD Sender: No OFD packet to send [21:18:43]OFD Sender: No OFD packet to send [21:18:48]OFD Sender: No OFD packet to send [21:18:53]OFD Sender: No OFD packet to send [21:18:58]OFD Sender: No OFD packet to send [21:19:03]OFD Sender: No OFD packet to send [21:19:08]OFD Sender: No OFD packet to send [21:19:13]OFD Sender: No OFD packet to send [21:19:18]OFD Sender: No OFD packet to send [21:19:23]OFD Sender: No OFD packet to send [21:19:28]OFD Sender: No OFD packet to send [21:19:33]OFD Sender: No OFD packet to send [21:19:38]OFD Sender: No OFD packet to send [21:19:43]OFD Sender: No OFD packet to send [21:19:48]OFD Sender: No OFD packet to send [21:19:53]OFD Sender: No OFD packet to send [21:19:58]OFD Sender: No OFD packet to send [21:20:03]OFD Sender: No OFD packet to send [21:20:08]OFD Sender: No OFD packet to send [21:20:13]OFD Sender: No OFD packet to send [21:20:18]OFD Sender: No OFD packet to send [21:20:23]OFD Sender: No OFD packet to send [21:20:28]OFD Sender: No OFD packet to send [21:20:33]OFD Sender: No OFD packet to send [21:20:38]OFD Sender: No OFD packet to send [21:20:43]OFD Sender: No OFD packet to send [21:20:48]OFD Sender: No OFD packet to send [21:20:53]OFD Sender: No OFD packet to send [21:20:58]OFD Sender: No OFD packet to send [21:21:03]OFD Sender: No OFD packet to send [21:21:08]OFD Sender: No OFD packet to send [21:21:13]OFD Sender: No OFD packet to send [21:21:18]OFD Sender: No OFD packet to send [21:21:23]OFD Sender: No OFD packet to send [21:21:28]OFD Sender: No OFD packet to send [21:21:33]OFD Sender: No OFD packet to send [21:21:38]OFD Sender: No OFD packet to send [21:21:43]OFD Sender: No OFD packet to send [21:21:48]OFD Sender: No OFD packet to send [21:21:53]OFD Sender: No OFD packet to send [21:21:58]OFD Sender: No OFD packet to send [21:22:03]OFD Sender: No OFD packet to send [21:22:08]OFD Sender: No OFD packet to send [21:22:13]OFD Sender: No OFD packet to send [21:22:18]OFD Sender: No OFD packet to send [21:22:23]OFD Sender: No OFD packet to send [21:22:28]OFD Sender: No OFD packet to send [21:22:33]OFD Sender: No OFD packet to send [21:22:38]OFD Sender: No OFD packet to send [21:22:43]OFD Sender: No OFD packet to send [21:22:48]OFD Sender: No OFD packet to send [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:23:03]OFD Sender: No OFD packet to send [21:23:08]OFD Sender: No OFD packet to send [21:23:13]OFD Sender: No OFD packet to send [21:23:18]OFD Sender: No OFD packet to send [21:23:19]accept exits with 7 [21:23:19]New connection [21:23:19]New thread 3066752356 created [21:23:19]Thread 3066608996 joined [21:23:19]Waiting for new connection... [21:23:19] Sock 7.Parse request [21:23:19]Sock 7.Check first char [21:23:19]Sock 7.First char is OK [21:23:19]request: POST /json_proto HTTP/1.0 [21:23:19]Method: POST [21:23:19]URL: /json_proto [21:23:19]Method is POST - this is cgi request [21:23:19]url: /json_proto [21:23:19]query_string will be loaded in cgi processing [21:23:19]execute_cgi json_proto POST (null) [21:23:19]execute_cgi path=json_proto method=POST [21:23:19]POST find Content-Length [21:23:19]Host: 172.17.41.195:8080 [21:23:19]Content-Length: 1141 [21:23:19]Content-Type: application/json [21:23:19] [21:23:19]POST finish read [21:23:19]Found Content-Length = 1141 [21:23: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507898\u000A17.05.2024 21:05\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 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30093696\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:19]execute_script... [21:23: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507898\u000A17.05.2024 21:05\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 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30093696\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:19]POST & json_proto [21:23:19]process_json_proto [21:23:19]json parsed OK: [21:23:19]protocol is kg_v1.0 [21:23:19]action value=print_text [21:23:19]process_action print_text [21:23:19]cmd_print_text [21:23:19]ExternCall_PrintAddStr [21:23:19]wPrintStart [21:23:19]Write to MH i2c: 01 00 00 4E 13 61 [21:23:19]Write i2c OK [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: 01 [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: 01 07 00 [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: 01 07 00 4E 13 00 00 00 00 00 FF 0F 76 [21:23:19]RasterBufferAndPrint [21:23:19]line *****ТОВАРНЫЙ ЧЕК***** [21:23:19]line АЗС-91 [21:23:19]line Партнер нефть [21:23:19]line 02508201610067 [21:23:19]line Кассир : Адишов И. [21:23:19]line Счет N : (1)507898 [21:23:19]line 17.05.2024 21:05 [21:23:19]line ПРОДАЖА [21:23:19]line ТРК (МРК, ГНК): 41 [21:23:19]line Вид ГСМ : 2710194210 [21:23:19]line ДТ-К-5 [21:23:19]line 60.000 x 74.70 [21:23:19]line ИТОГ: 4482.00 [21:23:19]line Тип оплаты: Талоны: ТК ГПНА Online [21:23:19]line 30093696 [21:23:19]line ______________________ [21:23:19]line (подпись) [21:23:19]written 0, free lines is 4095 [21:23:19]Write to MH i2c: 01 00 00 62 13 75 [21:23:19]Write i2c OK [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: 01 [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: 01 07 00 [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: 01 07 00 62 13 00 00 00 00 00 0E 0E 98 [21:23:19]RasterBufferAndPrint [21:23:19]line [21:23:19]line [21:23:19]line [21:23:19]line [21:23:19]line [21:23:19]written 0, free lines is 3600 [21:23:19]MH_Cut [21:23:19]Write to MH i2c: D1 01 00 69 13 01 4E [21:23:19]Write i2c OK [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: D1 [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: D1 01 00 [21:23:19]MH_I2C_Read... [21:23:19]Read from MH i2c: D1 01 00 69 13 00 4D [21:23:19]Write to MH i2c: 01 00 00 6A 13 7D [21:23:19]Write i2c OK [21:23:19]MH_I2C_Read... [21:23:19]*** Cut start [21:23:19]*** Purtial cut [21:23:19]*** Stage 1: CUTSNS_PIN = 1 [21:23:20]Read from MH i2c: 01 [21:23:20]MH_I2C_Read... [21:23:20]*** Stop cut motor [21:23:20]*** Cut end [21:23:20]Read from MH i2c: 01 07 00 [21:23:20]MH_I2C_Read... [21:23:20]Read from MH i2c: 01 07 00 6A 13 00 00 00 00 00 FF 0F 92 [21:23:20]process_action print_text done [21:23:20]requested_data is exist [21:23:20]produce_requested_data [21:23:20]requested_item fm.sn is exist - process it [21:23:20]wFMCommunicate request_size=4 [21:23:20]MH_SAM_APDU [21:23:20]CAPDU: 80 11 00 00 [21:23:20]Write to MH i2c: E2 08 00 6B 13 80 11 00 00 00 00 00 00 F8 [21:23:20]Write i2c OK [21:23:20]MH_I2C_Read... [21:23:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:20]Read from MH i2c: E2 [21:23:20]MH_I2C_Read... [21:23:20]Read from MH i2c: E2 17 00 [21:23:20]MH_I2C_Read... [21:23:20]Read from MH i2c: E2 17 00 6B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4E [21:23:20]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:20]wFMCommunicate OK [21:23:20]requested_item fd.num is exist - process it [21:23:20]SAM_PROTO_GetFieldsCounters [21:23:20]wFMCommunicate request_size=4 [21:23:20]MH_SAM_APDU [21:23:20]CAPDU: 80 13 00 00 [21:23:20]Write to MH i2c: E2 08 00 6C 13 80 13 00 00 00 00 00 00 FB [21:23:20]Write i2c OK [21:23:20]MH_I2C_Read... [21:23:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:20]Read from MH i2c: E2 [21:23:20]MH_I2C_Read... [21:23:20]Read from MH i2c: E2 62 00 [21:23:20]MH_I2C_Read... [21:23:20]Read from MH i2c: E2 62 00 6C 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 9E 08 01 00 0E 04 04 00 66 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 F4 [21:23: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 9E 08 01 00 0E 04 04 00 66 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 [21:23:20]wFMCommunicate OK [21:23:20]SAM_PROTO_GetFieldsCounters done [21:23:20]requested_item shift.num is exist - process it [21:23:20]requested_item shift.opened is exist - process it [21:23:20]req_shift_opened [21:23:20]FM_GetShiftState [21:23:20]SAM_PROTO_GetShiftState [21:23:20]wFMCommunicate request_size=4 [21:23:20]MH_SAM_APDU [21:23:20]CAPDU: 80 13 01 00 [21:23:20]Write to MH i2c: E2 08 00 6D 13 80 13 01 00 00 00 00 00 FD [21:23:20]Write i2c OK [21:23:20]MH_I2C_Read... [21:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:20]Read from MH i2c: E2 [21:23:20]MH_I2C_Read... [21:23:20]Read from MH i2c: E2 0E 00 [21:23:20]MH_I2C_Read... [21:23:20]Read from MH i2c: E2 0E 00 6D 13 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 83 [21:23:20]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [21:23:20]wFMCommunicate OK [21:23:20]SAM_PROTO_GetShiftState done [21:23:20]FM_GetShiftState done [21:23:20]req_shift_opened done [21:23:20]requested_item shift.open_date is exist - process it [21:23:20]req_shift_open_date [21:23:20]req_shift_open_date done [21:23:20]produce_requested_data done [21:23:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67742,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [21:23:20]process_action_free print_text [21:23:20]json_value_free [21:23:20]json_value_free done [21:23:20]process_json_proto returns [21:23:20]Send response to host [21:23:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67742,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [21:23:20]free response buf [21:23:20]execute_script done [21:23:20]execute_script returns [21:23:20]free content buf [21:23:20]Sock 7.Close socket [21:23:20]Sock 7.Thread stoped [21:23:23]OFD Sender: No OFD packet to send [21:23:28]OFD Sender: No OFD packet to send [21:23:33]OFD Sender: No OFD packet to send [21:23:38]OFD Sender: No OFD packet to send [21:23:43]OFD Sender: No OFD packet to send [21:23:48]OFD Sender: No OFD packet to send [21:23:53]OFD Sender: No OFD packet to send [21:23:58]OFD Sender: No OFD packet to send [21:24:03]OFD Sender: No OFD packet to send [21:24:08]OFD Sender: No OFD packet to send [21:24:13]OFD Sender: No OFD packet to send [21:24:18]OFD Sender: No OFD packet to send [21:24:23]OFD Sender: No OFD packet to send [21:24:28]OFD Sender: No OFD packet to send [21:24:33]OFD Sender: No OFD packet to send [21:24:38]OFD Sender: No OFD packet to send [21:24:43]OFD Sender: No OFD packet to send [21:24:48]OFD Sender: No OFD packet to send [21:24:53]OFD Sender: No OFD packet to send [21:24:58]OFD Sender: No OFD packet to send [21:25:03]OFD Sender: No OFD packet to send [21:25:08]OFD Sender: No OFD packet to send [21:25:13]OFD Sender: No OFD packet to send [21:25:18]OFD Sender: No OFD packet to send [21:25:23]OFD Sender: No OFD packet to send [21:25:28]OFD Sender: No OFD packet to send [21:25:33]OFD Sender: No OFD packet to send [21:25:38]OFD Sender: No OFD packet to send [21:25:43]OFD Sender: No OFD packet to send [21:25:48]OFD Sender: No OFD packet to send [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:08]OFD Sender: No OFD packet to send [21:26:13]OFD Sender: No OFD packet to send [21:26:18]OFD Sender: No OFD packet to send [21:26:23]OFD Sender: No OFD packet to send [21:26:28]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:38]OFD Sender: No OFD packet to send [21:27:43]OFD Sender: No OFD packet to send [21:27:48]OFD Sender: No OFD packet to send [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]OFD Sender: No OFD packet to send [21:28:48]OFD Sender: No OFD packet to send [21:28:53]OFD Sender: No OFD packet to send [21:28:58]OFD Sender: No OFD packet to send [21:29:03]OFD Sender: No OFD packet to send [21:29:08]OFD Sender: No OFD packet to send [21:29:13]OFD Sender: No OFD packet to send [21:29:18]OFD Sender: No OFD packet to send [21:29:23]OFD Sender: No OFD packet to send [21:29:28]OFD Sender: No OFD packet to send [21:29:33]OFD Sender: No OFD packet to send [21:29:38]OFD Sender: No OFD packet to send [21:29:43]OFD Sender: No OFD packet to send [21:29:48]OFD Sender: No OFD packet to send [21:29:53]OFD Sender: No OFD packet to send [21:29:58]OFD Sender: No OFD packet to send [21:30:03]OFD Sender: No OFD packet to send [21:30:08]OFD Sender: No OFD packet to send [21:30:13]OFD Sender: No OFD packet to send [21:30:18]OFD Sender: No OFD packet to send [21:30:23]OFD Sender: No OFD packet to send [21:30:28]OFD Sender: No OFD packet to send [21:30:33]OFD Sender: No OFD packet to send [21:30:38]OFD Sender: No OFD packet to send [21:30:43]OFD Sender: No OFD packet to send [21:30:48]OFD Sender: No OFD packet to send [21:30:53]OFD Sender: No OFD packet to send [21:30:58]OFD Sender: No OFD packet to send [21:31:03]OFD Sender: No OFD packet to send [21:31:08]OFD Sender: No OFD packet to send [21:31:13]OFD Sender: No OFD packet to send [21:31:18]OFD Sender: No OFD packet to send [21:31:23]OFD Sender: No OFD packet to send [21:31:28]OFD Sender: No OFD packet to send [21:31:33]OFD Sender: No OFD packet to send [21:31:38]OFD Sender: No OFD packet to send [21:31:43]OFD Sender: No OFD packet to send [21:31:48]OFD Sender: No OFD packet to send [21:31:53]OFD Sender: No OFD packet to send [21:31:58]OFD Sender: No OFD packet to send [21:32:03]OFD Sender: No OFD packet to send [21:32:08]OFD Sender: No OFD packet to send [21:32:13]OFD Sender: No OFD packet to send [21:32:18]OFD Sender: No OFD packet to send [21:32:23]OFD Sender: No OFD packet to send [21:32:28]OFD Sender: No OFD packet to send [21:32:33]OFD Sender: No OFD packet to send [21:32:38]OFD Sender: No OFD packet to send [21:32:43]OFD Sender: No OFD packet to send [21:32:48]OFD Sender: No OFD packet to send [21:32:53]OFD Sender: No OFD packet to send [21:32:58]OFD Sender: No OFD packet to send [21:33:03]OFD Sender: No OFD packet to send [21:33:08]OFD Sender: No OFD packet to send [21:33:13]OFD Sender: No OFD packet to send [21:33:18]OFD Sender: No OFD packet to send [21:33:23]OFD Sender: No OFD packet to send [21:33:28]OFD Sender: No OFD packet to send [21:33:33]OFD Sender: No OFD packet to send [21:33:38]OFD Sender: No OFD packet to send [21:33:43]OFD Sender: No OFD packet to send [21:33:48]OFD Sender: No OFD packet to send [21:33:53]OFD Sender: No OFD packet to send [21:33:58]OFD Sender: No OFD packet to send [21:34:03]OFD Sender: No OFD packet to send [21:34:08]OFD Sender: No OFD packet to send [21:34:13]OFD Sender: No OFD packet to send [21:34:15]accept exits with 9 [21:34:15]New connection [21:34:15]New thread 3066608996 created [21:34:15]Thread 3066752356 joined [21:34:15]Waiting for new connection... [21:34:15] Sock 9.Parse request [21:34:15]Sock 9.Check first char [21:34:15]Sock 9.First char is OK [21:34:15]request: POST /json_proto HTTP/1.0 [21:34:15]Method: POST [21:34:15]URL: /json_proto [21:34:15]Method is POST - this is cgi request [21:34:15]url: /json_proto [21:34:15]query_string will be loaded in cgi processing [21:34:15]execute_cgi json_proto POST (null) [21:34:15]execute_cgi path=json_proto method=POST [21:34:15]POST find Content-Length [21:34:15]Host: 172.17.41.195:8080 [21:34:15]Content-Length: 1142 [21:34:15]Content-Type: application/json [21:34:15] [21:34:15]POST finish read [21:34:15]Found Content-Length = 1142 [21:34: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507900\u000A17.05.2024 21: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\u041A \u0413\u041F\u041D\u0410 Online\u000A30146726\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:15]execute_script... [21:34: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507900\u000A17.05.2024 21: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\u041A \u0413\u041F\u041D\u0410 Online\u000A30146726\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:15]POST & json_proto [21:34:15]process_json_proto [21:34:15]json parsed OK: [21:34:15]protocol is kg_v1.0 [21:34:15]action value=print_text [21:34:15]process_action print_text [21:34:15]cmd_print_text [21:34:15]ExternCall_PrintAddStr [21:34:15]wPrintStart [21:34:15]Write to MH i2c: 01 00 00 6E 13 81 [21:34:15]Write i2c OK [21:34:15]MH_I2C_Read... [21:34:15]Read from MH i2c: 01 [21:34:15]MH_I2C_Read... [21:34:15]Read from MH i2c: 01 07 00 [21:34:15]MH_I2C_Read... [21:34:15]Read from MH i2c: 01 07 00 6E 13 00 00 00 00 00 FF 0F 96 [21:34:15]RasterBufferAndPrint [21:34:15]line *****ТОВАРНЫЙ ЧЕК***** [21:34:15]line АЗС-91 [21:34:15]line Партнер нефть [21:34:15]line 02508201610067 [21:34:15]line Кассир : Адишов И. [21:34:15]line Счет N : (1)507900 [21:34:15]line 17.05.2024 21:16 [21:34:15]line ПРОДАЖА [21:34:15]line ТРК (МРК, ГНК): 21 [21:34:15]line Вид ГСМ : 2710194210 [21:34:15]line ДТ-К-5 [21:34:15]line 100.000 x 74.70 [21:34:15]line ИТОГ: 7470.00 [21:34:15]line Тип оплаты: Талоны: ТК ГПНА Online [21:34:15]line 30146726 [21:34:15]line ______________________ [21:34:15]line (подпись) [21:34:15]written 0, free lines is 4095 [21:34:16]Write to MH i2c: 01 00 00 82 13 95 [21:34:16]Write i2c OK [21:34:16]MH_I2C_Read... [21:34:16]Read from MH i2c: 01 [21:34:16]MH_I2C_Read... [21:34:16]Read from MH i2c: 01 07 00 [21:34:16]MH_I2C_Read... [21:34:16]Read from MH i2c: 01 07 00 82 13 00 00 00 00 00 0D 0E B7 [21:34:16]RasterBufferAndPrint [21:34:16]line [21:34:16]line [21:34:16]line [21:34:16]line [21:34:16]line [21:34:16]written 0, free lines is 3599 [21:34:16]MH_Cut [21:34:16]Write to MH i2c: D1 01 00 89 13 01 6E [21:34:16]Write i2c OK [21:34:16]MH_I2C_Read... [21:34:16]Read from MH i2c: D1 [21:34:16]MH_I2C_Read... [21:34:16]Read from MH i2c: D1 01 00 [21:34:16]MH_I2C_Read... [21:34:16]Read from MH i2c: D1 01 00 89 13 00 6D [21:34:16]Write to MH i2c: 01 00 00 8A 13 9D [21:34:16]Write i2c OK [21:34:16]MH_I2C_Read... [21:34:16]*** Cut start [21:34:16]*** Purtial cut [21:34:16]*** CUTSNS_PIN = 0 [21:34:16]*** Stage 1: CUTSNS_PIN = 1 [21:34:18]Read from MH i2c: 01 [21:34:18]MH_I2C_Read... [21:34:18]*** Stop cut motor [21:34:18]*** Cut end [21:34:18]Read from MH i2c: 01 07 00 [21:34:18]MH_I2C_Read... [21:34:18]Read from MH i2c: 01 07 00 8A 13 00 00 00 00 00 FF 0F B2 [21:34:18]process_action print_text done [21:34:18]requested_data is exist [21:34:18]produce_requested_data [21:34:18]requested_item fm.sn is exist - process it [21:34:18]wFMCommunicate request_size=4 [21:34:18]MH_SAM_APDU [21:34:18]CAPDU: 80 11 00 00 [21:34:18]Write to MH i2c: E2 08 00 8B 13 80 11 00 00 00 00 00 00 18 [21:34:18]Write i2c OK [21:34:18]MH_I2C_Read... [21:34:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:18]Read from MH i2c: E2 [21:34:18]MH_I2C_Read... [21:34:18]Read from MH i2c: E2 17 00 [21:34:18]MH_I2C_Read... [21:34:18]Read from MH i2c: E2 17 00 8B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6E [21:34: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:34:18]wFMCommunicate OK [21:34:18]requested_item fd.num is exist - process it [21:34:18]SAM_PROTO_GetFieldsCounters [21:34:18]wFMCommunicate request_size=4 [21:34:18]MH_SAM_APDU [21:34:18]CAPDU: 80 13 00 00 [21:34:18]Write to MH i2c: E2 08 00 8C 13 80 13 00 00 00 00 00 00 1B [21:34:18]Write i2c OK [21:34:18]MH_I2C_Read... [21:34:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:34:18]Read from MH i2c: E2 [21:34:18]MH_I2C_Read... [21:34:18]Read from MH i2c: E2 62 00 [21:34:18]MH_I2C_Read... [21:34:18]Read from MH i2c: E2 62 00 8C 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 9E 08 01 00 0E 04 04 00 66 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 14 [21:34: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 9E 08 01 00 0E 04 04 00 66 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 [21:34:18]wFMCommunicate OK [21:34:18]SAM_PROTO_GetFieldsCounters done [21:34:18]requested_item shift.num is exist - process it [21:34:18]requested_item shift.opened is exist - process it [21:34:18]req_shift_opened [21:34:18]FM_GetShiftState [21:34:18]SAM_PROTO_GetShiftState [21:34:18]wFMCommunicate request_size=4 [21:34:18]MH_SAM_APDU [21:34:18]CAPDU: 80 13 01 00 [21:34:18]Write to MH i2c: E2 08 00 8D 13 80 13 01 00 00 00 00 00 1D [21:34:18]Write i2c OK [21:34:18]MH_I2C_Read... [21:34:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:18]Read from MH i2c: E2 [21:34:18]MH_I2C_Read... [21:34:18]Read from MH i2c: E2 0E 00 [21:34:18]MH_I2C_Read... [21:34:18]Read from MH i2c: E2 0E 00 8D 13 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 A3 [21:34:18]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [21:34:18]wFMCommunicate OK [21:34:18]SAM_PROTO_GetShiftState done [21:34:18]FM_GetShiftState done [21:34:18]req_shift_opened done [21:34:18]requested_item shift.open_date is exist - process it [21:34:18]req_shift_open_date [21:34:18]req_shift_open_date done [21:34:18]produce_requested_data done [21:34:18]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67742,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [21:34:18]process_action_free print_text [21:34:18]json_value_free [21:34:18]json_value_free done [21:34:18]process_json_proto returns [21:34:18]Send response to host [21:34:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67742,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [21:34:18]free response buf [21:34:18]execute_script done [21:34:18]execute_script returns [21:34:18]free content buf [21:34:18]Sock 9.Close socket [21:34:18]Sock 9.Thread stoped [21:34:18]OFD Sender: No OFD packet to send [21:34:23]OFD Sender: No OFD packet to send [21:34:28]OFD Sender: No OFD packet to send [21:34:33]OFD Sender: No OFD packet to send [21:34:38]OFD Sender: No OFD packet to send [21:34:42]accept exits with 7 [21:34:42]New connection [21:34:42]New thread 3066752356 created [21:34:42]Thread 3066608996 joined [21:34:42]Waiting for new connection... [21:34:42] Sock 7.Parse request [21:34:42]Sock 7.Check first char [21:34:42]Sock 7.First char is OK [21:34:42]request: POST /json_proto HTTP/1.0 [21:34:42]Method: POST [21:34:42]URL: /json_proto [21:34:42]Method is POST - this is cgi request [21:34:42]url: /json_proto [21:34:42]query_string will be loaded in cgi processing [21:34:42]execute_cgi json_proto POST (null) [21:34:42]execute_cgi path=json_proto method=POST [21:34:42]POST find Content-Length [21:34:42]Host: 172.17.41.195:8080 [21:34:42]Content-Length: 215 [21:34:42]Content-Type: application/json [21:34:42] [21:34:42]POST finish read [21:34:42]Found Content-Length = 215 [21:34:42]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:34:42]execute_script... [21:34:42]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:34:42]POST & json_proto [21:34:42]process_json_proto [21:34:42]json parsed OK: [21:34:42]protocol is kg_v1.0 [21:34:42]action value=get_value [21:34:42]process_action get_value [21:34:42]cmd_get_value [21:34:42]process_action get_value done [21:34:42]requested_data is exist [21:34:42]produce_requested_data [21:34:42]requested_item kkm.sn is exist - process it [21:34:42]requested_item kkm.ver is exist - process it [21:34:42]requested_item fm.sn is exist - process it [21:34:42]wFMCommunicate request_size=4 [21:34:42]MH_SAM_APDU [21:34:42]CAPDU: 80 11 00 00 [21:34:42]Write to MH i2c: E2 08 00 8E 13 80 11 00 00 00 00 00 00 1B [21:34:42]Write i2c OK [21:34:42]MH_I2C_Read... [21:34:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:42]Read from MH i2c: E2 [21:34:42]MH_I2C_Read... [21:34:42]Read from MH i2c: E2 17 00 [21:34:42]MH_I2C_Read... [21:34:42]Read from MH i2c: E2 17 00 8E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 71 [21:34:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:34:42]wFMCommunicate OK [21:34:42]requested_item fd.num is exist - process it [21:34:42]SAM_PROTO_GetFieldsCounters [21:34:42]wFMCommunicate request_size=4 [21:34:42]MH_SAM_APDU [21:34:42]CAPDU: 80 13 00 00 [21:34:42]Write to MH i2c: E2 08 00 8F 13 80 13 00 00 00 00 00 00 1E [21:34:42]Write i2c OK [21:34:42]MH_I2C_Read... [21:34:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:34:42]Read from MH i2c: E2 [21:34:42]MH_I2C_Read... [21:34:42]Read from MH i2c: E2 62 00 [21:34:42]MH_I2C_Read... [21:34:42]Read from MH i2c: E2 62 00 8F 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 9E 08 01 00 0E 04 04 00 66 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 17 [21:34: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 9E 08 01 00 0E 04 04 00 66 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 [21:34:42]wFMCommunicate OK [21:34:42]SAM_PROTO_GetFieldsCounters done [21:34:42]requested_item shift.num is exist - process it [21:34:42]requested_item shift.opened is exist - process it [21:34:42]req_shift_opened [21:34:42]FM_GetShiftState [21:34:42]SAM_PROTO_GetShiftState [21:34:42]wFMCommunicate request_size=4 [21:34:42]MH_SAM_APDU [21:34:42]CAPDU: 80 13 01 00 [21:34:42]Write to MH i2c: E2 08 00 90 13 80 13 01 00 00 00 00 00 20 [21:34:42]Write i2c OK [21:34:42]MH_I2C_Read... [21:34:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:42]Read from MH i2c: E2 [21:34:42]MH_I2C_Read... [21:34:42]Read from MH i2c: E2 0E 00 [21:34:42]MH_I2C_Read... [21:34:42]Read from MH i2c: E2 0E 00 90 13 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 A6 [21:34:42]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [21:34:42]wFMCommunicate OK [21:34:42]SAM_PROTO_GetShiftState done [21:34:42]FM_GetShiftState done [21:34:42]req_shift_opened done [21:34:42]requested_item shift.open_date is exist - process it [21:34:42]req_shift_open_date [21:34:42]req_shift_open_date done [21:34:42]produce_requested_data done [21:34:42]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67742,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [21:34:42]process_action_free get_value [21:34:42]json_value_free [21:34:42]json_value_free done [21:34:42]process_json_proto returns [21:34:42]Send response to host [21:34:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67742,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [21:34:42]free response buf [21:34:42]execute_script done [21:34:42]execute_script returns [21:34:42]free content buf [21:34:42]Sock 7.Close socket [21:34:42]Sock 7.Thread stoped [21:34:42]accept exits with 9 [21:34:42]New connection [21:34:42]New thread 3066608996 created [21:34:42]Thread 3066752356 joined [21:34:42]Waiting for new connection... [21:34:42] Sock 9.Parse request [21:34:42]Sock 9.Check first char [21:34:42]Sock 9.First char is OK [21:34:42]request: POST /json_proto HTTP/1.0 [21:34:42]Method: POST [21:34:42]URL: /json_proto [21:34:42]Method is POST - this is cgi request [21:34:42]url: /json_proto [21:34:42]query_string will be loaded in cgi processing [21:34:42]execute_cgi json_proto POST (null) [21:34:42]execute_cgi path=json_proto method=POST [21:34:42]POST find Content-Length [21:34:42]Host: 172.17.41.195:8080 [21:34:42]Content-Length: 331 [21:34:42]Content-Type: application/json [21:34:42] [21:34:42]POST finish read [21:34:42]Found Content-Length = 331 [21:34:42]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:34:42]execute_script... [21:34:42]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:34:42]POST & json_proto [21:34:42]process_json_proto [21:34:42]json parsed OK: [21:34:42]protocol is kg_v1.0 [21:34:42]action value=get_value [21:34:42]process_action get_value [21:34:42]cmd_get_value [21:34:42]process_action get_value done [21:34:42]requested_data is exist [21:34:42]produce_requested_data [21:34:43]requested_item fm.sale.total is exist - process it [21:34:43]SAM_PROTO_GetFMData [21:34:43]wFMCommunicate request_size=4 [21:34:43]MH_SAM_APDU [21:34:43]CAPDU: 80 13 03 00 [21:34:43]Write to MH i2c: E2 08 00 91 13 80 13 03 00 00 00 00 00 23 [21:34:43]Write i2c OK [21:34:43]MH_I2C_Read... [21:34:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:34:43]Read from MH i2c: E2 [21:34:43]MH_I2C_Read... [21:34:43]Read from MH i2c: E2 FD 00 [21:34:43]MH_I2C_Read... [21:34:43]Read from MH i2c: E2 FD 00 91 13 00 C6 04 85 04 C2 04 6E 04 04 00 D2 05 01 00 69 04 A3 00 6F 04 04 00 28 05 01 00 B1 04 05 00 67 E1 7A 1D 03 70 04 05 00 6C EF B3 C0 02 72 04 04 00 FB F1 C6 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 23 23 B3 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 05 D9 0E 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 81 [21:34:43]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 D2 05 01 00 69 04 A3 00 6F 04 04 00 28 05 01 00 B1 04 05 00 67 E1 7A 1D 03 70 04 05 00 6C EF B3 C0 02 72 04 04 00 FB F1 C6 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 23 23 B3 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 05 D9 0E 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [21:34:43]wFMCommunicate OK [21:34:43]wFMCommunicate request_size=4 [21:34:43]MH_SAM_APDU [21:34:43]CAPDU: 80 17 00 00 [21:34:43]Write to MH i2c: E2 08 00 92 13 80 17 00 00 00 00 00 00 25 [21:34:43]Write i2c OK [21:34:43]MH_I2C_Read... [21:34:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:34:43]Read from MH i2c: E2 [21:34:43]MH_I2C_Read... [21:34:43]Read from MH i2c: E2 FD 00 [21:34:43]MH_I2C_Read... [21:34:43]Read from MH i2c: E2 FD 00 92 13 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 60 [21:34:43]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [21:34:43]wFMCommunicate OK [21:34:43]wFMCommunicate request_size=4 [21:34:43]MH_SAM_APDU [21:34:43]CAPDU: 80 17 00 00 [21:34:43]Write to MH i2c: E2 08 00 93 13 80 17 00 00 00 00 00 00 26 [21:34:43]Write i2c OK [21:34:43]MH_I2C_Read... [21:34:44]OFD Sender: No OFD packet to send [21:34:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:34:44]Read from MH i2c: E2 [21:34:44]MH_I2C_Read... [21:34:44]Read from MH i2c: E2 FD 00 [21:34:44]MH_I2C_Read... [21:34:44]Read from MH i2c: E2 FD 00 93 13 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 4D [21:34:44]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:34:44]wFMCommunicate OK [21:34:44]wFMCommunicate request_size=4 [21:34:44]MH_SAM_APDU [21:34:44]CAPDU: 80 17 00 00 [21:34:44]Write to MH i2c: E2 08 00 94 13 80 17 00 00 00 00 00 00 27 [21:34:44]Write i2c OK [21:34:44]MH_I2C_Read... [21:34:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:34:44]Read from MH i2c: E2 [21:34:44]MH_I2C_Read... [21:34:44]Read from MH i2c: E2 FD 00 [21:34:44]MH_I2C_Read... [21:34:44]Read from MH i2c: E2 FD 00 94 13 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A2 [21:34:44]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:34:44]wFMCommunicate OK [21:34:44]wFMCommunicate request_size=4 [21:34:44]MH_SAM_APDU [21:34:44]CAPDU: 80 17 00 00 [21:34:44]Write to MH i2c: E2 08 00 95 13 80 17 00 00 00 00 00 00 28 [21:34:44]Write i2c OK [21:34:44]MH_I2C_Read... [21:34:44]Read from MH i2c: E2 [21:34:44]MH_I2C_Read... [21:34:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [21:34:44]Read from MH i2c: E2 E3 00 [21:34:44]MH_I2C_Read... [21:34:44]Read from MH i2c: E2 E3 00 95 13 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 07 [21:34:44]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:34:44]wFMCommunicate OK [21:34:44]SAM_PROTO_GetFMData done [21:34:44]requested_item fm.sale_refund.total is exist - process it [21:34:44]requested_item fm.buy.total is exist - process it [21:34:44]requested_item shift.sale.total is exist - process it [21:34:44]SAM_PROTO_GetShiftData [21:34:44]wFMCommunicate request_size=4 [21:34:44]MH_SAM_APDU [21:34:44]CAPDU: 80 13 02 00 [21:34:44]Write to MH i2c: E2 08 00 96 13 80 13 02 00 00 00 00 00 27 [21:34:44]Write i2c OK [21:34:44]MH_I2C_Read... [21:34:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:34:45]Read from MH i2c: E2 [21:34:45]MH_I2C_Read... [21:34:45]Read from MH i2c: E2 FD 00 [21:34:45]MH_I2C_Read... [21:34:45]Read from MH i2c: E2 FD 00 96 13 00 B0 04 AA 04 AC 04 6E 04 04 00 97 00 00 00 69 04 9D 00 6F 04 04 00 97 00 00 00 B1 04 04 00 C8 A4 23 01 70 04 03 00 00 27 9C 72 04 03 00 C8 7D 87 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 AC F9 1E 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 C9 94 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 69 [21:34:45]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 97 00 00 00 69 04 9D 00 6F 04 04 00 97 00 00 00 B1 04 04 00 C8 A4 23 01 70 04 03 00 00 27 9C 72 04 03 00 C8 7D 87 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 AC F9 1E 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 C9 94 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [21:34:45]wFMCommunicate OK [21:34:45]wFMCommunicate request_size=4 [21:34:45]MH_SAM_APDU [21:34:45]CAPDU: 80 17 00 00 [21:34:45]Write to MH i2c: E2 08 00 97 13 80 17 00 00 00 00 00 00 2A [21:34:45]Write i2c OK [21:34:45]MH_I2C_Read... [21:34:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:34:45]Read from MH i2c: E2 [21:34:45]MH_I2C_Read... [21:34:45]Read from MH i2c: E2 FD 00 [21:34:45]MH_I2C_Read... [21:34:45]Read from MH i2c: E2 FD 00 97 13 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 44 [21:34:45]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:34:45]wFMCommunicate OK [21:34:45]wFMCommunicate request_size=4 [21:34:45]MH_SAM_APDU [21:34:45]CAPDU: 80 17 00 00 [21:34:45]Write to MH i2c: E2 08 00 98 13 80 17 00 00 00 00 00 00 2B [21:34:45]Write i2c OK [21:34:45]MH_I2C_Read... [21:34:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:34:45]Read from MH i2c: E2 [21:34:45]MH_I2C_Read... [21:34:45]Read from MH i2c: E2 FD 00 [21:34:45]MH_I2C_Read... [21:34:45]Read from MH i2c: E2 FD 00 98 13 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 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 90 00 E8 [21:34:45]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:34:45]wFMCommunicate OK [21:34:45]wFMCommunicate request_size=4 [21:34:45]MH_SAM_APDU [21:34:45]CAPDU: 80 17 00 00 [21:34:45]Write to MH i2c: E2 08 00 99 13 80 17 00 00 00 00 00 00 2C [21:34:45]Write i2c OK [21:34:45]MH_I2C_Read... [21:34:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:34:45]Read from MH i2c: E2 [21:34:45]MH_I2C_Read... [21:34:45]Read from MH i2c: E2 FD 00 [21:34:45]MH_I2C_Read... [21:34:45]Read from MH i2c: E2 FD 00 99 13 00 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 90 00 9F [21:34:45]RAPDU: 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 90 00 [21:34:45]wFMCommunicate OK [21:34:45]wFMCommunicate request_size=4 [21:34:45]MH_SAM_APDU [21:34:45]CAPDU: 80 17 00 00 [21:34:45]Write to MH i2c: E2 08 00 9A 13 80 17 00 00 00 00 00 00 2D [21:34:45]Write i2c OK [21:34:45]MH_I2C_Read... [21:34:46]Read from MH i2c: E2 [21:34:46]MH_I2C_Read... [21:34:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [21:34:46]Read from MH i2c: E2 CD 00 [21:34:46]MH_I2C_Read... [21:34:46]Read from MH i2c: E2 CD 00 9A 13 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [21:34:46]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:34:46]wFMCommunicate OK [21:34:46]SAM_PROTO_GetShiftData done [21:34:46]requested_item shift.sale.total_cash is exist - process it [21:34:46]requested_item shift.sale_refund.total is exist - process it [21:34:46]requested_item shift.sale_refund.total_cash is exist - process it [21:34:46]requested_item shift.buy.total is exist - process it [21:34:46]requested_item shift.buy.total_cash is exist - process it [21:34:46]produce_requested_data done [21:34:46]produce_requested_data return {"fm.sale.total":133794942.47,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":191131.60,"shift.sale.total_cash":102336.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} [21:34:46]process_action_free get_value [21:34:46]json_value_free [21:34:46]json_value_free done [21:34:46]process_json_proto returns [21:34:46]Send response to host [21:34:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133794942.47,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":191131.60,"shift.sale.total_cash":102336.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}}} [21:34:46]free response buf [21:34:46]execute_script done [21:34:46]execute_script returns [21:34:46]free content buf [21:34:46]Sock 9.Close socket [21:34:46]Sock 9.Thread stoped [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:26]accept exits with 7 [21:36:26]New connection [21:36:26]New thread 3066752356 created [21:36:26]Thread 3066608996 joined [21:36:26]Waiting for new connection... [21:36:26] Sock 7.Parse request [21:36:26]Sock 7.Check first char [21:36:26]Sock 7.First char is OK [21:36:26]request: POST /json_proto HTTP/1.0 [21:36:26]Method: POST [21:36:26]URL: /json_proto [21:36:26]Method is POST - this is cgi request [21:36:26]url: /json_proto [21:36:26]query_string will be loaded in cgi processing [21:36:26]execute_cgi json_proto POST (null) [21:36:26]execute_cgi path=json_proto method=POST [21:36:26]POST find Content-Length [21:36:26]Host: 172.17.41.195:8080 [21:36:26]Content-Length: 1142 [21:36:26]Content-Type: application/json [21:36:26] [21:36:26]POST finish read [21:36:26]Found Content-Length = 1142 [21: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507899\u000A17.05.2024 21: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 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30146726\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:26]execute_script... [21: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507899\u000A17.05.2024 21: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 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30146726\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:26]POST & json_proto [21:36:26]process_json_proto [21:36:26]json parsed OK: [21:36:26]protocol is kg_v1.0 [21:36:26]action value=print_text [21:36:26]process_action print_text [21:36:26]cmd_print_text [21:36:26]ExternCall_PrintAddStr [21:36:26]wPrintStart [21:36:26]Write to MH i2c: 01 00 00 9B 13 AE [21:36:26]Write i2c OK [21:36:26]MH_I2C_Read... [21:36:26]Read from MH i2c: 01 [21:36:26]MH_I2C_Read... [21:36:26]Read from MH i2c: 01 07 00 [21:36:26]MH_I2C_Read... [21:36:26]Read from MH i2c: 01 07 00 9B 13 00 00 00 00 00 FF 0F C3 [21:36:26]RasterBufferAndPrint [21:36:26]line *****ТОВАРНЫЙ ЧЕК***** [21:36:26]line АЗС-91 [21:36:26]line Партнер нефть [21:36:26]line 02508201610067 [21:36:26]line Кассир : Адишов И. [21:36:26]line Счет N : (1)507899 [21:36:26]line 17.05.2024 21:18 [21:36:26]line ПРОДАЖА [21:36:26]line ТРК (МРК, ГНК): 11 [21:36:26]line Вид ГСМ : 2710194210 [21:36:26]line ДТ-К-5 [21:36:26]line 100.000 x 74.70 [21:36:26]line ИТОГ: 7470.00 [21:36:26]line Тип оплаты: Талоны: ТК ГПНА Online [21:36:26]line 30146726 [21:36:26]line ______________________ [21:36:26]line (подпись) [21:36:26]written 0, free lines is 4095 [21:36:27]Write to MH i2c: 01 00 00 AF 13 C2 [21:36:27]Write i2c OK [21:36:27]MH_I2C_Read... [21:36:27]Read from MH i2c: 01 [21:36:27]MH_I2C_Read... [21:36:27]Read from MH i2c: 01 07 00 [21:36:27]MH_I2C_Read... [21:36:27]Read from MH i2c: 01 07 00 AF 13 00 00 00 00 00 0D 0E E4 [21:36:27]RasterBufferAndPrint [21:36:27]line [21:36:27]line [21:36:27]line [21:36:27]line [21:36:27]line [21:36:27]written 0, free lines is 3598 [21:36:27]MH_Cut [21:36:27]Write to MH i2c: D1 01 00 B6 13 01 9B [21:36:27]Write i2c OK [21:36:27]MH_I2C_Read... [21:36:27]Read from MH i2c: D1 [21:36:27]MH_I2C_Read... [21:36:27]Read from MH i2c: D1 01 00 [21:36:27]MH_I2C_Read... [21:36:27]Read from MH i2c: D1 01 00 B6 13 00 9A [21:36:27]Write to MH i2c: 01 00 00 B7 13 CA [21:36:27]Write i2c OK [21:36:27]MH_I2C_Read... [21:36:27]*** Cut start [21:36:27]*** Purtial cut [21:36:27]*** Stage 1: CUTSNS_PIN = 1 [21:36:28]Read from MH i2c: 01 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: 01 07 00 [21:36:28]MH_I2C_Read... [21:36:28]*** Stop cut motor [21:36:28]*** Cut end [21:36:28]Read from MH i2c: 01 07 00 B7 13 00 00 00 00 00 FF 0F DF [21:36:28]process_action print_text done [21:36:28]requested_data is exist [21:36:28]produce_requested_data [21:36:28]requested_item fm.sn is exist - process it [21:36:28]wFMCommunicate request_size=4 [21:36:28]MH_SAM_APDU [21:36:28]CAPDU: 80 11 00 00 [21:36:28]Write to MH i2c: E2 08 00 B8 13 80 11 00 00 00 00 00 00 45 [21:36:28]Write i2c OK [21:36:28]MH_I2C_Read... [21:36:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:28]Read from MH i2c: E2 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 17 00 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 17 00 B8 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9B [21:36:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:36:28]wFMCommunicate OK [21:36:28]requested_item fd.num is exist - process it [21:36:28]SAM_PROTO_GetFieldsCounters [21:36:28]wFMCommunicate request_size=4 [21:36:28]MH_SAM_APDU [21:36:28]CAPDU: 80 13 00 00 [21:36:28]Write to MH i2c: E2 08 00 B9 13 80 13 00 00 00 00 00 00 48 [21:36:28]Write i2c OK [21:36:28]MH_I2C_Read... [21:36:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:28]Read from MH i2c: E2 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 62 00 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 62 00 B9 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 9E 08 01 00 0E 04 04 00 66 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 41 [21: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 9E 08 01 00 0E 04 04 00 66 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 [21:36:28]wFMCommunicate OK [21:36:28]SAM_PROTO_GetFieldsCounters done [21:36:28]requested_item shift.num is exist - process it [21:36:28]requested_item shift.opened is exist - process it [21:36:28]req_shift_opened [21:36:28]FM_GetShiftState [21:36:28]SAM_PROTO_GetShiftState [21:36:28]wFMCommunicate request_size=4 [21:36:28]MH_SAM_APDU [21:36:28]CAPDU: 80 13 01 00 [21:36:28]Write to MH i2c: E2 08 00 BA 13 80 13 01 00 00 00 00 00 4A [21:36:28]Write i2c OK [21:36:28]MH_I2C_Read... [21:36:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:28]Read from MH i2c: E2 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 0E 00 [21:36:28]MH_I2C_Read... [21:36:28]Read from MH i2c: E2 0E 00 BA 13 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 D0 [21:36:28]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [21:36:28]wFMCommunicate OK [21:36:28]SAM_PROTO_GetShiftState done [21:36:28]FM_GetShiftState done [21:36:28]req_shift_opened done [21:36:28]requested_item shift.open_date is exist - process it [21:36:28]req_shift_open_date [21:36:28]req_shift_open_date done [21:36:28]produce_requested_data done [21:36:28]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67742,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [21:36:28]process_action_free print_text [21:36:28]json_value_free [21:36:28]json_value_free done [21:36:28]process_json_proto returns [21:36:28]Send response to host [21:36:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67742,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [21:36:28]free response buf [21:36:28]execute_script done [21:36:28]execute_script returns [21:36:28]free content buf [21:36:28]Sock 7.Close socket [21:36:28]Sock 7.Thread stoped [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:54]OFD Sender: No OFD packet to send [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]accept exits with 9 [21:38:49]New connection [21:38:49]New thread 3066608996 created [21:38:49]Thread 3066752356 joined [21:38:49]Waiting for new connection... [21:38:49] Sock 9.Parse request [21:38:49]Sock 9.Check first char [21:38:49]Sock 9.First char is OK [21:38:49]request: POST /json_proto HTTP/1.0 [21:38:49]Method: POST [21:38:49]URL: /json_proto [21:38:49]Method is POST - this is cgi request [21:38:49]url: /json_proto [21:38:49]query_string will be loaded in cgi processing [21:38:49]execute_cgi json_proto POST (null) [21:38:49]execute_cgi path=json_proto method=POST [21:38:49]POST find Content-Length [21:38:49]Host: 172.17.41.195:8080 [21:38:49]Content-Length: 1142 [21:38:49]Content-Type: application/json [21:38:49] [21:38:49]POST finish read [21:38:49]Found Content-Length = 1142 [21:38: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507901\u000A17.05.2024 21:21\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30146726\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:49]execute_script... [21:38: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507901\u000A17.05.2024 21:21\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\u041A \u0413\u041F\u041D\u0410 Online\u000A30146726\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:49]POST & json_proto [21:38:49]process_json_proto [21:38:49]json parsed OK: [21:38:49]protocol is kg_v1.0 [21:38:49]action value=print_text [21:38:49]process_action print_text [21:38:49]cmd_print_text [21:38:49]ExternCall_PrintAddStr [21:38:49]wPrintStart [21:38:49]Write to MH i2c: 01 00 00 BB 13 CE [21:38:49]Write i2c OK [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: 01 [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: 01 07 00 [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: 01 07 00 BB 13 00 00 00 00 00 FF 0F E3 [21:38:49]RasterBufferAndPrint [21:38:49]line *****ТОВАРНЫЙ ЧЕК***** [21:38:49]line АЗС-91 [21:38:49]line Партнер нефть [21:38:49]line 02508201610067 [21:38:49]line Кассир : Адишов И. [21:38:49]line Счет N : (1)507901 [21:38:49]line 17.05.2024 21:21 [21:38:49]line ПРОДАЖА [21:38:49]line ТРК (МРК, ГНК): 21 [21:38:49]line Вид ГСМ : 2710194210 [21:38:49]line ДТ-К-5 [21:38:49]line 100.000 x 74.70 [21:38:49]line ИТОГ: 7470.00 [21:38:49]line Тип оплаты: Талоны: ТК ГПНА Online [21:38:49]line 30146726 [21:38:49]line ______________________ [21:38:49]line (подпись) [21:38:49]written 0, free lines is 4095 [21:38:49]OFD Sender: No OFD packet to send [21:38:49]Write to MH i2c: 01 00 00 CF 13 E2 [21:38:49]Write i2c OK [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: 01 [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: 01 07 00 [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: 01 07 00 CF 13 00 00 00 00 00 0D 0E 04 [21:38:49]RasterBufferAndPrint [21:38:49]line [21:38:49]line [21:38:49]line [21:38:49]line [21:38:49]line [21:38:49]written 0, free lines is 3599 [21:38:49]MH_Cut [21:38:49]Write to MH i2c: D1 01 00 D6 13 01 BB [21:38:49]Write i2c OK [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: D1 [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: D1 01 00 [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: D1 01 00 D6 13 00 BA [21:38:49]Write to MH i2c: 01 00 00 D7 13 EA [21:38:49]Write i2c OK [21:38:49]MH_I2C_Read... [21:38:49]*** Cut start [21:38:49]*** Purtial cut [21:38:49]*** CUTSNS_PIN = 0 [21:38:50]*** Stage 1: CUTSNS_PIN = 1 [21:38:51]Read from MH i2c: 01 [21:38:51]MH_I2C_Read... [21:38:51]*** Stop cut motor [21:38:51]*** Cut end [21:38:51]Read from MH i2c: 01 07 00 [21:38:51]MH_I2C_Read... [21:38:51]Read from MH i2c: 01 07 00 D7 13 00 00 00 00 00 FF 0F FF [21:38:51]process_action print_text done [21:38:51]requested_data is exist [21:38:51]produce_requested_data [21:38:51]requested_item fm.sn is exist - process it [21:38:51]wFMCommunicate request_size=4 [21:38:51]MH_SAM_APDU [21:38:51]CAPDU: 80 11 00 00 [21:38:51]Write to MH i2c: E2 08 00 D8 13 80 11 00 00 00 00 00 00 65 [21:38:51]Write i2c OK [21:38:51]MH_I2C_Read... [21:38:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:51]Read from MH i2c: E2 [21:38:51]MH_I2C_Read... [21:38:51]Read from MH i2c: E2 17 00 [21:38:51]MH_I2C_Read... [21:38:51]Read from MH i2c: E2 17 00 D8 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BB [21:38: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:38:51]wFMCommunicate OK [21:38:51]requested_item fd.num is exist - process it [21:38:51]SAM_PROTO_GetFieldsCounters [21:38:51]wFMCommunicate request_size=4 [21:38:51]MH_SAM_APDU [21:38:51]CAPDU: 80 13 00 00 [21:38:51]Write to MH i2c: E2 08 00 D9 13 80 13 00 00 00 00 00 00 68 [21:38:51]Write i2c OK [21:38:51]MH_I2C_Read... [21:38:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:52]Read from MH i2c: E2 [21:38:52]MH_I2C_Read... [21:38:52]Read from MH i2c: E2 62 00 [21:38:52]MH_I2C_Read... [21:38:52]Read from MH i2c: E2 62 00 D9 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 9E 08 01 00 0E 04 04 00 66 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 61 [21:38: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 9E 08 01 00 0E 04 04 00 66 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 [21:38:52]wFMCommunicate OK [21:38:52]SAM_PROTO_GetFieldsCounters done [21:38:52]requested_item shift.num is exist - process it [21:38:52]requested_item shift.opened is exist - process it [21:38:52]req_shift_opened [21:38:52]FM_GetShiftState [21:38:52]SAM_PROTO_GetShiftState [21:38:52]wFMCommunicate request_size=4 [21:38:52]MH_SAM_APDU [21:38:52]CAPDU: 80 13 01 00 [21:38:52]Write to MH i2c: E2 08 00 DA 13 80 13 01 00 00 00 00 00 6A [21:38:52]Write i2c OK [21:38:52]MH_I2C_Read... [21:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:52]Read from MH i2c: E2 [21:38:52]MH_I2C_Read... [21:38:52]Read from MH i2c: E2 0E 00 [21:38:52]MH_I2C_Read... [21:38:52]Read from MH i2c: E2 0E 00 DA 13 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F0 [21:38:52]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [21:38:52]wFMCommunicate OK [21:38:52]SAM_PROTO_GetShiftState done [21:38:52]FM_GetShiftState done [21:38:52]req_shift_opened done [21:38:52]requested_item shift.open_date is exist - process it [21:38:52]req_shift_open_date [21:38:52]req_shift_open_date done [21:38:52]produce_requested_data done [21:38:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67742,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [21:38:52]process_action_free print_text [21:38:52]json_value_free [21:38:52]json_value_free done [21:38:52]process_json_proto returns [21:38:52]Send response to host [21:38:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67742,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [21:38:52]free response buf [21:38:52]execute_script done [21:38:52]execute_script returns [21:38:52]free content buf [21:38:52]Sock 9.Close socket [21:38:52]Sock 9.Thread stoped [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:29]OFD Sender: No OFD packet to send [21:39:34]OFD Sender: No OFD packet to send [21:39:39]OFD Sender: No OFD packet to send [21:39:44]OFD Sender: No OFD packet to send [21:39:49]OFD Sender: No OFD packet to send [21:39:54]OFD Sender: No OFD packet to send [21:39:59]OFD Sender: No OFD packet to send [21:40:04]OFD Sender: No OFD packet to send [21:40:09]OFD Sender: No OFD packet to send [21:40:14]OFD Sender: No OFD packet to send [21:40:19]OFD Sender: No OFD packet to send [21:40:24]OFD Sender: No OFD packet to send [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:59]OFD Sender: No OFD packet to send [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]accept exits with 7 [21:48:39]New connection [21:48:39]New thread 3066752356 created [21:48:39]Thread 3066608996 joined [21:48:39]Waiting for new connection... [21:48:39] Sock 7.Parse request [21:48:39]Sock 7.Check first char [21:48:39]Sock 7.First char is OK [21:48:39]request: POST /json_proto HTTP/1.0 [21:48:39]Method: POST [21:48:39]URL: /json_proto [21:48:39]Method is POST - this is cgi request [21:48:39]url: /json_proto [21:48:39]query_string will be loaded in cgi processing [21:48:39]execute_cgi json_proto POST (null) [21:48:39]execute_cgi path=json_proto method=POST [21:48:39]POST find Content-Length [21:48:39]Host: 172.17.41.195:8080 [21:48:39]Content-Length: 796 [21:48:39]Content-Type: application/json [21:48:39] [21:48:39]POST finish read [21:48:39]Found Content-Length = 796 [21:48:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:39]execute_script... [21:48: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)507902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:39]POST & json_proto [21:48:39]process_json_proto [21:48:39]json parsed OK: [21:48:39]protocol is kg_v1.0 [21:48:39]action value=close_receipt [21:48:39]process_action close_receipt [21:48:39]cmd_close_receipt [21:48:39]MH_GetDate [21:48:39]Write to MH i2c: F0 00 00 DB 13 DD [21:48:39]OFD Sender: No OFD packet to send [21:48:39]Write i2c OK [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: F0 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: F0 09 00 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: F0 09 00 DB 13 00 B9 D0 47 66 FC 21 6F 64 0C [21:48:39]GetLastDocTimeStamp 1715980492 [21:48:39]current date 1715982521 [21:48:39]FM_GetShiftState [21:48:39]SAM_PROTO_GetShiftState [21:48:39]wFMCommunicate request_size=4 [21:48:39]MH_SAM_APDU [21:48:39]CAPDU: 80 13 01 00 [21:48:39]Write to MH i2c: E2 08 00 DC 13 80 13 01 00 00 00 00 00 6C [21:48:39]Write i2c OK [21:48:39]MH_I2C_Read... [21:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:39]Read from MH i2c: E2 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: E2 0E 00 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: E2 0E 00 DC 13 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F2 [21:48:39]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [21:48:39]wFMCommunicate OK [21:48:39]SAM_PROTO_GetShiftState done [21:48:39]FM_GetShiftState done [21:48:39]opened in 1715905068 [21:48:39]opened+sec_in_day 1715991468 [21:48:39]quantity*price = 100005 [21:48:39]sum+1 = 100006 [21:48:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 152 17.05.2024 21:48 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67743 ФПД: 73342506099266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T214841&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67743&fm=73342506099266&tin=02508201610067®Number=0000000000091845&sum=100005 [21:48:40]StoreToDocumentArchive [21:48:40]shift 358 fd 67743 [21:48:40]save to /storage/0358/doc_00067743 [21:48:40]save last doc name /storage/0358/doc_00067743 to /storage/kkm_last_doc_name [21:48:40]save OK [21:48:40]Clear old archive folders... [21:48:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:48:40]tlvbuf is 01AE9190 [21:48:40]SAM_PROTO_ClearQueue [21:48:40]wFMCommunicate request_size=4 [21:48:40]MH_SAM_APDU [21:48:40]CAPDU: 80 09 00 00 [21:48:40]Write to MH i2c: E2 08 00 E9 13 80 09 00 00 00 00 00 00 6E [21:48:40]Write i2c OK [21:48:40]MH_I2C_Read... [21:48:41]Read from MH i2c: E2 [21:48:41]MH_I2C_Read... [21:48:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:41]Read from MH i2c: E2 03 00 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: E2 03 00 E9 13 00 90 00 70 [21:48:41]RAPDU: 90 00 [21:48:41]wFMCommunicate OK [21:48:41]SAM_PROTO_ClearQueue done [21:48:41]KKMCreateOFDPacket [21:48:41]OFDProtocolAddRootSTLVToBuf [21:48:41]FM_MakeSignedData [21:48:41]FM_MakeSignedData [21:48:41]SAM_PROTO_SignData [21:48:41]wFMCommunicate request_size=4 [21:48:41]MH_SAM_APDU [21:48:41]CAPDU: 80 0D 01 02 [21:48:41]Write to MH i2c: E2 08 00 EA 13 80 0D 01 02 00 00 00 00 76 [21:48:41]Write i2c OK [21:48:41]MH_I2C_Read... [21:48:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:41]Read from MH i2c: E2 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: E2 03 00 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: E2 03 00 EA 13 00 90 00 71 [21:48:41]RAPDU: 90 00 [21:48:41]wFMCommunicate OK [21:48:41]wFMCommunicate request_size=255 [21:48:41]MH_SAM_APDU [21:48:41]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 98 00 00 00 F4 03 04 00 B9 D0 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 [21:48:41]Write to MH i2c: E2 02 01 EB 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 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 98 00 00 00 F4 03 04 00 B9 D0 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 00 00 9A [21:48:41]Write i2c OK [21:48:41]MH_I2C_Read... [21:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:41]Read from MH i2c: E2 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: E2 03 00 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: E2 03 00 EB 13 00 90 00 72 [21:48:41]RAPDU: 90 00 [21:48:41]wFMCommunicate OK [21:48:41]wFMCommunicate request_size=11 [21:48:41]MH_SAM_APDU [21:48:41]CAPDU: 80 0D 02 02 06 42 B4 62 05 E2 42 [21:48:41]Write to MH i2c: E2 0E 00 EC 13 80 0D 02 02 06 00 42 B4 62 05 E2 42 00 00 06 [21:48:41]Write i2c OK [21:48:41]MH_I2C_Read... [21:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:41]Read from MH i2c: E2 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: E2 03 00 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: E2 03 00 EC 13 00 90 00 73 [21:48:41]RAPDU: 90 00 [21:48:41]wFMCommunicate OK [21:48:41]wFMCommunicate request_size=4 [21:48:41]MH_SAM_APDU [21:48:41]CAPDU: 80 0D 03 02 [21:48:41]Write to MH i2c: E2 08 00 ED 13 80 0D 03 02 00 00 00 00 7B [21:48:41]Write i2c OK [21:48:41]MH_I2C_Read... [21:48:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:41]Read from MH i2c: E2 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: E2 0B 00 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: E2 0B 00 ED 13 00 B9 BA 14 5D 5B 7D 77 F7 90 00 A6 [21:48:41]RAPDU: B9 BA 14 5D 5B 7D 77 F7 90 00 [21:48:41]wFMCommunicate OK [21:48:41]SAM_PROTO_SignData done [21:48:41]FM_MakeSignedData done [21:48:41]CreateOFDProtocolMessage [21:48:41]wFMCommunicate request_size=4 [21:48:41]MH_SAM_APDU [21:48:41]CAPDU: 80 11 00 00 [21:48:41]Write to MH i2c: E2 08 00 EE 13 80 11 00 00 00 00 00 00 7B [21:48:41]Write i2c OK [21:48:41]MH_I2C_Read... [21:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:41]Read from MH i2c: E2 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: E2 17 00 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: E2 17 00 EE 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D1 [21: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 [21:48:41]wFMCommunicate OK [21:48:41]CreateOFDProtocolMessage done [21:48:41]OFDSenderStorePacket 67743 [21:48:41]StoreOFDPacket docnum=67743 [21:48: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 3C 36 08 01 C7 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 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 98 00 00 00 F4 03 04 00 B9 D0 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 42 B4 62 05 E2 42 B9 BA 14 5D 5B 7D 77 F7 [21:48:41]CheckFolder [21:48:41]dirname=/storage/ofd_packets [21:48:41]CheckFolder done [21:48:41]ProducePacketName [21:48:41]name=ofd_packets/00067743 [21:48:41]NVStorageSaveData ofd_packets/00067743 [21:48:41]File name is /storage/ofd_packets/00067743 [21:48:41]Write 302 bytes [21:48:41]NVStorageSaveData done [21:48:41]OFDSenderStorePacket done [21:48:41]KKMCreateOFDPacket done [21:48:41]NVStorageSaveData kkm_last_timestamp [21:48:41]File name is /storage/kkm_last_timestamp [21:48:41]Write 4 bytes [21:48:41]NVStorageSaveData done [21:48:41]ExternCall_PrintAddStr [21:48:41]wPrintStart [21:48:41]Write to MH i2c: 01 00 00 EF 13 02 [21:48:41]Write i2c OK [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: 01 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: 01 07 00 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: 01 07 00 EF 13 00 00 00 00 00 FF 0F 17 [21:48:41]RasterBufferAndPrint [21:48:41]line Счет N : (1)507902 [21:48:41]line ИНН: 02508201610067 [21:48:41]line Контрольно-Кассовый Чек [21:48:41]line ПРОДАЖА [21:48:41]line ТРК (МРК, ГНК) : 32 [21:48:41]line Товар: 2710124130 [21:48:41]line Super-92-К-5 [21:48:41]line 14.750 * 67.80 [21:48:41]line = 1000.05 [21:48:41]line НДС 12% НСП 1% [21:48:41]line > о реализуемом товаре [21:48:41]line ИТОГО: 1000.05 [21:48:41]line НСП 1% : 8.85 [21:48:41]line НДС 12% : 106.20 [21:48:41]line Наличными: 0.00 [21:48:41]line Безнал.: 1000.05 [21:48:41]line Место: АЗС № 91 "Партнер Нефть" [21:48:41]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:48:41]line СНО: Общий режим [21:48:41]line Чек 152 17.05.2024 21:48 [21:48:41]line Смена: 358 ФФД: 1.0 [21:48:41]line ЗНМ: 0300000119 [21:48:41]line РНМ: 0000000000091845 [21:48:41]line Версия ККМ: 001 [21:48:41]line Платежная система: O! деньги [21:48:41]line ФМ: 0000000000871829 [21:48:41]line ФД: 67743 [21:48:41]line ФПД: 73342506099266 [21:48:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T214841&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67743&fm=73342506099266&tin=02508201610067®Number=0000000000091845&sum=100005 [21:48:41]written 0, free lines is 4095 [21:48:41]OFD Sender: Processing packet 67743 [packets to send 35, broken 34] [21:48:41]ProducePacketName [21:48:41]name=ofd_packets/00067743 [21:48:41]OFD Sender: To server: pG, [21:48:41]CommunicateWithHost lk.salyk.kg:30040 [21:48:41]ConnectInit lk.salyk.kg [21:48:41]Connected sock=10 [21:48: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 3C 36 08 01 C7 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 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 98 00 00 00 F4 03 04 00 B9 D0 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 42 B4 62 05 E2 42 B9 BA 14 5D 5B 7D 77 F7 [21:48: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 05 7A 47 00 F0 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 9F 08 01 00 F4 03 04 00 90 78 47 66 B6 04 01 00 00 37 5B F4 97 F3 D2 F6 1D [21:48:41]CommunicateWithHost err = 0 [21:48:41]CheckOFDResponse [21:48:41]1017 (14) - 77093643461234 [21:48:41]1041 (16) - 0000000000871829 [21:48:41]1040 (4) - 67743 [21:48:41]1012 (4) - 17.05.2024 15:32 [21:48:41]1206 (1) - 0 [21:48:41]OFD Sender: Remove packet 67743 [21:48:41]ProducePacketName [21:48:41]name=ofd_packets/00067743 [21:48:41]NVStorageDeleteData [21:48:41]Write to MH i2c: 01 00 00 18 14 2C [21:48:41]Write i2c OK [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: 01 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: 01 07 00 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: 01 07 00 18 14 00 00 00 00 00 ED 0C 2C [21:48:41]RasterBufferAndPrint [21:48:41]line [21:48:41]line [21:48:41]line [21:48:41]line [21:48:41]line [21:48:41]written 0, free lines is 3315 [21:48:41]MH_Cut [21:48:41]Write to MH i2c: D1 01 00 1F 14 01 05 [21:48:41]Write i2c OK [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: D1 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: D1 01 00 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: D1 01 00 1F 14 00 04 [21:48:41]Write to MH i2c: 01 00 00 20 14 34 [21:48:41]Write i2c OK [21:48:41]MH_I2C_Read... [21:48:42]OFD Sender: No OFD packet to send [21:48:42]*** Cut start [21:48:42]*** Purtial cut [21:48:42]*** Stage 1: CUTSNS_PIN = 1 [21:48:43]Read from MH i2c: 01 [21:48:43]MH_I2C_Read... [21:48:43]*** Stop cut motor [21:48:43]*** Cut end [21:48:43]Read from MH i2c: 01 07 00 [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: 01 07 00 20 14 00 00 00 00 00 FF 0F 49 [21:48:43]process_action close_receipt done [21:48:43]requested_data is exist [21:48:43]produce_requested_data [21:48:43]requested_item fm.sn is exist - process it [21:48:43]wFMCommunicate request_size=4 [21:48:43]MH_SAM_APDU [21:48:43]CAPDU: 80 11 00 00 [21:48:43]Write to MH i2c: E2 08 00 21 14 80 11 00 00 00 00 00 00 AF [21:48:43]Write i2c OK [21:48:43]MH_I2C_Read... [21:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:43]Read from MH i2c: E2 [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: E2 17 00 [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: E2 17 00 21 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 05 [21:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:48:43]wFMCommunicate OK [21:48:43]requested_item fd.num is exist - process it [21:48:43]SAM_PROTO_GetFieldsCounters [21:48:43]wFMCommunicate request_size=4 [21:48:43]MH_SAM_APDU [21:48:43]CAPDU: 80 13 00 00 [21:48:43]Write to MH i2c: E2 08 00 22 14 80 13 00 00 00 00 00 00 B2 [21:48:43]Write i2c OK [21:48:43]MH_I2C_Read... [21:48:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:43]Read from MH i2c: E2 [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: E2 62 00 [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: E2 62 00 22 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 9F 08 01 00 0E 04 04 00 66 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 AF [21:48: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 9F 08 01 00 0E 04 04 00 66 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 [21:48:43]wFMCommunicate OK [21:48:43]SAM_PROTO_GetFieldsCounters done [21:48:43]requested_item shift.num is exist - process it [21:48:43]requested_item shift.opened is exist - process it [21:48:43]req_shift_opened [21:48:43]FM_GetShiftState [21:48:43]SAM_PROTO_GetShiftState [21:48:43]wFMCommunicate request_size=4 [21:48:43]MH_SAM_APDU [21:48:43]CAPDU: 80 13 01 00 [21:48:43]Write to MH i2c: E2 08 00 23 14 80 13 01 00 00 00 00 00 B4 [21:48:43]Write i2c OK [21:48:43]MH_I2C_Read... [21:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:43]Read from MH i2c: E2 [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: E2 0E 00 [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: E2 0E 00 23 14 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 3A [21:48:43]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [21:48:43]wFMCommunicate OK [21:48:43]SAM_PROTO_GetShiftState done [21:48:43]FM_GetShiftState done [21:48:43]req_shift_opened done [21:48:43]requested_item shift.open_date is exist - process it [21:48:43]req_shift_open_date [21:48:43]req_shift_open_date done [21:48:43]produce_requested_data done [21:48:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67743,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [21:48:43]process_action_free close_receipt [21:48:43]json_value_free [21:48:43]json_value_free done [21:48:43]process_json_proto returns [21:48:43]Send response to host [21:48:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67743,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [21:48:43]free response buf [21:48:43]execute_script done [21:48:43]execute_script returns [21:48:43]free content buf [21:48:43]Sock 7.Close socket [21:48:43]Sock 7.Thread stoped [21:48:47]OFD Sender: No OFD packet to send [21:48:52]OFD Sender: No OFD packet to send [21:48:57]OFD Sender: No OFD packet to send [21:49:02]OFD Sender: No OFD packet to send [21:49:07]OFD Sender: No OFD packet to send [21:49:12]OFD Sender: No OFD packet to send [21:49:17]OFD Sender: No OFD packet to send [21:49:22]OFD Sender: No OFD packet to send [21:49:27]OFD Sender: No OFD packet to send [21:49:32]OFD Sender: No OFD packet to send [21:49:37]OFD Sender: No OFD packet to send [21:49:42]OFD Sender: No OFD packet to send [21:49:47]OFD Sender: No OFD packet to send [21:49:52]OFD Sender: No OFD packet to send [21:49:57]OFD Sender: No OFD packet to send [21:50:02]OFD Sender: No OFD packet to send [21:50:07]OFD Sender: No OFD packet to send [21:50:12]OFD Sender: No OFD packet to send [21:50:17]OFD Sender: No OFD packet to send [21:50:22]OFD Sender: No OFD packet to send [21:50:27]OFD Sender: No OFD packet to send [21:50:32]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:12]OFD Sender: No OFD packet to send [21:51:17]OFD Sender: No OFD packet to send [21:51:22]OFD Sender: No OFD packet to send [21:51:27]OFD Sender: No OFD packet to send [21:51:32]OFD Sender: No OFD packet to send [21:51:37]OFD Sender: No OFD packet to send [21:51:42]OFD Sender: No OFD packet to send [21:51:47]OFD Sender: No OFD packet to send [21:51:52]OFD Sender: No OFD packet to send [21:51:57]OFD Sender: No OFD packet to send [21:52:02]OFD Sender: No OFD packet to send [21:52:07]OFD Sender: No OFD packet to send [21:52:12]OFD Sender: No OFD packet to send [21:52:17]OFD Sender: No OFD packet to send [21:52:22]OFD Sender: No OFD packet to send [21:52:27]OFD Sender: No OFD packet to send [21:52:32]OFD Sender: No OFD packet to send [21:52:37]OFD Sender: No OFD packet to send [21:52:42]OFD Sender: No OFD packet to send [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:12]OFD Sender: No OFD packet to send [21:53:17]OFD Sender: No OFD packet to send [21:53:22]OFD Sender: No OFD packet to send [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:37]OFD Sender: No OFD packet to send [21:57:42]OFD Sender: No OFD packet to send [21:57:47]OFD Sender: No OFD packet to send [21:57:52]OFD Sender: No OFD packet to send [21:57:57]OFD Sender: No OFD packet to send [21:58:02]OFD Sender: No OFD packet to send [21:58:07]OFD Sender: No OFD packet to send [21:58:12]OFD Sender: No OFD packet to send [21:58:17]OFD Sender: No OFD packet to send [21:58:22]OFD Sender: No OFD packet to send [21:58:27]OFD Sender: No OFD packet to send [21:58:32]OFD Sender: No OFD packet to send [21:58:37]OFD Sender: No OFD packet to send [21:58:42]OFD Sender: No OFD packet to send [21:58:47]OFD Sender: No OFD packet to send [21:58:52]OFD Sender: No OFD packet to send [21:58:57]OFD Sender: No OFD packet to send [21:59:02]OFD Sender: No OFD packet to send [21:59:07]OFD Sender: No OFD packet to send [21:59:12]OFD Sender: No OFD packet to send [21:59:16]accept exits with 9 [21:59:16]New connection [21:59:16]New thread 3066608996 created [21:59:16]Thread 3066752356 joined [21:59:16]Waiting for new connection... [21:59:16] Sock 9.Parse request [21:59:16]Sock 9.Check first char [21:59:16]Sock 9.First char is OK [21:59:16]request: POST /json_proto HTTP/1.0 [21:59:16]Method: POST [21:59:16]URL: /json_proto [21:59:16]Method is POST - this is cgi request [21:59:16]url: /json_proto [21:59:16]query_string will be loaded in cgi processing [21:59:16]execute_cgi json_proto POST (null) [21:59:16]execute_cgi path=json_proto method=POST [21:59:16]POST find Content-Length [21:59:16]Host: 172.17.41.195:8080 [21:59:16]Content-Length: 670 [21:59:16]Content-Type: application/json [21:59:16] [21:59:16]POST finish read [21:59:16]Found Content-Length = 670 [21:59:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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:59:16]execute_script... [21:59: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)507903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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:59:16]POST & json_proto [21:59:16]process_json_proto [21:59:16]json parsed OK: [21:59:16]protocol is kg_v1.0 [21:59:16]action value=close_receipt [21:59:16]process_action close_receipt [21:59:16]cmd_close_receipt [21:59:16]MH_GetDate [21:59:16]Write to MH i2c: F0 00 00 24 14 27 [21:59:16]Write i2c OK [21:59:16]MH_I2C_Read... [21:59:16]Read from MH i2c: F0 [21:59:16]MH_I2C_Read... [21:59:16]Read from MH i2c: F0 09 00 [21:59:16]MH_I2C_Read... [21:59:16]Read from MH i2c: F0 09 00 24 14 00 36 D3 47 66 FC 21 6F 64 D6 [21:59:16]GetLastDocTimeStamp 1715982521 [21:59:16]current date 1715983158 [21:59:16]FM_GetShiftState [21:59:16]SAM_PROTO_GetShiftState [21:59:16]wFMCommunicate request_size=4 [21:59:16]MH_SAM_APDU [21:59:16]CAPDU: 80 13 01 00 [21:59:16]Write to MH i2c: E2 08 00 25 14 80 13 01 00 00 00 00 00 B6 [21:59:16]Write i2c OK [21:59:16]MH_I2C_Read... [21:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:16]Read from MH i2c: E2 [21:59:16]MH_I2C_Read... [21:59:16]Read from MH i2c: E2 0E 00 [21:59:16]MH_I2C_Read... [21:59:16]Read from MH i2c: E2 0E 00 25 14 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 3C [21:59:16]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [21:59:16]wFMCommunicate OK [21:59:16]SAM_PROTO_GetShiftState done [21:59:16]FM_GetShiftState done [21:59:16]opened in 1715905068 [21:59:16]opened+sec_in_day 1715991468 [21:59:16]quantity*price = 40002 [21:59:16]sum+1 = 40003 [21:59:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 153 17.05.2024 21:59 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67744 ФПД: 168450984722774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T215918&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67744&fm=168450984722774&tin=02508201610067®Number=0000000000091845&sum=40000 [21:59:17]StoreToDocumentArchive [21:59:17]shift 358 fd 67744 [21:59:17]save to /storage/0358/doc_00067744 [21:59:17]save last doc name /storage/0358/doc_00067744 to /storage/kkm_last_doc_name [21:59:17]save OK [21:59:17]Clear old archive folders... [21:59:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:59:17]tlvbuf is 01B1B2F0 [21:59:17]SAM_PROTO_ClearQueue [21:59:17]wFMCommunicate request_size=4 [21:59:17]MH_SAM_APDU [21:59:17]CAPDU: 80 09 00 00 [21:59:17]Write to MH i2c: E2 08 00 32 14 80 09 00 00 00 00 00 00 B8 [21:59:17]Write i2c OK [21:59:17]MH_I2C_Read... [21:59:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:59:17]Read from MH i2c: E2 [21:59:17]MH_I2C_Read... [21:59:17]Read from MH i2c: E2 03 00 [21:59:17]MH_I2C_Read... [21:59:17]Read from MH i2c: E2 03 00 32 14 00 90 00 BA [21:59:17]RAPDU: 90 00 [21:59:17]wFMCommunicate OK [21:59:17]SAM_PROTO_ClearQueue done [21:59:17]KKMCreateOFDPacket [21:59:17]OFDProtocolAddRootSTLVToBuf [21:59:17]FM_MakeSignedData [21:59:17]FM_MakeSignedData [21:59:17]SAM_PROTO_SignData [21:59:17]wFMCommunicate request_size=4 [21:59:17]MH_SAM_APDU [21:59:17]CAPDU: 80 0D 01 02 [21:59:17]Write to MH i2c: E2 08 00 33 14 80 0D 01 02 00 00 00 00 C0 [21:59:17]Write i2c OK [21:59:17]MH_I2C_Read... [21:59:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:59:17]Read from MH i2c: E2 [21:59:17]MH_I2C_Read... [21:59:17]Read from MH i2c: E2 03 00 [21:59:17]MH_I2C_Read... [21:59:17]Read from MH i2c: E2 03 00 33 14 00 90 00 BB [21:59:17]RAPDU: 90 00 [21:59:17]wFMCommunicate OK [21:59:17]wFMCommunicate request_size=255 [21:59:17]MH_SAM_APDU [21:59:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 98 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 99 00 00 00 F4 03 04 00 36 D3 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 [21:59:17]Write to MH i2c: E2 02 01 34 14 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 98 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 99 00 00 00 F4 03 04 00 36 D3 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 00 00 B2 [21:59:17]Write i2c OK [21:59:17]MH_I2C_Read... [21:59:17]OFD Sender: No OFD packet to send [21:59:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:18]Read from MH i2c: E2 [21:59:18]MH_I2C_Read... [21:59:18]Read from MH i2c: E2 03 00 [21:59:18]MH_I2C_Read... [21:59:18]Read from MH i2c: E2 03 00 34 14 00 90 00 BC [21:59:18]RAPDU: 90 00 [21:59:18]wFMCommunicate OK [21:59:18]wFMCommunicate request_size=11 [21:59:18]MH_SAM_APDU [21:59:18]CAPDU: 80 0D 02 02 06 99 34 8D 1B 41 56 [21:59:18]Write to MH i2c: E2 0E 00 35 14 80 0D 02 02 06 00 99 34 8D 1B 41 56 00 00 DB [21:59:18]Write i2c OK [21:59:18]MH_I2C_Read... [21:59:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:18]Read from MH i2c: E2 [21:59:18]MH_I2C_Read... [21:59:18]Read from MH i2c: E2 03 00 [21:59:18]MH_I2C_Read... [21:59:18]Read from MH i2c: E2 03 00 35 14 00 90 00 BD [21:59:18]RAPDU: 90 00 [21:59:18]wFMCommunicate OK [21:59:18]wFMCommunicate request_size=4 [21:59:18]MH_SAM_APDU [21:59:18]CAPDU: 80 0D 03 02 [21:59:18]Write to MH i2c: E2 08 00 36 14 80 0D 03 02 00 00 00 00 C5 [21:59:18]Write i2c OK [21:59:18]MH_I2C_Read... [21:59:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:59:18]Read from MH i2c: E2 [21:59:18]MH_I2C_Read... [21:59:18]Read from MH i2c: E2 0B 00 [21:59:18]MH_I2C_Read... [21:59:18]Read from MH i2c: E2 0B 00 36 14 00 4E D8 EA 7A 85 F2 3F 27 90 00 2D [21:59:18]RAPDU: 4E D8 EA 7A 85 F2 3F 27 90 00 [21:59:18]wFMCommunicate OK [21:59:18]SAM_PROTO_SignData done [21:59:18]FM_MakeSignedData done [21:59:18]CreateOFDProtocolMessage [21:59:18]wFMCommunicate request_size=4 [21:59:18]MH_SAM_APDU [21:59:18]CAPDU: 80 11 00 00 [21:59:18]Write to MH i2c: E2 08 00 37 14 80 11 00 00 00 00 00 00 C5 [21:59:18]Write i2c OK [21:59:18]MH_I2C_Read... [21:59:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:18]Read from MH i2c: E2 [21:59:18]MH_I2C_Read... [21:59:18]Read from MH i2c: E2 17 00 [21:59:18]MH_I2C_Read... [21:59:18]Read from MH i2c: E2 17 00 37 14 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:59: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:59:18]wFMCommunicate OK [21:59:18]CreateOFDProtocolMessage done [21:59:18]OFDSenderStorePacket 67744 [21:59:18]StoreOFDPacket docnum=67744 [21:59:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 B5 3B 08 01 28 DC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 98 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 99 00 00 00 F4 03 04 00 36 D3 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 99 34 8D 1B 41 56 4E D8 EA 7A 85 F2 3F 27 [21:59:18]CheckFolder [21:59:18]dirname=/storage/ofd_packets [21:59:18]CheckFolder done [21:59:18]ProducePacketName [21:59:18]name=ofd_packets/00067744 [21:59:18]NVStorageSaveData ofd_packets/00067744 [21:59:18]File name is /storage/ofd_packets/00067744 [21:59:18]Write 302 bytes [21:59:18]NVStorageSaveData done [21:59:18]OFDSenderStorePacket done [21:59:18]KKMCreateOFDPacket done [21:59:18]NVStorageSaveData kkm_last_timestamp [21:59:18]File name is /storage/kkm_last_timestamp [21:59:18]Write 4 bytes [21:59:18]NVStorageSaveData done [21:59:18]ExternCall_PrintAddStr [21:59:18]wPrintStart [21:59:18]Write to MH i2c: 01 00 00 38 14 4C [21:59:18]Write i2c OK [21:59:18]MH_I2C_Read... [21:59:18]Read from MH i2c: 01 [21:59:18]MH_I2C_Read... [21:59:18]Read from MH i2c: 01 07 00 [21:59:18]MH_I2C_Read... [21:59:18]Read from MH i2c: 01 07 00 38 14 00 00 00 00 00 FF 0F 61 [21:59:18]RasterBufferAndPrint [21:59:18]line Счет N : (1)507903 [21:59:18]line ИНН: 02508201610067 [21:59:18]line Контрольно-Кассовый Чек [21:59:18]line ПРОДАЖА [21:59:18]line ТРК (МРК, ГНК) : 42 [21:59:18]line Товар: 2710124130 [21:59:18]line Super-92-К-5 [21:59:18]line 5.900 * 67.80 [21:59:18]line = 400.02 [21:59:18]line НДС 12% НСП 1% [21:59:18]line > о реализуемом товаре [21:59:18]line ОКРУГЛЕНИЕ: -0.02 [21:59:18]line ИТОГО: 400.00 [21:59:18]line Внесено: 400.00 [21:59:18]line СДАЧА: 0.00 [21:59:18]line НСП 1% : 3.54 [21:59:18]line НДС 12% : 42.48 [21:59:18]line Наличными: 400.00 [21:59:18]line Безнал.: 0.00 [21:59:18]line Место: АЗС № 91 "Партнер Нефть" [21:59:18]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:59:18]line СНО: Общий режим [21:59:18]line Чек 153 17.05.2024 21:59 [21:59:18]line Смена: 358 ФФД: 1.0 [21:59:18]line ЗНМ: 0300000119 [21:59:18]line РНМ: 0000000000091845 [21:59:18]line Версия ККМ: 001 [21:59:18]line ФМ: 0000000000871829 [21:59:18]line ФД: 67744 [21:59:18]line ФПД: 168450984722774 [21:59:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T215918&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67744&fm=168450984722774&tin=02508201610067®Number=0000000000091845&sum=40000 [21:59:18]OFD Sender: Processing packet 67744 [packets to send 35, broken 34] [21:59:18]ProducePacketName [21:59:18]name=ofd_packets/00067744 [21:59:18]OFD Sender: To server: pG, [21:59:18]CommunicateWithHost lk.salyk.kg:30040 [21:59:18]ConnectInit lk.salyk.kg [21:59:18]written 0, free lines is 4095 [21:59:18]Connected sock=10 [21:59:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 B5 3B 08 01 28 DC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 98 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 99 00 00 00 F4 03 04 00 36 D3 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 99 34 8D 1B 41 56 4E D8 EA 7A 85 F2 3F 27 [21:59: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 17 6E 47 00 AB A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 0D 7B 47 66 B6 04 01 00 00 BC 7A E2 25 BD 1B C8 01 [21:59:18]CommunicateWithHost err = 0 [21:59:18]CheckOFDResponse [21:59:18]1017 (14) - 77093643461234 [21:59:18]1041 (16) - 0000000000871829 [21:59:18]1040 (4) - 67744 [21:59:18]1012 (4) - 17.05.2024 15:43 [21:59:18]1206 (1) - 0 [21:59:18]OFD Sender: Remove packet 67744 [21:59:18]ProducePacketName [21:59:18]name=ofd_packets/00067744 [21:59:18]NVStorageDeleteData [21:59:18]Write to MH i2c: 01 00 00 62 14 76 [21:59:18]Write i2c OK [21:59:18]MH_I2C_Read... [21:59:18]Read from MH i2c: 01 [21:59:18]MH_I2C_Read... [21:59:18]Read from MH i2c: 01 07 00 [21:59:18]MH_I2C_Read... [21:59:18]Read from MH i2c: 01 07 00 62 14 00 00 00 00 00 C7 0C 50 [21:59:18]RasterBufferAndPrint [21:59:18]line [21:59:18]line [21:59:18]line [21:59:18]line [21:59:18]line [21:59:18]written 0, free lines is 3276 [21:59:18]MH_Cut [21:59:18]Write to MH i2c: D1 01 00 69 14 01 4F [21:59:18]Write i2c OK [21:59:18]MH_I2C_Read... [21:59:18]Read from MH i2c: D1 [21:59:18]MH_I2C_Read... [21:59:18]Read from MH i2c: D1 01 00 [21:59:18]MH_I2C_Read... [21:59:18]Read from MH i2c: D1 01 00 69 14 00 4E [21:59:18]Write to MH i2c: 01 00 00 6A 14 7E [21:59:18]Write i2c OK [21:59:18]MH_I2C_Read... [21:59:19]OFD Sender: No OFD packet to send [21:59:19]*** Cut start [21:59:19]*** Purtial cut [21:59:19]*** CUTSNS_PIN = 0 [21:59:19]*** Stage 1: CUTSNS_PIN = 1 [21:59:21]Read from MH i2c: 01 [21:59:21]MH_I2C_Read... [21:59:21]*** Stop cut motor [21:59:21]*** Cut end [21:59:21]Read from MH i2c: 01 07 00 [21:59:21]MH_I2C_Read... [21:59:21]Read from MH i2c: 01 07 00 6A 14 00 00 00 00 00 FF 0F 93 [21:59:21]process_action close_receipt done [21:59:21]requested_data is exist [21:59:21]produce_requested_data [21:59:21]requested_item fm.sn is exist - process it [21:59:21]wFMCommunicate request_size=4 [21:59:21]MH_SAM_APDU [21:59:21]CAPDU: 80 11 00 00 [21:59:21]Write to MH i2c: E2 08 00 6B 14 80 11 00 00 00 00 00 00 F9 [21:59:21]Write i2c OK [21:59:21]MH_I2C_Read... [21:59:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:21]Read from MH i2c: E2 [21:59:21]MH_I2C_Read... [21:59:21]Read from MH i2c: E2 17 00 [21:59:21]MH_I2C_Read... [21:59:21]Read from MH i2c: E2 17 00 6B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4F [21:59:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:59:21]wFMCommunicate OK [21:59:21]requested_item fd.num is exist - process it [21:59:21]SAM_PROTO_GetFieldsCounters [21:59:21]wFMCommunicate request_size=4 [21:59:21]MH_SAM_APDU [21:59:21]CAPDU: 80 13 00 00 [21:59:21]Write to MH i2c: E2 08 00 6C 14 80 13 00 00 00 00 00 00 FC [21:59:21]Write i2c OK [21:59:21]MH_I2C_Read... [21:59:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:59:21]Read from MH i2c: E2 [21:59:21]MH_I2C_Read... [21:59:21]Read from MH i2c: E2 62 00 [21:59:21]MH_I2C_Read... [21:59:21]Read from MH i2c: E2 62 00 6C 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 A0 08 01 00 0E 04 04 00 66 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 FD [21:59: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 A0 08 01 00 0E 04 04 00 66 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 [21:59:21]wFMCommunicate OK [21:59:21]SAM_PROTO_GetFieldsCounters done [21:59:21]requested_item shift.num is exist - process it [21:59:21]requested_item shift.opened is exist - process it [21:59:21]req_shift_opened [21:59:21]FM_GetShiftState [21:59:21]SAM_PROTO_GetShiftState [21:59:21]wFMCommunicate request_size=4 [21:59:21]MH_SAM_APDU [21:59:21]CAPDU: 80 13 01 00 [21:59:21]Write to MH i2c: E2 08 00 6D 14 80 13 01 00 00 00 00 00 FE [21:59:21]Write i2c OK [21:59:21]MH_I2C_Read... [21:59:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:22]Read from MH i2c: E2 [21:59:22]MH_I2C_Read... [21:59:22]Read from MH i2c: E2 0E 00 [21:59:22]MH_I2C_Read... [21:59:22]Read from MH i2c: E2 0E 00 6D 14 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 84 [21:59:22]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [21:59:22]wFMCommunicate OK [21:59:22]SAM_PROTO_GetShiftState done [21:59:22]FM_GetShiftState done [21:59:22]req_shift_opened done [21:59:22]requested_item shift.open_date is exist - process it [21:59:22]req_shift_open_date [21:59:22]req_shift_open_date done [21:59:22]produce_requested_data done [21:59:22]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67744,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [21:59:22]process_action_free close_receipt [21:59:22]json_value_free [21:59:22]json_value_free done [21:59:22]process_json_proto returns [21:59:22]Send response to host [21:59:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67744,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [21:59:22]free response buf [21:59:22]execute_script done [21:59:22]execute_script returns [21:59:22]free content buf [21:59:22]Sock 9.Close socket [21:59:22]Sock 9.Thread stoped [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:20]accept exits with 7 [22:02:20]New connection [22:02:20]New thread 3066752356 created [22:02:20]Thread 3066608996 joined [22:02:20]Waiting for new connection... [22:02:20] Sock 7.Parse request [22:02:20]Sock 7.Check first char [22:02:20]Sock 7.First char is OK [22:02:20]request: POST /json_proto HTTP/1.0 [22:02:20]Method: POST [22:02:20]URL: /json_proto [22:02:20]Method is POST - this is cgi request [22:02:20]url: /json_proto [22:02:20]query_string will be loaded in cgi processing [22:02:20]execute_cgi json_proto POST (null) [22:02:20]execute_cgi path=json_proto method=POST [22:02:20]POST find Content-Length [22:02:20]Host: 172.17.41.195:8080 [22:02:20]Content-Length: 637 [22:02:20]Content-Type: application/json [22:02:20] [22:02:20]POST finish read [22:02:20]Found Content-Length = 637 [22:02:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507904", "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" ] } } [22:02:20]execute_script... [22:02: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)507904", "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" ] } } [22:02:20]POST & json_proto [22:02:20]process_json_proto [22:02:20]json parsed OK: [22:02:20]protocol is kg_v1.0 [22:02:20]action value=close_receipt [22:02:20]process_action close_receipt [22:02:20]cmd_close_receipt [22:02:20]MH_GetDate [22:02:20]Write to MH i2c: F0 00 00 6E 14 71 [22:02:20]Write i2c OK [22:02:20]MH_I2C_Read... [22:02:20]Read from MH i2c: F0 [22:02:20]MH_I2C_Read... [22:02:20]Read from MH i2c: F0 09 00 [22:02:20]MH_I2C_Read... [22:02:20]Read from MH i2c: F0 09 00 6E 14 00 EE D3 47 66 FC 21 6F 64 D8 [22:02:20]GetLastDocTimeStamp 1715983158 [22:02:20]current date 1715983342 [22:02:20]FM_GetShiftState [22:02:20]SAM_PROTO_GetShiftState [22:02:20]wFMCommunicate request_size=4 [22:02:20]MH_SAM_APDU [22:02:20]CAPDU: 80 13 01 00 [22:02:20]Write to MH i2c: E2 08 00 6F 14 80 13 01 00 00 00 00 00 00 [22:02:20]Write i2c OK [22:02:20]MH_I2C_Read... [22:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:20]Read from MH i2c: E2 [22:02:20]MH_I2C_Read... [22:02:20]Read from MH i2c: E2 0E 00 [22:02:20]MH_I2C_Read... [22:02:20]Read from MH i2c: E2 0E 00 6F 14 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 86 [22:02:20]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [22:02:20]wFMCommunicate OK [22:02:20]SAM_PROTO_GetShiftState done [22:02:20]FM_GetShiftState done [22:02:20]opened in 1715905068 [22:02:20]opened+sec_in_day 1715991468 [22:02:20]quantity*price = 74700 [22:02:20]sum+1 = 74701 [22:02:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 747.00 НСП 1% : 6.61 НДС 12% : 79.33 Наличными: 747.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 154 17.05.2024 22:02 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67745 ФПД: 239234921177397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T220222&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67745&fm=239234921177397&tin=02508201610067®Number=0000000000091845&sum=74700 [22:02:21]StoreToDocumentArchive [22:02:21]shift 358 fd 67745 [22:02:21]save to /storage/0358/doc_00067745 [22:02:21]save last doc name /storage/0358/doc_00067745 to /storage/kkm_last_doc_name [22:02:21]save OK [22:02:21]Clear old archive folders... [22:02:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:02:21]tlvbuf is B6E77600 [22:02:21]SAM_PROTO_ClearQueue [22:02:21]wFMCommunicate request_size=4 [22:02:21]MH_SAM_APDU [22:02:21]CAPDU: 80 09 00 00 [22:02:21]Write to MH i2c: E2 08 00 7C 14 80 09 00 00 00 00 00 00 02 [22:02:21]Write i2c OK [22:02:21]MH_I2C_Read... [22:02:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:02:21]Read from MH i2c: E2 [22:02:21]MH_I2C_Read... [22:02:21]Read from MH i2c: E2 03 00 [22:02:21]MH_I2C_Read... [22:02:21]Read from MH i2c: E2 03 00 7C 14 00 90 00 04 [22:02:21]RAPDU: 90 00 [22:02:21]wFMCommunicate OK [22:02:21]SAM_PROTO_ClearQueue done [22:02:21]KKMCreateOFDPacket [22:02:21]OFDProtocolAddRootSTLVToBuf [22:02:21]FM_MakeSignedData [22:02:21]FM_MakeSignedData [22:02:21]SAM_PROTO_SignData [22:02:21]wFMCommunicate request_size=4 [22:02:21]MH_SAM_APDU [22:02:21]CAPDU: 80 0D 01 02 [22:02:21]Write to MH i2c: E2 08 00 7D 14 80 0D 01 02 00 00 00 00 0A [22:02:21]Write i2c OK [22:02:21]MH_I2C_Read... [22:02:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:02:21]Read from MH i2c: E2 [22:02:21]MH_I2C_Read... [22:02:21]Read from MH i2c: E2 03 00 [22:02:21]MH_I2C_Read... [22:02:21]Read from MH i2c: E2 03 00 7D 14 00 90 00 05 [22:02:21]RAPDU: 90 00 [22:02:21]wFMCommunicate OK [22:02:21]wFMCommunicate request_size=255 [22:02:21]MH_SAM_APDU [22:02: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 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 9A 00 00 00 F4 03 04 00 EE D3 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 D9 95 38 7E [22:02:21]Write to MH i2c: E2 02 01 7E 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 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 9A 00 00 00 F4 03 04 00 EE D3 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 D9 95 38 7E 00 00 AD [22:02:21]Write i2c OK [22:02:21]MH_I2C_Read... [22:02:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:22]Read from MH i2c: E2 [22:02:22]MH_I2C_Read... [22:02:22]Read from MH i2c: E2 03 00 [22:02:22]MH_I2C_Read... [22:02:22]Read from MH i2c: E2 03 00 7E 14 00 90 00 06 [22:02:22]RAPDU: 90 00 [22:02:22]wFMCommunicate OK [22:02:22]wFMCommunicate request_size=7 [22:02:22]MH_SAM_APDU [22:02:22]CAPDU: 80 0D 02 02 02 A1 35 [22:02:22]Write to MH i2c: E2 0A 00 7F 14 80 0D 02 02 02 00 A1 35 00 00 E7 [22:02:22]Write i2c OK [22:02:22]MH_I2C_Read... [22:02:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:22]Read from MH i2c: E2 [22:02:22]MH_I2C_Read... [22:02:22]Read from MH i2c: E2 03 00 [22:02:22]MH_I2C_Read... [22:02:22]Read from MH i2c: E2 03 00 7F 14 00 90 00 07 [22:02:22]RAPDU: 90 00 [22:02:22]wFMCommunicate OK [22:02:22]wFMCommunicate request_size=4 [22:02:22]MH_SAM_APDU [22:02:22]CAPDU: 80 0D 03 02 [22:02:22]Write to MH i2c: E2 08 00 80 14 80 0D 03 02 00 00 00 00 0F [22:02:22]Write i2c OK [22:02:22]MH_I2C_Read... [22:02:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:02:22]Read from MH i2c: E2 [22:02:22]MH_I2C_Read... [22:02:22]Read from MH i2c: E2 0B 00 [22:02:22]MH_I2C_Read... [22:02:22]Read from MH i2c: E2 0B 00 80 14 00 51 D6 9F 9E 64 90 DE CC 90 00 12 [22:02:22]RAPDU: 51 D6 9F 9E 64 90 DE CC 90 00 [22:02:22]wFMCommunicate OK [22:02:22]SAM_PROTO_SignData done [22:02:22]FM_MakeSignedData done [22:02:22]CreateOFDProtocolMessage [22:02:22]wFMCommunicate request_size=4 [22:02:22]MH_SAM_APDU [22:02:22]CAPDU: 80 11 00 00 [22:02:22]Write to MH i2c: E2 08 00 81 14 80 11 00 00 00 00 00 00 0F [22:02:22]Write i2c OK [22:02:22]MH_I2C_Read... [22:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:22]Read from MH i2c: E2 [22:02:22]MH_I2C_Read... [22:02:22]Read from MH i2c: E2 17 00 [22:02:22]MH_I2C_Read... [22:02:22]Read from MH i2c: E2 17 00 81 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 65 [22:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:02:22]wFMCommunicate OK [22:02:22]CreateOFDProtocolMessage done [22:02:22]OFDSenderStorePacket 67745 [22:02:22]StoreOFDPacket docnum=67745 [22:02: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 25 60 04 01 A6 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 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 9A 00 00 00 F4 03 04 00 EE D3 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 D9 95 38 7E A1 35 51 D6 9F 9E 64 90 DE CC [22:02:22]CheckFolder [22:02:22]dirname=/storage/ofd_packets [22:02:22]CheckFolder done [22:02:22]ProducePacketName [22:02:22]name=ofd_packets/00067745 [22:02:22]NVStorageSaveData ofd_packets/00067745 [22:02:22]File name is /storage/ofd_packets/00067745 [22:02:22]Write 298 bytes [22:02:22]NVStorageSaveData done [22:02:22]OFDSenderStorePacket done [22:02:22]KKMCreateOFDPacket done [22:02:22]NVStorageSaveData kkm_last_timestamp [22:02:22]File name is /storage/kkm_last_timestamp [22:02:22]Write 4 bytes [22:02:22]NVStorageSaveData done [22:02:22]ExternCall_PrintAddStr [22:02:22]wPrintStart [22:02:22]Write to MH i2c: 01 00 00 82 14 96 [22:02:22]Write i2c OK [22:02:22]MH_I2C_Read... [22:02:22]Read from MH i2c: 01 [22:02:22]MH_I2C_Read... [22:02:22]Read from MH i2c: 01 07 00 [22:02:22]MH_I2C_Read... [22:02:22]Read from MH i2c: 01 07 00 82 14 00 00 00 00 00 FF 0F AB [22:02:22]RasterBufferAndPrint [22:02:22]line Счет N : (1)507904 [22:02:22]line ИНН: 02508201610067 [22:02:22]line Контрольно-Кассовый Чек [22:02:22]line ПРОДАЖА [22:02:22]line ТРК (МРК, ГНК) : 11 [22:02:22]line Товар: 2710194210 [22:02:22]line ДТ-К-5 [22:02:22]line 10.000 * 74.70 [22:02:22]line = 747.00 [22:02:22]line НДС 12% НСП 1% [22:02:22]line > о реализуемом товаре [22:02:22]line ИТОГО: 747.00 [22:02:22]line НСП 1% : 6.61 [22:02:22]line НДС 12% : 79.33 [22:02:22]line Наличными: 747.00 [22:02:22]line Безнал.: 0.00 [22:02:22]line Место: АЗС № 91 "Партнер Нефть" [22:02:22]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:02:22]line СНО: Общий режим [22:02:22]line Чек 154 17.05.2024 22:02 [22:02:22]line Смена: 358 ФФД: 1.0 [22:02:22]line ЗНМ: 0300000119 [22:02:22]line РНМ: 0000000000091845 [22:02:22]line Версия ККМ: 001 [22:02:22]line ФМ: 0000000000871829 [22:02:22]line ФД: 67745 [22:02:22]line ФПД: 239234921177397 [22:02:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T220222&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67745&fm=239234921177397&tin=02508201610067®Number=0000000000091845&sum=74700 [22:02:22]written 0, free lines is 4095 [22:02:22]OFD Sender: Processing packet 67745 [packets to send 35, broken 34] [22:02:22]ProducePacketName [22:02:22]name=ofd_packets/00067745 [22:02:22]OFD Sender: To server: pG, [22:02:22]CommunicateWithHost lk.salyk.kg:30040 [22:02:22]ConnectInit lk.salyk.kg [22:02:22]Connected sock=10 [22:02: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 25 60 04 01 A6 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 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 9A 00 00 00 F4 03 04 00 EE D3 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 D9 95 38 7E A1 35 51 D6 9F 9E 64 90 DE CC [22:02: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 A7 AC 47 00 CB 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 A1 08 01 00 F4 03 04 00 C5 7B 47 66 B6 04 01 00 00 FE 5E C1 B6 E4 DE CA F9 [22:02:22]CommunicateWithHost err = 0 [22:02:22]CheckOFDResponse [22:02:22]1017 (14) - 77093643461234 [22:02:22]1041 (16) - 0000000000871829 [22:02:22]1040 (4) - 67745 [22:02:22]1012 (4) - 17.05.2024 15:46 [22:02:22]1206 (1) - 0 [22:02:22]OFD Sender: Remove packet 67745 [22:02:22]ProducePacketName [22:02:22]name=ofd_packets/00067745 [22:02:22]NVStorageDeleteData [22:02:23]Write to MH i2c: 01 00 00 A9 14 BD [22:02:23]Write i2c OK [22:02:23]MH_I2C_Read... [22:02:23]Read from MH i2c: 01 [22:02:23]MH_I2C_Read... [22:02:23]Read from MH i2c: 01 07 00 [22:02:23]MH_I2C_Read... [22:02:23]Read from MH i2c: 01 07 00 A9 14 00 00 00 00 00 02 0D D3 [22:02:23]RasterBufferAndPrint [22:02:23]line [22:02:23]line [22:02:23]line [22:02:23]line [22:02:23]line [22:02:23]written 0, free lines is 3336 [22:02:23]MH_Cut [22:02:23]Write to MH i2c: D1 01 00 B0 14 01 96 [22:02:23]Write i2c OK [22:02:23]MH_I2C_Read... [22:02:23]Read from MH i2c: D1 [22:02:23]MH_I2C_Read... [22:02:23]Read from MH i2c: D1 01 00 [22:02:23]MH_I2C_Read... [22:02:23]Read from MH i2c: D1 01 00 B0 14 00 95 [22:02:23]Write to MH i2c: 01 00 00 B1 14 C5 [22:02:23]Write i2c OK [22:02:23]MH_I2C_Read... [22:02:23]OFD Sender: No OFD packet to send [22:02:23]*** Cut start [22:02:23]*** Purtial cut [22:02:23]*** Stage 1: CUTSNS_PIN = 1 [22:02:24]Read from MH i2c: 01 [22:02:24]MH_I2C_Read... [22:02:24]*** Stop cut motor [22:02:24]*** Cut end [22:02:24]Read from MH i2c: 01 07 00 [22:02:24]MH_I2C_Read... [22:02:24]Read from MH i2c: 01 07 00 B1 14 00 00 00 00 00 FF 0F DA [22:02:24]process_action close_receipt done [22:02:24]requested_data is exist [22:02:24]produce_requested_data [22:02:24]requested_item fm.sn is exist - process it [22:02:24]wFMCommunicate request_size=4 [22:02:24]MH_SAM_APDU [22:02:24]CAPDU: 80 11 00 00 [22:02:24]Write to MH i2c: E2 08 00 B2 14 80 11 00 00 00 00 00 00 40 [22:02:24]Write i2c OK [22:02:24]MH_I2C_Read... [22:02:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:24]Read from MH i2c: E2 [22:02:24]MH_I2C_Read... [22:02:24]Read from MH i2c: E2 17 00 [22:02:24]MH_I2C_Read... [22:02:24]Read from MH i2c: E2 17 00 B2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 96 [22:02:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:02:24]wFMCommunicate OK [22:02:24]requested_item fd.num is exist - process it [22:02:24]SAM_PROTO_GetFieldsCounters [22:02:24]wFMCommunicate request_size=4 [22:02:24]MH_SAM_APDU [22:02:24]CAPDU: 80 13 00 00 [22:02:24]Write to MH i2c: E2 08 00 B3 14 80 13 00 00 00 00 00 00 43 [22:02:24]Write i2c OK [22:02:24]MH_I2C_Read... [22:02:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:02:24]Read from MH i2c: E2 [22:02:24]MH_I2C_Read... [22:02:24]Read from MH i2c: E2 62 00 [22:02:24]MH_I2C_Read... [22:02:24]Read from MH i2c: E2 62 00 B3 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 A1 08 01 00 0E 04 04 00 66 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 48 [22:02: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 A1 08 01 00 0E 04 04 00 66 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 [22:02:24]wFMCommunicate OK [22:02:24]SAM_PROTO_GetFieldsCounters done [22:02:24]requested_item shift.num is exist - process it [22:02:24]requested_item shift.opened is exist - process it [22:02:24]req_shift_opened [22:02:24]FM_GetShiftState [22:02:24]SAM_PROTO_GetShiftState [22:02:24]wFMCommunicate request_size=4 [22:02:24]MH_SAM_APDU [22:02:24]CAPDU: 80 13 01 00 [22:02:24]Write to MH i2c: E2 08 00 B4 14 80 13 01 00 00 00 00 00 45 [22:02:24]Write i2c OK [22:02:24]MH_I2C_Read... [22:02:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:24]Read from MH i2c: E2 [22:02:24]MH_I2C_Read... [22:02:24]Read from MH i2c: E2 0E 00 [22:02:24]MH_I2C_Read... [22:02:24]Read from MH i2c: E2 0E 00 B4 14 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CB [22:02:24]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [22:02:24]wFMCommunicate OK [22:02:24]SAM_PROTO_GetShiftState done [22:02:24]FM_GetShiftState done [22:02:24]req_shift_opened done [22:02:24]requested_item shift.open_date is exist - process it [22:02:24]req_shift_open_date [22:02:24]req_shift_open_date done [22:02:24]produce_requested_data done [22:02:24]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67745,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [22:02:24]process_action_free close_receipt [22:02:24]json_value_free [22:02:24]json_value_free done [22:02:24]process_json_proto returns [22:02:24]Send response to host [22:02:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67745,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [22:02:24]free response buf [22:02:24]execute_script done [22:02:24]execute_script returns [22:02:24]free content buf [22:02:24]Sock 7.Close socket [22:02:24]Sock 7.Thread stoped [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]accept exits with 9 [22:08:38]New connection [22:08:38]New thread 3066608996 created [22:08:38]Thread 3066752356 joined [22:08:38]Waiting for new connection... [22:08:38] Sock 9.Parse request [22:08:38]Sock 9.Check first char [22:08:38]Sock 9.First char is OK [22:08:38]request: POST /json_proto HTTP/1.0 [22:08:38]Method: POST [22:08:38]URL: /json_proto [22:08:38]Method is POST - this is cgi request [22:08:38]url: /json_proto [22:08:38]query_string will be loaded in cgi processing [22:08:38]execute_cgi json_proto POST (null) [22:08:38]execute_cgi path=json_proto method=POST [22:08:38]POST find Content-Length [22:08:38]Host: 172.17.41.195:8080 [22:08:38]Content-Length: 816 [22:08:38]Content-Type: application/json [22:08:38] [22:08:38]POST finish read [22:08:38]Found Content-Length = 816 [22:08:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507905", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:38]execute_script... [22:08: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)507905", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:38]POST & json_proto [22:08:38]process_json_proto [22:08:38]json parsed OK: [22:08:38]protocol is kg_v1.0 [22:08:38]action value=close_receipt [22:08:38]process_action close_receipt [22:08:38]cmd_close_receipt [22:08:38]MH_GetDate [22:08:38]Write to MH i2c: F0 00 00 B5 14 B8 [22:08:38]Write i2c OK [22:08:38]MH_I2C_Read... [22:08:38]Read from MH i2c: F0 [22:08:38]MH_I2C_Read... [22:08:38]Read from MH i2c: F0 09 00 [22:08:38]MH_I2C_Read... [22:08:38]Read from MH i2c: F0 09 00 B5 14 00 68 D5 47 66 FC 21 6F 64 9B [22:08:38]GetLastDocTimeStamp 1715983342 [22:08:38]current date 1715983720 [22:08:38]FM_GetShiftState [22:08:38]SAM_PROTO_GetShiftState [22:08:38]wFMCommunicate request_size=4 [22:08:38]MH_SAM_APDU [22:08:38]CAPDU: 80 13 01 00 [22:08:38]Write to MH i2c: E2 08 00 B6 14 80 13 01 00 00 00 00 00 47 [22:08:38]Write i2c OK [22:08:38]MH_I2C_Read... [22:08:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:38]Read from MH i2c: E2 [22:08:38]MH_I2C_Read... [22:08:38]Read from MH i2c: E2 0E 00 [22:08:38]MH_I2C_Read... [22:08:38]Read from MH i2c: E2 0E 00 B6 14 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CD [22:08:38]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [22:08:38]wFMCommunicate OK [22:08:38]SAM_PROTO_GetShiftState done [22:08:38]FM_GetShiftState done [22:08:38]opened in 1715905068 [22:08:38]opened+sec_in_day 1715991468 [22:08:38]quantity*price = 30060 [22:08:38]sum+1 = 30061 [22:08:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.60 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 0.00 Безнал.: 300.60 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 155 17.05.2024 22:08 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67746 ФПД: 76374106940657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T220840&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67746&fm=76374106940657&tin=02508201610067®Number=0000000000091845&sum=30060 [22:08:39]StoreToDocumentArchive [22:08:39]shift 358 fd 67746 [22:08:39]save to /storage/0358/doc_00067746 [22:08:39]save last doc name /storage/0358/doc_00067746 to /storage/kkm_last_doc_name [22:08:39]save OK [22:08:39]Clear old archive folders... [22:08:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:08:39]tlvbuf is 01B33F40 [22:08:39]SAM_PROTO_ClearQueue [22:08:39]wFMCommunicate request_size=4 [22:08:39]MH_SAM_APDU [22:08:39]CAPDU: 80 09 00 00 [22:08:39]Write to MH i2c: E2 08 00 C3 14 80 09 00 00 00 00 00 00 49 [22:08:39]Write i2c OK [22:08:39]MH_I2C_Read... [22:08:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:39]Read from MH i2c: E2 [22:08:39]MH_I2C_Read... [22:08:39]Read from MH i2c: E2 03 00 [22:08:39]MH_I2C_Read... [22:08:39]Read from MH i2c: E2 03 00 C3 14 00 90 00 4B [22:08:39]RAPDU: 90 00 [22:08:39]wFMCommunicate OK [22:08:39]SAM_PROTO_ClearQueue done [22:08:39]KKMCreateOFDPacket [22:08:39]OFDProtocolAddRootSTLVToBuf [22:08:39]FM_MakeSignedData [22:08:39]FM_MakeSignedData [22:08:39]SAM_PROTO_SignData [22:08:39]wFMCommunicate request_size=4 [22:08:39]MH_SAM_APDU [22:08:39]CAPDU: 80 0D 01 02 [22:08:39]Write to MH i2c: E2 08 00 C4 14 80 0D 01 02 00 00 00 00 51 [22:08:39]Write i2c OK [22:08:39]MH_I2C_Read... [22:08:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:08:39]Read from MH i2c: E2 [22:08:39]MH_I2C_Read... [22:08:39]Read from MH i2c: E2 03 00 [22:08:39]MH_I2C_Read... [22:08:39]Read from MH i2c: E2 03 00 C4 14 00 90 00 4C [22:08:39]RAPDU: 90 00 [22:08:39]wFMCommunicate OK [22:08:39]wFMCommunicate request_size=255 [22:08:39]MH_SAM_APDU [22:08: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 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 9B 00 00 00 F4 03 04 00 68 D5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 45 [22:08:39]Write to MH i2c: E2 02 01 C5 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 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 9B 00 00 00 F4 03 04 00 68 D5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 45 00 00 45 [22:08:39]Write i2c OK [22:08:39]MH_I2C_Read... [22:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:39]Read from MH i2c: E2 [22:08:39]MH_I2C_Read... [22:08:39]Read from MH i2c: E2 03 00 [22:08:39]MH_I2C_Read... [22:08:39]Read from MH i2c: E2 03 00 C5 14 00 90 00 4D [22:08:39]RAPDU: 90 00 [22:08:39]wFMCommunicate OK [22:08:39]wFMCommunicate request_size=10 [22:08:39]MH_SAM_APDU [22:08:39]CAPDU: 80 0D 02 02 05 76 3B 83 A4 F1 [22:08:39]Write to MH i2c: E2 0D 00 C6 14 80 0D 02 02 05 00 76 3B 83 A4 F1 00 00 27 [22:08:39]Write i2c OK [22:08:39]MH_I2C_Read... [22:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:39]Read from MH i2c: E2 [22:08:39]MH_I2C_Read... [22:08:39]Read from MH i2c: E2 03 00 [22:08:39]MH_I2C_Read... [22:08:39]Read from MH i2c: E2 03 00 C6 14 00 90 00 4E [22:08:39]RAPDU: 90 00 [22:08:39]wFMCommunicate OK [22:08:39]wFMCommunicate request_size=4 [22:08:39]MH_SAM_APDU [22:08:39]CAPDU: 80 0D 03 02 [22:08:39]Write to MH i2c: E2 08 00 C7 14 80 0D 03 02 00 00 00 00 56 [22:08:39]Write i2c OK [22:08:39]MH_I2C_Read... [22:08:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:08:40]Read from MH i2c: E2 [22:08:40]MH_I2C_Read... [22:08:40]Read from MH i2c: E2 0B 00 [22:08:40]MH_I2C_Read... [22:08:40]Read from MH i2c: E2 0B 00 C7 14 00 9F 0E E8 2F 61 4D 29 16 90 00 08 [22:08:40]RAPDU: 9F 0E E8 2F 61 4D 29 16 90 00 [22:08:40]wFMCommunicate OK [22:08:40]SAM_PROTO_SignData done [22:08:40]FM_MakeSignedData done [22:08:40]CreateOFDProtocolMessage [22:08:40]wFMCommunicate request_size=4 [22:08:40]MH_SAM_APDU [22:08:40]CAPDU: 80 11 00 00 [22:08:40]Write to MH i2c: E2 08 00 C8 14 80 11 00 00 00 00 00 00 56 [22:08:40]Write i2c OK [22:08:40]MH_I2C_Read... [22:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:40]Read from MH i2c: E2 [22:08:40]MH_I2C_Read... [22:08:40]Read from MH i2c: E2 17 00 [22:08:40]MH_I2C_Read... [22:08:40]Read from MH i2c: E2 17 00 C8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AC [22:08: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:08:40]wFMCommunicate OK [22:08:40]CreateOFDProtocolMessage done [22:08:40]OFDSenderStorePacket 67746 [22:08:40]StoreOFDPacket docnum=67746 [22:08: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 D5 A3 07 01 9A 6A 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 9B 00 00 00 F4 03 04 00 68 D5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 45 76 3B 83 A4 F1 9F 0E E8 2F 61 4D 29 16 [22:08:40]CheckFolder [22:08:40]dirname=/storage/ofd_packets [22:08:40]CheckFolder done [22:08:40]ProducePacketName [22:08:40]name=ofd_packets/00067746 [22:08:40]NVStorageSaveData ofd_packets/00067746 [22:08:40]File name is /storage/ofd_packets/00067746 [22:08:40]Write 301 bytes [22:08:40]NVStorageSaveData done [22:08:40]OFDSenderStorePacket done [22:08:40]KKMCreateOFDPacket done [22:08:40]NVStorageSaveData kkm_last_timestamp [22:08:40]File name is /storage/kkm_last_timestamp [22:08:40]Write 4 bytes [22:08:40]NVStorageSaveData done [22:08:40]ExternCall_PrintAddStr [22:08:40]wPrintStart [22:08:40]Write to MH i2c: 01 00 00 C9 14 DD [22:08:40]Write i2c OK [22:08:40]MH_I2C_Read... [22:08:40]Read from MH i2c: 01 [22:08:40]MH_I2C_Read... [22:08:40]Read from MH i2c: 01 07 00 [22:08:40]MH_I2C_Read... [22:08:40]Read from MH i2c: 01 07 00 C9 14 00 00 00 00 00 FF 0F F2 [22:08:40]RasterBufferAndPrint [22:08:40]line Счет N : (1)507905 [22:08:40]line ИНН: 02508201610067 [22:08:40]line Контрольно-Кассовый Чек [22:08:40]line ПРОДАЖА [22:08:40]line ТРК (МРК, ГНК) : 43 [22:08:40]line Товар: 2710124130 [22:08:40]line Аи-92-К-5 [22:08:40]line 4.500 * 66.80 [22:08:40]line = 300.60 [22:08:40]line НДС 12% НСП 1% [22:08:40]line > о реализуемом товаре [22:08:40]line ИТОГО: 300.60 [22:08:40]line НСП 1% : 2.66 [22:08:40]line НДС 12% : 31.92 [22:08:40]line Наличными: 0.00 [22:08:40]line Безнал.: 300.60 [22:08:40]line Место: АЗС № 91 "Партнер Нефть" [22:08:40]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:08:40]line СНО: Общий режим [22:08:40]line Чек 155 17.05.2024 22:08 [22:08:40]line Смена: 358 ФФД: 1.0 [22:08:40]line ЗНМ: 0300000119 [22:08:40]line РНМ: 0000000000091845 [22:08:40]line Версия ККМ: 001 [22:08:40]line Платежная система: Бакай Банк [22:08:40]line ФМ: 0000000000871829 [22:08:40]line ФД: 67746 [22:08:40]line ФПД: 76374106940657 [22:08:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T220840&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67746&fm=76374106940657&tin=02508201610067®Number=0000000000091845&sum=30060 [22:08:40]OFD Sender: Processing packet 67746 [packets to send 35, broken 34] [22:08:40]ProducePacketName [22:08:40]name=ofd_packets/00067746 [22:08:40]OFD Sender: To server: pG, [22:08:40]CommunicateWithHost lk.salyk.kg:30040 [22:08:40]ConnectInit lk.salyk.kg [22:08:40]written 0, free lines is 4095 [22:08:40]Connected sock=10 [22:08: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 D5 A3 07 01 9A 6A 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 9B 00 00 00 F4 03 04 00 68 D5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 45 76 3B 83 A4 F1 9F 0E E8 2F 61 4D 29 16 [22:08: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 B2 1A 47 00 32 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 A2 08 01 00 F4 03 04 00 3F 7D 47 66 B6 04 01 00 00 4C 8C E4 58 7D B2 80 E3 [22:08:40]CommunicateWithHost err = 0 [22:08:40]CheckOFDResponse [22:08:40]1017 (14) - 77093643461234 [22:08:40]1041 (16) - 0000000000871829 [22:08:40]1040 (4) - 67746 [22:08:40]1012 (4) - 17.05.2024 15:52 [22:08:40]1206 (1) - 0 [22:08:40]OFD Sender: Remove packet 67746 [22:08:40]ProducePacketName [22:08:40]name=ofd_packets/00067746 [22:08:40]NVStorageDeleteData [22:08:40]Write to MH i2c: 01 00 00 F2 14 06 [22:08:40]Write i2c OK [22:08:40]MH_I2C_Read... [22:08:40]Read from MH i2c: 01 [22:08:40]MH_I2C_Read... [22:08:40]Read from MH i2c: 01 07 00 [22:08:40]MH_I2C_Read... [22:08:40]Read from MH i2c: 01 07 00 F2 14 00 00 00 00 00 DA 0C F3 [22:08:40]RasterBufferAndPrint [22:08:40]line [22:08:40]line [22:08:40]line [22:08:40]line [22:08:40]line [22:08:40]written 0, free lines is 3299 [22:08:40]MH_Cut [22:08:40]Write to MH i2c: D1 01 00 F9 14 01 DF [22:08:40]Write i2c OK [22:08:40]MH_I2C_Read... [22:08:40]Read from MH i2c: D1 [22:08:40]MH_I2C_Read... [22:08:40]Read from MH i2c: D1 01 00 [22:08:40]MH_I2C_Read... [22:08:40]Read from MH i2c: D1 01 00 F9 14 00 DE [22:08:40]Write to MH i2c: 01 00 00 FA 14 0E [22:08:40]Write i2c OK [22:08:40]MH_I2C_Read... [22:08:41]OFD Sender: No OFD packet to send [22:08:41]*** Cut start [22:08:41]*** Purtial cut [22:08:41]*** CUTSNS_PIN = 0 [22:08:41]*** Stage 1: CUTSNS_PIN = 1 [22:08:43]Read from MH i2c: 01 [22:08:43]MH_I2C_Read... [22:08:43]*** Stop cut motor [22:08:43]*** Cut end [22:08:43]Read from MH i2c: 01 07 00 [22:08:43]MH_I2C_Read... [22:08:43]Read from MH i2c: 01 07 00 FA 14 00 00 00 00 00 FF 0F 23 [22:08:43]process_action close_receipt done [22:08:43]requested_data is exist [22:08:43]produce_requested_data [22:08:43]requested_item fm.sn is exist - process it [22:08:43]wFMCommunicate request_size=4 [22:08:43]MH_SAM_APDU [22:08:43]CAPDU: 80 11 00 00 [22:08:43]Write to MH i2c: E2 08 00 FB 14 80 11 00 00 00 00 00 00 89 [22:08:43]Write i2c OK [22:08:43]MH_I2C_Read... [22:08:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:43]Read from MH i2c: E2 [22:08:43]MH_I2C_Read... [22:08:43]Read from MH i2c: E2 17 00 [22:08:43]MH_I2C_Read... [22:08:43]Read from MH i2c: E2 17 00 FB 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DF [22:08:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:08:43]wFMCommunicate OK [22:08:43]requested_item fd.num is exist - process it [22:08:43]SAM_PROTO_GetFieldsCounters [22:08:43]wFMCommunicate request_size=4 [22:08:43]MH_SAM_APDU [22:08:43]CAPDU: 80 13 00 00 [22:08:43]Write to MH i2c: E2 08 00 FC 14 80 13 00 00 00 00 00 00 8C [22:08:43]Write i2c OK [22:08:43]MH_I2C_Read... [22:08:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:43]Read from MH i2c: E2 [22:08:43]MH_I2C_Read... [22:08:43]Read from MH i2c: E2 62 00 [22:08:43]MH_I2C_Read... [22:08:43]Read from MH i2c: E2 62 00 FC 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 A2 08 01 00 0E 04 04 00 66 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 95 [22:08: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 A2 08 01 00 0E 04 04 00 66 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 [22:08:43]wFMCommunicate OK [22:08:43]SAM_PROTO_GetFieldsCounters done [22:08:43]requested_item shift.num is exist - process it [22:08:43]requested_item shift.opened is exist - process it [22:08:43]req_shift_opened [22:08:43]FM_GetShiftState [22:08:43]SAM_PROTO_GetShiftState [22:08:43]wFMCommunicate request_size=4 [22:08:43]MH_SAM_APDU [22:08:43]CAPDU: 80 13 01 00 [22:08:43]Write to MH i2c: E2 08 00 FD 14 80 13 01 00 00 00 00 00 8E [22:08:43]Write i2c OK [22:08:43]MH_I2C_Read... [22:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:43]Read from MH i2c: E2 [22:08:43]MH_I2C_Read... [22:08:43]Read from MH i2c: E2 0E 00 [22:08:43]MH_I2C_Read... [22:08:43]Read from MH i2c: E2 0E 00 FD 14 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 14 [22:08:43]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [22:08:43]wFMCommunicate OK [22:08:43]SAM_PROTO_GetShiftState done [22:08:43]FM_GetShiftState done [22:08:43]req_shift_opened done [22:08:43]requested_item shift.open_date is exist - process it [22:08:43]req_shift_open_date [22:08:43]req_shift_open_date done [22:08:43]produce_requested_data done [22:08:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67746,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [22:08:43]process_action_free close_receipt [22:08:43]json_value_free [22:08:43]json_value_free done [22:08:43]process_json_proto returns [22:08:43]Send response to host [22:08:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67746,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [22:08:43]free response buf [22:08:43]execute_script done [22:08:43]execute_script returns [22:08:43]free content buf [22:08:43]Sock 9.Close socket [22:08:43]Sock 9.Thread stoped [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:06]OFD Sender: No OFD packet to send [22:11:07]accept exits with 7 [22:11:07]New connection [22:11:07]New thread 3066752356 created [22:11:07]Thread 3066608996 joined [22:11:07]Waiting for new connection... [22:11:07] Sock 7.Parse request [22:11:07]Sock 7.Check first char [22:11:07]Sock 7.First char is OK [22:11:07]request: POST /json_proto HTTP/1.0 [22:11:07]Method: POST [22:11:07]URL: /json_proto [22:11:07]Method is POST - this is cgi request [22:11:07]url: /json_proto [22:11:07]query_string will be loaded in cgi processing [22:11:07]execute_cgi json_proto POST (null) [22:11:07]execute_cgi path=json_proto method=POST [22:11:07]POST find Content-Length [22:11:07]Host: 172.17.41.195:8080 [22:11:07]Content-Length: 679 [22:11:07]Content-Type: application/json [22:11:07] [22:11:07]POST finish read [22:11:07]Found Content-Length = 679 [22:11:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507906", "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:11:07]execute_script... [22:11: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)507906", "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:11:07]POST & json_proto [22:11:07]process_json_proto [22:11:07]json parsed OK: [22:11:07]protocol is kg_v1.0 [22:11:07]action value=close_receipt [22:11:07]process_action close_receipt [22:11:07]cmd_close_receipt [22:11:07]MH_GetDate [22:11:07]Write to MH i2c: F0 00 00 FE 14 01 [22:11:07]Write i2c OK [22:11:07]MH_I2C_Read... [22:11:07]Read from MH i2c: F0 [22:11:07]MH_I2C_Read... [22:11:07]Read from MH i2c: F0 09 00 [22:11:07]MH_I2C_Read... [22:11:07]Read from MH i2c: F0 09 00 FE 14 00 FE D5 47 66 FC 21 6F 64 7A [22:11:07]GetLastDocTimeStamp 1715983720 [22:11:07]current date 1715983870 [22:11:07]FM_GetShiftState [22:11:07]SAM_PROTO_GetShiftState [22:11:07]wFMCommunicate request_size=4 [22:11:07]MH_SAM_APDU [22:11:07]CAPDU: 80 13 01 00 [22:11:07]Write to MH i2c: E2 08 00 FF 14 80 13 01 00 00 00 00 00 90 [22:11:07]Write i2c OK [22:11:07]MH_I2C_Read... [22:11:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:07]Read from MH i2c: E2 [22:11:07]MH_I2C_Read... [22:11:07]Read from MH i2c: E2 0E 00 [22:11:07]MH_I2C_Read... [22:11:07]Read from MH i2c: E2 0E 00 FF 14 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 16 [22:11:07]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [22:11:07]wFMCommunicate OK [22:11:07]SAM_PROTO_GetShiftState done [22:11:07]FM_GetShiftState done [22:11:07]opened in 1715905068 [22:11:07]opened+sec_in_day 1715991468 [22:11:07]quantity*price = 200046 [22:11:07]sum+1 = 200048 [22:11:07]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 СНО: Общий режим Чек 156 17.05.2024 22:11 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67747 ФПД: 46090417740803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T221110&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67747&fm=46090417740803&tin=02508201610067®Number=0000000000091845&sum=200000 [22:11:09]StoreToDocumentArchive [22:11:09]shift 358 fd 67747 [22:11:09]save to /storage/0358/doc_00067747 [22:11:09]save last doc name /storage/0358/doc_00067747 to /storage/kkm_last_doc_name [22:11:09]save OK [22:11:09]Clear old archive folders... [22:11:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:11:09]tlvbuf is 01AF8D30 [22:11:09]SAM_PROTO_ClearQueue [22:11:09]wFMCommunicate request_size=4 [22:11:09]MH_SAM_APDU [22:11:09]CAPDU: 80 09 00 00 [22:11:09]Write to MH i2c: E2 08 00 0C 15 80 09 00 00 00 00 00 00 93 [22:11:09]Write i2c OK [22:11:09]MH_I2C_Read... [22:11:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:09]Read from MH i2c: E2 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 0C 15 00 90 00 95 [22:11:09]RAPDU: 90 00 [22:11:09]wFMCommunicate OK [22:11:09]SAM_PROTO_ClearQueue done [22:11:09]KKMCreateOFDPacket [22:11:09]OFDProtocolAddRootSTLVToBuf [22:11:09]FM_MakeSignedData [22:11:09]FM_MakeSignedData [22:11:09]SAM_PROTO_SignData [22:11:09]wFMCommunicate request_size=4 [22:11:09]MH_SAM_APDU [22:11:09]CAPDU: 80 0D 01 02 [22:11:09]Write to MH i2c: E2 08 00 0D 15 80 0D 01 02 00 00 00 00 9B [22:11:09]Write i2c OK [22:11:09]MH_I2C_Read... [22:11:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:09]Read from MH i2c: E2 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 0D 15 00 90 00 96 [22:11:09]RAPDU: 90 00 [22:11:09]wFMCommunicate OK [22:11:09]wFMCommunicate request_size=255 [22:11:09]MH_SAM_APDU [22:11: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 9C 00 00 00 F4 03 04 00 FE D5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 29 EB 42 FA [22:11:09]Write to MH i2c: E2 02 01 0E 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 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 9C 00 00 00 F4 03 04 00 FE D5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 29 EB 42 FA 00 00 28 [22:11:09]Write i2c OK [22:11:09]MH_I2C_Read... [22:11:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:09]Read from MH i2c: E2 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 0E 15 00 90 00 97 [22:11:09]RAPDU: 90 00 [22:11:09]wFMCommunicate OK [22:11:09]wFMCommunicate request_size=7 [22:11:09]MH_SAM_APDU [22:11:09]CAPDU: 80 0D 02 02 02 1C 03 [22:11:09]Write to MH i2c: E2 0A 00 0F 15 80 0D 02 02 02 00 1C 03 00 00 C1 [22:11:09]Write i2c OK [22:11:09]MH_I2C_Read... [22:11:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:09]Read from MH i2c: E2 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 0F 15 00 90 00 98 [22:11:09]RAPDU: 90 00 [22:11:09]wFMCommunicate OK [22:11:09]wFMCommunicate request_size=4 [22:11:09]MH_SAM_APDU [22:11:09]CAPDU: 80 0D 03 02 [22:11:09]Write to MH i2c: E2 08 00 10 15 80 0D 03 02 00 00 00 00 A0 [22:11:09]Write i2c OK [22:11:09]MH_I2C_Read... [22:11:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:09]Read from MH i2c: E2 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 0B 00 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 0B 00 10 15 00 80 EC 4F 56 92 6C 78 3F 90 00 67 [22:11:09]RAPDU: 80 EC 4F 56 92 6C 78 3F 90 00 [22:11:09]wFMCommunicate OK [22:11:09]SAM_PROTO_SignData done [22:11:09]FM_MakeSignedData done [22:11:09]CreateOFDProtocolMessage [22:11:09]wFMCommunicate request_size=4 [22:11:09]MH_SAM_APDU [22:11:09]CAPDU: 80 11 00 00 [22:11:09]Write to MH i2c: E2 08 00 11 15 80 11 00 00 00 00 00 00 A0 [22:11:09]Write i2c OK [22:11:09]MH_I2C_Read... [22:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:09]Read from MH i2c: E2 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 17 00 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 17 00 11 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F6 [22:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:11:09]wFMCommunicate OK [22:11:09]CreateOFDProtocolMessage done [22:11:09]OFDSenderStorePacket 67747 [22:11:09]StoreOFDPacket docnum=67747 [22:11: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 FB 93 04 01 B8 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 9C 00 00 00 F4 03 04 00 FE D5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 29 EB 42 FA 1C 03 80 EC 4F 56 92 6C 78 3F [22:11:09]CheckFolder [22:11:09]dirname=/storage/ofd_packets [22:11:09]CheckFolder done [22:11:09]ProducePacketName [22:11:09]name=ofd_packets/00067747 [22:11:09]NVStorageSaveData ofd_packets/00067747 [22:11:09]File name is /storage/ofd_packets/00067747 [22:11:09]Write 298 bytes [22:11:09]NVStorageSaveData done [22:11:09]OFDSenderStorePacket done [22:11:09]KKMCreateOFDPacket done [22:11:09]NVStorageSaveData kkm_last_timestamp [22:11:09]File name is /storage/kkm_last_timestamp [22:11:09]Write 4 bytes [22:11:09]NVStorageSaveData done [22:11:09]ExternCall_PrintAddStr [22:11:09]wPrintStart [22:11:09]Write to MH i2c: 01 00 00 12 15 27 [22:11:09]Write i2c OK [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: 01 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: 01 07 00 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: 01 07 00 12 15 00 00 00 00 00 FF 0F 3C [22:11:09]RasterBufferAndPrint [22:11:09]line Счет N : (1)507906 [22:11:09]line ИНН: 02508201610067 [22:11:09]line Контрольно-Кассовый Чек [22:11:09]line ПРОДАЖА [22:11:09]line ТРК (МРК, ГНК) : 21 [22:11:09]line Товар: 2710194210 [22:11:09]line ДТ-К-5 [22:11:09]line 26.780 * 74.70 [22:11:09]line = 2000.47 [22:11:09]line НДС 12% НСП 1% [22:11:09]line > о реализуемом товаре [22:11:09]line ОКРУГЛЕНИЕ: -0.47 [22:11:09]line ИТОГО: 2000.00 [22:11:09]line Внесено: 2000.00 [22:11:09]line СДАЧА: 0.00 [22:11:09]line НСП 1% : 17.70 [22:11:09]line НДС 12% : 212.44 [22:11:09]line Наличными: 2000.00 [22:11:09]line Безнал.: 0.00 [22:11:09]line Место: АЗС № 91 "Партнер Нефть" [22:11:09]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:11:09]line СНО: Общий режим [22:11:09]line Чек 156 17.05.2024 22:11 [22:11:09]line Смена: 358 ФФД: 1.0 [22:11:09]line ЗНМ: 0300000119 [22:11:09]line РНМ: 0000000000091845 [22:11:09]line Версия ККМ: 001 [22:11:09]line ФМ: 0000000000871829 [22:11:09]line ФД: 67747 [22:11:09]line ФПД: 46090417740803 [22:11:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T221110&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67747&fm=46090417740803&tin=02508201610067®Number=0000000000091845&sum=200000 [22:11:09]OFD Sender: Processing packet 67747 [packets to send 35, broken 34] [22:11:09]ProducePacketName [22:11:09]name=ofd_packets/00067747 [22:11:09]OFD Sender: To server: pG, [22:11:09]CommunicateWithHost lk.salyk.kg:30040 [22:11:09]ConnectInit lk.salyk.kg [22:11:09]written 0, free lines is 4095 [22:11:10]Connected sock=10 [22:11: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 FB 93 04 01 B8 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 9C 00 00 00 F4 03 04 00 FE D5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 29 EB 42 FA 1C 03 80 EC 4F 56 92 6C 78 3F [22:11: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 E2 C7 47 00 68 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 A3 08 01 00 F4 03 04 00 D5 7D 47 66 B6 04 01 00 00 F1 6E 15 DB 99 31 76 2A [22:11:10]CommunicateWithHost err = 0 [22:11:10]CheckOFDResponse [22:11:10]1017 (14) - 77093643461234 [22:11:10]1041 (16) - 0000000000871829 [22:11:10]1040 (4) - 67747 [22:11:10]1012 (4) - 17.05.2024 15:55 [22:11:10]1206 (1) - 0 [22:11:10]OFD Sender: Remove packet 67747 [22:11:10]ProducePacketName [22:11:10]name=ofd_packets/00067747 [22:11:10]NVStorageDeleteData [22:11:10]Write to MH i2c: 01 00 00 3C 15 51 [22:11:10]Write i2c OK [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: 01 [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: 01 07 00 [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: 01 07 00 3C 15 00 00 00 00 00 C2 0C 26 [22:11:10]RasterBufferAndPrint [22:11:10]line [22:11:10]line [22:11:10]line [22:11:10]line [22:11:10]line [22:11:10]written 0, free lines is 3272 [22:11:10]MH_Cut [22:11:10]Write to MH i2c: D1 01 00 43 15 01 2A [22:11:10]Write i2c OK [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: D1 [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: D1 01 00 [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: D1 01 00 43 15 00 29 [22:11:10]Write to MH i2c: 01 00 00 44 15 59 [22:11:10]Write i2c OK [22:11:10]MH_I2C_Read... [22:11:10]OFD Sender: No OFD packet to send [22:11:11]*** Cut start [22:11:11]*** Purtial cut [22:11:11]*** Stage 1: CUTSNS_PIN = 1 [22:11:11]Read from MH i2c: 01 [22:11:11]MH_I2C_Read... [22:11:11]*** Stop cut motor [22:11:11]*** Cut end [22:11:11]Read from MH i2c: 01 07 00 [22:11:11]MH_I2C_Read... [22:11:11]Read from MH i2c: 01 07 00 44 15 00 00 00 00 00 FF 0F 6E [22:11:11]process_action close_receipt done [22:11:11]requested_data is exist [22:11:11]produce_requested_data [22:11:11]requested_item fm.sn is exist - process it [22:11:11]wFMCommunicate request_size=4 [22:11:11]MH_SAM_APDU [22:11:11]CAPDU: 80 11 00 00 [22:11:11]Write to MH i2c: E2 08 00 45 15 80 11 00 00 00 00 00 00 D4 [22:11:11]Write i2c OK [22:11:11]MH_I2C_Read... [22:11:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:11]Read from MH i2c: E2 [22:11:11]MH_I2C_Read... [22:11:11]Read from MH i2c: E2 17 00 [22:11:11]MH_I2C_Read... [22:11:11]Read from MH i2c: E2 17 00 45 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2A [22:11:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:11:11]wFMCommunicate OK [22:11:11]requested_item fd.num is exist - process it [22:11:11]SAM_PROTO_GetFieldsCounters [22:11:11]wFMCommunicate request_size=4 [22:11:11]MH_SAM_APDU [22:11:11]CAPDU: 80 13 00 00 [22:11:11]Write to MH i2c: E2 08 00 46 15 80 13 00 00 00 00 00 00 D7 [22:11:11]Write i2c OK [22:11:11]MH_I2C_Read... [22:11:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:11]Read from MH i2c: E2 [22:11:11]MH_I2C_Read... [22:11:11]Read from MH i2c: E2 62 00 [22:11:11]MH_I2C_Read... [22:11:11]Read from MH i2c: E2 62 00 46 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 A3 08 01 00 0E 04 04 00 66 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 E4 [22:11: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 A3 08 01 00 0E 04 04 00 66 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 [22:11:11]wFMCommunicate OK [22:11:11]SAM_PROTO_GetFieldsCounters done [22:11:11]requested_item shift.num is exist - process it [22:11:11]requested_item shift.opened is exist - process it [22:11:11]req_shift_opened [22:11:11]FM_GetShiftState [22:11:11]SAM_PROTO_GetShiftState [22:11:11]wFMCommunicate request_size=4 [22:11:11]MH_SAM_APDU [22:11:11]CAPDU: 80 13 01 00 [22:11:11]Write to MH i2c: E2 08 00 47 15 80 13 01 00 00 00 00 00 D9 [22:11:11]Write i2c OK [22:11:11]MH_I2C_Read... [22:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:11]Read from MH i2c: E2 [22:11:11]MH_I2C_Read... [22:11:11]Read from MH i2c: E2 0E 00 [22:11:11]MH_I2C_Read... [22:11:11]Read from MH i2c: E2 0E 00 47 15 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 5F [22:11:11]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [22:11:11]wFMCommunicate OK [22:11:11]SAM_PROTO_GetShiftState done [22:11:11]FM_GetShiftState done [22:11:11]req_shift_opened done [22:11:11]requested_item shift.open_date is exist - process it [22:11:11]req_shift_open_date [22:11:11]req_shift_open_date done [22:11:11]produce_requested_data done [22:11:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67747,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [22:11:11]process_action_free close_receipt [22:11:11]json_value_free [22:11:11]json_value_free done [22:11:11]process_json_proto returns [22:11:11]Send response to host [22:11:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67747,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [22:11:11]free response buf [22:11:11]execute_script done [22:11:11]execute_script returns [22:11:11]free content buf [22:11:11]Sock 7.Close socket [22:11:11]Sock 7.Thread stoped [22:11:15]OFD Sender: No OFD packet to send [22:11:20]OFD Sender: No OFD packet to send [22:11:25]OFD Sender: No OFD packet to send [22:11:30]OFD Sender: No OFD packet to send [22:11:35]OFD Sender: No OFD packet to send [22:11:40]OFD Sender: No OFD packet to send [22:11:45]OFD Sender: No OFD packet to send [22:11:50]OFD Sender: No OFD packet to send [22:11:55]OFD Sender: No OFD packet to send [22:12:00]OFD Sender: No OFD packet to send [22:12:05]OFD Sender: No OFD packet to send [22:12:10]OFD Sender: No OFD packet to send [22:12:15]OFD Sender: No OFD packet to send [22:12:20]OFD Sender: No OFD packet to send [22:12:25]OFD Sender: No OFD packet to send [22:12:30]OFD Sender: No OFD packet to send [22:12:35]OFD Sender: No OFD packet to send [22:12:40]OFD Sender: No OFD packet to send [22:12:45]OFD Sender: No OFD packet to send [22:12:50]OFD Sender: No OFD packet to send [22:12:55]OFD Sender: No OFD packet to send [22:13:00]OFD Sender: No OFD packet to send [22:13:05]OFD Sender: No OFD packet to send [22:13:10]OFD Sender: No OFD packet to send [22:13:15]OFD Sender: No OFD packet to send [22:13:20]OFD Sender: No OFD packet to send [22:13:25]OFD Sender: No OFD packet to send [22:13:30]OFD Sender: No OFD packet to send [22:13:35]OFD Sender: No OFD packet to send [22:13:40]OFD Sender: No OFD packet to send [22:13:45]OFD Sender: No OFD packet to send [22:13:50]OFD Sender: No OFD packet to send [22:13:55]OFD Sender: No OFD packet to send [22:14:00]OFD Sender: No OFD packet to send [22:14:05]OFD Sender: No OFD packet to send [22:14:10]OFD Sender: No OFD packet to send [22:14:15]OFD Sender: No OFD packet to send [22:14:20]OFD Sender: No OFD packet to send [22:14:25]OFD Sender: No OFD packet to send [22:14:30]OFD Sender: No OFD packet to send [22:14:35]OFD Sender: No OFD packet to send [22:14:40]OFD Sender: No OFD packet to send [22:14:45]OFD Sender: No OFD packet to send [22:14:50]OFD Sender: No OFD packet to send [22:14:55]OFD Sender: No OFD packet to send [22:15:00]OFD Sender: No OFD packet to send [22:15:05]OFD Sender: No OFD packet to send [22:15:10]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:06]OFD Sender: No OFD packet to send [22:16:11]OFD Sender: No OFD packet to send [22:16:16]OFD Sender: No OFD packet to send [22:16:21]OFD Sender: No OFD packet to send [22:16:26]OFD Sender: No OFD packet to send [22:16:31]OFD Sender: No OFD packet to send [22:16:36]OFD Sender: No OFD packet to send [22:16:41]OFD Sender: No OFD packet to send [22:16:46]OFD Sender: No OFD packet to send [22:16:51]OFD Sender: No OFD packet to send [22:16:56]OFD Sender: No OFD packet to send [22:17:01]OFD Sender: No OFD packet to send [22:17:06]OFD Sender: No OFD packet to send [22:17:11]OFD Sender: No OFD packet to send [22:17:16]OFD Sender: No OFD packet to send [22:17:21]OFD Sender: No OFD packet to send [22:17:26]OFD Sender: No OFD packet to send [22:17:31]OFD Sender: No OFD packet to send [22:17:36]OFD Sender: No OFD packet to send [22:17:41]OFD Sender: No OFD packet to send [22:17:46]OFD Sender: No OFD packet to send [22:17:51]OFD Sender: No OFD packet to send [22:17:56]OFD Sender: No OFD packet to send [22:18:01]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:16]OFD Sender: No OFD packet to send [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:46]OFD Sender: No OFD packet to send [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:31]OFD Sender: No OFD packet to send [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:06]OFD Sender: No OFD packet to send [22:22:11]OFD Sender: No OFD packet to send [22:22:16]OFD Sender: No OFD packet to send [22:22:21]OFD Sender: No OFD packet to send [22:22:26]OFD Sender: No OFD packet to send [22:22:31]OFD Sender: No OFD packet to send [22:22:36]OFD Sender: No OFD packet to send [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [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:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]OFD Sender: No OFD packet to send [22:25:36]OFD Sender: No OFD packet to send [22:25:41]OFD Sender: No OFD packet to send [22:25:46]OFD Sender: No OFD packet to send [22:25:51]OFD Sender: No OFD packet to send [22:25:56]OFD Sender: No OFD packet to send [22:26:01]OFD Sender: No OFD packet to send [22:26:06]OFD Sender: No OFD packet to send [22:26:11]OFD Sender: No OFD packet to send [22:26:16]OFD Sender: No OFD packet to send [22:26:21]OFD Sender: No OFD packet to send [22:26:26]OFD Sender: No OFD packet to send [22:26:31]OFD Sender: No OFD packet to send [22:26:36]OFD Sender: No OFD packet to send [22:26:41]OFD Sender: No OFD packet to send [22:26:46]OFD Sender: No OFD packet to send [22:26:51]OFD Sender: No OFD packet to send [22:26:56]OFD Sender: No OFD packet to send [22:27:01]OFD Sender: No OFD packet to send [22:27:06]OFD Sender: No OFD packet to send [22:27:11]OFD Sender: No OFD packet to send [22:27:16]OFD Sender: No OFD packet to send [22:27:20]accept exits with 9 [22:27:20]New connection [22:27:20]New thread 3066608996 created [22:27:20]Thread 3066752356 joined [22:27:20]Waiting for new connection... [22:27:20] Sock 9.Parse request [22:27:20]Sock 9.Check first char [22:27:20]Sock 9.First char is OK [22:27:20]request: POST /json_proto HTTP/1.0 [22:27:20]Method: POST [22:27:20]URL: /json_proto [22:27:20]Method is POST - this is cgi request [22:27:20]url: /json_proto [22:27:20]query_string will be loaded in cgi processing [22:27:20]execute_cgi json_proto POST (null) [22:27:20]execute_cgi path=json_proto method=POST [22:27:20]POST find Content-Length [22:27:20]Host: 172.17.41.195:8080 [22:27:20]Content-Length: 803 [22:27:20]Content-Type: application/json [22:27:20] [22:27:20]POST finish read [22:27:20]Found Content-Length = 803 [22:27:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507907", "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" ] } } [22:27:20]execute_script... [22:27: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)507907", "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" ] } } [22:27:20]POST & json_proto [22:27:20]process_json_proto [22:27:20]json parsed OK: [22:27:20]protocol is kg_v1.0 [22:27:20]action value=close_receipt [22:27:20]process_action close_receipt [22:27:20]cmd_close_receipt [22:27:20]MH_GetDate [22:27:20]Write to MH i2c: F0 00 00 48 15 4C [22:27:20]Write i2c OK [22:27:20]MH_I2C_Read... [22:27:20]Read from MH i2c: F0 [22:27:20]MH_I2C_Read... [22:27:20]Read from MH i2c: F0 09 00 [22:27:20]MH_I2C_Read... [22:27:20]Read from MH i2c: F0 09 00 48 15 00 CA D9 47 66 FC 21 6F 64 95 [22:27:20]GetLastDocTimeStamp 1715983870 [22:27:20]current date 1715984842 [22:27:20]FM_GetShiftState [22:27:20]SAM_PROTO_GetShiftState [22:27:20]wFMCommunicate request_size=4 [22:27:20]MH_SAM_APDU [22:27:20]CAPDU: 80 13 01 00 [22:27:20]Write to MH i2c: E2 08 00 49 15 80 13 01 00 00 00 00 00 DB [22:27:20]Write i2c OK [22:27:20]MH_I2C_Read... [22:27:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:20]Read from MH i2c: E2 [22:27:20]MH_I2C_Read... [22:27:20]Read from MH i2c: E2 0E 00 [22:27:20]MH_I2C_Read... [22:27:20]Read from MH i2c: E2 0E 00 49 15 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 61 [22:27:20]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [22:27:20]wFMCommunicate OK [22:27:20]SAM_PROTO_GetShiftState done [22:27:20]FM_GetShiftState done [22:27:20]opened in 1715905068 [22:27:20]opened+sec_in_day 1715991468 [22:27:20]quantity*price = 100066 [22:27:20]sum+1 = 100067 [22:27:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 157 17.05.2024 22:27 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67748 ФПД: 124266701612191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T222722&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67748&fm=124266701612191&tin=02508201610067®Number=0000000000091845&sum=100066 [22:27:21]StoreToDocumentArchive [22:27:21]shift 358 fd 67748 [22:27:21]save to /storage/0358/doc_00067748 [22:27:21]save last doc name /storage/0358/doc_00067748 to /storage/kkm_last_doc_name [22:27:21]save OK [22:27:21]Clear old archive folders... [22:27:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:27:21]tlvbuf is B6E902D0 [22:27:21]SAM_PROTO_ClearQueue [22:27:21]wFMCommunicate request_size=4 [22:27:21]MH_SAM_APDU [22:27:21]CAPDU: 80 09 00 00 [22:27:21]Write to MH i2c: E2 08 00 56 15 80 09 00 00 00 00 00 00 DD [22:27:21]Write i2c OK [22:27:21]MH_I2C_Read... [22:27:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:21]Read from MH i2c: E2 [22:27:21]MH_I2C_Read... [22:27:21]Read from MH i2c: E2 03 00 [22:27:21]MH_I2C_Read... [22:27:21]Read from MH i2c: E2 03 00 56 15 00 90 00 DF [22:27:21]RAPDU: 90 00 [22:27:21]wFMCommunicate OK [22:27:21]SAM_PROTO_ClearQueue done [22:27:21]KKMCreateOFDPacket [22:27:21]OFDProtocolAddRootSTLVToBuf [22:27:21]FM_MakeSignedData [22:27:21]FM_MakeSignedData [22:27:21]SAM_PROTO_SignData [22:27:21]wFMCommunicate request_size=4 [22:27:21]MH_SAM_APDU [22:27:21]CAPDU: 80 0D 01 02 [22:27:21]Write to MH i2c: E2 08 00 57 15 80 0D 01 02 00 00 00 00 E5 [22:27:21]Write i2c OK [22:27:21]MH_I2C_Read... [22:27:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:21]Read from MH i2c: E2 [22:27:21]MH_I2C_Read... [22:27:21]Read from MH i2c: E2 03 00 [22:27:21]MH_I2C_Read... [22:27:21]Read from MH i2c: E2 03 00 57 15 00 90 00 E0 [22:27:21]RAPDU: 90 00 [22:27:21]wFMCommunicate OK [22:27:21]wFMCommunicate request_size=255 [22:27:21]MH_SAM_APDU [22:27: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 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 9D 00 00 00 F4 03 04 00 CA D9 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 71 [22:27:21]Write to MH i2c: E2 02 01 58 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 9D 00 00 00 F4 03 04 00 CA D9 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 71 00 00 B4 [22:27:21]Write i2c OK [22:27:21]MH_I2C_Read... [22:27:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:22]Read from MH i2c: E2 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 03 00 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 03 00 58 15 00 90 00 E1 [22:27:22]RAPDU: 90 00 [22:27:22]wFMCommunicate OK [22:27:22]wFMCommunicate request_size=10 [22:27:22]MH_SAM_APDU [22:27:22]CAPDU: 80 0D 02 02 05 05 18 9B 64 9F [22:27:22]Write to MH i2c: E2 0D 00 59 15 80 0D 02 02 05 00 05 18 9B 64 9F 00 00 AD [22:27:22]Write i2c OK [22:27:22]MH_I2C_Read... [22:27:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:22]Read from MH i2c: E2 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 03 00 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 03 00 59 15 00 90 00 E2 [22:27:22]RAPDU: 90 00 [22:27:22]wFMCommunicate OK [22:27:22]wFMCommunicate request_size=4 [22:27:22]MH_SAM_APDU [22:27:22]CAPDU: 80 0D 03 02 [22:27:22]Write to MH i2c: E2 08 00 5A 15 80 0D 03 02 00 00 00 00 EA [22:27:22]Write i2c OK [22:27:22]MH_I2C_Read... [22:27:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:22]Read from MH i2c: E2 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 0B 00 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 0B 00 5A 15 00 08 DE 5D B4 6E 01 B7 C2 90 00 CA [22:27:22]RAPDU: 08 DE 5D B4 6E 01 B7 C2 90 00 [22:27:22]wFMCommunicate OK [22:27:22]SAM_PROTO_SignData done [22:27:22]FM_MakeSignedData done [22:27:22]CreateOFDProtocolMessage [22:27:22]wFMCommunicate request_size=4 [22:27:22]MH_SAM_APDU [22:27:22]CAPDU: 80 11 00 00 [22:27:22]Write to MH i2c: E2 08 00 5B 15 80 11 00 00 00 00 00 00 EA [22:27:22]Write i2c OK [22:27:22]MH_I2C_Read... [22:27:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:22]Read from MH i2c: E2 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 17 00 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 17 00 5B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 40 [22:27:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:27:22]wFMCommunicate OK [22:27:22]CreateOFDProtocolMessage done [22:27:22]OFDSenderStorePacket 67748 [22:27:22]StoreOFDPacket docnum=67748 [22:27: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 0F 01 00 00 4E BC 07 01 08 F8 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 9D 00 00 00 F4 03 04 00 CA D9 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 71 05 18 9B 64 9F 08 DE 5D B4 6E 01 B7 C2 [22:27:22]CheckFolder [22:27:22]dirname=/storage/ofd_packets [22:27:22]CheckFolder done [22:27:22]ProducePacketName [22:27:22]name=ofd_packets/00067748 [22:27:22]NVStorageSaveData ofd_packets/00067748 [22:27:22]File name is /storage/ofd_packets/00067748 [22:27:22]Write 301 bytes [22:27:22]NVStorageSaveData done [22:27:22]OFDSenderStorePacket done [22:27:22]KKMCreateOFDPacket done [22:27:22]NVStorageSaveData kkm_last_timestamp [22:27:22]File name is /storage/kkm_last_timestamp [22:27:22]Write 4 bytes [22:27:22]NVStorageSaveData done [22:27:22]ExternCall_PrintAddStr [22:27:22]wPrintStart [22:27:22]Write to MH i2c: 01 00 00 5C 15 71 [22:27:22]Write i2c OK [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: 01 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: 01 07 00 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: 01 07 00 5C 15 00 00 00 00 00 FF 0F 86 [22:27:22]RasterBufferAndPrint [22:27:22]line Счет N : (1)507907 [22:27:22]line ИНН: 02508201610067 [22:27:22]line Контрольно-Кассовый Чек [22:27:22]line ПРОДАЖА [22:27:22]line ТРК (МРК, ГНК) : 33 [22:27:22]line Товар: 2710124130 [22:27:22]line Аи-92-К-5 [22:27:22]line 14.980 * 66.80 [22:27:22]line = 1000.66 [22:27:22]line НДС 12% НСП 1% [22:27:22]line > о реализуемом товаре [22:27:22]line ИТОГО: 1000.66 [22:27:22]line НСП 1% : 8.85 [22:27:22]line НДС 12% : 106.26 [22:27:22]line Наличными: 0.00 [22:27:22]line Безнал.: 1000.66 [22:27:22]line Место: АЗС № 91 "Партнер Нефть" [22:27:22]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:27:22]line СНО: Общий режим [22:27:22]line Чек 157 17.05.2024 22:27 [22:27:22]line Смена: 358 ФФД: 1.0 [22:27:22]line ЗНМ: 0300000119 [22:27:22]line РНМ: 0000000000091845 [22:27:22]line Версия ККМ: 001 [22:27:22]line Платежная система: O! деньги [22:27:22]line ФМ: 0000000000871829 [22:27:22]line ФД: 67748 [22:27:22]line ФПД: 124266701612191 [22:27:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T222722&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67748&fm=124266701612191&tin=02508201610067®Number=0000000000091845&sum=100066 [22:27:22]OFD Sender: Processing packet 67748 [packets to send 35, broken 34] [22:27:22]ProducePacketName [22:27:22]name=ofd_packets/00067748 [22:27:22]OFD Sender: To server: pG, [22:27:22]CommunicateWithHost lk.salyk.kg:30040 [22:27:22]ConnectInit lk.salyk.kg [22:27:22]written 0, free lines is 4095 [22:27:22]Connected sock=10 [22:27: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 4E BC 07 01 08 F8 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 9D 00 00 00 F4 03 04 00 CA D9 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 71 05 18 9B 64 9F 08 DE 5D B4 6E 01 B7 C2 [22:27: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 C3 40 47 00 39 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 A4 08 01 00 F4 03 04 00 A1 81 47 66 B6 04 01 00 00 80 65 3C B3 02 AE A1 19 [22:27:22]CommunicateWithHost err = 0 [22:27:22]CheckOFDResponse [22:27:22]1017 (14) - 77093643461234 [22:27:22]1041 (16) - 0000000000871829 [22:27:22]1040 (4) - 67748 [22:27:22]1012 (4) - 17.05.2024 16:11 [22:27:22]1206 (1) - 0 [22:27:22]OFD Sender: Remove packet 67748 [22:27:22]ProducePacketName [22:27:22]name=ofd_packets/00067748 [22:27:22]NVStorageDeleteData [22:27:23]Write to MH i2c: 01 00 00 85 15 9A [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: 01 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: 01 07 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: 01 07 00 85 15 00 00 00 00 00 DD 0C 8A [22:27:23]RasterBufferAndPrint [22:27:23]line [22:27:23]line [22:27:23]line [22:27:23]line [22:27:23]line [22:27:23]written 0, free lines is 3299 [22:27:23]MH_Cut [22:27:23]Write to MH i2c: D1 01 00 8C 15 01 73 [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: D1 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: D1 01 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: D1 01 00 8C 15 00 72 [22:27:23]Write to MH i2c: 01 00 00 8D 15 A2 [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]OFD Sender: No OFD packet to send [22:27:23]*** Cut start [22:27:23]*** Purtial cut [22:27:23]*** CUTSNS_PIN = 0 [22:27:24]*** Stage 1: CUTSNS_PIN = 1 [22:27:25]Read from MH i2c: 01 [22:27:25]MH_I2C_Read... [22:27:25]*** Stop cut motor [22:27:25]*** Cut end [22:27:25]Read from MH i2c: 01 07 00 [22:27:25]MH_I2C_Read... [22:27:25]Read from MH i2c: 01 07 00 8D 15 00 00 00 00 00 FF 0F B7 [22:27:25]process_action close_receipt done [22:27:25]requested_data is exist [22:27:25]produce_requested_data [22:27:25]requested_item fm.sn is exist - process it [22:27:25]wFMCommunicate request_size=4 [22:27:25]MH_SAM_APDU [22:27:25]CAPDU: 80 11 00 00 [22:27:25]Write to MH i2c: E2 08 00 8E 15 80 11 00 00 00 00 00 00 1D [22:27:25]Write i2c OK [22:27:25]MH_I2C_Read... [22:27:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:25]Read from MH i2c: E2 [22:27:25]MH_I2C_Read... [22:27:25]Read from MH i2c: E2 17 00 [22:27:25]MH_I2C_Read... [22:27:25]Read from MH i2c: E2 17 00 8E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 73 [22:27:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:27:25]wFMCommunicate OK [22:27:25]requested_item fd.num is exist - process it [22:27:25]SAM_PROTO_GetFieldsCounters [22:27:25]wFMCommunicate request_size=4 [22:27:25]MH_SAM_APDU [22:27:25]CAPDU: 80 13 00 00 [22:27:25]Write to MH i2c: E2 08 00 8F 15 80 13 00 00 00 00 00 00 20 [22:27:25]Write i2c OK [22:27:25]MH_I2C_Read... [22:27:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:26]Read from MH i2c: E2 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: E2 62 00 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: E2 62 00 8F 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 A4 08 01 00 0E 04 04 00 66 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 31 [22:27: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 A4 08 01 00 0E 04 04 00 66 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 [22:27:26]wFMCommunicate OK [22:27:26]SAM_PROTO_GetFieldsCounters done [22:27:26]requested_item shift.num is exist - process it [22:27:26]requested_item shift.opened is exist - process it [22:27:26]req_shift_opened [22:27:26]FM_GetShiftState [22:27:26]SAM_PROTO_GetShiftState [22:27:26]wFMCommunicate request_size=4 [22:27:26]MH_SAM_APDU [22:27:26]CAPDU: 80 13 01 00 [22:27:26]Write to MH i2c: E2 08 00 90 15 80 13 01 00 00 00 00 00 22 [22:27:26]Write i2c OK [22:27:26]MH_I2C_Read... [22:27:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:26]Read from MH i2c: E2 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: E2 0E 00 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: E2 0E 00 90 15 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 A8 [22:27:26]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [22:27:26]wFMCommunicate OK [22:27:26]SAM_PROTO_GetShiftState done [22:27:26]FM_GetShiftState done [22:27:26]req_shift_opened done [22:27:26]requested_item shift.open_date is exist - process it [22:27:26]req_shift_open_date [22:27:26]req_shift_open_date done [22:27:26]produce_requested_data done [22:27:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67748,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [22:27:26]process_action_free close_receipt [22:27:26]json_value_free [22:27:26]json_value_free done [22:27:26]process_json_proto returns [22:27:26]Send response to host [22:27:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67748,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [22:27:26]free response buf [22:27:26]execute_script done [22:27:26]execute_script returns [22:27:26]free content buf [22:27:26]Sock 9.Close socket [22:27:26]Sock 9.Thread stoped [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:50]accept exits with 7 [22:27:50]New connection [22:27:50]New thread 3066752356 created [22:27:50]Thread 3066608996 joined [22:27:50]Waiting for new connection... [22:27:50] Sock 7.Parse request [22:27:50]Sock 7.Check first char [22:27:50]Sock 7.First char is OK [22:27:50]request: POST /json_proto HTTP/1.0 [22:27:50]Method: POST [22:27:50]URL: /json_proto [22:27:50]Method is POST - this is cgi request [22:27:50]url: /json_proto [22:27:50]query_string will be loaded in cgi processing [22:27:50]execute_cgi json_proto POST (null) [22:27:50]execute_cgi path=json_proto method=POST [22:27:50]POST find Content-Length [22:27:50]Host: 172.17.41.195:8080 [22:27:50]Content-Length: 669 [22:27:50]Content-Type: application/json [22:27:50] [22:27:50]POST finish read [22:27:50]Found Content-Length = 669 [22:27:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12108", "tax_sys" : 0, "items" : [ { "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \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" ] } } [22:27:50]execute_script... [22:27: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)12108", "tax_sys" : 0, "items" : [ { "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \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" ] } } [22:27:50]POST & json_proto [22:27:50]process_json_proto [22:27:50]json parsed OK: [22:27:50]protocol is kg_v1.0 [22:27:50]action value=close_receipt [22:27:50]process_action close_receipt [22:27:50]cmd_close_receipt [22:27:50]MH_GetDate [22:27:50]Write to MH i2c: F0 00 00 91 15 95 [22:27:50]Write i2c OK [22:27:50]MH_I2C_Read... [22:27:50]Read from MH i2c: F0 [22:27:50]MH_I2C_Read... [22:27:50]Read from MH i2c: F0 09 00 [22:27:50]MH_I2C_Read... [22:27:50]Read from MH i2c: F0 09 00 91 15 00 E8 D9 47 66 FC 21 6F 64 FC [22:27:50]GetLastDocTimeStamp 1715984842 [22:27:50]current date 1715984872 [22:27:50]FM_GetShiftState [22:27:50]SAM_PROTO_GetShiftState [22:27:50]wFMCommunicate request_size=4 [22:27:50]MH_SAM_APDU [22:27:50]CAPDU: 80 13 01 00 [22:27:50]Write to MH i2c: E2 08 00 92 15 80 13 01 00 00 00 00 00 24 [22:27:50]Write i2c OK [22:27:50]MH_I2C_Read... [22:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:50]Read from MH i2c: E2 [22:27:50]MH_I2C_Read... [22:27:50]Read from MH i2c: E2 0E 00 [22:27:50]MH_I2C_Read... [22:27:50]Read from MH i2c: E2 0E 00 92 15 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 AA [22:27:50]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [22:27:50]wFMCommunicate OK [22:27:50]SAM_PROTO_GetShiftState done [22:27:50]FM_GetShiftState done [22:27:50]opened in 1715905068 [22:27:50]opened+sec_in_day 1715991468 [22:27:50]quantity*price = 9500 [22:27:50]sum+1 = 9501 [22:27: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 СНО: Общий режим Чек 158 17.05.2024 22:27 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67749 ФПД: 212381356086896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T222752&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67749&fm=212381356086896&tin=02508201610067®Number=0000000000091845&sum=9500 0 [22:27:51]StoreToDocumentArchive [22:27:51]shift 358 fd 67749 [22:27:51]save to /storage/0358/doc_00067749 [22:27:51]save last doc name /storage/0358/doc_00067749 to /storage/kkm_last_doc_name [22:27:51]save OK [22:27:51]Clear old archive folders... [22:27:51]ProcessDocumentItem done err = 0, tmpTLVsize=293 [22:27:51]tlvbuf is 01B34810 [22:27:51]SAM_PROTO_ClearQueue [22:27:51]wFMCommunicate request_size=4 [22:27:51]MH_SAM_APDU [22:27:51]CAPDU: 80 09 00 00 [22:27:51]Write to MH i2c: E2 08 00 9F 15 80 09 00 00 00 00 00 00 26 [22:27:51]Write i2c OK [22:27:51]MH_I2C_Read... [22:27:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:51]Read from MH i2c: E2 [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: E2 03 00 [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: E2 03 00 9F 15 00 90 00 28 [22:27:51]RAPDU: 90 00 [22:27:51]wFMCommunicate OK [22:27:51]SAM_PROTO_ClearQueue done [22:27:51]KKMCreateOFDPacket [22:27:51]OFDProtocolAddRootSTLVToBuf [22:27:51]FM_MakeSignedData [22:27:51]FM_MakeSignedData [22:27:51]SAM_PROTO_SignData [22:27:51]wFMCommunicate request_size=4 [22:27:51]MH_SAM_APDU [22:27:51]CAPDU: 80 0D 01 02 [22:27:51]Write to MH i2c: E2 08 00 A0 15 80 0D 01 02 00 00 00 00 2E [22:27:51]Write i2c OK [22:27:51]MH_I2C_Read... [22:27:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:51]Read from MH i2c: E2 [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: E2 03 00 [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: E2 03 00 A0 15 00 90 00 29 [22:27:51]RAPDU: 90 00 [22:27:51]wFMCommunicate OK [22:27:51]wFMCommunicate request_size=255 [22:27:51]MH_SAM_APDU [22:27:51]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 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 9E 00 00 00 F4 03 04 00 E8 D9 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [22:27:51]Write to MH i2c: E2 02 01 A1 15 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 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 9E 00 00 00 F4 03 04 00 E8 D9 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 99 [22:27:51]Write i2c OK [22:27:51]MH_I2C_Read... [22:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:51]Read from MH i2c: E2 [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: E2 03 00 [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: E2 03 00 A1 15 00 90 00 2A [22:27:51]RAPDU: 90 00 [22:27:51]wFMCommunicate OK [22:27:51]wFMCommunicate request_size=52 [22:27:51]MH_SAM_APDU [22:27:51]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 A5 08 01 00 35 04 06 00 C1 28 E3 49 56 70 [22:27:51]Write to MH i2c: E2 37 00 A2 15 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 A5 08 01 00 35 04 06 00 C1 28 E3 49 56 70 00 00 82 [22:27:51]Write i2c OK [22:27:51]MH_I2C_Read... [22:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:51]Read from MH i2c: E2 [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: E2 03 00 [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: E2 03 00 A2 15 00 90 00 2B [22:27:51]RAPDU: 90 00 [22:27:51]wFMCommunicate OK [22:27:51]wFMCommunicate request_size=4 [22:27:51]MH_SAM_APDU [22:27:51]CAPDU: 80 0D 03 02 [22:27:51]Write to MH i2c: E2 08 00 A3 15 80 0D 03 02 00 00 00 00 33 [22:27:51]Write i2c OK [22:27:51]MH_I2C_Read... [22:27:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:51]Read from MH i2c: E2 [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: E2 0B 00 [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: E2 0B 00 A3 15 00 57 E9 23 7E 4A 6B F7 E8 90 00 A9 [22:27:51]RAPDU: 57 E9 23 7E 4A 6B F7 E8 90 00 [22:27:51]wFMCommunicate OK [22:27:51]SAM_PROTO_SignData done [22:27:51]FM_MakeSignedData done [22:27:51]CreateOFDProtocolMessage [22:27:51]wFMCommunicate request_size=4 [22:27:51]MH_SAM_APDU [22:27:51]CAPDU: 80 11 00 00 [22:27:51]Write to MH i2c: E2 08 00 A4 15 80 11 00 00 00 00 00 00 33 [22:27:51]Write i2c OK [22:27:51]MH_I2C_Read... [22:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:51]Read from MH i2c: E2 [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: E2 17 00 [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: E2 17 00 A4 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 89 [22:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:27:51]wFMCommunicate OK [22:27:51]CreateOFDProtocolMessage done [22:27:51]OFDSenderStorePacket 67749 [22:27:51]StoreOFDPacket docnum=67749 [22:27: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 39 01 00 00 4D 8C 31 01 61 19 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 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 9E 00 00 00 F4 03 04 00 E8 D9 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 C1 28 E3 49 56 70 57 E9 23 7E 4A 6B F7 E8 [22:27:51]CheckFolder [22:27:51]dirname=/storage/ofd_packets [22:27:51]CheckFolder done [22:27:51]ProducePacketName [22:27:51]name=ofd_packets/00067749 [22:27:51]NVStorageSaveData ofd_packets/00067749 [22:27:51]File name is /storage/ofd_packets/00067749 [22:27:51]Write 343 bytes [22:27:51]NVStorageSaveData done [22:27:51]OFDSenderStorePacket done [22:27:51]KKMCreateOFDPacket done [22:27:51]NVStorageSaveData kkm_last_timestamp [22:27:51]File name is /storage/kkm_last_timestamp [22:27:51]Write 4 bytes [22:27:51]NVStorageSaveData done [22:27:51]ExternCall_PrintAddStr [22:27:51]wPrintStart [22:27:51]Write to MH i2c: 01 00 00 A5 15 BA [22:27:51]Write i2c OK [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: 01 [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: 01 07 00 [22:27:51]MH_I2C_Read... [22:27:51]Read from MH i2c: 01 07 00 A5 15 00 00 00 00 00 FF 0F CF [22:27:51]RasterBufferAndPrint [22:27:51]line Счет N : (3)12108 [22:27:51]line ИНН: 02508201610067 [22:27:51]line Контрольно-Кассовый Чек [22:27:51]line ПРОДАЖА [22:27:51]line Товар: 4700003010056 [22:27:51]line Чай хол Let`s Go! зел лим ПЭТ 1,25л [22:27:51]line 1.000 * 95.00 [22:27:51]line = 95.00 [22:27:51]line НДС 12% НСП 1% [22:27:51]line > о реализуемом товаре [22:27:51]line ИТОГО: 95.00 [22:27:51]line НСП 1% : 0.84 [22:27:51]line НДС 12% : 10.09 [22:27:51]line Наличными: 95.00 [22:27:51]line Безнал.: 0.00 [22:27:51]line Место: АЗС № 91 "Партнер Нефть" [22:27:51]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:27:51]line СНО: Общий режим [22:27:51]line Чек 158 17.05.2024 22:27 [22:27:51]line Смена: 358 ФФД: 1.0 [22:27:51]line ЗНМ: 0300000119 [22:27:51]line РНМ: 0000000000091845 [22:27:51]line Версия ККМ: 001 [22:27:51]line ФМ: 0000000000871829 [22:27:51]line ФД: 67749 [22:27:51]line ФПД: 212381356086896 [22:27:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T222752&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67749&fm=212381356086896&tin=02508201610067®Number=0000000000091845&sum=9500 [22:27:52]OFD Sender: Processing packet 67749 [packets to send 35, broken 34] [22:27:52]ProducePacketName [22:27:52]name=ofd_packets/00067749 [22:27:52]OFD Sender: To server: pG, [22:27:52]CommunicateWithHost lk.salyk.kg:30040 [22:27:52]ConnectInit lk.salyk.kg [22:27:52]line 0 [22:27:52]written 0, free lines is 4095 [22:27:52]Connected sock=10 [22:27: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 39 01 00 00 4D 8C 31 01 61 19 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 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 9E 00 00 00 F4 03 04 00 E8 D9 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 C1 28 E3 49 56 70 57 E9 23 7E 4A 6B F7 E8 [22:27: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 1C 47 00 4F F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A5 08 01 00 F4 03 04 00 BF 81 47 66 B6 04 01 00 00 C8 B9 2D 90 6C 13 A0 7A [22:27:52]CommunicateWithHost err = 0 [22:27:52]CheckOFDResponse [22:27:52]1017 (14) - 77093643461234 [22:27:52]1041 (16) - 0000000000871829 [22:27:52]1040 (4) - 67749 [22:27:52]1012 (4) - 17.05.2024 16:11 [22:27:52]1206 (1) - 0 [22:27:52]OFD Sender: Remove packet 67749 [22:27:52]ProducePacketName [22:27:52]name=ofd_packets/00067749 [22:27:52]NVStorageDeleteData [22:27:52]Write to MH i2c: 01 00 00 CD 15 E2 [22:27:52]Write i2c OK [22:27:52]MH_I2C_Read... [22:27:52]Read from MH i2c: 01 [22:27:52]MH_I2C_Read... [22:27:52]Read from MH i2c: 01 07 00 [22:27:52]MH_I2C_Read... [22:27:52]Read from MH i2c: 01 07 00 CD 15 00 00 00 00 00 D5 0C CA [22:27:52]RasterBufferAndPrint [22:27:52]line [22:27:52]line [22:27:52]line [22:27:52]line [22:27:52]line [22:27:52]written 0, free lines is 3289 [22:27:52]MH_Cut [22:27:52]Write to MH i2c: D1 01 00 D4 15 01 BB [22:27:52]Write i2c OK [22:27:52]MH_I2C_Read... [22:27:52]Read from MH i2c: D1 [22:27:52]MH_I2C_Read... [22:27:52]Read from MH i2c: D1 01 00 [22:27:52]MH_I2C_Read... [22:27:52]Read from MH i2c: D1 01 00 D4 15 00 BA [22:27:52]Write to MH i2c: 01 00 00 D5 15 EA [22:27:52]Write i2c OK [22:27:52]MH_I2C_Read... [22:27:52]OFD Sender: No OFD packet to send [22:27:53]*** Cut start [22:27:53]*** Purtial cut [22:27:53]*** Stage 1: CUTSNS_PIN = 1 [22:27:53]Read from MH i2c: 01 [22:27:53]MH_I2C_Read... [22:27:53]*** Stop cut motor [22:27:53]*** Cut end [22:27:53]Read from MH i2c: 01 07 00 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: 01 07 00 D5 15 00 00 00 00 00 FF 0F FF [22:27:53]process_action close_receipt done [22:27:53]requested_data is exist [22:27:53]produce_requested_data [22:27:53]requested_item fm.sn is exist - process it [22:27:53]wFMCommunicate request_size=4 [22:27:53]MH_SAM_APDU [22:27:53]CAPDU: 80 11 00 00 [22:27:53]Write to MH i2c: E2 08 00 D6 15 80 11 00 00 00 00 00 00 65 [22:27:53]Write i2c OK [22:27:53]MH_I2C_Read... [22:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:53]Read from MH i2c: E2 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: E2 17 00 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: E2 17 00 D6 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BB [22:27: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:27:53]wFMCommunicate OK [22:27:53]requested_item fd.num is exist - process it [22:27:53]SAM_PROTO_GetFieldsCounters [22:27:53]wFMCommunicate request_size=4 [22:27:53]MH_SAM_APDU [22:27:53]CAPDU: 80 13 00 00 [22:27:53]Write to MH i2c: E2 08 00 D7 15 80 13 00 00 00 00 00 00 68 [22:27:53]Write i2c OK [22:27:53]MH_I2C_Read... [22:27:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:53]Read from MH i2c: E2 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: E2 62 00 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: E2 62 00 D7 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 A5 08 01 00 0E 04 04 00 66 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 7D [22:27: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 A5 08 01 00 0E 04 04 00 66 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 [22:27:53]wFMCommunicate OK [22:27:53]SAM_PROTO_GetFieldsCounters done [22:27:53]requested_item shift.num is exist - process it [22:27:53]requested_item shift.opened is exist - process it [22:27:53]req_shift_opened [22:27:53]FM_GetShiftState [22:27:53]SAM_PROTO_GetShiftState [22:27:53]wFMCommunicate request_size=4 [22:27:53]MH_SAM_APDU [22:27:53]CAPDU: 80 13 01 00 [22:27:53]Write to MH i2c: E2 08 00 D8 15 80 13 01 00 00 00 00 00 6A [22:27:53]Write i2c OK [22:27:53]MH_I2C_Read... [22:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:53]Read from MH i2c: E2 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: E2 0E 00 [22:27:53]MH_I2C_Read... [22:27:53]Read from MH i2c: E2 0E 00 D8 15 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F0 [22:27:53]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [22:27:53]wFMCommunicate OK [22:27:53]SAM_PROTO_GetShiftState done [22:27:53]FM_GetShiftState done [22:27:53]req_shift_opened done [22:27:53]requested_item shift.open_date is exist - process it [22:27:53]req_shift_open_date [22:27:53]req_shift_open_date done [22:27:53]produce_requested_data done [22:27:53]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67749,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [22:27:53]process_action_free close_receipt [22:27:53]json_value_free [22:27:53]json_value_free done [22:27:53]process_json_proto returns [22:27:53]Send response to host [22:27:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67749,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [22:27:53]free response buf [22:27:53]execute_script done [22:27:53]execute_script returns [22:27:53]free content buf [22:27:53]Sock 7.Close socket [22:27:53]Sock 7.Thread stoped [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:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:53]accept exits with 9 [22:32:53]New connection [22:32:53]New thread 3066608996 created [22:32:53]Thread 3066752356 joined [22:32:53]Waiting for new connection... [22:32:53] Sock 9.Parse request [22:32:53]Sock 9.Check first char [22:32:53]Sock 9.First char is OK [22:32:53]request: POST /json_proto HTTP/1.0 [22:32:53]Method: POST [22:32:53]URL: /json_proto [22:32:53]Method is POST - this is cgi request [22:32:53]url: /json_proto [22:32:53]query_string will be loaded in cgi processing [22:32:53]execute_cgi json_proto POST (null) [22:32:53]execute_cgi path=json_proto method=POST [22:32:53]POST find Content-Length [22:32:53]Host: 172.17.41.195:8080 [22:32:53]Content-Length: 677 [22:32:53]Content-Type: application/json [22:32:53] [22:32:53]POST finish read [22:32:53]Found Content-Length = 677 [22:32:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507908", "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 }]} ], "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" ] } } [22:32:53]execute_script... [22:32: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)507908", "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 }]} ], "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" ] } } [22:32:53]POST & json_proto [22:32:53]process_json_proto [22:32:53]json parsed OK: [22:32:53]protocol is kg_v1.0 [22:32:53]action value=close_receipt [22:32:53]process_action close_receipt [22:32:53]cmd_close_receipt [22:32:53]MH_GetDate [22:32:53]Write to MH i2c: F0 00 00 D9 15 DD [22:32:53]Write i2c OK [22:32:53]MH_I2C_Read... [22:32:53]Read from MH i2c: F0 [22:32:53]MH_I2C_Read... [22:32:53]Read from MH i2c: F0 09 00 [22:32:53]MH_I2C_Read... [22:32:53]Read from MH i2c: F0 09 00 D9 15 00 17 DB 47 66 FC 21 6F 64 75 [22:32:53]GetLastDocTimeStamp 1715984872 [22:32:53]current date 1715985175 [22:32:53]FM_GetShiftState [22:32:53]SAM_PROTO_GetShiftState [22:32:53]wFMCommunicate request_size=4 [22:32:53]MH_SAM_APDU [22:32:53]CAPDU: 80 13 01 00 [22:32:53]Write to MH i2c: E2 08 00 DA 15 80 13 01 00 00 00 00 00 6C [22:32:53]Write i2c OK [22:32:53]MH_I2C_Read... [22:32:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:53]Read from MH i2c: E2 [22:32:53]MH_I2C_Read... [22:32:53]Read from MH i2c: E2 0E 00 [22:32:53]MH_I2C_Read... [22:32:53]Read from MH i2c: E2 0E 00 DA 15 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F2 [22:32:53]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [22:32:53]wFMCommunicate OK [22:32:53]SAM_PROTO_GetShiftState done [22:32:53]FM_GetShiftState done [22:32:53]opened in 1715905068 [22:32:53]opened+sec_in_day 1715991468 [22:32:53]quantity*price = 25050 [22:32:53]sum+1 = 25051 [22:32:53]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 СНО: Общий режим Чек 159 17.05.2024 22:32 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67750 ФПД: 29637704779875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T223255&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67750&fm=29637704779875&tin=02508201610067®Number=0000000000091845&sum=25000 [22:32:54]StoreToDocumentArchive [22:32:54]shift 358 fd 67750 [22:32:54]save to /storage/0358/doc_00067750 [22:32:54]save last doc name /storage/0358/doc_00067750 to /storage/kkm_last_doc_name [22:32:54]save OK [22:32:54]Clear old archive folders... [22:32:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:32:54]tlvbuf is 01AF8DB0 [22:32:54]SAM_PROTO_ClearQueue [22:32:54]wFMCommunicate request_size=4 [22:32:54]MH_SAM_APDU [22:32:54]CAPDU: 80 09 00 00 [22:32:54]Write to MH i2c: E2 08 00 E7 15 80 09 00 00 00 00 00 00 6E [22:32:54]Write i2c OK [22:32:54]MH_I2C_Read... [22:32:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:32:54]Read from MH i2c: E2 [22:32:54]MH_I2C_Read... [22:32:54]Read from MH i2c: E2 03 00 [22:32:54]MH_I2C_Read... [22:32:54]Read from MH i2c: E2 03 00 E7 15 00 90 00 70 [22:32:54]RAPDU: 90 00 [22:32:54]wFMCommunicate OK [22:32:54]SAM_PROTO_ClearQueue done [22:32:54]KKMCreateOFDPacket [22:32:54]OFDProtocolAddRootSTLVToBuf [22:32:54]FM_MakeSignedData [22:32:54]FM_MakeSignedData [22:32:54]SAM_PROTO_SignData [22:32:54]wFMCommunicate request_size=4 [22:32:54]MH_SAM_APDU [22:32:54]CAPDU: 80 0D 01 02 [22:32:54]Write to MH i2c: E2 08 00 E8 15 80 0D 01 02 00 00 00 00 76 [22:32:54]Write i2c OK [22:32:54]MH_I2C_Read... [22:32:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:32:54]Read from MH i2c: E2 [22:32:54]MH_I2C_Read... [22:32:54]Read from MH i2c: E2 03 00 [22:32:54]MH_I2C_Read... [22:32:54]Read from MH i2c: E2 03 00 E8 15 00 90 00 71 [22:32:54]RAPDU: 90 00 [22:32:54]wFMCommunicate OK [22:32:54]wFMCommunicate request_size=255 [22:32:54]MH_SAM_APDU [22:32:54]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 9F 00 00 00 F4 03 04 00 17 DB 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 1A [22:32:54]Write to MH i2c: E2 02 01 E9 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 9F 00 00 00 F4 03 04 00 17 DB 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 1A 00 00 72 [22:32:54]Write i2c OK [22:32:54]MH_I2C_Read... [22:32:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:55]Read from MH i2c: E2 [22:32:55]MH_I2C_Read... [22:32:55]Read from MH i2c: E2 03 00 [22:32:55]MH_I2C_Read... [22:32:55]Read from MH i2c: E2 03 00 E9 15 00 90 00 72 [22:32:55]RAPDU: 90 00 [22:32:55]wFMCommunicate OK [22:32:55]wFMCommunicate request_size=10 [22:32:55]MH_SAM_APDU [22:32:55]CAPDU: 80 0D 02 02 05 F4 90 DD 88 63 [22:32:55]Write to MH i2c: E2 0D 00 EA 15 80 0D 02 02 05 00 F4 90 DD 88 63 00 00 CF [22:32:55]Write i2c OK [22:32:55]MH_I2C_Read... [22:32:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:55]Read from MH i2c: E2 [22:32:55]MH_I2C_Read... [22:32:55]Read from MH i2c: E2 03 00 [22:32:55]MH_I2C_Read... [22:32:55]Read from MH i2c: E2 03 00 EA 15 00 90 00 73 [22:32:55]RAPDU: 90 00 [22:32:55]wFMCommunicate OK [22:32:55]wFMCommunicate request_size=4 [22:32:55]MH_SAM_APDU [22:32:55]CAPDU: 80 0D 03 02 [22:32:55]Write to MH i2c: E2 08 00 EB 15 80 0D 03 02 00 00 00 00 7B [22:32:55]Write i2c OK [22:32:55]MH_I2C_Read... [22:32:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:32:55]Read from MH i2c: E2 [22:32:55]MH_I2C_Read... [22:32:55]Read from MH i2c: E2 0B 00 [22:32:55]MH_I2C_Read... [22:32:55]Read from MH i2c: E2 0B 00 EB 15 00 73 82 53 43 CD 45 6B 34 90 00 B8 [22:32:55]RAPDU: 73 82 53 43 CD 45 6B 34 90 00 [22:32:55]wFMCommunicate OK [22:32:55]SAM_PROTO_SignData done [22:32:55]FM_MakeSignedData done [22:32:55]CreateOFDProtocolMessage [22:32:55]wFMCommunicate request_size=4 [22:32:55]MH_SAM_APDU [22:32:55]CAPDU: 80 11 00 00 [22:32:55]Write to MH i2c: E2 08 00 EC 15 80 11 00 00 00 00 00 00 7B [22:32:55]Write i2c OK [22:32:55]MH_I2C_Read... [22:32:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:55]Read from MH i2c: E2 [22:32:55]MH_I2C_Read... [22:32:55]Read from MH i2c: E2 17 00 [22:32:55]MH_I2C_Read... [22:32:55]Read from MH i2c: E2 17 00 EC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D1 [22:32: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:32:55]wFMCommunicate OK [22:32:55]CreateOFDProtocolMessage done [22:32:55]OFDSenderStorePacket 67750 [22:32:55]StoreOFDPacket docnum=67750 [22:32: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 09 C8 07 01 A3 93 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 9F 00 00 00 F4 03 04 00 17 DB 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 1A F4 90 DD 88 63 73 82 53 43 CD 45 6B 34 [22:32:55]CheckFolder [22:32:55]dirname=/storage/ofd_packets [22:32:55]CheckFolder done [22:32:55]ProducePacketName [22:32:55]name=ofd_packets/00067750 [22:32:55]NVStorageSaveData ofd_packets/00067750 [22:32:55]File name is /storage/ofd_packets/00067750 [22:32:55]Write 301 bytes [22:32:55]NVStorageSaveData done [22:32:55]OFDSenderStorePacket done [22:32:55]KKMCreateOFDPacket done [22:32:55]NVStorageSaveData kkm_last_timestamp [22:32:55]File name is /storage/kkm_last_timestamp [22:32:55]Write 4 bytes [22:32:55]NVStorageSaveData done [22:32:55]ExternCall_PrintAddStr [22:32:55]wPrintStart [22:32:55]Write to MH i2c: 01 00 00 ED 15 02 [22:32:55]Write i2c OK [22:32:55]MH_I2C_Read... [22:32:55]Read from MH i2c: 01 [22:32:55]MH_I2C_Read... [22:32:55]Read from MH i2c: 01 07 00 [22:32:55]MH_I2C_Read... [22:32:55]Read from MH i2c: 01 07 00 ED 15 00 00 00 00 00 FF 0F 17 [22:32:55]RasterBufferAndPrint [22:32:55]line Счет N : (1)507908 [22:32:55]line ИНН: 02508201610067 [22:32:55]line Контрольно-Кассовый Чек [22:32:55]line ПРОДАЖА [22:32:55]line ТРК (МРК, ГНК) : 33 [22:32:55]line Товар: 2710124130 [22:32:55]line Аи-92-К-5 [22:32:55]line 3.750 * 66.80 [22:32:55]line = 250.50 [22:32:55]line НДС 12% НСП 1% [22:32:55]line > о реализуемом товаре [22:32:55]line ОКРУГЛЕНИЕ: -0.50 [22:32:55]line ИТОГО: 250.00 [22:32:55]line Внесено: 250.00 [22:32:55]line СДАЧА: 0.00 [22:32:55]line НСП 1% : 2.22 [22:32:55]line НДС 12% : 26.60 [22:32:55]line Наличными: 250.00 [22:32:55]line Безнал.: 0.00 [22:32:55]line Место: АЗС № 91 "Партнер Нефть" [22:32:55]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:32:55]line СНО: Общий режим [22:32:55]line Чек 159 17.05.2024 22:32 [22:32:55]line Смена: 358 ФФД: 1.0 [22:32:55]line ЗНМ: 0300000119 [22:32:55]line РНМ: 0000000000091845 [22:32:55]line Версия ККМ: 001 [22:32:55]line ФМ: 0000000000871829 [22:32:55]line ФД: 67750 [22:32:55]line ФПД: 29637704779875 [22:32:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T223255&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67750&fm=29637704779875&tin=02508201610067®Number=0000000000091845&sum=25000 [22:32:55]written 0, free lines is 4095 [22:32:55]OFD Sender: Processing packet 67750 [packets to send 35, broken 34] [22:32:55]ProducePacketName [22:32:55]name=ofd_packets/00067750 [22:32:55]OFD Sender: To server: pG, [22:32:55]CommunicateWithHost lk.salyk.kg:30040 [22:32:55]ConnectInit lk.salyk.kg [22:32:55]Connected sock=10 [22:32: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 0F 01 00 00 09 C8 07 01 A3 93 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 9F 00 00 00 F4 03 04 00 17 DB 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 1A F4 90 DD 88 63 73 82 53 43 CD 45 6B 34 [22:32: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 1A 69 47 00 A4 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 A6 08 01 00 F4 03 04 00 EE 82 47 66 B6 04 01 00 00 C9 18 C9 0D 5D 7C C6 F0 [22:32:55]CommunicateWithHost err = 0 [22:32:55]CheckOFDResponse [22:32:55]1017 (14) - 77093643461234 [22:32:55]1041 (16) - 0000000000871829 [22:32:55]1040 (4) - 67750 [22:32:55]1012 (4) - 17.05.2024 16:16 [22:32:55]1206 (1) - 0 [22:32:55]OFD Sender: Remove packet 67750 [22:32:55]ProducePacketName [22:32:55]name=ofd_packets/00067750 [22:32:55]NVStorageDeleteData [22:32:55]Write to MH i2c: 01 00 00 17 16 2D [22:32:55]Write i2c OK [22:32:55]MH_I2C_Read... [22:32:55]Read from MH i2c: 01 [22:32:55]MH_I2C_Read... [22:32:55]Read from MH i2c: 01 07 00 [22:32:55]MH_I2C_Read... [22:32:55]Read from MH i2c: 01 07 00 17 16 00 00 00 00 00 CE 0C 0E [22:32:55]RasterBufferAndPrint [22:32:55]line [22:32:55]line [22:32:55]line [22:32:55]line [22:32:55]line [22:32:55]written 0, free lines is 3285 [22:32:55]MH_Cut [22:32:55]Write to MH i2c: D1 01 00 1E 16 01 06 [22:32:55]Write i2c OK [22:32:55]MH_I2C_Read... [22:32:55]Read from MH i2c: D1 [22:32:55]MH_I2C_Read... [22:32:55]Read from MH i2c: D1 01 00 [22:32:55]MH_I2C_Read... [22:32:55]Read from MH i2c: D1 01 00 1E 16 00 05 [22:32:55]Write to MH i2c: 01 00 00 1F 16 35 [22:32:55]Write i2c OK [22:32:55]MH_I2C_Read... [22:32:56]OFD Sender: No OFD packet to send [22:32:56]*** Cut start [22:32:56]*** Purtial cut [22:32:56]*** CUTSNS_PIN = 0 [22:32:56]*** Stage 1: CUTSNS_PIN = 1 [22:32:58]Read from MH i2c: 01 [22:32:58]MH_I2C_Read... [22:32:58]*** Stop cut motor [22:32:58]*** Cut end [22:32:58]Read from MH i2c: 01 07 00 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: 01 07 00 1F 16 00 00 00 00 00 FF 0F 4A [22:32:58]process_action close_receipt done [22:32:58]requested_data is exist [22:32:58]produce_requested_data [22:32:58]requested_item fm.sn is exist - process it [22:32:58]wFMCommunicate request_size=4 [22:32:58]MH_SAM_APDU [22:32:58]CAPDU: 80 11 00 00 [22:32:58]Write to MH i2c: E2 08 00 20 16 80 11 00 00 00 00 00 00 B0 [22:32:58]Write i2c OK [22:32:58]MH_I2C_Read... [22:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:58]Read from MH i2c: E2 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: E2 17 00 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: E2 17 00 20 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 06 [22:32: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:32:58]wFMCommunicate OK [22:32:58]requested_item fd.num is exist - process it [22:32:58]SAM_PROTO_GetFieldsCounters [22:32:58]wFMCommunicate request_size=4 [22:32:58]MH_SAM_APDU [22:32:58]CAPDU: 80 13 00 00 [22:32:58]Write to MH i2c: E2 08 00 21 16 80 13 00 00 00 00 00 00 B3 [22:32:58]Write i2c OK [22:32:58]MH_I2C_Read... [22:32:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:32:58]Read from MH i2c: E2 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: E2 62 00 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: E2 62 00 21 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 A6 08 01 00 0E 04 04 00 66 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 CC [22:32: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 A6 08 01 00 0E 04 04 00 66 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 [22:32:58]wFMCommunicate OK [22:32:58]SAM_PROTO_GetFieldsCounters done [22:32:58]requested_item shift.num is exist - process it [22:32:58]requested_item shift.opened is exist - process it [22:32:58]req_shift_opened [22:32:58]FM_GetShiftState [22:32:58]SAM_PROTO_GetShiftState [22:32:58]wFMCommunicate request_size=4 [22:32:58]MH_SAM_APDU [22:32:58]CAPDU: 80 13 01 00 [22:32:58]Write to MH i2c: E2 08 00 22 16 80 13 01 00 00 00 00 00 B5 [22:32:58]Write i2c OK [22:32:58]MH_I2C_Read... [22:32:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:58]Read from MH i2c: E2 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: E2 0E 00 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: E2 0E 00 22 16 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 3B [22:32:58]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [22:32:58]wFMCommunicate OK [22:32:58]SAM_PROTO_GetShiftState done [22:32:58]FM_GetShiftState done [22:32:58]req_shift_opened done [22:32:58]requested_item shift.open_date is exist - process it [22:32:58]req_shift_open_date [22:32:58]req_shift_open_date done [22:32:58]produce_requested_data done [22:32:58]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67750,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [22:32:58]process_action_free close_receipt [22:32:58]json_value_free [22:32:58]json_value_free done [22:32:58]process_json_proto returns [22:32:58]Send response to host [22:32:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67750,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [22:32:58]free response buf [22:32:58]execute_script done [22:32:58]execute_script returns [22:32:58]free content buf [22:32:58]Sock 9.Close socket [22:32:58]Sock 9.Thread stoped [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:46]OFD Sender: No OFD packet to send [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:34:01]OFD Sender: No OFD packet to send [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:41]OFD Sender: No OFD packet to send [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:43]accept exits with 7 [22:35:43]New connection [22:35:43]New thread 3066752356 created [22:35:43]Thread 3066608996 joined [22:35:43]Waiting for new connection... [22:35:43] Sock 7.Parse request [22:35:43]Sock 7.Check first char [22:35:43]Sock 7.First char is OK [22:35:43]request: POST /json_proto HTTP/1.0 [22:35:43]Method: POST [22:35:43]URL: /json_proto [22:35:43]Method is POST - this is cgi request [22:35:43]url: /json_proto [22:35:43]query_string will be loaded in cgi processing [22:35:43]execute_cgi json_proto POST (null) [22:35:43]execute_cgi path=json_proto method=POST [22:35:43]POST find Content-Length [22:35:43]Host: 172.17.41.195:8080 [22:35:43]Content-Length: 682 [22:35:43]Content-Type: application/json [22:35:43] [22:35:43]POST finish read [22:35:43]Found Content-Length = 682 [22:35:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507909", "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" ] } } [22:35:43]execute_script... [22:35: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)507909", "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" ] } } [22:35:43]POST & json_proto [22:35:43]process_json_proto [22:35:43]json parsed OK: [22:35:43]protocol is kg_v1.0 [22:35:43]action value=close_receipt [22:35:43]process_action close_receipt [22:35:43]cmd_close_receipt [22:35:43]MH_GetDate [22:35:43]Write to MH i2c: F0 00 00 23 16 28 [22:35:43]Write i2c OK [22:35:43]MH_I2C_Read... [22:35:43]Read from MH i2c: F0 [22:35:43]MH_I2C_Read... [22:35:43]Read from MH i2c: F0 09 00 [22:35:43]MH_I2C_Read... [22:35:43]Read from MH i2c: F0 09 00 23 16 00 C2 DB 47 66 FC 21 6F 64 6B [22:35:43]GetLastDocTimeStamp 1715985175 [22:35:43]current date 1715985346 [22:35:43]FM_GetShiftState [22:35:43]SAM_PROTO_GetShiftState [22:35:43]wFMCommunicate request_size=4 [22:35:43]MH_SAM_APDU [22:35:43]CAPDU: 80 13 01 00 [22:35:43]Write to MH i2c: E2 08 00 24 16 80 13 01 00 00 00 00 00 B7 [22:35:43]Write i2c OK [22:35:43]MH_I2C_Read... [22:35:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:44]Read from MH i2c: E2 [22:35:44]MH_I2C_Read... [22:35:44]Read from MH i2c: E2 0E 00 [22:35:44]MH_I2C_Read... [22:35:44]Read from MH i2c: E2 0E 00 24 16 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 3D [22:35:44]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [22:35:44]wFMCommunicate OK [22:35:44]SAM_PROTO_GetShiftState done [22:35:44]FM_GetShiftState done [22:35:44]opened in 1715905068 [22:35:44]opened+sec_in_day 1715991468 [22:35:44]quantity*price = 100066 [22:35:44]sum+1 = 100067 [22:35:44]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 СНО: Общий режим Чек 160 17.05.2024 22:35 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67751 ФПД: 164947475529828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T223546&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67751&fm=164947475529828&tin=02508201610067®Number=0000000000091845&sum=100000 [22:35:45]StoreToDocumentArchive [22:35:45]shift 358 fd 67751 [22:35:45]save to /storage/0358/doc_00067751 [22:35:45]save last doc name /storage/0358/doc_00067751 to /storage/kkm_last_doc_name [22:35:45]save OK [22:35:45]Clear old archive folders... [22:35:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:35:45]tlvbuf is B6E77180 [22:35:45]SAM_PROTO_ClearQueue [22:35:45]wFMCommunicate request_size=4 [22:35:45]MH_SAM_APDU [22:35:45]CAPDU: 80 09 00 00 [22:35:45]Write to MH i2c: E2 08 00 31 16 80 09 00 00 00 00 00 00 B9 [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 [22:35:45]MH_I2C_Read... [22:35:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:35:45]Read from MH i2c: E2 03 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 03 00 31 16 00 90 00 BB [22:35:45]RAPDU: 90 00 [22:35:45]wFMCommunicate OK [22:35:45]SAM_PROTO_ClearQueue done [22:35:45]KKMCreateOFDPacket [22:35:45]OFDProtocolAddRootSTLVToBuf [22:35:45]FM_MakeSignedData [22:35:45]FM_MakeSignedData [22:35:45]SAM_PROTO_SignData [22:35:45]wFMCommunicate request_size=4 [22:35:45]MH_SAM_APDU [22:35:45]CAPDU: 80 0D 01 02 [22:35:45]Write to MH i2c: E2 08 00 32 16 80 0D 01 02 00 00 00 00 C1 [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 [22:35:45]MH_I2C_Read... [22:35:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:35:45]Read from MH i2c: E2 03 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 03 00 32 16 00 90 00 BC [22:35:45]RAPDU: 90 00 [22:35:45]wFMCommunicate OK [22:35:45]wFMCommunicate request_size=255 [22:35:45]MH_SAM_APDU [22:35:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A0 00 00 00 F4 03 04 00 C2 DB 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 96 [22:35:45]Write to MH i2c: E2 02 01 33 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 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 A0 00 00 00 F4 03 04 00 C2 DB 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 96 00 00 31 [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:45]Read from MH i2c: E2 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 03 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 03 00 33 16 00 90 00 BD [22:35:45]RAPDU: 90 00 [22:35:45]wFMCommunicate OK [22:35:45]wFMCommunicate request_size=10 [22:35:45]MH_SAM_APDU [22:35:45]CAPDU: 80 0D 02 02 05 04 D3 AF 80 64 [22:35:45]Write to MH i2c: E2 0D 00 34 16 80 0D 02 02 05 00 04 D3 AF 80 64 00 00 38 [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:45]Read from MH i2c: E2 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 03 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 03 00 34 16 00 90 00 BE [22:35:45]RAPDU: 90 00 [22:35:45]wFMCommunicate OK [22:35:45]wFMCommunicate request_size=4 [22:35:45]MH_SAM_APDU [22:35:45]CAPDU: 80 0D 03 02 [22:35:45]Write to MH i2c: E2 08 00 35 16 80 0D 03 02 00 00 00 00 C6 [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:35:45]Read from MH i2c: E2 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 0B 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 0B 00 35 16 00 E7 D9 33 9E DB 47 FB CC 90 00 41 [22:35:45]RAPDU: E7 D9 33 9E DB 47 FB CC 90 00 [22:35:45]wFMCommunicate OK [22:35:45]SAM_PROTO_SignData done [22:35:45]FM_MakeSignedData done [22:35:45]CreateOFDProtocolMessage [22:35:45]wFMCommunicate request_size=4 [22:35:45]MH_SAM_APDU [22:35:45]CAPDU: 80 11 00 00 [22:35:45]Write to MH i2c: E2 08 00 36 16 80 11 00 00 00 00 00 00 C6 [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:45]Read from MH i2c: E2 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 17 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: E2 17 00 36 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1C [22:35:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:35:45]wFMCommunicate OK [22:35:45]CreateOFDProtocolMessage done [22:35:45]OFDSenderStorePacket 67751 [22:35:45]StoreOFDPacket docnum=67751 [22:35: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 DB 64 07 01 AC C2 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 A0 00 00 00 F4 03 04 00 C2 DB 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 96 04 D3 AF 80 64 E7 D9 33 9E DB 47 FB CC [22:35:45]CheckFolder [22:35:45]dirname=/storage/ofd_packets [22:35:45]CheckFolder done [22:35:45]ProducePacketName [22:35:45]name=ofd_packets/00067751 [22:35:45]NVStorageSaveData ofd_packets/00067751 [22:35:45]File name is /storage/ofd_packets/00067751 [22:35:45]Write 301 bytes [22:35:45]NVStorageSaveData done [22:35:45]OFDSenderStorePacket done [22:35:45]KKMCreateOFDPacket done [22:35:45]NVStorageSaveData kkm_last_timestamp [22:35:45]File name is /storage/kkm_last_timestamp [22:35:45]Write 4 bytes [22:35:45]NVStorageSaveData done [22:35:45]ExternCall_PrintAddStr [22:35:45]wPrintStart [22:35:45]Write to MH i2c: 01 00 00 37 16 4D [22:35:45]Write i2c OK [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: 01 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: 01 07 00 [22:35:45]MH_I2C_Read... [22:35:45]Read from MH i2c: 01 07 00 37 16 00 00 00 00 00 FF 0F 62 [22:35:45]RasterBufferAndPrint [22:35:45]line Счет N : (1)507909 [22:35:45]line ИНН: 02508201610067 [22:35:45]line Контрольно-Кассовый Чек [22:35:45]line ПРОДАЖА [22:35:45]line ТРК (МРК, ГНК) : 13 [22:35:45]line Товар: 2710124130 [22:35:45]line Аи-92-К-5 [22:35:45]line 14.980 * 66.80 [22:35:45]line = 1000.66 [22:35:45]line НДС 12% НСП 1% [22:35:45]line > о реализуемом товаре [22:35:45]line ОКРУГЛЕНИЕ: -0.66 [22:35:45]line ИТОГО: 1000.00 [22:35:45]line Внесено: 1000.00 [22:35:45]line СДАЧА: 0.00 [22:35:45]line НСП 1% : 8.85 [22:35:45]line НДС 12% : 106.26 [22:35:45]line Наличными: 1000.00 [22:35:45]line Безнал.: 0.00 [22:35:45]line Место: АЗС № 91 "Партнер Нефть" [22:35:45]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:35:45]line СНО: Общий режим [22:35:45]line Чек 160 17.05.2024 22:35 [22:35:45]line Смена: 358 ФФД: 1.0 [22:35:45]line ЗНМ: 0300000119 [22:35:45]line РНМ: 0000000000091845 [22:35:45]line Версия ККМ: 001 [22:35:45]line ФМ: 0000000000871829 [22:35:45]line ФД: 67751 [22:35:45]line ФПД: 164947475529828 [22:35:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T223546&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67751&fm=164947475529828&tin=02508201610067®Number=0000000000091845&sum=100000 [22:35:45]written 0, free lines is 4095 [22:35:45]OFD Sender: Processing packet 67751 [packets to send 35, broken 34] [22:35:45]ProducePacketName [22:35:45]name=ofd_packets/00067751 [22:35:45]OFD Sender: To server: pG, [22:35:45]CommunicateWithHost lk.salyk.kg:30040 [22:35:45]ConnectInit lk.salyk.kg [22:35:46]Connected sock=10 [22:35: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 DB 64 07 01 AC C2 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 A0 00 00 00 F4 03 04 00 C2 DB 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 96 04 D3 AF 80 64 E7 D9 33 9E DB 47 FB CC [22:35: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 47 DC 47 00 A3 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 99 83 47 66 B6 04 01 00 00 A0 15 03 AF 02 B1 C7 A7 [22:35:46]CommunicateWithHost err = 0 [22:35:46]CheckOFDResponse [22:35:46]1017 (14) - 77093643461234 [22:35:46]1041 (16) - 0000000000871829 [22:35:46]1040 (4) - 67751 [22:35:46]1012 (4) - 17.05.2024 16:19 [22:35:46]1206 (1) - 0 [22:35:46]OFD Sender: Remove packet 67751 [22:35:46]ProducePacketName [22:35:46]name=ofd_packets/00067751 [22:35:46]NVStorageDeleteData [22:35:46]Write to MH i2c: 01 00 00 61 16 77 [22:35:46]Write i2c OK [22:35:46]MH_I2C_Read... [22:35:46]Read from MH i2c: 01 [22:35:46]MH_I2C_Read... [22:35:46]Read from MH i2c: 01 07 00 [22:35:46]MH_I2C_Read... [22:35:46]Read from MH i2c: 01 07 00 61 16 00 00 00 00 00 C7 0C 51 [22:35:46]RasterBufferAndPrint [22:35:46]line [22:35:46]line [22:35:46]line [22:35:46]line [22:35:46]line [22:35:46]written 0, free lines is 3276 [22:35:46]MH_Cut [22:35:46]Write to MH i2c: D1 01 00 68 16 01 50 [22:35:46]Write i2c OK [22:35:46]MH_I2C_Read... [22:35:46]Read from MH i2c: D1 [22:35:46]MH_I2C_Read... [22:35:46]Read from MH i2c: D1 01 00 [22:35:46]MH_I2C_Read... [22:35:46]Read from MH i2c: D1 01 00 68 16 00 4F [22:35:46]Write to MH i2c: 01 00 00 69 16 7F [22:35:46]Write i2c OK [22:35:46]MH_I2C_Read... [22:35:46]OFD Sender: No OFD packet to send [22:35:47]*** Cut start [22:35:47]*** Purtial cut [22:35:47]*** Stage 1: CUTSNS_PIN = 1 [22:35:47]Read from MH i2c: 01 [22:35:47]MH_I2C_Read... [22:35:47]*** Stop cut motor [22:35:47]*** Cut end [22:35:47]Read from MH i2c: 01 07 00 [22:35:47]MH_I2C_Read... [22:35:47]Read from MH i2c: 01 07 00 69 16 00 00 00 00 00 FF 0F 94 [22:35:47]process_action close_receipt done [22:35:47]requested_data is exist [22:35:47]produce_requested_data [22:35:47]requested_item fm.sn is exist - process it [22:35:47]wFMCommunicate request_size=4 [22:35:47]MH_SAM_APDU [22:35:47]CAPDU: 80 11 00 00 [22:35:47]Write to MH i2c: E2 08 00 6A 16 80 11 00 00 00 00 00 00 FA [22:35:47]Write i2c OK [22:35:47]MH_I2C_Read... [22:35:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:47]Read from MH i2c: E2 [22:35:47]MH_I2C_Read... [22:35:47]Read from MH i2c: E2 17 00 [22:35:47]MH_I2C_Read... [22:35:47]Read from MH i2c: E2 17 00 6A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 50 [22:35:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:35:47]wFMCommunicate OK [22:35:47]requested_item fd.num is exist - process it [22:35:47]SAM_PROTO_GetFieldsCounters [22:35:47]wFMCommunicate request_size=4 [22:35:47]MH_SAM_APDU [22:35:47]CAPDU: 80 13 00 00 [22:35:47]Write to MH i2c: E2 08 00 6B 16 80 13 00 00 00 00 00 00 FD [22:35:47]Write i2c OK [22:35:47]MH_I2C_Read... [22:35:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:35:47]Read from MH i2c: E2 [22:35:47]MH_I2C_Read... [22:35:47]Read from MH i2c: E2 62 00 [22:35:47]MH_I2C_Read... [22:35:47]Read from MH i2c: E2 62 00 6B 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 A7 08 01 00 0E 04 04 00 66 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 1A [22:35: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 A7 08 01 00 0E 04 04 00 66 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 [22:35:47]wFMCommunicate OK [22:35:47]SAM_PROTO_GetFieldsCounters done [22:35:47]requested_item shift.num is exist - process it [22:35:47]requested_item shift.opened is exist - process it [22:35:47]req_shift_opened [22:35:47]FM_GetShiftState [22:35:47]SAM_PROTO_GetShiftState [22:35:47]wFMCommunicate request_size=4 [22:35:47]MH_SAM_APDU [22:35:47]CAPDU: 80 13 01 00 [22:35:47]Write to MH i2c: E2 08 00 6C 16 80 13 01 00 00 00 00 00 FF [22:35:47]Write i2c OK [22:35:47]MH_I2C_Read... [22:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:47]Read from MH i2c: E2 [22:35:47]MH_I2C_Read... [22:35:47]Read from MH i2c: E2 0E 00 [22:35:47]MH_I2C_Read... [22:35:47]Read from MH i2c: E2 0E 00 6C 16 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 85 [22:35:47]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [22:35:47]wFMCommunicate OK [22:35:47]SAM_PROTO_GetShiftState done [22:35:47]FM_GetShiftState done [22:35:47]req_shift_opened done [22:35:47]requested_item shift.open_date is exist - process it [22:35:47]req_shift_open_date [22:35:47]req_shift_open_date done [22:35:47]produce_requested_data done [22:35:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67751,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [22:35:47]process_action_free close_receipt [22:35:47]json_value_free [22:35:47]json_value_free done [22:35:47]process_json_proto returns [22:35:47]Send response to host [22:35:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67751,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [22:35:47]free response buf [22:35:47]execute_script done [22:35:47]execute_script returns [22:35:47]free content buf [22:35:47]Sock 7.Close socket [22:35:47]Sock 7.Thread stoped [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:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:38:06]OFD Sender: No OFD packet to send [22:38:11]OFD Sender: No OFD packet to send [22:38:16]OFD Sender: No OFD packet to send [22:38:21]OFD Sender: No OFD packet to send [22:38:26]OFD Sender: No OFD packet to send [22:38:31]OFD Sender: No OFD packet to send [22:38:36]OFD Sender: No OFD packet to send [22:38:41]OFD Sender: No OFD packet to send [22:38:46]OFD Sender: No OFD packet to send [22:38:51]OFD Sender: No OFD packet to send [22:38:56]OFD Sender: No OFD packet to send [22:39:01]OFD Sender: No OFD packet to send [22:39:06]OFD Sender: No OFD packet to send [22:39:11]OFD Sender: No OFD packet to send [22:39:16]OFD Sender: No OFD packet to send [22:39:22]OFD Sender: No OFD packet to send [22:39:27]OFD Sender: No OFD packet to send [22:39:32]OFD Sender: No OFD packet to send [22:39:37]OFD Sender: No OFD packet to send [22:39:42]OFD Sender: No OFD packet to send [22:39:47]OFD Sender: No OFD packet to send [22:39:52]OFD Sender: No OFD packet to send [22:39:57]OFD Sender: No OFD packet to send [22:40:02]OFD Sender: No OFD packet to send [22:40:07]OFD Sender: No OFD packet to send [22:40:12]OFD Sender: No OFD packet to send [22:40:17]OFD Sender: No OFD packet to send [22:40:22]OFD Sender: No OFD packet to send [22:40:27]OFD Sender: No OFD packet to send [22:40:32]OFD Sender: No OFD packet to send [22:40:37]OFD Sender: No OFD packet to send [22:40:42]OFD Sender: No OFD packet to send [22:40:47]OFD Sender: No OFD packet to send [22:40:52]OFD Sender: No OFD packet to send [22:40:57]OFD Sender: No OFD packet to send [22:40:57]accept exits with 9 [22:40:57]New connection [22:40:57]New thread 3066608996 created [22:40:57]Thread 3066752356 joined [22:40:57]Waiting for new connection... [22:40:57] Sock 9.Parse request [22:40:57]Sock 9.Check first char [22:40:57]Sock 9.First char is OK [22:40:57]request: POST /json_proto HTTP/1.0 [22:40:57]Method: POST [22:40:57]URL: /json_proto [22:40:57]Method is POST - this is cgi request [22:40:57]url: /json_proto [22:40:57]query_string will be loaded in cgi processing [22:40:57]execute_cgi json_proto POST (null) [22:40:57]execute_cgi path=json_proto method=POST [22:40:57]POST find Content-Length [22:40:57]Host: 172.17.41.195:8080 [22:40:57]Content-Length: 819 [22:40:57]Content-Type: application/json [22:40:57] [22:40:57]POST finish read [22:40:57]Found Content-Length = 819 [22:40:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507910", "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" ] } } [22:40:57]execute_script... [22:40: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)507910", "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" ] } } [22:40:57]POST & json_proto [22:40:57]process_json_proto [22:40:57]json parsed OK: [22:40:57]protocol is kg_v1.0 [22:40:57]action value=close_receipt [22:40:57]process_action close_receipt [22:40:57]cmd_close_receipt [22:40:57]MH_GetDate [22:40:57]Write to MH i2c: F0 00 00 6D 16 72 [22:40:57]Write i2c OK [22:40:57]MH_I2C_Read... [22:40:57]Read from MH i2c: F0 [22:40:57]MH_I2C_Read... [22:40:57]Read from MH i2c: F0 09 00 [22:40:57]MH_I2C_Read... [22:40:57]Read from MH i2c: F0 09 00 6D 16 00 FC DC 47 66 FC 21 6F 64 F0 [22:40:57]GetLastDocTimeStamp 1715985346 [22:40:57]current date 1715985660 [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 6E 16 80 13 01 00 00 00 00 00 01 [22:40:57]Write i2c OK [22:40:57]MH_I2C_Read... [22:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:58]Read from MH i2c: E2 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: E2 0E 00 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: E2 0E 00 6E 16 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 87 [22:40:58]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [22:40:58]wFMCommunicate OK [22:40:58]SAM_PROTO_GetShiftState done [22:40:58]FM_GetShiftState done [22:40:58]opened in 1715905068 [22:40:58]opened+sec_in_day 1715991468 [22:40:58]quantity*price = 100066 [22:40:58]sum+1 = 100067 [22:40:58]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 17.05.2024 22:41 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67752 ФПД: 25650060200140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T224100&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67752&fm=25650060200140&tin=02508201610067®Number=0000000000091845&sum=100066 [22:40:59]StoreToDocumentArchive [22:40:59]shift 358 fd 67752 [22:40:59]save to /storage/0358/doc_00067752 [22:40:59]save last doc name /storage/0358/doc_00067752 to /storage/kkm_last_doc_name [22:40:59]save OK [22:40:59]Clear old archive folders... [22:40:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:40:59]tlvbuf is 01AE8D20 [22:40:59]SAM_PROTO_ClearQueue [22:40:59]wFMCommunicate request_size=4 [22:40:59]MH_SAM_APDU [22:40:59]CAPDU: 80 09 00 00 [22:40:59]Write to MH i2c: E2 08 00 7B 16 80 09 00 00 00 00 00 00 03 [22:40:59]Write i2c OK [22:40:59]MH_I2C_Read... [22:40:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:59]Read from MH i2c: E2 [22:40:59]MH_I2C_Read... [22:40:59]Read from MH i2c: E2 03 00 [22:40:59]MH_I2C_Read... [22:40:59]Read from MH i2c: E2 03 00 7B 16 00 90 00 05 [22:40:59]RAPDU: 90 00 [22:40:59]wFMCommunicate OK [22:40:59]SAM_PROTO_ClearQueue done [22:40:59]KKMCreateOFDPacket [22:40:59]OFDProtocolAddRootSTLVToBuf [22:40:59]FM_MakeSignedData [22:40:59]FM_MakeSignedData [22:40:59]SAM_PROTO_SignData [22:40:59]wFMCommunicate request_size=4 [22:40:59]MH_SAM_APDU [22:40:59]CAPDU: 80 0D 01 02 [22:40:59]Write to MH i2c: E2 08 00 7C 16 80 0D 01 02 00 00 00 00 0B [22:40:59]Write i2c OK [22:40:59]MH_I2C_Read... [22:40:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:59]Read from MH i2c: E2 [22:40:59]MH_I2C_Read... [22:40:59]Read from MH i2c: E2 03 00 [22:40:59]MH_I2C_Read... [22:40:59]Read from MH i2c: E2 03 00 7C 16 00 90 00 06 [22:40:59]RAPDU: 90 00 [22:40:59]wFMCommunicate OK [22:40:59]wFMCommunicate request_size=255 [22:40:59]MH_SAM_APDU [22:40: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 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 FC DC 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 17 [22:40:59]Write to MH i2c: E2 02 01 7D 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 A1 00 00 00 F4 03 04 00 FC DC 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 17 00 00 BD [22:40:59]Write i2c OK [22:40:59]MH_I2C_Read... [22:40:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:59]Read from MH i2c: E2 [22:40:59]MH_I2C_Read... [22:40:59]Read from MH i2c: E2 03 00 [22:40:59]MH_I2C_Read... [22:40:59]Read from MH i2c: E2 03 00 7D 16 00 90 00 07 [22:40:59]RAPDU: 90 00 [22:40:59]wFMCommunicate OK [22:40:59]wFMCommunicate request_size=10 [22:40:59]MH_SAM_APDU [22:40:59]CAPDU: 80 0D 02 02 05 54 1E BA 08 CC [22:40:59]Write to MH i2c: E2 0D 00 7E 16 80 0D 02 02 05 00 54 1E BA 08 CC 00 00 18 [22:40:59]Write i2c OK [22:40:59]MH_I2C_Read... [22:40:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:59]Read from MH i2c: E2 [22:40:59]MH_I2C_Read... [22:40:59]Read from MH i2c: E2 03 00 [22:40:59]MH_I2C_Read... [22:40:59]Read from MH i2c: E2 03 00 7E 16 00 90 00 08 [22:40:59]RAPDU: 90 00 [22:40:59]wFMCommunicate OK [22:40:59]wFMCommunicate request_size=4 [22:40:59]MH_SAM_APDU [22:40:59]CAPDU: 80 0D 03 02 [22:40:59]Write to MH i2c: E2 08 00 7F 16 80 0D 03 02 00 00 00 00 10 [22:40:59]Write i2c OK [22:40:59]MH_I2C_Read... [22:40:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:59]Read from MH i2c: E2 [22:40:59]MH_I2C_Read... [22:40:59]Read from MH i2c: E2 0B 00 [22:40:59]MH_I2C_Read... [22:40:59]Read from MH i2c: E2 0B 00 7F 16 00 D7 3E D7 E0 5E A7 07 3C 90 00 25 [22:40:59]RAPDU: D7 3E D7 E0 5E A7 07 3C 90 00 [22:40:59]wFMCommunicate OK [22:40:59]SAM_PROTO_SignData done [22:40:59]FM_MakeSignedData done [22:40:59]CreateOFDProtocolMessage [22:40:59]wFMCommunicate request_size=4 [22:40:59]MH_SAM_APDU [22:40:59]CAPDU: 80 11 00 00 [22:40:59]Write to MH i2c: E2 08 00 80 16 80 11 00 00 00 00 00 00 10 [22:40:59]Write i2c OK [22:40:59]MH_I2C_Read... [22:40:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:59]Read from MH i2c: E2 [22:40:59]MH_I2C_Read... [22:40:59]Read from MH i2c: E2 17 00 [22:40:59]MH_I2C_Read... [22:40:59]Read from MH i2c: E2 17 00 80 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 66 [22:40: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:40:59]wFMCommunicate OK [22:40:59]CreateOFDProtocolMessage done [22:40:59]OFDSenderStorePacket 67752 [22:40:59]StoreOFDPacket docnum=67752 [22:40: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 D1 62 07 01 96 68 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 FC DC 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 17 54 1E BA 08 CC D7 3E D7 E0 5E A7 07 3C [22:40:59]CheckFolder [22:40:59]dirname=/storage/ofd_packets [22:40:59]CheckFolder done [22:40:59]ProducePacketName [22:40:59]name=ofd_packets/00067752 [22:40:59]NVStorageSaveData ofd_packets/00067752 [22:40:59]File name is /storage/ofd_packets/00067752 [22:40:59]Write 301 bytes [22:40:59]NVStorageSaveData done [22:40:59]OFDSenderStorePacket done [22:40:59]KKMCreateOFDPacket done [22:40:59]NVStorageSaveData kkm_last_timestamp [22:40:59]File name is /storage/kkm_last_timestamp [22:40:59]Write 4 bytes [22:40:59]NVStorageSaveData done [22:40:59]ExternCall_PrintAddStr [22:40:59]wPrintStart [22:40:59]Write to MH i2c: 01 00 00 81 16 97 [22:40:59]Write i2c OK [22:40:59]MH_I2C_Read... [22:40:59]Read from MH i2c: 01 [22:40:59]MH_I2C_Read... [22:40:59]Read from MH i2c: 01 07 00 [22:40:59]MH_I2C_Read... [22:40:59]Read from MH i2c: 01 07 00 81 16 00 00 00 00 00 FF 0F AC [22:40:59]RasterBufferAndPrint [22:40:59]line Счет N : (1)507910 [22:40:59]line ИНН: 02508201610067 [22:40:59]line Контрольно-Кассовый Чек [22:40:59]line ПРОДАЖА [22:40:59]line ТРК (МРК, ГНК) : 33 [22:40:59]line Товар: 2710124130 [22:40:59]line Аи-92-К-5 [22:40:59]line 14.980 * 66.80 [22:40:59]line = 1000.66 [22:40:59]line НДС 12% НСП 1% [22:40:59]line > о реализуемом товаре [22:40:59]line ИТОГО: 1000.66 [22:40:59]line НСП 1% : 8.85 [22:40:59]line НДС 12% : 106.26 [22:40:59]line Наличными: 0.00 [22:40:59]line Безнал.: 1000.66 [22:40:59]line Место: АЗС № 91 "Партнер Нефть" [22:40:59]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:40:59]line СНО: Общий режим [22:40:59]line Чек 161 17.05.2024 22:41 [22:40:59]line Смена: 358 ФФД: 1.0 [22:40:59]line ЗНМ: 0300000119 [22:40:59]line РНМ: 0000000000091845 [22:40:59]line Версия ККМ: 001 [22:40:59]line Платежная система: Бакай Банк [22:40:59]line ФМ: 0000000000871829 [22:40:59]line ФД: 67752 [22:40:59]line ФПД: 25650060200140 [22:41:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T224100&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67752&fm=25650060200140&tin=02508201610067®Number=0000000000091845&sum=100066 [22:41:00]OFD Sender: Processing packet 67752 [packets to send 35, broken 34] [22:41:00]ProducePacketName [22:41:00]name=ofd_packets/00067752 [22:41:00]OFD Sender: To server: pG, [22:41:00]CommunicateWithHost lk.salyk.kg:30040 [22:41:00]ConnectInit lk.salyk.kg [22:41:00]written 0, free lines is 4095 [22:41:00]Connected sock=10 [22:41:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 D1 62 07 01 96 68 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 FC DC 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 17 54 1E BA 08 CC D7 3E D7 E0 5E A7 07 3C [22:41: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 2E FD 47 00 1D 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 A8 08 01 00 F4 03 04 00 D3 84 47 66 B6 04 01 00 00 CA 06 65 2D D1 30 61 E7 [22:41:00]CommunicateWithHost err = 0 [22:41:00]CheckOFDResponse [22:41:00]1017 (14) - 77093643461234 [22:41:00]1041 (16) - 0000000000871829 [22:41:00]1040 (4) - 67752 [22:41:00]1012 (4) - 17.05.2024 16:24 [22:41:00]1206 (1) - 0 [22:41:00]OFD Sender: Remove packet 67752 [22:41:00]ProducePacketName [22:41:00]name=ofd_packets/00067752 [22:41:00]NVStorageDeleteData [22:41:00]Write to MH i2c: 01 00 00 AA 16 C0 [22:41:00]Write i2c OK [22:41:00]MH_I2C_Read... [22:41:00]Read from MH i2c: 01 [22:41:00]MH_I2C_Read... [22:41:00]Read from MH i2c: 01 07 00 [22:41:00]MH_I2C_Read... [22:41:00]Read from MH i2c: 01 07 00 AA 16 00 00 00 00 00 E0 0C B3 [22:41:00]RasterBufferAndPrint [22:41:00]line [22:41:00]line [22:41:00]line [22:41:00]line [22:41:00]line [22:41:00]written 0, free lines is 3302 [22:41:00]MH_Cut [22:41:00]Write to MH i2c: D1 01 00 B1 16 01 99 [22:41:00]Write i2c OK [22:41:00]MH_I2C_Read... [22:41:00]Read from MH i2c: D1 [22:41:00]MH_I2C_Read... [22:41:00]Read from MH i2c: D1 01 00 [22:41:00]MH_I2C_Read... [22:41:00]Read from MH i2c: D1 01 00 B1 16 00 98 [22:41:00]Write to MH i2c: 01 00 00 B2 16 C8 [22:41:00]Write i2c OK [22:41:00]MH_I2C_Read... [22:41:00]OFD Sender: No OFD packet to send [22:41:01]*** Cut start [22:41:01]*** Purtial cut [22:41:01]*** CUTSNS_PIN = 0 [22:41:01]*** Stage 1: CUTSNS_PIN = 1 [22:41:03]Read from MH i2c: 01 [22:41:03]MH_I2C_Read... [22:41:03]*** Stop cut motor [22:41:03]*** Cut end [22:41:03]Read from MH i2c: 01 07 00 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: 01 07 00 B2 16 00 00 00 00 00 FF 0F DD [22:41:03]process_action close_receipt done [22:41:03]requested_data is exist [22:41:03]produce_requested_data [22:41:03]requested_item fm.sn is exist - process it [22:41:03]wFMCommunicate request_size=4 [22:41:03]MH_SAM_APDU [22:41:03]CAPDU: 80 11 00 00 [22:41:03]Write to MH i2c: E2 08 00 B3 16 80 11 00 00 00 00 00 00 43 [22:41:03]Write i2c OK [22:41:03]MH_I2C_Read... [22:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:03]Read from MH i2c: E2 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: E2 17 00 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: E2 17 00 B3 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 99 [22:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:41:03]wFMCommunicate OK [22:41:03]requested_item fd.num is exist - process it [22:41:03]SAM_PROTO_GetFieldsCounters [22:41:03]wFMCommunicate request_size=4 [22:41:03]MH_SAM_APDU [22:41:03]CAPDU: 80 13 00 00 [22:41:03]Write to MH i2c: E2 08 00 B4 16 80 13 00 00 00 00 00 00 46 [22:41:03]Write i2c OK [22:41:03]MH_I2C_Read... [22:41:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:03]Read from MH i2c: E2 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: E2 62 00 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: E2 62 00 B4 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 A8 08 01 00 0E 04 04 00 66 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 67 [22:41:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 A8 08 01 00 0E 04 04 00 66 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 [22:41:03]wFMCommunicate OK [22:41:03]SAM_PROTO_GetFieldsCounters done [22:41:03]requested_item shift.num is exist - process it [22:41:03]requested_item shift.opened is exist - process it [22:41:03]req_shift_opened [22:41:03]FM_GetShiftState [22:41:03]SAM_PROTO_GetShiftState [22:41:03]wFMCommunicate request_size=4 [22:41:03]MH_SAM_APDU [22:41:03]CAPDU: 80 13 01 00 [22:41:03]Write to MH i2c: E2 08 00 B5 16 80 13 01 00 00 00 00 00 48 [22:41:03]Write i2c OK [22:41:03]MH_I2C_Read... [22:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:03]Read from MH i2c: E2 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: E2 0E 00 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: E2 0E 00 B5 16 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 CE [22:41:03]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [22:41:03]wFMCommunicate OK [22:41:03]SAM_PROTO_GetShiftState done [22:41:03]FM_GetShiftState done [22:41:03]req_shift_opened done [22:41:03]requested_item shift.open_date is exist - process it [22:41:03]req_shift_open_date [22:41:03]req_shift_open_date done [22:41:03]produce_requested_data done [22:41:03]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67752,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [22:41:03]process_action_free close_receipt [22:41:03]json_value_free [22:41:03]json_value_free done [22:41:03]process_json_proto returns [22:41:03]Send response to host [22:41:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67752,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [22:41:03]free response buf [22:41:03]execute_script done [22:41:03]execute_script returns [22:41:03]free content buf [22:41:03]Sock 9.Close socket [22:41:03]Sock 9.Thread stoped [22:41:05]OFD Sender: No OFD packet to send [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:55]OFD Sender: No OFD packet to send [22:43:00]OFD Sender: No OFD packet to send [22:43:05]OFD Sender: No OFD packet to send [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:55]OFD Sender: No OFD packet to send [22:44:00]OFD Sender: No OFD packet to send [22:44:05]OFD Sender: No OFD packet to send [22:44:10]OFD Sender: No OFD packet to send [22:44:15]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:31]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [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:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:16]OFD Sender: No OFD packet to send [22:55:21]OFD Sender: No OFD packet to send [22:55:26]OFD Sender: No OFD packet to send [22:55:31]OFD Sender: No OFD packet to send [22:55:36]OFD Sender: No OFD packet to send [22:55:41]OFD Sender: No OFD packet to send [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:01]OFD Sender: No OFD packet to send [23:02:06]OFD Sender: No OFD packet to send [23:02:11]OFD Sender: No OFD packet to send [23:02:14]accept exits with 7 [23:02:14]New connection [23:02:14]New thread 3066752356 created [23:02:14]Thread 3066608996 joined [23:02:14]Waiting for new connection... [23:02:14] Sock 7.Parse request [23:02:14]Sock 7.Check first char [23:02:14]Sock 7.First char is OK [23:02:14]request: POST /json_proto HTTP/1.0 [23:02:14]Method: POST [23:02:14]URL: /json_proto [23:02:14]Method is POST - this is cgi request [23:02:14]url: /json_proto [23:02:14]query_string will be loaded in cgi processing [23:02:14]execute_cgi json_proto POST (null) [23:02:14]execute_cgi path=json_proto method=POST [23:02:14]POST find Content-Length [23:02:14]Host: 172.17.41.195:8080 [23:02:14]Content-Length: 670 [23:02:14]Content-Type: application/json [23:02:14] [23:02:14]POST finish read [23:02:14]Found Content-Length = 670 [23:02:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507911", "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 }]} ], "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" ] } } [23:02:14]execute_script... [23:02: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)507911", "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 }]} ], "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" ] } } [23:02:14]POST & json_proto [23:02:14]process_json_proto [23:02:14]json parsed OK: [23:02:14]protocol is kg_v1.0 [23:02:14]action value=close_receipt [23:02:14]process_action close_receipt [23:02:14]cmd_close_receipt [23:02:14]MH_GetDate [23:02:14]Write to MH i2c: F0 00 00 B6 16 BB [23:02:14]Write i2c OK [23:02:14]MH_I2C_Read... [23:02:14]Read from MH i2c: F0 [23:02:14]MH_I2C_Read... [23:02:14]Read from MH i2c: F0 09 00 [23:02:14]MH_I2C_Read... [23:02:14]Read from MH i2c: F0 09 00 B6 16 00 F8 E1 47 66 FC 21 6F 64 3A [23:02:14]GetLastDocTimeStamp 1715985660 [23:02:14]current date 1715986936 [23:02:14]FM_GetShiftState [23:02:14]SAM_PROTO_GetShiftState [23:02:14]wFMCommunicate request_size=4 [23:02:14]MH_SAM_APDU [23:02:14]CAPDU: 80 13 01 00 [23:02:14]Write to MH i2c: E2 08 00 B7 16 80 13 01 00 00 00 00 00 4A [23:02:14]Write i2c OK [23:02:14]MH_I2C_Read... [23:02:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:02:14]Read from MH i2c: E2 [23:02:14]MH_I2C_Read... [23:02:14]Read from MH i2c: E2 0E 00 [23:02:14]MH_I2C_Read... [23:02:14]Read from MH i2c: E2 0E 00 B7 16 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 D0 [23:02:14]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [23:02:14]wFMCommunicate OK [23:02:14]SAM_PROTO_GetShiftState done [23:02:14]FM_GetShiftState done [23:02:14]opened in 1715905068 [23:02:14]opened+sec_in_day 1715991468 [23:02:14]quantity*price = 50036 [23:02:14]sum+1 = 50037 [23:02:14]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 СНО: Общий режим Чек 162 17.05.2024 23:02 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67753 ФПД: 20122119357100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T230216&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67753&fm=20122119357100&tin=02508201610067®Number=0000000000091845&sum=50000 [23:02:15]StoreToDocumentArchive [23:02:15]shift 358 fd 67753 [23:02:15]save to /storage/0358/doc_00067753 [23:02:15]save last doc name /storage/0358/doc_00067753 to /storage/kkm_last_doc_name [23:02:15]save OK [23:02:15]Clear old archive folders... [23:02:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:02:15]tlvbuf is 01B1B200 [23:02:15]SAM_PROTO_ClearQueue [23:02:15]wFMCommunicate request_size=4 [23:02:15]MH_SAM_APDU [23:02:15]CAPDU: 80 09 00 00 [23:02:15]Write to MH i2c: E2 08 00 C4 16 80 09 00 00 00 00 00 00 4C [23:02:15]Write i2c OK [23:02:15]MH_I2C_Read... [23:02:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:02:15]Read from MH i2c: E2 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 03 00 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 03 00 C4 16 00 90 00 4E [23:02:15]RAPDU: 90 00 [23:02:15]wFMCommunicate OK [23:02:15]SAM_PROTO_ClearQueue done [23:02:15]KKMCreateOFDPacket [23:02:15]OFDProtocolAddRootSTLVToBuf [23:02:15]FM_MakeSignedData [23:02:15]FM_MakeSignedData [23:02:15]SAM_PROTO_SignData [23:02:15]wFMCommunicate request_size=4 [23:02:15]MH_SAM_APDU [23:02:15]CAPDU: 80 0D 01 02 [23:02:15]Write to MH i2c: E2 08 00 C5 16 80 0D 01 02 00 00 00 00 54 [23:02:15]Write i2c OK [23:02:15]MH_I2C_Read... [23:02:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:02:15]Read from MH i2c: E2 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 03 00 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 03 00 C5 16 00 90 00 4F [23:02:15]RAPDU: 90 00 [23:02:15]wFMCommunicate OK [23:02:15]wFMCommunicate request_size=255 [23:02:15]MH_SAM_APDU [23:02:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A2 00 00 00 F4 03 04 00 F8 E1 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 [23:02:15]Write to MH i2c: E2 02 01 C6 16 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 A2 00 00 00 F4 03 04 00 F8 E1 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 00 00 43 [23:02:15]Write i2c OK [23:02:15]MH_I2C_Read... [23:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:02:15]Read from MH i2c: E2 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 03 00 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 03 00 C6 16 00 90 00 50 [23:02:15]RAPDU: 90 00 [23:02:15]wFMCommunicate OK [23:02:15]wFMCommunicate request_size=11 [23:02:15]MH_SAM_APDU [23:02:15]CAPDU: 80 0D 02 02 06 12 4D 0B C6 C2 AC [23:02:15]Write to MH i2c: E2 0E 00 C7 16 80 0D 02 02 06 00 12 4D 0B C6 C2 AC 00 00 01 [23:02:15]Write i2c OK [23:02:15]MH_I2C_Read... [23:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:02:15]Read from MH i2c: E2 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 03 00 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 03 00 C7 16 00 90 00 51 [23:02:15]RAPDU: 90 00 [23:02:15]wFMCommunicate OK [23:02:15]wFMCommunicate request_size=4 [23:02:15]MH_SAM_APDU [23:02:15]CAPDU: 80 0D 03 02 [23:02:15]Write to MH i2c: E2 08 00 C8 16 80 0D 03 02 00 00 00 00 59 [23:02:15]Write i2c OK [23:02:15]MH_I2C_Read... [23:02:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:02:15]Read from MH i2c: E2 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 0B 00 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 0B 00 C8 16 00 C5 F4 74 90 EC B4 4D DA 90 00 DE [23:02:15]RAPDU: C5 F4 74 90 EC B4 4D DA 90 00 [23:02:15]wFMCommunicate OK [23:02:15]SAM_PROTO_SignData done [23:02:15]FM_MakeSignedData done [23:02:15]CreateOFDProtocolMessage [23:02:15]wFMCommunicate request_size=4 [23:02:15]MH_SAM_APDU [23:02:15]CAPDU: 80 11 00 00 [23:02:15]Write to MH i2c: E2 08 00 C9 16 80 11 00 00 00 00 00 00 59 [23:02:15]Write i2c OK [23:02:15]MH_I2C_Read... [23:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:02:15]Read from MH i2c: E2 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 17 00 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 17 00 C9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AF [23:02:15]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:15]wFMCommunicate OK [23:02:15]CreateOFDProtocolMessage done [23:02:15]OFDSenderStorePacket 67753 [23:02:15]StoreOFDPacket docnum=67753 [23:02:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 5B 6D 08 01 82 70 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 A2 00 00 00 F4 03 04 00 F8 E1 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 12 4D 0B C6 C2 AC C5 F4 74 90 EC B4 4D DA [23:02:15]CheckFolder [23:02:15]dirname=/storage/ofd_packets [23:02:15]CheckFolder done [23:02:15]ProducePacketName [23:02:15]name=ofd_packets/00067753 [23:02:15]NVStorageSaveData ofd_packets/00067753 [23:02:15]File name is /storage/ofd_packets/00067753 [23:02:15]Write 302 bytes [23:02:15]NVStorageSaveData done [23:02:15]OFDSenderStorePacket done [23:02:15]KKMCreateOFDPacket done [23:02:15]NVStorageSaveData kkm_last_timestamp [23:02:15]File name is /storage/kkm_last_timestamp [23:02:15]Write 4 bytes [23:02:15]NVStorageSaveData done [23:02:15]ExternCall_PrintAddStr [23:02:15]wPrintStart [23:02:15]Write to MH i2c: 01 00 00 CA 16 E0 [23:02:15]Write i2c OK [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: 01 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: 01 07 00 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: 01 07 00 CA 16 00 00 00 00 00 FF 0F F5 [23:02:15]RasterBufferAndPrint [23:02:15]line Счет N : (1)507911 [23:02:15]line ИНН: 02508201610067 [23:02:15]line Контрольно-Кассовый Чек [23:02:15]line ПРОДАЖА [23:02:15]line ТРК (МРК, ГНК) : 32 [23:02:15]line Товар: 2710124130 [23:02:15]line Super-92-К-5 [23:02:15]line 7.380 * 67.80 [23:02:15]line = 500.36 [23:02:15]line НДС 12% НСП 1% [23:02:15]line > о реализуемом товаре [23:02:15]line ОКРУГЛЕНИЕ: -0.36 [23:02:15]line ИТОГО: 500.00 [23:02:15]line Внесено: 500.00 [23:02:15]line СДАЧА: 0.00 [23:02:15]line НСП 1% : 4.43 [23:02:15]line НДС 12% : 53.14 [23:02:15]line Наличными: 500.00 [23:02:15]line Безнал.: 0.00 [23:02:15]line Место: АЗС № 91 "Партнер Нефть" [23:02:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:02:15]line СНО: Общий режим [23:02:15]line Чек 162 17.05.2024 23:02 [23:02:15]line Смена: 358 ФФД: 1.0 [23:02:15]line ЗНМ: 0300000119 [23:02:15]line РНМ: 0000000000091845 [23:02:15]line Версия ККМ: 001 [23:02:15]line ФМ: 0000000000871829 [23:02:15]line ФД: 67753 [23:02:15]line ФПД: 20122119357100 [23:02:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T230216&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67753&fm=20122119357100&tin=02508201610067®Number=0000000000091845&sum=50000 [23:02:16]OFD Sender: Processing packet 67753 [packets to send 35, broken 34] [23:02:16]ProducePacketName [23:02:16]name=ofd_packets/00067753 [23:02:16]OFD Sender: To server: pG, [23:02:16]CommunicateWithHost lk.salyk.kg:30040 [23:02:16]ConnectInit lk.salyk.kg [23:02:16]written 0, free lines is 4095 [23:02:16]Connected sock=10 [23:02: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 5B 6D 08 01 82 70 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 A2 00 00 00 F4 03 04 00 F8 E1 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 12 4D 0B C6 C2 AC C5 F4 74 90 EC B4 4D DA [23:02: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 3E C3 47 00 5F 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 CF 89 47 66 B6 04 01 00 00 9E E8 B7 AB AA B6 C6 87 [23:02:16]CommunicateWithHost err = 0 [23:02:16]CheckOFDResponse [23:02:16]1017 (14) - 77093643461234 [23:02:16]1041 (16) - 0000000000871829 [23:02:16]1040 (4) - 67753 [23:02:16]1012 (4) - 17.05.2024 16:46 [23:02:16]1206 (1) - 0 [23:02:16]OFD Sender: Remove packet 67753 [23:02:16]ProducePacketName [23:02:16]name=ofd_packets/00067753 [23:02:16]NVStorageDeleteData [23:02:16]Write to MH i2c: 01 00 00 F4 16 0A [23:02:16]Write i2c OK [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: 01 [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: 01 07 00 [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: 01 07 00 F4 16 00 00 00 00 00 CA 0C E7 [23:02:16]RasterBufferAndPrint [23:02:16]line [23:02:16]line [23:02:16]line [23:02:16]line [23:02:16]line [23:02:16]written 0, free lines is 3280 [23:02:16]MH_Cut [23:02:16]Write to MH i2c: D1 01 00 FB 16 01 E3 [23:02:16]Write i2c OK [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: D1 [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: D1 01 00 [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: D1 01 00 FB 16 00 E2 [23:02:16]Write to MH i2c: 01 00 00 FC 16 12 [23:02:16]Write i2c OK [23:02:16]MH_I2C_Read... [23:02:16]OFD Sender: No OFD packet to send [23:02:17]*** Cut start [23:02:17]*** Purtial cut [23:02:17]*** Stage 1: CUTSNS_PIN = 1 [23:02:17]Read from MH i2c: 01 [23:02:17]MH_I2C_Read... [23:02:17]*** Stop cut motor [23:02:17]*** Cut end [23:02:17]Read from MH i2c: 01 07 00 [23:02:17]MH_I2C_Read... [23:02:17]Read from MH i2c: 01 07 00 FC 16 00 00 00 00 00 FF 0F 27 [23:02:17]process_action close_receipt done [23:02:17]requested_data is exist [23:02:17]produce_requested_data [23:02:17]requested_item fm.sn is exist - process it [23:02:17]wFMCommunicate request_size=4 [23:02:17]MH_SAM_APDU [23:02:17]CAPDU: 80 11 00 00 [23:02:17]Write to MH i2c: E2 08 00 FD 16 80 11 00 00 00 00 00 00 8D [23:02:17]Write i2c OK [23:02:17]MH_I2C_Read... [23:02:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:02:17]Read from MH i2c: E2 [23:02:17]MH_I2C_Read... [23:02:17]Read from MH i2c: E2 17 00 [23:02:17]MH_I2C_Read... [23:02:17]Read from MH i2c: E2 17 00 FD 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E3 [23:02:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:02:17]wFMCommunicate OK [23:02:17]requested_item fd.num is exist - process it [23:02:17]SAM_PROTO_GetFieldsCounters [23:02:17]wFMCommunicate request_size=4 [23:02:17]MH_SAM_APDU [23:02:17]CAPDU: 80 13 00 00 [23:02:17]Write to MH i2c: E2 08 00 FE 16 80 13 00 00 00 00 00 00 90 [23:02:17]Write i2c OK [23:02:17]MH_I2C_Read... [23:02:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:02:17]Read from MH i2c: E2 [23:02:17]MH_I2C_Read... [23:02:17]Read from MH i2c: E2 62 00 [23:02:17]MH_I2C_Read... [23:02:17]Read from MH i2c: E2 62 00 FE 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 A9 08 01 00 0E 04 04 00 66 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 B5 [23:02: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 A9 08 01 00 0E 04 04 00 66 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 [23:02:17]wFMCommunicate OK [23:02:17]SAM_PROTO_GetFieldsCounters done [23:02:17]requested_item shift.num is exist - process it [23:02:17]requested_item shift.opened is exist - process it [23:02:17]req_shift_opened [23:02:17]FM_GetShiftState [23:02:17]SAM_PROTO_GetShiftState [23:02:17]wFMCommunicate request_size=4 [23:02:17]MH_SAM_APDU [23:02:17]CAPDU: 80 13 01 00 [23:02:17]Write to MH i2c: E2 08 00 FF 16 80 13 01 00 00 00 00 00 92 [23:02:17]Write i2c OK [23:02:17]MH_I2C_Read... [23:02:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:02:17]Read from MH i2c: E2 [23:02:17]MH_I2C_Read... [23:02:17]Read from MH i2c: E2 0E 00 [23:02:17]MH_I2C_Read... [23:02:17]Read from MH i2c: E2 0E 00 FF 16 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 18 [23:02:17]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [23:02:17]wFMCommunicate OK [23:02:17]SAM_PROTO_GetShiftState done [23:02:17]FM_GetShiftState done [23:02:17]req_shift_opened done [23:02:17]requested_item shift.open_date is exist - process it [23:02:17]req_shift_open_date [23:02:17]req_shift_open_date done [23:02:17]produce_requested_data done [23:02:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67753,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [23:02:17]process_action_free close_receipt [23:02:17]json_value_free [23:02:17]json_value_free done [23:02:17]process_json_proto returns [23:02:17]Send response to host [23:02:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67753,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [23:02:17]free response buf [23:02:17]execute_script done [23:02:17]execute_script returns [23:02:17]free content buf [23:02:17]Sock 7.Close socket [23:02:17]Sock 7.Thread stoped [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:36]OFD Sender: No OFD packet to send [23:02:41]OFD Sender: No OFD packet to send [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:56]OFD Sender: No OFD packet to send [23:03:01]OFD Sender: No OFD packet to send [23:03:06]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:21]OFD Sender: No OFD packet to send [23:03:26]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:42]accept exits with 9 [23:05:42]New connection [23:05:42]New thread 3066608996 created [23:05:42]Thread 3066752356 joined [23:05:42]Waiting for new connection... [23:05:42] Sock 9.Parse request [23:05:42]Sock 9.Check first char [23:05:42]Sock 9.First char is OK [23:05:42]request: POST /json_proto HTTP/1.0 [23:05:42]Method: POST [23:05:42]URL: /json_proto [23:05:42]Method is POST - this is cgi request [23:05:42]url: /json_proto [23:05:42]query_string will be loaded in cgi processing [23:05:42]execute_cgi json_proto POST (null) [23:05:42]execute_cgi path=json_proto method=POST [23:05:42]POST find Content-Length [23:05:42]Host: 172.17.41.195:8080 [23:05:42]Content-Length: 677 [23:05:42]Content-Type: application/json [23:05:42] [23:05:42]POST finish read [23:05:42]Found Content-Length = 677 [23:05:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507912", "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" ] } } [23:05:42]execute_script... [23:05: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)507912", "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" ] } } [23:05:42]POST & json_proto [23:05:42]process_json_proto [23:05:42]json parsed OK: [23:05:42]protocol is kg_v1.0 [23:05:42]action value=close_receipt [23:05:42]process_action close_receipt [23:05:42]cmd_close_receipt [23:05:42]MH_GetDate [23:05:42]Write to MH i2c: F0 00 00 00 17 06 [23:05:42]Write i2c OK [23:05:42]MH_I2C_Read... [23:05:42]Read from MH i2c: F0 [23:05:42]MH_I2C_Read... [23:05:42]Read from MH i2c: F0 09 00 [23:05:42]MH_I2C_Read... [23:05:42]Read from MH i2c: F0 09 00 00 17 00 C9 E2 47 66 FC 21 6F 64 57 [23:05:42]GetLastDocTimeStamp 1715986936 [23:05:42]current date 1715987145 [23:05:42]FM_GetShiftState [23:05:42]SAM_PROTO_GetShiftState [23:05:42]wFMCommunicate request_size=4 [23:05:42]MH_SAM_APDU [23:05:42]CAPDU: 80 13 01 00 [23:05:42]Write to MH i2c: E2 08 00 01 17 80 13 01 00 00 00 00 00 95 [23:05:42]Write i2c OK [23:05:42]MH_I2C_Read... [23:05:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:42]Read from MH i2c: E2 [23:05:42]MH_I2C_Read... [23:05:42]Read from MH i2c: E2 0E 00 [23:05:42]MH_I2C_Read... [23:05:42]Read from MH i2c: E2 0E 00 01 17 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 1B [23:05:42]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [23:05:42]wFMCommunicate OK [23:05:42]SAM_PROTO_GetShiftState done [23:05:42]FM_GetShiftState done [23:05:42]opened in 1715905068 [23:05:42]opened+sec_in_day 1715991468 [23:05:42]quantity*price = 50033 [23:05:42]sum+1 = 50034 [23:05:42]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 СНО: Общий режим Чек 163 17.05.2024 23:05 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67754 ФПД: 20836190769869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T230545&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67754&fm=20836190769869&tin=02508201610067®Number=0000000000091845&sum=50000 [23:05:43]StoreToDocumentArchive [23:05:43]shift 358 fd 67754 [23:05:43]save to /storage/0358/doc_00067754 [23:05:43]save last doc name /storage/0358/doc_00067754 to /storage/kkm_last_doc_name [23:05:43]save OK [23:05:43]Clear old archive folders... [23:05:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:05:43]tlvbuf is B6F24100 [23:05:43]SAM_PROTO_ClearQueue [23:05:43]wFMCommunicate request_size=4 [23:05:43]MH_SAM_APDU [23:05:43]CAPDU: 80 09 00 00 [23:05:43]Write to MH i2c: E2 08 00 0E 17 80 09 00 00 00 00 00 00 97 [23:05:43]Write i2c OK [23:05:43]MH_I2C_Read... [23:05:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:05:43]Read from MH i2c: E2 [23:05:43]MH_I2C_Read... [23:05:43]Read from MH i2c: E2 03 00 [23:05:43]MH_I2C_Read... [23:05:43]Read from MH i2c: E2 03 00 0E 17 00 90 00 99 [23:05:43]RAPDU: 90 00 [23:05:43]wFMCommunicate OK [23:05:43]SAM_PROTO_ClearQueue done [23:05:43]KKMCreateOFDPacket [23:05:43]OFDProtocolAddRootSTLVToBuf [23:05:43]FM_MakeSignedData [23:05:43]FM_MakeSignedData [23:05:43]SAM_PROTO_SignData [23:05:43]wFMCommunicate request_size=4 [23:05:43]MH_SAM_APDU [23:05:43]CAPDU: 80 0D 01 02 [23:05:43]Write to MH i2c: E2 08 00 0F 17 80 0D 01 02 00 00 00 00 9F [23:05:43]Write i2c OK [23:05:43]MH_I2C_Read... [23:05:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:05:44]Read from MH i2c: E2 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: E2 03 00 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: E2 03 00 0F 17 00 90 00 9A [23:05:44]RAPDU: 90 00 [23:05:44]wFMCommunicate OK [23:05:44]wFMCommunicate request_size=255 [23:05:44]MH_SAM_APDU [23:05: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 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 A3 00 00 00 F4 03 04 00 C9 E2 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 12 [23:05:44]Write to MH i2c: E2 02 01 10 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 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 A3 00 00 00 F4 03 04 00 C9 E2 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 12 00 00 51 [23:05:44]Write i2c OK [23:05:44]MH_I2C_Read... [23:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:44]Read from MH i2c: E2 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: E2 03 00 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: E2 03 00 10 17 00 90 00 9B [23:05:44]RAPDU: 90 00 [23:05:44]wFMCommunicate OK [23:05:44]wFMCommunicate request_size=10 [23:05:44]MH_SAM_APDU [23:05:44]CAPDU: 80 0D 02 02 05 F3 4D BF D2 CD [23:05:44]Write to MH i2c: E2 0D 00 11 17 80 0D 02 02 05 00 F3 4D BF D2 CD 00 00 4A [23:05:44]Write i2c OK [23:05:44]MH_I2C_Read... [23:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:44]Read from MH i2c: E2 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: E2 03 00 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: E2 03 00 11 17 00 90 00 9C [23:05:44]RAPDU: 90 00 [23:05:44]wFMCommunicate OK [23:05:44]wFMCommunicate request_size=4 [23:05:44]MH_SAM_APDU [23:05:44]CAPDU: 80 0D 03 02 [23:05:44]Write to MH i2c: E2 08 00 12 17 80 0D 03 02 00 00 00 00 A4 [23:05:44]Write i2c OK [23:05:44]MH_I2C_Read... [23:05:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:05:44]Read from MH i2c: E2 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: E2 0B 00 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: E2 0B 00 12 17 00 00 60 2C 69 A1 C9 03 29 90 00 30 [23:05:44]RAPDU: 00 60 2C 69 A1 C9 03 29 90 00 [23:05:44]wFMCommunicate OK [23:05:44]SAM_PROTO_SignData done [23:05:44]FM_MakeSignedData done [23:05:44]CreateOFDProtocolMessage [23:05:44]wFMCommunicate request_size=4 [23:05:44]MH_SAM_APDU [23:05:44]CAPDU: 80 11 00 00 [23:05:44]Write to MH i2c: E2 08 00 13 17 80 11 00 00 00 00 00 00 A4 [23:05:44]Write i2c OK [23:05:44]MH_I2C_Read... [23:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:44]Read from MH i2c: E2 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: E2 17 00 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: E2 17 00 13 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FA [23:05: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:05:44]wFMCommunicate OK [23:05:44]CreateOFDProtocolMessage done [23:05:44]OFDSenderStorePacket 67754 [23:05:44]StoreOFDPacket docnum=67754 [23:05:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 D3 0F 07 01 4C 7D 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 A3 00 00 00 F4 03 04 00 C9 E2 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 12 F3 4D BF D2 CD 00 60 2C 69 A1 C9 03 29 [23:05:44]CheckFolder [23:05:44]dirname=/storage/ofd_packets [23:05:44]CheckFolder done [23:05:44]ProducePacketName [23:05:44]name=ofd_packets/00067754 [23:05:44]NVStorageSaveData ofd_packets/00067754 [23:05:44]File name is /storage/ofd_packets/00067754 [23:05:44]Write 301 bytes [23:05:44]NVStorageSaveData done [23:05:44]OFDSenderStorePacket done [23:05:44]KKMCreateOFDPacket done [23:05:44]NVStorageSaveData kkm_last_timestamp [23:05:44]File name is /storage/kkm_last_timestamp [23:05:44]Write 4 bytes [23:05:44]NVStorageSaveData done [23:05:44]ExternCall_PrintAddStr [23:05:44]wPrintStart [23:05:44]Write to MH i2c: 01 00 00 14 17 2B [23:05:44]Write i2c OK [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: 01 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: 01 07 00 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: 01 07 00 14 17 00 00 00 00 00 FF 0F 40 [23:05:44]RasterBufferAndPrint [23:05:44]line Счет N : (1)507912 [23:05:44]line ИНН: 02508201610067 [23:05:44]line Контрольно-Кассовый Чек [23:05:44]line ПРОДАЖА [23:05:44]line ТРК (МРК, ГНК) : 43 [23:05:44]line Товар: 2710124130 [23:05:44]line Аи-92-К-5 [23:05:44]line 7.490 * 66.80 [23:05:44]line = 500.33 [23:05:44]line НДС 12% НСП 1% [23:05:44]line > о реализуемом товаре [23:05:44]line ОКРУГЛЕНИЕ: -0.33 [23:05:44]line ИТОГО: 500.00 [23:05:44]line Внесено: 500.00 [23:05:44]line СДАЧА: 0.00 [23:05:44]line НСП 1% : 4.43 [23:05:44]line НДС 12% : 53.13 [23:05:44]line Наличными: 500.00 [23:05:44]line Безнал.: 0.00 [23:05:44]line Место: АЗС № 91 "Партнер Нефть" [23:05:44]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:05:44]line СНО: Общий режим [23:05:44]line Чек 163 17.05.2024 23:05 [23:05:44]line Смена: 358 ФФД: 1.0 [23:05:44]line ЗНМ: 0300000119 [23:05:44]line РНМ: 0000000000091845 [23:05:44]line Версия ККМ: 001 [23:05:44]line ФМ: 0000000000871829 [23:05:44]line ФД: 67754 [23:05:44]line ФПД: 20836190769869 [23:05:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T230545&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67754&fm=20836190769869&tin=02508201610067®Number=0000000000091845&sum=50000 [23:05:44]OFD Sender: Processing packet 67754 [packets to send 35, broken 34] [23:05:44]ProducePacketName [23:05:44]name=ofd_packets/00067754 [23:05:44]OFD Sender: To server: pG, [23:05:44]CommunicateWithHost lk.salyk.kg:30040 [23:05:44]ConnectInit lk.salyk.kg [23:05:44]written 0, free lines is 4095 [23:05:44]Connected sock=10 [23:05:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 D3 0F 07 01 4C 7D 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 A3 00 00 00 F4 03 04 00 C9 E2 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 12 F3 4D BF D2 CD 00 60 2C 69 A1 C9 03 29 [23:05:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 BF 12 47 00 D2 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 A0 8A 47 66 B6 04 01 00 00 18 68 08 B6 EE 19 B6 A4 [23:05:45]CommunicateWithHost err = 0 [23:05:45]CheckOFDResponse [23:05:45]1017 (14) - 77093643461234 [23:05:45]1041 (16) - 0000000000871829 [23:05:45]1040 (4) - 67754 [23:05:45]1012 (4) - 17.05.2024 16:49 [23:05:45]1206 (1) - 0 [23:05:45]OFD Sender: Remove packet 67754 [23:05:45]ProducePacketName [23:05:45]name=ofd_packets/00067754 [23:05:45]NVStorageDeleteData [23:05:45]Write to MH i2c: 01 00 00 3E 17 55 [23:05:45]Write i2c OK [23:05:45]MH_I2C_Read... [23:05:45]Read from MH i2c: 01 [23:05:45]MH_I2C_Read... [23:05:45]Read from MH i2c: 01 07 00 [23:05:45]MH_I2C_Read... [23:05:45]Read from MH i2c: 01 07 00 3E 17 00 00 00 00 00 DC 0C 44 [23:05:45]RasterBufferAndPrint [23:05:45]line [23:05:45]line [23:05:45]line [23:05:45]line [23:05:45]line [23:05:45]written 0, free lines is 3297 [23:05:45]MH_Cut [23:05:45]Write to MH i2c: D1 01 00 45 17 01 2E [23:05:45]Write i2c OK [23:05:45]MH_I2C_Read... [23:05:45]Read from MH i2c: D1 [23:05:45]MH_I2C_Read... [23:05:45]Read from MH i2c: D1 01 00 [23:05:45]MH_I2C_Read... [23:05:45]Read from MH i2c: D1 01 00 45 17 00 2D [23:05:45]Write to MH i2c: 01 00 00 46 17 5D [23:05:45]Write i2c OK [23:05:45]MH_I2C_Read... [23:05:45]OFD Sender: No OFD packet to send [23:05:46]*** Cut start [23:05:46]*** Purtial cut [23:05:46]*** CUTSNS_PIN = 0 [23:05:46]*** Stage 1: CUTSNS_PIN = 1 [23:05:48]Read from MH i2c: 01 [23:05:48]MH_I2C_Read... [23:05:48]*** Stop cut motor [23:05:48]*** Cut end [23:05:48]Read from MH i2c: 01 07 00 [23:05:48]MH_I2C_Read... [23:05:48]Read from MH i2c: 01 07 00 46 17 00 00 00 00 00 FF 0F 72 [23:05:48]process_action close_receipt done [23:05:48]requested_data is exist [23:05:48]produce_requested_data [23:05:48]requested_item fm.sn is exist - process it [23:05:48]wFMCommunicate request_size=4 [23:05:48]MH_SAM_APDU [23:05:48]CAPDU: 80 11 00 00 [23:05:48]Write to MH i2c: E2 08 00 47 17 80 11 00 00 00 00 00 00 D8 [23:05:48]Write i2c OK [23:05:48]MH_I2C_Read... [23:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:48]Read from MH i2c: E2 [23:05:48]MH_I2C_Read... [23:05:48]Read from MH i2c: E2 17 00 [23:05:48]MH_I2C_Read... [23:05:48]Read from MH i2c: E2 17 00 47 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2E [23:05: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:05:48]wFMCommunicate OK [23:05:48]requested_item fd.num is exist - process it [23:05:48]SAM_PROTO_GetFieldsCounters [23:05:48]wFMCommunicate request_size=4 [23:05:48]MH_SAM_APDU [23:05:48]CAPDU: 80 13 00 00 [23:05:48]Write to MH i2c: E2 08 00 48 17 80 13 00 00 00 00 00 00 DB [23:05:48]Write i2c OK [23:05:48]MH_I2C_Read... [23:05:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:05:48]Read from MH i2c: E2 [23:05:48]MH_I2C_Read... [23:05:48]Read from MH i2c: E2 62 00 [23:05:48]MH_I2C_Read... [23:05:48]Read from MH i2c: E2 62 00 48 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 AA 08 01 00 0E 04 04 00 66 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 04 [23:05: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 AA 08 01 00 0E 04 04 00 66 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 [23:05:48]wFMCommunicate OK [23:05:48]SAM_PROTO_GetFieldsCounters done [23:05:48]requested_item shift.num is exist - process it [23:05:48]requested_item shift.opened is exist - process it [23:05:48]req_shift_opened [23:05:48]FM_GetShiftState [23:05:48]SAM_PROTO_GetShiftState [23:05:48]wFMCommunicate request_size=4 [23:05:48]MH_SAM_APDU [23:05:48]CAPDU: 80 13 01 00 [23:05:48]Write to MH i2c: E2 08 00 49 17 80 13 01 00 00 00 00 00 DD [23:05:48]Write i2c OK [23:05:48]MH_I2C_Read... [23:05:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:48]Read from MH i2c: E2 [23:05:48]MH_I2C_Read... [23:05:48]Read from MH i2c: E2 0E 00 [23:05:48]MH_I2C_Read... [23:05:48]Read from MH i2c: E2 0E 00 49 17 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 63 [23:05:48]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [23:05:48]wFMCommunicate OK [23:05:48]SAM_PROTO_GetShiftState done [23:05:48]FM_GetShiftState done [23:05:48]req_shift_opened done [23:05:48]requested_item shift.open_date is exist - process it [23:05:48]req_shift_open_date [23:05:48]req_shift_open_date done [23:05:48]produce_requested_data done [23:05:48]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67754,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [23:05:48]process_action_free close_receipt [23:05:48]json_value_free [23:05:48]json_value_free done [23:05:48]process_json_proto returns [23:05:48]Send response to host [23:05:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67754,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [23:05:48]free response buf [23:05:48]execute_script done [23:05:48]execute_script returns [23:05:48]free content buf [23:05:48]Sock 9.Close socket [23:05:48]Sock 9.Thread stoped [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:05]OFD Sender: No OFD packet to send [23:10:10]OFD Sender: No OFD packet to send [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:25]OFD Sender: No OFD packet to send [23:10:30]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:40]OFD Sender: No OFD packet to send [23:10:45]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:14:01]OFD Sender: No OFD packet to send [23:14:06]OFD Sender: No OFD packet to send [23:14:11]OFD Sender: No OFD packet to send [23:14:16]OFD Sender: No OFD packet to send [23:14:21]OFD Sender: No OFD packet to send [23:14:26]OFD Sender: No OFD packet to send [23:14:31]OFD Sender: No OFD packet to send [23:14:36]OFD Sender: No OFD packet to send [23:14:41]OFD Sender: No OFD packet to send [23:14:46]OFD Sender: No OFD packet to send [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:16]OFD Sender: No OFD packet to send [23:15:21]OFD Sender: No OFD packet to send [23:15:26]OFD Sender: No OFD packet to send [23:15:31]OFD Sender: No OFD packet to send [23:15:36]OFD Sender: No OFD packet to send [23:15:41]OFD Sender: No OFD packet to send [23:15:46]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:16:01]OFD Sender: No OFD packet to send [23:16:06]OFD Sender: No OFD packet to send [23:16:11]OFD Sender: No OFD packet to send [23:16:16]OFD Sender: No OFD packet to send [23:16:21]OFD Sender: No OFD packet to send [23:16:26]OFD Sender: No OFD packet to send [23:16:31]OFD Sender: No OFD packet to send [23:16:36]OFD Sender: No OFD packet to send [23:16:41]OFD Sender: No OFD packet to send [23:16:46]OFD Sender: No OFD packet to send [23:16:51]OFD Sender: No OFD packet to send [23:16:56]OFD Sender: No OFD packet to send [23:17:01]OFD Sender: No OFD packet to send [23:17:06]OFD Sender: No OFD packet to send [23:17:11]OFD Sender: No OFD packet to send [23:17:16]OFD Sender: No OFD packet to send [23:17:21]OFD Sender: No OFD packet to send [23:17:26]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:46]OFD Sender: No OFD packet to send [23:17:51]OFD Sender: No OFD packet to send [23:17:56]OFD Sender: No OFD packet to send [23:18:01]OFD Sender: No OFD packet to send [23:18:06]OFD Sender: No OFD packet to send [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:55]accept exits with 7 [23:18:55]New connection [23:18:55]New thread 3066752356 created [23:18:55]Thread 3066608996 joined [23:18:55]Waiting for new connection... [23:18:55] Sock 7.Parse request [23:18:55]Sock 7.Check first char [23:18:55]Sock 7.First char is OK [23:18:55]request: POST /json_proto HTTP/1.0 [23:18:55]Method: POST [23:18:55]URL: /json_proto [23:18:55]Method is POST - this is cgi request [23:18:55]url: /json_proto [23:18:55]query_string will be loaded in cgi processing [23:18:55]execute_cgi json_proto POST (null) [23:18:55]execute_cgi path=json_proto method=POST [23:18:55]POST find Content-Length [23:18:55]Host: 172.17.41.195:8080 [23:18:55]Content-Length: 679 [23:18:55]Content-Type: application/json [23:18:55] [23:18:55]POST finish read [23:18:55]Found Content-Length = 679 [23:18:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507913", "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" ] } } [23:18:55]execute_script... [23: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)507913", "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" ] } } [23:18:55]POST & json_proto [23:18:55]process_json_proto [23:18:55]json parsed OK: [23:18:55]protocol is kg_v1.0 [23:18:55]action value=close_receipt [23:18:55]process_action close_receipt [23:18:55]cmd_close_receipt [23:18:55]MH_GetDate [23:18:55]Write to MH i2c: F0 00 00 4A 17 50 [23:18:55]Write i2c OK [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: F0 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: F0 09 00 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: F0 09 00 4A 17 00 E1 E5 47 66 FC 21 6F 64 BC [23:18:55]GetLastDocTimeStamp 1715987145 [23:18:55]current date 1715987937 [23:18:55]FM_GetShiftState [23:18:55]SAM_PROTO_GetShiftState [23:18:55]wFMCommunicate request_size=4 [23:18:55]MH_SAM_APDU [23:18:55]CAPDU: 80 13 01 00 [23:18:55]Write to MH i2c: E2 08 00 4B 17 80 13 01 00 00 00 00 00 DF [23:18:55]Write i2c OK [23:18:55]MH_I2C_Read... [23:18:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:55]Read from MH i2c: E2 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: E2 0E 00 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: E2 0E 00 4B 17 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 65 [23:18:55]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [23:18:55]wFMCommunicate OK [23:18:55]SAM_PROTO_GetShiftState done [23:18:55]FM_GetShiftState done [23:18:55]opened in 1715905068 [23:18:55]opened+sec_in_day 1715991468 [23:18:55]quantity*price = 150072 [23:18:55]sum+1 = 150073 [23:18:55]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 СНО: Общий режим Чек 164 17.05.2024 23:18 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67755 ФПД: 198871105162406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T231857&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67755&fm=198871105162406&tin=02508201610067®Number=0000000000091845&sum=150000 [23:18:56]StoreToDocumentArchive [23:18:56]shift 358 fd 67755 [23:18:56]save to /storage/0358/doc_00067755 [23:18:56]save last doc name /storage/0358/doc_00067755 to /storage/kkm_last_doc_name [23:18:56]save OK [23:18:56]Clear old archive folders... [23:18:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:18:56]tlvbuf is 01B1B4B0 [23:18:56]SAM_PROTO_ClearQueue [23:18:56]wFMCommunicate request_size=4 [23:18:56]MH_SAM_APDU [23:18:56]CAPDU: 80 09 00 00 [23:18:56]Write to MH i2c: E2 08 00 58 17 80 09 00 00 00 00 00 00 E1 [23:18:56]Write i2c OK [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: E2 [23:18:56]MH_I2C_Read... [23:18:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:18:56]Read from MH i2c: E2 03 00 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: E2 03 00 58 17 00 90 00 E3 [23:18:56]RAPDU: 90 00 [23:18:56]wFMCommunicate OK [23:18:56]SAM_PROTO_ClearQueue done [23:18:56]KKMCreateOFDPacket [23:18:56]OFDProtocolAddRootSTLVToBuf [23:18:56]FM_MakeSignedData [23:18:56]FM_MakeSignedData [23:18:56]SAM_PROTO_SignData [23:18:56]wFMCommunicate request_size=4 [23:18:56]MH_SAM_APDU [23:18:56]CAPDU: 80 0D 01 02 [23:18:56]Write to MH i2c: E2 08 00 59 17 80 0D 01 02 00 00 00 00 E9 [23:18:56]Write i2c OK [23:18:56]MH_I2C_Read... [23:18:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:18:56]Read from MH i2c: E2 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: E2 03 00 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: E2 03 00 59 17 00 90 00 E4 [23:18:56]RAPDU: 90 00 [23:18:56]wFMCommunicate OK [23:18:56]wFMCommunicate request_size=255 [23:18:56]MH_SAM_APDU [23: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 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 A4 00 00 00 F4 03 04 00 E1 E5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 B4 DF 49 94 [23:18:56]Write to MH i2c: E2 02 01 5A 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 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 A4 00 00 00 F4 03 04 00 E1 E5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 B4 DF 49 94 00 00 AE [23:18:56]Write i2c OK [23:18:56]MH_I2C_Read... [23:18:56]OFD Sender: No OFD packet to send [23:18:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:56]Read from MH i2c: E2 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: E2 03 00 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: E2 03 00 5A 17 00 90 00 E5 [23:18:56]RAPDU: 90 00 [23:18:56]wFMCommunicate OK [23:18:56]wFMCommunicate request_size=7 [23:18:56]MH_SAM_APDU [23:18:56]CAPDU: 80 0D 02 02 02 4C A6 [23:18:56]Write to MH i2c: E2 0A 00 5B 17 80 0D 02 02 02 00 4C A6 00 00 E2 [23:18:56]Write i2c OK [23:18:56]MH_I2C_Read... [23:18:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:56]Read from MH i2c: E2 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: E2 03 00 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: E2 03 00 5B 17 00 90 00 E6 [23:18:56]RAPDU: 90 00 [23:18:56]wFMCommunicate OK [23:18:56]wFMCommunicate request_size=4 [23:18:56]MH_SAM_APDU [23:18:56]CAPDU: 80 0D 03 02 [23:18:56]Write to MH i2c: E2 08 00 5C 17 80 0D 03 02 00 00 00 00 EE [23:18:56]Write i2c OK [23:18:56]MH_I2C_Read... [23:18:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:18:56]Read from MH i2c: E2 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: E2 0B 00 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: E2 0B 00 5C 17 00 A0 7E 86 44 11 14 56 6C 90 00 BE [23:18:56]RAPDU: A0 7E 86 44 11 14 56 6C 90 00 [23:18:56]wFMCommunicate OK [23:18:56]SAM_PROTO_SignData done [23:18:56]FM_MakeSignedData done [23:18:56]CreateOFDProtocolMessage [23:18:56]wFMCommunicate request_size=4 [23:18:56]MH_SAM_APDU [23:18:56]CAPDU: 80 11 00 00 [23:18:56]Write to MH i2c: E2 08 00 5D 17 80 11 00 00 00 00 00 00 EE [23:18:56]Write i2c OK [23:18:56]MH_I2C_Read... [23:18:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:56]Read from MH i2c: E2 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: E2 17 00 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: E2 17 00 5D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 44 [23: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 [23:18:56]wFMCommunicate OK [23:18:56]CreateOFDProtocolMessage done [23:18:56]OFDSenderStorePacket 67755 [23:18:56]StoreOFDPacket docnum=67755 [23: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 DF 00 04 01 CD A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A4 00 00 00 F4 03 04 00 E1 E5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 B4 DF 49 94 4C A6 A0 7E 86 44 11 14 56 6C [23:18:56]CheckFolder [23:18:56]dirname=/storage/ofd_packets [23:18:56]CheckFolder done [23:18:56]ProducePacketName [23:18:56]name=ofd_packets/00067755 [23:18:56]NVStorageSaveData ofd_packets/00067755 [23:18:56]File name is /storage/ofd_packets/00067755 [23:18:56]Write 298 bytes [23:18:56]NVStorageSaveData done [23:18:56]OFDSenderStorePacket done [23:18:56]KKMCreateOFDPacket done [23:18:56]NVStorageSaveData kkm_last_timestamp [23:18:56]File name is /storage/kkm_last_timestamp [23:18:56]Write 4 bytes [23:18:56]NVStorageSaveData done [23:18:56]ExternCall_PrintAddStr [23:18:56]wPrintStart [23:18:56]Write to MH i2c: 01 00 00 5E 17 75 [23:18:56]Write i2c OK [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: 01 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: 01 07 00 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: 01 07 00 5E 17 00 00 00 00 00 FF 0F 8A [23:18:56]RasterBufferAndPrint [23:18:56]line Счет N : (1)507913 [23:18:56]line ИНН: 02508201610067 [23:18:56]line Контрольно-Кассовый Чек [23:18:56]line ПРОДАЖА [23:18:56]line ТРК (МРК, ГНК) : 31 [23:18:56]line Товар: 2710194210 [23:18:56]line ДТ-К-5 [23:18:56]line 20.090 * 74.70 [23:18:56]line = 1500.72 [23:18:56]line НДС 12% НСП 1% [23:18:56]line > о реализуемом товаре [23:18:56]line ОКРУГЛЕНИЕ: -0.72 [23:18:56]line ИТОГО: 1500.00 [23:18:56]line Внесено: 1500.00 [23:18:56]line СДАЧА: 0.00 [23:18:56]line НСП 1% : 13.28 [23:18:56]line НДС 12% : 159.37 [23:18:56]line Наличными: 1500.00 [23:18:56]line Безнал.: 0.00 [23:18:56]line Место: АЗС № 91 "Партнер Нефть" [23:18:56]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:18:56]line СНО: Общий режим [23:18:56]line Чек 164 17.05.2024 23:18 [23:18:56]line Смена: 358 ФФД: 1.0 [23:18:56]line ЗНМ: 0300000119 [23:18:56]line РНМ: 0000000000091845 [23:18:56]line Версия ККМ: 001 [23:18:56]line ФМ: 0000000000871829 [23:18:56]line ФД: 67755 [23:18:56]line ФПД: 198871105162406 [23:18:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T231857&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67755&fm=198871105162406&tin=02508201610067®Number=0000000000091845&sum=150000 [23:18:57]OFD Sender: Processing packet 67755 [packets to send 35, broken 34] [23:18:57]ProducePacketName [23:18:57]name=ofd_packets/00067755 [23:18:57]OFD Sender: To server: pG, [23:18:57]CommunicateWithHost lk.salyk.kg:30040 [23:18:57]ConnectInit lk.salyk.kg [23:18:57]written 0, free lines is 4095 [23:18:57]Connected sock=10 [23: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 DF 00 04 01 CD A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A4 00 00 00 F4 03 04 00 E1 E5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 B4 DF 49 94 4C A6 A0 7E 86 44 11 14 56 6C [23: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 A6 F1 47 00 12 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 AB 08 01 00 F4 03 04 00 B8 8D 47 66 B6 04 01 00 00 C6 C4 59 F8 61 7A E7 FC [23:18:57]CommunicateWithHost err = 0 [23:18:57]CheckOFDResponse [23:18:57]1017 (14) - 77093643461234 [23:18:57]1041 (16) - 0000000000871829 [23:18:57]1040 (4) - 67755 [23:18:57]1012 (4) - 17.05.2024 17:02 [23:18:57]1206 (1) - 0 [23:18:57]OFD Sender: Remove packet 67755 [23:18:57]ProducePacketName [23:18:57]name=ofd_packets/00067755 [23:18:57]NVStorageDeleteData [23:18:57]Write to MH i2c: 01 00 00 88 17 9F [23:18:57]Write i2c OK [23:18:57]MH_I2C_Read... [23:18:57]Read from MH i2c: 01 [23:18:57]MH_I2C_Read... [23:18:57]Read from MH i2c: 01 07 00 [23:18:57]MH_I2C_Read... [23:18:57]Read from MH i2c: 01 07 00 88 17 00 00 00 00 00 CE 0C 80 [23:18:57]RasterBufferAndPrint [23:18:57]line [23:18:57]line [23:18:57]line [23:18:57]line [23:18:57]line [23:18:57]written 0, free lines is 3284 [23:18:57]MH_Cut [23:18:57]Write to MH i2c: D1 01 00 8F 17 01 78 [23:18:57]Write i2c OK [23:18:57]MH_I2C_Read... [23:18:57]Read from MH i2c: D1 [23:18:57]MH_I2C_Read... [23:18:57]Read from MH i2c: D1 01 00 [23:18:57]MH_I2C_Read... [23:18:57]Read from MH i2c: D1 01 00 8F 17 00 77 [23:18:57]Write to MH i2c: 01 00 00 90 17 A7 [23:18:57]Write i2c OK [23:18:57]MH_I2C_Read... [23:18:57]OFD Sender: No OFD packet to send [23:18:58]*** Cut start [23:18:58]*** Purtial cut [23:18:58]*** Stage 1: CUTSNS_PIN = 1 [23:18:58]Read from MH i2c: 01 [23:18:58]MH_I2C_Read... [23:18:58]*** Stop cut motor [23:18:58]*** Cut end [23:18:58]Read from MH i2c: 01 07 00 [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: 01 07 00 90 17 00 00 00 00 00 FF 0F BC [23:18:58]process_action close_receipt done [23:18:58]requested_data is exist [23:18:58]produce_requested_data [23:18:58]requested_item fm.sn is exist - process it [23:18:58]wFMCommunicate request_size=4 [23:18:58]MH_SAM_APDU [23:18:58]CAPDU: 80 11 00 00 [23:18:58]Write to MH i2c: E2 08 00 91 17 80 11 00 00 00 00 00 00 22 [23:18:58]Write i2c OK [23:18:58]MH_I2C_Read... [23:18:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:58]Read from MH i2c: E2 [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: E2 17 00 [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: E2 17 00 91 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 78 [23:18:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:18:58]wFMCommunicate OK [23:18:58]requested_item fd.num is exist - process it [23:18:58]SAM_PROTO_GetFieldsCounters [23:18:58]wFMCommunicate request_size=4 [23:18:58]MH_SAM_APDU [23:18:58]CAPDU: 80 13 00 00 [23:18:58]Write to MH i2c: E2 08 00 92 17 80 13 00 00 00 00 00 00 25 [23:18:58]Write i2c OK [23:18:58]MH_I2C_Read... [23:18:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:18:58]Read from MH i2c: E2 [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: E2 62 00 [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: E2 62 00 92 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 AB 08 01 00 0E 04 04 00 66 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 52 [23:18: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 AB 08 01 00 0E 04 04 00 66 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 [23:18:58]wFMCommunicate OK [23:18:58]SAM_PROTO_GetFieldsCounters done [23:18:58]requested_item shift.num is exist - process it [23:18:58]requested_item shift.opened is exist - process it [23:18:58]req_shift_opened [23:18:58]FM_GetShiftState [23:18:58]SAM_PROTO_GetShiftState [23:18:58]wFMCommunicate request_size=4 [23:18:58]MH_SAM_APDU [23:18:58]CAPDU: 80 13 01 00 [23:18:58]Write to MH i2c: E2 08 00 93 17 80 13 01 00 00 00 00 00 27 [23:18:58]Write i2c OK [23:18:58]MH_I2C_Read... [23:18:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:58]Read from MH i2c: E2 [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: E2 0E 00 [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: E2 0E 00 93 17 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 AD [23:18:58]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [23:18:58]wFMCommunicate OK [23:18:58]SAM_PROTO_GetShiftState done [23:18:58]FM_GetShiftState done [23:18:58]req_shift_opened done [23:18:58]requested_item shift.open_date is exist - process it [23:18:58]req_shift_open_date [23:18:58]req_shift_open_date done [23:18:58]produce_requested_data done [23:18:58]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67755,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [23:18:58]process_action_free close_receipt [23:18:58]json_value_free [23:18:58]json_value_free done [23:18:58]process_json_proto returns [23:18:58]Send response to host [23:18:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67755,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [23:18:58]free response buf [23:18:58]execute_script done [23:18:58]execute_script returns [23:18:58]free content buf [23:18:58]Sock 7.Close socket [23:18:58]Sock 7.Thread stoped [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:12]OFD Sender: No OFD packet to send [23:19:17]OFD Sender: No OFD packet to send [23:19:22]OFD Sender: No OFD packet to send [23:19:24]accept exits with 9 [23:19:24]New connection [23:19:24]New thread 3066608996 created [23:19:24]Thread 3066752356 joined [23:19:24]Waiting for new connection... [23:19:24] Sock 9.Parse request [23:19:24]Sock 9.Check first char [23:19:24]Sock 9.First char is OK [23:19:24]request: POST /json_proto HTTP/1.0 [23:19:24]Method: POST [23:19:24]URL: /json_proto [23:19:24]Method is POST - this is cgi request [23:19:24]url: /json_proto [23:19:24]query_string will be loaded in cgi processing [23:19:24]execute_cgi json_proto POST (null) [23:19:24]execute_cgi path=json_proto method=POST [23:19:24]POST find Content-Length [23:19:24]Host: 172.17.41.195:8080 [23:19:24]Content-Length: 670 [23:19:24]Content-Type: application/json [23:19:24] [23:19:24]POST finish read [23:19:24]Found Content-Length = 670 [23:19:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507914", "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" ] } } [23:19:24]execute_script... [23: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)507914", "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" ] } } [23:19:24]POST & json_proto [23:19:24]process_json_proto [23:19:24]json parsed OK: [23:19:24]protocol is kg_v1.0 [23:19:24]action value=close_receipt [23:19:24]process_action close_receipt [23:19:24]cmd_close_receipt [23:19:24]MH_GetDate [23:19:24]Write to MH i2c: F0 00 00 94 17 9A [23:19:24]Write i2c OK [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: F0 [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: F0 09 00 [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: F0 09 00 94 17 00 FE E5 47 66 FC 21 6F 64 23 [23:19:24]GetLastDocTimeStamp 1715987937 [23:19:24]current date 1715987966 [23:19:24]FM_GetShiftState [23:19:24]SAM_PROTO_GetShiftState [23:19:24]wFMCommunicate request_size=4 [23:19:24]MH_SAM_APDU [23:19:24]CAPDU: 80 13 01 00 [23:19:24]Write to MH i2c: E2 08 00 95 17 80 13 01 00 00 00 00 00 29 [23:19:24]Write i2c OK [23:19:24]MH_I2C_Read... [23:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:24]Read from MH i2c: E2 [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: E2 0E 00 [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: E2 0E 00 95 17 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 AF [23:19:24]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [23:19:24]wFMCommunicate OK [23:19:24]SAM_PROTO_GetShiftState done [23:19:24]FM_GetShiftState done [23:19:24]opened in 1715905068 [23:19:24]opened+sec_in_day 1715991468 [23:19:24]quantity*price = 50036 [23:19:24]sum+1 = 50037 [23:19:24]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 СНО: Общий режим Чек 165 17.05.2024 23:19 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67756 ФПД: 152715869611836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T231926&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67756&fm=152715869611836&tin=02508201610067®Number=0000000000091845&sum=50000 [23:19:25]StoreToDocumentArchive [23:19:25]shift 358 fd 67756 [23:19:25]save to /storage/0358/doc_00067756 [23:19:25]save last doc name /storage/0358/doc_00067756 to /storage/kkm_last_doc_name [23:19:25]save OK [23:19:25]Clear old archive folders... [23:19:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:19:25]tlvbuf is 01B34CA0 [23:19:25]SAM_PROTO_ClearQueue [23:19:25]wFMCommunicate request_size=4 [23:19:25]MH_SAM_APDU [23:19:25]CAPDU: 80 09 00 00 [23:19:25]Write to MH i2c: E2 08 00 A2 17 80 09 00 00 00 00 00 00 2B [23:19:25]Write i2c OK [23:19:25]MH_I2C_Read... [23:19:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:25]Read from MH i2c: E2 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: E2 03 00 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: E2 03 00 A2 17 00 90 00 2D [23:19:25]RAPDU: 90 00 [23:19:25]wFMCommunicate OK [23:19:25]SAM_PROTO_ClearQueue done [23:19:25]KKMCreateOFDPacket [23:19:25]OFDProtocolAddRootSTLVToBuf [23:19:25]FM_MakeSignedData [23:19:25]FM_MakeSignedData [23:19:25]SAM_PROTO_SignData [23:19:25]wFMCommunicate request_size=4 [23:19:25]MH_SAM_APDU [23:19:25]CAPDU: 80 0D 01 02 [23:19:25]Write to MH i2c: E2 08 00 A3 17 80 0D 01 02 00 00 00 00 33 [23:19:25]Write i2c OK [23:19:25]MH_I2C_Read... [23:19:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:25]Read from MH i2c: E2 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: E2 03 00 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: E2 03 00 A3 17 00 90 00 2E [23:19:25]RAPDU: 90 00 [23:19:25]wFMCommunicate OK [23:19:25]wFMCommunicate request_size=255 [23:19:25]MH_SAM_APDU [23:19:25]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 A5 00 00 00 F4 03 04 00 FE E5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 [23:19:25]Write to MH i2c: E2 02 01 A4 17 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 A5 00 00 00 F4 03 04 00 FE E5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 00 00 32 [23:19:25]Write i2c OK [23:19:25]MH_I2C_Read... [23:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:26]Read from MH i2c: E2 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 03 00 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 03 00 A4 17 00 90 00 2F [23:19:26]RAPDU: 90 00 [23:19:26]wFMCommunicate OK [23:19:26]wFMCommunicate request_size=11 [23:19:26]MH_SAM_APDU [23:19:26]CAPDU: 80 0D 02 02 06 8A E4 EF 28 E7 3C [23:19:26]Write to MH i2c: E2 0E 00 A5 17 80 0D 02 02 06 00 8A E4 EF 28 E7 3C 00 00 EA [23:19:26]Write i2c OK [23:19:26]MH_I2C_Read... [23:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:26]Read from MH i2c: E2 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 03 00 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 03 00 A5 17 00 90 00 30 [23:19:26]RAPDU: 90 00 [23:19:26]wFMCommunicate OK [23:19:26]wFMCommunicate request_size=4 [23:19:26]MH_SAM_APDU [23:19:26]CAPDU: 80 0D 03 02 [23:19:26]Write to MH i2c: E2 08 00 A6 17 80 0D 03 02 00 00 00 00 38 [23:19:26]Write i2c OK [23:19:26]MH_I2C_Read... [23:19:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:26]Read from MH i2c: E2 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 0B 00 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 0B 00 A6 17 00 9E 5E BE 8F 14 A3 6C 8F 90 00 34 [23:19:26]RAPDU: 9E 5E BE 8F 14 A3 6C 8F 90 00 [23:19:26]wFMCommunicate OK [23:19:26]SAM_PROTO_SignData done [23:19:26]FM_MakeSignedData done [23:19:26]CreateOFDProtocolMessage [23:19:26]wFMCommunicate request_size=4 [23:19:26]MH_SAM_APDU [23:19:26]CAPDU: 80 11 00 00 [23:19:26]Write to MH i2c: E2 08 00 A7 17 80 11 00 00 00 00 00 00 38 [23:19:26]Write i2c OK [23:19:26]MH_I2C_Read... [23:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:26]Read from MH i2c: E2 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 17 00 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 17 00 A7 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8E [23: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 [23:19:26]wFMCommunicate OK [23:19:26]CreateOFDProtocolMessage done [23:19:26]OFDSenderStorePacket 67756 [23:19:26]StoreOFDPacket docnum=67756 [23: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 10 01 00 00 77 74 08 01 AD 54 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 A5 00 00 00 F4 03 04 00 FE E5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 8A E4 EF 28 E7 3C 9E 5E BE 8F 14 A3 6C 8F [23:19:26]CheckFolder [23:19:26]dirname=/storage/ofd_packets [23:19:26]CheckFolder done [23:19:26]ProducePacketName [23:19:26]name=ofd_packets/00067756 [23:19:26]NVStorageSaveData ofd_packets/00067756 [23:19:26]File name is /storage/ofd_packets/00067756 [23:19:26]Write 302 bytes [23:19:26]NVStorageSaveData done [23:19:26]OFDSenderStorePacket done [23:19:26]KKMCreateOFDPacket done [23:19:26]NVStorageSaveData kkm_last_timestamp [23:19:26]File name is /storage/kkm_last_timestamp [23:19:26]Write 4 bytes [23:19:26]NVStorageSaveData done [23:19:26]ExternCall_PrintAddStr [23:19:26]wPrintStart [23:19:26]Write to MH i2c: 01 00 00 A8 17 BF [23:19:26]Write i2c OK [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: 01 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: 01 07 00 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: 01 07 00 A8 17 00 00 00 00 00 FF 0F D4 [23:19:26]RasterBufferAndPrint [23:19:26]line Счет N : (1)507914 [23:19:26]line ИНН: 02508201610067 [23:19:26]line Контрольно-Кассовый Чек [23:19:26]line ПРОДАЖА [23:19:26]line ТРК (МРК, ГНК) : 42 [23:19:26]line Товар: 2710124130 [23:19:26]line Super-92-К-5 [23:19:26]line 7.380 * 67.80 [23:19:26]line = 500.36 [23:19:26]line НДС 12% НСП 1% [23:19:26]line > о реализуемом товаре [23:19:26]line ОКРУГЛЕНИЕ: -0.36 [23:19:26]line ИТОГО: 500.00 [23:19:26]line Внесено: 500.00 [23:19:26]line СДАЧА: 0.00 [23:19:26]line НСП 1% : 4.43 [23:19:26]line НДС 12% : 53.14 [23:19:26]line Наличными: 500.00 [23:19:26]line Безнал.: 0.00 [23:19:26]line Место: АЗС № 91 "Партнер Нефть" [23:19:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:19:26]line СНО: Общий режим [23:19:26]line Чек 165 17.05.2024 23:19 [23:19:26]line Смена: 358 ФФД: 1.0 [23:19:26]line ЗНМ: 0300000119 [23:19:26]line РНМ: 0000000000091845 [23:19:26]line Версия ККМ: 001 [23:19:26]line ФМ: 0000000000871829 [23:19:26]line ФД: 67756 [23:19:26]line ФПД: 152715869611836 [23:19:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T231926&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67756&fm=152715869611836&tin=02508201610067®Number=0000000000091845&sum=50000 [23:19:26]written 0, free lines is 4095 [23:19:26]OFD Sender: Processing packet 67756 [packets to send 35, broken 34] [23:19:26]ProducePacketName [23:19:26]name=ofd_packets/00067756 [23:19:26]OFD Sender: To server: pG, [23:19:26]CommunicateWithHost lk.salyk.kg:30040 [23:19:26]ConnectInit lk.salyk.kg [23:19:26]Connected sock=10 [23: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 10 01 00 00 77 74 08 01 AD 54 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 A5 00 00 00 F4 03 04 00 FE E5 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 8A E4 EF 28 E7 3C 9E 5E BE 8F 14 A3 6C 8F [23:19: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 EA A9 47 00 54 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 D5 8D 47 66 B6 04 01 00 00 5B B9 56 32 EA 08 A3 6A [23:19:26]CommunicateWithHost err = 0 [23:19:26]CheckOFDResponse [23:19:26]1017 (14) - 77093643461234 [23:19:26]1041 (16) - 0000000000871829 [23:19:26]1040 (4) - 67756 [23:19:26]1012 (4) - 17.05.2024 17:03 [23:19:26]1206 (1) - 0 [23:19:26]OFD Sender: Remove packet 67756 [23:19:26]ProducePacketName [23:19:26]name=ofd_packets/00067756 [23:19:26]NVStorageDeleteData [23:19:26]Write to MH i2c: 01 00 00 D2 17 E9 [23:19:26]Write i2c OK [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: 01 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: 01 07 00 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: 01 07 00 D2 17 00 00 00 00 00 DD 0C D9 [23:19:26]RasterBufferAndPrint [23:19:26]line [23:19:26]line [23:19:26]line [23:19:26]line [23:19:26]line [23:19:26]written 0, free lines is 3299 [23:19:26]MH_Cut [23:19:26]Write to MH i2c: D1 01 00 D9 17 01 C2 [23:19:26]Write i2c OK [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: D1 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: D1 01 00 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: D1 01 00 D9 17 00 C1 [23:19:26]Write to MH i2c: 01 00 00 DA 17 F1 [23:19:26]Write i2c OK [23:19:26]MH_I2C_Read... [23:19:27]OFD Sender: No OFD packet to send [23:19:27]*** Cut start [23:19:27]*** Purtial cut [23:19:27]*** CUTSNS_PIN = 0 [23:19:27]*** Stage 1: CUTSNS_PIN = 1 [23:19:29]Read from MH i2c: 01 [23:19:29]MH_I2C_Read... [23:19:29]*** Stop cut motor [23:19:29]*** Cut end [23:19:29]Read from MH i2c: 01 07 00 [23:19:29]MH_I2C_Read... [23:19:29]Read from MH i2c: 01 07 00 DA 17 00 00 00 00 00 FF 0F 06 [23:19:29]process_action close_receipt done [23:19:29]requested_data is exist [23:19:29]produce_requested_data [23:19:29]requested_item fm.sn is exist - process it [23:19:29]wFMCommunicate request_size=4 [23:19:29]MH_SAM_APDU [23:19:29]CAPDU: 80 11 00 00 [23:19:29]Write to MH i2c: E2 08 00 DB 17 80 11 00 00 00 00 00 00 6C [23:19:29]Write i2c OK [23:19:29]MH_I2C_Read... [23:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:29]Read from MH i2c: E2 [23:19:29]MH_I2C_Read... [23:19:29]Read from MH i2c: E2 17 00 [23:19:29]MH_I2C_Read... [23:19:29]Read from MH i2c: E2 17 00 DB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C2 [23:19: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:19:29]wFMCommunicate OK [23:19:29]requested_item fd.num is exist - process it [23:19:29]SAM_PROTO_GetFieldsCounters [23:19:29]wFMCommunicate request_size=4 [23:19:29]MH_SAM_APDU [23:19:29]CAPDU: 80 13 00 00 [23:19:29]Write to MH i2c: E2 08 00 DC 17 80 13 00 00 00 00 00 00 6F [23:19:29]Write i2c OK [23:19:29]MH_I2C_Read... [23:19:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:29]Read from MH i2c: E2 [23:19:29]MH_I2C_Read... [23:19:29]Read from MH i2c: E2 62 00 [23:19:29]MH_I2C_Read... [23:19:29]Read from MH i2c: E2 62 00 DC 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 AC 08 01 00 0E 04 04 00 66 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 A0 [23:19: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 AC 08 01 00 0E 04 04 00 66 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 [23:19:29]wFMCommunicate OK [23:19:29]SAM_PROTO_GetFieldsCounters done [23:19:29]requested_item shift.num is exist - process it [23:19:29]requested_item shift.opened is exist - process it [23:19:29]req_shift_opened [23:19:29]FM_GetShiftState [23:19:29]SAM_PROTO_GetShiftState [23:19:29]wFMCommunicate request_size=4 [23:19:29]MH_SAM_APDU [23:19:29]CAPDU: 80 13 01 00 [23:19:29]Write to MH i2c: E2 08 00 DD 17 80 13 01 00 00 00 00 00 71 [23:19:29]Write i2c OK [23:19:29]MH_I2C_Read... [23:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:29]Read from MH i2c: E2 [23:19:29]MH_I2C_Read... [23:19:29]Read from MH i2c: E2 0E 00 [23:19:29]MH_I2C_Read... [23:19:29]Read from MH i2c: E2 0E 00 DD 17 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F7 [23:19:29]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [23:19:29]wFMCommunicate OK [23:19:29]SAM_PROTO_GetShiftState done [23:19:29]FM_GetShiftState done [23:19:29]req_shift_opened done [23:19:29]requested_item shift.open_date is exist - process it [23:19:29]req_shift_open_date [23:19:29]req_shift_open_date done [23:19:29]produce_requested_data done [23:19:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67756,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [23:19:29]process_action_free close_receipt [23:19:29]json_value_free [23:19:29]json_value_free done [23:19:29]process_json_proto returns [23:19:29]Send response to host [23:19:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67756,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [23:19:29]free response buf [23:19:29]execute_script done [23:19:29]execute_script returns [23:19:29]free content buf [23:19:29]Sock 9.Close socket [23:19:29]Sock 9.Thread stoped [23:19:32]OFD Sender: No OFD packet to send [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:27]OFD Sender: No OFD packet to send [23:20:32]OFD Sender: No OFD packet to send [23:20:37]OFD Sender: No OFD packet to send [23:20:42]OFD Sender: No OFD packet to send [23:20:47]OFD Sender: No OFD packet to send [23:20:52]OFD Sender: No OFD packet to send [23:20:57]OFD Sender: No OFD packet to send [23:21:02]OFD Sender: No OFD packet to send [23:21:07]OFD Sender: No OFD packet to send [23:21:12]OFD Sender: No OFD packet to send [23:21:17]OFD Sender: No OFD packet to send [23:21:22]OFD Sender: No OFD packet to send [23:21:27]OFD Sender: No OFD packet to send [23:21:32]OFD Sender: No OFD packet to send [23:21:37]OFD Sender: No OFD packet to send [23:21:42]OFD Sender: No OFD packet to send [23:21:47]OFD Sender: No OFD packet to send [23:21:52]OFD Sender: No OFD packet to send [23:21:57]OFD Sender: No OFD packet to send [23:22:02]OFD Sender: No OFD packet to send [23:22:07]OFD Sender: No OFD packet to send [23:22:12]OFD Sender: No OFD packet to send [23:22:17]OFD Sender: No OFD packet to send [23:22:22]OFD Sender: No OFD packet to send [23:22:27]OFD Sender: No OFD packet to send [23:22:32]OFD Sender: No OFD packet to send [23:22:37]OFD Sender: No OFD packet to send [23:22:42]OFD Sender: No OFD packet to send [23:22:47]OFD Sender: No OFD packet to send [23:22:52]OFD Sender: No OFD packet to send [23:22:57]OFD Sender: No OFD packet to send [23:23:02]OFD Sender: No OFD packet to send [23:23:07]OFD Sender: No OFD packet to send [23:23:12]OFD Sender: No OFD packet to send [23:23:17]OFD Sender: No OFD packet to send [23:23:22]OFD Sender: No OFD packet to send [23:23:27]OFD Sender: No OFD packet to send [23:23:32]OFD Sender: No OFD packet to send [23:23:37]OFD Sender: No OFD packet to send [23:23:42]OFD Sender: No OFD packet to send [23:23:47]OFD Sender: No OFD packet to send [23:23:52]OFD Sender: No OFD packet to send [23:23:57]OFD Sender: No OFD packet to send [23:24:02]OFD Sender: No OFD packet to send [23:24:07]OFD Sender: No OFD packet to send [23:24:12]OFD Sender: No OFD packet to send [23:24:17]OFD Sender: No OFD packet to send [23:24:22]OFD Sender: No OFD packet to send [23:24:27]OFD Sender: No OFD packet to send [23:24:32]OFD Sender: No OFD packet to send [23:24:37]OFD Sender: No OFD packet to send [23:24:42]OFD Sender: No OFD packet to send [23:24:47]OFD Sender: No OFD packet to send [23:24:52]OFD Sender: No OFD packet to send [23:24:57]OFD Sender: No OFD packet to send [23:25:02]OFD Sender: No OFD packet to send [23:25:07]OFD Sender: No OFD packet to send [23:25:12]OFD Sender: No OFD packet to send [23:25:17]OFD Sender: No OFD packet to send [23:25:22]OFD Sender: No OFD packet to send [23:25:27]OFD Sender: No OFD packet to send [23:25:32]OFD Sender: No OFD packet to send [23:25:37]OFD Sender: No OFD packet to send [23:25:42]OFD Sender: No OFD packet to send [23:25:47]OFD Sender: No OFD packet to send [23:25:52]OFD Sender: No OFD packet to send [23:25:57]OFD Sender: No OFD packet to send [23:26:02]OFD Sender: No OFD packet to send [23:26:07]OFD Sender: No OFD packet to send [23:26:12]OFD Sender: No OFD packet to send [23:26:17]OFD Sender: No OFD packet to send [23:26:22]OFD Sender: No OFD packet to send [23:26:27]OFD Sender: No OFD packet to send [23:26:32]OFD Sender: No OFD packet to send [23:26:37]OFD Sender: No OFD packet to send [23:26:42]OFD Sender: No OFD packet to send [23:26:47]OFD Sender: No OFD packet to send [23:26:52]OFD Sender: No OFD packet to send [23:26:57]OFD Sender: No OFD packet to send [23:27:02]OFD Sender: No OFD packet to send [23:27:07]OFD Sender: No OFD packet to send [23:27:12]OFD Sender: No OFD packet to send [23:27:17]OFD Sender: No OFD packet to send [23:27:22]OFD Sender: No OFD packet to send [23:27:27]OFD Sender: No OFD packet to send [23:27:32]OFD Sender: No OFD packet to send [23:27:37]OFD Sender: No OFD packet to send [23:27:42]OFD Sender: No OFD packet to send [23:27:47]OFD Sender: No OFD packet to send [23:27:52]OFD Sender: No OFD packet to send [23:27:57]OFD Sender: No OFD packet to send [23:28:02]OFD Sender: No OFD packet to send [23:28:07]OFD Sender: No OFD packet to send [23:28:12]OFD Sender: No OFD packet to send [23:28:17]OFD Sender: No OFD packet to send [23:28:22]OFD Sender: No OFD packet to send [23:28:27]OFD Sender: No OFD packet to send [23:28:32]OFD Sender: No OFD packet to send [23:28:37]OFD Sender: No OFD packet to send [23:28:42]OFD Sender: No OFD packet to send [23:28:47]OFD Sender: No OFD packet to send [23:28:52]OFD Sender: No OFD packet to send [23:28:57]OFD Sender: No OFD packet to send [23:29:02]OFD Sender: No OFD packet to send [23:29:07]OFD Sender: No OFD packet to send [23:29:12]OFD Sender: No OFD packet to send [23:29:17]OFD Sender: No OFD packet to send [23:29:22]OFD Sender: No OFD packet to send [23:29:27]OFD Sender: No OFD packet to send [23:29:32]OFD Sender: No OFD packet to send [23:29:37]OFD Sender: No OFD packet to send [23:29:42]OFD Sender: No OFD packet to send [23:29:47]OFD Sender: No OFD packet to send [23:29:52]OFD Sender: No OFD packet to send [23:29:57]OFD Sender: No OFD packet to send [23:30:02]OFD Sender: No OFD packet to send [23:30:07]OFD Sender: No OFD packet to send [23:30:12]OFD Sender: No OFD packet to send [23:30:17]OFD Sender: No OFD packet to send [23:30:22]OFD Sender: No OFD packet to send [23:30:27]OFD Sender: No OFD packet to send [23:30:32]OFD Sender: No OFD packet to send [23:30:37]OFD Sender: No OFD packet to send [23:30:42]OFD Sender: No OFD packet to send [23:30:47]OFD Sender: No OFD packet to send [23:30:52]OFD Sender: No OFD packet to send [23:30:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:07]OFD Sender: No OFD packet to send [23:31:12]OFD Sender: No OFD packet to send [23:31:17]OFD Sender: No OFD packet to send [23:31:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:52]OFD Sender: No OFD packet to send [23:31:57]OFD Sender: No OFD packet to send [23:32:02]OFD Sender: No OFD packet to send [23:32:07]OFD Sender: No OFD packet to send [23:32:12]OFD Sender: No OFD packet to send [23:32:17]OFD Sender: No OFD packet to send [23:32:22]OFD Sender: No OFD packet to send [23:32:27]OFD Sender: No OFD packet to send [23:32:32]OFD Sender: No OFD packet to send [23:32:37]OFD Sender: No OFD packet to send [23:32:42]OFD Sender: No OFD packet to send [23:32:47]OFD Sender: No OFD packet to send [23:32:52]OFD Sender: No OFD packet to send [23:32:57]OFD Sender: No OFD packet to send [23:33:02]OFD Sender: No OFD packet to send [23:33:07]OFD Sender: No OFD packet to send [23:33:12]OFD Sender: No OFD packet to send [23:33:17]OFD Sender: No OFD packet to send [23:33:22]OFD Sender: No OFD packet to send [23:33:27]OFD Sender: No OFD packet to send [23:33:32]OFD Sender: No OFD packet to send [23:33:37]OFD Sender: No OFD packet to send [23:33:41]accept exits with 7 [23:33:41]New connection [23:33:41]New thread 3066752356 created [23:33:41]Thread 3066608996 joined [23:33:41]Waiting for new connection... [23:33:41] Sock 7.Parse request [23:33:41]Sock 7.Check first char [23:33:41]Sock 7.First char is OK [23:33:41]request: POST /json_proto HTTP/1.0 [23:33:41]Method: POST [23:33:41]URL: /json_proto [23:33:41]Method is POST - this is cgi request [23:33:41]url: /json_proto [23:33:41]query_string will be loaded in cgi processing [23:33:41]execute_cgi json_proto POST (null) [23:33:41]execute_cgi path=json_proto method=POST [23:33:41]POST find Content-Length [23:33:41]Host: 172.17.41.195:8080 [23:33:41]Content-Length: 671 [23:33:41]Content-Type: application/json [23:33:41] [23:33:41]POST finish read [23:33:41]Found Content-Length = 671 [23:33:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507915", "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" ] } } [23:33:41]execute_script... [23:33: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)507915", "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" ] } } [23:33:41]POST & json_proto [23:33:41]process_json_proto [23:33:41]json parsed OK: [23:33:41]protocol is kg_v1.0 [23:33:41]action value=close_receipt [23:33:41]process_action close_receipt [23:33:41]cmd_close_receipt [23:33:41]MH_GetDate [23:33:41]Write to MH i2c: F0 00 00 DE 17 E4 [23:33:41]Write i2c OK [23:33:41]MH_I2C_Read... [23:33:41]Read from MH i2c: F0 [23:33:41]MH_I2C_Read... [23:33:41]Read from MH i2c: F0 09 00 [23:33:41]MH_I2C_Read... [23:33:41]Read from MH i2c: F0 09 00 DE 17 00 58 E9 47 66 FC 21 6F 64 CB [23:33:41]GetLastDocTimeStamp 1715987966 [23:33:41]current date 1715988824 [23:33:41]FM_GetShiftState [23:33:41]SAM_PROTO_GetShiftState [23:33:41]wFMCommunicate request_size=4 [23:33:41]MH_SAM_APDU [23:33:41]CAPDU: 80 13 01 00 [23:33:41]Write to MH i2c: E2 08 00 DF 17 80 13 01 00 00 00 00 00 73 [23:33:41]Write i2c OK [23:33:41]MH_I2C_Read... [23:33:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:41]Read from MH i2c: E2 [23:33:41]MH_I2C_Read... [23:33:41]Read from MH i2c: E2 0E 00 [23:33:41]MH_I2C_Read... [23:33:41]Read from MH i2c: E2 0E 00 DF 17 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F9 [23:33:41]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [23:33:41]wFMCommunicate OK [23:33:41]SAM_PROTO_GetShiftState done [23:33:41]FM_GetShiftState done [23:33:41]opened in 1715905068 [23:33:41]opened+sec_in_day 1715991468 [23:33:41]quantity*price = 70037 [23:33:41]sum+1 = 70038 [23:33:41]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 СНО: Общий режим Чек 166 17.05.2024 23:33 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67757 ФПД: 197226173264567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T233344&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67757&fm=197226173264567&tin=02508201610067®Number=0000000000091845&sum=70000 [23:33:43]StoreToDocumentArchive [23:33:43]shift 358 fd 67757 [23:33:43]save to /storage/0358/doc_00067757 [23:33:43]save last doc name /storage/0358/doc_00067757 to /storage/kkm_last_doc_name [23:33:43]save OK [23:33:43]Clear old archive folders... [23:33:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:33:43]tlvbuf is 01B1B290 [23:33:43]SAM_PROTO_ClearQueue [23:33:43]wFMCommunicate request_size=4 [23:33:43]MH_SAM_APDU [23:33:43]CAPDU: 80 09 00 00 [23:33:43]Write to MH i2c: E2 08 00 EC 17 80 09 00 00 00 00 00 00 75 [23:33:43]Write i2c OK [23:33:43]MH_I2C_Read... [23:33:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:33:43]Read from MH i2c: E2 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: E2 03 00 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: E2 03 00 EC 17 00 90 00 77 [23:33:43]RAPDU: 90 00 [23:33:43]wFMCommunicate OK [23:33:43]SAM_PROTO_ClearQueue done [23:33:43]KKMCreateOFDPacket [23:33:43]OFDProtocolAddRootSTLVToBuf [23:33:43]FM_MakeSignedData [23:33:43]FM_MakeSignedData [23:33:43]SAM_PROTO_SignData [23:33:43]wFMCommunicate request_size=4 [23:33:43]MH_SAM_APDU [23:33:43]CAPDU: 80 0D 01 02 [23:33:43]Write to MH i2c: E2 08 00 ED 17 80 0D 01 02 00 00 00 00 7D [23:33:43]Write i2c OK [23:33:43]MH_I2C_Read... [23:33:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:33:43]Read from MH i2c: E2 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: E2 03 00 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: E2 03 00 ED 17 00 90 00 78 [23:33:43]RAPDU: 90 00 [23:33:43]wFMCommunicate OK [23:33:43]wFMCommunicate request_size=255 [23:33:43]MH_SAM_APDU [23:33: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 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 A6 00 00 00 F4 03 04 00 58 E9 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 [23:33:43]Write to MH i2c: E2 02 01 EE 17 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 A6 00 00 00 F4 03 04 00 58 E9 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 00 00 C3 [23:33:43]Write i2c OK [23:33:43]MH_I2C_Read... [23:33:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:43]Read from MH i2c: E2 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: E2 03 00 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: E2 03 00 EE 17 00 90 00 79 [23:33:43]RAPDU: 90 00 [23:33:43]wFMCommunicate OK [23:33:43]wFMCommunicate request_size=11 [23:33:43]MH_SAM_APDU [23:33:43]CAPDU: 80 0D 02 02 06 B3 60 4B FF 72 B7 [23:33:43]Write to MH i2c: E2 0E 00 EF 17 80 0D 02 02 06 00 B3 60 4B FF 72 B7 00 00 12 [23:33:43]Write i2c OK [23:33:43]MH_I2C_Read... [23:33:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:43]Read from MH i2c: E2 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: E2 03 00 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: E2 03 00 EF 17 00 90 00 7A [23:33:43]RAPDU: 90 00 [23:33:43]wFMCommunicate OK [23:33:43]wFMCommunicate request_size=4 [23:33:43]MH_SAM_APDU [23:33:43]CAPDU: 80 0D 03 02 [23:33:43]Write to MH i2c: E2 08 00 F0 17 80 0D 03 02 00 00 00 00 82 [23:33:43]Write i2c OK [23:33:43]MH_I2C_Read... [23:33:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:33:43]Read from MH i2c: E2 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: E2 0B 00 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: E2 0B 00 F0 17 00 AA F1 7D 87 E4 1E AD C5 90 00 96 [23:33:43]RAPDU: AA F1 7D 87 E4 1E AD C5 90 00 [23:33:43]wFMCommunicate OK [23:33:43]SAM_PROTO_SignData done [23:33:43]FM_MakeSignedData done [23:33:43]CreateOFDProtocolMessage [23:33:43]wFMCommunicate request_size=4 [23:33:43]MH_SAM_APDU [23:33:43]CAPDU: 80 11 00 00 [23:33:43]Write to MH i2c: E2 08 00 F1 17 80 11 00 00 00 00 00 00 82 [23:33:43]Write i2c OK [23:33:43]MH_I2C_Read... [23:33:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:43]Read from MH i2c: E2 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: E2 17 00 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: E2 17 00 F1 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D8 [23:33: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:33:43]wFMCommunicate OK [23:33:43]CreateOFDProtocolMessage done [23:33:43]OFDSenderStorePacket 67757 [23:33:43]StoreOFDPacket docnum=67757 [23:33: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 10 01 00 00 5E C1 08 01 E2 9C 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 A6 00 00 00 F4 03 04 00 58 E9 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 B3 60 4B FF 72 B7 AA F1 7D 87 E4 1E AD C5 [23:33:43]CheckFolder [23:33:43]dirname=/storage/ofd_packets [23:33:43]CheckFolder done [23:33:43]ProducePacketName [23:33:43]name=ofd_packets/00067757 [23:33:43]NVStorageSaveData ofd_packets/00067757 [23:33:43]File name is /storage/ofd_packets/00067757 [23:33:43]Write 302 bytes [23:33:43]NVStorageSaveData done [23:33:43]OFDSenderStorePacket done [23:33:43]KKMCreateOFDPacket done [23:33:43]NVStorageSaveData kkm_last_timestamp [23:33:43]File name is /storage/kkm_last_timestamp [23:33:43]Write 4 bytes [23:33:43]NVStorageSaveData done [23:33:43]ExternCall_PrintAddStr [23:33:43]wPrintStart [23:33:43]Write to MH i2c: 01 00 00 F2 17 09 [23:33:43]Write i2c OK [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: 01 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: 01 07 00 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: 01 07 00 F2 17 00 00 00 00 00 FF 0F 1E [23:33:43]RasterBufferAndPrint [23:33:43]line Счет N : (1)507915 [23:33:43]line ИНН: 02508201610067 [23:33:43]line Контрольно-Кассовый Чек [23:33:43]line ПРОДАЖА [23:33:43]line ТРК (МРК, ГНК) : 22 [23:33:43]line Товар: 2710124130 [23:33:43]line Super-92-К-5 [23:33:43]line 10.330 * 67.80 [23:33:43]line = 700.37 [23:33:43]line НДС 12% НСП 1% [23:33:43]line > о реализуемом товаре [23:33:43]line ОКРУГЛЕНИЕ: -0.37 [23:33:43]line ИТОГО: 700.00 [23:33:43]line Внесено: 700.00 [23:33:43]line СДАЧА: 0.00 [23:33:43]line НСП 1% : 6.20 [23:33:43]line НДС 12% : 74.38 [23:33:43]line Наличными: 700.00 [23:33:43]line Безнал.: 0.00 [23:33:43]line Место: АЗС № 91 "Партнер Нефть" [23:33:43]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:33:43]line СНО: Общий режим [23:33:43]line Чек 166 17.05.2024 23:33 [23:33:43]line Смена: 358 ФФД: 1.0 [23:33:43]line ЗНМ: 0300000119 [23:33:43]line РНМ: 0000000000091845 [23:33:43]line Версия ККМ: 001 [23:33:43]line ФМ: 0000000000871829 [23:33:43]line ФД: 67757 [23:33:43]line ФПД: 197226173264567 [23:33:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T233344&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67757&fm=197226173264567&tin=02508201610067®Number=0000000000091845&sum=70000 [23:33:43]written 0, free lines is 4095 [23:33:43]OFD Sender: Processing packet 67757 [packets to send 35, broken 34] [23:33:43]ProducePacketName [23:33:43]name=ofd_packets/00067757 [23:33:43]OFD Sender: To server: pG, [23:33:43]CommunicateWithHost lk.salyk.kg:30040 [23:33:43]ConnectInit lk.salyk.kg [23:33:43]Connected sock=10 [23:33: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 10 01 00 00 5E C1 08 01 E2 9C 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 A6 00 00 00 F4 03 04 00 58 E9 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 B3 60 4B FF 72 B7 AA F1 7D 87 E4 1E AD C5 [23:33: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 9A 89 47 00 33 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 AD 08 01 00 F4 03 04 00 2F 91 47 66 B6 04 01 00 00 30 5D A9 E3 30 77 56 64 [23:33:44]CommunicateWithHost err = 0 [23:33:44]CheckOFDResponse [23:33:44]1017 (14) - 77093643461234 [23:33:44]1041 (16) - 0000000000871829 [23:33:44]1040 (4) - 67757 [23:33:44]1012 (4) - 17.05.2024 17:17 [23:33:44]1206 (1) - 0 [23:33:44]OFD Sender: Remove packet 67757 [23:33:44]ProducePacketName [23:33:44]name=ofd_packets/00067757 [23:33:44]NVStorageDeleteData [23:33:44]Write to MH i2c: 01 00 00 1C 18 34 [23:33:44]Write i2c OK [23:33:44]MH_I2C_Read... [23:33:44]Read from MH i2c: 01 [23:33:44]MH_I2C_Read... [23:33:44]Read from MH i2c: 01 07 00 [23:33:44]MH_I2C_Read... [23:33:44]Read from MH i2c: 01 07 00 1C 18 00 00 00 00 00 C8 0C 0F [23:33:44]RasterBufferAndPrint [23:33:44]line [23:33:44]line [23:33:44]line [23:33:44]line [23:33:44]line [23:33:44]written 0, free lines is 3278 [23:33:44]MH_Cut [23:33:44]Write to MH i2c: D1 01 00 23 18 01 0D [23:33:44]Write i2c OK [23:33:44]MH_I2C_Read... [23:33:44]Read from MH i2c: D1 [23:33:44]MH_I2C_Read... [23:33:44]Read from MH i2c: D1 01 00 [23:33:44]MH_I2C_Read... [23:33:44]Read from MH i2c: D1 01 00 23 18 00 0C [23:33:44]Write to MH i2c: 01 00 00 24 18 3C [23:33:44]Write i2c OK [23:33:44]MH_I2C_Read... [23:33:44]OFD Sender: No OFD packet to send [23:33:45]*** Cut start [23:33:45]*** Purtial cut [23:33:45]*** Stage 1: CUTSNS_PIN = 1 [23:33:45]Read from MH i2c: 01 [23:33:45]MH_I2C_Read... [23:33:45]*** Stop cut motor [23:33:45]*** Cut end [23:33:45]Read from MH i2c: 01 07 00 [23:33:45]MH_I2C_Read... [23:33:45]Read from MH i2c: 01 07 00 24 18 00 00 00 00 00 FF 0F 51 [23:33:45]process_action close_receipt done [23:33:45]requested_data is exist [23:33:45]produce_requested_data [23:33:45]requested_item fm.sn is exist - process it [23:33:45]wFMCommunicate request_size=4 [23:33:45]MH_SAM_APDU [23:33:45]CAPDU: 80 11 00 00 [23:33:45]Write to MH i2c: E2 08 00 25 18 80 11 00 00 00 00 00 00 B7 [23:33:45]Write i2c OK [23:33:45]MH_I2C_Read... [23:33:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:45]Read from MH i2c: E2 [23:33:45]MH_I2C_Read... [23:33:45]Read from MH i2c: E2 17 00 [23:33:45]MH_I2C_Read... [23:33:45]Read from MH i2c: E2 17 00 25 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0D [23:33: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:33:45]wFMCommunicate OK [23:33:45]requested_item fd.num is exist - process it [23:33:45]SAM_PROTO_GetFieldsCounters [23:33:45]wFMCommunicate request_size=4 [23:33:45]MH_SAM_APDU [23:33:45]CAPDU: 80 13 00 00 [23:33:45]Write to MH i2c: E2 08 00 26 18 80 13 00 00 00 00 00 00 BA [23:33:45]Write i2c OK [23:33:45]MH_I2C_Read... [23:33:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:33:45]Read from MH i2c: E2 [23:33:45]MH_I2C_Read... [23:33:45]Read from MH i2c: E2 62 00 [23:33:45]MH_I2C_Read... [23:33:45]Read from MH i2c: E2 62 00 26 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 AD 08 01 00 0E 04 04 00 66 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 EF [23:33: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 AD 08 01 00 0E 04 04 00 66 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 [23:33:45]wFMCommunicate OK [23:33:45]SAM_PROTO_GetFieldsCounters done [23:33:45]requested_item shift.num is exist - process it [23:33:45]requested_item shift.opened is exist - process it [23:33:45]req_shift_opened [23:33:45]FM_GetShiftState [23:33:45]SAM_PROTO_GetShiftState [23:33:45]wFMCommunicate request_size=4 [23:33:45]MH_SAM_APDU [23:33:45]CAPDU: 80 13 01 00 [23:33:45]Write to MH i2c: E2 08 00 27 18 80 13 01 00 00 00 00 00 BC [23:33:45]Write i2c OK [23:33:45]MH_I2C_Read... [23:33:45]Read from MH i2c: E2 [23:33:45]MH_I2C_Read... [23:33:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:45]Read from MH i2c: E2 0E 00 [23:33:45]MH_I2C_Read... [23:33:45]Read from MH i2c: E2 0E 00 27 18 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 42 [23:33:45]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [23:33:45]wFMCommunicate OK [23:33:45]SAM_PROTO_GetShiftState done [23:33:45]FM_GetShiftState done [23:33:45]req_shift_opened done [23:33:45]requested_item shift.open_date is exist - process it [23:33:45]req_shift_open_date [23:33:45]req_shift_open_date done [23:33:45]produce_requested_data done [23:33:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67757,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [23:33:45]process_action_free close_receipt [23:33:45]json_value_free [23:33:45]json_value_free done [23:33:45]process_json_proto returns [23:33:45]Send response to host [23:33:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67757,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [23:33:45]free response buf [23:33:45]execute_script done [23:33:45]execute_script returns [23:33:45]free content buf [23:33:45]Sock 7.Close socket [23:33:45]Sock 7.Thread stoped [23:33:49]OFD Sender: No OFD packet to send [23:33:54]OFD Sender: No OFD packet to send [23:33:59]OFD Sender: No OFD packet to send [23:34:04]OFD Sender: No OFD packet to send [23:34:09]OFD Sender: No OFD packet to send [23:34:14]OFD Sender: No OFD packet to send [23:34:19]OFD Sender: No OFD packet to send [23:34:24]OFD Sender: No OFD packet to send [23:34:29]OFD Sender: No OFD packet to send [23:34:34]OFD Sender: No OFD packet to send [23:34:39]OFD Sender: No OFD packet to send [23:34:44]OFD Sender: No OFD packet to send [23:34:49]OFD Sender: No OFD packet to send [23:34:54]OFD Sender: No OFD packet to send [23:34:59]OFD Sender: No OFD packet to send [23:35:04]OFD Sender: No OFD packet to send [23:35:09]OFD Sender: No OFD packet to send [23:35:14]OFD Sender: No OFD packet to send [23:35:19]OFD Sender: No OFD packet to send [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:44]OFD Sender: No OFD packet to send [23:35:49]OFD Sender: No OFD packet to send [23:35:54]OFD Sender: No OFD packet to send [23:35:59]OFD Sender: No OFD packet to send [23:36:04]OFD Sender: No OFD packet to send [23:36:09]OFD Sender: No OFD packet to send [23:36:14]OFD Sender: No OFD packet to send [23:36:19]OFD Sender: No OFD packet to send [23:36:24]OFD Sender: No OFD packet to send [23:36:29]OFD Sender: No OFD packet to send [23:36:34]OFD Sender: No OFD packet to send [23:36:39]OFD Sender: No OFD packet to send [23:36:44]OFD Sender: No OFD packet to send [23:36:49]OFD Sender: No OFD packet to send [23:36:54]OFD Sender: No OFD packet to send [23:36:59]OFD Sender: No OFD packet to send [23:37:04]OFD Sender: No OFD packet to send [23:37:09]OFD Sender: No OFD packet to send [23:37:14]OFD Sender: No OFD packet to send [23:37:19]OFD Sender: No OFD packet to send [23:37:24]OFD Sender: No OFD packet to send [23:37:29]OFD Sender: No OFD packet to send [23:37:34]OFD Sender: No OFD packet to send [23:37:39]OFD Sender: No OFD packet to send [23:37:44]OFD Sender: No OFD packet to send [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:49]OFD Sender: No OFD packet to send [23:38:54]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:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [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:47:57]accept exits with 9 [23:47:57]New connection [23:47:57]New thread 3066608996 created [23:47:57]Thread 3066752356 joined [23:47:57]Waiting for new connection... [23:47:57] Sock 9.Parse request [23:47:57]Sock 9.Check first char [23:47:57]Sock 9.First char is OK [23:47:57]request: POST /json_proto HTTP/1.0 [23:47:57]Method: POST [23:47:57]URL: /json_proto [23:47:57]Method is POST - this is cgi request [23:47:57]url: /json_proto [23:47:57]query_string will be loaded in cgi processing [23:47:57]execute_cgi json_proto POST (null) [23:47:57]execute_cgi path=json_proto method=POST [23:47:57]POST find Content-Length [23:47:57]Host: 172.17.41.195:8080 [23:47:57]Content-Length: 983 [23:47:57]Content-Type: application/json [23:47:57] [23:47:57]POST finish read [23:47:57]Found Content-Length = 983 [23:47:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507916", "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" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "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\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 91\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.80 \u0441\u043E\u043C", "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" ] } } [23:47:57]execute_script... [23:47: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)507916", "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" : 65.80, "quantity" : 22.800, "sum" : 1500.24, "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\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 91\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.80 \u0441\u043E\u043C", "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" ] } } [23:47:57]POST & json_proto [23:47:57]process_json_proto [23:47:57]json parsed OK: [23:47:57]protocol is kg_v1.0 [23:47:57]action value=close_receipt [23:47:57]process_action close_receipt [23:47:57]cmd_close_receipt [23:47:57]MH_GetDate [23:47:57]Write to MH i2c: F0 00 00 28 18 2F [23:47:57]Write i2c OK [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: F0 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: F0 09 00 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: F0 09 00 28 18 00 AF EC 47 66 FC 21 6F 64 70 [23:47:57]GetLastDocTimeStamp 1715988824 [23:47:57]current date 1715989679 [23:47:57]FM_GetShiftState [23:47:57]SAM_PROTO_GetShiftState [23:47:57]wFMCommunicate request_size=4 [23:47:57]MH_SAM_APDU [23:47:57]CAPDU: 80 13 01 00 [23:47:57]Write to MH i2c: E2 08 00 29 18 80 13 01 00 00 00 00 00 BE [23:47:57]Write i2c OK [23:47:57]MH_I2C_Read... [23:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:57]Read from MH i2c: E2 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: E2 0E 00 [23:47:57]MH_I2C_Read... [23:47:57]Read from MH i2c: E2 0E 00 29 18 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 44 [23:47:57]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [23:47:57]wFMCommunicate OK [23:47:57]SAM_PROTO_GetShiftState done [23:47:57]FM_GetShiftState done [23:47:57]opened in 1715905068 [23:47:57]opened+sec_in_day 1715991468 [23:47:57]quantity*price = 150024 [23:47:57]sum+1 = 150025 [23:47:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 167 17.05.2024 23:47 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Дисконтная программа АИ-92 номер 91 сэкономлено 22.80 сом ФМ: 0000000000871829 ФД: 67758 ФПД: 89610408532809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T234759&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67758&fm=89610408532809&tin=02508201610067®Number=0000000000091845&sum=150000 [23:47:58]StoreToDocumentArchive [23:47:58]shift 358 fd 67758 [23:47:58]save to /storage/0358/doc_00067758 [23:47:58]save last doc name /storage/0358/doc_00067758 to /storage/kkm_last_doc_name [23:47:58]save OK [23:47:58]Clear old archive folders... [23:47:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:47:58]tlvbuf is B6E77570 [23:47:58]SAM_PROTO_ClearQueue [23:47:58]wFMCommunicate request_size=4 [23:47:58]MH_SAM_APDU [23:47:58]CAPDU: 80 09 00 00 [23:47:58]Write to MH i2c: E2 08 00 36 18 80 09 00 00 00 00 00 00 C0 [23:47:58]Write i2c OK [23:47:58]MH_I2C_Read... [23:47:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:58]Read from MH i2c: E2 [23:47:58]MH_I2C_Read... [23:47:58]Read from MH i2c: E2 03 00 [23:47:58]MH_I2C_Read... [23:47:58]Read from MH i2c: E2 03 00 36 18 00 90 00 C2 [23:47:58]RAPDU: 90 00 [23:47:58]wFMCommunicate OK [23:47:58]SAM_PROTO_ClearQueue done [23:47:58]KKMCreateOFDPacket [23:47:58]OFDProtocolAddRootSTLVToBuf [23:47:58]FM_MakeSignedData [23:47:58]FM_MakeSignedData [23:47:58]SAM_PROTO_SignData [23:47:58]wFMCommunicate request_size=4 [23:47:58]MH_SAM_APDU [23:47:58]CAPDU: 80 0D 01 02 [23:47:58]Write to MH i2c: E2 08 00 37 18 80 0D 01 02 00 00 00 00 C8 [23:47:58]Write i2c OK [23:47:58]MH_I2C_Read... [23:47:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:58]Read from MH i2c: E2 [23:47:58]MH_I2C_Read... [23:47:58]Read from MH i2c: E2 03 00 [23:47:58]MH_I2C_Read... [23:47:58]Read from MH i2c: E2 03 00 37 18 00 90 00 C3 [23:47:58]RAPDU: 90 00 [23:47:58]wFMCommunicate OK [23:47:58]wFMCommunicate request_size=255 [23:47:58]MH_SAM_APDU [23:47: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 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 A7 00 00 00 F4 03 04 00 AF EC 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 51 [23:47:58]Write to MH i2c: E2 02 01 38 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 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 A7 00 00 00 F4 03 04 00 AF EC 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 51 00 00 E4 [23:47:58]Write i2c OK [23:47:58]MH_I2C_Read... [23:47:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:58]Read from MH i2c: E2 [23:47:58]MH_I2C_Read... [23:47:58]Read from MH i2c: E2 03 00 [23:47:58]MH_I2C_Read... [23:47:58]Read from MH i2c: E2 03 00 38 18 00 90 00 C4 [23:47:58]RAPDU: 90 00 [23:47:58]wFMCommunicate OK [23:47:58]wFMCommunicate request_size=10 [23:47:58]MH_SAM_APDU [23:47:58]CAPDU: 80 0D 02 02 05 80 0C 91 9B 49 [23:47:58]Write to MH i2c: E2 0D 00 39 18 80 0D 02 02 05 00 80 0C 91 9B 49 00 00 D6 [23:47:58]Write i2c OK [23:47:58]MH_I2C_Read... [23:47:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:58]Read from MH i2c: E2 [23:47:58]MH_I2C_Read... [23:47:58]Read from MH i2c: E2 03 00 [23:47:58]MH_I2C_Read... [23:47:58]Read from MH i2c: E2 03 00 39 18 00 90 00 C5 [23:47:58]RAPDU: 90 00 [23:47:58]wFMCommunicate OK [23:47:58]wFMCommunicate request_size=4 [23:47:58]MH_SAM_APDU [23:47:58]CAPDU: 80 0D 03 02 [23:47:58]Write to MH i2c: E2 08 00 3A 18 80 0D 03 02 00 00 00 00 CD [23:47:58]Write i2c OK [23:47:58]MH_I2C_Read... [23:47:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:58]Read from MH i2c: E2 [23:47:58]MH_I2C_Read... [23:47:58]Read from MH i2c: E2 0B 00 [23:47:58]MH_I2C_Read... [23:47:58]Read from MH i2c: E2 0B 00 3A 18 00 0B BF 1A 5B 6E 8D A5 6E 90 00 1B [23:47:58]RAPDU: 0B BF 1A 5B 6E 8D A5 6E 90 00 [23:47:58]wFMCommunicate OK [23:47:58]SAM_PROTO_SignData done [23:47:58]FM_MakeSignedData done [23:47:58]CreateOFDProtocolMessage [23:47:58]wFMCommunicate request_size=4 [23:47:58]MH_SAM_APDU [23:47:58]CAPDU: 80 11 00 00 [23:47:58]Write to MH i2c: E2 08 00 3B 18 80 11 00 00 00 00 00 00 CD [23:47:58]Write i2c OK [23:47:58]MH_I2C_Read... [23:47:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:59]Read from MH i2c: E2 [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: E2 17 00 [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: E2 17 00 3B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 23 [23:47: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:47:59]wFMCommunicate OK [23:47:59]CreateOFDProtocolMessage done [23:47:59]OFDSenderStorePacket 67758 [23:47:59]StoreOFDPacket docnum=67758 [23:47: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 09 02 07 01 79 D1 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 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 A7 00 00 00 F4 03 04 00 AF EC 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 51 80 0C 91 9B 49 0B BF 1A 5B 6E 8D A5 6E [23:47:59]CheckFolder [23:47:59]dirname=/storage/ofd_packets [23:47:59]CheckFolder done [23:47:59]ProducePacketName [23:47:59]name=ofd_packets/00067758 [23:47:59]NVStorageSaveData ofd_packets/00067758 [23:47:59]File name is /storage/ofd_packets/00067758 [23:47:59]Write 301 bytes [23:47:59]NVStorageSaveData done [23:47:59]OFDSenderStorePacket done [23:47:59]KKMCreateOFDPacket done [23:47:59]NVStorageSaveData kkm_last_timestamp [23:47:59]File name is /storage/kkm_last_timestamp [23:47:59]Write 4 bytes [23:47:59]NVStorageSaveData done [23:47:59]ExternCall_PrintAddStr [23:47:59]wPrintStart [23:47:59]Write to MH i2c: 01 00 00 3C 18 54 [23:47:59]Write i2c OK [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: 01 [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: 01 07 00 [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: 01 07 00 3C 18 00 00 00 00 00 FF 0F 69 [23:47:59]RasterBufferAndPrint [23:47:59]line Счет N : (1)507916 [23:47:59]line ИНН: 02508201610067 [23:47:59]line Контрольно-Кассовый Чек [23:47:59]line ПРОДАЖА [23:47:59]line ТРК (МРК, ГНК) : 23 [23:47:59]line Товар: 2710124130 [23:47:59]line Аи-92-К-5 [23:47:59]line 22.800 * 65.80 [23:47:59]line = 1500.24 [23:47:59]line НДС 12% НСП 1% [23:47:59]line > о реализуемом товаре [23:47:59]line ОКРУГЛЕНИЕ: -0.24 [23:47:59]line ИТОГО: 1500.00 [23:47:59]line Внесено: 1500.00 [23:47:59]line СДАЧА: 0.00 [23:47:59]line НСП 1% : 13.28 [23:47:59]line НДС 12% : 159.32 [23:47:59]line Наличными: 1500.00 [23:47:59]line Безнал.: 0.00 [23:47:59]line Место: АЗС № 91 "Партнер Нефть" [23:47:59]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:47:59]line СНО: Общий режим [23:47:59]line Чек 167 17.05.2024 23:47 [23:47:59]line Смена: 358 ФФД: 1.0 [23:47:59]line ЗНМ: 0300000119 [23:47:59]line РНМ: 0000000000091845 [23:47:59]line Версия ККМ: 001 [23:47:59]line [23:47:59]line Дисконтная программа [23:47:59]line АИ-92 [23:47:59]line номер 91 [23:47:59]line сэкономлено 22.80 сом [23:47:59]line ФМ: 0000000000871829 [23:47:59]line ФД: 67758 [23:47:59]line ФПД: 89610408532809 [23:47:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T234759&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67758&fm=89610408532809&tin=02508201610067®Number=0000000000091845&sum=150000 [23:47:59]OFD Sender: Processing packet 67758 [packets to send 35, broken 34] [23:47:59]ProducePacketName [23:47:59]name=ofd_packets/00067758 [23:47:59]OFD Sender: To server: pG, [23:47:59]CommunicateWithHost lk.salyk.kg:30040 [23:47:59]ConnectInit lk.salyk.kg [23:47:59]written 0, free lines is 4095 [23:47:59]Connected sock=10 [23:47: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 09 02 07 01 79 D1 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 10 59 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 08 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 3C 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 A7 00 00 00 F4 03 04 00 AF EC 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 51 80 0C 91 9B 49 0B BF 1A 5B 6E 8D A5 6E [23:47: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 E4 07 47 00 F5 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 AE 08 01 00 F4 03 04 00 86 94 47 66 B6 04 01 00 00 EA 6E CB FF BB 4F E7 53 [23:47:59]CommunicateWithHost err = 0 [23:47:59]CheckOFDResponse [23:47:59]1017 (14) - 77093643461234 [23:47:59]1041 (16) - 0000000000871829 [23:47:59]1040 (4) - 67758 [23:47:59]1012 (4) - 17.05.2024 17:31 [23:47:59]1206 (1) - 0 [23:47:59]OFD Sender: Remove packet 67758 [23:47:59]ProducePacketName [23:47:59]name=ofd_packets/00067758 [23:47:59]NVStorageDeleteData [23:47:59]Write to MH i2c: 01 00 00 6B 18 83 [23:47:59]Write i2c OK [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: 01 [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: 01 07 00 [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: 01 07 00 6B 18 00 00 00 00 00 6E 0C 04 [23:47:59]RasterBufferAndPrint [23:47:59]line [23:47:59]line [23:47:59]line [23:47:59]line [23:47:59]line [23:47:59]written 0, free lines is 3188 [23:47:59]MH_Cut [23:47:59]Write to MH i2c: D1 01 00 72 18 01 5C [23:47:59]Write i2c OK [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: D1 [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: D1 01 00 [23:47:59]MH_I2C_Read... [23:47:59]Read from MH i2c: D1 01 00 72 18 00 5B [23:47:59]Write to MH i2c: 01 00 00 73 18 8B [23:47:59]Write i2c OK [23:47:59]MH_I2C_Read... [23:48:00]OFD Sender: No OFD packet to send [23:48:00]*** Cut start [23:48:00]*** Purtial cut [23:48:00]*** CUTSNS_PIN = 0 [23:48:00]*** Stage 1: CUTSNS_PIN = 1 [23:48:02]Read from MH i2c: 01 [23:48:02]MH_I2C_Read... [23:48:02]*** Stop cut motor [23:48:02]*** Cut end [23:48:02]Read from MH i2c: 01 07 00 [23:48:02]MH_I2C_Read... [23:48:02]Read from MH i2c: 01 07 00 73 18 00 00 00 00 00 FF 0F A0 [23:48:02]process_action close_receipt done [23:48:02]requested_data is exist [23:48:02]produce_requested_data [23:48:02]requested_item fm.sn is exist - process it [23:48:02]wFMCommunicate request_size=4 [23:48:02]MH_SAM_APDU [23:48:02]CAPDU: 80 11 00 00 [23:48:02]Write to MH i2c: E2 08 00 74 18 80 11 00 00 00 00 00 00 06 [23:48:02]Write i2c OK [23:48:02]MH_I2C_Read... [23:48:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:02]Read from MH i2c: E2 [23:48:02]MH_I2C_Read... [23:48:02]Read from MH i2c: E2 17 00 [23:48:02]MH_I2C_Read... [23:48:02]Read from MH i2c: E2 17 00 74 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5C [23:48:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:48:02]wFMCommunicate OK [23:48:02]requested_item fd.num is exist - process it [23:48:02]SAM_PROTO_GetFieldsCounters [23:48:02]wFMCommunicate request_size=4 [23:48:02]MH_SAM_APDU [23:48:02]CAPDU: 80 13 00 00 [23:48:02]Write to MH i2c: E2 08 00 75 18 80 13 00 00 00 00 00 00 09 [23:48:02]Write i2c OK [23:48:02]MH_I2C_Read... [23:48:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:02]Read from MH i2c: E2 [23:48:02]MH_I2C_Read... [23:48:02]Read from MH i2c: E2 62 00 [23:48:02]MH_I2C_Read... [23:48:02]Read from MH i2c: E2 62 00 75 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 AE 08 01 00 0E 04 04 00 66 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 42 [23:48: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 AE 08 01 00 0E 04 04 00 66 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 [23:48:02]wFMCommunicate OK [23:48:02]SAM_PROTO_GetFieldsCounters done [23:48:02]requested_item shift.num is exist - process it [23:48:02]requested_item shift.opened is exist - process it [23:48:02]req_shift_opened [23:48:02]FM_GetShiftState [23:48:02]SAM_PROTO_GetShiftState [23:48:02]wFMCommunicate request_size=4 [23:48:02]MH_SAM_APDU [23:48:02]CAPDU: 80 13 01 00 [23:48:02]Write to MH i2c: E2 08 00 76 18 80 13 01 00 00 00 00 00 0B [23:48:02]Write i2c OK [23:48:02]MH_I2C_Read... [23:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:03]Read from MH i2c: E2 [23:48:03]MH_I2C_Read... [23:48:03]Read from MH i2c: E2 0E 00 [23:48:03]MH_I2C_Read... [23:48:03]Read from MH i2c: E2 0E 00 76 18 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 91 [23:48:03]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [23:48:03]wFMCommunicate OK [23:48:03]SAM_PROTO_GetShiftState done [23:48:03]FM_GetShiftState done [23:48:03]req_shift_opened done [23:48:03]requested_item shift.open_date is exist - process it [23:48:03]req_shift_open_date [23:48:03]req_shift_open_date done [23:48:03]produce_requested_data done [23:48:03]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67758,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [23:48:03]process_action_free close_receipt [23:48:03]json_value_free [23:48:03]json_value_free done [23:48:03]process_json_proto returns [23:48:03]Send response to host [23:48:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67758,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [23:48:03]free response buf [23:48:03]execute_script done [23:48:03]execute_script returns [23:48:03]free content buf [23:48:03]Sock 9.Close socket [23:48:03]Sock 9.Thread stoped [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:49]accept exits with 7 [23:49:49]New connection [23:49:49]New thread 3066752356 created [23:49:49]Thread 3066608996 joined [23:49:49]Waiting for new connection... [23:49:49] Sock 7.Parse request [23:49:49]Sock 7.Check first char [23:49:49]Sock 7.First char is OK [23:49:49]request: POST /json_proto HTTP/1.0 [23:49:49]Method: POST [23:49:49]URL: /json_proto [23:49:49]Method is POST - this is cgi request [23:49:49]url: /json_proto [23:49:49]query_string will be loaded in cgi processing [23:49:49]execute_cgi json_proto POST (null) [23:49:49]execute_cgi path=json_proto method=POST [23:49:49]POST find Content-Length [23:49:49]Host: 172.17.41.195:8080 [23:49:49]Content-Length: 677 [23:49:49]Content-Type: application/json [23:49:49] [23:49:49]POST finish read [23:49:49]Found Content-Length = 677 [23:49:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507917", "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" : 2.280, "sum" : 152.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 152.00, "payments": [ { "type": 0, "sum" : 152.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:49]execute_script... [23:49: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)507917", "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" : 2.280, "sum" : 152.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 152.00, "payments": [ { "type": 0, "sum" : 152.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:49]POST & json_proto [23:49:49]process_json_proto [23:49:49]json parsed OK: [23:49:49]protocol is kg_v1.0 [23:49:49]action value=close_receipt [23:49:49]process_action close_receipt [23:49:49]cmd_close_receipt [23:49:49]MH_GetDate [23:49:49]Write to MH i2c: F0 00 00 77 18 7E [23:49:49]Write i2c OK [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: F0 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: F0 09 00 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: F0 09 00 77 18 00 1F ED 47 66 FC 21 6F 64 30 [23:49:49]GetLastDocTimeStamp 1715989679 [23:49:49]current date 1715989791 [23:49:49]FM_GetShiftState [23:49:49]SAM_PROTO_GetShiftState [23:49:49]wFMCommunicate request_size=4 [23:49:49]MH_SAM_APDU [23:49:49]CAPDU: 80 13 01 00 [23:49:49]Write to MH i2c: E2 08 00 78 18 80 13 01 00 00 00 00 00 0D [23:49:49]Write i2c OK [23:49:49]MH_I2C_Read... [23:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:49]Read from MH i2c: E2 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 0E 00 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 0E 00 78 18 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 93 [23:49:49]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [23:49:49]wFMCommunicate OK [23:49:49]SAM_PROTO_GetShiftState done [23:49:49]FM_GetShiftState done [23:49:49]opened in 1715905068 [23:49:49]opened+sec_in_day 1715991468 [23:49:49]quantity*price = 15230 [23:49:49]sum+1 = 15231 [23:49:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 152.00 Внесено: 500.00 СДАЧА: 348.00 НСП 1% : 1.35 НДС 12% : 16.17 Наличными: 152.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 168 17.05.2024 23:49 Смена: 358 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67759 ФПД: 279591267855446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T234951&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67759&fm=279591267855446&tin=02508201610067®Number=0000000000091845&sum=15200 [23:49:50]StoreToDocumentArchive [23:49:50]shift 358 fd 67759 [23:49:50]save to /storage/0358/doc_00067759 [23:49:50]save last doc name /storage/0358/doc_00067759 to /storage/kkm_last_doc_name [23:49:50]save OK [23:49:50]Clear old archive folders... [23:49:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:49:50]tlvbuf is 01AF94E0 [23:49:50]SAM_PROTO_ClearQueue [23:49:50]wFMCommunicate request_size=4 [23:49:50]MH_SAM_APDU [23:49:50]CAPDU: 80 09 00 00 [23:49:50]Write to MH i2c: E2 08 00 85 18 80 09 00 00 00 00 00 00 0F [23:49:50]Write i2c OK [23:49:50]MH_I2C_Read... [23:49:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:50]Read from MH i2c: E2 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 03 00 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 03 00 85 18 00 90 00 11 [23:49:50]RAPDU: 90 00 [23:49:50]wFMCommunicate OK [23:49:50]SAM_PROTO_ClearQueue done [23:49:50]KKMCreateOFDPacket [23:49:50]OFDProtocolAddRootSTLVToBuf [23:49:50]FM_MakeSignedData [23:49:50]FM_MakeSignedData [23:49:50]SAM_PROTO_SignData [23:49:50]wFMCommunicate request_size=4 [23:49:50]MH_SAM_APDU [23:49:50]CAPDU: 80 0D 01 02 [23:49:50]Write to MH i2c: E2 08 00 86 18 80 0D 01 02 00 00 00 00 17 [23:49:50]OFD Sender: No OFD packet to send [23:49:50]Write i2c OK [23:49:50]MH_I2C_Read... [23:49:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:50]Read from MH i2c: E2 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 03 00 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 03 00 86 18 00 90 00 12 [23:49:50]RAPDU: 90 00 [23:49:50]wFMCommunicate OK [23:49:50]wFMCommunicate request_size=255 [23:49:50]MH_SAM_APDU [23:49: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 E8 08 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 7E 3B 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 51 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 A8 00 00 00 F4 03 04 00 1F ED 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 FE [23:49:50]Write to MH i2c: E2 02 01 87 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 E8 08 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 7E 3B 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 51 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 A8 00 00 00 F4 03 04 00 1F ED 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 FE 00 00 93 [23:49:50]Write i2c OK [23:49:50]MH_I2C_Read... [23:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:50]Read from MH i2c: E2 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 03 00 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 03 00 87 18 00 90 00 13 [23:49:50]RAPDU: 90 00 [23:49:50]wFMCommunicate OK [23:49:50]wFMCommunicate request_size=10 [23:49:50]MH_SAM_APDU [23:49:50]CAPDU: 80 0D 02 02 05 49 6A 33 EC 56 [23:49:50]Write to MH i2c: E2 0D 00 88 18 80 0D 02 02 05 00 49 6A 33 EC 56 00 00 4C [23:49:50]Write i2c OK [23:49:50]MH_I2C_Read... [23:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:50]Read from MH i2c: E2 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 03 00 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 03 00 88 18 00 90 00 14 [23:49:50]RAPDU: 90 00 [23:49:50]wFMCommunicate OK [23:49:50]wFMCommunicate request_size=4 [23:49:50]MH_SAM_APDU [23:49:50]CAPDU: 80 0D 03 02 [23:49:50]Write to MH i2c: E2 08 00 89 18 80 0D 03 02 00 00 00 00 1C [23:49:50]Write i2c OK [23:49:50]MH_I2C_Read... [23:49:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:50]Read from MH i2c: E2 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 0B 00 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 0B 00 89 18 00 AB 1B 24 66 A2 39 6A A9 90 00 5B [23:49:50]RAPDU: AB 1B 24 66 A2 39 6A A9 90 00 [23:49:50]wFMCommunicate OK [23:49:50]SAM_PROTO_SignData done [23:49:50]FM_MakeSignedData done [23:49:50]CreateOFDProtocolMessage [23:49:50]wFMCommunicate request_size=4 [23:49:50]MH_SAM_APDU [23:49:50]CAPDU: 80 11 00 00 [23:49:50]Write to MH i2c: E2 08 00 8A 18 80 11 00 00 00 00 00 00 1C [23:49:50]Write i2c OK [23:49:50]MH_I2C_Read... [23:49:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:50]Read from MH i2c: E2 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 17 00 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: E2 17 00 8A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 72 [23: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 [23:49:50]wFMCommunicate OK [23:49:50]CreateOFDProtocolMessage done [23:49:50]OFDSenderStorePacket 67759 [23:49:50]StoreOFDPacket docnum=67759 [23:49: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 D4 A2 07 01 A0 FC 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 E8 08 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 7E 3B 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 51 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 A8 00 00 00 F4 03 04 00 1F ED 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 FE 49 6A 33 EC 56 AB 1B 24 66 A2 39 6A A9 [23:49:50]CheckFolder [23:49:50]dirname=/storage/ofd_packets [23:49:50]CheckFolder done [23:49:50]ProducePacketName [23:49:50]name=ofd_packets/00067759 [23:49:50]NVStorageSaveData ofd_packets/00067759 [23:49:50]File name is /storage/ofd_packets/00067759 [23:49:50]Write 301 bytes [23:49:50]NVStorageSaveData done [23:49:50]OFDSenderStorePacket done [23:49:50]KKMCreateOFDPacket done [23:49:50]NVStorageSaveData kkm_last_timestamp [23:49:50]File name is /storage/kkm_last_timestamp [23:49:50]Write 4 bytes [23:49:50]NVStorageSaveData done [23:49:50]ExternCall_PrintAddStr [23:49:50]wPrintStart [23:49:50]Write to MH i2c: 01 00 00 8B 18 A3 [23:49:50]Write i2c OK [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: 01 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: 01 07 00 [23:49:50]MH_I2C_Read... [23:49:50]Read from MH i2c: 01 07 00 8B 18 00 00 00 00 00 FF 0F B8 [23:49:50]RasterBufferAndPrint [23:49:50]line Счет N : (1)507917 [23:49:50]line ИНН: 02508201610067 [23:49:50]line Контрольно-Кассовый Чек [23:49:50]line ПРОДАЖА [23:49:50]line ТРК (МРК, ГНК) : 23 [23:49:50]line Товар: 2710124130 [23:49:50]line Аи-92-К-5 [23:49:50]line 2.280 * 66.80 [23:49:50]line = 152.30 [23:49:50]line НДС 12% НСП 1% [23:49:50]line > о реализуемом товаре [23:49:50]line ОКРУГЛЕНИЕ: -0.30 [23:49:50]line ИТОГО: 152.00 [23:49:50]line Внесено: 500.00 [23:49:50]line СДАЧА: 348.00 [23:49:50]line НСП 1% : 1.35 [23:49:50]line НДС 12% : 16.17 [23:49:50]line Наличными: 152.00 [23:49:50]line Безнал.: 0.00 [23:49:50]line Место: АЗС № 91 "Партнер Нефть" [23:49:50]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:49:50]line СНО: Общий режим [23:49:50]line Чек 168 17.05.2024 23:49 [23:49:50]line Смена: 358 ФФД: 1.0 [23:49:50]line ЗНМ: 0300000119 [23:49:50]line РНМ: 0000000000091845 [23:49:50]line Версия ККМ: 001 [23:49:50]line ФМ: 0000000000871829 [23:49:50]line ФД: 67759 [23:49:50]line ФПД: 279591267855446 [23:49:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T234951&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67759&fm=279591267855446&tin=02508201610067®Number=0000000000091845&sum=15200 [23:49:51]OFD Sender: Processing packet 67759 [packets to send 35, broken 34] [23:49:51]ProducePacketName [23:49:51]name=ofd_packets/00067759 [23:49:51]OFD Sender: To server: pG, [23:49:51]CommunicateWithHost lk.salyk.kg:30040 [23:49:51]ConnectInit lk.salyk.kg [23:49:51]written 0, free lines is 4095 [23:49:51]Connected sock=11 [23:49: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 D4 A2 07 01 A0 FC 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 E8 08 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 7E 3B 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 51 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 A8 00 00 00 F4 03 04 00 1F ED 47 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 FE 49 6A 33 EC 56 AB 1B 24 66 A2 39 6A A9 [23:49: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 86 5C 47 00 DD 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 AF 08 01 00 F4 03 04 00 F6 94 47 66 B6 04 01 00 00 14 F5 D5 9B 9B 6C DE 9D [23:49:51]CommunicateWithHost err = 0 [23:49:51]CheckOFDResponse [23:49:51]1017 (14) - 77093643461234 [23:49:51]1041 (16) - 0000000000871829 [23:49:51]1040 (4) - 67759 [23:49:51]1012 (4) - 17.05.2024 17:33 [23:49:51]1206 (1) - 0 [23:49:51]OFD Sender: Remove packet 67759 [23:49:51]ProducePacketName [23:49:51]name=ofd_packets/00067759 [23:49:51]NVStorageDeleteData [23:49:51]Write to MH i2c: 01 00 00 B5 18 CD [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: 01 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: 01 07 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: 01 07 00 B5 18 00 00 00 00 00 CB 0C AB [23:49:51]RasterBufferAndPrint [23:49:51]line [23:49:51]line [23:49:51]line [23:49:51]line [23:49:51]line [23:49:51]written 0, free lines is 3281 [23:49:51]MH_Cut [23:49:51]Write to MH i2c: D1 01 00 BC 18 01 A6 [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: D1 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: D1 01 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: D1 01 00 BC 18 00 A5 [23:49:51]Write to MH i2c: 01 00 00 BD 18 D5 [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:51]OFD Sender: No OFD packet to send [23:49:52]*** Cut start [23:49:52]*** Purtial cut [23:49:52]*** Stage 1: CUTSNS_PIN = 1 [23:49:52]Read from MH i2c: 01 [23:49:52]MH_I2C_Read... [23:49:52]*** Stop cut motor [23:49:52]*** Cut end [23:49:52]Read from MH i2c: 01 07 00 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: 01 07 00 BD 18 00 00 00 00 00 FF 0F EA [23:49:52]process_action close_receipt done [23:49:52]requested_data is exist [23:49:52]produce_requested_data [23:49:52]requested_item fm.sn is exist - process it [23:49:52]wFMCommunicate request_size=4 [23:49:52]MH_SAM_APDU [23:49:52]CAPDU: 80 11 00 00 [23:49:52]Write to MH i2c: E2 08 00 BE 18 80 11 00 00 00 00 00 00 50 [23:49:52]Write i2c OK [23:49:52]MH_I2C_Read... [23:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:52]Read from MH i2c: E2 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 17 00 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 17 00 BE 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A6 [23: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 [23:49:52]wFMCommunicate OK [23:49:52]requested_item fd.num is exist - process it [23:49:52]SAM_PROTO_GetFieldsCounters [23:49:52]wFMCommunicate request_size=4 [23:49:52]MH_SAM_APDU [23:49:52]CAPDU: 80 13 00 00 [23:49:52]Write to MH i2c: E2 08 00 BF 18 80 13 00 00 00 00 00 00 53 [23:49:52]Write i2c OK [23:49:52]MH_I2C_Read... [23:49:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:52]Read from MH i2c: E2 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 62 00 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 62 00 BF 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 AF 08 01 00 0E 04 04 00 66 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 90 [23:49: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 AF 08 01 00 0E 04 04 00 66 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 [23:49:52]wFMCommunicate OK [23:49:52]SAM_PROTO_GetFieldsCounters done [23:49:52]requested_item shift.num is exist - process it [23:49:52]requested_item shift.opened is exist - process it [23:49:52]req_shift_opened [23:49:52]FM_GetShiftState [23:49:52]SAM_PROTO_GetShiftState [23:49:52]wFMCommunicate request_size=4 [23:49:52]MH_SAM_APDU [23:49:52]CAPDU: 80 13 01 00 [23:49:52]Write to MH i2c: E2 08 00 C0 18 80 13 01 00 00 00 00 00 55 [23:49:52]Write i2c OK [23:49:52]MH_I2C_Read... [23:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:52]Read from MH i2c: E2 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 0E 00 [23:49:52]MH_I2C_Read... [23:49:52]Read from MH i2c: E2 0E 00 C0 18 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 DB [23:49:52]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [23:49:52]wFMCommunicate OK [23:49:52]SAM_PROTO_GetShiftState done [23:49:52]FM_GetShiftState done [23:49:52]req_shift_opened done [23:49:52]requested_item shift.open_date is exist - process it [23:49:52]req_shift_open_date [23:49:52]req_shift_open_date done [23:49:52]produce_requested_data done [23:49:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67759,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [23:49:52]process_action_free close_receipt [23:49:52]json_value_free [23:49:52]json_value_free done [23:49:52]process_json_proto returns [23:49:52]Send response to host [23:49:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67759,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [23:49:52]free response buf [23:49:52]execute_script done [23:49:52]execute_script returns [23:49:52]free content buf [23:49:52]Sock 7.Close socket [23:49:52]Sock 7.Thread stoped [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59:27]OFD Sender: No OFD packet to send [23:59:32]OFD Sender: No OFD packet to send [23:59:37]OFD Sender: No OFD packet to send [23:59:42]OFD Sender: No OFD packet to send [23:59:47]OFD Sender: No OFD packet to send [23:59:52]OFD Sender: No OFD packet to send [23:59:57]OFD Sender: No OFD packet to send [00:00:02]OFD Sender: No OFD packet to send [00:00:07]OFD Sender: No OFD packet to send [00:00:12]OFD Sender: No OFD packet to send [00:00:17]OFD Sender: No OFD packet to send [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]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:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:27]accept exits with 9 [00:11:27]New connection [00:11:27]New thread 3066608996 created [00:11:27]Thread 3066752356 joined [00:11:27]Waiting for new connection... [00:11:27] Sock 9.Parse request [00:11:27]Sock 9.Check first char [00:11:27]Sock 9.First char is OK [00:11:27]request: POST /json_proto HTTP/1.0 [00:11:27]Method: POST [00:11:27]URL: /json_proto [00:11:27]Method is POST - this is cgi request [00:11:27]url: /json_proto [00:11:27]query_string will be loaded in cgi processing [00:11:27]execute_cgi json_proto POST (null) [00:11:27]execute_cgi path=json_proto method=POST [00:11:27]POST find Content-Length [00:11:27]Host: 172.17.41.195:8080 [00:11:27]Content-Length: 215 [00:11:27]Content-Type: application/json [00:11:27] [00:11:27]POST finish read [00:11:27]Found Content-Length = 215 [00:11:27]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:11:27]execute_script... [00:11:27]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:11:27]POST & json_proto [00:11:27]process_json_proto [00:11:27]json parsed OK: [00:11:27]protocol is kg_v1.0 [00:11:27]action value=get_value [00:11:27]process_action get_value [00:11:27]cmd_get_value [00:11:27]process_action get_value done [00:11:27]requested_data is exist [00:11:27]produce_requested_data [00:11:27]requested_item kkm.sn is exist - process it [00:11:27]requested_item kkm.ver is exist - process it [00:11:27]requested_item fm.sn is exist - process it [00:11:27]wFMCommunicate request_size=4 [00:11:27]MH_SAM_APDU [00:11:27]CAPDU: 80 11 00 00 [00:11:27]Write to MH i2c: E2 08 00 C1 18 80 11 00 00 00 00 00 00 53 [00:11:27]Write i2c OK [00:11:27]MH_I2C_Read... [00:11:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:27]Read from MH i2c: E2 [00:11:27]MH_I2C_Read... [00:11:27]Read from MH i2c: E2 17 00 [00:11:27]MH_I2C_Read... [00:11:27]Read from MH i2c: E2 17 00 C1 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A9 [00:11:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:11:27]wFMCommunicate OK [00:11:27]requested_item fd.num is exist - process it [00:11:27]SAM_PROTO_GetFieldsCounters [00:11:27]wFMCommunicate request_size=4 [00:11:27]MH_SAM_APDU [00:11:27]CAPDU: 80 13 00 00 [00:11:27]Write to MH i2c: E2 08 00 C2 18 80 13 00 00 00 00 00 00 56 [00:11:27]Write i2c OK [00:11:27]MH_I2C_Read... [00:11:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:27]Read from MH i2c: E2 [00:11:27]MH_I2C_Read... [00:11:27]Read from MH i2c: E2 62 00 [00:11:27]MH_I2C_Read... [00:11:27]Read from MH i2c: E2 62 00 C2 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 AF 08 01 00 0E 04 04 00 66 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 93 [00:11: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 AF 08 01 00 0E 04 04 00 66 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 [00:11:27]wFMCommunicate OK [00:11:27]SAM_PROTO_GetFieldsCounters done [00:11:27]requested_item shift.num is exist - process it [00:11:27]requested_item shift.opened is exist - process it [00:11:27]req_shift_opened [00:11:27]FM_GetShiftState [00:11:27]SAM_PROTO_GetShiftState [00:11:27]wFMCommunicate request_size=4 [00:11:27]MH_SAM_APDU [00:11:27]CAPDU: 80 13 01 00 [00:11:27]Write to MH i2c: E2 08 00 C3 18 80 13 01 00 00 00 00 00 58 [00:11:27]Write i2c OK [00:11:27]MH_I2C_Read... [00:11:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:27]Read from MH i2c: E2 [00:11:27]MH_I2C_Read... [00:11:27]Read from MH i2c: E2 0E 00 [00:11:27]MH_I2C_Read... [00:11:27]Read from MH i2c: E2 0E 00 C3 18 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 DE [00:11:27]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [00:11:27]wFMCommunicate OK [00:11:27]SAM_PROTO_GetShiftState done [00:11:27]FM_GetShiftState done [00:11:27]req_shift_opened done [00:11:27]requested_item shift.open_date is exist - process it [00:11:27]req_shift_open_date [00:11:27]req_shift_open_date done [00:11:27]produce_requested_data done [00:11:27]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67759,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [00:11:27]process_action_free get_value [00:11:27]json_value_free [00:11:27]json_value_free done [00:11:27]process_json_proto returns [00:11:27]Send response to host [00:11:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67759,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [00:11:27]free response buf [00:11:27]execute_script done [00:11:27]execute_script returns [00:11:27]free content buf [00:11:27]Sock 9.Close socket [00:11:27]Sock 9.Thread stoped [00:11:27]accept exits with 7 [00:11:27]New connection [00:11:27]New thread 3066752356 created [00:11:27]Thread 3066608996 joined [00:11:27]Waiting for new connection... [00:11:27] Sock 7.Parse request [00:11:27]Sock 7.Check first char [00:11:27]Sock 7.First char is OK [00:11:27]request: POST /json_proto HTTP/1.0 [00:11:27]Method: POST [00:11:27]URL: /json_proto [00:11:27]Method is POST - this is cgi request [00:11:27]url: /json_proto [00:11:27]query_string will be loaded in cgi processing [00:11:27]execute_cgi json_proto POST (null) [00:11:27]execute_cgi path=json_proto method=POST [00:11:27]POST find Content-Length [00:11:27]Host: 172.17.41.195:8080 [00:11:27]Content-Length: 331 [00:11:27]Content-Type: application/json [00:11:27] [00:11:27]POST finish read [00:11:27]Found Content-Length = 331 [00:11:27]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:11:27]execute_script... [00:11:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:27]POST & json_proto [00:11:27]process_json_proto [00:11:27]json parsed OK: [00:11:27]protocol is kg_v1.0 [00:11:27]action value=get_value [00:11:27]process_action get_value [00:11:27]cmd_get_value [00:11:27]process_action get_value done [00:11:27]requested_data is exist [00:11:27]produce_requested_data [00:11:27]requested_item fm.sale.total is exist - process it [00:11:27]SAM_PROTO_GetFMData [00:11:27]wFMCommunicate request_size=4 [00:11:27]MH_SAM_APDU [00:11:27]CAPDU: 80 13 03 00 [00:11:27]Write to MH i2c: E2 08 00 C4 18 80 13 03 00 00 00 00 00 5B [00:11:27]Write i2c OK [00:11:27]MH_I2C_Read... [00:11:28]OFD Sender: No OFD packet to send [00:11:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:28]Read from MH i2c: E2 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 FD 00 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 FD 00 C4 18 00 C6 04 85 04 C2 04 6E 04 04 00 E3 05 01 00 69 04 A3 00 6F 04 04 00 39 05 01 00 B1 04 05 00 8C F0 8E 1D 03 70 04 05 00 BC F4 C2 C0 02 72 04 04 00 D0 FB CB 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A4 44 B5 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 7A 06 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 B2 [00:11:28]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 E3 05 01 00 69 04 A3 00 6F 04 04 00 39 05 01 00 B1 04 05 00 8C F0 8E 1D 03 70 04 05 00 BC F4 C2 C0 02 72 04 04 00 D0 FB CB 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A4 44 B5 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 7A 06 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [00:11:28]wFMCommunicate OK [00:11:28]wFMCommunicate request_size=4 [00:11:28]MH_SAM_APDU [00:11:28]CAPDU: 80 17 00 00 [00:11:28]Write to MH i2c: E2 08 00 C5 18 80 17 00 00 00 00 00 00 5D [00:11:28]Write i2c OK [00:11:28]MH_I2C_Read... [00:11:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:28]Read from MH i2c: E2 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 FD 00 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 FD 00 C5 18 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 98 [00:11:28]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:11:28]wFMCommunicate OK [00:11:28]wFMCommunicate request_size=4 [00:11:28]MH_SAM_APDU [00:11:28]CAPDU: 80 17 00 00 [00:11:28]Write to MH i2c: E2 08 00 C6 18 80 17 00 00 00 00 00 00 5E [00:11:28]Write i2c OK [00:11:28]MH_I2C_Read... [00:11:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:28]Read from MH i2c: E2 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 FD 00 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 FD 00 C6 18 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 85 [00:11:28]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:11:28]wFMCommunicate OK [00:11:28]wFMCommunicate request_size=4 [00:11:28]MH_SAM_APDU [00:11:28]CAPDU: 80 17 00 00 [00:11:28]Write to MH i2c: E2 08 00 C7 18 80 17 00 00 00 00 00 00 5F [00:11:28]Write i2c OK [00:11:28]MH_I2C_Read... [00:11:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:29]Read from MH i2c: E2 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 FD 00 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 FD 00 C7 18 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DA [00:11:29]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:11:29]wFMCommunicate OK [00:11:29]wFMCommunicate request_size=4 [00:11:29]MH_SAM_APDU [00:11:29]CAPDU: 80 17 00 00 [00:11:29]Write to MH i2c: E2 08 00 C8 18 80 17 00 00 00 00 00 00 60 [00:11:29]Write i2c OK [00:11:29]MH_I2C_Read... [00:11:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:11:29]Read from MH i2c: E2 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 E3 00 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 E3 00 C8 18 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F [00:11:29]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:11:29]wFMCommunicate OK [00:11:29]SAM_PROTO_GetFMData done [00:11:29]requested_item fm.sale_refund.total is exist - process it [00:11:29]requested_item fm.buy.total is exist - process it [00:11:29]requested_item shift.sale.total is exist - process it [00:11:29]SAM_PROTO_GetShiftData [00:11:29]wFMCommunicate request_size=4 [00:11:29]MH_SAM_APDU [00:11:29]CAPDU: 80 13 02 00 [00:11:29]Write to MH i2c: E2 08 00 C9 18 80 13 02 00 00 00 00 00 5F [00:11:29]Write i2c OK [00:11:29]MH_I2C_Read... [00:11:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:29]Read from MH i2c: E2 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 FD 00 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 FD 00 C9 18 00 B0 04 AA 04 AC 04 6E 04 04 00 A8 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 ED B3 37 01 70 04 03 00 50 2C AB 72 04 03 00 9D 87 8C 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 2D 1B 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 3E C2 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 9C [00:11:29]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 A8 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 ED B3 37 01 70 04 03 00 50 2C AB 72 04 03 00 9D 87 8C 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 2D 1B 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 3E C2 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:11:29]wFMCommunicate OK [00:11:29]wFMCommunicate request_size=4 [00:11:29]MH_SAM_APDU [00:11:29]CAPDU: 80 17 00 00 [00:11:29]Write to MH i2c: E2 08 00 CA 18 80 17 00 00 00 00 00 00 62 [00:11:29]Write i2c OK [00:11:29]MH_I2C_Read... [00:11:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:30]Read from MH i2c: E2 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 FD 00 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 FD 00 CA 18 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7C [00:11:30]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:30]wFMCommunicate OK [00:11:30]wFMCommunicate request_size=4 [00:11:30]MH_SAM_APDU [00:11:30]CAPDU: 80 17 00 00 [00:11:30]Write to MH i2c: E2 08 00 CB 18 80 17 00 00 00 00 00 00 63 [00:11:30]Write i2c OK [00:11:30]MH_I2C_Read... [00:11:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:30]Read from MH i2c: E2 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 FD 00 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 FD 00 CB 18 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 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 90 00 20 [00:11:30]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:30]wFMCommunicate OK [00:11:30]wFMCommunicate request_size=4 [00:11:30]MH_SAM_APDU [00:11:30]CAPDU: 80 17 00 00 [00:11:30]Write to MH i2c: E2 08 00 CC 18 80 17 00 00 00 00 00 00 64 [00:11:30]Write i2c OK [00:11:30]MH_I2C_Read... [00:11:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:30]Read from MH i2c: E2 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 FD 00 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 FD 00 CC 18 00 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 90 00 D7 [00:11:30]RAPDU: 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 90 00 [00:11:30]wFMCommunicate OK [00:11:30]wFMCommunicate request_size=4 [00:11:30]MH_SAM_APDU [00:11:30]CAPDU: 80 17 00 00 [00:11:30]Write to MH i2c: E2 08 00 CD 18 80 17 00 00 00 00 00 00 65 [00:11:30]Write i2c OK [00:11:30]MH_I2C_Read... [00:11:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:11:30]Read from MH i2c: E2 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 CD 00 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 CD 00 CD 18 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 49 [00:11:31]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:11:31]wFMCommunicate OK [00:11:31]SAM_PROTO_GetShiftData done [00:11:31]requested_item shift.sale.total_cash is exist - process it [00:11:31]requested_item shift.sale_refund.total is exist - process it [00:11:31]requested_item shift.sale_refund.total_cash is exist - process it [00:11:31]requested_item shift.buy.total is exist - process it [00:11:31]requested_item shift.buy.total_cash is exist - process it [00:11:31]produce_requested_data done [00:11:31]produce_requested_data return {"fm.sale.total":133808088.44,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":204277.57,"shift.sale.total_cash":112180.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:11:31]process_action_free get_value [00:11:31]json_value_free [00:11:31]json_value_free done [00:11:31]process_json_proto returns [00:11:31]Send response to host [00:11:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133808088.44,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":204277.57,"shift.sale.total_cash":112180.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:11:31]free response buf [00:11:31]execute_script done [00:11:31]execute_script returns [00:11:31]free content buf [00:11:31]Sock 7.Close socket [00:11:31]Sock 7.Thread stoped [00:11:31]accept exits with 9 [00:11:31]New connection [00:11:31]New thread 3066608996 created [00:11:31]Thread 3066752356 joined [00:11:31]Waiting for new connection... [00:11:31] Sock 9.Parse request [00:11:31]Sock 9.Check first char [00:11:31]Sock 9.First char is OK [00:11:31]request: POST /json_proto HTTP/1.0 [00:11:31]Method: POST [00:11:31]URL: /json_proto [00:11:31]Method is POST - this is cgi request [00:11:31]url: /json_proto [00:11:31]query_string will be loaded in cgi processing [00:11:31]execute_cgi json_proto POST (null) [00:11:31]execute_cgi path=json_proto method=POST [00:11:31]POST find Content-Length [00:11:31]Host: 172.17.41.195:8080 [00:11:31]Content-Length: 331 [00:11:31]Content-Type: application/json [00:11:31] [00:11:31]POST finish read [00:11:31]Found Content-Length = 331 [00:11:31]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:11:31]execute_script... [00:11:31]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:11:31]POST & json_proto [00:11:31]process_json_proto [00:11:31]json parsed OK: [00:11:31]protocol is kg_v1.0 [00:11:31]action value=get_value [00:11:31]process_action get_value [00:11:31]cmd_get_value [00:11:31]process_action get_value done [00:11:31]requested_data is exist [00:11:31]produce_requested_data [00:11:31]requested_item fm.sale.total is exist - process it [00:11:31]SAM_PROTO_GetFMData [00:11:31]wFMCommunicate request_size=4 [00:11:31]MH_SAM_APDU [00:11:31]CAPDU: 80 13 03 00 [00:11:31]Write to MH i2c: E2 08 00 CE 18 80 13 03 00 00 00 00 00 65 [00:11:31]Write i2c OK [00:11:31]MH_I2C_Read... [00:11:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:31]Read from MH i2c: E2 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 FD 00 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 FD 00 CE 18 00 C6 04 85 04 C2 04 6E 04 04 00 E3 05 01 00 69 04 A3 00 6F 04 04 00 39 05 01 00 B1 04 05 00 8C F0 8E 1D 03 70 04 05 00 BC F4 C2 C0 02 72 04 04 00 D0 FB CB 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A4 44 B5 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 7A 06 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 BC [00:11:31]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 E3 05 01 00 69 04 A3 00 6F 04 04 00 39 05 01 00 B1 04 05 00 8C F0 8E 1D 03 70 04 05 00 BC F4 C2 C0 02 72 04 04 00 D0 FB CB 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A4 44 B5 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 7A 06 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [00:11:31]wFMCommunicate OK [00:11:31]wFMCommunicate request_size=4 [00:11:31]MH_SAM_APDU [00:11:31]CAPDU: 80 17 00 00 [00:11:31]Write to MH i2c: E2 08 00 CF 18 80 17 00 00 00 00 00 00 67 [00:11:31]Write i2c OK [00:11:31]MH_I2C_Read... [00:11:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:31]Read from MH i2c: E2 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 FD 00 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 FD 00 CF 18 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 A2 [00:11:31]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:11:32]wFMCommunicate OK [00:11:32]wFMCommunicate request_size=4 [00:11:32]MH_SAM_APDU [00:11:32]CAPDU: 80 17 00 00 [00:11:32]Write to MH i2c: E2 08 00 D0 18 80 17 00 00 00 00 00 00 68 [00:11:32]Write i2c OK [00:11:32]MH_I2C_Read... [00:11:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:32]Read from MH i2c: E2 [00:11:32]MH_I2C_Read... [00:11:32]Read from MH i2c: E2 FD 00 [00:11:32]MH_I2C_Read... [00:11:32]Read from MH i2c: E2 FD 00 D0 18 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 8F [00:11:32]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:11:32]wFMCommunicate OK [00:11:32]wFMCommunicate request_size=4 [00:11:32]MH_SAM_APDU [00:11:32]CAPDU: 80 17 00 00 [00:11:32]Write to MH i2c: E2 08 00 D1 18 80 17 00 00 00 00 00 00 69 [00:11:32]Write i2c OK [00:11:32]MH_I2C_Read... [00:11:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:32]Read from MH i2c: E2 [00:11:32]MH_I2C_Read... [00:11:32]Read from MH i2c: E2 FD 00 [00:11:32]MH_I2C_Read... [00:11:32]Read from MH i2c: E2 FD 00 D1 18 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E4 [00:11:32]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:11:32]wFMCommunicate OK [00:11:32]wFMCommunicate request_size=4 [00:11:32]MH_SAM_APDU [00:11:32]CAPDU: 80 17 00 00 [00:11:32]Write to MH i2c: E2 08 00 D2 18 80 17 00 00 00 00 00 00 6A [00:11:32]Write i2c OK [00:11:32]MH_I2C_Read... [00:11:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:11:33]Read from MH i2c: E2 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 E3 00 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 E3 00 D2 18 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 49 [00:11:33]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:11:33]wFMCommunicate OK [00:11:33]SAM_PROTO_GetFMData done [00:11:33]requested_item fm.sale_refund.total is exist - process it [00:11:33]requested_item fm.buy.total is exist - process it [00:11:33]requested_item shift.sale.total is exist - process it [00:11:33]SAM_PROTO_GetShiftData [00:11:33]wFMCommunicate request_size=4 [00:11:33]MH_SAM_APDU [00:11:33]CAPDU: 80 13 02 00 [00:11:33]Write to MH i2c: E2 08 00 D3 18 80 13 02 00 00 00 00 00 69 [00:11:33]OFD Sender: No OFD packet to send [00:11:33]Write i2c OK [00:11:33]MH_I2C_Read... [00:11:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:33]Read from MH i2c: E2 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 FD 00 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 FD 00 D3 18 00 B0 04 AA 04 AC 04 6E 04 04 00 A8 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 ED B3 37 01 70 04 03 00 50 2C AB 72 04 03 00 9D 87 8C 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 2D 1B 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 3E C2 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 A6 [00:11:33]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 A8 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 ED B3 37 01 70 04 03 00 50 2C AB 72 04 03 00 9D 87 8C 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 2D 1B 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 3E C2 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:11:33]wFMCommunicate OK [00:11:33]wFMCommunicate request_size=4 [00:11:33]MH_SAM_APDU [00:11:33]CAPDU: 80 17 00 00 [00:11:33]Write to MH i2c: E2 08 00 D4 18 80 17 00 00 00 00 00 00 6C [00:11:33]Write i2c OK [00:11:33]MH_I2C_Read... [00:11:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:33]Read from MH i2c: E2 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 FD 00 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 FD 00 D4 18 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 86 [00:11:33]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:34]wFMCommunicate OK [00:11:34]wFMCommunicate request_size=4 [00:11:34]MH_SAM_APDU [00:11:34]CAPDU: 80 17 00 00 [00:11:34]Write to MH i2c: E2 08 00 D5 18 80 17 00 00 00 00 00 00 6D [00:11:34]Write i2c OK [00:11:34]MH_I2C_Read... [00:11:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:34]Read from MH i2c: E2 [00:11:34]MH_I2C_Read... [00:11:34]Read from MH i2c: E2 FD 00 [00:11:34]MH_I2C_Read... [00:11:34]Read from MH i2c: E2 FD 00 D5 18 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 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 90 00 2A [00:11:34]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:34]wFMCommunicate OK [00:11:34]wFMCommunicate request_size=4 [00:11:34]MH_SAM_APDU [00:11:34]CAPDU: 80 17 00 00 [00:11:34]Write to MH i2c: E2 08 00 D6 18 80 17 00 00 00 00 00 00 6E [00:11:34]Write i2c OK [00:11:34]MH_I2C_Read... [00:11:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:34]Read from MH i2c: E2 [00:11:34]MH_I2C_Read... [00:11:34]Read from MH i2c: E2 FD 00 [00:11:34]MH_I2C_Read... [00:11:34]Read from MH i2c: E2 FD 00 D6 18 00 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 90 00 E1 [00:11:34]RAPDU: 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 90 00 [00:11:34]wFMCommunicate OK [00:11:34]wFMCommunicate request_size=4 [00:11:34]MH_SAM_APDU [00:11:34]CAPDU: 80 17 00 00 [00:11:34]Write to MH i2c: E2 08 00 D7 18 80 17 00 00 00 00 00 00 6F [00:11:34]Write i2c OK [00:11:34]MH_I2C_Read... [00:11:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:11:35]Read from MH i2c: E2 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: E2 CD 00 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: E2 CD 00 D7 18 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 53 [00:11:35]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:11:35]wFMCommunicate OK [00:11:35]SAM_PROTO_GetShiftData done [00:11:35]requested_item shift.sale.total_cash is exist - process it [00:11:35]requested_item shift.sale_refund.total is exist - process it [00:11:35]requested_item shift.sale_refund.total_cash is exist - process it [00:11:35]requested_item shift.buy.total is exist - process it [00:11:35]requested_item shift.buy.total_cash is exist - process it [00:11:35]produce_requested_data done [00:11:35]produce_requested_data return {"fm.sale.total":133808088.44,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":204277.57,"shift.sale.total_cash":112180.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:11:35]process_action_free get_value [00:11:35]json_value_free [00:11:35]json_value_free done [00:11:35]process_json_proto returns [00:11:35]Send response to host [00:11:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133808088.44,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":204277.57,"shift.sale.total_cash":112180.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:11:35]free response buf [00:11:35]execute_script done [00:11:35]execute_script returns [00:11:35]free content buf [00:11:35]Sock 9.Close socket [00:11:35]Sock 9.Thread stoped [00:11:35]accept exits with 7 [00:11:35]New connection [00:11:35]New thread 3066752356 created [00:11:35]Thread 3066608996 joined [00:11:35]Waiting for new connection... [00:11:35] Sock 7.Parse request [00:11:35]Sock 7.Check first char [00:11:35]Sock 7.First char is OK [00:11:35]request: POST /json_proto HTTP/1.0 [00:11:35]Method: POST [00:11:35]URL: /json_proto [00:11:35]Method is POST - this is cgi request [00:11:35]url: /json_proto [00:11:35]query_string will be loaded in cgi processing [00:11:35]execute_cgi json_proto POST (null) [00:11:35]execute_cgi path=json_proto method=POST [00:11:35]POST find Content-Length [00:11:35]Host: 172.17.41.195:8080 [00:11:35]Content-Length: 244 [00:11:35]Content-Type: application/json [00:11:35] [00:11:35]POST finish read [00:11:35]Found Content-Length = 244 [00:11:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0434\u0438\u0448\u043E\u0432 \u0418." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:35]execute_script... [00:11:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0434\u0438\u0448\u043E\u0432 \u0418." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:35]POST & json_proto [00:11:35]process_json_proto [00:11:35]json parsed OK: [00:11:35]protocol is kg_v1.0 [00:11:35]action value=x_report [00:11:35]process_action x_report [00:11:35]cmd_x_report [00:11:35]MH_GetDate [00:11:35]Write to MH i2c: F0 00 00 D8 18 DF [00:11:35]Write i2c OK [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: F0 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: F0 09 00 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: F0 09 00 D8 18 00 39 F2 47 66 FC 21 6F 64 B0 [00:11:35]GetLastDocTimeStamp 1715989791 [00:11:35]current date 1715991097 [00:11:35]FM_GetShiftState [00:11:35]SAM_PROTO_GetShiftState [00:11:35]wFMCommunicate request_size=4 [00:11:35]MH_SAM_APDU [00:11:35]CAPDU: 80 13 01 00 [00:11:35]Write to MH i2c: E2 08 00 D9 18 80 13 01 00 00 00 00 00 6E [00:11:35]Write i2c OK [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: E2 [00:11:35]MH_I2C_Read... [00:11:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:35]Read from MH i2c: E2 0E 00 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: E2 0E 00 D9 18 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 F4 [00:11:35]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [00:11:35]wFMCommunicate OK [00:11:35]SAM_PROTO_GetShiftState done [00:11:35]FM_GetShiftState done [00:11:35]KKMCreateXReportDocument [00:11:35]Load OK [00:11:35]Malloc new data [00:11:35]MH_GetDate [00:11:35]Write to MH i2c: F0 00 00 DA 18 E1 [00:11:35]Write i2c OK [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: F0 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: F0 09 00 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: F0 09 00 DA 18 00 39 F2 47 66 FC 21 6F 64 B2 [00:11:35]Malloc new data [00:11:35]Malloc new data [00:11:35]wFMCommunicate request_size=4 [00:11:35]MH_SAM_APDU [00:11:35]CAPDU: 80 11 00 00 [00:11:35]Write to MH i2c: E2 08 00 DB 18 80 11 00 00 00 00 00 00 6D [00:11:35]Write i2c OK [00:11:35]MH_I2C_Read... [00:11:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:35]Read from MH i2c: E2 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: E2 17 00 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: E2 17 00 DB 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C3 [00:11: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:11:35]wFMCommunicate OK [00:11:35]SAM_PROTO_GetFieldsCounters [00:11:35]wFMCommunicate request_size=4 [00:11:35]MH_SAM_APDU [00:11:35]CAPDU: 80 13 00 00 [00:11:35]Write to MH i2c: E2 08 00 DC 18 80 13 00 00 00 00 00 00 70 [00:11:35]Write i2c OK [00:11:35]MH_I2C_Read... [00:11:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:35]Read from MH i2c: E2 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: E2 62 00 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: E2 62 00 DC 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 AF 08 01 00 0E 04 04 00 66 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 AD [00:11: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 AF 08 01 00 0E 04 04 00 66 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 [00:11:35]wFMCommunicate OK [00:11:35]SAM_PROTO_GetFieldsCounters done [00:11:35]Malloc new data [00:11:35]Malloc new data [00:11:35]Malloc new data [00:11:35]KKMCreateXReportDocument OK [00:11:35]KKMSetXReportData OK [00:11:35]KKMPrepareXReportFMData [00:11:35]SAM_PROTO_GetShiftData [00:11:35]wFMCommunicate request_size=4 [00:11:35]MH_SAM_APDU [00:11:35]CAPDU: 80 13 02 00 [00:11:35]Write to MH i2c: E2 08 00 DD 18 80 13 02 00 00 00 00 00 73 [00:11:35]Write i2c OK [00:11:35]MH_I2C_Read... [00:11:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:36]Read from MH i2c: E2 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 FD 00 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 FD 00 DD 18 00 B0 04 AA 04 AC 04 6E 04 04 00 A8 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 ED B3 37 01 70 04 03 00 50 2C AB 72 04 03 00 9D 87 8C 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 2D 1B 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 3E C2 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 B0 [00:11:36]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 A8 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 ED B3 37 01 70 04 03 00 50 2C AB 72 04 03 00 9D 87 8C 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 2D 1B 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 3E C2 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:11:36]wFMCommunicate OK [00:11:36]wFMCommunicate request_size=4 [00:11:36]MH_SAM_APDU [00:11:36]CAPDU: 80 17 00 00 [00:11:36]Write to MH i2c: E2 08 00 DE 18 80 17 00 00 00 00 00 00 76 [00:11:36]Write i2c OK [00:11:36]MH_I2C_Read... [00:11:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:36]Read from MH i2c: E2 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 FD 00 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 FD 00 DE 18 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 90 [00:11:36]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:36]wFMCommunicate OK [00:11:36]wFMCommunicate request_size=4 [00:11:36]MH_SAM_APDU [00:11:36]CAPDU: 80 17 00 00 [00:11:36]Write to MH i2c: E2 08 00 DF 18 80 17 00 00 00 00 00 00 77 [00:11:36]Write i2c OK [00:11:36]MH_I2C_Read... [00:11:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:36]Read from MH i2c: E2 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 FD 00 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 FD 00 DF 18 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 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 90 00 34 [00:11:37]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:37]wFMCommunicate OK [00:11:37]wFMCommunicate request_size=4 [00:11:37]MH_SAM_APDU [00:11:37]CAPDU: 80 17 00 00 [00:11:37]Write to MH i2c: E2 08 00 E0 18 80 17 00 00 00 00 00 00 78 [00:11:37]Write i2c OK [00:11:37]MH_I2C_Read... [00:11:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:37]Read from MH i2c: E2 [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: E2 FD 00 [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: E2 FD 00 E0 18 00 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 90 00 EB [00:11:37]RAPDU: 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 90 00 [00:11:37]wFMCommunicate OK [00:11:37]wFMCommunicate request_size=4 [00:11:37]MH_SAM_APDU [00:11:37]CAPDU: 80 17 00 00 [00:11:37]Write to MH i2c: E2 08 00 E1 18 80 17 00 00 00 00 00 00 79 [00:11:37]Write i2c OK [00:11:37]MH_I2C_Read... [00:11:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:11:37]Read from MH i2c: E2 [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: E2 CD 00 [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: E2 CD 00 E1 18 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5D [00:11:37]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:11:38]wFMCommunicate OK [00:11:38]SAM_PROTO_GetShiftData done [00:11:38]1194 (1196) - счетчики итогов смены [00:11:38] 1134 (4) - 168 - количество чеков со всеми признаками расчетов [00:11:38] 1129 (157) - счетчики операций «приход» [00:11:38] 1135 (4) - 168 - количество чеков по признаку расчетов [00:11:38] 1201 (4) - 204277.57 - общая итоговая сумма в чеках [00:11:38] 1136 (3) - 112180.00 - итоговая сумма в чеках наличными [00:11:38] 1138 (3) - 92097.57 - итоговая сумма в чеках безналичными [00:11:38] 1024 (123) - суммы налогов [00:11:38] 1006 (9) - суммы НДС [00:11:38] 1010 (1) - 0% - код ставки НДС [00:11:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:38] 1006 (12) - суммы НДС [00:11:38] 1010 (1) - 12% - код ставки НДС [00:11:38] 1011 (3) - 21696.45 - сумма НДС по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 0% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (12) - суммы НСП [00:11:38] 1014 (1) - 1% - код ставки НСП [00:11:38] 1015 (3) - 1807.98 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 2% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 3% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 5% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 0,50% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 1,50% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1130 (141) - счетчики операций «возврат прихода» [00:11:38] 1135 (4) - 0 - количество чеков по признаку расчетов [00:11:38] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:11:38] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:11:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:11:38] 1024 (117) - суммы налогов [00:11:38] 1006 (9) - суммы НДС [00:11:38] 1010 (1) - 0% - код ставки НДС [00:11:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:38] 1006 (9) - суммы НДС [00:11:38] 1010 (1) - 12% - код ставки НДС [00:11:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 0% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 1% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 2% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 3% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 5% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 0,50% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 1,50% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1131 (141) - счетчики операций «расход» [00:11:38] 1135 (4) - 0 - количество чеков по признаку расчетов [00:11:38] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:11:38] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:11:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:11:38] 1024 (117) - суммы налогов [00:11:38] 1006 (9) - суммы НДС [00:11:38] 1010 (1) - 0% - код ставки НДС [00:11:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:38] 1006 (9) - суммы НДС [00:11:38] 1010 (1) - 12% - код ставки НДС [00:11:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 0% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 1% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 2% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 3% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 5% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 0,50% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 1,50% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1132 (141) - счетчики операций «возврат расхода» [00:11:38] 1135 (4) - 0 - количество чеков по признаку расчетов [00:11:38] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:11:38] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:11:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:11:38] 1024 (117) - суммы налогов [00:11:38] 1006 (9) - суммы НДС [00:11:38] 1010 (1) - 0% - код ставки НДС [00:11:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:38] 1006 (9) - суммы НДС [00:11:38] 1010 (1) - 12% - код ставки НДС [00:11:38] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 0% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 1% - код ставки НСП [00:11:38] OFD Sender: No OFD packet to send [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 2% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 3% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 5% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 0,50% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1007 (9) - суммы НСП [00:11:38] 1014 (1) - 1,50% - код ставки НСП [00:11:38] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:38] 1133 (588) - - счетчики коррекции - не используются [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1194 (04AA) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1134 (046E) [00:11:38]Malloc new data [00:11:38]Processing tag 1129 (0469) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1135 (046F) [00:11:38]Malloc new data [00:11:38]Processing tag 1201 (04B1) [00:11:38]Malloc new data [00:11:38]Processing tag 1136 (0470) [00:11:38]Malloc new data [00:11:38]Processing tag 1138 (0472) [00:11:38]Malloc new data [00:11:38]Processing tag 1024 (0400) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1006 (03EE) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1010 (03F2) [00:11:38]Malloc new data [00:11:38]Processing tag 1011 (03F3) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1006 (03EE) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1010 (03F2) [00:11:38]Malloc new data [00:11:38]Processing tag 1011 (03F3) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]SetTLVBufToDocument err=0 [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1130 (046A) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1135 (046F) [00:11:38]Malloc new data [00:11:38]Processing tag 1201 (04B1) [00:11:38]Malloc new data [00:11:38]Processing tag 1136 (0470) [00:11:38]Malloc new data [00:11:38]Processing tag 1138 (0472) [00:11:38]Malloc new data [00:11:38]Processing tag 1024 (0400) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1006 (03EE) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1010 (03F2) [00:11:38]Malloc new data [00:11:38]Processing tag 1011 (03F3) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1006 (03EE) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1010 (03F2) [00:11:38]Malloc new data [00:11:38]Processing tag 1011 (03F3) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]SetTLVBufToDocument err=0 [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1131 (046B) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1135 (046F) [00:11:38]Malloc new data [00:11:38]Processing tag 1201 (04B1) [00:11:38]Malloc new data [00:11:38]Processing tag 1136 (0470) [00:11:38]Malloc new data [00:11:38]Processing tag 1138 (0472) [00:11:38]Malloc new data [00:11:38]Processing tag 1024 (0400) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1006 (03EE) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1010 (03F2) [00:11:38]Malloc new data [00:11:38]Processing tag 1011 (03F3) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1006 (03EE) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1010 (03F2) [00:11:38]Malloc new data [00:11:38]Processing tag 1011 (03F3) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]SetTLVBufToDocument err=0 [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1132 (046C) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1135 (046F) [00:11:38]Malloc new data [00:11:38]Processing tag 1201 (04B1) [00:11:38]Malloc new data [00:11:38]Processing tag 1136 (0470) [00:11:38]Malloc new data [00:11:38]Processing tag 1138 (0472) [00:11:38]Malloc new data [00:11:38]Processing tag 1024 (0400) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1006 (03EE) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1010 (03F2) [00:11:38]Malloc new data [00:11:38]Processing tag 1011 (03F3) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1006 (03EE) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1010 (03F2) [00:11:38]Malloc new data [00:11:38]Processing tag 1011 (03F3) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:38]SetTLVBufToDocument err=0 [00:11:38]Processing tag 1007 (03EF) [00:11:38]Load OK [00:11:38]SetTLVBufToDocument [00:11:38]Processing tag 1014 (03F6) [00:11:38]Malloc new data [00:11:38]Processing tag 1015 (03F7) [00:11:38]Malloc new data [00:11:39]SetTLVBufToDocument err=0 [00:11:39]SetTLVBufToDocument err=0 [00:11:39]SetTLVBufToDocument err=0 [00:11:39]Processing tag 1133 (046D) [00:11:39]Malloc new data [00:11:39]SetTLVBufToDocument err=0 [00:11:39]SetTLVBufToDocument err=0 [00:11:39]Malloc new data [00:11:39]SAM_PROTO_GetFMData [00:11:39]wFMCommunicate request_size=4 [00:11:39]MH_SAM_APDU [00:11:39]CAPDU: 80 13 03 00 [00:11:39]Write to MH i2c: E2 08 00 E2 18 80 13 03 00 00 00 00 00 79 [00:11:39]Write i2c OK [00:11:39]MH_I2C_Read... [00:11:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:39]Read from MH i2c: E2 [00:11:39]MH_I2C_Read... [00:11:39]Read from MH i2c: E2 FD 00 [00:11:39]MH_I2C_Read... [00:11:39]Read from MH i2c: E2 FD 00 E2 18 00 C6 04 85 04 C2 04 6E 04 04 00 E3 05 01 00 69 04 A3 00 6F 04 04 00 39 05 01 00 B1 04 05 00 8C F0 8E 1D 03 70 04 05 00 BC F4 C2 C0 02 72 04 04 00 D0 FB CB 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A4 44 B5 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 7A 06 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 D0 [00:11:39]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 E3 05 01 00 69 04 A3 00 6F 04 04 00 39 05 01 00 B1 04 05 00 8C F0 8E 1D 03 70 04 05 00 BC F4 C2 C0 02 72 04 04 00 D0 FB CB 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A4 44 B5 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 7A 06 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [00:11:39]wFMCommunicate OK [00:11:39]wFMCommunicate request_size=4 [00:11:39]MH_SAM_APDU [00:11:39]CAPDU: 80 17 00 00 [00:11:39]Write to MH i2c: E2 08 00 E3 18 80 17 00 00 00 00 00 00 7B [00:11:39]Write i2c OK [00:11:39]MH_I2C_Read... [00:11:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:40]Read from MH i2c: E2 [00:11:40]MH_I2C_Read... [00:11:40]Read from MH i2c: E2 FD 00 [00:11:40]MH_I2C_Read... [00:11:40]Read from MH i2c: E2 FD 00 E3 18 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 B6 [00:11:40]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:11:40]wFMCommunicate OK [00:11:40]wFMCommunicate request_size=4 [00:11:40]MH_SAM_APDU [00:11:40]CAPDU: 80 17 00 00 [00:11:40]Write to MH i2c: E2 08 00 E4 18 80 17 00 00 00 00 00 00 7C [00:11:40]Write i2c OK [00:11:40]MH_I2C_Read... [00:11:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:40]Read from MH i2c: E2 [00:11:40]MH_I2C_Read... [00:11:40]Read from MH i2c: E2 FD 00 [00:11:40]MH_I2C_Read... [00:11:40]Read from MH i2c: E2 FD 00 E4 18 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 A3 [00:11: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 [00:11:40]wFMCommunicate OK [00:11:40]wFMCommunicate request_size=4 [00:11:40]MH_SAM_APDU [00:11:40]CAPDU: 80 17 00 00 [00:11:40]Write to MH i2c: E2 08 00 E5 18 80 17 00 00 00 00 00 00 7D [00:11:40]Write i2c OK [00:11:40]MH_I2C_Read... [00:11:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:41]Read from MH i2c: E2 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 FD 00 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 FD 00 E5 18 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F8 [00:11: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 [00:11:41]wFMCommunicate OK [00:11:41]wFMCommunicate request_size=4 [00:11:41]MH_SAM_APDU [00:11:41]CAPDU: 80 17 00 00 [00:11:41]Write to MH i2c: E2 08 00 E6 18 80 17 00 00 00 00 00 00 7E [00:11:41]Write i2c OK [00:11:41]MH_I2C_Read... [00:11:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:11:41]Read from MH i2c: E2 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 E3 00 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 E3 00 E6 18 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5D [00:11: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 [00:11:41]wFMCommunicate OK [00:11:41]SAM_PROTO_GetFMData done [00:11:41]FM_GetFMData:85 04 C2 04 6E 04 04 00 E3 05 01 00 69 04 A3 00 6F 04 04 00 39 05 01 00 B1 04 05 00 8C F0 8E 1D 03 70 04 05 00 BC F4 C2 C0 02 72 04 04 00 D0 FB CB 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A4 44 B5 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 7A 06 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:11:42]oper:6F 04 04 00 39 05 01 00 B1 04 05 00 8C F0 8E 1D 03 70 04 05 00 BC F4 C2 C0 02 72 04 04 00 D0 FB CB 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A4 44 B5 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 7A 06 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:11:42]total:8C F0 8E 1D 03 [00:11:42]Malloc new data [00:11:42]oper:6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:11:42]total:00 23 C3 DC [00:11:42]Malloc new data [00:11:42]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 [00:11:42]total: [00:11:42]Malloc new data [00:11:42]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 [00:11:42]total: [00:11:42]Malloc new data [00:11:42]KKMPrepareXReportFMData err=0 [00:11:42]Х отчет ИНН: 02508201610067 Кассир: Адишов И. 18.05.2024 00:11 Смена: 266 РНМ: 0000000000091845 ЗНМ: 0300000119 СНО: Общий режим Всего чеков: 168 ИТОГИ ПРИХОД Чеков: 168 Общий итог: 204277.57 Итого наличными: 112180.00 Итого безнал.: 92097.57 НДС 0% : 0.00 НДС 12% : 21696.45 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1807.98 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 112180.00 НС Приход: 133808088.44 НС Возвр.Прихода: 37037760.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871829 [00:11:42]StoreToDocumentArchive [00:11:42]MH_GetDate [00:11:42]Write to MH i2c: F0 00 00 E7 18 EE [00:11:42]Write i2c OK [00:11:42]MH_I2C_Read... [00:11:42]Read from MH i2c: F0 [00:11:42]MH_I2C_Read... [00:11:42]Read from MH i2c: F0 09 00 [00:11:42]MH_I2C_Read... [00:11:42]Read from MH i2c: F0 09 00 E7 18 00 41 F2 47 66 FC 21 6F 64 C7 [00:11:42]shift 266 fd 1715991105 [00:11:42]Create dir for shift 0266 [00:11:42]save to /storage/0266/doc_1715991105 [00:11:42]save last doc name /storage/0266/doc_1715991105 to /storage/kkm_last_doc_name [00:11:42]save OK [00:11:42]Clear old archive folders... [00:11:42]NVStorageSaveData kkm_last_timestamp [00:11:42]File name is /storage/kkm_last_timestamp [00:11:42]Write 4 bytes [00:11:42]NVStorageSaveData done [00:11:42]ExternCall_PrintAddStr [00:11:42]wPrintStart [00:11:42]Write to MH i2c: 01 00 00 E8 18 00 [00:11:42]Write i2c OK [00:11:42]MH_I2C_Read... [00:11:42]Read from MH i2c: 01 [00:11:42]MH_I2C_Read... [00:11:42]Read from MH i2c: 01 07 00 [00:11:42]MH_I2C_Read... [00:11:42]Read from MH i2c: 01 07 00 E8 18 00 00 00 00 00 FF 0F 15 [00:11:42]RasterBufferAndPrint [00:11:42]line Х отчет [00:11:42]line ИНН: 02508201610067 [00:11:42]line Кассир: Адишов И. [00:11:42]line 18.05.2024 00:11 [00:11:42]line Смена: 266 [00:11:42]line РНМ: 0000000000091845 [00:11:42]line ЗНМ: 0300000119 [00:11:42]line СНО: Общий режим [00:11:42]line Всего чеков: 168 [00:11:42]line ИТОГИ ПРИХОД [00:11:42]line Чеков: 168 [00:11:42]line Общий итог: 204277.57 [00:11:42]line Итого наличными: 112180.00 [00:11:42]line Итого безнал.: 92097.57 [00:11:42]line НДС 0% : 0.00 [00:11:42]line НДС 12% : 21696.45 [00:11:42]line НСП 0% : 0.00 [00:11:42]line НСП 1,50% : 0.00 [00:11:42]line НСП 0,50% : 0.00 [00:11:42]line НСП 5% : 0.00 [00:11:42]line НСП 3% : 0.00 [00:11:42]line НСП 2% : 0.00 [00:11:42]line НСП 1% : 1807.98 [00:11:42]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:11:42]line Чеков: 0 [00:11:42]line Общий итог: 0.00 [00:11:42]line Итого наличными: 0.00 [00:11:42]line Итого безнал.: 0.00 [00:11:43]line НДС 0% : 0.00 [00:11:43]line НДС 12% : 0.00 [00:11:43]line НСП 0% : 0.00 [00:11:43]line НСП 1,50% : 0.00 [00:11:43]line НСП 0,50% : 0.00 [00:11:43]line НСП 5% : 0.00 [00:11:43]line НСП 3% : 0.00 [00:11:43]line НСП 2% : 0.00 [00:11:43]line НСП 1% : 0.00 [00:11:43]line ИТОГИ РАСХОД [00:11:43]line Чеков: 0 [00:11:43]line Общий итог: 0.00 [00:11:43]line Итого наличными: 0.00 [00:11:43]line Итого безнал.: 0.00 [00:11:43]line НДС 0% : 0.00 [00:11:43]line НДС 12% : 0.00 [00:11:43]line НСП 0% : 0.00 [00:11:43]line НСП 1,50% : 0.00 [00:11:43]line НСП 0,50% : 0.00 [00:11:43]line НСП 5% : 0.00 [00:11:43]line НСП 3% : 0.00 [00:11:43]line НСП 2% : 0.00 [00:11:43]line НСП 1% : 0.00 [00:11:43]line ИТОГИ ВОЗВРАТ РАСХОДА [00:11:43]line Чеков: 0 [00:11:43]line Общий итог: 0.00 [00:11:43]line Итого наличными: 0.00 [00:11:43]line Итого безнал.: 0.00 [00:11:43]line НДС 0% : 0.00 [00:11:43]line НДС 12% : 0.00 [00:11:43]line НСП 0% : 0.00 [00:11:43]line НСП 1,50% : 0.00 [00:11:43]line НСП 0,50% : 0.00 [00:11:43]line НСП 5% : 0.00 [00:11:43]line НСП 3% : 0.00 [00:11:43]line НСП 2% : 0.00 [00:11:43]line НСП 1% : 0.00 [00:11:43]line Сумма внесений: 0.00 [00:11:43]line Сумма выплат: 0.00 [00:11:43]line Нал. в кассе: 112180.00 [00:11:43]line НС Приход: 133808088.44 [00:11:43]line НС Возвр.Прихода: 37037760.00 [00:11:43]line НС Расход: 0.00 [00:11:43]line НС Возвр.Расхода: 0.00 [00:11:43]line ФМ: 0000000000871829 [00:11:43]written 0, free lines is 4095 [00:11:43]OFD Sender: No OFD packet to send [00:11:43]Write to MH i2c: 01 00 00 34 19 4D [00:11:43]Write i2c OK [00:11:43]MH_I2C_Read... [00:11:43]Read from MH i2c: 01 [00:11:43]MH_I2C_Read... [00:11:43]Read from MH i2c: 01 07 00 [00:11:43]MH_I2C_Read... [00:11:43]Read from MH i2c: 01 07 00 34 19 00 00 00 00 00 7C 0A DA [00:11:43]RasterBufferAndPrint [00:11:43]line [00:11:43]line [00:11:43]line [00:11:43]line [00:11:43]line [00:11:43]written 0, free lines is 2712 [00:11:43]MH_Cut [00:11:43]Write to MH i2c: D1 01 00 3B 19 01 26 [00:11:43]Write i2c OK [00:11:43]MH_I2C_Read... [00:11:43]Read from MH i2c: D1 [00:11:43]MH_I2C_Read... [00:11:43]Read from MH i2c: D1 01 00 [00:11:43]MH_I2C_Read... [00:11:43]Read from MH i2c: D1 01 00 3B 19 00 25 [00:11:43]Write to MH i2c: 01 00 00 3C 19 55 [00:11:43]Write i2c OK [00:11:43]MH_I2C_Read... [00:11:44]*** Cut start [00:11:44]*** Purtial cut [00:11:44]*** CUTSNS_PIN = 0 [00:11:45]*** Stage 1: CUTSNS_PIN = 1 [00:11:46]Read from MH i2c: 01 [00:11:46]MH_I2C_Read... [00:11:46]*** Stop cut motor [00:11:46]*** Cut end [00:11:46]Read from MH i2c: 01 07 00 [00:11:46]MH_I2C_Read... [00:11:46]Read from MH i2c: 01 07 00 3C 19 00 00 00 00 00 FF 0F 6A [00:11:46]process_action x_report done [00:11:46]requested_data is exist [00:11:46]produce_requested_data [00:11:46]requested_item fd.num is exist - process it [00:11:46]SAM_PROTO_GetFieldsCounters [00:11:46]wFMCommunicate request_size=4 [00:11:46]MH_SAM_APDU [00:11:46]CAPDU: 80 13 00 00 [00:11:46]Write to MH i2c: E2 08 00 3D 19 80 13 00 00 00 00 00 00 D2 [00:11:46]Write i2c OK [00:11:46]MH_I2C_Read... [00:11:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:47]Read from MH i2c: E2 [00:11:47]MH_I2C_Read... [00:11:47]Read from MH i2c: E2 62 00 [00:11:47]MH_I2C_Read... [00:11:47]Read from MH i2c: E2 62 00 3D 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 AF 08 01 00 0E 04 04 00 66 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 0F [00:11: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 AF 08 01 00 0E 04 04 00 66 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 [00:11:47]wFMCommunicate OK [00:11:47]SAM_PROTO_GetFieldsCounters done [00:11:47]requested_item shift.num is exist - process it [00:11:47]requested_item shift.opened is exist - process it [00:11:47]req_shift_opened [00:11:47]FM_GetShiftState [00:11:47]SAM_PROTO_GetShiftState [00:11:47]wFMCommunicate request_size=4 [00:11:47]MH_SAM_APDU [00:11:47]CAPDU: 80 13 01 00 [00:11:47]Write to MH i2c: E2 08 00 3E 19 80 13 01 00 00 00 00 00 D4 [00:11:47]Write i2c OK [00:11:47]MH_I2C_Read... [00:11:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:47]Read from MH i2c: E2 [00:11:47]MH_I2C_Read... [00:11:47]Read from MH i2c: E2 0E 00 [00:11:47]MH_I2C_Read... [00:11:47]Read from MH i2c: E2 0E 00 3E 19 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 5A [00:11:47]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [00:11:47]wFMCommunicate OK [00:11:47]SAM_PROTO_GetShiftState done [00:11:47]FM_GetShiftState done [00:11:47]req_shift_opened done [00:11:47]requested_item shift.open_date is exist - process it [00:11:47]req_shift_open_date [00:11:47]req_shift_open_date done [00:11:47]produce_requested_data done [00:11:47]produce_requested_data return {"fd.num":67759,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [00:11:47]process_action_free x_report [00:11:47]json_value_free [00:11:47]json_value_free done [00:11:47]process_json_proto returns [00:11:47]Send response to host [00:11:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":67759,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [00:11:47]free response buf [00:11:47]execute_script done [00:11:47]execute_script returns [00:11:47]free content buf [00:11:47]Sock 7.Close socket [00:11:47]Sock 7.Thread stoped [00:11:48]OFD Sender: No OFD packet to send [00:11:51]accept exits with 9 [00:11:51]New connection [00:11:51]New thread 3066608996 created [00:11:51]Thread 3066752356 joined [00:11:51]Waiting for new connection... [00:11:51] Sock 9.Parse request [00:11:51]Sock 9.Check first char [00:11:51]Sock 9.First char is OK [00:11:51]request: POST /json_proto HTTP/1.0 [00:11:51]Method: POST [00:11:51]URL: /json_proto [00:11:51]Method is POST - this is cgi request [00:11:51]url: /json_proto [00:11:51]query_string will be loaded in cgi processing [00:11:51]execute_cgi json_proto POST (null) [00:11:51]execute_cgi path=json_proto method=POST [00:11:51]POST find Content-Length [00:11:51]Host: 172.17.41.195:8080 [00:11:51]Content-Length: 215 [00:11:51]Content-Type: application/json [00:11:51] [00:11:51]POST finish read [00:11:51]Found Content-Length = 215 [00:11:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:51]execute_script... [00:11:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:51]POST & json_proto [00:11:51]process_json_proto [00:11:51]json parsed OK: [00:11:51]protocol is kg_v1.0 [00:11:51]action value=get_value [00:11:51]process_action get_value [00:11:51]cmd_get_value [00:11:51]process_action get_value done [00:11:51]requested_data is exist [00:11:51]produce_requested_data [00:11:51]requested_item kkm.sn is exist - process it [00:11:51]requested_item kkm.ver is exist - process it [00:11:51]requested_item fm.sn is exist - process it [00:11:51]wFMCommunicate request_size=4 [00:11:51]MH_SAM_APDU [00:11:51]CAPDU: 80 11 00 00 [00:11:51]Write to MH i2c: E2 08 00 3F 19 80 11 00 00 00 00 00 00 D2 [00:11:51]Write i2c OK [00:11:51]MH_I2C_Read... [00:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:51]Read from MH i2c: E2 [00:11:51]MH_I2C_Read... [00:11:51]Read from MH i2c: E2 17 00 [00:11:51]MH_I2C_Read... [00:11:51]Read from MH i2c: E2 17 00 3F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 28 [00:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:11:51]wFMCommunicate OK [00:11:51]requested_item fd.num is exist - process it [00:11:51]SAM_PROTO_GetFieldsCounters [00:11:51]wFMCommunicate request_size=4 [00:11:51]MH_SAM_APDU [00:11:51]CAPDU: 80 13 00 00 [00:11:51]Write to MH i2c: E2 08 00 40 19 80 13 00 00 00 00 00 00 D5 [00:11:51]Write i2c OK [00:11:51]MH_I2C_Read... [00:11:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:52]Read from MH i2c: E2 [00:11:52]MH_I2C_Read... [00:11:52]Read from MH i2c: E2 62 00 [00:11:52]MH_I2C_Read... [00:11:52]Read from MH i2c: E2 62 00 40 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 AF 08 01 00 0E 04 04 00 66 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 12 [00:11: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 AF 08 01 00 0E 04 04 00 66 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 [00:11:52]wFMCommunicate OK [00:11:52]SAM_PROTO_GetFieldsCounters done [00:11:52]requested_item shift.num is exist - process it [00:11:52]requested_item shift.opened is exist - process it [00:11:52]req_shift_opened [00:11:52]FM_GetShiftState [00:11:52]SAM_PROTO_GetShiftState [00:11:52]wFMCommunicate request_size=4 [00:11:52]MH_SAM_APDU [00:11:52]CAPDU: 80 13 01 00 [00:11:52]Write to MH i2c: E2 08 00 41 19 80 13 01 00 00 00 00 00 D7 [00:11:52]Write i2c OK [00:11:52]MH_I2C_Read... [00:11:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:52]Read from MH i2c: E2 [00:11:52]MH_I2C_Read... [00:11:52]Read from MH i2c: E2 0E 00 [00:11:52]MH_I2C_Read... [00:11:52]Read from MH i2c: E2 0E 00 41 19 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 5D [00:11:52]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [00:11:52]wFMCommunicate OK [00:11:52]SAM_PROTO_GetShiftState done [00:11:52]FM_GetShiftState done [00:11:52]req_shift_opened done [00:11:52]requested_item shift.open_date is exist - process it [00:11:52]req_shift_open_date [00:11:52]req_shift_open_date done [00:11:52]produce_requested_data done [00:11:52]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67759,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068} [00:11:52]process_action_free get_value [00:11:52]json_value_free [00:11:52]json_value_free done [00:11:52]process_json_proto returns [00:11:52]Send response to host [00:11:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67759,"shift.num":358,"shift.opened":1,"shift.open_date":1715905068}}} [00:11:52]free response buf [00:11:52]execute_script done [00:11:52]execute_script returns [00:11:52]free content buf [00:11:52]Sock 9.Close socket [00:11:52]Sock 9.Thread stoped [00:11:52]accept exits with 7 [00:11:52]New connection [00:11:52]New thread 3066752356 created [00:11:52]Thread 3066608996 joined [00:11:52]Waiting for new connection... [00:11:52] Sock 7.Parse request [00:11:52]Sock 7.Check first char [00:11:52]Sock 7.First char is OK [00:11:52]request: POST /json_proto HTTP/1.0 [00:11:52]Method: POST [00:11:52]URL: /json_proto [00:11:52]Method is POST - this is cgi request [00:11:52]url: /json_proto [00:11:52]query_string will be loaded in cgi processing [00:11:52]execute_cgi json_proto POST (null) [00:11:52]execute_cgi path=json_proto method=POST [00:11:52]POST find Content-Length [00:11:52]Host: 172.17.41.195:8080 [00:11:52]Content-Length: 331 [00:11:52]Content-Type: application/json [00:11:52] [00:11:52]POST finish read [00:11:52]Found Content-Length = 331 [00:11:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:52]execute_script... [00:11:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:52]POST & json_proto [00:11:52]process_json_proto [00:11:52]json parsed OK: [00:11:52]protocol is kg_v1.0 [00:11:52]action value=get_value [00:11:52]process_action get_value [00:11:52]cmd_get_value [00:11:52]process_action get_value done [00:11:52]requested_data is exist [00:11:52]produce_requested_data [00:11:52]requested_item fm.sale.total is exist - process it [00:11:52]SAM_PROTO_GetFMData [00:11:52]wFMCommunicate request_size=4 [00:11:52]MH_SAM_APDU [00:11:52]CAPDU: 80 13 03 00 [00:11:52]Write to MH i2c: E2 08 00 42 19 80 13 03 00 00 00 00 00 DA [00:11:52]Write i2c OK [00:11:52]MH_I2C_Read... [00:11:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:52]Read from MH i2c: E2 [00:11:52]MH_I2C_Read... [00:11:52]Read from MH i2c: E2 FD 00 [00:11:52]MH_I2C_Read... [00:11:52]Read from MH i2c: E2 FD 00 42 19 00 C6 04 85 04 C2 04 6E 04 04 00 E3 05 01 00 69 04 A3 00 6F 04 04 00 39 05 01 00 B1 04 05 00 8C F0 8E 1D 03 70 04 05 00 BC F4 C2 C0 02 72 04 04 00 D0 FB CB 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A4 44 B5 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 7A 06 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 31 [00:11:52]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 E3 05 01 00 69 04 A3 00 6F 04 04 00 39 05 01 00 B1 04 05 00 8C F0 8E 1D 03 70 04 05 00 BC F4 C2 C0 02 72 04 04 00 D0 FB CB 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A4 44 B5 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 7A 06 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [00:11:52]wFMCommunicate OK [00:11:52]wFMCommunicate request_size=4 [00:11:52]MH_SAM_APDU [00:11:52]CAPDU: 80 17 00 00 [00:11:52]Write to MH i2c: E2 08 00 43 19 80 17 00 00 00 00 00 00 DC [00:11:52]Write i2c OK [00:11:52]MH_I2C_Read... [00:11:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:53]Read from MH i2c: E2 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: E2 FD 00 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: E2 FD 00 43 19 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 17 [00:11:53]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:11:53]wFMCommunicate OK [00:11:53]wFMCommunicate request_size=4 [00:11:53]MH_SAM_APDU [00:11:53]CAPDU: 80 17 00 00 [00:11:53]Write to MH i2c: E2 08 00 44 19 80 17 00 00 00 00 00 00 DD [00:11:53]Write i2c OK [00:11:53]MH_I2C_Read... [00:11:53]OFD Sender: No OFD packet to send [00:11:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:53]Read from MH i2c: E2 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: E2 FD 00 [00:11:53]MH_I2C_Read... [00:11:53]Read from MH i2c: E2 FD 00 44 19 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 04 [00:11:53]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:11:54]wFMCommunicate OK [00:11:54]wFMCommunicate request_size=4 [00:11:54]MH_SAM_APDU [00:11:54]CAPDU: 80 17 00 00 [00:11:54]Write to MH i2c: E2 08 00 45 19 80 17 00 00 00 00 00 00 DE [00:11:54]Write i2c OK [00:11:54]MH_I2C_Read... [00:11:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:54]Read from MH i2c: E2 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 FD 00 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 FD 00 45 19 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 59 [00:11:54]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:11:54]wFMCommunicate OK [00:11:54]wFMCommunicate request_size=4 [00:11:54]MH_SAM_APDU [00:11:54]CAPDU: 80 17 00 00 [00:11:54]Write to MH i2c: E2 08 00 46 19 80 17 00 00 00 00 00 00 DF [00:11:54]Write i2c OK [00:11:54]MH_I2C_Read... [00:11:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:11:54]Read from MH i2c: E2 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 E3 00 [00:11:54]MH_I2C_Read... [00:11:54]Read from MH i2c: E2 E3 00 46 19 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BE [00:11:54]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:11:55]wFMCommunicate OK [00:11:55]SAM_PROTO_GetFMData done [00:11:55]requested_item fm.sale_refund.total is exist - process it [00:11:55]requested_item fm.buy.total is exist - process it [00:11:55]requested_item shift.sale.total is exist - process it [00:11:55]SAM_PROTO_GetShiftData [00:11:55]wFMCommunicate request_size=4 [00:11:55]MH_SAM_APDU [00:11:55]CAPDU: 80 13 02 00 [00:11:55]Write to MH i2c: E2 08 00 47 19 80 13 02 00 00 00 00 00 DE [00:11:55]Write i2c OK [00:11:55]MH_I2C_Read... [00:11:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:55]Read from MH i2c: E2 [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: E2 FD 00 [00:11:55]MH_I2C_Read... [00:11:55]Read from MH i2c: E2 FD 00 47 19 00 B0 04 AA 04 AC 04 6E 04 04 00 A8 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 ED B3 37 01 70 04 03 00 50 2C AB 72 04 03 00 9D 87 8C 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 2D 1B 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 3E C2 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 1B [00:11:55]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 A8 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 ED B3 37 01 70 04 03 00 50 2C AB 72 04 03 00 9D 87 8C 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 2D 1B 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 3E C2 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:11:55]wFMCommunicate OK [00:11:55]wFMCommunicate request_size=4 [00:11:55]MH_SAM_APDU [00:11:55]CAPDU: 80 17 00 00 [00:11:55]Write to MH i2c: E2 08 00 48 19 80 17 00 00 00 00 00 00 E1 [00:11:55]Write i2c OK [00:11:55]MH_I2C_Read... [00:11:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:56]Read from MH i2c: E2 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: E2 FD 00 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: E2 FD 00 48 19 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FB [00:11:56]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:56]wFMCommunicate OK [00:11:56]wFMCommunicate request_size=4 [00:11:56]MH_SAM_APDU [00:11:56]CAPDU: 80 17 00 00 [00:11:56]Write to MH i2c: E2 08 00 49 19 80 17 00 00 00 00 00 00 E2 [00:11:56]Write i2c OK [00:11:56]MH_I2C_Read... [00:11:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:56]Read from MH i2c: E2 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: E2 FD 00 [00:11:56]MH_I2C_Read... [00:11:56]Read from MH i2c: E2 FD 00 49 19 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 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 90 00 9F [00:11:56]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:56]wFMCommunicate OK [00:11:56]wFMCommunicate request_size=4 [00:11:56]MH_SAM_APDU [00:11:56]CAPDU: 80 17 00 00 [00:11:56]Write to MH i2c: E2 08 00 4A 19 80 17 00 00 00 00 00 00 E3 [00:11:56]Write i2c OK [00:11:56]MH_I2C_Read... [00:11:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:57]Read from MH i2c: E2 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 FD 00 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 FD 00 4A 19 00 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 90 00 56 [00:11:57]RAPDU: 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 90 00 [00:11:57]wFMCommunicate OK [00:11:57]wFMCommunicate request_size=4 [00:11:57]MH_SAM_APDU [00:11:57]CAPDU: 80 17 00 00 [00:11:57]Write to MH i2c: E2 08 00 4B 19 80 17 00 00 00 00 00 00 E4 [00:11:57]Write i2c OK [00:11:57]MH_I2C_Read... [00:11:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:11:57]Read from MH i2c: E2 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 CD 00 [00:11:57]MH_I2C_Read... [00:11:57]Read from MH i2c: E2 CD 00 4B 19 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C8 [00:11:57]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:11:57]wFMCommunicate OK [00:11:57]SAM_PROTO_GetShiftData done [00:11:57]requested_item shift.sale.total_cash is exist - process it [00:11:57]requested_item shift.sale_refund.total is exist - process it [00:11:57]requested_item shift.sale_refund.total_cash is exist - process it [00:11:57]requested_item shift.buy.total is exist - process it [00:11:57]requested_item shift.buy.total_cash is exist - process it [00:11:57]produce_requested_data done [00:11:57]produce_requested_data return {"fm.sale.total":133808088.44,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":204277.57,"shift.sale.total_cash":112180.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:11:57]process_action_free get_value [00:11:57]json_value_free [00:11:57]json_value_free done [00:11:57]process_json_proto returns [00:11:57]Send response to host [00:11:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133808088.44,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":204277.57,"shift.sale.total_cash":112180.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:11:57]free response buf [00:11:57]execute_script done [00:11:57]execute_script returns [00:11:57]free content buf [00:11:57]Sock 7.Close socket [00:11:57]Sock 7.Thread stoped [00:11:58]accept exits with 9 [00:11:58]New connection [00:11:58]New thread 3066608996 created [00:11:58]Thread 3066752356 joined [00:11:58]Waiting for new connection... [00:11:58] Sock 9.Parse request [00:11:58]Sock 9.Check first char [00:11:58]Sock 9.First char is OK [00:11:58]request: POST /json_proto HTTP/1.0 [00:11:58]Method: POST [00:11:58]URL: /json_proto [00:11:58]Method is POST - this is cgi request [00:11:58]url: /json_proto [00:11:58]query_string will be loaded in cgi processing [00:11:58]execute_cgi json_proto POST (null) [00:11:58]execute_cgi path=json_proto method=POST [00:11:58]POST find Content-Length [00:11:58]Host: 172.17.41.195:8080 [00:11:58]Content-Length: 331 [00:11:58]Content-Type: application/json [00:11:58] [00:11:58]POST finish read [00:11:58]Found Content-Length = 331 [00:11:58]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:11:58]execute_script... [00:11:58]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:11:58]POST & json_proto [00:11:58]process_json_proto [00:11:58]json parsed OK: [00:11:58]protocol is kg_v1.0 [00:11:58]action value=get_value [00:11:58]process_action get_value [00:11:58]cmd_get_value [00:11:58]process_action get_value done [00:11:58]requested_data is exist [00:11:58]produce_requested_data [00:11:58]requested_item fm.sale.total is exist - process it [00:11:58]SAM_PROTO_GetFMData [00:11:58]wFMCommunicate request_size=4 [00:11:58]MH_SAM_APDU [00:11:58]CAPDU: 80 13 03 00 [00:11:58]Write to MH i2c: E2 08 00 4C 19 80 13 03 00 00 00 00 00 E4 [00:11:58]Write i2c OK [00:11:58]MH_I2C_Read... [00:11:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:58]Read from MH i2c: E2 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 FD 00 [00:11:58]MH_I2C_Read... [00:11:58]Read from MH i2c: E2 FD 00 4C 19 00 C6 04 85 04 C2 04 6E 04 04 00 E3 05 01 00 69 04 A3 00 6F 04 04 00 39 05 01 00 B1 04 05 00 8C F0 8E 1D 03 70 04 05 00 BC F4 C2 C0 02 72 04 04 00 D0 FB CB 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A4 44 B5 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 7A 06 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 OFD Sender: No OFD packet to send [00:11:58]00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 3B [00:11:58]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 E3 05 01 00 69 04 A3 00 6F 04 04 00 39 05 01 00 B1 04 05 00 8C F0 8E 1D 03 70 04 05 00 BC F4 C2 C0 02 72 04 04 00 D0 FB CB 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A4 44 B5 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 7A 06 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [00:11:58]wFMCommunicate OK [00:11:58]wFMCommunicate request_size=4 [00:11:58]MH_SAM_APDU [00:11:58]CAPDU: 80 17 00 00 [00:11:58]Write to MH i2c: E2 08 00 4D 19 80 17 00 00 00 00 00 00 E6 [00:11:58]Write i2c OK [00:11:58]MH_I2C_Read... [00:11:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:59]Read from MH i2c: E2 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 FD 00 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 FD 00 4D 19 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 21 [00:11:59]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:11:59]wFMCommunicate OK [00:11:59]wFMCommunicate request_size=4 [00:11:59]MH_SAM_APDU [00:11:59]CAPDU: 80 17 00 00 [00:11:59]Write to MH i2c: E2 08 00 4E 19 80 17 00 00 00 00 00 00 E7 [00:11:59]Write i2c OK [00:11:59]MH_I2C_Read... [00:11:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:59]Read from MH i2c: E2 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 FD 00 [00:11:59]MH_I2C_Read... [00:11:59]Read from MH i2c: E2 FD 00 4E 19 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 0E [00:11:59]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:12:00]wFMCommunicate OK [00:12:00]wFMCommunicate request_size=4 [00:12:00]MH_SAM_APDU [00:12:00]CAPDU: 80 17 00 00 [00:12:00]Write to MH i2c: E2 08 00 4F 19 80 17 00 00 00 00 00 00 E8 [00:12:00]Write i2c OK [00:12:00]MH_I2C_Read... [00:12:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:00]Read from MH i2c: E2 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: E2 FD 00 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: E2 FD 00 4F 19 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 63 [00:12: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 [00:12:00]wFMCommunicate OK [00:12:00]wFMCommunicate request_size=4 [00:12:00]MH_SAM_APDU [00:12:00]CAPDU: 80 17 00 00 [00:12:00]Write to MH i2c: E2 08 00 50 19 80 17 00 00 00 00 00 00 E9 [00:12:00]Write i2c OK [00:12:00]MH_I2C_Read... [00:12:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:12:00]Read from MH i2c: E2 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: E2 E3 00 [00:12:00]MH_I2C_Read... [00:12:00]Read from MH i2c: E2 E3 00 50 19 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C8 [00:12: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 [00:12:01]wFMCommunicate OK [00:12:01]SAM_PROTO_GetFMData done [00:12:01]requested_item fm.sale_refund.total is exist - process it [00:12:01]requested_item fm.buy.total is exist - process it [00:12:01]requested_item shift.sale.total is exist - process it [00:12:01]SAM_PROTO_GetShiftData [00:12:01]wFMCommunicate request_size=4 [00:12:01]MH_SAM_APDU [00:12:01]CAPDU: 80 13 02 00 [00:12:01]Write to MH i2c: E2 08 00 51 19 80 13 02 00 00 00 00 00 E8 [00:12:01]Write i2c OK [00:12:01]MH_I2C_Read... [00:12:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:12:01]Read from MH i2c: E2 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: E2 FD 00 [00:12:01]MH_I2C_Read... [00:12:01]Read from MH i2c: E2 FD 00 51 19 00 B0 04 AA 04 AC 04 6E 04 04 00 A8 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 ED B3 37 01 70 04 03 00 50 2C AB 72 04 03 00 9D 87 8C 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 2D 1B 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 3E C2 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 25 [00:12:01]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 A8 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 ED B3 37 01 70 04 03 00 50 2C AB 72 04 03 00 9D 87 8C 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 2D 1B 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 3E C2 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:12:02]wFMCommunicate OK [00:12:02]wFMCommunicate request_size=4 [00:12:02]MH_SAM_APDU [00:12:02]CAPDU: 80 17 00 00 [00:12:02]Write to MH i2c: E2 08 00 52 19 80 17 00 00 00 00 00 00 EB [00:12:02]Write i2c OK [00:12:02]MH_I2C_Read... [00:12:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:02]Read from MH i2c: E2 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 FD 00 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 FD 00 52 19 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 05 [00:12:02]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:02]wFMCommunicate OK [00:12:02]wFMCommunicate request_size=4 [00:12:02]MH_SAM_APDU [00:12:02]CAPDU: 80 17 00 00 [00:12:02]Write to MH i2c: E2 08 00 53 19 80 17 00 00 00 00 00 00 EC [00:12:02]Write i2c OK [00:12:02]MH_I2C_Read... [00:12:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:02]Read from MH i2c: E2 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 FD 00 [00:12:02]MH_I2C_Read... [00:12:02]Read from MH i2c: E2 FD 00 53 19 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 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 90 00 A9 [00:12:03]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:03]wFMCommunicate OK [00:12:03]wFMCommunicate request_size=4 [00:12:03]MH_SAM_APDU [00:12:03]CAPDU: 80 17 00 00 [00:12:03]Write to MH i2c: E2 08 00 54 19 80 17 00 00 00 00 00 00 ED [00:12:03]Write i2c OK [00:12:03]MH_I2C_Read... [00:12:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:03]Read from MH i2c: E2 [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: E2 FD 00 [00:12:03]MH_I2C_Read... [00:12:03]Read from MH i2c: E2 FD 00 54 19 00 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 90 00 60 [00:12:03]RAPDU: 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 OFD Sender: No OFD packet to send [00:12:04]00 F6 03 01 00 90 00 [00:12:04]wFMCommunicate OK [00:12:04]wFMCommunicate request_size=4 [00:12:04]MH_SAM_APDU [00:12:04]CAPDU: 80 17 00 00 [00:12:04]Write to MH i2c: E2 08 00 55 19 80 17 00 00 00 00 00 00 EE [00:12:04]Write i2c OK [00:12:04]MH_I2C_Read... [00:12:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:12:04]Read from MH i2c: E2 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 CD 00 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 CD 00 55 19 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D2 [00:12:04]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:12:04]wFMCommunicate OK [00:12:04]SAM_PROTO_GetShiftData done [00:12:04]requested_item shift.sale.total_cash is exist - process it [00:12:04]requested_item shift.sale_refund.total is exist - process it [00:12:04]requested_item shift.sale_refund.total_cash is exist - process it [00:12:04]requested_item shift.buy.total is exist - process it [00:12:04]requested_item shift.buy.total_cash is exist - process it [00:12:04]produce_requested_data done [00:12:04]produce_requested_data return {"fm.sale.total":133808088.44,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":204277.57,"shift.sale.total_cash":112180.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:12:04]process_action_free get_value [00:12:04]json_value_free [00:12:04]json_value_free done [00:12:04]process_json_proto returns [00:12:04]Send response to host [00:12:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133808088.44,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":204277.57,"shift.sale.total_cash":112180.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:12:04]free response buf [00:12:04]execute_script done [00:12:04]execute_script returns [00:12:04]free content buf [00:12:04]Sock 9.Close socket [00:12:04]Sock 9.Thread stoped [00:12:04]accept exits with 7 [00:12:04]New connection [00:12:04]New thread 3066752356 created [00:12:04]Thread 3066608996 joined [00:12:04]Waiting for new connection... [00:12:04] Sock 7.Parse request [00:12:04]Sock 7.Check first char [00:12:04]Sock 7.First char is OK [00:12:04]request: POST /json_proto HTTP/1.0 [00:12:04]Method: POST [00:12:04]URL: /json_proto [00:12:04]Method is POST - this is cgi request [00:12:04]url: /json_proto [00:12:04]query_string will be loaded in cgi processing [00:12:04]execute_cgi json_proto POST (null) [00:12:04]execute_cgi path=json_proto method=POST [00:12:04]POST find Content-Length [00:12:04]Host: 172.17.41.195:8080 [00:12:04]Content-Length: 247 [00:12:04]Content-Type: application/json [00:12:04] [00:12:04]POST finish read [00:12:04]Found Content-Length = 247 [00:12:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0434\u0438\u0448\u043E\u0432 \u0418." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:04]execute_script... [00:12:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0434\u0438\u0448\u043E\u0432 \u0418." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:04]POST & json_proto [00:12:04]process_json_proto [00:12:04]json parsed OK: [00:12:04]protocol is kg_v1.0 [00:12:04]action value=close_shift [00:12:04]process_action close_shift [00:12:04]cmd_close_shift [00:12:04]MH_GetDate [00:12:04]Write to MH i2c: F0 00 00 56 19 5E [00:12:04]Write i2c OK [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: F0 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: F0 09 00 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: F0 09 00 56 19 00 57 F2 47 66 FC 21 6F 64 4D [00:12:04]GetLastDocTimeStamp 1715991097 [00:12:04]current date 1715991127 [00:12:04]FM_GetShiftState [00:12:04]SAM_PROTO_GetShiftState [00:12:04]wFMCommunicate request_size=4 [00:12:04]MH_SAM_APDU [00:12:04]CAPDU: 80 13 01 00 [00:12:04]Write to MH i2c: E2 08 00 57 19 80 13 01 00 00 00 00 00 ED [00:12:04]Write i2c OK [00:12:04]MH_I2C_Read... [00:12:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:04]Read from MH i2c: E2 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 0E 00 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 0E 00 57 19 00 09 00 01 2C A2 46 66 00 00 00 00 90 00 73 [00:12:04]RAPDU: 09 00 01 2C A2 46 66 00 00 00 00 90 00 [00:12:04]wFMCommunicate OK [00:12:04]SAM_PROTO_GetShiftState done [00:12:04]FM_GetShiftState done [00:12:04]KKMCreateCloseShiftDocument [00:12:04]Load OK [00:12:04]Malloc new data [00:12:04]MH_GetDate [00:12:04]Write to MH i2c: F0 00 00 58 19 60 [00:12:04]Write i2c OK [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: F0 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: F0 09 00 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: F0 09 00 58 19 00 57 F2 47 66 FC 21 6F 64 4F [00:12:04]Malloc new data [00:12:04]Malloc new data [00:12:04]Malloc new data [00:12:04]Malloc new data [00:12:04]KKMCreateCloseShiftDocument OK [00:12:04]KKMSetCloseShiftData OK [00:12:04]ProcessDocumentItem done err = 0, tmpTLVsize=66 [00:12:04]tlvbuf is 01C80860 [00:12:04]KKMLoadAndSignCloseShiftData [00:12:04]SAM_PROTO_ProcessDocument [00:12:04]wFMCommunicate request_size=9 [00:12:04]MH_SAM_APDU [00:12:04]CAPDU: 80 15 01 00 04 05 00 42 00 [00:12:04]Write to MH i2c: E2 0C 00 59 19 80 15 01 00 04 00 05 00 42 00 00 00 40 [00:12:04]Write i2c OK [00:12:04]MH_I2C_Read... [00:12:04]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:12:04]Read from MH i2c: E2 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 03 00 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 03 00 59 19 00 90 00 E6 [00:12:04]RAPDU: 90 00 [00:12:04]wFMCommunicate OK [00:12:04]wFMCommunicate request_size=23 [00:12:04]MH_SAM_APDU [00:12:04]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:12:04]Write to MH i2c: E2 1A 00 5A 19 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 E8 [00:12:04]Write i2c OK [00:12:04]MH_I2C_Read... [00:12:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:04]Read from MH i2c: E2 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 03 00 [00:12:04]MH_I2C_Read... [00:12:04]Read from MH i2c: E2 03 00 5A 19 00 90 00 E7 [00:12:05]RAPDU: 90 00 [00:12:05]wFMCommunicate OK [00:12:05]wFMCommunicate request_size=25 [00:12:05]MH_SAM_APDU [00:12:05]CAPDU: 80 15 02 00 14 FD 03 10 00 D0 90 D0 B4 D0 B8 D1 88 D0 BE D0 B2 20 D0 98 2E [00:12:05]Write to MH i2c: E2 1C 00 5B 19 80 15 02 00 14 00 FD 03 10 00 D0 90 D0 B4 D0 B8 D1 88 D0 BE D0 B2 20 D0 98 2E 00 00 B7 [00:12:05]Write i2c OK [00:12:05]MH_I2C_Read... [00:12:05]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:05]Read from MH i2c: E2 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: E2 03 00 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: E2 03 00 5B 19 00 90 00 E8 [00:12:05]RAPDU: 90 00 [00:12:05]wFMCommunicate OK [00:12:05]wFMCommunicate request_size=13 [00:12:05]MH_SAM_APDU [00:12:05]CAPDU: 80 15 02 00 08 F4 03 04 00 57 F2 47 66 [00:12:05]Write to MH i2c: E2 10 00 5C 19 80 15 02 00 08 00 F4 03 04 00 57 F2 47 66 00 00 F6 [00:12:05]Write i2c OK [00:12:05]MH_I2C_Read... [00:12:05]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:05]Read from MH i2c: E2 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: E2 03 00 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: E2 03 00 5C 19 00 90 00 E9 [00:12:05]RAPDU: 90 00 [00:12:05]wFMCommunicate OK [00:12:05]wFMCommunicate request_size=25 [00:12:05]MH_SAM_APDU [00:12:05]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:12:05]Write to MH i2c: E2 1C 00 5D 19 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 5A [00:12:05]Write i2c OK [00:12:05]MH_I2C_Read... [00:12:05]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:12:05]Read from MH i2c: E2 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: E2 03 00 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: E2 03 00 5D 19 00 90 00 EA [00:12:05]RAPDU: 90 00 [00:12:05]wFMCommunicate OK [00:12:05]wFMCommunicate request_size=4 [00:12:05]MH_SAM_APDU [00:12:05]CAPDU: 80 15 03 00 [00:12:05]Write to MH i2c: E2 08 00 5E 19 80 15 03 00 00 00 00 00 F8 [00:12:05]Write i2c OK [00:12:05]MH_I2C_Read... [00:12:05]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:12:05]Read from MH i2c: E2 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: E2 FD 00 [00:12:05]MH_I2C_Read... [00:12:05]Read from MH i2c: E2 FD 00 5E 19 00 F3 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 B0 08 01 00 0E 04 04 00 66 01 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 AA 00 00 00 AA 04 AC 04 6E 04 04 00 A8 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 ED B3 37 01 70 04 03 00 50 2C AB 72 04 03 00 9D 87 8C 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 2D 1B 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 3E C2 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 41 [00:12:06]RAPDU: F3 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 B0 08 01 00 0E 04 04 00 66 01 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 AA 00 00 00 AA 04 AC 04 6E 04 04 00 A8 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 ED B3 37 01 70 04 03 00 50 2C AB 72 04 03 00 9D 87 8C 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 2D 1B 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 3E C2 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:12:06]wFMCommunicate OK [00:12:06]SAM_PROTO_ProcessDocument answer len = 1267 [00:12:06]SAM_PROTO_ProcessDocument remain to read = 1019 [00:12:06]wFMCommunicate request_size=4 [00:12:06]MH_SAM_APDU [00:12:06]CAPDU: 80 17 00 00 [00:12:06]Write to MH i2c: E2 08 00 5F 19 80 17 00 00 00 00 00 00 F8 [00:12:06]Write i2c OK [00:12:06]MH_I2C_Read... [00:12:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:06]Read from MH i2c: E2 [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: E2 FD 00 [00:12:06]MH_I2C_Read... [00:12:06]Read from MH i2c: E2 FD 00 5F 19 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 48 [00:12:06]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:06]wFMCommunicate OK [00:12:06]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:12:06]SAM_PROTO_ProcessDocument remain to read = 769 [00:12:06]wFMCommunicate request_size=4 [00:12:06]MH_SAM_APDU [00:12:06]CAPDU: 80 17 00 00 [00:12:06]Write to MH i2c: E2 08 00 60 19 80 17 00 00 00 00 00 00 F9 [00:12:06]Write i2c OK [00:12:06]MH_I2C_Read... [00:12:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:07]Read from MH i2c: E2 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 FD 00 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 FD 00 60 19 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 90 00 5B [00:12:07]RAPDU: 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 90 00 [00:12:07]wFMCommunicate OK [00:12:07]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:12:07]SAM_PROTO_ProcessDocument remain to read = 519 [00:12:07]wFMCommunicate request_size=4 [00:12:07]MH_SAM_APDU [00:12:07]CAPDU: 80 17 00 00 [00:12:07]Write to MH i2c: E2 08 00 61 19 80 17 00 00 00 00 00 00 FA [00:12:07]Write i2c OK [00:12:07]MH_I2C_Read... [00:12:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:07]Read from MH i2c: E2 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 FD 00 [00:12:07]MH_I2C_Read... [00:12:07]Read from MH i2c: E2 FD 00 61 19 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8B [00:12:08]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:08]wFMCommunicate OK [00:12:08]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:12:08]SAM_PROTO_ProcessDocument remain to read = 269 [00:12:08]wFMCommunicate request_size=4 [00:12:08]MH_SAM_APDU [00:12:08]CAPDU: 80 17 00 00 [00:12:08]Write to MH i2c: E2 08 00 62 19 80 17 00 00 00 00 00 00 FB [00:12:08]Write i2c OK [00:12:08]MH_I2C_Read... [00:12:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:08]Read from MH i2c: E2 [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: E2 FD 00 [00:12:08]MH_I2C_Read... [00:12:08]Read from MH i2c: E2 FD 00 62 19 00 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [00:12:08]RAPDU: 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:12:08]wFMCommunicate OK [00:12:08]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:12:08]SAM_PROTO_ProcessDocument remain to read = 19 [00:12:08]wFMCommunicate request_size=4 [00:12:08]MH_SAM_APDU [00:12:08]CAPDU: 80 17 00 00 [00:12:09]Write to MH i2c: E2 08 00 63 19 80 17 00 00 00 00 00 00 FC [00:12:09]Write i2c OK [00:12:09]MH_I2C_Read... [00:12:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 19! [00:12:09]Read from MH i2c: E2 [00:12:09]MH_I2C_Read... [00:12:09]Read from MH i2c: E2 16 00 [00:12:09]MH_I2C_Read... [00:12:09]Read from MH i2c: E2 16 00 63 19 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 B5 11 70 2C 24 65 90 00 27 [00:12:09]RAPDU: F6 03 01 00 06 F7 03 00 00 35 04 06 00 B5 11 70 2C 24 65 90 00 [00:12:09]wFMCommunicate OK [00:12:09]SAM_PROTO_ProcessDocument received (without SW) 19 bytes [00:12:09]SAM_PROTO_ProcessDocument done [00:12:09]1209 (1) - 1.0 - номер версии ФФД [00:12:09]1041 (16) - 0000000000871829 - номер ФМ [00:12:09]1040 (4) - 67760 - номер ФД [00:12:09]1038 (4) - 358 - номер смены [00:12:09]1118 (4) - 168 - количество кассовых чеков за смену [00:12:09]1111 (4) - 170 - общее количество ФД за смену [00:12:09]1194 (1196) - счетчики итогов смены [00:12:09] 1134 (4) - 168 - количество чеков со всеми признаками расчетов [00:12:09] 1129 (157) - счетчики операций «приход» [00:12:09] 1135 (4) - 168 - количество чеков по признаку расчетов [00:12:09] 1201 (4) - 204277.57 - общая итоговая сумма в чеках [00:12:09] 1136 (3) - 112180.00 - итоговая сумма в чеках наличными [00:12:09] 1138 (3) - 92097.57 - итоговая сумма в чеках безналичными [00:12:09] 1024 (123) - суммы налогов [00:12:09] 1006 (9) - суммы НДС [00:12:09] 1010 (1) - 0% - код ставки НДС [00:12:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:12:09] 1006 (12) - суммы НДС [00:12:09] 1010 (1) - 12% - код ставки НДС [00:12:09] OFD Sender: No OFD packet to send [00:12:09] 1011 (3) - 21696.45 - сумма НДС по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 0% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (12) - суммы НСП [00:12:09] 1014 (1) - 1% - код ставки НСП [00:12:09] 1015 (3) - 1807.98 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 2% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 3% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 5% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 0,50% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 1,50% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1130 (141) - счетчики операций «возврат прихода» [00:12:09] 1135 (4) - 0 - количество чеков по признаку расчетов [00:12:09] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:12:09] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:12:09] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:12:09] 1024 (117) - суммы налогов [00:12:09] 1006 (9) - суммы НДС [00:12:09] 1010 (1) - 0% - код ставки НДС [00:12:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:12:09] 1006 (9) - суммы НДС [00:12:09] 1010 (1) - 12% - код ставки НДС [00:12:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 0% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 1% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 2% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 3% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 5% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 0,50% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 1,50% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1131 (141) - счетчики операций «расход» [00:12:09] 1135 (4) - 0 - количество чеков по признаку расчетов [00:12:09] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:12:09] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:12:09] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:12:09] 1024 (117) - суммы налогов [00:12:09] 1006 (9) - суммы НДС [00:12:09] 1010 (1) - 0% - код ставки НДС [00:12:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:12:09] 1006 (9) - суммы НДС [00:12:09] 1010 (1) - 12% - код ставки НДС [00:12:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 0% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 1% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 2% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 3% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 5% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 0,50% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 1,50% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1132 (141) - счетчики операций «возврат расхода» [00:12:09] 1135 (4) - 0 - количество чеков по признаку расчетов [00:12:09] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:12:09] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:12:09] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:12:09] 1024 (117) - суммы налогов [00:12:09] 1006 (9) - суммы НДС [00:12:09] 1010 (1) - 0% - код ставки НДС [00:12:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:12:09] 1006 (9) - суммы НДС [00:12:09] 1010 (1) - 12% - код ставки НДС [00:12:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 0% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 1% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 2% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 3% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 5% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 0,50% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1007 (9) - суммы НСП [00:12:09] 1014 (1) - 1,50% - код ставки НСП [00:12:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:12:09] 1133 (588) - - счетчики коррекции - не используются [00:12:09]1077 (6) - 199086501012581 - ФПД [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1209 (04B9) [00:12:09]Malloc new data [00:12:09]Processing tag 1041 (0411) [00:12:09]Processing tag 1040 (0410) [00:12:09]Malloc new data [00:12:09]Processing tag 1038 (040E) [00:12:09]Malloc new data [00:12:09]Processing tag 1118 (045E) [00:12:09]Malloc new data [00:12:09]Processing tag 1111 (0457) [00:12:09]Malloc new data [00:12:09]Processing tag 1194 (04AA) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1134 (046E) [00:12:09]Malloc new data [00:12:09]Processing tag 1129 (0469) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1135 (046F) [00:12:09]Malloc new data [00:12:09]Processing tag 1201 (04B1) [00:12:09]Malloc new data [00:12:09]Processing tag 1136 (0470) [00:12:09]Malloc new data [00:12:09]Processing tag 1138 (0472) [00:12:09]Malloc new data [00:12:09]Processing tag 1024 (0400) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1006 (03EE) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1010 (03F2) [00:12:09]Malloc new data [00:12:09]Processing tag 1011 (03F3) [00:12:09]Malloc new data [00:12:09]SetTLVBufToDocument err=0 [00:12:09]Processing tag 1006 (03EE) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1010 (03F2) [00:12:09]Malloc new data [00:12:09]Processing tag 1011 (03F3) [00:12:09]Malloc new data [00:12:09]SetTLVBufToDocument err=0 [00:12:09]Processing tag 1007 (03EF) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1014 (03F6) [00:12:09]Malloc new data [00:12:09]Processing tag 1015 (03F7) [00:12:09]Malloc new data [00:12:09]SetTLVBufToDocument err=0 [00:12:09]Processing tag 1007 (03EF) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1014 (03F6) [00:12:09]Malloc new data [00:12:09]Processing tag 1015 (03F7) [00:12:09]Malloc new data [00:12:09]SetTLVBufToDocument err=0 [00:12:09]Processing tag 1007 (03EF) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1014 (03F6) [00:12:09]Malloc new data [00:12:09]Processing tag 1015 (03F7) [00:12:09]Malloc new data [00:12:09]SetTLVBufToDocument err=0 [00:12:09]Processing tag 1007 (03EF) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1014 (03F6) [00:12:09]Malloc new data [00:12:09]Processing tag 1015 (03F7) [00:12:09]Malloc new data [00:12:09]SetTLVBufToDocument err=0 [00:12:09]Processing tag 1007 (03EF) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1014 (03F6) [00:12:09]Malloc new data [00:12:09]Processing tag 1015 (03F7) [00:12:09]Malloc new data [00:12:09]SetTLVBufToDocument err=0 [00:12:09]Processing tag 1007 (03EF) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1014 (03F6) [00:12:09]Malloc new data [00:12:09]Processing tag 1015 (03F7) [00:12:09]Malloc new data [00:12:09]SetTLVBufToDocument err=0 [00:12:09]Processing tag 1007 (03EF) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1014 (03F6) [00:12:09]Malloc new data [00:12:09]Processing tag 1015 (03F7) [00:12:09]Malloc new data [00:12:09]SetTLVBufToDocument err=0 [00:12:09]SetTLVBufToDocument err=0 [00:12:09]SetTLVBufToDocument err=0 [00:12:09]Processing tag 1130 (046A) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1135 (046F) [00:12:09]Malloc new data [00:12:09]Processing tag 1201 (04B1) [00:12:09]Malloc new data [00:12:09]Processing tag 1136 (0470) [00:12:09]Malloc new data [00:12:09]Processing tag 1138 (0472) [00:12:09]Malloc new data [00:12:09]Processing tag 1024 (0400) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1006 (03EE) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1010 (03F2) [00:12:09]Malloc new data [00:12:09]Processing tag 1011 (03F3) [00:12:09]Malloc new data [00:12:09]SetTLVBufToDocument err=0 [00:12:09]Processing tag 1006 (03EE) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1010 (03F2) [00:12:09]Malloc new data [00:12:09]Processing tag 1011 (03F3) [00:12:09]Malloc new data [00:12:09]SetTLVBufToDocument err=0 [00:12:09]Processing tag 1007 (03EF) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1014 (03F6) [00:12:09]Malloc new data [00:12:09]Processing tag 1015 (03F7) [00:12:09]Malloc new data [00:12:09]SetTLVBufToDocument err=0 [00:12:09]Processing tag 1007 (03EF) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1014 (03F6) [00:12:09]Malloc new data [00:12:09]Processing tag 1015 (03F7) [00:12:09]Malloc new data [00:12:09]SetTLVBufToDocument err=0 [00:12:09]Processing tag 1007 (03EF) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1014 (03F6) [00:12:09]Malloc new data [00:12:09]Processing tag 1015 (03F7) [00:12:09]Malloc new data [00:12:09]SetTLVBufToDocument err=0 [00:12:09]Processing tag 1007 (03EF) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1014 (03F6) [00:12:09]Malloc new data [00:12:09]Processing tag 1015 (03F7) [00:12:09]Malloc new data [00:12:09]SetTLVBufToDocument err=0 [00:12:09]Processing tag 1007 (03EF) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1014 (03F6) [00:12:09]Malloc new data [00:12:09]Processing tag 1015 (03F7) [00:12:09]Malloc new data [00:12:09]SetTLVBufToDocument err=0 [00:12:09]Processing tag 1007 (03EF) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1014 (03F6) [00:12:09]Malloc new data [00:12:09]Processing tag 1015 (03F7) [00:12:09]Malloc new data [00:12:09]SetTLVBufToDocument err=0 [00:12:09]Processing tag 1007 (03EF) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1014 (03F6) [00:12:09]Malloc new data [00:12:09]Processing tag 1015 (03F7) [00:12:09]Malloc new data [00:12:09]SetTLVBufToDocument err=0 [00:12:09]SetTLVBufToDocument err=0 [00:12:09]SetTLVBufToDocument err=0 [00:12:09]Processing tag 1131 (046B) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1135 (046F) [00:12:09]Malloc new data [00:12:09]Processing tag 1201 (04B1) [00:12:09]Malloc new data [00:12:09]Processing tag 1136 (0470) [00:12:09]Malloc new data [00:12:09]Processing tag 1138 (0472) [00:12:09]Malloc new data [00:12:09]Processing tag 1024 (0400) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1006 (03EE) [00:12:09]Load OK [00:12:09]SetTLVBufToDocument [00:12:09]Processing tag 1010 (03F2) [00:12:09]Malloc new data [00:12:10]Processing tag 1011 (03F3) [00:12:10]Malloc new data [00:12:10]SetTLVBufToDocument err=0 [00:12:10]Processing tag 1006 (03EE) [00:12:10]Load OK [00:12:10]SetTLVBufToDocument [00:12:10]Processing tag 1010 (03F2) [00:12:10]Malloc new data [00:12:10]Processing tag 1011 (03F3) [00:12:10]Malloc new data [00:12:10]SetTLVBufToDocument err=0 [00:12:10]Processing tag 1007 (03EF) [00:12:10]Load OK [00:12:10]SetTLVBufToDocument [00:12:10]Processing tag 1014 (03F6) [00:12:10]Malloc new data [00:12:10]Processing tag 1015 (03F7) [00:12:10]Malloc new data [00:12:10]SetTLVBufToDocument err=0 [00:12:10]Processing tag 1007 (03EF) [00:12:10]Load OK [00:12:10]SetTLVBufToDocument [00:12:10]Processing tag 1014 (03F6) [00:12:10]Malloc new data [00:12:10]Processing tag 1015 (03F7) [00:12:10]Malloc new data [00:12:10]SetTLVBufToDocument err=0 [00:12:10]Processing tag 1007 (03EF) [00:12:10]Load OK [00:12:10]SetTLVBufToDocument [00:12:10]Processing tag 1014 (03F6) [00:12:10]Malloc new data [00:12:10]Processing tag 1015 (03F7) [00:12:10]Malloc new data [00:12:10]SetTLVBufToDocument err=0 [00:12:10]Processing tag 1007 (03EF) [00:12:10]Load OK [00:12:10]SetTLVBufToDocument [00:12:10]Processing tag 1014 (03F6) [00:12:10]Malloc new data [00:12:10]Processing tag 1015 (03F7) [00:12:10]Malloc new data [00:12:10]SetTLVBufToDocument err=0 [00:12:10]Processing tag 1007 (03EF) [00:12:10]Load OK [00:12:10]SetTLVBufToDocument [00:12:10]Processing tag 1014 (03F6) [00:12:10]Malloc new data [00:12:10]Processing tag 1015 (03F7) [00:12:10]Malloc new data [00:12:10]SetTLVBufToDocument err=0 [00:12:10]Processing tag 1007 (03EF) [00:12:10]Load OK [00:12:10]SetTLVBufToDocument [00:12:10]Processing tag 1014 (03F6) [00:12:10]Malloc new data [00:12:10]Processing tag 1015 (03F7) [00:12:10]Malloc new data [00:12:10]SetTLVBufToDocument err=0 [00:12:10]Processing tag 1007 (03EF) [00:12:10]Load OK [00:12:10]SetTLVBufToDocument [00:12:10]Processing tag 1014 (03F6) [00:12:10]Malloc new data [00:12:10]Processing tag 1015 (03F7) [00:12:10]Malloc new data [00:12:10]SetTLVBufToDocument err=0 [00:12:10]SetTLVBufToDocument err=0 [00:12:10]SetTLVBufToDocument err=0 [00:12:10]Processing tag 1132 (046C) [00:12:10]Load OK [00:12:10]SetTLVBufToDocument [00:12:10]Processing tag 1135 (046F) [00:12:10]Malloc new data [00:12:10]Processing tag 1201 (04B1) [00:12:10]Malloc new data [00:12:10]Processing tag 1136 (0470) [00:12:10]Malloc new data [00:12:10]Processing tag 1138 (0472) [00:12:10]Malloc new data [00:12:10]Processing tag 1024 (0400) [00:12:10]Load OK [00:12:10]SetTLVBufToDocument [00:12:10]Processing tag 1006 (03EE) [00:12:10]Load OK [00:12:10]SetTLVBufToDocument [00:12:10]Processing tag 1010 (03F2) [00:12:10]Malloc new data [00:12:10]Processing tag 1011 (03F3) [00:12:10]Malloc new data [00:12:10]SetTLVBufToDocument err=0 [00:12:10]Processing tag 1006 (03EE) [00:12:10]Load OK [00:12:10]SetTLVBufToDocument [00:12:10]Processing tag 1010 (03F2) [00:12:10]Malloc new data [00:12:10]Processing tag 1011 (03F3) [00:12:10]Malloc new data [00:12:10]SetTLVBufToDocument err=0 [00:12:10]Processing tag 1007 (03EF) [00:12:10]Load OK [00:12:10]SetTLVBufToDocument [00:12:10]Processing tag 1014 (03F6) [00:12:10]Malloc new data [00:12:10]Processing tag 1015 (03F7) [00:12:10]Malloc new data [00:12:10]SetTLVBufToDocument err=0 [00:12:10]Processing tag 1007 (03EF) [00:12:10]Load OK [00:12:10]SetTLVBufToDocument [00:12:10]Processing tag 1014 (03F6) [00:12:10]Malloc new data [00:12:10]Processing tag 1015 (03F7) [00:12:10]Malloc new data [00:12:10]SetTLVBufToDocument err=0 [00:12:10]Processing tag 1007 (03EF) [00:12:10]Load OK [00:12:10]SetTLVBufToDocument [00:12:10]Processing tag 1014 (03F6) [00:12:10]Malloc new data [00:12:10]Processing tag 1015 (03F7) [00:12:10]Malloc new data [00:12:10]SetTLVBufToDocument err=0 [00:12:10]Processing tag 1007 (03EF) [00:12:10]Load OK [00:12:10]SetTLVBufToDocument [00:12:10]Processing tag 1014 (03F6) [00:12:10]Malloc new data [00:12:10]Processing tag 1015 (03F7) [00:12:10]Malloc new data [00:12:10]SetTLVBufToDocument err=0 [00:12:10]Processing tag 1007 (03EF) [00:12:10]Load OK [00:12:10]SetTLVBufToDocument [00:12:10]Processing tag 1014 (03F6) [00:12:10]Malloc new data [00:12:10]Processing tag 1015 (03F7) [00:12:10]Malloc new data [00:12:10]SetTLVBufToDocument err=0 [00:12:10]Processing tag 1007 (03EF) [00:12:10]Load OK [00:12:10]SetTLVBufToDocument [00:12:10]Processing tag 1014 (03F6) [00:12:10]Malloc new data [00:12:10]Processing tag 1015 (03F7) [00:12:10]Malloc new data [00:12:10]SetTLVBufToDocument err=0 [00:12:10]Processing tag 1007 (03EF) [00:12:10]Load OK [00:12:10]SetTLVBufToDocument [00:12:10]Processing tag 1014 (03F6) [00:12:10]Malloc new data [00:12:10]Processing tag 1015 (03F7) [00:12:10]Malloc new data [00:12:10]SetTLVBufToDocument err=0 [00:12:10]SetTLVBufToDocument err=0 [00:12:10]SetTLVBufToDocument err=0 [00:12:10]Processing tag 1133 (046D) [00:12:10]Malloc new data [00:12:10]SetTLVBufToDocument err=0 [00:12:10]Processing tag 1077 (0435) [00:12:10]Malloc new data [00:12:10]SetTLVBufToDocument err=0 [00:12:10]Malloc new data [00:12:10]SAM_PROTO_GetFMData [00:12:10]wFMCommunicate request_size=4 [00:12:10]MH_SAM_APDU [00:12:10]CAPDU: 80 13 03 00 [00:12:10]Write to MH i2c: E2 08 00 64 19 80 13 03 00 00 00 00 00 FC [00:12:10]Write i2c OK [00:12:10]MH_I2C_Read... [00:12:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:12:10]Read from MH i2c: E2 [00:12:10]MH_I2C_Read... [00:12:10]Read from MH i2c: E2 FD 00 [00:12:10]MH_I2C_Read... [00:12:10]Read from MH i2c: E2 FD 00 64 19 00 C6 04 85 04 C2 04 6E 04 04 00 E3 05 01 00 69 04 A3 00 6F 04 04 00 39 05 01 00 B1 04 05 00 8C F0 8E 1D 03 70 04 05 00 BC F4 C2 C0 02 72 04 04 00 D0 FB CB 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A4 44 B5 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 7A 06 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 53 [00:12:10]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 E3 05 01 00 69 04 A3 00 6F 04 04 00 39 05 01 00 B1 04 05 00 8C F0 8E 1D 03 70 04 05 00 BC F4 C2 C0 02 72 04 04 00 D0 FB CB 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A4 44 B5 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 7A 06 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [00:12:11]wFMCommunicate OK [00:12:11]wFMCommunicate request_size=4 [00:12:11]MH_SAM_APDU [00:12:11]CAPDU: 80 17 00 00 [00:12:11]Write to MH i2c: E2 08 00 65 19 80 17 00 00 00 00 00 00 FE [00:12:11]Write i2c OK [00:12:11]MH_I2C_Read... [00:12:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:11]Read from MH i2c: E2 [00:12:11]MH_I2C_Read... [00:12:11]Read from MH i2c: E2 FD 00 [00:12:11]MH_I2C_Read... [00:12:11]Read from MH i2c: E2 FD 00 65 19 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 39 [00:12:11]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:12:11]wFMCommunicate OK [00:12:11]wFMCommunicate request_size=4 [00:12:11]MH_SAM_APDU [00:12:11]CAPDU: 80 17 00 00 [00:12:11]Write to MH i2c: E2 08 00 66 19 80 17 00 00 00 00 00 00 FF [00:12:11]Write i2c OK [00:12:11]MH_I2C_Read... [00:12:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:12]Read from MH i2c: E2 [00:12:12]MH_I2C_Read... [00:12:12]Read from MH i2c: E2 FD 00 [00:12:12]MH_I2C_Read... [00:12:12]Read from MH i2c: E2 FD 00 66 19 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:12:12]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:12:12]wFMCommunicate OK [00:12:12]wFMCommunicate request_size=4 [00:12:12]MH_SAM_APDU [00:12:12]CAPDU: 80 17 00 00 [00:12:12]Write to MH i2c: E2 08 00 67 19 80 17 00 00 00 00 00 00 00 [00:12:12]Write i2c OK [00:12:12]MH_I2C_Read... [00:12:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:12]Read from MH i2c: E2 [00:12:12]MH_I2C_Read... [00:12:12]Read from MH i2c: E2 FD 00 [00:12:12]MH_I2C_Read... [00:12:12]Read from MH i2c: E2 FD 00 67 19 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:12:13]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:12:13]wFMCommunicate OK [00:12:13]wFMCommunicate request_size=4 [00:12:13]MH_SAM_APDU [00:12:13]CAPDU: 80 17 00 00 [00:12:13]Write to MH i2c: E2 08 00 68 19 80 17 00 00 00 00 00 00 01 [00:12:13]Write i2c OK [00:12:13]MH_I2C_Read... [00:12:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:12:13]Read from MH i2c: E2 [00:12:13]MH_I2C_Read... [00:12:13]Read from MH i2c: E2 E3 00 [00:12:13]MH_I2C_Read... [00:12:13]Read from MH i2c: E2 E3 00 68 19 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:12:13]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:12:14]wFMCommunicate OK [00:12:14]SAM_PROTO_GetFMData done [00:12:14]Malloc new data [00:12:14]Malloc new data [00:12:14]Malloc new data [00:12:14]Malloc new data [00:12:14]KKMLoadAndSignCloseShiftData err=0 [00:12:14]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Адишов И. 18.05.2024 00:12 Смена: 358 РНМ: 0000000000091845 ЗНМ: 0300000119 СНО: Общий режим Чеков за смену: 168 ФД за смену: 170 Всего чеков: 168 ИТОГИ ПРИХОД Чеков: 168 Общий итог: 204277.57 Итого наличными: 112180.00 Итого безнал.: 92097.57 НДС 0% : 0.00 НДС 12% : 21696.45 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1807.98 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 112180.00 НС Приход: 133808088.44 НС Возвр.Прихода: 37037760.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 67760 ФМ: 0000000000871829 ФПД: 199086501012581 [00:12:14]StoreToDocumentArchive [00:12:14]shift 358 fd 67760 [00:12:14]save to /storage/0358/doc_00067760 [00:12:14]save last doc name /storage/0358/doc_00067760 to /storage/kkm_last_doc_name [00:12:14]save OK [00:12:14]Clear old archive folders... [00:12:14]Remove dir /storage/0266 [00:12:14]opendir ok [00:12:14]file . [00:12:14]file .. [00:12:14]file doc_1715991105 [00:12:14]remove file /storage/0266/doc_1715991105 [00:12:14]remove dir /storage/0266 [00:12:14]NVStorageSaveData kkm_registers [00:12:14]File name is /storage/kkm_registers [00:12:14]Write 24 bytes [00:12:14]NVStorageSaveData done [00:12:14]NVStorageSaveData kkm_registers [00:12:14]File name is /storage/kkm_registers [00:12:14]Write 24 bytes [00:12:14]NVStorageSaveData done [00:12:14]ProcessDocumentItem done err = 0, tmpTLVsize=1376 [00:12:14]tlvbuf is 01CDA3A0 [00:12:14]SAM_PROTO_ClearQueue [00:12:14]wFMCommunicate request_size=4 [00:12:14]MH_SAM_APDU [00:12:14]CAPDU: 80 09 00 00 [00:12:14]Write to MH i2c: E2 08 00 69 19 80 09 00 00 00 00 00 00 F4 [00:12:14]Write i2c OK [00:12:14]MH_I2C_Read... [00:12:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:12:14]Read from MH i2c: E2 [00:12:14]MH_I2C_Read... [00:12:14]Read from MH i2c: E2 03 00 [00:12:14]MH_I2C_Read... [00:12:14]Read from MH i2c: E2 03 00 69 19 00 90 00 F6 [00:12:14]RAPDU: 90 00 [00:12:14]wFMCommunicate OK [00:12:14]SAM_PROTO_ClearQueue done [00:12:14]KKMCreateOFDPacket [00:12:14]OFDProtocolAddRootSTLVToBuf [00:12:14]FM_MakeSignedData [00:12:14]FM_MakeSignedData [00:12:14]SAM_PROTO_SignData [00:12:14]wFMCommunicate request_size=4 [00:12:14]MH_SAM_APDU [00:12:14]CAPDU: 80 0D 01 02 [00:12:14]Write to MH i2c: E2 08 00 6A 19 80 0D 01 02 00 00 00 00 FC [00:12:14]OFD Sender: No OFD packet to send [00:12:14]Write i2c OK [00:12:14]MH_I2C_Read... [00:12:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:12:14]Read from MH i2c: E2 [00:12:14]MH_I2C_Read... [00:12:14]Read from MH i2c: E2 03 00 [00:12:14]MH_I2C_Read... [00:12:14]Read from MH i2c: E2 03 00 6A 19 00 90 00 F7 [00:12:14]RAPDU: 90 00 [00:12:14]wFMCommunicate OK [00:12:14]wFMCommunicate request_size=255 [00:12:14]MH_SAM_APDU [00:12:14]CAPDU: 80 0D 02 02 FA 05 00 60 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 10 00 D0 90 D0 B4 D0 B8 D1 88 D0 BE D0 B2 20 D0 98 2E F4 03 04 00 57 F2 47 66 0E 04 04 00 66 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 A8 00 00 00 57 04 04 00 AA 00 00 00 AA 04 D7 04 6E 04 04 00 A8 00 00 00 69 04 A4 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 ED B3 37 01 70 04 03 00 50 2C AB 72 04 03 00 9D 87 8C 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 2D 1B 21 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 [00:12:14]Write to MH i2c: E2 02 01 6B 19 80 0D 02 02 FA 00 05 00 60 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 10 00 D0 90 D0 B4 D0 B8 D1 88 D0 BE D0 B2 20 D0 98 2E F4 03 04 00 57 F2 47 66 0E 04 04 00 66 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 A8 00 00 00 57 04 04 00 AA 00 00 00 AA 04 D7 04 6E 04 04 00 A8 00 00 00 69 04 A4 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 ED B3 37 01 70 04 03 00 50 2C AB 72 04 03 00 9D 87 8C 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 2D 1B 21 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 00 00 F2 [00:12:14]Write i2c OK [00:12:14]MH_I2C_Read... [00:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:15]Read from MH i2c: E2 [00:12:15]MH_I2C_Read... [00:12:15]Read from MH i2c: E2 03 00 [00:12:15]MH_I2C_Read... [00:12:15]Read from MH i2c: E2 03 00 6B 19 00 90 00 F8 [00:12:15]RAPDU: 90 00 [00:12:15]wFMCommunicate OK [00:12:15]wFMCommunicate request_size=255 [00:12:15]MH_SAM_APDU [00:12:15]CAPDU: 80 0D 02 02 FA 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 3E C2 02 6A 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 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 [00:12:15]Write to MH i2c: E2 02 01 6C 19 80 0D 02 02 FA 00 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 3E C2 02 6A 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 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 00 00 75 [00:12:15]Write i2c OK [00:12:15]MH_I2C_Read... [00:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:16]Read from MH i2c: E2 [00:12:16]MH_I2C_Read... [00:12:16]Read from MH i2c: E2 03 00 [00:12:16]MH_I2C_Read... [00:12:16]Read from MH i2c: E2 03 00 6C 19 00 90 00 F9 [00:12:16]RAPDU: 90 00 [00:12:16]wFMCommunicate OK [00:12:16]wFMCommunicate request_size=255 [00:12:16]MH_SAM_APDU [00:12:16]CAPDU: 80 0D 02 02 FA 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 [00:12:16]Write to MH i2c: E2 02 01 6D 19 80 0D 02 02 FA 00 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 00 00 D0 [00:12:16]Write i2c OK [00:12:16]MH_I2C_Read... [00:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:16]Read from MH i2c: E2 [00:12:16]MH_I2C_Read... [00:12:16]Read from MH i2c: E2 03 00 [00:12:16]MH_I2C_Read... [00:12:16]Read from MH i2c: E2 03 00 6D 19 00 90 00 FA [00:12:16]RAPDU: 90 00 [00:12:16]wFMCommunicate OK [00:12:16]wFMCommunicate request_size=255 [00:12:16]MH_SAM_APDU [00:12:16]CAPDU: 80 0D 02 02 FA 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 [00:12:17]Write to MH i2c: E2 02 01 6E 19 80 0D 02 02 FA 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 00 00 C6 [00:12:17]Write i2c OK [00:12:17]MH_I2C_Read... [00:12:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:17]Read from MH i2c: E2 [00:12:17]MH_I2C_Read... [00:12:17]Read from MH i2c: E2 03 00 [00:12:17]MH_I2C_Read... [00:12:17]Read from MH i2c: E2 03 00 6E 19 00 90 00 FB [00:12:17]RAPDU: 90 00 [00:12:17]wFMCommunicate OK [00:12:17]wFMCommunicate request_size=255 [00:12:17]MH_SAM_APDU [00:12:17]CAPDU: 80 0D 02 02 FA EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:12:18]Write to MH i2c: E2 02 01 6F 19 80 0D 02 02 FA 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 88 [00:12:18]Write i2c OK [00:12:18]MH_I2C_Read... [00:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:18]Read from MH i2c: E2 [00:12:18]MH_I2C_Read... [00:12:18]Read from MH i2c: E2 03 00 [00:12:18]MH_I2C_Read... [00:12:18]Read from MH i2c: E2 03 00 6F 19 00 90 00 FC [00:12:18]RAPDU: 90 00 [00:12:18]wFMCommunicate OK [00:12:18]wFMCommunicate request_size=135 [00:12:18]MH_SAM_APDU [00:12:18]CAPDU: 80 0D 02 02 82 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B0 08 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 B5 11 70 2C 24 65 [00:12:18]Write to MH i2c: E2 8A 00 70 19 80 0D 02 02 82 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B0 08 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 B5 11 70 2C 24 65 00 00 E8 [00:12:18]Write i2c OK [00:12:18]MH_I2C_Read... [00:12:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:19]Read from MH i2c: E2 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 03 00 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 03 00 70 19 00 90 00 FD [00:12:19]RAPDU: 90 00 [00:12:19]wFMCommunicate OK [00:12:19]wFMCommunicate request_size=4 [00:12:19]MH_SAM_APDU [00:12:19]CAPDU: 80 0D 03 02 [00:12:19]Write to MH i2c: E2 08 00 71 19 80 0D 03 02 00 00 00 00 05 [00:12:19]Write i2c OK [00:12:19]MH_I2C_Read... [00:12:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:12:19]Read from MH i2c: E2 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 0B 00 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 0B 00 71 19 00 C8 82 2E E6 2F E0 76 32 90 00 1B [00:12:19]RAPDU: C8 82 2E E6 2F E0 76 32 90 00 [00:12:19]wFMCommunicate OK [00:12:19]SAM_PROTO_SignData done [00:12:19]FM_MakeSignedData done [00:12:19]CreateOFDProtocolMessage [00:12:19]wFMCommunicate request_size=4 [00:12:19]MH_SAM_APDU [00:12:19]CAPDU: 80 11 00 00 [00:12:19]Write to MH i2c: E2 08 00 72 19 80 11 00 00 00 00 00 00 05 [00:12:19]Write i2c OK [00:12:19]MH_I2C_Read... [00:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:19]Read from MH i2c: E2 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 17 00 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: E2 17 00 72 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5B [00:12:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:12:19]wFMCommunicate OK [00:12:19]CreateOFDProtocolMessage done [00:12:19]OFDSenderStorePacket 67760 [00:12:19]StoreOFDPacket docnum=67760 [00:12: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 74 05 00 00 88 09 6C 05 4D 24 5A 05 01 00 05 00 60 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 10 00 D0 90 D0 B4 D0 B8 D1 88 D0 BE D0 B2 20 D0 98 2E F4 03 04 00 57 F2 47 66 0E 04 04 00 66 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 A8 00 00 00 57 04 04 00 AA 00 00 00 AA 04 D7 04 6E 04 04 00 A8 00 00 00 69 04 A4 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 ED B3 37 01 70 04 03 00 50 2C AB 72 04 03 00 9D 87 8C 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 2D 1B 21 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 3E C2 02 6A 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 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 B0 08 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 B5 11 70 2C 24 65 C8 82 2E E6 2F E0 76 32 [00:12:19]CheckFolder [00:12:19]dirname=/storage/ofd_packets [00:12:19]CheckFolder done [00:12:19]ProducePacketName [00:12:19]name=ofd_packets/00067760 [00:12:19]NVStorageSaveData ofd_packets/00067760 [00:12:19]File name is /storage/ofd_packets/00067760 [00:12:19]Write 1426 bytes [00:12:19]NVStorageSaveData done [00:12:19]OFDSenderStorePacket done [00:12:19]KKMCreateOFDPacket done [00:12:19]NVStorageSaveData kkm_last_timestamp [00:12:19]File name is /storage/kkm_last_timestamp [00:12:19]Write 4 bytes [00:12:19]NVStorageSaveData done [00:12:19]ExternCall_PrintAddStr [00:12:19]wPrintStart [00:12:19]Write to MH i2c: 01 00 00 73 19 8C [00:12:19]OFD Sender: No OFD packet to send [00:12:19]Write i2c OK [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: 01 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: 01 07 00 [00:12:19]MH_I2C_Read... [00:12:19]Read from MH i2c: 01 07 00 73 19 00 00 00 00 00 FF 0F A1 [00:12:19]RasterBufferAndPrint [00:12:19]line Отчет о закрытии смены [00:12:19]line ФФД: 1.0 [00:12:19]line ИНН: 02508201610067 [00:12:19]line Кассир: Адишов И. [00:12:19]line 18.05.2024 00:12 [00:12:19]line Смена: 358 [00:12:19]line РНМ: 0000000000091845 [00:12:19]line ЗНМ: 0300000119 [00:12:19]line СНО: Общий режим [00:12:19]line Чеков за смену: 168 [00:12:19]line ФД за смену: 170 [00:12:19]line Всего чеков: 168 [00:12:19]line ИТОГИ ПРИХОД [00:12:19]line Чеков: 168 [00:12:19]line Общий итог: 204277.57 [00:12:19]line Итого наличными: 112180.00 [00:12:19]line Итого безнал.: 92097.57 [00:12:19]line НДС 0% : 0.00 [00:12:19]line НДС 12% : 21696.45 [00:12:19]line НСП 0% : 0.00 [00:12:19]line НСП 1,50% : 0.00 [00:12:19]line НСП 0,50% : 0.00 [00:12:19]line НСП 5% : 0.00 [00:12:19]line НСП 3% : 0.00 [00:12:19]line НСП 2% : 0.00 [00:12:19]line НСП 1% : 1807.98 [00:12:19]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:12:19]line Чеков: 0 [00:12:19]line Общий итог: 0.00 [00:12:19]line Итого наличными: 0.00 [00:12:19]line Итого безнал.: 0.00 [00:12:19]line НДС 0% : 0.00 [00:12:19]line НДС 12% : 0.00 [00:12:19]line НСП 0% : 0.00 [00:12:19]line НСП 1,50% : 0.00 [00:12:19]line НСП 0,50% : 0.00 [00:12:19]line НСП 5% : 0.00 [00:12:19]line НСП 3% : 0.00 [00:12:19]line НСП 2% : 0.00 [00:12:19]line НСП 1% : 0.00 [00:12:19]line ИТОГИ РАСХОД [00:12:19]line Чеков: 0 [00:12:19]line Общий итог: 0.00 [00:12:19]line Итого наличными: 0.00 [00:12:19]line Итого безнал.: 0.00 [00:12:19]line НДС 0% : 0.00 [00:12:19]line НДС 12% : 0.00 [00:12:19]line НСП 0% : 0.00 [00:12:19]line НСП 1,50% : 0.00 [00:12:19]line НСП 0,50% : 0.00 [00:12:19]line НСП 5% : 0.00 [00:12:19]line НСП 3% : 0.00 [00:12:19]line НСП 2% : 0.00 [00:12:19]line НСП 1% : 0.00 [00:12:19]line ИТОГИ ВОЗВРАТ РАСХОДА [00:12:19]line Чеков: 0 [00:12:19]line Общий итог: 0.00 [00:12:19]line Итого наличными: 0.00 [00:12:19]line Итого безнал.: 0.00 [00:12:19]line НДС 0% : 0.00 [00:12:19]line НДС 12% : 0.00 [00:12:19]line НСП 0% : 0.00 [00:12:19]line НСП 1,50% : 0.00 [00:12:19]line НСП 0,50% : 0.00 [00:12:19]line НСП 5% : 0.00 [00:12:19]line НСП 3% : 0.00 [00:12:19]line НСП 2% : 0.00 [00:12:19]line НСП 1% : 0.00 [00:12:19]line Сумма внесений: 0.00 [00:12:19]line Сумма выплат: 0.00 [00:12:19]line Нал. в кассе: 112180.00 [00:12:19]line НС Приход: 133808088.44 [00:12:19]line НС Возвр.Прихода: 37037760.00 [00:12:19]line НС Расход: 0.00 [00:12:19]line НС Возвр.Расхода: 0.00 [00:12:19]line ФД: 67760 [00:12:19]line ФМ: 0000000000871829 [00:12:19]line ФПД: 199086501012581 [00:12:19]OFD Sender: Processing packet 67760 [packets to send 35, broken 34] [00:12:19]ProducePacketName [00:12:19]name=ofd_packets/00067760 [00:12:19]OFD Sender: To server: pG, [00:12:19]CommunicateWithHost lk.salyk.kg:30040 [00:12:19]ConnectInit lk.salyk.kg [00:12:19]written 0, free lines is 4095 [00:12:19]Connected sock=10 [00:12: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 74 05 00 00 88 09 6C 05 4D 24 5A 05 01 00 05 00 60 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 10 00 D0 90 D0 B4 D0 B8 D1 88 D0 BE D0 B2 20 D0 98 2E F4 03 04 00 57 F2 47 66 0E 04 04 00 66 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 A8 00 00 00 57 04 04 00 AA 00 00 00 AA 04 D7 04 6E 04 04 00 A8 00 00 00 69 04 A4 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 ED B3 37 01 70 04 03 00 50 2C AB 72 04 03 00 9D 87 8C 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 2D 1B 21 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 3E C2 02 6A 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 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 Write to MH i2c: 03 01 01 00 00 00 01 F3 03 01 00 00 EF 03 0A 00 C4 F6 19 03 DD 01 [00:12:20]00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 Write i2c OK [00:12:20]01 MH_I2C_Read... [00:12:20]00 06 F7 03 01 Read from MH i2c: 00 01 00 [00:12:20]EF MH_I2C_Read... [00:12:20]03 0A 00 F6 03 01 00 05 F7 03 01 00 Read from MH i2c: 00 01 EF 07 03 00 0A [00:12:20]00 MH_I2C_Read... [00:12:20]F6 03 01 00 04 F7 03 01 Read from MH i2c: 00 01 00 07 EF 00 03 C4 0A 00 F6 03 01 00 03 F7 03 01 19 00 00 00 00 EF 00 03 00 0A 00 F6 03 01 00 02 F7 03 01 00 00 5E 00 0A EF 4C 03 [00:12:20]0A 00 F6 03 01 00 01 F7 03 01 RasterBufferAndPrint [00:12:20]00 line [00:12:20]00 line [00:12:20]6D line [00:12:20]04 line [00:12:20]4C line [00:12:20]02 78 written 0, free lines is 2887 [00:12:20]04 04 00 00 00 00 00 79 04 8D 00 6F 04 MH_Cut [00:12:20]04 Write to MH i2c: 00 D1 01 00 00 00 CB 00 19 00 01 B1 B6 04 [00:12:20]00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 Write i2c OK [00:12:20]01 MH_I2C_Read... [00:12:20]00 Read from MH i2c: 00 D1 F3 [00:12:20]03 MH_I2C_Read... [00:12:20]00 Read from MH i2c: 00 D1 EE 01 03 00 09 [00:12:20]00 MH_I2C_Read... [00:12:20]F2 Read from MH i2c: 03 D1 01 01 00 00 01 CB F3 19 03 00 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 B5 03 [00:12:21]01 Write to MH i2c: 00 01 01 00 F7 00 03 CC 00 19 00 E5 EF [00:12:21]03 Write i2c OK [00:12:21]09 MH_I2C_Read... [00:12:21]00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B0 08 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 B5 11 70 2C 24 65 C8 82 2E E6 2F E0 76 32 *** Cut start [00:12:21] [00:12:21]*** Purtial cut [00:12:21]*** Stage 1: CUTSNS_PIN = 1 [00:12: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 EC 65 47 00 94 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 B0 08 01 00 F4 03 04 00 3D 9A 47 66 B6 04 *** Stop cut motor [00:12:22]01 *** Cut end [00:12:22]00 00 F1 2C 0D 6B 43 8A C7 C1 [00:12:22]CommunicateWithHost err = 0 [00:12:22]CheckOFDResponse [00:12:22]1017 (14) - 77093643461234 [00:12:22]1041 (16) - 0000000000871829 [00:12:22]1040 (4) - 67760 [00:12:22]1012 (4) - 17.05.2024 17:56 [00:12:22]1206 (1) - 0 [00:12:22]OFD Sender: Remove packet 67760 [00:12:22]ProducePacketName [00:12:22]name=ofd_packets/00067760 [00:12:22]NVStorageDeleteData [00:12:22]Read from MH i2c: 01 [00:12:22]MH_I2C_Read... [00:12:22]Read from MH i2c: 01 07 00 [00:12:22]MH_I2C_Read... [00:12:22]Read from MH i2c: 01 07 00 CC 19 00 00 00 00 00 FF 0F FA [00:12:22]process_action close_shift done [00:12:22]requested_data is exist [00:12:22]produce_requested_data [00:12:22]requested_item fd.num is exist - process it [00:12:22]SAM_PROTO_GetFieldsCounters [00:12:22]wFMCommunicate request_size=4 [00:12:22]MH_SAM_APDU [00:12:22]CAPDU: 80 13 00 00 [00:12:22]Write to MH i2c: E2 08 00 CD 19 80 13 00 00 00 00 00 00 62 [00:12:22]Write i2c OK [00:12:22]MH_I2C_Read... [00:12:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:22]Read from MH i2c: E2 [00:12:22]MH_I2C_Read... [00:12:22]Read from MH i2c: E2 62 00 [00:12:22]MH_I2C_Read... [00:12:22]Read from MH i2c: E2 62 00 CD 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 B0 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [00:12: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 B0 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:12:22]wFMCommunicate OK [00:12:22]SAM_PROTO_GetFieldsCounters done [00:12:22]requested_item shift.num is exist - process it [00:12:22]requested_item shift.opened is exist - process it [00:12:22]req_shift_opened [00:12:22]FM_GetShiftState [00:12:22]SAM_PROTO_GetShiftState [00:12:22]wFMCommunicate request_size=4 [00:12:22]MH_SAM_APDU [00:12:22]CAPDU: 80 13 01 00 [00:12:22]Write to MH i2c: E2 08 00 CE 19 80 13 01 00 00 00 00 00 64 [00:12:22]Write i2c OK [00:12:22]MH_I2C_Read... [00:12:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:22]Read from MH i2c: E2 [00:12:22]MH_I2C_Read... [00:12:22]Read from MH i2c: E2 0E 00 [00:12:22]MH_I2C_Read... [00:12:22]OFD Sender: No OFD packet to send [00:12:22]Read from MH i2c: E2 0E 00 CE 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 6F [00:12:22]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:22]wFMCommunicate OK [00:12:22]SAM_PROTO_GetShiftState done [00:12:22]FM_GetShiftState done [00:12:22]req_shift_opened done [00:12:22]requested_item shift.open_date is exist - process it [00:12:22]req_shift_open_date [00:12:22]FM_GetShiftState [00:12:22]SAM_PROTO_GetShiftState [00:12:22]wFMCommunicate request_size=4 [00:12:22]MH_SAM_APDU [00:12:22]CAPDU: 80 13 01 00 [00:12:22]Write to MH i2c: E2 08 00 CF 19 80 13 01 00 00 00 00 00 65 [00:12:22]Write i2c OK [00:12:22]MH_I2C_Read... [00:12:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:22]Read from MH i2c: E2 [00:12:22]MH_I2C_Read... [00:12:22]Read from MH i2c: E2 0E 00 [00:12:22]MH_I2C_Read... [00:12:22]Read from MH i2c: E2 0E 00 CF 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 70 [00:12:22]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:12:22]wFMCommunicate OK [00:12:22]SAM_PROTO_GetShiftState done [00:12:22]FM_GetShiftState done [00:12:22]req_shift_open_date done [00:12:22]produce_requested_data done [00:12:22]produce_requested_data return {"fd.num":67760,"shift.num":358,"shift.opened":0,"shift.open_date":0} [00:12:22]process_action_free close_shift [00:12:22]json_value_free [00:12:22]json_value_free done [00:12:22]process_json_proto returns [00:12:22]Send response to host [00:12:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":67760,"shift.num":358,"shift.opened":0,"shift.open_date":0}}} [00:12:23]free response buf [00:12:23]execute_script done [00:12:23]execute_script returns [00:12:23]free content buf [00:12:23]Sock 7.Close socket [00:12:23]Sock 7.Thread stoped [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:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:57]accept exits with 9 [00:17:57]New connection [00:17:57]New thread 3066608996 created [00:17:57]Thread 3066752356 joined [00:17:57]Waiting for new connection... [00:17:57] Sock 9.Parse request [00:17:57]Sock 9.Check first char [00:17:57]Sock 9.First char is OK [00:17:57]request: POST /json_proto HTTP/1.0 [00:17:57]Method: POST [00:17:57]URL: /json_proto [00:17:57]Method is POST - this is cgi request [00:17:57]url: /json_proto [00:17:57]query_string will be loaded in cgi processing [00:17:57]execute_cgi json_proto POST (null) [00:17:57]execute_cgi path=json_proto method=POST [00:17:57]POST find Content-Length [00:17:57]Host: 172.17.41.195:8080 [00:17:57]Content-Length: 215 [00:17:57]Content-Type: application/json [00:17:57] [00:17:57]POST finish read [00:17:57]Found Content-Length = 215 [00:17:57]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:17:57]execute_script... [00:17:57]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:17:57]POST & json_proto [00:17:57]process_json_proto [00:17:57]json parsed OK: [00:17:57]protocol is kg_v1.0 [00:17:57]action value=get_value [00:17:57]process_action get_value [00:17:57]cmd_get_value [00:17:57]process_action get_value done [00:17:57]requested_data is exist [00:17:57]produce_requested_data [00:17:57]requested_item kkm.sn is exist - process it [00:17:57]requested_item kkm.ver is exist - process it [00:17:57]requested_item fm.sn is exist - process it [00:17:57]wFMCommunicate request_size=4 [00:17:57]MH_SAM_APDU [00:17:57]CAPDU: 80 11 00 00 [00:17:57]Write to MH i2c: E2 08 00 D0 19 80 11 00 00 00 00 00 00 63 [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:57]Read from MH i2c: E2 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 17 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 17 00 D0 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B9 [00:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:17:57]wFMCommunicate OK [00:17:57]requested_item fd.num is exist - process it [00:17:57]SAM_PROTO_GetFieldsCounters [00:17:57]wFMCommunicate request_size=4 [00:17:57]MH_SAM_APDU [00:17:57]CAPDU: 80 13 00 00 [00:17:57]Write to MH i2c: E2 08 00 D1 19 80 13 00 00 00 00 00 00 66 [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:57]Read from MH i2c: E2 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 62 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 62 00 D1 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 B0 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [00:17: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 B0 08 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:17:57]wFMCommunicate OK [00:17:57]SAM_PROTO_GetFieldsCounters done [00:17:57]requested_item shift.num is exist - process it [00:17:57]requested_item shift.opened is exist - process it [00:17:57]req_shift_opened [00:17:57]FM_GetShiftState [00:17:57]SAM_PROTO_GetShiftState [00:17:57]wFMCommunicate request_size=4 [00:17:57]MH_SAM_APDU [00:17:57]CAPDU: 80 13 01 00 [00:17:57]Write to MH i2c: E2 08 00 D2 19 80 13 01 00 00 00 00 00 68 [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:57]Read from MH i2c: E2 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 0E 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 0E 00 D2 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 73 [00:17:57]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:17:57]wFMCommunicate OK [00:17:57]SAM_PROTO_GetShiftState done [00:17:57]FM_GetShiftState done [00:17:57]req_shift_opened done [00:17:57]requested_item shift.open_date is exist - process it [00:17:57]req_shift_open_date [00:17:57]FM_GetShiftState [00:17:57]SAM_PROTO_GetShiftState [00:17:57]wFMCommunicate request_size=4 [00:17:57]MH_SAM_APDU [00:17:57]CAPDU: 80 13 01 00 [00:17:57]Write to MH i2c: E2 08 00 D3 19 80 13 01 00 00 00 00 00 69 [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:57]Read from MH i2c: E2 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 0E 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 0E 00 D3 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 74 [00:17:57]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:17:57]wFMCommunicate OK [00:17:57]SAM_PROTO_GetShiftState done [00:17:57]FM_GetShiftState done [00:17:57]req_shift_open_date done [00:17:57]produce_requested_data done [00:17:57]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67760,"shift.num":358,"shift.opened":0,"shift.open_date":0} [00:17:57]process_action_free get_value [00:17:57]json_value_free [00:17:57]json_value_free done [00:17:57]process_json_proto returns [00:17:57]Send response to host [00:17:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67760,"shift.num":358,"shift.opened":0,"shift.open_date":0}}} [00:17:57]free response buf [00:17:57]execute_script done [00:17:57]execute_script returns [00:17:57]free content buf [00:17:57]Sock 9.Close socket [00:17:57]Sock 9.Thread stoped [00:17:57]accept exits with 7 [00:17:57]New connection [00:17:57]New thread 3066752356 created [00:17:57]Thread 3066608996 joined [00:17:57]Waiting for new connection... [00:17:57] Sock 7.Parse request [00:17:57]Sock 7.Check first char [00:17:57]Sock 7.First char is OK [00:17:57]request: POST /json_proto HTTP/1.0 [00:17:57]Method: POST [00:17:57]URL: /json_proto [00:17:57]Method is POST - this is cgi request [00:17:57]url: /json_proto [00:17:57]query_string will be loaded in cgi processing [00:17:57]execute_cgi json_proto POST (null) [00:17:57]execute_cgi path=json_proto method=POST [00:17:57]POST find Content-Length [00:17:57]Host: 172.17.41.195:8080 [00:17:57]Content-Length: 331 [00:17:57]Content-Type: application/json [00:17:57] [00:17:57]POST finish read [00:17:57]Found Content-Length = 331 [00:17: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:17:57]execute_script... [00:17: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:17:57]POST & json_proto [00:17:57]process_json_proto [00:17:57]json parsed OK: [00:17:57]protocol is kg_v1.0 [00:17:57]action value=get_value [00:17:57]process_action get_value [00:17:57]cmd_get_value [00:17:57]process_action get_value done [00:17:57]requested_data is exist [00:17:57]produce_requested_data [00:17:57]requested_item fm.sale.total is exist - process it [00:17:57]SAM_PROTO_GetFMData [00:17:57]wFMCommunicate request_size=4 [00:17:57]MH_SAM_APDU [00:17:57]CAPDU: 80 13 03 00 [00:17:57]Write to MH i2c: E2 08 00 D4 19 80 13 03 00 00 00 00 00 6C [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:17:58]Read from MH i2c: E2 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: E2 FD 00 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: E2 FD 00 D4 19 00 C6 04 85 04 C2 04 6E 04 04 00 E3 05 01 00 69 04 A3 00 6F 04 04 00 39 05 01 00 B1 04 05 00 8C F0 8E 1D 03 70 04 05 00 BC F4 C2 C0 02 72 04 04 00 D0 FB CB 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A4 44 B5 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 7A 06 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 C3 [00:17:58]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 E3 05 01 00 69 04 A3 00 6F 04 04 00 39 05 01 00 B1 04 05 00 8C F0 8E 1D 03 70 04 05 00 BC F4 C2 C0 02 72 04 04 00 D0 FB CB 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A4 44 B5 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 7A 06 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [00:17:58]wFMCommunicate OK [00:17:58]wFMCommunicate request_size=4 [00:17:58]MH_SAM_APDU [00:17:58]CAPDU: 80 17 00 00 [00:17:58]Write to MH i2c: E2 08 00 D5 19 80 17 00 00 00 00 00 00 6E [00:17:58]Write i2c OK [00:17:58]MH_I2C_Read... [00:17:58]OFD Sender: No OFD packet to send [00:17:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:58]Read from MH i2c: E2 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: E2 FD 00 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: E2 FD 00 D5 19 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 A9 [00:17: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 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:17:58]wFMCommunicate OK [00:17:58]wFMCommunicate request_size=4 [00:17:58]MH_SAM_APDU [00:17:58]CAPDU: 80 17 00 00 [00:17:58]Write to MH i2c: E2 08 00 D6 19 80 17 00 00 00 00 00 00 6F [00:17:58]Write i2c OK [00:17:58]MH_I2C_Read... [00:17:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:58]Read from MH i2c: E2 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: E2 FD 00 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: E2 FD 00 D6 19 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 96 [00:17: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:17:58]wFMCommunicate OK [00:17:58]wFMCommunicate request_size=4 [00:17:58]MH_SAM_APDU [00:17:58]CAPDU: 80 17 00 00 [00:17:58]Write to MH i2c: E2 08 00 D7 19 80 17 00 00 00 00 00 00 70 [00:17:58]Write i2c OK [00:17:58]MH_I2C_Read... [00:17:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:58]Read from MH i2c: E2 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: E2 FD 00 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: E2 FD 00 D7 19 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EB [00:17:58]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:17:58]wFMCommunicate OK [00:17:58]wFMCommunicate request_size=4 [00:17:58]MH_SAM_APDU [00:17:58]CAPDU: 80 17 00 00 [00:17:58]Write to MH i2c: E2 08 00 D8 19 80 17 00 00 00 00 00 00 71 [00:17:58]Write i2c OK [00:17:58]MH_I2C_Read... [00:17:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:17:59]Read from MH i2c: E2 [00:17:59]MH_I2C_Read... [00:17:59]Read from MH i2c: E2 E3 00 [00:17:59]MH_I2C_Read... [00:17:59]Read from MH i2c: E2 E3 00 D8 19 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 50 [00:17: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:17:59]wFMCommunicate OK [00:17:59]SAM_PROTO_GetFMData done [00:17:59]requested_item fm.sale_refund.total is exist - process it [00:17:59]requested_item fm.buy.total is exist - process it [00:17:59]requested_item shift.sale.total is exist - process it [00:17:59]SAM_PROTO_GetShiftData [00:17:59]wFMCommunicate request_size=4 [00:17:59]MH_SAM_APDU [00:17:59]CAPDU: 80 13 02 00 [00:17:59]Write to MH i2c: E2 08 00 D9 19 80 13 02 00 00 00 00 00 70 [00:17:59]Write i2c OK [00:17:59]MH_I2C_Read... [00:17:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:17:59]Read from MH i2c: E2 [00:17:59]MH_I2C_Read... [00:17:59]Read from MH i2c: E2 FD 00 [00:17:59]MH_I2C_Read... [00:17:59]Read from MH i2c: E2 FD 00 D9 19 00 B0 04 AA 04 AC 04 6E 04 04 00 A8 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 ED B3 37 01 70 04 03 00 50 2C AB 72 04 03 00 9D 87 8C 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 2D 1B 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 3E C2 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 AD [00:17:59]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 A8 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 ED B3 37 01 70 04 03 00 50 2C AB 72 04 03 00 9D 87 8C 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 2D 1B 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 3E C2 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:17:59]wFMCommunicate OK [00:17:59]wFMCommunicate request_size=4 [00:17:59]MH_SAM_APDU [00:17:59]CAPDU: 80 17 00 00 [00:17:59]Write to MH i2c: E2 08 00 DA 19 80 17 00 00 00 00 00 00 73 [00:17:59]Write i2c OK [00:17:59]MH_I2C_Read... [00:17:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:59]Read from MH i2c: E2 [00:17:59]MH_I2C_Read... [00:17:59]Read from MH i2c: E2 FD 00 [00:17:59]MH_I2C_Read... [00:17:59]Read from MH i2c: E2 FD 00 DA 19 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8D [00:17:59]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:17:59]wFMCommunicate OK [00:17:59]wFMCommunicate request_size=4 [00:17:59]MH_SAM_APDU [00:17:59]CAPDU: 80 17 00 00 [00:17:59]Write to MH i2c: E2 08 00 DB 19 80 17 00 00 00 00 00 00 74 [00:17:59]Write i2c OK [00:17:59]MH_I2C_Read... [00:18:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:00]Read from MH i2c: E2 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: E2 FD 00 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: E2 FD 00 DB 19 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 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 90 00 31 [00:18:00]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:18:00]wFMCommunicate OK [00:18:00]wFMCommunicate request_size=4 [00:18:00]MH_SAM_APDU [00:18:00]CAPDU: 80 17 00 00 [00:18:00]Write to MH i2c: E2 08 00 DC 19 80 17 00 00 00 00 00 00 75 [00:18:00]Write i2c OK [00:18:00]MH_I2C_Read... [00:18:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:00]Read from MH i2c: E2 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: E2 FD 00 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: E2 FD 00 DC 19 00 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 90 00 E8 [00:18:00]RAPDU: 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 90 00 [00:18:00]wFMCommunicate OK [00:18:00]wFMCommunicate request_size=4 [00:18:00]MH_SAM_APDU [00:18:00]CAPDU: 80 17 00 00 [00:18:00]Write to MH i2c: E2 08 00 DD 19 80 17 00 00 00 00 00 00 76 [00:18:00]Write i2c OK [00:18:00]MH_I2C_Read... [00:18:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:18:00]Read from MH i2c: E2 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: E2 CD 00 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: E2 CD 00 DD 19 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5A [00:18:00]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:00]wFMCommunicate OK [00:18:00]SAM_PROTO_GetShiftData done [00:18:00]requested_item shift.sale.total_cash is exist - process it [00:18:00]requested_item shift.sale_refund.total is exist - process it [00:18:00]requested_item shift.sale_refund.total_cash is exist - process it [00:18:00]requested_item shift.buy.total is exist - process it [00:18:00]requested_item shift.buy.total_cash is exist - process it [00:18:00]produce_requested_data done [00:18:00]produce_requested_data return {"fm.sale.total":133808088.44,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":204277.57,"shift.sale.total_cash":112180.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:18:00]process_action_free get_value [00:18:00]json_value_free [00:18:00]json_value_free done [00:18:00]process_json_proto returns [00:18:00]Send response to host [00:18:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133808088.44,"fm.sale_refund.total":37037760.00,"fm.buy.total":0.00,"shift.sale.total":204277.57,"shift.sale.total_cash":112180.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:18:00]free response buf [00:18:00]execute_script done [00:18:00]execute_script returns [00:18:00]free content buf [00:18:00]Sock 7.Close socket [00:18:00]Sock 7.Thread stoped [00:18:00]accept exits with 9 [00:18:00]New connection [00:18:00]New thread 3066608996 created [00:18:00]Thread 3066752356 joined [00:18:00]Waiting for new connection... [00:18:00] Sock 9.Parse request [00:18:00]Sock 9.Check first char [00:18:00]Sock 9.First char is OK [00:18:00]request: POST /json_proto HTTP/1.0 [00:18:00]Method: POST [00:18:00]URL: /json_proto [00:18:00]Method is POST - this is cgi request [00:18:00]url: /json_proto [00:18:00]query_string will be loaded in cgi processing [00:18:00]execute_cgi json_proto POST (null) [00:18:00]execute_cgi path=json_proto method=POST [00:18:00]POST find Content-Length [00:18:00]Host: 172.17.41.195:8080 [00:18:00]Content-Length: 276 [00:18:00]Content-Type: application/json [00:18:00] [00:18:00]POST finish read [00:18:00]Found Content-Length = 276 [00:18:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_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" ] } } [00:18:00]execute_script... [00:18:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_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" ] } } [00:18:00]POST & json_proto [00:18:00]process_json_proto [00:18:00]json parsed OK: [00:18:00]protocol is kg_v1.0 [00:18:00]action value=open_shift [00:18:00]process_action open_shift [00:18:00]cmd_open_shift [00:18:00]MH_GetDate [00:18:00]Write to MH i2c: F0 00 00 DE 19 E6 [00:18:00]Write i2c OK [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: F0 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: F0 09 00 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: F0 09 00 DE 19 00 BB F3 47 66 FC 21 6F 64 3A [00:18:00]GetLastDocTimeStamp 1715991127 [00:18:00]current date 1715991483 [00:18:00]FM_GetShiftState [00:18:00]SAM_PROTO_GetShiftState [00:18:00]wFMCommunicate request_size=4 [00:18:00]MH_SAM_APDU [00:18:00]CAPDU: 80 13 01 00 [00:18:00]Write to MH i2c: E2 08 00 DF 19 80 13 01 00 00 00 00 00 75 [00:18:00]Write i2c OK [00:18:00]MH_I2C_Read... [00:18:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:00]Read from MH i2c: E2 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: E2 0E 00 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: E2 0E 00 DF 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 80 [00:18:00]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:18:00]wFMCommunicate OK [00:18:00]SAM_PROTO_GetShiftState done [00:18:00]FM_GetShiftState done [00:18:00]KKMCreateOpenShiftDocument [00:18:00]Load OK [00:18:00]Malloc new data [00:18:00]MH_GetDate [00:18:00]Write to MH i2c: F0 00 00 E0 19 E8 [00:18:00]Write i2c OK [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: F0 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: F0 09 00 [00:18:00]MH_I2C_Read... [00:18:01]Read from MH i2c: F0 09 00 E0 19 00 BB F3 47 66 FC 21 6F 64 3C [00:18:01]Malloc new data [00:18:01]KKMCreateOpenShiftDocument OK [00:18:01]KKMSetOpenShiftData OK [00:18:01]ProcessDocumentItem done err = 0, tmpTLVsize=189 [00:18:01]tlvbuf is 01C89670 [00:18:01]KKMLoadAndSignOpenShiftData [00:18:01]SAM_PROTO_ProcessDocument [00:18:01]wFMCommunicate request_size=9 [00:18:01]MH_SAM_APDU [00:18:01]CAPDU: 80 15 01 00 04 02 00 BD 00 [00:18:01]Write to MH i2c: E2 0C 00 E1 19 80 15 01 00 04 00 02 00 BD 00 00 00 40 [00:18:01]Write i2c OK [00:18:01]MH_I2C_Read... [00:18:01]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:18:01]Read from MH i2c: E2 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 03 00 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 03 00 E1 19 00 90 00 6E [00:18:01]RAPDU: 90 00 [00:18:01]wFMCommunicate OK [00:18:01]wFMCommunicate request_size=23 [00:18:01]MH_SAM_APDU [00:18:01]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:18:01]Write to MH i2c: E2 1A 00 E2 19 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 70 [00:18:01]Write i2c OK [00:18:01]MH_I2C_Read... [00:18:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:01]Read from MH i2c: E2 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 03 00 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 03 00 E2 19 00 90 00 6F [00:18:01]RAPDU: 90 00 [00:18:01]wFMCommunicate OK [00:18:01]wFMCommunicate request_size=35 [00:18:01]MH_SAM_APDU [00:18:01]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 [00:18:01]Write to MH i2c: E2 26 00 E3 19 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 90 [00:18:01]Write i2c OK [00:18:01]MH_I2C_Read... [00:18:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:01]Read from MH i2c: E2 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 03 00 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 03 00 E3 19 00 90 00 70 [00:18:01]RAPDU: 90 00 [00:18:01]wFMCommunicate OK [00:18:01]wFMCommunicate request_size=73 [00:18:01]MH_SAM_APDU [00:18:01]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:18:01]Write to MH i2c: E2 4C 00 E4 19 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 A1 [00:18:01]Write i2c OK [00:18:01]MH_I2C_Read... [00:18:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:01]Read from MH i2c: E2 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 03 00 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 03 00 E4 19 00 90 00 71 [00:18:01]RAPDU: 90 00 [00:18:01]wFMCommunicate OK [00:18:01]wFMCommunicate request_size=50 [00:18:01]MH_SAM_APDU [00:18:01]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:18:01]Write to MH i2c: E2 35 00 E5 19 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 F7 [00:18:01]Write i2c OK [00:18:01]MH_I2C_Read... [00:18:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:01]Read from MH i2c: E2 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 03 00 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 03 00 E5 19 00 90 00 72 [00:18:01]RAPDU: 90 00 [00:18:01]wFMCommunicate OK [00:18:01]wFMCommunicate request_size=13 [00:18:01]MH_SAM_APDU [00:18:01]CAPDU: 80 15 02 00 08 F4 03 04 00 BB F3 47 66 [00:18:01]Write to MH i2c: E2 10 00 E6 19 80 15 02 00 08 00 F4 03 04 00 BB F3 47 66 00 00 E5 [00:18:01]Write i2c OK [00:18:01]MH_I2C_Read... [00:18:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:01]Read from MH i2c: E2 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 03 00 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 03 00 E6 19 00 90 00 73 [00:18:01]RAPDU: 90 00 [00:18:01]wFMCommunicate OK [00:18:01]wFMCommunicate request_size=25 [00:18:01]MH_SAM_APDU [00:18:01]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:18:01]Write to MH i2c: E2 1C 00 E7 19 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 E4 [00:18:01]Write i2c OK [00:18:01]MH_I2C_Read... [00:18:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:18:01]Read from MH i2c: E2 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 03 00 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 03 00 E7 19 00 90 00 74 [00:18:01]RAPDU: 90 00 [00:18:01]wFMCommunicate OK [00:18:01]wFMCommunicate request_size=4 [00:18:01]MH_SAM_APDU [00:18:01]CAPDU: 80 15 03 00 [00:18:01]Write to MH i2c: E2 08 00 E8 19 80 15 03 00 00 00 00 00 82 [00:18:01]Write i2c OK [00:18:01]MH_I2C_Read... [00:18:01]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:18:01]Read from MH i2c: E2 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 38 00 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 38 00 E8 19 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 B1 08 01 00 0E 04 04 00 67 01 00 00 35 04 06 00 1D 70 CC 24 E4 CD 90 00 A1 [00:18:01]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 B1 08 01 00 0E 04 04 00 67 01 00 00 35 04 06 00 1D 70 CC 24 E4 CD 90 00 [00:18:01]wFMCommunicate OK [00:18:01]SAM_PROTO_ProcessDocument answer len = 51 [00:18:01]SAM_PROTO_ProcessDocument done [00:18:01]SetTLVBufToDocument [00:18:01]Processing tag 1209 (04B9) [00:18:01]Malloc new data [00:18:01]Processing tag 1041 (0411) [00:18:01]Processing tag 1040 (0410) [00:18:01]Malloc new data [00:18:01]Processing tag 1038 (040E) [00:18:01]Malloc new data [00:18:01]Processing tag 1077 (0435) [00:18:01]Malloc new data [00:18:01]SetTLVBufToDocument err=0 [00:18:01]KKMLoadAndSignOpenShiftData store KKM data [00:18:01]KKMLoadAndSignOpenShiftData err=0 [00:18:01]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Арстанбеков Н. Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 Место: АЗС № 91 "Партнер Нефть" 18.05.2024 00:18 Смена: 359 РНМ: 0000000000091845 ЗНМ: 0300000119 ФД: 67761 ФМ: 0000000000871829 ФПД: 32370298512589 [00:18:01]StoreToDocumentArchive [00:18:01]shift 359 fd 67761 [00:18:01]Create dir for shift 0359 [00:18:01]save to /storage/0359/doc_00067761 [00:18:01]save last doc name /storage/0359/doc_00067761 to /storage/kkm_last_doc_name [00:18:01]save OK [00:18:01]Clear old archive folders... [00:18:01]Remove dir /storage/0358 [00:18:01]opendir ok [00:18:01]file . [00:18:01]file .. [00:18:01]file doc_00067591 [00:18:01]remove file /storage/0358/doc_00067591 [00:18:01]file doc_00067592 [00:18:01]remove file /storage/0358/doc_00067592 [00:18:01]file doc_00067593 [00:18:01]remove file /storage/0358/doc_00067593 [00:18:01]file doc_00067594 [00:18:01]remove file /storage/0358/doc_00067594 [00:18:01]file doc_00067595 [00:18:01]remove file /storage/0358/doc_00067595 [00:18:01]file doc_00067596 [00:18:01]remove file /storage/0358/doc_00067596 [00:18:01]file doc_00067597 [00:18:01]remove file /storage/0358/doc_00067597 [00:18:01]file doc_00067598 [00:18:01]remove file /storage/0358/doc_00067598 [00:18:01]file doc_00067599 [00:18:01]remove file /storage/0358/doc_00067599 [00:18:01]file doc_00067600 [00:18:01]remove file /storage/0358/doc_00067600 [00:18:01]file doc_00067601 [00:18:01]remove file /storage/0358/doc_00067601 [00:18:01]file doc_00067602 [00:18:01]remove file /storage/0358/doc_00067602 [00:18:01]file doc_00067603 [00:18:01]remove file /storage/0358/doc_00067603 [00:18:01]file doc_00067604 [00:18:01]remove file /storage/0358/doc_00067604 [00:18:01]file doc_00067605 [00:18:01]remove file /storage/0358/doc_00067605 [00:18:01]file doc_00067606 [00:18:01]remove file /storage/0358/doc_00067606 [00:18:01]file doc_00067607 [00:18:01]remove file /storage/0358/doc_00067607 [00:18:01]file doc_00067608 [00:18:01]remove file /storage/0358/doc_00067608 [00:18:01]file doc_00067609 [00:18:01]remove file /storage/0358/doc_00067609 [00:18:01]file doc_00067610 [00:18:01]remove file /storage/0358/doc_00067610 [00:18:01]file doc_00067611 [00:18:01]remove file /storage/0358/doc_00067611 [00:18:01]file doc_00067612 [00:18:01]remove file /storage/0358/doc_00067612 [00:18:01]file doc_00067613 [00:18:01]remove file /storage/0358/doc_00067613 [00:18:01]file doc_00067614 [00:18:01]remove file /storage/0358/doc_00067614 [00:18:01]file doc_00067615 [00:18:01]remove file /storage/0358/doc_00067615 [00:18:01]file doc_00067616 [00:18:01]remove file /storage/0358/doc_00067616 [00:18:01]file doc_00067617 [00:18:01]remove file /storage/0358/doc_00067617 [00:18:01]file doc_00067618 [00:18:01]remove file /storage/0358/doc_00067618 [00:18:01]file doc_00067619 [00:18:01]remove file /storage/0358/doc_00067619 [00:18:01]file doc_00067620 [00:18:01]remove file /storage/0358/doc_00067620 [00:18:01]file doc_00067621 [00:18:01]remove file /storage/0358/doc_00067621 [00:18:01]file doc_00067622 [00:18:01]remove file /storage/0358/doc_00067622 [00:18:01]file doc_00067623 [00:18:01]remove file /storage/0358/doc_00067623 [00:18:01]file doc_00067624 [00:18:01]remove file /storage/0358/doc_00067624 [00:18:01]file doc_00067625 [00:18:01]remove file /storage/0358/doc_00067625 [00:18:01]file doc_00067626 [00:18:01]remove file /storage/0358/doc_00067626 [00:18:01]file doc_00067627 [00:18:01]remove file /storage/0358/doc_00067627 [00:18:01]file doc_00067628 [00:18:01]remove file /storage/0358/doc_00067628 [00:18:01]file doc_00067629 [00:18:01]remove file /storage/0358/doc_00067629 [00:18:01]file doc_00067630 [00:18:01]remove file /storage/0358/doc_00067630 [00:18:01]file doc_00067631 [00:18:01]remove file /storage/0358/doc_00067631 [00:18:01]file doc_00067632 [00:18:01]remove file /storage/0358/doc_00067632 [00:18:01]file doc_00067633 [00:18:01]remove file /storage/0358/doc_00067633 [00:18:01]file doc_00067634 [00:18:01]remove file /storage/0358/doc_00067634 [00:18:01]file doc_00067635 [00:18:01]remove file /storage/0358/doc_00067635 [00:18:01]file doc_00067636 [00:18:01]remove file /storage/0358/doc_00067636 [00:18:01]file doc_00067637 [00:18:01]remove file /storage/0358/doc_00067637 [00:18:01]file doc_00067638 [00:18:01]remove file /storage/0358/doc_00067638 [00:18:01]file doc_00067639 [00:18:01]remove file /storage/0358/doc_00067639 [00:18:01]file doc_00067640 [00:18:01]remove file /storage/0358/doc_00067640 [00:18:01]file doc_00067641 [00:18:01]remove file /storage/0358/doc_00067641 [00:18:01]file doc_00067642 [00:18:01]remove file /storage/0358/doc_00067642 [00:18:01]file doc_00067643 [00:18:01]remove file /storage/0358/doc_00067643 [00:18:01]file doc_00067644 [00:18:01]remove file /storage/0358/doc_00067644 [00:18:01]file doc_00067645 [00:18:01]remove file /storage/0358/doc_00067645 [00:18:01]file doc_00067646 [00:18:01]remove file /storage/0358/doc_00067646 [00:18:01]file doc_00067647 [00:18:01]remove file /storage/0358/doc_00067647 [00:18:01]file doc_00067648 [00:18:01]remove file /storage/0358/doc_00067648 [00:18:01]file doc_00067649 [00:18:01]remove file /storage/0358/doc_00067649 [00:18:01]file doc_00067650 [00:18:01]remove file /storage/0358/doc_00067650 [00:18:01]file doc_00067651 [00:18:01]remove file /storage/0358/doc_00067651 [00:18:01]file doc_00067652 [00:18:01]remove file /storage/0358/doc_00067652 [00:18:01]file doc_00067653 [00:18:01]remove file /storage/0358/doc_00067653 [00:18:01]file doc_00067654 [00:18:01]remove file /storage/0358/doc_00067654 [00:18:01]file doc_00067655 [00:18:01]remove file /storage/0358/doc_00067655 [00:18:01]file doc_00067656 [00:18:01]remove file /storage/0358/doc_00067656 [00:18:01]file doc_00067657 [00:18:01]remove file /storage/0358/doc_00067657 [00:18:02]file doc_00067658 [00:18:02]remove file /storage/0358/doc_00067658 [00:18:02]file doc_00067659 [00:18:02]remove file /storage/0358/doc_00067659 [00:18:02]file doc_00067660 [00:18:02]remove file /storage/0358/doc_00067660 [00:18:02]file doc_00067661 [00:18:02]remove file /storage/0358/doc_00067661 [00:18:02]file doc_00067662 [00:18:02]remove file /storage/0358/doc_00067662 [00:18:02]file doc_00067663 [00:18:02]remove file /storage/0358/doc_00067663 [00:18:02]file doc_00067664 [00:18:02]remove file /storage/0358/doc_00067664 [00:18:02]file doc_00067665 [00:18:02]remove file /storage/0358/doc_00067665 [00:18:02]file doc_00067666 [00:18:02]remove file /storage/0358/doc_00067666 [00:18:02]file doc_00067667 [00:18:02]remove file /storage/0358/doc_00067667 [00:18:02]file doc_00067668 [00:18:02]remove file /storage/0358/doc_00067668 [00:18:02]file doc_00067669 [00:18:02]remove file /storage/0358/doc_00067669 [00:18:02]file doc_00067670 [00:18:02]remove file /storage/0358/doc_00067670 [00:18:02]file doc_00067671 [00:18:02]remove file /storage/0358/doc_00067671 [00:18:02]file doc_00067672 [00:18:02]remove file /storage/0358/doc_00067672 [00:18:02]file doc_00067673 [00:18:02]remove file /storage/0358/doc_00067673 [00:18:02]file doc_00067674 [00:18:02]remove file /storage/0358/doc_00067674 [00:18:02]file doc_00067675 [00:18:02]remove file /storage/0358/doc_00067675 [00:18:02]file doc_00067676 [00:18:02]remove file /storage/0358/doc_00067676 [00:18:02]file doc_00067677 [00:18:02]remove file /storage/0358/doc_00067677 [00:18:02]file doc_00067678 [00:18:02]remove file /storage/0358/doc_00067678 [00:18:02]file doc_00067679 [00:18:02]remove file /storage/0358/doc_00067679 [00:18:02]file doc_00067680 [00:18:02]remove file /storage/0358/doc_00067680 [00:18:02]file doc_00067681 [00:18:02]remove file /storage/0358/doc_00067681 [00:18:02]file doc_00067682 [00:18:02]remove file /storage/0358/doc_00067682 [00:18:02]file doc_00067683 [00:18:02]remove file /storage/0358/doc_00067683 [00:18:02]file doc_00067684 [00:18:02]remove file /storage/0358/doc_00067684 [00:18:02]file doc_00067685 [00:18:02]remove file /storage/0358/doc_00067685 [00:18:02]file doc_00067686 [00:18:02]remove file /storage/0358/doc_00067686 [00:18:02]file doc_00067687 [00:18:02]remove file /storage/0358/doc_00067687 [00:18:02]file doc_00067688 [00:18:02]remove file /storage/0358/doc_00067688 [00:18:02]file doc_00067689 [00:18:02]remove file /storage/0358/doc_00067689 [00:18:02]file doc_00067690 [00:18:02]remove file /storage/0358/doc_00067690 [00:18:02]file doc_00067691 [00:18:02]remove file /storage/0358/doc_00067691 [00:18:02]file doc_00067692 [00:18:02]remove file /storage/0358/doc_00067692 [00:18:02]file doc_00067693 [00:18:02]remove file /storage/0358/doc_00067693 [00:18:02]file doc_00067694 [00:18:02]remove file /storage/0358/doc_00067694 [00:18:02]file doc_00067695 [00:18:02]remove file /storage/0358/doc_00067695 [00:18:02]file doc_00067696 [00:18:02]remove file /storage/0358/doc_00067696 [00:18:02]file doc_00067697 [00:18:02]remove file /storage/0358/doc_00067697 [00:18:02]file doc_00067698 [00:18:02]remove file /storage/0358/doc_00067698 [00:18:02]file doc_00067699 [00:18:02]remove file /storage/0358/doc_00067699 [00:18:02]file doc_00067700 [00:18:02]remove file /storage/0358/doc_00067700 [00:18:02]file doc_00067701 [00:18:02]remove file /storage/0358/doc_00067701 [00:18:02]file doc_00067702 [00:18:02]remove file /storage/0358/doc_00067702 [00:18:02]file doc_00067703 [00:18:02]remove file /storage/0358/doc_00067703 [00:18:02]file doc_00067704 [00:18:02]remove file /storage/0358/doc_00067704 [00:18:02]file doc_00067705 [00:18:02]remove file /storage/0358/doc_00067705 [00:18:02]file doc_00067706 [00:18:02]remove file /storage/0358/doc_00067706 [00:18:02]file doc_00067707 [00:18:02]remove file /storage/0358/doc_00067707 [00:18:02]file doc_00067708 [00:18:02]remove file /storage/0358/doc_00067708 [00:18:02]file doc_00067709 [00:18:02]remove file /storage/0358/doc_00067709 [00:18:02]file doc_00067710 [00:18:02]remove file /storage/0358/doc_00067710 [00:18:02]file doc_00067711 [00:18:02]remove file /storage/0358/doc_00067711 [00:18:02]file doc_00067712 [00:18:02]remove file /storage/0358/doc_00067712 [00:18:02]file doc_00067713 [00:18:02]remove file /storage/0358/doc_00067713 [00:18:02]file doc_00067714 [00:18:02]remove file /storage/0358/doc_00067714 [00:18:02]file doc_00067715 [00:18:02]remove file /storage/0358/doc_00067715 [00:18:02]file doc_00067716 [00:18:02]remove file /storage/0358/doc_00067716 [00:18:02]file doc_00067717 [00:18:02]remove file /storage/0358/doc_00067717 [00:18:02]file doc_00067718 [00:18:02]remove file /storage/0358/doc_00067718 [00:18:02]file doc_00067719 [00:18:02]remove file /storage/0358/doc_00067719 [00:18:02]file doc_00067720 [00:18:02]remove file /storage/0358/doc_00067720 [00:18:02]file doc_00067721 [00:18:02]remove file /storage/0358/doc_00067721 [00:18:02]file doc_00067722 [00:18:02]remove file /storage/0358/doc_00067722 [00:18:02]file doc_00067723 [00:18:02]remove file /storage/0358/doc_00067723 [00:18:02]file doc_00067724 [00:18:02]remove file /storage/0358/doc_00067724 [00:18:02]file doc_00067725 [00:18:02]remove file /storage/0358/doc_00067725 [00:18:02]file doc_00067726 [00:18:02]remove file /storage/0358/doc_00067726 [00:18:02]file doc_00067727 [00:18:02]remove file /storage/0358/doc_00067727 [00:18:02]file doc_00067728 [00:18:02]remove file /storage/0358/doc_00067728 [00:18:02]file doc_00067729 [00:18:02]remove file /storage/0358/doc_00067729 [00:18:02]file doc_00067730 [00:18:02]remove file /storage/0358/doc_00067730 [00:18:02]file doc_00067731 [00:18:02]remove file /storage/0358/doc_00067731 [00:18:02]file doc_00067732 [00:18:02]remove file /storage/0358/doc_00067732 [00:18:02]file doc_00067733 [00:18:02]remove file /storage/0358/doc_00067733 [00:18:02]file doc_00067734 [00:18:02]remove file /storage/0358/doc_00067734 [00:18:02]file doc_00067735 [00:18:02]remove file /storage/0358/doc_00067735 [00:18:02]file doc_00067736 [00:18:02]remove file /storage/0358/doc_00067736 [00:18:02]file doc_00067737 [00:18:02]remove file /storage/0358/doc_00067737 [00:18:02]file doc_00067738 [00:18:02]remove file /storage/0358/doc_00067738 [00:18:02]file doc_00067739 [00:18:02]remove file /storage/0358/doc_00067739 [00:18:02]file doc_00067740 [00:18:02]remove file /storage/0358/doc_00067740 [00:18:02]file doc_00067741 [00:18:02]remove file /storage/0358/doc_00067741 [00:18:02]file doc_00067742 [00:18:02]remove file /storage/0358/doc_00067742 [00:18:02]file doc_00067743 [00:18:02]remove file /storage/0358/doc_00067743 [00:18:02]file doc_00067744 [00:18:02]remove file /storage/0358/doc_00067744 [00:18:02]file doc_00067745 [00:18:02]remove file /storage/0358/doc_00067745 [00:18:02]file doc_00067746 [00:18:02]remove file /storage/0358/doc_00067746 [00:18:02]file doc_00067747 [00:18:02]remove file /storage/0358/doc_00067747 [00:18:02]file doc_00067748 [00:18:02]remove file /storage/0358/doc_00067748 [00:18:02]file doc_00067749 [00:18:02]remove file /storage/0358/doc_00067749 [00:18:02]file doc_00067750 [00:18:02]remove file /storage/0358/doc_00067750 [00:18:02]file doc_00067751 [00:18:02]remove file /storage/0358/doc_00067751 [00:18:02]file doc_00067752 [00:18:02]remove file /storage/0358/doc_00067752 [00:18:02]file doc_00067753 [00:18:02]remove file /storage/0358/doc_00067753 [00:18:02]file doc_00067754 [00:18:02]remove file /storage/0358/doc_00067754 [00:18:02]file doc_00067755 [00:18:02]remove file /storage/0358/doc_00067755 [00:18:02]file doc_00067756 [00:18:02]remove file /storage/0358/doc_00067756 [00:18:02]file doc_00067757 [00:18:02]remove file /storage/0358/doc_00067757 [00:18:02]file doc_00067758 [00:18:02]remove file /storage/0358/doc_00067758 [00:18:02]file doc_00067759 [00:18:02]remove file /storage/0358/doc_00067759 [00:18:02]file doc_00067760 [00:18:02]remove file /storage/0358/doc_00067760 [00:18:02]remove dir /storage/0358 [00:18:02]ProcessDocumentItem done err = 0, tmpTLVsize=240 [00:18:02]tlvbuf is 01CDFE80 [00:18:02]SAM_PROTO_ClearQueue [00:18:02]wFMCommunicate request_size=4 [00:18:02]MH_SAM_APDU [00:18:02]CAPDU: 80 09 00 00 [00:18:02]Write to MH i2c: E2 08 00 E9 19 80 09 00 00 00 00 00 00 74 [00:18:02]Write i2c OK [00:18:02]MH_I2C_Read... [00:18:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:18:02]Read from MH i2c: E2 [00:18:02]MH_I2C_Read... [00:18:02]Read from MH i2c: E2 03 00 [00:18:02]MH_I2C_Read... [00:18:02]Read from MH i2c: E2 03 00 E9 19 00 90 00 76 [00:18:02]RAPDU: 90 00 [00:18:02]wFMCommunicate OK [00:18:02]SAM_PROTO_ClearQueue done [00:18:02]KKMCreateOFDPacket [00:18:02]OFDProtocolAddRootSTLVToBuf [00:18:02]FM_MakeSignedData [00:18:02]FM_MakeSignedData [00:18:02]SAM_PROTO_SignData [00:18:02]wFMCommunicate request_size=4 [00:18:02]MH_SAM_APDU [00:18:02]CAPDU: 80 0D 01 02 [00:18:02]Write to MH i2c: E2 08 00 EA 19 80 0D 01 02 00 00 00 00 7C [00:18:02]Write i2c OK [00:18:02]MH_I2C_Read... [00:18:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:18:02]Read from MH i2c: E2 [00:18:02]MH_I2C_Read... [00:18:02]Read from MH i2c: E2 03 00 [00:18:02]MH_I2C_Read... [00:18:02]Read from MH i2c: E2 03 00 EA 19 00 90 00 77 [00:18:02]RAPDU: 90 00 [00:18:02]wFMCommunicate OK [00:18:02]wFMCommunicate request_size=249 [00:18:02]MH_SAM_APDU [00:18:02]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 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 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 BB F3 47 66 0E 04 04 00 67 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 B1 08 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 1D 70 CC 24 E4 CD [00:18:02]Write to MH i2c: E2 FC 00 EB 19 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 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 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 BB F3 47 66 0E 04 04 00 67 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 B1 08 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 1D 70 CC 24 E4 CD 00 00 12 [00:18:03]Write i2c OK [00:18:03]MH_I2C_Read... [00:18:03]OFD Sender: No OFD packet to send [00:18:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:03]Read from MH i2c: E2 [00:18:03]MH_I2C_Read... [00:18:03]Read from MH i2c: E2 03 00 [00:18:03]MH_I2C_Read... [00:18:03]Read from MH i2c: E2 03 00 EB 19 00 90 00 78 [00:18:03]RAPDU: 90 00 [00:18:03]wFMCommunicate OK [00:18:03]wFMCommunicate request_size=4 [00:18:03]MH_SAM_APDU [00:18:03]CAPDU: 80 0D 03 02 [00:18:03]Write to MH i2c: E2 08 00 EC 19 80 0D 03 02 00 00 00 00 80 [00:18:03]Write i2c OK [00:18:03]MH_I2C_Read... [00:18:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:18:03]Read from MH i2c: E2 [00:18:03]MH_I2C_Read... [00:18:03]Read from MH i2c: E2 0B 00 [00:18:03]MH_I2C_Read... [00:18:03]Read from MH i2c: E2 0B 00 EC 19 00 96 4C B2 4C 92 21 66 A0 90 00 1A [00:18:03]RAPDU: 96 4C B2 4C 92 21 66 A0 90 00 [00:18:03]wFMCommunicate OK [00:18:03]SAM_PROTO_SignData done [00:18:03]FM_MakeSignedData done [00:18:03]CreateOFDProtocolMessage [00:18:03]wFMCommunicate request_size=4 [00:18:03]MH_SAM_APDU [00:18:03]CAPDU: 80 11 00 00 [00:18:03]Write to MH i2c: E2 08 00 ED 19 80 11 00 00 00 00 00 00 80 [00:18:03]Write i2c OK [00:18:03]MH_I2C_Read... [00:18:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:03]Read from MH i2c: E2 [00:18:03]MH_I2C_Read... [00:18:03]Read from MH i2c: E2 17 00 [00:18:03]MH_I2C_Read... [00:18:03]Read from MH i2c: E2 17 00 ED 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D6 [00:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:18:03]wFMCommunicate OK [00:18:03]CreateOFDProtocolMessage done [00:18:03]OFDSenderStorePacket 67761 [00:18:03]StoreOFDPacket docnum=67761 [00:18: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 04 01 00 00 7F 9D FC 00 31 BE 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 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 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 BB F3 47 66 0E 04 04 00 67 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 B1 08 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 1D 70 CC 24 E4 CD 96 4C B2 4C 92 21 66 A0 [00:18:03]CheckFolder [00:18:03]dirname=/storage/ofd_packets [00:18:03]CheckFolder done [00:18:03]ProducePacketName [00:18:03]name=ofd_packets/00067761 [00:18:03]NVStorageSaveData ofd_packets/00067761 [00:18:03]File name is /storage/ofd_packets/00067761 [00:18:03]Write 290 bytes [00:18:03]NVStorageSaveData done [00:18:03]OFDSenderStorePacket done [00:18:03]KKMCreateOFDPacket done [00:18:03]NVStorageSaveData kkm_last_timestamp [00:18:03]File name is /storage/kkm_last_timestamp [00:18:03]Write 4 bytes [00:18:03]NVStorageSaveData done [00:18:03]ExternCall_PrintAddStr [00:18:03]wPrintStart [00:18:03]Write to MH i2c: 01 00 00 EE 19 07 [00:18:03]Write i2c OK [00:18:03]MH_I2C_Read... [00:18:03]Read from MH i2c: 01 [00:18:03]MH_I2C_Read... [00:18:03]Read from MH i2c: 01 07 00 [00:18:03]MH_I2C_Read... [00:18:03]Read from MH i2c: 01 07 00 EE 19 00 00 00 00 00 FF 0F 1C [00:18:03]RasterBufferAndPrint [00:18:03]line Отчет об открытии смены [00:18:03]line ФФД: 1.0 [00:18:03]line ИНН: 02508201610067 [00:18:03]line Кассир: Арстанбеков Н. [00:18:03]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [00:18:03]line Место: АЗС № 91 "Партнер Нефть" [00:18:03]line 18.05.2024 00:18 [00:18:03]line Смена: 359 [00:18:03]line РНМ: 0000000000091845 [00:18:03]line ЗНМ: 0300000119 [00:18:03]line ФД: 67761 [00:18:03]line ФМ: 0000000000871829 [00:18:03]line ФПД: 32370298512589 [00:18:03]written 0, free lines is 4095 [00:18:03]OFD Sender: Processing packet 67761 [packets to send 35, broken 34] [00:18:03]ProducePacketName [00:18:03]name=ofd_packets/00067761 [00:18:03]OFD Sender: To server: pG, [00:18:03]CommunicateWithHost lk.salyk.kg:30040 [00:18:03]ConnectInit lk.salyk.kg [00:18:03]Connected sock=10 [00:18: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 04 01 00 00 7F 9D FC 00 31 BE 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 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 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 BB F3 47 66 0E 04 04 00 67 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 B1 08 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 1D 70 CC 24 E4 CD 96 4C B2 4C 92 21 66 A0 [00:18:03]Write to MH i2c: 01 00 00 FF 19 18 [00:18:03]Write i2c OK [00:18:03]MH_I2C_Read... [00:18:03]Read from MH i2c: 01 [00:18:03]MH_I2C_Read... [00:18:03]Read from MH i2c: 01 07 00 [00:18:03]MH_I2C_Read... [00:18:03]Read from MH i2c: 01 07 00 FF 19 00 00 00 00 00 F7 0E 24 [00:18:03]RasterBufferAndPrint [00:18:03]line [00:18:03]line [00:18:03]line [00:18:03]line [00:18:03]line [00:18:03]written 0, free lines is 3845 [00:18:03]MH_Cut [00:18:03]Write to MH i2c: D1 01 00 06 1A 01 F2 [00:18:03]Write i2c OK [00:18:03]MH_I2C_Read... [00:18:03]Read from MH i2c: D1 [00:18:03]MH_I2C_Read... [00:18:03]Read from MH i2c: D1 01 00 [00:18:03]MH_I2C_Read... [00:18:03]Read from MH i2c: D1 01 00 06 1A 00 F1 [00:18:03]Write to MH i2c: 01 00 00 07 1A 21 [00:18:03]Write i2c OK [00:18:03]MH_I2C_Read... [00:18: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 B2 5D 47 00 3A 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 B1 08 01 00 F4 03 04 00 93 9B 47 66 B6 04 01 00 00 29 23 36 A6 2A E8 9D 41 [00:18:04]CommunicateWithHost err = 0 [00:18:04]CheckOFDResponse [00:18:04]1017 (14) - 77093643461234 [00:18:04]1041 (16) - 0000000000871829 [00:18:04]1040 (4) - 67761 [00:18:04]1012 (4) - 17.05.2024 18:01 [00:18:04]1206 (1) - 0 [00:18:04]OFD Sender: Remove packet 67761 [00:18:04]ProducePacketName [00:18:04]name=ofd_packets/00067761 [00:18:04]NVStorageDeleteData [00:18:04]*** Cut start [00:18:04]*** Purtial cut [00:18:04]*** CUTSNS_PIN = 0 [00:18:04]*** Stage 1: CUTSNS_PIN = 1 [00:18:04]OFD Sender: No OFD packet to send [00:18:06]Read from MH i2c: 01 [00:18:06]MH_I2C_Read... [00:18:06]*** Stop cut motor [00:18:06]*** Cut end [00:18:06]Read from MH i2c: 01 07 00 [00:18:06]MH_I2C_Read... [00:18:06]Read from MH i2c: 01 07 00 07 1A 00 00 00 00 00 FF 0F 36 [00:18:06]process_action open_shift done [00:18:06]requested_data is exist [00:18:06]produce_requested_data [00:18:06]requested_item fd.num is exist - process it [00:18:06]SAM_PROTO_GetFieldsCounters [00:18:06]wFMCommunicate request_size=4 [00:18:06]MH_SAM_APDU [00:18:06]CAPDU: 80 13 00 00 [00:18:06]Write to MH i2c: E2 08 00 08 1A 80 13 00 00 00 00 00 00 9E [00:18:06]Write i2c OK [00:18:06]MH_I2C_Read... [00:18:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:06]Read from MH i2c: E2 [00:18:06]MH_I2C_Read... [00:18:06]Read from MH i2c: E2 62 00 [00:18:06]MH_I2C_Read... [00:18:06]Read from MH i2c: E2 62 00 08 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 B1 08 01 00 0E 04 04 00 67 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 E6 [00:18: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 B1 08 01 00 0E 04 04 00 67 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:18:06]wFMCommunicate OK [00:18:06]SAM_PROTO_GetFieldsCounters done [00:18:06]requested_item shift.num is exist - process it [00:18:06]requested_item shift.opened is exist - process it [00:18:06]req_shift_opened [00:18:06]FM_GetShiftState [00:18:06]SAM_PROTO_GetShiftState [00:18:06]wFMCommunicate request_size=4 [00:18:06]MH_SAM_APDU [00:18:06]CAPDU: 80 13 01 00 [00:18:06]Write to MH i2c: E2 08 00 09 1A 80 13 01 00 00 00 00 00 A0 [00:18:06]Write i2c OK [00:18:06]MH_I2C_Read... [00:18:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:06]Read from MH i2c: E2 [00:18:06]MH_I2C_Read... [00:18:06]Read from MH i2c: E2 0E 00 [00:18:06]MH_I2C_Read... [00:18:06]Read from MH i2c: E2 0E 00 09 1A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 07 [00:18:06]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [00:18:06]wFMCommunicate OK [00:18:06]SAM_PROTO_GetShiftState done [00:18:06]FM_GetShiftState done [00:18:06]req_shift_opened done [00:18:06]requested_item shift.open_date is exist - process it [00:18:06]req_shift_open_date [00:18:06]req_shift_open_date done [00:18:06]produce_requested_data done [00:18:06]produce_requested_data return {"fd.num":67761,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [00:18:06]process_action_free open_shift [00:18:06]json_value_free [00:18:06]json_value_free done [00:18:06]process_json_proto returns [00:18:06]Send response to host [00:18:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":67761,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [00:18:06]free response buf [00:18:06]execute_script done [00:18:06]execute_script returns [00:18:06]free content buf [00:18:06]Sock 9.Close socket [00:18:06]Sock 9.Thread stoped [00:18:06]accept exits with 7 [00:18:06]New connection [00:18:06]New thread 3066752356 created [00:18:06]Thread 3066608996 joined [00:18:06]Waiting for new connection... [00:18:06] Sock 7.Parse request [00:18:06]Sock 7.Check first char [00:18:06]Sock 7.First char is OK [00:18:06]request: POST /json_proto HTTP/1.0 [00:18:06]Method: POST [00:18:06]URL: /json_proto [00:18:06]Method is POST - this is cgi request [00:18:06]url: /json_proto [00:18:06]query_string will be loaded in cgi processing [00:18:06]execute_cgi json_proto POST (null) [00:18:06]execute_cgi path=json_proto method=POST [00:18:06]POST find Content-Length [00:18:06]Host: 172.17.41.195:8080 [00:18:06]Content-Length: 331 [00:18:06]Content-Type: application/json [00:18:06] [00:18:06]POST finish read [00:18:06]Found Content-Length = 331 [00:18:06]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:18:06]execute_script... [00:18:06]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:18:06]POST & json_proto [00:18:06]process_json_proto [00:18:06]json parsed OK: [00:18:06]protocol is kg_v1.0 [00:18:06]action value=get_value [00:18:06]process_action get_value [00:18:06]cmd_get_value [00:18:06]process_action get_value done [00:18:06]requested_data is exist [00:18:06]produce_requested_data [00:18:06]requested_item fm.sale.total is exist - process it [00:18:06]SAM_PROTO_GetFMData [00:18:06]wFMCommunicate request_size=4 [00:18:06]MH_SAM_APDU [00:18:06]CAPDU: 80 13 03 00 [00:18:06]Write to MH i2c: E2 08 00 0A 1A 80 13 03 00 00 00 00 00 A3 [00:18:06]Write i2c OK [00:18:06]MH_I2C_Read... [00:18:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:06]Read from MH i2c: E2 [00:18:06]MH_I2C_Read... [00:18:06]Read from MH i2c: E2 FD 00 [00:18:06]MH_I2C_Read... [00:18:06]Read from MH i2c: E2 FD 00 0A 1A 00 C6 04 85 04 C2 04 6E 04 04 00 E3 05 01 00 69 04 A3 00 6F 04 04 00 39 05 01 00 B1 04 05 00 8C F0 8E 1D 03 70 04 05 00 BC F4 C2 C0 02 72 04 04 00 D0 FB CB 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A4 44 B5 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 7A 06 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 FA [00:18:06]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 E3 05 01 00 69 04 A3 00 6F 04 04 00 39 05 01 00 B1 04 05 00 8C F0 8E 1D 03 70 04 05 00 BC F4 C2 C0 02 72 04 04 00 D0 FB CB 5C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A4 44 B5 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 7A 06 0F 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9D 00 6F 04 04 00 AA 00 00 00 B1 04 04 00 00 23 C3 DC 70 04 04 00 00 23 C3 DC 72 04 00 00 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 DD 9D 71 17 EF 03 09 90 00 [00:18:06]wFMCommunicate OK [00:18:06]wFMCommunicate request_size=4 [00:18:06]MH_SAM_APDU [00:18:06]CAPDU: 80 17 00 00 [00:18:06]Write to MH i2c: E2 08 00 0B 1A 80 17 00 00 00 00 00 00 A5 [00:18:06]Write i2c OK [00:18:07]MH_I2C_Read... [00:18:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:07]Read from MH i2c: E2 [00:18:07]MH_I2C_Read... [00:18:07]Read from MH i2c: E2 FD 00 [00:18:07]MH_I2C_Read... [00:18:07]Read from MH i2c: E2 FD 00 0B 1A 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 E0 [00:18: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 70 22 F4 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:18:07]wFMCommunicate OK [00:18:07]wFMCommunicate request_size=4 [00:18:07]MH_SAM_APDU [00:18:07]CAPDU: 80 17 00 00 [00:18:07]Write to MH i2c: E2 08 00 0C 1A 80 17 00 00 00 00 00 00 A6 [00:18:07]Write i2c OK [00:18:07]MH_I2C_Read... [00:18:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:07]Read from MH i2c: E2 [00:18:07]MH_I2C_Read... [00:18:07]Read from MH i2c: E2 FD 00 [00:18:07]MH_I2C_Read... [00:18:07]Read from MH i2c: E2 FD 00 0C 1A 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 CD [00:18: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 [00:18:07]wFMCommunicate OK [00:18:07]wFMCommunicate request_size=4 [00:18:07]MH_SAM_APDU [00:18:07]CAPDU: 80 17 00 00 [00:18:07]Write to MH i2c: E2 08 00 0D 1A 80 17 00 00 00 00 00 00 A7 [00:18:07]Write i2c OK [00:18:07]MH_I2C_Read... [00:18:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:08]Read from MH i2c: E2 [00:18:08]MH_I2C_Read... [00:18:08]Read from MH i2c: E2 FD 00 [00:18:08]MH_I2C_Read... [00:18:08]Read from MH i2c: E2 FD 00 0D 1A 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 22 [00:18: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 [00:18:08]wFMCommunicate OK [00:18:08]wFMCommunicate request_size=4 [00:18:08]MH_SAM_APDU [00:18:08]CAPDU: 80 17 00 00 [00:18:08]Write to MH i2c: E2 08 00 0E 1A 80 17 00 00 00 00 00 00 A8 [00:18:08]Write i2c OK [00:18:08]MH_I2C_Read... [00:18:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:18:08]Read from MH i2c: E2 [00:18:08]MH_I2C_Read... [00:18:08]Read from MH i2c: E2 E3 00 [00:18:08]MH_I2C_Read... [00:18:08]Read from MH i2c: E2 E3 00 0E 1A 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 87 [00:18:08]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:18:08]wFMCommunicate OK [00:18:08]SAM_PROTO_GetFMData done [00:18:08]requested_item fm.sale_refund.total is exist - process it [00:18:08]requested_item fm.buy.total is exist - process it [00:18:08]requested_item shift.sale.total is exist - process it [00:18:08]SAM_PROTO_GetShiftData [00:18:08]wFMCommunicate request_size=4 [00:18:08]MH_SAM_APDU [00:18:08]CAPDU: 80 13 02 00 [00:18:08]Write to MH i2c: E2 08 00 0F 1A 80 13 02 00 00 00 00 00 A7 [00:18:08]Write i2c OK [00:18:08]MH_I2C_Read... [00:18:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:18:09]Read from MH i2c: E2 [00:18:09]MH_I2C_Read... [00:18:09]Read from MH i2c: E2 FD 00 [00:18:09]MH_I2C_Read... [00:18:09]Read from MH i2c: E2 FD 00 0F 1A 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 1A [00:18:09]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:18:09]wFMCommunicate OK [00:18:09]wFMCommunicate request_size=4 [00:18:09]MH_SAM_APDU [00:18:09]CAPDU: 80 17 00 00 [00:18:09]Write to MH i2c: E2 08 00 10 1A 80 17 00 00 00 00 00 00 AA [00:18:09]Write i2c OK [00:18:09]MH_I2C_Read... [00:18:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:09]Read from MH i2c: E2 [00:18:09]MH_I2C_Read... [00:18:09]Read from MH i2c: E2 FD 00 [00:18:09]MH_I2C_Read... [00:18:09]Read from MH i2c: E2 FD 00 10 1A 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 B2 [00:18:09]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 OFD Sender: No OFD packet to send [00:18:09]04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:09]wFMCommunicate OK [00:18:09]wFMCommunicate request_size=4 [00:18:09]MH_SAM_APDU [00:18:09]CAPDU: 80 17 00 00 [00:18:09]Write to MH i2c: E2 08 00 11 1A 80 17 00 00 00 00 00 00 AB [00:18:09]Write i2c OK [00:18:09]MH_I2C_Read... [00:18:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:09]Read from MH i2c: E2 [00:18:09]MH_I2C_Read... [00:18:09]Read from MH i2c: E2 FD 00 [00:18:09]MH_I2C_Read... [00:18:09]Read from MH i2c: E2 FD 00 11 1A 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 7D [00:18:10]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:18:10]wFMCommunicate OK [00:18:10]wFMCommunicate request_size=4 [00:18:10]MH_SAM_APDU [00:18:10]CAPDU: 80 17 00 00 [00:18:10]Write to MH i2c: E2 08 00 12 1A 80 17 00 00 00 00 00 00 AC [00:18:10]Write i2c OK [00:18:10]MH_I2C_Read... [00:18:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:10]Read from MH i2c: E2 [00:18:10]MH_I2C_Read... [00:18:10]Read from MH i2c: E2 FD 00 [00:18:10]MH_I2C_Read... [00:18:10]Read from MH i2c: E2 FD 00 12 1A 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 1E [00:18:10]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:18:10]wFMCommunicate OK [00:18:10]wFMCommunicate request_size=4 [00:18:10]MH_SAM_APDU [00:18:10]CAPDU: 80 17 00 00 [00:18:10]Write to MH i2c: E2 08 00 13 1A 80 17 00 00 00 00 00 00 AD [00:18:10]Write i2c OK [00:18:10]MH_I2C_Read... [00:18:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:18:10]Read from MH i2c: E2 [00:18:10]MH_I2C_Read... [00:18:10]Read from MH i2c: E2 BD 00 [00:18:10]MH_I2C_Read... [00:18:10]Read from MH i2c: E2 BD 00 13 1A 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 93 [00:18:10]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:18:10]wFMCommunicate OK [00:18:10]SAM_PROTO_GetShiftData done [00:18:10]requested_item shift.sale.total_cash is exist - process it [00:18:10]requested_item shift.sale_refund.total is exist - process it [00:18:10]requested_item shift.sale_refund.total_cash is exist - process it [00:18:10]requested_item shift.buy.total is exist - process it [00:18:10]requested_item shift.buy.total_cash is exist - process it [00:18:10]produce_requested_data done [00:18:10]produce_requested_data return {"fm.sale.total":133808088.44,"fm.sale_refund.total":37037760.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:18:10]process_action_free get_value [00:18:10]json_value_free [00:18:10]json_value_free done [00:18:10]process_json_proto returns [00:18:10]Send response to host [00:18:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133808088.44,"fm.sale_refund.total":37037760.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:18:10]free response buf [00:18:10]execute_script done [00:18:10]execute_script returns [00:18:10]free content buf [00:18:10]Sock 7.Close socket [00:18:10]Sock 7.Thread stoped [00:18:14]OFD Sender: No OFD packet to send [00:18:19]OFD Sender: No OFD packet to send [00:18:24]OFD Sender: No OFD packet to send [00:18:29]OFD Sender: No OFD packet to send [00:18:34]OFD Sender: No OFD packet to send [00:18:39]OFD Sender: No OFD packet to send [00:18:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:44]OFD Sender: No OFD packet to send [00:19:45]accept exits with 9 [00:19:45]New connection [00:19:45]New thread 3066608996 created [00:19:45]Thread 3066752356 joined [00:19:45]Waiting for new connection... [00:19:45] Sock 9.Parse request [00:19:45]Sock 9.Check first char [00:19:45]Sock 9.First char is OK [00:19:45]request: POST /json_proto HTTP/1.0 [00:19:45]Method: POST [00:19:45]URL: /json_proto [00:19:45]Method is POST - this is cgi request [00:19:45]url: /json_proto [00:19:45]query_string will be loaded in cgi processing [00:19:45]execute_cgi json_proto POST (null) [00:19:45]execute_cgi path=json_proto method=POST [00:19:45]POST find Content-Length [00:19:45]Host: 172.17.41.195:8080 [00:19:45]Content-Length: 1209 [00:19:45]Content-Type: application/json [00:19:45] [00:19:45]POST finish read [00:19:45]Found Content-Length = 1209 [00:19: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)507918\u000A18.05.2024 00:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:45]execute_script... [00:19: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)507918\u000A18.05.2024 00:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 15.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1120.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:45]POST & json_proto [00:19:45]process_json_proto [00:19:45]json parsed OK: [00:19:45]protocol is kg_v1.0 [00:19:45]action value=print_text [00:19:45]process_action print_text [00:19:45]cmd_print_text [00:19:45]ExternCall_PrintAddStr [00:19:45]wPrintStart [00:19:45]Write to MH i2c: 01 00 00 14 1A 2E [00:19:45]Write i2c OK [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: 01 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: 01 07 00 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: 01 07 00 14 1A 00 00 00 00 00 FF 0F 43 [00:19:45]RasterBufferAndPrint [00:19:45]line *****ТОВАРНЫЙ ЧЕК***** [00:19:45]line АЗС-91 [00:19:45]line Партнер нефть [00:19:45]line 02508201610067 [00:19:45]line Кассир : Арстанбеков Н. [00:19:45]line Счет N : (1)507918 [00:19:45]line 18.05.2024 00:02 [00:19:45]line ПРОДАЖА [00:19:45]line ТРК (МРК, ГНК): 41 [00:19:45]line Вид ГСМ : 2710194210 [00:19:45]line ДТ-К-5 [00:19:45]line 15.000 x 74.70 [00:19:45]line ИТОГ: 1120.50 [00:19:45]line Тип оплаты: Талоны: Топливная Карта [00:19:45]line 02750 [00:19:45]line ______________________ [00:19:45]line (подпись) [00:19:45]written 0, free lines is 4095 [00:19:45]Write to MH i2c: 01 00 00 28 1A 42 [00:19:45]Write i2c OK [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: 01 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: 01 07 00 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: 01 07 00 28 1A 00 00 00 00 00 0F 0E 66 [00:19:45]RasterBufferAndPrint [00:19:45]line [00:19:45]line [00:19:45]line [00:19:45]line [00:19:45]line [00:19:45]written 0, free lines is 3601 [00:19:45]MH_Cut [00:19:45]Write to MH i2c: D1 01 00 2F 1A 01 1B [00:19:45]Write i2c OK [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: D1 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: D1 01 00 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: D1 01 00 2F 1A 00 1A [00:19:45]Write to MH i2c: 01 00 00 30 1A 4A [00:19:45]Write i2c OK [00:19:45]MH_I2C_Read... [00:19:46]*** Cut start [00:19:46]*** Purtial cut [00:19:46]*** Stage 1: CUTSNS_PIN = 1 [00:19:46]Read from MH i2c: 01 [00:19:46]MH_I2C_Read... [00:19:46]*** Stop cut motor [00:19:46]*** Cut end [00:19:46]Read from MH i2c: 01 07 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: 01 07 00 30 1A 00 00 00 00 00 FF 0F 5F [00:19:46]process_action print_text done [00:19:46]requested_data is exist [00:19:46]produce_requested_data [00:19:46]requested_item fm.sn is exist - process it [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 11 00 00 [00:19:46]Write to MH i2c: E2 08 00 31 1A 80 11 00 00 00 00 00 00 C5 [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 17 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 17 00 31 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1B [00: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 [00:19:46]wFMCommunicate OK [00:19:46]requested_item fd.num is exist - process it [00:19:46]SAM_PROTO_GetFieldsCounters [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 13 00 00 [00:19:46]Write to MH i2c: E2 08 00 32 1A 80 13 00 00 00 00 00 00 C8 [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 62 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 62 00 32 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 B1 08 01 00 0E 04 04 00 67 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 10 [00:19: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 B1 08 01 00 0E 04 04 00 67 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:19:46]wFMCommunicate OK [00:19:46]SAM_PROTO_GetFieldsCounters done [00:19:46]requested_item shift.num is exist - process it [00:19:46]requested_item shift.opened is exist - process it [00:19:46]req_shift_opened [00:19:46]FM_GetShiftState [00:19:46]SAM_PROTO_GetShiftState [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 13 01 00 [00:19:46]Write to MH i2c: E2 08 00 33 1A 80 13 01 00 00 00 00 00 CA [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 0E 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 0E 00 33 1A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 31 [00:19:46]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [00:19:46]wFMCommunicate OK [00:19:46]SAM_PROTO_GetShiftState done [00:19:46]FM_GetShiftState done [00:19:46]req_shift_opened done [00:19:46]requested_item shift.open_date is exist - process it [00:19:46]req_shift_open_date [00:19:46]req_shift_open_date done [00:19:46]produce_requested_data done [00:19:46]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67761,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [00:19:46]process_action_free print_text [00:19:46]json_value_free [00:19:46]json_value_free done [00:19:46]process_json_proto returns [00:19:46]Send response to host [00:19:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67761,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [00:19:46]free response buf [00:19:46]execute_script done [00:19:46]execute_script returns [00:19:46]free content buf [00:19:46]Sock 9.Close socket [00:19:46]Sock 9.Thread stoped [00:19:49]OFD Sender: No OFD packet to send [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:09]OFD Sender: No OFD packet to send [00:20:14]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:34]OFD Sender: No OFD packet to send [00:20:39]OFD Sender: No OFD packet to send [00:20:44]OFD Sender: No OFD packet to send [00:20:49]OFD Sender: No OFD packet to send [00:20:54]OFD Sender: No OFD packet to send [00:20:59]OFD Sender: No OFD packet to send [00:21:04]OFD Sender: No OFD packet to send [00:21:09]OFD Sender: No OFD packet to send [00:21:14]OFD Sender: No OFD packet to send [00:21:19]OFD Sender: No OFD packet to send [00:21:24]OFD Sender: No OFD packet to send [00:21:29]OFD Sender: No OFD packet to send [00:21:34]OFD Sender: No OFD packet to send [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:22:14]OFD Sender: No OFD packet to send [00:22:19]OFD Sender: No OFD packet to send [00:22:24]OFD Sender: No OFD packet to send [00:22:29]OFD Sender: No OFD packet to send [00:22:30]accept exits with 7 [00:22:30]New connection [00:22:30]New thread 3066752356 created [00:22:30]Thread 3066608996 joined [00:22:30]Waiting for new connection... [00:22:30] Sock 7.Parse request [00:22:30]Sock 7.Check first char [00:22:30]Sock 7.First char is OK [00:22:30]request: POST /json_proto HTTP/1.0 [00:22:30]Method: POST [00:22:30]URL: /json_proto [00:22:30]Method is POST - this is cgi request [00:22:30]url: /json_proto [00:22:30]query_string will be loaded in cgi processing [00:22:30]execute_cgi json_proto POST (null) [00:22:30]execute_cgi path=json_proto method=POST [00:22:30]POST find Content-Length [00:22:30]Host: 172.17.41.195:8080 [00:22:30]Content-Length: 677 [00:22:30]Content-Type: application/json [00:22:30] [00:22:30]POST finish read [00:22:30]Found Content-Length = 677 [00:22:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507919", "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" ] } } [00:22:30]execute_script... [00:22: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)507919", "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" ] } } [00:22:30]POST & json_proto [00:22:30]process_json_proto [00:22:30]json parsed OK: [00:22:30]protocol is kg_v1.0 [00:22:30]action value=close_receipt [00:22:30]process_action close_receipt [00:22:30]cmd_close_receipt [00:22:30]MH_GetDate [00:22:30]Write to MH i2c: F0 00 00 34 1A 3D [00:22:30]Write i2c OK [00:22:30]MH_I2C_Read... [00:22:30]Read from MH i2c: F0 [00:22:30]MH_I2C_Read... [00:22:30]Read from MH i2c: F0 09 00 [00:22:30]MH_I2C_Read... [00:22:30]Read from MH i2c: F0 09 00 34 1A 00 C9 F4 47 66 FC 21 6F 64 A0 [00:22:30]GetLastDocTimeStamp 1715991483 [00:22:30]current date 1715991753 [00:22:30]FM_GetShiftState [00:22:30]SAM_PROTO_GetShiftState [00:22:30]wFMCommunicate request_size=4 [00:22:30]MH_SAM_APDU [00:22:30]CAPDU: 80 13 01 00 [00:22:30]Write to MH i2c: E2 08 00 35 1A 80 13 01 00 00 00 00 00 CC [00:22:30]Write i2c OK [00:22:30]MH_I2C_Read... [00:22:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:30]Read from MH i2c: E2 [00:22:30]MH_I2C_Read... [00:22:30]Read from MH i2c: E2 0E 00 [00:22:30]MH_I2C_Read... [00:22:30]Read from MH i2c: E2 0E 00 35 1A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 33 [00:22:30]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [00:22:30]wFMCommunicate OK [00:22:30]SAM_PROTO_GetShiftState done [00:22:30]FM_GetShiftState done [00:22:30]opened in 1715991483 [00:22:30]opened+sec_in_day 1716077883 [00:22:30]quantity*price = 50033 [00:22:30]sum+1 = 50034 [00:22: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 СНО: Общий режим Чек 1 18.05.2024 00:22 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67762 ФПД: 36710817101929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T002233&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67762&fm=36710817101929&tin=02508201610067®Number=0000000000091845&sum=50000 [00:22:32]StoreToDocumentArchive [00:22:32]shift 359 fd 67762 [00:22:32]save to /storage/0359/doc_00067762 [00:22:32]save last doc name /storage/0359/doc_00067762 to /storage/kkm_last_doc_name [00:22:32]save OK [00:22:32]Clear old archive folders... [00:22:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:22:32]tlvbuf is 01AF9730 [00:22:32]SAM_PROTO_ClearQueue [00:22:32]wFMCommunicate request_size=4 [00:22:32]MH_SAM_APDU [00:22:32]CAPDU: 80 09 00 00 [00:22:32]Write to MH i2c: E2 08 00 42 1A 80 09 00 00 00 00 00 00 CE [00:22:32]Write i2c OK [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: E2 [00:22:32]MH_I2C_Read... [00:22:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:22:32]Read from MH i2c: E2 03 00 [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: E2 03 00 42 1A 00 90 00 D0 [00:22:32]RAPDU: 90 00 [00:22:32]wFMCommunicate OK [00:22:32]SAM_PROTO_ClearQueue done [00:22:32]KKMCreateOFDPacket [00:22:32]OFDProtocolAddRootSTLVToBuf [00:22:32]FM_MakeSignedData [00:22:32]FM_MakeSignedData [00:22:32]SAM_PROTO_SignData [00:22:32]wFMCommunicate request_size=4 [00:22:32]MH_SAM_APDU [00:22:32]CAPDU: 80 0D 01 02 [00:22:32]Write to MH i2c: E2 08 00 43 1A 80 0D 01 02 00 00 00 00 D6 [00:22:32]Write i2c OK [00:22:32]MH_I2C_Read... [00:22:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:22:32]Read from MH i2c: E2 [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: E2 03 00 [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: E2 03 00 43 1A 00 90 00 D1 [00:22:32]RAPDU: 90 00 [00:22:32]wFMCommunicate OK [00:22:32]wFMCommunicate request_size=255 [00:22:32]MH_SAM_APDU [00:22: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 01 00 00 00 F4 03 04 00 C9 F4 47 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 21 [00:22:32]Write to MH i2c: E2 02 01 44 1A 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 C9 F4 47 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 21 00 00 10 [00:22:32]Write i2c OK [00:22:32]MH_I2C_Read... [00:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:32]Read from MH i2c: E2 [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: E2 03 00 [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: E2 03 00 44 1A 00 90 00 D2 [00:22:32]RAPDU: 90 00 [00:22:32]wFMCommunicate OK [00:22:32]wFMCommunicate request_size=10 [00:22:32]MH_SAM_APDU [00:22:32]CAPDU: 80 0D 02 02 05 63 67 36 78 69 [00:22:32]Write to MH i2c: E2 0D 00 45 1A 80 0D 02 02 05 00 63 67 36 78 69 00 00 C4 [00:22:32]Write i2c OK [00:22:32]MH_I2C_Read... [00:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:32]Read from MH i2c: E2 [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: E2 03 00 [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: E2 03 00 45 1A 00 90 00 D3 [00:22:32]RAPDU: 90 00 [00:22:32]wFMCommunicate OK [00:22:32]wFMCommunicate request_size=4 [00:22:32]MH_SAM_APDU [00:22:32]CAPDU: 80 0D 03 02 [00:22:32]Write to MH i2c: E2 08 00 46 1A 80 0D 03 02 00 00 00 00 DB [00:22:32]Write i2c OK [00:22:32]MH_I2C_Read... [00:22:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:22:32]Read from MH i2c: E2 [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: E2 0B 00 [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: E2 0B 00 46 1A 00 4E C7 83 15 A5 EA DD EE 90 00 E3 [00:22:32]RAPDU: 4E C7 83 15 A5 EA DD EE 90 00 [00:22:32]wFMCommunicate OK [00:22:32]SAM_PROTO_SignData done [00:22:32]FM_MakeSignedData done [00:22:32]CreateOFDProtocolMessage [00:22:32]wFMCommunicate request_size=4 [00:22:32]MH_SAM_APDU [00:22:32]CAPDU: 80 11 00 00 [00:22:32]Write to MH i2c: E2 08 00 47 1A 80 11 00 00 00 00 00 00 DB [00:22:32]Write i2c OK [00:22:32]MH_I2C_Read... [00:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:32]Read from MH i2c: E2 [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: E2 17 00 [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: E2 17 00 47 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 31 [00:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:22:32]wFMCommunicate OK [00:22:32]CreateOFDProtocolMessage done [00:22:32]OFDSenderStorePacket 67762 [00:22:32]StoreOFDPacket docnum=67762 [00:22: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 F4 7B 07 01 49 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 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 C9 F4 47 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 21 63 67 36 78 69 4E C7 83 15 A5 EA DD EE [00:22:32]CheckFolder [00:22:32]dirname=/storage/ofd_packets [00:22:32]CheckFolder done [00:22:32]ProducePacketName [00:22:32]name=ofd_packets/00067762 [00:22:32]NVStorageSaveData ofd_packets/00067762 [00:22:32]File name is /storage/ofd_packets/00067762 [00:22:32]Write 301 bytes [00:22:32]NVStorageSaveData done [00:22:32]OFDSenderStorePacket done [00:22:32]KKMCreateOFDPacket done [00:22:32]NVStorageSaveData kkm_last_timestamp [00:22:32]File name is /storage/kkm_last_timestamp [00:22:32]Write 4 bytes [00:22:32]NVStorageSaveData done [00:22:32]ExternCall_PrintAddStr [00:22:32]wPrintStart [00:22:32]Write to MH i2c: 01 00 00 48 1A 62 [00:22:32]Write i2c OK [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: 01 [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: 01 07 00 [00:22:32]MH_I2C_Read... [00:22:32]Read from MH i2c: 01 07 00 48 1A 00 00 00 00 00 FF 0F 77 [00:22:32]RasterBufferAndPrint [00:22:32]line Счет N : (1)507919 [00:22:32]line ИНН: 02508201610067 [00:22:32]line Контрольно-Кассовый Чек [00:22:32]line ПРОДАЖА [00:22:32]line ТРК (МРК, ГНК) : 33 [00:22:32]line Товар: 2710124130 [00:22:32]line Аи-92-К-5 [00:22:32]line 7.490 * 66.80 [00:22:32]line = 500.33 [00:22:32]line НДС 12% НСП 1% [00:22:32]line > о реализуемом товаре [00:22:32]line ОКРУГЛЕНИЕ: -0.33 [00:22:32]line ИТОГО: 500.00 [00:22:32]line Внесено: 500.00 [00:22:32]line СДАЧА: 0.00 [00:22:32]line НСП 1% : 4.43 [00:22:32]line НДС 12% : 53.13 [00:22:32]line Наличными: 500.00 [00:22:32]line Безнал.: 0.00 [00:22:32]line Место: АЗС № 91 "Партнер Нефть" [00:22:32]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [00:22:32]line СНО: Общий режим [00:22:32]line Чек 1 18.05.2024 00:22 [00:22:32]line Смена: 359 ФФД: 1.0 [00:22:32]line ЗНМ: 0300000119 [00:22:32]line РНМ: 0000000000091845 [00:22:32]line Версия ККМ: 001 [00:22:32]line ФМ: 0000000000871829 [00:22:32]line ФД: 67762 [00:22:32]line ФПД: 36710817101929 [00:22:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T002233&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67762&fm=36710817101929&tin=02508201610067®Number=0000000000091845&sum=50000 [00:22:32]OFD Sender: Processing packet 67762 [packets to send 35, broken 34] [00:22:32]ProducePacketName [00:22:32]name=ofd_packets/00067762 [00:22:32]OFD Sender: To server: pG, [00:22:32]CommunicateWithHost lk.salyk.kg:30040 [00:22:32]ConnectInit lk.salyk.kg [00:22:32]written 0, free lines is 4095 [00:22:33]Connected sock=10 [00: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 0F 01 00 00 F4 7B 07 01 49 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 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 C9 F4 47 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 21 63 67 36 78 69 4E C7 83 15 A5 EA DD EE [00: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 DB D5 47 00 AD 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 B2 08 01 00 F4 03 04 00 A0 9C 47 66 B6 04 01 00 00 BE D2 DF 13 C1 3F F4 33 [00:22:33]CommunicateWithHost err = 0 [00:22:33]CheckOFDResponse [00:22:33]1017 (14) - 77093643461234 [00:22:33]1041 (16) - 0000000000871829 [00:22:33]1040 (4) - 67762 [00:22:33]1012 (4) - 17.05.2024 18:06 [00:22:33]1206 (1) - 0 [00:22:33]OFD Sender: Remove packet 67762 [00:22:33]ProducePacketName [00:22:33]name=ofd_packets/00067762 [00:22:33]NVStorageDeleteData [00:22:33]Write to MH i2c: 01 00 00 72 1A 8C [00:22:33]Write i2c OK [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: 01 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: 01 07 00 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: 01 07 00 72 1A 00 00 00 00 00 C2 0C 61 [00:22:33]RasterBufferAndPrint [00:22:33]line [00:22:33]line [00:22:33]line [00:22:33]line [00:22:33]line [00:22:33]written 0, free lines is 3272 [00:22:33]MH_Cut [00:22:33]Write to MH i2c: D1 01 00 79 1A 01 65 [00:22:33]Write i2c OK [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: D1 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: D1 01 00 [00:22:33]MH_I2C_Read... [00:22:33]Read from MH i2c: D1 01 00 79 1A 00 64 [00:22:33]Write to MH i2c: 01 00 00 7A 1A 94 [00:22:33]Write i2c OK [00:22:33]MH_I2C_Read... [00:22:33]OFD Sender: No OFD packet to send [00:22:34]*** Cut start [00:22:34]*** Purtial cut [00:22:34]*** CUTSNS_PIN = 0 [00:22:34]*** Stage 1: CUTSNS_PIN = 1 [00:22:36]Read from MH i2c: 01 [00:22:36]MH_I2C_Read... [00:22:36]*** Stop cut motor [00:22:36]*** Cut end [00:22:36]Read from MH i2c: 01 07 00 [00:22:36]MH_I2C_Read... [00:22:36]Read from MH i2c: 01 07 00 7A 1A 00 00 00 00 00 FF 0F A9 [00:22:36]process_action close_receipt done [00:22:36]requested_data is exist [00:22:36]produce_requested_data [00:22:36]requested_item fm.sn is exist - process it [00:22:36]wFMCommunicate request_size=4 [00:22:36]MH_SAM_APDU [00:22:36]CAPDU: 80 11 00 00 [00:22:36]Write to MH i2c: E2 08 00 7B 1A 80 11 00 00 00 00 00 00 0F [00:22:36]Write i2c OK [00:22:36]MH_I2C_Read... [00:22:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:36]Read from MH i2c: E2 [00:22:36]MH_I2C_Read... [00:22:36]Read from MH i2c: E2 17 00 [00:22:36]MH_I2C_Read... [00:22:36]Read from MH i2c: E2 17 00 7B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 65 [00:22:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:22:36]wFMCommunicate OK [00:22:36]requested_item fd.num is exist - process it [00:22:36]SAM_PROTO_GetFieldsCounters [00:22:36]wFMCommunicate request_size=4 [00:22:36]MH_SAM_APDU [00:22:36]CAPDU: 80 13 00 00 [00:22:36]Write to MH i2c: E2 08 00 7C 1A 80 13 00 00 00 00 00 00 12 [00:22:36]Write i2c OK [00:22:36]MH_I2C_Read... [00:22:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:22:36]Read from MH i2c: E2 [00:22:36]MH_I2C_Read... [00:22:36]Read from MH i2c: E2 62 00 [00:22:36]MH_I2C_Read... [00:22:36]Read from MH i2c: E2 62 00 7C 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 B2 08 01 00 0E 04 04 00 67 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 5E [00:22: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 B2 08 01 00 0E 04 04 00 67 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:22:36]wFMCommunicate OK [00:22:36]SAM_PROTO_GetFieldsCounters done [00:22:36]requested_item shift.num is exist - process it [00:22:36]requested_item shift.opened is exist - process it [00:22:36]req_shift_opened [00:22:36]FM_GetShiftState [00:22:36]SAM_PROTO_GetShiftState [00:22:36]wFMCommunicate request_size=4 [00:22:36]MH_SAM_APDU [00:22:36]CAPDU: 80 13 01 00 [00:22:36]Write to MH i2c: E2 08 00 7D 1A 80 13 01 00 00 00 00 00 14 [00:22:36]Write i2c OK [00:22:36]MH_I2C_Read... [00:22:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:36]Read from MH i2c: E2 [00:22:36]MH_I2C_Read... [00:22:36]Read from MH i2c: E2 0E 00 [00:22:36]MH_I2C_Read... [00:22:36]Read from MH i2c: E2 0E 00 7D 1A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 7B [00:22:36]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [00:22:36]wFMCommunicate OK [00:22:36]SAM_PROTO_GetShiftState done [00:22:36]FM_GetShiftState done [00:22:36]req_shift_opened done [00:22:36]requested_item shift.open_date is exist - process it [00:22:36]req_shift_open_date [00:22:36]req_shift_open_date done [00:22:36]produce_requested_data done [00:22:36]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67762,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [00:22:36]process_action_free close_receipt [00:22:36]json_value_free [00:22:36]json_value_free done [00:22:36]process_json_proto returns [00:22:36]Send response to host [00:22:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67762,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [00:22:36]free response buf [00:22:36]execute_script done [00:22:36]execute_script returns [00:22:36]free content buf [00:22:36]Sock 7.Close socket [00:22:36]Sock 7.Thread stoped [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:29]OFD Sender: No OFD packet to send [00:27:34]OFD Sender: No OFD packet to send [00:27:39]OFD Sender: No OFD packet to send [00:27:44]OFD Sender: No OFD packet to send [00:27:49]OFD Sender: No OFD packet to send [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [00:30:07]accept exits with 9 [00:30:07]New connection [00:30:07]New thread 3066608996 created [00:30:07]Thread 3066752356 joined [00:30:07]Waiting for new connection... [00:30:07] Sock 9.Parse request [00:30:07]Sock 9.Check first char [00:30:07]Sock 9.First char is OK [00:30:07]request: POST /json_proto HTTP/1.0 [00:30:07]Method: POST [00:30:07]URL: /json_proto [00:30:07]Method is POST - this is cgi request [00:30:07]url: /json_proto [00:30:07]query_string will be loaded in cgi processing [00:30:07]execute_cgi json_proto POST (null) [00:30:07]execute_cgi path=json_proto method=POST [00:30:07]POST find Content-Length [00:30:07]Host: 172.17.41.195:8080 [00:30:07]Content-Length: 1208 [00:30:07]Content-Type: application/json [00:30:07] [00:30:07]POST finish read [00:30:07]Found Content-Length = 1208 [00:30: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)507920\u000A18.05.2024 00:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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" ] } } [00:30:07]execute_script... [00:30: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)507920\u000A18.05.2024 00:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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" ] } } [00:30:07]POST & json_proto [00:30:07]process_json_proto [00:30:07]json parsed OK: [00:30:07]protocol is kg_v1.0 [00:30:07]action value=print_text [00:30:07]process_action print_text [00:30:07]cmd_print_text [00:30:07]ExternCall_PrintAddStr [00:30:07]wPrintStart [00:30:07]Write to MH i2c: 01 00 00 7E 1A 98 [00:30:07]Write i2c OK [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: 01 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: 01 07 00 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: 01 07 00 7E 1A 00 00 00 00 00 FF 0F AD [00:30:07]RasterBufferAndPrint [00:30:07]line *****ТОВАРНЫЙ ЧЕК***** [00:30:07]line АЗС-91 [00:30:07]line Партнер нефть [00:30:07]line 02508201610067 [00:30:07]line Кассир : Арстанбеков Н. [00:30:07]line Счет N : (1)507920 [00:30:07]line 18.05.2024 00:12 [00:30:07]line ПРОДАЖА [00:30:07]line ТРК (МРК, ГНК): 11 [00:30:07]line Вид ГСМ : 2710194210 [00:30:07]line ДТ-К-5 [00:30:07]line 10.000 x 74.70 [00:30:07]line ИТОГ: 747.00 [00:30:07]line Тип оплаты: Талоны: Топливная Карта [00:30:07]line 02750 [00:30:07]line ______________________ [00:30:07]line (подпись) [00:30:07]written 0, free lines is 4095 [00:30:08]Write to MH i2c: 01 00 00 92 1A AC [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: 01 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: 01 07 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: 01 07 00 92 1A 00 00 00 00 00 0F 0E D0 [00:30:08]RasterBufferAndPrint [00:30:08]line [00:30:08]line [00:30:08]line [00:30:08]line [00:30:08]line [00:30:08]written 0, free lines is 3600 [00:30:08]MH_Cut [00:30:08]Write to MH i2c: D1 01 00 99 1A 01 85 [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: D1 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: D1 01 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: D1 01 00 99 1A 00 84 [00:30:08]Write to MH i2c: 01 00 00 9A 1A B4 [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]*** Cut start [00:30:08]*** Purtial cut [00:30:08]*** Stage 1: CUTSNS_PIN = 1 [00:30:08]Read from MH i2c: 01 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: 01 07 00 [00:30:08]MH_I2C_Read... [00:30:08]*** Stop cut motor [00:30:08]*** Cut end [00:30:08]Read from MH i2c: 01 07 00 9A 1A 00 00 00 00 00 FF 0F C9 [00:30:08]process_action print_text done [00:30:08]requested_data is exist [00:30:08]produce_requested_data [00:30:08]requested_item fm.sn is exist - process it [00:30:08]wFMCommunicate request_size=4 [00:30:08]MH_SAM_APDU [00:30:08]CAPDU: 80 11 00 00 [00:30:08]Write to MH i2c: E2 08 00 9B 1A 80 11 00 00 00 00 00 00 2F [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:09]Read from MH i2c: E2 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 17 00 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 17 00 9B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 85 [00:30:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:30:09]wFMCommunicate OK [00:30:09]requested_item fd.num is exist - process it [00:30:09]SAM_PROTO_GetFieldsCounters [00:30:09]wFMCommunicate request_size=4 [00:30:09]MH_SAM_APDU [00:30:09]CAPDU: 80 13 00 00 [00:30:09]Write to MH i2c: E2 08 00 9C 1A 80 13 00 00 00 00 00 00 32 [00:30:09]Write i2c OK [00:30:09]MH_I2C_Read... [00:30:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:09]Read from MH i2c: E2 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 62 00 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 62 00 9C 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 B2 08 01 00 0E 04 04 00 67 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 7E [00:30: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 B2 08 01 00 0E 04 04 00 67 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:30:09]wFMCommunicate OK [00:30:09]SAM_PROTO_GetFieldsCounters done [00:30:09]requested_item shift.num is exist - process it [00:30:09]requested_item shift.opened is exist - process it [00:30:09]req_shift_opened [00:30:09]OFD Sender: No OFD packet to send [00:30:09]FM_GetShiftState [00:30:09]SAM_PROTO_GetShiftState [00:30:09]wFMCommunicate request_size=4 [00:30:09]MH_SAM_APDU [00:30:09]CAPDU: 80 13 01 00 [00:30:09]Write to MH i2c: E2 08 00 9D 1A 80 13 01 00 00 00 00 00 34 [00:30:09]Write i2c OK [00:30:09]MH_I2C_Read... [00:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:09]Read from MH i2c: E2 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 0E 00 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 0E 00 9D 1A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 9B [00:30:09]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [00:30:09]wFMCommunicate OK [00:30:09]SAM_PROTO_GetShiftState done [00:30:09]FM_GetShiftState done [00:30:09]req_shift_opened done [00:30:09]requested_item shift.open_date is exist - process it [00:30:09]req_shift_open_date [00:30:09]req_shift_open_date done [00:30:09]produce_requested_data done [00:30:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67762,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [00:30:09]process_action_free print_text [00:30:09]json_value_free [00:30:09]json_value_free done [00:30:09]process_json_proto returns [00:30:09]Send response to host [00:30:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67762,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [00:30:09]free response buf [00:30:09]execute_script done [00:30:09]execute_script returns [00:30:09]free content buf [00:30:09]Sock 9.Close socket [00:30:09]Sock 9.Thread stoped [00:30:14]OFD Sender: No OFD packet to send [00:30:19]OFD Sender: No OFD packet to send [00:30:24]OFD Sender: No OFD packet to send [00:30:29]OFD Sender: No OFD packet to send [00:30:34]OFD Sender: No OFD packet to send [00:30:39]OFD Sender: No OFD packet to send [00:30:44]OFD Sender: No OFD packet to send [00:30:49]OFD Sender: No OFD packet to send [00:30:54]OFD Sender: No OFD packet to send [00:30:59]OFD Sender: No OFD packet to send [00:31:04]OFD Sender: No OFD packet to send [00:31:09]OFD Sender: No OFD packet to send [00:31:14]OFD Sender: No OFD packet to send [00:31:19]OFD Sender: No OFD packet to send [00:31:24]OFD Sender: No OFD packet to send [00:31:29]OFD Sender: No OFD packet to send [00:31:34]OFD Sender: No OFD packet to send [00:31:39]OFD Sender: No OFD packet to send [00:31:44]OFD Sender: No OFD packet to send [00:31:49]OFD Sender: No OFD packet to send [00:31:54]OFD Sender: No OFD packet to send [00:31:59]OFD Sender: No OFD packet to send [00:32:04]OFD Sender: No OFD packet to send [00:32:09]OFD Sender: No OFD packet to send [00:32:14]OFD Sender: No OFD packet to send [00:32:19]OFD Sender: No OFD packet to send [00:32:24]OFD Sender: No OFD packet to send [00:32:29]OFD Sender: No OFD packet to send [00:32:34]OFD Sender: No OFD packet to send [00:32:39]OFD Sender: No OFD packet to send [00:32:44]OFD Sender: No OFD packet to send [00:32:49]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:54]OFD Sender: No OFD packet to send [00:39:59]OFD Sender: No OFD packet to send [00:40:04]OFD Sender: No OFD packet to send [00:40:09]OFD Sender: No OFD packet to send [00:40:14]OFD Sender: No OFD packet to send [00:40:19]OFD Sender: No OFD packet to send [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:34]OFD Sender: No OFD packet to send [00:40:39]OFD Sender: No OFD packet to send [00:40:44]OFD Sender: No OFD packet to send [00:40:49]OFD Sender: No OFD packet to send [00:40:54]OFD Sender: No OFD packet to send [00:40:59]OFD Sender: No OFD packet to send [00:41:04]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:10]accept exits with 7 [00:44:10]New connection [00:44:10]New thread 3066752356 created [00:44:10]Thread 3066608996 joined [00:44:10]Waiting for new connection... [00:44:10] Sock 7.Parse request [00:44:10]Sock 7.Check first char [00:44:10]Sock 7.First char is OK [00:44:10]request: POST /json_proto HTTP/1.0 [00:44:10]Method: POST [00:44:10]URL: /json_proto [00:44:10]Method is POST - this is cgi request [00:44:10]url: /json_proto [00:44:10]query_string will be loaded in cgi processing [00:44:10]execute_cgi json_proto POST (null) [00:44:10]execute_cgi path=json_proto method=POST [00:44:10]POST find Content-Length [00:44:10]Host: 172.17.41.195:8080 [00:44:10]Content-Length: 800 [00:44:10]Content-Type: application/json [00:44:10] [00:44:10]POST finish read [00:44:10]Found Content-Length = 800 [00:44:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507921", "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" ] } } [00:44:10]execute_script... [00:44: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)507921", "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" ] } } [00:44:10]POST & json_proto [00:44:10]process_json_proto [00:44:10]json parsed OK: [00:44:10]protocol is kg_v1.0 [00:44:10]action value=close_receipt [00:44:10]process_action close_receipt [00:44:10]cmd_close_receipt [00:44:10]MH_GetDate [00:44:10]Write to MH i2c: F0 00 00 9E 1A A7 [00:44:10]Write i2c OK [00:44:10]MH_I2C_Read... [00:44:10]Read from MH i2c: F0 [00:44:10]MH_I2C_Read... [00:44:10]Read from MH i2c: F0 09 00 [00:44:10]MH_I2C_Read... [00:44:10]Read from MH i2c: F0 09 00 9E 1A 00 DD F9 47 66 FC 21 6F 64 23 [00:44:10]GetLastDocTimeStamp 1715991753 [00:44:10]current date 1715993053 [00:44:10]FM_GetShiftState [00:44:10]SAM_PROTO_GetShiftState [00:44:10]wFMCommunicate request_size=4 [00:44:10]MH_SAM_APDU [00:44:10]CAPDU: 80 13 01 00 [00:44:10]Write to MH i2c: E2 08 00 9F 1A 80 13 01 00 00 00 00 00 36 [00:44:10]Write i2c OK [00:44:10]MH_I2C_Read... [00:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:10]Read from MH i2c: E2 [00:44:10]MH_I2C_Read... [00:44:10]Read from MH i2c: E2 0E 00 [00:44:10]MH_I2C_Read... [00:44:10]Read from MH i2c: E2 0E 00 9F 1A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 9D [00:44:10]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [00:44:10]wFMCommunicate OK [00:44:10]SAM_PROTO_GetShiftState done [00:44:10]FM_GetShiftState done [00:44:10]opened in 1715991483 [00:44:10]opened+sec_in_day 1716077883 [00:44:10]quantity*price = 100023 [00:44:10]sum+1 = 100024 [00:44:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 2 18.05.2024 00:44 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67763 ФПД: 265501143492120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T004413&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67763&fm=265501143492120&tin=02508201610067®Number=0000000000091845&sum=100023 [00:44:11]StoreToDocumentArchive [00:44:11]shift 359 fd 67763 [00:44:11]save to /storage/0359/doc_00067763 [00:44:11]save last doc name /storage/0359/doc_00067763 to /storage/kkm_last_doc_name [00:44:11]save OK [00:44:11]Clear old archive folders... [00:44:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:44:11]tlvbuf is 01B3A9A0 [00:44:11]SAM_PROTO_ClearQueue [00:44:11]wFMCommunicate request_size=4 [00:44:11]MH_SAM_APDU [00:44:11]CAPDU: 80 09 00 00 [00:44:11]Write to MH i2c: E2 08 00 AC 1A 80 09 00 00 00 00 00 00 38 [00:44:11]Write i2c OK [00:44:11]MH_I2C_Read... [00:44:11]Read from MH i2c: E2 [00:44:11]MH_I2C_Read... [00:44:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:44:11]Read from MH i2c: E2 03 00 [00:44:11]MH_I2C_Read... [00:44:11]Read from MH i2c: E2 03 00 AC 1A 00 90 00 3A [00:44:11]RAPDU: 90 00 [00:44:11]wFMCommunicate OK [00:44:11]SAM_PROTO_ClearQueue done [00:44:11]KKMCreateOFDPacket [00:44:11]OFDProtocolAddRootSTLVToBuf [00:44:11]FM_MakeSignedData [00:44:11]FM_MakeSignedData [00:44:11]SAM_PROTO_SignData [00:44:11]wFMCommunicate request_size=4 [00:44:11]MH_SAM_APDU [00:44:11]CAPDU: 80 0D 01 02 [00:44:11]Write to MH i2c: E2 08 00 AD 1A 80 0D 01 02 00 00 00 00 40 [00:44:11]Write i2c OK [00:44:11]MH_I2C_Read... [00:44:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:44:11]Read from MH i2c: E2 [00:44:11]MH_I2C_Read... [00:44:11]Read from MH i2c: E2 03 00 [00:44:11]MH_I2C_Read... [00:44:11]Read from MH i2c: E2 03 00 AD 1A 00 90 00 3B [00:44:11]RAPDU: 90 00 [00:44:11]wFMCommunicate OK [00:44:11]wFMCommunicate request_size=255 [00:44:11]MH_SAM_APDU [00:44: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 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 02 00 00 00 F4 03 04 00 DD F9 47 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F1 78 CD 58 [00:44:11]Write to MH i2c: E2 02 01 AE 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 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 02 00 00 00 F4 03 04 00 DD F9 47 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F1 78 CD 58 00 00 7F [00:44:11]Write i2c OK [00:44:11]MH_I2C_Read... [00:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:44:12]Read from MH i2c: E2 [00:44:12]MH_I2C_Read... [00:44:12]Read from MH i2c: E2 03 00 [00:44:12]MH_I2C_Read... [00:44:12]Read from MH i2c: E2 03 00 AE 1A 00 90 00 3C [00:44:12]RAPDU: 90 00 [00:44:12]wFMCommunicate OK [00:44:12]wFMCommunicate request_size=7 [00:44:12]MH_SAM_APDU [00:44:12]CAPDU: 80 0D 02 02 02 66 18 [00:44:12]Write to MH i2c: E2 0A 00 AF 1A 80 0D 02 02 02 00 66 18 00 00 C5 [00:44:12]Write i2c OK [00:44:12]MH_I2C_Read... [00:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:44:12]Read from MH i2c: E2 [00:44:12]MH_I2C_Read... [00:44:12]Read from MH i2c: E2 03 00 [00:44:12]MH_I2C_Read... [00:44:12]Read from MH i2c: E2 03 00 AF 1A 00 90 00 3D [00:44:12]RAPDU: 90 00 [00:44:12]wFMCommunicate OK [00:44:12]wFMCommunicate request_size=4 [00:44:12]MH_SAM_APDU [00:44:12]CAPDU: 80 0D 03 02 [00:44:12]Write to MH i2c: E2 08 00 B0 1A 80 0D 03 02 00 00 00 00 45 [00:44:12]Write i2c OK [00:44:12]MH_I2C_Read... [00:44:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:44:12]Read from MH i2c: E2 [00:44:12]MH_I2C_Read... [00:44:12]Read from MH i2c: E2 0B 00 [00:44:12]MH_I2C_Read... [00:44:12]Read from MH i2c: E2 0B 00 B0 1A 00 00 C6 4B 86 E4 F3 F5 54 90 00 FD [00:44:12]RAPDU: 00 C6 4B 86 E4 F3 F5 54 90 00 [00:44:12]wFMCommunicate OK [00:44:12]SAM_PROTO_SignData done [00:44:12]FM_MakeSignedData done [00:44:12]CreateOFDProtocolMessage [00:44:12]wFMCommunicate request_size=4 [00:44:12]MH_SAM_APDU [00:44:12]CAPDU: 80 11 00 00 [00:44:12]Write to MH i2c: E2 08 00 B1 1A 80 11 00 00 00 00 00 00 45 [00:44:12]Write i2c OK [00:44:12]MH_I2C_Read... [00:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:12]Read from MH i2c: E2 [00:44:12]MH_I2C_Read... [00:44:12]Read from MH i2c: E2 17 00 [00:44:12]MH_I2C_Read... [00:44:12]Read from MH i2c: E2 17 00 B1 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9B [00:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:44:12]wFMCommunicate OK [00:44:12]CreateOFDProtocolMessage done [00:44:12]OFDSenderStorePacket 67763 [00:44:12]StoreOFDPacket docnum=67763 [00:44: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 04 14 04 01 CA 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 02 00 00 00 F4 03 04 00 DD F9 47 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F1 78 CD 58 66 18 00 C6 4B 86 E4 F3 F5 54 [00:44:12]CheckFolder [00:44:12]dirname=/storage/ofd_packets [00:44:12]CheckFolder done [00:44:12]ProducePacketName [00:44:12]name=ofd_packets/00067763 [00:44:12]NVStorageSaveData ofd_packets/00067763 [00:44:12]File name is /storage/ofd_packets/00067763 [00:44:12]Write 298 bytes [00:44:12]NVStorageSaveData done [00:44:12]OFDSenderStorePacket done [00:44:12]KKMCreateOFDPacket done [00:44:12]NVStorageSaveData kkm_last_timestamp [00:44:12]File name is /storage/kkm_last_timestamp [00:44:12]Write 4 bytes [00:44:12]NVStorageSaveData done [00:44:12]ExternCall_PrintAddStr [00:44:12]wPrintStart [00:44:12]Write to MH i2c: 01 00 00 B2 1A CC [00:44:12]Write i2c OK [00:44:12]MH_I2C_Read... [00:44:12]Read from MH i2c: 01 [00:44:12]MH_I2C_Read... [00:44:12]Read from MH i2c: 01 07 00 [00:44:12]MH_I2C_Read... [00:44:12]Read from MH i2c: 01 07 00 B2 1A 00 00 00 00 00 FF 0F E1 [00:44:12]RasterBufferAndPrint [00:44:12]line Счет N : (1)507921 [00:44:12]line ИНН: 02508201610067 [00:44:12]line Контрольно-Кассовый Чек [00:44:12]line ПРОДАЖА [00:44:12]line ТРК (МРК, ГНК) : 31 [00:44:12]line Товар: 2710194210 [00:44:12]line ДТ-К-5 [00:44:12]line 13.390 * 74.70 [00:44:12]line = 1000.23 [00:44:12]line НДС 12% НСП 1% [00:44:12]line > о реализуемом товаре [00:44:12]line ИТОГО: 1000.23 [00:44:12]line НСП 1% : 8.85 [00:44:12]line НДС 12% : 106.22 [00:44:12]line Наличными: 0.00 [00:44:12]line Безнал.: 1000.23 [00:44:12]line Место: АЗС № 91 "Партнер Нефть" [00:44:12]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [00:44:12]line СНО: Общий режим [00:44:12]line Чек 2 18.05.2024 00:44 [00:44:12]line Смена: 359 ФФД: 1.0 [00:44:12]line ЗНМ: 0300000119 [00:44:12]line РНМ: 0000000000091845 [00:44:12]line Версия ККМ: 001 [00:44:12]line Платежная система: O! деньги [00:44:12]line ФМ: 0000000000871829 [00:44:12]line ФД: 67763 [00:44:12]line ФПД: 265501143492120 [00:44:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T004413&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67763&fm=265501143492120&tin=02508201610067®Number=0000000000091845&sum=100023 [00:44:12]OFD Sender: Processing packet 67763 [packets to send 35, broken 34] [00:44:12]ProducePacketName [00:44:12]name=ofd_packets/00067763 [00:44:12]OFD Sender: To server: pG, [00:44:12]CommunicateWithHost lk.salyk.kg:30040 [00:44:12]ConnectInit lk.salyk.kg [00:44:12]written 0, free lines is 4095 [00:44:12]Connected sock=10 [00:44: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 04 14 04 01 CA 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 02 00 00 00 F4 03 04 00 DD F9 47 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F1 78 CD 58 66 18 00 C6 4B 86 E4 F3 F5 54 [00:44: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 B7 9E 47 00 F7 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 B4 A1 47 66 B6 04 01 00 00 84 76 E1 1A 19 5B 02 84 [00:44:13]CommunicateWithHost err = 0 [00:44:13]CheckOFDResponse [00:44:13]1017 (14) - 77093643461234 [00:44:13]1041 (16) - 0000000000871829 [00:44:13]1040 (4) - 67763 [00:44:13]1012 (4) - 17.05.2024 18:28 [00:44:13]1206 (1) - 0 [00:44:13]OFD Sender: Remove packet 67763 [00:44:13]ProducePacketName [00:44:13]name=ofd_packets/00067763 [00:44:13]NVStorageDeleteData [00:44:13]Write to MH i2c: 01 00 00 DB 1A F5 [00:44:13]Write i2c OK [00:44:13]MH_I2C_Read... [00:44:13]Read from MH i2c: 01 [00:44:13]MH_I2C_Read... [00:44:13]Read from MH i2c: 01 07 00 [00:44:13]MH_I2C_Read... [00:44:13]Read from MH i2c: 01 07 00 DB 1A 00 00 00 00 00 D1 0C D9 [00:44:13]RasterBufferAndPrint [00:44:13]line [00:44:13]line [00:44:13]line [00:44:13]line [00:44:13]line [00:44:13]written 0, free lines is 3285 [00:44:13]MH_Cut [00:44:13]Write to MH i2c: D1 01 00 E2 1A 01 CE [00:44:13]Write i2c OK [00:44:13]MH_I2C_Read... [00:44:13]Read from MH i2c: D1 [00:44:13]MH_I2C_Read... [00:44:13]Read from MH i2c: D1 01 00 [00:44:13]MH_I2C_Read... [00:44:13]Read from MH i2c: D1 01 00 E2 1A 00 CD [00:44:13]Write to MH i2c: 01 00 00 E3 1A FD [00:44:13]Write i2c OK [00:44:13]MH_I2C_Read... [00:44:13]OFD Sender: No OFD packet to send [00:44:13]*** Cut start [00:44:13]*** Purtial cut [00:44:13]*** CUTSNS_PIN = 0 [00:44:14]*** Stage 1: CUTSNS_PIN = 1 [00:44:15]Read from MH i2c: 01 [00:44:16]MH_I2C_Read... [00:44:16]*** Stop cut motor [00:44:16]*** Cut end [00:44:16]Read from MH i2c: 01 07 00 [00:44:16]MH_I2C_Read... [00:44:16]Read from MH i2c: 01 07 00 E3 1A 00 00 00 00 00 FF 0F 12 [00:44:16]process_action close_receipt done [00:44:16]requested_data is exist [00:44:16]produce_requested_data [00:44:16]requested_item fm.sn is exist - process it [00:44:16]wFMCommunicate request_size=4 [00:44:16]MH_SAM_APDU [00:44:16]CAPDU: 80 11 00 00 [00:44:16]Write to MH i2c: E2 08 00 E4 1A 80 11 00 00 00 00 00 00 78 [00:44:16]Write i2c OK [00:44:16]MH_I2C_Read... [00:44:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:16]Read from MH i2c: E2 [00:44:16]MH_I2C_Read... [00:44:16]Read from MH i2c: E2 17 00 [00:44:16]MH_I2C_Read... [00:44:16]Read from MH i2c: E2 17 00 E4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CE [00:44:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:44:16]wFMCommunicate OK [00:44:16]requested_item fd.num is exist - process it [00:44:16]SAM_PROTO_GetFieldsCounters [00:44:16]wFMCommunicate request_size=4 [00:44:16]MH_SAM_APDU [00:44:16]CAPDU: 80 13 00 00 [00:44:16]Write to MH i2c: E2 08 00 E5 1A 80 13 00 00 00 00 00 00 7B [00:44:16]Write i2c OK [00:44:16]MH_I2C_Read... [00:44:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:44:16]Read from MH i2c: E2 [00:44:16]MH_I2C_Read... [00:44:16]Read from MH i2c: E2 62 00 [00:44:16]MH_I2C_Read... [00:44:16]Read from MH i2c: E2 62 00 E5 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 B3 08 01 00 0E 04 04 00 67 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 CB [00:44: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 B3 08 01 00 0E 04 04 00 67 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:44:16]wFMCommunicate OK [00:44:16]SAM_PROTO_GetFieldsCounters done [00:44:16]requested_item shift.num is exist - process it [00:44:16]requested_item shift.opened is exist - process it [00:44:16]req_shift_opened [00:44:16]FM_GetShiftState [00:44:16]SAM_PROTO_GetShiftState [00:44:16]wFMCommunicate request_size=4 [00:44:16]MH_SAM_APDU [00:44:16]CAPDU: 80 13 01 00 [00:44:16]Write to MH i2c: E2 08 00 E6 1A 80 13 01 00 00 00 00 00 7D [00:44:16]Write i2c OK [00:44:16]MH_I2C_Read... [00:44:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:16]Read from MH i2c: E2 [00:44:16]MH_I2C_Read... [00:44:16]Read from MH i2c: E2 0E 00 [00:44:16]MH_I2C_Read... [00:44:16]Read from MH i2c: E2 0E 00 E6 1A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 E4 [00:44:16]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [00:44:16]wFMCommunicate OK [00:44:16]SAM_PROTO_GetShiftState done [00:44:16]FM_GetShiftState done [00:44:16]req_shift_opened done [00:44:16]requested_item shift.open_date is exist - process it [00:44:16]req_shift_open_date [00:44:16]req_shift_open_date done [00:44:16]produce_requested_data done [00:44:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67763,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [00:44:16]process_action_free close_receipt [00:44:16]json_value_free [00:44:16]json_value_free done [00:44:16]process_json_proto returns [00:44:16]Send response to host [00:44:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67763,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [00:44:16]free response buf [00:44:16]execute_script done [00:44:16]execute_script returns [00:44:16]free content buf [00:44:16]Sock 7.Close socket [00:44:16]Sock 7.Thread stoped [00:44:18]OFD Sender: No OFD packet to send [00:44:23]OFD Sender: No OFD packet to send [00:44:28]OFD Sender: No OFD packet to send [00:44:33]OFD Sender: No OFD packet to send [00:44:38]OFD Sender: No OFD packet to send [00:44:43]OFD Sender: No OFD packet to send [00:44:48]OFD Sender: No OFD packet to send [00:44:53]OFD Sender: No OFD packet to send [00:44:58]OFD Sender: No OFD packet to send [00:45:03]OFD Sender: No OFD packet to send [00:45:08]OFD Sender: No OFD packet to send [00:45:13]OFD Sender: No OFD packet to send [00:45:18]OFD Sender: No OFD packet to send [00:45:23]OFD Sender: No OFD packet to send [00:45:28]OFD Sender: No OFD packet to send [00:45:33]OFD Sender: No OFD packet to send [00:45:38]OFD Sender: No OFD packet to send [00:45:43]OFD Sender: No OFD packet to send [00:45:48]OFD Sender: No OFD packet to send [00:45:53]OFD Sender: No OFD packet to send [00:45:58]OFD Sender: No OFD packet to send [00:46:03]OFD Sender: No OFD packet to send [00:46:08]OFD Sender: No OFD packet to send [00:46:13]OFD Sender: No OFD packet to send [00:46:18]OFD Sender: No OFD packet to send [00:46:23]OFD Sender: No OFD packet to send [00:46:28]OFD Sender: No OFD packet to send [00:46:33]OFD Sender: No OFD packet to send [00:46:38]OFD Sender: No OFD packet to send [00:46:43]OFD Sender: No OFD packet to send [00:46:48]OFD Sender: No OFD packet to send [00:46:53]OFD Sender: No OFD packet to send [00:46:58]OFD Sender: No OFD packet to send [00:47:03]OFD Sender: No OFD packet to send [00:47:08]OFD Sender: No OFD packet to send [00:47:13]OFD Sender: No OFD packet to send [00:47:18]OFD Sender: No OFD packet to send [00:47:23]OFD Sender: No OFD packet to send [00:47:28]OFD Sender: No OFD packet to send [00:47:33]OFD Sender: No OFD packet to send [00:47:38]OFD Sender: No OFD packet to send [00:47:43]OFD Sender: No OFD packet to send [00:47:47]accept exits with 9 [00:47:47]New connection [00:47:47]New thread 3066608996 created [00:47:47]Thread 3066752356 joined [00:47:47]Waiting for new connection... [00:47:47] Sock 9.Parse request [00:47:47]Sock 9.Check first char [00:47:47]Sock 9.First char is OK [00:47:47]request: POST /json_proto HTTP/1.0 [00:47:47]Method: POST [00:47:47]URL: /json_proto [00:47:47]Method is POST - this is cgi request [00:47:47]url: /json_proto [00:47:47]query_string will be loaded in cgi processing [00:47:47]execute_cgi json_proto POST (null) [00:47:47]execute_cgi path=json_proto method=POST [00:47:47]POST find Content-Length [00:47:47]Host: 172.17.41.195:8080 [00:47:47]Content-Length: 809 [00:47:47]Content-Type: application/json [00:47:47] [00:47:47]POST finish read [00:47:47]Found Content-Length = 809 [00:47:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507922", "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" : 4.870, "sum" : 330.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 330.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:47:47]execute_script... [00:47: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)507922", "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" : 4.870, "sum" : 330.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 330.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:47:47]POST & json_proto [00:47:47]process_json_proto [00:47:47]json parsed OK: [00:47:47]protocol is kg_v1.0 [00:47:47]action value=close_receipt [00:47:47]process_action close_receipt [00:47:47]cmd_close_receipt [00:47:47]MH_GetDate [00:47:47]Write to MH i2c: F0 00 00 E7 1A F0 [00:47:47]Write i2c OK [00:47:47]MH_I2C_Read... [00:47:47]Read from MH i2c: F0 [00:47:47]MH_I2C_Read... [00:47:47]Read from MH i2c: F0 09 00 [00:47:47]MH_I2C_Read... [00:47:47]Read from MH i2c: F0 09 00 E7 1A 00 B6 FA 47 66 FC 21 6F 64 46 [00:47:47]GetLastDocTimeStamp 1715993053 [00:47:47]current date 1715993270 [00:47:47]FM_GetShiftState [00:47:47]SAM_PROTO_GetShiftState [00:47:47]wFMCommunicate request_size=4 [00:47:47]MH_SAM_APDU [00:47:47]CAPDU: 80 13 01 00 [00:47:47]Write to MH i2c: E2 08 00 E8 1A 80 13 01 00 00 00 00 00 7F [00:47:47]Write i2c OK [00:47:47]MH_I2C_Read... [00:47:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:47:47]Read from MH i2c: E2 [00:47:47]MH_I2C_Read... [00:47:47]Read from MH i2c: E2 0E 00 [00:47:47]MH_I2C_Read... [00:47:47]Read from MH i2c: E2 0E 00 E8 1A 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 E6 [00:47:47]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [00:47:47]wFMCommunicate OK [00:47:47]SAM_PROTO_GetShiftState done [00:47:47]FM_GetShiftState done [00:47:47]opened in 1715991483 [00:47:47]opened+sec_in_day 1716077883 [00:47:47]quantity*price = 33018 [00:47:47]sum+1 = 33020 [00:47:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 330.19 НСП 1% : 2.92 НДС 12% : 35.06 Наличными: 0.00 Безнал.: 330.19 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 3 18.05.2024 00:47 Смена: 359 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67764 ФПД: 271818080416222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T004750&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67764&fm=271818080416222&tin=02508201610067®Number=0000000000091845&sum=33019 [00:47:48]StoreToDocumentArchive [00:47:48]shift 359 fd 67764 [00:47:48]save to /storage/0359/doc_00067764 [00:47:48]save last doc name /storage/0359/doc_00067764 to /storage/kkm_last_doc_name [00:47:48]save OK [00:47:48]Clear old archive folders... [00:47:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:47:48]tlvbuf is 01B34330 [00:47:48]SAM_PROTO_ClearQueue [00:47:48]wFMCommunicate request_size=4 [00:47:48]MH_SAM_APDU [00:47:48]CAPDU: 80 09 00 00 [00:47:48]Write to MH i2c: E2 08 00 F5 1A 80 09 00 00 00 00 00 00 81 [00:47:48]Write i2c OK [00:47:48]MH_I2C_Read... [00:47:48]Read from MH i2c: E2 [00:47:48]MH_I2C_Read... [00:47:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:47:48]Read from MH i2c: E2 03 00 [00:47:48]MH_I2C_Read... [00:47:48]Read from MH i2c: E2 03 00 F5 1A 00 90 00 83 [00:47:48]RAPDU: 90 00 [00:47:48]wFMCommunicate OK [00:47:48]SAM_PROTO_ClearQueue done [00:47:48]KKMCreateOFDPacket [00:47:48]OFDProtocolAddRootSTLVToBuf [00:47:48]FM_MakeSignedData [00:47:48]FM_MakeSignedData [00:47:48]SAM_PROTO_SignData [00:47:48]wFMCommunicate request_size=4 [00:47:48]MH_SAM_APDU [00:47:48]CAPDU: 80 0D 01 02 [00:47:48]Write to MH i2c: E2 08 00 F6 1A 80 0D 01 02 00 00 00 00 89 [00:47:48]Write i2c OK [00:47:48]MH_I2C_Read... [00:47:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:47:48]Read from MH i2c: E2 [00:47:48]MH_I2C_Read... [00:47:48]Read from MH i2c: E2 03 00 [00:47:48]MH_I2C_Read... [00:47:48]Read from MH i2c: E2 03 00 F6 1A 00 90 00 84 [00:47:48]RAPDU: 90 00 [00:47:48]wFMCommunicate OK [00:47:48]wFMCommunicate request_size=255 [00:47:48]MH_SAM_APDU [00:47:48]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 06 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FB 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FB 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FB 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B6 FA 47 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 [00:47:48]Write to MH i2c: E2 02 01 F7 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 06 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FB 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FB 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FB 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B6 FA 47 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 00 00 4B [00:47:48]Write i2c OK [00:47:48]MH_I2C_Read... [00:47:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:47:49]Read from MH i2c: E2 [00:47:49]MH_I2C_Read... [00:47:49]Read from MH i2c: E2 03 00 [00:47:49]MH_I2C_Read... [00:47:49]Read from MH i2c: E2 03 00 F7 1A 00 90 00 85 [00:47:49]RAPDU: 90 00 [00:47:49]wFMCommunicate OK [00:47:49]wFMCommunicate request_size=11 [00:47:49]MH_SAM_APDU [00:47:49]CAPDU: 80 0D 02 02 06 F7 37 94 20 71 DE [00:47:49]Write to MH i2c: E2 0E 00 F8 1A 80 0D 02 02 06 00 F7 37 94 20 71 DE 00 00 C9 [00:47:49]Write i2c OK [00:47:49]MH_I2C_Read... [00:47:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:47:49]Read from MH i2c: E2 [00:47:49]MH_I2C_Read... [00:47:49]Read from MH i2c: E2 03 00 [00:47:49]MH_I2C_Read... [00:47:49]Read from MH i2c: E2 03 00 F8 1A 00 90 00 86 [00:47:49]RAPDU: 90 00 [00:47:49]wFMCommunicate OK [00:47:49]wFMCommunicate request_size=4 [00:47:49]MH_SAM_APDU [00:47:49]CAPDU: 80 0D 03 02 [00:47:49]Write to MH i2c: E2 08 00 F9 1A 80 0D 03 02 00 00 00 00 8E [00:47:49]Write i2c OK [00:47:49]MH_I2C_Read... [00:47:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:47:49]Read from MH i2c: E2 [00:47:49]MH_I2C_Read... [00:47:49]Read from MH i2c: E2 0B 00 [00:47:49]MH_I2C_Read... [00:47:49]Read from MH i2c: E2 0B 00 F9 1A 00 E3 B5 A7 D2 FB AD E0 6F 90 00 97 [00:47:49]RAPDU: E3 B5 A7 D2 FB AD E0 6F 90 00 [00:47:49]wFMCommunicate OK [00:47:49]SAM_PROTO_SignData done [00:47:49]FM_MakeSignedData done [00:47:49]CreateOFDProtocolMessage [00:47:49]wFMCommunicate request_size=4 [00:47:49]MH_SAM_APDU [00:47:49]CAPDU: 80 11 00 00 [00:47:49]Write to MH i2c: E2 08 00 FA 1A 80 11 00 00 00 00 00 00 8E [00:47:49]Write i2c OK [00:47:49]MH_I2C_Read... [00:47:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:47:49]Read from MH i2c: E2 [00:47:49]MH_I2C_Read... [00:47:49]Read from MH i2c: E2 17 00 [00:47:49]MH_I2C_Read... [00:47:49]Read from MH i2c: E2 17 00 FA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E4 [00:47: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:47:49]wFMCommunicate OK [00:47:49]CreateOFDProtocolMessage done [00:47:49]OFDSenderStorePacket 67764 [00:47:49]StoreOFDPacket docnum=67764 [00:47:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 EA BC 08 01 73 13 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 06 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FB 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FB 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FB 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B6 FA 47 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F7 37 94 20 71 DE E3 B5 A7 D2 FB AD E0 6F [00:47:49]CheckFolder [00:47:49]dirname=/storage/ofd_packets [00:47:49]CheckFolder done [00:47:49]ProducePacketName [00:47:49]name=ofd_packets/00067764 [00:47:49]NVStorageSaveData ofd_packets/00067764 [00:47:49]File name is /storage/ofd_packets/00067764 [00:47:49]Write 302 bytes [00:47:49]NVStorageSaveData done [00:47:49]OFDSenderStorePacket done [00:47:49]KKMCreateOFDPacket done [00:47:49]NVStorageSaveData kkm_last_timestamp [00:47:49]File name is /storage/kkm_last_timestamp [00:47:49]Write 4 bytes [00:47:49]NVStorageSaveData done [00:47:49]ExternCall_PrintAddStr [00:47:49]wPrintStart [00:47:49]Write to MH i2c: 01 00 00 FB 1A 15 [00:47:49]Write i2c OK [00:47:49]MH_I2C_Read... [00:47:49]Read from MH i2c: 01 [00:47:49]MH_I2C_Read... [00:47:49]Read from MH i2c: 01 07 00 [00:47:49]MH_I2C_Read... [00:47:49]Read from MH i2c: 01 07 00 FB 1A 00 00 00 00 00 FF 0F 2A [00:47:49]RasterBufferAndPrint [00:47:49]line Счет N : (1)507922 [00:47:49]line ИНН: 02508201610067 [00:47:49]line Контрольно-Кассовый Чек [00:47:49]line ПРОДАЖА [00:47:49]line ТРК (МРК, ГНК) : 42 [00:47:49]line Товар: 2710124130 [00:47:49]line Super-92-К-5 [00:47:49]line 4.870 * 67.80 [00:47:49]line = 330.19 [00:47:49]line НДС 12% НСП 1% [00:47:49]line > о реализуемом товаре [00:47:49]line ИТОГО: 330.19 [00:47:49]line НСП 1% : 2.92 [00:47:49]line НДС 12% : 35.06 [00:47:49]line Наличными: 0.00 [00:47:49]line Безнал.: 330.19 [00:47:49]line Место: АЗС № 91 "Партнер Нефть" [00:47:49]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [00:47:49]line СНО: Общий режим [00:47:49]line Чек 3 18.05.2024 00:47 [00:47:49]line Смена: 359 ФФД: 1.0 [00:47:49]line ЗНМ: 0300000119 [00:47:49]line РНМ: 0000000000091845 [00:47:49]line Версия ККМ: 001 [00:47:49]line Платежная система: Бакай Банк [00:47:49]line ФМ: 0000000000871829 [00:47:49]line ФД: 67764 [00:47:49]line ФПД: 271818080416222 [00:47:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240518T004750&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67764&fm=271818080416222&tin=02508201610067®Number=0000000000091845&sum=33019 [00:47:49]OFD Sender: Processing packet 67764 [packets to send 35, broken 34] [00:47:49]ProducePacketName [00:47:49]name=ofd_packets/00067764 [00:47:49]OFD Sender: To server: pG, [00:47:49]CommunicateWithHost lk.salyk.kg:30040 [00:47:49]ConnectInit lk.salyk.kg [00:47:49]written 0, free lines is 4095 [00:47:49]Connected sock=10 [00:47: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 10 01 00 00 EA BC 08 01 73 13 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 06 13 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FB 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FB 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FB 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 B6 FA 47 66 0E 04 04 00 67 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 08 01 00 35 04 06 00 F7 37 94 20 71 DE E3 B5 A7 D2 FB AD E0 6F [00:47: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 41 7F 47 00 31 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 08 01 00 F4 03 04 00 8D A2 47 66 B6 04 01 00 00 0B 0D 5C 4C B5 8B 54 25 [00:47:49]CommunicateWithHost err = 0 [00:47:49]CheckOFDResponse [00:47:49]1017 (14) - 77093643461234 [00:47:49]1041 (16) - 0000000000871829 [00:47:49]1040 (4) - 67764 [00:47:49]1012 (4) - 17.05.2024 18:31 [00:47:49]1206 (1) - 0 [00:47:49]OFD Sender: Remove packet 67764 [00:47:49]ProducePacketName [00:47:49]name=ofd_packets/00067764 [00:47:49]NVStorageDeleteData [00:47:50]Write to MH i2c: 01 00 00 24 1B 3F [00:47:50]Write i2c OK [00:47:50]MH_I2C_Read... [00:47:50]Read from MH i2c: 01 [00:47:50]MH_I2C_Read... [00:47:50]Read from MH i2c: 01 07 00 [00:47:50]MH_I2C_Read... [00:47:50]Read from MH i2c: 01 07 00 24 1B 00 00 00 00 00 D2 0C 24 [00:47:50]RasterBufferAndPrint [00:47:50]line [00:47:50]line [00:47:50]line [00:47:50]line [00:47:50]line [00:47:50]written 0, free lines is 3289 [00:47:50]MH_Cut [00:47:50]Write to MH i2c: D1 01 00 2B 1B 01 18 [00:47:50]Write i2c OK [00:47:50]MH_I2C_Read... [00:47:50]Read from MH i2c: D1 [00:47:50]MH_I2C_Read... [00:47:50]Read from MH i2c: D1 01 00 [00:47:50]MH_I2C_Read... [00:47:50]Read from MH i2c: D1 01 00 2B 1B 00 17 [00:47:50]Write to MH i2c: 01 00 00 2C 1B 47 [00:47:50]Write i2c OK [00:47:50]MH_I2C_Read... [00:47:50]OFD Sender: No OFD packet to send [00:47:50]*** Cut start [00:47:50]*** Purtial cut [00:47:50]*** Stage 1: CUTSNS_PIN = 1 [00:47:51]Read from MH i2c: 01 [00:47:51]MH_I2C_Read... [00:47:51]*** Stop cut motor [00:47:51]*** Cut end [00:47:51]Read from MH i2c: 01 07 00 [00:47:51]MH_I2C_Read... [00:47:51]Read from MH i2c: 01 07 00 2C 1B 00 00 00 00 00 FF 0F 5C [00:47:51]process_action close_receipt done [00:47:51]requested_data is exist [00:47:51]produce_requested_data [00:47:51]requested_item fm.sn is exist - process it [00:47:51]wFMCommunicate request_size=4 [00:47:51]MH_SAM_APDU [00:47:51]CAPDU: 80 11 00 00 [00:47:51]Write to MH i2c: E2 08 00 2D 1B 80 11 00 00 00 00 00 00 C2 [00:47:51]Write i2c OK [00:47:51]MH_I2C_Read... [00:47:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:47:51]Read from MH i2c: E2 [00:47:51]MH_I2C_Read... [00:47:51]Read from MH i2c: E2 17 00 [00:47:51]MH_I2C_Read... [00:47:51]Read from MH i2c: E2 17 00 2D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 18 [00:47:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:47:51]wFMCommunicate OK [00:47:51]requested_item fd.num is exist - process it [00:47:51]SAM_PROTO_GetFieldsCounters [00:47:51]wFMCommunicate request_size=4 [00:47:51]MH_SAM_APDU [00:47:51]CAPDU: 80 13 00 00 [00:47:51]Write to MH i2c: E2 08 00 2E 1B 80 13 00 00 00 00 00 00 C5 [00:47:51]Write i2c OK [00:47:51]MH_I2C_Read... [00:47:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:47:51]Read from MH i2c: E2 [00:47:51]MH_I2C_Read... [00:47:51]Read from MH i2c: E2 62 00 [00:47:51]MH_I2C_Read... [00:47:51]Read from MH i2c: E2 62 00 2E 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [00:47: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 B4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:47:51]wFMCommunicate OK [00:47:51]SAM_PROTO_GetFieldsCounters done [00:47:51]requested_item shift.num is exist - process it [00:47:51]requested_item shift.opened is exist - process it [00:47:51]req_shift_opened [00:47:51]FM_GetShiftState [00:47:51]SAM_PROTO_GetShiftState [00:47:51]wFMCommunicate request_size=4 [00:47:51]MH_SAM_APDU [00:47:51]CAPDU: 80 13 01 00 [00:47:51]Write to MH i2c: E2 08 00 2F 1B 80 13 01 00 00 00 00 00 C7 [00:47:51]Write i2c OK [00:47:51]MH_I2C_Read... [00:47:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:47:51]Read from MH i2c: E2 [00:47:51]MH_I2C_Read... [00:47:51]Read from MH i2c: E2 0E 00 [00:47:51]MH_I2C_Read... [00:47:51]Read from MH i2c: E2 0E 00 2F 1B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 2E [00:47:51]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [00:47:51]wFMCommunicate OK [00:47:51]SAM_PROTO_GetShiftState done [00:47:51]FM_GetShiftState done [00:47:51]req_shift_opened done [00:47:51]requested_item shift.open_date is exist - process it [00:47:51]req_shift_open_date [00:47:51]req_shift_open_date done [00:47:51]produce_requested_data done [00:47:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67764,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [00:47:51]process_action_free close_receipt [00:47:51]json_value_free [00:47:51]json_value_free done [00:47:51]process_json_proto returns [00:47:51]Send response to host [00:47:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67764,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [00:47:51]free response buf [00:47:51]execute_script done [00:47:51]execute_script returns [00:47:51]free content buf [00:47:51]Sock 9.Close socket [00:47:51]Sock 9.Thread stoped [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:05]OFD Sender: No OFD packet to send [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:48:57]accept exits with 7 [00:48:57]New connection [00:48:57]New thread 3066752356 created [00:48:57]Thread 3066608996 joined [00:48:57]Waiting for new connection... [00:48:57] Sock 7.Parse request [00:48:57]Sock 7.Check first char [00:48:57]Sock 7.First char is OK [00:48:57]request: POST /json_proto HTTP/1.0 [00:48:57]Method: POST [00:48:57]URL: /json_proto [00:48:57]Method is POST - this is cgi request [00:48:57]url: /json_proto [00:48:57]query_string will be loaded in cgi processing [00:48:57]execute_cgi json_proto POST (null) [00:48:57]execute_cgi path=json_proto method=POST [00:48:57]POST find Content-Length [00:48:57]Host: 172.17.41.195:8080 [00:48:57]Content-Length: 1207 [00:48:57]Content-Type: application/json [00:48:57] [00:48:57]POST finish read [00:48:57]Found Content-Length = 1207 [00:48:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507924\u000A18.05.2024 00:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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" ] } } [00:48:57]execute_script... [00:48:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507924\u000A18.05.2024 00:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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" ] } } [00:48:57]POST & json_proto [00:48:57]process_json_proto [00:48:57]json parsed OK: [00:48:57]protocol is kg_v1.0 [00:48:57]action value=print_text [00:48:57]process_action print_text [00:48:57]cmd_print_text [00:48:57]ExternCall_PrintAddStr [00:48:57]wPrintStart [00:48:57]Write to MH i2c: 01 00 00 30 1B 4B [00:48:57]Write i2c OK [00:48:57]MH_I2C_Read... [00:48:57]Read from MH i2c: 01 [00:48:57]MH_I2C_Read... [00:48:57]Read from MH i2c: 01 07 00 [00:48:57]MH_I2C_Read... [00:48:57]Read from MH i2c: 01 07 00 30 1B 00 00 00 00 00 FF 0F 60 [00:48:57]RasterBufferAndPrint [00:48:57]line *****ТОВАРНЫЙ ЧЕК***** [00:48:57]line АЗС-91 [00:48:57]line Партнер нефть [00:48:57]line 02508201610067 [00:48:57]line Кассир : Арстанбеков Н. [00:48:57]line Счет N : (1)507924 [00:48:57]line 18.05.2024 00:31 [00:48:57]line ПРОДАЖА [00:48:57]line ТРК (МРК, ГНК): 31 [00:48:57]line Вид ГСМ : 2710194210 [00:48:57]line ДТ-К-5 [00:48:57]line 6.700 x 74.70 [00:48:57]line ИТОГ: 500.49 [00:48:57]line Тип оплаты: Талоны: Топливная Карта [00:48:57]line 02750 [00:48:57]line ______________________ [00:48:57]line (подпись) [00:48:57]written 0, free lines is 4095 [00:48:57]Write to MH i2c: 01 00 00 44 1B 5F [00:48:57]Write i2c OK [00:48:57]MH_I2C_Read... [00:48:57]Read from MH i2c: 01 [00:48:57]MH_I2C_Read... [00:48:57]Read from MH i2c: 01 07 00 [00:48:57]MH_I2C_Read... [00:48:57]Read from MH i2c: 01 07 00 44 1B 00 00 00 00 00 0E 0E 82 [00:48:57]RasterBufferAndPrint [00:48:57]line [00:48:57]line [00:48:57]line [00:48:57]line [00:48:57]line [00:48:57]written 0, free lines is 3599 [00:48:57]MH_Cut [00:48:57]Write to MH i2c: D1 01 00 4B 1B 01 38 [00:48:57]Write i2c OK [00:48:57]MH_I2C_Read... [00:48:57]Read from MH i2c: D1 [00:48:57]MH_I2C_Read... [00:48:57]Read from MH i2c: D1 01 00 [00:48:57]MH_I2C_Read... [00:48:57]Read from MH i2c: D1 01 00 4B 1B 00 37 [00:48:57]Write to MH i2c: 01 00 00 4C 1B 67 [00:48:57]Write i2c OK [00:48:57]MH_I2C_Read... [00:48:58]*** Cut start [00:48:58]*** Purtial cut [00:48:58]*** CUTSNS_PIN = 0 [00:48:58]*** Stage 1: CUTSNS_PIN = 1 [00:49:00]Read from MH i2c: 01 [00:49:00]MH_I2C_Read... [00:49:00]Read from MH i2c: 01 07 00 [00:49:00]MH_I2C_Read... [00:49:00]*** Stop cut motor [00:49:00]*** Cut end [00:49:00]Read from MH i2c: 01 07 00 4C 1B 00 00 00 00 00 FF 0F 7C [00:49:00]process_action print_text done [00:49:00]requested_data is exist [00:49:00]produce_requested_data [00:49:00]requested_item fm.sn is exist - process it [00:49:00]wFMCommunicate request_size=4 [00:49:00]MH_SAM_APDU [00:49:00]CAPDU: 80 11 00 00 [00:49:00]Write to MH i2c: E2 08 00 4D 1B 80 11 00 00 00 00 00 00 E2 [00:49:00]Write i2c OK [00:49:00]MH_I2C_Read... [00:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:00]Read from MH i2c: E2 [00:49:00]MH_I2C_Read... [00:49:00]Read from MH i2c: E2 17 00 [00:49:00]MH_I2C_Read... [00:49:00]Read from MH i2c: E2 17 00 4D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 38 [00:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:49:00]wFMCommunicate OK [00:49:00]requested_item fd.num is exist - process it [00:49:00]SAM_PROTO_GetFieldsCounters [00:49:00]wFMCommunicate request_size=4 [00:49:00]MH_SAM_APDU [00:49:00]CAPDU: 80 13 00 00 [00:49:00]Write to MH i2c: E2 08 00 4E 1B 80 13 00 00 00 00 00 00 E5 [00:49:00]Write i2c OK [00:49:00]MH_I2C_Read... [00:49:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:49:00]Read from MH i2c: E2 [00:49:00]MH_I2C_Read... [00:49:00]Read from MH i2c: E2 62 00 [00:49:00]MH_I2C_Read... [00:49:00]Read from MH i2c: E2 62 00 4E 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [00:49:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:49:00]wFMCommunicate OK [00:49:00]SAM_PROTO_GetFieldsCounters done [00:49:00]requested_item shift.num is exist - process it [00:49:00]requested_item shift.opened is exist - process it [00:49:00]req_shift_opened [00:49:00]FM_GetShiftState [00:49:00]SAM_PROTO_GetShiftState [00:49:00]wFMCommunicate request_size=4 [00:49:00]MH_SAM_APDU [00:49:00]CAPDU: 80 13 01 00 [00:49:00]Write to MH i2c: E2 08 00 4F 1B 80 13 01 00 00 00 00 00 E7 [00:49:00]Write i2c OK [00:49:00]MH_I2C_Read... [00:49:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:00]Read from MH i2c: E2 [00:49:00]MH_I2C_Read... [00:49:00]Read from MH i2c: E2 0E 00 [00:49:00]MH_I2C_Read... [00:49:00]Read from MH i2c: E2 0E 00 4F 1B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 4E [00:49:00]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [00:49:00]wFMCommunicate OK [00:49:00]SAM_PROTO_GetShiftState done [00:49:00]FM_GetShiftState done [00:49:00]req_shift_opened done [00:49:00]requested_item shift.open_date is exist - process it [00:49:00]req_shift_open_date [00:49:00]req_shift_open_date done [00:49:00]produce_requested_data done [00:49:00]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67764,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [00:49:00]process_action_free print_text [00:49:00]json_value_free [00:49:00]json_value_free done [00:49:00]process_json_proto returns [00:49:00]Send response to host [00:49:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67764,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [00:49:00]free response buf [00:49:00]execute_script done [00:49:00]execute_script returns [00:49:00]free content buf [00:49:00]Sock 7.Close socket [00:49:00]Sock 7.Thread stoped [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:24]accept exits with 9 [00:49:24]New connection [00:49:24]New thread 3066608996 created [00:49:24]Thread 3066752356 joined [00:49:24]Waiting for new connection... [00:49:24] Sock 9.Parse request [00:49:24]Sock 9.Check first char [00:49:24]Sock 9.First char is OK [00:49:24]request: POST /json_proto HTTP/1.0 [00:49:24]Method: POST [00:49:24]URL: /json_proto [00:49:24]Method is POST - this is cgi request [00:49:24]url: /json_proto [00:49:24]query_string will be loaded in cgi processing [00:49:24]execute_cgi json_proto POST (null) [00:49:24]execute_cgi path=json_proto method=POST [00:49:24]POST find Content-Length [00:49:24]Host: 172.17.41.195:8080 [00:49:24]Content-Length: 1211 [00:49:24]Content-Type: application/json [00:49:24] [00:49:24]POST finish read [00:49:24]Found Content-Length = 1211 [00:49:24]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)507923\u000A18.05.2024 00:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 668.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:49:24]execute_script... [00:49:24]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)507923\u000A18.05.2024 00:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 668.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:49:24]POST & json_proto [00:49:24]process_json_proto [00:49:24]json parsed OK: [00:49:24]protocol is kg_v1.0 [00:49:24]action value=print_text [00:49:24]process_action print_text [00:49:24]cmd_print_text [00:49:24]ExternCall_PrintAddStr [00:49:24]wPrintStart [00:49:24]Write to MH i2c: 01 00 00 50 1B 6B [00:49:24]Write i2c OK [00:49:24]MH_I2C_Read... [00:49:24]Read from MH i2c: 01 [00:49:24]MH_I2C_Read... [00:49:24]Read from MH i2c: 01 07 00 [00:49:24]MH_I2C_Read... [00:49:24]Read from MH i2c: 01 07 00 50 1B 00 00 00 00 00 FF 0F 80 [00:49:24]RasterBufferAndPrint [00:49:24]line *****ТОВАРНЫЙ ЧЕК***** [00:49:24]line АЗС-91 [00:49:24]line Партнер нефть [00:49:24]line 02508201610067 [00:49:24]line Кассир : Арстанбеков Н. [00:49:24]line Счет N : (1)507923 [00:49:24]line 18.05.2024 00:31 [00:49:24]line ПРОДАЖА [00:49:24]line ТРК (МРК, ГНК): 43 [00:49:24]line Вид ГСМ : 2710124130 [00:49:24]line Аи-92-К-5 [00:49:24]line 10.000 x 66.80 [00:49:24]line ИТОГ: 668.00 [00:49:24]line Тип оплаты: Талоны: Топливная Карта [00:49:24]line 02750 [00:49:24]line ______________________ [00:49:24]line (подпись) [00:49:24]written 0, free lines is 4095 [00:49:24]Write to MH i2c: 01 00 00 64 1B 7F [00:49:24]Write i2c OK [00:49:24]MH_I2C_Read... [00:49:24]Read from MH i2c: 01 [00:49:24]MH_I2C_Read... [00:49:24]Read from MH i2c: 01 07 00 [00:49:24]MH_I2C_Read... [00:49:24]Read from MH i2c: 01 07 00 64 1B 00 00 00 00 00 11 0E A5 [00:49:24]RasterBufferAndPrint [00:49:24]line [00:49:24]line [00:49:24]line [00:49:24]line [00:49:24]line [00:49:24]written 0, free lines is 3602 [00:49:24]MH_Cut [00:49:24]Write to MH i2c: D1 01 00 6B 1B 01 58 [00:49:24]Write i2c OK [00:49:24]MH_I2C_Read... [00:49:24]Read from MH i2c: D1 [00:49:24]MH_I2C_Read... [00:49:24]Read from MH i2c: D1 01 00 [00:49:24]MH_I2C_Read... [00:49:24]Read from MH i2c: D1 01 00 6B 1B 00 57 [00:49:24]Write to MH i2c: 01 00 00 6C 1B 87 [00:49:24]Write i2c OK [00:49:24]MH_I2C_Read... [00:49:24]*** Cut start [00:49:24]*** Purtial cut [00:49:24]*** Stage 1: CUTSNS_PIN = 1 [00:49:25]Read from MH i2c: 01 [00:49:25]MH_I2C_Read... [00:49:25]Read from MH i2c: 01 07 00 [00:49:25]MH_I2C_Read... [00:49:25]*** Stop cut motor [00:49:25]*** Cut end [00:49:25]Read from MH i2c: 01 07 00 6C 1B 00 00 00 00 00 FF 0F 9C [00:49:25]process_action print_text done [00:49:25]requested_data is exist [00:49:25]produce_requested_data [00:49:25]requested_item fm.sn is exist - process it [00:49:25]wFMCommunicate request_size=4 [00:49:25]MH_SAM_APDU [00:49:25]CAPDU: 80 11 00 00 [00:49:25]Write to MH i2c: E2 08 00 6D 1B 80 11 00 00 00 00 00 00 02 [00:49:25]Write i2c OK [00:49:25]MH_I2C_Read... [00:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:25]Read from MH i2c: E2 [00:49:25]MH_I2C_Read... [00:49:25]Read from MH i2c: E2 17 00 [00:49:25]MH_I2C_Read... [00:49:25]Read from MH i2c: E2 17 00 6D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 58 [00:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:49:25]wFMCommunicate OK [00:49:25]requested_item fd.num is exist - process it [00:49:25]SAM_PROTO_GetFieldsCounters [00:49:25]wFMCommunicate request_size=4 [00:49:25]MH_SAM_APDU [00:49:25]CAPDU: 80 13 00 00 [00:49:25]Write to MH i2c: E2 08 00 6E 1B 80 13 00 00 00 00 00 00 05 [00:49:25]Write i2c OK [00:49:25]MH_I2C_Read... [00:49:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:49:25]Read from MH i2c: E2 [00:49:25]MH_I2C_Read... [00:49:25]Read from MH i2c: E2 62 00 [00:49:25]MH_I2C_Read... [00:49:25]Read from MH i2c: E2 62 00 6E 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [00:49: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 B4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:49:25]wFMCommunicate OK [00:49:25]SAM_PROTO_GetFieldsCounters done [00:49:25]requested_item shift.num is exist - process it [00:49:25]requested_item shift.opened is exist - process it [00:49:25]req_shift_opened [00:49:25]FM_GetShiftState [00:49:25]SAM_PROTO_GetShiftState [00:49:25]wFMCommunicate request_size=4 [00:49:25]MH_SAM_APDU [00:49:25]CAPDU: 80 13 01 00 [00:49:25]Write to MH i2c: E2 08 00 6F 1B 80 13 01 00 00 00 00 00 07 [00:49:25]Write i2c OK [00:49:25]MH_I2C_Read... [00:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:25]Read from MH i2c: E2 [00:49:25]MH_I2C_Read... [00:49:25]Read from MH i2c: E2 0E 00 [00:49:25]MH_I2C_Read... [00:49:25]Read from MH i2c: E2 0E 00 6F 1B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 6E [00:49:25]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [00:49:25]wFMCommunicate OK [00:49:25]SAM_PROTO_GetShiftState done [00:49:25]FM_GetShiftState done [00:49:25]req_shift_opened done [00:49:25]requested_item shift.open_date is exist - process it [00:49:25]req_shift_open_date [00:49:25]req_shift_open_date done [00:49:25]produce_requested_data done [00:49:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67764,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [00:49:25]process_action_free print_text [00:49:25]json_value_free [00:49:25]json_value_free done [00:49:25]process_json_proto returns [00:49:25]Send response to host [00:49:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67764,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [00:49:25]free response buf [00:49:25]execute_script done [00:49:25]execute_script returns [00:49:25]free content buf [00:49:25]Sock 9.Close socket [00:49:25]Sock 9.Thread stoped [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:00]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:20]OFD Sender: No OFD packet to send [00:51:25]OFD Sender: No OFD packet to send [00:51:30]OFD Sender: No OFD packet to send [00:51:35]OFD Sender: No OFD packet to send [00:51:40]OFD Sender: No OFD packet to send [00:51:45]OFD Sender: No OFD packet to send [00:51:50]OFD Sender: No OFD packet to send [00:51:55]OFD Sender: No OFD packet to send [00:52:00]OFD Sender: No OFD packet to send [00:52:05]OFD Sender: No OFD packet to send [00:52:10]OFD Sender: No OFD packet to send [00:52:15]OFD Sender: No OFD packet to send [00:52:20]OFD Sender: No OFD packet to send [00:52:25]OFD Sender: No OFD packet to send [00:52:30]OFD Sender: No OFD packet to send [00:52:35]OFD Sender: No OFD packet to send [00:52:40]OFD Sender: No OFD packet to send [00:52:45]OFD Sender: No OFD packet to send [00:52:50]OFD Sender: No OFD packet to send [00:52:55]OFD Sender: No OFD packet to send [00:53:00]OFD Sender: No OFD packet to send [00:53:05]OFD Sender: No OFD packet to send [00:53:10]OFD Sender: No OFD packet to send [00:53:15]OFD Sender: No OFD packet to send [00:53:20]OFD Sender: No OFD packet to send [00:53:25]OFD Sender: No OFD packet to send [00:53:30]OFD Sender: No OFD packet to send [00:53:35]OFD Sender: No OFD packet to send [00:53:40]OFD Sender: No OFD packet to send [00:53:45]OFD Sender: No OFD packet to send [00:53:50]OFD Sender: No OFD packet to send [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [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:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:36]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:11]OFD Sender: No OFD packet to send [01:00:16]OFD Sender: No OFD packet to send [01:00:21]OFD Sender: No OFD packet to send [01:00:26]OFD Sender: No OFD packet to send [01:00:31]OFD Sender: No OFD packet to send [01:00:36]OFD Sender: No OFD packet to send [01:00:41]OFD Sender: No OFD packet to send [01:00:46]OFD Sender: No OFD packet to send [01:00:51]OFD Sender: No OFD packet to send [01:00:56]OFD Sender: No OFD packet to send [01:01:01]OFD Sender: No OFD packet to send [01:01:06]OFD Sender: No OFD packet to send [01:01:11]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:21]OFD Sender: No OFD packet to send [01:01:26]OFD Sender: No OFD packet to send [01:01:31]OFD Sender: No OFD packet to send [01:01:36]OFD Sender: No OFD packet to send [01:01:41]OFD Sender: No OFD packet to send [01:01:46]OFD Sender: No OFD packet to send [01:01:51]OFD Sender: No OFD packet to send [01:01:56]OFD Sender: No OFD packet to send [01:02:01]OFD Sender: No OFD packet to send [01:02:06]OFD Sender: No OFD packet to send [01:02:11]OFD Sender: No OFD packet to send [01:02:16]OFD Sender: No OFD packet to send [01:02:21]OFD Sender: No OFD packet to send [01:02:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:46]OFD Sender: No OFD packet to send [01:03:51]OFD Sender: No OFD packet to send [01:03:56]OFD Sender: No OFD packet to send [01:04:01]OFD Sender: No OFD packet to send [01:04:06]OFD Sender: No OFD packet to send [01:04:11]OFD Sender: No OFD packet to send [01:04:16]OFD Sender: No OFD packet to send [01:04:21]OFD Sender: No OFD packet to send [01:04:26]OFD Sender: No OFD packet to send [01:04:31]OFD Sender: No OFD packet to send [01:04:35]accept exits with 7 [01:04:35]New connection [01:04:35]New thread 3066752356 created [01:04:35]Thread 3066608996 joined [01:04:35]Waiting for new connection... [01:04:35] Sock 7.Parse request [01:04:35]Sock 7.Check first char [01:04:35]Sock 7.First char is OK [01:04:35]request: POST /json_proto HTTP/1.0 [01:04:35]Method: POST [01:04:35]URL: /json_proto [01:04:35]Method is POST - this is cgi request [01:04:35]url: /json_proto [01:04:35]query_string will be loaded in cgi processing [01:04:35]execute_cgi json_proto POST (null) [01:04:35]execute_cgi path=json_proto method=POST [01:04:35]POST find Content-Length [01:04:35]Host: 172.17.41.195:8080 [01:04:35]Content-Length: 1209 [01:04:35]Content-Type: application/json [01:04:35] [01:04:35]POST finish read [01:04:35]Found Content-Length = 1209 [01:04: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)507925\u000A18.05.2024 00:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:04:35]execute_script... [01:04: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)507925\u000A18.05.2024 00:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:04:35]POST & json_proto [01:04:35]process_json_proto [01:04:35]json parsed OK: [01:04:35]protocol is kg_v1.0 [01:04:35]action value=print_text [01:04:35]process_action print_text [01:04:35]cmd_print_text [01:04:35]ExternCall_PrintAddStr [01:04:35]wPrintStart [01:04:35]Write to MH i2c: 01 00 00 70 1B 8B [01:04:35]Write i2c OK [01:04:35]MH_I2C_Read... [01:04:35]Read from MH i2c: 01 [01:04:35]MH_I2C_Read... [01:04:35]Read from MH i2c: 01 07 00 [01:04:35]MH_I2C_Read... [01:04:35]Read from MH i2c: 01 07 00 70 1B 00 00 00 00 00 FF 0F A0 [01:04:35]RasterBufferAndPrint [01:04:35]line *****ТОВАРНЫЙ ЧЕК***** [01:04:35]line АЗС-91 [01:04:35]line Партнер нефть [01:04:35]line 02508201610067 [01:04:35]line Кассир : Арстанбеков Н. [01:04:35]line Счет N : (1)507925 [01:04:35]line 18.05.2024 00:47 [01:04:35]line ПРОДАЖА [01:04:35]line ТРК (МРК, ГНК): 11 [01:04:35]line Вид ГСМ : 2710194210 [01:04:35]line ДТ-К-5 [01:04:35]line 40.000 x 74.70 [01:04:35]line ИТОГ: 2988.00 [01:04:35]line Тип оплаты: Талоны: Топливная Карта [01:04:35]line 02750 [01:04:35]line ______________________ [01:04:35]line (подпись) [01:04:35]written 0, free lines is 4095 [01:04:35]Write to MH i2c: 01 00 00 84 1B 9F [01:04:35]Write i2c OK [01:04:35]MH_I2C_Read... [01:04:35]Read from MH i2c: 01 [01:04:35]MH_I2C_Read... [01:04:35]Read from MH i2c: 01 07 00 [01:04:35]MH_I2C_Read... [01:04:35]Read from MH i2c: 01 07 00 84 1B 00 00 00 00 00 0F 0E C3 [01:04:35]RasterBufferAndPrint [01:04:35]line [01:04:35]line [01:04:35]line [01:04:35]line [01:04:35]line [01:04:35]written 0, free lines is 3601 [01:04:35]MH_Cut [01:04:35]Write to MH i2c: D1 01 00 8B 1B 01 78 [01:04:35]Write i2c OK [01:04:35]MH_I2C_Read... [01:04:35]Read from MH i2c: D1 [01:04:35]MH_I2C_Read... [01:04:35]Read from MH i2c: D1 01 00 [01:04:35]MH_I2C_Read... [01:04:35]Read from MH i2c: D1 01 00 8B 1B 00 77 [01:04:35]Write to MH i2c: 01 00 00 8C 1B A7 [01:04:35]Write i2c OK [01:04:35]MH_I2C_Read... [01:04:36]OFD Sender: No OFD packet to send [01:04:36]*** Cut start [01:04:36]*** Purtial cut [01:04:36]*** CUTSNS_PIN = 0 [01:04:36]*** Stage 1: CUTSNS_PIN = 1 [01:04:38]Read from MH i2c: 01 [01:04:38]MH_I2C_Read... [01:04:38]*** Stop cut motor [01:04:38]*** Cut end [01:04:38]Read from MH i2c: 01 07 00 [01:04:38]MH_I2C_Read... [01:04:38]Read from MH i2c: 01 07 00 8C 1B 00 00 00 00 00 FF 0F BC [01:04:38]process_action print_text done [01:04:38]requested_data is exist [01:04:38]produce_requested_data [01:04:38]requested_item fm.sn is exist - process it [01:04:38]wFMCommunicate request_size=4 [01:04:38]MH_SAM_APDU [01:04:38]CAPDU: 80 11 00 00 [01:04:38]Write to MH i2c: E2 08 00 8D 1B 80 11 00 00 00 00 00 00 22 [01:04:38]Write i2c OK [01:04:38]MH_I2C_Read... [01:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:04:38]Read from MH i2c: E2 [01:04:38]MH_I2C_Read... [01:04:38]Read from MH i2c: E2 17 00 [01:04:38]MH_I2C_Read... [01:04:38]Read from MH i2c: E2 17 00 8D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 78 [01:04:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [01:04:38]wFMCommunicate OK [01:04:38]requested_item fd.num is exist - process it [01:04:38]SAM_PROTO_GetFieldsCounters [01:04:38]wFMCommunicate request_size=4 [01:04:38]MH_SAM_APDU [01:04:38]CAPDU: 80 13 00 00 [01:04:38]Write to MH i2c: E2 08 00 8E 1B 80 13 00 00 00 00 00 00 25 [01:04:38]Write i2c OK [01:04:38]MH_I2C_Read... [01:04:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:04:38]Read from MH i2c: E2 [01:04:38]MH_I2C_Read... [01:04:38]Read from MH i2c: E2 62 00 [01:04:38]MH_I2C_Read... [01:04:38]Read from MH i2c: E2 62 00 8E 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [01:04: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 B4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:04:38]wFMCommunicate OK [01:04:38]SAM_PROTO_GetFieldsCounters done [01:04:38]requested_item shift.num is exist - process it [01:04:38]requested_item shift.opened is exist - process it [01:04:38]req_shift_opened [01:04:38]FM_GetShiftState [01:04:38]SAM_PROTO_GetShiftState [01:04:38]wFMCommunicate request_size=4 [01:04:38]MH_SAM_APDU [01:04:38]CAPDU: 80 13 01 00 [01:04:38]Write to MH i2c: E2 08 00 8F 1B 80 13 01 00 00 00 00 00 27 [01:04:38]Write i2c OK [01:04:38]MH_I2C_Read... [01:04:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:04:38]Read from MH i2c: E2 [01:04:38]MH_I2C_Read... [01:04:38]Read from MH i2c: E2 0E 00 [01:04:38]MH_I2C_Read... [01:04:38]Read from MH i2c: E2 0E 00 8F 1B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 8E [01:04:38]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [01:04:38]wFMCommunicate OK [01:04:38]SAM_PROTO_GetShiftState done [01:04:38]FM_GetShiftState done [01:04:38]req_shift_opened done [01:04:38]requested_item shift.open_date is exist - process it [01:04:38]req_shift_open_date [01:04:38]req_shift_open_date done [01:04:38]produce_requested_data done [01:04:38]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67764,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [01:04:38]process_action_free print_text [01:04:38]json_value_free [01:04:38]json_value_free done [01:04:38]process_json_proto returns [01:04:38]Send response to host [01:04:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67764,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [01:04:38]free response buf [01:04:38]execute_script done [01:04:38]execute_script returns [01:04:38]free content buf [01:04:38]Sock 7.Close socket [01:04:38]Sock 7.Thread stoped [01:04:41]OFD Sender: No OFD packet to send [01:04:46]OFD Sender: No OFD packet to send [01:04:51]OFD Sender: No OFD packet to send [01:04:56]OFD Sender: No OFD packet to send [01:05:01]OFD Sender: No OFD packet to send [01:05:06]OFD Sender: No OFD packet to send [01:05:11]OFD Sender: No OFD packet to send [01:05:16]OFD Sender: No OFD packet to send [01:05:21]OFD Sender: No OFD packet to send [01:05:26]OFD Sender: No OFD packet to send [01:05:31]OFD Sender: No OFD packet to send [01:05:36]OFD Sender: No OFD packet to send [01:05:41]OFD Sender: No OFD packet to send [01:05:46]OFD Sender: No OFD packet to send [01:05:51]OFD Sender: No OFD packet to send [01:05:56]OFD Sender: No OFD packet to send [01:06:01]OFD Sender: No OFD packet to send [01:06:06]OFD Sender: No OFD packet to send [01:06:11]OFD Sender: No OFD packet to send [01:06:16]OFD Sender: No OFD packet to send [01:06:21]OFD Sender: No OFD packet to send [01:06:26]OFD Sender: No OFD packet to send [01:06:31]OFD Sender: No OFD packet to send [01:06:36]OFD Sender: No OFD packet to send [01:06:41]OFD Sender: No OFD packet to send [01:06:46]OFD Sender: No OFD packet to send [01:06:51]OFD Sender: No OFD packet to send [01:06:56]OFD Sender: No OFD packet to send [01:07:01]OFD Sender: No OFD packet to send [01:07:06]OFD Sender: No OFD packet to send [01:07:11]OFD Sender: No OFD packet to send [01:07:16]OFD Sender: No OFD packet to send [01:07:21]OFD Sender: No OFD packet to send [01:07:26]OFD Sender: No OFD packet to send [01:07:31]OFD Sender: No OFD packet to send [01:07:36]OFD Sender: No OFD packet to send [01:07:41]OFD Sender: No OFD packet to send [01:07:46]OFD Sender: No OFD packet to send [01:07:51]OFD Sender: No OFD packet to send [01:07:56]OFD Sender: No OFD packet to send [01:08:01]OFD Sender: No OFD packet to send [01:08:06]OFD Sender: No OFD packet to send [01:08:11]OFD Sender: No OFD packet to send [01:08:16]OFD Sender: No OFD packet to send [01:08:21]OFD Sender: No OFD packet to send [01:08:26]OFD Sender: No OFD packet to send [01:08:31]OFD Sender: No OFD packet to send [01:08:36]OFD Sender: No OFD packet to send [01:08:41]OFD Sender: No OFD packet to send [01:08:46]OFD Sender: No OFD packet to send [01:08:51]OFD Sender: No OFD packet to send [01:08:56]OFD Sender: No OFD packet to send [01:09:01]OFD Sender: No OFD packet to send [01:09:06]OFD Sender: No OFD packet to send [01:09:11]OFD Sender: No OFD packet to send [01:09:16]OFD Sender: No OFD packet to send [01:09:21]OFD Sender: No OFD packet to send [01:09:26]OFD Sender: No OFD packet to send [01:09:31]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:26]OFD Sender: No OFD packet to send [01:10:31]OFD Sender: No OFD packet to send [01:10:36]OFD Sender: No OFD packet to send [01:10:41]OFD Sender: No OFD packet to send [01:10:46]OFD Sender: No OFD packet to send [01:10:51]OFD Sender: No OFD packet to send [01:10:56]OFD Sender: No OFD packet to send [01:11:01]OFD Sender: No OFD packet to send [01:11:06]OFD Sender: No OFD packet to send [01:11:11]OFD Sender: No OFD packet to send [01:11:16]OFD Sender: No OFD packet to send [01:11:21]OFD Sender: No OFD packet to send [01:11:26]OFD Sender: No OFD packet to send [01:11:31]OFD Sender: No OFD packet to send [01:11:36]OFD Sender: No OFD packet to send [01:11:41]OFD Sender: No OFD packet to send [01:11:46]OFD Sender: No OFD packet to send [01:11:51]OFD Sender: No OFD packet to send [01:11:56]OFD Sender: No OFD packet to send [01:12:01]OFD Sender: No OFD packet to send [01:12:06]OFD Sender: No OFD packet to send [01:12:11]OFD Sender: No OFD packet to send [01:12:16]OFD Sender: No OFD packet to send [01:12:21]OFD Sender: No OFD packet to send [01:12:26]OFD Sender: No OFD packet to send [01:12:31]OFD Sender: No OFD packet to send [01:12:36]OFD Sender: No OFD packet to send [01:12:41]OFD Sender: No OFD packet to send [01:12:46]OFD Sender: No OFD packet to send [01:12:51]OFD Sender: No OFD packet to send [01:12:56]OFD Sender: No OFD packet to send [01:13:01]OFD Sender: No OFD packet to send [01:13:06]OFD Sender: No OFD packet to send [01:13:11]OFD Sender: No OFD packet to send [01:13:16]OFD Sender: No OFD packet to send [01:13:21]OFD Sender: No OFD packet to send [01:13:26]OFD Sender: No OFD packet to send [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:56]OFD Sender: No OFD packet to send [01:14:01]OFD Sender: No OFD packet to send [01:14:06]OFD Sender: No OFD packet to send [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:07]OFD Sender: No OFD packet to send [01:17:12]OFD Sender: No OFD packet to send [01:17:17]OFD Sender: No OFD packet to send [01:17:22]OFD Sender: No OFD packet to send [01:17:27]OFD Sender: No OFD packet to send [01:17:32]OFD Sender: No OFD packet to send [01:17:37]OFD Sender: No OFD packet to send [01:17:42]OFD Sender: No OFD packet to send [01:17:47]OFD Sender: No OFD packet to send [01:17:52]OFD Sender: No OFD packet to send [01:17:57]OFD Sender: No OFD packet to send [01:18:02]OFD Sender: No OFD packet to send [01:18:07]OFD Sender: No OFD packet to send [01:18:12]OFD Sender: No OFD packet to send [01:18:17]OFD Sender: No OFD packet to send [01:18:22]OFD Sender: No OFD packet to send [01:18:27]OFD Sender: No OFD packet to send [01:18:32]OFD Sender: No OFD packet to send [01:18:37]OFD Sender: No OFD packet to send [01:18:42]OFD Sender: No OFD packet to send [01:18:47]OFD Sender: No OFD packet to send [01:18:52]OFD Sender: No OFD packet to send [01:18:57]OFD Sender: No OFD packet to send [01:19:02]OFD Sender: No OFD packet to send [01:19:07]OFD Sender: No OFD packet to send [01:19:12]OFD Sender: No OFD packet to send [01:19:17]OFD Sender: No OFD packet to send [01:19:22]OFD Sender: No OFD packet to send [01:19:27]OFD Sender: No OFD packet to send [01:19:32]OFD Sender: No OFD packet to send [01:19:37]OFD Sender: No OFD packet to send [01:19:42]OFD Sender: No OFD packet to send [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:07]OFD Sender: No OFD packet to send [01:20:12]OFD Sender: No OFD packet to send [01:20:17]OFD Sender: No OFD packet to send [01:20:22]OFD Sender: No OFD packet to send [01:20:27]OFD Sender: No OFD packet to send [01:20:32]OFD Sender: No OFD packet to send [01:20:37]OFD Sender: No OFD packet to send [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [01:21:17]OFD Sender: No OFD packet to send [01:21:22]OFD Sender: No OFD packet to send [01:21:27]OFD Sender: No OFD packet to send [01:21:32]OFD Sender: No OFD packet to send [01:21:37]OFD Sender: No OFD packet to send [01:21:42]OFD Sender: No OFD packet to send [01:21:47]OFD Sender: No OFD packet to send [01:21:52]OFD Sender: No OFD packet to send [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:07]OFD Sender: No OFD packet to send [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:37]OFD Sender: No OFD packet to send [01:22:42]OFD Sender: No OFD packet to send [01:22:47]OFD Sender: No OFD packet to send [01:22:52]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:07]OFD Sender: No OFD packet to send [01:23:12]OFD Sender: No OFD packet to send [01:23:17]OFD Sender: No OFD packet to send [01:23:22]OFD Sender: No OFD packet to send [01:23:27]OFD Sender: No OFD packet to send [01:23:32]OFD Sender: No OFD packet to send [01:23:37]OFD Sender: No OFD packet to send [01:23:42]OFD Sender: No OFD packet to send [01:23:47]OFD Sender: No OFD packet to send [01:23:52]OFD Sender: No OFD packet to send [01:23:57]OFD Sender: No OFD packet to send [01:24:02]OFD Sender: No OFD packet to send [01:24:07]OFD Sender: No OFD packet to send [01:24:12]OFD Sender: No OFD packet to send [01:24:17]OFD Sender: No OFD packet to send [01:24:22]OFD Sender: No OFD packet to send [01:24:27]OFD Sender: No OFD packet to send [01:24:32]OFD Sender: No OFD packet to send [01:24:37]OFD Sender: No OFD packet to send [01:24:42]OFD Sender: No OFD packet to send [01:24:47]OFD Sender: No OFD packet to send [01:24:52]OFD Sender: No OFD packet to send [01:24:57]OFD Sender: No OFD packet to send [01:25:02]OFD Sender: No OFD packet to send [01:25:07]OFD Sender: No OFD packet to send [01:25:12]OFD Sender: No OFD packet to send [01:25:17]OFD Sender: No OFD packet to send [01:25:22]OFD Sender: No OFD packet to send [01:25:27]OFD Sender: No OFD packet to send [01:25:32]OFD Sender: No OFD packet to send [01:25:37]OFD Sender: No OFD packet to send [01:25:42]OFD Sender: No OFD packet to send [01:25:47]OFD Sender: No OFD packet to send [01:25:52]OFD Sender: No OFD packet to send [01:25:57]OFD Sender: No OFD packet to send [01:26:02]OFD Sender: No OFD packet to send [01:26:07]OFD Sender: No OFD packet to send [01:26:12]OFD Sender: No OFD packet to send [01:26:17]OFD Sender: No OFD packet to send [01:26:22]OFD Sender: No OFD packet to send [01:26:27]OFD Sender: No OFD packet to send [01:26:32]OFD Sender: No OFD packet to send [01:26:37]OFD Sender: No OFD packet to send [01:26:42]OFD Sender: No OFD packet to send [01:26:47]OFD Sender: No OFD packet to send [01:26:52]OFD Sender: No OFD packet to send [01:26:57]OFD Sender: No OFD packet to send [01:27:02]OFD Sender: No OFD packet to send [01:27:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:02]OFD Sender: No OFD packet to send [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:42]OFD Sender: No OFD packet to send [01:33:47]OFD Sender: No OFD packet to send [01:33:52]OFD Sender: No OFD packet to send [01:33:57]OFD Sender: No OFD packet to send [01:34:02]OFD Sender: No OFD packet to send [01:34:07]OFD Sender: No OFD packet to send [01:34:12]OFD Sender: No OFD packet to send [01:34:17]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:37]OFD Sender: No OFD packet to send [01:34:42]OFD Sender: No OFD packet to send [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:28]OFD Sender: No OFD packet to send [01:36:33]OFD Sender: No OFD packet to send [01:36:38]OFD Sender: No OFD packet to send [01:36:43]OFD Sender: No OFD packet to send [01:36:48]OFD Sender: No OFD packet to send [01:36:53]OFD Sender: No OFD packet to send [01:36:58]OFD Sender: No OFD packet to send [01:37:03]OFD Sender: No OFD packet to send [01:37:08]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:33]OFD Sender: No OFD packet to send [01:37:38]OFD Sender: No OFD packet to send [01:37:43]OFD Sender: No OFD packet to send [01:37:48]OFD Sender: No OFD packet to send [01:37:53]OFD Sender: No OFD packet to send [01:37:58]OFD Sender: No OFD packet to send [01:38:03]OFD Sender: No OFD packet to send [01:38:08]OFD Sender: No OFD packet to send [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]OFD Sender: No OFD packet to send [01:38:43]OFD Sender: No OFD packet to send [01:38:48]OFD Sender: No OFD packet to send [01:38:53]OFD Sender: No OFD packet to send [01:38:58]OFD Sender: No OFD packet to send [01:39:03]OFD Sender: No OFD packet to send [01:39:08]OFD Sender: No OFD packet to send [01:39:13]OFD Sender: No OFD packet to send [01:39:18]OFD Sender: No OFD packet to send [01:39:23]OFD Sender: No OFD packet to send [01:39:28]OFD Sender: No OFD packet to send [01:39:33]OFD Sender: No OFD packet to send [01:39:38]OFD Sender: No OFD packet to send [01:39:43]OFD Sender: No OFD packet to send [01:39:48]OFD Sender: No OFD packet to send [01:39:53]OFD Sender: No OFD packet to send [01:39:58]OFD Sender: No OFD packet to send [01:40:03]OFD Sender: No OFD packet to send [01:40:08]OFD Sender: No OFD packet to send [01:40:13]OFD Sender: No OFD packet to send [01:40:18]OFD Sender: No OFD packet to send [01:40:23]OFD Sender: No OFD packet to send [01:40:28]OFD Sender: No OFD packet to send [01:40:33]OFD Sender: No OFD packet to send [01:40:38]OFD Sender: No OFD packet to send [01:40:43]OFD Sender: No OFD packet to send [01:40:48]OFD Sender: No OFD packet to send [01:40:53]OFD Sender: No OFD packet to send [01:40:58]OFD Sender: No OFD packet to send [01:41:03]OFD Sender: No OFD packet to send [01:41:08]OFD Sender: No OFD packet to send [01:41:13]OFD Sender: No OFD packet to send [01:41:18]OFD Sender: No OFD packet to send [01:41:23]OFD Sender: No OFD packet to send [01:41:28]OFD Sender: No OFD packet to send [01:41:33]OFD Sender: No OFD packet to send [01:41:38]OFD Sender: No OFD packet to send [01:41:43]OFD Sender: No OFD packet to send [01:41:48]OFD Sender: No OFD packet to send [01:41:53]OFD Sender: No OFD packet to send [01:41:58]OFD Sender: No OFD packet to send [01:42:03]OFD Sender: No OFD packet to send [01:42:08]OFD Sender: No OFD packet to send [01:42:13]OFD Sender: No OFD packet to send [01:42:18]OFD Sender: No OFD packet to send [01:42:23]OFD Sender: No OFD packet to send [01:42:28]OFD Sender: No OFD packet to send [01:42:33]OFD Sender: No OFD packet to send [01:42:38]OFD Sender: No OFD packet to send [01:42:43]OFD Sender: No OFD packet to send [01:42:48]OFD Sender: No OFD packet to send [01:42:53]OFD Sender: No OFD packet to send [01:42:58]OFD Sender: No OFD packet to send [01:43:03]OFD Sender: No OFD packet to send [01:43:08]OFD Sender: No OFD packet to send [01:43:13]OFD Sender: No OFD packet to send [01:43:18]OFD Sender: No OFD packet to send [01:43:23]OFD Sender: No OFD packet to send [01:43:28]OFD Sender: No OFD packet to send [01:43:33]OFD Sender: No OFD packet to send [01:43:38]OFD Sender: No OFD packet to send [01:43:43]OFD Sender: No OFD packet to send [01:43:48]OFD Sender: No OFD packet to send [01:43:53]OFD Sender: No OFD packet to send [01:43:58]OFD Sender: No OFD packet to send [01:44:03]OFD Sender: No OFD packet to send [01:44:08]OFD Sender: No OFD packet to send [01:44:13]OFD Sender: No OFD packet to send [01:44:18]OFD Sender: No OFD packet to send [01:44:23]OFD Sender: No OFD packet to send [01:44:28]OFD Sender: No OFD packet to send [01:44:33]OFD Sender: No OFD packet to send [01:44:38]OFD Sender: No OFD packet to send [01:44:43]OFD Sender: No OFD packet to send [01:44:48]OFD Sender: No OFD packet to send [01:44:53]OFD Sender: No OFD packet to send [01:44:58]OFD Sender: No OFD packet to send [01:45:03]OFD Sender: No OFD packet to send [01:45:08]OFD Sender: No OFD packet to send [01:45:13]OFD Sender: No OFD packet to send [01:45:18]OFD Sender: No OFD packet to send [01:45:23]OFD Sender: No OFD packet to send [01:45:28]OFD Sender: No OFD packet to send [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:53]OFD Sender: No OFD packet to send [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:13]OFD Sender: No OFD packet to send [01:46:18]OFD Sender: No OFD packet to send [01:46:23]OFD Sender: No OFD packet to send [01:46:28]OFD Sender: No OFD packet to send [01:46:33]OFD Sender: No OFD packet to send [01:46:38]OFD Sender: No OFD packet to send [01:46:43]OFD Sender: No OFD packet to send [01:46:48]OFD Sender: No OFD packet to send [01:46:53]OFD Sender: No OFD packet to send [01:46:58]OFD Sender: No OFD packet to send [01:47:03]OFD Sender: No OFD packet to send [01:47:08]OFD Sender: No OFD packet to send [01:47:13]OFD Sender: No OFD packet to send [01:47:18]OFD Sender: No OFD packet to send [01:47:23]OFD Sender: No OFD packet to send [01:47:28]OFD Sender: No OFD packet to send [01:47:33]OFD Sender: No OFD packet to send [01:47:38]OFD Sender: No OFD packet to send [01:47:43]OFD Sender: No OFD packet to send [01:47:48]OFD Sender: No OFD packet to send [01:47:53]OFD Sender: No OFD packet to send [01:47:58]OFD Sender: No OFD packet to send [01:48:03]OFD Sender: No OFD packet to send [01:48:08]OFD Sender: No OFD packet to send [01:48:13]OFD Sender: No OFD packet to send [01:48:18]OFD Sender: No OFD packet to send [01:48:23]OFD Sender: No OFD packet to send [01:48:28]OFD Sender: No OFD packet to send [01:48:33]OFD Sender: No OFD packet to send [01:48:38]OFD Sender: No OFD packet to send [01:48:43]OFD Sender: No OFD packet to send [01:48:48]OFD Sender: No OFD packet to send [01:48:53]OFD Sender: No OFD packet to send [01:48:58]OFD Sender: No OFD packet to send [01:49:03]OFD Sender: No OFD packet to send [01:49:08]OFD Sender: No OFD packet to send [01:49:13]OFD Sender: No OFD packet to send [01:49:18]OFD Sender: No OFD packet to send [01:49:23]OFD Sender: No OFD packet to send [01:49:28]OFD Sender: No OFD packet to send [01:49:33]OFD Sender: No OFD packet to send [01:49:38]OFD Sender: No OFD packet to send [01:49:43]OFD Sender: No OFD packet to send [01:49:48]OFD Sender: No OFD packet to send [01:49:53]OFD Sender: No OFD packet to send [01:49:58]OFD Sender: No OFD packet to send [01:50:03]OFD Sender: No OFD packet to send [01:50:08]OFD Sender: No OFD packet to send [01:50:13]OFD Sender: No OFD packet to send [01:50:18]OFD Sender: No OFD packet to send [01:50:23]OFD Sender: No OFD packet to send [01:50:28]OFD Sender: No OFD packet to send [01:50:33]OFD Sender: No OFD packet to send [01:50:38]OFD Sender: No OFD packet to send [01:50:43]OFD Sender: No OFD packet to send [01:50:48]OFD Sender: No OFD packet to send [01:50:53]OFD Sender: No OFD packet to send [01:50:58]OFD Sender: No OFD packet to send [01:51:03]OFD Sender: No OFD packet to send [01:51:08]OFD Sender: No OFD packet to send [01:51:13]OFD Sender: No OFD packet to send [01:51:18]OFD Sender: No OFD packet to send [01:51:23]OFD Sender: No OFD packet to send [01:51:28]OFD Sender: No OFD packet to send [01:51:33]OFD Sender: No OFD packet to send [01:51:38]OFD Sender: No OFD packet to send [01:51:43]OFD Sender: No OFD packet to send [01:51:48]OFD Sender: No OFD packet to send [01:51:53]OFD Sender: No OFD packet to send [01:51:58]OFD Sender: No OFD packet to send [01:52:03]OFD Sender: No OFD packet to send [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:49]OFD Sender: No OFD packet to send [01:56:54]OFD Sender: No OFD packet to send [01:56:59]OFD Sender: No OFD packet to send [01:57:04]OFD Sender: No OFD packet to send [01:57:09]OFD Sender: No OFD packet to send [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:19]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [01:58:59]OFD Sender: No OFD packet to send [01:59:04]OFD Sender: No OFD packet to send [01:59:09]OFD Sender: No OFD packet to send [01:59:14]OFD Sender: No OFD packet to send [01:59:19]OFD Sender: No OFD packet to send [01:59:24]OFD Sender: No OFD packet to send [01:59:29]OFD Sender: No OFD packet to send [01:59:34]OFD Sender: No OFD packet to send [01:59:39]OFD Sender: No OFD packet to send [01:59:44]OFD Sender: No OFD packet to send [01:59:49]OFD Sender: No OFD packet to send [01:59:54]OFD Sender: No OFD packet to send [01:59:59]OFD Sender: No OFD packet to send [02:00:04]OFD Sender: No OFD packet to send [02:00:09]OFD Sender: No OFD packet to send [02:00:14]OFD Sender: No OFD packet to send [02:00:19]OFD Sender: No OFD packet to send [02:00:24]OFD Sender: No OFD packet to send [02:00:29]OFD Sender: No OFD packet to send [02:00:34]OFD Sender: No OFD packet to send [02:00:39]OFD Sender: No OFD packet to send [02:00:44]OFD Sender: No OFD packet to send [02:00:49]OFD Sender: No OFD packet to send [02:00:54]OFD Sender: No OFD packet to send [02:00:59]OFD Sender: No OFD packet to send [02:01:04]OFD Sender: No OFD packet to send [02:01:09]OFD Sender: No OFD packet to send [02:01:14]OFD Sender: No OFD packet to send [02:01:19]OFD Sender: No OFD packet to send [02:01:24]OFD Sender: No OFD packet to send [02:01:29]OFD Sender: No OFD packet to send [02:01:34]OFD Sender: No OFD packet to send [02:01:39]OFD Sender: No OFD packet to send [02:01:44]OFD Sender: No OFD packet to send [02:01:49]OFD Sender: No OFD packet to send [02:01:54]OFD Sender: No OFD packet to send [02:01:59]OFD Sender: No OFD packet to send [02:02:04]OFD Sender: No OFD packet to send [02:02:09]OFD Sender: No OFD packet to send [02:02:14]OFD Sender: No OFD packet to send [02:02:19]OFD Sender: No OFD packet to send [02:02:24]OFD Sender: No OFD packet to send [02:02:29]OFD Sender: No OFD packet to send [02:02:34]OFD Sender: No OFD packet to send [02:02:39]OFD Sender: No OFD packet to send [02:02:44]OFD Sender: No OFD packet to send [02:02:49]OFD Sender: No OFD packet to send [02:02:54]OFD Sender: No OFD packet to send [02:02:59]OFD Sender: No OFD packet to send [02:03:04]OFD Sender: No OFD packet to send [02:03:09]OFD Sender: No OFD packet to send [02:03:14]OFD Sender: No OFD packet to send [02:03:19]OFD Sender: No OFD packet to send [02:03:24]OFD Sender: No OFD packet to send [02:03:29]OFD Sender: No OFD packet to send [02:03:34]OFD Sender: No OFD packet to send [02:03:39]OFD Sender: No OFD packet to send [02:03:44]OFD Sender: No OFD packet to send [02:03:49]OFD Sender: No OFD packet to send [02:03:54]OFD Sender: No OFD packet to send [02:03:59]OFD Sender: No OFD packet to send [02:04:04]OFD Sender: No OFD packet to send [02:04:09]OFD Sender: No OFD packet to send [02:04:14]OFD Sender: No OFD packet to send [02:04:19]OFD Sender: No OFD packet to send [02:04:24]OFD Sender: No OFD packet to send [02:04:29]OFD Sender: No OFD packet to send [02:04:34]OFD Sender: No OFD packet to send [02:04:39]OFD Sender: No OFD packet to send [02:04:44]OFD Sender: No OFD packet to send [02:04:49]OFD Sender: No OFD packet to send [02:04:54]OFD Sender: No OFD packet to send [02:04:59]OFD Sender: No OFD packet to send [02:05:04]OFD Sender: No OFD packet to send [02:05:09]OFD Sender: No OFD packet to send [02:05:14]OFD Sender: No OFD packet to send [02:05:19]OFD Sender: No OFD packet to send [02:05:24]OFD Sender: No OFD packet to send [02:05:29]OFD Sender: No OFD packet to send [02:05:34]OFD Sender: No OFD packet to send [02:05:39]OFD Sender: No OFD packet to send [02:05:44]OFD Sender: No OFD packet to send [02:05:49]OFD Sender: No OFD packet to send [02:05:54]OFD Sender: No OFD packet to send [02:05:59]OFD Sender: No OFD packet to send [02:06:04]OFD Sender: No OFD packet to send [02:06:09]OFD Sender: No OFD packet to send [02:06:14]OFD Sender: No OFD packet to send [02:06:19]OFD Sender: No OFD packet to send [02:06:24]OFD Sender: No OFD packet to send [02:06:29]OFD Sender: No OFD packet to send [02:06:34]OFD Sender: No OFD packet to send [02:06:39]OFD Sender: No OFD packet to send [02:06:44]OFD Sender: No OFD packet to send [02:06:49]OFD Sender: No OFD packet to send [02:06:54]OFD Sender: No OFD packet to send [02:06:59]OFD Sender: No OFD packet to send [02:07:04]OFD Sender: No OFD packet to send [02:07:09]OFD Sender: No OFD packet to send [02:07:14]OFD Sender: No OFD packet to send [02:07:19]OFD Sender: No OFD packet to send [02:07:24]OFD Sender: No OFD packet to send [02:07:29]OFD Sender: No OFD packet to send [02:07:34]OFD Sender: No OFD packet to send [02:07:39]OFD Sender: No OFD packet to send [02:07:44]OFD Sender: No OFD packet to send [02:07:49]OFD Sender: No OFD packet to send [02:07:54]OFD Sender: No OFD packet to send [02:07:59]OFD Sender: No OFD packet to send [02:08:04]OFD Sender: No OFD packet to send [02:08:09]OFD Sender: No OFD packet to send [02:08:14]OFD Sender: No OFD packet to send [02:08:19]OFD Sender: No OFD packet to send [02:08:24]OFD Sender: No OFD packet to send [02:08:29]OFD Sender: No OFD packet to send [02:08:34]OFD Sender: No OFD packet to send [02:08:39]OFD Sender: No OFD packet to send [02:08:44]OFD Sender: No OFD packet to send [02:08:49]OFD Sender: No OFD packet to send [02:08:54]OFD Sender: No OFD packet to send [02:08:59]OFD Sender: No OFD packet to send [02:09:04]OFD Sender: No OFD packet to send [02:09:09]OFD Sender: No OFD packet to send [02:09:14]OFD Sender: No OFD packet to send [02:09:19]OFD Sender: No OFD packet to send [02:09:24]OFD Sender: No OFD packet to send [02:09:29]OFD Sender: No OFD packet to send [02:09:34]OFD Sender: No OFD packet to send [02:09:39]OFD Sender: No OFD packet to send [02:09:44]OFD Sender: No OFD packet to send [02:09:49]OFD Sender: No OFD packet to send [02:09:54]OFD Sender: No OFD packet to send [02:09:59]OFD Sender: No OFD packet to send [02:10:04]OFD Sender: No OFD packet to send [02:10:09]OFD Sender: No OFD packet to send [02:10:14]OFD Sender: No OFD packet to send [02:10:19]OFD Sender: No OFD packet to send [02:10:24]OFD Sender: No OFD packet to send [02:10:29]OFD Sender: No OFD packet to send [02:10:34]OFD Sender: No OFD packet to send [02:10:39]OFD Sender: No OFD packet to send [02:10:44]OFD Sender: No OFD packet to send [02:10:49]OFD Sender: No OFD packet to send [02:10:54]OFD Sender: No OFD packet to send [02:10:59]OFD Sender: No OFD packet to send [02:11:04]OFD Sender: No OFD packet to send [02:11:09]OFD Sender: No OFD packet to send [02:11:14]OFD Sender: No OFD packet to send [02:11:19]OFD Sender: No OFD packet to send [02:11:24]OFD Sender: No OFD packet to send [02:11:29]OFD Sender: No OFD packet to send [02:11:34]OFD Sender: No OFD packet to send [02:11:39]OFD Sender: No OFD packet to send [02:11:44]OFD Sender: No OFD packet to send [02:11:49]OFD Sender: No OFD packet to send [02:11:54]OFD Sender: No OFD packet to send [02:11:59]OFD Sender: No OFD packet to send [02:12:04]OFD Sender: No OFD packet to send [02:12:09]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:24]OFD Sender: No OFD packet to send [02:12:29]OFD Sender: No OFD packet to send [02:12:34]OFD Sender: No OFD packet to send [02:12:39]OFD Sender: No OFD packet to send [02:12:44]OFD Sender: No OFD packet to send [02:12:49]OFD Sender: No OFD packet to send [02:12:54]OFD Sender: No OFD packet to send [02:12:59]OFD Sender: No OFD packet to send [02:13:04]OFD Sender: No OFD packet to send [02:13:09]OFD Sender: No OFD packet to send [02:13:14]OFD Sender: No OFD packet to send [02:13:19]OFD Sender: No OFD packet to send [02:13:24]OFD Sender: No OFD packet to send [02:13:29]OFD Sender: No OFD packet to send [02:13:34]OFD Sender: No OFD packet to send [02:13:39]OFD Sender: No OFD packet to send [02:13:44]OFD Sender: No OFD packet to send [02:13:49]OFD Sender: No OFD packet to send [02:13:54]OFD Sender: No OFD packet to send [02:13:59]OFD Sender: No OFD packet to send [02:14:04]OFD Sender: No OFD packet to send [02:14:09]OFD Sender: No OFD packet to send [02:14:14]OFD Sender: No OFD packet to send [02:14:19]OFD Sender: No OFD packet to send [02:14:24]OFD Sender: No OFD packet to send [02:14:29]OFD Sender: No OFD packet to send [02:14:34]OFD Sender: No OFD packet to send [02:14:39]OFD Sender: No OFD packet to send [02:14:44]OFD Sender: No OFD packet to send [02:14:49]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:55]OFD Sender: No OFD packet to send [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:13]accept exits with 9 [02:19:13]New connection [02:19:13]New thread 3066608996 created [02:19:13]Thread 3066752356 joined [02:19:13]Waiting for new connection... [02:19:13] Sock 9.Parse request [02:19:13]Sock 9.Check first char [02:19:13]Sock 9.First char is OK [02:19:13]request: POST /json_proto HTTP/1.0 [02:19:13]Method: POST [02:19:13]URL: /json_proto [02:19:13]Method is POST - this is cgi request [02:19:13]url: /json_proto [02:19:13]query_string will be loaded in cgi processing [02:19:13]execute_cgi json_proto POST (null) [02:19:13]execute_cgi path=json_proto method=POST [02:19:13]POST find Content-Length [02:19:13]Host: 172.17.41.195:8080 [02:19:13]Content-Length: 1209 [02:19:13]Content-Type: application/json [02:19:13] [02:19:13]POST finish read [02:19:13]Found Content-Length = 1209 [02:19:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507926\u000A18.05.2024 02: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 53.550 x 74.70\u000A\u0418\u0422\u041E\u0413: 4000.19\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:19:13]execute_script... [02:19:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507926\u000A18.05.2024 02: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 53.550 x 74.70\u000A\u0418\u0422\u041E\u0413: 4000.19\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:19:13]POST & json_proto [02:19:13]process_json_proto [02:19:13]json parsed OK: [02:19:13]protocol is kg_v1.0 [02:19:13]action value=print_text [02:19:13]process_action print_text [02:19:13]cmd_print_text [02:19:13]ExternCall_PrintAddStr [02:19:13]wPrintStart [02:19:13]Write to MH i2c: 01 00 00 90 1B AB [02:19:13]Write i2c OK [02:19:13]MH_I2C_Read... [02:19:13]Read from MH i2c: 01 [02:19:13]MH_I2C_Read... [02:19:13]Read from MH i2c: 01 07 00 [02:19:13]MH_I2C_Read... [02:19:13]Read from MH i2c: 01 07 00 90 1B 00 00 00 00 00 FF 0F C0 [02:19:13]RasterBufferAndPrint [02:19:13]line *****ТОВАРНЫЙ ЧЕК***** [02:19:13]line АЗС-91 [02:19:13]line Партнер нефть [02:19:13]line 02508201610067 [02:19:13]line Кассир : Арстанбеков Н. [02:19:13]line Счет N : (1)507926 [02:19:13]line 18.05.2024 02:01 [02:19:13]line ПРОДАЖА [02:19:13]line ТРК (МРК, ГНК): 21 [02:19:13]line Вид ГСМ : 2710194210 [02:19:13]line ДТ-К-5 [02:19:13]line 53.550 x 74.70 [02:19:13]line ИТОГ: 4000.19 [02:19:13]line Тип оплаты: Талоны: Топливная Карта [02:19:13]line 02750 [02:19:13]line ______________________ [02:19:13]line (подпись) [02:19:13]written 0, free lines is 4095 [02:19:13]Write to MH i2c: 01 00 00 A4 1B BF [02:19:13]Write i2c OK [02:19:13]MH_I2C_Read... [02:19:13]Read from MH i2c: 01 [02:19:13]MH_I2C_Read... [02:19:13]Read from MH i2c: 01 07 00 [02:19:13]MH_I2C_Read... [02:19:13]Read from MH i2c: 01 07 00 A4 1B 00 00 00 00 00 0F 0E E3 [02:19:13]RasterBufferAndPrint [02:19:13]line [02:19:13]line [02:19:13]line [02:19:13]line [02:19:13]line [02:19:13]written 0, free lines is 3601 [02:19:13]MH_Cut [02:19:13]Write to MH i2c: D1 01 00 AB 1B 01 98 [02:19:13]Write i2c OK [02:19:13]MH_I2C_Read... [02:19:13]Read from MH i2c: D1 [02:19:13]MH_I2C_Read... [02:19:13]Read from MH i2c: D1 01 00 [02:19:13]MH_I2C_Read... [02:19:13]Read from MH i2c: D1 01 00 AB 1B 00 97 [02:19:13]Write to MH i2c: 01 00 00 AC 1B C7 [02:19:13]Write i2c OK [02:19:13]MH_I2C_Read... [02:19:14]*** Cut start [02:19:14]*** Purtial cut [02:19:14]*** Stage 1: CUTSNS_PIN = 1 [02:19:14]Read from MH i2c: 01 [02:19:14]MH_I2C_Read... [02:19:14]Read from MH i2c: 01 07 00 [02:19:14]MH_I2C_Read... [02:19:14]*** Stop cut motor [02:19:14]*** Cut end [02:19:14]Read from MH i2c: 01 07 00 AC 1B 00 00 00 00 00 FF 0F DC [02:19:14]process_action print_text done [02:19:14]requested_data is exist [02:19:14]produce_requested_data [02:19:14]requested_item fm.sn is exist - process it [02:19:14]wFMCommunicate request_size=4 [02:19:14]MH_SAM_APDU [02:19:14]CAPDU: 80 11 00 00 [02:19:14]Write to MH i2c: E2 08 00 AD 1B 80 11 00 00 00 00 00 00 42 [02:19:14]Write i2c OK [02:19:14]MH_I2C_Read... [02:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:19:14]Read from MH i2c: E2 [02:19:14]MH_I2C_Read... [02:19:14]Read from MH i2c: E2 17 00 [02:19:14]MH_I2C_Read... [02:19:14]Read from MH i2c: E2 17 00 AD 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 98 [02:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [02:19:14]wFMCommunicate OK [02:19:14]requested_item fd.num is exist - process it [02:19:14]SAM_PROTO_GetFieldsCounters [02:19:14]wFMCommunicate request_size=4 [02:19:14]MH_SAM_APDU [02:19:14]CAPDU: 80 13 00 00 [02:19:14]Write to MH i2c: E2 08 00 AE 1B 80 13 00 00 00 00 00 00 45 [02:19:14]Write i2c OK [02:19:14]MH_I2C_Read... [02:19:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:19:14]Read from MH i2c: E2 [02:19:14]MH_I2C_Read... [02:19:14]Read from MH i2c: E2 62 00 [02:19:14]MH_I2C_Read... [02:19:14]Read from MH i2c: E2 62 00 AE 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [02:19: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 B4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:19:14]wFMCommunicate OK [02:19:14]SAM_PROTO_GetFieldsCounters done [02:19:14]requested_item shift.num is exist - process it [02:19:14]requested_item shift.opened is exist - process it [02:19:14]req_shift_opened [02:19:14]FM_GetShiftState [02:19:14]SAM_PROTO_GetShiftState [02:19:14]wFMCommunicate request_size=4 [02:19:14]MH_SAM_APDU [02:19:14]CAPDU: 80 13 01 00 [02:19:14]Write to MH i2c: E2 08 00 AF 1B 80 13 01 00 00 00 00 00 47 [02:19:14]Write i2c OK [02:19:14]MH_I2C_Read... [02:19:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:19:14]Read from MH i2c: E2 [02:19:14]MH_I2C_Read... [02:19:14]Read from MH i2c: E2 0E 00 [02:19:14]MH_I2C_Read... [02:19:14]Read from MH i2c: E2 0E 00 AF 1B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 AE [02:19:14]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [02:19:14]wFMCommunicate OK [02:19:14]SAM_PROTO_GetShiftState done [02:19:14]FM_GetShiftState done [02:19:14]req_shift_opened done [02:19:14]requested_item shift.open_date is exist - process it [02:19:14]req_shift_open_date [02:19:14]req_shift_open_date done [02:19:14]produce_requested_data done [02:19:14]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67764,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [02:19:14]process_action_free print_text [02:19:14]json_value_free [02:19:14]json_value_free done [02:19:14]process_json_proto returns [02:19:14]Send response to host [02:19:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67764,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [02:19:14]free response buf [02:19:14]execute_script done [02:19:14]execute_script returns [02:19:14]free content buf [02:19:14]Sock 9.Close socket [02:19:14]Sock 9.Thread stoped [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:55]OFD Sender: No OFD packet to send [02:22:00]OFD Sender: No OFD packet to send [02:22:05]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:15]OFD Sender: No OFD packet to send [02:22:20]OFD Sender: No OFD packet to send [02:22:25]OFD Sender: No OFD packet to send [02:22:30]OFD Sender: No OFD packet to send [02:22:35]OFD Sender: No OFD packet to send [02:22:40]OFD Sender: No OFD packet to send [02:22:45]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:55]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]OFD Sender: No OFD packet to send [02:32:10]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:20]OFD Sender: No OFD packet to send [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34:05]OFD Sender: No OFD packet to send [02:34:10]OFD Sender: No OFD packet to send [02:34:16]OFD Sender: No OFD packet to send [02:34:21]OFD Sender: No OFD packet to send [02:34:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:11]OFD Sender: No OFD packet to send [02:35:16]OFD Sender: No OFD packet to send [02:35:21]OFD Sender: No OFD packet to send [02:35:26]OFD Sender: No OFD packet to send [02:35:31]OFD Sender: No OFD packet to send [02:35:36]OFD Sender: No OFD packet to send [02:35:41]OFD Sender: No OFD packet to send [02:35:46]OFD Sender: No OFD packet to send [02:35:51]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:01]OFD Sender: No OFD packet to send [02:36:06]OFD Sender: No OFD packet to send [02:36:11]OFD Sender: No OFD packet to send [02:36:16]OFD Sender: No OFD packet to send [02:36:21]OFD Sender: No OFD packet to send [02:36:26]OFD Sender: No OFD packet to send [02:36:31]OFD Sender: No OFD packet to send [02:36:36]OFD Sender: No OFD packet to send [02:36:41]OFD Sender: No OFD packet to send [02:36:46]OFD Sender: No OFD packet to send [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:06]OFD Sender: No OFD packet to send [02:37:11]OFD Sender: No OFD packet to send [02:37:16]OFD Sender: No OFD packet to send [02:37:21]OFD Sender: No OFD packet to send [02:37:26]OFD Sender: No OFD packet to send [02:37:31]OFD Sender: No OFD packet to send [02:37:36]OFD Sender: No OFD packet to send [02:37:41]OFD Sender: No OFD packet to send [02:37:46]OFD Sender: No OFD packet to send [02:37:51]OFD Sender: No OFD packet to send [02:37:56]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:21]OFD Sender: No OFD packet to send [02:38:26]OFD Sender: No OFD packet to send [02:38:31]OFD Sender: No OFD packet to send [02:38:36]OFD Sender: No OFD packet to send [02:38:41]OFD Sender: No OFD packet to send [02:38:46]OFD Sender: No OFD packet to send [02:38:51]OFD Sender: No OFD packet to send [02:38:56]OFD Sender: No OFD packet to send [02:39:01]OFD Sender: No OFD packet to send [02:39:06]OFD Sender: No OFD packet to send [02:39:11]OFD Sender: No OFD packet to send [02:39:16]OFD Sender: No OFD packet to send [02:39:21]OFD Sender: No OFD packet to send [02:39:26]OFD Sender: No OFD packet to send [02:39:31]OFD Sender: No OFD packet to send [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:46]OFD Sender: No OFD packet to send [02:50:51]OFD Sender: No OFD packet to send [02:50:56]OFD Sender: No OFD packet to send [02:51:01]OFD Sender: No OFD packet to send [02:51:06]OFD Sender: No OFD packet to send [02:51:11]OFD Sender: No OFD packet to send [02:51:16]OFD Sender: No OFD packet to send [02:51:21]OFD Sender: No OFD packet to send [02:51:26]OFD Sender: No OFD packet to send [02:51:31]OFD Sender: No OFD packet to send [02:51:36]OFD Sender: No OFD packet to send [02:51:41]OFD Sender: No OFD packet to send [02:51:46]OFD Sender: No OFD packet to send [02:51:51]OFD Sender: No OFD packet to send [02:51:56]OFD Sender: No OFD packet to send [02:52:01]OFD Sender: No OFD packet to send [02:52:06]OFD Sender: No OFD packet to send [02:52:11]OFD Sender: No OFD packet to send [02:52:16]OFD Sender: No OFD packet to send [02:52:21]OFD Sender: No OFD packet to send [02:52:26]OFD Sender: No OFD packet to send [02:52:31]OFD Sender: No OFD packet to send [02:52:36]OFD Sender: No OFD packet to send [02:52:41]OFD Sender: No OFD packet to send [02:52:46]OFD Sender: No OFD packet to send [02:52:51]OFD Sender: No OFD packet to send [02:52:56]OFD Sender: No OFD packet to send [02:53:01]OFD Sender: No OFD packet to send [02:53:06]OFD Sender: No OFD packet to send [02:53:11]OFD Sender: No OFD packet to send [02:53:16]OFD Sender: No OFD packet to send [02:53:21]OFD Sender: No OFD packet to send [02:53:26]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:07]OFD Sender: No OFD packet to send [02:58:12]OFD Sender: No OFD packet to send [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:32]OFD Sender: No OFD packet to send [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:12]accept exits with 7 [03:09:12]New connection [03:09:12]New thread 3066752356 created [03:09:12]Thread 3066608996 joined [03:09:12]Waiting for new connection... [03:09:12] Sock 7.Parse request [03:09:12]Sock 7.Check first char [03:09:12]Sock 7.First char is OK [03:09:12]request: POST /json_proto HTTP/1.0 [03:09:12]Method: POST [03:09:12]URL: /json_proto [03:09:12]Method is POST - this is cgi request [03:09:12]url: /json_proto [03:09:12]query_string will be loaded in cgi processing [03:09:12]execute_cgi json_proto POST (null) [03:09:12]execute_cgi path=json_proto method=POST [03:09:12]POST find Content-Length [03:09:12]Host: 172.17.41.195:8080 [03:09:12]Content-Length: 1209 [03:09:12]Content-Type: application/json [03:09:12] [03:09:12]POST finish read [03:09:12]Found Content-Length = 1209 [03:09: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)507927\u000A18.05.2024 02: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 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" ] } } [03:09:12]execute_script... [03:09: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)507927\u000A18.05.2024 02: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 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" ] } } [03:09:12]POST & json_proto [03:09:12]process_json_proto [03:09:12]json parsed OK: [03:09:12]protocol is kg_v1.0 [03:09:12]action value=print_text [03:09:12]process_action print_text [03:09:12]cmd_print_text [03:09:12]ExternCall_PrintAddStr [03:09:12]wPrintStart [03:09:12]Write to MH i2c: 01 00 00 B0 1B CB [03:09:12]Write i2c OK [03:09:12]MH_I2C_Read... [03:09:12]Read from MH i2c: 01 [03:09:12]MH_I2C_Read... [03:09:12]Read from MH i2c: 01 07 00 [03:09:12]MH_I2C_Read... [03:09:12]Read from MH i2c: 01 07 00 B0 1B 00 00 00 00 00 FF 0F E0 [03:09:12]RasterBufferAndPrint [03:09:12]line *****ТОВАРНЫЙ ЧЕК***** [03:09:12]line АЗС-91 [03:09:12]line Партнер нефть [03:09:12]line 02508201610067 [03:09:12]line Кассир : Арстанбеков Н. [03:09:12]line Счет N : (1)507927 [03:09:12]line 18.05.2024 02:51 [03:09:12]line ПРОДАЖА [03:09:12]line ТРК (МРК, ГНК): 21 [03:09:12]line Вид ГСМ : 2710194210 [03:09:12]line ДТ-К-5 [03:09:12]line 30.000 x 74.70 [03:09:12]line ИТОГ: 2241.00 [03:09:12]line Тип оплаты: Талоны: Топливная Карта [03:09:12]line 02750 [03:09:12]line ______________________ [03:09:12]line (подпись) [03:09:12]written 0, free lines is 4095 [03:09:12]OFD Sender: No OFD packet to send [03:09:12]Write to MH i2c: 01 00 00 C4 1B DF [03:09:12]Write i2c OK [03:09:12]MH_I2C_Read... [03:09:12]Read from MH i2c: 01 [03:09:12]MH_I2C_Read... [03:09:12]Read from MH i2c: 01 07 00 [03:09:12]MH_I2C_Read... [03:09:12]Read from MH i2c: 01 07 00 C4 1B 00 00 00 00 00 0F 0E 03 [03:09:12]RasterBufferAndPrint [03:09:12]line [03:09:12]line [03:09:12]line [03:09:12]line [03:09:12]line [03:09:12]written 0, free lines is 3600 [03:09:12]MH_Cut [03:09:12]Write to MH i2c: D1 01 00 CB 1B 01 B8 [03:09:12]Write i2c OK [03:09:12]MH_I2C_Read... [03:09:12]Read from MH i2c: D1 [03:09:12]MH_I2C_Read... [03:09:12]Read from MH i2c: D1 01 00 [03:09:12]MH_I2C_Read... [03:09:12]Read from MH i2c: D1 01 00 CB 1B 00 B7 [03:09:12]Write to MH i2c: 01 00 00 CC 1B E7 [03:09:12]Write i2c OK [03:09:12]MH_I2C_Read... [03:09:13]*** Cut start [03:09:13]*** Purtial cut [03:09:13]*** CUTSNS_PIN = 0 [03:09:13]*** Stage 1: CUTSNS_PIN = 1 [03:09:15]Read from MH i2c: 01 [03:09:15]MH_I2C_Read... [03:09:15]*** Stop cut motor [03:09:15]*** Cut end [03:09:15]Read from MH i2c: 01 07 00 [03:09:15]MH_I2C_Read... [03:09:15]Read from MH i2c: 01 07 00 CC 1B 00 00 00 00 00 FF 0F FC [03:09:15]process_action print_text done [03:09:15]requested_data is exist [03:09:15]produce_requested_data [03:09:15]requested_item fm.sn is exist - process it [03:09:15]wFMCommunicate request_size=4 [03:09:15]MH_SAM_APDU [03:09:15]CAPDU: 80 11 00 00 [03:09:15]Write to MH i2c: E2 08 00 CD 1B 80 11 00 00 00 00 00 00 62 [03:09:15]Write i2c OK [03:09:15]MH_I2C_Read... [03:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:09:15]Read from MH i2c: E2 [03:09:15]MH_I2C_Read... [03:09:15]Read from MH i2c: E2 17 00 [03:09:15]MH_I2C_Read... [03:09:15]Read from MH i2c: E2 17 00 CD 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B8 [03:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [03:09:15]wFMCommunicate OK [03:09:15]requested_item fd.num is exist - process it [03:09:15]SAM_PROTO_GetFieldsCounters [03:09:15]wFMCommunicate request_size=4 [03:09:15]MH_SAM_APDU [03:09:15]CAPDU: 80 13 00 00 [03:09:15]Write to MH i2c: E2 08 00 CE 1B 80 13 00 00 00 00 00 00 65 [03:09:15]Write i2c OK [03:09:15]MH_I2C_Read... [03:09:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:09:15]Read from MH i2c: E2 [03:09:15]MH_I2C_Read... [03:09:15]Read from MH i2c: E2 62 00 [03:09:15]MH_I2C_Read... [03:09:15]Read from MH i2c: E2 62 00 CE 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [03:09: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 B4 08 01 00 0E 04 04 00 67 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:09:15]wFMCommunicate OK [03:09:15]SAM_PROTO_GetFieldsCounters done [03:09:15]requested_item shift.num is exist - process it [03:09:15]requested_item shift.opened is exist - process it [03:09:15]req_shift_opened [03:09:15]FM_GetShiftState [03:09:15]SAM_PROTO_GetShiftState [03:09:15]wFMCommunicate request_size=4 [03:09:15]MH_SAM_APDU [03:09:15]CAPDU: 80 13 01 00 [03:09:15]Write to MH i2c: E2 08 00 CF 1B 80 13 01 00 00 00 00 00 67 [03:09:15]Write i2c OK [03:09:15]MH_I2C_Read... [03:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:09:15]Read from MH i2c: E2 [03:09:15]MH_I2C_Read... [03:09:15]Read from MH i2c: E2 0E 00 [03:09:15]MH_I2C_Read... [03:09:15]Read from MH i2c: E2 0E 00 CF 1B 00 09 00 01 BB F3 47 66 00 00 00 00 90 00 CE [03:09:15]RAPDU: 09 00 01 BB F3 47 66 00 00 00 00 90 00 [03:09:15]wFMCommunicate OK [03:09:15]SAM_PROTO_GetShiftState done [03:09:15]FM_GetShiftState done [03:09:15]req_shift_opened done [03:09:15]requested_item shift.open_date is exist - process it [03:09:15]req_shift_open_date [03:09:15]req_shift_open_date done [03:09:15]produce_requested_data done [03:09:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67764,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483} [03:09:15]process_action_free print_text [03:09:15]json_value_free [03:09:15]json_value_free done [03:09:15]process_json_proto returns [03:09:15]Send response to host [03:09:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67764,"shift.num":359,"shift.opened":1,"shift.open_date":1715991483}}} [03:09:15]free response buf [03:09:15]execute_script done [03:09:15]execute_script returns [03:09:15]free content buf [03:09:15]Sock 7.Close socket [03:09:15]Sock 7.Thread stoped [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:02]OFD Sender: No OFD packet to send [03:10:07]OFD Sender: No OFD packet to send [03:10:12]OFD Sender: No OFD packet to send [03:10:17]OFD Sender: No OFD packet to send [03:10:22]OFD Sender: No OFD packet to send [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10:37]OFD Sender: No OFD packet to send [03:10:42]OFD Sender: No OFD packet to send [03:10:47]OFD Sender: No OFD packet to send [03:10:52]OFD Sender: No OFD packet to send [03:10:57]OFD Sender: No OFD packet to send [03:11:02]OFD Sender: No OFD packet to send [03:11:07]OFD Sender: No OFD packet to send [03:11:12]OFD Sender: No OFD packet to send [03:11:17]OFD Sender: No OFD packet to send [03:11:22]OFD Sender: No OFD packet to send [03:11:27]OFD Sender: No OFD packet to send [03:11:32]OFD Sender: No OFD packet to send [03:11:37]OFD Sender: No OFD packet to send [03:11:42]OFD Sender: No OFD packet to send [03:11:47]OFD Sender: No OFD packet to send [03:11:52]OFD Sender: No OFD packet to send [03:11:57]OFD Sender: No OFD packet to send [03:12:02]OFD Sender: No OFD packet to send [03:12:07]OFD Sender: No OFD packet to send [03:12:12]OFD Sender: No OFD packet to send [03:12:17]OFD Sender: No OFD packet to send [03:12:22]OFD Sender: No OFD packet to send [03:12:27]OFD Sender: No OFD packet to send [03:12:32]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send