[03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:46]recv_with_timeout no data received [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:54]recv_with_timeout no data received [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:55]OFD Sender: No OFD packet to send [03:24:00]OFD Sender: No OFD packet to send [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:15]OFD Sender: No OFD packet to send [03:24:20]OFD Sender: No OFD packet to send [03:24:25]OFD Sender: No OFD packet to send [03:24:30]OFD Sender: No OFD packet to send [03:24:35]OFD Sender: No OFD packet to send [03:24:40]OFD Sender: No OFD packet to send [03:24:45]OFD Sender: No OFD packet to send [03:24:50]OFD Sender: No OFD packet to send [03:24:55]OFD Sender: No OFD packet to send [03:25:00]OFD Sender: No OFD packet to send [03:25:05]OFD Sender: No OFD packet to send [03:25:10]OFD Sender: No OFD packet to send [03:25:15]OFD Sender: No OFD packet to send [03:25:20]OFD Sender: No OFD packet to send [03:25:25]OFD Sender: No OFD packet to send [03:25:30]OFD Sender: No OFD packet to send [03:25:35]OFD Sender: No OFD packet to send [03:25:40]OFD Sender: No OFD packet to send [03:25:42]accept exits with 8 [03:25:42]New connection [03:25:42]New thread 3066760548 created [03:25:42]Thread 3066617188 joined [03:25:42]Waiting for new connection... [03:25:42] Sock 8.Parse request [03:25:42]Sock 8.Check first char [03:25:42]Sock 8.First char is OK [03:25:42]request: POST /json_proto HTTP/1.0 [03:25:42]Method: POST [03:25:42]URL: /json_proto [03:25:42]Method is POST - this is cgi request [03:25:42]url: /json_proto [03:25:42]query_string will be loaded in cgi processing [03:25:42]execute_cgi json_proto POST (null) [03:25:42]execute_cgi path=json_proto method=POST [03:25:42]POST find Content-Length [03:25:42]Host: 172.17.41.195:8080 [03:25:42]Content-Length: 1179 [03:25:42]Content-Type: application/json [03:25:42] [03:25:42]POST finish read [03:25:42]Found Content-Length = 1179 [03:25:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506806\u000A14.05.2024 03:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2988.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:25:42]execute_script... [03:25:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506806\u000A14.05.2024 03:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2988.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:25:42]POST & json_proto [03:25:42]process_json_proto [03:25:42]json parsed OK: [03:25:42]protocol is kg_v1.0 [03:25:42]action value=print_text [03:25:42]process_action print_text [03:25:42]cmd_print_text [03:25:42]ExternCall_PrintAddStr [03:25:42]wPrintStart [03:25:42]Write to MH i2c: 01 00 00 B8 0D C5 [03:25:42]Write i2c OK [03:25:42]MH_I2C_Read... [03:25:42]Read from MH i2c: 01 [03:25:42]MH_I2C_Read... [03:25:42]Read from MH i2c: 01 07 00 [03:25:42]MH_I2C_Read... [03:25:42]Read from MH i2c: 01 07 00 B8 0D 00 00 00 00 00 FF 0F DA [03:25:42]RasterBufferAndPrint [03:25:42]line *****ТОВАРНЫЙ ЧЕК***** [03:25:42]line АЗС-91 [03:25:42]line Партнер нефть [03:25:42]line 02508201610067 [03:25:42]line Кассир : Адишов И. [03:25:42]line Счет N : (1)506806 [03:25:42]line 14.05.2024 03:08 [03:25:42]line ПРОДАЖА [03:25:42]line ТРК (МРК, ГНК): 31 [03:25:42]line Вид ГСМ : 2710194210 [03:25:42]line ДТ-К-5 [03:25:42]line 40.000 x 74.70 [03:25:42]line ИТОГ: 2988.00 [03:25:42]line Тип оплаты: Талоны: Топливная Карта [03:25:42]line 02750 [03:25:42]line ______________________ [03:25:42]line (подпись) [03:25:42]written 0, free lines is 4095 [03:25:42]Write to MH i2c: 01 00 00 CC 0D D9 [03:25:42]Write i2c OK [03:25:42]MH_I2C_Read... [03:25:42]Read from MH i2c: 01 [03:25:42]MH_I2C_Read... [03:25:42]Read from MH i2c: 01 07 00 [03:25:42]MH_I2C_Read... [03:25:42]Read from MH i2c: 01 07 00 CC 0D 00 00 00 00 00 0F 0E FD [03:25:42]RasterBufferAndPrint [03:25:42]line [03:25:42]line [03:25:42]line [03:25:42]line [03:25:42]line [03:25:42]written 0, free lines is 3601 [03:25:42]MH_Cut [03:25:42]Write to MH i2c: D1 01 00 D3 0D 01 B2 [03:25:42]Write i2c OK [03:25:42]MH_I2C_Read... [03:25:42]Read from MH i2c: D1 [03:25:42]MH_I2C_Read... [03:25:42]Read from MH i2c: D1 01 00 [03:25:42]MH_I2C_Read... [03:25:42]Read from MH i2c: D1 01 00 D3 0D 00 B1 [03:25:42]Write to MH i2c: 01 00 00 D4 0D E1 [03:25:42]Write i2c OK [03:25:42]MH_I2C_Read... [03:25:43]*** Cut start [03:25:43]*** Purtial cut [03:25:43]*** CUTSNS_PIN = 0 [03:25:43]*** Stage 1: CUTSNS_PIN = 1 [03:25:45]Read from MH i2c: 01 [03:25:45]MH_I2C_Read... [03:25:45]*** Stop cut motor [03:25:45]*** Cut end [03:25:45]Read from MH i2c: 01 07 00 [03:25:45]MH_I2C_Read... [03:25:45]Read from MH i2c: 01 07 00 D4 0D 00 00 00 00 00 FF 0F F6 [03:25:45]process_action print_text done [03:25:45]requested_data is exist [03:25:45]produce_requested_data [03:25:45]requested_item fm.sn is exist - process it [03:25:45]wFMCommunicate request_size=4 [03:25:45]MH_SAM_APDU [03:25:45]CAPDU: 80 11 00 00 [03:25:45]Write to MH i2c: E2 08 00 D5 0D 80 11 00 00 00 00 00 00 5C [03:25:45]Write i2c OK [03:25:45]MH_I2C_Read... [03:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:25:45]Read from MH i2c: E2 [03:25:45]MH_I2C_Read... [03:25:45]Read from MH i2c: E2 17 00 [03:25:45]MH_I2C_Read... [03:25:45]Read from MH i2c: E2 17 00 D5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B2 [03:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [03:25:45]wFMCommunicate OK [03:25:45]requested_item fd.num is exist - process it [03:25:45]SAM_PROTO_GetFieldsCounters [03:25:45]wFMCommunicate request_size=4 [03:25:45]MH_SAM_APDU [03:25:45]CAPDU: 80 13 00 00 [03:25:45]Write to MH i2c: E2 08 00 D6 0D 80 13 00 00 00 00 00 00 5F [03:25:45]Write i2c OK [03:25:45]MH_I2C_Read... [03:25:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:25:45]Read from MH i2c: E2 [03:25:45]MH_I2C_Read... [03:25:45]Read from MH i2c: E2 62 00 [03:25:45]MH_I2C_Read... [03:25:45]Read from MH i2c: E2 62 00 D6 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 B6 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [03:25: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 B6 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:25:45]wFMCommunicate OK [03:25:45]SAM_PROTO_GetFieldsCounters done [03:25:45]requested_item shift.num is exist - process it [03:25:45]requested_item shift.opened is exist - process it [03:25:45]req_shift_opened [03:25:45]FM_GetShiftState [03:25:45]SAM_PROTO_GetShiftState [03:25:45]wFMCommunicate request_size=4 [03:25:45]MH_SAM_APDU [03:25:45]CAPDU: 80 13 01 00 [03:25:45]Write to MH i2c: E2 08 00 D7 0D 80 13 01 00 00 00 00 00 61 [03:25:45]Write i2c OK [03:25:45]MH_I2C_Read... [03:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:25:45]Read from MH i2c: E2 [03:25:45]MH_I2C_Read... [03:25:45]Read from MH i2c: E2 0E 00 [03:25:45]MH_I2C_Read... [03:25:45]Read from MH i2c: E2 0E 00 D7 0D 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 29 [03:25:45]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [03:25:45]wFMCommunicate OK [03:25:45]SAM_PROTO_GetShiftState done [03:25:45]FM_GetShiftState done [03:25:45]req_shift_opened done [03:25:45]requested_item shift.open_date is exist - process it [03:25:45]req_shift_open_date [03:25:45]req_shift_open_date done [03:25:45]produce_requested_data done [03:25:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":66998,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [03:25:45]process_action_free print_text [03:25:45]json_value_free [03:25:45]json_value_free done [03:25:45]process_json_proto returns [03:25:45]Send response to host [03:25:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":66998,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [03:25:45]free response buf [03:25:45]execute_script done [03:25:45]execute_script returns [03:25:45]free content buf [03:25:45]Sock 8.Close socket [03:25:45]Sock 8.Thread stoped [03:25:45]OFD Sender: No OFD packet to send [03:25:50]OFD Sender: No OFD packet to send [03:25:55]OFD Sender: No OFD packet to send [03:26:00]OFD Sender: No OFD packet to send [03:26:05]OFD Sender: No OFD packet to send [03:26:10]OFD Sender: No OFD packet to send [03:26:15]OFD Sender: No OFD packet to send [03:26:20]OFD Sender: No OFD packet to send [03:26:20]recv_with_timeout no data received [03:26:25]OFD Sender: No OFD packet to send [03:26:30]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:51]recv_with_timeout no data received [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:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:28]recv_with_timeout no data received [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:15]accept exits with 9 [03:39:15]New connection [03:39:15]New thread 3066617188 created [03:39:15]Thread 3066760548 joined [03:39:15]Waiting for new connection... [03:39:15] Sock 9.Parse request [03:39:15]Sock 9.Check first char [03:39:15]Sock 9.First char is OK [03:39:15]request: POST /json_proto HTTP/1.0 [03:39:15]Method: POST [03:39:15]URL: /json_proto [03:39:15]Method is POST - this is cgi request [03:39:15]url: /json_proto [03:39:15]query_string will be loaded in cgi processing [03:39:15]execute_cgi json_proto POST (null) [03:39:15]execute_cgi path=json_proto method=POST [03:39:15]POST find Content-Length [03:39:15]Host: 172.17.41.195:8080 [03:39:15]Content-Length: 1179 [03:39:15]Content-Type: application/json [03:39:15] [03:39:15]POST finish read [03:39:15]Found Content-Length = 1179 [03:39: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)506807\u000A14.05.2024 03: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 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:39:15]execute_script... [03:39: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)506807\u000A14.05.2024 03: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 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:39:15]POST & json_proto [03:39:15]process_json_proto [03:39:15]json parsed OK: [03:39:15]protocol is kg_v1.0 [03:39:15]action value=print_text [03:39:15]process_action print_text [03:39:15]cmd_print_text [03:39:15]ExternCall_PrintAddStr [03:39:15]wPrintStart [03:39:15]Write to MH i2c: 01 00 00 D8 0D E5 [03:39:15]Write i2c OK [03:39:15]MH_I2C_Read... [03:39:15]Read from MH i2c: 01 [03:39:15]MH_I2C_Read... [03:39:15]Read from MH i2c: 01 07 00 [03:39:15]MH_I2C_Read... [03:39:15]Read from MH i2c: 01 07 00 D8 0D 00 00 00 00 00 FF 0F FA [03:39:15]RasterBufferAndPrint [03:39:15]line *****ТОВАРНЫЙ ЧЕК***** [03:39:15]line АЗС-91 [03:39:15]line Партнер нефть [03:39:15]line 02508201610067 [03:39:15]line Кассир : Адишов И. [03:39:15]line Счет N : (1)506807 [03:39:15]line 14.05.2024 03:21 [03:39:15]line ПРОДАЖА [03:39:15]line ТРК (МРК, ГНК): 21 [03:39:15]line Вид ГСМ : 2710194210 [03:39:15]line ДТ-К-5 [03:39:15]line 20.000 x 74.70 [03:39:15]line ИТОГ: 1494.00 [03:39:15]line Тип оплаты: Талоны: Топливная Карта [03:39:15]line 02750 [03:39:15]line ______________________ [03:39:15]line (подпись) [03:39:15]written 0, free lines is 4095 [03:39:15]Write to MH i2c: 01 00 00 EC 0D F9 [03:39:15]Write i2c OK [03:39:15]MH_I2C_Read... [03:39:15]Read from MH i2c: 01 [03:39:15]MH_I2C_Read... [03:39:15]Read from MH i2c: 01 07 00 [03:39:15]MH_I2C_Read... [03:39:15]Read from MH i2c: 01 07 00 EC 0D 00 00 00 00 00 0E 0E 1C [03:39:15]RasterBufferAndPrint [03:39:15]line [03:39:15]line [03:39:15]line [03:39:15]line [03:39:15]line [03:39:15]written 0, free lines is 3599 [03:39:15]MH_Cut [03:39:15]Write to MH i2c: D1 01 00 F3 0D 01 D2 [03:39:15]Write i2c OK [03:39:15]MH_I2C_Read... [03:39:15]Read from MH i2c: D1 [03:39:15]MH_I2C_Read... [03:39:15]Read from MH i2c: D1 01 00 [03:39:15]MH_I2C_Read... [03:39:15]Read from MH i2c: D1 01 00 F3 0D 00 D1 [03:39:15]Write to MH i2c: 01 00 00 F4 0D 01 [03:39:15]Write i2c OK [03:39:15]MH_I2C_Read... [03:39:16]OFD Sender: No OFD packet to send [03:39:16]*** Cut start [03:39:16]*** Purtial cut [03:39:16]*** Stage 1: CUTSNS_PIN = 1 [03:39:16]Read from MH i2c: 01 [03:39:16]MH_I2C_Read... [03:39:16]*** Stop cut motor [03:39:16]*** Cut end [03:39:16]Read from MH i2c: 01 07 00 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: 01 07 00 F4 0D 00 00 00 00 00 FF 0F 16 [03:39:16]process_action print_text done [03:39:16]requested_data is exist [03:39:16]produce_requested_data [03:39:16]requested_item fm.sn is exist - process it [03:39:16]wFMCommunicate request_size=4 [03:39:16]MH_SAM_APDU [03:39:16]CAPDU: 80 11 00 00 [03:39:16]Write to MH i2c: E2 08 00 F5 0D 80 11 00 00 00 00 00 00 7C [03:39:16]Write i2c OK [03:39:16]MH_I2C_Read... [03:39:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:16]Read from MH i2c: E2 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: E2 17 00 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: E2 17 00 F5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D2 [03:39:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [03:39:16]wFMCommunicate OK [03:39:16]requested_item fd.num is exist - process it [03:39:16]SAM_PROTO_GetFieldsCounters [03:39:16]wFMCommunicate request_size=4 [03:39:16]MH_SAM_APDU [03:39:16]CAPDU: 80 13 00 00 [03:39:16]Write to MH i2c: E2 08 00 F6 0D 80 13 00 00 00 00 00 00 7F [03:39:16]Write i2c OK [03:39:16]MH_I2C_Read... [03:39:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:39:16]Read from MH i2c: E2 [03:39:16]MH_I2C_Read... [03:39:16]Read from MH i2c: E2 62 00 [03:39:16]MH_I2C_Read... [03:39:17]Read from MH i2c: E2 62 00 F6 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 B6 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [03:39: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 B6 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:39:17]wFMCommunicate OK [03:39:17]SAM_PROTO_GetFieldsCounters done [03:39:17]requested_item shift.num is exist - process it [03:39:17]requested_item shift.opened is exist - process it [03:39:17]req_shift_opened [03:39:17]FM_GetShiftState [03:39:17]SAM_PROTO_GetShiftState [03:39:17]wFMCommunicate request_size=4 [03:39:17]MH_SAM_APDU [03:39:17]CAPDU: 80 13 01 00 [03:39:17]Write to MH i2c: E2 08 00 F7 0D 80 13 01 00 00 00 00 00 81 [03:39:17]Write i2c OK [03:39:17]MH_I2C_Read... [03:39:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:17]Read from MH i2c: E2 [03:39:17]MH_I2C_Read... [03:39:17]Read from MH i2c: E2 0E 00 [03:39:17]MH_I2C_Read... [03:39:17]Read from MH i2c: E2 0E 00 F7 0D 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 49 [03:39:17]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [03:39:17]wFMCommunicate OK [03:39:17]SAM_PROTO_GetShiftState done [03:39:17]FM_GetShiftState done [03:39:17]req_shift_opened done [03:39:17]requested_item shift.open_date is exist - process it [03:39:17]req_shift_open_date [03:39:17]req_shift_open_date done [03:39:17]produce_requested_data done [03:39:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":66998,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [03:39:17]process_action_free print_text [03:39:17]json_value_free [03:39:17]json_value_free done [03:39:17]process_json_proto returns [03:39:17]Send response to host [03:39:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":66998,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [03:39:17]free response buf [03:39:17]execute_script done [03:39:17]execute_script returns [03:39:17]free content buf [03:39:17]Sock 9.Close socket [03:39:17]Sock 9.Thread stoped [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]recv_with_timeout no data received [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:36]OFD Sender: No OFD packet to send [03:44:41]OFD Sender: No OFD packet to send [03:44:46]OFD Sender: No OFD packet to send [03:44:51]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]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]accept exits with 8 [03:48:41]New connection [03:48:41]New thread 3066760548 created [03:48:41]Thread 3066617188 joined [03:48:41]Waiting for new connection... [03:48:41] Sock 8.Parse request [03:48:41]Sock 8.Check first char [03:48:41]Sock 8.First char is OK [03:48:41]request: POST /json_proto HTTP/1.0 [03:48:41]Method: POST [03:48:41]URL: /json_proto [03:48:41]Method is POST - this is cgi request [03:48:41]url: /json_proto [03:48:41]query_string will be loaded in cgi processing [03:48:41]execute_cgi json_proto POST (null) [03:48:41]execute_cgi path=json_proto method=POST [03:48:41]POST find Content-Length [03:48:41]Host: 172.17.41.195:8080 [03:48:41]Content-Length: 803 [03:48:41]Content-Type: application/json [03:48:41] [03:48:41]POST finish read [03:48:41]Found Content-Length = 803 [03:48:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 29.950, "sum" : 2000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:48:41]execute_script... [03:48: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)506808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 29.950, "sum" : 2000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:48:41]POST & json_proto [03:48:41]process_json_proto [03:48:41]json parsed OK: [03:48:41]protocol is kg_v1.0 [03:48:41]action value=close_receipt [03:48:41]process_action close_receipt [03:48:41]cmd_close_receipt [03:48:41]MH_GetDate [03:48:41]Write to MH i2c: F0 00 00 F8 0D F4 [03:48:41]Write i2c OK [03:48:41]MH_I2C_Read... [03:48:41]Read from MH i2c: F0 [03:48:41]MH_I2C_Read... [03:48:41]Read from MH i2c: F0 09 00 [03:48:41]MH_I2C_Read... [03:48:41]Read from MH i2c: F0 09 00 F8 0D 00 1B DF 42 66 FC 21 6F 64 8F [03:48:41]GetLastDocTimeStamp 1715656464 [03:48:41]current date 1715658523 [03:48:41]FM_GetShiftState [03:48:41]SAM_PROTO_GetShiftState [03:48:41]wFMCommunicate request_size=4 [03:48:41]MH_SAM_APDU [03:48:41]CAPDU: 80 13 01 00 [03:48:41]Write to MH i2c: E2 08 00 F9 0D 80 13 01 00 00 00 00 00 83 [03:48:41]Write i2c OK [03:48:41]MH_I2C_Read... [03:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:48:41]Read from MH i2c: E2 [03:48:41]MH_I2C_Read... [03:48:41]Read from MH i2c: E2 0E 00 [03:48:41]MH_I2C_Read... [03:48:41]Read from MH i2c: E2 0E 00 F9 0D 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 4B [03:48:41]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [03:48:41]wFMCommunicate OK [03:48:41]SAM_PROTO_GetShiftState done [03:48:41]FM_GetShiftState done [03:48:41]opened in 1715646054 [03:48:41]opened+sec_in_day 1715732454 [03:48:41]quantity*price = 200066 [03:48:41]sum+1 = 200067 [03:48:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.66 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 0.00 Безнал.: 2000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 6 14.05.2024 03:48 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 66999 ФПД: 251433731176397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T034843&type=1&operation_type=1&fn_number=0000000000871829&fd_number=66999&fm=251433731176397&tin=02508201610067®Number=0000000000091845&sum=200066 [03:48:42]StoreToDocumentArchive [03:48:42]shift 355 fd 66999 [03:48:42]save to /storage/0355/doc_00066999 [03:48:42]save last doc name /storage/0355/doc_00066999 to /storage/kkm_last_doc_name [03:48:42]save OK [03:48:42]Clear old archive folders... [03:48:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:48:42]tlvbuf is B6F29520 [03:48:42]SAM_PROTO_ClearQueue [03:48:42]wFMCommunicate request_size=4 [03:48:42]MH_SAM_APDU [03:48:42]CAPDU: 80 09 00 00 [03:48:42]Write to MH i2c: E2 08 00 06 0E 80 09 00 00 00 00 00 00 86 [03:48:42]Write i2c OK [03:48:42]MH_I2C_Read... [03:48:42]Read from MH i2c: E2 [03:48:42]MH_I2C_Read... [03:48:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:48:42]Read from MH i2c: E2 03 00 [03:48:42]MH_I2C_Read... [03:48:42]Read from MH i2c: E2 03 00 06 0E 00 90 00 88 [03:48:42]RAPDU: 90 00 [03:48:42]wFMCommunicate OK [03:48:42]SAM_PROTO_ClearQueue done [03:48:42]KKMCreateOFDPacket [03:48:42]OFDProtocolAddRootSTLVToBuf [03:48:42]FM_MakeSignedData [03:48:42]FM_MakeSignedData [03:48:42]SAM_PROTO_SignData [03:48:42]wFMCommunicate request_size=4 [03:48:42]MH_SAM_APDU [03:48:42]CAPDU: 80 0D 01 02 [03:48:42]Write to MH i2c: E2 08 00 07 0E 80 0D 01 02 00 00 00 00 8E [03:48:42]Write i2c OK [03:48:42]MH_I2C_Read... [03:48:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:48:42]Read from MH i2c: E2 [03:48:42]MH_I2C_Read... [03:48:42]Read from MH i2c: E2 03 00 [03:48:42]MH_I2C_Read... [03:48:42]Read from MH i2c: E2 03 00 07 0E 00 90 00 89 [03:48:42]RAPDU: 90 00 [03:48:42]wFMCommunicate OK [03:48:42]wFMCommunicate request_size=255 [03:48:42]MH_SAM_APDU [03:48:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 82 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 1B DF 42 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B7 05 01 00 35 04 06 00 E4 [03:48:42]Write to MH i2c: E2 02 01 08 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 FE 74 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 82 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 1B DF 42 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B7 05 01 00 35 04 06 00 E4 00 00 E4 [03:48:42]Write i2c OK [03:48:42]MH_I2C_Read... [03:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:48:42]Read from MH i2c: E2 [03:48:42]MH_I2C_Read... [03:48:42]Read from MH i2c: E2 03 00 [03:48:42]MH_I2C_Read... [03:48:42]Read from MH i2c: E2 03 00 08 0E 00 90 00 8A [03:48:42]RAPDU: 90 00 [03:48:42]wFMCommunicate OK [03:48:42]wFMCommunicate request_size=10 [03:48:42]MH_SAM_APDU [03:48:42]CAPDU: 80 0D 02 02 05 AD 7A 3B 37 CD [03:48:42]Write to MH i2c: E2 0D 00 09 0E 80 0D 02 02 05 00 AD 7A 3B 37 CD 00 00 01 [03:48:42]Write i2c OK [03:48:42]MH_I2C_Read... [03:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:48:42]Read from MH i2c: E2 [03:48:42]MH_I2C_Read... [03:48:42]Read from MH i2c: E2 03 00 [03:48:42]MH_I2C_Read... [03:48:42]Read from MH i2c: E2 03 00 09 0E 00 90 00 8B [03:48:42]RAPDU: 90 00 [03:48:42]wFMCommunicate OK [03:48:42]wFMCommunicate request_size=4 [03:48:42]MH_SAM_APDU [03:48:42]CAPDU: 80 0D 03 02 [03:48:42]Write to MH i2c: E2 08 00 0A 0E 80 0D 03 02 00 00 00 00 93 [03:48:42]Write i2c OK [03:48:42]MH_I2C_Read... [03:48:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:48:42]Read from MH i2c: E2 [03:48:42]MH_I2C_Read... [03:48:42]Read from MH i2c: E2 0B 00 [03:48:42]MH_I2C_Read... [03:48:42]Read from MH i2c: E2 0B 00 0A 0E 00 79 40 BF C9 FA 5D 66 34 90 00 C6 [03:48:42]RAPDU: 79 40 BF C9 FA 5D 66 34 90 00 [03:48:42]wFMCommunicate OK [03:48:42]SAM_PROTO_SignData done [03:48:42]FM_MakeSignedData done [03:48:42]CreateOFDProtocolMessage [03:48:42]wFMCommunicate request_size=4 [03:48:42]MH_SAM_APDU [03:48:42]CAPDU: 80 11 00 00 [03:48:42]Write to MH i2c: E2 08 00 0B 0E 80 11 00 00 00 00 00 00 93 [03:48:42]Write i2c OK [03:48:42]MH_I2C_Read... [03:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:48:42]Read from MH i2c: E2 [03:48:42]MH_I2C_Read... [03:48:42]Read from MH i2c: E2 17 00 [03:48:42]MH_I2C_Read... [03:48:42]Read from MH i2c: E2 17 00 0B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E9 [03:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [03:48:42]wFMCommunicate OK [03:48:42]CreateOFDProtocolMessage done [03:48:42]OFDSenderStorePacket 66999 [03:48:42]StoreOFDPacket docnum=66999 [03:48:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 D3 44 07 01 40 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 82 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 1B DF 42 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B7 05 01 00 35 04 06 00 E4 AD 7A 3B 37 CD 79 40 BF C9 FA 5D 66 34 [03:48:42]CheckFolder [03:48:42]dirname=/storage/ofd_packets [03:48:42]CheckFolder done [03:48:42]ProducePacketName [03:48:42]name=ofd_packets/00066999 [03:48:42]NVStorageSaveData ofd_packets/00066999 [03:48:42]File name is /storage/ofd_packets/00066999 [03:48:42]Write 301 bytes [03:48:42]NVStorageSaveData done [03:48:42]OFDSenderStorePacket done [03:48:42]KKMCreateOFDPacket done [03:48:42]NVStorageSaveData kkm_last_timestamp [03:48:42]File name is /storage/kkm_last_timestamp [03:48:42]Write 4 bytes [03:48:42]NVStorageSaveData done [03:48:42]ExternCall_PrintAddStr [03:48:42]wPrintStart [03:48:42]Write to MH i2c: 01 00 00 0C 0E 1A [03:48:42]Write i2c OK [03:48:42]MH_I2C_Read... [03:48:42]Read from MH i2c: 01 [03:48:42]MH_I2C_Read... [03:48:42]Read from MH i2c: 01 07 00 [03:48:42]MH_I2C_Read... [03:48:42]Read from MH i2c: 01 07 00 0C 0E 00 00 00 00 00 FF 0F 2F [03:48:42]RasterBufferAndPrint [03:48:42]line Счет N : (1)506808 [03:48:42]line ИНН: 02508201610067 [03:48:42]line Контрольно-Кассовый Чек [03:48:42]line ПРОДАЖА [03:48:42]line ТРК (МРК, ГНК) : 43 [03:48:42]line Товар: 2710124130 [03:48:42]line Аи-92-К-5 [03:48:42]line 29.950 * 66.80 [03:48:42]line = 2000.66 [03:48:42]line НДС 12% НСП 1% [03:48:42]line > о реализуемом товаре [03:48:42]line ИТОГО: 2000.66 [03:48:42]line НСП 1% : 17.70 [03:48:42]line НДС 12% : 212.46 [03:48:42]line Наличными: 0.00 [03:48:42]line Безнал.: 2000.66 [03:48:42]line Место: АЗС № 91 "Партнер Нефть" [03:48:42]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [03:48:42]line СНО: Общий режим [03:48:42]line Чек 6 14.05.2024 03:48 [03:48:42]line Смена: 355 ФФД: 1.0 [03:48:42]line ЗНМ: 0300000119 [03:48:42]line РНМ: 0000000000091845 [03:48:42]line Версия ККМ: 001 [03:48:42]line Платежная система: O! деньги [03:48:42]line ФМ: 0000000000871829 [03:48:42]line ФД: 66999 [03:48:42]line ФПД: 251433731176397 [03:48:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T034843&type=1&operation_type=1&fn_number=0000000000871829&fd_number=66999&fm=251433731176397&tin=02508201610067®Number=0000000000091845&sum=200066 [03:48:42]written 0, free lines is 4095 [03:48:42]OFD Sender: Processing packet 66999 [packets to send 35, broken 34] [03:48:42]ProducePacketName [03:48:42]name=ofd_packets/00066999 [03:48:42]OFD Sender: To server: pG, [03:48:42]CommunicateWithHost lk.salyk.kg:30040 [03:48:42]ConnectInit lk.salyk.kg [03:48:43]Connected sock=10 [03:48: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 0F 01 00 00 D3 44 07 01 40 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 82 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 1B DF 42 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B7 05 01 00 35 04 06 00 E4 AD 7A 3B 37 CD 79 40 BF C9 FA 5D 66 34 [03:48: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 04 60 47 00 21 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 B7 05 01 00 F4 03 04 00 FC 86 42 66 B6 04 01 00 00 D0 10 DF 61 21 81 F8 F6 [03:48:43]CommunicateWithHost err = 0 [03:48:43]CheckOFDResponse [03:48:43]1017 (14) - 77093643461234 [03:48:43]1041 (16) - 0000000000871829 [03:48:43]1040 (4) - 66999 [03:48:43]1012 (4) - 13.05.2024 21:32 [03:48:43]1206 (1) - 0 [03:48:43]OFD Sender: Remove packet 66999 [03:48:43]ProducePacketName [03:48:43]name=ofd_packets/00066999 [03:48:43]NVStorageDeleteData [03:48:43]Write to MH i2c: 01 00 00 35 0E 43 [03:48:43]Write i2c OK [03:48:43]MH_I2C_Read... [03:48:43]Read from MH i2c: 01 [03:48:43]MH_I2C_Read... [03:48:43]Read from MH i2c: 01 07 00 [03:48:43]MH_I2C_Read... [03:48:43]Read from MH i2c: 01 07 00 35 0E 00 00 00 00 00 EA 0C 40 [03:48:43]RasterBufferAndPrint [03:48:43]line [03:48:43]line [03:48:43]line [03:48:43]line [03:48:43]line [03:48:43]written 0, free lines is 3312 [03:48:43]MH_Cut [03:48:43]Write to MH i2c: D1 01 00 3C 0E 01 1C [03:48:43]Write i2c OK [03:48:43]MH_I2C_Read... [03:48:43]Read from MH i2c: D1 [03:48:43]MH_I2C_Read... [03:48:43]Read from MH i2c: D1 01 00 [03:48:43]MH_I2C_Read... [03:48:43]Read from MH i2c: D1 01 00 3C 0E 00 1B [03:48:43]Write to MH i2c: 01 00 00 3D 0E 4B [03:48:43]Write i2c OK [03:48:43]MH_I2C_Read... [03:48:43]OFD Sender: No OFD packet to send [03:48:44]*** Cut start [03:48:44]*** Purtial cut [03:48:44]*** CUTSNS_PIN = 0 [03:48:44]*** Stage 1: CUTSNS_PIN = 1 [03:48:46]Read from MH i2c: 01 [03:48:46]MH_I2C_Read... [03:48:46]*** Stop cut motor [03:48:46]*** Cut end [03:48:46]Read from MH i2c: 01 07 00 [03:48:46]MH_I2C_Read... [03:48:46]Read from MH i2c: 01 07 00 3D 0E 00 00 00 00 00 FF 0F 60 [03:48:46]process_action close_receipt done [03:48:46]requested_data is exist [03:48:46]produce_requested_data [03:48:46]requested_item fm.sn is exist - process it [03:48:46]wFMCommunicate request_size=4 [03:48:46]MH_SAM_APDU [03:48:46]CAPDU: 80 11 00 00 [03:48:46]Write to MH i2c: E2 08 00 3E 0E 80 11 00 00 00 00 00 00 C6 [03:48:46]Write i2c OK [03:48:46]MH_I2C_Read... [03:48:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:48:46]Read from MH i2c: E2 [03:48:46]MH_I2C_Read... [03:48:46]Read from MH i2c: E2 17 00 [03:48:46]MH_I2C_Read... [03:48:46]Read from MH i2c: E2 17 00 3E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1C [03:48:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [03:48:46]wFMCommunicate OK [03:48:46]requested_item fd.num is exist - process it [03:48:46]SAM_PROTO_GetFieldsCounters [03:48:46]wFMCommunicate request_size=4 [03:48:46]MH_SAM_APDU [03:48:46]CAPDU: 80 13 00 00 [03:48:46]Write to MH i2c: E2 08 00 3F 0E 80 13 00 00 00 00 00 00 C9 [03:48:46]Write i2c OK [03:48:46]MH_I2C_Read... [03:48:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:48:46]Read from MH i2c: E2 [03:48:46]MH_I2C_Read... [03:48:46]Read from MH i2c: E2 62 00 [03:48:46]MH_I2C_Read... [03:48:46]Read from MH i2c: E2 62 00 3F 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 B7 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [03:48: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 B7 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:48:46]wFMCommunicate OK [03:48:46]SAM_PROTO_GetFieldsCounters done [03:48:46]requested_item shift.num is exist - process it [03:48:46]requested_item shift.opened is exist - process it [03:48:46]req_shift_opened [03:48:46]FM_GetShiftState [03:48:46]SAM_PROTO_GetShiftState [03:48:46]wFMCommunicate request_size=4 [03:48:46]MH_SAM_APDU [03:48:46]CAPDU: 80 13 01 00 [03:48:46]Write to MH i2c: E2 08 00 40 0E 80 13 01 00 00 00 00 00 CB [03:48:46]Write i2c OK [03:48:46]MH_I2C_Read... [03:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:48:46]Read from MH i2c: E2 [03:48:46]MH_I2C_Read... [03:48:46]Read from MH i2c: E2 0E 00 [03:48:46]MH_I2C_Read... [03:48:46]Read from MH i2c: E2 0E 00 40 0E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 93 [03:48:46]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [03:48:46]wFMCommunicate OK [03:48:46]SAM_PROTO_GetShiftState done [03:48:46]FM_GetShiftState done [03:48:46]req_shift_opened done [03:48:46]requested_item shift.open_date is exist - process it [03:48:46]req_shift_open_date [03:48:46]req_shift_open_date done [03:48:46]produce_requested_data done [03:48:46]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":66999,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [03:48:46]process_action_free close_receipt [03:48:46]json_value_free [03:48:46]json_value_free done [03:48:46]process_json_proto returns [03:48:46]Send response to host [03:48:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":66999,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [03:48:46]free response buf [03:48:46]execute_script done [03:48:46]execute_script returns [03:48:46]free content buf [03:48:46]Sock 8.Close socket [03:48:46]Sock 8.Thread stoped [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:43]OFD Sender: No OFD packet to send [03:51:48]OFD Sender: No OFD packet to send [03:51:53]OFD Sender: No OFD packet to send [03:51:58]OFD Sender: No OFD packet to send [03:52:03]OFD Sender: No OFD packet to send [03:52:08]OFD Sender: No OFD packet to send [03:52:13]OFD Sender: No OFD packet to send [03:52:18]OFD Sender: No OFD packet to send [03:52:23]OFD Sender: No OFD packet to send [03:52:28]OFD Sender: No OFD packet to send [03:52:33]OFD Sender: No OFD packet to send [03:52:38]OFD Sender: No OFD packet to send [03:52:43]OFD Sender: No OFD packet to send [03:52:48]OFD Sender: No OFD packet to send [03:52:53]OFD Sender: No OFD packet to send [03:52:58]OFD Sender: No OFD packet to send [03:53:03]OFD Sender: No OFD packet to send [03:53:08]OFD Sender: No OFD packet to send [03:53:13]OFD Sender: No OFD packet to send [03:53:18]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:39]OFD Sender: No OFD packet to send [03:55:44]OFD Sender: No OFD packet to send [03:55:47]recv_with_timeout no data received [03:55:49]OFD Sender: No OFD packet to send [03:55:54]OFD Sender: No OFD packet to send [03:55:59]OFD Sender: No OFD packet to send [03:56:04]OFD Sender: No OFD packet to send [03:56:09]OFD Sender: No OFD packet to send [03:56:14]OFD Sender: No OFD packet to send [03:56:19]OFD Sender: No OFD packet to send [03:56:24]OFD Sender: No OFD packet to send [03:56:29]OFD Sender: No OFD packet to send [03:56:34]OFD Sender: No OFD packet to send [03:56:39]OFD Sender: No OFD packet to send [03:56:44]OFD Sender: No OFD packet to send [03:56:49]OFD Sender: No OFD packet to send [03:56:54]OFD Sender: No OFD packet to send [03:56:59]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:09]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:33]recv_with_timeout no data received [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:29]OFD Sender: No OFD packet to send [04:09:34]OFD Sender: No OFD packet to send [04:09:39]OFD Sender: No OFD packet to send [04:09:44]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:09]recv_with_timeout no data received [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:15]recv_with_timeout no data received [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]recv_with_timeout no data received [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:00]accept exits with 9 [04:47:00]New connection [04:47:00]New thread 3066617188 created [04:47:00]Thread 3066760548 joined [04:47:00]Waiting for new connection... [04:47:00] Sock 9.Parse request [04:47:00]Sock 9.Check first char [04:47:00]Sock 9.First char is OK [04:47:00]request: POST /json_proto HTTP/1.0 [04:47:00]Method: POST [04:47:00]URL: /json_proto [04:47:00]Method is POST - this is cgi request [04:47:00]url: /json_proto [04:47:00]query_string will be loaded in cgi processing [04:47:00]execute_cgi json_proto POST (null) [04:47:00]execute_cgi path=json_proto method=POST [04:47:00]POST find Content-Length [04:47:00]Host: 172.17.41.195:8080 [04:47:00]Content-Length: 1178 [04:47:00]Content-Type: application/json [04:47:00] [04:47:00]POST finish read [04:47:00]Found Content-Length = 1178 [04:47:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506809\u000A14.05.2024 04: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 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" ] } } [04:47:00]execute_script... [04:47:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506809\u000A14.05.2024 04: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 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" ] } } [04:47:00]POST & json_proto [04:47:00]process_json_proto [04:47:00]json parsed OK: [04:47:00]protocol is kg_v1.0 [04:47:00]action value=print_text [04:47:00]process_action print_text [04:47:00]cmd_print_text [04:47:00]ExternCall_PrintAddStr [04:47:00]wPrintStart [04:47:00]Write to MH i2c: 01 00 00 41 0E 4F [04:47:00]Write i2c OK [04:47:00]MH_I2C_Read... [04:47:00]Read from MH i2c: 01 [04:47:00]MH_I2C_Read... [04:47:00]Read from MH i2c: 01 07 00 [04:47:00]MH_I2C_Read... [04:47:00]Read from MH i2c: 01 07 00 41 0E 00 00 00 00 00 FF 0F 64 [04:47:00]RasterBufferAndPrint [04:47:00]line *****ТОВАРНЫЙ ЧЕК***** [04:47:00]line АЗС-91 [04:47:00]line Партнер нефть [04:47:00]line 02508201610067 [04:47:00]line Кассир : Адишов И. [04:47:00]line Счет N : (1)506809 [04:47:00]line 14.05.2024 04:29 [04:47:00]line ПРОДАЖА [04:47:00]line ТРК (МРК, ГНК): 21 [04:47:00]line Вид ГСМ : 2710194210 [04:47:00]line ДТ-К-5 [04:47:00]line 10.000 x 74.70 [04:47:00]line ИТОГ: 747.00 [04:47:00]line Тип оплаты: Талоны: Топливная Карта [04:47:00]line 02750 [04:47:00]line ______________________ [04:47:00]line (подпись) [04:47:00]written 0, free lines is 4095 [04:47:01]Write to MH i2c: 01 00 00 55 0E 63 [04:47:01]Write i2c OK [04:47:01]MH_I2C_Read... [04:47:01]Read from MH i2c: 01 [04:47:01]MH_I2C_Read... [04:47:01]Read from MH i2c: 01 07 00 [04:47:01]MH_I2C_Read... [04:47:01]Read from MH i2c: 01 07 00 55 0E 00 00 00 00 00 0C 0E 84 [04:47:01]RasterBufferAndPrint [04:47:01]line [04:47:01]line [04:47:01]line [04:47:01]line [04:47:01]line [04:47:01]written 0, free lines is 3597 [04:47:01]MH_Cut [04:47:01]Write to MH i2c: D1 01 00 5C 0E 01 3C [04:47:01]Write i2c OK [04:47:01]MH_I2C_Read... [04:47:01]Read from MH i2c: D1 [04:47:01]MH_I2C_Read... [04:47:01]Read from MH i2c: D1 01 00 [04:47:01]MH_I2C_Read... [04:47:01]Read from MH i2c: D1 01 00 5C 0E 00 3B [04:47:01]Write to MH i2c: 01 00 00 5D 0E 6B [04:47:01]Write i2c OK [04:47:01]MH_I2C_Read... [04:47:01]*** Cut start [04:47:01]*** Purtial cut [04:47:01]*** Stage 1: CUTSNS_PIN = 1 [04:47:01]OFD Sender: No OFD packet to send [04:47:02]Read from MH i2c: 01 [04:47:02]MH_I2C_Read... [04:47:02]Read from MH i2c: 01 07 00 [04:47:02]MH_I2C_Read... [04:47:02]*** Stop cut motor [04:47:02]*** Cut end [04:47:02]Read from MH i2c: 01 07 00 5D 0E 00 00 00 00 00 FF 0F 80 [04:47:02]process_action print_text done [04:47:02]requested_data is exist [04:47:02]produce_requested_data [04:47:02]requested_item fm.sn is exist - process it [04:47:02]wFMCommunicate request_size=4 [04:47:02]MH_SAM_APDU [04:47:02]CAPDU: 80 11 00 00 [04:47:02]Write to MH i2c: E2 08 00 5E 0E 80 11 00 00 00 00 00 00 E6 [04:47:02]Write i2c OK [04:47:02]MH_I2C_Read... [04:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:47:02]Read from MH i2c: E2 [04:47:02]MH_I2C_Read... [04:47:02]Read from MH i2c: E2 17 00 [04:47:02]MH_I2C_Read... [04:47:02]Read from MH i2c: E2 17 00 5E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3C [04: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 [04:47:02]wFMCommunicate OK [04:47:02]requested_item fd.num is exist - process it [04:47:02]SAM_PROTO_GetFieldsCounters [04:47:02]wFMCommunicate request_size=4 [04:47:02]MH_SAM_APDU [04:47:02]CAPDU: 80 13 00 00 [04:47:02]Write to MH i2c: E2 08 00 5F 0E 80 13 00 00 00 00 00 00 E9 [04:47:02]Write i2c OK [04:47:02]MH_I2C_Read... [04:47:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:47:02]Read from MH i2c: E2 [04:47:02]MH_I2C_Read... [04:47:02]Read from MH i2c: E2 62 00 [04:47:02]MH_I2C_Read... [04:47:02]Read from MH i2c: E2 62 00 5F 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 B7 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [04: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 B7 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:47:02]wFMCommunicate OK [04:47:02]SAM_PROTO_GetFieldsCounters done [04:47:02]requested_item shift.num is exist - process it [04:47:02]requested_item shift.opened is exist - process it [04:47:02]req_shift_opened [04:47:02]FM_GetShiftState [04:47:02]SAM_PROTO_GetShiftState [04:47:02]wFMCommunicate request_size=4 [04:47:02]MH_SAM_APDU [04:47:02]CAPDU: 80 13 01 00 [04:47:02]Write to MH i2c: E2 08 00 60 0E 80 13 01 00 00 00 00 00 EB [04:47:02]Write i2c OK [04:47:02]MH_I2C_Read... [04:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:47:02]Read from MH i2c: E2 [04:47:02]MH_I2C_Read... [04:47:02]Read from MH i2c: E2 0E 00 [04:47:02]MH_I2C_Read... [04:47:02]Read from MH i2c: E2 0E 00 60 0E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 B3 [04:47:02]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [04:47:02]wFMCommunicate OK [04:47:02]SAM_PROTO_GetShiftState done [04:47:02]FM_GetShiftState done [04:47:02]req_shift_opened done [04:47:02]requested_item shift.open_date is exist - process it [04:47:02]req_shift_open_date [04:47:02]req_shift_open_date done [04:47:02]produce_requested_data done [04:47:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":66999,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [04:47:02]process_action_free print_text [04:47:02]json_value_free [04:47:02]json_value_free done [04:47:02]process_json_proto returns [04:47:02]Send response to host [04:47:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":66999,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [04:47:02]free response buf [04:47:02]execute_script done [04:47:02]execute_script returns [04:47:02]free content buf [04:47:02]Sock 9.Close socket [04:47:02]Sock 9.Thread stoped [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:09]recv_with_timeout no data received [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:45]recv_with_timeout no data received [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:43]accept exits with 8 [04:56:43]New connection [04:56:43]New thread 3066760548 created [04:56:43]Thread 3066617188 joined [04:56:43]Waiting for new connection... [04:56:43] Sock 8.Parse request [04:56:43]Sock 8.Check first char [04:56:43]Sock 8.First char is OK [04:56:43]request: POST /json_proto HTTP/1.0 [04:56:43]Method: POST [04:56:43]URL: /json_proto [04:56:43]Method is POST - this is cgi request [04:56:43]url: /json_proto [04:56:43]query_string will be loaded in cgi processing [04:56:43]execute_cgi json_proto POST (null) [04:56:43]execute_cgi path=json_proto method=POST [04:56:43]POST find Content-Length [04:56:43]Host: 172.17.41.195:8080 [04:56:43]Content-Length: 1179 [04:56:43]Content-Type: application/json [04:56:43] [04:56:43]POST finish read [04:56:43]Found Content-Length = 1179 [04:56:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506810\u000A14.05.2024 04:39\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" ] } } [04:56:43]execute_script... [04:56:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506810\u000A14.05.2024 04:39\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" ] } } [04:56:43]POST & json_proto [04:56:43]process_json_proto [04:56:43]json parsed OK: [04:56:43]protocol is kg_v1.0 [04:56:43]action value=print_text [04:56:43]process_action print_text [04:56:43]cmd_print_text [04:56:43]ExternCall_PrintAddStr [04:56:43]wPrintStart [04:56:43]Write to MH i2c: 01 00 00 61 0E 6F [04:56:43]Write i2c OK [04:56:43]MH_I2C_Read... [04:56:43]Read from MH i2c: 01 [04:56:43]MH_I2C_Read... [04:56:43]Read from MH i2c: 01 07 00 [04:56:43]MH_I2C_Read... [04:56:43]Read from MH i2c: 01 07 00 61 0E 00 00 00 00 00 FF 0F 84 [04:56:43]RasterBufferAndPrint [04:56:43]line *****ТОВАРНЫЙ ЧЕК***** [04:56:43]line АЗС-91 [04:56:43]line Партнер нефть [04:56:43]line 02508201610067 [04:56:43]line Кассир : Адишов И. [04:56:43]line Счет N : (1)506810 [04:56:43]line 14.05.2024 04:39 [04:56:43]line ПРОДАЖА [04:56:43]line ТРК (МРК, ГНК): 31 [04:56:43]line Вид ГСМ : 2710194210 [04:56:43]line ДТ-К-5 [04:56:43]line 15.000 x 74.70 [04:56:43]line ИТОГ: 1120.50 [04:56:43]line Тип оплаты: Талоны: Топливная Карта [04:56:43]line 02750 [04:56:43]line ______________________ [04:56:43]line (подпись) [04:56:43]written 0, free lines is 4095 [04:56:43]Write to MH i2c: 01 00 00 75 0E 83 [04:56:43]Write i2c OK [04:56:43]MH_I2C_Read... [04:56:43]Read from MH i2c: 01 [04:56:43]MH_I2C_Read... [04:56:43]Read from MH i2c: 01 07 00 [04:56:43]MH_I2C_Read... [04:56:43]Read from MH i2c: 01 07 00 75 0E 00 00 00 00 00 0C 0E A4 [04:56:43]RasterBufferAndPrint [04:56:43]line [04:56:43]line [04:56:43]line [04:56:43]line [04:56:43]line [04:56:43]written 0, free lines is 3597 [04:56:43]MH_Cut [04:56:43]Write to MH i2c: D1 01 00 7C 0E 01 5C [04:56:43]Write i2c OK [04:56:43]MH_I2C_Read... [04:56:43]Read from MH i2c: D1 [04:56:43]MH_I2C_Read... [04:56:43]Read from MH i2c: D1 01 00 [04:56:43]MH_I2C_Read... [04:56:43]Read from MH i2c: D1 01 00 7C 0E 00 5B [04:56:43]Write to MH i2c: 01 00 00 7D 0E 8B [04:56:43]Write i2c OK [04:56:43]MH_I2C_Read... [04:56:43]*** Cut start [04:56:43]*** Purtial cut [04:56:43]*** CUTSNS_PIN = 0 [04:56:44]*** Stage 1: CUTSNS_PIN = 1 [04:56:45]Read from MH i2c: 01 [04:56:45]MH_I2C_Read... [04:56:45]Read from MH i2c: 01 07 00 [04:56:45]MH_I2C_Read... [04:56:45]*** Stop cut motor [04:56:45]*** Cut end [04:56:45]Read from MH i2c: 01 07 00 7D 0E 00 00 00 00 00 FF 0F A0 [04:56:45]process_action print_text done [04:56:45]requested_data is exist [04:56:45]produce_requested_data [04:56:45]requested_item fm.sn is exist - process it [04:56:45]wFMCommunicate request_size=4 [04:56:45]MH_SAM_APDU [04:56:45]CAPDU: 80 11 00 00 [04:56:45]Write to MH i2c: E2 08 00 7E 0E 80 11 00 00 00 00 00 00 06 [04:56:45]Write i2c OK [04:56:45]MH_I2C_Read... [04:56:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:56:45]Read from MH i2c: E2 [04:56:45]MH_I2C_Read... [04:56:45]Read from MH i2c: E2 17 00 [04:56:45]MH_I2C_Read... [04:56:45]Read from MH i2c: E2 17 00 7E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5C [04:56:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [04:56:45]wFMCommunicate OK [04:56:45]requested_item fd.num is exist - process it [04:56:45]SAM_PROTO_GetFieldsCounters [04:56:45]wFMCommunicate request_size=4 [04:56:45]MH_SAM_APDU [04:56:45]CAPDU: 80 13 00 00 [04:56:45]Write to MH i2c: E2 08 00 7F 0E 80 13 00 00 00 00 00 00 09 [04:56:45]Write i2c OK [04:56:45]MH_I2C_Read... [04:56:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:56:46]Read from MH i2c: E2 [04:56:46]MH_I2C_Read... [04:56:46]Read from MH i2c: E2 62 00 [04:56:46]MH_I2C_Read... [04:56:46]Read from MH i2c: E2 62 00 7F 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 B7 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [04:56:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 B7 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:56:46]wFMCommunicate OK [04:56:46]SAM_PROTO_GetFieldsCounters done [04:56:46]requested_item shift.num is exist - process it [04:56:46]requested_item shift.opened is exist - process it [04:56:46]req_shift_opened [04:56:46]FM_GetShiftState [04:56:46]SAM_PROTO_GetShiftState [04:56:46]wFMCommunicate request_size=4 [04:56:46]MH_SAM_APDU [04:56:46]CAPDU: 80 13 01 00 [04:56:46]Write to MH i2c: E2 08 00 80 0E 80 13 01 00 00 00 00 00 0B [04:56:46]Write i2c OK [04:56:46]MH_I2C_Read... [04:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:56:46]Read from MH i2c: E2 [04:56:46]MH_I2C_Read... [04:56:46]Read from MH i2c: E2 0E 00 [04:56:46]MH_I2C_Read... [04:56:46]Read from MH i2c: E2 0E 00 80 0E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D3 [04:56:46]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [04:56:46]wFMCommunicate OK [04:56:46]SAM_PROTO_GetShiftState done [04:56:46]FM_GetShiftState done [04:56:46]req_shift_opened done [04:56:46]requested_item shift.open_date is exist - process it [04:56:46]req_shift_open_date [04:56:46]req_shift_open_date done [04:56:46]produce_requested_data done [04:56:46]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":66999,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [04:56:46]process_action_free print_text [04:56:46]json_value_free [04:56:46]json_value_free done [04:56:46]process_json_proto returns [04:56:46]Send response to host [04:56:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":66999,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [04:56:46]free response buf [04:56:46]execute_script done [04:56:46]execute_script returns [04:56:46]free content buf [04:56:46]Sock 8.Close socket [04:56:46]Sock 8.Thread stoped [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:58:58]recv_with_timeout no data received [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:48]accept exits with 9 [05:06:48]New connection [05:06:48]New thread 3066617188 created [05:06:48]Thread 3066760548 joined [05:06:48]Waiting for new connection... [05:06:48] Sock 9.Parse request [05:06:48]Sock 9.Check first char [05:06:48]Sock 9.First char is OK [05:06:48]request: POST /json_proto HTTP/1.0 [05:06:48]Method: POST [05:06:48]URL: /json_proto [05:06:48]Method is POST - this is cgi request [05:06:48]url: /json_proto [05:06:48]query_string will be loaded in cgi processing [05:06:48]execute_cgi json_proto POST (null) [05:06:48]execute_cgi path=json_proto method=POST [05:06:48]POST find Content-Length [05:06:48]Host: 172.17.41.195:8080 [05:06:48]Content-Length: 800 [05:06:48]Content-Type: application/json [05:06:48] [05:06:48]POST finish read [05:06:48]Found Content-Length = 800 [05:06:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506811", "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" : 66.940, "sum" : 5000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:06:48]execute_script... [05:06: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)506811", "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" : 66.940, "sum" : 5000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:06:48]POST & json_proto [05:06:48]process_json_proto [05:06:48]json parsed OK: [05:06:48]protocol is kg_v1.0 [05:06:48]action value=close_receipt [05:06:48]process_action close_receipt [05:06:48]cmd_close_receipt [05:06:48]MH_GetDate [05:06:48]Write to MH i2c: F0 00 00 81 0E 7E [05:06:48]Write i2c OK [05:06:48]MH_I2C_Read... [05:06:48]Read from MH i2c: F0 [05:06:48]MH_I2C_Read... [05:06:48]Read from MH i2c: F0 09 00 [05:06:48]MH_I2C_Read... [05:06:48]Read from MH i2c: F0 09 00 81 0E 00 6B F1 42 66 FC 21 6F 64 7B [05:06:48]GetLastDocTimeStamp 1715658523 [05:06:48]current date 1715663211 [05:06:48]FM_GetShiftState [05:06:48]SAM_PROTO_GetShiftState [05:06:48]wFMCommunicate request_size=4 [05:06:48]MH_SAM_APDU [05:06:48]CAPDU: 80 13 01 00 [05:06:48]Write to MH i2c: E2 08 00 82 0E 80 13 01 00 00 00 00 00 0D [05:06:48]Write i2c OK [05:06:48]MH_I2C_Read... [05:06:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:06:48]Read from MH i2c: E2 [05:06:48]MH_I2C_Read... [05:06:48]Read from MH i2c: E2 0E 00 [05:06:48]MH_I2C_Read... [05:06:48]Read from MH i2c: E2 0E 00 82 0E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D5 [05:06:48]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [05:06:48]wFMCommunicate OK [05:06:48]SAM_PROTO_GetShiftState done [05:06:48]FM_GetShiftState done [05:06:48]opened in 1715646054 [05:06:48]opened+sec_in_day 1715732454 [05:06:48]quantity*price = 500041 [05:06:48]sum+1 = 500043 [05:06:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.42 НСП 1% : 44.25 НДС 12% : 531.02 Наличными: 0.00 Безнал.: 5000.42 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 7 14.05.2024 05:06 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67000 ФПД: 2177220936041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T050651&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67000&fm=2177220936041&tin=02508201610067®Number=0000000000091845&sum=500042 [05:06:49]StoreToDocumentArchive [05:06:49]shift 355 fd 67000 [05:06:49]save to /storage/0355/doc_00067000 [05:06:49]save last doc name /storage/0355/doc_00067000 to /storage/kkm_last_doc_name [05:06:49]save OK [05:06:49]Clear old archive folders... [05:06:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:06:49]tlvbuf is 00386780 [05:06:49]SAM_PROTO_ClearQueue [05:06:49]wFMCommunicate request_size=4 [05:06:49]MH_SAM_APDU [05:06:49]CAPDU: 80 09 00 00 [05:06:49]Write to MH i2c: E2 08 00 8F 0E 80 09 00 00 00 00 00 00 0F [05:06:49]Write i2c OK [05:06:49]MH_I2C_Read... [05:06:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:06:49]Read from MH i2c: E2 [05:06:49]MH_I2C_Read... [05:06:49]Read from MH i2c: E2 03 00 [05:06:49]MH_I2C_Read... [05:06:49]Read from MH i2c: E2 03 00 8F 0E 00 90 00 11 [05:06:49]RAPDU: 90 00 [05:06:49]wFMCommunicate OK [05:06:49]SAM_PROTO_ClearQueue done [05:06:49]KKMCreateOFDPacket [05:06:49]OFDProtocolAddRootSTLVToBuf [05:06:49]FM_MakeSignedData [05:06:49]FM_MakeSignedData [05:06:49]SAM_PROTO_SignData [05:06:49]wFMCommunicate request_size=4 [05:06:49]MH_SAM_APDU [05:06:49]CAPDU: 80 0D 01 02 [05:06:49]Write to MH i2c: E2 08 00 90 0E 80 0D 01 02 00 00 00 00 17 [05:06:49]Write i2c OK [05:06:49]MH_I2C_Read... [05:06:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:06:49]Read from MH i2c: E2 [05:06:49]MH_I2C_Read... [05:06:49]Read from MH i2c: E2 03 00 [05:06:49]MH_I2C_Read... [05:06:49]Read from MH i2c: E2 03 00 90 0E 00 90 00 12 [05:06:49]RAPDU: 90 00 [05:06:49]wFMCommunicate OK [05:06:49]wFMCommunicate request_size=255 [05:06:49]MH_SAM_APDU [05:06: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 7C 05 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4A A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6B F1 42 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B8 05 01 00 35 04 06 00 01 FA EC 7B [05:06:49]Write to MH i2c: E2 02 01 91 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 7C 05 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4A A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6B F1 42 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B8 05 01 00 35 04 06 00 01 FA EC 7B 00 00 42 [05:06:49]Write i2c OK [05:06:49]MH_I2C_Read... [05:06:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:06:50]Read from MH i2c: E2 [05:06:50]MH_I2C_Read... [05:06:50]Read from MH i2c: E2 03 00 [05:06:50]MH_I2C_Read... [05:06:50]Read from MH i2c: E2 03 00 91 0E 00 90 00 13 [05:06:50]RAPDU: 90 00 [05:06:50]wFMCommunicate OK [05:06:50]wFMCommunicate request_size=7 [05:06:50]MH_SAM_APDU [05:06:50]CAPDU: 80 0D 02 02 02 01 69 [05:06:50]Write to MH i2c: E2 0A 00 92 0E 80 0D 02 02 02 00 01 69 00 00 88 [05:06:50]Write i2c OK [05:06:50]MH_I2C_Read... [05:06:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:06:50]Read from MH i2c: E2 [05:06:50]MH_I2C_Read... [05:06:50]Read from MH i2c: E2 03 00 [05:06:50]MH_I2C_Read... [05:06:50]Read from MH i2c: E2 03 00 92 0E 00 90 00 14 [05:06:50]RAPDU: 90 00 [05:06:50]wFMCommunicate OK [05:06:50]wFMCommunicate request_size=4 [05:06:50]MH_SAM_APDU [05:06:50]CAPDU: 80 0D 03 02 [05:06:50]Write to MH i2c: E2 08 00 93 0E 80 0D 03 02 00 00 00 00 1C [05:06:50]Write i2c OK [05:06:50]MH_I2C_Read... [05:06:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:06:50]Read from MH i2c: E2 [05:06:50]MH_I2C_Read... [05:06:50]Read from MH i2c: E2 0B 00 [05:06:50]MH_I2C_Read... [05:06:50]Read from MH i2c: E2 0B 00 93 0E 00 1C 45 6D DB 44 AF 17 50 90 00 20 [05:06:50]RAPDU: 1C 45 6D DB 44 AF 17 50 90 00 [05:06:50]wFMCommunicate OK [05:06:50]SAM_PROTO_SignData done [05:06:50]FM_MakeSignedData done [05:06:50]CreateOFDProtocolMessage [05:06:50]wFMCommunicate request_size=4 [05:06:50]MH_SAM_APDU [05:06:50]CAPDU: 80 11 00 00 [05:06:50]Write to MH i2c: E2 08 00 94 0E 80 11 00 00 00 00 00 00 1C [05:06:50]Write i2c OK [05:06:50]MH_I2C_Read... [05:06:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:06:50]Read from MH i2c: E2 [05:06:50]MH_I2C_Read... [05:06:50]Read from MH i2c: E2 17 00 [05:06:50]MH_I2C_Read... [05:06:50]Read from MH i2c: E2 17 00 94 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 72 [05:06:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [05:06:50]wFMCommunicate OK [05:06:50]CreateOFDProtocolMessage done [05:06:50]OFDSenderStorePacket 67000 [05:06:50]StoreOFDPacket docnum=67000 [05:06: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 FA FD 04 01 9E 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 05 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4A A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6B F1 42 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B8 05 01 00 35 04 06 00 01 FA EC 7B 01 69 1C 45 6D DB 44 AF 17 50 [05:06:50]CheckFolder [05:06:50]dirname=/storage/ofd_packets [05:06:50]CheckFolder done [05:06:50]ProducePacketName [05:06:50]name=ofd_packets/00067000 [05:06:50]NVStorageSaveData ofd_packets/00067000 [05:06:50]File name is /storage/ofd_packets/00067000 [05:06:50]Write 298 bytes [05:06:50]NVStorageSaveData done [05:06:50]OFDSenderStorePacket done [05:06:50]KKMCreateOFDPacket done [05:06:50]NVStorageSaveData kkm_last_timestamp [05:06:50]File name is /storage/kkm_last_timestamp [05:06:50]Write 4 bytes [05:06:50]NVStorageSaveData done [05:06:50]ExternCall_PrintAddStr [05:06:50]wPrintStart [05:06:50]Write to MH i2c: 01 00 00 95 0E A3 [05:06:50]Write i2c OK [05:06:50]MH_I2C_Read... [05:06:50]Read from MH i2c: 01 [05:06:50]MH_I2C_Read... [05:06:50]Read from MH i2c: 01 07 00 [05:06:50]MH_I2C_Read... [05:06:50]Read from MH i2c: 01 07 00 95 0E 00 00 00 00 00 FF 0F B8 [05:06:50]RasterBufferAndPrint [05:06:50]line Счет N : (1)506811 [05:06:50]line ИНН: 02508201610067 [05:06:50]line Контрольно-Кассовый Чек [05:06:50]line ПРОДАЖА [05:06:50]line ТРК (МРК, ГНК) : 11 [05:06:50]line Товар: 2710194210 [05:06:50]line ДТ-К-5 [05:06:50]line 66.940 * 74.70 [05:06:50]line = 5000.42 [05:06:50]line НДС 12% НСП 1% [05:06:50]line > о реализуемом товаре [05:06:50]line ИТОГО: 5000.42 [05:06:50]line НСП 1% : 44.25 [05:06:50]line НДС 12% : 531.02 [05:06:50]line Наличными: 0.00 [05:06:50]line Безнал.: 5000.42 [05:06:50]line Место: АЗС № 91 "Партнер Нефть" [05:06:50]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [05:06:50]line СНО: Общий режим [05:06:50]line Чек 7 14.05.2024 05:06 [05:06:50]line Смена: 355 ФФД: 1.0 [05:06:50]line ЗНМ: 0300000119 [05:06:50]line РНМ: 0000000000091845 [05:06:50]line Версия ККМ: 001 [05:06:50]line Платежная система: O! деньги [05:06:50]line ФМ: 0000000000871829 [05:06:50]line ФД: 67000 [05:06:50]line ФПД: 2177220936041 [05:06:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T050651&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67000&fm=2177220936041&tin=02508201610067®Number=0000000000091845&sum=500042 [05:06:50]OFD Sender: Processing packet 67000 [packets to send 35, broken 34] [05:06:50]ProducePacketName [05:06:50]name=ofd_packets/00067000 [05:06:50]OFD Sender: To server: pG, [05:06:50]CommunicateWithHost lk.salyk.kg:30040 [05:06:50]ConnectInit lk.salyk.kg [05:06:50]written 0, free lines is 4095 [05:06:51]Write to MH i2c: 01 00 00 BE 0E CC [05:06:51]Write i2c OK [05:06:51]MH_I2C_Read... [05:06:51]Read from MH i2c: 01 [05:06:51]MH_I2C_Read... [05:06:51]Read from MH i2c: 01 07 00 [05:06:51]MH_I2C_Read... [05:06:51]Read from MH i2c: 01 07 00 BE 0E 00 00 00 00 00 C8 0C A7 [05:06:51]RasterBufferAndPrint [05:06:51]line [05:06:51]line [05:06:51]line [05:06:51]line [05:06:51]line [05:06:51]written 0, free lines is 3276 [05:06:51]MH_Cut [05:06:51]Write to MH i2c: D1 01 00 C5 0E 01 A5 [05:06:51]Write i2c OK [05:06:51]MH_I2C_Read... [05:06:51]Read from MH i2c: D1 [05:06:51]MH_I2C_Read... [05:06:51]Read from MH i2c: D1 01 00 [05:06:51]MH_I2C_Read... [05:06:51]Read from MH i2c: D1 01 00 C5 0E 00 A4 [05:06:51]Write to MH i2c: 01 00 00 C6 0E D4 [05:06:51]Write i2c OK [05:06:51]MH_I2C_Read... [05:06:51]Connected sock=10 [05:06: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 FA FD 04 01 9E 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 05 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4A A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 6B F1 42 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B8 05 01 00 35 04 06 00 01 FA EC 7B 01 69 1C 45 6D DB 44 AF 17 50 [05:06: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 74 AE 47 00 44 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 B8 05 01 00 F4 03 04 00 4C 99 42 66 B6 04 01 00 00 49 2C 6C 6B 37 84 89 35 [05:06:51]CommunicateWithHost err = 0 [05:06:51]CheckOFDResponse [05:06:51]1017 (14) - 77093643461234 [05:06:51]1041 (16) - 0000000000871829 [05:06:51]1040 (4) - 67000 [05:06:51]1012 (4) - 13.05.2024 22:50 [05:06:51]1206 (1) - 0 [05:06:51]OFD Sender: Remove packet 67000 [05:06:51]ProducePacketName [05:06:51]name=ofd_packets/00067000 [05:06:51]NVStorageDeleteData [05:06:51]OFD Sender: No OFD packet to send [05:06:51]*** Cut start [05:06:51]*** Purtial cut [05:06:51]*** Stage 1: CUTSNS_PIN = 1 [05:06:52]Read from MH i2c: 01 [05:06:52]MH_I2C_Read... [05:06:52]*** Stop cut motor [05:06:52]*** Cut end [05:06:52]Read from MH i2c: 01 07 00 [05:06:52]MH_I2C_Read... [05:06:52]Read from MH i2c: 01 07 00 C6 0E 00 00 00 00 00 FF 0F E9 [05:06:52]process_action close_receipt done [05:06:52]requested_data is exist [05:06:52]produce_requested_data [05:06:52]requested_item fm.sn is exist - process it [05:06:52]wFMCommunicate request_size=4 [05:06:52]MH_SAM_APDU [05:06:52]CAPDU: 80 11 00 00 [05:06:52]Write to MH i2c: E2 08 00 C7 0E 80 11 00 00 00 00 00 00 4F [05:06:52]Write i2c OK [05:06:52]MH_I2C_Read... [05:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:06:52]Read from MH i2c: E2 [05:06:52]MH_I2C_Read... [05:06:52]Read from MH i2c: E2 17 00 [05:06:52]MH_I2C_Read... [05:06:52]Read from MH i2c: E2 17 00 C7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A5 [05:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [05:06:52]wFMCommunicate OK [05:06:52]requested_item fd.num is exist - process it [05:06:52]SAM_PROTO_GetFieldsCounters [05:06:52]wFMCommunicate request_size=4 [05:06:52]MH_SAM_APDU [05:06:52]CAPDU: 80 13 00 00 [05:06:52]Write to MH i2c: E2 08 00 C8 0E 80 13 00 00 00 00 00 00 52 [05:06:52]Write i2c OK [05:06:52]MH_I2C_Read... [05:06:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:06:52]Read from MH i2c: E2 [05:06:52]MH_I2C_Read... [05:06:52]Read from MH i2c: E2 62 00 [05:06:52]MH_I2C_Read... [05:06:52]Read from MH i2c: E2 62 00 C8 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 B8 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [05:06: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 B8 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:06:52]wFMCommunicate OK [05:06:52]SAM_PROTO_GetFieldsCounters done [05:06:52]requested_item shift.num is exist - process it [05:06:52]requested_item shift.opened is exist - process it [05:06:52]req_shift_opened [05:06:52]FM_GetShiftState [05:06:52]SAM_PROTO_GetShiftState [05:06:52]wFMCommunicate request_size=4 [05:06:52]MH_SAM_APDU [05:06:52]CAPDU: 80 13 01 00 [05:06:52]Write to MH i2c: E2 08 00 C9 0E 80 13 01 00 00 00 00 00 54 [05:06:52]Write i2c OK [05:06:52]MH_I2C_Read... [05:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:06:52]Read from MH i2c: E2 [05:06:52]MH_I2C_Read... [05:06:52]Read from MH i2c: E2 0E 00 [05:06:52]MH_I2C_Read... [05:06:52]Read from MH i2c: E2 0E 00 C9 0E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 1C [05:06:52]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [05:06:52]wFMCommunicate OK [05:06:52]SAM_PROTO_GetShiftState done [05:06:52]FM_GetShiftState done [05:06:52]req_shift_opened done [05:06:52]requested_item shift.open_date is exist - process it [05:06:52]req_shift_open_date [05:06:52]req_shift_open_date done [05:06:52]produce_requested_data done [05:06:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67000,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [05:06:52]process_action_free close_receipt [05:06:52]json_value_free [05:06:52]json_value_free done [05:06:52]process_json_proto returns [05:06:52]Send response to host [05:06:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67000,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [05:06:52]free response buf [05:06:52]execute_script done [05:06:52]execute_script returns [05:06:52]free content buf [05:06:52]Sock 9.Close socket [05:06:52]Sock 9.Thread stoped [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:12]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:39]ConnectInit Can't connect to host [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:07]OFD Sender: No OFD packet to send [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:30]recv_with_timeout no data received [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:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]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:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]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:05]accept exits with 8 [05:55:05]New connection [05:55:05]New thread 3066760548 created [05:55:05]Thread 3066617188 joined [05:55:05]Waiting for new connection... [05:55:05] Sock 8.Parse request [05:55:05]Sock 8.Check first char [05:55:05]Sock 8.First char is OK [05:55:05]request: POST /json_proto HTTP/1.0 [05:55:05]Method: POST [05:55:05]URL: /json_proto [05:55:05]Method is POST - this is cgi request [05:55:05]url: /json_proto [05:55:05]query_string will be loaded in cgi processing [05:55:05]execute_cgi json_proto POST (null) [05:55:05]execute_cgi path=json_proto method=POST [05:55:05]POST find Content-Length [05:55:05]Host: 172.17.41.195:8080 [05:55:05]Content-Length: 682 [05:55:05]Content-Type: application/json [05:55:05] [05:55:05]POST finish read [05:55:05]Found Content-Length = 682 [05:55:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506812", "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" ] } } [05:55:05]execute_script... [05:55: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)506812", "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" ] } } [05:55:05]POST & json_proto [05:55:05]process_json_proto [05:55:05]json parsed OK: [05:55:05]protocol is kg_v1.0 [05:55:05]action value=close_receipt [05:55:05]process_action close_receipt [05:55:05]cmd_close_receipt [05:55:05]MH_GetDate [05:55:05]Write to MH i2c: F0 00 00 CA 0E C7 [05:55:05]Write i2c OK [05:55:05]MH_I2C_Read... [05:55:05]Read from MH i2c: F0 [05:55:05]MH_I2C_Read... [05:55:05]Read from MH i2c: F0 09 00 [05:55:05]MH_I2C_Read... [05:55:05]Read from MH i2c: F0 09 00 CA 0E 00 BC FC 42 66 FC 21 6F 64 20 [05:55:05]GetLastDocTimeStamp 1715663211 [05:55:05]current date 1715666108 [05:55:05]FM_GetShiftState [05:55:05]SAM_PROTO_GetShiftState [05:55:05]wFMCommunicate request_size=4 [05:55:05]MH_SAM_APDU [05:55:05]CAPDU: 80 13 01 00 [05:55:05]Write to MH i2c: E2 08 00 CB 0E 80 13 01 00 00 00 00 00 56 [05:55:05]Write i2c OK [05:55:05]MH_I2C_Read... [05:55:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:55:05]Read from MH i2c: E2 [05:55:05]MH_I2C_Read... [05:55:05]Read from MH i2c: E2 0E 00 [05:55:05]MH_I2C_Read... [05:55:05]Read from MH i2c: E2 0E 00 CB 0E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 1E [05:55:05]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [05:55:05]wFMCommunicate OK [05:55:05]SAM_PROTO_GetShiftState done [05:55:05]FM_GetShiftState done [05:55:05]opened in 1715646054 [05:55:05]opened+sec_in_day 1715732454 [05:55:05]quantity*price = 100066 [05:55:05]sum+1 = 100067 [05:55: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 СНО: Общий режим Чек 8 14.05.2024 05:55 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67001 ФПД: 125609780302072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T055508&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67001&fm=125609780302072&tin=02508201610067®Number=0000000000091845&sum=100000 [05:55:06]StoreToDocumentArchive [05:55:06]shift 355 fd 67001 [05:55:06]save to /storage/0355/doc_00067001 [05:55:06]save last doc name /storage/0355/doc_00067001 to /storage/kkm_last_doc_name [05:55:06]save OK [05:55:06]Clear old archive folders... [05:55:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:55:06]tlvbuf is 00349BA0 [05:55:06]SAM_PROTO_ClearQueue [05:55:06]wFMCommunicate request_size=4 [05:55:06]MH_SAM_APDU [05:55:06]CAPDU: 80 09 00 00 [05:55:06]Write to MH i2c: E2 08 00 D8 0E 80 09 00 00 00 00 00 00 58 [05:55:06]Write i2c OK [05:55:06]MH_I2C_Read... [05:55:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:55:06]Read from MH i2c: E2 [05:55:06]MH_I2C_Read... [05:55:06]Read from MH i2c: E2 03 00 [05:55:06]MH_I2C_Read... [05:55:06]Read from MH i2c: E2 03 00 D8 0E 00 90 00 5A [05:55:06]RAPDU: 90 00 [05:55:06]wFMCommunicate OK [05:55:06]SAM_PROTO_ClearQueue done [05:55:06]KKMCreateOFDPacket [05:55:06]OFDProtocolAddRootSTLVToBuf [05:55:06]FM_MakeSignedData [05:55:06]FM_MakeSignedData [05:55:06]SAM_PROTO_SignData [05:55:06]wFMCommunicate request_size=4 [05:55:06]MH_SAM_APDU [05:55:06]CAPDU: 80 0D 01 02 [05:55:06]Write to MH i2c: E2 08 00 D9 0E 80 0D 01 02 00 00 00 00 60 [05:55:06]Write i2c OK [05:55:06]MH_I2C_Read... [05:55:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:55:06]Read from MH i2c: E2 [05:55:06]MH_I2C_Read... [05:55:06]Read from MH i2c: E2 03 00 [05:55:06]MH_I2C_Read... [05:55:06]Read from MH i2c: E2 03 00 D9 0E 00 90 00 5B [05:55:06]RAPDU: 90 00 [05:55:06]wFMCommunicate OK [05:55:06]wFMCommunicate request_size=255 [05:55:06]MH_SAM_APDU [05:55: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 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 08 00 00 00 F4 03 04 00 BC FC 42 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B9 05 01 00 35 04 06 00 72 [05:55:06]Write to MH i2c: E2 02 01 DA 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 08 00 00 00 F4 03 04 00 BC FC 42 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B9 05 01 00 35 04 06 00 72 00 00 36 [05:55:06]Write i2c OK [05:55:06]MH_I2C_Read... [05:55:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:55:06]Read from MH i2c: E2 [05:55:06]MH_I2C_Read... [05:55:06]Read from MH i2c: E2 03 00 [05:55:06]MH_I2C_Read... [05:55:06]Read from MH i2c: E2 03 00 DA 0E 00 90 00 5C [05:55:06]RAPDU: 90 00 [05:55:06]wFMCommunicate OK [05:55:06]wFMCommunicate request_size=10 [05:55:06]MH_SAM_APDU [05:55:06]CAPDU: 80 0D 02 02 05 3D CE 55 D0 F8 [05:55:06]Write to MH i2c: E2 0D 00 DB 0E 80 0D 02 02 05 00 3D CE 55 D0 F8 00 00 95 [05:55:06]Write i2c OK [05:55:06]MH_I2C_Read... [05:55:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:55:06]Read from MH i2c: E2 [05:55:06]MH_I2C_Read... [05:55:06]Read from MH i2c: E2 03 00 [05:55:06]MH_I2C_Read... [05:55:06]Read from MH i2c: E2 03 00 DB 0E 00 90 00 5D [05:55:06]RAPDU: 90 00 [05:55:06]wFMCommunicate OK [05:55:06]wFMCommunicate request_size=4 [05:55:06]MH_SAM_APDU [05:55:06]CAPDU: 80 0D 03 02 [05:55:06]Write to MH i2c: E2 08 00 DC 0E 80 0D 03 02 00 00 00 00 65 [05:55:06]Write i2c OK [05:55:06]MH_I2C_Read... [05:55:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:55:06]Read from MH i2c: E2 [05:55:06]MH_I2C_Read... [05:55:06]Read from MH i2c: E2 0B 00 [05:55:06]MH_I2C_Read... [05:55:06]Read from MH i2c: E2 0B 00 DC 0E 00 D0 A0 0D 95 0C 19 C0 21 90 00 7E [05:55:06]RAPDU: D0 A0 0D 95 0C 19 C0 21 90 00 [05:55:06]wFMCommunicate OK [05:55:06]SAM_PROTO_SignData done [05:55:06]FM_MakeSignedData done [05:55:06]CreateOFDProtocolMessage [05:55:06]wFMCommunicate request_size=4 [05:55:06]MH_SAM_APDU [05:55:06]CAPDU: 80 11 00 00 [05:55:06]Write to MH i2c: E2 08 00 DD 0E 80 11 00 00 00 00 00 00 65 [05:55:06]Write i2c OK [05:55:06]MH_I2C_Read... [05:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:55:06]Read from MH i2c: E2 [05:55:06]MH_I2C_Read... [05:55:06]Read from MH i2c: E2 17 00 [05:55:06]MH_I2C_Read... [05:55:06]Read from MH i2c: E2 17 00 DD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BB [05:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [05:55:06]wFMCommunicate OK [05:55:06]CreateOFDProtocolMessage done [05:55:06]OFDSenderStorePacket 67001 [05:55:06]StoreOFDPacket docnum=67001 [05:55: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 72 46 07 01 98 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 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 08 00 00 00 F4 03 04 00 BC FC 42 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B9 05 01 00 35 04 06 00 72 3D CE 55 D0 F8 D0 A0 0D 95 0C 19 C0 21 [05:55:06]CheckFolder [05:55:06]dirname=/storage/ofd_packets [05:55:06]CheckFolder done [05:55:06]ProducePacketName [05:55:06]name=ofd_packets/00067001 [05:55:06]NVStorageSaveData ofd_packets/00067001 [05:55:06]File name is /storage/ofd_packets/00067001 [05:55:06]Write 301 bytes [05:55:06]NVStorageSaveData done [05:55:06]OFDSenderStorePacket done [05:55:06]KKMCreateOFDPacket done [05:55:06]NVStorageSaveData kkm_last_timestamp [05:55:06]File name is /storage/kkm_last_timestamp [05:55:06]Write 4 bytes [05:55:06]NVStorageSaveData done [05:55:06]ExternCall_PrintAddStr [05:55:06]wPrintStart [05:55:06]Write to MH i2c: 01 00 00 DE 0E EC [05:55:06]Write i2c OK [05:55:06]MH_I2C_Read... [05:55:06]Read from MH i2c: 01 [05:55:06]MH_I2C_Read... [05:55:06]Read from MH i2c: 01 07 00 [05:55:06]MH_I2C_Read... [05:55:06]Read from MH i2c: 01 07 00 DE 0E 00 00 00 00 00 FF 0F 01 [05:55:06]RasterBufferAndPrint [05:55:06]line Счет N : (1)506812 [05:55:06]line ИНН: 02508201610067 [05:55:06]line Контрольно-Кассовый Чек [05:55:06]line ПРОДАЖА [05:55:06]line ТРК (МРК, ГНК) : 33 [05:55:06]line Товар: 2710124130 [05:55:06]line Аи-92-К-5 [05:55:06]line 14.980 * 66.80 [05:55:06]line = 1000.66 [05:55:06]line НДС 12% НСП 1% [05:55:06]line > о реализуемом товаре [05:55:06]line ОКРУГЛЕНИЕ: -0.66 [05:55:06]line ИТОГО: 1000.00 [05:55:06]line Внесено: 1000.00 [05:55:06]line СДАЧА: 0.00 [05:55:06]line НСП 1% : 8.85 [05:55:06]line НДС 12% : 106.26 [05:55:06]line Наличными: 1000.00 [05:55:06]line Безнал.: 0.00 [05:55:06]line Место: АЗС № 91 "Партнер Нефть" [05:55:06]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [05:55:06]line СНО: Общий режим [05:55:06]line Чек 8 14.05.2024 05:55 [05:55:06]line Смена: 355 ФФД: 1.0 [05:55:06]line ЗНМ: 0300000119 [05:55:06]line РНМ: 0000000000091845 [05:55:06]line Версия ККМ: 001 [05:55:06]line ФМ: 0000000000871829 [05:55:06]line ФД: 67001 [05:55:06]line ФПД: 125609780302072 [05:55:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T055508&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67001&fm=125609780302072&tin=02508201610067®Number=0000000000091845&sum=100000 [05:55:07]OFD Sender: Processing packet 67001 [packets to send 35, broken 34] [05:55:07]ProducePacketName [05:55:07]name=ofd_packets/00067001 [05:55:07]OFD Sender: To server: pG, [05:55:07]CommunicateWithHost lk.salyk.kg:30040 [05:55:07]ConnectInit lk.salyk.kg [05:55:07]written 0, free lines is 4095 [05:55:07]Connected sock=10 [05:55: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 72 46 07 01 98 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 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 08 00 00 00 F4 03 04 00 BC FC 42 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B9 05 01 00 35 04 06 00 72 3D CE 55 D0 F8 D0 A0 0D 95 0C 19 C0 21 [05:55: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 66 E5 47 00 02 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 B9 05 01 00 F4 03 04 00 9C A4 42 66 B6 04 01 00 00 C6 7C 6D 64 8A 69 B4 F8 [05:55:07]CommunicateWithHost err = 0 [05:55:07]CheckOFDResponse [05:55:07]1017 (14) - 77093643461234 [05:55:07]1041 (16) - 0000000000871829 [05:55:07]1040 (4) - 67001 [05:55:07]1012 (4) - 13.05.2024 23:39 [05:55:07]1206 (1) - 0 [05:55:07]OFD Sender: Remove packet 67001 [05:55:07]ProducePacketName [05:55:07]name=ofd_packets/00067001 [05:55:07]NVStorageDeleteData [05:55:07]Write to MH i2c: 01 00 00 08 0F 17 [05:55:07]Write i2c OK [05:55:07]MH_I2C_Read... [05:55:07]Read from MH i2c: 01 [05:55:07]MH_I2C_Read... [05:55:07]Read from MH i2c: 01 07 00 [05:55:07]MH_I2C_Read... [05:55:07]Read from MH i2c: 01 07 00 08 0F 00 00 00 00 00 B9 0C E3 [05:55:07]RasterBufferAndPrint [05:55:07]line [05:55:07]line [05:55:07]line [05:55:07]line [05:55:07]line [05:55:07]written 0, free lines is 3263 [05:55:07]MH_Cut [05:55:07]Write to MH i2c: D1 01 00 0F 0F 01 F0 [05:55:07]Write i2c OK [05:55:07]MH_I2C_Read... [05:55:07]Read from MH i2c: D1 [05:55:07]MH_I2C_Read... [05:55:07]Read from MH i2c: D1 01 00 [05:55:07]MH_I2C_Read... [05:55:07]Read from MH i2c: D1 01 00 0F 0F 00 EF [05:55:07]Write to MH i2c: 01 00 00 10 0F 1F [05:55:07]Write i2c OK [05:55:07]MH_I2C_Read... [05:55:07]OFD Sender: No OFD packet to send [05:55:08]*** Cut start [05:55:08]*** Purtial cut [05:55:08]*** CUTSNS_PIN = 0 [05:55:08]*** Stage 1: CUTSNS_PIN = 1 [05:55:10]Read from MH i2c: 01 [05:55:10]MH_I2C_Read... [05:55:10]*** Stop cut motor [05:55:10]*** Cut end [05:55:10]Read from MH i2c: 01 07 00 [05:55:10]MH_I2C_Read... [05:55:10]Read from MH i2c: 01 07 00 10 0F 00 00 00 00 00 FF 0F 34 [05:55:10]process_action close_receipt done [05:55:10]requested_data is exist [05:55:10]produce_requested_data [05:55:10]requested_item fm.sn is exist - process it [05:55:10]wFMCommunicate request_size=4 [05:55:10]MH_SAM_APDU [05:55:10]CAPDU: 80 11 00 00 [05:55:10]Write to MH i2c: E2 08 00 11 0F 80 11 00 00 00 00 00 00 9A [05:55:10]Write i2c OK [05:55:10]MH_I2C_Read... [05:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:55:10]Read from MH i2c: E2 [05:55:10]MH_I2C_Read... [05:55:10]Read from MH i2c: E2 17 00 [05:55:10]MH_I2C_Read... [05:55:10]Read from MH i2c: E2 17 00 11 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F0 [05: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 [05:55:10]wFMCommunicate OK [05:55:10]requested_item fd.num is exist - process it [05:55:10]SAM_PROTO_GetFieldsCounters [05:55:10]wFMCommunicate request_size=4 [05:55:10]MH_SAM_APDU [05:55:10]CAPDU: 80 13 00 00 [05:55:10]Write to MH i2c: E2 08 00 12 0F 80 13 00 00 00 00 00 00 9D [05:55:10]Write i2c OK [05:55:10]MH_I2C_Read... [05:55:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:55:10]Read from MH i2c: E2 [05:55:10]MH_I2C_Read... [05:55:10]Read from MH i2c: E2 62 00 [05:55:10]MH_I2C_Read... [05:55:10]Read from MH i2c: E2 62 00 12 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 B9 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [05: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 B9 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:55:10]wFMCommunicate OK [05:55:10]SAM_PROTO_GetFieldsCounters done [05:55:10]requested_item shift.num is exist - process it [05:55:10]requested_item shift.opened is exist - process it [05:55:10]req_shift_opened [05:55:10]FM_GetShiftState [05:55:10]SAM_PROTO_GetShiftState [05:55:10]wFMCommunicate request_size=4 [05:55:10]MH_SAM_APDU [05:55:10]CAPDU: 80 13 01 00 [05:55:10]Write to MH i2c: E2 08 00 13 0F 80 13 01 00 00 00 00 00 9F [05:55:10]Write i2c OK [05:55:10]MH_I2C_Read... [05:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:55:10]Read from MH i2c: E2 [05:55:10]MH_I2C_Read... [05:55:10]Read from MH i2c: E2 0E 00 [05:55:10]MH_I2C_Read... [05:55:10]Read from MH i2c: E2 0E 00 13 0F 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 67 [05:55:10]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [05:55:10]wFMCommunicate OK [05:55:10]SAM_PROTO_GetShiftState done [05:55:10]FM_GetShiftState done [05:55:10]req_shift_opened done [05:55:10]requested_item shift.open_date is exist - process it [05:55:10]req_shift_open_date [05:55:10]req_shift_open_date done [05:55:10]produce_requested_data done [05:55:10]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67001,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [05:55:10]process_action_free close_receipt [05:55:10]json_value_free [05:55:10]json_value_free done [05:55:10]process_json_proto returns [05:55:10]Send response to host [05:55:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67001,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [05:55:10]free response buf [05:55:10]execute_script done [05:55:10]execute_script returns [05:55:10]free content buf [05:55:10]Sock 8.Close socket [05:55:10]Sock 8.Thread stoped [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:03:59]accept exits with 9 [06:03:59]New connection [06:03:59]New thread 3066617188 created [06:03:59]Thread 3066760548 joined [06:03:59]Waiting for new connection... [06:03:59] Sock 9.Parse request [06:03:59]Sock 9.Check first char [06:03:59]Sock 9.First char is OK [06:03:59]request: POST /json_proto HTTP/1.0 [06:03:59]Method: POST [06:03:59]URL: /json_proto [06:03:59]Method is POST - this is cgi request [06:03:59]url: /json_proto [06:03:59]query_string will be loaded in cgi processing [06:03:59]execute_cgi json_proto POST (null) [06:03:59]execute_cgi path=json_proto method=POST [06:03:59]POST find Content-Length [06:03:59]Host: 172.17.41.195:8080 [06:03:59]Content-Length: 1179 [06:03:59]Content-Type: application/json [06:03:59] [06:03:59]POST finish read [06:03:59]Found Content-Length = 1179 [06:03:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506813\u000A14.05.2024 05:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:59]execute_script... [06:03:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506813\u000A14.05.2024 05:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:59]POST & json_proto [06:03:59]process_json_proto [06:03:59]json parsed OK: [06:03:59]protocol is kg_v1.0 [06:03:59]action value=print_text [06:03:59]process_action print_text [06:03:59]cmd_print_text [06:03:59]ExternCall_PrintAddStr [06:03:59]wPrintStart [06:03:59]Write to MH i2c: 01 00 00 14 0F 23 [06:03:59]Write i2c OK [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: 01 [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: 01 07 00 [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: 01 07 00 14 0F 00 00 00 00 00 FF 0F 38 [06:03:59]RasterBufferAndPrint [06:03:59]line *****ТОВАРНЫЙ ЧЕК***** [06:03:59]line АЗС-91 [06:03:59]line Партнер нефть [06:03:59]line 02508201610067 [06:03:59]line Кассир : Адишов И. [06:03:59]line Счет N : (1)506813 [06:03:59]line 14.05.2024 05:46 [06:03:59]line ПРОДАЖА [06:03:59]line ТРК (МРК, ГНК): 31 [06:03:59]line Вид ГСМ : 2710194210 [06:03:59]line ДТ-К-5 [06:03:59]line 13.390 x 74.70 [06:03:59]line ИТОГ: 1000.23 [06:03:59]line Тип оплаты: Талоны: Топливная Карта [06:03:59]line 02750 [06:03:59]line ______________________ [06:03:59]line (подпись) [06:03:59]written 0, free lines is 4095 [06:03:59]Write to MH i2c: 01 00 00 28 0F 37 [06:03:59]Write i2c OK [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: 01 [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: 01 07 00 [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: 01 07 00 28 0F 00 00 00 00 00 0D 0E 59 [06:03:59]RasterBufferAndPrint [06:03:59]line [06:03:59]line [06:03:59]line [06:03:59]line [06:03:59]line [06:03:59]written 0, free lines is 3598 [06:03:59]MH_Cut [06:03:59]Write to MH i2c: D1 01 00 2F 0F 01 10 [06:03:59]Write i2c OK [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: D1 [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: D1 01 00 [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: D1 01 00 2F 0F 00 0F [06:03:59]Write to MH i2c: 01 00 00 30 0F 3F [06:03:59]Write i2c OK [06:03:59]MH_I2C_Read... [06:04:00]*** Cut start [06:04:00]*** Purtial cut [06:04:00]*** Stage 1: CUTSNS_PIN = 1 [06:04:00]Read from MH i2c: 01 [06:04:00]MH_I2C_Read... [06:04:00]*** Stop cut motor [06:04:00]*** Cut end [06:04:00]Read from MH i2c: 01 07 00 [06:04:00]MH_I2C_Read... [06:04:00]Read from MH i2c: 01 07 00 30 0F 00 00 00 00 00 FF 0F 54 [06:04:00]process_action print_text done [06:04:00]requested_data is exist [06:04:00]produce_requested_data [06:04:00]requested_item fm.sn is exist - process it [06:04:00]wFMCommunicate request_size=4 [06:04:00]MH_SAM_APDU [06:04:00]CAPDU: 80 11 00 00 [06:04:00]Write to MH i2c: E2 08 00 31 0F 80 11 00 00 00 00 00 00 BA [06:04:00]Write i2c OK [06:04:00]MH_I2C_Read... [06:04:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:04:00]Read from MH i2c: E2 [06:04:00]MH_I2C_Read... [06:04:00]Read from MH i2c: E2 17 00 [06:04:00]MH_I2C_Read... [06:04:00]Read from MH i2c: E2 17 00 31 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 10 [06:04:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:04:00]wFMCommunicate OK [06:04:00]requested_item fd.num is exist - process it [06:04:00]SAM_PROTO_GetFieldsCounters [06:04:00]wFMCommunicate request_size=4 [06:04:00]MH_SAM_APDU [06:04:00]CAPDU: 80 13 00 00 [06:04:00]Write to MH i2c: E2 08 00 32 0F 80 13 00 00 00 00 00 00 BD [06:04:00]Write i2c OK [06:04:00]MH_I2C_Read... [06:04:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:04:01]Read from MH i2c: E2 [06:04:01]MH_I2C_Read... [06:04:01]Read from MH i2c: E2 62 00 [06:04:01]MH_I2C_Read... [06:04:01]Read from MH i2c: E2 62 00 32 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 B9 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [06: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 B9 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:04:01]wFMCommunicate OK [06:04:01]SAM_PROTO_GetFieldsCounters done [06:04:01]requested_item shift.num is exist - process it [06:04:01]requested_item shift.opened is exist - process it [06:04:01]req_shift_opened [06:04:01]FM_GetShiftState [06:04:01]SAM_PROTO_GetShiftState [06:04:01]wFMCommunicate request_size=4 [06:04:01]MH_SAM_APDU [06:04:01]CAPDU: 80 13 01 00 [06:04:01]Write to MH i2c: E2 08 00 33 0F 80 13 01 00 00 00 00 00 BF [06:04:01]Write i2c OK [06:04:01]MH_I2C_Read... [06:04:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:04:01]Read from MH i2c: E2 [06:04:01]MH_I2C_Read... [06:04:01]Read from MH i2c: E2 0E 00 [06:04:01]MH_I2C_Read... [06:04:01]Read from MH i2c: E2 0E 00 33 0F 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 87 [06:04:01]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [06:04:01]wFMCommunicate OK [06:04:01]SAM_PROTO_GetShiftState done [06:04:01]FM_GetShiftState done [06:04:01]req_shift_opened done [06:04:01]requested_item shift.open_date is exist - process it [06:04:01]req_shift_open_date [06:04:01]req_shift_open_date done [06:04:01]produce_requested_data done [06:04:01]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67001,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [06:04:01]process_action_free print_text [06:04:01]json_value_free [06:04:01]json_value_free done [06:04:01]process_json_proto returns [06:04:01]Send response to host [06:04:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67001,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [06:04:01]free response buf [06:04:01]execute_script done [06:04:01]execute_script returns [06:04:01]free content buf [06:04:01]Sock 9.Close socket [06:04:01]Sock 9.Thread stoped [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:08]accept exits with 8 [06:21:08]New connection [06:21:08]New thread 3066760548 created [06:21:08]Thread 3066617188 joined [06:21:08]Waiting for new connection... [06:21:08] Sock 8.Parse request [06:21:08]Sock 8.Check first char [06:21:08]Sock 8.First char is OK [06:21:08]request: POST /json_proto HTTP/1.0 [06:21:08]Method: POST [06:21:08]URL: /json_proto [06:21:08]Method is POST - this is cgi request [06:21:08]url: /json_proto [06:21:08]query_string will be loaded in cgi processing [06:21:08]execute_cgi json_proto POST (null) [06:21:08]execute_cgi path=json_proto method=POST [06:21:08]POST find Content-Length [06:21:08]Host: 172.17.41.195:8080 [06:21:08]Content-Length: 679 [06:21:08]Content-Type: application/json [06:21:08] [06:21:08]POST finish read [06:21:08]Found Content-Length = 679 [06:21:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:21:08]execute_script... [06:21:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:21:08]POST & json_proto [06:21:08]process_json_proto [06:21:08]json parsed OK: [06:21:08]protocol is kg_v1.0 [06:21:08]action value=close_receipt [06:21:08]process_action close_receipt [06:21:08]cmd_close_receipt [06:21:08]MH_GetDate [06:21:08]Write to MH i2c: F0 00 00 34 0F 32 [06:21:08]Write i2c OK [06:21:08]MH_I2C_Read... [06:21:08]Read from MH i2c: F0 [06:21:08]MH_I2C_Read... [06:21:08]Read from MH i2c: F0 09 00 [06:21:08]MH_I2C_Read... [06:21:08]Read from MH i2c: F0 09 00 34 0F 00 D7 02 43 66 FC 21 6F 64 AD [06:21:08]GetLastDocTimeStamp 1715666108 [06:21:08]current date 1715667671 [06:21:08]FM_GetShiftState [06:21:08]SAM_PROTO_GetShiftState [06:21:08]wFMCommunicate request_size=4 [06:21:08]MH_SAM_APDU [06:21:08]CAPDU: 80 13 01 00 [06:21:08]Write to MH i2c: E2 08 00 35 0F 80 13 01 00 00 00 00 00 C1 [06:21:08]Write i2c OK [06:21:08]MH_I2C_Read... [06:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:21:08]Read from MH i2c: E2 [06:21:08]MH_I2C_Read... [06:21:08]Read from MH i2c: E2 0E 00 [06:21:08]MH_I2C_Read... [06:21:08]Read from MH i2c: E2 0E 00 35 0F 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 89 [06:21:08]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [06:21:08]wFMCommunicate OK [06:21:08]SAM_PROTO_GetShiftState done [06:21:08]FM_GetShiftState done [06:21:08]opened in 1715646054 [06:21:08]opened+sec_in_day 1715732454 [06:21:08]quantity*price = 100023 [06:21:08]sum+1 = 100024 [06:21:08]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 СНО: Общий режим Чек 9 14.05.2024 06:21 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67002 ФПД: 125739425470627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T062111&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67002&fm=125739425470627&tin=02508201610067®Number=0000000000091845&sum=100000 [06:21:09]StoreToDocumentArchive [06:21:09]shift 355 fd 67002 [06:21:09]save to /storage/0355/doc_00067002 [06:21:09]save last doc name /storage/0355/doc_00067002 to /storage/kkm_last_doc_name [06:21:09]save OK [06:21:09]Clear old archive folders... [06:21:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:21:09]tlvbuf is 00381580 [06:21:09]SAM_PROTO_ClearQueue [06:21:09]wFMCommunicate request_size=4 [06:21:09]MH_SAM_APDU [06:21:09]CAPDU: 80 09 00 00 [06:21:09]Write to MH i2c: E2 08 00 42 0F 80 09 00 00 00 00 00 00 C3 [06:21:09]Write i2c OK [06:21:09]MH_I2C_Read... [06:21:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:21:09]Read from MH i2c: E2 [06:21:09]MH_I2C_Read... [06:21:09]Read from MH i2c: E2 03 00 [06:21:09]MH_I2C_Read... [06:21:09]Read from MH i2c: E2 03 00 42 0F 00 90 00 C5 [06:21:09]RAPDU: 90 00 [06:21:09]wFMCommunicate OK [06:21:09]SAM_PROTO_ClearQueue done [06:21:09]KKMCreateOFDPacket [06:21:09]OFDProtocolAddRootSTLVToBuf [06:21:09]FM_MakeSignedData [06:21:09]FM_MakeSignedData [06:21:09]SAM_PROTO_SignData [06:21:09]wFMCommunicate request_size=4 [06:21:09]MH_SAM_APDU [06:21:09]CAPDU: 80 0D 01 02 [06:21:09]Write to MH i2c: E2 08 00 43 0F 80 0D 01 02 00 00 00 00 CB [06:21:09]Write i2c OK [06:21:09]MH_I2C_Read... [06:21:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:21:09]Read from MH i2c: E2 [06:21:09]MH_I2C_Read... [06:21:09]Read from MH i2c: E2 03 00 [06:21:09]MH_I2C_Read... [06:21:09]Read from MH i2c: E2 03 00 43 0F 00 90 00 C6 [06:21:09]RAPDU: 90 00 [06:21:09]wFMCommunicate OK [06:21:09]wFMCommunicate request_size=255 [06:21:09]MH_SAM_APDU [06:21:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 09 00 00 00 F4 03 04 00 D7 02 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BA 05 01 00 35 04 06 00 72 5B FD CA [06:21:09]Write to MH i2c: E2 02 01 44 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 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 09 00 00 00 F4 03 04 00 D7 02 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BA 05 01 00 35 04 06 00 72 5B FD CA 00 00 E8 [06:21:09]Write i2c OK [06:21:09]MH_I2C_Read... [06:21:09]OFD Sender: No OFD packet to send [06:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:21:09]Read from MH i2c: E2 [06:21:09]MH_I2C_Read... [06:21:09]Read from MH i2c: E2 03 00 [06:21:09]MH_I2C_Read... [06:21:09]Read from MH i2c: E2 03 00 44 0F 00 90 00 C7 [06:21:09]RAPDU: 90 00 [06:21:09]wFMCommunicate OK [06:21:09]wFMCommunicate request_size=7 [06:21:09]MH_SAM_APDU [06:21:09]CAPDU: 80 0D 02 02 02 18 A3 [06:21:09]Write to MH i2c: E2 0A 00 45 0F 80 0D 02 02 02 00 18 A3 00 00 8D [06:21:09]Write i2c OK [06:21:09]MH_I2C_Read... [06:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:21:09]Read from MH i2c: E2 [06:21:09]MH_I2C_Read... [06:21:09]Read from MH i2c: E2 03 00 [06:21:09]MH_I2C_Read... [06:21:09]Read from MH i2c: E2 03 00 45 0F 00 90 00 C8 [06:21:09]RAPDU: 90 00 [06:21:09]wFMCommunicate OK [06:21:09]wFMCommunicate request_size=4 [06:21:09]MH_SAM_APDU [06:21:09]CAPDU: 80 0D 03 02 [06:21:09]Write to MH i2c: E2 08 00 46 0F 80 0D 03 02 00 00 00 00 D0 [06:21:09]Write i2c OK [06:21:09]MH_I2C_Read... [06:21:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:21:09]Read from MH i2c: E2 [06:21:09]MH_I2C_Read... [06:21:09]Read from MH i2c: E2 0B 00 [06:21:09]MH_I2C_Read... [06:21:09]Read from MH i2c: E2 0B 00 46 0F 00 BD AE CE 7D 93 F9 41 9F 90 00 F3 [06:21:09]RAPDU: BD AE CE 7D 93 F9 41 9F 90 00 [06:21:09]wFMCommunicate OK [06:21:09]SAM_PROTO_SignData done [06:21:09]FM_MakeSignedData done [06:21:09]CreateOFDProtocolMessage [06:21:09]wFMCommunicate request_size=4 [06:21:09]MH_SAM_APDU [06:21:09]CAPDU: 80 11 00 00 [06:21:09]Write to MH i2c: E2 08 00 47 0F 80 11 00 00 00 00 00 00 D0 [06:21:09]Write i2c OK [06:21:09]MH_I2C_Read... [06:21:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:21:09]Read from MH i2c: E2 [06:21:09]MH_I2C_Read... [06:21:09]Read from MH i2c: E2 17 00 [06:21:09]MH_I2C_Read... [06:21:09]Read from MH i2c: E2 17 00 47 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 26 [06: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 [06:21:09]wFMCommunicate OK [06:21:09]CreateOFDProtocolMessage done [06:21:09]OFDSenderStorePacket 67002 [06:21:09]StoreOFDPacket docnum=67002 [06: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 0C 01 00 00 A7 47 04 01 C3 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 D7 02 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BA 05 01 00 35 04 06 00 72 5B FD CA 18 A3 BD AE CE 7D 93 F9 41 9F [06:21:09]CheckFolder [06:21:09]dirname=/storage/ofd_packets [06:21:09]CheckFolder done [06:21:09]ProducePacketName [06:21:09]name=ofd_packets/00067002 [06:21:09]NVStorageSaveData ofd_packets/00067002 [06:21:09]File name is /storage/ofd_packets/00067002 [06:21:09]Write 298 bytes [06:21:09]NVStorageSaveData done [06:21:09]OFDSenderStorePacket done [06:21:09]KKMCreateOFDPacket done [06:21:09]NVStorageSaveData kkm_last_timestamp [06:21:09]File name is /storage/kkm_last_timestamp [06:21:09]Write 4 bytes [06:21:09]NVStorageSaveData done [06:21:09]ExternCall_PrintAddStr [06:21:09]wPrintStart [06:21:09]Write to MH i2c: 01 00 00 48 0F 57 [06:21:09]Write i2c OK [06:21:09]MH_I2C_Read... [06:21:09]Read from MH i2c: 01 [06:21:09]MH_I2C_Read... [06:21:09]Read from MH i2c: 01 07 00 [06:21:09]MH_I2C_Read... [06:21:09]Read from MH i2c: 01 07 00 48 0F 00 00 00 00 00 FF 0F 6C [06:21:09]RasterBufferAndPrint [06:21:09]line Счет N : (1)506814 [06:21:09]line ИНН: 02508201610067 [06:21:09]line Контрольно-Кассовый Чек [06:21:09]line ПРОДАЖА [06:21:09]line ТРК (МРК, ГНК) : 31 [06:21:09]line Товар: 2710194210 [06:21:09]line ДТ-К-5 [06:21:09]line 13.390 * 74.70 [06:21:09]line = 1000.23 [06:21:09]line НДС 12% НСП 1% [06:21:09]line > о реализуемом товаре [06:21:09]line ОКРУГЛЕНИЕ: -0.23 [06:21:09]line ИТОГО: 1000.00 [06:21:09]line Внесено: 1000.00 [06:21:09]line СДАЧА: 0.00 [06:21:09]line НСП 1% : 8.85 [06:21:09]line НДС 12% : 106.22 [06:21:09]line Наличными: 1000.00 [06:21:09]line Безнал.: 0.00 [06:21:09]line Место: АЗС № 91 "Партнер Нефть" [06:21:09]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [06:21:09]line СНО: Общий режим [06:21:09]line Чек 9 14.05.2024 06:21 [06:21:09]line Смена: 355 ФФД: 1.0 [06:21:09]line ЗНМ: 0300000119 [06:21:09]line РНМ: 0000000000091845 [06:21:09]line Версия ККМ: 001 [06:21:09]line ФМ: 0000000000871829 [06:21:09]line ФД: 67002 [06:21:09]line ФПД: 125739425470627 [06:21:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T062111&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67002&fm=125739425470627&tin=02508201610067®Number=0000000000091845&sum=100000 [06:21:10]OFD Sender: Processing packet 67002 [packets to send 35, broken 34] [06:21:10]ProducePacketName [06:21:10]name=ofd_packets/00067002 [06:21:10]OFD Sender: To server: pG, [06:21:10]CommunicateWithHost lk.salyk.kg:30040 [06:21:10]ConnectInit lk.salyk.kg [06:21:10]written 0, free lines is 4095 [06:21:10]Write to MH i2c: 01 00 00 72 0F 81 [06:21:10]Write i2c OK [06:21:10]MH_I2C_Read... [06:21:10]Read from MH i2c: 01 [06:21:10]MH_I2C_Read... [06:21:10]Read from MH i2c: 01 07 00 [06:21:10]MH_I2C_Read... [06:21:10]Read from MH i2c: 01 07 00 72 0F 00 00 00 00 00 B7 0C 4B [06:21:10]RasterBufferAndPrint [06:21:10]line [06:21:10]line [06:21:10]line [06:21:10]line [06:21:10]line [06:21:10]written 0, free lines is 3262 [06:21:10]MH_Cut [06:21:10]Write to MH i2c: D1 01 00 79 0F 01 5A [06:21:10]Write i2c OK [06:21:10]MH_I2C_Read... [06:21:10]Read from MH i2c: D1 [06:21:10]MH_I2C_Read... [06:21:10]Read from MH i2c: D1 01 00 [06:21:10]MH_I2C_Read... [06:21:10]Read from MH i2c: D1 01 00 79 0F 00 59 [06:21:10]Write to MH i2c: 01 00 00 7A 0F 89 [06:21:10]Write i2c OK [06:21:10]MH_I2C_Read... [06:21:11]*** Cut start [06:21:11]*** Purtial cut [06:21:11]*** CUTSNS_PIN = 0 [06:21:11]*** Stage 1: CUTSNS_PIN = 1 [06:21:13]Read from MH i2c: 01 [06:21:13]MH_I2C_Read... [06:21:13]*** Stop cut motor [06:21:13]*** Cut end [06:21:13]Read from MH i2c: 01 07 00 [06:21:13]MH_I2C_Read... [06:21:13]Read from MH i2c: 01 07 00 7A 0F 00 00 00 00 00 FF 0F 9E [06:21:13]process_action close_receipt done [06:21:13]requested_data is exist [06:21:13]produce_requested_data [06:21:13]requested_item fm.sn is exist - process it [06:21:13]wFMCommunicate request_size=4 [06:21:13]MH_SAM_APDU [06:21:13]CAPDU: 80 11 00 00 [06:21:13]Write to MH i2c: E2 08 00 7B 0F 80 11 00 00 00 00 00 00 04 [06:21:13]Write i2c OK [06:21:13]MH_I2C_Read... [06:21:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:21:13]Read from MH i2c: E2 [06:21:13]MH_I2C_Read... [06:21:13]Read from MH i2c: E2 17 00 [06:21:13]MH_I2C_Read... [06:21:13]Read from MH i2c: E2 17 00 7B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5A [06:21:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:21:13]wFMCommunicate OK [06:21:13]requested_item fd.num is exist - process it [06:21:13]SAM_PROTO_GetFieldsCounters [06:21:13]wFMCommunicate request_size=4 [06:21:13]MH_SAM_APDU [06:21:13]CAPDU: 80 13 00 00 [06:21:13]Write to MH i2c: E2 08 00 7C 0F 80 13 00 00 00 00 00 00 07 [06:21:13]Write i2c OK [06:21:13]MH_I2C_Read... [06:21:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:21:13]Read from MH i2c: E2 [06:21:13]MH_I2C_Read... [06:21:13]Read from MH i2c: E2 62 00 [06:21:13]MH_I2C_Read... [06:21:13]Read from MH i2c: E2 62 00 7C 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 BA 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [06: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 BA 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:21:13]wFMCommunicate OK [06:21:13]SAM_PROTO_GetFieldsCounters done [06:21:13]requested_item shift.num is exist - process it [06:21:13]requested_item shift.opened is exist - process it [06:21:13]req_shift_opened [06:21:13]FM_GetShiftState [06:21:13]SAM_PROTO_GetShiftState [06:21:13]wFMCommunicate request_size=4 [06:21:13]MH_SAM_APDU [06:21:13]CAPDU: 80 13 01 00 [06:21:13]Write to MH i2c: E2 08 00 7D 0F 80 13 01 00 00 00 00 00 09 [06:21:13]Write i2c OK [06:21:13]MH_I2C_Read... [06:21:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:21:13]Read from MH i2c: E2 [06:21:13]MH_I2C_Read... [06:21:13]Read from MH i2c: E2 0E 00 [06:21:13]MH_I2C_Read... [06:21:13]Read from MH i2c: E2 0E 00 7D 0F 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D1 [06:21:13]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [06:21:13]wFMCommunicate OK [06:21:13]SAM_PROTO_GetShiftState done [06:21:13]FM_GetShiftState done [06:21:13]req_shift_opened done [06:21:13]requested_item shift.open_date is exist - process it [06:21:13]req_shift_open_date [06:21:13]req_shift_open_date done [06:21:13]produce_requested_data done [06:21:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67002,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [06:21:13]process_action_free close_receipt [06:21:13]json_value_free [06:21:13]json_value_free done [06:21:13]process_json_proto returns [06:21:13]Send response to host [06:21:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67002,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [06:21:13]free response buf [06:21:13]execute_script done [06:21:13]execute_script returns [06:21:13]free content buf [06:21:13]Sock 8.Close socket [06:21:13]Sock 8.Thread stoped [06:21:15]ConnectInit Can't take IP for lk.salyk.kg [06:21:15]CommunicateWithHost connect error [06:21:15]CommunicateWithHost err = -1 [06:21:15]OFD Sender: Server communicate error [06:21:20]OFD Sender: Processing packet 67002 [packets to send 35, broken 34] [06:21:20]ProducePacketName [06:21:20]name=ofd_packets/00067002 [06:21:20]OFD Sender: To server: pG, [06:21:20]CommunicateWithHost lk.salyk.kg:30040 [06:21:20]ConnectInit lk.salyk.kg [06:21:25]ConnectInit Can't take IP for lk.salyk.kg [06:21:25]CommunicateWithHost connect error [06:21:25]CommunicateWithHost err = -1 [06:21:25]OFD Sender: Server communicate error [06:21:30]OFD Sender: Processing packet 67002 [packets to send 35, broken 34] [06:21:30]ProducePacketName [06:21:30]name=ofd_packets/00067002 [06:21:30]OFD Sender: To server: pG, [06:21:30]CommunicateWithHost lk.salyk.kg:30040 [06:21:30]ConnectInit lk.salyk.kg [06:21:35]ConnectInit Can't take IP for lk.salyk.kg [06:21:35]CommunicateWithHost connect error [06:21:35]CommunicateWithHost err = -1 [06:21:35]OFD Sender: Server communicate error [06:21:40]OFD Sender: Processing packet 67002 [packets to send 35, broken 34] [06:21:40]ProducePacketName [06:21:40]name=ofd_packets/00067002 [06:21:40]OFD Sender: To server: pG, [06:21:40]CommunicateWithHost lk.salyk.kg:30040 [06:21:40]ConnectInit lk.salyk.kg [06:21:45]ConnectInit Can't take IP for lk.salyk.kg [06:21:45]CommunicateWithHost connect error [06:21:45]CommunicateWithHost err = -1 [06:21:45]OFD Sender: Server communicate error [06:21:50]OFD Sender: Processing packet 67002 [packets to send 35, broken 34] [06:21:50]ProducePacketName [06:21:50]name=ofd_packets/00067002 [06:21:50]OFD Sender: To server: pG, [06:21:50]CommunicateWithHost lk.salyk.kg:30040 [06:21:50]ConnectInit lk.salyk.kg [06:21:55]ConnectInit Can't take IP for lk.salyk.kg [06:21:55]CommunicateWithHost connect error [06:21:55]CommunicateWithHost err = -1 [06:21:55]OFD Sender: Server communicate error [06:22:00]OFD Sender: Processing packet 67002 [packets to send 35, broken 34] [06:22:00]ProducePacketName [06:22:00]name=ofd_packets/00067002 [06:22:00]OFD Sender: To server: pG, [06:22:00]CommunicateWithHost lk.salyk.kg:30040 [06:22:00]ConnectInit lk.salyk.kg [06:22:05]ConnectInit Can't take IP for lk.salyk.kg [06:22:05]CommunicateWithHost connect error [06:22:05]CommunicateWithHost err = -1 [06:22:05]OFD Sender: Server communicate error [06:22:10]OFD Sender: Processing packet 67002 [packets to send 35, broken 34] [06:22:10]ProducePacketName [06:22:10]name=ofd_packets/00067002 [06:22:10]OFD Sender: To server: pG, [06:22:10]CommunicateWithHost lk.salyk.kg:30040 [06:22:10]ConnectInit lk.salyk.kg [06:22:15]ConnectInit Can't take IP for lk.salyk.kg [06:22:15]CommunicateWithHost connect error [06:22:15]CommunicateWithHost err = -1 [06:22:15]OFD Sender: Server communicate error [06:22:20]OFD Sender: Processing packet 67002 [packets to send 35, broken 34] [06:22:20]ProducePacketName [06:22:20]name=ofd_packets/00067002 [06:22:20]OFD Sender: To server: pG, [06:22:20]CommunicateWithHost lk.salyk.kg:30040 [06:22:20]ConnectInit lk.salyk.kg [06:22:25]ConnectInit Can't take IP for lk.salyk.kg [06:22:25]CommunicateWithHost connect error [06:22:25]CommunicateWithHost err = -1 [06:22:25]OFD Sender: Server communicate error [06:22:30]OFD Sender: Processing packet 67002 [packets to send 35, broken 34] [06:22:30]ProducePacketName [06:22:30]name=ofd_packets/00067002 [06:22:30]OFD Sender: To server: pG, [06:22:30]CommunicateWithHost lk.salyk.kg:30040 [06:22:30]ConnectInit lk.salyk.kg [06:22:35]ConnectInit Can't take IP for lk.salyk.kg [06:22:35]CommunicateWithHost connect error [06:22:35]CommunicateWithHost err = -1 [06:22:35]OFD Sender: Server communicate error [06:22:40]OFD Sender: Processing packet 67002 [packets to send 35, broken 34] [06:22:40]ProducePacketName [06:22:40]name=ofd_packets/00067002 [06:22:40]OFD Sender: To server: pG, [06:22:40]CommunicateWithHost lk.salyk.kg:30040 [06:22:40]ConnectInit lk.salyk.kg [06:22:45]ConnectInit Can't take IP for lk.salyk.kg [06:22:45]CommunicateWithHost connect error [06:22:45]CommunicateWithHost err = -1 [06:22:45]OFD Sender: Server communicate error [06:22:50]OFD Sender: Processing packet 67002 [packets to send 35, broken 34] [06:22:50]ProducePacketName [06:22:50]name=ofd_packets/00067002 [06:22:50]OFD Sender: To server: pG, [06:22:50]CommunicateWithHost lk.salyk.kg:30040 [06:22:50]ConnectInit lk.salyk.kg [06:22:55]ConnectInit Can't take IP for lk.salyk.kg [06:22:55]CommunicateWithHost connect error [06:22:55]CommunicateWithHost err = -1 [06:22:55]OFD Sender: Server communicate error [06:23:00]OFD Sender: Processing packet 67002 [packets to send 35, broken 34] [06:23:00]ProducePacketName [06:23:00]name=ofd_packets/00067002 [06:23:00]OFD Sender: To server: pG, [06:23:00]CommunicateWithHost lk.salyk.kg:30040 [06:23:00]ConnectInit lk.salyk.kg [06:23:05]ConnectInit Can't take IP for lk.salyk.kg [06:23:05]CommunicateWithHost connect error [06:23:05]CommunicateWithHost err = -1 [06:23:05]OFD Sender: Server communicate error [06:23:10]OFD Sender: Processing packet 67002 [packets to send 35, broken 34] [06:23:10]ProducePacketName [06:23:10]name=ofd_packets/00067002 [06:23:10]OFD Sender: To server: pG, [06:23:10]CommunicateWithHost lk.salyk.kg:30040 [06:23:10]ConnectInit lk.salyk.kg [06:23:15]ConnectInit Can't take IP for lk.salyk.kg [06:23:15]CommunicateWithHost connect error [06:23:15]CommunicateWithHost err = -1 [06:23:15]OFD Sender: Server communicate error [06:23:20]OFD Sender: Processing packet 67002 [packets to send 35, broken 34] [06:23:20]ProducePacketName [06:23:20]name=ofd_packets/00067002 [06:23:20]OFD Sender: To server: pG, [06:23:20]CommunicateWithHost lk.salyk.kg:30040 [06:23:20]ConnectInit lk.salyk.kg [06:23:25]ConnectInit Can't take IP for lk.salyk.kg [06:23:25]CommunicateWithHost connect error [06:23:25]CommunicateWithHost err = -1 [06:23:25]OFD Sender: Server communicate error [06:23:30]OFD Sender: Processing packet 67002 [packets to send 35, broken 34] [06:23:30]ProducePacketName [06:23:30]name=ofd_packets/00067002 [06:23:30]OFD Sender: To server: pG, [06:23:30]CommunicateWithHost lk.salyk.kg:30040 [06:23:30]ConnectInit lk.salyk.kg [06:23:35]ConnectInit Can't take IP for lk.salyk.kg [06:23:35]CommunicateWithHost connect error [06:23:35]CommunicateWithHost err = -1 [06:23:35]OFD Sender: Server communicate error [06:23:40]OFD Sender: Processing packet 67002 [packets to send 35, broken 34] [06:23:40]ProducePacketName [06:23:40]name=ofd_packets/00067002 [06:23:40]OFD Sender: To server: pG, [06:23:40]CommunicateWithHost lk.salyk.kg:30040 [06:23:40]ConnectInit lk.salyk.kg [06:23:42]accept exits with 9 [06:23:42]New connection [06:23:42]New thread 3066617188 created [06:23:42]Thread 3066760548 joined [06:23:42]Waiting for new connection... [06:23:42] Sock 9.Parse request [06:23:42]Sock 9.Check first char [06:23:42]Sock 9.First char is OK [06:23:42]request: POST /json_proto HTTP/1.0 [06:23:42]Method: POST [06:23:42]URL: /json_proto [06:23:42]Method is POST - this is cgi request [06:23:42]url: /json_proto [06:23:42]query_string will be loaded in cgi processing [06:23:42]execute_cgi json_proto POST (null) [06:23:42]execute_cgi path=json_proto method=POST [06:23:42]POST find Content-Length [06:23:42]Host: 172.17.41.195:8080 [06:23:42]Content-Length: 819 [06:23:42]Content-Type: application/json [06:23:42] [06:23:42]POST finish read [06:23:42]Found Content-Length = 819 [06:23:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506815", "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" : 29.950, "sum" : 2000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:23:42]execute_script... [06:23: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)506815", "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" : 29.950, "sum" : 2000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:23:42]POST & json_proto [06:23:42]process_json_proto [06:23:42]json parsed OK: [06:23:42]protocol is kg_v1.0 [06:23:42]action value=close_receipt [06:23:42]process_action close_receipt [06:23:42]cmd_close_receipt [06:23:42]MH_GetDate [06:23:42]Write to MH i2c: F0 00 00 7E 0F 7C [06:23:42]Write i2c OK [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: F0 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: F0 09 00 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: F0 09 00 7E 0F 00 71 03 43 66 FC 21 6F 64 92 [06:23:42]GetLastDocTimeStamp 1715667671 [06:23:42]current date 1715667825 [06:23:42]FM_GetShiftState [06:23:42]SAM_PROTO_GetShiftState [06:23:42]wFMCommunicate request_size=4 [06:23:42]MH_SAM_APDU [06:23:42]CAPDU: 80 13 01 00 [06:23:42]Write to MH i2c: E2 08 00 7F 0F 80 13 01 00 00 00 00 00 0B [06:23:42]Write i2c OK [06:23:42]MH_I2C_Read... [06:23:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:42]Read from MH i2c: E2 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: E2 0E 00 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: E2 0E 00 7F 0F 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D3 [06:23:42]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [06:23:42]wFMCommunicate OK [06:23:42]SAM_PROTO_GetShiftState done [06:23:42]FM_GetShiftState done [06:23:42]opened in 1715646054 [06:23:42]opened+sec_in_day 1715732454 [06:23:42]quantity*price = 200066 [06:23:42]sum+1 = 200067 [06:23:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.66 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 0.00 Безнал.: 2000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 10 14.05.2024 06:23 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67003 ФПД: 17283040041045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T062345&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67003&fm=17283040041045&tin=02508201610067®Number=0000000000091845&sum=200066 [06:23:43]StoreToDocumentArchive [06:23:43]shift 355 fd 67003 [06:23:43]save to /storage/0355/doc_00067003 [06:23:43]save last doc name /storage/0355/doc_00067003 to /storage/kkm_last_doc_name [06:23:43]save OK [06:23:43]Clear old archive folders... [06:23:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:23:43]tlvbuf is 003922E0 [06:23:43]SAM_PROTO_ClearQueue [06:23:43]wFMCommunicate request_size=4 [06:23:43]MH_SAM_APDU [06:23:43]CAPDU: 80 09 00 00 [06:23:43]Write to MH i2c: E2 08 00 8C 0F 80 09 00 00 00 00 00 00 0D [06:23:43]Write i2c OK [06:23:43]MH_I2C_Read... [06:23:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:23:43]Read from MH i2c: E2 [06:23:43]MH_I2C_Read... [06:23:43]Read from MH i2c: E2 03 00 [06:23:43]MH_I2C_Read... [06:23:43]Read from MH i2c: E2 03 00 8C 0F 00 90 00 0F [06:23:43]RAPDU: 90 00 [06:23:43]wFMCommunicate OK [06:23:43]SAM_PROTO_ClearQueue done [06:23:43]KKMCreateOFDPacket [06:23:43]OFDProtocolAddRootSTLVToBuf [06:23:43]FM_MakeSignedData [06:23:43]FM_MakeSignedData [06:23:43]SAM_PROTO_SignData [06:23:43]wFMCommunicate request_size=4 [06:23:43]MH_SAM_APDU [06:23:43]CAPDU: 80 0D 01 02 [06:23:43]Write to MH i2c: E2 08 00 8D 0F 80 0D 01 02 00 00 00 00 15 [06:23:43]Write i2c OK [06:23:43]MH_I2C_Read... [06:23:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:23:43]Read from MH i2c: E2 [06:23:43]MH_I2C_Read... [06:23:43]Read from MH i2c: E2 03 00 [06:23:43]MH_I2C_Read... [06:23:43]Read from MH i2c: E2 03 00 8D 0F 00 90 00 10 [06:23:43]RAPDU: 90 00 [06:23:43]wFMCommunicate OK [06:23:43]wFMCommunicate request_size=255 [06:23:43]MH_SAM_APDU [06:23: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 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 0A 00 00 00 F4 03 04 00 71 03 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BB 05 01 00 35 04 06 00 0F [06:23:43]Write to MH i2c: E2 02 01 8E 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 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 0A 00 00 00 F4 03 04 00 71 03 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BB 05 01 00 35 04 06 00 0F 00 00 19 [06:23:43]Write i2c OK [06:23:43]MH_I2C_Read... [06:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:44]Read from MH i2c: E2 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 03 00 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 03 00 8E 0F 00 90 00 11 [06:23:44]RAPDU: 90 00 [06:23:44]wFMCommunicate OK [06:23:44]wFMCommunicate request_size=10 [06:23:44]MH_SAM_APDU [06:23:44]CAPDU: 80 0D 02 02 05 B8 05 76 58 55 [06:23:44]Write to MH i2c: E2 0D 00 8F 0F 80 0D 02 02 05 00 B8 05 76 58 55 00 00 02 [06:23:44]Write i2c OK [06:23:44]MH_I2C_Read... [06:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:44]Read from MH i2c: E2 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 03 00 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 03 00 8F 0F 00 90 00 12 [06:23:44]RAPDU: 90 00 [06:23:44]wFMCommunicate OK [06:23:44]wFMCommunicate request_size=4 [06:23:44]MH_SAM_APDU [06:23:44]CAPDU: 80 0D 03 02 [06:23:44]Write to MH i2c: E2 08 00 90 0F 80 0D 03 02 00 00 00 00 1A [06:23:44]Write i2c OK [06:23:44]MH_I2C_Read... [06:23:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:23:44]Read from MH i2c: E2 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 0B 00 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 0B 00 90 0F 00 29 C0 A3 27 0A BB EA 43 90 00 C0 [06:23:44]RAPDU: 29 C0 A3 27 0A BB EA 43 90 00 [06:23:44]wFMCommunicate OK [06:23:44]SAM_PROTO_SignData done [06:23:44]FM_MakeSignedData done [06:23:44]CreateOFDProtocolMessage [06:23:44]wFMCommunicate request_size=4 [06:23:44]MH_SAM_APDU [06:23:44]CAPDU: 80 11 00 00 [06:23:44]Write to MH i2c: E2 08 00 91 0F 80 11 00 00 00 00 00 00 1A [06:23:44]Write i2c OK [06:23:44]MH_I2C_Read... [06:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:44]Read from MH i2c: E2 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 17 00 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: E2 17 00 91 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 70 [06:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:23:44]wFMCommunicate OK [06:23:44]CreateOFDProtocolMessage done [06:23:44]OFDSenderStorePacket 67003 [06:23:44]StoreOFDPacket docnum=67003 [06:23: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 37 96 07 01 AA B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0A 00 00 00 F4 03 04 00 71 03 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BB 05 01 00 35 04 06 00 0F B8 05 76 58 55 29 C0 A3 27 0A BB EA 43 [06:23:44]CheckFolder [06:23:44]dirname=/storage/ofd_packets [06:23:44]CheckFolder done [06:23:44]ProducePacketName [06:23:44]name=ofd_packets/00067003 [06:23:44]NVStorageSaveData ofd_packets/00067003 [06:23:44]File name is /storage/ofd_packets/00067003 [06:23:44]Write 301 bytes [06:23:44]NVStorageSaveData done [06:23:44]OFDSenderStorePacket done [06:23:44]KKMCreateOFDPacket done [06:23:44]NVStorageSaveData kkm_last_timestamp [06:23:44]File name is /storage/kkm_last_timestamp [06:23:44]Write 4 bytes [06:23:44]NVStorageSaveData done [06:23:44]ExternCall_PrintAddStr [06:23:44]wPrintStart [06:23:44]Write to MH i2c: 01 00 00 92 0F A1 [06:23:44]Write i2c OK [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: 01 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: 01 07 00 [06:23:44]MH_I2C_Read... [06:23:44]Read from MH i2c: 01 07 00 92 0F 00 00 00 00 00 FF 0F B6 [06:23:44]RasterBufferAndPrint [06:23:44]line Счет N : (1)506815 [06:23:44]line ИНН: 02508201610067 [06:23:44]line Контрольно-Кассовый Чек [06:23:44]line ПРОДАЖА [06:23:44]line ТРК (МРК, ГНК) : 13 [06:23:44]line Товар: 2710124130 [06:23:44]line Аи-92-К-5 [06:23:44]line 29.950 * 66.80 [06:23:44]line = 2000.66 [06:23:44]line НДС 12% НСП 1% [06:23:44]line > о реализуемом товаре [06:23:44]line ИТОГО: 2000.66 [06:23:44]line НСП 1% : 17.70 [06:23:44]line НДС 12% : 212.46 [06:23:44]line Наличными: 0.00 [06:23:44]line Безнал.: 2000.66 [06:23:44]line Место: АЗС № 91 "Партнер Нефть" [06:23:44]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [06:23:44]line СНО: Общий режим [06:23:44]line Чек 10 14.05.2024 06:23 [06:23:44]line Смена: 355 ФФД: 1.0 [06:23:44]line ЗНМ: 0300000119 [06:23:44]line РНМ: 0000000000091845 [06:23:44]line Версия ККМ: 001 [06:23:44]line Платежная система: Бакай Банк [06:23:44]line ФМ: 0000000000871829 [06:23:44]line ФД: 67003 [06:23:44]line ФПД: 17283040041045 [06:23:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T062345&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67003&fm=17283040041045&tin=02508201610067®Number=0000000000091845&sum=200066 [06:23:44]written 0, free lines is 4095 [06:23:45]Write to MH i2c: 01 00 00 BB 0F CA [06:23:45]Write i2c OK [06:23:45]MH_I2C_Read... [06:23:45]Read from MH i2c: 01 [06:23:45]MH_I2C_Read... [06:23:45]Read from MH i2c: 01 07 00 [06:23:45]MH_I2C_Read... [06:23:45]Read from MH i2c: 01 07 00 BB 0F 00 00 00 00 00 CF 0C AC [06:23:45]RasterBufferAndPrint [06:23:45]line [06:23:45]line [06:23:45]line [06:23:45]line [06:23:45]line [06:23:45]written 0, free lines is 3285 [06:23:45]MH_Cut [06:23:45]Write to MH i2c: D1 01 00 C2 0F 01 A3 [06:23:45]Write i2c OK [06:23:45]MH_I2C_Read... [06:23:45]Read from MH i2c: D1 [06:23:45]MH_I2C_Read... [06:23:45]Read from MH i2c: D1 01 00 [06:23:45]MH_I2C_Read... [06:23:45]Read from MH i2c: D1 01 00 C2 0F 00 A2 [06:23:45]Write to MH i2c: 01 00 00 C3 0F D2 [06:23:45]Write i2c OK [06:23:45]MH_I2C_Read... [06:23:45]ConnectInit Can't take IP for lk.salyk.kg [06:23:45]CommunicateWithHost connect error [06:23:45]CommunicateWithHost err = -1 [06:23:45]OFD Sender: Server communicate error [06:23:45]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:23:45]ProducePacketName [06:23:45]name=ofd_packets/00067002 [06:23:45]OFD Sender: To server: pG, [06:23:45]CommunicateWithHost lk.salyk.kg:30040 [06:23:45]ConnectInit lk.salyk.kg [06:23:45]*** Cut start [06:23:45]*** Purtial cut [06:23:45]*** Stage 1: CUTSNS_PIN = 1 [06:23:46]Read from MH i2c: 01 [06:23:46]MH_I2C_Read... [06:23:46]*** Stop cut motor [06:23:46]*** Cut end [06:23:46]Read from MH i2c: 01 07 00 [06:23:46]MH_I2C_Read... [06:23:46]Read from MH i2c: 01 07 00 C3 0F 00 00 00 00 00 FF 0F E7 [06:23:46]process_action close_receipt done [06:23:46]requested_data is exist [06:23:46]produce_requested_data [06:23:46]requested_item fm.sn is exist - process it [06:23:46]wFMCommunicate request_size=4 [06:23:46]MH_SAM_APDU [06:23:46]CAPDU: 80 11 00 00 [06:23:46]Write to MH i2c: E2 08 00 C4 0F 80 11 00 00 00 00 00 00 4D [06:23:46]Write i2c OK [06:23:46]MH_I2C_Read... [06:23:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:46]Read from MH i2c: E2 [06:23:46]MH_I2C_Read... [06:23:46]Read from MH i2c: E2 17 00 [06:23:46]MH_I2C_Read... [06:23:46]Read from MH i2c: E2 17 00 C4 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A3 [06:23:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:23:46]wFMCommunicate OK [06:23:46]requested_item fd.num is exist - process it [06:23:46]SAM_PROTO_GetFieldsCounters [06:23:46]wFMCommunicate request_size=4 [06:23:46]MH_SAM_APDU [06:23:46]CAPDU: 80 13 00 00 [06:23:46]Write to MH i2c: E2 08 00 C5 0F 80 13 00 00 00 00 00 00 50 [06:23:46]Write i2c OK [06:23:46]MH_I2C_Read... [06:23:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:23:46]Read from MH i2c: E2 [06:23:46]MH_I2C_Read... [06:23:46]Read from MH i2c: E2 62 00 [06:23:46]MH_I2C_Read... [06:23:46]Read from MH i2c: E2 62 00 C5 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 BB 05 01 00 0E 04 04 00 63 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 B9 [06:23: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 BB 05 01 00 0E 04 04 00 63 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:23:46]wFMCommunicate OK [06:23:46]SAM_PROTO_GetFieldsCounters done [06:23:46]requested_item shift.num is exist - process it [06:23:46]requested_item shift.opened is exist - process it [06:23:46]req_shift_opened [06:23:46]FM_GetShiftState [06:23:46]SAM_PROTO_GetShiftState [06:23:46]wFMCommunicate request_size=4 [06:23:46]MH_SAM_APDU [06:23:46]CAPDU: 80 13 01 00 [06:23:46]Write to MH i2c: E2 08 00 C6 0F 80 13 01 00 00 00 00 00 52 [06:23:46]Write i2c OK [06:23:46]MH_I2C_Read... [06:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:46]Read from MH i2c: E2 [06:23:46]MH_I2C_Read... [06:23:46]Read from MH i2c: E2 0E 00 [06:23:46]MH_I2C_Read... [06:23:46]Read from MH i2c: E2 0E 00 C6 0F 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 1A [06:23:46]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [06:23:46]wFMCommunicate OK [06:23:46]SAM_PROTO_GetShiftState done [06:23:46]FM_GetShiftState done [06:23:46]req_shift_opened done [06:23:46]requested_item shift.open_date is exist - process it [06:23:46]req_shift_open_date [06:23:46]req_shift_open_date done [06:23:46]produce_requested_data done [06:23:46]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67003,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [06:23:46]process_action_free close_receipt [06:23:46]json_value_free [06:23:46]json_value_free done [06:23:46]process_json_proto returns [06:23:46]Send response to host [06:23:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67003,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [06:23:46]free response buf [06:23:46]execute_script done [06:23:46]execute_script returns [06:23:46]free content buf [06:23:46]Sock 9.Close socket [06:23:46]Sock 9.Thread stoped [06:23:50]ConnectInit Can't take IP for lk.salyk.kg [06:23:50]CommunicateWithHost connect error [06:23:50]CommunicateWithHost err = -1 [06:23:50]OFD Sender: Server communicate error [06:23:55]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:23:55]ProducePacketName [06:23:55]name=ofd_packets/00067002 [06:23:55]OFD Sender: To server: pG, [06:23:55]CommunicateWithHost lk.salyk.kg:30040 [06:23:55]ConnectInit lk.salyk.kg [06:24:00]ConnectInit Can't take IP for lk.salyk.kg [06:24:00]CommunicateWithHost connect error [06:24:00]CommunicateWithHost err = -1 [06:24:00]OFD Sender: Server communicate error [06:24:05]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:24:05]ProducePacketName [06:24:05]name=ofd_packets/00067002 [06:24:05]OFD Sender: To server: pG, [06:24:05]CommunicateWithHost lk.salyk.kg:30040 [06:24:05]ConnectInit lk.salyk.kg [06:24:10]ConnectInit Can't take IP for lk.salyk.kg [06:24:10]CommunicateWithHost connect error [06:24:10]CommunicateWithHost err = -1 [06:24:10]OFD Sender: Server communicate error [06:24:15]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:24:15]ProducePacketName [06:24:15]name=ofd_packets/00067002 [06:24:15]OFD Sender: To server: pG, [06:24:15]CommunicateWithHost lk.salyk.kg:30040 [06:24:15]ConnectInit lk.salyk.kg [06:24:20]ConnectInit Can't take IP for lk.salyk.kg [06:24:20]CommunicateWithHost connect error [06:24:20]CommunicateWithHost err = -1 [06:24:20]OFD Sender: Server communicate error [06:24:25]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:24:25]ProducePacketName [06:24:25]name=ofd_packets/00067002 [06:24:25]OFD Sender: To server: pG, [06:24:25]CommunicateWithHost lk.salyk.kg:30040 [06:24:25]ConnectInit lk.salyk.kg [06:24:30]ConnectInit Can't take IP for lk.salyk.kg [06:24:30]CommunicateWithHost connect error [06:24:30]CommunicateWithHost err = -1 [06:24:30]OFD Sender: Server communicate error [06:24:35]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:24:35]ProducePacketName [06:24:35]name=ofd_packets/00067002 [06:24:35]OFD Sender: To server: pG, [06:24:35]CommunicateWithHost lk.salyk.kg:30040 [06:24:35]ConnectInit lk.salyk.kg [06:24:40]ConnectInit Can't take IP for lk.salyk.kg [06:24:40]CommunicateWithHost connect error [06:24:40]CommunicateWithHost err = -1 [06:24:40]OFD Sender: Server communicate error [06:24:45]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:24:45]ProducePacketName [06:24:45]name=ofd_packets/00067002 [06:24:45]OFD Sender: To server: pG, [06:24:45]CommunicateWithHost lk.salyk.kg:30040 [06:24:45]ConnectInit lk.salyk.kg [06:24:50]ConnectInit Can't take IP for lk.salyk.kg [06:24:50]CommunicateWithHost connect error [06:24:50]CommunicateWithHost err = -1 [06:24:50]OFD Sender: Server communicate error [06:24:55]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:24:55]ProducePacketName [06:24:55]name=ofd_packets/00067002 [06:24:55]OFD Sender: To server: pG, [06:24:55]CommunicateWithHost lk.salyk.kg:30040 [06:24:55]ConnectInit lk.salyk.kg [06:25:00]ConnectInit Can't take IP for lk.salyk.kg [06:25:00]CommunicateWithHost connect error [06:25:00]CommunicateWithHost err = -1 [06:25:00]OFD Sender: Server communicate error [06:25:05]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:25:05]ProducePacketName [06:25:05]name=ofd_packets/00067002 [06:25:05]OFD Sender: To server: pG, [06:25:05]CommunicateWithHost lk.salyk.kg:30040 [06:25:05]ConnectInit lk.salyk.kg [06:25:10]ConnectInit Can't take IP for lk.salyk.kg [06:25:10]CommunicateWithHost connect error [06:25:10]CommunicateWithHost err = -1 [06:25:10]OFD Sender: Server communicate error [06:25:15]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:25:15]ProducePacketName [06:25:15]name=ofd_packets/00067002 [06:25:15]OFD Sender: To server: pG, [06:25:15]CommunicateWithHost lk.salyk.kg:30040 [06:25:15]ConnectInit lk.salyk.kg [06:25:20]ConnectInit Can't take IP for lk.salyk.kg [06:25:20]CommunicateWithHost connect error [06:25:20]CommunicateWithHost err = -1 [06:25:20]OFD Sender: Server communicate error [06:25:25]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:25:25]ProducePacketName [06:25:25]name=ofd_packets/00067002 [06:25:25]OFD Sender: To server: pG, [06:25:25]CommunicateWithHost lk.salyk.kg:30040 [06:25:25]ConnectInit lk.salyk.kg [06:25:30]ConnectInit Can't take IP for lk.salyk.kg [06:25:30]CommunicateWithHost connect error [06:25:30]CommunicateWithHost err = -1 [06:25:30]OFD Sender: Server communicate error [06:25:35]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:25:35]ProducePacketName [06:25:35]name=ofd_packets/00067002 [06:25:35]OFD Sender: To server: pG, [06:25:35]CommunicateWithHost lk.salyk.kg:30040 [06:25:35]ConnectInit lk.salyk.kg [06:25:40]ConnectInit Can't take IP for lk.salyk.kg [06:25:40]CommunicateWithHost connect error [06:25:40]CommunicateWithHost err = -1 [06:25:40]OFD Sender: Server communicate error [06:25:45]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:25:45]ProducePacketName [06:25:45]name=ofd_packets/00067002 [06:25:45]OFD Sender: To server: pG, [06:25:45]CommunicateWithHost lk.salyk.kg:30040 [06:25:45]ConnectInit lk.salyk.kg [06:25:50]ConnectInit Can't take IP for lk.salyk.kg [06:25:50]CommunicateWithHost connect error [06:25:50]CommunicateWithHost err = -1 [06:25:50]OFD Sender: Server communicate error [06:25:55]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:25:55]ProducePacketName [06:25:55]name=ofd_packets/00067002 [06:25:55]OFD Sender: To server: pG, [06:25:55]CommunicateWithHost lk.salyk.kg:30040 [06:25:55]ConnectInit lk.salyk.kg [06:26:00]ConnectInit Can't take IP for lk.salyk.kg [06:26:00]CommunicateWithHost connect error [06:26:00]CommunicateWithHost err = -1 [06:26:00]OFD Sender: Server communicate error [06:26:05]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:26:05]ProducePacketName [06:26:05]name=ofd_packets/00067002 [06:26:05]OFD Sender: To server: pG, [06:26:05]CommunicateWithHost lk.salyk.kg:30040 [06:26:05]ConnectInit lk.salyk.kg [06:26:10]ConnectInit Can't take IP for lk.salyk.kg [06:26:10]CommunicateWithHost connect error [06:26:10]CommunicateWithHost err = -1 [06:26:10]OFD Sender: Server communicate error [06:26:15]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:26:15]ProducePacketName [06:26:15]name=ofd_packets/00067002 [06:26:15]OFD Sender: To server: pG, [06:26:15]CommunicateWithHost lk.salyk.kg:30040 [06:26:15]ConnectInit lk.salyk.kg [06:26:20]ConnectInit Can't take IP for lk.salyk.kg [06:26:20]CommunicateWithHost connect error [06:26:20]CommunicateWithHost err = -1 [06:26:20]OFD Sender: Server communicate error [06:26:25]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:26:25]ProducePacketName [06:26:25]name=ofd_packets/00067002 [06:26:25]OFD Sender: To server: pG, [06:26:25]CommunicateWithHost lk.salyk.kg:30040 [06:26:25]ConnectInit lk.salyk.kg [06:26:30]ConnectInit Can't take IP for lk.salyk.kg [06:26:30]CommunicateWithHost connect error [06:26:30]CommunicateWithHost err = -1 [06:26:30]OFD Sender: Server communicate error [06:26:35]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:26:35]ProducePacketName [06:26:35]name=ofd_packets/00067002 [06:26:35]OFD Sender: To server: pG, [06:26:35]CommunicateWithHost lk.salyk.kg:30040 [06:26:35]ConnectInit lk.salyk.kg [06:26:40]ConnectInit Can't take IP for lk.salyk.kg [06:26:40]CommunicateWithHost connect error [06:26:40]CommunicateWithHost err = -1 [06:26:40]OFD Sender: Server communicate error [06:26:45]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:26:45]ProducePacketName [06:26:45]name=ofd_packets/00067002 [06:26:45]OFD Sender: To server: pG, [06:26:45]CommunicateWithHost lk.salyk.kg:30040 [06:26:45]ConnectInit lk.salyk.kg [06:26:50]ConnectInit Can't take IP for lk.salyk.kg [06:26:50]CommunicateWithHost connect error [06:26:50]CommunicateWithHost err = -1 [06:26:50]OFD Sender: Server communicate error [06:26:55]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:26:55]ProducePacketName [06:26:55]name=ofd_packets/00067002 [06:26:55]OFD Sender: To server: pG, [06:26:55]CommunicateWithHost lk.salyk.kg:30040 [06:26:55]ConnectInit lk.salyk.kg [06:27:00]ConnectInit Can't take IP for lk.salyk.kg [06:27:00]CommunicateWithHost connect error [06:27:00]CommunicateWithHost err = -1 [06:27:00]OFD Sender: Server communicate error [06:27:05]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:27:05]ProducePacketName [06:27:05]name=ofd_packets/00067002 [06:27:05]OFD Sender: To server: pG, [06:27:05]CommunicateWithHost lk.salyk.kg:30040 [06:27:05]ConnectInit lk.salyk.kg [06:27:10]ConnectInit Can't take IP for lk.salyk.kg [06:27:10]CommunicateWithHost connect error [06:27:10]CommunicateWithHost err = -1 [06:27:10]OFD Sender: Server communicate error [06:27:15]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:27:15]ProducePacketName [06:27:15]name=ofd_packets/00067002 [06:27:15]OFD Sender: To server: pG, [06:27:15]CommunicateWithHost lk.salyk.kg:30040 [06:27:15]ConnectInit lk.salyk.kg [06:27:20]accept exits with 11 [06:27:20]New connection [06:27:20]New thread 3066760548 created [06:27:20]Thread 3066617188 joined [06:27:20]Waiting for new connection... [06:27:20] Sock 11.Parse request [06:27:20]Sock 11.Check first char [06:27:20]Sock 11.First char is OK [06:27:20]request: POST /json_proto HTTP/1.0 [06:27:20]Method: POST [06:27:20]URL: /json_proto [06:27:20]Method is POST - this is cgi request [06:27:20]url: /json_proto [06:27:20]query_string will be loaded in cgi processing [06:27:20]execute_cgi json_proto POST (null) [06:27:20]execute_cgi path=json_proto method=POST [06:27:20]POST find Content-Length [06:27:20]Host: 172.17.41.195:8080 [06:27:20]Content-Length: 1179 [06:27:20]Content-Type: application/json [06:27:20] [06:27:20]POST finish read [06:27:20]Found Content-Length = 1179 [06:27:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506816\u000A14.05.2024 06:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 26.780 x 74.70\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:27:20]execute_script... [06:27:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506816\u000A14.05.2024 06:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 26.780 x 74.70\u000A\u0418\u0422\u041E\u0413: 2000.47\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:27:20]POST & json_proto [06:27:20]process_json_proto [06:27:20]json parsed OK: [06:27:20]protocol is kg_v1.0 [06:27:20]action value=print_text [06:27:20]process_action print_text [06:27:20]cmd_print_text [06:27:20]ExternCall_PrintAddStr [06:27:20]wPrintStart [06:27:20]Write to MH i2c: 01 00 00 C7 0F D6 [06:27:20]Write i2c OK [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: 01 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: 01 07 00 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: 01 07 00 C7 0F 00 00 00 00 00 FF 0F EB [06:27:20]RasterBufferAndPrint [06:27:20]line *****ТОВАРНЫЙ ЧЕК***** [06:27:20]line АЗС-91 [06:27:20]line Партнер нефть [06:27:20]line 02508201610067 [06:27:20]line Кассир : Адишов И. [06:27:20]line Счет N : (1)506816 [06:27:20]line 14.05.2024 06:10 [06:27:20]line ПРОДАЖА [06:27:20]line ТРК (МРК, ГНК): 31 [06:27:20]line Вид ГСМ : 2710194210 [06:27:20]line ДТ-К-5 [06:27:20]line 26.780 x 74.70 [06:27:20]line ИТОГ: 2000.47 [06:27:20]line Тип оплаты: Талоны: Топливная Карта [06:27:20]line 02750 [06:27:20]line ______________________ [06:27:20]line (подпись) [06:27:20]written 0, free lines is 4095 [06:27:20]Write to MH i2c: 01 00 00 DB 0F EA [06:27:20]Write i2c OK [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: 01 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: 01 07 00 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: 01 07 00 DB 0F 00 00 00 00 00 0D 0E 0C [06:27:20]RasterBufferAndPrint [06:27:20]line [06:27:20]line [06:27:20]line [06:27:20]line [06:27:20]line [06:27:20]written 0, free lines is 3598 [06:27:20]MH_Cut [06:27:20]Write to MH i2c: D1 01 00 E2 0F 01 C3 [06:27:20]ConnectInit Can't take IP for lk.salyk.kg [06:27:20]CommunicateWithHost connect error [06:27:20]CommunicateWithHost err = -1 [06:27:20]OFD Sender: Server communicate error [06:27:20]Write i2c OK [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: D1 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: D1 01 00 [06:27:20]MH_I2C_Read... [06:27:20]Read from MH i2c: D1 01 00 E2 0F 00 C2 [06:27:20]Write to MH i2c: 01 00 00 E3 0F F2 [06:27:20]Write i2c OK [06:27:20]MH_I2C_Read... [06:27:21]*** Cut start [06:27:21]*** Purtial cut [06:27:21]*** CUTSNS_PIN = 0 [06:27:21]*** Stage 1: CUTSNS_PIN = 1 [06:27:23]Read from MH i2c: 01 [06:27:23]MH_I2C_Read... [06:27:23]Read from MH i2c: 01 07 00 [06:27:23]MH_I2C_Read... [06:27:23]*** Stop cut motor [06:27:23]*** Cut end [06:27:23]Read from MH i2c: 01 07 00 E3 0F 00 00 00 00 00 FF 0F 07 [06:27:23]process_action print_text done [06:27:23]requested_data is exist [06:27:23]produce_requested_data [06:27:23]requested_item fm.sn is exist - process it [06:27:23]wFMCommunicate request_size=4 [06:27:23]MH_SAM_APDU [06:27:23]CAPDU: 80 11 00 00 [06:27:23]Write to MH i2c: E2 08 00 E4 0F 80 11 00 00 00 00 00 00 6D [06:27:23]Write i2c OK [06:27:23]MH_I2C_Read... [06:27:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:27:23]Read from MH i2c: E2 [06:27:23]MH_I2C_Read... [06:27:23]Read from MH i2c: E2 17 00 [06:27:23]MH_I2C_Read... [06:27:23]Read from MH i2c: E2 17 00 E4 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C3 [06:27:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:27:23]wFMCommunicate OK [06:27:23]requested_item fd.num is exist - process it [06:27:23]SAM_PROTO_GetFieldsCounters [06:27:23]wFMCommunicate request_size=4 [06:27:23]MH_SAM_APDU [06:27:23]CAPDU: 80 13 00 00 [06:27:23]Write to MH i2c: E2 08 00 E5 0F 80 13 00 00 00 00 00 00 70 [06:27:23]Write i2c OK [06:27:23]MH_I2C_Read... [06:27:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:27:23]Read from MH i2c: E2 [06:27:23]MH_I2C_Read... [06:27:23]Read from MH i2c: E2 62 00 [06:27:23]MH_I2C_Read... [06:27:23]Read from MH i2c: E2 62 00 E5 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 BB 05 01 00 0E 04 04 00 63 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 D9 [06:27:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 BB 05 01 00 0E 04 04 00 63 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:27:23]wFMCommunicate OK [06:27:23]SAM_PROTO_GetFieldsCounters done [06:27:23]requested_item shift.num is exist - process it [06:27:23]requested_item shift.opened is exist - process it [06:27:23]req_shift_opened [06:27:23]FM_GetShiftState [06:27:23]SAM_PROTO_GetShiftState [06:27:23]wFMCommunicate request_size=4 [06:27:23]MH_SAM_APDU [06:27:23]CAPDU: 80 13 01 00 [06:27:23]Write to MH i2c: E2 08 00 E6 0F 80 13 01 00 00 00 00 00 72 [06:27:23]Write i2c OK [06:27:23]MH_I2C_Read... [06:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:27:23]Read from MH i2c: E2 [06:27:23]MH_I2C_Read... [06:27:23]Read from MH i2c: E2 0E 00 [06:27:23]MH_I2C_Read... [06:27:23]Read from MH i2c: E2 0E 00 E6 0F 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 3A [06:27:23]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [06:27:23]wFMCommunicate OK [06:27:23]SAM_PROTO_GetShiftState done [06:27:23]FM_GetShiftState done [06:27:23]req_shift_opened done [06:27:23]requested_item shift.open_date is exist - process it [06:27:23]req_shift_open_date [06:27:23]req_shift_open_date done [06:27:23]produce_requested_data done [06:27:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67003,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [06:27:23]process_action_free print_text [06:27:23]json_value_free [06:27:23]json_value_free done [06:27:23]process_json_proto returns [06:27:23]Send response to host [06:27:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67003,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [06:27:23]free response buf [06:27:23]execute_script done [06:27:23]execute_script returns [06:27:23]free content buf [06:27:23]Sock 11.Close socket [06:27:23]Sock 11.Thread stoped [06:27:25]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:27:25]ProducePacketName [06:27:25]name=ofd_packets/00067002 [06:27:25]OFD Sender: To server: pG, [06:27:25]CommunicateWithHost lk.salyk.kg:30040 [06:27:25]ConnectInit lk.salyk.kg [06:27:30]ConnectInit Can't take IP for lk.salyk.kg [06:27:30]CommunicateWithHost connect error [06:27:30]CommunicateWithHost err = -1 [06:27:30]OFD Sender: Server communicate error [06:27:35]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:27:35]ProducePacketName [06:27:35]name=ofd_packets/00067002 [06:27:35]OFD Sender: To server: pG, [06:27:35]CommunicateWithHost lk.salyk.kg:30040 [06:27:35]ConnectInit lk.salyk.kg [06:27:40]ConnectInit Can't take IP for lk.salyk.kg [06:27:40]CommunicateWithHost connect error [06:27:40]CommunicateWithHost err = -1 [06:27:40]OFD Sender: Server communicate error [06:27:45]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:27:45]ProducePacketName [06:27:45]name=ofd_packets/00067002 [06:27:45]OFD Sender: To server: pG, [06:27:45]CommunicateWithHost lk.salyk.kg:30040 [06:27:45]ConnectInit lk.salyk.kg [06:27:50]ConnectInit Can't take IP for lk.salyk.kg [06:27:50]CommunicateWithHost connect error [06:27:50]CommunicateWithHost err = -1 [06:27:50]OFD Sender: Server communicate error [06:27:55]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:27:55]ProducePacketName [06:27:55]name=ofd_packets/00067002 [06:27:55]OFD Sender: To server: pG, [06:27:55]CommunicateWithHost lk.salyk.kg:30040 [06:27:55]ConnectInit lk.salyk.kg [06:28:00]ConnectInit Can't take IP for lk.salyk.kg [06:28:00]CommunicateWithHost connect error [06:28:00]CommunicateWithHost err = -1 [06:28:00]OFD Sender: Server communicate error [06:28:05]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:28:05]ProducePacketName [06:28:05]name=ofd_packets/00067002 [06:28:05]OFD Sender: To server: pG, [06:28:05]CommunicateWithHost lk.salyk.kg:30040 [06:28:05]ConnectInit lk.salyk.kg [06:28:10]ConnectInit Can't take IP for lk.salyk.kg [06:28:10]CommunicateWithHost connect error [06:28:10]CommunicateWithHost err = -1 [06:28:10]OFD Sender: Server communicate error [06:28:15]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:28:15]ProducePacketName [06:28:15]name=ofd_packets/00067002 [06:28:15]OFD Sender: To server: pG, [06:28:15]CommunicateWithHost lk.salyk.kg:30040 [06:28:15]ConnectInit lk.salyk.kg [06:28:20]ConnectInit Can't take IP for lk.salyk.kg [06:28:20]CommunicateWithHost connect error [06:28:20]CommunicateWithHost err = -1 [06:28:20]OFD Sender: Server communicate error [06:28:25]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:28:25]ProducePacketName [06:28:25]name=ofd_packets/00067002 [06:28:25]OFD Sender: To server: pG, [06:28:25]CommunicateWithHost lk.salyk.kg:30040 [06:28:25]ConnectInit lk.salyk.kg [06:28:30]ConnectInit Can't take IP for lk.salyk.kg [06:28:30]CommunicateWithHost connect error [06:28:30]CommunicateWithHost err = -1 [06:28:30]OFD Sender: Server communicate error [06:28:35]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:28:35]ProducePacketName [06:28:35]name=ofd_packets/00067002 [06:28:35]OFD Sender: To server: pG, [06:28:35]CommunicateWithHost lk.salyk.kg:30040 [06:28:35]ConnectInit lk.salyk.kg [06:28:40]ConnectInit Can't take IP for lk.salyk.kg [06:28:40]CommunicateWithHost connect error [06:28:40]CommunicateWithHost err = -1 [06:28:40]OFD Sender: Server communicate error [06:28:45]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:28:45]ProducePacketName [06:28:45]name=ofd_packets/00067002 [06:28:45]OFD Sender: To server: pG, [06:28:45]CommunicateWithHost lk.salyk.kg:30040 [06:28:45]ConnectInit lk.salyk.kg [06:28:50]ConnectInit Can't take IP for lk.salyk.kg [06:28:50]CommunicateWithHost connect error [06:28:50]CommunicateWithHost err = -1 [06:28:50]OFD Sender: Server communicate error [06:28:55]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:28:55]ProducePacketName [06:28:55]name=ofd_packets/00067002 [06:28:55]OFD Sender: To server: pG, [06:28:55]CommunicateWithHost lk.salyk.kg:30040 [06:28:55]ConnectInit lk.salyk.kg [06:29:00]ConnectInit Can't take IP for lk.salyk.kg [06:29:00]CommunicateWithHost connect error [06:29:00]CommunicateWithHost err = -1 [06:29:00]OFD Sender: Server communicate error [06:29:05]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:29:05]ProducePacketName [06:29:05]name=ofd_packets/00067002 [06:29:05]OFD Sender: To server: pG, [06:29:05]CommunicateWithHost lk.salyk.kg:30040 [06:29:05]ConnectInit lk.salyk.kg [06:29:10]ConnectInit Can't take IP for lk.salyk.kg [06:29:10]CommunicateWithHost connect error [06:29:10]CommunicateWithHost err = -1 [06:29:10]OFD Sender: Server communicate error [06:29:15]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:29:15]ProducePacketName [06:29:15]name=ofd_packets/00067002 [06:29:15]OFD Sender: To server: pG, [06:29:15]CommunicateWithHost lk.salyk.kg:30040 [06:29:15]ConnectInit lk.salyk.kg [06:29:20]ConnectInit Can't take IP for lk.salyk.kg [06:29:20]CommunicateWithHost connect error [06:29:20]CommunicateWithHost err = -1 [06:29:20]OFD Sender: Server communicate error [06:29:25]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:29:25]ProducePacketName [06:29:25]name=ofd_packets/00067002 [06:29:25]OFD Sender: To server: pG, [06:29:25]CommunicateWithHost lk.salyk.kg:30040 [06:29:25]ConnectInit lk.salyk.kg [06:29:30]ConnectInit Can't take IP for lk.salyk.kg [06:29:30]CommunicateWithHost connect error [06:29:30]CommunicateWithHost err = -1 [06:29:30]OFD Sender: Server communicate error [06:29:35]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:29:35]ProducePacketName [06:29:35]name=ofd_packets/00067002 [06:29:35]OFD Sender: To server: pG, [06:29:35]CommunicateWithHost lk.salyk.kg:30040 [06:29:35]ConnectInit lk.salyk.kg [06:29:40]ConnectInit Can't take IP for lk.salyk.kg [06:29:40]CommunicateWithHost connect error [06:29:40]CommunicateWithHost err = -1 [06:29:40]OFD Sender: Server communicate error [06:29:45]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:29:45]ProducePacketName [06:29:45]name=ofd_packets/00067002 [06:29:45]OFD Sender: To server: pG, [06:29:45]CommunicateWithHost lk.salyk.kg:30040 [06:29:45]ConnectInit lk.salyk.kg [06:29:50]ConnectInit Can't take IP for lk.salyk.kg [06:29:50]CommunicateWithHost connect error [06:29:50]CommunicateWithHost err = -1 [06:29:50]OFD Sender: Server communicate error [06:29:55]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:29:55]ProducePacketName [06:29:55]name=ofd_packets/00067002 [06:29:55]OFD Sender: To server: pG, [06:29:55]CommunicateWithHost lk.salyk.kg:30040 [06:29:55]ConnectInit lk.salyk.kg [06:30:00]ConnectInit Can't take IP for lk.salyk.kg [06:30:00]CommunicateWithHost connect error [06:30:00]CommunicateWithHost err = -1 [06:30:00]OFD Sender: Server communicate error [06:30:05]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:30:05]ProducePacketName [06:30:05]name=ofd_packets/00067002 [06:30:05]OFD Sender: To server: pG, [06:30:05]CommunicateWithHost lk.salyk.kg:30040 [06:30:05]ConnectInit lk.salyk.kg [06:30:10]ConnectInit Can't take IP for lk.salyk.kg [06:30:10]CommunicateWithHost connect error [06:30:10]CommunicateWithHost err = -1 [06:30:10]OFD Sender: Server communicate error [06:30:15]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:30:15]ProducePacketName [06:30:15]name=ofd_packets/00067002 [06:30:15]OFD Sender: To server: pG, [06:30:15]CommunicateWithHost lk.salyk.kg:30040 [06:30:15]ConnectInit lk.salyk.kg [06:30:20]ConnectInit Can't take IP for lk.salyk.kg [06:30:20]CommunicateWithHost connect error [06:30:20]CommunicateWithHost err = -1 [06:30:20]OFD Sender: Server communicate error [06:30:25]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:30:25]ProducePacketName [06:30:25]name=ofd_packets/00067002 [06:30:25]OFD Sender: To server: pG, [06:30:25]CommunicateWithHost lk.salyk.kg:30040 [06:30:25]ConnectInit lk.salyk.kg [06:30:30]ConnectInit Can't take IP for lk.salyk.kg [06:30:30]CommunicateWithHost connect error [06:30:30]CommunicateWithHost err = -1 [06:30:30]OFD Sender: Server communicate error [06:30:35]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:30:35]ProducePacketName [06:30:35]name=ofd_packets/00067002 [06:30:35]OFD Sender: To server: pG, [06:30:35]CommunicateWithHost lk.salyk.kg:30040 [06:30:35]ConnectInit lk.salyk.kg [06:30:40]ConnectInit Can't take IP for lk.salyk.kg [06:30:40]CommunicateWithHost connect error [06:30:40]CommunicateWithHost err = -1 [06:30:40]OFD Sender: Server communicate error [06:30:45]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:30:45]ProducePacketName [06:30:45]name=ofd_packets/00067002 [06:30:45]OFD Sender: To server: pG, [06:30:45]CommunicateWithHost lk.salyk.kg:30040 [06:30:45]ConnectInit lk.salyk.kg [06:30:50]ConnectInit Can't take IP for lk.salyk.kg [06:30:50]CommunicateWithHost connect error [06:30:50]CommunicateWithHost err = -1 [06:30:50]OFD Sender: Server communicate error [06:30:55]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:30:55]ProducePacketName [06:30:55]name=ofd_packets/00067002 [06:30:55]OFD Sender: To server: pG, [06:30:55]CommunicateWithHost lk.salyk.kg:30040 [06:30:55]ConnectInit lk.salyk.kg [06:31:00]ConnectInit Can't take IP for lk.salyk.kg [06:31:00]CommunicateWithHost connect error [06:31:00]CommunicateWithHost err = -1 [06:31:00]OFD Sender: Server communicate error [06:31:05]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:31:05]ProducePacketName [06:31:05]name=ofd_packets/00067002 [06:31:05]OFD Sender: To server: pG, [06:31:05]CommunicateWithHost lk.salyk.kg:30040 [06:31:05]ConnectInit lk.salyk.kg [06:31:10]ConnectInit Can't take IP for lk.salyk.kg [06:31:10]CommunicateWithHost connect error [06:31:10]CommunicateWithHost err = -1 [06:31:10]OFD Sender: Server communicate error [06:31:15]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:31:15]ProducePacketName [06:31:15]name=ofd_packets/00067002 [06:31:15]OFD Sender: To server: pG, [06:31:15]CommunicateWithHost lk.salyk.kg:30040 [06:31:15]ConnectInit lk.salyk.kg [06:31:20]ConnectInit Can't take IP for lk.salyk.kg [06:31:20]CommunicateWithHost connect error [06:31:20]CommunicateWithHost err = -1 [06:31:20]OFD Sender: Server communicate error [06:31:25]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:31:25]ProducePacketName [06:31:25]name=ofd_packets/00067002 [06:31:25]OFD Sender: To server: pG, [06:31:25]CommunicateWithHost lk.salyk.kg:30040 [06:31:25]ConnectInit lk.salyk.kg [06:31:30]ConnectInit Can't take IP for lk.salyk.kg [06:31:30]CommunicateWithHost connect error [06:31:30]CommunicateWithHost err = -1 [06:31:30]OFD Sender: Server communicate error [06:31:35]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:31:35]ProducePacketName [06:31:35]name=ofd_packets/00067002 [06:31:35]OFD Sender: To server: pG, [06:31:35]CommunicateWithHost lk.salyk.kg:30040 [06:31:35]ConnectInit lk.salyk.kg [06:31:40]ConnectInit Can't take IP for lk.salyk.kg [06:31:40]CommunicateWithHost connect error [06:31:40]CommunicateWithHost err = -1 [06:31:40]OFD Sender: Server communicate error [06:31:45]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:31:45]ProducePacketName [06:31:45]name=ofd_packets/00067002 [06:31:45]OFD Sender: To server: pG, [06:31:45]CommunicateWithHost lk.salyk.kg:30040 [06:31:45]ConnectInit lk.salyk.kg [06:31:50]ConnectInit Can't take IP for lk.salyk.kg [06:31:50]CommunicateWithHost connect error [06:31:50]CommunicateWithHost err = -1 [06:31:50]OFD Sender: Server communicate error [06:31:55]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:31:55]ProducePacketName [06:31:55]name=ofd_packets/00067002 [06:31:55]OFD Sender: To server: pG, [06:31:55]CommunicateWithHost lk.salyk.kg:30040 [06:31:55]ConnectInit lk.salyk.kg [06:32:00]ConnectInit Can't take IP for lk.salyk.kg [06:32:00]CommunicateWithHost connect error [06:32:00]CommunicateWithHost err = -1 [06:32:00]OFD Sender: Server communicate error [06:32:05]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:32:05]ProducePacketName [06:32:05]name=ofd_packets/00067002 [06:32:05]OFD Sender: To server: pG, [06:32:05]CommunicateWithHost lk.salyk.kg:30040 [06:32:05]ConnectInit lk.salyk.kg [06:32:10]ConnectInit Can't take IP for lk.salyk.kg [06:32:10]CommunicateWithHost connect error [06:32:10]CommunicateWithHost err = -1 [06:32:10]OFD Sender: Server communicate error [06:32:15]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:32:15]ProducePacketName [06:32:15]name=ofd_packets/00067002 [06:32:15]OFD Sender: To server: pG, [06:32:15]CommunicateWithHost lk.salyk.kg:30040 [06:32:15]ConnectInit lk.salyk.kg [06:32:20]ConnectInit Can't take IP for lk.salyk.kg [06:32:20]CommunicateWithHost connect error [06:32:20]CommunicateWithHost err = -1 [06:32:20]OFD Sender: Server communicate error [06:32:25]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:32:25]ProducePacketName [06:32:25]name=ofd_packets/00067002 [06:32:25]OFD Sender: To server: pG, [06:32:25]CommunicateWithHost lk.salyk.kg:30040 [06:32:25]ConnectInit lk.salyk.kg [06:32:30]ConnectInit Can't take IP for lk.salyk.kg [06:32:30]CommunicateWithHost connect error [06:32:30]CommunicateWithHost err = -1 [06:32:30]OFD Sender: Server communicate error [06:32:35]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:32:35]ProducePacketName [06:32:35]name=ofd_packets/00067002 [06:32:35]OFD Sender: To server: pG, [06:32:35]CommunicateWithHost lk.salyk.kg:30040 [06:32:35]ConnectInit lk.salyk.kg [06:32:40]ConnectInit Can't take IP for lk.salyk.kg [06:32:40]CommunicateWithHost connect error [06:32:40]CommunicateWithHost err = -1 [06:32:40]OFD Sender: Server communicate error [06:32:45]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:32:45]ProducePacketName [06:32:45]name=ofd_packets/00067002 [06:32:45]OFD Sender: To server: pG, [06:32:45]CommunicateWithHost lk.salyk.kg:30040 [06:32:45]ConnectInit lk.salyk.kg [06:32:50]ConnectInit Can't take IP for lk.salyk.kg [06:32:50]CommunicateWithHost connect error [06:32:50]CommunicateWithHost err = -1 [06:32:50]OFD Sender: Server communicate error [06:32:55]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:32:55]ProducePacketName [06:32:55]name=ofd_packets/00067002 [06:32:55]OFD Sender: To server: pG, [06:32:55]CommunicateWithHost lk.salyk.kg:30040 [06:32:55]ConnectInit lk.salyk.kg [06:33:00]ConnectInit Can't take IP for lk.salyk.kg [06:33:00]CommunicateWithHost connect error [06:33:00]CommunicateWithHost err = -1 [06:33:00]OFD Sender: Server communicate error [06:33:05]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:33:05]ProducePacketName [06:33:05]name=ofd_packets/00067002 [06:33:05]OFD Sender: To server: pG, [06:33:05]CommunicateWithHost lk.salyk.kg:30040 [06:33:05]ConnectInit lk.salyk.kg [06:33:10]ConnectInit Can't take IP for lk.salyk.kg [06:33:10]CommunicateWithHost connect error [06:33:10]CommunicateWithHost err = -1 [06:33:10]OFD Sender: Server communicate error [06:33:15]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:33:15]ProducePacketName [06:33:15]name=ofd_packets/00067002 [06:33:15]OFD Sender: To server: pG, [06:33:15]CommunicateWithHost lk.salyk.kg:30040 [06:33:15]ConnectInit lk.salyk.kg [06:33:20]ConnectInit Can't take IP for lk.salyk.kg [06:33:20]CommunicateWithHost connect error [06:33:20]CommunicateWithHost err = -1 [06:33:20]OFD Sender: Server communicate error [06:33:25]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:33:25]ProducePacketName [06:33:25]name=ofd_packets/00067002 [06:33:25]OFD Sender: To server: pG, [06:33:25]CommunicateWithHost lk.salyk.kg:30040 [06:33:25]ConnectInit lk.salyk.kg [06:33:30]ConnectInit Can't take IP for lk.salyk.kg [06:33:30]CommunicateWithHost connect error [06:33:30]CommunicateWithHost err = -1 [06:33:30]OFD Sender: Server communicate error [06:33:35]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:33:35]ProducePacketName [06:33:35]name=ofd_packets/00067002 [06:33:35]OFD Sender: To server: pG, [06:33:35]CommunicateWithHost lk.salyk.kg:30040 [06:33:35]ConnectInit lk.salyk.kg [06:33:40]ConnectInit Can't take IP for lk.salyk.kg [06:33:40]CommunicateWithHost connect error [06:33:40]CommunicateWithHost err = -1 [06:33:40]OFD Sender: Server communicate error [06:33:45]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:33:45]ProducePacketName [06:33:45]name=ofd_packets/00067002 [06:33:45]OFD Sender: To server: pG, [06:33:45]CommunicateWithHost lk.salyk.kg:30040 [06:33:45]ConnectInit lk.salyk.kg [06:33:50]ConnectInit Can't take IP for lk.salyk.kg [06:33:50]CommunicateWithHost connect error [06:33:50]CommunicateWithHost err = -1 [06:33:50]OFD Sender: Server communicate error [06:33:55]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:33:55]ProducePacketName [06:33:55]name=ofd_packets/00067002 [06:33:55]OFD Sender: To server: pG, [06:33:55]CommunicateWithHost lk.salyk.kg:30040 [06:33:55]ConnectInit lk.salyk.kg [06:34:00]ConnectInit Can't take IP for lk.salyk.kg [06:34:00]CommunicateWithHost connect error [06:34:00]CommunicateWithHost err = -1 [06:34:00]OFD Sender: Server communicate error [06:34:05]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:34:05]ProducePacketName [06:34:05]name=ofd_packets/00067002 [06:34:05]OFD Sender: To server: pG, [06:34:05]CommunicateWithHost lk.salyk.kg:30040 [06:34:05]ConnectInit lk.salyk.kg [06:34:10]ConnectInit Can't take IP for lk.salyk.kg [06:34:10]CommunicateWithHost connect error [06:34:11]CommunicateWithHost err = -1 [06:34:11]OFD Sender: Server communicate error [06:34:16]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:34:16]ProducePacketName [06:34:16]name=ofd_packets/00067002 [06:34:16]OFD Sender: To server: pG, [06:34:16]CommunicateWithHost lk.salyk.kg:30040 [06:34:16]ConnectInit lk.salyk.kg [06:34:21]ConnectInit Can't take IP for lk.salyk.kg [06:34:21]CommunicateWithHost connect error [06:34:21]CommunicateWithHost err = -1 [06:34:21]OFD Sender: Server communicate error [06:34:26]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:34:26]ProducePacketName [06:34:26]name=ofd_packets/00067002 [06:34:26]OFD Sender: To server: pG, [06:34:26]CommunicateWithHost lk.salyk.kg:30040 [06:34:26]ConnectInit lk.salyk.kg [06:34:31]ConnectInit Can't take IP for lk.salyk.kg [06:34:31]CommunicateWithHost connect error [06:34:31]CommunicateWithHost err = -1 [06:34:31]OFD Sender: Server communicate error [06:34:36]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:34:36]ProducePacketName [06:34:36]name=ofd_packets/00067002 [06:34:36]OFD Sender: To server: pG, [06:34:36]CommunicateWithHost lk.salyk.kg:30040 [06:34:36]ConnectInit lk.salyk.kg [06:34:41]ConnectInit Can't take IP for lk.salyk.kg [06:34:41]CommunicateWithHost connect error [06:34:41]CommunicateWithHost err = -1 [06:34:41]OFD Sender: Server communicate error [06:34:46]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:34:46]ProducePacketName [06:34:46]name=ofd_packets/00067002 [06:34:46]OFD Sender: To server: pG, [06:34:46]CommunicateWithHost lk.salyk.kg:30040 [06:34:46]ConnectInit lk.salyk.kg [06:34:51]ConnectInit Can't take IP for lk.salyk.kg [06:34:51]CommunicateWithHost connect error [06:34:51]CommunicateWithHost err = -1 [06:34:51]OFD Sender: Server communicate error [06:34:56]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:34:56]ProducePacketName [06:34:56]name=ofd_packets/00067002 [06:34:56]OFD Sender: To server: pG, [06:34:56]CommunicateWithHost lk.salyk.kg:30040 [06:34:56]ConnectInit lk.salyk.kg [06:35:01]ConnectInit Can't take IP for lk.salyk.kg [06:35:01]CommunicateWithHost connect error [06:35:01]CommunicateWithHost err = -1 [06:35:01]OFD Sender: Server communicate error [06:35:06]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:35:06]ProducePacketName [06:35:06]name=ofd_packets/00067002 [06:35:06]OFD Sender: To server: pG, [06:35:06]CommunicateWithHost lk.salyk.kg:30040 [06:35:06]ConnectInit lk.salyk.kg [06:35:11]ConnectInit Can't take IP for lk.salyk.kg [06:35:11]CommunicateWithHost connect error [06:35:11]CommunicateWithHost err = -1 [06:35:11]OFD Sender: Server communicate error [06:35:16]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:35:16]ProducePacketName [06:35:16]name=ofd_packets/00067002 [06:35:16]OFD Sender: To server: pG, [06:35:16]CommunicateWithHost lk.salyk.kg:30040 [06:35:16]ConnectInit lk.salyk.kg [06:35:21]ConnectInit Can't take IP for lk.salyk.kg [06:35:21]CommunicateWithHost connect error [06:35:21]CommunicateWithHost err = -1 [06:35:21]OFD Sender: Server communicate error [06:35:26]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:35:26]ProducePacketName [06:35:26]name=ofd_packets/00067002 [06:35:26]OFD Sender: To server: pG, [06:35:26]CommunicateWithHost lk.salyk.kg:30040 [06:35:26]ConnectInit lk.salyk.kg [06:35:31]ConnectInit Can't take IP for lk.salyk.kg [06:35:31]CommunicateWithHost connect error [06:35:31]CommunicateWithHost err = -1 [06:35:31]OFD Sender: Server communicate error [06:35:36]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:35:36]ProducePacketName [06:35:36]name=ofd_packets/00067002 [06:35:36]OFD Sender: To server: pG, [06:35:36]CommunicateWithHost lk.salyk.kg:30040 [06:35:36]ConnectInit lk.salyk.kg [06:35:41]ConnectInit Can't take IP for lk.salyk.kg [06:35:41]CommunicateWithHost connect error [06:35:41]CommunicateWithHost err = -1 [06:35:41]OFD Sender: Server communicate error [06:35:46]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:35:46]ProducePacketName [06:35:46]name=ofd_packets/00067002 [06:35:46]OFD Sender: To server: pG, [06:35:46]CommunicateWithHost lk.salyk.kg:30040 [06:35:46]ConnectInit lk.salyk.kg [06:35:51]ConnectInit Can't take IP for lk.salyk.kg [06:35:51]CommunicateWithHost connect error [06:35:51]CommunicateWithHost err = -1 [06:35:51]OFD Sender: Server communicate error [06:35:56]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:35:56]ProducePacketName [06:35:56]name=ofd_packets/00067002 [06:35:56]OFD Sender: To server: pG, [06:35:56]CommunicateWithHost lk.salyk.kg:30040 [06:35:56]ConnectInit lk.salyk.kg [06:36:01]ConnectInit Can't take IP for lk.salyk.kg [06:36:01]CommunicateWithHost connect error [06:36:01]CommunicateWithHost err = -1 [06:36:01]OFD Sender: Server communicate error [06:36:06]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:36:06]ProducePacketName [06:36:06]name=ofd_packets/00067002 [06:36:06]OFD Sender: To server: pG, [06:36:06]CommunicateWithHost lk.salyk.kg:30040 [06:36:06]ConnectInit lk.salyk.kg [06:36:11]ConnectInit Can't take IP for lk.salyk.kg [06:36:11]CommunicateWithHost connect error [06:36:11]CommunicateWithHost err = -1 [06:36:11]OFD Sender: Server communicate error [06:36:16]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:36:16]ProducePacketName [06:36:16]name=ofd_packets/00067002 [06:36:16]OFD Sender: To server: pG, [06:36:16]CommunicateWithHost lk.salyk.kg:30040 [06:36:16]ConnectInit lk.salyk.kg [06:36:21]ConnectInit Can't take IP for lk.salyk.kg [06:36:21]CommunicateWithHost connect error [06:36:21]CommunicateWithHost err = -1 [06:36:21]OFD Sender: Server communicate error [06:36:26]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:36:26]ProducePacketName [06:36:26]name=ofd_packets/00067002 [06:36:26]OFD Sender: To server: pG, [06:36:26]CommunicateWithHost lk.salyk.kg:30040 [06:36:26]ConnectInit lk.salyk.kg [06:36:31]ConnectInit Can't take IP for lk.salyk.kg [06:36:31]CommunicateWithHost connect error [06:36:31]CommunicateWithHost err = -1 [06:36:31]OFD Sender: Server communicate error [06:36:36]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:36:36]ProducePacketName [06:36:36]name=ofd_packets/00067002 [06:36:36]OFD Sender: To server: pG, [06:36:36]CommunicateWithHost lk.salyk.kg:30040 [06:36:36]ConnectInit lk.salyk.kg [06:36:41]ConnectInit Can't take IP for lk.salyk.kg [06:36:41]CommunicateWithHost connect error [06:36:41]CommunicateWithHost err = -1 [06:36:41]OFD Sender: Server communicate error [06:36:46]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:36:46]ProducePacketName [06:36:46]name=ofd_packets/00067002 [06:36:46]OFD Sender: To server: pG, [06:36:46]CommunicateWithHost lk.salyk.kg:30040 [06:36:46]ConnectInit lk.salyk.kg [06:36:51]ConnectInit Can't take IP for lk.salyk.kg [06:36:51]CommunicateWithHost connect error [06:36:51]CommunicateWithHost err = -1 [06:36:51]OFD Sender: Server communicate error [06:36:56]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:36:56]ProducePacketName [06:36:56]name=ofd_packets/00067002 [06:36:56]OFD Sender: To server: pG, [06:36:56]CommunicateWithHost lk.salyk.kg:30040 [06:36:56]ConnectInit lk.salyk.kg [06:37:01]ConnectInit Can't take IP for lk.salyk.kg [06:37:01]CommunicateWithHost connect error [06:37:01]CommunicateWithHost err = -1 [06:37:01]OFD Sender: Server communicate error [06:37:06]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:37:06]ProducePacketName [06:37:06]name=ofd_packets/00067002 [06:37:06]OFD Sender: To server: pG, [06:37:06]CommunicateWithHost lk.salyk.kg:30040 [06:37:06]ConnectInit lk.salyk.kg [06:37:11]ConnectInit Can't take IP for lk.salyk.kg [06:37:11]CommunicateWithHost connect error [06:37:11]CommunicateWithHost err = -1 [06:37:11]OFD Sender: Server communicate error [06:37:16]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:37:16]ProducePacketName [06:37:16]name=ofd_packets/00067002 [06:37:16]OFD Sender: To server: pG, [06:37:16]CommunicateWithHost lk.salyk.kg:30040 [06:37:16]ConnectInit lk.salyk.kg [06:37:21]ConnectInit Can't take IP for lk.salyk.kg [06:37:21]CommunicateWithHost connect error [06:37:21]CommunicateWithHost err = -1 [06:37:21]OFD Sender: Server communicate error [06:37:26]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:37:26]ProducePacketName [06:37:26]name=ofd_packets/00067002 [06:37:26]OFD Sender: To server: pG, [06:37:26]CommunicateWithHost lk.salyk.kg:30040 [06:37:26]ConnectInit lk.salyk.kg [06:37:31]ConnectInit Can't take IP for lk.salyk.kg [06:37:31]CommunicateWithHost connect error [06:37:31]CommunicateWithHost err = -1 [06:37:31]OFD Sender: Server communicate error [06:37:36]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:37:36]ProducePacketName [06:37:36]name=ofd_packets/00067002 [06:37:36]OFD Sender: To server: pG, [06:37:36]CommunicateWithHost lk.salyk.kg:30040 [06:37:36]ConnectInit lk.salyk.kg [06:37:41]ConnectInit Can't take IP for lk.salyk.kg [06:37:41]CommunicateWithHost connect error [06:37:41]CommunicateWithHost err = -1 [06:37:41]OFD Sender: Server communicate error [06:37:46]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:37:46]ProducePacketName [06:37:46]name=ofd_packets/00067002 [06:37:46]OFD Sender: To server: pG, [06:37:46]CommunicateWithHost lk.salyk.kg:30040 [06:37:46]ConnectInit lk.salyk.kg [06:37:51]ConnectInit Can't take IP for lk.salyk.kg [06:37:51]CommunicateWithHost connect error [06:37:51]CommunicateWithHost err = -1 [06:37:51]OFD Sender: Server communicate error [06:37:56]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:37:56]ProducePacketName [06:37:56]name=ofd_packets/00067002 [06:37:56]OFD Sender: To server: pG, [06:37:56]CommunicateWithHost lk.salyk.kg:30040 [06:37:56]ConnectInit lk.salyk.kg [06:38:01]ConnectInit Can't take IP for lk.salyk.kg [06:38:01]CommunicateWithHost connect error [06:38:01]CommunicateWithHost err = -1 [06:38:01]OFD Sender: Server communicate error [06:38:06]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:38:06]ProducePacketName [06:38:06]name=ofd_packets/00067002 [06:38:06]OFD Sender: To server: pG, [06:38:06]CommunicateWithHost lk.salyk.kg:30040 [06:38:06]ConnectInit lk.salyk.kg [06:38:11]ConnectInit Can't take IP for lk.salyk.kg [06:38:11]CommunicateWithHost connect error [06:38:11]CommunicateWithHost err = -1 [06:38:11]OFD Sender: Server communicate error [06:38:16]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:38:16]ProducePacketName [06:38:16]name=ofd_packets/00067002 [06:38:16]OFD Sender: To server: pG, [06:38:16]CommunicateWithHost lk.salyk.kg:30040 [06:38:16]ConnectInit lk.salyk.kg [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:26]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:38:26]ProducePacketName [06:38:26]name=ofd_packets/00067002 [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: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 67002 [packets to send 36, broken 34] [06:38:36]ProducePacketName [06:38:36]name=ofd_packets/00067002 [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: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 67002 [packets to send 36, broken 34] [06:38:46]ProducePacketName [06:38:46]name=ofd_packets/00067002 [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: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 67002 [packets to send 36, broken 34] [06:38:56]ProducePacketName [06:38:56]name=ofd_packets/00067002 [06:38:56]OFD Sender: To server: pG, [06:38:56]CommunicateWithHost lk.salyk.kg:30040 [06:38:56]ConnectInit lk.salyk.kg [06:39:01]ConnectInit Can't take IP for lk.salyk.kg [06:39:01]CommunicateWithHost connect error [06:39:01]CommunicateWithHost err = -1 [06:39:01]OFD Sender: Server communicate error [06:39:06]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:39:06]ProducePacketName [06:39:06]name=ofd_packets/00067002 [06:39:06]OFD Sender: To server: pG, [06:39:06]CommunicateWithHost lk.salyk.kg:30040 [06:39:06]ConnectInit lk.salyk.kg [06:39:11]ConnectInit Can't take IP for lk.salyk.kg [06:39:11]CommunicateWithHost connect error [06:39:11]CommunicateWithHost err = -1 [06:39:11]OFD Sender: Server communicate error [06:39:16]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:39:16]ProducePacketName [06:39:16]name=ofd_packets/00067002 [06:39:16]OFD Sender: To server: pG, [06:39:16]CommunicateWithHost lk.salyk.kg:30040 [06:39:16]ConnectInit lk.salyk.kg [06:39:21]ConnectInit Can't take IP for lk.salyk.kg [06:39:21]CommunicateWithHost connect error [06:39:21]CommunicateWithHost err = -1 [06:39:21]OFD Sender: Server communicate error [06:39:26]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:39:26]ProducePacketName [06:39:26]name=ofd_packets/00067002 [06:39:26]OFD Sender: To server: pG, [06:39:26]CommunicateWithHost lk.salyk.kg:30040 [06:39:26]ConnectInit lk.salyk.kg [06:39:31]ConnectInit Can't take IP for lk.salyk.kg [06:39:31]CommunicateWithHost connect error [06:39:31]CommunicateWithHost err = -1 [06:39:31]OFD Sender: Server communicate error [06:39:36]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:39:36]ProducePacketName [06:39:36]name=ofd_packets/00067002 [06:39:36]OFD Sender: To server: pG, [06:39:36]CommunicateWithHost lk.salyk.kg:30040 [06:39:36]ConnectInit lk.salyk.kg [06:39:41]ConnectInit Can't take IP for lk.salyk.kg [06:39:41]CommunicateWithHost connect error [06:39:41]CommunicateWithHost err = -1 [06:39:41]OFD Sender: Server communicate error [06:39:46]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:39:46]ProducePacketName [06:39:46]name=ofd_packets/00067002 [06:39:46]OFD Sender: To server: pG, [06:39:46]CommunicateWithHost lk.salyk.kg:30040 [06:39:46]ConnectInit lk.salyk.kg [06:39:51]ConnectInit Can't take IP for lk.salyk.kg [06:39:51]CommunicateWithHost connect error [06:39:51]CommunicateWithHost err = -1 [06:39:51]OFD Sender: Server communicate error [06:39:56]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:39:56]ProducePacketName [06:39:56]name=ofd_packets/00067002 [06:39:56]OFD Sender: To server: pG, [06:39:56]CommunicateWithHost lk.salyk.kg:30040 [06:39:56]ConnectInit lk.salyk.kg [06:40:01]ConnectInit Can't take IP for lk.salyk.kg [06:40:01]CommunicateWithHost connect error [06:40:01]CommunicateWithHost err = -1 [06:40:01]OFD Sender: Server communicate error [06:40:06]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:40:06]ProducePacketName [06:40:06]name=ofd_packets/00067002 [06:40:06]OFD Sender: To server: pG, [06:40:06]CommunicateWithHost lk.salyk.kg:30040 [06:40:06]ConnectInit lk.salyk.kg [06:40:11]ConnectInit Can't take IP for lk.salyk.kg [06:40:11]CommunicateWithHost connect error [06:40:11]CommunicateWithHost err = -1 [06:40:11]OFD Sender: Server communicate error [06:40:16]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:40:16]ProducePacketName [06:40:16]name=ofd_packets/00067002 [06:40:16]OFD Sender: To server: pG, [06:40:16]CommunicateWithHost lk.salyk.kg:30040 [06:40:16]ConnectInit lk.salyk.kg [06:40:21]ConnectInit Can't take IP for lk.salyk.kg [06:40:21]CommunicateWithHost connect error [06:40:21]CommunicateWithHost err = -1 [06:40:21]OFD Sender: Server communicate error [06:40:26]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:40:26]ProducePacketName [06:40:26]name=ofd_packets/00067002 [06:40:26]OFD Sender: To server: pG, [06:40:26]CommunicateWithHost lk.salyk.kg:30040 [06:40:26]ConnectInit lk.salyk.kg [06:40:31]ConnectInit Can't take IP for lk.salyk.kg [06:40:31]CommunicateWithHost connect error [06:40:31]CommunicateWithHost err = -1 [06:40:31]OFD Sender: Server communicate error [06:40:36]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:40:36]ProducePacketName [06:40:36]name=ofd_packets/00067002 [06:40:36]OFD Sender: To server: pG, [06:40:36]CommunicateWithHost lk.salyk.kg:30040 [06:40:36]ConnectInit lk.salyk.kg [06:40:41]ConnectInit Can't take IP for lk.salyk.kg [06:40:41]CommunicateWithHost connect error [06:40:41]CommunicateWithHost err = -1 [06:40:41]OFD Sender: Server communicate error [06:40:46]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:40:46]ProducePacketName [06:40:46]name=ofd_packets/00067002 [06:40:46]OFD Sender: To server: pG, [06:40:46]CommunicateWithHost lk.salyk.kg:30040 [06:40:46]ConnectInit lk.salyk.kg [06:40:51]ConnectInit Can't take IP for lk.salyk.kg [06:40:51]CommunicateWithHost connect error [06:40:51]CommunicateWithHost err = -1 [06:40:51]OFD Sender: Server communicate error [06:40:56]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:40:56]ProducePacketName [06:40:56]name=ofd_packets/00067002 [06:40:56]OFD Sender: To server: pG, [06:40:56]CommunicateWithHost lk.salyk.kg:30040 [06:40:56]ConnectInit lk.salyk.kg [06:41:01]ConnectInit Can't take IP for lk.salyk.kg [06:41:01]CommunicateWithHost connect error [06:41:01]CommunicateWithHost err = -1 [06:41:01]OFD Sender: Server communicate error [06:41:06]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:41:06]ProducePacketName [06:41:06]name=ofd_packets/00067002 [06:41:06]OFD Sender: To server: pG, [06:41:06]CommunicateWithHost lk.salyk.kg:30040 [06:41:06]ConnectInit lk.salyk.kg [06:41:11]ConnectInit Can't take IP for lk.salyk.kg [06:41:11]CommunicateWithHost connect error [06:41:11]CommunicateWithHost err = -1 [06:41:11]OFD Sender: Server communicate error [06:41:16]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:41:16]ProducePacketName [06:41:16]name=ofd_packets/00067002 [06:41:16]OFD Sender: To server: pG, [06:41:16]CommunicateWithHost lk.salyk.kg:30040 [06:41:16]ConnectInit lk.salyk.kg [06:41:21]ConnectInit Can't take IP for lk.salyk.kg [06:41:21]CommunicateWithHost connect error [06:41:21]CommunicateWithHost err = -1 [06:41:21]OFD Sender: Server communicate error [06:41:26]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:41:26]ProducePacketName [06:41:26]name=ofd_packets/00067002 [06:41:26]OFD Sender: To server: pG, [06:41:26]CommunicateWithHost lk.salyk.kg:30040 [06:41:26]ConnectInit lk.salyk.kg [06:41:31]ConnectInit Can't take IP for lk.salyk.kg [06:41:31]CommunicateWithHost connect error [06:41:31]CommunicateWithHost err = -1 [06:41:31]OFD Sender: Server communicate error [06:41:36]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:41:36]ProducePacketName [06:41:36]name=ofd_packets/00067002 [06:41:36]OFD Sender: To server: pG, [06:41:36]CommunicateWithHost lk.salyk.kg:30040 [06:41:36]ConnectInit lk.salyk.kg [06:41:41]ConnectInit Can't take IP for lk.salyk.kg [06:41:41]CommunicateWithHost connect error [06:41:41]CommunicateWithHost err = -1 [06:41:41]OFD Sender: Server communicate error [06:41:46]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:41:46]ProducePacketName [06:41:46]name=ofd_packets/00067002 [06:41:46]OFD Sender: To server: pG, [06:41:46]CommunicateWithHost lk.salyk.kg:30040 [06:41:46]ConnectInit lk.salyk.kg [06:41:51]ConnectInit Can't take IP for lk.salyk.kg [06:41:51]CommunicateWithHost connect error [06:41:51]CommunicateWithHost err = -1 [06:41:51]OFD Sender: Server communicate error [06:41:56]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:41:56]ProducePacketName [06:41:56]name=ofd_packets/00067002 [06:41:56]OFD Sender: To server: pG, [06:41:56]CommunicateWithHost lk.salyk.kg:30040 [06:41:56]ConnectInit lk.salyk.kg [06:42:01]ConnectInit Can't take IP for lk.salyk.kg [06:42:01]CommunicateWithHost connect error [06:42:01]CommunicateWithHost err = -1 [06:42:01]OFD Sender: Server communicate error [06:42:06]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:42:06]ProducePacketName [06:42:06]name=ofd_packets/00067002 [06:42:06]OFD Sender: To server: pG, [06:42:06]CommunicateWithHost lk.salyk.kg:30040 [06:42:06]ConnectInit lk.salyk.kg [06:42:11]ConnectInit Can't take IP for lk.salyk.kg [06:42:11]CommunicateWithHost connect error [06:42:11]CommunicateWithHost err = -1 [06:42:11]OFD Sender: Server communicate error [06:42:16]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:42:16]ProducePacketName [06:42:16]name=ofd_packets/00067002 [06:42:16]OFD Sender: To server: pG, [06:42:16]CommunicateWithHost lk.salyk.kg:30040 [06:42:16]ConnectInit lk.salyk.kg [06:42:21]ConnectInit Can't take IP for lk.salyk.kg [06:42:21]CommunicateWithHost connect error [06:42:21]CommunicateWithHost err = -1 [06:42:21]OFD Sender: Server communicate error [06:42:26]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:42:26]ProducePacketName [06:42:26]name=ofd_packets/00067002 [06:42:26]OFD Sender: To server: pG, [06:42:26]CommunicateWithHost lk.salyk.kg:30040 [06:42:26]ConnectInit lk.salyk.kg [06:42:31]ConnectInit Can't take IP for lk.salyk.kg [06:42:31]CommunicateWithHost connect error [06:42:31]CommunicateWithHost err = -1 [06:42:31]OFD Sender: Server communicate error [06:42:36]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:42:36]ProducePacketName [06:42:36]name=ofd_packets/00067002 [06:42:36]OFD Sender: To server: pG, [06:42:36]CommunicateWithHost lk.salyk.kg:30040 [06:42:36]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 67002 [packets to send 36, broken 34] [06:42:46]ProducePacketName [06:42:46]name=ofd_packets/00067002 [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: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 67002 [packets to send 36, broken 34] [06:42:56]ProducePacketName [06:42:56]name=ofd_packets/00067002 [06:42:56]OFD Sender: To server: pG, [06:42:56]CommunicateWithHost lk.salyk.kg:30040 [06:42:56]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 67002 [packets to send 36, broken 34] [06:43:06]ProducePacketName [06:43:06]name=ofd_packets/00067002 [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: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 67002 [packets to send 36, broken 34] [06:43:16]ProducePacketName [06:43:16]name=ofd_packets/00067002 [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: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 67002 [packets to send 36, broken 34] [06:43:26]ProducePacketName [06:43:26]name=ofd_packets/00067002 [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:31]ConnectInit Can't take IP for lk.salyk.kg [06:43:31]CommunicateWithHost connect error [06:43:31]CommunicateWithHost err = -1 [06:43:31]OFD Sender: Server communicate error [06:43:36]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:43:36]ProducePacketName [06:43:36]name=ofd_packets/00067002 [06:43:36]OFD Sender: To server: pG, [06:43:36]CommunicateWithHost lk.salyk.kg:30040 [06:43:36]ConnectInit lk.salyk.kg [06:43:41]ConnectInit Can't take IP for lk.salyk.kg [06:43:41]CommunicateWithHost connect error [06:43:41]CommunicateWithHost err = -1 [06:43:41]OFD Sender: Server communicate error [06:43:46]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:43:46]ProducePacketName [06:43:46]name=ofd_packets/00067002 [06:43:46]OFD Sender: To server: pG, [06:43:46]CommunicateWithHost lk.salyk.kg:30040 [06:43:46]ConnectInit lk.salyk.kg [06:43:51]ConnectInit Can't take IP for lk.salyk.kg [06:43:51]CommunicateWithHost connect error [06:43:51]CommunicateWithHost err = -1 [06:43:51]OFD Sender: Server communicate error [06:43:56]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:43:56]ProducePacketName [06:43:56]name=ofd_packets/00067002 [06:43:56]OFD Sender: To server: pG, [06:43:56]CommunicateWithHost lk.salyk.kg:30040 [06:43:56]ConnectInit lk.salyk.kg [06:44:01]ConnectInit Can't take IP for lk.salyk.kg [06:44:01]CommunicateWithHost connect error [06:44:01]CommunicateWithHost err = -1 [06:44:01]OFD Sender: Server communicate error [06:44:06]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:44:06]ProducePacketName [06:44:06]name=ofd_packets/00067002 [06:44:06]OFD Sender: To server: pG, [06:44:06]CommunicateWithHost lk.salyk.kg:30040 [06:44:06]ConnectInit lk.salyk.kg [06:44:11]ConnectInit Can't take IP for lk.salyk.kg [06:44:11]CommunicateWithHost connect error [06:44:11]CommunicateWithHost err = -1 [06:44:11]OFD Sender: Server communicate error [06:44:16]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:44:16]ProducePacketName [06:44:16]name=ofd_packets/00067002 [06:44:16]OFD Sender: To server: pG, [06:44:16]CommunicateWithHost lk.salyk.kg:30040 [06:44:16]ConnectInit lk.salyk.kg [06:44:21]ConnectInit Can't take IP for lk.salyk.kg [06:44:21]CommunicateWithHost connect error [06:44:21]CommunicateWithHost err = -1 [06:44:21]OFD Sender: Server communicate error [06:44:26]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:44:26]ProducePacketName [06:44:26]name=ofd_packets/00067002 [06:44:26]OFD Sender: To server: pG, [06:44:26]CommunicateWithHost lk.salyk.kg:30040 [06:44:26]ConnectInit lk.salyk.kg [06:44:31]ConnectInit Can't take IP for lk.salyk.kg [06:44:31]CommunicateWithHost connect error [06:44:31]CommunicateWithHost err = -1 [06:44:31]OFD Sender: Server communicate error [06:44:36]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:44:36]ProducePacketName [06:44:36]name=ofd_packets/00067002 [06:44:36]OFD Sender: To server: pG, [06:44:36]CommunicateWithHost lk.salyk.kg:30040 [06:44:36]ConnectInit lk.salyk.kg [06:44:41]ConnectInit Can't take IP for lk.salyk.kg [06:44:41]CommunicateWithHost connect error [06:44:41]CommunicateWithHost err = -1 [06:44:41]OFD Sender: Server communicate error [06:44:46]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:44:46]ProducePacketName [06:44:46]name=ofd_packets/00067002 [06:44:46]OFD Sender: To server: pG, [06:44:46]CommunicateWithHost lk.salyk.kg:30040 [06:44:46]ConnectInit lk.salyk.kg [06:44:51]ConnectInit Can't take IP for lk.salyk.kg [06:44:51]CommunicateWithHost connect error [06:44:51]CommunicateWithHost err = -1 [06:44:51]OFD Sender: Server communicate error [06:44:56]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:44:56]ProducePacketName [06:44:56]name=ofd_packets/00067002 [06:44:56]OFD Sender: To server: pG, [06:44:56]CommunicateWithHost lk.salyk.kg:30040 [06:44:56]ConnectInit lk.salyk.kg [06:45:01]ConnectInit Can't take IP for lk.salyk.kg [06:45:01]CommunicateWithHost connect error [06:45:01]CommunicateWithHost err = -1 [06:45:01]OFD Sender: Server communicate error [06:45:06]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:45:06]ProducePacketName [06:45:06]name=ofd_packets/00067002 [06:45:06]OFD Sender: To server: pG, [06:45:06]CommunicateWithHost lk.salyk.kg:30040 [06:45:06]ConnectInit lk.salyk.kg [06:45:11]ConnectInit Can't take IP for lk.salyk.kg [06:45:11]CommunicateWithHost connect error [06:45:11]CommunicateWithHost err = -1 [06:45:11]OFD Sender: Server communicate error [06:45:16]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:45:16]ProducePacketName [06:45:16]name=ofd_packets/00067002 [06:45:16]OFD Sender: To server: pG, [06:45:16]CommunicateWithHost lk.salyk.kg:30040 [06:45:16]ConnectInit lk.salyk.kg [06:45:21]ConnectInit Can't take IP for lk.salyk.kg [06:45:21]CommunicateWithHost connect error [06:45:21]CommunicateWithHost err = -1 [06:45:21]OFD Sender: Server communicate error [06:45:26]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:45:26]ProducePacketName [06:45:26]name=ofd_packets/00067002 [06:45:26]OFD Sender: To server: pG, [06:45:26]CommunicateWithHost lk.salyk.kg:30040 [06:45:26]ConnectInit lk.salyk.kg [06:45:31]ConnectInit Can't take IP for lk.salyk.kg [06:45:31]CommunicateWithHost connect error [06:45:31]CommunicateWithHost err = -1 [06:45:31]OFD Sender: Server communicate error [06:45:36]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:45:36]ProducePacketName [06:45:36]name=ofd_packets/00067002 [06:45:36]OFD Sender: To server: pG, [06:45:36]CommunicateWithHost lk.salyk.kg:30040 [06:45:36]ConnectInit lk.salyk.kg [06:45:41]ConnectInit Can't take IP for lk.salyk.kg [06:45:41]CommunicateWithHost connect error [06:45:41]CommunicateWithHost err = -1 [06:45:41]OFD Sender: Server communicate error [06:45:46]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:45:46]ProducePacketName [06:45:46]name=ofd_packets/00067002 [06:45:46]OFD Sender: To server: pG, [06:45:46]CommunicateWithHost lk.salyk.kg:30040 [06:45:46]ConnectInit lk.salyk.kg [06:45:51]ConnectInit Can't take IP for lk.salyk.kg [06:45:51]CommunicateWithHost connect error [06:45:51]CommunicateWithHost err = -1 [06:45:51]OFD Sender: Server communicate error [06:45:56]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:45:56]ProducePacketName [06:45:56]name=ofd_packets/00067002 [06:45:56]OFD Sender: To server: pG, [06:45:56]CommunicateWithHost lk.salyk.kg:30040 [06:45:56]ConnectInit lk.salyk.kg [06:46:01]ConnectInit Can't take IP for lk.salyk.kg [06:46:01]CommunicateWithHost connect error [06:46:01]CommunicateWithHost err = -1 [06:46:01]OFD Sender: Server communicate error [06:46:06]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:46:06]ProducePacketName [06:46:06]name=ofd_packets/00067002 [06:46:06]OFD Sender: To server: pG, [06:46:06]CommunicateWithHost lk.salyk.kg:30040 [06:46:06]ConnectInit lk.salyk.kg [06:46:11]ConnectInit Can't take IP for lk.salyk.kg [06:46:11]CommunicateWithHost connect error [06:46:11]CommunicateWithHost err = -1 [06:46:11]OFD Sender: Server communicate error [06:46:16]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:46:16]ProducePacketName [06:46:16]name=ofd_packets/00067002 [06:46:16]OFD Sender: To server: pG, [06:46:16]CommunicateWithHost lk.salyk.kg:30040 [06:46:16]ConnectInit lk.salyk.kg [06:46:21]ConnectInit Can't take IP for lk.salyk.kg [06:46:21]CommunicateWithHost connect error [06:46:21]CommunicateWithHost err = -1 [06:46:21]OFD Sender: Server communicate error [06:46:26]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:46:26]ProducePacketName [06:46:26]name=ofd_packets/00067002 [06:46:26]OFD Sender: To server: pG, [06:46:26]CommunicateWithHost lk.salyk.kg:30040 [06:46:26]ConnectInit lk.salyk.kg [06:46:31]ConnectInit Can't take IP for lk.salyk.kg [06:46:31]CommunicateWithHost connect error [06:46:31]CommunicateWithHost err = -1 [06:46:31]OFD Sender: Server communicate error [06:46:36]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:46:36]ProducePacketName [06:46:36]name=ofd_packets/00067002 [06:46:36]OFD Sender: To server: pG, [06:46:36]CommunicateWithHost lk.salyk.kg:30040 [06:46:36]ConnectInit lk.salyk.kg [06:46:41]ConnectInit Can't take IP for lk.salyk.kg [06:46:41]CommunicateWithHost connect error [06:46:41]CommunicateWithHost err = -1 [06:46:41]OFD Sender: Server communicate error [06:46:46]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:46:46]ProducePacketName [06:46:46]name=ofd_packets/00067002 [06:46:46]OFD Sender: To server: pG, [06:46:46]CommunicateWithHost lk.salyk.kg:30040 [06:46:46]ConnectInit lk.salyk.kg [06:46:51]ConnectInit Can't take IP for lk.salyk.kg [06:46:51]CommunicateWithHost connect error [06:46:51]CommunicateWithHost err = -1 [06:46:51]OFD Sender: Server communicate error [06:46:56]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:46:56]ProducePacketName [06:46:56]name=ofd_packets/00067002 [06:46:56]OFD Sender: To server: pG, [06:46:56]CommunicateWithHost lk.salyk.kg:30040 [06:46:56]ConnectInit lk.salyk.kg [06:47:01]ConnectInit Can't take IP for lk.salyk.kg [06:47:01]CommunicateWithHost connect error [06:47:01]CommunicateWithHost err = -1 [06:47:01]OFD Sender: Server communicate error [06:47:06]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:47:06]ProducePacketName [06:47:06]name=ofd_packets/00067002 [06:47:06]OFD Sender: To server: pG, [06:47:06]CommunicateWithHost lk.salyk.kg:30040 [06:47:06]ConnectInit lk.salyk.kg [06:47:11]ConnectInit Can't take IP for lk.salyk.kg [06:47:11]CommunicateWithHost connect error [06:47:11]CommunicateWithHost err = -1 [06:47:11]OFD Sender: Server communicate error [06:47:16]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:47:16]ProducePacketName [06:47:16]name=ofd_packets/00067002 [06:47:16]OFD Sender: To server: pG, [06:47:16]CommunicateWithHost lk.salyk.kg:30040 [06:47:16]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:26]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:47:26]ProducePacketName [06:47:26]name=ofd_packets/00067002 [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: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 67002 [packets to send 36, broken 34] [06:47:36]ProducePacketName [06:47:36]name=ofd_packets/00067002 [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: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 67002 [packets to send 36, broken 34] [06:47:46]ProducePacketName [06:47:46]name=ofd_packets/00067002 [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: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 67002 [packets to send 36, broken 34] [06:47:56]ProducePacketName [06:47:56]name=ofd_packets/00067002 [06:47:56]OFD Sender: To server: pG, [06:47:56]CommunicateWithHost lk.salyk.kg:30040 [06:47:56]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 67002 [packets to send 36, broken 34] [06:48:06]ProducePacketName [06:48:06]name=ofd_packets/00067002 [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:11]ConnectInit Can't take IP for lk.salyk.kg [06:48:11]CommunicateWithHost connect error [06:48:11]CommunicateWithHost err = -1 [06:48:11]OFD Sender: Server communicate error [06:48:16]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:48:16]ProducePacketName [06:48:16]name=ofd_packets/00067002 [06:48:16]OFD Sender: To server: pG, [06:48:16]CommunicateWithHost lk.salyk.kg:30040 [06:48:16]ConnectInit lk.salyk.kg [06:48:21]ConnectInit Can't take IP for lk.salyk.kg [06:48:21]CommunicateWithHost connect error [06:48:21]CommunicateWithHost err = -1 [06:48:21]OFD Sender: Server communicate error [06:48:26]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:48:26]ProducePacketName [06:48:26]name=ofd_packets/00067002 [06:48:26]OFD Sender: To server: pG, [06:48:26]CommunicateWithHost lk.salyk.kg:30040 [06:48:26]ConnectInit lk.salyk.kg [06:48:31]ConnectInit Can't take IP for lk.salyk.kg [06:48:31]CommunicateWithHost connect error [06:48:31]CommunicateWithHost err = -1 [06:48:31]OFD Sender: Server communicate error [06:48:36]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:48:36]ProducePacketName [06:48:36]name=ofd_packets/00067002 [06:48:36]OFD Sender: To server: pG, [06:48:36]CommunicateWithHost lk.salyk.kg:30040 [06:48:36]ConnectInit lk.salyk.kg [06:48:41]ConnectInit Can't take IP for lk.salyk.kg [06:48:41]CommunicateWithHost connect error [06:48:41]CommunicateWithHost err = -1 [06:48:41]OFD Sender: Server communicate error [06:48:46]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:48:46]ProducePacketName [06:48:46]name=ofd_packets/00067002 [06:48:46]OFD Sender: To server: pG, [06:48:46]CommunicateWithHost lk.salyk.kg:30040 [06:48:46]ConnectInit lk.salyk.kg [06:48:51]ConnectInit Can't take IP for lk.salyk.kg [06:48:51]CommunicateWithHost connect error [06:48:51]CommunicateWithHost err = -1 [06:48:51]OFD Sender: Server communicate error [06:48:56]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:48:56]ProducePacketName [06:48:56]name=ofd_packets/00067002 [06:48:56]OFD Sender: To server: pG, [06:48:56]CommunicateWithHost lk.salyk.kg:30040 [06:48:56]ConnectInit lk.salyk.kg [06:49:01]ConnectInit Can't take IP for lk.salyk.kg [06:49:01]CommunicateWithHost connect error [06:49:01]CommunicateWithHost err = -1 [06:49:01]OFD Sender: Server communicate error [06:49:06]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:49:06]ProducePacketName [06:49:06]name=ofd_packets/00067002 [06:49:06]OFD Sender: To server: pG, [06:49:06]CommunicateWithHost lk.salyk.kg:30040 [06:49:06]ConnectInit lk.salyk.kg [06:49:11]ConnectInit Can't take IP for lk.salyk.kg [06:49:11]CommunicateWithHost connect error [06:49:11]CommunicateWithHost err = -1 [06:49:11]OFD Sender: Server communicate error [06:49:16]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:49:16]ProducePacketName [06:49:16]name=ofd_packets/00067002 [06:49:16]OFD Sender: To server: pG, [06:49:16]CommunicateWithHost lk.salyk.kg:30040 [06:49:16]ConnectInit lk.salyk.kg [06:49:21]ConnectInit Can't take IP for lk.salyk.kg [06:49:21]CommunicateWithHost connect error [06:49:21]CommunicateWithHost err = -1 [06:49:21]OFD Sender: Server communicate error [06:49:26]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:49:26]ProducePacketName [06:49:26]name=ofd_packets/00067002 [06:49:26]OFD Sender: To server: pG, [06:49:26]CommunicateWithHost lk.salyk.kg:30040 [06:49:26]ConnectInit lk.salyk.kg [06:49:31]ConnectInit Can't take IP for lk.salyk.kg [06:49:31]CommunicateWithHost connect error [06:49:31]CommunicateWithHost err = -1 [06:49:31]OFD Sender: Server communicate error [06:49:36]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:49:36]ProducePacketName [06:49:36]name=ofd_packets/00067002 [06:49:36]OFD Sender: To server: pG, [06:49:36]CommunicateWithHost lk.salyk.kg:30040 [06:49:36]ConnectInit lk.salyk.kg [06:49:41]ConnectInit Can't take IP for lk.salyk.kg [06:49:41]CommunicateWithHost connect error [06:49:41]CommunicateWithHost err = -1 [06:49:41]OFD Sender: Server communicate error [06:49:46]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:49:46]ProducePacketName [06:49:46]name=ofd_packets/00067002 [06:49:46]OFD Sender: To server: pG, [06:49:46]CommunicateWithHost lk.salyk.kg:30040 [06:49:46]ConnectInit lk.salyk.kg [06:49:51]ConnectInit Can't take IP for lk.salyk.kg [06:49:51]CommunicateWithHost connect error [06:49:51]CommunicateWithHost err = -1 [06:49:51]OFD Sender: Server communicate error [06:49:56]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:49:56]ProducePacketName [06:49:56]name=ofd_packets/00067002 [06:49:56]OFD Sender: To server: pG, [06:49:56]CommunicateWithHost lk.salyk.kg:30040 [06:49:56]ConnectInit lk.salyk.kg [06:50:01]ConnectInit Can't take IP for lk.salyk.kg [06:50:01]CommunicateWithHost connect error [06:50:01]CommunicateWithHost err = -1 [06:50:01]OFD Sender: Server communicate error [06:50:06]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:50:06]ProducePacketName [06:50:06]name=ofd_packets/00067002 [06:50:06]OFD Sender: To server: pG, [06:50:06]CommunicateWithHost lk.salyk.kg:30040 [06:50:06]ConnectInit lk.salyk.kg [06:50:11]ConnectInit Can't take IP for lk.salyk.kg [06:50:11]CommunicateWithHost connect error [06:50:11]CommunicateWithHost err = -1 [06:50:11]OFD Sender: Server communicate error [06:50:16]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:50:16]ProducePacketName [06:50:16]name=ofd_packets/00067002 [06:50:16]OFD Sender: To server: pG, [06:50:16]CommunicateWithHost lk.salyk.kg:30040 [06:50:16]ConnectInit lk.salyk.kg [06:50:21]ConnectInit Can't take IP for lk.salyk.kg [06:50:21]CommunicateWithHost connect error [06:50:21]CommunicateWithHost err = -1 [06:50:21]OFD Sender: Server communicate error [06:50:26]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:50:26]ProducePacketName [06:50:26]name=ofd_packets/00067002 [06:50:26]OFD Sender: To server: pG, [06:50:26]CommunicateWithHost lk.salyk.kg:30040 [06:50:26]ConnectInit lk.salyk.kg [06:50:32]ConnectInit Can't take IP for lk.salyk.kg [06:50:32]CommunicateWithHost connect error [06:50:32]CommunicateWithHost err = -1 [06:50:32]OFD Sender: Server communicate error [06:50:37]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:50:37]ProducePacketName [06:50:37]name=ofd_packets/00067002 [06:50:37]OFD Sender: To server: pG, [06:50:37]CommunicateWithHost lk.salyk.kg:30040 [06:50:37]ConnectInit lk.salyk.kg [06:50:42]ConnectInit Can't take IP for lk.salyk.kg [06:50:42]CommunicateWithHost connect error [06:50:42]CommunicateWithHost err = -1 [06:50:42]OFD Sender: Server communicate error [06:50:47]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:50:47]ProducePacketName [06:50:47]name=ofd_packets/00067002 [06:50:47]OFD Sender: To server: pG, [06:50:47]CommunicateWithHost lk.salyk.kg:30040 [06:50:47]ConnectInit lk.salyk.kg [06:50:52]ConnectInit Can't take IP for lk.salyk.kg [06:50:52]CommunicateWithHost connect error [06:50:52]CommunicateWithHost err = -1 [06:50:52]OFD Sender: Server communicate error [06:50:57]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:50:57]ProducePacketName [06:50:57]name=ofd_packets/00067002 [06:50:57]OFD Sender: To server: pG, [06:50:57]CommunicateWithHost lk.salyk.kg:30040 [06:50:57]ConnectInit lk.salyk.kg [06:51:02]ConnectInit Can't take IP for lk.salyk.kg [06:51:02]CommunicateWithHost connect error [06:51:02]CommunicateWithHost err = -1 [06:51:02]OFD Sender: Server communicate error [06:51:07]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:51:07]ProducePacketName [06:51:07]name=ofd_packets/00067002 [06:51:07]OFD Sender: To server: pG, [06:51:07]CommunicateWithHost lk.salyk.kg:30040 [06:51:07]ConnectInit lk.salyk.kg [06:51:12]ConnectInit Can't take IP for lk.salyk.kg [06:51:12]CommunicateWithHost connect error [06:51:12]CommunicateWithHost err = -1 [06:51:12]OFD Sender: Server communicate error [06:51:17]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:51:17]ProducePacketName [06:51:17]name=ofd_packets/00067002 [06:51:17]OFD Sender: To server: pG, [06:51:17]CommunicateWithHost lk.salyk.kg:30040 [06:51:17]ConnectInit lk.salyk.kg [06:51:22]ConnectInit Can't take IP for lk.salyk.kg [06:51:22]CommunicateWithHost connect error [06:51:22]CommunicateWithHost err = -1 [06:51:22]OFD Sender: Server communicate error [06:51:27]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:51:27]ProducePacketName [06:51:27]name=ofd_packets/00067002 [06:51:27]OFD Sender: To server: pG, [06:51:27]CommunicateWithHost lk.salyk.kg:30040 [06:51:27]ConnectInit lk.salyk.kg [06:51:32]ConnectInit Can't take IP for lk.salyk.kg [06:51:32]CommunicateWithHost connect error [06:51:32]CommunicateWithHost err = -1 [06:51:32]OFD Sender: Server communicate error [06:51:37]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:51:37]ProducePacketName [06:51:37]name=ofd_packets/00067002 [06:51:37]OFD Sender: To server: pG, [06:51:37]CommunicateWithHost lk.salyk.kg:30040 [06:51:37]ConnectInit lk.salyk.kg [06:51:42]ConnectInit Can't take IP for lk.salyk.kg [06:51:42]CommunicateWithHost connect error [06:51:42]CommunicateWithHost err = -1 [06:51:42]OFD Sender: Server communicate error [06:51:47]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:51:47]ProducePacketName [06:51:47]name=ofd_packets/00067002 [06:51:47]OFD Sender: To server: pG, [06:51:47]CommunicateWithHost lk.salyk.kg:30040 [06:51:47]ConnectInit lk.salyk.kg [06:51:52]ConnectInit Can't take IP for lk.salyk.kg [06:51:52]CommunicateWithHost connect error [06:51:52]CommunicateWithHost err = -1 [06:51:52]OFD Sender: Server communicate error [06:51:57]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:51:57]ProducePacketName [06:51:57]name=ofd_packets/00067002 [06:51:57]OFD Sender: To server: pG, [06:51:57]CommunicateWithHost lk.salyk.kg:30040 [06:51:57]ConnectInit lk.salyk.kg [06:52:02]ConnectInit Can't take IP for lk.salyk.kg [06:52:02]CommunicateWithHost connect error [06:52:02]CommunicateWithHost err = -1 [06:52:02]OFD Sender: Server communicate error [06:52:07]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:52:07]ProducePacketName [06:52:07]name=ofd_packets/00067002 [06:52:07]OFD Sender: To server: pG, [06:52:07]CommunicateWithHost lk.salyk.kg:30040 [06:52:07]ConnectInit lk.salyk.kg [06:52:12]ConnectInit Can't take IP for lk.salyk.kg [06:52:12]CommunicateWithHost connect error [06:52:12]CommunicateWithHost err = -1 [06:52:12]OFD Sender: Server communicate error [06:52:17]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:52:17]ProducePacketName [06:52:17]name=ofd_packets/00067002 [06:52:17]OFD Sender: To server: pG, [06:52:17]CommunicateWithHost lk.salyk.kg:30040 [06:52:17]ConnectInit lk.salyk.kg [06:52:22]ConnectInit Can't take IP for lk.salyk.kg [06:52:22]CommunicateWithHost connect error [06:52:22]CommunicateWithHost err = -1 [06:52:22]OFD Sender: Server communicate error [06:52:27]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:52:27]ProducePacketName [06:52:27]name=ofd_packets/00067002 [06:52:27]OFD Sender: To server: pG, [06:52:27]CommunicateWithHost lk.salyk.kg:30040 [06:52:27]ConnectInit lk.salyk.kg [06:52:32]ConnectInit Can't take IP for lk.salyk.kg [06:52:32]CommunicateWithHost connect error [06:52:32]CommunicateWithHost err = -1 [06:52:32]OFD Sender: Server communicate error [06:52:37]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:52:37]ProducePacketName [06:52:37]name=ofd_packets/00067002 [06:52:37]OFD Sender: To server: pG, [06:52:37]CommunicateWithHost lk.salyk.kg:30040 [06:52:37]ConnectInit lk.salyk.kg [06:52:42]ConnectInit Can't take IP for lk.salyk.kg [06:52:42]CommunicateWithHost connect error [06:52:42]CommunicateWithHost err = -1 [06:52:42]OFD Sender: Server communicate error [06:52:47]OFD Sender: Processing packet 67002 [packets to send 36, broken 34] [06:52:47]ProducePacketName [06:52:47]name=ofd_packets/00067002 [06:52:47]OFD Sender: To server: pG, [06:52:47]CommunicateWithHost lk.salyk.kg:30040 [06:52:47]ConnectInit lk.salyk.kg [06:52:50]accept exits with 10 [06:52:50]New connection [06:52:50]New thread 3066617188 created [06:52:50]Thread 3066760548 joined [06:52:50]Waiting for new connection... [06:52:50] Sock 10.Parse request [06:52:50]Sock 10.Check first char [06:52:50]Sock 10.First char is OK [06:52:50]request: POST /json_proto HTTP/1.0 [06:52:50]Method: POST [06:52:50]URL: /json_proto [06:52:50]Method is POST - this is cgi request [06:52:50]url: /json_proto [06:52:50]query_string will be loaded in cgi processing [06:52:50]execute_cgi json_proto POST (null) [06:52:50]execute_cgi path=json_proto method=POST [06:52:50]POST find Content-Length [06:52:50]Host: 172.17.41.195:8080 [06:52:50]Content-Length: 682 [06:52:50]Content-Type: application/json [06:52:50] [06:52:50]POST finish read [06:52:50]Found Content-Length = 682 [06:52:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506817", "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" ] } } [06:52:50]execute_script... [06:52: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)506817", "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" ] } } [06:52:50]POST & json_proto [06:52:50]process_json_proto [06:52:50]json parsed OK: [06:52:50]protocol is kg_v1.0 [06:52:50]action value=close_receipt [06:52:50]process_action close_receipt [06:52:50]cmd_close_receipt [06:52:50]MH_GetDate [06:52:50]Write to MH i2c: F0 00 00 E7 0F E5 [06:52:50]Write i2c OK [06:52:50]MH_I2C_Read... [06:52:50]Read from MH i2c: F0 [06:52:50]MH_I2C_Read... [06:52:50]Read from MH i2c: F0 09 00 [06:52:50]MH_I2C_Read... [06:52:50]Read from MH i2c: F0 09 00 E7 0F 00 45 0A 43 66 FC 21 6F 64 D6 [06:52:50]GetLastDocTimeStamp 1715667825 [06:52:50]current date 1715669573 [06:52:50]FM_GetShiftState [06:52:50]SAM_PROTO_GetShiftState [06:52:50]wFMCommunicate request_size=4 [06:52:50]MH_SAM_APDU [06:52:50]CAPDU: 80 13 01 00 [06:52:50]Write to MH i2c: E2 08 00 E8 0F 80 13 01 00 00 00 00 00 74 [06:52:50]Write i2c OK [06:52:50]MH_I2C_Read... [06:52:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:50]Read from MH i2c: E2 [06:52:50]MH_I2C_Read... [06:52:50]Read from MH i2c: E2 0E 00 [06:52:50]MH_I2C_Read... [06:52:50]Read from MH i2c: E2 0E 00 E8 0F 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 3C [06:52:50]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [06:52:50]wFMCommunicate OK [06:52:50]SAM_PROTO_GetShiftState done [06:52:50]FM_GetShiftState done [06:52:50]opened in 1715646054 [06:52:50]opened+sec_in_day 1715732454 [06:52:50]quantity*price = 100066 [06:52:50]sum+1 = 100067 [06:52:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 11 14.05.2024 06:52 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67004 ФПД: 79707571455178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T065253&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67004&fm=79707571455178&tin=02508201610067®Number=0000000000091845&sum=100000 [06:52:51]StoreToDocumentArchive [06:52:51]shift 355 fd 67004 [06:52:51]save to /storage/0355/doc_00067004 [06:52:51]save last doc name /storage/0355/doc_00067004 to /storage/kkm_last_doc_name [06:52:51]save OK [06:52:51]Clear old archive folders... [06:52:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:52:51]tlvbuf is 0038D920 [06:52:51]SAM_PROTO_ClearQueue [06:52:51]wFMCommunicate request_size=4 [06:52:51]MH_SAM_APDU [06:52:51]CAPDU: 80 09 00 00 [06:52:51]Write to MH i2c: E2 08 00 F5 0F 80 09 00 00 00 00 00 00 76 [06:52:51]Write i2c OK [06:52:51]MH_I2C_Read... [06:52:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:52:51]Read from MH i2c: E2 [06:52:51]MH_I2C_Read... [06:52:51]Read from MH i2c: E2 03 00 [06:52:51]MH_I2C_Read... [06:52:51]Read from MH i2c: E2 03 00 F5 0F 00 90 00 78 [06:52:51]RAPDU: 90 00 [06:52:51]wFMCommunicate OK [06:52:51]SAM_PROTO_ClearQueue done [06:52:51]KKMCreateOFDPacket [06:52:51]OFDProtocolAddRootSTLVToBuf [06:52:51]FM_MakeSignedData [06:52:51]FM_MakeSignedData [06:52:51]SAM_PROTO_SignData [06:52:51]wFMCommunicate request_size=4 [06:52:51]MH_SAM_APDU [06:52:51]CAPDU: 80 0D 01 02 [06:52:51]Write to MH i2c: E2 08 00 F6 0F 80 0D 01 02 00 00 00 00 7E [06:52:51]Write i2c OK [06:52:51]MH_I2C_Read... [06:52:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:52:51]Read from MH i2c: E2 [06:52:51]MH_I2C_Read... [06:52:51]Read from MH i2c: E2 03 00 [06:52:51]MH_I2C_Read... [06:52:51]Read from MH i2c: E2 03 00 F6 0F 00 90 00 79 [06:52:51]RAPDU: 90 00 [06:52:51]wFMCommunicate OK [06:52:51]wFMCommunicate request_size=255 [06:52:51]MH_SAM_APDU [06:52: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 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 45 0A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BC 05 01 00 35 04 06 00 48 [06:52:51]Write to MH i2c: E2 02 01 F7 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 45 0A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BC 05 01 00 35 04 06 00 48 00 00 C8 [06:52:51]Write i2c OK [06:52:51]MH_I2C_Read... [06:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:51]Read from MH i2c: E2 [06:52:51]MH_I2C_Read... [06:52:51]Read from MH i2c: E2 03 00 [06:52:51]MH_I2C_Read... [06:52:51]Read from MH i2c: E2 03 00 F7 0F 00 90 00 7A [06:52:51]RAPDU: 90 00 [06:52:51]wFMCommunicate OK [06:52:51]wFMCommunicate request_size=10 [06:52:51]MH_SAM_APDU [06:52:51]CAPDU: 80 0D 02 02 05 7E 5D 7B 84 CA [06:52:51]Write to MH i2c: E2 0D 00 F8 0F 80 0D 02 02 05 00 7E 5D 7B 84 CA 00 00 2F [06:52:51]Write i2c OK [06:52:51]MH_I2C_Read... [06:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:51]Read from MH i2c: E2 [06:52:51]MH_I2C_Read... [06:52:51]Read from MH i2c: E2 03 00 [06:52:51]MH_I2C_Read... [06:52:51]Read from MH i2c: E2 03 00 F8 0F 00 90 00 7B [06:52:51]RAPDU: 90 00 [06:52:51]wFMCommunicate OK [06:52:51]wFMCommunicate request_size=4 [06:52:51]MH_SAM_APDU [06:52:51]CAPDU: 80 0D 03 02 [06:52:51]Write to MH i2c: E2 08 00 F9 0F 80 0D 03 02 00 00 00 00 83 [06:52:51]Write i2c OK [06:52:51]MH_I2C_Read... [06:52:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:52:51]Read from MH i2c: E2 [06:52:51]MH_I2C_Read... [06:52:51]Read from MH i2c: E2 0B 00 [06:52:51]MH_I2C_Read... [06:52:51]Read from MH i2c: E2 0B 00 F9 0F 00 CC B9 85 E3 2E 02 70 00 90 00 11 [06:52:51]RAPDU: CC B9 85 E3 2E 02 70 00 90 00 [06:52:51]wFMCommunicate OK [06:52:51]SAM_PROTO_SignData done [06:52:51]FM_MakeSignedData done [06:52:51]CreateOFDProtocolMessage [06:52:51]wFMCommunicate request_size=4 [06:52:51]MH_SAM_APDU [06:52:51]CAPDU: 80 11 00 00 [06:52:51]Write to MH i2c: E2 08 00 FA 0F 80 11 00 00 00 00 00 00 83 [06:52:51]Write i2c OK [06:52:51]MH_I2C_Read... [06:52:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:52]Read from MH i2c: E2 [06:52:52]MH_I2C_Read... [06:52:52]Read from MH i2c: E2 17 00 [06:52:52]MH_I2C_Read... [06:52:52]Read from MH i2c: E2 17 00 FA 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D9 [06:52:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:52:52]wFMCommunicate OK [06:52:52]CreateOFDProtocolMessage done [06:52:52]OFDSenderStorePacket 67004 [06:52:52]StoreOFDPacket docnum=67004 [06:52: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 2C 6C 07 01 8C BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 45 0A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BC 05 01 00 35 04 06 00 48 7E 5D 7B 84 CA CC B9 85 E3 2E 02 70 00 [06:52:52]CheckFolder [06:52:52]dirname=/storage/ofd_packets [06:52:52]CheckFolder done [06:52:52]ProducePacketName [06:52:52]name=ofd_packets/00067004 [06:52:52]NVStorageSaveData ofd_packets/00067004 [06:52:52]File name is /storage/ofd_packets/00067004 [06:52:52]Write 301 bytes [06:52:52]NVStorageSaveData done [06:52:52]OFDSenderStorePacket done [06:52:52]KKMCreateOFDPacket done [06:52:52]NVStorageSaveData kkm_last_timestamp [06:52:52]File name is /storage/kkm_last_timestamp [06:52:52]Write 4 bytes [06:52:52]NVStorageSaveData done [06:52:52]ExternCall_PrintAddStr [06:52:52]wPrintStart [06:52:52]Write to MH i2c: 01 00 00 FB 0F 0A [06:52:52]Write i2c OK [06:52:52]MH_I2C_Read... [06:52:52]Read from MH i2c: 01 [06:52:52]MH_I2C_Read... [06:52:52]Read from MH i2c: 01 07 00 [06:52:52]MH_I2C_Read... [06:52:52]Read from MH i2c: 01 07 00 FB 0F 00 00 00 00 00 FF 0F 1F [06:52:52]RasterBufferAndPrint [06:52:52]line Счет N : (1)506817 [06:52:52]line ИНН: 02508201610067 [06:52:52]line Контрольно-Кассовый Чек [06:52:52]line ПРОДАЖА [06:52:52]line ТРК (МРК, ГНК) : 33 [06:52:52]line Товар: 2710124130 [06:52:52]line Аи-92-К-5 [06:52:52]line 14.980 * 66.80 [06:52:52]line = 1000.66 [06:52:52]line НДС 12% НСП 1% [06:52:52]line > о реализуемом товаре [06:52:52]line ОКРУГЛЕНИЕ: -0.66 [06:52:52]line ИТОГО: 1000.00 [06:52:52]line Внесено: 1000.00 [06:52:52]line СДАЧА: 0.00 [06:52:52]line НСП 1% : 8.85 [06:52:52]line НДС 12% : 106.26 [06:52:52]line Наличными: 1000.00 [06:52:52]line Безнал.: 0.00 [06:52:52]line Место: АЗС № 91 "Партнер Нефть" [06:52:52]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [06:52:52]line СНО: Общий режим [06:52:52]line Чек 11 14.05.2024 06:52 [06:52:52]line Смена: 355 ФФД: 1.0 [06:52:52]line ЗНМ: 0300000119 [06:52:52]line РНМ: 0000000000091845 [06:52:52]line Версия ККМ: 001 [06:52:52]line ФМ: 0000000000871829 [06:52:52]line ФД: 67004 [06:52:52]line ФПД: 79707571455178 [06:52:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T065253&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67004&fm=79707571455178&tin=02508201610067®Number=0000000000091845&sum=100000 [06:52:52]ConnectInit Can't take IP for lk.salyk.kg [06:52:52]CommunicateWithHost connect error [06:52:52]CommunicateWithHost err = -1 [06:52:52]OFD Sender: Server communicate error [06:52:52]written 0, free lines is 4095 [06:52:52]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:52:52]ProducePacketName [06:52:52]name=ofd_packets/00067002 [06:52:52]OFD Sender: To server: pG, [06:52:52]CommunicateWithHost lk.salyk.kg:30040 [06:52:52]ConnectInit lk.salyk.kg [06:52:52]Write to MH i2c: 01 00 00 25 10 35 [06:52:52]Write i2c OK [06:52:52]MH_I2C_Read... [06:52:52]Read from MH i2c: 01 [06:52:52]MH_I2C_Read... [06:52:52]Read from MH i2c: 01 07 00 [06:52:52]MH_I2C_Read... [06:52:52]Read from MH i2c: 01 07 00 25 10 00 00 00 00 00 B6 0C FE [06:52:52]RasterBufferAndPrint [06:52:52]line [06:52:52]line [06:52:52]line [06:52:52]line [06:52:52]line [06:52:52]written 0, free lines is 3258 [06:52:52]MH_Cut [06:52:52]Write to MH i2c: D1 01 00 2C 10 01 0E [06:52:52]Write i2c OK [06:52:52]MH_I2C_Read... [06:52:52]Read from MH i2c: D1 [06:52:52]MH_I2C_Read... [06:52:52]Read from MH i2c: D1 01 00 [06:52:52]MH_I2C_Read... [06:52:52]Read from MH i2c: D1 01 00 2C 10 00 0D [06:52:52]Write to MH i2c: 01 00 00 2D 10 3D [06:52:52]Write i2c OK [06:52:52]MH_I2C_Read... [06:52:53]*** Cut start [06:52:53]*** Purtial cut [06:52:53]*** Stage 1: CUTSNS_PIN = 1 [06:52:53]Read from MH i2c: 01 [06:52:53]MH_I2C_Read... [06:52:53]*** Stop cut motor [06:52:53]*** Cut end [06:52:53]Read from MH i2c: 01 07 00 [06:52:53]MH_I2C_Read... [06:52:53]Read from MH i2c: 01 07 00 2D 10 00 00 00 00 00 FF 0F 52 [06:52:53]process_action close_receipt done [06:52:53]requested_data is exist [06:52:53]produce_requested_data [06:52:53]requested_item fm.sn is exist - process it [06:52:53]wFMCommunicate request_size=4 [06:52:53]MH_SAM_APDU [06:52:53]CAPDU: 80 11 00 00 [06:52:53]Write to MH i2c: E2 08 00 2E 10 80 11 00 00 00 00 00 00 B8 [06:52:53]Write i2c OK [06:52:53]MH_I2C_Read... [06:52:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:54]Read from MH i2c: E2 [06:52:54]MH_I2C_Read... [06:52:54]Read from MH i2c: E2 17 00 [06:52:54]MH_I2C_Read... [06:52:54]Read from MH i2c: E2 17 00 2E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0E [06:52:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:52:54]wFMCommunicate OK [06:52:54]requested_item fd.num is exist - process it [06:52:54]SAM_PROTO_GetFieldsCounters [06:52:54]wFMCommunicate request_size=4 [06:52:54]MH_SAM_APDU [06:52:54]CAPDU: 80 13 00 00 [06:52:54]Write to MH i2c: E2 08 00 2F 10 80 13 00 00 00 00 00 00 BB [06:52:54]Write i2c OK [06:52:54]MH_I2C_Read... [06:52:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:52:54]Read from MH i2c: E2 [06:52:54]MH_I2C_Read... [06:52:54]Read from MH i2c: E2 62 00 [06:52:54]MH_I2C_Read... [06:52:54]Read from MH i2c: E2 62 00 2F 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 BC 05 01 00 0E 04 04 00 63 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 28 [06:52: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 BC 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:52:54]wFMCommunicate OK [06:52:54]SAM_PROTO_GetFieldsCounters done [06:52:54]requested_item shift.num is exist - process it [06:52:54]requested_item shift.opened is exist - process it [06:52:54]req_shift_opened [06:52:54]FM_GetShiftState [06:52:54]SAM_PROTO_GetShiftState [06:52:54]wFMCommunicate request_size=4 [06:52:54]MH_SAM_APDU [06:52:54]CAPDU: 80 13 01 00 [06:52:54]Write to MH i2c: E2 08 00 30 10 80 13 01 00 00 00 00 00 BD [06:52:54]Write i2c OK [06:52:54]MH_I2C_Read... [06:52:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:54]Read from MH i2c: E2 [06:52:54]MH_I2C_Read... [06:52:54]Read from MH i2c: E2 0E 00 [06:52:54]MH_I2C_Read... [06:52:54]Read from MH i2c: E2 0E 00 30 10 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 85 [06:52:54]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [06:52:54]wFMCommunicate OK [06:52:54]SAM_PROTO_GetShiftState done [06:52:54]FM_GetShiftState done [06:52:54]req_shift_opened done [06:52:54]requested_item shift.open_date is exist - process it [06:52:54]req_shift_open_date [06:52:54]req_shift_open_date done [06:52:54]produce_requested_data done [06:52:54]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67004,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [06:52:54]process_action_free close_receipt [06:52:54]json_value_free [06:52:54]json_value_free done [06:52:54]process_json_proto returns [06:52:54]Send response to host [06:52:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67004,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [06:52:54]free response buf [06:52:54]execute_script done [06:52:54]execute_script returns [06:52:54]free content buf [06:52:54]Sock 10.Close socket [06:52:54]Sock 10.Thread stoped [06:52:57]ConnectInit Can't take IP for lk.salyk.kg [06:52:57]CommunicateWithHost connect error [06:52:57]CommunicateWithHost err = -1 [06:52:57]OFD Sender: Server communicate error [06:53:02]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:53:02]ProducePacketName [06:53:02]name=ofd_packets/00067002 [06:53:02]OFD Sender: To server: pG, [06:53:02]CommunicateWithHost lk.salyk.kg:30040 [06:53:02]ConnectInit lk.salyk.kg [06:53:07]ConnectInit Can't take IP for lk.salyk.kg [06:53:07]CommunicateWithHost connect error [06:53:07]CommunicateWithHost err = -1 [06:53:07]OFD Sender: Server communicate error [06:53:12]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:53:12]ProducePacketName [06:53:12]name=ofd_packets/00067002 [06:53:12]OFD Sender: To server: pG, [06:53:12]CommunicateWithHost lk.salyk.kg:30040 [06:53:12]ConnectInit lk.salyk.kg [06:53:17]ConnectInit Can't take IP for lk.salyk.kg [06:53:17]CommunicateWithHost connect error [06:53:17]CommunicateWithHost err = -1 [06:53:17]OFD Sender: Server communicate error [06:53:22]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:53:22]ProducePacketName [06:53:22]name=ofd_packets/00067002 [06:53:22]OFD Sender: To server: pG, [06:53:22]CommunicateWithHost lk.salyk.kg:30040 [06:53:22]ConnectInit lk.salyk.kg [06:53:27]ConnectInit Can't take IP for lk.salyk.kg [06:53:27]CommunicateWithHost connect error [06:53:27]CommunicateWithHost err = -1 [06:53:27]OFD Sender: Server communicate error [06:53:32]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:53:32]ProducePacketName [06:53:32]name=ofd_packets/00067002 [06:53:32]OFD Sender: To server: pG, [06:53:32]CommunicateWithHost lk.salyk.kg:30040 [06:53:32]ConnectInit lk.salyk.kg [06:53:37]ConnectInit Can't take IP for lk.salyk.kg [06:53:37]CommunicateWithHost connect error [06:53:37]CommunicateWithHost err = -1 [06:53:37]OFD Sender: Server communicate error [06:53:42]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:53:42]ProducePacketName [06:53:42]name=ofd_packets/00067002 [06:53:42]OFD Sender: To server: pG, [06:53:42]CommunicateWithHost lk.salyk.kg:30040 [06:53:42]ConnectInit lk.salyk.kg [06:53:47]ConnectInit Can't take IP for lk.salyk.kg [06:53:47]CommunicateWithHost connect error [06:53:47]CommunicateWithHost err = -1 [06:53:47]OFD Sender: Server communicate error [06:53:52]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:53:52]ProducePacketName [06:53:52]name=ofd_packets/00067002 [06:53:52]OFD Sender: To server: pG, [06:53:52]CommunicateWithHost lk.salyk.kg:30040 [06:53:52]ConnectInit lk.salyk.kg [06:53:57]ConnectInit Can't take IP for lk.salyk.kg [06:53:57]CommunicateWithHost connect error [06:53:57]CommunicateWithHost err = -1 [06:53:57]OFD Sender: Server communicate error [06:54:02]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:54:02]ProducePacketName [06:54:02]name=ofd_packets/00067002 [06:54:02]OFD Sender: To server: pG, [06:54:02]CommunicateWithHost lk.salyk.kg:30040 [06:54:02]ConnectInit lk.salyk.kg [06:54:07]ConnectInit Can't take IP for lk.salyk.kg [06:54:07]CommunicateWithHost connect error [06:54:07]CommunicateWithHost err = -1 [06:54:07]OFD Sender: Server communicate error [06:54:12]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:54:12]ProducePacketName [06:54:12]name=ofd_packets/00067002 [06:54:12]OFD Sender: To server: pG, [06:54:12]CommunicateWithHost lk.salyk.kg:30040 [06:54:12]ConnectInit lk.salyk.kg [06:54:17]ConnectInit Can't take IP for lk.salyk.kg [06:54:17]CommunicateWithHost connect error [06:54:17]CommunicateWithHost err = -1 [06:54:17]OFD Sender: Server communicate error [06:54:22]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:54:22]ProducePacketName [06:54:22]name=ofd_packets/00067002 [06:54:22]OFD Sender: To server: pG, [06:54:22]CommunicateWithHost lk.salyk.kg:30040 [06:54:22]ConnectInit lk.salyk.kg [06:54:27]ConnectInit Can't take IP for lk.salyk.kg [06:54:27]CommunicateWithHost connect error [06:54:27]CommunicateWithHost err = -1 [06:54:27]OFD Sender: Server communicate error [06:54:32]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:54:32]ProducePacketName [06:54:32]name=ofd_packets/00067002 [06:54:32]OFD Sender: To server: pG, [06:54:32]CommunicateWithHost lk.salyk.kg:30040 [06:54:32]ConnectInit lk.salyk.kg [06:54:37]ConnectInit Can't take IP for lk.salyk.kg [06:54:37]CommunicateWithHost connect error [06:54:37]CommunicateWithHost err = -1 [06:54:37]OFD Sender: Server communicate error [06:54:42]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:54:42]ProducePacketName [06:54:42]name=ofd_packets/00067002 [06:54:42]OFD Sender: To server: pG, [06:54:42]CommunicateWithHost lk.salyk.kg:30040 [06:54:42]ConnectInit lk.salyk.kg [06:54:47]ConnectInit Can't take IP for lk.salyk.kg [06:54:47]CommunicateWithHost connect error [06:54:47]CommunicateWithHost err = -1 [06:54:47]OFD Sender: Server communicate error [06:54:52]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:54:52]ProducePacketName [06:54:52]name=ofd_packets/00067002 [06:54:52]OFD Sender: To server: pG, [06:54:52]CommunicateWithHost lk.salyk.kg:30040 [06:54:52]ConnectInit lk.salyk.kg [06:54:57]ConnectInit Can't take IP for lk.salyk.kg [06:54:57]CommunicateWithHost connect error [06:54:57]CommunicateWithHost err = -1 [06:54:57]OFD Sender: Server communicate error [06:55:02]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:55:02]ProducePacketName [06:55:02]name=ofd_packets/00067002 [06:55:02]OFD Sender: To server: pG, [06:55:02]CommunicateWithHost lk.salyk.kg:30040 [06:55:02]ConnectInit lk.salyk.kg [06:55:07]ConnectInit Can't take IP for lk.salyk.kg [06:55:07]CommunicateWithHost connect error [06:55:07]CommunicateWithHost err = -1 [06:55:07]OFD Sender: Server communicate error [06:55:12]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:55:12]ProducePacketName [06:55:12]name=ofd_packets/00067002 [06:55:12]OFD Sender: To server: pG, [06:55:12]CommunicateWithHost lk.salyk.kg:30040 [06:55:12]ConnectInit lk.salyk.kg [06:55:17]ConnectInit Can't take IP for lk.salyk.kg [06:55:17]CommunicateWithHost connect error [06:55:17]CommunicateWithHost err = -1 [06:55:17]OFD Sender: Server communicate error [06:55:22]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:55:22]ProducePacketName [06:55:22]name=ofd_packets/00067002 [06:55:22]OFD Sender: To server: pG, [06:55:22]CommunicateWithHost lk.salyk.kg:30040 [06:55:22]ConnectInit lk.salyk.kg [06:55:27]ConnectInit Can't take IP for lk.salyk.kg [06:55:27]CommunicateWithHost connect error [06:55:27]CommunicateWithHost err = -1 [06:55:27]OFD Sender: Server communicate error [06:55:32]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:55:32]ProducePacketName [06:55:32]name=ofd_packets/00067002 [06:55:32]OFD Sender: To server: pG, [06:55:32]CommunicateWithHost lk.salyk.kg:30040 [06:55:32]ConnectInit lk.salyk.kg [06:55:37]ConnectInit Can't take IP for lk.salyk.kg [06:55:37]CommunicateWithHost connect error [06:55:37]CommunicateWithHost err = -1 [06:55:37]OFD Sender: Server communicate error [06:55:42]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:55:42]ProducePacketName [06:55:42]name=ofd_packets/00067002 [06:55:42]OFD Sender: To server: pG, [06:55:42]CommunicateWithHost lk.salyk.kg:30040 [06:55:42]ConnectInit lk.salyk.kg [06:55:47]ConnectInit Can't take IP for lk.salyk.kg [06:55:47]CommunicateWithHost connect error [06:55:47]CommunicateWithHost err = -1 [06:55:47]OFD Sender: Server communicate error [06:55:52]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:55:52]ProducePacketName [06:55:52]name=ofd_packets/00067002 [06:55:52]OFD Sender: To server: pG, [06:55:52]CommunicateWithHost lk.salyk.kg:30040 [06:55:52]ConnectInit lk.salyk.kg [06:55:57]ConnectInit Can't take IP for lk.salyk.kg [06:55:57]CommunicateWithHost connect error [06:55:57]CommunicateWithHost err = -1 [06:55:57]OFD Sender: Server communicate error [06:56:02]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:56:02]ProducePacketName [06:56:02]name=ofd_packets/00067002 [06:56:02]OFD Sender: To server: pG, [06:56:02]CommunicateWithHost lk.salyk.kg:30040 [06:56:02]ConnectInit lk.salyk.kg [06:56:07]ConnectInit Can't take IP for lk.salyk.kg [06:56:07]CommunicateWithHost connect error [06:56:07]CommunicateWithHost err = -1 [06:56:07]OFD Sender: Server communicate error [06:56:12]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:56:12]ProducePacketName [06:56:12]name=ofd_packets/00067002 [06:56:12]OFD Sender: To server: pG, [06:56:12]CommunicateWithHost lk.salyk.kg:30040 [06:56:12]ConnectInit lk.salyk.kg [06:56:17]ConnectInit Can't take IP for lk.salyk.kg [06:56:17]CommunicateWithHost connect error [06:56:17]CommunicateWithHost err = -1 [06:56:17]OFD Sender: Server communicate error [06:56:22]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:56:22]ProducePacketName [06:56:22]name=ofd_packets/00067002 [06:56:22]OFD Sender: To server: pG, [06:56:22]CommunicateWithHost lk.salyk.kg:30040 [06:56:22]ConnectInit lk.salyk.kg [06:56:27]ConnectInit Can't take IP for lk.salyk.kg [06:56:27]CommunicateWithHost connect error [06:56:27]CommunicateWithHost err = -1 [06:56:27]OFD Sender: Server communicate error [06:56:32]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:56:32]ProducePacketName [06:56:32]name=ofd_packets/00067002 [06:56:32]OFD Sender: To server: pG, [06:56:32]CommunicateWithHost lk.salyk.kg:30040 [06:56:32]ConnectInit lk.salyk.kg [06:56:37]ConnectInit Can't take IP for lk.salyk.kg [06:56:37]CommunicateWithHost connect error [06:56:37]CommunicateWithHost err = -1 [06:56:37]OFD Sender: Server communicate error [06:56:42]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:56:42]ProducePacketName [06:56:42]name=ofd_packets/00067002 [06:56:42]OFD Sender: To server: pG, [06:56:42]CommunicateWithHost lk.salyk.kg:30040 [06:56:42]ConnectInit lk.salyk.kg [06:56:47]ConnectInit Can't take IP for lk.salyk.kg [06:56:47]CommunicateWithHost connect error [06:56:47]CommunicateWithHost err = -1 [06:56:47]OFD Sender: Server communicate error [06:56:52]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:56:52]ProducePacketName [06:56:52]name=ofd_packets/00067002 [06:56:52]OFD Sender: To server: pG, [06:56:52]CommunicateWithHost lk.salyk.kg:30040 [06:56:52]ConnectInit lk.salyk.kg [06:56:57]ConnectInit Can't take IP for lk.salyk.kg [06:56:57]CommunicateWithHost connect error [06:56:57]CommunicateWithHost err = -1 [06:56:57]OFD Sender: Server communicate error [06:57:02]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:57:02]ProducePacketName [06:57:02]name=ofd_packets/00067002 [06:57:02]OFD Sender: To server: pG, [06:57:02]CommunicateWithHost lk.salyk.kg:30040 [06:57:02]ConnectInit lk.salyk.kg [06:57:07]ConnectInit Can't take IP for lk.salyk.kg [06:57:07]CommunicateWithHost connect error [06:57:07]CommunicateWithHost err = -1 [06:57:07]OFD Sender: Server communicate error [06:57:12]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:57:12]ProducePacketName [06:57:12]name=ofd_packets/00067002 [06:57:12]OFD Sender: To server: pG, [06:57:12]CommunicateWithHost lk.salyk.kg:30040 [06:57:12]ConnectInit lk.salyk.kg [06:57:17]ConnectInit Can't take IP for lk.salyk.kg [06:57:17]CommunicateWithHost connect error [06:57:17]CommunicateWithHost err = -1 [06:57:17]OFD Sender: Server communicate error [06:57:22]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:57:22]ProducePacketName [06:57:22]name=ofd_packets/00067002 [06:57:22]OFD Sender: To server: pG, [06:57:22]CommunicateWithHost lk.salyk.kg:30040 [06:57:22]ConnectInit lk.salyk.kg [06:57:27]ConnectInit Can't take IP for lk.salyk.kg [06:57:27]CommunicateWithHost connect error [06:57:27]CommunicateWithHost err = -1 [06:57:27]OFD Sender: Server communicate error [06:57:32]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:57:32]ProducePacketName [06:57:32]name=ofd_packets/00067002 [06:57:32]OFD Sender: To server: pG, [06:57:32]CommunicateWithHost lk.salyk.kg:30040 [06:57:32]ConnectInit lk.salyk.kg [06:57:37]ConnectInit Can't take IP for lk.salyk.kg [06:57:37]CommunicateWithHost connect error [06:57:37]CommunicateWithHost err = -1 [06:57:37]OFD Sender: Server communicate error [06:57:42]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:57:42]ProducePacketName [06:57:42]name=ofd_packets/00067002 [06:57:42]OFD Sender: To server: pG, [06:57:42]CommunicateWithHost lk.salyk.kg:30040 [06:57:42]ConnectInit lk.salyk.kg [06:57:47]ConnectInit Can't take IP for lk.salyk.kg [06:57:47]CommunicateWithHost connect error [06:57:47]CommunicateWithHost err = -1 [06:57:47]OFD Sender: Server communicate error [06:57:52]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:57:52]ProducePacketName [06:57:52]name=ofd_packets/00067002 [06:57:52]OFD Sender: To server: pG, [06:57:52]CommunicateWithHost lk.salyk.kg:30040 [06:57:52]ConnectInit lk.salyk.kg [06:57:57]ConnectInit Can't take IP for lk.salyk.kg [06:57:57]CommunicateWithHost connect error [06:57:57]CommunicateWithHost err = -1 [06:57:57]OFD Sender: Server communicate error [06:58:02]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:58:02]ProducePacketName [06:58:02]name=ofd_packets/00067002 [06:58:02]OFD Sender: To server: pG, [06:58:02]CommunicateWithHost lk.salyk.kg:30040 [06:58:02]ConnectInit lk.salyk.kg [06:58:02]accept exits with 11 [06:58:02]New connection [06:58:02]New thread 3066760548 created [06:58:02]Thread 3066617188 joined [06:58:02]Waiting for new connection... [06:58:02] Sock 11.Parse request [06:58:02]Sock 11.Check first char [06:58:02]Sock 11.First char is OK [06:58:02]request: POST /json_proto HTTP/1.0 [06:58:02]Method: POST [06:58:02]URL: /json_proto [06:58:02]Method is POST - this is cgi request [06:58:02]url: /json_proto [06:58:02]query_string will be loaded in cgi processing [06:58:02]execute_cgi json_proto POST (null) [06:58:02]execute_cgi path=json_proto method=POST [06:58:02]POST find Content-Length [06:58:02]Host: 172.17.41.195:8080 [06:58:02]Content-Length: 1181 [06:58:02]Content-Type: application/json [06:58:02] [06:58:02]POST finish read [06:58:02]Found Content-Length = 1181 [06:58:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506818\u000A14.05.2024 06:40\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" ] } } [06:58:02]execute_script... [06:58:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506818\u000A14.05.2024 06:40\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" ] } } [06:58:02]POST & json_proto [06:58:02]process_json_proto [06:58:02]json parsed OK: [06:58:02]protocol is kg_v1.0 [06:58:02]action value=print_text [06:58:02]process_action print_text [06:58:02]cmd_print_text [06:58:02]ExternCall_PrintAddStr [06:58:02]wPrintStart [06:58:02]Write to MH i2c: 01 00 00 31 10 41 [06:58:02]Write i2c OK [06:58:02]MH_I2C_Read... [06:58:02]Read from MH i2c: 01 [06:58:02]MH_I2C_Read... [06:58:02]Read from MH i2c: 01 07 00 [06:58:02]MH_I2C_Read... [06:58:02]Read from MH i2c: 01 07 00 31 10 00 00 00 00 00 FF 0F 56 [06:58:02]RasterBufferAndPrint [06:58:02]line *****ТОВАРНЫЙ ЧЕК***** [06:58:02]line АЗС-91 [06:58:02]line Партнер нефть [06:58:02]line 02508201610067 [06:58:02]line Кассир : Адишов И. [06:58:02]line Счет N : (1)506818 [06:58:02]line 14.05.2024 06:40 [06:58:02]line ПРОДАЖА [06:58:02]line ТРК (МРК, ГНК): 43 [06:58:02]line Вид ГСМ : 2710124130 [06:58:02]line Аи-92-К-5 [06:58:02]line 10.000 x 66.80 [06:58:02]line ИТОГ: 668.00 [06:58:02]line Тип оплаты: Талоны: Топливная Карта [06:58:02]line 02750 [06:58:02]line ______________________ [06:58:02]line (подпись) [06:58:02]written 0, free lines is 4095 [06:58:03]Write to MH i2c: 01 00 00 45 10 55 [06:58:03]Write i2c OK [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: 01 [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: 01 07 00 [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: 01 07 00 45 10 00 00 00 00 00 0F 0E 79 [06:58:03]RasterBufferAndPrint [06:58:03]line [06:58:03]line [06:58:03]line [06:58:03]line [06:58:03]line [06:58:03]written 0, free lines is 3600 [06:58:03]MH_Cut [06:58:03]Write to MH i2c: D1 01 00 4C 10 01 2E [06:58:03]Write i2c OK [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: D1 [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: D1 01 00 [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: D1 01 00 4C 10 00 2D [06:58:03]Write to MH i2c: 01 00 00 4D 10 5D [06:58:03]Write i2c OK [06:58:03]MH_I2C_Read... [06:58:03]*** Cut start [06:58:03]*** Purtial cut [06:58:03]*** CUTSNS_PIN = 0 [06:58:03]*** Stage 1: CUTSNS_PIN = 1 [06:58:05]Read from MH i2c: 01 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: 01 07 00 [06:58:05]MH_I2C_Read... [06:58:05]*** Stop cut motor [06:58:05]*** Cut end [06:58:05]Read from MH i2c: 01 07 00 4D 10 00 00 00 00 00 FF 0F 72 [06:58:05]process_action print_text done [06:58:05]requested_data is exist [06:58:05]produce_requested_data [06:58:05]requested_item fm.sn is exist - process it [06:58:05]wFMCommunicate request_size=4 [06:58:05]MH_SAM_APDU [06:58:05]CAPDU: 80 11 00 00 [06:58:05]Write to MH i2c: E2 08 00 4E 10 80 11 00 00 00 00 00 00 D8 [06:58:05]Write i2c OK [06:58:05]MH_I2C_Read... [06:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:05]Read from MH i2c: E2 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 17 00 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 17 00 4E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2E [06:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [06:58:05]wFMCommunicate OK [06:58:05]requested_item fd.num is exist - process it [06:58:05]SAM_PROTO_GetFieldsCounters [06:58:05]wFMCommunicate request_size=4 [06:58:05]MH_SAM_APDU [06:58:05]CAPDU: 80 13 00 00 [06:58:05]Write to MH i2c: E2 08 00 4F 10 80 13 00 00 00 00 00 00 DB [06:58:05]Write i2c OK [06:58:05]MH_I2C_Read... [06:58:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:58:05]Read from MH i2c: E2 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 62 00 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 62 00 4F 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 BC 05 01 00 0E 04 04 00 63 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 48 [06:58: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 BC 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:58:05]wFMCommunicate OK [06:58:05]SAM_PROTO_GetFieldsCounters done [06:58:05]requested_item shift.num is exist - process it [06:58:05]requested_item shift.opened is exist - process it [06:58:05]req_shift_opened [06:58:05]FM_GetShiftState [06:58:05]SAM_PROTO_GetShiftState [06:58:05]wFMCommunicate request_size=4 [06:58:05]MH_SAM_APDU [06:58:05]CAPDU: 80 13 01 00 [06:58:05]Write to MH i2c: E2 08 00 50 10 80 13 01 00 00 00 00 00 DD [06:58:05]Write i2c OK [06:58:05]MH_I2C_Read... [06:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:05]Read from MH i2c: E2 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 0E 00 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 0E 00 50 10 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A5 [06:58:05]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [06:58:05]wFMCommunicate OK [06:58:05]SAM_PROTO_GetShiftState done [06:58:05]FM_GetShiftState done [06:58:05]req_shift_opened done [06:58:05]requested_item shift.open_date is exist - process it [06:58:05]req_shift_open_date [06:58:05]req_shift_open_date done [06:58:05]produce_requested_data done [06:58:05]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67004,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [06:58:05]process_action_free print_text [06:58:05]json_value_free [06:58:05]json_value_free done [06:58:05]process_json_proto returns [06:58:05]Send response to host [06:58:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67004,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [06:58:05]free response buf [06:58:05]execute_script done [06:58:05]execute_script returns [06:58:05]free content buf [06:58:05]Sock 11.Close socket [06:58:05]Sock 11.Thread stoped [06:58:07]ConnectInit Can't take IP for lk.salyk.kg [06:58:07]CommunicateWithHost connect error [06:58:07]CommunicateWithHost err = -1 [06:58:07]OFD Sender: Server communicate error [06:58:12]OFD Sender: Processing packet 67002 [packets to send 37, broken 34] [06:58:12]ProducePacketName [06:58:12]name=ofd_packets/00067002 [06:58:12]OFD Sender: To server: pG, [06:58:12]CommunicateWithHost lk.salyk.kg:30040 [06:58:12]ConnectInit lk.salyk.kg [06:58:12]Connected sock=8 [06:58: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 A7 47 04 01 C3 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 D7 02 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BA 05 01 00 35 04 06 00 72 5B FD CA 18 A3 BD AE CE 7D 93 F9 41 9F [06: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 05 61 47 00 74 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BA 05 01 00 F4 03 04 00 66 B3 42 66 B6 04 01 00 00 F1 9D 28 62 A6 62 CB A1 [06:58:13]CommunicateWithHost err = 0 [06:58:13]CheckOFDResponse [06:58:13]1017 (14) - 77093643461234 [06:58:13]1041 (16) - 0000000000871829 [06:58:13]1040 (4) - 67002 [06:58:13]1012 (4) - 14.05.2024 00:42 [06:58:13]1206 (1) - 0 [06:58:13]OFD Sender: Remove packet 67002 [06:58:13]ProducePacketName [06:58:13]name=ofd_packets/00067002 [06:58:13]NVStorageDeleteData [06:58:13]OFD Sender: Processing packet 67003 [packets to send 36, broken 34] [06:58:13]ProducePacketName [06:58:13]name=ofd_packets/00067003 [06:58:13]OFD Sender: To server: pG, [06:58:13]CommunicateWithHost lk.salyk.kg:30040 [06:58:13]ConnectInit lk.salyk.kg [06:58:13]Connected sock=8 [06: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 0F 01 00 00 37 96 07 01 AA B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0A 00 00 00 F4 03 04 00 71 03 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BB 05 01 00 35 04 06 00 0F B8 05 76 58 55 29 C0 A3 27 0A BB EA 43 [06: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 3C D5 47 00 54 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 BB 05 01 00 F4 03 04 00 67 B3 42 66 B6 04 01 00 00 2D 31 80 5E 6F E5 D5 67 [06:58:13]CommunicateWithHost err = 0 [06:58:13]CheckOFDResponse [06:58:13]1017 (14) - 77093643461234 [06:58:13]1041 (16) - 0000000000871829 [06:58:13]1040 (4) - 67003 [06:58:13]1012 (4) - 14.05.2024 00:42 [06:58:13]1206 (1) - 0 [06:58:13]OFD Sender: Remove packet 67003 [06:58:13]ProducePacketName [06:58:13]name=ofd_packets/00067003 [06:58:13]NVStorageDeleteData [06:58:14]OFD Sender: Processing packet 67004 [packets to send 35, broken 34] [06:58:14]ProducePacketName [06:58:14]name=ofd_packets/00067004 [06:58:14]OFD Sender: To server: pG, [06:58:14]CommunicateWithHost lk.salyk.kg:30040 [06:58:14]ConnectInit lk.salyk.kg [06:58:14]Connected sock=8 [06:58: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 2C 6C 07 01 8C BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 45 0A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BC 05 01 00 35 04 06 00 48 7E 5D 7B 84 CA CC B9 85 E3 2E 02 70 00 [06:58: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 01 8B 47 00 B6 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 BC 05 01 00 F4 03 04 00 68 B3 42 66 B6 04 01 00 00 C0 8E 2F 15 6F 6E 2A 19 [06:58:14]CommunicateWithHost err = 0 [06:58:14]CheckOFDResponse [06:58:14]1017 (14) - 77093643461234 [06:58:14]1041 (16) - 0000000000871829 [06:58:14]1040 (4) - 67004 [06:58:14]1012 (4) - 14.05.2024 00:42 [06:58:14]1206 (1) - 0 [06:58:14]OFD Sender: Remove packet 67004 [06:58:14]ProducePacketName [06:58:14]name=ofd_packets/00067004 [06:58:14]NVStorageDeleteData [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:47]recv_with_timeout no data received [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:14]accept exits with 10 [07:06:14]New connection [07:06:14]New thread 3066617188 created [07:06:14]Thread 3066760548 joined [07:06:14]Waiting for new connection... [07:06:14] Sock 10.Parse request [07:06:14]Sock 10.Check first char [07:06:14]Sock 10.First char is OK [07:06:14]request: POST /json_proto HTTP/1.0 [07:06:14]Method: POST [07:06:14]URL: /json_proto [07:06:14]Method is POST - this is cgi request [07:06:14]url: /json_proto [07:06:14]query_string will be loaded in cgi processing [07:06:14]execute_cgi json_proto POST (null) [07:06:14]execute_cgi path=json_proto method=POST [07:06:14]POST find Content-Length [07:06:14]Host: 172.17.41.195:8080 [07:06:14]Content-Length: 677 [07:06:14]Content-Type: application/json [07:06:14] [07:06:14]POST finish read [07:06:14]Found Content-Length = 677 [07:06:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:14]execute_script... [07:06: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)506819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:14]POST & json_proto [07:06:14]process_json_proto [07:06:14]json parsed OK: [07:06:14]protocol is kg_v1.0 [07:06:14]action value=close_receipt [07:06:14]process_action close_receipt [07:06:14]cmd_close_receipt [07:06:14]MH_GetDate [07:06:14]Write to MH i2c: F0 00 00 51 10 50 [07:06:14]Write i2c OK [07:06:14]MH_I2C_Read... [07:06:14]Read from MH i2c: F0 [07:06:14]MH_I2C_Read... [07:06:14]Read from MH i2c: F0 09 00 [07:06:14]MH_I2C_Read... [07:06:14]Read from MH i2c: F0 09 00 51 10 00 69 0D 43 66 FC 21 6F 64 68 [07:06:14]GetLastDocTimeStamp 1715669573 [07:06:14]current date 1715670377 [07:06:14]FM_GetShiftState [07:06:14]SAM_PROTO_GetShiftState [07:06:14]wFMCommunicate request_size=4 [07:06:14]MH_SAM_APDU [07:06:14]CAPDU: 80 13 01 00 [07:06:14]Write to MH i2c: E2 08 00 52 10 80 13 01 00 00 00 00 00 DF [07:06:14]Write i2c OK [07:06:14]MH_I2C_Read... [07:06:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:14]Read from MH i2c: E2 [07:06:14]MH_I2C_Read... [07:06:14]Read from MH i2c: E2 0E 00 [07:06:14]MH_I2C_Read... [07:06:14]Read from MH i2c: E2 0E 00 52 10 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A7 [07:06:14]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [07:06:14]wFMCommunicate OK [07:06:14]SAM_PROTO_GetShiftState done [07:06:14]FM_GetShiftState done [07:06:14]opened in 1715646054 [07:06:14]opened+sec_in_day 1715732454 [07:06:14]quantity*price = 60053 [07:06:14]sum+1 = 60054 [07:06:14]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 СНО: Общий режим Чек 12 14.05.2024 07:06 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67005 ФПД: 278921964242930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T070617&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67005&fm=278921964242930&tin=02508201610067®Number=0000000000091845&sum=60000 [07:06:15]StoreToDocumentArchive [07:06:15]shift 355 fd 67005 [07:06:15]save to /storage/0355/doc_00067005 [07:06:15]save last doc name /storage/0355/doc_00067005 to /storage/kkm_last_doc_name [07:06:15]save OK [07:06:15]Clear old archive folders... [07:06:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:06:15]tlvbuf is 00310B60 [07:06:15]SAM_PROTO_ClearQueue [07:06:15]wFMCommunicate request_size=4 [07:06:15]MH_SAM_APDU [07:06:15]CAPDU: 80 09 00 00 [07:06:15]Write to MH i2c: E2 08 00 5F 10 80 09 00 00 00 00 00 00 E1 [07:06:15]Write i2c OK [07:06:15]MH_I2C_Read... [07:06:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:06:15]Read from MH i2c: E2 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: E2 03 00 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: E2 03 00 5F 10 00 90 00 E3 [07:06:15]RAPDU: 90 00 [07:06:15]wFMCommunicate OK [07:06:15]SAM_PROTO_ClearQueue done [07:06:15]KKMCreateOFDPacket [07:06:15]OFDProtocolAddRootSTLVToBuf [07:06:15]FM_MakeSignedData [07:06:15]FM_MakeSignedData [07:06:15]SAM_PROTO_SignData [07:06:15]wFMCommunicate request_size=4 [07:06:15]MH_SAM_APDU [07:06:15]CAPDU: 80 0D 01 02 [07:06:15]Write to MH i2c: E2 08 00 60 10 80 0D 01 02 00 00 00 00 E9 [07:06:15]Write i2c OK [07:06:15]MH_I2C_Read... [07:06:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:06:15]Read from MH i2c: E2 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: E2 03 00 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: E2 03 00 60 10 00 90 00 E4 [07:06:15]RAPDU: 90 00 [07:06:15]wFMCommunicate OK [07:06:15]wFMCommunicate request_size=255 [07:06:15]MH_SAM_APDU [07:06:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0C 00 00 00 F4 03 04 00 69 0D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BD 05 01 00 35 04 06 00 FD [07:06:15]Write to MH i2c: E2 02 01 61 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 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 0C 00 00 00 F4 03 04 00 69 0D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BD 05 01 00 35 04 06 00 FD 00 00 E3 [07:06:15]Write i2c OK [07:06:15]MH_I2C_Read... [07:06:15]OFD Sender: No OFD packet to send [07:06:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:15]Read from MH i2c: E2 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: E2 03 00 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: E2 03 00 61 10 00 90 00 E5 [07:06:15]RAPDU: 90 00 [07:06:15]wFMCommunicate OK [07:06:15]wFMCommunicate request_size=10 [07:06:15]MH_SAM_APDU [07:06:15]CAPDU: 80 0D 02 02 05 AD 94 99 47 F2 [07:06:15]Write to MH i2c: E2 0D 00 62 10 80 0D 02 02 05 00 AD 94 99 47 F2 00 00 09 [07:06:15]Write i2c OK [07:06:15]MH_I2C_Read... [07:06:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:15]Read from MH i2c: E2 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: E2 03 00 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: E2 03 00 62 10 00 90 00 E6 [07:06:15]RAPDU: 90 00 [07:06:15]wFMCommunicate OK [07:06:15]wFMCommunicate request_size=4 [07:06:15]MH_SAM_APDU [07:06:15]CAPDU: 80 0D 03 02 [07:06:15]Write to MH i2c: E2 08 00 63 10 80 0D 03 02 00 00 00 00 EE [07:06:15]Write i2c OK [07:06:15]MH_I2C_Read... [07:06:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:06:15]Read from MH i2c: E2 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: E2 0B 00 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: E2 0B 00 63 10 00 70 02 F6 9C 45 8C 44 BE 90 00 C6 [07:06:15]RAPDU: 70 02 F6 9C 45 8C 44 BE 90 00 [07:06:15]wFMCommunicate OK [07:06:15]SAM_PROTO_SignData done [07:06:15]FM_MakeSignedData done [07:06:15]CreateOFDProtocolMessage [07:06:15]wFMCommunicate request_size=4 [07:06:15]MH_SAM_APDU [07:06:15]CAPDU: 80 11 00 00 [07:06:15]Write to MH i2c: E2 08 00 64 10 80 11 00 00 00 00 00 00 EE [07:06:15]Write i2c OK [07:06:15]MH_I2C_Read... [07:06:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:15]Read from MH i2c: E2 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: E2 17 00 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: E2 17 00 64 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 44 [07: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 [07:06:15]wFMCommunicate OK [07:06:15]CreateOFDProtocolMessage done [07:06:15]OFDSenderStorePacket 67005 [07:06:15]StoreOFDPacket docnum=67005 [07: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 0F 01 00 00 0D F6 07 01 25 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0C 00 00 00 F4 03 04 00 69 0D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BD 05 01 00 35 04 06 00 FD AD 94 99 47 F2 70 02 F6 9C 45 8C 44 BE [07:06:15]CheckFolder [07:06:15]dirname=/storage/ofd_packets [07:06:15]CheckFolder done [07:06:15]ProducePacketName [07:06:15]name=ofd_packets/00067005 [07:06:15]NVStorageSaveData ofd_packets/00067005 [07:06:15]File name is /storage/ofd_packets/00067005 [07:06:15]Write 301 bytes [07:06:15]NVStorageSaveData done [07:06:15]OFDSenderStorePacket done [07:06:15]KKMCreateOFDPacket done [07:06:15]NVStorageSaveData kkm_last_timestamp [07:06:15]File name is /storage/kkm_last_timestamp [07:06:15]Write 4 bytes [07:06:15]NVStorageSaveData done [07:06:15]ExternCall_PrintAddStr [07:06:15]wPrintStart [07:06:15]Write to MH i2c: 01 00 00 65 10 75 [07:06:15]Write i2c OK [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: 01 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: 01 07 00 [07:06:15]MH_I2C_Read... [07:06:15]Read from MH i2c: 01 07 00 65 10 00 00 00 00 00 FF 0F 8A [07:06:15]RasterBufferAndPrint [07:06:15]line Счет N : (1)506819 [07:06:15]line ИНН: 02508201610067 [07:06:15]line Контрольно-Кассовый Чек [07:06:15]line ПРОДАЖА [07:06:15]line ТРК (МРК, ГНК) : 23 [07:06:15]line Товар: 2710124130 [07:06:15]line Аи-92-К-5 [07:06:15]line 8.990 * 66.80 [07:06:15]line = 600.53 [07:06:15]line НДС 12% НСП 1% [07:06:15]line > о реализуемом товаре [07:06:15]line ОКРУГЛЕНИЕ: -0.53 [07:06:15]line ИТОГО: 600.00 [07:06:15]line Внесено: 600.00 [07:06:15]line СДАЧА: 0.00 [07:06:15]line НСП 1% : 5.31 [07:06:15]line НДС 12% : 63.77 [07:06:15]line Наличными: 600.00 [07:06:15]line Безнал.: 0.00 [07:06:15]line Место: АЗС № 91 "Партнер Нефть" [07:06:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:06:15]line СНО: Общий режим [07:06:15]line Чек 12 14.05.2024 07:06 [07:06:15]line Смена: 355 ФФД: 1.0 [07:06:15]line ЗНМ: 0300000119 [07:06:15]line РНМ: 0000000000091845 [07:06:15]line Версия ККМ: 001 [07:06:15]line ФМ: 0000000000871829 [07:06:15]line ФД: 67005 [07:06:15]line ФПД: 278921964242930 [07:06:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T070617&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67005&fm=278921964242930&tin=02508201610067®Number=0000000000091845&sum=60000 [07:06:16]OFD Sender: Processing packet 67005 [packets to send 35, broken 34] [07:06:16]ProducePacketName [07:06:16]name=ofd_packets/00067005 [07:06:16]OFD Sender: To server: pG, [07:06:16]CommunicateWithHost lk.salyk.kg:30040 [07:06:16]ConnectInit lk.salyk.kg [07:06:16]written 0, free lines is 4095 [07:06:16]Connected sock=9 [07:06:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 0D F6 07 01 25 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0C 00 00 00 F4 03 04 00 69 0D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BD 05 01 00 35 04 06 00 FD AD 94 99 47 F2 70 02 F6 9C 45 8C 44 BE [07:06: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 DC E2 47 00 34 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 BD 05 01 00 F4 03 04 00 4A B5 42 66 B6 04 01 00 00 65 86 B6 F9 6D 5B 43 AD [07:06:16]CommunicateWithHost err = 0 [07:06:16]CheckOFDResponse [07:06:16]1017 (14) - 77093643461234 [07:06:16]1041 (16) - 0000000000871829 [07:06:16]1040 (4) - 67005 [07:06:16]1012 (4) - 14.05.2024 00:50 [07:06:16]1206 (1) - 0 [07:06:16]OFD Sender: Remove packet 67005 [07:06:16]ProducePacketName [07:06:16]name=ofd_packets/00067005 [07:06:16]NVStorageDeleteData [07:06:16]Write to MH i2c: 01 00 00 8F 10 9F [07:06:16]Write i2c OK [07:06:16]MH_I2C_Read... [07:06:16]Read from MH i2c: 01 [07:06:16]MH_I2C_Read... [07:06:16]Read from MH i2c: 01 07 00 [07:06:16]MH_I2C_Read... [07:06:16]Read from MH i2c: 01 07 00 8F 10 00 00 00 00 00 CB 0C 7D [07:06:16]RasterBufferAndPrint [07:06:16]line [07:06:16]line [07:06:16]line [07:06:16]line [07:06:16]line [07:06:16]written 0, free lines is 3284 [07:06:16]MH_Cut [07:06:16]Write to MH i2c: D1 01 00 96 10 01 78 [07:06:16]Write i2c OK [07:06:16]MH_I2C_Read... [07:06:16]Read from MH i2c: D1 [07:06:16]MH_I2C_Read... [07:06:16]Read from MH i2c: D1 01 00 [07:06:16]MH_I2C_Read... [07:06:16]Read from MH i2c: D1 01 00 96 10 00 77 [07:06:16]Write to MH i2c: 01 00 00 97 10 A7 [07:06:16]Write i2c OK [07:06:16]MH_I2C_Read... [07:06:17]OFD Sender: No OFD packet to send [07:06:17]*** Cut start [07:06:17]*** Purtial cut [07:06:17]*** Stage 1: CUTSNS_PIN = 1 [07:06:17]Read from MH i2c: 01 [07:06:17]MH_I2C_Read... [07:06:17]*** Stop cut motor [07:06:17]*** Cut end [07:06:17]Read from MH i2c: 01 07 00 [07:06:17]MH_I2C_Read... [07:06:17]Read from MH i2c: 01 07 00 97 10 00 00 00 00 00 FF 0F BC [07:06:17]process_action close_receipt done [07:06:17]requested_data is exist [07:06:17]produce_requested_data [07:06:17]requested_item fm.sn is exist - process it [07:06:17]wFMCommunicate request_size=4 [07:06:17]MH_SAM_APDU [07:06:17]CAPDU: 80 11 00 00 [07:06:17]Write to MH i2c: E2 08 00 98 10 80 11 00 00 00 00 00 00 22 [07:06:17]Write i2c OK [07:06:17]MH_I2C_Read... [07:06:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:17]Read from MH i2c: E2 [07:06:17]MH_I2C_Read... [07:06:17]Read from MH i2c: E2 17 00 [07:06:17]MH_I2C_Read... [07:06:17]Read from MH i2c: E2 17 00 98 10 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: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 [07:06:17]wFMCommunicate OK [07:06:17]requested_item fd.num is exist - process it [07:06:17]SAM_PROTO_GetFieldsCounters [07:06:17]wFMCommunicate request_size=4 [07:06:17]MH_SAM_APDU [07:06:17]CAPDU: 80 13 00 00 [07:06:17]Write to MH i2c: E2 08 00 99 10 80 13 00 00 00 00 00 00 25 [07:06:17]Write i2c OK [07:06:17]MH_I2C_Read... [07:06:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:06:18]Read from MH i2c: E2 [07:06:18]MH_I2C_Read... [07:06:18]Read from MH i2c: E2 62 00 [07:06:18]MH_I2C_Read... [07:06:18]Read from MH i2c: E2 62 00 99 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 BD 05 01 00 0E 04 04 00 63 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 96 [07:06: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 BD 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:06:18]wFMCommunicate OK [07:06:18]SAM_PROTO_GetFieldsCounters done [07:06:18]requested_item shift.num is exist - process it [07:06:18]requested_item shift.opened is exist - process it [07:06:18]req_shift_opened [07:06:18]FM_GetShiftState [07:06:18]SAM_PROTO_GetShiftState [07:06:18]wFMCommunicate request_size=4 [07:06:18]MH_SAM_APDU [07:06:18]CAPDU: 80 13 01 00 [07:06:18]Write to MH i2c: E2 08 00 9A 10 80 13 01 00 00 00 00 00 27 [07:06:18]Write i2c OK [07:06:18]MH_I2C_Read... [07:06:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:18]Read from MH i2c: E2 [07:06:18]MH_I2C_Read... [07:06:18]Read from MH i2c: E2 0E 00 [07:06:18]MH_I2C_Read... [07:06:18]Read from MH i2c: E2 0E 00 9A 10 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 EF [07:06:18]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [07:06:18]wFMCommunicate OK [07:06:18]SAM_PROTO_GetShiftState done [07:06:18]FM_GetShiftState done [07:06:18]req_shift_opened done [07:06:18]requested_item shift.open_date is exist - process it [07:06:18]req_shift_open_date [07:06:18]req_shift_open_date done [07:06:18]produce_requested_data done [07:06:18]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67005,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [07:06:18]process_action_free close_receipt [07:06:18]json_value_free [07:06:18]json_value_free done [07:06:18]process_json_proto returns [07:06:18]Send response to host [07:06:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67005,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [07:06:18]free response buf [07:06:18]execute_script done [07:06:18]execute_script returns [07:06:18]free content buf [07:06:18]Sock 10.Close socket [07:06:18]Sock 10.Thread stoped [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:02]accept exits with 8 [07:08:02]New connection [07:08:02]New thread 3066760548 created [07:08:02]Thread 3066617188 joined [07:08:02]Waiting for new connection... [07:08:02] Sock 8.Parse request [07:08:02]Sock 8.Check first char [07:08:02]Sock 8.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: 677 [07:08:02]Content-Type: application/json [07:08:02] [07:08:02]POST finish read [07:08:02]Found Content-Length = 677 [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)506821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07: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)506821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07: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 9B 10 9A [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 9B 10 00 D5 0D 43 66 FC 21 6F 64 1E [07:08:02]GetLastDocTimeStamp 1715670377 [07:08:02]current date 1715670485 [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 9C 10 80 13 01 00 00 00 00 00 29 [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 9C 10 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F1 [07:08:02]RAPDU: 09 00 01 66 AE 42 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 1715646054 [07:08:02]opened+sec_in_day 1715732454 [07:08:02]quantity*price = 50033 [07:08:02]sum+1 = 50034 [07:08:02]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 СНО: Общий режим Чек 13 14.05.2024 07:08 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67006 ФПД: 160918339624146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T070805&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67006&fm=160918339624146&tin=02508201610067®Number=0000000000091845&sum=50000 [07:08:03]StoreToDocumentArchive [07:08:03]shift 355 fd 67006 [07:08:03]save to /storage/0355/doc_00067006 [07:08:03]save last doc name /storage/0355/doc_00067006 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=251 [07:08:03]tlvbuf is 00347060 [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 A9 10 80 09 00 00 00 00 00 00 2B [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 A9 10 00 90 00 2D [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 AA 10 80 0D 01 02 00 00 00 00 33 [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 AA 10 00 90 00 2E [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 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0D 00 00 00 F4 03 04 00 D5 0D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BE 05 01 00 35 04 06 00 92 [07:08:03]Write to MH i2c: E2 02 01 AB 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 D5 0D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BE 05 01 00 35 04 06 00 92 00 00 10 [07:08:03]Write i2c OK [07:08:03]MH_I2C_Read... [07:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:04]Read from MH i2c: E2 [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: E2 03 00 [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: E2 03 00 AB 10 00 90 00 2F [07:08:04]RAPDU: 90 00 [07:08:04]wFMCommunicate OK [07:08:04]wFMCommunicate request_size=10 [07:08:04]MH_SAM_APDU [07:08:04]CAPDU: 80 0D 02 02 05 5A B8 78 9C D2 [07:08:04]Write to MH i2c: E2 0D 00 AC 10 80 0D 02 02 05 00 5A B8 78 9C D2 00 00 38 [07:08:04]Write i2c OK [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: E2 [07:08:04]MH_I2C_Read... [07:08:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:04]Read from MH i2c: E2 03 00 [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: E2 03 00 AC 10 00 90 00 30 [07:08:04]RAPDU: 90 00 [07:08:04]wFMCommunicate OK [07:08:04]wFMCommunicate request_size=4 [07:08:04]MH_SAM_APDU [07:08:04]CAPDU: 80 0D 03 02 [07:08:04]Write to MH i2c: E2 08 00 AD 10 80 0D 03 02 00 00 00 00 38 [07:08:04]Write i2c OK [07:08:04]MH_I2C_Read... [07:08:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:08:04]Read from MH i2c: E2 [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: E2 0B 00 [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: E2 0B 00 AD 10 00 EC 38 A8 B4 94 DA 81 C4 90 00 6C [07:08:04]RAPDU: EC 38 A8 B4 94 DA 81 C4 90 00 [07:08:04]wFMCommunicate OK [07:08:04]SAM_PROTO_SignData done [07:08:04]FM_MakeSignedData done [07:08:04]CreateOFDProtocolMessage [07:08:04]wFMCommunicate request_size=4 [07:08:04]MH_SAM_APDU [07:08:04]CAPDU: 80 11 00 00 [07:08:04]Write to MH i2c: E2 08 00 AE 10 80 11 00 00 00 00 00 00 38 [07:08:04]Write i2c OK [07:08:04]MH_I2C_Read... [07:08:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:04]Read from MH i2c: E2 [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: E2 17 00 [07:08:04]MH_I2C_Read... [07:08:04]Read from MH i2c: E2 17 00 AE 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8E [07: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 [07:08:04]wFMCommunicate OK [07:08:04]CreateOFDProtocolMessage done [07:08:04]OFDSenderStorePacket 67006 [07:08:04]StoreOFDPacket docnum=67006 [07: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 41 3E 07 01 C5 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0D 00 00 00 F4 03 04 00 D5 0D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BE 05 01 00 35 04 06 00 92 5A B8 78 9C D2 EC 38 A8 B4 94 DA 81 C4 [07:08:04]CheckFolder [07:08:04]dirname=/storage/ofd_packets [07:08:04]CheckFolder done [07:08:04]ProducePacketName [07:08:04]name=ofd_packets/00067006 [07:08:04]NVStorageSaveData ofd_packets/00067006 [07:08:04]File name is /storage/ofd_packets/00067006 [07:08:04]Write 301 bytes [07:08:04]NVStorageSaveData done [07:08:04]OFDSenderStorePacket done [07:08:04]KKMCreateOFDPacket done [07:08:04]NVStorageSaveData kkm_last_timestamp [07:08:04]File name is /storage/kkm_last_timestamp [07:08:04]Write 4 bytes [07:08:04]NVStorageSaveData done [07:08:04]ExternCall_PrintAddStr [07:08:04]wPrintStart [07:08:04]Write to MH i2c: 01 00 00 AF 10 BF [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 AF 10 00 00 00 00 00 FF 0F D4 [07:08:04]RasterBufferAndPrint [07:08:04]line Счет N : (1)506821 [07:08:04]line ИНН: 02508201610067 [07:08:04]line Контрольно-Кассовый Чек [07:08:04]line ПРОДАЖА [07:08:04]line ТРК (МРК, ГНК) : 33 [07:08:04]line Товар: 2710124130 [07:08:04]line Аи-92-К-5 [07:08:04]line 7.490 * 66.80 [07:08:04]line = 500.33 [07:08:04]line НДС 12% НСП 1% [07:08:04]line > о реализуемом товаре [07:08:04]line ОКРУГЛЕНИЕ: -0.33 [07:08:04]line ИТОГО: 500.00 [07:08:04]line Внесено: 500.00 [07:08:04]line СДАЧА: 0.00 [07:08:04]line НСП 1% : 4.43 [07:08:04]line НДС 12% : 53.13 [07:08:04]line Наличными: 500.00 [07:08:04]line Безнал.: 0.00 [07:08:04]line Место: АЗС № 91 "Партнер Нефть" [07:08:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:08:04]line СНО: Общий режим [07:08:04]line Чек 13 14.05.2024 07:08 [07:08:04]line Смена: 355 ФФД: 1.0 [07:08:04]line ЗНМ: 0300000119 [07:08:04]line РНМ: 0000000000091845 [07:08:04]line Версия ККМ: 001 [07:08:04]line ФМ: 0000000000871829 [07:08:04]line ФД: 67006 [07:08:04]line ФПД: 160918339624146 [07:08:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T070805&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67006&fm=160918339624146&tin=02508201610067®Number=0000000000091845&sum=50000 [07:08:04]written 0, free lines is 4095 [07:08:04]OFD Sender: Processing packet 67006 [packets to send 35, broken 34] [07:08:04]ProducePacketName [07:08:04]name=ofd_packets/00067006 [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]Connected sock=10 [07:08:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 41 3E 07 01 C5 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0D 00 00 00 F4 03 04 00 D5 0D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BE 05 01 00 35 04 06 00 92 5A B8 78 9C D2 EC 38 A8 B4 94 DA 81 C4 [07:08:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 D5 FA 47 00 1A 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 BE 05 01 00 F4 03 04 00 B6 B5 42 66 B6 04 01 00 00 2C 36 0E 6C E6 79 94 2F [07:08:04]CommunicateWithHost err = 0 [07:08:04]CheckOFDResponse [07:08:04]1017 (14) - 77093643461234 [07:08:04]1041 (16) - 0000000000871829 [07:08:04]1040 (4) - 67006 [07:08:04]1012 (4) - 14.05.2024 00:52 [07:08:04]1206 (1) - 0 [07:08:04]OFD Sender: Remove packet 67006 [07:08:04]ProducePacketName [07:08:04]name=ofd_packets/00067006 [07:08:04]NVStorageDeleteData [07:08:05]Write to MH i2c: 01 00 00 D9 10 E9 [07:08:05]Write i2c OK [07:08:05]MH_I2C_Read... [07:08:05]Read from MH i2c: 01 [07:08:05]MH_I2C_Read... [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 10 00 00 00 00 00 C3 0C BF [07:08:05]RasterBufferAndPrint [07:08:05]line [07:08:05]line [07:08:05]line [07:08:05]line [07:08:05]line [07:08:05]written 0, free lines is 3272 [07:08:05]MH_Cut [07:08:05]Write to MH i2c: D1 01 00 E0 10 01 C2 [07:08:05]Write i2c OK [07:08:05]MH_I2C_Read... [07:08:05]Read from MH i2c: D1 [07:08:05]MH_I2C_Read... [07:08:05]Read from MH i2c: D1 01 00 [07:08:05]MH_I2C_Read... [07:08:05]Read from MH i2c: D1 01 00 E0 10 00 C1 [07:08:05]Write to MH i2c: 01 00 00 E1 10 F1 [07:08:05]Write i2c OK [07:08:05]MH_I2C_Read... [07:08:05]OFD Sender: No OFD packet to send [07:08:05]*** Cut start [07:08:05]*** Purtial cut [07:08:05]*** CUTSNS_PIN = 0 [07:08:06]*** Stage 1: CUTSNS_PIN = 1 [07:08:07]Read from MH i2c: 01 [07:08:07]MH_I2C_Read... [07:08:07]*** Stop cut motor [07:08:07]*** Cut end [07:08:07]Read from MH i2c: 01 07 00 [07:08:07]MH_I2C_Read... [07:08:07]Read from MH i2c: 01 07 00 E1 10 00 00 00 00 00 FF 0F 06 [07:08:07]process_action close_receipt done [07:08:07]requested_data is exist [07:08:07]produce_requested_data [07:08:07]requested_item fm.sn is exist - process it [07:08:07]wFMCommunicate request_size=4 [07:08:07]MH_SAM_APDU [07:08:07]CAPDU: 80 11 00 00 [07:08:07]Write to MH i2c: E2 08 00 E2 10 80 11 00 00 00 00 00 00 6C [07:08:07]Write i2c OK [07:08:07]MH_I2C_Read... [07:08:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:08]Read from MH i2c: E2 [07:08:08]MH_I2C_Read... [07:08:08]Read from MH i2c: E2 17 00 [07:08:08]MH_I2C_Read... [07:08:08]Read from MH i2c: E2 17 00 E2 10 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:08: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:08:08]wFMCommunicate OK [07:08:08]requested_item fd.num is exist - process it [07:08:08]SAM_PROTO_GetFieldsCounters [07:08:08]wFMCommunicate request_size=4 [07:08:08]MH_SAM_APDU [07:08:08]CAPDU: 80 13 00 00 [07:08:08]Write to MH i2c: E2 08 00 E3 10 80 13 00 00 00 00 00 00 6F [07:08:08]Write i2c OK [07:08:08]MH_I2C_Read... [07:08:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:08:08]Read from MH i2c: E2 [07:08:08]MH_I2C_Read... [07:08:08]Read from MH i2c: E2 62 00 [07:08:08]MH_I2C_Read... [07:08:08]Read from MH i2c: E2 62 00 E3 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 BE 05 01 00 0E 04 04 00 63 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 E4 [07:08: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 BE 05 01 00 0E 04 04 00 63 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:08]wFMCommunicate OK [07:08:08]SAM_PROTO_GetFieldsCounters done [07:08:08]requested_item shift.num is exist - process it [07:08:08]requested_item shift.opened is exist - process it [07:08:08]req_shift_opened [07:08:08]FM_GetShiftState [07:08:08]SAM_PROTO_GetShiftState [07:08:08]wFMCommunicate request_size=4 [07:08:08]MH_SAM_APDU [07:08:08]CAPDU: 80 13 01 00 [07:08:08]Write to MH i2c: E2 08 00 E4 10 80 13 01 00 00 00 00 00 71 [07:08:08]Write i2c OK [07:08:08]MH_I2C_Read... [07:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:08]Read from MH i2c: E2 [07:08:08]MH_I2C_Read... [07:08:08]Read from MH i2c: E2 0E 00 [07:08:08]MH_I2C_Read... [07:08:08]Read from MH i2c: E2 0E 00 E4 10 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 39 [07:08:08]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [07:08:08]wFMCommunicate OK [07:08:08]SAM_PROTO_GetShiftState done [07:08:08]FM_GetShiftState done [07:08:08]req_shift_opened done [07:08:08]requested_item shift.open_date is exist - process it [07:08:08]req_shift_open_date [07:08:08]req_shift_open_date done [07:08:08]produce_requested_data done [07:08:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67006,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [07:08:08]process_action_free close_receipt [07:08:08]json_value_free [07:08:08]json_value_free done [07:08:08]process_json_proto returns [07:08:08]Send response to host [07:08:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67006,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [07:08:08]free response buf [07:08:08]execute_script done [07:08:08]execute_script returns [07:08:08]free content buf [07:08:08]Sock 8.Close socket [07:08:08]Sock 8.Thread stoped [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:16]accept exits with 9 [07:08:16]New connection [07:08:16]New thread 3066617188 created [07:08:16]Thread 3066760548 joined [07:08:16]Waiting for new connection... [07:08:16] Sock 9.Parse request [07:08:16]Sock 9.Check first char [07:08:16]Sock 9.First char is OK [07:08:16]request: POST /json_proto HTTP/1.0 [07:08:16]Method: POST [07:08:16]URL: /json_proto [07:08:16]Method is POST - this is cgi request [07:08:16]url: /json_proto [07:08:16]query_string will be loaded in cgi processing [07:08:16]execute_cgi json_proto POST (null) [07:08:16]execute_cgi path=json_proto method=POST [07:08:16]POST find Content-Length [07:08:16]Host: 172.17.41.195:8080 [07:08:16]Content-Length: 682 [07:08:16]Content-Type: application/json [07:08:16] [07:08:16]POST finish read [07:08:16]Found Content-Length = 682 [07:08:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 29.390, "sum" : 1963.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1963.00, "payments": [ { "type": 0, "sum" : 1963.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:08:16]execute_script... [07:08: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)506820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 29.390, "sum" : 1963.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1963.00, "payments": [ { "type": 0, "sum" : 1963.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:08:16]POST & json_proto [07:08:16]process_json_proto [07:08:16]json parsed OK: [07:08:16]protocol is kg_v1.0 [07:08:16]action value=close_receipt [07:08:16]process_action close_receipt [07:08:16]cmd_close_receipt [07:08:16]MH_GetDate [07:08:16]Write to MH i2c: F0 00 00 E5 10 E4 [07:08:16]Write i2c OK [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: F0 [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: F0 09 00 [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: F0 09 00 E5 10 00 E3 0D 43 66 FC 21 6F 64 76 [07:08:16]GetLastDocTimeStamp 1715670485 [07:08:16]current date 1715670499 [07:08:16]FM_GetShiftState [07:08:16]SAM_PROTO_GetShiftState [07:08:16]wFMCommunicate request_size=4 [07:08:16]MH_SAM_APDU [07:08:16]CAPDU: 80 13 01 00 [07:08:16]Write to MH i2c: E2 08 00 E6 10 80 13 01 00 00 00 00 00 73 [07:08:16]Write i2c OK [07:08:16]MH_I2C_Read... [07:08:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:16]Read from MH i2c: E2 [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: E2 0E 00 [07:08:16]MH_I2C_Read... [07:08:16]Read from MH i2c: E2 0E 00 E6 10 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 3B [07:08:16]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [07:08:16]wFMCommunicate OK [07:08:16]SAM_PROTO_GetShiftState done [07:08:16]FM_GetShiftState done [07:08:16]opened in 1715646054 [07:08:16]opened+sec_in_day 1715732454 [07:08:16]quantity*price = 196325 [07:08:16]sum+1 = 196326 [07:08:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1963.00 Внесено: 2000.00 СДАЧА: 37.00 НСП 1% : 17.37 НДС 12% : 208.49 Наличными: 1963.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 14 14.05.2024 07:08 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67007 ФПД: 148719479987194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T070819&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67007&fm=148719479987194&tin=02508201610067®Number=0000000000091845&sum=196300 [07:08:17]StoreToDocumentArchive [07:08:17]shift 355 fd 67007 [07:08:17]save to /storage/0355/doc_00067007 [07:08:17]save last doc name /storage/0355/doc_00067007 to /storage/kkm_last_doc_name [07:08:17]save OK [07:08:17]Clear old archive folders... [07:08:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:08:17]tlvbuf is 00386D90 [07:08:17]SAM_PROTO_ClearQueue [07:08:17]wFMCommunicate request_size=4 [07:08:17]MH_SAM_APDU [07:08:17]CAPDU: 80 09 00 00 [07:08:17]Write to MH i2c: E2 08 00 F3 10 80 09 00 00 00 00 00 00 75 [07:08:17]Write i2c OK [07:08:17]MH_I2C_Read... [07:08:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:08:17]Read from MH i2c: E2 [07:08:17]MH_I2C_Read... [07:08:17]Read from MH i2c: E2 03 00 [07:08:17]MH_I2C_Read... [07:08:17]Read from MH i2c: E2 03 00 F3 10 00 90 00 77 [07:08:17]RAPDU: 90 00 [07:08:17]wFMCommunicate OK [07:08:17]SAM_PROTO_ClearQueue done [07:08:17]KKMCreateOFDPacket [07:08:17]OFDProtocolAddRootSTLVToBuf [07:08:17]FM_MakeSignedData [07:08:17]FM_MakeSignedData [07:08:17]SAM_PROTO_SignData [07:08:17]wFMCommunicate request_size=4 [07:08:17]MH_SAM_APDU [07:08:17]CAPDU: 80 0D 01 02 [07:08:17]Write to MH i2c: E2 08 00 F4 10 80 0D 01 02 00 00 00 00 7D [07:08:17]Write i2c OK [07:08:17]MH_I2C_Read... [07:08:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:08:17]Read from MH i2c: E2 [07:08:17]MH_I2C_Read... [07:08:17]Read from MH i2c: E2 03 00 [07:08:17]MH_I2C_Read... [07:08:17]Read from MH i2c: E2 03 00 F4 10 00 90 00 78 [07:08:17]RAPDU: 90 00 [07:08:17]wFMCommunicate OK [07:08:17]wFMCommunicate request_size=255 [07:08:17]MH_SAM_APDU [07:08: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 CE 72 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E5 FE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC FE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 51 00 00 00 00 07 04 06 00 CC FE 02 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 E3 0D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BF 05 01 00 35 04 06 00 87 [07:08:17]Write to MH i2c: E2 02 01 F5 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 CE 72 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E5 FE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC FE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 51 00 00 00 00 07 04 06 00 CC FE 02 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 E3 0D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BF 05 01 00 35 04 06 00 87 00 00 63 [07:08:17]Write i2c OK [07:08:17]MH_I2C_Read... [07:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:17]Read from MH i2c: E2 [07:08:17]MH_I2C_Read... [07:08:17]Read from MH i2c: E2 03 00 [07:08:17]MH_I2C_Read... [07:08:17]Read from MH i2c: E2 03 00 F5 10 00 90 00 79 [07:08:17]RAPDU: 90 00 [07:08:17]wFMCommunicate OK [07:08:17]wFMCommunicate request_size=10 [07:08:17]MH_SAM_APDU [07:08:17]CAPDU: 80 0D 02 02 05 42 73 C6 9B FA [07:08:17]Write to MH i2c: E2 0D 00 F6 10 80 0D 02 02 05 00 42 73 C6 9B FA 00 00 9A [07:08:17]Write i2c OK [07:08:17]MH_I2C_Read... [07:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:17]Read from MH i2c: E2 [07:08:17]MH_I2C_Read... [07:08:17]Read from MH i2c: E2 03 00 [07:08:17]MH_I2C_Read... [07:08:17]Read from MH i2c: E2 03 00 F6 10 00 90 00 7A [07:08:17]RAPDU: 90 00 [07:08:17]wFMCommunicate OK [07:08:17]wFMCommunicate request_size=4 [07:08:17]MH_SAM_APDU [07:08:17]CAPDU: 80 0D 03 02 [07:08:17]Write to MH i2c: E2 08 00 F7 10 80 0D 03 02 00 00 00 00 82 [07:08:17]Write i2c OK [07:08:17]MH_I2C_Read... [07:08:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:08:17]Read from MH i2c: E2 [07:08:17]MH_I2C_Read... [07:08:17]Read from MH i2c: E2 0B 00 [07:08:17]MH_I2C_Read... [07:08:17]Read from MH i2c: E2 0B 00 F7 10 00 A5 4A 26 3F E2 1C D8 24 90 00 D1 [07:08:17]RAPDU: A5 4A 26 3F E2 1C D8 24 90 00 [07:08:17]wFMCommunicate OK [07:08:17]SAM_PROTO_SignData done [07:08:17]FM_MakeSignedData done [07:08:17]CreateOFDProtocolMessage [07:08:17]wFMCommunicate request_size=4 [07:08:17]MH_SAM_APDU [07:08:17]CAPDU: 80 11 00 00 [07:08:17]Write to MH i2c: E2 08 00 F8 10 80 11 00 00 00 00 00 00 82 [07:08:17]Write i2c OK [07:08:17]MH_I2C_Read... [07:08:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:17]Read from MH i2c: E2 [07:08:17]MH_I2C_Read... [07:08:17]Read from MH i2c: E2 17 00 [07:08:17]MH_I2C_Read... [07:08:17]Read from MH i2c: E2 17 00 F8 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D8 [07:08:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:08:17]wFMCommunicate OK [07:08:17]CreateOFDProtocolMessage done [07:08:17]OFDSenderStorePacket 67007 [07:08:17]StoreOFDPacket docnum=67007 [07:08: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 75 BD 07 01 75 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 72 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E5 FE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC FE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 51 00 00 00 00 07 04 06 00 CC FE 02 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 E3 0D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BF 05 01 00 35 04 06 00 87 42 73 C6 9B FA A5 4A 26 3F E2 1C D8 24 [07:08:17]CheckFolder [07:08:17]dirname=/storage/ofd_packets [07:08:17]CheckFolder done [07:08:17]ProducePacketName [07:08:17]name=ofd_packets/00067007 [07:08:17]NVStorageSaveData ofd_packets/00067007 [07:08:17]File name is /storage/ofd_packets/00067007 [07:08:17]Write 301 bytes [07:08:17]NVStorageSaveData done [07:08:17]OFDSenderStorePacket done [07:08:17]KKMCreateOFDPacket done [07:08:17]NVStorageSaveData kkm_last_timestamp [07:08:17]File name is /storage/kkm_last_timestamp [07:08:17]Write 4 bytes [07:08:17]NVStorageSaveData done [07:08:17]ExternCall_PrintAddStr [07:08:17]wPrintStart [07:08:17]Write to MH i2c: 01 00 00 F9 10 09 [07:08:17]Write i2c OK [07:08:17]MH_I2C_Read... [07:08:17]Read from MH i2c: 01 [07:08:17]MH_I2C_Read... [07:08:17]Read from MH i2c: 01 07 00 [07:08:17]MH_I2C_Read... [07:08:17]Read from MH i2c: 01 07 00 F9 10 00 00 00 00 00 FF 0F 1E [07:08:17]RasterBufferAndPrint [07:08:17]line Счет N : (1)506820 [07:08:17]line ИНН: 02508201610067 [07:08:17]line Контрольно-Кассовый Чек [07:08:17]line ПРОДАЖА [07:08:17]line ТРК (МРК, ГНК) : 43 [07:08:17]line Товар: 2710124130 [07:08:17]line Аи-92-К-5 [07:08:17]line 29.390 * 66.80 [07:08:17]line = 1963.25 [07:08:17]line НДС 12% НСП 1% [07:08:17]line > о реализуемом товаре [07:08:17]line ОКРУГЛЕНИЕ: -0.25 [07:08:17]line ИТОГО: 1963.00 [07:08:17]line Внесено: 2000.00 [07:08:17]line СДАЧА: 37.00 [07:08:17]line НСП 1% : 17.37 [07:08:17]line НДС 12% : 208.49 [07:08:17]line Наличными: 1963.00 [07:08:17]line Безнал.: 0.00 [07:08:17]line Место: АЗС № 91 "Партнер Нефть" [07:08:17]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:08:17]line СНО: Общий режим [07:08:17]line Чек 14 14.05.2024 07:08 [07:08:17]line Смена: 355 ФФД: 1.0 [07:08:17]line ЗНМ: 0300000119 [07:08:17]line РНМ: 0000000000091845 [07:08:17]line Версия ККМ: 001 [07:08:17]line ФМ: 0000000000871829 [07:08:17]line ФД: 67007 [07:08:17]line ФПД: 148719479987194 [07:08:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T070819&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67007&fm=148719479987194&tin=02508201610067®Number=0000000000091845&sum=196300 [07:08:18]OFD Sender: Processing packet 67007 [packets to send 35, broken 34] [07:08:18]ProducePacketName [07:08:18]name=ofd_packets/00067007 [07:08:18]OFD Sender: To server: pG, [07:08:18]CommunicateWithHost lk.salyk.kg:30040 [07:08:18]ConnectInit lk.salyk.kg [07:08:18]written 0, free lines is 4095 [07:08:18]Connected sock=10 [07:08: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 75 BD 07 01 75 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 72 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E5 FE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC FE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 51 00 00 00 00 07 04 06 00 CC FE 02 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 E3 0D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 BF 05 01 00 35 04 06 00 87 42 73 C6 9B FA A5 4A 26 3F E2 1C D8 24 [07:08: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 62 B2 47 00 E7 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 BF 05 01 00 F4 03 04 00 C4 B5 42 66 B6 04 01 00 00 42 3D 17 20 CB 58 6A D9 [07:08:18]CommunicateWithHost err = 0 [07:08:18]CheckOFDResponse [07:08:18]1017 (14) - 77093643461234 [07:08:18]1041 (16) - 0000000000871829 [07:08:18]1040 (4) - 67007 [07:08:18]1012 (4) - 14.05.2024 00:52 [07:08:18]1206 (1) - 0 [07:08:18]OFD Sender: Remove packet 67007 [07:08:18]ProducePacketName [07:08:18]name=ofd_packets/00067007 [07:08:18]NVStorageDeleteData [07:08:18]Write to MH i2c: 01 00 00 23 11 34 [07:08:18]Write i2c OK [07:08:18]MH_I2C_Read... [07:08:18]Read from MH i2c: 01 [07:08:18]MH_I2C_Read... [07:08:18]Read from MH i2c: 01 07 00 [07:08:18]MH_I2C_Read... [07:08:18]Read from MH i2c: 01 07 00 23 11 00 00 00 00 00 DE 0C 25 [07:08:18]RasterBufferAndPrint [07:08:18]line [07:08:18]line [07:08:18]line [07:08:18]line [07:08:18]line [07:08:18]written 0, free lines is 3301 [07:08:18]MH_Cut [07:08:18]Write to MH i2c: D1 01 00 2A 11 01 0D [07:08:18]Write i2c OK [07:08:18]MH_I2C_Read... [07:08:18]Read from MH i2c: D1 [07:08:18]MH_I2C_Read... [07:08:18]Read from MH i2c: D1 01 00 [07:08:18]MH_I2C_Read... [07:08:18]Read from MH i2c: D1 01 00 2A 11 00 0C [07:08:18]Write to MH i2c: 01 00 00 2B 11 3C [07:08:18]Write i2c OK [07:08:18]MH_I2C_Read... [07:08:19]OFD Sender: No OFD packet to send [07:08:19]*** Cut start [07:08:19]*** Purtial cut [07:08:19]*** Stage 1: CUTSNS_PIN = 1 [07:08:19]Read from MH i2c: 01 [07:08:19]MH_I2C_Read... [07:08:19]*** Stop cut motor [07:08:19]*** Cut end [07:08:19]Read from MH i2c: 01 07 00 [07:08:19]MH_I2C_Read... [07:08:19]Read from MH i2c: 01 07 00 2B 11 00 00 00 00 00 FF 0F 51 [07:08:19]process_action close_receipt done [07:08:19]requested_data is exist [07:08:19]produce_requested_data [07:08:19]requested_item fm.sn is exist - process it [07:08:19]wFMCommunicate request_size=4 [07:08:19]MH_SAM_APDU [07:08:19]CAPDU: 80 11 00 00 [07:08:19]Write to MH i2c: E2 08 00 2C 11 80 11 00 00 00 00 00 00 B7 [07:08:19]Write i2c OK [07:08:19]MH_I2C_Read... [07:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:19]Read from MH i2c: E2 [07:08:19]MH_I2C_Read... [07:08:19]Read from MH i2c: E2 17 00 [07:08:19]MH_I2C_Read... [07:08:19]Read from MH i2c: E2 17 00 2C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0D [07:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:08:19]wFMCommunicate OK [07:08:19]requested_item fd.num is exist - process it [07:08:19]SAM_PROTO_GetFieldsCounters [07:08:19]wFMCommunicate request_size=4 [07:08:19]MH_SAM_APDU [07:08:19]CAPDU: 80 13 00 00 [07:08:19]Write to MH i2c: E2 08 00 2D 11 80 13 00 00 00 00 00 00 BA [07:08:19]Write i2c OK [07:08:19]MH_I2C_Read... [07:08:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:08:20]Read from MH i2c: E2 [07:08:20]MH_I2C_Read... [07:08:20]Read from MH i2c: E2 62 00 [07:08:20]MH_I2C_Read... [07:08:20]Read from MH i2c: E2 62 00 2D 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 BF 05 01 00 0E 04 04 00 63 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 33 [07:08: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 BF 05 01 00 0E 04 04 00 63 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:08:20]wFMCommunicate OK [07:08:20]SAM_PROTO_GetFieldsCounters done [07:08:20]requested_item shift.num is exist - process it [07:08:20]requested_item shift.opened is exist - process it [07:08:20]req_shift_opened [07:08:20]FM_GetShiftState [07:08:20]SAM_PROTO_GetShiftState [07:08:20]wFMCommunicate request_size=4 [07:08:20]MH_SAM_APDU [07:08:20]CAPDU: 80 13 01 00 [07:08:20]Write to MH i2c: E2 08 00 2E 11 80 13 01 00 00 00 00 00 BC [07:08:20]Write i2c OK [07:08:20]MH_I2C_Read... [07:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:20]Read from MH i2c: E2 [07:08:20]MH_I2C_Read... [07:08:20]Read from MH i2c: E2 0E 00 [07:08:20]MH_I2C_Read... [07:08:20]Read from MH i2c: E2 0E 00 2E 11 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 84 [07:08:20]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [07:08:20]wFMCommunicate OK [07:08:20]SAM_PROTO_GetShiftState done [07:08:20]FM_GetShiftState done [07:08:20]req_shift_opened done [07:08:20]requested_item shift.open_date is exist - process it [07:08:20]req_shift_open_date [07:08:20]req_shift_open_date done [07:08:20]produce_requested_data done [07:08:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67007,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [07:08:20]process_action_free close_receipt [07:08:20]json_value_free [07:08:20]json_value_free done [07:08:20]process_json_proto returns [07:08:20]Send response to host [07:08:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67007,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [07:08:20]free response buf [07:08:20]execute_script done [07:08:20]execute_script returns [07:08:20]free content buf [07:08:20]Sock 9.Close socket [07:08:20]Sock 9.Thread stoped [07:08:24]OFD Sender: No OFD packet to send [07:08:29]OFD Sender: No OFD packet to send [07:08:34]OFD Sender: No OFD packet to send [07:08:39]OFD Sender: No OFD packet to send [07:08:44]OFD Sender: No OFD packet to send [07:08:49]OFD Sender: No OFD packet to send [07:08:54]OFD Sender: No OFD packet to send [07:08:59]OFD Sender: No OFD packet to send [07:09:04]OFD Sender: No OFD packet to send [07:09:09]OFD Sender: No OFD packet to send [07:09:14]OFD Sender: No OFD packet to send [07:09:19]OFD Sender: No OFD packet to send [07:09:24]OFD Sender: No OFD packet to send [07:09:29]OFD Sender: No OFD packet to send [07:09:34]OFD Sender: No OFD packet to send [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:29]OFD Sender: No OFD packet to send [07:10:34]OFD Sender: No OFD packet to send [07:10:39]OFD Sender: No OFD packet to send [07:10:44]OFD Sender: No OFD packet to send [07:10:49]OFD Sender: No OFD packet to send [07:10:54]OFD Sender: No OFD packet to send [07:10:59]OFD Sender: No OFD packet to send [07:11:04]OFD Sender: No OFD packet to send [07:11:09]OFD Sender: No OFD packet to send [07:11:14]OFD Sender: No OFD packet to send [07:11:19]OFD Sender: No OFD packet to send [07:11:24]OFD Sender: No OFD packet to send [07:11:29]OFD Sender: No OFD packet to send [07:11:34]OFD Sender: No OFD packet to send [07:11:39]OFD Sender: No OFD packet to send [07:11:44]OFD Sender: No OFD packet to send [07:11:49]OFD Sender: No OFD packet to send [07:11:54]OFD Sender: No OFD packet to send [07:11:59]OFD Sender: No OFD packet to send [07:12:04]OFD Sender: No OFD packet to send [07:12:09]OFD Sender: No OFD packet to send [07:12:14]OFD Sender: No OFD packet to send [07:12:19]OFD Sender: No OFD packet to send [07:12:24]OFD Sender: No OFD packet to send [07:12:29]OFD Sender: No OFD packet to send [07:12:34]OFD Sender: No OFD packet to send [07:12:39]OFD Sender: No OFD packet to send [07:12:44]OFD Sender: No OFD packet to send [07:12:49]OFD Sender: No OFD packet to send [07:12:54]OFD Sender: No OFD packet to send [07:12:59]OFD Sender: No OFD packet to send [07:13:04]OFD Sender: No OFD packet to send [07:13:09]OFD Sender: No OFD packet to send [07:13:14]OFD Sender: No OFD packet to send [07:13:19]OFD Sender: No OFD packet to send [07:13:24]OFD Sender: No OFD packet to send [07:13:29]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:49]OFD Sender: No OFD packet to send [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:14]OFD Sender: No OFD packet to send [07:14:19]OFD Sender: No OFD packet to send [07:14:24]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:29]OFD Sender: No OFD packet to send [07:21:34]OFD Sender: No OFD packet to send [07:21:39]OFD Sender: No OFD packet to send [07:21:44]OFD Sender: No OFD packet to send [07:21:49]OFD Sender: No OFD packet to send [07:21:54]OFD Sender: No OFD packet to send [07:21:59]OFD Sender: No OFD packet to send [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:29]OFD Sender: No OFD packet to send [07:22:34]OFD Sender: No OFD packet to send [07:22:39]OFD Sender: No OFD packet to send [07:22:42]accept exits with 8 [07:22:42]New connection [07:22:42]New thread 3066760548 created [07:22:42]Thread 3066617188 joined [07:22:42]Waiting for new connection... [07:22:42] Sock 8.Parse request [07:22:42]Sock 8.Check first char [07:22:42]Sock 8.First char is OK [07:22:42]request: POST /json_proto HTTP/1.0 [07:22:42]Method: POST [07:22:42]URL: /json_proto [07:22:42]Method is POST - this is cgi request [07:22:42]url: /json_proto [07:22:42]query_string will be loaded in cgi processing [07:22:42]execute_cgi json_proto POST (null) [07:22:42]execute_cgi path=json_proto method=POST [07:22:42]POST find Content-Length [07:22:42]Host: 172.17.41.195:8080 [07:22:42]Content-Length: 1187 [07:22:42]Content-Type: application/json [07:22:42] [07:22:42]POST finish read [07:22:42]Found Content-Length = 1187 [07:22:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506822\u000A14.05.2024 07: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 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3797530\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:22:42]execute_script... [07:22:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506822\u000A14.05.2024 07: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 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3797530\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:22:42]POST & json_proto [07:22:42]process_json_proto [07:22:42]json parsed OK: [07:22:42]protocol is kg_v1.0 [07:22:42]action value=print_text [07:22:42]process_action print_text [07:22:42]cmd_print_text [07:22:42]ExternCall_PrintAddStr [07:22:42]wPrintStart [07:22:42]Write to MH i2c: 01 00 00 2F 11 40 [07:22:42]Write i2c OK [07:22:42]MH_I2C_Read... [07:22:42]Read from MH i2c: 01 [07:22:42]MH_I2C_Read... [07:22:42]Read from MH i2c: 01 07 00 [07:22:42]MH_I2C_Read... [07:22:42]Read from MH i2c: 01 07 00 2F 11 00 00 00 00 00 FF 0F 55 [07:22:42]RasterBufferAndPrint [07:22:42]line *****ТОВАРНЫЙ ЧЕК***** [07:22:42]line АЗС-91 [07:22:42]line Партнер нефть [07:22:42]line 02508201610067 [07:22:42]line Кассир : Адишов И. [07:22:42]line Счет N : (1)506822 [07:22:42]line 14.05.2024 07:05 [07:22:42]line ПРОДАЖА [07:22:42]line ТРК (МРК, ГНК): 21 [07:22:42]line Вид ГСМ : 2710194210 [07:22:42]line ДТ-К-5 [07:22:42]line 20.000 x 74.70 [07:22:42]line ИТОГ: 1494.00 [07:22:42]line Тип оплаты: Талоны: Топливные Талоны [07:22:42]line 3797530 [07:22:42]line ______________________ [07:22:42]line (подпись) [07:22:42]written 0, free lines is 4095 [07:22:43]Write to MH i2c: 01 00 00 43 11 54 [07:22:43]Write i2c OK [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: 01 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: 01 07 00 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: 01 07 00 43 11 00 00 00 00 00 0E 0E 77 [07:22:43]RasterBufferAndPrint [07:22:43]line [07:22:43]line [07:22:43]line [07:22:43]line [07:22:43]line [07:22:43]written 0, free lines is 3599 [07:22:43]MH_Cut [07:22:43]Write to MH i2c: D1 01 00 4A 11 01 2D [07:22:43]Write i2c OK [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: D1 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: D1 01 00 [07:22:43]MH_I2C_Read... [07:22:43]Read from MH i2c: D1 01 00 4A 11 00 2C [07:22:43]Write to MH i2c: 01 00 00 4B 11 5C [07:22:43]Write i2c OK [07:22:43]MH_I2C_Read... [07:22:43]*** Cut start [07:22:43]*** Purtial cut [07:22:43]*** CUTSNS_PIN = 0 [07:22:43]*** Stage 1: CUTSNS_PIN = 1 [07:22:44]OFD Sender: No OFD packet to send [07:22:45]Read from MH i2c: 01 [07:22:45]MH_I2C_Read... [07:22:45]*** Stop cut motor [07:22:45]*** Cut end [07:22:45]Read from MH i2c: 01 07 00 [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: 01 07 00 4B 11 00 00 00 00 00 FF 0F 71 [07:22:45]process_action print_text done [07:22:45]requested_data is exist [07:22:45]produce_requested_data [07:22:45]requested_item fm.sn is exist - process it [07:22:45]wFMCommunicate request_size=4 [07:22:45]MH_SAM_APDU [07:22:45]CAPDU: 80 11 00 00 [07:22:45]Write to MH i2c: E2 08 00 4C 11 80 11 00 00 00 00 00 00 D7 [07:22:45]Write i2c OK [07:22:45]MH_I2C_Read... [07:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:45]Read from MH i2c: E2 [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: E2 17 00 [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: E2 17 00 4C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2D [07:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:22:45]wFMCommunicate OK [07:22:45]requested_item fd.num is exist - process it [07:22:45]SAM_PROTO_GetFieldsCounters [07:22:45]wFMCommunicate request_size=4 [07:22:45]MH_SAM_APDU [07:22:45]CAPDU: 80 13 00 00 [07:22:45]Write to MH i2c: E2 08 00 4D 11 80 13 00 00 00 00 00 00 DA [07:22:45]Write i2c OK [07:22:45]MH_I2C_Read... [07:22:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:22:45]Read from MH i2c: E2 [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: E2 62 00 [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: E2 62 00 4D 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 BF 05 01 00 0E 04 04 00 63 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 53 [07:22: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 BF 05 01 00 0E 04 04 00 63 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:22:45]wFMCommunicate OK [07:22:45]SAM_PROTO_GetFieldsCounters done [07:22:45]requested_item shift.num is exist - process it [07:22:45]requested_item shift.opened is exist - process it [07:22:45]req_shift_opened [07:22:45]FM_GetShiftState [07:22:45]SAM_PROTO_GetShiftState [07:22:45]wFMCommunicate request_size=4 [07:22:45]MH_SAM_APDU [07:22:45]CAPDU: 80 13 01 00 [07:22:45]Write to MH i2c: E2 08 00 4E 11 80 13 01 00 00 00 00 00 DC [07:22:45]Write i2c OK [07:22:45]MH_I2C_Read... [07:22:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:45]Read from MH i2c: E2 [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: E2 0E 00 [07:22:45]MH_I2C_Read... [07:22:45]Read from MH i2c: E2 0E 00 4E 11 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A4 [07:22:45]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [07:22:45]wFMCommunicate OK [07:22:45]SAM_PROTO_GetShiftState done [07:22:45]FM_GetShiftState done [07:22:45]req_shift_opened done [07:22:45]requested_item shift.open_date is exist - process it [07:22:45]req_shift_open_date [07:22:45]req_shift_open_date done [07:22:45]produce_requested_data done [07:22:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67007,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [07:22:45]process_action_free print_text [07:22:45]json_value_free [07:22:45]json_value_free done [07:22:45]process_json_proto returns [07:22:45]Send response to host [07:22:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67007,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [07:22:45]free response buf [07:22:45]execute_script done [07:22:45]execute_script returns [07:22:45]free content buf [07:22:45]Sock 8.Close socket [07:22:45]Sock 8.Thread stoped [07:22:49]OFD Sender: No OFD packet to send [07:22:54]OFD Sender: No OFD packet to send [07:22:59]OFD Sender: No OFD packet to send [07:23:04]OFD Sender: No OFD packet to send [07:23:09]OFD Sender: No OFD packet to send [07:23:14]OFD Sender: No OFD packet to send [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:55]OFD Sender: No OFD packet to send [07:24:56]accept exits with 9 [07:24:56]New connection [07:24:56]New thread 3066617188 created [07:24:56]Thread 3066760548 joined [07:24:56]Waiting for new connection... [07:24:56] Sock 9.Parse request [07:24:56]Sock 9.Check first char [07:24:56]Sock 9.First char is OK [07:24:56]request: POST /json_proto HTTP/1.0 [07:24:56]Method: POST [07:24:56]URL: /json_proto [07:24:56]Method is POST - this is cgi request [07:24:56]url: /json_proto [07:24:56]query_string will be loaded in cgi processing [07:24:56]execute_cgi json_proto POST (null) [07:24:56]execute_cgi path=json_proto method=POST [07:24:56]POST find Content-Length [07:24:56]Host: 172.17.41.195:8080 [07:24:56]Content-Length: 1179 [07:24:56]Content-Type: application/json [07:24:56] [07:24:56]POST finish read [07:24:56]Found Content-Length = 1179 [07:24:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506823\u000A14.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 20.090 x 74.70\u000A\u0418\u0422\u041E\u0413: 1500.72\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:56]execute_script... [07:24:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506823\u000A14.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 20.090 x 74.70\u000A\u0418\u0422\u041E\u0413: 1500.72\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:56]POST & json_proto [07:24:56]process_json_proto [07:24:56]json parsed OK: [07:24:56]protocol is kg_v1.0 [07:24:56]action value=print_text [07:24:56]process_action print_text [07:24:56]cmd_print_text [07:24:56]ExternCall_PrintAddStr [07:24:56]wPrintStart [07:24:56]Write to MH i2c: 01 00 00 4F 11 60 [07:24:56]Write i2c OK [07:24:56]MH_I2C_Read... [07:24:56]Read from MH i2c: 01 [07:24:56]MH_I2C_Read... [07:24:56]Read from MH i2c: 01 07 00 [07:24:56]MH_I2C_Read... [07:24:56]Read from MH i2c: 01 07 00 4F 11 00 00 00 00 00 FF 0F 75 [07:24:56]RasterBufferAndPrint [07:24:56]line *****ТОВАРНЫЙ ЧЕК***** [07:24:56]line АЗС-91 [07:24:56]line Партнер нефть [07:24:56]line 02508201610067 [07:24:56]line Кассир : Адишов И. [07:24:56]line Счет N : (1)506823 [07:24:56]line 14.05.2024 07:07 [07:24:56]line ПРОДАЖА [07:24:56]line ТРК (МРК, ГНК): 11 [07:24:56]line Вид ГСМ : 2710194210 [07:24:56]line ДТ-К-5 [07:24:56]line 20.090 x 74.70 [07:24:56]line ИТОГ: 1500.72 [07:24:56]line Тип оплаты: Талоны: Топливная Карта [07:24:56]line 02750 [07:24:56]line ______________________ [07:24:56]line (подпись) [07:24:56]written 0, free lines is 4095 [07:24:56]Write to MH i2c: 01 00 00 63 11 74 [07:24:56]Write i2c OK [07:24:56]MH_I2C_Read... [07:24:56]Read from MH i2c: 01 [07:24:56]MH_I2C_Read... [07:24:56]Read from MH i2c: 01 07 00 [07:24:56]MH_I2C_Read... [07:24:56]Read from MH i2c: 01 07 00 63 11 00 00 00 00 00 0E 0E 97 [07:24:56]RasterBufferAndPrint [07:24:56]line [07:24:56]line [07:24:56]line [07:24:56]line [07:24:56]line [07:24:56]written 0, free lines is 3599 [07:24:56]MH_Cut [07:24:56]Write to MH i2c: D1 01 00 6A 11 01 4D [07:24:56]Write i2c OK [07:24:56]MH_I2C_Read... [07:24:56]Read from MH i2c: D1 [07:24:56]MH_I2C_Read... [07:24:56]Read from MH i2c: D1 01 00 [07:24:56]MH_I2C_Read... [07:24:56]Read from MH i2c: D1 01 00 6A 11 00 4C [07:24:56]Write to MH i2c: 01 00 00 6B 11 7C [07:24:56]Write i2c OK [07:24:56]MH_I2C_Read... [07:24:57]*** Cut start [07:24:57]*** Purtial cut [07:24:57]*** Stage 1: CUTSNS_PIN = 1 [07:24:57]Read from MH i2c: 01 [07:24:57]MH_I2C_Read... [07:24:57]Read from MH i2c: 01 07 00 [07:24:57]MH_I2C_Read... [07:24:57]*** Stop cut motor [07:24:57]*** Cut end [07:24:57]Read from MH i2c: 01 07 00 6B 11 00 00 00 00 00 FF 0F 91 [07:24:57]process_action print_text done [07:24:57]requested_data is exist [07:24:57]produce_requested_data [07:24:57]requested_item fm.sn is exist - process it [07:24:57]wFMCommunicate request_size=4 [07:24:57]MH_SAM_APDU [07:24:57]CAPDU: 80 11 00 00 [07:24:57]Write to MH i2c: E2 08 00 6C 11 80 11 00 00 00 00 00 00 F7 [07:24:57]Write i2c OK [07:24:57]MH_I2C_Read... [07:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:57]Read from MH i2c: E2 [07:24:57]MH_I2C_Read... [07:24:57]Read from MH i2c: E2 17 00 [07:24:57]MH_I2C_Read... [07:24:57]Read from MH i2c: E2 17 00 6C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4D [07:24:57]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:57]wFMCommunicate OK [07:24:57]requested_item fd.num is exist - process it [07:24:57]SAM_PROTO_GetFieldsCounters [07:24:57]wFMCommunicate request_size=4 [07:24:57]MH_SAM_APDU [07:24:57]CAPDU: 80 13 00 00 [07:24:57]Write to MH i2c: E2 08 00 6D 11 80 13 00 00 00 00 00 00 FA [07:24:57]Write i2c OK [07:24:57]MH_I2C_Read... [07:24:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:24:57]Read from MH i2c: E2 [07:24:57]MH_I2C_Read... [07:24:57]Read from MH i2c: E2 62 00 [07:24:57]MH_I2C_Read... [07:24:57]Read from MH i2c: E2 62 00 6D 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 BF 05 01 00 0E 04 04 00 63 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 73 [07:24: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 BF 05 01 00 0E 04 04 00 63 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:24:57]wFMCommunicate OK [07:24:57]SAM_PROTO_GetFieldsCounters done [07:24:57]requested_item shift.num is exist - process it [07:24:57]requested_item shift.opened is exist - process it [07:24:57]req_shift_opened [07:24:57]FM_GetShiftState [07:24:57]SAM_PROTO_GetShiftState [07:24:57]wFMCommunicate request_size=4 [07:24:57]MH_SAM_APDU [07:24:57]CAPDU: 80 13 01 00 [07:24:57]Write to MH i2c: E2 08 00 6E 11 80 13 01 00 00 00 00 00 FC [07:24:57]Write i2c OK [07:24:57]MH_I2C_Read... [07:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:57]Read from MH i2c: E2 [07:24:57]MH_I2C_Read... [07:24:57]Read from MH i2c: E2 0E 00 [07:24:57]MH_I2C_Read... [07:24:57]Read from MH i2c: E2 0E 00 6E 11 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 C4 [07:24:57]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [07:24:57]wFMCommunicate OK [07:24:57]SAM_PROTO_GetShiftState done [07:24:57]FM_GetShiftState done [07:24:57]req_shift_opened done [07:24:57]requested_item shift.open_date is exist - process it [07:24:57]req_shift_open_date [07:24:57]req_shift_open_date done [07:24:57]produce_requested_data done [07:24:57]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67007,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [07:24:57]process_action_free print_text [07:24:57]json_value_free [07:24:57]json_value_free done [07:24:57]process_json_proto returns [07:24:57]Send response to host [07:24:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67007,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [07:24:57]free response buf [07:24:57]execute_script done [07:24:57]execute_script returns [07:24:57]free content buf [07:24:57]Sock 9.Close socket [07:24:57]Sock 9.Thread stoped [07:25:00]OFD Sender: No OFD packet to send [07:25:05]OFD Sender: No OFD packet to send [07:25:10]OFD Sender: No OFD packet to send [07:25:15]OFD Sender: No OFD packet to send [07:25:20]OFD Sender: No OFD packet to send [07:25:25]OFD Sender: No OFD packet to send [07:25:30]OFD Sender: No OFD packet to send [07:25:35]OFD Sender: No OFD packet to send [07:25:40]OFD Sender: No OFD packet to send [07:25:45]OFD Sender: No OFD packet to send [07:25:50]OFD Sender: No OFD packet to send [07:25:55]OFD Sender: No OFD packet to send [07:26:00]OFD Sender: No OFD packet to send [07:26:05]OFD Sender: No OFD packet to send [07:26:10]OFD Sender: No OFD packet to send [07:26:15]OFD Sender: No OFD packet to send [07:26:20]OFD Sender: No OFD packet to send [07:26:25]OFD Sender: No OFD packet to send [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:27:55]accept exits with 8 [07:27:55]New connection [07:27:55]New thread 3066760548 created [07:27:55]Thread 3066617188 joined [07:27:55]Waiting for new connection... [07:27:55] Sock 8.Parse request [07:27:55]Sock 8.Check first char [07:27:55]Sock 8.First char is OK [07:27:55]request: POST /json_proto HTTP/1.0 [07:27:55]Method: POST [07:27:55]URL: /json_proto [07:27:55]Method is POST - this is cgi request [07:27:55]url: /json_proto [07:27:55]query_string will be loaded in cgi processing [07:27:55]execute_cgi json_proto POST (null) [07:27:55]execute_cgi path=json_proto method=POST [07:27:55]POST find Content-Length [07:27:55]Host: 172.17.41.195:8080 [07:27:55]Content-Length: 1141 [07:27:55]Content-Type: application/json [07:27:55] [07:27:55]POST finish read [07:27:55]Found Content-Length = 1141 [07:27: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)506824\u000A14.05.2024 07:10\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\u000A30137964\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:27:55]execute_script... [07:27: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)506824\u000A14.05.2024 07:10\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\u000A30137964\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:27:55]POST & json_proto [07:27:55]process_json_proto [07:27:55]json parsed OK: [07:27:55]protocol is kg_v1.0 [07:27:55]action value=print_text [07:27:55]process_action print_text [07:27:55]cmd_print_text [07:27:55]ExternCall_PrintAddStr [07:27:55]wPrintStart [07:27:55]Write to MH i2c: 01 00 00 6F 11 80 [07:27:55]Write i2c OK [07:27:55]MH_I2C_Read... [07:27:55]Read from MH i2c: 01 [07:27:55]MH_I2C_Read... [07:27:55]Read from MH i2c: 01 07 00 [07:27:55]MH_I2C_Read... [07:27:55]Read from MH i2c: 01 07 00 6F 11 00 00 00 00 00 FF 0F 95 [07:27:55]RasterBufferAndPrint [07:27:55]line *****ТОВАРНЫЙ ЧЕК***** [07:27:55]line АЗС-91 [07:27:55]line Партнер нефть [07:27:55]line 02508201610067 [07:27:55]line Кассир : Адишов И. [07:27:55]line Счет N : (1)506824 [07:27:55]line 14.05.2024 07:10 [07:27:55]line ПРОДАЖА [07:27:55]line ТРК (МРК, ГНК): 41 [07:27:55]line Вид ГСМ : 2710194210 [07:27:55]line ДТ-К-5 [07:27:55]line 60.000 x 74.70 [07:27:55]line ИТОГ: 4482.00 [07:27:55]line Тип оплаты: Талоны: ТК ГПНА Online [07:27:55]line 30137964 [07:27:55]line ______________________ [07:27:55]line (подпись) [07:27:55]written 0, free lines is 4095 [07:27:55]Write to MH i2c: 01 00 00 83 11 94 [07:27:55]Write i2c OK [07:27:55]MH_I2C_Read... [07:27:55]Read from MH i2c: 01 [07:27:55]MH_I2C_Read... [07:27:55]Read from MH i2c: 01 07 00 [07:27:55]MH_I2C_Read... [07:27:55]Read from MH i2c: 01 07 00 83 11 00 00 00 00 00 0E 0E B7 [07:27:55]RasterBufferAndPrint [07:27:55]line [07:27:55]line [07:27:55]line [07:27:55]line [07:27:55]line [07:27:55]written 0, free lines is 3599 [07:27:55]MH_Cut [07:27:55]Write to MH i2c: D1 01 00 8A 11 01 6D [07:27:55]Write i2c OK [07:27:55]MH_I2C_Read... [07:27:55]Read from MH i2c: D1 [07:27:55]MH_I2C_Read... [07:27:55]Read from MH i2c: D1 01 00 [07:27:55]MH_I2C_Read... [07:27:55]Read from MH i2c: D1 01 00 8A 11 00 6C [07:27:55]Write to MH i2c: 01 00 00 8B 11 9C [07:27:55]Write i2c OK [07:27:55]MH_I2C_Read... [07:27:56]*** Cut start [07:27:56]*** Purtial cut [07:27:56]*** CUTSNS_PIN = 0 [07:27:56]*** Stage 1: CUTSNS_PIN = 1 [07:27:58]Read from MH i2c: 01 [07:27:58]MH_I2C_Read... [07:27:58]*** Stop cut motor [07:27:58]*** Cut end [07:27:58]Read from MH i2c: 01 07 00 [07:27:58]MH_I2C_Read... [07:27:58]Read from MH i2c: 01 07 00 8B 11 00 00 00 00 00 FF 0F B1 [07:27:58]process_action print_text done [07:27:58]requested_data is exist [07:27:58]produce_requested_data [07:27:58]requested_item fm.sn is exist - process it [07:27:58]wFMCommunicate request_size=4 [07:27:58]MH_SAM_APDU [07:27:58]CAPDU: 80 11 00 00 [07:27:58]Write to MH i2c: E2 08 00 8C 11 80 11 00 00 00 00 00 00 17 [07:27:58]Write i2c OK [07:27:58]MH_I2C_Read... [07:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:27:58]Read from MH i2c: E2 [07:27:58]MH_I2C_Read... [07:27:58]Read from MH i2c: E2 17 00 [07:27:58]MH_I2C_Read... [07:27:58]Read from MH i2c: E2 17 00 8C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6D [07:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:27:58]wFMCommunicate OK [07:27:58]requested_item fd.num is exist - process it [07:27:58]SAM_PROTO_GetFieldsCounters [07:27:58]wFMCommunicate request_size=4 [07:27:58]MH_SAM_APDU [07:27:58]CAPDU: 80 13 00 00 [07:27:58]Write to MH i2c: E2 08 00 8D 11 80 13 00 00 00 00 00 00 1A [07:27:58]Write i2c OK [07:27:58]MH_I2C_Read... [07:27:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:27:58]Read from MH i2c: E2 [07:27:58]MH_I2C_Read... [07:27:58]Read from MH i2c: E2 62 00 [07:27:58]MH_I2C_Read... [07:27:58]Read from MH i2c: E2 62 00 8D 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 BF 05 01 00 0E 04 04 00 63 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 93 [07:27: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 BF 05 01 00 0E 04 04 00 63 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:27:58]wFMCommunicate OK [07:27:58]SAM_PROTO_GetFieldsCounters done [07:27:58]requested_item shift.num is exist - process it [07:27:58]requested_item shift.opened is exist - process it [07:27:58]req_shift_opened [07:27:58]FM_GetShiftState [07:27:58]SAM_PROTO_GetShiftState [07:27:58]wFMCommunicate request_size=4 [07:27:58]MH_SAM_APDU [07:27:58]CAPDU: 80 13 01 00 [07:27:58]Write to MH i2c: E2 08 00 8E 11 80 13 01 00 00 00 00 00 1C [07:27:58]Write i2c OK [07:27:58]MH_I2C_Read... [07:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:27:58]Read from MH i2c: E2 [07:27:58]MH_I2C_Read... [07:27:58]Read from MH i2c: E2 0E 00 [07:27:58]MH_I2C_Read... [07:27:58]Read from MH i2c: E2 0E 00 8E 11 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 E4 [07:27:58]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [07:27:58]wFMCommunicate OK [07:27:58]SAM_PROTO_GetShiftState done [07:27:58]FM_GetShiftState done [07:27:58]req_shift_opened done [07:27:58]requested_item shift.open_date is exist - process it [07:27:58]req_shift_open_date [07:27:58]req_shift_open_date done [07:27:58]produce_requested_data done [07:27:58]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67007,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [07:27:58]process_action_free print_text [07:27:58]json_value_free [07:27:58]json_value_free done [07:27:58]process_json_proto returns [07:27:58]Send response to host [07:27:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67007,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [07:27:58]free response buf [07:27:58]execute_script done [07:27:58]execute_script returns [07:27:58]free content buf [07:27:58]Sock 8.Close socket [07:27:58]Sock 8.Thread stoped [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:00]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:01]accept exits with 9 [07:33:01]New connection [07:33:01]New thread 3066617188 created [07:33:01]Thread 3066760548 joined [07:33:01]Waiting for new connection... [07:33:01] Sock 9.Parse request [07:33:01]Sock 9.Check first char [07:33:01]Sock 9.First char is OK [07:33:01]request: POST /json_proto HTTP/1.0 [07:33:01]Method: POST [07:33:01]URL: /json_proto [07:33:01]Method is POST - this is cgi request [07:33:01]url: /json_proto [07:33:01]query_string will be loaded in cgi processing [07:33:01]execute_cgi json_proto POST (null) [07:33:01]execute_cgi path=json_proto method=POST [07:33:01]POST find Content-Length [07:33:01]Host: 172.17.41.195:8080 [07:33:01]Content-Length: 215 [07:33:01]Content-Type: application/json [07:33:01] [07:33:01]POST finish read [07:33:01]Found Content-Length = 215 [07:33:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:01]execute_script... [07:33:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:01]POST & json_proto [07:33:01]process_json_proto [07:33:01]json parsed OK: [07:33:01]protocol is kg_v1.0 [07:33:01]action value=get_value [07:33:01]process_action get_value [07:33:01]cmd_get_value [07:33:01]process_action get_value done [07:33:01]requested_data is exist [07:33:01]produce_requested_data [07:33:01]requested_item kkm.sn is exist - process it [07:33:01]requested_item kkm.ver is exist - process it [07:33:01]requested_item fm.sn is exist - process it [07:33:01]wFMCommunicate request_size=4 [07:33:01]MH_SAM_APDU [07:33:01]CAPDU: 80 11 00 00 [07:33:01]Write to MH i2c: E2 08 00 8F 11 80 11 00 00 00 00 00 00 1A [07:33:01]Write i2c OK [07:33:01]MH_I2C_Read... [07:33:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:01]Read from MH i2c: E2 [07:33:01]MH_I2C_Read... [07:33:01]Read from MH i2c: E2 17 00 [07:33:01]MH_I2C_Read... [07:33:01]Read from MH i2c: E2 17 00 8F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 70 [07:33:01]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:01]wFMCommunicate OK [07:33:01]requested_item fd.num is exist - process it [07:33:01]SAM_PROTO_GetFieldsCounters [07:33:01]wFMCommunicate request_size=4 [07:33:01]MH_SAM_APDU [07:33:01]CAPDU: 80 13 00 00 [07:33:01]Write to MH i2c: E2 08 00 90 11 80 13 00 00 00 00 00 00 1D [07:33:01]Write i2c OK [07:33:01]MH_I2C_Read... [07:33:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:33:01]Read from MH i2c: E2 [07:33:01]MH_I2C_Read... [07:33:01]Read from MH i2c: E2 62 00 [07:33:01]MH_I2C_Read... [07:33:01]Read from MH i2c: E2 62 00 90 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 BF 05 01 00 0E 04 04 00 63 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 96 [07:33: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 BF 05 01 00 0E 04 04 00 63 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:01]wFMCommunicate OK [07:33:01]SAM_PROTO_GetFieldsCounters done [07:33:01]requested_item shift.num is exist - process it [07:33:01]requested_item shift.opened is exist - process it [07:33:01]req_shift_opened [07:33:01]FM_GetShiftState [07:33:01]SAM_PROTO_GetShiftState [07:33:01]wFMCommunicate request_size=4 [07:33:01]MH_SAM_APDU [07:33:01]CAPDU: 80 13 01 00 [07:33:01]Write to MH i2c: E2 08 00 91 11 80 13 01 00 00 00 00 00 1F [07:33:01]Write i2c OK [07:33:01]MH_I2C_Read... [07:33:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:01]Read from MH i2c: E2 [07:33:01]MH_I2C_Read... [07:33:01]Read from MH i2c: E2 0E 00 [07:33:01]MH_I2C_Read... [07:33:01]Read from MH i2c: E2 0E 00 91 11 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 E7 [07:33:01]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [07:33:01]wFMCommunicate OK [07:33:01]SAM_PROTO_GetShiftState done [07:33:01]FM_GetShiftState done [07:33:01]req_shift_opened done [07:33:01]requested_item shift.open_date is exist - process it [07:33:01]req_shift_open_date [07:33:01]req_shift_open_date done [07:33:01]produce_requested_data done [07:33:01]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67007,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [07:33:01]process_action_free get_value [07:33:01]json_value_free [07:33:01]json_value_free done [07:33:01]process_json_proto returns [07:33:01]Send response to host [07:33:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67007,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [07:33:01]free response buf [07:33:01]execute_script done [07:33:01]execute_script returns [07:33:01]free content buf [07:33:01]Sock 9.Close socket [07:33:01]Sock 9.Thread stoped [07:33:01]accept exits with 8 [07:33:01]New connection [07:33:01]New thread 3066760548 created [07:33:01]Thread 3066617188 joined [07:33:01]Waiting for new connection... [07:33:01] Sock 8.Parse request [07:33:01]Sock 8.Check first char [07:33:01]Sock 8.First char is OK [07:33:01]request: POST /json_proto HTTP/1.0 [07:33:01]Method: POST [07:33:01]URL: /json_proto [07:33:01]Method is POST - this is cgi request [07:33:01]url: /json_proto [07:33:01]query_string will be loaded in cgi processing [07:33:01]execute_cgi json_proto POST (null) [07:33:01]execute_cgi path=json_proto method=POST [07:33:01]POST find Content-Length [07:33:01]Host: 172.17.41.195:8080 [07:33:01]Content-Length: 331 [07:33:01]Content-Type: application/json [07:33:01] [07:33:01]POST finish read [07:33:01]Found Content-Length = 331 [07:33:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:33:01]execute_script... [07:33:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:33:01]POST & json_proto [07:33:01]process_json_proto [07:33:01]json parsed OK: [07:33:01]protocol is kg_v1.0 [07:33:01]action value=get_value [07:33:01]process_action get_value [07:33:01]cmd_get_value [07:33:01]process_action get_value done [07:33:01]requested_data is exist [07:33:01]produce_requested_data [07:33:01]requested_item fm.sale.total is exist - process it [07:33:01]SAM_PROTO_GetFMData [07:33:01]wFMCommunicate request_size=4 [07:33:01]MH_SAM_APDU [07:33:01]CAPDU: 80 13 03 00 [07:33:01]Write to MH i2c: E2 08 00 92 11 80 13 03 00 00 00 00 00 22 [07:33:01]Write i2c OK [07:33:01]MH_I2C_Read... [07:33:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [07:33:02]Read from MH i2c: E2 [07:33:02]MH_I2C_Read... [07:33:02]Read from MH i2c: E2 FD 00 [07:33:02]MH_I2C_Read... [07:33:02]Read from MH i2c: E2 FD 00 92 11 00 C6 04 85 04 C2 04 6E 04 04 00 F9 02 01 00 69 04 A3 00 6F 04 04 00 54 02 01 00 B1 04 05 00 5E 23 8F 17 03 70 04 05 00 48 0D 26 BE 02 72 04 04 00 16 16 69 59 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 26 12 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 E0 6E 01 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 07 [07:33:02]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 F9 02 01 00 69 04 A3 00 6F 04 04 00 54 02 01 00 B1 04 05 00 5E 23 8F 17 03 70 04 05 00 48 0D 26 BE 02 72 04 04 00 16 16 69 59 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C6 26 12 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 E0 6E 01 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 [07:33:02]wFMCommunicate OK [07:33:02]wFMCommunicate request_size=4 [07:33:02]MH_SAM_APDU [07:33:02]CAPDU: 80 17 00 00 [07:33:02]Write to MH i2c: E2 08 00 93 11 80 17 00 00 00 00 00 00 24 [07:33:02]Write i2c OK [07:33:02]MH_I2C_Read... [07:33:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:33:02]Read from MH i2c: E2 [07:33:02]MH_I2C_Read... [07:33:02]Read from MH i2c: E2 FD 00 [07:33:02]MH_I2C_Read... [07:33:02]Read from MH i2c: E2 FD 00 93 11 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 D2 [07:33:02]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [07:33:02]wFMCommunicate OK [07:33:02]wFMCommunicate request_size=4 [07:33:02]MH_SAM_APDU [07:33:02]CAPDU: 80 17 00 00 [07:33:02]Write to MH i2c: E2 08 00 94 11 80 17 00 00 00 00 00 00 25 [07:33:02]Write i2c OK [07:33:02]MH_I2C_Read... [07:33:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:33:02]Read from MH i2c: E2 [07:33:02]MH_I2C_Read... [07:33:02]Read from MH i2c: E2 FD 00 [07:33:02]MH_I2C_Read... [07:33:02]Read from MH i2c: E2 FD 00 94 11 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 4C [07:33:02]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [07:33:02]wFMCommunicate OK [07:33:02]wFMCommunicate request_size=4 [07:33:02]MH_SAM_APDU [07:33:02]CAPDU: 80 17 00 00 [07:33:02]Write to MH i2c: E2 08 00 95 11 80 17 00 00 00 00 00 00 26 [07:33:02]Write i2c OK [07:33:02]MH_I2C_Read... [07:33:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:33:03]Read from MH i2c: E2 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: E2 FD 00 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: E2 FD 00 95 11 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 [07:33:03]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [07:33:03]wFMCommunicate OK [07:33:03]wFMCommunicate request_size=4 [07:33:03]MH_SAM_APDU [07:33:03]CAPDU: 80 17 00 00 [07:33:03]Write to MH i2c: E2 08 00 96 11 80 17 00 00 00 00 00 00 27 [07:33:03]Write i2c OK [07:33:03]MH_I2C_Read... [07:33:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [07:33:03]Read from MH i2c: E2 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: E2 E3 00 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: E2 E3 00 96 11 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 06 [07:33:03]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:33:03]wFMCommunicate OK [07:33:03]SAM_PROTO_GetFMData done [07:33:03]requested_item fm.sale_refund.total is exist - process it [07:33:03]requested_item fm.buy.total is exist - process it [07:33:03]requested_item shift.sale.total is exist - process it [07:33:03]SAM_PROTO_GetShiftData [07:33:03]wFMCommunicate request_size=4 [07:33:03]MH_SAM_APDU [07:33:03]CAPDU: 80 13 02 00 [07:33:03]Write to MH i2c: E2 08 00 97 11 80 13 02 00 00 00 00 00 26 [07:33:03]Write i2c OK [07:33:03]MH_I2C_Read... [07:33:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [07:33:03]Read from MH i2c: E2 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: E2 FD 00 [07:33:03]MH_I2C_Read... [07:33:03]Read from MH i2c: E2 FD 00 97 11 00 AE 04 AA 04 AA 04 6E 04 04 00 0E 00 00 00 69 04 9B 00 6F 04 04 00 0E 00 00 00 B1 04 03 00 B2 F8 23 70 04 03 00 AC A6 0C 72 04 03 00 06 52 17 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0F D2 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7E 51 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 50 [07:33:03]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 0E 00 00 00 69 04 9B 00 6F 04 04 00 0E 00 00 00 B1 04 03 00 B2 F8 23 70 04 03 00 AC A6 0C 72 04 03 00 06 52 17 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0F D2 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7E 51 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [07:33:03]wFMCommunicate OK [07:33:03]wFMCommunicate request_size=4 [07:33:03]MH_SAM_APDU [07:33:03]CAPDU: 80 17 00 00 [07:33:03]Write to MH i2c: E2 08 00 98 11 80 17 00 00 00 00 00 00 29 [07:33:03]Write i2c OK [07:33:03]MH_I2C_Read... [07:33:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:33:04]Read from MH i2c: E2 [07:33:04]MH_I2C_Read... [07:33:04]Read from MH i2c: E2 FD 00 [07:33:04]MH_I2C_Read... [07:33:04]Read from MH i2c: E2 FD 00 98 11 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 4B [07:33:04]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [07:33:04]wFMCommunicate OK [07:33:04]wFMCommunicate request_size=4 [07:33:04]MH_SAM_APDU [07:33:04]CAPDU: 80 17 00 00 [07:33:04]Write to MH i2c: E2 08 00 99 11 80 17 00 00 00 00 00 00 2A [07:33:04]Write i2c OK [07:33:04]MH_I2C_Read... [07:33:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:33:04]Read from MH i2c: E2 [07:33:04]MH_I2C_Read... [07:33:04]Read from MH i2c: E2 FD 00 [07:33:04]MH_I2C_Read... [07:33:04]Read from MH i2c: E2 FD 00 99 11 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 E1 [07:33:04]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [07:33:04]wFMCommunicate OK [07:33:04]wFMCommunicate request_size=4 [07:33:04]MH_SAM_APDU [07:33:04]CAPDU: 80 17 00 00 [07:33:04]Write to MH i2c: E2 08 00 9A 11 80 17 00 00 00 00 00 00 2B [07:33:04]Write i2c OK [07:33:04]MH_I2C_Read... [07:33:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:33:04]Read from MH i2c: E2 [07:33:04]MH_I2C_Read... [07:33:04]Read from MH i2c: E2 FD 00 [07:33:04]MH_I2C_Read... [07:33:04]Read from MH i2c: E2 FD 00 9A 11 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 9D [07:33:04]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [07:33:04]wFMCommunicate OK [07:33:04]wFMCommunicate request_size=4 [07:33:04]MH_SAM_APDU [07:33:04]CAPDU: 80 17 00 00 [07:33:04]Write to MH i2c: E2 08 00 9B 11 80 17 00 00 00 00 00 00 2C [07:33:04]Write i2c OK [07:33:04]MH_I2C_Read... [07:33:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [07:33:04]Read from MH i2c: E2 [07:33:04]MH_I2C_Read... [07:33:04]Read from MH i2c: E2 CB 00 [07:33:04]MH_I2C_Read... [07:33:04]Read from MH i2c: E2 CB 00 9B 11 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 15 [07:33:04]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:33:04]wFMCommunicate OK [07:33:04]SAM_PROTO_GetShiftData done [07:33:04]requested_item shift.sale.total_cash is exist - process it [07:33:04]requested_item shift.sale_refund.total is exist - process it [07:33:04]requested_item shift.sale_refund.total_cash is exist - process it [07:33:04]requested_item shift.buy.total is exist - process it [07:33:04]requested_item shift.buy.total_cash is exist - process it [07:33:04]produce_requested_data done [07:33:04]produce_requested_data return {"fm.sale.total":132801585.58,"fm.sale_refund.total":37024060.00,"fm.buy.total":0.00,"shift.sale.total":23574.26,"shift.sale.total_cash":8291.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} [07:33:04]process_action_free get_value [07:33:04]json_value_free [07:33:04]json_value_free done [07:33:04]process_json_proto returns [07:33:04]Send response to host [07:33:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":132801585.58,"fm.sale_refund.total":37024060.00,"fm.buy.total":0.00,"shift.sale.total":23574.26,"shift.sale.total_cash":8291.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}}} [07:33:04]free response buf [07:33:04]execute_script done [07:33:04]execute_script returns [07:33:04]free content buf [07:33:04]Sock 8.Close socket [07:33:04]Sock 8.Thread stoped [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]accept exits with 9 [07:33:50]New connection [07:33:50]New thread 3066617188 created [07:33:50]Thread 3066760548 joined [07:33:50]Waiting for new connection... [07:33:50] Sock 9.Parse request [07:33:50]Sock 9.Check first char [07:33:50]Sock 9.First char is OK [07:33:50]request: POST /json_proto HTTP/1.0 [07:33:50]Method: POST [07:33:50]URL: /json_proto [07:33:50]Method is POST - this is cgi request [07:33:50]url: /json_proto [07:33:50]query_string will be loaded in cgi processing [07:33:50]execute_cgi json_proto POST (null) [07:33:50]execute_cgi path=json_proto method=POST [07:33:50]POST find Content-Length [07:33:50]Host: 172.17.41.195:8080 [07:33:50]Content-Length: 677 [07:33:50]Content-Type: application/json [07:33:50] [07:33:50]POST finish read [07:33:50]Found Content-Length = 677 [07:33:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506825", "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" ] } } [07:33:50]execute_script... [07:33: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)506825", "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" ] } } [07:33:50]POST & json_proto [07:33:50]process_json_proto [07:33:50]json parsed OK: [07:33:50]protocol is kg_v1.0 [07:33:50]action value=close_receipt [07:33:50]process_action close_receipt [07:33:50]cmd_close_receipt [07:33:50]MH_GetDate [07:33:50]Write to MH i2c: F0 00 00 9C 11 9C [07:33:50]Write i2c OK [07:33:50]MH_I2C_Read... [07:33:50]Read from MH i2c: F0 [07:33:50]MH_I2C_Read... [07:33:50]Read from MH i2c: F0 09 00 [07:33:50]MH_I2C_Read... [07:33:50]Read from MH i2c: F0 09 00 9C 11 00 E1 13 43 66 FC 21 6F 64 32 [07:33:50]GetLastDocTimeStamp 1715670499 [07:33:50]current date 1715672033 [07:33:50]FM_GetShiftState [07:33:50]SAM_PROTO_GetShiftState [07:33:50]wFMCommunicate request_size=4 [07:33:50]MH_SAM_APDU [07:33:50]CAPDU: 80 13 01 00 [07:33:50]Write to MH i2c: E2 08 00 9D 11 80 13 01 00 00 00 00 00 2B [07:33:50]Write i2c OK [07:33:50]MH_I2C_Read... [07:33:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:50]Read from MH i2c: E2 [07:33:50]MH_I2C_Read... [07:33:50]Read from MH i2c: E2 0E 00 [07:33:50]MH_I2C_Read... [07:33:50]Read from MH i2c: E2 0E 00 9D 11 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F3 [07:33:50]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [07:33:50]wFMCommunicate OK [07:33:50]SAM_PROTO_GetShiftState done [07:33:50]FM_GetShiftState done [07:33:50]opened in 1715646054 [07:33:50]opened+sec_in_day 1715732454 [07:33:50]quantity*price = 40013 [07:33:50]sum+1 = 40014 [07:33:50]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 СНО: Общий режим Чек 15 14.05.2024 07:33 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67008 ФПД: 51715635454893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T073353&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67008&fm=51715635454893&tin=02508201610067®Number=0000000000091845&sum=40000 [07:33:51]StoreToDocumentArchive [07:33:51]shift 355 fd 67008 [07:33:51]save to /storage/0355/doc_00067008 [07:33:51]save last doc name /storage/0355/doc_00067008 to /storage/kkm_last_doc_name [07:33:51]save OK [07:33:51]Clear old archive folders... [07:33:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:33:51]tlvbuf is 003504B0 [07:33:51]SAM_PROTO_ClearQueue [07:33:51]wFMCommunicate request_size=4 [07:33:51]MH_SAM_APDU [07:33:51]CAPDU: 80 09 00 00 [07:33:51]Write to MH i2c: E2 08 00 AA 11 80 09 00 00 00 00 00 00 2D [07:33:51]Write i2c OK [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 [07:33:51]MH_I2C_Read... [07:33:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:33:51]Read from MH i2c: E2 03 00 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 03 00 AA 11 00 90 00 2F [07:33:51]RAPDU: 90 00 [07:33:51]wFMCommunicate OK [07:33:51]SAM_PROTO_ClearQueue done [07:33:51]KKMCreateOFDPacket [07:33:51]OFDProtocolAddRootSTLVToBuf [07:33:51]FM_MakeSignedData [07:33:51]FM_MakeSignedData [07:33:51]SAM_PROTO_SignData [07:33:51]wFMCommunicate request_size=4 [07:33:51]MH_SAM_APDU [07:33:51]CAPDU: 80 0D 01 02 [07:33:51]Write to MH i2c: E2 08 00 AB 11 80 0D 01 02 00 00 00 00 35 [07:33:51]Write i2c OK [07:33:51]MH_I2C_Read... [07:33:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:33:51]Read from MH i2c: E2 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 03 00 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 03 00 AB 11 00 90 00 30 [07:33:51]RAPDU: 90 00 [07:33:51]wFMCommunicate OK [07:33:51]wFMCommunicate request_size=255 [07:33:51]MH_SAM_APDU [07:33: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 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 0F 00 00 00 F4 03 04 00 E1 13 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C0 05 01 00 35 04 06 00 2F [07:33:51]Write to MH i2c: E2 02 01 AC 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 0F 00 00 00 F4 03 04 00 E1 13 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C0 05 01 00 35 04 06 00 2F 00 00 A5 [07:33:51]Write i2c OK [07:33:51]MH_I2C_Read... [07:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:51]Read from MH i2c: E2 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 03 00 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 03 00 AC 11 00 90 00 31 [07:33:51]RAPDU: 90 00 [07:33:51]wFMCommunicate OK [07:33:51]wFMCommunicate request_size=10 [07:33:51]MH_SAM_APDU [07:33:51]CAPDU: 80 0D 02 02 05 08 FC 14 A3 AD [07:33:51]Write to MH i2c: E2 0D 00 AD 11 80 0D 02 02 05 00 08 FC 14 A3 AD 00 00 AA [07:33:51]Write i2c OK [07:33:51]MH_I2C_Read... [07:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:51]Read from MH i2c: E2 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 03 00 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 03 00 AD 11 00 90 00 32 [07:33:51]RAPDU: 90 00 [07:33:51]wFMCommunicate OK [07:33:51]wFMCommunicate request_size=4 [07:33:51]MH_SAM_APDU [07:33:51]CAPDU: 80 0D 03 02 [07:33:51]Write to MH i2c: E2 08 00 AE 11 80 0D 03 02 00 00 00 00 3A [07:33:51]Write i2c OK [07:33:51]MH_I2C_Read... [07:33:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:33:51]Read from MH i2c: E2 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 0B 00 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 0B 00 AE 11 00 C3 69 25 00 88 63 3E 5C 90 00 11 [07:33:51]RAPDU: C3 69 25 00 88 63 3E 5C 90 00 [07:33:51]wFMCommunicate OK [07:33:51]SAM_PROTO_SignData done [07:33:51]FM_MakeSignedData done [07:33:51]CreateOFDProtocolMessage [07:33:51]wFMCommunicate request_size=4 [07:33:51]MH_SAM_APDU [07:33:51]CAPDU: 80 11 00 00 [07:33:51]Write to MH i2c: E2 08 00 AF 11 80 11 00 00 00 00 00 00 3A [07:33:51]Write i2c OK [07:33:51]MH_I2C_Read... [07:33:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:51]Read from MH i2c: E2 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 17 00 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: E2 17 00 AF 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 90 [07:33: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:33:51]wFMCommunicate OK [07:33:51]CreateOFDProtocolMessage done [07:33:51]OFDSenderStorePacket 67008 [07:33:51]StoreOFDPacket docnum=67008 [07:33: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 A7 AF 07 01 13 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E1 13 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C0 05 01 00 35 04 06 00 2F 08 FC 14 A3 AD C3 69 25 00 88 63 3E 5C [07:33:51]CheckFolder [07:33:51]dirname=/storage/ofd_packets [07:33:51]CheckFolder done [07:33:51]ProducePacketName [07:33:51]name=ofd_packets/00067008 [07:33:51]NVStorageSaveData ofd_packets/00067008 [07:33:51]File name is /storage/ofd_packets/00067008 [07:33:51]Write 301 bytes [07:33:51]NVStorageSaveData done [07:33:51]OFDSenderStorePacket done [07:33:51]KKMCreateOFDPacket done [07:33:51]NVStorageSaveData kkm_last_timestamp [07:33:51]File name is /storage/kkm_last_timestamp [07:33:51]Write 4 bytes [07:33:51]NVStorageSaveData done [07:33:51]ExternCall_PrintAddStr [07:33:51]wPrintStart [07:33:51]Write to MH i2c: 01 00 00 B0 11 C1 [07:33:51]Write i2c OK [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: 01 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: 01 07 00 [07:33:51]MH_I2C_Read... [07:33:51]Read from MH i2c: 01 07 00 B0 11 00 00 00 00 00 FF 0F D6 [07:33:51]RasterBufferAndPrint [07:33:51]line Счет N : (1)506825 [07:33:51]line ИНН: 02508201610067 [07:33:51]line Контрольно-Кассовый Чек [07:33:51]line ПРОДАЖА [07:33:51]line ТРК (МРК, ГНК) : 43 [07:33:51]line Товар: 2710124130 [07:33:51]line Аи-92-К-5 [07:33:51]line 5.990 * 66.80 [07:33:51]line = 400.13 [07:33:51]line НДС 12% НСП 1% [07:33:51]line > о реализуемом товаре [07:33:51]line ОКРУГЛЕНИЕ: -0.13 [07:33:51]line ИТОГО: 400.00 [07:33:51]line Внесено: 400.00 [07:33:51]line СДАЧА: 0.00 [07:33:51]line НСП 1% : 3.54 [07:33:51]line НДС 12% : 42.49 [07:33:51]line Наличными: 400.00 [07:33:51]line Безнал.: 0.00 [07:33:51]line Место: АЗС № 91 "Партнер Нефть" [07:33:51]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:33:51]line СНО: Общий режим [07:33:51]line Чек 15 14.05.2024 07:33 [07:33:51]line Смена: 355 ФФД: 1.0 [07:33:51]line ЗНМ: 0300000119 [07:33:51]line РНМ: 0000000000091845 [07:33:51]line Версия ККМ: 001 [07:33:51]line ФМ: 0000000000871829 [07:33:51]line ФД: 67008 [07:33:51]line ФПД: 51715635454893 [07:33:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T073353&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67008&fm=51715635454893&tin=02508201610067®Number=0000000000091845&sum=40000 [07:33:52]written 0, free lines is 4095 [07:33:52]OFD Sender: Processing packet 67008 [packets to send 35, broken 34] [07:33:52]ProducePacketName [07:33:52]name=ofd_packets/00067008 [07:33:52]OFD Sender: To server: pG, [07:33:52]CommunicateWithHost lk.salyk.kg:30040 [07:33:52]ConnectInit lk.salyk.kg [07:33:52]Connected sock=11 [07:33: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 A7 AF 07 01 13 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 E1 13 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C0 05 01 00 35 04 06 00 2F 08 FC 14 A3 AD C3 69 25 00 88 63 3E 5C [07:33: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 8E 6E 47 00 4E 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C0 05 01 00 F4 03 04 00 C2 BB 42 66 B6 04 01 00 00 83 57 86 79 A6 44 86 2B [07:33:52]CommunicateWithHost err = 0 [07:33:52]CheckOFDResponse [07:33:52]1017 (14) - 77093643461234 [07:33:52]1041 (16) - 0000000000871829 [07:33:52]1040 (4) - 67008 [07:33:52]1012 (4) - 14.05.2024 01:17 [07:33:52]1206 (1) - 0 [07:33:52]OFD Sender: Remove packet 67008 [07:33:52]ProducePacketName [07:33:52]name=ofd_packets/00067008 [07:33:52]NVStorageDeleteData [07:33:52]Write to MH i2c: 01 00 00 DA 11 EB [07:33:52]Write i2c OK [07:33:52]MH_I2C_Read... [07:33:52]Read from MH i2c: 01 [07:33:52]MH_I2C_Read... [07:33:52]Read from MH i2c: 01 07 00 [07:33:52]MH_I2C_Read... [07:33:52]Read from MH i2c: 01 07 00 DA 11 00 00 00 00 00 C4 0C C2 [07:33:52]RasterBufferAndPrint [07:33:52]line [07:33:52]line [07:33:52]line [07:33:52]line [07:33:52]line [07:33:52]written 0, free lines is 3272 [07:33:52]MH_Cut [07:33:52]Write to MH i2c: D1 01 00 E1 11 01 C4 [07:33:52]Write i2c OK [07:33:52]MH_I2C_Read... [07:33:52]Read from MH i2c: D1 [07:33:52]MH_I2C_Read... [07:33:52]Read from MH i2c: D1 01 00 [07:33:52]MH_I2C_Read... [07:33:52]Read from MH i2c: D1 01 00 E1 11 00 C3 [07:33:52]Write to MH i2c: 01 00 00 E2 11 F3 [07:33:52]Write i2c OK [07:33:52]MH_I2C_Read... [07:33:53]OFD Sender: No OFD packet to send [07:33:53]*** Cut start [07:33:53]*** Purtial cut [07:33:53]*** Stage 1: CUTSNS_PIN = 1 [07:33:53]Read from MH i2c: 01 [07:33:53]MH_I2C_Read... [07:33:53]*** Stop cut motor [07:33:53]*** Cut end [07:33:53]Read from MH i2c: 01 07 00 [07:33:53]MH_I2C_Read... [07:33:53]Read from MH i2c: 01 07 00 E2 11 00 00 00 00 00 FF 0F 08 [07:33:53]process_action close_receipt done [07:33:53]requested_data is exist [07:33:53]produce_requested_data [07:33:53]requested_item fm.sn is exist - process it [07:33:53]wFMCommunicate request_size=4 [07:33:53]MH_SAM_APDU [07:33:53]CAPDU: 80 11 00 00 [07:33:53]Write to MH i2c: E2 08 00 E3 11 80 11 00 00 00 00 00 00 6E [07:33:53]Write i2c OK [07:33:53]MH_I2C_Read... [07:33:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:53]Read from MH i2c: E2 [07:33:53]MH_I2C_Read... [07:33:53]Read from MH i2c: E2 17 00 [07:33:53]MH_I2C_Read... [07:33:53]Read from MH i2c: E2 17 00 E3 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C4 [07:33:53]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:53]wFMCommunicate OK [07:33:53]requested_item fd.num is exist - process it [07:33:53]SAM_PROTO_GetFieldsCounters [07:33:53]wFMCommunicate request_size=4 [07:33:53]MH_SAM_APDU [07:33:53]CAPDU: 80 13 00 00 [07:33:53]Write to MH i2c: E2 08 00 E4 11 80 13 00 00 00 00 00 00 71 [07:33:53]Write i2c OK [07:33:53]MH_I2C_Read... [07:33:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:33:54]Read from MH i2c: E2 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: E2 62 00 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: E2 62 00 E4 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 C0 05 01 00 0E 04 04 00 63 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 EE [07:33: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 C0 05 01 00 0E 04 04 00 63 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:33:54]wFMCommunicate OK [07:33:54]SAM_PROTO_GetFieldsCounters done [07:33:54]requested_item shift.num is exist - process it [07:33:54]requested_item shift.opened is exist - process it [07:33:54]req_shift_opened [07:33:54]FM_GetShiftState [07:33:54]SAM_PROTO_GetShiftState [07:33:54]wFMCommunicate request_size=4 [07:33:54]MH_SAM_APDU [07:33:54]CAPDU: 80 13 01 00 [07:33:54]Write to MH i2c: E2 08 00 E5 11 80 13 01 00 00 00 00 00 73 [07:33:54]Write i2c OK [07:33:54]MH_I2C_Read... [07:33:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:54]Read from MH i2c: E2 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: E2 0E 00 [07:33:54]MH_I2C_Read... [07:33:54]Read from MH i2c: E2 0E 00 E5 11 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 3B [07:33:54]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [07:33:54]wFMCommunicate OK [07:33:54]SAM_PROTO_GetShiftState done [07:33:54]FM_GetShiftState done [07:33:54]req_shift_opened done [07:33:54]requested_item shift.open_date is exist - process it [07:33:54]req_shift_open_date [07:33:54]req_shift_open_date done [07:33:54]produce_requested_data done [07:33:54]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67008,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [07:33:54]process_action_free close_receipt [07:33:54]json_value_free [07:33:54]json_value_free done [07:33:54]process_json_proto returns [07:33:54]Send response to host [07:33:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67008,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [07:33:54]free response buf [07:33:54]execute_script done [07:33:54]execute_script returns [07:33:54]free content buf [07:33:54]Sock 9.Close socket [07:33:54]Sock 9.Thread stoped [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:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:48]OFD Sender: No OFD packet to send [07:49:53]OFD Sender: No OFD packet to send [07:49:58]OFD Sender: No OFD packet to send [07:50:03]OFD Sender: No OFD packet to send [07:50:08]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:23]OFD Sender: No OFD packet to send [07:50:28]OFD Sender: No OFD packet to send [07:50:33]OFD Sender: No OFD packet to send [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:53]OFD Sender: No OFD packet to send [07:50:58]OFD Sender: No OFD packet to send [07:51:03]OFD Sender: No OFD packet to send [07:51:08]OFD Sender: No OFD packet to send [07:51:13]OFD Sender: No OFD packet to send [07:51:18]OFD Sender: No OFD packet to send [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:30]accept exits with 8 [07:54:30]New connection [07:54:30]New thread 3066760548 created [07:54:30]Thread 3066617188 joined [07:54:30]Waiting for new connection... [07:54:30] Sock 8.Parse request [07:54:30]Sock 8.Check first char [07:54:30]Sock 8.First char is OK [07:54:30]request: POST /json_proto HTTP/1.0 [07:54:30]Method: POST [07:54:30]URL: /json_proto [07:54:30]Method is POST - this is cgi request [07:54:30]url: /json_proto [07:54:30]query_string will be loaded in cgi processing [07:54:30]execute_cgi json_proto POST (null) [07:54:30]execute_cgi path=json_proto method=POST [07:54:30]POST find Content-Length [07:54:30]Host: 172.17.41.195:8080 [07:54:30]Content-Length: 1179 [07:54:30]Content-Type: application/json [07:54:30] [07:54:30]POST finish read [07:54:30]Found Content-Length = 1179 [07:54: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)506826\u000A14.05.2024 07:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:30]execute_script... [07:54: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)506826\u000A14.05.2024 07:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:30]POST & json_proto [07:54:30]process_json_proto [07:54:30]json parsed OK: [07:54:30]protocol is kg_v1.0 [07:54:30]action value=print_text [07:54:30]process_action print_text [07:54:30]cmd_print_text [07:54:30]ExternCall_PrintAddStr [07:54:30]wPrintStart [07:54:30]Write to MH i2c: 01 00 00 E6 11 F7 [07:54:30]Write i2c OK [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: 01 [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: 01 07 00 [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: 01 07 00 E6 11 00 00 00 00 00 FF 0F 0C [07:54:30]RasterBufferAndPrint [07:54:30]line *****ТОВАРНЫЙ ЧЕК***** [07:54:30]line АЗС-91 [07:54:30]line Партнер нефть [07:54:30]line 02508201610067 [07:54:30]line Кассир : Адишов И. [07:54:30]line Счет N : (1)506826 [07:54:30]line 14.05.2024 07:37 [07:54:30]line ПРОДАЖА [07:54:30]line ТРК (МРК, ГНК): 21 [07:54:30]line Вид ГСМ : 2710194210 [07:54:30]line ДТ-К-5 [07:54:30]line 13.390 x 74.70 [07:54:30]line ИТОГ: 1000.23 [07:54:30]line Тип оплаты: Талоны: Топливная Карта [07:54:30]line 02750 [07:54:30]line ______________________ [07:54:30]line (подпись) [07:54:30]written 0, free lines is 4095 [07:54:30]Write to MH i2c: 01 00 00 FA 11 0B [07:54:30]Write i2c OK [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: 01 [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: 01 07 00 [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: 01 07 00 FA 11 00 00 00 00 00 0D 0E 2D [07:54:30]RasterBufferAndPrint [07:54:30]line [07:54:30]line [07:54:30]line [07:54:30]line [07:54:30]line [07:54:30]written 0, free lines is 3598 [07:54:30]MH_Cut [07:54:30]Write to MH i2c: D1 01 00 01 12 01 E5 [07:54:30]Write i2c OK [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: D1 [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: D1 01 00 [07:54:30]MH_I2C_Read... [07:54:30]Read from MH i2c: D1 01 00 01 12 00 E4 [07:54:30]Write to MH i2c: 01 00 00 02 12 14 [07:54:30]Write i2c OK [07:54:30]MH_I2C_Read... [07:54:31]*** Cut start [07:54:31]*** Purtial cut [07:54:31]*** CUTSNS_PIN = 0 [07:54:31]*** Stage 1: CUTSNS_PIN = 1 [07:54:33]Read from MH i2c: 01 [07:54:33]MH_I2C_Read... [07:54:33]*** Stop cut motor [07:54:33]*** Cut end [07:54:33]Read from MH i2c: 01 07 00 [07:54:33]MH_I2C_Read... [07:54:33]Read from MH i2c: 01 07 00 02 12 00 00 00 00 00 FF 0F 29 [07:54:33]process_action print_text done [07:54:33]requested_data is exist [07:54:33]produce_requested_data [07:54:33]requested_item fm.sn is exist - process it [07:54:33]wFMCommunicate request_size=4 [07:54:33]MH_SAM_APDU [07:54:33]CAPDU: 80 11 00 00 [07:54:33]Write to MH i2c: E2 08 00 03 12 80 11 00 00 00 00 00 00 8F [07:54:33]Write i2c OK [07:54:33]MH_I2C_Read... [07:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:33]Read from MH i2c: E2 [07:54:33]MH_I2C_Read... [07:54:33]Read from MH i2c: E2 17 00 [07:54:33]MH_I2C_Read... [07:54:33]Read from MH i2c: E2 17 00 03 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E5 [07:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:54:33]wFMCommunicate OK [07:54:33]requested_item fd.num is exist - process it [07:54:33]SAM_PROTO_GetFieldsCounters [07:54:33]wFMCommunicate request_size=4 [07:54:33]MH_SAM_APDU [07:54:33]CAPDU: 80 13 00 00 [07:54:33]Write to MH i2c: E2 08 00 04 12 80 13 00 00 00 00 00 00 92 [07:54:33]Write i2c OK [07:54:33]MH_I2C_Read... [07:54:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:33]Read from MH i2c: E2 [07:54:33]MH_I2C_Read... [07:54:33]Read from MH i2c: E2 62 00 [07:54:33]MH_I2C_Read... [07:54:33]Read from MH i2c: E2 62 00 04 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 C0 05 01 00 0E 04 04 00 63 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 0F [07:54:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C0 05 01 00 0E 04 04 00 63 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:54:33]wFMCommunicate OK [07:54:33]SAM_PROTO_GetFieldsCounters done [07:54:33]requested_item shift.num is exist - process it [07:54:33]requested_item shift.opened is exist - process it [07:54:33]req_shift_opened [07:54:33]FM_GetShiftState [07:54:33]SAM_PROTO_GetShiftState [07:54:33]wFMCommunicate request_size=4 [07:54:33]MH_SAM_APDU [07:54:33]CAPDU: 80 13 01 00 [07:54:33]Write to MH i2c: E2 08 00 05 12 80 13 01 00 00 00 00 00 94 [07:54:33]Write i2c OK [07:54:33]MH_I2C_Read... [07:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:33]Read from MH i2c: E2 [07:54:33]MH_I2C_Read... [07:54:33]Read from MH i2c: E2 0E 00 [07:54:33]MH_I2C_Read... [07:54:33]Read from MH i2c: E2 0E 00 05 12 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 5C [07:54:33]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [07:54:33]wFMCommunicate OK [07:54:33]SAM_PROTO_GetShiftState done [07:54:33]FM_GetShiftState done [07:54:33]req_shift_opened done [07:54:33]requested_item shift.open_date is exist - process it [07:54:33]req_shift_open_date [07:54:33]req_shift_open_date done [07:54:33]produce_requested_data done [07:54:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67008,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [07:54:33]process_action_free print_text [07:54:33]json_value_free [07:54:33]json_value_free done [07:54:33]process_json_proto returns [07:54:33]Send response to host [07:54:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67008,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [07:54:33]free response buf [07:54:33]execute_script done [07:54:33]execute_script returns [07:54:33]free content buf [07:54:33]Sock 8.Close socket [07:54:33]Sock 8.Thread stoped [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:55]accept exits with 9 [07:56:55]New connection [07:56:55]New thread 3066617188 created [07:56:55]Thread 3066760548 joined [07:56:55]Waiting for new connection... [07:56:55] Sock 9.Parse request [07:56:55]Sock 9.Check first char [07:56:55]Sock 9.First char is OK [07:56:55]request: POST /json_proto HTTP/1.0 [07:56:55]Method: POST [07:56:55]URL: /json_proto [07:56:55]Method is POST - this is cgi request [07:56:55]url: /json_proto [07:56:55]query_string will be loaded in cgi processing [07:56:55]execute_cgi json_proto POST (null) [07:56:55]execute_cgi path=json_proto method=POST [07:56:55]POST find Content-Length [07:56:55]Host: 172.17.41.195:8080 [07:56:55]Content-Length: 677 [07:56:55]Content-Type: application/json [07:56:55] [07:56:55]POST finish read [07:56:55]Found Content-Length = 677 [07:56:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506827", "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" ] } } [07:56:55]execute_script... [07:56: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)506827", "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" ] } } [07:56:55]POST & json_proto [07:56:55]process_json_proto [07:56:55]json parsed OK: [07:56:55]protocol is kg_v1.0 [07:56:55]action value=close_receipt [07:56:55]process_action close_receipt [07:56:55]cmd_close_receipt [07:56:55]MH_GetDate [07:56:55]Write to MH i2c: F0 00 00 06 12 07 [07:56:55]Write i2c OK [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: F0 [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: F0 09 00 [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: F0 09 00 06 12 00 4B 19 43 66 FC 21 6F 64 0D [07:56:55]GetLastDocTimeStamp 1715672033 [07:56:55]current date 1715673419 [07:56:55]FM_GetShiftState [07:56:55]SAM_PROTO_GetShiftState [07:56:55]wFMCommunicate request_size=4 [07:56:55]MH_SAM_APDU [07:56:55]CAPDU: 80 13 01 00 [07:56:55]Write to MH i2c: E2 08 00 07 12 80 13 01 00 00 00 00 00 96 [07:56:55]Write i2c OK [07:56:55]MH_I2C_Read... [07:56:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:55]Read from MH i2c: E2 [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: E2 0E 00 [07:56:55]MH_I2C_Read... [07:56:55]Read from MH i2c: E2 0E 00 07 12 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 5E [07:56:55]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [07:56:55]wFMCommunicate OK [07:56:55]SAM_PROTO_GetShiftState done [07:56:55]FM_GetShiftState done [07:56:55]opened in 1715646054 [07:56:55]opened+sec_in_day 1715732454 [07:56:55]quantity*price = 30060 [07:56:55]sum+1 = 30061 [07:56:55]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 СНО: Общий режим Чек 16 14.05.2024 07:56 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67009 ФПД: 76693245479785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T075659&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67009&fm=76693245479785&tin=02508201610067®Number=0000000000091845&sum=30000 [07:56:56]StoreToDocumentArchive [07:56:56]shift 355 fd 67009 [07:56:56]save to /storage/0355/doc_00067009 [07:56:56]save last doc name /storage/0355/doc_00067009 to /storage/kkm_last_doc_name [07:56:56]save OK [07:56:56]Clear old archive folders... [07:56:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:56:56]tlvbuf is 00381330 [07:56:56]SAM_PROTO_ClearQueue [07:56:56]wFMCommunicate request_size=4 [07:56:56]MH_SAM_APDU [07:56:56]CAPDU: 80 09 00 00 [07:56:56]Write to MH i2c: E2 08 00 14 12 80 09 00 00 00 00 00 00 98 [07:56:56]Write i2c OK [07:56:56]MH_I2C_Read... [07:56:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:56]Read from MH i2c: E2 [07:56:56]MH_I2C_Read... [07:56:56]Read from MH i2c: E2 03 00 [07:56:56]MH_I2C_Read... [07:56:56]Read from MH i2c: E2 03 00 14 12 00 90 00 9A [07:56:56]RAPDU: 90 00 [07:56:56]wFMCommunicate OK [07:56:56]SAM_PROTO_ClearQueue done [07:56:56]KKMCreateOFDPacket [07:56:56]OFDProtocolAddRootSTLVToBuf [07:56:56]FM_MakeSignedData [07:56:56]FM_MakeSignedData [07:56:56]SAM_PROTO_SignData [07:56:56]wFMCommunicate request_size=4 [07:56:56]MH_SAM_APDU [07:56:56]CAPDU: 80 0D 01 02 [07:56:56]Write to MH i2c: E2 08 00 15 12 80 0D 01 02 00 00 00 00 A0 [07:56:56]Write i2c OK [07:56:56]MH_I2C_Read... [07:56:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:56]Read from MH i2c: E2 [07:56:56]MH_I2C_Read... [07:56:56]Read from MH i2c: E2 03 00 [07:56:56]MH_I2C_Read... [07:56:56]Read from MH i2c: E2 03 00 15 12 00 90 00 9B [07:56:56]RAPDU: 90 00 [07:56:56]wFMCommunicate OK [07:56:56]wFMCommunicate request_size=255 [07:56:56]MH_SAM_APDU [07:56:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 10 00 00 00 F4 03 04 00 4B 19 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C1 05 01 00 35 04 06 00 45 [07:56:56]Write to MH i2c: E2 02 01 16 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 4B 19 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C1 05 01 00 35 04 06 00 45 00 00 CD [07:56:56]Write i2c OK [07:56:56]MH_I2C_Read... [07:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:57]Read from MH i2c: E2 [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: E2 03 00 [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: E2 03 00 16 12 00 90 00 9C [07:56:57]RAPDU: 90 00 [07:56:57]wFMCommunicate OK [07:56:57]wFMCommunicate request_size=10 [07:56:57]MH_SAM_APDU [07:56:57]CAPDU: 80 0D 02 02 05 C0 89 A7 4B 69 [07:56:57]Write to MH i2c: E2 0D 00 17 12 80 0D 02 02 05 00 C0 89 A7 4B 69 00 00 51 [07:56:57]Write i2c OK [07:56:57]MH_I2C_Read... [07:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:57]Read from MH i2c: E2 [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: E2 03 00 [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: E2 03 00 17 12 00 90 00 9D [07:56:57]RAPDU: 90 00 [07:56:57]wFMCommunicate OK [07:56:57]wFMCommunicate request_size=4 [07:56:57]MH_SAM_APDU [07:56:57]CAPDU: 80 0D 03 02 [07:56:57]Write to MH i2c: E2 08 00 18 12 80 0D 03 02 00 00 00 00 A5 [07:56:57]Write i2c OK [07:56:57]MH_I2C_Read... [07:56:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:57]Read from MH i2c: E2 [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: E2 0B 00 [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: E2 0B 00 18 12 00 49 8A B5 2B 24 7D 9C A4 90 00 3A [07:56:57]RAPDU: 49 8A B5 2B 24 7D 9C A4 90 00 [07:56:57]wFMCommunicate OK [07:56:57]SAM_PROTO_SignData done [07:56:57]FM_MakeSignedData done [07:56:57]CreateOFDProtocolMessage [07:56:57]wFMCommunicate request_size=4 [07:56:57]MH_SAM_APDU [07:56:57]CAPDU: 80 11 00 00 [07:56:57]Write to MH i2c: E2 08 00 19 12 80 11 00 00 00 00 00 00 A5 [07:56:57]Write i2c OK [07:56:57]MH_I2C_Read... [07:56:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:57]Read from MH i2c: E2 [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: E2 17 00 [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: E2 17 00 19 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FB [07:56:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:56:57]wFMCommunicate OK [07:56:57]CreateOFDProtocolMessage done [07:56:57]OFDSenderStorePacket 67009 [07:56:57]StoreOFDPacket docnum=67009 [07:56:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 CA C8 07 01 8D 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 10 00 00 00 F4 03 04 00 4B 19 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C1 05 01 00 35 04 06 00 45 C0 89 A7 4B 69 49 8A B5 2B 24 7D 9C A4 [07:56:57]CheckFolder [07:56:57]dirname=/storage/ofd_packets [07:56:57]CheckFolder done [07:56:57]ProducePacketName [07:56:57]name=ofd_packets/00067009 [07:56:57]NVStorageSaveData ofd_packets/00067009 [07:56:57]File name is /storage/ofd_packets/00067009 [07:56:57]Write 301 bytes [07:56:57]NVStorageSaveData done [07:56:57]OFDSenderStorePacket done [07:56:57]KKMCreateOFDPacket done [07:56:57]NVStorageSaveData kkm_last_timestamp [07:56:57]File name is /storage/kkm_last_timestamp [07:56:57]Write 4 bytes [07:56:57]NVStorageSaveData done [07:56:57]ExternCall_PrintAddStr [07:56:57]wPrintStart [07:56:57]Write to MH i2c: 01 00 00 1A 12 2C [07:56:57]Write i2c OK [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: 01 [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: 01 07 00 [07:56:57]MH_I2C_Read... [07:56:57]Read from MH i2c: 01 07 00 1A 12 00 00 00 00 00 FF 0F 41 [07:56:57]RasterBufferAndPrint [07:56:57]line Счет N : (1)506827 [07:56:57]line ИНН: 02508201610067 [07:56:57]line Контрольно-Кассовый Чек [07:56:57]line ПРОДАЖА [07:56:57]line ТРК (МРК, ГНК) : 43 [07:56:57]line Товар: 2710124130 [07:56:57]line Аи-92-К-5 [07:56:57]line 4.500 * 66.80 [07:56:57]line = 300.60 [07:56:57]line НДС 12% НСП 1% [07:56:57]line > о реализуемом товаре [07:56:57]line ОКРУГЛЕНИЕ: -0.60 [07:56:57]line ИТОГО: 300.00 [07:56:57]line Внесено: 300.00 [07:56:57]line СДАЧА: 0.00 [07:56:57]line НСП 1% : 2.66 [07:56:57]line НДС 12% : 31.92 [07:56:57]line Наличными: 300.00 [07:56:57]line Безнал.: 0.00 [07:56:57]line Место: АЗС № 91 "Партнер Нефть" [07:56:57]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:56:57]line СНО: Общий режим [07:56:57]line Чек 16 14.05.2024 07:56 [07:56:57]line Смена: 355 ФФД: 1.0 [07:56:57]line ЗНМ: 0300000119 [07:56:57]line РНМ: 0000000000091845 [07:56:57]line Версия ККМ: 001 [07:56:57]line ФМ: 0000000000871829 [07:56:57]line ФД: 67009 [07:56:57]line ФПД: 76693245479785 [07:56:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T075659&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67009&fm=76693245479785&tin=02508201610067®Number=0000000000091845&sum=30000 [07:56:57]OFD Sender: Processing packet 67009 [packets to send 35, broken 34] [07:56:57]ProducePacketName [07:56:57]name=ofd_packets/00067009 [07:56:57]OFD Sender: To server: pG, [07:56:57]CommunicateWithHost lk.salyk.kg:30040 [07:56:57]ConnectInit lk.salyk.kg [07:56:57]written 0, free lines is 4095 [07:56:57]Connected sock=10 [07:56:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 CA C8 07 01 8D 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 10 00 00 00 F4 03 04 00 4B 19 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C1 05 01 00 35 04 06 00 45 C0 89 A7 4B 69 49 8A B5 2B 24 7D 9C A4 [07:56: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 82 F2 47 00 C0 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C1 05 01 00 F4 03 04 00 2B C1 42 66 B6 04 01 00 00 77 4D DB 61 48 71 EB 9A [07:56:58]CommunicateWithHost err = 0 [07:56:58]CheckOFDResponse [07:56:58]1017 (14) - 77093643461234 [07:56:58]1041 (16) - 0000000000871829 [07:56:58]1040 (4) - 67009 [07:56:58]1012 (4) - 14.05.2024 01:40 [07:56:58]1206 (1) - 0 [07:56:58]OFD Sender: Remove packet 67009 [07:56:58]ProducePacketName [07:56:58]name=ofd_packets/00067009 [07:56:58]NVStorageDeleteData [07:56:58]Write to MH i2c: 01 00 00 44 12 56 [07:56:58]Write i2c OK [07:56:58]MH_I2C_Read... [07:56:58]Read from MH i2c: 01 [07:56:58]MH_I2C_Read... [07:56:58]Read from MH i2c: 01 07 00 [07:56:58]MH_I2C_Read... [07:56:58]Read from MH i2c: 01 07 00 44 12 00 00 00 00 00 BE 0C 27 [07:56:58]RasterBufferAndPrint [07:56:58]line [07:56:58]line [07:56:58]line [07:56:58]line [07:56:58]line [07:56:58]written 0, free lines is 3268 [07:56:58]MH_Cut [07:56:58]Write to MH i2c: D1 01 00 4B 12 01 2F [07:56:58]Write i2c OK [07:56:58]MH_I2C_Read... [07:56:58]Read from MH i2c: D1 [07:56:58]MH_I2C_Read... [07:56:58]Read from MH i2c: D1 01 00 [07:56:58]MH_I2C_Read... [07:56:58]Read from MH i2c: D1 01 00 4B 12 00 2E [07:56:58]Write to MH i2c: 01 00 00 4C 12 5E [07:56:58]Write i2c OK [07:56:58]MH_I2C_Read... [07:56:58]OFD Sender: No OFD packet to send [07:56:58]*** Cut start [07:56:58]*** Purtial cut [07:56:58]*** Stage 1: CUTSNS_PIN = 1 [07:56:59]Read from MH i2c: 01 [07:56:59]MH_I2C_Read... [07:56:59]*** Stop cut motor [07:56:59]*** Cut end [07:56:59]Read from MH i2c: 01 07 00 [07:56:59]MH_I2C_Read... [07:56:59]Read from MH i2c: 01 07 00 4C 12 00 00 00 00 00 FF 0F 73 [07:56:59]process_action close_receipt done [07:56:59]requested_data is exist [07:56:59]produce_requested_data [07:56:59]requested_item fm.sn is exist - process it [07:56:59]wFMCommunicate request_size=4 [07:56:59]MH_SAM_APDU [07:56:59]CAPDU: 80 11 00 00 [07:56:59]Write to MH i2c: E2 08 00 4D 12 80 11 00 00 00 00 00 00 D9 [07:56:59]Write i2c OK [07:56:59]MH_I2C_Read... [07:56:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:59]Read from MH i2c: E2 [07:56:59]MH_I2C_Read... [07:56:59]Read from MH i2c: E2 17 00 [07:56:59]MH_I2C_Read... [07:56:59]Read from MH i2c: E2 17 00 4D 12 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:56:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:56:59]wFMCommunicate OK [07:56:59]requested_item fd.num is exist - process it [07:56:59]SAM_PROTO_GetFieldsCounters [07:56:59]wFMCommunicate request_size=4 [07:56:59]MH_SAM_APDU [07:56:59]CAPDU: 80 13 00 00 [07:56:59]Write to MH i2c: E2 08 00 4E 12 80 13 00 00 00 00 00 00 DC [07:56:59]Write i2c OK [07:56:59]MH_I2C_Read... [07:56:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:59]Read from MH i2c: E2 [07:56:59]MH_I2C_Read... [07:56:59]Read from MH i2c: E2 62 00 [07:56:59]MH_I2C_Read... [07:56:59]Read from MH i2c: E2 62 00 4E 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 C1 05 01 00 0E 04 04 00 63 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 5D [07:56: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 C1 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:56:59]wFMCommunicate OK [07:56:59]SAM_PROTO_GetFieldsCounters done [07:56:59]requested_item shift.num is exist - process it [07:56:59]requested_item shift.opened is exist - process it [07:56:59]req_shift_opened [07:56:59]FM_GetShiftState [07:56:59]SAM_PROTO_GetShiftState [07:56:59]wFMCommunicate request_size=4 [07:56:59]MH_SAM_APDU [07:56:59]CAPDU: 80 13 01 00 [07:56:59]Write to MH i2c: E2 08 00 4F 12 80 13 01 00 00 00 00 00 DE [07:56:59]Write i2c OK [07:56:59]MH_I2C_Read... [07:56:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:59]Read from MH i2c: E2 [07:56:59]MH_I2C_Read... [07:56:59]Read from MH i2c: E2 0E 00 [07:56:59]MH_I2C_Read... [07:56:59]Read from MH i2c: E2 0E 00 4F 12 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A6 [07:56:59]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [07:56:59]wFMCommunicate OK [07:56:59]SAM_PROTO_GetShiftState done [07:56:59]FM_GetShiftState done [07:56:59]req_shift_opened done [07:56:59]requested_item shift.open_date is exist - process it [07:56:59]req_shift_open_date [07:56:59]req_shift_open_date done [07:56:59]produce_requested_data done [07:56:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67009,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [07:56:59]process_action_free close_receipt [07:56:59]json_value_free [07:56:59]json_value_free done [07:56:59]process_json_proto returns [07:56:59]Send response to host [07:56:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67009,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [07:56:59]free response buf [07:56:59]execute_script done [07:56:59]execute_script returns [07:56:59]free content buf [07:56:59]Sock 9.Close socket [07:56:59]Sock 9.Thread stoped [07:57:03]OFD Sender: No OFD packet to send [07:57:08]OFD Sender: No OFD packet to send [07:57:13]OFD Sender: No OFD packet to send [07:57:18]OFD Sender: No OFD packet to send [07:57:23]OFD Sender: No OFD packet to send [07:57:28]OFD Sender: No OFD packet to send [07:57:33]OFD Sender: No OFD packet to send [07:57:38]OFD Sender: No OFD packet to send [07:57:43]OFD Sender: No OFD packet to send [07:57:48]OFD Sender: No OFD packet to send [07:57:53]OFD Sender: No OFD packet to send [07:57:58]OFD Sender: No OFD packet to send [07:58:03]OFD Sender: No OFD packet to send [07:58:08]OFD Sender: No OFD packet to send [07:58:13]OFD Sender: No OFD packet to send [07:58:18]OFD Sender: No OFD packet to send [07:58:23]OFD Sender: No OFD packet to send [07:58:28]OFD Sender: No OFD packet to send [07:58:33]OFD Sender: No OFD packet to send [07:58:38]OFD Sender: No OFD packet to send [07:58:43]OFD Sender: No OFD packet to send [07:58:43]accept exits with 8 [07:58:43]New connection [07:58:43]New thread 3066760548 created [07:58:43]Thread 3066617188 joined [07:58:43]Waiting for new connection... [07:58:43] Sock 8.Parse request [07:58:43]Sock 8.Check first char [07:58:43]Sock 8.First char is OK [07:58:43]request: POST /json_proto HTTP/1.0 [07:58:43]Method: POST [07:58:43]URL: /json_proto [07:58:43]Method is POST - this is cgi request [07:58:43]url: /json_proto [07:58:43]query_string will be loaded in cgi processing [07:58:43]execute_cgi json_proto POST (null) [07:58:43]execute_cgi path=json_proto method=POST [07:58:43]POST find Content-Length [07:58:43]Host: 172.17.41.195:8080 [07:58:43]Content-Length: 677 [07:58:43]Content-Type: application/json [07:58:43] [07:58:43]POST finish read [07:58:43]Found Content-Length = 677 [07:58:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506828", "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:58:43]execute_script... [07:58: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)506828", "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:58:43]POST & json_proto [07:58:43]process_json_proto [07:58:43]json parsed OK: [07:58:43]protocol is kg_v1.0 [07:58:43]action value=close_receipt [07:58:43]process_action close_receipt [07:58:43]cmd_close_receipt [07:58:43]MH_GetDate [07:58:43]Write to MH i2c: F0 00 00 50 12 51 [07:58:43]Write i2c OK [07:58:43]MH_I2C_Read... [07:58:43]Read from MH i2c: F0 [07:58:43]MH_I2C_Read... [07:58:43]Read from MH i2c: F0 09 00 [07:58:43]MH_I2C_Read... [07:58:43]Read from MH i2c: F0 09 00 50 12 00 B7 19 43 66 FC 21 6F 64 C3 [07:58:43]GetLastDocTimeStamp 1715673419 [07:58:43]current date 1715673527 [07:58:43]FM_GetShiftState [07:58:43]SAM_PROTO_GetShiftState [07:58:43]wFMCommunicate request_size=4 [07:58:43]MH_SAM_APDU [07:58:43]CAPDU: 80 13 01 00 [07:58:43]Write to MH i2c: E2 08 00 51 12 80 13 01 00 00 00 00 00 E0 [07:58:43]Write i2c OK [07:58:43]MH_I2C_Read... [07:58:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:43]Read from MH i2c: E2 [07:58:43]MH_I2C_Read... [07:58:43]Read from MH i2c: E2 0E 00 [07:58:43]MH_I2C_Read... [07:58:43]Read from MH i2c: E2 0E 00 51 12 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A8 [07:58:43]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [07:58:43]wFMCommunicate OK [07:58:43]SAM_PROTO_GetShiftState done [07:58:43]FM_GetShiftState done [07:58:43]opened in 1715646054 [07:58:43]opened+sec_in_day 1715732454 [07:58:43]quantity*price = 50033 [07:58:43]sum+1 = 50034 [07:58:43]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 14.05.2024 07:58 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67010 ФПД: 259128254360119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T075847&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67010&fm=259128254360119&tin=02508201610067®Number=0000000000091845&sum=50000 [07:58:44]StoreToDocumentArchive [07:58:44]shift 355 fd 67010 [07:58:44]save to /storage/0355/doc_00067010 [07:58:44]save last doc name /storage/0355/doc_00067010 to /storage/kkm_last_doc_name [07:58:44]save OK [07:58:44]Clear old archive folders... [07:58:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:58:44]tlvbuf is 00381F40 [07:58:44]SAM_PROTO_ClearQueue [07:58:44]wFMCommunicate request_size=4 [07:58:44]MH_SAM_APDU [07:58:44]CAPDU: 80 09 00 00 [07:58:44]Write to MH i2c: E2 08 00 5E 12 80 09 00 00 00 00 00 00 E2 [07:58:44]Write i2c OK [07:58:44]MH_I2C_Read... [07:58:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:45]Read from MH i2c: E2 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: E2 03 00 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: E2 03 00 5E 12 00 90 00 E4 [07:58:45]RAPDU: 90 00 [07:58:45]wFMCommunicate OK [07:58:45]SAM_PROTO_ClearQueue done [07:58:45]KKMCreateOFDPacket [07:58:45]OFDProtocolAddRootSTLVToBuf [07:58:45]FM_MakeSignedData [07:58:45]FM_MakeSignedData [07:58:45]SAM_PROTO_SignData [07:58:45]wFMCommunicate request_size=4 [07:58:45]MH_SAM_APDU [07:58:45]CAPDU: 80 0D 01 02 [07:58:45]Write to MH i2c: E2 08 00 5F 12 80 0D 01 02 00 00 00 00 EA [07:58:45]Write i2c OK [07:58:45]MH_I2C_Read... [07:58:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:45]Read from MH i2c: E2 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: E2 03 00 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: E2 03 00 5F 12 00 90 00 E5 [07:58:45]RAPDU: 90 00 [07:58:45]wFMCommunicate OK [07:58:45]wFMCommunicate request_size=255 [07:58:45]MH_SAM_APDU [07:58: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 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 B7 19 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C2 05 01 00 35 04 06 00 EB [07:58:45]Write to MH i2c: E2 02 01 60 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 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 B7 19 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C2 05 01 00 35 04 06 00 EB 00 00 16 [07:58:45]Write i2c OK [07:58:45]MH_I2C_Read... [07:58:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:45]Read from MH i2c: E2 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: E2 03 00 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: E2 03 00 60 12 00 90 00 E6 [07:58:45]RAPDU: 90 00 [07:58:45]wFMCommunicate OK [07:58:45]wFMCommunicate request_size=10 [07:58:45]MH_SAM_APDU [07:58:45]CAPDU: 80 0D 02 02 05 AC FF 8D 6A 37 [07:58:45]Write to MH i2c: E2 0D 00 61 12 80 0D 02 02 05 00 AC FF 8D 6A 37 00 00 D0 [07:58:45]Write i2c OK [07:58:45]MH_I2C_Read... [07:58:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:45]Read from MH i2c: E2 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: E2 03 00 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: E2 03 00 61 12 00 90 00 E7 [07:58:45]RAPDU: 90 00 [07:58:45]wFMCommunicate OK [07:58:45]wFMCommunicate request_size=4 [07:58:45]MH_SAM_APDU [07:58:45]CAPDU: 80 0D 03 02 [07:58:45]Write to MH i2c: E2 08 00 62 12 80 0D 03 02 00 00 00 00 EF [07:58:45]Write i2c OK [07:58:45]MH_I2C_Read... [07:58:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:45]Read from MH i2c: E2 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: E2 0B 00 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: E2 0B 00 62 12 00 26 41 62 4F 6E 44 C8 82 90 00 04 [07:58:45]RAPDU: 26 41 62 4F 6E 44 C8 82 90 00 [07:58:45]wFMCommunicate OK [07:58:45]SAM_PROTO_SignData done [07:58:45]FM_MakeSignedData done [07:58:45]CreateOFDProtocolMessage [07:58:45]wFMCommunicate request_size=4 [07:58:45]MH_SAM_APDU [07:58:45]CAPDU: 80 11 00 00 [07:58:45]Write to MH i2c: E2 08 00 63 12 80 11 00 00 00 00 00 00 EF [07:58:45]Write i2c OK [07:58:45]MH_I2C_Read... [07:58:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:45]Read from MH i2c: E2 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: E2 17 00 [07:58:45]MH_I2C_Read... [07:58:45]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 [07:58:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:58:45]wFMCommunicate OK [07:58:45]CreateOFDProtocolMessage done [07:58:45]OFDSenderStorePacket 67010 [07:58:45]StoreOFDPacket docnum=67010 [07:58: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 5C BA 07 01 47 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B7 19 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C2 05 01 00 35 04 06 00 EB AC FF 8D 6A 37 26 41 62 4F 6E 44 C8 82 [07:58:45]CheckFolder [07:58:45]dirname=/storage/ofd_packets [07:58:45]CheckFolder done [07:58:45]ProducePacketName [07:58:45]name=ofd_packets/00067010 [07:58:45]NVStorageSaveData ofd_packets/00067010 [07:58:45]File name is /storage/ofd_packets/00067010 [07:58:45]Write 301 bytes [07:58:45]NVStorageSaveData done [07:58:45]OFDSenderStorePacket done [07:58:45]KKMCreateOFDPacket done [07:58:45]NVStorageSaveData kkm_last_timestamp [07:58:45]File name is /storage/kkm_last_timestamp [07:58:45]Write 4 bytes [07:58:45]NVStorageSaveData done [07:58:45]ExternCall_PrintAddStr [07:58:45]wPrintStart [07:58:45]Write to MH i2c: 01 00 00 64 12 76 [07:58:45]Write i2c OK [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: 01 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: 01 07 00 [07:58:45]MH_I2C_Read... [07:58:45]Read from MH i2c: 01 07 00 64 12 00 00 00 00 00 FF 0F 8B [07:58:45]RasterBufferAndPrint [07:58:45]line Счет N : (1)506828 [07:58:45]line ИНН: 02508201610067 [07:58:45]line Контрольно-Кассовый Чек [07:58:45]line ПРОДАЖА [07:58:45]line ТРК (МРК, ГНК) : 13 [07:58:45]line Товар: 2710124130 [07:58:45]line Аи-92-К-5 [07:58:45]line 7.490 * 66.80 [07:58:45]line = 500.33 [07:58:45]line НДС 12% НСП 1% [07:58:45]line > о реализуемом товаре [07:58:45]line ОКРУГЛЕНИЕ: -0.33 [07:58:45]line ИТОГО: 500.00 [07:58:45]line Внесено: 500.00 [07:58:45]line СДАЧА: 0.00 [07:58:45]line НСП 1% : 4.43 [07:58:45]line НДС 12% : 53.13 [07:58:45]line Наличными: 500.00 [07:58:45]line Безнал.: 0.00 [07:58:45]line Место: АЗС № 91 "Партнер Нефть" [07:58:45]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [07:58:45]line СНО: Общий режим [07:58:45]line Чек 17 14.05.2024 07:58 [07:58:45]line Смена: 355 ФФД: 1.0 [07:58:45]line ЗНМ: 0300000119 [07:58:45]line РНМ: 0000000000091845 [07:58:45]line Версия ККМ: 001 [07:58:45]line ФМ: 0000000000871829 [07:58:45]line ФД: 67010 [07:58:45]line ФПД: 259128254360119 [07:58:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T075847&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67010&fm=259128254360119&tin=02508201610067®Number=0000000000091845&sum=50000 [07:58:45]OFD Sender: Processing packet 67010 [packets to send 35, broken 34] [07:58:45]ProducePacketName [07:58:45]name=ofd_packets/00067010 [07:58:45]OFD Sender: To server: pG, [07:58:45]CommunicateWithHost lk.salyk.kg:30040 [07:58:45]ConnectInit lk.salyk.kg [07:58:45]written 0, free lines is 4095 [07:58:45]Connected sock=10 [07:58: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 5C BA 07 01 47 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B7 19 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C2 05 01 00 35 04 06 00 EB AC FF 8D 6A 37 26 41 62 4F 6E 44 C8 82 [07:58: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 E0 27 47 00 32 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 C2 05 01 00 F4 03 04 00 97 C1 42 66 B6 04 01 00 00 84 9E 9F B0 75 2D 01 CD [07:58:46]CommunicateWithHost err = 0 [07:58:46]CheckOFDResponse [07:58:46]1017 (14) - 77093643461234 [07:58:46]1041 (16) - 0000000000871829 [07:58:46]1040 (4) - 67010 [07:58:46]1012 (4) - 14.05.2024 01:42 [07:58:46]1206 (1) - 0 [07:58:46]OFD Sender: Remove packet 67010 [07:58:46]ProducePacketName [07:58:46]name=ofd_packets/00067010 [07:58:46]NVStorageDeleteData [07:58:46]Write to MH i2c: 01 00 00 8E 12 A0 [07:58:46]Write i2c OK [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: 01 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: 01 07 00 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: 01 07 00 8E 12 00 00 00 00 00 BE 0C 71 [07:58:46]RasterBufferAndPrint [07:58:46]line [07:58:46]line [07:58:46]line [07:58:46]line [07:58:46]line [07:58:46]written 0, free lines is 3268 [07:58:46]MH_Cut [07:58:46]Write to MH i2c: D1 01 00 95 12 01 79 [07:58:46]Write i2c OK [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: D1 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: D1 01 00 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: D1 01 00 95 12 00 78 [07:58:46]Write to MH i2c: 01 00 00 96 12 A8 [07:58:46]Write i2c OK [07:58:46]MH_I2C_Read... [07:58:46]OFD Sender: No OFD packet to send [07:58:47]*** Cut start [07:58:47]*** Purtial cut [07:58:47]*** CUTSNS_PIN = 0 [07:58:47]*** Stage 1: CUTSNS_PIN = 1 [07:58:49]Read from MH i2c: 01 [07:58:49]MH_I2C_Read... [07:58:49]*** Stop cut motor [07:58:49]*** Cut end [07:58:49]Read from MH i2c: 01 07 00 [07:58:49]MH_I2C_Read... [07:58:49]Read from MH i2c: 01 07 00 96 12 00 00 00 00 00 FF 0F BD [07:58:49]process_action close_receipt done [07:58:49]requested_data is exist [07:58:49]produce_requested_data [07:58:49]requested_item fm.sn is exist - process it [07:58:49]wFMCommunicate request_size=4 [07:58:49]MH_SAM_APDU [07:58:49]CAPDU: 80 11 00 00 [07:58:49]Write to MH i2c: E2 08 00 97 12 80 11 00 00 00 00 00 00 23 [07:58:49]Write i2c OK [07:58:49]MH_I2C_Read... [07:58:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:49]Read from MH i2c: E2 [07:58:49]MH_I2C_Read... [07:58:49]Read from MH i2c: E2 17 00 [07:58:49]MH_I2C_Read... [07:58:49]Read from MH i2c: E2 17 00 97 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 79 [07:58:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [07:58:49]wFMCommunicate OK [07:58:49]requested_item fd.num is exist - process it [07:58:49]SAM_PROTO_GetFieldsCounters [07:58:49]wFMCommunicate request_size=4 [07:58:49]MH_SAM_APDU [07:58:49]CAPDU: 80 13 00 00 [07:58:49]Write to MH i2c: E2 08 00 98 12 80 13 00 00 00 00 00 00 26 [07:58:49]Write i2c OK [07:58:49]MH_I2C_Read... [07:58:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:49]Read from MH i2c: E2 [07:58:49]MH_I2C_Read... [07:58:49]Read from MH i2c: E2 62 00 [07:58:49]MH_I2C_Read... [07:58:49]Read from MH i2c: E2 62 00 98 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 C2 05 01 00 0E 04 04 00 63 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 AB [07:58: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 C2 05 01 00 0E 04 04 00 63 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:58:49]wFMCommunicate OK [07:58:49]SAM_PROTO_GetFieldsCounters done [07:58:49]requested_item shift.num is exist - process it [07:58:49]requested_item shift.opened is exist - process it [07:58:49]req_shift_opened [07:58:49]FM_GetShiftState [07:58:49]SAM_PROTO_GetShiftState [07:58:49]wFMCommunicate request_size=4 [07:58:49]MH_SAM_APDU [07:58:49]CAPDU: 80 13 01 00 [07:58:49]Write to MH i2c: E2 08 00 99 12 80 13 01 00 00 00 00 00 28 [07:58:49]Write i2c OK [07:58:49]MH_I2C_Read... [07:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:49]Read from MH i2c: E2 [07:58:49]MH_I2C_Read... [07:58:49]Read from MH i2c: E2 0E 00 [07:58:49]MH_I2C_Read... [07:58:49]Read from MH i2c: E2 0E 00 99 12 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F0 [07:58:49]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [07:58:49]wFMCommunicate OK [07:58:49]SAM_PROTO_GetShiftState done [07:58:49]FM_GetShiftState done [07:58:49]req_shift_opened done [07:58:49]requested_item shift.open_date is exist - process it [07:58:49]req_shift_open_date [07:58:49]req_shift_open_date done [07:58:49]produce_requested_data done [07:58:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67010,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [07:58:49]process_action_free close_receipt [07:58:49]json_value_free [07:58:49]json_value_free done [07:58:49]process_json_proto returns [07:58:49]Send response to host [07:58:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67010,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [07:58:49]free response buf [07:58:49]execute_script done [07:58:49]execute_script returns [07:58:49]free content buf [07:58:49]Sock 8.Close socket [07:58:49]Sock 8.Thread stoped [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:01:01]OFD Sender: No OFD packet to send [08:01:06]OFD Sender: No OFD packet to send [08:01:11]OFD Sender: No OFD packet to send [08:01:16]OFD Sender: No OFD packet to send [08:01:21]OFD Sender: No OFD packet to send [08:01:26]OFD Sender: No OFD packet to send [08:01:31]OFD Sender: No OFD packet to send [08:01:36]OFD Sender: No OFD packet to send [08:01:41]OFD Sender: No OFD packet to send [08:01:46]OFD Sender: No OFD packet to send [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:00]accept exits with 9 [08:08:00]New connection [08:08:00]New thread 3066617188 created [08:08:00]Thread 3066760548 joined [08:08:00]Waiting for new connection... [08:08:00] Sock 9.Parse request [08:08:00]Sock 9.Check first char [08:08:00]Sock 9.First char is OK [08:08:00]request: POST /json_proto HTTP/1.0 [08:08:00]Method: POST [08:08:00]URL: /json_proto [08:08:00]Method is POST - this is cgi request [08:08:00]url: /json_proto [08:08:00]query_string will be loaded in cgi processing [08:08:00]execute_cgi json_proto POST (null) [08:08:00]execute_cgi path=json_proto method=POST [08:08:00]POST find Content-Length [08:08:00]Host: 172.17.41.195:8080 [08:08:00]Content-Length: 1177 [08:08:00]Content-Type: application/json [08:08:00] [08:08:00]POST finish read [08:08:00]Found Content-Length = 1177 [08:08:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506829\u000A14.05.2024 07:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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" ] } } [08:08:00]execute_script... [08:08:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506829\u000A14.05.2024 07:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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" ] } } [08:08:00]POST & json_proto [08:08:00]process_json_proto [08:08:00]json parsed OK: [08:08:00]protocol is kg_v1.0 [08:08:00]action value=print_text [08:08:00]process_action print_text [08:08:00]cmd_print_text [08:08:00]ExternCall_PrintAddStr [08:08:00]wPrintStart [08:08:00]Write to MH i2c: 01 00 00 9A 12 AC [08:08:00]Write i2c OK [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: 01 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: 01 07 00 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: 01 07 00 9A 12 00 00 00 00 00 FF 0F C1 [08:08:00]RasterBufferAndPrint [08:08:00]line *****ТОВАРНЫЙ ЧЕК***** [08:08:00]line АЗС-91 [08:08:00]line Партнер нефть [08:08:00]line 02508201610067 [08:08:00]line Кассир : Адишов И. [08:08:00]line Счет N : (1)506829 [08:08:00]line 14.05.2024 07:50 [08:08:00]line ПРОДАЖА [08:08:00]line ТРК (МРК, ГНК): 41 [08:08:00]line Вид ГСМ : 2710194210 [08:08:00]line ДТ-К-5 [08:08:00]line 6.700 x 74.70 [08:08:00]line ИТОГ: 500.49 [08:08:00]line Тип оплаты: Талоны: Топливная Карта [08:08:00]line 02750 [08:08:00]line ______________________ [08:08:00]line (подпись) [08:08:00]written 0, free lines is 4095 [08:08:00]Write to MH i2c: 01 00 00 AE 12 C0 [08:08:00]Write i2c OK [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: 01 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: 01 07 00 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: 01 07 00 AE 12 00 00 00 00 00 0C 0E E1 [08:08:00]RasterBufferAndPrint [08:08:00]line [08:08:00]line [08:08:00]line [08:08:00]line [08:08:00]line [08:08:00]written 0, free lines is 3597 [08:08:00]MH_Cut [08:08:00]Write to MH i2c: D1 01 00 B5 12 01 99 [08:08:00]Write i2c OK [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: D1 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: D1 01 00 [08:08:00]MH_I2C_Read... [08:08:00]Read from MH i2c: D1 01 00 B5 12 00 98 [08:08:00]Write to MH i2c: 01 00 00 B6 12 C8 [08:08:00]Write i2c OK [08:08:00]MH_I2C_Read... [08:08:00]*** Cut start [08:08:00]*** Purtial cut [08:08:00]*** Stage 1: CUTSNS_PIN = 1 [08:08:01]Read from MH i2c: 01 [08:08:01]MH_I2C_Read... [08:08:01]Read from MH i2c: 01 07 00 [08:08:01]MH_I2C_Read... [08:08:01]*** Stop cut motor [08:08:01]*** Cut end [08:08:01]Read from MH i2c: 01 07 00 B6 12 00 00 00 00 00 FF 0F DD [08:08:01]process_action print_text done [08:08:01]requested_data is exist [08:08:01]produce_requested_data [08:08:01]requested_item fm.sn is exist - process it [08:08:01]wFMCommunicate request_size=4 [08:08:01]MH_SAM_APDU [08:08:01]CAPDU: 80 11 00 00 [08:08:01]Write to MH i2c: E2 08 00 B7 12 80 11 00 00 00 00 00 00 43 [08:08:01]Write i2c OK [08:08:01]MH_I2C_Read... [08:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:01]Read from MH i2c: E2 [08:08:01]MH_I2C_Read... [08:08:01]Read from MH i2c: E2 17 00 [08:08:01]MH_I2C_Read... [08:08:01]Read from MH i2c: E2 17 00 B7 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 99 [08:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:08:01]wFMCommunicate OK [08:08:01]requested_item fd.num is exist - process it [08:08:01]SAM_PROTO_GetFieldsCounters [08:08:01]wFMCommunicate request_size=4 [08:08:01]MH_SAM_APDU [08:08:01]CAPDU: 80 13 00 00 [08:08:01]Write to MH i2c: E2 08 00 B8 12 80 13 00 00 00 00 00 00 46 [08:08:01]Write i2c OK [08:08:01]MH_I2C_Read... [08:08:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:01]Read from MH i2c: E2 [08:08:01]MH_I2C_Read... [08:08:01]Read from MH i2c: E2 62 00 [08:08:01]MH_I2C_Read... [08:08:01]Read from MH i2c: E2 62 00 B8 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 C2 05 01 00 0E 04 04 00 63 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 CB [08:08: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 C2 05 01 00 0E 04 04 00 63 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:08:01]wFMCommunicate OK [08:08:01]SAM_PROTO_GetFieldsCounters done [08:08:01]requested_item shift.num is exist - process it [08:08:01]requested_item shift.opened is exist - process it [08:08:01]req_shift_opened [08:08:01]FM_GetShiftState [08:08:01]SAM_PROTO_GetShiftState [08:08:01]wFMCommunicate request_size=4 [08:08:01]MH_SAM_APDU [08:08:01]CAPDU: 80 13 01 00 [08:08:01]Write to MH i2c: E2 08 00 B9 12 80 13 01 00 00 00 00 00 48 [08:08:01]Write i2c OK [08:08:01]MH_I2C_Read... [08:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:01]Read from MH i2c: E2 [08:08:01]MH_I2C_Read... [08:08:01]Read from MH i2c: E2 0E 00 [08:08:01]MH_I2C_Read... [08:08:01]Read from MH i2c: E2 0E 00 B9 12 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 10 [08:08:01]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [08:08:01]wFMCommunicate OK [08:08:01]SAM_PROTO_GetShiftState done [08:08:01]FM_GetShiftState done [08:08:01]req_shift_opened done [08:08:01]requested_item shift.open_date is exist - process it [08:08:01]req_shift_open_date [08:08:01]req_shift_open_date done [08:08:01]produce_requested_data done [08:08:01]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67010,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [08:08:01]process_action_free print_text [08:08:01]json_value_free [08:08:01]json_value_free done [08:08:01]process_json_proto returns [08:08:01]Send response to host [08:08:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67010,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [08:08:01]free response buf [08:08:01]execute_script done [08:08:01]execute_script returns [08:08:01]free content buf [08:08:01]Sock 9.Close socket [08:08:01]Sock 9.Thread stoped [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]accept exits with 8 [08:12:02]New connection [08:12:02]New thread 3066760548 created [08:12:02]Thread 3066617188 joined [08:12:02]Waiting for new connection... [08:12:02] Sock 8.Parse request [08:12:02]Sock 8.Check first char [08:12:02]Sock 8.First char is OK [08:12:02]request: POST /json_proto HTTP/1.0 [08:12:02]Method: POST [08:12:02]URL: /json_proto [08:12:02]Method is POST - this is cgi request [08:12:02]url: /json_proto [08:12:02]query_string will be loaded in cgi processing [08:12:02]execute_cgi json_proto POST (null) [08:12:02]execute_cgi path=json_proto method=POST [08:12:02]POST find Content-Length [08:12:02]Host: 172.17.41.195:8080 [08:12:02]Content-Length: 1179 [08:12:02]Content-Type: application/json [08:12:02] [08:12:02]POST finish read [08:12:02]Found Content-Length = 1179 [08:12:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506830\u000A14.05.2024 07:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.500 x 74.70\u000A\u0418\u0422\u041E\u0413: 4519.35\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:12:02]execute_script... [08:12:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506830\u000A14.05.2024 07:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 60.500 x 74.70\u000A\u0418\u0422\u041E\u0413: 4519.35\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:12:02]POST & json_proto [08:12:02]process_json_proto [08:12:02]json parsed OK: [08:12:02]protocol is kg_v1.0 [08:12:02]action value=print_text [08:12:02]process_action print_text [08:12:02]cmd_print_text [08:12:02]ExternCall_PrintAddStr [08:12:02]wPrintStart [08:12:02]Write to MH i2c: 01 00 00 BA 12 CC [08:12:02]Write i2c OK [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: 01 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: 01 07 00 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: 01 07 00 BA 12 00 00 00 00 00 FF 0F E1 [08:12:02]RasterBufferAndPrint [08:12:02]line *****ТОВАРНЫЙ ЧЕК***** [08:12:02]line АЗС-91 [08:12:02]line Партнер нефть [08:12:02]line 02508201610067 [08:12:02]line Кассир : Адишов И. [08:12:02]line Счет N : (1)506830 [08:12:02]line 14.05.2024 07:54 [08:12:02]line ПРОДАЖА [08:12:02]line ТРК (МРК, ГНК): 31 [08:12:02]line Вид ГСМ : 2710194210 [08:12:02]line ДТ-К-5 [08:12:02]line 60.500 x 74.70 [08:12:02]line ИТОГ: 4519.35 [08:12:02]line Тип оплаты: Талоны: Топливная Карта [08:12:02]line 02750 [08:12:02]line ______________________ [08:12:02]line (подпись) [08:12:02]written 0, free lines is 4095 [08:12:02]OFD Sender: No OFD packet to send [08:12:02]Write to MH i2c: 01 00 00 CE 12 E0 [08:12:02]Write i2c OK [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: 01 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: 01 07 00 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: 01 07 00 CE 12 00 00 00 00 00 0D 0E 02 [08:12:02]RasterBufferAndPrint [08:12:02]line [08:12:02]line [08:12:02]line [08:12:02]line [08:12:02]line [08:12:02]written 0, free lines is 3598 [08:12:02]MH_Cut [08:12:02]Write to MH i2c: D1 01 00 D5 12 01 B9 [08:12:02]Write i2c OK [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: D1 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: D1 01 00 [08:12:02]MH_I2C_Read... [08:12:02]Read from MH i2c: D1 01 00 D5 12 00 B8 [08:12:02]Write to MH i2c: 01 00 00 D6 12 E8 [08:12:02]Write i2c OK [08:12:02]MH_I2C_Read... [08:12:02]*** Cut start [08:12:02]*** Purtial cut [08:12:02]*** CUTSNS_PIN = 0 [08:12:03]*** Stage 1: CUTSNS_PIN = 1 [08:12:04]Read from MH i2c: 01 [08:12:04]MH_I2C_Read... [08:12:04]*** Stop cut motor [08:12:04]*** Cut end [08:12:04]Read from MH i2c: 01 07 00 [08:12:04]MH_I2C_Read... [08:12:04]Read from MH i2c: 01 07 00 D6 12 00 00 00 00 00 FF 0F FD [08:12:04]process_action print_text done [08:12:04]requested_data is exist [08:12:04]produce_requested_data [08:12:04]requested_item fm.sn is exist - process it [08:12:04]wFMCommunicate request_size=4 [08:12:04]MH_SAM_APDU [08:12:04]CAPDU: 80 11 00 00 [08:12:04]Write to MH i2c: E2 08 00 D7 12 80 11 00 00 00 00 00 00 63 [08:12:04]Write i2c OK [08:12:04]MH_I2C_Read... [08:12:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:05]Read from MH i2c: E2 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 17 00 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 17 00 D7 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B9 [08:12: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:12:05]wFMCommunicate OK [08:12:05]requested_item fd.num is exist - process it [08:12:05]SAM_PROTO_GetFieldsCounters [08:12:05]wFMCommunicate request_size=4 [08:12:05]MH_SAM_APDU [08:12:05]CAPDU: 80 13 00 00 [08:12:05]Write to MH i2c: E2 08 00 D8 12 80 13 00 00 00 00 00 00 66 [08:12:05]Write i2c OK [08:12:05]MH_I2C_Read... [08:12:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:05]Read from MH i2c: E2 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 62 00 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 62 00 D8 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 C2 05 01 00 0E 04 04 00 63 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 EB [08:12: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 C2 05 01 00 0E 04 04 00 63 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:12:05]wFMCommunicate OK [08:12:05]SAM_PROTO_GetFieldsCounters done [08:12:05]requested_item shift.num is exist - process it [08:12:05]requested_item shift.opened is exist - process it [08:12:05]req_shift_opened [08:12:05]FM_GetShiftState [08:12:05]SAM_PROTO_GetShiftState [08:12:05]wFMCommunicate request_size=4 [08:12:05]MH_SAM_APDU [08:12:05]CAPDU: 80 13 01 00 [08:12:05]Write to MH i2c: E2 08 00 D9 12 80 13 01 00 00 00 00 00 68 [08:12:05]Write i2c OK [08:12:05]MH_I2C_Read... [08:12:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:05]Read from MH i2c: E2 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 0E 00 [08:12:05]MH_I2C_Read... [08:12:05]Read from MH i2c: E2 0E 00 D9 12 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 30 [08:12:05]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [08:12:05]wFMCommunicate OK [08:12:05]SAM_PROTO_GetShiftState done [08:12:05]FM_GetShiftState done [08:12:05]req_shift_opened done [08:12:05]requested_item shift.open_date is exist - process it [08:12:05]req_shift_open_date [08:12:05]req_shift_open_date done [08:12:05]produce_requested_data done [08:12:05]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67010,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [08:12:05]process_action_free print_text [08:12:05]json_value_free [08:12:05]json_value_free done [08:12:05]process_json_proto returns [08:12:05]Send response to host [08:12:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67010,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [08:12:05]free response buf [08:12:05]execute_script done [08:12:05]execute_script returns [08:12:05]free content buf [08:12:05]Sock 8.Close socket [08:12:05]Sock 8.Thread stoped [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:18]accept exits with 9 [08:12:18]New connection [08:12:18]New thread 3066617188 created [08:12:18]Thread 3066760548 joined [08:12:18]Waiting for new connection... [08:12:18] Sock 9.Parse request [08:12:18]Sock 9.Check first char [08:12:18]Sock 9.First char is OK [08:12:18]request: POST /json_proto HTTP/1.0 [08:12:18]Method: POST [08:12:18]URL: /json_proto [08:12:18]Method is POST - this is cgi request [08:12:18]url: /json_proto [08:12:18]query_string will be loaded in cgi processing [08:12:18]execute_cgi json_proto POST (null) [08:12:18]execute_cgi path=json_proto method=POST [08:12:18]POST find Content-Length [08:12:18]Host: 172.17.41.195:8080 [08:12:18]Content-Length: 1179 [08:12:18]Content-Type: application/json [08:12:18] [08:12:18]POST finish read [08:12:18]Found Content-Length = 1179 [08:12: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)506831\u000A14.05.2024 07:55\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" ] } } [08:12:18]execute_script... [08:12: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)506831\u000A14.05.2024 07:55\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" ] } } [08:12:18]POST & json_proto [08:12:18]process_json_proto [08:12:18]json parsed OK: [08:12:18]protocol is kg_v1.0 [08:12:18]action value=print_text [08:12:18]process_action print_text [08:12:18]cmd_print_text [08:12:18]ExternCall_PrintAddStr [08:12:18]wPrintStart [08:12:18]Write to MH i2c: 01 00 00 DA 12 EC [08:12:18]Write i2c OK [08:12:18]MH_I2C_Read... [08:12:18]Read from MH i2c: 01 [08:12:18]MH_I2C_Read... [08:12:18]Read from MH i2c: 01 07 00 [08:12:18]MH_I2C_Read... [08:12:18]Read from MH i2c: 01 07 00 DA 12 00 00 00 00 00 FF 0F 01 [08:12:18]RasterBufferAndPrint [08:12:18]line *****ТОВАРНЫЙ ЧЕК***** [08:12:18]line АЗС-91 [08:12:18]line Партнер нефть [08:12:18]line 02508201610067 [08:12:18]line Кассир : Адишов И. [08:12:18]line Счет N : (1)506831 [08:12:18]line 14.05.2024 07:55 [08:12:18]line ПРОДАЖА [08:12:18]line ТРК (МРК, ГНК): 11 [08:12:18]line Вид ГСМ : 2710194210 [08:12:18]line ДТ-К-5 [08:12:18]line 53.550 x 74.70 [08:12:18]line ИТОГ: 4000.19 [08:12:18]line Тип оплаты: Талоны: Топливная Карта [08:12:18]line 02750 [08:12:18]line ______________________ [08:12:18]line (подпись) [08:12:18]written 0, free lines is 4095 [08:12:18]Write to MH i2c: 01 00 00 EE 12 00 [08:12:18]Write i2c OK [08:12:18]MH_I2C_Read... [08:12:18]Read from MH i2c: 01 [08:12:18]MH_I2C_Read... [08:12:18]Read from MH i2c: 01 07 00 [08:12:18]MH_I2C_Read... [08:12:18]Read from MH i2c: 01 07 00 EE 12 00 00 00 00 00 0C 0E 21 [08:12:18]RasterBufferAndPrint [08:12:18]line [08:12:18]line [08:12:18]line [08:12:18]line [08:12:18]line [08:12:18]written 0, free lines is 3598 [08:12:18]MH_Cut [08:12:18]Write to MH i2c: D1 01 00 F5 12 01 D9 [08:12:18]Write i2c OK [08:12:18]MH_I2C_Read... [08:12:18]Read from MH i2c: D1 [08:12:18]MH_I2C_Read... [08:12:18]Read from MH i2c: D1 01 00 [08:12:18]MH_I2C_Read... [08:12:18]Read from MH i2c: D1 01 00 F5 12 00 D8 [08:12:18]Write to MH i2c: 01 00 00 F6 12 08 [08:12:18]Write i2c OK [08:12:18]MH_I2C_Read... [08:12:19]*** Cut start [08:12:19]*** Purtial cut [08:12:19]*** Stage 1: CUTSNS_PIN = 1 [08:12:19]Read from MH i2c: 01 [08:12:19]MH_I2C_Read... [08:12:19]Read from MH i2c: 01 07 00 [08:12:19]MH_I2C_Read... [08:12:19]*** Stop cut motor [08:12:19]*** Cut end [08:12:19]Read from MH i2c: 01 07 00 F6 12 00 00 00 00 00 FF 0F 1D [08:12:19]process_action print_text done [08:12:19]requested_data is exist [08:12:19]produce_requested_data [08:12:19]requested_item fm.sn is exist - process it [08:12:19]wFMCommunicate request_size=4 [08:12:19]MH_SAM_APDU [08:12:19]CAPDU: 80 11 00 00 [08:12:19]Write to MH i2c: E2 08 00 F7 12 80 11 00 00 00 00 00 00 83 [08:12:19]Write i2c OK [08:12:19]MH_I2C_Read... [08:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:19]Read from MH i2c: E2 [08:12:19]MH_I2C_Read... [08:12:19]Read from MH i2c: E2 17 00 [08:12:19]MH_I2C_Read... [08:12:19]Read from MH i2c: E2 17 00 F7 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D9 [08: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 [08:12:19]wFMCommunicate OK [08:12:19]requested_item fd.num is exist - process it [08:12:19]SAM_PROTO_GetFieldsCounters [08:12:19]wFMCommunicate request_size=4 [08:12:19]MH_SAM_APDU [08:12:19]CAPDU: 80 13 00 00 [08:12:19]Write to MH i2c: E2 08 00 F8 12 80 13 00 00 00 00 00 00 86 [08:12:19]Write i2c OK [08:12:19]MH_I2C_Read... [08:12:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:19]Read from MH i2c: E2 [08:12:19]MH_I2C_Read... [08:12:19]Read from MH i2c: E2 62 00 [08:12:19]MH_I2C_Read... [08:12:19]Read from MH i2c: E2 62 00 F8 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 C2 05 01 00 0E 04 04 00 63 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 0B [08:12: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 C2 05 01 00 0E 04 04 00 63 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:12:19]wFMCommunicate OK [08:12:19]SAM_PROTO_GetFieldsCounters done [08:12:19]requested_item shift.num is exist - process it [08:12:19]requested_item shift.opened is exist - process it [08:12:19]req_shift_opened [08:12:19]FM_GetShiftState [08:12:19]SAM_PROTO_GetShiftState [08:12:19]wFMCommunicate request_size=4 [08:12:19]MH_SAM_APDU [08:12:19]CAPDU: 80 13 01 00 [08:12:19]Write to MH i2c: E2 08 00 F9 12 80 13 01 00 00 00 00 00 88 [08:12:19]Write i2c OK [08:12:19]MH_I2C_Read... [08:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:19]Read from MH i2c: E2 [08:12:19]MH_I2C_Read... [08:12:19]Read from MH i2c: E2 0E 00 [08:12:19]MH_I2C_Read... [08:12:19]Read from MH i2c: E2 0E 00 F9 12 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 50 [08:12:19]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [08:12:19]wFMCommunicate OK [08:12:19]SAM_PROTO_GetShiftState done [08:12:19]FM_GetShiftState done [08:12:19]req_shift_opened done [08:12:19]requested_item shift.open_date is exist - process it [08:12:19]req_shift_open_date [08:12:19]req_shift_open_date done [08:12:19]produce_requested_data done [08:12:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67010,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [08:12:19]process_action_free print_text [08:12:19]json_value_free [08:12:19]json_value_free done [08:12:19]process_json_proto returns [08:12:19]Send response to host [08:12:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67010,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [08:12:19]free response buf [08:12:19]execute_script done [08:12:19]execute_script returns [08:12:19]free content buf [08:12:19]Sock 9.Close socket [08:12:19]Sock 9.Thread stoped [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:19]accept exits with 8 [08:15:19]New connection [08:15:19]New thread 3066760548 created [08:15:19]Thread 3066617188 joined [08:15:19]Waiting for new connection... [08:15:19] Sock 8.Parse request [08:15:19]Sock 8.Check first char [08:15:19]Sock 8.First char is OK [08:15:19]request: POST /json_proto HTTP/1.0 [08:15:19]Method: POST [08:15:19]URL: /json_proto [08:15:19]Method is POST - this is cgi request [08:15:19]url: /json_proto [08:15:19]query_string will be loaded in cgi processing [08:15:19]execute_cgi json_proto POST (null) [08:15:19]execute_cgi path=json_proto method=POST [08:15:19]POST find Content-Length [08:15:19]Host: 172.17.41.195:8080 [08:15:19]Content-Length: 1177 [08:15:19]Content-Type: application/json [08:15:19] [08:15:19]POST finish read [08:15:19]Found Content-Length = 1177 [08:15: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)506832\u000A14.05.2024 07:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 5.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 373.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:19]execute_script... [08:15: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)506832\u000A14.05.2024 07:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 5.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 373.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:19]POST & json_proto [08:15:19]process_json_proto [08:15:19]json parsed OK: [08:15:19]protocol is kg_v1.0 [08:15:19]action value=print_text [08:15:19]process_action print_text [08:15:19]cmd_print_text [08:15:19]ExternCall_PrintAddStr [08:15:19]wPrintStart [08:15:19]Write to MH i2c: 01 00 00 FA 12 0C [08:15:19]Write i2c OK [08:15:19]MH_I2C_Read... [08:15:19]Read from MH i2c: 01 [08:15:19]MH_I2C_Read... [08:15:19]Read from MH i2c: 01 07 00 [08:15:19]MH_I2C_Read... [08:15:19]Read from MH i2c: 01 07 00 FA 12 00 00 00 00 00 FF 0F 21 [08:15:19]RasterBufferAndPrint [08:15:19]line *****ТОВАРНЫЙ ЧЕК***** [08:15:19]line АЗС-91 [08:15:19]line Партнер нефть [08:15:19]line 02508201610067 [08:15:19]line Кассир : Адишов И. [08:15:19]line Счет N : (1)506832 [08:15:19]line 14.05.2024 07:58 [08:15:19]line ПРОДАЖА [08:15:19]line ТРК (МРК, ГНК): 11 [08:15:19]line Вид ГСМ : 2710194210 [08:15:19]line ДТ-К-5 [08:15:19]line 5.000 x 74.70 [08:15:19]line ИТОГ: 373.50 [08:15:19]line Тип оплаты: Талоны: Топливная Карта [08:15:19]line 02750 [08:15:19]line ______________________ [08:15:19]line (подпись) [08:15:19]written 0, free lines is 4095 [08:15:20]Write to MH i2c: 01 00 00 0E 13 21 [08:15:20]Write i2c OK [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: 01 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: 01 07 00 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: 01 07 00 0E 13 00 00 00 00 00 0B 0E 41 [08:15:20]RasterBufferAndPrint [08:15:20]line [08:15:20]line [08:15:20]line [08:15:20]line [08:15:20]line [08:15:20]written 0, free lines is 3597 [08:15:20]MH_Cut [08:15:20]Write to MH i2c: D1 01 00 15 13 01 FA [08:15:20]Write i2c OK [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: D1 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: D1 01 00 [08:15:20]MH_I2C_Read... [08:15:20]Read from MH i2c: D1 01 00 15 13 00 F9 [08:15:20]Write to MH i2c: 01 00 00 16 13 29 [08:15:20]Write i2c OK [08:15:20]MH_I2C_Read... [08:15:20]*** Cut start [08:15:20]*** Purtial cut [08:15:20]*** CUTSNS_PIN = 0 [08:15:21]*** Stage 1: CUTSNS_PIN = 1 [08:15:22]OFD Sender: No OFD packet to send [08:15:22]Read from MH i2c: 01 [08:15:22]MH_I2C_Read... [08:15:22]Read from MH i2c: 01 07 00 [08:15:22]MH_I2C_Read... [08:15:22]*** Stop cut motor [08:15:22]*** Cut end [08:15:22]Read from MH i2c: 01 07 00 16 13 00 00 00 00 00 FF 0F 3E [08:15:22]process_action print_text done [08:15:22]requested_data is exist [08:15:22]produce_requested_data [08:15:22]requested_item fm.sn is exist - process it [08:15:22]wFMCommunicate request_size=4 [08:15:22]MH_SAM_APDU [08:15:22]CAPDU: 80 11 00 00 [08:15:22]Write to MH i2c: E2 08 00 17 13 80 11 00 00 00 00 00 00 A4 [08:15:22]Write i2c OK [08:15:22]MH_I2C_Read... [08:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:22]Read from MH i2c: E2 [08:15:22]MH_I2C_Read... [08:15:22]Read from MH i2c: E2 17 00 [08:15:22]MH_I2C_Read... [08:15:22]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 [08:15:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:15:22]wFMCommunicate OK [08:15:22]requested_item fd.num is exist - process it [08:15:22]SAM_PROTO_GetFieldsCounters [08:15:22]wFMCommunicate request_size=4 [08:15:22]MH_SAM_APDU [08:15:22]CAPDU: 80 13 00 00 [08:15:22]Write to MH i2c: E2 08 00 18 13 80 13 00 00 00 00 00 00 A7 [08:15:22]Write i2c OK [08:15:22]MH_I2C_Read... [08:15:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:22]Read from MH i2c: E2 [08:15:22]MH_I2C_Read... [08:15:22]Read from MH i2c: E2 62 00 [08:15:22]MH_I2C_Read... [08:15:22]Read from MH i2c: E2 62 00 18 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 C2 05 01 00 0E 04 04 00 63 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 2C [08:15: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 C2 05 01 00 0E 04 04 00 63 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:15:22]wFMCommunicate OK [08:15:22]SAM_PROTO_GetFieldsCounters done [08:15:22]requested_item shift.num is exist - process it [08:15:22]requested_item shift.opened is exist - process it [08:15:22]req_shift_opened [08:15:22]FM_GetShiftState [08:15:22]SAM_PROTO_GetShiftState [08:15:22]wFMCommunicate request_size=4 [08:15:22]MH_SAM_APDU [08:15:22]CAPDU: 80 13 01 00 [08:15:22]Write to MH i2c: E2 08 00 19 13 80 13 01 00 00 00 00 00 A9 [08:15:22]Write i2c OK [08:15:22]MH_I2C_Read... [08:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:23]Read from MH i2c: E2 [08:15:23]MH_I2C_Read... [08:15:23]Read from MH i2c: E2 0E 00 [08:15:23]MH_I2C_Read... [08:15:23]Read from MH i2c: E2 0E 00 19 13 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 71 [08:15:23]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [08:15:23]wFMCommunicate OK [08:15:23]SAM_PROTO_GetShiftState done [08:15:23]FM_GetShiftState done [08:15:23]req_shift_opened done [08:15:23]requested_item shift.open_date is exist - process it [08:15:23]req_shift_open_date [08:15:23]req_shift_open_date done [08:15:23]produce_requested_data done [08:15:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67010,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [08:15:23]process_action_free print_text [08:15:23]json_value_free [08:15:23]json_value_free done [08:15:23]process_json_proto returns [08:15:23]Send response to host [08:15:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67010,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [08:15:23]free response buf [08:15:23]execute_script done [08:15:23]execute_script returns [08:15:23]free content buf [08:15:23]Sock 8.Close socket [08:15:23]Sock 8.Thread stoped [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:19]recv_with_timeout no data received [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:15]accept exits with 9 [08:24:15]New connection [08:24:15]New thread 3066617188 created [08:24:15]Thread 3066760548 joined [08:24:15]Waiting for new connection... [08:24:15] Sock 9.Parse request [08:24:15]Sock 9.Check first char [08:24:15]Sock 9.First char is OK [08:24:15]request: POST /json_proto HTTP/1.0 [08:24:15]Method: POST [08:24:15]URL: /json_proto [08:24:15]Method is POST - this is cgi request [08:24:15]url: /json_proto [08:24:15]query_string will be loaded in cgi processing [08:24:15]execute_cgi json_proto POST (null) [08:24:15]execute_cgi path=json_proto method=POST [08:24:15]POST find Content-Length [08:24:15]Host: 172.17.41.195:8080 [08:24:15]Content-Length: 1179 [08:24:15]Content-Type: application/json [08:24:15] [08:24:15]POST finish read [08:24:15]Found Content-Length = 1179 [08:24: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)506833\u000A14.05.2024 08:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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" ] } } [08:24:15]execute_script... [08:24: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)506833\u000A14.05.2024 08:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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" ] } } [08:24:15]POST & json_proto [08:24:15]process_json_proto [08:24:15]json parsed OK: [08:24:15]protocol is kg_v1.0 [08:24:15]action value=print_text [08:24:15]process_action print_text [08:24:15]cmd_print_text [08:24:15]ExternCall_PrintAddStr [08:24:15]wPrintStart [08:24:15]Write to MH i2c: 01 00 00 1A 13 2D [08:24:15]Write i2c OK [08:24:15]MH_I2C_Read... [08:24:15]Read from MH i2c: 01 [08:24:15]MH_I2C_Read... [08:24:15]Read from MH i2c: 01 07 00 [08:24:15]MH_I2C_Read... [08:24:15]Read from MH i2c: 01 07 00 1A 13 00 00 00 00 00 FF 0F 42 [08:24:15]RasterBufferAndPrint [08:24:15]line *****ТОВАРНЫЙ ЧЕК***** [08:24:15]line АЗС-91 [08:24:15]line Партнер нефть [08:24:15]line 02508201610067 [08:24:15]line Кассир : Адишов И. [08:24:15]line Счет N : (1)506833 [08:24:15]line 14.05.2024 08:06 [08:24:15]line ПРОДАЖА [08:24:15]line ТРК (МРК, ГНК): 11 [08:24:15]line Вид ГСМ : 2710194210 [08:24:15]line ДТ-К-5 [08:24:15]line 33.470 x 74.70 [08:24:15]line ИТОГ: 2500.21 [08:24:15]line Тип оплаты: Талоны: Топливная Карта [08:24:15]line 02750 [08:24:15]line ______________________ [08:24:15]line (подпись) [08:24:15]written 0, free lines is 4095 [08:24:15]Write to MH i2c: 01 00 00 2E 13 41 [08:24:15]Write i2c OK [08:24:15]MH_I2C_Read... [08:24:15]Read from MH i2c: 01 [08:24:15]MH_I2C_Read... [08:24:15]Read from MH i2c: 01 07 00 [08:24:15]MH_I2C_Read... [08:24:15]Read from MH i2c: 01 07 00 2E 13 00 00 00 00 00 0D 0E 63 [08:24:15]RasterBufferAndPrint [08:24:15]line [08:24:15]line [08:24:15]line [08:24:15]line [08:24:15]line [08:24:15]written 0, free lines is 3598 [08:24:15]MH_Cut [08:24:15]Write to MH i2c: D1 01 00 35 13 01 1A [08:24:15]Write i2c OK [08:24:15]MH_I2C_Read... [08:24:15]Read from MH i2c: D1 [08:24:15]MH_I2C_Read... [08:24:15]Read from MH i2c: D1 01 00 [08:24:15]MH_I2C_Read... [08:24:15]Read from MH i2c: D1 01 00 35 13 00 19 [08:24:15]Write to MH i2c: 01 00 00 36 13 49 [08:24:15]Write i2c OK [08:24:15]MH_I2C_Read... [08:24:15]*** Cut start [08:24:15]*** Purtial cut [08:24:15]*** Stage 1: CUTSNS_PIN = 1 [08:24:16]Read from MH i2c: 01 [08:24:16]MH_I2C_Read... [08:24:16]*** Stop cut motor [08:24:16]*** Cut end [08:24:16]Read from MH i2c: 01 07 00 [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: 01 07 00 36 13 00 00 00 00 00 FF 0F 5E [08:24:16]process_action print_text done [08:24:16]requested_data is exist [08:24:16]produce_requested_data [08:24:16]requested_item fm.sn is exist - process it [08:24:16]wFMCommunicate request_size=4 [08:24:16]MH_SAM_APDU [08:24:16]CAPDU: 80 11 00 00 [08:24:16]Write to MH i2c: E2 08 00 37 13 80 11 00 00 00 00 00 00 C4 [08:24:16]Write i2c OK [08:24:16]MH_I2C_Read... [08:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:16]Read from MH i2c: E2 [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: E2 17 00 [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: E2 17 00 37 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1A [08:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:24:16]wFMCommunicate OK [08:24:16]requested_item fd.num is exist - process it [08:24:16]SAM_PROTO_GetFieldsCounters [08:24:16]wFMCommunicate request_size=4 [08:24:16]MH_SAM_APDU [08:24:16]CAPDU: 80 13 00 00 [08:24:16]Write to MH i2c: E2 08 00 38 13 80 13 00 00 00 00 00 00 C7 [08:24:16]Write i2c OK [08:24:16]MH_I2C_Read... [08:24:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:16]Read from MH i2c: E2 [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: E2 62 00 [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: E2 62 00 38 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 C2 05 01 00 0E 04 04 00 63 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 4C [08:24: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 C2 05 01 00 0E 04 04 00 63 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:24:16]wFMCommunicate OK [08:24:16]SAM_PROTO_GetFieldsCounters done [08:24:16]requested_item shift.num is exist - process it [08:24:16]requested_item shift.opened is exist - process it [08:24:16]req_shift_opened [08:24:16]FM_GetShiftState [08:24:16]SAM_PROTO_GetShiftState [08:24:16]wFMCommunicate request_size=4 [08:24:16]MH_SAM_APDU [08:24:16]CAPDU: 80 13 01 00 [08:24:16]Write to MH i2c: E2 08 00 39 13 80 13 01 00 00 00 00 00 C9 [08:24:16]Write i2c OK [08:24:16]MH_I2C_Read... [08:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:16]Read from MH i2c: E2 [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: E2 0E 00 [08:24:16]MH_I2C_Read... [08:24:16]Read from MH i2c: E2 0E 00 39 13 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 91 [08:24:16]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [08:24:16]wFMCommunicate OK [08:24:16]SAM_PROTO_GetShiftState done [08:24:16]FM_GetShiftState done [08:24:16]req_shift_opened done [08:24:16]requested_item shift.open_date is exist - process it [08:24:16]req_shift_open_date [08:24:16]req_shift_open_date done [08:24:16]produce_requested_data done [08:24:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67010,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [08:24:16]process_action_free print_text [08:24:16]json_value_free [08:24:16]json_value_free done [08:24:16]process_json_proto returns [08:24:16]Send response to host [08:24:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67010,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [08:24:16]free response buf [08:24:16]execute_script done [08:24:16]execute_script returns [08:24:16]free content buf [08:24:16]Sock 9.Close socket [08:24:16]Sock 9.Thread stoped [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:38]OFD Sender: No OFD packet to send [08:24:43]OFD Sender: No OFD packet to send [08:24:48]OFD Sender: No OFD packet to send [08:24:53]OFD Sender: No OFD packet to send [08:24:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]OFD Sender: No OFD packet to send [08:25:18]OFD Sender: No OFD packet to send [08:25:23]OFD Sender: No OFD packet to send [08:25:28]OFD Sender: No OFD packet to send [08:25:33]OFD Sender: No OFD packet to send [08:25:38]OFD Sender: No OFD packet to send [08:25:43]OFD Sender: No OFD packet to send [08:25:48]OFD Sender: No OFD packet to send [08:25:53]OFD Sender: No OFD packet to send [08:25:58]OFD Sender: No OFD packet to send [08:26:03]OFD Sender: No OFD packet to send [08:26:08]OFD Sender: No OFD packet to send [08:26:13]OFD Sender: No OFD packet to send [08:26:18]OFD Sender: No OFD packet to send [08:26:23]OFD Sender: No OFD packet to send [08:26:28]OFD Sender: No OFD packet to send [08:26:33]OFD Sender: No OFD packet to send [08:26:38]OFD Sender: No OFD packet to send [08:26:43]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:13]OFD Sender: No OFD packet to send [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:44]accept exits with 8 [08:32:44]New connection [08:32:44]New thread 3066760548 created [08:32:44]Thread 3066617188 joined [08:32:44]Waiting for new connection... [08:32:44] Sock 8.Parse request [08:32:44]Sock 8.Check first char [08:32:44]Sock 8.First char is OK [08:32:44]request: POST /json_proto HTTP/1.0 [08:32:44]Method: POST [08:32:44]URL: /json_proto [08:32:44]Method is POST - this is cgi request [08:32:44]url: /json_proto [08:32:44]query_string will be loaded in cgi processing [08:32:44]execute_cgi json_proto POST (null) [08:32:44]execute_cgi path=json_proto method=POST [08:32:44]POST find Content-Length [08:32:44]Host: 172.17.41.195:8080 [08:32:44]Content-Length: 1179 [08:32:44]Content-Type: application/json [08:32:44] [08:32:44]POST finish read [08:32:44]Found Content-Length = 1179 [08:32: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)506834\u000A14.05.2024 08:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.090 x 74.70\u000A\u0418\u0422\u041E\u0413: 1500.72\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:44]execute_script... [08:32: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)506834\u000A14.05.2024 08:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.090 x 74.70\u000A\u0418\u0422\u041E\u0413: 1500.72\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:44]POST & json_proto [08:32:44]process_json_proto [08:32:44]json parsed OK: [08:32:44]protocol is kg_v1.0 [08:32:44]action value=print_text [08:32:44]process_action print_text [08:32:44]cmd_print_text [08:32:44]ExternCall_PrintAddStr [08:32:44]wPrintStart [08:32:44]Write to MH i2c: 01 00 00 3A 13 4D [08:32:44]Write i2c OK [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: 01 [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: 01 07 00 [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: 01 07 00 3A 13 00 00 00 00 00 FF 0F 62 [08:32:44]RasterBufferAndPrint [08:32:44]line *****ТОВАРНЫЙ ЧЕК***** [08:32:44]line АЗС-91 [08:32:44]line Партнер нефть [08:32:44]line 02508201610067 [08:32:44]line Кассир : Адишов И. [08:32:44]line Счет N : (1)506834 [08:32:44]line 14.05.2024 08:15 [08:32:44]line ПРОДАЖА [08:32:44]line ТРК (МРК, ГНК): 31 [08:32:44]line Вид ГСМ : 2710194210 [08:32:44]line ДТ-К-5 [08:32:44]line 20.090 x 74.70 [08:32:44]line ИТОГ: 1500.72 [08:32:44]line Тип оплаты: Талоны: Топливная Карта [08:32:44]line 02750 [08:32:44]line ______________________ [08:32:44]line (подпись) [08:32:44]written 0, free lines is 4095 [08:32:44]Write to MH i2c: 01 00 00 4E 13 61 [08:32:44]Write i2c OK [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: 01 [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: 01 07 00 [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: 01 07 00 4E 13 00 00 00 00 00 0D 0E 83 [08:32:44]RasterBufferAndPrint [08:32:44]line [08:32:44]line [08:32:44]line [08:32:44]line [08:32:44]line [08:32:44]written 0, free lines is 3598 [08:32:44]MH_Cut [08:32:44]Write to MH i2c: D1 01 00 55 13 01 3A [08:32:44]Write i2c OK [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: D1 [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: D1 01 00 [08:32:44]MH_I2C_Read... [08:32:44]Read from MH i2c: D1 01 00 55 13 00 39 [08:32:44]Write to MH i2c: 01 00 00 56 13 69 [08:32:44]Write i2c OK [08:32:44]MH_I2C_Read... [08:32:45]*** Cut start [08:32:45]*** Purtial cut [08:32:45]*** CUTSNS_PIN = 0 [08:32:45]*** Stage 1: CUTSNS_PIN = 1 [08:32:47]Read from MH i2c: 01 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: 01 07 00 [08:32:47]MH_I2C_Read... [08:32:47]*** Stop cut motor [08:32:47]*** Cut end [08:32:47]Read from MH i2c: 01 07 00 56 13 00 00 00 00 00 FF 0F 7E [08:32:47]process_action print_text done [08:32:47]requested_data is exist [08:32:47]produce_requested_data [08:32:47]requested_item fm.sn is exist - process it [08:32:47]wFMCommunicate request_size=4 [08:32:47]MH_SAM_APDU [08:32:47]CAPDU: 80 11 00 00 [08:32:47]Write to MH i2c: E2 08 00 57 13 80 11 00 00 00 00 00 00 E4 [08:32:47]Write i2c OK [08:32:47]MH_I2C_Read... [08:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:47]Read from MH i2c: E2 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: E2 17 00 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: E2 17 00 57 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3A [08:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:32:47]wFMCommunicate OK [08:32:47]requested_item fd.num is exist - process it [08:32:47]SAM_PROTO_GetFieldsCounters [08:32:47]wFMCommunicate request_size=4 [08:32:47]MH_SAM_APDU [08:32:47]CAPDU: 80 13 00 00 [08:32:47]Write to MH i2c: E2 08 00 58 13 80 13 00 00 00 00 00 00 E7 [08:32:47]Write i2c OK [08:32:47]MH_I2C_Read... [08:32:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:47]Read from MH i2c: E2 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: E2 62 00 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: E2 62 00 58 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 C2 05 01 00 0E 04 04 00 63 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 6C [08:32: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 C2 05 01 00 0E 04 04 00 63 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:32:47]wFMCommunicate OK [08:32:47]SAM_PROTO_GetFieldsCounters done [08:32:47]requested_item shift.num is exist - process it [08:32:47]requested_item shift.opened is exist - process it [08:32:47]req_shift_opened [08:32:47]FM_GetShiftState [08:32:47]SAM_PROTO_GetShiftState [08:32:47]wFMCommunicate request_size=4 [08:32:47]MH_SAM_APDU [08:32:47]CAPDU: 80 13 01 00 [08:32:47]Write to MH i2c: E2 08 00 59 13 80 13 01 00 00 00 00 00 E9 [08:32:47]Write i2c OK [08:32:47]MH_I2C_Read... [08:32:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:47]Read from MH i2c: E2 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: E2 0E 00 [08:32:47]MH_I2C_Read... [08:32:47]Read from MH i2c: E2 0E 00 59 13 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 B1 [08:32:47]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [08:32:47]wFMCommunicate OK [08:32:47]SAM_PROTO_GetShiftState done [08:32:47]FM_GetShiftState done [08:32:47]req_shift_opened done [08:32:47]requested_item shift.open_date is exist - process it [08:32:47]req_shift_open_date [08:32:47]req_shift_open_date done [08:32:47]produce_requested_data done [08:32:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67010,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [08:32:47]process_action_free print_text [08:32:47]json_value_free [08:32:47]json_value_free done [08:32:47]process_json_proto returns [08:32:47]Send response to host [08:32:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67010,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [08:32:47]free response buf [08:32:47]execute_script done [08:32:47]execute_script returns [08:32:47]free content buf [08:32:47]Sock 8.Close socket [08:32:47]Sock 8.Thread stoped [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:45]accept exits with 9 [08:39:45]New connection [08:39:45]New thread 3066617188 created [08:39:45]Thread 3066760548 joined [08:39:45]Waiting for new connection... [08:39:45] Sock 9.Parse request [08:39:45]Sock 9.Check first char [08:39:45]Sock 9.First char is OK [08:39:45]request: POST /json_proto HTTP/1.0 [08:39:45]Method: POST [08:39:45]URL: /json_proto [08:39:45]Method is POST - this is cgi request [08:39:45]url: /json_proto [08:39:45]query_string will be loaded in cgi processing [08:39:45]execute_cgi json_proto POST (null) [08:39:45]execute_cgi path=json_proto method=POST [08:39:45]POST find Content-Length [08:39:45]Host: 172.17.41.195:8080 [08:39:45]Content-Length: 1179 [08:39:45]Content-Type: application/json [08:39:45] [08:39:45]POST finish read [08:39:45]Found Content-Length = 1179 [08:39: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506835\u000A14.05.2024 08:22\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" ] } } [08:39:45]execute_script... [08:39: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506835\u000A14.05.2024 08:22\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" ] } } [08:39:45]POST & json_proto [08:39:45]process_json_proto [08:39:45]json parsed OK: [08:39:45]protocol is kg_v1.0 [08:39:45]action value=print_text [08:39:45]process_action print_text [08:39:45]cmd_print_text [08:39:45]ExternCall_PrintAddStr [08:39:45]wPrintStart [08:39:45]Write to MH i2c: 01 00 00 5A 13 6D [08:39:45]Write i2c OK [08:39:45]MH_I2C_Read... [08:39:45]Read from MH i2c: 01 [08:39:45]MH_I2C_Read... [08:39:45]Read from MH i2c: 01 07 00 [08:39:45]MH_I2C_Read... [08:39:45]Read from MH i2c: 01 07 00 5A 13 00 00 00 00 00 FF 0F 82 [08:39:45]RasterBufferAndPrint [08:39:45]line *****ТОВАРНЫЙ ЧЕК***** [08:39:45]line АЗС-91 [08:39:45]line Партнер нефть [08:39:45]line 02508201610067 [08:39:45]line Кассир : Адишов И. [08:39:45]line Счет N : (1)506835 [08:39:45]line 14.05.2024 08:22 [08:39:45]line ПРОДАЖА [08:39:45]line ТРК (МРК, ГНК): 31 [08:39:45]line Вид ГСМ : 2710194210 [08:39:45]line ДТ-К-5 [08:39:45]line 15.000 x 74.70 [08:39:45]line ИТОГ: 1120.50 [08:39:45]line Тип оплаты: Талоны: Топливная Карта [08:39:45]line 02750 [08:39:45]line ______________________ [08:39:45]line (подпись) [08:39:45]written 0, free lines is 4095 [08:39:45]Write to MH i2c: 01 00 00 6E 13 81 [08:39:45]Write i2c OK [08:39:45]MH_I2C_Read... [08:39:45]Read from MH i2c: 01 [08:39:45]MH_I2C_Read... [08:39:45]Read from MH i2c: 01 07 00 [08:39:45]MH_I2C_Read... [08:39:45]Read from MH i2c: 01 07 00 6E 13 00 00 00 00 00 0D 0E A3 [08:39:45]RasterBufferAndPrint [08:39:45]line [08:39:45]line [08:39:45]line [08:39:45]line [08:39:45]line [08:39:45]written 0, free lines is 3598 [08:39:45]MH_Cut [08:39:45]Write to MH i2c: D1 01 00 75 13 01 5A [08:39:45]Write i2c OK [08:39:45]MH_I2C_Read... [08:39:45]Read from MH i2c: D1 [08:39:45]MH_I2C_Read... [08:39:45]Read from MH i2c: D1 01 00 [08:39:45]MH_I2C_Read... [08:39:45]Read from MH i2c: D1 01 00 75 13 00 59 [08:39:45]Write to MH i2c: 01 00 00 76 13 89 [08:39:45]Write i2c OK [08:39:45]MH_I2C_Read... [08:39:45]*** Cut start [08:39:45]*** Purtial cut [08:39:45]*** Stage 1: CUTSNS_PIN = 1 [08:39:46]Read from MH i2c: 01 [08:39:46]MH_I2C_Read... [08:39:46]*** Stop cut motor [08:39:46]*** Cut end [08:39:46]Read from MH i2c: 01 07 00 [08:39:46]MH_I2C_Read... [08:39:46]Read from MH i2c: 01 07 00 76 13 00 00 00 00 00 FF 0F 9E [08:39:46]process_action print_text done [08:39:46]requested_data is exist [08:39:46]produce_requested_data [08:39:46]requested_item fm.sn is exist - process it [08:39:46]wFMCommunicate request_size=4 [08:39:46]MH_SAM_APDU [08:39:46]CAPDU: 80 11 00 00 [08:39:46]Write to MH i2c: E2 08 00 77 13 80 11 00 00 00 00 00 00 04 [08:39:46]Write i2c OK [08:39:46]MH_I2C_Read... [08:39:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:46]Read from MH i2c: E2 [08:39:46]MH_I2C_Read... [08:39:46]Read from MH i2c: E2 17 00 [08:39:46]MH_I2C_Read... [08:39:46]Read from MH i2c: E2 17 00 77 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5A [08:39:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:39:46]wFMCommunicate OK [08:39:46]requested_item fd.num is exist - process it [08:39:46]SAM_PROTO_GetFieldsCounters [08:39:46]wFMCommunicate request_size=4 [08:39:46]MH_SAM_APDU [08:39:46]CAPDU: 80 13 00 00 [08:39:46]Write to MH i2c: E2 08 00 78 13 80 13 00 00 00 00 00 00 07 [08:39:46]Write i2c OK [08:39:46]MH_I2C_Read... [08:39:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:39:46]Read from MH i2c: E2 [08:39:46]MH_I2C_Read... [08:39:46]Read from MH i2c: E2 62 00 [08:39:46]MH_I2C_Read... [08:39:46]Read from MH i2c: E2 62 00 78 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 C2 05 01 00 0E 04 04 00 63 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 8C [08:39: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 C2 05 01 00 0E 04 04 00 63 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:39:46]wFMCommunicate OK [08:39:46]SAM_PROTO_GetFieldsCounters done [08:39:46]requested_item shift.num is exist - process it [08:39:46]requested_item shift.opened is exist - process it [08:39:46]req_shift_opened [08:39:46]FM_GetShiftState [08:39:46]SAM_PROTO_GetShiftState [08:39:46]wFMCommunicate request_size=4 [08:39:46]MH_SAM_APDU [08:39:46]CAPDU: 80 13 01 00 [08:39:46]Write to MH i2c: E2 08 00 79 13 80 13 01 00 00 00 00 00 09 [08:39:46]Write i2c OK [08:39:46]MH_I2C_Read... [08:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:46]Read from MH i2c: E2 [08:39:46]MH_I2C_Read... [08:39:46]Read from MH i2c: E2 0E 00 [08:39:46]MH_I2C_Read... [08:39:46]Read from MH i2c: E2 0E 00 79 13 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D1 [08:39:46]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [08:39:46]wFMCommunicate OK [08:39:46]SAM_PROTO_GetShiftState done [08:39:46]FM_GetShiftState done [08:39:46]req_shift_opened done [08:39:46]requested_item shift.open_date is exist - process it [08:39:46]req_shift_open_date [08:39:46]req_shift_open_date done [08:39:46]produce_requested_data done [08:39:46]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67010,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [08:39:46]process_action_free print_text [08:39:46]json_value_free [08:39:46]json_value_free done [08:39:46]process_json_proto returns [08:39:46]Send response to host [08:39:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67010,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [08:39:46]free response buf [08:39:46]execute_script done [08:39:46]execute_script returns [08:39:46]free content buf [08:39:46]Sock 9.Close socket [08:39:46]Sock 9.Thread stoped [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:13]OFD Sender: No OFD packet to send [08:40:18]OFD Sender: No OFD packet to send [08:40:23]OFD Sender: No OFD packet to send [08:40:25]accept exits with 8 [08:40:25]New connection [08:40:25]New thread 3066760548 created [08:40:25]Thread 3066617188 joined [08:40:25]Waiting for new connection... [08:40:25] Sock 8.Parse request [08:40:25]Sock 8.Check first char [08:40:25]Sock 8.First char is OK [08:40:25]request: POST /json_proto HTTP/1.0 [08:40:25]Method: POST [08:40:25]URL: /json_proto [08:40:25]Method is POST - this is cgi request [08:40:25]url: /json_proto [08:40:25]query_string will be loaded in cgi processing [08:40:25]execute_cgi json_proto POST (null) [08:40:25]execute_cgi path=json_proto method=POST [08:40:25]POST find Content-Length [08:40:25]Host: 172.17.41.195:8080 [08:40:25]Content-Length: 677 [08:40:25]Content-Type: application/json [08:40:25] [08:40:25]POST finish read [08:40:25]Found Content-Length = 677 [08:40:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506836", "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" ] } } [08:40:25]execute_script... [08:40: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)506836", "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" ] } } [08:40:25]POST & json_proto [08:40:25]process_json_proto [08:40:25]json parsed OK: [08:40:25]protocol is kg_v1.0 [08:40:25]action value=close_receipt [08:40:25]process_action close_receipt [08:40:25]cmd_close_receipt [08:40:25]MH_GetDate [08:40:25]Write to MH i2c: F0 00 00 7A 13 7C [08:40:25]Write i2c OK [08:40:25]MH_I2C_Read... [08:40:25]Read from MH i2c: F0 [08:40:25]MH_I2C_Read... [08:40:25]Read from MH i2c: F0 09 00 [08:40:25]MH_I2C_Read... [08:40:25]Read from MH i2c: F0 09 00 7A 13 00 7D 23 43 66 FC 21 6F 64 BE [08:40:25]GetLastDocTimeStamp 1715673527 [08:40:25]current date 1715676029 [08:40:25]FM_GetShiftState [08:40:25]SAM_PROTO_GetShiftState [08:40:25]wFMCommunicate request_size=4 [08:40:25]MH_SAM_APDU [08:40:25]CAPDU: 80 13 01 00 [08:40:25]Write to MH i2c: E2 08 00 7B 13 80 13 01 00 00 00 00 00 0B [08:40:25]Write i2c OK [08:40:25]MH_I2C_Read... [08:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:25]Read from MH i2c: E2 [08:40:25]MH_I2C_Read... [08:40:25]Read from MH i2c: E2 0E 00 [08:40:25]MH_I2C_Read... [08:40:25]Read from MH i2c: E2 0E 00 7B 13 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D3 [08:40:25]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [08:40:25]wFMCommunicate OK [08:40:25]SAM_PROTO_GetShiftState done [08:40:25]FM_GetShiftState done [08:40:25]opened in 1715646054 [08:40:25]opened+sec_in_day 1715732454 [08:40:25]quantity*price = 40013 [08:40:25]sum+1 = 40014 [08:40:25]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 СНО: Общий режим Чек 18 14.05.2024 08:40 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67011 ФПД: 235488105500736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T084029&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67011&fm=235488105500736&tin=02508201610067®Number=0000000000091845&sum=40000 [08:40:26]StoreToDocumentArchive [08:40:26]shift 355 fd 67011 [08:40:26]save to /storage/0355/doc_00067011 [08:40:26]save last doc name /storage/0355/doc_00067011 to /storage/kkm_last_doc_name [08:40:26]save OK [08:40:26]Clear old archive folders... [08:40:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:26]tlvbuf is 00387240 [08:40:26]SAM_PROTO_ClearQueue [08:40:26]wFMCommunicate request_size=4 [08:40:26]MH_SAM_APDU [08:40:26]CAPDU: 80 09 00 00 [08:40:26]Write to MH i2c: E2 08 00 88 13 80 09 00 00 00 00 00 00 0D [08:40:26]Write i2c OK [08:40:26]MH_I2C_Read... [08:40:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:27]Read from MH i2c: E2 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 03 00 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 03 00 88 13 00 90 00 0F [08:40:27]RAPDU: 90 00 [08:40:27]wFMCommunicate OK [08:40:27]SAM_PROTO_ClearQueue done [08:40:27]KKMCreateOFDPacket [08:40:27]OFDProtocolAddRootSTLVToBuf [08:40:27]FM_MakeSignedData [08:40:27]FM_MakeSignedData [08:40:27]SAM_PROTO_SignData [08:40:27]wFMCommunicate request_size=4 [08:40:27]MH_SAM_APDU [08:40:27]CAPDU: 80 0D 01 02 [08:40:27]Write to MH i2c: E2 08 00 89 13 80 0D 01 02 00 00 00 00 15 [08:40:27]Write i2c OK [08:40:27]MH_I2C_Read... [08:40:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:27]Read from MH i2c: E2 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 03 00 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 03 00 89 13 00 90 00 10 [08:40:27]RAPDU: 90 00 [08:40:27]wFMCommunicate OK [08:40:27]wFMCommunicate request_size=255 [08:40:27]MH_SAM_APDU [08:40:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 12 00 00 00 F4 03 04 00 7D 23 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C3 05 01 00 35 04 06 00 D6 [08:40:27]Write to MH i2c: E2 02 01 8A 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 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 12 00 00 00 F4 03 04 00 7D 23 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C3 05 01 00 35 04 06 00 D6 00 00 DE [08:40:27]Write i2c OK [08:40:27]MH_I2C_Read... [08:40:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:27]Read from MH i2c: E2 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 03 00 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 03 00 8A 13 00 90 00 11 [08:40:27]RAPDU: 90 00 [08:40:27]wFMCommunicate OK [08:40:27]wFMCommunicate request_size=10 [08:40:27]MH_SAM_APDU [08:40:27]CAPDU: 80 0D 02 02 05 2C D8 E0 90 40 [08:40:27]Write to MH i2c: E2 0D 00 8B 13 80 0D 02 02 05 00 2C D8 E0 90 40 00 00 D6 [08:40:27]Write i2c OK [08:40:27]MH_I2C_Read... [08:40:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:27]Read from MH i2c: E2 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 03 00 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 03 00 8B 13 00 90 00 12 [08:40:27]RAPDU: 90 00 [08:40:27]wFMCommunicate OK [08:40:27]wFMCommunicate request_size=4 [08:40:27]MH_SAM_APDU [08:40:27]CAPDU: 80 0D 03 02 [08:40:27]Write to MH i2c: E2 08 00 8C 13 80 0D 03 02 00 00 00 00 1A [08:40:27]Write i2c OK [08:40:27]MH_I2C_Read... [08:40:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:27]Read from MH i2c: E2 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 0B 00 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 0B 00 8C 13 00 F8 7F 37 5C 96 48 F2 16 90 00 0B [08:40:27]RAPDU: F8 7F 37 5C 96 48 F2 16 90 00 [08:40:27]wFMCommunicate OK [08:40:27]SAM_PROTO_SignData done [08:40:27]FM_MakeSignedData done [08:40:27]CreateOFDProtocolMessage [08:40:27]wFMCommunicate request_size=4 [08:40:27]MH_SAM_APDU [08:40:27]CAPDU: 80 11 00 00 [08:40:27]Write to MH i2c: E2 08 00 8D 13 80 11 00 00 00 00 00 00 1A [08:40:27]Write i2c OK [08:40:27]MH_I2C_Read... [08:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:27]Read from MH i2c: E2 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 17 00 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 17 00 8D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 70 [08:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:40:27]wFMCommunicate OK [08:40:27]CreateOFDProtocolMessage done [08:40:27]OFDSenderStorePacket 67011 [08:40:27]StoreOFDPacket docnum=67011 [08:40: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 23 6A 07 01 32 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 12 00 00 00 F4 03 04 00 7D 23 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C3 05 01 00 35 04 06 00 D6 2C D8 E0 90 40 F8 7F 37 5C 96 48 F2 16 [08:40:27]CheckFolder [08:40:27]dirname=/storage/ofd_packets [08:40:27]CheckFolder done [08:40:27]ProducePacketName [08:40:27]name=ofd_packets/00067011 [08:40:27]NVStorageSaveData ofd_packets/00067011 [08:40:27]File name is /storage/ofd_packets/00067011 [08:40:27]Write 301 bytes [08:40:27]NVStorageSaveData done [08:40:27]OFDSenderStorePacket done [08:40:27]KKMCreateOFDPacket done [08:40:27]NVStorageSaveData kkm_last_timestamp [08:40:27]File name is /storage/kkm_last_timestamp [08:40:27]Write 4 bytes [08:40:27]NVStorageSaveData done [08:40:27]ExternCall_PrintAddStr [08:40:27]wPrintStart [08:40:27]Write to MH i2c: 01 00 00 8E 13 A1 [08:40:27]Write i2c OK [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: 01 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: 01 07 00 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: 01 07 00 8E 13 00 00 00 00 00 FF 0F B6 [08:40:27]RasterBufferAndPrint [08:40:27]line Счет N : (1)506836 [08:40:27]line ИНН: 02508201610067 [08:40:27]line Контрольно-Кассовый Чек [08:40:27]line ПРОДАЖА [08:40:27]line ТРК (МРК, ГНК) : 13 [08:40:27]line Товар: 2710124130 [08:40:27]line Аи-92-К-5 [08:40:27]line 5.990 * 66.80 [08:40:27]line = 400.13 [08:40:27]line НДС 12% НСП 1% [08:40:27]line > о реализуемом товаре [08:40:27]line ОКРУГЛЕНИЕ: -0.13 [08:40:27]line ИТОГО: 400.00 [08:40:27]line Внесено: 400.00 [08:40:27]line СДАЧА: 0.00 [08:40:27]line НСП 1% : 3.54 [08:40:27]line НДС 12% : 42.49 [08:40:27]line Наличными: 400.00 [08:40:27]line Безнал.: 0.00 [08:40:27]line Место: АЗС № 91 "Партнер Нефть" [08:40:27]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:40:27]line СНО: Общий режим [08:40:27]line Чек 18 14.05.2024 08:40 [08:40:27]line Смена: 355 ФФД: 1.0 [08:40:27]line ЗНМ: 0300000119 [08:40:27]line РНМ: 0000000000091845 [08:40:27]line Версия ККМ: 001 [08:40:27]line ФМ: 0000000000871829 [08:40:27]line ФД: 67011 [08:40:27]line ФПД: 235488105500736 [08:40:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T084029&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67011&fm=235488105500736&tin=02508201610067®Number=0000000000091845&sum=40000 [08:40:27]OFD Sender: Processing packet 67011 [packets to send 35, broken 34] [08:40:27]ProducePacketName [08:40:27]name=ofd_packets/00067011 [08:40:27]OFD Sender: To server: pG, [08:40:27]CommunicateWithHost lk.salyk.kg:30040 [08:40:27]ConnectInit lk.salyk.kg [08:40:27]written 0, free lines is 4095 [08:40:27]Connected sock=10 [08:40: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 23 6A 07 01 32 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 12 00 00 00 F4 03 04 00 7D 23 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C3 05 01 00 35 04 06 00 D6 2C D8 E0 90 40 F8 7F 37 5C 96 48 F2 16 [08:40: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 6D D8 47 00 F9 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 C3 05 01 00 F4 03 04 00 5D CB 42 66 B6 04 01 00 00 35 25 28 08 70 60 E5 86 [08:40:28]CommunicateWithHost err = 0 [08:40:28]CheckOFDResponse [08:40:28]1017 (14) - 77093643461234 [08:40:28]1041 (16) - 0000000000871829 [08:40:28]1040 (4) - 67011 [08:40:28]1012 (4) - 14.05.2024 02:24 [08:40:28]1206 (1) - 0 [08:40:28]OFD Sender: Remove packet 67011 [08:40:28]ProducePacketName [08:40:28]name=ofd_packets/00067011 [08:40:28]NVStorageDeleteData [08:40:28]Write to MH i2c: 01 00 00 B8 13 CB [08:40:28]Write i2c OK [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: 01 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: 01 07 00 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: 01 07 00 B8 13 00 00 00 00 00 BB 0C 99 [08:40:28]RasterBufferAndPrint [08:40:28]line [08:40:28]line [08:40:28]line [08:40:28]line [08:40:28]line [08:40:28]written 0, free lines is 3264 [08:40:28]MH_Cut [08:40:28]Write to MH i2c: D1 01 00 BF 13 01 A4 [08:40:28]Write i2c OK [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: D1 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: D1 01 00 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: D1 01 00 BF 13 00 A3 [08:40:28]Write to MH i2c: 01 00 00 C0 13 D3 [08:40:28]Write i2c OK [08:40:28]MH_I2C_Read... [08:40:28]OFD Sender: No OFD packet to send [08:40:29]*** Cut start [08:40:29]*** Purtial cut [08:40:29]*** CUTSNS_PIN = 0 [08:40:29]*** Stage 1: CUTSNS_PIN = 1 [08:40:31]Read from MH i2c: 01 [08:40:31]MH_I2C_Read... [08:40:31]*** Stop cut motor [08:40:31]*** Cut end [08:40:31]Read from MH i2c: 01 07 00 [08:40:31]MH_I2C_Read... [08:40:31]Read from MH i2c: 01 07 00 C0 13 00 00 00 00 00 FF 0F E8 [08:40:31]process_action close_receipt done [08:40:31]requested_data is exist [08:40:31]produce_requested_data [08:40:31]requested_item fm.sn is exist - process it [08:40:31]wFMCommunicate request_size=4 [08:40:31]MH_SAM_APDU [08:40:31]CAPDU: 80 11 00 00 [08:40:31]Write to MH i2c: E2 08 00 C1 13 80 11 00 00 00 00 00 00 4E [08:40:31]Write i2c OK [08:40:31]MH_I2C_Read... [08:40:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:31]Read from MH i2c: E2 [08:40:31]MH_I2C_Read... [08:40:31]Read from MH i2c: E2 17 00 [08:40:31]MH_I2C_Read... [08:40:31]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 [08:40:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:40:31]wFMCommunicate OK [08:40:31]requested_item fd.num is exist - process it [08:40:31]SAM_PROTO_GetFieldsCounters [08:40:31]wFMCommunicate request_size=4 [08:40:31]MH_SAM_APDU [08:40:31]CAPDU: 80 13 00 00 [08:40:31]Write to MH i2c: E2 08 00 C2 13 80 13 00 00 00 00 00 00 51 [08:40:31]Write i2c OK [08:40:31]MH_I2C_Read... [08:40:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:31]Read from MH i2c: E2 [08:40:31]MH_I2C_Read... [08:40:31]Read from MH i2c: E2 62 00 [08:40:31]MH_I2C_Read... [08:40:31]Read from MH i2c: E2 62 00 C2 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 C3 05 01 00 0E 04 04 00 63 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 DA [08:40: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 C3 05 01 00 0E 04 04 00 63 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:40:31]wFMCommunicate OK [08:40:31]SAM_PROTO_GetFieldsCounters done [08:40:31]requested_item shift.num is exist - process it [08:40:31]requested_item shift.opened is exist - process it [08:40:31]req_shift_opened [08:40:31]FM_GetShiftState [08:40:31]SAM_PROTO_GetShiftState [08:40:31]wFMCommunicate request_size=4 [08:40:31]MH_SAM_APDU [08:40:31]CAPDU: 80 13 01 00 [08:40:31]Write to MH i2c: E2 08 00 C3 13 80 13 01 00 00 00 00 00 53 [08:40:31]Write i2c OK [08:40:31]MH_I2C_Read... [08:40:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:31]Read from MH i2c: E2 [08:40:31]MH_I2C_Read... [08:40:31]Read from MH i2c: E2 0E 00 [08:40:31]MH_I2C_Read... [08:40:31]Read from MH i2c: E2 0E 00 C3 13 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 1B [08:40:31]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [08:40:31]wFMCommunicate OK [08:40:31]SAM_PROTO_GetShiftState done [08:40:31]FM_GetShiftState done [08:40:31]req_shift_opened done [08:40:31]requested_item shift.open_date is exist - process it [08:40:31]req_shift_open_date [08:40:31]req_shift_open_date done [08:40:31]produce_requested_data done [08:40:31]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67011,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [08:40:31]process_action_free close_receipt [08:40:31]json_value_free [08:40:31]json_value_free done [08:40:31]process_json_proto returns [08:40:31]Send response to host [08:40:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67011,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [08:40:31]free response buf [08:40:31]execute_script done [08:40:31]execute_script returns [08:40:31]free content buf [08:40:31]Sock 8.Close socket [08:40:31]Sock 8.Thread stoped [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:39]accept exits with 9 [08:40:39]New connection [08:40:39]New thread 3066617188 created [08:40:39]Thread 3066760548 joined [08:40:39]Waiting for new connection... [08:40:39] Sock 9.Parse request [08:40:39]Sock 9.Check first char [08:40:39]Sock 9.First char is OK [08:40:39]request: POST /json_proto HTTP/1.0 [08:40:39]Method: POST [08:40:39]URL: /json_proto [08:40:39]Method is POST - this is cgi request [08:40:39]url: /json_proto [08:40:39]query_string will be loaded in cgi processing [08:40:39]execute_cgi json_proto POST (null) [08:40:39]execute_cgi path=json_proto method=POST [08:40:39]POST find Content-Length [08:40:39]Host: 172.17.41.195:8080 [08:40:39]Content-Length: 675 [08:40:39]Content-Type: application/json [08:40:39] [08:40:39]POST finish read [08:40:39]Found Content-Length = 675 [08:40:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:39]execute_script... [08:40: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)506837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:39]POST & json_proto [08:40:39]process_json_proto [08:40:39]json parsed OK: [08:40:39]protocol is kg_v1.0 [08:40:39]action value=close_receipt [08:40:39]process_action close_receipt [08:40:39]cmd_close_receipt [08:40:39]MH_GetDate [08:40:39]Write to MH i2c: F0 00 00 C4 13 C6 [08:40:39]Write i2c OK [08:40:39]MH_I2C_Read... [08:40:39]Read from MH i2c: F0 [08:40:39]MH_I2C_Read... [08:40:39]Read from MH i2c: F0 09 00 [08:40:39]MH_I2C_Read... [08:40:39]Read from MH i2c: F0 09 00 C4 13 00 8A 23 43 66 FC 21 6F 64 15 [08:40:39]GetLastDocTimeStamp 1715676029 [08:40:39]current date 1715676042 [08:40:39]FM_GetShiftState [08:40:39]SAM_PROTO_GetShiftState [08:40:39]wFMCommunicate request_size=4 [08:40:39]MH_SAM_APDU [08:40:39]CAPDU: 80 13 01 00 [08:40:39]Write to MH i2c: E2 08 00 C5 13 80 13 01 00 00 00 00 00 55 [08:40:39]Write i2c OK [08:40:39]MH_I2C_Read... [08:40:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:39]Read from MH i2c: E2 [08:40:39]MH_I2C_Read... [08:40:39]Read from MH i2c: E2 0E 00 [08:40:39]MH_I2C_Read... [08:40:39]Read from MH i2c: E2 0E 00 C5 13 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 1D [08:40:39]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [08:40:39]wFMCommunicate OK [08:40:39]SAM_PROTO_GetShiftState done [08:40:39]FM_GetShiftState done [08:40:39]opened in 1715646054 [08:40:39]opened+sec_in_day 1715732454 [08:40:39]quantity*price = 100005 [08:40:39]sum+1 = 100006 [08:40:39]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 СНО: Общий режим Чек 19 14.05.2024 08:40 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67012 ФПД: 203850974043924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T084042&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67012&fm=203850974043924&tin=02508201610067®Number=0000000000091845&sum=100000 [08:40:40]StoreToDocumentArchive [08:40:40]shift 355 fd 67012 [08:40:40]save to /storage/0355/doc_00067012 [08:40:40]save last doc name /storage/0355/doc_00067012 to /storage/kkm_last_doc_name [08:40:40]save OK [08:40:40]Clear old archive folders... [08:40:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:40:40]tlvbuf is 00340830 [08:40:40]SAM_PROTO_ClearQueue [08:40:40]wFMCommunicate request_size=4 [08:40:40]MH_SAM_APDU [08:40:40]CAPDU: 80 09 00 00 [08:40:40]Write to MH i2c: E2 08 00 D2 13 80 09 00 00 00 00 00 00 57 [08:40:40]Write i2c OK [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: E2 [08:40:40]MH_I2C_Read... [08:40:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:40]Read from MH i2c: E2 03 00 [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: E2 03 00 D2 13 00 90 00 59 [08:40:40]RAPDU: 90 00 [08:40:40]wFMCommunicate OK [08:40:40]SAM_PROTO_ClearQueue done [08:40:40]KKMCreateOFDPacket [08:40:40]OFDProtocolAddRootSTLVToBuf [08:40:40]FM_MakeSignedData [08:40:40]FM_MakeSignedData [08:40:40]SAM_PROTO_SignData [08:40:40]wFMCommunicate request_size=4 [08:40:40]MH_SAM_APDU [08:40:40]CAPDU: 80 0D 01 02 [08:40:40]Write to MH i2c: E2 08 00 D3 13 80 0D 01 02 00 00 00 00 5F [08:40:40]Write i2c OK [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: E2 [08:40:40]MH_I2C_Read... [08:40:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:40]Read from MH i2c: E2 03 00 [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: E2 03 00 D3 13 00 90 00 5A [08:40:40]RAPDU: 90 00 [08:40:40]wFMCommunicate OK [08:40:40]wFMCommunicate request_size=255 [08:40:40]MH_SAM_APDU [08:40:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 13 00 00 00 F4 03 04 00 8A 23 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C4 05 01 00 35 04 06 00 [08:40:40]Write to MH i2c: E2 02 01 D4 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 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 13 00 00 00 F4 03 04 00 8A 23 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C4 05 01 00 35 04 06 00 00 00 33 [08:40:40]Write i2c OK [08:40:40]MH_I2C_Read... [08:40:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:40]Read from MH i2c: E2 [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: E2 03 00 [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: E2 03 00 D4 13 00 90 00 5B [08:40:40]RAPDU: 90 00 [08:40:40]wFMCommunicate OK [08:40:40]wFMCommunicate request_size=11 [08:40:40]MH_SAM_APDU [08:40:40]CAPDU: 80 0D 02 02 06 B9 66 C0 E5 1F 14 [08:40:40]Write to MH i2c: E2 0E 00 D5 13 80 0D 02 02 06 00 B9 66 C0 E5 1F 14 00 00 65 [08:40:40]Write i2c OK [08:40:40]MH_I2C_Read... [08:40:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:40]Read from MH i2c: E2 [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: E2 03 00 [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: E2 03 00 D5 13 00 90 00 5C [08:40:40]RAPDU: 90 00 [08:40:40]wFMCommunicate OK [08:40:40]wFMCommunicate request_size=4 [08:40:40]MH_SAM_APDU [08:40:40]CAPDU: 80 0D 03 02 [08:40:40]Write to MH i2c: E2 08 00 D6 13 80 0D 03 02 00 00 00 00 64 [08:40:40]Write i2c OK [08:40:40]MH_I2C_Read... [08:40:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:40]Read from MH i2c: E2 [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: E2 0B 00 [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: E2 0B 00 D6 13 00 57 12 25 AD F5 8F 5C 2A 90 00 AA [08:40:40]RAPDU: 57 12 25 AD F5 8F 5C 2A 90 00 [08:40:40]wFMCommunicate OK [08:40:40]SAM_PROTO_SignData done [08:40:40]FM_MakeSignedData done [08:40:40]CreateOFDProtocolMessage [08:40:40]wFMCommunicate request_size=4 [08:40:40]MH_SAM_APDU [08:40:40]CAPDU: 80 11 00 00 [08:40:40]Write to MH i2c: E2 08 00 D7 13 80 11 00 00 00 00 00 00 64 [08:40:40]Write i2c OK [08:40:40]MH_I2C_Read... [08:40:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:40]Read from MH i2c: E2 [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: E2 17 00 [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: E2 17 00 D7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BA [08:40: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:40:40]wFMCommunicate OK [08:40:40]CreateOFDProtocolMessage done [08:40:40]OFDSenderStorePacket 67012 [08:40:40]StoreOFDPacket docnum=67012 [08:40: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 10 01 00 00 BC 86 08 01 27 5E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 13 00 00 00 F4 03 04 00 8A 23 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C4 05 01 00 35 04 06 00 B9 66 C0 E5 1F 14 57 12 25 AD F5 8F 5C 2A [08:40:40]CheckFolder [08:40:40]dirname=/storage/ofd_packets [08:40:40]CheckFolder done [08:40:40]ProducePacketName [08:40:40]name=ofd_packets/00067012 [08:40:40]NVStorageSaveData ofd_packets/00067012 [08:40:40]File name is /storage/ofd_packets/00067012 [08:40:40]Write 302 bytes [08:40:40]NVStorageSaveData done [08:40:40]OFDSenderStorePacket done [08:40:40]KKMCreateOFDPacket done [08:40:40]NVStorageSaveData kkm_last_timestamp [08:40:40]File name is /storage/kkm_last_timestamp [08:40:40]Write 4 bytes [08:40:40]NVStorageSaveData done [08:40:40]ExternCall_PrintAddStr [08:40:40]wPrintStart [08:40:40]Write to MH i2c: 01 00 00 D8 13 EB [08:40:40]Write i2c OK [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: 01 [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: 01 07 00 [08:40:40]MH_I2C_Read... [08:40:40]Read from MH i2c: 01 07 00 D8 13 00 00 00 00 00 FF 0F 00 [08:40:40]RasterBufferAndPrint [08:40:40]line Счет N : (1)506837 [08:40:40]line ИНН: 02508201610067 [08:40:40]line Контрольно-Кассовый Чек [08:40:40]line ПРОДАЖА [08:40:40]line ТРК (МРК, ГНК) : 42 [08:40:40]line Товар: 2710124130 [08:40:40]line Super-92-К-5 [08:40:40]line 14.750 * 67.80 [08:40:40]line = 1000.05 [08:40:40]line НДС 12% НСП 1% [08:40:40]line > о реализуемом товаре [08:40:40]line ОКРУГЛЕНИЕ: -0.05 [08:40:40]line ИТОГО: 1000.00 [08:40:40]line Внесено: 1000.00 [08:40:40]line СДАЧА: 0.00 [08:40:40]line НСП 1% : 8.85 [08:40:40]line НДС 12% : 106.20 [08:40:40]line Наличными: 1000.00 [08:40:40]line Безнал.: 0.00 [08:40:40]line Место: АЗС № 91 "Партнер Нефть" [08:40:40]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:40:40]line СНО: Общий режим [08:40:40]line Чек 19 14.05.2024 08:40 [08:40:40]line Смена: 355 ФФД: 1.0 [08:40:40]line ЗНМ: 0300000119 [08:40:40]line РНМ: 0000000000091845 [08:40:40]line Версия ККМ: 001 [08:40:40]line ФМ: 0000000000871829 [08:40:40]line ФД: 67012 [08:40:40]line ФПД: 203850974043924 [08:40:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T084042&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67012&fm=203850974043924&tin=02508201610067®Number=0000000000091845&sum=100000 [08:40:41]written 0, free lines is 4095 [08:40:41]OFD Sender: Processing packet 67012 [packets to send 35, broken 34] [08:40:41]ProducePacketName [08:40:41]name=ofd_packets/00067012 [08:40:41]OFD Sender: To server: pG, [08:40:41]CommunicateWithHost lk.salyk.kg:30040 [08:40:41]ConnectInit lk.salyk.kg [08:40:41]Connected sock=10 [08:40: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 BC 86 08 01 27 5E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 13 00 00 00 F4 03 04 00 8A 23 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C4 05 01 00 35 04 06 00 B9 66 C0 E5 1F 14 57 12 25 AD F5 8F 5C 2A [08:40: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 4A 69 47 00 01 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C4 05 01 00 F4 03 04 00 6B CB 42 66 B6 04 01 00 00 36 C1 F2 D3 47 E6 FB C1 [08:40:41]CommunicateWithHost err = 0 [08:40:41]CheckOFDResponse [08:40:41]1017 (14) - 77093643461234 [08:40:41]1041 (16) - 0000000000871829 [08:40:41]1040 (4) - 67012 [08:40:41]1012 (4) - 14.05.2024 02:24 [08:40:41]1206 (1) - 0 [08:40:41]OFD Sender: Remove packet 67012 [08:40:41]ProducePacketName [08:40:41]name=ofd_packets/00067012 [08:40:41]NVStorageDeleteData [08:40:41]Write to MH i2c: 01 00 00 02 14 16 [08:40:41]Write i2c OK [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: 01 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: 01 07 00 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: 01 07 00 02 14 00 00 00 00 00 C1 0C EA [08:40:41]RasterBufferAndPrint [08:40:41]line [08:40:41]line [08:40:41]line [08:40:41]line [08:40:41]line [08:40:41]written 0, free lines is 3272 [08:40:41]MH_Cut [08:40:41]Write to MH i2c: D1 01 00 09 14 01 EF [08:40:41]Write i2c OK [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: D1 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: D1 01 00 [08:40:41]MH_I2C_Read... [08:40:41]Read from MH i2c: D1 01 00 09 14 00 EE [08:40:41]Write to MH i2c: 01 00 00 0A 14 1E [08:40:41]Write i2c OK [08:40:41]MH_I2C_Read... [08:40:41]OFD Sender: No OFD packet to send [08:40:42]*** Cut start [08:40:42]*** Purtial cut [08:40:42]*** Stage 1: CUTSNS_PIN = 1 [08:40:42]Read from MH i2c: 01 [08:40:42]MH_I2C_Read... [08:40:42]*** Stop cut motor [08:40:42]*** Cut end [08:40:42]Read from MH i2c: 01 07 00 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: 01 07 00 0A 14 00 00 00 00 00 FF 0F 33 [08:40:42]process_action close_receipt done [08:40:42]requested_data is exist [08:40:42]produce_requested_data [08:40:42]requested_item fm.sn is exist - process it [08:40:42]wFMCommunicate request_size=4 [08:40:42]MH_SAM_APDU [08:40:42]CAPDU: 80 11 00 00 [08:40:42]Write to MH i2c: E2 08 00 0B 14 80 11 00 00 00 00 00 00 99 [08:40:42]Write i2c OK [08:40:42]MH_I2C_Read... [08:40:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:42]Read from MH i2c: E2 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: E2 17 00 [08:40:42]MH_I2C_Read... [08:40:42]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 [08:40:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:40:42]wFMCommunicate OK [08:40:42]requested_item fd.num is exist - process it [08:40:42]SAM_PROTO_GetFieldsCounters [08:40:42]wFMCommunicate request_size=4 [08:40:42]MH_SAM_APDU [08:40:42]CAPDU: 80 13 00 00 [08:40:42]Write to MH i2c: E2 08 00 0C 14 80 13 00 00 00 00 00 00 9C [08:40:42]Write i2c OK [08:40:42]MH_I2C_Read... [08:40:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:42]Read from MH i2c: E2 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: E2 62 00 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: E2 62 00 0C 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C4 05 01 00 0E 04 04 00 63 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 29 [08:40:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C4 05 01 00 0E 04 04 00 63 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:40:42]wFMCommunicate OK [08:40:42]SAM_PROTO_GetFieldsCounters done [08:40:42]requested_item shift.num is exist - process it [08:40:42]requested_item shift.opened is exist - process it [08:40:42]req_shift_opened [08:40:42]FM_GetShiftState [08:40:42]SAM_PROTO_GetShiftState [08:40:42]wFMCommunicate request_size=4 [08:40:42]MH_SAM_APDU [08:40:42]CAPDU: 80 13 01 00 [08:40:42]Write to MH i2c: E2 08 00 0D 14 80 13 01 00 00 00 00 00 9E [08:40:42]Write i2c OK [08:40:42]MH_I2C_Read... [08:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:42]Read from MH i2c: E2 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: E2 0E 00 [08:40:42]MH_I2C_Read... [08:40:42]Read from MH i2c: E2 0E 00 0D 14 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 66 [08:40:42]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [08:40:42]wFMCommunicate OK [08:40:42]SAM_PROTO_GetShiftState done [08:40:42]FM_GetShiftState done [08:40:42]req_shift_opened done [08:40:42]requested_item shift.open_date is exist - process it [08:40:42]req_shift_open_date [08:40:42]req_shift_open_date done [08:40:42]produce_requested_data done [08:40:42]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67012,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [08:40:42]process_action_free close_receipt [08:40:42]json_value_free [08:40:42]json_value_free done [08:40:42]process_json_proto returns [08:40:42]Send response to host [08:40:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67012,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [08:40:42]free response buf [08:40:42]execute_script done [08:40:42]execute_script returns [08:40:42]free content buf [08:40:42]Sock 9.Close socket [08:40:42]Sock 9.Thread stoped [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:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:30]accept exits with 8 [08:42:30]New connection [08:42:30]New thread 3066760548 created [08:42:30]Thread 3066617188 joined [08:42:30]Waiting for new connection... [08:42:30] Sock 8.Parse request [08:42:30]Sock 8.Check first char [08:42:30]Sock 8.First char is OK [08:42:30]request: POST /json_proto HTTP/1.0 [08:42:30]Method: POST [08:42:30]URL: /json_proto [08:42:30]Method is POST - this is cgi request [08:42:30]url: /json_proto [08:42:30]query_string will be loaded in cgi processing [08:42:30]execute_cgi json_proto POST (null) [08:42:30]execute_cgi path=json_proto method=POST [08:42:30]POST find Content-Length [08:42:30]Host: 172.17.41.195:8080 [08:42:30]Content-Length: 1179 [08:42:30]Content-Type: application/json [08:42:30] [08:42:30]POST finish read [08:42:30]Found Content-Length = 1179 [08:42: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)506838\u000A14.05.2024 08:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:42:30]execute_script... [08:42: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)506838\u000A14.05.2024 08:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:42:30]POST & json_proto [08:42:30]process_json_proto [08:42:30]json parsed OK: [08:42:30]protocol is kg_v1.0 [08:42:30]action value=print_text [08:42:30]process_action print_text [08:42:30]cmd_print_text [08:42:30]ExternCall_PrintAddStr [08:42:30]wPrintStart [08:42:30]Write to MH i2c: 01 00 00 0E 14 22 [08:42:30]Write i2c OK [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: 01 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: 01 07 00 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: 01 07 00 0E 14 00 00 00 00 00 FF 0F 37 [08:42:30]RasterBufferAndPrint [08:42:30]line *****ТОВАРНЫЙ ЧЕК***** [08:42:30]line АЗС-91 [08:42:30]line Партнер нефть [08:42:30]line 02508201610067 [08:42:30]line Кассир : Адишов И. [08:42:30]line Счет N : (1)506838 [08:42:30]line 14.05.2024 08:25 [08:42:30]line ПРОДАЖА [08:42:30]line ТРК (МРК, ГНК): 11 [08:42:30]line Вид ГСМ : 2710194210 [08:42:30]line ДТ-К-5 [08:42:30]line 20.000 x 74.70 [08:42:30]line ИТОГ: 1494.00 [08:42:30]line Тип оплаты: Талоны: Топливная Карта [08:42:30]line 02750 [08:42:30]line ______________________ [08:42:30]line (подпись) [08:42:30]written 0, free lines is 4095 [08:42:30]Write to MH i2c: 01 00 00 22 14 36 [08:42:30]Write i2c OK [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: 01 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: 01 07 00 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: 01 07 00 22 14 00 00 00 00 00 0D 0E 58 [08:42:30]RasterBufferAndPrint [08:42:30]line [08:42:30]line [08:42:30]line [08:42:30]line [08:42:30]line [08:42:30]written 0, free lines is 3598 [08:42:30]MH_Cut [08:42:30]Write to MH i2c: D1 01 00 29 14 01 0F [08:42:30]Write i2c OK [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: D1 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: D1 01 00 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: D1 01 00 29 14 00 0E [08:42:30]Write to MH i2c: 01 00 00 2A 14 3E [08:42:30]Write i2c OK [08:42:30]MH_I2C_Read... [08:42:31]*** Cut start [08:42:31]*** Purtial cut [08:42:31]*** CUTSNS_PIN = 0 [08:42:31]*** Stage 1: CUTSNS_PIN = 1 [08:42:32]OFD Sender: No OFD packet to send [08:42:33]Read from MH i2c: 01 [08:42:33]MH_I2C_Read... [08:42:33]Read from MH i2c: 01 07 00 [08:42:33]MH_I2C_Read... [08:42:33]*** Stop cut motor [08:42:33]*** Cut end [08:42:33]Read from MH i2c: 01 07 00 2A 14 00 00 00 00 00 FF 0F 53 [08:42:33]process_action print_text done [08:42:33]requested_data is exist [08:42:33]produce_requested_data [08:42:33]requested_item fm.sn is exist - process it [08:42:33]wFMCommunicate request_size=4 [08:42:33]MH_SAM_APDU [08:42:33]CAPDU: 80 11 00 00 [08:42:33]Write to MH i2c: E2 08 00 2B 14 80 11 00 00 00 00 00 00 B9 [08:42:33]Write i2c OK [08:42:33]MH_I2C_Read... [08:42:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:33]Read from MH i2c: E2 [08:42:33]MH_I2C_Read... [08:42:33]Read from MH i2c: E2 17 00 [08:42:33]MH_I2C_Read... [08:42:33]Read from MH i2c: E2 17 00 2B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0F [08:42: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:42:33]wFMCommunicate OK [08:42:33]requested_item fd.num is exist - process it [08:42:33]SAM_PROTO_GetFieldsCounters [08:42:33]wFMCommunicate request_size=4 [08:42:33]MH_SAM_APDU [08:42:33]CAPDU: 80 13 00 00 [08:42:33]Write to MH i2c: E2 08 00 2C 14 80 13 00 00 00 00 00 00 BC [08:42:33]Write i2c OK [08:42:33]MH_I2C_Read... [08:42:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:33]Read from MH i2c: E2 [08:42:33]MH_I2C_Read... [08:42:33]Read from MH i2c: E2 62 00 [08:42:33]MH_I2C_Read... [08:42:33]Read from MH i2c: E2 62 00 2C 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C4 05 01 00 0E 04 04 00 63 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 49 [08:42: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 C4 05 01 00 0E 04 04 00 63 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:42:33]wFMCommunicate OK [08:42:33]SAM_PROTO_GetFieldsCounters done [08:42:33]requested_item shift.num is exist - process it [08:42:33]requested_item shift.opened is exist - process it [08:42:33]req_shift_opened [08:42:33]FM_GetShiftState [08:42:33]SAM_PROTO_GetShiftState [08:42:33]wFMCommunicate request_size=4 [08:42:33]MH_SAM_APDU [08:42:33]CAPDU: 80 13 01 00 [08:42:33]Write to MH i2c: E2 08 00 2D 14 80 13 01 00 00 00 00 00 BE [08:42:33]Write i2c OK [08:42:33]MH_I2C_Read... [08:42:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:33]Read from MH i2c: E2 [08:42:33]MH_I2C_Read... [08:42:33]Read from MH i2c: E2 0E 00 [08:42:33]MH_I2C_Read... [08:42:33]Read from MH i2c: E2 0E 00 2D 14 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 86 [08:42:33]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [08:42:33]wFMCommunicate OK [08:42:33]SAM_PROTO_GetShiftState done [08:42:33]FM_GetShiftState done [08:42:33]req_shift_opened done [08:42:33]requested_item shift.open_date is exist - process it [08:42:33]req_shift_open_date [08:42:33]req_shift_open_date done [08:42:33]produce_requested_data done [08:42:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67012,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [08:42:33]process_action_free print_text [08:42:33]json_value_free [08:42:33]json_value_free done [08:42:33]process_json_proto returns [08:42:33]Send response to host [08:42:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67012,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [08:42:33]free response buf [08:42:33]execute_script done [08:42:33]execute_script returns [08:42:33]free content buf [08:42:33]Sock 8.Close socket [08:42:33]Sock 8.Thread stoped [08:42:37]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:50]accept exits with 9 [08:44:50]New connection [08:44:50]New thread 3066617188 created [08:44:50]Thread 3066760548 joined [08:44:50]Waiting for new connection... [08:44:50] Sock 9.Parse request [08:44:50]Sock 9.Check first char [08:44:50]Sock 9.First char is OK [08:44:50]request: POST /json_proto HTTP/1.0 [08:44:50]Method: POST [08:44:50]URL: /json_proto [08:44:50]Method is POST - this is cgi request [08:44:50]url: /json_proto [08:44:50]query_string will be loaded in cgi processing [08:44:50]execute_cgi json_proto POST (null) [08:44:50]execute_cgi path=json_proto method=POST [08:44:50]POST find Content-Length [08:44:50]Host: 172.17.41.195:8080 [08:44:50]Content-Length: 1179 [08:44:50]Content-Type: application/json [08:44:50] [08:44:50]POST finish read [08:44:50]Found Content-Length = 1179 [08:44: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)506839\u000A14.05.2024 08:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 25.440 x 74.70\u000A\u0418\u0422\u041E\u0413: 1900.37\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:50]execute_script... [08:44: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)506839\u000A14.05.2024 08:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 25.440 x 74.70\u000A\u0418\u0422\u041E\u0413: 1900.37\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\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:50]POST & json_proto [08:44:50]process_json_proto [08:44:50]json parsed OK: [08:44:50]protocol is kg_v1.0 [08:44:50]action value=print_text [08:44:50]process_action print_text [08:44:50]cmd_print_text [08:44:50]ExternCall_PrintAddStr [08:44:50]wPrintStart [08:44:50]Write to MH i2c: 01 00 00 2E 14 42 [08:44:50]Write i2c OK [08:44:50]MH_I2C_Read... [08:44:50]Read from MH i2c: 01 [08:44:50]MH_I2C_Read... [08:44:50]Read from MH i2c: 01 07 00 [08:44:50]MH_I2C_Read... [08:44:50]Read from MH i2c: 01 07 00 2E 14 00 00 00 00 00 FF 0F 57 [08:44:50]RasterBufferAndPrint [08:44:50]line *****ТОВАРНЫЙ ЧЕК***** [08:44:50]line АЗС-91 [08:44:50]line Партнер нефть [08:44:50]line 02508201610067 [08:44:50]line Кассир : Адишов И. [08:44:50]line Счет N : (1)506839 [08:44:50]line 14.05.2024 08:27 [08:44:50]line ПРОДАЖА [08:44:50]line ТРК (МРК, ГНК): 21 [08:44:50]line Вид ГСМ : 2710194210 [08:44:50]line ДТ-К-5 [08:44:50]line 25.440 x 74.70 [08:44:50]line ИТОГ: 1900.37 [08:44:50]line Тип оплаты: Талоны: Топливная Карта [08:44:50]line 02750 [08:44:50]line ______________________ [08:44:50]line (подпись) [08:44:50]written 0, free lines is 4095 [08:44:50]Write to MH i2c: 01 00 00 42 14 56 [08:44:50]Write i2c OK [08:44:50]MH_I2C_Read... [08:44:50]Read from MH i2c: 01 [08:44:50]MH_I2C_Read... [08:44:50]Read from MH i2c: 01 07 00 [08:44:50]MH_I2C_Read... [08:44:50]Read from MH i2c: 01 07 00 42 14 00 00 00 00 00 0D 0E 78 [08:44:50]RasterBufferAndPrint [08:44:50]line [08:44:50]line [08:44:50]line [08:44:50]line [08:44:50]line [08:44:50]written 0, free lines is 3598 [08:44:51]MH_Cut [08:44:51]Write to MH i2c: D1 01 00 49 14 01 2F [08:44:51]Write i2c OK [08:44:51]MH_I2C_Read... [08:44:51]Read from MH i2c: D1 [08:44:51]MH_I2C_Read... [08:44:51]Read from MH i2c: D1 01 00 [08:44:51]MH_I2C_Read... [08:44:51]Read from MH i2c: D1 01 00 49 14 00 2E [08:44:51]Write to MH i2c: 01 00 00 4A 14 5E [08:44:51]Write i2c OK [08:44:51]MH_I2C_Read... [08:44:51]*** Cut start [08:44:51]*** Purtial cut [08:44:51]*** Stage 1: CUTSNS_PIN = 1 [08:44:51]Read from MH i2c: 01 [08:44:51]MH_I2C_Read... [08:44:51]Read from MH i2c: 01 07 00 [08:44:51]MH_I2C_Read... [08:44:51]*** Stop cut motor [08:44:51]*** Cut end [08:44:51]Read from MH i2c: 01 07 00 4A 14 00 00 00 00 00 FF 0F 73 [08:44:51]process_action print_text done [08:44:51]requested_data is exist [08:44:51]produce_requested_data [08:44:51]requested_item fm.sn is exist - process it [08:44:51]wFMCommunicate request_size=4 [08:44:51]MH_SAM_APDU [08:44:51]CAPDU: 80 11 00 00 [08:44:51]Write to MH i2c: E2 08 00 4B 14 80 11 00 00 00 00 00 00 D9 [08:44:51]Write i2c OK [08:44:51]MH_I2C_Read... [08:44:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:51]Read from MH i2c: E2 [08:44:51]MH_I2C_Read... [08:44:51]Read from MH i2c: E2 17 00 [08:44:51]MH_I2C_Read... [08:44:51]Read from MH i2c: E2 17 00 4B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2F [08:44:51]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:51]wFMCommunicate OK [08:44:51]requested_item fd.num is exist - process it [08:44:51]SAM_PROTO_GetFieldsCounters [08:44:51]wFMCommunicate request_size=4 [08:44:51]MH_SAM_APDU [08:44:51]CAPDU: 80 13 00 00 [08:44:51]Write to MH i2c: E2 08 00 4C 14 80 13 00 00 00 00 00 00 DC [08:44:51]Write i2c OK [08:44:51]MH_I2C_Read... [08:44:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:52]Read from MH i2c: E2 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: E2 62 00 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: E2 62 00 4C 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 C4 05 01 00 0E 04 04 00 63 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 69 [08:44: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 C4 05 01 00 0E 04 04 00 63 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:44:52]wFMCommunicate OK [08:44:52]SAM_PROTO_GetFieldsCounters done [08:44:52]requested_item shift.num is exist - process it [08:44:52]requested_item shift.opened is exist - process it [08:44:52]req_shift_opened [08:44:52]FM_GetShiftState [08:44:52]SAM_PROTO_GetShiftState [08:44:52]wFMCommunicate request_size=4 [08:44:52]MH_SAM_APDU [08:44:52]CAPDU: 80 13 01 00 [08:44:52]Write to MH i2c: E2 08 00 4D 14 80 13 01 00 00 00 00 00 DE [08:44:52]Write i2c OK [08:44:52]MH_I2C_Read... [08:44:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:52]Read from MH i2c: E2 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: E2 0E 00 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: E2 0E 00 4D 14 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A6 [08:44:52]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [08:44:52]wFMCommunicate OK [08:44:52]SAM_PROTO_GetShiftState done [08:44:52]FM_GetShiftState done [08:44:52]req_shift_opened done [08:44:52]requested_item shift.open_date is exist - process it [08:44:52]req_shift_open_date [08:44:52]req_shift_open_date done [08:44:52]produce_requested_data done [08:44:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67012,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [08:44:52]process_action_free print_text [08:44:52]json_value_free [08:44:52]json_value_free done [08:44:52]process_json_proto returns [08:44:52]Send response to host [08:44:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67012,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [08:44:52]free response buf [08:44:52]execute_script done [08:44:52]execute_script returns [08:44:52]free content buf [08:44:52]Sock 9.Close socket [08:44:52]Sock 9.Thread stoped [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:29]accept exits with 8 [08:45:29]New connection [08:45:29]New thread 3066760548 created [08:45:29]Thread 3066617188 joined [08:45:29]Waiting for new connection... [08:45:29] Sock 8.Parse request [08:45:29]Sock 8.Check first char [08:45:29]Sock 8.First char is OK [08:45:29]request: POST /json_proto HTTP/1.0 [08:45:29]Method: POST [08:45:29]URL: /json_proto [08:45:29]Method is POST - this is cgi request [08:45:29]url: /json_proto [08:45:29]query_string will be loaded in cgi processing [08:45:29]execute_cgi json_proto POST (null) [08:45:29]execute_cgi path=json_proto method=POST [08:45:29]POST find Content-Length [08:45:29]Host: 172.17.41.195:8080 [08:45:29]Content-Length: 1179 [08:45:29]Content-Type: application/json [08:45:29] [08:45:29]POST finish read [08:45:29]Found Content-Length = 1179 [08:45:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506840\u000A14.05.2024 08:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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" ] } } [08:45:29]execute_script... [08:45:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506840\u000A14.05.2024 08:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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" ] } } [08:45:29]POST & json_proto [08:45:29]process_json_proto [08:45:29]json parsed OK: [08:45:29]protocol is kg_v1.0 [08:45:29]action value=print_text [08:45:29]process_action print_text [08:45:29]cmd_print_text [08:45:29]ExternCall_PrintAddStr [08:45:29]wPrintStart [08:45:29]Write to MH i2c: 01 00 00 4E 14 62 [08:45:29]Write i2c OK [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: 01 [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: 01 07 00 [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: 01 07 00 4E 14 00 00 00 00 00 FF 0F 77 [08:45:29]RasterBufferAndPrint [08:45:29]line *****ТОВАРНЫЙ ЧЕК***** [08:45:29]line АЗС-91 [08:45:29]line Партнер нефть [08:45:29]line 02508201610067 [08:45:29]line Кассир : Адишов И. [08:45:29]line Счет N : (1)506840 [08:45:29]line 14.05.2024 08:28 [08:45:29]line ПРОДАЖА [08:45:29]line ТРК (МРК, ГНК): 11 [08:45:29]line Вид ГСМ : 2710194210 [08:45:29]line ДТ-К-5 [08:45:29]line 20.090 x 74.70 [08:45:29]line ИТОГ: 1500.72 [08:45:29]line Тип оплаты: Талоны: Топливная Карта [08:45:29]line 02750 [08:45:29]line ______________________ [08:45:29]line (подпись) [08:45:29]written 0, free lines is 4095 [08:45:29]Write to MH i2c: 01 00 00 62 14 76 [08:45:29]Write i2c OK [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: 01 [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: 01 07 00 [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: 01 07 00 62 14 00 00 00 00 00 0D 0E 98 [08:45:29]RasterBufferAndPrint [08:45:29]line [08:45:29]line [08:45:29]line [08:45:29]line [08:45:29]line [08:45:29]written 0, free lines is 3598 [08:45:29]MH_Cut [08:45:29]Write to MH i2c: D1 01 00 69 14 01 4F [08:45:29]Write i2c OK [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: D1 [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: D1 01 00 [08:45:29]MH_I2C_Read... [08:45:29]Read from MH i2c: D1 01 00 69 14 00 4E [08:45:29]Write to MH i2c: 01 00 00 6A 14 7E [08:45:29]Write i2c OK [08:45:29]MH_I2C_Read... [08:45:30]*** Cut start [08:45:30]*** Purtial cut [08:45:30]*** CUTSNS_PIN = 0 [08:45:30]*** Stage 1: CUTSNS_PIN = 1 [08:45:32]OFD Sender: No OFD packet to send [08:45:32]Read from MH i2c: 01 [08:45:32]MH_I2C_Read... [08:45:32]Read from MH i2c: 01 07 00 [08:45:32]MH_I2C_Read... [08:45:32]*** Stop cut motor [08:45:32]*** Cut end [08:45:32]Read from MH i2c: 01 07 00 6A 14 00 00 00 00 00 FF 0F 93 [08:45:32]process_action print_text done [08:45:32]requested_data is exist [08:45:32]produce_requested_data [08:45:32]requested_item fm.sn is exist - process it [08:45:32]wFMCommunicate request_size=4 [08:45:32]MH_SAM_APDU [08:45:32]CAPDU: 80 11 00 00 [08:45:32]Write to MH i2c: E2 08 00 6B 14 80 11 00 00 00 00 00 00 F9 [08:45:32]Write i2c OK [08:45:32]MH_I2C_Read... [08:45:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:32]Read from MH i2c: E2 [08:45:32]MH_I2C_Read... [08:45:32]Read from MH i2c: E2 17 00 [08:45:32]MH_I2C_Read... [08:45:32]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 [08:45: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:45:32]wFMCommunicate OK [08:45:32]requested_item fd.num is exist - process it [08:45:32]SAM_PROTO_GetFieldsCounters [08:45:32]wFMCommunicate request_size=4 [08:45:32]MH_SAM_APDU [08:45:32]CAPDU: 80 13 00 00 [08:45:32]Write to MH i2c: E2 08 00 6C 14 80 13 00 00 00 00 00 00 FC [08:45:32]Write i2c OK [08:45:32]MH_I2C_Read... [08:45:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:32]Read from MH i2c: E2 [08:45:32]MH_I2C_Read... [08:45:32]Read from MH i2c: E2 62 00 [08:45:32]MH_I2C_Read... [08:45:32]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 C4 05 01 00 0E 04 04 00 63 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 89 [08:45: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 C4 05 01 00 0E 04 04 00 63 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:45:32]wFMCommunicate OK [08:45:32]SAM_PROTO_GetFieldsCounters done [08:45:32]requested_item shift.num is exist - process it [08:45:32]requested_item shift.opened is exist - process it [08:45:32]req_shift_opened [08:45:32]FM_GetShiftState [08:45:32]SAM_PROTO_GetShiftState [08:45:32]wFMCommunicate request_size=4 [08:45:32]MH_SAM_APDU [08:45:32]CAPDU: 80 13 01 00 [08:45:32]Write to MH i2c: E2 08 00 6D 14 80 13 01 00 00 00 00 00 FE [08:45:32]Write i2c OK [08:45:32]MH_I2C_Read... [08:45:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:32]Read from MH i2c: E2 [08:45:32]MH_I2C_Read... [08:45:32]Read from MH i2c: E2 0E 00 [08:45:32]MH_I2C_Read... [08:45:32]Read from MH i2c: E2 0E 00 6D 14 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 C6 [08:45:32]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [08:45:32]wFMCommunicate OK [08:45:32]SAM_PROTO_GetShiftState done [08:45:32]FM_GetShiftState done [08:45:32]req_shift_opened done [08:45:32]requested_item shift.open_date is exist - process it [08:45:32]req_shift_open_date [08:45:32]req_shift_open_date done [08:45:32]produce_requested_data done [08:45:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67012,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [08:45:32]process_action_free print_text [08:45:32]json_value_free [08:45:32]json_value_free done [08:45:32]process_json_proto returns [08:45:32]Send response to host [08:45:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67012,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [08:45:32]free response buf [08:45:32]execute_script done [08:45:32]execute_script returns [08:45:32]free content buf [08:45:32]Sock 8.Close socket [08:45:32]Sock 8.Thread stoped [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:52]OFD Sender: No OFD packet to send [08:48:52]accept exits with 9 [08:48:52]New connection [08:48:52]New thread 3066617188 created [08:48:52]Thread 3066760548 joined [08:48:52]Waiting for new connection... [08:48:52] Sock 9.Parse request [08:48:52]Sock 9.Check first char [08:48:52]Sock 9.First char is OK [08:48:52]request: POST /json_proto HTTP/1.0 [08:48:52]Method: POST [08:48:52]URL: /json_proto [08:48:52]Method is POST - this is cgi request [08:48:52]url: /json_proto [08:48:52]query_string will be loaded in cgi processing [08:48:52]execute_cgi json_proto POST (null) [08:48:52]execute_cgi path=json_proto method=POST [08:48:52]POST find Content-Length [08:48:52]Host: 172.17.41.195:8080 [08:48:52]Content-Length: 675 [08:48:52]Content-Type: application/json [08:48:52] [08:48:52]POST finish read [08:48:52]Found Content-Length = 675 [08:48:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:52]execute_script... [08:48: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)506841", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:52]POST & json_proto [08:48:52]process_json_proto [08:48:52]json parsed OK: [08:48:52]protocol is kg_v1.0 [08:48:52]action value=close_receipt [08:48:52]process_action close_receipt [08:48:52]cmd_close_receipt [08:48:52]MH_GetDate [08:48:52]Write to MH i2c: F0 00 00 6E 14 71 [08:48:52]Write i2c OK [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: F0 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: F0 09 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: F0 09 00 6E 14 00 78 25 43 66 FC 21 6F 64 B0 [08:48:52]GetLastDocTimeStamp 1715676042 [08:48:52]current date 1715676536 [08:48:52]FM_GetShiftState [08:48:52]SAM_PROTO_GetShiftState [08:48:52]wFMCommunicate request_size=4 [08:48:52]MH_SAM_APDU [08:48:52]CAPDU: 80 13 01 00 [08:48:52]Write to MH i2c: E2 08 00 6F 14 80 13 01 00 00 00 00 00 00 [08:48:52]Write i2c OK [08:48:52]MH_I2C_Read... [08:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:52]Read from MH i2c: E2 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 0E 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 0E 00 6F 14 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 C8 [08:48:52]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [08:48:52]wFMCommunicate OK [08:48:52]SAM_PROTO_GetShiftState done [08:48:52]FM_GetShiftState done [08:48:52]opened in 1715646054 [08:48:52]opened+sec_in_day 1715732454 [08:48:52]quantity*price = 150041 [08:48:52]sum+1 = 150042 [08:48:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 20 14.05.2024 08:48 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67013 ФПД: 145987382893533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T084856&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67013&fm=145987382893533&tin=02508201610067®Number=0000000000091845&sum=150000 [08:48:54]StoreToDocumentArchive [08:48:54]shift 355 fd 67013 [08:48:54]save to /storage/0355/doc_00067013 [08:48:54]save last doc name /storage/0355/doc_00067013 to /storage/kkm_last_doc_name [08:48:54]save OK [08:48:54]Clear old archive folders... [08:48:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:48:54]tlvbuf is 00349CD0 [08:48:54]SAM_PROTO_ClearQueue [08:48:54]wFMCommunicate request_size=4 [08:48:54]MH_SAM_APDU [08:48:54]CAPDU: 80 09 00 00 [08:48:54]Write to MH i2c: E2 08 00 7C 14 80 09 00 00 00 00 00 00 02 [08:48:54]Write i2c OK [08:48:54]MH_I2C_Read... [08:48:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:54]Read from MH i2c: E2 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: E2 03 00 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: E2 03 00 7C 14 00 90 00 04 [08:48:54]RAPDU: 90 00 [08:48:54]wFMCommunicate OK [08:48:54]SAM_PROTO_ClearQueue done [08:48:54]KKMCreateOFDPacket [08:48:54]OFDProtocolAddRootSTLVToBuf [08:48:54]FM_MakeSignedData [08:48:54]FM_MakeSignedData [08:48:54]SAM_PROTO_SignData [08:48:54]wFMCommunicate request_size=4 [08:48:54]MH_SAM_APDU [08:48:54]CAPDU: 80 0D 01 02 [08:48:54]Write to MH i2c: E2 08 00 7D 14 80 0D 01 02 00 00 00 00 0A [08:48:54]Write i2c OK [08:48:54]MH_I2C_Read... [08:48:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:54]Read from MH i2c: E2 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: E2 03 00 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: E2 03 00 7D 14 00 90 00 05 [08:48:54]RAPDU: 90 00 [08:48:54]wFMCommunicate OK [08:48:54]wFMCommunicate request_size=255 [08:48:54]MH_SAM_APDU [08:48:54]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 78 25 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C5 05 01 00 35 04 06 00 [08:48:54]Write to MH i2c: E2 02 01 7E 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 78 25 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C5 05 01 00 35 04 06 00 00 00 B6 [08:48:54]Write i2c OK [08:48:54]MH_I2C_Read... [08:48:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:54]Read from MH i2c: E2 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: E2 03 00 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: E2 03 00 7E 14 00 90 00 06 [08:48:54]RAPDU: 90 00 [08:48:54]wFMCommunicate OK [08:48:54]wFMCommunicate request_size=11 [08:48:54]MH_SAM_APDU [08:48:54]CAPDU: 80 0D 02 02 06 84 C6 56 19 5B DD [08:48:54]Write to MH i2c: E2 0E 00 7F 14 80 0D 02 02 06 00 84 C6 56 19 5B DD 00 00 0A [08:48:54]Write i2c OK [08:48:54]MH_I2C_Read... [08:48:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:54]Read from MH i2c: E2 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: E2 03 00 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: E2 03 00 7F 14 00 90 00 07 [08:48:54]RAPDU: 90 00 [08:48:54]wFMCommunicate OK [08:48:54]wFMCommunicate request_size=4 [08:48:54]MH_SAM_APDU [08:48:54]CAPDU: 80 0D 03 02 [08:48:54]Write to MH i2c: E2 08 00 80 14 80 0D 03 02 00 00 00 00 0F [08:48:54]Write i2c OK [08:48:54]MH_I2C_Read... [08:48:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:54]Read from MH i2c: E2 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: E2 0B 00 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: E2 0B 00 80 14 00 55 16 29 97 69 0C A8 1E 90 00 76 [08:48:54]RAPDU: 55 16 29 97 69 0C A8 1E 90 00 [08:48:54]wFMCommunicate OK [08:48:54]SAM_PROTO_SignData done [08:48:54]FM_MakeSignedData done [08:48:54]CreateOFDProtocolMessage [08:48:54]wFMCommunicate request_size=4 [08:48:54]MH_SAM_APDU [08:48:54]CAPDU: 80 11 00 00 [08:48:54]Write to MH i2c: E2 08 00 81 14 80 11 00 00 00 00 00 00 0F [08:48:54]Write i2c OK [08:48:54]MH_I2C_Read... [08:48:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:54]Read from MH i2c: E2 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: E2 17 00 [08:48:54]MH_I2C_Read... [08:48:54]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 [08:48:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:48:54]wFMCommunicate OK [08:48:54]CreateOFDProtocolMessage done [08:48:54]OFDSenderStorePacket 67013 [08:48:54]StoreOFDPacket docnum=67013 [08:48: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 10 01 00 00 AE 23 08 01 CA 75 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 78 25 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C5 05 01 00 35 04 06 00 84 C6 56 19 5B DD 55 16 29 97 69 0C A8 1E [08:48:54]CheckFolder [08:48:54]dirname=/storage/ofd_packets [08:48:54]CheckFolder done [08:48:54]ProducePacketName [08:48:54]name=ofd_packets/00067013 [08:48:54]NVStorageSaveData ofd_packets/00067013 [08:48:54]File name is /storage/ofd_packets/00067013 [08:48:54]Write 302 bytes [08:48:54]NVStorageSaveData done [08:48:54]OFDSenderStorePacket done [08:48:54]KKMCreateOFDPacket done [08:48:54]NVStorageSaveData kkm_last_timestamp [08:48:54]File name is /storage/kkm_last_timestamp [08:48:54]Write 4 bytes [08:48:54]NVStorageSaveData done [08:48:54]ExternCall_PrintAddStr [08:48:54]wPrintStart [08:48:54]Write to MH i2c: 01 00 00 82 14 96 [08:48:54]Write i2c OK [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: 01 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: 01 07 00 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: 01 07 00 82 14 00 00 00 00 00 FF 0F AB [08:48:54]RasterBufferAndPrint [08:48:54]line Счет N : (1)506841 [08:48:54]line ИНН: 02508201610067 [08:48:54]line Контрольно-Кассовый Чек [08:48:54]line ПРОДАЖА [08:48:54]line ТРК (МРК, ГНК) : 12 [08:48:54]line Товар: 2710124130 [08:48:54]line Super-92-К-5 [08:48:54]line 22.130 * 67.80 [08:48:54]line = 1500.41 [08:48:54]line НДС 12% НСП 1% [08:48:54]line > о реализуемом товаре [08:48:54]line ОКРУГЛЕНИЕ: -0.41 [08:48:54]line ИТОГО: 1500.00 [08:48:54]line Внесено: 1500.00 [08:48:54]line СДАЧА: 0.00 [08:48:54]line НСП 1% : 13.28 [08:48:54]line НДС 12% : 159.34 [08:48:54]line Наличными: 1500.00 [08:48:54]line Безнал.: 0.00 [08:48:54]line Место: АЗС № 91 "Партнер Нефть" [08:48:54]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:48:54]line СНО: Общий режим [08:48:54]line Чек 20 14.05.2024 08:48 [08:48:54]line Смена: 355 ФФД: 1.0 [08:48:54]line ЗНМ: 0300000119 [08:48:54]line РНМ: 0000000000091845 [08:48:54]line Версия ККМ: 001 [08:48:54]line ФМ: 0000000000871829 [08:48:54]line ФД: 67013 [08:48:54]line ФПД: 145987382893533 [08:48:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T084856&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67013&fm=145987382893533&tin=02508201610067®Number=0000000000091845&sum=150000 [08:48:54]OFD Sender: Processing packet 67013 [packets to send 35, broken 34] [08:48:54]ProducePacketName [08:48:54]name=ofd_packets/00067013 [08:48:54]OFD Sender: To server: pG, [08:48:54]CommunicateWithHost lk.salyk.kg:30040 [08:48:54]ConnectInit lk.salyk.kg [08:48:54]written 0, free lines is 4095 [08:48:55]Connected sock=10 [08:48: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 10 01 00 00 AE 23 08 01 CA 75 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 78 25 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C5 05 01 00 35 04 06 00 84 C6 56 19 5B DD 55 16 29 97 69 0C A8 1E [08:48: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 47 A8 47 00 10 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C5 05 01 00 F4 03 04 00 58 CD 42 66 B6 04 01 00 00 20 AF F9 A8 2F 3B 8B 49 [08:48:55]CommunicateWithHost err = 0 [08:48:55]CheckOFDResponse [08:48:55]1017 (14) - 77093643461234 [08:48:55]1041 (16) - 0000000000871829 [08:48:55]1040 (4) - 67013 [08:48:55]1012 (4) - 14.05.2024 02:32 [08:48:55]1206 (1) - 0 [08:48:55]OFD Sender: Remove packet 67013 [08:48:55]ProducePacketName [08:48:55]name=ofd_packets/00067013 [08:48:55]NVStorageDeleteData [08:48:55]Write to MH i2c: 01 00 00 AC 14 C0 [08:48:55]Write i2c OK [08:48:55]MH_I2C_Read... [08:48:55]Read from MH i2c: 01 [08:48:55]MH_I2C_Read... [08:48:55]Read from MH i2c: 01 07 00 [08:48:55]MH_I2C_Read... [08:48:55]Read from MH i2c: 01 07 00 AC 14 00 00 00 00 00 CE 0C A1 [08:48:55]RasterBufferAndPrint [08:48:55]line [08:48:55]line [08:48:55]line [08:48:55]line [08:48:55]line [08:48:55]written 0, free lines is 3282 [08:48:55]MH_Cut [08:48:55]Write to MH i2c: D1 01 00 B3 14 01 99 [08:48:55]Write i2c OK [08:48:55]MH_I2C_Read... [08:48:55]Read from MH i2c: D1 [08:48:55]MH_I2C_Read... [08:48:55]Read from MH i2c: D1 01 00 [08:48:55]MH_I2C_Read... [08:48:55]Read from MH i2c: D1 01 00 B3 14 00 98 [08:48:55]Write to MH i2c: 01 00 00 B4 14 C8 [08:48:55]Write i2c OK [08:48:55]MH_I2C_Read... [08:48:55]OFD Sender: No OFD packet to send [08:48:56]*** Cut start [08:48:56]*** Purtial cut [08:48:56]*** Stage 1: CUTSNS_PIN = 1 [08:48:56]Read from MH i2c: 01 [08:48:56]MH_I2C_Read... [08:48:56]*** Stop cut motor [08:48:56]*** Cut end [08:48:56]Read from MH i2c: 01 07 00 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: 01 07 00 B4 14 00 00 00 00 00 FF 0F DD [08:48:56]process_action close_receipt done [08:48:56]requested_data is exist [08:48:56]produce_requested_data [08:48:56]requested_item fm.sn is exist - process it [08:48:56]wFMCommunicate request_size=4 [08:48:56]MH_SAM_APDU [08:48:56]CAPDU: 80 11 00 00 [08:48:56]Write to MH i2c: E2 08 00 B5 14 80 11 00 00 00 00 00 00 43 [08:48:56]Write i2c OK [08:48:56]MH_I2C_Read... [08:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:56]Read from MH i2c: E2 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: E2 17 00 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: E2 17 00 B5 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 99 [08:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:48:56]wFMCommunicate OK [08:48:56]requested_item fd.num is exist - process it [08:48:56]SAM_PROTO_GetFieldsCounters [08:48:56]wFMCommunicate request_size=4 [08:48:56]MH_SAM_APDU [08:48:56]CAPDU: 80 13 00 00 [08:48:56]Write to MH i2c: E2 08 00 B6 14 80 13 00 00 00 00 00 00 46 [08:48:56]Write i2c OK [08:48:56]MH_I2C_Read... [08:48:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:56]Read from MH i2c: E2 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: E2 62 00 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: E2 62 00 B6 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C5 05 01 00 0E 04 04 00 63 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 D7 [08:48: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 C5 05 01 00 0E 04 04 00 63 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:48:56]wFMCommunicate OK [08:48:56]SAM_PROTO_GetFieldsCounters done [08:48:56]requested_item shift.num is exist - process it [08:48:56]requested_item shift.opened is exist - process it [08:48:56]req_shift_opened [08:48:56]FM_GetShiftState [08:48:56]SAM_PROTO_GetShiftState [08:48:56]wFMCommunicate request_size=4 [08:48:56]MH_SAM_APDU [08:48:56]CAPDU: 80 13 01 00 [08:48:56]Write to MH i2c: E2 08 00 B7 14 80 13 01 00 00 00 00 00 48 [08:48:56]Write i2c OK [08:48:56]MH_I2C_Read... [08:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:56]Read from MH i2c: E2 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: E2 0E 00 [08:48:56]MH_I2C_Read... [08:48:56]Read from MH i2c: E2 0E 00 B7 14 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 10 [08:48:56]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [08:48:56]wFMCommunicate OK [08:48:56]SAM_PROTO_GetShiftState done [08:48:56]FM_GetShiftState done [08:48:56]req_shift_opened done [08:48:56]requested_item shift.open_date is exist - process it [08:48:56]req_shift_open_date [08:48:56]req_shift_open_date done [08:48:56]produce_requested_data done [08:48:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67013,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [08:48:56]process_action_free close_receipt [08:48:56]json_value_free [08:48:56]json_value_free done [08:48:56]process_json_proto returns [08:48:56]Send response to host [08:48:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67013,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [08:48:56]free response buf [08:48:56]execute_script done [08:48:56]execute_script returns [08:48:56]free content buf [08:48:56]Sock 9.Close socket [08:48:56]Sock 9.Thread stoped [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:45]OFD Sender: No OFD packet to send [08:50:50]OFD Sender: No OFD packet to send [08:50:55]OFD Sender: No OFD packet to send [08:50:58]accept exits with 8 [08:50:58]New connection [08:50:58]New thread 3066760548 created [08:50:58]Thread 3066617188 joined [08:50:58]Waiting for new connection... [08:50:58] Sock 8.Parse request [08:50:58]Sock 8.Check first char [08:50:58]Sock 8.First char is OK [08:50:58]request: POST /json_proto HTTP/1.0 [08:50:58]Method: POST [08:50:58]URL: /json_proto [08:50:58]Method is POST - this is cgi request [08:50:58]url: /json_proto [08:50:58]query_string will be loaded in cgi processing [08:50:58]execute_cgi json_proto POST (null) [08:50:58]execute_cgi path=json_proto method=POST [08:50:58]POST find Content-Length [08:50:58]Host: 172.17.41.195:8080 [08:50:58]Content-Length: 1179 [08:50:58]Content-Type: application/json [08:50:58] [08:50:58]POST finish read [08:50:58]Found Content-Length = 1179 [08:50:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506842\u000A14.05.2024 08:33\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 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" ] } } [08:50:58]execute_script... [08:50:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506842\u000A14.05.2024 08:33\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 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" ] } } [08:50:58]POST & json_proto [08:50:58]process_json_proto [08:50:58]json parsed OK: [08:50:58]protocol is kg_v1.0 [08:50:58]action value=print_text [08:50:58]process_action print_text [08:50:58]cmd_print_text [08:50:58]ExternCall_PrintAddStr [08:50:58]wPrintStart [08:50:58]Write to MH i2c: 01 00 00 B8 14 CC [08:50:58]Write i2c OK [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: 01 [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: 01 07 00 [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: 01 07 00 B8 14 00 00 00 00 00 FF 0F E1 [08:50:58]RasterBufferAndPrint [08:50:58]line *****ТОВАРНЫЙ ЧЕК***** [08:50:58]line АЗС-91 [08:50:58]line Партнер нефть [08:50:58]line 02508201610067 [08:50:58]line Кассир : Адишов И. [08:50:58]line Счет N : (1)506842 [08:50:58]line 14.05.2024 08:33 [08:50:58]line ПРОДАЖА [08:50:58]line ТРК (МРК, ГНК): 41 [08:50:58]line Вид ГСМ : 2710194210 [08:50:58]line ДТ-К-5 [08:50:58]line 40.000 x 74.70 [08:50:58]line ИТОГ: 2988.00 [08:50:58]line Тип оплаты: Талоны: Топливная Карта [08:50:58]line 02750 [08:50:58]line ______________________ [08:50:58]line (подпись) [08:50:58]written 0, free lines is 4095 [08:50:58]Write to MH i2c: 01 00 00 CC 14 E0 [08:50:58]Write i2c OK [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: 01 [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: 01 07 00 [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: 01 07 00 CC 14 00 00 00 00 00 0E 0E 03 [08:50:58]RasterBufferAndPrint [08:50:58]line [08:50:58]line [08:50:58]line [08:50:58]line [08:50:58]line [08:50:58]written 0, free lines is 3599 [08:50:58]MH_Cut [08:50:58]Write to MH i2c: D1 01 00 D3 14 01 B9 [08:50:58]Write i2c OK [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: D1 [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: D1 01 00 [08:50:58]MH_I2C_Read... [08:50:58]Read from MH i2c: D1 01 00 D3 14 00 B8 [08:50:58]Write to MH i2c: 01 00 00 D4 14 E8 [08:50:58]Write i2c OK [08:50:58]MH_I2C_Read... [08:50:59]*** Cut start [08:50:59]*** Purtial cut [08:50:59]*** CUTSNS_PIN = 0 [08:50:59]*** Stage 1: CUTSNS_PIN = 1 [08:51:00]OFD Sender: No OFD packet to send [08:51:01]Read from MH i2c: 01 [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: 01 07 00 [08:51:01]MH_I2C_Read... [08:51:01]*** Stop cut motor [08:51:01]*** Cut end [08:51:01]Read from MH i2c: 01 07 00 D4 14 00 00 00 00 00 FF 0F FD [08:51:01]process_action print_text done [08:51:01]requested_data is exist [08:51:01]produce_requested_data [08:51:01]requested_item fm.sn is exist - process it [08:51:01]wFMCommunicate request_size=4 [08:51:01]MH_SAM_APDU [08:51:01]CAPDU: 80 11 00 00 [08:51:01]Write to MH i2c: E2 08 00 D5 14 80 11 00 00 00 00 00 00 63 [08:51:01]Write i2c OK [08:51:01]MH_I2C_Read... [08:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:01]Read from MH i2c: E2 [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: E2 17 00 [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: E2 17 00 D5 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B9 [08:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:51:01]wFMCommunicate OK [08:51:01]requested_item fd.num is exist - process it [08:51:01]SAM_PROTO_GetFieldsCounters [08:51:01]wFMCommunicate request_size=4 [08:51:01]MH_SAM_APDU [08:51:01]CAPDU: 80 13 00 00 [08:51:01]Write to MH i2c: E2 08 00 D6 14 80 13 00 00 00 00 00 00 66 [08:51:01]Write i2c OK [08:51:01]MH_I2C_Read... [08:51:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:01]Read from MH i2c: E2 [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: E2 62 00 [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: E2 62 00 D6 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 C5 05 01 00 0E 04 04 00 63 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 F7 [08:51:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C5 05 01 00 0E 04 04 00 63 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:51:01]wFMCommunicate OK [08:51:01]SAM_PROTO_GetFieldsCounters done [08:51:01]requested_item shift.num is exist - process it [08:51:01]requested_item shift.opened is exist - process it [08:51:01]req_shift_opened [08:51:01]FM_GetShiftState [08:51:01]SAM_PROTO_GetShiftState [08:51:01]wFMCommunicate request_size=4 [08:51:01]MH_SAM_APDU [08:51:01]CAPDU: 80 13 01 00 [08:51:01]Write to MH i2c: E2 08 00 D7 14 80 13 01 00 00 00 00 00 68 [08:51:01]Write i2c OK [08:51:01]MH_I2C_Read... [08:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:01]Read from MH i2c: E2 [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: E2 0E 00 [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: E2 0E 00 D7 14 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 30 [08:51:01]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [08:51:01]wFMCommunicate OK [08:51:01]SAM_PROTO_GetShiftState done [08:51:01]FM_GetShiftState done [08:51:01]req_shift_opened done [08:51:01]requested_item shift.open_date is exist - process it [08:51:01]req_shift_open_date [08:51:01]req_shift_open_date done [08:51:01]produce_requested_data done [08:51:01]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67013,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [08:51:01]process_action_free print_text [08:51:01]json_value_free [08:51:01]json_value_free done [08:51:01]process_json_proto returns [08:51:01]Send response to host [08:51:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67013,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [08:51:01]free response buf [08:51:01]execute_script done [08:51:01]execute_script returns [08:51:01]free content buf [08:51:01]Sock 8.Close socket [08:51:01]Sock 8.Thread stoped [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:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:17]accept exits with 9 [08:53:17]New connection [08:53:17]New thread 3066617188 created [08:53:17]Thread 3066760548 joined [08:53:17]Waiting for new connection... [08:53:17] Sock 9.Parse request [08:53:17]Sock 9.Check first char [08:53:17]Sock 9.First char is OK [08:53:17]request: POST /json_proto HTTP/1.0 [08:53:17]Method: POST [08:53:17]URL: /json_proto [08:53:17]Method is POST - this is cgi request [08:53:17]url: /json_proto [08:53:17]query_string will be loaded in cgi processing [08:53:17]execute_cgi json_proto POST (null) [08:53:17]execute_cgi path=json_proto method=POST [08:53:17]POST find Content-Length [08:53:17]Host: 172.17.41.195:8080 [08:53:17]Content-Length: 675 [08:53:17]Content-Type: application/json [08:53:17] [08:53:17]POST finish read [08:53:17]Found Content-Length = 675 [08:53:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 10.710, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:17]execute_script... [08:53:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 10.710, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:17]POST & json_proto [08:53:17]process_json_proto [08:53:17]json parsed OK: [08:53:17]protocol is kg_v1.0 [08:53:17]action value=close_receipt [08:53:17]process_action close_receipt [08:53:17]cmd_close_receipt [08:53:17]MH_GetDate [08:53:17]Write to MH i2c: F0 00 00 D8 14 DB [08:53:17]Write i2c OK [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: F0 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: F0 09 00 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: F0 09 00 D8 14 00 81 26 43 66 FC 21 6F 64 24 [08:53:17]GetLastDocTimeStamp 1715676536 [08:53:17]current date 1715676801 [08:53:17]FM_GetShiftState [08:53:17]SAM_PROTO_GetShiftState [08:53:17]wFMCommunicate request_size=4 [08:53:17]MH_SAM_APDU [08:53:17]CAPDU: 80 13 01 00 [08:53:17]Write to MH i2c: E2 08 00 D9 14 80 13 01 00 00 00 00 00 6A [08:53:17]Write i2c OK [08:53:17]MH_I2C_Read... [08:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:17]Read from MH i2c: E2 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 0E 00 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 0E 00 D9 14 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 32 [08:53:17]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [08:53:17]wFMCommunicate OK [08:53:17]SAM_PROTO_GetShiftState done [08:53:17]FM_GetShiftState done [08:53:17]opened in 1715646054 [08:53:17]opened+sec_in_day 1715732454 [08:53:17]quantity*price = 80003 [08:53:17]sum+1 = 80005 [08:53:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 21 14.05.2024 08:53 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67014 ФПД: 128521507490186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T085321&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67014&fm=128521507490186&tin=02508201610067®Number=0000000000091845&sum=80000 [08:53:19]StoreToDocumentArchive [08:53:19]shift 355 fd 67014 [08:53:19]save to /storage/0355/doc_00067014 [08:53:19]save last doc name /storage/0355/doc_00067014 to /storage/kkm_last_doc_name [08:53:19]save OK [08:53:19]Clear old archive folders... [08:53:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:53:19]tlvbuf is 003407D0 [08:53:19]SAM_PROTO_ClearQueue [08:53:19]wFMCommunicate request_size=4 [08:53:19]MH_SAM_APDU [08:53:19]CAPDU: 80 09 00 00 [08:53:19]Write to MH i2c: E2 08 00 E6 14 80 09 00 00 00 00 00 00 6C [08:53:19]Write i2c OK [08:53:19]MH_I2C_Read... [08:53:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:19]Read from MH i2c: E2 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 03 00 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 03 00 E6 14 00 90 00 6E [08:53:19]RAPDU: 90 00 [08:53:19]wFMCommunicate OK [08:53:19]SAM_PROTO_ClearQueue done [08:53:19]KKMCreateOFDPacket [08:53:19]OFDProtocolAddRootSTLVToBuf [08:53:19]FM_MakeSignedData [08:53:19]FM_MakeSignedData [08:53:19]SAM_PROTO_SignData [08:53:19]wFMCommunicate request_size=4 [08:53:19]MH_SAM_APDU [08:53:19]CAPDU: 80 0D 01 02 [08:53:19]Write to MH i2c: E2 08 00 E7 14 80 0D 01 02 00 00 00 00 74 [08:53:19]Write i2c OK [08:53:19]MH_I2C_Read... [08:53:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:19]Read from MH i2c: E2 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 03 00 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 03 00 E7 14 00 90 00 6F [08:53:19]RAPDU: 90 00 [08:53:19]wFMCommunicate OK [08:53:19]wFMCommunicate request_size=255 [08:53:19]MH_SAM_APDU [08:53: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 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 81 26 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C6 05 01 00 35 04 06 00 74 E3 BE CC [08:53:19]Write to MH i2c: E2 02 01 E8 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 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 81 26 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C6 05 01 00 35 04 06 00 74 E3 BE CC 00 00 DC [08:53:19]Write i2c OK [08:53:19]MH_I2C_Read... [08:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:19]Read from MH i2c: E2 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 03 00 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 03 00 E8 14 00 90 00 70 [08:53:19]RAPDU: 90 00 [08:53:19]wFMCommunicate OK [08:53:19]wFMCommunicate request_size=7 [08:53:19]MH_SAM_APDU [08:53:19]CAPDU: 80 0D 02 02 02 C9 8A [08:53:19]Write to MH i2c: E2 0A 00 E9 14 80 0D 02 02 02 00 C9 8A 00 00 CE [08:53:19]Write i2c OK [08:53:19]MH_I2C_Read... [08:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:19]Read from MH i2c: E2 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 03 00 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 03 00 E9 14 00 90 00 71 [08:53:19]RAPDU: 90 00 [08:53:19]wFMCommunicate OK [08:53:19]wFMCommunicate request_size=4 [08:53:19]MH_SAM_APDU [08:53:19]CAPDU: 80 0D 03 02 [08:53:19]Write to MH i2c: E2 08 00 EA 14 80 0D 03 02 00 00 00 00 79 [08:53:19]Write i2c OK [08:53:19]MH_I2C_Read... [08:53:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:19]Read from MH i2c: E2 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 0B 00 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 0B 00 EA 14 00 D5 33 FA EE 37 1A 4F 8C 90 00 96 [08:53:19]RAPDU: D5 33 FA EE 37 1A 4F 8C 90 00 [08:53:19]wFMCommunicate OK [08:53:19]SAM_PROTO_SignData done [08:53:19]FM_MakeSignedData done [08:53:19]CreateOFDProtocolMessage [08:53:19]wFMCommunicate request_size=4 [08:53:19]MH_SAM_APDU [08:53:19]CAPDU: 80 11 00 00 [08:53:19]Write to MH i2c: E2 08 00 EB 14 80 11 00 00 00 00 00 00 79 [08:53:19]Write i2c OK [08:53:19]MH_I2C_Read... [08:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:19]Read from MH i2c: E2 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 17 00 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: E2 17 00 EB 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CF [08:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:53:19]wFMCommunicate OK [08:53:19]CreateOFDProtocolMessage done [08:53:19]OFDSenderStorePacket 67014 [08:53:19]StoreOFDPacket docnum=67014 [08:53:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 AE 74 04 01 49 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 81 26 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C6 05 01 00 35 04 06 00 74 E3 BE CC C9 8A D5 33 FA EE 37 1A 4F 8C [08:53:19]CheckFolder [08:53:19]dirname=/storage/ofd_packets [08:53:19]CheckFolder done [08:53:19]ProducePacketName [08:53:19]name=ofd_packets/00067014 [08:53:19]NVStorageSaveData ofd_packets/00067014 [08:53:19]File name is /storage/ofd_packets/00067014 [08:53:19]Write 298 bytes [08:53:19]NVStorageSaveData done [08:53:19]OFDSenderStorePacket done [08:53:19]KKMCreateOFDPacket done [08:53:19]NVStorageSaveData kkm_last_timestamp [08:53:19]File name is /storage/kkm_last_timestamp [08:53:19]Write 4 bytes [08:53:19]NVStorageSaveData done [08:53:19]ExternCall_PrintAddStr [08:53:19]wPrintStart [08:53:19]Write to MH i2c: 01 00 00 EC 14 00 [08:53:19]Write i2c OK [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: 01 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: 01 07 00 [08:53:19]MH_I2C_Read... [08:53:19]Read from MH i2c: 01 07 00 EC 14 00 00 00 00 00 FF 0F 15 [08:53:19]RasterBufferAndPrint [08:53:19]line Счет N : (1)506843 [08:53:19]line ИНН: 02508201610067 [08:53:19]line Контрольно-Кассовый Чек [08:53:19]line ПРОДАЖА [08:53:19]line ТРК (МРК, ГНК) : 21 [08:53:19]line Товар: 2710194210 [08:53:19]line ДТ-К-5 [08:53:19]line 10.710 * 74.70 [08:53:19]line = 800.04 [08:53:19]line НДС 12% НСП 1% [08:53:19]line > о реализуемом товаре [08:53:19]line ОКРУГЛЕНИЕ: -0.04 [08:53:19]line ИТОГО: 800.00 [08:53:19]line Внесено: 800.00 [08:53:19]line СДАЧА: 0.00 [08:53:19]line НСП 1% : 7.08 [08:53:19]line НДС 12% : 84.96 [08:53:19]line Наличными: 800.00 [08:53:19]line Безнал.: 0.00 [08:53:19]line Место: АЗС № 91 "Партнер Нефть" [08:53:19]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:53:19]line СНО: Общий режим [08:53:19]line Чек 21 14.05.2024 08:53 [08:53:19]line Смена: 355 ФФД: 1.0 [08:53:19]line ЗНМ: 0300000119 [08:53:19]line РНМ: 0000000000091845 [08:53:19]line Версия ККМ: 001 [08:53:19]line ФМ: 0000000000871829 [08:53:19]line ФД: 67014 [08:53:19]line ФПД: 128521507490186 [08:53:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T085321&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67014&fm=128521507490186&tin=02508201610067®Number=0000000000091845&sum=80000 [08:53:19]OFD Sender: Processing packet 67014 [packets to send 35, broken 34] [08:53:19]ProducePacketName [08:53:19]name=ofd_packets/00067014 [08:53:19]OFD Sender: To server: pG, [08:53:19]CommunicateWithHost lk.salyk.kg:30040 [08:53:19]ConnectInit lk.salyk.kg [08:53:19]written 0, free lines is 4095 [08:53:20]Connected sock=10 [08:53: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 AE 74 04 01 49 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 81 26 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C6 05 01 00 35 04 06 00 74 E3 BE CC C9 8A D5 33 FA EE 37 1A 4F 8C [08:53: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 C5 3D 47 00 83 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 C6 05 01 00 F4 03 04 00 61 CE 42 66 B6 04 01 00 00 E6 60 F3 C9 12 2C 48 E2 [08:53:20]CommunicateWithHost err = 0 [08:53:20]CheckOFDResponse [08:53:20]1017 (14) - 77093643461234 [08:53:20]1041 (16) - 0000000000871829 [08:53:20]1040 (4) - 67014 [08:53:20]1012 (4) - 14.05.2024 02:37 [08:53:20]1206 (1) - 0 [08:53:20]OFD Sender: Remove packet 67014 [08:53:20]ProducePacketName [08:53:20]name=ofd_packets/00067014 [08:53:20]NVStorageDeleteData [08:53:20]Write to MH i2c: 01 00 00 16 15 2B [08:53:20]Write i2c OK [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: 01 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: 01 07 00 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: 01 07 00 16 15 00 00 00 00 00 B9 0C F7 [08:53:20]RasterBufferAndPrint [08:53:20]line [08:53:20]line [08:53:20]line [08:53:20]line [08:53:20]line [08:53:20]written 0, free lines is 3262 [08:53:20]MH_Cut [08:53:20]Write to MH i2c: D1 01 00 1D 15 01 04 [08:53:20]Write i2c OK [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: D1 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: D1 01 00 [08:53:20]MH_I2C_Read... [08:53:20]Read from MH i2c: D1 01 00 1D 15 00 03 [08:53:20]Write to MH i2c: 01 00 00 1E 15 33 [08:53:20]Write i2c OK [08:53:20]MH_I2C_Read... [08:53:20]OFD Sender: No OFD packet to send [08:53:21]*** Cut start [08:53:21]*** Purtial cut [08:53:21]*** Stage 1: CUTSNS_PIN = 1 [08:53:21]Read from MH i2c: 01 [08:53:21]MH_I2C_Read... [08:53:21]*** Stop cut motor [08:53:21]*** Cut end [08:53:21]Read from MH i2c: 01 07 00 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: 01 07 00 1E 15 00 00 00 00 00 FF 0F 48 [08:53:21]process_action close_receipt done [08:53:21]requested_data is exist [08:53:21]produce_requested_data [08:53:21]requested_item fm.sn is exist - process it [08:53:21]wFMCommunicate request_size=4 [08:53:21]MH_SAM_APDU [08:53:21]CAPDU: 80 11 00 00 [08:53:21]Write to MH i2c: E2 08 00 1F 15 80 11 00 00 00 00 00 00 AE [08:53:21]Write i2c OK [08:53:21]MH_I2C_Read... [08:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:21]Read from MH i2c: E2 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 17 00 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 17 00 1F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 04 [08:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:53:21]wFMCommunicate OK [08:53:21]requested_item fd.num is exist - process it [08:53:21]SAM_PROTO_GetFieldsCounters [08:53:21]wFMCommunicate request_size=4 [08:53:21]MH_SAM_APDU [08:53:21]CAPDU: 80 13 00 00 [08:53:21]Write to MH i2c: E2 08 00 20 15 80 13 00 00 00 00 00 00 B1 [08:53:21]Write i2c OK [08:53:21]MH_I2C_Read... [08:53:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:21]Read from MH i2c: E2 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 62 00 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 62 00 20 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 C6 05 01 00 0E 04 04 00 63 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 46 [08:53: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 C6 05 01 00 0E 04 04 00 63 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:53:21]wFMCommunicate OK [08:53:21]SAM_PROTO_GetFieldsCounters done [08:53:21]requested_item shift.num is exist - process it [08:53:21]requested_item shift.opened is exist - process it [08:53:21]req_shift_opened [08:53:21]FM_GetShiftState [08:53:21]SAM_PROTO_GetShiftState [08:53:21]wFMCommunicate request_size=4 [08:53:21]MH_SAM_APDU [08:53:21]CAPDU: 80 13 01 00 [08:53:21]Write to MH i2c: E2 08 00 21 15 80 13 01 00 00 00 00 00 B3 [08:53:21]Write i2c OK [08:53:21]MH_I2C_Read... [08:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:21]Read from MH i2c: E2 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 0E 00 [08:53:21]MH_I2C_Read... [08:53:21]Read from MH i2c: E2 0E 00 21 15 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 7B [08:53:21]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [08:53:21]wFMCommunicate OK [08:53:21]SAM_PROTO_GetShiftState done [08:53:21]FM_GetShiftState done [08:53:21]req_shift_opened done [08:53:21]requested_item shift.open_date is exist - process it [08:53:21]req_shift_open_date [08:53:21]req_shift_open_date done [08:53:21]produce_requested_data done [08:53:21]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67014,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [08:53:21]process_action_free close_receipt [08:53:21]json_value_free [08:53:21]json_value_free done [08:53:21]process_json_proto returns [08:53:21]Send response to host [08:53:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67014,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [08:53:21]free response buf [08:53:21]execute_script done [08:53:21]execute_script returns [08:53:21]free content buf [08:53:21]Sock 9.Close socket [08:53:21]Sock 9.Thread stoped [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]accept exits with 8 [08:53:55]New connection [08:53:55]New thread 3066760548 created [08:53:55]Thread 3066617188 joined [08:53:55]Waiting for new connection... [08:53:55] Sock 8.Parse request [08:53:55]Sock 8.Check first char [08:53:55]Sock 8.First char is OK [08:53:55]request: POST /json_proto HTTP/1.0 [08:53:55]Method: POST [08:53:55]URL: /json_proto [08:53:55]Method is POST - this is cgi request [08:53:55]url: /json_proto [08:53:55]query_string will be loaded in cgi processing [08:53:55]execute_cgi json_proto POST (null) [08:53:55]execute_cgi path=json_proto method=POST [08:53:55]POST find Content-Length [08:53:55]Host: 172.17.41.195:8080 [08:53:55]Content-Length: 674 [08:53:55]Content-Type: application/json [08:53:55] [08:53:55]POST finish read [08:53:55]Found Content-Length = 674 [08:53:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506844", "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" : 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" ] } } [08:53:55]execute_script... [08:53: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)506844", "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" : 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" ] } } [08:53:55]POST & json_proto [08:53:55]process_json_proto [08:53:55]json parsed OK: [08:53:55]protocol is kg_v1.0 [08:53:55]action value=close_receipt [08:53:55]process_action close_receipt [08:53:55]cmd_close_receipt [08:53:55]MH_GetDate [08:53:55]Write to MH i2c: F0 00 00 22 15 26 [08:53:55]Write i2c OK [08:53:55]MH_I2C_Read... [08:53:55]Read from MH i2c: F0 [08:53:55]MH_I2C_Read... [08:53:55]Read from MH i2c: F0 09 00 [08:53:55]MH_I2C_Read... [08:53:55]Read from MH i2c: F0 09 00 22 15 00 A7 26 43 66 FC 21 6F 64 95 [08:53:55]GetLastDocTimeStamp 1715676801 [08:53:55]current date 1715676839 [08:53:55]FM_GetShiftState [08:53:55]SAM_PROTO_GetShiftState [08:53:55]wFMCommunicate request_size=4 [08:53:55]MH_SAM_APDU [08:53:55]CAPDU: 80 13 01 00 [08:53:55]Write to MH i2c: E2 08 00 23 15 80 13 01 00 00 00 00 00 B5 [08:53:55]Write i2c OK [08:53:55]MH_I2C_Read... [08:53:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:55]Read from MH i2c: E2 [08:53:55]MH_I2C_Read... [08:53:55]Read from MH i2c: E2 0E 00 [08:53:55]MH_I2C_Read... [08:53:55]Read from MH i2c: E2 0E 00 23 15 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 7D [08:53:55]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [08:53:55]wFMCommunicate OK [08:53:55]SAM_PROTO_GetShiftState done [08:53:55]FM_GetShiftState done [08:53:55]opened in 1715646054 [08:53:55]opened+sec_in_day 1715732454 [08:53:55]quantity*price = 40039 [08:53:55]sum+1 = 40040 [08:53:55]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 СНО: Общий режим Чек 22 14.05.2024 08:53 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67015 ФПД: 280684386788011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T085359&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67015&fm=280684386788011&tin=02508201610067®Number=0000000000091845&sum=40000 [08:53:56]StoreToDocumentArchive [08:53:56]shift 355 fd 67015 [08:53:56]save to /storage/0355/doc_00067015 [08:53:56]save last doc name /storage/0355/doc_00067015 to /storage/kkm_last_doc_name [08:53:56]save OK [08:53:56]Clear old archive folders... [08:53:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:53:56]tlvbuf is 00349DF0 [08:53:56]SAM_PROTO_ClearQueue [08:53:56]wFMCommunicate request_size=4 [08:53:56]MH_SAM_APDU [08:53:56]CAPDU: 80 09 00 00 [08:53:56]Write to MH i2c: E2 08 00 30 15 80 09 00 00 00 00 00 00 B7 [08:53:56]Write i2c OK [08:53:56]MH_I2C_Read... [08:53:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:56]Read from MH i2c: E2 [08:53:56]MH_I2C_Read... [08:53:56]Read from MH i2c: E2 03 00 [08:53:56]MH_I2C_Read... [08:53:56]Read from MH i2c: E2 03 00 30 15 00 90 00 B9 [08:53:56]RAPDU: 90 00 [08:53:56]wFMCommunicate OK [08:53:56]SAM_PROTO_ClearQueue done [08:53:56]KKMCreateOFDPacket [08:53:56]OFDProtocolAddRootSTLVToBuf [08:53:56]FM_MakeSignedData [08:53:56]FM_MakeSignedData [08:53:56]SAM_PROTO_SignData [08:53:56]wFMCommunicate request_size=4 [08:53:56]MH_SAM_APDU [08:53:56]CAPDU: 80 0D 01 02 [08:53:56]Write to MH i2c: E2 08 00 31 15 80 0D 01 02 00 00 00 00 BF [08:53:56]Write i2c OK [08:53:56]MH_I2C_Read... [08:53:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:56]Read from MH i2c: E2 [08:53:56]MH_I2C_Read... [08:53:56]Read from MH i2c: E2 03 00 [08:53:56]MH_I2C_Read... [08:53:56]Read from MH i2c: E2 03 00 31 15 00 90 00 BA [08:53:56]RAPDU: 90 00 [08:53:56]wFMCommunicate OK [08:53:56]wFMCommunicate request_size=255 [08:53:56]MH_SAM_APDU [08:53: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 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 16 00 00 00 F4 03 04 00 A7 26 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C7 05 01 00 35 04 06 00 FF 47 ED 2B [08:53:56]Write to MH i2c: E2 02 01 32 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 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 16 00 00 00 F4 03 04 00 A7 26 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C7 05 01 00 35 04 06 00 FF 47 ED 2B 00 00 55 [08:53:57]Write i2c OK [08:53:57]MH_I2C_Read... [08:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:57]Read from MH i2c: E2 [08:53:57]MH_I2C_Read... [08:53:57]Read from MH i2c: E2 03 00 [08:53:57]MH_I2C_Read... [08:53:57]Read from MH i2c: E2 03 00 32 15 00 90 00 BB [08:53:57]RAPDU: 90 00 [08:53:57]wFMCommunicate OK [08:53:57]wFMCommunicate request_size=7 [08:53:57]MH_SAM_APDU [08:53:57]CAPDU: 80 0D 02 02 02 22 AB [08:53:57]Write to MH i2c: E2 0A 00 33 15 80 0D 02 02 02 00 22 AB 00 00 93 [08:53:57]Write i2c OK [08:53:57]MH_I2C_Read... [08:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:57]Read from MH i2c: E2 [08:53:57]MH_I2C_Read... [08:53:57]Read from MH i2c: E2 03 00 [08:53:57]MH_I2C_Read... [08:53:57]Read from MH i2c: E2 03 00 33 15 00 90 00 BC [08:53:57]RAPDU: 90 00 [08:53:57]wFMCommunicate OK [08:53:57]wFMCommunicate request_size=4 [08:53:57]MH_SAM_APDU [08:53:57]CAPDU: 80 0D 03 02 [08:53:57]Write to MH i2c: E2 08 00 34 15 80 0D 03 02 00 00 00 00 C4 [08:53:57]Write i2c OK [08:53:57]MH_I2C_Read... [08:53:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:57]Read from MH i2c: E2 [08:53:57]MH_I2C_Read... [08:53:57]Read from MH i2c: E2 0B 00 [08:53:57]MH_I2C_Read... [08:53:57]Read from MH i2c: E2 0B 00 34 15 00 0C 21 4B 6E 17 7A E5 F3 90 00 14 [08:53:57]RAPDU: 0C 21 4B 6E 17 7A E5 F3 90 00 [08:53:57]wFMCommunicate OK [08:53:57]SAM_PROTO_SignData done [08:53:57]FM_MakeSignedData done [08:53:57]CreateOFDProtocolMessage [08:53:57]wFMCommunicate request_size=4 [08:53:57]MH_SAM_APDU [08:53:57]CAPDU: 80 11 00 00 [08:53:57]Write to MH i2c: E2 08 00 35 15 80 11 00 00 00 00 00 00 C4 [08:53:57]Write i2c OK [08:53:57]MH_I2C_Read... [08:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:57]Read from MH i2c: E2 [08:53:57]MH_I2C_Read... [08:53:57]Read from MH i2c: E2 17 00 [08:53:57]MH_I2C_Read... [08:53:57]Read from MH i2c: E2 17 00 35 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1A [08:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:53:57]wFMCommunicate OK [08:53:57]CreateOFDProtocolMessage done [08:53:57]OFDSenderStorePacket 67015 [08:53:57]StoreOFDPacket docnum=67015 [08:53:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 77 3B 04 01 99 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 16 00 00 00 F4 03 04 00 A7 26 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C7 05 01 00 35 04 06 00 FF 47 ED 2B 22 AB 0C 21 4B 6E 17 7A E5 F3 [08:53:57]CheckFolder [08:53:57]dirname=/storage/ofd_packets [08:53:57]CheckFolder done [08:53:57]ProducePacketName [08:53:57]name=ofd_packets/00067015 [08:53:57]NVStorageSaveData ofd_packets/00067015 [08:53:57]File name is /storage/ofd_packets/00067015 [08:53:57]Write 298 bytes [08:53:57]NVStorageSaveData done [08:53:57]OFDSenderStorePacket done [08:53:57]KKMCreateOFDPacket done [08:53:57]NVStorageSaveData kkm_last_timestamp [08:53:57]File name is /storage/kkm_last_timestamp [08:53:57]Write 4 bytes [08:53:57]NVStorageSaveData done [08:53:57]ExternCall_PrintAddStr [08:53:57]wPrintStart [08:53:57]Write to MH i2c: 01 00 00 36 15 4B [08:53:57]Write i2c OK [08:53:57]MH_I2C_Read... [08:53:57]Read from MH i2c: 01 [08:53:57]MH_I2C_Read... [08:53:57]Read from MH i2c: 01 07 00 [08:53:57]MH_I2C_Read... [08:53:57]Read from MH i2c: 01 07 00 36 15 00 00 00 00 00 FF 0F 60 [08:53:57]RasterBufferAndPrint [08:53:57]line Счет N : (1)506844 [08:53:57]line ИНН: 02508201610067 [08:53:57]line Контрольно-Кассовый Чек [08:53:57]line ПРОДАЖА [08:53:57]line ТРК (МРК, ГНК) : 21 [08:53:57]line Товар: 2710194210 [08:53:57]line ДТ-К-5 [08:53:57]line 5.360 * 74.70 [08:53:57]line = 400.39 [08:53:57]line НДС 12% НСП 1% [08:53:57]line > о реализуемом товаре [08:53:57]line ОКРУГЛЕНИЕ: -0.39 [08:53:57]line ИТОГО: 400.00 [08:53:57]line Внесено: 400.00 [08:53:57]line СДАЧА: 0.00 [08:53:57]line НСП 1% : 3.54 [08:53:57]line НДС 12% : 42.52 [08:53:57]line Наличными: 400.00 [08:53:57]line Безнал.: 0.00 [08:53:57]line Место: АЗС № 91 "Партнер Нефть" [08:53:57]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [08:53:57]line СНО: Общий режим [08:53:57]line Чек 22 14.05.2024 08:53 [08:53:57]line Смена: 355 ФФД: 1.0 [08:53:57]line ЗНМ: 0300000119 [08:53:57]line РНМ: 0000000000091845 [08:53:57]line Версия ККМ: 001 [08:53:57]line ФМ: 0000000000871829 [08:53:57]line ФД: 67015 [08:53:57]line ФПД: 280684386788011 [08:53:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T085359&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67015&fm=280684386788011&tin=02508201610067®Number=0000000000091845&sum=40000 [08:53:57]OFD Sender: Processing packet 67015 [packets to send 35, broken 34] [08:53:57]ProducePacketName [08:53:57]name=ofd_packets/00067015 [08:53:57]OFD Sender: To server: pG, [08:53:57]CommunicateWithHost lk.salyk.kg:30040 [08:53:57]ConnectInit lk.salyk.kg [08:53:57]written 0, free lines is 4095 [08:53:57]Connected sock=10 [08:53: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 77 3B 04 01 99 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 16 00 00 00 F4 03 04 00 A7 26 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C7 05 01 00 35 04 06 00 FF 47 ED 2B 22 AB 0C 21 4B 6E 17 7A E5 F3 [08:53: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 6F 7C 47 00 7C FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C7 05 01 00 F4 03 04 00 87 CE 42 66 B6 04 01 00 00 22 51 B5 2A AD 78 3F C9 [08:53:58]CommunicateWithHost err = 0 [08:53:58]CheckOFDResponse [08:53:58]1017 (14) - 77093643461234 [08:53:58]1041 (16) - 0000000000871829 [08:53:58]1040 (4) - 67015 [08:53:58]1012 (4) - 14.05.2024 02:37 [08:53:58]1206 (1) - 0 [08:53:58]OFD Sender: Remove packet 67015 [08:53:58]ProducePacketName [08:53:58]name=ofd_packets/00067015 [08:53:58]NVStorageDeleteData [08:53:58]Write to MH i2c: 01 00 00 60 15 75 [08:53:58]Write i2c OK [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: 01 [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: 01 07 00 [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: 01 07 00 60 15 00 00 00 00 00 C2 0C 4A [08:53:58]RasterBufferAndPrint [08:53:58]line [08:53:58]line [08:53:58]line [08:53:58]line [08:53:58]line [08:53:58]written 0, free lines is 3272 [08:53:58]MH_Cut [08:53:58]Write to MH i2c: D1 01 00 67 15 01 4E [08:53:58]Write i2c OK [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: D1 [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: D1 01 00 [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: D1 01 00 67 15 00 4D [08:53:58]Write to MH i2c: 01 00 00 68 15 7D [08:53:58]Write i2c OK [08:53:58]MH_I2C_Read... [08:53:58]OFD Sender: No OFD packet to send [08:53:58]*** Cut start [08:53:59]*** Purtial cut [08:53:59]*** CUTSNS_PIN = 0 [08:53:59]*** Stage 1: CUTSNS_PIN = 1 [08:54:01]Read from MH i2c: 01 [08:54:01]MH_I2C_Read... [08:54:01]*** Stop cut motor [08:54:01]*** Cut end [08:54:01]Read from MH i2c: 01 07 00 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: 01 07 00 68 15 00 00 00 00 00 FF 0F 92 [08:54:01]process_action close_receipt done [08:54:01]requested_data is exist [08:54:01]produce_requested_data [08:54:01]requested_item fm.sn is exist - process it [08:54:01]wFMCommunicate request_size=4 [08:54:01]MH_SAM_APDU [08:54:01]CAPDU: 80 11 00 00 [08:54:01]Write to MH i2c: E2 08 00 69 15 80 11 00 00 00 00 00 00 F8 [08:54:01]Write i2c OK [08:54:01]MH_I2C_Read... [08:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:01]Read from MH i2c: E2 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: E2 17 00 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: E2 17 00 69 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4E [08:54:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [08:54:01]wFMCommunicate OK [08:54:01]requested_item fd.num is exist - process it [08:54:01]SAM_PROTO_GetFieldsCounters [08:54:01]wFMCommunicate request_size=4 [08:54:01]MH_SAM_APDU [08:54:01]CAPDU: 80 13 00 00 [08:54:01]Write to MH i2c: E2 08 00 6A 15 80 13 00 00 00 00 00 00 FB [08:54:01]Write i2c OK [08:54:01]MH_I2C_Read... [08:54:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:01]Read from MH i2c: E2 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: E2 62 00 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: E2 62 00 6A 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 C7 05 01 00 0E 04 04 00 63 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 94 [08:54:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 C7 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:01]wFMCommunicate OK [08:54:01]SAM_PROTO_GetFieldsCounters done [08:54:01]requested_item shift.num is exist - process it [08:54:01]requested_item shift.opened is exist - process it [08:54:01]req_shift_opened [08:54:01]FM_GetShiftState [08:54:01]SAM_PROTO_GetShiftState [08:54:01]wFMCommunicate request_size=4 [08:54:01]MH_SAM_APDU [08:54:01]CAPDU: 80 13 01 00 [08:54:01]Write to MH i2c: E2 08 00 6B 15 80 13 01 00 00 00 00 00 FD [08:54:01]Write i2c OK [08:54:01]MH_I2C_Read... [08:54:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:01]Read from MH i2c: E2 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: E2 0E 00 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: E2 0E 00 6B 15 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 C5 [08:54:01]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [08:54:01]wFMCommunicate OK [08:54:01]SAM_PROTO_GetShiftState done [08:54:01]FM_GetShiftState done [08:54:01]req_shift_opened done [08:54:01]requested_item shift.open_date is exist - process it [08:54:01]req_shift_open_date [08:54:01]req_shift_open_date done [08:54:01]produce_requested_data done [08:54:01]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67015,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [08:54:01]process_action_free close_receipt [08:54:01]json_value_free [08:54:01]json_value_free done [08:54:01]process_json_proto returns [08:54:01]Send response to host [08:54:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67015,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [08:54:01]free response buf [08:54:01]execute_script done [08:54:01]execute_script returns [08:54:01]free content buf [08:54:01]Sock 8.Close socket [08:54:01]Sock 8.Thread stoped [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:51]recv_with_timeout no data received [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01: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:23]accept exits with 9 [09:03:23]New connection [09:03:23]New thread 3066617188 created [09:03:23]Thread 3066760548 joined [09:03:23]Waiting for new connection... [09:03:23] Sock 9.Parse request [09:03:23]Sock 9.Check first char [09:03:23]Sock 9.First char is OK [09:03:23]request: POST /json_proto HTTP/1.0 [09:03:23]Method: POST [09:03:23]URL: /json_proto [09:03:23]Method is POST - this is cgi request [09:03:23]url: /json_proto [09:03:23]query_string will be loaded in cgi processing [09:03:23]execute_cgi json_proto POST (null) [09:03:23]execute_cgi path=json_proto method=POST [09:03:23]POST find Content-Length [09:03:23]Host: 172.17.41.195:8080 [09:03:23]Content-Length: 1178 [09:03:23]Content-Type: application/json [09:03:23] [09:03:23]POST finish read [09:03:23]Found Content-Length = 1178 [09:03: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)506845\u000A14.05.2024 08:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 971.10\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:23]execute_script... [09:03: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)506845\u000A14.05.2024 08:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 971.10\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:23]POST & json_proto [09:03:23]process_json_proto [09:03:23]json parsed OK: [09:03:23]protocol is kg_v1.0 [09:03:23]action value=print_text [09:03:23]process_action print_text [09:03:23]cmd_print_text [09:03:23]ExternCall_PrintAddStr [09:03:23]wPrintStart [09:03:23]Write to MH i2c: 01 00 00 6C 15 81 [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: 01 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: 01 07 00 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: 01 07 00 6C 15 00 00 00 00 00 FF 0F 96 [09:03:23]RasterBufferAndPrint [09:03:23]line *****ТОВАРНЫЙ ЧЕК***** [09:03:23]line АЗС-91 [09:03:23]line Партнер нефть [09:03:23]line 02508201610067 [09:03:23]line Кассир : Адишов И. [09:03:23]line Счет N : (1)506845 [09:03:23]line 14.05.2024 08:46 [09:03:23]line ПРОДАЖА [09:03:23]line ТРК (МРК, ГНК): 11 [09:03:23]line Вид ГСМ : 2710194210 [09:03:23]line ДТ-К-5 [09:03:23]line 13.000 x 74.70 [09:03:23]line ИТОГ: 971.10 [09:03:23]line Тип оплаты: Талоны: Топливная Карта [09:03:23]line 02750 [09:03:23]line ______________________ [09:03:23]line (подпись) [09:03:23]written 0, free lines is 4095 [09:03:23]Write to MH i2c: 01 00 00 80 15 95 [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: 01 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: 01 07 00 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: 01 07 00 80 15 00 00 00 00 00 0D 0E B7 [09:03:23]RasterBufferAndPrint [09:03:23]line [09:03:23]line [09:03:23]line [09:03:23]line [09:03:23]line [09:03:23]written 0, free lines is 3598 [09:03:23]MH_Cut [09:03:23]Write to MH i2c: D1 01 00 87 15 01 6E [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: D1 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: D1 01 00 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: D1 01 00 87 15 00 6D [09:03:23]Write to MH i2c: 01 00 00 88 15 9D [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]*** Cut start [09:03:23]*** Purtial cut [09:03:23]*** Stage 1: CUTSNS_PIN = 1 [09:03:24]OFD Sender: No OFD packet to send [09:03:24]Read from MH i2c: 01 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: 01 07 00 [09:03:24]MH_I2C_Read... [09:03:24]*** Stop cut motor [09:03:24]*** Cut end [09:03:24]Read from MH i2c: 01 07 00 88 15 00 00 00 00 00 FF 0F B2 [09:03:24]process_action print_text done [09:03:24]requested_data is exist [09:03:24]produce_requested_data [09:03:24]requested_item fm.sn is exist - process it [09:03:24]wFMCommunicate request_size=4 [09:03:24]MH_SAM_APDU [09:03:24]CAPDU: 80 11 00 00 [09:03:24]Write to MH i2c: E2 08 00 89 15 80 11 00 00 00 00 00 00 18 [09:03:24]Write i2c OK [09:03:24]MH_I2C_Read... [09:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:24]Read from MH i2c: E2 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: E2 17 00 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: E2 17 00 89 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6E [09:03: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:03:24]wFMCommunicate OK [09:03:24]requested_item fd.num is exist - process it [09:03:24]SAM_PROTO_GetFieldsCounters [09:03:24]wFMCommunicate request_size=4 [09:03:24]MH_SAM_APDU [09:03:24]CAPDU: 80 13 00 00 [09:03:24]Write to MH i2c: E2 08 00 8A 15 80 13 00 00 00 00 00 00 1B [09:03:24]Write i2c OK [09:03:24]MH_I2C_Read... [09:03:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:24]Read from MH i2c: E2 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: E2 62 00 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: E2 62 00 8A 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 C7 05 01 00 0E 04 04 00 63 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 B4 [09:03: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 C7 05 01 00 0E 04 04 00 63 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:03:24]wFMCommunicate OK [09:03:24]SAM_PROTO_GetFieldsCounters done [09:03:24]requested_item shift.num is exist - process it [09:03:24]requested_item shift.opened is exist - process it [09:03:24]req_shift_opened [09:03:24]FM_GetShiftState [09:03:24]SAM_PROTO_GetShiftState [09:03:24]wFMCommunicate request_size=4 [09:03:24]MH_SAM_APDU [09:03:24]CAPDU: 80 13 01 00 [09:03:24]Write to MH i2c: E2 08 00 8B 15 80 13 01 00 00 00 00 00 1D [09:03:24]Write i2c OK [09:03:24]MH_I2C_Read... [09:03:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:24]Read from MH i2c: E2 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: E2 0E 00 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: E2 0E 00 8B 15 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 E5 [09:03:24]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:03:24]wFMCommunicate OK [09:03:24]SAM_PROTO_GetShiftState done [09:03:24]FM_GetShiftState done [09:03:24]req_shift_opened done [09:03:24]requested_item shift.open_date is exist - process it [09:03:24]req_shift_open_date [09:03:24]req_shift_open_date done [09:03:24]produce_requested_data done [09:03:24]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67015,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:03:24]process_action_free print_text [09:03:24]json_value_free [09:03:24]json_value_free done [09:03:24]process_json_proto returns [09:03:24]Send response to host [09:03:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67015,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:03:24]free response buf [09:03:24]execute_script done [09:03:24]execute_script returns [09:03:24]free content buf [09:03:24]Sock 9.Close socket [09:03:24]Sock 9.Thread stoped [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:28]accept exits with 8 [09:04:28]New connection [09:04:28]New thread 3066760548 created [09:04:28]Thread 3066617188 joined [09:04:28]Waiting for new connection... [09:04:28] Sock 8.Parse request [09:04:28]Sock 8.Check first char [09:04:28]Sock 8.First char is OK [09:04:28]request: POST /json_proto HTTP/1.0 [09:04:28]Method: POST [09:04:28]URL: /json_proto [09:04:28]Method is POST - this is cgi request [09:04:28]url: /json_proto [09:04:28]query_string will be loaded in cgi processing [09:04:28]execute_cgi json_proto POST (null) [09:04:28]execute_cgi path=json_proto method=POST [09:04:28]POST find Content-Length [09:04:28]Host: 172.17.41.195:8080 [09:04:28]Content-Length: 1179 [09:04:28]Content-Type: application/json [09:04:28] [09:04:28]POST finish read [09:04:28]Found Content-Length = 1179 [09:04:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506846\u000A14.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 23.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1718.10\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:28]execute_script... [09:04:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506846\u000A14.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 23.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1718.10\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:28]POST & json_proto [09:04:28]process_json_proto [09:04:28]json parsed OK: [09:04:28]protocol is kg_v1.0 [09:04:28]action value=print_text [09:04:28]process_action print_text [09:04:28]cmd_print_text [09:04:28]ExternCall_PrintAddStr [09:04:28]wPrintStart [09:04:28]Write to MH i2c: 01 00 00 8C 15 A1 [09:04:28]Write i2c OK [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: 01 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: 01 07 00 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: 01 07 00 8C 15 00 00 00 00 00 FF 0F B6 [09:04:28]RasterBufferAndPrint [09:04:28]line *****ТОВАРНЫЙ ЧЕК***** [09:04:28]line АЗС-91 [09:04:28]line Партнер нефть [09:04:28]line 02508201610067 [09:04:28]line Кассир : Адишов И. [09:04:28]line Счет N : (1)506846 [09:04:28]line 14.05.2024 08:47 [09:04:28]line ПРОДАЖА [09:04:28]line ТРК (МРК, ГНК): 41 [09:04:28]line Вид ГСМ : 2710194210 [09:04:28]line ДТ-К-5 [09:04:28]line 23.000 x 74.70 [09:04:28]line ИТОГ: 1718.10 [09:04:28]line Тип оплаты: Талоны: Топливная Карта [09:04:28]line 02750 [09:04:28]line ______________________ [09:04:28]line (подпись) [09:04:28]written 0, free lines is 4095 [09:04:28]Write to MH i2c: 01 00 00 A0 15 B5 [09:04:28]Write i2c OK [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: 01 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: 01 07 00 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: 01 07 00 A0 15 00 00 00 00 00 0E 0E D8 [09:04:28]RasterBufferAndPrint [09:04:28]line [09:04:28]line [09:04:28]line [09:04:28]line [09:04:28]line [09:04:28]written 0, free lines is 3599 [09:04:28]MH_Cut [09:04:28]Write to MH i2c: D1 01 00 A7 15 01 8E [09:04:28]Write i2c OK [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: D1 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: D1 01 00 [09:04:28]MH_I2C_Read... [09:04:28]Read from MH i2c: D1 01 00 A7 15 00 8D [09:04:28]Write to MH i2c: 01 00 00 A8 15 BD [09:04:28]Write i2c OK [09:04:28]MH_I2C_Read... [09:04:29]OFD Sender: No OFD packet to send [09:04:29]*** Cut start [09:04:29]*** Purtial cut [09:04:29]*** CUTSNS_PIN = 0 [09:04:29]*** Stage 1: CUTSNS_PIN = 1 [09:04:31]Read from MH i2c: 01 [09:04:31]MH_I2C_Read... [09:04:31]*** Stop cut motor [09:04:31]*** Cut end [09:04:31]Read from MH i2c: 01 07 00 [09:04:31]MH_I2C_Read... [09:04:31]Read from MH i2c: 01 07 00 A8 15 00 00 00 00 00 FF 0F D2 [09:04:31]process_action print_text done [09:04:31]requested_data is exist [09:04:31]produce_requested_data [09:04:31]requested_item fm.sn is exist - process it [09:04:31]wFMCommunicate request_size=4 [09:04:31]MH_SAM_APDU [09:04:31]CAPDU: 80 11 00 00 [09:04:31]Write to MH i2c: E2 08 00 A9 15 80 11 00 00 00 00 00 00 38 [09:04:31]Write i2c OK [09:04:31]MH_I2C_Read... [09:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:31]Read from MH i2c: E2 [09:04:31]MH_I2C_Read... [09:04:31]Read from MH i2c: E2 17 00 [09:04:31]MH_I2C_Read... [09:04:31]Read from MH i2c: E2 17 00 A9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8E [09: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 [09:04:31]wFMCommunicate OK [09:04:31]requested_item fd.num is exist - process it [09:04:31]SAM_PROTO_GetFieldsCounters [09:04:31]wFMCommunicate request_size=4 [09:04:31]MH_SAM_APDU [09:04:31]CAPDU: 80 13 00 00 [09:04:31]Write to MH i2c: E2 08 00 AA 15 80 13 00 00 00 00 00 00 3B [09:04:31]Write i2c OK [09:04:31]MH_I2C_Read... [09:04:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:31]Read from MH i2c: E2 [09:04:31]MH_I2C_Read... [09:04:31]Read from MH i2c: E2 62 00 [09:04:31]MH_I2C_Read... [09:04:31]Read from MH i2c: E2 62 00 AA 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 C7 05 01 00 0E 04 04 00 63 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 D4 [09:04: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 C7 05 01 00 0E 04 04 00 63 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:04:31]wFMCommunicate OK [09:04:31]SAM_PROTO_GetFieldsCounters done [09:04:31]requested_item shift.num is exist - process it [09:04:31]requested_item shift.opened is exist - process it [09:04:31]req_shift_opened [09:04:31]FM_GetShiftState [09:04:31]SAM_PROTO_GetShiftState [09:04:31]wFMCommunicate request_size=4 [09:04:31]MH_SAM_APDU [09:04:31]CAPDU: 80 13 01 00 [09:04:31]Write to MH i2c: E2 08 00 AB 15 80 13 01 00 00 00 00 00 3D [09:04:31]Write i2c OK [09:04:31]MH_I2C_Read... [09:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:31]Read from MH i2c: E2 [09:04:31]MH_I2C_Read... [09:04:31]Read from MH i2c: E2 0E 00 [09:04:31]MH_I2C_Read... [09:04:31]Read from MH i2c: E2 0E 00 AB 15 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 05 [09:04:31]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:04:31]wFMCommunicate OK [09:04:31]SAM_PROTO_GetShiftState done [09:04:31]FM_GetShiftState done [09:04:31]req_shift_opened done [09:04:31]requested_item shift.open_date is exist - process it [09:04:31]req_shift_open_date [09:04:31]req_shift_open_date done [09:04:31]produce_requested_data done [09:04:31]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67015,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:04:31]process_action_free print_text [09:04:31]json_value_free [09:04:31]json_value_free done [09:04:31]process_json_proto returns [09:04:31]Send response to host [09:04:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67015,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:04:31]free response buf [09:04:31]execute_script done [09:04:31]execute_script returns [09:04:31]free content buf [09:04:31]Sock 8.Close socket [09:04:31]Sock 8.Thread stoped [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:05]accept exits with 9 [09:06:05]New connection [09:06:05]New thread 3066617188 created [09:06:05]Thread 3066760548 joined [09:06:05]Waiting for new connection... [09:06:05] Sock 9.Parse request [09:06:05]Sock 9.Check first char [09:06:05]Sock 9.First char is OK [09:06:05]request: POST /json_proto HTTP/1.0 [09:06:05]Method: POST [09:06:05]URL: /json_proto [09:06:05]Method is POST - this is cgi request [09:06:05]url: /json_proto [09:06:05]query_string will be loaded in cgi processing [09:06:05]execute_cgi json_proto POST (null) [09:06:05]execute_cgi path=json_proto method=POST [09:06:05]POST find Content-Length [09:06:05]Host: 172.17.41.195:8080 [09:06:05]Content-Length: 679 [09:06:05]Content-Type: application/json [09:06:05] [09:06:05]POST finish read [09:06:05]Found Content-Length = 679 [09:06:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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:06:05]execute_script... [09:06: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)506847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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:06:05]POST & json_proto [09:06:05]process_json_proto [09:06:05]json parsed OK: [09:06:05]protocol is kg_v1.0 [09:06:05]action value=close_receipt [09:06:05]process_action close_receipt [09:06:05]cmd_close_receipt [09:06:05]MH_GetDate [09:06:05]Write to MH i2c: F0 00 00 AC 15 B0 [09:06:05]Write i2c OK [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: F0 [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: F0 09 00 [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: F0 09 00 AC 15 00 80 29 43 66 FC 21 6F 64 FB [09:06:05]GetLastDocTimeStamp 1715676839 [09:06:05]current date 1715677568 [09:06:05]FM_GetShiftState [09:06:05]SAM_PROTO_GetShiftState [09:06:05]wFMCommunicate request_size=4 [09:06:05]MH_SAM_APDU [09:06:05]CAPDU: 80 13 01 00 [09:06:05]Write to MH i2c: E2 08 00 AD 15 80 13 01 00 00 00 00 00 3F [09:06:05]Write i2c OK [09:06:05]MH_I2C_Read... [09:06:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:05]Read from MH i2c: E2 [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: E2 0E 00 [09:06:05]MH_I2C_Read... [09:06:05]Read from MH i2c: E2 0E 00 AD 15 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 07 [09:06:05]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:06:05]wFMCommunicate OK [09:06:05]SAM_PROTO_GetShiftState done [09:06:05]FM_GetShiftState done [09:06:05]opened in 1715646054 [09:06:05]opened+sec_in_day 1715732454 [09:06:05]quantity*price = 150072 [09:06:05]sum+1 = 150073 [09:06:05]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 СНО: Общий режим Чек 23 14.05.2024 09:06 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67016 ФПД: 7144773344356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T090608&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67016&fm=7144773344356&tin=02508201610067®Number=0000000000091845&sum=150000 [09:06:06]StoreToDocumentArchive [09:06:06]shift 355 fd 67016 [09:06:06]save to /storage/0355/doc_00067016 [09:06:06]save last doc name /storage/0355/doc_00067016 to /storage/kkm_last_doc_name [09:06:06]save OK [09:06:06]Clear old archive folders... [09:06:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:06:06]tlvbuf is 00340740 [09:06:06]SAM_PROTO_ClearQueue [09:06:06]wFMCommunicate request_size=4 [09:06:06]MH_SAM_APDU [09:06:06]CAPDU: 80 09 00 00 [09:06:06]Write to MH i2c: E2 08 00 BA 15 80 09 00 00 00 00 00 00 41 [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:06]Read from MH i2c: E2 03 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 03 00 BA 15 00 90 00 43 [09:06:06]RAPDU: 90 00 [09:06:06]wFMCommunicate OK [09:06:06]SAM_PROTO_ClearQueue done [09:06:06]KKMCreateOFDPacket [09:06:06]OFDProtocolAddRootSTLVToBuf [09:06:06]FM_MakeSignedData [09:06:06]FM_MakeSignedData [09:06:06]SAM_PROTO_SignData [09:06:06]wFMCommunicate request_size=4 [09:06:06]MH_SAM_APDU [09:06:06]CAPDU: 80 0D 01 02 [09:06:06]Write to MH i2c: E2 08 00 BB 15 80 0D 01 02 00 00 00 00 49 [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 03 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 03 00 BB 15 00 90 00 44 [09:06:06]RAPDU: 90 00 [09:06:06]wFMCommunicate OK [09:06:06]wFMCommunicate request_size=255 [09:06:06]MH_SAM_APDU [09:06:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 17 00 00 00 F4 03 04 00 80 29 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C8 05 01 00 35 04 06 00 06 7F 85 AD [09:06:06]Write to MH i2c: E2 02 01 BC 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 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 17 00 00 00 F4 03 04 00 80 29 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C8 05 01 00 35 04 06 00 06 7F 85 AD 00 00 BE [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 03 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 03 00 BC 15 00 90 00 45 [09:06:06]RAPDU: 90 00 [09:06:06]wFMCommunicate OK [09:06:06]wFMCommunicate request_size=7 [09:06:06]MH_SAM_APDU [09:06:06]CAPDU: 80 0D 02 02 02 5C 64 [09:06:06]Write to MH i2c: E2 0A 00 BD 15 80 0D 02 02 02 00 5C 64 00 00 10 [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 03 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 03 00 BD 15 00 90 00 46 [09:06:06]RAPDU: 90 00 [09:06:06]wFMCommunicate OK [09:06:06]wFMCommunicate request_size=4 [09:06:06]MH_SAM_APDU [09:06:06]CAPDU: 80 0D 03 02 [09:06:06]Write to MH i2c: E2 08 00 BE 15 80 0D 03 02 00 00 00 00 4E [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 0B 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 0B 00 BE 15 00 12 01 D0 D5 56 AF AC F0 90 00 A8 [09:06:06]RAPDU: 12 01 D0 D5 56 AF AC F0 90 00 [09:06:06]wFMCommunicate OK [09:06:06]SAM_PROTO_SignData done [09:06:06]FM_MakeSignedData done [09:06:06]CreateOFDProtocolMessage [09:06:06]wFMCommunicate request_size=4 [09:06:06]MH_SAM_APDU [09:06:06]CAPDU: 80 11 00 00 [09:06:06]Write to MH i2c: E2 08 00 BF 15 80 11 00 00 00 00 00 00 4E [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:06]Read from MH i2c: E2 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 17 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: E2 17 00 BF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A4 [09:06: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:06:06]wFMCommunicate OK [09:06:06]CreateOFDProtocolMessage done [09:06:06]OFDSenderStorePacket 67016 [09:06:06]StoreOFDPacket docnum=67016 [09:06:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 F9 CB 04 01 52 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 17 00 00 00 F4 03 04 00 80 29 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C8 05 01 00 35 04 06 00 06 7F 85 AD 5C 64 12 01 D0 D5 56 AF AC F0 [09:06:06]CheckFolder [09:06:06]dirname=/storage/ofd_packets [09:06:06]CheckFolder done [09:06:06]ProducePacketName [09:06:06]name=ofd_packets/00067016 [09:06:06]NVStorageSaveData ofd_packets/00067016 [09:06:06]File name is /storage/ofd_packets/00067016 [09:06:06]Write 298 bytes [09:06:06]NVStorageSaveData done [09:06:06]OFDSenderStorePacket done [09:06:06]KKMCreateOFDPacket done [09:06:06]NVStorageSaveData kkm_last_timestamp [09:06:06]File name is /storage/kkm_last_timestamp [09:06:06]Write 4 bytes [09:06:06]NVStorageSaveData done [09:06:06]ExternCall_PrintAddStr [09:06:06]wPrintStart [09:06:06]Write to MH i2c: 01 00 00 C0 15 D5 [09:06:06]Write i2c OK [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: 01 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: 01 07 00 [09:06:06]MH_I2C_Read... [09:06:06]Read from MH i2c: 01 07 00 C0 15 00 00 00 00 00 FF 0F EA [09:06:06]RasterBufferAndPrint [09:06:06]line Счет N : (1)506847 [09:06:06]line ИНН: 02508201610067 [09:06:06]line Контрольно-Кассовый Чек [09:06:06]line ПРОДАЖА [09:06:06]line ТРК (МРК, ГНК) : 21 [09:06:06]line Товар: 2710194210 [09:06:06]line ДТ-К-5 [09:06:06]line 20.090 * 74.70 [09:06:06]line = 1500.72 [09:06:06]line НДС 12% НСП 1% [09:06:06]line > о реализуемом товаре [09:06:06]line ОКРУГЛЕНИЕ: -0.72 [09:06:06]line ИТОГО: 1500.00 [09:06:06]line Внесено: 1500.00 [09:06:06]line СДАЧА: 0.00 [09:06:06]line НСП 1% : 13.28 [09:06:06]line НДС 12% : 159.37 [09:06:06]line Наличными: 1500.00 [09:06:06]line Безнал.: 0.00 [09:06:06]line Место: АЗС № 91 "Партнер Нефть" [09:06:06]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:06:06]line СНО: Общий режим [09:06:06]line Чек 23 14.05.2024 09:06 [09:06:06]line Смена: 355 ФФД: 1.0 [09:06:06]line ЗНМ: 0300000119 [09:06:06]line РНМ: 0000000000091845 [09:06:06]line Версия ККМ: 001 [09:06:06]line ФМ: 0000000000871829 [09:06:06]line ФД: 67016 [09:06:06]line ФПД: 7144773344356 [09:06:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T090608&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67016&fm=7144773344356&tin=02508201610067®Number=0000000000091845&sum=150000 [09:06:07]OFD Sender: Processing packet 67016 [packets to send 35, broken 34] [09:06:07]ProducePacketName [09:06:07]name=ofd_packets/00067016 [09:06:07]OFD Sender: To server: pG, [09:06:07]CommunicateWithHost lk.salyk.kg:30040 [09:06:07]ConnectInit lk.salyk.kg [09:06:07]written 0, free lines is 4095 [09:06:07]Connected sock=10 [09:06:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 F9 CB 04 01 52 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 17 00 00 00 F4 03 04 00 80 29 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C8 05 01 00 35 04 06 00 06 7F 85 AD 5C 64 12 01 D0 D5 56 AF AC F0 [09:06: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 75 D8 47 00 75 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 C8 05 01 00 F4 03 04 00 61 D1 42 66 B6 04 01 00 00 77 51 4D 97 61 5F A0 04 [09:06:07]CommunicateWithHost err = 0 [09:06:07]CheckOFDResponse [09:06:07]1017 (14) - 77093643461234 [09:06:07]1041 (16) - 0000000000871829 [09:06:07]1040 (4) - 67016 [09:06:07]1012 (4) - 14.05.2024 02:50 [09:06:07]1206 (1) - 0 [09:06:07]OFD Sender: Remove packet 67016 [09:06:07]ProducePacketName [09:06:07]name=ofd_packets/00067016 [09:06:07]NVStorageDeleteData [09:06:07]Write to MH i2c: 01 00 00 EA 15 FF [09:06:07]Write i2c OK [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: 01 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: 01 07 00 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: 01 07 00 EA 15 00 00 00 00 00 CC 0C DE [09:06:07]RasterBufferAndPrint [09:06:07]line [09:06:07]line [09:06:07]line [09:06:07]line [09:06:07]line [09:06:07]written 0, free lines is 3282 [09:06:07]MH_Cut [09:06:07]Write to MH i2c: D1 01 00 F1 15 01 D8 [09:06:07]Write i2c OK [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: D1 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: D1 01 00 [09:06:07]MH_I2C_Read... [09:06:07]Read from MH i2c: D1 01 00 F1 15 00 D7 [09:06:07]Write to MH i2c: 01 00 00 F2 15 07 [09:06:07]Write i2c OK [09:06:07]MH_I2C_Read... [09:06:07]OFD Sender: No OFD packet to send [09:06:08]*** Cut start [09:06:08]*** Purtial cut [09:06:08]*** Stage 1: CUTSNS_PIN = 1 [09:06:08]Read from MH i2c: 01 [09:06:08]MH_I2C_Read... [09:06:08]*** Stop cut motor [09:06:08]*** Cut end [09:06:08]Read from MH i2c: 01 07 00 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: 01 07 00 F2 15 00 00 00 00 00 FF 0F 1C [09:06:08]process_action close_receipt done [09:06:08]requested_data is exist [09:06:08]produce_requested_data [09:06:08]requested_item fm.sn is exist - process it [09:06:08]wFMCommunicate request_size=4 [09:06:08]MH_SAM_APDU [09:06:08]CAPDU: 80 11 00 00 [09:06:08]Write to MH i2c: E2 08 00 F3 15 80 11 00 00 00 00 00 00 82 [09:06:08]Write i2c OK [09:06:08]MH_I2C_Read... [09:06:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:08]Read from MH i2c: E2 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 17 00 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 17 00 F3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D8 [09:06:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:06:08]wFMCommunicate OK [09:06:08]requested_item fd.num is exist - process it [09:06:08]SAM_PROTO_GetFieldsCounters [09:06:08]wFMCommunicate request_size=4 [09:06:08]MH_SAM_APDU [09:06:08]CAPDU: 80 13 00 00 [09:06:08]Write to MH i2c: E2 08 00 F4 15 80 13 00 00 00 00 00 00 85 [09:06:08]Write i2c OK [09:06:08]MH_I2C_Read... [09:06:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:08]Read from MH i2c: E2 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 62 00 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 62 00 F4 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 C8 05 01 00 0E 04 04 00 63 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 22 [09:06: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 C8 05 01 00 0E 04 04 00 63 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:06:08]wFMCommunicate OK [09:06:08]SAM_PROTO_GetFieldsCounters done [09:06:08]requested_item shift.num is exist - process it [09:06:08]requested_item shift.opened is exist - process it [09:06:08]req_shift_opened [09:06:08]FM_GetShiftState [09:06:08]SAM_PROTO_GetShiftState [09:06:08]wFMCommunicate request_size=4 [09:06:08]MH_SAM_APDU [09:06:08]CAPDU: 80 13 01 00 [09:06:08]Write to MH i2c: E2 08 00 F5 15 80 13 01 00 00 00 00 00 87 [09:06:08]Write i2c OK [09:06:08]MH_I2C_Read... [09:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:08]Read from MH i2c: E2 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 0E 00 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 0E 00 F5 15 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 4F [09:06:08]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:06:08]wFMCommunicate OK [09:06:08]SAM_PROTO_GetShiftState done [09:06:08]FM_GetShiftState done [09:06:08]req_shift_opened done [09:06:08]requested_item shift.open_date is exist - process it [09:06:08]req_shift_open_date [09:06:08]req_shift_open_date done [09:06:08]produce_requested_data done [09:06:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67016,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:06:08]process_action_free close_receipt [09:06:08]json_value_free [09:06:08]json_value_free done [09:06:08]process_json_proto returns [09:06:08]Send response to host [09:06:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67016,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:06:08]free response buf [09:06:08]execute_script done [09:06:08]execute_script returns [09:06:08]free content buf [09:06:08]Sock 9.Close socket [09:06:08]Sock 9.Thread stoped [09:06:09]accept exits with 8 [09:06:09]New connection [09:06:09]New thread 3066760548 created [09:06:09]Thread 3066617188 joined [09:06:09]Waiting for new connection... [09:06:09] Sock 8.Parse request [09:06:09]Sock 8.Check first char [09:06:09]Sock 8.First char is OK [09:06:09]request: POST /json_proto HTTP/1.0 [09:06:09]Method: POST [09:06:09]URL: /json_proto [09:06:09]Method is POST - this is cgi request [09:06:09]url: /json_proto [09:06:09]query_string will be loaded in cgi processing [09:06:09]execute_cgi json_proto POST (null) [09:06:09]execute_cgi path=json_proto method=POST [09:06:09]POST find Content-Length [09:06:09]Host: 172.17.41.195:8080 [09:06:09]Content-Length: 677 [09:06:09]Content-Type: application/json [09:06:09] [09:06:09]POST finish read [09:06:09]Found Content-Length = 677 [09:06:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506848", "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" ] } } [09:06:09]execute_script... [09:06: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)506848", "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" ] } } [09:06:09]POST & json_proto [09:06:09]process_json_proto [09:06:09]json parsed OK: [09:06:09]protocol is kg_v1.0 [09:06:09]action value=close_receipt [09:06:09]process_action close_receipt [09:06:09]cmd_close_receipt [09:06:09]MH_GetDate [09:06:09]Write to MH i2c: F0 00 00 F6 15 FA [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: F0 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: F0 09 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: F0 09 00 F6 15 00 84 29 43 66 FC 21 6F 64 49 [09:06:09]GetLastDocTimeStamp 1715677568 [09:06:09]current date 1715677572 [09:06:09]FM_GetShiftState [09:06:09]SAM_PROTO_GetShiftState [09:06:09]wFMCommunicate request_size=4 [09:06:09]MH_SAM_APDU [09:06:09]CAPDU: 80 13 01 00 [09:06:09]Write to MH i2c: E2 08 00 F7 15 80 13 01 00 00 00 00 00 89 [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:09]Read from MH i2c: E2 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 0E 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 0E 00 F7 15 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 51 [09:06:09]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:06:09]wFMCommunicate OK [09:06:09]SAM_PROTO_GetShiftState done [09:06:09]FM_GetShiftState done [09:06:09]opened in 1715646054 [09:06:09]opened+sec_in_day 1715732454 [09:06:09]quantity*price = 50033 [09:06:09]sum+1 = 50034 [09:06:09]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 СНО: Общий режим Чек 24 14.05.2024 09:06 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67017 ФПД: 261057291703573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T090612&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67017&fm=261057291703573&tin=02508201610067®Number=0000000000091845&sum=50000 [09:06:10]StoreToDocumentArchive [09:06:10]shift 355 fd 67017 [09:06:10]save to /storage/0355/doc_00067017 [09:06:10]save last doc name /storage/0355/doc_00067017 to /storage/kkm_last_doc_name [09:06:10]save OK [09:06:10]Clear old archive folders... [09:06:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:10]tlvbuf is 0035CE00 [09:06:10]SAM_PROTO_ClearQueue [09:06:10]wFMCommunicate request_size=4 [09:06:10]MH_SAM_APDU [09:06:10]CAPDU: 80 09 00 00 [09:06:10]Write to MH i2c: E2 08 00 04 16 80 09 00 00 00 00 00 00 8C [09:06:10]Write i2c OK [09:06:10]MH_I2C_Read... [09:06:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:10]Read from MH i2c: E2 [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: E2 03 00 [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: E2 03 00 04 16 00 90 00 8E [09:06:10]RAPDU: 90 00 [09:06:10]wFMCommunicate OK [09:06:10]SAM_PROTO_ClearQueue done [09:06:10]KKMCreateOFDPacket [09:06:10]OFDProtocolAddRootSTLVToBuf [09:06:10]FM_MakeSignedData [09:06:10]FM_MakeSignedData [09:06:10]SAM_PROTO_SignData [09:06:10]wFMCommunicate request_size=4 [09:06:10]MH_SAM_APDU [09:06:10]CAPDU: 80 0D 01 02 [09:06:10]Write to MH i2c: E2 08 00 05 16 80 0D 01 02 00 00 00 00 94 [09:06:10]Write i2c OK [09:06:10]MH_I2C_Read... [09:06:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:10]Read from MH i2c: E2 [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: E2 03 00 [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: E2 03 00 05 16 00 90 00 8F [09:06:10]RAPDU: 90 00 [09:06:10]wFMCommunicate OK [09:06:10]wFMCommunicate request_size=255 [09:06:10]MH_SAM_APDU [09:06: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 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 18 00 00 00 F4 03 04 00 84 29 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C9 05 01 00 35 04 06 00 ED [09:06:10]Write to MH i2c: E2 02 01 06 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 18 00 00 00 F4 03 04 00 84 29 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C9 05 01 00 35 04 06 00 ED 00 00 AD [09:06:10]Write i2c OK [09:06:10]MH_I2C_Read... [09:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:11]Read from MH i2c: E2 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: E2 03 00 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: E2 03 00 06 16 00 90 00 90 [09:06:11]RAPDU: 90 00 [09:06:11]wFMCommunicate OK [09:06:11]wFMCommunicate request_size=10 [09:06:11]MH_SAM_APDU [09:06:11]CAPDU: 80 0D 02 02 05 6E 23 23 55 15 [09:06:11]Write to MH i2c: E2 0D 00 07 16 80 0D 02 02 05 00 6E 23 23 55 15 00 00 BF [09:06:11]Write i2c OK [09:06:11]MH_I2C_Read... [09:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:11]Read from MH i2c: E2 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: E2 03 00 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: E2 03 00 07 16 00 90 00 91 [09:06:11]RAPDU: 90 00 [09:06:11]wFMCommunicate OK [09:06:11]wFMCommunicate request_size=4 [09:06:11]MH_SAM_APDU [09:06:11]CAPDU: 80 0D 03 02 [09:06:11]Write to MH i2c: E2 08 00 08 16 80 0D 03 02 00 00 00 00 99 [09:06:11]Write i2c OK [09:06:11]MH_I2C_Read... [09:06:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:11]Read from MH i2c: E2 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: E2 0B 00 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: E2 0B 00 08 16 00 33 2E DF AF 73 55 29 D1 90 00 4B [09:06:11]RAPDU: 33 2E DF AF 73 55 29 D1 90 00 [09:06:11]wFMCommunicate OK [09:06:11]SAM_PROTO_SignData done [09:06:11]FM_MakeSignedData done [09:06:11]CreateOFDProtocolMessage [09:06:11]wFMCommunicate request_size=4 [09:06:11]MH_SAM_APDU [09:06:11]CAPDU: 80 11 00 00 [09:06:11]Write to MH i2c: E2 08 00 09 16 80 11 00 00 00 00 00 00 99 [09:06:11]Write i2c OK [09:06:11]MH_I2C_Read... [09:06:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:11]Read from MH i2c: E2 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: E2 17 00 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: E2 17 00 09 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EF [09:06:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:06:11]wFMCommunicate OK [09:06:11]CreateOFDProtocolMessage done [09:06:11]OFDSenderStorePacket 67017 [09:06:11]StoreOFDPacket docnum=67017 [09:06: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 3D B7 07 01 87 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 84 29 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C9 05 01 00 35 04 06 00 ED 6E 23 23 55 15 33 2E DF AF 73 55 29 D1 [09:06:11]CheckFolder [09:06:11]dirname=/storage/ofd_packets [09:06:11]CheckFolder done [09:06:11]ProducePacketName [09:06:11]name=ofd_packets/00067017 [09:06:11]NVStorageSaveData ofd_packets/00067017 [09:06:11]File name is /storage/ofd_packets/00067017 [09:06:11]Write 301 bytes [09:06:11]NVStorageSaveData done [09:06:11]OFDSenderStorePacket done [09:06:11]KKMCreateOFDPacket done [09:06:11]NVStorageSaveData kkm_last_timestamp [09:06:11]File name is /storage/kkm_last_timestamp [09:06:11]Write 4 bytes [09:06:11]NVStorageSaveData done [09:06:11]ExternCall_PrintAddStr [09:06:11]wPrintStart [09:06:11]Write to MH i2c: 01 00 00 0A 16 20 [09:06:11]Write i2c OK [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: 01 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: 01 07 00 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: 01 07 00 0A 16 00 00 00 00 00 FF 0F 35 [09:06:11]RasterBufferAndPrint [09:06:11]line Счет N : (1)506848 [09:06:11]line ИНН: 02508201610067 [09:06:11]line Контрольно-Кассовый Чек [09:06:11]line ПРОДАЖА [09:06:11]line ТРК (МРК, ГНК) : 33 [09:06:11]line Товар: 2710124130 [09:06:11]line Аи-92-К-5 [09:06:11]line 7.490 * 66.80 [09:06:11]line = 500.33 [09:06:11]line НДС 12% НСП 1% [09:06:11]line > о реализуемом товаре [09:06:11]line ОКРУГЛЕНИЕ: -0.33 [09:06:11]line ИТОГО: 500.00 [09:06:11]line Внесено: 500.00 [09:06:11]line СДАЧА: 0.00 [09:06:11]line НСП 1% : 4.43 [09:06:11]line НДС 12% : 53.13 [09:06:11]line Наличными: 500.00 [09:06:11]line Безнал.: 0.00 [09:06:11]line Место: АЗС № 91 "Партнер Нефть" [09:06:11]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:06:11]line СНО: Общий режим [09:06:11]line Чек 24 14.05.2024 09:06 [09:06:11]line Смена: 355 ФФД: 1.0 [09:06:11]line ЗНМ: 0300000119 [09:06:11]line РНМ: 0000000000091845 [09:06:11]line Версия ККМ: 001 [09:06:11]line ФМ: 0000000000871829 [09:06:11]line ФД: 67017 [09:06:11]line ФПД: 261057291703573 [09:06:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T090612&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67017&fm=261057291703573&tin=02508201610067®Number=0000000000091845&sum=50000 [09:06:11]written 0, free lines is 4095 [09:06:11]OFD Sender: Processing packet 67017 [packets to send 35, broken 34] [09:06:11]ProducePacketName [09:06:11]name=ofd_packets/00067017 [09:06:11]OFD Sender: To server: pG, [09:06:11]CommunicateWithHost lk.salyk.kg:30040 [09:06:11]ConnectInit lk.salyk.kg [09:06:11]Connected sock=10 [09:06: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 3D B7 07 01 87 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 84 29 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 C9 05 01 00 35 04 06 00 ED 6E 23 23 55 15 33 2E DF AF 73 55 29 D1 [09:06: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 F2 96 47 00 1D 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 C9 05 01 00 F4 03 04 00 65 D1 42 66 B6 04 01 00 00 79 82 D7 21 6F 38 9C 4D [09:06:11]CommunicateWithHost err = 0 [09:06:11]CheckOFDResponse [09:06:11]1017 (14) - 77093643461234 [09:06:11]1041 (16) - 0000000000871829 [09:06:11]1040 (4) - 67017 [09:06:11]1012 (4) - 14.05.2024 02:50 [09:06:11]1206 (1) - 0 [09:06:11]OFD Sender: Remove packet 67017 [09:06:11]ProducePacketName [09:06:11]name=ofd_packets/00067017 [09:06:11]NVStorageDeleteData [09:06:11]Write to MH i2c: 01 00 00 34 16 4A [09:06:11]Write i2c OK [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: 01 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: 01 07 00 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: 01 07 00 34 16 00 00 00 00 00 CE 0C 2B [09:06:11]RasterBufferAndPrint [09:06:11]line [09:06:11]line [09:06:11]line [09:06:11]line [09:06:11]line [09:06:11]written 0, free lines is 3293 [09:06:11]MH_Cut [09:06:11]Write to MH i2c: D1 01 00 3B 16 01 23 [09:06:11]Write i2c OK [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: D1 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: D1 01 00 [09:06:11]MH_I2C_Read... [09:06:11]Read from MH i2c: D1 01 00 3B 16 00 22 [09:06:11]Write to MH i2c: 01 00 00 3C 16 52 [09:06:11]Write i2c OK [09:06:11]MH_I2C_Read... [09:06:12]OFD Sender: No OFD packet to send [09:06:12]*** Cut start [09:06:12]*** Purtial cut [09:06:12]*** CUTSNS_PIN = 0 [09:06:12]*** Stage 1: CUTSNS_PIN = 1 [09:06:14]Read from MH i2c: 01 [09:06:14]MH_I2C_Read... [09:06:14]*** Stop cut motor [09:06:14]*** Cut end [09:06:14]Read from MH i2c: 01 07 00 [09:06:14]MH_I2C_Read... [09:06:14]Read from MH i2c: 01 07 00 3C 16 00 00 00 00 00 FF 0F 67 [09:06:14]process_action close_receipt done [09:06:14]requested_data is exist [09:06:14]produce_requested_data [09:06:14]requested_item fm.sn is exist - process it [09:06:14]wFMCommunicate request_size=4 [09:06:14]MH_SAM_APDU [09:06:14]CAPDU: 80 11 00 00 [09:06:14]Write to MH i2c: E2 08 00 3D 16 80 11 00 00 00 00 00 00 CD [09:06:14]Write i2c OK [09:06:14]MH_I2C_Read... [09:06:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:14]Read from MH i2c: E2 [09:06:14]MH_I2C_Read... [09:06:14]Read from MH i2c: E2 17 00 [09:06:14]MH_I2C_Read... [09:06:14]Read from MH i2c: E2 17 00 3D 16 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:06: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:06:14]wFMCommunicate OK [09:06:14]requested_item fd.num is exist - process it [09:06:14]SAM_PROTO_GetFieldsCounters [09:06:14]wFMCommunicate request_size=4 [09:06:14]MH_SAM_APDU [09:06:14]CAPDU: 80 13 00 00 [09:06:14]Write to MH i2c: E2 08 00 3E 16 80 13 00 00 00 00 00 00 D0 [09:06:14]Write i2c OK [09:06:14]MH_I2C_Read... [09:06:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:14]Read from MH i2c: E2 [09:06:14]MH_I2C_Read... [09:06:14]Read from MH i2c: E2 62 00 [09:06:14]MH_I2C_Read... [09:06:14]Read from MH i2c: E2 62 00 3E 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 C9 05 01 00 0E 04 04 00 63 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 71 [09:06: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 C9 05 01 00 0E 04 04 00 63 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:06:14]wFMCommunicate OK [09:06:14]SAM_PROTO_GetFieldsCounters done [09:06:14]requested_item shift.num is exist - process it [09:06:14]requested_item shift.opened is exist - process it [09:06:14]req_shift_opened [09:06:14]FM_GetShiftState [09:06:14]SAM_PROTO_GetShiftState [09:06:14]wFMCommunicate request_size=4 [09:06:14]MH_SAM_APDU [09:06:14]CAPDU: 80 13 01 00 [09:06:14]Write to MH i2c: E2 08 00 3F 16 80 13 01 00 00 00 00 00 D2 [09:06:14]Write i2c OK [09:06:14]MH_I2C_Read... [09:06:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:14]Read from MH i2c: E2 [09:06:14]MH_I2C_Read... [09:06:14]Read from MH i2c: E2 0E 00 [09:06:14]MH_I2C_Read... [09:06:14]Read from MH i2c: E2 0E 00 3F 16 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 9A [09:06:14]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:06:14]wFMCommunicate OK [09:06:14]SAM_PROTO_GetShiftState done [09:06:14]FM_GetShiftState done [09:06:14]req_shift_opened done [09:06:14]requested_item shift.open_date is exist - process it [09:06:14]req_shift_open_date [09:06:14]req_shift_open_date done [09:06:14]produce_requested_data done [09:06:14]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67017,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:06:14]process_action_free close_receipt [09:06:14]json_value_free [09:06:14]json_value_free done [09:06:14]process_json_proto returns [09:06:14]Send response to host [09:06:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67017,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:06:14]free response buf [09:06:14]execute_script done [09:06:14]execute_script returns [09:06:14]free content buf [09:06:14]Sock 8.Close socket [09:06:14]Sock 8.Thread stoped [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:27]OFD Sender: No OFD packet to send [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:21]accept exits with 9 [09:08:21]New connection [09:08:21]New thread 3066617188 created [09:08:21]Thread 3066760548 joined [09:08:21]Waiting for new connection... [09:08:21] Sock 9.Parse request [09:08:21]Sock 9.Check first char [09:08:21]Sock 9.First char is OK [09:08:21]request: POST /json_proto HTTP/1.0 [09:08:21]Method: POST [09:08:21]URL: /json_proto [09:08:21]Method is POST - this is cgi request [09:08:21]url: /json_proto [09:08:21]query_string will be loaded in cgi processing [09:08:21]execute_cgi json_proto POST (null) [09:08:21]execute_cgi path=json_proto method=POST [09:08:21]POST find Content-Length [09:08:21]Host: 172.17.41.195:8080 [09:08:21]Content-Length: 682 [09:08:21]Content-Type: application/json [09:08:21] [09:08:21]POST finish read [09:08:21]Found Content-Length = 682 [09:08:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506849", "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" : 19.470, "sum" : 1300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:21]execute_script... [09:08: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)506849", "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" : 19.470, "sum" : 1300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:21]POST & json_proto [09:08:21]process_json_proto [09:08:21]json parsed OK: [09:08:21]protocol is kg_v1.0 [09:08:21]action value=close_receipt [09:08:21]process_action close_receipt [09:08:21]cmd_close_receipt [09:08:21]MH_GetDate [09:08:21]Write to MH i2c: F0 00 00 40 16 45 [09:08:21]Write i2c OK [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: F0 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: F0 09 00 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: F0 09 00 40 16 00 09 2A 43 66 FC 21 6F 64 1A [09:08:21]GetLastDocTimeStamp 1715677572 [09:08:21]current date 1715677705 [09:08:21]FM_GetShiftState [09:08:21]SAM_PROTO_GetShiftState [09:08:21]wFMCommunicate request_size=4 [09:08:21]MH_SAM_APDU [09:08:21]CAPDU: 80 13 01 00 [09:08:21]Write to MH i2c: E2 08 00 41 16 80 13 01 00 00 00 00 00 D4 [09:08:21]Write i2c OK [09:08:21]MH_I2C_Read... [09:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:21]Read from MH i2c: E2 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: E2 0E 00 [09:08:21]MH_I2C_Read... [09:08:21]Read from MH i2c: E2 0E 00 41 16 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 9C [09:08:21]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:08:21]wFMCommunicate OK [09:08:21]SAM_PROTO_GetShiftState done [09:08:21]FM_GetShiftState done [09:08:21]opened in 1715646054 [09:08:21]opened+sec_in_day 1715732454 [09:08:21]quantity*price = 130059 [09:08:21]sum+1 = 130061 [09:08:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.12 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 25 14.05.2024 09:08 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67018 ФПД: 261194087844410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T090825&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67018&fm=261194087844410&tin=02508201610067®Number=0000000000091845&sum=130000 [09:08:22]StoreToDocumentArchive [09:08:22]shift 355 fd 67018 [09:08:22]save to /storage/0355/doc_00067018 [09:08:22]save last doc name /storage/0355/doc_00067018 to /storage/kkm_last_doc_name [09:08:22]save OK [09:08:22]Clear old archive folders... [09:08:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:22]tlvbuf is 00340DB0 [09:08:22]SAM_PROTO_ClearQueue [09:08:22]wFMCommunicate request_size=4 [09:08:22]MH_SAM_APDU [09:08:22]CAPDU: 80 09 00 00 [09:08:22]Write to MH i2c: E2 08 00 4E 16 80 09 00 00 00 00 00 00 D6 [09:08:22]Write i2c OK [09:08:22]MH_I2C_Read... [09:08:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:22]Read from MH i2c: E2 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 03 00 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 03 00 4E 16 00 90 00 D8 [09:08:22]RAPDU: 90 00 [09:08:22]wFMCommunicate OK [09:08:22]SAM_PROTO_ClearQueue done [09:08:22]KKMCreateOFDPacket [09:08:22]OFDProtocolAddRootSTLVToBuf [09:08:22]FM_MakeSignedData [09:08:22]FM_MakeSignedData [09:08:22]SAM_PROTO_SignData [09:08:22]wFMCommunicate request_size=4 [09:08:22]MH_SAM_APDU [09:08:22]CAPDU: 80 0D 01 02 [09:08:22]Write to MH i2c: E2 08 00 4F 16 80 0D 01 02 00 00 00 00 DE [09:08:22]Write i2c OK [09:08:22]MH_I2C_Read... [09:08:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:22]Read from MH i2c: E2 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 03 00 [09:08:22]MH_I2C_Read... [09:08:22]Read from MH i2c: E2 03 00 4F 16 00 90 00 D9 [09:08:22]RAPDU: 90 00 [09:08:22]wFMCommunicate OK [09:08:22]wFMCommunicate request_size=255 [09:08:22]MH_SAM_APDU [09:08:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 4C 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 0C FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 09 2A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CA 05 01 00 35 04 06 00 ED [09:08:22]Write to MH i2c: E2 02 01 50 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 0E 4C 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 0C FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 09 2A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CA 05 01 00 35 04 06 00 ED 00 00 DC [09:08:22]Write i2c OK [09:08:22]MH_I2C_Read... [09:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:23]Read from MH i2c: E2 [09:08:23]MH_I2C_Read... [09:08:23]Read from MH i2c: E2 03 00 [09:08:23]MH_I2C_Read... [09:08:23]Read from MH i2c: E2 03 00 50 16 00 90 00 DA [09:08:23]RAPDU: 90 00 [09:08:23]wFMCommunicate OK [09:08:23]wFMCommunicate request_size=10 [09:08:23]MH_SAM_APDU [09:08:23]CAPDU: 80 0D 02 02 05 8D FC D2 CA 3A [09:08:23]Write to MH i2c: E2 0D 00 51 16 80 0D 02 02 05 00 8D FC D2 CA 3A 00 00 4A [09:08:23]Write i2c OK [09:08:23]MH_I2C_Read... [09:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:23]Read from MH i2c: E2 [09:08:23]MH_I2C_Read... [09:08:23]Read from MH i2c: E2 03 00 [09:08:23]MH_I2C_Read... [09:08:23]Read from MH i2c: E2 03 00 51 16 00 90 00 DB [09:08:23]RAPDU: 90 00 [09:08:23]wFMCommunicate OK [09:08:23]wFMCommunicate request_size=4 [09:08:23]MH_SAM_APDU [09:08:23]CAPDU: 80 0D 03 02 [09:08:23]Write to MH i2c: E2 08 00 52 16 80 0D 03 02 00 00 00 00 E3 [09:08:23]Write i2c OK [09:08:23]MH_I2C_Read... [09:08:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:23]Read from MH i2c: E2 [09:08:23]MH_I2C_Read... [09:08:23]Read from MH i2c: E2 0B 00 [09:08:23]MH_I2C_Read... [09:08:23]Read from MH i2c: E2 0B 00 52 16 00 C0 AB DA 15 12 6A 88 9C 90 00 DE [09:08:23]RAPDU: C0 AB DA 15 12 6A 88 9C 90 00 [09:08:23]wFMCommunicate OK [09:08:23]SAM_PROTO_SignData done [09:08:23]FM_MakeSignedData done [09:08:23]CreateOFDProtocolMessage [09:08:23]wFMCommunicate request_size=4 [09:08:23]MH_SAM_APDU [09:08:23]CAPDU: 80 11 00 00 [09:08:23]Write to MH i2c: E2 08 00 53 16 80 11 00 00 00 00 00 00 E3 [09:08:23]Write i2c OK [09:08:23]MH_I2C_Read... [09:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:23]Read from MH i2c: E2 [09:08:23]MH_I2C_Read... [09:08:23]Read from MH i2c: E2 17 00 [09:08:23]MH_I2C_Read... [09:08:23]Read from MH i2c: E2 17 00 53 16 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:08: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:08:23]wFMCommunicate OK [09:08:23]CreateOFDProtocolMessage done [09:08:23]OFDSenderStorePacket 67018 [09:08:23]StoreOFDPacket docnum=67018 [09:08:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 C7 0A 07 01 E5 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 4C 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 0C FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 09 2A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CA 05 01 00 35 04 06 00 ED 8D FC D2 CA 3A C0 AB DA 15 12 6A 88 9C [09:08:23]CheckFolder [09:08:23]dirname=/storage/ofd_packets [09:08:23]CheckFolder done [09:08:23]ProducePacketName [09:08:23]name=ofd_packets/00067018 [09:08:23]NVStorageSaveData ofd_packets/00067018 [09:08:23]File name is /storage/ofd_packets/00067018 [09:08:23]Write 301 bytes [09:08:23]NVStorageSaveData done [09:08:23]OFDSenderStorePacket done [09:08:23]KKMCreateOFDPacket done [09:08:23]NVStorageSaveData kkm_last_timestamp [09:08:23]File name is /storage/kkm_last_timestamp [09:08:23]Write 4 bytes [09:08:23]NVStorageSaveData done [09:08:23]ExternCall_PrintAddStr [09:08:23]wPrintStart [09:08:23]Write to MH i2c: 01 00 00 54 16 6A [09:08:23]Write i2c OK [09:08:23]MH_I2C_Read... [09:08:23]Read from MH i2c: 01 [09:08:23]MH_I2C_Read... [09:08:23]Read from MH i2c: 01 07 00 [09:08:23]MH_I2C_Read... [09:08:23]Read from MH i2c: 01 07 00 54 16 00 00 00 00 00 FF 0F 7F [09:08:23]RasterBufferAndPrint [09:08:23]line Счет N : (1)506849 [09:08:23]line ИНН: 02508201610067 [09:08:23]line Контрольно-Кассовый Чек [09:08:23]line ПРОДАЖА [09:08:23]line ТРК (МРК, ГНК) : 13 [09:08:23]line Товар: 2710124130 [09:08:23]line Аи-92-К-5 [09:08:23]line 19.470 * 66.80 [09:08:23]line = 1300.60 [09:08:23]line НДС 12% НСП 1% [09:08:23]line > о реализуемом товаре [09:08:23]line ОКРУГЛЕНИЕ: -0.60 [09:08:23]line ИТОГО: 1300.00 [09:08:23]line Внесено: 1300.00 [09:08:23]line СДАЧА: 0.00 [09:08:23]line НСП 1% : 11.51 [09:08:23]line НДС 12% : 138.12 [09:08:23]line Наличными: 1300.00 [09:08:23]line Безнал.: 0.00 [09:08:23]line Место: АЗС № 91 "Партнер Нефть" [09:08:23]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:08:23]line СНО: Общий режим [09:08:23]line Чек 25 14.05.2024 09:08 [09:08:23]line Смена: 355 ФФД: 1.0 [09:08:23]line ЗНМ: 0300000119 [09:08:23]line РНМ: 0000000000091845 [09:08:23]line Версия ККМ: 001 [09:08:23]line ФМ: 0000000000871829 [09:08:23]line ФД: 67018 [09:08:23]line ФПД: 261194087844410 [09:08:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T090825&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67018&fm=261194087844410&tin=02508201610067®Number=0000000000091845&sum=130000 [09:08:23]OFD Sender: Processing packet 67018 [packets to send 35, broken 34] [09:08:23]ProducePacketName [09:08:23]name=ofd_packets/00067018 [09:08:23]OFD Sender: To server: pG, [09:08:23]CommunicateWithHost lk.salyk.kg:30040 [09:08:23]ConnectInit lk.salyk.kg [09:08:23]written 0, free lines is 4095 [09:08:23]Connected sock=10 [09:08:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 C7 0A 07 01 E5 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 4C 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 0C FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 09 2A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CA 05 01 00 35 04 06 00 ED 8D FC D2 CA 3A C0 AB DA 15 12 6A 88 9C [09:08: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 2D 89 47 00 4C EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CA 05 01 00 F4 03 04 00 E9 D1 42 66 B6 04 01 00 00 F2 B0 96 81 21 22 9E 24 [09:08:23]CommunicateWithHost err = 0 [09:08:23]CheckOFDResponse [09:08:23]1017 (14) - 77093643461234 [09:08:23]1041 (16) - 0000000000871829 [09:08:23]1040 (4) - 67018 [09:08:23]1012 (4) - 14.05.2024 02:52 [09:08:23]1206 (1) - 0 [09:08:23]OFD Sender: Remove packet 67018 [09:08:23]ProducePacketName [09:08:23]name=ofd_packets/00067018 [09:08:23]NVStorageDeleteData [09:08:24]Write to MH i2c: 01 00 00 7E 16 94 [09:08:24]Write i2c OK [09:08:24]MH_I2C_Read... [09:08:24]Read from MH i2c: 01 [09:08:24]MH_I2C_Read... [09:08:24]Read from MH i2c: 01 07 00 [09:08:24]MH_I2C_Read... [09:08:24]Read from MH i2c: 01 07 00 7E 16 00 00 00 00 00 C8 0C 6F [09:08:24]RasterBufferAndPrint [09:08:24]line [09:08:24]line [09:08:24]line [09:08:24]line [09:08:24]line [09:08:24]written 0, free lines is 3278 [09:08:24]MH_Cut [09:08:24]Write to MH i2c: D1 01 00 85 16 01 6D [09:08:24]Write i2c OK [09:08:24]MH_I2C_Read... [09:08:24]Read from MH i2c: D1 [09:08:24]MH_I2C_Read... [09:08:24]Read from MH i2c: D1 01 00 [09:08:24]MH_I2C_Read... [09:08:24]Read from MH i2c: D1 01 00 85 16 00 6C [09:08:24]Write to MH i2c: 01 00 00 86 16 9C [09:08:24]Write i2c OK [09:08:24]MH_I2C_Read... [09:08:24]OFD Sender: No OFD packet to send [09:08:24]*** Cut start [09:08:24]*** Purtial cut [09:08:24]*** Stage 1: CUTSNS_PIN = 1 [09:08:25]Read from MH i2c: 01 [09:08:25]MH_I2C_Read... [09:08:25]*** Stop cut motor [09:08:25]*** Cut end [09:08:25]Read from MH i2c: 01 07 00 [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: 01 07 00 86 16 00 00 00 00 00 FF 0F B1 [09:08:25]process_action close_receipt done [09:08:25]requested_data is exist [09:08:25]produce_requested_data [09:08:25]requested_item fm.sn is exist - process it [09:08:25]wFMCommunicate request_size=4 [09:08:25]MH_SAM_APDU [09:08:25]CAPDU: 80 11 00 00 [09:08:25]Write to MH i2c: E2 08 00 87 16 80 11 00 00 00 00 00 00 17 [09:08:25]Write i2c OK [09:08:25]MH_I2C_Read... [09:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:25]Read from MH i2c: E2 [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: E2 17 00 [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: E2 17 00 87 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6D [09:08:25]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:25]wFMCommunicate OK [09:08:25]requested_item fd.num is exist - process it [09:08:25]SAM_PROTO_GetFieldsCounters [09:08:25]wFMCommunicate request_size=4 [09:08:25]MH_SAM_APDU [09:08:25]CAPDU: 80 13 00 00 [09:08:25]Write to MH i2c: E2 08 00 88 16 80 13 00 00 00 00 00 00 1A [09:08:25]Write i2c OK [09:08:25]MH_I2C_Read... [09:08:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:25]Read from MH i2c: E2 [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: E2 62 00 [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: E2 62 00 88 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CA 05 01 00 0E 04 04 00 63 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 BF [09:08: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 CA 05 01 00 0E 04 04 00 63 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:08:25]wFMCommunicate OK [09:08:25]SAM_PROTO_GetFieldsCounters done [09:08:25]requested_item shift.num is exist - process it [09:08:25]requested_item shift.opened is exist - process it [09:08:25]req_shift_opened [09:08:25]FM_GetShiftState [09:08:25]SAM_PROTO_GetShiftState [09:08:25]wFMCommunicate request_size=4 [09:08:25]MH_SAM_APDU [09:08:25]CAPDU: 80 13 01 00 [09:08:25]Write to MH i2c: E2 08 00 89 16 80 13 01 00 00 00 00 00 1C [09:08:25]Write i2c OK [09:08:25]MH_I2C_Read... [09:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:25]Read from MH i2c: E2 [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: E2 0E 00 [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: E2 0E 00 89 16 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 E4 [09:08:25]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:08:25]wFMCommunicate OK [09:08:25]SAM_PROTO_GetShiftState done [09:08:25]FM_GetShiftState done [09:08:25]req_shift_opened done [09:08:25]requested_item shift.open_date is exist - process it [09:08:25]req_shift_open_date [09:08:25]req_shift_open_date done [09:08:25]produce_requested_data done [09:08:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67018,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:08:25]process_action_free close_receipt [09:08:25]json_value_free [09:08:25]json_value_free done [09:08:25]process_json_proto returns [09:08:25]Send response to host [09:08:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67018,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:08:25]free response buf [09:08:25]execute_script done [09:08:25]execute_script returns [09:08:25]free content buf [09:08:25]Sock 9.Close socket [09:08:25]Sock 9.Thread stoped [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:52]accept exits with 8 [09:08:52]New connection [09:08:52]New thread 3066760548 created [09:08:52]Thread 3066617188 joined [09:08:52]Waiting for new connection... [09:08:52] Sock 8.Parse request [09:08:52]Sock 8.Check first char [09:08:52]Sock 8.First char is OK [09:08:52]request: POST /json_proto HTTP/1.0 [09:08:52]Method: POST [09:08:52]URL: /json_proto [09:08:52]Method is POST - this is cgi request [09:08:52]url: /json_proto [09:08:52]query_string will be loaded in cgi processing [09:08:52]execute_cgi json_proto POST (null) [09:08:52]execute_cgi path=json_proto method=POST [09:08:52]POST find Content-Length [09:08:52]Host: 172.17.41.195:8080 [09:08:52]Content-Length: 1179 [09:08:52]Content-Type: application/json [09:08:52] [09:08:52]POST finish read [09:08:52]Found Content-Length = 1179 [09:08: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)506850\u000A14.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 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:08:52]execute_script... [09:08: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)506850\u000A14.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 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:08:52]POST & json_proto [09:08:52]process_json_proto [09:08:52]json parsed OK: [09:08:52]protocol is kg_v1.0 [09:08:52]action value=print_text [09:08:52]process_action print_text [09:08:52]cmd_print_text [09:08:52]ExternCall_PrintAddStr [09:08:52]wPrintStart [09:08:52]Write to MH i2c: 01 00 00 8A 16 A0 [09:08:52]Write i2c OK [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: 01 [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: 01 07 00 [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: 01 07 00 8A 16 00 00 00 00 00 FF 0F B5 [09:08:52]RasterBufferAndPrint [09:08:52]line *****ТОВАРНЫЙ ЧЕК***** [09:08:52]line АЗС-91 [09:08:52]line Партнер нефть [09:08:52]line 02508201610067 [09:08:52]line Кассир : Адишов И. [09:08:52]line Счет N : (1)506850 [09:08:52]line 14.05.2024 08:51 [09:08:52]line ПРОДАЖА [09:08:52]line ТРК (МРК, ГНК): 41 [09:08:52]line Вид ГСМ : 2710194210 [09:08:52]line ДТ-К-5 [09:08:52]line 20.000 x 74.70 [09:08:52]line ИТОГ: 1494.00 [09:08:52]line Тип оплаты: Талоны: Топливная Карта [09:08:52]line 02750 [09:08:52]line ______________________ [09:08:52]line (подпись) [09:08:52]written 0, free lines is 4095 [09:08:52]Write to MH i2c: 01 00 00 9E 16 B4 [09:08:52]Write i2c OK [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: 01 [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: 01 07 00 [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: 01 07 00 9E 16 00 00 00 00 00 0C 0E D5 [09:08:52]RasterBufferAndPrint [09:08:52]line [09:08:52]line [09:08:52]line [09:08:52]line [09:08:52]line [09:08:52]written 0, free lines is 3598 [09:08:52]MH_Cut [09:08:52]Write to MH i2c: D1 01 00 A5 16 01 8D [09:08:52]Write i2c OK [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: D1 [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: D1 01 00 [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: D1 01 00 A5 16 00 8C [09:08:52]Write to MH i2c: 01 00 00 A6 16 BC [09:08:52]Write i2c OK [09:08:52]MH_I2C_Read... [09:08:52]*** Cut start [09:08:52]*** Purtial cut [09:08:52]*** CUTSNS_PIN = 0 [09:08:53]*** Stage 1: CUTSNS_PIN = 1 [09:08:54]OFD Sender: No OFD packet to send [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]*** Stop cut motor [09:08:54]*** Cut end [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: 01 07 00 A6 16 00 00 00 00 00 FF 0F D1 [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 A7 16 80 11 00 00 00 00 00 00 37 [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 17 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 17 00 A7 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8D [09:08: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:08:55]wFMCommunicate OK [09:08:55]requested_item fd.num is exist - process it [09:08:55]SAM_PROTO_GetFieldsCounters [09:08:55]wFMCommunicate request_size=4 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 13 00 00 [09:08:55]Write to MH i2c: E2 08 00 A8 16 80 13 00 00 00 00 00 00 3A [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 62 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 62 00 A8 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 CA 05 01 00 0E 04 04 00 63 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 DF [09:08: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 CA 05 01 00 0E 04 04 00 63 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:08:55]wFMCommunicate OK [09:08:55]SAM_PROTO_GetFieldsCounters done [09:08:55]requested_item shift.num is exist - process it [09:08:55]requested_item shift.opened is exist - process it [09:08:55]req_shift_opened [09:08:55]FM_GetShiftState [09:08:55]SAM_PROTO_GetShiftState [09:08:55]wFMCommunicate request_size=4 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 13 01 00 [09:08:55]Write to MH i2c: E2 08 00 A9 16 80 13 01 00 00 00 00 00 3C [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 0E 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 0E 00 A9 16 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 04 [09:08:55]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:08:55]wFMCommunicate OK [09:08:55]SAM_PROTO_GetShiftState done [09:08:55]FM_GetShiftState done [09:08:55]req_shift_opened done [09:08:55]requested_item shift.open_date is exist - process it [09:08:55]req_shift_open_date [09:08:55]req_shift_open_date done [09:08:55]produce_requested_data done [09:08:55]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67018,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:08:55]process_action_free print_text [09:08:55]json_value_free [09:08:55]json_value_free done [09:08:55]process_json_proto returns [09:08:55]Send response to host [09:08:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67018,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:08:55]free response buf [09:08:55]execute_script done [09:08:55]execute_script returns [09:08:55]free content buf [09:08:55]Sock 8.Close socket [09:08:55]Sock 8.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: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:50]accept exits with 9 [09:09:50]New connection [09:09:50]New thread 3066617188 created [09:09:50]Thread 3066760548 joined [09:09:50]Waiting for new connection... [09:09:50] Sock 9.Parse request [09:09:50]Sock 9.Check first char [09:09:50]Sock 9.First char is OK [09:09:50]request: POST /json_proto HTTP/1.0 [09:09:50]Method: POST [09:09:50]URL: /json_proto [09:09:50]Method is POST - this is cgi request [09:09:50]url: /json_proto [09:09:50]query_string will be loaded in cgi processing [09:09:50]execute_cgi json_proto POST (null) [09:09:50]execute_cgi path=json_proto method=POST [09:09:50]POST find Content-Length [09:09:50]Host: 172.17.41.195:8080 [09:09:50]Content-Length: 1144 [09:09:50]Content-Type: application/json [09:09:50] [09:09:50]POST finish read [09:09:50]Found Content-Length = 1144 [09:09: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)506851\u000A14.05.2024 08:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 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\u000A30108528\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:50]execute_script... [09:09: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)506851\u000A14.05.2024 08:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 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\u000A30108528\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:50]POST & json_proto [09:09:50]process_json_proto [09:09:50]json parsed OK: [09:09:50]protocol is kg_v1.0 [09:09:50]action value=print_text [09:09:50]process_action print_text [09:09:50]cmd_print_text [09:09:50]ExternCall_PrintAddStr [09:09:50]wPrintStart [09:09:50]Write to MH i2c: 01 00 00 AA 16 C0 [09:09:50]Write i2c OK [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: 01 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: 01 07 00 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: 01 07 00 AA 16 00 00 00 00 00 FF 0F D5 [09:09:50]RasterBufferAndPrint [09:09:50]line *****ТОВАРНЫЙ ЧЕК***** [09:09:50]line АЗС-91 [09:09:50]line Партнер нефть [09:09:50]line 02508201610067 [09:09:50]line Кассир : Адишов И. [09:09:50]line Счет N : (1)506851 [09:09:50]line 14.05.2024 08:52 [09:09:50]line ПРОДАЖА [09:09:50]line ТРК (МРК, ГНК): 23 [09:09:50]line Вид ГСМ : 2710124130 [09:09:50]line Аи-92-К-5 [09:09:50]line 15.000 x 66.80 [09:09:50]line ИТОГ: 1002.00 [09:09:50]line Тип оплаты: Талоны: ТК ГПНА Online [09:09:50]line 30108528 [09:09:50]line ______________________ [09:09:50]line (подпись) [09:09:50]written 0, free lines is 4095 [09:09:50]Write to MH i2c: 01 00 00 BE 16 D4 [09:09:50]Write i2c OK [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: 01 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: 01 07 00 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: 01 07 00 BE 16 00 00 00 00 00 0F 0E F8 [09:09:50]RasterBufferAndPrint [09:09:50]line [09:09:50]line [09:09:50]line [09:09:50]line [09:09:50]line [09:09:50]written 0, free lines is 3600 [09:09:50]MH_Cut [09:09:50]Write to MH i2c: D1 01 00 C5 16 01 AD [09:09:50]Write i2c OK [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: D1 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: D1 01 00 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: D1 01 00 C5 16 00 AC [09:09:50]Write to MH i2c: 01 00 00 C6 16 DC [09:09:50]Write i2c OK [09:09:50]MH_I2C_Read... [09:09:51]*** Cut start [09:09:51]*** Purtial cut [09:09:51]*** Stage 1: CUTSNS_PIN = 1 [09:09:51]Read from MH i2c: 01 [09:09:51]MH_I2C_Read... [09:09:51]*** Stop cut motor [09:09:51]*** Cut end [09:09:51]Read from MH i2c: 01 07 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: 01 07 00 C6 16 00 00 00 00 00 FF 0F F1 [09:09:51]process_action print_text done [09:09:51]requested_data is exist [09:09:51]produce_requested_data [09:09:51]requested_item fm.sn is exist - process it [09:09:51]wFMCommunicate request_size=4 [09:09:51]MH_SAM_APDU [09:09:51]CAPDU: 80 11 00 00 [09:09:51]Write to MH i2c: E2 08 00 C7 16 80 11 00 00 00 00 00 00 57 [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:51]Read from MH i2c: E2 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 17 00 [09:09:51]MH_I2C_Read... [09:09:51]Read from MH i2c: E2 17 00 C7 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AD [09:09: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:09:51]wFMCommunicate OK [09:09:51]requested_item fd.num is exist - process it [09:09:51]SAM_PROTO_GetFieldsCounters [09:09:51]wFMCommunicate request_size=4 [09:09:51]MH_SAM_APDU [09:09:51]CAPDU: 80 13 00 00 [09:09:51]Write to MH i2c: E2 08 00 C8 16 80 13 00 00 00 00 00 00 5A [09:09:51]Write i2c OK [09:09:51]MH_I2C_Read... [09:09:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:52]Read from MH i2c: E2 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: E2 62 00 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: E2 62 00 C8 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 CA 05 01 00 0E 04 04 00 63 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 FF [09:09: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 CA 05 01 00 0E 04 04 00 63 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:09:52]wFMCommunicate OK [09:09:52]SAM_PROTO_GetFieldsCounters done [09:09:52]requested_item shift.num is exist - process it [09:09:52]requested_item shift.opened is exist - process it [09:09:52]req_shift_opened [09:09:52]FM_GetShiftState [09:09:52]SAM_PROTO_GetShiftState [09:09:52]wFMCommunicate request_size=4 [09:09:52]MH_SAM_APDU [09:09:52]CAPDU: 80 13 01 00 [09:09:52]Write to MH i2c: E2 08 00 C9 16 80 13 01 00 00 00 00 00 5C [09:09:52]Write i2c OK [09:09:52]MH_I2C_Read... [09:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:52]Read from MH i2c: E2 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: E2 0E 00 [09:09:52]MH_I2C_Read... [09:09:52]Read from MH i2c: E2 0E 00 C9 16 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 24 [09:09:52]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:09:52]wFMCommunicate OK [09:09:52]SAM_PROTO_GetShiftState done [09:09:52]FM_GetShiftState done [09:09:52]req_shift_opened done [09:09:52]requested_item shift.open_date is exist - process it [09:09:52]req_shift_open_date [09:09:52]req_shift_open_date done [09:09:52]produce_requested_data done [09:09:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67018,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:09:52]process_action_free print_text [09:09:52]json_value_free [09:09:52]json_value_free done [09:09:52]process_json_proto returns [09:09:52]Send response to host [09:09:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67018,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:09:52]free response buf [09:09:52]execute_script done [09:09:52]execute_script returns [09:09:52]free content buf [09:09:52]Sock 9.Close socket [09:09:52]Sock 9.Thread stoped [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: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]accept exits with 8 [09:11:19]New connection [09:11:19]New thread 3066760548 created [09:11:19]Thread 3066617188 joined [09:11:19]Waiting for new connection... [09:11:19] Sock 8.Parse request [09:11:19]Sock 8.Check first char [09:11:19]Sock 8.First char is OK [09:11:19]request: POST /json_proto HTTP/1.0 [09:11:19]Method: POST [09:11:19]URL: /json_proto [09:11:19]Method is POST - this is cgi request [09:11:19]url: /json_proto [09:11:19]query_string will be loaded in cgi processing [09:11:19]execute_cgi json_proto POST (null) [09:11:19]execute_cgi path=json_proto method=POST [09:11:19]POST find Content-Length [09:11:19]Host: 172.17.41.195:8080 [09:11:19]Content-Length: 674 [09:11:19]Content-Type: application/json [09:11:19] [09:11:19]POST finish read [09:11:19]Found Content-Length = 674 [09:11:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506852", "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" : 7.330, "sum" : 547.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 547.00, "total" : 547.00, "payments": [ { "type": 0, "sum" : 547.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:19]execute_script... [09:11: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)506852", "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" : 7.330, "sum" : 547.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 547.00, "total" : 547.00, "payments": [ { "type": 0, "sum" : 547.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:19]POST & json_proto [09:11:19]process_json_proto [09:11:19]json parsed OK: [09:11:19]protocol is kg_v1.0 [09:11:19]action value=close_receipt [09:11:19]process_action close_receipt [09:11:19]cmd_close_receipt [09:11:19]MH_GetDate [09:11:19]Write to MH i2c: F0 00 00 CA 16 CF [09:11:19]Write i2c OK [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: F0 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: F0 09 00 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: F0 09 00 CA 16 00 BB 2A 43 66 FC 21 6F 64 56 [09:11:19]GetLastDocTimeStamp 1715677705 [09:11:19]current date 1715677883 [09:11:19]FM_GetShiftState [09:11:19]SAM_PROTO_GetShiftState [09:11:19]wFMCommunicate request_size=4 [09:11:19]MH_SAM_APDU [09:11:19]CAPDU: 80 13 01 00 [09:11:19]Write to MH i2c: E2 08 00 CB 16 80 13 01 00 00 00 00 00 5E [09:11:19]Write i2c OK [09:11:19]MH_I2C_Read... [09:11:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:19]Read from MH i2c: E2 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: E2 0E 00 [09:11:19]MH_I2C_Read... [09:11:19]Read from MH i2c: E2 0E 00 CB 16 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 26 [09:11:19]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:11:19]wFMCommunicate OK [09:11:19]SAM_PROTO_GetShiftState done [09:11:19]FM_GetShiftState done [09:11:19]opened in 1715646054 [09:11:19]opened+sec_in_day 1715732454 [09:11:19]quantity*price = 54755 [09:11:19]sum+1 = 54756 [09:11:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 547.00 Внесено: 547.00 СДАЧА: 0.00 НСП 1% : 4.85 НДС 12% : 58.15 Наличными: 547.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 26 14.05.2024 09:11 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67019 ФПД: 137881728092909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T091123&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67019&fm=137881728092909&tin=02508201610067®Number=0000000000091845&sum=54700 [09:11:20]StoreToDocumentArchive [09:11:20]shift 355 fd 67019 [09:11:20]save to /storage/0355/doc_00067019 [09:11:20]save last doc name /storage/0355/doc_00067019 to /storage/kkm_last_doc_name [09:11:20]save OK [09:11:20]Clear old archive folders... [09:11:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:11:20]tlvbuf is 00333C10 [09:11:20]SAM_PROTO_ClearQueue [09:11:20]wFMCommunicate request_size=4 [09:11:20]MH_SAM_APDU [09:11:20]CAPDU: 80 09 00 00 [09:11:20]Write to MH i2c: E2 08 00 D8 16 80 09 00 00 00 00 00 00 60 [09:11:20]Write i2c OK [09:11:20]MH_I2C_Read... [09:11:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:20]Read from MH i2c: E2 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 03 00 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 03 00 D8 16 00 90 00 62 [09:11:20]RAPDU: 90 00 [09:11:20]wFMCommunicate OK [09:11:20]SAM_PROTO_ClearQueue done [09:11:20]KKMCreateOFDPacket [09:11:20]OFDProtocolAddRootSTLVToBuf [09:11:20]FM_MakeSignedData [09:11:20]FM_MakeSignedData [09:11:20]SAM_PROTO_SignData [09:11:20]wFMCommunicate request_size=4 [09:11:20]MH_SAM_APDU [09:11:20]CAPDU: 80 0D 01 02 [09:11:20]Write to MH i2c: E2 08 00 D9 16 80 0D 01 02 00 00 00 00 68 [09:11:20]Write i2c OK [09:11:20]MH_I2C_Read... [09:11:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:20]Read from MH i2c: E2 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 03 00 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 03 00 D9 16 00 90 00 63 [09:11:20]RAPDU: 90 00 [09:11:20]wFMCommunicate OK [09:11:20]wFMCommunicate request_size=255 [09:11:20]MH_SAM_APDU [09:11: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 A2 1C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E3 D5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC D5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 16 00 00 00 00 07 04 06 00 AC D5 00 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 BB 2A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CB 05 01 00 35 04 06 00 7D 67 17 6C [09:11:20]Write to MH i2c: E2 02 01 DA 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 A2 1C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E3 D5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC D5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 16 00 00 00 00 07 04 06 00 AC D5 00 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 BB 2A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CB 05 01 00 35 04 06 00 7D 67 17 6C 00 00 84 [09:11:20]Write i2c OK [09:11:20]MH_I2C_Read... [09:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:20]Read from MH i2c: E2 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 03 00 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 03 00 DA 16 00 90 00 64 [09:11:20]RAPDU: 90 00 [09:11:20]wFMCommunicate OK [09:11:20]wFMCommunicate request_size=7 [09:11:20]MH_SAM_APDU [09:11:20]CAPDU: 80 0D 02 02 02 8A ED [09:11:20]Write to MH i2c: E2 0A 00 DB 16 80 0D 02 02 02 00 8A ED 00 00 E6 [09:11:20]Write i2c OK [09:11:20]MH_I2C_Read... [09:11:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:20]Read from MH i2c: E2 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 03 00 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 03 00 DB 16 00 90 00 65 [09:11:20]RAPDU: 90 00 [09:11:20]wFMCommunicate OK [09:11:20]wFMCommunicate request_size=4 [09:11:20]MH_SAM_APDU [09:11:20]CAPDU: 80 0D 03 02 [09:11:20]Write to MH i2c: E2 08 00 DC 16 80 0D 03 02 00 00 00 00 6D [09:11:20]Write i2c OK [09:11:20]MH_I2C_Read... [09:11:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:20]Read from MH i2c: E2 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 0B 00 [09:11:20]MH_I2C_Read... [09:11:20]Read from MH i2c: E2 0B 00 DC 16 00 B0 6A D7 8E AA 9A 1D F6 90 00 44 [09:11:20]RAPDU: B0 6A D7 8E AA 9A 1D F6 90 00 [09:11:20]wFMCommunicate OK [09:11:20]SAM_PROTO_SignData done [09:11:20]FM_MakeSignedData done [09:11:20]CreateOFDProtocolMessage [09:11:20]wFMCommunicate request_size=4 [09:11:20]MH_SAM_APDU [09:11:20]CAPDU: 80 11 00 00 [09:11:20]Write to MH i2c: E2 08 00 DD 16 80 11 00 00 00 00 00 00 6D [09:11:20]Write i2c OK [09:11:20]MH_I2C_Read... [09:11:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:21]Read from MH i2c: E2 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: E2 17 00 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: E2 17 00 DD 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C3 [09:11: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:11:21]wFMCommunicate OK [09:11:21]CreateOFDProtocolMessage done [09:11:21]OFDSenderStorePacket 67019 [09:11:21]StoreOFDPacket docnum=67019 [09:11: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 43 C6 04 01 57 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 1C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E3 D5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC D5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 16 00 00 00 00 07 04 06 00 AC D5 00 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 BB 2A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CB 05 01 00 35 04 06 00 7D 67 17 6C 8A ED B0 6A D7 8E AA 9A 1D F6 [09:11:21]CheckFolder [09:11:21]dirname=/storage/ofd_packets [09:11:21]CheckFolder done [09:11:21]ProducePacketName [09:11:21]name=ofd_packets/00067019 [09:11:21]NVStorageSaveData ofd_packets/00067019 [09:11:21]File name is /storage/ofd_packets/00067019 [09:11:21]Write 298 bytes [09:11:21]NVStorageSaveData done [09:11:21]OFDSenderStorePacket done [09:11:21]KKMCreateOFDPacket done [09:11:21]NVStorageSaveData kkm_last_timestamp [09:11:21]File name is /storage/kkm_last_timestamp [09:11:21]Write 4 bytes [09:11:21]NVStorageSaveData done [09:11:21]ExternCall_PrintAddStr [09:11:21]wPrintStart [09:11:21]Write to MH i2c: 01 00 00 DE 16 F4 [09:11:21]Write i2c OK [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: 01 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: 01 07 00 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: 01 07 00 DE 16 00 00 00 00 00 FF 0F 09 [09:11:21]RasterBufferAndPrint [09:11:21]line Счет N : (1)506852 [09:11:21]line ИНН: 02508201610067 [09:11:21]line Контрольно-Кассовый Чек [09:11:21]line ПРОДАЖА [09:11:21]line ТРК (МРК, ГНК) : 41 [09:11:21]line Товар: 2710194210 [09:11:21]line ДТ-К-5 [09:11:21]line 7.330 * 74.70 [09:11:21]line = 547.55 [09:11:21]line НДС 12% НСП 1% [09:11:21]line > о реализуемом товаре [09:11:21]line ОКРУГЛЕНИЕ: -0.55 [09:11:21]line ИТОГО: 547.00 [09:11:21]line Внесено: 547.00 [09:11:21]line СДАЧА: 0.00 [09:11:21]line НСП 1% : 4.85 [09:11:21]line НДС 12% : 58.15 [09:11:21]line Наличными: 547.00 [09:11:21]line Безнал.: 0.00 [09:11:21]line Место: АЗС № 91 "Партнер Нефть" [09:11:21]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:11:21]line СНО: Общий режим [09:11:21]line Чек 26 14.05.2024 09:11 [09:11:21]line Смена: 355 ФФД: 1.0 [09:11:21]line ЗНМ: 0300000119 [09:11:21]line РНМ: 0000000000091845 [09:11:21]line Версия ККМ: 001 [09:11:21]line ФМ: 0000000000871829 [09:11:21]line ФД: 67019 [09:11:21]line ФПД: 137881728092909 [09:11:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T091123&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67019&fm=137881728092909&tin=02508201610067®Number=0000000000091845&sum=54700 [09:11:21]OFD Sender: Processing packet 67019 [packets to send 35, broken 34] [09:11:21]ProducePacketName [09:11:21]name=ofd_packets/00067019 [09:11:21]OFD Sender: To server: pG, [09:11:21]CommunicateWithHost lk.salyk.kg:30040 [09:11:21]ConnectInit lk.salyk.kg [09:11:21]written 0, free lines is 4095 [09:11:21]Connected sock=10 [09:11: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 43 C6 04 01 57 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 1C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E3 D5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC D5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 16 00 00 00 00 07 04 06 00 AC D5 00 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 BB 2A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CB 05 01 00 35 04 06 00 7D 67 17 6C 8A ED B0 6A D7 8E AA 9A 1D F6 [09:11: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 03 7C 47 00 35 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 CB 05 01 00 F4 03 04 00 9B D2 42 66 B6 04 01 00 00 22 E9 86 42 BD 2D 2F FA [09:11:21]CommunicateWithHost err = 0 [09:11:21]CheckOFDResponse [09:11:21]1017 (14) - 77093643461234 [09:11:21]1041 (16) - 0000000000871829 [09:11:21]1040 (4) - 67019 [09:11:21]1012 (4) - 14.05.2024 02:55 [09:11:21]1206 (1) - 0 [09:11:21]OFD Sender: Remove packet 67019 [09:11:21]ProducePacketName [09:11:21]name=ofd_packets/00067019 [09:11:21]NVStorageDeleteData [09:11:21]Write to MH i2c: 01 00 00 08 17 1F [09:11:21]Write i2c OK [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: 01 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: 01 07 00 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: 01 07 00 08 17 00 00 00 00 00 B9 0C EB [09:11:21]RasterBufferAndPrint [09:11:21]line [09:11:21]line [09:11:21]line [09:11:21]line [09:11:21]line [09:11:21]written 0, free lines is 3263 [09:11:21]MH_Cut [09:11:21]Write to MH i2c: D1 01 00 0F 17 01 F8 [09:11:21]Write i2c OK [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: D1 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: D1 01 00 [09:11:21]MH_I2C_Read... [09:11:21]Read from MH i2c: D1 01 00 0F 17 00 F7 [09:11:21]Write to MH i2c: 01 00 00 10 17 27 [09:11:21]Write i2c OK [09:11:21]MH_I2C_Read... [09:11:22]OFD Sender: No OFD packet to send [09:11:22]*** Cut start [09:11:22]*** Purtial cut [09:11:22]*** CUTSNS_PIN = 0 [09:11:22]*** Stage 1: CUTSNS_PIN = 1 [09:11:24]Read from MH i2c: 01 [09:11:24]MH_I2C_Read... [09:11:24]*** Stop cut motor [09:11:24]*** Cut end [09:11:24]Read from MH i2c: 01 07 00 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: 01 07 00 10 17 00 00 00 00 00 FF 0F 3C [09:11:24]process_action close_receipt done [09:11:24]requested_data is exist [09:11:24]produce_requested_data [09:11:24]requested_item fm.sn is exist - process it [09:11:24]wFMCommunicate request_size=4 [09:11:24]MH_SAM_APDU [09:11:24]CAPDU: 80 11 00 00 [09:11:24]Write to MH i2c: E2 08 00 11 17 80 11 00 00 00 00 00 00 A2 [09:11:24]Write i2c OK [09:11:24]MH_I2C_Read... [09:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:24]Read from MH i2c: E2 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: E2 17 00 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: E2 17 00 11 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F8 [09:11: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:11:24]wFMCommunicate OK [09:11:24]requested_item fd.num is exist - process it [09:11:24]SAM_PROTO_GetFieldsCounters [09:11:24]wFMCommunicate request_size=4 [09:11:24]MH_SAM_APDU [09:11:24]CAPDU: 80 13 00 00 [09:11:24]Write to MH i2c: E2 08 00 12 17 80 13 00 00 00 00 00 00 A5 [09:11:24]Write i2c OK [09:11:24]MH_I2C_Read... [09:11:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:24]Read from MH i2c: E2 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: E2 62 00 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: E2 62 00 12 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 CB 05 01 00 0E 04 04 00 63 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 4E [09:11: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 CB 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:24]wFMCommunicate OK [09:11:24]SAM_PROTO_GetFieldsCounters done [09:11:24]requested_item shift.num is exist - process it [09:11:24]requested_item shift.opened is exist - process it [09:11:24]req_shift_opened [09:11:24]FM_GetShiftState [09:11:24]SAM_PROTO_GetShiftState [09:11:24]wFMCommunicate request_size=4 [09:11:24]MH_SAM_APDU [09:11:24]CAPDU: 80 13 01 00 [09:11:24]Write to MH i2c: E2 08 00 13 17 80 13 01 00 00 00 00 00 A7 [09:11:24]Write i2c OK [09:11:24]MH_I2C_Read... [09:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:24]Read from MH i2c: E2 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: E2 0E 00 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: E2 0E 00 13 17 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 6F [09:11:24]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:11:24]wFMCommunicate OK [09:11:24]SAM_PROTO_GetShiftState done [09:11:24]FM_GetShiftState done [09:11:24]req_shift_opened done [09:11:24]requested_item shift.open_date is exist - process it [09:11:24]req_shift_open_date [09:11:24]req_shift_open_date done [09:11:24]produce_requested_data done [09:11:24]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67019,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:11:24]process_action_free close_receipt [09:11:24]json_value_free [09:11:24]json_value_free done [09:11:24]process_json_proto returns [09:11:24]Send response to host [09:11:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67019,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:11:24]free response buf [09:11:24]execute_script done [09:11:24]execute_script returns [09:11:24]free content buf [09:11:24]Sock 8.Close socket [09:11:24]Sock 8.Thread stoped [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:26]accept exits with 9 [09:12:26]New connection [09:12:26]New thread 3066617188 created [09:12:26]Thread 3066760548 joined [09:12:26]Waiting for new connection... [09:12:26] Sock 9.Parse request [09:12:26]Sock 9.Check first char [09:12:26]Sock 9.First char is OK [09:12:26]request: POST /json_proto HTTP/1.0 [09:12:26]Method: POST [09:12:26]URL: /json_proto [09:12:26]Method is POST - this is cgi request [09:12:26]url: /json_proto [09:12:26]query_string will be loaded in cgi processing [09:12:26]execute_cgi json_proto POST (null) [09:12:26]execute_cgi path=json_proto method=POST [09:12:26]POST find Content-Length [09:12:26]Host: 172.17.41.195:8080 [09:12:26]Content-Length: 1179 [09:12:26]Content-Type: application/json [09:12:26] [09:12:26]POST finish read [09:12:26]Found Content-Length = 1179 [09:12: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)506854\u000A14.05.2024 08:55\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:12:26]execute_script... [09:12: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)506854\u000A14.05.2024 08:55\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:12:26]POST & json_proto [09:12:26]process_json_proto [09:12:26]json parsed OK: [09:12:26]protocol is kg_v1.0 [09:12:26]action value=print_text [09:12:26]process_action print_text [09:12:26]cmd_print_text [09:12:26]ExternCall_PrintAddStr [09:12:26]wPrintStart [09:12:26]Write to MH i2c: 01 00 00 14 17 2B [09:12:26]Write i2c OK [09:12:26]MH_I2C_Read... [09:12:26]Read from MH i2c: 01 [09:12:26]MH_I2C_Read... [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 14 17 00 00 00 00 00 FF 0F 40 [09:12:26]RasterBufferAndPrint [09:12:26]line *****ТОВАРНЫЙ ЧЕК***** [09:12:26]line АЗС-91 [09:12:26]line Партнер нефть [09:12:26]line 02508201610067 [09:12:26]line Кассир : Адишов И. [09:12:26]line Счет N : (1)506854 [09:12:26]line 14.05.2024 08:55 [09:12:26]line ПРОДАЖА [09:12:26]line ТРК (МРК, ГНК): 21 [09:12:26]line Вид ГСМ : 2710194210 [09:12:26]line ДТ-К-5 [09:12:26]line 15.000 x 74.70 [09:12:26]line ИТОГ: 1120.50 [09:12:26]line Тип оплаты: Талоны: Топливная Карта [09:12:26]line 02750 [09:12:26]line ______________________ [09:12:26]line (подпись) [09:12:26]written 0, free lines is 4095 [09:12:26]Write to MH i2c: 01 00 00 28 17 3F [09:12:26]Write i2c OK [09:12:26]MH_I2C_Read... [09:12:26]Read from MH i2c: 01 [09:12:26]MH_I2C_Read... [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 28 17 00 00 00 00 00 0D 0E 61 [09:12:26]RasterBufferAndPrint [09:12:26]line [09:12:26]line [09:12:26]line [09:12:26]line [09:12:26]line [09:12:26]written 0, free lines is 3598 [09:12:26]MH_Cut [09:12:26]Write to MH i2c: D1 01 00 2F 17 01 18 [09:12:26]Write i2c OK [09:12:26]MH_I2C_Read... [09:12:26]Read from MH i2c: D1 [09:12:26]MH_I2C_Read... [09:12:26]Read from MH i2c: D1 01 00 [09:12:26]MH_I2C_Read... [09:12:26]Read from MH i2c: D1 01 00 2F 17 00 17 [09:12:26]Write to MH i2c: 01 00 00 30 17 47 [09:12:26]Write i2c OK [09:12:26]MH_I2C_Read... [09:12:27]*** Cut start [09:12:27]*** Purtial cut [09:12:27]*** Stage 1: CUTSNS_PIN = 1 [09:12:27]OFD Sender: No OFD packet to send [09:12:27]Read from MH i2c: 01 [09:12:27]MH_I2C_Read... [09:12:27]Read from MH i2c: 01 07 00 [09:12:27]MH_I2C_Read... [09:12:27]*** Stop cut motor [09:12:27]*** Cut end [09:12:27]Read from MH i2c: 01 07 00 30 17 00 00 00 00 00 FF 0F 5C [09:12:27]process_action print_text done [09:12:27]requested_data is exist [09:12:27]produce_requested_data [09:12:27]requested_item fm.sn is exist - process it [09:12:27]wFMCommunicate request_size=4 [09:12:27]MH_SAM_APDU [09:12:27]CAPDU: 80 11 00 00 [09:12:27]Write to MH i2c: E2 08 00 31 17 80 11 00 00 00 00 00 00 C2 [09:12:27]Write i2c OK [09:12:27]MH_I2C_Read... [09:12:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:27]Read from MH i2c: E2 [09:12:27]MH_I2C_Read... [09:12:27]Read from MH i2c: E2 17 00 [09:12:27]MH_I2C_Read... [09:12:27]Read from MH i2c: E2 17 00 31 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 18 [09:12:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:12:27]wFMCommunicate OK [09:12:27]requested_item fd.num is exist - process it [09:12:27]SAM_PROTO_GetFieldsCounters [09:12:27]wFMCommunicate request_size=4 [09:12:27]MH_SAM_APDU [09:12:27]CAPDU: 80 13 00 00 [09:12:27]Write to MH i2c: E2 08 00 32 17 80 13 00 00 00 00 00 00 C5 [09:12:27]Write i2c OK [09:12:27]MH_I2C_Read... [09:12:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:27]Read from MH i2c: E2 [09:12:27]MH_I2C_Read... [09:12:27]Read from MH i2c: E2 62 00 [09:12:27]MH_I2C_Read... [09:12:27]Read from MH i2c: E2 62 00 32 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 CB 05 01 00 0E 04 04 00 63 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 6E [09:12: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 CB 05 01 00 0E 04 04 00 63 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:12:27]wFMCommunicate OK [09:12:27]SAM_PROTO_GetFieldsCounters done [09:12:27]requested_item shift.num is exist - process it [09:12:27]requested_item shift.opened is exist - process it [09:12:27]req_shift_opened [09:12:27]FM_GetShiftState [09:12:27]SAM_PROTO_GetShiftState [09:12:27]wFMCommunicate request_size=4 [09:12:27]MH_SAM_APDU [09:12:27]CAPDU: 80 13 01 00 [09:12:27]Write to MH i2c: E2 08 00 33 17 80 13 01 00 00 00 00 00 C7 [09:12:27]Write i2c OK [09:12:27]MH_I2C_Read... [09:12:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:27]Read from MH i2c: E2 [09:12:27]MH_I2C_Read... [09:12:27]Read from MH i2c: E2 0E 00 [09:12:27]MH_I2C_Read... [09:12:27]Read from MH i2c: E2 0E 00 33 17 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 8F [09:12:27]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:12:27]wFMCommunicate OK [09:12:27]SAM_PROTO_GetShiftState done [09:12:27]FM_GetShiftState done [09:12:27]req_shift_opened done [09:12:27]requested_item shift.open_date is exist - process it [09:12:27]req_shift_open_date [09:12:27]req_shift_open_date done [09:12:27]produce_requested_data done [09:12:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67019,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:12:27]process_action_free print_text [09:12:27]json_value_free [09:12:27]json_value_free done [09:12:27]process_json_proto returns [09:12:27]Send response to host [09:12:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67019,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:12:27]free response buf [09:12:27]execute_script done [09:12:27]execute_script returns [09:12:27]free content buf [09:12:27]Sock 9.Close socket [09:12:27]Sock 9.Thread stoped [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:49]accept exits with 8 [09:12:49]New connection [09:12:49]New thread 3066760548 created [09:12:49]Thread 3066617188 joined [09:12:49]Waiting for new connection... [09:12:49] Sock 8.Parse request [09:12:49]Sock 8.Check first char [09:12:49]Sock 8.First char is OK [09:12:49]request: POST /json_proto HTTP/1.0 [09:12:49]Method: POST [09:12:49]URL: /json_proto [09:12:49]Method is POST - this is cgi request [09:12:49]url: /json_proto [09:12:49]query_string will be loaded in cgi processing [09:12:49]execute_cgi json_proto POST (null) [09:12:49]execute_cgi path=json_proto method=POST [09:12:49]POST find Content-Length [09:12:49]Host: 172.17.41.195:8080 [09:12:49]Content-Length: 1179 [09:12:49]Content-Type: application/json [09:12:49] [09:12:49]POST finish read [09:12:49]Found Content-Length = 1179 [09:12: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)506853\u000A14.05.2024 08:55\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 34.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2539.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:49]execute_script... [09:12: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)506853\u000A14.05.2024 08:55\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 34.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2539.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:49]POST & json_proto [09:12:49]process_json_proto [09:12:49]json parsed OK: [09:12:49]protocol is kg_v1.0 [09:12:49]action value=print_text [09:12:49]process_action print_text [09:12:49]cmd_print_text [09:12:49]ExternCall_PrintAddStr [09:12:49]wPrintStart [09:12:49]Write to MH i2c: 01 00 00 34 17 4B [09:12:49]Write i2c OK [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: 01 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: 01 07 00 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: 01 07 00 34 17 00 00 00 00 00 FF 0F 60 [09:12:49]RasterBufferAndPrint [09:12:49]line *****ТОВАРНЫЙ ЧЕК***** [09:12:49]line АЗС-91 [09:12:49]line Партнер нефть [09:12:49]line 02508201610067 [09:12:49]line Кассир : Адишов И. [09:12:49]line Счет N : (1)506853 [09:12:49]line 14.05.2024 08:55 [09:12:49]line ПРОДАЖА [09:12:49]line ТРК (МРК, ГНК): 11 [09:12:49]line Вид ГСМ : 2710194210 [09:12:49]line ДТ-К-5 [09:12:49]line 34.000 x 74.70 [09:12:49]line ИТОГ: 2539.80 [09:12:49]line Тип оплаты: Талоны: Топливная Карта [09:12:49]line 02750 [09:12:49]line ______________________ [09:12:49]line (подпись) [09:12:49]written 0, free lines is 4095 [09:12:49]Write to MH i2c: 01 00 00 48 17 5F [09:12:49]Write i2c OK [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: 01 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: 01 07 00 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: 01 07 00 48 17 00 00 00 00 00 0D 0E 81 [09:12:49]RasterBufferAndPrint [09:12:49]line [09:12:49]line [09:12:49]line [09:12:49]line [09:12:49]line [09:12:49]written 0, free lines is 3599 [09:12:49]MH_Cut [09:12:49]Write to MH i2c: D1 01 00 4F 17 01 38 [09:12:49]Write i2c OK [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: D1 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: D1 01 00 [09:12:49]MH_I2C_Read... [09:12:49]Read from MH i2c: D1 01 00 4F 17 00 37 [09:12:49]Write to MH i2c: 01 00 00 50 17 67 [09:12:49]Write i2c OK [09:12:49]MH_I2C_Read... [09:12:49]*** Cut start [09:12:49]*** Purtial cut [09:12:49]*** CUTSNS_PIN = 0 [09:12:50]*** Stage 1: CUTSNS_PIN = 1 [09:12:51]Read from MH i2c: 01 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: 01 07 00 [09:12:51]MH_I2C_Read... [09:12:51]*** Stop cut motor [09:12:51]*** Cut end [09:12:51]Read from MH i2c: 01 07 00 50 17 00 00 00 00 00 FF 0F 7C [09:12:51]process_action print_text done [09:12:51]requested_data is exist [09:12:51]produce_requested_data [09:12:51]requested_item fm.sn is exist - process it [09:12:51]wFMCommunicate request_size=4 [09:12:51]MH_SAM_APDU [09:12:51]CAPDU: 80 11 00 00 [09:12:51]Write to MH i2c: E2 08 00 51 17 80 11 00 00 00 00 00 00 E2 [09:12:51]Write i2c OK [09:12:51]MH_I2C_Read... [09:12:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:51]Read from MH i2c: E2 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: E2 17 00 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: E2 17 00 51 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 38 [09:12: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:12:51]wFMCommunicate OK [09:12:51]requested_item fd.num is exist - process it [09:12:51]SAM_PROTO_GetFieldsCounters [09:12:51]wFMCommunicate request_size=4 [09:12:51]MH_SAM_APDU [09:12:51]CAPDU: 80 13 00 00 [09:12:51]Write to MH i2c: E2 08 00 52 17 80 13 00 00 00 00 00 00 E5 [09:12:51]Write i2c OK [09:12:51]MH_I2C_Read... [09:12:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:52]Read from MH i2c: E2 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: E2 62 00 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: E2 62 00 52 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 05 01 00 0E 04 04 00 63 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 8E [09:12: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 CB 05 01 00 0E 04 04 00 63 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:12:52]wFMCommunicate OK [09:12:52]SAM_PROTO_GetFieldsCounters done [09:12:52]requested_item shift.num is exist - process it [09:12:52]requested_item shift.opened is exist - process it [09:12:52]req_shift_opened [09:12:52]FM_GetShiftState [09:12:52]SAM_PROTO_GetShiftState [09:12:52]wFMCommunicate request_size=4 [09:12:52]MH_SAM_APDU [09:12:52]CAPDU: 80 13 01 00 [09:12:52]Write to MH i2c: E2 08 00 53 17 80 13 01 00 00 00 00 00 E7 [09:12:52]Write i2c OK [09:12:52]MH_I2C_Read... [09:12:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:52]Read from MH i2c: E2 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: E2 0E 00 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: E2 0E 00 53 17 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 AF [09:12:52]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:12:52]wFMCommunicate OK [09:12:52]SAM_PROTO_GetShiftState done [09:12:52]FM_GetShiftState done [09:12:52]req_shift_opened done [09:12:52]requested_item shift.open_date is exist - process it [09:12:52]req_shift_open_date [09:12:52]req_shift_open_date done [09:12:52]produce_requested_data done [09:12:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67019,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:12:52]process_action_free print_text [09:12:52]json_value_free [09:12:52]json_value_free done [09:12:52]process_json_proto returns [09:12:52]Send response to host [09:12:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67019,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:12:52]free response buf [09:12:52]execute_script done [09:12:52]execute_script returns [09:12:52]free content buf [09:12:52]Sock 8.Close socket [09:12:52]Sock 8.Thread stoped [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]accept exits with 9 [09:15:22]New connection [09:15:22]New thread 3066617188 created [09:15:22]Thread 3066760548 joined [09:15:22]Waiting for new connection... [09:15:22] Sock 9.Parse request [09:15:22]Sock 9.Check first char [09:15:22]Sock 9.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: 1179 [09:15:22]Content-Type: application/json [09:15:22] [09:15:22]POST finish read [09:15:22]Found Content-Length = 1179 [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)506855\u000A14.05.2024 08:58\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: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)506855\u000A14.05.2024 08:58\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: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 54 17 6B [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 54 17 00 00 00 00 00 FF 0F 80 [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)506855 [09:15:22]line 14.05.2024 08:58 [09:15:22]line ПРОДАЖА [09:15:22]line ТРК (МРК, ГНК): 11 [09:15:22]line Вид ГСМ : 2710194210 [09:15:22]line ДТ-К-5 [09:15:22]line 20.000 x 74.70 [09:15:22]line ИТОГ: 1494.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 68 17 7F [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 68 17 00 00 00 00 00 0D 0E A1 [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 3598 [09:15:22]MH_Cut [09:15:22]Write to MH i2c: D1 01 00 6F 17 01 58 [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 6F 17 00 57 [09:15:22]Write to MH i2c: 01 00 00 70 17 87 [09:15:22]Write i2c OK [09:15:22]MH_I2C_Read... [09:15:22]OFD Sender: No OFD packet to send [09:15:22]*** Cut start [09:15:22]*** Purtial cut [09:15:22]*** Stage 1: CUTSNS_PIN = 1 [09:15:23]Read from MH i2c: 01 [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 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: 01 07 00 70 17 00 00 00 00 00 FF 0F 9C [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 71 17 80 11 00 00 00 00 00 00 02 [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 71 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 58 [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 72 17 80 13 00 00 00 00 00 00 05 [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 72 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 CB 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [09: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 CB 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15: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 73 17 80 13 01 00 00 00 00 00 07 [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 73 17 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 CF [09:15:23]RAPDU: 09 00 01 66 AE 42 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":67019,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [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":67019,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [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 9.Close socket [09:15:23]Sock 9.Thread stoped [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:37]accept exits with 8 [09:16:37]New connection [09:16:37]New thread 3066760548 created [09:16:37]Thread 3066617188 joined [09:16:37]Waiting for new connection... [09:16:37] Sock 8.Parse request [09:16:37]Sock 8.Check first char [09:16:37]Sock 8.First char is OK [09:16:37]request: POST /json_proto HTTP/1.0 [09:16:37]Method: POST [09:16:37]URL: /json_proto [09:16:37]Method is POST - this is cgi request [09:16:37]url: /json_proto [09:16:37]query_string will be loaded in cgi processing [09:16:37]execute_cgi json_proto POST (null) [09:16:37]execute_cgi path=json_proto method=POST [09:16:37]POST find Content-Length [09:16:37]Host: 172.17.41.195:8080 [09:16:37]Content-Length: 1178 [09:16:37]Content-Type: application/json [09:16:37] [09:16:37]POST finish read [09:16:37]Found Content-Length = 1178 [09:16: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)506856\u000A14.05.2024 08:59\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:16:37]execute_script... [09:16: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)506856\u000A14.05.2024 08:59\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:16:37]POST & json_proto [09:16:37]process_json_proto [09:16:37]json parsed OK: [09:16:37]protocol is kg_v1.0 [09:16:37]action value=print_text [09:16:37]process_action print_text [09:16:37]cmd_print_text [09:16:37]ExternCall_PrintAddStr [09:16:37]wPrintStart [09:16:37]Write to MH i2c: 01 00 00 74 17 8B [09:16:37]Write i2c OK [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: 01 [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: 01 07 00 [09:16:37]MH_I2C_Read... [09:16:37]Read from MH i2c: 01 07 00 74 17 00 00 00 00 00 FF 0F A0 [09:16:37]RasterBufferAndPrint [09:16:37]line *****ТОВАРНЫЙ ЧЕК***** [09:16:37]line АЗС-91 [09:16:37]line Партнер нефть [09:16:37]line 02508201610067 [09:16:37]line Кассир : Адишов И. [09:16:37]line Счет N : (1)506856 [09:16:37]line 14.05.2024 08:59 [09:16:37]line ПРОДАЖА [09:16:37]line ТРК (МРК, ГНК): 21 [09:16:37]line Вид ГСМ : 2710194210 [09:16:37]line ДТ-К-5 [09:16:37]line 10.000 x 74.70 [09:16:37]line ИТОГ: 747.00 [09:16:37]line Тип оплаты: Талоны: Топливная Карта [09:16:37]line 02750 [09:16:37]line ______________________ [09:16:37]line (подпись) [09:16:37]written 0, free lines is 4095 [09:16:38]Write to MH i2c: 01 00 00 88 17 9F [09:16:38]Write i2c OK [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: 01 [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: 01 07 00 [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: 01 07 00 88 17 00 00 00 00 00 0C 0E C0 [09:16:38]RasterBufferAndPrint [09:16:38]line [09:16:38]line [09:16:38]line [09:16:38]line [09:16:38]line [09:16:38]written 0, free lines is 3597 [09:16:38]MH_Cut [09:16:38]Write to MH i2c: D1 01 00 8F 17 01 78 [09:16:38]Write i2c OK [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: D1 [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: D1 01 00 [09:16:38]MH_I2C_Read... [09:16:38]Read from MH i2c: D1 01 00 8F 17 00 77 [09:16:38]Write to MH i2c: 01 00 00 90 17 A7 [09:16:38]Write i2c OK [09:16:38]MH_I2C_Read... [09:16:38]*** Cut start [09:16:38]*** Purtial cut [09:16:38]*** CUTSNS_PIN = 0 [09:16:38]*** Stage 1: CUTSNS_PIN = 1 [09:16:40]Read from MH i2c: 01 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: 01 07 00 [09:16:40]MH_I2C_Read... [09:16:40]*** Stop cut motor [09:16:40]*** Cut end [09:16:40]Read from MH i2c: 01 07 00 90 17 00 00 00 00 00 FF 0F BC [09:16:40]process_action print_text done [09:16:40]requested_data is exist [09:16:40]produce_requested_data [09:16:40]requested_item fm.sn is exist - process it [09:16:40]wFMCommunicate request_size=4 [09:16:40]MH_SAM_APDU [09:16:40]CAPDU: 80 11 00 00 [09:16:40]Write to MH i2c: E2 08 00 91 17 80 11 00 00 00 00 00 00 22 [09:16:40]Write i2c OK [09:16:40]MH_I2C_Read... [09:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:40]Read from MH i2c: E2 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 17 00 [09:16:40]MH_I2C_Read... [09:16:40]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 [09:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:16:40]wFMCommunicate OK [09:16:40]requested_item fd.num is exist - process it [09:16:40]SAM_PROTO_GetFieldsCounters [09:16:40]wFMCommunicate request_size=4 [09:16:40]MH_SAM_APDU [09:16:40]CAPDU: 80 13 00 00 [09:16:40]Write to MH i2c: E2 08 00 92 17 80 13 00 00 00 00 00 00 25 [09:16:40]Write i2c OK [09:16:40]MH_I2C_Read... [09:16:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:40]Read from MH i2c: E2 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 62 00 [09:16:40]MH_I2C_Read... [09:16:40]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 CB 05 01 00 0E 04 04 00 63 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 CE [09:16:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CB 05 01 00 0E 04 04 00 63 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:16:40]wFMCommunicate OK [09:16:40]SAM_PROTO_GetFieldsCounters done [09:16:40]requested_item shift.num is exist - process it [09:16:40]requested_item shift.opened is exist - process it [09:16:40]req_shift_opened [09:16:40]FM_GetShiftState [09:16:40]SAM_PROTO_GetShiftState [09:16:40]wFMCommunicate request_size=4 [09:16:40]MH_SAM_APDU [09:16:40]CAPDU: 80 13 01 00 [09:16:40]Write to MH i2c: E2 08 00 93 17 80 13 01 00 00 00 00 00 27 [09:16:40]Write i2c OK [09:16:40]MH_I2C_Read... [09:16:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:40]Read from MH i2c: E2 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 0E 00 [09:16:40]MH_I2C_Read... [09:16:40]Read from MH i2c: E2 0E 00 93 17 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 EF [09:16:40]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:16:40]wFMCommunicate OK [09:16:40]SAM_PROTO_GetShiftState done [09:16:40]FM_GetShiftState done [09:16:40]req_shift_opened done [09:16:40]requested_item shift.open_date is exist - process it [09:16:40]req_shift_open_date [09:16:40]req_shift_open_date done [09:16:40]produce_requested_data done [09:16:40]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67019,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:16:40]process_action_free print_text [09:16:40]json_value_free [09:16:40]json_value_free done [09:16:40]process_json_proto returns [09:16:40]Send response to host [09:16:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67019,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:16:40]free response buf [09:16:40]execute_script done [09:16:40]execute_script returns [09:16:40]free content buf [09:16:40]Sock 8.Close socket [09:16:40]Sock 8.Thread stoped [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:19]recv_with_timeout no data received [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:20]accept exits with 9 [09:19:20]New connection [09:19:20]New thread 3066617188 created [09:19:20]Thread 3066760548 joined [09:19:20]Waiting for new connection... [09:19:20] Sock 9.Parse request [09:19:20]Sock 9.Check first char [09:19:20]Sock 9.First char is OK [09:19:20]request: POST /json_proto HTTP/1.0 [09:19:20]Method: POST [09:19:20]URL: /json_proto [09:19:20]Method is POST - this is cgi request [09:19:20]url: /json_proto [09:19:20]query_string will be loaded in cgi processing [09:19:20]execute_cgi json_proto POST (null) [09:19:20]execute_cgi path=json_proto method=POST [09:19:20]POST find Content-Length [09:19:20]Host: 172.17.41.195:8080 [09:19:20]Content-Length: 1179 [09:19:20]Content-Type: application/json [09:19:20] [09:19:20]POST finish read [09:19:20]Found Content-Length = 1179 [09:19:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506857\u000A14.05.2024 09: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 30.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2241.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:20]execute_script... [09:19:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506857\u000A14.05.2024 09: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 30.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2241.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:20]POST & json_proto [09:19:20]process_json_proto [09:19:20]json parsed OK: [09:19:20]protocol is kg_v1.0 [09:19:20]action value=print_text [09:19:20]process_action print_text [09:19:20]cmd_print_text [09:19:20]ExternCall_PrintAddStr [09:19:20]wPrintStart [09:19:20]Write to MH i2c: 01 00 00 94 17 AB [09:19:20]Write i2c OK [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: 01 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: 01 07 00 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: 01 07 00 94 17 00 00 00 00 00 FF 0F C0 [09:19:20]RasterBufferAndPrint [09:19:20]line *****ТОВАРНЫЙ ЧЕК***** [09:19:20]line АЗС-91 [09:19:20]line Партнер нефть [09:19:20]line 02508201610067 [09:19:20]line Кассир : Адишов И. [09:19:20]line Счет N : (1)506857 [09:19:20]line 14.05.2024 09:02 [09:19:20]line ПРОДАЖА [09:19:20]line ТРК (МРК, ГНК): 41 [09:19:20]line Вид ГСМ : 2710194210 [09:19:20]line ДТ-К-5 [09:19:20]line 30.000 x 74.70 [09:19:20]line ИТОГ: 2241.00 [09:19:20]line Тип оплаты: Талоны: Топливная Карта [09:19:20]line 02750 [09:19:20]line ______________________ [09:19:20]line (подпись) [09:19:20]written 0, free lines is 4095 [09:19:20]Write to MH i2c: 01 00 00 A8 17 BF [09:19:20]Write i2c OK [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: 01 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: 01 07 00 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: 01 07 00 A8 17 00 00 00 00 00 0D 0E E1 [09:19:20]RasterBufferAndPrint [09:19:20]line [09:19:20]line [09:19:20]line [09:19:20]line [09:19:20]line [09:19:20]written 0, free lines is 3598 [09:19:20]MH_Cut [09:19:20]Write to MH i2c: D1 01 00 AF 17 01 98 [09:19:20]Write i2c OK [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: D1 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: D1 01 00 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: D1 01 00 AF 17 00 97 [09:19:20]Write to MH i2c: 01 00 00 B0 17 C7 [09:19:20]Write i2c OK [09:19:20]MH_I2C_Read... [09:19:21]*** Cut start [09:19:21]*** Purtial cut [09:19:21]*** Stage 1: CUTSNS_PIN = 1 [09:19:21]Read from MH i2c: 01 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: 01 07 00 [09:19:21]MH_I2C_Read... [09:19:21]*** Stop cut motor [09:19:21]*** Cut end [09:19:21]Read from MH i2c: 01 07 00 B0 17 00 00 00 00 00 FF 0F DC [09:19:21]process_action print_text done [09:19:21]requested_data is exist [09:19:21]produce_requested_data [09:19:21]requested_item fm.sn is exist - process it [09:19:21]wFMCommunicate request_size=4 [09:19:21]MH_SAM_APDU [09:19:21]CAPDU: 80 11 00 00 [09:19:21]Write to MH i2c: E2 08 00 B1 17 80 11 00 00 00 00 00 00 42 [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:21]Read from MH i2c: E2 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 17 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 17 00 B1 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 98 [09:19: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:19:21]wFMCommunicate OK [09:19:21]requested_item fd.num is exist - process it [09:19:21]SAM_PROTO_GetFieldsCounters [09:19:21]wFMCommunicate request_size=4 [09:19:21]MH_SAM_APDU [09:19:21]CAPDU: 80 13 00 00 [09:19:21]Write to MH i2c: E2 08 00 B2 17 80 13 00 00 00 00 00 00 45 [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:21]Read from MH i2c: E2 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 62 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 62 00 B2 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 CB 05 01 00 0E 04 04 00 63 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 EE [09:19: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 CB 05 01 00 0E 04 04 00 63 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:19:21]wFMCommunicate OK [09:19:21]SAM_PROTO_GetFieldsCounters done [09:19:21]requested_item shift.num is exist - process it [09:19:21]requested_item shift.opened is exist - process it [09:19:21]req_shift_opened [09:19:21]FM_GetShiftState [09:19:21]SAM_PROTO_GetShiftState [09:19:21]wFMCommunicate request_size=4 [09:19:21]MH_SAM_APDU [09:19:21]CAPDU: 80 13 01 00 [09:19:21]Write to MH i2c: E2 08 00 B3 17 80 13 01 00 00 00 00 00 47 [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:21]Read from MH i2c: E2 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 0E 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 0E 00 B3 17 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 0F [09:19:21]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:19:21]wFMCommunicate OK [09:19:21]SAM_PROTO_GetShiftState done [09:19:21]FM_GetShiftState done [09:19:21]req_shift_opened done [09:19:21]requested_item shift.open_date is exist - process it [09:19:21]req_shift_open_date [09:19:21]req_shift_open_date done [09:19:21]produce_requested_data done [09:19:21]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67019,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:19:21]process_action_free print_text [09:19:21]json_value_free [09:19:21]json_value_free done [09:19:21]process_json_proto returns [09:19:21]Send response to host [09:19:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67019,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:19:21]free response buf [09:19:21]execute_script done [09:19:21]execute_script returns [09:19:21]free content buf [09:19:21]Sock 9.Close socket [09:19:21]Sock 9.Thread stoped [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:18]accept exits with 8 [09:20:18]New connection [09:20:18]New thread 3066760548 created [09:20:18]Thread 3066617188 joined [09:20:18]Waiting for new connection... [09:20:18] Sock 8.Parse request [09:20:18]Sock 8.Check first char [09:20:18]Sock 8.First char is OK [09:20:18]request: POST /json_proto HTTP/1.0 [09:20:18]Method: POST [09:20:18]URL: /json_proto [09:20:18]Method is POST - this is cgi request [09:20:18]url: /json_proto [09:20:18]query_string will be loaded in cgi processing [09:20:18]execute_cgi json_proto POST (null) [09:20:18]execute_cgi path=json_proto method=POST [09:20:18]POST find Content-Length [09:20:18]Host: 172.17.41.195:8080 [09:20:18]Content-Length: 675 [09:20:18]Content-Type: application/json [09:20:18] [09:20:18]POST finish read [09:20:18]Found Content-Length = 675 [09:20:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506858", "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" ] } } [09:20:18]execute_script... [09:20: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)506858", "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" ] } } [09:20:18]POST & json_proto [09:20:18]process_json_proto [09:20:18]json parsed OK: [09:20:18]protocol is kg_v1.0 [09:20:18]action value=close_receipt [09:20:18]process_action close_receipt [09:20:18]cmd_close_receipt [09:20:18]MH_GetDate [09:20:18]Write to MH i2c: F0 00 00 B4 17 BA [09:20:18]Write i2c OK [09:20:18]MH_I2C_Read... [09:20:18]Read from MH i2c: F0 [09:20:18]MH_I2C_Read... [09:20:18]Read from MH i2c: F0 09 00 [09:20:18]MH_I2C_Read... [09:20:18]Read from MH i2c: F0 09 00 B4 17 00 D6 2C 43 66 FC 21 6F 64 5E [09:20:18]GetLastDocTimeStamp 1715677883 [09:20:18]current date 1715678422 [09:20:18]FM_GetShiftState [09:20:18]SAM_PROTO_GetShiftState [09:20:18]wFMCommunicate request_size=4 [09:20:18]MH_SAM_APDU [09:20:18]CAPDU: 80 13 01 00 [09:20:18]Write to MH i2c: E2 08 00 B5 17 80 13 01 00 00 00 00 00 49 [09:20:18]Write i2c OK [09:20:18]MH_I2C_Read... [09:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:18]Read from MH i2c: E2 [09:20:18]MH_I2C_Read... [09:20:18]Read from MH i2c: E2 0E 00 [09:20:18]MH_I2C_Read... [09:20:18]Read from MH i2c: E2 0E 00 B5 17 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 11 [09:20:18]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:20:18]wFMCommunicate OK [09:20:18]SAM_PROTO_GetShiftState done [09:20:18]FM_GetShiftState done [09:20:18]opened in 1715646054 [09:20:18]opened+sec_in_day 1715732454 [09:20:18]quantity*price = 100005 [09:20:18]sum+1 = 100006 [09:20:18]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 СНО: Общий режим Чек 27 14.05.2024 09:20 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67020 ФПД: 157672873516263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T092022&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67020&fm=157672873516263&tin=02508201610067®Number=0000000000091845&sum=100000 [09:20:19]StoreToDocumentArchive [09:20:19]shift 355 fd 67020 [09:20:19]save to /storage/0355/doc_00067020 [09:20:19]save last doc name /storage/0355/doc_00067020 to /storage/kkm_last_doc_name [09:20:19]save OK [09:20:19]Clear old archive folders... [09:20:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:20:19]tlvbuf is 0038D650 [09:20:19]SAM_PROTO_ClearQueue [09:20:19]wFMCommunicate request_size=4 [09:20:19]MH_SAM_APDU [09:20:19]CAPDU: 80 09 00 00 [09:20:19]Write to MH i2c: E2 08 00 C2 17 80 09 00 00 00 00 00 00 4B [09:20:19]Write i2c OK [09:20:19]MH_I2C_Read... [09:20:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:19]Read from MH i2c: E2 [09:20:19]MH_I2C_Read... [09:20:19]Read from MH i2c: E2 03 00 [09:20:19]MH_I2C_Read... [09:20:19]Read from MH i2c: E2 03 00 C2 17 00 90 00 4D [09:20:19]RAPDU: 90 00 [09:20:19]wFMCommunicate OK [09:20:19]SAM_PROTO_ClearQueue done [09:20:19]KKMCreateOFDPacket [09:20:19]OFDProtocolAddRootSTLVToBuf [09:20:19]FM_MakeSignedData [09:20:19]FM_MakeSignedData [09:20:19]SAM_PROTO_SignData [09:20:19]wFMCommunicate request_size=4 [09:20:19]MH_SAM_APDU [09:20:19]CAPDU: 80 0D 01 02 [09:20:19]Write to MH i2c: E2 08 00 C3 17 80 0D 01 02 00 00 00 00 53 [09:20:19]Write i2c OK [09:20:19]MH_I2C_Read... [09:20:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:19]Read from MH i2c: E2 [09:20:19]MH_I2C_Read... [09:20:19]Read from MH i2c: E2 03 00 [09:20:19]MH_I2C_Read... [09:20:19]Read from MH i2c: E2 03 00 C3 17 00 90 00 4E [09:20:19]RAPDU: 90 00 [09:20:19]wFMCommunicate OK [09:20:19]wFMCommunicate request_size=255 [09:20:19]MH_SAM_APDU [09:20:19]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 1B 00 00 00 F4 03 04 00 D6 2C 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CC 05 01 00 35 04 06 00 [09:20:19]Write to MH i2c: E2 02 01 C4 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 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 1B 00 00 00 F4 03 04 00 D6 2C 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CC 05 01 00 35 04 06 00 00 00 8C [09:20:19]Write i2c OK [09:20:19]MH_I2C_Read... [09:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:20]Read from MH i2c: E2 [09:20:20]MH_I2C_Read... [09:20:20]Read from MH i2c: E2 03 00 [09:20:20]MH_I2C_Read... [09:20:20]Read from MH i2c: E2 03 00 C4 17 00 90 00 4F [09:20:20]RAPDU: 90 00 [09:20:20]wFMCommunicate OK [09:20:20]wFMCommunicate request_size=11 [09:20:20]MH_SAM_APDU [09:20:20]CAPDU: 80 0D 02 02 06 8F 67 13 9D DC E7 [09:20:20]Write to MH i2c: E2 0E 00 C5 17 80 0D 02 02 06 00 8F 67 13 9D DC E7 00 00 CB [09:20:20]Write i2c OK [09:20:20]MH_I2C_Read... [09:20:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:20]Read from MH i2c: E2 [09:20:20]MH_I2C_Read... [09:20:20]Read from MH i2c: E2 03 00 [09:20:20]MH_I2C_Read... [09:20:20]Read from MH i2c: E2 03 00 C5 17 00 90 00 50 [09:20:20]RAPDU: 90 00 [09:20:20]wFMCommunicate OK [09:20:20]wFMCommunicate request_size=4 [09:20:20]MH_SAM_APDU [09:20:20]CAPDU: 80 0D 03 02 [09:20:20]Write to MH i2c: E2 08 00 C6 17 80 0D 03 02 00 00 00 00 58 [09:20:20]Write i2c OK [09:20:20]MH_I2C_Read... [09:20:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:20]Read from MH i2c: E2 [09:20:20]MH_I2C_Read... [09:20:20]Read from MH i2c: E2 0B 00 [09:20:20]MH_I2C_Read... [09:20:20]Read from MH i2c: E2 0B 00 C6 17 00 F8 FA 0D 69 78 CB 48 B1 90 00 FD [09:20:20]RAPDU: F8 FA 0D 69 78 CB 48 B1 90 00 [09:20:20]wFMCommunicate OK [09:20:20]SAM_PROTO_SignData done [09:20:20]FM_MakeSignedData done [09:20:20]CreateOFDProtocolMessage [09:20:20]wFMCommunicate request_size=4 [09:20:20]MH_SAM_APDU [09:20:20]CAPDU: 80 11 00 00 [09:20:20]Write to MH i2c: E2 08 00 C7 17 80 11 00 00 00 00 00 00 58 [09:20:20]Write i2c OK [09:20:20]MH_I2C_Read... [09:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:20]Read from MH i2c: E2 [09:20:20]MH_I2C_Read... [09:20:20]Read from MH i2c: E2 17 00 [09:20:20]MH_I2C_Read... [09:20:20]Read from MH i2c: E2 17 00 C7 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AE [09:20:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:20:20]wFMCommunicate OK [09:20:20]CreateOFDProtocolMessage done [09:20:20]OFDSenderStorePacket 67020 [09:20:20]StoreOFDPacket docnum=67020 [09:20: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 A3 5C 08 01 2E 57 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 1B 00 00 00 F4 03 04 00 D6 2C 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CC 05 01 00 35 04 06 00 8F 67 13 9D DC E7 F8 FA 0D 69 78 CB 48 B1 [09:20:20]CheckFolder [09:20:20]dirname=/storage/ofd_packets [09:20:20]CheckFolder done [09:20:20]ProducePacketName [09:20:20]name=ofd_packets/00067020 [09:20:20]NVStorageSaveData ofd_packets/00067020 [09:20:20]File name is /storage/ofd_packets/00067020 [09:20:20]Write 302 bytes [09:20:20]NVStorageSaveData done [09:20:20]OFDSenderStorePacket done [09:20:20]KKMCreateOFDPacket done [09:20:20]NVStorageSaveData kkm_last_timestamp [09:20:20]File name is /storage/kkm_last_timestamp [09:20:20]Write 4 bytes [09:20:20]NVStorageSaveData done [09:20:20]ExternCall_PrintAddStr [09:20:20]wPrintStart [09:20:20]Write to MH i2c: 01 00 00 C8 17 DF [09:20:20]Write i2c OK [09:20:20]MH_I2C_Read... [09:20:20]Read from MH i2c: 01 [09:20:20]MH_I2C_Read... [09:20:20]Read from MH i2c: 01 07 00 [09:20:20]MH_I2C_Read... [09:20:20]Read from MH i2c: 01 07 00 C8 17 00 00 00 00 00 FF 0F F4 [09:20:20]RasterBufferAndPrint [09:20:20]line Счет N : (1)506858 [09:20:20]line ИНН: 02508201610067 [09:20:20]line Контрольно-Кассовый Чек [09:20:20]line ПРОДАЖА [09:20:20]line ТРК (МРК, ГНК) : 32 [09:20:20]line Товар: 2710124130 [09:20:20]line Super-92-К-5 [09:20:20]line 14.750 * 67.80 [09:20:20]line = 1000.05 [09:20:20]line НДС 12% НСП 1% [09:20:20]line > о реализуемом товаре [09:20:20]line ОКРУГЛЕНИЕ: -0.05 [09:20:20]line ИТОГО: 1000.00 [09:20:20]line Внесено: 1000.00 [09:20:20]line СДАЧА: 0.00 [09:20:20]line НСП 1% : 8.85 [09:20:20]line НДС 12% : 106.20 [09:20:20]line Наличными: 1000.00 [09:20:20]line Безнал.: 0.00 [09:20:20]line Место: АЗС № 91 "Партнер Нефть" [09:20:20]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:20:20]line СНО: Общий режим [09:20:20]line Чек 27 14.05.2024 09:20 [09:20:20]line Смена: 355 ФФД: 1.0 [09:20:20]line ЗНМ: 0300000119 [09:20:20]line РНМ: 0000000000091845 [09:20:20]line Версия ККМ: 001 [09:20:20]line ФМ: 0000000000871829 [09:20:20]line ФД: 67020 [09:20:20]line ФПД: 157672873516263 [09:20:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T092022&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67020&fm=157672873516263&tin=02508201610067®Number=0000000000091845&sum=100000 [09:20:20]OFD Sender: Processing packet 67020 [packets to send 35, broken 34] [09:20:20]ProducePacketName [09:20:20]name=ofd_packets/00067020 [09:20:20]OFD Sender: To server: pG, [09:20:20]CommunicateWithHost lk.salyk.kg:30040 [09:20:20]ConnectInit lk.salyk.kg [09:20:20]written 0, free lines is 4095 [09:20:20]Connected sock=10 [09:20:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 A3 5C 08 01 2E 57 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 1B 00 00 00 F4 03 04 00 D6 2C 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CC 05 01 00 35 04 06 00 8F 67 13 9D DC E7 F8 FA 0D 69 78 CB 48 B1 [09:20:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 8A 21 47 00 F8 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CC 05 01 00 F4 03 04 00 B6 D4 42 66 B6 04 01 00 00 12 15 69 D9 C8 23 1C EE [09:20:20]CommunicateWithHost err = 0 [09:20:20]CheckOFDResponse [09:20:20]1017 (14) - 77093643461234 [09:20:20]1041 (16) - 0000000000871829 [09:20:20]1040 (4) - 67020 [09:20:20]1012 (4) - 14.05.2024 03:04 [09:20:20]1206 (1) - 0 [09:20:20]OFD Sender: Remove packet 67020 [09:20:20]ProducePacketName [09:20:20]name=ofd_packets/00067020 [09:20:20]NVStorageDeleteData [09:20:21]Write to MH i2c: 01 00 00 F2 17 09 [09:20:21]Write i2c OK [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: 01 [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: 01 07 00 [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: 01 07 00 F2 17 00 00 00 00 00 C5 0C E1 [09:20:21]RasterBufferAndPrint [09:20:21]line [09:20:21]line [09:20:21]line [09:20:21]line [09:20:21]line [09:20:21]written 0, free lines is 3275 [09:20:21]MH_Cut [09:20:21]Write to MH i2c: D1 01 00 F9 17 01 E2 [09:20:21]Write i2c OK [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: D1 [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: D1 01 00 [09:20:21]MH_I2C_Read... [09:20:21]Read from MH i2c: D1 01 00 F9 17 00 E1 [09:20:21]Write to MH i2c: 01 00 00 FA 17 11 [09:20:21]Write i2c OK [09:20:21]MH_I2C_Read... [09:20:21]OFD Sender: No OFD packet to send [09:20:21]*** Cut start [09:20:21]*** Purtial cut [09:20:21]*** CUTSNS_PIN = 0 [09:20:22]*** Stage 1: CUTSNS_PIN = 1 [09:20:23]Read from MH i2c: 01 [09:20:23]MH_I2C_Read... [09:20:23]*** Stop cut motor [09:20:23]*** Cut end [09:20:23]Read from MH i2c: 01 07 00 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: 01 07 00 FA 17 00 00 00 00 00 FF 0F 26 [09:20:23]process_action close_receipt done [09:20:23]requested_data is exist [09:20:23]produce_requested_data [09:20:23]requested_item fm.sn is exist - process it [09:20:23]wFMCommunicate request_size=4 [09:20:23]MH_SAM_APDU [09:20:23]CAPDU: 80 11 00 00 [09:20:23]Write to MH i2c: E2 08 00 FB 17 80 11 00 00 00 00 00 00 8C [09:20:23]Write i2c OK [09:20:23]MH_I2C_Read... [09:20:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:23]Read from MH i2c: E2 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 17 00 [09:20:23]MH_I2C_Read... [09:20:23]Read from MH i2c: E2 17 00 FB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E2 [09:20: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:20:23]wFMCommunicate OK [09:20:23]requested_item fd.num is exist - process it [09:20:23]SAM_PROTO_GetFieldsCounters [09:20:23]wFMCommunicate request_size=4 [09:20:23]MH_SAM_APDU [09:20:23]CAPDU: 80 13 00 00 [09:20:23]Write to MH i2c: E2 08 00 FC 17 80 13 00 00 00 00 00 00 8F [09:20:23]Write i2c OK [09:20:23]MH_I2C_Read... [09:20:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:24]Read from MH i2c: E2 [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: E2 62 00 [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: E2 62 00 FC 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 CC 05 01 00 0E 04 04 00 63 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 3C [09:20: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 CC 05 01 00 0E 04 04 00 63 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:20:24]wFMCommunicate OK [09:20:24]SAM_PROTO_GetFieldsCounters done [09:20:24]requested_item shift.num is exist - process it [09:20:24]requested_item shift.opened is exist - process it [09:20:24]req_shift_opened [09:20:24]FM_GetShiftState [09:20:24]SAM_PROTO_GetShiftState [09:20:24]wFMCommunicate request_size=4 [09:20:24]MH_SAM_APDU [09:20:24]CAPDU: 80 13 01 00 [09:20:24]Write to MH i2c: E2 08 00 FD 17 80 13 01 00 00 00 00 00 91 [09:20:24]Write i2c OK [09:20:24]MH_I2C_Read... [09:20:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:24]Read from MH i2c: E2 [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: E2 0E 00 [09:20:24]MH_I2C_Read... [09:20:24]Read from MH i2c: E2 0E 00 FD 17 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 59 [09:20:24]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:20:24]wFMCommunicate OK [09:20:24]SAM_PROTO_GetShiftState done [09:20:24]FM_GetShiftState done [09:20:24]req_shift_opened done [09:20:24]requested_item shift.open_date is exist - process it [09:20:24]req_shift_open_date [09:20:24]req_shift_open_date done [09:20:24]produce_requested_data done [09:20:24]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67020,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:20:24]process_action_free close_receipt [09:20:24]json_value_free [09:20:24]json_value_free done [09:20:24]process_json_proto returns [09:20:24]Send response to host [09:20:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67020,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:20:24]free response buf [09:20:24]execute_script done [09:20:24]execute_script returns [09:20:24]free content buf [09:20:24]Sock 8.Close socket [09:20:24]Sock 8.Thread stoped [09:20:26]OFD Sender: No OFD packet to send [09:20:31]OFD Sender: No OFD packet to send [09:20:36]OFD Sender: No OFD packet to send [09:20:41]OFD Sender: No OFD packet to send [09:20:46]OFD Sender: No OFD packet to send [09:20:51]OFD Sender: No OFD packet to send [09:20:56]OFD Sender: No OFD packet to send [09:21:01]OFD Sender: No OFD packet to send [09:21:06]OFD Sender: No OFD packet to send [09:21:11]OFD Sender: No OFD packet to send [09:21:16]OFD Sender: No OFD packet to send [09:21:21]OFD Sender: No OFD packet to send [09:21:26]OFD Sender: No OFD packet to send [09:21:31]OFD Sender: No OFD packet to send [09:21:36]OFD Sender: No OFD packet to send [09:21:39]recv_with_timeout no data received [09:21:41]OFD Sender: No OFD packet to send [09:21:46]OFD Sender: No OFD packet to send [09:21:51]OFD Sender: No OFD packet to send [09:21:56]OFD Sender: No OFD packet to send [09:22:01]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:11]OFD Sender: No OFD packet to send [09:22:16]OFD Sender: No OFD packet to send [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22:31]OFD Sender: No OFD packet to send [09:22:36]OFD Sender: No OFD packet to send [09:22:41]OFD Sender: No OFD packet to send [09:22:46]OFD Sender: No OFD packet to send [09:22:51]OFD Sender: No OFD packet to send [09:22:56]OFD Sender: No OFD packet to send [09:23:01]OFD Sender: No OFD packet to send [09:23:06]OFD Sender: No OFD packet to send [09:23:10]recv_with_timeout no data received [09:23:11]OFD Sender: No OFD packet to send [09:23:12]accept exits with 9 [09:23:12]New connection [09:23:12]New thread 3066617188 created [09:23:12] Sock 9.Parse request [09:23:12]Thread 3066760548 joined [09:23:12]Sock 9.Check first char [09:23:12]Waiting for new connection... [09:23:12]Sock 9.First char is OK [09:23:12]request: POST /json_proto HTTP/1.0 [09:23:12]Method: POST [09:23:12]URL: /json_proto [09:23:12]Method is POST - this is cgi request [09:23:12]url: /json_proto [09:23:12]query_string will be loaded in cgi processing [09:23:12]execute_cgi json_proto POST (null) [09:23:12]execute_cgi path=json_proto method=POST [09:23:12]POST find Content-Length [09:23:12]Host: 172.17.41.195:8080 [09:23:12]Content-Length: 1179 [09:23:12]Content-Type: application/json [09:23:12] [09:23:12]POST finish read [09:23:12]Found Content-Length = 1179 [09:23: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)506859\u000A14.05.2024 09: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 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:23:12]execute_script... [09:23: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)506859\u000A14.05.2024 09: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 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:23:12]POST & json_proto [09:23:12]process_json_proto [09:23:12]json parsed OK: [09:23:12]protocol is kg_v1.0 [09:23:12]action value=print_text [09:23:12]process_action print_text [09:23:12]cmd_print_text [09:23:12]ExternCall_PrintAddStr [09:23:12]wPrintStart [09:23:12]Write to MH i2c: 01 00 00 FE 17 15 [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: 01 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: 01 07 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: 01 07 00 FE 17 00 00 00 00 00 FF 0F 2A [09:23:12]RasterBufferAndPrint [09:23:12]line *****ТОВАРНЫЙ ЧЕК***** [09:23:12]line АЗС-91 [09:23:12]line Партнер нефть [09:23:12]line 02508201610067 [09:23:12]line Кассир : Адишов И. [09:23:12]line Счет N : (1)506859 [09:23:12]line 14.05.2024 09:05 [09:23:12]line ПРОДАЖА [09:23:12]line ТРК (МРК, ГНК): 21 [09:23:12]line Вид ГСМ : 2710194210 [09:23:12]line ДТ-К-5 [09:23:12]line 25.000 x 74.70 [09:23:12]line ИТОГ: 1867.50 [09:23:12]line Тип оплаты: Талоны: Топливная Карта [09:23:12]line 02750 [09:23:12]line ______________________ [09:23:12]line (подпись) [09:23:12]written 0, free lines is 4095 [09:23:12]Write to MH i2c: 01 00 00 12 18 2A [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: 01 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: 01 07 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: 01 07 00 12 18 00 00 00 00 00 0E 0E 4D [09:23:12]RasterBufferAndPrint [09:23:12]line [09:23:12]line [09:23:12]line [09:23:12]line [09:23:12]line [09:23:12]written 0, free lines is 3600 [09:23:12]MH_Cut [09:23:12]Write to MH i2c: D1 01 00 19 18 01 03 [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: D1 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: D1 01 00 [09:23:12]MH_I2C_Read... [09:23:12]Read from MH i2c: D1 01 00 19 18 00 02 [09:23:12]Write to MH i2c: 01 00 00 1A 18 32 [09:23:12]Write i2c OK [09:23:12]MH_I2C_Read... [09:23:13]*** Cut start [09:23:13]*** Purtial cut [09:23:13]*** Stage 1: CUTSNS_PIN = 1 [09:23:13]Read from MH i2c: 01 [09:23:13]MH_I2C_Read... [09:23:13]*** Stop cut motor [09:23:13]*** Cut end [09:23:13]Read from MH i2c: 01 07 00 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: 01 07 00 1A 18 00 00 00 00 00 FF 0F 47 [09:23:13]process_action print_text done [09:23:13]requested_data is exist [09:23:13]produce_requested_data [09:23:13]requested_item fm.sn is exist - process it [09:23:13]wFMCommunicate request_size=4 [09:23:13]MH_SAM_APDU [09:23:13]CAPDU: 80 11 00 00 [09:23:13]Write to MH i2c: E2 08 00 1B 18 80 11 00 00 00 00 00 00 AD [09:23:13]Write i2c OK [09:23:13]MH_I2C_Read... [09:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:13]Read from MH i2c: E2 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 17 00 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 17 00 1B 18 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:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:23:13]wFMCommunicate OK [09:23:13]requested_item fd.num is exist - process it [09:23:13]SAM_PROTO_GetFieldsCounters [09:23:13]wFMCommunicate request_size=4 [09:23:13]MH_SAM_APDU [09:23:13]CAPDU: 80 13 00 00 [09:23:13]Write to MH i2c: E2 08 00 1C 18 80 13 00 00 00 00 00 00 B0 [09:23:13]Write i2c OK [09:23:13]MH_I2C_Read... [09:23:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:13]Read from MH i2c: E2 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 62 00 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 62 00 1C 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 CC 05 01 00 0E 04 04 00 63 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 5D [09:23:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CC 05 01 00 0E 04 04 00 63 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:23:13]wFMCommunicate OK [09:23:13]SAM_PROTO_GetFieldsCounters done [09:23:13]requested_item shift.num is exist - process it [09:23:13]requested_item shift.opened is exist - process it [09:23:13]req_shift_opened [09:23:13]FM_GetShiftState [09:23:13]SAM_PROTO_GetShiftState [09:23:13]wFMCommunicate request_size=4 [09:23:13]MH_SAM_APDU [09:23:13]CAPDU: 80 13 01 00 [09:23:13]Write to MH i2c: E2 08 00 1D 18 80 13 01 00 00 00 00 00 B2 [09:23:13]Write i2c OK [09:23:13]MH_I2C_Read... [09:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:13]Read from MH i2c: E2 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 0E 00 [09:23:13]MH_I2C_Read... [09:23:13]Read from MH i2c: E2 0E 00 1D 18 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 7A [09:23:13]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:23:13]wFMCommunicate OK [09:23:13]SAM_PROTO_GetShiftState done [09:23:13]FM_GetShiftState done [09:23:13]req_shift_opened done [09:23:13]requested_item shift.open_date is exist - process it [09:23:13]req_shift_open_date [09:23:13]req_shift_open_date done [09:23:13]produce_requested_data done [09:23:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67020,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:23:13]process_action_free print_text [09:23:13]json_value_free [09:23:13]json_value_free done [09:23:13]process_json_proto returns [09:23:13]Send response to host [09:23:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67020,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:23:13]free response buf [09:23:13]execute_script done [09:23:13]execute_script returns [09:23:13]free content buf [09:23:13]Sock 9.Close socket [09:23:13]Sock 9.Thread stoped [09:23:16]OFD Sender: No OFD packet to send [09:23:21]OFD Sender: No OFD packet to send [09:23:26]OFD Sender: No OFD packet to send [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:56]OFD Sender: No OFD packet to send [09:24:01]OFD Sender: No OFD packet to send [09:24:06]OFD Sender: No OFD packet to send [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:21]accept exits with 8 [09:24:21]New connection [09:24:21]New thread 3066760548 created [09:24:21]Thread 3066617188 joined [09:24:21]Waiting for new connection... [09:24:21] Sock 8.Parse request [09:24:21]Sock 8.Check first char [09:24:21]Sock 8.First char is OK [09:24:21]request: POST /json_proto HTTP/1.0 [09:24:21]Method: POST [09:24:21]URL: /json_proto [09:24:21]Method is POST - this is cgi request [09:24:21]url: /json_proto [09:24:21]query_string will be loaded in cgi processing [09:24:21]execute_cgi json_proto POST (null) [09:24:21]execute_cgi path=json_proto method=POST [09:24:21]POST find Content-Length [09:24:21]Host: 172.17.41.195:8080 [09:24:21]Content-Length: 1179 [09:24:21]Content-Type: application/json [09:24:21] [09:24:21]POST finish read [09:24:21]Found Content-Length = 1179 [09:24: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)506860\u000A14.05.2024 09:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 34.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2539.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:21]execute_script... [09:24: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)506860\u000A14.05.2024 09:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 34.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2539.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:21]POST & json_proto [09:24:21]process_json_proto [09:24:21]json parsed OK: [09:24:21]protocol is kg_v1.0 [09:24:21]action value=print_text [09:24:21]process_action print_text [09:24:21]cmd_print_text [09:24:21]ExternCall_PrintAddStr [09:24:21]wPrintStart [09:24:21]Write to MH i2c: 01 00 00 1E 18 36 [09:24:21]Write i2c OK [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: 01 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: 01 07 00 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: 01 07 00 1E 18 00 00 00 00 00 FF 0F 4B [09:24:21]RasterBufferAndPrint [09:24:21]line *****ТОВАРНЫЙ ЧЕК***** [09:24:21]line АЗС-91 [09:24:21]line Партнер нефть [09:24:21]line 02508201610067 [09:24:21]line Кассир : Адишов И. [09:24:21]line Счет N : (1)506860 [09:24:21]line 14.05.2024 09:07 [09:24:21]line ПРОДАЖА [09:24:21]line ТРК (МРК, ГНК): 41 [09:24:21]line Вид ГСМ : 2710194210 [09:24:21]line ДТ-К-5 [09:24:21]line 34.000 x 74.70 [09:24:21]line ИТОГ: 2539.80 [09:24:21]line Тип оплаты: Талоны: Топливная Карта [09:24:21]line 02750 [09:24:21]line ______________________ [09:24:21]line (подпись) [09:24:21]written 0, free lines is 4095 [09:24:21]Write to MH i2c: 01 00 00 32 18 4A [09:24:21]Write i2c OK [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: 01 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: 01 07 00 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: 01 07 00 32 18 00 00 00 00 00 0F 0E 6E [09:24:21]RasterBufferAndPrint [09:24:21]line [09:24:21]line [09:24:21]line [09:24:21]line [09:24:21]line [09:24:21]written 0, free lines is 3600 [09:24:21]MH_Cut [09:24:21]Write to MH i2c: D1 01 00 39 18 01 23 [09:24:21]Write i2c OK [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: D1 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: D1 01 00 [09:24:21]MH_I2C_Read... [09:24:21]Read from MH i2c: D1 01 00 39 18 00 22 [09:24:21]Write to MH i2c: 01 00 00 3A 18 52 [09:24:21]Write i2c OK [09:24:21]MH_I2C_Read... [09:24:21]OFD Sender: No OFD packet to send [09:24:21]*** Cut start [09:24:21]*** Purtial cut [09:24:21]*** CUTSNS_PIN = 0 [09:24:22]*** Stage 1: CUTSNS_PIN = 1 [09:24:23]Read from MH i2c: 01 [09:24:23]MH_I2C_Read... [09:24:23]*** Stop cut motor [09:24:23]*** Cut end [09:24:23]Read from MH i2c: 01 07 00 [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: 01 07 00 3A 18 00 00 00 00 00 FF 0F 67 [09:24:23]process_action print_text done [09:24:23]requested_data is exist [09:24:23]produce_requested_data [09:24:23]requested_item fm.sn is exist - process it [09:24:23]wFMCommunicate request_size=4 [09:24:23]MH_SAM_APDU [09:24:23]CAPDU: 80 11 00 00 [09:24:23]Write to MH i2c: E2 08 00 3B 18 80 11 00 00 00 00 00 00 CD [09:24:23]Write i2c OK [09:24:23]MH_I2C_Read... [09:24:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:23]Read from MH i2c: E2 [09:24:23]MH_I2C_Read... [09:24:23]Read from MH i2c: E2 17 00 [09:24:23]MH_I2C_Read... [09:24:23]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 [09:24:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:24:23]wFMCommunicate OK [09:24:23]requested_item fd.num is exist - process it [09:24:23]SAM_PROTO_GetFieldsCounters [09:24:23]wFMCommunicate request_size=4 [09:24:23]MH_SAM_APDU [09:24:23]CAPDU: 80 13 00 00 [09:24:23]Write to MH i2c: E2 08 00 3C 18 80 13 00 00 00 00 00 00 D0 [09:24:23]Write i2c OK [09:24:23]MH_I2C_Read... [09:24:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:24]Read from MH i2c: E2 [09:24:24]MH_I2C_Read... [09:24:24]Read from MH i2c: E2 62 00 [09:24:24]MH_I2C_Read... [09:24:24]Read from MH i2c: E2 62 00 3C 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 CC 05 01 00 0E 04 04 00 63 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 7D [09:24: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 CC 05 01 00 0E 04 04 00 63 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:24:24]wFMCommunicate OK [09:24:24]SAM_PROTO_GetFieldsCounters done [09:24:24]requested_item shift.num is exist - process it [09:24:24]requested_item shift.opened is exist - process it [09:24:24]req_shift_opened [09:24:24]FM_GetShiftState [09:24:24]SAM_PROTO_GetShiftState [09:24:24]wFMCommunicate request_size=4 [09:24:24]MH_SAM_APDU [09:24:24]CAPDU: 80 13 01 00 [09:24:24]Write to MH i2c: E2 08 00 3D 18 80 13 01 00 00 00 00 00 D2 [09:24:24]Write i2c OK [09:24:24]MH_I2C_Read... [09:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:24]Read from MH i2c: E2 [09:24:24]MH_I2C_Read... [09:24:24]Read from MH i2c: E2 0E 00 [09:24:24]MH_I2C_Read... [09:24:24]Read from MH i2c: E2 0E 00 3D 18 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 9A [09:24:24]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:24:24]wFMCommunicate OK [09:24:24]SAM_PROTO_GetShiftState done [09:24:24]FM_GetShiftState done [09:24:24]req_shift_opened done [09:24:24]requested_item shift.open_date is exist - process it [09:24:24]req_shift_open_date [09:24:24]req_shift_open_date done [09:24:24]produce_requested_data done [09:24:24]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67020,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:24:24]process_action_free print_text [09:24:24]json_value_free [09:24:24]json_value_free done [09:24:24]process_json_proto returns [09:24:24]Send response to host [09:24:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67020,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:24:24]free response buf [09:24:24]execute_script done [09:24:24]execute_script returns [09:24:24]free content buf [09:24:24]Sock 8.Close socket [09:24:24]Sock 8.Thread stoped [09:24:26]OFD Sender: No OFD packet to send [09:24:31]OFD Sender: No OFD packet to send [09:24:36]OFD Sender: No OFD packet to send [09:24:41]OFD Sender: No OFD packet to send [09:24:46]OFD Sender: No OFD packet to send [09:24:51]OFD Sender: No OFD packet to send [09:24:56]OFD Sender: No OFD packet to send [09:25:01]OFD Sender: No OFD packet to send [09:25:06]OFD Sender: No OFD packet to send [09:25:11]OFD Sender: No OFD packet to send [09:25:16]OFD Sender: No OFD packet to send [09:25:21]OFD Sender: No OFD packet to send [09:25:26]OFD Sender: No OFD packet to send [09:25:31]OFD Sender: No OFD packet to send [09:25:36]OFD Sender: No OFD packet to send [09:25:41]OFD Sender: No OFD packet to send [09:25:46]OFD Sender: No OFD packet to send [09:25:51]OFD Sender: No OFD packet to send [09:25:56]OFD Sender: No OFD packet to send [09:26:01]OFD Sender: No OFD packet to send [09:26:06]OFD Sender: No OFD packet to send [09:26:11]OFD Sender: No OFD packet to send [09:26:16]OFD Sender: No OFD packet to send [09:26:21]OFD Sender: No OFD packet to send [09:26:26]OFD Sender: No OFD packet to send [09:26:31]OFD Sender: No OFD packet to send [09:26:36]OFD Sender: No OFD packet to send [09:26:41]OFD Sender: No OFD packet to send [09:26:46]OFD Sender: No OFD packet to send [09:26:51]OFD Sender: No OFD packet to send [09:26:56]OFD Sender: No OFD packet to send [09:27:01]OFD Sender: No OFD packet to send [09:27:06]OFD Sender: No OFD packet to send [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27:26]OFD Sender: No OFD packet to send [09:27:31]OFD Sender: No OFD packet to send [09:27:36]OFD Sender: No OFD packet to send [09:27:41]OFD Sender: No OFD packet to send [09:27:46]OFD Sender: No OFD packet to send [09:27:51]OFD Sender: No OFD packet to send [09:27:56]OFD Sender: No OFD packet to send [09:28:01]OFD Sender: No OFD packet to send [09:28:06]OFD Sender: No OFD packet to send [09:28:11]OFD Sender: No OFD packet to send [09:28:16]OFD Sender: No OFD packet to send [09:28:21]OFD Sender: No OFD packet to send [09:28:25]accept exits with 9 [09:28:25]New connection [09:28:25]New thread 3066617188 created [09:28:25]Thread 3066760548 joined [09:28:25]Waiting for new connection... [09:28:25] Sock 9.Parse request [09:28:25]Sock 9.Check first char [09:28:25]Sock 9.First char is OK [09:28:25]request: POST /json_proto HTTP/1.0 [09:28:25]Method: POST [09:28:25]URL: /json_proto [09:28:25]Method is POST - this is cgi request [09:28:25]url: /json_proto [09:28:25]query_string will be loaded in cgi processing [09:28:25]execute_cgi json_proto POST (null) [09:28:25]execute_cgi path=json_proto method=POST [09:28:25]POST find Content-Length [09:28:25]Host: 172.17.41.195:8080 [09:28:25]Content-Length: 687 [09:28:25]Content-Type: application/json [09:28:25] [09:28:25]POST finish read [09:28:25]Found Content-Length = 687 [09:28:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12044", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:25]execute_script... [09:28: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 : (3)12044", "tax_sys" : 0, "items" : [ { "code": "4700003010070", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:25]POST & json_proto [09:28:25]process_json_proto [09:28:25]json parsed OK: [09:28:25]protocol is kg_v1.0 [09:28:25]action value=close_receipt [09:28:25]process_action close_receipt [09:28:25]cmd_close_receipt [09:28:25]MH_GetDate [09:28:25]Write to MH i2c: F0 00 00 3E 18 45 [09:28:25]Write i2c OK [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: F0 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: F0 09 00 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: F0 09 00 3E 18 00 BC 2E 43 66 FC 21 6F 64 D1 [09:28:25]GetLastDocTimeStamp 1715678422 [09:28:25]current date 1715678908 [09:28:25]FM_GetShiftState [09:28:25]SAM_PROTO_GetShiftState [09:28:25]wFMCommunicate request_size=4 [09:28:25]MH_SAM_APDU [09:28:25]CAPDU: 80 13 01 00 [09:28:25]Write to MH i2c: E2 08 00 3F 18 80 13 01 00 00 00 00 00 D4 [09:28:25]Write i2c OK [09:28:25]MH_I2C_Read... [09:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:25]Read from MH i2c: E2 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: E2 0E 00 [09:28:25]MH_I2C_Read... [09:28:25]Read from MH i2c: E2 0E 00 3F 18 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 9C [09:28:25]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:28:25]wFMCommunicate OK [09:28:25]SAM_PROTO_GetShiftState done [09:28:25]FM_GetShiftState done [09:28:25]opened in 1715646054 [09:28:25]opened+sec_in_day 1715732454 [09:28:25]quantity*price = 9500 [09:28:25]sum+1 = 9501 [09:28:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 28 14.05.2024 09:28 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67021 ФПД: 146944079239770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T092828&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67021&fm=146944079239770&tin=02508201610067®Number=0000000000091845&sum=9500 0 [09:28:26]StoreToDocumentArchive [09:28:26]shift 355 fd 67021 [09:28:26]save to /storage/0355/doc_00067021 [09:28:26]save last doc name /storage/0355/doc_00067021 to /storage/kkm_last_doc_name [09:28:26]save OK [09:28:26]Clear old archive folders... [09:28:26]ProcessDocumentItem done err = 0, tmpTLVsize=299 [09:28:26]tlvbuf is 00349EB0 [09:28:26]SAM_PROTO_ClearQueue [09:28:26]wFMCommunicate request_size=4 [09:28:26]MH_SAM_APDU [09:28:26]CAPDU: 80 09 00 00 [09:28:26]Write to MH i2c: E2 08 00 4C 18 80 09 00 00 00 00 00 00 D6 [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 [09:28:26]MH_I2C_Read... [09:28:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:26]Read from MH i2c: E2 03 00 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 03 00 4C 18 00 90 00 D8 [09:28:26]RAPDU: 90 00 [09:28:26]wFMCommunicate OK [09:28:26]SAM_PROTO_ClearQueue done [09:28:26]KKMCreateOFDPacket [09:28:26]OFDProtocolAddRootSTLVToBuf [09:28:26]FM_MakeSignedData [09:28:26]FM_MakeSignedData [09:28:26]SAM_PROTO_SignData [09:28:26]wFMCommunicate request_size=4 [09:28:26]MH_SAM_APDU [09:28:26]CAPDU: 80 0D 01 02 [09:28:26]Write to MH i2c: E2 08 00 4D 18 80 0D 01 02 00 00 00 00 DE [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:26]Read from MH i2c: E2 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 03 00 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 03 00 4D 18 00 90 00 D9 [09:28:26]RAPDU: 90 00 [09:28:26]wFMCommunicate OK [09:28:26]wFMCommunicate request_size=255 [09:28:26]MH_SAM_APDU [09:28:26]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 BC 2E 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [09:28:26]Write to MH i2c: E2 02 01 4E 18 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 BC 2E 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 98 [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:26]Read from MH i2c: E2 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 03 00 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 03 00 4E 18 00 90 00 DA [09:28:26]RAPDU: 90 00 [09:28:26]wFMCommunicate OK [09:28:26]wFMCommunicate request_size=58 [09:28:26]MH_SAM_APDU [09:28:26]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CD 05 01 00 35 04 06 00 85 A5 15 A5 1A 5A [09:28:26]Write to MH i2c: E2 3D 00 4F 18 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CD 05 01 00 35 04 06 00 85 A5 15 A5 1A 5A 00 00 00 [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:26]Read from MH i2c: E2 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 03 00 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 03 00 4F 18 00 90 00 DB [09:28:26]RAPDU: 90 00 [09:28:26]wFMCommunicate OK [09:28:26]wFMCommunicate request_size=4 [09:28:26]MH_SAM_APDU [09:28:26]CAPDU: 80 0D 03 02 [09:28:26]Write to MH i2c: E2 08 00 50 18 80 0D 03 02 00 00 00 00 E3 [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:26]Read from MH i2c: E2 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 0B 00 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 0B 00 50 18 00 32 E5 BC 56 99 2B A9 C5 90 00 3F [09:28:26]RAPDU: 32 E5 BC 56 99 2B A9 C5 90 00 [09:28:26]wFMCommunicate OK [09:28:26]SAM_PROTO_SignData done [09:28:26]FM_MakeSignedData done [09:28:26]CreateOFDProtocolMessage [09:28:26]wFMCommunicate request_size=4 [09:28:26]MH_SAM_APDU [09:28:26]CAPDU: 80 11 00 00 [09:28:26]Write to MH i2c: E2 08 00 51 18 80 11 00 00 00 00 00 00 E3 [09:28:26]OFD Sender: No OFD packet to send [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:26]Read from MH i2c: E2 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 17 00 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 17 00 51 18 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:28: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:28:26]wFMCommunicate OK [09:28:26]CreateOFDProtocolMessage done [09:28:26]OFDSenderStorePacket 67021 [09:28:26]StoreOFDPacket docnum=67021 [09:28: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 3F 01 00 00 6C C4 37 01 7F 40 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 BC 2E 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CD 05 01 00 35 04 06 00 85 A5 15 A5 1A 5A 32 E5 BC 56 99 2B A9 C5 [09:28:26]CheckFolder [09:28:26]dirname=/storage/ofd_packets [09:28:26]CheckFolder done [09:28:26]ProducePacketName [09:28:26]name=ofd_packets/00067021 [09:28:26]NVStorageSaveData ofd_packets/00067021 [09:28:26]File name is /storage/ofd_packets/00067021 [09:28:26]Write 349 bytes [09:28:26]NVStorageSaveData done [09:28:26]OFDSenderStorePacket done [09:28:26]KKMCreateOFDPacket done [09:28:26]NVStorageSaveData kkm_last_timestamp [09:28:26]File name is /storage/kkm_last_timestamp [09:28:26]Write 4 bytes [09:28:26]NVStorageSaveData done [09:28:26]ExternCall_PrintAddStr [09:28:26]wPrintStart [09:28:26]Write to MH i2c: 01 00 00 52 18 6A [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: 01 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: 01 07 00 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: 01 07 00 52 18 00 00 00 00 00 FF 0F 7F [09:28:26]RasterBufferAndPrint [09:28:26]line Счет N : (3)12044 [09:28:26]line ИНН: 02508201610067 [09:28:26]line Контрольно-Кассовый Чек [09:28:26]line ПРОДАЖА [09:28:26]line Товар: 4700003010070 [09:28:26]line Чай хол Let`s Go! чер персик ПЭТ 1,25л [09:28:26]line 1.000 * 95.00 [09:28:26]line = 95.00 [09:28:26]line НДС 12% НСП 1% [09:28:26]line > о реализуемом товаре [09:28:26]line ИТОГО: 95.00 [09:28:26]line НСП 1% : 0.84 [09:28:26]line НДС 12% : 10.09 [09:28:26]line Наличными: 95.00 [09:28:26]line Безнал.: 0.00 [09:28:26]line Место: АЗС № 91 "Партнер Нефть" [09:28:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:28:26]line СНО: Общий режим [09:28:26]line Чек 28 14.05.2024 09:28 [09:28:26]line Смена: 355 ФФД: 1.0 [09:28:26]line ЗНМ: 0300000119 [09:28:26]line РНМ: 0000000000091845 [09:28:26]line Версия ККМ: 001 [09:28:26]line ФМ: 0000000000871829 [09:28:26]line ФД: 67021 [09:28:26]line ФПД: 146944079239770 [09:28:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T092828&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67021&fm=146944079239770&tin=02508201610067®Number=0000000000091845&sum=9500 [09:28:26]line 0 [09:28:27]written 0, free lines is 4095 [09:28:27]OFD Sender: Processing packet 67021 [packets to send 35, broken 34] [09:28:27]ProducePacketName [09:28:27]name=ofd_packets/00067021 [09:28:27]OFD Sender: To server: pG, [09:28:27]CommunicateWithHost lk.salyk.kg:30040 [09:28:27]ConnectInit lk.salyk.kg [09:28:27]Connected sock=10 [09:28:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 3F 01 00 00 6C C4 37 01 7F 40 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 BC 2E 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CD 05 01 00 35 04 06 00 85 A5 15 A5 1A 5A 32 E5 BC 56 99 2B A9 C5 [09:28:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 4A 7E 47 00 BD 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CD 05 01 00 F4 03 04 00 9D D6 42 66 B6 04 01 00 00 42 1A 36 EF FE 3A 74 B7 [09:28:27]CommunicateWithHost err = 0 [09:28:27]CheckOFDResponse [09:28:27]1017 (14) - 77093643461234 [09:28:27]1041 (16) - 0000000000871829 [09:28:27]1040 (4) - 67021 [09:28:27]1012 (4) - 14.05.2024 03:12 [09:28:27]1206 (1) - 0 [09:28:27]OFD Sender: Remove packet 67021 [09:28:27]ProducePacketName [09:28:27]name=ofd_packets/00067021 [09:28:27]NVStorageDeleteData [09:28:27]Write to MH i2c: 01 00 00 7A 18 92 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: 01 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: 01 07 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: 01 07 00 7A 18 00 00 00 00 00 D4 0C 79 [09:28:27]RasterBufferAndPrint [09:28:27]line [09:28:27]line [09:28:27]line [09:28:27]line [09:28:27]line [09:28:27]written 0, free lines is 3289 [09:28:27]MH_Cut [09:28:27]Write to MH i2c: D1 01 00 81 18 01 6B [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: D1 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: D1 01 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: D1 01 00 81 18 00 6A [09:28:27]Write to MH i2c: 01 00 00 82 18 9A [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:28]OFD Sender: No OFD packet to send [09:28:28]*** Cut start [09:28:28]*** Purtial cut [09:28:28]*** Stage 1: CUTSNS_PIN = 1 [09:28:28]Read from MH i2c: 01 [09:28:28]MH_I2C_Read... [09:28:28]*** Stop cut motor [09:28:28]*** Cut end [09:28:28]Read from MH i2c: 01 07 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 07 00 82 18 00 00 00 00 00 FF 0F AF [09:28:28]process_action close_receipt done [09:28:28]requested_data is exist [09:28:28]produce_requested_data [09:28:28]requested_item fm.sn is exist - process it [09:28:28]wFMCommunicate request_size=4 [09:28:28]MH_SAM_APDU [09:28:28]CAPDU: 80 11 00 00 [09:28:28]Write to MH i2c: E2 08 00 83 18 80 11 00 00 00 00 00 00 15 [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:28]Read from MH i2c: E2 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 17 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 17 00 83 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6B [09:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:28:28]wFMCommunicate OK [09:28:28]requested_item fd.num is exist - process it [09:28:28]SAM_PROTO_GetFieldsCounters [09:28:28]wFMCommunicate request_size=4 [09:28:28]MH_SAM_APDU [09:28:28]CAPDU: 80 13 00 00 [09:28:28]Write to MH i2c: E2 08 00 84 18 80 13 00 00 00 00 00 00 18 [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:29]Read from MH i2c: E2 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: E2 62 00 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: E2 62 00 84 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 CD 05 01 00 0E 04 04 00 63 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 C9 [09:28: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 CD 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:29]wFMCommunicate OK [09:28:29]SAM_PROTO_GetFieldsCounters done [09:28:29]requested_item shift.num is exist - process it [09:28:29]requested_item shift.opened is exist - process it [09:28:29]req_shift_opened [09:28:29]FM_GetShiftState [09:28:29]SAM_PROTO_GetShiftState [09:28:29]wFMCommunicate request_size=4 [09:28:29]MH_SAM_APDU [09:28:29]CAPDU: 80 13 01 00 [09:28:29]Write to MH i2c: E2 08 00 85 18 80 13 01 00 00 00 00 00 1A [09:28:29]Write i2c OK [09:28:29]MH_I2C_Read... [09:28:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:29]Read from MH i2c: E2 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: E2 0E 00 [09:28:29]MH_I2C_Read... [09:28:29]Read from MH i2c: E2 0E 00 85 18 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 E2 [09:28:29]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:28:29]wFMCommunicate OK [09:28:29]SAM_PROTO_GetShiftState done [09:28:29]FM_GetShiftState done [09:28:29]req_shift_opened done [09:28:29]requested_item shift.open_date is exist - process it [09:28:29]req_shift_open_date [09:28:29]req_shift_open_date done [09:28:29]produce_requested_data done [09:28:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67021,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:28:29]process_action_free close_receipt [09:28:29]json_value_free [09:28:29]json_value_free done [09:28:29]process_json_proto returns [09:28:29]Send response to host [09:28:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67021,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:28:29]free response buf [09:28:29]execute_script done [09:28:29]execute_script returns [09:28:29]free content buf [09:28:29]Sock 9.Close socket [09:28:29]Sock 9.Thread stoped [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:03]accept exits with 8 [09:30:03]New connection [09:30:03]New thread 3066760548 created [09:30:03]Thread 3066617188 joined [09:30:03]Waiting for new connection... [09:30:03] Sock 8.Parse request [09:30:03]Sock 8.Check first char [09:30:03]Sock 8.First char is OK [09:30:03]request: POST /json_proto HTTP/1.0 [09:30:03]Method: POST [09:30:03]URL: /json_proto [09:30:03]Method is POST - this is cgi request [09:30:03]url: /json_proto [09:30:03]query_string will be loaded in cgi processing [09:30:03]execute_cgi json_proto POST (null) [09:30:03]execute_cgi path=json_proto method=POST [09:30:03]POST find Content-Length [09:30:03]Host: 172.17.41.195:8080 [09:30:03]Content-Length: 1179 [09:30:03]Content-Type: application/json [09:30:03] [09:30:03]POST finish read [09:30:03]Found Content-Length = 1179 [09:30:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506861\u000A14.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 19.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1419.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:03]execute_script... [09:30:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506861\u000A14.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 19.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1419.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:03]POST & json_proto [09:30:03]process_json_proto [09:30:03]json parsed OK: [09:30:03]protocol is kg_v1.0 [09:30:03]action value=print_text [09:30:03]process_action print_text [09:30:03]cmd_print_text [09:30:03]ExternCall_PrintAddStr [09:30:03]wPrintStart [09:30:03]Write to MH i2c: 01 00 00 86 18 9E [09:30:03]Write i2c OK [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: 01 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: 01 07 00 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: 01 07 00 86 18 00 00 00 00 00 FF 0F B3 [09:30:03]RasterBufferAndPrint [09:30:03]line *****ТОВАРНЫЙ ЧЕК***** [09:30:03]line АЗС-91 [09:30:03]line Партнер нефть [09:30:03]line 02508201610067 [09:30:03]line Кассир : Адишов И. [09:30:03]line Счет N : (1)506861 [09:30:03]line 14.05.2024 09:12 [09:30:03]line ПРОДАЖА [09:30:03]line ТРК (МРК, ГНК): 21 [09:30:03]line Вид ГСМ : 2710194210 [09:30:03]line ДТ-К-5 [09:30:03]line 19.000 x 74.70 [09:30:03]line ИТОГ: 1419.30 [09:30:03]line Тип оплаты: Талоны: Топливная Карта [09:30:03]line 02750 [09:30:03]line ______________________ [09:30:03]line (подпись) [09:30:03]written 0, free lines is 4095 [09:30:03]Write to MH i2c: 01 00 00 9A 18 B2 [09:30:03]Write i2c OK [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: 01 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: 01 07 00 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: 01 07 00 9A 18 00 00 00 00 00 0E 0E D5 [09:30:03]RasterBufferAndPrint [09:30:03]line [09:30:03]line [09:30:03]line [09:30:03]line [09:30:03]line [09:30:03]written 0, free lines is 3599 [09:30:03]MH_Cut [09:30:03]Write to MH i2c: D1 01 00 A1 18 01 8B [09:30:03]Write i2c OK [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: D1 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: D1 01 00 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: D1 01 00 A1 18 00 8A [09:30:03]Write to MH i2c: 01 00 00 A2 18 BA [09:30:03]Write i2c OK [09:30:03]MH_I2C_Read... [09:30:04]*** Cut start [09:30:04]*** Purtial cut [09:30:04]*** CUTSNS_PIN = 0 [09:30:04]*** Stage 1: CUTSNS_PIN = 1 [09:30:06]Read from MH i2c: 01 [09:30:06]MH_I2C_Read... [09:30:06]*** Stop cut motor [09:30:06]*** Cut end [09:30:06]Read from MH i2c: 01 07 00 [09:30:06]MH_I2C_Read... [09:30:06]Read from MH i2c: 01 07 00 A2 18 00 00 00 00 00 FF 0F CF [09:30:06]process_action print_text done [09:30:06]requested_data is exist [09:30:06]produce_requested_data [09:30:06]requested_item fm.sn is exist - process it [09:30:06]wFMCommunicate request_size=4 [09:30:06]MH_SAM_APDU [09:30:06]CAPDU: 80 11 00 00 [09:30:06]Write to MH i2c: E2 08 00 A3 18 80 11 00 00 00 00 00 00 35 [09:30:06]Write i2c OK [09:30:06]MH_I2C_Read... [09:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:06]Read from MH i2c: E2 [09:30:06]MH_I2C_Read... [09:30:06]Read from MH i2c: E2 17 00 [09:30:06]MH_I2C_Read... [09:30:06]Read from MH i2c: E2 17 00 A3 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8B [09:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:30:06]wFMCommunicate OK [09:30:06]requested_item fd.num is exist - process it [09:30:06]SAM_PROTO_GetFieldsCounters [09:30:06]wFMCommunicate request_size=4 [09:30:06]MH_SAM_APDU [09:30:06]CAPDU: 80 13 00 00 [09:30:06]Write to MH i2c: E2 08 00 A4 18 80 13 00 00 00 00 00 00 38 [09:30:06]Write i2c OK [09:30:06]MH_I2C_Read... [09:30:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:06]Read from MH i2c: E2 [09:30:06]MH_I2C_Read... [09:30:06]Read from MH i2c: E2 62 00 [09:30:06]MH_I2C_Read... [09:30:06]Read from MH i2c: E2 62 00 A4 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 CD 05 01 00 0E 04 04 00 63 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 E9 [09:30:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 CD 05 01 00 0E 04 04 00 63 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:30:06]wFMCommunicate OK [09:30:06]SAM_PROTO_GetFieldsCounters done [09:30:06]requested_item shift.num is exist - process it [09:30:06]requested_item shift.opened is exist - process it [09:30:06]req_shift_opened [09:30:06]FM_GetShiftState [09:30:06]SAM_PROTO_GetShiftState [09:30:06]wFMCommunicate request_size=4 [09:30:06]MH_SAM_APDU [09:30:06]CAPDU: 80 13 01 00 [09:30:06]Write to MH i2c: E2 08 00 A5 18 80 13 01 00 00 00 00 00 3A [09:30:06]Write i2c OK [09:30:06]MH_I2C_Read... [09:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:06]Read from MH i2c: E2 [09:30:06]MH_I2C_Read... [09:30:06]Read from MH i2c: E2 0E 00 [09:30:06]MH_I2C_Read... [09:30:06]Read from MH i2c: E2 0E 00 A5 18 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 02 [09:30:06]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:30:06]wFMCommunicate OK [09:30:06]SAM_PROTO_GetShiftState done [09:30:06]FM_GetShiftState done [09:30:06]req_shift_opened done [09:30:06]requested_item shift.open_date is exist - process it [09:30:06]req_shift_open_date [09:30:06]req_shift_open_date done [09:30:06]produce_requested_data done [09:30:06]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67021,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:30:06]process_action_free print_text [09:30:06]json_value_free [09:30:06]json_value_free done [09:30:06]process_json_proto returns [09:30:06]Send response to host [09:30:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67021,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:30:06]free response buf [09:30:06]execute_script done [09:30:06]execute_script returns [09:30:06]free content buf [09:30:06]Sock 8.Close socket [09:30:06]Sock 8.Thread stoped [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:22]accept exits with 9 [09:34:22]New connection [09:34:22]New thread 3066617188 created [09:34:22]Thread 3066760548 joined [09:34:22]Waiting for new connection... [09:34:22] Sock 9.Parse request [09:34:22]Sock 9.Check first char [09:34:22]Sock 9.First char is OK [09:34:22]request: POST /json_proto HTTP/1.0 [09:34:22]Method: POST [09:34:22]URL: /json_proto [09:34:22]Method is POST - this is cgi request [09:34:22]url: /json_proto [09:34:22]query_string will be loaded in cgi processing [09:34:22]execute_cgi json_proto POST (null) [09:34:22]execute_cgi path=json_proto method=POST [09:34:22]POST find Content-Length [09:34:22]Host: 172.17.41.195:8080 [09:34:22]Content-Length: 682 [09:34:22]Content-Type: application/json [09:34:22] [09:34:22]POST finish read [09:34:22]Found Content-Length = 682 [09:34:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506862", "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" ] } } [09:34:22]execute_script... [09:34: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)506862", "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" ] } } [09:34:22]POST & json_proto [09:34:22]process_json_proto [09:34:22]json parsed OK: [09:34:22]protocol is kg_v1.0 [09:34:22]action value=close_receipt [09:34:22]process_action close_receipt [09:34:22]cmd_close_receipt [09:34:22]MH_GetDate [09:34:22]Write to MH i2c: F0 00 00 A6 18 AD [09:34:22]Write i2c OK [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: F0 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: F0 09 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: F0 09 00 A6 18 00 22 30 43 66 FC 21 6F 64 A1 [09:34:22]GetLastDocTimeStamp 1715678908 [09:34:22]current date 1715679266 [09:34:22]FM_GetShiftState [09:34:22]SAM_PROTO_GetShiftState [09:34:22]wFMCommunicate request_size=4 [09:34:22]MH_SAM_APDU [09:34:22]CAPDU: 80 13 01 00 [09:34:22]Write to MH i2c: E2 08 00 A7 18 80 13 01 00 00 00 00 00 3C [09:34:22]Write i2c OK [09:34:22]MH_I2C_Read... [09:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:22]Read from MH i2c: E2 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 0E 00 [09:34:22]MH_I2C_Read... [09:34:22]Read from MH i2c: E2 0E 00 A7 18 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 04 [09:34:22]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:34:22]wFMCommunicate OK [09:34:22]SAM_PROTO_GetShiftState done [09:34:22]FM_GetShiftState done [09:34:22]opened in 1715646054 [09:34:22]opened+sec_in_day 1715732454 [09:34:22]quantity*price = 100066 [09:34:22]sum+1 = 100067 [09:34:22]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 СНО: Общий режим Чек 29 14.05.2024 09:34 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67022 ФПД: 103660940071320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T093426&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67022&fm=103660940071320&tin=02508201610067®Number=0000000000091845&sum=100000 [09:34:23]StoreToDocumentArchive [09:34:23]shift 355 fd 67022 [09:34:23]save to /storage/0355/doc_00067022 [09:34:23]save last doc name /storage/0355/doc_00067022 to /storage/kkm_last_doc_name [09:34:23]save OK [09:34:23]Clear old archive folders... [09:34:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:23]tlvbuf is 00310700 [09:34:23]SAM_PROTO_ClearQueue [09:34:23]wFMCommunicate request_size=4 [09:34:23]MH_SAM_APDU [09:34:23]CAPDU: 80 09 00 00 [09:34:23]Write to MH i2c: E2 08 00 B4 18 80 09 00 00 00 00 00 00 3E [09:34:23]Write i2c OK [09:34:23]MH_I2C_Read... [09:34:23]Read from MH i2c: E2 [09:34:23]MH_I2C_Read... [09:34:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:23]Read from MH i2c: E2 03 00 [09:34:23]MH_I2C_Read... [09:34:23]Read from MH i2c: E2 03 00 B4 18 00 90 00 40 [09:34:23]RAPDU: 90 00 [09:34:23]wFMCommunicate OK [09:34:23]SAM_PROTO_ClearQueue done [09:34:23]KKMCreateOFDPacket [09:34:23]OFDProtocolAddRootSTLVToBuf [09:34:23]FM_MakeSignedData [09:34:23]FM_MakeSignedData [09:34:23]SAM_PROTO_SignData [09:34:23]wFMCommunicate request_size=4 [09:34:23]MH_SAM_APDU [09:34:23]CAPDU: 80 0D 01 02 [09:34:23]Write to MH i2c: E2 08 00 B5 18 80 0D 01 02 00 00 00 00 46 [09:34:23]Write i2c OK [09:34:23]MH_I2C_Read... [09:34:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:23]Read from MH i2c: E2 [09:34:23]MH_I2C_Read... [09:34:23]Read from MH i2c: E2 03 00 [09:34:23]MH_I2C_Read... [09:34:23]Read from MH i2c: E2 03 00 B5 18 00 90 00 41 [09:34:23]RAPDU: 90 00 [09:34:23]wFMCommunicate OK [09:34:23]wFMCommunicate request_size=255 [09:34:23]MH_SAM_APDU [09:34: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 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 1D 00 00 00 F4 03 04 00 22 30 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CE 05 01 00 35 04 06 00 5E [09:34:23]Write to MH i2c: E2 02 01 B6 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 1D 00 00 00 F4 03 04 00 22 30 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CE 05 01 00 35 04 06 00 5E 00 00 CD [09:34:23]Write i2c OK [09:34:23]MH_I2C_Read... [09:34:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 03 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 03 00 B6 18 00 90 00 42 [09:34:24]RAPDU: 90 00 [09:34:24]wFMCommunicate OK [09:34:24]wFMCommunicate request_size=10 [09:34:24]MH_SAM_APDU [09:34:24]CAPDU: 80 0D 02 02 05 47 71 82 91 98 [09:34:24]Write to MH i2c: E2 0D 00 B7 18 80 0D 02 02 05 00 47 71 82 91 98 00 00 B6 [09:34:24]Write i2c OK [09:34:24]MH_I2C_Read... [09:34:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 03 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 03 00 B7 18 00 90 00 43 [09:34:24]RAPDU: 90 00 [09:34:24]wFMCommunicate OK [09:34:24]wFMCommunicate request_size=4 [09:34:24]MH_SAM_APDU [09:34:24]CAPDU: 80 0D 03 02 [09:34:24]Write to MH i2c: E2 08 00 B8 18 80 0D 03 02 00 00 00 00 4B [09:34:24]Write i2c OK [09:34:24]MH_I2C_Read... [09:34:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 0B 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 0B 00 B8 18 00 F5 CA 23 F9 72 75 D1 56 90 00 35 [09:34:24]RAPDU: F5 CA 23 F9 72 75 D1 56 90 00 [09:34:24]wFMCommunicate OK [09:34:24]SAM_PROTO_SignData done [09:34:24]FM_MakeSignedData done [09:34:24]CreateOFDProtocolMessage [09:34:24]wFMCommunicate request_size=4 [09:34:24]MH_SAM_APDU [09:34:24]CAPDU: 80 11 00 00 [09:34:24]Write to MH i2c: E2 08 00 B9 18 80 11 00 00 00 00 00 00 4B [09:34:24]Write i2c OK [09:34:24]MH_I2C_Read... [09:34:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:24]Read from MH i2c: E2 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 17 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: E2 17 00 B9 18 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:34: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:34:24]wFMCommunicate OK [09:34:24]CreateOFDProtocolMessage done [09:34:24]OFDSenderStorePacket 67022 [09:34:24]StoreOFDPacket docnum=67022 [09:34: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 09 37 07 01 AE B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 F4 03 04 00 22 30 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CE 05 01 00 35 04 06 00 5E 47 71 82 91 98 F5 CA 23 F9 72 75 D1 56 [09:34:24]CheckFolder [09:34:24]dirname=/storage/ofd_packets [09:34:24]CheckFolder done [09:34:24]ProducePacketName [09:34:24]name=ofd_packets/00067022 [09:34:24]NVStorageSaveData ofd_packets/00067022 [09:34:24]File name is /storage/ofd_packets/00067022 [09:34:24]Write 301 bytes [09:34:24]NVStorageSaveData done [09:34:24]OFDSenderStorePacket done [09:34:24]KKMCreateOFDPacket done [09:34:24]NVStorageSaveData kkm_last_timestamp [09:34:24]File name is /storage/kkm_last_timestamp [09:34:24]Write 4 bytes [09:34:24]NVStorageSaveData done [09:34:24]ExternCall_PrintAddStr [09:34:24]wPrintStart [09:34:24]Write to MH i2c: 01 00 00 BA 18 D2 [09:34:24]Write i2c OK [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: 01 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: 01 07 00 [09:34:24]MH_I2C_Read... [09:34:24]Read from MH i2c: 01 07 00 BA 18 00 00 00 00 00 FF 0F E7 [09:34:24]RasterBufferAndPrint [09:34:24]line Счет N : (1)506862 [09:34:24]line ИНН: 02508201610067 [09:34:24]line Контрольно-Кассовый Чек [09:34:24]line ПРОДАЖА [09:34:24]line ТРК (МРК, ГНК) : 43 [09:34:24]line Товар: 2710124130 [09:34:24]line Аи-92-К-5 [09:34:24]line 14.980 * 66.80 [09:34:24]line = 1000.66 [09:34:24]line НДС 12% НСП 1% [09:34:24]line > о реализуемом товаре [09:34:24]line ОКРУГЛЕНИЕ: -0.66 [09:34:24]line ИТОГО: 1000.00 [09:34:24]line Внесено: 1000.00 [09:34:24]line СДАЧА: 0.00 [09:34:24]line НСП 1% : 8.85 [09:34:24]line НДС 12% : 106.26 [09:34:24]line Наличными: 1000.00 [09:34:24]line Безнал.: 0.00 [09:34:24]line Место: АЗС № 91 "Партнер Нефть" [09:34:24]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:34:24]line СНО: Общий режим [09:34:24]line Чек 29 14.05.2024 09:34 [09:34:24]line Смена: 355 ФФД: 1.0 [09:34:24]line ЗНМ: 0300000119 [09:34:24]line РНМ: 0000000000091845 [09:34:24]line Версия ККМ: 001 [09:34:24]line ФМ: 0000000000871829 [09:34:24]line ФД: 67022 [09:34:24]line ФПД: 103660940071320 [09:34:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T093426&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67022&fm=103660940071320&tin=02508201610067®Number=0000000000091845&sum=100000 [09:34:24]written 0, free lines is 4095 [09:34:24]OFD Sender: Processing packet 67022 [packets to send 35, broken 34] [09:34:24]ProducePacketName [09:34:24]name=ofd_packets/00067022 [09:34:24]OFD Sender: To server: pG, [09:34:24]CommunicateWithHost lk.salyk.kg:30040 [09:34:24]ConnectInit lk.salyk.kg [09:34:24]Connected sock=8 [09:34: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 09 37 07 01 AE B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 F4 03 04 00 22 30 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CE 05 01 00 35 04 06 00 5E 47 71 82 91 98 F5 CA 23 F9 72 75 D1 56 [09:34: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 64 D8 47 00 E1 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CE 05 01 00 F4 03 04 00 02 D8 42 66 B6 04 01 00 00 32 47 49 80 4F 58 30 7F [09:34:24]CommunicateWithHost err = 0 [09:34:24]CheckOFDResponse [09:34:24]1017 (14) - 77093643461234 [09:34:24]1041 (16) - 0000000000871829 [09:34:24]1040 (4) - 67022 [09:34:24]1012 (4) - 14.05.2024 03:18 [09:34:24]1206 (1) - 0 [09:34:24]OFD Sender: Remove packet 67022 [09:34:24]ProducePacketName [09:34:24]name=ofd_packets/00067022 [09:34:24]NVStorageDeleteData [09:34:25]Write to MH i2c: 01 00 00 E4 18 FC [09:34:25]Write i2c OK [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: 01 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: 01 07 00 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: 01 07 00 E4 18 00 00 00 00 00 C8 0C D7 [09:34:25]RasterBufferAndPrint [09:34:25]line [09:34:25]line [09:34:25]line [09:34:25]line [09:34:25]line [09:34:25]written 0, free lines is 3277 [09:34:25]MH_Cut [09:34:25]Write to MH i2c: D1 01 00 EB 18 01 D5 [09:34:25]Write i2c OK [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: D1 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: D1 01 00 [09:34:25]MH_I2C_Read... [09:34:25]Read from MH i2c: D1 01 00 EB 18 00 D4 [09:34:25]Write to MH i2c: 01 00 00 EC 18 04 [09:34:25]Write i2c OK [09:34:25]MH_I2C_Read... [09:34:25]OFD Sender: No OFD packet to send [09:34:25]*** Cut start [09:34:25]*** Purtial cut [09:34:25]*** Stage 1: CUTSNS_PIN = 1 [09:34:26]Read from MH i2c: 01 [09:34:26]MH_I2C_Read... [09:34:26]*** Stop cut motor [09:34:26]*** Cut end [09:34:26]Read from MH i2c: 01 07 00 [09:34:26]MH_I2C_Read... [09:34:26]Read from MH i2c: 01 07 00 EC 18 00 00 00 00 00 FF 0F 19 [09:34:26]process_action close_receipt done [09:34:26]requested_data is exist [09:34:26]produce_requested_data [09:34:26]requested_item fm.sn is exist - process it [09:34:26]wFMCommunicate request_size=4 [09:34:26]MH_SAM_APDU [09:34:26]CAPDU: 80 11 00 00 [09:34:26]Write to MH i2c: E2 08 00 ED 18 80 11 00 00 00 00 00 00 7F [09:34:26]Write i2c OK [09:34:26]MH_I2C_Read... [09:34:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:26]Read from MH i2c: E2 [09:34:26]MH_I2C_Read... [09:34:26]Read from MH i2c: E2 17 00 [09:34:26]MH_I2C_Read... [09:34:26]Read from MH i2c: E2 17 00 ED 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D5 [09:34: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:34:26]wFMCommunicate OK [09:34:26]requested_item fd.num is exist - process it [09:34:26]SAM_PROTO_GetFieldsCounters [09:34:26]wFMCommunicate request_size=4 [09:34:26]MH_SAM_APDU [09:34:26]CAPDU: 80 13 00 00 [09:34:26]Write to MH i2c: E2 08 00 EE 18 80 13 00 00 00 00 00 00 82 [09:34:26]Write i2c OK [09:34:26]MH_I2C_Read... [09:34:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:26]Read from MH i2c: E2 [09:34:26]MH_I2C_Read... [09:34:26]Read from MH i2c: E2 62 00 [09:34:26]MH_I2C_Read... [09:34:26]Read from MH i2c: E2 62 00 EE 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 CE 05 01 00 0E 04 04 00 63 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 37 [09:34: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 CE 05 01 00 0E 04 04 00 63 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:34:26]wFMCommunicate OK [09:34:26]SAM_PROTO_GetFieldsCounters done [09:34:26]requested_item shift.num is exist - process it [09:34:26]requested_item shift.opened is exist - process it [09:34:26]req_shift_opened [09:34:26]FM_GetShiftState [09:34:26]SAM_PROTO_GetShiftState [09:34:26]wFMCommunicate request_size=4 [09:34:26]MH_SAM_APDU [09:34:26]CAPDU: 80 13 01 00 [09:34:26]Write to MH i2c: E2 08 00 EF 18 80 13 01 00 00 00 00 00 84 [09:34:26]Write i2c OK [09:34:26]MH_I2C_Read... [09:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:26]Read from MH i2c: E2 [09:34:26]MH_I2C_Read... [09:34:26]Read from MH i2c: E2 0E 00 [09:34:26]MH_I2C_Read... [09:34:26]Read from MH i2c: E2 0E 00 EF 18 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 4C [09:34:26]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:34:26]wFMCommunicate OK [09:34:26]SAM_PROTO_GetShiftState done [09:34:26]FM_GetShiftState done [09:34:26]req_shift_opened done [09:34:26]requested_item shift.open_date is exist - process it [09:34:26]req_shift_open_date [09:34:26]req_shift_open_date done [09:34:26]produce_requested_data done [09:34:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67022,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:34:26]process_action_free close_receipt [09:34:26]json_value_free [09:34:26]json_value_free done [09:34:26]process_json_proto returns [09:34:26]Send response to host [09:34:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67022,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:34:26]free response buf [09:34:26]execute_script done [09:34:26]execute_script returns [09:34:26]free content buf [09:34:26]Sock 9.Close socket [09:34:26]Sock 9.Thread stoped [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [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:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:43]accept exits with 10 [09:38:43]New connection [09:38:43]New thread 3066760548 created [09:38:43]Thread 3066617188 joined [09:38:43]Waiting for new connection... [09:38:43] Sock 10.Parse request [09:38:43]Sock 10.Check first char [09:38:43]Sock 10.First char is OK [09:38:43]request: POST /json_proto HTTP/1.0 [09:38:43]Method: POST [09:38:43]URL: /json_proto [09:38:43]Method is POST - this is cgi request [09:38:43]url: /json_proto [09:38:43]query_string will be loaded in cgi processing [09:38:43]execute_cgi json_proto POST (null) [09:38:43]execute_cgi path=json_proto method=POST [09:38:43]POST find Content-Length [09:38:43]Host: 172.17.41.195:8080 [09:38:43]Content-Length: 1179 [09:38:43]Content-Type: application/json [09:38:43] [09:38:43]POST finish read [09:38:43]Found Content-Length = 1179 [09:38: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)506863\u000A14.05.2024 09:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:43]execute_script... [09:38: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)506863\u000A14.05.2024 09:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:43]POST & json_proto [09:38:43]process_json_proto [09:38:43]json parsed OK: [09:38:43]protocol is kg_v1.0 [09:38:43]action value=print_text [09:38:43]process_action print_text [09:38:43]cmd_print_text [09:38:43]ExternCall_PrintAddStr [09:38:43]wPrintStart [09:38:43]Write to MH i2c: 01 00 00 F0 18 08 [09:38:43]Write i2c OK [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: 01 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: 01 07 00 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: 01 07 00 F0 18 00 00 00 00 00 FF 0F 1D [09:38:43]RasterBufferAndPrint [09:38:43]line *****ТОВАРНЫЙ ЧЕК***** [09:38:43]line АЗС-91 [09:38:43]line Партнер нефть [09:38:43]line 02508201610067 [09:38:43]line Кассир : Адишов И. [09:38:43]line Счет N : (1)506863 [09:38:43]line 14.05.2024 09:21 [09:38:43]line ПРОДАЖА [09:38:43]line ТРК (МРК, ГНК): 31 [09:38:43]line Вид ГСМ : 2710194210 [09:38:43]line ДТ-К-5 [09:38:43]line 20.000 x 74.70 [09:38:43]line ИТОГ: 1494.00 [09:38:43]line Тип оплаты: Талоны: Топливная Карта [09:38:43]line 02750 [09:38:43]line ______________________ [09:38:43]line (подпись) [09:38:43]written 0, free lines is 4095 [09:38:43]Write to MH i2c: 01 00 00 04 19 1D [09:38:43]Write i2c OK [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: 01 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: 01 07 00 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: 01 07 00 04 19 00 00 00 00 00 0E 0E 40 [09:38:43]RasterBufferAndPrint [09:38:43]line [09:38:43]line [09:38:43]line [09:38:43]line [09:38:43]line [09:38:43]written 0, free lines is 3600 [09:38:43]MH_Cut [09:38:43]Write to MH i2c: D1 01 00 0B 19 01 F6 [09:38:43]Write i2c OK [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: D1 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: D1 01 00 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: D1 01 00 0B 19 00 F5 [09:38:43]Write to MH i2c: 01 00 00 0C 19 25 [09:38:43]Write i2c OK [09:38:43]MH_I2C_Read... [09:38:43]*** Cut start [09:38:43]*** Purtial cut [09:38:43]*** CUTSNS_PIN = 0 [09:38:44]*** Stage 1: CUTSNS_PIN = 1 [09:38:45]OFD Sender: No OFD packet to send [09:38:45]Read from MH i2c: 01 [09:38:45]MH_I2C_Read... [09:38:45]*** Stop cut motor [09:38:45]*** Cut end [09:38:45]Read from MH i2c: 01 07 00 [09:38:45]MH_I2C_Read... [09:38:45]Read from MH i2c: 01 07 00 0C 19 00 00 00 00 00 FF 0F 3A [09:38:45]process_action print_text done [09:38:45]requested_data is exist [09:38:45]produce_requested_data [09:38:45]requested_item fm.sn is exist - process it [09:38:45]wFMCommunicate request_size=4 [09:38:45]MH_SAM_APDU [09:38:45]CAPDU: 80 11 00 00 [09:38:45]Write to MH i2c: E2 08 00 0D 19 80 11 00 00 00 00 00 00 A0 [09:38:45]Write i2c OK [09:38:45]MH_I2C_Read... [09:38:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:46]Read from MH i2c: E2 [09:38:46]MH_I2C_Read... [09:38:46]Read from MH i2c: E2 17 00 [09:38:46]MH_I2C_Read... [09:38:46]Read from MH i2c: E2 17 00 0D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F6 [09: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 [09:38:46]wFMCommunicate OK [09:38:46]requested_item fd.num is exist - process it [09:38:46]SAM_PROTO_GetFieldsCounters [09:38:46]wFMCommunicate request_size=4 [09:38:46]MH_SAM_APDU [09:38:46]CAPDU: 80 13 00 00 [09:38:46]Write to MH i2c: E2 08 00 0E 19 80 13 00 00 00 00 00 00 A3 [09:38:46]Write i2c OK [09:38:46]MH_I2C_Read... [09:38:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:46]Read from MH i2c: E2 [09:38:46]MH_I2C_Read... [09:38:46]Read from MH i2c: E2 62 00 [09:38:46]MH_I2C_Read... [09:38:46]Read from MH i2c: E2 62 00 0E 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 CE 05 01 00 0E 04 04 00 63 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 58 [09: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 CE 05 01 00 0E 04 04 00 63 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:38:46]wFMCommunicate OK [09:38:46]SAM_PROTO_GetFieldsCounters done [09:38:46]requested_item shift.num is exist - process it [09:38:46]requested_item shift.opened is exist - process it [09:38:46]req_shift_opened [09:38:46]FM_GetShiftState [09:38:46]SAM_PROTO_GetShiftState [09:38:46]wFMCommunicate request_size=4 [09:38:46]MH_SAM_APDU [09:38:46]CAPDU: 80 13 01 00 [09:38:46]Write to MH i2c: E2 08 00 0F 19 80 13 01 00 00 00 00 00 A5 [09:38:46]Write i2c OK [09:38:46]MH_I2C_Read... [09:38:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:46]Read from MH i2c: E2 [09:38:46]MH_I2C_Read... [09:38:46]Read from MH i2c: E2 0E 00 [09:38:46]MH_I2C_Read... [09:38:46]Read from MH i2c: E2 0E 00 0F 19 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 6D [09:38:46]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:38:46]wFMCommunicate OK [09:38:46]SAM_PROTO_GetShiftState done [09:38:46]FM_GetShiftState done [09:38:46]req_shift_opened done [09:38:46]requested_item shift.open_date is exist - process it [09:38:46]req_shift_open_date [09:38:46]req_shift_open_date done [09:38:46]produce_requested_data done [09:38:46]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67022,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:38:46]process_action_free print_text [09:38:46]json_value_free [09:38:46]json_value_free done [09:38:46]process_json_proto returns [09:38:46]Send response to host [09:38:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67022,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:38:46]free response buf [09:38:46]execute_script done [09:38:46]execute_script returns [09:38:46]free content buf [09:38:46]Sock 10.Close socket [09:38:46]Sock 10.Thread stoped [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:39:57]accept exits with 8 [09:39:57]New connection [09:39:57]New thread 3066617188 created [09:39:57]Thread 3066760548 joined [09:39:57]Waiting for new connection... [09:39:57] Sock 8.Parse request [09:39:57]Sock 8.Check first char [09:39:57]Sock 8.First char is OK [09:39:57]request: POST /json_proto HTTP/1.0 [09:39:57]Method: POST [09:39:57]URL: /json_proto [09:39:57]Method is POST - this is cgi request [09:39:57]url: /json_proto [09:39:57]query_string will be loaded in cgi processing [09:39:57]execute_cgi json_proto POST (null) [09:39:57]execute_cgi path=json_proto method=POST [09:39:57]POST find Content-Length [09:39:57]Host: 172.17.41.195:8080 [09:39:57]Content-Length: 674 [09:39:57]Content-Type: application/json [09:39:57] [09:39:57]POST finish read [09:39:57]Found Content-Length = 674 [09:39:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506864", "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" ] } } [09:39:57]execute_script... [09:39: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)506864", "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" ] } } [09:39:57]POST & json_proto [09:39:57]process_json_proto [09:39:57]json parsed OK: [09:39:57]protocol is kg_v1.0 [09:39:57]action value=close_receipt [09:39:57]process_action close_receipt [09:39:57]cmd_close_receipt [09:39:57]MH_GetDate [09:39:57]Write to MH i2c: F0 00 00 10 19 18 [09:39:57]Write i2c OK [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: F0 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: F0 09 00 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: F0 09 00 10 19 00 71 31 43 66 FC 21 6F 64 5C [09:39:57]GetLastDocTimeStamp 1715679266 [09:39:57]current date 1715679601 [09:39:57]FM_GetShiftState [09:39:57]SAM_PROTO_GetShiftState [09:39:57]wFMCommunicate request_size=4 [09:39:57]MH_SAM_APDU [09:39:57]CAPDU: 80 13 01 00 [09:39:57]Write to MH i2c: E2 08 00 11 19 80 13 01 00 00 00 00 00 A7 [09:39:57]Write i2c OK [09:39:57]MH_I2C_Read... [09:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:57]Read from MH i2c: E2 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 0E 00 [09:39:57]MH_I2C_Read... [09:39:57]Read from MH i2c: E2 0E 00 11 19 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 6F [09:39:57]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:39:57]wFMCommunicate OK [09:39:57]SAM_PROTO_GetShiftState done [09:39:57]FM_GetShiftState done [09:39:57]opened in 1715646054 [09:39:57]opened+sec_in_day 1715732454 [09:39:57]quantity*price = 60058 [09:39:57]sum+1 = 60060 [09:39:57]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 СНО: Общий режим Чек 30 14.05.2024 09:40 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67023 ФПД: 131529522083333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T094001&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67023&fm=131529522083333&tin=02508201610067®Number=0000000000091845&sum=60000 [09:39:58]StoreToDocumentArchive [09:39:58]shift 355 fd 67023 [09:39:58]save to /storage/0355/doc_00067023 [09:39:58]save last doc name /storage/0355/doc_00067023 to /storage/kkm_last_doc_name [09:39:58]save OK [09:39:58]Clear old archive folders... [09:39:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:39:58]tlvbuf is 00364700 [09:39:58]SAM_PROTO_ClearQueue [09:39:58]wFMCommunicate request_size=4 [09:39:58]MH_SAM_APDU [09:39:58]CAPDU: 80 09 00 00 [09:39:58]Write to MH i2c: E2 08 00 1E 19 80 09 00 00 00 00 00 00 A9 [09:39:58]Write i2c OK [09:39:58]MH_I2C_Read... [09:39:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:58]Read from MH i2c: E2 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 03 00 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 03 00 1E 19 00 90 00 AB [09:39:58]RAPDU: 90 00 [09:39:58]wFMCommunicate OK [09:39:58]SAM_PROTO_ClearQueue done [09:39:58]KKMCreateOFDPacket [09:39:58]OFDProtocolAddRootSTLVToBuf [09:39:58]FM_MakeSignedData [09:39:58]FM_MakeSignedData [09:39:58]SAM_PROTO_SignData [09:39:58]wFMCommunicate request_size=4 [09:39:58]MH_SAM_APDU [09:39:58]CAPDU: 80 0D 01 02 [09:39:58]Write to MH i2c: E2 08 00 1F 19 80 0D 01 02 00 00 00 00 B1 [09:39:58]Write i2c OK [09:39:58]MH_I2C_Read... [09:39:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:58]Read from MH i2c: E2 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 03 00 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 03 00 1F 19 00 90 00 AC [09:39:58]RAPDU: 90 00 [09:39:58]wFMCommunicate OK [09:39:58]wFMCommunicate request_size=255 [09:39:58]MH_SAM_APDU [09:39:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 71 31 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CF 05 01 00 35 04 06 00 77 A0 1A 70 [09:39:58]Write to MH i2c: E2 02 01 20 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 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 1E 00 00 00 F4 03 04 00 71 31 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CF 05 01 00 35 04 06 00 77 A0 1A 70 00 00 58 [09:39:58]Write i2c OK [09:39:58]MH_I2C_Read... [09:39:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:58]Read from MH i2c: E2 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 03 00 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 03 00 20 19 00 90 00 AD [09:39:58]RAPDU: 90 00 [09:39:58]wFMCommunicate OK [09:39:58]wFMCommunicate request_size=7 [09:39:58]MH_SAM_APDU [09:39:58]CAPDU: 80 0D 02 02 02 F6 05 [09:39:58]Write to MH i2c: E2 0A 00 21 19 80 0D 02 02 02 00 F6 05 00 00 B3 [09:39:58]Write i2c OK [09:39:58]MH_I2C_Read... [09:39:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:58]Read from MH i2c: E2 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 03 00 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 03 00 21 19 00 90 00 AE [09:39:58]RAPDU: 90 00 [09:39:58]wFMCommunicate OK [09:39:58]wFMCommunicate request_size=4 [09:39:58]MH_SAM_APDU [09:39:58]CAPDU: 80 0D 03 02 [09:39:58]Write to MH i2c: E2 08 00 22 19 80 0D 03 02 00 00 00 00 B6 [09:39:58]Write i2c OK [09:39:58]MH_I2C_Read... [09:39:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:58]Read from MH i2c: E2 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 0B 00 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 0B 00 22 19 00 89 1C 5A D1 54 04 2A B8 90 00 C1 [09:39:58]RAPDU: 89 1C 5A D1 54 04 2A B8 90 00 [09:39:58]wFMCommunicate OK [09:39:58]SAM_PROTO_SignData done [09:39:58]FM_MakeSignedData done [09:39:58]CreateOFDProtocolMessage [09:39:58]wFMCommunicate request_size=4 [09:39:58]MH_SAM_APDU [09:39:58]CAPDU: 80 11 00 00 [09:39:58]Write to MH i2c: E2 08 00 23 19 80 11 00 00 00 00 00 00 B6 [09:39:58]Write i2c OK [09:39:58]MH_I2C_Read... [09:39:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:58]Read from MH i2c: E2 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 17 00 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 17 00 23 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0C [09:39:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:39:58]wFMCommunicate OK [09:39:58]CreateOFDProtocolMessage done [09:39:58]OFDSenderStorePacket 67023 [09:39:58]StoreOFDPacket docnum=67023 [09:39: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 0C 01 00 00 73 48 04 01 36 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1E 00 00 00 F4 03 04 00 71 31 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CF 05 01 00 35 04 06 00 77 A0 1A 70 F6 05 89 1C 5A D1 54 04 2A B8 [09:39:58]CheckFolder [09:39:58]dirname=/storage/ofd_packets [09:39:58]CheckFolder done [09:39:58]ProducePacketName [09:39:58]name=ofd_packets/00067023 [09:39:58]NVStorageSaveData ofd_packets/00067023 [09:39:58]File name is /storage/ofd_packets/00067023 [09:39:58]Write 298 bytes [09:39:58]NVStorageSaveData done [09:39:58]OFDSenderStorePacket done [09:39:58]KKMCreateOFDPacket done [09:39:58]NVStorageSaveData kkm_last_timestamp [09:39:58]File name is /storage/kkm_last_timestamp [09:39:58]Write 4 bytes [09:39:58]NVStorageSaveData done [09:39:58]ExternCall_PrintAddStr [09:39:58]wPrintStart [09:39:58]Write to MH i2c: 01 00 00 24 19 3D [09:39:58]Write i2c OK [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: 01 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: 01 07 00 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: 01 07 00 24 19 00 00 00 00 00 FF 0F 52 [09:39:58]RasterBufferAndPrint [09:39:58]line Счет N : (1)506864 [09:39:58]line ИНН: 02508201610067 [09:39:58]line Контрольно-Кассовый Чек [09:39:58]line ПРОДАЖА [09:39:58]line ТРК (МРК, ГНК) : 41 [09:39:58]line Товар: 2710194210 [09:39:58]line ДТ-К-5 [09:39:58]line 8.040 * 74.70 [09:39:58]line = 600.59 [09:39:58]line НДС 12% НСП 1% [09:39:58]line > о реализуемом товаре [09:39:58]line ОКРУГЛЕНИЕ: -0.59 [09:39:58]line ИТОГО: 600.00 [09:39:58]line Внесено: 600.00 [09:39:58]line СДАЧА: 0.00 [09:39:58]line НСП 1% : 5.31 [09:39:58]line НДС 12% : 63.78 [09:39:58]line Наличными: 600.00 [09:39:58]line Безнал.: 0.00 [09:39:58]line Место: АЗС № 91 "Партнер Нефть" [09:39:58]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:39:58]line СНО: Общий режим [09:39:58]line Чек 30 14.05.2024 09:40 [09:39:58]line Смена: 355 ФФД: 1.0 [09:39:58]line ЗНМ: 0300000119 [09:39:58]line РНМ: 0000000000091845 [09:39:58]line Версия ККМ: 001 [09:39:58]line ФМ: 0000000000871829 [09:39:58]line ФД: 67023 [09:39:58]line ФПД: 131529522083333 [09:39:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T094001&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67023&fm=131529522083333&tin=02508201610067®Number=0000000000091845&sum=60000 [09:39:59]OFD Sender: Processing packet 67023 [packets to send 35, broken 34] [09:39:59]ProducePacketName [09:39:59]name=ofd_packets/00067023 [09:39:59]OFD Sender: To server: pG, [09:39:59]CommunicateWithHost lk.salyk.kg:30040 [09:39:59]ConnectInit lk.salyk.kg [09:39:59]written 0, free lines is 4095 [09:39:59]Connected sock=10 [09:39:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 73 48 04 01 36 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 1E 00 00 00 F4 03 04 00 71 31 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CF 05 01 00 35 04 06 00 77 A0 1A 70 F6 05 89 1C 5A D1 54 04 2A B8 [09:39: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 F4 59 47 00 29 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 CF 05 01 00 F4 03 04 00 51 D9 42 66 B6 04 01 00 00 8D E3 1C C4 24 5A 67 4F [09:39:59]CommunicateWithHost err = 0 [09:39:59]CheckOFDResponse [09:39:59]1017 (14) - 77093643461234 [09:39:59]1041 (16) - 0000000000871829 [09:39:59]1040 (4) - 67023 [09:39:59]1012 (4) - 14.05.2024 03:24 [09:39:59]1206 (1) - 0 [09:39:59]OFD Sender: Remove packet 67023 [09:39:59]ProducePacketName [09:39:59]name=ofd_packets/00067023 [09:39:59]NVStorageDeleteData [09:39:59]Write to MH i2c: 01 00 00 4E 19 67 [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: 01 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: 01 07 00 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: 01 07 00 4E 19 00 00 00 00 00 C7 0C 41 [09:39:59]RasterBufferAndPrint [09:39:59]line [09:39:59]line [09:39:59]line [09:39:59]line [09:39:59]line [09:39:59]written 0, free lines is 3278 [09:39:59]MH_Cut [09:39:59]Write to MH i2c: D1 01 00 55 19 01 40 [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: D1 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: D1 01 00 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: D1 01 00 55 19 00 3F [09:39:59]Write to MH i2c: 01 00 00 56 19 6F [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:40:00]OFD Sender: No OFD packet to send [09:40:00]*** Cut start [09:40:00]*** Purtial cut [09:40:00]*** Stage 1: CUTSNS_PIN = 1 [09:40:00]Read from MH i2c: 01 [09:40:00]MH_I2C_Read... [09:40:00]*** Stop cut motor [09:40:00]*** Cut end [09:40:00]Read from MH i2c: 01 07 00 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: 01 07 00 56 19 00 00 00 00 00 FF 0F 84 [09:40:00]process_action close_receipt done [09:40:00]requested_data is exist [09:40:00]produce_requested_data [09:40:00]requested_item fm.sn is exist - process it [09:40:00]wFMCommunicate request_size=4 [09:40:00]MH_SAM_APDU [09:40:00]CAPDU: 80 11 00 00 [09:40:00]Write to MH i2c: E2 08 00 57 19 80 11 00 00 00 00 00 00 EA [09:40:00]Write i2c OK [09:40:00]MH_I2C_Read... [09:40:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:00]Read from MH i2c: E2 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: E2 17 00 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: E2 17 00 57 19 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:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:40:00]wFMCommunicate OK [09:40:00]requested_item fd.num is exist - process it [09:40:00]SAM_PROTO_GetFieldsCounters [09:40:00]wFMCommunicate request_size=4 [09:40:00]MH_SAM_APDU [09:40:00]CAPDU: 80 13 00 00 [09:40:00]Write to MH i2c: E2 08 00 58 19 80 13 00 00 00 00 00 00 ED [09:40:00]Write i2c OK [09:40:00]MH_I2C_Read... [09:40:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:01]Read from MH i2c: E2 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: E2 62 00 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: E2 62 00 58 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 CF 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [09:40: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 CF 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:40:01]wFMCommunicate OK [09:40:01]SAM_PROTO_GetFieldsCounters done [09:40:01]requested_item shift.num is exist - process it [09:40:01]requested_item shift.opened is exist - process it [09:40:01]req_shift_opened [09:40:01]FM_GetShiftState [09:40:01]SAM_PROTO_GetShiftState [09:40:01]wFMCommunicate request_size=4 [09:40:01]MH_SAM_APDU [09:40:01]CAPDU: 80 13 01 00 [09:40:01]Write to MH i2c: E2 08 00 59 19 80 13 01 00 00 00 00 00 EF [09:40:01]Write i2c OK [09:40:01]MH_I2C_Read... [09:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:01]Read from MH i2c: E2 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: E2 0E 00 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: E2 0E 00 59 19 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 B7 [09:40:01]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:40:01]wFMCommunicate OK [09:40:01]SAM_PROTO_GetShiftState done [09:40:01]FM_GetShiftState done [09:40:01]req_shift_opened done [09:40:01]requested_item shift.open_date is exist - process it [09:40:01]req_shift_open_date [09:40:01]req_shift_open_date done [09:40:01]produce_requested_data done [09:40:01]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67023,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:40:01]process_action_free close_receipt [09:40:01]json_value_free [09:40:01]json_value_free done [09:40:01]process_json_proto returns [09:40:01]Send response to host [09:40:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67023,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:40:01]free response buf [09:40:01]execute_script done [09:40:01]execute_script returns [09:40:01]free content buf [09:40:01]Sock 8.Close socket [09:40:01]Sock 8.Thread stoped [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:41]accept exits with 9 [09:42:41]New connection [09:42:41]New thread 3066760548 created [09:42:41]Thread 3066617188 joined [09:42:41]Waiting for new connection... [09:42:41] Sock 9.Parse request [09:42:41]Sock 9.Check first char [09:42:41]Sock 9.First char is OK [09:42:41]request: POST /json_proto HTTP/1.0 [09:42:41]Method: POST [09:42:41]URL: /json_proto [09:42:41]Method is POST - this is cgi request [09:42:41]url: /json_proto [09:42:41]query_string will be loaded in cgi processing [09:42:41]execute_cgi json_proto POST (null) [09:42:41]execute_cgi path=json_proto method=POST [09:42:41]POST find Content-Length [09:42:41]Host: 172.17.41.195:8080 [09:42:41]Content-Length: 1179 [09:42:41]Content-Type: application/json [09:42:41] [09:42:41]POST finish read [09:42:41]Found Content-Length = 1179 [09:42: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)506865\u000A14.05.2024 09:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.090 x 74.70\u000A\u0418\u0422\u041E\u0413: 1500.72\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:41]execute_script... [09:42: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)506865\u000A14.05.2024 09:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.090 x 74.70\u000A\u0418\u0422\u041E\u0413: 1500.72\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:41]POST & json_proto [09:42:41]process_json_proto [09:42:41]json parsed OK: [09:42:41]protocol is kg_v1.0 [09:42:41]action value=print_text [09:42:41]process_action print_text [09:42:41]cmd_print_text [09:42:41]ExternCall_PrintAddStr [09:42:41]wPrintStart [09:42:41]Write to MH i2c: 01 00 00 5A 19 73 [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 07 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 07 00 5A 19 00 00 00 00 00 FF 0F 88 [09:42:41]RasterBufferAndPrint [09:42:41]line *****ТОВАРНЫЙ ЧЕК***** [09:42:41]line АЗС-91 [09:42:41]line Партнер нефть [09:42:41]line 02508201610067 [09:42:41]line Кассир : Адишов И. [09:42:41]line Счет N : (1)506865 [09:42:41]line 14.05.2024 09:25 [09:42:41]line ПРОДАЖА [09:42:41]line ТРК (МРК, ГНК): 21 [09:42:41]line Вид ГСМ : 2710194210 [09:42:41]line ДТ-К-5 [09:42:41]line 20.090 x 74.70 [09:42:41]line ИТОГ: 1500.72 [09:42:41]line Тип оплаты: Талоны: Топливная Карта [09:42:41]line 02750 [09:42:41]line ______________________ [09:42:41]line (подпись) [09:42:41]written 0, free lines is 4095 [09:42:41]Write to MH i2c: 01 00 00 6E 19 87 [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 07 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: 01 07 00 6E 19 00 00 00 00 00 0D 0E A9 [09:42:41]RasterBufferAndPrint [09:42:41]line [09:42:41]line [09:42:41]line [09:42:41]line [09:42:41]line [09:42:41]written 0, free lines is 3598 [09:42:41]MH_Cut [09:42:41]Write to MH i2c: D1 01 00 75 19 01 60 [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: D1 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: D1 01 00 [09:42:41]MH_I2C_Read... [09:42:41]Read from MH i2c: D1 01 00 75 19 00 5F [09:42:41]Write to MH i2c: 01 00 00 76 19 8F [09:42:41]Write i2c OK [09:42:41]MH_I2C_Read... [09:42:42]*** Cut start [09:42:42]*** Purtial cut [09:42:42]*** CUTSNS_PIN = 0 [09:42:42]*** Stage 1: CUTSNS_PIN = 1 [09:42:44]Read from MH i2c: 01 [09:42:44]MH_I2C_Read... [09:42:44]*** Stop cut motor [09:42:44]*** Cut end [09:42:44]Read from MH i2c: 01 07 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: 01 07 00 76 19 00 00 00 00 00 FF 0F A4 [09:42:44]process_action print_text done [09:42:44]requested_data is exist [09:42:44]produce_requested_data [09:42:44]requested_item fm.sn is exist - process it [09:42:44]wFMCommunicate request_size=4 [09:42:44]MH_SAM_APDU [09:42:44]CAPDU: 80 11 00 00 [09:42:44]Write to MH i2c: E2 08 00 77 19 80 11 00 00 00 00 00 00 0A [09:42:44]Write i2c OK [09:42:44]MH_I2C_Read... [09:42:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:44]Read from MH i2c: E2 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 17 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 17 00 77 19 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:42: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:42:44]wFMCommunicate OK [09:42:44]requested_item fd.num is exist - process it [09:42:44]SAM_PROTO_GetFieldsCounters [09:42:44]wFMCommunicate request_size=4 [09:42:44]MH_SAM_APDU [09:42:44]CAPDU: 80 13 00 00 [09:42:44]Write to MH i2c: E2 08 00 78 19 80 13 00 00 00 00 00 00 0D [09:42:44]Write i2c OK [09:42:44]MH_I2C_Read... [09:42:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:44]Read from MH i2c: E2 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 62 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 62 00 78 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 CF 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [09:42: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 CF 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:44]wFMCommunicate OK [09:42:44]SAM_PROTO_GetFieldsCounters done [09:42:44]requested_item shift.num is exist - process it [09:42:44]requested_item shift.opened is exist - process it [09:42:44]req_shift_opened [09:42:44]FM_GetShiftState [09:42:44]SAM_PROTO_GetShiftState [09:42:44]wFMCommunicate request_size=4 [09:42:44]MH_SAM_APDU [09:42:44]CAPDU: 80 13 01 00 [09:42:44]Write to MH i2c: E2 08 00 79 19 80 13 01 00 00 00 00 00 0F [09:42:44]Write i2c OK [09:42:44]MH_I2C_Read... [09:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:44]Read from MH i2c: E2 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 0E 00 [09:42:44]MH_I2C_Read... [09:42:44]Read from MH i2c: E2 0E 00 79 19 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D7 [09:42:44]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:42:44]wFMCommunicate OK [09:42:44]SAM_PROTO_GetShiftState done [09:42:44]FM_GetShiftState done [09:42:44]req_shift_opened done [09:42:44]requested_item shift.open_date is exist - process it [09:42:44]req_shift_open_date [09:42:44]req_shift_open_date done [09:42:44]produce_requested_data done [09:42:44]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67023,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:42:44]process_action_free print_text [09:42:44]json_value_free [09:42:44]json_value_free done [09:42:44]process_json_proto returns [09:42:44]Send response to host [09:42:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67023,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:42:44]free response buf [09:42:44]execute_script done [09:42:44]execute_script returns [09:42:44]free content buf [09:42:44]Sock 9.Close socket [09:42:44]Sock 9.Thread stoped [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]accept exits with 8 [09:44:05]New connection [09:44:05]New thread 3066617188 created [09:44:05]Thread 3066760548 joined [09:44:05]Waiting for new connection... [09:44:05] Sock 8.Parse request [09:44:05]Sock 8.Check first char [09:44:05]Sock 8.First char is OK [09:44:05]request: POST /json_proto HTTP/1.0 [09:44:05]Method: POST [09:44:05]URL: /json_proto [09:44:05]Method is POST - this is cgi request [09:44:05]url: /json_proto [09:44:05]query_string will be loaded in cgi processing [09:44:05]execute_cgi json_proto POST (null) [09:44:05]execute_cgi path=json_proto method=POST [09:44:05]POST find Content-Length [09:44:05]Host: 172.17.41.195:8080 [09:44:05]Content-Length: 1179 [09:44:05]Content-Type: application/json [09:44:05] [09:44:05]POST finish read [09:44:05]Found Content-Length = 1179 [09:44:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506866\u000A14.05.2024 09:26\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 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:44:05]execute_script... [09:44:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506866\u000A14.05.2024 09:26\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 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:44:05]POST & json_proto [09:44:05]process_json_proto [09:44:05]json parsed OK: [09:44:05]protocol is kg_v1.0 [09:44:05]action value=print_text [09:44:05]process_action print_text [09:44:05]cmd_print_text [09:44:05]ExternCall_PrintAddStr [09:44:05]wPrintStart [09:44:05]Write to MH i2c: 01 00 00 7A 19 93 [09:44:05]Write i2c OK [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: 01 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: 01 07 00 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: 01 07 00 7A 19 00 00 00 00 00 FF 0F A8 [09:44:05]RasterBufferAndPrint [09:44:05]line *****ТОВАРНЫЙ ЧЕК***** [09:44:05]line АЗС-91 [09:44:05]line Партнер нефть [09:44:05]line 02508201610067 [09:44:05]line Кассир : Адишов И. [09:44:05]line Счет N : (1)506866 [09:44:05]line 14.05.2024 09:26 [09:44:05]line ПРОДАЖА [09:44:05]line ТРК (МРК, ГНК): 41 [09:44:05]line Вид ГСМ : 2710194210 [09:44:05]line ДТ-К-5 [09:44:05]line 25.000 x 74.70 [09:44:05]line ИТОГ: 1867.50 [09:44:05]line Тип оплаты: Талоны: Топливная Карта [09:44:05]line 02750 [09:44:05]line ______________________ [09:44:05]line (подпись) [09:44:05]written 0, free lines is 4095 [09:44:05]OFD Sender: No OFD packet to send [09:44:05]Write to MH i2c: 01 00 00 8E 19 A7 [09:44:05]Write i2c OK [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: 01 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: 01 07 00 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: 01 07 00 8E 19 00 00 00 00 00 0D 0E C9 [09:44:05]RasterBufferAndPrint [09:44:05]line [09:44:05]line [09:44:05]line [09:44:05]line [09:44:05]line [09:44:05]written 0, free lines is 3599 [09:44:05]MH_Cut [09:44:05]Write to MH i2c: D1 01 00 95 19 01 80 [09:44:05]Write i2c OK [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: D1 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: D1 01 00 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: D1 01 00 95 19 00 7F [09:44:05]Write to MH i2c: 01 00 00 96 19 AF [09:44:05]Write i2c OK [09:44:05]MH_I2C_Read... [09:44:06]*** Cut start [09:44:06]*** Purtial cut [09:44:06]*** Stage 1: CUTSNS_PIN = 1 [09:44:06]Read from MH i2c: 01 [09:44:06]MH_I2C_Read... [09:44:06]Read from MH i2c: 01 07 00 [09:44:06]MH_I2C_Read... [09:44:06]*** Stop cut motor [09:44:06]*** Cut end [09:44:06]Read from MH i2c: 01 07 00 96 19 00 00 00 00 00 FF 0F C4 [09:44:06]process_action print_text done [09:44:06]requested_data is exist [09:44:06]produce_requested_data [09:44:06]requested_item fm.sn is exist - process it [09:44:06]wFMCommunicate request_size=4 [09:44:06]MH_SAM_APDU [09:44:06]CAPDU: 80 11 00 00 [09:44:06]Write to MH i2c: E2 08 00 97 19 80 11 00 00 00 00 00 00 2A [09:44:06]Write i2c OK [09:44:06]MH_I2C_Read... [09:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:06]Read from MH i2c: E2 [09:44:06]MH_I2C_Read... [09:44:06]Read from MH i2c: E2 17 00 [09:44:06]MH_I2C_Read... [09:44:06]Read from MH i2c: E2 17 00 97 19 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:44: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:44:06]wFMCommunicate OK [09:44:06]requested_item fd.num is exist - process it [09:44:06]SAM_PROTO_GetFieldsCounters [09:44:06]wFMCommunicate request_size=4 [09:44:06]MH_SAM_APDU [09:44:06]CAPDU: 80 13 00 00 [09:44:06]Write to MH i2c: E2 08 00 98 19 80 13 00 00 00 00 00 00 2D [09:44:06]Write i2c OK [09:44:06]MH_I2C_Read... [09:44:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:06]Read from MH i2c: E2 [09:44:06]MH_I2C_Read... [09:44:06]Read from MH i2c: E2 62 00 [09:44:06]MH_I2C_Read... [09:44:06]Read from MH i2c: E2 62 00 98 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 CF 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [09:44: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 CF 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:06]wFMCommunicate OK [09:44:06]SAM_PROTO_GetFieldsCounters done [09:44:06]requested_item shift.num is exist - process it [09:44:06]requested_item shift.opened is exist - process it [09:44:06]req_shift_opened [09:44:06]FM_GetShiftState [09:44:06]SAM_PROTO_GetShiftState [09:44:06]wFMCommunicate request_size=4 [09:44:06]MH_SAM_APDU [09:44:06]CAPDU: 80 13 01 00 [09:44:06]Write to MH i2c: E2 08 00 99 19 80 13 01 00 00 00 00 00 2F [09:44:06]Write i2c OK [09:44:06]MH_I2C_Read... [09:44:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:06]Read from MH i2c: E2 [09:44:06]MH_I2C_Read... [09:44:06]Read from MH i2c: E2 0E 00 [09:44:06]MH_I2C_Read... [09:44:06]Read from MH i2c: E2 0E 00 99 19 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F7 [09:44:06]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:44:06]wFMCommunicate OK [09:44:06]SAM_PROTO_GetShiftState done [09:44:06]FM_GetShiftState done [09:44:06]req_shift_opened done [09:44:06]requested_item shift.open_date is exist - process it [09:44:06]req_shift_open_date [09:44:06]req_shift_open_date done [09:44:06]produce_requested_data done [09:44:06]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67023,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:44:06]process_action_free print_text [09:44:06]json_value_free [09:44:06]json_value_free done [09:44:06]process_json_proto returns [09:44:06]Send response to host [09:44:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67023,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:44:06]free response buf [09:44:06]execute_script done [09:44:06]execute_script returns [09:44:06]free content buf [09:44:06]Sock 8.Close socket [09:44:06]Sock 8.Thread stoped [09:44:09]accept exits with 9 [09:44:09]New connection [09:44:09]New thread 3066760548 created [09:44:09]Thread 3066617188 joined [09:44:09]Waiting for new connection... [09:44:09] Sock 9.Parse request [09:44:09]Sock 9.Check first char [09:44:09]Sock 9.First char is OK [09:44:09]request: POST /json_proto HTTP/1.0 [09:44:09]Method: POST [09:44:09]URL: /json_proto [09:44:09]Method is POST - this is cgi request [09:44:09]url: /json_proto [09:44:09]query_string will be loaded in cgi processing [09:44:09]execute_cgi json_proto POST (null) [09:44:09]execute_cgi path=json_proto method=POST [09:44:09]POST find Content-Length [09:44:09]Host: 172.17.41.195:8080 [09:44:09]Content-Length: 682 [09:44:09]Content-Type: application/json [09:44:09] [09:44:09]POST finish read [09:44:09]Found Content-Length = 682 [09:44:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506867", "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" ] } } [09:44:09]execute_script... [09:44: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)506867", "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" ] } } [09:44:09]POST & json_proto [09:44:09]process_json_proto [09:44:09]json parsed OK: [09:44:09]protocol is kg_v1.0 [09:44:09]action value=close_receipt [09:44:09]process_action close_receipt [09:44:09]cmd_close_receipt [09:44:09]MH_GetDate [09:44:09]Write to MH i2c: F0 00 00 9A 19 A2 [09:44:09]Write i2c OK [09:44:09]MH_I2C_Read... [09:44:09]Read from MH i2c: F0 [09:44:09]MH_I2C_Read... [09:44:09]Read from MH i2c: F0 09 00 [09:44:09]MH_I2C_Read... [09:44:09]Read from MH i2c: F0 09 00 9A 19 00 6D 32 43 66 FC 21 6F 64 E3 [09:44:09]GetLastDocTimeStamp 1715679601 [09:44:09]current date 1715679853 [09:44:09]FM_GetShiftState [09:44:09]SAM_PROTO_GetShiftState [09:44:09]wFMCommunicate request_size=4 [09:44:09]MH_SAM_APDU [09:44:09]CAPDU: 80 13 01 00 [09:44:09]Write to MH i2c: E2 08 00 9B 19 80 13 01 00 00 00 00 00 31 [09:44:09]Write i2c OK [09:44:09]MH_I2C_Read... [09:44:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:09]Read from MH i2c: E2 [09:44:09]MH_I2C_Read... [09:44:09]Read from MH i2c: E2 0E 00 [09:44:09]MH_I2C_Read... [09:44:09]Read from MH i2c: E2 0E 00 9B 19 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F9 [09:44:09]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:44:09]wFMCommunicate OK [09:44:09]SAM_PROTO_GetShiftState done [09:44:09]FM_GetShiftState done [09:44:09]opened in 1715646054 [09:44:09]opened+sec_in_day 1715732454 [09:44:09]quantity*price = 100066 [09:44:09]sum+1 = 100067 [09:44:09]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 СНО: Общий режим Чек 31 14.05.2024 09:44 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67024 ФПД: 192387150043016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T094413&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67024&fm=192387150043016&tin=02508201610067®Number=0000000000091845&sum=100000 [09:44:10]StoreToDocumentArchive [09:44:10]shift 355 fd 67024 [09:44:10]save to /storage/0355/doc_00067024 [09:44:10]save last doc name /storage/0355/doc_00067024 to /storage/kkm_last_doc_name [09:44:10]save OK [09:44:10]Clear old archive folders... [09:44:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:10]tlvbuf is 0038DA10 [09:44:10]SAM_PROTO_ClearQueue [09:44:10]wFMCommunicate request_size=4 [09:44:10]MH_SAM_APDU [09:44:10]CAPDU: 80 09 00 00 [09:44:10]Write to MH i2c: E2 08 00 A8 19 80 09 00 00 00 00 00 00 33 [09:44:10]Write i2c OK [09:44:10]MH_I2C_Read... [09:44:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:10]Read from MH i2c: E2 [09:44:10]MH_I2C_Read... [09:44:10]Read from MH i2c: E2 03 00 [09:44:10]MH_I2C_Read... [09:44:10]Read from MH i2c: E2 03 00 A8 19 00 90 00 35 [09:44:10]RAPDU: 90 00 [09:44:10]wFMCommunicate OK [09:44:10]SAM_PROTO_ClearQueue done [09:44:10]KKMCreateOFDPacket [09:44:10]OFDProtocolAddRootSTLVToBuf [09:44:10]FM_MakeSignedData [09:44:10]FM_MakeSignedData [09:44:10]SAM_PROTO_SignData [09:44:10]wFMCommunicate request_size=4 [09:44:10]MH_SAM_APDU [09:44:10]CAPDU: 80 0D 01 02 [09:44:10]Write to MH i2c: E2 08 00 A9 19 80 0D 01 02 00 00 00 00 3B [09:44:10]Write i2c OK [09:44:10]MH_I2C_Read... [09:44:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:10]Read from MH i2c: E2 [09:44:10]MH_I2C_Read... [09:44:10]Read from MH i2c: E2 03 00 [09:44:10]MH_I2C_Read... [09:44:10]Read from MH i2c: E2 03 00 A9 19 00 90 00 36 [09:44:10]RAPDU: 90 00 [09:44:10]wFMCommunicate OK [09:44:10]wFMCommunicate request_size=255 [09:44:10]MH_SAM_APDU [09:44:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 1F 00 00 00 F4 03 04 00 6D 32 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D0 05 01 00 35 04 06 00 AE [09:44:11]Write to MH i2c: E2 02 01 AA 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1F 00 00 00 F4 03 04 00 6D 32 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D0 05 01 00 35 04 06 00 AE 00 00 63 [09:44:11]Write i2c OK [09:44:11]MH_I2C_Read... [09:44:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:11]Read from MH i2c: E2 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: E2 03 00 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: E2 03 00 AA 19 00 90 00 37 [09:44:11]RAPDU: 90 00 [09:44:11]wFMCommunicate OK [09:44:11]wFMCommunicate request_size=10 [09:44:11]MH_SAM_APDU [09:44:11]CAPDU: 80 0D 02 02 05 F9 9F BC D7 88 [09:44:11]Write to MH i2c: E2 0D 00 AB 19 80 0D 02 02 05 00 F9 9F BC D7 88 00 00 FB [09:44:11]Write i2c OK [09:44:11]MH_I2C_Read... [09:44:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:11]Read from MH i2c: E2 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: E2 03 00 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: E2 03 00 AB 19 00 90 00 38 [09:44:11]RAPDU: 90 00 [09:44:11]wFMCommunicate OK [09:44:11]wFMCommunicate request_size=4 [09:44:11]MH_SAM_APDU [09:44:11]CAPDU: 80 0D 03 02 [09:44:11]Write to MH i2c: E2 08 00 AC 19 80 0D 03 02 00 00 00 00 40 [09:44:11]Write i2c OK [09:44:11]MH_I2C_Read... [09:44:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:11]Read from MH i2c: E2 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: E2 0B 00 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: E2 0B 00 AC 19 00 42 51 FE D6 BE 7A 50 74 90 00 A4 [09:44:11]RAPDU: 42 51 FE D6 BE 7A 50 74 90 00 [09:44:11]wFMCommunicate OK [09:44:11]SAM_PROTO_SignData done [09:44:11]FM_MakeSignedData done [09:44:11]CreateOFDProtocolMessage [09:44:11]wFMCommunicate request_size=4 [09:44:11]MH_SAM_APDU [09:44:11]CAPDU: 80 11 00 00 [09:44:11]Write to MH i2c: E2 08 00 AD 19 80 11 00 00 00 00 00 00 40 [09:44:11]Write i2c OK [09:44:11]MH_I2C_Read... [09:44:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:11]Read from MH i2c: E2 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: E2 17 00 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: E2 17 00 AD 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 96 [09: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 [09:44:11]wFMCommunicate OK [09:44:11]CreateOFDProtocolMessage done [09:44:11]OFDSenderStorePacket 67024 [09:44:11]StoreOFDPacket docnum=67024 [09:44: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 A7 3F 07 01 1B 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1F 00 00 00 F4 03 04 00 6D 32 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D0 05 01 00 35 04 06 00 AE F9 9F BC D7 88 42 51 FE D6 BE 7A 50 74 [09:44:11]CheckFolder [09:44:11]dirname=/storage/ofd_packets [09:44:11]CheckFolder done [09:44:11]ProducePacketName [09:44:11]name=ofd_packets/00067024 [09:44:11]NVStorageSaveData ofd_packets/00067024 [09:44:11]File name is /storage/ofd_packets/00067024 [09:44:11]Write 301 bytes [09:44:11]NVStorageSaveData done [09:44:11]OFDSenderStorePacket done [09:44:11]KKMCreateOFDPacket done [09:44:11]NVStorageSaveData kkm_last_timestamp [09:44:11]File name is /storage/kkm_last_timestamp [09:44:11]Write 4 bytes [09:44:11]NVStorageSaveData done [09:44:11]ExternCall_PrintAddStr [09:44:11]wPrintStart [09:44:11]Write to MH i2c: 01 00 00 AE 19 C7 [09:44:11]Write i2c OK [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: 01 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: 01 07 00 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: 01 07 00 AE 19 00 00 00 00 00 FF 0F DC [09:44:11]RasterBufferAndPrint [09:44:11]line Счет N : (1)506867 [09:44:11]line ИНН: 02508201610067 [09:44:11]line Контрольно-Кассовый Чек [09:44:11]line ПРОДАЖА [09:44:11]line ТРК (МРК, ГНК) : 13 [09:44:11]line Товар: 2710124130 [09:44:11]line Аи-92-К-5 [09:44:11]line 14.980 * 66.80 [09:44:11]line = 1000.66 [09:44:11]line НДС 12% НСП 1% [09:44:11]line > о реализуемом товаре [09:44:11]line ОКРУГЛЕНИЕ: -0.66 [09:44:11]line ИТОГО: 1000.00 [09:44:11]line Внесено: 1000.00 [09:44:11]line СДАЧА: 0.00 [09:44:11]line НСП 1% : 8.85 [09:44:11]line НДС 12% : 106.26 [09:44:11]line Наличными: 1000.00 [09:44:11]line Безнал.: 0.00 [09:44:11]line Место: АЗС № 91 "Партнер Нефть" [09:44:11]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:44:11]line СНО: Общий режим [09:44:11]line Чек 31 14.05.2024 09:44 [09:44:11]line Смена: 355 ФФД: 1.0 [09:44:11]line ЗНМ: 0300000119 [09:44:11]line РНМ: 0000000000091845 [09:44:11]line Версия ККМ: 001 [09:44:11]line ФМ: 0000000000871829 [09:44:11]line ФД: 67024 [09:44:11]line ФПД: 192387150043016 [09:44:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T094413&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67024&fm=192387150043016&tin=02508201610067®Number=0000000000091845&sum=100000 [09:44:11]written 0, free lines is 4095 [09:44:11]OFD Sender: Processing packet 67024 [packets to send 35, broken 34] [09:44:11]ProducePacketName [09:44:11]name=ofd_packets/00067024 [09:44:11]OFD Sender: To server: pG, [09:44:11]CommunicateWithHost lk.salyk.kg:30040 [09:44:11]ConnectInit lk.salyk.kg [09:44:11]Connected sock=10 [09:44: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 A7 3F 07 01 1B 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1F 00 00 00 F4 03 04 00 6D 32 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D0 05 01 00 35 04 06 00 AE F9 9F BC D7 88 42 51 FE D6 BE 7A 50 74 [09:44: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 0E 14 47 00 2E 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D0 05 01 00 F4 03 04 00 4D DA 42 66 B6 04 01 00 00 79 75 B2 58 EE E2 FC 1F [09:44:11]CommunicateWithHost err = 0 [09:44:11]CheckOFDResponse [09:44:11]1017 (14) - 77093643461234 [09:44:11]1041 (16) - 0000000000871829 [09:44:11]1040 (4) - 67024 [09:44:11]1012 (4) - 14.05.2024 03:28 [09:44:11]1206 (1) - 0 [09:44:11]OFD Sender: Remove packet 67024 [09:44:11]ProducePacketName [09:44:11]name=ofd_packets/00067024 [09:44:11]NVStorageDeleteData [09:44:11]Write to MH i2c: 01 00 00 D8 19 F1 [09:44:11]Write i2c OK [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: 01 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: 01 07 00 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: 01 07 00 D8 19 00 00 00 00 00 C6 0C CA [09:44:11]RasterBufferAndPrint [09:44:11]line [09:44:11]line [09:44:11]line [09:44:11]line [09:44:11]line [09:44:11]written 0, free lines is 3274 [09:44:11]MH_Cut [09:44:11]Write to MH i2c: D1 01 00 DF 19 01 CA [09:44:11]Write i2c OK [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: D1 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: D1 01 00 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: D1 01 00 DF 19 00 C9 [09:44:11]Write to MH i2c: 01 00 00 E0 19 F9 [09:44:11]Write i2c OK [09:44:11]MH_I2C_Read... [09:44:12]OFD Sender: No OFD packet to send [09:44:12]*** Cut start [09:44:12]*** Purtial cut [09:44:12]*** CUTSNS_PIN = 0 [09:44:12]*** Stage 1: CUTSNS_PIN = 1 [09:44:14]Read from MH i2c: 01 [09:44:14]MH_I2C_Read... [09:44:14]*** Stop cut motor [09:44:14]Read from MH i2c: 01 07 00 [09:44:14]MH_I2C_Read... [09:44:14]*** Cut end [09:44:14]Read from MH i2c: 01 07 00 E0 19 00 00 00 00 00 FF 0F 0E [09:44:14]process_action close_receipt done [09:44:14]requested_data is exist [09:44:14]produce_requested_data [09:44:14]requested_item fm.sn is exist - process it [09:44:14]wFMCommunicate request_size=4 [09:44:14]MH_SAM_APDU [09:44:14]CAPDU: 80 11 00 00 [09:44:14]Write to MH i2c: E2 08 00 E1 19 80 11 00 00 00 00 00 00 74 [09:44:14]Write i2c OK [09:44:14]MH_I2C_Read... [09:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:14]Read from MH i2c: E2 [09:44:14]MH_I2C_Read... [09:44:14]Read from MH i2c: E2 17 00 [09:44:14]MH_I2C_Read... [09:44:14]Read from MH i2c: E2 17 00 E1 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CA [09:44: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:44:14]wFMCommunicate OK [09:44:14]requested_item fd.num is exist - process it [09:44:14]SAM_PROTO_GetFieldsCounters [09:44:14]wFMCommunicate request_size=4 [09:44:14]MH_SAM_APDU [09:44:14]CAPDU: 80 13 00 00 [09:44:14]Write to MH i2c: E2 08 00 E2 19 80 13 00 00 00 00 00 00 77 [09:44:14]Write i2c OK [09:44:14]MH_I2C_Read... [09:44:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:14]Read from MH i2c: E2 [09:44:14]MH_I2C_Read... [09:44:14]Read from MH i2c: E2 62 00 [09:44:14]MH_I2C_Read... [09:44:14]Read from MH i2c: E2 62 00 E2 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 D0 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [09:44: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 D0 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:14]wFMCommunicate OK [09:44:14]SAM_PROTO_GetFieldsCounters done [09:44:14]requested_item shift.num is exist - process it [09:44:14]requested_item shift.opened is exist - process it [09:44:14]req_shift_opened [09:44:14]FM_GetShiftState [09:44:14]SAM_PROTO_GetShiftState [09:44:14]wFMCommunicate request_size=4 [09:44:14]MH_SAM_APDU [09:44:14]CAPDU: 80 13 01 00 [09:44:14]Write to MH i2c: E2 08 00 E3 19 80 13 01 00 00 00 00 00 79 [09:44:14]Write i2c OK [09:44:14]MH_I2C_Read... [09:44:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:14]Read from MH i2c: E2 [09:44:14]MH_I2C_Read... [09:44:14]Read from MH i2c: E2 0E 00 [09:44:14]MH_I2C_Read... [09:44:14]Read from MH i2c: E2 0E 00 E3 19 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 41 [09:44:14]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:44:14]wFMCommunicate OK [09:44:14]SAM_PROTO_GetShiftState done [09:44:14]FM_GetShiftState done [09:44:14]req_shift_opened done [09:44:14]requested_item shift.open_date is exist - process it [09:44:14]req_shift_open_date [09:44:14]req_shift_open_date done [09:44:14]produce_requested_data done [09:44:14]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67024,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:44:14]process_action_free close_receipt [09:44:14]json_value_free [09:44:14]json_value_free done [09:44:14]process_json_proto returns [09:44:14]Send response to host [09:44:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67024,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:44:14]free response buf [09:44:14]execute_script done [09:44:14]execute_script returns [09:44:14]free content buf [09:44:14]Sock 9.Close socket [09:44:14]Sock 9.Thread stoped [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:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:18]accept exits with 8 [09:45:18]New connection [09:45:18]New thread 3066617188 created [09:45:18]Thread 3066760548 joined [09:45:18]Waiting for new connection... [09:45:18] Sock 8.Parse request [09:45:18]Sock 8.Check first char [09:45:18]Sock 8.First char is OK [09:45:18]request: POST /json_proto HTTP/1.0 [09:45:18]Method: POST [09:45:18]URL: /json_proto [09:45:18]Method is POST - this is cgi request [09:45:18]url: /json_proto [09:45:18]query_string will be loaded in cgi processing [09:45:18]execute_cgi json_proto POST (null) [09:45:18]execute_cgi path=json_proto method=POST [09:45:18]POST find Content-Length [09:45:18]Host: 172.17.41.195:8080 [09:45:18]Content-Length: 1179 [09:45:18]Content-Type: application/json [09:45:18] [09:45:18]POST finish read [09:45:18]Found Content-Length = 1179 [09:45: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)506868\u000A14.05.2024 09:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:45:18]execute_script... [09:45: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)506868\u000A14.05.2024 09:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:45:18]POST & json_proto [09:45:18]process_json_proto [09:45:18]json parsed OK: [09:45:18]protocol is kg_v1.0 [09:45:18]action value=print_text [09:45:18]process_action print_text [09:45:18]cmd_print_text [09:45:18]ExternCall_PrintAddStr [09:45:18]wPrintStart [09:45:18]Write to MH i2c: 01 00 00 E4 19 FD [09:45:18]Write i2c OK [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: 01 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: 01 07 00 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: 01 07 00 E4 19 00 00 00 00 00 FF 0F 12 [09:45:18]RasterBufferAndPrint [09:45:18]line *****ТОВАРНЫЙ ЧЕК***** [09:45:18]line АЗС-91 [09:45:18]line Партнер нефть [09:45:18]line 02508201610067 [09:45:18]line Кассир : Адишов И. [09:45:18]line Счет N : (1)506868 [09:45:18]line 14.05.2024 09:28 [09:45:18]line ПРОДАЖА [09:45:18]line ТРК (МРК, ГНК): 31 [09:45:18]line Вид ГСМ : 2710194210 [09:45:18]line ДТ-К-5 [09:45:18]line 26.780 x 74.70 [09:45:18]line ИТОГ: 2000.47 [09:45:18]line Тип оплаты: Талоны: Топливная Карта [09:45:18]line 02750 [09:45:18]line ______________________ [09:45:18]line (подпись) [09:45:18]written 0, free lines is 4095 [09:45:18]Write to MH i2c: 01 00 00 F8 19 11 [09:45:18]Write i2c OK [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: 01 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: 01 07 00 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: 01 07 00 F8 19 00 00 00 00 00 0E 0E 34 [09:45:18]RasterBufferAndPrint [09:45:18]line [09:45:18]line [09:45:18]line [09:45:18]line [09:45:18]line [09:45:18]written 0, free lines is 3599 [09:45:18]MH_Cut [09:45:18]Write to MH i2c: D1 01 00 FF 19 01 EA [09:45:18]Write i2c OK [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: D1 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: D1 01 00 [09:45:18]MH_I2C_Read... [09:45:18]Read from MH i2c: D1 01 00 FF 19 00 E9 [09:45:18]Write to MH i2c: 01 00 00 00 1A 1A [09:45:18]Write i2c OK [09:45:18]MH_I2C_Read... [09:45:19]*** Cut start [09:45:19]*** Purtial cut [09:45:19]*** Stage 1: CUTSNS_PIN = 1 [09:45:19]Read from MH i2c: 01 [09:45:19]MH_I2C_Read... [09:45:19]*** Stop cut motor [09:45:19]*** Cut end [09:45:19]Read from MH i2c: 01 07 00 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: 01 07 00 00 1A 00 00 00 00 00 FF 0F 2F [09:45:19]process_action print_text done [09:45:19]requested_data is exist [09:45:19]produce_requested_data [09:45:19]requested_item fm.sn is exist - process it [09:45:19]wFMCommunicate request_size=4 [09:45:19]MH_SAM_APDU [09:45:19]CAPDU: 80 11 00 00 [09:45:19]Write to MH i2c: E2 08 00 01 1A 80 11 00 00 00 00 00 00 95 [09:45:19]Write i2c OK [09:45:19]MH_I2C_Read... [09:45:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:19]Read from MH i2c: E2 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 17 00 [09:45:19]MH_I2C_Read... [09:45:19]Read from MH i2c: E2 17 00 01 1A 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:45: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:45:19]wFMCommunicate OK [09:45:19]requested_item fd.num is exist - process it [09:45:19]SAM_PROTO_GetFieldsCounters [09:45:19]wFMCommunicate request_size=4 [09:45:19]MH_SAM_APDU [09:45:19]CAPDU: 80 13 00 00 [09:45:19]Write to MH i2c: E2 08 00 02 1A 80 13 00 00 00 00 00 00 98 [09:45:19]Write i2c OK [09:45:19]MH_I2C_Read... [09:45:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:20]Read from MH i2c: E2 [09:45:20]MH_I2C_Read... [09:45:20]Read from MH i2c: E2 62 00 [09:45:20]MH_I2C_Read... [09:45:20]Read from MH i2c: E2 62 00 02 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 D0 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [09:45: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 D0 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:20]wFMCommunicate OK [09:45:20]SAM_PROTO_GetFieldsCounters done [09:45:20]requested_item shift.num is exist - process it [09:45:20]requested_item shift.opened is exist - process it [09:45:20]req_shift_opened [09:45:20]FM_GetShiftState [09:45:20]SAM_PROTO_GetShiftState [09:45:20]wFMCommunicate request_size=4 [09:45:20]MH_SAM_APDU [09:45:20]CAPDU: 80 13 01 00 [09:45:20]Write to MH i2c: E2 08 00 03 1A 80 13 01 00 00 00 00 00 9A [09:45:20]Write i2c OK [09:45:20]MH_I2C_Read... [09:45:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:20]Read from MH i2c: E2 [09:45:20]MH_I2C_Read... [09:45:20]Read from MH i2c: E2 0E 00 [09:45:20]MH_I2C_Read... [09:45:20]Read from MH i2c: E2 0E 00 03 1A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 62 [09:45:20]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:45:20]wFMCommunicate OK [09:45:20]SAM_PROTO_GetShiftState done [09:45:20]FM_GetShiftState done [09:45:20]req_shift_opened done [09:45:20]requested_item shift.open_date is exist - process it [09:45:20]req_shift_open_date [09:45:20]req_shift_open_date done [09:45:20]produce_requested_data done [09:45:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67024,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:45:20]process_action_free print_text [09:45:20]json_value_free [09:45:20]json_value_free done [09:45:20]process_json_proto returns [09:45:20]Send response to host [09:45:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67024,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:45:20]free response buf [09:45:20]execute_script done [09:45:20]execute_script returns [09:45:20]free content buf [09:45:20]Sock 8.Close socket [09:45:20]Sock 8.Thread stoped [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:16]accept exits with 9 [09:48:16]New connection [09:48:16]New thread 3066760548 created [09:48:16]Thread 3066617188 joined [09:48:16]Waiting for new connection... [09:48:16] Sock 9.Parse request [09:48:16]Sock 9.Check first char [09:48:16]Sock 9.First char is OK [09:48:16]request: POST /json_proto HTTP/1.0 [09:48:16]Method: POST [09:48:16]URL: /json_proto [09:48:16]Method is POST - this is cgi request [09:48:16]url: /json_proto [09:48:16]query_string will be loaded in cgi processing [09:48:16]execute_cgi json_proto POST (null) [09:48:16]execute_cgi path=json_proto method=POST [09:48:16]POST find Content-Length [09:48:16]Host: 172.17.41.195:8080 [09:48:16]Content-Length: 1179 [09:48:16]Content-Type: application/json [09:48:16] [09:48:16]POST finish read [09:48:16]Found Content-Length = 1179 [09:48: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)506869\u000A14.05.2024 09:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:48:16]execute_script... [09:48: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)506869\u000A14.05.2024 09:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:48:16]POST & json_proto [09:48:16]process_json_proto [09:48:16]json parsed OK: [09:48:16]protocol is kg_v1.0 [09:48:16]action value=print_text [09:48:16]process_action print_text [09:48:16]cmd_print_text [09:48:16]ExternCall_PrintAddStr [09:48:16]wPrintStart [09:48:16]Write to MH i2c: 01 00 00 04 1A 1E [09:48:16]Write i2c OK [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: 01 [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: 01 07 00 [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: 01 07 00 04 1A 00 00 00 00 00 FF 0F 33 [09:48:16]RasterBufferAndPrint [09:48:16]line *****ТОВАРНЫЙ ЧЕК***** [09:48:16]line АЗС-91 [09:48:16]line Партнер нефть [09:48:16]line 02508201610067 [09:48:16]line Кассир : Адишов И. [09:48:16]line Счет N : (1)506869 [09:48:16]line 14.05.2024 09:30 [09:48:16]line ПРОДАЖА [09:48:16]line ТРК (МРК, ГНК): 11 [09:48:16]line Вид ГСМ : 2710194210 [09:48:16]line ДТ-К-5 [09:48:16]line 26.780 x 74.70 [09:48:16]line ИТОГ: 2000.47 [09:48:16]line Тип оплаты: Талоны: Топливная Карта [09:48:16]line 02750 [09:48:16]line ______________________ [09:48:16]line (подпись) [09:48:16]written 0, free lines is 4095 [09:48:16]Write to MH i2c: 01 00 00 18 1A 32 [09:48:16]Write i2c OK [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: 01 [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: 01 07 00 [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: 01 07 00 18 1A 00 00 00 00 00 0D 0E 54 [09:48:16]RasterBufferAndPrint [09:48:16]line [09:48:16]line [09:48:16]line [09:48:16]line [09:48:16]line [09:48:16]written 0, free lines is 3599 [09:48:16]MH_Cut [09:48:16]Write to MH i2c: D1 01 00 1F 1A 01 0B [09:48:16]Write i2c OK [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: D1 [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: D1 01 00 [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: D1 01 00 1F 1A 00 0A [09:48:16]Write to MH i2c: 01 00 00 20 1A 3A [09:48:16]Write i2c OK [09:48:16]MH_I2C_Read... [09:48:17]*** Cut start [09:48:17]*** Purtial cut [09:48:17]*** CUTSNS_PIN = 0 [09:48:17]OFD Sender: No OFD packet to send [09:48:17]*** Stage 1: CUTSNS_PIN = 1 [09:48:19]Read from MH i2c: 01 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: 01 07 00 [09:48:19]MH_I2C_Read... [09:48:19]*** Stop cut motor [09:48:19]*** Cut end [09:48:19]Read from MH i2c: 01 07 00 20 1A 00 00 00 00 00 FF 0F 4F [09:48:19]process_action print_text done [09:48:19]requested_data is exist [09:48:19]produce_requested_data [09:48:19]requested_item fm.sn is exist - process it [09:48:19]wFMCommunicate request_size=4 [09:48:19]MH_SAM_APDU [09:48:19]CAPDU: 80 11 00 00 [09:48:19]Write to MH i2c: E2 08 00 21 1A 80 11 00 00 00 00 00 00 B5 [09:48:19]Write i2c OK [09:48:19]MH_I2C_Read... [09:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:19]Read from MH i2c: E2 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: E2 17 00 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: E2 17 00 21 1A 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:48: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:48:19]wFMCommunicate OK [09:48:19]requested_item fd.num is exist - process it [09:48:19]SAM_PROTO_GetFieldsCounters [09:48:19]wFMCommunicate request_size=4 [09:48:19]MH_SAM_APDU [09:48:19]CAPDU: 80 13 00 00 [09:48:19]Write to MH i2c: E2 08 00 22 1A 80 13 00 00 00 00 00 00 B8 [09:48:19]Write i2c OK [09:48:19]MH_I2C_Read... [09:48:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:19]Read from MH i2c: E2 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: E2 62 00 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: E2 62 00 22 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 D0 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [09:48: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 D0 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:19]wFMCommunicate OK [09:48:19]SAM_PROTO_GetFieldsCounters done [09:48:19]requested_item shift.num is exist - process it [09:48:19]requested_item shift.opened is exist - process it [09:48:19]req_shift_opened [09:48:19]FM_GetShiftState [09:48:19]SAM_PROTO_GetShiftState [09:48:19]wFMCommunicate request_size=4 [09:48:19]MH_SAM_APDU [09:48:19]CAPDU: 80 13 01 00 [09:48:19]Write to MH i2c: E2 08 00 23 1A 80 13 01 00 00 00 00 00 BA [09:48:19]Write i2c OK [09:48:19]MH_I2C_Read... [09:48:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:19]Read from MH i2c: E2 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: E2 0E 00 [09:48:19]MH_I2C_Read... [09:48:19]Read from MH i2c: E2 0E 00 23 1A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 82 [09:48:19]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:48:19]wFMCommunicate OK [09:48:19]SAM_PROTO_GetShiftState done [09:48:19]FM_GetShiftState done [09:48:19]req_shift_opened done [09:48:19]requested_item shift.open_date is exist - process it [09:48:19]req_shift_open_date [09:48:19]req_shift_open_date done [09:48:19]produce_requested_data done [09:48:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67024,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:48:19]process_action_free print_text [09:48:19]json_value_free [09:48:19]json_value_free done [09:48:19]process_json_proto returns [09:48:19]Send response to host [09:48:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67024,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:48:19]free response buf [09:48:19]execute_script done [09:48:19]execute_script returns [09:48:19]free content buf [09:48:19]Sock 9.Close socket [09:48:19]Sock 9.Thread stoped [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49: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:36]accept exits with 8 [09:51:36]New connection [09:51:36]New thread 3066617188 created [09:51:36]Thread 3066760548 joined [09:51:36]Waiting for new connection... [09:51:36] Sock 8.Parse request [09:51:36]Sock 8.Check first char [09:51:36]Sock 8.First char is OK [09:51:36]request: POST /json_proto HTTP/1.0 [09:51:36]Method: POST [09:51:36]URL: /json_proto [09:51:36]Method is POST - this is cgi request [09:51:36]url: /json_proto [09:51:36]query_string will be loaded in cgi processing [09:51:36]execute_cgi json_proto POST (null) [09:51:36]execute_cgi path=json_proto method=POST [09:51:36]POST find Content-Length [09:51:36]Host: 172.17.41.195:8080 [09:51:36]Content-Length: 800 [09:51:36]Content-Type: application/json [09:51:36] [09:51:36]POST finish read [09:51:36]Found Content-Length = 800 [09:51:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 46.860, "sum" : 3500.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3500.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:36]execute_script... [09:51: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)506870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 46.860, "sum" : 3500.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3500.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:36]POST & json_proto [09:51:36]process_json_proto [09:51:36]json parsed OK: [09:51:36]protocol is kg_v1.0 [09:51:36]action value=close_receipt [09:51:36]process_action close_receipt [09:51:36]cmd_close_receipt [09:51:36]MH_GetDate [09:51:36]Write to MH i2c: F0 00 00 24 1A 2D [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: F0 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: F0 09 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: F0 09 00 24 1A 00 2C 34 43 66 FC 21 6F 64 2F [09:51:36]GetLastDocTimeStamp 1715679853 [09:51:36]current date 1715680300 [09:51:36]FM_GetShiftState [09:51:36]SAM_PROTO_GetShiftState [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 13 01 00 [09:51:36]Write to MH i2c: E2 08 00 25 1A 80 13 01 00 00 00 00 00 BC [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 0E 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 0E 00 25 1A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 84 [09:51:36]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:51:36]wFMCommunicate OK [09:51:36]SAM_PROTO_GetShiftState done [09:51:36]FM_GetShiftState done [09:51:36]opened in 1715646054 [09:51:36]opened+sec_in_day 1715732454 [09:51:36]quantity*price = 350044 [09:51:36]sum+1 = 350045 [09:51:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3500.44 НСП 1% : 30.98 НДС 12% : 371.73 Наличными: 0.00 Безнал.: 3500.44 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 32 14.05.2024 09:51 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67025 ФПД: 239508648020742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T095140&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67025&fm=239508648020742&tin=02508201610067®Number=0000000000091845&sum=350044 [09:51:37]StoreToDocumentArchive [09:51:37]shift 355 fd 67025 [09:51:37]save to /storage/0355/doc_00067025 [09:51:37]save last doc name /storage/0355/doc_00067025 to /storage/kkm_last_doc_name [09:51:37]save OK [09:51:37]Clear old archive folders... [09:51:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:51:37]tlvbuf is 00337980 [09:51:37]SAM_PROTO_ClearQueue [09:51:37]wFMCommunicate request_size=4 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 09 00 00 [09:51:37]Write to MH i2c: E2 08 00 32 1A 80 09 00 00 00 00 00 00 BE [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 32 1A 00 90 00 C0 [09:51:37]RAPDU: 90 00 [09:51:37]wFMCommunicate OK [09:51:37]SAM_PROTO_ClearQueue done [09:51:37]KKMCreateOFDPacket [09:51:37]OFDProtocolAddRootSTLVToBuf [09:51:37]FM_MakeSignedData [09:51:37]FM_MakeSignedData [09:51:37]SAM_PROTO_SignData [09:51:37]wFMCommunicate request_size=4 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 0D 01 02 [09:51:37]Write to MH i2c: E2 08 00 33 1A 80 0D 01 02 00 00 00 00 C6 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 33 1A 00 90 00 C1 [09:51:37]RAPDU: 90 00 [09:51:37]wFMCommunicate OK [09:51:37]wFMCommunicate request_size=255 [09:51:37]MH_SAM_APDU [09:51: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 0C B7 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 5C 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 2C 34 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D1 05 01 00 35 04 06 00 D9 D4 F3 E2 [09:51:37]Write to MH i2c: E2 02 01 34 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 0C B7 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 5C 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 2C 34 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D1 05 01 00 35 04 06 00 D9 D4 F3 E2 00 00 30 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]OFD Sender: No OFD packet to send [09:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 34 1A 00 90 00 C2 [09:51:37]RAPDU: 90 00 [09:51:37]wFMCommunicate OK [09:51:37]wFMCommunicate request_size=7 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 0D 02 02 02 CB 06 [09:51:37]Write to MH i2c: E2 0A 00 35 1A 80 0D 02 02 02 00 CB 06 00 00 9E [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 35 1A 00 90 00 C3 [09:51:37]RAPDU: 90 00 [09:51:37]wFMCommunicate OK [09:51:37]wFMCommunicate request_size=4 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 0D 03 02 [09:51:37]Write to MH i2c: E2 08 00 36 1A 80 0D 03 02 00 00 00 00 CB [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 0B 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 0B 00 36 1A 00 80 AF 8C C6 73 40 BE 74 90 00 32 [09:51:37]RAPDU: 80 AF 8C C6 73 40 BE 74 90 00 [09:51:37]wFMCommunicate OK [09:51:37]SAM_PROTO_SignData done [09:51:37]FM_MakeSignedData done [09:51:37]CreateOFDProtocolMessage [09:51:37]wFMCommunicate request_size=4 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 11 00 00 [09:51:37]Write to MH i2c: E2 08 00 37 1A 80 11 00 00 00 00 00 00 CB [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 17 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 17 00 37 1A 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:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:51:37]wFMCommunicate OK [09:51:37]CreateOFDProtocolMessage done [09:51:37]OFDSenderStorePacket 67025 [09:51:37]StoreOFDPacket docnum=67025 [09:51: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 1E EA 04 01 73 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 0C B7 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 5C 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 2C 34 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D1 05 01 00 35 04 06 00 D9 D4 F3 E2 CB 06 80 AF 8C C6 73 40 BE 74 [09:51:37]CheckFolder [09:51:37]dirname=/storage/ofd_packets [09:51:37]CheckFolder done [09:51:37]ProducePacketName [09:51:37]name=ofd_packets/00067025 [09:51:37]NVStorageSaveData ofd_packets/00067025 [09:51:37]File name is /storage/ofd_packets/00067025 [09:51:37]Write 298 bytes [09:51:37]NVStorageSaveData done [09:51:37]OFDSenderStorePacket done [09:51:37]KKMCreateOFDPacket done [09:51:37]NVStorageSaveData kkm_last_timestamp [09:51:37]File name is /storage/kkm_last_timestamp [09:51:37]Write 4 bytes [09:51:37]NVStorageSaveData done [09:51:37]ExternCall_PrintAddStr [09:51:37]wPrintStart [09:51:37]Write to MH i2c: 01 00 00 38 1A 52 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 07 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 07 00 38 1A 00 00 00 00 00 FF 0F 67 [09:51:37]RasterBufferAndPrint [09:51:37]line Счет N : (1)506870 [09:51:37]line ИНН: 02508201610067 [09:51:37]line Контрольно-Кассовый Чек [09:51:37]line ПРОДАЖА [09:51:37]line ТРК (МРК, ГНК) : 11 [09:51:37]line Товар: 2710194210 [09:51:37]line ДТ-К-5 [09:51:37]line 46.860 * 74.70 [09:51:37]line = 3500.44 [09:51:37]line НДС 12% НСП 1% [09:51:37]line > о реализуемом товаре [09:51:37]line ИТОГО: 3500.44 [09:51:37]line НСП 1% : 30.98 [09:51:37]line НДС 12% : 371.73 [09:51:37]line Наличными: 0.00 [09:51:37]line Безнал.: 3500.44 [09:51:37]line Место: АЗС № 91 "Партнер Нефть" [09:51:37]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:51:37]line СНО: Общий режим [09:51:37]line Чек 32 14.05.2024 09:51 [09:51:38]line Смена: 355 ФФД: 1.0 [09:51:38]line ЗНМ: 0300000119 [09:51:38]line РНМ: 0000000000091845 [09:51:38]line Версия ККМ: 001 [09:51:38]line Платежная система: O! деньги [09:51:38]line ФМ: 0000000000871829 [09:51:38]line ФД: 67025 [09:51:38]line ФПД: 239508648020742 [09:51:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T095140&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67025&fm=239508648020742&tin=02508201610067®Number=0000000000091845&sum=350044 [09:51:38]OFD Sender: Processing packet 67025 [packets to send 35, broken 34] [09:51:38]ProducePacketName [09:51:38]name=ofd_packets/00067025 [09:51:38]OFD Sender: To server: pG, [09:51:38]CommunicateWithHost lk.salyk.kg:30040 [09:51:38]ConnectInit lk.salyk.kg [09:51:38]written 0, free lines is 4095 [09:51:38]Connected sock=10 [09:51:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 1E EA 04 01 73 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 0C B7 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 5C 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 2C 34 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D1 05 01 00 35 04 06 00 D9 D4 F3 E2 CB 06 80 AF 8C C6 73 40 BE 74 [09:51: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 67 59 47 00 53 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D1 05 01 00 F4 03 04 00 0C DC 42 66 B6 04 01 00 00 E9 CA C5 B9 96 83 A1 E2 [09:51:38]CommunicateWithHost err = 0 [09:51:38]CheckOFDResponse [09:51:38]1017 (14) - 77093643461234 [09:51:38]1041 (16) - 0000000000871829 [09:51:38]1040 (4) - 67025 [09:51:38]1012 (4) - 14.05.2024 03:35 [09:51:38]1206 (1) - 0 [09:51:38]OFD Sender: Remove packet 67025 [09:51:38]ProducePacketName [09:51:38]name=ofd_packets/00067025 [09:51:38]NVStorageDeleteData [09:51:38]Write to MH i2c: 01 00 00 61 1A 7B [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: 01 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: 01 07 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: 01 07 00 61 1A 00 00 00 00 00 DA 0C 68 [09:51:38]RasterBufferAndPrint [09:51:38]line [09:51:38]line [09:51:38]line [09:51:38]line [09:51:38]line [09:51:38]written 0, free lines is 3296 [09:51:38]MH_Cut [09:51:38]Write to MH i2c: D1 01 00 68 1A 01 54 [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: D1 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: D1 01 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: D1 01 00 68 1A 00 53 [09:51:38]Write to MH i2c: 01 00 00 69 1A 83 [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:39]OFD Sender: No OFD packet to send [09:51:39]*** Cut start [09:51:39]*** Purtial cut [09:51:39]*** Stage 1: CUTSNS_PIN = 1 [09:51:39]Read from MH i2c: 01 [09:51:39]MH_I2C_Read... [09:51:39]*** Stop cut motor [09:51:39]*** Cut end [09:51:39]Read from MH i2c: 01 07 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: 01 07 00 69 1A 00 00 00 00 00 FF 0F 98 [09:51:39]process_action close_receipt done [09:51:39]requested_data is exist [09:51:39]produce_requested_data [09:51:39]requested_item fm.sn is exist - process it [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 11 00 00 [09:51:39]Write to MH i2c: E2 08 00 6A 1A 80 11 00 00 00 00 00 00 FE [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 17 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 17 00 6A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 54 [09:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:51:39]wFMCommunicate OK [09:51:39]requested_item fd.num is exist - process it [09:51:39]SAM_PROTO_GetFieldsCounters [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 13 00 00 [09:51:39]Write to MH i2c: E2 08 00 6B 1A 80 13 00 00 00 00 00 00 01 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:40]Read from MH i2c: E2 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 62 00 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 62 00 6B 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 D1 05 01 00 0E 04 04 00 63 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 C2 [09:51: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 D1 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:40]wFMCommunicate OK [09:51:40]SAM_PROTO_GetFieldsCounters done [09:51:40]requested_item shift.num is exist - process it [09:51:40]requested_item shift.opened is exist - process it [09:51:40]req_shift_opened [09:51:40]FM_GetShiftState [09:51:40]SAM_PROTO_GetShiftState [09:51:40]wFMCommunicate request_size=4 [09:51:40]MH_SAM_APDU [09:51:40]CAPDU: 80 13 01 00 [09:51:40]Write to MH i2c: E2 08 00 6C 1A 80 13 01 00 00 00 00 00 03 [09:51:40]Write i2c OK [09:51:40]MH_I2C_Read... [09:51:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:40]Read from MH i2c: E2 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 0E 00 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: E2 0E 00 6C 1A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 CB [09:51:40]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:51:40]wFMCommunicate OK [09:51:40]SAM_PROTO_GetShiftState done [09:51:40]FM_GetShiftState done [09:51:40]req_shift_opened done [09:51:40]requested_item shift.open_date is exist - process it [09:51:40]req_shift_open_date [09:51:40]req_shift_open_date done [09:51:40]produce_requested_data done [09:51:40]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67025,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:51:40]process_action_free close_receipt [09:51:40]json_value_free [09:51:40]json_value_free done [09:51:40]process_json_proto returns [09:51:40]Send response to host [09:51:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67025,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:51:40]free response buf [09:51:40]execute_script done [09:51:40]execute_script returns [09:51:40]free content buf [09:51:40]Sock 8.Close socket [09:51:40]Sock 8.Thread stoped [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:44]OFD Sender: No OFD packet to send [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:48]accept exits with 9 [09:55:48]New connection [09:55:48]New thread 3066760548 created [09:55:48]Thread 3066617188 joined [09:55:48]Waiting for new connection... [09:55:48] Sock 9.Parse request [09:55:48]Sock 9.Check first char [09:55:48]Sock 9.First char is OK [09:55:48]request: POST /json_proto HTTP/1.0 [09:55:48]Method: POST [09:55:48]URL: /json_proto [09:55:48]Method is POST - this is cgi request [09:55:48]url: /json_proto [09:55:48]query_string will be loaded in cgi processing [09:55:48]execute_cgi json_proto POST (null) [09:55:48]execute_cgi path=json_proto method=POST [09:55:48]POST find Content-Length [09:55:48]Host: 172.17.41.195:8080 [09:55:48]Content-Length: 1179 [09:55:48]Content-Type: application/json [09:55:48] [09:55:48]POST finish read [09:55:48]Found Content-Length = 1179 [09:55:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506871\u000A14.05.2024 09:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.090 x 74.70\u000A\u0418\u0422\u041E\u0413: 1500.72\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:48]execute_script... [09:55:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506871\u000A14.05.2024 09:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.090 x 74.70\u000A\u0418\u0422\u041E\u0413: 1500.72\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:48]POST & json_proto [09:55:48]process_json_proto [09:55:48]json parsed OK: [09:55:48]protocol is kg_v1.0 [09:55:48]action value=print_text [09:55:48]process_action print_text [09:55:48]cmd_print_text [09:55:48]ExternCall_PrintAddStr [09:55:48]wPrintStart [09:55:48]Write to MH i2c: 01 00 00 6D 1A 87 [09:55:48]Write i2c OK [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: 01 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: 01 07 00 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: 01 07 00 6D 1A 00 00 00 00 00 FF 0F 9C [09:55:48]RasterBufferAndPrint [09:55:48]line *****ТОВАРНЫЙ ЧЕК***** [09:55:48]line АЗС-91 [09:55:48]line Партнер нефть [09:55:48]line 02508201610067 [09:55:48]line Кассир : Адишов И. [09:55:48]line Счет N : (1)506871 [09:55:48]line 14.05.2024 09:38 [09:55:48]line ПРОДАЖА [09:55:48]line ТРК (МРК, ГНК): 31 [09:55:48]line Вид ГСМ : 2710194210 [09:55:48]line ДТ-К-5 [09:55:48]line 20.090 x 74.70 [09:55:48]line ИТОГ: 1500.72 [09:55:48]line Тип оплаты: Талоны: Топливная Карта [09:55:48]line 02750 [09:55:48]line ______________________ [09:55:48]line (подпись) [09:55:48]written 0, free lines is 4095 [09:55:48]Write to MH i2c: 01 00 00 81 1A 9B [09:55:48]Write i2c OK [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: 01 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: 01 07 00 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: 01 07 00 81 1A 00 00 00 00 00 0D 0E BD [09:55:48]RasterBufferAndPrint [09:55:48]line [09:55:48]line [09:55:48]line [09:55:48]line [09:55:48]line [09:55:48]written 0, free lines is 3598 [09:55:48]MH_Cut [09:55:48]Write to MH i2c: D1 01 00 88 1A 01 74 [09:55:48]Write i2c OK [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: D1 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: D1 01 00 [09:55:48]MH_I2C_Read... [09:55:48]Read from MH i2c: D1 01 00 88 1A 00 73 [09:55:48]Write to MH i2c: 01 00 00 89 1A A3 [09:55:48]Write i2c OK [09:55:48]MH_I2C_Read... [09:55:48]*** Cut start [09:55:48]*** Purtial cut [09:55:48]*** CUTSNS_PIN = 0 [09:55:49]*** Stage 1: CUTSNS_PIN = 1 [09:55:49]OFD Sender: No OFD packet to send [09:55:50]Read from MH i2c: 01 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: 01 07 00 [09:55:50]MH_I2C_Read... [09:55:50]*** Stop cut motor [09:55:50]*** Cut end [09:55:50]Read from MH i2c: 01 07 00 89 1A 00 00 00 00 00 FF 0F B8 [09:55:50]process_action print_text done [09:55:50]requested_data is exist [09:55:50]produce_requested_data [09:55:50]requested_item fm.sn is exist - process it [09:55:50]wFMCommunicate request_size=4 [09:55:50]MH_SAM_APDU [09:55:50]CAPDU: 80 11 00 00 [09:55:50]Write to MH i2c: E2 08 00 8A 1A 80 11 00 00 00 00 00 00 1E [09:55:50]Write i2c OK [09:55:50]MH_I2C_Read... [09:55:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:50]Read from MH i2c: E2 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: E2 17 00 [09:55:50]MH_I2C_Read... [09:55:50]Read from MH i2c: E2 17 00 8A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 74 [09: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 [09:55:50]wFMCommunicate OK [09:55:50]requested_item fd.num is exist - process it [09:55:50]SAM_PROTO_GetFieldsCounters [09:55:50]wFMCommunicate request_size=4 [09:55:50]MH_SAM_APDU [09:55:50]CAPDU: 80 13 00 00 [09:55:50]Write to MH i2c: E2 08 00 8B 1A 80 13 00 00 00 00 00 00 21 [09:55:50]Write i2c OK [09:55:50]MH_I2C_Read... [09:55:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:51]Read from MH i2c: E2 [09:55:51]MH_I2C_Read... [09:55:51]Read from MH i2c: E2 62 00 [09:55:51]MH_I2C_Read... [09:55:51]Read from MH i2c: E2 62 00 8B 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 D1 05 01 00 0E 04 04 00 63 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 E2 [09: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 D1 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:51]wFMCommunicate OK [09:55:51]SAM_PROTO_GetFieldsCounters done [09:55:51]requested_item shift.num is exist - process it [09:55:51]requested_item shift.opened is exist - process it [09:55:51]req_shift_opened [09:55:51]FM_GetShiftState [09:55:51]SAM_PROTO_GetShiftState [09:55:51]wFMCommunicate request_size=4 [09:55:51]MH_SAM_APDU [09:55:51]CAPDU: 80 13 01 00 [09:55:51]Write to MH i2c: E2 08 00 8C 1A 80 13 01 00 00 00 00 00 23 [09:55:51]Write i2c OK [09:55:51]MH_I2C_Read... [09:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:51]Read from MH i2c: E2 [09:55:51]MH_I2C_Read... [09:55:51]Read from MH i2c: E2 0E 00 [09:55:51]MH_I2C_Read... [09:55:51]Read from MH i2c: E2 0E 00 8C 1A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 EB [09:55:51]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:55:51]wFMCommunicate OK [09:55:51]SAM_PROTO_GetShiftState done [09:55:51]FM_GetShiftState done [09:55:51]req_shift_opened done [09:55:51]requested_item shift.open_date is exist - process it [09:55:51]req_shift_open_date [09:55:51]req_shift_open_date done [09:55:51]produce_requested_data done [09:55:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67025,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:55:51]process_action_free print_text [09:55:51]json_value_free [09:55:51]json_value_free done [09:55:51]process_json_proto returns [09:55:51]Send response to host [09:55:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67025,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:55:51]free response buf [09:55:51]execute_script done [09:55:51]execute_script returns [09:55:51]free content buf [09:55:51]Sock 9.Close socket [09:55:51]Sock 9.Thread stoped [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:46]accept exits with 8 [09:56:46]New connection [09:56:46]New thread 3066617188 created [09:56:46]Thread 3066760548 joined [09:56:46]Waiting for new connection... [09:56:46] Sock 8.Parse request [09:56:46]Sock 8.Check first char [09:56:46]Sock 8.First char is OK [09:56:46]request: POST /json_proto HTTP/1.0 [09:56:46]Method: POST [09:56:46]URL: /json_proto [09:56:46]Method is POST - this is cgi request [09:56:46]url: /json_proto [09:56:46]query_string will be loaded in cgi processing [09:56:46]execute_cgi json_proto POST (null) [09:56:46]execute_cgi path=json_proto method=POST [09:56:46]POST find Content-Length [09:56:46]Host: 172.17.41.195:8080 [09:56:46]Content-Length: 669 [09:56:46]Content-Type: application/json [09:56:46] [09:56:46]POST finish read [09:56:46]Found Content-Length = 669 [09:56:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12045", "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" ] } } [09:56:46]execute_script... [09:56: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 : (3)12045", "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" ] } } [09:56:46]POST & json_proto [09:56:46]process_json_proto [09:56:46]json parsed OK: [09:56:46]protocol is kg_v1.0 [09:56:46]action value=close_receipt [09:56:46]process_action close_receipt [09:56:46]cmd_close_receipt [09:56:46]MH_GetDate [09:56:46]Write to MH i2c: F0 00 00 8D 1A 96 [09:56:46]Write i2c OK [09:56:46]MH_I2C_Read... [09:56:46]Read from MH i2c: F0 [09:56:46]MH_I2C_Read... [09:56:46]Read from MH i2c: F0 09 00 [09:56:46]MH_I2C_Read... [09:56:46]Read from MH i2c: F0 09 00 8D 1A 00 61 35 43 66 FC 21 6F 64 CE [09:56:46]GetLastDocTimeStamp 1715680300 [09:56:46]current date 1715680609 [09:56:46]FM_GetShiftState [09:56:46]SAM_PROTO_GetShiftState [09:56:46]wFMCommunicate request_size=4 [09:56:46]MH_SAM_APDU [09:56:46]CAPDU: 80 13 01 00 [09:56:46]Write to MH i2c: E2 08 00 8E 1A 80 13 01 00 00 00 00 00 25 [09:56:46]Write i2c OK [09:56:46]MH_I2C_Read... [09:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:46]Read from MH i2c: E2 [09:56:46]MH_I2C_Read... [09:56:46]Read from MH i2c: E2 0E 00 [09:56:46]MH_I2C_Read... [09:56:46]Read from MH i2c: E2 0E 00 8E 1A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 ED [09:56:46]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:56:46]wFMCommunicate OK [09:56:46]SAM_PROTO_GetShiftState done [09:56:46]FM_GetShiftState done [09:56:46]opened in 1715646054 [09:56:46]opened+sec_in_day 1715732454 [09:56:46]quantity*price = 9500 [09:56:46]sum+1 = 9501 [09:56:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 33 14.05.2024 09:56 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67026 ФПД: 144693243528609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T095650&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67026&fm=144693243528609&tin=02508201610067®Number=0000000000091845&sum=9500 0 [09:56:47]StoreToDocumentArchive [09:56:47]shift 355 fd 67026 [09:56:47]save to /storage/0355/doc_00067026 [09:56:47]save last doc name /storage/0355/doc_00067026 to /storage/kkm_last_doc_name [09:56:47]save OK [09:56:47]Clear old archive folders... [09:56:47]ProcessDocumentItem done err = 0, tmpTLVsize=293 [09:56:47]tlvbuf is 00365120 [09:56:47]SAM_PROTO_ClearQueue [09:56:47]wFMCommunicate request_size=4 [09:56:47]MH_SAM_APDU [09:56:47]CAPDU: 80 09 00 00 [09:56:47]Write to MH i2c: E2 08 00 9B 1A 80 09 00 00 00 00 00 00 27 [09:56:47]Write i2c OK [09:56:47]MH_I2C_Read... [09:56:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:47]Read from MH i2c: E2 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 03 00 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 03 00 9B 1A 00 90 00 29 [09:56:47]RAPDU: 90 00 [09:56:47]wFMCommunicate OK [09:56:47]SAM_PROTO_ClearQueue done [09:56:47]KKMCreateOFDPacket [09:56:47]OFDProtocolAddRootSTLVToBuf [09:56:47]FM_MakeSignedData [09:56:47]FM_MakeSignedData [09:56:47]SAM_PROTO_SignData [09:56:47]wFMCommunicate request_size=4 [09:56:47]MH_SAM_APDU [09:56:47]CAPDU: 80 0D 01 02 [09:56:47]Write to MH i2c: E2 08 00 9C 1A 80 0D 01 02 00 00 00 00 2F [09:56:47]Write i2c OK [09:56:47]MH_I2C_Read... [09:56:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:47]Read from MH i2c: E2 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 03 00 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 03 00 9C 1A 00 90 00 2A [09:56:47]RAPDU: 90 00 [09:56:47]wFMCommunicate OK [09:56:47]wFMCommunicate request_size=255 [09:56:47]MH_SAM_APDU [09:56:47]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 21 00 00 00 F4 03 04 00 62 35 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [09:56:47]Write to MH i2c: E2 02 01 9D 1A 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 21 00 00 00 F4 03 04 00 62 35 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 EC [09:56:47]Write i2c OK [09:56:47]MH_I2C_Read... [09:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:47]Read from MH i2c: E2 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 03 00 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 03 00 9D 1A 00 90 00 2B [09:56:47]RAPDU: 90 00 [09:56:47]wFMCommunicate OK [09:56:47]wFMCommunicate request_size=52 [09:56:47]MH_SAM_APDU [09:56:47]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 D2 05 01 00 35 04 06 00 83 99 05 61 C5 A1 [09:56:47]Write to MH i2c: E2 37 00 9E 1A 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 D2 05 01 00 35 04 06 00 83 99 05 61 C5 A1 00 00 BA [09:56:47]Write i2c OK [09:56:47]MH_I2C_Read... [09:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:47]Read from MH i2c: E2 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 03 00 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 03 00 9E 1A 00 90 00 2C [09:56:47]RAPDU: 90 00 [09:56:47]wFMCommunicate OK [09:56:47]wFMCommunicate request_size=4 [09:56:47]MH_SAM_APDU [09:56:47]CAPDU: 80 0D 03 02 [09:56:47]Write to MH i2c: E2 08 00 9F 1A 80 0D 03 02 00 00 00 00 34 [09:56:47]Write i2c OK [09:56:47]MH_I2C_Read... [09:56:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:47]Read from MH i2c: E2 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 0B 00 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 0B 00 9F 1A 00 FB E6 8C 59 18 E0 42 59 90 00 8E [09:56:47]RAPDU: FB E6 8C 59 18 E0 42 59 90 00 [09:56:47]wFMCommunicate OK [09:56:47]SAM_PROTO_SignData done [09:56:47]FM_MakeSignedData done [09:56:47]CreateOFDProtocolMessage [09:56:47]wFMCommunicate request_size=4 [09:56:47]MH_SAM_APDU [09:56:47]CAPDU: 80 11 00 00 [09:56:47]Write to MH i2c: E2 08 00 A0 1A 80 11 00 00 00 00 00 00 34 [09:56:47]Write i2c OK [09:56:47]MH_I2C_Read... [09:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:47]Read from MH i2c: E2 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 17 00 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: E2 17 00 A0 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8A [09:56: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:56:47]wFMCommunicate OK [09:56:47]CreateOFDProtocolMessage done [09:56:47]OFDSenderStorePacket 67026 [09:56:47]StoreOFDPacket docnum=67026 [09:56: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 39 01 00 00 F0 CE 31 01 14 4E 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 21 00 00 00 F4 03 04 00 62 35 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D2 05 01 00 35 04 06 00 83 99 05 61 C5 A1 FB E6 8C 59 18 E0 42 59 [09:56:47]CheckFolder [09:56:47]dirname=/storage/ofd_packets [09:56:47]CheckFolder done [09:56:47]ProducePacketName [09:56:47]name=ofd_packets/00067026 [09:56:47]NVStorageSaveData ofd_packets/00067026 [09:56:47]File name is /storage/ofd_packets/00067026 [09:56:47]Write 343 bytes [09:56:47]NVStorageSaveData done [09:56:47]OFDSenderStorePacket done [09:56:47]KKMCreateOFDPacket done [09:56:47]NVStorageSaveData kkm_last_timestamp [09:56:47]File name is /storage/kkm_last_timestamp [09:56:47]Write 4 bytes [09:56:47]NVStorageSaveData done [09:56:47]ExternCall_PrintAddStr [09:56:47]wPrintStart [09:56:47]Write to MH i2c: 01 00 00 A1 1A BB [09:56:47]Write i2c OK [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: 01 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: 01 07 00 [09:56:47]MH_I2C_Read... [09:56:47]Read from MH i2c: 01 07 00 A1 1A 00 00 00 00 00 FF 0F D0 [09:56:47]RasterBufferAndPrint [09:56:47]line Счет N : (3)12045 [09:56:47]line ИНН: 02508201610067 [09:56:47]line Контрольно-Кассовый Чек [09:56:47]line ПРОДАЖА [09:56:47]line Товар: 4700003010056 [09:56:47]line Чай хол Let`s Go! зел лим ПЭТ 1,25л [09:56:47]line 1.000 * 95.00 [09:56:47]line = 95.00 [09:56:47]line НДС 12% НСП 1% [09:56:47]line > о реализуемом товаре [09:56:47]line ИТОГО: 95.00 [09:56:47]line НСП 1% : 0.84 [09:56:47]line НДС 12% : 10.09 [09:56:47]line Наличными: 95.00 [09:56:47]line Безнал.: 0.00 [09:56:47]line Место: АЗС № 91 "Партнер Нефть" [09:56:47]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [09:56:47]line СНО: Общий режим [09:56:47]line Чек 33 14.05.2024 09:56 [09:56:47]line Смена: 355 ФФД: 1.0 [09:56:47]line ЗНМ: 0300000119 [09:56:47]line РНМ: 0000000000091845 [09:56:47]line Версия ККМ: 001 [09:56:47]line ФМ: 0000000000871829 [09:56:47]line ФД: 67026 [09:56:47]line ФПД: 144693243528609 [09:56:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T095650&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67026&fm=144693243528609&tin=02508201610067®Number=0000000000091845&sum=9500 [09:56:48]line 0 [09:56:48]OFD Sender: Processing packet 67026 [packets to send 35, broken 34] [09:56:48]ProducePacketName [09:56:48]name=ofd_packets/00067026 [09:56:48]OFD Sender: To server: pG, [09:56:48]CommunicateWithHost lk.salyk.kg:30040 [09:56:48]ConnectInit lk.salyk.kg [09:56:48]written 0, free lines is 4095 [09:56:48]Connected sock=10 [09:56: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 39 01 00 00 F0 CE 31 01 14 4E 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 21 00 00 00 F4 03 04 00 62 35 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D2 05 01 00 35 04 06 00 83 99 05 61 C5 A1 FB E6 8C 59 18 E0 42 59 [09:56: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 17 FB 47 00 D6 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D2 05 01 00 F4 03 04 00 42 DD 42 66 B6 04 01 00 00 69 14 81 F9 3C 0D A8 C5 [09:56:48]CommunicateWithHost err = 0 [09:56:48]CheckOFDResponse [09:56:48]1017 (14) - 77093643461234 [09:56:48]1041 (16) - 0000000000871829 [09:56:48]1040 (4) - 67026 [09:56:48]1012 (4) - 14.05.2024 03:40 [09:56:48]1206 (1) - 0 [09:56:48]OFD Sender: Remove packet 67026 [09:56:48]ProducePacketName [09:56:48]name=ofd_packets/00067026 [09:56:48]NVStorageDeleteData [09:56:48]Write to MH i2c: 01 00 00 C9 1A E3 [09:56:48]Write i2c OK [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: 01 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: 01 07 00 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: 01 07 00 C9 1A 00 00 00 00 00 D3 0C C9 [09:56:48]RasterBufferAndPrint [09:56:48]line [09:56:48]line [09:56:48]line [09:56:48]line [09:56:48]line [09:56:48]written 0, free lines is 3287 [09:56:48]MH_Cut [09:56:48]Write to MH i2c: D1 01 00 D0 1A 01 BC [09:56:48]Write i2c OK [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: D1 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: D1 01 00 [09:56:48]MH_I2C_Read... [09:56:48]Read from MH i2c: D1 01 00 D0 1A 00 BB [09:56:48]Write to MH i2c: 01 00 00 D1 1A EB [09:56:48]Write i2c OK [09:56:48]MH_I2C_Read... [09:56:49]OFD Sender: No OFD packet to send [09:56:49]*** Cut start [09:56:49]*** Purtial cut [09:56:49]*** Stage 1: CUTSNS_PIN = 1 [09:56:49]Read from MH i2c: 01 [09:56:49]MH_I2C_Read... [09:56:49]*** Stop cut motor [09:56:49]*** Cut end [09:56:49]Read from MH i2c: 01 07 00 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: 01 07 00 D1 1A 00 00 00 00 00 FF 0F 00 [09:56:49]process_action close_receipt done [09:56:49]requested_data is exist [09:56:49]produce_requested_data [09:56:49]requested_item fm.sn is exist - process it [09:56:49]wFMCommunicate request_size=4 [09:56:49]MH_SAM_APDU [09:56:49]CAPDU: 80 11 00 00 [09:56:49]Write to MH i2c: E2 08 00 D2 1A 80 11 00 00 00 00 00 00 66 [09:56:49]Write i2c OK [09:56:49]MH_I2C_Read... [09:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:49]Read from MH i2c: E2 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: E2 17 00 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: E2 17 00 D2 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BC [09:56: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:56:49]wFMCommunicate OK [09:56:49]requested_item fd.num is exist - process it [09:56:49]SAM_PROTO_GetFieldsCounters [09:56:49]wFMCommunicate request_size=4 [09:56:49]MH_SAM_APDU [09:56:49]CAPDU: 80 13 00 00 [09:56:49]Write to MH i2c: E2 08 00 D3 1A 80 13 00 00 00 00 00 00 69 [09:56:49]Write i2c OK [09:56:49]MH_I2C_Read... [09:56:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:49]Read from MH i2c: E2 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: E2 62 00 [09:56:49]MH_I2C_Read... [09:56:49]Read from MH i2c: E2 62 00 D3 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 D2 05 01 00 0E 04 04 00 63 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 2E [09:56: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 D2 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:49]wFMCommunicate OK [09:56:49]SAM_PROTO_GetFieldsCounters done [09:56:49]requested_item shift.num is exist - process it [09:56:49]requested_item shift.opened is exist - process it [09:56:49]req_shift_opened [09:56:49]FM_GetShiftState [09:56:49]SAM_PROTO_GetShiftState [09:56:49]wFMCommunicate request_size=4 [09:56:49]MH_SAM_APDU [09:56:49]CAPDU: 80 13 01 00 [09:56:49]Write to MH i2c: E2 08 00 D4 1A 80 13 01 00 00 00 00 00 6B [09:56:49]Write i2c OK [09:56:49]MH_I2C_Read... [09:56:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:50]Read from MH i2c: E2 [09:56:50]MH_I2C_Read... [09:56:50]Read from MH i2c: E2 0E 00 [09:56:50]MH_I2C_Read... [09:56:50]Read from MH i2c: E2 0E 00 D4 1A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 33 [09:56:50]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:56:50]wFMCommunicate OK [09:56:50]SAM_PROTO_GetShiftState done [09:56:50]FM_GetShiftState done [09:56:50]req_shift_opened done [09:56:50]requested_item shift.open_date is exist - process it [09:56:50]req_shift_open_date [09:56:50]req_shift_open_date done [09:56:50]produce_requested_data done [09:56:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67026,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:56:50]process_action_free close_receipt [09:56:50]json_value_free [09:56:50]json_value_free done [09:56:50]process_json_proto returns [09:56:50]Send response to host [09:56:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67026,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:56:50]free response buf [09:56:50]execute_script done [09:56:50]execute_script returns [09:56:50]free content buf [09:56:50]Sock 8.Close socket [09:56:50]Sock 8.Thread stoped [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:49]accept exits with 9 [09:58:49]New connection [09:58:49]New thread 3066760548 created [09:58:49]Thread 3066617188 joined [09:58:49]Waiting for new connection... [09:58:49] Sock 9.Parse request [09:58:49]Sock 9.Check first char [09:58:49]Sock 9.First char is OK [09:58:49]request: POST /json_proto HTTP/1.0 [09:58:49]Method: POST [09:58:49]URL: /json_proto [09:58:49]Method is POST - this is cgi request [09:58:49]url: /json_proto [09:58:49]query_string will be loaded in cgi processing [09:58:49]execute_cgi json_proto POST (null) [09:58:49]execute_cgi path=json_proto method=POST [09:58:49]POST find Content-Length [09:58:49]Host: 172.17.41.195:8080 [09:58:49]Content-Length: 1179 [09:58:49]Content-Type: application/json [09:58:49] [09:58:49]POST finish read [09:58:49]Found Content-Length = 1179 [09:58: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)506872\u000A14.05.2024 09:41\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:58:49]execute_script... [09:58: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)506872\u000A14.05.2024 09:41\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:58:49]POST & json_proto [09:58:49]process_json_proto [09:58:49]json parsed OK: [09:58:49]protocol is kg_v1.0 [09:58:49]action value=print_text [09:58:49]process_action print_text [09:58:49]cmd_print_text [09:58:49]ExternCall_PrintAddStr [09:58:49]wPrintStart [09:58:49]Write to MH i2c: 01 00 00 D5 1A EF [09:58:49]Write i2c OK [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: 01 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: 01 07 00 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: 01 07 00 D5 1A 00 00 00 00 00 FF 0F 04 [09:58:49]RasterBufferAndPrint [09:58:49]line *****ТОВАРНЫЙ ЧЕК***** [09:58:49]line АЗС-91 [09:58:49]line Партнер нефть [09:58:49]line 02508201610067 [09:58:49]line Кассир : Адишов И. [09:58:49]line Счет N : (1)506872 [09:58:49]line 14.05.2024 09:41 [09:58:49]line ПРОДАЖА [09:58:49]line ТРК (МРК, ГНК): 41 [09:58:49]line Вид ГСМ : 2710194210 [09:58:49]line ДТ-К-5 [09:58:49]line 20.000 x 74.70 [09:58:49]line ИТОГ: 1494.00 [09:58:49]line Тип оплаты: Талоны: Топливная Карта [09:58:49]line 02750 [09:58:49]line ______________________ [09:58:49]line (подпись) [09:58:49]written 0, free lines is 4095 [09:58:50]Write to MH i2c: 01 00 00 E9 1A 03 [09:58:50]Write i2c OK [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: 01 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: 01 07 00 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: 01 07 00 E9 1A 00 00 00 00 00 0D 0E 25 [09:58:50]RasterBufferAndPrint [09:58:50]line [09:58:50]line [09:58:50]line [09:58:50]line [09:58:50]line [09:58:50]written 0, free lines is 3598 [09:58:50]MH_Cut [09:58:50]Write to MH i2c: D1 01 00 F0 1A 01 DC [09:58:50]Write i2c OK [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: D1 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: D1 01 00 [09:58:50]MH_I2C_Read... [09:58:50]Read from MH i2c: D1 01 00 F0 1A 00 DB [09:58:50]Write to MH i2c: 01 00 00 F1 1A 0B [09:58:50]Write i2c OK [09:58:50]MH_I2C_Read... [09:58:50]*** Cut start [09:58:50]*** Purtial cut [09:58:50]*** CUTSNS_PIN = 0 [09:58:50]*** Stage 1: CUTSNS_PIN = 1 [09:58:52]Read from MH i2c: 01 [09:58:52]MH_I2C_Read... [09:58:52]*** Stop cut motor [09:58:52]*** Cut end [09:58:52]Read from MH i2c: 01 07 00 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: 01 07 00 F1 1A 00 00 00 00 00 FF 0F 20 [09:58:52]process_action print_text done [09:58:52]requested_data is exist [09:58:52]produce_requested_data [09:58:52]requested_item fm.sn is exist - process it [09:58:52]wFMCommunicate request_size=4 [09:58:52]MH_SAM_APDU [09:58:52]CAPDU: 80 11 00 00 [09:58:52]Write to MH i2c: E2 08 00 F2 1A 80 11 00 00 00 00 00 00 86 [09:58:52]Write i2c OK [09:58:52]MH_I2C_Read... [09:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:52]Read from MH i2c: E2 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 17 00 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 17 00 F2 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DC [09:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [09:58:52]wFMCommunicate OK [09:58:52]requested_item fd.num is exist - process it [09:58:52]SAM_PROTO_GetFieldsCounters [09:58:52]wFMCommunicate request_size=4 [09:58:52]MH_SAM_APDU [09:58:52]CAPDU: 80 13 00 00 [09:58:52]Write to MH i2c: E2 08 00 F3 1A 80 13 00 00 00 00 00 00 89 [09:58:52]Write i2c OK [09:58:52]MH_I2C_Read... [09:58:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:52]Read from MH i2c: E2 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 62 00 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 62 00 F3 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 D2 05 01 00 0E 04 04 00 63 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 4E [09:58: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 D2 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:52]wFMCommunicate OK [09:58:52]SAM_PROTO_GetFieldsCounters done [09:58:52]requested_item shift.num is exist - process it [09:58:52]requested_item shift.opened is exist - process it [09:58:52]req_shift_opened [09:58:52]FM_GetShiftState [09:58:52]SAM_PROTO_GetShiftState [09:58:52]wFMCommunicate request_size=4 [09:58:52]MH_SAM_APDU [09:58:52]CAPDU: 80 13 01 00 [09:58:52]Write to MH i2c: E2 08 00 F4 1A 80 13 01 00 00 00 00 00 8B [09:58:52]Write i2c OK [09:58:52]MH_I2C_Read... [09:58:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:52]Read from MH i2c: E2 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 0E 00 [09:58:52]MH_I2C_Read... [09:58:52]Read from MH i2c: E2 0E 00 F4 1A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 53 [09:58:52]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [09:58:52]wFMCommunicate OK [09:58:52]SAM_PROTO_GetShiftState done [09:58:52]FM_GetShiftState done [09:58:52]req_shift_opened done [09:58:52]requested_item shift.open_date is exist - process it [09:58:52]req_shift_open_date [09:58:52]req_shift_open_date done [09:58:52]produce_requested_data done [09:58:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67026,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [09:58:52]process_action_free print_text [09:58:52]json_value_free [09:58:52]json_value_free done [09:58:52]process_json_proto returns [09:58:52]Send response to host [09:58:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67026,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [09:58:52]free response buf [09:58:52]execute_script done [09:58:52]execute_script returns [09:58:52]free content buf [09:58:52]Sock 9.Close socket [09:58:52]Sock 9.Thread stoped [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:48]recv_with_timeout no data received [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [10:04:49]OFD Sender: No OFD packet to send [10:04:54]OFD Sender: No OFD packet to send [10:04:59]OFD Sender: No OFD packet to send [10:05:04]OFD Sender: No OFD packet to send [10:05:09]OFD Sender: No OFD packet to send [10:05:14]OFD Sender: No OFD packet to send [10:05:19]OFD Sender: No OFD packet to send [10:05:24]OFD Sender: No OFD packet to send [10:05:29]OFD Sender: No OFD packet to send [10:05:34]OFD Sender: No OFD packet to send [10:05:39]OFD Sender: No OFD packet to send [10:05:44]OFD Sender: No OFD packet to send [10:05:49]OFD Sender: No OFD packet to send [10:05:54]OFD Sender: No OFD packet to send [10:05:59]OFD Sender: No OFD packet to send [10:06:04]OFD Sender: No OFD packet to send [10:06:09]OFD Sender: No OFD packet to send [10:06:14]OFD Sender: No OFD packet to send [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:24]OFD Sender: No OFD packet to send [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:10:59]accept exits with 8 [10:10:59]New connection [10:10:59]New thread 3066617188 created [10:10:59]Thread 3066760548 joined [10:10:59]Waiting for new connection... [10:10:59] Sock 8.Parse request [10:10:59]Sock 8.Check first char [10:10:59]Sock 8.First char is OK [10:10:59]request: POST /json_proto HTTP/1.0 [10:10:59]Method: POST [10:10:59]URL: /json_proto [10:10:59]Method is POST - this is cgi request [10:10:59]url: /json_proto [10:10:59]query_string will be loaded in cgi processing [10:10:59]execute_cgi json_proto POST (null) [10:10:59]execute_cgi path=json_proto method=POST [10:10:59]POST find Content-Length [10:10:59]Host: 172.17.41.195:8080 [10:10:59]Content-Length: 671 [10:10:59]Content-Type: application/json [10:10:59] [10:10:59]POST finish read [10:10:59]Found Content-Length = 671 [10:10:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:59]execute_script... [10:10: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)506873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:59]POST & json_proto [10:10:59]process_json_proto [10:10:59]json parsed OK: [10:10:59]protocol is kg_v1.0 [10:10:59]action value=close_receipt [10:10:59]process_action close_receipt [10:10:59]cmd_close_receipt [10:10:59]MH_GetDate [10:10:59]Write to MH i2c: F0 00 00 F5 1A FE [10:10:59]Write i2c OK [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: F0 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: F0 09 00 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: F0 09 00 F5 1A 00 B7 38 43 66 FC 21 6F 64 8F [10:10:59]GetLastDocTimeStamp 1715680610 [10:10:59]current date 1715681463 [10:10:59]FM_GetShiftState [10:10:59]SAM_PROTO_GetShiftState [10:10:59]wFMCommunicate request_size=4 [10:10:59]MH_SAM_APDU [10:10:59]CAPDU: 80 13 01 00 [10:10:59]Write to MH i2c: E2 08 00 F6 1A 80 13 01 00 00 00 00 00 8D [10:10:59]Write i2c OK [10:10:59]MH_I2C_Read... [10:10:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:59]Read from MH i2c: E2 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: E2 0E 00 [10:10:59]MH_I2C_Read... [10:10:59]Read from MH i2c: E2 0E 00 F6 1A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 55 [10:10:59]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [10:10:59]wFMCommunicate OK [10:10:59]SAM_PROTO_GetShiftState done [10:10:59]FM_GetShiftState done [10:10:59]opened in 1715646054 [10:10:59]opened+sec_in_day 1715732454 [10:10:59]quantity*price = 90038 [10:10:59]sum+1 = 90039 [10:10:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 34 14.05.2024 10:11 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67027 ФПД: 206756104467724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T101103&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67027&fm=206756104467724&tin=02508201610067®Number=0000000000091845&sum=90000 [10:11:00]StoreToDocumentArchive [10:11:00]shift 355 fd 67027 [10:11:00]save to /storage/0355/doc_00067027 [10:11:00]save last doc name /storage/0355/doc_00067027 to /storage/kkm_last_doc_name [10:11:00]save OK [10:11:00]Clear old archive folders... [10:11:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:11:00]tlvbuf is B6EAB5E0 [10:11:00]SAM_PROTO_ClearQueue [10:11:00]wFMCommunicate request_size=4 [10:11:00]MH_SAM_APDU [10:11:00]CAPDU: 80 09 00 00 [10:11:00]Write to MH i2c: E2 08 00 03 1B 80 09 00 00 00 00 00 00 90 [10:11:00]Write i2c OK [10:11:00]MH_I2C_Read... [10:11:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:01]Read from MH i2c: E2 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: E2 03 00 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: E2 03 00 03 1B 00 90 00 92 [10:11:01]RAPDU: 90 00 [10:11:01]wFMCommunicate OK [10:11:01]SAM_PROTO_ClearQueue done [10:11:01]KKMCreateOFDPacket [10:11:01]OFDProtocolAddRootSTLVToBuf [10:11:01]FM_MakeSignedData [10:11:01]FM_MakeSignedData [10:11:01]SAM_PROTO_SignData [10:11:01]wFMCommunicate request_size=4 [10:11:01]MH_SAM_APDU [10:11:01]CAPDU: 80 0D 01 02 [10:11:01]Write to MH i2c: E2 08 00 04 1B 80 0D 01 02 00 00 00 00 98 [10:11:01]Write i2c OK [10:11:01]MH_I2C_Read... [10:11:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:01]Read from MH i2c: E2 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: E2 03 00 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: E2 03 00 04 1B 00 90 00 93 [10:11:01]RAPDU: 90 00 [10:11:01]wFMCommunicate OK [10:11:01]wFMCommunicate request_size=255 [10:11:01]MH_SAM_APDU [10:11:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 B7 38 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D3 05 01 00 35 04 06 00 [10:11:01]Write to MH i2c: E2 02 01 05 1B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 B7 38 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D3 05 01 00 35 04 06 00 00 00 06 [10:11:01]Write i2c OK [10:11:01]MH_I2C_Read... [10:11:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:01]Read from MH i2c: E2 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: E2 03 00 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: E2 03 00 05 1B 00 90 00 94 [10:11:01]RAPDU: 90 00 [10:11:01]wFMCommunicate OK [10:11:01]wFMCommunicate request_size=11 [10:11:01]MH_SAM_APDU [10:11:01]CAPDU: 80 0D 02 02 06 BC 0B 28 29 75 0C [10:11:01]Write to MH i2c: E2 0E 00 06 1B 80 0D 02 02 06 00 BC 0B 28 29 75 0C 00 00 40 [10:11:01]Write i2c OK [10:11:01]MH_I2C_Read... [10:11:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:01]Read from MH i2c: E2 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: E2 03 00 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: E2 03 00 06 1B 00 90 00 95 [10:11:01]RAPDU: 90 00 [10:11:01]wFMCommunicate OK [10:11:01]wFMCommunicate request_size=4 [10:11:01]MH_SAM_APDU [10:11:01]CAPDU: 80 0D 03 02 [10:11:01]Write to MH i2c: E2 08 00 07 1B 80 0D 03 02 00 00 00 00 9D [10:11:01]Write i2c OK [10:11:01]MH_I2C_Read... [10:11:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:01]Read from MH i2c: E2 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: E2 0B 00 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: E2 0B 00 07 1B 00 5D 83 CF 8A 69 AB 47 FF 90 00 31 [10:11:01]RAPDU: 5D 83 CF 8A 69 AB 47 FF 90 00 [10:11:01]wFMCommunicate OK [10:11:01]SAM_PROTO_SignData done [10:11:01]FM_MakeSignedData done [10:11:01]CreateOFDProtocolMessage [10:11:01]wFMCommunicate request_size=4 [10:11:01]MH_SAM_APDU [10:11:01]CAPDU: 80 11 00 00 [10:11:01]Write to MH i2c: E2 08 00 08 1B 80 11 00 00 00 00 00 00 9D [10:11:01]Write i2c OK [10:11:01]MH_I2C_Read... [10:11:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:01]Read from MH i2c: E2 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: E2 17 00 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: E2 17 00 08 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F3 [10:11:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:11:01]wFMCommunicate OK [10:11:01]CreateOFDProtocolMessage done [10:11:01]OFDSenderStorePacket 67027 [10:11:01]StoreOFDPacket docnum=67027 [10:11: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 10 01 00 00 EA E5 08 01 98 81 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 B7 38 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D3 05 01 00 35 04 06 00 BC 0B 28 29 75 0C 5D 83 CF 8A 69 AB 47 FF [10:11:01]CheckFolder [10:11:01]dirname=/storage/ofd_packets [10:11:01]CheckFolder done [10:11:01]ProducePacketName [10:11:01]name=ofd_packets/00067027 [10:11:01]NVStorageSaveData ofd_packets/00067027 [10:11:01]File name is /storage/ofd_packets/00067027 [10:11:01]Write 302 bytes [10:11:01]NVStorageSaveData done [10:11:01]OFDSenderStorePacket done [10:11:01]KKMCreateOFDPacket done [10:11:01]NVStorageSaveData kkm_last_timestamp [10:11:01]File name is /storage/kkm_last_timestamp [10:11:01]Write 4 bytes [10:11:01]NVStorageSaveData done [10:11:01]ExternCall_PrintAddStr [10:11:01]wPrintStart [10:11:01]Write to MH i2c: 01 00 00 09 1B 24 [10:11:01]Write i2c OK [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: 01 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: 01 07 00 [10:11:01]MH_I2C_Read... [10:11:01]Read from MH i2c: 01 07 00 09 1B 00 00 00 00 00 FF 0F 39 [10:11:01]RasterBufferAndPrint [10:11:01]line Счет N : (1)506873 [10:11:01]line ИНН: 02508201610067 [10:11:01]line Контрольно-Кассовый Чек [10:11:01]line ПРОДАЖА [10:11:01]line ТРК (МРК, ГНК) : 32 [10:11:01]line Товар: 2710124130 [10:11:01]line Super-92-К-5 [10:11:01]line 13.280 * 67.80 [10:11:01]line = 900.38 [10:11:01]line НДС 12% НСП 1% [10:11:01]line > о реализуемом товаре [10:11:01]line ОКРУГЛЕНИЕ: -0.38 [10:11:01]line ИТОГО: 900.00 [10:11:01]line Внесено: 900.00 [10:11:01]line СДАЧА: 0.00 [10:11:01]line НСП 1% : 7.97 [10:11:01]line НДС 12% : 95.62 [10:11:01]line Наличными: 900.00 [10:11:01]line Безнал.: 0.00 [10:11:01]line Место: АЗС № 91 "Партнер Нефть" [10:11:01]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:11:01]line СНО: Общий режим [10:11:01]line Чек 34 14.05.2024 10:11 [10:11:01]line Смена: 355 ФФД: 1.0 [10:11:01]line ЗНМ: 0300000119 [10:11:01]line РНМ: 0000000000091845 [10:11:01]line Версия ККМ: 001 [10:11:01]line ФМ: 0000000000871829 [10:11:01]line ФД: 67027 [10:11:01]line ФПД: 206756104467724 [10:11:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T101103&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67027&fm=206756104467724&tin=02508201610067®Number=0000000000091845&sum=90000 [10:11:01]OFD Sender: Processing packet 67027 [packets to send 35, broken 34] [10:11:01]ProducePacketName [10:11:01]name=ofd_packets/00067027 [10:11:01]OFD Sender: To server: pG, [10:11:01]CommunicateWithHost lk.salyk.kg:30040 [10:11:01]ConnectInit lk.salyk.kg [10:11:01]written 0, free lines is 4095 [10:11:01]Connected sock=9 [10:11: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 10 01 00 00 EA E5 08 01 98 81 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 B7 38 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D3 05 01 00 35 04 06 00 BC 0B 28 29 75 0C 5D 83 CF 8A 69 AB 47 FF [10:11:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 BE 58 47 00 D2 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D3 05 01 00 F4 03 04 00 97 E0 42 66 B6 04 01 00 00 EB A9 92 7E 38 70 F5 01 [10:11:02]CommunicateWithHost err = 0 [10:11:02]CheckOFDResponse [10:11:02]1017 (14) - 77093643461234 [10:11:02]1041 (16) - 0000000000871829 [10:11:02]1040 (4) - 67027 [10:11:02]1012 (4) - 14.05.2024 03:55 [10:11:02]1206 (1) - 0 [10:11:02]OFD Sender: Remove packet 67027 [10:11:02]ProducePacketName [10:11:02]name=ofd_packets/00067027 [10:11:02]NVStorageDeleteData [10:11:02]Write to MH i2c: 01 00 00 33 1B 4E [10:11:02]Write i2c OK [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: 01 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: 01 07 00 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: 01 07 00 33 1B 00 00 00 00 00 C3 0C 24 [10:11:02]RasterBufferAndPrint [10:11:02]line [10:11:02]line [10:11:02]line [10:11:02]line [10:11:02]line [10:11:02]written 0, free lines is 3273 [10:11:02]MH_Cut [10:11:02]Write to MH i2c: D1 01 00 3A 1B 01 27 [10:11:02]Write i2c OK [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: D1 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: D1 01 00 [10:11:02]MH_I2C_Read... [10:11:02]Read from MH i2c: D1 01 00 3A 1B 00 26 [10:11:02]Write to MH i2c: 01 00 00 3B 1B 56 [10:11:02]Write i2c OK [10:11:02]MH_I2C_Read... [10:11:02]OFD Sender: No OFD packet to send [10:11:03]*** Cut start [10:11:03]*** Purtial cut [10:11:03]*** Stage 1: CUTSNS_PIN = 1 [10:11:03]Read from MH i2c: 01 [10:11:03]MH_I2C_Read... [10:11:03]*** Stop cut motor [10:11:03]*** Cut end [10:11:03]Read from MH i2c: 01 07 00 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: 01 07 00 3B 1B 00 00 00 00 00 FF 0F 6B [10:11:03]process_action close_receipt done [10:11:03]requested_data is exist [10:11:03]produce_requested_data [10:11:03]requested_item fm.sn is exist - process it [10:11:03]wFMCommunicate request_size=4 [10:11:03]MH_SAM_APDU [10:11:03]CAPDU: 80 11 00 00 [10:11:03]Write to MH i2c: E2 08 00 3C 1B 80 11 00 00 00 00 00 00 D1 [10:11:03]Write i2c OK [10:11:03]MH_I2C_Read... [10:11:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:03]Read from MH i2c: E2 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 17 00 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 17 00 3C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 27 [10:11:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:11:03]wFMCommunicate OK [10:11:03]requested_item fd.num is exist - process it [10:11:03]SAM_PROTO_GetFieldsCounters [10:11:03]wFMCommunicate request_size=4 [10:11:03]MH_SAM_APDU [10:11:03]CAPDU: 80 13 00 00 [10:11:03]Write to MH i2c: E2 08 00 3D 1B 80 13 00 00 00 00 00 00 D4 [10:11:03]Write i2c OK [10:11:03]MH_I2C_Read... [10:11:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:03]Read from MH i2c: E2 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 62 00 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 62 00 3D 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 D3 05 01 00 0E 04 04 00 63 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 9D [10:11: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 D3 05 01 00 0E 04 04 00 63 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:11:03]wFMCommunicate OK [10:11:03]SAM_PROTO_GetFieldsCounters done [10:11:03]requested_item shift.num is exist - process it [10:11:03]requested_item shift.opened is exist - process it [10:11:03]req_shift_opened [10:11:03]FM_GetShiftState [10:11:03]SAM_PROTO_GetShiftState [10:11:03]wFMCommunicate request_size=4 [10:11:03]MH_SAM_APDU [10:11:03]CAPDU: 80 13 01 00 [10:11:03]Write to MH i2c: E2 08 00 3E 1B 80 13 01 00 00 00 00 00 D6 [10:11:03]Write i2c OK [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 [10:11:03]MH_I2C_Read... [10:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:03]Read from MH i2c: E2 0E 00 [10:11:03]MH_I2C_Read... [10:11:03]Read from MH i2c: E2 0E 00 3E 1B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 9E [10:11:03]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [10:11:03]wFMCommunicate OK [10:11:03]SAM_PROTO_GetShiftState done [10:11:03]FM_GetShiftState done [10:11:03]req_shift_opened done [10:11:03]requested_item shift.open_date is exist - process it [10:11:03]req_shift_open_date [10:11:03]req_shift_open_date done [10:11:03]produce_requested_data done [10:11:03]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67027,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [10:11:03]process_action_free close_receipt [10:11:03]json_value_free [10:11:03]json_value_free done [10:11:03]process_json_proto returns [10:11:03]Send response to host [10:11:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67027,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [10:11:03]free response buf [10:11:03]execute_script done [10:11:03]execute_script returns [10:11:03]free content buf [10:11:03]Sock 8.Close socket [10:11:03]Sock 8.Thread stoped [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:23]recv_with_timeout no data received [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]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:50]accept exits with 10 [10:12:50]New connection [10:12:50]New thread 3066760548 created [10:12:50]Thread 3066617188 joined [10:12:50]Waiting for new connection... [10:12:50] Sock 10.Parse request [10:12:50]Sock 10.Check first char [10:12:50]Sock 10.First char is OK [10:12:50]request: POST /json_proto HTTP/1.0 [10:12:50]Method: POST [10:12:50]URL: /json_proto [10:12:50]Method is POST - this is cgi request [10:12:50]url: /json_proto [10:12:50]query_string will be loaded in cgi processing [10:12:50]execute_cgi json_proto POST (null) [10:12:50]execute_cgi path=json_proto method=POST [10:12:50]POST find Content-Length [10:12:50]Host: 172.17.41.195:8080 [10:12:50]Content-Length: 677 [10:12:50]Content-Type: application/json [10:12:50] [10:12:50]POST finish read [10:12:50]Found Content-Length = 677 [10:12:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [10:12:50]execute_script... [10:12: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)506874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [10:12:50]POST & json_proto [10:12:50]process_json_proto [10:12:50]json parsed OK: [10:12:50]protocol is kg_v1.0 [10:12:50]action value=close_receipt [10:12:50]process_action close_receipt [10:12:50]cmd_close_receipt [10:12:50]MH_GetDate [10:12:50]Write to MH i2c: F0 00 00 3F 1B 49 [10:12:50]Write i2c OK [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: F0 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: F0 09 00 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: F0 09 00 3F 1B 00 26 39 43 66 FC 21 6F 64 4A [10:12:50]GetLastDocTimeStamp 1715681463 [10:12:50]current date 1715681574 [10:12:50]FM_GetShiftState [10:12:50]SAM_PROTO_GetShiftState [10:12:50]wFMCommunicate request_size=4 [10:12:50]MH_SAM_APDU [10:12:50]CAPDU: 80 13 01 00 [10:12:50]Write to MH i2c: E2 08 00 40 1B 80 13 01 00 00 00 00 00 D8 [10:12:50]Write i2c OK [10:12:50]MH_I2C_Read... [10:12:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:50]Read from MH i2c: E2 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: E2 0E 00 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: E2 0E 00 40 1B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A0 [10:12:50]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [10:12:50]wFMCommunicate OK [10:12:50]SAM_PROTO_GetShiftState done [10:12:50]FM_GetShiftState done [10:12:50]opened in 1715646054 [10:12:50]opened+sec_in_day 1715732454 [10:12:50]quantity*price = 60053 [10:12:50]sum+1 = 60054 [10:12:50]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 СНО: Общий режим Чек 35 14.05.2024 10:12 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67028 ФПД: 39738157952745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T101254&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67028&fm=39738157952745&tin=02508201610067®Number=0000000000091845&sum=60000 [10:12:51]StoreToDocumentArchive [10:12:51]shift 355 fd 67028 [10:12:51]save to /storage/0355/doc_00067028 [10:12:51]save last doc name /storage/0355/doc_00067028 to /storage/kkm_last_doc_name [10:12:51]save OK [10:12:51]Clear old archive folders... [10:12:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:51]tlvbuf is 003378C0 [10:12:51]SAM_PROTO_ClearQueue [10:12:51]wFMCommunicate request_size=4 [10:12:51]MH_SAM_APDU [10:12:51]CAPDU: 80 09 00 00 [10:12:51]Write to MH i2c: E2 08 00 4D 1B 80 09 00 00 00 00 00 00 DA [10:12:51]Write i2c OK [10:12:51]MH_I2C_Read... [10:12:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:51]Read from MH i2c: E2 [10:12:51]MH_I2C_Read... [10:12:51]Read from MH i2c: E2 03 00 [10:12:51]MH_I2C_Read... [10:12:51]Read from MH i2c: E2 03 00 4D 1B 00 90 00 DC [10:12:51]RAPDU: 90 00 [10:12:51]wFMCommunicate OK [10:12:51]SAM_PROTO_ClearQueue done [10:12:51]KKMCreateOFDPacket [10:12:51]OFDProtocolAddRootSTLVToBuf [10:12:51]FM_MakeSignedData [10:12:51]FM_MakeSignedData [10:12:51]SAM_PROTO_SignData [10:12:51]wFMCommunicate request_size=4 [10:12:51]MH_SAM_APDU [10:12:51]CAPDU: 80 0D 01 02 [10:12:51]Write to MH i2c: E2 08 00 4E 1B 80 0D 01 02 00 00 00 00 E2 [10:12:51]Write i2c OK [10:12:51]MH_I2C_Read... [10:12:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:51]Read from MH i2c: E2 [10:12:51]MH_I2C_Read... [10:12:51]Read from MH i2c: E2 03 00 [10:12:51]MH_I2C_Read... [10:12:51]Read from MH i2c: E2 03 00 4E 1B 00 90 00 DD [10:12:51]RAPDU: 90 00 [10:12:51]wFMCommunicate OK [10:12:51]wFMCommunicate request_size=255 [10:12:51]MH_SAM_APDU [10:12: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 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 23 00 00 00 F4 03 04 00 26 39 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D4 05 01 00 35 04 06 00 24 [10:12:51]Write to MH i2c: E2 02 01 4F 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 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 23 00 00 00 F4 03 04 00 26 39 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D4 05 01 00 35 04 06 00 24 00 00 1A [10:12:51]Write i2c OK [10:12:51]MH_I2C_Read... [10:12:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:52]Read from MH i2c: E2 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 03 00 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 03 00 4F 1B 00 90 00 DE [10:12:52]RAPDU: 90 00 [10:12:52]wFMCommunicate OK [10:12:52]wFMCommunicate request_size=10 [10:12:52]MH_SAM_APDU [10:12:52]CAPDU: 80 0D 02 02 05 24 42 C9 EE E9 [10:12:52]Write to MH i2c: E2 0D 00 50 1B 80 0D 02 02 05 00 24 42 C9 EE E9 00 00 F5 [10:12:52]Write i2c OK [10:12:52]MH_I2C_Read... [10:12:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:52]Read from MH i2c: E2 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 03 00 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 03 00 50 1B 00 90 00 DF [10:12:52]RAPDU: 90 00 [10:12:52]wFMCommunicate OK [10:12:52]wFMCommunicate request_size=4 [10:12:52]MH_SAM_APDU [10:12:52]CAPDU: 80 0D 03 02 [10:12:52]Write to MH i2c: E2 08 00 51 1B 80 0D 03 02 00 00 00 00 E7 [10:12:52]Write i2c OK [10:12:52]MH_I2C_Read... [10:12:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:52]Read from MH i2c: E2 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 0B 00 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 0B 00 51 1B 00 12 41 38 32 77 0A 12 2D 90 00 65 [10:12:52]RAPDU: 12 41 38 32 77 0A 12 2D 90 00 [10:12:52]wFMCommunicate OK [10:12:52]SAM_PROTO_SignData done [10:12:52]FM_MakeSignedData done [10:12:52]CreateOFDProtocolMessage [10:12:52]wFMCommunicate request_size=4 [10:12:52]MH_SAM_APDU [10:12:52]CAPDU: 80 11 00 00 [10:12:52]Write to MH i2c: E2 08 00 52 1B 80 11 00 00 00 00 00 00 E7 [10:12:52]Write i2c OK [10:12:52]MH_I2C_Read... [10:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:52]Read from MH i2c: E2 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 17 00 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 17 00 52 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3D [10:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:12:52]wFMCommunicate OK [10:12:52]CreateOFDProtocolMessage done [10:12:52]OFDSenderStorePacket 67028 [10:12:52]StoreOFDPacket docnum=67028 [10:12: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 75 96 07 01 B1 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 23 00 00 00 F4 03 04 00 26 39 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D4 05 01 00 35 04 06 00 24 24 42 C9 EE E9 12 41 38 32 77 0A 12 2D [10:12:52]CheckFolder [10:12:52]dirname=/storage/ofd_packets [10:12:52]CheckFolder done [10:12:52]ProducePacketName [10:12:52]name=ofd_packets/00067028 [10:12:52]NVStorageSaveData ofd_packets/00067028 [10:12:52]File name is /storage/ofd_packets/00067028 [10:12:52]Write 301 bytes [10:12:52]NVStorageSaveData done [10:12:52]OFDSenderStorePacket done [10:12:52]KKMCreateOFDPacket done [10:12:52]NVStorageSaveData kkm_last_timestamp [10:12:52]File name is /storage/kkm_last_timestamp [10:12:52]Write 4 bytes [10:12:52]NVStorageSaveData done [10:12:52]ExternCall_PrintAddStr [10:12:52]wPrintStart [10:12:52]Write to MH i2c: 01 00 00 53 1B 6E [10:12:52]Write i2c OK [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: 01 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: 01 07 00 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: 01 07 00 53 1B 00 00 00 00 00 FF 0F 83 [10:12:52]RasterBufferAndPrint [10:12:52]line Счет N : (1)506874 [10:12:52]line ИНН: 02508201610067 [10:12:52]line Контрольно-Кассовый Чек [10:12:52]line ПРОДАЖА [10:12:52]line ТРК (МРК, ГНК) : 13 [10:12:52]line Товар: 2710124130 [10:12:52]line Аи-92-К-5 [10:12:52]line 8.990 * 66.80 [10:12:52]line = 600.53 [10:12:52]line НДС 12% НСП 1% [10:12:52]line > о реализуемом товаре [10:12:52]line ОКРУГЛЕНИЕ: -0.53 [10:12:52]line ИТОГО: 600.00 [10:12:52]line Внесено: 600.00 [10:12:52]line СДАЧА: 0.00 [10:12:52]line НСП 1% : 5.31 [10:12:52]line НДС 12% : 63.77 [10:12:52]line Наличными: 600.00 [10:12:52]line Безнал.: 0.00 [10:12:52]line Место: АЗС № 91 "Партнер Нефть" [10:12:52]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:12:52]line СНО: Общий режим [10:12:52]line Чек 35 14.05.2024 10:12 [10:12:52]line Смена: 355 ФФД: 1.0 [10:12:52]line ЗНМ: 0300000119 [10:12:52]line РНМ: 0000000000091845 [10:12:52]line Версия ККМ: 001 [10:12:52]line ФМ: 0000000000871829 [10:12:52]line ФД: 67028 [10:12:52]line ФПД: 39738157952745 [10:12:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T101254&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67028&fm=39738157952745&tin=02508201610067®Number=0000000000091845&sum=60000 [10:12:52]OFD Sender: Processing packet 67028 [packets to send 35, broken 34] [10:12:52]ProducePacketName [10:12:52]name=ofd_packets/00067028 [10:12:52]OFD Sender: To server: pG, [10:12:52]CommunicateWithHost lk.salyk.kg:30040 [10:12:52]ConnectInit lk.salyk.kg [10:12:52]written 0, free lines is 4095 [10:12:52]Connected sock=9 [10:12: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 75 96 07 01 B1 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 23 00 00 00 F4 03 04 00 26 39 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D4 05 01 00 35 04 06 00 24 24 42 C9 EE E9 12 41 38 32 77 0A 12 2D [10: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 3D 8B 47 00 79 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 D4 05 01 00 F4 03 04 00 06 E1 42 66 B6 04 01 00 00 F4 B7 67 B5 62 CC 02 A5 [10:12:53]CommunicateWithHost err = 0 [10:12:53]CheckOFDResponse [10:12:53]1017 (14) - 77093643461234 [10:12:53]1041 (16) - 0000000000871829 [10:12:53]1040 (4) - 67028 [10:12:53]1012 (4) - 14.05.2024 03:56 [10:12:53]1206 (1) - 0 [10:12:53]OFD Sender: Remove packet 67028 [10:12:53]ProducePacketName [10:12:53]name=ofd_packets/00067028 [10:12:53]NVStorageDeleteData [10:12:53]Write to MH i2c: 01 00 00 7D 1B 98 [10:12:53]Write i2c OK [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: 01 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: 01 07 00 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: 01 07 00 7D 1B 00 00 00 00 00 BE 0C 69 [10:12:53]RasterBufferAndPrint [10:12:53]line [10:12:53]line [10:12:53]line [10:12:53]line [10:12:53]line [10:12:53]written 0, free lines is 3268 [10:12:53]MH_Cut [10:12:53]Write to MH i2c: D1 01 00 84 1B 01 71 [10:12:53]Write i2c OK [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: D1 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: D1 01 00 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: D1 01 00 84 1B 00 70 [10:12:53]Write to MH i2c: 01 00 00 85 1B A0 [10:12:53]Write i2c OK [10:12:53]MH_I2C_Read... [10:12:53]OFD Sender: No OFD packet to send [10:12:53]*** Cut start [10:12:53]*** Purtial cut [10:12:53]*** CUTSNS_PIN = 0 [10:12:54]*** Stage 1: CUTSNS_PIN = 1 [10:12:55]Read from MH i2c: 01 *** Stop cut motor [10:12:56] [10:12:56]MH_I2C_Read... [10:12:56]*** Cut end [10:12:56]Read from MH i2c: 01 07 00 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: 01 07 00 85 1B 00 00 00 00 00 FF 0F B5 [10:12:56]process_action close_receipt done [10:12:56]requested_data is exist [10:12:56]produce_requested_data [10:12:56]requested_item fm.sn is exist - process it [10:12:56]wFMCommunicate request_size=4 [10:12:56]MH_SAM_APDU [10:12:56]CAPDU: 80 11 00 00 [10:12:56]Write to MH i2c: E2 08 00 86 1B 80 11 00 00 00 00 00 00 1B [10:12:56]Write i2c OK [10:12:56]MH_I2C_Read... [10:12:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:56]Read from MH i2c: E2 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 17 00 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 17 00 86 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 71 [10:12:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:12:56]wFMCommunicate OK [10:12:56]requested_item fd.num is exist - process it [10:12:56]SAM_PROTO_GetFieldsCounters [10:12:56]wFMCommunicate request_size=4 [10:12:56]MH_SAM_APDU [10:12:56]CAPDU: 80 13 00 00 [10:12:56]Write to MH i2c: E2 08 00 87 1B 80 13 00 00 00 00 00 00 1E [10:12:56]Write i2c OK [10:12:56]MH_I2C_Read... [10:12:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:56]Read from MH i2c: E2 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 62 00 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 62 00 87 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 D4 05 01 00 0E 04 04 00 63 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 EB [10:12: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 D4 05 01 00 0E 04 04 00 63 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:12:56]wFMCommunicate OK [10:12:56]SAM_PROTO_GetFieldsCounters done [10:12:56]requested_item shift.num is exist - process it [10:12:56]requested_item shift.opened is exist - process it [10:12:56]req_shift_opened [10:12:56]FM_GetShiftState [10:12:56]SAM_PROTO_GetShiftState [10:12:56]wFMCommunicate request_size=4 [10:12:56]MH_SAM_APDU [10:12:56]CAPDU: 80 13 01 00 [10:12:56]Write to MH i2c: E2 08 00 88 1B 80 13 01 00 00 00 00 00 20 [10:12:56]Write i2c OK [10:12:56]MH_I2C_Read... [10:12:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:56]Read from MH i2c: E2 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 0E 00 [10:12:56]MH_I2C_Read... [10:12:56]Read from MH i2c: E2 0E 00 88 1B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 E8 [10:12:56]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [10:12:56]wFMCommunicate OK [10:12:56]SAM_PROTO_GetShiftState done [10:12:56]FM_GetShiftState done [10:12:56]req_shift_opened done [10:12:56]requested_item shift.open_date is exist - process it [10:12:56]req_shift_open_date [10:12:56]req_shift_open_date done [10:12:56]produce_requested_data done [10:12:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67028,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [10:12:56]process_action_free close_receipt [10:12:56]json_value_free [10:12:56]json_value_free done [10:12:56]process_json_proto returns [10:12:56]Send response to host [10:12:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67028,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [10:12:56]free response buf [10:12:56]execute_script done [10:12:56]execute_script returns [10:12:56]free content buf [10:12:56]Sock 10.Close socket [10:12:56]Sock 10.Thread stoped [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:36]recv_with_timeout no data received [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:52]accept exits with 8 [10:15:52]New connection [10:15:52]New thread 3066617188 created [10:15:52]Thread 3066760548 joined [10:15:52]Waiting for new connection... [10:15:52] Sock 8.Parse request [10:15:52]Sock 8.Check first char [10:15:52]Sock 8.First char is OK [10:15:52]request: POST /json_proto HTTP/1.0 [10:15:52]Method: POST [10:15:52]URL: /json_proto [10:15:52]Method is POST - this is cgi request [10:15:52]url: /json_proto [10:15:52]query_string will be loaded in cgi processing [10:15:52]execute_cgi json_proto POST (null) [10:15:52]execute_cgi path=json_proto method=POST [10:15:52]POST find Content-Length [10:15:52]Host: 172.17.41.195:8080 [10:15:52]Content-Length: 671 [10:15:52]Content-Type: application/json [10:15:52] [10:15:52]POST finish read [10:15:52]Found Content-Length = 671 [10:15:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506875", "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:15:52]execute_script... [10:15: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)506875", "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:15:52]POST & json_proto [10:15:52]process_json_proto [10:15:52]json parsed OK: [10:15:52]protocol is kg_v1.0 [10:15:52]action value=close_receipt [10:15:52]process_action close_receipt [10:15:52]cmd_close_receipt [10:15:52]MH_GetDate [10:15:52]Write to MH i2c: F0 00 00 89 1B 93 [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: F0 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: F0 09 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: F0 09 00 89 1B 00 DC 39 43 66 FC 21 6F 64 4A [10:15:52]GetLastDocTimeStamp 1715681574 [10:15:52]current date 1715681756 [10:15:52]FM_GetShiftState [10:15:52]SAM_PROTO_GetShiftState [10:15:52]wFMCommunicate request_size=4 [10:15:52]MH_SAM_APDU [10:15:52]CAPDU: 80 13 01 00 [10:15:52]Write to MH i2c: E2 08 00 8A 1B 80 13 01 00 00 00 00 00 22 [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:52]Read from MH i2c: E2 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 0E 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: E2 0E 00 8A 1B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 EA [10:15:52]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [10:15:52]wFMCommunicate OK [10:15:52]SAM_PROTO_GetShiftState done [10:15:52]FM_GetShiftState done [10:15:52]opened in 1715646054 [10:15:52]opened+sec_in_day 1715732454 [10:15:52]quantity*price = 70037 [10:15:52]sum+1 = 70038 [10:15:52]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 СНО: Общий режим Чек 36 14.05.2024 10:15 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67029 ФПД: 5106893111149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T101556&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67029&fm=5106893111149&tin=02508201610067®Number=0000000000091845&sum=70000 [10:15:53]StoreToDocumentArchive [10:15:53]shift 355 fd 67029 [10:15:53]save to /storage/0355/doc_00067029 [10:15:53]save last doc name /storage/0355/doc_00067029 to /storage/kkm_last_doc_name [10:15:53]save OK [10:15:53]Clear old archive folders... [10:15:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:15:53]tlvbuf is 00340D20 [10:15:53]SAM_PROTO_ClearQueue [10:15:53]wFMCommunicate request_size=4 [10:15:53]MH_SAM_APDU [10:15:53]CAPDU: 80 09 00 00 [10:15:53]Write to MH i2c: E2 08 00 97 1B 80 09 00 00 00 00 00 00 24 [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:53]Read from MH i2c: E2 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 03 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 03 00 97 1B 00 90 00 26 [10:15:53]RAPDU: 90 00 [10:15:53]wFMCommunicate OK [10:15:53]SAM_PROTO_ClearQueue done [10:15:53]KKMCreateOFDPacket [10:15:53]OFDProtocolAddRootSTLVToBuf [10:15:53]FM_MakeSignedData [10:15:53]FM_MakeSignedData [10:15:53]SAM_PROTO_SignData [10:15:53]wFMCommunicate request_size=4 [10:15:53]MH_SAM_APDU [10:15:53]CAPDU: 80 0D 01 02 [10:15:53]Write to MH i2c: E2 08 00 98 1B 80 0D 01 02 00 00 00 00 2C [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:53]Read from MH i2c: E2 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 03 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 03 00 98 1B 00 90 00 27 [10:15:53]RAPDU: 90 00 [10:15:53]wFMCommunicate OK [10:15:53]wFMCommunicate request_size=255 [10:15:53]MH_SAM_APDU [10:15:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 24 00 00 00 F4 03 04 00 DC 39 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D5 05 01 00 35 04 06 00 [10:15:53]Write to MH i2c: E2 02 01 99 1B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 DC 39 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D5 05 01 00 35 04 06 00 00 00 E2 [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]OFD Sender: No OFD packet to send [10:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:53]Read from MH i2c: E2 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 03 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 03 00 99 1B 00 90 00 28 [10:15:53]RAPDU: 90 00 [10:15:53]wFMCommunicate OK [10:15:53]wFMCommunicate request_size=11 [10:15:53]MH_SAM_APDU [10:15:53]CAPDU: 80 0D 02 02 06 04 A5 0A 8C BF 6D [10:15:53]Write to MH i2c: E2 0E 00 9A 1B 80 0D 02 02 06 00 04 A5 0A 8C BF 6D 00 00 A6 [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:53]Read from MH i2c: E2 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 03 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 03 00 9A 1B 00 90 00 29 [10:15:53]RAPDU: 90 00 [10:15:53]wFMCommunicate OK [10:15:53]wFMCommunicate request_size=4 [10:15:53]MH_SAM_APDU [10:15:53]CAPDU: 80 0D 03 02 [10:15:53]Write to MH i2c: E2 08 00 9B 1B 80 0D 03 02 00 00 00 00 31 [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:53]Read from MH i2c: E2 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 0B 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 0B 00 9B 1B 00 FA 94 1D 46 72 37 CD 9C 90 00 35 [10:15:53]RAPDU: FA 94 1D 46 72 37 CD 9C 90 00 [10:15:53]wFMCommunicate OK [10:15:53]SAM_PROTO_SignData done [10:15:53]FM_MakeSignedData done [10:15:53]CreateOFDProtocolMessage [10:15:53]wFMCommunicate request_size=4 [10:15:53]MH_SAM_APDU [10:15:53]CAPDU: 80 11 00 00 [10:15:53]Write to MH i2c: E2 08 00 9C 1B 80 11 00 00 00 00 00 00 31 [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:53]Read from MH i2c: E2 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 17 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 17 00 9C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 87 [10:15:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:15:53]wFMCommunicate OK [10:15:53]CreateOFDProtocolMessage done [10:15:53]OFDSenderStorePacket 67029 [10:15:53]StoreOFDPacket docnum=67029 [10:15:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 25 BF 08 01 DB F0 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 24 00 00 00 F4 03 04 00 DC 39 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D5 05 01 00 35 04 06 00 04 A5 0A 8C BF 6D FA 94 1D 46 72 37 CD 9C [10:15:53]CheckFolder [10:15:53]dirname=/storage/ofd_packets [10:15:53]CheckFolder done [10:15:53]ProducePacketName [10:15:53]name=ofd_packets/00067029 [10:15:53]NVStorageSaveData ofd_packets/00067029 [10:15:53]File name is /storage/ofd_packets/00067029 [10:15:53]Write 302 bytes [10:15:53]NVStorageSaveData done [10:15:53]OFDSenderStorePacket done [10:15:53]KKMCreateOFDPacket done [10:15:53]NVStorageSaveData kkm_last_timestamp [10:15:53]File name is /storage/kkm_last_timestamp [10:15:53]Write 4 bytes [10:15:53]NVStorageSaveData done [10:15:53]ExternCall_PrintAddStr [10:15:53]wPrintStart [10:15:53]Write to MH i2c: 01 00 00 9D 1B B8 [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: 01 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: 01 07 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: 01 07 00 9D 1B 00 00 00 00 00 FF 0F CD [10:15:54]RasterBufferAndPrint [10:15:54]line Счет N : (1)506875 [10:15:54]line ИНН: 02508201610067 [10:15:54]line Контрольно-Кассовый Чек [10:15:54]line ПРОДАЖА [10:15:54]line ТРК (МРК, ГНК) : 42 [10:15:54]line Товар: 2710124130 [10:15:54]line Super-92-К-5 [10:15:54]line 10.330 * 67.80 [10:15:54]line = 700.37 [10:15:54]line НДС 12% НСП 1% [10:15:54]line > о реализуемом товаре [10:15:54]line ОКРУГЛЕНИЕ: -0.37 [10:15:54]line ИТОГО: 700.00 [10:15:54]line Внесено: 700.00 [10:15:54]line СДАЧА: 0.00 [10:15:54]line НСП 1% : 6.20 [10:15:54]line НДС 12% : 74.38 [10:15:54]line Наличными: 700.00 [10:15:54]line Безнал.: 0.00 [10:15:54]line Место: АЗС № 91 "Партнер Нефть" [10:15:54]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:15:54]line СНО: Общий режим [10:15:54]line Чек 36 14.05.2024 10:15 [10:15:54]line Смена: 355 ФФД: 1.0 [10:15:54]line ЗНМ: 0300000119 [10:15:54]line РНМ: 0000000000091845 [10:15:54]line Версия ККМ: 001 [10:15:54]line ФМ: 0000000000871829 [10:15:54]line ФД: 67029 [10:15:54]line ФПД: 5106893111149 [10:15:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T101556&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67029&fm=5106893111149&tin=02508201610067®Number=0000000000091845&sum=70000 [10:15:54]OFD Sender: Processing packet 67029 [packets to send 35, broken 34] [10:15:54]ProducePacketName [10:15:54]name=ofd_packets/00067029 [10:15:54]OFD Sender: To server: pG, [10:15:54]CommunicateWithHost lk.salyk.kg:30040 [10:15:54]ConnectInit lk.salyk.kg [10:15:54]written 0, free lines is 4095 [10:15:54]Connected sock=10 [10:15:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 25 BF 08 01 DB F0 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 24 00 00 00 F4 03 04 00 DC 39 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D5 05 01 00 35 04 06 00 04 A5 0A 8C BF 6D FA 94 1D 46 72 37 CD 9C [10:15: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 DF A5 47 00 BB 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D5 05 01 00 F4 03 04 00 BC E1 42 66 B6 04 01 00 00 26 9D B4 DD 44 AF 13 DB [10:15:54]CommunicateWithHost err = 0 [10:15:54]CheckOFDResponse [10:15:54]1017 (14) - 77093643461234 [10:15:54]1041 (16) - 0000000000871829 [10:15:54]1040 (4) - 67029 [10:15:54]1012 (4) - 14.05.2024 03:59 [10:15:54]1206 (1) - 0 [10:15:54]OFD Sender: Remove packet 67029 [10:15:54]ProducePacketName [10:15:54]name=ofd_packets/00067029 [10:15:54]NVStorageDeleteData [10:15:54]Write to MH i2c: 01 00 00 C7 1B E2 [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: 01 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: 01 07 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: 01 07 00 C7 1B 00 00 00 00 00 BE 0C B3 [10:15:54]RasterBufferAndPrint [10:15:54]line [10:15:54]line [10:15:54]line [10:15:54]line [10:15:54]line [10:15:54]written 0, free lines is 3267 [10:15:54]MH_Cut [10:15:54]Write to MH i2c: D1 01 00 CE 1B 01 BB [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: D1 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: D1 01 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: D1 01 00 CE 1B 00 BA [10:15:54]Write to MH i2c: 01 00 00 CF 1B EA [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:55]OFD Sender: No OFD packet to send [10:15:55]*** Cut start [10:15:55]*** Purtial cut [10:15:55]*** Stage 1: CUTSNS_PIN = 1 [10:15:55]Read from MH i2c: 01 [10:15:55]MH_I2C_Read... [10:15:55]*** Stop cut motor [10:15:55]*** Cut end [10:15:55]Read from MH i2c: 01 07 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: 01 07 00 CF 1B 00 00 00 00 00 FF 0F FF [10:15:55]process_action close_receipt done [10:15:55]requested_data is exist [10:15:55]produce_requested_data [10:15:55]requested_item fm.sn is exist - process it [10:15:55]wFMCommunicate request_size=4 [10:15:55]MH_SAM_APDU [10:15:55]CAPDU: 80 11 00 00 [10:15:55]Write to MH i2c: E2 08 00 D0 1B 80 11 00 00 00 00 00 00 65 [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 [10:15:55]MH_I2C_Read... [10:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:55]Read from MH i2c: E2 17 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 17 00 D0 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BB [10:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:15:55]wFMCommunicate OK [10:15:55]requested_item fd.num is exist - process it [10:15:55]SAM_PROTO_GetFieldsCounters [10:15:55]wFMCommunicate request_size=4 [10:15:55]MH_SAM_APDU [10:15:55]CAPDU: 80 13 00 00 [10:15:55]Write to MH i2c: E2 08 00 D1 1B 80 13 00 00 00 00 00 00 68 [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:56]Read from MH i2c: E2 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 62 00 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 62 00 D1 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 D5 05 01 00 0E 04 04 00 63 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 39 [10:15: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 D5 05 01 00 0E 04 04 00 63 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:15:56]wFMCommunicate OK [10:15:56]SAM_PROTO_GetFieldsCounters done [10:15:56]requested_item shift.num is exist - process it [10:15:56]requested_item shift.opened is exist - process it [10:15:56]req_shift_opened [10:15:56]FM_GetShiftState [10:15:56]SAM_PROTO_GetShiftState [10:15:56]wFMCommunicate request_size=4 [10:15:56]MH_SAM_APDU [10:15:56]CAPDU: 80 13 01 00 [10:15:56]Write to MH i2c: E2 08 00 D2 1B 80 13 01 00 00 00 00 00 6A [10:15:56]Write i2c OK [10:15:56]MH_I2C_Read... [10:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:56]Read from MH i2c: E2 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 0E 00 [10:15:56]MH_I2C_Read... [10:15:56]Read from MH i2c: E2 0E 00 D2 1B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 32 [10:15:56]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [10:15:56]wFMCommunicate OK [10:15:56]SAM_PROTO_GetShiftState done [10:15:56]FM_GetShiftState done [10:15:56]req_shift_opened done [10:15:56]requested_item shift.open_date is exist - process it [10:15:56]req_shift_open_date [10:15:56]req_shift_open_date done [10:15:56]produce_requested_data done [10:15:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67029,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [10:15:56]process_action_free close_receipt [10:15:56]json_value_free [10:15:56]json_value_free done [10:15:56]process_json_proto returns [10:15:56]Send response to host [10:15:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67029,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [10:15:56]free response buf [10:15:56]execute_script done [10:15:56]execute_script returns [10:15:56]free content buf [10:15:56]Sock 8.Close socket [10:15:56]Sock 8.Thread stoped [10:16:00]OFD Sender: No OFD packet to send [10:16:05]OFD Sender: No OFD packet to send [10:16:10]OFD Sender: No OFD packet to send [10:16:15]OFD Sender: No OFD packet to send [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:17:00]OFD Sender: No OFD packet to send [10:17:05]OFD Sender: No OFD packet to send [10:17:10]OFD Sender: No OFD packet to send [10:17:15]OFD Sender: No OFD packet to send [10:17:20]OFD Sender: No OFD packet to send [10:17:25]OFD Sender: No OFD packet to send [10:17:30]OFD Sender: No OFD packet to send [10:17:35]OFD Sender: No OFD packet to send [10:17:40]OFD Sender: No OFD packet to send [10:17:44]accept exits with 9 [10:17:44]New connection [10:17:44]New thread 3066760548 created [10:17:44]Thread 3066617188 joined [10:17:44]Waiting for new connection... [10:17:44] Sock 9.Parse request [10:17:44]Sock 9.Check first char [10:17:44]Sock 9.First char is OK [10:17:44]request: POST /json_proto HTTP/1.0 [10:17:44]Method: POST [10:17:44]URL: /json_proto [10:17:44]Method is POST - this is cgi request [10:17:44]url: /json_proto [10:17:44]query_string will be loaded in cgi processing [10:17:44]execute_cgi json_proto POST (null) [10:17:44]execute_cgi path=json_proto method=POST [10:17:44]POST find Content-Length [10:17:44]Host: 172.17.41.195:8080 [10:17:44]Content-Length: 1179 [10:17:44]Content-Type: application/json [10:17:44] [10:17:44]POST finish read [10:17:44]Found Content-Length = 1179 [10:17: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)506876\u000A14.05.2024 10:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:17:44]execute_script... [10:17: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)506876\u000A14.05.2024 10:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:17:44]POST & json_proto [10:17:44]process_json_proto [10:17:44]json parsed OK: [10:17:44]protocol is kg_v1.0 [10:17:44]action value=print_text [10:17:44]process_action print_text [10:17:44]cmd_print_text [10:17:44]ExternCall_PrintAddStr [10:17:44]wPrintStart [10:17:44]Write to MH i2c: 01 00 00 D3 1B EE [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: 01 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: 01 07 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: 01 07 00 D3 1B 00 00 00 00 00 FF 0F 03 [10:17:44]RasterBufferAndPrint [10:17:44]line *****ТОВАРНЫЙ ЧЕК***** [10:17:44]line АЗС-91 [10:17:44]line Партнер нефть [10:17:44]line 02508201610067 [10:17:44]line Кассир : Адишов И. [10:17:44]line Счет N : (1)506876 [10:17:44]line 14.05.2024 10:00 [10:17:44]line ПРОДАЖА [10:17:44]line ТРК (МРК, ГНК): 11 [10:17:44]line Вид ГСМ : 2710194210 [10:17:44]line ДТ-К-5 [10:17:44]line 15.000 x 74.70 [10:17:44]line ИТОГ: 1120.50 [10:17:44]line Тип оплаты: Талоны: Топливная Карта [10:17:44]line 02750 [10:17:44]line ______________________ [10:17:44]line (подпись) [10:17:44]written 0, free lines is 4095 [10:17:44]Write to MH i2c: 01 00 00 E7 1B 02 [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: 01 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: 01 07 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: 01 07 00 E7 1B 00 00 00 00 00 0C 0E 23 [10:17:44]RasterBufferAndPrint [10:17:44]line [10:17:44]line [10:17:44]line [10:17:44]line [10:17:44]line [10:17:44]written 0, free lines is 3597 [10:17:44]MH_Cut [10:17:44]Write to MH i2c: D1 01 00 EE 1B 01 DB [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: D1 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: D1 01 00 [10:17:44]MH_I2C_Read... [10:17:44]Read from MH i2c: D1 01 00 EE 1B 00 DA [10:17:44]Write to MH i2c: 01 00 00 EF 1B 0A [10:17:44]Write i2c OK [10:17:44]MH_I2C_Read... [10:17:45]*** Cut start [10:17:45]*** Purtial cut [10:17:45]*** CUTSNS_PIN = 0 [10:17:45]*** Stage 1: CUTSNS_PIN = 1 [10:17:45]OFD Sender: No OFD packet to send [10:17:47]Read from MH i2c: 01 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: 01 07 00 [10:17:47]MH_I2C_Read... [10:17:47]*** Stop cut motor [10:17:47]*** Cut end [10:17:47]Read from MH i2c: 01 07 00 EF 1B 00 00 00 00 00 FF 0F 1F [10:17:47]process_action print_text done [10:17:47]requested_data is exist [10:17:47]produce_requested_data [10:17:47]requested_item fm.sn is exist - process it [10:17:47]wFMCommunicate request_size=4 [10:17:47]MH_SAM_APDU [10:17:47]CAPDU: 80 11 00 00 [10:17:47]Write to MH i2c: E2 08 00 F0 1B 80 11 00 00 00 00 00 00 85 [10:17:47]Write i2c OK [10:17:47]MH_I2C_Read... [10:17:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:47]Read from MH i2c: E2 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 17 00 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 17 00 F0 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DB [10:17:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:17:47]wFMCommunicate OK [10:17:47]requested_item fd.num is exist - process it [10:17:47]SAM_PROTO_GetFieldsCounters [10:17:47]wFMCommunicate request_size=4 [10:17:47]MH_SAM_APDU [10:17:47]CAPDU: 80 13 00 00 [10:17:47]Write to MH i2c: E2 08 00 F1 1B 80 13 00 00 00 00 00 00 88 [10:17:47]Write i2c OK [10:17:47]MH_I2C_Read... [10:17:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:47]Read from MH i2c: E2 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 62 00 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 62 00 F1 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 D5 05 01 00 0E 04 04 00 63 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 59 [10:17:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D5 05 01 00 0E 04 04 00 63 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:17:47]wFMCommunicate OK [10:17:47]SAM_PROTO_GetFieldsCounters done [10:17:47]requested_item shift.num is exist - process it [10:17:47]requested_item shift.opened is exist - process it [10:17:47]req_shift_opened [10:17:47]FM_GetShiftState [10:17:47]SAM_PROTO_GetShiftState [10:17:47]wFMCommunicate request_size=4 [10:17:47]MH_SAM_APDU [10:17:47]CAPDU: 80 13 01 00 [10:17:47]Write to MH i2c: E2 08 00 F2 1B 80 13 01 00 00 00 00 00 8A [10:17:47]Write i2c OK [10:17:47]MH_I2C_Read... [10:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:47]Read from MH i2c: E2 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 0E 00 [10:17:47]MH_I2C_Read... [10:17:47]Read from MH i2c: E2 0E 00 F2 1B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 52 [10:17:47]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [10:17:47]wFMCommunicate OK [10:17:47]SAM_PROTO_GetShiftState done [10:17:47]FM_GetShiftState done [10:17:47]req_shift_opened done [10:17:47]requested_item shift.open_date is exist - process it [10:17:47]req_shift_open_date [10:17:47]req_shift_open_date done [10:17:47]produce_requested_data done [10:17:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67029,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [10:17:47]process_action_free print_text [10:17:47]json_value_free [10:17:47]json_value_free done [10:17:47]process_json_proto returns [10:17:47]Send response to host [10:17:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67029,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [10:17:47]free response buf [10:17:47]execute_script done [10:17:47]execute_script returns [10:17:47]free content buf [10:17:47]Sock 9.Close socket [10:17:47]Sock 9.Thread stoped [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]OFD Sender: No OFD packet to send [10:18:05]OFD Sender: No OFD packet to send [10:18:10]OFD Sender: No OFD packet to send [10:18:15]OFD Sender: No OFD packet to send [10:18:20]OFD Sender: No OFD packet to send [10:18:25]OFD Sender: No OFD packet to send [10:18:30]OFD Sender: No OFD packet to send [10:18:35]OFD Sender: No OFD packet to send [10:18:40]OFD Sender: No OFD packet to send [10:18:45]OFD Sender: No OFD packet to send [10:18:50]OFD Sender: No OFD packet to send [10:18:55]OFD Sender: No OFD packet to send [10:19:00]OFD Sender: No OFD packet to send [10:19:05]OFD Sender: No OFD packet to send [10:19:10]OFD Sender: No OFD packet to send [10:19:15]OFD Sender: No OFD packet to send [10:19:20]OFD Sender: No OFD packet to send [10:19:25]OFD Sender: No OFD packet to send [10:19:30]OFD Sender: No OFD packet to send [10:19:35]OFD Sender: No OFD packet to send [10:19:40]OFD Sender: No OFD packet to send [10:19:45]OFD Sender: No OFD packet to send [10:19:50]OFD Sender: No OFD packet to send [10:19:55]OFD Sender: No OFD packet to send [10:20:00]OFD Sender: No OFD packet to send [10:20:05]OFD Sender: No OFD packet to send [10:20:10]OFD Sender: No OFD packet to send [10:20:15]OFD Sender: No OFD packet to send [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [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:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:14]accept exits with 8 [10:23:14]New connection [10:23:14]New thread 3066617188 created [10:23:14]Thread 3066760548 joined [10:23:14]Waiting for new connection... [10:23:14] Sock 8.Parse request [10:23:14]Sock 8.Check first char [10:23:14]Sock 8.First char is OK [10:23:14]request: POST /json_proto HTTP/1.0 [10:23:14]Method: POST [10:23:14]URL: /json_proto [10:23:14]Method is POST - this is cgi request [10:23:14]url: /json_proto [10:23:14]query_string will be loaded in cgi processing [10:23:14]execute_cgi json_proto POST (null) [10:23:14]execute_cgi path=json_proto method=POST [10:23:14]POST find Content-Length [10:23:14]Host: 172.17.41.195:8080 [10:23:14]Content-Length: 1179 [10:23:14]Content-Type: application/json [10:23:14] [10:23:14]POST finish read [10:23:14]Found Content-Length = 1179 [10:23:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506877\u000A14.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 30.790 x 74.70\u000A\u0418\u0422\u041E\u0413: 2300.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" ] } } [10:23:14]execute_script... [10:23:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506877\u000A14.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 30.790 x 74.70\u000A\u0418\u0422\u041E\u0413: 2300.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" ] } } [10:23:14]POST & json_proto [10:23:14]process_json_proto [10:23:14]json parsed OK: [10:23:14]protocol is kg_v1.0 [10:23:14]action value=print_text [10:23:14]process_action print_text [10:23:14]cmd_print_text [10:23:14]ExternCall_PrintAddStr [10:23:14]wPrintStart [10:23:14]Write to MH i2c: 01 00 00 F3 1B 0E [10:23:14]Write i2c OK [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: 01 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: 01 07 00 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: 01 07 00 F3 1B 00 00 00 00 00 FF 0F 23 [10:23:14]RasterBufferAndPrint [10:23:14]line *****ТОВАРНЫЙ ЧЕК***** [10:23:14]line АЗС-91 [10:23:14]line Партнер нефть [10:23:14]line 02508201610067 [10:23:14]line Кассир : Адишов И. [10:23:14]line Счет N : (1)506877 [10:23:14]line 14.05.2024 10:05 [10:23:14]line ПРОДАЖА [10:23:14]line ТРК (МРК, ГНК): 41 [10:23:14]line Вид ГСМ : 2710194210 [10:23:14]line ДТ-К-5 [10:23:14]line 30.790 x 74.70 [10:23:14]line ИТОГ: 2300.01 [10:23:14]line Тип оплаты: Талоны: Топливная Карта [10:23:14]line 02750 [10:23:14]line ______________________ [10:23:14]line (подпись) [10:23:14]written 0, free lines is 4095 [10:23:14]Write to MH i2c: 01 00 00 07 1C 23 [10:23:14]Write i2c OK [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: 01 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: 01 07 00 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: 01 07 00 07 1C 00 00 00 00 00 0C 0E 44 [10:23:14]RasterBufferAndPrint [10:23:14]line [10:23:14]line [10:23:14]line [10:23:14]line [10:23:14]line [10:23:14]written 0, free lines is 3598 [10:23:14]MH_Cut [10:23:14]Write to MH i2c: D1 01 00 0E 1C 01 FC [10:23:14]Write i2c OK [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: D1 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: D1 01 00 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: D1 01 00 0E 1C 00 FB [10:23:14]Write to MH i2c: 01 00 00 0F 1C 2B [10:23:14]Write i2c OK [10:23:14]MH_I2C_Read... [10:23:14]*** Cut start [10:23:14]*** Purtial cut [10:23:14]*** Stage 1: CUTSNS_PIN = 1 [10:23:15]Read from MH i2c: 01 [10:23:15]MH_I2C_Read... [10:23:15]*** Stop cut motor [10:23:15]*** Cut end [10:23:15]Read from MH i2c: 01 07 00 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: 01 07 00 0F 1C 00 00 00 00 00 FF 0F 40 [10:23:15]process_action print_text done [10:23:15]requested_data is exist [10:23:15]produce_requested_data [10:23:15]requested_item fm.sn is exist - process it [10:23:15]wFMCommunicate request_size=4 [10:23:15]MH_SAM_APDU [10:23:15]CAPDU: 80 11 00 00 [10:23:15]Write to MH i2c: E2 08 00 10 1C 80 11 00 00 00 00 00 00 A6 [10:23:15]Write i2c OK [10:23:15]MH_I2C_Read... [10:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:15]Read from MH i2c: E2 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: E2 17 00 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: E2 17 00 10 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FC [10:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:23:15]wFMCommunicate OK [10:23:15]requested_item fd.num is exist - process it [10:23:15]SAM_PROTO_GetFieldsCounters [10:23:15]wFMCommunicate request_size=4 [10:23:15]MH_SAM_APDU [10:23:15]CAPDU: 80 13 00 00 [10:23:15]Write to MH i2c: E2 08 00 11 1C 80 13 00 00 00 00 00 00 A9 [10:23:15]Write i2c OK [10:23:15]MH_I2C_Read... [10:23:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:15]Read from MH i2c: E2 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: E2 62 00 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: E2 62 00 11 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 D5 05 01 00 0E 04 04 00 63 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 7A [10:23: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 D5 05 01 00 0E 04 04 00 63 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:23:15]wFMCommunicate OK [10:23:15]SAM_PROTO_GetFieldsCounters done [10:23:15]requested_item shift.num is exist - process it [10:23:15]requested_item shift.opened is exist - process it [10:23:15]req_shift_opened [10:23:15]FM_GetShiftState [10:23:15]SAM_PROTO_GetShiftState [10:23:15]wFMCommunicate request_size=4 [10:23:15]MH_SAM_APDU [10:23:15]CAPDU: 80 13 01 00 [10:23:15]Write to MH i2c: E2 08 00 12 1C 80 13 01 00 00 00 00 00 AB [10:23:15]Write i2c OK [10:23:15]MH_I2C_Read... [10:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:15]Read from MH i2c: E2 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: E2 0E 00 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: E2 0E 00 12 1C 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 73 [10:23:15]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [10:23:15]wFMCommunicate OK [10:23:15]SAM_PROTO_GetShiftState done [10:23:15]FM_GetShiftState done [10:23:15]req_shift_opened done [10:23:15]requested_item shift.open_date is exist - process it [10:23:15]req_shift_open_date [10:23:15]req_shift_open_date done [10:23:15]produce_requested_data done [10:23:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67029,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [10:23:15]process_action_free print_text [10:23:15]json_value_free [10:23:15]json_value_free done [10:23:15]process_json_proto returns [10:23:15]Send response to host [10:23:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67029,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [10:23:15]free response buf [10:23:15]execute_script done [10:23:15]execute_script returns [10:23:15]free content buf [10:23:15]Sock 8.Close socket [10:23:15]Sock 8.Thread stoped [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:44]accept exits with 9 [10:23:44]New connection [10:23:44]New thread 3066760548 created [10:23:44]Thread 3066617188 joined [10:23:44]Waiting for new connection... [10:23:44] Sock 9.Parse request [10:23:44]Sock 9.Check first char [10:23:44]Sock 9.First char is OK [10:23:44]request: POST /json_proto HTTP/1.0 [10:23:44]Method: POST [10:23:44]URL: /json_proto [10:23:44]Method is POST - this is cgi request [10:23:44]url: /json_proto [10:23:44]query_string will be loaded in cgi processing [10:23:44]execute_cgi json_proto POST (null) [10:23:44]execute_cgi path=json_proto method=POST [10:23:44]POST find Content-Length [10:23:44]Host: 172.17.41.195:8080 [10:23:44]Content-Length: 1179 [10:23:44]Content-Type: application/json [10:23:44] [10:23:44]POST finish read [10:23:44]Found Content-Length = 1179 [10:23: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)506878\u000A14.05.2024 10:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:44]execute_script... [10:23: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)506878\u000A14.05.2024 10:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:44]POST & json_proto [10:23:44]process_json_proto [10:23:44]json parsed OK: [10:23:44]protocol is kg_v1.0 [10:23:44]action value=print_text [10:23:44]process_action print_text [10:23:44]cmd_print_text [10:23:44]ExternCall_PrintAddStr [10:23:44]wPrintStart [10:23:44]Write to MH i2c: 01 00 00 13 1C 2F [10:23:44]Write i2c OK [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: 01 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: 01 07 00 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: 01 07 00 13 1C 00 00 00 00 00 FF 0F 44 [10:23:44]RasterBufferAndPrint [10:23:44]line *****ТОВАРНЫЙ ЧЕК***** [10:23:44]line АЗС-91 [10:23:44]line Партнер нефть [10:23:44]line 02508201610067 [10:23:44]line Кассир : Адишов И. [10:23:44]line Счет N : (1)506878 [10:23:44]line 14.05.2024 10:06 [10:23:44]line ПРОДАЖА [10:23:44]line ТРК (МРК, ГНК): 11 [10:23:44]line Вид ГСМ : 2710194210 [10:23:44]line ДТ-К-5 [10:23:44]line 13.390 x 74.70 [10:23:44]line ИТОГ: 1000.23 [10:23:44]line Тип оплаты: Талоны: Топливная Карта [10:23:44]line 02750 [10:23:44]line ______________________ [10:23:44]line (подпись) [10:23:44]written 0, free lines is 4095 [10:23:44]Write to MH i2c: 01 00 00 27 1C 43 [10:23:44]Write i2c OK [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: 01 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: 01 07 00 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: 01 07 00 27 1C 00 00 00 00 00 0D 0E 65 [10:23:44]RasterBufferAndPrint [10:23:44]line [10:23:44]line [10:23:44]line [10:23:44]line [10:23:44]line [10:23:44]written 0, free lines is 3598 [10:23:44]MH_Cut [10:23:44]Write to MH i2c: D1 01 00 2E 1C 01 1C [10:23:44]Write i2c OK [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: D1 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: D1 01 00 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: D1 01 00 2E 1C 00 1B [10:23:44]Write to MH i2c: 01 00 00 2F 1C 4B [10:23:44]Write i2c OK [10:23:44]MH_I2C_Read... [10:23:44]*** Cut start [10:23:44]*** Purtial cut [10:23:44]*** CUTSNS_PIN = 0 [10:23:45]*** Stage 1: CUTSNS_PIN = 1 [10:23:45]OFD Sender: No OFD packet to send [10:23:46]Read from MH i2c: 01 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: 01 07 00 [10:23:46]MH_I2C_Read... [10:23:46]*** Stop cut motor [10:23:46]*** Cut end [10:23:46]Read from MH i2c: 01 07 00 2F 1C 00 00 00 00 00 FF 0F 60 [10:23:46]process_action print_text done [10:23:46]requested_data is exist [10:23:46]produce_requested_data [10:23:46]requested_item fm.sn is exist - process it [10:23:46]wFMCommunicate request_size=4 [10:23:46]MH_SAM_APDU [10:23:46]CAPDU: 80 11 00 00 [10:23:46]Write to MH i2c: E2 08 00 30 1C 80 11 00 00 00 00 00 00 C6 [10:23:46]Write i2c OK [10:23:46]MH_I2C_Read... [10:23:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:46]Read from MH i2c: E2 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: E2 17 00 [10:23:46]MH_I2C_Read... [10:23:46]Read from MH i2c: E2 17 00 30 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1C [10:23:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:23:46]wFMCommunicate OK [10:23:46]requested_item fd.num is exist - process it [10:23:46]SAM_PROTO_GetFieldsCounters [10:23:46]wFMCommunicate request_size=4 [10:23:46]MH_SAM_APDU [10:23:46]CAPDU: 80 13 00 00 [10:23:46]Write to MH i2c: E2 08 00 31 1C 80 13 00 00 00 00 00 00 C9 [10:23:47]Write i2c OK [10:23:47]MH_I2C_Read... [10:23:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:47]Read from MH i2c: E2 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 62 00 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 62 00 31 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 D5 05 01 00 0E 04 04 00 63 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 9A [10:23:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D5 05 01 00 0E 04 04 00 63 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:23:47]wFMCommunicate OK [10:23:47]SAM_PROTO_GetFieldsCounters done [10:23:47]requested_item shift.num is exist - process it [10:23:47]requested_item shift.opened is exist - process it [10:23:47]req_shift_opened [10:23:47]FM_GetShiftState [10:23:47]SAM_PROTO_GetShiftState [10:23:47]wFMCommunicate request_size=4 [10:23:47]MH_SAM_APDU [10:23:47]CAPDU: 80 13 01 00 [10:23:47]Write to MH i2c: E2 08 00 32 1C 80 13 01 00 00 00 00 00 CB [10:23:47]Write i2c OK [10:23:47]MH_I2C_Read... [10:23:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:47]Read from MH i2c: E2 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 0E 00 [10:23:47]MH_I2C_Read... [10:23:47]Read from MH i2c: E2 0E 00 32 1C 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 93 [10:23:47]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [10:23:47]wFMCommunicate OK [10:23:47]SAM_PROTO_GetShiftState done [10:23:47]FM_GetShiftState done [10:23:47]req_shift_opened done [10:23:47]requested_item shift.open_date is exist - process it [10:23:47]req_shift_open_date [10:23:47]req_shift_open_date done [10:23:47]produce_requested_data done [10:23:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67029,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [10:23:47]process_action_free print_text [10:23:47]json_value_free [10:23:47]json_value_free done [10:23:47]process_json_proto returns [10:23:47]Send response to host [10:23:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67029,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [10:23:47]free response buf [10:23:47]execute_script done [10:23:47]execute_script returns [10:23:47]free content buf [10:23:47]Sock 9.Close socket [10:23:47]Sock 9.Thread stoped [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]accept exits with 8 [10:24:10]New connection [10:24:10]New thread 3066617188 created [10:24:10]Thread 3066760548 joined [10:24:10]Waiting for new connection... [10:24:10] Sock 8.Parse request [10:24:10]Sock 8.Check first char [10:24:10]Sock 8.First char is OK [10:24:10]request: POST /json_proto HTTP/1.0 [10:24:10]Method: POST [10:24:10]URL: /json_proto [10:24:10]Method is POST - this is cgi request [10:24:10]url: /json_proto [10:24:10]query_string will be loaded in cgi processing [10:24:10]execute_cgi json_proto POST (null) [10:24:10]execute_cgi path=json_proto method=POST [10:24:10]POST find Content-Length [10:24:10]Host: 172.17.41.195:8080 [10:24:10]Content-Length: 1178 [10:24:10]Content-Type: application/json [10:24:10] [10:24:10]POST finish read [10:24:10]Found Content-Length = 1178 [10:24: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)506879\u000A14.05.2024 10:06\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 10.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 747.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:10]execute_script... [10:24: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)506879\u000A14.05.2024 10:06\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 10.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 747.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:10]POST & json_proto [10:24:10]process_json_proto [10:24:10]json parsed OK: [10:24:10]protocol is kg_v1.0 [10:24:10]action value=print_text [10:24:10]process_action print_text [10:24:10]cmd_print_text [10:24:10]ExternCall_PrintAddStr [10:24:10]wPrintStart [10:24:10]Write to MH i2c: 01 00 00 33 1C 4F [10:24:10]Write i2c OK [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: 01 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: 01 07 00 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: 01 07 00 33 1C 00 00 00 00 00 FF 0F 64 [10:24:10]RasterBufferAndPrint [10:24:10]line *****ТОВАРНЫЙ ЧЕК***** [10:24:10]line АЗС-91 [10:24:10]line Партнер нефть [10:24:10]line 02508201610067 [10:24:10]line Кассир : Адишов И. [10:24:10]line Счет N : (1)506879 [10:24:10]line 14.05.2024 10:06 [10:24:10]line ПРОДАЖА [10:24:10]line ТРК (МРК, ГНК): 31 [10:24:10]line Вид ГСМ : 2710194210 [10:24:10]line ДТ-К-5 [10:24:10]line 10.000 x 74.70 [10:24:10]line ИТОГ: 747.00 [10:24:10]line Тип оплаты: Талоны: Топливная Карта [10:24:10]line 02750 [10:24:10]line ______________________ [10:24:10]line (подпись) [10:24:10]written 0, free lines is 4095 [10:24:10]Write to MH i2c: 01 00 00 47 1C 63 [10:24:10]Write i2c OK [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: 01 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: 01 07 00 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: 01 07 00 47 1C 00 00 00 00 00 0C 0E 84 [10:24:10]RasterBufferAndPrint [10:24:10]line [10:24:10]line [10:24:10]line [10:24:10]line [10:24:10]line [10:24:10]written 0, free lines is 3597 [10:24:10]MH_Cut [10:24:10]Write to MH i2c: D1 01 00 4E 1C 01 3C [10:24:10]Write i2c OK [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: D1 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: D1 01 00 [10:24:10]MH_I2C_Read... [10:24:10]Read from MH i2c: D1 01 00 4E 1C 00 3B [10:24:10]Write to MH i2c: 01 00 00 4F 1C 6B [10:24:10]Write i2c OK [10:24:10]MH_I2C_Read... [10:24:10]OFD Sender: No OFD packet to send [10:24:10]*** Cut start [10:24:10]*** Purtial cut [10:24:10]*** Stage 1: CUTSNS_PIN = 1 [10:24:11]Read from MH i2c: 01 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: 01 07 00 [10:24:11]MH_I2C_Read... [10:24:11]*** Stop cut motor [10:24:11]*** Cut end [10:24:11]Read from MH i2c: 01 07 00 4F 1C 00 00 00 00 00 FF 0F 80 [10:24:11]process_action print_text done [10:24:11]requested_data is exist [10:24:11]produce_requested_data [10:24:11]requested_item fm.sn is exist - process it [10:24:11]wFMCommunicate request_size=4 [10:24:11]MH_SAM_APDU [10:24:11]CAPDU: 80 11 00 00 [10:24:11]Write to MH i2c: E2 08 00 50 1C 80 11 00 00 00 00 00 00 E6 [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 17 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 17 00 50 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3C [10:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:24:11]wFMCommunicate OK [10:24:11]requested_item fd.num is exist - process it [10:24:11]SAM_PROTO_GetFieldsCounters [10:24:11]wFMCommunicate request_size=4 [10:24:11]MH_SAM_APDU [10:24:11]CAPDU: 80 13 00 00 [10:24:11]Write to MH i2c: E2 08 00 51 1C 80 13 00 00 00 00 00 00 E9 [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 62 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 62 00 51 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 D5 05 01 00 0E 04 04 00 63 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 BA [10:24: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 D5 05 01 00 0E 04 04 00 63 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:24:11]wFMCommunicate OK [10:24:11]SAM_PROTO_GetFieldsCounters done [10:24:11]requested_item shift.num is exist - process it [10:24:11]requested_item shift.opened is exist - process it [10:24:11]req_shift_opened [10:24:11]FM_GetShiftState [10:24:11]SAM_PROTO_GetShiftState [10:24:11]wFMCommunicate request_size=4 [10:24:11]MH_SAM_APDU [10:24:11]CAPDU: 80 13 01 00 [10:24:11]Write to MH i2c: E2 08 00 52 1C 80 13 01 00 00 00 00 00 EB [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:11]Read from MH i2c: E2 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 0E 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: E2 0E 00 52 1C 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 B3 [10:24:11]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [10:24:11]wFMCommunicate OK [10:24:11]SAM_PROTO_GetShiftState done [10:24:11]FM_GetShiftState done [10:24:11]req_shift_opened done [10:24:11]requested_item shift.open_date is exist - process it [10:24:11]req_shift_open_date [10:24:11]req_shift_open_date done [10:24:11]produce_requested_data done [10:24:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67029,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [10:24:11]process_action_free print_text [10:24:11]json_value_free [10:24:11]json_value_free done [10:24:11]process_json_proto returns [10:24:11]Send response to host [10:24:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67029,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [10:24:11]free response buf [10:24:11]execute_script done [10:24:11]execute_script returns [10:24:11]free content buf [10:24:11]Sock 8.Close socket [10:24:11]Sock 8.Thread stoped [10:24:11]int [10:24:11]Write to MH i2c: 01 00 00 53 1C 6F [10:24:11]*** FLAG_PRN_PAP1 set [10:24:11]Write i2c OK [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: 01 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: 01 07 00 [10:24:11]MH_I2C_Read... [10:24:11]Read from MH i2c: 01 07 00 53 1C 00 01 00 00 00 FF 0F 85 [10:24:11]state=0 [10:24:11]No paper [10:24:12]int [10:24:12]Write to MH i2c: 01 00 00 54 1C 70 [10:24:12]*** FLAG_PRN_PAP2 set [10:24:12]Write i2c OK [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: 01 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: 01 07 00 [10:24:12]MH_I2C_Read... [10:24:12]Read from MH i2c: 01 07 00 54 1C 00 03 00 00 00 FF 0F 88 [10:24:12]state=0 [10:24:12]No paper [10:24:12]Cover opened [10:24:15]OFD Sender: No OFD packet to send [10:24:17]Write to MH i2c: 01 00 00 55 1C 71 [10:24:17]Write i2c OK [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: 01 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: 01 07 00 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: 01 07 00 55 1C 00 03 00 00 00 FF 0F 89 [10:24:17]state=3 [10:24:17]No paper [10:24:17]Cover opened [10:24:18]int [10:24:18]Write to MH i2c: 01 00 00 56 1C 72 [10:24:18]Write i2c OK [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: 01 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: 01 07 00 [10:24:18]MH_I2C_Read... [10:24:18]*** FLAG_PRN_PAP2 reset [10:24:18]*** FLAG_PRN_PAP1 reset [10:24:18]Read from MH i2c: 01 07 00 56 1C 00 00 00 00 00 FF 0F 87 [10:24:18]state=3 [10:24:18]Cover closed [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:35]OFD Sender: No OFD packet to send [10:24:40]OFD Sender: No OFD packet to send [10:24:45]OFD Sender: No OFD packet to send [10:24:50]OFD Sender: No OFD packet to send [10:24:55]OFD Sender: No OFD packet to send [10:25:00]OFD Sender: No OFD packet to send [10:25:05]OFD Sender: No OFD packet to send [10:25:10]OFD Sender: No OFD packet to send [10:25:15]OFD Sender: No OFD packet to send [10:25:20]OFD Sender: No OFD packet to send [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:27:00]OFD Sender: No OFD packet to send [10:27:05]OFD Sender: No OFD packet to send [10:27:10]OFD Sender: No OFD packet to send [10:27:15]OFD Sender: No OFD packet to send [10:27:20]OFD Sender: No OFD packet to send [10:27:25]OFD Sender: No OFD packet to send [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:45]OFD Sender: No OFD packet to send [10:27:50]OFD Sender: No OFD packet to send [10:27:55]OFD Sender: No OFD packet to send [10:28:00]OFD Sender: No OFD packet to send [10:28:05]OFD Sender: No OFD packet to send [10:28:10]OFD Sender: No OFD packet to send [10:28:15]OFD Sender: No OFD packet to send [10:28:20]OFD Sender: No OFD packet to send [10:28:25]OFD Sender: No OFD packet to send [10:28:30]OFD Sender: No OFD packet to send [10:28:35]OFD Sender: No OFD packet to send [10:28:40]OFD Sender: No OFD packet to send [10:28:45]OFD Sender: No OFD packet to send [10:28:50]OFD Sender: No OFD packet to send [10:28:55]OFD Sender: No OFD packet to send [10:29:00]OFD Sender: No OFD packet to send [10:29:05]OFD Sender: No OFD packet to send [10:29:10]OFD Sender: No OFD packet to send [10:29:15]OFD Sender: No OFD packet to send [10:29:20]OFD Sender: No OFD packet to send [10:29:25]OFD Sender: No OFD packet to send [10:29:27]accept exits with 9 [10:29:27]New connection [10:29:27]New thread 3066760548 created [10:29:27]Thread 3066617188 joined [10:29:27]Waiting for new connection... [10:29:27] Sock 9.Parse request [10:29:27]Sock 9.Check first char [10:29:27]Sock 9.First char is OK [10:29:27]request: POST /json_proto HTTP/1.0 [10:29:27]Method: POST [10:29:27]URL: /json_proto [10:29:27]Method is POST - this is cgi request [10:29:27]url: /json_proto [10:29:27]query_string will be loaded in cgi processing [10:29:27]execute_cgi json_proto POST (null) [10:29:27]execute_cgi path=json_proto method=POST [10:29:27]POST find Content-Length [10:29:27]Host: 172.17.41.195:8080 [10:29:27]Content-Length: 1179 [10:29:27]Content-Type: application/json [10:29:27] [10:29:27]POST finish read [10:29:27]Found Content-Length = 1179 [10:29: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)506880\u000A14.05.2024 10: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 25.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1867.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:27]execute_script... [10:29: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)506880\u000A14.05.2024 10: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 25.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1867.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:27]POST & json_proto [10:29:27]process_json_proto [10:29:27]json parsed OK: [10:29:27]protocol is kg_v1.0 [10:29:27]action value=print_text [10:29:27]process_action print_text [10:29:27]cmd_print_text [10:29:27]ExternCall_PrintAddStr [10:29:27]wPrintStart [10:29:27]Write to MH i2c: 01 00 00 57 1C 73 [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: 01 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: 01 07 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: 01 07 00 57 1C 00 00 00 00 00 FF 0F 88 [10:29:27]RasterBufferAndPrint [10:29:27]line *****ТОВАРНЫЙ ЧЕК***** [10:29:27]line АЗС-91 [10:29:27]line Партнер нефть [10:29:27]line 02508201610067 [10:29:27]line Кассир : Адишов И. [10:29:27]line Счет N : (1)506880 [10:29:27]line 14.05.2024 10:12 [10:29:27]line ПРОДАЖА [10:29:27]line ТРК (МРК, ГНК): 11 [10:29:27]line Вид ГСМ : 2710194210 [10:29:27]line ДТ-К-5 [10:29:27]line 25.000 x 74.70 [10:29:27]line ИТОГ: 1867.50 [10:29:27]line Тип оплаты: Талоны: Топливная Карта [10:29:27]line 02750 [10:29:27]line ______________________ [10:29:27]line (подпись) [10:29:27]written 0, free lines is 4095 [10:29:27]Write to MH i2c: 01 00 00 6B 1C 87 [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: 01 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: 01 07 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: 01 07 00 6B 1C 00 00 00 00 00 0D 0E A9 [10:29:27]RasterBufferAndPrint [10:29:27]line [10:29:27]line [10:29:27]line [10:29:27]line [10:29:27]line [10:29:27]written 0, free lines is 3598 [10:29:27]MH_Cut [10:29:27]Write to MH i2c: D1 01 00 72 1C 01 60 [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: D1 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: D1 01 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: D1 01 00 72 1C 00 5F [10:29:27]Write to MH i2c: 01 00 00 73 1C 8F [10:29:27]Write i2c OK [10:29:27]MH_I2C_Read... [10:29:28]*** Cut start [10:29:28]*** Purtial cut [10:29:28]*** CUTSNS_PIN = 0 [10:29:28]*** Stage 1: CUTSNS_PIN = 1 [10:29:30]Read from MH i2c: 01 [10:29:30]MH_I2C_Read... [10:29:30]*** Stop cut motor [10:29:30]*** Cut end [10:29:30]Read from MH i2c: 01 07 00 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: 01 07 00 73 1C 00 00 00 00 00 FF 0F A4 [10:29:30]process_action print_text done [10:29:30]requested_data is exist [10:29:30]produce_requested_data [10:29:30]requested_item fm.sn is exist - process it [10:29:30]wFMCommunicate request_size=4 [10:29:30]MH_SAM_APDU [10:29:30]CAPDU: 80 11 00 00 [10:29:30]Write to MH i2c: E2 08 00 74 1C 80 11 00 00 00 00 00 00 0A [10:29:30]Write i2c OK [10:29:30]MH_I2C_Read... [10:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:30]Read from MH i2c: E2 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: E2 17 00 [10:29:30]MH_I2C_Read... [10:29:30]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 [10:29: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:29:30]wFMCommunicate OK [10:29:30]requested_item fd.num is exist - process it [10:29:30]SAM_PROTO_GetFieldsCounters [10:29:30]wFMCommunicate request_size=4 [10:29:30]MH_SAM_APDU [10:29:30]CAPDU: 80 13 00 00 [10:29:30]Write to MH i2c: E2 08 00 75 1C 80 13 00 00 00 00 00 00 0D [10:29:30]Write i2c OK [10:29:30]MH_I2C_Read... [10:29:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:30]Read from MH i2c: E2 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: E2 62 00 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: E2 62 00 75 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 D5 05 01 00 0E 04 04 00 63 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 DE [10:29: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 D5 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:30]wFMCommunicate OK [10:29:30]SAM_PROTO_GetFieldsCounters done [10:29:30]requested_item shift.num is exist - process it [10:29:30]requested_item shift.opened is exist - process it [10:29:30]req_shift_opened [10:29:30]FM_GetShiftState [10:29:30]SAM_PROTO_GetShiftState [10:29:30]wFMCommunicate request_size=4 [10:29:30]MH_SAM_APDU [10:29:30]CAPDU: 80 13 01 00 [10:29:30]Write to MH i2c: E2 08 00 76 1C 80 13 01 00 00 00 00 00 0F [10:29:30]Write i2c OK [10:29:30]MH_I2C_Read... [10:29:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:30]Read from MH i2c: E2 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: E2 0E 00 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: E2 0E 00 76 1C 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D7 [10:29:30]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [10:29:30]wFMCommunicate OK [10:29:30]SAM_PROTO_GetShiftState done [10:29:30]FM_GetShiftState done [10:29:30]req_shift_opened done [10:29:30]requested_item shift.open_date is exist - process it [10:29:30]req_shift_open_date [10:29:30]req_shift_open_date done [10:29:30]produce_requested_data done [10:29:30]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67029,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [10:29:30]process_action_free print_text [10:29:30]json_value_free [10:29:30]json_value_free done [10:29:30]process_json_proto returns [10:29:30]Send response to host [10:29:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67029,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [10:29:30]free response buf [10:29:30]execute_script done [10:29:30]execute_script returns [10:29:30]free content buf [10:29:30]Sock 9.Close socket [10:29:30]Sock 9.Thread stoped [10:29:30]OFD Sender: No OFD packet to send [10:29:31]accept exits with 8 [10:29:31]New connection [10:29:31]New thread 3066617188 created [10:29:31]Thread 3066760548 joined [10:29:31]Waiting for new connection... [10:29:31] Sock 8.Parse request [10:29:31]Sock 8.Check first char [10:29:31]Sock 8.First char is OK [10:29:31]request: POST /json_proto HTTP/1.0 [10:29:31]Method: POST [10:29:31]URL: /json_proto [10:29:31]Method is POST - this is cgi request [10:29:31]url: /json_proto [10:29:31]query_string will be loaded in cgi processing [10:29:31]execute_cgi json_proto POST (null) [10:29:31]execute_cgi path=json_proto method=POST [10:29:31]POST find Content-Length [10:29:31]Host: 172.17.41.195:8080 [10:29:31]Content-Length: 654 [10:29:31]Content-Type: application/json [10:29:31] [10:29:31]POST finish read [10:29:31]Found Content-Length = 654 [10:29:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12046", "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" ] } } [10:29:31]execute_script... [10:29:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12046", "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" ] } } [10:29:31]POST & json_proto [10:29:31]process_json_proto [10:29:31]json parsed OK: [10:29:31]protocol is kg_v1.0 [10:29:31]action value=close_receipt [10:29:31]process_action close_receipt [10:29:31]cmd_close_receipt [10:29:31]MH_GetDate [10:29:31]Write to MH i2c: F0 00 00 77 1C 82 [10:29:31]Write i2c OK [10:29:31]MH_I2C_Read... [10:29:31]Read from MH i2c: F0 [10:29:31]MH_I2C_Read... [10:29:31]Read from MH i2c: F0 09 00 [10:29:31]MH_I2C_Read... [10:29:31]Read from MH i2c: F0 09 00 77 1C 00 0F 3D 43 66 FC 21 6F 64 70 [10:29:31]GetLastDocTimeStamp 1715681756 [10:29:31]current date 1715682575 [10:29:31]FM_GetShiftState [10:29:31]SAM_PROTO_GetShiftState [10:29:31]wFMCommunicate request_size=4 [10:29:31]MH_SAM_APDU [10:29:31]CAPDU: 80 13 01 00 [10:29:31]Write to MH i2c: E2 08 00 78 1C 80 13 01 00 00 00 00 00 11 [10:29:31]Write i2c OK [10:29:31]MH_I2C_Read... [10:29:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:31]Read from MH i2c: E2 [10:29:31]MH_I2C_Read... [10:29:31]Read from MH i2c: E2 0E 00 [10:29:31]MH_I2C_Read... [10:29:31]Read from MH i2c: E2 0E 00 78 1C 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D9 [10:29:31]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [10:29:31]wFMCommunicate OK [10:29:31]SAM_PROTO_GetShiftState done [10:29:31]FM_GetShiftState done [10:29:31]opened in 1715646054 [10:29:31]opened+sec_in_day 1715732454 [10:29:31]quantity*price = 4500 [10:29:31]sum+1 = 4501 [10:29:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 37 14.05.2024 10:29 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67030 ФПД: 203499629989629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T102935&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67030&fm=203499629989629&tin=02508201610067®Number=0000000000091845&sum=4500 0 [10:29:32]StoreToDocumentArchive [10:29:32]shift 355 fd 67030 [10:29:32]save to /storage/0355/doc_00067030 [10:29:32]save last doc name /storage/0355/doc_00067030 to /storage/kkm_last_doc_name [10:29:32]save OK [10:29:32]Clear old archive folders... [10:29:32]ProcessDocumentItem done err = 0, tmpTLVsize=282 [10:29:32]tlvbuf is 003755D0 [10:29:32]SAM_PROTO_ClearQueue [10:29:32]wFMCommunicate request_size=4 [10:29:32]MH_SAM_APDU [10:29:32]CAPDU: 80 09 00 00 [10:29:32]Write to MH i2c: E2 08 00 85 1C 80 09 00 00 00 00 00 00 13 [10:29:32]Write i2c OK [10:29:32]MH_I2C_Read... [10:29:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:33]Read from MH i2c: E2 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 03 00 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 03 00 85 1C 00 90 00 15 [10:29:33]RAPDU: 90 00 [10:29:33]wFMCommunicate OK [10:29:33]SAM_PROTO_ClearQueue done [10:29:33]KKMCreateOFDPacket [10:29:33]OFDProtocolAddRootSTLVToBuf [10:29:33]FM_MakeSignedData [10:29:33]FM_MakeSignedData [10:29:33]SAM_PROTO_SignData [10:29:33]wFMCommunicate request_size=4 [10:29:33]MH_SAM_APDU [10:29:33]CAPDU: 80 0D 01 02 [10:29:33]Write to MH i2c: E2 08 00 86 1C 80 0D 01 02 00 00 00 00 1B [10:29:33]Write i2c OK [10:29:33]MH_I2C_Read... [10:29:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:33]Read from MH i2c: E2 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 03 00 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 03 00 86 1C 00 90 00 16 [10:29:33]RAPDU: 90 00 [10:29:33]wFMCommunicate OK [10:29:33]wFMCommunicate request_size=255 [10:29:33]MH_SAM_APDU [10:29:33]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 25 00 00 00 F4 03 04 00 0F 3D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 [10:29:33]Write to MH i2c: E2 02 01 87 1C 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 25 00 00 00 F4 03 04 00 0F 3D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 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 80 [10:29:33]Write i2c OK [10:29:33]MH_I2C_Read... [10:29:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:33]Read from MH i2c: E2 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 03 00 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 03 00 87 1C 00 90 00 17 [10:29:33]RAPDU: 90 00 [10:29:33]wFMCommunicate OK [10:29:33]wFMCommunicate request_size=41 [10:29:33]MH_SAM_APDU [10:29:33]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 D6 05 01 00 35 04 06 00 B9 14 F3 28 4E FD [10:29:33]Write to MH i2c: E2 2C 00 88 1C 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 D6 05 01 00 35 04 06 00 B9 14 F3 28 4E FD 00 00 FF [10:29:33]Write i2c OK [10:29:33]MH_I2C_Read... [10:29:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:33]Read from MH i2c: E2 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 03 00 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 03 00 88 1C 00 90 00 18 [10:29:33]RAPDU: 90 00 [10:29:33]wFMCommunicate OK [10:29:33]wFMCommunicate request_size=4 [10:29:33]MH_SAM_APDU [10:29:33]CAPDU: 80 0D 03 02 [10:29:33]Write to MH i2c: E2 08 00 89 1C 80 0D 03 02 00 00 00 00 20 [10:29:33]Write i2c OK [10:29:33]MH_I2C_Read... [10:29:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:33]Read from MH i2c: E2 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 0B 00 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 0B 00 89 1C 00 5D 6F D6 B4 80 38 B4 BF 90 00 A2 [10:29:33]RAPDU: 5D 6F D6 B4 80 38 B4 BF 90 00 [10:29:33]wFMCommunicate OK [10:29:33]SAM_PROTO_SignData done [10:29:33]FM_MakeSignedData done [10:29:33]CreateOFDProtocolMessage [10:29:33]wFMCommunicate request_size=4 [10:29:33]MH_SAM_APDU [10:29:33]CAPDU: 80 11 00 00 [10:29:33]Write to MH i2c: E2 08 00 8A 1C 80 11 00 00 00 00 00 00 20 [10:29:33]Write i2c OK [10:29:33]MH_I2C_Read... [10:29:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:33]Read from MH i2c: E2 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 17 00 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: E2 17 00 8A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 76 [10:29: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:29:33]wFMCommunicate OK [10:29:33]CreateOFDProtocolMessage done [10:29:33]OFDSenderStorePacket 67030 [10:29:33]StoreOFDPacket docnum=67030 [10:29: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 2E 01 00 00 9E E4 26 01 1A C9 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 25 00 00 00 F4 03 04 00 0F 3D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D6 05 01 00 35 04 06 00 B9 14 F3 28 4E FD 5D 6F D6 B4 80 38 B4 BF [10:29:33]CheckFolder [10:29:33]dirname=/storage/ofd_packets [10:29:33]CheckFolder done [10:29:33]ProducePacketName [10:29:33]name=ofd_packets/00067030 [10:29:33]NVStorageSaveData ofd_packets/00067030 [10:29:33]File name is /storage/ofd_packets/00067030 [10:29:33]Write 332 bytes [10:29:33]NVStorageSaveData done [10:29:33]OFDSenderStorePacket done [10:29:33]KKMCreateOFDPacket done [10:29:33]NVStorageSaveData kkm_last_timestamp [10:29:33]File name is /storage/kkm_last_timestamp [10:29:33]Write 4 bytes [10:29:33]NVStorageSaveData done [10:29:33]ExternCall_PrintAddStr [10:29:33]wPrintStart [10:29:33]Write to MH i2c: 01 00 00 8B 1C A7 [10:29:33]Write i2c OK [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: 01 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: 01 07 00 [10:29:33]MH_I2C_Read... [10:29:33]Read from MH i2c: 01 07 00 8B 1C 00 00 00 00 00 FF 0F BC [10:29:33]RasterBufferAndPrint [10:29:33]line Счет N : (3)12046 [10:29:33]line ИНН: 02508201610067 [10:29:33]line Контрольно-Кассовый Чек [10:29:33]line ПРОДАЖА [10:29:33]line Товар: 4870001159955 [10:29:33]line Вода ASU пит н.газ ПЭТ 1л [10:29:33]line 1.000 * 45.00 [10:29:33]line = 45.00 [10:29:33]line НДС 12% НСП 1% [10:29:33]line > о реализуемом товаре [10:29:33]line ИТОГО: 45.00 [10:29:33]line НСП 1% : 0.40 [10:29:33]line НДС 12% : 4.78 [10:29:33]line Наличными: 45.00 [10:29:33]line Безнал.: 0.00 [10:29:33]line Место: АЗС № 91 "Партнер Нефть" [10:29:33]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:29:33]line СНО: Общий режим [10:29:33]line Чек 37 14.05.2024 10:29 [10:29:33]line Смена: 355 ФФД: 1.0 [10:29:33]line ЗНМ: 0300000119 [10:29:33]line РНМ: 0000000000091845 [10:29:33]line Версия ККМ: 001 [10:29:33]line ФМ: 0000000000871829 [10:29:33]line ФД: 67030 [10:29:33]line ФПД: 203499629989629 [10:29:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T102935&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67030&fm=203499629989629&tin=02508201610067®Number=0000000000091845&sum=4500 [10:29:33]line 0 [10:29:33]OFD Sender: Processing packet 67030 [packets to send 35, broken 34] [10:29:33]ProducePacketName [10:29:33]name=ofd_packets/00067030 [10:29:33]OFD Sender: To server: pG, [10:29:33]CommunicateWithHost lk.salyk.kg:30040 [10:29:33]ConnectInit lk.salyk.kg [10:29:33]written 0, free lines is 4095 [10:29:33]Connected sock=10 [10:29: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 2E 01 00 00 9E E4 26 01 1A C9 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 25 00 00 00 F4 03 04 00 0F 3D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D6 05 01 00 35 04 06 00 B9 14 F3 28 4E FD 5D 6F D6 B4 80 38 B4 BF [10:29: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 88 E5 47 00 E3 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 D6 05 01 00 F4 03 04 00 EF E4 42 66 B6 04 01 00 00 5A 9F CD 9C 96 2D C8 51 [10:29:34]CommunicateWithHost err = 0 [10:29:34]CheckOFDResponse [10:29:34]1017 (14) - 77093643461234 [10:29:34]1041 (16) - 0000000000871829 [10:29:34]1040 (4) - 67030 [10:29:34]1012 (4) - 14.05.2024 04:13 [10:29:34]1206 (1) - 0 [10:29:34]OFD Sender: Remove packet 67030 [10:29:34]ProducePacketName [10:29:34]name=ofd_packets/00067030 [10:29:34]NVStorageDeleteData [10:29:34]Write to MH i2c: 01 00 00 B2 1C CE [10:29:34]Write i2c OK [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: 01 [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: 01 07 00 [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: 01 07 00 B2 1C 00 00 00 00 00 EC 0C CD [10:29:34]RasterBufferAndPrint [10:29:34]line [10:29:34]line [10:29:34]line [10:29:34]line [10:29:34]line [10:29:34]written 0, free lines is 3314 [10:29:34]MH_Cut [10:29:34]Write to MH i2c: D1 01 00 B9 1C 01 A7 [10:29:34]Write i2c OK [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: D1 [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: D1 01 00 [10:29:34]MH_I2C_Read... [10:29:34]Read from MH i2c: D1 01 00 B9 1C 00 A6 [10:29:34]Write to MH i2c: 01 00 00 BA 1C D6 [10:29:34]Write i2c OK [10:29:34]MH_I2C_Read... [10:29:34]OFD Sender: No OFD packet to send [10:29:35]*** Cut start [10:29:35]*** Purtial cut [10:29:35]*** Stage 1: CUTSNS_PIN = 1 [10:29:35]Read from MH i2c: 01 [10:29:35]MH_I2C_Read... [10:29:35]*** Stop cut motor [10:29:35]*** Cut end [10:29:35]Read from MH i2c: 01 07 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: 01 07 00 BA 1C 00 00 00 00 00 FF 0F EB [10:29:35]process_action close_receipt done [10:29:35]requested_data is exist [10:29:35]produce_requested_data [10:29:35]requested_item fm.sn is exist - process it [10:29:35]wFMCommunicate request_size=4 [10:29:35]MH_SAM_APDU [10:29:35]CAPDU: 80 11 00 00 [10:29:35]Write to MH i2c: E2 08 00 BB 1C 80 11 00 00 00 00 00 00 51 [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:35]Read from MH i2c: E2 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 17 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 17 00 BB 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A7 [10:29:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:29:35]wFMCommunicate OK [10:29:35]requested_item fd.num is exist - process it [10:29:35]SAM_PROTO_GetFieldsCounters [10:29:35]wFMCommunicate request_size=4 [10:29:35]MH_SAM_APDU [10:29:35]CAPDU: 80 13 00 00 [10:29:35]Write to MH i2c: E2 08 00 BC 1C 80 13 00 00 00 00 00 00 54 [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:35]Read from MH i2c: E2 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 62 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 62 00 BC 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 D6 05 01 00 0E 04 04 00 63 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 29 [10:29: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 D6 05 01 00 0E 04 04 00 63 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:29:35]wFMCommunicate OK [10:29:35]SAM_PROTO_GetFieldsCounters done [10:29:35]requested_item shift.num is exist - process it [10:29:35]requested_item shift.opened is exist - process it [10:29:35]req_shift_opened [10:29:35]FM_GetShiftState [10:29:35]SAM_PROTO_GetShiftState [10:29:35]wFMCommunicate request_size=4 [10:29:35]MH_SAM_APDU [10:29:35]CAPDU: 80 13 01 00 [10:29:35]Write to MH i2c: E2 08 00 BD 1C 80 13 01 00 00 00 00 00 56 [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 [10:29:35]MH_I2C_Read... [10:29:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:35]Read from MH i2c: E2 0E 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: E2 0E 00 BD 1C 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 1E [10:29:35]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [10:29:35]wFMCommunicate OK [10:29:35]SAM_PROTO_GetShiftState done [10:29:35]FM_GetShiftState done [10:29:35]req_shift_opened done [10:29:35]requested_item shift.open_date is exist - process it [10:29:35]req_shift_open_date [10:29:35]req_shift_open_date done [10:29:35]produce_requested_data done [10:29:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67030,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [10:29:35]process_action_free close_receipt [10:29:35]json_value_free [10:29:35]json_value_free done [10:29:35]process_json_proto returns [10:29:35]Send response to host [10:29:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67030,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [10:29:35]free response buf [10:29:35]execute_script done [10:29:35]execute_script returns [10:29:35]free content buf [10:29:35]Sock 8.Close socket [10:29:35]Sock 8.Thread stoped [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:08]accept exits with 9 [10:30:08]New connection [10:30:08]New thread 3066760548 created [10:30:08]Thread 3066617188 joined [10:30:08]Waiting for new connection... [10:30:08] Sock 9.Parse request [10:30:08]Sock 9.Check first char [10:30:08]Sock 9.First char is OK [10:30:08]request: POST /json_proto HTTP/1.0 [10:30:08]Method: POST [10:30:08]URL: /json_proto [10:30:08]Method is POST - this is cgi request [10:30:08]url: /json_proto [10:30:08]query_string will be loaded in cgi processing [10:30:08]execute_cgi json_proto POST (null) [10:30:08]execute_cgi path=json_proto method=POST [10:30:08]POST find Content-Length [10:30:08]Host: 172.17.41.195:8080 [10:30:08]Content-Length: 1179 [10:30:08]Content-Type: application/json [10:30:08] [10:30:08]POST finish read [10:30:08]Found Content-Length = 1179 [10:30: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)506881\u000A14.05.2024 10:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:30:08]execute_script... [10:30: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)506881\u000A14.05.2024 10:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:30:08]POST & json_proto [10:30:08]process_json_proto [10:30:08]json parsed OK: [10:30:08]protocol is kg_v1.0 [10:30:08]action value=print_text [10:30:08]process_action print_text [10:30:08]cmd_print_text [10:30:08]ExternCall_PrintAddStr [10:30:08]wPrintStart [10:30:08]Write to MH i2c: 01 00 00 BE 1C DA [10:30:08]Write i2c OK [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: 01 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: 01 07 00 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: 01 07 00 BE 1C 00 00 00 00 00 FF 0F EF [10:30:08]RasterBufferAndPrint [10:30:08]line *****ТОВАРНЫЙ ЧЕК***** [10:30:08]line АЗС-91 [10:30:08]line Партнер нефть [10:30:08]line 02508201610067 [10:30:08]line Кассир : Адишов И. [10:30:08]line Счет N : (1)506881 [10:30:08]line 14.05.2024 10:12 [10:30:08]line ПРОДАЖА [10:30:08]line ТРК (МРК, ГНК): 21 [10:30:08]line Вид ГСМ : 2710194210 [10:30:08]line ДТ-К-5 [10:30:08]line 15.000 x 74.70 [10:30:08]line ИТОГ: 1120.50 [10:30:08]line Тип оплаты: Талоны: Топливная Карта [10:30:08]line 02750 [10:30:08]line ______________________ [10:30:08]line (подпись) [10:30:08]written 0, free lines is 4095 [10:30:08]Write to MH i2c: 01 00 00 D2 1C EE [10:30:08]Write i2c OK [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: 01 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: 01 07 00 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: 01 07 00 D2 1C 00 00 00 00 00 0C 0E 0F [10:30:08]RasterBufferAndPrint [10:30:08]line [10:30:08]line [10:30:08]line [10:30:08]line [10:30:08]line [10:30:08]written 0, free lines is 3598 [10:30:08]MH_Cut [10:30:08]Write to MH i2c: D1 01 00 D9 1C 01 C7 [10:30:08]Write i2c OK [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: D1 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: D1 01 00 [10:30:08]MH_I2C_Read... [10:30:08]Read from MH i2c: D1 01 00 D9 1C 00 C6 [10:30:08]Write to MH i2c: 01 00 00 DA 1C F6 [10:30:08]Write i2c OK [10:30:08]MH_I2C_Read... [10:30:09]*** Cut start [10:30:09]*** Purtial cut [10:30:09]*** CUTSNS_PIN = 0 [10:30:09]*** Stage 1: CUTSNS_PIN = 1 [10:30:09]OFD Sender: No OFD packet to send [10:30:11]Read from MH i2c: 01 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: 01 07 00 [10:30:11]MH_I2C_Read... [10:30:11]*** Stop cut motor [10:30:11]*** Cut end [10:30:11]Read from MH i2c: 01 07 00 DA 1C 00 00 00 00 00 FF 0F 0B [10:30:11]process_action print_text done [10:30:11]requested_data is exist [10:30:11]produce_requested_data [10:30:11]requested_item fm.sn is exist - process it [10:30:11]wFMCommunicate request_size=4 [10:30:11]MH_SAM_APDU [10:30:11]CAPDU: 80 11 00 00 [10:30:11]Write to MH i2c: E2 08 00 DB 1C 80 11 00 00 00 00 00 00 71 [10:30:11]Write i2c OK [10:30:11]MH_I2C_Read... [10:30:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:11]Read from MH i2c: E2 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: E2 17 00 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: E2 17 00 DB 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C7 [10: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 [10:30:11]wFMCommunicate OK [10:30:11]requested_item fd.num is exist - process it [10:30:11]SAM_PROTO_GetFieldsCounters [10:30:11]wFMCommunicate request_size=4 [10:30:11]MH_SAM_APDU [10:30:11]CAPDU: 80 13 00 00 [10:30:11]Write to MH i2c: E2 08 00 DC 1C 80 13 00 00 00 00 00 00 74 [10:30:11]Write i2c OK [10:30:11]MH_I2C_Read... [10:30:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:11]Read from MH i2c: E2 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: E2 62 00 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: E2 62 00 DC 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 D6 05 01 00 0E 04 04 00 63 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 49 [10:30:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D6 05 01 00 0E 04 04 00 63 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:30:11]wFMCommunicate OK [10:30:11]SAM_PROTO_GetFieldsCounters done [10:30:11]requested_item shift.num is exist - process it [10:30:11]requested_item shift.opened is exist - process it [10:30:11]req_shift_opened [10:30:11]FM_GetShiftState [10:30:11]SAM_PROTO_GetShiftState [10:30:11]wFMCommunicate request_size=4 [10:30:11]MH_SAM_APDU [10:30:11]CAPDU: 80 13 01 00 [10:30:11]Write to MH i2c: E2 08 00 DD 1C 80 13 01 00 00 00 00 00 76 [10:30:11]Write i2c OK [10:30:11]MH_I2C_Read... [10:30:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:11]Read from MH i2c: E2 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: E2 0E 00 [10:30:11]MH_I2C_Read... [10:30:11]Read from MH i2c: E2 0E 00 DD 1C 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 3E [10:30:11]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [10:30:11]wFMCommunicate OK [10:30:11]SAM_PROTO_GetShiftState done [10:30:11]FM_GetShiftState done [10:30:11]req_shift_opened done [10:30:11]requested_item shift.open_date is exist - process it [10:30:11]req_shift_open_date [10:30:11]req_shift_open_date done [10:30:11]produce_requested_data done [10:30:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67030,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [10:30:11]process_action_free print_text [10:30:11]json_value_free [10:30:11]json_value_free done [10:30:11]process_json_proto returns [10:30:11]Send response to host [10:30:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67030,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [10:30:11]free response buf [10:30:11]execute_script done [10:30:11]execute_script returns [10:30:11]free content buf [10:30:11]Sock 9.Close socket [10:30:11]Sock 9.Thread stoped [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:50]accept exits with 8 [10:31:50]New connection [10:31:50]New thread 3066617188 created [10:31:50]Thread 3066760548 joined [10:31:50]Waiting for new connection... [10:31:50] Sock 8.Parse request [10:31:50]Sock 8.Check first char [10:31:50]Sock 8.First char is OK [10:31:50]request: POST /json_proto HTTP/1.0 [10:31:50]Method: POST [10:31:50]URL: /json_proto [10:31:50]Method is POST - this is cgi request [10:31:50]url: /json_proto [10:31:50]query_string will be loaded in cgi processing [10:31:50]execute_cgi json_proto POST (null) [10:31:50]execute_cgi path=json_proto method=POST [10:31:50]POST find Content-Length [10:31:50]Host: 172.17.41.195:8080 [10:31:50]Content-Length: 1187 [10:31:50]Content-Type: application/json [10:31:50] [10:31:50]POST finish read [10:31:50]Found Content-Length = 1187 [10:31:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506882\u000A14.05.2024 10:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3735.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3972721\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:50]execute_script... [10:31:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506882\u000A14.05.2024 10:14\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3735.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3972721\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:50]POST & json_proto [10:31:50]process_json_proto [10:31:50]json parsed OK: [10:31:50]protocol is kg_v1.0 [10:31:50]action value=print_text [10:31:50]process_action print_text [10:31:50]cmd_print_text [10:31:50]ExternCall_PrintAddStr [10:31:50]wPrintStart [10:31:50]Write to MH i2c: 01 00 00 DE 1C FA [10:31:50]Write i2c OK [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: 01 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: 01 07 00 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: 01 07 00 DE 1C 00 00 00 00 00 FF 0F 0F [10:31:50]RasterBufferAndPrint [10:31:50]line *****ТОВАРНЫЙ ЧЕК***** [10:31:50]line АЗС-91 [10:31:50]line Партнер нефть [10:31:50]line 02508201610067 [10:31:50]line Кассир : Адишов И. [10:31:50]line Счет N : (1)506882 [10:31:50]line 14.05.2024 10:14 [10:31:50]line ПРОДАЖА [10:31:50]line ТРК (МРК, ГНК): 31 [10:31:50]line Вид ГСМ : 2710194210 [10:31:50]line ДТ-К-5 [10:31:50]line 50.000 x 74.70 [10:31:50]line ИТОГ: 3735.00 [10:31:50]line Тип оплаты: Талоны: Топливные Талоны [10:31:50]line 3972721 [10:31:50]line ______________________ [10:31:50]line (подпись) [10:31:50]written 0, free lines is 4095 [10:31:50]Write to MH i2c: 01 00 00 F2 1C 0E [10:31:50]Write i2c OK [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: 01 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: 01 07 00 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: 01 07 00 F2 1C 00 00 00 00 00 0E 0E 31 [10:31:50]RasterBufferAndPrint [10:31:50]line [10:31:50]line [10:31:50]line [10:31:50]line [10:31:50]line [10:31:50]written 0, free lines is 3599 [10:31:50]MH_Cut [10:31:50]Write to MH i2c: D1 01 00 F9 1C 01 E7 [10:31:50]Write i2c OK [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: D1 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: D1 01 00 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: D1 01 00 F9 1C 00 E6 [10:31:50]Write to MH i2c: 01 00 00 FA 1C 16 [10:31:50]Write i2c OK [10:31:50]MH_I2C_Read... [10:31:51]*** Cut start [10:31:51]*** Purtial cut [10:31:51]*** Stage 1: CUTSNS_PIN = 1 [10:31:51]Read from MH i2c: 01 [10:31:51]MH_I2C_Read... [10:31:51]*** Stop cut motor [10:31:51]*** Cut end [10:31:51]Read from MH i2c: 01 07 00 [10:31:51]MH_I2C_Read... [10:31:51]Read from MH i2c: 01 07 00 FA 1C 00 00 00 00 00 FF 0F 2B [10:31:51]process_action print_text done [10:31:51]requested_data is exist [10:31:51]produce_requested_data [10:31:51]requested_item fm.sn is exist - process it [10:31:51]wFMCommunicate request_size=4 [10:31:51]MH_SAM_APDU [10:31:51]CAPDU: 80 11 00 00 [10:31:51]Write to MH i2c: E2 08 00 FB 1C 80 11 00 00 00 00 00 00 91 [10:31:51]Write i2c OK [10:31:51]MH_I2C_Read... [10:31:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:51]Read from MH i2c: E2 [10:31:51]MH_I2C_Read... [10:31:51]Read from MH i2c: E2 17 00 [10:31:51]MH_I2C_Read... [10:31:51]Read from MH i2c: E2 17 00 FB 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E7 [10:31:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:31:51]wFMCommunicate OK [10:31:51]requested_item fd.num is exist - process it [10:31:51]SAM_PROTO_GetFieldsCounters [10:31:51]wFMCommunicate request_size=4 [10:31:51]MH_SAM_APDU [10:31:51]CAPDU: 80 13 00 00 [10:31:51]Write to MH i2c: E2 08 00 FC 1C 80 13 00 00 00 00 00 00 94 [10:31:51]Write i2c OK [10:31:51]MH_I2C_Read... [10:31:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:51]Read from MH i2c: E2 [10:31:51]MH_I2C_Read... [10:31:51]Read from MH i2c: E2 62 00 [10:31:51]MH_I2C_Read... [10:31:51]Read from MH i2c: E2 62 00 FC 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 D6 05 01 00 0E 04 04 00 63 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 69 [10:31:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D6 05 01 00 0E 04 04 00 63 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:31:51]wFMCommunicate OK [10:31:51]SAM_PROTO_GetFieldsCounters done [10:31:51]requested_item shift.num is exist - process it [10:31:51]requested_item shift.opened is exist - process it [10:31:51]req_shift_opened [10:31:51]FM_GetShiftState [10:31:51]SAM_PROTO_GetShiftState [10:31:51]wFMCommunicate request_size=4 [10:31:51]MH_SAM_APDU [10:31:51]CAPDU: 80 13 01 00 [10:31:51]Write to MH i2c: E2 08 00 FD 1C 80 13 01 00 00 00 00 00 96 [10:31:51]Write i2c OK [10:31:51]MH_I2C_Read... [10:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:51]Read from MH i2c: E2 [10:31:51]MH_I2C_Read... [10:31:51]Read from MH i2c: E2 0E 00 [10:31:51]MH_I2C_Read... [10:31:51]Read from MH i2c: E2 0E 00 FD 1C 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 5E [10:31:51]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [10:31:51]wFMCommunicate OK [10:31:51]SAM_PROTO_GetShiftState done [10:31:51]FM_GetShiftState done [10:31:51]req_shift_opened done [10:31:51]requested_item shift.open_date is exist - process it [10:31:51]req_shift_open_date [10:31:51]req_shift_open_date done [10:31:51]produce_requested_data done [10:31:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67030,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [10:31:51]process_action_free print_text [10:31:51]json_value_free [10:31:51]json_value_free done [10:31:51]process_json_proto returns [10:31:51]Send response to host [10:31:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67030,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [10:31:51]free response buf [10:31:51]execute_script done [10:31:51]execute_script returns [10:31:51]free content buf [10:31:51]Sock 8.Close socket [10:31:51]Sock 8.Thread stoped [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:45]accept exits with 9 [10:32:45]New connection [10:32:45]New thread 3066760548 created [10:32:45]Thread 3066617188 joined [10:32:45]Waiting for new connection... [10:32:45] Sock 9.Parse request [10:32:45]Sock 9.Check first char [10:32:45]Sock 9.First char is OK [10:32:45]request: POST /json_proto HTTP/1.0 [10:32:45]Method: POST [10:32:45]URL: /json_proto [10:32:45]Method is POST - this is cgi request [10:32:45]url: /json_proto [10:32:45]query_string will be loaded in cgi processing [10:32:45]execute_cgi json_proto POST (null) [10:32:45]execute_cgi path=json_proto method=POST [10:32:45]POST find Content-Length [10:32:45]Host: 172.17.41.195:8080 [10:32:45]Content-Length: 674 [10:32:45]Content-Type: application/json [10:32:45] [10:32:45]POST finish read [10:32:45]Found Content-Length = 674 [10:32:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506883", "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" : 2.950, "sum" : 220.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:45]execute_script... [10:32: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)506883", "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" : 2.950, "sum" : 220.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:45]POST & json_proto [10:32:45]process_json_proto [10:32:45]json parsed OK: [10:32:45]protocol is kg_v1.0 [10:32:45]action value=close_receipt [10:32:45]process_action close_receipt [10:32:45]cmd_close_receipt [10:32:45]MH_GetDate [10:32:45]Write to MH i2c: F0 00 00 FE 1C 09 [10:32:45]Write i2c OK [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: F0 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: F0 09 00 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: F0 09 00 FE 1C 00 D1 3D 43 66 FC 21 6F 64 B9 [10:32:45]GetLastDocTimeStamp 1715682575 [10:32:45]current date 1715682769 [10:32:45]FM_GetShiftState [10:32:45]SAM_PROTO_GetShiftState [10:32:45]wFMCommunicate request_size=4 [10:32:45]MH_SAM_APDU [10:32:45]CAPDU: 80 13 01 00 [10:32:45]Write to MH i2c: E2 08 00 FF 1C 80 13 01 00 00 00 00 00 98 [10:32:45]Write i2c OK [10:32:45]MH_I2C_Read... [10:32:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:45]Read from MH i2c: E2 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 0E 00 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 0E 00 FF 1C 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 60 [10:32:45]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [10:32:45]wFMCommunicate OK [10:32:45]SAM_PROTO_GetShiftState done [10:32:45]FM_GetShiftState done [10:32:45]opened in 1715646054 [10:32:45]opened+sec_in_day 1715732454 [10:32:45]quantity*price = 22036 [10:32:45]sum+1 = 22038 [10:32:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.40 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 38 14.05.2024 10:32 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67031 ФПД: 44895525677243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T103249&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67031&fm=44895525677243&tin=02508201610067®Number=0000000000091845&sum=22000 [10:32:46]StoreToDocumentArchive [10:32:46]shift 355 fd 67031 [10:32:46]save to /storage/0355/doc_00067031 [10:32:46]save last doc name /storage/0355/doc_00067031 to /storage/kkm_last_doc_name [10:32:46]save OK [10:32:46]Clear old archive folders... [10:32:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:32:46]tlvbuf is 00364CF0 [10:32:46]SAM_PROTO_ClearQueue [10:32:46]wFMCommunicate request_size=4 [10:32:46]MH_SAM_APDU [10:32:46]CAPDU: 80 09 00 00 [10:32:46]Write to MH i2c: E2 08 00 0C 1D 80 09 00 00 00 00 00 00 9B [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:46]Read from MH i2c: E2 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 0C 1D 00 90 00 9D [10:32:46]RAPDU: 90 00 [10:32:46]wFMCommunicate OK [10:32:46]SAM_PROTO_ClearQueue done [10:32:46]KKMCreateOFDPacket [10:32:46]OFDProtocolAddRootSTLVToBuf [10:32:46]FM_MakeSignedData [10:32:46]FM_MakeSignedData [10:32:46]SAM_PROTO_SignData [10:32:46]wFMCommunicate request_size=4 [10:32:46]MH_SAM_APDU [10:32:46]CAPDU: 80 0D 01 02 [10:32:46]Write to MH i2c: E2 08 00 0D 1D 80 0D 01 02 00 00 00 00 A3 [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:46]Read from MH i2c: E2 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 0D 1D 00 90 00 9E [10:32:46]RAPDU: 90 00 [10:32:46]wFMCommunicate OK [10:32:46]wFMCommunicate request_size=255 [10:32:46]MH_SAM_APDU [10:32: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 86 0B 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 15 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 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 D1 3D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D7 05 01 00 35 04 06 00 28 D5 0D DC [10:32:46]Write to MH i2c: E2 02 01 0E 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 15 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 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 D1 3D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D7 05 01 00 35 04 06 00 28 D5 0D DC 00 00 CA [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:47]Read from MH i2c: E2 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: E2 03 00 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: E2 03 00 0E 1D 00 90 00 9F [10:32:47]RAPDU: 90 00 [10:32:47]wFMCommunicate OK [10:32:47]wFMCommunicate request_size=7 [10:32:47]MH_SAM_APDU [10:32:47]CAPDU: 80 0D 02 02 02 28 BB [10:32:47]Write to MH i2c: E2 0A 00 0F 1D 80 0D 02 02 02 00 28 BB 00 00 8D [10:32:47]Write i2c OK [10:32:47]MH_I2C_Read... [10:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:47]Read from MH i2c: E2 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: E2 03 00 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: E2 03 00 0F 1D 00 90 00 A0 [10:32:47]RAPDU: 90 00 [10:32:47]wFMCommunicate OK [10:32:47]wFMCommunicate request_size=4 [10:32:47]MH_SAM_APDU [10:32:47]CAPDU: 80 0D 03 02 [10:32:47]Write to MH i2c: E2 08 00 10 1D 80 0D 03 02 00 00 00 00 A8 [10:32:47]Write i2c OK [10:32:47]MH_I2C_Read... [10:32:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:47]Read from MH i2c: E2 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: E2 0B 00 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: E2 0B 00 10 1D 00 2D 8B 9F AD FD ED AC 2A 90 00 6D [10:32:47]RAPDU: 2D 8B 9F AD FD ED AC 2A 90 00 [10:32:47]wFMCommunicate OK [10:32:47]SAM_PROTO_SignData done [10:32:47]FM_MakeSignedData done [10:32:47]CreateOFDProtocolMessage [10:32:47]wFMCommunicate request_size=4 [10:32:47]MH_SAM_APDU [10:32:47]CAPDU: 80 11 00 00 [10:32:47]Write to MH i2c: E2 08 00 11 1D 80 11 00 00 00 00 00 00 A8 [10:32:47]Write i2c OK [10:32:47]MH_I2C_Read... [10:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:47]Read from MH i2c: E2 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: E2 17 00 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: E2 17 00 11 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FE [10:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:32:47]wFMCommunicate OK [10:32:47]CreateOFDProtocolMessage done [10:32:47]OFDSenderStorePacket 67031 [10:32:47]StoreOFDPacket docnum=67031 [10:32:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 5D B1 04 01 92 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 15 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 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 D1 3D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D7 05 01 00 35 04 06 00 28 D5 0D DC 28 BB 2D 8B 9F AD FD ED AC 2A [10:32:47]CheckFolder [10:32:47]dirname=/storage/ofd_packets [10:32:47]CheckFolder done [10:32:47]ProducePacketName [10:32:47]name=ofd_packets/00067031 [10:32:47]NVStorageSaveData ofd_packets/00067031 [10:32:47]File name is /storage/ofd_packets/00067031 [10:32:47]Write 298 bytes [10:32:47]NVStorageSaveData done [10:32:47]OFDSenderStorePacket done [10:32:47]KKMCreateOFDPacket done [10:32:47]NVStorageSaveData kkm_last_timestamp [10:32:47]File name is /storage/kkm_last_timestamp [10:32:47]Write 4 bytes [10:32:47]NVStorageSaveData done [10:32:47]ExternCall_PrintAddStr [10:32:47]wPrintStart [10:32:47]Write to MH i2c: 01 00 00 12 1D 2F [10:32:47]Write i2c OK [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: 01 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: 01 07 00 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: 01 07 00 12 1D 00 00 00 00 00 FF 0F 44 [10:32:47]RasterBufferAndPrint [10:32:47]line Счет N : (1)506883 [10:32:47]line ИНН: 02508201610067 [10:32:47]line Контрольно-Кассовый Чек [10:32:47]line ПРОДАЖА [10:32:47]line ТРК (МРК, ГНК) : 31 [10:32:47]line Товар: 2710194210 [10:32:47]line ДТ-К-5 [10:32:47]line 2.950 * 74.70 [10:32:47]line = 220.37 [10:32:47]line НДС 12% НСП 1% [10:32:47]line > о реализуемом товаре [10:32:47]line ОКРУГЛЕНИЕ: -0.37 [10:32:47]line ИТОГО: 220.00 [10:32:47]line Внесено: 220.00 [10:32:47]line СДАЧА: 0.00 [10:32:47]line НСП 1% : 1.95 [10:32:47]line НДС 12% : 23.40 [10:32:47]line Наличными: 220.00 [10:32:47]line Безнал.: 0.00 [10:32:47]line Место: АЗС № 91 "Партнер Нефть" [10:32:47]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:32:47]line СНО: Общий режим [10:32:47]line Чек 38 14.05.2024 10:32 [10:32:47]line Смена: 355 ФФД: 1.0 [10:32:47]line ЗНМ: 0300000119 [10:32:47]line РНМ: 0000000000091845 [10:32:47]line Версия ККМ: 001 [10:32:47]line ФМ: 0000000000871829 [10:32:47]line ФД: 67031 [10:32:47]line ФПД: 44895525677243 [10:32:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T103249&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67031&fm=44895525677243&tin=02508201610067®Number=0000000000091845&sum=22000 [10:32:47]OFD Sender: Processing packet 67031 [packets to send 35, broken 34] [10:32:47]ProducePacketName [10:32:47]name=ofd_packets/00067031 [10:32:47]OFD Sender: To server: pG, [10:32:47]CommunicateWithHost lk.salyk.kg:30040 [10:32:47]ConnectInit lk.salyk.kg [10:32:47]written 0, free lines is 4095 [10:32:47]Connected sock=8 [10:32: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 5D B1 04 01 92 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 15 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 09 00 00 00 00 07 04 06 00 F0 55 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 D1 3D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D7 05 01 00 35 04 06 00 28 D5 0D DC 28 BB 2D 8B 9F AD FD ED AC 2A [10:32: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 48 38 47 00 44 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D7 05 01 00 F4 03 04 00 B1 E5 42 66 B6 04 01 00 00 DB F3 E4 9A 28 4D FE 8D [10:32:47]CommunicateWithHost err = 0 [10:32:47]CheckOFDResponse [10:32:47]1017 (14) - 77093643461234 [10:32:47]1041 (16) - 0000000000871829 [10:32:47]1040 (4) - 67031 [10:32:47]1012 (4) - 14.05.2024 04:16 [10:32:47]1206 (1) - 0 [10:32:47]OFD Sender: Remove packet 67031 [10:32:47]ProducePacketName [10:32:47]name=ofd_packets/00067031 [10:32:47]NVStorageDeleteData [10:32:48]Write to MH i2c: 01 00 00 3C 1D 59 [10:32:48]Write i2c OK [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: 01 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: 01 07 00 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: 01 07 00 3C 1D 00 00 00 00 00 C9 0C 35 [10:32:48]RasterBufferAndPrint [10:32:48]line [10:32:48]line [10:32:48]line [10:32:48]line [10:32:48]line [10:32:48]written 0, free lines is 3282 [10:32:48]MH_Cut [10:32:48]Write to MH i2c: D1 01 00 43 1D 01 32 [10:32:48]Write i2c OK [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: D1 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: D1 01 00 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: D1 01 00 43 1D 00 31 [10:32:48]Write to MH i2c: 01 00 00 44 1D 61 [10:32:48]Write i2c OK [10:32:48]MH_I2C_Read... [10:32:48]OFD Sender: No OFD packet to send [10:32:48]*** Cut start [10:32:48]*** Purtial cut [10:32:48]*** CUTSNS_PIN = 0 [10:32:49]*** Stage 1: CUTSNS_PIN = 1 [10:32:50]Read from MH i2c: 01 [10:32:50]MH_I2C_Read... [10:32:50]*** Stop cut motor [10:32:50]*** Cut end [10:32:50]Read from MH i2c: 01 07 00 [10:32:50]MH_I2C_Read... [10:32:50]Read from MH i2c: 01 07 00 44 1D 00 00 00 00 00 FF 0F 76 [10:32:50]process_action close_receipt done [10:32:50]requested_data is exist [10:32:50]produce_requested_data [10:32:50]requested_item fm.sn is exist - process it [10:32:50]wFMCommunicate request_size=4 [10:32:50]MH_SAM_APDU [10:32:50]CAPDU: 80 11 00 00 [10:32:50]Write to MH i2c: E2 08 00 45 1D 80 11 00 00 00 00 00 00 DC [10:32:50]Write i2c OK [10:32:50]MH_I2C_Read... [10:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:50]Read from MH i2c: E2 [10:32:50]MH_I2C_Read... [10:32:50]Read from MH i2c: E2 17 00 [10:32:50]MH_I2C_Read... [10:32:50]Read from MH i2c: E2 17 00 45 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 32 [10:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:32:50]wFMCommunicate OK [10:32:50]requested_item fd.num is exist - process it [10:32:50]SAM_PROTO_GetFieldsCounters [10:32:50]wFMCommunicate request_size=4 [10:32:50]MH_SAM_APDU [10:32:50]CAPDU: 80 13 00 00 [10:32:50]Write to MH i2c: E2 08 00 46 1D 80 13 00 00 00 00 00 00 DF [10:32:50]Write i2c OK [10:32:50]MH_I2C_Read... [10:32:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:51]Read from MH i2c: E2 [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: E2 62 00 [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: E2 62 00 46 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 D7 05 01 00 0E 04 04 00 63 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 B8 [10:32: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 D7 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:51]wFMCommunicate OK [10:32:51]SAM_PROTO_GetFieldsCounters done [10:32:51]requested_item shift.num is exist - process it [10:32:51]requested_item shift.opened is exist - process it [10:32:51]req_shift_opened [10:32:51]FM_GetShiftState [10:32:51]SAM_PROTO_GetShiftState [10:32:51]wFMCommunicate request_size=4 [10:32:51]MH_SAM_APDU [10:32:51]CAPDU: 80 13 01 00 [10:32:51]Write to MH i2c: E2 08 00 47 1D 80 13 01 00 00 00 00 00 E1 [10:32:51]Write i2c OK [10:32:51]MH_I2C_Read... [10:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:51]Read from MH i2c: E2 [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: E2 0E 00 [10:32:51]MH_I2C_Read... [10:32:51]Read from MH i2c: E2 0E 00 47 1D 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A9 [10:32:51]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [10:32:51]wFMCommunicate OK [10:32:51]SAM_PROTO_GetShiftState done [10:32:51]FM_GetShiftState done [10:32:51]req_shift_opened done [10:32:51]requested_item shift.open_date is exist - process it [10:32:51]req_shift_open_date [10:32:51]req_shift_open_date done [10:32:51]produce_requested_data done [10:32:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67031,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [10:32:51]process_action_free close_receipt [10:32:51]json_value_free [10:32:51]json_value_free done [10:32:51]process_json_proto returns [10:32:51]Send response to host [10:32:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67031,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [10:32:51]free response buf [10:32:51]execute_script done [10:32:51]execute_script returns [10:32:51]free content buf [10:32:51]Sock 9.Close socket [10:32:51]Sock 9.Thread stoped [10:32:53]OFD Sender: No OFD packet to send [10:32:58]OFD Sender: No OFD packet to send [10:33:03]OFD Sender: No OFD packet to send [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:08]OFD Sender: No OFD packet to send [10:37:13]OFD Sender: No OFD packet to send [10:37:18]OFD Sender: No OFD packet to send [10:37:23]OFD Sender: No OFD packet to send [10:37:28]OFD Sender: No OFD packet to send [10:37:33]OFD Sender: No OFD packet to send [10:37:38]OFD Sender: No OFD packet to send [10:37:43]OFD Sender: No OFD packet to send [10:37:48]OFD Sender: No OFD packet to send [10:37:53]OFD Sender: No OFD packet to send [10:37:58]OFD Sender: No OFD packet to send [10:38:03]OFD Sender: No OFD packet to send [10:38:06]accept exits with 10 [10:38:06]New connection [10:38:06]New thread 3066617188 created [10:38:06]Thread 3066760548 joined [10:38:06]Waiting for new connection... [10:38:06] Sock 10.Parse request [10:38:06]Sock 10.Check first char [10:38:06]Sock 10.First char is OK [10:38:06]request: POST /json_proto HTTP/1.0 [10:38:06]Method: POST [10:38:06]URL: /json_proto [10:38:06]Method is POST - this is cgi request [10:38:06]url: /json_proto [10:38:06]query_string will be loaded in cgi processing [10:38:06]execute_cgi json_proto POST (null) [10:38:06]execute_cgi path=json_proto method=POST [10:38:06]POST find Content-Length [10:38:06]Host: 172.17.41.195:8080 [10:38:06]Content-Length: 1182 [10:38:06]Content-Type: application/json [10:38:06] [10:38:06]POST finish read [10:38:06]Found Content-Length = 1182 [10:38: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)506884\u000A14.05.2024 10:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1336.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02707\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:06]execute_script... [10:38: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)506884\u000A14.05.2024 10:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1336.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02707\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:06]POST & json_proto [10:38:06]process_json_proto [10:38:06]json parsed OK: [10:38:06]protocol is kg_v1.0 [10:38:06]action value=print_text [10:38:06]process_action print_text [10:38:06]cmd_print_text [10:38:06]ExternCall_PrintAddStr [10:38:06]wPrintStart [10:38:06]Write to MH i2c: 01 00 00 48 1D 65 [10:38:06]Write i2c OK [10:38:06]MH_I2C_Read... [10:38:06]Read from MH i2c: 01 [10:38:06]MH_I2C_Read... [10:38:06]Read from MH i2c: 01 07 00 [10:38:06]MH_I2C_Read... [10:38:06]Read from MH i2c: 01 07 00 48 1D 00 00 00 00 00 FF 0F 7A [10:38:06]RasterBufferAndPrint [10:38:06]line *****ТОВАРНЫЙ ЧЕК***** [10:38:06]line АЗС-91 [10:38:06]line Партнер нефть [10:38:06]line 02508201610067 [10:38:06]line Кассир : Адишов И. [10:38:06]line Счет N : (1)506884 [10:38:06]line 14.05.2024 10:20 [10:38:06]line ПРОДАЖА [10:38:06]line ТРК (МРК, ГНК): 33 [10:38:06]line Вид ГСМ : 2710124130 [10:38:06]line Аи-92-К-5 [10:38:06]line 20.000 x 66.80 [10:38:06]line ИТОГ: 1336.00 [10:38:06]line Тип оплаты: Талоны: Топливная Карта [10:38:06]line 02707 [10:38:06]line ______________________ [10:38:06]line (подпись) [10:38:06]written 0, free lines is 4095 [10:38:06]Write to MH i2c: 01 00 00 5C 1D 79 [10:38:06]Write i2c OK [10:38:06]MH_I2C_Read... [10:38:06]Read from MH i2c: 01 [10:38:06]MH_I2C_Read... [10:38:06]Read from MH i2c: 01 07 00 [10:38:06]MH_I2C_Read... [10:38:06]Read from MH i2c: 01 07 00 5C 1D 00 00 00 00 00 11 0E 9F [10:38:06]RasterBufferAndPrint [10:38:06]line [10:38:06]line [10:38:06]line [10:38:06]line [10:38:06]line [10:38:06]written 0, free lines is 3602 [10:38:06]MH_Cut [10:38:06]Write to MH i2c: D1 01 00 63 1D 01 52 [10:38:06]Write i2c OK [10:38:06]MH_I2C_Read... [10:38:06]Read from MH i2c: D1 [10:38:06]MH_I2C_Read... [10:38:06]Read from MH i2c: D1 01 00 [10:38:06]MH_I2C_Read... [10:38:06]Read from MH i2c: D1 01 00 63 1D 00 51 [10:38:06]Write to MH i2c: 01 00 00 64 1D 81 [10:38:06]Write i2c OK [10:38:06]MH_I2C_Read... [10:38:07]*** Cut start [10:38:07]*** Purtial cut [10:38:07]*** Stage 1: CUTSNS_PIN = 1 [10:38:07]Read from MH i2c: 01 [10:38:07]MH_I2C_Read... [10:38:07]*** Stop cut motor [10:38:07]*** Cut end [10:38:07]Read from MH i2c: 01 07 00 [10:38:07]MH_I2C_Read... [10:38:07]Read from MH i2c: 01 07 00 64 1D 00 00 00 00 00 FF 0F 96 [10:38:07]process_action print_text done [10:38:07]requested_data is exist [10:38:07]produce_requested_data [10:38:07]requested_item fm.sn is exist - process it [10:38:07]wFMCommunicate request_size=4 [10:38:07]MH_SAM_APDU [10:38:07]CAPDU: 80 11 00 00 [10:38:07]Write to MH i2c: E2 08 00 65 1D 80 11 00 00 00 00 00 00 FC [10:38:07]Write i2c OK [10:38:07]MH_I2C_Read... [10:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:07]Read from MH i2c: E2 [10:38:07]MH_I2C_Read... [10:38:07]Read from MH i2c: E2 17 00 [10:38:07]MH_I2C_Read... [10:38:07]Read from MH i2c: E2 17 00 65 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 52 [10:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:38:07]wFMCommunicate OK [10:38:07]requested_item fd.num is exist - process it [10:38:07]SAM_PROTO_GetFieldsCounters [10:38:07]wFMCommunicate request_size=4 [10:38:07]MH_SAM_APDU [10:38:07]CAPDU: 80 13 00 00 [10:38:07]Write to MH i2c: E2 08 00 66 1D 80 13 00 00 00 00 00 00 FF [10:38:07]Write i2c OK [10:38:07]MH_I2C_Read... [10:38:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:07]Read from MH i2c: E2 [10:38:07]MH_I2C_Read... [10:38:07]Read from MH i2c: E2 62 00 [10:38:07]MH_I2C_Read... [10:38:07]Read from MH i2c: E2 62 00 66 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 D7 05 01 00 0E 04 04 00 63 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 D8 [10:38: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 D7 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:07]wFMCommunicate OK [10:38:07]SAM_PROTO_GetFieldsCounters done [10:38:07]requested_item shift.num is exist - process it [10:38:07]requested_item shift.opened is exist - process it [10:38:07]req_shift_opened [10:38:07]FM_GetShiftState [10:38:07]SAM_PROTO_GetShiftState [10:38:07]wFMCommunicate request_size=4 [10:38:07]MH_SAM_APDU [10:38:07]CAPDU: 80 13 01 00 [10:38:07]Write to MH i2c: E2 08 00 67 1D 80 13 01 00 00 00 00 00 01 [10:38:07]Write i2c OK [10:38:07]MH_I2C_Read... [10:38:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:07]Read from MH i2c: E2 [10:38:07]MH_I2C_Read... [10:38:07]Read from MH i2c: E2 0E 00 [10:38:07]MH_I2C_Read... [10:38:07]Read from MH i2c: E2 0E 00 67 1D 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 C9 [10:38:07]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [10:38:07]wFMCommunicate OK [10:38:07]SAM_PROTO_GetShiftState done [10:38:07]FM_GetShiftState done [10:38:07]req_shift_opened done [10:38:07]requested_item shift.open_date is exist - process it [10:38:07]req_shift_open_date [10:38:07]req_shift_open_date done [10:38:07]produce_requested_data done [10:38:07]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67031,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [10:38:07]process_action_free print_text [10:38:07]json_value_free [10:38:07]json_value_free done [10:38:07]process_json_proto returns [10:38:07]Send response to host [10:38:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67031,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [10:38:07]free response buf [10:38:07]execute_script done [10:38:07]execute_script returns [10:38:07]free content buf [10:38:07]Sock 10.Close socket [10:38:07]Sock 10.Thread stoped [10:38:08]OFD Sender: No OFD packet to send [10:38:13]OFD Sender: No OFD packet to send [10:38:18]OFD Sender: No OFD packet to send [10:38:23]OFD Sender: No OFD packet to send [10:38:28]OFD Sender: No OFD packet to send [10:38:33]OFD Sender: No OFD packet to send [10:38:38]OFD Sender: No OFD packet to send [10:38:43]OFD Sender: No OFD packet to send [10:38:48]OFD Sender: No OFD packet to send [10:38:53]OFD Sender: No OFD packet to send [10:38:58]OFD Sender: No OFD packet to send [10:39:03]OFD Sender: No OFD packet to send [10:39:08]OFD Sender: No OFD packet to send [10:39:13]OFD Sender: No OFD packet to send [10:39:18]OFD Sender: No OFD packet to send [10:39:23]OFD Sender: No OFD packet to send [10:39:28]OFD Sender: No OFD packet to send [10:39:33]OFD Sender: No OFD packet to send [10:39:38]OFD Sender: No OFD packet to send [10:39:43]OFD Sender: No OFD packet to send [10:39:48]OFD Sender: No OFD packet to send [10:39:53]OFD Sender: No OFD packet to send [10:39:58]OFD Sender: No OFD packet to send [10:40:03]OFD Sender: No OFD packet to send [10:40:08]OFD Sender: No OFD packet to send [10:40:13]OFD Sender: No OFD packet to send [10:40:18]OFD Sender: No OFD packet to send [10:40:23]OFD Sender: No OFD packet to send [10:40:28]OFD Sender: No OFD packet to send [10:40:33]OFD Sender: No OFD packet to send [10:40:38]OFD Sender: No OFD packet to send [10:40:43]OFD Sender: No OFD packet to send [10:40:48]OFD Sender: No OFD packet to send [10:40:53]OFD Sender: No OFD packet to send [10:40:58]OFD Sender: No OFD packet to send [10:41:03]OFD Sender: No OFD packet to send [10:41:08]OFD Sender: No OFD packet to send [10:41:13]OFD Sender: No OFD packet to send [10:41:18]OFD Sender: No OFD packet to send [10:41:23]OFD Sender: No OFD packet to send [10:41:28]OFD Sender: No OFD packet to send [10:41:33]OFD Sender: No OFD packet to send [10:41:38]OFD Sender: No OFD packet to send [10:41:43]OFD Sender: No OFD packet to send [10:41:48]OFD Sender: No OFD packet to send [10:41:53]OFD Sender: No OFD packet to send [10:41:58]OFD Sender: No OFD packet to send [10:42:03]OFD Sender: No OFD packet to send [10:42:08]OFD Sender: No OFD packet to send [10:42:13]OFD Sender: No OFD packet to send [10:42:18]OFD Sender: No OFD packet to send [10:42:23]OFD Sender: No OFD packet to send [10:42:28]OFD Sender: No OFD packet to send [10:42:33]OFD Sender: No OFD packet to send [10:42:38]OFD Sender: No OFD packet to send [10:42:43]OFD Sender: No OFD packet to send [10:42:48]OFD Sender: No OFD packet to send [10:42:53]OFD Sender: No OFD packet to send [10:42:58]OFD Sender: No OFD packet to send [10:43:03]OFD Sender: No OFD packet to send [10:43:08]OFD Sender: No OFD packet to send [10:43:13]OFD Sender: No OFD packet to send [10:43:18]OFD Sender: No OFD packet to send [10:43:23]OFD Sender: No OFD packet to send [10:43:28]OFD Sender: No OFD packet to send [10:43:33]OFD Sender: No OFD packet to send [10:43:38]OFD Sender: No OFD packet to send [10:43:39]recv_with_timeout no data received [10:43:43]OFD Sender: No OFD packet to send [10:43:48]OFD Sender: No OFD packet to send [10:43:50]recv_with_timeout no data received [10:43:53]OFD Sender: No OFD packet to send [10:43:58]OFD Sender: No OFD packet to send [10:44:03]OFD Sender: No OFD packet to send [10:44:08]OFD Sender: No OFD packet to send [10:44:13]OFD Sender: No OFD packet to send [10:44:18]OFD Sender: No OFD packet to send [10:44:23]OFD Sender: No OFD packet to send [10:44:25]recv_with_timeout no data received [10:44:28]OFD Sender: No OFD packet to send [10:44:33]OFD Sender: No OFD packet to send [10:44:38]OFD Sender: No OFD packet to send [10:44:43]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:19]OFD Sender: No OFD packet to send [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:39]OFD Sender: No OFD packet to send [10:46:39]accept exits with 9 [10:46:39]New connection [10:46:39]New thread 3066760548 created [10:46:39]Thread 3066617188 joined [10:46:39]Waiting for new connection... [10:46:39] Sock 9.Parse request [10:46:39]Sock 9.Check first char [10:46:39]Sock 9.First char is OK [10:46:39]request: POST /json_proto HTTP/1.0 [10:46:39]Method: POST [10:46:39]URL: /json_proto [10:46:39]Method is POST - this is cgi request [10:46:39]url: /json_proto [10:46:39]query_string will be loaded in cgi processing [10:46:39]execute_cgi json_proto POST (null) [10:46:39]execute_cgi path=json_proto method=POST [10:46:39]POST find Content-Length [10:46:39]Host: 172.17.41.195:8080 [10:46:39]Content-Length: 677 [10:46:39]Content-Type: application/json [10:46:39] [10:46:39]POST finish read [10:46:39]Found Content-Length = 677 [10:46:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506885", "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" ] } } [10:46:39]execute_script... [10:46: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)506885", "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" ] } } [10:46:39]POST & json_proto [10:46:39]process_json_proto [10:46:39]json parsed OK: [10:46:39]protocol is kg_v1.0 [10:46:39]action value=close_receipt [10:46:39]process_action close_receipt [10:46:39]cmd_close_receipt [10:46:39]MH_GetDate [10:46:39]Write to MH i2c: F0 00 00 68 1D 74 [10:46:39]Write i2c OK [10:46:39]MH_I2C_Read... [10:46:39]Read from MH i2c: F0 [10:46:39]MH_I2C_Read... [10:46:39]Read from MH i2c: F0 09 00 [10:46:39]MH_I2C_Read... [10:46:39]Read from MH i2c: F0 09 00 68 1D 00 13 41 43 66 FC 21 6F 64 6A [10:46:39]GetLastDocTimeStamp 1715682769 [10:46:39]current date 1715683603 [10:46:39]FM_GetShiftState [10:46:39]SAM_PROTO_GetShiftState [10:46:39]wFMCommunicate request_size=4 [10:46:39]MH_SAM_APDU [10:46:39]CAPDU: 80 13 01 00 [10:46:39]Write to MH i2c: E2 08 00 69 1D 80 13 01 00 00 00 00 00 03 [10:46:39]Write i2c OK [10:46:39]MH_I2C_Read... [10:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:39]Read from MH i2c: E2 [10:46:39]MH_I2C_Read... [10:46:39]Read from MH i2c: E2 0E 00 [10:46:39]MH_I2C_Read... [10:46:39]Read from MH i2c: E2 0E 00 69 1D 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 CB [10:46:39]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [10:46:39]wFMCommunicate OK [10:46:39]SAM_PROTO_GetShiftState done [10:46:39]FM_GetShiftState done [10:46:39]opened in 1715646054 [10:46:39]opened+sec_in_day 1715732454 [10:46:39]quantity*price = 60053 [10:46:39]sum+1 = 60054 [10:46:39]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 СНО: Общий режим Чек 39 14.05.2024 10:46 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67032 ФПД: 274830901283379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T104643&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67032&fm=274830901283379&tin=02508201610067®Number=0000000000091845&sum=60000 [10:46:40]StoreToDocumentArchive [10:46:40]shift 355 fd 67032 [10:46:40]save to /storage/0355/doc_00067032 [10:46:40]save last doc name /storage/0355/doc_00067032 to /storage/kkm_last_doc_name [10:46:40]save OK [10:46:40]Clear old archive folders... [10:46:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:40]tlvbuf is 003385B0 [10:46:40]SAM_PROTO_ClearQueue [10:46:40]wFMCommunicate request_size=4 [10:46:40]MH_SAM_APDU [10:46:40]CAPDU: 80 09 00 00 [10:46:40]Write to MH i2c: E2 08 00 76 1D 80 09 00 00 00 00 00 00 05 [10:46:40]Write i2c OK [10:46:40]MH_I2C_Read... [10:46:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:40]Read from MH i2c: E2 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 76 1D 00 90 00 07 [10:46:40]RAPDU: 90 00 [10:46:40]wFMCommunicate OK [10:46:40]SAM_PROTO_ClearQueue done [10:46:40]KKMCreateOFDPacket [10:46:40]OFDProtocolAddRootSTLVToBuf [10:46:40]FM_MakeSignedData [10:46:40]FM_MakeSignedData [10:46:40]SAM_PROTO_SignData [10:46:40]wFMCommunicate request_size=4 [10:46:40]MH_SAM_APDU [10:46:40]CAPDU: 80 0D 01 02 [10:46:40]Write to MH i2c: E2 08 00 77 1D 80 0D 01 02 00 00 00 00 0D [10:46:40]Write i2c OK [10:46:40]MH_I2C_Read... [10:46:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:40]Read from MH i2c: E2 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 77 1D 00 90 00 08 [10:46:40]RAPDU: 90 00 [10:46:40]wFMCommunicate OK [10:46:40]wFMCommunicate request_size=255 [10:46:40]MH_SAM_APDU [10:46: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 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 27 00 00 00 F4 03 04 00 13 41 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D8 05 01 00 35 04 06 00 F9 [10:46:40]Write to MH i2c: E2 02 01 78 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 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 27 00 00 00 F4 03 04 00 13 41 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D8 05 01 00 35 04 06 00 F9 00 00 17 [10:46:40]Write i2c OK [10:46:40]MH_I2C_Read... [10:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:40]Read from MH i2c: E2 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 78 1D 00 90 00 09 [10:46:40]RAPDU: 90 00 [10:46:40]wFMCommunicate OK [10:46:40]wFMCommunicate request_size=10 [10:46:40]MH_SAM_APDU [10:46:40]CAPDU: 80 0D 02 02 05 F5 0E 3E 8A 33 [10:46:40]Write to MH i2c: E2 0D 00 79 1D 80 0D 02 02 05 00 F5 0E 3E 8A 33 00 00 18 [10:46:40]Write i2c OK [10:46:40]MH_I2C_Read... [10:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:40]Read from MH i2c: E2 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 [10:46:40]MH_I2C_Read... [10:46:40]Read from MH i2c: E2 03 00 79 1D 00 90 00 0A [10:46:40]RAPDU: 90 00 [10:46:40]wFMCommunicate OK [10:46:40]wFMCommunicate request_size=4 [10:46:40]MH_SAM_APDU [10:46:40]CAPDU: 80 0D 03 02 [10:46:40]Write to MH i2c: E2 08 00 7A 1D 80 0D 03 02 00 00 00 00 12 [10:46:40]Write i2c OK [10:46:40]MH_I2C_Read... [10:46:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:41]Read from MH i2c: E2 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: E2 0B 00 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: E2 0B 00 7A 1D 00 30 32 5B D6 65 43 03 FC 90 00 4D [10:46:41]RAPDU: 30 32 5B D6 65 43 03 FC 90 00 [10:46:41]wFMCommunicate OK [10:46:41]SAM_PROTO_SignData done [10:46:41]FM_MakeSignedData done [10:46:41]CreateOFDProtocolMessage [10:46:41]wFMCommunicate request_size=4 [10:46:41]MH_SAM_APDU [10:46:41]CAPDU: 80 11 00 00 [10:46:41]Write to MH i2c: E2 08 00 7B 1D 80 11 00 00 00 00 00 00 12 [10:46:41]Write i2c OK [10:46:41]MH_I2C_Read... [10:46:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:41]Read from MH i2c: E2 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: E2 17 00 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: E2 17 00 7B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 68 [10: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 [10:46:41]wFMCommunicate OK [10:46:41]CreateOFDProtocolMessage done [10:46:41]OFDSenderStorePacket 67032 [10:46:41]StoreOFDPacket docnum=67032 [10:46: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 7C D2 07 01 0A 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 27 00 00 00 F4 03 04 00 13 41 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D8 05 01 00 35 04 06 00 F9 F5 0E 3E 8A 33 30 32 5B D6 65 43 03 FC [10:46:41]CheckFolder [10:46:41]dirname=/storage/ofd_packets [10:46:41]CheckFolder done [10:46:41]ProducePacketName [10:46:41]name=ofd_packets/00067032 [10:46:41]NVStorageSaveData ofd_packets/00067032 [10:46:41]File name is /storage/ofd_packets/00067032 [10:46:41]Write 301 bytes [10:46:41]NVStorageSaveData done [10:46:41]OFDSenderStorePacket done [10:46:41]KKMCreateOFDPacket done [10:46:41]NVStorageSaveData kkm_last_timestamp [10:46:41]File name is /storage/kkm_last_timestamp [10:46:41]Write 4 bytes [10:46:41]NVStorageSaveData done [10:46:41]ExternCall_PrintAddStr [10:46:41]wPrintStart [10:46:41]Write to MH i2c: 01 00 00 7C 1D 99 [10:46:41]Write i2c OK [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: 01 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: 01 07 00 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: 01 07 00 7C 1D 00 00 00 00 00 FF 0F AE [10:46:41]RasterBufferAndPrint [10:46:41]line Счет N : (1)506885 [10:46:41]line ИНН: 02508201610067 [10:46:41]line Контрольно-Кассовый Чек [10:46:41]line ПРОДАЖА [10:46:41]line ТРК (МРК, ГНК) : 33 [10:46:41]line Товар: 2710124130 [10:46:41]line Аи-92-К-5 [10:46:41]line 8.990 * 66.80 [10:46:41]line = 600.53 [10:46:41]line НДС 12% НСП 1% [10:46:41]line > о реализуемом товаре [10:46:41]line ОКРУГЛЕНИЕ: -0.53 [10:46:41]line ИТОГО: 600.00 [10:46:41]line Внесено: 600.00 [10:46:41]line СДАЧА: 0.00 [10:46:41]line НСП 1% : 5.31 [10:46:41]line НДС 12% : 63.77 [10:46:41]line Наличными: 600.00 [10:46:41]line Безнал.: 0.00 [10:46:41]line Место: АЗС № 91 "Партнер Нефть" [10:46:41]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [10:46:41]line СНО: Общий режим [10:46:41]line Чек 39 14.05.2024 10:46 [10:46:41]line Смена: 355 ФФД: 1.0 [10:46:41]line ЗНМ: 0300000119 [10:46:41]line РНМ: 0000000000091845 [10:46:41]line Версия ККМ: 001 [10:46:41]line ФМ: 0000000000871829 [10:46:41]line ФД: 67032 [10:46:41]line ФПД: 274830901283379 [10:46:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T104643&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67032&fm=274830901283379&tin=02508201610067®Number=0000000000091845&sum=60000 [10:46:41]OFD Sender: Processing packet 67032 [packets to send 35, broken 34] [10:46:41]ProducePacketName [10:46:41]name=ofd_packets/00067032 [10:46:41]OFD Sender: To server: pG, [10:46:41]CommunicateWithHost lk.salyk.kg:30040 [10:46:41]ConnectInit lk.salyk.kg [10:46:41]written 0, free lines is 4095 [10:46:41]Connected sock=10 [10:46: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 7C D2 07 01 0A 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 27 00 00 00 F4 03 04 00 13 41 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D8 05 01 00 35 04 06 00 F9 F5 0E 3E 8A 33 30 32 5B D6 65 43 03 FC [10:46: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 F4 56 47 00 C6 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 D8 05 01 00 F4 03 04 00 F3 E8 42 66 B6 04 01 00 00 A7 DA A0 0B E8 D1 6F DB [10:46:41]CommunicateWithHost err = 0 [10:46:41]CheckOFDResponse [10:46:41]1017 (14) - 77093643461234 [10:46:41]1041 (16) - 0000000000871829 [10:46:41]1040 (4) - 67032 [10:46:41]1012 (4) - 14.05.2024 04:30 [10:46:41]1206 (1) - 0 [10:46:41]OFD Sender: Remove packet 67032 [10:46:41]ProducePacketName [10:46:41]name=ofd_packets/00067032 [10:46:41]NVStorageDeleteData [10:46:41]Write to MH i2c: 01 00 00 A6 1D C3 [10:46:41]Write i2c OK [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: 01 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: 01 07 00 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: 01 07 00 A6 1D 00 00 00 00 00 C6 0C 9C [10:46:41]RasterBufferAndPrint [10:46:41]line [10:46:41]line [10:46:41]line [10:46:41]line [10:46:41]line [10:46:41]written 0, free lines is 3277 [10:46:41]MH_Cut [10:46:41]Write to MH i2c: D1 01 00 AD 1D 01 9C [10:46:41]Write i2c OK [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: D1 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: D1 01 00 [10:46:41]MH_I2C_Read... [10:46:41]Read from MH i2c: D1 01 00 AD 1D 00 9B [10:46:41]Write to MH i2c: 01 00 00 AE 1D CB [10:46:41]Write i2c OK [10:46:41]MH_I2C_Read... [10:46:42]OFD Sender: No OFD packet to send [10:46:42]*** Cut start [10:46:42]*** Purtial cut [10:46:42]*** CUTSNS_PIN = 0 [10:46:42]*** Stage 1: CUTSNS_PIN = 1 [10:46:44]Read from MH i2c: 01 [10:46:44]MH_I2C_Read... [10:46:44]*** Stop cut motor [10:46:44]*** Cut end [10:46:44]Read from MH i2c: 01 07 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: 01 07 00 AE 1D 00 00 00 00 00 FF 0F E0 [10:46:44]process_action close_receipt done [10:46:44]requested_data is exist [10:46:44]produce_requested_data [10:46:44]requested_item fm.sn is exist - process it [10:46:44]wFMCommunicate request_size=4 [10:46:44]MH_SAM_APDU [10:46:44]CAPDU: 80 11 00 00 [10:46:44]Write to MH i2c: E2 08 00 AF 1D 80 11 00 00 00 00 00 00 46 [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 17 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 17 00 AF 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9C [10:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:46:44]wFMCommunicate OK [10:46:44]requested_item fd.num is exist - process it [10:46:44]SAM_PROTO_GetFieldsCounters [10:46:44]wFMCommunicate request_size=4 [10:46:44]MH_SAM_APDU [10:46:44]CAPDU: 80 13 00 00 [10:46:44]Write to MH i2c: E2 08 00 B0 1D 80 13 00 00 00 00 00 00 49 [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 62 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 62 00 B0 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 D8 05 01 00 0E 04 04 00 63 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 26 [10:46:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D8 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:44]wFMCommunicate OK [10:46:44]SAM_PROTO_GetFieldsCounters done [10:46:44]requested_item shift.num is exist - process it [10:46:44]requested_item shift.opened is exist - process it [10:46:44]req_shift_opened [10:46:44]FM_GetShiftState [10:46:44]SAM_PROTO_GetShiftState [10:46:44]wFMCommunicate request_size=4 [10:46:44]MH_SAM_APDU [10:46:44]CAPDU: 80 13 01 00 [10:46:44]Write to MH i2c: E2 08 00 B1 1D 80 13 01 00 00 00 00 00 4B [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:44]Read from MH i2c: E2 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 0E 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: E2 0E 00 B1 1D 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 13 [10:46:44]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [10:46:44]wFMCommunicate OK [10:46:44]SAM_PROTO_GetShiftState done [10:46:44]FM_GetShiftState done [10:46:44]req_shift_opened done [10:46:44]requested_item shift.open_date is exist - process it [10:46:44]req_shift_open_date [10:46:44]req_shift_open_date done [10:46:44]produce_requested_data done [10:46:44]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67032,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [10:46:44]process_action_free close_receipt [10:46:44]json_value_free [10:46:44]json_value_free done [10:46:44]process_json_proto returns [10:46:44]Send response to host [10:46:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67032,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [10:46:44]free response buf [10:46:44]execute_script done [10:46:44]execute_script returns [10:46:44]free content buf [10:46:44]Sock 9.Close socket [10:46:44]Sock 9.Thread stoped [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:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [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:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:47]OFD Sender: No OFD packet to send [10:52:52]OFD Sender: No OFD packet to send [10:52:57]OFD Sender: No OFD packet to send [10:53:02]OFD Sender: No OFD packet to send [10:53:07]OFD Sender: No OFD packet to send [10:53:12]OFD Sender: No OFD packet to send [10:53:17]OFD Sender: No OFD packet to send [10:53:22]OFD Sender: No OFD packet to send [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:37]OFD Sender: No OFD packet to send [10:53:42]OFD Sender: No OFD packet to send [10:53:47]OFD Sender: No OFD packet to send [10:53:52]OFD Sender: No OFD packet to send [10:53:57]OFD Sender: No OFD packet to send [10:54:02]OFD Sender: No OFD packet to send [10:54:07]OFD Sender: No OFD packet to send [10:54:12]OFD Sender: No OFD packet to send [10:54:17]OFD Sender: No OFD packet to send [10:54:22]OFD Sender: No OFD packet to send [10:54:27]OFD Sender: No OFD packet to send [10:54:32]OFD Sender: No OFD packet to send [10:54:37]OFD Sender: No OFD packet to send [10:54:42]OFD Sender: No OFD packet to send [10:54:47]OFD Sender: No OFD packet to send [10:54:52]OFD Sender: No OFD packet to send [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:07]OFD Sender: No OFD packet to send [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:38]accept exits with 8 [10:55:38]New connection [10:55:38]New thread 3066617188 created [10:55:38]Thread 3066760548 joined [10:55:38]Waiting for new connection... [10:55:38] Sock 8.Parse request [10:55:38]Sock 8.Check first char [10:55:38]Sock 8.First char is OK [10:55:38]request: POST /json_proto HTTP/1.0 [10:55:38]Method: POST [10:55:38]URL: /json_proto [10:55:38]Method is POST - this is cgi request [10:55:38]url: /json_proto [10:55:38]query_string will be loaded in cgi processing [10:55:38]execute_cgi json_proto POST (null) [10:55:38]execute_cgi path=json_proto method=POST [10:55:38]POST find Content-Length [10:55:38]Host: 172.17.41.195:8080 [10:55:38]Content-Length: 1141 [10:55:38]Content-Type: application/json [10:55:38] [10:55:38]POST finish read [10:55:38]Found Content-Length = 1141 [10:55: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)506886\u000A14.05.2024 10:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30087128\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:38]execute_script... [10:55: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)506886\u000A14.05.2024 10:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30087128\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:38]POST & json_proto [10:55:38]process_json_proto [10:55:38]json parsed OK: [10:55:38]protocol is kg_v1.0 [10:55:38]action value=print_text [10:55:38]process_action print_text [10:55:38]cmd_print_text [10:55:38]ExternCall_PrintAddStr [10:55:38]wPrintStart [10:55:38]Write to MH i2c: 01 00 00 B2 1D CF [10:55:38]Write i2c OK [10:55:38]MH_I2C_Read... [10:55:38]Read from MH i2c: 01 [10:55:38]MH_I2C_Read... [10:55:38]Read from MH i2c: 01 07 00 [10:55:38]MH_I2C_Read... [10:55:38]Read from MH i2c: 01 07 00 B2 1D 00 00 00 00 00 FF 0F E4 [10:55:38]RasterBufferAndPrint [10:55:38]line *****ТОВАРНЫЙ ЧЕК***** [10:55:38]line АЗС-91 [10:55:38]line Партнер нефть [10:55:38]line 02508201610067 [10:55:38]line Кассир : Адишов И. [10:55:38]line Счет N : (1)506886 [10:55:38]line 14.05.2024 10:38 [10:55:38]line ПРОДАЖА [10:55:38]line ТРК (МРК, ГНК): 21 [10:55:38]line Вид ГСМ : 2710194210 [10:55:38]line ДТ-К-5 [10:55:38]line 20.000 x 74.70 [10:55:38]line ИТОГ: 1494.00 [10:55:38]line Тип оплаты: Талоны: ТК ГПНА Online [10:55:38]line 30087128 [10:55:38]line ______________________ [10:55:38]line (подпись) [10:55:38]written 0, free lines is 4095 [10:55:38]Write to MH i2c: 01 00 00 C6 1D E3 [10:55:38]Write i2c OK [10:55:38]MH_I2C_Read... [10:55:38]Read from MH i2c: 01 [10:55:38]MH_I2C_Read... [10:55:38]Read from MH i2c: 01 07 00 [10:55:38]MH_I2C_Read... [10:55:38]Read from MH i2c: 01 07 00 C6 1D 00 00 00 00 00 0D 0E 05 [10:55:38]RasterBufferAndPrint [10:55:38]line [10:55:38]line [10:55:38]line [10:55:38]line [10:55:38]line [10:55:38]written 0, free lines is 3599 [10:55:38]MH_Cut [10:55:38]Write to MH i2c: D1 01 00 CD 1D 01 BC [10:55:38]Write i2c OK [10:55:38]MH_I2C_Read... [10:55:38]Read from MH i2c: D1 [10:55:38]MH_I2C_Read... [10:55:38]Read from MH i2c: D1 01 00 [10:55:38]MH_I2C_Read... [10:55:38]Read from MH i2c: D1 01 00 CD 1D 00 BB [10:55:38]Write to MH i2c: 01 00 00 CE 1D EB [10:55:38]Write i2c OK [10:55:38]MH_I2C_Read... [10:55:38]*** Cut start [10:55:38]*** Purtial cut [10:55:38]*** Stage 1: CUTSNS_PIN = 1 [10:55:39]Read from MH i2c: 01 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: 01 07 00 [10:55:39]MH_I2C_Read... [10:55:39]*** Stop cut motor [10:55:39]*** Cut end [10:55:39]Read from MH i2c: 01 07 00 CE 1D 00 00 00 00 00 FF 0F 00 [10:55:39]process_action print_text done [10:55:39]requested_data is exist [10:55:39]produce_requested_data [10:55:39]requested_item fm.sn is exist - process it [10:55:39]wFMCommunicate request_size=4 [10:55:39]MH_SAM_APDU [10:55:39]CAPDU: 80 11 00 00 [10:55:39]Write to MH i2c: E2 08 00 CF 1D 80 11 00 00 00 00 00 00 66 [10:55:39]Write i2c OK [10:55:39]MH_I2C_Read... [10:55:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:39]Read from MH i2c: E2 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: E2 17 00 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: E2 17 00 CF 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BC [10:55:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [10:55:39]wFMCommunicate OK [10:55:39]requested_item fd.num is exist - process it [10:55:39]SAM_PROTO_GetFieldsCounters [10:55:39]wFMCommunicate request_size=4 [10:55:39]MH_SAM_APDU [10:55:39]CAPDU: 80 13 00 00 [10:55:39]Write to MH i2c: E2 08 00 D0 1D 80 13 00 00 00 00 00 00 69 [10:55:39]Write i2c OK [10:55:39]MH_I2C_Read... [10:55:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:39]Read from MH i2c: E2 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: E2 62 00 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: E2 62 00 D0 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 D8 05 01 00 0E 04 04 00 63 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 46 [10:55: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 D8 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:39]wFMCommunicate OK [10:55:39]SAM_PROTO_GetFieldsCounters done [10:55:39]requested_item shift.num is exist - process it [10:55:39]requested_item shift.opened is exist - process it [10:55:39]req_shift_opened [10:55:39]FM_GetShiftState [10:55:39]SAM_PROTO_GetShiftState [10:55:39]wFMCommunicate request_size=4 [10:55:39]MH_SAM_APDU [10:55:39]CAPDU: 80 13 01 00 [10:55:39]Write to MH i2c: E2 08 00 D1 1D 80 13 01 00 00 00 00 00 6B [10:55:39]Write i2c OK [10:55:39]MH_I2C_Read... [10:55:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:39]Read from MH i2c: E2 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: E2 0E 00 [10:55:39]MH_I2C_Read... [10:55:39]Read from MH i2c: E2 0E 00 D1 1D 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 33 [10:55:39]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [10:55:39]wFMCommunicate OK [10:55:39]SAM_PROTO_GetShiftState done [10:55:39]FM_GetShiftState done [10:55:39]req_shift_opened done [10:55:39]requested_item shift.open_date is exist - process it [10:55:39]req_shift_open_date [10:55:39]req_shift_open_date done [10:55:39]produce_requested_data done [10:55:39]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67032,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [10:55:39]process_action_free print_text [10:55:39]json_value_free [10:55:39]json_value_free done [10:55:39]process_json_proto returns [10:55:39]Send response to host [10:55:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67032,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [10:55:39]free response buf [10:55:39]execute_script done [10:55:39]execute_script returns [10:55:39]free content buf [10:55:39]Sock 8.Close socket [10:55:39]Sock 8.Thread stoped [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:12]OFD Sender: No OFD packet to send [10:56:17]OFD Sender: No OFD packet to send [10:56:22]OFD Sender: No OFD packet to send [10:56:27]OFD Sender: No OFD packet to send [10:56:32]OFD Sender: No OFD packet to send [10:56:37]OFD Sender: No OFD packet to send [10:56:42]OFD Sender: No OFD packet to send [10:56:47]OFD Sender: No OFD packet to send [10:56:52]OFD Sender: No OFD packet to send [10:56:57]OFD Sender: No OFD packet to send [10:57:02]OFD Sender: No OFD packet to send [10:57:07]OFD Sender: No OFD packet to send [10:57:12]OFD Sender: No OFD packet to send [10:57:17]OFD Sender: No OFD packet to send [10:57:22]OFD Sender: No OFD packet to send [10:57:27]OFD Sender: No OFD packet to send [10:57:32]OFD Sender: No OFD packet to send [10:57:37]OFD Sender: No OFD packet to send [10:57:42]OFD Sender: No OFD packet to send [10:57:47]OFD Sender: No OFD packet to send [10:57:52]OFD Sender: No OFD packet to send [10:57:57]OFD Sender: No OFD packet to send [10:58:02]OFD Sender: No OFD packet to send [10:58:07]OFD Sender: No OFD packet to send [10:58:12]OFD Sender: No OFD packet to send [10:58:17]OFD Sender: No OFD packet to send [10:58:22]OFD Sender: No OFD packet to send [10:58:27]OFD Sender: No OFD packet to send [10:58:32]OFD Sender: No OFD packet to send [10:58:37]OFD Sender: No OFD packet to send [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:52]OFD Sender: No OFD packet to send [10:58:57]OFD Sender: No OFD packet to send [10:59:02]OFD Sender: No OFD packet to send [10:59:07]OFD Sender: No OFD packet to send [10:59:12]OFD Sender: No OFD packet to send [10:59:17]OFD Sender: No OFD packet to send [10:59:22]OFD Sender: No OFD packet to send [10:59:27]OFD Sender: No OFD packet to send [10:59:32]OFD Sender: No OFD packet to send [10:59:37]OFD Sender: No OFD packet to send [10:59:42]OFD Sender: No OFD packet to send [10:59:47]OFD Sender: No OFD packet to send [10:59:52]OFD Sender: No OFD packet to send [10:59:57]OFD Sender: No OFD packet to send [11:00:02]OFD Sender: No OFD packet to send [11:00:07]OFD Sender: No OFD packet to send [11:00:12]OFD Sender: No OFD packet to send [11:00:17]OFD Sender: No OFD packet to send [11:00:22]OFD Sender: No OFD packet to send [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:38]accept exits with 9 [11:00:38]New connection [11:00:38]New thread 3066760548 created [11:00:38]Thread 3066617188 joined [11:00:38]Waiting for new connection... [11:00:38] Sock 9.Parse request [11:00:38]Sock 9.Check first char [11:00:38]Sock 9.First char is OK [11:00:38]request: POST /json_proto HTTP/1.0 [11:00:38]Method: POST [11:00:38]URL: /json_proto [11:00:38]Method is POST - this is cgi request [11:00:38]url: /json_proto [11:00:38]query_string will be loaded in cgi processing [11:00:38]execute_cgi json_proto POST (null) [11:00:38]execute_cgi path=json_proto method=POST [11:00:38]POST find Content-Length [11:00:38]Host: 172.17.41.195:8080 [11:00:38]Content-Length: 679 [11:00:38]Content-Type: application/json [11:00:38] [11:00:38]POST finish read [11:00:38]Found Content-Length = 679 [11:00:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506887", "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" ] } } [11:00:38]execute_script... [11:00: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)506887", "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" ] } } [11:00:38]POST & json_proto [11:00:38]process_json_proto [11:00:38]json parsed OK: [11:00:38]protocol is kg_v1.0 [11:00:38]action value=close_receipt [11:00:38]process_action close_receipt [11:00:38]cmd_close_receipt [11:00:38]MH_GetDate [11:00:38]Write to MH i2c: F0 00 00 D2 1D DE [11:00:38]Write i2c OK [11:00:38]MH_I2C_Read... [11:00:38]Read from MH i2c: F0 [11:00:38]MH_I2C_Read... [11:00:38]Read from MH i2c: F0 09 00 [11:00:38]MH_I2C_Read... [11:00:38]Read from MH i2c: F0 09 00 D2 1D 00 5A 44 43 66 FC 21 6F 64 1E [11:00:38]GetLastDocTimeStamp 1715683603 [11:00:38]current date 1715684442 [11:00:38]FM_GetShiftState [11:00:38]SAM_PROTO_GetShiftState [11:00:38]wFMCommunicate request_size=4 [11:00:38]MH_SAM_APDU [11:00:38]CAPDU: 80 13 01 00 [11:00:38]Write to MH i2c: E2 08 00 D3 1D 80 13 01 00 00 00 00 00 6D [11:00:38]Write i2c OK [11:00:38]MH_I2C_Read... [11:00:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:38]Read from MH i2c: E2 [11:00:38]MH_I2C_Read... [11:00:38]Read from MH i2c: E2 0E 00 [11:00:38]MH_I2C_Read... [11:00:38]Read from MH i2c: E2 0E 00 D3 1D 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 35 [11:00:38]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:00:38]wFMCommunicate OK [11:00:38]SAM_PROTO_GetShiftState done [11:00:38]FM_GetShiftState done [11:00:38]opened in 1715646054 [11:00:38]opened+sec_in_day 1715732454 [11:00:38]quantity*price = 100023 [11:00:38]sum+1 = 100024 [11:00:38]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 СНО: Общий режим Чек 40 14.05.2024 11:00 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67033 ФПД: 201108407177680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T110042&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67033&fm=201108407177680&tin=02508201610067®Number=0000000000091845&sum=100000 [11:00:39]StoreToDocumentArchive [11:00:39]shift 355 fd 67033 [11:00:39]save to /storage/0355/doc_00067033 [11:00:39]save last doc name /storage/0355/doc_00067033 to /storage/kkm_last_doc_name [11:00:39]save OK [11:00:39]Clear old archive folders... [11:00:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:00:39]tlvbuf is 00364750 [11:00:39]SAM_PROTO_ClearQueue [11:00:39]wFMCommunicate request_size=4 [11:00:39]MH_SAM_APDU [11:00:39]CAPDU: 80 09 00 00 [11:00:39]Write to MH i2c: E2 08 00 E0 1D 80 09 00 00 00 00 00 00 6F [11:00:39]Write i2c OK [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: E2 [11:00:39]MH_I2C_Read... [11:00:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:39]Read from MH i2c: E2 03 00 [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: E2 03 00 E0 1D 00 90 00 71 [11:00:39]RAPDU: 90 00 [11:00:39]wFMCommunicate OK [11:00:39]SAM_PROTO_ClearQueue done [11:00:39]KKMCreateOFDPacket [11:00:39]OFDProtocolAddRootSTLVToBuf [11:00:39]FM_MakeSignedData [11:00:39]FM_MakeSignedData [11:00:39]SAM_PROTO_SignData [11:00:39]wFMCommunicate request_size=4 [11:00:39]MH_SAM_APDU [11:00:39]CAPDU: 80 0D 01 02 [11:00:39]Write to MH i2c: E2 08 00 E1 1D 80 0D 01 02 00 00 00 00 77 [11:00:39]Write i2c OK [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: E2 [11:00:39]MH_I2C_Read... [11:00:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:39]Read from MH i2c: E2 03 00 [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: E2 03 00 E1 1D 00 90 00 72 [11:00:39]RAPDU: 90 00 [11:00:39]wFMCommunicate OK [11:00:39]wFMCommunicate request_size=255 [11:00:39]MH_SAM_APDU [11:00: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 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 28 00 00 00 F4 03 04 00 5A 44 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D9 05 01 00 35 04 06 00 B6 E8 33 2B [11:00:39]Write to MH i2c: E2 02 01 E2 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 28 00 00 00 F4 03 04 00 5A 44 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D9 05 01 00 35 04 06 00 B6 E8 33 2B 00 00 FF [11:00:39]Write i2c OK [11:00:39]MH_I2C_Read... [11:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:39]Read from MH i2c: E2 [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: E2 03 00 [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: E2 03 00 E2 1D 00 90 00 73 [11:00:39]RAPDU: 90 00 [11:00:39]wFMCommunicate OK [11:00:39]wFMCommunicate request_size=7 [11:00:39]MH_SAM_APDU [11:00:39]CAPDU: 80 0D 02 02 02 D1 D0 [11:00:39]Write to MH i2c: E2 0A 00 E3 1D 80 0D 02 02 02 00 D1 D0 00 00 1F [11:00:39]Write i2c OK [11:00:39]MH_I2C_Read... [11:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:39]Read from MH i2c: E2 [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: E2 03 00 [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: E2 03 00 E3 1D 00 90 00 74 [11:00:39]RAPDU: 90 00 [11:00:39]wFMCommunicate OK [11:00:39]wFMCommunicate request_size=4 [11:00:39]MH_SAM_APDU [11:00:39]CAPDU: 80 0D 03 02 [11:00:39]Write to MH i2c: E2 08 00 E4 1D 80 0D 03 02 00 00 00 00 7C [11:00:39]Write i2c OK [11:00:39]MH_I2C_Read... [11:00:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:39]Read from MH i2c: E2 [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: E2 0B 00 [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: E2 0B 00 E4 1D 00 0E BF 67 9B B5 D3 66 25 90 00 5F [11:00:39]RAPDU: 0E BF 67 9B B5 D3 66 25 90 00 [11:00:39]wFMCommunicate OK [11:00:39]SAM_PROTO_SignData done [11:00:39]FM_MakeSignedData done [11:00:39]CreateOFDProtocolMessage [11:00:39]wFMCommunicate request_size=4 [11:00:39]MH_SAM_APDU [11:00:39]CAPDU: 80 11 00 00 [11:00:39]Write to MH i2c: E2 08 00 E5 1D 80 11 00 00 00 00 00 00 7C [11:00:39]Write i2c OK [11:00:39]MH_I2C_Read... [11:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:39]Read from MH i2c: E2 [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: E2 17 00 [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: E2 17 00 E5 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D2 [11:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:00:39]wFMCommunicate OK [11:00:39]CreateOFDProtocolMessage done [11:00:39]OFDSenderStorePacket 67033 [11:00:39]StoreOFDPacket docnum=67033 [11:00: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 FC 51 04 01 C6 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 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 28 00 00 00 F4 03 04 00 5A 44 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D9 05 01 00 35 04 06 00 B6 E8 33 2B D1 D0 0E BF 67 9B B5 D3 66 25 [11:00:39]CheckFolder [11:00:39]dirname=/storage/ofd_packets [11:00:39]CheckFolder done [11:00:39]ProducePacketName [11:00:39]name=ofd_packets/00067033 [11:00:39]NVStorageSaveData ofd_packets/00067033 [11:00:39]File name is /storage/ofd_packets/00067033 [11:00:39]Write 298 bytes [11:00:39]NVStorageSaveData done [11:00:39]OFDSenderStorePacket done [11:00:39]KKMCreateOFDPacket done [11:00:39]NVStorageSaveData kkm_last_timestamp [11:00:39]File name is /storage/kkm_last_timestamp [11:00:39]Write 4 bytes [11:00:39]NVStorageSaveData done [11:00:39]ExternCall_PrintAddStr [11:00:39]wPrintStart [11:00:39]Write to MH i2c: 01 00 00 E6 1D 03 [11:00:39]Write i2c OK [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: 01 [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: 01 07 00 [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: 01 07 00 E6 1D 00 00 00 00 00 FF 0F 18 [11:00:39]RasterBufferAndPrint [11:00:39]line Счет N : (1)506887 [11:00:39]line ИНН: 02508201610067 [11:00:39]line Контрольно-Кассовый Чек [11:00:39]line ПРОДАЖА [11:00:39]line ТРК (МРК, ГНК) : 11 [11:00:39]line Товар: 2710194210 [11:00:39]line ДТ-К-5 [11:00:39]line 13.390 * 74.70 [11:00:39]line = 1000.23 [11:00:39]line НДС 12% НСП 1% [11:00:39]line > о реализуемом товаре [11:00:39]line ОКРУГЛЕНИЕ: -0.23 [11:00:39]line ИТОГО: 1000.00 [11:00:39]line Внесено: 1000.00 [11:00:39]line СДАЧА: 0.00 [11:00:39]line НСП 1% : 8.85 [11:00:39]line НДС 12% : 106.22 [11:00:39]line Наличными: 1000.00 [11:00:39]line Безнал.: 0.00 [11:00:39]line Место: АЗС № 91 "Партнер Нефть" [11:00:39]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:00:39]line СНО: Общий режим [11:00:39]line Чек 40 14.05.2024 11:00 [11:00:39]line Смена: 355 ФФД: 1.0 [11:00:39]line ЗНМ: 0300000119 [11:00:39]line РНМ: 0000000000091845 [11:00:39]line Версия ККМ: 001 [11:00:39]line ФМ: 0000000000871829 [11:00:39]line ФД: 67033 [11:00:39]line ФПД: 201108407177680 [11:00:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T110042&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67033&fm=201108407177680&tin=02508201610067®Number=0000000000091845&sum=100000 [11:00:40]OFD Sender: Processing packet 67033 [packets to send 35, broken 34] [11:00:40]ProducePacketName [11:00:40]name=ofd_packets/00067033 [11:00:40]OFD Sender: To server: pG, [11:00:40]CommunicateWithHost lk.salyk.kg:30040 [11:00:40]ConnectInit lk.salyk.kg [11:00:40]written 0, free lines is 4095 [11:00:40]Write to MH i2c: 01 00 00 10 1E 2E [11:00:40]Write i2c OK [11:00:40]MH_I2C_Read... [11:00:40]Read from MH i2c: 01 [11:00:40]MH_I2C_Read... [11:00:40]Read from MH i2c: 01 07 00 [11:00:40]MH_I2C_Read... [11:00:40]Read from MH i2c: 01 07 00 10 1E 00 00 00 00 00 B3 0C F4 [11:00:40]RasterBufferAndPrint [11:00:40]line [11:00:40]line [11:00:40]line [11:00:40]line [11:00:40]line [11:00:40]written 0, free lines is 3257 [11:00:40]MH_Cut [11:00:40]Write to MH i2c: D1 01 00 17 1E 01 07 [11:00:40]Write i2c OK [11:00:40]MH_I2C_Read... [11:00:40]Read from MH i2c: D1 [11:00:40]MH_I2C_Read... [11:00:40]Read from MH i2c: D1 01 00 [11:00:40]MH_I2C_Read... [11:00:40]Read from MH i2c: D1 01 00 17 1E 00 06 [11:00:40]Write to MH i2c: 01 00 00 18 1E 36 [11:00:40]Write i2c OK [11:00:40]MH_I2C_Read... [11:00:41]*** Cut start [11:00:41]*** Purtial cut [11:00:41]*** CUTSNS_PIN = 0 [11:00:41]*** Stage 1: CUTSNS_PIN = 1 [11:00:43]Read from MH i2c: 01 [11:00:43]MH_I2C_Read... [11:00:43]*** Stop cut motor [11:00:43]*** Cut end [11:00:43]Read from MH i2c: 01 07 00 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: 01 07 00 18 1E 00 00 00 00 00 FF 0F 4B [11:00:43]process_action close_receipt done [11:00:43]requested_data is exist [11:00:43]produce_requested_data [11:00:43]requested_item fm.sn is exist - process it [11:00:43]wFMCommunicate request_size=4 [11:00:43]MH_SAM_APDU [11:00:43]CAPDU: 80 11 00 00 [11:00:43]Write to MH i2c: E2 08 00 19 1E 80 11 00 00 00 00 00 00 B1 [11:00:43]Write i2c OK [11:00:43]MH_I2C_Read... [11:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:43]Read from MH i2c: E2 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: E2 17 00 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: E2 17 00 19 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 07 [11:00:43]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:43]wFMCommunicate OK [11:00:43]requested_item fd.num is exist - process it [11:00:43]SAM_PROTO_GetFieldsCounters [11:00:43]wFMCommunicate request_size=4 [11:00:43]MH_SAM_APDU [11:00:43]CAPDU: 80 13 00 00 [11:00:43]Write to MH i2c: E2 08 00 1A 1E 80 13 00 00 00 00 00 00 B4 [11:00:43]Write i2c OK [11:00:43]MH_I2C_Read... [11:00:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:43]Read from MH i2c: E2 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: E2 62 00 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: E2 62 00 1A 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 D9 05 01 00 0E 04 04 00 63 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 95 [11:00: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 D9 05 01 00 0E 04 04 00 63 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:00:43]wFMCommunicate OK [11:00:43]SAM_PROTO_GetFieldsCounters done [11:00:43]requested_item shift.num is exist - process it [11:00:43]requested_item shift.opened is exist - process it [11:00:43]req_shift_opened [11:00:43]FM_GetShiftState [11:00:43]SAM_PROTO_GetShiftState [11:00:43]wFMCommunicate request_size=4 [11:00:43]MH_SAM_APDU [11:00:43]CAPDU: 80 13 01 00 [11:00:43]Write to MH i2c: E2 08 00 1B 1E 80 13 01 00 00 00 00 00 B6 [11:00:43]Write i2c OK [11:00:43]MH_I2C_Read... [11:00:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:43]Read from MH i2c: E2 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: E2 0E 00 [11:00:43]MH_I2C_Read... [11:00:43]Read from MH i2c: E2 0E 00 1B 1E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 7E [11:00:43]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:00:43]wFMCommunicate OK [11:00:43]SAM_PROTO_GetShiftState done [11:00:43]FM_GetShiftState done [11:00:43]req_shift_opened done [11:00:43]requested_item shift.open_date is exist - process it [11:00:43]req_shift_open_date [11:00:43]req_shift_open_date done [11:00:43]produce_requested_data done [11:00:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67033,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:00:43]process_action_free close_receipt [11:00:43]json_value_free [11:00:43]json_value_free done [11:00:43]process_json_proto returns [11:00:43]Send response to host [11:00:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67033,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:00:43]free response buf [11:00:43]execute_script done [11:00:43]execute_script returns [11:00:43]free content buf [11:00:43]Sock 9.Close socket [11:00:43]Sock 9.Thread stoped [11:00:43]Connected sock=11 [11:00: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 FC 51 04 01 C6 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 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 28 00 00 00 F4 03 04 00 5A 44 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 D9 05 01 00 35 04 06 00 B6 E8 33 2B D1 D0 0E BF 67 9B B5 D3 66 25 [11:00: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 06 98 47 00 0B 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 D9 05 01 00 F4 03 04 00 3E EC 42 66 B6 04 01 00 00 18 56 AC 87 B2 AA C1 06 [11:00:44]CommunicateWithHost err = 0 [11:00:44]CheckOFDResponse [11:00:44]1017 (14) - 77093643461234 [11:00:44]1041 (16) - 0000000000871829 [11:00:44]1040 (4) - 67033 [11:00:44]1012 (4) - 14.05.2024 04:44 [11:00:44]1206 (1) - 0 [11:00:44]OFD Sender: Remove packet 67033 [11:00:44]ProducePacketName [11:00:44]name=ofd_packets/00067033 [11:00:44]NVStorageDeleteData [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:26]accept exits with 10 [11:04:26]New connection [11:04:26]New thread 3066617188 created [11:04:26]Thread 3066760548 joined [11:04:26]Waiting for new connection... [11:04:26] Sock 10.Parse request [11:04:26]Sock 10.Check first char [11:04:26]Sock 10.First char is OK [11:04:26]request: POST /json_proto HTTP/1.0 [11:04:26]Method: POST [11:04:26]URL: /json_proto [11:04:26]Method is POST - this is cgi request [11:04:26]url: /json_proto [11:04:26]query_string will be loaded in cgi processing [11:04:26]execute_cgi json_proto POST (null) [11:04:26]execute_cgi path=json_proto method=POST [11:04:26]POST find Content-Length [11:04:26]Host: 172.17.41.195:8080 [11:04:26]Content-Length: 1179 [11:04:26]Content-Type: application/json [11:04:26] [11:04:26]POST finish read [11:04:26]Found Content-Length = 1179 [11:04: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)506888\u000A14.05.2024 10: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 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" ] } } [11:04:26]execute_script... [11:04: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)506888\u000A14.05.2024 10: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 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" ] } } [11:04:26]POST & json_proto [11:04:26]process_json_proto [11:04:26]json parsed OK: [11:04:26]protocol is kg_v1.0 [11:04:26]action value=print_text [11:04:26]process_action print_text [11:04:26]cmd_print_text [11:04:26]ExternCall_PrintAddStr [11:04:26]wPrintStart [11:04:26]Write to MH i2c: 01 00 00 1C 1E 3A [11:04:26]Write i2c OK [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 07 00 [11:04:26]MH_I2C_Read... [11:04:26]Read from MH i2c: 01 07 00 1C 1E 00 00 00 00 00 FF 0F 4F [11:04:26]RasterBufferAndPrint [11:04:26]line *****ТОВАРНЫЙ ЧЕК***** [11:04:26]line АЗС-91 [11:04:26]line Партнер нефть [11:04:26]line 02508201610067 [11:04:26]line Кассир : Адишов И. [11:04:26]line Счет N : (1)506888 [11:04:26]line 14.05.2024 10:47 [11:04:26]line ПРОДАЖА [11:04:26]line ТРК (МРК, ГНК): 21 [11:04:26]line Вид ГСМ : 2710194210 [11:04:26]line ДТ-К-5 [11:04:26]line 25.000 x 74.70 [11:04:26]line ИТОГ: 1867.50 [11:04:26]line Тип оплаты: Талоны: Топливная Карта [11:04:26]line 02750 [11:04:26]line ______________________ [11:04:26]line (подпись) [11:04:26]written 0, free lines is 4095 [11:04:27]Write to MH i2c: 01 00 00 30 1E 4E [11:04:27]Write i2c OK [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: 01 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: 01 07 00 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: 01 07 00 30 1E 00 00 00 00 00 0D 0E 70 [11:04:27]RasterBufferAndPrint [11:04:27]line [11:04:27]line [11:04:27]line [11:04:27]line [11:04:27]line [11:04:27]written 0, free lines is 3598 [11:04:27]MH_Cut [11:04:27]Write to MH i2c: D1 01 00 37 1E 01 27 [11:04:27]Write i2c OK [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: D1 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: D1 01 00 [11:04:27]MH_I2C_Read... [11:04:27]Read from MH i2c: D1 01 00 37 1E 00 26 [11:04:27]Write to MH i2c: 01 00 00 38 1E 56 [11:04:27]Write i2c OK [11:04:27]MH_I2C_Read... [11:04:27]*** Cut start [11:04:27]*** Purtial cut [11:04:27]*** Stage 1: CUTSNS_PIN = 1 [11:04:28]Read from MH i2c: 01 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: 01 07 00 [11:04:28]MH_I2C_Read... [11:04:28]*** Stop cut motor [11:04:28]*** Cut end [11:04:28]Read from MH i2c: 01 07 00 38 1E 00 00 00 00 00 FF 0F 6B [11:04:28]process_action print_text done [11:04:28]requested_data is exist [11:04:28]produce_requested_data [11:04:28]requested_item fm.sn is exist - process it [11:04:28]wFMCommunicate request_size=4 [11:04:28]MH_SAM_APDU [11:04:28]CAPDU: 80 11 00 00 [11:04:28]Write to MH i2c: E2 08 00 39 1E 80 11 00 00 00 00 00 00 D1 [11:04:28]Write i2c OK [11:04:28]MH_I2C_Read... [11:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:28]Read from MH i2c: E2 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 17 00 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 17 00 39 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 27 [11:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:04:28]wFMCommunicate OK [11:04:28]requested_item fd.num is exist - process it [11:04:28]SAM_PROTO_GetFieldsCounters [11:04:28]wFMCommunicate request_size=4 [11:04:28]MH_SAM_APDU [11:04:28]CAPDU: 80 13 00 00 [11:04:28]Write to MH i2c: E2 08 00 3A 1E 80 13 00 00 00 00 00 00 D4 [11:04:28]Write i2c OK [11:04:28]MH_I2C_Read... [11:04:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:28]Read from MH i2c: E2 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 62 00 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 62 00 3A 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 D9 05 01 00 0E 04 04 00 63 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 B5 [11:04:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 D9 05 01 00 0E 04 04 00 63 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:04:28]wFMCommunicate OK [11:04:28]SAM_PROTO_GetFieldsCounters done [11:04:28]requested_item shift.num is exist - process it [11:04:28]requested_item shift.opened is exist - process it [11:04:28]req_shift_opened [11:04:28]FM_GetShiftState [11:04:28]SAM_PROTO_GetShiftState [11:04:28]wFMCommunicate request_size=4 [11:04:28]MH_SAM_APDU [11:04:28]CAPDU: 80 13 01 00 [11:04:28]Write to MH i2c: E2 08 00 3B 1E 80 13 01 00 00 00 00 00 D6 [11:04:28]Write i2c OK [11:04:28]MH_I2C_Read... [11:04:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:28]Read from MH i2c: E2 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 0E 00 [11:04:28]MH_I2C_Read... [11:04:28]Read from MH i2c: E2 0E 00 3B 1E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 9E [11:04:28]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:04:28]wFMCommunicate OK [11:04:28]SAM_PROTO_GetShiftState done [11:04:28]FM_GetShiftState done [11:04:28]req_shift_opened done [11:04:28]requested_item shift.open_date is exist - process it [11:04:28]req_shift_open_date [11:04:28]req_shift_open_date done [11:04:28]produce_requested_data done [11:04:28]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67033,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:04:28]process_action_free print_text [11:04:28]json_value_free [11:04:28]json_value_free done [11:04:28]process_json_proto returns [11:04:28]Send response to host [11:04:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67033,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:04:28]free response buf [11:04:28]execute_script done [11:04:28]execute_script returns [11:04:28]free content buf [11:04:28]Sock 10.Close socket [11:04:28]Sock 10.Thread stoped [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:13]accept exits with 8 [11:06:13]New connection [11:06:13]New thread 3066760548 created [11:06:13]Thread 3066617188 joined [11:06:13]Waiting for new connection... [11:06:13] Sock 8.Parse request [11:06:13]Sock 8.Check first char [11:06:13]Sock 8.First char is OK [11:06:13]request: POST /json_proto HTTP/1.0 [11:06:13]Method: POST [11:06:13]URL: /json_proto [11:06:13]Method is POST - this is cgi request [11:06:13]url: /json_proto [11:06:13]query_string will be loaded in cgi processing [11:06:13]execute_cgi json_proto POST (null) [11:06:13]execute_cgi path=json_proto method=POST [11:06:13]POST find Content-Length [11:06:13]Host: 172.17.41.195:8080 [11:06:13]Content-Length: 816 [11:06:13]Content-Type: application/json [11:06:13] [11:06:13]POST finish read [11:06:13]Found Content-Length = 816 [11:06:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506889", "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" ] } } [11:06:13]execute_script... [11: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)506889", "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" ] } } [11:06:13]POST & json_proto [11:06:13]process_json_proto [11:06:13]json parsed OK: [11:06:13]protocol is kg_v1.0 [11:06:13]action value=close_receipt [11:06:13]process_action close_receipt [11:06:13]cmd_close_receipt [11:06:13]MH_GetDate [11:06:13]Write to MH i2c: F0 00 00 3C 1E 49 [11:06:13]Write i2c OK [11:06:13]MH_I2C_Read... [11:06:13]Read from MH i2c: F0 [11:06:13]MH_I2C_Read... [11:06:13]Read from MH i2c: F0 09 00 [11:06:13]MH_I2C_Read... [11:06:13]Read from MH i2c: F0 09 00 3C 1E 00 A9 45 43 66 FC 21 6F 64 D9 [11:06:13]GetLastDocTimeStamp 1715684442 [11:06:13]current date 1715684777 [11:06:13]FM_GetShiftState [11:06:13]SAM_PROTO_GetShiftState [11:06:13]wFMCommunicate request_size=4 [11:06:13]MH_SAM_APDU [11:06:13]CAPDU: 80 13 01 00 [11:06:13]Write to MH i2c: E2 08 00 3D 1E 80 13 01 00 00 00 00 00 D8 [11:06:13]Write i2c OK [11:06:13]MH_I2C_Read... [11:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:13]Read from MH i2c: E2 [11:06:13]MH_I2C_Read... [11:06:13]Read from MH i2c: E2 0E 00 [11:06:13]MH_I2C_Read... [11:06:13]Read from MH i2c: E2 0E 00 3D 1E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A0 [11:06:13]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:06:13]wFMCommunicate OK [11:06:13]SAM_PROTO_GetShiftState done [11:06:13]FM_GetShiftState done [11:06:13]opened in 1715646054 [11:06:13]opened+sec_in_day 1715732454 [11:06:13]quantity*price = 50033 [11:06:13]sum+1 = 50034 [11:06:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 41 14.05.2024 11:06 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67034 ФПД: 269421122013930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T110617&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67034&fm=269421122013930&tin=02508201610067®Number=0000000000091845&sum=50033 [11:06:14]StoreToDocumentArchive [11:06:14]shift 355 fd 67034 [11:06:14]save to /storage/0355/doc_00067034 [11:06:14]save last doc name /storage/0355/doc_00067034 to /storage/kkm_last_doc_name [11:06:14]save OK [11:06:14]Clear old archive folders... [11:06:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:14]tlvbuf is B6E92640 [11:06:14]SAM_PROTO_ClearQueue [11:06:14]wFMCommunicate request_size=4 [11:06:14]MH_SAM_APDU [11:06:14]CAPDU: 80 09 00 00 [11:06:14]Write to MH i2c: E2 08 00 4A 1E 80 09 00 00 00 00 00 00 DA [11:06:14]Write i2c OK [11:06:14]MH_I2C_Read... [11:06:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:14]Read from MH i2c: E2 [11:06:14]MH_I2C_Read... [11:06:14]Read from MH i2c: E2 03 00 [11:06:14]MH_I2C_Read... [11:06:14]Read from MH i2c: E2 03 00 4A 1E 00 90 00 DC [11:06:14]RAPDU: 90 00 [11:06:14]wFMCommunicate OK [11:06:14]SAM_PROTO_ClearQueue done [11:06:14]KKMCreateOFDPacket [11:06:14]OFDProtocolAddRootSTLVToBuf [11:06:14]FM_MakeSignedData [11:06:14]FM_MakeSignedData [11:06:14]SAM_PROTO_SignData [11:06:14]wFMCommunicate request_size=4 [11:06:14]MH_SAM_APDU [11:06:14]CAPDU: 80 0D 01 02 [11:06:14]Write to MH i2c: E2 08 00 4B 1E 80 0D 01 02 00 00 00 00 E2 [11:06:14]Write i2c OK [11:06:14]MH_I2C_Read... [11:06:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:14]Read from MH i2c: E2 [11:06:14]MH_I2C_Read... [11:06:14]Read from MH i2c: E2 03 00 [11:06:14]MH_I2C_Read... [11:06:14]Read from MH i2c: E2 03 00 4B 1E 00 90 00 DD [11:06:14]RAPDU: 90 00 [11:06:14]wFMCommunicate OK [11:06:14]wFMCommunicate request_size=255 [11:06:14]MH_SAM_APDU [11:06:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 A9 45 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DA 05 01 00 35 04 06 00 F5 [11:06:14]Write to MH i2c: E2 02 01 4C 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 29 00 00 00 F4 03 04 00 A9 45 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DA 05 01 00 35 04 06 00 F5 00 00 A8 [11:06:14]Write i2c OK [11:06:14]MH_I2C_Read... [11:06:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:14]Read from MH i2c: E2 [11:06:14]MH_I2C_Read... [11:06:14]Read from MH i2c: E2 03 00 [11:06:14]MH_I2C_Read... [11:06:14]Read from MH i2c: E2 03 00 4C 1E 00 90 00 DE [11:06:14]RAPDU: 90 00 [11:06:14]wFMCommunicate OK [11:06:14]wFMCommunicate request_size=10 [11:06:14]MH_SAM_APDU [11:06:14]CAPDU: 80 0D 02 02 05 09 7E 45 CA EA [11:06:14]Write to MH i2c: E2 0D 00 4D 1E 80 0D 02 02 05 00 09 7E 45 CA EA 00 00 6F [11:06:14]Write i2c OK [11:06:14]MH_I2C_Read... [11:06:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:14]Read from MH i2c: E2 [11:06:14]MH_I2C_Read... [11:06:14]Read from MH i2c: E2 03 00 [11:06:14]MH_I2C_Read... [11:06:14]Read from MH i2c: E2 03 00 4D 1E 00 90 00 DF [11:06:14]RAPDU: 90 00 [11:06:14]wFMCommunicate OK [11:06:14]wFMCommunicate request_size=4 [11:06:14]MH_SAM_APDU [11:06:14]CAPDU: 80 0D 03 02 [11:06:14]Write to MH i2c: E2 08 00 4E 1E 80 0D 03 02 00 00 00 00 E7 [11:06:14]Write i2c OK [11:06:14]MH_I2C_Read... [11:06:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:15]Read from MH i2c: E2 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 0B 00 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 0B 00 4E 1E 00 9B 52 1E 3C 9A 5E 3A FC 90 00 5D [11:06:15]RAPDU: 9B 52 1E 3C 9A 5E 3A FC 90 00 [11:06:15]wFMCommunicate OK [11:06:15]SAM_PROTO_SignData done [11:06:15]FM_MakeSignedData done [11:06:15]CreateOFDProtocolMessage [11:06:15]wFMCommunicate request_size=4 [11:06:15]MH_SAM_APDU [11:06:15]CAPDU: 80 11 00 00 [11:06:15]Write to MH i2c: E2 08 00 4F 1E 80 11 00 00 00 00 00 00 E7 [11:06:15]Write i2c OK [11:06:15]MH_I2C_Read... [11:06:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:15]Read from MH i2c: E2 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 17 00 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: E2 17 00 4F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3D [11: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 [11:06:15]wFMCommunicate OK [11:06:15]CreateOFDProtocolMessage done [11:06:15]OFDSenderStorePacket 67034 [11:06:15]StoreOFDPacket docnum=67034 [11: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 0F 01 00 00 B2 23 07 01 A7 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 29 00 00 00 F4 03 04 00 A9 45 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DA 05 01 00 35 04 06 00 F5 09 7E 45 CA EA 9B 52 1E 3C 9A 5E 3A FC [11:06:15]CheckFolder [11:06:15]dirname=/storage/ofd_packets [11:06:15]CheckFolder done [11:06:15]ProducePacketName [11:06:15]name=ofd_packets/00067034 [11:06:15]NVStorageSaveData ofd_packets/00067034 [11:06:15]File name is /storage/ofd_packets/00067034 [11:06:15]Write 301 bytes [11:06:15]NVStorageSaveData done [11:06:15]OFDSenderStorePacket done [11:06:15]KKMCreateOFDPacket done [11:06:15]NVStorageSaveData kkm_last_timestamp [11:06:15]File name is /storage/kkm_last_timestamp [11:06:15]Write 4 bytes [11:06:15]NVStorageSaveData done [11:06:15]ExternCall_PrintAddStr [11:06:15]wPrintStart [11:06:15]Write to MH i2c: 01 00 00 50 1E 6E [11:06:15]Write i2c OK [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: 01 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: 01 07 00 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: 01 07 00 50 1E 00 00 00 00 00 FF 0F 83 [11:06:15]RasterBufferAndPrint [11:06:15]line Счет N : (1)506889 [11:06:15]line ИНН: 02508201610067 [11:06:15]line Контрольно-Кассовый Чек [11:06:15]line ПРОДАЖА [11:06:15]line ТРК (МРК, ГНК) : 43 [11:06:15]line Товар: 2710124130 [11:06:15]line Аи-92-К-5 [11:06:15]line 7.490 * 66.80 [11:06:15]line = 500.33 [11:06:15]line НДС 12% НСП 1% [11:06:15]line > о реализуемом товаре [11:06:15]line ИТОГО: 500.33 [11:06:15]line НСП 1% : 4.43 [11:06:15]line НДС 12% : 53.13 [11:06:15]line Наличными: 0.00 [11:06:15]line Безнал.: 500.33 [11:06:15]line Место: АЗС № 91 "Партнер Нефть" [11:06:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:06:15]line СНО: Общий режим [11:06:15]line Чек 41 14.05.2024 11:06 [11:06:15]line Смена: 355 ФФД: 1.0 [11:06:15]line ЗНМ: 0300000119 [11:06:15]line РНМ: 0000000000091845 [11:06:15]line Версия ККМ: 001 [11:06:15]line Платежная система: Бакай Банк [11:06:15]line ФМ: 0000000000871829 [11:06:15]line ФД: 67034 [11:06:15]line ФПД: 269421122013930 [11:06:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T110617&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67034&fm=269421122013930&tin=02508201610067®Number=0000000000091845&sum=50033 [11:06:15]OFD Sender: Processing packet 67034 [packets to send 35, broken 34] [11:06:15]ProducePacketName [11:06:15]name=ofd_packets/00067034 [11:06:15]OFD Sender: To server: pG, [11:06:15]CommunicateWithHost lk.salyk.kg:30040 [11:06:15]ConnectInit lk.salyk.kg [11:06:15]written 0, free lines is 4095 [11:06:15]Connected sock=10 [11:06: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 B2 23 07 01 A7 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 29 00 00 00 F4 03 04 00 A9 45 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DA 05 01 00 35 04 06 00 F5 09 7E 45 CA EA 9B 52 1E 3C 9A 5E 3A FC [11:06: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 A4 69 47 00 C3 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 DA 05 01 00 F4 03 04 00 89 ED 42 66 B6 04 01 00 00 49 30 EA 3C 17 A2 6E 18 [11:06:15]CommunicateWithHost err = 0 [11:06:15]CheckOFDResponse [11:06:15]1017 (14) - 77093643461234 [11:06:15]1041 (16) - 0000000000871829 [11:06:15]1040 (4) - 67034 [11:06:15]1012 (4) - 14.05.2024 04:50 [11:06:15]1206 (1) - 0 [11:06:15]OFD Sender: Remove packet 67034 [11:06:15]ProducePacketName [11:06:15]name=ofd_packets/00067034 [11:06:15]NVStorageDeleteData [11:06:15]Write to MH i2c: 01 00 00 79 1E 97 [11:06:15]Write i2c OK [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: 01 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: 01 07 00 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: 01 07 00 79 1E 00 00 00 00 00 DC 0C 86 [11:06:15]RasterBufferAndPrint [11:06:15]line [11:06:15]line [11:06:15]line [11:06:15]line [11:06:15]line [11:06:15]written 0, free lines is 3298 [11:06:15]MH_Cut [11:06:15]Write to MH i2c: D1 01 00 80 1E 01 70 [11:06:15]Write i2c OK [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: D1 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: D1 01 00 [11:06:15]MH_I2C_Read... [11:06:15]Read from MH i2c: D1 01 00 80 1E 00 6F [11:06:15]Write to MH i2c: 01 00 00 81 1E 9F [11:06:15]Write i2c OK [11:06:15]MH_I2C_Read... [11:06:16]OFD Sender: No OFD packet to send [11:06:16]*** Cut start [11:06:16]*** Purtial cut [11:06:16]*** CUTSNS_PIN = 0 [11:06:16]*** Stage 1: CUTSNS_PIN = 1 [11:06:18]Read from MH i2c: 01 [11:06:18]MH_I2C_Read... [11:06:18]*** Stop cut motor [11:06:18]*** Cut end [11:06:18]Read from MH i2c: 01 07 00 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: 01 07 00 81 1E 00 00 00 00 00 FF 0F B4 [11:06:18]process_action close_receipt done [11:06:18]requested_data is exist [11:06:18]produce_requested_data [11:06:18]requested_item fm.sn is exist - process it [11:06:18]wFMCommunicate request_size=4 [11:06:18]MH_SAM_APDU [11:06:18]CAPDU: 80 11 00 00 [11:06:18]Write to MH i2c: E2 08 00 82 1E 80 11 00 00 00 00 00 00 1A [11:06:18]Write i2c OK [11:06:18]MH_I2C_Read... [11:06:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:18]Read from MH i2c: E2 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: E2 17 00 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: E2 17 00 82 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 70 [11:06:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:06:18]wFMCommunicate OK [11:06:18]requested_item fd.num is exist - process it [11:06:18]SAM_PROTO_GetFieldsCounters [11:06:18]wFMCommunicate request_size=4 [11:06:18]MH_SAM_APDU [11:06:18]CAPDU: 80 13 00 00 [11:06:18]Write to MH i2c: E2 08 00 83 1E 80 13 00 00 00 00 00 00 1D [11:06:18]Write i2c OK [11:06:18]MH_I2C_Read... [11:06:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:18]Read from MH i2c: E2 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: E2 62 00 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: E2 62 00 83 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 DA 05 01 00 0E 04 04 00 63 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 02 [11:06: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 DA 05 01 00 0E 04 04 00 63 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:06:18]wFMCommunicate OK [11:06:18]SAM_PROTO_GetFieldsCounters done [11:06:18]requested_item shift.num is exist - process it [11:06:18]requested_item shift.opened is exist - process it [11:06:18]req_shift_opened [11:06:18]FM_GetShiftState [11:06:18]SAM_PROTO_GetShiftState [11:06:18]wFMCommunicate request_size=4 [11:06:18]MH_SAM_APDU [11:06:18]CAPDU: 80 13 01 00 [11:06:18]Write to MH i2c: E2 08 00 84 1E 80 13 01 00 00 00 00 00 1F [11:06:18]Write i2c OK [11:06:18]MH_I2C_Read... [11:06:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:18]Read from MH i2c: E2 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: E2 0E 00 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: E2 0E 00 84 1E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 E7 [11:06:18]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:06:18]wFMCommunicate OK [11:06:18]SAM_PROTO_GetShiftState done [11:06:18]FM_GetShiftState done [11:06:18]req_shift_opened done [11:06:18]requested_item shift.open_date is exist - process it [11:06:18]req_shift_open_date [11:06:18]req_shift_open_date done [11:06:18]produce_requested_data done [11:06:18]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67034,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:06:18]process_action_free close_receipt [11:06:18]json_value_free [11:06:18]json_value_free done [11:06:18]process_json_proto returns [11:06:18]Send response to host [11:06:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67034,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:06:18]free response buf [11:06:18]execute_script done [11:06:18]execute_script returns [11:06:18]free content buf [11:06:18]Sock 8.Close socket [11:06:18]Sock 8.Thread stoped [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:07:58]accept exits with 9 [11:07:58]New connection [11:07:58]New thread 3066617188 created [11:07:58]Thread 3066760548 joined [11:07:58]Waiting for new connection... [11:07:58] Sock 9.Parse request [11:07:58]Sock 9.Check first char [11:07:58]Sock 9.First char is OK [11:07:58]request: POST /json_proto HTTP/1.0 [11:07:58]Method: POST [11:07:58]URL: /json_proto [11:07:58]Method is POST - this is cgi request [11:07:58]url: /json_proto [11:07:58]query_string will be loaded in cgi processing [11:07:58]execute_cgi json_proto POST (null) [11:07:58]execute_cgi path=json_proto method=POST [11:07:58]POST find Content-Length [11:07:58]Host: 172.17.41.195:8080 [11:07:58]Content-Length: 679 [11:07:58]Content-Type: application/json [11:07:58] [11:07:58]POST finish read [11:07:58]Found Content-Length = 679 [11:07:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:58]execute_script... [11:07: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)506891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 13.390, "sum" : 1000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:58]POST & json_proto [11:07:58]process_json_proto [11:07:58]json parsed OK: [11:07:58]protocol is kg_v1.0 [11:07:58]action value=close_receipt [11:07:58]process_action close_receipt [11:07:58]cmd_close_receipt [11:07:58]MH_GetDate [11:07:58]Write to MH i2c: F0 00 00 85 1E 92 [11:07:58]Write i2c OK [11:07:58]MH_I2C_Read... [11:07:58]Read from MH i2c: F0 [11:07:58]MH_I2C_Read... [11:07:58]Read from MH i2c: F0 09 00 [11:07:58]MH_I2C_Read... [11:07:58]Read from MH i2c: F0 09 00 85 1E 00 12 46 43 66 FC 21 6F 64 8C [11:07:58]GetLastDocTimeStamp 1715684777 [11:07:58]current date 1715684882 [11:07:58]FM_GetShiftState [11:07:58]SAM_PROTO_GetShiftState [11:07:58]wFMCommunicate request_size=4 [11:07:58]MH_SAM_APDU [11:07:58]CAPDU: 80 13 01 00 [11:07:58]Write to MH i2c: E2 08 00 86 1E 80 13 01 00 00 00 00 00 21 [11:07:58]Write i2c OK [11:07:58]MH_I2C_Read... [11:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:58]Read from MH i2c: E2 [11:07:58]MH_I2C_Read... [11:07:58]Read from MH i2c: E2 0E 00 [11:07:58]MH_I2C_Read... [11:07:58]Read from MH i2c: E2 0E 00 86 1E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 E9 [11:07:58]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:07:58]wFMCommunicate OK [11:07:58]SAM_PROTO_GetShiftState done [11:07:58]FM_GetShiftState done [11:07:58]opened in 1715646054 [11:07:58]opened+sec_in_day 1715732454 [11:07:58]quantity*price = 100023 [11:07:58]sum+1 = 100024 [11:07:58]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 СНО: Общий режим Чек 42 14.05.2024 11:08 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67035 ФПД: 271026195171288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T110802&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67035&fm=271026195171288&tin=02508201610067®Number=0000000000091845&sum=100000 [11:07:59]StoreToDocumentArchive [11:07:59]shift 355 fd 67035 [11:07:59]save to /storage/0355/doc_00067035 [11:07:59]save last doc name /storage/0355/doc_00067035 to /storage/kkm_last_doc_name [11:07:59]save OK [11:07:59]Clear old archive folders... [11:07:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:07:59]tlvbuf is 003B3220 [11:07:59]SAM_PROTO_ClearQueue [11:07:59]wFMCommunicate request_size=4 [11:07:59]MH_SAM_APDU [11:07:59]CAPDU: 80 09 00 00 [11:07:59]Write to MH i2c: E2 08 00 93 1E 80 09 00 00 00 00 00 00 23 [11:07:59]Write i2c OK [11:07:59]MH_I2C_Read... [11:07:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:59]Read from MH i2c: E2 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 03 00 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 03 00 93 1E 00 90 00 25 [11:07:59]RAPDU: 90 00 [11:07:59]wFMCommunicate OK [11:07:59]SAM_PROTO_ClearQueue done [11:07:59]KKMCreateOFDPacket [11:07:59]OFDProtocolAddRootSTLVToBuf [11:07:59]FM_MakeSignedData [11:07:59]FM_MakeSignedData [11:07:59]SAM_PROTO_SignData [11:07:59]wFMCommunicate request_size=4 [11:07:59]MH_SAM_APDU [11:07:59]CAPDU: 80 0D 01 02 [11:07:59]Write to MH i2c: E2 08 00 94 1E 80 0D 01 02 00 00 00 00 2B [11:07:59]Write i2c OK [11:07:59]MH_I2C_Read... [11:07:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:59]Read from MH i2c: E2 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 03 00 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 03 00 94 1E 00 90 00 26 [11:07:59]RAPDU: 90 00 [11:07:59]wFMCommunicate OK [11:07:59]wFMCommunicate request_size=255 [11:07:59]MH_SAM_APDU [11:07:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2A 00 00 00 F4 03 04 00 12 46 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DB 05 01 00 35 04 06 00 F6 7F 34 16 [11:07:59]Write to MH i2c: E2 02 01 95 1E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 12 46 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DB 05 01 00 35 04 06 00 F6 7F 34 16 00 00 34 [11:07:59]Write i2c OK [11:07:59]MH_I2C_Read... [11:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:59]Read from MH i2c: E2 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 03 00 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 03 00 95 1E 00 90 00 27 [11:07:59]RAPDU: 90 00 [11:07:59]wFMCommunicate OK [11:07:59]wFMCommunicate request_size=7 [11:07:59]MH_SAM_APDU [11:07:59]CAPDU: 80 0D 02 02 02 87 D8 [11:07:59]Write to MH i2c: E2 0A 00 96 1E 80 0D 02 02 02 00 87 D8 00 00 91 [11:07:59]Write i2c OK [11:07:59]MH_I2C_Read... [11:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:59]Read from MH i2c: E2 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 03 00 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 03 00 96 1E 00 90 00 28 [11:07:59]RAPDU: 90 00 [11:07:59]wFMCommunicate OK [11:07:59]wFMCommunicate request_size=4 [11:07:59]MH_SAM_APDU [11:07:59]CAPDU: 80 0D 03 02 [11:07:59]Write to MH i2c: E2 08 00 97 1E 80 0D 03 02 00 00 00 00 30 [11:07:59]Write i2c OK [11:07:59]MH_I2C_Read... [11:07:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:59]Read from MH i2c: E2 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 0B 00 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 0B 00 97 1E 00 16 FF BA 74 9D 8F C6 E6 90 00 4C [11:07:59]RAPDU: 16 FF BA 74 9D 8F C6 E6 90 00 [11:07:59]wFMCommunicate OK [11:07:59]SAM_PROTO_SignData done [11:07:59]FM_MakeSignedData done [11:07:59]CreateOFDProtocolMessage [11:07:59]wFMCommunicate request_size=4 [11:07:59]MH_SAM_APDU [11:07:59]CAPDU: 80 11 00 00 [11:07:59]Write to MH i2c: E2 08 00 98 1E 80 11 00 00 00 00 00 00 30 [11:07:59]Write i2c OK [11:07:59]MH_I2C_Read... [11:07:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:59]Read from MH i2c: E2 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 17 00 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: E2 17 00 98 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 86 [11:07:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:07:59]wFMCommunicate OK [11:07:59]CreateOFDProtocolMessage done [11:07:59]OFDSenderStorePacket 67035 [11:07:59]StoreOFDPacket docnum=67035 [11:07:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 17 8F 04 01 0F 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 2A 00 00 00 F4 03 04 00 12 46 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DB 05 01 00 35 04 06 00 F6 7F 34 16 87 D8 16 FF BA 74 9D 8F C6 E6 [11:07:59]CheckFolder [11:07:59]dirname=/storage/ofd_packets [11:07:59]CheckFolder done [11:07:59]ProducePacketName [11:07:59]name=ofd_packets/00067035 [11:07:59]NVStorageSaveData ofd_packets/00067035 [11:07:59]File name is /storage/ofd_packets/00067035 [11:07:59]Write 298 bytes [11:07:59]NVStorageSaveData done [11:07:59]OFDSenderStorePacket done [11:07:59]KKMCreateOFDPacket done [11:07:59]NVStorageSaveData kkm_last_timestamp [11:07:59]File name is /storage/kkm_last_timestamp [11:07:59]Write 4 bytes [11:07:59]NVStorageSaveData done [11:07:59]ExternCall_PrintAddStr [11:07:59]wPrintStart [11:07:59]Write to MH i2c: 01 00 00 99 1E B7 [11:07:59]Write i2c OK [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: 01 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: 01 07 00 [11:07:59]MH_I2C_Read... [11:07:59]Read from MH i2c: 01 07 00 99 1E 00 00 00 00 00 FF 0F CC [11:07:59]RasterBufferAndPrint [11:07:59]line Счет N : (1)506891 [11:07:59]line ИНН: 02508201610067 [11:07:59]line Контрольно-Кассовый Чек [11:07:59]line ПРОДАЖА [11:07:59]line ТРК (МРК, ГНК) : 31 [11:07:59]line Товар: 2710194210 [11:07:59]line ДТ-К-5 [11:07:59]line 13.390 * 74.70 [11:07:59]line = 1000.23 [11:07:59]line НДС 12% НСП 1% [11:07:59]line > о реализуемом товаре [11:07:59]line ОКРУГЛЕНИЕ: -0.23 [11:07:59]line ИТОГО: 1000.00 [11:07:59]line Внесено: 1000.00 [11:07:59]line СДАЧА: 0.00 [11:07:59]line НСП 1% : 8.85 [11:07:59]line НДС 12% : 106.22 [11:07:59]line Наличными: 1000.00 [11:07:59]line Безнал.: 0.00 [11:07:59]line Место: АЗС № 91 "Партнер Нефть" [11:07:59]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:07:59]line СНО: Общий режим [11:07:59]line Чек 42 14.05.2024 11:08 [11:07:59]line Смена: 355 ФФД: 1.0 [11:07:59]line ЗНМ: 0300000119 [11:07:59]line РНМ: 0000000000091845 [11:07:59]line Версия ККМ: 001 [11:07:59]line ФМ: 0000000000871829 [11:07:59]line ФД: 67035 [11:07:59]line ФПД: 271026195171288 [11:08:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T110802&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67035&fm=271026195171288&tin=02508201610067®Number=0000000000091845&sum=100000 [11:08:00]OFD Sender: Processing packet 67035 [packets to send 35, broken 34] [11:08:00]ProducePacketName [11:08:00]name=ofd_packets/00067035 [11:08:00]OFD Sender: To server: pG, [11:08:00]CommunicateWithHost lk.salyk.kg:30040 [11:08:00]ConnectInit lk.salyk.kg [11:08:00]written 0, free lines is 4095 [11:08:00]Connected sock=10 [11:08:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 17 8F 04 01 0F 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 2A 00 00 00 F4 03 04 00 12 46 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DB 05 01 00 35 04 06 00 F6 7F 34 16 87 D8 16 FF BA 74 9D 8F C6 E6 [11:08: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 0B 36 47 00 2D 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DB 05 01 00 F4 03 04 00 F2 ED 42 66 B6 04 01 00 00 20 E6 38 94 8E EE 3A 0A [11:08:00]CommunicateWithHost err = 0 [11:08:00]CheckOFDResponse [11:08:00]1017 (14) - 77093643461234 [11:08:00]1041 (16) - 0000000000871829 [11:08:00]1040 (4) - 67035 [11:08:00]1012 (4) - 14.05.2024 04:52 [11:08:00]1206 (1) - 0 [11:08:00]OFD Sender: Remove packet 67035 [11:08:00]ProducePacketName [11:08:00]name=ofd_packets/00067035 [11:08:00]NVStorageDeleteData [11:08:00]Write to MH i2c: 01 00 00 C3 1E E1 [11:08:00]Write i2c OK [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: 01 [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: 01 07 00 [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: 01 07 00 C3 1E 00 00 00 00 00 B6 0C AA [11:08:00]RasterBufferAndPrint [11:08:00]line [11:08:00]line [11:08:00]line [11:08:00]line [11:08:00]line [11:08:00]written 0, free lines is 3258 [11:08:00]MH_Cut [11:08:00]Write to MH i2c: D1 01 00 CA 1E 01 BA [11:08:00]Write i2c OK [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: D1 [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: D1 01 00 [11:08:00]MH_I2C_Read... [11:08:00]Read from MH i2c: D1 01 00 CA 1E 00 B9 [11:08:00]Write to MH i2c: 01 00 00 CB 1E E9 [11:08:00]Write i2c OK [11:08:00]MH_I2C_Read... [11:08:01]OFD Sender: No OFD packet to send [11:08:01]*** Cut start [11:08:01]*** Purtial cut [11:08:01]*** Stage 1: CUTSNS_PIN = 1 [11:08:01]Read from MH i2c: 01 [11:08:01]MH_I2C_Read... [11:08:01]*** Stop cut motor [11:08:01]*** Cut end [11:08:01]Read from MH i2c: 01 07 00 [11:08:01]MH_I2C_Read... [11:08:01]Read from MH i2c: 01 07 00 CB 1E 00 00 00 00 00 FF 0F FE [11:08:01]process_action close_receipt done [11:08:01]requested_data is exist [11:08:01]produce_requested_data [11:08:01]requested_item fm.sn is exist - process it [11:08:01]wFMCommunicate request_size=4 [11:08:01]MH_SAM_APDU [11:08:01]CAPDU: 80 11 00 00 [11:08:01]Write to MH i2c: E2 08 00 CC 1E 80 11 00 00 00 00 00 00 64 [11:08:01]Write i2c OK [11:08:01]MH_I2C_Read... [11:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:01]Read from MH i2c: E2 [11:08:01]MH_I2C_Read... [11:08:01]Read from MH i2c: E2 17 00 [11:08:01]MH_I2C_Read... [11:08:01]Read from MH i2c: E2 17 00 CC 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BA [11:08: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:08:01]wFMCommunicate OK [11:08:01]requested_item fd.num is exist - process it [11:08:01]SAM_PROTO_GetFieldsCounters [11:08:01]wFMCommunicate request_size=4 [11:08:01]MH_SAM_APDU [11:08:01]CAPDU: 80 13 00 00 [11:08:01]Write to MH i2c: E2 08 00 CD 1E 80 13 00 00 00 00 00 00 67 [11:08:01]Write i2c OK [11:08:01]MH_I2C_Read... [11:08:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:02]Read from MH i2c: E2 [11:08:02]MH_I2C_Read... [11:08:02]Read from MH i2c: E2 62 00 [11:08:02]MH_I2C_Read... [11:08:02]Read from MH i2c: E2 62 00 CD 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 DB 05 01 00 0E 04 04 00 63 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 50 [11:08: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 DB 05 01 00 0E 04 04 00 63 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:08:02]wFMCommunicate OK [11:08:02]SAM_PROTO_GetFieldsCounters done [11:08:02]requested_item shift.num is exist - process it [11:08:02]requested_item shift.opened is exist - process it [11:08:02]req_shift_opened [11:08:02]FM_GetShiftState [11:08:02]SAM_PROTO_GetShiftState [11:08:02]wFMCommunicate request_size=4 [11:08:02]MH_SAM_APDU [11:08:02]CAPDU: 80 13 01 00 [11:08:02]Write to MH i2c: E2 08 00 CE 1E 80 13 01 00 00 00 00 00 69 [11:08:02]Write i2c OK [11:08:02]MH_I2C_Read... [11:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:02]Read from MH i2c: E2 [11:08:02]MH_I2C_Read... [11:08:02]Read from MH i2c: E2 0E 00 [11:08:02]MH_I2C_Read... [11:08:02]Read from MH i2c: E2 0E 00 CE 1E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 31 [11:08:02]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:08:02]wFMCommunicate OK [11:08:02]SAM_PROTO_GetShiftState done [11:08:02]FM_GetShiftState done [11:08:02]req_shift_opened done [11:08:02]requested_item shift.open_date is exist - process it [11:08:02]req_shift_open_date [11:08:02]req_shift_open_date done [11:08:02]produce_requested_data done [11:08:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67035,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:08:02]process_action_free close_receipt [11:08:02]json_value_free [11:08:02]json_value_free done [11:08:02]process_json_proto returns [11:08:02]Send response to host [11:08:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67035,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:08:02]free response buf [11:08:02]execute_script done [11:08:02]execute_script returns [11:08:02]free content buf [11:08:02]Sock 9.Close socket [11:08:02]Sock 9.Thread stoped [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:18]accept exits with 8 [11:08:18]New connection [11:08:18]New thread 3066760548 created [11:08:18]Thread 3066617188 joined [11:08:18]Waiting for new connection... [11:08:18] Sock 8.Parse request [11:08:18]Sock 8.Check first char [11:08:18]Sock 8.First char is OK [11:08:18]request: POST /json_proto HTTP/1.0 [11:08:18]Method: POST [11:08:18]URL: /json_proto [11:08:18]Method is POST - this is cgi request [11:08:18]url: /json_proto [11:08:18]query_string will be loaded in cgi processing [11:08:18]execute_cgi json_proto POST (null) [11:08:18]execute_cgi path=json_proto method=POST [11:08:18]POST find Content-Length [11:08:18]Host: 172.17.41.195:8080 [11:08:18]Content-Length: 1144 [11:08:18]Content-Type: application/json [11:08:18] [11:08:18]POST finish read [11:08:18]Found Content-Length = 1144 [11:08: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)506890\u000A14.05.2024 10:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 2004.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106282\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:18]execute_script... [11:08: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)506890\u000A14.05.2024 10:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 2004.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106282\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:18]POST & json_proto [11:08:18]process_json_proto [11:08:18]json parsed OK: [11:08:18]protocol is kg_v1.0 [11:08:18]action value=print_text [11:08:18]process_action print_text [11:08:18]cmd_print_text [11:08:18]ExternCall_PrintAddStr [11:08:18]wPrintStart [11:08:18]Write to MH i2c: 01 00 00 CF 1E ED [11:08:18]Write i2c OK [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: 01 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: 01 07 00 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: 01 07 00 CF 1E 00 00 00 00 00 FF 0F 02 [11:08:18]RasterBufferAndPrint [11:08:18]line *****ТОВАРНЫЙ ЧЕК***** [11:08:18]line АЗС-91 [11:08:18]line Партнер нефть [11:08:18]line 02508201610067 [11:08:18]line Кассир : Адишов И. [11:08:18]line Счет N : (1)506890 [11:08:18]line 14.05.2024 10:51 [11:08:18]line ПРОДАЖА [11:08:18]line ТРК (МРК, ГНК): 13 [11:08:18]line Вид ГСМ : 2710124130 [11:08:18]line Аи-92-К-5 [11:08:18]line 30.000 x 66.80 [11:08:18]line ИТОГ: 2004.00 [11:08:18]line Тип оплаты: Талоны: ТК ГПНА Online [11:08:18]line 30106282 [11:08:18]line ______________________ [11:08:18]line (подпись) [11:08:18]written 0, free lines is 4095 [11:08:18]Write to MH i2c: 01 00 00 E3 1E 01 [11:08:18]Write i2c OK [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: 01 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: 01 07 00 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: 01 07 00 E3 1E 00 00 00 00 00 0F 0E 25 [11:08:18]RasterBufferAndPrint [11:08:18]line [11:08:18]line [11:08:18]line [11:08:18]line [11:08:18]line [11:08:18]written 0, free lines is 3600 [11:08:18]MH_Cut [11:08:18]Write to MH i2c: D1 01 00 EA 1E 01 DA [11:08:18]Write i2c OK [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: D1 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: D1 01 00 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: D1 01 00 EA 1E 00 D9 [11:08:18]Write to MH i2c: 01 00 00 EB 1E 09 [11:08:18]Write i2c OK [11:08:18]MH_I2C_Read... [11:08:19]*** Cut start [11:08:19]*** Purtial cut [11:08:19]*** CUTSNS_PIN = 0 [11:08:19]*** Stage 1: CUTSNS_PIN = 1 [11:08:21]OFD Sender: No OFD packet to send [11:08:21]Read from MH i2c: 01 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: 01 07 00 [11:08:21]MH_I2C_Read... [11:08:21]*** Stop cut motor [11:08:21]*** Cut end [11:08:21]Read from MH i2c: 01 07 00 EB 1E 00 00 00 00 00 FF 0F 1E [11:08:21]process_action print_text done [11:08:21]requested_data is exist [11:08:21]produce_requested_data [11:08:21]requested_item fm.sn is exist - process it [11:08:21]wFMCommunicate request_size=4 [11:08:21]MH_SAM_APDU [11:08:21]CAPDU: 80 11 00 00 [11:08:21]Write to MH i2c: E2 08 00 EC 1E 80 11 00 00 00 00 00 00 84 [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:21]Read from MH i2c: E2 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 17 00 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 17 00 EC 1E 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:08: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:08:21]wFMCommunicate OK [11:08:21]requested_item fd.num is exist - process it [11:08:21]SAM_PROTO_GetFieldsCounters [11:08:21]wFMCommunicate request_size=4 [11:08:21]MH_SAM_APDU [11:08:21]CAPDU: 80 13 00 00 [11:08:21]Write to MH i2c: E2 08 00 ED 1E 80 13 00 00 00 00 00 00 87 [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:21]Read from MH i2c: E2 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 62 00 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 62 00 ED 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 DB 05 01 00 0E 04 04 00 63 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 70 [11:08: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 DB 05 01 00 0E 04 04 00 63 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:08:21]wFMCommunicate OK [11:08:21]SAM_PROTO_GetFieldsCounters done [11:08:21]requested_item shift.num is exist - process it [11:08:21]requested_item shift.opened is exist - process it [11:08:21]req_shift_opened [11:08:21]FM_GetShiftState [11:08:21]SAM_PROTO_GetShiftState [11:08:21]wFMCommunicate request_size=4 [11:08:21]MH_SAM_APDU [11:08:21]CAPDU: 80 13 01 00 [11:08:21]Write to MH i2c: E2 08 00 EE 1E 80 13 01 00 00 00 00 00 89 [11:08:21]Write i2c OK [11:08:21]MH_I2C_Read... [11:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:21]Read from MH i2c: E2 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 0E 00 [11:08:21]MH_I2C_Read... [11:08:21]Read from MH i2c: E2 0E 00 EE 1E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 51 [11:08:21]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:08:21]wFMCommunicate OK [11:08:21]SAM_PROTO_GetShiftState done [11:08:21]FM_GetShiftState done [11:08:21]req_shift_opened done [11:08:21]requested_item shift.open_date is exist - process it [11:08:21]req_shift_open_date [11:08:21]req_shift_open_date done [11:08:21]produce_requested_data done [11:08:21]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67035,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:08:21]process_action_free print_text [11:08:21]json_value_free [11:08:21]json_value_free done [11:08:21]process_json_proto returns [11:08:21]Send response to host [11:08:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67035,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:08:21]free response buf [11:08:21]execute_script done [11:08:21]execute_script returns [11:08:21]free content buf [11:08:21]Sock 8.Close socket [11:08:21]Sock 8.Thread stoped [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:43]accept exits with 9 [11:08:43]New connection [11:08:43]New thread 3066617188 created [11:08:43]Thread 3066760548 joined [11:08:43]Waiting for new connection... [11:08:43] Sock 9.Parse request [11:08:43]Sock 9.Check first char [11:08:43]Sock 9.First char is OK [11:08:43]request: POST /json_proto HTTP/1.0 [11:08:43]Method: POST [11:08:43]URL: /json_proto [11:08:43]Method is POST - this is cgi request [11:08:43]url: /json_proto [11:08:43]query_string will be loaded in cgi processing [11:08:43]execute_cgi json_proto POST (null) [11:08:43]execute_cgi path=json_proto method=POST [11:08:43]POST find Content-Length [11:08:43]Host: 172.17.41.195:8080 [11:08:43]Content-Length: 674 [11:08:43]Content-Type: application/json [11:08:43] [11:08:43]POST finish read [11:08:43]Found Content-Length = 674 [11:08:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 8.040, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [11:08:43]execute_script... [11:08:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 8.040, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [11:08:43]POST & json_proto [11:08:43]process_json_proto [11:08:43]json parsed OK: [11:08:43]protocol is kg_v1.0 [11:08:43]action value=close_receipt [11:08:43]process_action close_receipt [11:08:43]cmd_close_receipt [11:08:43]MH_GetDate [11:08:43]Write to MH i2c: F0 00 00 EF 1E FC [11:08:43]Write i2c OK [11:08:43]MH_I2C_Read... [11:08:43]Read from MH i2c: F0 [11:08:43]MH_I2C_Read... [11:08:43]Read from MH i2c: F0 09 00 [11:08:43]MH_I2C_Read... [11:08:43]Read from MH i2c: F0 09 00 EF 1E 00 3F 46 43 66 FC 21 6F 64 23 [11:08:43]GetLastDocTimeStamp 1715684882 [11:08:43]current date 1715684927 [11:08:43]FM_GetShiftState [11:08:43]SAM_PROTO_GetShiftState [11:08:43]wFMCommunicate request_size=4 [11:08:43]MH_SAM_APDU [11:08:43]CAPDU: 80 13 01 00 [11:08:43]Write to MH i2c: E2 08 00 F0 1E 80 13 01 00 00 00 00 00 8B [11:08:43]Write i2c OK [11:08:43]MH_I2C_Read... [11:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:43]Read from MH i2c: E2 [11:08:43]MH_I2C_Read... [11:08:43]Read from MH i2c: E2 0E 00 [11:08:43]MH_I2C_Read... [11:08:43]Read from MH i2c: E2 0E 00 F0 1E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 53 [11:08:43]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:08:43]wFMCommunicate OK [11:08:43]SAM_PROTO_GetShiftState done [11:08:43]FM_GetShiftState done [11:08:43]opened in 1715646054 [11:08:43]opened+sec_in_day 1715732454 [11:08:43]quantity*price = 60058 [11:08:43]sum+1 = 60060 [11:08:43]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 СНО: Общий режим Чек 43 14.05.2024 11:08 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67036 ФПД: 105235121514190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T110847&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67036&fm=105235121514190&tin=02508201610067®Number=0000000000091845&sum=60000 [11:08:44]StoreToDocumentArchive [11:08:44]shift 355 fd 67036 [11:08:44]save to /storage/0355/doc_00067036 [11:08:44]save last doc name /storage/0355/doc_00067036 to /storage/kkm_last_doc_name [11:08:44]save OK [11:08:44]Clear old archive folders... [11:08:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:08:44]tlvbuf is 00364510 [11:08:44]SAM_PROTO_ClearQueue [11:08:44]wFMCommunicate request_size=4 [11:08:44]MH_SAM_APDU [11:08:44]CAPDU: 80 09 00 00 [11:08:44]Write to MH i2c: E2 08 00 FD 1E 80 09 00 00 00 00 00 00 8D [11:08:44]Write i2c OK [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: E2 [11:08:44]MH_I2C_Read... [11:08:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:44]Read from MH i2c: E2 03 00 [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: E2 03 00 FD 1E 00 90 00 8F [11:08:44]RAPDU: 90 00 [11:08:44]wFMCommunicate OK [11:08:44]SAM_PROTO_ClearQueue done [11:08:44]KKMCreateOFDPacket [11:08:44]OFDProtocolAddRootSTLVToBuf [11:08:44]FM_MakeSignedData [11:08:44]FM_MakeSignedData [11:08:44]SAM_PROTO_SignData [11:08:44]wFMCommunicate request_size=4 [11:08:44]MH_SAM_APDU [11:08:44]CAPDU: 80 0D 01 02 [11:08:44]Write to MH i2c: E2 08 00 FE 1E 80 0D 01 02 00 00 00 00 95 [11:08:44]Write i2c OK [11:08:44]MH_I2C_Read... [11:08:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:44]Read from MH i2c: E2 [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: E2 03 00 [11:08:44]MH_I2C_Read... [11:08:44]Read from MH i2c: E2 03 00 FE 1E 00 90 00 90 [11:08:44]RAPDU: 90 00 [11:08:44]wFMCommunicate OK [11:08:44]wFMCommunicate request_size=255 [11:08:44]MH_SAM_APDU [11:08: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 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 2B 00 00 00 F4 03 04 00 3F 46 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DC 05 01 00 35 04 06 00 5F B5 F6 09 [11:08:44]Write to MH i2c: E2 02 01 FF 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 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 2B 00 00 00 F4 03 04 00 3F 46 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DC 05 01 00 35 04 06 00 5F B5 F6 09 00 00 AB [11:08:44]Write i2c OK [11:08:44]MH_I2C_Read... [11:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:45]Read from MH i2c: E2 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: E2 03 00 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: E2 03 00 FF 1E 00 90 00 91 [11:08:45]RAPDU: 90 00 [11:08:45]wFMCommunicate OK [11:08:45]wFMCommunicate request_size=7 [11:08:45]MH_SAM_APDU [11:08:45]CAPDU: 80 0D 02 02 02 26 CE [11:08:45]Write to MH i2c: E2 0A 00 00 1F 80 0D 02 02 02 00 26 CE 00 00 91 [11:08:45]Write i2c OK [11:08:45]MH_I2C_Read... [11:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:45]Read from MH i2c: E2 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: E2 03 00 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: E2 03 00 00 1F 00 90 00 93 [11:08:45]RAPDU: 90 00 [11:08:45]wFMCommunicate OK [11:08:45]wFMCommunicate request_size=4 [11:08:45]MH_SAM_APDU [11:08:45]CAPDU: 80 0D 03 02 [11:08:45]Write to MH i2c: E2 08 00 01 1F 80 0D 03 02 00 00 00 00 9B [11:08:45]Write i2c OK [11:08:45]MH_I2C_Read... [11:08:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:45]Read from MH i2c: E2 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: E2 0B 00 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: E2 0B 00 01 1F 00 CC 62 37 5B CE 67 DA 80 90 00 EB [11:08:45]RAPDU: CC 62 37 5B CE 67 DA 80 90 00 [11:08:45]wFMCommunicate OK [11:08:45]SAM_PROTO_SignData done [11:08:45]FM_MakeSignedData done [11:08:45]CreateOFDProtocolMessage [11:08:45]wFMCommunicate request_size=4 [11:08:45]MH_SAM_APDU [11:08:45]CAPDU: 80 11 00 00 [11:08:45]Write to MH i2c: E2 08 00 02 1F 80 11 00 00 00 00 00 00 9B [11:08:45]Write i2c OK [11:08:45]MH_I2C_Read... [11:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:45]Read from MH i2c: E2 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: E2 17 00 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: E2 17 00 02 1F 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:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:08:45]wFMCommunicate OK [11:08:45]CreateOFDProtocolMessage done [11:08:45]OFDSenderStorePacket 67036 [11:08:45]StoreOFDPacket docnum=67036 [11:08:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 00 CD 04 01 BC 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 2B 00 00 00 F4 03 04 00 3F 46 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DC 05 01 00 35 04 06 00 5F B5 F6 09 26 CE CC 62 37 5B CE 67 DA 80 [11:08:45]CheckFolder [11:08:45]dirname=/storage/ofd_packets [11:08:45]CheckFolder done [11:08:45]ProducePacketName [11:08:45]name=ofd_packets/00067036 [11:08:45]NVStorageSaveData ofd_packets/00067036 [11:08:45]File name is /storage/ofd_packets/00067036 [11:08:45]Write 298 bytes [11:08:45]NVStorageSaveData done [11:08:45]OFDSenderStorePacket done [11:08:45]KKMCreateOFDPacket done [11:08:45]NVStorageSaveData kkm_last_timestamp [11:08:45]File name is /storage/kkm_last_timestamp [11:08:45]Write 4 bytes [11:08:45]NVStorageSaveData done [11:08:45]ExternCall_PrintAddStr [11:08:45]wPrintStart [11:08:45]Write to MH i2c: 01 00 00 03 1F 22 [11:08:45]Write i2c OK [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: 01 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: 01 07 00 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: 01 07 00 03 1F 00 00 00 00 00 FF 0F 37 [11:08:45]RasterBufferAndPrint [11:08:45]line Счет N : (1)506892 [11:08:45]line ИНН: 02508201610067 [11:08:45]line Контрольно-Кассовый Чек [11:08:45]line ПРОДАЖА [11:08:45]line ТРК (МРК, ГНК) : 31 [11:08:45]line Товар: 2710194210 [11:08:45]line ДТ-К-5 [11:08:45]line 8.040 * 74.70 [11:08:45]line = 600.59 [11:08:45]line НДС 12% НСП 1% [11:08:45]line > о реализуемом товаре [11:08:45]line ОКРУГЛЕНИЕ: -0.59 [11:08:45]line ИТОГО: 600.00 [11:08:45]line Внесено: 600.00 [11:08:45]line СДАЧА: 0.00 [11:08:45]line НСП 1% : 5.31 [11:08:45]line НДС 12% : 63.78 [11:08:45]line Наличными: 600.00 [11:08:45]line Безнал.: 0.00 [11:08:45]line Место: АЗС № 91 "Партнер Нефть" [11:08:45]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:08:45]line СНО: Общий режим [11:08:45]line Чек 43 14.05.2024 11:08 [11:08:45]line Смена: 355 ФФД: 1.0 [11:08:45]line ЗНМ: 0300000119 [11:08:45]line РНМ: 0000000000091845 [11:08:45]line Версия ККМ: 001 [11:08:45]line ФМ: 0000000000871829 [11:08:45]line ФД: 67036 [11:08:45]line ФПД: 105235121514190 [11:08:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T110847&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67036&fm=105235121514190&tin=02508201610067®Number=0000000000091845&sum=60000 [11:08:45]OFD Sender: Processing packet 67036 [packets to send 35, broken 34] [11:08:45]ProducePacketName [11:08:45]name=ofd_packets/00067036 [11:08:45]OFD Sender: To server: pG, [11:08:45]CommunicateWithHost lk.salyk.kg:30040 [11:08:45]ConnectInit lk.salyk.kg [11:08:45]written 0, free lines is 4095 [11:08:45]Connected sock=10 [11:08:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 00 CD 04 01 BC 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 2B 00 00 00 F4 03 04 00 3F 46 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DC 05 01 00 35 04 06 00 5F B5 F6 09 26 CE CC 62 37 5B CE 67 DA 80 [11:08: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 AF E5 47 00 04 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 DC 05 01 00 F4 03 04 00 1F EE 42 66 B6 04 01 00 00 6F 42 42 C7 51 C3 7B FA [11:08:45]CommunicateWithHost err = 0 [11:08:45]CheckOFDResponse [11:08:45]1017 (14) - 77093643461234 [11:08:45]1041 (16) - 0000000000871829 [11:08:45]1040 (4) - 67036 [11:08:45]1012 (4) - 14.05.2024 04:52 [11:08:45]1206 (1) - 0 [11:08:45]OFD Sender: Remove packet 67036 [11:08:45]ProducePacketName [11:08:45]name=ofd_packets/00067036 [11:08:45]NVStorageDeleteData [11:08:45]Write to MH i2c: 01 00 00 2D 1F 4C [11:08:45]Write i2c OK [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: 01 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: 01 07 00 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: 01 07 00 2D 1F 00 00 00 00 00 B3 0C 12 [11:08:45]RasterBufferAndPrint [11:08:45]line [11:08:45]line [11:08:45]line [11:08:45]line [11:08:45]line [11:08:45]written 0, free lines is 3257 [11:08:45]MH_Cut [11:08:45]Write to MH i2c: D1 01 00 34 1F 01 25 [11:08:45]Write i2c OK [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: D1 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: D1 01 00 [11:08:45]MH_I2C_Read... [11:08:45]Read from MH i2c: D1 01 00 34 1F 00 24 [11:08:45]Write to MH i2c: 01 00 00 35 1F 54 [11:08:45]Write i2c OK [11:08:45]MH_I2C_Read... [11:08:46]OFD Sender: No OFD packet to send [11:08:46]*** Cut start [11:08:46]*** Purtial cut [11:08:46]*** Stage 1: CUTSNS_PIN = 1 [11:08:47]Read from MH i2c: 01 [11:08:47]MH_I2C_Read... [11:08:47]*** Stop cut motor [11:08:47]*** Cut end [11:08:47]Read from MH i2c: 01 07 00 [11:08:47]MH_I2C_Read... [11:08:47]Read from MH i2c: 01 07 00 35 1F 00 00 00 00 00 FF 0F 69 [11:08:47]process_action close_receipt done [11:08:47]requested_data is exist [11:08:47]produce_requested_data [11:08:47]requested_item fm.sn is exist - process it [11:08:47]wFMCommunicate request_size=4 [11:08:47]MH_SAM_APDU [11:08:47]CAPDU: 80 11 00 00 [11:08:47]Write to MH i2c: E2 08 00 36 1F 80 11 00 00 00 00 00 00 CF [11:08:47]Write i2c OK [11:08:47]MH_I2C_Read... [11:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:47]Read from MH i2c: E2 [11:08:47]MH_I2C_Read... [11:08:47]Read from MH i2c: E2 17 00 [11:08:47]MH_I2C_Read... [11:08:47]Read from MH i2c: E2 17 00 36 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 25 [11:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:08:47]wFMCommunicate OK [11:08:47]requested_item fd.num is exist - process it [11:08:47]SAM_PROTO_GetFieldsCounters [11:08:47]wFMCommunicate request_size=4 [11:08:47]MH_SAM_APDU [11:08:47]CAPDU: 80 13 00 00 [11:08:47]Write to MH i2c: E2 08 00 37 1F 80 13 00 00 00 00 00 00 D2 [11:08:47]Write i2c OK [11:08:47]MH_I2C_Read... [11:08:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:47]Read from MH i2c: E2 [11:08:47]MH_I2C_Read... [11:08:47]Read from MH i2c: E2 62 00 [11:08:47]MH_I2C_Read... [11:08:47]Read from MH i2c: E2 62 00 37 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 DC 05 01 00 0E 04 04 00 63 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 BF [11:08:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DC 05 01 00 0E 04 04 00 63 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:08:47]wFMCommunicate OK [11:08:47]SAM_PROTO_GetFieldsCounters done [11:08:47]requested_item shift.num is exist - process it [11:08:47]requested_item shift.opened is exist - process it [11:08:47]req_shift_opened [11:08:47]FM_GetShiftState [11:08:47]SAM_PROTO_GetShiftState [11:08:47]wFMCommunicate request_size=4 [11:08:47]MH_SAM_APDU [11:08:47]CAPDU: 80 13 01 00 [11:08:47]Write to MH i2c: E2 08 00 38 1F 80 13 01 00 00 00 00 00 D4 [11:08:47]Write i2c OK [11:08:47]MH_I2C_Read... [11:08:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:47]Read from MH i2c: E2 [11:08:47]MH_I2C_Read... [11:08:47]Read from MH i2c: E2 0E 00 [11:08:47]MH_I2C_Read... [11:08:47]Read from MH i2c: E2 0E 00 38 1F 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 9C [11:08:47]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:08:47]wFMCommunicate OK [11:08:47]SAM_PROTO_GetShiftState done [11:08:47]FM_GetShiftState done [11:08:47]req_shift_opened done [11:08:47]requested_item shift.open_date is exist - process it [11:08:47]req_shift_open_date [11:08:47]req_shift_open_date done [11:08:47]produce_requested_data done [11:08:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67036,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:08:47]process_action_free close_receipt [11:08:47]json_value_free [11:08:47]json_value_free done [11:08:47]process_json_proto returns [11:08:47]Send response to host [11:08:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67036,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:08:47]free response buf [11:08:47]execute_script done [11:08:47]execute_script returns [11:08:47]free content buf [11:08:47]Sock 9.Close socket [11:08:47]Sock 9.Thread stoped [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:06]OFD Sender: No OFD packet to send [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:54]accept exits with 8 [11:10:54]New connection [11:10:54]New thread 3066760548 created [11:10:54]Thread 3066617188 joined [11:10:54]Waiting for new connection... [11:10:54] Sock 8.Parse request [11:10:54]Sock 8.Check first char [11:10:54]Sock 8.First char is OK [11:10:54]request: POST /json_proto HTTP/1.0 [11:10:54]Method: POST [11:10:54]URL: /json_proto [11:10:54]Method is POST - this is cgi request [11:10:54]url: /json_proto [11:10:54]query_string will be loaded in cgi processing [11:10:54]execute_cgi json_proto POST (null) [11:10:54]execute_cgi path=json_proto method=POST [11:10:54]POST find Content-Length [11:10:54]Host: 172.17.41.195:8080 [11:10:54]Content-Length: 1144 [11:10:54]Content-Type: application/json [11:10:54] [11:10:54]POST finish read [11:10:54]Found Content-Length = 1144 [11:10: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)506893\u000A14.05.2024 10:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1336.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30131942\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:54]execute_script... [11:10: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)506893\u000A14.05.2024 10:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1336.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30131942\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:54]POST & json_proto [11:10:54]process_json_proto [11:10:54]json parsed OK: [11:10:54]protocol is kg_v1.0 [11:10:54]action value=print_text [11:10:54]process_action print_text [11:10:54]cmd_print_text [11:10:54]ExternCall_PrintAddStr [11:10:54]wPrintStart [11:10:54]Write to MH i2c: 01 00 00 39 1F 58 [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: 01 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: 01 07 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: 01 07 00 39 1F 00 00 00 00 00 FF 0F 6D [11:10:54]RasterBufferAndPrint [11:10:54]line *****ТОВАРНЫЙ ЧЕК***** [11:10:54]line АЗС-91 [11:10:54]line Партнер нефть [11:10:54]line 02508201610067 [11:10:54]line Кассир : Адишов И. [11:10:54]line Счет N : (1)506893 [11:10:54]line 14.05.2024 10:53 [11:10:54]line ПРОДАЖА [11:10:54]line ТРК (МРК, ГНК): 43 [11:10:54]line Вид ГСМ : 2710124130 [11:10:54]line Аи-92-К-5 [11:10:54]line 20.000 x 66.80 [11:10:54]line ИТОГ: 1336.00 [11:10:54]line Тип оплаты: Талоны: ТК ГПНА Online [11:10:54]line 30131942 [11:10:54]line ______________________ [11:10:54]line (подпись) [11:10:54]written 0, free lines is 4095 [11:10:54]Write to MH i2c: 01 00 00 4D 1F 6C [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: 01 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: 01 07 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: 01 07 00 4D 1F 00 00 00 00 00 11 0E 92 [11:10:54]RasterBufferAndPrint [11:10:54]line [11:10:54]line [11:10:54]line [11:10:54]line [11:10:54]line [11:10:54]written 0, free lines is 3602 [11:10:54]MH_Cut [11:10:54]Write to MH i2c: D1 01 00 54 1F 01 45 [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: D1 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: D1 01 00 [11:10:54]MH_I2C_Read... [11:10:54]Read from MH i2c: D1 01 00 54 1F 00 44 [11:10:54]Write to MH i2c: 01 00 00 55 1F 74 [11:10:54]Write i2c OK [11:10:54]MH_I2C_Read... [11:10:54]*** Cut start [11:10:54]*** Purtial cut [11:10:54]*** CUTSNS_PIN = 0 [11:10:55]*** Stage 1: CUTSNS_PIN = 1 [11:10:56]OFD Sender: No OFD packet to send [11:10:56]Read from MH i2c: 01 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: 01 07 00 [11:10:56]MH_I2C_Read... [11:10:56]*** Stop cut motor [11:10:56]*** Cut end [11:10:56]Read from MH i2c: 01 07 00 55 1F 00 00 00 00 00 FF 0F 89 [11:10:56]process_action print_text done [11:10:56]requested_data is exist [11:10:56]produce_requested_data [11:10:56]requested_item fm.sn is exist - process it [11:10:56]wFMCommunicate request_size=4 [11:10:56]MH_SAM_APDU [11:10:56]CAPDU: 80 11 00 00 [11:10:56]Write to MH i2c: E2 08 00 56 1F 80 11 00 00 00 00 00 00 EF [11:10:56]Write i2c OK [11:10:56]MH_I2C_Read... [11:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:56]Read from MH i2c: E2 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: E2 17 00 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: E2 17 00 56 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 45 [11:10: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:10:56]wFMCommunicate OK [11:10:56]requested_item fd.num is exist - process it [11:10:56]SAM_PROTO_GetFieldsCounters [11:10:56]wFMCommunicate request_size=4 [11:10:56]MH_SAM_APDU [11:10:56]CAPDU: 80 13 00 00 [11:10:56]Write to MH i2c: E2 08 00 57 1F 80 13 00 00 00 00 00 00 F2 [11:10:56]Write i2c OK [11:10:56]MH_I2C_Read... [11:10:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:57]Read from MH i2c: E2 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 62 00 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 62 00 57 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 DC 05 01 00 0E 04 04 00 63 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 DF [11:10: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 DC 05 01 00 0E 04 04 00 63 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:10:57]wFMCommunicate OK [11:10:57]SAM_PROTO_GetFieldsCounters done [11:10:57]requested_item shift.num is exist - process it [11:10:57]requested_item shift.opened is exist - process it [11:10:57]req_shift_opened [11:10:57]FM_GetShiftState [11:10:57]SAM_PROTO_GetShiftState [11:10:57]wFMCommunicate request_size=4 [11:10:57]MH_SAM_APDU [11:10:57]CAPDU: 80 13 01 00 [11:10:57]Write to MH i2c: E2 08 00 58 1F 80 13 01 00 00 00 00 00 F4 [11:10:57]Write i2c OK [11:10:57]MH_I2C_Read... [11:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:57]Read from MH i2c: E2 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 0E 00 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 0E 00 58 1F 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 BC [11:10:57]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:10:57]wFMCommunicate OK [11:10:57]SAM_PROTO_GetShiftState done [11:10:57]FM_GetShiftState done [11:10:57]req_shift_opened done [11:10:57]requested_item shift.open_date is exist - process it [11:10:57]req_shift_open_date [11:10:57]req_shift_open_date done [11:10:57]produce_requested_data done [11:10:57]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67036,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:10:57]process_action_free print_text [11:10:57]json_value_free [11:10:57]json_value_free done [11:10:57]process_json_proto returns [11:10:57]Send response to host [11:10:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67036,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:10:57]free response buf [11:10:57]execute_script done [11:10:57]execute_script returns [11:10:57]free content buf [11:10:57]Sock 8.Close socket [11:10:57]Sock 8.Thread stoped [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:10]accept exits with 9 [11:11:10]New connection [11:11:10]New thread 3066617188 created [11:11:10]Thread 3066760548 joined [11:11:10]Waiting for new connection... [11:11:10] Sock 9.Parse request [11:11:10]Sock 9.Check first char [11:11:10]Sock 9.First char is OK [11:11:10]request: POST /json_proto HTTP/1.0 [11:11:10]Method: POST [11:11:10]URL: /json_proto [11:11:10]Method is POST - this is cgi request [11:11:10]url: /json_proto [11:11:10]query_string will be loaded in cgi processing [11:11:10]execute_cgi json_proto POST (null) [11:11:10]execute_cgi path=json_proto method=POST [11:11:10]POST find Content-Length [11:11:10]Host: 172.17.41.195:8080 [11:11:10]Content-Length: 1179 [11:11:10]Content-Type: application/json [11:11:10] [11:11:10]POST finish read [11:11:10]Found Content-Length = 1179 [11:11: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)506895\u000A14.05.2024 10:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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\u000A53066\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:10]execute_script... [11:11: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)506895\u000A14.05.2024 10:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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\u000A53066\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:10]POST & json_proto [11:11:10]process_json_proto [11:11:10]json parsed OK: [11:11:10]protocol is kg_v1.0 [11:11:10]action value=print_text [11:11:10]process_action print_text [11:11:10]cmd_print_text [11:11:10]ExternCall_PrintAddStr [11:11:10]wPrintStart [11:11:10]Write to MH i2c: 01 00 00 59 1F 78 [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: 01 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: 01 07 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: 01 07 00 59 1F 00 00 00 00 00 FF 0F 8D [11:11:10]RasterBufferAndPrint [11:11:10]line *****ТОВАРНЫЙ ЧЕК***** [11:11:10]line АЗС-91 [11:11:10]line Партнер нефть [11:11:10]line 02508201610067 [11:11:10]line Кассир : Адишов И. [11:11:10]line Счет N : (1)506895 [11:11:10]line 14.05.2024 10:53 [11:11:10]line ПРОДАЖА [11:11:10]line ТРК (МРК, ГНК): 11 [11:11:10]line Вид ГСМ : 2710194210 [11:11:10]line ДТ-К-5 [11:11:10]line 20.000 x 74.70 [11:11:10]line ИТОГ: 1494.00 [11:11:10]line Тип оплаты: Талоны: Топливная Карта [11:11:10]line 53066 [11:11:10]line ______________________ [11:11:10]line (подпись) [11:11:10]written 0, free lines is 4095 [11:11:10]Write to MH i2c: 01 00 00 6D 1F 8C [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: 01 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: 01 07 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: 01 07 00 6D 1F 00 00 00 00 00 0C 0E AD [11:11:10]RasterBufferAndPrint [11:11:10]line [11:11:10]line [11:11:10]line [11:11:10]line [11:11:10]line [11:11:10]written 0, free lines is 3598 [11:11:10]MH_Cut [11:11:10]Write to MH i2c: D1 01 00 74 1F 01 65 [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: D1 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: D1 01 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: D1 01 00 74 1F 00 64 [11:11:10]Write to MH i2c: 01 00 00 75 1F 94 [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:11]*** Cut start [11:11:11]*** Purtial cut [11:11:11]*** Stage 1: CUTSNS_PIN = 1 [11:11:11]OFD Sender: No OFD packet to send [11:11:11]Read from MH i2c: 01 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: 01 07 00 [11:11:11]MH_I2C_Read... [11:11:11]*** Stop cut motor [11:11:11]*** Cut end [11:11:11]Read from MH i2c: 01 07 00 75 1F 00 00 00 00 00 FF 0F A9 [11:11:11]process_action print_text done [11:11:11]requested_data is exist [11:11:11]produce_requested_data [11:11:11]requested_item fm.sn is exist - process it [11:11:11]wFMCommunicate request_size=4 [11:11:11]MH_SAM_APDU [11:11:11]CAPDU: 80 11 00 00 [11:11:11]Write to MH i2c: E2 08 00 76 1F 80 11 00 00 00 00 00 00 0F [11:11:11]Write i2c OK [11:11:11]MH_I2C_Read... [11:11:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:11]Read from MH i2c: E2 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: E2 17 00 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: E2 17 00 76 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 65 [11: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 [11:11:11]wFMCommunicate OK [11:11:11]requested_item fd.num is exist - process it [11:11:11]SAM_PROTO_GetFieldsCounters [11:11:11]wFMCommunicate request_size=4 [11:11:11]MH_SAM_APDU [11:11:11]CAPDU: 80 13 00 00 [11:11:11]Write to MH i2c: E2 08 00 77 1F 80 13 00 00 00 00 00 00 12 [11:11:11]Write i2c OK [11:11:11]MH_I2C_Read... [11:11:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:11]Read from MH i2c: E2 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: E2 62 00 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: E2 62 00 77 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 DC 05 01 00 0E 04 04 00 63 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 FF [11: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 DC 05 01 00 0E 04 04 00 63 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:11:11]wFMCommunicate OK [11:11:11]SAM_PROTO_GetFieldsCounters done [11:11:11]requested_item shift.num is exist - process it [11:11:11]requested_item shift.opened is exist - process it [11:11:11]req_shift_opened [11:11:11]FM_GetShiftState [11:11:11]SAM_PROTO_GetShiftState [11:11:11]wFMCommunicate request_size=4 [11:11:11]MH_SAM_APDU [11:11:11]CAPDU: 80 13 01 00 [11:11:11]Write to MH i2c: E2 08 00 78 1F 80 13 01 00 00 00 00 00 14 [11:11:11]Write i2c OK [11:11:11]MH_I2C_Read... [11:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:11]Read from MH i2c: E2 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: E2 0E 00 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: E2 0E 00 78 1F 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 DC [11:11:11]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:11:11]wFMCommunicate OK [11:11:11]SAM_PROTO_GetShiftState done [11:11:11]FM_GetShiftState done [11:11:11]req_shift_opened done [11:11:11]requested_item shift.open_date is exist - process it [11:11:11]req_shift_open_date [11:11:11]req_shift_open_date done [11:11:11]produce_requested_data done [11:11:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67036,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:11:11]process_action_free print_text [11:11:11]json_value_free [11:11:11]json_value_free done [11:11:11]process_json_proto returns [11:11:11]Send response to host [11:11:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67036,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:11:11]free response buf [11:11:11]execute_script done [11:11:11]execute_script returns [11:11:11]free content buf [11:11:11]Sock 9.Close socket [11:11:11]Sock 9.Thread stoped [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]accept exits with 8 [11:14:01]New connection [11:14:01]New thread 3066760548 created [11:14:01]Thread 3066617188 joined [11:14:01]Waiting for new connection... [11:14:01] Sock 8.Parse request [11:14:01]Sock 8.Check first char [11:14:01]Sock 8.First char is OK [11:14:01]request: POST /json_proto HTTP/1.0 [11:14:01]Method: POST [11:14:01]URL: /json_proto [11:14:01]Method is POST - this is cgi request [11:14:01]url: /json_proto [11:14:01]query_string will be loaded in cgi processing [11:14:01]execute_cgi json_proto POST (null) [11:14:01]execute_cgi path=json_proto method=POST [11:14:01]POST find Content-Length [11:14:01]Host: 172.17.41.195:8080 [11:14:01]Content-Length: 801 [11:14:01]Content-Type: application/json [11:14:01] [11:14:01]POST finish read [11:14:01]Found Content-Length = 801 [11:14:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 120.490, "sum" : 9000.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9000.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:01]execute_script... [11:14:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 120.490, "sum" : 9000.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9000.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:01]POST & json_proto [11:14:01]process_json_proto [11:14:01]json parsed OK: [11:14:01]protocol is kg_v1.0 [11:14:01]action value=close_receipt [11:14:01]process_action close_receipt [11:14:01]cmd_close_receipt [11:14:01]MH_GetDate [11:14:01]Write to MH i2c: F0 00 00 79 1F 87 [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: F0 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: F0 09 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: F0 09 00 79 1F 00 7D 47 43 66 FC 21 6F 64 ED [11:14:01]GetLastDocTimeStamp 1715684927 [11:14:01]current date 1715685245 [11:14:01]FM_GetShiftState [11:14:01]SAM_PROTO_GetShiftState [11:14:01]wFMCommunicate request_size=4 [11:14:01]MH_SAM_APDU [11:14:01]CAPDU: 80 13 01 00 [11:14:01]Write to MH i2c: E2 08 00 7A 1F 80 13 01 00 00 00 00 00 16 [11:14:01]Write i2c OK [11:14:01]MH_I2C_Read... [11:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:01]Read from MH i2c: E2 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 0E 00 [11:14:01]MH_I2C_Read... [11:14:01]Read from MH i2c: E2 0E 00 7A 1F 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 DE [11:14:01]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:14:01]wFMCommunicate OK [11:14:01]SAM_PROTO_GetShiftState done [11:14:01]FM_GetShiftState done [11:14:01]opened in 1715646054 [11:14:01]opened+sec_in_day 1715732454 [11:14:01]quantity*price = 900060 [11:14:01]sum+1 = 900061 [11:14:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.60 НСП 1% : 79.65 НДС 12% : 955.82 Наличными: 0.00 Безнал.: 9000.60 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 44 14.05.2024 11:14 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67037 ФПД: 127722937638407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T111405&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67037&fm=127722937638407&tin=02508201610067®Number=0000000000091845&sum=900060 [11:14:02]StoreToDocumentArchive [11:14:02]shift 355 fd 67037 [11:14:02]save to /storage/0355/doc_00067037 [11:14:02]save last doc name /storage/0355/doc_00067037 to /storage/kkm_last_doc_name [11:14:02]save OK [11:14:02]Clear old archive folders... [11:14:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:14:02]tlvbuf is 00337E10 [11:14:02]SAM_PROTO_ClearQueue [11:14:02]wFMCommunicate request_size=4 [11:14:02]MH_SAM_APDU [11:14:02]CAPDU: 80 09 00 00 [11:14:02]Write to MH i2c: E2 08 00 87 1F 80 09 00 00 00 00 00 00 18 [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:02]Read from MH i2c: E2 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 03 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 03 00 87 1F 00 90 00 1A [11:14:02]RAPDU: 90 00 [11:14:02]wFMCommunicate OK [11:14:02]SAM_PROTO_ClearQueue done [11:14:02]KKMCreateOFDPacket [11:14:02]OFDProtocolAddRootSTLVToBuf [11:14:02]FM_MakeSignedData [11:14:02]FM_MakeSignedData [11:14:02]SAM_PROTO_SignData [11:14:02]wFMCommunicate request_size=4 [11:14:02]MH_SAM_APDU [11:14:02]CAPDU: 80 0D 01 02 [11:14:02]Write to MH i2c: E2 08 00 88 1F 80 0D 01 02 00 00 00 00 20 [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:02]Read from MH i2c: E2 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 03 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 03 00 88 1F 00 90 00 1B [11:14:02]RAPDU: 90 00 [11:14:02]wFMCommunicate OK [11:14:02]wFMCommunicate request_size=255 [11:14:02]MH_SAM_APDU [11:14:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2C 00 00 00 F4 03 04 00 7D 47 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DD 05 01 00 35 04 06 00 74 29 D0 53 [11:14:02]Write to MH i2c: E2 02 01 89 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 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 2C 00 00 00 F4 03 04 00 7D 47 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DD 05 01 00 35 04 06 00 74 29 D0 53 00 00 EA [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:02]Read from MH i2c: E2 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 03 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 03 00 89 1F 00 90 00 1C [11:14:02]RAPDU: 90 00 [11:14:02]wFMCommunicate OK [11:14:02]wFMCommunicate request_size=7 [11:14:02]MH_SAM_APDU [11:14:02]CAPDU: 80 0D 02 02 02 DE 07 [11:14:02]Write to MH i2c: E2 0A 00 8A 1F 80 0D 02 02 02 00 DE 07 00 00 0C [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:02]Read from MH i2c: E2 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 03 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 03 00 8A 1F 00 90 00 1D [11:14:02]RAPDU: 90 00 [11:14:02]wFMCommunicate OK [11:14:02]wFMCommunicate request_size=4 [11:14:02]MH_SAM_APDU [11:14:02]CAPDU: 80 0D 03 02 [11:14:02]Write to MH i2c: E2 08 00 8B 1F 80 0D 03 02 00 00 00 00 25 [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:02]Read from MH i2c: E2 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 0B 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 0B 00 8B 1F 00 C0 DA 91 D3 CE C2 D9 B0 90 00 3D [11:14:02]RAPDU: C0 DA 91 D3 CE C2 D9 B0 90 00 [11:14:02]wFMCommunicate OK [11:14:02]SAM_PROTO_SignData done [11:14:02]FM_MakeSignedData done [11:14:02]CreateOFDProtocolMessage [11:14:02]wFMCommunicate request_size=4 [11:14:02]MH_SAM_APDU [11:14:02]CAPDU: 80 11 00 00 [11:14:02]Write to MH i2c: E2 08 00 8C 1F 80 11 00 00 00 00 00 00 25 [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:02]Read from MH i2c: E2 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 17 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 17 00 8C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7B [11: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 [11:14:02]wFMCommunicate OK [11:14:02]CreateOFDProtocolMessage done [11:14:02]OFDSenderStorePacket 67037 [11:14:02]StoreOFDPacket docnum=67037 [11:14: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 03 7C 04 01 EB D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2C 00 00 00 F4 03 04 00 7D 47 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DD 05 01 00 35 04 06 00 74 29 D0 53 DE 07 C0 DA 91 D3 CE C2 D9 B0 [11:14:02]CheckFolder [11:14:02]dirname=/storage/ofd_packets [11:14:02]CheckFolder done [11:14:02]ProducePacketName [11:14:02]name=ofd_packets/00067037 [11:14:02]NVStorageSaveData ofd_packets/00067037 [11:14:02]File name is /storage/ofd_packets/00067037 [11:14:02]Write 298 bytes [11:14:02]NVStorageSaveData done [11:14:02]OFDSenderStorePacket done [11:14:02]KKMCreateOFDPacket done [11:14:02]NVStorageSaveData kkm_last_timestamp [11:14:02]File name is /storage/kkm_last_timestamp [11:14:02]Write 4 bytes [11:14:02]NVStorageSaveData done [11:14:02]ExternCall_PrintAddStr [11:14:02]wPrintStart [11:14:02]Write to MH i2c: 01 00 00 8D 1F AC [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: 01 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: 01 07 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: 01 07 00 8D 1F 00 00 00 00 00 FF 0F C1 [11:14:02]RasterBufferAndPrint [11:14:02]line Счет N : (1)506894 [11:14:02]line ИНН: 02508201610067 [11:14:02]line Контрольно-Кассовый Чек [11:14:02]line ПРОДАЖА [11:14:02]line ТРК (МРК, ГНК) : 31 [11:14:02]line Товар: 2710194210 [11:14:02]line ДТ-К-5 [11:14:02]line 120.490 * 74.70 [11:14:02]line = 9000.60 [11:14:02]line НДС 12% НСП 1% [11:14:02]line > о реализуемом товаре [11:14:02]line ИТОГО: 9000.60 [11:14:02]line НСП 1% : 79.65 [11:14:02]line НДС 12% : 955.82 [11:14:02]line Наличными: 0.00 [11:14:02]line Безнал.: 9000.60 [11:14:02]line Место: АЗС № 91 "Партнер Нефть" [11:14:02]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:14:02]line СНО: Общий режим [11:14:02]line Чек 44 14.05.2024 11:14 [11:14:02]line Смена: 355 ФФД: 1.0 [11:14:02]line ЗНМ: 0300000119 [11:14:02]line РНМ: 0000000000091845 [11:14:02]line Версия ККМ: 001 [11:14:02]line Платежная система: O! деньги [11:14:02]line ФМ: 0000000000871829 [11:14:02]line ФД: 67037 [11:14:02]line ФПД: 127722937638407 [11:14:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T111405&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67037&fm=127722937638407&tin=02508201610067®Number=0000000000091845&sum=900060 [11:14:03]OFD Sender: Processing packet 67037 [packets to send 35, broken 34] [11:14:03]ProducePacketName [11:14:03]name=ofd_packets/00067037 [11:14:03]OFD Sender: To server: pG, [11:14:03]CommunicateWithHost lk.salyk.kg:30040 [11:14:03]ConnectInit lk.salyk.kg [11:14:03]written 0, free lines is 4095 [11:14:03]Connected sock=10 [11:14:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 03 7C 04 01 EB D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2C 00 00 00 F4 03 04 00 7D 47 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DD 05 01 00 35 04 06 00 74 29 D0 53 DE 07 C0 DA 91 D3 CE C2 D9 B0 [11:14: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 3B 7B 47 00 CE 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 DD 05 01 00 F4 03 04 00 5D EF 42 66 B6 04 01 00 00 04 0F 74 78 54 C5 48 52 [11:14:03]CommunicateWithHost err = 0 [11:14:03]CheckOFDResponse [11:14:03]1017 (14) - 77093643461234 [11:14:03]1041 (16) - 0000000000871829 [11:14:03]1040 (4) - 67037 [11:14:03]1012 (4) - 14.05.2024 04:58 [11:14:03]1206 (1) - 0 [11:14:03]OFD Sender: Remove packet 67037 [11:14:03]ProducePacketName [11:14:03]name=ofd_packets/00067037 [11:14:03]NVStorageDeleteData [11:14:03]Write to MH i2c: 01 00 00 B6 1F D5 [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: 01 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: 01 07 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: 01 07 00 B6 1F 00 00 00 00 00 D4 0C BC [11:14:03]RasterBufferAndPrint [11:14:03]line [11:14:03]line [11:14:03]line [11:14:03]line [11:14:03]line [11:14:03]written 0, free lines is 3290 [11:14:03]MH_Cut [11:14:03]Write to MH i2c: D1 01 00 BD 1F 01 AE [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: D1 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: D1 01 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: D1 01 00 BD 1F 00 AD [11:14:03]Write to MH i2c: 01 00 00 BE 1F DD [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:04]OFD Sender: No OFD packet to send [11:14:04]*** Cut start [11:14:04]*** Purtial cut [11:14:04]*** CUTSNS_PIN = 0 [11:14:04]*** Stage 1: CUTSNS_PIN = 1 [11:14:06]Read from MH i2c: 01 [11:14:06]MH_I2C_Read... [11:14:06]*** Stop cut motor [11:14:06]*** Cut end [11:14:06]Read from MH i2c: 01 07 00 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: 01 07 00 BE 1F 00 00 00 00 00 FF 0F F2 [11:14:06]process_action close_receipt done [11:14:06]requested_data is exist [11:14:06]produce_requested_data [11:14:06]requested_item fm.sn is exist - process it [11:14:06]wFMCommunicate request_size=4 [11:14:06]MH_SAM_APDU [11:14:06]CAPDU: 80 11 00 00 [11:14:06]Write to MH i2c: E2 08 00 BF 1F 80 11 00 00 00 00 00 00 58 [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:06]Read from MH i2c: E2 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 17 00 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 17 00 BF 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AE [11:14:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:14:06]wFMCommunicate OK [11:14:06]requested_item fd.num is exist - process it [11:14:06]SAM_PROTO_GetFieldsCounters [11:14:06]wFMCommunicate request_size=4 [11:14:06]MH_SAM_APDU [11:14:06]CAPDU: 80 13 00 00 [11:14:06]Write to MH i2c: E2 08 00 C0 1F 80 13 00 00 00 00 00 00 5B [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:06]Read from MH i2c: E2 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 62 00 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 62 00 C0 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 DD 05 01 00 0E 04 04 00 63 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 4C [11:14:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 DD 05 01 00 0E 04 04 00 63 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:14:06]wFMCommunicate OK [11:14:06]SAM_PROTO_GetFieldsCounters done [11:14:06]requested_item shift.num is exist - process it [11:14:06]requested_item shift.opened is exist - process it [11:14:06]req_shift_opened [11:14:06]FM_GetShiftState [11:14:06]SAM_PROTO_GetShiftState [11:14:06]wFMCommunicate request_size=4 [11:14:06]MH_SAM_APDU [11:14:06]CAPDU: 80 13 01 00 [11:14:06]Write to MH i2c: E2 08 00 C1 1F 80 13 01 00 00 00 00 00 5D [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:06]Read from MH i2c: E2 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 0E 00 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 0E 00 C1 1F 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 25 [11:14:06]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:14:06]wFMCommunicate OK [11:14:06]SAM_PROTO_GetShiftState done [11:14:06]FM_GetShiftState done [11:14:06]req_shift_opened done [11:14:06]requested_item shift.open_date is exist - process it [11:14:06]req_shift_open_date [11:14:06]req_shift_open_date done [11:14:06]produce_requested_data done [11:14:06]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67037,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:14:06]process_action_free close_receipt [11:14:06]json_value_free [11:14:06]json_value_free done [11:14:06]process_json_proto returns [11:14:06]Send response to host [11:14:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67037,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:14:06]free response buf [11:14:06]execute_script done [11:14:06]execute_script returns [11:14:06]free content buf [11:14:06]Sock 8.Close socket [11:14:06]Sock 8.Thread stoped [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:39]OFD Sender: No OFD packet to send [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:54]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:04]OFD Sender: No OFD packet to send [11:16:09]OFD Sender: No OFD packet to send [11:16:14]OFD Sender: No OFD packet to send [11:16:19]OFD Sender: No OFD packet to send [11:16:24]OFD Sender: No OFD packet to send [11:16:29]OFD Sender: No OFD packet to send [11:16:34]OFD Sender: No OFD packet to send [11:16:39]OFD Sender: No OFD packet to send [11:16:44]OFD Sender: No OFD packet to send [11:16:49]OFD Sender: No OFD packet to send [11:16:54]OFD Sender: No OFD packet to send [11:16:59]OFD Sender: No OFD packet to send [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:24]OFD Sender: No OFD packet to send [11:17:29]OFD Sender: No OFD packet to send [11:17:34]OFD Sender: No OFD packet to send [11:17:37]accept exits with 9 [11:17:37]New connection [11:17:37]New thread 3066617188 created [11:17:37]Thread 3066760548 joined [11:17:37]Waiting for new connection... [11:17:37] Sock 9.Parse request [11:17:37]Sock 9.Check first char [11:17:37]Sock 9.First char is OK [11:17:37]request: POST /json_proto HTTP/1.0 [11:17:37]Method: POST [11:17:37]URL: /json_proto [11:17:37]Method is POST - this is cgi request [11:17:37]url: /json_proto [11:17:37]query_string will be loaded in cgi processing [11:17:37]execute_cgi json_proto POST (null) [11:17:37]execute_cgi path=json_proto method=POST [11:17:37]POST find Content-Length [11:17:37]Host: 172.17.41.195:8080 [11:17:37]Content-Length: 679 [11:17:37]Content-Type: application/json [11:17:37] [11:17:37]POST finish read [11:17:37]Found Content-Length = 679 [11:17:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506897", "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" ] } } [11:17:37]execute_script... [11:17: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)506897", "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" ] } } [11:17:37]POST & json_proto [11:17:37]process_json_proto [11:17:37]json parsed OK: [11:17:37]protocol is kg_v1.0 [11:17:37]action value=close_receipt [11:17:37]process_action close_receipt [11:17:37]cmd_close_receipt [11:17:37]MH_GetDate [11:17:37]Write to MH i2c: F0 00 00 C2 1F D0 [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: F0 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: F0 09 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: F0 09 00 C2 1F 00 55 48 43 66 FC 21 6F 64 0F [11:17:37]GetLastDocTimeStamp 1715685245 [11:17:37]current date 1715685461 [11:17:37]FM_GetShiftState [11:17:37]SAM_PROTO_GetShiftState [11:17:37]wFMCommunicate request_size=4 [11:17:37]MH_SAM_APDU [11:17:37]CAPDU: 80 13 01 00 [11:17:37]Write to MH i2c: E2 08 00 C3 1F 80 13 01 00 00 00 00 00 5F [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:37]Read from MH i2c: E2 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 0E 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 0E 00 C3 1F 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 27 [11:17:37]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:17:37]wFMCommunicate OK [11:17:37]SAM_PROTO_GetShiftState done [11:17:37]FM_GetShiftState done [11:17:37]opened in 1715646054 [11:17:37]opened+sec_in_day 1715732454 [11:17:37]quantity*price = 100023 [11:17:37]sum+1 = 100024 [11:17:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 45 14.05.2024 11:17 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67038 ФПД: 169453810973849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T111741&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67038&fm=169453810973849&tin=02508201610067®Number=0000000000091845&sum=100000 [11:17:38]StoreToDocumentArchive [11:17:38]shift 355 fd 67038 [11:17:38]save to /storage/0355/doc_00067038 [11:17:38]save last doc name /storage/0355/doc_00067038 to /storage/kkm_last_doc_name [11:17:38]save OK [11:17:38]Clear old archive folders... [11:17:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:17:38]tlvbuf is 003B2AA0 [11:17:38]SAM_PROTO_ClearQueue [11:17:38]wFMCommunicate request_size=4 [11:17:38]MH_SAM_APDU [11:17:38]CAPDU: 80 09 00 00 [11:17:38]Write to MH i2c: E2 08 00 D0 1F 80 09 00 00 00 00 00 00 61 [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 [11:17:38]MH_I2C_Read... [11:17:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:38]Read from MH i2c: E2 03 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 03 00 D0 1F 00 90 00 63 [11:17:38]RAPDU: 90 00 [11:17:38]wFMCommunicate OK [11:17:38]SAM_PROTO_ClearQueue done [11:17:38]KKMCreateOFDPacket [11:17:38]OFDProtocolAddRootSTLVToBuf [11:17:38]FM_MakeSignedData [11:17:38]FM_MakeSignedData [11:17:38]SAM_PROTO_SignData [11:17:38]wFMCommunicate request_size=4 [11:17:38]MH_SAM_APDU [11:17:38]CAPDU: 80 0D 01 02 [11:17:38]Write to MH i2c: E2 08 00 D1 1F 80 0D 01 02 00 00 00 00 69 [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 [11:17:38]MH_I2C_Read... [11:17:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:38]Read from MH i2c: E2 03 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 03 00 D1 1F 00 90 00 64 [11:17:38]RAPDU: 90 00 [11:17:38]wFMCommunicate OK [11:17:38]wFMCommunicate request_size=255 [11:17:38]MH_SAM_APDU [11:17:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 55 48 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DE 05 01 00 35 04 06 00 9A 1E 0A 35 [11:17:38]Write to MH i2c: E2 02 01 D2 1F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 55 48 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DE 05 01 00 35 04 06 00 9A 1E 0A 35 00 00 F5 [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:38]Read from MH i2c: E2 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 03 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 03 00 D2 1F 00 90 00 65 [11:17:38]RAPDU: 90 00 [11:17:38]wFMCommunicate OK [11:17:38]wFMCommunicate request_size=7 [11:17:38]MH_SAM_APDU [11:17:38]CAPDU: 80 0D 02 02 02 7C 99 [11:17:38]Write to MH i2c: E2 0A 00 D3 1F 80 0D 02 02 02 00 7C 99 00 00 85 [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:38]Read from MH i2c: E2 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 03 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 03 00 D3 1F 00 90 00 66 [11:17:38]RAPDU: 90 00 [11:17:38]wFMCommunicate OK [11:17:38]wFMCommunicate request_size=4 [11:17:38]MH_SAM_APDU [11:17:38]CAPDU: 80 0D 03 02 [11:17:38]Write to MH i2c: E2 08 00 D4 1F 80 0D 03 02 00 00 00 00 6E [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:38]Read from MH i2c: E2 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 0B 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 0B 00 D4 1F 00 5E 38 DC 33 F5 60 82 0B 90 00 F6 [11:17:38]RAPDU: 5E 38 DC 33 F5 60 82 0B 90 00 [11:17:38]wFMCommunicate OK [11:17:38]SAM_PROTO_SignData done [11:17:38]FM_MakeSignedData done [11:17:38]CreateOFDProtocolMessage [11:17:38]wFMCommunicate request_size=4 [11:17:38]MH_SAM_APDU [11:17:38]CAPDU: 80 11 00 00 [11:17:38]Write to MH i2c: E2 08 00 D5 1F 80 11 00 00 00 00 00 00 6E [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:38]Read from MH i2c: E2 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 17 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 17 00 D5 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C4 [11:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:17:38]wFMCommunicate OK [11:17:38]CreateOFDProtocolMessage done [11:17:38]OFDSenderStorePacket 67038 [11:17:38]StoreOFDPacket docnum=67038 [11:17:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 C6 73 04 01 C0 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 2D 00 00 00 F4 03 04 00 55 48 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DE 05 01 00 35 04 06 00 9A 1E 0A 35 7C 99 5E 38 DC 33 F5 60 82 0B [11:17:38]CheckFolder [11:17:38]dirname=/storage/ofd_packets [11:17:38]CheckFolder done [11:17:38]ProducePacketName [11:17:38]name=ofd_packets/00067038 [11:17:38]NVStorageSaveData ofd_packets/00067038 [11:17:38]File name is /storage/ofd_packets/00067038 [11:17:38]Write 298 bytes [11:17:38]NVStorageSaveData done [11:17:38]OFDSenderStorePacket done [11:17:38]KKMCreateOFDPacket done [11:17:38]NVStorageSaveData kkm_last_timestamp [11:17:38]File name is /storage/kkm_last_timestamp [11:17:38]Write 4 bytes [11:17:38]NVStorageSaveData done [11:17:38]OFD Sender: Processing packet 67038 [packets to send 35, broken 34] [11:17:38]ProducePacketName [11:17:38]name=ofd_packets/00067038 [11:17:38]OFD Sender: To server: pG, [11:17:38]CommunicateWithHost lk.salyk.kg:30040 [11:17:38]ConnectInit lk.salyk.kg [11:17:38]ExternCall_PrintAddStr [11:17:38]wPrintStart [11:17:38]Write to MH i2c: 01 00 00 D6 1F F5 [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 07 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 07 00 D6 1F 00 00 00 00 00 FF 0F 0A [11:17:38]RasterBufferAndPrint [11:17:38]line Счет N : (1)506897 [11:17:38]line ИНН: 02508201610067 [11:17:38]line Контрольно-Кассовый Чек [11:17:38]line ПРОДАЖА [11:17:38]line ТРК (МРК, ГНК) : 41 [11:17:38]line Товар: 2710194210 [11:17:38]line ДТ-К-5 [11:17:38]line 13.390 * 74.70 [11:17:38]line = 1000.23 [11:17:38]line НДС 12% НСП 1% [11:17:38]line > о реализуемом товаре [11:17:38]line ОКРУГЛЕНИЕ: -0.23 [11:17:38]line ИТОГО: 1000.00 [11:17:38]line Внесено: 1000.00 [11:17:38]line СДАЧА: 0.00 [11:17:38]line НСП 1% : 8.85 [11:17:38]line НДС 12% : 106.22 [11:17:38]line Наличными: 1000.00 [11:17:38]line Безнал.: 0.00 [11:17:38]line Место: АЗС № 91 "Партнер Нефть" [11:17:38]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:17:38]line СНО: Общий режим [11:17:38]line Чек 45 14.05.2024 11:17 [11:17:38]line Смена: 355 ФФД: 1.0 [11:17:38]line ЗНМ: 0300000119 [11:17:38]line РНМ: 0000000000091845 [11:17:38]line Версия ККМ: 001 [11:17:38]line ФМ: 0000000000871829 [11:17:38]line ФД: 67038 [11:17:38]line ФПД: 169453810973849 [11:17:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T111741&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67038&fm=169453810973849&tin=02508201610067®Number=0000000000091845&sum=100000 [11:17:39]Connected sock=11 [11:17: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 C6 73 04 01 C0 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 2D 00 00 00 F4 03 04 00 55 48 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DE 05 01 00 35 04 06 00 9A 1E 0A 35 7C 99 5E 38 DC 33 F5 60 82 0B [11:17:39]written 0, free lines is 4095 [11:17: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 F9 F8 47 00 A6 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 DE 05 01 00 F4 03 04 00 35 F0 42 66 B6 04 01 00 00 24 D5 BA E9 94 A7 29 98 [11:17:39]CommunicateWithHost err = 0 [11:17:39]CheckOFDResponse [11:17:39]1017 (14) - 77093643461234 [11:17:39]1041 (16) - 0000000000871829 [11:17:39]1040 (4) - 67038 [11:17:39]1012 (4) - 14.05.2024 05:01 [11:17:39]1206 (1) - 0 [11:17:39]OFD Sender: Remove packet 67038 [11:17:39]ProducePacketName [11:17:39]name=ofd_packets/00067038 [11:17:39]NVStorageDeleteData [11:17:39]Write to MH i2c: 01 00 00 00 20 20 [11:17:39]Write i2c OK [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: 01 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: 01 07 00 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: 01 07 00 00 20 00 00 00 00 00 C4 0C F7 [11:17:39]RasterBufferAndPrint [11:17:39]line [11:17:39]line [11:17:39]line [11:17:39]line [11:17:39]line [11:17:39]written 0, free lines is 3274 [11:17:39]MH_Cut [11:17:39]Write to MH i2c: D1 01 00 07 20 01 F9 [11:17:39]Write i2c OK [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: D1 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: D1 01 00 [11:17:39]MH_I2C_Read... [11:17:39]Read from MH i2c: D1 01 00 07 20 00 F8 [11:17:39]Write to MH i2c: 01 00 00 08 20 28 [11:17:39]Write i2c OK [11:17:39]MH_I2C_Read... [11:17:40]OFD Sender: No OFD packet to send [11:17:40]*** Cut start [11:17:40]*** Purtial cut [11:17:40]*** Stage 1: CUTSNS_PIN = 1 [11:17:40]Read from MH i2c: 01 [11:17:40]MH_I2C_Read... [11:17:40]*** Stop cut motor [11:17:40]*** Cut end [11:17:40]Read from MH i2c: 01 07 00 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: 01 07 00 08 20 00 00 00 00 00 FF 0F 3D [11:17:40]process_action close_receipt done [11:17:40]requested_data is exist [11:17:40]produce_requested_data [11:17:40]requested_item fm.sn is exist - process it [11:17:40]wFMCommunicate request_size=4 [11:17:40]MH_SAM_APDU [11:17:40]CAPDU: 80 11 00 00 [11:17:40]Write to MH i2c: E2 08 00 09 20 80 11 00 00 00 00 00 00 A3 [11:17:40]Write i2c OK [11:17:40]MH_I2C_Read... [11:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:40]Read from MH i2c: E2 [11:17:40]MH_I2C_Read... [11:17:40]Read from MH i2c: E2 17 00 [11:17:40]MH_I2C_Read... [11:17:41]Read from MH i2c: E2 17 00 09 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F9 [11:17: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:17:41]wFMCommunicate OK [11:17:41]requested_item fd.num is exist - process it [11:17:41]SAM_PROTO_GetFieldsCounters [11:17:41]wFMCommunicate request_size=4 [11:17:41]MH_SAM_APDU [11:17:41]CAPDU: 80 13 00 00 [11:17:41]Write to MH i2c: E2 08 00 0A 20 80 13 00 00 00 00 00 00 A6 [11:17:41]Write i2c OK [11:17:41]MH_I2C_Read... [11:17:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:41]Read from MH i2c: E2 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: E2 62 00 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: E2 62 00 0A 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 DE 05 01 00 0E 04 04 00 63 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 9B [11:17: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 DE 05 01 00 0E 04 04 00 63 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:17:41]wFMCommunicate OK [11:17:41]SAM_PROTO_GetFieldsCounters done [11:17:41]requested_item shift.num is exist - process it [11:17:41]requested_item shift.opened is exist - process it [11:17:41]req_shift_opened [11:17:41]FM_GetShiftState [11:17:41]SAM_PROTO_GetShiftState [11:17:41]wFMCommunicate request_size=4 [11:17:41]MH_SAM_APDU [11:17:41]CAPDU: 80 13 01 00 [11:17:41]Write to MH i2c: E2 08 00 0B 20 80 13 01 00 00 00 00 00 A8 [11:17:41]Write i2c OK [11:17:41]MH_I2C_Read... [11:17:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:41]Read from MH i2c: E2 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: E2 0E 00 [11:17:41]MH_I2C_Read... [11:17:41]Read from MH i2c: E2 0E 00 0B 20 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 70 [11:17:41]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:17:41]wFMCommunicate OK [11:17:41]SAM_PROTO_GetShiftState done [11:17:41]FM_GetShiftState done [11:17:41]req_shift_opened done [11:17:41]requested_item shift.open_date is exist - process it [11:17:41]req_shift_open_date [11:17:41]req_shift_open_date done [11:17:41]produce_requested_data done [11:17:41]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67038,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:17:41]process_action_free close_receipt [11:17:41]json_value_free [11:17:41]json_value_free done [11:17:41]process_json_proto returns [11:17:41]Send response to host [11:17:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67038,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:17:41]free response buf [11:17:41]execute_script done [11:17:41]execute_script returns [11:17:41]free content buf [11:17:41]Sock 9.Close socket [11:17:41]Sock 9.Thread stoped [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:08]accept exits with 8 [11:20:08]New connection [11:20:08]New thread 3066760548 created [11:20:08]Thread 3066617188 joined [11:20:08]Waiting for new connection... [11:20:08] Sock 8.Parse request [11:20:08]Sock 8.Check first char [11:20:08]Sock 8.First char is OK [11:20:08]request: POST /json_proto HTTP/1.0 [11:20:08]Method: POST [11:20:08]URL: /json_proto [11:20:08]Method is POST - this is cgi request [11:20:08]url: /json_proto [11:20:08]query_string will be loaded in cgi processing [11:20:08]execute_cgi json_proto POST (null) [11:20:08]execute_cgi path=json_proto method=POST [11:20:08]POST find Content-Length [11:20:08]Host: 172.17.41.195:8080 [11:20:08]Content-Length: 801 [11:20:08]Content-Type: application/json [11:20:08] [11:20:08]POST finish read [11:20:08]Found Content-Length = 801 [11:20:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 120.490, "sum" : 9000.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9000.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:08]execute_script... [11:20:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 120.490, "sum" : 9000.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9000.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:08]POST & json_proto [11:20:08]process_json_proto [11:20:08]json parsed OK: [11:20:08]protocol is kg_v1.0 [11:20:08]action value=close_receipt [11:20:08]process_action close_receipt [11:20:08]cmd_close_receipt [11:20:08]MH_GetDate [11:20:08]Write to MH i2c: F0 00 00 0C 20 1B [11:20:08]Write i2c OK [11:20:08]MH_I2C_Read... [11:20:08]Read from MH i2c: F0 [11:20:08]MH_I2C_Read... [11:20:08]Read from MH i2c: F0 09 00 [11:20:08]MH_I2C_Read... [11:20:08]Read from MH i2c: F0 09 00 0C 20 00 EC 48 43 66 FC 21 6F 64 F1 [11:20:08]GetLastDocTimeStamp 1715685461 [11:20:08]current date 1715685612 [11:20:08]FM_GetShiftState [11:20:08]SAM_PROTO_GetShiftState [11:20:08]wFMCommunicate request_size=4 [11:20:08]MH_SAM_APDU [11:20:08]CAPDU: 80 13 01 00 [11:20:08]Write to MH i2c: E2 08 00 0D 20 80 13 01 00 00 00 00 00 AA [11:20:08]Write i2c OK [11:20:08]MH_I2C_Read... [11:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:08]Read from MH i2c: E2 [11:20:08]MH_I2C_Read... [11:20:08]Read from MH i2c: E2 0E 00 [11:20:08]MH_I2C_Read... [11:20:08]Read from MH i2c: E2 0E 00 0D 20 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 72 [11:20:08]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:20:08]wFMCommunicate OK [11:20:08]SAM_PROTO_GetShiftState done [11:20:08]FM_GetShiftState done [11:20:08]opened in 1715646054 [11:20:08]opened+sec_in_day 1715732454 [11:20:08]quantity*price = 900060 [11:20:08]sum+1 = 900061 [11:20:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.60 НСП 1% : 79.65 НДС 12% : 955.82 Наличными: 0.00 Безнал.: 9000.60 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 46 14.05.2024 11:20 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67039 ФПД: 153613557883892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T112012&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67039&fm=153613557883892&tin=02508201610067®Number=0000000000091845&sum=900060 [11:20:09]StoreToDocumentArchive [11:20:09]shift 355 fd 67039 [11:20:09]save to /storage/0355/doc_00067039 [11:20:09]save last doc name /storage/0355/doc_00067039 to /storage/kkm_last_doc_name [11:20:09]save OK [11:20:09]Clear old archive folders... [11:20:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:20:09]tlvbuf is 0038CBB0 [11:20:09]SAM_PROTO_ClearQueue [11:20:09]wFMCommunicate request_size=4 [11:20:09]MH_SAM_APDU [11:20:09]CAPDU: 80 09 00 00 [11:20:09]Write to MH i2c: E2 08 00 1A 20 80 09 00 00 00 00 00 00 AC [11:20:09]Write i2c OK [11:20:09]MH_I2C_Read... [11:20:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:09]Read from MH i2c: E2 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 03 00 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 03 00 1A 20 00 90 00 AE [11:20:09]RAPDU: 90 00 [11:20:09]wFMCommunicate OK [11:20:09]SAM_PROTO_ClearQueue done [11:20:09]KKMCreateOFDPacket [11:20:09]OFDProtocolAddRootSTLVToBuf [11:20:09]FM_MakeSignedData [11:20:09]FM_MakeSignedData [11:20:09]SAM_PROTO_SignData [11:20:09]wFMCommunicate request_size=4 [11:20:09]MH_SAM_APDU [11:20:09]CAPDU: 80 0D 01 02 [11:20:09]Write to MH i2c: E2 08 00 1B 20 80 0D 01 02 00 00 00 00 B4 [11:20:09]Write i2c OK [11:20:09]MH_I2C_Read... [11:20:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:09]Read from MH i2c: E2 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 03 00 [11:20:09]MH_I2C_Read... [11:20:09]Read from MH i2c: E2 03 00 1B 20 00 90 00 AF [11:20:09]RAPDU: 90 00 [11:20:09]wFMCommunicate OK [11:20:09]wFMCommunicate request_size=255 [11:20:09]MH_SAM_APDU [11:20:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2E 00 00 00 F4 03 04 00 EC 48 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DF 05 01 00 35 04 06 00 8B B5 F1 8C [11:20:09]Write to MH i2c: E2 02 01 1C 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 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 2E 00 00 00 F4 03 04 00 EC 48 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DF 05 01 00 35 04 06 00 8B B5 F1 8C 00 00 EF [11:20:09]Write i2c OK [11:20:09]MH_I2C_Read... [11:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:10]Read from MH i2c: E2 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: E2 03 00 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: E2 03 00 1C 20 00 90 00 B0 [11:20:10]RAPDU: 90 00 [11:20:10]wFMCommunicate OK [11:20:10]wFMCommunicate request_size=7 [11:20:10]MH_SAM_APDU [11:20:10]CAPDU: 80 0D 02 02 02 E3 F4 [11:20:10]Write to MH i2c: E2 0A 00 1D 20 80 0D 02 02 02 00 E3 F4 00 00 92 [11:20:10]Write i2c OK [11:20:10]MH_I2C_Read... [11:20:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:10]Read from MH i2c: E2 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: E2 03 00 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: E2 03 00 1D 20 00 90 00 B1 [11:20:10]RAPDU: 90 00 [11:20:10]wFMCommunicate OK [11:20:10]wFMCommunicate request_size=4 [11:20:10]MH_SAM_APDU [11:20:10]CAPDU: 80 0D 03 02 [11:20:10]Write to MH i2c: E2 08 00 1E 20 80 0D 03 02 00 00 00 00 B9 [11:20:10]Write i2c OK [11:20:10]MH_I2C_Read... [11:20:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:10]Read from MH i2c: E2 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: E2 0B 00 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: E2 0B 00 1E 20 00 87 76 F5 6E B7 9B 92 21 90 00 1F [11:20:10]RAPDU: 87 76 F5 6E B7 9B 92 21 90 00 [11:20:10]wFMCommunicate OK [11:20:10]SAM_PROTO_SignData done [11:20:10]FM_MakeSignedData done [11:20:10]CreateOFDProtocolMessage [11:20:10]wFMCommunicate request_size=4 [11:20:10]MH_SAM_APDU [11:20:10]CAPDU: 80 11 00 00 [11:20:10]Write to MH i2c: E2 08 00 1F 20 80 11 00 00 00 00 00 00 B9 [11:20:10]Write i2c OK [11:20:10]MH_I2C_Read... [11:20:10]OFD Sender: No OFD packet to send [11:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:10]Read from MH i2c: E2 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: E2 17 00 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: E2 17 00 1F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0F [11:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:20:10]wFMCommunicate OK [11:20:10]CreateOFDProtocolMessage done [11:20:10]OFDSenderStorePacket 67039 [11:20:10]StoreOFDPacket docnum=67039 [11:20:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 53 54 04 01 80 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 2E 00 00 00 F4 03 04 00 EC 48 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DF 05 01 00 35 04 06 00 8B B5 F1 8C E3 F4 87 76 F5 6E B7 9B 92 21 [11:20:10]CheckFolder [11:20:10]dirname=/storage/ofd_packets [11:20:10]CheckFolder done [11:20:10]ProducePacketName [11:20:10]name=ofd_packets/00067039 [11:20:10]NVStorageSaveData ofd_packets/00067039 [11:20:10]File name is /storage/ofd_packets/00067039 [11:20:10]Write 298 bytes [11:20:10]NVStorageSaveData done [11:20:10]OFDSenderStorePacket done [11:20:10]KKMCreateOFDPacket done [11:20:10]NVStorageSaveData kkm_last_timestamp [11:20:10]File name is /storage/kkm_last_timestamp [11:20:10]Write 4 bytes [11:20:10]NVStorageSaveData done [11:20:10]ExternCall_PrintAddStr [11:20:10]wPrintStart [11:20:10]Write to MH i2c: 01 00 00 20 20 40 [11:20:10]Write i2c OK [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: 01 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: 01 07 00 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: 01 07 00 20 20 00 00 00 00 00 FF 0F 55 [11:20:10]RasterBufferAndPrint [11:20:10]line Счет N : (1)506896 [11:20:10]line ИНН: 02508201610067 [11:20:10]line Контрольно-Кассовый Чек [11:20:10]line ПРОДАЖА [11:20:10]line ТРК (МРК, ГНК) : 31 [11:20:10]line Товар: 2710194210 [11:20:10]line ДТ-К-5 [11:20:10]line 120.490 * 74.70 [11:20:10]line = 9000.60 [11:20:10]line НДС 12% НСП 1% [11:20:10]line > о реализуемом товаре [11:20:10]line ИТОГО: 9000.60 [11:20:10]line НСП 1% : 79.65 [11:20:10]line НДС 12% : 955.82 [11:20:10]line Наличными: 0.00 [11:20:10]line Безнал.: 9000.60 [11:20:10]line Место: АЗС № 91 "Партнер Нефть" [11:20:10]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:20:10]line СНО: Общий режим [11:20:10]line Чек 46 14.05.2024 11:20 [11:20:10]line Смена: 355 ФФД: 1.0 [11:20:10]line ЗНМ: 0300000119 [11:20:10]line РНМ: 0000000000091845 [11:20:10]line Версия ККМ: 001 [11:20:10]line Платежная система: O! деньги [11:20:10]line ФМ: 0000000000871829 [11:20:10]line ФД: 67039 [11:20:10]line ФПД: 153613557883892 [11:20:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T112012&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67039&fm=153613557883892&tin=02508201610067®Number=0000000000091845&sum=900060 [11:20:10]OFD Sender: Processing packet 67039 [packets to send 35, broken 34] [11:20:10]ProducePacketName [11:20:10]name=ofd_packets/00067039 [11:20:10]OFD Sender: To server: pG, [11:20:10]CommunicateWithHost lk.salyk.kg:30040 [11:20:10]ConnectInit lk.salyk.kg [11:20:10]written 0, free lines is 4095 [11:20:10]Connected sock=10 [11:20: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 53 54 04 01 80 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 2E 00 00 00 F4 03 04 00 EC 48 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 DF 05 01 00 35 04 06 00 8B B5 F1 8C E3 F4 87 76 F5 6E B7 9B 92 21 [11:20: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 ED 86 47 00 D8 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 DF 05 01 00 F4 03 04 00 CC F0 42 66 B6 04 01 00 00 31 87 4C 66 F9 59 8E 20 [11:20:10]CommunicateWithHost err = 0 [11:20:10]CheckOFDResponse [11:20:10]1017 (14) - 77093643461234 [11:20:10]1041 (16) - 0000000000871829 [11:20:10]1040 (4) - 67039 [11:20:10]1012 (4) - 14.05.2024 05:04 [11:20:10]1206 (1) - 0 [11:20:10]OFD Sender: Remove packet 67039 [11:20:10]ProducePacketName [11:20:10]name=ofd_packets/00067039 [11:20:10]NVStorageDeleteData [11:20:10]Write to MH i2c: 01 00 00 49 20 69 [11:20:10]Write i2c OK [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: 01 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: 01 07 00 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: 01 07 00 49 20 00 00 00 00 00 D9 0C 55 [11:20:10]RasterBufferAndPrint [11:20:10]line [11:20:10]line [11:20:10]line [11:20:10]line [11:20:10]line [11:20:10]written 0, free lines is 3298 [11:20:10]MH_Cut [11:20:10]Write to MH i2c: D1 01 00 50 20 01 42 [11:20:10]Write i2c OK [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: D1 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: D1 01 00 [11:20:10]MH_I2C_Read... [11:20:10]Read from MH i2c: D1 01 00 50 20 00 41 [11:20:10]Write to MH i2c: 01 00 00 51 20 71 [11:20:10]Write i2c OK [11:20:10]MH_I2C_Read... [11:20:11]OFD Sender: No OFD packet to send [11:20:11]*** Cut start [11:20:11]*** Purtial cut [11:20:11]*** CUTSNS_PIN = 0 [11:20:12]*** Stage 1: CUTSNS_PIN = 1 [11:20:13]Read from MH i2c: 01 [11:20:13]MH_I2C_Read... [11:20:13]*** Stop cut motor [11:20:13]*** Cut end [11:20:13]Read from MH i2c: 01 07 00 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: 01 07 00 51 20 00 00 00 00 00 FF 0F 86 [11:20:13]process_action close_receipt done [11:20:13]requested_data is exist [11:20:13]produce_requested_data [11:20:13]requested_item fm.sn is exist - process it [11:20:13]wFMCommunicate request_size=4 [11:20:13]MH_SAM_APDU [11:20:13]CAPDU: 80 11 00 00 [11:20:13]Write to MH i2c: E2 08 00 52 20 80 11 00 00 00 00 00 00 EC [11:20:13]Write i2c OK [11:20:13]MH_I2C_Read... [11:20:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:13]Read from MH i2c: E2 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 17 00 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 17 00 52 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 42 [11:20:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:20:13]wFMCommunicate OK [11:20:13]requested_item fd.num is exist - process it [11:20:13]SAM_PROTO_GetFieldsCounters [11:20:13]wFMCommunicate request_size=4 [11:20:13]MH_SAM_APDU [11:20:13]CAPDU: 80 13 00 00 [11:20:13]Write to MH i2c: E2 08 00 53 20 80 13 00 00 00 00 00 00 EF [11:20:13]Write i2c OK [11:20:13]MH_I2C_Read... [11:20:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:13]Read from MH i2c: E2 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 62 00 [11:20:13]MH_I2C_Read... [11:20:13]Read from MH i2c: E2 62 00 53 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 DF 05 01 00 0E 04 04 00 63 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 E8 [11:20: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 DF 05 01 00 0E 04 04 00 63 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:20:13]wFMCommunicate OK [11:20:13]SAM_PROTO_GetFieldsCounters done [11:20:13]requested_item shift.num is exist - process it [11:20:13]requested_item shift.opened is exist - process it [11:20:13]req_shift_opened [11:20:13]FM_GetShiftState [11:20:13]SAM_PROTO_GetShiftState [11:20:13]wFMCommunicate request_size=4 [11:20:13]MH_SAM_APDU [11:20:13]CAPDU: 80 13 01 00 [11:20:13]Write to MH i2c: E2 08 00 54 20 80 13 01 00 00 00 00 00 F1 [11:20:14]Write i2c OK [11:20:14]MH_I2C_Read... [11:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:14]Read from MH i2c: E2 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 0E 00 [11:20:14]MH_I2C_Read... [11:20:14]Read from MH i2c: E2 0E 00 54 20 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 B9 [11:20:14]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:20:14]wFMCommunicate OK [11:20:14]SAM_PROTO_GetShiftState done [11:20:14]FM_GetShiftState done [11:20:14]req_shift_opened done [11:20:14]requested_item shift.open_date is exist - process it [11:20:14]req_shift_open_date [11:20:14]req_shift_open_date done [11:20:14]produce_requested_data done [11:20:14]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67039,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:20:14]process_action_free close_receipt [11:20:14]json_value_free [11:20:14]json_value_free done [11:20:14]process_json_proto returns [11:20:14]Send response to host [11:20:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67039,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:20:14]free response buf [11:20:14]execute_script done [11:20:14]execute_script returns [11:20:14]free content buf [11:20:14]Sock 8.Close socket [11:20:14]Sock 8.Thread stoped [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: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:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:01]accept exits with 9 [11:22:01]New connection [11:22:01]New thread 3066617188 created [11:22:01]Thread 3066760548 joined [11:22:01]Waiting for new connection... [11:22:01] Sock 9.Parse request [11:22:01]Sock 9.Check first char [11:22:01]Sock 9.First char is OK [11:22:01]request: POST /json_proto HTTP/1.0 [11:22:01]Method: POST [11:22:01]URL: /json_proto [11:22:01]Method is POST - this is cgi request [11:22:01]url: /json_proto [11:22:01]query_string will be loaded in cgi processing [11:22:01]execute_cgi json_proto POST (null) [11:22:01]execute_cgi path=json_proto method=POST [11:22:01]POST find Content-Length [11:22:01]Host: 172.17.41.195:8080 [11:22:01]Content-Length: 1177 [11:22:01]Content-Type: application/json [11:22:01] [11:22:01]POST finish read [11:22:01]Found Content-Length = 1177 [11:22: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)506899\u000A14.05.2024 11: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 5.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 373.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:01]execute_script... [11:22: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)506899\u000A14.05.2024 11: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 5.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 373.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:01]POST & json_proto [11:22:01]process_json_proto [11:22:01]json parsed OK: [11:22:01]protocol is kg_v1.0 [11:22:01]action value=print_text [11:22:01]process_action print_text [11:22:01]cmd_print_text [11:22:01]ExternCall_PrintAddStr [11:22:01]wPrintStart [11:22:01]Write to MH i2c: 01 00 00 55 20 75 [11:22:01]Write i2c OK [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: 01 [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: 01 07 00 [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: 01 07 00 55 20 00 00 00 00 00 FF 0F 8A [11:22:01]RasterBufferAndPrint [11:22:01]line *****ТОВАРНЫЙ ЧЕК***** [11:22:01]line АЗС-91 [11:22:01]line Партнер нефть [11:22:01]line 02508201610067 [11:22:01]line Кассир : Адишов И. [11:22:01]line Счет N : (1)506899 [11:22:01]line 14.05.2024 11:04 [11:22:01]line ПРОДАЖА [11:22:01]line ТРК (МРК, ГНК): 11 [11:22:01]line Вид ГСМ : 2710194210 [11:22:01]line ДТ-К-5 [11:22:01]line 5.000 x 74.70 [11:22:01]line ИТОГ: 373.50 [11:22:01]line Тип оплаты: Талоны: Топливная Карта [11:22:01]line 02750 [11:22:01]line ______________________ [11:22:01]line (подпись) [11:22:01]written 0, free lines is 4095 [11:22:01]Write to MH i2c: 01 00 00 69 20 89 [11:22:01]Write i2c OK [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: 01 [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: 01 07 00 [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: 01 07 00 69 20 00 00 00 00 00 0B 0E A9 [11:22:01]RasterBufferAndPrint [11:22:01]line [11:22:01]line [11:22:01]line [11:22:01]line [11:22:01]line [11:22:01]written 0, free lines is 3596 [11:22:01]MH_Cut [11:22:01]Write to MH i2c: D1 01 00 70 20 01 62 [11:22:01]Write i2c OK [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: D1 [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: D1 01 00 [11:22:01]MH_I2C_Read... [11:22:01]Read from MH i2c: D1 01 00 70 20 00 61 [11:22:01]Write to MH i2c: 01 00 00 71 20 91 [11:22:01]Write i2c OK [11:22:01]MH_I2C_Read... [11:22:02]*** Cut start [11:22:02]*** Purtial cut [11:22:02]*** Stage 1: CUTSNS_PIN = 1 [11:22:02]Read from MH i2c: 01 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: 01 07 00 [11:22:02]MH_I2C_Read... [11:22:02]*** Stop cut motor [11:22:02]*** Cut end [11:22:02]Read from MH i2c: 01 07 00 71 20 00 00 00 00 00 FF 0F A6 [11:22:02]process_action print_text done [11:22:02]requested_data is exist [11:22:02]produce_requested_data [11:22:02]requested_item fm.sn is exist - process it [11:22:02]wFMCommunicate request_size=4 [11:22:02]MH_SAM_APDU [11:22:02]CAPDU: 80 11 00 00 [11:22:02]Write to MH i2c: E2 08 00 72 20 80 11 00 00 00 00 00 00 0C [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:02]Read from MH i2c: E2 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 17 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 17 00 72 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 62 [11:22:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:22:02]wFMCommunicate OK [11:22:02]requested_item fd.num is exist - process it [11:22:02]SAM_PROTO_GetFieldsCounters [11:22:02]wFMCommunicate request_size=4 [11:22:02]MH_SAM_APDU [11:22:02]CAPDU: 80 13 00 00 [11:22:02]Write to MH i2c: E2 08 00 73 20 80 13 00 00 00 00 00 00 0F [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:02]Read from MH i2c: E2 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 62 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 62 00 73 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 DF 05 01 00 0E 04 04 00 63 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 08 [11:22: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 DF 05 01 00 0E 04 04 00 63 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:22:02]wFMCommunicate OK [11:22:02]SAM_PROTO_GetFieldsCounters done [11:22:02]requested_item shift.num is exist - process it [11:22:02]requested_item shift.opened is exist - process it [11:22:02]req_shift_opened [11:22:02]FM_GetShiftState [11:22:02]SAM_PROTO_GetShiftState [11:22:02]wFMCommunicate request_size=4 [11:22:02]MH_SAM_APDU [11:22:02]CAPDU: 80 13 01 00 [11:22:02]Write to MH i2c: E2 08 00 74 20 80 13 01 00 00 00 00 00 11 [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:02]Read from MH i2c: E2 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 0E 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 0E 00 74 20 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D9 [11:22:02]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:22:02]wFMCommunicate OK [11:22:02]SAM_PROTO_GetShiftState done [11:22:02]FM_GetShiftState done [11:22:02]req_shift_opened done [11:22:02]requested_item shift.open_date is exist - process it [11:22:02]req_shift_open_date [11:22:02]req_shift_open_date done [11:22:02]produce_requested_data done [11:22:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67039,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:22:02]process_action_free print_text [11:22:02]json_value_free [11:22:02]json_value_free done [11:22:02]process_json_proto returns [11:22:02]Send response to host [11:22:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67039,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:22:02]free response buf [11:22:02]execute_script done [11:22:02]execute_script returns [11:22:02]free content buf [11:22:02]Sock 9.Close socket [11:22:02]Sock 9.Thread stoped [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:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:31]OFD Sender: No OFD packet to send [11:25:35]accept exits with 8 [11:25:35]New connection [11:25:35]New thread 3066760548 created [11:25:35]Thread 3066617188 joined [11:25:35]Waiting for new connection... [11:25:35] Sock 8.Parse request [11:25:35]Sock 8.Check first char [11:25:35]Sock 8.First char is OK [11:25:35]request: POST /json_proto HTTP/1.0 [11:25:35]Method: POST [11:25:35]URL: /json_proto [11:25:35]Method is POST - this is cgi request [11:25:35]url: /json_proto [11:25:35]query_string will be loaded in cgi processing [11:25:35]execute_cgi json_proto POST (null) [11:25:35]execute_cgi path=json_proto method=POST [11:25:35]POST find Content-Length [11:25:35]Host: 172.17.41.195:8080 [11:25:35]Content-Length: 800 [11:25:35]Content-Type: application/json [11:25:35] [11:25:35]POST finish read [11:25:35]Found Content-Length = 800 [11:25:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506898", "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" : 99.070, "sum" : 7400.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" : 7400.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:35]execute_script... [11:25:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506898", "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" : 99.070, "sum" : 7400.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" : 7400.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:35]POST & json_proto [11:25:35]process_json_proto [11:25:35]json parsed OK: [11:25:35]protocol is kg_v1.0 [11:25:35]action value=close_receipt [11:25:35]process_action close_receipt [11:25:35]cmd_close_receipt [11:25:35]MH_GetDate [11:25:35]Write to MH i2c: F0 00 00 75 20 84 [11:25:35]Write i2c OK [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: F0 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: F0 09 00 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: F0 09 00 75 20 00 33 4A 43 66 FC 21 6F 64 A3 [11:25:35]GetLastDocTimeStamp 1715685612 [11:25:35]current date 1715685939 [11:25:35]FM_GetShiftState [11:25:35]SAM_PROTO_GetShiftState [11:25:35]wFMCommunicate request_size=4 [11:25:35]MH_SAM_APDU [11:25:35]CAPDU: 80 13 01 00 [11:25:35]Write to MH i2c: E2 08 00 76 20 80 13 01 00 00 00 00 00 13 [11:25:35]Write i2c OK [11:25:35]MH_I2C_Read... [11:25:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:35]Read from MH i2c: E2 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 0E 00 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 0E 00 76 20 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 DB [11:25:35]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:25:35]wFMCommunicate OK [11:25:35]SAM_PROTO_GetShiftState done [11:25:35]FM_GetShiftState done [11:25:35]opened in 1715646054 [11:25:35]opened+sec_in_day 1715732454 [11:25:35]quantity*price = 740052 [11:25:35]sum+1 = 740054 [11:25:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7400.53 НСП 1% : 65.49 НДС 12% : 785.90 Наличными: 0.00 Безнал.: 7400.53 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 47 14.05.2024 11:25 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67040 ФПД: 227526885834806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T112539&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67040&fm=227526885834806&tin=02508201610067®Number=0000000000091845&sum=740053 [11:25:36]StoreToDocumentArchive [11:25:36]shift 355 fd 67040 [11:25:36]save to /storage/0355/doc_00067040 [11:25:36]save last doc name /storage/0355/doc_00067040 to /storage/kkm_last_doc_name [11:25:36]save OK [11:25:36]Clear old archive folders... [11:25:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:25:36]tlvbuf is 00349950 [11:25:36]SAM_PROTO_ClearQueue [11:25:36]wFMCommunicate request_size=4 [11:25:36]MH_SAM_APDU [11:25:36]CAPDU: 80 09 00 00 [11:25:36]Write to MH i2c: E2 08 00 83 20 80 09 00 00 00 00 00 00 15 [11:25:36]Write i2c OK [11:25:36]MH_I2C_Read... [11:25:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:36]Read from MH i2c: E2 [11:25:36]MH_I2C_Read... [11:25:36]Read from MH i2c: E2 03 00 [11:25:36]MH_I2C_Read... [11:25:36]Read from MH i2c: E2 03 00 83 20 00 90 00 17 [11:25:36]RAPDU: 90 00 [11:25:36]wFMCommunicate OK [11:25:36]SAM_PROTO_ClearQueue done [11:25:36]KKMCreateOFDPacket [11:25:36]OFDProtocolAddRootSTLVToBuf [11:25:36]FM_MakeSignedData [11:25:36]FM_MakeSignedData [11:25:36]SAM_PROTO_SignData [11:25:36]wFMCommunicate request_size=4 [11:25:36]MH_SAM_APDU [11:25:36]CAPDU: 80 0D 01 02 [11:25:36]Write to MH i2c: E2 08 00 84 20 80 0D 01 02 00 00 00 00 1D [11:25:36]Write i2c OK [11:25:36]MH_I2C_Read... [11:25:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:36]Read from MH i2c: E2 [11:25:36]MH_I2C_Read... [11:25:36]Read from MH i2c: E2 03 00 [11:25:36]MH_I2C_Read... [11:25:36]Read from MH i2c: E2 03 00 84 20 00 90 00 18 [11:25:36]RAPDU: 90 00 [11:25:36]wFMCommunicate OK [11:25:36]wFMCommunicate request_size=255 [11:25:36]MH_SAM_APDU [11:25: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 FE 82 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 D5 4A 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 4A 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 32 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 4A 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 33 4A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E0 05 01 00 35 04 06 00 CE EF 3B 35 [11:25:36]Write to MH i2c: E2 02 01 85 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 FE 82 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 D5 4A 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 4A 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 32 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 4A 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 33 4A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E0 05 01 00 35 04 06 00 CE EF 3B 35 00 00 74 [11:25:36]Write i2c OK [11:25:36]MH_I2C_Read... [11:25:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:37]Read from MH i2c: E2 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 03 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 03 00 85 20 00 90 00 19 [11:25:37]RAPDU: 90 00 [11:25:37]wFMCommunicate OK [11:25:37]wFMCommunicate request_size=7 [11:25:37]MH_SAM_APDU [11:25:37]CAPDU: 80 0D 02 02 02 00 36 [11:25:37]Write to MH i2c: E2 0A 00 86 20 80 0D 02 02 02 00 00 36 00 00 5A [11:25:37]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:37]Read from MH i2c: E2 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 03 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 03 00 86 20 00 90 00 1A [11:25:37]RAPDU: 90 00 [11:25:37]wFMCommunicate OK [11:25:37]wFMCommunicate request_size=4 [11:25:37]MH_SAM_APDU [11:25:37]CAPDU: 80 0D 03 02 [11:25:37]Write to MH i2c: E2 08 00 87 20 80 0D 03 02 00 00 00 00 22 [11:25:37]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:37]Read from MH i2c: E2 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 0B 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 0B 00 87 20 00 70 EF 99 1D 9B F2 09 48 90 00 16 [11:25:37]RAPDU: 70 EF 99 1D 9B F2 09 48 90 00 [11:25:37]wFMCommunicate OK [11:25:37]SAM_PROTO_SignData done [11:25:37]FM_MakeSignedData done [11:25:37]CreateOFDProtocolMessage [11:25:37]wFMCommunicate request_size=4 [11:25:37]MH_SAM_APDU [11:25:37]CAPDU: 80 11 00 00 [11:25:37]Write to MH i2c: E2 08 00 88 20 80 11 00 00 00 00 00 00 22 [11:25:37]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:37]Read from MH i2c: E2 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 17 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 17 00 88 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 78 [11:25: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:25:37]wFMCommunicate OK [11:25:37]CreateOFDProtocolMessage done [11:25:37]OFDSenderStorePacket 67040 [11:25:37]StoreOFDPacket docnum=67040 [11:25: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 55 C2 04 01 C7 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 82 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 D5 4A 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 4A 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 32 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 4A 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 33 4A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E0 05 01 00 35 04 06 00 CE EF 3B 35 00 36 70 EF 99 1D 9B F2 09 48 [11:25:37]CheckFolder [11:25:37]dirname=/storage/ofd_packets [11:25:37]CheckFolder done [11:25:37]ProducePacketName [11:25:37]name=ofd_packets/00067040 [11:25:37]NVStorageSaveData ofd_packets/00067040 [11:25:37]File name is /storage/ofd_packets/00067040 [11:25:37]Write 298 bytes [11:25:37]NVStorageSaveData done [11:25:37]OFDSenderStorePacket done [11:25:37]KKMCreateOFDPacket done [11:25:37]NVStorageSaveData kkm_last_timestamp [11:25:37]File name is /storage/kkm_last_timestamp [11:25:37]Write 4 bytes [11:25:37]NVStorageSaveData done [11:25:37]ExternCall_PrintAddStr [11:25:37]wPrintStart [11:25:37]Write to MH i2c: 01 00 00 89 20 A9 [11:25:37]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: 01 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: 01 07 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: 01 07 00 89 20 00 00 00 00 00 FF 0F BE [11:25:37]RasterBufferAndPrint [11:25:37]line Счет N : (1)506898 [11:25:37]line ИНН: 02508201610067 [11:25:37]line Контрольно-Кассовый Чек [11:25:37]line ПРОДАЖА [11:25:37]line ТРК (МРК, ГНК) : 31 [11:25:37]line Товар: 2710194210 [11:25:37]line ДТ-К-5 [11:25:37]line 99.070 * 74.70 [11:25:37]line = 7400.53 [11:25:37]line НДС 12% НСП 1% [11:25:37]line > о реализуемом товаре [11:25:37]line ИТОГО: 7400.53 [11:25:37]line НСП 1% : 65.49 [11:25:37]line НДС 12% : 785.90 [11:25:37]line Наличными: 0.00 [11:25:37]line Безнал.: 7400.53 [11:25:37]line Место: АЗС № 91 "Партнер Нефть" [11:25:37]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:25:37]line СНО: Общий режим [11:25:37]line Чек 47 14.05.2024 11:25 [11:25:37]line Смена: 355 ФФД: 1.0 [11:25:37]line ЗНМ: 0300000119 [11:25:37]line РНМ: 0000000000091845 [11:25:37]line Версия ККМ: 001 [11:25:37]line Платежная система: O! деньги [11:25:37]line ФМ: 0000000000871829 [11:25:37]line ФД: 67040 [11:25:37]line ФПД: 227526885834806 [11:25:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T112539&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67040&fm=227526885834806&tin=02508201610067®Number=0000000000091845&sum=740053 [11:25:37]OFD Sender: Processing packet 67040 [packets to send 35, broken 34] [11:25:37]ProducePacketName [11:25:37]name=ofd_packets/00067040 [11:25:37]OFD Sender: To server: pG, [11:25:37]CommunicateWithHost lk.salyk.kg:30040 [11:25:37]ConnectInit lk.salyk.kg [11:25:37]written 0, free lines is 4095 [11:25:38]Write to MH i2c: 01 00 00 B2 20 D2 [11:25:38]Write i2c OK [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: 01 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: 01 07 00 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: 01 07 00 B2 20 00 00 00 00 00 CF 0C B4 [11:25:38]RasterBufferAndPrint [11:25:38]line [11:25:38]line [11:25:38]line [11:25:38]line [11:25:38]line [11:25:38]written 0, free lines is 3284 [11:25:38]MH_Cut [11:25:38]Write to MH i2c: D1 01 00 B9 20 01 AB [11:25:38]Write i2c OK [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: D1 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: D1 01 00 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: D1 01 00 B9 20 00 AA [11:25:38]Write to MH i2c: 01 00 00 BA 20 DA [11:25:38]Write i2c OK [11:25:38]MH_I2C_Read... [11:25:38]Connected sock=9 [11:25:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 55 C2 04 01 C7 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FE 82 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 D5 4A 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 4A 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 32 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 4A 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 33 4A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E0 05 01 00 35 04 06 00 CE EF 3B 35 00 36 70 EF 99 1D 9B F2 09 48 [11:25: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 DA 59 47 00 B3 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E0 05 01 00 F4 03 04 00 14 F2 42 66 B6 04 01 00 00 FB D4 DE F5 78 C7 A2 EB [11:25:38]CommunicateWithHost err = 0 [11:25:38]CheckOFDResponse [11:25:38]1017 (14) - 77093643461234 [11:25:38]1041 (16) - 0000000000871829 [11:25:38]1040 (4) - 67040 [11:25:38]1012 (4) - 14.05.2024 05:09 [11:25:38]1206 (1) - 0 [11:25:38]OFD Sender: Remove packet 67040 [11:25:38]ProducePacketName [11:25:38]name=ofd_packets/00067040 [11:25:38]NVStorageDeleteData [11:25:38]*** Cut start [11:25:38]*** Purtial cut [11:25:38]*** CUTSNS_PIN = 0 [11:25:38]OFD Sender: No OFD packet to send [11:25:39]*** Stage 1: CUTSNS_PIN = 1 [11:25:40]Read from MH i2c: 01 [11:25:40]MH_I2C_Read... [11:25:40]*** Stop cut motor [11:25:40]*** Cut end [11:25:40]Read from MH i2c: 01 07 00 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: 01 07 00 BA 20 00 00 00 00 00 FF 0F EF [11:25:40]process_action close_receipt done [11:25:40]requested_data is exist [11:25:40]produce_requested_data [11:25:40]requested_item fm.sn is exist - process it [11:25:40]wFMCommunicate request_size=4 [11:25:40]MH_SAM_APDU [11:25:40]CAPDU: 80 11 00 00 [11:25:40]Write to MH i2c: E2 08 00 BB 20 80 11 00 00 00 00 00 00 55 [11:25:40]Write i2c OK [11:25:40]MH_I2C_Read... [11:25:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:41]Read from MH i2c: E2 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: E2 17 00 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: E2 17 00 BB 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AB [11:25: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:25:41]wFMCommunicate OK [11:25:41]requested_item fd.num is exist - process it [11:25:41]SAM_PROTO_GetFieldsCounters [11:25:41]wFMCommunicate request_size=4 [11:25:41]MH_SAM_APDU [11:25:41]CAPDU: 80 13 00 00 [11:25:41]Write to MH i2c: E2 08 00 BC 20 80 13 00 00 00 00 00 00 58 [11:25:41]Write i2c OK [11:25:41]MH_I2C_Read... [11:25:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:41]Read from MH i2c: E2 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: E2 62 00 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: E2 62 00 BC 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 E0 05 01 00 0E 04 04 00 63 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 55 [11:25:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E0 05 01 00 0E 04 04 00 63 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:25:41]wFMCommunicate OK [11:25:41]SAM_PROTO_GetFieldsCounters done [11:25:41]requested_item shift.num is exist - process it [11:25:41]requested_item shift.opened is exist - process it [11:25:41]req_shift_opened [11:25:41]FM_GetShiftState [11:25:41]SAM_PROTO_GetShiftState [11:25:41]wFMCommunicate request_size=4 [11:25:41]MH_SAM_APDU [11:25:41]CAPDU: 80 13 01 00 [11:25:41]Write to MH i2c: E2 08 00 BD 20 80 13 01 00 00 00 00 00 5A [11:25:41]Write i2c OK [11:25:41]MH_I2C_Read... [11:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:41]Read from MH i2c: E2 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: E2 0E 00 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: E2 0E 00 BD 20 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 22 [11:25:41]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:25:41]wFMCommunicate OK [11:25:41]SAM_PROTO_GetShiftState done [11:25:41]FM_GetShiftState done [11:25:41]req_shift_opened done [11:25:41]requested_item shift.open_date is exist - process it [11:25:41]req_shift_open_date [11:25:41]req_shift_open_date done [11:25:41]produce_requested_data done [11:25:41]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67040,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:25:41]process_action_free close_receipt [11:25:41]json_value_free [11:25:41]json_value_free done [11:25:41]process_json_proto returns [11:25:41]Send response to host [11:25:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67040,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:25:41]free response buf [11:25:41]execute_script done [11:25:41]execute_script returns [11:25:41]free content buf [11:25:41]Sock 8.Close socket [11:25:41]Sock 8.Thread stoped [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:10]recv_with_timeout no data received [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [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:00]accept exits with 10 [11:31:00]New connection [11:31:00]New thread 3066617188 created [11:31:00]Thread 3066760548 joined [11:31:00]Waiting for new connection... [11:31:00] Sock 10.Parse request [11:31:00]Sock 10.Check first char [11:31:00]Sock 10.First char is OK [11:31:00]request: POST /json_proto HTTP/1.0 [11:31:00]Method: POST [11:31:00]URL: /json_proto [11:31:00]Method is POST - this is cgi request [11:31:00]url: /json_proto [11:31:00]query_string will be loaded in cgi processing [11:31:00]execute_cgi json_proto POST (null) [11:31:00]execute_cgi path=json_proto method=POST [11:31:00]POST find Content-Length [11:31:00]Host: 172.17.41.195:8080 [11:31:00]Content-Length: 1178 [11:31:00]Content-Type: application/json [11:31:00] [11:31:00]POST finish read [11:31:00]Found Content-Length = 1178 [11:31:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506900\u000A14.05.2024 11:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 12.050 x 74.70\u000A\u0418\u0422\u041E\u0413: 900.14\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:00]execute_script... [11:31:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506900\u000A14.05.2024 11:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 12.050 x 74.70\u000A\u0418\u0422\u041E\u0413: 900.14\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:00]POST & json_proto [11:31:00]process_json_proto [11:31:00]json parsed OK: [11:31:00]protocol is kg_v1.0 [11:31:00]action value=print_text [11:31:00]process_action print_text [11:31:00]cmd_print_text [11:31:00]ExternCall_PrintAddStr [11:31:00]wPrintStart [11:31:00]Write to MH i2c: 01 00 00 BE 20 DE [11:31:00]Write i2c OK [11:31:00]MH_I2C_Read... [11:31:00]Read from MH i2c: 01 [11:31:00]MH_I2C_Read... [11:31:00]Read from MH i2c: 01 07 00 [11:31:00]MH_I2C_Read... [11:31:00]Read from MH i2c: 01 07 00 BE 20 00 00 00 00 00 FF 0F F3 [11:31:00]RasterBufferAndPrint [11:31:00]line *****ТОВАРНЫЙ ЧЕК***** [11:31:00]line АЗС-91 [11:31:00]line Партнер нефть [11:31:00]line 02508201610067 [11:31:00]line Кассир : Адишов И. [11:31:00]line Счет N : (1)506900 [11:31:00]line 14.05.2024 11:13 [11:31:00]line ПРОДАЖА [11:31:00]line ТРК (МРК, ГНК): 41 [11:31:00]line Вид ГСМ : 2710194210 [11:31:00]line ДТ-К-5 [11:31:00]line 12.050 x 74.70 [11:31:00]line ИТОГ: 900.14 [11:31:00]line Тип оплаты: Талоны: Топливная Карта [11:31:00]line 02750 [11:31:00]line ______________________ [11:31:00]line (подпись) [11:31:00]written 0, free lines is 4095 [11:31:00]Write to MH i2c: 01 00 00 D2 20 F2 [11:31:00]Write i2c OK [11:31:00]MH_I2C_Read... [11:31:00]Read from MH i2c: 01 [11:31:00]MH_I2C_Read... [11:31:00]Read from MH i2c: 01 07 00 [11:31:00]MH_I2C_Read... [11:31:00]Read from MH i2c: 01 07 00 D2 20 00 00 00 00 00 0B 0E 12 [11:31:00]RasterBufferAndPrint [11:31:00]line [11:31:00]line [11:31:00]line [11:31:00]line [11:31:00]line [11:31:00]written 0, free lines is 3597 [11:31:00]MH_Cut [11:31:00]Write to MH i2c: D1 01 00 D9 20 01 CB [11:31:00]Write i2c OK [11:31:00]MH_I2C_Read... [11:31:00]Read from MH i2c: D1 [11:31:00]MH_I2C_Read... [11:31:00]Read from MH i2c: D1 01 00 [11:31:00]MH_I2C_Read... [11:31:00]Read from MH i2c: D1 01 00 D9 20 00 CA [11:31:00]Write to MH i2c: 01 00 00 DA 20 FA [11:31:00]Write i2c OK [11:31:00]MH_I2C_Read... [11:31:01]*** Cut start [11:31:01]*** Purtial cut [11:31:01]*** Stage 1: CUTSNS_PIN = 1 [11:31:01]Read from MH i2c: 01 [11:31:01]MH_I2C_Read... [11:31:01]Read from MH i2c: 01 07 00 [11:31:01]MH_I2C_Read... [11:31:01]*** Stop cut motor [11:31:01]*** Cut end [11:31:01]Read from MH i2c: 01 07 00 DA 20 00 00 00 00 00 FF 0F 0F [11:31:01]process_action print_text done [11:31:01]requested_data is exist [11:31:01]produce_requested_data [11:31:01]requested_item fm.sn is exist - process it [11:31:01]wFMCommunicate request_size=4 [11:31:01]MH_SAM_APDU [11:31:01]CAPDU: 80 11 00 00 [11:31:01]Write to MH i2c: E2 08 00 DB 20 80 11 00 00 00 00 00 00 75 [11:31:01]Write i2c OK [11:31:01]MH_I2C_Read... [11:31:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:01]Read from MH i2c: E2 [11:31:01]MH_I2C_Read... [11:31:01]Read from MH i2c: E2 17 00 [11:31:01]MH_I2C_Read... [11:31:01]Read from MH i2c: E2 17 00 DB 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CB [11:31: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:31:01]wFMCommunicate OK [11:31:01]requested_item fd.num is exist - process it [11:31:01]SAM_PROTO_GetFieldsCounters [11:31:01]wFMCommunicate request_size=4 [11:31:01]MH_SAM_APDU [11:31:01]CAPDU: 80 13 00 00 [11:31:01]Write to MH i2c: E2 08 00 DC 20 80 13 00 00 00 00 00 00 78 [11:31:01]Write i2c OK [11:31:01]MH_I2C_Read... [11:31:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:01]Read from MH i2c: E2 [11:31:01]MH_I2C_Read... [11:31:01]Read from MH i2c: E2 62 00 [11:31:01]MH_I2C_Read... [11:31:01]Read from MH i2c: E2 62 00 DC 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 E0 05 01 00 0E 04 04 00 63 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 75 [11:31: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 E0 05 01 00 0E 04 04 00 63 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:31:01]wFMCommunicate OK [11:31:01]SAM_PROTO_GetFieldsCounters done [11:31:01]requested_item shift.num is exist - process it [11:31:01]requested_item shift.opened is exist - process it [11:31:01]req_shift_opened [11:31:01]FM_GetShiftState [11:31:01]SAM_PROTO_GetShiftState [11:31:01]wFMCommunicate request_size=4 [11:31:01]MH_SAM_APDU [11:31:01]CAPDU: 80 13 01 00 [11:31:01]Write to MH i2c: E2 08 00 DD 20 80 13 01 00 00 00 00 00 7A [11:31:01]Write i2c OK [11:31:01]MH_I2C_Read... [11:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:02]Read from MH i2c: E2 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: E2 0E 00 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: E2 0E 00 DD 20 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 42 [11:31:02]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:31:02]wFMCommunicate OK [11:31:02]SAM_PROTO_GetShiftState done [11:31:02]FM_GetShiftState done [11:31:02]req_shift_opened done [11:31:02]requested_item shift.open_date is exist - process it [11:31:02]req_shift_open_date [11:31:02]req_shift_open_date done [11:31:02]produce_requested_data done [11:31:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67040,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:31:02]process_action_free print_text [11:31:02]json_value_free [11:31:02]json_value_free done [11:31:02]process_json_proto returns [11:31:02]Send response to host [11:31:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67040,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:31:02]free response buf [11:31:02]execute_script done [11:31:02]execute_script returns [11:31:02]free content buf [11:31:02]Sock 10.Close socket [11:31:02]Sock 10.Thread stoped [11:31:02]accept exits with 8 [11:31:02]New connection [11:31:02]New thread 3066760548 created [11:31:02]Thread 3066617188 joined [11:31:02]Waiting for new connection... [11:31:02] Sock 8.Parse request [11:31:02]Sock 8.Check first char [11:31:02]Sock 8.First char is OK [11:31:02]request: POST /json_proto HTTP/1.0 [11:31:02]Method: POST [11:31:02]URL: /json_proto [11:31:02]Method is POST - this is cgi request [11:31:02]url: /json_proto [11:31:02]query_string will be loaded in cgi processing [11:31:02]execute_cgi json_proto POST (null) [11:31:02]execute_cgi path=json_proto method=POST [11:31:02]POST find Content-Length [11:31:02]Host: 172.17.41.195:8080 [11:31:02]Content-Length: 674 [11:31:02]Content-Type: application/json [11:31:02] [11:31:02]POST finish read [11:31:02]Found Content-Length = 674 [11:31:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 8.040, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:02]execute_script... [11:31: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)506901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 8.040, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:02]POST & json_proto [11:31:02]process_json_proto [11:31:02]json parsed OK: [11:31:02]protocol is kg_v1.0 [11:31:02]action value=close_receipt [11:31:02]process_action close_receipt [11:31:02]cmd_close_receipt [11:31:02]MH_GetDate [11:31:02]Write to MH i2c: F0 00 00 DE 20 ED [11:31:02]Write i2c OK [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: F0 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: F0 09 00 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: F0 09 00 DE 20 00 7A 4B 43 66 FC 21 6F 64 54 [11:31:02]GetLastDocTimeStamp 1715685939 [11:31:02]current date 1715686266 [11:31:02]FM_GetShiftState [11:31:02]SAM_PROTO_GetShiftState [11:31:02]wFMCommunicate request_size=4 [11:31:02]MH_SAM_APDU [11:31:02]CAPDU: 80 13 01 00 [11:31:02]Write to MH i2c: E2 08 00 DF 20 80 13 01 00 00 00 00 00 7C [11:31:02]Write i2c OK [11:31:02]MH_I2C_Read... [11:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:02]Read from MH i2c: E2 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: E2 0E 00 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: E2 0E 00 DF 20 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 44 [11:31:02]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:31:02]wFMCommunicate OK [11:31:02]SAM_PROTO_GetShiftState done [11:31:02]FM_GetShiftState done [11:31:02]opened in 1715646054 [11:31:02]opened+sec_in_day 1715732454 [11:31:02]quantity*price = 60058 [11:31:02]sum+1 = 60060 [11:31:02]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 СНО: Общий режим Чек 48 14.05.2024 11:31 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67041 ФПД: 179246131504841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T113106&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67041&fm=179246131504841&tin=02508201610067®Number=0000000000091845&sum=60000 [11:31:03]StoreToDocumentArchive [11:31:03]shift 355 fd 67041 [11:31:03]save to /storage/0355/doc_00067041 [11:31:03]save last doc name /storage/0355/doc_00067041 to /storage/kkm_last_doc_name [11:31:03]save OK [11:31:03]Clear old archive folders... [11:31:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:31:03]tlvbuf is 003A5120 [11:31:03]SAM_PROTO_ClearQueue [11:31:03]wFMCommunicate request_size=4 [11:31:03]MH_SAM_APDU [11:31:03]CAPDU: 80 09 00 00 [11:31:03]Write to MH i2c: E2 08 00 EC 20 80 09 00 00 00 00 00 00 7E [11:31:03]Write i2c OK [11:31:03]MH_I2C_Read... [11:31:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:03]Read from MH i2c: E2 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: E2 03 00 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: E2 03 00 EC 20 00 90 00 80 [11:31:03]RAPDU: 90 00 [11:31:03]wFMCommunicate OK [11:31:03]SAM_PROTO_ClearQueue done [11:31:03]KKMCreateOFDPacket [11:31:03]OFDProtocolAddRootSTLVToBuf [11:31:03]FM_MakeSignedData [11:31:03]FM_MakeSignedData [11:31:03]SAM_PROTO_SignData [11:31:03]wFMCommunicate request_size=4 [11:31:03]MH_SAM_APDU [11:31:03]CAPDU: 80 0D 01 02 [11:31:03]Write to MH i2c: E2 08 00 ED 20 80 0D 01 02 00 00 00 00 86 [11:31:03]Write i2c OK [11:31:03]MH_I2C_Read... [11:31:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:03]Read from MH i2c: E2 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: E2 03 00 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: E2 03 00 ED 20 00 90 00 81 [11:31:03]RAPDU: 90 00 [11:31:03]wFMCommunicate OK [11:31:03]wFMCommunicate request_size=255 [11:31:03]MH_SAM_APDU [11:31:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 30 00 00 00 F4 03 04 00 7A 4B 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E1 05 01 00 35 04 06 00 A3 05 FD FE [11:31:03]Write to MH i2c: E2 02 01 EE 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 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 30 00 00 00 F4 03 04 00 7A 4B 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E1 05 01 00 35 04 06 00 A3 05 FD FE 00 00 76 [11:31:04]OFD Sender: No OFD packet to send [11:31:04]Write i2c OK [11:31:04]MH_I2C_Read... [11:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:04]Read from MH i2c: E2 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: E2 03 00 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: E2 03 00 EE 20 00 90 00 82 [11:31:04]RAPDU: 90 00 [11:31:04]wFMCommunicate OK [11:31:04]wFMCommunicate request_size=7 [11:31:04]MH_SAM_APDU [11:31:04]CAPDU: 80 0D 02 02 02 E6 C9 [11:31:04]Write to MH i2c: E2 0A 00 EF 20 80 0D 02 02 02 00 E6 C9 00 00 3C [11:31:04]Write i2c OK [11:31:04]MH_I2C_Read... [11:31:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:04]Read from MH i2c: E2 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: E2 03 00 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: E2 03 00 EF 20 00 90 00 83 [11:31:04]RAPDU: 90 00 [11:31:04]wFMCommunicate OK [11:31:04]wFMCommunicate request_size=4 [11:31:04]MH_SAM_APDU [11:31:04]CAPDU: 80 0D 03 02 [11:31:04]Write to MH i2c: E2 08 00 F0 20 80 0D 03 02 00 00 00 00 8B [11:31:04]Write i2c OK [11:31:04]MH_I2C_Read... [11:31:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:04]Read from MH i2c: E2 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: E2 0B 00 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: E2 0B 00 F0 20 00 7E D5 D0 D4 FC 7B 14 83 90 00 91 [11:31:04]RAPDU: 7E D5 D0 D4 FC 7B 14 83 90 00 [11:31:04]wFMCommunicate OK [11:31:04]SAM_PROTO_SignData done [11:31:04]FM_MakeSignedData done [11:31:04]CreateOFDProtocolMessage [11:31:04]wFMCommunicate request_size=4 [11:31:04]MH_SAM_APDU [11:31:04]CAPDU: 80 11 00 00 [11:31:04]Write to MH i2c: E2 08 00 F1 20 80 11 00 00 00 00 00 00 8B [11:31:04]Write i2c OK [11:31:04]MH_I2C_Read... [11:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:04]Read from MH i2c: E2 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: E2 17 00 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: E2 17 00 F1 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E1 [11:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:31:04]wFMCommunicate OK [11:31:04]CreateOFDProtocolMessage done [11:31:04]OFDSenderStorePacket 67041 [11:31:04]StoreOFDPacket docnum=67041 [11:31:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 DE D0 04 01 D4 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 30 00 00 00 F4 03 04 00 7A 4B 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E1 05 01 00 35 04 06 00 A3 05 FD FE E6 C9 7E D5 D0 D4 FC 7B 14 83 [11:31:04]CheckFolder [11:31:04]dirname=/storage/ofd_packets [11:31:04]CheckFolder done [11:31:04]ProducePacketName [11:31:04]name=ofd_packets/00067041 [11:31:04]NVStorageSaveData ofd_packets/00067041 [11:31:04]File name is /storage/ofd_packets/00067041 [11:31:04]Write 298 bytes [11:31:04]NVStorageSaveData done [11:31:04]OFDSenderStorePacket done [11:31:04]KKMCreateOFDPacket done [11:31:04]NVStorageSaveData kkm_last_timestamp [11:31:04]File name is /storage/kkm_last_timestamp [11:31:04]Write 4 bytes [11:31:04]NVStorageSaveData done [11:31:04]ExternCall_PrintAddStr [11:31:04]wPrintStart [11:31:04]Write to MH i2c: 01 00 00 F2 20 12 [11:31:04]Write i2c OK [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: 01 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: 01 07 00 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: 01 07 00 F2 20 00 00 00 00 00 FF 0F 27 [11:31:04]RasterBufferAndPrint [11:31:04]line Счет N : (1)506901 [11:31:04]line ИНН: 02508201610067 [11:31:04]line Контрольно-Кассовый Чек [11:31:04]line ПРОДАЖА [11:31:04]line ТРК (МРК, ГНК) : 11 [11:31:04]line Товар: 2710194210 [11:31:04]line ДТ-К-5 [11:31:04]line 8.040 * 74.70 [11:31:04]line = 600.59 [11:31:04]line НДС 12% НСП 1% [11:31:04]line > о реализуемом товаре [11:31:04]line ОКРУГЛЕНИЕ: -0.59 [11:31:04]line ИТОГО: 600.00 [11:31:04]line Внесено: 600.00 [11:31:04]line СДАЧА: 0.00 [11:31:04]line НСП 1% : 5.31 [11:31:04]line НДС 12% : 63.78 [11:31:04]line Наличными: 600.00 [11:31:04]line Безнал.: 0.00 [11:31:04]line Место: АЗС № 91 "Партнер Нефть" [11:31:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:31:04]line СНО: Общий режим [11:31:04]line Чек 48 14.05.2024 11:31 [11:31:04]line Смена: 355 ФФД: 1.0 [11:31:04]line ЗНМ: 0300000119 [11:31:04]line РНМ: 0000000000091845 [11:31:04]line Версия ККМ: 001 [11:31:04]line ФМ: 0000000000871829 [11:31:04]line ФД: 67041 [11:31:04]line ФПД: 179246131504841 [11:31:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T113106&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67041&fm=179246131504841&tin=02508201610067®Number=0000000000091845&sum=60000 [11:31:04]written 0, free lines is 4095 [11:31:04]OFD Sender: Processing packet 67041 [packets to send 35, broken 34] [11:31:04]ProducePacketName [11:31:04]name=ofd_packets/00067041 [11:31:04]OFD Sender: To server: pG, [11:31:04]CommunicateWithHost lk.salyk.kg:30040 [11:31:04]ConnectInit lk.salyk.kg [11:31:04]Connected sock=10 [11:31:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 DE D0 04 01 D4 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 30 00 00 00 F4 03 04 00 7A 4B 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E1 05 01 00 35 04 06 00 A3 05 FD FE E6 C9 7E D5 D0 D4 FC 7B 14 83 [11:31: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 3D 0A 47 00 6F 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 E1 05 01 00 F4 03 04 00 5A F3 42 66 B6 04 01 00 00 CB 3E 03 3C 68 C2 FB 03 [11:31:05]CommunicateWithHost err = 0 [11:31:05]CheckOFDResponse [11:31:05]1017 (14) - 77093643461234 [11:31:05]1041 (16) - 0000000000871829 [11:31:05]1040 (4) - 67041 [11:31:05]1012 (4) - 14.05.2024 05:15 [11:31:05]1206 (1) - 0 [11:31:05]OFD Sender: Remove packet 67041 [11:31:05]ProducePacketName [11:31:05]name=ofd_packets/00067041 [11:31:05]NVStorageDeleteData [11:31:05]Write to MH i2c: 01 00 00 1C 21 3D [11:31:05]Write i2c OK [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: 01 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: 01 07 00 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: 01 07 00 1C 21 00 00 00 00 00 CB 0C 1B [11:31:05]RasterBufferAndPrint [11:31:05]line [11:31:05]line [11:31:05]line [11:31:05]line [11:31:05]line [11:31:05]written 0, free lines is 3281 [11:31:05]MH_Cut [11:31:05]Write to MH i2c: D1 01 00 23 21 01 16 [11:31:05]Write i2c OK [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: D1 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: D1 01 00 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: D1 01 00 23 21 00 15 [11:31:05]Write to MH i2c: 01 00 00 24 21 45 [11:31:05]Write i2c OK [11:31:05]MH_I2C_Read... [11:31:05]OFD Sender: No OFD packet to send [11:31:05]*** Cut start [11:31:05]*** Purtial cut [11:31:05]*** CUTSNS_PIN = 0 [11:31:06]*** Stage 1: CUTSNS_PIN = 1 [11:31:07]Read from MH i2c: 01 [11:31:08]MH_I2C_Read... [11:31:08]*** Stop cut motor [11:31:08]*** Cut end [11:31:08]Read from MH i2c: 01 07 00 [11:31:08]MH_I2C_Read... [11:31:08]Read from MH i2c: 01 07 00 24 21 00 00 00 00 00 FF 0F 5A [11:31:08]process_action close_receipt done [11:31:08]requested_data is exist [11:31:08]produce_requested_data [11:31:08]requested_item fm.sn is exist - process it [11:31:08]wFMCommunicate request_size=4 [11:31:08]MH_SAM_APDU [11:31:08]CAPDU: 80 11 00 00 [11:31:08]Write to MH i2c: E2 08 00 25 21 80 11 00 00 00 00 00 00 C0 [11:31:08]Write i2c OK [11:31:08]MH_I2C_Read... [11:31:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:08]Read from MH i2c: E2 [11:31:08]MH_I2C_Read... [11:31:08]Read from MH i2c: E2 17 00 [11:31:08]MH_I2C_Read... [11:31:08]Read from MH i2c: E2 17 00 25 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 16 [11:31: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:31:08]wFMCommunicate OK [11:31:08]requested_item fd.num is exist - process it [11:31:08]SAM_PROTO_GetFieldsCounters [11:31:08]wFMCommunicate request_size=4 [11:31:08]MH_SAM_APDU [11:31:08]CAPDU: 80 13 00 00 [11:31:08]Write to MH i2c: E2 08 00 26 21 80 13 00 00 00 00 00 00 C3 [11:31:08]Write i2c OK [11:31:08]MH_I2C_Read... [11:31:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:08]Read from MH i2c: E2 [11:31:08]MH_I2C_Read... [11:31:08]Read from MH i2c: E2 62 00 [11:31:08]MH_I2C_Read... [11:31:08]Read from MH i2c: E2 62 00 26 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 E1 05 01 00 0E 04 04 00 63 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 C4 [11:31: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 E1 05 01 00 0E 04 04 00 63 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:31:08]wFMCommunicate OK [11:31:08]SAM_PROTO_GetFieldsCounters done [11:31:08]requested_item shift.num is exist - process it [11:31:08]requested_item shift.opened is exist - process it [11:31:08]req_shift_opened [11:31:08]FM_GetShiftState [11:31:08]SAM_PROTO_GetShiftState [11:31:08]wFMCommunicate request_size=4 [11:31:08]MH_SAM_APDU [11:31:08]CAPDU: 80 13 01 00 [11:31:08]Write to MH i2c: E2 08 00 27 21 80 13 01 00 00 00 00 00 C5 [11:31:08]Write i2c OK [11:31:08]MH_I2C_Read... [11:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:08]Read from MH i2c: E2 [11:31:08]MH_I2C_Read... [11:31:08]Read from MH i2c: E2 0E 00 [11:31:08]MH_I2C_Read... [11:31:08]Read from MH i2c: E2 0E 00 27 21 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 8D [11:31:08]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:31:08]wFMCommunicate OK [11:31:08]SAM_PROTO_GetShiftState done [11:31:08]FM_GetShiftState done [11:31:08]req_shift_opened done [11:31:08]requested_item shift.open_date is exist - process it [11:31:08]req_shift_open_date [11:31:08]req_shift_open_date done [11:31:08]produce_requested_data done [11:31:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67041,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:31:08]process_action_free close_receipt [11:31:08]json_value_free [11:31:08]json_value_free done [11:31:08]process_json_proto returns [11:31:08]Send response to host [11:31:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67041,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:31:08]free response buf [11:31:08]execute_script done [11:31:08]execute_script returns [11:31:08]free content buf [11:31:08]Sock 8.Close socket [11:31:08]Sock 8.Thread stoped [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:13]accept exits with 9 [11:33:13]New connection [11:33:13]New thread 3066617188 created [11:33:13]Thread 3066760548 joined [11:33:13]Waiting for new connection... [11:33:13] Sock 9.Parse request [11:33:13]Sock 9.Check first char [11:33:13]Sock 9.First char is OK [11:33:13]request: POST /json_proto HTTP/1.0 [11:33:13]Method: POST [11:33:13]URL: /json_proto [11:33:13]Method is POST - this is cgi request [11:33:13]url: /json_proto [11:33:13]query_string will be loaded in cgi processing [11:33:13]execute_cgi json_proto POST (null) [11:33:13]execute_cgi path=json_proto method=POST [11:33:13]POST find Content-Length [11:33:13]Host: 172.17.41.195:8080 [11:33:13]Content-Length: 1195 [11:33:13]Content-Type: application/json [11:33:13] [11:33:13]POST finish read [11:33:13]Found Content-Length = 1195 [11:33: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)506902\u000A14.05.2024 11:15\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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3724000-001-002\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:13]execute_script... [11:33: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)506902\u000A14.05.2024 11:15\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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3724000-001-002\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:13]POST & json_proto [11:33:13]process_json_proto [11:33:13]json parsed OK: [11:33:13]protocol is kg_v1.0 [11:33:13]action value=print_text [11:33:13]process_action print_text [11:33:13]cmd_print_text [11:33:13]ExternCall_PrintAddStr [11:33:13]wPrintStart [11:33:13]Write to MH i2c: 01 00 00 28 21 49 [11:33:13]Write i2c OK [11:33:13]MH_I2C_Read... [11:33:13]Read from MH i2c: 01 [11:33:13]MH_I2C_Read... [11:33:13]Read from MH i2c: 01 07 00 [11:33:13]MH_I2C_Read... [11:33:13]Read from MH i2c: 01 07 00 28 21 00 00 00 00 00 FF 0F 5E [11:33:13]RasterBufferAndPrint [11:33:13]line *****ТОВАРНЫЙ ЧЕК***** [11:33:13]line АЗС-91 [11:33:13]line Партнер нефть [11:33:13]line 02508201610067 [11:33:13]line Кассир : Адишов И. [11:33:13]line Счет N : (1)506902 [11:33:13]line 14.05.2024 11:15 [11:33:13]line ПРОДАЖА [11:33:13]line ТРК (МРК, ГНК): 31 [11:33:13]line Вид ГСМ : 2710194210 [11:33:13]line ДТ-К-5 [11:33:13]line 30.000 x 74.70 [11:33:13]line ИТОГ: 2241.00 [11:33:13]line Тип оплаты: Талоны: Топливные Талоны [11:33:13]line 3724000-001-002 [11:33:13]line ______________________ [11:33:13]line (подпись) [11:33:13]written 0, free lines is 4095 [11:33:14]Write to MH i2c: 01 00 00 3C 21 5D [11:33:14]Write i2c OK [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: 01 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: 01 07 00 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: 01 07 00 3C 21 00 00 00 00 00 10 0E 82 [11:33:14]RasterBufferAndPrint [11:33:14]line [11:33:14]line [11:33:14]line [11:33:14]line [11:33:14]line [11:33:14]written 0, free lines is 3601 [11:33:14]MH_Cut [11:33:14]Write to MH i2c: D1 01 00 43 21 01 36 [11:33:14]Write i2c OK [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: D1 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: D1 01 00 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: D1 01 00 43 21 00 35 [11:33:14]Write to MH i2c: 01 00 00 44 21 65 [11:33:14]Write i2c OK [11:33:14]MH_I2C_Read... [11:33:14]*** Cut start [11:33:14]*** Purtial cut [11:33:14]*** Stage 1: CUTSNS_PIN = 1 [11:33:14]Read from MH i2c: 01 [11:33:14]MH_I2C_Read... [11:33:14]*** Stop cut motor [11:33:14]*** Cut end [11:33:14]Read from MH i2c: 01 07 00 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: 01 07 00 44 21 00 00 00 00 00 FF 0F 7A [11:33:14]process_action print_text done [11:33:14]requested_data is exist [11:33:14]produce_requested_data [11:33:14]requested_item fm.sn is exist - process it [11:33:14]wFMCommunicate request_size=4 [11:33:14]MH_SAM_APDU [11:33:14]CAPDU: 80 11 00 00 [11:33:14]Write to MH i2c: E2 08 00 45 21 80 11 00 00 00 00 00 00 E0 [11:33:14]Write i2c OK [11:33:14]MH_I2C_Read... [11:33:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:14]Read from MH i2c: E2 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: E2 17 00 [11:33:14]MH_I2C_Read... [11:33:14]Read from MH i2c: E2 17 00 45 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 36 [11:33: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:33:14]wFMCommunicate OK [11:33:14]requested_item fd.num is exist - process it [11:33:14]SAM_PROTO_GetFieldsCounters [11:33:14]wFMCommunicate request_size=4 [11:33:14]MH_SAM_APDU [11:33:14]CAPDU: 80 13 00 00 [11:33:14]Write to MH i2c: E2 08 00 46 21 80 13 00 00 00 00 00 00 E3 [11:33:14]Write i2c OK [11:33:14]MH_I2C_Read... [11:33:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:15]Read from MH i2c: E2 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: E2 62 00 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: E2 62 00 46 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 E1 05 01 00 0E 04 04 00 63 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 E4 [11:33:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E1 05 01 00 0E 04 04 00 63 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:33:15]wFMCommunicate OK [11:33:15]SAM_PROTO_GetFieldsCounters done [11:33:15]requested_item shift.num is exist - process it [11:33:15]requested_item shift.opened is exist - process it [11:33:15]req_shift_opened [11:33:15]FM_GetShiftState [11:33:15]SAM_PROTO_GetShiftState [11:33:15]wFMCommunicate request_size=4 [11:33:15]MH_SAM_APDU [11:33:15]CAPDU: 80 13 01 00 [11:33:15]Write to MH i2c: E2 08 00 47 21 80 13 01 00 00 00 00 00 E5 [11:33:15]Write i2c OK [11:33:15]MH_I2C_Read... [11:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:15]Read from MH i2c: E2 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: E2 0E 00 [11:33:15]MH_I2C_Read... [11:33:15]Read from MH i2c: E2 0E 00 47 21 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 AD [11:33:15]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:33:15]wFMCommunicate OK [11:33:15]SAM_PROTO_GetShiftState done [11:33:15]FM_GetShiftState done [11:33:15]req_shift_opened done [11:33:15]requested_item shift.open_date is exist - process it [11:33:15]req_shift_open_date [11:33:15]req_shift_open_date done [11:33:15]produce_requested_data done [11:33:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67041,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:33:15]process_action_free print_text [11:33:15]json_value_free [11:33:15]json_value_free done [11:33:15]process_json_proto returns [11:33:15]Send response to host [11:33:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67041,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:33:15]free response buf [11:33:15]execute_script done [11:33:15]execute_script returns [11:33:15]free content buf [11:33:15]Sock 9.Close socket [11:33:15]Sock 9.Thread stoped [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:15]OFD Sender: No OFD packet to send [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:42]accept exits with 8 [11:34:42]New connection [11:34:42]New thread 3066760548 created [11:34:42]Thread 3066617188 joined [11:34:42]Waiting for new connection... [11:34:42] Sock 8.Parse request [11:34:42]Sock 8.Check first char [11:34:42]Sock 8.First char is OK [11:34:42]request: POST /json_proto HTTP/1.0 [11:34:42]Method: POST [11:34:42]URL: /json_proto [11:34:42]Method is POST - this is cgi request [11:34:42]url: /json_proto [11:34:42]query_string will be loaded in cgi processing [11:34:42]execute_cgi json_proto POST (null) [11:34:42]execute_cgi path=json_proto method=POST [11:34:42]POST find Content-Length [11:34:42]Host: 172.17.41.195:8080 [11:34:42]Content-Length: 695 [11:34:42]Content-Type: application/json [11:34:42] [11:34:42]POST finish read [11:34:42]Found Content-Length = 695 [11:34:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12047", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:42]execute_script... [11: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 : (3)12047", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:42]POST & json_proto [11:34:42]process_json_proto [11:34:42]json parsed OK: [11:34:42]protocol is kg_v1.0 [11:34:42]action value=close_receipt [11:34:42]process_action close_receipt [11:34:42]cmd_close_receipt [11:34:42]MH_GetDate [11:34:42]Write to MH i2c: F0 00 00 48 21 58 [11:34:42]Write i2c OK [11:34:42]MH_I2C_Read... [11:34:42]Read from MH i2c: F0 [11:34:42]MH_I2C_Read... [11:34:42]Read from MH i2c: F0 09 00 [11:34:42]MH_I2C_Read... [11:34:42]Read from MH i2c: F0 09 00 48 21 00 56 4C 43 66 FC 21 6F 64 9C [11:34:42]GetLastDocTimeStamp 1715686266 [11:34:42]current date 1715686486 [11:34:42]FM_GetShiftState [11:34:42]SAM_PROTO_GetShiftState [11:34:42]wFMCommunicate request_size=4 [11:34:42]MH_SAM_APDU [11:34:42]CAPDU: 80 13 01 00 [11:34:42]Write to MH i2c: E2 08 00 49 21 80 13 01 00 00 00 00 00 E7 [11:34:42]Write i2c OK [11:34:42]MH_I2C_Read... [11:34:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:42]Read from MH i2c: E2 [11:34:42]MH_I2C_Read... [11:34:42]Read from MH i2c: E2 0E 00 [11:34:42]MH_I2C_Read... [11:34:42]Read from MH i2c: E2 0E 00 49 21 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 AF [11:34:42]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:34:42]wFMCommunicate OK [11:34:42]SAM_PROTO_GetShiftState done [11:34:42]FM_GetShiftState done [11:34:42]opened in 1715646054 [11:34:42]opened+sec_in_day 1715732454 [11:34:42]quantity*price = 11500 [11:34:42]sum+1 = 11501 [11:34:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 49 14.05.2024 11:34 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67042 ФПД: 157867561131546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T113446&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67042&fm=157867561131546&tin=02508201610067®Number=0000000000091845&sum=11500 0 [11:34:43]StoreToDocumentArchive [11:34:43]shift 355 fd 67042 [11:34:43]save to /storage/0355/doc_00067042 [11:34:43]save last doc name /storage/0355/doc_00067042 to /storage/kkm_last_doc_name [11:34:43]save OK [11:34:43]Clear old archive folders... [11:34:43]ProcessDocumentItem done err = 0, tmpTLVsize=296 [11:34:43]tlvbuf is 003DD6B0 [11:34:43]SAM_PROTO_ClearQueue [11:34:43]wFMCommunicate request_size=4 [11:34:43]MH_SAM_APDU [11:34:43]CAPDU: 80 09 00 00 [11:34:43]Write to MH i2c: E2 08 00 56 21 80 09 00 00 00 00 00 00 E9 [11:34:43]Write i2c OK [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 [11:34:43]MH_I2C_Read... [11:34:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:43]Read from MH i2c: E2 03 00 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 03 00 56 21 00 90 00 EB [11:34:43]RAPDU: 90 00 [11:34:43]wFMCommunicate OK [11:34:43]SAM_PROTO_ClearQueue done [11:34:43]KKMCreateOFDPacket [11:34:43]OFDProtocolAddRootSTLVToBuf [11:34:43]FM_MakeSignedData [11:34:43]FM_MakeSignedData [11:34:43]SAM_PROTO_SignData [11:34:43]wFMCommunicate request_size=4 [11:34:43]MH_SAM_APDU [11:34:43]CAPDU: 80 0D 01 02 [11:34:43]Write to MH i2c: E2 08 00 57 21 80 0D 01 02 00 00 00 00 F1 [11:34:43]Write i2c OK [11:34:43]MH_I2C_Read... [11:34:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:43]Read from MH i2c: E2 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 03 00 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 03 00 57 21 00 90 00 EC [11:34:43]RAPDU: 90 00 [11:34:43]wFMCommunicate OK [11:34:43]wFMCommunicate request_size=255 [11:34:43]MH_SAM_APDU [11:34:43]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 56 4C 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [11:34:43]Write to MH i2c: E2 02 01 58 21 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 56 4C 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 61 [11:34:43]Write i2c OK [11:34:43]MH_I2C_Read... [11:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:43]Read from MH i2c: E2 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 03 00 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 03 00 58 21 00 90 00 ED [11:34:43]RAPDU: 90 00 [11:34:43]wFMCommunicate OK [11:34:43]wFMCommunicate request_size=55 [11:34:43]MH_SAM_APDU [11:34:43]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E2 05 01 00 35 04 06 00 8F 94 67 E7 1E 1A [11:34:43]Write to MH i2c: E2 3A 00 59 21 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E2 05 01 00 35 04 06 00 8F 94 67 E7 1E 1A 00 00 E3 [11:34:43]Write i2c OK [11:34:43]MH_I2C_Read... [11:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:43]Read from MH i2c: E2 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 03 00 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 03 00 59 21 00 90 00 EE [11:34:43]RAPDU: 90 00 [11:34:43]wFMCommunicate OK [11:34:43]wFMCommunicate request_size=4 [11:34:43]MH_SAM_APDU [11:34:43]CAPDU: 80 0D 03 02 [11:34:43]Write to MH i2c: E2 08 00 5A 21 80 0D 03 02 00 00 00 00 F6 [11:34:43]Write i2c OK [11:34:43]MH_I2C_Read... [11:34:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:43]Read from MH i2c: E2 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 0B 00 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 0B 00 5A 21 00 C0 9C 0D 2B 86 1F D5 33 90 00 38 [11:34:43]RAPDU: C0 9C 0D 2B 86 1F D5 33 90 00 [11:34:43]wFMCommunicate OK [11:34:43]SAM_PROTO_SignData done [11:34:43]FM_MakeSignedData done [11:34:43]CreateOFDProtocolMessage [11:34:43]wFMCommunicate request_size=4 [11:34:43]MH_SAM_APDU [11:34:43]CAPDU: 80 11 00 00 [11:34:43]Write to MH i2c: E2 08 00 5B 21 80 11 00 00 00 00 00 00 F6 [11:34:43]Write i2c OK [11:34:43]MH_I2C_Read... [11:34:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:43]Read from MH i2c: E2 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 17 00 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: E2 17 00 5B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4C [11:34:43]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:43]wFMCommunicate OK [11:34:43]CreateOFDProtocolMessage done [11:34:43]OFDSenderStorePacket 67042 [11:34:43]StoreOFDPacket docnum=67042 [11:34: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 3C 01 00 00 0D EE 34 01 7B B0 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 56 4C 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E2 05 01 00 35 04 06 00 8F 94 67 E7 1E 1A C0 9C 0D 2B 86 1F D5 33 [11:34:43]CheckFolder [11:34:43]dirname=/storage/ofd_packets [11:34:43]CheckFolder done [11:34:43]ProducePacketName [11:34:43]name=ofd_packets/00067042 [11:34:43]NVStorageSaveData ofd_packets/00067042 [11:34:43]File name is /storage/ofd_packets/00067042 [11:34:43]Write 346 bytes [11:34:43]NVStorageSaveData done [11:34:43]OFDSenderStorePacket done [11:34:43]KKMCreateOFDPacket done [11:34:43]NVStorageSaveData kkm_last_timestamp [11:34:43]File name is /storage/kkm_last_timestamp [11:34:43]Write 4 bytes [11:34:43]NVStorageSaveData done [11:34:43]ExternCall_PrintAddStr [11:34:43]wPrintStart [11:34:43]Write to MH i2c: 01 00 00 5C 21 7D [11:34:43]Write i2c OK [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: 01 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: 01 07 00 [11:34:43]MH_I2C_Read... [11:34:43]Read from MH i2c: 01 07 00 5C 21 00 00 00 00 00 FF 0F 92 [11:34:43]RasterBufferAndPrint [11:34:43]line Счет N : (3)12047 [11:34:43]line ИНН: 02508201610067 [11:34:43]line Контрольно-Кассовый Чек [11:34:43]line ПРОДАЖА [11:34:43]line Товар: 4870202521261 [11:34:43]line Напиток MAXI чай 1,2 лесные ягоды [11:34:43]line 1.000 * 115.00 [11:34:43]line = 115.00 [11:34:43]line НДС 12% НСП 1% [11:34:43]line > о реализуемом товаре [11:34:43]line ИТОГО: 115.00 [11:34:43]line НСП 1% : 1.02 [11:34:43]line НДС 12% : 12.21 [11:34:43]line Наличными: 115.00 [11:34:43]line Безнал.: 0.00 [11:34:43]line Место: АЗС № 91 "Партнер Нефть" [11:34:43]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:34:43]line СНО: Общий режим [11:34:43]line Чек 49 14.05.2024 11:34 [11:34:43]line Смена: 355 ФФД: 1.0 [11:34:43]line ЗНМ: 0300000119 [11:34:43]line РНМ: 0000000000091845 [11:34:43]line Версия ККМ: 001 [11:34:43]line ФМ: 0000000000871829 [11:34:43]line ФД: 67042 [11:34:43]line ФПД: 157867561131546 [11:34:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T113446&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67042&fm=157867561131546&tin=02508201610067®Number=0000000000091845&sum=11500 [11:34:44]OFD Sender: Processing packet 67042 [packets to send 35, broken 34] [11:34:44]ProducePacketName [11:34:44]name=ofd_packets/00067042 [11:34:44]OFD Sender: To server: pG, [11:34:44]CommunicateWithHost lk.salyk.kg:30040 [11:34:44]ConnectInit lk.salyk.kg [11:34:44]line 0 [11:34:44]written 0, free lines is 4095 [11:34:44]Connected sock=10 [11: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 3C 01 00 00 0D EE 34 01 7B B0 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 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 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 56 4C 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E2 05 01 00 35 04 06 00 8F 94 67 E7 1E 1A C0 9C 0D 2B 86 1F D5 33 [11: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 9B 93 47 00 C1 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 E2 05 01 00 F4 03 04 00 36 F4 42 66 B6 04 01 00 00 66 A6 BE D5 23 31 B0 D7 [11:34:44]CommunicateWithHost err = 0 [11:34:44]CheckOFDResponse [11:34:44]1017 (14) - 77093643461234 [11:34:44]1041 (16) - 0000000000871829 [11:34:44]1040 (4) - 67042 [11:34:44]1012 (4) - 14.05.2024 05:18 [11:34:44]1206 (1) - 0 [11:34:44]OFD Sender: Remove packet 67042 [11:34:44]ProducePacketName [11:34:44]name=ofd_packets/00067042 [11:34:44]NVStorageDeleteData [11:34:44]Write to MH i2c: 01 00 00 84 21 A5 [11:34:44]Write i2c OK [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: 01 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: 01 07 00 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: 01 07 00 84 21 00 00 00 00 00 CC 0C 84 [11:34:44]RasterBufferAndPrint [11:34:44]line [11:34:44]line [11:34:44]line [11:34:44]line [11:34:44]line [11:34:44]written 0, free lines is 3280 [11:34:44]MH_Cut [11:34:44]Write to MH i2c: D1 01 00 8B 21 01 7E [11:34:44]Write i2c OK [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: D1 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: D1 01 00 [11:34:44]MH_I2C_Read... [11:34:44]Read from MH i2c: D1 01 00 8B 21 00 7D [11:34:44]Write to MH i2c: 01 00 00 8C 21 AD [11:34:44]Write i2c OK [11:34:44]MH_I2C_Read... [11:34:44]OFD Sender: No OFD packet to send [11:34:45]*** Cut start [11:34:45]*** Purtial cut [11:34:45]*** CUTSNS_PIN = 0 [11:34:45]*** Stage 1: CUTSNS_PIN = 1 [11:34:47]Read from MH i2c: 01 [11:34:47]MH_I2C_Read... [11:34:47]*** Stop cut motor [11:34:47]*** Cut end [11:34:47]Read from MH i2c: 01 07 00 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: 01 07 00 8C 21 00 00 00 00 00 FF 0F C2 [11:34:47]process_action close_receipt done [11:34:47]requested_data is exist [11:34:47]produce_requested_data [11:34:47]requested_item fm.sn is exist - process it [11:34:47]wFMCommunicate request_size=4 [11:34:47]MH_SAM_APDU [11:34:47]CAPDU: 80 11 00 00 [11:34:47]Write to MH i2c: E2 08 00 8D 21 80 11 00 00 00 00 00 00 28 [11:34:47]Write i2c OK [11:34:47]MH_I2C_Read... [11:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:47]Read from MH i2c: E2 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: E2 17 00 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: E2 17 00 8D 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7E [11: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 [11:34:47]wFMCommunicate OK [11:34:47]requested_item fd.num is exist - process it [11:34:47]SAM_PROTO_GetFieldsCounters [11:34:47]wFMCommunicate request_size=4 [11:34:47]MH_SAM_APDU [11:34:47]CAPDU: 80 13 00 00 [11:34:47]Write to MH i2c: E2 08 00 8E 21 80 13 00 00 00 00 00 00 2B [11:34:47]Write i2c OK [11:34:47]MH_I2C_Read... [11:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:47]Read from MH i2c: E2 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: E2 62 00 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: E2 62 00 8E 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 E2 05 01 00 0E 04 04 00 63 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 30 [11: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 E2 05 01 00 0E 04 04 00 63 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:34:47]wFMCommunicate OK [11:34:47]SAM_PROTO_GetFieldsCounters done [11:34:47]requested_item shift.num is exist - process it [11:34:47]requested_item shift.opened is exist - process it [11:34:47]req_shift_opened [11:34:47]FM_GetShiftState [11:34:47]SAM_PROTO_GetShiftState [11:34:47]wFMCommunicate request_size=4 [11:34:47]MH_SAM_APDU [11:34:47]CAPDU: 80 13 01 00 [11:34:47]Write to MH i2c: E2 08 00 8F 21 80 13 01 00 00 00 00 00 2D [11:34:47]Write i2c OK [11:34:47]MH_I2C_Read... [11:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:47]Read from MH i2c: E2 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: E2 0E 00 [11:34:47]MH_I2C_Read... [11:34:47]Read from MH i2c: E2 0E 00 8F 21 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F5 [11:34:47]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:34:47]wFMCommunicate OK [11:34:47]SAM_PROTO_GetShiftState done [11:34:47]FM_GetShiftState done [11:34:47]req_shift_opened done [11:34:47]requested_item shift.open_date is exist - process it [11:34:47]req_shift_open_date [11:34:47]req_shift_open_date done [11:34:47]produce_requested_data done [11:34:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67042,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:34:47]process_action_free close_receipt [11:34:47]json_value_free [11:34:47]json_value_free done [11:34:47]process_json_proto returns [11:34:47]Send response to host [11:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67042,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:34:47]free response buf [11:34:47]execute_script done [11:34:47]execute_script returns [11:34:47]free content buf [11:34:47]Sock 8.Close socket [11:34:47]Sock 8.Thread stoped [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:50]OFD Sender: No OFD packet to send [11:38:55]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43:00]OFD Sender: No OFD packet to send [11:43:05]OFD Sender: No OFD packet to send [11:43:10]OFD Sender: No OFD packet to send [11:43:15]OFD Sender: No OFD packet to send [11:43:20]OFD Sender: No OFD packet to send [11:43:25]OFD Sender: No OFD packet to send [11:43:30]OFD Sender: No OFD packet to send [11:43:35]OFD Sender: No OFD packet to send [11:43:40]OFD Sender: No OFD packet to send [11:43:44]accept exits with 9 [11:43:44]New connection [11:43:44]New thread 3066617188 created [11:43:44]Thread 3066760548 joined [11:43:44]Waiting for new connection... [11:43:44] Sock 9.Parse request [11:43:44]Sock 9.Check first char [11:43:44]Sock 9.First char is OK [11:43:44]request: POST /json_proto HTTP/1.0 [11:43:44]Method: POST [11:43:44]URL: /json_proto [11:43:44]Method is POST - this is cgi request [11:43:44]url: /json_proto [11:43:44]query_string will be loaded in cgi processing [11:43:44]execute_cgi json_proto POST (null) [11:43:44]execute_cgi path=json_proto method=POST [11:43:44]POST find Content-Length [11:43:44]Host: 172.17.41.195:8080 [11:43:44]Content-Length: 1187 [11:43:44]Content-Type: application/json [11:43:44] [11:43:44]POST finish read [11:43:44]Found Content-Length = 1187 [11:43: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)506904\u000A14.05.2024 11:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3735.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3972580\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:44]execute_script... [11:43: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)506904\u000A14.05.2024 11:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3735.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3972580\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:44]POST & json_proto [11:43:44]process_json_proto [11:43:44]json parsed OK: [11:43:44]protocol is kg_v1.0 [11:43:44]action value=print_text [11:43:44]process_action print_text [11:43:44]cmd_print_text [11:43:44]ExternCall_PrintAddStr [11:43:44]wPrintStart [11:43:44]Write to MH i2c: 01 00 00 90 21 B1 [11:43:44]Write i2c OK [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: 01 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: 01 07 00 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: 01 07 00 90 21 00 00 00 00 00 FF 0F C6 [11:43:44]RasterBufferAndPrint [11:43:44]line *****ТОВАРНЫЙ ЧЕК***** [11:43:44]line АЗС-91 [11:43:44]line Партнер нефть [11:43:44]line 02508201610067 [11:43:44]line Кассир : Адишов И. [11:43:44]line Счет N : (1)506904 [11:43:44]line 14.05.2024 11:26 [11:43:44]line ПРОДАЖА [11:43:44]line ТРК (МРК, ГНК): 11 [11:43:44]line Вид ГСМ : 2710194210 [11:43:44]line ДТ-К-5 [11:43:44]line 50.000 x 74.70 [11:43:44]line ИТОГ: 3735.00 [11:43:44]line Тип оплаты: Талоны: Топливные Талоны [11:43:44]line 3972580 [11:43:44]line ______________________ [11:43:44]line (подпись) [11:43:44]written 0, free lines is 4095 [11:43:44]Write to MH i2c: 01 00 00 A4 21 C5 [11:43:44]Write i2c OK [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: 01 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: 01 07 00 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: 01 07 00 A4 21 00 00 00 00 00 0E 0E E8 [11:43:44]RasterBufferAndPrint [11:43:44]line [11:43:44]line [11:43:44]line [11:43:44]line [11:43:44]line [11:43:44]written 0, free lines is 3599 [11:43:44]MH_Cut [11:43:44]Write to MH i2c: D1 01 00 AB 21 01 9E [11:43:44]Write i2c OK [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: D1 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: D1 01 00 [11:43:44]MH_I2C_Read... [11:43:44]Read from MH i2c: D1 01 00 AB 21 00 9D [11:43:44]Write to MH i2c: 01 00 00 AC 21 CD [11:43:44]Write i2c OK [11:43:44]MH_I2C_Read... [11:43:44]*** Cut start [11:43:44]*** Purtial cut [11:43:44]*** Stage 1: CUTSNS_PIN = 1 [11:43:45]Read from MH i2c: 01 [11:43:45]MH_I2C_Read... [11:43:45]*** Stop cut motor [11:43:45]*** Cut end [11:43:45]Read from MH i2c: 01 07 00 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: 01 07 00 AC 21 00 00 00 00 00 FF 0F E2 [11:43:45]process_action print_text done [11:43:45]requested_data is exist [11:43:45]produce_requested_data [11:43:45]requested_item fm.sn is exist - process it [11:43:45]wFMCommunicate request_size=4 [11:43:45]MH_SAM_APDU [11:43:45]CAPDU: 80 11 00 00 [11:43:45]Write to MH i2c: E2 08 00 AD 21 80 11 00 00 00 00 00 00 48 [11:43:45]Write i2c OK [11:43:45]MH_I2C_Read... [11:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:45]Read from MH i2c: E2 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 17 00 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 17 00 AD 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9E [11:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:43:45]wFMCommunicate OK [11:43:45]requested_item fd.num is exist - process it [11:43:45]SAM_PROTO_GetFieldsCounters [11:43:45]wFMCommunicate request_size=4 [11:43:45]MH_SAM_APDU [11:43:45]CAPDU: 80 13 00 00 [11:43:45]Write to MH i2c: E2 08 00 AE 21 80 13 00 00 00 00 00 00 4B [11:43:45]Write i2c OK [11:43:45]MH_I2C_Read... [11:43:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:45]Read from MH i2c: E2 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 62 00 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 62 00 AE 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 E2 05 01 00 0E 04 04 00 63 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 50 [11:43:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E2 05 01 00 0E 04 04 00 63 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:43:45]wFMCommunicate OK [11:43:45]SAM_PROTO_GetFieldsCounters done [11:43:45]requested_item shift.num is exist - process it [11:43:45]requested_item shift.opened is exist - process it [11:43:45]req_shift_opened [11:43:45]FM_GetShiftState [11:43:45]SAM_PROTO_GetShiftState [11:43:45]wFMCommunicate request_size=4 [11:43:45]MH_SAM_APDU [11:43:45]CAPDU: 80 13 01 00 [11:43:45]Write to MH i2c: E2 08 00 AF 21 80 13 01 00 00 00 00 00 4D [11:43:45]Write i2c OK [11:43:45]MH_I2C_Read... [11:43:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:45]Read from MH i2c: E2 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 0E 00 [11:43:45]MH_I2C_Read... [11:43:45]Read from MH i2c: E2 0E 00 AF 21 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 15 [11:43:45]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:43:45]wFMCommunicate OK [11:43:45]SAM_PROTO_GetShiftState done [11:43:45]FM_GetShiftState done [11:43:45]req_shift_opened done [11:43:45]requested_item shift.open_date is exist - process it [11:43:45]req_shift_open_date [11:43:45]req_shift_open_date done [11:43:45]produce_requested_data done [11:43:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67042,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:43:45]process_action_free print_text [11:43:45]json_value_free [11:43:45]json_value_free done [11:43:45]process_json_proto returns [11:43:45]Send response to host [11:43:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67042,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:43:45]free response buf [11:43:45]execute_script done [11:43:45]execute_script returns [11:43:45]free content buf [11:43:45]Sock 9.Close socket [11:43:45]Sock 9.Thread stoped [11:43:45]OFD Sender: No OFD packet to send [11:43:50]OFD Sender: No OFD packet to send [11:43:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:44]accept exits with 8 [11:44:44]New connection [11:44:44]New thread 3066760548 created [11:44:44]Thread 3066617188 joined [11:44:44]Waiting for new connection... [11:44:44] Sock 8.Parse request [11:44:44]Sock 8.Check first char [11:44:44]Sock 8.First char is OK [11:44:44]request: POST /json_proto HTTP/1.0 [11:44:44]Method: POST [11:44:44]URL: /json_proto [11:44:44]Method is POST - this is cgi request [11:44:44]url: /json_proto [11:44:44]query_string will be loaded in cgi processing [11:44:44]execute_cgi json_proto POST (null) [11:44:44]execute_cgi path=json_proto method=POST [11:44:44]POST find Content-Length [11:44:44]Host: 172.17.41.195:8080 [11:44:44]Content-Length: 1178 [11:44:44]Content-Type: application/json [11:44:44] [11:44:44]POST finish read [11:44:44]Found Content-Length = 1178 [11:44: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)506905\u000A14.05.2024 11:27\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" ] } } [11:44:44]execute_script... [11:44: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)506905\u000A14.05.2024 11:27\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" ] } } [11:44:44]POST & json_proto [11:44:44]process_json_proto [11:44:44]json parsed OK: [11:44:44]protocol is kg_v1.0 [11:44:44]action value=print_text [11:44:44]process_action print_text [11:44:44]cmd_print_text [11:44:44]ExternCall_PrintAddStr [11:44:44]wPrintStart [11:44:44]Write to MH i2c: 01 00 00 B0 21 D1 [11:44:44]Write i2c OK [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: 01 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: 01 07 00 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: 01 07 00 B0 21 00 00 00 00 00 FF 0F E6 [11:44:44]RasterBufferAndPrint [11:44:44]line *****ТОВАРНЫЙ ЧЕК***** [11:44:44]line АЗС-91 [11:44:44]line Партнер нефть [11:44:44]line 02508201610067 [11:44:44]line Кассир : Адишов И. [11:44:44]line Счет N : (1)506905 [11:44:44]line 14.05.2024 11:27 [11:44:44]line ПРОДАЖА [11:44:44]line ТРК (МРК, ГНК): 11 [11:44:44]line Вид ГСМ : 2710194210 [11:44:44]line ДТ-К-5 [11:44:44]line 10.000 x 74.70 [11:44:44]line ИТОГ: 747.00 [11:44:44]line Тип оплаты: Талоны: Топливная Карта [11:44:44]line 02750 [11:44:44]line ______________________ [11:44:44]line (подпись) [11:44:44]written 0, free lines is 4095 [11:44:44]Write to MH i2c: 01 00 00 C4 21 E5 [11:44:44]Write i2c OK [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: 01 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: 01 07 00 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: 01 07 00 C4 21 00 00 00 00 00 0C 0E 06 [11:44:44]RasterBufferAndPrint [11:44:44]line [11:44:44]line [11:44:44]line [11:44:44]line [11:44:44]line [11:44:44]written 0, free lines is 3598 [11:44:44]MH_Cut [11:44:44]Write to MH i2c: D1 01 00 CB 21 01 BE [11:44:44]Write i2c OK [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: D1 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: D1 01 00 [11:44:44]MH_I2C_Read... [11:44:44]Read from MH i2c: D1 01 00 CB 21 00 BD [11:44:44]Write to MH i2c: 01 00 00 CC 21 ED [11:44:44]Write i2c OK [11:44:44]MH_I2C_Read... [11:44:45]*** Cut start [11:44:45]*** Purtial cut [11:44:45]*** CUTSNS_PIN = 0 [11:44:45]*** Stage 1: CUTSNS_PIN = 1 [11:44:45]OFD Sender: No OFD packet to send [11:44:47]Read from MH i2c: 01 [11:44:47]MH_I2C_Read... [11:44:47]*** Stop cut motor [11:44:47]*** Cut end [11:44:47]Read from MH i2c: 01 07 00 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: 01 07 00 CC 21 00 00 00 00 00 FF 0F 02 [11:44:47]process_action print_text done [11:44:47]requested_data is exist [11:44:47]produce_requested_data [11:44:47]requested_item fm.sn is exist - process it [11:44:47]wFMCommunicate request_size=4 [11:44:47]MH_SAM_APDU [11:44:47]CAPDU: 80 11 00 00 [11:44:47]Write to MH i2c: E2 08 00 CD 21 80 11 00 00 00 00 00 00 68 [11:44:47]Write i2c OK [11:44:47]MH_I2C_Read... [11:44:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:47]Read from MH i2c: E2 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 17 00 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 17 00 CD 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BE [11:44: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:44:47]wFMCommunicate OK [11:44:47]requested_item fd.num is exist - process it [11:44:47]SAM_PROTO_GetFieldsCounters [11:44:47]wFMCommunicate request_size=4 [11:44:47]MH_SAM_APDU [11:44:47]CAPDU: 80 13 00 00 [11:44:47]Write to MH i2c: E2 08 00 CE 21 80 13 00 00 00 00 00 00 6B [11:44:47]Write i2c OK [11:44:47]MH_I2C_Read... [11:44:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:47]Read from MH i2c: E2 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 62 00 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 62 00 CE 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E2 05 01 00 0E 04 04 00 63 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 70 [11:44: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 E2 05 01 00 0E 04 04 00 63 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:44:47]wFMCommunicate OK [11:44:47]SAM_PROTO_GetFieldsCounters done [11:44:47]requested_item shift.num is exist - process it [11:44:47]requested_item shift.opened is exist - process it [11:44:47]req_shift_opened [11:44:47]FM_GetShiftState [11:44:47]SAM_PROTO_GetShiftState [11:44:47]wFMCommunicate request_size=4 [11:44:47]MH_SAM_APDU [11:44:47]CAPDU: 80 13 01 00 [11:44:47]Write to MH i2c: E2 08 00 CF 21 80 13 01 00 00 00 00 00 6D [11:44:47]Write i2c OK [11:44:47]MH_I2C_Read... [11:44:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:47]Read from MH i2c: E2 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 0E 00 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 0E 00 CF 21 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 35 [11:44:47]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:44:47]wFMCommunicate OK [11:44:47]SAM_PROTO_GetShiftState done [11:44:47]FM_GetShiftState done [11:44:47]req_shift_opened done [11:44:47]requested_item shift.open_date is exist - process it [11:44:47]req_shift_open_date [11:44:47]req_shift_open_date done [11:44:47]produce_requested_data done [11:44:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67042,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:44:47]process_action_free print_text [11:44:47]json_value_free [11:44:47]json_value_free done [11:44:47]process_json_proto returns [11:44:47]Send response to host [11:44:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67042,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:44:47]free response buf [11:44:47]execute_script done [11:44:47]execute_script returns [11:44:47]free content buf [11:44:47]Sock 8.Close socket [11:44:47]Sock 8.Thread stoped [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:36]accept exits with 9 [11:47:36]New connection [11:47:36]New thread 3066617188 created [11:47:36]Thread 3066760548 joined [11:47:36]Waiting for new connection... [11:47:36] Sock 9.Parse request [11:47:36]Sock 9.Check first char [11:47:36]Sock 9.First char is OK [11:47:36]request: POST /json_proto HTTP/1.0 [11:47:36]Method: POST [11:47:36]URL: /json_proto [11:47:36]Method is POST - this is cgi request [11:47:36]url: /json_proto [11:47:36]query_string will be loaded in cgi processing [11:47:36]execute_cgi json_proto POST (null) [11:47:36]execute_cgi path=json_proto method=POST [11:47:36]POST find Content-Length [11:47:36]Host: 172.17.41.195:8080 [11:47:36]Content-Length: 1177 [11:47:36]Content-Type: application/json [11:47:36] [11:47:36]POST finish read [11:47:36]Found Content-Length = 1177 [11:47:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506906\u000A14.05.2024 11:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 5.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 373.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:36]execute_script... [11:47:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506906\u000A14.05.2024 11:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 5.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 373.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:36]POST & json_proto [11:47:36]process_json_proto [11:47:36]json parsed OK: [11:47:36]protocol is kg_v1.0 [11:47:36]action value=print_text [11:47:36]process_action print_text [11:47:36]cmd_print_text [11:47:36]ExternCall_PrintAddStr [11:47:36]wPrintStart [11:47:36]Write to MH i2c: 01 00 00 D0 21 F1 [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: 01 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: 01 07 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: 01 07 00 D0 21 00 00 00 00 00 FF 0F 06 [11:47:36]RasterBufferAndPrint [11:47:36]line *****ТОВАРНЫЙ ЧЕК***** [11:47:36]line АЗС-91 [11:47:36]line Партнер нефть [11:47:36]line 02508201610067 [11:47:36]line Кассир : Адишов И. [11:47:36]line Счет N : (1)506906 [11:47:36]line 14.05.2024 11:30 [11:47:36]line ПРОДАЖА [11:47:36]line ТРК (МРК, ГНК): 11 [11:47:36]line Вид ГСМ : 2710194210 [11:47:36]line ДТ-К-5 [11:47:36]line 5.000 x 74.70 [11:47:36]line ИТОГ: 373.50 [11:47:36]line Тип оплаты: Талоны: Топливная Карта [11:47:36]line 02750 [11:47:36]line ______________________ [11:47:36]line (подпись) [11:47:36]written 0, free lines is 4095 [11:47:36]Write to MH i2c: 01 00 00 E4 21 05 [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: 01 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: 01 07 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: 01 07 00 E4 21 00 00 00 00 00 0C 0E 26 [11:47:36]RasterBufferAndPrint [11:47:36]line [11:47:36]line [11:47:36]line [11:47:36]line [11:47:36]line [11:47:36]written 0, free lines is 3597 [11:47:36]MH_Cut [11:47:36]Write to MH i2c: D1 01 00 EB 21 01 DE [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: D1 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: D1 01 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: D1 01 00 EB 21 00 DD [11:47:36]Write to MH i2c: 01 00 00 EC 21 0D [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:37]*** Cut start [11:47:37]*** Purtial cut [11:47:37]*** Stage 1: CUTSNS_PIN = 1 [11:47:37]Read from MH i2c: 01 [11:47:37]MH_I2C_Read... [11:47:37]*** Stop cut motor [11:47:37]*** Cut end [11:47:37]Read from MH i2c: 01 07 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: 01 07 00 EC 21 00 00 00 00 00 FF 0F 22 [11:47:37]process_action print_text done [11:47:37]requested_data is exist [11:47:37]produce_requested_data [11:47:37]requested_item fm.sn is exist - process it [11:47:37]wFMCommunicate request_size=4 [11:47:37]MH_SAM_APDU [11:47:37]CAPDU: 80 11 00 00 [11:47:37]Write to MH i2c: E2 08 00 ED 21 80 11 00 00 00 00 00 00 88 [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:37]Read from MH i2c: E2 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 17 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 17 00 ED 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DE [11:47: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:47:37]wFMCommunicate OK [11:47:37]requested_item fd.num is exist - process it [11:47:37]SAM_PROTO_GetFieldsCounters [11:47:37]wFMCommunicate request_size=4 [11:47:37]MH_SAM_APDU [11:47:37]CAPDU: 80 13 00 00 [11:47:37]Write to MH i2c: E2 08 00 EE 21 80 13 00 00 00 00 00 00 8B [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:37]Read from MH i2c: E2 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 62 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 62 00 EE 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 E2 05 01 00 0E 04 04 00 63 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 90 [11:47: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 E2 05 01 00 0E 04 04 00 63 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:47:37]wFMCommunicate OK [11:47:37]SAM_PROTO_GetFieldsCounters done [11:47:37]requested_item shift.num is exist - process it [11:47:37]requested_item shift.opened is exist - process it [11:47:37]req_shift_opened [11:47:37]FM_GetShiftState [11:47:37]SAM_PROTO_GetShiftState [11:47:37]wFMCommunicate request_size=4 [11:47:37]MH_SAM_APDU [11:47:37]CAPDU: 80 13 01 00 [11:47:37]Write to MH i2c: E2 08 00 EF 21 80 13 01 00 00 00 00 00 8D [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:37]Read from MH i2c: E2 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 0E 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 0E 00 EF 21 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 55 [11:47:37]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:47:37]wFMCommunicate OK [11:47:37]SAM_PROTO_GetShiftState done [11:47:37]FM_GetShiftState done [11:47:37]req_shift_opened done [11:47:37]requested_item shift.open_date is exist - process it [11:47:37]req_shift_open_date [11:47:37]req_shift_open_date done [11:47:37]produce_requested_data done [11:47:37]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67042,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:47:37]process_action_free print_text [11:47:37]json_value_free [11:47:37]json_value_free done [11:47:37]process_json_proto returns [11:47:37]Send response to host [11:47:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67042,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:47:37]free response buf [11:47:37]execute_script done [11:47:37]execute_script returns [11:47:37]free content buf [11:47:37]Sock 9.Close socket [11:47:37]Sock 9.Thread stoped [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [11:49:00]OFD Sender: No OFD packet to send [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49:44]accept exits with 8 [11:49:44]New connection [11:49:44]New thread 3066760548 created [11:49:44]Thread 3066617188 joined [11:49:44]Waiting for new connection... [11:49:44] Sock 8.Parse request [11:49:44]Sock 8.Check first char [11:49:44]Sock 8.First char is OK [11:49:44]request: POST /json_proto HTTP/1.0 [11:49:44]Method: POST [11:49:44]URL: /json_proto [11:49:44]Method is POST - this is cgi request [11:49:44]url: /json_proto [11:49:44]query_string will be loaded in cgi processing [11:49:44]execute_cgi json_proto POST (null) [11:49:44]execute_cgi path=json_proto method=POST [11:49:44]POST find Content-Length [11:49:44]Host: 172.17.41.195:8080 [11:49:44]Content-Length: 800 [11:49:44]Content-Type: application/json [11:49:44] [11:49:44]POST finish read [11:49:44]Found Content-Length = 800 [11:49:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506907", "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" ] } } [11:49:44]execute_script... [11:49: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)506907", "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" ] } } [11:49:44]POST & json_proto [11:49:44]process_json_proto [11:49:44]json parsed OK: [11:49:44]protocol is kg_v1.0 [11:49:44]action value=close_receipt [11:49:44]process_action close_receipt [11:49:44]cmd_close_receipt [11:49:44]MH_GetDate [11:49:44]Write to MH i2c: F0 00 00 F0 21 00 [11:49:44]Write i2c OK [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: F0 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: F0 09 00 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: F0 09 00 F0 21 00 DD 4F 43 66 FC 21 6F 64 CE [11:49:44]GetLastDocTimeStamp 1715686486 [11:49:44]current date 1715687389 [11:49:44]FM_GetShiftState [11:49:44]SAM_PROTO_GetShiftState [11:49:44]wFMCommunicate request_size=4 [11:49:44]MH_SAM_APDU [11:49:44]CAPDU: 80 13 01 00 [11:49:44]Write to MH i2c: E2 08 00 F1 21 80 13 01 00 00 00 00 00 8F [11:49:44]Write i2c OK [11:49:44]MH_I2C_Read... [11:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:44]Read from MH i2c: E2 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: E2 0E 00 [11:49:44]MH_I2C_Read... [11:49:44]Read from MH i2c: E2 0E 00 F1 21 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 57 [11:49:44]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:49:44]wFMCommunicate OK [11:49:44]SAM_PROTO_GetShiftState done [11:49:44]FM_GetShiftState done [11:49:44]opened in 1715646054 [11:49:44]opened+sec_in_day 1715732454 [11:49:44]quantity*price = 100023 [11:49:44]sum+1 = 100024 [11:49:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 50 14.05.2024 11:49 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67043 ФПД: 28411194002354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T114949&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67043&fm=28411194002354&tin=02508201610067®Number=0000000000091845&sum=100023 [11:49:46]StoreToDocumentArchive [11:49:46]shift 355 fd 67043 [11:49:46]save to /storage/0355/doc_00067043 [11:49:46]save last doc name /storage/0355/doc_00067043 to /storage/kkm_last_doc_name [11:49:46]save OK [11:49:46]Clear old archive folders... [11:49:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:49:46]tlvbuf is B6E798C0 [11:49:46]SAM_PROTO_ClearQueue [11:49:46]wFMCommunicate request_size=4 [11:49:46]MH_SAM_APDU [11:49:46]CAPDU: 80 09 00 00 [11:49:46]Write to MH i2c: E2 08 00 FE 21 80 09 00 00 00 00 00 00 91 [11:49:46]Write i2c OK [11:49:46]MH_I2C_Read... [11:49:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:46]Read from MH i2c: E2 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 03 00 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 03 00 FE 21 00 90 00 93 [11:49:46]RAPDU: 90 00 [11:49:46]wFMCommunicate OK [11:49:46]SAM_PROTO_ClearQueue done [11:49:46]KKMCreateOFDPacket [11:49:46]OFDProtocolAddRootSTLVToBuf [11:49:46]FM_MakeSignedData [11:49:46]FM_MakeSignedData [11:49:46]SAM_PROTO_SignData [11:49:46]wFMCommunicate request_size=4 [11:49:46]MH_SAM_APDU [11:49:46]CAPDU: 80 0D 01 02 [11:49:46]Write to MH i2c: E2 08 00 FF 21 80 0D 01 02 00 00 00 00 99 [11:49:46]Write i2c OK [11:49:46]MH_I2C_Read... [11:49:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:46]Read from MH i2c: E2 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 03 00 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 03 00 FF 21 00 90 00 94 [11:49:46]RAPDU: 90 00 [11:49:46]wFMCommunicate OK [11:49:46]wFMCommunicate request_size=255 [11:49:46]MH_SAM_APDU [11:49:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 DD 4F 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E3 05 01 00 35 04 06 00 19 D6 FF 20 [11:49:46]Write to MH i2c: E2 02 01 00 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 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 32 00 00 00 F4 03 04 00 DD 4F 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E3 05 01 00 35 04 06 00 19 D6 FF 20 00 00 04 [11:49:46]Write i2c OK [11:49:46]MH_I2C_Read... [11:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:46]Read from MH i2c: E2 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 03 00 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 03 00 00 22 00 90 00 96 [11:49:46]RAPDU: 90 00 [11:49:46]wFMCommunicate OK [11:49:46]wFMCommunicate request_size=7 [11:49:46]MH_SAM_APDU [11:49:46]CAPDU: 80 0D 02 02 02 4B B2 [11:49:46]Write to MH i2c: E2 0A 00 01 22 80 0D 02 02 02 00 4B B2 00 00 9E [11:49:46]Write i2c OK [11:49:46]MH_I2C_Read... [11:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:46]Read from MH i2c: E2 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 03 00 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 03 00 01 22 00 90 00 97 [11:49:46]RAPDU: 90 00 [11:49:46]wFMCommunicate OK [11:49:46]wFMCommunicate request_size=4 [11:49:46]MH_SAM_APDU [11:49:46]CAPDU: 80 0D 03 02 [11:49:46]Write to MH i2c: E2 08 00 02 22 80 0D 03 02 00 00 00 00 9F [11:49:46]Write i2c OK [11:49:46]MH_I2C_Read... [11:49:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:46]Read from MH i2c: E2 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 0B 00 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 0B 00 02 22 00 3E 7F 0D 79 C7 C2 2D 61 90 00 FA [11:49:46]RAPDU: 3E 7F 0D 79 C7 C2 2D 61 90 00 [11:49:46]wFMCommunicate OK [11:49:46]SAM_PROTO_SignData done [11:49:46]FM_MakeSignedData done [11:49:46]CreateOFDProtocolMessage [11:49:46]wFMCommunicate request_size=4 [11:49:46]MH_SAM_APDU [11:49:46]CAPDU: 80 11 00 00 [11:49:46]Write to MH i2c: E2 08 00 03 22 80 11 00 00 00 00 00 00 9F [11:49:46]Write i2c OK [11:49:46]MH_I2C_Read... [11:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:46]Read from MH i2c: E2 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 17 00 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: E2 17 00 03 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F5 [11:49: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:49:46]wFMCommunicate OK [11:49:46]CreateOFDProtocolMessage done [11:49:46]OFDSenderStorePacket 67043 [11:49:46]StoreOFDPacket docnum=67043 [11:49: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 0F 3D 04 01 BA 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 32 00 00 00 F4 03 04 00 DD 4F 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E3 05 01 00 35 04 06 00 19 D6 FF 20 4B B2 3E 7F 0D 79 C7 C2 2D 61 [11:49:46]CheckFolder [11:49:46]dirname=/storage/ofd_packets [11:49:46]CheckFolder done [11:49:46]ProducePacketName [11:49:46]name=ofd_packets/00067043 [11:49:46]NVStorageSaveData ofd_packets/00067043 [11:49:46]File name is /storage/ofd_packets/00067043 [11:49:46]Write 298 bytes [11:49:46]NVStorageSaveData done [11:49:46]OFDSenderStorePacket done [11:49:46]KKMCreateOFDPacket done [11:49:46]NVStorageSaveData kkm_last_timestamp [11:49:46]File name is /storage/kkm_last_timestamp [11:49:46]Write 4 bytes [11:49:46]NVStorageSaveData done [11:49:46]ExternCall_PrintAddStr [11:49:46]wPrintStart [11:49:46]Write to MH i2c: 01 00 00 04 22 26 [11:49:46]Write i2c OK [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: 01 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: 01 07 00 [11:49:46]MH_I2C_Read... [11:49:46]Read from MH i2c: 01 07 00 04 22 00 00 00 00 00 FF 0F 3B [11:49:46]RasterBufferAndPrint [11:49:46]line Счет N : (1)506907 [11:49:46]line ИНН: 02508201610067 [11:49:46]line Контрольно-Кассовый Чек [11:49:46]line ПРОДАЖА [11:49:46]line ТРК (МРК, ГНК) : 31 [11:49:46]line Товар: 2710194210 [11:49:46]line ДТ-К-5 [11:49:46]line 13.390 * 74.70 [11:49:46]line = 1000.23 [11:49:46]line НДС 12% НСП 1% [11:49:46]line > о реализуемом товаре [11:49:46]line ИТОГО: 1000.23 [11:49:46]line НСП 1% : 8.85 [11:49:46]line НДС 12% : 106.22 [11:49:46]line Наличными: 0.00 [11:49:46]line Безнал.: 1000.23 [11:49:46]line Место: АЗС № 91 "Партнер Нефть" [11:49:46]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:49:46]line СНО: Общий режим [11:49:46]line Чек 50 14.05.2024 11:49 [11:49:46]line Смена: 355 ФФД: 1.0 [11:49:46]line ЗНМ: 0300000119 [11:49:46]line РНМ: 0000000000091845 [11:49:46]line Версия ККМ: 001 [11:49:46]line Платежная система: O! деньги [11:49:46]line ФМ: 0000000000871829 [11:49:46]line ФД: 67043 [11:49:46]line ФПД: 28411194002354 [11:49:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T114949&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67043&fm=28411194002354&tin=02508201610067®Number=0000000000091845&sum=100023 [11:49:46]OFD Sender: Processing packet 67043 [packets to send 35, broken 34] [11:49:46]ProducePacketName [11:49:46]name=ofd_packets/00067043 [11:49:46]OFD Sender: To server: pG, [11:49:46]CommunicateWithHost lk.salyk.kg:30040 [11:49:46]ConnectInit lk.salyk.kg [11:49:46]written 0, free lines is 4095 [11:49:47]Connected sock=10 [11:49: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 0F 3D 04 01 BA 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 32 00 00 00 F4 03 04 00 DD 4F 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E3 05 01 00 35 04 06 00 19 D6 FF 20 4B B2 3E 7F 0D 79 C7 C2 2D 61 [11:49: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 F0 AB 47 00 FE 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 E3 05 01 00 F4 03 04 00 BD F7 42 66 B6 04 01 00 00 CA 66 42 AF 6C 2C FF 6A [11:49:47]CommunicateWithHost err = 0 [11:49:47]CheckOFDResponse [11:49:47]1017 (14) - 77093643461234 [11:49:47]1041 (16) - 0000000000871829 [11:49:47]1040 (4) - 67043 [11:49:47]1012 (4) - 14.05.2024 05:33 [11:49:47]1206 (1) - 0 [11:49:47]OFD Sender: Remove packet 67043 [11:49:47]ProducePacketName [11:49:47]name=ofd_packets/00067043 [11:49:47]NVStorageDeleteData [11:49:47]Write to MH i2c: 01 00 00 2D 22 4F [11:49:47]Write i2c OK [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: 01 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: 01 07 00 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: 01 07 00 2D 22 00 00 00 00 00 DD 0C 3F [11:49:47]RasterBufferAndPrint [11:49:47]line [11:49:47]line [11:49:47]line [11:49:47]line [11:49:47]line [11:49:47]written 0, free lines is 3299 [11:49:47]MH_Cut [11:49:47]Write to MH i2c: D1 01 00 34 22 01 28 [11:49:47]Write i2c OK [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: D1 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: D1 01 00 [11:49:47]MH_I2C_Read... [11:49:47]Read from MH i2c: D1 01 00 34 22 00 27 [11:49:47]Write to MH i2c: 01 00 00 35 22 57 [11:49:47]Write i2c OK [11:49:47]MH_I2C_Read... [11:49:47]OFD Sender: No OFD packet to send [11:49:48]*** Cut start [11:49:48]*** Purtial cut [11:49:48]*** CUTSNS_PIN = 0 [11:49:48]*** Stage 1: CUTSNS_PIN = 1 [11:49:50]Read from MH i2c: 01 [11:49:50]MH_I2C_Read... [11:49:50]*** Stop cut motor [11:49:50]*** Cut end [11:49:50]Read from MH i2c: 01 07 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: 01 07 00 35 22 00 00 00 00 00 FF 0F 6C [11:49:50]process_action close_receipt done [11:49:50]requested_data is exist [11:49:50]produce_requested_data [11:49:50]requested_item fm.sn is exist - process it [11:49:50]wFMCommunicate request_size=4 [11:49:50]MH_SAM_APDU [11:49:50]CAPDU: 80 11 00 00 [11:49:50]Write to MH i2c: E2 08 00 36 22 80 11 00 00 00 00 00 00 D2 [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:50]Read from MH i2c: E2 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 17 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 17 00 36 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 28 [11: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 [11:49:50]wFMCommunicate OK [11:49:50]requested_item fd.num is exist - process it [11:49:50]SAM_PROTO_GetFieldsCounters [11:49:50]wFMCommunicate request_size=4 [11:49:50]MH_SAM_APDU [11:49:50]CAPDU: 80 13 00 00 [11:49:50]Write to MH i2c: E2 08 00 37 22 80 13 00 00 00 00 00 00 D5 [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:50]Read from MH i2c: E2 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 62 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 62 00 37 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E3 05 01 00 0E 04 04 00 63 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 DE [11:49:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E3 05 01 00 0E 04 04 00 63 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:49:50]wFMCommunicate OK [11:49:50]SAM_PROTO_GetFieldsCounters done [11:49:50]requested_item shift.num is exist - process it [11:49:50]requested_item shift.opened is exist - process it [11:49:50]req_shift_opened [11:49:50]FM_GetShiftState [11:49:50]SAM_PROTO_GetShiftState [11:49:50]wFMCommunicate request_size=4 [11:49:50]MH_SAM_APDU [11:49:50]CAPDU: 80 13 01 00 [11:49:50]Write to MH i2c: E2 08 00 38 22 80 13 01 00 00 00 00 00 D7 [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:50]Read from MH i2c: E2 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 0E 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 0E 00 38 22 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 9F [11:49:50]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:49:50]wFMCommunicate OK [11:49:50]SAM_PROTO_GetShiftState done [11:49:50]FM_GetShiftState done [11:49:50]req_shift_opened done [11:49:50]requested_item shift.open_date is exist - process it [11:49:50]req_shift_open_date [11:49:50]req_shift_open_date done [11:49:50]produce_requested_data done [11:49:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67043,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:49:50]process_action_free close_receipt [11:49:50]json_value_free [11:49:50]json_value_free done [11:49:50]process_json_proto returns [11:49:50]Send response to host [11:49:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67043,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:49:50]free response buf [11:49:50]execute_script done [11:49:50]execute_script returns [11:49:50]free content buf [11:49:50]Sock 8.Close socket [11:49:50]Sock 8.Thread stoped [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:03]accept exits with 9 [11:51:03]New connection [11:51:03]New thread 3066617188 created [11:51:03]Thread 3066760548 joined [11:51:03]Waiting for new connection... [11:51:03] Sock 9.Parse request [11:51:03]Sock 9.Check first char [11:51:03]Sock 9.First char is OK [11:51:03]request: POST /json_proto HTTP/1.0 [11:51:03]Method: POST [11:51:03]URL: /json_proto [11:51:03]Method is POST - this is cgi request [11:51:03]url: /json_proto [11:51:03]query_string will be loaded in cgi processing [11:51:03]execute_cgi json_proto POST (null) [11:51:03]execute_cgi path=json_proto method=POST [11:51:03]POST find Content-Length [11:51:03]Host: 172.17.41.195:8080 [11:51:03]Content-Length: 800 [11:51:03]Content-Type: application/json [11:51:03] [11:51:03]POST finish read [11:51:03]Found Content-Length = 800 [11:51:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:03]execute_script... [11:51: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)506908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:03]POST & json_proto [11:51:03]process_json_proto [11:51:03]json parsed OK: [11:51:03]protocol is kg_v1.0 [11:51:03]action value=close_receipt [11:51:03]process_action close_receipt [11:51:03]cmd_close_receipt [11:51:03]MH_GetDate [11:51:03]Write to MH i2c: F0 00 00 39 22 4A [11:51:03]Write i2c OK [11:51:03]MH_I2C_Read... [11:51:03]Read from MH i2c: F0 [11:51:03]MH_I2C_Read... [11:51:03]Read from MH i2c: F0 09 00 [11:51:03]MH_I2C_Read... [11:51:03]Read from MH i2c: F0 09 00 39 22 00 2B 50 43 66 FC 21 6F 64 67 [11:51:03]GetLastDocTimeStamp 1715687389 [11:51:03]current date 1715687467 [11:51:03]FM_GetShiftState [11:51:03]SAM_PROTO_GetShiftState [11:51:03]wFMCommunicate request_size=4 [11:51:03]MH_SAM_APDU [11:51:03]CAPDU: 80 13 01 00 [11:51:03]Write to MH i2c: E2 08 00 3A 22 80 13 01 00 00 00 00 00 D9 [11:51:03]Write i2c OK [11:51:03]MH_I2C_Read... [11:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:03]Read from MH i2c: E2 [11:51:03]MH_I2C_Read... [11:51:03]Read from MH i2c: E2 0E 00 [11:51:03]MH_I2C_Read... [11:51:03]Read from MH i2c: E2 0E 00 3A 22 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A1 [11:51:03]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:51:03]wFMCommunicate OK [11:51:03]SAM_PROTO_GetShiftState done [11:51:03]FM_GetShiftState done [11:51:03]opened in 1715646054 [11:51:03]opened+sec_in_day 1715732454 [11:51:03]quantity*price = 200046 [11:51:03]sum+1 = 200048 [11:51:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 51 14.05.2024 11:51 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67044 ФПД: 17074668592009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T115107&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67044&fm=17074668592009&tin=02508201610067®Number=0000000000091845&sum=200047 [11:51:04]StoreToDocumentArchive [11:51:04]shift 355 fd 67044 [11:51:04]save to /storage/0355/doc_00067044 [11:51:04]save last doc name /storage/0355/doc_00067044 to /storage/kkm_last_doc_name [11:51:04]save OK [11:51:04]Clear old archive folders... [11:51:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:51:04]tlvbuf is 0038CD40 [11:51:04]SAM_PROTO_ClearQueue [11:51:04]wFMCommunicate request_size=4 [11:51:04]MH_SAM_APDU [11:51:04]CAPDU: 80 09 00 00 [11:51:04]Write to MH i2c: E2 08 00 47 22 80 09 00 00 00 00 00 00 DB [11:51:04]Write i2c OK [11:51:04]MH_I2C_Read... [11:51:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:04]Read from MH i2c: E2 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 03 00 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 03 00 47 22 00 90 00 DD [11:51:04]RAPDU: 90 00 [11:51:04]wFMCommunicate OK [11:51:04]SAM_PROTO_ClearQueue done [11:51:04]KKMCreateOFDPacket [11:51:04]OFDProtocolAddRootSTLVToBuf [11:51:04]FM_MakeSignedData [11:51:04]FM_MakeSignedData [11:51:04]SAM_PROTO_SignData [11:51:04]wFMCommunicate request_size=4 [11:51:04]MH_SAM_APDU [11:51:04]CAPDU: 80 0D 01 02 [11:51:04]Write to MH i2c: E2 08 00 48 22 80 0D 01 02 00 00 00 00 E3 [11:51:04]Write i2c OK [11:51:04]MH_I2C_Read... [11:51:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:04]Read from MH i2c: E2 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 03 00 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 03 00 48 22 00 90 00 DE [11:51:04]RAPDU: 90 00 [11:51:04]wFMCommunicate OK [11:51:04]wFMCommunicate request_size=255 [11:51:04]MH_SAM_APDU [11:51:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 33 00 00 00 F4 03 04 00 2B 50 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E4 05 01 00 35 04 06 00 0F 87 81 8E [11:51:04]Write to MH i2c: E2 02 01 49 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 33 00 00 00 F4 03 04 00 2B 50 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E4 05 01 00 35 04 06 00 0F 87 81 8E 00 00 99 [11:51:04]Write i2c OK [11:51:04]MH_I2C_Read... [11:51:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:04]Read from MH i2c: E2 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 03 00 [11:51:04]MH_I2C_Read... [11:51:04]Read from MH i2c: E2 03 00 49 22 00 90 00 DF [11:51:04]RAPDU: 90 00 [11:51:04]wFMCommunicate OK [11:51:04]wFMCommunicate request_size=7 [11:51:04]MH_SAM_APDU [11:51:04]CAPDU: 80 0D 02 02 02 5B 89 [11:51:04]Write to MH i2c: E2 0A 00 4A 22 80 0D 02 02 02 00 5B 89 00 00 CE [11:51:04]Write i2c OK [11:51:04]MH_I2C_Read... [11:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:05]Read from MH i2c: E2 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 03 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 03 00 4A 22 00 90 00 E0 [11:51:05]RAPDU: 90 00 [11:51:05]wFMCommunicate OK [11:51:05]wFMCommunicate request_size=4 [11:51:05]MH_SAM_APDU [11:51:05]CAPDU: 80 0D 03 02 [11:51:05]Write to MH i2c: E2 08 00 4B 22 80 0D 03 02 00 00 00 00 E8 [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:05]Read from MH i2c: E2 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 0B 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 0B 00 4B 22 00 92 FD 02 B7 7F 6D 3E DC 90 00 37 [11:51:05]RAPDU: 92 FD 02 B7 7F 6D 3E DC 90 00 [11:51:05]wFMCommunicate OK [11:51:05]SAM_PROTO_SignData done [11:51:05]FM_MakeSignedData done [11:51:05]CreateOFDProtocolMessage [11:51:05]wFMCommunicate request_size=4 [11:51:05]MH_SAM_APDU [11:51:05]CAPDU: 80 11 00 00 [11:51:05]Write to MH i2c: E2 08 00 4C 22 80 11 00 00 00 00 00 00 E8 [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:05]Read from MH i2c: E2 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 17 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: E2 17 00 4C 22 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:51: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:51:05]wFMCommunicate OK [11:51:05]CreateOFDProtocolMessage done [11:51:05]OFDSenderStorePacket 67044 [11:51:05]StoreOFDPacket docnum=67044 [11:51: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 DE 85 04 01 99 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 33 00 00 00 F4 03 04 00 2B 50 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E4 05 01 00 35 04 06 00 0F 87 81 8E 5B 89 92 FD 02 B7 7F 6D 3E DC [11:51:05]CheckFolder [11:51:05]dirname=/storage/ofd_packets [11:51:05]CheckFolder done [11:51:05]ProducePacketName [11:51:05]name=ofd_packets/00067044 [11:51:05]NVStorageSaveData ofd_packets/00067044 [11:51:05]File name is /storage/ofd_packets/00067044 [11:51:05]Write 298 bytes [11:51:05]NVStorageSaveData done [11:51:05]OFDSenderStorePacket done [11:51:05]KKMCreateOFDPacket done [11:51:05]NVStorageSaveData kkm_last_timestamp [11:51:05]File name is /storage/kkm_last_timestamp [11:51:05]Write 4 bytes [11:51:05]NVStorageSaveData done [11:51:05]ExternCall_PrintAddStr [11:51:05]wPrintStart [11:51:05]Write to MH i2c: 01 00 00 4D 22 6F [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: 01 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: 01 07 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: 01 07 00 4D 22 00 00 00 00 00 FF 0F 84 [11:51:05]RasterBufferAndPrint [11:51:05]line Счет N : (1)506908 [11:51:05]line ИНН: 02508201610067 [11:51:05]line Контрольно-Кассовый Чек [11:51:05]line ПРОДАЖА [11:51:05]line ТРК (МРК, ГНК) : 11 [11:51:05]line Товар: 2710194210 [11:51:05]line ДТ-К-5 [11:51:05]line 26.780 * 74.70 [11:51:05]line = 2000.47 [11:51:05]line НДС 12% НСП 1% [11:51:05]line > о реализуемом товаре [11:51:05]line ИТОГО: 2000.47 [11:51:05]line НСП 1% : 17.70 [11:51:05]line НДС 12% : 212.44 [11:51:05]line Наличными: 0.00 [11:51:05]line Безнал.: 2000.47 [11:51:05]line Место: АЗС № 91 "Партнер Нефть" [11:51:05]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [11:51:05]line СНО: Общий режим [11:51:05]line Чек 51 14.05.2024 11:51 [11:51:05]line Смена: 355 ФФД: 1.0 [11:51:05]line ЗНМ: 0300000119 [11:51:05]line РНМ: 0000000000091845 [11:51:05]line Версия ККМ: 001 [11:51:05]line Платежная система: O! деньги [11:51:05]line ФМ: 0000000000871829 [11:51:05]line ФД: 67044 [11:51:05]line ФПД: 17074668592009 [11:51:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T115107&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67044&fm=17074668592009&tin=02508201610067®Number=0000000000091845&sum=200047 [11:51:05]OFD Sender: Processing packet 67044 [packets to send 35, broken 34] [11:51:05]ProducePacketName [11:51:05]name=ofd_packets/00067044 [11:51:05]OFD Sender: To server: pG, [11:51:05]CommunicateWithHost lk.salyk.kg:30040 [11:51:05]ConnectInit lk.salyk.kg [11:51:05]written 0, free lines is 4095 [11:51:05]Connected sock=11 [11:51:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 DE 85 04 01 99 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 33 00 00 00 F4 03 04 00 2B 50 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E4 05 01 00 35 04 06 00 0F 87 81 8E 5B 89 92 FD 02 B7 7F 6D 3E DC [11:51: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 9E 17 47 00 04 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E4 05 01 00 F4 03 04 00 0B F8 42 66 B6 04 01 00 00 E2 54 BE 35 C9 08 3D 8A [11:51:05]CommunicateWithHost err = 0 [11:51:05]CheckOFDResponse [11:51:05]1017 (14) - 77093643461234 [11:51:05]1041 (16) - 0000000000871829 [11:51:05]1040 (4) - 67044 [11:51:05]1012 (4) - 14.05.2024 05:35 [11:51:05]1206 (1) - 0 [11:51:05]OFD Sender: Remove packet 67044 [11:51:05]ProducePacketName [11:51:05]name=ofd_packets/00067044 [11:51:05]NVStorageDeleteData [11:51:05]Write to MH i2c: 01 00 00 76 22 98 [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: 01 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: 01 07 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: 01 07 00 76 22 00 00 00 00 00 D7 0C 82 [11:51:05]RasterBufferAndPrint [11:51:05]line [11:51:05]line [11:51:05]line [11:51:05]line [11:51:05]line [11:51:05]written 0, free lines is 3292 [11:51:05]MH_Cut [11:51:05]Write to MH i2c: D1 01 00 7D 22 01 71 [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: D1 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: D1 01 00 [11:51:05]MH_I2C_Read... [11:51:05]Read from MH i2c: D1 01 00 7D 22 00 70 [11:51:05]Write to MH i2c: 01 00 00 7E 22 A0 [11:51:05]Write i2c OK [11:51:05]MH_I2C_Read... [11:51:06]OFD Sender: No OFD packet to send [11:51:06]*** Cut start [11:51:06]*** Purtial cut [11:51:06]*** Stage 1: CUTSNS_PIN = 1 [11:51:07]Read from MH i2c: 01 [11:51:07]MH_I2C_Read... [11:51:07]*** Stop cut motor [11:51:07]*** Cut end [11:51:07]Read from MH i2c: 01 07 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: 01 07 00 7E 22 00 00 00 00 00 FF 0F B5 [11:51:07]process_action close_receipt done [11:51:07]requested_data is exist [11:51:07]produce_requested_data [11:51:07]requested_item fm.sn is exist - process it [11:51:07]wFMCommunicate request_size=4 [11:51:07]MH_SAM_APDU [11:51:07]CAPDU: 80 11 00 00 [11:51:07]Write to MH i2c: E2 08 00 7F 22 80 11 00 00 00 00 00 00 1B [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:07]Read from MH i2c: E2 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 17 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 17 00 7F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 71 [11:51:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [11:51:07]wFMCommunicate OK [11:51:07]requested_item fd.num is exist - process it [11:51:07]SAM_PROTO_GetFieldsCounters [11:51:07]wFMCommunicate request_size=4 [11:51:07]MH_SAM_APDU [11:51:07]CAPDU: 80 13 00 00 [11:51:07]Write to MH i2c: E2 08 00 80 22 80 13 00 00 00 00 00 00 1E [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:07]Read from MH i2c: E2 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 62 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 62 00 80 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 E4 05 01 00 0E 04 04 00 63 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 2B [11:51:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E4 05 01 00 0E 04 04 00 63 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:51:07]wFMCommunicate OK [11:51:07]SAM_PROTO_GetFieldsCounters done [11:51:07]requested_item shift.num is exist - process it [11:51:07]requested_item shift.opened is exist - process it [11:51:07]req_shift_opened [11:51:07]FM_GetShiftState [11:51:07]SAM_PROTO_GetShiftState [11:51:07]wFMCommunicate request_size=4 [11:51:07]MH_SAM_APDU [11:51:07]CAPDU: 80 13 01 00 [11:51:07]Write to MH i2c: E2 08 00 81 22 80 13 01 00 00 00 00 00 20 [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:07]Read from MH i2c: E2 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 0E 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 0E 00 81 22 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 E8 [11:51:07]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [11:51:07]wFMCommunicate OK [11:51:07]SAM_PROTO_GetShiftState done [11:51:07]FM_GetShiftState done [11:51:07]req_shift_opened done [11:51:07]requested_item shift.open_date is exist - process it [11:51:07]req_shift_open_date [11:51:07]req_shift_open_date done [11:51:07]produce_requested_data done [11:51:07]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67044,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [11:51:07]process_action_free close_receipt [11:51:07]json_value_free [11:51:07]json_value_free done [11:51:07]process_json_proto returns [11:51:07]Send response to host [11:51:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67044,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [11:51:07]free response buf [11:51:07]execute_script done [11:51:07]execute_script returns [11:51:07]free content buf [11:51:07]Sock 9.Close socket [11:51:07]Sock 9.Thread stoped [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:16]OFD Sender: No OFD packet to send [11:54:21]OFD Sender: No OFD packet to send [11:54:26]OFD Sender: No OFD packet to send [11:54:31]OFD Sender: No OFD packet to send [11:54:36]OFD Sender: No OFD packet to send [11:54:41]OFD Sender: No OFD packet to send [11:54:46]OFD Sender: No OFD packet to send [11:54:51]OFD Sender: No OFD packet to send [11:54:56]OFD Sender: No OFD packet to send [11:55:01]OFD Sender: No OFD packet to send [11:55:06]OFD Sender: No OFD packet to send [11:55:11]OFD Sender: No OFD packet to send [11:55:16]OFD Sender: No OFD packet to send [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:31]OFD Sender: No OFD packet to send [11:55:36]OFD Sender: No OFD packet to send [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:16]OFD Sender: No OFD packet to send [11:56:21]OFD Sender: No OFD packet to send [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58:11]OFD Sender: No OFD packet to send [11:58:16]OFD Sender: No OFD packet to send [11:58:21]OFD Sender: No OFD packet to send [11:58:26]OFD Sender: No OFD packet to send [11:58:31]OFD Sender: No OFD packet to send [11:58:36]OFD Sender: No OFD packet to send [11:58:41]OFD Sender: No OFD packet to send [11:58:46]OFD Sender: No OFD packet to send [11:58:51]OFD Sender: No OFD packet to send [11:58:56]OFD Sender: No OFD packet to send [11:59:01]OFD Sender: No OFD packet to send [11:59:06]OFD Sender: No OFD packet to send [11:59:11]OFD Sender: No OFD packet to send [11:59:16]OFD Sender: No OFD packet to send [11:59:21]OFD Sender: No OFD packet to send [11:59:26]OFD Sender: No OFD packet to send [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [11:59:41]OFD Sender: No OFD packet to send [11:59:46]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:56]OFD Sender: No OFD packet to send [12:00:01]OFD Sender: No OFD packet to send [12:00:06]OFD Sender: No OFD packet to send [12:00:11]OFD Sender: No OFD packet to send [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]accept exits with 8 [12:00:26]New connection [12:00:26]New thread 3066760548 created [12:00:26]Thread 3066617188 joined [12:00:26]Waiting for new connection... [12:00:26] Sock 8.Parse request [12:00:26]Sock 8.Check first char [12:00:26]Sock 8.First char is OK [12:00:26]request: POST /json_proto HTTP/1.0 [12:00:26]Method: POST [12:00:26]URL: /json_proto [12:00:26]Method is POST - this is cgi request [12:00:26]url: /json_proto [12:00:26]query_string will be loaded in cgi processing [12:00:26]execute_cgi json_proto POST (null) [12:00:26]execute_cgi path=json_proto method=POST [12:00:26]POST find Content-Length [12:00:26]Host: 172.17.41.195:8080 [12:00:26]Content-Length: 800 [12:00:26]Content-Type: application/json [12:00:26] [12:00:26]POST finish read [12:00:26]Found Content-Length = 800 [12:00:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:26]execute_script... [12:00: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)506909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:26]POST & json_proto [12:00:26]process_json_proto [12:00:26]json parsed OK: [12:00:26]protocol is kg_v1.0 [12:00:26]action value=close_receipt [12:00:26]process_action close_receipt [12:00:26]cmd_close_receipt [12:00:26]MH_GetDate [12:00:26]Write to MH i2c: F0 00 00 82 22 93 [12:00:26]Write i2c OK [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: F0 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: F0 09 00 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: F0 09 00 82 22 00 5E 52 43 66 FC 21 6F 64 E5 [12:00:26]GetLastDocTimeStamp 1715687467 [12:00:26]current date 1715688030 [12:00:26]FM_GetShiftState [12:00:26]SAM_PROTO_GetShiftState [12:00:26]wFMCommunicate request_size=4 [12:00:26]MH_SAM_APDU [12:00:26]CAPDU: 80 13 01 00 [12:00:26]Write to MH i2c: E2 08 00 83 22 80 13 01 00 00 00 00 00 22 [12:00:26]Write i2c OK [12:00:26]MH_I2C_Read... [12:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:26]Read from MH i2c: E2 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: E2 0E 00 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: E2 0E 00 83 22 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 EA [12:00:26]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:00:26]wFMCommunicate OK [12:00:26]SAM_PROTO_GetShiftState done [12:00:26]FM_GetShiftState done [12:00:26]opened in 1715646054 [12:00:26]opened+sec_in_day 1715732454 [12:00:26]quantity*price = 300069 [12:00:26]sum+1 = 300071 [12:00:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.70 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.70 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 52 14.05.2024 12:00 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67045 ФПД: 169919173970631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T120030&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67045&fm=169919173970631&tin=02508201610067®Number=0000000000091845&sum=300070 [12:00:27]StoreToDocumentArchive [12:00:27]shift 355 fd 67045 [12:00:27]save to /storage/0355/doc_00067045 [12:00:27]save last doc name /storage/0355/doc_00067045 to /storage/kkm_last_doc_name [12:00:27]save OK [12:00:27]Clear old archive folders... [12:00:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:00:27]tlvbuf is 003B0850 [12:00:27]SAM_PROTO_ClearQueue [12:00:27]wFMCommunicate request_size=4 [12:00:27]MH_SAM_APDU [12:00:27]CAPDU: 80 09 00 00 [12:00:27]Write to MH i2c: E2 08 00 90 22 80 09 00 00 00 00 00 00 24 [12:00:27]Write i2c OK [12:00:27]MH_I2C_Read... [12:00:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:27]Read from MH i2c: E2 [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: E2 03 00 [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: E2 03 00 90 22 00 90 00 26 [12:00:27]RAPDU: 90 00 [12:00:27]wFMCommunicate OK [12:00:27]SAM_PROTO_ClearQueue done [12:00:27]KKMCreateOFDPacket [12:00:27]OFDProtocolAddRootSTLVToBuf [12:00:27]FM_MakeSignedData [12:00:27]FM_MakeSignedData [12:00:27]SAM_PROTO_SignData [12:00:27]wFMCommunicate request_size=4 [12:00:27]MH_SAM_APDU [12:00:27]CAPDU: 80 0D 01 02 [12:00:27]Write to MH i2c: E2 08 00 91 22 80 0D 01 02 00 00 00 00 2C [12:00:27]Write i2c OK [12:00:27]MH_I2C_Read... [12:00:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:27]Read from MH i2c: E2 [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: E2 03 00 [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: E2 03 00 91 22 00 90 00 27 [12:00:27]RAPDU: 90 00 [12:00:27]wFMCommunicate OK [12:00:27]wFMCommunicate request_size=255 [12:00:27]MH_SAM_APDU [12:00: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 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 5E 52 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E5 05 01 00 35 04 06 00 9A 8A 64 01 [12:00:27]Write to MH i2c: E2 02 01 92 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 5E 52 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E5 05 01 00 35 04 06 00 9A 8A 64 01 00 00 5D [12:00:27]Write i2c OK [12:00:27]MH_I2C_Read... [12:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:28]Read from MH i2c: E2 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 03 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 03 00 92 22 00 90 00 28 [12:00:28]RAPDU: 90 00 [12:00:28]wFMCommunicate OK [12:00:28]wFMCommunicate request_size=7 [12:00:28]MH_SAM_APDU [12:00:28]CAPDU: 80 0D 02 02 02 4A C7 [12:00:28]Write to MH i2c: E2 0A 00 93 22 80 0D 02 02 02 00 4A C7 00 00 44 [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:28]Read from MH i2c: E2 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 03 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 03 00 93 22 00 90 00 29 [12:00:28]RAPDU: 90 00 [12:00:28]wFMCommunicate OK [12:00:28]wFMCommunicate request_size=4 [12:00:28]MH_SAM_APDU [12:00:28]CAPDU: 80 0D 03 02 [12:00:28]Write to MH i2c: E2 08 00 94 22 80 0D 03 02 00 00 00 00 31 [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:28]Read from MH i2c: E2 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 0B 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 0B 00 94 22 00 88 B1 31 CB 51 D5 D2 35 90 00 94 [12:00:28]RAPDU: 88 B1 31 CB 51 D5 D2 35 90 00 [12:00:28]wFMCommunicate OK [12:00:28]SAM_PROTO_SignData done [12:00:28]FM_MakeSignedData done [12:00:28]CreateOFDProtocolMessage [12:00:28]wFMCommunicate request_size=4 [12:00:28]MH_SAM_APDU [12:00:28]CAPDU: 80 11 00 00 [12:00:28]Write to MH i2c: E2 08 00 95 22 80 11 00 00 00 00 00 00 31 [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:28]Read from MH i2c: E2 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 17 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 17 00 95 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 87 [12:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:00:28]wFMCommunicate OK [12:00:28]CreateOFDProtocolMessage done [12:00:28]OFDSenderStorePacket 67045 [12:00:28]StoreOFDPacket docnum=67045 [12:00:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 DD 76 04 01 58 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 5E 52 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E5 05 01 00 35 04 06 00 9A 8A 64 01 4A C7 88 B1 31 CB 51 D5 D2 35 [12:00:28]CheckFolder [12:00:28]dirname=/storage/ofd_packets [12:00:28]CheckFolder done [12:00:28]ProducePacketName [12:00:28]name=ofd_packets/00067045 [12:00:28]NVStorageSaveData ofd_packets/00067045 [12:00:28]File name is /storage/ofd_packets/00067045 [12:00:28]Write 298 bytes [12:00:28]NVStorageSaveData done [12:00:28]OFDSenderStorePacket done [12:00:28]KKMCreateOFDPacket done [12:00:28]NVStorageSaveData kkm_last_timestamp [12:00:28]File name is /storage/kkm_last_timestamp [12:00:28]Write 4 bytes [12:00:28]NVStorageSaveData done [12:00:28]ExternCall_PrintAddStr [12:00:28]wPrintStart [12:00:28]Write to MH i2c: 01 00 00 96 22 B8 [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: 01 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: 01 07 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: 01 07 00 96 22 00 00 00 00 00 FF 0F CD [12:00:28]RasterBufferAndPrint [12:00:28]line Счет N : (1)506909 [12:00:28]line ИНН: 02508201610067 [12:00:28]line Контрольно-Кассовый Чек [12:00:28]line ПРОДАЖА [12:00:28]line ТРК (МРК, ГНК) : 21 [12:00:28]line Товар: 2710194210 [12:00:28]line ДТ-К-5 [12:00:28]line 40.170 * 74.70 [12:00:28]line = 3000.70 [12:00:28]line НДС 12% НСП 1% [12:00:28]line > о реализуемом товаре [12:00:28]line ИТОГО: 3000.70 [12:00:28]line НСП 1% : 26.55 [12:00:28]line НДС 12% : 318.66 [12:00:28]line Наличными: 0.00 [12:00:28]line Безнал.: 3000.70 [12:00:28]line Место: АЗС № 91 "Партнер Нефть" [12:00:28]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:00:28]line СНО: Общий режим [12:00:28]line Чек 52 14.05.2024 12:00 [12:00:28]line Смена: 355 ФФД: 1.0 [12:00:28]line ЗНМ: 0300000119 [12:00:28]line РНМ: 0000000000091845 [12:00:28]line Версия ККМ: 001 [12:00:28]line Платежная система: O! деньги [12:00:28]line ФМ: 0000000000871829 [12:00:28]line ФД: 67045 [12:00:28]line ФПД: 169919173970631 [12:00:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T120030&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67045&fm=169919173970631&tin=02508201610067®Number=0000000000091845&sum=300070 [12:00:28]OFD Sender: Processing packet 67045 [packets to send 35, broken 34] [12:00:28]ProducePacketName [12:00:28]name=ofd_packets/00067045 [12:00:28]OFD Sender: To server: pG, [12:00:28]CommunicateWithHost lk.salyk.kg:30040 [12:00:28]ConnectInit lk.salyk.kg [12:00:28]written 0, free lines is 4095 [12:00:28]Connected sock=10 [12:00: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 DD 76 04 01 58 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 5E 52 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E5 05 01 00 35 04 06 00 9A 8A 64 01 4A C7 88 B1 31 CB 51 D5 D2 35 [12:00: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 48 89 47 00 3E 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 E5 05 01 00 F4 03 04 00 3E FA 42 66 B6 04 01 00 00 89 30 A2 04 17 8E 04 DC [12:00:28]CommunicateWithHost err = 0 [12:00:28]CheckOFDResponse [12:00:28]1017 (14) - 77093643461234 [12:00:28]1041 (16) - 0000000000871829 [12:00:28]1040 (4) - 67045 [12:00:28]1012 (4) - 14.05.2024 05:44 [12:00:28]1206 (1) - 0 [12:00:28]OFD Sender: Remove packet 67045 [12:00:28]ProducePacketName [12:00:28]name=ofd_packets/00067045 [12:00:28]NVStorageDeleteData [12:00:29]Write to MH i2c: 01 00 00 BF 22 E1 [12:00:29]Write i2c OK [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: 01 [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: 01 07 00 [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: 01 07 00 BF 22 00 00 00 00 00 E6 0C DA [12:00:29]RasterBufferAndPrint [12:00:29]line [12:00:29]line [12:00:29]line [12:00:29]line [12:00:29]line [12:00:29]written 0, free lines is 3308 [12:00:29]MH_Cut [12:00:29]Write to MH i2c: D1 01 00 C6 22 01 BA [12:00:29]Write i2c OK [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: D1 [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: D1 01 00 [12:00:29]MH_I2C_Read... [12:00:29]Read from MH i2c: D1 01 00 C6 22 00 B9 [12:00:29]Write to MH i2c: 01 00 00 C7 22 E9 [12:00:29]Write i2c OK [12:00:29]MH_I2C_Read... [12:00:29]OFD Sender: No OFD packet to send [12:00:29]*** Cut start [12:00:29]*** Purtial cut [12:00:29]*** CUTSNS_PIN = 0 [12:00:30]*** Stage 1: CUTSNS_PIN = 1 [12:00:31]Read from MH i2c: 01 [12:00:31]MH_I2C_Read... [12:00:31]*** Stop cut motor [12:00:31]*** Cut end [12:00:31]Read from MH i2c: 01 07 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: 01 07 00 C7 22 00 00 00 00 00 FF 0F FE [12:00:31]process_action close_receipt done [12:00:31]requested_data is exist [12:00:31]produce_requested_data [12:00:31]requested_item fm.sn is exist - process it [12:00:31]wFMCommunicate request_size=4 [12:00:31]MH_SAM_APDU [12:00:31]CAPDU: 80 11 00 00 [12:00:31]Write to MH i2c: E2 08 00 C8 22 80 11 00 00 00 00 00 00 64 [12:00:31]Write i2c OK [12:00:31]MH_I2C_Read... [12:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:31]Read from MH i2c: E2 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 17 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 17 00 C8 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BA [12:00: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:00:31]wFMCommunicate OK [12:00:31]requested_item fd.num is exist - process it [12:00:31]SAM_PROTO_GetFieldsCounters [12:00:31]wFMCommunicate request_size=4 [12:00:31]MH_SAM_APDU [12:00:31]CAPDU: 80 13 00 00 [12:00:31]Write to MH i2c: E2 08 00 C9 22 80 13 00 00 00 00 00 00 67 [12:00:31]Write i2c OK [12:00:31]MH_I2C_Read... [12:00:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:32]Read from MH i2c: E2 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: E2 62 00 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: E2 62 00 C9 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 E5 05 01 00 0E 04 04 00 63 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 78 [12:00: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 E5 05 01 00 0E 04 04 00 63 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 [12:00:32]wFMCommunicate OK [12:00:32]SAM_PROTO_GetFieldsCounters done [12:00:32]requested_item shift.num is exist - process it [12:00:32]requested_item shift.opened is exist - process it [12:00:32]req_shift_opened [12:00:32]FM_GetShiftState [12:00:32]SAM_PROTO_GetShiftState [12:00:32]wFMCommunicate request_size=4 [12:00:32]MH_SAM_APDU [12:00:32]CAPDU: 80 13 01 00 [12:00:32]Write to MH i2c: E2 08 00 CA 22 80 13 01 00 00 00 00 00 69 [12:00:32]Write i2c OK [12:00:32]MH_I2C_Read... [12:00:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:32]Read from MH i2c: E2 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: E2 0E 00 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: E2 0E 00 CA 22 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 31 [12:00:32]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:00:32]wFMCommunicate OK [12:00:32]SAM_PROTO_GetShiftState done [12:00:32]FM_GetShiftState done [12:00:32]req_shift_opened done [12:00:32]requested_item shift.open_date is exist - process it [12:00:32]req_shift_open_date [12:00:32]req_shift_open_date done [12:00:32]produce_requested_data done [12:00:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67045,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:00:32]process_action_free close_receipt [12:00:32]json_value_free [12:00:32]json_value_free done [12:00:32]process_json_proto returns [12:00:32]Send response to host [12:00:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67045,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:00:32]free response buf [12:00:32]execute_script done [12:00:32]execute_script returns [12:00:32]free content buf [12:00:32]Sock 8.Close socket [12:00:32]Sock 8.Thread stoped [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:58]recv_with_timeout no data received [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:09]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:29]OFD Sender: No OFD packet to send [12:02:34]OFD Sender: No OFD packet to send [12:02:39]OFD Sender: No OFD packet to send [12:02:44]OFD Sender: No OFD packet to send [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:19]OFD Sender: No OFD packet to send [12:03:23]recv_with_timeout no data received [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]accept exits with 9 [12:08:34]New connection [12:08:34]New thread 3066617188 created [12:08:34]Thread 3066760548 joined [12:08:34]Waiting for new connection... [12:08:34] Sock 9.Parse request [12:08:34]Sock 9.Check first char [12:08:34]Sock 9.First char is OK [12:08:34]request: POST /json_proto HTTP/1.0 [12:08:34]Method: POST [12:08:34]URL: /json_proto [12:08:34]Method is POST - this is cgi request [12:08:34]url: /json_proto [12:08:34]query_string will be loaded in cgi processing [12:08:34]execute_cgi json_proto POST (null) [12:08:34]execute_cgi path=json_proto method=POST [12:08:34]POST find Content-Length [12:08:34]Host: 172.17.41.195:8080 [12:08:34]Content-Length: 1179 [12:08:34]Content-Type: application/json [12:08:34] [12:08:34]POST finish read [12:08:34]Found Content-Length = 1179 [12:08: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)506910\u000A14.05.2024 11:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:34]execute_script... [12:08: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)506910\u000A14.05.2024 11:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:34]POST & json_proto [12:08:34]process_json_proto [12:08:34]json parsed OK: [12:08:34]protocol is kg_v1.0 [12:08:34]action value=print_text [12:08:34]process_action print_text [12:08:34]cmd_print_text [12:08:34]ExternCall_PrintAddStr [12:08:34]wPrintStart [12:08:34]Write to MH i2c: 01 00 00 CB 22 ED [12:08:34]Write i2c OK [12:08:34]MH_I2C_Read... [12:08:34]Read from MH i2c: 01 [12:08:34]MH_I2C_Read... [12:08:34]Read from MH i2c: 01 07 00 [12:08:34]MH_I2C_Read... [12:08:34]Read from MH i2c: 01 07 00 CB 22 00 00 00 00 00 FF 0F 02 [12:08:34]RasterBufferAndPrint [12:08:34]line *****ТОВАРНЫЙ ЧЕК***** [12:08:34]line АЗС-91 [12:08:34]line Партнер нефть [12:08:34]line 02508201610067 [12:08:34]line Кассир : Адишов И. [12:08:34]line Счет N : (1)506910 [12:08:34]line 14.05.2024 11:51 [12:08:34]line ПРОДАЖА [12:08:34]line ТРК (МРК, ГНК): 31 [12:08:34]line Вид ГСМ : 2710194210 [12:08:34]line ДТ-К-5 [12:08:34]line 13.390 x 74.70 [12:08:34]line ИТОГ: 1000.23 [12:08:34]line Тип оплаты: Талоны: Топливная Карта [12:08:34]line 02750 [12:08:34]line ______________________ [12:08:34]line (подпись) [12:08:34]written 0, free lines is 4095 [12:08:34]Write to MH i2c: 01 00 00 DF 22 01 [12:08:34]Write i2c OK [12:08:34]MH_I2C_Read... [12:08:34]Read from MH i2c: 01 [12:08:34]MH_I2C_Read... [12:08:34]Read from MH i2c: 01 07 00 [12:08:34]MH_I2C_Read... [12:08:34]Read from MH i2c: 01 07 00 DF 22 00 00 00 00 00 0F 0E 25 [12:08:34]RasterBufferAndPrint [12:08:34]line [12:08:34]line [12:08:34]line [12:08:34]line [12:08:34]line [12:08:34]written 0, free lines is 3600 [12:08:34]MH_Cut [12:08:34]Write to MH i2c: D1 01 00 E6 22 01 DA [12:08:34]Write i2c OK [12:08:34]MH_I2C_Read... [12:08:34]Read from MH i2c: D1 [12:08:34]MH_I2C_Read... [12:08:34]Read from MH i2c: D1 01 00 [12:08:34]MH_I2C_Read... [12:08:34]Read from MH i2c: D1 01 00 E6 22 00 D9 [12:08:34]Write to MH i2c: 01 00 00 E7 22 09 [12:08:34]Write i2c OK [12:08:34]MH_I2C_Read... [12:08:34]OFD Sender: No OFD packet to send [12:08:35]*** Cut start [12:08:35]*** Purtial cut [12:08:35]*** Stage 1: CUTSNS_PIN = 1 [12:08:35]Read from MH i2c: 01 [12:08:35]MH_I2C_Read... [12:08:35]*** Stop cut motor [12:08:35]*** Cut end [12:08:35]Read from MH i2c: 01 07 00 [12:08:35]MH_I2C_Read... [12:08:35]Read from MH i2c: 01 07 00 E7 22 00 00 00 00 00 FF 0F 1E [12:08:35]process_action print_text done [12:08:35]requested_data is exist [12:08:35]produce_requested_data [12:08:35]requested_item fm.sn is exist - process it [12:08:35]wFMCommunicate request_size=4 [12:08:35]MH_SAM_APDU [12:08:35]CAPDU: 80 11 00 00 [12:08:35]Write to MH i2c: E2 08 00 E8 22 80 11 00 00 00 00 00 00 84 [12:08:35]Write i2c OK [12:08:35]MH_I2C_Read... [12:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:35]Read from MH i2c: E2 [12:08:35]MH_I2C_Read... [12:08:35]Read from MH i2c: E2 17 00 [12:08:35]MH_I2C_Read... [12:08:35]Read from MH i2c: E2 17 00 E8 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DA [12:08: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:08:35]wFMCommunicate OK [12:08:35]requested_item fd.num is exist - process it [12:08:35]SAM_PROTO_GetFieldsCounters [12:08:35]wFMCommunicate request_size=4 [12:08:35]MH_SAM_APDU [12:08:35]CAPDU: 80 13 00 00 [12:08:35]Write to MH i2c: E2 08 00 E9 22 80 13 00 00 00 00 00 00 87 [12:08:35]Write i2c OK [12:08:35]MH_I2C_Read... [12:08:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:35]Read from MH i2c: E2 [12:08:35]MH_I2C_Read... [12:08:35]Read from MH i2c: E2 62 00 [12:08:35]MH_I2C_Read... [12:08:35]Read from MH i2c: E2 62 00 E9 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 E5 05 01 00 0E 04 04 00 63 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 98 [12:08: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 E5 05 01 00 0E 04 04 00 63 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 [12:08:35]wFMCommunicate OK [12:08:35]SAM_PROTO_GetFieldsCounters done [12:08:35]requested_item shift.num is exist - process it [12:08:35]requested_item shift.opened is exist - process it [12:08:35]req_shift_opened [12:08:35]FM_GetShiftState [12:08:35]SAM_PROTO_GetShiftState [12:08:35]wFMCommunicate request_size=4 [12:08:35]MH_SAM_APDU [12:08:35]CAPDU: 80 13 01 00 [12:08:35]Write to MH i2c: E2 08 00 EA 22 80 13 01 00 00 00 00 00 89 [12:08:35]Write i2c OK [12:08:35]MH_I2C_Read... [12:08:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:35]Read from MH i2c: E2 [12:08:35]MH_I2C_Read... [12:08:35]Read from MH i2c: E2 0E 00 [12:08:35]MH_I2C_Read... [12:08:35]Read from MH i2c: E2 0E 00 EA 22 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 51 [12:08:35]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:08:35]wFMCommunicate OK [12:08:35]SAM_PROTO_GetShiftState done [12:08:35]FM_GetShiftState done [12:08:35]req_shift_opened done [12:08:35]requested_item shift.open_date is exist - process it [12:08:35]req_shift_open_date [12:08:35]req_shift_open_date done [12:08:35]produce_requested_data done [12:08:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67045,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:08:35]process_action_free print_text [12:08:35]json_value_free [12:08:35]json_value_free done [12:08:35]process_json_proto returns [12:08:35]Send response to host [12:08:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67045,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:08:35]free response buf [12:08:35]execute_script done [12:08:35]execute_script returns [12:08:35]free content buf [12:08:35]Sock 9.Close socket [12:08:35]Sock 9.Thread stoped [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:28]accept exits with 10 [12:10:28]New connection [12:10:28]New thread 3066760548 created [12:10:28]Thread 3066617188 joined [12:10:28]Waiting for new connection... [12:10:28] Sock 10.Parse request [12:10:28]Sock 10.Check first char [12:10:28]Sock 10.First char is OK [12:10:28]request: POST /json_proto HTTP/1.0 [12:10:28]Method: POST [12:10:28]URL: /json_proto [12:10:28]Method is POST - this is cgi request [12:10:28]url: /json_proto [12:10:28]query_string will be loaded in cgi processing [12:10:28]execute_cgi json_proto POST (null) [12:10:28]execute_cgi path=json_proto method=POST [12:10:28]POST find Content-Length [12:10:28]Host: 172.17.41.195:8080 [12:10:28]Content-Length: 1179 [12:10:28]Content-Type: application/json [12:10:28] [12:10:28]POST finish read [12:10:28]Found Content-Length = 1179 [12:10:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506911\u000A14.05.2024 11:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:10:28]execute_script... [12:10:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506911\u000A14.05.2024 11:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:10:28]POST & json_proto [12:10:28]process_json_proto [12:10:28]json parsed OK: [12:10:28]protocol is kg_v1.0 [12:10:28]action value=print_text [12:10:28]process_action print_text [12:10:28]cmd_print_text [12:10:28]ExternCall_PrintAddStr [12:10:28]wPrintStart [12:10:28]Write to MH i2c: 01 00 00 EB 22 0D [12:10:28]Write i2c OK [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: 01 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: 01 07 00 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: 01 07 00 EB 22 00 00 00 00 00 FF 0F 22 [12:10:28]RasterBufferAndPrint [12:10:28]line *****ТОВАРНЫЙ ЧЕК***** [12:10:28]line АЗС-91 [12:10:28]line Партнер нефть [12:10:28]line 02508201610067 [12:10:28]line Кассир : Адишов И. [12:10:28]line Счет N : (1)506911 [12:10:28]line 14.05.2024 11:53 [12:10:28]line ПРОДАЖА [12:10:28]line ТРК (МРК, ГНК): 11 [12:10:28]line Вид ГСМ : 2710194210 [12:10:28]line ДТ-К-5 [12:10:28]line 20.090 x 74.70 [12:10:28]line ИТОГ: 1500.72 [12:10:28]line Тип оплаты: Талоны: Топливная Карта [12:10:28]line 02750 [12:10:28]line ______________________ [12:10:28]line (подпись) [12:10:28]written 0, free lines is 4095 [12:10:28]Write to MH i2c: 01 00 00 FF 22 21 [12:10:28]Write i2c OK [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: 01 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: 01 07 00 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: 01 07 00 FF 22 00 00 00 00 00 0D 0E 43 [12:10:28]RasterBufferAndPrint [12:10:28]line [12:10:28]line [12:10:28]line [12:10:28]line [12:10:28]line [12:10:28]written 0, free lines is 3598 [12:10:28]MH_Cut [12:10:28]Write to MH i2c: D1 01 00 06 23 01 FB [12:10:28]Write i2c OK [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: D1 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: D1 01 00 [12:10:28]MH_I2C_Read... [12:10:28]Read from MH i2c: D1 01 00 06 23 00 FA [12:10:28]Write to MH i2c: 01 00 00 07 23 2A [12:10:28]Write i2c OK [12:10:28]MH_I2C_Read... [12:10:29]*** Cut start [12:10:29]*** Purtial cut [12:10:29]*** CUTSNS_PIN = 0 [12:10:29]*** Stage 1: CUTSNS_PIN = 1 [12:10:30]OFD Sender: No OFD packet to send [12:10:31]Read from MH i2c: 01 [12:10:31]MH_I2C_Read... [12:10:31]*** Stop cut motor [12:10:31]*** Cut end [12:10:31]Read from MH i2c: 01 07 00 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: 01 07 00 07 23 00 00 00 00 00 FF 0F 3F [12:10:31]process_action print_text done [12:10:31]requested_data is exist [12:10:31]produce_requested_data [12:10:31]requested_item fm.sn is exist - process it [12:10:31]wFMCommunicate request_size=4 [12:10:31]MH_SAM_APDU [12:10:31]CAPDU: 80 11 00 00 [12:10:31]Write to MH i2c: E2 08 00 08 23 80 11 00 00 00 00 00 00 A5 [12:10:31]Write i2c OK [12:10:31]MH_I2C_Read... [12:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:31]Read from MH i2c: E2 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: E2 17 00 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: E2 17 00 08 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FB [12:10: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:10:31]wFMCommunicate OK [12:10:31]requested_item fd.num is exist - process it [12:10:31]SAM_PROTO_GetFieldsCounters [12:10:31]wFMCommunicate request_size=4 [12:10:31]MH_SAM_APDU [12:10:31]CAPDU: 80 13 00 00 [12:10:31]Write to MH i2c: E2 08 00 09 23 80 13 00 00 00 00 00 00 A8 [12:10:31]Write i2c OK [12:10:31]MH_I2C_Read... [12:10:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:31]Read from MH i2c: E2 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: E2 62 00 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: E2 62 00 09 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E5 05 01 00 0E 04 04 00 63 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 B9 [12:10: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 E5 05 01 00 0E 04 04 00 63 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 [12:10:31]wFMCommunicate OK [12:10:31]SAM_PROTO_GetFieldsCounters done [12:10:31]requested_item shift.num is exist - process it [12:10:31]requested_item shift.opened is exist - process it [12:10:31]req_shift_opened [12:10:31]FM_GetShiftState [12:10:31]SAM_PROTO_GetShiftState [12:10:31]wFMCommunicate request_size=4 [12:10:31]MH_SAM_APDU [12:10:31]CAPDU: 80 13 01 00 [12:10:31]Write to MH i2c: E2 08 00 0A 23 80 13 01 00 00 00 00 00 AA [12:10:31]Write i2c OK [12:10:31]MH_I2C_Read... [12:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:31]Read from MH i2c: E2 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: E2 0E 00 [12:10:31]MH_I2C_Read... [12:10:31]Read from MH i2c: E2 0E 00 0A 23 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 72 [12:10:31]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:10:31]wFMCommunicate OK [12:10:31]SAM_PROTO_GetShiftState done [12:10:31]FM_GetShiftState done [12:10:31]req_shift_opened done [12:10:31]requested_item shift.open_date is exist - process it [12:10:31]req_shift_open_date [12:10:31]req_shift_open_date done [12:10:31]produce_requested_data done [12:10:31]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67045,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:10:31]process_action_free print_text [12:10:31]json_value_free [12:10:31]json_value_free done [12:10:31]process_json_proto returns [12:10:31]Send response to host [12:10:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67045,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:10:31]free response buf [12:10:31]execute_script done [12:10:31]execute_script returns [12:10:31]free content buf [12:10:31]Sock 10.Close socket [12:10:31]Sock 10.Thread stoped [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:04]recv_with_timeout no data received [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:13]accept exits with 8 [12:11:13]New connection [12:11:13]New thread 3066617188 created [12:11:13]Thread 3066760548 joined [12:11:13]Waiting for new connection... [12:11:13] Sock 8.Parse request [12:11:13]Sock 8.Check first char [12:11:13]Sock 8.First char is OK [12:11:13]request: POST /json_proto HTTP/1.0 [12:11:13]Method: POST [12:11:13]URL: /json_proto [12:11:13]Method is POST - this is cgi request [12:11:13]url: /json_proto [12:11:13]query_string will be loaded in cgi processing [12:11:13]execute_cgi json_proto POST (null) [12:11:13]execute_cgi path=json_proto method=POST [12:11:13]POST find Content-Length [12:11:13]Host: 172.17.41.195:8080 [12:11:13]Content-Length: 800 [12:11:13]Content-Type: application/json [12:11:13] [12:11:13]POST finish read [12:11:13]Found Content-Length = 800 [12:11:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506912", "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" ] } } [12:11:13]execute_script... [12:11: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)506912", "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" ] } } [12:11:13]POST & json_proto [12:11:13]process_json_proto [12:11:13]json parsed OK: [12:11:13]protocol is kg_v1.0 [12:11:13]action value=close_receipt [12:11:13]process_action close_receipt [12:11:13]cmd_close_receipt [12:11:13]MH_GetDate [12:11:13]Write to MH i2c: F0 00 00 0B 23 1D [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: F0 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: F0 09 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: F0 09 00 0B 23 00 E5 54 43 66 FC 21 6F 64 F8 [12:11:13]GetLastDocTimeStamp 1715688030 [12:11:13]current date 1715688677 [12:11:13]FM_GetShiftState [12:11:13]SAM_PROTO_GetShiftState [12:11:13]wFMCommunicate request_size=4 [12:11:13]MH_SAM_APDU [12:11:13]CAPDU: 80 13 01 00 [12:11:13]Write to MH i2c: E2 08 00 0C 23 80 13 01 00 00 00 00 00 AC [12:11:13]Write i2c OK [12:11:13]MH_I2C_Read... [12:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:13]Read from MH i2c: E2 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 0E 00 [12:11:13]MH_I2C_Read... [12:11:13]Read from MH i2c: E2 0E 00 0C 23 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 74 [12:11:13]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:11:13]wFMCommunicate OK [12:11:13]SAM_PROTO_GetShiftState done [12:11:13]FM_GetShiftState done [12:11:13]opened in 1715646054 [12:11:13]opened+sec_in_day 1715732454 [12:11:13]quantity*price = 200046 [12:11:13]sum+1 = 200048 [12:11:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 53 14.05.2024 12:11 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67046 ФПД: 266908233516751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T121117&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67046&fm=266908233516751&tin=02508201610067®Number=0000000000091845&sum=200047 [12:11:14]StoreToDocumentArchive [12:11:14]shift 355 fd 67046 [12:11:14]save to /storage/0355/doc_00067046 [12:11:14]save last doc name /storage/0355/doc_00067046 to /storage/kkm_last_doc_name [12:11:14]save OK [12:11:14]Clear old archive folders... [12:11:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:11:14]tlvbuf is 003B36E0 [12:11:14]SAM_PROTO_ClearQueue [12:11:14]wFMCommunicate request_size=4 [12:11:14]MH_SAM_APDU [12:11:14]CAPDU: 80 09 00 00 [12:11:14]Write to MH i2c: E2 08 00 19 23 80 09 00 00 00 00 00 00 AE [12:11:14]Write i2c OK [12:11:14]MH_I2C_Read... [12:11:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:14]Read from MH i2c: E2 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 03 00 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 03 00 19 23 00 90 00 B0 [12:11:14]RAPDU: 90 00 [12:11:14]wFMCommunicate OK [12:11:14]SAM_PROTO_ClearQueue done [12:11:14]KKMCreateOFDPacket [12:11:14]OFDProtocolAddRootSTLVToBuf [12:11:14]FM_MakeSignedData [12:11:14]FM_MakeSignedData [12:11:14]SAM_PROTO_SignData [12:11:14]wFMCommunicate request_size=4 [12:11:14]MH_SAM_APDU [12:11:14]CAPDU: 80 0D 01 02 [12:11:14]Write to MH i2c: E2 08 00 1A 23 80 0D 01 02 00 00 00 00 B6 [12:11:14]Write i2c OK [12:11:14]MH_I2C_Read... [12:11:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:14]Read from MH i2c: E2 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 03 00 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 03 00 1A 23 00 90 00 B1 [12:11:14]RAPDU: 90 00 [12:11:14]wFMCommunicate OK [12:11:14]wFMCommunicate request_size=255 [12:11:14]MH_SAM_APDU [12:11: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 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 35 00 00 00 F4 03 04 00 E5 54 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E6 05 01 00 35 04 06 00 F2 C0 6A 72 [12:11:14]Write to MH i2c: E2 02 01 1B 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 E5 54 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E6 05 01 00 35 04 06 00 F2 C0 6A 72 00 00 17 [12:11:14]Write i2c OK [12:11:14]MH_I2C_Read... [12:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:15]OFD Sender: No OFD packet to send [12:11:15]Read from MH i2c: E2 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: E2 03 00 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: E2 03 00 1B 23 00 90 00 B2 [12:11:15]RAPDU: 90 00 [12:11:15]wFMCommunicate OK [12:11:15]wFMCommunicate request_size=7 [12:11:15]MH_SAM_APDU [12:11:15]CAPDU: 80 0D 02 02 02 46 CF [12:11:15]Write to MH i2c: E2 0A 00 1C 23 80 0D 02 02 02 00 46 CF 00 00 D2 [12:11:15]Write i2c OK [12:11:15]MH_I2C_Read... [12:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:15]Read from MH i2c: E2 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: E2 03 00 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: E2 03 00 1C 23 00 90 00 B3 [12:11:15]RAPDU: 90 00 [12:11:15]wFMCommunicate OK [12:11:15]wFMCommunicate request_size=4 [12:11:15]MH_SAM_APDU [12:11:15]CAPDU: 80 0D 03 02 [12:11:15]Write to MH i2c: E2 08 00 1D 23 80 0D 03 02 00 00 00 00 BB [12:11:15]Write i2c OK [12:11:15]MH_I2C_Read... [12:11:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:15]Read from MH i2c: E2 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: E2 0B 00 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: E2 0B 00 1D 23 00 79 31 B4 0A D9 DB 72 06 90 00 50 [12:11:15]RAPDU: 79 31 B4 0A D9 DB 72 06 90 00 [12:11:15]wFMCommunicate OK [12:11:15]SAM_PROTO_SignData done [12:11:15]FM_MakeSignedData done [12:11:15]CreateOFDProtocolMessage [12:11:15]wFMCommunicate request_size=4 [12:11:15]MH_SAM_APDU [12:11:15]CAPDU: 80 11 00 00 [12:11:15]Write to MH i2c: E2 08 00 1E 23 80 11 00 00 00 00 00 00 BB [12:11:15]Write i2c OK [12:11:15]MH_I2C_Read... [12:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:15]Read from MH i2c: E2 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: E2 17 00 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: E2 17 00 1E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 11 [12:11: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:11:15]wFMCommunicate OK [12:11:15]CreateOFDProtocolMessage done [12:11:15]OFDSenderStorePacket 67046 [12:11:15]StoreOFDPacket docnum=67046 [12:11: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 35 37 04 01 B9 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 35 00 00 00 F4 03 04 00 E5 54 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E6 05 01 00 35 04 06 00 F2 C0 6A 72 46 CF 79 31 B4 0A D9 DB 72 06 [12:11:15]CheckFolder [12:11:15]dirname=/storage/ofd_packets [12:11:15]CheckFolder done [12:11:15]ProducePacketName [12:11:15]name=ofd_packets/00067046 [12:11:15]NVStorageSaveData ofd_packets/00067046 [12:11:15]File name is /storage/ofd_packets/00067046 [12:11:15]Write 298 bytes [12:11:15]NVStorageSaveData done [12:11:15]OFDSenderStorePacket done [12:11:15]KKMCreateOFDPacket done [12:11:15]NVStorageSaveData kkm_last_timestamp [12:11:15]File name is /storage/kkm_last_timestamp [12:11:15]Write 4 bytes [12:11:15]NVStorageSaveData done [12:11:15]ExternCall_PrintAddStr [12:11:15]wPrintStart [12:11:15]Write to MH i2c: 01 00 00 1F 23 42 [12:11:15]Write i2c OK [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: 01 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: 01 07 00 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: 01 07 00 1F 23 00 00 00 00 00 FF 0F 57 [12:11:15]RasterBufferAndPrint [12:11:15]line Счет N : (1)506912 [12:11:15]line ИНН: 02508201610067 [12:11:15]line Контрольно-Кассовый Чек [12:11:15]line ПРОДАЖА [12:11:15]line ТРК (МРК, ГНК) : 31 [12:11:15]line Товар: 2710194210 [12:11:15]line ДТ-К-5 [12:11:15]line 26.780 * 74.70 [12:11:15]line = 2000.47 [12:11:15]line НДС 12% НСП 1% [12:11:15]line > о реализуемом товаре [12:11:15]line ИТОГО: 2000.47 [12:11:15]line НСП 1% : 17.70 [12:11:15]line НДС 12% : 212.44 [12:11:15]line Наличными: 0.00 [12:11:15]line Безнал.: 2000.47 [12:11:15]line Место: АЗС № 91 "Партнер Нефть" [12:11:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:11:15]line СНО: Общий режим [12:11:15]line Чек 53 14.05.2024 12:11 [12:11:15]line Смена: 355 ФФД: 1.0 [12:11:15]line ЗНМ: 0300000119 [12:11:15]line РНМ: 0000000000091845 [12:11:15]line Версия ККМ: 001 [12:11:15]line Платежная система: O! деньги [12:11:15]line ФМ: 0000000000871829 [12:11:15]line ФД: 67046 [12:11:15]line ФПД: 266908233516751 [12:11:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T121117&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67046&fm=266908233516751&tin=02508201610067®Number=0000000000091845&sum=200047 [12:11:15]OFD Sender: Processing packet 67046 [packets to send 35, broken 34] [12:11:15]ProducePacketName [12:11:15]name=ofd_packets/00067046 [12:11:15]OFD Sender: To server: pG, [12:11:15]CommunicateWithHost lk.salyk.kg:30040 [12:11:15]ConnectInit lk.salyk.kg [12:11:15]written 0, free lines is 4095 [12:11:15]Connected sock=10 [12:11: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 35 37 04 01 B9 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 35 00 00 00 F4 03 04 00 E5 54 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E6 05 01 00 35 04 06 00 F2 C0 6A 72 46 CF 79 31 B4 0A D9 DB 72 06 [12:11:15]Write to MH i2c: 01 00 00 48 23 6B [12:11:15]Write i2c OK [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: 01 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: 01 07 00 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: 01 07 00 48 23 00 00 00 00 00 D7 0C 55 [12:11:15]RasterBufferAndPrint [12:11:15]line [12:11:15]line [12:11:15]line [12:11:15]line [12:11:15]line [12:11:15]written 0, free lines is 3292 [12:11:15]MH_Cut [12:11:15]Write to MH i2c: D1 01 00 4F 23 01 44 [12:11:15]Write i2c OK [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: D1 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: D1 01 00 [12:11:15]MH_I2C_Read... [12:11:15]Read from MH i2c: D1 01 00 4F 23 00 43 [12:11:15]Write to MH i2c: 01 00 00 50 23 73 [12:11:15]Write i2c OK [12:11:15]MH_I2C_Read... [12:11: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 82 92 47 00 3B 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 E6 05 01 00 F4 03 04 00 C6 FC 42 66 B6 04 01 00 00 7B EC 73 CE A5 D4 06 FB [12:11:16]CommunicateWithHost err = 0 [12:11:16]CheckOFDResponse [12:11:16]1017 (14) - 77093643461234 [12:11:16]1041 (16) - 0000000000871829 [12:11:16]1040 (4) - 67046 [12:11:16]1012 (4) - 14.05.2024 05:55 [12:11:16]1206 (1) - 0 [12:11:16]OFD Sender: Remove packet 67046 [12:11:16]ProducePacketName [12:11:16]name=ofd_packets/00067046 [12:11:16]NVStorageDeleteData [12:11:16]*** Cut start [12:11:16]*** Purtial cut [12:11:16]*** Stage 1: CUTSNS_PIN = 1 [12:11:16]OFD Sender: No OFD packet to send [12:11:17]Read from MH i2c: 01 [12:11:17]MH_I2C_Read... [12:11:17]*** Stop cut motor [12:11:17]*** Cut end [12:11:17]Read from MH i2c: 01 07 00 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: 01 07 00 50 23 00 00 00 00 00 FF 0F 88 [12:11:17]process_action close_receipt done [12:11:17]requested_data is exist [12:11:17]produce_requested_data [12:11:17]requested_item fm.sn is exist - process it [12:11:17]wFMCommunicate request_size=4 [12:11:17]MH_SAM_APDU [12:11:17]CAPDU: 80 11 00 00 [12:11:17]Write to MH i2c: E2 08 00 51 23 80 11 00 00 00 00 00 00 EE [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:17]Read from MH i2c: E2 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 17 00 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 17 00 51 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 44 [12: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 [12:11:17]wFMCommunicate OK [12:11:17]requested_item fd.num is exist - process it [12:11:17]SAM_PROTO_GetFieldsCounters [12:11:17]wFMCommunicate request_size=4 [12:11:17]MH_SAM_APDU [12:11:17]CAPDU: 80 13 00 00 [12:11:17]Write to MH i2c: E2 08 00 52 23 80 13 00 00 00 00 00 00 F1 [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:17]Read from MH i2c: E2 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 62 00 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 62 00 52 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 E6 05 01 00 0E 04 04 00 63 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 06 [12:11: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 E6 05 01 00 0E 04 04 00 63 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 [12:11:17]wFMCommunicate OK [12:11:17]SAM_PROTO_GetFieldsCounters done [12:11:17]requested_item shift.num is exist - process it [12:11:17]requested_item shift.opened is exist - process it [12:11:17]req_shift_opened [12:11:17]FM_GetShiftState [12:11:17]SAM_PROTO_GetShiftState [12:11:17]wFMCommunicate request_size=4 [12:11:17]MH_SAM_APDU [12:11:17]CAPDU: 80 13 01 00 [12:11:17]Write to MH i2c: E2 08 00 53 23 80 13 01 00 00 00 00 00 F3 [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:17]Read from MH i2c: E2 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 0E 00 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 0E 00 53 23 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 BB [12:11:17]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:11:17]wFMCommunicate OK [12:11:17]SAM_PROTO_GetShiftState done [12:11:17]FM_GetShiftState done [12:11:17]req_shift_opened done [12:11:17]requested_item shift.open_date is exist - process it [12:11:17]req_shift_open_date [12:11:17]req_shift_open_date done [12:11:17]produce_requested_data done [12:11:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67046,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:11:17]process_action_free close_receipt [12:11:17]json_value_free [12:11:17]json_value_free done [12:11:17]process_json_proto returns [12:11:17]Send response to host [12:11:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67046,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:11:17]free response buf [12:11:17]execute_script done [12:11:17]execute_script returns [12:11:17]free content buf [12:11:17]Sock 8.Close socket [12:11:17]Sock 8.Thread stoped [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:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:46]accept exits with 9 [12:13:46]New connection [12:13:46]New thread 3066760548 created [12:13:46]Thread 3066617188 joined [12:13:46]Waiting for new connection... [12:13:46] Sock 9.Parse request [12:13:46]Sock 9.Check first char [12:13:46]Sock 9.First char is OK [12:13:46]request: POST /json_proto HTTP/1.0 [12:13:46]Method: POST [12:13:46]URL: /json_proto [12:13:46]Method is POST - this is cgi request [12:13:46]url: /json_proto [12:13:46]query_string will be loaded in cgi processing [12:13:46]execute_cgi json_proto POST (null) [12:13:46]execute_cgi path=json_proto method=POST [12:13:46]POST find Content-Length [12:13:46]Host: 172.17.41.195:8080 [12:13:46]Content-Length: 983 [12:13:46]Content-Type: application/json [12:13:46] [12:13:46]POST finish read [12:13:46]Found Content-Length = 983 [12:13:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506913", "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" : 65.80, "quantity" : 42.560, "sum" : 2800.45, "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 42.56 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:46]execute_script... [12:13: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)506913", "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" : 65.80, "quantity" : 42.560, "sum" : 2800.45, "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 42.56 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:46]POST & json_proto [12:13:46]process_json_proto [12:13:46]json parsed OK: [12:13:46]protocol is kg_v1.0 [12:13:46]action value=close_receipt [12:13:46]process_action close_receipt [12:13:46]cmd_close_receipt [12:13:46]MH_GetDate [12:13:46]Write to MH i2c: F0 00 00 54 23 66 [12:13:46]Write i2c OK [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: F0 [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: F0 09 00 [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: F0 09 00 54 23 00 7E 55 43 66 FC 21 6F 64 DB [12:13:46]GetLastDocTimeStamp 1715688677 [12:13:46]current date 1715688830 [12:13:46]FM_GetShiftState [12:13:46]SAM_PROTO_GetShiftState [12:13:46]wFMCommunicate request_size=4 [12:13:46]MH_SAM_APDU [12:13:46]CAPDU: 80 13 01 00 [12:13:46]Write to MH i2c: E2 08 00 55 23 80 13 01 00 00 00 00 00 F5 [12:13:46]Write i2c OK [12:13:46]MH_I2C_Read... [12:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:46]Read from MH i2c: E2 [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: E2 0E 00 [12:13:46]MH_I2C_Read... [12:13:46]Read from MH i2c: E2 0E 00 55 23 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 BD [12:13:46]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:13:46]wFMCommunicate OK [12:13:46]SAM_PROTO_GetShiftState done [12:13:46]FM_GetShiftState done [12:13:46]opened in 1715646054 [12:13:46]opened+sec_in_day 1715732454 [12:13:46]quantity*price = 280044 [12:13:46]sum+1 = 280046 [12:13:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 2800.00 Внесено: 4000.00 СДАЧА: 1200.00 НСП 1% : 24.78 НДС 12% : 297.39 Наличными: 2800.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 54 14.05.2024 12:13 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Дисконтная программа АИ-92 номер 91 сэкономлено 42.56 сом ФМ: 0000000000871829 ФД: 67047 ФПД: 274445830945084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T121350&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67047&fm=274445830945084&tin=02508201610067®Number=0000000000091845&sum=280000 [12:13:47]StoreToDocumentArchive [12:13:47]shift 355 fd 67047 [12:13:47]save to /storage/0355/doc_00067047 [12:13:47]save last doc name /storage/0355/doc_00067047 to /storage/kkm_last_doc_name [12:13:47]save OK [12:13:47]Clear old archive folders... [12:13:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:13:47]tlvbuf is 003B3510 [12:13:47]SAM_PROTO_ClearQueue [12:13:47]wFMCommunicate request_size=4 [12:13:47]MH_SAM_APDU [12:13:47]CAPDU: 80 09 00 00 [12:13:47]Write to MH i2c: E2 08 00 62 23 80 09 00 00 00 00 00 00 F7 [12:13:47]Write i2c OK [12:13:47]MH_I2C_Read... [12:13:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:47]Read from MH i2c: E2 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: E2 03 00 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: E2 03 00 62 23 00 90 00 F9 [12:13:47]RAPDU: 90 00 [12:13:47]wFMCommunicate OK [12:13:47]SAM_PROTO_ClearQueue done [12:13:47]KKMCreateOFDPacket [12:13:47]OFDProtocolAddRootSTLVToBuf [12:13:47]FM_MakeSignedData [12:13:47]FM_MakeSignedData [12:13:47]SAM_PROTO_SignData [12:13:47]wFMCommunicate request_size=4 [12:13:47]MH_SAM_APDU [12:13:47]CAPDU: 80 0D 01 02 [12:13:47]Write to MH i2c: E2 08 00 63 23 80 0D 01 02 00 00 00 00 FF [12:13:47]Write i2c OK [12:13:47]MH_I2C_Read... [12:13:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:47]Read from MH i2c: E2 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: E2 03 00 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: E2 03 00 63 23 00 90 00 FA [12:13:47]RAPDU: 90 00 [12:13:47]wFMCommunicate OK [12:13:47]wFMCommunicate request_size=255 [12:13:47]MH_SAM_APDU [12:13: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 40 A6 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 ED 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 74 00 00 00 00 07 04 06 00 C0 45 04 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 7E 55 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E7 05 01 00 35 04 06 00 F9 [12:13:47]Write to MH i2c: E2 02 01 64 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 40 A6 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 ED 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 74 00 00 00 00 07 04 06 00 C0 45 04 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 7E 55 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E7 05 01 00 35 04 06 00 F9 00 00 5B [12:13:47]Write i2c OK [12:13:47]MH_I2C_Read... [12:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:47]Read from MH i2c: E2 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: E2 03 00 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: E2 03 00 64 23 00 90 00 FB [12:13:47]RAPDU: 90 00 [12:13:47]wFMCommunicate OK [12:13:47]wFMCommunicate request_size=10 [12:13:47]MH_SAM_APDU [12:13:47]CAPDU: 80 0D 02 02 05 9B 66 43 79 3C [12:13:47]Write to MH i2c: E2 0D 00 65 23 80 0D 02 02 05 00 9B 66 43 79 3C 00 00 05 [12:13:47]Write i2c OK [12:13:47]MH_I2C_Read... [12:13:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:48]Read from MH i2c: E2 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 03 00 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 03 00 65 23 00 90 00 FC [12:13:48]RAPDU: 90 00 [12:13:48]wFMCommunicate OK [12:13:48]wFMCommunicate request_size=4 [12:13:48]MH_SAM_APDU [12:13:48]CAPDU: 80 0D 03 02 [12:13:48]Write to MH i2c: E2 08 00 66 23 80 0D 03 02 00 00 00 00 04 [12:13:48]Write i2c OK [12:13:48]MH_I2C_Read... [12:13:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:48]Read from MH i2c: E2 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 0B 00 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 0B 00 66 23 00 F7 E4 00 9A 1D D1 2A FF 90 00 91 [12:13:48]RAPDU: F7 E4 00 9A 1D D1 2A FF 90 00 [12:13:48]wFMCommunicate OK [12:13:48]SAM_PROTO_SignData done [12:13:48]FM_MakeSignedData done [12:13:48]CreateOFDProtocolMessage [12:13:48]wFMCommunicate request_size=4 [12:13:48]MH_SAM_APDU [12:13:48]CAPDU: 80 11 00 00 [12:13:48]Write to MH i2c: E2 08 00 67 23 80 11 00 00 00 00 00 00 04 [12:13:48]Write i2c OK [12:13:48]MH_I2C_Read... [12:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:48]Read from MH i2c: E2 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 17 00 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 17 00 67 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5A [12:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:13:48]wFMCommunicate OK [12:13:48]CreateOFDProtocolMessage done [12:13:48]OFDSenderStorePacket 67047 [12:13:48]StoreOFDPacket docnum=67047 [12:13: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 58 7D 07 01 F0 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 A6 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 ED 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 74 00 00 00 00 07 04 06 00 C0 45 04 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 7E 55 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E7 05 01 00 35 04 06 00 F9 9B 66 43 79 3C F7 E4 00 9A 1D D1 2A FF [12:13:48]CheckFolder [12:13:48]dirname=/storage/ofd_packets [12:13:48]CheckFolder done [12:13:48]ProducePacketName [12:13:48]name=ofd_packets/00067047 [12:13:48]NVStorageSaveData ofd_packets/00067047 [12:13:48]File name is /storage/ofd_packets/00067047 [12:13:48]Write 301 bytes [12:13:48]NVStorageSaveData done [12:13:48]OFDSenderStorePacket done [12:13:48]KKMCreateOFDPacket done [12:13:48]NVStorageSaveData kkm_last_timestamp [12:13:48]File name is /storage/kkm_last_timestamp [12:13:48]Write 4 bytes [12:13:48]NVStorageSaveData done [12:13:48]ExternCall_PrintAddStr [12:13:48]wPrintStart [12:13:48]Write to MH i2c: 01 00 00 68 23 8B [12:13:48]Write i2c OK [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: 01 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: 01 07 00 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: 01 07 00 68 23 00 00 00 00 00 FF 0F A0 [12:13:48]RasterBufferAndPrint [12:13:48]line Счет N : (1)506913 [12:13:48]line ИНН: 02508201610067 [12:13:48]line Контрольно-Кассовый Чек [12:13:48]line ПРОДАЖА [12:13:48]line ТРК (МРК, ГНК) : 43 [12:13:48]line Товар: 2710124130 [12:13:48]line Аи-92-К-5 [12:13:48]line 42.560 * 65.80 [12:13:48]line = 2800.45 [12:13:48]line НДС 12% НСП 1% [12:13:48]line > о реализуемом товаре [12:13:48]line ОКРУГЛЕНИЕ: -0.45 [12:13:48]line ИТОГО: 2800.00 [12:13:48]line Внесено: 4000.00 [12:13:48]line СДАЧА: 1200.00 [12:13:48]line НСП 1% : 24.78 [12:13:48]line НДС 12% : 297.39 [12:13:48]line Наличными: 2800.00 [12:13:48]line Безнал.: 0.00 [12:13:48]line Место: АЗС № 91 "Партнер Нефть" [12:13:48]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:13:48]line СНО: Общий режим [12:13:48]line Чек 54 14.05.2024 12:13 [12:13:48]line Смена: 355 ФФД: 1.0 [12:13:48]line ЗНМ: 0300000119 [12:13:48]line РНМ: 0000000000091845 [12:13:48]line Версия ККМ: 001 [12:13:48]line [12:13:48]line Дисконтная программа [12:13:48]line АИ-92 [12:13:48]line номер 91 [12:13:48]line сэкономлено 42.56 сом [12:13:48]line ФМ: 0000000000871829 [12:13:48]line ФД: 67047 [12:13:48]line ФПД: 274445830945084 [12:13:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T121350&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67047&fm=274445830945084&tin=02508201610067®Number=0000000000091845&sum=280000 [12:13:48]OFD Sender: Processing packet 67047 [packets to send 35, broken 34] [12:13:48]ProducePacketName [12:13:48]name=ofd_packets/00067047 [12:13:48]OFD Sender: To server: pG, [12:13:48]CommunicateWithHost lk.salyk.kg:30040 [12:13:48]ConnectInit lk.salyk.kg [12:13:48]written 0, free lines is 4095 [12:13:48]Connected sock=10 [12:13: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 58 7D 07 01 F0 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 A6 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 ED 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 74 00 00 00 00 07 04 06 00 C0 45 04 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 7E 55 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E7 05 01 00 35 04 06 00 F9 9B 66 43 79 3C F7 E4 00 9A 1D D1 2A FF [12:13: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 C6 C7 47 00 6D 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 E7 05 01 00 F4 03 04 00 5E FD 42 66 B6 04 01 00 00 75 45 25 61 21 A4 00 35 [12:13:48]CommunicateWithHost err = 0 [12:13:48]CheckOFDResponse [12:13:48]1017 (14) - 77093643461234 [12:13:48]1041 (16) - 0000000000871829 [12:13:48]1040 (4) - 67047 [12:13:48]1012 (4) - 14.05.2024 05:57 [12:13:48]1206 (1) - 0 [12:13:48]OFD Sender: Remove packet 67047 [12:13:48]ProducePacketName [12:13:48]name=ofd_packets/00067047 [12:13:48]NVStorageDeleteData [12:13:48]Write to MH i2c: 01 00 00 97 23 BA [12:13:48]Write i2c OK [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: 01 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: 01 07 00 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: 01 07 00 97 23 00 00 00 00 00 7E 0C 4B [12:13:48]RasterBufferAndPrint [12:13:48]line [12:13:48]line [12:13:48]line [12:13:48]line [12:13:48]line [12:13:48]written 0, free lines is 3207 [12:13:49]MH_Cut [12:13:49]Write to MH i2c: D1 01 00 9E 23 01 93 [12:13:49]Write i2c OK [12:13:49]MH_I2C_Read... [12:13:49]Read from MH i2c: D1 [12:13:49]MH_I2C_Read... [12:13:49]Read from MH i2c: D1 01 00 [12:13:49]MH_I2C_Read... [12:13:49]Read from MH i2c: D1 01 00 9E 23 00 92 [12:13:49]Write to MH i2c: 01 00 00 9F 23 C2 [12:13:49]Write i2c OK [12:13:49]MH_I2C_Read... [12:13:49]OFD Sender: No OFD packet to send [12:13:49]*** Cut start [12:13:49]*** Purtial cut [12:13:49]*** CUTSNS_PIN = 0 [12:13:50]*** Stage 1: CUTSNS_PIN = 1 [12:13:51]Read from MH i2c: 01 [12:13:51]MH_I2C_Read... [12:13:51]*** Stop cut motor [12:13:51]*** Cut end [12:13:51]Read from MH i2c: 01 07 00 [12:13:51]MH_I2C_Read... [12:13:51]Read from MH i2c: 01 07 00 9F 23 00 00 00 00 00 FF 0F D7 [12:13:51]process_action close_receipt done [12:13:51]requested_data is exist [12:13:51]produce_requested_data [12:13:51]requested_item fm.sn is exist - process it [12:13:51]wFMCommunicate request_size=4 [12:13:51]MH_SAM_APDU [12:13:51]CAPDU: 80 11 00 00 [12:13:51]Write to MH i2c: E2 08 00 A0 23 80 11 00 00 00 00 00 00 3D [12:13:51]Write i2c OK [12:13:51]MH_I2C_Read... [12:13:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:51]Read from MH i2c: E2 [12:13:51]MH_I2C_Read... [12:13:51]Read from MH i2c: E2 17 00 [12:13:51]MH_I2C_Read... [12:13:51]Read from MH i2c: E2 17 00 A0 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 93 [12:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:13:51]wFMCommunicate OK [12:13:51]requested_item fd.num is exist - process it [12:13:51]SAM_PROTO_GetFieldsCounters [12:13:51]wFMCommunicate request_size=4 [12:13:51]MH_SAM_APDU [12:13:51]CAPDU: 80 13 00 00 [12:13:51]Write to MH i2c: E2 08 00 A1 23 80 13 00 00 00 00 00 00 40 [12:13:51]Write i2c OK [12:13:51]MH_I2C_Read... [12:13:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:52]Read from MH i2c: E2 [12:13:52]MH_I2C_Read... [12:13:52]Read from MH i2c: E2 62 00 [12:13:52]MH_I2C_Read... [12:13:52]Read from MH i2c: E2 62 00 A1 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E7 05 01 00 0E 04 04 00 63 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 59 [12:13: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 E7 05 01 00 0E 04 04 00 63 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 [12:13:52]wFMCommunicate OK [12:13:52]SAM_PROTO_GetFieldsCounters done [12:13:52]requested_item shift.num is exist - process it [12:13:52]requested_item shift.opened is exist - process it [12:13:52]req_shift_opened [12:13:52]FM_GetShiftState [12:13:52]SAM_PROTO_GetShiftState [12:13:52]wFMCommunicate request_size=4 [12:13:52]MH_SAM_APDU [12:13:52]CAPDU: 80 13 01 00 [12:13:52]Write to MH i2c: E2 08 00 A2 23 80 13 01 00 00 00 00 00 42 [12:13:52]Write i2c OK [12:13:52]MH_I2C_Read... [12:13:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:52]Read from MH i2c: E2 [12:13:52]MH_I2C_Read... [12:13:52]Read from MH i2c: E2 0E 00 [12:13:52]MH_I2C_Read... [12:13:52]Read from MH i2c: E2 0E 00 A2 23 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 0A [12:13:52]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:13:52]wFMCommunicate OK [12:13:52]SAM_PROTO_GetShiftState done [12:13:52]FM_GetShiftState done [12:13:52]req_shift_opened done [12:13:52]requested_item shift.open_date is exist - process it [12:13:52]req_shift_open_date [12:13:52]req_shift_open_date done [12:13:52]produce_requested_data done [12:13:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67047,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:13:52]process_action_free close_receipt [12:13:52]json_value_free [12:13:52]json_value_free done [12:13:52]process_json_proto returns [12:13:52]Send response to host [12:13:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67047,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:13:52]free response buf [12:13:52]execute_script done [12:13:52]execute_script returns [12:13:52]free content buf [12:13:52]Sock 9.Close socket [12:13:52]Sock 9.Thread stoped [12:13:54]OFD Sender: No OFD packet to send [12:13:59]OFD Sender: No OFD packet to send [12:14:04]OFD Sender: No OFD packet to send [12:14:08]accept exits with 8 [12:14:08]New connection [12:14:08]New thread 3066617188 created [12:14:08] Sock 8.Parse request [12:14:08]Thread 3066760548 joined [12:14:08]Sock 8.Check first char [12:14:08]Waiting for new connection... [12:14:08]Sock 8.First char is OK [12:14:08]request: POST /json_proto HTTP/1.0 [12:14:08]Method: POST [12:14:08]URL: /json_proto [12:14:08]Method is POST - this is cgi request [12:14:08]url: /json_proto [12:14:08]query_string will be loaded in cgi processing [12:14:08]execute_cgi json_proto POST (null) [12:14:08]execute_cgi path=json_proto method=POST [12:14:08]POST find Content-Length [12:14:08]Host: 172.17.41.195:8080 [12:14:08]Content-Length: 1179 [12:14:08]Content-Type: application/json [12:14:08] [12:14:08]POST finish read [12:14:08]Found Content-Length = 1179 [12:14: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)506914\u000A14.05.2024 11:56\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" ] } } [12:14:08]execute_script... [12:14: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)506914\u000A14.05.2024 11:56\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" ] } } [12:14:08]POST & json_proto [12:14:08]process_json_proto [12:14:08]json parsed OK: [12:14:08]protocol is kg_v1.0 [12:14:08]action value=print_text [12:14:08]process_action print_text [12:14:08]cmd_print_text [12:14:08]ExternCall_PrintAddStr [12:14:08]wPrintStart [12:14:08]Write to MH i2c: 01 00 00 A3 23 C6 [12:14:08]Write i2c OK [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: 01 [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: 01 07 00 [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: 01 07 00 A3 23 00 00 00 00 00 FF 0F DB [12:14:08]RasterBufferAndPrint [12:14:08]line *****ТОВАРНЫЙ ЧЕК***** [12:14:08]line АЗС-91 [12:14:08]line Партнер нефть [12:14:08]line 02508201610067 [12:14:08]line Кассир : Адишов И. [12:14:08]line Счет N : (1)506914 [12:14:08]line 14.05.2024 11:56 [12:14:08]line ПРОДАЖА [12:14:08]line ТРК (МРК, ГНК): 11 [12:14:08]line Вид ГСМ : 2710194210 [12:14:08]line ДТ-К-5 [12:14:08]line 25.000 x 74.70 [12:14:08]line ИТОГ: 1867.50 [12:14:08]line Тип оплаты: Талоны: Топливная Карта [12:14:08]line 02750 [12:14:08]line ______________________ [12:14:08]line (подпись) [12:14:08]written 0, free lines is 4095 [12:14:08]Write to MH i2c: 01 00 00 B7 23 DA [12:14:08]Write i2c OK [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: 01 [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: 01 07 00 [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: 01 07 00 B7 23 00 00 00 00 00 0D 0E FC [12:14:08]RasterBufferAndPrint [12:14:08]line [12:14:08]line [12:14:08]line [12:14:08]line [12:14:08]line [12:14:08]written 0, free lines is 3599 [12:14:08]MH_Cut [12:14:08]Write to MH i2c: D1 01 00 BE 23 01 B3 [12:14:08]Write i2c OK [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: D1 [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: D1 01 00 [12:14:08]MH_I2C_Read... [12:14:08]Read from MH i2c: D1 01 00 BE 23 00 B2 [12:14:08]Write to MH i2c: 01 00 00 BF 23 E2 [12:14:08]Write i2c OK [12:14:08]MH_I2C_Read... [12:14:09]*** Cut start [12:14:09]*** Purtial cut [12:14:09]*** Stage 1: CUTSNS_PIN = 1 [12:14:09]OFD Sender: No OFD packet to send [12:14:09]Read from MH i2c: 01 [12:14:09]MH_I2C_Read... [12:14:09]*** Stop cut motor [12:14:09]*** Cut end [12:14:09]Read from MH i2c: 01 07 00 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: 01 07 00 BF 23 00 00 00 00 00 FF 0F F7 [12:14:09]process_action print_text done [12:14:09]requested_data is exist [12:14:09]produce_requested_data [12:14:09]requested_item fm.sn is exist - process it [12:14:09]wFMCommunicate request_size=4 [12:14:09]MH_SAM_APDU [12:14:09]CAPDU: 80 11 00 00 [12:14:09]Write to MH i2c: E2 08 00 C0 23 80 11 00 00 00 00 00 00 5D [12:14:09]Write i2c OK [12:14:09]MH_I2C_Read... [12:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:09]Read from MH i2c: E2 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 17 00 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 17 00 C0 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B3 [12:14:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:14:09]wFMCommunicate OK [12:14:09]requested_item fd.num is exist - process it [12:14:09]SAM_PROTO_GetFieldsCounters [12:14:09]wFMCommunicate request_size=4 [12:14:09]MH_SAM_APDU [12:14:09]CAPDU: 80 13 00 00 [12:14:09]Write to MH i2c: E2 08 00 C1 23 80 13 00 00 00 00 00 00 60 [12:14:09]Write i2c OK [12:14:09]MH_I2C_Read... [12:14:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:09]Read from MH i2c: E2 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 62 00 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 62 00 C1 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E7 05 01 00 0E 04 04 00 63 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 79 [12:14: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 E7 05 01 00 0E 04 04 00 63 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 [12:14:09]wFMCommunicate OK [12:14:09]SAM_PROTO_GetFieldsCounters done [12:14:09]requested_item shift.num is exist - process it [12:14:09]requested_item shift.opened is exist - process it [12:14:09]req_shift_opened [12:14:09]FM_GetShiftState [12:14:09]SAM_PROTO_GetShiftState [12:14:09]wFMCommunicate request_size=4 [12:14:09]MH_SAM_APDU [12:14:09]CAPDU: 80 13 01 00 [12:14:09]Write to MH i2c: E2 08 00 C2 23 80 13 01 00 00 00 00 00 62 [12:14:09]Write i2c OK [12:14:09]MH_I2C_Read... [12:14:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:09]Read from MH i2c: E2 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 0E 00 [12:14:09]MH_I2C_Read... [12:14:09]Read from MH i2c: E2 0E 00 C2 23 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 2A [12:14:09]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:14:09]wFMCommunicate OK [12:14:09]SAM_PROTO_GetShiftState done [12:14:09]FM_GetShiftState done [12:14:09]req_shift_opened done [12:14:09]requested_item shift.open_date is exist - process it [12:14:09]req_shift_open_date [12:14:09]req_shift_open_date done [12:14:09]produce_requested_data done [12:14:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67047,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:14:09]process_action_free print_text [12:14:09]json_value_free [12:14:09]json_value_free done [12:14:09]process_json_proto returns [12:14:09]Send response to host [12:14:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67047,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:14:09]free response buf [12:14:09]execute_script done [12:14:09]execute_script returns [12:14:09]free content buf [12:14:09]Sock 8.Close socket [12:14:09]Sock 8.Thread stoped [12:14:14]OFD Sender: No OFD packet to send [12:14:19]OFD Sender: No OFD packet to send [12:14:24]OFD Sender: No OFD packet to send [12:14:29]OFD Sender: No OFD packet to send [12:14:34]OFD Sender: No OFD packet to send [12:14:39]OFD Sender: No OFD packet to send [12:14:44]OFD Sender: No OFD packet to send [12:14:49]OFD Sender: No OFD packet to send [12:14:54]OFD Sender: No OFD packet to send [12:14:59]OFD Sender: No OFD packet to send [12:15:04]OFD Sender: No OFD packet to send [12:15:09]OFD Sender: No OFD packet to send [12:15:14]OFD Sender: No OFD packet to send [12:15:19]OFD Sender: No OFD packet to send [12:15:23]accept exits with 9 [12:15:23]New connection [12:15:23]New thread 3066760548 created [12:15:23]Thread 3066617188 joined [12:15:23]Waiting for new connection... [12:15:23] Sock 9.Parse request [12:15:23]Sock 9.Check first char [12:15:23]Sock 9.First char is OK [12:15:23]request: POST /json_proto HTTP/1.0 [12:15:23]Method: POST [12:15:23]URL: /json_proto [12:15:23]Method is POST - this is cgi request [12:15:23]url: /json_proto [12:15:23]query_string will be loaded in cgi processing [12:15:23]execute_cgi json_proto POST (null) [12:15:23]execute_cgi path=json_proto method=POST [12:15:23]POST find Content-Length [12:15:23]Host: 172.17.41.195:8080 [12:15:23]Content-Length: 800 [12:15:23]Content-Type: application/json [12:15:23] [12:15:23]POST finish read [12:15:23]Found Content-Length = 800 [12:15:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506915", "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" ] } } [12:15:23]execute_script... [12:15:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506915", "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" ] } } [12:15:23]POST & json_proto [12:15:23]process_json_proto [12:15:23]json parsed OK: [12:15:23]protocol is kg_v1.0 [12:15:23]action value=close_receipt [12:15:23]process_action close_receipt [12:15:23]cmd_close_receipt [12:15:23]MH_GetDate [12:15:23]Write to MH i2c: F0 00 00 C3 23 D5 [12:15:23]Write i2c OK [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: F0 [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: F0 09 00 [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: F0 09 00 C3 23 00 DF 55 43 66 FC 21 6F 64 AB [12:15:23]GetLastDocTimeStamp 1715688830 [12:15:23]current date 1715688927 [12:15:23]FM_GetShiftState [12:15:23]SAM_PROTO_GetShiftState [12:15:23]wFMCommunicate request_size=4 [12:15:23]MH_SAM_APDU [12:15:23]CAPDU: 80 13 01 00 [12:15:23]Write to MH i2c: E2 08 00 C4 23 80 13 01 00 00 00 00 00 64 [12:15:23]Write i2c OK [12:15:23]MH_I2C_Read... [12:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:23]Read from MH i2c: E2 [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: E2 0E 00 [12:15:23]MH_I2C_Read... [12:15:23]Read from MH i2c: E2 0E 00 C4 23 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 2C [12:15:23]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:15:23]wFMCommunicate OK [12:15:23]SAM_PROTO_GetShiftState done [12:15:23]FM_GetShiftState done [12:15:23]opened in 1715646054 [12:15:23]opened+sec_in_day 1715732454 [12:15:23]quantity*price = 200046 [12:15:23]sum+1 = 200048 [12:15:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 55 14.05.2024 12:15 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67048 ФПД: 136893151181224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T121528&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67048&fm=136893151181224&tin=02508201610067®Number=0000000000091845&sum=200047 [12:15:24]StoreToDocumentArchive [12:15:24]shift 355 fd 67048 [12:15:24]save to /storage/0355/doc_00067048 [12:15:24]save last doc name /storage/0355/doc_00067048 to /storage/kkm_last_doc_name [12:15:24]save OK [12:15:24]Clear old archive folders... [12:15:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:15:24]tlvbuf is B6E794E0 [12:15:24]SAM_PROTO_ClearQueue [12:15:24]wFMCommunicate request_size=4 [12:15:24]MH_SAM_APDU [12:15:24]CAPDU: 80 09 00 00 [12:15:24]Write to MH i2c: E2 08 00 D1 23 80 09 00 00 00 00 00 00 66 [12:15:24]Write i2c OK [12:15:24]MH_I2C_Read... [12:15:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:24]Read from MH i2c: E2 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 03 00 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 03 00 D1 23 00 90 00 68 [12:15:24]RAPDU: 90 00 [12:15:24]wFMCommunicate OK [12:15:24]SAM_PROTO_ClearQueue done [12:15:24]KKMCreateOFDPacket [12:15:24]OFDProtocolAddRootSTLVToBuf [12:15:24]FM_MakeSignedData [12:15:24]FM_MakeSignedData [12:15:24]SAM_PROTO_SignData [12:15:24]wFMCommunicate request_size=4 [12:15:24]MH_SAM_APDU [12:15:24]CAPDU: 80 0D 01 02 [12:15:24]Write to MH i2c: E2 08 00 D2 23 80 0D 01 02 00 00 00 00 6E [12:15:24]Write i2c OK [12:15:24]MH_I2C_Read... [12:15:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:24]Read from MH i2c: E2 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 03 00 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 03 00 D2 23 00 90 00 69 [12:15:24]RAPDU: 90 00 [12:15:24]wFMCommunicate OK [12:15:24]wFMCommunicate request_size=255 [12:15:24]MH_SAM_APDU [12:15:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 E0 55 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E8 05 01 00 35 04 06 00 7C 80 EB A5 [12:15:24]Write to MH i2c: E2 02 01 D3 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 E0 55 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E8 05 01 00 35 04 06 00 7C 80 EB A5 00 00 CD [12:15:24]Write i2c OK [12:15:24]MH_I2C_Read... [12:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:25]Read from MH i2c: E2 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 03 00 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 03 00 D3 23 00 90 00 6A [12:15:25]RAPDU: 90 00 [12:15:25]wFMCommunicate OK [12:15:25]wFMCommunicate request_size=7 [12:15:25]MH_SAM_APDU [12:15:25]CAPDU: 80 0D 02 02 02 F9 A8 [12:15:25]Write to MH i2c: E2 0A 00 D4 23 80 0D 02 02 02 00 F9 A8 00 00 16 [12:15:25]Write i2c OK [12:15:25]MH_I2C_Read... [12:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:25]Read from MH i2c: E2 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 03 00 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 03 00 D4 23 00 90 00 6B [12:15:25]RAPDU: 90 00 [12:15:25]wFMCommunicate OK [12:15:25]wFMCommunicate request_size=4 [12:15:25]MH_SAM_APDU [12:15:25]CAPDU: 80 0D 03 02 [12:15:25]Write to MH i2c: E2 08 00 D5 23 80 0D 03 02 00 00 00 00 73 [12:15:25]Write i2c OK [12:15:25]MH_I2C_Read... [12:15:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:25]Read from MH i2c: E2 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 0B 00 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 0B 00 D5 23 00 CB AC 57 07 C5 63 37 39 90 00 E1 [12:15:25]RAPDU: CB AC 57 07 C5 63 37 39 90 00 [12:15:25]wFMCommunicate OK [12:15:25]SAM_PROTO_SignData done [12:15:25]FM_MakeSignedData done [12:15:25]CreateOFDProtocolMessage [12:15:25]wFMCommunicate request_size=4 [12:15:25]MH_SAM_APDU [12:15:25]CAPDU: 80 11 00 00 [12:15:25]Write to MH i2c: E2 08 00 D6 23 80 11 00 00 00 00 00 00 73 [12:15:25]Write i2c OK [12:15:25]MH_I2C_Read... [12:15:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:25]Read from MH i2c: E2 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 17 00 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: E2 17 00 D6 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C9 [12:15:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:15:25]wFMCommunicate OK [12:15:25]CreateOFDProtocolMessage done [12:15:25]OFDSenderStorePacket 67048 [12:15:25]StoreOFDPacket docnum=67048 [12:15:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 1B 61 04 01 46 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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 E0 55 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E8 05 01 00 35 04 06 00 7C 80 EB A5 F9 A8 CB AC 57 07 C5 63 37 39 [12:15:25]CheckFolder [12:15:25]dirname=/storage/ofd_packets [12:15:25]CheckFolder done [12:15:25]ProducePacketName [12:15:25]name=ofd_packets/00067048 [12:15:25]NVStorageSaveData ofd_packets/00067048 [12:15:25]File name is /storage/ofd_packets/00067048 [12:15:25]Write 298 bytes [12:15:25]NVStorageSaveData done [12:15:25]OFDSenderStorePacket done [12:15:25]KKMCreateOFDPacket done [12:15:25]NVStorageSaveData kkm_last_timestamp [12:15:25]File name is /storage/kkm_last_timestamp [12:15:25]Write 4 bytes [12:15:25]NVStorageSaveData done [12:15:25]ExternCall_PrintAddStr [12:15:25]wPrintStart [12:15:25]Write to MH i2c: 01 00 00 D7 23 FA [12:15:25]Write i2c OK [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: 01 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: 01 07 00 [12:15:25]MH_I2C_Read... [12:15:25]Read from MH i2c: 01 07 00 D7 23 00 00 00 00 00 FF 0F 0F [12:15:25]RasterBufferAndPrint [12:15:25]line Счет N : (1)506915 [12:15:25]line ИНН: 02508201610067 [12:15:25]line Контрольно-Кассовый Чек [12:15:25]line ПРОДАЖА [12:15:25]line ТРК (МРК, ГНК) : 31 [12:15:25]line Товар: 2710194210 [12:15:25]line ДТ-К-5 [12:15:25]line 26.780 * 74.70 [12:15:25]line = 2000.47 [12:15:25]line НДС 12% НСП 1% [12:15:25]line > о реализуемом товаре [12:15:25]line ИТОГО: 2000.47 [12:15:25]line НСП 1% : 17.70 [12:15:25]line НДС 12% : 212.44 [12:15:25]line Наличными: 0.00 [12:15:25]line Безнал.: 2000.47 [12:15:25]line Место: АЗС № 91 "Партнер Нефть" [12:15:25]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:15:25]line СНО: Общий режим [12:15:25]line Чек 55 14.05.2024 12:15 [12:15:25]line Смена: 355 ФФД: 1.0 [12:15:25]line ЗНМ: 0300000119 [12:15:25]line РНМ: 0000000000091845 [12:15:25]line Версия ККМ: 001 [12:15:25]line Платежная система: O! деньги [12:15:25]line ФМ: 0000000000871829 [12:15:25]line ФД: 67048 [12:15:25]line ФПД: 136893151181224 [12:15:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T121528&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67048&fm=136893151181224&tin=02508201610067®Number=0000000000091845&sum=200047 [12:15:25]OFD Sender: Processing packet 67048 [packets to send 35, broken 34] [12:15:25]ProducePacketName [12:15:25]name=ofd_packets/00067048 [12:15:25]OFD Sender: To server: pG, [12:15:25]CommunicateWithHost lk.salyk.kg:30040 [12:15:25]ConnectInit lk.salyk.kg [12:15:25]written 0, free lines is 4095 [12:15:25]Connected sock=10 [12:15: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 1B 61 04 01 46 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 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 E0 55 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E8 05 01 00 35 04 06 00 7C 80 EB A5 F9 A8 CB AC 57 07 C5 63 37 39 [12:15: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 8B 4F 47 00 FF 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 E8 05 01 00 F4 03 04 00 C0 FD 42 66 B6 04 01 00 00 91 62 F7 C2 32 CF 57 FC [12:15:25]CommunicateWithHost err = 0 [12:15:25]CheckOFDResponse [12:15:25]1017 (14) - 77093643461234 [12:15:25]1041 (16) - 0000000000871829 [12:15:25]1040 (4) - 67048 [12:15:25]1012 (4) - 14.05.2024 05:59 [12:15:25]1206 (1) - 0 [12:15:25]OFD Sender: Remove packet 67048 [12:15:25]ProducePacketName [12:15:25]name=ofd_packets/00067048 [12:15:25]NVStorageDeleteData [12:15:26]Write to MH i2c: 01 00 00 00 24 24 [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: 01 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: 01 07 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: 01 07 00 00 24 00 00 00 00 00 E7 0C 1E [12:15:26]RasterBufferAndPrint [12:15:26]line [12:15:26]line [12:15:26]line [12:15:26]line [12:15:26]line [12:15:26]written 0, free lines is 3309 [12:15:26]MH_Cut [12:15:26]Write to MH i2c: D1 01 00 07 24 01 FD [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: D1 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: D1 01 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: D1 01 00 07 24 00 FC [12:15:26]Write to MH i2c: 01 00 00 08 24 2C [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]OFD Sender: No OFD packet to send [12:15:26]*** Cut start [12:15:26]*** Purtial cut [12:15:26]*** CUTSNS_PIN = 0 [12:15:27]*** Stage 1: CUTSNS_PIN = 1 [12:15:28]Read from MH i2c: 01 [12:15:28]MH_I2C_Read... [12:15:28]*** Stop cut motor [12:15:28]*** Cut end [12:15:28]Read from MH i2c: 01 07 00 [12:15:28]MH_I2C_Read... [12:15:28]Read from MH i2c: 01 07 00 08 24 00 00 00 00 00 FF 0F 41 [12:15:28]process_action close_receipt done [12:15:28]requested_data is exist [12:15:28]produce_requested_data [12:15:28]requested_item fm.sn is exist - process it [12:15:28]wFMCommunicate request_size=4 [12:15:28]MH_SAM_APDU [12:15:28]CAPDU: 80 11 00 00 [12:15:28]Write to MH i2c: E2 08 00 09 24 80 11 00 00 00 00 00 00 A7 [12:15:28]Write i2c OK [12:15:28]MH_I2C_Read... [12:15:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:29]Read from MH i2c: E2 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 17 00 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 17 00 09 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FD [12:15:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:15:29]wFMCommunicate OK [12:15:29]requested_item fd.num is exist - process it [12:15:29]SAM_PROTO_GetFieldsCounters [12:15:29]wFMCommunicate request_size=4 [12:15:29]MH_SAM_APDU [12:15:29]CAPDU: 80 13 00 00 [12:15:29]Write to MH i2c: E2 08 00 0A 24 80 13 00 00 00 00 00 00 AA [12:15:29]Write i2c OK [12:15:29]MH_I2C_Read... [12:15:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:29]Read from MH i2c: E2 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 62 00 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 62 00 0A 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 E8 05 01 00 0E 04 04 00 63 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 C7 [12:15: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 E8 05 01 00 0E 04 04 00 63 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 [12:15:29]wFMCommunicate OK [12:15:29]SAM_PROTO_GetFieldsCounters done [12:15:29]requested_item shift.num is exist - process it [12:15:29]requested_item shift.opened is exist - process it [12:15:29]req_shift_opened [12:15:29]FM_GetShiftState [12:15:29]SAM_PROTO_GetShiftState [12:15:29]wFMCommunicate request_size=4 [12:15:29]MH_SAM_APDU [12:15:29]CAPDU: 80 13 01 00 [12:15:29]Write to MH i2c: E2 08 00 0B 24 80 13 01 00 00 00 00 00 AC [12:15:29]Write i2c OK [12:15:29]MH_I2C_Read... [12:15:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:29]Read from MH i2c: E2 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 0E 00 [12:15:29]MH_I2C_Read... [12:15:29]Read from MH i2c: E2 0E 00 0B 24 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 74 [12:15:29]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:15:29]wFMCommunicate OK [12:15:29]SAM_PROTO_GetShiftState done [12:15:29]FM_GetShiftState done [12:15:29]req_shift_opened done [12:15:29]requested_item shift.open_date is exist - process it [12:15:29]req_shift_open_date [12:15:29]req_shift_open_date done [12:15:29]produce_requested_data done [12:15:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67048,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:15:29]process_action_free close_receipt [12:15:29]json_value_free [12:15:29]json_value_free done [12:15:29]process_json_proto returns [12:15:29]Send response to host [12:15:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67048,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:15:29]free response buf [12:15:29]execute_script done [12:15:29]execute_script returns [12:15:29]free content buf [12:15:29]Sock 9.Close socket [12:15:29]Sock 9.Thread stoped [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:42]accept exits with 8 [12:17:42]New connection [12:17:42]New thread 3066617188 created [12:17:42]Thread 3066760548 joined [12:17:42]Waiting for new connection... [12:17:42] Sock 8.Parse request [12:17:42]Sock 8.Check first char [12:17:42]Sock 8.First char is OK [12:17:42]request: POST /json_proto HTTP/1.0 [12:17:42]Method: POST [12:17:42]URL: /json_proto [12:17:42]Method is POST - this is cgi request [12:17:42]url: /json_proto [12:17:42]query_string will be loaded in cgi processing [12:17:42]execute_cgi json_proto POST (null) [12:17:42]execute_cgi path=json_proto method=POST [12:17:42]POST find Content-Length [12:17:42]Host: 172.17.41.195:8080 [12:17:42]Content-Length: 1179 [12:17:42]Content-Type: application/json [12:17:42] [12:17:42]POST finish read [12:17:42]Found Content-Length = 1179 [12:17:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506916\u000A14.05.2024 12:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:42]execute_script... [12:17:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506916\u000A14.05.2024 12:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:42]POST & json_proto [12:17:42]process_json_proto [12:17:42]json parsed OK: [12:17:42]protocol is kg_v1.0 [12:17:42]action value=print_text [12:17:42]process_action print_text [12:17:42]cmd_print_text [12:17:42]ExternCall_PrintAddStr [12:17:42]wPrintStart [12:17:42]Write to MH i2c: 01 00 00 0C 24 30 [12:17:42]Write i2c OK [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: 01 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: 01 07 00 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: 01 07 00 0C 24 00 00 00 00 00 FF 0F 45 [12:17:42]RasterBufferAndPrint [12:17:42]line *****ТОВАРНЫЙ ЧЕК***** [12:17:42]line АЗС-91 [12:17:42]line Партнер нефть [12:17:42]line 02508201610067 [12:17:42]line Кассир : Адишов И. [12:17:42]line Счет N : (1)506916 [12:17:42]line 14.05.2024 12:00 [12:17:42]line ПРОДАЖА [12:17:42]line ТРК (МРК, ГНК): 11 [12:17:42]line Вид ГСМ : 2710194210 [12:17:42]line ДТ-К-5 [12:17:42]line 20.000 x 74.70 [12:17:42]line ИТОГ: 1494.00 [12:17:42]line Тип оплаты: Талоны: Топливная Карта [12:17:42]line 02750 [12:17:42]line ______________________ [12:17:42]line (подпись) [12:17:42]written 0, free lines is 4095 [12:17:42]Write to MH i2c: 01 00 00 20 24 44 [12:17:42]Write i2c OK [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: 01 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: 01 07 00 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: 01 07 00 20 24 00 00 00 00 00 0D 0E 66 [12:17:42]RasterBufferAndPrint [12:17:42]line [12:17:42]line [12:17:42]line [12:17:42]line [12:17:42]line [12:17:42]written 0, free lines is 3599 [12:17:42]MH_Cut [12:17:42]Write to MH i2c: D1 01 00 27 24 01 1D [12:17:42]Write i2c OK [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: D1 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: D1 01 00 [12:17:42]MH_I2C_Read... [12:17:42]Read from MH i2c: D1 01 00 27 24 00 1C [12:17:42]Write to MH i2c: 01 00 00 28 24 4C [12:17:42]Write i2c OK [12:17:42]MH_I2C_Read... [12:17:42]*** Cut start [12:17:42]*** Purtial cut [12:17:42]*** Stage 1: CUTSNS_PIN = 1 [12:17:43]Read from MH i2c: 01 [12:17:43]MH_I2C_Read... [12:17:43]*** Stop cut motor [12:17:43]*** Cut end [12:17:43]Read from MH i2c: 01 07 00 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: 01 07 00 28 24 00 00 00 00 00 FF 0F 61 [12:17:43]process_action print_text done [12:17:43]requested_data is exist [12:17:43]produce_requested_data [12:17:43]requested_item fm.sn is exist - process it [12:17:43]wFMCommunicate request_size=4 [12:17:43]MH_SAM_APDU [12:17:43]CAPDU: 80 11 00 00 [12:17:43]Write to MH i2c: E2 08 00 29 24 80 11 00 00 00 00 00 00 C7 [12:17:43]Write i2c OK [12:17:43]MH_I2C_Read... [12:17:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:43]Read from MH i2c: E2 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: E2 17 00 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: E2 17 00 29 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1D [12:17:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:17:43]wFMCommunicate OK [12:17:43]requested_item fd.num is exist - process it [12:17:43]SAM_PROTO_GetFieldsCounters [12:17:43]wFMCommunicate request_size=4 [12:17:43]MH_SAM_APDU [12:17:43]CAPDU: 80 13 00 00 [12:17:43]Write to MH i2c: E2 08 00 2A 24 80 13 00 00 00 00 00 00 CA [12:17:43]Write i2c OK [12:17:43]MH_I2C_Read... [12:17:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:43]Read from MH i2c: E2 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: E2 62 00 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: E2 62 00 2A 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 E8 05 01 00 0E 04 04 00 63 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 E7 [12:17: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 E8 05 01 00 0E 04 04 00 63 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 [12:17:43]wFMCommunicate OK [12:17:43]SAM_PROTO_GetFieldsCounters done [12:17:43]requested_item shift.num is exist - process it [12:17:43]requested_item shift.opened is exist - process it [12:17:43]req_shift_opened [12:17:43]FM_GetShiftState [12:17:43]SAM_PROTO_GetShiftState [12:17:43]wFMCommunicate request_size=4 [12:17:43]MH_SAM_APDU [12:17:43]CAPDU: 80 13 01 00 [12:17:43]Write to MH i2c: E2 08 00 2B 24 80 13 01 00 00 00 00 00 CC [12:17:43]Write i2c OK [12:17:43]MH_I2C_Read... [12:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:43]Read from MH i2c: E2 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: E2 0E 00 [12:17:43]MH_I2C_Read... [12:17:43]Read from MH i2c: E2 0E 00 2B 24 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 94 [12:17:43]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:17:43]wFMCommunicate OK [12:17:43]SAM_PROTO_GetShiftState done [12:17:43]FM_GetShiftState done [12:17:43]req_shift_opened done [12:17:43]requested_item shift.open_date is exist - process it [12:17:43]req_shift_open_date [12:17:43]req_shift_open_date done [12:17:43]produce_requested_data done [12:17:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67048,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:17:43]process_action_free print_text [12:17:43]json_value_free [12:17:43]json_value_free done [12:17:43]process_json_proto returns [12:17:43]Send response to host [12:17:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67048,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:17:43]free response buf [12:17:43]execute_script done [12:17:43]execute_script returns [12:17:43]free content buf [12:17:43]Sock 8.Close socket [12:17:43]Sock 8.Thread stoped [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:00]accept exits with 9 [12:20:00]New connection [12:20:00]New thread 3066760548 created [12:20:00]Thread 3066617188 joined [12:20:00]Waiting for new connection... [12:20:00] Sock 9.Parse request [12:20:00]Sock 9.Check first char [12:20:00]Sock 9.First char is OK [12:20:00]request: POST /json_proto HTTP/1.0 [12:20:00]Method: POST [12:20:00]URL: /json_proto [12:20:00]Method is POST - this is cgi request [12:20:00]url: /json_proto [12:20:00]query_string will be loaded in cgi processing [12:20:00]execute_cgi json_proto POST (null) [12:20:00]execute_cgi path=json_proto method=POST [12:20:00]POST find Content-Length [12:20:00]Host: 172.17.41.195:8080 [12:20:00]Content-Length: 915 [12:20:00]Content-Type: application/json [12:20:00] [12:20:00]POST finish read [12:20:00]Found Content-Length = 915 [12:20:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12048", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 269.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:00]execute_script... [12:20:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12048", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 269.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:00]POST & json_proto [12:20:00]process_json_proto [12:20:00]json parsed OK: [12:20:00]protocol is kg_v1.0 [12:20:00]action value=close_receipt [12:20:00]process_action close_receipt [12:20:00]cmd_close_receipt [12:20:00]MH_GetDate [12:20:00]Write to MH i2c: F0 00 00 2C 24 3F [12:20:00]Write i2c OK [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: F0 [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: F0 09 00 [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: F0 09 00 2C 24 00 F4 56 43 66 FC 21 6F 64 2B [12:20:00]GetLastDocTimeStamp 1715688928 [12:20:00]current date 1715689204 [12:20:00]FM_GetShiftState [12:20:00]SAM_PROTO_GetShiftState [12:20:00]wFMCommunicate request_size=4 [12:20:00]MH_SAM_APDU [12:20:00]CAPDU: 80 13 01 00 [12:20:00]Write to MH i2c: E2 08 00 2D 24 80 13 01 00 00 00 00 00 CE [12:20:00]Write i2c OK [12:20:00]MH_I2C_Read... [12:20:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:00]Read from MH i2c: E2 [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: E2 0E 00 [12:20:00]MH_I2C_Read... [12:20:00]Read from MH i2c: E2 0E 00 2D 24 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 96 [12:20:00]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:20:00]wFMCommunicate OK [12:20:00]SAM_PROTO_GetShiftState done [12:20:00]FM_GetShiftState done [12:20:00]opened in 1715646054 [12:20:00]opened+sec_in_day 1715732454 [12:20:00]quantity*price = 9900 [12:20:00]sum+1 = 9901 [12:20:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000176448 Сок Piko Pulpy апельсин ПЭТ 1л 1.000 * 170.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 269.00 НСП 1% : 2.38 НДС 12% : 28.56 Наличными: 269.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 56 14.05.2024 12:20 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67049 ФПД: 157212249321849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T122004&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67049&fm=157212249321849&tin=02508201610067®Number=0000000000091845&sum=26900 0 [12:20:01]StoreToDocumentArchive [12:20:01]shift 355 fd 67049 [12:20:01]save to /storage/0355/doc_00067049 [12:20:01]save last doc name /storage/0355/doc_00067049 to /storage/kkm_last_doc_name [12:20:01]save OK [12:20:01]Clear old archive folders... [12:20:01]ProcessDocumentItem done err = 0, tmpTLVsize=388 [12:20:01]tlvbuf is 00340650 [12:20:01]SAM_PROTO_ClearQueue [12:20:01]wFMCommunicate request_size=4 [12:20:01]MH_SAM_APDU [12:20:01]CAPDU: 80 09 00 00 [12:20:01]Write to MH i2c: E2 08 00 3A 24 80 09 00 00 00 00 00 00 D0 [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:01]Read from MH i2c: E2 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 3A 24 00 90 00 D2 [12:20:01]RAPDU: 90 00 [12:20:01]wFMCommunicate OK [12:20:01]SAM_PROTO_ClearQueue done [12:20:01]KKMCreateOFDPacket [12:20:01]OFDProtocolAddRootSTLVToBuf [12:20:01]FM_MakeSignedData [12:20:01]FM_MakeSignedData [12:20:01]SAM_PROTO_SignData [12:20:01]wFMCommunicate request_size=4 [12:20:01]MH_SAM_APDU [12:20:01]CAPDU: 80 0D 01 02 [12:20:01]Write to MH i2c: E2 08 00 3B 24 80 0D 01 02 00 00 00 00 D8 [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:01]Read from MH i2c: E2 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 3B 24 00 90 00 D3 [12:20:01]RAPDU: 90 00 [12:20:01]wFMCommunicate OK [12:20:01]wFMCommunicate request_size=255 [12:20:01]MH_SAM_APDU [12:20:01]CAPDU: 80 0D 02 02 FA 03 00 84 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [12:20:01]Write to MH i2c: E2 02 01 3C 24 80 0D 02 02 FA 00 03 00 84 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 99 [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:01]OFD Sender: No OFD packet to send [12:20:01]Read from MH i2c: E2 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 3C 24 00 90 00 D4 [12:20:01]RAPDU: 90 00 [12:20:01]wFMCommunicate OK [12:20:01]wFMCommunicate request_size=147 [12:20:01]MH_SAM_APDU [12:20:01]CAPDU: 80 0D 02 02 8E F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 69 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 F4 56 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E9 05 01 00 35 04 06 00 8E FB D4 46 71 79 [12:20:01]Write to MH i2c: E2 96 00 3D 24 80 0D 02 02 8E 00 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 69 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 F4 56 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E9 05 01 00 35 04 06 00 8E FB D4 46 71 79 00 00 D2 [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:01]Read from MH i2c: E2 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 [12:20:01]MH_I2C_Read... [12:20:01]Read from MH i2c: E2 03 00 3D 24 00 90 00 D5 [12:20:01]RAPDU: 90 00 [12:20:01]wFMCommunicate OK [12:20:01]wFMCommunicate request_size=4 [12:20:01]MH_SAM_APDU [12:20:01]CAPDU: 80 0D 03 02 [12:20:01]Write to MH i2c: E2 08 00 3E 24 80 0D 03 02 00 00 00 00 DD [12:20:01]Write i2c OK [12:20:01]MH_I2C_Read... [12:20:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:02]Read from MH i2c: E2 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: E2 0B 00 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: E2 0B 00 3E 24 00 C0 A2 CC 01 73 EC 1E BF 90 00 49 [12:20:02]RAPDU: C0 A2 CC 01 73 EC 1E BF 90 00 [12:20:02]wFMCommunicate OK [12:20:02]SAM_PROTO_SignData done [12:20:02]FM_MakeSignedData done [12:20:02]CreateOFDProtocolMessage [12:20:02]wFMCommunicate request_size=4 [12:20:02]MH_SAM_APDU [12:20:02]CAPDU: 80 11 00 00 [12:20:02]Write to MH i2c: E2 08 00 3F 24 80 11 00 00 00 00 00 00 DD [12:20:02]Write i2c OK [12:20:02]MH_I2C_Read... [12:20:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:02]Read from MH i2c: E2 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: E2 17 00 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: E2 17 00 3F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 33 [12:20:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:20:02]wFMCommunicate OK [12:20:02]CreateOFDProtocolMessage done [12:20:02]OFDSenderStorePacket 67049 [12:20:02]StoreOFDPacket docnum=67049 [12:20: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 98 01 00 00 A5 84 90 01 F5 6B 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 69 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 F4 56 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E9 05 01 00 35 04 06 00 8E FB D4 46 71 79 C0 A2 CC 01 73 EC 1E BF [12:20:02]CheckFolder [12:20:02]dirname=/storage/ofd_packets [12:20:02]CheckFolder done [12:20:02]ProducePacketName [12:20:02]name=ofd_packets/00067049 [12:20:02]NVStorageSaveData ofd_packets/00067049 [12:20:02]File name is /storage/ofd_packets/00067049 [12:20:02]Write 438 bytes [12:20:02]NVStorageSaveData done [12:20:02]OFDSenderStorePacket done [12:20:02]KKMCreateOFDPacket done [12:20:02]NVStorageSaveData kkm_last_timestamp [12:20:02]File name is /storage/kkm_last_timestamp [12:20:02]Write 4 bytes [12:20:02]NVStorageSaveData done [12:20:02]ExternCall_PrintAddStr [12:20:02]wPrintStart [12:20:02]Write to MH i2c: 01 00 00 40 24 64 [12:20:02]Write i2c OK [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: 01 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: 01 07 00 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: 01 07 00 40 24 00 00 00 00 00 FF 0F 79 [12:20:02]RasterBufferAndPrint [12:20:02]line Счет N : (3)12048 [12:20:02]line ИНН: 02508201610067 [12:20:02]line Контрольно-Кассовый Чек [12:20:02]line ПРОДАЖА [12:20:02]line Товар: 5449000006271 [12:20:02]line Напиток Фанта 1л [12:20:02]line 1.000 * 99.00 [12:20:02]line = 99.00 [12:20:02]line НДС 12% НСП 1% [12:20:02]line > о реализуемом товаре [12:20:02]line Товар: 5449000176448 [12:20:02]line Сок Piko Pulpy апельсин ПЭТ 1л [12:20:02]line 1.000 * 170.00 [12:20:02]line = 170.00 [12:20:02]line НДС 12% НСП 1% [12:20:02]line > о реализуемом товаре [12:20:02]line ИТОГО: 269.00 [12:20:02]line НСП 1% : 2.38 [12:20:02]line НДС 12% : 28.56 [12:20:02]line Наличными: 269.00 [12:20:02]line Безнал.: 0.00 [12:20:02]line Место: АЗС № 91 "Партнер Нефть" [12:20:02]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:20:02]line СНО: Общий режим [12:20:02]line Чек 56 14.05.2024 12:20 [12:20:02]line Смена: 355 ФФД: 1.0 [12:20:02]line ЗНМ: 0300000119 [12:20:02]line РНМ: 0000000000091845 [12:20:02]line Версия ККМ: 001 [12:20:02]line ФМ: 0000000000871829 [12:20:02]line ФД: 67049 [12:20:02]line ФПД: 157212249321849 [12:20:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T122004&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67049&fm=157212249321849&tin=02508201610067®Number=0000000000091845&sum=26900 [12:20:02]OFD Sender: Processing packet 67049 [packets to send 35, broken 34] [12:20:02]line 0 [12:20:02]ProducePacketName [12:20:02]name=ofd_packets/00067049 [12:20:02]OFD Sender: To server: pG, [12:20:02]CommunicateWithHost lk.salyk.kg:30040 [12:20:02]ConnectInit lk.salyk.kg [12:20:02]written 0, free lines is 4095 [12:20:02]Write to MH i2c: 01 00 00 6E 24 92 [12:20:02]Write i2c OK [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: 01 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: 01 07 00 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: 01 07 00 6E 24 00 00 00 00 00 74 0C 19 [12:20:02]RasterBufferAndPrint [12:20:02]line [12:20:02]line [12:20:02]line [12:20:02]line [12:20:02]line [12:20:02]written 0, free lines is 3197 [12:20:02]MH_Cut [12:20:02]Write to MH i2c: D1 01 00 75 24 01 6B [12:20:02]Write i2c OK [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: D1 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: D1 01 00 [12:20:02]MH_I2C_Read... [12:20:02]Read from MH i2c: D1 01 00 75 24 00 6A [12:20:02]Write to MH i2c: 01 00 00 76 24 9A [12:20:02]Write i2c OK [12:20:02]MH_I2C_Read... [12:20:03]*** Cut start [12:20:03]*** Purtial cut [12:20:03]*** CUTSNS_PIN = 0 [12:20:04]*** Stage 1: CUTSNS_PIN = 1 [12:20:05]Read from MH i2c: 01 [12:20:05]MH_I2C_Read... [12:20:05]*** Stop cut motor [12:20:05]*** Cut end [12:20:05]Read from MH i2c: 01 07 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 07 00 76 24 00 00 00 00 00 FF 0F AF [12:20:05]process_action close_receipt done [12:20:05]requested_data is exist [12:20:05]produce_requested_data [12:20:05]requested_item fm.sn is exist - process it [12:20:05]wFMCommunicate request_size=4 [12:20:05]MH_SAM_APDU [12:20:05]CAPDU: 80 11 00 00 [12:20:05]Write to MH i2c: E2 08 00 77 24 80 11 00 00 00 00 00 00 15 [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:05]Read from MH i2c: E2 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 17 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 17 00 77 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6B [12:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:20:05]wFMCommunicate OK [12:20:05]requested_item fd.num is exist - process it [12:20:05]SAM_PROTO_GetFieldsCounters [12:20:05]wFMCommunicate request_size=4 [12:20:05]MH_SAM_APDU [12:20:05]CAPDU: 80 13 00 00 [12:20:05]Write to MH i2c: E2 08 00 78 24 80 13 00 00 00 00 00 00 18 [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:05]Read from MH i2c: E2 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 62 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: E2 62 00 78 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 E9 05 01 00 0E 04 04 00 63 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 39 [12:20:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E9 05 01 00 0E 04 04 00 63 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:20:05]wFMCommunicate OK [12:20:05]SAM_PROTO_GetFieldsCounters done [12:20:05]requested_item shift.num is exist - process it [12:20:05]requested_item shift.opened is exist - process it [12:20:05]req_shift_opened [12:20:05]FM_GetShiftState [12:20:05]SAM_PROTO_GetShiftState [12:20:05]wFMCommunicate request_size=4 [12:20:05]MH_SAM_APDU [12:20:05]CAPDU: 80 13 01 00 [12:20:05]Write to MH i2c: E2 08 00 79 24 80 13 01 00 00 00 00 00 1A [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:06]Read from MH i2c: E2 [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: E2 0E 00 [12:20:06]MH_I2C_Read... [12:20:06]Read from MH i2c: E2 0E 00 79 24 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 E2 [12:20:06]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:20:06]wFMCommunicate OK [12:20:06]SAM_PROTO_GetShiftState done [12:20:06]FM_GetShiftState done [12:20:06]req_shift_opened done [12:20:06]requested_item shift.open_date is exist - process it [12:20:06]req_shift_open_date [12:20:06]req_shift_open_date done [12:20:06]produce_requested_data done [12:20:06]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67049,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:20:06]process_action_free close_receipt [12:20:06]json_value_free [12:20:06]json_value_free done [12:20:06]process_json_proto returns [12:20:06]Send response to host [12:20:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67049,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:20:06]free response buf [12:20:06]execute_script done [12:20:06]execute_script returns [12:20:06]free content buf [12:20:06]Sock 9.Close socket [12:20:06]Sock 9.Thread stoped [12:20:06]Connected sock=11 [12:20: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 98 01 00 00 A5 84 90 01 F5 6B 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 69 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 F4 56 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E9 05 01 00 35 04 06 00 8E FB D4 46 71 79 C0 A2 CC 01 73 EC 1E BF [12:20: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 05 F8 47 00 77 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 E9 05 01 00 F4 03 04 00 D9 FE 42 66 B6 04 01 00 00 C0 43 C6 39 06 19 47 83 [12:20:07]CommunicateWithHost err = 0 [12:20:07]CheckOFDResponse [12:20:07]1017 (14) - 77093643461234 [12:20:07]1041 (16) - 0000000000871829 [12:20:07]1040 (4) - 67049 [12:20:07]1012 (4) - 14.05.2024 06:04 [12:20:07]1206 (1) - 0 [12:20:07]OFD Sender: Remove packet 67049 [12:20:07]ProducePacketName [12:20:07]name=ofd_packets/00067049 [12:20:07]NVStorageDeleteData [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:25]accept exits with 10 [12:22:25]New connection [12:22:25]New thread 3066617188 created [12:22:25]Thread 3066760548 joined [12:22:25]Waiting for new connection... [12:22:25] Sock 10.Parse request [12:22:25]Sock 10.Check first char [12:22:25]Sock 10.First char is OK [12:22:25]request: POST /json_proto HTTP/1.0 [12:22:25]Method: POST [12:22:25]URL: /json_proto [12:22:25]Method is POST - this is cgi request [12:22:25]url: /json_proto [12:22:25]query_string will be loaded in cgi processing [12:22:25]execute_cgi json_proto POST (null) [12:22:25]execute_cgi path=json_proto method=POST [12:22:25]POST find Content-Length [12:22:25]Host: 172.17.41.195:8080 [12:22:25]Content-Length: 1182 [12:22:25]Content-Type: application/json [12:22:25] [12:22:25]POST finish read [12:22:25]Found Content-Length = 1182 [12:22: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)506920\u000A14.05.2024 12:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1336.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:25]execute_script... [12:22: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)506920\u000A14.05.2024 12:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 23\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1336.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:25]POST & json_proto [12:22:25]process_json_proto [12:22:25]json parsed OK: [12:22:25]protocol is kg_v1.0 [12:22:25]action value=print_text [12:22:25]process_action print_text [12:22:25]cmd_print_text [12:22:25]ExternCall_PrintAddStr [12:22:25]wPrintStart [12:22:25]Write to MH i2c: 01 00 00 7A 24 9E [12:22:25]Write i2c OK [12:22:25]MH_I2C_Read... [12:22:25]Read from MH i2c: 01 [12:22:25]MH_I2C_Read... [12:22:25]Read from MH i2c: 01 07 00 [12:22:25]MH_I2C_Read... [12:22:25]Read from MH i2c: 01 07 00 7A 24 00 00 00 00 00 FF 0F B3 [12:22:25]RasterBufferAndPrint [12:22:25]line *****ТОВАРНЫЙ ЧЕК***** [12:22:25]line АЗС-91 [12:22:25]line Партнер нефть [12:22:25]line 02508201610067 [12:22:25]line Кассир : Адишов И. [12:22:25]line Счет N : (1)506920 [12:22:25]line 14.05.2024 12:05 [12:22:25]line ПРОДАЖА [12:22:25]line ТРК (МРК, ГНК): 23 [12:22:25]line Вид ГСМ : 2710124130 [12:22:25]line Аи-92-К-5 [12:22:25]line 20.000 x 66.80 [12:22:25]line ИТОГ: 1336.00 [12:22:25]line Тип оплаты: Талоны: Топливная Карта [12:22:25]line 02750 [12:22:25]line ______________________ [12:22:25]line (подпись) [12:22:25]written 0, free lines is 4095 [12:22:25]Write to MH i2c: 01 00 00 8E 24 B2 [12:22:25]Write i2c OK [12:22:25]MH_I2C_Read... [12:22:25]Read from MH i2c: 01 [12:22:25]MH_I2C_Read... [12:22:25]Read from MH i2c: 01 07 00 [12:22:25]MH_I2C_Read... [12:22:25]Read from MH i2c: 01 07 00 8E 24 00 00 00 00 00 0F 0E D6 [12:22:25]RasterBufferAndPrint [12:22:25]line [12:22:25]line [12:22:25]line [12:22:25]line [12:22:25]line [12:22:25]written 0, free lines is 3600 [12:22:25]MH_Cut [12:22:25]Write to MH i2c: D1 01 00 95 24 01 8B [12:22:25]Write i2c OK [12:22:25]MH_I2C_Read... [12:22:25]Read from MH i2c: D1 [12:22:25]MH_I2C_Read... [12:22:25]Read from MH i2c: D1 01 00 [12:22:25]MH_I2C_Read... [12:22:25]Read from MH i2c: D1 01 00 95 24 00 8A [12:22:25]Write to MH i2c: 01 00 00 96 24 BA [12:22:25]Write i2c OK [12:22:25]MH_I2C_Read... [12:22:26]*** Cut start [12:22:26]*** Purtial cut [12:22:26]*** Stage 1: CUTSNS_PIN = 1 [12:22:26]Read from MH i2c: 01 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: 01 07 00 [12:22:26]MH_I2C_Read... [12:22:26]*** Stop cut motor [12:22:26]*** Cut end [12:22:26]Read from MH i2c: 01 07 00 96 24 00 00 00 00 00 FF 0F CF [12:22:26]process_action print_text done [12:22:26]requested_data is exist [12:22:26]produce_requested_data [12:22:26]requested_item fm.sn is exist - process it [12:22:26]wFMCommunicate request_size=4 [12:22:26]MH_SAM_APDU [12:22:26]CAPDU: 80 11 00 00 [12:22:26]Write to MH i2c: E2 08 00 97 24 80 11 00 00 00 00 00 00 35 [12:22:26]Write i2c OK [12:22:26]MH_I2C_Read... [12:22:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:26]Read from MH i2c: E2 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 17 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 17 00 97 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8B [12:22:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:22:26]wFMCommunicate OK [12:22:26]requested_item fd.num is exist - process it [12:22:26]SAM_PROTO_GetFieldsCounters [12:22:26]wFMCommunicate request_size=4 [12:22:26]MH_SAM_APDU [12:22:26]CAPDU: 80 13 00 00 [12:22:26]Write to MH i2c: E2 08 00 98 24 80 13 00 00 00 00 00 00 38 [12:22:26]Write i2c OK [12:22:26]MH_I2C_Read... [12:22:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:26]Read from MH i2c: E2 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 62 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 62 00 98 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 E9 05 01 00 0E 04 04 00 63 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 59 [12:22: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 E9 05 01 00 0E 04 04 00 63 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:22:26]wFMCommunicate OK [12:22:26]SAM_PROTO_GetFieldsCounters done [12:22:26]requested_item shift.num is exist - process it [12:22:26]requested_item shift.opened is exist - process it [12:22:26]req_shift_opened [12:22:26]FM_GetShiftState [12:22:26]SAM_PROTO_GetShiftState [12:22:26]wFMCommunicate request_size=4 [12:22:26]MH_SAM_APDU [12:22:26]CAPDU: 80 13 01 00 [12:22:26]Write to MH i2c: E2 08 00 99 24 80 13 01 00 00 00 00 00 3A [12:22:26]Write i2c OK [12:22:26]MH_I2C_Read... [12:22:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:26]Read from MH i2c: E2 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 0E 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 0E 00 99 24 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 02 [12:22:26]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:22:26]wFMCommunicate OK [12:22:26]SAM_PROTO_GetShiftState done [12:22:26]FM_GetShiftState done [12:22:26]req_shift_opened done [12:22:26]requested_item shift.open_date is exist - process it [12:22:26]req_shift_open_date [12:22:26]req_shift_open_date done [12:22:26]produce_requested_data done [12:22:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67049,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:22:26]process_action_free print_text [12:22:26]json_value_free [12:22:26]json_value_free done [12:22:26]process_json_proto returns [12:22:26]Send response to host [12:22:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67049,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:22:26]free response buf [12:22:26]execute_script done [12:22:26]execute_script returns [12:22:26]free content buf [12:22:26]Sock 10.Close socket [12:22:26]Sock 10.Thread stoped [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:13]accept exits with 8 [12:23:13]New connection [12:23:13]New thread 3066760548 created [12:23:13]Thread 3066617188 joined [12:23:13]Waiting for new connection... [12:23:13] Sock 8.Parse request [12:23:13]Sock 8.Check first char [12:23:13]Sock 8.First char is OK [12:23:13]request: POST /json_proto HTTP/1.0 [12:23:13]Method: POST [12:23:13]URL: /json_proto [12:23:13]Method is POST - this is cgi request [12:23:13]url: /json_proto [12:23:13]query_string will be loaded in cgi processing [12:23:13]execute_cgi json_proto POST (null) [12:23:13]execute_cgi path=json_proto method=POST [12:23:13]POST find Content-Length [12:23:13]Host: 172.17.41.195:8080 [12:23:13]Content-Length: 1187 [12:23:13]Content-Type: application/json [12:23:13] [12:23:13]POST finish read [12:23:13]Found Content-Length = 1187 [12:23: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)506919\u000A14.05.2024 12:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3735.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3972887\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:13]execute_script... [12:23: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)506919\u000A14.05.2024 12:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3735.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3972887\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:13]POST & json_proto [12:23:13]process_json_proto [12:23:13]json parsed OK: [12:23:13]protocol is kg_v1.0 [12:23:13]action value=print_text [12:23:13]process_action print_text [12:23:13]cmd_print_text [12:23:13]ExternCall_PrintAddStr [12:23:13]wPrintStart [12:23:13]Write to MH i2c: 01 00 00 9A 24 BE [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: 01 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: 01 07 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: 01 07 00 9A 24 00 00 00 00 00 FF 0F D3 [12:23:13]RasterBufferAndPrint [12:23:13]line *****ТОВАРНЫЙ ЧЕК***** [12:23:13]line АЗС-91 [12:23:13]line Партнер нефть [12:23:13]line 02508201610067 [12:23:13]line Кассир : Адишов И. [12:23:13]line Счет N : (1)506919 [12:23:13]line 14.05.2024 12:05 [12:23:13]line ПРОДАЖА [12:23:13]line ТРК (МРК, ГНК): 11 [12:23:13]line Вид ГСМ : 2710194210 [12:23:13]line ДТ-К-5 [12:23:13]line 50.000 x 74.70 [12:23:13]line ИТОГ: 3735.00 [12:23:13]line Тип оплаты: Талоны: Топливные Талоны [12:23:13]line 3972887 [12:23:13]line ______________________ [12:23:13]line (подпись) [12:23:13]written 0, free lines is 4095 [12:23:13]Write to MH i2c: 01 00 00 AE 24 D2 [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: 01 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: 01 07 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: 01 07 00 AE 24 00 00 00 00 00 0D 0E F4 [12:23:13]RasterBufferAndPrint [12:23:13]line [12:23:13]line [12:23:13]line [12:23:13]line [12:23:13]line [12:23:13]written 0, free lines is 3598 [12:23:13]MH_Cut [12:23:13]Write to MH i2c: D1 01 00 B5 24 01 AB [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: D1 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: D1 01 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: D1 01 00 B5 24 00 AA [12:23:13]Write to MH i2c: 01 00 00 B6 24 DA [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:14]*** Cut start [12:23:14]*** Purtial cut [12:23:14]*** CUTSNS_PIN = 0 [12:23:14]*** Stage 1: CUTSNS_PIN = 1 [12:23:16]Read from MH i2c: 01 [12:23:16]MH_I2C_Read... [12:23:16]*** Stop cut motor [12:23:16]*** Cut end [12:23:16]Read from MH i2c: 01 07 00 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: 01 07 00 B6 24 00 00 00 00 00 FF 0F EF [12:23:16]process_action print_text done [12:23:16]requested_data is exist [12:23:16]produce_requested_data [12:23:16]requested_item fm.sn is exist - process it [12:23:16]wFMCommunicate request_size=4 [12:23:16]MH_SAM_APDU [12:23:16]CAPDU: 80 11 00 00 [12:23:16]Write to MH i2c: E2 08 00 B7 24 80 11 00 00 00 00 00 00 55 [12:23:16]Write i2c OK [12:23:16]MH_I2C_Read... [12:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:16]Read from MH i2c: E2 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 17 00 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 17 00 B7 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AB [12:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:23:16]wFMCommunicate OK [12:23:16]requested_item fd.num is exist - process it [12:23:16]SAM_PROTO_GetFieldsCounters [12:23:16]wFMCommunicate request_size=4 [12:23:16]MH_SAM_APDU [12:23:16]CAPDU: 80 13 00 00 [12:23:16]Write to MH i2c: E2 08 00 B8 24 80 13 00 00 00 00 00 00 58 [12:23:16]Write i2c OK [12:23:16]MH_I2C_Read... [12:23:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:16]Read from MH i2c: E2 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 62 00 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 62 00 B8 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 E9 05 01 00 0E 04 04 00 63 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 79 [12:23:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 E9 05 01 00 0E 04 04 00 63 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:23:16]wFMCommunicate OK [12:23:16]SAM_PROTO_GetFieldsCounters done [12:23:16]requested_item shift.num is exist - process it [12:23:16]requested_item shift.opened is exist - process it [12:23:16]req_shift_opened [12:23:16]FM_GetShiftState [12:23:16]SAM_PROTO_GetShiftState [12:23:16]wFMCommunicate request_size=4 [12:23:16]MH_SAM_APDU [12:23:16]CAPDU: 80 13 01 00 [12:23:16]Write to MH i2c: E2 08 00 B9 24 80 13 01 00 00 00 00 00 5A [12:23:16]Write i2c OK [12:23:16]MH_I2C_Read... [12:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:16]Read from MH i2c: E2 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 0E 00 [12:23:16]MH_I2C_Read... [12:23:16]Read from MH i2c: E2 0E 00 B9 24 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 22 [12:23:16]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:23:16]wFMCommunicate OK [12:23:16]SAM_PROTO_GetShiftState done [12:23:16]FM_GetShiftState done [12:23:16]req_shift_opened done [12:23:16]requested_item shift.open_date is exist - process it [12:23:16]req_shift_open_date [12:23:16]req_shift_open_date done [12:23:16]produce_requested_data done [12:23:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67049,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:23:16]process_action_free print_text [12:23:16]json_value_free [12:23:16]json_value_free done [12:23:16]process_json_proto returns [12:23:16]Send response to host [12:23:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67049,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:23:16]free response buf [12:23:16]execute_script done [12:23:16]execute_script returns [12:23:16]free content buf [12:23:16]Sock 8.Close socket [12:23:16]Sock 8.Thread stoped [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [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:43]accept exits with 10 [12:24:43]New connection [12:24:43]New thread 3066617188 created [12:24:43]Thread 3066760548 joined [12:24:43]Waiting for new connection... [12:24:43] Sock 10.Parse request [12:24:43]Sock 10.Check first char [12:24:43]Sock 10.First char is OK [12:24:43]request: POST /json_proto HTTP/1.0 [12:24:43]Method: POST [12:24:43]URL: /json_proto [12:24:43]Method is POST - this is cgi request [12:24:43]url: /json_proto [12:24:43]query_string will be loaded in cgi processing [12:24:43]execute_cgi json_proto POST (null) [12:24:43]execute_cgi path=json_proto method=POST [12:24:43]POST find Content-Length [12:24:43]Host: 172.17.41.195:8080 [12:24:43]Content-Length: 817 [12:24:43]Content-Type: application/json [12:24:43] [12:24:43]POST finish read [12:24:43]Found Content-Length = 817 [12:24:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506918", "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" : 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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 9000.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:43]execute_script... [12:24: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)506918", "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" : 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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 9000.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:43]POST & json_proto [12:24:43]process_json_proto [12:24:43]json parsed OK: [12:24:43]protocol is kg_v1.0 [12:24:43]action value=close_receipt [12:24:43]process_action close_receipt [12:24:43]cmd_close_receipt [12:24:43]MH_GetDate [12:24:43]Write to MH i2c: F0 00 00 BA 24 CD [12:24:43]Write i2c OK [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: F0 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: F0 09 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: F0 09 00 BA 24 00 10 58 43 66 FC 21 6F 64 D7 [12:24:43]GetLastDocTimeStamp 1715689204 [12:24:43]current date 1715689488 [12:24:43]FM_GetShiftState [12:24:43]SAM_PROTO_GetShiftState [12:24:43]wFMCommunicate request_size=4 [12:24:43]MH_SAM_APDU [12:24:43]CAPDU: 80 13 01 00 [12:24:43]Write to MH i2c: E2 08 00 BB 24 80 13 01 00 00 00 00 00 5C [12:24:43]Write i2c OK [12:24:43]MH_I2C_Read... [12:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:43]Read from MH i2c: E2 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 0E 00 [12:24:43]MH_I2C_Read... [12:24:43]Read from MH i2c: E2 0E 00 BB 24 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 24 [12:24:43]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:24:43]wFMCommunicate OK [12:24:43]SAM_PROTO_GetShiftState done [12:24:43]FM_GetShiftState done [12:24:43]opened in 1715646054 [12:24:43]opened+sec_in_day 1715732454 [12:24:43]quantity*price = 900060 [12:24:43]sum+1 = 900061 [12:24:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.60 НСП 1% : 79.65 НДС 12% : 955.82 Наличными: 0.00 Безнал.: 9000.60 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 57 14.05.2024 12:24 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67050 ФПД: 87354763921652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T122448&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67050&fm=87354763921652&tin=02508201610067®Number=0000000000091845&sum=900060 [12:24:45]StoreToDocumentArchive [12:24:45]shift 355 fd 67050 [12:24:45]save to /storage/0355/doc_00067050 [12:24:45]save last doc name /storage/0355/doc_00067050 to /storage/kkm_last_doc_name [12:24:45]save OK [12:24:45]Clear old archive folders... [12:24:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:24:45]tlvbuf is 00337F20 [12:24:45]SAM_PROTO_ClearQueue [12:24:45]wFMCommunicate request_size=4 [12:24:45]MH_SAM_APDU [12:24:45]CAPDU: 80 09 00 00 [12:24:45]Write to MH i2c: E2 08 00 C8 24 80 09 00 00 00 00 00 00 5E [12:24:45]Write i2c OK [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: E2 [12:24:45]MH_I2C_Read... [12:24:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:45]Read from MH i2c: E2 03 00 [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: E2 03 00 C8 24 00 90 00 60 [12:24:45]RAPDU: 90 00 [12:24:45]wFMCommunicate OK [12:24:45]SAM_PROTO_ClearQueue done [12:24:45]KKMCreateOFDPacket [12:24:45]OFDProtocolAddRootSTLVToBuf [12:24:45]FM_MakeSignedData [12:24:45]FM_MakeSignedData [12:24:45]SAM_PROTO_SignData [12:24:45]wFMCommunicate request_size=4 [12:24:45]MH_SAM_APDU [12:24:45]CAPDU: 80 0D 01 02 [12:24:45]Write to MH i2c: E2 08 00 C9 24 80 0D 01 02 00 00 00 00 66 [12:24:45]Write i2c OK [12:24:45]MH_I2C_Read... [12:24:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:45]Read from MH i2c: E2 [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: E2 03 00 [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: E2 03 00 C9 24 00 90 00 61 [12:24:45]RAPDU: 90 00 [12:24:45]wFMCommunicate OK [12:24:45]wFMCommunicate request_size=255 [12:24:45]MH_SAM_APDU [12:24:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 39 00 00 00 F4 03 04 00 10 58 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EA 05 01 00 35 04 06 00 4F 72 DD AC [12:24:45]Write to MH i2c: E2 02 01 CA 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 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 39 00 00 00 F4 03 04 00 10 58 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EA 05 01 00 35 04 06 00 4F 72 DD AC 00 00 78 [12:24:45]Write i2c OK [12:24:45]MH_I2C_Read... [12:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:45]Read from MH i2c: E2 [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: E2 03 00 [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: E2 03 00 CA 24 00 90 00 62 [12:24:45]RAPDU: 90 00 [12:24:45]wFMCommunicate OK [12:24:45]wFMCommunicate request_size=7 [12:24:45]MH_SAM_APDU [12:24:45]CAPDU: 80 0D 02 02 02 48 F4 [12:24:45]Write to MH i2c: E2 0A 00 CB 24 80 0D 02 02 02 00 48 F4 00 00 A9 [12:24:45]Write i2c OK [12:24:45]MH_I2C_Read... [12:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:45]Read from MH i2c: E2 [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: E2 03 00 [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: E2 03 00 CB 24 00 90 00 63 [12:24:45]RAPDU: 90 00 [12:24:45]wFMCommunicate OK [12:24:45]wFMCommunicate request_size=4 [12:24:45]MH_SAM_APDU [12:24:45]CAPDU: 80 0D 03 02 [12:24:45]Write to MH i2c: E2 08 00 CC 24 80 0D 03 02 00 00 00 00 6B [12:24:45]Write i2c OK [12:24:45]MH_I2C_Read... [12:24:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:45]Read from MH i2c: E2 [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: E2 0B 00 [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: E2 0B 00 CC 24 00 99 82 03 11 13 D3 F8 C8 90 00 41 [12:24:45]RAPDU: 99 82 03 11 13 D3 F8 C8 90 00 [12:24:45]wFMCommunicate OK [12:24:45]SAM_PROTO_SignData done [12:24:45]FM_MakeSignedData done [12:24:45]CreateOFDProtocolMessage [12:24:45]wFMCommunicate request_size=4 [12:24:45]MH_SAM_APDU [12:24:45]CAPDU: 80 11 00 00 [12:24:45]Write to MH i2c: E2 08 00 CD 24 80 11 00 00 00 00 00 00 6B [12:24:45]Write i2c OK [12:24:45]MH_I2C_Read... [12:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:45]Read from MH i2c: E2 [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: E2 17 00 [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: E2 17 00 CD 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C1 [12:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:24:45]wFMCommunicate OK [12:24:45]CreateOFDProtocolMessage done [12:24:45]OFDSenderStorePacket 67050 [12:24:45]StoreOFDPacket docnum=67050 [12:24:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 F7 93 04 01 42 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 39 00 00 00 F4 03 04 00 10 58 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EA 05 01 00 35 04 06 00 4F 72 DD AC 48 F4 99 82 03 11 13 D3 F8 C8 [12:24:45]CheckFolder [12:24:45]dirname=/storage/ofd_packets [12:24:45]CheckFolder done [12:24:45]ProducePacketName [12:24:45]name=ofd_packets/00067050 [12:24:45]NVStorageSaveData ofd_packets/00067050 [12:24:45]File name is /storage/ofd_packets/00067050 [12:24:45]Write 298 bytes [12:24:45]NVStorageSaveData done [12:24:45]OFDSenderStorePacket done [12:24:45]KKMCreateOFDPacket done [12:24:45]NVStorageSaveData kkm_last_timestamp [12:24:45]File name is /storage/kkm_last_timestamp [12:24:45]Write 4 bytes [12:24:45]NVStorageSaveData done [12:24:45]ExternCall_PrintAddStr [12:24:45]wPrintStart [12:24:45]Write to MH i2c: 01 00 00 CE 24 F2 [12:24:45]Write i2c OK [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: 01 [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: 01 07 00 [12:24:45]MH_I2C_Read... [12:24:45]Read from MH i2c: 01 07 00 CE 24 00 00 00 00 00 FF 0F 07 [12:24:45]RasterBufferAndPrint [12:24:45]line Счет N : (1)506918 [12:24:45]line ИНН: 02508201610067 [12:24:45]line Контрольно-Кассовый Чек [12:24:45]line ПРОДАЖА [12:24:45]line ТРК (МРК, ГНК) : 41 [12:24:45]line Товар: 2710194210 [12:24:45]line ДТ-К-5 [12:24:45]line 120.490 * 74.70 [12:24:45]line = 9000.60 [12:24:45]line НДС 12% НСП 1% [12:24:45]line > о реализуемом товаре [12:24:45]line ИТОГО: 9000.60 [12:24:45]line НСП 1% : 79.65 [12:24:45]line НДС 12% : 955.82 [12:24:45]line Наличными: 0.00 [12:24:45]line Безнал.: 9000.60 [12:24:45]line Место: АЗС № 91 "Партнер Нефть" [12:24:45]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:24:45]line СНО: Общий режим [12:24:45]line Чек 57 14.05.2024 12:24 [12:24:45]line Смена: 355 ФФД: 1.0 [12:24:45]line ЗНМ: 0300000119 [12:24:45]line РНМ: 0000000000091845 [12:24:45]line Версия ККМ: 001 [12:24:45]line Платежная система: Бакай Банк [12:24:45]line ФМ: 0000000000871829 [12:24:45]line ФД: 67050 [12:24:45]line ФПД: 87354763921652 [12:24:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T122448&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67050&fm=87354763921652&tin=02508201610067®Number=0000000000091845&sum=900060 [12:24:45]OFD Sender: Processing packet 67050 [packets to send 35, broken 34] [12:24:45]ProducePacketName [12:24:45]name=ofd_packets/00067050 [12:24:45]OFD Sender: To server: pG, [12:24:45]CommunicateWithHost lk.salyk.kg:30040 [12:24:45]ConnectInit lk.salyk.kg [12:24:45]written 0, free lines is 4095 [12:24:46]Connected sock=9 [12:24:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 F7 93 04 01 42 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 39 00 00 00 F4 03 04 00 10 58 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EA 05 01 00 35 04 06 00 4F 72 DD AC 48 F4 99 82 03 11 13 D3 F8 C8 [12:24: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 D9 C0 47 00 37 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EA 05 01 00 F4 03 04 00 F0 FF 42 66 B6 04 01 00 00 AB C7 48 67 C6 8C BD 50 [12:24:46]CommunicateWithHost err = 0 [12:24:46]CheckOFDResponse [12:24:46]1017 (14) - 77093643461234 [12:24:46]1041 (16) - 0000000000871829 [12:24:46]1040 (4) - 67050 [12:24:46]1012 (4) - 14.05.2024 06:08 [12:24:46]1206 (1) - 0 [12:24:46]OFD Sender: Remove packet 67050 [12:24:46]ProducePacketName [12:24:46]name=ofd_packets/00067050 [12:24:46]NVStorageDeleteData [12:24:46]Write to MH i2c: 01 00 00 F7 24 1B [12:24:46]Write i2c OK [12:24:46]MH_I2C_Read... [12:24:46]Read from MH i2c: 01 [12:24:46]MH_I2C_Read... [12:24:46]Read from MH i2c: 01 07 00 [12:24:46]MH_I2C_Read... [12:24:46]Read from MH i2c: 01 07 00 F7 24 00 00 00 00 00 E0 0C 0E [12:24:46]RasterBufferAndPrint [12:24:46]line [12:24:46]line [12:24:46]line [12:24:46]line [12:24:46]line [12:24:46]written 0, free lines is 3302 [12:24:46]MH_Cut [12:24:46]Write to MH i2c: D1 01 00 FE 24 01 F4 [12:24:46]Write i2c OK [12:24:46]MH_I2C_Read... [12:24:46]Read from MH i2c: D1 [12:24:46]MH_I2C_Read... [12:24:46]Read from MH i2c: D1 01 00 [12:24:46]MH_I2C_Read... [12:24:46]Read from MH i2c: D1 01 00 FE 24 00 F3 [12:24:46]Write to MH i2c: 01 00 00 FF 24 23 [12:24:46]Write i2c OK [12:24:46]MH_I2C_Read... [12:24:46]OFD Sender: No OFD packet to send [12:24:47]*** Cut start [12:24:47]*** Purtial cut [12:24:47]*** Stage 1: CUTSNS_PIN = 1 [12:24:47]Read from MH i2c: 01 [12:24:47]MH_I2C_Read... [12:24:47]*** Stop cut motor [12:24:47]*** Cut end [12:24:47]Read from MH i2c: 01 07 00 [12:24:47]MH_I2C_Read... [12:24:47]Read from MH i2c: 01 07 00 FF 24 00 00 00 00 00 FF 0F 38 [12:24:47]process_action close_receipt done [12:24:47]requested_data is exist [12:24:47]produce_requested_data [12:24:47]requested_item fm.sn is exist - process it [12:24:47]wFMCommunicate request_size=4 [12:24:47]MH_SAM_APDU [12:24:47]CAPDU: 80 11 00 00 [12:24:47]Write to MH i2c: E2 08 00 00 25 80 11 00 00 00 00 00 00 9F [12:24:47]Write i2c OK [12:24:47]MH_I2C_Read... [12:24:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:47]Read from MH i2c: E2 [12:24:47]MH_I2C_Read... [12:24:47]Read from MH i2c: E2 17 00 [12:24:47]MH_I2C_Read... [12:24:47]Read from MH i2c: E2 17 00 00 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F5 [12:24:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:24:47]wFMCommunicate OK [12:24:47]requested_item fd.num is exist - process it [12:24:47]SAM_PROTO_GetFieldsCounters [12:24:47]wFMCommunicate request_size=4 [12:24:47]MH_SAM_APDU [12:24:47]CAPDU: 80 13 00 00 [12:24:47]Write to MH i2c: E2 08 00 01 25 80 13 00 00 00 00 00 00 A2 [12:24:47]Write i2c OK [12:24:47]MH_I2C_Read... [12:24:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:47]Read from MH i2c: E2 [12:24:47]MH_I2C_Read... [12:24:47]Read from MH i2c: E2 62 00 [12:24:47]MH_I2C_Read... [12:24:47]Read from MH i2c: E2 62 00 01 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 EA 05 01 00 0E 04 04 00 63 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 C7 [12:24: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 EA 05 01 00 0E 04 04 00 63 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:24:47]wFMCommunicate OK [12:24:47]SAM_PROTO_GetFieldsCounters done [12:24:47]requested_item shift.num is exist - process it [12:24:47]requested_item shift.opened is exist - process it [12:24:47]req_shift_opened [12:24:47]FM_GetShiftState [12:24:47]SAM_PROTO_GetShiftState [12:24:47]wFMCommunicate request_size=4 [12:24:47]MH_SAM_APDU [12:24:47]CAPDU: 80 13 01 00 [12:24:47]Write to MH i2c: E2 08 00 02 25 80 13 01 00 00 00 00 00 A4 [12:24:47]Write i2c OK [12:24:47]MH_I2C_Read... [12:24:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:47]Read from MH i2c: E2 [12:24:47]MH_I2C_Read... [12:24:47]Read from MH i2c: E2 0E 00 [12:24:47]MH_I2C_Read... [12:24:47]Read from MH i2c: E2 0E 00 02 25 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 6C [12:24:47]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:24:47]wFMCommunicate OK [12:24:47]SAM_PROTO_GetShiftState done [12:24:47]FM_GetShiftState done [12:24:47]req_shift_opened done [12:24:47]requested_item shift.open_date is exist - process it [12:24:47]req_shift_open_date [12:24:47]req_shift_open_date done [12:24:47]produce_requested_data done [12:24:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67050,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:24:47]process_action_free close_receipt [12:24:47]json_value_free [12:24:47]json_value_free done [12:24:47]process_json_proto returns [12:24:47]Send response to host [12:24:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67050,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:24:47]free response buf [12:24:47]execute_script done [12:24:47]execute_script returns [12:24:47]free content buf [12:24:47]Sock 10.Close socket [12:24:47]Sock 10.Thread stoped [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:35]accept exits with 8 [12:25:35]New connection [12:25:35]New thread 3066760548 created [12:25:35]Thread 3066617188 joined [12:25:35]Waiting for new connection... [12:25:35] Sock 8.Parse request [12:25:35]Sock 8.Check first char [12:25:35]Sock 8.First char is OK [12:25:35]request: POST /json_proto HTTP/1.0 [12:25:35]Method: POST [12:25:35]URL: /json_proto [12:25:35]Method is POST - this is cgi request [12:25:35]url: /json_proto [12:25:35]query_string will be loaded in cgi processing [12:25:35]execute_cgi json_proto POST (null) [12:25:35]execute_cgi path=json_proto method=POST [12:25:35]POST find Content-Length [12:25:35]Host: 172.17.41.195:8080 [12:25:35]Content-Length: 1182 [12:25:35]Content-Type: application/json [12:25:35] [12:25:35]POST finish read [12:25:35]Found Content-Length = 1182 [12:25: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)506921\u000A14.05.2024 12:08\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" ] } } [12:25:35]execute_script... [12:25: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)506921\u000A14.05.2024 12:08\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" ] } } [12:25:35]POST & json_proto [12:25:35]process_json_proto [12:25:35]json parsed OK: [12:25:35]protocol is kg_v1.0 [12:25:35]action value=print_text [12:25:35]process_action print_text [12:25:35]cmd_print_text [12:25:35]ExternCall_PrintAddStr [12:25:35]wPrintStart [12:25:35]Write to MH i2c: 01 00 00 03 25 28 [12:25:35]Write i2c OK [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: 01 [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: 01 07 00 [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: 01 07 00 03 25 00 00 00 00 00 FF 0F 3D [12:25:35]RasterBufferAndPrint [12:25:35]line *****ТОВАРНЫЙ ЧЕК***** [12:25:35]line АЗС-91 [12:25:35]line Партнер нефть [12:25:35]line 02508201610067 [12:25:35]line Кассир : Адишов И. [12:25:35]line Счет N : (1)506921 [12:25:35]line 14.05.2024 12:08 [12:25:35]line ПРОДАЖА [12:25:35]line ТРК (МРК, ГНК): 23 [12:25:35]line Вид ГСМ : 2710124130 [12:25:35]line Аи-92-К-5 [12:25:35]line 29.950 x 66.80 [12:25:35]line ИТОГ: 2000.66 [12:25:35]line Тип оплаты: Талоны: Топливная Карта [12:25:35]line 02750 [12:25:35]line ______________________ [12:25:35]line (подпись) [12:25:35]written 0, free lines is 4095 [12:25:35]Write to MH i2c: 01 00 00 17 25 3C [12:25:35]Write i2c OK [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: 01 [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: 01 07 00 [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: 01 07 00 17 25 00 00 00 00 00 10 0E 61 [12:25:35]RasterBufferAndPrint [12:25:35]line [12:25:35]line [12:25:35]line [12:25:35]line [12:25:35]line [12:25:35]written 0, free lines is 3602 [12:25:36]MH_Cut [12:25:36]Write to MH i2c: D1 01 00 1E 25 01 15 [12:25:36]Write i2c OK [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: D1 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: D1 01 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: D1 01 00 1E 25 00 14 [12:25:36]Write to MH i2c: 01 00 00 1F 25 44 [12:25:36]Write i2c OK [12:25:36]MH_I2C_Read... [12:25:36]*** Cut start [12:25:36]*** Purtial cut [12:25:36]*** CUTSNS_PIN = 0 [12:25:36]OFD Sender: No OFD packet to send [12:25:36]*** Stage 1: CUTSNS_PIN = 1 [12:25:38]Read from MH i2c: 01 [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: 01 07 00 [12:25:38]MH_I2C_Read... [12:25:38]*** Stop cut motor [12:25:38]*** Cut end [12:25:38]Read from MH i2c: 01 07 00 1F 25 00 00 00 00 00 FF 0F 59 [12:25:38]process_action print_text done [12:25:38]requested_data is exist [12:25:38]produce_requested_data [12:25:38]requested_item fm.sn is exist - process it [12:25:38]wFMCommunicate request_size=4 [12:25:38]MH_SAM_APDU [12:25:38]CAPDU: 80 11 00 00 [12:25:38]Write to MH i2c: E2 08 00 20 25 80 11 00 00 00 00 00 00 BF [12:25:38]Write i2c OK [12:25:38]MH_I2C_Read... [12:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:38]Read from MH i2c: E2 [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: E2 17 00 [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: E2 17 00 20 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 15 [12:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:25:38]wFMCommunicate OK [12:25:38]requested_item fd.num is exist - process it [12:25:38]SAM_PROTO_GetFieldsCounters [12:25:38]wFMCommunicate request_size=4 [12:25:38]MH_SAM_APDU [12:25:38]CAPDU: 80 13 00 00 [12:25:38]Write to MH i2c: E2 08 00 21 25 80 13 00 00 00 00 00 00 C2 [12:25:38]Write i2c OK [12:25:38]MH_I2C_Read... [12:25:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:38]Read from MH i2c: E2 [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: E2 62 00 [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: E2 62 00 21 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 EA 05 01 00 0E 04 04 00 63 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 E7 [12:25: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 EA 05 01 00 0E 04 04 00 63 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:25:38]wFMCommunicate OK [12:25:38]SAM_PROTO_GetFieldsCounters done [12:25:38]requested_item shift.num is exist - process it [12:25:38]requested_item shift.opened is exist - process it [12:25:38]req_shift_opened [12:25:38]FM_GetShiftState [12:25:38]SAM_PROTO_GetShiftState [12:25:38]wFMCommunicate request_size=4 [12:25:38]MH_SAM_APDU [12:25:38]CAPDU: 80 13 01 00 [12:25:38]Write to MH i2c: E2 08 00 22 25 80 13 01 00 00 00 00 00 C4 [12:25:38]Write i2c OK [12:25:38]MH_I2C_Read... [12:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:38]Read from MH i2c: E2 [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: E2 0E 00 [12:25:38]MH_I2C_Read... [12:25:38]Read from MH i2c: E2 0E 00 22 25 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 8C [12:25:38]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:25:38]wFMCommunicate OK [12:25:38]SAM_PROTO_GetShiftState done [12:25:38]FM_GetShiftState done [12:25:38]req_shift_opened done [12:25:38]requested_item shift.open_date is exist - process it [12:25:38]req_shift_open_date [12:25:38]req_shift_open_date done [12:25:38]produce_requested_data done [12:25:38]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67050,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:25:38]process_action_free print_text [12:25:38]json_value_free [12:25:38]json_value_free done [12:25:38]process_json_proto returns [12:25:38]Send response to host [12:25:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67050,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:25:38]free response buf [12:25:38]execute_script done [12:25:38]execute_script returns [12:25:38]free content buf [12:25:38]Sock 8.Close socket [12:25:38]Sock 8.Thread stoped [12:25:41]OFD Sender: No OFD packet to send [12:25:46]OFD Sender: No OFD packet to send [12:25:49]accept exits with 9 [12:25:49]New connection [12:25:49]New thread 3066617188 created [12:25:49]Thread 3066760548 joined [12:25:49]Waiting for new connection... [12:25:49] Sock 9.Parse request [12:25:49]Sock 9.Check first char [12:25:49]Sock 9.First char is OK [12:25:49]request: POST /json_proto HTTP/1.0 [12:25:49]Method: POST [12:25:49]URL: /json_proto [12:25:49]Method is POST - this is cgi request [12:25:49]url: /json_proto [12:25:49]query_string will be loaded in cgi processing [12:25:49]execute_cgi json_proto POST (null) [12:25:49]execute_cgi path=json_proto method=POST [12:25:49]POST find Content-Length [12:25:49]Host: 172.17.41.195:8080 [12:25:49]Content-Length: 817 [12:25:49]Content-Type: application/json [12:25:49] [12:25:49]POST finish read [12:25:49]Found Content-Length = 817 [12:25:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 120.490, "sum" : 9000.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 9000.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:49]execute_script... [12:25: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)506917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 120.490, "sum" : 9000.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 9000.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:49]POST & json_proto [12:25:49]process_json_proto [12:25:49]json parsed OK: [12:25:49]protocol is kg_v1.0 [12:25:49]action value=close_receipt [12:25:49]process_action close_receipt [12:25:49]cmd_close_receipt [12:25:49]MH_GetDate [12:25:49]Write to MH i2c: F0 00 00 23 25 37 [12:25:49]Write i2c OK [12:25:49]MH_I2C_Read... [12:25:49]Read from MH i2c: F0 [12:25:49]MH_I2C_Read... [12:25:49]Read from MH i2c: F0 09 00 [12:25:49]MH_I2C_Read... [12:25:49]Read from MH i2c: F0 09 00 23 25 00 52 58 43 66 FC 21 6F 64 83 [12:25:49]GetLastDocTimeStamp 1715689488 [12:25:49]current date 1715689554 [12:25:49]FM_GetShiftState [12:25:49]SAM_PROTO_GetShiftState [12:25:49]wFMCommunicate request_size=4 [12:25:49]MH_SAM_APDU [12:25:49]CAPDU: 80 13 01 00 [12:25:49]Write to MH i2c: E2 08 00 24 25 80 13 01 00 00 00 00 00 C6 [12:25:49]Write i2c OK [12:25:49]MH_I2C_Read... [12:25:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:49]Read from MH i2c: E2 [12:25:49]MH_I2C_Read... [12:25:49]Read from MH i2c: E2 0E 00 [12:25:49]MH_I2C_Read... [12:25:49]Read from MH i2c: E2 0E 00 24 25 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 8E [12:25:49]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:25:49]wFMCommunicate OK [12:25:49]SAM_PROTO_GetShiftState done [12:25:49]FM_GetShiftState done [12:25:49]opened in 1715646054 [12:25:49]opened+sec_in_day 1715732454 [12:25:49]quantity*price = 900060 [12:25:49]sum+1 = 900061 [12:25:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.60 НСП 1% : 79.65 НДС 12% : 955.82 Наличными: 0.00 Безнал.: 9000.60 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 58 14.05.2024 12:25 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67051 ФПД: 174021925948137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T122554&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67051&fm=174021925948137&tin=02508201610067®Number=0000000000091845&sum=900060 [12:25:51]StoreToDocumentArchive [12:25:51]shift 355 fd 67051 [12:25:51]save to /storage/0355/doc_00067051 [12:25:51]save last doc name /storage/0355/doc_00067051 to /storage/kkm_last_doc_name [12:25:51]save OK [12:25:51]Clear old archive folders... [12:25:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:25:51]tlvbuf is 00340650 [12:25:51]SAM_PROTO_ClearQueue [12:25:51]wFMCommunicate request_size=4 [12:25:51]MH_SAM_APDU [12:25:51]CAPDU: 80 09 00 00 [12:25:51]Write to MH i2c: E2 08 00 31 25 80 09 00 00 00 00 00 00 C8 [12:25:51]Write i2c OK [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 [12:25:51]MH_I2C_Read... [12:25:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:51]Read from MH i2c: E2 03 00 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 03 00 31 25 00 90 00 CA [12:25:51]RAPDU: 90 00 [12:25:51]wFMCommunicate OK [12:25:51]SAM_PROTO_ClearQueue done [12:25:51]KKMCreateOFDPacket [12:25:51]OFDProtocolAddRootSTLVToBuf [12:25:51]FM_MakeSignedData [12:25:51]FM_MakeSignedData [12:25:51]SAM_PROTO_SignData [12:25:51]wFMCommunicate request_size=4 [12:25:51]MH_SAM_APDU [12:25:51]CAPDU: 80 0D 01 02 [12:25:51]Write to MH i2c: E2 08 00 32 25 80 0D 01 02 00 00 00 00 D0 [12:25:51]Write i2c OK [12:25:51]MH_I2C_Read... [12:25:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:51]Read from MH i2c: E2 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 03 00 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 03 00 32 25 00 90 00 CB [12:25:51]RAPDU: 90 00 [12:25:51]wFMCommunicate OK [12:25:51]wFMCommunicate request_size=255 [12:25:51]MH_SAM_APDU [12:25:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3A 00 00 00 F4 03 04 00 52 58 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EB 05 01 00 35 04 06 00 9E 45 A3 14 [12:25:51]Write to MH i2c: E2 02 01 33 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 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 3A 00 00 00 F4 03 04 00 52 58 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EB 05 01 00 35 04 06 00 9E 45 A3 14 00 00 76 [12:25:51]Write i2c OK [12:25:51]MH_I2C_Read... [12:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:51]Read from MH i2c: E2 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 03 00 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 03 00 33 25 00 90 00 CC [12:25:51]RAPDU: 90 00 [12:25:51]wFMCommunicate OK [12:25:51]wFMCommunicate request_size=7 [12:25:51]MH_SAM_APDU [12:25:51]CAPDU: 80 0D 02 02 02 4A E9 [12:25:51]Write to MH i2c: E2 0A 00 34 25 80 0D 02 02 02 00 4A E9 00 00 0A [12:25:51]Write i2c OK [12:25:51]MH_I2C_Read... [12:25:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:51]Read from MH i2c: E2 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 03 00 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 03 00 34 25 00 90 00 CD [12:25:51]RAPDU: 90 00 [12:25:51]wFMCommunicate OK [12:25:51]wFMCommunicate request_size=4 [12:25:51]MH_SAM_APDU [12:25:51]CAPDU: 80 0D 03 02 [12:25:51]Write to MH i2c: E2 08 00 35 25 80 0D 03 02 00 00 00 00 D5 [12:25:51]Write i2c OK [12:25:51]MH_I2C_Read... [12:25:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:51]Read from MH i2c: E2 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 0B 00 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 0B 00 35 25 00 93 56 B1 60 46 B5 94 A5 90 00 04 [12:25:51]RAPDU: 93 56 B1 60 46 B5 94 A5 90 00 [12:25:51]wFMCommunicate OK [12:25:51]SAM_PROTO_SignData done [12:25:51]FM_MakeSignedData done [12:25:51]CreateOFDProtocolMessage [12:25:51]wFMCommunicate request_size=4 [12:25:51]MH_SAM_APDU [12:25:51]CAPDU: 80 11 00 00 [12:25:51]Write to MH i2c: E2 08 00 36 25 80 11 00 00 00 00 00 00 D5 [12:25:51]Write i2c OK [12:25:51]MH_I2C_Read... [12:25:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:51]Read from MH i2c: E2 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 17 00 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: E2 17 00 36 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2B [12:25:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:25:51]wFMCommunicate OK [12:25:51]CreateOFDProtocolMessage done [12:25:51]OFDSenderStorePacket 67051 [12:25:51]StoreOFDPacket docnum=67051 [12:25:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 2B EA 04 01 60 BB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 3A 00 00 00 F4 03 04 00 52 58 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EB 05 01 00 35 04 06 00 9E 45 A3 14 4A E9 93 56 B1 60 46 B5 94 A5 [12:25:51]CheckFolder [12:25:51]dirname=/storage/ofd_packets [12:25:51]CheckFolder done [12:25:51]ProducePacketName [12:25:51]name=ofd_packets/00067051 [12:25:51]NVStorageSaveData ofd_packets/00067051 [12:25:51]File name is /storage/ofd_packets/00067051 [12:25:51]Write 298 bytes [12:25:51]NVStorageSaveData done [12:25:51]OFDSenderStorePacket done [12:25:51]KKMCreateOFDPacket done [12:25:51]NVStorageSaveData kkm_last_timestamp [12:25:51]File name is /storage/kkm_last_timestamp [12:25:51]Write 4 bytes [12:25:51]NVStorageSaveData done [12:25:51]ExternCall_PrintAddStr [12:25:51]wPrintStart [12:25:51]Write to MH i2c: 01 00 00 37 25 5C [12:25:51]Write i2c OK [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: 01 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: 01 07 00 [12:25:51]MH_I2C_Read... [12:25:51]Read from MH i2c: 01 07 00 37 25 00 00 00 00 00 FF 0F 71 [12:25:51]RasterBufferAndPrint [12:25:51]line Счет N : (1)506917 [12:25:51]line ИНН: 02508201610067 [12:25:51]line Контрольно-Кассовый Чек [12:25:51]line ПРОДАЖА [12:25:51]line ТРК (МРК, ГНК) : 31 [12:25:51]line Товар: 2710194210 [12:25:51]line ДТ-К-5 [12:25:51]line 120.490 * 74.70 [12:25:51]line = 9000.60 [12:25:51]line НДС 12% НСП 1% [12:25:51]line > о реализуемом товаре [12:25:51]line ИТОГО: 9000.60 [12:25:51]line НСП 1% : 79.65 [12:25:51]line НДС 12% : 955.82 [12:25:51]line Наличными: 0.00 [12:25:51]line Безнал.: 9000.60 [12:25:51]line Место: АЗС № 91 "Партнер Нефть" [12:25:51]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:25:51]line СНО: Общий режим [12:25:51]line Чек 58 14.05.2024 12:25 [12:25:51]line Смена: 355 ФФД: 1.0 [12:25:51]line ЗНМ: 0300000119 [12:25:51]line РНМ: 0000000000091845 [12:25:51]line Версия ККМ: 001 [12:25:51]line Платежная система: Бакай Банк [12:25:51]line ФМ: 0000000000871829 [12:25:51]line ФД: 67051 [12:25:51]line ФПД: 174021925948137 [12:25:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T122554&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67051&fm=174021925948137&tin=02508201610067®Number=0000000000091845&sum=900060 [12:25:51]OFD Sender: Processing packet 67051 [packets to send 35, broken 34] [12:25:51]ProducePacketName [12:25:51]name=ofd_packets/00067051 [12:25:51]OFD Sender: To server: pG, [12:25:51]CommunicateWithHost lk.salyk.kg:30040 [12:25:51]ConnectInit lk.salyk.kg [12:25:51]written 0, free lines is 4095 [12:25:52]Connected sock=10 [12:25: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 2B EA 04 01 60 BB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 3A 00 00 00 F4 03 04 00 52 58 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EB 05 01 00 35 04 06 00 9E 45 A3 14 4A E9 93 56 B1 60 46 B5 94 A5 [12:25: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 C2 22 47 00 63 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 EB 05 01 00 F4 03 04 00 32 00 43 66 B6 04 01 00 00 42 2C 3D D3 A4 AC 96 EB [12:25:52]CommunicateWithHost err = 0 [12:25:52]CheckOFDResponse [12:25:52]1017 (14) - 77093643461234 [12:25:52]1041 (16) - 0000000000871829 [12:25:52]1040 (4) - 67051 [12:25:52]1012 (4) - 14.05.2024 06:09 [12:25:52]1206 (1) - 0 [12:25:52]OFD Sender: Remove packet 67051 [12:25:52]ProducePacketName [12:25:52]name=ofd_packets/00067051 [12:25:52]NVStorageDeleteData [12:25:52]Write to MH i2c: 01 00 00 60 25 85 [12:25:52]Write i2c OK [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: 01 [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: 01 07 00 [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: 01 07 00 60 25 00 00 00 00 00 D9 0C 71 [12:25:52]RasterBufferAndPrint [12:25:52]line [12:25:52]line [12:25:52]line [12:25:52]line [12:25:52]line [12:25:52]written 0, free lines is 3297 [12:25:52]MH_Cut [12:25:52]Write to MH i2c: D1 01 00 67 25 01 5E [12:25:52]Write i2c OK [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: D1 [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: D1 01 00 [12:25:52]MH_I2C_Read... [12:25:52]Read from MH i2c: D1 01 00 67 25 00 5D [12:25:52]Write to MH i2c: 01 00 00 68 25 8D [12:25:52]Write i2c OK [12:25:52]MH_I2C_Read... [12:25:52]OFD Sender: No OFD packet to send [12:25:53]*** Cut start [12:25:53]*** Purtial cut [12:25:53]*** Stage 1: CUTSNS_PIN = 1 [12:25:53]Read from MH i2c: 01 [12:25:53]MH_I2C_Read... [12:25:53]*** Stop cut motor [12:25:53]*** Cut end [12:25:53]Read from MH i2c: 01 07 00 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: 01 07 00 68 25 00 00 00 00 00 FF 0F A2 [12:25:53]process_action close_receipt done [12:25:53]requested_data is exist [12:25:53]produce_requested_data [12:25:53]requested_item fm.sn is exist - process it [12:25:53]wFMCommunicate request_size=4 [12:25:53]MH_SAM_APDU [12:25:53]CAPDU: 80 11 00 00 [12:25:53]Write to MH i2c: E2 08 00 69 25 80 11 00 00 00 00 00 00 08 [12:25:53]Write i2c OK [12:25:53]MH_I2C_Read... [12:25:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:53]Read from MH i2c: E2 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: E2 17 00 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: E2 17 00 69 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5E [12:25:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:25:53]wFMCommunicate OK [12:25:53]requested_item fd.num is exist - process it [12:25:53]SAM_PROTO_GetFieldsCounters [12:25:53]wFMCommunicate request_size=4 [12:25:53]MH_SAM_APDU [12:25:53]CAPDU: 80 13 00 00 [12:25:53]Write to MH i2c: E2 08 00 6A 25 80 13 00 00 00 00 00 00 0B [12:25:53]Write i2c OK [12:25:53]MH_I2C_Read... [12:25:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:53]Read from MH i2c: E2 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: E2 62 00 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: E2 62 00 6A 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 EB 05 01 00 0E 04 04 00 63 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 34 [12:25: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 EB 05 01 00 0E 04 04 00 63 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:25:53]wFMCommunicate OK [12:25:53]SAM_PROTO_GetFieldsCounters done [12:25:53]requested_item shift.num is exist - process it [12:25:53]requested_item shift.opened is exist - process it [12:25:53]req_shift_opened [12:25:53]FM_GetShiftState [12:25:53]SAM_PROTO_GetShiftState [12:25:53]wFMCommunicate request_size=4 [12:25:53]MH_SAM_APDU [12:25:53]CAPDU: 80 13 01 00 [12:25:53]Write to MH i2c: E2 08 00 6B 25 80 13 01 00 00 00 00 00 0D [12:25:53]Write i2c OK [12:25:53]MH_I2C_Read... [12:25:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:53]Read from MH i2c: E2 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: E2 0E 00 [12:25:53]MH_I2C_Read... [12:25:53]Read from MH i2c: E2 0E 00 6B 25 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D5 [12:25:53]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:25:53]wFMCommunicate OK [12:25:53]SAM_PROTO_GetShiftState done [12:25:53]FM_GetShiftState done [12:25:53]req_shift_opened done [12:25:53]requested_item shift.open_date is exist - process it [12:25:53]req_shift_open_date [12:25:53]req_shift_open_date done [12:25:53]produce_requested_data done [12:25:53]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67051,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:25:53]process_action_free close_receipt [12:25:53]json_value_free [12:25:53]json_value_free done [12:25:53]process_json_proto returns [12:25:53]Send response to host [12:25:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67051,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:25:53]free response buf [12:25:53]execute_script done [12:25:53]execute_script returns [12:25:53]free content buf [12:25:53]Sock 9.Close socket [12:25:53]Sock 9.Thread stoped [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]accept exits with 8 [12:26:17]New connection [12:26:17]New thread 3066760548 created [12:26:17]Thread 3066617188 joined [12:26:17]Waiting for new connection... [12:26:17] Sock 8.Parse request [12:26:17]Sock 8.Check first char [12:26:17]Sock 8.First char is OK [12:26:17]request: POST /json_proto HTTP/1.0 [12:26:17]Method: POST [12:26:17]URL: /json_proto [12:26:17]Method is POST - this is cgi request [12:26:17]url: /json_proto [12:26:17]query_string will be loaded in cgi processing [12:26:17]execute_cgi json_proto POST (null) [12:26:17]execute_cgi path=json_proto method=POST [12:26:17]POST find Content-Length [12:26:17]Host: 172.17.41.195:8080 [12:26:17]Content-Length: 1179 [12:26:17]Content-Type: application/json [12:26:17] [12:26:17]POST finish read [12:26:17]Found Content-Length = 1179 [12:26: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)506922\u000A14.05.2024 12:09\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.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:26:17]execute_script... [12:26: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)506922\u000A14.05.2024 12:09\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.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:26:17]POST & json_proto [12:26:17]process_json_proto [12:26:17]json parsed OK: [12:26:17]protocol is kg_v1.0 [12:26:17]action value=print_text [12:26:17]process_action print_text [12:26:17]cmd_print_text [12:26:17]ExternCall_PrintAddStr [12:26:17]wPrintStart [12:26:17]Write to MH i2c: 01 00 00 6C 25 91 [12:26:17]Write i2c OK [12:26:17]MH_I2C_Read... [12:26:17]Read from MH i2c: 01 [12:26:17]MH_I2C_Read... [12:26:17]Read from MH i2c: 01 07 00 [12:26:17]MH_I2C_Read... [12:26:17]Read from MH i2c: 01 07 00 6C 25 00 00 00 00 00 FF 0F A6 [12:26:17]RasterBufferAndPrint [12:26:17]line *****ТОВАРНЫЙ ЧЕК***** [12:26:17]line АЗС-91 [12:26:17]line Партнер нефть [12:26:17]line 02508201610067 [12:26:17]line Кассир : Адишов И. [12:26:17]line Счет N : (1)506922 [12:26:17]line 14.05.2024 12:09 [12:26:17]line ПРОДАЖА [12:26:17]line ТРК (МРК, ГНК): 11 [12:26:17]line Вид ГСМ : 2710194210 [12:26:17]line ДТ-К-5 [12:26:17]line 20.090 x 74.70 [12:26:17]line ИТОГ: 1500.72 [12:26:17]line Тип оплаты: Талоны: Топливная Карта [12:26:17]line 02750 [12:26:17]line ______________________ [12:26:17]line (подпись) [12:26:17]written 0, free lines is 4095 [12:26:17]Write to MH i2c: 01 00 00 80 25 A5 [12:26:17]Write i2c OK [12:26:17]MH_I2C_Read... [12:26:17]Read from MH i2c: 01 [12:26:17]MH_I2C_Read... [12:26:17]Read from MH i2c: 01 07 00 [12:26:17]MH_I2C_Read... [12:26:17]Read from MH i2c: 01 07 00 80 25 00 00 00 00 00 0D 0E C7 [12:26:17]RasterBufferAndPrint [12:26:17]line [12:26:17]line [12:26:17]line [12:26:17]line [12:26:17]line [12:26:17]written 0, free lines is 3598 [12:26:17]OFD Sender: No OFD packet to send [12:26:17]MH_Cut [12:26:17]Write to MH i2c: D1 01 00 87 25 01 7E [12:26:17]Write i2c OK [12:26:17]MH_I2C_Read... [12:26:17]Read from MH i2c: D1 [12:26:17]MH_I2C_Read... [12:26:17]Read from MH i2c: D1 01 00 [12:26:17]MH_I2C_Read... [12:26:17]Read from MH i2c: D1 01 00 87 25 00 7D [12:26:17]Write to MH i2c: 01 00 00 88 25 AD [12:26:17]Write i2c OK [12:26:17]MH_I2C_Read... [12:26:18]*** Cut start [12:26:18]*** Purtial cut [12:26:18]*** CUTSNS_PIN = 0 [12:26:18]*** Stage 1: CUTSNS_PIN = 1 [12:26:20]Read from MH i2c: 01 [12:26:20]MH_I2C_Read... [12:26:20]*** Stop cut motor [12:26:20]*** Cut end [12:26:20]Read from MH i2c: 01 07 00 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: 01 07 00 88 25 00 00 00 00 00 FF 0F C2 [12:26:20]process_action print_text done [12:26:20]requested_data is exist [12:26:20]produce_requested_data [12:26:20]requested_item fm.sn is exist - process it [12:26:20]wFMCommunicate request_size=4 [12:26:20]MH_SAM_APDU [12:26:20]CAPDU: 80 11 00 00 [12:26:20]Write to MH i2c: E2 08 00 89 25 80 11 00 00 00 00 00 00 28 [12:26:20]Write i2c OK [12:26:20]MH_I2C_Read... [12:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:20]Read from MH i2c: E2 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: E2 17 00 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: E2 17 00 89 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7E [12:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:26:20]wFMCommunicate OK [12:26:20]requested_item fd.num is exist - process it [12:26:20]SAM_PROTO_GetFieldsCounters [12:26:20]wFMCommunicate request_size=4 [12:26:20]MH_SAM_APDU [12:26:20]CAPDU: 80 13 00 00 [12:26:20]Write to MH i2c: E2 08 00 8A 25 80 13 00 00 00 00 00 00 2B [12:26:20]Write i2c OK [12:26:20]MH_I2C_Read... [12:26:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:20]Read from MH i2c: E2 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: E2 62 00 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: E2 62 00 8A 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 EB 05 01 00 0E 04 04 00 63 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 54 [12:26: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 EB 05 01 00 0E 04 04 00 63 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:26:20]wFMCommunicate OK [12:26:20]SAM_PROTO_GetFieldsCounters done [12:26:20]requested_item shift.num is exist - process it [12:26:20]requested_item shift.opened is exist - process it [12:26:20]req_shift_opened [12:26:20]FM_GetShiftState [12:26:20]SAM_PROTO_GetShiftState [12:26:20]wFMCommunicate request_size=4 [12:26:20]MH_SAM_APDU [12:26:20]CAPDU: 80 13 01 00 [12:26:20]Write to MH i2c: E2 08 00 8B 25 80 13 01 00 00 00 00 00 2D [12:26:20]Write i2c OK [12:26:20]MH_I2C_Read... [12:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:20]Read from MH i2c: E2 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: E2 0E 00 [12:26:20]MH_I2C_Read... [12:26:20]Read from MH i2c: E2 0E 00 8B 25 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F5 [12:26:20]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:26:20]wFMCommunicate OK [12:26:20]SAM_PROTO_GetShiftState done [12:26:20]FM_GetShiftState done [12:26:20]req_shift_opened done [12:26:20]requested_item shift.open_date is exist - process it [12:26:20]req_shift_open_date [12:26:20]req_shift_open_date done [12:26:20]produce_requested_data done [12:26:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67051,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:26:20]process_action_free print_text [12:26:20]json_value_free [12:26:20]json_value_free done [12:26:20]process_json_proto returns [12:26:20]Send response to host [12:26:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67051,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:26:20]free response buf [12:26:20]execute_script done [12:26:20]execute_script returns [12:26:20]free content buf [12:26:20]Sock 8.Close socket [12:26:20]Sock 8.Thread stoped [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:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:28:02]OFD Sender: No OFD packet to send [12:28:07]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [12:30:28]OFD Sender: No OFD packet to send [12:30:33]OFD Sender: No OFD packet to send [12:30:38]OFD Sender: No OFD packet to send [12:30:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:53]OFD Sender: No OFD packet to send [12:30:58]OFD Sender: No OFD packet to send [12:31:03]OFD Sender: No OFD packet to send [12:31:08]OFD Sender: No OFD packet to send [12:31:13]OFD Sender: No OFD packet to send [12:31:18]OFD Sender: No OFD packet to send [12:31:23]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:09]accept exits with 9 [12:32:09]New connection [12:32:09]New thread 3066617188 created [12:32:09]Thread 3066760548 joined [12:32:09]Waiting for new connection... [12:32:09] Sock 9.Parse request [12:32:09]Sock 9.Check first char [12:32:09]Sock 9.First char is OK [12:32:09]request: POST /json_proto HTTP/1.0 [12:32:09]Method: POST [12:32:09]URL: /json_proto [12:32:09]Method is POST - this is cgi request [12:32:09]url: /json_proto [12:32:09]query_string will be loaded in cgi processing [12:32:09]execute_cgi json_proto POST (null) [12:32:09]execute_cgi path=json_proto method=POST [12:32:09]POST find Content-Length [12:32:09]Host: 172.17.41.195:8080 [12:32:09]Content-Length: 677 [12:32:09]Content-Type: application/json [12:32:09] [12:32:09]POST finish read [12:32:09]Found Content-Length = 677 [12:32:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506923", "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" ] } } [12:32:09]execute_script... [12:32: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)506923", "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" ] } } [12:32:09]POST & json_proto [12:32:09]process_json_proto [12:32:09]json parsed OK: [12:32:09]protocol is kg_v1.0 [12:32:09]action value=close_receipt [12:32:09]process_action close_receipt [12:32:09]cmd_close_receipt [12:32:09]MH_GetDate [12:32:09]Write to MH i2c: F0 00 00 8C 25 A0 [12:32:09]Write i2c OK [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: F0 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: F0 09 00 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: F0 09 00 8C 25 00 CD 59 43 66 FC 21 6F 64 68 [12:32:09]GetLastDocTimeStamp 1715689554 [12:32:09]current date 1715689933 [12:32:09]FM_GetShiftState [12:32:09]SAM_PROTO_GetShiftState [12:32:09]wFMCommunicate request_size=4 [12:32:09]MH_SAM_APDU [12:32:09]CAPDU: 80 13 01 00 [12:32:09]Write to MH i2c: E2 08 00 8D 25 80 13 01 00 00 00 00 00 2F [12:32:09]Write i2c OK [12:32:09]MH_I2C_Read... [12:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:09]Read from MH i2c: E2 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: E2 0E 00 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: E2 0E 00 8D 25 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F7 [12:32:09]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:32:09]wFMCommunicate OK [12:32:09]SAM_PROTO_GetShiftState done [12:32:09]FM_GetShiftState done [12:32:09]opened in 1715646054 [12:32:09]opened+sec_in_day 1715732454 [12:32:09]quantity*price = 60053 [12:32:09]sum+1 = 60054 [12:32:09]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 СНО: Общий режим Чек 59 14.05.2024 12:32 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67052 ФПД: 6761676850374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T123213&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67052&fm=6761676850374&tin=02508201610067®Number=0000000000091845&sum=60000 [12:32:10]StoreToDocumentArchive [12:32:10]shift 355 fd 67052 [12:32:10]save to /storage/0355/doc_00067052 [12:32:10]save last doc name /storage/0355/doc_00067052 to /storage/kkm_last_doc_name [12:32:10]save OK [12:32:10]Clear old archive folders... [12:32:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:10]tlvbuf is 003DE2A0 [12:32:10]SAM_PROTO_ClearQueue [12:32:10]wFMCommunicate request_size=4 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 09 00 00 [12:32:10]Write to MH i2c: E2 08 00 9A 25 80 09 00 00 00 00 00 00 31 [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:10]Read from MH i2c: E2 03 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 9A 25 00 90 00 33 [12:32:10]RAPDU: 90 00 [12:32:10]wFMCommunicate OK [12:32:10]SAM_PROTO_ClearQueue done [12:32:10]KKMCreateOFDPacket [12:32:10]OFDProtocolAddRootSTLVToBuf [12:32:10]FM_MakeSignedData [12:32:10]FM_MakeSignedData [12:32:10]SAM_PROTO_SignData [12:32:10]wFMCommunicate request_size=4 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 0D 01 02 [12:32:10]Write to MH i2c: E2 08 00 9B 25 80 0D 01 02 00 00 00 00 39 [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 03 00 9B 25 00 90 00 34 [12:32:10]RAPDU: 90 00 [12:32:10]wFMCommunicate OK [12:32:10]wFMCommunicate request_size=255 [12:32:10]MH_SAM_APDU [12:32: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 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 3B 00 00 00 F4 03 04 00 CD 59 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EC 05 01 00 35 04 06 00 06 [12:32:10]Write to MH i2c: E2 02 01 9C 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3B 00 00 00 F4 03 04 00 CD 59 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EC 05 01 00 35 04 06 00 06 00 00 4A [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:11]Read from MH i2c: E2 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 03 00 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 03 00 9C 25 00 90 00 35 [12:32:11]RAPDU: 90 00 [12:32:11]wFMCommunicate OK [12:32:11]wFMCommunicate request_size=10 [12:32:11]MH_SAM_APDU [12:32:11]CAPDU: 80 0D 02 02 05 26 53 58 C4 C6 [12:32:11]Write to MH i2c: E2 0D 00 9D 25 80 0D 02 02 05 00 26 53 58 C4 C6 00 00 A1 [12:32:11]Write i2c OK [12:32:11]MH_I2C_Read... [12:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:11]Read from MH i2c: E2 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 03 00 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 03 00 9D 25 00 90 00 36 [12:32:11]RAPDU: 90 00 [12:32:11]wFMCommunicate OK [12:32:11]wFMCommunicate request_size=4 [12:32:11]MH_SAM_APDU [12:32:11]CAPDU: 80 0D 03 02 [12:32:11]Write to MH i2c: E2 08 00 9E 25 80 0D 03 02 00 00 00 00 3E [12:32:11]Write i2c OK [12:32:11]MH_I2C_Read... [12:32:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:11]Read from MH i2c: E2 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 0B 00 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 0B 00 9E 25 00 05 73 A9 54 1F B1 76 F5 90 00 EF [12:32:11]RAPDU: 05 73 A9 54 1F B1 76 F5 90 00 [12:32:11]wFMCommunicate OK [12:32:11]SAM_PROTO_SignData done [12:32:11]FM_MakeSignedData done [12:32:11]CreateOFDProtocolMessage [12:32:11]wFMCommunicate request_size=4 [12:32:11]MH_SAM_APDU [12:32:11]CAPDU: 80 11 00 00 [12:32:11]Write to MH i2c: E2 08 00 9F 25 80 11 00 00 00 00 00 00 3E [12:32:11]Write i2c OK [12:32:11]MH_I2C_Read... [12:32:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:11]Read from MH i2c: E2 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 17 00 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: E2 17 00 9F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 94 [12:32:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:32:11]wFMCommunicate OK [12:32:11]CreateOFDProtocolMessage done [12:32:11]OFDSenderStorePacket 67052 [12:32:11]StoreOFDPacket docnum=67052 [12:32:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 73 69 07 01 44 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3B 00 00 00 F4 03 04 00 CD 59 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EC 05 01 00 35 04 06 00 06 26 53 58 C4 C6 05 73 A9 54 1F B1 76 F5 [12:32:11]CheckFolder [12:32:11]dirname=/storage/ofd_packets [12:32:11]CheckFolder done [12:32:11]ProducePacketName [12:32:11]name=ofd_packets/00067052 [12:32:11]NVStorageSaveData ofd_packets/00067052 [12:32:11]File name is /storage/ofd_packets/00067052 [12:32:11]Write 301 bytes [12:32:11]NVStorageSaveData done [12:32:11]OFDSenderStorePacket done [12:32:11]KKMCreateOFDPacket done [12:32:11]NVStorageSaveData kkm_last_timestamp [12:32:11]File name is /storage/kkm_last_timestamp [12:32:11]Write 4 bytes [12:32:11]NVStorageSaveData done [12:32:11]ExternCall_PrintAddStr [12:32:11]wPrintStart [12:32:11]Write to MH i2c: 01 00 00 A0 25 C5 [12:32:11]Write i2c OK [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: 01 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: 01 07 00 [12:32:11]MH_I2C_Read... [12:32:11]Read from MH i2c: 01 07 00 A0 25 00 00 00 00 00 FF 0F DA [12:32:11]RasterBufferAndPrint [12:32:11]line Счет N : (1)506923 [12:32:11]line ИНН: 02508201610067 [12:32:11]line Контрольно-Кассовый Чек [12:32:11]line ПРОДАЖА [12:32:11]line ТРК (МРК, ГНК) : 33 [12:32:11]line Товар: 2710124130 [12:32:11]line Аи-92-К-5 [12:32:11]line 8.990 * 66.80 [12:32:11]line = 600.53 [12:32:11]line НДС 12% НСП 1% [12:32:11]line > о реализуемом товаре [12:32:11]line ОКРУГЛЕНИЕ: -0.53 [12:32:11]line ИТОГО: 600.00 [12:32:11]line Внесено: 600.00 [12:32:11]line СДАЧА: 0.00 [12:32:11]line НСП 1% : 5.31 [12:32:11]line НДС 12% : 63.77 [12:32:11]line Наличными: 600.00 [12:32:11]line Безнал.: 0.00 [12:32:11]line Место: АЗС № 91 "Партнер Нефть" [12:32:11]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:32:11]line СНО: Общий режим [12:32:11]line Чек 59 14.05.2024 12:32 [12:32:11]line Смена: 355 ФФД: 1.0 [12:32:11]line ЗНМ: 0300000119 [12:32:11]line РНМ: 0000000000091845 [12:32:11]line Версия ККМ: 001 [12:32:11]line ФМ: 0000000000871829 [12:32:11]line ФД: 67052 [12:32:11]line ФПД: 6761676850374 [12:32:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T123213&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67052&fm=6761676850374&tin=02508201610067®Number=0000000000091845&sum=60000 [12:32:11]written 0, free lines is 4095 [12:32:11]OFD Sender: Processing packet 67052 [packets to send 35, broken 34] [12:32:11]ProducePacketName [12:32:11]name=ofd_packets/00067052 [12:32:11]OFD Sender: To server: pG, [12:32:11]CommunicateWithHost lk.salyk.kg:30040 [12:32:11]ConnectInit lk.salyk.kg [12:32:11]Connected sock=10 [12:32: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 73 69 07 01 44 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3B 00 00 00 F4 03 04 00 CD 59 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EC 05 01 00 35 04 06 00 06 26 53 58 C4 C6 05 73 A9 54 1F B1 76 F5 [12:32: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 D2 57 47 00 11 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 EC 05 01 00 F4 03 04 00 AD 01 43 66 B6 04 01 00 00 F6 A3 06 30 8F 64 79 9B [12:32:11]CommunicateWithHost err = 0 [12:32:11]CheckOFDResponse [12:32:11]1017 (14) - 77093643461234 [12:32:11]1041 (16) - 0000000000871829 [12:32:11]1040 (4) - 67052 [12:32:11]1012 (4) - 14.05.2024 06:16 [12:32:11]1206 (1) - 0 [12:32:11]OFD Sender: Remove packet 67052 [12:32:11]ProducePacketName [12:32:11]name=ofd_packets/00067052 [12:32:11]NVStorageDeleteData [12:32:12]Write to MH i2c: 01 00 00 CA 25 EF [12:32:12]Write i2c OK [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: 01 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: 01 07 00 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: 01 07 00 CA 25 00 00 00 00 00 BD 0C BF [12:32:12]RasterBufferAndPrint [12:32:12]line [12:32:12]line [12:32:12]line [12:32:12]line [12:32:12]line [12:32:12]written 0, free lines is 3268 [12:32:12]MH_Cut [12:32:12]Write to MH i2c: D1 01 00 D1 25 01 C8 [12:32:12]Write i2c OK [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: D1 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: D1 01 00 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: D1 01 00 D1 25 00 C7 [12:32:12]Write to MH i2c: 01 00 00 D2 25 F7 [12:32:12]Write i2c OK [12:32:12]MH_I2C_Read... [12:32:12]OFD Sender: No OFD packet to send [12:32:12]*** Cut start [12:32:12]*** Purtial cut [12:32:12]*** Stage 1: CUTSNS_PIN = 1 [12:32:13]Read from MH i2c: 01 [12:32:13]MH_I2C_Read... [12:32:13]*** Stop cut motor [12:32:13]*** Cut end [12:32:13]Read from MH i2c: 01 07 00 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: 01 07 00 D2 25 00 00 00 00 00 FF 0F 0C [12:32:13]process_action close_receipt done [12:32:13]requested_data is exist [12:32:13]produce_requested_data [12:32:13]requested_item fm.sn is exist - process it [12:32:13]wFMCommunicate request_size=4 [12:32:13]MH_SAM_APDU [12:32:13]CAPDU: 80 11 00 00 [12:32:13]Write to MH i2c: E2 08 00 D3 25 80 11 00 00 00 00 00 00 72 [12:32:13]Write i2c OK [12:32:13]MH_I2C_Read... [12:32:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:13]Read from MH i2c: E2 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 17 00 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 17 00 D3 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C8 [12:32:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:32:13]wFMCommunicate OK [12:32:13]requested_item fd.num is exist - process it [12:32:13]SAM_PROTO_GetFieldsCounters [12:32:13]wFMCommunicate request_size=4 [12:32:13]MH_SAM_APDU [12:32:13]CAPDU: 80 13 00 00 [12:32:13]Write to MH i2c: E2 08 00 D4 25 80 13 00 00 00 00 00 00 75 [12:32:13]Write i2c OK [12:32:13]MH_I2C_Read... [12:32:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:13]Read from MH i2c: E2 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 62 00 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 62 00 D4 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EC 05 01 00 0E 04 04 00 63 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 A2 [12:32:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EC 05 01 00 0E 04 04 00 63 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:32:13]wFMCommunicate OK [12:32:13]SAM_PROTO_GetFieldsCounters done [12:32:13]requested_item shift.num is exist - process it [12:32:13]requested_item shift.opened is exist - process it [12:32:13]req_shift_opened [12:32:13]FM_GetShiftState [12:32:13]SAM_PROTO_GetShiftState [12:32:13]wFMCommunicate request_size=4 [12:32:13]MH_SAM_APDU [12:32:13]CAPDU: 80 13 01 00 [12:32:13]Write to MH i2c: E2 08 00 D5 25 80 13 01 00 00 00 00 00 77 [12:32:13]Write i2c OK [12:32:13]MH_I2C_Read... [12:32:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:13]Read from MH i2c: E2 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 0E 00 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 0E 00 D5 25 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 3F [12:32:13]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:32:13]wFMCommunicate OK [12:32:13]SAM_PROTO_GetShiftState done [12:32:13]FM_GetShiftState done [12:32:13]req_shift_opened done [12:32:13]requested_item shift.open_date is exist - process it [12:32:13]req_shift_open_date [12:32:13]req_shift_open_date done [12:32:13]produce_requested_data done [12:32:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67052,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:32:13]process_action_free close_receipt [12:32:13]json_value_free [12:32:13]json_value_free done [12:32:13]process_json_proto returns [12:32:13]Send response to host [12:32:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67052,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:32:13]free response buf [12:32:13]execute_script done [12:32:13]execute_script returns [12:32:13]free content buf [12:32:13]Sock 9.Close socket [12:32:13]Sock 9.Thread stoped [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:19]accept exits with 8 [12:36:19]New connection [12:36:19]New thread 3066760548 created [12:36:19]Thread 3066617188 joined [12:36:19]Waiting for new connection... [12:36:19] Sock 8.Parse request [12:36:19]Sock 8.Check first char [12:36:19]Sock 8.First char is OK [12:36:19]request: POST /json_proto HTTP/1.0 [12:36:19]Method: POST [12:36:19]URL: /json_proto [12:36:19]Method is POST - this is cgi request [12:36:19]url: /json_proto [12:36:19]query_string will be loaded in cgi processing [12:36:19]execute_cgi json_proto POST (null) [12:36:19]execute_cgi path=json_proto method=POST [12:36:19]POST find Content-Length [12:36:19]Host: 172.17.41.195:8080 [12:36:19]Content-Length: 677 [12:36:19]Content-Type: application/json [12:36:19] [12:36:19]POST finish read [12:36:19]Found Content-Length = 677 [12:36:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506924", "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:36:19]execute_script... [12:36: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)506924", "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:36:19]POST & json_proto [12:36:19]process_json_proto [12:36:19]json parsed OK: [12:36:19]protocol is kg_v1.0 [12:36:19]action value=close_receipt [12:36:19]process_action close_receipt [12:36:19]cmd_close_receipt [12:36:19]MH_GetDate [12:36:19]Write to MH i2c: F0 00 00 D6 25 EA [12:36:19]Write i2c OK [12:36:19]MH_I2C_Read... [12:36:19]Read from MH i2c: F0 [12:36:19]MH_I2C_Read... [12:36:19]Read from MH i2c: F0 09 00 [12:36:19]MH_I2C_Read... [12:36:19]Read from MH i2c: F0 09 00 D6 25 00 C8 5A 43 66 FC 21 6F 64 AE [12:36:19]GetLastDocTimeStamp 1715689933 [12:36:19]current date 1715690184 [12:36:19]FM_GetShiftState [12:36:19]SAM_PROTO_GetShiftState [12:36:19]wFMCommunicate request_size=4 [12:36:19]MH_SAM_APDU [12:36:19]CAPDU: 80 13 01 00 [12:36:19]Write to MH i2c: E2 08 00 D7 25 80 13 01 00 00 00 00 00 79 [12:36:19]Write i2c OK [12:36:19]MH_I2C_Read... [12:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:19]Read from MH i2c: E2 [12:36:19]MH_I2C_Read... [12:36:19]Read from MH i2c: E2 0E 00 [12:36:19]MH_I2C_Read... [12:36:19]Read from MH i2c: E2 0E 00 D7 25 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 41 [12:36:19]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:36:19]wFMCommunicate OK [12:36:19]SAM_PROTO_GetShiftState done [12:36:19]FM_GetShiftState done [12:36:19]opened in 1715646054 [12:36:19]opened+sec_in_day 1715732454 [12:36:19]quantity*price = 30060 [12:36:19]sum+1 = 30061 [12:36:19]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 СНО: Общий режим Чек 60 14.05.2024 12:36 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67053 ФПД: 112785219576686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T123624&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67053&fm=112785219576686&tin=02508201610067®Number=0000000000091845&sum=30000 [12:36:20]StoreToDocumentArchive [12:36:20]shift 355 fd 67053 [12:36:20]save to /storage/0355/doc_00067053 [12:36:20]save last doc name /storage/0355/doc_00067053 to /storage/kkm_last_doc_name [12:36:20]save OK [12:36:20]Clear old archive folders... [12:36:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:20]tlvbuf is 00349E70 [12:36:20]SAM_PROTO_ClearQueue [12:36:20]wFMCommunicate request_size=4 [12:36:20]MH_SAM_APDU [12:36:20]CAPDU: 80 09 00 00 [12:36:20]Write to MH i2c: E2 08 00 E4 25 80 09 00 00 00 00 00 00 7B [12:36:20]Write i2c OK [12:36:20]MH_I2C_Read... [12:36:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:20]Read from MH i2c: E2 [12:36:20]MH_I2C_Read... [12:36:20]Read from MH i2c: E2 03 00 [12:36:20]MH_I2C_Read... [12:36:20]Read from MH i2c: E2 03 00 E4 25 00 90 00 7D [12:36:20]RAPDU: 90 00 [12:36:20]wFMCommunicate OK [12:36:20]SAM_PROTO_ClearQueue done [12:36:20]KKMCreateOFDPacket [12:36:20]OFDProtocolAddRootSTLVToBuf [12:36:20]FM_MakeSignedData [12:36:20]FM_MakeSignedData [12:36:20]SAM_PROTO_SignData [12:36:20]wFMCommunicate request_size=4 [12:36:20]MH_SAM_APDU [12:36:20]CAPDU: 80 0D 01 02 [12:36:20]Write to MH i2c: E2 08 00 E5 25 80 0D 01 02 00 00 00 00 83 [12:36:20]Write i2c OK [12:36:20]MH_I2C_Read... [12:36:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:20]Read from MH i2c: E2 [12:36:20]MH_I2C_Read... [12:36:20]Read from MH i2c: E2 03 00 [12:36:20]MH_I2C_Read... [12:36:20]Read from MH i2c: E2 03 00 E5 25 00 90 00 7E [12:36:20]RAPDU: 90 00 [12:36:20]wFMCommunicate OK [12:36:20]wFMCommunicate request_size=255 [12:36:20]MH_SAM_APDU [12:36: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 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 3C 00 00 00 F4 03 04 00 C8 5A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 ED 05 01 00 35 04 06 00 66 [12:36:20]Write to MH i2c: E2 02 01 E6 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3C 00 00 00 F4 03 04 00 C8 5A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 ED 05 01 00 35 04 06 00 66 00 00 E7 [12:36:20]Write i2c OK [12:36:20]MH_I2C_Read... [12:36:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:21]Read from MH i2c: E2 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: E2 03 00 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: E2 03 00 E6 25 00 90 00 7F [12:36:21]RAPDU: 90 00 [12:36:21]wFMCommunicate OK [12:36:21]wFMCommunicate request_size=10 [12:36:21]MH_SAM_APDU [12:36:21]CAPDU: 80 0D 02 02 05 93 DA F2 E3 6E [12:36:21]Write to MH i2c: E2 0D 00 E7 25 80 0D 02 02 05 00 93 DA F2 E3 6E 00 00 40 [12:36:21]Write i2c OK [12:36:21]MH_I2C_Read... [12:36:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:21]Read from MH i2c: E2 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: E2 03 00 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: E2 03 00 E7 25 00 90 00 80 [12:36:21]RAPDU: 90 00 [12:36:21]wFMCommunicate OK [12:36:21]wFMCommunicate request_size=4 [12:36:21]MH_SAM_APDU [12:36:21]CAPDU: 80 0D 03 02 [12:36:21]Write to MH i2c: E2 08 00 E8 25 80 0D 03 02 00 00 00 00 88 [12:36:21]Write i2c OK [12:36:21]MH_I2C_Read... [12:36:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:21]Read from MH i2c: E2 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: E2 0B 00 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: E2 0B 00 E8 25 00 B6 13 F3 1D 4F 0F 18 1E 90 00 F6 [12:36:21]RAPDU: B6 13 F3 1D 4F 0F 18 1E 90 00 [12:36:21]wFMCommunicate OK [12:36:21]SAM_PROTO_SignData done [12:36:21]FM_MakeSignedData done [12:36:21]CreateOFDProtocolMessage [12:36:21]wFMCommunicate request_size=4 [12:36:21]MH_SAM_APDU [12:36:21]CAPDU: 80 11 00 00 [12:36:21]Write to MH i2c: E2 08 00 E9 25 80 11 00 00 00 00 00 00 88 [12:36:21]Write i2c OK [12:36:21]MH_I2C_Read... [12:36:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:21]Read from MH i2c: E2 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: E2 17 00 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: E2 17 00 E9 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DE [12:36:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:36:21]wFMCommunicate OK [12:36:21]CreateOFDProtocolMessage done [12:36:21]OFDSenderStorePacket 67053 [12:36:21]StoreOFDPacket docnum=67053 [12:36: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 AA C7 07 01 EE 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3C 00 00 00 F4 03 04 00 C8 5A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 ED 05 01 00 35 04 06 00 66 93 DA F2 E3 6E B6 13 F3 1D 4F 0F 18 1E [12:36:21]CheckFolder [12:36:21]dirname=/storage/ofd_packets [12:36:21]CheckFolder done [12:36:21]ProducePacketName [12:36:21]name=ofd_packets/00067053 [12:36:21]NVStorageSaveData ofd_packets/00067053 [12:36:21]File name is /storage/ofd_packets/00067053 [12:36:21]Write 301 bytes [12:36:21]NVStorageSaveData done [12:36:21]OFDSenderStorePacket done [12:36:21]KKMCreateOFDPacket done [12:36:21]NVStorageSaveData kkm_last_timestamp [12:36:21]File name is /storage/kkm_last_timestamp [12:36:21]Write 4 bytes [12:36:21]NVStorageSaveData done [12:36:21]ExternCall_PrintAddStr [12:36:21]wPrintStart [12:36:21]Write to MH i2c: 01 00 00 EA 25 0F [12:36:21]Write i2c OK [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: 01 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: 01 07 00 [12:36:21]MH_I2C_Read... [12:36:21]Read from MH i2c: 01 07 00 EA 25 00 00 00 00 00 FF 0F 24 [12:36:21]RasterBufferAndPrint [12:36:21]line Счет N : (1)506924 [12:36:21]line ИНН: 02508201610067 [12:36:21]line Контрольно-Кассовый Чек [12:36:21]line ПРОДАЖА [12:36:21]line ТРК (МРК, ГНК) : 33 [12:36:21]line Товар: 2710124130 [12:36:21]line Аи-92-К-5 [12:36:21]line 4.500 * 66.80 [12:36:21]line = 300.60 [12:36:21]line НДС 12% НСП 1% [12:36:21]line > о реализуемом товаре [12:36:21]line ОКРУГЛЕНИЕ: -0.60 [12:36:21]line ИТОГО: 300.00 [12:36:21]line Внесено: 300.00 [12:36:21]line СДАЧА: 0.00 [12:36:21]line НСП 1% : 2.66 [12:36:21]line НДС 12% : 31.92 [12:36:21]line Наличными: 300.00 [12:36:21]line Безнал.: 0.00 [12:36:21]line Место: АЗС № 91 "Партнер Нефть" [12:36:21]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:36:21]line СНО: Общий режим [12:36:21]line Чек 60 14.05.2024 12:36 [12:36:21]line Смена: 355 ФФД: 1.0 [12:36:21]line ЗНМ: 0300000119 [12:36:21]line РНМ: 0000000000091845 [12:36:21]line Версия ККМ: 001 [12:36:21]line ФМ: 0000000000871829 [12:36:21]line ФД: 67053 [12:36:21]line ФПД: 112785219576686 [12:36:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T123624&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67053&fm=112785219576686&tin=02508201610067®Number=0000000000091845&sum=30000 [12:36:21]OFD Sender: Processing packet 67053 [packets to send 35, broken 34] [12:36:21]ProducePacketName [12:36:21]name=ofd_packets/00067053 [12:36:21]OFD Sender: To server: pG, [12:36:21]CommunicateWithHost lk.salyk.kg:30040 [12:36:21]ConnectInit lk.salyk.kg [12:36:21]written 0, free lines is 4095 [12:36:22]Write to MH i2c: 01 00 00 14 26 3A [12:36:22]Write i2c OK [12:36:22]MH_I2C_Read... [12:36:22]Read from MH i2c: 01 [12:36:22]MH_I2C_Read... [12:36:22]Read from MH i2c: 01 07 00 [12:36:22]MH_I2C_Read... [12:36:22]Read from MH i2c: 01 07 00 14 26 00 00 00 00 00 C2 0C 0F [12:36:22]RasterBufferAndPrint [12:36:22]line [12:36:22]line [12:36:22]line [12:36:22]line [12:36:22]line [12:36:22]written 0, free lines is 3272 [12:36:22]MH_Cut [12:36:22]Write to MH i2c: D1 01 00 1B 26 01 13 [12:36:22]Write i2c OK [12:36:22]MH_I2C_Read... [12:36:22]Read from MH i2c: D1 [12:36:22]MH_I2C_Read... [12:36:22]Read from MH i2c: D1 01 00 [12:36:22]MH_I2C_Read... [12:36:22]Read from MH i2c: D1 01 00 1B 26 00 12 [12:36:22]Write to MH i2c: 01 00 00 1C 26 42 [12:36:22]Write i2c OK [12:36:22]MH_I2C_Read... [12:36:22]*** Cut start [12:36:22]*** Purtial cut [12:36:22]*** CUTSNS_PIN = 0 [12:36:23]*** Stage 1: CUTSNS_PIN = 1 [12:36:24]Read from MH i2c: 01 [12:36:24]MH_I2C_Read... [12:36:24]*** Stop cut motor [12:36:24]*** Cut end [12:36:24]Read from MH i2c: 01 07 00 [12:36:24]MH_I2C_Read... [12:36:24]Read from MH i2c: 01 07 00 1C 26 00 00 00 00 00 FF 0F 57 [12:36:24]process_action close_receipt done [12:36:24]requested_data is exist [12:36:24]produce_requested_data [12:36:24]requested_item fm.sn is exist - process it [12:36:24]wFMCommunicate request_size=4 [12:36:24]MH_SAM_APDU [12:36:24]CAPDU: 80 11 00 00 [12:36:24]Write to MH i2c: E2 08 00 1D 26 80 11 00 00 00 00 00 00 BD [12:36:24]Write i2c OK [12:36:24]MH_I2C_Read... [12:36:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:25]Read from MH i2c: E2 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 17 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 17 00 1D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 13 [12:36:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:36:25]wFMCommunicate OK [12:36:25]requested_item fd.num is exist - process it [12:36:25]SAM_PROTO_GetFieldsCounters [12:36:25]wFMCommunicate request_size=4 [12:36:25]MH_SAM_APDU [12:36:25]CAPDU: 80 13 00 00 [12:36:25]Write to MH i2c: E2 08 00 1E 26 80 13 00 00 00 00 00 00 C0 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:25]Read from MH i2c: E2 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 62 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 62 00 1E 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 ED 05 01 00 0E 04 04 00 63 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 F1 [12:36: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 ED 05 01 00 0E 04 04 00 63 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:36:25]wFMCommunicate OK [12:36:25]SAM_PROTO_GetFieldsCounters done [12:36:25]requested_item shift.num is exist - process it [12:36:25]requested_item shift.opened is exist - process it [12:36:25]req_shift_opened [12:36:25]FM_GetShiftState [12:36:25]SAM_PROTO_GetShiftState [12:36:25]wFMCommunicate request_size=4 [12:36:25]MH_SAM_APDU [12:36:25]CAPDU: 80 13 01 00 [12:36:25]Write to MH i2c: E2 08 00 1F 26 80 13 01 00 00 00 00 00 C2 [12:36:25]Write i2c OK [12:36:25]MH_I2C_Read... [12:36:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:25]Read from MH i2c: E2 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 0E 00 [12:36:25]MH_I2C_Read... [12:36:25]Read from MH i2c: E2 0E 00 1F 26 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 8A [12:36:25]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:36:25]wFMCommunicate OK [12:36:25]SAM_PROTO_GetShiftState done [12:36:25]FM_GetShiftState done [12:36:25]req_shift_opened done [12:36:25]requested_item shift.open_date is exist - process it [12:36:25]req_shift_open_date [12:36:25]req_shift_open_date done [12:36:25]produce_requested_data done [12:36:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67053,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:36:25]process_action_free close_receipt [12:36:25]json_value_free [12:36:25]json_value_free done [12:36:25]process_json_proto returns [12:36:25]Send response to host [12:36:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67053,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:36:25]free response buf [12:36:25]execute_script done [12:36:25]execute_script returns [12:36:25]free content buf [12:36:25]Sock 8.Close socket [12:36:25]Sock 8.Thread stoped [12:36:26]ConnectInit Can't take IP for lk.salyk.kg [12:36:26]CommunicateWithHost connect error [12:36:26]CommunicateWithHost err = -1 [12:36:26]OFD Sender: Server communicate error [12:36:31]OFD Sender: Processing packet 67053 [packets to send 35, broken 34] [12:36:31]ProducePacketName [12:36:31]name=ofd_packets/00067053 [12:36:31]OFD Sender: To server: pG, [12:36:31]CommunicateWithHost lk.salyk.kg:30040 [12:36:31]ConnectInit lk.salyk.kg [12:36:32]Connected sock=8 [12:36: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 AA C7 07 01 EE 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3C 00 00 00 F4 03 04 00 C8 5A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 ED 05 01 00 35 04 06 00 66 93 DA F2 E3 6E B6 13 F3 1D 4F 0F 18 1E [12:36: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 7F 5A 47 00 2B 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 ED 05 01 00 F4 03 04 00 B2 02 43 66 B6 04 01 00 00 E1 9E 68 57 7F 7D 00 4C [12:36:32]CommunicateWithHost err = 0 [12:36:32]CheckOFDResponse [12:36:32]1017 (14) - 77093643461234 [12:36:32]1041 (16) - 0000000000871829 [12:36:32]1040 (4) - 67053 [12:36:32]1012 (4) - 14.05.2024 06:20 [12:36:32]1206 (1) - 0 [12:36:32]OFD Sender: Remove packet 67053 [12:36:32]ProducePacketName [12:36:32]name=ofd_packets/00067053 [12:36:32]NVStorageDeleteData [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:33]recv_with_timeout no data received [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:49]accept exits with 10 [12:43:49]New connection [12:43:49]New thread 3066617188 created [12:43:49]Thread 3066760548 joined [12:43:49]Waiting for new connection... [12:43:49] Sock 10.Parse request [12:43:49]Sock 10.Check first char [12:43:49]Sock 10.First char is OK [12:43:49]request: POST /json_proto HTTP/1.0 [12:43:49]Method: POST [12:43:49]URL: /json_proto [12:43:49]Method is POST - this is cgi request [12:43:49]url: /json_proto [12:43:49]query_string will be loaded in cgi processing [12:43:49]execute_cgi json_proto POST (null) [12:43:49]execute_cgi path=json_proto method=POST [12:43:49]POST find Content-Length [12:43:49]Host: 172.17.41.195:8080 [12:43:49]Content-Length: 801 [12:43:49]Content-Type: application/json [12:43:49] [12:43:49]POST finish read [12:43:49]Found Content-Length = 801 [12:43:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 120.490, "sum" : 9000.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9000.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:49]execute_script... [12:43: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)506925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 120.490, "sum" : 9000.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9000.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:49]POST & json_proto [12:43:49]process_json_proto [12:43:49]json parsed OK: [12:43:49]protocol is kg_v1.0 [12:43:49]action value=close_receipt [12:43:49]process_action close_receipt [12:43:49]cmd_close_receipt [12:43:49]MH_GetDate [12:43:49]Write to MH i2c: F0 00 00 20 26 35 [12:43:49]Write i2c OK [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: F0 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: F0 09 00 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: F0 09 00 20 26 00 89 5C 43 66 FC 21 6F 64 BC [12:43:49]GetLastDocTimeStamp 1715690184 [12:43:49]current date 1715690633 [12:43:49]FM_GetShiftState [12:43:49]SAM_PROTO_GetShiftState [12:43:49]wFMCommunicate request_size=4 [12:43:49]MH_SAM_APDU [12:43:49]CAPDU: 80 13 01 00 [12:43:49]Write to MH i2c: E2 08 00 21 26 80 13 01 00 00 00 00 00 C4 [12:43:49]Write i2c OK [12:43:49]MH_I2C_Read... [12:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:49]Read from MH i2c: E2 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 0E 00 [12:43:49]MH_I2C_Read... [12:43:49]Read from MH i2c: E2 0E 00 21 26 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 8C [12:43:49]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:43:49]wFMCommunicate OK [12:43:49]SAM_PROTO_GetShiftState done [12:43:49]FM_GetShiftState done [12:43:49]opened in 1715646054 [12:43:49]opened+sec_in_day 1715732454 [12:43:49]quantity*price = 900060 [12:43:49]sum+1 = 900061 [12:43:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.60 НСП 1% : 79.65 НДС 12% : 955.82 Наличными: 0.00 Безнал.: 9000.60 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 61 14.05.2024 12:43 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67054 ФПД: 93290093701044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T124353&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67054&fm=93290093701044&tin=02508201610067®Number=0000000000091845&sum=900060 [12:43:50]StoreToDocumentArchive [12:43:50]shift 355 fd 67054 [12:43:50]save to /storage/0355/doc_00067054 [12:43:50]save last doc name /storage/0355/doc_00067054 to /storage/kkm_last_doc_name [12:43:50]save OK [12:43:50]Clear old archive folders... [12:43:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:43:50]tlvbuf is 003B30E0 [12:43:50]SAM_PROTO_ClearQueue [12:43:50]wFMCommunicate request_size=4 [12:43:50]MH_SAM_APDU [12:43:50]CAPDU: 80 09 00 00 [12:43:50]Write to MH i2c: E2 08 00 2E 26 80 09 00 00 00 00 00 00 C6 [12:43:50]Write i2c OK [12:43:50]MH_I2C_Read... [12:43:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:50]Read from MH i2c: E2 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: E2 03 00 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: E2 03 00 2E 26 00 90 00 C8 [12:43:50]RAPDU: 90 00 [12:43:50]wFMCommunicate OK [12:43:50]SAM_PROTO_ClearQueue done [12:43:50]KKMCreateOFDPacket [12:43:50]OFDProtocolAddRootSTLVToBuf [12:43:50]FM_MakeSignedData [12:43:50]FM_MakeSignedData [12:43:50]SAM_PROTO_SignData [12:43:50]wFMCommunicate request_size=4 [12:43:50]MH_SAM_APDU [12:43:50]CAPDU: 80 0D 01 02 [12:43:50]Write to MH i2c: E2 08 00 2F 26 80 0D 01 02 00 00 00 00 CE [12:43:50]Write i2c OK [12:43:50]MH_I2C_Read... [12:43:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:50]Read from MH i2c: E2 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: E2 03 00 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: E2 03 00 2F 26 00 90 00 C9 [12:43:50]RAPDU: 90 00 [12:43:50]wFMCommunicate OK [12:43:50]wFMCommunicate request_size=255 [12:43:50]MH_SAM_APDU [12:43: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 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 3D 00 00 00 F4 03 04 00 89 5C 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EE 05 01 00 35 04 06 00 54 D8 CA E5 [12:43:50]Write to MH i2c: E2 02 01 30 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3D 00 00 00 F4 03 04 00 89 5C 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EE 05 01 00 35 04 06 00 54 D8 CA E5 00 00 F6 [12:43:50]Write i2c OK [12:43:50]MH_I2C_Read... [12:43:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:50]Read from MH i2c: E2 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: E2 03 00 [12:43:50]MH_I2C_Read... [12:43:50]Read from MH i2c: E2 03 00 30 26 00 90 00 CA [12:43:50]RAPDU: 90 00 [12:43:50]wFMCommunicate OK [12:43:50]wFMCommunicate request_size=7 [12:43:50]MH_SAM_APDU [12:43:50]CAPDU: 80 0D 02 02 02 67 B4 [12:43:50]Write to MH i2c: E2 0A 00 31 26 80 0D 02 02 02 00 67 B4 00 00 F0 [12:43:50]Write i2c OK [12:43:50]MH_I2C_Read... [12:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:51]Read from MH i2c: E2 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 03 00 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 03 00 31 26 00 90 00 CB [12:43:51]RAPDU: 90 00 [12:43:51]wFMCommunicate OK [12:43:51]wFMCommunicate request_size=4 [12:43:51]MH_SAM_APDU [12:43:51]CAPDU: 80 0D 03 02 [12:43:51]Write to MH i2c: E2 08 00 32 26 80 0D 03 02 00 00 00 00 D3 [12:43:51]Write i2c OK [12:43:51]MH_I2C_Read... [12:43:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:51]Read from MH i2c: E2 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 0B 00 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 0B 00 32 26 00 DE 27 AA C4 91 E5 1A A1 90 00 78 [12:43:51]RAPDU: DE 27 AA C4 91 E5 1A A1 90 00 [12:43:51]wFMCommunicate OK [12:43:51]SAM_PROTO_SignData done [12:43:51]FM_MakeSignedData done [12:43:51]CreateOFDProtocolMessage [12:43:51]wFMCommunicate request_size=4 [12:43:51]MH_SAM_APDU [12:43:51]CAPDU: 80 11 00 00 [12:43:51]Write to MH i2c: E2 08 00 33 26 80 11 00 00 00 00 00 00 D3 [12:43:51]Write i2c OK [12:43:51]MH_I2C_Read... [12:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:51]Read from MH i2c: E2 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 17 00 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: E2 17 00 33 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 29 [12:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:43:51]wFMCommunicate OK [12:43:51]CreateOFDProtocolMessage done [12:43:51]OFDSenderStorePacket 67054 [12:43:51]StoreOFDPacket docnum=67054 [12:43:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 00 19 04 01 10 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 3D 00 00 00 F4 03 04 00 89 5C 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EE 05 01 00 35 04 06 00 54 D8 CA E5 67 B4 DE 27 AA C4 91 E5 1A A1 [12:43:51]CheckFolder [12:43:51]dirname=/storage/ofd_packets [12:43:51]CheckFolder done [12:43:51]ProducePacketName [12:43:51]name=ofd_packets/00067054 [12:43:51]NVStorageSaveData ofd_packets/00067054 [12:43:51]File name is /storage/ofd_packets/00067054 [12:43:51]Write 298 bytes [12:43:51]NVStorageSaveData done [12:43:51]OFDSenderStorePacket done [12:43:51]KKMCreateOFDPacket done [12:43:51]NVStorageSaveData kkm_last_timestamp [12:43:51]File name is /storage/kkm_last_timestamp [12:43:51]Write 4 bytes [12:43:51]NVStorageSaveData done [12:43:51]ExternCall_PrintAddStr [12:43:51]wPrintStart [12:43:51]Write to MH i2c: 01 00 00 34 26 5A [12:43:51]Write i2c OK [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: 01 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: 01 07 00 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: 01 07 00 34 26 00 00 00 00 00 FF 0F 6F [12:43:51]RasterBufferAndPrint [12:43:51]line Счет N : (1)506925 [12:43:51]line ИНН: 02508201610067 [12:43:51]line Контрольно-Кассовый Чек [12:43:51]line ПРОДАЖА [12:43:51]line ТРК (МРК, ГНК) : 11 [12:43:51]line Товар: 2710194210 [12:43:51]line ДТ-К-5 [12:43:51]line 120.490 * 74.70 [12:43:51]line = 9000.60 [12:43:51]line НДС 12% НСП 1% [12:43:51]line > о реализуемом товаре [12:43:51]line ИТОГО: 9000.60 [12:43:51]line НСП 1% : 79.65 [12:43:51]line НДС 12% : 955.82 [12:43:51]line Наличными: 0.00 [12:43:51]line Безнал.: 9000.60 [12:43:51]line Место: АЗС № 91 "Партнер Нефть" [12:43:51]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:43:51]line СНО: Общий режим [12:43:51]line Чек 61 14.05.2024 12:43 [12:43:51]line Смена: 355 ФФД: 1.0 [12:43:51]line ЗНМ: 0300000119 [12:43:51]line РНМ: 0000000000091845 [12:43:51]line Версия ККМ: 001 [12:43:51]line Платежная система: O! деньги [12:43:51]line ФМ: 0000000000871829 [12:43:51]line ФД: 67054 [12:43:51]line ФПД: 93290093701044 [12:43:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T124353&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67054&fm=93290093701044&tin=02508201610067®Number=0000000000091845&sum=900060 [12:43:51]OFD Sender: Processing packet 67054 [packets to send 35, broken 34] [12:43:51]ProducePacketName [12:43:51]name=ofd_packets/00067054 [12:43:51]OFD Sender: To server: pG, [12:43:51]CommunicateWithHost lk.salyk.kg:30040 [12:43:51]ConnectInit lk.salyk.kg [12:43:51]written 0, free lines is 4095 [12:43:51]Connected sock=9 [12:43: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 00 19 04 01 10 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 3D 00 00 00 F4 03 04 00 89 5C 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EE 05 01 00 35 04 06 00 54 D8 CA E5 67 B4 DE 27 AA C4 91 E5 1A A1 [12:43: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 0A 2C 47 00 DF AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EE 05 01 00 F4 03 04 00 69 04 43 66 B6 04 01 00 00 DE B0 FF BD DF 79 C6 ED [12:43:51]CommunicateWithHost err = 0 [12:43:51]CheckOFDResponse [12:43:51]1017 (14) - 77093643461234 [12:43:51]1041 (16) - 0000000000871829 [12:43:51]1040 (4) - 67054 [12:43:51]1012 (4) - 14.05.2024 06:27 [12:43:51]1206 (1) - 0 [12:43:51]OFD Sender: Remove packet 67054 [12:43:51]ProducePacketName [12:43:51]name=ofd_packets/00067054 [12:43:51]NVStorageDeleteData [12:43:51]Write to MH i2c: 01 00 00 5D 26 83 [12:43:51]Write i2c OK [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: 01 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: 01 07 00 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: 01 07 00 5D 26 00 00 00 00 00 D3 0C 69 [12:43:51]RasterBufferAndPrint [12:43:51]line [12:43:51]line [12:43:51]line [12:43:51]line [12:43:51]line [12:43:51]written 0, free lines is 3290 [12:43:51]MH_Cut [12:43:51]Write to MH i2c: D1 01 00 64 26 01 5C [12:43:51]Write i2c OK [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: D1 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: D1 01 00 [12:43:51]MH_I2C_Read... [12:43:51]Read from MH i2c: D1 01 00 64 26 00 5B [12:43:51]Write to MH i2c: 01 00 00 65 26 8B [12:43:51]Write i2c OK [12:43:51]MH_I2C_Read... [12:43:52]OFD Sender: No OFD packet to send [12:43:52]*** Cut start [12:43:52]*** Purtial cut [12:43:52]*** Stage 1: CUTSNS_PIN = 1 [12:43:52]Read from MH i2c: 01 [12:43:53]MH_I2C_Read... [12:43:53]*** Stop cut motor [12:43:53]*** Cut end [12:43:53]Read from MH i2c: 01 07 00 [12:43:53]MH_I2C_Read... [12:43:53]Read from MH i2c: 01 07 00 65 26 00 00 00 00 00 FF 0F A0 [12:43:53]process_action close_receipt done [12:43:53]requested_data is exist [12:43:53]produce_requested_data [12:43:53]requested_item fm.sn is exist - process it [12:43:53]wFMCommunicate request_size=4 [12:43:53]MH_SAM_APDU [12:43:53]CAPDU: 80 11 00 00 [12:43:53]Write to MH i2c: E2 08 00 66 26 80 11 00 00 00 00 00 00 06 [12:43:53]Write i2c OK [12:43:53]MH_I2C_Read... [12:43:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:53]Read from MH i2c: E2 [12:43:53]MH_I2C_Read... [12:43:53]Read from MH i2c: E2 17 00 [12:43:53]MH_I2C_Read... [12:43:53]Read from MH i2c: E2 17 00 66 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5C [12:43:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:43:53]wFMCommunicate OK [12:43:53]requested_item fd.num is exist - process it [12:43:53]SAM_PROTO_GetFieldsCounters [12:43:53]wFMCommunicate request_size=4 [12:43:53]MH_SAM_APDU [12:43:53]CAPDU: 80 13 00 00 [12:43:53]Write to MH i2c: E2 08 00 67 26 80 13 00 00 00 00 00 00 09 [12:43:53]Write i2c OK [12:43:53]MH_I2C_Read... [12:43:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:53]Read from MH i2c: E2 [12:43:53]MH_I2C_Read... [12:43:53]Read from MH i2c: E2 62 00 [12:43:53]MH_I2C_Read... [12:43:53]Read from MH i2c: E2 62 00 67 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 EE 05 01 00 0E 04 04 00 63 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 3E [12:43: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 EE 05 01 00 0E 04 04 00 63 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:43:53]wFMCommunicate OK [12:43:53]SAM_PROTO_GetFieldsCounters done [12:43:53]requested_item shift.num is exist - process it [12:43:53]requested_item shift.opened is exist - process it [12:43:53]req_shift_opened [12:43:53]FM_GetShiftState [12:43:53]SAM_PROTO_GetShiftState [12:43:53]wFMCommunicate request_size=4 [12:43:53]MH_SAM_APDU [12:43:53]CAPDU: 80 13 01 00 [12:43:53]Write to MH i2c: E2 08 00 68 26 80 13 01 00 00 00 00 00 0B [12:43:53]Write i2c OK [12:43:53]MH_I2C_Read... [12:43:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:53]Read from MH i2c: E2 [12:43:53]MH_I2C_Read... [12:43:53]Read from MH i2c: E2 0E 00 [12:43:53]MH_I2C_Read... [12:43:53]Read from MH i2c: E2 0E 00 68 26 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D3 [12:43:53]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:43:53]wFMCommunicate OK [12:43:53]SAM_PROTO_GetShiftState done [12:43:53]FM_GetShiftState done [12:43:53]req_shift_opened done [12:43:53]requested_item shift.open_date is exist - process it [12:43:53]req_shift_open_date [12:43:53]req_shift_open_date done [12:43:53]produce_requested_data done [12:43:53]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67054,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:43:53]process_action_free close_receipt [12:43:53]json_value_free [12:43:53]json_value_free done [12:43:53]process_json_proto returns [12:43:53]Send response to host [12:43:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67054,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:43:53]free response buf [12:43:53]execute_script done [12:43:53]execute_script returns [12:43:53]free content buf [12:43:53]Sock 10.Close socket [12:43:53]Sock 10.Thread stoped [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:37]OFD Sender: No OFD packet to send [12:45:42]OFD Sender: No OFD packet to send [12:45:47]OFD Sender: No OFD packet to send [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:07]OFD Sender: No OFD packet to send [12:46:08]accept exits with 8 [12:46:08]New connection [12:46:08]New thread 3066760548 created [12:46:08]Thread 3066617188 joined [12:46:08]Waiting for new connection... [12:46:08] Sock 8.Parse request [12:46:08]Sock 8.Check first char [12:46:08]Sock 8.First char is OK [12:46:08]request: POST /json_proto HTTP/1.0 [12:46:08]Method: POST [12:46:08]URL: /json_proto [12:46:08]Method is POST - this is cgi request [12:46:08]url: /json_proto [12:46:08]query_string will be loaded in cgi processing [12:46:08]execute_cgi json_proto POST (null) [12:46:08]execute_cgi path=json_proto method=POST [12:46:08]POST find Content-Length [12:46:08]Host: 172.17.41.195:8080 [12:46:08]Content-Length: 1182 [12:46:08]Content-Type: application/json [12:46:08] [12:46:08]POST finish read [12:46:08]Found Content-Length = 1182 [12:46: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)506927\u000A14.05.2024 12:28\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" ] } } [12:46:08]execute_script... [12:46: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)506927\u000A14.05.2024 12:28\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" ] } } [12:46:08]POST & json_proto [12:46:08]process_json_proto [12:46:08]json parsed OK: [12:46:08]protocol is kg_v1.0 [12:46:08]action value=print_text [12:46:08]process_action print_text [12:46:08]cmd_print_text [12:46:08]ExternCall_PrintAddStr [12:46:08]wPrintStart [12:46:08]Write to MH i2c: 01 00 00 69 26 8F [12:46:08]Write i2c OK [12:46:08]MH_I2C_Read... [12:46:08]Read from MH i2c: 01 [12:46:08]MH_I2C_Read... [12:46:08]Read from MH i2c: 01 07 00 [12:46:08]MH_I2C_Read... [12:46:08]Read from MH i2c: 01 07 00 69 26 00 00 00 00 00 FF 0F A4 [12:46:08]RasterBufferAndPrint [12:46:08]line *****ТОВАРНЫЙ ЧЕК***** [12:46:08]line АЗС-91 [12:46:08]line Партнер нефть [12:46:08]line 02508201610067 [12:46:08]line Кассир : Адишов И. [12:46:08]line Счет N : (1)506927 [12:46:08]line 14.05.2024 12:28 [12:46:08]line ПРОДАЖА [12:46:08]line ТРК (МРК, ГНК): 33 [12:46:08]line Вид ГСМ : 2710124130 [12:46:08]line Аи-92-К-5 [12:46:08]line 14.980 x 66.80 [12:46:08]line ИТОГ: 1000.66 [12:46:08]line Тип оплаты: Талоны: Топливная Карта [12:46:08]line 02750 [12:46:08]line ______________________ [12:46:08]line (подпись) [12:46:08]written 0, free lines is 4095 [12:46:08]Write to MH i2c: 01 00 00 7D 26 A3 [12:46:08]Write i2c OK [12:46:08]MH_I2C_Read... [12:46:08]Read from MH i2c: 01 [12:46:08]MH_I2C_Read... [12:46:08]Read from MH i2c: 01 07 00 [12:46:08]MH_I2C_Read... [12:46:08]Read from MH i2c: 01 07 00 7D 26 00 00 00 00 00 10 0E C8 [12:46:08]RasterBufferAndPrint [12:46:08]line [12:46:08]line [12:46:08]line [12:46:08]line [12:46:08]line [12:46:08]written 0, free lines is 3601 [12:46:08]MH_Cut [12:46:08]Write to MH i2c: D1 01 00 84 26 01 7C [12:46:08]Write i2c OK [12:46:08]MH_I2C_Read... [12:46:08]Read from MH i2c: D1 [12:46:08]MH_I2C_Read... [12:46:08]Read from MH i2c: D1 01 00 [12:46:08]MH_I2C_Read... [12:46:08]Read from MH i2c: D1 01 00 84 26 00 7B [12:46:08]Write to MH i2c: 01 00 00 85 26 AB [12:46:08]Write i2c OK [12:46:08]MH_I2C_Read... [12:46:08]*** Cut start [12:46:08]*** Purtial cut [12:46:08]*** CUTSNS_PIN = 0 [12:46:09]*** Stage 1: CUTSNS_PIN = 1 [12:46:10]Read from MH i2c: 01 [12:46:10]MH_I2C_Read... [12:46:10]*** Stop cut motor [12:46:10]*** Cut end [12:46:10]Read from MH i2c: 01 07 00 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: 01 07 00 85 26 00 00 00 00 00 FF 0F C0 [12:46:10]process_action print_text done [12:46:10]requested_data is exist [12:46:10]produce_requested_data [12:46:10]requested_item fm.sn is exist - process it [12:46:10]wFMCommunicate request_size=4 [12:46:10]MH_SAM_APDU [12:46:10]CAPDU: 80 11 00 00 [12:46:10]Write to MH i2c: E2 08 00 86 26 80 11 00 00 00 00 00 00 26 [12:46:10]Write i2c OK [12:46:10]MH_I2C_Read... [12:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:10]Read from MH i2c: E2 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 17 00 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 17 00 86 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7C [12:46: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:46:10]wFMCommunicate OK [12:46:10]requested_item fd.num is exist - process it [12:46:10]SAM_PROTO_GetFieldsCounters [12:46:10]wFMCommunicate request_size=4 [12:46:10]MH_SAM_APDU [12:46:10]CAPDU: 80 13 00 00 [12:46:10]Write to MH i2c: E2 08 00 87 26 80 13 00 00 00 00 00 00 29 [12:46:10]Write i2c OK [12:46:10]MH_I2C_Read... [12:46:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:10]Read from MH i2c: E2 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 62 00 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 62 00 87 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 EE 05 01 00 0E 04 04 00 63 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 5E [12:46: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 EE 05 01 00 0E 04 04 00 63 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:46:10]wFMCommunicate OK [12:46:10]SAM_PROTO_GetFieldsCounters done [12:46:10]requested_item shift.num is exist - process it [12:46:10]requested_item shift.opened is exist - process it [12:46:10]req_shift_opened [12:46:10]FM_GetShiftState [12:46:10]SAM_PROTO_GetShiftState [12:46:10]wFMCommunicate request_size=4 [12:46:10]MH_SAM_APDU [12:46:10]CAPDU: 80 13 01 00 [12:46:10]Write to MH i2c: E2 08 00 88 26 80 13 01 00 00 00 00 00 2B [12:46:10]Write i2c OK [12:46:10]MH_I2C_Read... [12:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:11]Read from MH i2c: E2 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 0E 00 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 0E 00 88 26 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F3 [12:46:11]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:46:11]wFMCommunicate OK [12:46:11]SAM_PROTO_GetShiftState done [12:46:11]FM_GetShiftState done [12:46:11]req_shift_opened done [12:46:11]requested_item shift.open_date is exist - process it [12:46:11]req_shift_open_date [12:46:11]req_shift_open_date done [12:46:11]produce_requested_data done [12:46:11]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67054,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:46:11]process_action_free print_text [12:46:11]json_value_free [12:46:11]json_value_free done [12:46:11]process_json_proto returns [12:46:11]Send response to host [12:46:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67054,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:46:11]free response buf [12:46:11]execute_script done [12:46:11]execute_script returns [12:46:11]free content buf [12:46:11]Sock 8.Close socket [12:46:11]Sock 8.Thread stoped [12:46:12]OFD Sender: No OFD packet to send [12:46:14]accept exits with 9 [12:46:14]New connection [12:46:14]New thread 3066617188 created [12:46:14]Thread 3066760548 joined [12:46:14]Waiting for new connection... [12:46:14] Sock 9.Parse request [12:46:14]Sock 9.Check first char [12:46:14]Sock 9.First char is OK [12:46:14]request: POST /json_proto HTTP/1.0 [12:46:14]Method: POST [12:46:14]URL: /json_proto [12:46:14]Method is POST - this is cgi request [12:46:14]url: /json_proto [12:46:14]query_string will be loaded in cgi processing [12:46:14]execute_cgi json_proto POST (null) [12:46:14]execute_cgi path=json_proto method=POST [12:46:14]POST find Content-Length [12:46:14]Host: 172.17.41.195:8080 [12:46:14]Content-Length: 800 [12:46:14]Content-Type: application/json [12:46:14] [12:46:14]POST finish read [12:46:14]Found Content-Length = 800 [12:46:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:14]execute_script... [12:46: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)506926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:14]POST & json_proto [12:46:14]process_json_proto [12:46:14]json parsed OK: [12:46:14]protocol is kg_v1.0 [12:46:14]action value=close_receipt [12:46:14]process_action close_receipt [12:46:14]cmd_close_receipt [12:46:14]MH_GetDate [12:46:14]Write to MH i2c: F0 00 00 89 26 9E [12:46:14]Write i2c OK [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: F0 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: F0 09 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: F0 09 00 89 26 00 1B 5D 43 66 FC 21 6F 64 B8 [12:46:14]GetLastDocTimeStamp 1715690633 [12:46:14]current date 1715690779 [12:46:14]FM_GetShiftState [12:46:14]SAM_PROTO_GetShiftState [12:46:14]wFMCommunicate request_size=4 [12:46:14]MH_SAM_APDU [12:46:14]CAPDU: 80 13 01 00 [12:46:14]Write to MH i2c: E2 08 00 8A 26 80 13 01 00 00 00 00 00 2D [12:46:14]Write i2c OK [12:46:14]MH_I2C_Read... [12:46:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:14]Read from MH i2c: E2 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 0E 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 0E 00 8A 26 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F5 [12:46:14]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:46:14]wFMCommunicate OK [12:46:14]SAM_PROTO_GetShiftState done [12:46:14]FM_GetShiftState done [12:46:14]opened in 1715646054 [12:46:14]opened+sec_in_day 1715732454 [12:46:14]quantity*price = 300069 [12:46:14]sum+1 = 300071 [12:46:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.70 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.70 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 62 14.05.2024 12:46 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67055 ФПД: 213259278958234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T124619&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67055&fm=213259278958234&tin=02508201610067®Number=0000000000091845&sum=300070 [12:46:15]StoreToDocumentArchive [12:46:15]shift 355 fd 67055 [12:46:15]save to /storage/0355/doc_00067055 [12:46:15]save last doc name /storage/0355/doc_00067055 to /storage/kkm_last_doc_name [12:46:15]save OK [12:46:15]Clear old archive folders... [12:46:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:46:15]tlvbuf is 00364450 [12:46:15]SAM_PROTO_ClearQueue [12:46:15]wFMCommunicate request_size=4 [12:46:15]MH_SAM_APDU [12:46:15]CAPDU: 80 09 00 00 [12:46:15]Write to MH i2c: E2 08 00 97 26 80 09 00 00 00 00 00 00 2F [12:46:15]Write i2c OK [12:46:15]MH_I2C_Read... [12:46:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:15]Read from MH i2c: E2 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: E2 03 00 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: E2 03 00 97 26 00 90 00 31 [12:46:15]RAPDU: 90 00 [12:46:15]wFMCommunicate OK [12:46:15]SAM_PROTO_ClearQueue done [12:46:15]KKMCreateOFDPacket [12:46:15]OFDProtocolAddRootSTLVToBuf [12:46:15]FM_MakeSignedData [12:46:15]FM_MakeSignedData [12:46:15]SAM_PROTO_SignData [12:46:15]wFMCommunicate request_size=4 [12:46:15]MH_SAM_APDU [12:46:15]CAPDU: 80 0D 01 02 [12:46:15]Write to MH i2c: E2 08 00 98 26 80 0D 01 02 00 00 00 00 37 [12:46:15]Write i2c OK [12:46:15]MH_I2C_Read... [12:46:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:15]Read from MH i2c: E2 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: E2 03 00 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: E2 03 00 98 26 00 90 00 32 [12:46:15]RAPDU: 90 00 [12:46:15]wFMCommunicate OK [12:46:15]wFMCommunicate request_size=255 [12:46:15]MH_SAM_APDU [12:46: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 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 1B 5D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EF 05 01 00 35 04 06 00 C1 F5 4B 91 [12:46:15]Write to MH i2c: E2 02 01 99 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 1B 5D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EF 05 01 00 35 04 06 00 C1 F5 4B 91 00 00 4D [12:46:16]Write i2c OK [12:46:16]MH_I2C_Read... [12:46:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:16]Read from MH i2c: E2 [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: E2 03 00 [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: E2 03 00 99 26 00 90 00 33 [12:46:16]RAPDU: 90 00 [12:46:16]wFMCommunicate OK [12:46:16]wFMCommunicate request_size=7 [12:46:16]MH_SAM_APDU [12:46:16]CAPDU: 80 0D 02 02 02 3E 9A [12:46:16]Write to MH i2c: E2 0A 00 9A 26 80 0D 02 02 02 00 3E 9A 00 00 16 [12:46:16]Write i2c OK [12:46:16]MH_I2C_Read... [12:46:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:16]Read from MH i2c: E2 [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: E2 03 00 [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: E2 03 00 9A 26 00 90 00 34 [12:46:16]RAPDU: 90 00 [12:46:16]wFMCommunicate OK [12:46:16]wFMCommunicate request_size=4 [12:46:16]MH_SAM_APDU [12:46:16]CAPDU: 80 0D 03 02 [12:46:16]Write to MH i2c: E2 08 00 9B 26 80 0D 03 02 00 00 00 00 3C [12:46:16]Write i2c OK [12:46:16]MH_I2C_Read... [12:46:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:16]Read from MH i2c: E2 [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: E2 0B 00 [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: E2 0B 00 9B 26 00 19 F2 BF AB CC B9 99 A0 90 00 70 [12:46:16]RAPDU: 19 F2 BF AB CC B9 99 A0 90 00 [12:46:16]wFMCommunicate OK [12:46:16]SAM_PROTO_SignData done [12:46:16]FM_MakeSignedData done [12:46:16]CreateOFDProtocolMessage [12:46:16]wFMCommunicate request_size=4 [12:46:16]MH_SAM_APDU [12:46:16]CAPDU: 80 11 00 00 [12:46:16]Write to MH i2c: E2 08 00 9C 26 80 11 00 00 00 00 00 00 3C [12:46:16]Write i2c OK [12:46:16]MH_I2C_Read... [12:46:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:16]Read from MH i2c: E2 [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: E2 17 00 [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: E2 17 00 9C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 92 [12:46: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:46:16]wFMCommunicate OK [12:46:16]CreateOFDProtocolMessage done [12:46:16]OFDSenderStorePacket 67055 [12:46:16]StoreOFDPacket docnum=67055 [12:46:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 D0 22 04 01 D8 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 1B 5D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EF 05 01 00 35 04 06 00 C1 F5 4B 91 3E 9A 19 F2 BF AB CC B9 99 A0 [12:46:16]CheckFolder [12:46:16]dirname=/storage/ofd_packets [12:46:16]CheckFolder done [12:46:16]ProducePacketName [12:46:16]name=ofd_packets/00067055 [12:46:16]NVStorageSaveData ofd_packets/00067055 [12:46:16]File name is /storage/ofd_packets/00067055 [12:46:16]Write 298 bytes [12:46:16]NVStorageSaveData done [12:46:16]OFDSenderStorePacket done [12:46:16]KKMCreateOFDPacket done [12:46:16]NVStorageSaveData kkm_last_timestamp [12:46:16]File name is /storage/kkm_last_timestamp [12:46:16]Write 4 bytes [12:46:16]NVStorageSaveData done [12:46:16]ExternCall_PrintAddStr [12:46:16]wPrintStart [12:46:16]Write to MH i2c: 01 00 00 9D 26 C3 [12:46:16]Write i2c OK [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: 01 [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: 01 07 00 [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: 01 07 00 9D 26 00 00 00 00 00 FF 0F D8 [12:46:16]RasterBufferAndPrint [12:46:16]line Счет N : (1)506926 [12:46:16]line ИНН: 02508201610067 [12:46:16]line Контрольно-Кассовый Чек [12:46:16]line ПРОДАЖА [12:46:16]line ТРК (МРК, ГНК) : 11 [12:46:16]line Товар: 2710194210 [12:46:16]line ДТ-К-5 [12:46:16]line 40.170 * 74.70 [12:46:16]line = 3000.70 [12:46:16]line НДС 12% НСП 1% [12:46:16]line > о реализуемом товаре [12:46:16]line ИТОГО: 3000.70 [12:46:16]line НСП 1% : 26.55 [12:46:16]line НДС 12% : 318.66 [12:46:16]line Наличными: 0.00 [12:46:16]line Безнал.: 3000.70 [12:46:16]line Место: АЗС № 91 "Партнер Нефть" [12:46:16]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:46:16]line СНО: Общий режим [12:46:16]line Чек 62 14.05.2024 12:46 [12:46:16]line Смена: 355 ФФД: 1.0 [12:46:16]line ЗНМ: 0300000119 [12:46:16]line РНМ: 0000000000091845 [12:46:16]line Версия ККМ: 001 [12:46:16]line Платежная система: O! деньги [12:46:16]line ФМ: 0000000000871829 [12:46:16]line ФД: 67055 [12:46:16]line ФПД: 213259278958234 [12:46:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T124619&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67055&fm=213259278958234&tin=02508201610067®Number=0000000000091845&sum=300070 [12:46:16]OFD Sender: Processing packet 67055 [packets to send 35, broken 34] [12:46:16]ProducePacketName [12:46:16]name=ofd_packets/00067055 [12:46:16]OFD Sender: To server: pG, [12:46:16]CommunicateWithHost lk.salyk.kg:30040 [12:46:16]ConnectInit lk.salyk.kg [12:46:16]written 0, free lines is 4095 [12:46:16]Connected sock=10 [12:46: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 D0 22 04 01 D8 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 1B 5D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EF 05 01 00 35 04 06 00 C1 F5 4B 91 3E 9A 19 F2 BF AB CC B9 99 A0 [12:46: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 13 E4 47 00 B1 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 EF 05 01 00 F4 03 04 00 FB 04 43 66 B6 04 01 00 00 10 7F E4 ED 21 78 98 C7 [12:46:17]CommunicateWithHost err = 0 [12:46:17]CheckOFDResponse [12:46:17]1017 (14) - 77093643461234 [12:46:17]1041 (16) - 0000000000871829 [12:46:17]1040 (4) - 67055 [12:46:17]1012 (4) - 14.05.2024 06:30 [12:46:17]1206 (1) - 0 [12:46:17]OFD Sender: Remove packet 67055 [12:46:17]ProducePacketName [12:46:17]name=ofd_packets/00067055 [12:46:17]NVStorageDeleteData [12:46:17]Write to MH i2c: 01 00 00 C6 26 EC [12:46:17]Write i2c OK [12:46:17]MH_I2C_Read... [12:46:17]Read from MH i2c: 01 [12:46:17]MH_I2C_Read... [12:46:17]Read from MH i2c: 01 07 00 [12:46:17]MH_I2C_Read... [12:46:17]Read from MH i2c: 01 07 00 C6 26 00 00 00 00 00 D9 0C D8 [12:46:17]RasterBufferAndPrint [12:46:17]line [12:46:17]line [12:46:17]line [12:46:17]line [12:46:17]line [12:46:17]written 0, free lines is 3298 [12:46:17]MH_Cut [12:46:17]Write to MH i2c: D1 01 00 CD 26 01 C5 [12:46:17]Write i2c OK [12:46:17]MH_I2C_Read... [12:46:17]Read from MH i2c: D1 [12:46:17]MH_I2C_Read... [12:46:17]Read from MH i2c: D1 01 00 [12:46:17]MH_I2C_Read... [12:46:17]Read from MH i2c: D1 01 00 CD 26 00 C4 [12:46:17]Write to MH i2c: 01 00 00 CE 26 F4 [12:46:17]Write i2c OK [12:46:17]MH_I2C_Read... [12:46:17]OFD Sender: No OFD packet to send [12:46:17]*** Cut start [12:46:17]*** Purtial cut [12:46:17]*** Stage 1: CUTSNS_PIN = 1 [12:46:18]Read from MH i2c: 01 [12:46:18]MH_I2C_Read... [12:46:18]*** Stop cut motor [12:46:18]*** Cut end [12:46:18]Read from MH i2c: 01 07 00 [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: 01 07 00 CE 26 00 00 00 00 00 FF 0F 09 [12:46:18]process_action close_receipt done [12:46:18]requested_data is exist [12:46:18]produce_requested_data [12:46:18]requested_item fm.sn is exist - process it [12:46:18]wFMCommunicate request_size=4 [12:46:18]MH_SAM_APDU [12:46:18]CAPDU: 80 11 00 00 [12:46:18]Write to MH i2c: E2 08 00 CF 26 80 11 00 00 00 00 00 00 6F [12:46:18]Write i2c OK [12:46:18]MH_I2C_Read... [12:46:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:18]Read from MH i2c: E2 [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: E2 17 00 [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: E2 17 00 CF 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C5 [12:46:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:46:18]wFMCommunicate OK [12:46:18]requested_item fd.num is exist - process it [12:46:18]SAM_PROTO_GetFieldsCounters [12:46:18]wFMCommunicate request_size=4 [12:46:18]MH_SAM_APDU [12:46:18]CAPDU: 80 13 00 00 [12:46:18]Write to MH i2c: E2 08 00 D0 26 80 13 00 00 00 00 00 00 72 [12:46:18]Write i2c OK [12:46:18]MH_I2C_Read... [12:46:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:18]Read from MH i2c: E2 [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: E2 62 00 [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: E2 62 00 D0 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 EF 05 01 00 0E 04 04 00 63 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 AB [12:46:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 EF 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:18]wFMCommunicate OK [12:46:18]SAM_PROTO_GetFieldsCounters done [12:46:18]requested_item shift.num is exist - process it [12:46:18]requested_item shift.opened is exist - process it [12:46:18]req_shift_opened [12:46:18]FM_GetShiftState [12:46:18]SAM_PROTO_GetShiftState [12:46:18]wFMCommunicate request_size=4 [12:46:18]MH_SAM_APDU [12:46:18]CAPDU: 80 13 01 00 [12:46:18]Write to MH i2c: E2 08 00 D1 26 80 13 01 00 00 00 00 00 74 [12:46:18]Write i2c OK [12:46:18]MH_I2C_Read... [12:46:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:18]Read from MH i2c: E2 [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: E2 0E 00 [12:46:18]MH_I2C_Read... [12:46:18]Read from MH i2c: E2 0E 00 D1 26 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 3C [12:46:18]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:46:18]wFMCommunicate OK [12:46:18]SAM_PROTO_GetShiftState done [12:46:18]FM_GetShiftState done [12:46:18]req_shift_opened done [12:46:18]requested_item shift.open_date is exist - process it [12:46:18]req_shift_open_date [12:46:18]req_shift_open_date done [12:46:18]produce_requested_data done [12:46:18]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67055,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:46:18]process_action_free close_receipt [12:46:18]json_value_free [12:46:18]json_value_free done [12:46:18]process_json_proto returns [12:46:18]Send response to host [12:46:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67055,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:46:18]free response buf [12:46:18]execute_script done [12:46:18]execute_script returns [12:46:18]free content buf [12:46:18]Sock 9.Close socket [12:46:18]Sock 9.Thread stoped [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:57]OFD Sender: No OFD packet to send [12:47:02]OFD Sender: No OFD packet to send [12:47:07]OFD Sender: No OFD packet to send [12:47:12]OFD Sender: No OFD packet to send [12:47:17]OFD Sender: No OFD packet to send [12:47:22]OFD Sender: No OFD packet to send [12:47:27]OFD Sender: No OFD packet to send [12:47:32]OFD Sender: No OFD packet to send [12:47:37]OFD Sender: No OFD packet to send [12:47:42]OFD Sender: No OFD packet to send [12:47:47]OFD Sender: No OFD packet to send [12:47:52]OFD Sender: No OFD packet to send [12:47:57]OFD Sender: No OFD packet to send [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:42]OFD Sender: No OFD packet to send [12:48:47]OFD Sender: No OFD packet to send [12:48:52]OFD Sender: No OFD packet to send [12:48:57]OFD Sender: No OFD packet to send [12:49:02]OFD Sender: No OFD packet to send [12:49:07]OFD Sender: No OFD packet to send [12:49:12]OFD Sender: No OFD packet to send [12:49:17]OFD Sender: No OFD packet to send [12:49:22]OFD Sender: No OFD packet to send [12:49:27]OFD Sender: No OFD packet to send [12:49:32]OFD Sender: No OFD packet to send [12:49:37]OFD Sender: No OFD packet to send [12:49:42]OFD Sender: No OFD packet to send [12:49:47]OFD Sender: No OFD packet to send [12:49:52]OFD Sender: No OFD packet to send [12:49:57]OFD Sender: No OFD packet to send [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:02]accept exits with 8 [12:53:02]New connection [12:53:02]New thread 3066760548 created [12:53:02]Thread 3066617188 joined [12:53:02]Waiting for new connection... [12:53:02] Sock 8.Parse request [12:53:02]Sock 8.Check first char [12:53:02]Sock 8.First char is OK [12:53:02]request: POST /json_proto HTTP/1.0 [12:53:02]Method: POST [12:53:02]URL: /json_proto [12:53:02]Method is POST - this is cgi request [12:53:02]url: /json_proto [12:53:02]query_string will be loaded in cgi processing [12:53:02]execute_cgi json_proto POST (null) [12:53:02]execute_cgi path=json_proto method=POST [12:53:02]POST find Content-Length [12:53:02]Host: 172.17.41.195:8080 [12:53:02]Content-Length: 800 [12:53:02]Content-Type: application/json [12:53:02] [12:53:02]POST finish read [12:53:02]Found Content-Length = 800 [12:53:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:02]execute_script... [12:53: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)506928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:02]POST & json_proto [12:53:02]process_json_proto [12:53:02]json parsed OK: [12:53:02]protocol is kg_v1.0 [12:53:02]action value=close_receipt [12:53:02]process_action close_receipt [12:53:02]cmd_close_receipt [12:53:02]MH_GetDate [12:53:02]Write to MH i2c: F0 00 00 D2 26 E7 [12:53:02]Write i2c OK [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: F0 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: F0 09 00 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: F0 09 00 D2 26 00 B3 5E 43 66 FC 21 6F 64 9A [12:53:02]GetLastDocTimeStamp 1715690779 [12:53:02]current date 1715691187 [12:53:02]FM_GetShiftState [12:53:02]SAM_PROTO_GetShiftState [12:53:02]wFMCommunicate request_size=4 [12:53:02]MH_SAM_APDU [12:53:02]CAPDU: 80 13 01 00 [12:53:02]Write to MH i2c: E2 08 00 D3 26 80 13 01 00 00 00 00 00 76 [12:53:02]Write i2c OK [12:53:02]MH_I2C_Read... [12:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:03]Read from MH i2c: E2 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 0E 00 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 0E 00 D3 26 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 3E [12:53:03]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:53:03]wFMCommunicate OK [12:53:03]SAM_PROTO_GetShiftState done [12:53:03]FM_GetShiftState done [12:53:03]opened in 1715646054 [12:53:03]opened+sec_in_day 1715732454 [12:53:03]quantity*price = 300069 [12:53:03]sum+1 = 300071 [12:53:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.70 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.70 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 63 14.05.2024 12:53 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67056 ФПД: 155996262687900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T125307&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67056&fm=155996262687900&tin=02508201610067®Number=0000000000091845&sum=300070 [12:53:04]StoreToDocumentArchive [12:53:04]shift 355 fd 67056 [12:53:04]save to /storage/0355/doc_00067056 [12:53:04]save last doc name /storage/0355/doc_00067056 to /storage/kkm_last_doc_name [12:53:04]save OK [12:53:04]Clear old archive folders... [12:53:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:53:04]tlvbuf is 00338240 [12:53:04]SAM_PROTO_ClearQueue [12:53:04]wFMCommunicate request_size=4 [12:53:04]MH_SAM_APDU [12:53:04]CAPDU: 80 09 00 00 [12:53:04]Write to MH i2c: E2 08 00 E0 26 80 09 00 00 00 00 00 00 78 [12:53:04]Write i2c OK [12:53:04]MH_I2C_Read... [12:53:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:04]Read from MH i2c: E2 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 03 00 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 03 00 E0 26 00 90 00 7A [12:53:04]RAPDU: 90 00 [12:53:04]wFMCommunicate OK [12:53:04]SAM_PROTO_ClearQueue done [12:53:04]KKMCreateOFDPacket [12:53:04]OFDProtocolAddRootSTLVToBuf [12:53:04]FM_MakeSignedData [12:53:04]FM_MakeSignedData [12:53:04]SAM_PROTO_SignData [12:53:04]wFMCommunicate request_size=4 [12:53:04]MH_SAM_APDU [12:53:04]CAPDU: 80 0D 01 02 [12:53:04]Write to MH i2c: E2 08 00 E1 26 80 0D 01 02 00 00 00 00 80 [12:53:04]Write i2c OK [12:53:04]MH_I2C_Read... [12:53:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:04]Read from MH i2c: E2 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 03 00 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 03 00 E1 26 00 90 00 7B [12:53:04]RAPDU: 90 00 [12:53:04]wFMCommunicate OK [12:53:04]wFMCommunicate request_size=255 [12:53:04]MH_SAM_APDU [12:53:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 B3 5E 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F0 05 01 00 35 04 06 00 8D E0 B5 D2 [12:53:04]Write to MH i2c: E2 02 01 E2 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 B3 5E 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F0 05 01 00 35 04 06 00 8D E0 B5 D2 00 00 93 [12:53:04]Write i2c OK [12:53:04]MH_I2C_Read... [12:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:04]Read from MH i2c: E2 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 03 00 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 03 00 E2 26 00 90 00 7C [12:53:04]RAPDU: 90 00 [12:53:04]wFMCommunicate OK [12:53:04]wFMCommunicate request_size=7 [12:53:04]MH_SAM_APDU [12:53:04]CAPDU: 80 0D 02 02 02 E4 9C [12:53:04]Write to MH i2c: E2 0A 00 E3 26 80 0D 02 02 02 00 E4 9C 00 00 07 [12:53:04]Write i2c OK [12:53:04]MH_I2C_Read... [12:53:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:04]Read from MH i2c: E2 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 03 00 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 03 00 E3 26 00 90 00 7D [12:53:04]RAPDU: 90 00 [12:53:04]wFMCommunicate OK [12:53:04]wFMCommunicate request_size=4 [12:53:04]MH_SAM_APDU [12:53:04]CAPDU: 80 0D 03 02 [12:53:04]Write to MH i2c: E2 08 00 E4 26 80 0D 03 02 00 00 00 00 85 [12:53:04]Write i2c OK [12:53:04]MH_I2C_Read... [12:53:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:04]Read from MH i2c: E2 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 0B 00 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 0B 00 E4 26 00 B1 B2 71 FF 08 DB B8 1D 90 00 11 [12:53:04]RAPDU: B1 B2 71 FF 08 DB B8 1D 90 00 [12:53:04]wFMCommunicate OK [12:53:04]SAM_PROTO_SignData done [12:53:04]FM_MakeSignedData done [12:53:04]CreateOFDProtocolMessage [12:53:04]wFMCommunicate request_size=4 [12:53:04]MH_SAM_APDU [12:53:04]CAPDU: 80 11 00 00 [12:53:04]Write to MH i2c: E2 08 00 E5 26 80 11 00 00 00 00 00 00 85 [12:53:04]Write i2c OK [12:53:04]MH_I2C_Read... [12:53:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:04]Read from MH i2c: E2 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 17 00 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: E2 17 00 E5 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DB [12:53:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:53:04]wFMCommunicate OK [12:53:04]CreateOFDProtocolMessage done [12:53:04]OFDSenderStorePacket 67056 [12:53:04]StoreOFDPacket docnum=67056 [12:53:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 07 A3 04 01 E7 AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 B3 5E 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F0 05 01 00 35 04 06 00 8D E0 B5 D2 E4 9C B1 B2 71 FF 08 DB B8 1D [12:53:04]CheckFolder [12:53:04]dirname=/storage/ofd_packets [12:53:04]CheckFolder done [12:53:04]ProducePacketName [12:53:04]name=ofd_packets/00067056 [12:53:04]NVStorageSaveData ofd_packets/00067056 [12:53:04]File name is /storage/ofd_packets/00067056 [12:53:04]Write 298 bytes [12:53:04]NVStorageSaveData done [12:53:04]OFDSenderStorePacket done [12:53:04]KKMCreateOFDPacket done [12:53:04]NVStorageSaveData kkm_last_timestamp [12:53:04]File name is /storage/kkm_last_timestamp [12:53:04]Write 4 bytes [12:53:04]NVStorageSaveData done [12:53:04]ExternCall_PrintAddStr [12:53:04]wPrintStart [12:53:04]Write to MH i2c: 01 00 00 E6 26 0C [12:53:04]Write i2c OK [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: 01 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: 01 07 00 [12:53:04]MH_I2C_Read... [12:53:04]Read from MH i2c: 01 07 00 E6 26 00 00 00 00 00 FF 0F 21 [12:53:04]RasterBufferAndPrint [12:53:04]line Счет N : (1)506928 [12:53:04]line ИНН: 02508201610067 [12:53:04]line Контрольно-Кассовый Чек [12:53:04]line ПРОДАЖА [12:53:04]line ТРК (МРК, ГНК) : 31 [12:53:04]line Товар: 2710194210 [12:53:04]line ДТ-К-5 [12:53:04]line 40.170 * 74.70 [12:53:04]line = 3000.70 [12:53:04]line НДС 12% НСП 1% [12:53:04]line > о реализуемом товаре [12:53:04]line ИТОГО: 3000.70 [12:53:04]line НСП 1% : 26.55 [12:53:04]line НДС 12% : 318.66 [12:53:04]line Наличными: 0.00 [12:53:04]line Безнал.: 3000.70 [12:53:04]line Место: АЗС № 91 "Партнер Нефть" [12:53:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:53:04]line СНО: Общий режим [12:53:04]line Чек 63 14.05.2024 12:53 [12:53:04]line Смена: 355 ФФД: 1.0 [12:53:04]line ЗНМ: 0300000119 [12:53:04]line РНМ: 0000000000091845 [12:53:04]line Версия ККМ: 001 [12:53:04]line Платежная система: O! деньги [12:53:04]line ФМ: 0000000000871829 [12:53:04]line ФД: 67056 [12:53:04]line ФПД: 155996262687900 [12:53:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T125307&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67056&fm=155996262687900&tin=02508201610067®Number=0000000000091845&sum=300070 [12:53:05]OFD Sender: Processing packet 67056 [packets to send 35, broken 34] [12:53:05]ProducePacketName [12:53:05]name=ofd_packets/00067056 [12:53:05]OFD Sender: To server: pG, [12:53:05]CommunicateWithHost lk.salyk.kg:30040 [12:53:05]ConnectInit lk.salyk.kg [12:53:05]written 0, free lines is 4095 [12:53:05]Connected sock=10 [12:53:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 07 A3 04 01 E7 AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 B3 5E 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F0 05 01 00 35 04 06 00 8D E0 B5 D2 E4 9C B1 B2 71 FF 08 DB B8 1D [12:53: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 53 E5 47 00 93 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 F0 05 01 00 F4 03 04 00 93 06 43 66 B6 04 01 00 00 AA DC FE 4F 20 D5 0B DC [12:53:05]CommunicateWithHost err = 0 [12:53:05]CheckOFDResponse [12:53:05]1017 (14) - 77093643461234 [12:53:05]1041 (16) - 0000000000871829 [12:53:05]1040 (4) - 67056 [12:53:05]1012 (4) - 14.05.2024 06:37 [12:53:05]1206 (1) - 0 [12:53:05]OFD Sender: Remove packet 67056 [12:53:05]ProducePacketName [12:53:05]name=ofd_packets/00067056 [12:53:05]NVStorageDeleteData [12:53:05]Write to MH i2c: 01 00 00 0F 27 36 [12:53:05]Write i2c OK [12:53:05]MH_I2C_Read... [12:53:05]Read from MH i2c: 01 [12:53:05]MH_I2C_Read... [12:53:05]Read from MH i2c: 01 07 00 [12:53:05]MH_I2C_Read... [12:53:05]Read from MH i2c: 01 07 00 0F 27 00 00 00 00 00 D5 0C 1E [12:53:05]RasterBufferAndPrint [12:53:05]line [12:53:05]line [12:53:05]line [12:53:05]line [12:53:05]line [12:53:05]written 0, free lines is 3292 [12:53:05]MH_Cut [12:53:05]Write to MH i2c: D1 01 00 16 27 01 0F [12:53:05]Write i2c OK [12:53:05]MH_I2C_Read... [12:53:05]Read from MH i2c: D1 [12:53:05]MH_I2C_Read... [12:53:05]Read from MH i2c: D1 01 00 [12:53:05]MH_I2C_Read... [12:53:05]Read from MH i2c: D1 01 00 16 27 00 0E [12:53:05]Write to MH i2c: 01 00 00 17 27 3E [12:53:05]Write i2c OK [12:53:05]MH_I2C_Read... [12:53:05]OFD Sender: No OFD packet to send [12:53:06]*** Cut start [12:53:06]*** Purtial cut [12:53:06]*** CUTSNS_PIN = 0 [12:53:06]*** Stage 1: CUTSNS_PIN = 1 [12:53:08]Read from MH i2c: 01 [12:53:08]MH_I2C_Read... [12:53:08]*** Stop cut motor [12:53:08]*** Cut end [12:53:08]Read from MH i2c: 01 07 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: 01 07 00 17 27 00 00 00 00 00 FF 0F 53 [12:53:08]process_action close_receipt done [12:53:08]requested_data is exist [12:53:08]produce_requested_data [12:53:08]requested_item fm.sn is exist - process it [12:53:08]wFMCommunicate request_size=4 [12:53:08]MH_SAM_APDU [12:53:08]CAPDU: 80 11 00 00 [12:53:08]Write to MH i2c: E2 08 00 18 27 80 11 00 00 00 00 00 00 B9 [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:08]Read from MH i2c: E2 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 17 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 17 00 18 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0F [12: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 [12:53:08]wFMCommunicate OK [12:53:08]requested_item fd.num is exist - process it [12:53:08]SAM_PROTO_GetFieldsCounters [12:53:08]wFMCommunicate request_size=4 [12:53:08]MH_SAM_APDU [12:53:08]CAPDU: 80 13 00 00 [12:53:08]Write to MH i2c: E2 08 00 19 27 80 13 00 00 00 00 00 00 BC [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:08]Read from MH i2c: E2 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 62 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 62 00 19 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F0 05 01 00 0E 04 04 00 63 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 F9 [12: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 F0 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:08]wFMCommunicate OK [12:53:08]SAM_PROTO_GetFieldsCounters done [12:53:08]requested_item shift.num is exist - process it [12:53:08]requested_item shift.opened is exist - process it [12:53:08]req_shift_opened [12:53:08]FM_GetShiftState [12:53:08]SAM_PROTO_GetShiftState [12:53:08]wFMCommunicate request_size=4 [12:53:08]MH_SAM_APDU [12:53:08]CAPDU: 80 13 01 00 [12:53:08]Write to MH i2c: E2 08 00 1A 27 80 13 01 00 00 00 00 00 BE [12:53:08]Write i2c OK [12:53:08]MH_I2C_Read... [12:53:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:08]Read from MH i2c: E2 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 0E 00 [12:53:08]MH_I2C_Read... [12:53:08]Read from MH i2c: E2 0E 00 1A 27 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 86 [12:53:08]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:53:08]wFMCommunicate OK [12:53:08]SAM_PROTO_GetShiftState done [12:53:08]FM_GetShiftState done [12:53:08]req_shift_opened done [12:53:08]requested_item shift.open_date is exist - process it [12:53:08]req_shift_open_date [12:53:08]req_shift_open_date done [12:53:08]produce_requested_data done [12:53:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67056,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:53:08]process_action_free close_receipt [12:53:08]json_value_free [12:53:08]json_value_free done [12:53:08]process_json_proto returns [12:53:08]Send response to host [12:53:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67056,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:53:08]free response buf [12:53:08]execute_script done [12:53:08]execute_script returns [12:53:08]free content buf [12:53:08]Sock 8.Close socket [12:53:08]Sock 8.Thread stoped [12:53:10]OFD Sender: No OFD packet to send [12:53:15]OFD Sender: No OFD packet to send [12:53:20]OFD Sender: No OFD packet to send [12:53:25]OFD Sender: No OFD packet to send [12:53:30]OFD Sender: No OFD packet to send [12:53:35]OFD Sender: No OFD packet to send [12:53:40]OFD Sender: No OFD packet to send [12:53:45]OFD Sender: No OFD packet to send [12:53:50]OFD Sender: No OFD packet to send [12:53:55]OFD Sender: No OFD packet to send [12:54:00]OFD Sender: No OFD packet to send [12:54:05]OFD Sender: No OFD packet to send [12:54:10]OFD Sender: No OFD packet to send [12:54:15]OFD Sender: No OFD packet to send [12:54:20]OFD Sender: No OFD packet to send [12:54:25]OFD Sender: No OFD packet to send [12:54:30]OFD Sender: No OFD packet to send [12:54:35]OFD Sender: No OFD packet to send [12:54:40]OFD Sender: No OFD packet to send [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:05]OFD Sender: No OFD packet to send [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:12]recv_with_timeout no data received [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:26]OFD Sender: No OFD packet to send [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:46]OFD Sender: No OFD packet to send [12:56:47]accept exits with 9 [12:56:47]New connection [12:56:47]New thread 3066617188 created [12:56:47]Thread 3066760548 joined [12:56:47]Waiting for new connection... [12:56:47] Sock 9.Parse request [12:56:47]Sock 9.Check first char [12:56:47]Sock 9.First char is OK [12:56:47]request: POST /json_proto HTTP/1.0 [12:56:47]Method: POST [12:56:47]URL: /json_proto [12:56:47]Method is POST - this is cgi request [12:56:47]url: /json_proto [12:56:47]query_string will be loaded in cgi processing [12:56:47]execute_cgi json_proto POST (null) [12:56:47]execute_cgi path=json_proto method=POST [12:56:47]POST find Content-Length [12:56:47]Host: 172.17.41.195:8080 [12:56:47]Content-Length: 800 [12:56:47]Content-Type: application/json [12:56:47] [12:56:47]POST finish read [12:56:47]Found Content-Length = 800 [12:56:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:47]execute_script... [12:56: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)506931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 26.780, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:47]POST & json_proto [12:56:47]process_json_proto [12:56:47]json parsed OK: [12:56:47]protocol is kg_v1.0 [12:56:47]action value=close_receipt [12:56:47]process_action close_receipt [12:56:47]cmd_close_receipt [12:56:47]MH_GetDate [12:56:47]Write to MH i2c: F0 00 00 1B 27 31 [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: F0 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: F0 09 00 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: F0 09 00 1B 27 00 94 5F 43 66 FC 21 6F 64 C6 [12:56:47]GetLastDocTimeStamp 1715691187 [12:56:47]current date 1715691412 [12:56:47]FM_GetShiftState [12:56:47]SAM_PROTO_GetShiftState [12:56:47]wFMCommunicate request_size=4 [12:56:47]MH_SAM_APDU [12:56:47]CAPDU: 80 13 01 00 [12:56:47]Write to MH i2c: E2 08 00 1C 27 80 13 01 00 00 00 00 00 C0 [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:47]Read from MH i2c: E2 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 0E 00 [12:56:47]MH_I2C_Read... [12:56:47]Read from MH i2c: E2 0E 00 1C 27 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 88 [12:56:47]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:56:47]wFMCommunicate OK [12:56:47]SAM_PROTO_GetShiftState done [12:56:47]FM_GetShiftState done [12:56:47]opened in 1715646054 [12:56:47]opened+sec_in_day 1715732454 [12:56:47]quantity*price = 200046 [12:56:47]sum+1 = 200048 [12:56:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 64 14.05.2024 12:56 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67057 ФПД: 249072682722050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T125652&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67057&fm=249072682722050&tin=02508201610067®Number=0000000000091845&sum=200047 [12:56:49]StoreToDocumentArchive [12:56:49]shift 355 fd 67057 [12:56:49]save to /storage/0355/doc_00067057 [12:56:49]save last doc name /storage/0355/doc_00067057 to /storage/kkm_last_doc_name [12:56:49]save OK [12:56:49]Clear old archive folders... [12:56:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:56:49]tlvbuf is 00340410 [12:56:49]SAM_PROTO_ClearQueue [12:56:49]wFMCommunicate request_size=4 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 09 00 00 [12:56:49]Write to MH i2c: E2 08 00 29 27 80 09 00 00 00 00 00 00 C2 [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 29 27 00 90 00 C4 [12:56:49]RAPDU: 90 00 [12:56:49]wFMCommunicate OK [12:56:49]SAM_PROTO_ClearQueue done [12:56:49]KKMCreateOFDPacket [12:56:49]OFDProtocolAddRootSTLVToBuf [12:56:49]FM_MakeSignedData [12:56:49]FM_MakeSignedData [12:56:49]SAM_PROTO_SignData [12:56:49]wFMCommunicate request_size=4 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 0D 01 02 [12:56:49]Write to MH i2c: E2 08 00 2A 27 80 0D 01 02 00 00 00 00 CA [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 2A 27 00 90 00 C5 [12:56:49]RAPDU: 90 00 [12:56:49]wFMCommunicate OK [12:56:49]wFMCommunicate request_size=255 [12:56:49]MH_SAM_APDU [12:56: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 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 40 00 00 00 F4 03 04 00 94 5F 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F1 05 01 00 35 04 06 00 E2 87 C0 C6 [12:56:49]Write to MH i2c: E2 02 01 2B 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 40 00 00 00 F4 03 04 00 94 5F 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F1 05 01 00 35 04 06 00 E2 87 C0 C6 00 00 5C [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 2B 27 00 90 00 C6 [12:56:49]RAPDU: 90 00 [12:56:49]wFMCommunicate OK [12:56:49]wFMCommunicate request_size=7 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 0D 02 02 02 E3 02 [12:56:49]Write to MH i2c: E2 0A 00 2C 27 80 0D 02 02 02 00 E3 02 00 00 B6 [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 03 00 2C 27 00 90 00 C7 [12:56:49]RAPDU: 90 00 [12:56:49]wFMCommunicate OK [12:56:49]wFMCommunicate request_size=4 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 0D 03 02 [12:56:49]Write to MH i2c: E2 08 00 2D 27 80 0D 03 02 00 00 00 00 CF [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 0B 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 0B 00 2D 27 00 19 D1 80 EE D1 01 CB 63 90 00 28 [12:56:49]RAPDU: 19 D1 80 EE D1 01 CB 63 90 00 [12:56:49]wFMCommunicate OK [12:56:49]SAM_PROTO_SignData done [12:56:49]FM_MakeSignedData done [12:56:49]CreateOFDProtocolMessage [12:56:49]wFMCommunicate request_size=4 [12:56:49]MH_SAM_APDU [12:56:49]CAPDU: 80 11 00 00 [12:56:49]Write to MH i2c: E2 08 00 2E 27 80 11 00 00 00 00 00 00 CF [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:49]Read from MH i2c: E2 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 17 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: E2 17 00 2E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 25 [12:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:56:49]wFMCommunicate OK [12:56:49]CreateOFDProtocolMessage done [12:56:49]OFDSenderStorePacket 67057 [12:56:49]StoreOFDPacket docnum=67057 [12:56: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 0E AF 04 01 F0 C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 40 00 00 00 F4 03 04 00 94 5F 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F1 05 01 00 35 04 06 00 E2 87 C0 C6 E3 02 19 D1 80 EE D1 01 CB 63 [12:56:49]CheckFolder [12:56:49]dirname=/storage/ofd_packets [12:56:49]CheckFolder done [12:56:49]ProducePacketName [12:56:49]name=ofd_packets/00067057 [12:56:49]NVStorageSaveData ofd_packets/00067057 [12:56:49]File name is /storage/ofd_packets/00067057 [12:56:49]Write 298 bytes [12:56:49]NVStorageSaveData done [12:56:49]OFDSenderStorePacket done [12:56:49]KKMCreateOFDPacket done [12:56:49]NVStorageSaveData kkm_last_timestamp [12:56:49]File name is /storage/kkm_last_timestamp [12:56:49]Write 4 bytes [12:56:49]NVStorageSaveData done [12:56:49]ExternCall_PrintAddStr [12:56:49]wPrintStart [12:56:49]Write to MH i2c: 01 00 00 2F 27 56 [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: 01 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: 01 07 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: 01 07 00 2F 27 00 00 00 00 00 FF 0F 6B [12:56:49]RasterBufferAndPrint [12:56:49]line Счет N : (1)506931 [12:56:49]line ИНН: 02508201610067 [12:56:49]line Контрольно-Кассовый Чек [12:56:49]line ПРОДАЖА [12:56:49]line ТРК (МРК, ГНК) : 41 [12:56:49]line Товар: 2710194210 [12:56:49]line ДТ-К-5 [12:56:49]line 26.780 * 74.70 [12:56:49]line = 2000.47 [12:56:49]line НДС 12% НСП 1% [12:56:49]line > о реализуемом товаре [12:56:49]line ИТОГО: 2000.47 [12:56:49]line НСП 1% : 17.70 [12:56:49]line НДС 12% : 212.44 [12:56:49]line Наличными: 0.00 [12:56:49]line Безнал.: 2000.47 [12:56:49]line Место: АЗС № 91 "Партнер Нефть" [12:56:49]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:56:49]line СНО: Общий режим [12:56:49]line Чек 64 14.05.2024 12:56 [12:56:49]line Смена: 355 ФФД: 1.0 [12:56:49]line ЗНМ: 0300000119 [12:56:49]line РНМ: 0000000000091845 [12:56:49]line Версия ККМ: 001 [12:56:49]line Платежная система: O! деньги [12:56:49]line ФМ: 0000000000871829 [12:56:49]line ФД: 67057 [12:56:49]line ФПД: 249072682722050 [12:56:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T125652&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67057&fm=249072682722050&tin=02508201610067®Number=0000000000091845&sum=200047 [12:56:49]OFD Sender: Processing packet 67057 [packets to send 35, broken 34] [12:56:49]ProducePacketName [12:56:49]name=ofd_packets/00067057 [12:56:49]OFD Sender: To server: pG, [12:56:49]CommunicateWithHost lk.salyk.kg:30040 [12:56:49]ConnectInit lk.salyk.kg [12:56:49]written 0, free lines is 4095 [12:56:49]Connected sock=10 [12:56:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 0E AF 04 01 F0 C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 40 00 00 00 F4 03 04 00 94 5F 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F1 05 01 00 35 04 06 00 E2 87 C0 C6 E3 02 19 D1 80 EE D1 01 CB 63 [12:56: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 18 4C 47 00 52 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F1 05 01 00 F4 03 04 00 74 07 43 66 B6 04 01 00 00 0F 7D CF AE DA 7D 82 FC [12:56:50]CommunicateWithHost err = 0 [12:56:50]CheckOFDResponse [12:56:50]1017 (14) - 77093643461234 [12:56:50]1041 (16) - 0000000000871829 [12:56:50]1040 (4) - 67057 [12:56:50]1012 (4) - 14.05.2024 06:40 [12:56:50]1206 (1) - 0 [12:56:50]OFD Sender: Remove packet 67057 [12:56:50]ProducePacketName [12:56:50]name=ofd_packets/00067057 [12:56:50]NVStorageDeleteData [12:56:50]Write to MH i2c: 01 00 00 58 27 7F [12:56:50]Write i2c OK [12:56:50]MH_I2C_Read... [12:56:50]Read from MH i2c: 01 [12:56:50]MH_I2C_Read... [12:56:50]Read from MH i2c: 01 07 00 [12:56:50]MH_I2C_Read... [12:56:50]Read from MH i2c: 01 07 00 58 27 00 00 00 00 00 DC 0C 6E [12:56:50]RasterBufferAndPrint [12:56:50]line [12:56:50]line [12:56:50]line [12:56:50]line [12:56:50]line [12:56:50]written 0, free lines is 3298 [12:56:50]MH_Cut [12:56:50]Write to MH i2c: D1 01 00 5F 27 01 58 [12:56:50]Write i2c OK [12:56:50]MH_I2C_Read... [12:56:50]Read from MH i2c: D1 [12:56:50]MH_I2C_Read... [12:56:50]Read from MH i2c: D1 01 00 [12:56:50]MH_I2C_Read... [12:56:50]Read from MH i2c: D1 01 00 5F 27 00 57 [12:56:50]Write to MH i2c: 01 00 00 60 27 87 [12:56:50]Write i2c OK [12:56:50]MH_I2C_Read... [12:56:50]OFD Sender: No OFD packet to send [12:56:51]*** Cut start [12:56:51]*** Purtial cut [12:56:51]*** Stage 1: CUTSNS_PIN = 1 [12:56:51]Read from MH i2c: 01 [12:56:51]MH_I2C_Read... [12:56:51]*** Stop cut motor [12:56:51]*** Cut end [12:56:51]Read from MH i2c: 01 07 00 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: 01 07 00 60 27 00 00 00 00 00 FF 0F 9C [12:56:51]process_action close_receipt done [12:56:51]requested_data is exist [12:56:51]produce_requested_data [12:56:51]requested_item fm.sn is exist - process it [12:56:51]wFMCommunicate request_size=4 [12:56:51]MH_SAM_APDU [12:56:51]CAPDU: 80 11 00 00 [12:56:51]Write to MH i2c: E2 08 00 61 27 80 11 00 00 00 00 00 00 02 [12:56:51]Write i2c OK [12:56:51]MH_I2C_Read... [12:56:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:51]Read from MH i2c: E2 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 17 00 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 17 00 61 27 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:56:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:56:51]wFMCommunicate OK [12:56:51]requested_item fd.num is exist - process it [12:56:51]SAM_PROTO_GetFieldsCounters [12:56:51]wFMCommunicate request_size=4 [12:56:51]MH_SAM_APDU [12:56:51]CAPDU: 80 13 00 00 [12:56:51]Write to MH i2c: E2 08 00 62 27 80 13 00 00 00 00 00 00 05 [12:56:51]Write i2c OK [12:56:51]MH_I2C_Read... [12:56:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:51]Read from MH i2c: E2 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 62 00 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 62 00 62 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F1 05 01 00 0E 04 04 00 63 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 46 [12:56: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 F1 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:51]wFMCommunicate OK [12:56:51]SAM_PROTO_GetFieldsCounters done [12:56:51]requested_item shift.num is exist - process it [12:56:51]requested_item shift.opened is exist - process it [12:56:51]req_shift_opened [12:56:51]FM_GetShiftState [12:56:51]SAM_PROTO_GetShiftState [12:56:51]wFMCommunicate request_size=4 [12:56:51]MH_SAM_APDU [12:56:51]CAPDU: 80 13 01 00 [12:56:51]Write to MH i2c: E2 08 00 63 27 80 13 01 00 00 00 00 00 07 [12:56:51]Write i2c OK [12:56:51]MH_I2C_Read... [12:56:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:51]Read from MH i2c: E2 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 0E 00 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 0E 00 63 27 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 CF [12:56:51]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:56:51]wFMCommunicate OK [12:56:51]SAM_PROTO_GetShiftState done [12:56:51]FM_GetShiftState done [12:56:51]req_shift_opened done [12:56:51]requested_item shift.open_date is exist - process it [12:56:51]req_shift_open_date [12:56:51]req_shift_open_date done [12:56:51]produce_requested_data done [12:56:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67057,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:56:51]process_action_free close_receipt [12:56:51]json_value_free [12:56:51]json_value_free done [12:56:51]process_json_proto returns [12:56:51]Send response to host [12:56:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67057,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:56:51]free response buf [12:56:51]execute_script done [12:56:51]execute_script returns [12:56:51]free content buf [12:56:51]Sock 9.Close socket [12:56:51]Sock 9.Thread stoped [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:42]accept exits with 8 [12:58:42]New connection [12:58:42]New thread 3066760548 created [12:58:42]Thread 3066617188 joined [12:58:42]Waiting for new connection... [12:58:42] Sock 8.Parse request [12:58:42]Sock 8.Check first char [12:58:42]Sock 8.First char is OK [12:58:42]request: POST /json_proto HTTP/1.0 [12:58:42]Method: POST [12:58:42]URL: /json_proto [12:58:42]Method is POST - this is cgi request [12:58:42]url: /json_proto [12:58:42]query_string will be loaded in cgi processing [12:58:42]execute_cgi json_proto POST (null) [12:58:42]execute_cgi path=json_proto method=POST [12:58:42]POST find Content-Length [12:58:42]Host: 172.17.41.195:8080 [12:58:42]Content-Length: 682 [12:58:42]Content-Type: application/json [12:58:42] [12:58:42]POST finish read [12:58:42]Found Content-Length = 682 [12:58:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506932", "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" ] } } [12:58:42]execute_script... [12:58: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)506932", "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" ] } } [12:58:42]POST & json_proto [12:58:42]process_json_proto [12:58:42]json parsed OK: [12:58:42]protocol is kg_v1.0 [12:58:42]action value=close_receipt [12:58:42]process_action close_receipt [12:58:42]cmd_close_receipt [12:58:42]MH_GetDate [12:58:42]Write to MH i2c: F0 00 00 64 27 7A [12:58:42]Write i2c OK [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: F0 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: F0 09 00 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: F0 09 00 64 27 00 06 60 43 66 FC 21 6F 64 82 [12:58:42]GetLastDocTimeStamp 1715691412 [12:58:42]current date 1715691526 [12:58:42]FM_GetShiftState [12:58:42]SAM_PROTO_GetShiftState [12:58:42]wFMCommunicate request_size=4 [12:58:42]MH_SAM_APDU [12:58:42]CAPDU: 80 13 01 00 [12:58:42]Write to MH i2c: E2 08 00 65 27 80 13 01 00 00 00 00 00 09 [12:58:42]Write i2c OK [12:58:42]MH_I2C_Read... [12:58:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:42]Read from MH i2c: E2 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: E2 0E 00 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: E2 0E 00 65 27 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D1 [12:58:42]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:58:42]wFMCommunicate OK [12:58:42]SAM_PROTO_GetShiftState done [12:58:42]FM_GetShiftState done [12:58:42]opened in 1715646054 [12:58:42]opened+sec_in_day 1715732454 [12:58:42]quantity*price = 100066 [12:58:42]sum+1 = 100067 [12:58:42]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 СНО: Общий режим Чек 65 14.05.2024 12:58 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67058 ФПД: 140286488631686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T125846&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67058&fm=140286488631686&tin=02508201610067®Number=0000000000091845&sum=100000 [12:58:43]StoreToDocumentArchive [12:58:43]shift 355 fd 67058 [12:58:43]save to /storage/0355/doc_00067058 [12:58:43]save last doc name /storage/0355/doc_00067058 to /storage/kkm_last_doc_name [12:58:43]save OK [12:58:43]Clear old archive folders... [12:58:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:58:43]tlvbuf is 003499C0 [12:58:43]SAM_PROTO_ClearQueue [12:58:43]wFMCommunicate request_size=4 [12:58:43]MH_SAM_APDU [12:58:43]CAPDU: 80 09 00 00 [12:58:43]Write to MH i2c: E2 08 00 72 27 80 09 00 00 00 00 00 00 0B [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 72 27 00 90 00 0D [12:58:43]RAPDU: 90 00 [12:58:43]wFMCommunicate OK [12:58:43]SAM_PROTO_ClearQueue done [12:58:43]KKMCreateOFDPacket [12:58:43]OFDProtocolAddRootSTLVToBuf [12:58:43]FM_MakeSignedData [12:58:43]FM_MakeSignedData [12:58:43]SAM_PROTO_SignData [12:58:43]wFMCommunicate request_size=4 [12:58:43]MH_SAM_APDU [12:58:43]CAPDU: 80 0D 01 02 [12:58:43]Write to MH i2c: E2 08 00 73 27 80 0D 01 02 00 00 00 00 13 [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 73 27 00 90 00 0E [12:58:43]RAPDU: 90 00 [12:58:43]wFMCommunicate OK [12:58:43]wFMCommunicate request_size=255 [12:58:43]MH_SAM_APDU [12:58: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 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 41 00 00 00 F4 03 04 00 06 60 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F2 05 01 00 35 04 06 00 7F [12:58:43]Write to MH i2c: E2 02 01 74 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 41 00 00 00 F4 03 04 00 06 60 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F2 05 01 00 35 04 06 00 7F 00 00 17 [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 74 27 00 90 00 0F [12:58:43]RAPDU: 90 00 [12:58:43]wFMCommunicate OK [12:58:43]wFMCommunicate request_size=10 [12:58:43]MH_SAM_APDU [12:58:43]CAPDU: 80 0D 02 02 05 96 FE 52 59 86 [12:58:43]Write to MH i2c: E2 0D 00 75 27 80 0D 02 02 05 00 96 FE 52 59 86 00 00 E5 [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 75 27 00 90 00 10 [12:58:43]RAPDU: 90 00 [12:58:43]wFMCommunicate OK [12:58:43]wFMCommunicate request_size=4 [12:58:43]MH_SAM_APDU [12:58:43]CAPDU: 80 0D 03 02 [12:58:43]Write to MH i2c: E2 08 00 76 27 80 0D 03 02 00 00 00 00 18 [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 0B 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 0B 00 76 27 00 82 23 01 20 BB 30 52 2D 90 00 49 [12:58:43]RAPDU: 82 23 01 20 BB 30 52 2D 90 00 [12:58:43]wFMCommunicate OK [12:58:43]SAM_PROTO_SignData done [12:58:43]FM_MakeSignedData done [12:58:43]CreateOFDProtocolMessage [12:58:43]wFMCommunicate request_size=4 [12:58:43]MH_SAM_APDU [12:58:43]CAPDU: 80 11 00 00 [12:58:43]Write to MH i2c: E2 08 00 77 27 80 11 00 00 00 00 00 00 18 [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 17 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 17 00 77 27 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:58:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:58:43]wFMCommunicate OK [12:58:43]CreateOFDProtocolMessage done [12:58:43]OFDSenderStorePacket 67058 [12:58:43]StoreOFDPacket docnum=67058 [12:58: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 0F 01 00 00 5D 2D 07 01 CE 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 41 00 00 00 F4 03 04 00 06 60 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F2 05 01 00 35 04 06 00 7F 96 FE 52 59 86 82 23 01 20 BB 30 52 2D [12:58:43]CheckFolder [12:58:43]dirname=/storage/ofd_packets [12:58:43]CheckFolder done [12:58:43]ProducePacketName [12:58:43]name=ofd_packets/00067058 [12:58:43]NVStorageSaveData ofd_packets/00067058 [12:58:43]File name is /storage/ofd_packets/00067058 [12:58:43]Write 301 bytes [12:58:43]NVStorageSaveData done [12:58:43]OFDSenderStorePacket done [12:58:43]KKMCreateOFDPacket done [12:58:43]NVStorageSaveData kkm_last_timestamp [12:58:43]File name is /storage/kkm_last_timestamp [12:58:43]Write 4 bytes [12:58:43]NVStorageSaveData done [12:58:43]ExternCall_PrintAddStr [12:58:43]wPrintStart [12:58:43]Write to MH i2c: 01 00 00 78 27 9F [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: 01 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: 01 07 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: 01 07 00 78 27 00 00 00 00 00 FF 0F B4 [12:58:43]RasterBufferAndPrint [12:58:43]line Счет N : (1)506932 [12:58:43]line ИНН: 02508201610067 [12:58:43]line Контрольно-Кассовый Чек [12:58:43]line ПРОДАЖА [12:58:43]line ТРК (МРК, ГНК) : 33 [12:58:43]line Товар: 2710124130 [12:58:43]line Аи-92-К-5 [12:58:43]line 14.980 * 66.80 [12:58:43]line = 1000.66 [12:58:43]line НДС 12% НСП 1% [12:58:43]line > о реализуемом товаре [12:58:43]line ОКРУГЛЕНИЕ: -0.66 [12:58:43]line ИТОГО: 1000.00 [12:58:43]line Внесено: 1000.00 [12:58:43]line СДАЧА: 0.00 [12:58:43]line НСП 1% : 8.85 [12:58:43]line НДС 12% : 106.26 [12:58:43]line Наличными: 1000.00 [12:58:43]line Безнал.: 0.00 [12:58:43]line Место: АЗС № 91 "Партнер Нефть" [12:58:43]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [12:58:43]line СНО: Общий режим [12:58:43]line Чек 65 14.05.2024 12:58 [12:58:43]line Смена: 355 ФФД: 1.0 [12:58:43]line ЗНМ: 0300000119 [12:58:43]line РНМ: 0000000000091845 [12:58:43]line Версия ККМ: 001 [12:58:43]line ФМ: 0000000000871829 [12:58:43]line ФД: 67058 [12:58:43]line ФПД: 140286488631686 [12:58:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T125846&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67058&fm=140286488631686&tin=02508201610067®Number=0000000000091845&sum=100000 [12:58:44]OFD Sender: Processing packet 67058 [packets to send 35, broken 34] [12:58:44]ProducePacketName [12:58:44]name=ofd_packets/00067058 [12:58:44]OFD Sender: To server: pG, [12:58:44]CommunicateWithHost lk.salyk.kg:30040 [12:58:44]ConnectInit lk.salyk.kg [12:58:44]written 0, free lines is 4095 [12:58:44]Connected sock=10 [12:58: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 5D 2D 07 01 CE 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 41 00 00 00 F4 03 04 00 06 60 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F2 05 01 00 35 04 06 00 7F 96 FE 52 59 86 82 23 01 20 BB 30 52 2D [12:58:44]Write to MH i2c: 01 00 00 A2 27 C9 [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: 01 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: 01 07 00 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: 01 07 00 A2 27 00 00 00 00 00 C9 0C A5 [12:58:44]RasterBufferAndPrint [12:58:44]line [12:58:44]line [12:58:44]line [12:58:44]line [12:58:44]line [12:58:44]written 0, free lines is 3278 [12:58:44]MH_Cut [12:58:44]Write to MH i2c: D1 01 00 A9 27 01 A2 [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: D1 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: D1 01 00 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: D1 01 00 A9 27 00 A1 [12:58:44]Write to MH i2c: 01 00 00 AA 27 D1 [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58: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 15 82 47 00 AC 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F2 05 01 00 F4 03 04 00 E6 07 43 66 B6 04 01 00 00 AA 5C B1 51 28 88 39 D1 [12:58:44]CommunicateWithHost err = 0 [12:58:44]CheckOFDResponse [12:58:44]1017 (14) - 77093643461234 [12:58:44]1041 (16) - 0000000000871829 [12:58:44]1040 (4) - 67058 [12:58:44]1012 (4) - 14.05.2024 06:42 [12:58:44]1206 (1) - 0 [12:58:44]OFD Sender: Remove packet 67058 [12:58:44]ProducePacketName [12:58:44]name=ofd_packets/00067058 [12:58:44]NVStorageDeleteData [12:58:45]OFD Sender: No OFD packet to send [12:58:45]*** Cut start [12:58:45]*** Purtial cut [12:58:45]*** CUTSNS_PIN = 0 [12:58:45]*** Stage 1: CUTSNS_PIN = 1 [12:58:47]Read from MH i2c: 01 [12:58:47]MH_I2C_Read... [12:58:47]*** Stop cut motor [12:58:47]*** Cut end [12:58:47]Read from MH i2c: 01 07 00 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: 01 07 00 AA 27 00 00 00 00 00 FF 0F E6 [12:58:47]process_action close_receipt done [12:58:47]requested_data is exist [12:58:47]produce_requested_data [12:58:47]requested_item fm.sn is exist - process it [12:58:47]wFMCommunicate request_size=4 [12:58:47]MH_SAM_APDU [12:58:47]CAPDU: 80 11 00 00 [12:58:47]Write to MH i2c: E2 08 00 AB 27 80 11 00 00 00 00 00 00 4C [12:58:47]Write i2c OK [12:58:47]MH_I2C_Read... [12:58:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:47]Read from MH i2c: E2 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: E2 17 00 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: E2 17 00 AB 27 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:58:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:58:47]wFMCommunicate OK [12:58:47]requested_item fd.num is exist - process it [12:58:47]SAM_PROTO_GetFieldsCounters [12:58:47]wFMCommunicate request_size=4 [12:58:47]MH_SAM_APDU [12:58:47]CAPDU: 80 13 00 00 [12:58:47]Write to MH i2c: E2 08 00 AC 27 80 13 00 00 00 00 00 00 4F [12:58:47]Write i2c OK [12:58:47]MH_I2C_Read... [12:58:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:47]Read from MH i2c: E2 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: E2 62 00 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: E2 62 00 AC 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F2 05 01 00 0E 04 04 00 63 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 94 [12:58: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 F2 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:47]wFMCommunicate OK [12:58:47]SAM_PROTO_GetFieldsCounters done [12:58:47]requested_item shift.num is exist - process it [12:58:47]requested_item shift.opened is exist - process it [12:58:47]req_shift_opened [12:58:47]FM_GetShiftState [12:58:47]SAM_PROTO_GetShiftState [12:58:47]wFMCommunicate request_size=4 [12:58:47]MH_SAM_APDU [12:58:47]CAPDU: 80 13 01 00 [12:58:47]Write to MH i2c: E2 08 00 AD 27 80 13 01 00 00 00 00 00 51 [12:58:47]Write i2c OK [12:58:47]MH_I2C_Read... [12:58:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:47]Read from MH i2c: E2 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: E2 0E 00 [12:58:47]MH_I2C_Read... [12:58:47]Read from MH i2c: E2 0E 00 AD 27 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 19 [12:58:47]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:58:47]wFMCommunicate OK [12:58:47]SAM_PROTO_GetShiftState done [12:58:47]FM_GetShiftState done [12:58:47]req_shift_opened done [12:58:47]requested_item shift.open_date is exist - process it [12:58:47]req_shift_open_date [12:58:47]req_shift_open_date done [12:58:47]produce_requested_data done [12:58:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67058,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:58:47]process_action_free close_receipt [12:58:47]json_value_free [12:58:47]json_value_free done [12:58:47]process_json_proto returns [12:58:47]Send response to host [12:58:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67058,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:58:47]free response buf [12:58:47]execute_script done [12:58:47]execute_script returns [12:58:47]free content buf [12:58:47]Sock 8.Close socket [12:58:47]Sock 8.Thread stoped [12:58:49]accept exits with 9 [12:58:49]New connection [12:58:49]New thread 3066617188 created [12:58:49]Thread 3066760548 joined [12:58:49]Waiting for new connection... [12:58:49] Sock 9.Parse request [12:58:49]Sock 9.Check first char [12:58:49]Sock 9.First char is OK [12:58:49]request: POST /json_proto HTTP/1.0 [12:58:49]Method: POST [12:58:49]URL: /json_proto [12:58:49]Method is POST - this is cgi request [12:58:49]url: /json_proto [12:58:49]query_string will be loaded in cgi processing [12:58:49]execute_cgi json_proto POST (null) [12:58:49]execute_cgi path=json_proto method=POST [12:58:49]POST find Content-Length [12:58:49]Host: 172.17.41.195:8080 [12:58:49]Content-Length: 1179 [12:58:49]Content-Type: application/json [12:58:49] [12:58:49]POST finish read [12:58:49]Found Content-Length = 1179 [12:58: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)506933\u000A14.05.2024 12:41\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" ] } } [12:58:49]execute_script... [12:58: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)506933\u000A14.05.2024 12:41\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" ] } } [12:58:49]POST & json_proto [12:58:49]process_json_proto [12:58:49]json parsed OK: [12:58:49]protocol is kg_v1.0 [12:58:49]action value=print_text [12:58:49]process_action print_text [12:58:49]cmd_print_text [12:58:49]ExternCall_PrintAddStr [12:58:49]wPrintStart [12:58:49]Write to MH i2c: 01 00 00 AE 27 D5 [12:58:49]Write i2c OK [12:58:49]MH_I2C_Read... [12:58:49]Read from MH i2c: 01 [12:58:49]MH_I2C_Read... [12:58:49]Read from MH i2c: 01 07 00 [12:58:49]MH_I2C_Read... [12:58:49]Read from MH i2c: 01 07 00 AE 27 00 00 00 00 00 FF 0F EA [12:58:49]RasterBufferAndPrint [12:58:49]line *****ТОВАРНЫЙ ЧЕК***** [12:58:49]line АЗС-91 [12:58:49]line Партнер нефть [12:58:49]line 02508201610067 [12:58:49]line Кассир : Адишов И. [12:58:49]line Счет N : (1)506933 [12:58:49]line 14.05.2024 12:41 [12:58:49]line ПРОДАЖА [12:58:49]line ТРК (МРК, ГНК): 41 [12:58:49]line Вид ГСМ : 2710194210 [12:58:49]line ДТ-К-5 [12:58:49]line 13.390 x 74.70 [12:58:49]line ИТОГ: 1000.23 [12:58:49]line Тип оплаты: Талоны: Топливная Карта [12:58:49]line 02750 [12:58:49]line ______________________ [12:58:49]line (подпись) [12:58:49]written 0, free lines is 4095 [12:58:49]Write to MH i2c: 01 00 00 C2 27 E9 [12:58:49]Write i2c OK [12:58:49]MH_I2C_Read... [12:58:49]Read from MH i2c: 01 [12:58:49]MH_I2C_Read... [12:58:49]Read from MH i2c: 01 07 00 [12:58:49]MH_I2C_Read... [12:58:49]Read from MH i2c: 01 07 00 C2 27 00 00 00 00 00 0D 0E 0B [12:58:49]RasterBufferAndPrint [12:58:49]line [12:58:49]line [12:58:49]line [12:58:49]line [12:58:49]line [12:58:49]written 0, free lines is 3600 [12:58:49]MH_Cut [12:58:49]Write to MH i2c: D1 01 00 C9 27 01 C2 [12:58:49]Write i2c OK [12:58:49]MH_I2C_Read... [12:58:49]Read from MH i2c: D1 [12:58:49]MH_I2C_Read... [12:58:49]Read from MH i2c: D1 01 00 [12:58:49]MH_I2C_Read... [12:58:49]Read from MH i2c: D1 01 00 C9 27 00 C1 [12:58:49]Write to MH i2c: 01 00 00 CA 27 F1 [12:58:49]Write i2c OK [12:58:49]MH_I2C_Read... [12:58:50]*** Cut start [12:58:50]*** Purtial cut [12:58:50]*** Stage 1: CUTSNS_PIN = 1 [12:58:50]OFD Sender: No OFD packet to send [12:58:50]Read from MH i2c: 01 [12:58:50]MH_I2C_Read... [12:58:50]*** Stop cut motor [12:58:50]*** Cut end [12:58:50]Read from MH i2c: 01 07 00 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: 01 07 00 CA 27 00 00 00 00 00 FF 0F 06 [12:58:50]process_action print_text done [12:58:50]requested_data is exist [12:58:50]produce_requested_data [12:58:50]requested_item fm.sn is exist - process it [12:58:50]wFMCommunicate request_size=4 [12:58:50]MH_SAM_APDU [12:58:50]CAPDU: 80 11 00 00 [12:58:50]Write to MH i2c: E2 08 00 CB 27 80 11 00 00 00 00 00 00 6C [12:58:50]Write i2c OK [12:58:50]MH_I2C_Read... [12:58:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:50]Read from MH i2c: E2 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: E2 17 00 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: E2 17 00 CB 27 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:58:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [12:58:50]wFMCommunicate OK [12:58:50]requested_item fd.num is exist - process it [12:58:50]SAM_PROTO_GetFieldsCounters [12:58:50]wFMCommunicate request_size=4 [12:58:50]MH_SAM_APDU [12:58:50]CAPDU: 80 13 00 00 [12:58:50]Write to MH i2c: E2 08 00 CC 27 80 13 00 00 00 00 00 00 6F [12:58:50]Write i2c OK [12:58:50]MH_I2C_Read... [12:58:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:50]Read from MH i2c: E2 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: E2 62 00 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: E2 62 00 CC 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F2 05 01 00 0E 04 04 00 63 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 B4 [12:58: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 F2 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:50]wFMCommunicate OK [12:58:50]SAM_PROTO_GetFieldsCounters done [12:58:50]requested_item shift.num is exist - process it [12:58:50]requested_item shift.opened is exist - process it [12:58:50]req_shift_opened [12:58:50]FM_GetShiftState [12:58:50]SAM_PROTO_GetShiftState [12:58:50]wFMCommunicate request_size=4 [12:58:50]MH_SAM_APDU [12:58:50]CAPDU: 80 13 01 00 [12:58:50]Write to MH i2c: E2 08 00 CD 27 80 13 01 00 00 00 00 00 71 [12:58:50]Write i2c OK [12:58:50]MH_I2C_Read... [12:58:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:50]Read from MH i2c: E2 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: E2 0E 00 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: E2 0E 00 CD 27 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 39 [12:58:50]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [12:58:50]wFMCommunicate OK [12:58:50]SAM_PROTO_GetShiftState done [12:58:50]FM_GetShiftState done [12:58:50]req_shift_opened done [12:58:50]requested_item shift.open_date is exist - process it [12:58:50]req_shift_open_date [12:58:50]req_shift_open_date done [12:58:50]produce_requested_data done [12:58:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67058,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [12:58:50]process_action_free print_text [12:58:50]json_value_free [12:58:50]json_value_free done [12:58:50]process_json_proto returns [12:58:50]Send response to host [12:58:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67058,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [12:58:50]free response buf [12:58:50]execute_script done [12:58:50]execute_script returns [12:58:50]free content buf [12:58:50]Sock 9.Close socket [12:58:50]Sock 9.Thread stoped [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:07]accept exits with 8 [13:00:07]New connection [13:00:07]New thread 3066760548 created [13:00:07]Thread 3066617188 joined [13:00:07]Waiting for new connection... [13:00:07] Sock 8.Parse request [13:00:07]Sock 8.Check first char [13:00:07]Sock 8.First char is OK [13:00:07]request: POST /json_proto HTTP/1.0 [13:00:07]Method: POST [13:00:07]URL: /json_proto [13:00:07]Method is POST - this is cgi request [13:00:07]url: /json_proto [13:00:07]query_string will be loaded in cgi processing [13:00:07]execute_cgi json_proto POST (null) [13:00:07]execute_cgi path=json_proto method=POST [13:00:07]POST find Content-Length [13:00:07]Host: 172.17.41.195:8080 [13:00:07]Content-Length: 817 [13:00:07]Content-Type: application/json [13:00:07] [13:00:07]POST finish read [13:00:07]Found Content-Length = 817 [13:00:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506929", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 9000.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:07]execute_script... [13:00: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)506929", "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 9000.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:07]POST & json_proto [13:00:07]process_json_proto [13:00:07]json parsed OK: [13:00:07]protocol is kg_v1.0 [13:00:07]action value=close_receipt [13:00:07]process_action close_receipt [13:00:07]cmd_close_receipt [13:00:07]MH_GetDate [13:00:07]Write to MH i2c: F0 00 00 CE 27 E4 [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: F0 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: F0 09 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: F0 09 00 CE 27 00 5C 60 43 66 FC 21 6F 64 42 [13:00:07]GetLastDocTimeStamp 1715691526 [13:00:07]current date 1715691612 [13:00:07]FM_GetShiftState [13:00:07]SAM_PROTO_GetShiftState [13:00:07]wFMCommunicate request_size=4 [13:00:07]MH_SAM_APDU [13:00:07]CAPDU: 80 13 01 00 [13:00:07]Write to MH i2c: E2 08 00 CF 27 80 13 01 00 00 00 00 00 73 [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:07]Read from MH i2c: E2 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 0E 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 0E 00 CF 27 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 3B [13:00:07]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:00:07]wFMCommunicate OK [13:00:07]SAM_PROTO_GetShiftState done [13:00:07]FM_GetShiftState done [13:00:07]opened in 1715646054 [13:00:07]opened+sec_in_day 1715732454 [13:00:07]quantity*price = 900060 [13:00:07]sum+1 = 900061 [13:00:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.60 НСП 1% : 79.65 НДС 12% : 955.82 Наличными: 0.00 Безнал.: 9000.60 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 66 14.05.2024 13:00 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67059 ФПД: 145491136244356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T130012&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67059&fm=145491136244356&tin=02508201610067®Number=0000000000091845&sum=900060 [13:00:08]StoreToDocumentArchive [13:00:08]shift 355 fd 67059 [13:00:08]save to /storage/0355/doc_00067059 [13:00:08]save last doc name /storage/0355/doc_00067059 to /storage/kkm_last_doc_name [13:00:08]save OK [13:00:08]Clear old archive folders... [13:00:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:00:08]tlvbuf is 003DD680 [13:00:08]SAM_PROTO_ClearQueue [13:00:08]wFMCommunicate request_size=4 [13:00:08]MH_SAM_APDU [13:00:08]CAPDU: 80 09 00 00 [13:00:08]Write to MH i2c: E2 08 00 DC 27 80 09 00 00 00 00 00 00 75 [13:00:08]Write i2c OK [13:00:08]MH_I2C_Read... [13:00:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:08]Read from MH i2c: E2 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: E2 03 00 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: E2 03 00 DC 27 00 90 00 77 [13:00:08]RAPDU: 90 00 [13:00:08]wFMCommunicate OK [13:00:08]SAM_PROTO_ClearQueue done [13:00:08]KKMCreateOFDPacket [13:00:08]OFDProtocolAddRootSTLVToBuf [13:00:08]FM_MakeSignedData [13:00:08]FM_MakeSignedData [13:00:08]SAM_PROTO_SignData [13:00:08]wFMCommunicate request_size=4 [13:00:08]MH_SAM_APDU [13:00:08]CAPDU: 80 0D 01 02 [13:00:08]Write to MH i2c: E2 08 00 DD 27 80 0D 01 02 00 00 00 00 7D [13:00:09]Write i2c OK [13:00:09]MH_I2C_Read... [13:00:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:09]Read from MH i2c: E2 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 03 00 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 03 00 DD 27 00 90 00 78 [13:00:09]RAPDU: 90 00 [13:00:09]wFMCommunicate OK [13:00:09]wFMCommunicate request_size=255 [13:00:09]MH_SAM_APDU [13:00: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 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 42 00 00 00 F4 03 04 00 5C 60 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F3 05 01 00 35 04 06 00 84 52 CB 7E [13:00:09]Write to MH i2c: E2 02 01 DE 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 5C 60 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F3 05 01 00 35 04 06 00 84 52 CB 7E 00 00 CA [13:00:09]Write i2c OK [13:00:09]MH_I2C_Read... [13:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:09]Read from MH i2c: E2 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 03 00 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 03 00 DE 27 00 90 00 79 [13:00:09]RAPDU: 90 00 [13:00:09]wFMCommunicate OK [13:00:09]wFMCommunicate request_size=7 [13:00:09]MH_SAM_APDU [13:00:09]CAPDU: 80 0D 02 02 02 6A 84 [13:00:09]Write to MH i2c: E2 0A 00 DF 27 80 0D 02 02 02 00 6A 84 00 00 72 [13:00:09]Write i2c OK [13:00:09]MH_I2C_Read... [13:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:09]Read from MH i2c: E2 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 03 00 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 03 00 DF 27 00 90 00 7A [13:00:09]RAPDU: 90 00 [13:00:09]wFMCommunicate OK [13:00:09]wFMCommunicate request_size=4 [13:00:09]MH_SAM_APDU [13:00:09]CAPDU: 80 0D 03 02 [13:00:09]Write to MH i2c: E2 08 00 E0 27 80 0D 03 02 00 00 00 00 82 [13:00:09]Write i2c OK [13:00:09]MH_I2C_Read... [13:00:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:09]Read from MH i2c: E2 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 0B 00 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 0B 00 E0 27 00 F5 ED E2 3A 0F 57 3B A2 90 00 C4 [13:00:09]RAPDU: F5 ED E2 3A 0F 57 3B A2 90 00 [13:00:09]wFMCommunicate OK [13:00:09]SAM_PROTO_SignData done [13:00:09]FM_MakeSignedData done [13:00:09]CreateOFDProtocolMessage [13:00:09]wFMCommunicate request_size=4 [13:00:09]MH_SAM_APDU [13:00:09]CAPDU: 80 11 00 00 [13:00:09]Write to MH i2c: E2 08 00 E1 27 80 11 00 00 00 00 00 00 82 [13:00:09]Write i2c OK [13:00:09]MH_I2C_Read... [13:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:09]Read from MH i2c: E2 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 17 00 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 17 00 E1 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D8 [13:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:00:09]wFMCommunicate OK [13:00:09]CreateOFDProtocolMessage done [13:00:09]OFDSenderStorePacket 67059 [13:00:09]StoreOFDPacket docnum=67059 [13:00: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 6C 79 04 01 D0 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 42 00 00 00 F4 03 04 00 5C 60 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F3 05 01 00 35 04 06 00 84 52 CB 7E 6A 84 F5 ED E2 3A 0F 57 3B A2 [13:00:09]CheckFolder [13:00:09]dirname=/storage/ofd_packets [13:00:09]CheckFolder done [13:00:09]ProducePacketName [13:00:09]name=ofd_packets/00067059 [13:00:09]NVStorageSaveData ofd_packets/00067059 [13:00:09]File name is /storage/ofd_packets/00067059 [13:00:09]Write 298 bytes [13:00:09]NVStorageSaveData done [13:00:09]OFDSenderStorePacket done [13:00:09]KKMCreateOFDPacket done [13:00:09]NVStorageSaveData kkm_last_timestamp [13:00:09]File name is /storage/kkm_last_timestamp [13:00:09]Write 4 bytes [13:00:09]NVStorageSaveData done [13:00:09]ExternCall_PrintAddStr [13:00:09]wPrintStart [13:00:09]Write to MH i2c: 01 00 00 E2 27 09 [13:00:09]Write i2c OK [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: 01 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: 01 07 00 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: 01 07 00 E2 27 00 00 00 00 00 FF 0F 1E [13:00:09]RasterBufferAndPrint [13:00:09]line Счет N : (1)506929 [13:00:09]line ИНН: 02508201610067 [13:00:09]line Контрольно-Кассовый Чек [13:00:09]line ПРОДАЖА [13:00:09]line ТРК (МРК, ГНК) : 21 [13:00:09]line Товар: 2710194210 [13:00:09]line ДТ-К-5 [13:00:09]line 120.490 * 74.70 [13:00:09]line = 9000.60 [13:00:09]line НДС 12% НСП 1% [13:00:09]line > о реализуемом товаре [13:00:09]line ИТОГО: 9000.60 [13:00:09]line НСП 1% : 79.65 [13:00:09]line НДС 12% : 955.82 [13:00:09]line Наличными: 0.00 [13:00:09]line Безнал.: 9000.60 [13:00:09]line Место: АЗС № 91 "Партнер Нефть" [13:00:09]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:00:09]line СНО: Общий режим [13:00:09]line Чек 66 14.05.2024 13:00 [13:00:09]line Смена: 355 ФФД: 1.0 [13:00:09]line ЗНМ: 0300000119 [13:00:09]line РНМ: 0000000000091845 [13:00:09]line Версия ККМ: 001 [13:00:09]line Платежная система: Бакай Банк [13:00:09]line ФМ: 0000000000871829 [13:00:09]line ФД: 67059 [13:00:09]line ФПД: 145491136244356 [13:00:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T130012&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67059&fm=145491136244356&tin=02508201610067®Number=0000000000091845&sum=900060 [13:00:09]OFD Sender: Processing packet 67059 [packets to send 35, broken 34] [13:00:09]ProducePacketName [13:00:09]name=ofd_packets/00067059 [13:00:09]OFD Sender: To server: pG, [13:00:09]CommunicateWithHost lk.salyk.kg:30040 [13:00:09]ConnectInit lk.salyk.kg [13:00:09]written 0, free lines is 4095 [13:00:09]Connected sock=10 [13:00:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 6C 79 04 01 D0 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 42 00 00 00 F4 03 04 00 5C 60 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F3 05 01 00 35 04 06 00 84 52 CB 7E 6A 84 F5 ED E2 3A 0F 57 3B A2 [13:00: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 21 5E 47 00 B4 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F3 05 01 00 F4 03 04 00 3C 08 43 66 B6 04 01 00 00 7E A3 25 03 34 2F 2E 65 [13:00:10]CommunicateWithHost err = 0 [13:00:10]CheckOFDResponse [13:00:10]1017 (14) - 77093643461234 [13:00:10]1041 (16) - 0000000000871829 [13:00:10]1040 (4) - 67059 [13:00:10]1012 (4) - 14.05.2024 06:44 [13:00:10]1206 (1) - 0 [13:00:10]OFD Sender: Remove packet 67059 [13:00:10]ProducePacketName [13:00:10]name=ofd_packets/00067059 [13:00:10]NVStorageDeleteData [13:00:10]Write to MH i2c: 01 00 00 0B 28 33 [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: 01 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: 01 07 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: 01 07 00 0B 28 00 00 00 00 00 D6 0C 1C [13:00:10]RasterBufferAndPrint [13:00:10]line [13:00:10]line [13:00:10]line [13:00:10]line [13:00:10]line [13:00:10]written 0, free lines is 3294 [13:00:10]MH_Cut [13:00:10]Write to MH i2c: D1 01 00 12 28 01 0C [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: D1 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: D1 01 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: D1 01 00 12 28 00 0B [13:00:10]Write to MH i2c: 01 00 00 13 28 3B [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]OFD Sender: No OFD packet to send [13:00:11]*** Cut start [13:00:11]*** Purtial cut [13:00:11]*** CUTSNS_PIN = 0 [13:00:11]*** Stage 1: CUTSNS_PIN = 1 [13:00:13]Read from MH i2c: 01 [13:00:13]MH_I2C_Read... [13:00:13]*** Stop cut motor [13:00:13]*** Cut end [13:00:13]Read from MH i2c: 01 07 00 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: 01 07 00 13 28 00 00 00 00 00 FF 0F 50 [13:00:13]process_action close_receipt done [13:00:13]requested_data is exist [13:00:13]produce_requested_data [13:00:13]requested_item fm.sn is exist - process it [13:00:13]wFMCommunicate request_size=4 [13:00:13]MH_SAM_APDU [13:00:13]CAPDU: 80 11 00 00 [13:00:13]Write to MH i2c: E2 08 00 14 28 80 11 00 00 00 00 00 00 B6 [13:00:13]Write i2c OK [13:00:13]MH_I2C_Read... [13:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:13]Read from MH i2c: E2 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 17 00 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 17 00 14 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0C [13:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:00:13]wFMCommunicate OK [13:00:13]requested_item fd.num is exist - process it [13:00:13]SAM_PROTO_GetFieldsCounters [13:00:13]wFMCommunicate request_size=4 [13:00:13]MH_SAM_APDU [13:00:13]CAPDU: 80 13 00 00 [13:00:13]Write to MH i2c: E2 08 00 15 28 80 13 00 00 00 00 00 00 B9 [13:00:13]Write i2c OK [13:00:13]MH_I2C_Read... [13:00:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:13]Read from MH i2c: E2 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 62 00 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 62 00 15 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F3 05 01 00 0E 04 04 00 63 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 02 [13:00: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 F3 05 01 00 0E 04 04 00 63 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:00:13]wFMCommunicate OK [13:00:13]SAM_PROTO_GetFieldsCounters done [13:00:13]requested_item shift.num is exist - process it [13:00:13]requested_item shift.opened is exist - process it [13:00:13]req_shift_opened [13:00:13]FM_GetShiftState [13:00:13]SAM_PROTO_GetShiftState [13:00:13]wFMCommunicate request_size=4 [13:00:13]MH_SAM_APDU [13:00:13]CAPDU: 80 13 01 00 [13:00:13]Write to MH i2c: E2 08 00 16 28 80 13 01 00 00 00 00 00 BB [13:00:13]Write i2c OK [13:00:13]MH_I2C_Read... [13:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:13]Read from MH i2c: E2 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 0E 00 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 0E 00 16 28 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 83 [13:00:13]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:00:13]wFMCommunicate OK [13:00:13]SAM_PROTO_GetShiftState done [13:00:13]FM_GetShiftState done [13:00:13]req_shift_opened done [13:00:13]requested_item shift.open_date is exist - process it [13:00:13]req_shift_open_date [13:00:13]req_shift_open_date done [13:00:13]produce_requested_data done [13:00:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67059,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [13:00:13]process_action_free close_receipt [13:00:13]json_value_free [13:00:13]json_value_free done [13:00:13]process_json_proto returns [13:00:13]Send response to host [13:00:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67059,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [13:00:13]free response buf [13:00:13]execute_script done [13:00:13]execute_script returns [13:00:13]free content buf [13:00:13]Sock 8.Close socket [13:00:13]Sock 8.Thread stoped [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [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:43]accept exits with 9 [13:01:43]New connection [13:01:43]New thread 3066617188 created [13:01:43]Thread 3066760548 joined [13:01:43]Waiting for new connection... [13:01:43] Sock 9.Parse request [13:01:43]Sock 9.Check first char [13:01:43]Sock 9.First char is OK [13:01:43]request: POST /json_proto HTTP/1.0 [13:01:43]Method: POST [13:01:43]URL: /json_proto [13:01:43]Method is POST - this is cgi request [13:01:43]url: /json_proto [13:01:43]query_string will be loaded in cgi processing [13:01:43]execute_cgi json_proto POST (null) [13:01:43]execute_cgi path=json_proto method=POST [13:01:43]POST find Content-Length [13:01:43]Host: 172.17.41.195:8080 [13:01:43]Content-Length: 816 [13:01:43]Content-Type: application/json [13:01:43] [13:01:43]POST finish read [13:01:43]Found Content-Length = 816 [13:01:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506930", "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" : 93.710, "sum" : 7000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 7000.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:43]execute_script... [13:01: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)506930", "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" : 93.710, "sum" : 7000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 7000.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:43]POST & json_proto [13:01:43]process_json_proto [13:01:43]json parsed OK: [13:01:43]protocol is kg_v1.0 [13:01:43]action value=close_receipt [13:01:43]process_action close_receipt [13:01:43]cmd_close_receipt [13:01:43]MH_GetDate [13:01:43]Write to MH i2c: F0 00 00 17 28 2E [13:01:43]Write i2c OK [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: F0 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: F0 09 00 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: F0 09 00 17 28 00 BC 60 43 66 FC 21 6F 64 EC [13:01:43]GetLastDocTimeStamp 1715691612 [13:01:43]current date 1715691708 [13:01:43]FM_GetShiftState [13:01:43]SAM_PROTO_GetShiftState [13:01:43]wFMCommunicate request_size=4 [13:01:43]MH_SAM_APDU [13:01:43]CAPDU: 80 13 01 00 [13:01:43]Write to MH i2c: E2 08 00 18 28 80 13 01 00 00 00 00 00 BD [13:01:43]Write i2c OK [13:01:43]MH_I2C_Read... [13:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:43]Read from MH i2c: E2 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 0E 00 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 0E 00 18 28 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 85 [13:01:43]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:01:43]wFMCommunicate OK [13:01:43]SAM_PROTO_GetShiftState done [13:01:43]FM_GetShiftState done [13:01:43]opened in 1715646054 [13:01:43]opened+sec_in_day 1715732454 [13:01:43]quantity*price = 700013 [13:01:43]sum+1 = 700015 [13:01:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7000.14 НСП 1% : 61.95 НДС 12% : 743.38 Наличными: 0.00 Безнал.: 7000.14 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 67 14.05.2024 13:01 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67060 ФПД: 263476298839345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T130148&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67060&fm=263476298839345&tin=02508201610067®Number=0000000000091845&sum=700014 [13:01:44]StoreToDocumentArchive [13:01:44]shift 355 fd 67060 [13:01:44]save to /storage/0355/doc_00067060 [13:01:44]save last doc name /storage/0355/doc_00067060 to /storage/kkm_last_doc_name [13:01:44]save OK [13:01:44]Clear old archive folders... [13:01:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:01:44]tlvbuf is 003CB780 [13:01:44]SAM_PROTO_ClearQueue [13:01:44]wFMCommunicate request_size=4 [13:01:44]MH_SAM_APDU [13:01:44]CAPDU: 80 09 00 00 [13:01:44]Write to MH i2c: E2 08 00 25 28 80 09 00 00 00 00 00 00 BF [13:01:44]Write i2c OK [13:01:44]MH_I2C_Read... [13:01:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:44]Read from MH i2c: E2 [13:01:44]MH_I2C_Read... [13:01:44]Read from MH i2c: E2 03 00 [13:01:44]MH_I2C_Read... [13:01:44]Read from MH i2c: E2 03 00 25 28 00 90 00 C1 [13:01:44]RAPDU: 90 00 [13:01:44]wFMCommunicate OK [13:01:44]SAM_PROTO_ClearQueue done [13:01:44]KKMCreateOFDPacket [13:01:44]OFDProtocolAddRootSTLVToBuf [13:01:44]FM_MakeSignedData [13:01:44]FM_MakeSignedData [13:01:44]SAM_PROTO_SignData [13:01:44]wFMCommunicate request_size=4 [13:01:44]MH_SAM_APDU [13:01:44]CAPDU: 80 0D 01 02 [13:01:44]Write to MH i2c: E2 08 00 26 28 80 0D 01 02 00 00 00 00 C7 [13:01:44]Write i2c OK [13:01:44]MH_I2C_Read... [13:01:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:44]Read from MH i2c: E2 [13:01:44]MH_I2C_Read... [13:01:44]Read from MH i2c: E2 03 00 [13:01:44]MH_I2C_Read... [13:01:44]Read from MH i2c: E2 03 00 26 28 00 90 00 C2 [13:01:44]RAPDU: 90 00 [13:01:44]wFMCommunicate OK [13:01:44]wFMCommunicate request_size=255 [13:01:44]MH_SAM_APDU [13:01: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 0E 6E 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6E AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 BC 60 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F4 05 01 00 35 04 06 00 EF A1 5B 32 [13:01:44]Write to MH i2c: E2 02 01 27 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 6E 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6E AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 BC 60 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F4 05 01 00 35 04 06 00 EF A1 5B 32 00 00 B6 [13:01:44]Write i2c OK [13:01:44]MH_I2C_Read... [13:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:45]Read from MH i2c: E2 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 03 00 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 03 00 27 28 00 90 00 C3 [13:01:45]RAPDU: 90 00 [13:01:45]wFMCommunicate OK [13:01:45]wFMCommunicate request_size=7 [13:01:45]MH_SAM_APDU [13:01:45]CAPDU: 80 0D 02 02 02 F5 31 [13:01:45]Write to MH i2c: E2 0A 00 28 28 80 0D 02 02 02 00 F5 31 00 00 F4 [13:01:45]Write i2c OK [13:01:45]MH_I2C_Read... [13:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:45]Read from MH i2c: E2 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 03 00 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 03 00 28 28 00 90 00 C4 [13:01:45]RAPDU: 90 00 [13:01:45]wFMCommunicate OK [13:01:45]wFMCommunicate request_size=4 [13:01:45]MH_SAM_APDU [13:01:45]CAPDU: 80 0D 03 02 [13:01:45]Write to MH i2c: E2 08 00 29 28 80 0D 03 02 00 00 00 00 CC [13:01:45]Write i2c OK [13:01:45]MH_I2C_Read... [13:01:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:45]Read from MH i2c: E2 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 0B 00 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 0B 00 29 28 00 81 E5 FC BB 91 6A 61 D2 90 00 18 [13:01:45]RAPDU: 81 E5 FC BB 91 6A 61 D2 90 00 [13:01:45]wFMCommunicate OK [13:01:45]SAM_PROTO_SignData done [13:01:45]FM_MakeSignedData done [13:01:45]CreateOFDProtocolMessage [13:01:45]wFMCommunicate request_size=4 [13:01:45]MH_SAM_APDU [13:01:45]CAPDU: 80 11 00 00 [13:01:45]Write to MH i2c: E2 08 00 2A 28 80 11 00 00 00 00 00 00 CC [13:01:45]Write i2c OK [13:01:45]MH_I2C_Read... [13:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:45]Read from MH i2c: E2 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 17 00 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: E2 17 00 2A 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 22 [13:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:01:45]wFMCommunicate OK [13:01:45]CreateOFDProtocolMessage done [13:01:45]OFDSenderStorePacket 67060 [13:01:45]StoreOFDPacket docnum=67060 [13:01:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 E2 76 04 01 4A 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 0E 6E 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6E AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 BC 60 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F4 05 01 00 35 04 06 00 EF A1 5B 32 F5 31 81 E5 FC BB 91 6A 61 D2 [13:01:45]CheckFolder [13:01:45]dirname=/storage/ofd_packets [13:01:45]CheckFolder done [13:01:45]ProducePacketName [13:01:45]name=ofd_packets/00067060 [13:01:45]NVStorageSaveData ofd_packets/00067060 [13:01:45]File name is /storage/ofd_packets/00067060 [13:01:45]Write 298 bytes [13:01:45]NVStorageSaveData done [13:01:45]OFDSenderStorePacket done [13:01:45]KKMCreateOFDPacket done [13:01:45]NVStorageSaveData kkm_last_timestamp [13:01:45]File name is /storage/kkm_last_timestamp [13:01:45]Write 4 bytes [13:01:45]NVStorageSaveData done [13:01:45]ExternCall_PrintAddStr [13:01:45]wPrintStart [13:01:45]Write to MH i2c: 01 00 00 2B 28 53 [13:01:45]Write i2c OK [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: 01 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: 01 07 00 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: 01 07 00 2B 28 00 00 00 00 00 FF 0F 68 [13:01:45]RasterBufferAndPrint [13:01:45]line Счет N : (1)506930 [13:01:45]line ИНН: 02508201610067 [13:01:45]line Контрольно-Кассовый Чек [13:01:45]line ПРОДАЖА [13:01:45]line ТРК (МРК, ГНК) : 11 [13:01:45]line Товар: 2710194210 [13:01:45]line ДТ-К-5 [13:01:45]line 93.710 * 74.70 [13:01:45]line = 7000.14 [13:01:45]line НДС 12% НСП 1% [13:01:45]line > о реализуемом товаре [13:01:45]line ИТОГО: 7000.14 [13:01:45]line НСП 1% : 61.95 [13:01:45]line НДС 12% : 743.38 [13:01:45]line Наличными: 0.00 [13:01:45]line Безнал.: 7000.14 [13:01:45]line Место: АЗС № 91 "Партнер Нефть" [13:01:45]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:01:45]line СНО: Общий режим [13:01:45]line Чек 67 14.05.2024 13:01 [13:01:45]line Смена: 355 ФФД: 1.0 [13:01:45]line ЗНМ: 0300000119 [13:01:45]line РНМ: 0000000000091845 [13:01:45]line Версия ККМ: 001 [13:01:45]line Платежная система: Бакай Банк [13:01:45]line ФМ: 0000000000871829 [13:01:45]line ФД: 67060 [13:01:45]line ФПД: 263476298839345 [13:01:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T130148&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67060&fm=263476298839345&tin=02508201610067®Number=0000000000091845&sum=700014 [13:01:45]OFD Sender: Processing packet 67060 [packets to send 35, broken 34] [13:01:45]ProducePacketName [13:01:45]name=ofd_packets/00067060 [13:01:45]OFD Sender: To server: pG, [13:01:45]CommunicateWithHost lk.salyk.kg:30040 [13:01:45]ConnectInit lk.salyk.kg [13:01:45]written 0, free lines is 4095 [13:01:45]Write to MH i2c: 01 00 00 54 28 7C [13:01:45]Write i2c OK [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: 01 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: 01 07 00 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: 01 07 00 54 28 00 00 00 00 00 CF 0C 5E [13:01:45]RasterBufferAndPrint [13:01:45]line [13:01:45]line [13:01:45]line [13:01:45]line [13:01:45]line [13:01:45]written 0, free lines is 3283 [13:01:45]MH_Cut [13:01:45]Write to MH i2c: D1 01 00 5B 28 01 55 [13:01:45]Write i2c OK [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: D1 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: D1 01 00 [13:01:45]MH_I2C_Read... [13:01:45]Read from MH i2c: D1 01 00 5B 28 00 54 [13:01:45]Write to MH i2c: 01 00 00 5C 28 84 [13:01:45]Write i2c OK [13:01:45]MH_I2C_Read... [13:01:46]*** Cut start [13:01:46]*** Purtial cut [13:01:46]*** Stage 1: CUTSNS_PIN = 1 [13:01:47]Read from MH i2c: 01 [13:01:47]MH_I2C_Read... [13:01:47]*** Stop cut motor [13:01:47]*** Cut end [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 5C 28 00 00 00 00 00 FF 0F 99 [13:01:47]process_action close_receipt done [13:01:47]requested_data is exist [13:01:47]produce_requested_data [13:01:47]requested_item fm.sn is exist - process it [13:01:47]wFMCommunicate request_size=4 [13:01:47]MH_SAM_APDU [13:01:47]CAPDU: 80 11 00 00 [13:01:47]Write to MH i2c: E2 08 00 5D 28 80 11 00 00 00 00 00 00 FF [13:01:47]Write i2c OK [13:01:47]MH_I2C_Read... [13:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:47]Read from MH i2c: E2 [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: E2 17 00 [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: E2 17 00 5D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 55 [13:01:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:01:47]wFMCommunicate OK [13:01:47]requested_item fd.num is exist - process it [13:01:47]SAM_PROTO_GetFieldsCounters [13:01:47]wFMCommunicate request_size=4 [13:01:47]MH_SAM_APDU [13:01:47]CAPDU: 80 13 00 00 [13:01:47]Write to MH i2c: E2 08 00 5E 28 80 13 00 00 00 00 00 00 02 [13:01:47]Write i2c OK [13:01:47]MH_I2C_Read... [13:01:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:47]Read from MH i2c: E2 [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: E2 62 00 [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: E2 62 00 5E 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F4 05 01 00 0E 04 04 00 63 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 4F [13:01:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F4 05 01 00 0E 04 04 00 63 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:01:47]wFMCommunicate OK [13:01:47]SAM_PROTO_GetFieldsCounters done [13:01:47]requested_item shift.num is exist - process it [13:01:47]requested_item shift.opened is exist - process it [13:01:47]req_shift_opened [13:01:47]FM_GetShiftState [13:01:47]SAM_PROTO_GetShiftState [13:01:47]wFMCommunicate request_size=4 [13:01:47]MH_SAM_APDU [13:01:47]CAPDU: 80 13 01 00 [13:01:47]Write to MH i2c: E2 08 00 5F 28 80 13 01 00 00 00 00 00 04 [13:01:47]Write i2c OK [13:01:47]MH_I2C_Read... [13:01:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:47]Read from MH i2c: E2 [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: E2 0E 00 [13:01:47]MH_I2C_Read... [13:01:47]Read from MH i2c: E2 0E 00 5F 28 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 CC [13:01:47]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:01:47]wFMCommunicate OK [13:01:47]SAM_PROTO_GetShiftState done [13:01:47]FM_GetShiftState done [13:01:47]req_shift_opened done [13:01:47]requested_item shift.open_date is exist - process it [13:01:47]req_shift_open_date [13:01:47]req_shift_open_date done [13:01:47]produce_requested_data done [13:01:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67060,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [13:01:47]process_action_free close_receipt [13:01:47]json_value_free [13:01:47]json_value_free done [13:01:47]process_json_proto returns [13:01:47]Send response to host [13:01:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67060,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [13:01:47]free response buf [13:01:47]execute_script done [13:01:47]execute_script returns [13:01:47]free content buf [13:01:47]Sock 9.Close socket [13:01:47]Sock 9.Thread stoped [13:01:50]ConnectInit Can't take IP for lk.salyk.kg [13:01:50]CommunicateWithHost connect error [13:01:50]CommunicateWithHost err = -1 [13:01:50]OFD Sender: Server communicate error [13:01:55]OFD Sender: Processing packet 67060 [packets to send 35, broken 34] [13:01:55]ProducePacketName [13:01:55]name=ofd_packets/00067060 [13:01:55]OFD Sender: To server: pG, [13:01:55]CommunicateWithHost lk.salyk.kg:30040 [13:01:55]ConnectInit lk.salyk.kg [13:01:55]Connected sock=9 [13:01: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 0C 01 00 00 E2 76 04 01 4A 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 0E 6E 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6E AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6E AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6E AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 BC 60 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F4 05 01 00 35 04 06 00 EF A1 5B 32 F5 31 81 E5 FC BB 91 6A 61 D2 [13:01: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 27 B5 47 00 E2 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F4 05 01 00 F4 03 04 00 A5 08 43 66 B6 04 01 00 00 BD 5A 38 0B 3B 7E E0 13 [13:01:55]CommunicateWithHost err = 0 [13:01:55]CheckOFDResponse [13:01:55]1017 (14) - 77093643461234 [13:01:55]1041 (16) - 0000000000871829 [13:01:55]1040 (4) - 67060 [13:01:55]1012 (4) - 14.05.2024 06:45 [13:01:55]1206 (1) - 0 [13:01:55]OFD Sender: Remove packet 67060 [13:01:55]ProducePacketName [13:01:55]name=ofd_packets/00067060 [13:01:55]NVStorageDeleteData [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:35]accept exits with 8 [13:02:35]New connection [13:02:35]New thread 3066760548 created [13:02:35]Thread 3066617188 joined [13:02:35]Waiting for new connection... [13:02:35] Sock 8.Parse request [13:02:35]Sock 8.Check first char [13:02:35]Sock 8.First char is OK [13:02:35]request: POST /json_proto HTTP/1.0 [13:02:35]Method: POST [13:02:35]URL: /json_proto [13:02:35]Method is POST - this is cgi request [13:02:35]url: /json_proto [13:02:35]query_string will be loaded in cgi processing [13:02:35]execute_cgi json_proto POST (null) [13:02:35]execute_cgi path=json_proto method=POST [13:02:35]POST find Content-Length [13:02:35]Host: 172.17.41.195:8080 [13:02:35]Content-Length: 800 [13:02:35]Content-Type: application/json [13:02:35] [13:02:35]POST finish read [13:02:35]Found Content-Length = 800 [13:02:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506934", "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" ] } } [13:02:35]execute_script... [13:02: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)506934", "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" ] } } [13:02:35]POST & json_proto [13:02:35]process_json_proto [13:02:35]json parsed OK: [13:02:35]protocol is kg_v1.0 [13:02:35]action value=close_receipt [13:02:35]process_action close_receipt [13:02:35]cmd_close_receipt [13:02:35]MH_GetDate [13:02:35]Write to MH i2c: F0 00 00 60 28 77 [13:02:35]Write i2c OK [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: F0 [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: F0 09 00 [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: F0 09 00 60 28 00 EF 60 43 66 FC 21 6F 64 68 [13:02:35]GetLastDocTimeStamp 1715691708 [13:02:35]current date 1715691759 [13:02:35]FM_GetShiftState [13:02:35]SAM_PROTO_GetShiftState [13:02:35]wFMCommunicate request_size=4 [13:02:35]MH_SAM_APDU [13:02:35]CAPDU: 80 13 01 00 [13:02:35]Write to MH i2c: E2 08 00 61 28 80 13 01 00 00 00 00 00 06 [13:02:35]Write i2c OK [13:02:35]MH_I2C_Read... [13:02:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:35]Read from MH i2c: E2 [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: E2 0E 00 [13:02:35]MH_I2C_Read... [13:02:35]Read from MH i2c: E2 0E 00 61 28 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 CE [13:02:35]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:02:35]wFMCommunicate OK [13:02:35]SAM_PROTO_GetShiftState done [13:02:35]FM_GetShiftState done [13:02:35]opened in 1715646054 [13:02:35]opened+sec_in_day 1715732454 [13:02:35]quantity*price = 250020 [13:02:35]sum+1 = 250022 [13:02:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.21 НСП 1% : 22.13 НДС 12% : 265.51 Наличными: 0.00 Безнал.: 2500.21 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 68 14.05.2024 13:02 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67061 ФПД: 31860005397367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T130239&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67061&fm=31860005397367&tin=02508201610067®Number=0000000000091845&sum=250021 [13:02:36]StoreToDocumentArchive [13:02:36]shift 355 fd 67061 [13:02:36]save to /storage/0355/doc_00067061 [13:02:36]save last doc name /storage/0355/doc_00067061 to /storage/kkm_last_doc_name [13:02:36]save OK [13:02:36]Clear old archive folders... [13:02:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:02:36]tlvbuf is 003DE2D0 [13:02:36]SAM_PROTO_ClearQueue [13:02:36]wFMCommunicate request_size=4 [13:02:36]MH_SAM_APDU [13:02:36]CAPDU: 80 09 00 00 [13:02:36]Write to MH i2c: E2 08 00 6E 28 80 09 00 00 00 00 00 00 08 [13:02:36]Write i2c OK [13:02:36]MH_I2C_Read... [13:02:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:36]Read from MH i2c: E2 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 03 00 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 03 00 6E 28 00 90 00 0A [13:02:36]RAPDU: 90 00 [13:02:36]wFMCommunicate OK [13:02:36]SAM_PROTO_ClearQueue done [13:02:36]KKMCreateOFDPacket [13:02:36]OFDProtocolAddRootSTLVToBuf [13:02:36]FM_MakeSignedData [13:02:36]FM_MakeSignedData [13:02:36]SAM_PROTO_SignData [13:02:36]wFMCommunicate request_size=4 [13:02:36]MH_SAM_APDU [13:02:36]CAPDU: 80 0D 01 02 [13:02:36]Write to MH i2c: E2 08 00 6F 28 80 0D 01 02 00 00 00 00 10 [13:02:36]Write i2c OK [13:02:36]MH_I2C_Read... [13:02:36]OFD Sender: No OFD packet to send [13:02:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:36]Read from MH i2c: E2 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 03 00 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 03 00 6F 28 00 90 00 0B [13:02:36]RAPDU: 90 00 [13:02:36]wFMCommunicate OK [13:02:36]wFMCommunicate request_size=255 [13:02:36]MH_SAM_APDU [13:02: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 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 44 00 00 00 F4 03 04 00 EF 60 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F5 05 01 00 35 04 06 00 1C F9 FC 4D [13:02:36]Write to MH i2c: E2 02 01 70 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 44 00 00 00 F4 03 04 00 EF 60 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F5 05 01 00 35 04 06 00 1C F9 FC 4D 00 00 29 [13:02:36]Write i2c OK [13:02:36]MH_I2C_Read... [13:02:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:36]Read from MH i2c: E2 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 03 00 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 03 00 70 28 00 90 00 0C [13:02:36]RAPDU: 90 00 [13:02:36]wFMCommunicate OK [13:02:36]wFMCommunicate request_size=7 [13:02:36]MH_SAM_APDU [13:02:36]CAPDU: 80 0D 02 02 02 E3 77 [13:02:36]Write to MH i2c: E2 0A 00 71 28 80 0D 02 02 02 00 E3 77 00 00 71 [13:02:36]Write i2c OK [13:02:36]MH_I2C_Read... [13:02:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:36]Read from MH i2c: E2 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 03 00 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 03 00 71 28 00 90 00 0D [13:02:36]RAPDU: 90 00 [13:02:36]wFMCommunicate OK [13:02:36]wFMCommunicate request_size=4 [13:02:36]MH_SAM_APDU [13:02:36]CAPDU: 80 0D 03 02 [13:02:36]Write to MH i2c: E2 08 00 72 28 80 0D 03 02 00 00 00 00 15 [13:02:36]Write i2c OK [13:02:36]MH_I2C_Read... [13:02:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:36]Read from MH i2c: E2 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 0B 00 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 0B 00 72 28 00 83 19 B9 CA 75 02 6B 0F 90 00 26 [13:02:36]RAPDU: 83 19 B9 CA 75 02 6B 0F 90 00 [13:02:36]wFMCommunicate OK [13:02:36]SAM_PROTO_SignData done [13:02:36]FM_MakeSignedData done [13:02:36]CreateOFDProtocolMessage [13:02:36]wFMCommunicate request_size=4 [13:02:36]MH_SAM_APDU [13:02:36]CAPDU: 80 11 00 00 [13:02:36]Write to MH i2c: E2 08 00 73 28 80 11 00 00 00 00 00 00 15 [13:02:36]Write i2c OK [13:02:36]MH_I2C_Read... [13:02:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:36]Read from MH i2c: E2 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 17 00 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: E2 17 00 73 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6B [13:02:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:02:36]wFMCommunicate OK [13:02:36]CreateOFDProtocolMessage done [13:02:36]OFDSenderStorePacket 67061 [13:02:36]StoreOFDPacket docnum=67061 [13:02: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 0C 01 00 00 16 5A 04 01 51 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 44 00 00 00 F4 03 04 00 EF 60 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F5 05 01 00 35 04 06 00 1C F9 FC 4D E3 77 83 19 B9 CA 75 02 6B 0F [13:02:36]CheckFolder [13:02:36]dirname=/storage/ofd_packets [13:02:36]CheckFolder done [13:02:36]ProducePacketName [13:02:36]name=ofd_packets/00067061 [13:02:36]NVStorageSaveData ofd_packets/00067061 [13:02:36]File name is /storage/ofd_packets/00067061 [13:02:36]Write 298 bytes [13:02:36]NVStorageSaveData done [13:02:36]OFDSenderStorePacket done [13:02:36]KKMCreateOFDPacket done [13:02:36]NVStorageSaveData kkm_last_timestamp [13:02:36]File name is /storage/kkm_last_timestamp [13:02:36]Write 4 bytes [13:02:36]NVStorageSaveData done [13:02:36]ExternCall_PrintAddStr [13:02:36]wPrintStart [13:02:36]Write to MH i2c: 01 00 00 74 28 9C [13:02:36]Write i2c OK [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: 01 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: 01 07 00 [13:02:36]MH_I2C_Read... [13:02:36]Read from MH i2c: 01 07 00 74 28 00 00 00 00 00 FF 0F B1 [13:02:36]RasterBufferAndPrint [13:02:36]line Счет N : (1)506934 [13:02:36]line ИНН: 02508201610067 [13:02:36]line Контрольно-Кассовый Чек [13:02:36]line ПРОДАЖА [13:02:36]line ТРК (МРК, ГНК) : 31 [13:02:36]line Товар: 2710194210 [13:02:36]line ДТ-К-5 [13:02:36]line 33.470 * 74.70 [13:02:36]line = 2500.21 [13:02:36]line НДС 12% НСП 1% [13:02:36]line > о реализуемом товаре [13:02:36]line ИТОГО: 2500.21 [13:02:36]line НСП 1% : 22.13 [13:02:36]line НДС 12% : 265.51 [13:02:36]line Наличными: 0.00 [13:02:36]line Безнал.: 2500.21 [13:02:36]line Место: АЗС № 91 "Партнер Нефть" [13:02:36]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:02:36]line СНО: Общий режим [13:02:36]line Чек 68 14.05.2024 13:02 [13:02:36]line Смена: 355 ФФД: 1.0 [13:02:36]line ЗНМ: 0300000119 [13:02:36]line РНМ: 0000000000091845 [13:02:36]line Версия ККМ: 001 [13:02:36]line Платежная система: O! деньги [13:02:36]line ФМ: 0000000000871829 [13:02:36]line ФД: 67061 [13:02:36]line ФПД: 31860005397367 [13:02:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T130239&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67061&fm=31860005397367&tin=02508201610067®Number=0000000000091845&sum=250021 [13:02:37]OFD Sender: Processing packet 67061 [packets to send 35, broken 34] [13:02:37]ProducePacketName [13:02:37]name=ofd_packets/00067061 [13:02:37]OFD Sender: To server: pG, [13:02:37]CommunicateWithHost lk.salyk.kg:30040 [13:02:37]ConnectInit lk.salyk.kg [13:02:37]written 0, free lines is 4095 [13:02:37]Connected sock=10 [13:02: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 16 5A 04 01 51 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 44 00 00 00 F4 03 04 00 EF 60 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F5 05 01 00 35 04 06 00 1C F9 FC 4D E3 77 83 19 B9 CA 75 02 6B 0F [13:02: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 4A 0A 47 00 0E 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F5 05 01 00 F4 03 04 00 CF 08 43 66 B6 04 01 00 00 CC 7C D6 55 3A 34 6A 97 [13:02:37]CommunicateWithHost err = 0 [13:02:37]CheckOFDResponse [13:02:37]1017 (14) - 77093643461234 [13:02:37]1041 (16) - 0000000000871829 [13:02:37]1040 (4) - 67061 [13:02:37]1012 (4) - 14.05.2024 06:46 [13:02:37]1206 (1) - 0 [13:02:37]OFD Sender: Remove packet 67061 [13:02:37]ProducePacketName [13:02:37]name=ofd_packets/00067061 [13:02:37]NVStorageDeleteData [13:02:37]Write to MH i2c: 01 00 00 9D 28 C5 [13:02:37]Write i2c OK [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: 01 [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: 01 07 00 [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: 01 07 00 9D 28 00 00 00 00 00 D3 0C AB [13:02:37]RasterBufferAndPrint [13:02:37]line [13:02:37]line [13:02:37]line [13:02:37]line [13:02:37]line [13:02:37]written 0, free lines is 3289 [13:02:37]MH_Cut [13:02:37]Write to MH i2c: D1 01 00 A4 28 01 9E [13:02:37]Write i2c OK [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: D1 [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: D1 01 00 [13:02:37]MH_I2C_Read... [13:02:37]Read from MH i2c: D1 01 00 A4 28 00 9D [13:02:37]Write to MH i2c: 01 00 00 A5 28 CD [13:02:37]Write i2c OK [13:02:37]MH_I2C_Read... [13:02:38]OFD Sender: No OFD packet to send [13:02:38]*** Cut start [13:02:38]*** Purtial cut [13:02:38]*** CUTSNS_PIN = 0 [13:02:38]*** Stage 1: CUTSNS_PIN = 1 [13:02:40]Read from MH i2c: 01 [13:02:40]MH_I2C_Read... [13:02:40]*** Stop cut motor [13:02:40]*** Cut end [13:02:40]Read from MH i2c: 01 07 00 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: 01 07 00 A5 28 00 00 00 00 00 FF 0F E2 [13:02:40]process_action close_receipt done [13:02:40]requested_data is exist [13:02:40]produce_requested_data [13:02:40]requested_item fm.sn is exist - process it [13:02:40]wFMCommunicate request_size=4 [13:02:40]MH_SAM_APDU [13:02:40]CAPDU: 80 11 00 00 [13:02:40]Write to MH i2c: E2 08 00 A6 28 80 11 00 00 00 00 00 00 48 [13:02:40]Write i2c OK [13:02:40]MH_I2C_Read... [13:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:40]Read from MH i2c: E2 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: E2 17 00 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: E2 17 00 A6 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9E [13: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 [13:02:40]wFMCommunicate OK [13:02:40]requested_item fd.num is exist - process it [13:02:40]SAM_PROTO_GetFieldsCounters [13:02:40]wFMCommunicate request_size=4 [13:02:40]MH_SAM_APDU [13:02:40]CAPDU: 80 13 00 00 [13:02:40]Write to MH i2c: E2 08 00 A7 28 80 13 00 00 00 00 00 00 4B [13:02:40]Write i2c OK [13:02:40]MH_I2C_Read... [13:02:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:40]Read from MH i2c: E2 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: E2 62 00 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: E2 62 00 A7 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F5 05 01 00 0E 04 04 00 63 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 9C [13:02: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 F5 05 01 00 0E 04 04 00 63 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:02:40]wFMCommunicate OK [13:02:40]SAM_PROTO_GetFieldsCounters done [13:02:40]requested_item shift.num is exist - process it [13:02:40]requested_item shift.opened is exist - process it [13:02:40]req_shift_opened [13:02:40]FM_GetShiftState [13:02:40]SAM_PROTO_GetShiftState [13:02:40]wFMCommunicate request_size=4 [13:02:40]MH_SAM_APDU [13:02:40]CAPDU: 80 13 01 00 [13:02:40]Write to MH i2c: E2 08 00 A8 28 80 13 01 00 00 00 00 00 4D [13:02:40]Write i2c OK [13:02:40]MH_I2C_Read... [13:02:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:40]Read from MH i2c: E2 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: E2 0E 00 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: E2 0E 00 A8 28 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 15 [13:02:40]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:02:40]wFMCommunicate OK [13:02:40]SAM_PROTO_GetShiftState done [13:02:40]FM_GetShiftState done [13:02:40]req_shift_opened done [13:02:40]requested_item shift.open_date is exist - process it [13:02:40]req_shift_open_date [13:02:40]req_shift_open_date done [13:02:40]produce_requested_data done [13:02:40]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67061,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [13:02:40]process_action_free close_receipt [13:02:40]json_value_free [13:02:40]json_value_free done [13:02:40]process_json_proto returns [13:02:40]Send response to host [13:02:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67061,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [13:02:40]free response buf [13:02:40]execute_script done [13:02:40]execute_script returns [13:02:40]free content buf [13:02:40]Sock 8.Close socket [13:02:40]Sock 8.Thread stoped [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:04]accept exits with 9 [13:07:04]New connection [13:07:04]New thread 3066617188 created [13:07:04]Thread 3066760548 joined [13:07:04]Waiting for new connection... [13:07:04] Sock 9.Parse request [13:07:04]Sock 9.Check first char [13:07:04]Sock 9.First char is OK [13:07:04]request: POST /json_proto HTTP/1.0 [13:07:04]Method: POST [13:07:04]URL: /json_proto [13:07:04]Method is POST - this is cgi request [13:07:04]url: /json_proto [13:07:04]query_string will be loaded in cgi processing [13:07:04]execute_cgi json_proto POST (null) [13:07:04]execute_cgi path=json_proto method=POST [13:07:04]POST find Content-Length [13:07:04]Host: 172.17.41.195:8080 [13:07:04]Content-Length: 677 [13:07:04]Content-Type: application/json [13:07:04] [13:07:04]POST finish read [13:07:04]Found Content-Length = 677 [13:07:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506935", "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" ] } } [13:07:04]execute_script... [13:07: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)506935", "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" ] } } [13:07:04]POST & json_proto [13:07:04]process_json_proto [13:07:04]json parsed OK: [13:07:04]protocol is kg_v1.0 [13:07:04]action value=close_receipt [13:07:04]process_action close_receipt [13:07:04]cmd_close_receipt [13:07:04]MH_GetDate [13:07:04]Write to MH i2c: F0 00 00 A9 28 C0 [13:07:04]Write i2c OK [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: F0 [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: F0 09 00 [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: F0 09 00 A9 28 00 FC 61 43 66 FC 21 6F 64 BF [13:07:04]GetLastDocTimeStamp 1715691759 [13:07:04]current date 1715692028 [13:07:04]FM_GetShiftState [13:07:04]SAM_PROTO_GetShiftState [13:07:04]wFMCommunicate request_size=4 [13:07:04]MH_SAM_APDU [13:07:04]CAPDU: 80 13 01 00 [13:07:04]Write to MH i2c: E2 08 00 AA 28 80 13 01 00 00 00 00 00 4F [13:07:04]Write i2c OK [13:07:04]MH_I2C_Read... [13:07:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:04]Read from MH i2c: E2 [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: E2 0E 00 [13:07:04]MH_I2C_Read... [13:07:04]Read from MH i2c: E2 0E 00 AA 28 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 17 [13:07:04]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:07:04]wFMCommunicate OK [13:07:04]SAM_PROTO_GetShiftState done [13:07:04]FM_GetShiftState done [13:07:04]opened in 1715646054 [13:07:04]opened+sec_in_day 1715732454 [13:07:04]quantity*price = 30060 [13:07:04]sum+1 = 30061 [13:07: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 СНО: Общий режим Чек 69 14.05.2024 13:07 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67062 ФПД: 105462374809545 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T130708&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67062&fm=105462374809545&tin=02508201610067®Number=0000000000091845&sum=30000 [13:07:05]StoreToDocumentArchive [13:07:05]shift 355 fd 67062 [13:07:05]save to /storage/0355/doc_00067062 [13:07:05]save last doc name /storage/0355/doc_00067062 to /storage/kkm_last_doc_name [13:07:05]save OK [13:07:05]Clear old archive folders... [13:07:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:05]tlvbuf is 00340810 [13:07:05]SAM_PROTO_ClearQueue [13:07:05]wFMCommunicate request_size=4 [13:07:05]MH_SAM_APDU [13:07:05]CAPDU: 80 09 00 00 [13:07:05]Write to MH i2c: E2 08 00 B7 28 80 09 00 00 00 00 00 00 51 [13:07:05]Write i2c OK [13:07:05]MH_I2C_Read... [13:07:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:05]Read from MH i2c: E2 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 03 00 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 03 00 B7 28 00 90 00 53 [13:07:05]RAPDU: 90 00 [13:07:05]wFMCommunicate OK [13:07:05]SAM_PROTO_ClearQueue done [13:07:05]KKMCreateOFDPacket [13:07:05]OFDProtocolAddRootSTLVToBuf [13:07:05]FM_MakeSignedData [13:07:05]FM_MakeSignedData [13:07:05]SAM_PROTO_SignData [13:07:05]wFMCommunicate request_size=4 [13:07:05]MH_SAM_APDU [13:07:05]CAPDU: 80 0D 01 02 [13:07:05]Write to MH i2c: E2 08 00 B8 28 80 0D 01 02 00 00 00 00 59 [13:07:05]Write i2c OK [13:07:05]MH_I2C_Read... [13:07:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:05]Read from MH i2c: E2 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 03 00 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 03 00 B8 28 00 90 00 54 [13:07:05]RAPDU: 90 00 [13:07:05]wFMCommunicate OK [13:07:05]wFMCommunicate request_size=255 [13:07:05]MH_SAM_APDU [13:07: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 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 45 00 00 00 F4 03 04 00 FC 61 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F6 05 01 00 35 04 06 00 5F [13:07:05]Write to MH i2c: E2 02 01 B9 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 FC 61 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F6 05 01 00 35 04 06 00 5F 00 00 03 [13:07:05]Write i2c OK [13:07:05]MH_I2C_Read... [13:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:05]Read from MH i2c: E2 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 03 00 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 03 00 B9 28 00 90 00 55 [13:07:05]RAPDU: 90 00 [13:07:05]wFMCommunicate OK [13:07:05]wFMCommunicate request_size=10 [13:07:05]MH_SAM_APDU [13:07:05]CAPDU: 80 0D 02 02 05 EA DF 63 3F C9 [13:07:05]Write to MH i2c: E2 0D 00 BA 28 80 0D 02 02 05 00 EA DF 63 3F C9 00 00 9A [13:07:05]Write i2c OK [13:07:05]MH_I2C_Read... [13:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:05]Read from MH i2c: E2 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 03 00 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 03 00 BA 28 00 90 00 56 [13:07:05]RAPDU: 90 00 [13:07:05]wFMCommunicate OK [13:07:05]wFMCommunicate request_size=4 [13:07:05]MH_SAM_APDU [13:07:05]CAPDU: 80 0D 03 02 [13:07:05]Write to MH i2c: E2 08 00 BB 28 80 0D 03 02 00 00 00 00 5E [13:07:05]Write i2c OK [13:07:05]MH_I2C_Read... [13:07:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:05]Read from MH i2c: E2 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 0B 00 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 0B 00 BB 28 00 1D 88 FD 4E C9 CF C2 0A 90 00 B3 [13:07:05]RAPDU: 1D 88 FD 4E C9 CF C2 0A 90 00 [13:07:05]wFMCommunicate OK [13:07:05]SAM_PROTO_SignData done [13:07:05]FM_MakeSignedData done [13:07:05]CreateOFDProtocolMessage [13:07:05]wFMCommunicate request_size=4 [13:07:05]MH_SAM_APDU [13:07:05]CAPDU: 80 11 00 00 [13:07:05]Write to MH i2c: E2 08 00 BC 28 80 11 00 00 00 00 00 00 5E [13:07:05]Write i2c OK [13:07:05]MH_I2C_Read... [13:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:05]Read from MH i2c: E2 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 17 00 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 17 00 BC 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B4 [13:07: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:07:05]wFMCommunicate OK [13:07:05]CreateOFDProtocolMessage done [13:07:05]OFDSenderStorePacket 67062 [13:07:05]StoreOFDPacket docnum=67062 [13:07: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 96 CE 07 01 27 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 45 00 00 00 F4 03 04 00 FC 61 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F6 05 01 00 35 04 06 00 5F EA DF 63 3F C9 1D 88 FD 4E C9 CF C2 0A [13:07:05]CheckFolder [13:07:05]dirname=/storage/ofd_packets [13:07:05]CheckFolder done [13:07:05]ProducePacketName [13:07:05]name=ofd_packets/00067062 [13:07:05]NVStorageSaveData ofd_packets/00067062 [13:07:05]File name is /storage/ofd_packets/00067062 [13:07:05]Write 301 bytes [13:07:05]NVStorageSaveData done [13:07:05]OFDSenderStorePacket done [13:07:05]KKMCreateOFDPacket done [13:07:05]NVStorageSaveData kkm_last_timestamp [13:07:05]File name is /storage/kkm_last_timestamp [13:07:05]Write 4 bytes [13:07:05]NVStorageSaveData done [13:07:05]ExternCall_PrintAddStr [13:07:05]wPrintStart [13:07:05]Write to MH i2c: 01 00 00 BD 28 E5 [13:07:05]Write i2c OK [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: 01 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: 01 07 00 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: 01 07 00 BD 28 00 00 00 00 00 FF 0F FA [13:07:05]RasterBufferAndPrint [13:07:05]line Счет N : (1)506935 [13:07:05]line ИНН: 02508201610067 [13:07:05]line Контрольно-Кассовый Чек [13:07:05]line ПРОДАЖА [13:07:05]line ТРК (МРК, ГНК) : 43 [13:07:05]line Товар: 2710124130 [13:07:05]line Аи-92-К-5 [13:07:05]line 4.500 * 66.80 [13:07:05]line = 300.60 [13:07:05]line НДС 12% НСП 1% [13:07:05]line > о реализуемом товаре [13:07:05]line ОКРУГЛЕНИЕ: -0.60 [13:07:05]line ИТОГО: 300.00 [13:07:05]line Внесено: 300.00 [13:07:05]line СДАЧА: 0.00 [13:07:05]line НСП 1% : 2.66 [13:07:05]line НДС 12% : 31.92 [13:07:05]line Наличными: 300.00 [13:07:05]line Безнал.: 0.00 [13:07:05]line Место: АЗС № 91 "Партнер Нефть" [13:07:05]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:07:05]line СНО: Общий режим [13:07:05]line Чек 69 14.05.2024 13:07 [13:07:05]line Смена: 355 ФФД: 1.0 [13:07:05]line ЗНМ: 0300000119 [13:07:05]line РНМ: 0000000000091845 [13:07:05]line Версия ККМ: 001 [13:07:05]line ФМ: 0000000000871829 [13:07:05]line ФД: 67062 [13:07:05]line ФПД: 105462374809545 [13:07:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T130708&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67062&fm=105462374809545&tin=02508201610067®Number=0000000000091845&sum=30000 [13:07:06]OFD Sender: Processing packet 67062 [packets to send 35, broken 34] [13:07:06]ProducePacketName [13:07:06]name=ofd_packets/00067062 [13:07:06]OFD Sender: To server: pG, [13:07:06]CommunicateWithHost lk.salyk.kg:30040 [13:07:06]ConnectInit lk.salyk.kg [13:07:06]written 0, free lines is 4095 [13:07:06]Connected sock=10 [13:07: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 96 CE 07 01 27 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 45 00 00 00 F4 03 04 00 FC 61 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F6 05 01 00 35 04 06 00 5F EA DF 63 3F C9 1D 88 FD 4E C9 CF C2 0A [13:07:06]Write to MH i2c: 01 00 00 E7 28 0F [13:07:06]Write i2c OK [13:07:06]MH_I2C_Read... [13:07:06]Read from MH i2c: 01 [13:07:06]MH_I2C_Read... [13:07:06]Read from MH i2c: 01 07 00 [13:07:06]MH_I2C_Read... [13:07:06]Read from MH i2c: 01 07 00 E7 28 00 00 00 00 00 C8 0C EA [13:07:06]RasterBufferAndPrint [13:07:06]line [13:07:06]line [13:07:06]line [13:07:06]line [13:07:06]line [13:07:06]written 0, free lines is 3278 [13:07:06]MH_Cut [13:07:06]Write to MH i2c: D1 01 00 EE 28 01 E8 [13:07:06]Write i2c OK [13:07:06]MH_I2C_Read... [13:07:06]Read from MH i2c: D1 [13:07:06]MH_I2C_Read... [13:07:06]Read from MH i2c: D1 01 00 [13:07:06]MH_I2C_Read... [13:07:06]Read from MH i2c: D1 01 00 EE 28 00 E7 [13:07:06]Write to MH i2c: 01 00 00 EF 28 17 [13:07:06]Write i2c OK [13:07:06]MH_I2C_Read... [13:07: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 82 67 47 00 D8 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 F6 05 01 00 F4 03 04 00 DC 09 43 66 B6 04 01 00 00 2B 35 3A 3E 85 12 80 4A [13:07:06]CommunicateWithHost err = 0 [13:07:06]CheckOFDResponse [13:07:06]1017 (14) - 77093643461234 [13:07:06]1041 (16) - 0000000000871829 [13:07:06]1040 (4) - 67062 [13:07:06]1012 (4) - 14.05.2024 06:51 [13:07:06]1206 (1) - 0 [13:07:06]OFD Sender: Remove packet 67062 [13:07:06]ProducePacketName [13:07:06]name=ofd_packets/00067062 [13:07:06]NVStorageDeleteData [13:07:07]OFD Sender: No OFD packet to send [13:07:07]*** Cut start [13:07:07]*** Purtial cut [13:07:07]*** Stage 1: CUTSNS_PIN = 1 [13:07:07]Read from MH i2c: 01 [13:07:07]MH_I2C_Read... [13:07:07]*** Stop cut motor [13:07:07]*** Cut end [13:07:07]Read from MH i2c: 01 07 00 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: 01 07 00 EF 28 00 00 00 00 00 FF 0F 2C [13:07:07]process_action close_receipt done [13:07:07]requested_data is exist [13:07:07]produce_requested_data [13:07:07]requested_item fm.sn is exist - process it [13:07:07]wFMCommunicate request_size=4 [13:07:07]MH_SAM_APDU [13:07:07]CAPDU: 80 11 00 00 [13:07:07]Write to MH i2c: E2 08 00 F0 28 80 11 00 00 00 00 00 00 92 [13:07:07]Write i2c OK [13:07:07]MH_I2C_Read... [13:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:07]Read from MH i2c: E2 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 17 00 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 17 00 F0 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E8 [13:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:07:07]wFMCommunicate OK [13:07:07]requested_item fd.num is exist - process it [13:07:07]SAM_PROTO_GetFieldsCounters [13:07:07]wFMCommunicate request_size=4 [13:07:07]MH_SAM_APDU [13:07:07]CAPDU: 80 13 00 00 [13:07:07]Write to MH i2c: E2 08 00 F1 28 80 13 00 00 00 00 00 00 95 [13:07:07]Write i2c OK [13:07:07]MH_I2C_Read... [13:07:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:07]Read from MH i2c: E2 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 62 00 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 62 00 F1 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F6 05 01 00 0E 04 04 00 63 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 EA [13:07: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 F6 05 01 00 0E 04 04 00 63 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:07:08]wFMCommunicate OK [13:07:08]SAM_PROTO_GetFieldsCounters done [13:07:08]requested_item shift.num is exist - process it [13:07:08]requested_item shift.opened is exist - process it [13:07:08]req_shift_opened [13:07:08]FM_GetShiftState [13:07:08]SAM_PROTO_GetShiftState [13:07:08]wFMCommunicate request_size=4 [13:07:08]MH_SAM_APDU [13:07:08]CAPDU: 80 13 01 00 [13:07:08]Write to MH i2c: E2 08 00 F2 28 80 13 01 00 00 00 00 00 97 [13:07:08]Write i2c OK [13:07:08]MH_I2C_Read... [13:07:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:08]Read from MH i2c: E2 [13:07:08]MH_I2C_Read... [13:07:08]Read from MH i2c: E2 0E 00 [13:07:08]MH_I2C_Read... [13:07:08]Read from MH i2c: E2 0E 00 F2 28 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 5F [13:07:08]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:07:08]wFMCommunicate OK [13:07:08]SAM_PROTO_GetShiftState done [13:07:08]FM_GetShiftState done [13:07:08]req_shift_opened done [13:07:08]requested_item shift.open_date is exist - process it [13:07:08]req_shift_open_date [13:07:08]req_shift_open_date done [13:07:08]produce_requested_data done [13:07:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67062,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [13:07:08]process_action_free close_receipt [13:07:08]json_value_free [13:07:08]json_value_free done [13:07:08]process_json_proto returns [13:07:08]Send response to host [13:07:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67062,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [13:07:08]free response buf [13:07:08]execute_script done [13:07:08]execute_script returns [13:07:08]free content buf [13:07:08]Sock 9.Close socket [13:07:08]Sock 9.Thread stoped [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:42]OFD Sender: No OFD packet to send [13:09:47]OFD Sender: No OFD packet to send [13:09:52]OFD Sender: No OFD packet to send [13:09:57]OFD Sender: No OFD packet to send [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:49]recv_with_timeout no data received [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:32]OFD Sender: No OFD packet to send [13:17:37]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:22]OFD Sender: No OFD packet to send [13:18:27]OFD Sender: No OFD packet to send [13:18:32]OFD Sender: No OFD packet to send [13:18:37]OFD Sender: No OFD packet to send [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:55]accept exits with 8 [13:18:55]New connection [13:18:55]New thread 3066760548 created [13:18:55]Thread 3066617188 joined [13:18:55]Waiting for new connection... [13:18:55] Sock 8.Parse request [13:18:55]Sock 8.Check first char [13:18:55]Sock 8.First char is OK [13:18:55]request: POST /json_proto HTTP/1.0 [13:18:55]Method: POST [13:18:55]URL: /json_proto [13:18:55]Method is POST - this is cgi request [13:18:55]url: /json_proto [13:18:55]query_string will be loaded in cgi processing [13:18:55]execute_cgi json_proto POST (null) [13:18:55]execute_cgi path=json_proto method=POST [13:18:55]POST find Content-Length [13:18:55]Host: 172.17.41.195:8080 [13:18:55]Content-Length: 800 [13:18:55]Content-Type: application/json [13:18:55] [13:18:55]POST finish read [13:18:55]Found Content-Length = 800 [13:18:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 18.640, "sum" : 1392.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1392.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:55]execute_script... [13: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)506936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 18.640, "sum" : 1392.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1392.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:55]POST & json_proto [13:18:55]process_json_proto [13:18:55]json parsed OK: [13:18:55]protocol is kg_v1.0 [13:18:55]action value=close_receipt [13:18:55]process_action close_receipt [13:18:55]cmd_close_receipt [13:18:55]MH_GetDate [13:18:55]Write to MH i2c: F0 00 00 F3 28 0A [13:18:55]Write i2c OK [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: F0 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: F0 09 00 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: F0 09 00 F3 28 00 C4 64 43 66 FC 21 6F 64 D4 [13:18:55]GetLastDocTimeStamp 1715692028 [13:18:55]current date 1715692740 [13:18:55]FM_GetShiftState [13:18:55]SAM_PROTO_GetShiftState [13:18:55]wFMCommunicate request_size=4 [13:18:55]MH_SAM_APDU [13:18:55]CAPDU: 80 13 01 00 [13:18:55]Write to MH i2c: E2 08 00 F4 28 80 13 01 00 00 00 00 00 99 [13:18:55]Write i2c OK [13:18:55]MH_I2C_Read... [13:18:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:55]Read from MH i2c: E2 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: E2 0E 00 [13:18:55]MH_I2C_Read... [13:18:55]Read from MH i2c: E2 0E 00 F4 28 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 61 [13:18:55]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:18:55]wFMCommunicate OK [13:18:55]SAM_PROTO_GetShiftState done [13:18:55]FM_GetShiftState done [13:18:55]opened in 1715646054 [13:18:55]opened+sec_in_day 1715732454 [13:18:55]quantity*price = 139240 [13:18:55]sum+1 = 139242 [13:18:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1392.41 НСП 1% : 12.32 НДС 12% : 147.87 Наличными: 0.00 Безнал.: 1392.41 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 70 14.05.2024 13:19 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67063 ФПД: 280156266693192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T131900&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67063&fm=280156266693192&tin=02508201610067®Number=0000000000091845&sum=139241 [13:18:56]StoreToDocumentArchive [13:18:56]shift 355 fd 67063 [13:18:56]save to /storage/0355/doc_00067063 [13:18:56]save last doc name /storage/0355/doc_00067063 to /storage/kkm_last_doc_name [13:18:56]save OK [13:18:56]Clear old archive folders... [13:18:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:18:56]tlvbuf is 003B2FC0 [13:18:56]SAM_PROTO_ClearQueue [13:18:56]wFMCommunicate request_size=4 [13:18:56]MH_SAM_APDU [13:18:56]CAPDU: 80 09 00 00 [13:18:56]Write to MH i2c: E2 08 00 01 29 80 09 00 00 00 00 00 00 9C [13:18:56]Write i2c OK [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: E2 [13:18:56]MH_I2C_Read... [13:18:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:56]Read from MH i2c: E2 03 00 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: E2 03 00 01 29 00 90 00 9E [13:18:56]RAPDU: 90 00 [13:18:56]wFMCommunicate OK [13:18:56]SAM_PROTO_ClearQueue done [13:18:56]KKMCreateOFDPacket [13:18:56]OFDProtocolAddRootSTLVToBuf [13:18:56]FM_MakeSignedData [13:18:56]FM_MakeSignedData [13:18:56]SAM_PROTO_SignData [13:18:56]wFMCommunicate request_size=4 [13:18:56]MH_SAM_APDU [13:18:56]CAPDU: 80 0D 01 02 [13:18:56]Write to MH i2c: E2 08 00 02 29 80 0D 01 02 00 00 00 00 A4 [13:18:56]Write i2c OK [13:18:56]MH_I2C_Read... [13:18:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:56]Read from MH i2c: E2 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: E2 03 00 [13:18:56]MH_I2C_Read... [13:18:56]Read from MH i2c: E2 03 00 02 29 00 90 00 9F [13:18:56]RAPDU: 90 00 [13:18:56]wFMCommunicate OK [13:18:56]wFMCommunicate request_size=255 [13:18:56]MH_SAM_APDU [13: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 D0 48 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E9 1F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 1F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 39 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 1F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 C4 64 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F7 05 01 00 35 04 06 00 FE CC F6 C2 [13:18:56]Write to MH i2c: E2 02 01 03 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 48 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E9 1F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 1F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 39 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 1F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 C4 64 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F7 05 01 00 35 04 06 00 FE CC F6 C2 00 00 51 [13:18:56]Write i2c OK [13:18:56]MH_I2C_Read... [13:18:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:57]Read from MH i2c: E2 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: E2 03 00 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: E2 03 00 03 29 00 90 00 A0 [13:18:57]RAPDU: 90 00 [13:18:57]wFMCommunicate OK [13:18:57]wFMCommunicate request_size=7 [13:18:57]MH_SAM_APDU [13:18:57]CAPDU: 80 0D 02 02 02 02 48 [13:18:57]Write to MH i2c: E2 0A 00 04 29 80 0D 02 02 02 00 02 48 00 00 F5 [13:18:57]Write i2c OK [13:18:57]MH_I2C_Read... [13:18:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:57]Read from MH i2c: E2 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: E2 03 00 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: E2 03 00 04 29 00 90 00 A1 [13:18:57]RAPDU: 90 00 [13:18:57]wFMCommunicate OK [13:18:57]wFMCommunicate request_size=4 [13:18:57]MH_SAM_APDU [13:18:57]CAPDU: 80 0D 03 02 [13:18:57]Write to MH i2c: E2 08 00 05 29 80 0D 03 02 00 00 00 00 A9 [13:18:57]Write i2c OK [13:18:57]MH_I2C_Read... [13:18:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:57]Read from MH i2c: E2 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: E2 0B 00 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: E2 0B 00 05 29 00 85 BD BA 49 00 00 83 76 90 00 E8 [13:18:57]RAPDU: 85 BD BA 49 00 00 83 76 90 00 [13:18:57]wFMCommunicate OK [13:18:57]SAM_PROTO_SignData done [13:18:57]FM_MakeSignedData done [13:18:57]CreateOFDProtocolMessage [13:18:57]wFMCommunicate request_size=4 [13:18:57]MH_SAM_APDU [13:18:57]CAPDU: 80 11 00 00 [13:18:57]Write to MH i2c: E2 08 00 06 29 80 11 00 00 00 00 00 00 A9 [13:18:57]Write i2c OK [13:18:57]MH_I2C_Read... [13:18:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:57]Read from MH i2c: E2 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: E2 17 00 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: E2 17 00 06 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FF [13:18:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:18:57]wFMCommunicate OK [13:18:57]CreateOFDProtocolMessage done [13:18:57]OFDSenderStorePacket 67063 [13:18:57]StoreOFDPacket docnum=67063 [13:18:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 CB D8 04 01 D4 AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 48 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E9 1F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 1F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 39 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 1F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 C4 64 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F7 05 01 00 35 04 06 00 FE CC F6 C2 02 48 85 BD BA 49 00 00 83 76 [13:18:57]CheckFolder [13:18:57]dirname=/storage/ofd_packets [13:18:57]CheckFolder done [13:18:57]ProducePacketName [13:18:57]name=ofd_packets/00067063 [13:18:57]NVStorageSaveData ofd_packets/00067063 [13:18:57]File name is /storage/ofd_packets/00067063 [13:18:57]Write 298 bytes [13:18:57]NVStorageSaveData done [13:18:57]OFDSenderStorePacket done [13:18:57]KKMCreateOFDPacket done [13:18:57]NVStorageSaveData kkm_last_timestamp [13:18:57]File name is /storage/kkm_last_timestamp [13:18:57]Write 4 bytes [13:18:57]NVStorageSaveData done [13:18:57]OFD Sender: Processing packet 67063 [packets to send 35, broken 34] [13:18:57]ProducePacketName [13:18:57]name=ofd_packets/00067063 [13:18:57]OFD Sender: To server: pG, [13:18:57]CommunicateWithHost lk.salyk.kg:30040 [13:18:57]ConnectInit lk.salyk.kg [13:18:57]ExternCall_PrintAddStr [13:18:57]wPrintStart [13:18:57]Write to MH i2c: 01 00 00 07 29 30 [13:18:57]Write i2c OK [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: 01 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: 01 07 00 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: 01 07 00 07 29 00 00 00 00 00 FF 0F 45 [13:18:57]RasterBufferAndPrint [13:18:57]line Счет N : (1)506936 [13:18:57]line ИНН: 02508201610067 [13:18:57]line Контрольно-Кассовый Чек [13:18:57]line ПРОДАЖА [13:18:57]line ТРК (МРК, ГНК) : 31 [13:18:57]line Товар: 2710194210 [13:18:57]line ДТ-К-5 [13:18:57]line 18.640 * 74.70 [13:18:57]line = 1392.41 [13:18:57]line НДС 12% НСП 1% [13:18:57]line > о реализуемом товаре [13:18:57]line ИТОГО: 1392.41 [13:18:57]line НСП 1% : 12.32 [13:18:57]line НДС 12% : 147.87 [13:18:57]line Наличными: 0.00 [13:18:57]line Безнал.: 1392.41 [13:18:57]line Место: АЗС № 91 "Партнер Нефть" [13:18:57]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:18:57]line СНО: Общий режим [13:18:57]line Чек 70 14.05.2024 13:19 [13:18:57]line Смена: 355 ФФД: 1.0 [13:18:57]line ЗНМ: 0300000119 [13:18:57]line РНМ: 0000000000091845 [13:18:57]line Версия ККМ: 001 [13:18:57]line Платежная система: O! деньги [13:18:57]line ФМ: 0000000000871829 [13:18:57]line ФД: 67063 [13:18:57]line ФПД: 280156266693192 [13:18:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T131900&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67063&fm=280156266693192&tin=02508201610067®Number=0000000000091845&sum=139241 [13:18:57]Connected sock=11 [13: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 CB D8 04 01 D4 AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 48 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E9 1F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 1F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 39 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 1F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 C4 64 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F7 05 01 00 35 04 06 00 FE CC F6 C2 02 48 85 BD BA 49 00 00 83 76 [13:18:57]written 0, free lines is 4095 [13: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 FA 32 47 00 24 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F7 05 01 00 F4 03 04 00 A3 0C 43 66 B6 04 01 00 00 56 AF F0 90 CC 66 CE 56 [13:18:57]CommunicateWithHost err = 0 [13:18:57]CheckOFDResponse [13:18:57]1017 (14) - 77093643461234 [13:18:57]1041 (16) - 0000000000871829 [13:18:57]1040 (4) - 67063 [13:18:57]1012 (4) - 14.05.2024 07:02 [13:18:57]1206 (1) - 0 [13:18:57]OFD Sender: Remove packet 67063 [13:18:57]ProducePacketName [13:18:57]name=ofd_packets/00067063 [13:18:57]NVStorageDeleteData [13:18:57]Write to MH i2c: 01 00 00 30 29 59 [13:18:57]Write i2c OK [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: 01 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: 01 07 00 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: 01 07 00 30 29 00 00 00 00 00 D4 0C 40 [13:18:57]RasterBufferAndPrint [13:18:57]line [13:18:57]line [13:18:57]line [13:18:57]line [13:18:57]line [13:18:57]written 0, free lines is 3292 [13:18:57]MH_Cut [13:18:57]Write to MH i2c: D1 01 00 37 29 01 32 [13:18:57]Write i2c OK [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: D1 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: D1 01 00 [13:18:57]MH_I2C_Read... [13:18:57]Read from MH i2c: D1 01 00 37 29 00 31 [13:18:57]Write to MH i2c: 01 00 00 38 29 61 [13:18:57]Write i2c OK [13:18:57]MH_I2C_Read... [13:18:58]OFD Sender: No OFD packet to send [13:18:58]*** Cut start [13:18:58]*** Purtial cut [13:18:58]*** CUTSNS_PIN = 0 [13:18:59]*** Stage 1: CUTSNS_PIN = 1 [13:19:00]Read from MH i2c: 01 [13:19:00]MH_I2C_Read... [13:19:00]*** Stop cut motor [13:19:00]*** Cut end [13:19:00]Read from MH i2c: 01 07 00 [13:19:00]MH_I2C_Read... [13:19:00]Read from MH i2c: 01 07 00 38 29 00 00 00 00 00 FF 0F 76 [13:19:00]process_action close_receipt done [13:19:00]requested_data is exist [13:19:00]produce_requested_data [13:19:00]requested_item fm.sn is exist - process it [13:19:00]wFMCommunicate request_size=4 [13:19:00]MH_SAM_APDU [13:19:00]CAPDU: 80 11 00 00 [13:19:00]Write to MH i2c: E2 08 00 39 29 80 11 00 00 00 00 00 00 DC [13:19:00]Write i2c OK [13:19:00]MH_I2C_Read... [13:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:00]Read from MH i2c: E2 [13:19:00]MH_I2C_Read... [13:19:00]Read from MH i2c: E2 17 00 [13:19:00]MH_I2C_Read... [13:19:00]Read from MH i2c: E2 17 00 39 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 32 [13:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:19:00]wFMCommunicate OK [13:19:00]requested_item fd.num is exist - process it [13:19:00]SAM_PROTO_GetFieldsCounters [13:19:00]wFMCommunicate request_size=4 [13:19:00]MH_SAM_APDU [13:19:00]CAPDU: 80 13 00 00 [13:19:00]Write to MH i2c: E2 08 00 3A 29 80 13 00 00 00 00 00 00 DF [13:19:00]Write i2c OK [13:19:00]MH_I2C_Read... [13:19:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:01]Read from MH i2c: E2 [13:19:01]MH_I2C_Read... [13:19:01]Read from MH i2c: E2 62 00 [13:19:01]MH_I2C_Read... [13:19:01]Read from MH i2c: E2 62 00 3A 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F7 05 01 00 0E 04 04 00 63 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 38 [13:19: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 F7 05 01 00 0E 04 04 00 63 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:19:01]wFMCommunicate OK [13:19:01]SAM_PROTO_GetFieldsCounters done [13:19:01]requested_item shift.num is exist - process it [13:19:01]requested_item shift.opened is exist - process it [13:19:01]req_shift_opened [13:19:01]FM_GetShiftState [13:19:01]SAM_PROTO_GetShiftState [13:19:01]wFMCommunicate request_size=4 [13:19:01]MH_SAM_APDU [13:19:01]CAPDU: 80 13 01 00 [13:19:01]Write to MH i2c: E2 08 00 3B 29 80 13 01 00 00 00 00 00 E1 [13:19:01]Write i2c OK [13:19:01]MH_I2C_Read... [13:19:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:01]Read from MH i2c: E2 [13:19:01]MH_I2C_Read... [13:19:01]Read from MH i2c: E2 0E 00 [13:19:01]MH_I2C_Read... [13:19:01]Read from MH i2c: E2 0E 00 3B 29 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A9 [13:19:01]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:19:01]wFMCommunicate OK [13:19:01]SAM_PROTO_GetShiftState done [13:19:01]FM_GetShiftState done [13:19:01]req_shift_opened done [13:19:01]requested_item shift.open_date is exist - process it [13:19:01]req_shift_open_date [13:19:01]req_shift_open_date done [13:19:01]produce_requested_data done [13:19:01]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67063,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [13:19:01]process_action_free close_receipt [13:19:01]json_value_free [13:19:01]json_value_free done [13:19:01]process_json_proto returns [13:19:01]Send response to host [13:19:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67063,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [13:19:01]free response buf [13:19:01]execute_script done [13:19:01]execute_script returns [13:19:01]free content buf [13:19:01]Sock 8.Close socket [13:19:01]Sock 8.Thread stoped [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:20]recv_with_timeout no data received [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:03]accept exits with 9 [13:23:03]New connection [13:23:03]New thread 3066617188 created [13:23:03]Thread 3066760548 joined [13:23:03]Waiting for new connection... [13:23:03] Sock 9.Parse request [13:23:03]Sock 9.Check first char [13:23:03]Sock 9.First char is OK [13:23:03]request: POST /json_proto HTTP/1.0 [13:23:03]Method: POST [13:23:03]URL: /json_proto [13:23:03]Method is POST - this is cgi request [13:23:03]url: /json_proto [13:23:03]query_string will be loaded in cgi processing [13:23:03]execute_cgi json_proto POST (null) [13:23:03]execute_cgi path=json_proto method=POST [13:23:03]POST find Content-Length [13:23:03]Host: 172.17.41.195:8080 [13:23:03]Content-Length: 677 [13:23:03]Content-Type: application/json [13:23:03] [13:23:03]POST finish read [13:23:03]Found Content-Length = 677 [13:23:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506937", "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" ] } } [13:23:03]execute_script... [13:23: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)506937", "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" ] } } [13:23:03]POST & json_proto [13:23:03]process_json_proto [13:23:03]json parsed OK: [13:23:03]protocol is kg_v1.0 [13:23:03]action value=close_receipt [13:23:03]process_action close_receipt [13:23:03]cmd_close_receipt [13:23:03]MH_GetDate [13:23:03]Write to MH i2c: F0 00 00 3C 29 54 [13:23:03]Write i2c OK [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: F0 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: F0 09 00 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: F0 09 00 3C 29 00 BC 65 43 66 FC 21 6F 64 17 [13:23:03]GetLastDocTimeStamp 1715692740 [13:23:03]current date 1715692988 [13:23:03]FM_GetShiftState [13:23:03]SAM_PROTO_GetShiftState [13:23:03]wFMCommunicate request_size=4 [13:23:03]MH_SAM_APDU [13:23:03]CAPDU: 80 13 01 00 [13:23:03]Write to MH i2c: E2 08 00 3D 29 80 13 01 00 00 00 00 00 E3 [13:23:03]Write i2c OK [13:23:03]MH_I2C_Read... [13:23:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:03]Read from MH i2c: E2 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 0E 00 [13:23:03]MH_I2C_Read... [13:23:03]Read from MH i2c: E2 0E 00 3D 29 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 AB [13:23:03]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:23:03]wFMCommunicate OK [13:23:03]SAM_PROTO_GetShiftState done [13:23:03]FM_GetShiftState done [13:23:03]opened in 1715646054 [13:23:03]opened+sec_in_day 1715732454 [13:23:03]quantity*price = 40013 [13:23:03]sum+1 = 40014 [13:23:03]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 СНО: Общий режим Чек 71 14.05.2024 13:23 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67064 ФПД: 13399661260279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T132308&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67064&fm=13399661260279&tin=02508201610067®Number=0000000000091845&sum=40000 [13:23:04]StoreToDocumentArchive [13:23:04]shift 355 fd 67064 [13:23:04]save to /storage/0355/doc_00067064 [13:23:04]save last doc name /storage/0355/doc_00067064 to /storage/kkm_last_doc_name [13:23:04]save OK [13:23:04]Clear old archive folders... [13:23:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:04]tlvbuf is B6E92D10 [13:23:04]SAM_PROTO_ClearQueue [13:23:04]wFMCommunicate request_size=4 [13:23:04]MH_SAM_APDU [13:23:04]CAPDU: 80 09 00 00 [13:23:04]Write to MH i2c: E2 08 00 4A 29 80 09 00 00 00 00 00 00 E5 [13:23:04]Write i2c OK [13:23:04]MH_I2C_Read... [13:23:04]Read from MH i2c: E2 [13:23:04]MH_I2C_Read... [13:23:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:04]Read from MH i2c: E2 03 00 [13:23:04]MH_I2C_Read... [13:23:04]Read from MH i2c: E2 03 00 4A 29 00 90 00 E7 [13:23:04]RAPDU: 90 00 [13:23:04]wFMCommunicate OK [13:23:04]SAM_PROTO_ClearQueue done [13:23:04]KKMCreateOFDPacket [13:23:04]OFDProtocolAddRootSTLVToBuf [13:23:04]FM_MakeSignedData [13:23:04]FM_MakeSignedData [13:23:04]SAM_PROTO_SignData [13:23:04]wFMCommunicate request_size=4 [13:23:04]MH_SAM_APDU [13:23:04]CAPDU: 80 0D 01 02 [13:23:04]Write to MH i2c: E2 08 00 4B 29 80 0D 01 02 00 00 00 00 ED [13:23:04]Write i2c OK [13:23:04]MH_I2C_Read... [13:23:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:04]Read from MH i2c: E2 [13:23:04]MH_I2C_Read... [13:23:04]Read from MH i2c: E2 03 00 [13:23:04]MH_I2C_Read... [13:23:04]Read from MH i2c: E2 03 00 4B 29 00 90 00 E8 [13:23:04]RAPDU: 90 00 [13:23:04]wFMCommunicate OK [13:23:04]wFMCommunicate request_size=255 [13:23:04]MH_SAM_APDU [13:23: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 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 47 00 00 00 F4 03 04 00 BC 65 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F8 05 01 00 35 04 06 00 0C [13:23:04]Write to MH i2c: E2 02 01 4C 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 47 00 00 00 F4 03 04 00 BC 65 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F8 05 01 00 35 04 06 00 0C 00 00 D7 [13:23:04]Write i2c OK [13:23:04]MH_I2C_Read... [13:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:05]Read from MH i2c: E2 [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: E2 03 00 [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: E2 03 00 4C 29 00 90 00 E9 [13:23:05]RAPDU: 90 00 [13:23:05]wFMCommunicate OK [13:23:05]wFMCommunicate request_size=10 [13:23:05]MH_SAM_APDU [13:23:05]CAPDU: 80 0D 02 02 05 2F DA 0C AD F7 [13:23:05]Write to MH i2c: E2 0D 00 4D 29 80 0D 02 02 05 00 2F DA 0C AD F7 00 00 B3 [13:23:05]Write i2c OK [13:23:05]MH_I2C_Read... [13:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:05]Read from MH i2c: E2 [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: E2 03 00 [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: E2 03 00 4D 29 00 90 00 EA [13:23:05]RAPDU: 90 00 [13:23:05]wFMCommunicate OK [13:23:05]wFMCommunicate request_size=4 [13:23:05]MH_SAM_APDU [13:23:05]CAPDU: 80 0D 03 02 [13:23:05]Write to MH i2c: E2 08 00 4E 29 80 0D 03 02 00 00 00 00 F2 [13:23:05]Write i2c OK [13:23:05]MH_I2C_Read... [13:23:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:05]Read from MH i2c: E2 [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: E2 0B 00 [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: E2 0B 00 4E 29 00 E8 04 37 F8 5D 47 7D 58 90 00 87 [13:23:05]RAPDU: E8 04 37 F8 5D 47 7D 58 90 00 [13:23:05]wFMCommunicate OK [13:23:05]SAM_PROTO_SignData done [13:23:05]FM_MakeSignedData done [13:23:05]CreateOFDProtocolMessage [13:23:05]wFMCommunicate request_size=4 [13:23:05]MH_SAM_APDU [13:23:05]CAPDU: 80 11 00 00 [13:23:05]Write to MH i2c: E2 08 00 4F 29 80 11 00 00 00 00 00 00 F2 [13:23:05]Write i2c OK [13:23:05]MH_I2C_Read... [13:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:05]Read from MH i2c: E2 [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: E2 17 00 [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: E2 17 00 4F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 48 [13:23: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:23:05]wFMCommunicate OK [13:23:05]CreateOFDProtocolMessage done [13:23:05]OFDSenderStorePacket 67064 [13:23:05]StoreOFDPacket docnum=67064 [13:23: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 EF 48 07 01 2C 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 47 00 00 00 F4 03 04 00 BC 65 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F8 05 01 00 35 04 06 00 0C 2F DA 0C AD F7 E8 04 37 F8 5D 47 7D 58 [13:23:05]CheckFolder [13:23:05]dirname=/storage/ofd_packets [13:23:05]CheckFolder done [13:23:05]ProducePacketName [13:23:05]name=ofd_packets/00067064 [13:23:05]NVStorageSaveData ofd_packets/00067064 [13:23:05]File name is /storage/ofd_packets/00067064 [13:23:05]Write 301 bytes [13:23:05]NVStorageSaveData done [13:23:05]OFDSenderStorePacket done [13:23:05]KKMCreateOFDPacket done [13:23:05]NVStorageSaveData kkm_last_timestamp [13:23:05]File name is /storage/kkm_last_timestamp [13:23:05]Write 4 bytes [13:23:05]NVStorageSaveData done [13:23:05]ExternCall_PrintAddStr [13:23:05]wPrintStart [13:23:05]Write to MH i2c: 01 00 00 50 29 79 [13:23:05]Write i2c OK [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: 01 [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: 01 07 00 [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: 01 07 00 50 29 00 00 00 00 00 FF 0F 8E [13:23:05]RasterBufferAndPrint [13:23:05]line Счет N : (1)506937 [13:23:05]line ИНН: 02508201610067 [13:23:05]line Контрольно-Кассовый Чек [13:23:05]line ПРОДАЖА [13:23:05]line ТРК (МРК, ГНК) : 33 [13:23:05]line Товар: 2710124130 [13:23:05]line Аи-92-К-5 [13:23:05]line 5.990 * 66.80 [13:23:05]line = 400.13 [13:23:05]line НДС 12% НСП 1% [13:23:05]line > о реализуемом товаре [13:23:05]line ОКРУГЛЕНИЕ: -0.13 [13:23:05]line ИТОГО: 400.00 [13:23:05]line Внесено: 400.00 [13:23:05]line СДАЧА: 0.00 [13:23:05]line НСП 1% : 3.54 [13:23:05]line НДС 12% : 42.49 [13:23:05]line Наличными: 400.00 [13:23:05]line Безнал.: 0.00 [13:23:05]line Место: АЗС № 91 "Партнер Нефть" [13:23:05]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:23:05]line СНО: Общий режим [13:23:05]line Чек 71 14.05.2024 13:23 [13:23:05]line Смена: 355 ФФД: 1.0 [13:23:05]line ЗНМ: 0300000119 [13:23:05]line РНМ: 0000000000091845 [13:23:05]line Версия ККМ: 001 [13:23:05]line ФМ: 0000000000871829 [13:23:05]line ФД: 67064 [13:23:05]line ФПД: 13399661260279 [13:23:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T132308&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67064&fm=13399661260279&tin=02508201610067®Number=0000000000091845&sum=40000 [13:23:05]OFD Sender: Processing packet 67064 [packets to send 35, broken 34] [13:23:05]ProducePacketName [13:23:05]name=ofd_packets/00067064 [13:23:05]OFD Sender: To server: pG, [13:23:05]CommunicateWithHost lk.salyk.kg:30040 [13:23:05]ConnectInit lk.salyk.kg [13:23:05]written 0, free lines is 4095 [13:23:05]Connected sock=10 [13:23: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 EF 48 07 01 2C 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 47 00 00 00 F4 03 04 00 BC 65 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F8 05 01 00 35 04 06 00 0C 2F DA 0C AD F7 E8 04 37 F8 5D 47 7D 58 [13:23: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 AC 37 47 00 D5 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 F8 05 01 00 F4 03 04 00 9B 0D 43 66 B6 04 01 00 00 0E BA 9B 58 87 53 0E 50 [13:23:05]CommunicateWithHost err = 0 [13:23:05]CheckOFDResponse [13:23:05]1017 (14) - 77093643461234 [13:23:05]1041 (16) - 0000000000871829 [13:23:05]1040 (4) - 67064 [13:23:05]1012 (4) - 14.05.2024 07:07 [13:23:05]1206 (1) - 0 [13:23:05]OFD Sender: Remove packet 67064 [13:23:05]ProducePacketName [13:23:05]name=ofd_packets/00067064 [13:23:05]NVStorageDeleteData [13:23:05]Write to MH i2c: 01 00 00 7A 29 A3 [13:23:05]Write i2c OK [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: 01 [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: 01 07 00 [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: 01 07 00 7A 29 00 00 00 00 00 C7 0C 7D [13:23:05]RasterBufferAndPrint [13:23:05]line [13:23:05]line [13:23:05]line [13:23:05]line [13:23:05]line [13:23:05]written 0, free lines is 3278 [13:23:05]MH_Cut [13:23:05]Write to MH i2c: D1 01 00 81 29 01 7C [13:23:05]Write i2c OK [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: D1 [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: D1 01 00 [13:23:05]MH_I2C_Read... [13:23:05]Read from MH i2c: D1 01 00 81 29 00 7B [13:23:05]Write to MH i2c: 01 00 00 82 29 AB [13:23:05]Write i2c OK [13:23:05]MH_I2C_Read... [13:23:06]OFD Sender: No OFD packet to send [13:23:06]*** Cut start [13:23:06]*** Purtial cut [13:23:06]*** Stage 1: CUTSNS_PIN = 1 [13:23:07]Read from MH i2c: 01 [13:23:07]MH_I2C_Read... [13:23:07]*** Stop cut motor [13:23:07]*** Cut end [13:23:07]Read from MH i2c: 01 07 00 [13:23:07]MH_I2C_Read... [13:23:07]Read from MH i2c: 01 07 00 82 29 00 00 00 00 00 FF 0F C0 [13:23:07]process_action close_receipt done [13:23:07]requested_data is exist [13:23:07]produce_requested_data [13:23:07]requested_item fm.sn is exist - process it [13:23:07]wFMCommunicate request_size=4 [13:23:07]MH_SAM_APDU [13:23:07]CAPDU: 80 11 00 00 [13:23:07]Write to MH i2c: E2 08 00 83 29 80 11 00 00 00 00 00 00 26 [13:23:07]Write i2c OK [13:23:07]MH_I2C_Read... [13:23:07]Read from MH i2c: E2 [13:23:07]MH_I2C_Read... [13:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:07]Read from MH i2c: E2 17 00 [13:23:07]MH_I2C_Read... [13:23:07]Read from MH i2c: E2 17 00 83 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7C [13:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:23:07]wFMCommunicate OK [13:23:07]requested_item fd.num is exist - process it [13:23:07]SAM_PROTO_GetFieldsCounters [13:23:07]wFMCommunicate request_size=4 [13:23:07]MH_SAM_APDU [13:23:07]CAPDU: 80 13 00 00 [13:23:07]Write to MH i2c: E2 08 00 84 29 80 13 00 00 00 00 00 00 29 [13:23:07]Write i2c OK [13:23:07]MH_I2C_Read... [13:23:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:07]Read from MH i2c: E2 [13:23:07]MH_I2C_Read... [13:23:07]Read from MH i2c: E2 62 00 [13:23:07]MH_I2C_Read... [13:23:07]Read from MH i2c: E2 62 00 84 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F8 05 01 00 0E 04 04 00 63 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 86 [13:23: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 F8 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:07]wFMCommunicate OK [13:23:07]SAM_PROTO_GetFieldsCounters done [13:23:07]requested_item shift.num is exist - process it [13:23:07]requested_item shift.opened is exist - process it [13:23:07]req_shift_opened [13:23:07]FM_GetShiftState [13:23:07]SAM_PROTO_GetShiftState [13:23:07]wFMCommunicate request_size=4 [13:23:07]MH_SAM_APDU [13:23:07]CAPDU: 80 13 01 00 [13:23:07]Write to MH i2c: E2 08 00 85 29 80 13 01 00 00 00 00 00 2B [13:23:07]Write i2c OK [13:23:07]MH_I2C_Read... [13:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:07]Read from MH i2c: E2 [13:23:07]MH_I2C_Read... [13:23:07]Read from MH i2c: E2 0E 00 [13:23:07]MH_I2C_Read... [13:23:07]Read from MH i2c: E2 0E 00 85 29 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F3 [13:23:07]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:23:07]wFMCommunicate OK [13:23:07]SAM_PROTO_GetShiftState done [13:23:07]FM_GetShiftState done [13:23:07]req_shift_opened done [13:23:07]requested_item shift.open_date is exist - process it [13:23:07]req_shift_open_date [13:23:07]req_shift_open_date done [13:23:07]produce_requested_data done [13:23:07]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67064,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [13:23:07]process_action_free close_receipt [13:23:07]json_value_free [13:23:07]json_value_free done [13:23:07]process_json_proto returns [13:23:07]Send response to host [13:23:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67064,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [13:23:07]free response buf [13:23:07]execute_script done [13:23:07]execute_script returns [13:23:07]free content buf [13:23:07]Sock 9.Close socket [13:23:07]Sock 9.Thread stoped [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:21]accept exits with 8 [13:24:21]New connection [13:24:21]New thread 3066760548 created [13:24:21]Thread 3066617188 joined [13:24:21]Waiting for new connection... [13:24:21] Sock 8.Parse request [13:24:21]Sock 8.Check first char [13:24:21]Sock 8.First char is OK [13:24:21]request: POST /json_proto HTTP/1.0 [13:24:21]Method: POST [13:24:21]URL: /json_proto [13:24:21]Method is POST - this is cgi request [13:24:21]url: /json_proto [13:24:21]query_string will be loaded in cgi processing [13:24:21]execute_cgi json_proto POST (null) [13:24:21]execute_cgi path=json_proto method=POST [13:24:21]POST find Content-Length [13:24:21]Host: 172.17.41.195:8080 [13:24:21]Content-Length: 800 [13:24:21]Content-Type: application/json [13:24:21] [13:24:21]POST finish read [13:24:21]Found Content-Length = 800 [13:24:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506938", "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" ] } } [13:24:21]execute_script... [13:24:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506938", "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" ] } } [13:24:21]POST & json_proto [13:24:21]process_json_proto [13:24:21]json parsed OK: [13:24:21]protocol is kg_v1.0 [13:24:21]action value=close_receipt [13:24:21]process_action close_receipt [13:24:21]cmd_close_receipt [13:24:21]MH_GetDate [13:24:21]Write to MH i2c: F0 00 00 86 29 9E [13:24:21]Write i2c OK [13:24:21]MH_I2C_Read... [13:24:21]Read from MH i2c: F0 [13:24:21]MH_I2C_Read... [13:24:21]Read from MH i2c: F0 09 00 [13:24:21]MH_I2C_Read... [13:24:21]Read from MH i2c: F0 09 00 86 29 00 0A 66 43 66 FC 21 6F 64 B0 [13:24:21]GetLastDocTimeStamp 1715692988 [13:24:21]current date 1715693066 [13:24:21]FM_GetShiftState [13:24:21]SAM_PROTO_GetShiftState [13:24:21]wFMCommunicate request_size=4 [13:24:21]MH_SAM_APDU [13:24:21]CAPDU: 80 13 01 00 [13:24:21]Write to MH i2c: E2 08 00 87 29 80 13 01 00 00 00 00 00 2D [13:24:21]Write i2c OK [13:24:21]MH_I2C_Read... [13:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:21]Read from MH i2c: E2 [13:24:21]MH_I2C_Read... [13:24:21]Read from MH i2c: E2 0E 00 [13:24:21]MH_I2C_Read... [13:24:21]Read from MH i2c: E2 0E 00 87 29 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F5 [13:24:21]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:24:21]wFMCommunicate OK [13:24:21]SAM_PROTO_GetShiftState done [13:24:21]FM_GetShiftState done [13:24:21]opened in 1715646054 [13:24:21]opened+sec_in_day 1715732454 [13:24:21]quantity*price = 200046 [13:24:21]sum+1 = 200048 [13:24:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 72 14.05.2024 13:24 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67065 ФПД: 211513280647968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T132426&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67065&fm=211513280647968&tin=02508201610067®Number=0000000000091845&sum=200047 [13:24:22]StoreToDocumentArchive [13:24:22]shift 355 fd 67065 [13:24:22]save to /storage/0355/doc_00067065 [13:24:22]save last doc name /storage/0355/doc_00067065 to /storage/kkm_last_doc_name [13:24:22]save OK [13:24:22]Clear old archive folders... [13:24:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:24:22]tlvbuf is 003DDA30 [13:24:22]SAM_PROTO_ClearQueue [13:24:22]wFMCommunicate request_size=4 [13:24:22]MH_SAM_APDU [13:24:22]CAPDU: 80 09 00 00 [13:24:22]Write to MH i2c: E2 08 00 94 29 80 09 00 00 00 00 00 00 2F [13:24:22]Write i2c OK [13:24:22]MH_I2C_Read... [13:24:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:22]Read from MH i2c: E2 [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: E2 03 00 [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: E2 03 00 94 29 00 90 00 31 [13:24:22]RAPDU: 90 00 [13:24:22]wFMCommunicate OK [13:24:22]SAM_PROTO_ClearQueue done [13:24:22]KKMCreateOFDPacket [13:24:22]OFDProtocolAddRootSTLVToBuf [13:24:22]FM_MakeSignedData [13:24:22]FM_MakeSignedData [13:24:22]SAM_PROTO_SignData [13:24:22]wFMCommunicate request_size=4 [13:24:22]MH_SAM_APDU [13:24:22]CAPDU: 80 0D 01 02 [13:24:22]Write to MH i2c: E2 08 00 95 29 80 0D 01 02 00 00 00 00 37 [13:24:22]Write i2c OK [13:24:22]MH_I2C_Read... [13:24:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:22]Read from MH i2c: E2 [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: E2 03 00 [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: E2 03 00 95 29 00 90 00 32 [13:24:22]RAPDU: 90 00 [13:24:22]wFMCommunicate OK [13:24:22]wFMCommunicate request_size=255 [13:24:22]MH_SAM_APDU [13:24: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 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 48 00 00 00 F4 03 04 00 0A 66 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F9 05 01 00 35 04 06 00 C0 5E C5 F5 [13:24:22]Write to MH i2c: E2 02 01 96 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 0A 66 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F9 05 01 00 35 04 06 00 C0 5E C5 F5 00 00 3F [13:24:22]Write i2c OK [13:24:22]MH_I2C_Read... [13:24:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:23]Read from MH i2c: E2 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 03 00 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 03 00 96 29 00 90 00 33 [13:24:23]RAPDU: 90 00 [13:24:23]wFMCommunicate OK [13:24:23]wFMCommunicate request_size=7 [13:24:23]MH_SAM_APDU [13:24:23]CAPDU: 80 0D 02 02 02 53 20 [13:24:23]Write to MH i2c: E2 0A 00 97 29 80 0D 02 02 02 00 53 20 00 00 B1 [13:24:23]Write i2c OK [13:24:23]MH_I2C_Read... [13:24:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:23]Read from MH i2c: E2 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 03 00 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 03 00 97 29 00 90 00 34 [13:24:23]RAPDU: 90 00 [13:24:23]wFMCommunicate OK [13:24:23]wFMCommunicate request_size=4 [13:24:23]MH_SAM_APDU [13:24:23]CAPDU: 80 0D 03 02 [13:24:23]Write to MH i2c: E2 08 00 98 29 80 0D 03 02 00 00 00 00 3C [13:24:23]Write i2c OK [13:24:23]MH_I2C_Read... [13:24:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:23]Read from MH i2c: E2 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 0B 00 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 0B 00 98 29 00 6C 03 26 A6 F1 66 68 B3 90 00 EA [13:24:23]RAPDU: 6C 03 26 A6 F1 66 68 B3 90 00 [13:24:23]wFMCommunicate OK [13:24:23]SAM_PROTO_SignData done [13:24:23]FM_MakeSignedData done [13:24:23]CreateOFDProtocolMessage [13:24:23]wFMCommunicate request_size=4 [13:24:23]MH_SAM_APDU [13:24:23]CAPDU: 80 11 00 00 [13:24:23]Write to MH i2c: E2 08 00 99 29 80 11 00 00 00 00 00 00 3C [13:24:23]Write i2c OK [13:24:23]MH_I2C_Read... [13:24:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:23]Read from MH i2c: E2 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 17 00 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: E2 17 00 99 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 92 [13:24:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:24:23]wFMCommunicate OK [13:24:23]CreateOFDProtocolMessage done [13:24:23]OFDSenderStorePacket 67065 [13:24:23]StoreOFDPacket docnum=67065 [13:24:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 D3 47 04 01 60 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 48 00 00 00 F4 03 04 00 0A 66 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F9 05 01 00 35 04 06 00 C0 5E C5 F5 53 20 6C 03 26 A6 F1 66 68 B3 [13:24:23]CheckFolder [13:24:23]dirname=/storage/ofd_packets [13:24:23]CheckFolder done [13:24:23]ProducePacketName [13:24:23]name=ofd_packets/00067065 [13:24:23]NVStorageSaveData ofd_packets/00067065 [13:24:23]File name is /storage/ofd_packets/00067065 [13:24:23]Write 298 bytes [13:24:23]NVStorageSaveData done [13:24:23]OFDSenderStorePacket done [13:24:23]KKMCreateOFDPacket done [13:24:23]NVStorageSaveData kkm_last_timestamp [13:24:23]File name is /storage/kkm_last_timestamp [13:24:23]Write 4 bytes [13:24:23]NVStorageSaveData done [13:24:23]ExternCall_PrintAddStr [13:24:23]wPrintStart [13:24:23]Write to MH i2c: 01 00 00 9A 29 C3 [13:24:23]Write i2c OK [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: 01 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: 01 07 00 [13:24:23]MH_I2C_Read... [13:24:23]Read from MH i2c: 01 07 00 9A 29 00 00 00 00 00 FF 0F D8 [13:24:23]RasterBufferAndPrint [13:24:23]line Счет N : (1)506938 [13:24:23]line ИНН: 02508201610067 [13:24:23]line Контрольно-Кассовый Чек [13:24:23]line ПРОДАЖА [13:24:23]line ТРК (МРК, ГНК) : 11 [13:24:23]line Товар: 2710194210 [13:24:23]line ДТ-К-5 [13:24:23]line 26.780 * 74.70 [13:24:23]line = 2000.47 [13:24:23]line НДС 12% НСП 1% [13:24:23]line > о реализуемом товаре [13:24:23]line ИТОГО: 2000.47 [13:24:23]line НСП 1% : 17.70 [13:24:23]line НДС 12% : 212.44 [13:24:23]line Наличными: 0.00 [13:24:23]line Безнал.: 2000.47 [13:24:23]line Место: АЗС № 91 "Партнер Нефть" [13:24:23]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:24:23]line СНО: Общий режим [13:24:23]line Чек 72 14.05.2024 13:24 [13:24:23]line Смена: 355 ФФД: 1.0 [13:24:23]line ЗНМ: 0300000119 [13:24:23]line РНМ: 0000000000091845 [13:24:23]line Версия ККМ: 001 [13:24:23]line Платежная система: O! деньги [13:24:23]line ФМ: 0000000000871829 [13:24:23]line ФД: 67065 [13:24:23]line ФПД: 211513280647968 [13:24:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T132426&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67065&fm=211513280647968&tin=02508201610067®Number=0000000000091845&sum=200047 [13:24:23]OFD Sender: Processing packet 67065 [packets to send 35, broken 34] [13:24:23]ProducePacketName [13:24:23]name=ofd_packets/00067065 [13:24:23]OFD Sender: To server: pG, [13:24:23]CommunicateWithHost lk.salyk.kg:30040 [13:24:23]ConnectInit lk.salyk.kg [13:24:23]written 0, free lines is 4095 [13:24:23]Connected sock=10 [13:24:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 D3 47 04 01 60 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 48 00 00 00 F4 03 04 00 0A 66 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 F9 05 01 00 35 04 06 00 C0 5E C5 F5 53 20 6C 03 26 A6 F1 66 68 B3 [13:24:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 E7 BA 47 00 13 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 F9 05 01 00 F4 03 04 00 EA 0D 43 66 B6 04 01 00 00 23 14 02 93 51 1A 28 C2 [13:24:23]CommunicateWithHost err = 0 [13:24:23]CheckOFDResponse [13:24:23]1017 (14) - 77093643461234 [13:24:23]1041 (16) - 0000000000871829 [13:24:23]1040 (4) - 67065 [13:24:23]1012 (4) - 14.05.2024 07:08 [13:24:23]1206 (1) - 0 [13:24:23]OFD Sender: Remove packet 67065 [13:24:23]ProducePacketName [13:24:23]name=ofd_packets/00067065 [13:24:23]NVStorageDeleteData [13:24:24]Write to MH i2c: 01 00 00 C3 29 EC [13:24:24]Write i2c OK [13:24:24]MH_I2C_Read... [13:24:24]Read from MH i2c: 01 [13:24:24]MH_I2C_Read... [13:24:24]Read from MH i2c: 01 07 00 [13:24:24]MH_I2C_Read... [13:24:24]Read from MH i2c: 01 07 00 C3 29 00 00 00 00 00 D4 0C D3 [13:24:24]RasterBufferAndPrint [13:24:24]line [13:24:24]line [13:24:24]line [13:24:24]line [13:24:24]line [13:24:24]written 0, free lines is 3289 [13:24:24]MH_Cut [13:24:24]Write to MH i2c: D1 01 00 CA 29 01 C5 [13:24:24]Write i2c OK [13:24:24]MH_I2C_Read... [13:24:24]Read from MH i2c: D1 [13:24:24]MH_I2C_Read... [13:24:24]Read from MH i2c: D1 01 00 [13:24:24]MH_I2C_Read... [13:24:24]Read from MH i2c: D1 01 00 CA 29 00 C4 [13:24:24]Write to MH i2c: 01 00 00 CB 29 F4 [13:24:24]Write i2c OK [13:24:24]MH_I2C_Read... [13:24:24]OFD Sender: No OFD packet to send [13:24:24]*** Cut start [13:24:24]*** Purtial cut [13:24:24]*** CUTSNS_PIN = 0 [13:24:25]*** Stage 1: CUTSNS_PIN = 1 [13:24:26]Read from MH i2c: 01 [13:24:26]MH_I2C_Read... [13:24:26]*** Stop cut motor [13:24:26]*** Cut end [13:24:26]Read from MH i2c: 01 07 00 [13:24:26]MH_I2C_Read... [13:24:26]Read from MH i2c: 01 07 00 CB 29 00 00 00 00 00 FF 0F 09 [13:24:26]process_action close_receipt done [13:24:26]requested_data is exist [13:24:26]produce_requested_data [13:24:26]requested_item fm.sn is exist - process it [13:24:26]wFMCommunicate request_size=4 [13:24:26]MH_SAM_APDU [13:24:26]CAPDU: 80 11 00 00 [13:24:26]Write to MH i2c: E2 08 00 CC 29 80 11 00 00 00 00 00 00 6F [13:24:26]Write i2c OK [13:24:26]MH_I2C_Read... [13:24:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:26]Read from MH i2c: E2 [13:24:26]MH_I2C_Read... [13:24:26]Read from MH i2c: E2 17 00 [13:24:26]MH_I2C_Read... [13:24:26]Read from MH i2c: E2 17 00 CC 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C5 [13:24:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:24:26]wFMCommunicate OK [13:24:26]requested_item fd.num is exist - process it [13:24:26]SAM_PROTO_GetFieldsCounters [13:24:26]wFMCommunicate request_size=4 [13:24:26]MH_SAM_APDU [13:24:26]CAPDU: 80 13 00 00 [13:24:26]Write to MH i2c: E2 08 00 CD 29 80 13 00 00 00 00 00 00 72 [13:24:26]Write i2c OK [13:24:26]MH_I2C_Read... [13:24:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:27]Read from MH i2c: E2 [13:24:27]MH_I2C_Read... [13:24:27]Read from MH i2c: E2 62 00 [13:24:27]MH_I2C_Read... [13:24:27]Read from MH i2c: E2 62 00 CD 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 F9 05 01 00 0E 04 04 00 63 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 D3 [13:24: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 F9 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:27]wFMCommunicate OK [13:24:27]SAM_PROTO_GetFieldsCounters done [13:24:27]requested_item shift.num is exist - process it [13:24:27]requested_item shift.opened is exist - process it [13:24:27]req_shift_opened [13:24:27]FM_GetShiftState [13:24:27]SAM_PROTO_GetShiftState [13:24:27]wFMCommunicate request_size=4 [13:24:27]MH_SAM_APDU [13:24:27]CAPDU: 80 13 01 00 [13:24:27]Write to MH i2c: E2 08 00 CE 29 80 13 01 00 00 00 00 00 74 [13:24:27]Write i2c OK [13:24:27]MH_I2C_Read... [13:24:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:27]Read from MH i2c: E2 [13:24:27]MH_I2C_Read... [13:24:27]Read from MH i2c: E2 0E 00 [13:24:27]MH_I2C_Read... [13:24:27]Read from MH i2c: E2 0E 00 CE 29 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 3C [13:24:27]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:24:27]wFMCommunicate OK [13:24:27]SAM_PROTO_GetShiftState done [13:24:27]FM_GetShiftState done [13:24:27]req_shift_opened done [13:24:27]requested_item shift.open_date is exist - process it [13:24:27]req_shift_open_date [13:24:27]req_shift_open_date done [13:24:27]produce_requested_data done [13:24:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67065,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [13:24:27]process_action_free close_receipt [13:24:27]json_value_free [13:24:27]json_value_free done [13:24:27]process_json_proto returns [13:24:27]Send response to host [13:24:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67065,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [13:24:27]free response buf [13:24:27]execute_script done [13:24:27]execute_script returns [13:24:27]free content buf [13:24:27]Sock 8.Close socket [13:24:27]Sock 8.Thread stoped [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:39]OFD Sender: No OFD packet to send [13:24:44]OFD Sender: No OFD packet to send [13:24:49]OFD Sender: No OFD packet to send [13:24:54]OFD Sender: No OFD packet to send [13:24:59]OFD Sender: No OFD packet to send [13:25:04]OFD Sender: No OFD packet to send [13:25:09]OFD Sender: No OFD packet to send [13:25:14]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]OFD Sender: No OFD packet to send [13:25:29]OFD Sender: No OFD packet to send [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:28:34]OFD Sender: No OFD packet to send [13:28:39]OFD Sender: No OFD packet to send [13:28:44]OFD Sender: No OFD packet to send [13:28:49]OFD Sender: No OFD packet to send [13:28:54]OFD Sender: No OFD packet to send [13:28:59]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:09]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:46]accept exits with 9 [13:29:46]New connection [13:29:46]New thread 3066617188 created [13:29:46]Thread 3066760548 joined [13:29:46]Waiting for new connection... [13:29:46] Sock 9.Parse request [13:29:46]Sock 9.Check first char [13:29:46]Sock 9.First char is OK [13:29:46]request: POST /json_proto HTTP/1.0 [13:29:46]Method: POST [13:29:46]URL: /json_proto [13:29:46]Method is POST - this is cgi request [13:29:46]url: /json_proto [13:29:46]query_string will be loaded in cgi processing [13:29:46]execute_cgi json_proto POST (null) [13:29:46]execute_cgi path=json_proto method=POST [13:29:46]POST find Content-Length [13:29:46]Host: 172.17.41.195:8080 [13:29:46]Content-Length: 977 [13:29:46]Content-Type: application/json [13:29:46] [13:29:46]POST finish read [13:29:46]Found Content-Length = 977 [13:29:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506942", "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" : 73.70, "quantity" : 54.280, "sum" : 4000.44, "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 54.28 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:46]execute_script... [13:29: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)506942", "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" : 73.70, "quantity" : 54.280, "sum" : 4000.44, "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 54.28 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:46]POST & json_proto [13:29:46]process_json_proto [13:29:46]json parsed OK: [13:29:46]protocol is kg_v1.0 [13:29:46]action value=close_receipt [13:29:46]process_action close_receipt [13:29:46]cmd_close_receipt [13:29:46]MH_GetDate [13:29:46]Write to MH i2c: F0 00 00 CF 29 E7 [13:29:46]Write i2c OK [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: F0 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: F0 09 00 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: F0 09 00 CF 29 00 4E 67 43 66 FC 21 6F 64 3E [13:29:46]GetLastDocTimeStamp 1715693066 [13:29:46]current date 1715693390 [13:29:46]FM_GetShiftState [13:29:46]SAM_PROTO_GetShiftState [13:29:46]wFMCommunicate request_size=4 [13:29:46]MH_SAM_APDU [13:29:46]CAPDU: 80 13 01 00 [13:29:46]Write to MH i2c: E2 08 00 D0 29 80 13 01 00 00 00 00 00 76 [13:29:46]Write i2c OK [13:29:46]MH_I2C_Read... [13:29:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:46]Read from MH i2c: E2 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: E2 0E 00 [13:29:46]MH_I2C_Read... [13:29:46]Read from MH i2c: E2 0E 00 D0 29 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 3E [13:29:46]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:29:46]wFMCommunicate OK [13:29:46]SAM_PROTO_GetShiftState done [13:29:46]FM_GetShiftState done [13:29:46]opened in 1715646054 [13:29:46]opened+sec_in_day 1715732454 [13:29:46]quantity*price = 400043 [13:29:46]sum+1 = 400045 [13:29:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.82 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 73 14.05.2024 13:29 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Дисконтная программа ДТ номер 91 сэкономлено 54.28 сом ФМ: 0000000000871829 ФД: 67066 ФПД: 243911038725621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T132950&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67066&fm=243911038725621&tin=02508201610067®Number=0000000000091845&sum=400000 [13:29:47]StoreToDocumentArchive [13:29:47]shift 355 fd 67066 [13:29:47]save to /storage/0355/doc_00067066 [13:29:47]save last doc name /storage/0355/doc_00067066 to /storage/kkm_last_doc_name [13:29:47]save OK [13:29:47]Clear old archive folders... [13:29:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:29:47]tlvbuf is 003E8850 [13:29:47]SAM_PROTO_ClearQueue [13:29:47]wFMCommunicate request_size=4 [13:29:47]MH_SAM_APDU [13:29:47]CAPDU: 80 09 00 00 [13:29:47]Write to MH i2c: E2 08 00 DD 29 80 09 00 00 00 00 00 00 78 [13:29:47]Write i2c OK [13:29:47]MH_I2C_Read... [13:29:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:47]Read from MH i2c: E2 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 03 00 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 03 00 DD 29 00 90 00 7A [13:29:47]RAPDU: 90 00 [13:29:47]wFMCommunicate OK [13:29:47]SAM_PROTO_ClearQueue done [13:29:47]KKMCreateOFDPacket [13:29:47]OFDProtocolAddRootSTLVToBuf [13:29:47]FM_MakeSignedData [13:29:47]FM_MakeSignedData [13:29:47]SAM_PROTO_SignData [13:29:47]wFMCommunicate request_size=4 [13:29:47]MH_SAM_APDU [13:29:47]CAPDU: 80 0D 01 02 [13:29:47]Write to MH i2c: E2 08 00 DE 29 80 0D 01 02 00 00 00 00 80 [13:29:47]Write i2c OK [13:29:47]MH_I2C_Read... [13:29:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:47]Read from MH i2c: E2 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 03 00 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 03 00 DE 29 00 90 00 7B [13:29:47]RAPDU: 90 00 [13:29:47]wFMCommunicate OK [13:29:47]wFMCommunicate request_size=255 [13:29:47]MH_SAM_APDU [13:29:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 D4 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 AC 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 4E 67 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FA 05 01 00 35 04 06 00 DD D5 F6 D1 [13:29:47]Write to MH i2c: E2 02 01 DF 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 D4 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 AC 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 4E 67 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FA 05 01 00 35 04 06 00 DD D5 F6 D1 00 00 AC [13:29:47]Write i2c OK [13:29:47]MH_I2C_Read... [13:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:47]Read from MH i2c: E2 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 03 00 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 03 00 DF 29 00 90 00 7C [13:29:47]RAPDU: 90 00 [13:29:47]wFMCommunicate OK [13:29:47]wFMCommunicate request_size=7 [13:29:47]MH_SAM_APDU [13:29:47]CAPDU: 80 0D 02 02 02 ED F5 [13:29:47]Write to MH i2c: E2 0A 00 E0 29 80 0D 02 02 02 00 ED F5 00 00 69 [13:29:47]Write i2c OK [13:29:47]MH_I2C_Read... [13:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:47]Read from MH i2c: E2 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 03 00 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 03 00 E0 29 00 90 00 7D [13:29:47]RAPDU: 90 00 [13:29:47]wFMCommunicate OK [13:29:47]wFMCommunicate request_size=4 [13:29:47]MH_SAM_APDU [13:29:47]CAPDU: 80 0D 03 02 [13:29:47]Write to MH i2c: E2 08 00 E1 29 80 0D 03 02 00 00 00 00 85 [13:29:47]Write i2c OK [13:29:47]MH_I2C_Read... [13:29:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:47]Read from MH i2c: E2 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 0B 00 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 0B 00 E1 29 00 5B 70 3A 46 8C 96 82 EB 90 00 60 [13:29:47]RAPDU: 5B 70 3A 46 8C 96 82 EB 90 00 [13:29:47]wFMCommunicate OK [13:29:47]SAM_PROTO_SignData done [13:29:47]FM_MakeSignedData done [13:29:47]CreateOFDProtocolMessage [13:29:47]wFMCommunicate request_size=4 [13:29:47]MH_SAM_APDU [13:29:47]CAPDU: 80 11 00 00 [13:29:47]Write to MH i2c: E2 08 00 E2 29 80 11 00 00 00 00 00 00 85 [13:29:47]Write i2c OK [13:29:47]MH_I2C_Read... [13:29:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:47]Read from MH i2c: E2 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 17 00 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: E2 17 00 E2 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DB [13:29:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:29:47]wFMCommunicate OK [13:29:47]CreateOFDProtocolMessage done [13:29:47]OFDSenderStorePacket 67066 [13:29:47]StoreOFDPacket docnum=67066 [13:29:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 CA 9E 04 01 F7 F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 D4 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 AC 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 4E 67 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FA 05 01 00 35 04 06 00 DD D5 F6 D1 ED F5 5B 70 3A 46 8C 96 82 EB [13:29:47]CheckFolder [13:29:47]dirname=/storage/ofd_packets [13:29:47]CheckFolder done [13:29:47]ProducePacketName [13:29:47]name=ofd_packets/00067066 [13:29:47]NVStorageSaveData ofd_packets/00067066 [13:29:47]File name is /storage/ofd_packets/00067066 [13:29:47]Write 298 bytes [13:29:47]NVStorageSaveData done [13:29:47]OFDSenderStorePacket done [13:29:47]KKMCreateOFDPacket done [13:29:47]NVStorageSaveData kkm_last_timestamp [13:29:47]File name is /storage/kkm_last_timestamp [13:29:47]Write 4 bytes [13:29:47]NVStorageSaveData done [13:29:47]ExternCall_PrintAddStr [13:29:47]wPrintStart [13:29:47]Write to MH i2c: 01 00 00 E3 29 0C [13:29:47]Write i2c OK [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: 01 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: 01 07 00 [13:29:47]MH_I2C_Read... [13:29:47]Read from MH i2c: 01 07 00 E3 29 00 00 00 00 00 FF 0F 21 [13:29:47]RasterBufferAndPrint [13:29:47]line Счет N : (1)506942 [13:29:47]line ИНН: 02508201610067 [13:29:47]line Контрольно-Кассовый Чек [13:29:47]line ПРОДАЖА [13:29:47]line ТРК (МРК, ГНК) : 41 [13:29:47]line Товар: 2710194210 [13:29:47]line ДТ-К-5 [13:29:47]line 54.280 * 73.70 [13:29:47]line = 4000.44 [13:29:47]line НДС 12% НСП 1% [13:29:47]line > о реализуемом товаре [13:29:47]line ОКРУГЛЕНИЕ: -0.44 [13:29:47]line ИТОГО: 4000.00 [13:29:47]line Внесено: 4000.00 [13:29:47]line СДАЧА: 0.00 [13:29:47]line НСП 1% : 35.40 [13:29:47]line НДС 12% : 424.82 [13:29:47]line Наличными: 4000.00 [13:29:47]line Безнал.: 0.00 [13:29:47]line Место: АЗС № 91 "Партнер Нефть" [13:29:47]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:29:47]line СНО: Общий режим [13:29:47]line Чек 73 14.05.2024 13:29 [13:29:47]line Смена: 355 ФФД: 1.0 [13:29:47]line ЗНМ: 0300000119 [13:29:47]line РНМ: 0000000000091845 [13:29:47]line Версия ККМ: 001 [13:29:47]line [13:29:47]line Дисконтная программа [13:29:47]line ДТ [13:29:47]line номер 91 [13:29:47]line сэкономлено 54.28 сом [13:29:47]line ФМ: 0000000000871829 [13:29:47]line ФД: 67066 [13:29:47]line ФПД: 243911038725621 [13:29:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T132950&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67066&fm=243911038725621&tin=02508201610067®Number=0000000000091845&sum=400000 [13:29:48]OFD Sender: Processing packet 67066 [packets to send 35, broken 34] [13:29:48]ProducePacketName [13:29:48]name=ofd_packets/00067066 [13:29:48]OFD Sender: To server: pG, [13:29:48]CommunicateWithHost lk.salyk.kg:30040 [13:29:48]ConnectInit lk.salyk.kg [13:29:48]written 0, free lines is 4095 [13:29:48]Connected sock=10 [13:29:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 CA 9E 04 01 F7 F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 D4 00 00 00 00 00 37 04 06 00 CA 1C 00 00 00 00 13 04 06 00 AC 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 4E 67 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FA 05 01 00 35 04 06 00 DD D5 F6 D1 ED F5 5B 70 3A 46 8C 96 82 EB [13:29: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 35 5B 47 00 96 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 FA 05 01 00 F4 03 04 00 2E 0F 43 66 B6 04 01 00 00 D6 B0 0B B1 6E F9 5A C4 [13:29:48]CommunicateWithHost err = 0 [13:29:48]CheckOFDResponse [13:29:48]1017 (14) - 77093643461234 [13:29:48]1041 (16) - 0000000000871829 [13:29:48]1040 (4) - 67066 [13:29:48]1012 (4) - 14.05.2024 07:13 [13:29:48]1206 (1) - 0 [13:29:48]OFD Sender: Remove packet 67066 [13:29:48]ProducePacketName [13:29:48]name=ofd_packets/00067066 [13:29:48]NVStorageDeleteData [13:29:48]Write to MH i2c: 01 00 00 12 2A 3C [13:29:48]Write i2c OK [13:29:48]MH_I2C_Read... [13:29:48]Read from MH i2c: 01 [13:29:48]MH_I2C_Read... [13:29:48]Read from MH i2c: 01 07 00 [13:29:48]MH_I2C_Read... [13:29:48]Read from MH i2c: 01 07 00 12 2A 00 00 00 00 00 75 0C C4 [13:29:48]RasterBufferAndPrint [13:29:48]line [13:29:48]line [13:29:48]line [13:29:48]line [13:29:48]line [13:29:48]written 0, free lines is 3195 [13:29:48]MH_Cut [13:29:48]Write to MH i2c: D1 01 00 19 2A 01 15 [13:29:48]Write i2c OK [13:29:48]MH_I2C_Read... [13:29:48]Read from MH i2c: D1 [13:29:48]MH_I2C_Read... [13:29:48]Read from MH i2c: D1 01 00 [13:29:48]MH_I2C_Read... [13:29:48]Read from MH i2c: D1 01 00 19 2A 00 14 [13:29:48]Write to MH i2c: 01 00 00 1A 2A 44 [13:29:48]Write i2c OK [13:29:48]MH_I2C_Read... [13:29:49]OFD Sender: No OFD packet to send [13:29:49]*** Cut start [13:29:49]*** Purtial cut [13:29:49]*** Stage 1: CUTSNS_PIN = 1 [13:29:49]Read from MH i2c: 01 [13:29:49]MH_I2C_Read... [13:29:49]*** Stop cut motor [13:29:49]*** Cut end [13:29:49]Read from MH i2c: 01 07 00 [13:29:49]MH_I2C_Read... [13:29:49]Read from MH i2c: 01 07 00 1A 2A 00 00 00 00 00 FF 0F 59 [13:29:49]process_action close_receipt done [13:29:49]requested_data is exist [13:29:49]produce_requested_data [13:29:49]requested_item fm.sn is exist - process it [13:29:49]wFMCommunicate request_size=4 [13:29:49]MH_SAM_APDU [13:29:49]CAPDU: 80 11 00 00 [13:29:49]Write to MH i2c: E2 08 00 1B 2A 80 11 00 00 00 00 00 00 BF [13:29:49]Write i2c OK [13:29:49]MH_I2C_Read... [13:29:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:50]Read from MH i2c: E2 [13:29:50]MH_I2C_Read... [13:29:50]Read from MH i2c: E2 17 00 [13:29:50]MH_I2C_Read... [13:29:50]Read from MH i2c: E2 17 00 1B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 15 [13:29: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:29:50]wFMCommunicate OK [13:29:50]requested_item fd.num is exist - process it [13:29:50]SAM_PROTO_GetFieldsCounters [13:29:50]wFMCommunicate request_size=4 [13:29:50]MH_SAM_APDU [13:29:50]CAPDU: 80 13 00 00 [13:29:50]Write to MH i2c: E2 08 00 1C 2A 80 13 00 00 00 00 00 00 C2 [13:29:50]Write i2c OK [13:29:50]MH_I2C_Read... [13:29:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:50]Read from MH i2c: E2 [13:29:50]MH_I2C_Read... [13:29:50]Read from MH i2c: E2 62 00 [13:29:50]MH_I2C_Read... [13:29:50]Read from MH i2c: E2 62 00 1C 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FA 05 01 00 0E 04 04 00 63 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 27 [13:29: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 FA 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:29:50]wFMCommunicate OK [13:29:50]SAM_PROTO_GetFieldsCounters done [13:29:50]requested_item shift.num is exist - process it [13:29:50]requested_item shift.opened is exist - process it [13:29:50]req_shift_opened [13:29:50]FM_GetShiftState [13:29:50]SAM_PROTO_GetShiftState [13:29:50]wFMCommunicate request_size=4 [13:29:50]MH_SAM_APDU [13:29:50]CAPDU: 80 13 01 00 [13:29:50]Write to MH i2c: E2 08 00 1D 2A 80 13 01 00 00 00 00 00 C4 [13:29:50]Write i2c OK [13:29:50]MH_I2C_Read... [13:29:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:50]Read from MH i2c: E2 [13:29:50]MH_I2C_Read... [13:29:50]Read from MH i2c: E2 0E 00 [13:29:50]MH_I2C_Read... [13:29:50]Read from MH i2c: E2 0E 00 1D 2A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 8C [13:29:50]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:29:50]wFMCommunicate OK [13:29:50]SAM_PROTO_GetShiftState done [13:29:50]FM_GetShiftState done [13:29:50]req_shift_opened done [13:29:50]requested_item shift.open_date is exist - process it [13:29:50]req_shift_open_date [13:29:50]req_shift_open_date done [13:29:50]produce_requested_data done [13:29:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67066,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [13:29:50]process_action_free close_receipt [13:29:50]json_value_free [13:29:50]json_value_free done [13:29:50]process_json_proto returns [13:29:50]Send response to host [13:29:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67066,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [13:29:50]free response buf [13:29:50]execute_script done [13:29:50]execute_script returns [13:29:50]free content buf [13:29:50]Sock 9.Close socket [13:29:50]Sock 9.Thread stoped [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:09]OFD Sender: No OFD packet to send [13:30:10]accept exits with 8 [13:30:10]New connection [13:30:10]New thread 3066760548 created [13:30:10]Thread 3066617188 joined [13:30:10]Waiting for new connection... [13:30:10] Sock 8.Parse request [13:30:10]Sock 8.Check first char [13:30:10]Sock 8.First char is OK [13:30:10]request: POST /json_proto HTTP/1.0 [13:30:10]Method: POST [13:30:10]URL: /json_proto [13:30:10]Method is POST - this is cgi request [13:30:10]url: /json_proto [13:30:10]query_string will be loaded in cgi processing [13:30:10]execute_cgi json_proto POST (null) [13:30:10]execute_cgi path=json_proto method=POST [13:30:10]POST find Content-Length [13:30:10]Host: 172.17.41.195:8080 [13:30:10]Content-Length: 965 [13:30:10]Content-Type: application/json [13:30:10] [13:30:10]POST finish read [13:30:10]Found Content-Length = 965 [13:30:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506943", "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" ] } } [13:30:10]execute_script... [13:30: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)506943", "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" ] } } [13:30:10]POST & json_proto [13:30:10]process_json_proto [13:30:10]json parsed OK: [13:30:10]protocol is kg_v1.0 [13:30:10]action value=close_receipt [13:30:10]process_action close_receipt [13:30:10]cmd_close_receipt [13:30:10]MH_GetDate [13:30:10]Write to MH i2c: F0 00 00 1E 2A 37 [13:30:10]Write i2c OK [13:30:10]MH_I2C_Read... [13:30:10]Read from MH i2c: F0 [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: F0 09 00 [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: F0 09 00 1E 2A 00 67 67 43 66 FC 21 6F 64 A7 [13:30:11]GetLastDocTimeStamp 1715693390 [13:30:11]current date 1715693415 [13:30:11]FM_GetShiftState [13:30:11]SAM_PROTO_GetShiftState [13:30:11]wFMCommunicate request_size=4 [13:30:11]MH_SAM_APDU [13:30:11]CAPDU: 80 13 01 00 [13:30:11]Write to MH i2c: E2 08 00 1F 2A 80 13 01 00 00 00 00 00 C6 [13:30:11]Write i2c OK [13:30:11]MH_I2C_Read... [13:30:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:11]Read from MH i2c: E2 [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: E2 0E 00 [13:30:11]MH_I2C_Read... [13:30:11]Read from MH i2c: E2 0E 00 1F 2A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 8E [13:30:11]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:30:11]wFMCommunicate OK [13:30:11]SAM_PROTO_GetShiftState done [13:30:11]FM_GetShiftState done [13:30:11]opened in 1715646054 [13:30:11]opened+sec_in_day 1715732454 [13:30:11]quantity*price = 150032 [13:30:11]sum+1 = 150034 [13:30:11]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 СНО: Общий режим Чек 74 14.05.2024 13:30 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Дисконтная программа S-92 номер 91 сэкономлено 22.46 сом ФМ: 0000000000871829 ФД: 67067 ФПД: 141053192298050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T133015&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67067&fm=141053192298050&tin=02508201610067®Number=0000000000091845&sum=150000 [13:30:12]StoreToDocumentArchive [13:30:12]shift 355 fd 67067 [13:30:12]save to /storage/0355/doc_00067067 [13:30:12]save last doc name /storage/0355/doc_00067067 to /storage/kkm_last_doc_name [13:30:12]save OK [13:30:12]Clear old archive folders... [13:30:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:30:12]tlvbuf is 003DE370 [13:30:12]SAM_PROTO_ClearQueue [13:30:12]wFMCommunicate request_size=4 [13:30:12]MH_SAM_APDU [13:30:12]CAPDU: 80 09 00 00 [13:30:12]Write to MH i2c: E2 08 00 2C 2A 80 09 00 00 00 00 00 00 C8 [13:30:12]Write i2c OK [13:30:12]MH_I2C_Read... [13:30:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:12]Read from MH i2c: E2 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 03 00 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 03 00 2C 2A 00 90 00 CA [13:30:12]RAPDU: 90 00 [13:30:12]wFMCommunicate OK [13:30:12]SAM_PROTO_ClearQueue done [13:30:12]KKMCreateOFDPacket [13:30:12]OFDProtocolAddRootSTLVToBuf [13:30:12]FM_MakeSignedData [13:30:12]FM_MakeSignedData [13:30:12]SAM_PROTO_SignData [13:30:12]wFMCommunicate request_size=4 [13:30:12]MH_SAM_APDU [13:30:12]CAPDU: 80 0D 01 02 [13:30:12]Write to MH i2c: E2 08 00 2D 2A 80 0D 01 02 00 00 00 00 D0 [13:30:12]Write i2c OK [13:30:12]MH_I2C_Read... [13:30:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:12]Read from MH i2c: E2 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 03 00 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 03 00 2D 2A 00 90 00 CB [13:30:12]RAPDU: 90 00 [13:30:12]wFMCommunicate OK [13:30:12]wFMCommunicate request_size=255 [13:30:12]MH_SAM_APDU [13:30:12]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 4A 00 00 00 F4 03 04 00 67 67 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FB 05 01 00 35 04 06 00 [13:30:12]Write to MH i2c: E2 02 01 2E 2A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4A 00 00 00 F4 03 04 00 67 67 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FB 05 01 00 35 04 06 00 00 00 F7 [13:30:12]Write i2c OK [13:30:12]MH_I2C_Read... [13:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:12]Read from MH i2c: E2 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 03 00 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 03 00 2E 2A 00 90 00 CC [13:30:12]RAPDU: 90 00 [13:30:12]wFMCommunicate OK [13:30:12]wFMCommunicate request_size=11 [13:30:12]MH_SAM_APDU [13:30:12]CAPDU: 80 0D 02 02 06 80 49 81 6B DE 42 [13:30:12]Write to MH i2c: E2 0E 00 2F 2A 80 0D 02 02 06 00 80 49 81 6B DE 42 00 00 B4 [13:30:12]Write i2c OK [13:30:12]MH_I2C_Read... [13:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:12]Read from MH i2c: E2 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 03 00 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 03 00 2F 2A 00 90 00 CD [13:30:12]RAPDU: 90 00 [13:30:12]wFMCommunicate OK [13:30:12]wFMCommunicate request_size=4 [13:30:12]MH_SAM_APDU [13:30:12]CAPDU: 80 0D 03 02 [13:30:12]Write to MH i2c: E2 08 00 30 2A 80 0D 03 02 00 00 00 00 D5 [13:30:12]Write i2c OK [13:30:12]MH_I2C_Read... [13:30:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:12]Read from MH i2c: E2 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 0B 00 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 0B 00 30 2A 00 4A 28 14 FA 7A B1 93 BA 90 00 CE [13:30:12]RAPDU: 4A 28 14 FA 7A B1 93 BA 90 00 [13:30:12]wFMCommunicate OK [13:30:12]SAM_PROTO_SignData done [13:30:12]FM_MakeSignedData done [13:30:12]CreateOFDProtocolMessage [13:30:12]wFMCommunicate request_size=4 [13:30:12]MH_SAM_APDU [13:30:12]CAPDU: 80 11 00 00 [13:30:12]Write to MH i2c: E2 08 00 31 2A 80 11 00 00 00 00 00 00 D5 [13:30:12]Write i2c OK [13:30:12]MH_I2C_Read... [13:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:12]Read from MH i2c: E2 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 17 00 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: E2 17 00 31 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2B [13:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:30:12]wFMCommunicate OK [13:30:12]CreateOFDProtocolMessage done [13:30:12]OFDSenderStorePacket 67067 [13:30:12]StoreOFDPacket docnum=67067 [13:30: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 10 01 00 00 E0 07 08 01 64 6E 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 4A 00 00 00 F4 03 04 00 67 67 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FB 05 01 00 35 04 06 00 80 49 81 6B DE 42 4A 28 14 FA 7A B1 93 BA [13:30:12]CheckFolder [13:30:12]dirname=/storage/ofd_packets [13:30:12]CheckFolder done [13:30:12]ProducePacketName [13:30:12]name=ofd_packets/00067067 [13:30:12]NVStorageSaveData ofd_packets/00067067 [13:30:12]File name is /storage/ofd_packets/00067067 [13:30:12]Write 302 bytes [13:30:12]NVStorageSaveData done [13:30:12]OFDSenderStorePacket done [13:30:12]KKMCreateOFDPacket done [13:30:12]NVStorageSaveData kkm_last_timestamp [13:30:12]File name is /storage/kkm_last_timestamp [13:30:12]Write 4 bytes [13:30:12]NVStorageSaveData done [13:30:12]ExternCall_PrintAddStr [13:30:12]wPrintStart [13:30:12]Write to MH i2c: 01 00 00 32 2A 5C [13:30:12]Write i2c OK [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: 01 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: 01 07 00 [13:30:12]MH_I2C_Read... [13:30:12]Read from MH i2c: 01 07 00 32 2A 00 00 00 00 00 FF 0F 71 [13:30:12]RasterBufferAndPrint [13:30:12]line Счет N : (1)506943 [13:30:12]line ИНН: 02508201610067 [13:30:12]line Контрольно-Кассовый Чек [13:30:12]line ПРОДАЖА [13:30:12]line ТРК (МРК, ГНК) : 22 [13:30:12]line Товар: 2710124130 [13:30:12]line Super-92-К-5 [13:30:12]line 22.460 * 66.80 [13:30:12]line = 1500.33 [13:30:12]line НДС 12% НСП 1% [13:30:12]line > о реализуемом товаре [13:30:12]line ОКРУГЛЕНИЕ: -0.33 [13:30:12]line ИТОГО: 1500.00 [13:30:12]line Внесено: 1500.00 [13:30:12]line СДАЧА: 0.00 [13:30:12]line НСП 1% : 13.28 [13:30:12]line НДС 12% : 159.33 [13:30:12]line Наличными: 1500.00 [13:30:12]line Безнал.: 0.00 [13:30:12]line Место: АЗС № 91 "Партнер Нефть" [13:30:12]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:30:12]line СНО: Общий режим [13:30:12]line Чек 74 14.05.2024 13:30 [13:30:12]line Смена: 355 ФФД: 1.0 [13:30:12]line ЗНМ: 0300000119 [13:30:12]line РНМ: 0000000000091845 [13:30:12]line Версия ККМ: 001 [13:30:12]line [13:30:12]line Дисконтная программа [13:30:12]line S-92 [13:30:12]line номер 91 [13:30:12]line сэкономлено 22.46 сом [13:30:12]line ФМ: 0000000000871829 [13:30:12]line ФД: 67067 [13:30:12]line ФПД: 141053192298050 [13:30:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T133015&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67067&fm=141053192298050&tin=02508201610067®Number=0000000000091845&sum=150000 [13:30:13]OFD Sender: Processing packet 67067 [packets to send 35, broken 34] [13:30:13]ProducePacketName [13:30:13]name=ofd_packets/00067067 [13:30:13]OFD Sender: To server: pG, [13:30:13]CommunicateWithHost lk.salyk.kg:30040 [13:30:13]ConnectInit lk.salyk.kg [13:30:13]written 0, free lines is 4095 [13:30:13]Connected sock=11 [13:30: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 10 01 00 00 E0 07 08 01 64 6E 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 4A 00 00 00 F4 03 04 00 67 67 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FB 05 01 00 35 04 06 00 80 49 81 6B DE 42 4A 28 14 FA 7A B1 93 BA [13:30: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 3A 29 47 00 DB AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FB 05 01 00 F4 03 04 00 47 0F 43 66 B6 04 01 00 00 C7 35 9E F4 B3 89 DC 72 [13:30:13]CommunicateWithHost err = 0 [13:30:13]CheckOFDResponse [13:30:13]1017 (14) - 77093643461234 [13:30:13]1041 (16) - 0000000000871829 [13:30:13]1040 (4) - 67067 [13:30:13]1012 (4) - 14.05.2024 07:14 [13:30:13]1206 (1) - 0 [13:30:13]OFD Sender: Remove packet 67067 [13:30:13]ProducePacketName [13:30:13]name=ofd_packets/00067067 [13:30:13]NVStorageDeleteData [13:30:13]Write to MH i2c: 01 00 00 61 2A 8B [13:30:13]Write i2c OK [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: 01 [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: 01 07 00 [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: 01 07 00 61 2A 00 00 00 00 00 6E 0C 0C [13:30:13]RasterBufferAndPrint [13:30:13]line [13:30:13]line [13:30:13]line [13:30:13]line [13:30:13]line [13:30:13]written 0, free lines is 3186 [13:30:13]MH_Cut [13:30:13]Write to MH i2c: D1 01 00 68 2A 01 64 [13:30:13]Write i2c OK [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: D1 [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: D1 01 00 [13:30:13]MH_I2C_Read... [13:30:13]Read from MH i2c: D1 01 00 68 2A 00 63 [13:30:13]Write to MH i2c: 01 00 00 69 2A 93 [13:30:13]Write i2c OK [13:30:13]MH_I2C_Read... [13:30:13]OFD Sender: No OFD packet to send [13:30:14]*** Cut start [13:30:14]*** Purtial cut [13:30:14]*** CUTSNS_PIN = 0 [13:30:14]*** Stage 1: CUTSNS_PIN = 1 [13:30:16]Read from MH i2c: 01 [13:30:16]MH_I2C_Read... [13:30:16]*** Stop cut motor [13:30:16]*** Cut end [13:30:16]Read from MH i2c: 01 07 00 [13:30:16]MH_I2C_Read... [13:30:16]Read from MH i2c: 01 07 00 69 2A 00 00 00 00 00 FF 0F A8 [13:30:16]process_action close_receipt done [13:30:16]requested_data is exist [13:30:16]produce_requested_data [13:30:16]requested_item fm.sn is exist - process it [13:30:16]wFMCommunicate request_size=4 [13:30:16]MH_SAM_APDU [13:30:16]CAPDU: 80 11 00 00 [13:30:16]Write to MH i2c: E2 08 00 6A 2A 80 11 00 00 00 00 00 00 0E [13:30:16]Write i2c OK [13:30:16]MH_I2C_Read... [13:30:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:16]Read from MH i2c: E2 [13:30:16]MH_I2C_Read... [13:30:16]Read from MH i2c: E2 17 00 [13:30:16]MH_I2C_Read... [13:30:16]Read from MH i2c: E2 17 00 6A 2A 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:30:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:30:16]wFMCommunicate OK [13:30:16]requested_item fd.num is exist - process it [13:30:16]SAM_PROTO_GetFieldsCounters [13:30:16]wFMCommunicate request_size=4 [13:30:16]MH_SAM_APDU [13:30:16]CAPDU: 80 13 00 00 [13:30:16]Write to MH i2c: E2 08 00 6B 2A 80 13 00 00 00 00 00 00 11 [13:30:16]Write i2c OK [13:30:16]MH_I2C_Read... [13:30:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:16]Read from MH i2c: E2 [13:30:16]MH_I2C_Read... [13:30:16]Read from MH i2c: E2 62 00 [13:30:16]MH_I2C_Read... [13:30:16]Read from MH i2c: E2 62 00 6B 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FB 05 01 00 0E 04 04 00 63 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 7A [13:30: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 FB 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:16]wFMCommunicate OK [13:30:16]SAM_PROTO_GetFieldsCounters done [13:30:16]requested_item shift.num is exist - process it [13:30:16]requested_item shift.opened is exist - process it [13:30:16]req_shift_opened [13:30:16]FM_GetShiftState [13:30:16]SAM_PROTO_GetShiftState [13:30:16]wFMCommunicate request_size=4 [13:30:16]MH_SAM_APDU [13:30:16]CAPDU: 80 13 01 00 [13:30:16]Write to MH i2c: E2 08 00 6C 2A 80 13 01 00 00 00 00 00 13 [13:30:16]Write i2c OK [13:30:16]MH_I2C_Read... [13:30:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:16]Read from MH i2c: E2 [13:30:16]MH_I2C_Read... [13:30:16]Read from MH i2c: E2 0E 00 [13:30:16]MH_I2C_Read... [13:30:16]Read from MH i2c: E2 0E 00 6C 2A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 DB [13:30:16]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:30:16]wFMCommunicate OK [13:30:16]SAM_PROTO_GetShiftState done [13:30:16]FM_GetShiftState done [13:30:16]req_shift_opened done [13:30:16]requested_item shift.open_date is exist - process it [13:30:16]req_shift_open_date [13:30:16]req_shift_open_date done [13:30:16]produce_requested_data done [13:30:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67067,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [13:30:16]process_action_free close_receipt [13:30:16]json_value_free [13:30:16]json_value_free done [13:30:16]process_json_proto returns [13:30:16]Send response to host [13:30:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67067,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [13:30:16]free response buf [13:30:16]execute_script done [13:30:16]execute_script returns [13:30:16]free content buf [13:30:16]Sock 8.Close socket [13:30:16]Sock 8.Thread stoped [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:59]OFD Sender: No OFD packet to send [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:12]recv_with_timeout no data received [13:33:14]OFD Sender: No OFD packet to send [13:33:19]OFD Sender: No OFD packet to send [13:33:24]OFD Sender: No OFD packet to send [13:33:29]OFD Sender: No OFD packet to send [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:33]accept exits with 9 [13:34:33]New connection [13:34:33]New thread 3066617188 created [13:34:33]Thread 3066760548 joined [13:34:33]Waiting for new connection... [13:34:33] Sock 9.Parse request [13:34:33]Sock 9.Check first char [13:34:33]Sock 9.First char is OK [13:34:33]request: POST /json_proto HTTP/1.0 [13:34:33]Method: POST [13:34:33]URL: /json_proto [13:34:33]Method is POST - this is cgi request [13:34:33]url: /json_proto [13:34:33]query_string will be loaded in cgi processing [13:34:33]execute_cgi json_proto POST (null) [13:34:33]execute_cgi path=json_proto method=POST [13:34:33]POST find Content-Length [13:34:33]Host: 172.17.41.195:8080 [13:34:33]Content-Length: 1179 [13:34:33]Content-Type: application/json [13:34:33] [13:34:33]POST finish read [13:34:33]Found Content-Length = 1179 [13:34: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)506944\u000A14.05.2024 13:17\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" ] } } [13:34:33]execute_script... [13:34: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)506944\u000A14.05.2024 13:17\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" ] } } [13:34:33]POST & json_proto [13:34:33]process_json_proto [13:34:33]json parsed OK: [13:34:33]protocol is kg_v1.0 [13:34:33]action value=print_text [13:34:33]process_action print_text [13:34:33]cmd_print_text [13:34:33]ExternCall_PrintAddStr [13:34:33]wPrintStart [13:34:33]Write to MH i2c: 01 00 00 6D 2A 97 [13:34:33]Write i2c OK [13:34:33]MH_I2C_Read... [13:34:33]Read from MH i2c: 01 [13:34:33]MH_I2C_Read... [13:34:33]Read from MH i2c: 01 07 00 [13:34:33]MH_I2C_Read... [13:34:33]Read from MH i2c: 01 07 00 6D 2A 00 00 00 00 00 FF 0F AC [13:34:33]RasterBufferAndPrint [13:34:33]line *****ТОВАРНЫЙ ЧЕК***** [13:34:33]line АЗС-91 [13:34:33]line Партнер нефть [13:34:33]line 02508201610067 [13:34:33]line Кассир : Адишов И. [13:34:33]line Счет N : (1)506944 [13:34:33]line 14.05.2024 13:17 [13:34:33]line ПРОДАЖА [13:34:33]line ТРК (МРК, ГНК): 41 [13:34:33]line Вид ГСМ : 2710194210 [13:34:33]line ДТ-К-5 [13:34:33]line 26.780 x 74.70 [13:34:33]line ИТОГ: 2000.47 [13:34:33]line Тип оплаты: Талоны: Топливная Карта [13:34:33]line 02750 [13:34:33]line ______________________ [13:34:33]line (подпись) [13:34:33]written 0, free lines is 4095 [13:34:33]Write to MH i2c: 01 00 00 81 2A AB [13:34:33]Write i2c OK [13:34:33]MH_I2C_Read... [13:34:33]Read from MH i2c: 01 [13:34:33]MH_I2C_Read... [13:34:33]Read from MH i2c: 01 07 00 [13:34:33]MH_I2C_Read... [13:34:33]Read from MH i2c: 01 07 00 81 2A 00 00 00 00 00 0C 0E CC [13:34:33]RasterBufferAndPrint [13:34:33]line [13:34:33]line [13:34:33]line [13:34:33]line [13:34:33]line [13:34:33]written 0, free lines is 3598 [13:34:33]MH_Cut [13:34:33]Write to MH i2c: D1 01 00 88 2A 01 84 [13:34:33]Write i2c OK [13:34:33]MH_I2C_Read... [13:34:33]Read from MH i2c: D1 [13:34:33]MH_I2C_Read... [13:34:33]Read from MH i2c: D1 01 00 [13:34:33]MH_I2C_Read... [13:34:33]Read from MH i2c: D1 01 00 88 2A 00 83 [13:34:33]Write to MH i2c: 01 00 00 89 2A B3 [13:34:33]Write i2c OK [13:34:33]MH_I2C_Read... [13:34:34]*** Cut start [13:34:34]*** Purtial cut [13:34:34]*** Stage 1: CUTSNS_PIN = 1 [13:34:34]OFD Sender: No OFD packet to send [13:34:34]Read from MH i2c: 01 [13:34:34]MH_I2C_Read... [13:34:34]Read from MH i2c: 01 07 00 [13:34:34]MH_I2C_Read... [13:34:34]*** Stop cut motor [13:34:34]*** Cut end [13:34:34]Read from MH i2c: 01 07 00 89 2A 00 00 00 00 00 FF 0F C8 [13:34:34]process_action print_text done [13:34:34]requested_data is exist [13:34:34]produce_requested_data [13:34:34]requested_item fm.sn is exist - process it [13:34:34]wFMCommunicate request_size=4 [13:34:34]MH_SAM_APDU [13:34:34]CAPDU: 80 11 00 00 [13:34:34]Write to MH i2c: E2 08 00 8A 2A 80 11 00 00 00 00 00 00 2E [13:34:34]Write i2c OK [13:34:34]MH_I2C_Read... [13:34:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:34]Read from MH i2c: E2 [13:34:34]MH_I2C_Read... [13:34:34]Read from MH i2c: E2 17 00 [13:34:34]MH_I2C_Read... [13:34:34]Read from MH i2c: E2 17 00 8A 2A 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:34: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:34:34]wFMCommunicate OK [13:34:34]requested_item fd.num is exist - process it [13:34:34]SAM_PROTO_GetFieldsCounters [13:34:34]wFMCommunicate request_size=4 [13:34:34]MH_SAM_APDU [13:34:34]CAPDU: 80 13 00 00 [13:34:34]Write to MH i2c: E2 08 00 8B 2A 80 13 00 00 00 00 00 00 31 [13:34:34]Write i2c OK [13:34:34]MH_I2C_Read... [13:34:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:34]Read from MH i2c: E2 [13:34:34]MH_I2C_Read... [13:34:34]Read from MH i2c: E2 62 00 [13:34:34]MH_I2C_Read... [13:34:34]Read from MH i2c: E2 62 00 8B 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FB 05 01 00 0E 04 04 00 63 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 9A [13:34: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 FB 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:34:34]wFMCommunicate OK [13:34:34]SAM_PROTO_GetFieldsCounters done [13:34:34]requested_item shift.num is exist - process it [13:34:34]requested_item shift.opened is exist - process it [13:34:34]req_shift_opened [13:34:34]FM_GetShiftState [13:34:34]SAM_PROTO_GetShiftState [13:34:34]wFMCommunicate request_size=4 [13:34:34]MH_SAM_APDU [13:34:34]CAPDU: 80 13 01 00 [13:34:34]Write to MH i2c: E2 08 00 8C 2A 80 13 01 00 00 00 00 00 33 [13:34:34]Write i2c OK [13:34:34]MH_I2C_Read... [13:34:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:34]Read from MH i2c: E2 [13:34:34]MH_I2C_Read... [13:34:34]Read from MH i2c: E2 0E 00 [13:34:34]MH_I2C_Read... [13:34:34]Read from MH i2c: E2 0E 00 8C 2A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 FB [13:34:34]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:34:34]wFMCommunicate OK [13:34:34]SAM_PROTO_GetShiftState done [13:34:34]FM_GetShiftState done [13:34:34]req_shift_opened done [13:34:34]requested_item shift.open_date is exist - process it [13:34:34]req_shift_open_date [13:34:34]req_shift_open_date done [13:34:34]produce_requested_data done [13:34:34]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67067,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [13:34:34]process_action_free print_text [13:34:34]json_value_free [13:34:34]json_value_free done [13:34:34]process_json_proto returns [13:34:34]Send response to host [13:34:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67067,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [13:34:34]free response buf [13:34:34]execute_script done [13:34:34]execute_script returns [13:34:34]free content buf [13:34:34]Sock 9.Close socket [13:34:34]Sock 9.Thread stoped [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:39]OFD Sender: No OFD packet to send [13:36:44]OFD Sender: No OFD packet to send [13:36:49]OFD Sender: No OFD packet to send [13:36:54]OFD Sender: No OFD packet to send [13:36:59]OFD Sender: No OFD packet to send [13:37:04]OFD Sender: No OFD packet to send [13:37: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:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:43]recv_with_timeout no data received [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:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:45]accept exits with 8 [13:47:45]New connection [13:47:45]New thread 3066760548 created [13:47:45]Thread 3066617188 joined [13:47:45]Waiting for new connection... [13:47:45] Sock 8.Parse request [13:47:45]Sock 8.Check first char [13:47:45]Sock 8.First char is OK [13:47:45]request: POST /json_proto HTTP/1.0 [13:47:45]Method: POST [13:47:45]URL: /json_proto [13:47:45]Method is POST - this is cgi request [13:47:45]url: /json_proto [13:47:45]query_string will be loaded in cgi processing [13:47:45]execute_cgi json_proto POST (null) [13:47:45]execute_cgi path=json_proto method=POST [13:47:45]POST find Content-Length [13:47:45]Host: 172.17.41.195:8080 [13:47:45]Content-Length: 1143 [13:47:45]Content-Type: application/json [13:47:45] [13:47:45]POST finish read [13:47:45]Found Content-Length = 1143 [13:47: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506945\u000A14.05.2024 13: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\u041A \u0413\u041F\u041D\u0410 Online\u000A30106282\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:45]execute_script... [13:47: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\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506945\u000A14.05.2024 13: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\u041A \u0413\u041F\u041D\u0410 Online\u000A30106282\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:45]POST & json_proto [13:47:45]process_json_proto [13:47:45]json parsed OK: [13:47:45]protocol is kg_v1.0 [13:47:45]action value=print_text [13:47:45]process_action print_text [13:47:45]cmd_print_text [13:47:45]ExternCall_PrintAddStr [13:47:45]wPrintStart [13:47:45]Write to MH i2c: 01 00 00 8D 2A B7 [13:47:45]Write i2c OK [13:47:45]MH_I2C_Read... [13:47:45]Read from MH i2c: 01 [13:47:45]MH_I2C_Read... [13:47:45]Read from MH i2c: 01 07 00 [13:47:45]MH_I2C_Read... [13:47:45]Read from MH i2c: 01 07 00 8D 2A 00 00 00 00 00 FF 0F CC [13:47:45]RasterBufferAndPrint [13:47:45]line *****ТОВАРНЫЙ ЧЕК***** [13:47:45]line АЗС-91 [13:47:45]line Партнер нефть [13:47:45]line 02508201610067 [13:47:45]line Кассир : Адишов И. [13:47:45]line Счет N : (1)506945 [13:47:45]line 14.05.2024 13:30 [13:47:45]line ПРОДАЖА [13:47:45]line ТРК (МРК, ГНК): 43 [13:47:45]line Вид ГСМ : 2710124130 [13:47:45]line Аи-92-К-5 [13:47:45]line 10.000 x 66.80 [13:47:45]line ИТОГ: 668.00 [13:47:45]line Тип оплаты: Талоны: ТК ГПНА Online [13:47:45]line 30106282 [13:47:45]line ______________________ [13:47:45]line (подпись) [13:47:45]written 0, free lines is 4095 [13:47:45]Write to MH i2c: 01 00 00 A1 2A CB [13:47:45]Write i2c OK [13:47:45]MH_I2C_Read... [13:47:45]Read from MH i2c: 01 [13:47:45]MH_I2C_Read... [13:47:45]Read from MH i2c: 01 07 00 [13:47:45]MH_I2C_Read... [13:47:45]Read from MH i2c: 01 07 00 A1 2A 00 00 00 00 00 0F 0E EF [13:47:45]RasterBufferAndPrint [13:47:45]line [13:47:45]line [13:47:45]line [13:47:45]line [13:47:45]line [13:47:45]written 0, free lines is 3600 [13:47:45]MH_Cut [13:47:45]Write to MH i2c: D1 01 00 A8 2A 01 A4 [13:47:45]Write i2c OK [13:47:45]MH_I2C_Read... [13:47:45]Read from MH i2c: D1 [13:47:45]MH_I2C_Read... [13:47:45]Read from MH i2c: D1 01 00 [13:47:45]MH_I2C_Read... [13:47:45]Read from MH i2c: D1 01 00 A8 2A 00 A3 [13:47:45]Write to MH i2c: 01 00 00 A9 2A D3 [13:47:45]Write i2c OK [13:47:45]MH_I2C_Read... [13:47:46]*** Cut start [13:47:46]*** Purtial cut [13:47:46]*** CUTSNS_PIN = 0 [13:47:46]*** Stage 1: CUTSNS_PIN = 1 [13:47:48]Read from MH i2c: 01 [13:47:48]MH_I2C_Read... [13:47:48]*** Stop cut motor [13:47:48]*** Cut end [13:47:48]Read from MH i2c: 01 07 00 [13:47:48]MH_I2C_Read... [13:47:48]Read from MH i2c: 01 07 00 A9 2A 00 00 00 00 00 FF 0F E8 [13:47:48]process_action print_text done [13:47:48]requested_data is exist [13:47:48]produce_requested_data [13:47:48]requested_item fm.sn is exist - process it [13:47:48]wFMCommunicate request_size=4 [13:47:48]MH_SAM_APDU [13:47:48]CAPDU: 80 11 00 00 [13:47:48]Write to MH i2c: E2 08 00 AA 2A 80 11 00 00 00 00 00 00 4E [13:47:48]Write i2c OK [13:47:48]MH_I2C_Read... [13:47:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:48]Read from MH i2c: E2 [13:47:48]MH_I2C_Read... [13:47:48]Read from MH i2c: E2 17 00 [13:47:48]MH_I2C_Read... [13:47:48]Read from MH i2c: E2 17 00 AA 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A4 [13:47:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:47:48]wFMCommunicate OK [13:47:48]requested_item fd.num is exist - process it [13:47:48]SAM_PROTO_GetFieldsCounters [13:47:48]wFMCommunicate request_size=4 [13:47:48]MH_SAM_APDU [13:47:48]CAPDU: 80 13 00 00 [13:47:48]Write to MH i2c: E2 08 00 AB 2A 80 13 00 00 00 00 00 00 51 [13:47:48]Write i2c OK [13:47:48]MH_I2C_Read... [13:47:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:48]Read from MH i2c: E2 [13:47:48]MH_I2C_Read... [13:47:48]Read from MH i2c: E2 62 00 [13:47:48]MH_I2C_Read... [13:47:48]Read from MH i2c: E2 62 00 AB 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FB 05 01 00 0E 04 04 00 63 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 BA [13:47: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 FB 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:47:48]wFMCommunicate OK [13:47:48]SAM_PROTO_GetFieldsCounters done [13:47:48]requested_item shift.num is exist - process it [13:47:48]requested_item shift.opened is exist - process it [13:47:48]req_shift_opened [13:47:48]FM_GetShiftState [13:47:48]SAM_PROTO_GetShiftState [13:47:48]wFMCommunicate request_size=4 [13:47:48]MH_SAM_APDU [13:47:48]CAPDU: 80 13 01 00 [13:47:48]Write to MH i2c: E2 08 00 AC 2A 80 13 01 00 00 00 00 00 53 [13:47:48]Write i2c OK [13:47:48]MH_I2C_Read... [13:47:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:48]Read from MH i2c: E2 [13:47:48]MH_I2C_Read... [13:47:48]Read from MH i2c: E2 0E 00 [13:47:48]MH_I2C_Read... [13:47:48]Read from MH i2c: E2 0E 00 AC 2A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 1B [13:47:48]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:47:48]wFMCommunicate OK [13:47:48]SAM_PROTO_GetShiftState done [13:47:48]FM_GetShiftState done [13:47:48]req_shift_opened done [13:47:48]requested_item shift.open_date is exist - process it [13:47:48]req_shift_open_date [13:47:48]req_shift_open_date done [13:47:48]produce_requested_data done [13:47:48]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67067,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [13:47:48]process_action_free print_text [13:47:48]json_value_free [13:47:48]json_value_free done [13:47:48]process_json_proto returns [13:47:48]Send response to host [13:47:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67067,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [13:47:48]free response buf [13:47:48]execute_script done [13:47:48]execute_script returns [13:47:48]free content buf [13:47:48]Sock 8.Close socket [13:47:48]Sock 8.Thread stoped [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:38]recv_with_timeout no data received [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:29]accept exits with 9 [13:54:29]New connection [13:54:29]New thread 3066617188 created [13:54:29]Thread 3066760548 joined [13:54:29]Waiting for new connection... [13:54:29] Sock 9.Parse request [13:54:29]Sock 9.Check first char [13:54:29]Sock 9.First char is OK [13:54:29]request: POST /json_proto HTTP/1.0 [13:54:29]Method: POST [13:54:29]URL: /json_proto [13:54:29]Method is POST - this is cgi request [13:54:29]url: /json_proto [13:54:29]query_string will be loaded in cgi processing [13:54:29]execute_cgi json_proto POST (null) [13:54:29]execute_cgi path=json_proto method=POST [13:54:29]POST find Content-Length [13:54:29]Host: 172.17.41.195:8080 [13:54:29]Content-Length: 800 [13:54:29]Content-Type: application/json [13:54:29] [13:54:29]POST finish read [13:54:29]Found Content-Length = 800 [13:54:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:29]execute_script... [13:54: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)506947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 40.170, "sum" : 3000.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:29]POST & json_proto [13:54:29]process_json_proto [13:54:29]json parsed OK: [13:54:29]protocol is kg_v1.0 [13:54:29]action value=close_receipt [13:54:29]process_action close_receipt [13:54:29]cmd_close_receipt [13:54:29]MH_GetDate [13:54:29]Write to MH i2c: F0 00 00 AD 2A C6 [13:54:29]Write i2c OK [13:54:29]MH_I2C_Read... [13:54:29]Read from MH i2c: F0 [13:54:29]MH_I2C_Read... [13:54:29]Read from MH i2c: F0 09 00 [13:54:29]MH_I2C_Read... [13:54:29]Read from MH i2c: F0 09 00 AD 2A 00 1A 6D 43 66 FC 21 6F 64 EF [13:54:29]GetLastDocTimeStamp 1715693415 [13:54:29]current date 1715694874 [13:54:29]FM_GetShiftState [13:54:29]SAM_PROTO_GetShiftState [13:54:29]wFMCommunicate request_size=4 [13:54:29]MH_SAM_APDU [13:54:29]CAPDU: 80 13 01 00 [13:54:29]Write to MH i2c: E2 08 00 AE 2A 80 13 01 00 00 00 00 00 55 [13:54:29]Write i2c OK [13:54:29]MH_I2C_Read... [13:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:29]Read from MH i2c: E2 [13:54:29]MH_I2C_Read... [13:54:29]Read from MH i2c: E2 0E 00 [13:54:29]MH_I2C_Read... [13:54:29]Read from MH i2c: E2 0E 00 AE 2A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 1D [13:54:29]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:54:29]wFMCommunicate OK [13:54:29]SAM_PROTO_GetShiftState done [13:54:29]FM_GetShiftState done [13:54:29]opened in 1715646054 [13:54:29]opened+sec_in_day 1715732454 [13:54:29]quantity*price = 300069 [13:54:29]sum+1 = 300071 [13:54:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.70 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.70 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 75 14.05.2024 13:54 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67068 ФПД: 155085113311853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T135434&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67068&fm=155085113311853&tin=02508201610067®Number=0000000000091845&sum=300070 [13:54:30]StoreToDocumentArchive [13:54:30]shift 355 fd 67068 [13:54:30]save to /storage/0355/doc_00067068 [13:54:30]save last doc name /storage/0355/doc_00067068 to /storage/kkm_last_doc_name [13:54:30]save OK [13:54:30]Clear old archive folders... [13:54:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:54:30]tlvbuf is B6E79350 [13:54:30]SAM_PROTO_ClearQueue [13:54:30]wFMCommunicate request_size=4 [13:54:30]MH_SAM_APDU [13:54:30]CAPDU: 80 09 00 00 [13:54:30]Write to MH i2c: E2 08 00 BB 2A 80 09 00 00 00 00 00 00 57 [13:54:30]Write i2c OK [13:54:30]MH_I2C_Read... [13:54:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:30]Read from MH i2c: E2 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: E2 03 00 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: E2 03 00 BB 2A 00 90 00 59 [13:54:30]RAPDU: 90 00 [13:54:30]wFMCommunicate OK [13:54:30]SAM_PROTO_ClearQueue done [13:54:30]KKMCreateOFDPacket [13:54:30]OFDProtocolAddRootSTLVToBuf [13:54:30]FM_MakeSignedData [13:54:30]FM_MakeSignedData [13:54:30]SAM_PROTO_SignData [13:54:30]wFMCommunicate request_size=4 [13:54:30]MH_SAM_APDU [13:54:30]CAPDU: 80 0D 01 02 [13:54:30]Write to MH i2c: E2 08 00 BC 2A 80 0D 01 02 00 00 00 00 5F [13:54:30]Write i2c OK [13:54:30]MH_I2C_Read... [13:54:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:30]Read from MH i2c: E2 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: E2 03 00 [13:54:30]MH_I2C_Read... [13:54:30]Read from MH i2c: E2 03 00 BC 2A 00 90 00 5A [13:54:30]RAPDU: 90 00 [13:54:30]wFMCommunicate OK [13:54:30]wFMCommunicate request_size=255 [13:54:30]MH_SAM_APDU [13:54: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 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 1A 6D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FC 05 01 00 35 04 06 00 8D 0C 91 16 [13:54:30]Write to MH i2c: E2 02 01 BD 2A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 1A 6D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FC 05 01 00 35 04 06 00 8D 0C 91 16 00 00 4C [13:54:30]Write i2c OK [13:54:30]MH_I2C_Read... [13:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:31]Read from MH i2c: E2 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 03 00 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 03 00 BD 2A 00 90 00 5B [13:54:31]RAPDU: 90 00 [13:54:31]wFMCommunicate OK [13:54:31]wFMCommunicate request_size=7 [13:54:31]MH_SAM_APDU [13:54:31]CAPDU: 80 0D 02 02 02 C2 6D [13:54:31]Write to MH i2c: E2 0A 00 BE 2A 80 0D 02 02 02 00 C2 6D 00 00 95 [13:54:31]Write i2c OK [13:54:31]MH_I2C_Read... [13:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:31]Read from MH i2c: E2 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 03 00 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 03 00 BE 2A 00 90 00 5C [13:54:31]RAPDU: 90 00 [13:54:31]wFMCommunicate OK [13:54:31]wFMCommunicate request_size=4 [13:54:31]MH_SAM_APDU [13:54:31]CAPDU: 80 0D 03 02 [13:54:31]Write to MH i2c: E2 08 00 BF 2A 80 0D 03 02 00 00 00 00 64 [13:54:31]Write i2c OK [13:54:31]MH_I2C_Read... [13:54:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:31]Read from MH i2c: E2 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 0B 00 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 0B 00 BF 2A 00 1D E6 A6 B1 47 4A 6F 33 90 00 F2 [13:54:31]RAPDU: 1D E6 A6 B1 47 4A 6F 33 90 00 [13:54:31]wFMCommunicate OK [13:54:31]SAM_PROTO_SignData done [13:54:31]FM_MakeSignedData done [13:54:31]CreateOFDProtocolMessage [13:54:31]wFMCommunicate request_size=4 [13:54:31]MH_SAM_APDU [13:54:31]CAPDU: 80 11 00 00 [13:54:31]Write to MH i2c: E2 08 00 C0 2A 80 11 00 00 00 00 00 00 64 [13:54:31]Write i2c OK [13:54:31]MH_I2C_Read... [13:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:31]Read from MH i2c: E2 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 17 00 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: E2 17 00 C0 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BA [13:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:54:31]wFMCommunicate OK [13:54:31]CreateOFDProtocolMessage done [13:54:31]OFDSenderStorePacket 67068 [13:54:31]StoreOFDPacket docnum=67068 [13:54: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 D6 A0 04 01 79 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 1A 6D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FC 05 01 00 35 04 06 00 8D 0C 91 16 C2 6D 1D E6 A6 B1 47 4A 6F 33 [13:54:31]CheckFolder [13:54:31]dirname=/storage/ofd_packets [13:54:31]CheckFolder done [13:54:31]ProducePacketName [13:54:31]name=ofd_packets/00067068 [13:54:31]NVStorageSaveData ofd_packets/00067068 [13:54:31]File name is /storage/ofd_packets/00067068 [13:54:31]Write 298 bytes [13:54:31]NVStorageSaveData done [13:54:31]OFDSenderStorePacket done [13:54:31]KKMCreateOFDPacket done [13:54:31]NVStorageSaveData kkm_last_timestamp [13:54:31]File name is /storage/kkm_last_timestamp [13:54:31]Write 4 bytes [13:54:31]NVStorageSaveData done [13:54:31]ExternCall_PrintAddStr [13:54:31]wPrintStart [13:54:31]Write to MH i2c: 01 00 00 C1 2A EB [13:54:31]Write i2c OK [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: 01 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: 01 07 00 [13:54:31]MH_I2C_Read... [13:54:31]Read from MH i2c: 01 07 00 C1 2A 00 00 00 00 00 FF 0F 00 [13:54:31]RasterBufferAndPrint [13:54:31]line Счет N : (1)506947 [13:54:31]line ИНН: 02508201610067 [13:54:31]line Контрольно-Кассовый Чек [13:54:31]line ПРОДАЖА [13:54:31]line ТРК (МРК, ГНК) : 31 [13:54:31]line Товар: 2710194210 [13:54:31]line ДТ-К-5 [13:54:31]line 40.170 * 74.70 [13:54:31]line = 3000.70 [13:54:31]line НДС 12% НСП 1% [13:54:31]line > о реализуемом товаре [13:54:31]line ИТОГО: 3000.70 [13:54:31]line НСП 1% : 26.55 [13:54:31]line НДС 12% : 318.66 [13:54:31]line Наличными: 0.00 [13:54:31]line Безнал.: 3000.70 [13:54:31]line Место: АЗС № 91 "Партнер Нефть" [13:54:31]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:54:31]line СНО: Общий режим [13:54:31]line Чек 75 14.05.2024 13:54 [13:54:31]line Смена: 355 ФФД: 1.0 [13:54:31]line ЗНМ: 0300000119 [13:54:31]line РНМ: 0000000000091845 [13:54:31]line Версия ККМ: 001 [13:54:31]line Платежная система: O! деньги [13:54:31]line ФМ: 0000000000871829 [13:54:31]line ФД: 67068 [13:54:31]line ФПД: 155085113311853 [13:54:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T135434&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67068&fm=155085113311853&tin=02508201610067®Number=0000000000091845&sum=300070 [13:54:31]OFD Sender: Processing packet 67068 [packets to send 35, broken 34] [13:54:31]ProducePacketName [13:54:31]name=ofd_packets/00067068 [13:54:31]OFD Sender: To server: pG, [13:54:31]CommunicateWithHost lk.salyk.kg:30040 [13:54:31]ConnectInit lk.salyk.kg [13:54:31]written 0, free lines is 4095 [13:54:31]Connected sock=10 [13:54: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 D6 A0 04 01 79 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 9C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 26 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 26 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 26 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 1A 6D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FC 05 01 00 35 04 06 00 8D 0C 91 16 C2 6D 1D E6 A6 B1 47 4A 6F 33 [13:54: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 8E 5E 47 00 47 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 FC 05 01 00 F4 03 04 00 FA 14 43 66 B6 04 01 00 00 EC EA FD 14 5D 96 8D E1 [13:54:31]CommunicateWithHost err = 0 [13:54:31]CheckOFDResponse [13:54:31]1017 (14) - 77093643461234 [13:54:31]1041 (16) - 0000000000871829 [13:54:31]1040 (4) - 67068 [13:54:31]1012 (4) - 14.05.2024 07:38 [13:54:31]1206 (1) - 0 [13:54:31]OFD Sender: Remove packet 67068 [13:54:31]ProducePacketName [13:54:31]name=ofd_packets/00067068 [13:54:31]NVStorageDeleteData [13:54:32]Write to MH i2c: 01 00 00 EA 2A 14 [13:54:32]Write i2c OK [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: 01 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: 01 07 00 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: 01 07 00 EA 2A 00 00 00 00 00 DA 0C 01 [13:54:32]RasterBufferAndPrint [13:54:32]line [13:54:32]line [13:54:32]line [13:54:32]line [13:54:32]line [13:54:32]written 0, free lines is 3297 [13:54:32]MH_Cut [13:54:32]Write to MH i2c: D1 01 00 F1 2A 01 ED [13:54:32]Write i2c OK [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: D1 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: D1 01 00 [13:54:32]MH_I2C_Read... [13:54:32]Read from MH i2c: D1 01 00 F1 2A 00 EC [13:54:32]Write to MH i2c: 01 00 00 F2 2A 1C [13:54:32]Write i2c OK [13:54:32]MH_I2C_Read... [13:54:32]OFD Sender: No OFD packet to send [13:54:32]*** Cut start [13:54:32]*** Purtial cut [13:54:32]*** Stage 1: CUTSNS_PIN = 1 [13:54:33]Read from MH i2c: 01 [13:54:33]MH_I2C_Read... [13:54:33]*** Stop cut motor [13:54:33]*** Cut end [13:54:33]Read from MH i2c: 01 07 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: 01 07 00 F2 2A 00 00 00 00 00 FF 0F 31 [13:54:33]process_action close_receipt done [13:54:33]requested_data is exist [13:54:33]produce_requested_data [13:54:33]requested_item fm.sn is exist - process it [13:54:33]wFMCommunicate request_size=4 [13:54:33]MH_SAM_APDU [13:54:33]CAPDU: 80 11 00 00 [13:54:33]Write to MH i2c: E2 08 00 F3 2A 80 11 00 00 00 00 00 00 97 [13:54:33]Write i2c OK [13:54:33]MH_I2C_Read... [13:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:33]Read from MH i2c: E2 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 17 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 17 00 F3 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 ED [13:54: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:54:33]wFMCommunicate OK [13:54:33]requested_item fd.num is exist - process it [13:54:33]SAM_PROTO_GetFieldsCounters [13:54:33]wFMCommunicate request_size=4 [13:54:33]MH_SAM_APDU [13:54:33]CAPDU: 80 13 00 00 [13:54:33]Write to MH i2c: E2 08 00 F4 2A 80 13 00 00 00 00 00 00 9A [13:54:33]Write i2c OK [13:54:33]MH_I2C_Read... [13:54:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:33]Read from MH i2c: E2 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 62 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 62 00 F4 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FC 05 01 00 0E 04 04 00 63 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 07 [13:54: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 FC 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:54:33]wFMCommunicate OK [13:54:33]SAM_PROTO_GetFieldsCounters done [13:54:33]requested_item shift.num is exist - process it [13:54:33]requested_item shift.opened is exist - process it [13:54:33]req_shift_opened [13:54:33]FM_GetShiftState [13:54:33]SAM_PROTO_GetShiftState [13:54:33]wFMCommunicate request_size=4 [13:54:33]MH_SAM_APDU [13:54:33]CAPDU: 80 13 01 00 [13:54:33]Write to MH i2c: E2 08 00 F5 2A 80 13 01 00 00 00 00 00 9C [13:54:33]Write i2c OK [13:54:33]MH_I2C_Read... [13:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:33]Read from MH i2c: E2 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 0E 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 0E 00 F5 2A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 64 [13:54:33]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:54:33]wFMCommunicate OK [13:54:33]SAM_PROTO_GetShiftState done [13:54:33]FM_GetShiftState done [13:54:33]req_shift_opened done [13:54:33]requested_item shift.open_date is exist - process it [13:54:33]req_shift_open_date [13:54:33]req_shift_open_date done [13:54:33]produce_requested_data done [13:54:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67068,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [13:54:33]process_action_free close_receipt [13:54:33]json_value_free [13:54:33]json_value_free done [13:54:33]process_json_proto returns [13:54:33]Send response to host [13:54:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67068,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [13:54:33]free response buf [13:54:33]execute_script done [13:54:33]execute_script returns [13:54:33]free content buf [13:54:33]Sock 9.Close socket [13:54:33]Sock 9.Thread stoped [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:08]accept exits with 8 [13:55:08]New connection [13:55:08]New thread 3066760548 created [13:55:08]Thread 3066617188 joined [13:55:08]Waiting for new connection... [13:55:08] Sock 8.Parse request [13:55:08]Sock 8.Check first char [13:55:08]Sock 8.First char is OK [13:55:08]request: POST /json_proto HTTP/1.0 [13:55:08]Method: POST [13:55:08]URL: /json_proto [13:55:08]Method is POST - this is cgi request [13:55:08]url: /json_proto [13:55:08]query_string will be loaded in cgi processing [13:55:08]execute_cgi json_proto POST (null) [13:55:08]execute_cgi path=json_proto method=POST [13:55:08]POST find Content-Length [13:55:08]Host: 172.17.41.195:8080 [13:55:08]Content-Length: 644 [13:55:08]Content-Type: application/json [13:55:08] [13:55:08]POST finish read [13:55:08]Found Content-Length = 644 [13:55:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12049", "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 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:08]execute_script... [13:55:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12049", "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 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:08]POST & json_proto [13:55:08]process_json_proto [13:55:08]json parsed OK: [13:55:08]protocol is kg_v1.0 [13:55:08]action value=close_receipt [13:55:08]process_action close_receipt [13:55:08]cmd_close_receipt [13:55:08]MH_GetDate [13:55:08]Write to MH i2c: F0 00 00 F6 2A 0F [13:55:08]Write i2c OK [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: F0 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: F0 09 00 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: F0 09 00 F6 2A 00 41 6D 43 66 FC 21 6F 64 5F [13:55:08]GetLastDocTimeStamp 1715694874 [13:55:08]current date 1715694913 [13:55:08]FM_GetShiftState [13:55:08]SAM_PROTO_GetShiftState [13:55:08]wFMCommunicate request_size=4 [13:55:08]MH_SAM_APDU [13:55:08]CAPDU: 80 13 01 00 [13:55:08]Write to MH i2c: E2 08 00 F7 2A 80 13 01 00 00 00 00 00 9E [13:55:08]Write i2c OK [13:55:08]MH_I2C_Read... [13:55:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:08]Read from MH i2c: E2 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: E2 0E 00 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: E2 0E 00 F7 2A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 66 [13:55:08]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:55:08]wFMCommunicate OK [13:55:08]SAM_PROTO_GetShiftState done [13:55:08]FM_GetShiftState done [13:55:08]opened in 1715646054 [13:55:08]opened+sec_in_day 1715732454 [13:55:08]quantity*price = 5500 [13:55:08]sum+1 = 5501 [13:55:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 55.00 НСП 1% : 0.49 НДС 12% : 5.84 Наличными: 55.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 76 14.05.2024 13:55 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67069 ФПД: 9269468252827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T135513&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67069&fm=9269468252827&tin=02508201610067®Number=0000000000091845&sum=5500 0 [13:55:09]StoreToDocumentArchive [13:55:09]shift 355 fd 67069 [13:55:09]save to /storage/0355/doc_00067069 [13:55:09]save last doc name /storage/0355/doc_00067069 to /storage/kkm_last_doc_name [13:55:09]save OK [13:55:09]Clear old archive folders... [13:55:10]ProcessDocumentItem done err = 0, tmpTLVsize=276 [13:55:10]tlvbuf is B6E79AD0 [13:55:10]SAM_PROTO_ClearQueue [13:55:10]wFMCommunicate request_size=4 [13:55:10]MH_SAM_APDU [13:55:10]CAPDU: 80 09 00 00 [13:55:10]Write to MH i2c: E2 08 00 04 2B 80 09 00 00 00 00 00 00 A1 [13:55:10]Write i2c OK [13:55:10]MH_I2C_Read... [13:55:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:10]Read from MH i2c: E2 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 03 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 03 00 04 2B 00 90 00 A3 [13:55:10]RAPDU: 90 00 [13:55:10]wFMCommunicate OK [13:55:10]SAM_PROTO_ClearQueue done [13:55:10]KKMCreateOFDPacket [13:55:10]OFDProtocolAddRootSTLVToBuf [13:55:10]FM_MakeSignedData [13:55:10]FM_MakeSignedData [13:55:10]SAM_PROTO_SignData [13:55:10]wFMCommunicate request_size=4 [13:55:10]MH_SAM_APDU [13:55:10]CAPDU: 80 0D 01 02 [13:55:10]Write to MH i2c: E2 08 00 05 2B 80 0D 01 02 00 00 00 00 A9 [13:55:10]Write i2c OK [13:55:10]MH_I2C_Read... [13:55:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:10]Read from MH i2c: E2 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 03 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 03 00 05 2B 00 90 00 A4 [13:55:10]RAPDU: 90 00 [13:55:10]wFMCommunicate OK [13:55:10]wFMCommunicate request_size=255 [13:55:10]MH_SAM_APDU [13:55:10]CAPDU: 80 0D 02 02 FA 03 00 14 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 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 4C 00 00 00 F4 03 04 00 41 6D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 [13:55:10]Write to MH i2c: E2 02 01 06 2B 80 0D 02 02 FA 00 03 00 14 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 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 4C 00 00 00 F4 03 04 00 41 6D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 00 00 DC [13:55:10]Write i2c OK [13:55:10]MH_I2C_Read... [13:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:10]Read from MH i2c: E2 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 03 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 03 00 06 2B 00 90 00 A5 [13:55:10]RAPDU: 90 00 [13:55:10]wFMCommunicate OK [13:55:10]wFMCommunicate request_size=35 [13:55:10]MH_SAM_APDU [13:55:10]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FD 05 01 00 35 04 06 00 08 6E 37 5C CA 9B [13:55:10]Write to MH i2c: E2 26 00 07 2B 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FD 05 01 00 35 04 06 00 08 6E 37 5C CA 9B 00 00 13 [13:55:10]Write i2c OK [13:55:10]MH_I2C_Read... [13:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:10]Read from MH i2c: E2 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 03 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 03 00 07 2B 00 90 00 A6 [13:55:10]RAPDU: 90 00 [13:55:10]wFMCommunicate OK [13:55:10]wFMCommunicate request_size=4 [13:55:10]MH_SAM_APDU [13:55:10]CAPDU: 80 0D 03 02 [13:55:10]Write to MH i2c: E2 08 00 08 2B 80 0D 03 02 00 00 00 00 AE [13:55:10]Write i2c OK [13:55:10]MH_I2C_Read... [13:55:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:10]Read from MH i2c: E2 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 0B 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 0B 00 08 2B 00 81 47 8A F9 05 F9 7E C3 90 00 39 [13:55:10]RAPDU: 81 47 8A F9 05 F9 7E C3 90 00 [13:55:10]wFMCommunicate OK [13:55:10]SAM_PROTO_SignData done [13:55:10]FM_MakeSignedData done [13:55:10]CreateOFDProtocolMessage [13:55:10]wFMCommunicate request_size=4 [13:55:10]MH_SAM_APDU [13:55:10]CAPDU: 80 11 00 00 [13:55:10]Write to MH i2c: E2 08 00 09 2B 80 11 00 00 00 00 00 00 AE [13:55:10]Write i2c OK [13:55:10]MH_I2C_Read... [13:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:10]Read from MH i2c: E2 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 17 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 17 00 09 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 04 [13: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 [13:55:10]wFMCommunicate OK [13:55:10]CreateOFDProtocolMessage done [13:55:10]OFDSenderStorePacket 67069 [13:55:10]StoreOFDPacket docnum=67069 [13:55: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 28 01 00 00 D4 DA 20 01 F7 4F 5A 03 01 00 03 00 14 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 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 4C 00 00 00 F4 03 04 00 41 6D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FD 05 01 00 35 04 06 00 08 6E 37 5C CA 9B 81 47 8A F9 05 F9 7E C3 [13:55:10]CheckFolder [13:55:10]dirname=/storage/ofd_packets [13:55:10]CheckFolder done [13:55:10]ProducePacketName [13:55:10]name=ofd_packets/00067069 [13:55:10]NVStorageSaveData ofd_packets/00067069 [13:55:10]File name is /storage/ofd_packets/00067069 [13:55:10]Write 326 bytes [13:55:10]NVStorageSaveData done [13:55:10]OFDSenderStorePacket done [13:55:10]KKMCreateOFDPacket done [13:55:10]NVStorageSaveData kkm_last_timestamp [13:55:10]File name is /storage/kkm_last_timestamp [13:55:10]Write 4 bytes [13:55:10]NVStorageSaveData done [13:55:10]ExternCall_PrintAddStr [13:55:10]wPrintStart [13:55:10]Write to MH i2c: 01 00 00 0A 2B 35 [13:55:10]Write i2c OK [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: 01 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: 01 07 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: 01 07 00 0A 2B 00 00 00 00 00 FF 0F 4A [13:55:10]RasterBufferAndPrint [13:55:10]line Счет N : (3)12049 [13:55:10]line ИНН: 02508201610067 [13:55:10]line Контрольно-Кассовый Чек [13:55:10]line ПРОДАЖА [13:55:10]line Товар: 4700000310043 [13:55:10]line Вода Жалалабат 27 1л [13:55:10]line 1.000 * 55.00 [13:55:10]line = 55.00 [13:55:10]line НДС 12% НСП 1% [13:55:10]line > о реализуемом товаре [13:55:10]line ИТОГО: 55.00 [13:55:10]line НСП 1% : 0.49 [13:55:10]line НДС 12% : 5.84 [13:55:10]line Наличными: 55.00 [13:55:10]line Безнал.: 0.00 [13:55:10]line Место: АЗС № 91 "Партнер Нефть" [13:55:10]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:55:10]line СНО: Общий режим [13:55:10]line Чек 76 14.05.2024 13:55 [13:55:10]line Смена: 355 ФФД: 1.0 [13:55:10]line ЗНМ: 0300000119 [13:55:10]line РНМ: 0000000000091845 [13:55:10]line Версия ККМ: 001 [13:55:10]line ФМ: 0000000000871829 [13:55:10]line ФД: 67069 [13:55:10]line ФПД: 9269468252827 [13:55:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T135513&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67069&fm=9269468252827&tin=02508201610067®Number=0000000000091845&sum=5500 [13:55:10]line 0 [13:55:10]OFD Sender: Processing packet 67069 [packets to send 35, broken 34] [13:55:10]ProducePacketName [13:55:10]name=ofd_packets/00067069 [13:55:10]OFD Sender: To server: pG, [13:55:10]CommunicateWithHost lk.salyk.kg:30040 [13:55:10]ConnectInit lk.salyk.kg [13:55:10]written 0, free lines is 4095 [13:55:10]Connected sock=10 [13:55: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 28 01 00 00 D4 DA 20 01 F7 4F 5A 03 01 00 03 00 14 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 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 4C 00 00 00 F4 03 04 00 41 6D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FD 05 01 00 35 04 06 00 08 6E 37 5C CA 9B 81 47 8A F9 05 F9 7E C3 [13:55: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 3D A3 47 00 46 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FD 05 01 00 F4 03 04 00 21 15 43 66 B6 04 01 00 00 EB 03 4B EA BA DC 1D 45 [13:55:11]CommunicateWithHost err = 0 [13:55:11]CheckOFDResponse [13:55:11]1017 (14) - 77093643461234 [13:55:11]1041 (16) - 0000000000871829 [13:55:11]1040 (4) - 67069 [13:55:11]1012 (4) - 14.05.2024 07:39 [13:55:11]1206 (1) - 0 [13:55:11]OFD Sender: Remove packet 67069 [13:55:11]ProducePacketName [13:55:11]name=ofd_packets/00067069 [13:55:11]NVStorageDeleteData [13:55:11]Write to MH i2c: 01 00 00 31 2B 5C [13:55:11]Write i2c OK [13:55:11]MH_I2C_Read... [13:55:11]Read from MH i2c: 01 [13:55:11]MH_I2C_Read... [13:55:11]Read from MH i2c: 01 07 00 [13:55:11]MH_I2C_Read... [13:55:11]Read from MH i2c: 01 07 00 31 2B 00 00 00 00 00 E4 0C 53 [13:55:11]RasterBufferAndPrint [13:55:11]line [13:55:11]line [13:55:11]line [13:55:11]line [13:55:11]line [13:55:11]written 0, free lines is 3304 [13:55:11]MH_Cut [13:55:11]Write to MH i2c: D1 01 00 38 2B 01 35 [13:55:11]Write i2c OK [13:55:11]MH_I2C_Read... [13:55:11]Read from MH i2c: D1 [13:55:11]MH_I2C_Read... [13:55:11]Read from MH i2c: D1 01 00 [13:55:11]MH_I2C_Read... [13:55:11]Read from MH i2c: D1 01 00 38 2B 00 34 [13:55:11]Write to MH i2c: 01 00 00 39 2B 64 [13:55:11]Write i2c OK [13:55:11]MH_I2C_Read... [13:55:11]OFD Sender: No OFD packet to send [13:55:12]*** Cut start [13:55:12]*** Purtial cut [13:55:12]*** CUTSNS_PIN = 0 [13:55:12]*** Stage 1: CUTSNS_PIN = 1 [13:55:14]Read from MH i2c: 01 [13:55:14]MH_I2C_Read... [13:55:14]*** Stop cut motor [13:55:14]*** Cut end [13:55:14]Read from MH i2c: 01 07 00 [13:55:14]MH_I2C_Read... [13:55:14]Read from MH i2c: 01 07 00 39 2B 00 00 00 00 00 FF 0F 79 [13:55:14]process_action close_receipt done [13:55:14]requested_data is exist [13:55:14]produce_requested_data [13:55:14]requested_item fm.sn is exist - process it [13:55:14]wFMCommunicate request_size=4 [13:55:14]MH_SAM_APDU [13:55:14]CAPDU: 80 11 00 00 [13:55:14]Write to MH i2c: E2 08 00 3A 2B 80 11 00 00 00 00 00 00 DF [13:55:14]Write i2c OK [13:55:14]MH_I2C_Read... [13:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:14]Read from MH i2c: E2 [13:55:14]MH_I2C_Read... [13:55:14]Read from MH i2c: E2 17 00 [13:55:14]MH_I2C_Read... [13:55:14]Read from MH i2c: E2 17 00 3A 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 35 [13: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 [13:55:14]wFMCommunicate OK [13:55:14]requested_item fd.num is exist - process it [13:55:14]SAM_PROTO_GetFieldsCounters [13:55:14]wFMCommunicate request_size=4 [13:55:14]MH_SAM_APDU [13:55:14]CAPDU: 80 13 00 00 [13:55:14]Write to MH i2c: E2 08 00 3B 2B 80 13 00 00 00 00 00 00 E2 [13:55:14]Write i2c OK [13:55:14]MH_I2C_Read... [13:55:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:14]Read from MH i2c: E2 [13:55:14]MH_I2C_Read... [13:55:14]Read from MH i2c: E2 62 00 [13:55:14]MH_I2C_Read... [13:55:14]Read from MH i2c: E2 62 00 3B 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FD 05 01 00 0E 04 04 00 63 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 53 [13: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 FD 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:14]wFMCommunicate OK [13:55:14]SAM_PROTO_GetFieldsCounters done [13:55:14]requested_item shift.num is exist - process it [13:55:14]requested_item shift.opened is exist - process it [13:55:14]req_shift_opened [13:55:14]FM_GetShiftState [13:55:14]SAM_PROTO_GetShiftState [13:55:14]wFMCommunicate request_size=4 [13:55:14]MH_SAM_APDU [13:55:14]CAPDU: 80 13 01 00 [13:55:14]Write to MH i2c: E2 08 00 3C 2B 80 13 01 00 00 00 00 00 E4 [13:55:14]Write i2c OK [13:55:14]MH_I2C_Read... [13:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:14]Read from MH i2c: E2 [13:55:14]MH_I2C_Read... [13:55:14]Read from MH i2c: E2 0E 00 [13:55:14]MH_I2C_Read... [13:55:14]Read from MH i2c: E2 0E 00 3C 2B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 AC [13:55:14]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:55:14]wFMCommunicate OK [13:55:14]SAM_PROTO_GetShiftState done [13:55:14]FM_GetShiftState done [13:55:14]req_shift_opened done [13:55:14]requested_item shift.open_date is exist - process it [13:55:14]req_shift_open_date [13:55:14]req_shift_open_date done [13:55:14]produce_requested_data done [13:55:14]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67069,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [13:55:14]process_action_free close_receipt [13:55:14]json_value_free [13:55:14]json_value_free done [13:55:14]process_json_proto returns [13:55:14]Send response to host [13:55:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67069,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [13:55:14]free response buf [13:55:14]execute_script done [13:55:14]execute_script returns [13:55:14]free content buf [13:55:14]Sock 8.Close socket [13:55:14]Sock 8.Thread stoped [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:22]accept exits with 9 [13:55:22]New connection [13:55:22]New thread 3066617188 created [13:55:22]Thread 3066760548 joined [13:55:22]Waiting for new connection... [13:55:22] Sock 9.Parse request [13:55:22]Sock 9.Check first char [13:55:22]Sock 9.First char is OK [13:55:22]request: POST /json_proto HTTP/1.0 [13:55:22]Method: POST [13:55:22]URL: /json_proto [13:55:22]Method is POST - this is cgi request [13:55:22]url: /json_proto [13:55:22]query_string will be loaded in cgi processing [13:55:22]execute_cgi json_proto POST (null) [13:55:22]execute_cgi path=json_proto method=POST [13:55:22]POST find Content-Length [13:55:22]Host: 172.17.41.195:8080 [13:55:22]Content-Length: 800 [13:55:22]Content-Type: application/json [13:55:22] [13:55:22]POST finish read [13:55:22]Found Content-Length = 800 [13:55:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506946", "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" ] } } [13:55:22]execute_script... [13:55: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)506946", "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" ] } } [13:55:22]POST & json_proto [13:55:22]process_json_proto [13:55:22]json parsed OK: [13:55:22]protocol is kg_v1.0 [13:55:22]action value=close_receipt [13:55:22]process_action close_receipt [13:55:22]cmd_close_receipt [13:55:22]MH_GetDate [13:55:22]Write to MH i2c: F0 00 00 3D 2B 57 [13:55:22]Write i2c OK [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: F0 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: F0 09 00 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: F0 09 00 3D 2B 00 4E 6D 43 66 FC 21 6F 64 B4 [13:55:22]GetLastDocTimeStamp 1715694913 [13:55:22]current date 1715694926 [13:55:22]FM_GetShiftState [13:55:22]SAM_PROTO_GetShiftState [13:55:22]wFMCommunicate request_size=4 [13:55:22]MH_SAM_APDU [13:55:22]CAPDU: 80 13 01 00 [13:55:22]Write to MH i2c: E2 08 00 3E 2B 80 13 01 00 00 00 00 00 E6 [13:55:22]Write i2c OK [13:55:22]MH_I2C_Read... [13:55:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:22]Read from MH i2c: E2 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: E2 0E 00 [13:55:22]MH_I2C_Read... [13:55:22]Read from MH i2c: E2 0E 00 3E 2B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 AE [13:55:22]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:55:22]wFMCommunicate OK [13:55:22]SAM_PROTO_GetShiftState done [13:55:22]FM_GetShiftState done [13:55:22]opened in 1715646054 [13:55:22]opened+sec_in_day 1715732454 [13:55:22]quantity*price = 200046 [13:55:22]sum+1 = 200048 [13:55:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 77 14.05.2024 13:55 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67070 ФПД: 185043721367047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T135526&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67070&fm=185043721367047&tin=02508201610067®Number=0000000000091845&sum=200047 [13:55:23]StoreToDocumentArchive [13:55:23]shift 355 fd 67070 [13:55:23]save to /storage/0355/doc_00067070 [13:55:23]save last doc name /storage/0355/doc_00067070 to /storage/kkm_last_doc_name [13:55:23]save OK [13:55:23]Clear old archive folders... [13:55:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:55:23]tlvbuf is 00364620 [13:55:23]SAM_PROTO_ClearQueue [13:55:23]wFMCommunicate request_size=4 [13:55:23]MH_SAM_APDU [13:55:23]CAPDU: 80 09 00 00 [13:55:23]Write to MH i2c: E2 08 00 4B 2B 80 09 00 00 00 00 00 00 E8 [13:55:23]Write i2c OK [13:55:23]MH_I2C_Read... [13:55:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:23]Read from MH i2c: E2 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 03 00 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 03 00 4B 2B 00 90 00 EA [13:55:23]RAPDU: 90 00 [13:55:23]wFMCommunicate OK [13:55:23]SAM_PROTO_ClearQueue done [13:55:23]KKMCreateOFDPacket [13:55:23]OFDProtocolAddRootSTLVToBuf [13:55:23]FM_MakeSignedData [13:55:23]FM_MakeSignedData [13:55:23]SAM_PROTO_SignData [13:55:23]wFMCommunicate request_size=4 [13:55:23]MH_SAM_APDU [13:55:23]CAPDU: 80 0D 01 02 [13:55:23]Write to MH i2c: E2 08 00 4C 2B 80 0D 01 02 00 00 00 00 F0 [13:55:23]Write i2c OK [13:55:23]MH_I2C_Read... [13:55:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:23]Read from MH i2c: E2 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 03 00 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 03 00 4C 2B 00 90 00 EB [13:55:23]RAPDU: 90 00 [13:55:23]wFMCommunicate OK [13:55:23]wFMCommunicate request_size=255 [13:55:23]MH_SAM_APDU [13:55: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 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 4D 00 00 00 F4 03 04 00 4E 6D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FE 05 01 00 35 04 06 00 A8 4B D9 47 [13:55:23]Write to MH i2c: E2 02 01 4D 2B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 4D 00 00 00 F4 03 04 00 4E 6D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FE 05 01 00 35 04 06 00 A8 4B D9 47 00 00 88 [13:55:23]Write i2c OK [13:55:23]MH_I2C_Read... [13:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:23]Read from MH i2c: E2 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 03 00 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 03 00 4D 2B 00 90 00 EC [13:55:23]RAPDU: 90 00 [13:55:23]wFMCommunicate OK [13:55:23]wFMCommunicate request_size=7 [13:55:23]MH_SAM_APDU [13:55:23]CAPDU: 80 0D 02 02 02 AE 07 [13:55:23]Write to MH i2c: E2 0A 00 4E 2B 80 0D 02 02 02 00 AE 07 00 00 AC [13:55:23]Write i2c OK [13:55:23]MH_I2C_Read... [13:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:23]Read from MH i2c: E2 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 03 00 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 03 00 4E 2B 00 90 00 ED [13:55:23]RAPDU: 90 00 [13:55:23]wFMCommunicate OK [13:55:23]wFMCommunicate request_size=4 [13:55:23]MH_SAM_APDU [13:55:23]CAPDU: 80 0D 03 02 [13:55:23]Write to MH i2c: E2 08 00 4F 2B 80 0D 03 02 00 00 00 00 F5 [13:55:23]Write i2c OK [13:55:23]MH_I2C_Read... [13:55:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:23]Read from MH i2c: E2 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 0B 00 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 0B 00 4F 2B 00 61 AD C1 5F 82 AE F0 3F 90 00 83 [13:55:23]RAPDU: 61 AD C1 5F 82 AE F0 3F 90 00 [13:55:23]wFMCommunicate OK [13:55:23]SAM_PROTO_SignData done [13:55:23]FM_MakeSignedData done [13:55:23]CreateOFDProtocolMessage [13:55:23]wFMCommunicate request_size=4 [13:55:23]MH_SAM_APDU [13:55:23]CAPDU: 80 11 00 00 [13:55:23]Write to MH i2c: E2 08 00 50 2B 80 11 00 00 00 00 00 00 F5 [13:55:23]Write i2c OK [13:55:23]MH_I2C_Read... [13:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:23]Read from MH i2c: E2 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 17 00 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: E2 17 00 50 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4B [13:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:55:23]wFMCommunicate OK [13:55:23]CreateOFDProtocolMessage done [13:55:23]OFDSenderStorePacket 67070 [13:55:23]StoreOFDPacket docnum=67070 [13:55: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 CC 73 04 01 82 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 4D 00 00 00 F4 03 04 00 4E 6D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FE 05 01 00 35 04 06 00 A8 4B D9 47 AE 07 61 AD C1 5F 82 AE F0 3F [13:55:23]CheckFolder [13:55:23]dirname=/storage/ofd_packets [13:55:23]CheckFolder done [13:55:23]ProducePacketName [13:55:23]name=ofd_packets/00067070 [13:55:23]NVStorageSaveData ofd_packets/00067070 [13:55:23]File name is /storage/ofd_packets/00067070 [13:55:23]Write 298 bytes [13:55:23]NVStorageSaveData done [13:55:23]OFDSenderStorePacket done [13:55:23]KKMCreateOFDPacket done [13:55:23]NVStorageSaveData kkm_last_timestamp [13:55:23]File name is /storage/kkm_last_timestamp [13:55:23]Write 4 bytes [13:55:23]NVStorageSaveData done [13:55:23]ExternCall_PrintAddStr [13:55:23]wPrintStart [13:55:23]Write to MH i2c: 01 00 00 51 2B 7C [13:55:23]Write i2c OK [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: 01 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: 01 07 00 [13:55:23]MH_I2C_Read... [13:55:23]Read from MH i2c: 01 07 00 51 2B 00 00 00 00 00 FF 0F 91 [13:55:23]RasterBufferAndPrint [13:55:23]line Счет N : (1)506946 [13:55:23]line ИНН: 02508201610067 [13:55:23]line Контрольно-Кассовый Чек [13:55:23]line ПРОДАЖА [13:55:23]line ТРК (МРК, ГНК) : 11 [13:55:23]line Товар: 2710194210 [13:55:23]line ДТ-К-5 [13:55:23]line 26.780 * 74.70 [13:55:23]line = 2000.47 [13:55:23]line НДС 12% НСП 1% [13:55:23]line > о реализуемом товаре [13:55:23]line ИТОГО: 2000.47 [13:55:23]line НСП 1% : 17.70 [13:55:23]line НДС 12% : 212.44 [13:55:23]line Наличными: 0.00 [13:55:23]line Безнал.: 2000.47 [13:55:23]line Место: АЗС № 91 "Партнер Нефть" [13:55:23]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:55:23]line СНО: Общий режим [13:55:23]line Чек 77 14.05.2024 13:55 [13:55:23]line Смена: 355 ФФД: 1.0 [13:55:23]line ЗНМ: 0300000119 [13:55:23]line РНМ: 0000000000091845 [13:55:23]line Версия ККМ: 001 [13:55:23]line Платежная система: O! деньги [13:55:23]line ФМ: 0000000000871829 [13:55:23]line ФД: 67070 [13:55:23]line ФПД: 185043721367047 [13:55:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T135526&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67070&fm=185043721367047&tin=02508201610067®Number=0000000000091845&sum=200047 [13:55:24]OFD Sender: Processing packet 67070 [packets to send 35, broken 34] [13:55:24]ProducePacketName [13:55:24]name=ofd_packets/00067070 [13:55:24]OFD Sender: To server: pG, [13:55:24]CommunicateWithHost lk.salyk.kg:30040 [13:55:24]ConnectInit lk.salyk.kg [13:55:24]written 0, free lines is 4095 [13:55:24]Connected sock=10 [13:55: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 CC 73 04 01 82 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 4D 00 00 00 F4 03 04 00 4E 6D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FE 05 01 00 35 04 06 00 A8 4B D9 47 AE 07 61 AD C1 5F 82 AE F0 3F [13:55: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 14 76 47 00 1A 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 FE 05 01 00 F4 03 04 00 2E 15 43 66 B6 04 01 00 00 A7 27 BB CD 2E 01 28 F0 [13:55:24]CommunicateWithHost err = 0 [13:55:24]CheckOFDResponse [13:55:24]1017 (14) - 77093643461234 [13:55:24]1041 (16) - 0000000000871829 [13:55:24]1040 (4) - 67070 [13:55:24]1012 (4) - 14.05.2024 07:39 [13:55:24]1206 (1) - 0 [13:55:24]OFD Sender: Remove packet 67070 [13:55:24]ProducePacketName [13:55:24]name=ofd_packets/00067070 [13:55:24]NVStorageDeleteData [13:55:24]Write to MH i2c: 01 00 00 7A 2B A5 [13:55:24]Write i2c OK [13:55:24]MH_I2C_Read... [13:55:24]Read from MH i2c: 01 [13:55:24]MH_I2C_Read... [13:55:24]Read from MH i2c: 01 07 00 [13:55:24]MH_I2C_Read... [13:55:24]Read from MH i2c: 01 07 00 7A 2B 00 00 00 00 00 DD 0C 95 [13:55:24]RasterBufferAndPrint [13:55:24]line [13:55:24]line [13:55:24]line [13:55:24]line [13:55:24]line [13:55:24]written 0, free lines is 3300 [13:55:24]MH_Cut [13:55:24]Write to MH i2c: D1 01 00 81 2B 01 7E [13:55:24]Write i2c OK [13:55:24]MH_I2C_Read... [13:55:24]Read from MH i2c: D1 [13:55:24]MH_I2C_Read... [13:55:24]Read from MH i2c: D1 01 00 [13:55:24]MH_I2C_Read... [13:55:24]Read from MH i2c: D1 01 00 81 2B 00 7D [13:55:24]Write to MH i2c: 01 00 00 82 2B AD [13:55:24]Write i2c OK [13:55:24]MH_I2C_Read... [13:55:24]OFD Sender: No OFD packet to send [13:55:25]*** Cut start [13:55:25]*** Purtial cut [13:55:25]*** Stage 1: CUTSNS_PIN = 1 [13:55:25]Read from MH i2c: 01 [13:55:25]MH_I2C_Read... [13:55:25]*** Stop cut motor [13:55:25]*** Cut end [13:55:25]Read from MH i2c: 01 07 00 [13:55:25]MH_I2C_Read... [13:55:25]Read from MH i2c: 01 07 00 82 2B 00 00 00 00 00 FF 0F C2 [13:55:25]process_action close_receipt done [13:55:25]requested_data is exist [13:55:25]produce_requested_data [13:55:25]requested_item fm.sn is exist - process it [13:55:25]wFMCommunicate request_size=4 [13:55:25]MH_SAM_APDU [13:55:25]CAPDU: 80 11 00 00 [13:55:25]Write to MH i2c: E2 08 00 83 2B 80 11 00 00 00 00 00 00 28 [13:55:25]Write i2c OK [13:55:25]MH_I2C_Read... [13:55:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:25]Read from MH i2c: E2 [13:55:25]MH_I2C_Read... [13:55:25]Read from MH i2c: E2 17 00 [13:55:25]MH_I2C_Read... [13:55:25]Read from MH i2c: E2 17 00 83 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7E [13:55:25]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:25]wFMCommunicate OK [13:55:25]requested_item fd.num is exist - process it [13:55:25]SAM_PROTO_GetFieldsCounters [13:55:25]wFMCommunicate request_size=4 [13:55:25]MH_SAM_APDU [13:55:25]CAPDU: 80 13 00 00 [13:55:25]Write to MH i2c: E2 08 00 84 2B 80 13 00 00 00 00 00 00 2B [13:55:25]Write i2c OK [13:55:25]MH_I2C_Read... [13:55:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:25]Read from MH i2c: E2 [13:55:25]MH_I2C_Read... [13:55:25]Read from MH i2c: E2 62 00 [13:55:25]MH_I2C_Read... [13:55:25]Read from MH i2c: E2 62 00 84 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FE 05 01 00 0E 04 04 00 63 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 A0 [13:55: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 FE 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:25]wFMCommunicate OK [13:55:25]SAM_PROTO_GetFieldsCounters done [13:55:25]requested_item shift.num is exist - process it [13:55:25]requested_item shift.opened is exist - process it [13:55:25]req_shift_opened [13:55:25]FM_GetShiftState [13:55:25]SAM_PROTO_GetShiftState [13:55:25]wFMCommunicate request_size=4 [13:55:25]MH_SAM_APDU [13:55:25]CAPDU: 80 13 01 00 [13:55:25]Write to MH i2c: E2 08 00 85 2B 80 13 01 00 00 00 00 00 2D [13:55:25]Write i2c OK [13:55:25]MH_I2C_Read... [13:55:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:25]Read from MH i2c: E2 [13:55:25]MH_I2C_Read... [13:55:25]Read from MH i2c: E2 0E 00 [13:55:25]MH_I2C_Read... [13:55:25]Read from MH i2c: E2 0E 00 85 2B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F5 [13:55:25]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:55:25]wFMCommunicate OK [13:55:25]SAM_PROTO_GetShiftState done [13:55:25]FM_GetShiftState done [13:55:25]req_shift_opened done [13:55:25]requested_item shift.open_date is exist - process it [13:55:25]req_shift_open_date [13:55:25]req_shift_open_date done [13:55:25]produce_requested_data done [13:55:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67070,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [13:55:25]process_action_free close_receipt [13:55:25]json_value_free [13:55:25]json_value_free done [13:55:25]process_json_proto returns [13:55:25]Send response to host [13:55:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67070,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [13:55:25]free response buf [13:55:25]execute_script done [13:55:25]execute_script returns [13:55:25]free content buf [13:55:25]Sock 9.Close socket [13:55:25]Sock 9.Thread stoped [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:56]accept exits with 8 [13:55:56]New connection [13:55:56]New thread 3066760548 created [13:55:56]Thread 3066617188 joined [13:55:56]Waiting for new connection... [13:55:56] Sock 8.Parse request [13:55:56]Sock 8.Check first char [13:55:56]Sock 8.First char is OK [13:55:56]request: POST /json_proto HTTP/1.0 [13:55:56]Method: POST [13:55:56]URL: /json_proto [13:55:56]Method is POST - this is cgi request [13:55:56]url: /json_proto [13:55:56]query_string will be loaded in cgi processing [13:55:56]execute_cgi json_proto POST (null) [13:55:56]execute_cgi path=json_proto method=POST [13:55:56]POST find Content-Length [13:55:56]Host: 172.17.41.195:8080 [13:55:56]Content-Length: 1179 [13:55:56]Content-Type: application/json [13:55:56] [13:55:56]POST finish read [13:55:56]Found Content-Length = 1179 [13:55:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506948\u000A14.05.2024 13:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:56]execute_script... [13:55:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506948\u000A14.05.2024 13:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:56]POST & json_proto [13:55:56]process_json_proto [13:55:56]json parsed OK: [13:55:56]protocol is kg_v1.0 [13:55:56]action value=print_text [13:55:56]process_action print_text [13:55:56]cmd_print_text [13:55:56]ExternCall_PrintAddStr [13:55:56]wPrintStart [13:55:56]Write to MH i2c: 01 00 00 86 2B B1 [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: 01 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: 01 07 00 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: 01 07 00 86 2B 00 00 00 00 00 FF 0F C6 [13:55:56]RasterBufferAndPrint [13:55:56]line *****ТОВАРНЫЙ ЧЕК***** [13:55:56]line АЗС-91 [13:55:56]line Партнер нефть [13:55:56]line 02508201610067 [13:55:56]line Кассир : Адишов И. [13:55:56]line Счет N : (1)506948 [13:55:56]line 14.05.2024 13:38 [13:55:56]line ПРОДАЖА [13:55:56]line ТРК (МРК, ГНК): 21 [13:55:56]line Вид ГСМ : 2710194210 [13:55:56]line ДТ-К-5 [13:55:56]line 13.390 x 74.70 [13:55:56]line ИТОГ: 1000.23 [13:55:56]line Тип оплаты: Талоны: Топливная Карта [13:55:56]line 02750 [13:55:56]line ______________________ [13:55:56]line (подпись) [13:55:56]written 0, free lines is 4095 [13:55:56]Write to MH i2c: 01 00 00 9A 2B C5 [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: 01 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: 01 07 00 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: 01 07 00 9A 2B 00 00 00 00 00 0D 0E E7 [13:55:56]RasterBufferAndPrint [13:55:56]line [13:55:56]line [13:55:56]line [13:55:56]line [13:55:56]line [13:55:56]written 0, free lines is 3598 [13:55:56]MH_Cut [13:55:56]Write to MH i2c: D1 01 00 A1 2B 01 9E [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: D1 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: D1 01 00 [13:55:56]MH_I2C_Read... [13:55:56]Read from MH i2c: D1 01 00 A1 2B 00 9D [13:55:56]Write to MH i2c: 01 00 00 A2 2B CD [13:55:56]Write i2c OK [13:55:56]MH_I2C_Read... [13:55:57]*** Cut start [13:55:57]*** Purtial cut [13:55:57]*** CUTSNS_PIN = 0 [13:55:57]*** Stage 1: CUTSNS_PIN = 1 [13:55:59]Read from MH i2c: 01 [13:55:59]MH_I2C_Read... [13:55:59]*** Stop cut motor [13:55:59]*** Cut end [13:55:59]Read from MH i2c: 01 07 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: 01 07 00 A2 2B 00 00 00 00 00 FF 0F E2 [13:55:59]process_action print_text done [13:55:59]requested_data is exist [13:55:59]produce_requested_data [13:55:59]requested_item fm.sn is exist - process it [13:55:59]wFMCommunicate request_size=4 [13:55:59]MH_SAM_APDU [13:55:59]CAPDU: 80 11 00 00 [13:55:59]Write to MH i2c: E2 08 00 A3 2B 80 11 00 00 00 00 00 00 48 [13:55:59]Write i2c OK [13:55:59]MH_I2C_Read... [13:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:59]Read from MH i2c: E2 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 17 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 17 00 A3 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9E [13:55: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:55:59]wFMCommunicate OK [13:55:59]requested_item fd.num is exist - process it [13:55:59]SAM_PROTO_GetFieldsCounters [13:55:59]wFMCommunicate request_size=4 [13:55:59]MH_SAM_APDU [13:55:59]CAPDU: 80 13 00 00 [13:55:59]Write to MH i2c: E2 08 00 A4 2B 80 13 00 00 00 00 00 00 4B [13:55:59]Write i2c OK [13:55:59]MH_I2C_Read... [13:55:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:59]Read from MH i2c: E2 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 62 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 62 00 A4 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 FE 05 01 00 0E 04 04 00 63 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 C0 [13:55: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 FE 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:59]wFMCommunicate OK [13:55:59]SAM_PROTO_GetFieldsCounters done [13:55:59]requested_item shift.num is exist - process it [13:55:59]requested_item shift.opened is exist - process it [13:55:59]req_shift_opened [13:55:59]FM_GetShiftState [13:55:59]SAM_PROTO_GetShiftState [13:55:59]wFMCommunicate request_size=4 [13:55:59]MH_SAM_APDU [13:55:59]CAPDU: 80 13 01 00 [13:55:59]Write to MH i2c: E2 08 00 A5 2B 80 13 01 00 00 00 00 00 4D [13:55:59]Write i2c OK [13:55:59]MH_I2C_Read... [13:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:59]Read from MH i2c: E2 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 0E 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 0E 00 A5 2B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 15 [13:55:59]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:55:59]wFMCommunicate OK [13:55:59]SAM_PROTO_GetShiftState done [13:55:59]FM_GetShiftState done [13:55:59]req_shift_opened done [13:55:59]requested_item shift.open_date is exist - process it [13:55:59]req_shift_open_date [13:55:59]req_shift_open_date done [13:55:59]produce_requested_data done [13:55:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67070,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [13:55:59]process_action_free print_text [13:55:59]json_value_free [13:55:59]json_value_free done [13:55:59]process_json_proto returns [13:55:59]Send response to host [13:55:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67070,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [13:55:59]free response buf [13:55:59]execute_script done [13:55:59]execute_script returns [13:55:59]free content buf [13:55:59]Sock 8.Close socket [13:55:59]Sock 8.Thread stoped [13:55:59]accept exits with 9 [13:55:59]New connection [13:55:59]New thread 3066617188 created [13:55:59]Thread 3066760548 joined [13:55:59]Waiting for new connection... [13:55:59] Sock 9.Parse request [13:55:59]Sock 9.Check first char [13:55:59]Sock 9.First char is OK [13:55:59]request: POST /json_proto HTTP/1.0 [13:55:59]Method: POST [13:55:59]URL: /json_proto [13:55:59]Method is POST - this is cgi request [13:55:59]url: /json_proto [13:55:59]query_string will be loaded in cgi processing [13:55:59]execute_cgi json_proto POST (null) [13:55:59]execute_cgi path=json_proto method=POST [13:55:59]POST find Content-Length [13:55:59]Host: 172.17.41.195:8080 [13:55:59]Content-Length: 677 [13:55:59]Content-Type: application/json [13:55:59] [13:55:59]POST finish read [13:55:59]Found Content-Length = 677 [13:55:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:59]execute_script... [13:55: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)506949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:59]POST & json_proto [13:55:59]process_json_proto [13:55:59]json parsed OK: [13:55:59]protocol is kg_v1.0 [13:55:59]action value=close_receipt [13:55:59]process_action close_receipt [13:55:59]cmd_close_receipt [13:55:59]MH_GetDate [13:55:59]Write to MH i2c: F0 00 00 A6 2B C0 [13:55:59]Write i2c OK [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: F0 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: F0 09 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: F0 09 00 A6 2B 00 74 6D 43 66 FC 21 6F 64 43 [13:55:59]GetLastDocTimeStamp 1715694926 [13:55:59]current date 1715694964 [13:55:59]FM_GetShiftState [13:55:59]SAM_PROTO_GetShiftState [13:55:59]wFMCommunicate request_size=4 [13:55:59]MH_SAM_APDU [13:55:59]CAPDU: 80 13 01 00 [13:55:59]Write to MH i2c: E2 08 00 A7 2B 80 13 01 00 00 00 00 00 4F [13:55:59]Write i2c OK [13:55:59]MH_I2C_Read... [13:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:59]Read from MH i2c: E2 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 0E 00 [13:55:59]MH_I2C_Read... [13:55:59]Read from MH i2c: E2 0E 00 A7 2B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 17 [13:55:59]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:55:59]wFMCommunicate OK [13:55:59]SAM_PROTO_GetShiftState done [13:55:59]FM_GetShiftState done [13:55:59]opened in 1715646054 [13:55:59]opened+sec_in_day 1715732454 [13:55:59]quantity*price = 60053 [13:55:59]sum+1 = 60054 [13:55:59]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 СНО: Общий режим Чек 78 14.05.2024 13:56 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67071 ФПД: 172681517020891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T135604&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67071&fm=172681517020891&tin=02508201610067®Number=0000000000091845&sum=60000 [13:56:01]StoreToDocumentArchive [13:56:01]shift 355 fd 67071 [13:56:01]save to /storage/0355/doc_00067071 [13:56:01]save last doc name /storage/0355/doc_00067071 to /storage/kkm_last_doc_name [13:56:01]save OK [13:56:01]Clear old archive folders... [13:56:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:56:01]tlvbuf is 00364670 [13:56:01]SAM_PROTO_ClearQueue [13:56:01]wFMCommunicate request_size=4 [13:56:01]MH_SAM_APDU [13:56:01]CAPDU: 80 09 00 00 [13:56:01]Write to MH i2c: E2 08 00 B4 2B 80 09 00 00 00 00 00 00 51 [13:56:01]Write i2c OK [13:56:01]MH_I2C_Read... [13:56:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:01]Read from MH i2c: E2 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: E2 03 00 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: E2 03 00 B4 2B 00 90 00 53 [13:56:01]RAPDU: 90 00 [13:56:01]wFMCommunicate OK [13:56:01]SAM_PROTO_ClearQueue done [13:56:01]KKMCreateOFDPacket [13:56:01]OFDProtocolAddRootSTLVToBuf [13:56:01]FM_MakeSignedData [13:56:01]FM_MakeSignedData [13:56:01]SAM_PROTO_SignData [13:56:01]wFMCommunicate request_size=4 [13:56:01]MH_SAM_APDU [13:56:01]CAPDU: 80 0D 01 02 [13:56:01]Write to MH i2c: E2 08 00 B5 2B 80 0D 01 02 00 00 00 00 59 [13:56:01]Write i2c OK [13:56:01]MH_I2C_Read... [13:56:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:01]Read from MH i2c: E2 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: E2 03 00 [13:56:01]MH_I2C_Read... [13:56:01]Read from MH i2c: E2 03 00 B5 2B 00 90 00 54 [13:56:01]RAPDU: 90 00 [13:56:01]wFMCommunicate OK [13:56:01]wFMCommunicate request_size=255 [13:56:01]MH_SAM_APDU [13:56:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 [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: 30690275+1685004796=1715695071 [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 E0 6D 43 66 FC 21 6F 64 E5 [13:57:52]Current date/time: 14.05.2024 13:57 [13:57:52]FM_Init [13:57:52]wFMConnect [13:57:52]MH_SAM_On [13:57:52]Write to MH i2c: E0 00 00 08 00 E7 [13:57:52]Write i2c OK [13:57:52]MH_I2C_Read... [13:57:52]*** iso7816_init finished! [13:57:52]*** atr: [13:57:52]*** 0F 3B D5 18 FF 81 91 FE [13:57:52]*** 1F C3 80 73 C8 21 10 0A [13:57:52]*** 00 00 00 00 00 00 00 00 [13:57:52]*** 00 00 00 00 00 00 00 00 [13:57:52]*** 00 00 00 00 00 00 00 00 [13:57:52]*** 00 00 00 00 00 00 00 00 [13:57:52]*** 00 00 00 00 00 00 00 00 [13:57:52]*** 00 00 00 00 00 00 00 00 [13:57:52]Read from MH i2c: E0 [13:57:52]MH_I2C_Read... [13:57:52]Read from MH i2c: E0 10 00 [13:57:52]MH_I2C_Read... [13:57:52]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 [13:57:52]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [13:57:52]wFMCommunicate request_size=10 [13:57:52]MH_SAM_APDU [13:57:52]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [13:57:52]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [13:57:52]Write i2c OK [13:57:52]MH_I2C_Read... [13:57:52]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [13:57:52]Read from MH i2c: E2 [13:57:52]MH_I2C_Read... [13:57:52]Read from MH i2c: E2 03 00 [13:57:52]MH_I2C_Read... [13:57:52]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [13:57:52]RAPDU: 90 00 [13:57:52]wFMCommunicate OK [13:57:52]wFMCommunicate request_size=4 [13:57:52]MH_SAM_APDU [13:57:52]CAPDU: 80 11 00 00 [13:57:52]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [13:57:52]Write i2c OK [13:57:52]MH_I2C_Read... [13:57:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:52]Read from MH i2c: E2 [13:57:52]MH_I2C_Read... [13:57:52]Read from MH i2c: E2 17 00 [13:57:52]MH_I2C_Read... [13:57:52]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 [13:57: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:57:52]wFMCommunicate OK [13:57:52]Detected FM SN is 0000000000871829 [13:57:52]Stored FM SN is 0000000000871829 [13:57:52]wFMCommunicate request_size=9 [13:57:52]MH_SAM_APDU [13:57:52]CAPDU: 80 16 00 00 04 44 DD 00 00 [13:57:52]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 44 DD 00 00 00 00 B3 [13:57:52]Write i2c OK [13:57:52]MH_I2C_Read... [13:57:52]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [13:57:52]Read from MH i2c: E2 [13:57:52]MH_I2C_Read... [13:57:52]Read from MH i2c: E2 03 00 [13:57:52]MH_I2C_Read... [13:57:52]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [13:57:52]RAPDU: 90 00 [13:57:52]wFMCommunicate OK [13:57:52]FM PIN OK [13:57:52]wFMCommunicate request_size=8 [13:57:52]MH_SAM_APDU [13:57:52]CAPDU: 80 14 04 00 03 02 00 01 [13:57:52]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [13:57:52]Write i2c OK [13:57:52]MH_I2C_Read... [13:57:52]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [13:57:52]Read from MH i2c: E2 [13:57:52]MH_I2C_Read... [13:57:52]Read from MH i2c: E2 03 00 [13:57:52]MH_I2C_Read... [13:57:52]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [13:57:52]RAPDU: 90 00 [13:57:52]wFMCommunicate OK [13:57:52]wFMCommunicate request_size=13 [13:57:52]MH_SAM_APDU [13:57:52]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [13:57:52]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 [13:57:52]Write i2c OK [13:57:52]MH_I2C_Read... [13:57:52]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [13:57:52]Read from MH i2c: E2 [13:57:52]MH_I2C_Read... [13:57:52]Read from MH i2c: E2 03 00 [13:57:52]MH_I2C_Read... [13:57:52]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [13:57:52]RAPDU: 90 00 [13:57:52]wFMCommunicate OK [13:57:52]wFMCommunicate request_size=4 [13:57:52]MH_SAM_APDU [13:57:52]CAPDU: 80 11 00 00 [13:57:52]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [13:57:52]Write i2c OK [13:57:52]MH_I2C_Read... [13:57:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:52]Read from MH i2c: E2 [13:57:52]MH_I2C_Read... [13:57:52]Read from MH i2c: E2 17 00 [13:57:52]MH_I2C_Read... [13:57:52]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 [13:57: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:57:52]wFMCommunicate OK [13:57:52]DocumentArchiveInit [13:57:52]Start Httpd... [13:57:52]Httpd thread 3067915620 created [13:57:52]Write to MH i2c: 01 00 00 0F 00 0F [13:57:52]Write i2c OK [13:57:52]MH_I2C_Read... [13:57:52]Read from MH i2c: 01 [13:57:52]MH_I2C_Read... [13:57:52]Read from MH i2c: 01 07 00 [13:57:52]MH_I2C_Read... [13:57:52]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [13:57:52]MH Int Process started [13:57:52]Allocated Socket 8 [13:57:52]Bind OK [13:57:52]Listen OK [13:57:52]httpd running on port 8080 [13:57:52]Waiting for new connection... [13:57:52]OFD Sender: Processing packet 67071 [packets to send 35, broken 34] [13:57:52]ProducePacketName [13:57:52]name=ofd_packets/00067071 [13:57:52]OFD Sender: To server: pG, [13:57:52]CommunicateWithHost lk.salyk.kg:30040 [13:57:52]ConnectInit lk.salyk.kg [13:57:53]accept exits with 9 [13:57:53]New connection [13:57:53]New thread 3067628900 created [13:57:53]Waiting for new connection... [13:57:53] Sock 9.Parse request [13:57:53]Sock 9.Check first char [13:57:53]Sock 9.First char is OK [13:57:53]request: POST /json_proto HTTP/1.0 [13:57:53]Method: POST [13:57:53]URL: /json_proto [13:57:53]Method is POST - this is cgi request [13:57:53]url: /json_proto [13:57:53]query_string will be loaded in cgi processing [13:57:53]execute_cgi json_proto POST (null) [13:57:53]execute_cgi path=json_proto method=POST [13:57:53]POST find Content-Length [13:57:53]Host: 172.17.41.195:8080 [13:57:53]Content-Length: 215 [13:57:53]Content-Type: application/json [13:57:53] [13:57:53]POST finish read [13:57:53]Found Content-Length = 215 [13:57:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:53]execute_script... [13:57:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:53]POST & json_proto [13:57:53]process_json_proto [13:57:53]json parsed OK: [13:57:53]protocol is kg_v1.0 [13:57:53]action value=get_value [13:57:53]process_action get_value [13:57:53]cmd_get_value [13:57:53]process_action get_value done [13:57:53]requested_data is exist [13:57:53]produce_requested_data [13:57:53]requested_item kkm.sn is exist - process it [13:57:53]requested_item kkm.ver is exist - process it [13:57:53]requested_item fm.sn is exist - process it [13:57:53]wFMCommunicate request_size=4 [13:57:53]MH_SAM_APDU [13:57:53]CAPDU: 80 11 00 00 [13:57:53]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [13:57:53]Write i2c OK [13:57:53]MH_I2C_Read... [13:57:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:53]Read from MH i2c: E2 [13:57:53]MH_I2C_Read... [13:57:53]Read from MH i2c: E2 17 00 [13:57:53]MH_I2C_Read... [13:57:53]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 [13:57: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:57:53]wFMCommunicate OK [13:57:53]requested_item fd.num is exist - process it [13:57:53]SAM_PROTO_GetFieldsCounters [13:57:53]wFMCommunicate request_size=4 [13:57:53]MH_SAM_APDU [13:57:53]CAPDU: 80 13 00 00 [13:57:53]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [13:57:53]Write i2c OK [13:57:53]MH_I2C_Read... [13:57:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:53]Read from MH i2c: E2 [13:57:53]MH_I2C_Read... [13:57:53]Read from MH i2c: E2 62 00 [13:57:53]MH_I2C_Read... [13:57:53]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 FF 05 01 00 0E 04 04 00 63 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 06 [13:57: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 FF 05 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:57:53]wFMCommunicate OK [13:57:53]SAM_PROTO_GetFieldsCounters done [13:57:53]requested_item shift.num is exist - process it [13:57:53]requested_item shift.opened is exist - process it [13:57:53]req_shift_opened [13:57:53]FM_GetShiftState [13:57:53]SAM_PROTO_GetShiftState [13:57:53]wFMCommunicate request_size=4 [13:57:53]MH_SAM_APDU [13:57:53]CAPDU: 80 13 01 00 [13:57:53]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [13:57:53]Write i2c OK [13:57:53]MH_I2C_Read... [13:57:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:53]Read from MH i2c: E2 [13:57:53]MH_I2C_Read... [13:57:53]Read from MH i2c: E2 0E 00 [13:57:53]MH_I2C_Read... [13:57:53]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 57 [13:57:53]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:57:53]wFMCommunicate OK [13:57:53]SAM_PROTO_GetShiftState done [13:57:53]FM_GetShiftState done [13:57:53]req_shift_opened done [13:57:53]requested_item shift.open_date is exist - process it [13:57:53]req_shift_open_date [13:57:53]req_shift_open_date done [13:57:53]produce_requested_data done [13:57:53]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67071,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [13:57:53]process_action_free get_value [13:57:53]json_value_free [13:57:53]json_value_free done [13:57:53]process_json_proto returns [13:57:53]Send response to host [13:57:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67071,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [13:57:53]free response buf [13:57:53]execute_script done [13:57:53]execute_script returns [13:57:53]free content buf [13:57:53]Sock 9.Close socket [13:57:53]Sock 9.Thread stoped [13:57:53]accept exits with 11 [13:57:53]New connection [13:57:53]New thread 3067485540 created [13:57:53]Thread 3067628900 joined [13:57:53]Waiting for new connection... [13:57:53] Sock 11.Parse request [13:57:53]Sock 11.Check first char [13:57:53]Sock 11.First char is OK [13:57:53]request: POST /json_proto HTTP/1.0 [13:57:53]Method: POST [13:57:53]URL: /json_proto [13:57:53]Method is POST - this is cgi request [13:57:53]url: /json_proto [13:57:53]query_string will be loaded in cgi processing [13:57:53]execute_cgi json_proto POST (null) [13:57:53]execute_cgi path=json_proto method=POST [13:57:53]POST find Content-Length [13:57:53]Host: 172.17.41.195:8080 [13:57:53]Content-Length: 331 [13:57:53]Content-Type: application/json [13:57:53] [13:57:53]POST finish read [13:57:53]Found Content-Length = 331 [13:57:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:57:53]execute_script... [13:57:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:57:53]POST & json_proto [13:57:53]process_json_proto [13:57:53]json parsed OK: [13:57:53]protocol is kg_v1.0 [13:57:53]action value=get_value [13:57:53]process_action get_value [13:57:53]cmd_get_value [13:57:53]process_action get_value done [13:57:53]requested_data is exist [13:57:53]produce_requested_data [13:57:53]requested_item fm.sale.total is exist - process it [13:57:53]SAM_PROTO_GetFMData [13:57:53]wFMCommunicate request_size=4 [13:57:53]MH_SAM_APDU [13:57:53]CAPDU: 80 13 03 00 [13:57:53]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [13:57:54]Write i2c OK [13:57:54]MH_I2C_Read... [13:57:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:57:54]Read from MH i2c: E2 [13:57:54]MH_I2C_Read... [13:57:54]Read from MH i2c: E2 FD 00 [13:57:54]MH_I2C_Read... [13:57:54]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 39 03 01 00 69 04 A3 00 6F 04 04 00 94 02 01 00 B1 04 05 00 21 C2 5A 18 03 70 04 05 00 5C 18 57 BE 02 72 04 04 00 C5 A9 03 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F8 C6 27 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 31 3C 03 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 5B [13:57:54]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 39 03 01 00 69 04 A3 00 6F 04 04 00 94 02 01 00 B1 04 05 00 21 C2 5A 18 03 70 04 05 00 5C 18 57 BE 02 72 04 04 00 C5 A9 03 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F8 C6 27 54 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 31 3C 03 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 [13:57:54]wFMCommunicate OK [13:57:54]wFMCommunicate request_size=4 [13:57:54]MH_SAM_APDU [13:57:54]CAPDU: 80 17 00 00 [13:57:54]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [13:57:54]Write i2c OK [13:57:54]MH_I2C_Read... [13:57:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:57:54]Read from MH i2c: E2 [13:57:54]MH_I2C_Read... [13:57:54]Read from MH i2c: E2 FD 00 [13:57:54]MH_I2C_Read... [13:57:54]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 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 42 [13:57:54]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [13:57:54]wFMCommunicate OK [13:57:54]wFMCommunicate request_size=4 [13:57:54]MH_SAM_APDU [13:57:54]CAPDU: 80 17 00 00 [13:57:54]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [13:57:54]Write i2c OK [13:57:54]MH_I2C_Read... [13:57:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:57:55]Read from MH i2c: E2 [13:57:55]MH_I2C_Read... [13:57:55]Read from MH i2c: E2 FD 00 [13:57:55]MH_I2C_Read... [13:57:55]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 [13:57:55]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [13:57:55]wFMCommunicate OK [13:57:55]wFMCommunicate request_size=4 [13:57:55]MH_SAM_APDU [13:57:55]CAPDU: 80 17 00 00 [13:57:55]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [13:57:55]Write i2c OK [13:57:55]MH_I2C_Read... [13:57:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:57:55]Read from MH i2c: E2 [13:57:55]MH_I2C_Read... [13:57:55]Read from MH i2c: E2 FD 00 [13:57:55]MH_I2C_Read... [13:57:55]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 [13:57:55]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [13:57:55]wFMCommunicate OK [13:57:55]wFMCommunicate request_size=4 [13:57:55]MH_SAM_APDU [13:57:55]CAPDU: 80 17 00 00 [13:57:55]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [13:57:55]Write i2c OK [13:57:55]MH_I2C_Read... [13:57:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [13:57:55]Read from MH i2c: E2 [13:57:55]MH_I2C_Read... [13:57:55]Read from MH i2c: E2 E3 00 [13:57:55]MH_I2C_Read... [13:57:55]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 [13:57:55]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:57:55]wFMCommunicate OK [13:57:55]SAM_PROTO_GetFMData done [13:57:55]requested_item fm.sale_refund.total is exist - process it [13:57:55]requested_item fm.buy.total is exist - process it [13:57:55]requested_item shift.sale.total is exist - process it [13:57:55]SAM_PROTO_GetShiftData [13:57:55]wFMCommunicate request_size=4 [13:57:55]MH_SAM_APDU [13:57:55]CAPDU: 80 13 02 00 [13:57:55]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [13:57:55]Write i2c OK [13:57:55]MH_I2C_Read... [13:57:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:57:56]Read from MH i2c: E2 [13:57:56]MH_I2C_Read... [13:57:56]Read from MH i2c: E2 FD 00 [13:57:56]MH_I2C_Read... [13:57:56]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 4E 00 00 00 69 04 9C 00 6F 04 04 00 4E 00 00 00 B1 04 03 00 75 97 EF 70 04 03 00 C0 B1 3D 72 04 03 00 B5 E5 B1 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 41 72 19 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 1E 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 B1 [13:57:56]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 4E 00 00 00 69 04 9C 00 6F 04 04 00 4E 00 00 00 B1 04 03 00 75 97 EF 70 04 03 00 C0 B1 3D 72 04 03 00 B5 E5 B1 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 41 72 19 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 CF 1E 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [13:57:56]wFMCommunicate OK [13:57:56]wFMCommunicate request_size=4 [13:57:56]MH_SAM_APDU [13:57:56]CAPDU: 80 17 00 00 [13:57:56]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [13:57:56]Write i2c OK [13:57:56]MH_I2C_Read... [13:57:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:57:56]Read from MH i2c: E2 [13:57:56]MH_I2C_Read... [13:57:56]Read from MH i2c: E2 FD 00 [13:57:56]MH_I2C_Read... [13:57:56]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 [13:57:56]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [13:57:56]wFMCommunicate OK [13:57:56]wFMCommunicate request_size=4 [13:57:56]MH_SAM_APDU [13:57:56]CAPDU: 80 17 00 00 [13:57:56]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [13:57:56]Write i2c OK [13:57:56]MH_I2C_Read... [13:57:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:57:56]Read from MH i2c: E2 [13:57:56]MH_I2C_Read... [13:57:56]Read from MH i2c: E2 FD 00 [13:57:56]MH_I2C_Read... [13:57:56]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 [13:57:56]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 [13:57:56]wFMCommunicate OK [13:57:56]wFMCommunicate request_size=4 [13:57:56]MH_SAM_APDU [13:57:56]CAPDU: 80 17 00 00 [13:57:56]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [13:57:56]Write i2c OK [13:57:56]MH_I2C_Read... [13:57:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:57:57]Read from MH i2c: E2 [13:57:57]MH_I2C_Read... [13:57:57]Read from MH i2c: E2 FD 00 [13:57:57]MH_I2C_Read... [13:57:57]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 [13:57:57]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [13:57:57]wFMCommunicate OK [13:57:57]wFMCommunicate request_size=4 [13:57:57]MH_SAM_APDU [13:57:57]CAPDU: 80 17 00 00 [13:57:57]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [13:57:57]Write i2c OK [13:57:57]MH_I2C_Read... [13:57:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [13:57:57]Read from MH i2c: E2 [13:57:57]MH_I2C_Read... [13:57:57]Read from MH i2c: E2 CC 00 [13:57:57]MH_I2C_Read... [13:57:57]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 [13:57:57]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:57:57]wFMCommunicate OK [13:57:57]SAM_PROTO_GetShiftData done [13:57:57]requested_item shift.sale.total_cash is exist - process it [13:57:57]requested_item shift.sale_refund.total is exist - process it [13:57:57]requested_item shift.sale_refund.total_cash is exist - process it [13:57:57]requested_item shift.buy.total is exist - process it [13:57:57]requested_item shift.buy.total_cash is exist - process it [13:57:57]produce_requested_data done [13:57:57]produce_requested_data return {"fm.sale.total":132935030.09,"fm.sale_refund.total":37024060.00,"fm.buy.total":0.00,"shift.sale.total":157018.77,"shift.sale.total_cash":40432.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} [13:57:57]process_action_free get_value [13:57:57]json_value_free [13:57:57]json_value_free done [13:57:57]process_json_proto returns [13:57:57]Send response to host [13:57:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":132935030.09,"fm.sale_refund.total":37024060.00,"fm.buy.total":0.00,"shift.sale.total":157018.77,"shift.sale.total_cash":40432.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}}} [13:57:57]free response buf [13:57:57]execute_script done [13:57:57]execute_script returns [13:57:57]free content buf [13:57:57]Sock 11.Close socket [13:57:57]Sock 11.Thread stoped [13:57:58]accept exits with 9 [13:57:58]New connection [13:57:58]New thread 3067628900 created [13:57:58]Thread 3067485540 joined [13:57:58]Waiting for new connection... [13:57:58] Sock 9.Parse request [13:57:58]Sock 9.Check first char [13:57:58]Sock 9.First char is OK [13:57:58]request: POST /json_proto HTTP/1.0 [13:57:58]Method: POST [13:57:58]URL: /json_proto [13:57:58]Method is POST - this is cgi request [13:57:58]url: /json_proto [13:57:58]query_string will be loaded in cgi processing [13:57:58]execute_cgi json_proto POST (null) [13:57:58]execute_cgi path=json_proto method=POST [13:57:58]POST find Content-Length [13:57:58]Host: 172.17.41.195:8080 [13:57:58]Content-Length: 662 [13:57:58]Content-Type: application/json [13:57:58] [13:57:58]POST finish read [13:57:58]Found Content-Length = 662 [13:57:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12050", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:58]execute_script... [13:57: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)12050", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:58]POST & json_proto [13:57:58]process_json_proto [13:57:58]json parsed OK: [13:57:58]protocol is kg_v1.0 [13:57:58]action value=close_receipt [13:57:58]process_action close_receipt [13:57:58]cmd_close_receipt [13:57:58]MH_GetDate [13:57:58]Write to MH i2c: F0 00 00 1D 00 0C [13:57:58]Write i2c OK [13:57:58]MH_I2C_Read... [13:57:58]Read from MH i2c: F0 [13:57:58]MH_I2C_Read... [13:57:58]Read from MH i2c: F0 09 00 [13:57:58]MH_I2C_Read... [13:57:58]Read from MH i2c: F0 09 00 1D 00 00 E6 6D 43 66 FC 21 6F 64 01 [13:57:58]GetLastDocTimeStamp 1715694964 [13:57:58]current date 1715695078 [13:57:58]FM_GetShiftState [13:57:58]SAM_PROTO_GetShiftState [13:57:58]wFMCommunicate request_size=4 [13:57:58]MH_SAM_APDU [13:57:58]CAPDU: 80 13 01 00 [13:57:58]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [13:57:58]Write i2c OK [13:57:58]MH_I2C_Read... [13:57:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:58]Read from MH i2c: E2 [13:57:58]MH_I2C_Read... [13:57:58]Read from MH i2c: E2 0E 00 [13:57:58]MH_I2C_Read... [13:57:58]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 63 [13:57:58]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:57:58]wFMCommunicate OK [13:57:58]SAM_PROTO_GetShiftState done [13:57:58]FM_GetShiftState done [13:57:58]opened in 1715646054 [13:57:58]opened+sec_in_day 1715732454 [13:57:58]quantity*price = 17000 [13:57:58]sum+1 = 17001 [13:57:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 79 14.05.2024 13:57 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67072 ФПД: 34933858198150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T135758&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67072&fm=34933858198150&tin=02508201610067®Number=0000000000091845&sum=17000 0 [13:57:59]39 StoreToDocumentArchive [13:57:59]32 shift 355 fd 67072 [13:57:59]2D D0 9A 2D 35 FF 03 save to /storage/0355/doc_00067072 [13:57:59]08 00 save last doc name /storage/0355/doc_00067072 to /storage/kkm_last_doc_name [13:57:59]03 1E 23 00 00 save OK [13:57:59]00 Clear old archive folders... [13:57:59]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 ProcessDocumentItem done err = 0, tmpTLVsize=287 [13:57:59]00 tlvbuf is 007FF4A0 [13:57:59]00 SAM_PROTO_ClearQueue [13:57:59]39 wFMCommunicate request_size=4 [13:57:59]04 MH_SAM_APDU [13:57:59]06 CAPDU: 00 80 00 09 00 00 00 00 00 [13:57:59]00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 74 6D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 Write to MH i2c: 00 E2 30 08 30 00 30 2B 30 00 30 80 30 09 30 00 30 00 30 00 30 00 30 00 39 00 31 9D 38 [13:57:59]34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FF 05 01 00 35 04 06 00 9D 0D 8C 7B 36 DB 00 AD FF 44 BC 95 3A A1 [13:57:59]Write i2c OK [13:57:59]MH_I2C_Read... [13:57:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:59]Read from MH i2c: E2 [13:57:59]MH_I2C_Read... [13:57:59]Read from MH i2c: E2 03 00 [13:57:59]MH_I2C_Read... [13:57:59]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [13:57:59]RAPDU: 90 00 [13:57:59]wFMCommunicate OK [13:57:59]SAM_PROTO_ClearQueue done [13:57:59]KKMCreateOFDPacket [13:57:59]OFDProtocolAddRootSTLVToBuf [13:57:59]FM_MakeSignedData [13:57:59]FM_MakeSignedData [13:57:59]SAM_PROTO_SignData [13:57:59]wFMCommunicate request_size=4 [13:57:59]MH_SAM_APDU [13:57:59]CAPDU: 80 0D 01 02 [13:57:59]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [13:57:59]Write i2c OK [13:57:59]MH_I2C_Read... [13:57:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:59]Read from MH i2c: E2 [13:57:59]MH_I2C_Read... [13:57:59]Read from MH i2c: E2 03 00 [13:57:59]MH_I2C_Read... [13:57:59]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [13:57:59]RAPDU: 90 00 [13:57:59]wFMCommunicate OK [13:57:59]wFMCommunicate request_size=255 [13:57:59]MH_SAM_APDU [13:57:59]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 E6 6D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [13:58:00]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 E6 6D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 00 00 D6 [13:58:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 Write i2c OK [13:58:00]38 MH_I2C_Read... [13:58:00]37 31 38 32 39 4F 00 00 00 9D 7B 47 00 40 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 FF 05 01 00 F4 03 04 00 C5 15 43 66 B6 04 01 00 00 3B D2 E9 D9 E2 66 9B 2D [13:58:00]CommunicateWithHost err = 0 [13:58:00]CheckOFDResponse [13:58:00]1017 (14) - 77093643461234 [13:58:00]1041 (16) - 0000000000871829 [13:58:00]1040 (4) - 67071 [13:58:00]1012 (4) - 14.05.2024 07:41 [13:58:00]1206 (1) - 0 [13:58:00]OFD Sender: Remove packet 67071 [13:58:00]ProducePacketName [13:58:00]name=ofd_packets/00067071 [13:58:00]NVStorageDeleteData [13:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:00]Read from MH i2c: E2 [13:58:00]MH_I2C_Read... [13:58:00]Read from MH i2c: E2 03 00 [13:58:00]MH_I2C_Read... [13:58:00]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [13:58:00]RAPDU: 90 00 [13:58:00]wFMCommunicate OK [13:58:00]wFMCommunicate request_size=46 [13:58:00]MH_SAM_APDU [13:58:00]CAPDU: 80 0D 02 02 29 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 00 06 01 00 35 04 06 00 1F C5 AC 35 62 86 [13:58:00]Write to MH i2c: E2 31 00 2E 00 80 0D 02 02 29 00 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 00 06 01 00 35 04 06 00 1F C5 AC 35 62 86 00 00 EE [13:58:00]Write i2c OK [13:58:00]MH_I2C_Read... [13:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:00]Read from MH i2c: E2 [13:58:00]MH_I2C_Read... [13:58:00]Read from MH i2c: E2 03 00 [13:58:00]MH_I2C_Read... [13:58:00]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [13:58:00]RAPDU: 90 00 [13:58:00]wFMCommunicate OK [13:58:00]wFMCommunicate request_size=4 [13:58:00]MH_SAM_APDU [13:58:00]CAPDU: 80 0D 03 02 [13:58:00]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [13:58:00]Write i2c OK [13:58:00]MH_I2C_Read... [13:58:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:00]Read from MH i2c: E2 [13:58:00]MH_I2C_Read... [13:58:00]Read from MH i2c: E2 0B 00 [13:58:00]MH_I2C_Read... [13:58:00]Read from MH i2c: E2 0B 00 2F 00 00 A0 CB B7 6C 1E F5 10 FD 90 00 59 [13:58:00]RAPDU: A0 CB B7 6C 1E F5 10 FD 90 00 [13:58:00]wFMCommunicate OK [13:58:00]SAM_PROTO_SignData done [13:58:00]FM_MakeSignedData done [13:58:00]CreateOFDProtocolMessage [13:58:00]wFMCommunicate request_size=4 [13:58:00]MH_SAM_APDU [13:58:00]CAPDU: 80 11 00 00 [13:58:00]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [13:58:00]Write i2c OK [13:58:00]MH_I2C_Read... [13:58:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:00]Read from MH i2c: E2 [13:58:00]MH_I2C_Read... [13:58:00]Read from MH i2c: E2 17 00 [13:58:00]MH_I2C_Read... [13:58:00]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 [13:58:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:58:00]wFMCommunicate OK [13:58:00]CreateOFDProtocolMessage done [13:58:00]OFDSenderStorePacket 67072 [13:58:00]StoreOFDPacket docnum=67072 [13:58: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 33 01 00 00 96 EC 2B 01 78 60 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 E6 6D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 00 06 01 00 35 04 06 00 1F C5 AC 35 62 86 A0 CB B7 6C 1E F5 10 FD [13:58:00]CheckFolder [13:58:00]dirname=/storage/ofd_packets [13:58:00]CheckFolder done [13:58:00]ProducePacketName [13:58:00]name=ofd_packets/00067072 [13:58:00]NVStorageSaveData ofd_packets/00067072 [13:58:00]File name is /storage/ofd_packets/00067072 [13:58:00]Write 337 bytes [13:58:00]NVStorageSaveData done [13:58:00]OFDSenderStorePacket done [13:58:00]KKMCreateOFDPacket done [13:58:00]NVStorageSaveData kkm_last_timestamp [13:58:00]File name is /storage/kkm_last_timestamp [13:58:00]Write 4 bytes [13:58:00]NVStorageSaveData done [13:58:00]ExternCall_PrintAddStr [13:58:00]wPrintStart [13:58:00]Write to MH i2c: 01 00 00 31 00 31 [13:58:00]OFD Sender: Processing packet 67072 [packets to send 35, broken 34] [13:58:00]ProducePacketName [13:58:00]name=ofd_packets/00067072 [13:58:00]OFD Sender: To server: pG, [13:58:00]CommunicateWithHost lk.salyk.kg:30040 [13:58:00]ConnectInit lk.salyk.kg [13:58:00]Write i2c OK [13:58:00]MH_I2C_Read... [13:58:00]Read from MH i2c: 01 [13:58:00]MH_I2C_Read... [13:58:00]Read from MH i2c: 01 07 00 [13:58:00]MH_I2C_Read... [13:58:00]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [13:58:00]RasterBufferAndPrint [13:58:00]line Счет N : (3)12050 [13:58:00]line ИНН: 02508201610067 [13:58:00]line Контрольно-Кассовый Чек [13:58:00]line ПРОДАЖА [13:58:00]line Товар: 5449000176448 [13:58:00]line Сок Piko Pulpy апельсин ПЭТ 1л [13:58:00]line 1.000 * 170.00 [13:58:00]line = 170.00 [13:58:00]line НДС 12% НСП 1% [13:58:00]line > о реализуемом товаре [13:58:00]line ИТОГО: 170.00 [13:58:00]line НСП 1% : 1.50 [13:58:00]line НДС 12% : 18.05 [13:58:00]line Наличными: 170.00 [13:58:00]line Безнал.: 0.00 [13:58:00]line Место: АЗС № 91 "Партнер Нефть" [13:58:00]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:58:00]line СНО: Общий режим [13:58:00]line Чек 79 14.05.2024 13:57 [13:58:00]line Смена: 355 ФФД: 1.0 [13:58:00]line ЗНМ: 0300000119 [13:58:00]line РНМ: 0000000000091845 [13:58:00]line Версия ККМ: 001 [13:58:00]line ФМ: 0000000000871829 [13:58:00]line ФД: 67072 [13:58:00]line ФПД: 34933858198150 [13:58:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T135758&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67072&fm=34933858198150&tin=02508201610067®Number=0000000000091845&sum=17000 [13:58:00]line 0 [13:58:00]written 0, free lines is 4095 [13:58:00]Connected sock=6 [13:58: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 33 01 00 00 96 EC 2B 01 78 60 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 E6 6D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 00 06 01 00 35 04 06 00 1F C5 AC 35 62 86 A0 CB B7 6C 1E F5 10 FD [13:58: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 CE 99 47 00 58 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 00 06 01 00 F4 03 04 00 C6 15 43 66 B6 04 01 00 00 7D 71 69 3E C4 BB DE 46 [13:58:01]CommunicateWithHost err = 0 [13:58:01]CheckOFDResponse [13:58:01]1017 (14) - 77093643461234 [13:58:01]1041 (16) - 0000000000871829 [13:58:01]1040 (4) - 67072 [13:58:01]1012 (4) - 14.05.2024 07:41 [13:58:01]1206 (1) - 0 [13:58:01]OFD Sender: Remove packet 67072 [13:58:01]ProducePacketName [13:58:01]name=ofd_packets/00067072 [13:58:01]NVStorageDeleteData [13:58:01]Write to MH i2c: 01 00 00 59 00 59 [13:58:01]Write i2c OK [13:58:01]MH_I2C_Read... [13:58:01]Read from MH i2c: 01 [13:58:01]MH_I2C_Read... [13:58:01]Read from MH i2c: 01 07 00 [13:58:01]MH_I2C_Read... [13:58:01]Read from MH i2c: 01 07 00 59 00 00 00 00 00 00 E4 0C 50 [13:58:01]RasterBufferAndPrint [13:58:01]line [13:58:01]line [13:58:01]line [13:58:01]line [13:58:01]line [13:58:01]written 0, free lines is 3320 [13:58:01]MH_Cut [13:58:01]Write to MH i2c: D1 01 00 60 00 01 32 [13:58:01]Write i2c OK [13:58:01]MH_I2C_Read... [13:58:01]Read from MH i2c: D1 [13:58:01]MH_I2C_Read... [13:58:01]Read from MH i2c: D1 01 00 [13:58:01]MH_I2C_Read... [13:58:01]Read from MH i2c: D1 01 00 60 00 00 31 [13:58:01]Write to MH i2c: 01 00 00 61 00 61 [13:58:01]Write i2c OK [13:58:01]MH_I2C_Read... [13:58:01]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:01]*** Cut start [13:58:01]*** Purtial cut [13:58:01]*** CUTSNS_PIN = 0 [13:58:02]*** Stage 1: CUTSNS_PIN = 1 [13:58:03]Read from MH i2c: 01 *** Stop cut motor [13:58:03] [13:58:03]*** Cut end [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: 01 07 00 [13:58:03]MH_I2C_Read... [13:58:03]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 FF 0F 76 [13:58:03]process_action close_receipt done [13:58:03]requested_data is exist [13:58:03]produce_requested_data [13:58:03]requested_item fm.sn is exist - process it [13:58:03]wFMCommunicate request_size=4 [13:58:03]MH_SAM_APDU [13:58:03]CAPDU: 80 11 00 00 [13:58:03]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [13:58:03]Write i2c OK [13:58:03]MH_I2C_Read... [13:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:04]Read from MH i2c: E2 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: E2 17 00 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 32 [13:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:58:04]wFMCommunicate OK [13:58:04]requested_item fd.num is exist - process it [13:58:04]SAM_PROTO_GetFieldsCounters [13:58:04]wFMCommunicate request_size=4 [13:58:04]MH_SAM_APDU [13:58:04]CAPDU: 80 13 00 00 [13:58:04]Write to MH i2c: E2 08 00 63 00 80 13 00 00 00 00 00 00 DF [13:58:04]Write i2c OK [13:58:04]MH_I2C_Read... [13:58:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:04]Read from MH i2c: E2 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: E2 62 00 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: E2 62 00 63 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 00 06 01 00 0E 04 04 00 63 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 5D [13:58:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 00 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:04]wFMCommunicate OK [13:58:04]SAM_PROTO_GetFieldsCounters done [13:58:04]requested_item shift.num is exist - process it [13:58:04]requested_item shift.opened is exist - process it [13:58:04]req_shift_opened [13:58:04]FM_GetShiftState [13:58:04]SAM_PROTO_GetShiftState [13:58:04]wFMCommunicate request_size=4 [13:58:04]MH_SAM_APDU [13:58:04]CAPDU: 80 13 01 00 [13:58:04]Write to MH i2c: E2 08 00 64 00 80 13 01 00 00 00 00 00 E1 [13:58:04]Write i2c OK [13:58:04]MH_I2C_Read... [13:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:04]Read from MH i2c: E2 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: E2 0E 00 [13:58:04]MH_I2C_Read... [13:58:04]Read from MH i2c: E2 0E 00 64 00 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A9 [13:58:04]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:58:04]wFMCommunicate OK [13:58:04]SAM_PROTO_GetShiftState done [13:58:04]FM_GetShiftState done [13:58:04]req_shift_opened done [13:58:04]requested_item shift.open_date is exist - process it [13:58:04]req_shift_open_date [13:58:04]req_shift_open_date done [13:58:04]produce_requested_data done [13:58:04]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67072,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [13:58:04]process_action_free close_receipt [13:58:04]json_value_free [13:58:04]json_value_free done [13:58:04]process_json_proto returns [13:58:04]Send response to host [13:58:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67072,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [13:58:04]free response buf [13:58:04]execute_script done [13:58:04]execute_script returns [13:58:04]free content buf [13:58:04]Sock 9.Close socket [13:58:04]Sock 9.Thread stoped [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:50]accept exits with 11 [13:58:50]New connection [13:58:50]New thread 3067485540 created [13:58:50]Thread 3067628900 joined [13:58:50]Waiting for new connection... [13:58:50] Sock 11.Parse request [13:58:50]Sock 11.Check first char [13:58:50]Sock 11.First char is OK [13:58:50]request: POST /json_proto HTTP/1.0 [13:58:50]Method: POST [13:58:50]URL: /json_proto [13:58:50]Method is POST - this is cgi request [13:58:50]url: /json_proto [13:58:50]query_string will be loaded in cgi processing [13:58:50]execute_cgi json_proto POST (null) [13:58:50]execute_cgi path=json_proto method=POST [13:58:50]POST find Content-Length [13:58:50]Host: 172.17.41.195:8080 [13:58:50]Content-Length: 677 [13:58:50]Content-Type: application/json [13:58:50] [13:58:50]POST finish read [13:58:50]Found Content-Length = 677 [13:58:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506953", "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" ] } } [13:58:50]execute_script... [13:58: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)506953", "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" ] } } [13:58:50]POST & json_proto [13:58:50]process_json_proto [13:58:50]json parsed OK: [13:58:50]protocol is kg_v1.0 [13:58:50]action value=close_receipt [13:58:50]process_action close_receipt [13:58:50]cmd_close_receipt [13:58:50]MH_GetDate [13:58:50]Write to MH i2c: F0 00 00 65 00 54 [13:58:50]Write i2c OK [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: F0 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: F0 09 00 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: F0 09 00 65 00 00 1A 6E 43 66 FC 21 6F 64 7E [13:58:50]GetLastDocTimeStamp 1715695078 [13:58:50]current date 1715695130 [13:58:50]FM_GetShiftState [13:58:50]SAM_PROTO_GetShiftState [13:58:50]wFMCommunicate request_size=4 [13:58:50]MH_SAM_APDU [13:58:50]CAPDU: 80 13 01 00 [13:58:50]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [13:58:50]Write i2c OK [13:58:50]MH_I2C_Read... [13:58:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:50]Read from MH i2c: E2 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: E2 0E 00 [13:58:50]MH_I2C_Read... [13:58:50]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 AB [13:58:50]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:58:50]wFMCommunicate OK [13:58:50]SAM_PROTO_GetShiftState done [13:58:50]FM_GetShiftState done [13:58:50]opened in 1715646054 [13:58:50]opened+sec_in_day 1715732454 [13:58:50]quantity*price = 50033 [13:58:50]sum+1 = 50034 [13:58: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 СНО: Общий режим Чек 80 14.05.2024 13:58 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67073 ФПД: 42080536882656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T135850&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67073&fm=42080536882656&tin=02508201610067®Number=0000000000091845&sum=50000 [13:58:51]StoreToDocumentArchive [13:58:51]shift 355 fd 67073 [13:58:51]save to /storage/0355/doc_00067073 [13:58:51]save last doc name /storage/0355/doc_00067073 to /storage/kkm_last_doc_name [13:58:51]save OK [13:58:51]Clear old archive folders... [13:58:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:51]tlvbuf is 00802460 [13:58:51]SAM_PROTO_ClearQueue [13:58:51]wFMCommunicate request_size=4 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 09 00 00 [13:58:51]Write to MH i2c: E2 08 00 73 00 80 09 00 00 00 00 00 00 E5 [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [13:58:51]RAPDU: 90 00 [13:58:51]wFMCommunicate OK [13:58:51]SAM_PROTO_ClearQueue done [13:58:51]KKMCreateOFDPacket [13:58:51]OFDProtocolAddRootSTLVToBuf [13:58:51]FM_MakeSignedData [13:58:51]FM_MakeSignedData [13:58:51]SAM_PROTO_SignData [13:58:51]wFMCommunicate request_size=4 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 0D 01 02 [13:58:51]Write to MH i2c: E2 08 00 74 00 80 0D 01 02 00 00 00 00 ED [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [13:58:51]RAPDU: 90 00 [13:58:51]wFMCommunicate OK [13:58:51]wFMCommunicate request_size=255 [13:58:51]MH_SAM_APDU [13:58: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 50 00 00 00 F4 03 04 00 1A 6E 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 01 06 01 00 35 04 06 00 26 [13:58:51]Write to MH i2c: E2 02 01 75 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 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 50 00 00 00 F4 03 04 00 1A 6E 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 01 06 01 00 35 04 06 00 26 00 00 8B [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [13:58:51]RAPDU: 90 00 [13:58:51]wFMCommunicate OK [13:58:51]wFMCommunicate request_size=10 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 0D 02 02 05 45 A3 73 ED E0 [13:58:51]Write to MH i2c: E2 0D 00 76 00 80 0D 02 02 05 00 45 A3 73 ED E0 00 00 22 [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [13:58:51]RAPDU: 90 00 [13:58:51]wFMCommunicate OK [13:58:51]wFMCommunicate request_size=4 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 0D 03 02 [13:58:51]Write to MH i2c: E2 08 00 77 00 80 0D 03 02 00 00 00 00 F2 [13:58:51]OFD Sender: No OFD packet to send [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 0B 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 0B 00 77 00 00 A3 52 4E 31 EC A9 7E 0C 90 00 86 [13:58:51]RAPDU: A3 52 4E 31 EC A9 7E 0C 90 00 [13:58:51]wFMCommunicate OK [13:58:51]SAM_PROTO_SignData done [13:58:51]FM_MakeSignedData done [13:58:51]CreateOFDProtocolMessage [13:58:51]wFMCommunicate request_size=4 [13:58:51]MH_SAM_APDU [13:58:51]CAPDU: 80 11 00 00 [13:58:51]Write to MH i2c: E2 08 00 78 00 80 11 00 00 00 00 00 00 F2 [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:51]Read from MH i2c: E2 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 17 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: E2 17 00 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 48 [13:58: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:58:51]wFMCommunicate OK [13:58:51]CreateOFDProtocolMessage done [13:58:51]OFDSenderStorePacket 67073 [13:58:51]StoreOFDPacket docnum=67073 [13:58: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 16 8B 07 01 6E F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 50 00 00 00 F4 03 04 00 1A 6E 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 01 06 01 00 35 04 06 00 26 45 A3 73 ED E0 A3 52 4E 31 EC A9 7E 0C [13:58:51]CheckFolder [13:58:51]dirname=/storage/ofd_packets [13:58:51]CheckFolder done [13:58:51]ProducePacketName [13:58:51]name=ofd_packets/00067073 [13:58:51]NVStorageSaveData ofd_packets/00067073 [13:58:51]File name is /storage/ofd_packets/00067073 [13:58:51]Write 301 bytes [13:58:51]NVStorageSaveData done [13:58:51]OFDSenderStorePacket done [13:58:51]KKMCreateOFDPacket done [13:58:51]NVStorageSaveData kkm_last_timestamp [13:58:51]File name is /storage/kkm_last_timestamp [13:58:51]Write 4 bytes [13:58:51]NVStorageSaveData done [13:58:51]ExternCall_PrintAddStr [13:58:51]wPrintStart [13:58:51]Write to MH i2c: 01 00 00 79 00 79 [13:58:51]OFD Sender: Processing packet 67073 [packets to send 35, broken 34] [13:58:51]ProducePacketName [13:58:51]name=ofd_packets/00067073 [13:58:51]OFD Sender: To server: pG, [13:58:51]CommunicateWithHost lk.salyk.kg:30040 [13:58:51]ConnectInit lk.salyk.kg [13:58:51]Write i2c OK [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: 01 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: 01 07 00 [13:58:51]MH_I2C_Read... [13:58:51]Read from MH i2c: 01 07 00 79 00 00 00 00 00 00 FF 0F 8E [13:58:51]RasterBufferAndPrint [13:58:51]line Счет N : (1)506953 [13:58:51]line ИНН: 02508201610067 [13:58:52]line Контрольно-Кассовый Чек [13:58:52]line ПРОДАЖА [13:58:52]line ТРК (МРК, ГНК) : 13 [13:58:52]line Товар: 2710124130 [13:58:52]line Аи-92-К-5 [13:58:52]line 7.490 * 66.80 [13:58:52]line = 500.33 [13:58:52]line НДС 12% НСП 1% [13:58:52]line > о реализуемом товаре [13:58:52]line ОКРУГЛЕНИЕ: -0.33 [13:58:52]line ИТОГО: 500.00 [13:58:52]line Внесено: 500.00 [13:58:52]line СДАЧА: 0.00 [13:58:52]line НСП 1% : 4.43 [13:58:52]line НДС 12% : 53.13 [13:58:52]line Наличными: 500.00 [13:58:52]line Безнал.: 0.00 [13:58:52]line Место: АЗС № 91 "Партнер Нефть" [13:58:52]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:58:52]line СНО: Общий режим [13:58:52]line Чек 80 14.05.2024 13:58 [13:58:52]line Смена: 355 ФФД: 1.0 [13:58:52]line ЗНМ: 0300000119 [13:58:52]line РНМ: 0000000000091845 [13:58:52]line Версия ККМ: 001 [13:58:52]line ФМ: 0000000000871829 [13:58:52]line ФД: 67073 [13:58:52]line ФПД: 42080536882656 [13:58:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T135850&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67073&fm=42080536882656&tin=02508201610067®Number=0000000000091845&sum=50000 [13:58:52]Connected sock=9 [13:58: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 16 8B 07 01 6E F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 50 00 00 00 F4 03 04 00 1A 6E 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 01 06 01 00 35 04 06 00 26 45 A3 73 ED E0 A3 52 4E 31 EC A9 7E 0C [13:58:52]written 0, free lines is 4095 [13:58: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 6D 36 47 00 D8 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 01 06 01 00 F4 03 04 00 FA 15 43 66 B6 04 01 00 00 61 F6 86 AA C4 E3 C1 42 [13:58:52]CommunicateWithHost err = 0 [13:58:52]CheckOFDResponse [13:58:52]1017 (14) - 77093643461234 [13:58:52]1041 (16) - 0000000000871829 [13:58:52]1040 (4) - 67073 [13:58:52]1012 (4) - 14.05.2024 07:42 [13:58:52]1206 (1) - 0 [13:58:52]OFD Sender: Remove packet 67073 [13:58:52]ProducePacketName [13:58:52]name=ofd_packets/00067073 [13:58:52]NVStorageDeleteData [13:58:52]Write to MH i2c: 01 00 00 A3 00 A3 [13:58:52]Write i2c OK [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: 01 [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: 01 07 00 [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: 01 07 00 A3 00 00 00 00 00 00 C2 0C 78 [13:58:52]RasterBufferAndPrint [13:58:52]line [13:58:52]line [13:58:52]line [13:58:52]line [13:58:52]line [13:58:52]written 0, free lines is 3272 [13:58:52]MH_Cut [13:58:52]Write to MH i2c: D1 01 00 AA 00 01 7C [13:58:52]Write i2c OK [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: D1 [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: D1 01 00 [13:58:52]MH_I2C_Read... [13:58:52]Read from MH i2c: D1 01 00 AA 00 00 7B [13:58:52]Write to MH i2c: 01 00 00 AB 00 AB [13:58:52]Write i2c OK [13:58:52]MH_I2C_Read... [13:58:52]OFD Sender: No OFD packet to send [13:58:53]*** Cut start [13:58:53]*** Purtial cut [13:58:53]*** Stage 1: CUTSNS_PIN = 1 [13:58:53]Read from MH i2c: 01 [13:58:53]MH_I2C_Read... [13:58:53]*** Stop cut motor [13:58:53]*** Cut end [13:58:53]Read from MH i2c: 01 07 00 [13:58:53]MH_I2C_Read... [13:58:53]Read from MH i2c: 01 07 00 AB 00 00 00 00 00 00 FF 0F C0 [13:58:53]process_action close_receipt done [13:58:53]requested_data is exist [13:58:53]produce_requested_data [13:58:53]requested_item fm.sn is exist - process it [13:58:53]wFMCommunicate request_size=4 [13:58:53]MH_SAM_APDU [13:58:53]CAPDU: 80 11 00 00 [13:58:53]Write to MH i2c: E2 08 00 AC 00 80 11 00 00 00 00 00 00 26 [13:58:53]Write i2c OK [13:58:53]MH_I2C_Read... [13:58:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:53]Read from MH i2c: E2 [13:58:53]MH_I2C_Read... [13:58:53]Read from MH i2c: E2 17 00 [13:58:53]MH_I2C_Read... [13:58:53]Read from MH i2c: E2 17 00 AC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7C [13:58: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:58:53]wFMCommunicate OK [13:58:53]requested_item fd.num is exist - process it [13:58:53]SAM_PROTO_GetFieldsCounters [13:58:53]wFMCommunicate request_size=4 [13:58:53]MH_SAM_APDU [13:58:53]CAPDU: 80 13 00 00 [13:58:53]Write to MH i2c: E2 08 00 AD 00 80 13 00 00 00 00 00 00 29 [13:58:53]Write i2c OK [13:58:53]MH_I2C_Read... [13:58:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:54]Read from MH i2c: E2 [13:58:54]MH_I2C_Read... [13:58:54]Read from MH i2c: E2 62 00 [13:58:54]MH_I2C_Read... [13:58:54]Read from MH i2c: E2 62 00 AD 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 01 06 01 00 0E 04 04 00 63 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 AB [13:58: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 01 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:54]wFMCommunicate OK [13:58:54]SAM_PROTO_GetFieldsCounters done [13:58:54]requested_item shift.num is exist - process it [13:58:54]requested_item shift.opened is exist - process it [13:58:54]req_shift_opened [13:58:54]FM_GetShiftState [13:58:54]SAM_PROTO_GetShiftState [13:58:54]wFMCommunicate request_size=4 [13:58:54]MH_SAM_APDU [13:58:54]CAPDU: 80 13 01 00 [13:58:54]Write to MH i2c: E2 08 00 AE 00 80 13 01 00 00 00 00 00 2B [13:58:54]Write i2c OK [13:58:54]MH_I2C_Read... [13:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:54]Read from MH i2c: E2 [13:58:54]MH_I2C_Read... [13:58:54]Read from MH i2c: E2 0E 00 [13:58:54]MH_I2C_Read... [13:58:54]Read from MH i2c: E2 0E 00 AE 00 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F3 [13:58:54]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:58:54]wFMCommunicate OK [13:58:54]SAM_PROTO_GetShiftState done [13:58:54]FM_GetShiftState done [13:58:54]req_shift_opened done [13:58:54]requested_item shift.open_date is exist - process it [13:58:54]req_shift_open_date [13:58:54]req_shift_open_date done [13:58:54]produce_requested_data done [13:58:54]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67073,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [13:58:54]process_action_free close_receipt [13:58:54]json_value_free [13:58:54]json_value_free done [13:58:54]process_json_proto returns [13:58:54]Send response to host [13:58:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67073,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [13:58:54]free response buf [13:58:54]execute_script done [13:58:54]execute_script returns [13:58:54]free content buf [13:58:54]Sock 11.Close socket [13:58:54]Sock 11.Thread stoped [13:58:57]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:30]accept exits with 7 [13:59:30]New connection [13:59:30]New thread 3067628900 created [13:59:30]Thread 3067485540 joined [13:59:30]Waiting for new connection... [13:59:30] Sock 7.Parse request [13:59:30]Sock 7.Check first char [13:59:30]Sock 7.First char is OK [13:59:30]request: POST /json_proto HTTP/1.0 [13:59:30]Method: POST [13:59:30]URL: /json_proto [13:59:30]Method is POST - this is cgi request [13:59:30]url: /json_proto [13:59:30]query_string will be loaded in cgi processing [13:59:30]execute_cgi json_proto POST (null) [13:59:30]execute_cgi path=json_proto method=POST [13:59:30]POST find Content-Length [13:59:30]Host: 172.17.41.195:8080 [13:59:30]Content-Length: 679 [13:59:30]Content-Type: application/json [13:59:30] [13:59:30]POST finish read [13:59:30]Found Content-Length = 679 [13:59:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506952", "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.490, "sum" : 1530.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1530.00, "total" : 1530.00, "payments": [ { "type": 0, "sum" : 1530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:30]execute_script... [13:59: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)506952", "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.490, "sum" : 1530.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1530.00, "total" : 1530.00, "payments": [ { "type": 0, "sum" : 1530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:30]POST & json_proto [13:59:30]process_json_proto [13:59:30]json parsed OK: [13:59:30]protocol is kg_v1.0 [13:59:30]action value=close_receipt [13:59:30]process_action close_receipt [13:59:30]cmd_close_receipt [13:59:30]MH_GetDate [13:59:30]Write to MH i2c: F0 00 00 AF 00 9E [13:59:30]Write i2c OK [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: F0 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: F0 09 00 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: F0 09 00 AF 00 00 42 6E 43 66 FC 21 6F 64 F0 [13:59:30]GetLastDocTimeStamp 1715695130 [13:59:30]current date 1715695170 [13:59:30]FM_GetShiftState [13:59:30]SAM_PROTO_GetShiftState [13:59:30]wFMCommunicate request_size=4 [13:59:30]MH_SAM_APDU [13:59:30]CAPDU: 80 13 01 00 [13:59:30]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [13:59:30]Write i2c OK [13:59:30]MH_I2C_Read... [13:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:30]Read from MH i2c: E2 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 0E 00 [13:59:30]MH_I2C_Read... [13:59:30]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F5 [13:59:30]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:59:30]wFMCommunicate OK [13:59:30]SAM_PROTO_GetShiftState done [13:59:30]FM_GetShiftState done [13:59:30]opened in 1715646054 [13:59:30]opened+sec_in_day 1715732454 [13:59:30]quantity*price = 153060 [13:59:30]sum+1 = 153061 [13:59:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 1530.00 Внесено: 1530.00 СДАЧА: 0.00 НСП 1% : 13.54 НДС 12% : 162.54 Наличными: 1530.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 81 14.05.2024 13:59 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67074 ФПД: 10383442142903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T135930&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67074&fm=10383442142903&tin=02508201610067®Number=0000000000091845&sum=153000 [13:59:31]StoreToDocumentArchive [13:59:31]shift 355 fd 67074 [13:59:31]save to /storage/0355/doc_00067074 [13:59:31]save last doc name /storage/0355/doc_00067074 to /storage/kkm_last_doc_name [13:59:31]save OK [13:59:31]Clear old archive folders... [13:59:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:59:31]tlvbuf is 008075D0 [13:59:31]SAM_PROTO_ClearQueue [13:59:31]wFMCommunicate request_size=4 [13:59:31]MH_SAM_APDU [13:59:31]CAPDU: 80 09 00 00 [13:59:31]Write to MH i2c: E2 08 00 BD 00 80 09 00 00 00 00 00 00 2F [13:59:31]Write i2c OK [13:59:31]MH_I2C_Read... [13:59:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:31]Read from MH i2c: E2 [13:59:31]MH_I2C_Read... [13:59:31]Read from MH i2c: E2 03 00 [13:59:31]MH_I2C_Read... [13:59:31]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [13:59:31]RAPDU: 90 00 [13:59:31]wFMCommunicate OK [13:59:31]SAM_PROTO_ClearQueue done [13:59:31]KKMCreateOFDPacket [13:59:31]OFDProtocolAddRootSTLVToBuf [13:59:31]FM_MakeSignedData [13:59:31]FM_MakeSignedData [13:59:31]SAM_PROTO_SignData [13:59:31]wFMCommunicate request_size=4 [13:59:31]MH_SAM_APDU [13:59:31]CAPDU: 80 0D 01 02 [13:59:31]Write to MH i2c: E2 08 00 BE 00 80 0D 01 02 00 00 00 00 37 [13:59:31]Write i2c OK [13:59:31]MH_I2C_Read... [13:59:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:31]Read from MH i2c: E2 [13:59:31]MH_I2C_Read... [13:59:31]Read from MH i2c: E2 03 00 [13:59:31]MH_I2C_Read... [13:59:31]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [13:59:31]RAPDU: 90 00 [13:59:31]wFMCommunicate OK [13:59:31]wFMCommunicate request_size=255 [13:59:31]MH_SAM_APDU [13:59:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 50 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E4 55 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 55 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 3F 00 00 00 00 07 04 06 00 A8 55 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 42 6E 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 02 06 01 00 35 04 06 00 09 71 95 61 [13:59:31]Write to MH i2c: E2 02 01 BF 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 50 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E4 55 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 55 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 3F 00 00 00 00 07 04 06 00 A8 55 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 42 6E 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 02 06 01 00 35 04 06 00 09 71 95 61 00 00 0A [13:59:31]Write i2c OK [13:59:31]MH_I2C_Read... [13:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:31]Read from MH i2c: E2 [13:59:31]MH_I2C_Read... [13:59:31]Read from MH i2c: E2 03 00 [13:59:31]MH_I2C_Read... [13:59:31]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [13:59:31]RAPDU: 90 00 [13:59:31]wFMCommunicate OK [13:59:31]wFMCommunicate request_size=7 [13:59:31]MH_SAM_APDU [13:59:31]CAPDU: 80 0D 02 02 02 66 B7 [13:59:31]Write to MH i2c: E2 0A 00 C0 00 80 0D 02 02 02 00 66 B7 00 00 5B [13:59:31]Write i2c OK [13:59:31]MH_I2C_Read... [13:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:31]Read from MH i2c: E2 [13:59:31]MH_I2C_Read... [13:59:31]Read from MH i2c: E2 03 00 [13:59:31]MH_I2C_Read... [13:59:31]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [13:59:31]RAPDU: 90 00 [13:59:31]wFMCommunicate OK [13:59:31]wFMCommunicate request_size=4 [13:59:31]MH_SAM_APDU [13:59:31]CAPDU: 80 0D 03 02 [13:59:31]Write to MH i2c: E2 08 00 C1 00 80 0D 03 02 00 00 00 00 3C [13:59:31]Write i2c OK [13:59:31]MH_I2C_Read... [13:59:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:31]Read from MH i2c: E2 [13:59:31]MH_I2C_Read... [13:59:31]Read from MH i2c: E2 0B 00 [13:59:31]MH_I2C_Read... [13:59:31]Read from MH i2c: E2 0B 00 C1 00 00 D9 E9 8C 19 E6 87 24 F4 90 00 29 [13:59:31]RAPDU: D9 E9 8C 19 E6 87 24 F4 90 00 [13:59:31]wFMCommunicate OK [13:59:31]SAM_PROTO_SignData done [13:59:31]FM_MakeSignedData done [13:59:31]CreateOFDProtocolMessage [13:59:31]wFMCommunicate request_size=4 [13:59:31]MH_SAM_APDU [13:59:31]CAPDU: 80 11 00 00 [13:59:31]Write to MH i2c: E2 08 00 C2 00 80 11 00 00 00 00 00 00 3C [13:59:31]Write i2c OK [13:59:31]MH_I2C_Read... [13:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:31]Read from MH i2c: E2 [13:59:31]MH_I2C_Read... [13:59:31]Read from MH i2c: E2 17 00 [13:59:31]MH_I2C_Read... [13:59:31]Read from MH i2c: E2 17 00 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 92 [13:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:59:31]wFMCommunicate OK [13:59:31]CreateOFDProtocolMessage done [13:59:31]OFDSenderStorePacket 67074 [13:59:31]StoreOFDPacket docnum=67074 [13:59: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 D7 61 04 01 04 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 50 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E4 55 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 55 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 3F 00 00 00 00 07 04 06 00 A8 55 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 42 6E 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 02 06 01 00 35 04 06 00 09 71 95 61 66 B7 D9 E9 8C 19 E6 87 24 F4 [13:59:31]CheckFolder [13:59:31]dirname=/storage/ofd_packets [13:59:31]CheckFolder done [13:59:31]ProducePacketName [13:59:31]name=ofd_packets/00067074 [13:59:31]NVStorageSaveData ofd_packets/00067074 [13:59:31]File name is /storage/ofd_packets/00067074 [13:59:31]Write 298 bytes [13:59:31]NVStorageSaveData done [13:59:31]OFDSenderStorePacket done [13:59:31]KKMCreateOFDPacket done [13:59:31]NVStorageSaveData kkm_last_timestamp [13:59:31]File name is /storage/kkm_last_timestamp [13:59:31]Write 4 bytes [13:59:31]NVStorageSaveData done [13:59:31]ExternCall_PrintAddStr [13:59:31]wPrintStart [13:59:31]Write to MH i2c: 01 00 00 C3 00 C3 [13:59:31]Write i2c OK [13:59:31]MH_I2C_Read... [13:59:31]Read from MH i2c: 01 [13:59:31]MH_I2C_Read... [13:59:31]Read from MH i2c: 01 07 00 [13:59:31]MH_I2C_Read... [13:59:31]Read from MH i2c: 01 07 00 C3 00 00 00 00 00 00 FF 0F D8 [13:59:31]RasterBufferAndPrint [13:59:31]line Счет N : (1)506952 [13:59:31]line ИНН: 02508201610067 [13:59:31]line Контрольно-Кассовый Чек [13:59:31]line ПРОДАЖА [13:59:31]line ТРК (МРК, ГНК) : 31 [13:59:31]line Товар: 2710194210 [13:59:31]line ДТ-К-5 [13:59:31]line 20.490 * 74.70 [13:59:31]line = 1530.60 [13:59:31]line НДС 12% НСП 1% [13:59:31]line > о реализуемом товаре [13:59:31]line ОКРУГЛЕНИЕ: -0.60 [13:59:31]line ИТОГО: 1530.00 [13:59:31]line Внесено: 1530.00 [13:59:31]line СДАЧА: 0.00 [13:59:31]line НСП 1% : 13.54 [13:59:31]line НДС 12% : 162.54 [13:59:31]line Наличными: 1530.00 [13:59:31]line Безнал.: 0.00 [13:59:31]line Место: АЗС № 91 "Партнер Нефть" [13:59:31]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [13:59:31]line СНО: Общий режим [13:59:31]line Чек 81 14.05.2024 13:59 [13:59:31]line Смена: 355 ФФД: 1.0 [13:59:31]line ЗНМ: 0300000119 [13:59:31]line РНМ: 0000000000091845 [13:59:31]line Версия ККМ: 001 [13:59:31]line ФМ: 0000000000871829 [13:59:31]line ФД: 67074 [13:59:31]line ФПД: 10383442142903 [13:59:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T135930&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67074&fm=10383442142903&tin=02508201610067®Number=0000000000091845&sum=153000 [13:59:32]OFD Sender: Processing packet 67074 [packets to send 35, broken 34] [13:59:32]ProducePacketName [13:59:32]name=ofd_packets/00067074 [13:59:32]OFD Sender: To server: pG, [13:59:32]CommunicateWithHost lk.salyk.kg:30040 [13:59:32]ConnectInit lk.salyk.kg [13:59:32]written 0, free lines is 4095 [13:59:32]Connected sock=9 [13:59:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 D7 61 04 01 04 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 50 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E4 55 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 55 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 3F 00 00 00 00 07 04 06 00 A8 55 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 42 6E 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 02 06 01 00 35 04 06 00 09 71 95 61 66 B7 D9 E9 8C 19 E6 87 24 F4 [13:59: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 44 49 47 00 1F 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 02 06 01 00 F4 03 04 00 22 16 43 66 B6 04 01 00 00 21 C7 95 BE E6 B1 DC A4 [13:59:32]CommunicateWithHost err = 0 [13:59:32]CheckOFDResponse [13:59:32]1017 (14) - 77093643461234 [13:59:32]1041 (16) - 0000000000871829 [13:59:32]1040 (4) - 67074 [13:59:32]1012 (4) - 14.05.2024 07:43 [13:59:32]1206 (1) - 0 [13:59:32]OFD Sender: Remove packet 67074 [13:59:32]ProducePacketName [13:59:32]name=ofd_packets/00067074 [13:59:32]NVStorageDeleteData [13:59:32]Write to MH i2c: 01 00 00 ED 00 ED [13:59:32]Write i2c OK [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: 01 [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: 01 07 00 [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 C5 0C C5 [13:59:32]RasterBufferAndPrint [13:59:32]line [13:59:32]line [13:59:32]line [13:59:32]line [13:59:32]line [13:59:32]written 0, free lines is 3275 [13:59:32]MH_Cut [13:59:32]Write to MH i2c: D1 01 00 F4 00 01 C6 [13:59:32]Write i2c OK [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: D1 [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: D1 01 00 [13:59:32]MH_I2C_Read... [13:59:32]Read from MH i2c: D1 01 00 F4 00 00 C5 [13:59:32]Write to MH i2c: 01 00 00 F5 00 F5 [13:59:32]Write i2c OK [13:59:32]MH_I2C_Read... [13:59:32]OFD Sender: No OFD packet to send [13:59:33]*** Cut start [13:59:33]*** Purtial cut [13:59:33]*** CUTSNS_PIN = 0 [13:59:33]*** Stage 1: CUTSNS_PIN = 1 [13:59:35]Read from MH i2c: 01 [13:59:35]MH_I2C_Read... [13:59:35]*** Stop cut motor [13:59:35]*** Cut end [13:59:35]Read from MH i2c: 01 07 00 [13:59:35]MH_I2C_Read... [13:59:35]Read from MH i2c: 01 07 00 F5 00 00 00 00 00 00 FF 0F 0A [13:59:35]process_action close_receipt done [13:59:35]requested_data is exist [13:59:35]produce_requested_data [13:59:35]requested_item fm.sn is exist - process it [13:59:35]wFMCommunicate request_size=4 [13:59:35]MH_SAM_APDU [13:59:35]CAPDU: 80 11 00 00 [13:59:35]Write to MH i2c: E2 08 00 F6 00 80 11 00 00 00 00 00 00 70 [13:59:35]Write i2c OK [13:59:35]MH_I2C_Read... [13:59:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:35]Read from MH i2c: E2 [13:59:35]MH_I2C_Read... [13:59:35]Read from MH i2c: E2 17 00 [13:59:35]MH_I2C_Read... [13:59:35]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 [13:59:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [13:59:35]wFMCommunicate OK [13:59:35]requested_item fd.num is exist - process it [13:59:35]SAM_PROTO_GetFieldsCounters [13:59:35]wFMCommunicate request_size=4 [13:59:35]MH_SAM_APDU [13:59:35]CAPDU: 80 13 00 00 [13:59:35]Write to MH i2c: E2 08 00 F7 00 80 13 00 00 00 00 00 00 73 [13:59:35]Write i2c OK [13:59:35]MH_I2C_Read... [13:59:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:35]Read from MH i2c: E2 [13:59:35]MH_I2C_Read... [13:59:35]Read from MH i2c: E2 62 00 [13:59:35]MH_I2C_Read... [13:59:35]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 02 06 01 00 0E 04 04 00 63 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 F9 [13:59: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 02 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:35]wFMCommunicate OK [13:59:35]SAM_PROTO_GetFieldsCounters done [13:59:35]requested_item shift.num is exist - process it [13:59:35]requested_item shift.opened is exist - process it [13:59:35]req_shift_opened [13:59:35]FM_GetShiftState [13:59:35]SAM_PROTO_GetShiftState [13:59:35]wFMCommunicate request_size=4 [13:59:35]MH_SAM_APDU [13:59:35]CAPDU: 80 13 01 00 [13:59:35]Write to MH i2c: E2 08 00 F8 00 80 13 01 00 00 00 00 00 75 [13:59:35]Write i2c OK [13:59:35]MH_I2C_Read... [13:59:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:35]Read from MH i2c: E2 [13:59:35]MH_I2C_Read... [13:59:35]Read from MH i2c: E2 0E 00 [13:59:35]MH_I2C_Read... [13:59:35]Read from MH i2c: E2 0E 00 F8 00 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 3D [13:59:35]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [13:59:35]wFMCommunicate OK [13:59:35]SAM_PROTO_GetShiftState done [13:59:35]FM_GetShiftState done [13:59:35]req_shift_opened done [13:59:35]requested_item shift.open_date is exist - process it [13:59:35]req_shift_open_date [13:59:35]req_shift_open_date done [13:59:35]produce_requested_data done [13:59:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67074,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [13:59:35]process_action_free close_receipt [13:59:35]json_value_free [13:59:35]json_value_free done [13:59:35]process_json_proto returns [13:59:35]Send response to host [13:59:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67074,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [13:59:35]free response buf [13:59:35]execute_script done [13:59:35]execute_script returns [13:59:35]free content buf [13:59:35]Sock 7.Close socket [13:59:35]Sock 7.Thread stoped [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:02]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:10]recv_with_timeout no data received [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:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:58]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]OFD Sender: No OFD packet to send [14:08:13]OFD Sender: No OFD packet to send [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:28]OFD Sender: No OFD packet to send [14:08:33]OFD Sender: No OFD packet to send [14:08:36]accept exits with 10 [14:08:36]New connection [14:08:36]New thread 3067485540 created [14:08:36]Thread 3067628900 joined [14:08:36]Waiting for new connection... [14:08:36] Sock 10.Parse request [14:08:36]Sock 10.Check first char [14:08:36]Sock 10.First char is OK [14:08:36]request: POST /json_proto HTTP/1.0 [14:08:36]Method: POST [14:08:36]URL: /json_proto [14:08:36]Method is POST - this is cgi request [14:08:36]url: /json_proto [14:08:36]query_string will be loaded in cgi processing [14:08:36]execute_cgi json_proto POST (null) [14:08:36]execute_cgi path=json_proto method=POST [14:08:36]POST find Content-Length [14:08:36]Host: 172.17.41.195:8080 [14:08:36]Content-Length: 674 [14:08:36]Content-Type: application/json [14:08:36] [14:08:36]POST finish read [14:08:36]Found Content-Length = 674 [14:08:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506954", "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" : 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:08:36]execute_script... [14:08: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)506954", "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" : 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:08:36]POST & json_proto [14:08:36]process_json_proto [14:08:36]json parsed OK: [14:08:36]protocol is kg_v1.0 [14:08:36]action value=close_receipt [14:08:36]process_action close_receipt [14:08:36]cmd_close_receipt [14:08:36]MH_GetDate [14:08:36]Write to MH i2c: F0 00 00 F9 00 E8 [14:08:36]Write i2c OK [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: F0 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: F0 09 00 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: F0 09 00 F9 00 00 64 70 43 66 FC 21 6F 64 5E [14:08:36]GetLastDocTimeStamp 1715695170 [14:08:36]current date 1715695716 [14:08:36]FM_GetShiftState [14:08:36]SAM_PROTO_GetShiftState [14:08:36]wFMCommunicate request_size=4 [14:08:36]MH_SAM_APDU [14:08:36]CAPDU: 80 13 01 00 [14:08:36]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [14:08:36]Write i2c OK [14:08:36]MH_I2C_Read... [14:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:36]Read from MH i2c: E2 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: E2 0E 00 [14:08:36]MH_I2C_Read... [14:08:36]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 3F [14:08:36]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:08:36]wFMCommunicate OK [14:08:36]SAM_PROTO_GetShiftState done [14:08:36]FM_GetShiftState done [14:08:36]opened in 1715646054 [14:08:36]opened+sec_in_day 1715732454 [14:08:36]quantity*price = 30029 [14:08:36]sum+1 = 30030 [14:08:36]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 СНО: Общий режим Чек 82 14.05.2024 14:08 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67075 ФПД: 240452633961294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T140836&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67075&fm=240452633961294&tin=02508201610067®Number=0000000000091845&sum=30000 [14:08:37]StoreToDocumentArchive [14:08:37]shift 355 fd 67075 [14:08:37]save to /storage/0355/doc_00067075 [14:08:37]save last doc name /storage/0355/doc_00067075 to /storage/kkm_last_doc_name [14:08:37]save OK [14:08:37]Clear old archive folders... [14:08:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:08:37]tlvbuf is 00790840 [14:08:37]SAM_PROTO_ClearQueue [14:08:37]wFMCommunicate request_size=4 [14:08:37]MH_SAM_APDU [14:08:37]CAPDU: 80 09 00 00 [14:08:37]Write to MH i2c: E2 08 00 07 01 80 09 00 00 00 00 00 00 7A [14:08:37]Write i2c OK [14:08:37]MH_I2C_Read... [14:08:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:37]Read from MH i2c: E2 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 03 00 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [14:08:37]RAPDU: 90 00 [14:08:37]wFMCommunicate OK [14:08:37]SAM_PROTO_ClearQueue done [14:08:37]KKMCreateOFDPacket [14:08:37]OFDProtocolAddRootSTLVToBuf [14:08:37]FM_MakeSignedData [14:08:37]FM_MakeSignedData [14:08:37]SAM_PROTO_SignData [14:08:37]wFMCommunicate request_size=4 [14:08:37]MH_SAM_APDU [14:08:37]CAPDU: 80 0D 01 02 [14:08:37]Write to MH i2c: E2 08 00 08 01 80 0D 01 02 00 00 00 00 82 [14:08:37]Write i2c OK [14:08:37]MH_I2C_Read... [14:08:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:37]Read from MH i2c: E2 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 03 00 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [14:08:37]RAPDU: 90 00 [14:08:37]wFMCommunicate OK [14:08:37]wFMCommunicate request_size=255 [14:08:37]MH_SAM_APDU [14:08: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 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 52 00 00 00 F4 03 04 00 64 70 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 03 06 01 00 35 04 06 00 DA B0 BD D5 [14:08:37]Write to MH i2c: E2 02 01 09 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 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 52 00 00 00 F4 03 04 00 64 70 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 03 06 01 00 35 04 06 00 DA B0 BD D5 00 00 E3 [14:08:37]Write i2c OK [14:08:37]MH_I2C_Read... [14:08:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:37]Read from MH i2c: E2 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 03 00 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [14:08:37]RAPDU: 90 00 [14:08:37]wFMCommunicate OK [14:08:37]wFMCommunicate request_size=7 [14:08:37]MH_SAM_APDU [14:08:37]CAPDU: 80 0D 02 02 02 23 4E [14:08:37]Write to MH i2c: E2 0A 00 0A 01 80 0D 02 02 02 00 23 4E 00 00 FA [14:08:37]Write i2c OK [14:08:37]MH_I2C_Read... [14:08:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:37]Read from MH i2c: E2 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 03 00 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [14:08:37]RAPDU: 90 00 [14:08:37]wFMCommunicate OK [14:08:37]wFMCommunicate request_size=4 [14:08:37]MH_SAM_APDU [14:08:37]CAPDU: 80 0D 03 02 [14:08:37]Write to MH i2c: E2 08 00 0B 01 80 0D 03 02 00 00 00 00 87 [14:08:37]Write i2c OK [14:08:37]MH_I2C_Read... [14:08:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:37]Read from MH i2c: E2 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 0B 00 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 0B 00 0B 01 00 51 E0 8C 7B 7C B0 86 6B 90 00 DD [14:08:37]RAPDU: 51 E0 8C 7B 7C B0 86 6B 90 00 [14:08:37]wFMCommunicate OK [14:08:37]SAM_PROTO_SignData done [14:08:37]FM_MakeSignedData done [14:08:37]CreateOFDProtocolMessage [14:08:37]wFMCommunicate request_size=4 [14:08:37]MH_SAM_APDU [14:08:37]CAPDU: 80 11 00 00 [14:08:37]Write to MH i2c: E2 08 00 0C 01 80 11 00 00 00 00 00 00 87 [14:08:37]Write i2c OK [14:08:37]MH_I2C_Read... [14:08:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:37]Read from MH i2c: E2 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 17 00 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 17 00 0C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DD [14:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:08:37]wFMCommunicate OK [14:08:37]CreateOFDProtocolMessage done [14:08:37]OFDSenderStorePacket 67075 [14:08:37]StoreOFDPacket docnum=67075 [14:08: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 3F 5E 04 01 90 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 52 00 00 00 F4 03 04 00 64 70 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 03 06 01 00 35 04 06 00 DA B0 BD D5 23 4E 51 E0 8C 7B 7C B0 86 6B [14:08:37]CheckFolder [14:08:37]dirname=/storage/ofd_packets [14:08:37]CheckFolder done [14:08:37]ProducePacketName [14:08:37]name=ofd_packets/00067075 [14:08:37]NVStorageSaveData ofd_packets/00067075 [14:08:37]File name is /storage/ofd_packets/00067075 [14:08:37]Write 298 bytes [14:08:37]NVStorageSaveData done [14:08:37]OFDSenderStorePacket done [14:08:37]KKMCreateOFDPacket done [14:08:37]NVStorageSaveData kkm_last_timestamp [14:08:37]File name is /storage/kkm_last_timestamp [14:08:37]Write 4 bytes [14:08:37]NVStorageSaveData done [14:08:37]ExternCall_PrintAddStr [14:08:37]wPrintStart [14:08:37]Write to MH i2c: 01 00 00 0D 01 0E [14:08:37]Write i2c OK [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: 01 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: 01 07 00 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: 01 07 00 0D 01 00 00 00 00 00 FF 0F 23 [14:08:37]RasterBufferAndPrint [14:08:37]line Счет N : (1)506954 [14:08:37]line ИНН: 02508201610067 [14:08:37]line Контрольно-Кассовый Чек [14:08:37]line ПРОДАЖА [14:08:37]line ТРК (МРК, ГНК) : 31 [14:08:37]line Товар: 2710194210 [14:08:37]line ДТ-К-5 [14:08:37]line 4.020 * 74.70 [14:08:37]line = 300.29 [14:08:37]line НДС 12% НСП 1% [14:08:37]line > о реализуемом товаре [14:08:37]line ОКРУГЛЕНИЕ: -0.29 [14:08:37]line ИТОГО: 300.00 [14:08:37]line Внесено: 300.00 [14:08:37]line СДАЧА: 0.00 [14:08:37]line НСП 1% : 2.66 [14:08:37]line НДС 12% : 31.89 [14:08:37]line Наличными: 300.00 [14:08:37]line Безнал.: 0.00 [14:08:37]line Место: АЗС № 91 "Партнер Нефть" [14:08:37]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:08:37]line СНО: Общий режим [14:08:37]line Чек 82 14.05.2024 14:08 [14:08:37]line Смена: 355 ФФД: 1.0 [14:08:37]line ЗНМ: 0300000119 [14:08:37]line РНМ: 0000000000091845 [14:08:37]line Версия ККМ: 001 [14:08:37]line ФМ: 0000000000871829 [14:08:37]line ФД: 67075 [14:08:37]line ФПД: 240452633961294 [14:08:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T140836&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67075&fm=240452633961294&tin=02508201610067®Number=0000000000091845&sum=30000 [14:08:38]OFD Sender: Processing packet 67075 [packets to send 35, broken 34] [14:08:38]ProducePacketName [14:08:38]name=ofd_packets/00067075 [14:08:38]OFD Sender: To server: pG, [14:08:38]CommunicateWithHost lk.salyk.kg:30040 [14:08:38]ConnectInit lk.salyk.kg [14:08:38]written 0, free lines is 4095 [14:08:38]Write to MH i2c: 01 00 00 37 01 38 [14:08:38]Write i2c OK [14:08:38]MH_I2C_Read... [14:08:38]Read from MH i2c: 01 [14:08:38]MH_I2C_Read... [14:08:38]Read from MH i2c: 01 07 00 [14:08:38]MH_I2C_Read... [14:08:38]Read from MH i2c: 01 07 00 37 01 00 00 00 00 00 BE 0C 09 [14:08:38]RasterBufferAndPrint [14:08:38]line [14:08:38]line [14:08:38]line [14:08:38]line [14:08:38]line [14:08:38]written 0, free lines is 3269 [14:08:38]MH_Cut [14:08:38]Write to MH i2c: D1 01 00 3E 01 01 11 [14:08:38]Write i2c OK [14:08:38]MH_I2C_Read... [14:08:38]Read from MH i2c: D1 [14:08:38]MH_I2C_Read... [14:08:38]Read from MH i2c: D1 01 00 [14:08:38]MH_I2C_Read... [14:08:38]Read from MH i2c: D1 01 00 3E 01 00 10 [14:08:38]Write to MH i2c: 01 00 00 3F 01 40 [14:08:38]Write i2c OK [14:08:38]MH_I2C_Read... [14:08:39]*** Cut start [14:08:39]*** Purtial cut [14:08:39]*** Stage 1: CUTSNS_PIN = 1 [14:08:39]Read from MH i2c: 01 [14:08:39]MH_I2C_Read... [14:08:39]*** Stop cut motor [14:08:39]*** Cut end [14:08:39]Read from MH i2c: 01 07 00 [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: 01 07 00 3F 01 00 00 00 00 00 FF 0F 55 [14:08:39]process_action close_receipt done [14:08:39]requested_data is exist [14:08:39]produce_requested_data [14:08:39]requested_item fm.sn is exist - process it [14:08:39]wFMCommunicate request_size=4 [14:08:39]MH_SAM_APDU [14:08:39]CAPDU: 80 11 00 00 [14:08:39]Write to MH i2c: E2 08 00 40 01 80 11 00 00 00 00 00 00 BB [14:08:39]Write i2c OK [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: E2 [14:08:39]MH_I2C_Read... [14:08:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:39]Read from MH i2c: E2 17 00 [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: E2 17 00 40 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 11 [14:08:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:08:39]wFMCommunicate OK [14:08:39]requested_item fd.num is exist - process it [14:08:39]SAM_PROTO_GetFieldsCounters [14:08:39]wFMCommunicate request_size=4 [14:08:39]MH_SAM_APDU [14:08:39]CAPDU: 80 13 00 00 [14:08:39]Write to MH i2c: E2 08 00 41 01 80 13 00 00 00 00 00 00 BE [14:08:39]Write i2c OK [14:08:39]MH_I2C_Read... [14:08:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:39]Read from MH i2c: E2 [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: E2 62 00 [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: E2 62 00 41 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 03 06 01 00 0E 04 04 00 63 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 48 [14:08: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 03 06 01 00 0E 04 04 00 63 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 [14:08:39]wFMCommunicate OK [14:08:39]SAM_PROTO_GetFieldsCounters done [14:08:39]requested_item shift.num is exist - process it [14:08:39]requested_item shift.opened is exist - process it [14:08:39]req_shift_opened [14:08:39]FM_GetShiftState [14:08:39]SAM_PROTO_GetShiftState [14:08:39]wFMCommunicate request_size=4 [14:08:39]MH_SAM_APDU [14:08:39]CAPDU: 80 13 01 00 [14:08:39]Write to MH i2c: E2 08 00 42 01 80 13 01 00 00 00 00 00 C0 [14:08:39]Write i2c OK [14:08:39]MH_I2C_Read... [14:08:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:39]Read from MH i2c: E2 [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: E2 0E 00 [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: E2 0E 00 42 01 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 88 [14:08:39]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:08:39]wFMCommunicate OK [14:08:39]SAM_PROTO_GetShiftState done [14:08:39]FM_GetShiftState done [14:08:39]req_shift_opened done [14:08:39]requested_item shift.open_date is exist - process it [14:08:39]req_shift_open_date [14:08:39]req_shift_open_date done [14:08:39]produce_requested_data done [14:08:39]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67075,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [14:08:39]process_action_free close_receipt [14:08:39]json_value_free [14:08:39]json_value_free done [14:08:39]process_json_proto returns [14:08:39]Send response to host [14:08:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67075,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [14:08:39]free response buf [14:08:39]execute_script done [14:08:39]execute_script returns [14:08:39]free content buf [14:08:39]Sock 10.Close socket [14:08:39]Sock 10.Thread stoped [14:08:43]Connected sock=11 [14:08: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 3F 5E 04 01 90 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 52 00 00 00 F4 03 04 00 64 70 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 03 06 01 00 35 04 06 00 DA B0 BD D5 23 4E 51 E0 8C 7B 7C B0 86 6B [14:08: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 86 2B 47 00 FF B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 03 06 01 00 F4 03 04 00 49 18 43 66 B6 04 01 00 00 E0 12 10 AE B4 15 7B A8 [14:08:43]CommunicateWithHost err = 0 [14:08:43]CheckOFDResponse [14:08:43]1017 (14) - 77093643461234 [14:08:43]1041 (16) - 0000000000871829 [14:08:43]1040 (4) - 67075 [14:08:43]1012 (4) - 14.05.2024 07:52 [14:08:43]1206 (1) - 0 [14:08:43]OFD Sender: Remove packet 67075 [14:08:43]ProducePacketName [14:08:43]name=ofd_packets/00067075 [14:08:43]NVStorageDeleteData [14:08:44]OFD Sender: No OFD packet to send [14:08:49]OFD Sender: No OFD packet to send [14:08:54]OFD Sender: No OFD packet to send [14:08:59]OFD Sender: No OFD packet to send [14:09:04]OFD Sender: No OFD packet to send [14:09:09]OFD Sender: No OFD packet to send [14:09:14]OFD Sender: No OFD packet to send [14:09:19]OFD Sender: No OFD packet to send [14:09:24]OFD Sender: No OFD packet to send [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:39]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:40]recv_with_timeout no data received [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:40]accept exits with 9 [14:12:40]New connection [14:12:40]New thread 3067628900 created [14:12:40]Thread 3067485540 joined [14:12:40]Waiting for new connection... [14:12:40] Sock 9.Parse request [14:12:40]Sock 9.Check first char [14:12:40]Sock 9.First char is OK [14:12:40]request: POST /json_proto HTTP/1.0 [14:12:40]Method: POST [14:12:40]URL: /json_proto [14:12:40]Method is POST - this is cgi request [14:12:40]url: /json_proto [14:12:40]query_string will be loaded in cgi processing [14:12:40]execute_cgi json_proto POST (null) [14:12:40]execute_cgi path=json_proto method=POST [14:12:40]POST find Content-Length [14:12:40]Host: 172.17.41.195:8080 [14:12:40]Content-Length: 682 [14:12:40]Content-Type: application/json [14:12:40] [14:12:40]POST finish read [14:12:40]Found Content-Length = 682 [14:12:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506955", "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" ] } } [14:12:40]execute_script... [14:12: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)506955", "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" ] } } [14:12:40]POST & json_proto [14:12:40]process_json_proto [14:12:40]json parsed OK: [14:12:40]protocol is kg_v1.0 [14:12:40]action value=close_receipt [14:12:40]process_action close_receipt [14:12:40]cmd_close_receipt [14:12:40]MH_GetDate [14:12:40]Write to MH i2c: F0 00 00 43 01 33 [14:12:40]Write i2c OK [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: F0 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: F0 09 00 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: F0 09 00 43 01 00 58 71 43 66 FC 21 6F 64 9E [14:12:40]GetLastDocTimeStamp 1715695716 [14:12:40]current date 1715695960 [14:12:40]FM_GetShiftState [14:12:40]SAM_PROTO_GetShiftState [14:12:40]wFMCommunicate request_size=4 [14:12:40]MH_SAM_APDU [14:12:40]CAPDU: 80 13 01 00 [14:12:40]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [14:12:40]Write i2c OK [14:12:40]MH_I2C_Read... [14:12:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:40]Read from MH i2c: E2 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: E2 0E 00 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 8A [14:12:40]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:12:40]wFMCommunicate OK [14:12:40]SAM_PROTO_GetShiftState done [14:12:40]FM_GetShiftState done [14:12:40]opened in 1715646054 [14:12:40]opened+sec_in_day 1715732454 [14:12:40]quantity*price = 100066 [14:12:40]sum+1 = 100067 [14:12:40]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 СНО: Общий режим Чек 83 14.05.2024 14:12 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67076 ФПД: 169743341288902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T141240&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67076&fm=169743341288902&tin=02508201610067®Number=0000000000091845&sum=100000 [14:12:41]StoreToDocumentArchive [14:12:41]shift 355 fd 67076 [14:12:41]save to /storage/0355/doc_00067076 [14:12:41]save last doc name /storage/0355/doc_00067076 to /storage/kkm_last_doc_name [14:12:41]save OK [14:12:41]Clear old archive folders... [14:12:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:12:41]tlvbuf is 00807640 [14:12:41]SAM_PROTO_ClearQueue [14:12:41]wFMCommunicate request_size=4 [14:12:41]MH_SAM_APDU [14:12:41]CAPDU: 80 09 00 00 [14:12:41]Write to MH i2c: E2 08 00 51 01 80 09 00 00 00 00 00 00 C4 [14:12:41]Write i2c OK [14:12:41]MH_I2C_Read... [14:12:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:41]Read from MH i2c: E2 [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: E2 03 00 [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [14:12:41]RAPDU: 90 00 [14:12:41]wFMCommunicate OK [14:12:41]SAM_PROTO_ClearQueue done [14:12:41]KKMCreateOFDPacket [14:12:41]OFDProtocolAddRootSTLVToBuf [14:12:41]FM_MakeSignedData [14:12:41]FM_MakeSignedData [14:12:41]SAM_PROTO_SignData [14:12:41]wFMCommunicate request_size=4 [14:12:41]MH_SAM_APDU [14:12:41]CAPDU: 80 0D 01 02 [14:12:41]Write to MH i2c: E2 08 00 52 01 80 0D 01 02 00 00 00 00 CC [14:12:41]Write i2c OK [14:12:41]MH_I2C_Read... [14:12:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:41]Read from MH i2c: E2 [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: E2 03 00 [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [14:12:41]RAPDU: 90 00 [14:12:41]wFMCommunicate OK [14:12:41]wFMCommunicate request_size=255 [14:12:41]MH_SAM_APDU [14:12:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 58 71 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 04 06 01 00 35 04 06 00 9A [14:12:41]Write to MH i2c: E2 02 01 53 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 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 53 00 00 00 F4 03 04 00 58 71 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 04 06 01 00 35 04 06 00 9A 00 00 73 [14:12:41]Write i2c OK [14:12:41]MH_I2C_Read... [14:12:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:41]Read from MH i2c: E2 [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: E2 03 00 [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [14:12:41]RAPDU: 90 00 [14:12:41]wFMCommunicate OK [14:12:41]wFMCommunicate request_size=10 [14:12:41]MH_SAM_APDU [14:12:41]CAPDU: 80 0D 02 02 05 61 73 8F 7D C6 [14:12:41]Write to MH i2c: E2 0D 00 54 01 80 0D 02 02 05 00 61 73 8F 7D C6 00 00 7F [14:12:41]Write i2c OK [14:12:41]MH_I2C_Read... [14:12:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:41]Read from MH i2c: E2 [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: E2 03 00 [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [14:12:41]RAPDU: 90 00 [14:12:41]wFMCommunicate OK [14:12:41]wFMCommunicate request_size=4 [14:12:41]MH_SAM_APDU [14:12:41]CAPDU: 80 0D 03 02 [14:12:41]Write to MH i2c: E2 08 00 55 01 80 0D 03 02 00 00 00 00 D1 [14:12:41]Write i2c OK [14:12:41]MH_I2C_Read... [14:12:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:41]Read from MH i2c: E2 [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: E2 0B 00 [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: E2 0B 00 55 01 00 8A E9 F8 36 5D 44 12 6A 90 00 90 [14:12:41]RAPDU: 8A E9 F8 36 5D 44 12 6A 90 00 [14:12:41]wFMCommunicate OK [14:12:41]SAM_PROTO_SignData done [14:12:41]FM_MakeSignedData done [14:12:41]CreateOFDProtocolMessage [14:12:41]wFMCommunicate request_size=4 [14:12:41]MH_SAM_APDU [14:12:41]CAPDU: 80 11 00 00 [14:12:41]Write to MH i2c: E2 08 00 56 01 80 11 00 00 00 00 00 00 D1 [14:12:41]Write i2c OK [14:12:41]MH_I2C_Read... [14:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:42]Read from MH i2c: E2 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 17 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 17 00 56 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 27 [14:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:12:42]wFMCommunicate OK [14:12:42]CreateOFDProtocolMessage done [14:12:42]OFDSenderStorePacket 67076 [14:12:42]StoreOFDPacket docnum=67076 [14:12:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 4A B1 07 01 E2 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 58 71 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 04 06 01 00 35 04 06 00 9A 61 73 8F 7D C6 8A E9 F8 36 5D 44 12 6A [14:12:42]CheckFolder [14:12:42]dirname=/storage/ofd_packets [14:12:42]CheckFolder done [14:12:42]ProducePacketName [14:12:42]name=ofd_packets/00067076 [14:12:42]NVStorageSaveData ofd_packets/00067076 [14:12:42]File name is /storage/ofd_packets/00067076 [14:12:42]Write 301 bytes [14:12:42]NVStorageSaveData done [14:12:42]OFDSenderStorePacket done [14:12:42]KKMCreateOFDPacket done [14:12:42]NVStorageSaveData kkm_last_timestamp [14:12:42]File name is /storage/kkm_last_timestamp [14:12:42]Write 4 bytes [14:12:42]NVStorageSaveData done [14:12:42]ExternCall_PrintAddStr [14:12:42]wPrintStart [14:12:42]Write to MH i2c: 01 00 00 57 01 58 [14:12:42]Write i2c OK [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: 01 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: 01 07 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: 01 07 00 57 01 00 00 00 00 00 FF 0F 6D [14:12:42]RasterBufferAndPrint [14:12:42]line Счет N : (1)506955 [14:12:42]line ИНН: 02508201610067 [14:12:42]line Контрольно-Кассовый Чек [14:12:42]line ПРОДАЖА [14:12:42]line ТРК (МРК, ГНК) : 13 [14:12:42]line Товар: 2710124130 [14:12:42]line Аи-92-К-5 [14:12:42]line 14.980 * 66.80 [14:12:42]line = 1000.66 [14:12:42]line НДС 12% НСП 1% [14:12:42]line > о реализуемом товаре [14:12:42]line ОКРУГЛЕНИЕ: -0.66 [14:12:42]line ИТОГО: 1000.00 [14:12:42]line Внесено: 1000.00 [14:12:42]line СДАЧА: 0.00 [14:12:42]line НСП 1% : 8.85 [14:12:42]line НДС 12% : 106.26 [14:12:42]line Наличными: 1000.00 [14:12:42]line Безнал.: 0.00 [14:12:42]line Место: АЗС № 91 "Партнер Нефть" [14:12:42]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:12:42]line СНО: Общий режим [14:12:42]line Чек 83 14.05.2024 14:12 [14:12:42]line Смена: 355 ФФД: 1.0 [14:12:42]line ЗНМ: 0300000119 [14:12:42]line РНМ: 0000000000091845 [14:12:42]line Версия ККМ: 001 [14:12:42]line ФМ: 0000000000871829 [14:12:42]line ФД: 67076 [14:12:42]line ФПД: 169743341288902 [14:12:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T141240&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67076&fm=169743341288902&tin=02508201610067®Number=0000000000091845&sum=100000 [14:12:42]OFD Sender: Processing packet 67076 [packets to send 35, broken 34] [14:12:42]ProducePacketName [14:12:42]name=ofd_packets/00067076 [14:12:42]OFD Sender: To server: pG, [14:12:42]CommunicateWithHost lk.salyk.kg:30040 [14:12:42]ConnectInit lk.salyk.kg [14:12:42]written 0, free lines is 4095 [14:12:42]Connected sock=10 [14:12:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 4A B1 07 01 E2 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 58 71 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 04 06 01 00 35 04 06 00 9A 61 73 8F 7D C6 8A E9 F8 36 5D 44 12 6A [14:12: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 56 CB 47 00 8B C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 04 06 01 00 F4 03 04 00 38 19 43 66 B6 04 01 00 00 33 0E BA AD 6C 6C 9F 85 [14:12:42]CommunicateWithHost err = 0 [14:12:42]CheckOFDResponse [14:12:42]1017 (14) - 77093643461234 [14:12:42]1041 (16) - 0000000000871829 [14:12:42]1040 (4) - 67076 [14:12:42]1012 (4) - 14.05.2024 07:56 [14:12:42]1206 (1) - 0 [14:12:42]OFD Sender: Remove packet 67076 [14:12:42]ProducePacketName [14:12:42]name=ofd_packets/00067076 [14:12:42]NVStorageDeleteData [14:12:42]Write to MH i2c: 01 00 00 81 01 82 [14:12:42]Write i2c OK [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: 01 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: 01 07 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: 01 07 00 81 01 00 00 00 00 00 C4 0C 59 [14:12:42]RasterBufferAndPrint [14:12:42]line [14:12:42]line [14:12:42]line [14:12:42]line [14:12:42]line [14:12:42]written 0, free lines is 3274 [14:12:42]MH_Cut [14:12:42]Write to MH i2c: D1 01 00 88 01 01 5B [14:12:42]Write i2c OK [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: D1 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: D1 01 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: D1 01 00 88 01 00 5A [14:12:42]Write to MH i2c: 01 00 00 89 01 8A [14:12:42]Write i2c OK [14:12:42]MH_I2C_Read... [14:12:43]OFD Sender: No OFD packet to send [14:12:43]*** Cut start [14:12:43]*** Purtial cut [14:12:43]*** CUTSNS_PIN = 0 [14:12:43]*** Stage 1: CUTSNS_PIN = 1 [14:12:45]Read from MH i2c: 01 [14:12:45]MH_I2C_Read... [14:12:45]*** Stop cut motor [14:12:45]*** Cut end [14:12:45]Read from MH i2c: 01 07 00 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: 01 07 00 89 01 00 00 00 00 00 FF 0F 9F [14:12:45]process_action close_receipt done [14:12:45]requested_data is exist [14:12:45]produce_requested_data [14:12:45]requested_item fm.sn is exist - process it [14:12:45]wFMCommunicate request_size=4 [14:12:45]MH_SAM_APDU [14:12:45]CAPDU: 80 11 00 00 [14:12:45]Write to MH i2c: E2 08 00 8A 01 80 11 00 00 00 00 00 00 05 [14:12:45]Write i2c OK [14:12:45]MH_I2C_Read... [14:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:45]Read from MH i2c: E2 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 17 00 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 17 00 8A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5B [14:12: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:12:45]wFMCommunicate OK [14:12:45]requested_item fd.num is exist - process it [14:12:45]SAM_PROTO_GetFieldsCounters [14:12:45]wFMCommunicate request_size=4 [14:12:45]MH_SAM_APDU [14:12:45]CAPDU: 80 13 00 00 [14:12:45]Write to MH i2c: E2 08 00 8B 01 80 13 00 00 00 00 00 00 08 [14:12:45]Write i2c OK [14:12:45]MH_I2C_Read... [14:12:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:45]Read from MH i2c: E2 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 62 00 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 62 00 8B 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 04 06 01 00 0E 04 04 00 63 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 96 [14:12: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 04 06 01 00 0E 04 04 00 63 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 [14:12:45]wFMCommunicate OK [14:12:45]SAM_PROTO_GetFieldsCounters done [14:12:45]requested_item shift.num is exist - process it [14:12:45]requested_item shift.opened is exist - process it [14:12:45]req_shift_opened [14:12:45]FM_GetShiftState [14:12:45]SAM_PROTO_GetShiftState [14:12:45]wFMCommunicate request_size=4 [14:12:45]MH_SAM_APDU [14:12:45]CAPDU: 80 13 01 00 [14:12:45]Write to MH i2c: E2 08 00 8C 01 80 13 01 00 00 00 00 00 0A [14:12:45]Write i2c OK [14:12:45]MH_I2C_Read... [14:12:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:45]Read from MH i2c: E2 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 0E 00 [14:12:45]MH_I2C_Read... [14:12:45]Read from MH i2c: E2 0E 00 8C 01 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D2 [14:12:45]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:12:45]wFMCommunicate OK [14:12:45]SAM_PROTO_GetShiftState done [14:12:45]FM_GetShiftState done [14:12:45]req_shift_opened done [14:12:45]requested_item shift.open_date is exist - process it [14:12:45]req_shift_open_date [14:12:45]req_shift_open_date done [14:12:45]produce_requested_data done [14:12:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67076,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [14:12:45]process_action_free close_receipt [14:12:45]json_value_free [14:12:45]json_value_free done [14:12:45]process_json_proto returns [14:12:45]Send response to host [14:12:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67076,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [14:12:45]free response buf [14:12:45]execute_script done [14:12:45]execute_script returns [14:12:45]free content buf [14:12:45]Sock 9.Close socket [14:12:45]Sock 9.Thread stoped [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]OFD Sender: No OFD packet to send [14:17:13]OFD Sender: No OFD packet to send [14:17:18]OFD Sender: No OFD packet to send [14:17:23]OFD Sender: No OFD packet to send [14:17:28]OFD Sender: No OFD packet to send [14:17:33]OFD Sender: No OFD packet to send [14:17:38]OFD Sender: No OFD packet to send [14:17:43]OFD Sender: No OFD packet to send [14:17:48]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [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:01]accept exits with 7 [14:24:01]New connection [14:24:01]New thread 3067485540 created [14:24:01]Thread 3067628900 joined [14:24:01]Waiting for new connection... [14:24:01] Sock 7.Parse request [14:24:01]Sock 7.Check first char [14:24:01]Sock 7.First char is OK [14:24:01]request: POST /json_proto HTTP/1.0 [14:24:01]Method: POST [14:24:01]URL: /json_proto [14:24:01]Method is POST - this is cgi request [14:24:01]url: /json_proto [14:24:01]query_string will be loaded in cgi processing [14:24:01]execute_cgi json_proto POST (null) [14:24:01]execute_cgi path=json_proto method=POST [14:24:01]POST find Content-Length [14:24:01]Host: 172.17.41.195:8080 [14:24:01]Content-Length: 682 [14:24:01]Content-Type: application/json [14:24:01] [14:24:01]POST finish read [14:24:01]Found Content-Length = 682 [14:24:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506956", "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" ] } } [14:24:01]execute_script... [14:24:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506956", "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" ] } } [14:24:01]POST & json_proto [14:24:01]process_json_proto [14:24:01]json parsed OK: [14:24:01]protocol is kg_v1.0 [14:24:01]action value=close_receipt [14:24:01]process_action close_receipt [14:24:01]cmd_close_receipt [14:24:01]MH_GetDate [14:24:01]Write to MH i2c: F0 00 00 8D 01 7D [14:24:01]Write i2c OK [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: F0 [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: F0 09 00 [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: F0 09 00 8D 01 00 01 74 43 66 FC 21 6F 64 94 [14:24:01]GetLastDocTimeStamp 1715695960 [14:24:01]current date 1715696641 [14:24:01]FM_GetShiftState [14:24:01]SAM_PROTO_GetShiftState [14:24:01]wFMCommunicate request_size=4 [14:24:01]MH_SAM_APDU [14:24:01]CAPDU: 80 13 01 00 [14:24:01]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [14:24:01]Write i2c OK [14:24:01]MH_I2C_Read... [14:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:01]Read from MH i2c: E2 [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: E2 0E 00 [14:24:01]MH_I2C_Read... [14:24:01]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D4 [14:24:01]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:24:01]wFMCommunicate OK [14:24:01]SAM_PROTO_GetShiftState done [14:24:01]FM_GetShiftState done [14:24:01]opened in 1715646054 [14:24:01]opened+sec_in_day 1715732454 [14:24:01]quantity*price = 100066 [14:24:01]sum+1 = 100067 [14:24:01]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 СНО: Общий режим Чек 84 14.05.2024 14:24 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67077 ФПД: 108402671776189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T142401&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67077&fm=108402671776189&tin=02508201610067®Number=0000000000091845&sum=100000 [14:24:02]StoreToDocumentArchive [14:24:02]shift 355 fd 67077 [14:24:02]save to /storage/0355/doc_00067077 [14:24:02]save last doc name /storage/0355/doc_00067077 to /storage/kkm_last_doc_name [14:24:02]save OK [14:24:02]Clear old archive folders... [14:24:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:02]tlvbuf is 00825250 [14:24:02]SAM_PROTO_ClearQueue [14:24:02]wFMCommunicate request_size=4 [14:24:02]MH_SAM_APDU [14:24:02]CAPDU: 80 09 00 00 [14:24:02]Write to MH i2c: E2 08 00 9B 01 80 09 00 00 00 00 00 00 0E [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:02]Read from MH i2c: E2 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [14:24:02]RAPDU: 90 00 [14:24:02]wFMCommunicate OK [14:24:02]SAM_PROTO_ClearQueue done [14:24:02]KKMCreateOFDPacket [14:24:02]OFDProtocolAddRootSTLVToBuf [14:24:02]FM_MakeSignedData [14:24:02]FM_MakeSignedData [14:24:02]SAM_PROTO_SignData [14:24:02]wFMCommunicate request_size=4 [14:24:02]MH_SAM_APDU [14:24:02]CAPDU: 80 0D 01 02 [14:24:02]Write to MH i2c: E2 08 00 9C 01 80 0D 01 02 00 00 00 00 16 [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:02]Read from MH i2c: E2 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [14:24:02]RAPDU: 90 00 [14:24:02]wFMCommunicate OK [14:24:02]wFMCommunicate request_size=255 [14:24:02]MH_SAM_APDU [14:24: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 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 54 00 00 00 F4 03 04 00 01 74 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 05 06 01 00 35 04 06 00 62 [14:24:02]Write to MH i2c: E2 02 01 9D 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 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 54 00 00 00 F4 03 04 00 01 74 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 05 06 01 00 35 04 06 00 62 00 00 33 [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:02]Read from MH i2c: E2 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [14:24:02]RAPDU: 90 00 [14:24:02]wFMCommunicate OK [14:24:02]wFMCommunicate request_size=10 [14:24:02]MH_SAM_APDU [14:24:02]CAPDU: 80 0D 02 02 05 97 76 BE 71 BD [14:24:02]Write to MH i2c: E2 0D 00 9E 01 80 0D 02 02 05 00 97 76 BE 71 BD 00 00 1C [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:02]Read from MH i2c: E2 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [14:24:02]RAPDU: 90 00 [14:24:02]wFMCommunicate OK [14:24:02]wFMCommunicate request_size=4 [14:24:02]MH_SAM_APDU [14:24:02]CAPDU: 80 0D 03 02 [14:24:02]Write to MH i2c: E2 08 00 9F 01 80 0D 03 02 00 00 00 00 1B [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:02]Read from MH i2c: E2 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 0B 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 0B 00 9F 01 00 40 90 A0 DC AD 7C 07 14 90 00 AC [14:24:02]RAPDU: 40 90 A0 DC AD 7C 07 14 90 00 [14:24:02]wFMCommunicate OK [14:24:02]SAM_PROTO_SignData done [14:24:02]FM_MakeSignedData done [14:24:02]CreateOFDProtocolMessage [14:24:02]wFMCommunicate request_size=4 [14:24:02]MH_SAM_APDU [14:24:02]CAPDU: 80 11 00 00 [14:24:02]Write to MH i2c: E2 08 00 A0 01 80 11 00 00 00 00 00 00 1B [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:02]Read from MH i2c: E2 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 17 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 17 00 A0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 71 [14:24:02]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:02]wFMCommunicate OK [14:24:02]CreateOFDProtocolMessage done [14:24:02]OFDSenderStorePacket 67077 [14:24:02]StoreOFDPacket docnum=67077 [14:24: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 42 61 07 01 CE 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 54 00 00 00 F4 03 04 00 01 74 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 05 06 01 00 35 04 06 00 62 97 76 BE 71 BD 40 90 A0 DC AD 7C 07 14 [14:24:02]CheckFolder [14:24:02]dirname=/storage/ofd_packets [14:24:02]CheckFolder done [14:24:02]ProducePacketName [14:24:02]name=ofd_packets/00067077 [14:24:02]NVStorageSaveData ofd_packets/00067077 [14:24:02]File name is /storage/ofd_packets/00067077 [14:24:02]Write 301 bytes [14:24:02]NVStorageSaveData done [14:24:02]OFDSenderStorePacket done [14:24:02]KKMCreateOFDPacket done [14:24:02]NVStorageSaveData kkm_last_timestamp [14:24:02]File name is /storage/kkm_last_timestamp [14:24:02]Write 4 bytes [14:24:02]NVStorageSaveData done [14:24:02]ExternCall_PrintAddStr [14:24:02]wPrintStart [14:24:02]Write to MH i2c: 01 00 00 A1 01 A2 [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: 01 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: 01 07 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: 01 07 00 A1 01 00 00 00 00 00 FF 0F B7 [14:24:02]RasterBufferAndPrint [14:24:02]line Счет N : (1)506956 [14:24:02]line ИНН: 02508201610067 [14:24:02]line Контрольно-Кассовый Чек [14:24:02]line ПРОДАЖА [14:24:02]line ТРК (МРК, ГНК) : 23 [14:24:02]line Товар: 2710124130 [14:24:02]line Аи-92-К-5 [14:24:02]line 14.980 * 66.80 [14:24:02]line = 1000.66 [14:24:02]line НДС 12% НСП 1% [14:24:02]line > о реализуемом товаре [14:24:02]line ОКРУГЛЕНИЕ: -0.66 [14:24:02]line ИТОГО: 1000.00 [14:24:02]line Внесено: 1000.00 [14:24:02]line СДАЧА: 0.00 [14:24:02]line НСП 1% : 8.85 [14:24:02]line НДС 12% : 106.26 [14:24:02]line Наличными: 1000.00 [14:24:02]line Безнал.: 0.00 [14:24:02]line Место: АЗС № 91 "Партнер Нефть" [14:24:02]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:24:02]line СНО: Общий режим [14:24:02]line Чек 84 14.05.2024 14:24 [14:24:02]line Смена: 355 ФФД: 1.0 [14:24:02]line ЗНМ: 0300000119 [14:24:02]line РНМ: 0000000000091845 [14:24:02]line Версия ККМ: 001 [14:24:02]line ФМ: 0000000000871829 [14:24:02]line ФД: 67077 [14:24:03]line ФПД: 108402671776189 [14:24:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T142401&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67077&fm=108402671776189&tin=02508201610067®Number=0000000000091845&sum=100000 [14:24:03]OFD Sender: Processing packet 67077 [packets to send 35, broken 34] [14:24:03]ProducePacketName [14:24:03]name=ofd_packets/00067077 [14:24:03]OFD Sender: To server: pG, [14:24:03]CommunicateWithHost lk.salyk.kg:30040 [14:24:03]ConnectInit lk.salyk.kg [14:24:03]written 0, free lines is 4095 [14:24:03]Connected sock=10 [14:24:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 42 61 07 01 CE 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 54 00 00 00 F4 03 04 00 01 74 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 05 06 01 00 35 04 06 00 62 97 76 BE 71 BD 40 90 A0 DC AD 7C 07 14 [14:24: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 5B E8 47 00 83 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 05 06 01 00 F4 03 04 00 E1 1B 43 66 B6 04 01 00 00 26 D5 6E 36 CC 9E 8D 5C [14:24:03]CommunicateWithHost err = 0 [14:24:03]CheckOFDResponse [14:24:03]1017 (14) - 77093643461234 [14:24:03]1041 (16) - 0000000000871829 [14:24:03]1040 (4) - 67077 [14:24:03]1012 (4) - 14.05.2024 08:08 [14:24:03]1206 (1) - 0 [14:24:03]OFD Sender: Remove packet 67077 [14:24:03]ProducePacketName [14:24:03]name=ofd_packets/00067077 [14:24:03]NVStorageDeleteData [14:24:03]Write to MH i2c: 01 00 00 CB 01 CC [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: 01 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: 01 07 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: 01 07 00 CB 01 00 00 00 00 00 C2 0C A1 [14:24:03]RasterBufferAndPrint [14:24:03]line [14:24:03]line [14:24:03]line [14:24:03]line [14:24:03]line [14:24:03]written 0, free lines is 3272 [14:24:03]MH_Cut [14:24:03]Write to MH i2c: D1 01 00 D2 01 01 A5 [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: D1 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: D1 01 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: D1 01 00 D2 01 00 A4 [14:24:03]Write to MH i2c: 01 00 00 D3 01 D4 [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]OFD Sender: No OFD packet to send [14:24:04]*** Cut start [14:24:04]*** Purtial cut [14:24:04]*** Stage 1: CUTSNS_PIN = 1 [14:24:04]Read from MH i2c: 01 [14:24:04]MH_I2C_Read... [14:24:04]*** Stop cut motor [14:24:04]*** Cut end [14:24:04]Read from MH i2c: 01 07 00 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: 01 07 00 D3 01 00 00 00 00 00 FF 0F E9 [14:24:04]process_action close_receipt done [14:24:04]requested_data is exist [14:24:04]produce_requested_data [14:24:04]requested_item fm.sn is exist - process it [14:24:04]wFMCommunicate request_size=4 [14:24:04]MH_SAM_APDU [14:24:04]CAPDU: 80 11 00 00 [14:24:04]Write to MH i2c: E2 08 00 D4 01 80 11 00 00 00 00 00 00 4F [14:24:04]Write i2c OK [14:24:04]MH_I2C_Read... [14:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:04]Read from MH i2c: E2 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: E2 17 00 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: E2 17 00 D4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A5 [14: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 [14:24:04]wFMCommunicate OK [14:24:04]requested_item fd.num is exist - process it [14:24:04]SAM_PROTO_GetFieldsCounters [14:24:04]wFMCommunicate request_size=4 [14:24:04]MH_SAM_APDU [14:24:04]CAPDU: 80 13 00 00 [14:24:04]Write to MH i2c: E2 08 00 D5 01 80 13 00 00 00 00 00 00 52 [14:24:04]Write i2c OK [14:24:04]MH_I2C_Read... [14:24:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:04]Read from MH i2c: E2 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: E2 62 00 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: E2 62 00 D5 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 05 06 01 00 0E 04 04 00 63 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 E4 [14:24: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 05 06 01 00 0E 04 04 00 63 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 [14:24:04]wFMCommunicate OK [14:24:04]SAM_PROTO_GetFieldsCounters done [14:24:04]requested_item shift.num is exist - process it [14:24:04]requested_item shift.opened is exist - process it [14:24:04]req_shift_opened [14:24:04]FM_GetShiftState [14:24:04]SAM_PROTO_GetShiftState [14:24:04]wFMCommunicate request_size=4 [14:24:04]MH_SAM_APDU [14:24:04]CAPDU: 80 13 01 00 [14:24:04]Write to MH i2c: E2 08 00 D6 01 80 13 01 00 00 00 00 00 54 [14:24:04]Write i2c OK [14:24:04]MH_I2C_Read... [14:24:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:04]Read from MH i2c: E2 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: E2 0E 00 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: E2 0E 00 D6 01 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 1C [14:24:04]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:24:04]wFMCommunicate OK [14:24:04]SAM_PROTO_GetShiftState done [14:24:04]FM_GetShiftState done [14:24:04]req_shift_opened done [14:24:04]requested_item shift.open_date is exist - process it [14:24:04]req_shift_open_date [14:24:04]req_shift_open_date done [14:24:04]produce_requested_data done [14:24:04]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67077,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [14:24:04]process_action_free close_receipt [14:24:04]json_value_free [14:24:04]json_value_free done [14:24:04]process_json_proto returns [14:24:04]Send response to host [14:24:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67077,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [14:24:04]free response buf [14:24:04]execute_script done [14:24:04]execute_script returns [14:24:04]free content buf [14:24:04]Sock 7.Close socket [14:24:04]Sock 7.Thread stoped [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:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]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: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:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:47]accept exits with 9 [14:27:47]New connection [14:27:47]New thread 3067628900 created [14:27:47]Thread 3067485540 joined [14:27:47]Waiting for new connection... [14:27:47] Sock 9.Parse request [14:27:47]Sock 9.Check first char [14:27:47]Sock 9.First char is OK [14:27:47]request: POST /json_proto HTTP/1.0 [14:27:47]Method: POST [14:27:47]URL: /json_proto [14:27:47]Method is POST - this is cgi request [14:27:47]url: /json_proto [14:27:47]query_string will be loaded in cgi processing [14:27:47]execute_cgi json_proto POST (null) [14:27:47]execute_cgi path=json_proto method=POST [14:27:47]POST find Content-Length [14:27:47]Host: 172.17.41.195:8080 [14:27:47]Content-Length: 677 [14:27:47]Content-Type: application/json [14:27:47] [14:27:47]POST finish read [14:27:47]Found Content-Length = 677 [14:27:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506957", "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" ] } } [14:27:47]execute_script... [14:27:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506957", "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" ] } } [14:27:47]POST & json_proto [14:27:47]process_json_proto [14:27:47]json parsed OK: [14:27:47]protocol is kg_v1.0 [14:27:47]action value=close_receipt [14:27:47]process_action close_receipt [14:27:47]cmd_close_receipt [14:27:47]MH_GetDate [14:27:47]Write to MH i2c: F0 00 00 D7 01 C7 [14:27:47]Write i2c OK [14:27:47]MH_I2C_Read... [14:27:47]Read from MH i2c: F0 [14:27:47]MH_I2C_Read... [14:27:47]Read from MH i2c: F0 09 00 [14:27:47]MH_I2C_Read... [14:27:47]Read from MH i2c: F0 09 00 D7 01 00 E3 74 43 66 FC 21 6F 64 C0 [14:27:47]GetLastDocTimeStamp 1715696641 [14:27:47]current date 1715696867 [14:27:47]FM_GetShiftState [14:27:47]SAM_PROTO_GetShiftState [14:27:47]wFMCommunicate request_size=4 [14:27:47]MH_SAM_APDU [14:27:47]CAPDU: 80 13 01 00 [14:27:47]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [14:27:47]Write i2c OK [14:27:47]MH_I2C_Read... [14:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:47]Read from MH i2c: E2 [14:27:47]MH_I2C_Read... [14:27:47]Read from MH i2c: E2 0E 00 [14:27:47]MH_I2C_Read... [14:27:47]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 1E [14:27:47]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:27:47]wFMCommunicate OK [14:27:47]SAM_PROTO_GetShiftState done [14:27:47]FM_GetShiftState done [14:27:47]opened in 1715646054 [14:27:47]opened+sec_in_day 1715732454 [14:27:47]quantity*price = 30060 [14:27:47]sum+1 = 30061 [14:27:47]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 СНО: Общий режим Чек 85 14.05.2024 14:27 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67078 ФПД: 131651704659814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T142747&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67078&fm=131651704659814&tin=02508201610067®Number=0000000000091845&sum=30000 [14:27:48]StoreToDocumentArchive [14:27:48]shift 355 fd 67078 [14:27:48]save to /storage/0355/doc_00067078 [14:27:48]save last doc name /storage/0355/doc_00067078 to /storage/kkm_last_doc_name [14:27:48]save OK [14:27:48]Clear old archive folders... [14:27:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:48]tlvbuf is 00792550 [14:27:48]SAM_PROTO_ClearQueue [14:27:48]wFMCommunicate request_size=4 [14:27:48]MH_SAM_APDU [14:27:48]CAPDU: 80 09 00 00 [14:27:48]Write to MH i2c: E2 08 00 E5 01 80 09 00 00 00 00 00 00 58 [14:27:48]Write i2c OK [14:27:48]MH_I2C_Read... [14:27:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:48]Read from MH i2c: E2 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 03 00 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 03 00 E5 01 00 90 00 5A [14:27:48]RAPDU: 90 00 [14:27:48]wFMCommunicate OK [14:27:48]SAM_PROTO_ClearQueue done [14:27:48]KKMCreateOFDPacket [14:27:48]OFDProtocolAddRootSTLVToBuf [14:27:48]FM_MakeSignedData [14:27:48]FM_MakeSignedData [14:27:48]SAM_PROTO_SignData [14:27:48]wFMCommunicate request_size=4 [14:27:48]MH_SAM_APDU [14:27:48]CAPDU: 80 0D 01 02 [14:27:48]Write to MH i2c: E2 08 00 E6 01 80 0D 01 02 00 00 00 00 60 [14:27:48]Write i2c OK [14:27:48]MH_I2C_Read... [14:27:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:48]Read from MH i2c: E2 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 03 00 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [14:27:48]RAPDU: 90 00 [14:27:48]wFMCommunicate OK [14:27:48]wFMCommunicate request_size=255 [14:27:48]MH_SAM_APDU [14:27: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 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 55 00 00 00 F4 03 04 00 E3 74 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 06 06 01 00 35 04 06 00 77 [14:27:48]Write to MH i2c: E2 02 01 E7 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 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 55 00 00 00 F4 03 04 00 E3 74 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 06 06 01 00 35 04 06 00 77 00 00 3D [14:27:48]Write i2c OK [14:27:48]MH_I2C_Read... [14:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:48]Read from MH i2c: E2 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 03 00 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [14:27:48]RAPDU: 90 00 [14:27:48]wFMCommunicate OK [14:27:48]wFMCommunicate request_size=10 [14:27:48]MH_SAM_APDU [14:27:48]CAPDU: 80 0D 02 02 05 BC 8D 17 1F 66 [14:27:48]Write to MH i2c: E2 0D 00 E8 01 80 0D 02 02 05 00 BC 8D 17 1F 66 00 00 52 [14:27:48]Write i2c OK [14:27:48]MH_I2C_Read... [14:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:48]Read from MH i2c: E2 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 03 00 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [14:27:48]RAPDU: 90 00 [14:27:48]wFMCommunicate OK [14:27:48]wFMCommunicate request_size=4 [14:27:48]MH_SAM_APDU [14:27:48]CAPDU: 80 0D 03 02 [14:27:48]Write to MH i2c: E2 08 00 E9 01 80 0D 03 02 00 00 00 00 65 [14:27:48]Write i2c OK [14:27:48]MH_I2C_Read... [14:27:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:48]Read from MH i2c: E2 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 0B 00 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 0B 00 E9 01 00 8C 18 40 53 72 EA BB 5F 90 00 13 [14:27:48]RAPDU: 8C 18 40 53 72 EA BB 5F 90 00 [14:27:48]wFMCommunicate OK [14:27:48]SAM_PROTO_SignData done [14:27:48]FM_MakeSignedData done [14:27:48]CreateOFDProtocolMessage [14:27:48]wFMCommunicate request_size=4 [14:27:48]MH_SAM_APDU [14:27:48]CAPDU: 80 11 00 00 [14:27:48]Write to MH i2c: E2 08 00 EA 01 80 11 00 00 00 00 00 00 65 [14:27:48]Write i2c OK [14:27:48]MH_I2C_Read... [14:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:48]Read from MH i2c: E2 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 17 00 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 17 00 EA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BB [14: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 [14:27:48]wFMCommunicate OK [14:27:48]CreateOFDProtocolMessage done [14:27:48]OFDSenderStorePacket 67078 [14:27:48]StoreOFDPacket docnum=67078 [14:27:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 18 EA 07 01 1E BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 55 00 00 00 F4 03 04 00 E3 74 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 06 06 01 00 35 04 06 00 77 BC 8D 17 1F 66 8C 18 40 53 72 EA BB 5F [14:27:48]CheckFolder [14:27:48]dirname=/storage/ofd_packets [14:27:48]CheckFolder done [14:27:48]ProducePacketName [14:27:48]name=ofd_packets/00067078 [14:27:48]NVStorageSaveData ofd_packets/00067078 [14:27:48]File name is /storage/ofd_packets/00067078 [14:27:48]Write 301 bytes [14:27:48]NVStorageSaveData done [14:27:48]OFDSenderStorePacket done [14:27:48]KKMCreateOFDPacket done [14:27:48]NVStorageSaveData kkm_last_timestamp [14:27:48]File name is /storage/kkm_last_timestamp [14:27:48]Write 4 bytes [14:27:48]NVStorageSaveData done [14:27:48]ExternCall_PrintAddStr [14:27:48]wPrintStart [14:27:48]Write to MH i2c: 01 00 00 EB 01 EC [14:27:48]Write i2c OK [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: 01 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: 01 07 00 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: 01 07 00 EB 01 00 00 00 00 00 FF 0F 01 [14:27:48]RasterBufferAndPrint [14:27:48]line Счет N : (1)506957 [14:27:48]line ИНН: 02508201610067 [14:27:48]line Контрольно-Кассовый Чек [14:27:48]line ПРОДАЖА [14:27:48]line ТРК (МРК, ГНК) : 43 [14:27:48]line Товар: 2710124130 [14:27:48]line Аи-92-К-5 [14:27:48]line 4.500 * 66.80 [14:27:48]line = 300.60 [14:27:48]line НДС 12% НСП 1% [14:27:48]line > о реализуемом товаре [14:27:48]line ОКРУГЛЕНИЕ: -0.60 [14:27:48]line ИТОГО: 300.00 [14:27:48]line Внесено: 300.00 [14:27:48]line СДАЧА: 0.00 [14:27:48]line НСП 1% : 2.66 [14:27:48]line НДС 12% : 31.92 [14:27:48]line Наличными: 300.00 [14:27:48]line Безнал.: 0.00 [14:27:48]line Место: АЗС № 91 "Партнер Нефть" [14:27:48]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:27:48]line СНО: Общий режим [14:27:48]line Чек 85 14.05.2024 14:27 [14:27:48]line Смена: 355 ФФД: 1.0 [14:27:48]line ЗНМ: 0300000119 [14:27:48]line РНМ: 0000000000091845 [14:27:48]line Версия ККМ: 001 [14:27:48]line ФМ: 0000000000871829 [14:27:48]line ФД: 67078 [14:27:48]line ФПД: 131651704659814 [14:27:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T142747&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67078&fm=131651704659814&tin=02508201610067®Number=0000000000091845&sum=30000 [14:27:49]OFD Sender: Processing packet 67078 [packets to send 35, broken 34] [14:27:49]ProducePacketName [14:27:49]name=ofd_packets/00067078 [14:27:49]OFD Sender: To server: pG, [14:27:49]CommunicateWithHost lk.salyk.kg:30040 [14:27:49]ConnectInit lk.salyk.kg [14:27:49]written 0, free lines is 4095 [14:27:49]Write to MH i2c: 01 00 00 15 02 17 [14:27:49]Write i2c OK [14:27:49]MH_I2C_Read... [14:27:49]Read from MH i2c: 01 [14:27:49]MH_I2C_Read... [14:27:49]Read from MH i2c: 01 07 00 [14:27:49]MH_I2C_Read... [14:27:49]Read from MH i2c: 01 07 00 15 02 00 00 00 00 00 C4 0C EE [14:27:49]RasterBufferAndPrint [14:27:49]line [14:27:49]line [14:27:49]line [14:27:49]line [14:27:49]line [14:27:49]written 0, free lines is 3273 [14:27:49]MH_Cut [14:27:49]Write to MH i2c: D1 01 00 1C 02 01 F0 [14:27:49]Write i2c OK [14:27:49]MH_I2C_Read... [14:27:49]Read from MH i2c: D1 [14:27:49]MH_I2C_Read... [14:27:49]Read from MH i2c: D1 01 00 [14:27:49]MH_I2C_Read... [14:27:49]Read from MH i2c: D1 01 00 1C 02 00 EF [14:27:49]Write to MH i2c: 01 00 00 1D 02 1F [14:27:49]Write i2c OK [14:27:49]MH_I2C_Read... [14:27:50]Connected sock=7 [14:27: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 0F 01 00 00 18 EA 07 01 1E BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 55 00 00 00 F4 03 04 00 E3 74 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 06 06 01 00 35 04 06 00 77 BC 8D 17 1F 66 8C 18 40 53 72 EA BB 5F [14:27: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 90 FD 47 00 3C 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 06 06 01 00 F4 03 04 00 C4 1C 43 66 B6 04 01 00 00 0C 46 63 B9 17 B4 7E 5F [14:27:50]CommunicateWithHost err = 0 [14:27:50]CheckOFDResponse [14:27:50]1017 (14) - 77093643461234 [14:27:50]1041 (16) - 0000000000871829 [14:27:50]1040 (4) - 67078 [14:27:50]1012 (4) - 14.05.2024 08:11 [14:27:50]1206 (1) - 0 [14:27:50]OFD Sender: Remove packet 67078 [14:27:50]ProducePacketName [14:27:50]name=ofd_packets/00067078 [14:27:50]NVStorageDeleteData [14:27:50]*** Cut start [14:27:50]*** Purtial cut [14:27:50]*** CUTSNS_PIN = 0 [14:27:50]*** Stage 1: CUTSNS_PIN = 1 [14:27:50]OFD Sender: No OFD packet to send [14:27:52]Read from MH i2c: 01 [14:27:52]MH_I2C_Read... [14:27:52]*** Stop cut motor [14:27:52]*** Cut end [14:27:52]Read from MH i2c: 01 07 00 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: 01 07 00 1D 02 00 00 00 00 00 FF 0F 34 [14:27:52]process_action close_receipt done [14:27:52]requested_data is exist [14:27:52]produce_requested_data [14:27:52]requested_item fm.sn is exist - process it [14:27:52]wFMCommunicate request_size=4 [14:27:52]MH_SAM_APDU [14:27:52]CAPDU: 80 11 00 00 [14:27:52]Write to MH i2c: E2 08 00 1E 02 80 11 00 00 00 00 00 00 9A [14:27:52]Write i2c OK [14:27:52]MH_I2C_Read... [14:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:52]Read from MH i2c: E2 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: E2 17 00 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: E2 17 00 1E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F0 [14:27: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:27:52]wFMCommunicate OK [14:27:52]requested_item fd.num is exist - process it [14:27:52]SAM_PROTO_GetFieldsCounters [14:27:52]wFMCommunicate request_size=4 [14:27:52]MH_SAM_APDU [14:27:52]CAPDU: 80 13 00 00 [14:27:52]Write to MH i2c: E2 08 00 1F 02 80 13 00 00 00 00 00 00 9D [14:27:52]Write i2c OK [14:27:52]MH_I2C_Read... [14:27:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:52]Read from MH i2c: E2 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: E2 62 00 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: E2 62 00 1F 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 06 06 01 00 0E 04 04 00 63 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 33 [14:27: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 06 06 01 00 0E 04 04 00 63 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 [14:27:52]wFMCommunicate OK [14:27:52]SAM_PROTO_GetFieldsCounters done [14:27:52]requested_item shift.num is exist - process it [14:27:52]requested_item shift.opened is exist - process it [14:27:52]req_shift_opened [14:27:52]FM_GetShiftState [14:27:52]SAM_PROTO_GetShiftState [14:27:52]wFMCommunicate request_size=4 [14:27:52]MH_SAM_APDU [14:27:52]CAPDU: 80 13 01 00 [14:27:52]Write to MH i2c: E2 08 00 20 02 80 13 01 00 00 00 00 00 9F [14:27:52]Write i2c OK [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: E2 [14:27:52]MH_I2C_Read... [14:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:52]Read from MH i2c: E2 0E 00 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: E2 0E 00 20 02 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 67 [14:27:52]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:27:52]wFMCommunicate OK [14:27:52]SAM_PROTO_GetShiftState done [14:27:52]FM_GetShiftState done [14:27:52]req_shift_opened done [14:27:52]requested_item shift.open_date is exist - process it [14:27:52]req_shift_open_date [14:27:52]req_shift_open_date done [14:27:52]produce_requested_data done [14:27:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67078,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [14:27:52]process_action_free close_receipt [14:27:52]json_value_free [14:27:52]json_value_free done [14:27:52]process_json_proto returns [14:27:52]Send response to host [14:27:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67078,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [14:27:52]free response buf [14:27:52]execute_script done [14:27:52]execute_script returns [14:27:52]free content buf [14:27:52]Sock 9.Close socket [14:27:52]Sock 9.Thread stoped [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:15]OFD Sender: No OFD packet to send [14:28:20]OFD Sender: No OFD packet to send [14:28:25]OFD Sender: No OFD packet to send [14:28:30]OFD Sender: No OFD packet to send [14:28:35]OFD Sender: No OFD packet to send [14:28:40]OFD Sender: No OFD packet to send [14:28:45]OFD Sender: No OFD packet to send [14:28:50]OFD Sender: No OFD packet to send [14:28:55]OFD Sender: No OFD packet to send [14:29:00]OFD Sender: No OFD packet to send [14:29:05]OFD Sender: No OFD packet to send [14:29:10]OFD Sender: No OFD packet to send [14:29:15]OFD Sender: No OFD packet to send [14:29:20]OFD Sender: No OFD packet to send [14:29:25]OFD Sender: No OFD packet to send [14:29:30]OFD Sender: No OFD packet to send [14:29:35]OFD Sender: No OFD packet to send [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:20]OFD Sender: No OFD packet to send [14:30:25]OFD Sender: No OFD packet to send [14:30:30]OFD Sender: No OFD packet to send [14:30:35]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:56]OFD Sender: No OFD packet to send [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:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:47]accept exits with 10 [14:34:47]New connection [14:34:47]New thread 3067485540 created [14:34:47]Thread 3067628900 joined [14:34:47]Waiting for new connection... [14:34:47] Sock 10.Parse request [14:34:47]Sock 10.Check first char [14:34:47]Sock 10.First char is OK [14:34:47]request: POST /json_proto HTTP/1.0 [14:34:47]Method: POST [14:34:47]URL: /json_proto [14:34:47]Method is POST - this is cgi request [14:34:47]url: /json_proto [14:34:47]query_string will be loaded in cgi processing [14:34:47]execute_cgi json_proto POST (null) [14:34:47]execute_cgi path=json_proto method=POST [14:34:47]POST find Content-Length [14:34:47]Host: 172.17.41.195:8080 [14:34:47]Content-Length: 819 [14:34:47]Content-Type: application/json [14:34:47] [14:34:47]POST finish read [14:34:47]Found Content-Length = 819 [14:34:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506958", "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: \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" ] } } [14:34:47]execute_script... [14:34:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506958", "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: \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" ] } } [14:34:47]POST & json_proto [14:34:47]process_json_proto [14:34:47]json parsed OK: [14:34:47]protocol is kg_v1.0 [14:34:47]action value=close_receipt [14:34:47]process_action close_receipt [14:34:47]cmd_close_receipt [14:34:47]MH_GetDate [14:34:47]Write to MH i2c: F0 00 00 21 02 12 [14:34:47]Write i2c OK [14:34:47]MH_I2C_Read... [14:34:47]Read from MH i2c: F0 [14:34:47]MH_I2C_Read... [14:34:47]Read from MH i2c: F0 09 00 [14:34:47]MH_I2C_Read... [14:34:47]Read from MH i2c: F0 09 00 21 02 00 88 76 43 66 FC 21 6F 64 B2 [14:34:47]GetLastDocTimeStamp 1715696867 [14:34:47]current date 1715697288 [14:34:47]FM_GetShiftState [14:34:47]SAM_PROTO_GetShiftState [14:34:47]wFMCommunicate request_size=4 [14:34:47]MH_SAM_APDU [14:34:47]CAPDU: 80 13 01 00 [14:34:47]Write to MH i2c: E2 08 00 22 02 80 13 01 00 00 00 00 00 A1 [14:34:47]Write i2c OK [14:34:47]MH_I2C_Read... [14:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:47]Read from MH i2c: E2 [14:34:47]MH_I2C_Read... [14:34:47]Read from MH i2c: E2 0E 00 [14:34:47]MH_I2C_Read... [14:34:47]Read from MH i2c: E2 0E 00 22 02 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 69 [14:34:47]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:34:47]wFMCommunicate OK [14:34:47]SAM_PROTO_GetShiftState done [14:34:47]FM_GetShiftState done [14:34:47]opened in 1715646054 [14:34:47]opened+sec_in_day 1715732454 [14:34:47]quantity*price = 100066 [14:34:47]sum+1 = 100067 [14:34:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.66 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.66 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 86 14.05.2024 14:34 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67079 ФПД: 92149523163480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T143448&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67079&fm=92149523163480&tin=02508201610067®Number=0000000000091845&sum=100066 [14:34:48]StoreToDocumentArchive [14:34:48]shift 355 fd 67079 [14:34:49]save to /storage/0355/doc_00067079 [14:34:49]save last doc name /storage/0355/doc_00067079 to /storage/kkm_last_doc_name [14:34:49]save OK [14:34:49]Clear old archive folders... [14:34:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:34:49]tlvbuf is 008301D0 [14:34:49]SAM_PROTO_ClearQueue [14:34:49]wFMCommunicate request_size=4 [14:34:49]MH_SAM_APDU [14:34:49]CAPDU: 80 09 00 00 [14:34:49]Write to MH i2c: E2 08 00 2F 02 80 09 00 00 00 00 00 00 A3 [14:34:49]Write i2c OK [14:34:49]MH_I2C_Read... [14:34:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:49]Read from MH i2c: E2 [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: E2 03 00 [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: E2 03 00 2F 02 00 90 00 A5 [14:34:49]RAPDU: 90 00 [14:34:49]wFMCommunicate OK [14:34:49]SAM_PROTO_ClearQueue done [14:34:49]KKMCreateOFDPacket [14:34:49]OFDProtocolAddRootSTLVToBuf [14:34:49]FM_MakeSignedData [14:34:49]FM_MakeSignedData [14:34:49]SAM_PROTO_SignData [14:34:49]wFMCommunicate request_size=4 [14:34:49]MH_SAM_APDU [14:34:49]CAPDU: 80 0D 01 02 [14:34:49]Write to MH i2c: E2 08 00 30 02 80 0D 01 02 00 00 00 00 AB [14:34:49]Write i2c OK [14:34:49]MH_I2C_Read... [14:34:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:49]Read from MH i2c: E2 [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: E2 03 00 [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [14:34:49]RAPDU: 90 00 [14:34:49]wFMCommunicate OK [14:34:49]wFMCommunicate request_size=255 [14:34:49]MH_SAM_APDU [14:34:49]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 56 00 00 00 F4 03 04 00 88 76 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 07 06 01 00 35 04 06 00 53 [14:34:49]Write to MH i2c: E2 02 01 31 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 56 00 00 00 F4 03 04 00 88 76 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 07 06 01 00 35 04 06 00 53 00 00 CA [14:34:49]Write i2c OK [14:34:49]MH_I2C_Read... [14:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:49]Read from MH i2c: E2 [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: E2 03 00 [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [14:34:49]RAPDU: 90 00 [14:34:49]wFMCommunicate OK [14:34:49]wFMCommunicate request_size=10 [14:34:49]MH_SAM_APDU [14:34:49]CAPDU: 80 0D 02 02 05 CF 3B 98 29 58 [14:34:49]Write to MH i2c: E2 0D 00 32 02 80 0D 02 02 05 00 CF 3B 98 29 58 00 00 DB [14:34:49]Write i2c OK [14:34:49]MH_I2C_Read... [14:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:49]Read from MH i2c: E2 [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: E2 03 00 [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [14:34:49]RAPDU: 90 00 [14:34:49]wFMCommunicate OK [14:34:49]wFMCommunicate request_size=4 [14:34:49]MH_SAM_APDU [14:34:49]CAPDU: 80 0D 03 02 [14:34:49]Write to MH i2c: E2 08 00 33 02 80 0D 03 02 00 00 00 00 B0 [14:34:49]Write i2c OK [14:34:49]MH_I2C_Read... [14:34:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:49]Read from MH i2c: E2 [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: E2 0B 00 [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: E2 0B 00 33 02 00 5A 23 67 C4 EC C3 9B 96 90 00 39 [14:34:49]RAPDU: 5A 23 67 C4 EC C3 9B 96 90 00 [14:34:49]wFMCommunicate OK [14:34:49]SAM_PROTO_SignData done [14:34:49]FM_MakeSignedData done [14:34:49]CreateOFDProtocolMessage [14:34:49]wFMCommunicate request_size=4 [14:34:49]MH_SAM_APDU [14:34:49]CAPDU: 80 11 00 00 [14:34:49]Write to MH i2c: E2 08 00 34 02 80 11 00 00 00 00 00 00 B0 [14:34:49]Write i2c OK [14:34:49]MH_I2C_Read... [14:34:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:49]Read from MH i2c: E2 [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: E2 17 00 [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: E2 17 00 34 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 06 [14:34:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:34:49]wFMCommunicate OK [14:34:49]CreateOFDProtocolMessage done [14:34:49]OFDSenderStorePacket 67079 [14:34:49]StoreOFDPacket docnum=67079 [14:34:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 01 BD 07 01 50 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 56 00 00 00 F4 03 04 00 88 76 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 07 06 01 00 35 04 06 00 53 CF 3B 98 29 58 5A 23 67 C4 EC C3 9B 96 [14:34:49]CheckFolder [14:34:49]dirname=/storage/ofd_packets [14:34:49]CheckFolder done [14:34:49]ProducePacketName [14:34:49]name=ofd_packets/00067079 [14:34:49]NVStorageSaveData ofd_packets/00067079 [14:34:49]File name is /storage/ofd_packets/00067079 [14:34:49]Write 301 bytes [14:34:49]NVStorageSaveData done [14:34:49]OFDSenderStorePacket done [14:34:49]KKMCreateOFDPacket done [14:34:49]NVStorageSaveData kkm_last_timestamp [14:34:49]File name is /storage/kkm_last_timestamp [14:34:49]Write 4 bytes [14:34:49]NVStorageSaveData done [14:34:49]ExternCall_PrintAddStr [14:34:49]wPrintStart [14:34:49]Write to MH i2c: 01 00 00 35 02 37 [14:34:49]Write i2c OK [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: 01 [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: 01 07 00 [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: 01 07 00 35 02 00 00 00 00 00 FF 0F 4C [14:34:49]RasterBufferAndPrint [14:34:49]line Счет N : (1)506958 [14:34:49]line ИНН: 02508201610067 [14:34:49]line Контрольно-Кассовый Чек [14:34:49]line ПРОДАЖА [14:34:49]line ТРК (МРК, ГНК) : 43 [14:34:49]line Товар: 2710124130 [14:34:49]line Аи-92-К-5 [14:34:49]line 14.980 * 66.80 [14:34:49]line = 1000.66 [14:34:49]line НДС 12% НСП 1% [14:34:49]line > о реализуемом товаре [14:34:49]line ИТОГО: 1000.66 [14:34:49]line НСП 1% : 8.85 [14:34:49]line НДС 12% : 106.26 [14:34:49]line Наличными: 0.00 [14:34:49]line Безнал.: 1000.66 [14:34:49]line Место: АЗС № 91 "Партнер Нефть" [14:34:49]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:34:49]line СНО: Общий режим [14:34:49]line Чек 86 14.05.2024 14:34 [14:34:49]line Смена: 355 ФФД: 1.0 [14:34:49]line ЗНМ: 0300000119 [14:34:49]line РНМ: 0000000000091845 [14:34:49]line Версия ККМ: 001 [14:34:49]line Платежная система: Бакай Банк [14:34:49]line ФМ: 0000000000871829 [14:34:49]line ФД: 67079 [14:34:49]line ФПД: 92149523163480 [14:34:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T143448&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67079&fm=92149523163480&tin=02508201610067®Number=0000000000091845&sum=100066 [14:34:49]written 0, free lines is 4095 [14:34:49]OFD Sender: Processing packet 67079 [packets to send 35, broken 34] [14:34:49]ProducePacketName [14:34:49]name=ofd_packets/00067079 [14:34:49]OFD Sender: To server: pG, [14:34:49]CommunicateWithHost lk.salyk.kg:30040 [14:34:49]ConnectInit lk.salyk.kg [14:34:49]Connected sock=9 [14:34:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 01 BD 07 01 50 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 56 00 00 00 F4 03 04 00 88 76 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 07 06 01 00 35 04 06 00 53 CF 3B 98 29 58 5A 23 67 C4 EC C3 9B 96 [14:34: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 63 76 47 00 1E 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 07 06 01 00 F4 03 04 00 67 1E 43 66 B6 04 01 00 00 E3 86 C3 7A 86 E6 25 05 [14:34:49]CommunicateWithHost err = 0 [14:34:49]CheckOFDResponse [14:34:49]1017 (14) - 77093643461234 [14:34:49]1041 (16) - 0000000000871829 [14:34:49]1040 (4) - 67079 [14:34:49]1012 (4) - 14.05.2024 08:18 [14:34:49]1206 (1) - 0 [14:34:49]OFD Sender: Remove packet 67079 [14:34:49]ProducePacketName [14:34:49]name=ofd_packets/00067079 [14:34:49]NVStorageDeleteData [14:34:49]Write to MH i2c: 01 00 00 5E 02 60 [14:34:49]Write i2c OK [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: 01 [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: 01 07 00 [14:34:49]MH_I2C_Read... [14:34:49]Read from MH i2c: 01 07 00 5E 02 00 00 00 00 00 EB 0C 5E [14:34:50]RasterBufferAndPrint [14:34:50]line [14:34:50]line [14:34:50]line [14:34:50]line [14:34:50]line [14:34:50]written 0, free lines is 3313 [14:34:50]MH_Cut [14:34:50]Write to MH i2c: D1 01 00 65 02 01 39 [14:34:50]Write i2c OK [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: D1 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: D1 01 00 [14:34:50]MH_I2C_Read... [14:34:50]Read from MH i2c: D1 01 00 65 02 00 38 [14:34:50]Write to MH i2c: 01 00 00 66 02 68 [14:34:50]Write i2c OK [14:34:50]MH_I2C_Read... [14:34:50]OFD Sender: No OFD packet to send [14:34:50]*** Cut start [14:34:50]*** Purtial cut [14:34:50]*** Stage 1: CUTSNS_PIN = 1 [14:34:51]Read from MH i2c: 01 [14:34:51]MH_I2C_Read... [14:34:51]*** Stop cut motor [14:34:51]*** Cut end [14:34:51]Read from MH i2c: 01 07 00 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 FF 0F 7D [14:34:51]process_action close_receipt done [14:34:51]requested_data is exist [14:34:51]produce_requested_data [14:34:51]requested_item fm.sn is exist - process it [14:34:51]wFMCommunicate request_size=4 [14:34:51]MH_SAM_APDU [14:34:51]CAPDU: 80 11 00 00 [14:34:51]Write to MH i2c: E2 08 00 67 02 80 11 00 00 00 00 00 00 E3 [14:34:51]Write i2c OK [14:34:51]MH_I2C_Read... [14:34:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:51]Read from MH i2c: E2 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: E2 17 00 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: E2 17 00 67 02 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:34:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:34:51]wFMCommunicate OK [14:34:51]requested_item fd.num is exist - process it [14:34:51]SAM_PROTO_GetFieldsCounters [14:34:51]wFMCommunicate request_size=4 [14:34:51]MH_SAM_APDU [14:34:51]CAPDU: 80 13 00 00 [14:34:51]Write to MH i2c: E2 08 00 68 02 80 13 00 00 00 00 00 00 E6 [14:34:51]Write i2c OK [14:34:51]MH_I2C_Read... [14:34:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:51]Read from MH i2c: E2 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: E2 62 00 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: E2 62 00 68 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 07 06 01 00 0E 04 04 00 63 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 80 [14:34: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 07 06 01 00 0E 04 04 00 63 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 [14:34:51]wFMCommunicate OK [14:34:51]SAM_PROTO_GetFieldsCounters done [14:34:51]requested_item shift.num is exist - process it [14:34:51]requested_item shift.opened is exist - process it [14:34:51]req_shift_opened [14:34:51]FM_GetShiftState [14:34:51]SAM_PROTO_GetShiftState [14:34:51]wFMCommunicate request_size=4 [14:34:51]MH_SAM_APDU [14:34:51]CAPDU: 80 13 01 00 [14:34:51]Write to MH i2c: E2 08 00 69 02 80 13 01 00 00 00 00 00 E8 [14:34:51]Write i2c OK [14:34:51]MH_I2C_Read... [14:34:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:51]Read from MH i2c: E2 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: E2 0E 00 [14:34:51]MH_I2C_Read... [14:34:51]Read from MH i2c: E2 0E 00 69 02 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 B0 [14:34:51]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:34:51]wFMCommunicate OK [14:34:51]SAM_PROTO_GetShiftState done [14:34:51]FM_GetShiftState done [14:34:51]req_shift_opened done [14:34:51]requested_item shift.open_date is exist - process it [14:34:51]req_shift_open_date [14:34:51]req_shift_open_date done [14:34:51]produce_requested_data done [14:34:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67079,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [14:34:51]process_action_free close_receipt [14:34:51]json_value_free [14:34:51]json_value_free done [14:34:51]process_json_proto returns [14:34:51]Send response to host [14:34:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67079,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [14:34:51]free response buf [14:34:51]execute_script done [14:34:51]execute_script returns [14:34:51]free content buf [14:34:51]Sock 10.Close socket [14:34:51]Sock 10.Thread stoped [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:05]OFD Sender: No OFD packet to send [14:35:10]OFD Sender: No OFD packet to send [14:35:15]OFD Sender: No OFD packet to send [14:35:20]OFD Sender: No OFD packet to send [14:35:25]OFD Sender: No OFD packet to send [14:35:30]OFD Sender: No OFD packet to send [14:35:35]OFD Sender: No OFD packet to send [14:35:38]accept exits with 7 [14:35:38]New connection [14:35:38]New thread 3067628900 created [14:35:38]Thread 3067485540 joined [14:35:38]Waiting for new connection... [14:35:38] Sock 7.Parse request [14:35:38]Sock 7.Check first char [14:35:38]Sock 7.First char is OK [14:35:38]request: POST /json_proto HTTP/1.0 [14:35:38]Method: POST [14:35:38]URL: /json_proto [14:35:38]Method is POST - this is cgi request [14:35:38]url: /json_proto [14:35:38]query_string will be loaded in cgi processing [14:35:38]execute_cgi json_proto POST (null) [14:35:38]execute_cgi path=json_proto method=POST [14:35:38]POST find Content-Length [14:35:38]Host: 172.17.41.195:8080 [14:35:38]Content-Length: 677 [14:35:38]Content-Type: application/json [14:35:38] [14:35:38]POST finish read [14:35:38]Found Content-Length = 677 [14:35:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506959", "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" ] } } [14:35:38]execute_script... [14:35: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)506959", "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" ] } } [14:35:38]POST & json_proto [14:35:38]process_json_proto [14:35:38]json parsed OK: [14:35:38]protocol is kg_v1.0 [14:35:38]action value=close_receipt [14:35:38]process_action close_receipt [14:35:38]cmd_close_receipt [14:35:38]MH_GetDate [14:35:38]Write to MH i2c: F0 00 00 6A 02 5B [14:35:38]Write i2c OK [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: F0 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: F0 09 00 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: F0 09 00 6A 02 00 BA 76 43 66 FC 21 6F 64 2D [14:35:38]GetLastDocTimeStamp 1715697288 [14:35:38]current date 1715697338 [14:35:38]FM_GetShiftState [14:35:38]SAM_PROTO_GetShiftState [14:35:38]wFMCommunicate request_size=4 [14:35:38]MH_SAM_APDU [14:35:38]CAPDU: 80 13 01 00 [14:35:38]Write to MH i2c: E2 08 00 6B 02 80 13 01 00 00 00 00 00 EA [14:35:38]Write i2c OK [14:35:38]MH_I2C_Read... [14:35:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:38]Read from MH i2c: E2 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 0E 00 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 0E 00 6B 02 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 B2 [14:35:38]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:35:38]wFMCommunicate OK [14:35:38]SAM_PROTO_GetShiftState done [14:35:38]FM_GetShiftState done [14:35:38]opened in 1715646054 [14:35:38]opened+sec_in_day 1715732454 [14:35:38]quantity*price = 30060 [14:35:38]sum+1 = 30061 [14:35:38]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 СНО: Общий режим Чек 87 14.05.2024 14:35 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67080 ФПД: 276288059334040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T143538&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67080&fm=276288059334040&tin=02508201610067®Number=0000000000091845&sum=30000 [14:35:39]StoreToDocumentArchive [14:35:39]shift 355 fd 67080 [14:35:39]save to /storage/0355/doc_00067080 [14:35:39]save last doc name /storage/0355/doc_00067080 to /storage/kkm_last_doc_name [14:35:39]save OK [14:35:39]Clear old archive folders... [14:35:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:35:39]tlvbuf is B6F663A0 [14:35:39]SAM_PROTO_ClearQueue [14:35:39]wFMCommunicate request_size=4 [14:35:39]MH_SAM_APDU [14:35:39]CAPDU: 80 09 00 00 [14:35:39]Write to MH i2c: E2 08 00 78 02 80 09 00 00 00 00 00 00 EC [14:35:39]Write i2c OK [14:35:39]MH_I2C_Read... [14:35:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:39]Read from MH i2c: E2 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: E2 03 00 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: E2 03 00 78 02 00 90 00 EE [14:35:39]RAPDU: 90 00 [14:35:39]wFMCommunicate OK [14:35:39]SAM_PROTO_ClearQueue done [14:35:39]KKMCreateOFDPacket [14:35:39]OFDProtocolAddRootSTLVToBuf [14:35:39]FM_MakeSignedData [14:35:39]FM_MakeSignedData [14:35:39]SAM_PROTO_SignData [14:35:39]wFMCommunicate request_size=4 [14:35:39]MH_SAM_APDU [14:35:39]CAPDU: 80 0D 01 02 [14:35:39]Write to MH i2c: E2 08 00 79 02 80 0D 01 02 00 00 00 00 F4 [14:35:39]Write i2c OK [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: E2 [14:35:39]MH_I2C_Read... [14:35:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:39]Read from MH i2c: E2 03 00 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: E2 03 00 79 02 00 90 00 EF [14:35:39]RAPDU: 90 00 [14:35:39]wFMCommunicate OK [14:35:39]wFMCommunicate request_size=255 [14:35:39]MH_SAM_APDU [14:35: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 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 57 00 00 00 F4 03 04 00 BA 76 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 08 06 01 00 35 04 06 00 FB [14:35:39]Write to MH i2c: E2 02 01 7A 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 57 00 00 00 F4 03 04 00 BA 76 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 08 06 01 00 35 04 06 00 FB 00 00 32 [14:35:39]Write i2c OK [14:35:39]MH_I2C_Read... [14:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:39]Read from MH i2c: E2 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: E2 03 00 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [14:35:39]RAPDU: 90 00 [14:35:39]wFMCommunicate OK [14:35:39]wFMCommunicate request_size=10 [14:35:39]MH_SAM_APDU [14:35:39]CAPDU: 80 0D 02 02 05 48 53 A1 DD 98 [14:35:39]Write to MH i2c: E2 0D 00 7B 02 80 0D 02 02 05 00 48 53 A1 DD 98 00 00 B2 [14:35:39]Write i2c OK [14:35:39]MH_I2C_Read... [14:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:39]Read from MH i2c: E2 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: E2 03 00 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [14:35:39]RAPDU: 90 00 [14:35:39]wFMCommunicate OK [14:35:39]wFMCommunicate request_size=4 [14:35:39]MH_SAM_APDU [14:35:39]CAPDU: 80 0D 03 02 [14:35:39]Write to MH i2c: E2 08 00 7C 02 80 0D 03 02 00 00 00 00 F9 [14:35:39]Write i2c OK [14:35:39]MH_I2C_Read... [14:35:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:40]Read from MH i2c: E2 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 0B 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 0B 00 7C 02 00 CA F8 E8 81 15 EC 6C 2F 90 00 C1 [14:35:40]RAPDU: CA F8 E8 81 15 EC 6C 2F 90 00 [14:35:40]wFMCommunicate OK [14:35:40]SAM_PROTO_SignData done [14:35:40]FM_MakeSignedData done [14:35:40]CreateOFDProtocolMessage [14:35:40]wFMCommunicate request_size=4 [14:35:40]MH_SAM_APDU [14:35:40]CAPDU: 80 11 00 00 [14:35:40]Write to MH i2c: E2 08 00 7D 02 80 11 00 00 00 00 00 00 F9 [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:40]Read from MH i2c: E2 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 17 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 17 00 7D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4F [14:35:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:35:40]wFMCommunicate OK [14:35:40]CreateOFDProtocolMessage done [14:35:40]OFDSenderStorePacket 67080 [14:35:40]StoreOFDPacket docnum=67080 [14:35: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 ED E3 07 01 78 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 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 57 00 00 00 F4 03 04 00 BA 76 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 08 06 01 00 35 04 06 00 FB 48 53 A1 DD 98 CA F8 E8 81 15 EC 6C 2F [14:35:40]CheckFolder [14:35:40]dirname=/storage/ofd_packets [14:35:40]CheckFolder done [14:35:40]ProducePacketName [14:35:40]name=ofd_packets/00067080 [14:35:40]NVStorageSaveData ofd_packets/00067080 [14:35:40]File name is /storage/ofd_packets/00067080 [14:35:40]Write 301 bytes [14:35:40]NVStorageSaveData done [14:35:40]OFDSenderStorePacket done [14:35:40]KKMCreateOFDPacket done [14:35:40]NVStorageSaveData kkm_last_timestamp [14:35:40]File name is /storage/kkm_last_timestamp [14:35:40]Write 4 bytes [14:35:40]NVStorageSaveData done [14:35:40]ExternCall_PrintAddStr [14:35:40]wPrintStart [14:35:40]Write to MH i2c: 01 00 00 7E 02 80 [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: 01 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: 01 07 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: 01 07 00 7E 02 00 00 00 00 00 FF 0F 95 [14:35:40]RasterBufferAndPrint [14:35:40]line Счет N : (1)506959 [14:35:40]line ИНН: 02508201610067 [14:35:40]line Контрольно-Кассовый Чек [14:35:40]line ПРОДАЖА [14:35:40]line ТРК (МРК, ГНК) : 33 [14:35:40]line Товар: 2710124130 [14:35:40]line Аи-92-К-5 [14:35:40]line 4.500 * 66.80 [14:35:40]line = 300.60 [14:35:40]line НДС 12% НСП 1% [14:35:40]line > о реализуемом товаре [14:35:40]line ОКРУГЛЕНИЕ: -0.60 [14:35:40]line ИТОГО: 300.00 [14:35:40]line Внесено: 300.00 [14:35:40]line СДАЧА: 0.00 [14:35:40]line НСП 1% : 2.66 [14:35:40]line НДС 12% : 31.92 [14:35:40]line Наличными: 300.00 [14:35:40]line Безнал.: 0.00 [14:35:40]line Место: АЗС № 91 "Партнер Нефть" [14:35:40]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:35:40]line СНО: Общий режим [14:35:40]line Чек 87 14.05.2024 14:35 [14:35:40]line Смена: 355 ФФД: 1.0 [14:35:40]line ЗНМ: 0300000119 [14:35:40]line РНМ: 0000000000091845 [14:35:40]line Версия ККМ: 001 [14:35:40]line ФМ: 0000000000871829 [14:35:40]line ФД: 67080 [14:35:40]line ФПД: 276288059334040 [14:35:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T143538&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67080&fm=276288059334040&tin=02508201610067®Number=0000000000091845&sum=30000 [14:35:40]OFD Sender: Processing packet 67080 [packets to send 35, broken 34] [14:35:40]ProducePacketName [14:35:40]name=ofd_packets/00067080 [14:35:40]OFD Sender: To server: pG, [14:35:40]CommunicateWithHost lk.salyk.kg:30040 [14:35:40]ConnectInit lk.salyk.kg [14:35:40]written 0, free lines is 4095 [14:35:40]Connected sock=10 [14:35: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 ED E3 07 01 78 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 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 57 00 00 00 F4 03 04 00 BA 76 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 08 06 01 00 35 04 06 00 FB 48 53 A1 DD 98 CA F8 E8 81 15 EC 6C 2F [14:35: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 2F A0 47 00 E7 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 08 06 01 00 F4 03 04 00 9A 1E 43 66 B6 04 01 00 00 2D E7 CA 77 A1 8D 54 51 [14:35:40]CommunicateWithHost err = 0 [14:35:40]CheckOFDResponse [14:35:40]1017 (14) - 77093643461234 [14:35:40]1041 (16) - 0000000000871829 [14:35:40]1040 (4) - 67080 [14:35:40]1012 (4) - 14.05.2024 08:19 [14:35:40]1206 (1) - 0 [14:35:40]OFD Sender: Remove packet 67080 [14:35:40]ProducePacketName [14:35:40]name=ofd_packets/00067080 [14:35:40]NVStorageDeleteData [14:35:40]Write to MH i2c: 01 00 00 A8 02 AA [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: 01 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: 01 07 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: 01 07 00 A8 02 00 00 00 00 00 D8 0C 95 [14:35:40]RasterBufferAndPrint [14:35:40]line [14:35:40]line [14:35:40]line [14:35:40]line [14:35:40]line [14:35:40]written 0, free lines is 3295 [14:35:40]MH_Cut [14:35:40]Write to MH i2c: D1 01 00 AF 02 01 83 [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: D1 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: D1 01 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: D1 01 00 AF 02 00 82 [14:35:40]Write to MH i2c: 01 00 00 B0 02 B2 [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:41]OFD Sender: No OFD packet to send [14:35:41]*** Cut start [14:35:41]*** Purtial cut [14:35:41]*** CUTSNS_PIN = 0 [14:35:41]*** Stage 1: CUTSNS_PIN = 1 [14:35:43]Read from MH i2c: 01 [14:35:43]MH_I2C_Read... [14:35:43]*** Stop cut motor [14:35:43]*** Cut end [14:35:43]Read from MH i2c: 01 07 00 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: 01 07 00 B0 02 00 00 00 00 00 FF 0F C7 [14:35:43]process_action close_receipt done [14:35:43]requested_data is exist [14:35:43]produce_requested_data [14:35:43]requested_item fm.sn is exist - process it [14:35:43]wFMCommunicate request_size=4 [14:35:43]MH_SAM_APDU [14:35:43]CAPDU: 80 11 00 00 [14:35:43]Write to MH i2c: E2 08 00 B1 02 80 11 00 00 00 00 00 00 2D [14:35:43]Write i2c OK [14:35:43]MH_I2C_Read... [14:35:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:43]Read from MH i2c: E2 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: E2 17 00 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: E2 17 00 B1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 83 [14:35: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:35:43]wFMCommunicate OK [14:35:43]requested_item fd.num is exist - process it [14:35:43]SAM_PROTO_GetFieldsCounters [14:35:43]wFMCommunicate request_size=4 [14:35:43]MH_SAM_APDU [14:35:43]CAPDU: 80 13 00 00 [14:35:43]Write to MH i2c: E2 08 00 B2 02 80 13 00 00 00 00 00 00 30 [14:35:43]Write i2c OK [14:35:43]MH_I2C_Read... [14:35:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:43]Read from MH i2c: E2 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: E2 62 00 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: E2 62 00 B2 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 08 06 01 00 0E 04 04 00 63 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 CE [14:35: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 08 06 01 00 0E 04 04 00 63 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 [14:35:43]wFMCommunicate OK [14:35:43]SAM_PROTO_GetFieldsCounters done [14:35:43]requested_item shift.num is exist - process it [14:35:43]requested_item shift.opened is exist - process it [14:35:43]req_shift_opened [14:35:43]FM_GetShiftState [14:35:43]SAM_PROTO_GetShiftState [14:35:43]wFMCommunicate request_size=4 [14:35:43]MH_SAM_APDU [14:35:43]CAPDU: 80 13 01 00 [14:35:43]Write to MH i2c: E2 08 00 B3 02 80 13 01 00 00 00 00 00 32 [14:35:43]Write i2c OK [14:35:43]MH_I2C_Read... [14:35:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:43]Read from MH i2c: E2 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: E2 0E 00 [14:35:43]MH_I2C_Read... [14:35:43]Read from MH i2c: E2 0E 00 B3 02 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 FA [14:35:43]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:35:43]wFMCommunicate OK [14:35:43]SAM_PROTO_GetShiftState done [14:35:43]FM_GetShiftState done [14:35:43]req_shift_opened done [14:35:43]requested_item shift.open_date is exist - process it [14:35:43]req_shift_open_date [14:35:43]req_shift_open_date done [14:35:43]produce_requested_data done [14:35:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67080,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [14:35:43]process_action_free close_receipt [14:35:43]json_value_free [14:35:43]json_value_free done [14:35:43]process_json_proto returns [14:35:43]Send response to host [14:35:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67080,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [14:35:43]free response buf [14:35:43]execute_script done [14:35:43]execute_script returns [14:35:43]free content buf [14:35:43]Sock 7.Close socket [14:35:43]Sock 7.Thread stoped [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:36]accept exits with 9 [14:36:36]New connection [14:36:36]New thread 3067485540 created [14:36:36]Thread 3067628900 joined [14:36:36]Waiting for new connection... [14:36:36] Sock 9.Parse request [14:36:36]Sock 9.Check first char [14:36:36]Sock 9.First char is OK [14:36:36]request: POST /json_proto HTTP/1.0 [14:36:36]Method: POST [14:36:36]URL: /json_proto [14:36:36]Method is POST - this is cgi request [14:36:36]url: /json_proto [14:36:36]query_string will be loaded in cgi processing [14:36:36]execute_cgi json_proto POST (null) [14:36:36]execute_cgi path=json_proto method=POST [14:36:36]POST find Content-Length [14:36:36]Host: 172.17.41.195:8080 [14:36:36]Content-Length: 816 [14:36:36]Content-Type: application/json [14:36:36] [14:36:36]POST finish read [14:36:36]Found Content-Length = 816 [14:36:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506960", "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: \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" ] } } [14:36:36]execute_script... [14:36: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)506960", "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: \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" ] } } [14:36:36]POST & json_proto [14:36:36]process_json_proto [14:36:36]json parsed OK: [14:36:36]protocol is kg_v1.0 [14:36:36]action value=close_receipt [14:36:36]process_action close_receipt [14:36:36]cmd_close_receipt [14:36:36]MH_GetDate [14:36:36]Write to MH i2c: F0 00 00 B4 02 A5 [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: F0 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: F0 09 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: F0 09 00 B4 02 00 F5 76 43 66 FC 21 6F 64 B2 [14:36:36]GetLastDocTimeStamp 1715697338 [14:36:36]current date 1715697397 [14:36:36]FM_GetShiftState [14:36:36]SAM_PROTO_GetShiftState [14:36:36]wFMCommunicate request_size=4 [14:36:36]MH_SAM_APDU [14:36:36]CAPDU: 80 13 01 00 [14:36:36]Write to MH i2c: E2 08 00 B5 02 80 13 01 00 00 00 00 00 34 [14:36:36]Write i2c OK [14:36:36]MH_I2C_Read... [14:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:36]Read from MH i2c: E2 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 0E 00 [14:36:36]MH_I2C_Read... [14:36:36]Read from MH i2c: E2 0E 00 B5 02 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 FC [14:36:36]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:36:36]wFMCommunicate OK [14:36:36]SAM_PROTO_GetShiftState done [14:36:36]FM_GetShiftState done [14:36:36]opened in 1715646054 [14:36:36]opened+sec_in_day 1715732454 [14:36:36]quantity*price = 100023 [14:36:36]sum+1 = 100024 [14:36:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 88 14.05.2024 14:36 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67081 ФПД: 215914590700184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T143637&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67081&fm=215914590700184&tin=02508201610067®Number=0000000000091845&sum=100023 [14:36:37]StoreToDocumentArchive [14:36:37]shift 355 fd 67081 [14:36:37]save to /storage/0355/doc_00067081 [14:36:37]save last doc name /storage/0355/doc_00067081 to /storage/kkm_last_doc_name [14:36:37]save OK [14:36:37]Clear old archive folders... [14:36:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:36:37]tlvbuf is B6F7F940 [14:36:37]SAM_PROTO_ClearQueue [14:36:37]wFMCommunicate request_size=4 [14:36:37]MH_SAM_APDU [14:36:37]CAPDU: 80 09 00 00 [14:36:37]Write to MH i2c: E2 08 00 C2 02 80 09 00 00 00 00 00 00 36 [14:36:37]Write i2c OK [14:36:37]MH_I2C_Read... [14:36:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:38]Read from MH i2c: E2 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [14:36:38]RAPDU: 90 00 [14:36:38]wFMCommunicate OK [14:36:38]SAM_PROTO_ClearQueue done [14:36:38]KKMCreateOFDPacket [14:36:38]OFDProtocolAddRootSTLVToBuf [14:36:38]FM_MakeSignedData [14:36:38]FM_MakeSignedData [14:36:38]SAM_PROTO_SignData [14:36:38]wFMCommunicate request_size=4 [14:36:38]MH_SAM_APDU [14:36:38]CAPDU: 80 0D 01 02 [14:36:38]Write to MH i2c: E2 08 00 C3 02 80 0D 01 02 00 00 00 00 3E [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:38]Read from MH i2c: E2 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [14:36:38]RAPDU: 90 00 [14:36:38]wFMCommunicate OK [14:36:38]wFMCommunicate request_size=255 [14:36:38]MH_SAM_APDU [14:36:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 58 00 00 00 F4 03 04 00 F5 76 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 09 06 01 00 35 04 06 00 C4 5F 88 7B [14:36:38]Write to MH i2c: E2 02 01 C4 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 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 58 00 00 00 F4 03 04 00 F5 76 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 09 06 01 00 35 04 06 00 C4 5F 88 7B 00 00 4C [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 [14:36:38]MH_I2C_Read... [14:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:38]Read from MH i2c: E2 03 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [14:36:38]RAPDU: 90 00 [14:36:38]wFMCommunicate OK [14:36:38]wFMCommunicate request_size=7 [14:36:38]MH_SAM_APDU [14:36:38]CAPDU: 80 0D 02 02 02 02 98 [14:36:38]Write to MH i2c: E2 0A 00 C5 02 80 0D 02 02 02 00 02 98 00 00 DF [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:38]Read from MH i2c: E2 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [14:36:38]RAPDU: 90 00 [14:36:38]wFMCommunicate OK [14:36:38]wFMCommunicate request_size=4 [14:36:38]MH_SAM_APDU [14:36:38]CAPDU: 80 0D 03 02 [14:36:38]Write to MH i2c: E2 08 00 C6 02 80 0D 03 02 00 00 00 00 43 [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:38]Read from MH i2c: E2 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 0B 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 0B 00 C6 02 00 DF 89 E1 14 88 BB 1E C9 90 00 CB [14:36:38]RAPDU: DF 89 E1 14 88 BB 1E C9 90 00 [14:36:38]wFMCommunicate OK [14:36:38]SAM_PROTO_SignData done [14:36:38]FM_MakeSignedData done [14:36:38]CreateOFDProtocolMessage [14:36:38]wFMCommunicate request_size=4 [14:36:38]MH_SAM_APDU [14:36:38]CAPDU: 80 11 00 00 [14:36:38]Write to MH i2c: E2 08 00 C7 02 80 11 00 00 00 00 00 00 43 [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:38]Read from MH i2c: E2 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 17 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: E2 17 00 C7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 99 [14:36: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:36:38]wFMCommunicate OK [14:36:38]CreateOFDProtocolMessage done [14:36:38]OFDSenderStorePacket 67081 [14:36:38]StoreOFDPacket docnum=67081 [14:36:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 A0 38 04 01 7A D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 58 00 00 00 F4 03 04 00 F5 76 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 09 06 01 00 35 04 06 00 C4 5F 88 7B 02 98 DF 89 E1 14 88 BB 1E C9 [14:36:38]CheckFolder [14:36:38]dirname=/storage/ofd_packets [14:36:38]CheckFolder done [14:36:38]ProducePacketName [14:36:38]name=ofd_packets/00067081 [14:36:38]NVStorageSaveData ofd_packets/00067081 [14:36:38]File name is /storage/ofd_packets/00067081 [14:36:38]Write 298 bytes [14:36:38]NVStorageSaveData done [14:36:38]OFDSenderStorePacket done [14:36:38]KKMCreateOFDPacket done [14:36:38]NVStorageSaveData kkm_last_timestamp [14:36:38]File name is /storage/kkm_last_timestamp [14:36:38]Write 4 bytes [14:36:38]NVStorageSaveData done [14:36:38]ExternCall_PrintAddStr [14:36:38]wPrintStart [14:36:38]Write to MH i2c: 01 00 00 C8 02 CA [14:36:38]Write i2c OK [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: 01 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: 01 07 00 [14:36:38]MH_I2C_Read... [14:36:38]Read from MH i2c: 01 07 00 C8 02 00 00 00 00 00 FF 0F DF [14:36:38]RasterBufferAndPrint [14:36:38]line Счет N : (1)506960 [14:36:38]line ИНН: 02508201610067 [14:36:38]line Контрольно-Кассовый Чек [14:36:38]line ПРОДАЖА [14:36:38]line ТРК (МРК, ГНК) : 21 [14:36:38]line Товар: 2710194210 [14:36:38]line ДТ-К-5 [14:36:38]line 13.390 * 74.70 [14:36:38]line = 1000.23 [14:36:38]line НДС 12% НСП 1% [14:36:38]line > о реализуемом товаре [14:36:38]line ИТОГО: 1000.23 [14:36:38]line НСП 1% : 8.85 [14:36:38]line НДС 12% : 106.22 [14:36:38]line Наличными: 0.00 [14:36:38]line Безнал.: 1000.23 [14:36:38]line Место: АЗС № 91 "Партнер Нефть" [14:36:38]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:36:38]line СНО: Общий режим [14:36:38]line Чек 88 14.05.2024 14:36 [14:36:38]line Смена: 355 ФФД: 1.0 [14:36:38]line ЗНМ: 0300000119 [14:36:38]line РНМ: 0000000000091845 [14:36:38]line Версия ККМ: 001 [14:36:38]line Платежная система: Бакай Банк [14:36:38]line ФМ: 0000000000871829 [14:36:38]line ФД: 67081 [14:36:38]line ФПД: 215914590700184 [14:36:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T143637&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67081&fm=215914590700184&tin=02508201610067®Number=0000000000091845&sum=100023 [14:36:38]OFD Sender: Processing packet 67081 [packets to send 35, broken 34] [14:36:38]ProducePacketName [14:36:38]name=ofd_packets/00067081 [14:36:38]OFD Sender: To server: pG, [14:36:38]CommunicateWithHost lk.salyk.kg:30040 [14:36:38]ConnectInit lk.salyk.kg [14:36:38]written 0, free lines is 4095 [14:36:38]Connected sock=10 [14:36:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 A0 38 04 01 7A D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 58 00 00 00 F4 03 04 00 F5 76 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 09 06 01 00 35 04 06 00 C4 5F 88 7B 02 98 DF 89 E1 14 88 BB 1E C9 [14:36: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 4B D9 47 00 68 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 09 06 01 00 F4 03 04 00 D5 1E 43 66 B6 04 01 00 00 3D FB DC CE 0B 35 8B C0 [14:36:39]CommunicateWithHost err = 0 [14:36:39]CheckOFDResponse [14:36:39]1017 (14) - 77093643461234 [14:36:39]1041 (16) - 0000000000871829 [14:36:39]1040 (4) - 67081 [14:36:39]1012 (4) - 14.05.2024 08:20 [14:36:39]1206 (1) - 0 [14:36:39]OFD Sender: Remove packet 67081 [14:36:39]ProducePacketName [14:36:39]name=ofd_packets/00067081 [14:36:39]NVStorageDeleteData [14:36:39]Write to MH i2c: 01 00 00 F1 02 F3 [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: 01 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: 01 07 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: 01 07 00 F1 02 00 00 00 00 00 EA 0C F0 [14:36:39]RasterBufferAndPrint [14:36:39]line [14:36:39]line [14:36:39]line [14:36:39]line [14:36:39]line [14:36:39]written 0, free lines is 3311 [14:36:39]MH_Cut [14:36:39]Write to MH i2c: D1 01 00 F8 02 01 CC [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: D1 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: D1 01 00 [14:36:39]MH_I2C_Read... [14:36:39]Read from MH i2c: D1 01 00 F8 02 00 CB [14:36:39]Write to MH i2c: 01 00 00 F9 02 FB [14:36:39]Write i2c OK [14:36:39]MH_I2C_Read... [14:36:39]OFD Sender: No OFD packet to send [14:36:40]*** Cut start [14:36:40]*** Purtial cut [14:36:40]*** Stage 1: CUTSNS_PIN = 1 [14:36:40]Read from MH i2c: 01 [14:36:40]MH_I2C_Read... [14:36:40]*** Stop cut motor [14:36:40]*** Cut end [14:36:40]Read from MH i2c: 01 07 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: 01 07 00 F9 02 00 00 00 00 00 FF 0F 10 [14:36:40]process_action close_receipt done [14:36:40]requested_data is exist [14:36:40]produce_requested_data [14:36:40]requested_item fm.sn is exist - process it [14:36:40]wFMCommunicate request_size=4 [14:36:40]MH_SAM_APDU [14:36:40]CAPDU: 80 11 00 00 [14:36:40]Write to MH i2c: E2 08 00 FA 02 80 11 00 00 00 00 00 00 76 [14:36:40]Write i2c OK [14:36:40]MH_I2C_Read... [14:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:40]Read from MH i2c: E2 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 17 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 17 00 FA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CC [14:36:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:36:40]wFMCommunicate OK [14:36:40]requested_item fd.num is exist - process it [14:36:40]SAM_PROTO_GetFieldsCounters [14:36:40]wFMCommunicate request_size=4 [14:36:40]MH_SAM_APDU [14:36:40]CAPDU: 80 13 00 00 [14:36:40]Write to MH i2c: E2 08 00 FB 02 80 13 00 00 00 00 00 00 79 [14:36:40]Write i2c OK [14:36:40]MH_I2C_Read... [14:36:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:40]Read from MH i2c: E2 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 62 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 62 00 FB 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 09 06 01 00 0E 04 04 00 63 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 1B [14:36: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 09 06 01 00 0E 04 04 00 63 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 [14:36:40]wFMCommunicate OK [14:36:40]SAM_PROTO_GetFieldsCounters done [14:36:40]requested_item shift.num is exist - process it [14:36:40]requested_item shift.opened is exist - process it [14:36:40]req_shift_opened [14:36:40]FM_GetShiftState [14:36:40]SAM_PROTO_GetShiftState [14:36:40]wFMCommunicate request_size=4 [14:36:40]MH_SAM_APDU [14:36:40]CAPDU: 80 13 01 00 [14:36:40]Write to MH i2c: E2 08 00 FC 02 80 13 01 00 00 00 00 00 7B [14:36:40]Write i2c OK [14:36:40]MH_I2C_Read... [14:36:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:40]Read from MH i2c: E2 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 0E 00 [14:36:40]MH_I2C_Read... [14:36:40]Read from MH i2c: E2 0E 00 FC 02 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 43 [14:36:40]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:36:40]wFMCommunicate OK [14:36:40]SAM_PROTO_GetShiftState done [14:36:40]FM_GetShiftState done [14:36:40]req_shift_opened done [14:36:40]requested_item shift.open_date is exist - process it [14:36:40]req_shift_open_date [14:36:40]req_shift_open_date done [14:36:40]produce_requested_data done [14:36:40]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67081,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [14:36:40]process_action_free close_receipt [14:36:40]json_value_free [14:36:40]json_value_free done [14:36:40]process_json_proto returns [14:36:40]Send response to host [14:36:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67081,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [14:36:40]free response buf [14:36:40]execute_script done [14:36:40]execute_script returns [14:36:40]free content buf [14:36:40]Sock 9.Close socket [14:36:40]Sock 9.Thread stoped [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:02]accept exits with 7 [14:38:02]New connection [14:38:02]New thread 3067628900 created [14:38:02]Thread 3067485540 joined [14:38:02]Waiting for new connection... [14:38:02] Sock 7.Parse request [14:38:02]Sock 7.Check first char [14:38:02]Sock 7.First char is OK [14:38:02]request: POST /json_proto HTTP/1.0 [14:38:02]Method: POST [14:38:02]URL: /json_proto [14:38:02]Method is POST - this is cgi request [14:38:02]url: /json_proto [14:38:02]query_string will be loaded in cgi processing [14:38:02]execute_cgi json_proto POST (null) [14:38:02]execute_cgi path=json_proto method=POST [14:38:02]POST find Content-Length [14:38:02]Host: 172.17.41.195:8080 [14:38:02]Content-Length: 622 [14:38:02]Content-Type: application/json [14:38:02] [14:38:02]POST finish read [14:38:02]Found Content-Length = 622 [14:38:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12051", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 128.00, "quantity" : 1.000, "sum" : 128.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 128.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:02]execute_script... [14:38: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 : (3)12051", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 128.00, "quantity" : 1.000, "sum" : 128.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 128.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:02]POST & json_proto [14:38:02]process_json_proto [14:38:02]json parsed OK: [14:38:02]protocol is kg_v1.0 [14:38:02]action value=close_receipt [14:38:02]process_action close_receipt [14:38:02]cmd_close_receipt [14:38:02]MH_GetDate [14:38:02]Write to MH i2c: F0 00 00 FD 02 EE [14:38:02]Write i2c OK [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: F0 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: F0 09 00 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: F0 09 00 FD 02 00 4A 77 43 66 FC 21 6F 64 51 [14:38:02]GetLastDocTimeStamp 1715697397 [14:38:02]current date 1715697482 [14:38:02]FM_GetShiftState [14:38:02]SAM_PROTO_GetShiftState [14:38:02]wFMCommunicate request_size=4 [14:38:02]MH_SAM_APDU [14:38:02]CAPDU: 80 13 01 00 [14:38:02]Write to MH i2c: E2 08 00 FE 02 80 13 01 00 00 00 00 00 7D [14:38:02]Write i2c OK [14:38:02]MH_I2C_Read... [14:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:02]Read from MH i2c: E2 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 0E 00 [14:38:02]MH_I2C_Read... [14:38:02]Read from MH i2c: E2 0E 00 FE 02 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 45 [14:38:02]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:38:02]wFMCommunicate OK [14:38:02]SAM_PROTO_GetShiftState done [14:38:02]FM_GetShiftState done [14:38:02]opened in 1715646054 [14:38:02]opened+sec_in_day 1715732454 [14:38:02]quantity*price = 12800 [14:38:02]sum+1 = 12801 [14:38:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 128.00 НСП 1% : 1.13 НДС 12% : 13.59 Наличными: 128.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 89 14.05.2024 14:38 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67082 ФПД: 275629387270848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T143802&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67082&fm=275629387270848&tin=02508201610067®Number=0000000000091845&sum=12800 0 [14:38:03]StoreToDocumentArchive [14:38:03]shift 355 fd 67082 [14:38:03]save to /storage/0355/doc_00067082 [14:38:03]save last doc name /storage/0355/doc_00067082 to /storage/kkm_last_doc_name [14:38:03]save OK [14:38:03]Clear old archive folders... [14:38:03]ProcessDocumentItem done err = 0, tmpTLVsize=275 [14:38:03]tlvbuf is 0082B330 [14:38:03]SAM_PROTO_ClearQueue [14:38:03]wFMCommunicate request_size=4 [14:38:03]MH_SAM_APDU [14:38:03]CAPDU: 80 09 00 00 [14:38:03]Write to MH i2c: E2 08 00 0B 03 80 09 00 00 00 00 00 00 80 [14:38:03]Write i2c OK [14:38:03]MH_I2C_Read... [14:38:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:03]Read from MH i2c: E2 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: E2 03 00 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [14:38:03]RAPDU: 90 00 [14:38:03]wFMCommunicate OK [14:38:03]SAM_PROTO_ClearQueue done [14:38:03]KKMCreateOFDPacket [14:38:03]OFDProtocolAddRootSTLVToBuf [14:38:03]FM_MakeSignedData [14:38:03]FM_MakeSignedData [14:38:03]SAM_PROTO_SignData [14:38:03]wFMCommunicate request_size=4 [14:38:03]MH_SAM_APDU [14:38:03]CAPDU: 80 0D 01 02 [14:38:03]Write to MH i2c: E2 08 00 0C 03 80 0D 01 02 00 00 00 00 88 [14:38:03]Write i2c OK [14:38:03]MH_I2C_Read... [14:38:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:03]Read from MH i2c: E2 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: E2 03 00 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [14:38:03]RAPDU: 90 00 [14:38:03]wFMCommunicate OK [14:38:03]wFMCommunicate request_size=255 [14:38:03]MH_SAM_APDU [14:38:03]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 4A 77 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 [14:38:03]Write to MH i2c: E2 02 01 0D 03 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 4A 77 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 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 E6 [14:38:03]Write i2c OK [14:38:03]MH_I2C_Read... [14:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:03]Read from MH i2c: E2 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: E2 03 00 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [14:38:03]RAPDU: 90 00 [14:38:03]wFMCommunicate OK [14:38:03]wFMCommunicate request_size=34 [14:38:03]MH_SAM_APDU [14:38:03]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0A 06 01 00 35 04 06 00 FA AE F7 B7 CA C0 [14:38:03]Write to MH i2c: E2 25 00 0E 03 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0A 06 01 00 35 04 06 00 FA AE F7 B7 CA C0 00 00 40 [14:38:03]Write i2c OK [14:38:03]MH_I2C_Read... [14:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:03]Read from MH i2c: E2 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: E2 03 00 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [14:38:03]RAPDU: 90 00 [14:38:03]wFMCommunicate OK [14:38:03]wFMCommunicate request_size=4 [14:38:03]MH_SAM_APDU [14:38:03]CAPDU: 80 0D 03 02 [14:38:03]Write to MH i2c: E2 08 00 0F 03 80 0D 03 02 00 00 00 00 8D [14:38:03]Write i2c OK [14:38:03]MH_I2C_Read... [14:38:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:03]Read from MH i2c: E2 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: E2 0B 00 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: E2 0B 00 0F 03 00 75 7C D8 CC A4 A7 00 F2 90 00 60 [14:38:03]RAPDU: 75 7C D8 CC A4 A7 00 F2 90 00 [14:38:03]wFMCommunicate OK [14:38:03]SAM_PROTO_SignData done [14:38:03]FM_MakeSignedData done [14:38:03]CreateOFDProtocolMessage [14:38:03]wFMCommunicate request_size=4 [14:38:03]MH_SAM_APDU [14:38:03]CAPDU: 80 11 00 00 [14:38:03]Write to MH i2c: E2 08 00 10 03 80 11 00 00 00 00 00 00 8D [14:38:03]Write i2c OK [14:38:03]MH_I2C_Read... [14:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:03]Read from MH i2c: E2 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: E2 17 00 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: E2 17 00 10 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E3 [14:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:38:03]wFMCommunicate OK [14:38:03]CreateOFDProtocolMessage done [14:38:03]OFDSenderStorePacket 67082 [14:38:03]StoreOFDPacket docnum=67082 [14:38: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 27 01 00 00 D2 92 1F 01 B6 91 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 4A 77 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0A 06 01 00 35 04 06 00 FA AE F7 B7 CA C0 75 7C D8 CC A4 A7 00 F2 [14:38:03]CheckFolder [14:38:03]dirname=/storage/ofd_packets [14:38:03]CheckFolder done [14:38:03]ProducePacketName [14:38:03]name=ofd_packets/00067082 [14:38:03]NVStorageSaveData ofd_packets/00067082 [14:38:03]File name is /storage/ofd_packets/00067082 [14:38:03]Write 325 bytes [14:38:03]NVStorageSaveData done [14:38:03]OFDSenderStorePacket done [14:38:03]KKMCreateOFDPacket done [14:38:03]NVStorageSaveData kkm_last_timestamp [14:38:03]File name is /storage/kkm_last_timestamp [14:38:03]Write 4 bytes [14:38:03]NVStorageSaveData done [14:38:03]ExternCall_PrintAddStr [14:38:03]wPrintStart [14:38:03]Write to MH i2c: 01 00 00 11 03 14 [14:38:03]Write i2c OK [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: 01 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: 01 07 00 [14:38:03]MH_I2C_Read... [14:38:03]Read from MH i2c: 01 07 00 11 03 00 00 00 00 00 FF 0F 29 [14:38:03]RasterBufferAndPrint [14:38:03]line Счет N : (3)12051 [14:38:03]line ИНН: 02508201610067 [14:38:03]line Контрольно-Кассовый Чек [14:38:03]line ПРОДАЖА [14:38:03]line Товар: 48743587 [14:38:03]line Сигареты Winston XStyle Silver [14:38:03]line 1.000 * 128.00 [14:38:03]line = 128.00 [14:38:03]line НДС 12% НСП 1% [14:38:03]line > о реализуемом товаре [14:38:03]line ИТОГО: 128.00 [14:38:03]line НСП 1% : 1.13 [14:38:03]line НДС 12% : 13.59 [14:38:03]line Наличными: 128.00 [14:38:03]line Безнал.: 0.00 [14:38:03]line Место: АЗС № 91 "Партнер Нефть" [14:38:03]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:38:03]line СНО: Общий режим [14:38:03]line Чек 89 14.05.2024 14:38 [14:38:03]line Смена: 355 ФФД: 1.0 [14:38:03]line ЗНМ: 0300000119 [14:38:03]line РНМ: 0000000000091845 [14:38:03]line Версия ККМ: 001 [14:38:03]line ФМ: 0000000000871829 [14:38:03]line ФД: 67082 [14:38:03]line ФПД: 275629387270848 [14:38:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T143802&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67082&fm=275629387270848&tin=02508201610067®Number=0000000000091845&sum=12800 [14:38:04]line 0 [14:38:04]OFD Sender: Processing packet 67082 [packets to send 35, broken 34] [14:38:04]ProducePacketName [14:38:04]name=ofd_packets/00067082 [14:38:04]OFD Sender: To server: pG, [14:38:04]CommunicateWithHost lk.salyk.kg:30040 [14:38:04]ConnectInit lk.salyk.kg [14:38:04]written 0, free lines is 4095 [14:38:04]Connected sock=10 [14:38: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 27 01 00 00 D2 92 1F 01 B6 91 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 4A 77 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0A 06 01 00 35 04 06 00 FA AE F7 B7 CA C0 75 7C D8 CC A4 A7 00 F2 [14:38: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 CB 72 47 00 89 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0A 06 01 00 F4 03 04 00 2A 1F 43 66 B6 04 01 00 00 AE AF 21 D7 92 D1 D5 27 [14:38:04]CommunicateWithHost err = 0 [14:38:04]CheckOFDResponse [14:38:04]1017 (14) - 77093643461234 [14:38:04]1041 (16) - 0000000000871829 [14:38:04]1040 (4) - 67082 [14:38:04]1012 (4) - 14.05.2024 08:22 [14:38:04]1206 (1) - 0 [14:38:04]OFD Sender: Remove packet 67082 [14:38:04]ProducePacketName [14:38:04]name=ofd_packets/00067082 [14:38:04]NVStorageDeleteData [14:38:04]Write to MH i2c: 01 00 00 39 03 3C [14:38:04]Write i2c OK [14:38:04]MH_I2C_Read... [14:38:04]Read from MH i2c: 01 [14:38:04]MH_I2C_Read... [14:38:04]Read from MH i2c: 01 07 00 [14:38:04]MH_I2C_Read... [14:38:04]Read from MH i2c: 01 07 00 39 03 00 00 00 00 00 E4 0C 33 [14:38:04]RasterBufferAndPrint [14:38:04]line [14:38:04]line [14:38:04]line [14:38:04]line [14:38:04]line [14:38:04]written 0, free lines is 3304 [14:38:04]MH_Cut [14:38:04]Write to MH i2c: D1 01 00 40 03 01 15 [14:38:04]Write i2c OK [14:38:04]MH_I2C_Read... [14:38:04]Read from MH i2c: D1 [14:38:04]MH_I2C_Read... [14:38:04]Read from MH i2c: D1 01 00 [14:38:04]MH_I2C_Read... [14:38:04]Read from MH i2c: D1 01 00 40 03 00 14 [14:38:04]Write to MH i2c: 01 00 00 41 03 44 [14:38:04]Write i2c OK [14:38:04]MH_I2C_Read... [14:38:04]OFD Sender: No OFD packet to send [14:38:05]*** Cut start [14:38:05]*** Purtial cut [14:38:05]*** CUTSNS_PIN = 0 [14:38:05]*** Stage 1: CUTSNS_PIN = 1 [14:38:07]Read from MH i2c: 01 [14:38:07]MH_I2C_Read... [14:38:07]*** Stop cut motor [14:38:07]*** Cut end [14:38:07]Read from MH i2c: 01 07 00 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: 01 07 00 41 03 00 00 00 00 00 FF 0F 59 [14:38:07]process_action close_receipt done [14:38:07]requested_data is exist [14:38:07]produce_requested_data [14:38:07]requested_item fm.sn is exist - process it [14:38:07]wFMCommunicate request_size=4 [14:38:07]MH_SAM_APDU [14:38:07]CAPDU: 80 11 00 00 [14:38:07]Write to MH i2c: E2 08 00 42 03 80 11 00 00 00 00 00 00 BF [14:38:07]Write i2c OK [14:38:07]MH_I2C_Read... [14:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:07]Read from MH i2c: E2 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 17 00 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 17 00 42 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 15 [14:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:38:07]wFMCommunicate OK [14:38:07]requested_item fd.num is exist - process it [14:38:07]SAM_PROTO_GetFieldsCounters [14:38:07]wFMCommunicate request_size=4 [14:38:07]MH_SAM_APDU [14:38:07]CAPDU: 80 13 00 00 [14:38:07]Write to MH i2c: E2 08 00 43 03 80 13 00 00 00 00 00 00 C2 [14:38:07]Write i2c OK [14:38:07]MH_I2C_Read... [14:38:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:07]Read from MH i2c: E2 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 62 00 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 62 00 43 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 0A 06 01 00 0E 04 04 00 63 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 68 [14:38: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 0A 06 01 00 0E 04 04 00 63 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 [14:38:07]wFMCommunicate OK [14:38:07]SAM_PROTO_GetFieldsCounters done [14:38:07]requested_item shift.num is exist - process it [14:38:07]requested_item shift.opened is exist - process it [14:38:07]req_shift_opened [14:38:07]FM_GetShiftState [14:38:07]SAM_PROTO_GetShiftState [14:38:07]wFMCommunicate request_size=4 [14:38:07]MH_SAM_APDU [14:38:07]CAPDU: 80 13 01 00 [14:38:07]Write to MH i2c: E2 08 00 44 03 80 13 01 00 00 00 00 00 C4 [14:38:07]Write i2c OK [14:38:07]MH_I2C_Read... [14:38:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:07]Read from MH i2c: E2 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 0E 00 [14:38:07]MH_I2C_Read... [14:38:07]Read from MH i2c: E2 0E 00 44 03 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 8C [14:38:07]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:38:07]wFMCommunicate OK [14:38:07]SAM_PROTO_GetShiftState done [14:38:07]FM_GetShiftState done [14:38:07]req_shift_opened done [14:38:07]requested_item shift.open_date is exist - process it [14:38:07]req_shift_open_date [14:38:07]req_shift_open_date done [14:38:07]produce_requested_data done [14:38:07]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67082,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [14:38:07]process_action_free close_receipt [14:38:07]json_value_free [14:38:07]json_value_free done [14:38:07]process_json_proto returns [14:38:07]Send response to host [14:38:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67082,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [14:38:07]free response buf [14:38:07]execute_script done [14:38:07]execute_script returns [14:38:07]free content buf [14:38:07]Sock 7.Close socket [14:38:07]Sock 7.Thread stoped [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]accept exits with 9 [14:38:24]New connection [14:38:24]New thread 3067485540 created [14:38:24]Thread 3067628900 joined [14:38:24]Waiting for new connection... [14:38:24] Sock 9.Parse request [14:38:24]Sock 9.Check first char [14:38:24]Sock 9.First char is OK [14:38:24]request: POST /json_proto HTTP/1.0 [14:38:24]Method: POST [14:38:24]URL: /json_proto [14:38:24]Method is POST - this is cgi request [14:38:24]url: /json_proto [14:38:24]query_string will be loaded in cgi processing [14:38:24]execute_cgi json_proto POST (null) [14:38:24]execute_cgi path=json_proto method=POST [14:38:24]POST find Content-Length [14:38:24]Host: 172.17.41.195:8080 [14:38:24]Content-Length: 1179 [14:38:24]Content-Type: application/json [14:38:24] [14:38:24]POST finish read [14:38:24]Found Content-Length = 1179 [14:38: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)506961\u000A14.05.2024 14:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:24]execute_script... [14:38: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)506961\u000A14.05.2024 14:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:24]POST & json_proto [14:38:24]process_json_proto [14:38:24]json parsed OK: [14:38:24]protocol is kg_v1.0 [14:38:24]action value=print_text [14:38:24]process_action print_text [14:38:24]cmd_print_text [14:38:24]ExternCall_PrintAddStr [14:38:24]wPrintStart [14:38:24]Write to MH i2c: 01 00 00 45 03 48 [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 07 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 07 00 45 03 00 00 00 00 00 FF 0F 5D [14:38:24]RasterBufferAndPrint [14:38:24]line *****ТОВАРНЫЙ ЧЕК***** [14:38:24]line АЗС-91 [14:38:24]line Партнер нефть [14:38:24]line 02508201610067 [14:38:24]line Кассир : Адишов И. [14:38:24]line Счет N : (1)506961 [14:38:24]line 14.05.2024 14:21 [14:38:24]line ПРОДАЖА [14:38:24]line ТРК (МРК, ГНК): 41 [14:38:24]line Вид ГСМ : 2710194210 [14:38:24]line ДТ-К-5 [14:38:24]line 13.390 x 74.70 [14:38:24]line ИТОГ: 1000.23 [14:38:24]line Тип оплаты: Талоны: Топливная Карта [14:38:24]line 02750 [14:38:24]line ______________________ [14:38:24]line (подпись) [14:38:24]written 0, free lines is 4095 [14:38:24]Write to MH i2c: 01 00 00 59 03 5C [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 07 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: 01 07 00 59 03 00 00 00 00 00 0D 0E 7E [14:38:24]RasterBufferAndPrint [14:38:24]line [14:38:24]line [14:38:24]line [14:38:24]line [14:38:24]line [14:38:24]written 0, free lines is 3599 [14:38:24]MH_Cut [14:38:24]Write to MH i2c: D1 01 00 60 03 01 35 [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: D1 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: D1 01 00 [14:38:24]MH_I2C_Read... [14:38:24]Read from MH i2c: D1 01 00 60 03 00 34 [14:38:24]Write to MH i2c: 01 00 00 61 03 64 [14:38:24]Write i2c OK [14:38:24]MH_I2C_Read... [14:38:24]OFD Sender: No OFD packet to send [14:38:25]*** Cut start [14:38:25]*** Purtial cut [14:38:25]*** Stage 1: CUTSNS_PIN = 1 [14:38:25]Read from MH i2c: 01 [14:38:25]MH_I2C_Read... [14:38:25]*** Stop cut motor [14:38:25]*** Cut end [14:38:25]Read from MH i2c: 01 07 00 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 FF 0F 79 [14:38:25]process_action print_text done [14:38:25]requested_data is exist [14:38:25]produce_requested_data [14:38:25]requested_item fm.sn is exist - process it [14:38:25]wFMCommunicate request_size=4 [14:38:25]MH_SAM_APDU [14:38:25]CAPDU: 80 11 00 00 [14:38:25]Write to MH i2c: E2 08 00 62 03 80 11 00 00 00 00 00 00 DF [14:38:25]Write i2c OK [14:38:25]MH_I2C_Read... [14:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:25]Read from MH i2c: E2 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: E2 17 00 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: E2 17 00 62 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 35 [14:38: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:38:25]wFMCommunicate OK [14:38:25]requested_item fd.num is exist - process it [14:38:25]SAM_PROTO_GetFieldsCounters [14:38:25]wFMCommunicate request_size=4 [14:38:25]MH_SAM_APDU [14:38:25]CAPDU: 80 13 00 00 [14:38:25]Write to MH i2c: E2 08 00 63 03 80 13 00 00 00 00 00 00 E2 [14:38:25]Write i2c OK [14:38:25]MH_I2C_Read... [14:38:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:25]Read from MH i2c: E2 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: E2 62 00 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: E2 62 00 63 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 0A 06 01 00 0E 04 04 00 63 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 88 [14:38: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 0A 06 01 00 0E 04 04 00 63 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 [14:38:25]wFMCommunicate OK [14:38:25]SAM_PROTO_GetFieldsCounters done [14:38:25]requested_item shift.num is exist - process it [14:38:25]requested_item shift.opened is exist - process it [14:38:25]req_shift_opened [14:38:25]FM_GetShiftState [14:38:25]SAM_PROTO_GetShiftState [14:38:25]wFMCommunicate request_size=4 [14:38:25]MH_SAM_APDU [14:38:25]CAPDU: 80 13 01 00 [14:38:25]Write to MH i2c: E2 08 00 64 03 80 13 01 00 00 00 00 00 E4 [14:38:25]Write i2c OK [14:38:25]MH_I2C_Read... [14:38:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:25]Read from MH i2c: E2 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: E2 0E 00 [14:38:25]MH_I2C_Read... [14:38:25]Read from MH i2c: E2 0E 00 64 03 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 AC [14:38:25]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:38:25]wFMCommunicate OK [14:38:25]SAM_PROTO_GetShiftState done [14:38:25]FM_GetShiftState done [14:38:25]req_shift_opened done [14:38:25]requested_item shift.open_date is exist - process it [14:38:25]req_shift_open_date [14:38:25]req_shift_open_date done [14:38:25]produce_requested_data done [14:38:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67082,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [14:38:25]process_action_free print_text [14:38:25]json_value_free [14:38:25]json_value_free done [14:38:25]process_json_proto returns [14:38:25]Send response to host [14:38:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67082,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [14:38:25]free response buf [14:38:25]execute_script done [14:38:25]execute_script returns [14:38:25]free content buf [14:38:25]Sock 9.Close socket [14:38:25]Sock 9.Thread stoped [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:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:39:57]accept exits with 7 [14:39:57]New connection [14:39:57]New thread 3067628900 created [14:39:57]Thread 3067485540 joined [14:39:57]Waiting for new connection... [14:39:57] Sock 7.Parse request [14:39:57]Sock 7.Check first char [14:39:57]Sock 7.First char is OK [14:39:57]request: POST /json_proto HTTP/1.0 [14:39:57]Method: POST [14:39:57]URL: /json_proto [14:39:57]Method is POST - this is cgi request [14:39:57]url: /json_proto [14:39:57]query_string will be loaded in cgi processing [14:39:57]execute_cgi json_proto POST (null) [14:39:57]execute_cgi path=json_proto method=POST [14:39:57]POST find Content-Length [14:39:57]Host: 172.17.41.195:8080 [14:39:57]Content-Length: 931 [14:39:57]Content-Type: application/json [14:39:57] [14:39:57]POST finish read [14:39:57]Found Content-Length = 931 [14:39:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12052", "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 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:57]execute_script... [14:39: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 : (3)12052", "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 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:57]POST & json_proto [14:39:57]process_json_proto [14:39:57]json parsed OK: [14:39:57]protocol is kg_v1.0 [14:39:57]action value=close_receipt [14:39:57]process_action close_receipt [14:39:57]cmd_close_receipt [14:39:57]MH_GetDate [14:39:57]Write to MH i2c: F0 00 00 65 03 57 [14:39:57]Write i2c OK [14:39:57]MH_I2C_Read... [14:39:57]Read from MH i2c: F0 [14:39:57]MH_I2C_Read... [14:39:57]Read from MH i2c: F0 09 00 [14:39:57]MH_I2C_Read... [14:39:57]Read from MH i2c: F0 09 00 65 03 00 BD 77 43 66 FC 21 6F 64 2D [14:39:57]GetLastDocTimeStamp 1715697482 [14:39:57]current date 1715697597 [14:39:57]FM_GetShiftState [14:39:57]SAM_PROTO_GetShiftState [14:39:57]wFMCommunicate request_size=4 [14:39:57]MH_SAM_APDU [14:39:57]CAPDU: 80 13 01 00 [14:39:57]Write to MH i2c: E2 08 00 66 03 80 13 01 00 00 00 00 00 E6 [14:39:57]Write i2c OK [14:39:57]MH_I2C_Read... [14:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:57]Read from MH i2c: E2 [14:39:57]MH_I2C_Read... [14:39:57]Read from MH i2c: E2 0E 00 [14:39:57]MH_I2C_Read... [14:39:57]Read from MH i2c: E2 0E 00 66 03 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 AE [14:39:57]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:39:57]wFMCommunicate OK [14:39:57]SAM_PROTO_GetShiftState done [14:39:57]FM_GetShiftState done [14:39:57]opened in 1715646054 [14:39:57]opened+sec_in_day 1715732454 [14:39:57]quantity*price = 9500 [14:39:57]sum+1 = 9501 [14:39:57]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310326 Вода Адыгене 1л б/г 1.000 * 35.00 = 35.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.81 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 90 14.05.2024 14:39 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67083 ФПД: 144167558557986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T143957&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67083&fm=144167558557986&tin=02508201610067®Number=0000000000091845&sum=13000 0 [14:39:58]StoreToDocumentArchive [14:39:58]shift 355 fd 67083 [14:39:58]save to /storage/0355/doc_00067083 [14:39:58]save last doc name /storage/0355/doc_00067083 to /storage/kkm_last_doc_name [14:39:58]save OK [14:39:58]Clear old archive folders... [14:39:58]ProcessDocumentItem done err = 0, tmpTLVsize=398 [14:39:58]tlvbuf is 0082EEC0 [14:39:58]SAM_PROTO_ClearQueue [14:39:58]wFMCommunicate request_size=4 [14:39:58]MH_SAM_APDU [14:39:58]CAPDU: 80 09 00 00 [14:39:58]Write to MH i2c: E2 08 00 73 03 80 09 00 00 00 00 00 00 E8 [14:39:58]Write i2c OK [14:39:58]MH_I2C_Read... [14:39:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:58]Read from MH i2c: E2 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 03 00 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 03 00 73 03 00 90 00 EA [14:39:58]RAPDU: 90 00 [14:39:58]wFMCommunicate OK [14:39:58]SAM_PROTO_ClearQueue done [14:39:58]KKMCreateOFDPacket [14:39:58]OFDProtocolAddRootSTLVToBuf [14:39:58]FM_MakeSignedData [14:39:58]FM_MakeSignedData [14:39:58]SAM_PROTO_SignData [14:39:58]wFMCommunicate request_size=4 [14:39:58]MH_SAM_APDU [14:39:58]CAPDU: 80 0D 01 02 [14:39:58]Write to MH i2c: E2 08 00 74 03 80 0D 01 02 00 00 00 00 F0 [14:39:58]Write i2c OK [14:39:58]MH_I2C_Read... [14:39:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:58]Read from MH i2c: E2 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 03 00 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 03 00 74 03 00 90 00 EB [14:39:58]RAPDU: 90 00 [14:39:58]wFMCommunicate OK [14:39:58]wFMCommunicate request_size=255 [14:39:58]MH_SAM_APDU [14:39:58]CAPDU: 80 0D 02 02 FA 03 00 8E 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 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 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 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 [14:39:58]Write to MH i2c: E2 02 01 75 03 80 0D 02 02 FA 00 03 00 8E 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 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 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 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 00 B2 [14:39:58]Write i2c OK [14:39:58]MH_I2C_Read... [14:39:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:58]Read from MH i2c: E2 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 03 00 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 03 00 75 03 00 90 00 EC [14:39:58]RAPDU: 90 00 [14:39:58]wFMCommunicate OK [14:39:58]wFMCommunicate request_size=157 [14:39:58]MH_SAM_APDU [14:39:58]CAPDU: 80 0D 02 02 98 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 BD 77 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0B 06 01 00 35 04 06 00 83 1E A0 1D B1 22 [14:39:58]Write to MH i2c: E2 A0 00 76 03 80 0D 02 02 98 00 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 BD 77 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0B 06 01 00 35 04 06 00 83 1E A0 1D B1 22 00 00 06 [14:39:58]Write i2c OK [14:39:58]MH_I2C_Read... [14:39:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:59]Read from MH i2c: E2 [14:39:59]MH_I2C_Read... [14:39:59]Read from MH i2c: E2 03 00 [14:39:59]MH_I2C_Read... [14:39:59]Read from MH i2c: E2 03 00 76 03 00 90 00 ED [14:39:59]RAPDU: 90 00 [14:39:59]wFMCommunicate OK [14:39:59]wFMCommunicate request_size=4 [14:39:59]MH_SAM_APDU [14:39:59]CAPDU: 80 0D 03 02 [14:39:59]Write to MH i2c: E2 08 00 77 03 80 0D 03 02 00 00 00 00 F5 [14:39:59]Write i2c OK [14:39:59]MH_I2C_Read... [14:39:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:59]Read from MH i2c: E2 [14:39:59]MH_I2C_Read... [14:39:59]Read from MH i2c: E2 0B 00 [14:39:59]MH_I2C_Read... [14:39:59]Read from MH i2c: E2 0B 00 77 03 00 B5 7F 03 46 01 E7 53 1B 90 00 C9 [14:39:59]RAPDU: B5 7F 03 46 01 E7 53 1B 90 00 [14:39:59]wFMCommunicate OK [14:39:59]SAM_PROTO_SignData done [14:39:59]FM_MakeSignedData done [14:39:59]CreateOFDProtocolMessage [14:39:59]wFMCommunicate request_size=4 [14:39:59]MH_SAM_APDU [14:39:59]CAPDU: 80 11 00 00 [14:39:59]Write to MH i2c: E2 08 00 78 03 80 11 00 00 00 00 00 00 F5 [14:39:59]Write i2c OK [14:39:59]MH_I2C_Read... [14:39:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:59]Read from MH i2c: E2 [14:39:59]MH_I2C_Read... [14:39:59]Read from MH i2c: E2 17 00 [14:39:59]MH_I2C_Read... [14:39:59]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 [14:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:39:59]wFMCommunicate OK [14:39:59]CreateOFDProtocolMessage done [14:39:59]OFDSenderStorePacket 67083 [14:39:59]StoreOFDPacket docnum=67083 [14:39: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 A2 01 00 00 46 F1 9A 01 05 EA 5A 03 01 00 03 00 8E 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 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 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 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 BD 77 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0B 06 01 00 35 04 06 00 83 1E A0 1D B1 22 B5 7F 03 46 01 E7 53 1B [14:39:59]CheckFolder [14:39:59]dirname=/storage/ofd_packets [14:39:59]CheckFolder done [14:39:59]ProducePacketName [14:39:59]name=ofd_packets/00067083 [14:39:59]NVStorageSaveData ofd_packets/00067083 [14:39:59]File name is /storage/ofd_packets/00067083 [14:39:59]Write 448 bytes [14:39:59]NVStorageSaveData done [14:39:59]OFDSenderStorePacket done [14:39:59]KKMCreateOFDPacket done [14:39:59]NVStorageSaveData kkm_last_timestamp [14:39:59]File name is /storage/kkm_last_timestamp [14:39:59]Write 4 bytes [14:39:59]NVStorageSaveData done [14:39:59]ExternCall_PrintAddStr [14:39:59]wPrintStart [14:39:59]Write to MH i2c: 01 00 00 79 03 7C [14:39:59]Write i2c OK [14:39:59]MH_I2C_Read... [14:39:59]Read from MH i2c: 01 [14:39:59]MH_I2C_Read... [14:39:59]OFD Sender: Processing packet 67083 [packets to send 35, broken 34] [14:39:59]ProducePacketName [14:39:59]name=ofd_packets/00067083 [14:39:59]OFD Sender: To server: pG, [14:39:59]CommunicateWithHost lk.salyk.kg:30040 [14:39:59]ConnectInit lk.salyk.kg [14:39:59]Read from MH i2c: 01 07 00 [14:39:59]MH_I2C_Read... [14:39:59]Read from MH i2c: 01 07 00 79 03 00 00 00 00 00 FF 0F 91 [14:39:59]RasterBufferAndPrint [14:39:59]line Счет N : (3)12052 [14:39:59]line ИНН: 02508201610067 [14:39:59]line Контрольно-Кассовый Чек [14:39:59]line ПРОДАЖА [14:39:59]line Товар: 4700003010056 [14:39:59]line Чай хол Let`s Go! зел лим ПЭТ 1,25л [14:39:59]line 1.000 * 95.00 [14:39:59]line = 95.00 [14:39:59]line НДС 12% НСП 1% [14:39:59]line > о реализуемом товаре [14:39:59]line Товар: 4700000310326 [14:39:59]line Вода Адыгене 1л б/г [14:39:59]line 1.000 * 35.00 [14:39:59]line = 35.00 [14:39:59]line НДС 12% НСП 1% [14:39:59]line > о реализуемом товаре [14:39:59]line ИТОГО: 130.00 [14:39:59]line НСП 1% : 1.15 [14:39:59]line НДС 12% : 13.81 [14:39:59]line Наличными: 130.00 [14:39:59]line Безнал.: 0.00 [14:39:59]line Место: АЗС № 91 "Партнер Нефть" [14:39:59]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:39:59]line СНО: Общий режим [14:39:59]line Чек 90 14.05.2024 14:39 [14:39:59]line Смена: 355 ФФД: 1.0 [14:39:59]line ЗНМ: 0300000119 [14:39:59]line РНМ: 0000000000091845 [14:39:59]line Версия ККМ: 001 [14:39:59]line ФМ: 0000000000871829 [14:39:59]line ФД: 67083 [14:39:59]line ФПД: 144167558557986 [14:39:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T143957&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67083&fm=144167558557986&tin=02508201610067®Number=0000000000091845&sum=13000 [14:39:59]line 0 [14:39:59]written 0, free lines is 4095 [14:39:59]Connected sock=10 [14:39: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 A2 01 00 00 46 F1 9A 01 05 EA 5A 03 01 00 03 00 8E 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 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 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 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 BD 77 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0B 06 01 00 35 04 06 00 83 1E A0 1D B1 22 B5 7F 03 46 01 E7 53 1B [14:39: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 03 0B 47 00 72 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 0B 06 01 00 F4 03 04 00 9D 1F 43 66 B6 04 01 00 00 00 48 1B 14 4B E0 9F 75 [14:39:59]CommunicateWithHost err = 0 [14:39:59]CheckOFDResponse [14:39:59]1017 (14) - 77093643461234 [14:39:59]1041 (16) - 0000000000871829 [14:39:59]1040 (4) - 67083 [14:39:59]1012 (4) - 14.05.2024 08:23 [14:39:59]1206 (1) - 0 [14:39:59]OFD Sender: Remove packet 67083 [14:39:59]ProducePacketName [14:39:59]name=ofd_packets/00067083 [14:39:59]NVStorageDeleteData [14:40:00]Write to MH i2c: 01 00 00 A7 03 AA [14:40:00]Write i2c OK [14:40:00]MH_I2C_Read... [14:40:00]Read from MH i2c: 01 [14:40:00]MH_I2C_Read... [14:40:00]Read from MH i2c: 01 07 00 [14:40:00]MH_I2C_Read... [14:40:00]Read from MH i2c: 01 07 00 A7 03 00 00 00 00 00 74 0C 31 [14:40:00]RasterBufferAndPrint [14:40:00]line [14:40:00]line [14:40:00]line [14:40:00]line [14:40:00]line [14:40:00]written 0, free lines is 3194 [14:40:00]MH_Cut [14:40:00]Write to MH i2c: D1 01 00 AE 03 01 83 [14:40:00]Write i2c OK [14:40:00]MH_I2C_Read... [14:40:00]Read from MH i2c: D1 [14:40:00]MH_I2C_Read... [14:40:00]Read from MH i2c: D1 01 00 [14:40:00]MH_I2C_Read... [14:40:00]Read from MH i2c: D1 01 00 AE 03 00 82 [14:40:00]Write to MH i2c: 01 00 00 AF 03 B2 [14:40:00]Write i2c OK [14:40:00]MH_I2C_Read... [14:40:00]OFD Sender: No OFD packet to send [14:40:00]*** Cut start [14:40:00]*** Purtial cut [14:40:00]*** CUTSNS_PIN = 0 [14:40:01]*** Stage 1: CUTSNS_PIN = 1 [14:40:02]Read from MH i2c: 01 [14:40:02]MH_I2C_Read... [14:40:02]*** Stop cut motor [14:40:02]*** Cut end [14:40:02]Read from MH i2c: 01 07 00 [14:40:02]MH_I2C_Read... [14:40:02]Read from MH i2c: 01 07 00 AF 03 00 00 00 00 00 FF 0F C7 [14:40:02]process_action close_receipt done [14:40:02]requested_data is exist [14:40:02]produce_requested_data [14:40:02]requested_item fm.sn is exist - process it [14:40:02]wFMCommunicate request_size=4 [14:40:02]MH_SAM_APDU [14:40:02]CAPDU: 80 11 00 00 [14:40:02]Write to MH i2c: E2 08 00 B0 03 80 11 00 00 00 00 00 00 2D [14:40:02]Write i2c OK [14:40:02]MH_I2C_Read... [14:40:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:02]Read from MH i2c: E2 [14:40:02]MH_I2C_Read... [14:40:02]Read from MH i2c: E2 17 00 [14:40:02]MH_I2C_Read... [14:40:02]Read from MH i2c: E2 17 00 B0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 83 [14:40:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:40:02]wFMCommunicate OK [14:40:02]requested_item fd.num is exist - process it [14:40:02]SAM_PROTO_GetFieldsCounters [14:40:02]wFMCommunicate request_size=4 [14:40:02]MH_SAM_APDU [14:40:02]CAPDU: 80 13 00 00 [14:40:02]Write to MH i2c: E2 08 00 B1 03 80 13 00 00 00 00 00 00 30 [14:40:02]Write i2c OK [14:40:02]MH_I2C_Read... [14:40:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:03]Read from MH i2c: E2 [14:40:03]MH_I2C_Read... [14:40:03]Read from MH i2c: E2 62 00 [14:40:03]MH_I2C_Read... [14:40:03]Read from MH i2c: E2 62 00 B1 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 0B 06 01 00 0E 04 04 00 63 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 DA [14:40: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 0B 06 01 00 0E 04 04 00 63 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 [14:40:03]wFMCommunicate OK [14:40:03]SAM_PROTO_GetFieldsCounters done [14:40:03]requested_item shift.num is exist - process it [14:40:03]requested_item shift.opened is exist - process it [14:40:03]req_shift_opened [14:40:03]FM_GetShiftState [14:40:03]SAM_PROTO_GetShiftState [14:40:03]wFMCommunicate request_size=4 [14:40:03]MH_SAM_APDU [14:40:03]CAPDU: 80 13 01 00 [14:40:03]Write to MH i2c: E2 08 00 B2 03 80 13 01 00 00 00 00 00 32 [14:40:03]Write i2c OK [14:40:03]MH_I2C_Read... [14:40:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:03]Read from MH i2c: E2 [14:40:03]MH_I2C_Read... [14:40:03]Read from MH i2c: E2 0E 00 [14:40:03]MH_I2C_Read... [14:40:03]Read from MH i2c: E2 0E 00 B2 03 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 FA [14:40:03]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:40:03]wFMCommunicate OK [14:40:03]SAM_PROTO_GetShiftState done [14:40:03]FM_GetShiftState done [14:40:03]req_shift_opened done [14:40:03]requested_item shift.open_date is exist - process it [14:40:03]req_shift_open_date [14:40:03]req_shift_open_date done [14:40:03]produce_requested_data done [14:40:03]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67083,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [14:40:03]process_action_free close_receipt [14:40:03]json_value_free [14:40:03]json_value_free done [14:40:03]process_json_proto returns [14:40:03]Send response to host [14:40:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67083,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [14:40:03]free response buf [14:40:03]execute_script done [14:40:03]execute_script returns [14:40:03]free content buf [14:40:03]Sock 7.Close socket [14:40:03]Sock 7.Thread stoped [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]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:25]accept exits with 9 [14:40:25]New connection [14:40:25]New thread 3067485540 created [14:40:25]Thread 3067628900 joined [14:40:25]Waiting for new connection... [14:40:25] Sock 9.Parse request [14:40:25]Sock 9.Check first char [14:40:25]Sock 9.First char is OK [14:40:25]request: POST /json_proto HTTP/1.0 [14:40:25]Method: POST [14:40:25]URL: /json_proto [14:40:25]Method is POST - this is cgi request [14:40:25]url: /json_proto [14:40:25]query_string will be loaded in cgi processing [14:40:25]execute_cgi json_proto POST (null) [14:40:25]execute_cgi path=json_proto method=POST [14:40:25]POST find Content-Length [14:40:25]Host: 172.17.41.195:8080 [14:40:25]Content-Length: 800 [14:40:25]Content-Type: application/json [14:40:25] [14:40:25]POST finish read [14:40:25]Found Content-Length = 800 [14:40:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506962", "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" : 52.040, "sum" : 3887.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3887.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:25]execute_script... [14:40: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)506962", "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" : 52.040, "sum" : 3887.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3887.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:25]POST & json_proto [14:40:25]process_json_proto [14:40:25]json parsed OK: [14:40:25]protocol is kg_v1.0 [14:40:25]action value=close_receipt [14:40:25]process_action close_receipt [14:40:25]cmd_close_receipt [14:40:25]MH_GetDate [14:40:25]Write to MH i2c: F0 00 00 B3 03 A5 [14:40:25]Write i2c OK [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: F0 [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: F0 09 00 [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: F0 09 00 B3 03 00 DA 77 43 66 FC 21 6F 64 98 [14:40:25]GetLastDocTimeStamp 1715697597 [14:40:25]current date 1715697626 [14:40:25]FM_GetShiftState [14:40:25]SAM_PROTO_GetShiftState [14:40:25]wFMCommunicate request_size=4 [14:40:25]MH_SAM_APDU [14:40:25]CAPDU: 80 13 01 00 [14:40:25]Write to MH i2c: E2 08 00 B4 03 80 13 01 00 00 00 00 00 34 [14:40:25]Write i2c OK [14:40:25]MH_I2C_Read... [14:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:25]Read from MH i2c: E2 [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: E2 0E 00 [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: E2 0E 00 B4 03 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 FC [14:40:25]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:40:25]wFMCommunicate OK [14:40:25]SAM_PROTO_GetShiftState done [14:40:25]FM_GetShiftState done [14:40:25]opened in 1715646054 [14:40:25]opened+sec_in_day 1715732454 [14:40:25]quantity*price = 388738 [14:40:25]sum+1 = 388740 [14:40:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3887.39 НСП 1% : 34.40 НДС 12% : 412.82 Наличными: 0.00 Безнал.: 3887.39 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 91 14.05.2024 14:40 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67084 ФПД: 139971062741165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T144026&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67084&fm=139971062741165&tin=02508201610067®Number=0000000000091845&sum=388739 [14:40:27]StoreToDocumentArchive [14:40:27]shift 355 fd 67084 [14:40:27]save to /storage/0355/doc_00067084 [14:40:27]save last doc name /storage/0355/doc_00067084 to /storage/kkm_last_doc_name [14:40:27]save OK [14:40:27]Clear old archive folders... [14:40:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:40:27]tlvbuf is 0082EA30 [14:40:27]SAM_PROTO_ClearQueue [14:40:27]wFMCommunicate request_size=4 [14:40:27]MH_SAM_APDU [14:40:27]CAPDU: 80 09 00 00 [14:40:27]Write to MH i2c: E2 08 00 C1 03 80 09 00 00 00 00 00 00 36 [14:40:27]Write i2c OK [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: E2 [14:40:27]MH_I2C_Read... [14:40:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:27]Read from MH i2c: E2 03 00 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: E2 03 00 C1 03 00 90 00 38 [14:40:27]RAPDU: 90 00 [14:40:27]wFMCommunicate OK [14:40:27]SAM_PROTO_ClearQueue done [14:40:27]KKMCreateOFDPacket [14:40:27]OFDProtocolAddRootSTLVToBuf [14:40:27]FM_MakeSignedData [14:40:27]FM_MakeSignedData [14:40:27]SAM_PROTO_SignData [14:40:27]wFMCommunicate request_size=4 [14:40:27]MH_SAM_APDU [14:40:27]CAPDU: 80 0D 01 02 [14:40:27]Write to MH i2c: E2 08 00 C2 03 80 0D 01 02 00 00 00 00 3E [14:40:27]Write i2c OK [14:40:27]MH_I2C_Read... [14:40:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:27]Read from MH i2c: E2 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: E2 03 00 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: E2 03 00 C2 03 00 90 00 39 [14:40:27]RAPDU: 90 00 [14:40:27]wFMCommunicate OK [14:40:27]wFMCommunicate request_size=255 [14:40:27]MH_SAM_APDU [14:40: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 48 CB 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 83 EE 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 EE 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 A1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 EE 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 DA 77 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0C 06 01 00 35 04 06 00 7F 4D 8D 79 [14:40:27]Write to MH i2c: E2 02 01 C3 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 48 CB 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 83 EE 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 EE 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 A1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 EE 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 DA 77 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0C 06 01 00 35 04 06 00 7F 4D 8D 79 00 00 5E [14:40:27]Write i2c OK [14:40:27]MH_I2C_Read... [14:40:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:27]Read from MH i2c: E2 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: E2 03 00 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: E2 03 00 C3 03 00 90 00 3A [14:40:27]RAPDU: 90 00 [14:40:27]wFMCommunicate OK [14:40:27]wFMCommunicate request_size=7 [14:40:27]MH_SAM_APDU [14:40:27]CAPDU: 80 0D 02 02 02 38 AD [14:40:27]Write to MH i2c: E2 0A 00 C4 03 80 0D 02 02 02 00 38 AD 00 00 2A [14:40:27]Write i2c OK [14:40:27]MH_I2C_Read... [14:40:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:27]Read from MH i2c: E2 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: E2 03 00 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: E2 03 00 C4 03 00 90 00 3B [14:40:27]RAPDU: 90 00 [14:40:27]wFMCommunicate OK [14:40:27]wFMCommunicate request_size=4 [14:40:27]MH_SAM_APDU [14:40:27]CAPDU: 80 0D 03 02 [14:40:27]Write to MH i2c: E2 08 00 C5 03 80 0D 03 02 00 00 00 00 43 [14:40:27]Write i2c OK [14:40:27]MH_I2C_Read... [14:40:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:27]Read from MH i2c: E2 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: E2 0B 00 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: E2 0B 00 C5 03 00 5D 9B A2 F8 B7 B5 31 2C 90 00 9F [14:40:27]RAPDU: 5D 9B A2 F8 B7 B5 31 2C 90 00 [14:40:27]wFMCommunicate OK [14:40:27]SAM_PROTO_SignData done [14:40:27]FM_MakeSignedData done [14:40:27]CreateOFDProtocolMessage [14:40:27]wFMCommunicate request_size=4 [14:40:27]MH_SAM_APDU [14:40:27]CAPDU: 80 11 00 00 [14:40:27]Write to MH i2c: E2 08 00 C6 03 80 11 00 00 00 00 00 00 43 [14:40:27]Write i2c OK [14:40:27]MH_I2C_Read... [14:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:27]Read from MH i2c: E2 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: E2 17 00 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: E2 17 00 C6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 99 [14:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:40:27]wFMCommunicate OK [14:40:27]CreateOFDProtocolMessage done [14:40:27]OFDSenderStorePacket 67084 [14:40:27]StoreOFDPacket docnum=67084 [14:40: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 14 D0 04 01 EB 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 48 CB 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 83 EE 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 EE 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 A1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 EE 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 DA 77 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0C 06 01 00 35 04 06 00 7F 4D 8D 79 38 AD 5D 9B A2 F8 B7 B5 31 2C [14:40:27]CheckFolder [14:40:27]dirname=/storage/ofd_packets [14:40:27]CheckFolder done [14:40:27]ProducePacketName [14:40:27]name=ofd_packets/00067084 [14:40:27]NVStorageSaveData ofd_packets/00067084 [14:40:27]File name is /storage/ofd_packets/00067084 [14:40:27]Write 298 bytes [14:40:27]NVStorageSaveData done [14:40:27]OFDSenderStorePacket done [14:40:27]KKMCreateOFDPacket done [14:40:27]NVStorageSaveData kkm_last_timestamp [14:40:27]File name is /storage/kkm_last_timestamp [14:40:27]Write 4 bytes [14:40:27]NVStorageSaveData done [14:40:27]ExternCall_PrintAddStr [14:40:27]wPrintStart [14:40:27]Write to MH i2c: 01 00 00 C7 03 CA [14:40:27]Write i2c OK [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: 01 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: 01 07 00 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: 01 07 00 C7 03 00 00 00 00 00 FF 0F DF [14:40:27]RasterBufferAndPrint [14:40:27]line Счет N : (1)506962 [14:40:27]line ИНН: 02508201610067 [14:40:27]line Контрольно-Кассовый Чек [14:40:27]line ПРОДАЖА [14:40:27]line ТРК (МРК, ГНК) : 31 [14:40:27]line Товар: 2710194210 [14:40:27]line ДТ-К-5 [14:40:27]line 52.040 * 74.70 [14:40:27]line = 3887.39 [14:40:27]line НДС 12% НСП 1% [14:40:27]line > о реализуемом товаре [14:40:27]line ИТОГО: 3887.39 [14:40:27]line НСП 1% : 34.40 [14:40:27]line НДС 12% : 412.82 [14:40:27]line Наличными: 0.00 [14:40:27]line Безнал.: 3887.39 [14:40:27]line Место: АЗС № 91 "Партнер Нефть" [14:40:27]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:40:27]line СНО: Общий режим [14:40:27]line Чек 91 14.05.2024 14:40 [14:40:27]line Смена: 355 ФФД: 1.0 [14:40:27]line ЗНМ: 0300000119 [14:40:27]line РНМ: 0000000000091845 [14:40:27]line Версия ККМ: 001 [14:40:27]line Платежная система: O! деньги [14:40:27]line ФМ: 0000000000871829 [14:40:27]line ФД: 67084 [14:40:27]line ФПД: 139971062741165 [14:40:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T144026&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67084&fm=139971062741165&tin=02508201610067®Number=0000000000091845&sum=388739 [14:40:27]OFD Sender: Processing packet 67084 [packets to send 35, broken 34] [14:40:27]ProducePacketName [14:40:27]name=ofd_packets/00067084 [14:40:27]OFD Sender: To server: pG, [14:40:27]CommunicateWithHost lk.salyk.kg:30040 [14:40:27]ConnectInit lk.salyk.kg [14:40:27]written 0, free lines is 4095 [14:40:28]Connected sock=10 [14:40: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 14 D0 04 01 EB 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 48 CB 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 83 EE 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 EE 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 A1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 EE 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 DA 77 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0C 06 01 00 35 04 06 00 7F 4D 8D 79 38 AD 5D 9B A2 F8 B7 B5 31 2C [14:40: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 39 C8 47 00 D4 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0C 06 01 00 F4 03 04 00 BA 1F 43 66 B6 04 01 00 00 71 C7 DE 65 AD 6C 2C 6C [14:40:28]CommunicateWithHost err = 0 [14:40:28]CheckOFDResponse [14:40:28]1017 (14) - 77093643461234 [14:40:28]1041 (16) - 0000000000871829 [14:40:28]1040 (4) - 67084 [14:40:28]1012 (4) - 14.05.2024 08:24 [14:40:28]1206 (1) - 0 [14:40:28]OFD Sender: Remove packet 67084 [14:40:28]ProducePacketName [14:40:28]name=ofd_packets/00067084 [14:40:28]NVStorageDeleteData [14:40:28]Write to MH i2c: 01 00 00 F0 03 F3 [14:40:28]Write i2c OK [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: 01 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: 01 07 00 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: 01 07 00 F0 03 00 00 00 00 00 F1 0C F7 [14:40:28]RasterBufferAndPrint [14:40:28]line [14:40:28]line [14:40:28]line [14:40:28]line [14:40:28]line [14:40:28]written 0, free lines is 3319 [14:40:28]MH_Cut [14:40:28]Write to MH i2c: D1 01 00 F7 03 01 CC [14:40:28]Write i2c OK [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: D1 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: D1 01 00 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: D1 01 00 F7 03 00 CB [14:40:28]Write to MH i2c: 01 00 00 F8 03 FB [14:40:28]Write i2c OK [14:40:28]MH_I2C_Read... [14:40:28]OFD Sender: No OFD packet to send [14:40:29]*** Cut start [14:40:29]*** Purtial cut [14:40:29]*** Stage 1: CUTSNS_PIN = 1 [14:40:29]Read from MH i2c: 01 [14:40:29]MH_I2C_Read... [14:40:29]*** Stop cut motor [14:40:29]*** Cut end [14:40:29]Read from MH i2c: 01 07 00 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: 01 07 00 F8 03 00 00 00 00 00 FF 0F 10 [14:40:29]process_action close_receipt done [14:40:29]requested_data is exist [14:40:29]produce_requested_data [14:40:29]requested_item fm.sn is exist - process it [14:40:29]wFMCommunicate request_size=4 [14:40:29]MH_SAM_APDU [14:40:29]CAPDU: 80 11 00 00 [14:40:29]Write to MH i2c: E2 08 00 F9 03 80 11 00 00 00 00 00 00 76 [14:40:29]Write i2c OK [14:40:29]MH_I2C_Read... [14:40:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:29]Read from MH i2c: E2 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 17 00 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 17 00 F9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CC [14:40: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:40:29]wFMCommunicate OK [14:40:29]requested_item fd.num is exist - process it [14:40:29]SAM_PROTO_GetFieldsCounters [14:40:29]wFMCommunicate request_size=4 [14:40:29]MH_SAM_APDU [14:40:29]CAPDU: 80 13 00 00 [14:40:29]Write to MH i2c: E2 08 00 FA 03 80 13 00 00 00 00 00 00 79 [14:40:29]Write i2c OK [14:40:29]MH_I2C_Read... [14:40:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:29]Read from MH i2c: E2 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 62 00 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 62 00 FA 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 0C 06 01 00 0E 04 04 00 63 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 27 [14:40: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 0C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:29]wFMCommunicate OK [14:40:29]SAM_PROTO_GetFieldsCounters done [14:40:29]requested_item shift.num is exist - process it [14:40:29]requested_item shift.opened is exist - process it [14:40:29]req_shift_opened [14:40:29]FM_GetShiftState [14:40:29]SAM_PROTO_GetShiftState [14:40:29]wFMCommunicate request_size=4 [14:40:29]MH_SAM_APDU [14:40:29]CAPDU: 80 13 01 00 [14:40:29]Write to MH i2c: E2 08 00 FB 03 80 13 01 00 00 00 00 00 7B [14:40:29]Write i2c OK [14:40:29]MH_I2C_Read... [14:40:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:29]Read from MH i2c: E2 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 0E 00 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 0E 00 FB 03 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 43 [14:40:29]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:40:29]wFMCommunicate OK [14:40:29]SAM_PROTO_GetShiftState done [14:40:29]FM_GetShiftState done [14:40:29]req_shift_opened done [14:40:29]requested_item shift.open_date is exist - process it [14:40:29]req_shift_open_date [14:40:29]req_shift_open_date done [14:40:29]produce_requested_data done [14:40:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67084,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [14:40:29]process_action_free close_receipt [14:40:29]json_value_free [14:40:29]json_value_free done [14:40:29]process_json_proto returns [14:40:29]Send response to host [14:40:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67084,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [14:40:29]free response buf [14:40:29]execute_script done [14:40:29]execute_script returns [14:40:29]free content buf [14:40:29]Sock 9.Close socket [14:40:29]Sock 9.Thread stoped [14:40:33]OFD Sender: No OFD packet to send [14:40:38]OFD Sender: No OFD packet to send [14:40:43]OFD Sender: No OFD packet to send [14:40:48]OFD Sender: No OFD packet to send [14:40:53]OFD Sender: No OFD packet to send [14:40:58]OFD Sender: No OFD packet to send [14:41:03]OFD Sender: No OFD packet to send [14:41:08]OFD Sender: No OFD packet to send [14:41:13]OFD Sender: No OFD packet to send [14:41:18]OFD Sender: No OFD packet to send [14:41:23]OFD Sender: No OFD packet to send [14:41:28]OFD Sender: No OFD packet to send [14:41:33]OFD Sender: No OFD packet to send [14:41:38]OFD Sender: No OFD packet to send [14:41:43]OFD Sender: No OFD packet to send [14:41:48]OFD Sender: No OFD packet to send [14:41:53]OFD Sender: No OFD packet to send [14:41:58]OFD Sender: No OFD packet to send [14:41:59]recv_with_timeout no data received [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:18]OFD Sender: No OFD packet to send [14:42:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]accept exits with 7 [14:42:38]New connection [14:42:38]New thread 3067628900 created [14:42:38]Thread 3067485540 joined [14:42:38]Waiting for new connection... [14:42:38] Sock 7.Parse request [14:42:38]Sock 7.Check first char [14:42:38]Sock 7.First char is OK [14:42:38]request: POST /json_proto HTTP/1.0 [14:42:38]Method: POST [14:42:38]URL: /json_proto [14:42:38]Method is POST - this is cgi request [14:42:38]url: /json_proto [14:42:38]query_string will be loaded in cgi processing [14:42:38]execute_cgi json_proto POST (null) [14:42:38]execute_cgi path=json_proto method=POST [14:42:38]POST find Content-Length [14:42:38]Host: 172.17.41.195:8080 [14:42:38]Content-Length: 1191 [14:42:38]Content-Type: application/json [14:42:38] [14:42:38]POST finish read [14:42:38]Found Content-Length = 1191 [14:42: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)506963\u000A14.05.2024 14:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472542-996\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:38]execute_script... [14:42: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)506963\u000A14.05.2024 14:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472542-996\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:38]POST & json_proto [14:42:38]process_json_proto [14:42:38]json parsed OK: [14:42:38]protocol is kg_v1.0 [14:42:38]action value=print_text [14:42:38]process_action print_text [14:42:38]cmd_print_text [14:42:38]ExternCall_PrintAddStr [14:42:38]wPrintStart [14:42:38]Write to MH i2c: 01 00 00 FC 03 FF [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: 01 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: 01 07 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: 01 07 00 FC 03 00 00 00 00 00 FF 0F 14 [14:42:38]RasterBufferAndPrint [14:42:38]line *****ТОВАРНЫЙ ЧЕК***** [14:42:38]line АЗС-91 [14:42:38]line Партнер нефть [14:42:38]line 02508201610067 [14:42:38]line Кассир : Адишов И. [14:42:38]line Счет N : (1)506963 [14:42:38]line 14.05.2024 14:25 [14:42:38]line ПРОДАЖА [14:42:38]line ТРК (МРК, ГНК): 11 [14:42:38]line Вид ГСМ : 2710194210 [14:42:38]line ДТ-К-5 [14:42:38]line 70.000 x 74.70 [14:42:38]line ИТОГ: 5229.00 [14:42:38]line Тип оплаты: Талоны: Топливные Талоны [14:42:38]line 3472542-996 [14:42:38]line ______________________ [14:42:38]line (подпись) [14:42:38]written 0, free lines is 4095 [14:42:38]OFD Sender: No OFD packet to send [14:42:39]Write to MH i2c: 01 00 00 10 04 14 [14:42:39]Write i2c OK [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: 01 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: 01 07 00 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: 01 07 00 10 04 00 00 00 00 00 10 0E 39 [14:42:39]RasterBufferAndPrint [14:42:39]line [14:42:39]line [14:42:39]line [14:42:39]line [14:42:39]line [14:42:39]written 0, free lines is 3601 [14:42:39]MH_Cut [14:42:39]Write to MH i2c: D1 01 00 17 04 01 ED [14:42:39]Write i2c OK [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: D1 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: D1 01 00 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: D1 01 00 17 04 00 EC [14:42:39]Write to MH i2c: 01 00 00 18 04 1C [14:42:39]Write i2c OK [14:42:39]MH_I2C_Read... [14:42:39]*** Cut start [14:42:39]*** Purtial cut [14:42:39]*** CUTSNS_PIN = 0 [14:42:39]*** Stage 1: CUTSNS_PIN = 1 [14:42:41]Read from MH i2c: 01 [14:42:41]MH_I2C_Read... [14:42:41]*** Stop cut motor [14:42:41]*** Cut end [14:42:41]Read from MH i2c: 01 07 00 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: 01 07 00 18 04 00 00 00 00 00 FF 0F 31 [14:42:41]process_action print_text done [14:42:41]requested_data is exist [14:42:41]produce_requested_data [14:42:41]requested_item fm.sn is exist - process it [14:42:41]wFMCommunicate request_size=4 [14:42:41]MH_SAM_APDU [14:42:41]CAPDU: 80 11 00 00 [14:42:41]Write to MH i2c: E2 08 00 19 04 80 11 00 00 00 00 00 00 97 [14:42:41]Write i2c OK [14:42:41]MH_I2C_Read... [14:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:41]Read from MH i2c: E2 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: E2 17 00 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: E2 17 00 19 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 ED [14:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:42:41]wFMCommunicate OK [14:42:41]requested_item fd.num is exist - process it [14:42:41]SAM_PROTO_GetFieldsCounters [14:42:41]wFMCommunicate request_size=4 [14:42:41]MH_SAM_APDU [14:42:41]CAPDU: 80 13 00 00 [14:42:41]Write to MH i2c: E2 08 00 1A 04 80 13 00 00 00 00 00 00 9A [14:42:41]Write i2c OK [14:42:41]MH_I2C_Read... [14:42:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:41]Read from MH i2c: E2 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: E2 62 00 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: E2 62 00 1A 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 0C 06 01 00 0E 04 04 00 63 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 48 [14:42: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 0C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:41]wFMCommunicate OK [14:42:41]SAM_PROTO_GetFieldsCounters done [14:42:41]requested_item shift.num is exist - process it [14:42:41]requested_item shift.opened is exist - process it [14:42:41]req_shift_opened [14:42:41]FM_GetShiftState [14:42:41]SAM_PROTO_GetShiftState [14:42:41]wFMCommunicate request_size=4 [14:42:41]MH_SAM_APDU [14:42:41]CAPDU: 80 13 01 00 [14:42:41]Write to MH i2c: E2 08 00 1B 04 80 13 01 00 00 00 00 00 9C [14:42:41]Write i2c OK [14:42:41]MH_I2C_Read... [14:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:41]Read from MH i2c: E2 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: E2 0E 00 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: E2 0E 00 1B 04 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 64 [14:42:41]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:42:41]wFMCommunicate OK [14:42:41]SAM_PROTO_GetShiftState done [14:42:41]FM_GetShiftState done [14:42:41]req_shift_opened done [14:42:41]requested_item shift.open_date is exist - process it [14:42:41]req_shift_open_date [14:42:41]req_shift_open_date done [14:42:41]produce_requested_data done [14:42:41]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67084,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [14:42:41]process_action_free print_text [14:42:41]json_value_free [14:42:41]json_value_free done [14:42:41]process_json_proto returns [14:42:41]Send response to host [14:42:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67084,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [14:42:41]free response buf [14:42:41]execute_script done [14:42:41]execute_script returns [14:42:41]free content buf [14:42:41]Sock 7.Close socket [14:42:41]Sock 7.Thread stoped [14:42:43]OFD Sender: No OFD packet to send [14:42:48]OFD Sender: No OFD packet to send [14:42:53]OFD Sender: No OFD packet to send [14:42:58]OFD Sender: No OFD packet to send [14:43:03]OFD Sender: No OFD packet to send [14:43:08]OFD Sender: No OFD packet to send [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:24]OFD Sender: No OFD packet to send [14:43:29]OFD Sender: No OFD packet to send [14:43:34]OFD Sender: No OFD packet to send [14:43:39]OFD Sender: No OFD packet to send [14:43:44]OFD Sender: No OFD packet to send [14:43:49]OFD Sender: No OFD packet to send [14:43:54]OFD Sender: No OFD packet to send [14:43:59]OFD Sender: No OFD packet to send [14:44:04]OFD Sender: No OFD packet to send [14:44:09]OFD Sender: No OFD packet to send [14:44:14]OFD Sender: No OFD packet to send [14:44:19]OFD Sender: No OFD packet to send [14:44:24]OFD Sender: No OFD packet to send [14:44:29]OFD Sender: No OFD packet to send [14:44:34]OFD Sender: No OFD packet to send [14:44:39]OFD Sender: No OFD packet to send [14:44:44]OFD Sender: No OFD packet to send [14:44:49]OFD Sender: No OFD packet to send [14:44:54]OFD Sender: No OFD packet to send [14:44:59]OFD Sender: No OFD packet to send [14:45:01]accept exits with 9 [14:45:01]New connection [14:45:01]New thread 3067485540 created [14:45:01]Thread 3067628900 joined [14:45:01]Waiting for new connection... [14:45:01] Sock 9.Parse request [14:45:01]Sock 9.Check first char [14:45:01]Sock 9.First char is OK [14:45:01]request: POST /json_proto HTTP/1.0 [14:45:01]Method: POST [14:45:01]URL: /json_proto [14:45:01]Method is POST - this is cgi request [14:45:01]url: /json_proto [14:45:01]query_string will be loaded in cgi processing [14:45:01]execute_cgi json_proto POST (null) [14:45:01]execute_cgi path=json_proto method=POST [14:45:01]POST find Content-Length [14:45:01]Host: 172.17.41.195:8080 [14:45:01]Content-Length: 1189 [14:45:01]Content-Type: application/json [14:45:01] [14:45:01]POST finish read [14:45:01]Found Content-Length = 1189 [14:45: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)506964\u000A14.05.2024 14: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\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3839136\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:01]execute_script... [14:45: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)506964\u000A14.05.2024 14: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\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3839136\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:01]POST & json_proto [14:45:01]process_json_proto [14:45:01]json parsed OK: [14:45:01]protocol is kg_v1.0 [14:45:01]action value=print_text [14:45:01]process_action print_text [14:45:01]cmd_print_text [14:45:01]ExternCall_PrintAddStr [14:45:01]wPrintStart [14:45:01]Write to MH i2c: 01 00 00 1C 04 20 [14:45:01]Write i2c OK [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: 01 [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: 01 07 00 [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: 01 07 00 1C 04 00 00 00 00 00 FF 0F 35 [14:45:01]RasterBufferAndPrint [14:45:01]line *****ТОВАРНЫЙ ЧЕК***** [14:45:01]line АЗС-91 [14:45:01]line Партнер нефть [14:45:01]line 02508201610067 [14:45:01]line Кассир : Адишов И. [14:45:01]line Счет N : (1)506964 [14:45:01]line 14.05.2024 14:27 [14:45:01]line ПРОДАЖА [14:45:01]line ТРК (МРК, ГНК): 33 [14:45:01]line Вид ГСМ : 2710124130 [14:45:01]line Аи-92-К-5 [14:45:01]line 10.000 x 66.80 [14:45:01]line ИТОГ: 668.00 [14:45:01]line Тип оплаты: Талоны: Топливные Талоны [14:45:01]line 3839136 [14:45:01]line ______________________ [14:45:01]line (подпись) [14:45:01]written 0, free lines is 4095 [14:45:01]Write to MH i2c: 01 00 00 30 04 34 [14:45:01]Write i2c OK [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: 01 [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: 01 07 00 [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: 01 07 00 30 04 00 00 00 00 00 10 0E 59 [14:45:01]RasterBufferAndPrint [14:45:01]line [14:45:01]line [14:45:01]line [14:45:01]line [14:45:01]line [14:45:01]written 0, free lines is 3602 [14:45:01]MH_Cut [14:45:01]Write to MH i2c: D1 01 00 37 04 01 0D [14:45:01]Write i2c OK [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: D1 [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: D1 01 00 [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: D1 01 00 37 04 00 0C [14:45:01]Write to MH i2c: 01 00 00 38 04 3C [14:45:01]Write i2c OK [14:45:01]MH_I2C_Read... [14:45:02]*** Cut start [14:45:02]*** Purtial cut [14:45:02]*** Stage 1: CUTSNS_PIN = 1 [14:45:02]Read from MH i2c: 01 [14:45:02]MH_I2C_Read... [14:45:02]*** Stop cut motor [14:45:02]*** Cut end [14:45:02]Read from MH i2c: 01 07 00 [14:45:02]MH_I2C_Read... [14:45:02]Read from MH i2c: 01 07 00 38 04 00 00 00 00 00 FF 0F 51 [14:45:02]process_action print_text done [14:45:02]requested_data is exist [14:45:02]produce_requested_data [14:45:02]requested_item fm.sn is exist - process it [14:45:02]wFMCommunicate request_size=4 [14:45:02]MH_SAM_APDU [14:45:02]CAPDU: 80 11 00 00 [14:45:02]Write to MH i2c: E2 08 00 39 04 80 11 00 00 00 00 00 00 B7 [14:45:02]Write i2c OK [14:45:02]MH_I2C_Read... [14:45:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:02]Read from MH i2c: E2 [14:45:02]MH_I2C_Read... [14:45:02]Read from MH i2c: E2 17 00 [14:45:02]MH_I2C_Read... [14:45:02]Read from MH i2c: E2 17 00 39 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0D [14:45:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:45:02]wFMCommunicate OK [14:45:02]requested_item fd.num is exist - process it [14:45:02]SAM_PROTO_GetFieldsCounters [14:45:02]wFMCommunicate request_size=4 [14:45:02]MH_SAM_APDU [14:45:02]CAPDU: 80 13 00 00 [14:45:02]Write to MH i2c: E2 08 00 3A 04 80 13 00 00 00 00 00 00 BA [14:45:02]Write i2c OK [14:45:02]MH_I2C_Read... [14:45:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:02]Read from MH i2c: E2 [14:45:02]MH_I2C_Read... [14:45:02]Read from MH i2c: E2 62 00 [14:45:02]MH_I2C_Read... [14:45:02]Read from MH i2c: E2 62 00 3A 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 0C 06 01 00 0E 04 04 00 63 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 68 [14: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 0C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:45:02]wFMCommunicate OK [14:45:02]SAM_PROTO_GetFieldsCounters done [14:45:02]requested_item shift.num is exist - process it [14:45:02]requested_item shift.opened is exist - process it [14:45:02]req_shift_opened [14:45:02]FM_GetShiftState [14:45:02]SAM_PROTO_GetShiftState [14:45:02]wFMCommunicate request_size=4 [14:45:02]MH_SAM_APDU [14:45:02]CAPDU: 80 13 01 00 [14:45:02]Write to MH i2c: E2 08 00 3B 04 80 13 01 00 00 00 00 00 BC [14:45:02]Write i2c OK [14:45:02]MH_I2C_Read... [14:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:02]Read from MH i2c: E2 [14:45:02]MH_I2C_Read... [14:45:02]Read from MH i2c: E2 0E 00 [14:45:02]MH_I2C_Read... [14:45:02]Read from MH i2c: E2 0E 00 3B 04 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 84 [14:45:02]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:45:02]wFMCommunicate OK [14:45:02]SAM_PROTO_GetShiftState done [14:45:02]FM_GetShiftState done [14:45:02]req_shift_opened done [14:45:02]requested_item shift.open_date is exist - process it [14:45:02]req_shift_open_date [14:45:02]req_shift_open_date done [14:45:02]produce_requested_data done [14:45:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67084,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [14:45:02]process_action_free print_text [14:45:02]json_value_free [14:45:02]json_value_free done [14:45:02]process_json_proto returns [14:45:02]Send response to host [14:45:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67084,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [14:45:02]free response buf [14:45:02]execute_script done [14:45:02]execute_script returns [14:45:02]free content buf [14:45:02]Sock 9.Close socket [14:45:02]Sock 9.Thread stoped [14:45:04]OFD Sender: No OFD packet to send [14:45:09]OFD Sender: No OFD packet to send [14:45:14]OFD Sender: No OFD packet to send [14:45:19]OFD Sender: No OFD packet to send [14:45:24]OFD Sender: No OFD packet to send [14:45:29]OFD Sender: No OFD packet to send [14:45:34]OFD Sender: No OFD packet to send [14:45:39]OFD Sender: No OFD packet to send [14:45:44]OFD Sender: No OFD packet to send [14:45:49]OFD Sender: No OFD packet to send [14:45:54]OFD Sender: No OFD packet to send [14:45:59]OFD Sender: No OFD packet to send [14:46:04]OFD Sender: No OFD packet to send [14:46:09]OFD Sender: No OFD packet to send [14:46:14]OFD Sender: No OFD packet to send [14:46:19]OFD Sender: No OFD packet to send [14:46:24]OFD Sender: No OFD packet to send [14:46:29]OFD Sender: No OFD packet to send [14:46:34]OFD Sender: No OFD packet to send [14:46:39]OFD Sender: No OFD packet to send [14:46:44]OFD Sender: No OFD packet to send [14:46:49]OFD Sender: No OFD packet to send [14:46:54]OFD Sender: No OFD packet to send [14:46:59]OFD Sender: No OFD packet to send [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:31]accept exits with 7 [14:49:31]New connection [14:49:31]New thread 3067628900 created [14:49:31]Thread 3067485540 joined [14:49:31]Waiting for new connection... [14:49:31] Sock 7.Parse request [14:49:31]Sock 7.Check first char [14:49:31]Sock 7.First char is OK [14:49:31]request: POST /json_proto HTTP/1.0 [14:49:31]Method: POST [14:49:31]URL: /json_proto [14:49:31]Method is POST - this is cgi request [14:49:31]url: /json_proto [14:49:31]query_string will be loaded in cgi processing [14:49:31]execute_cgi json_proto POST (null) [14:49:31]execute_cgi path=json_proto method=POST [14:49:31]POST find Content-Length [14:49:31]Host: 172.17.41.195:8080 [14:49:31]Content-Length: 679 [14:49:31]Content-Type: application/json [14:49:31] [14:49:31]POST finish read [14:49:31]Found Content-Length = 679 [14:49:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506965", "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:49:31]execute_script... [14:49:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506965", "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:49:31]POST & json_proto [14:49:31]process_json_proto [14:49:31]json parsed OK: [14:49:31]protocol is kg_v1.0 [14:49:31]action value=close_receipt [14:49:31]process_action close_receipt [14:49:31]cmd_close_receipt [14:49:31]MH_GetDate [14:49:31]Write to MH i2c: F0 00 00 3C 04 2F [14:49:31]Write i2c OK [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: F0 [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: F0 09 00 [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: F0 09 00 3C 04 00 FB 79 43 66 FC 21 6F 64 45 [14:49:31]GetLastDocTimeStamp 1715697626 [14:49:31]current date 1715698171 [14:49:31]FM_GetShiftState [14:49:31]SAM_PROTO_GetShiftState [14:49:31]wFMCommunicate request_size=4 [14:49:31]MH_SAM_APDU [14:49:31]CAPDU: 80 13 01 00 [14:49:31]Write to MH i2c: E2 08 00 3D 04 80 13 01 00 00 00 00 00 BE [14:49:31]Write i2c OK [14:49:31]MH_I2C_Read... [14:49:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:31]Read from MH i2c: E2 [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: E2 0E 00 [14:49:31]MH_I2C_Read... [14:49:31]Read from MH i2c: E2 0E 00 3D 04 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 86 [14:49:31]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:49:31]wFMCommunicate OK [14:49:31]SAM_PROTO_GetShiftState done [14:49:31]FM_GetShiftState done [14:49:31]opened in 1715646054 [14:49:31]opened+sec_in_day 1715732454 [14:49:31]quantity*price = 100023 [14:49:31]sum+1 = 100024 [14:49:31]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 СНО: Общий режим Чек 92 14.05.2024 14:49 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67085 ФПД: 2958295624505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T144931&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67085&fm=2958295624505&tin=02508201610067®Number=0000000000091845&sum=100000 [14:49:32]StoreToDocumentArchive [14:49:32]shift 355 fd 67085 [14:49:32]save to /storage/0355/doc_00067085 [14:49:32]save last doc name /storage/0355/doc_00067085 to /storage/kkm_last_doc_name [14:49:32]save OK [14:49:32]Clear old archive folders... [14:49:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:49:32]tlvbuf is 0082CC60 [14:49:32]SAM_PROTO_ClearQueue [14:49:32]wFMCommunicate request_size=4 [14:49:32]MH_SAM_APDU [14:49:32]CAPDU: 80 09 00 00 [14:49:32]Write to MH i2c: E2 08 00 4A 04 80 09 00 00 00 00 00 00 C0 [14:49:32]Write i2c OK [14:49:32]MH_I2C_Read... [14:49:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:32]Read from MH i2c: E2 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: E2 03 00 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: E2 03 00 4A 04 00 90 00 C2 [14:49:32]RAPDU: 90 00 [14:49:32]wFMCommunicate OK [14:49:32]SAM_PROTO_ClearQueue done [14:49:32]KKMCreateOFDPacket [14:49:32]OFDProtocolAddRootSTLVToBuf [14:49:32]FM_MakeSignedData [14:49:32]FM_MakeSignedData [14:49:32]SAM_PROTO_SignData [14:49:32]wFMCommunicate request_size=4 [14:49:32]MH_SAM_APDU [14:49:32]CAPDU: 80 0D 01 02 [14:49:32]Write to MH i2c: E2 08 00 4B 04 80 0D 01 02 00 00 00 00 C8 [14:49:32]Write i2c OK [14:49:32]MH_I2C_Read... [14:49:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:32]Read from MH i2c: E2 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: E2 03 00 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: E2 03 00 4B 04 00 90 00 C3 [14:49:32]RAPDU: 90 00 [14:49:32]wFMCommunicate OK [14:49:32]wFMCommunicate request_size=255 [14:49:32]MH_SAM_APDU [14:49:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 5C 00 00 00 F4 03 04 00 FB 79 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0D 06 01 00 35 04 06 00 02 B0 C8 28 [14:49:32]Write to MH i2c: E2 02 01 4C 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 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 5C 00 00 00 F4 03 04 00 FB 79 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0D 06 01 00 35 04 06 00 02 B0 C8 28 00 00 35 [14:49:32]Write i2c OK [14:49:32]MH_I2C_Read... [14:49:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:32]Read from MH i2c: E2 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: E2 03 00 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: E2 03 00 4C 04 00 90 00 C4 [14:49:32]RAPDU: 90 00 [14:49:32]wFMCommunicate OK [14:49:32]wFMCommunicate request_size=7 [14:49:32]MH_SAM_APDU [14:49:32]CAPDU: 80 0D 02 02 02 EB 39 [14:49:32]Write to MH i2c: E2 0A 00 4D 04 80 0D 02 02 02 00 EB 39 00 00 F3 [14:49:32]Write i2c OK [14:49:32]MH_I2C_Read... [14:49:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:32]Read from MH i2c: E2 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: E2 03 00 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: E2 03 00 4D 04 00 90 00 C5 [14:49:32]RAPDU: 90 00 [14:49:32]wFMCommunicate OK [14:49:32]wFMCommunicate request_size=4 [14:49:32]MH_SAM_APDU [14:49:32]CAPDU: 80 0D 03 02 [14:49:32]Write to MH i2c: E2 08 00 4E 04 80 0D 03 02 00 00 00 00 CD [14:49:32]Write i2c OK [14:49:32]MH_I2C_Read... [14:49:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:32]Read from MH i2c: E2 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: E2 0B 00 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: E2 0B 00 4E 04 00 97 10 03 38 30 CD 52 3A 90 00 39 [14:49:32]RAPDU: 97 10 03 38 30 CD 52 3A 90 00 [14:49:32]wFMCommunicate OK [14:49:32]SAM_PROTO_SignData done [14:49:32]FM_MakeSignedData done [14:49:32]CreateOFDProtocolMessage [14:49:32]wFMCommunicate request_size=4 [14:49:32]MH_SAM_APDU [14:49:32]CAPDU: 80 11 00 00 [14:49:32]Write to MH i2c: E2 08 00 4F 04 80 11 00 00 00 00 00 00 CD [14:49:32]Write i2c OK [14:49:32]MH_I2C_Read... [14:49:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:32]Read from MH i2c: E2 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: E2 17 00 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: E2 17 00 4F 04 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:49: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:49:32]wFMCommunicate OK [14:49:32]CreateOFDProtocolMessage done [14:49:32]OFDSenderStorePacket 67085 [14:49:32]StoreOFDPacket docnum=67085 [14:49:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 9C 23 04 01 60 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 5C 00 00 00 F4 03 04 00 FB 79 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0D 06 01 00 35 04 06 00 02 B0 C8 28 EB 39 97 10 03 38 30 CD 52 3A [14:49:32]CheckFolder [14:49:32]dirname=/storage/ofd_packets [14:49:32]CheckFolder done [14:49:32]ProducePacketName [14:49:32]name=ofd_packets/00067085 [14:49:32]NVStorageSaveData ofd_packets/00067085 [14:49:32]File name is /storage/ofd_packets/00067085 [14:49:32]Write 298 bytes [14:49:32]NVStorageSaveData done [14:49:32]OFDSenderStorePacket done [14:49:32]KKMCreateOFDPacket done [14:49:32]NVStorageSaveData kkm_last_timestamp [14:49:32]File name is /storage/kkm_last_timestamp [14:49:32]Write 4 bytes [14:49:32]NVStorageSaveData done [14:49:32]ExternCall_PrintAddStr [14:49:32]wPrintStart [14:49:32]Write to MH i2c: 01 00 00 50 04 54 [14:49:32]Write i2c OK [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: 01 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: 01 07 00 [14:49:32]MH_I2C_Read... [14:49:32]Read from MH i2c: 01 07 00 50 04 00 00 00 00 00 FF 0F 69 [14:49:32]RasterBufferAndPrint [14:49:32]line Счет N : (1)506965 [14:49:32]line ИНН: 02508201610067 [14:49:32]line Контрольно-Кассовый Чек [14:49:32]line ПРОДАЖА [14:49:32]line ТРК (МРК, ГНК) : 11 [14:49:32]line Товар: 2710194210 [14:49:32]line ДТ-К-5 [14:49:32]line 13.390 * 74.70 [14:49:32]line = 1000.23 [14:49:32]line НДС 12% НСП 1% [14:49:32]line > о реализуемом товаре [14:49:32]line ОКРУГЛЕНИЕ: -0.23 [14:49:32]line ИТОГО: 1000.00 [14:49:32]line Внесено: 1000.00 [14:49:32]line СДАЧА: 0.00 [14:49:32]line НСП 1% : 8.85 [14:49:32]line НДС 12% : 106.22 [14:49:32]line Наличными: 1000.00 [14:49:32]line Безнал.: 0.00 [14:49:32]line Место: АЗС № 91 "Партнер Нефть" [14:49:32]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:49:32]line СНО: Общий режим [14:49:32]line Чек 92 14.05.2024 14:49 [14:49:32]line Смена: 355 ФФД: 1.0 [14:49:32]line ЗНМ: 0300000119 [14:49:32]line РНМ: 0000000000091845 [14:49:32]line Версия ККМ: 001 [14:49:32]line ФМ: 0000000000871829 [14:49:32]line ФД: 67085 [14:49:32]line ФПД: 2958295624505 [14:49:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T144931&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67085&fm=2958295624505&tin=02508201610067®Number=0000000000091845&sum=100000 [14:49:33]OFD Sender: Processing packet 67085 [packets to send 35, broken 34] [14:49:33]ProducePacketName [14:49:33]name=ofd_packets/00067085 [14:49:33]OFD Sender: To server: pG, [14:49:33]CommunicateWithHost lk.salyk.kg:30040 [14:49:33]ConnectInit lk.salyk.kg [14:49:33]written 0, free lines is 4095 [14:49:33]Connected sock=11 [14:49:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 9C 23 04 01 60 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 5C 00 00 00 F4 03 04 00 FB 79 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0D 06 01 00 35 04 06 00 02 B0 C8 28 EB 39 97 10 03 38 30 CD 52 3A [14:49: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 A1 3F 47 00 73 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0D 06 01 00 F4 03 04 00 DB 21 43 66 B6 04 01 00 00 78 4E 62 95 17 59 32 E5 [14:49:33]CommunicateWithHost err = 0 [14:49:33]CheckOFDResponse [14:49:33]1017 (14) - 77093643461234 [14:49:33]1041 (16) - 0000000000871829 [14:49:33]1040 (4) - 67085 [14:49:33]1012 (4) - 14.05.2024 08:33 [14:49:33]1206 (1) - 0 [14:49:33]OFD Sender: Remove packet 67085 [14:49:33]ProducePacketName [14:49:33]name=ofd_packets/00067085 [14:49:33]NVStorageDeleteData [14:49:33]Write to MH i2c: 01 00 00 7A 04 7E [14:49:33]Write i2c OK [14:49:33]MH_I2C_Read... [14:49:33]Read from MH i2c: 01 [14:49:33]MH_I2C_Read... [14:49:33]Read from MH i2c: 01 07 00 [14:49:33]MH_I2C_Read... [14:49:33]Read from MH i2c: 01 07 00 7A 04 00 00 00 00 00 CE 0C 5F [14:49:33]RasterBufferAndPrint [14:49:33]line [14:49:33]line [14:49:33]line [14:49:33]line [14:49:33]line [14:49:33]written 0, free lines is 3284 [14:49:33]MH_Cut [14:49:33]Write to MH i2c: D1 01 00 81 04 01 57 [14:49:33]Write i2c OK [14:49:33]MH_I2C_Read... [14:49:33]Read from MH i2c: D1 [14:49:33]MH_I2C_Read... [14:49:33]Read from MH i2c: D1 01 00 [14:49:33]MH_I2C_Read... [14:49:33]Read from MH i2c: D1 01 00 81 04 00 56 [14:49:33]Write to MH i2c: 01 00 00 82 04 86 [14:49:33]Write i2c OK [14:49:33]MH_I2C_Read... [14:49:34]OFD Sender: No OFD packet to send [14:49:34]*** Cut start [14:49:34]*** Purtial cut [14:49:34]*** CUTSNS_PIN = 0 [14:49:34]*** Stage 1: CUTSNS_PIN = 1 [14:49:36]Read from MH i2c: 01 [14:49:36]MH_I2C_Read... [14:49:36]*** Stop cut motor [14:49:36]*** Cut end [14:49:36]Read from MH i2c: 01 07 00 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: 01 07 00 82 04 00 00 00 00 00 FF 0F 9B [14:49:36]process_action close_receipt done [14:49:36]requested_data is exist [14:49:36]produce_requested_data [14:49:36]requested_item fm.sn is exist - process it [14:49:36]wFMCommunicate request_size=4 [14:49:36]MH_SAM_APDU [14:49:36]CAPDU: 80 11 00 00 [14:49:36]Write to MH i2c: E2 08 00 83 04 80 11 00 00 00 00 00 00 01 [14:49:36]Write i2c OK [14:49:36]MH_I2C_Read... [14:49:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:36]Read from MH i2c: E2 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 17 00 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 17 00 83 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 57 [14:49:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:49:36]wFMCommunicate OK [14:49:36]requested_item fd.num is exist - process it [14:49:36]SAM_PROTO_GetFieldsCounters [14:49:36]wFMCommunicate request_size=4 [14:49:36]MH_SAM_APDU [14:49:36]CAPDU: 80 13 00 00 [14:49:36]Write to MH i2c: E2 08 00 84 04 80 13 00 00 00 00 00 00 04 [14:49:36]Write i2c OK [14:49:36]MH_I2C_Read... [14:49:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:36]Read from MH i2c: E2 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 62 00 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 62 00 84 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 0D 06 01 00 0E 04 04 00 63 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 B6 [14:49: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 0D 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:36]wFMCommunicate OK [14:49:36]SAM_PROTO_GetFieldsCounters done [14:49:36]requested_item shift.num is exist - process it [14:49:36]requested_item shift.opened is exist - process it [14:49:36]req_shift_opened [14:49:36]FM_GetShiftState [14:49:36]SAM_PROTO_GetShiftState [14:49:36]wFMCommunicate request_size=4 [14:49:36]MH_SAM_APDU [14:49:36]CAPDU: 80 13 01 00 [14:49:36]Write to MH i2c: E2 08 00 85 04 80 13 01 00 00 00 00 00 06 [14:49:36]Write i2c OK [14:49:36]MH_I2C_Read... [14:49:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:36]Read from MH i2c: E2 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 0E 00 [14:49:36]MH_I2C_Read... [14:49:36]Read from MH i2c: E2 0E 00 85 04 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 CE [14:49:36]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:49:36]wFMCommunicate OK [14:49:36]SAM_PROTO_GetShiftState done [14:49:36]FM_GetShiftState done [14:49:36]req_shift_opened done [14:49:36]requested_item shift.open_date is exist - process it [14:49:36]req_shift_open_date [14:49:36]req_shift_open_date done [14:49:36]produce_requested_data done [14:49:36]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67085,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [14:49:36]process_action_free close_receipt [14:49:36]json_value_free [14:49:36]json_value_free done [14:49:36]process_json_proto returns [14:49:36]Send response to host [14:49:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67085,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [14:49:36]free response buf [14:49:36]execute_script done [14:49:36]execute_script returns [14:49:36]free content buf [14:49:36]Sock 7.Close socket [14:49:36]Sock 7.Thread stoped [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:14]OFD Sender: No OFD packet to send [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:29]OFD Sender: No OFD packet to send [14:51:34]OFD Sender: No OFD packet to send [14:51:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:49]OFD Sender: No OFD packet to send [14:51:54]OFD Sender: No OFD packet to send [14:51:59]OFD Sender: No OFD packet to send [14:52:04]OFD Sender: No OFD packet to send [14:52:09]OFD Sender: No OFD packet to send [14:52:14]OFD Sender: No OFD packet to send [14:52:19]OFD Sender: No OFD packet to send [14:52:24]OFD Sender: No OFD packet to send [14:52:29]OFD Sender: No OFD packet to send [14:52:32]accept exits with 9 [14:52:32]New connection [14:52:32]New thread 3067485540 created [14:52:32]Thread 3067628900 joined [14:52:32]Waiting for new connection... [14:52:32] Sock 9.Parse request [14:52:32]Sock 9.Check first char [14:52:32]Sock 9.First char is OK [14:52:32]request: POST /json_proto HTTP/1.0 [14:52:32]Method: POST [14:52:32]URL: /json_proto [14:52:32]Method is POST - this is cgi request [14:52:32]url: /json_proto [14:52:32]query_string will be loaded in cgi processing [14:52:32]execute_cgi json_proto POST (null) [14:52:32]execute_cgi path=json_proto method=POST [14:52:32]POST find Content-Length [14:52:32]Host: 172.17.41.195:8080 [14:52:32]Content-Length: 674 [14:52:32]Content-Type: application/json [14:52:32] [14:52:32]POST finish read [14:52:32]Found Content-Length = 674 [14:52:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506967", "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" : 7.330, "sum" : 547.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 547.00, "total" : 547.00, "payments": [ { "type": 0, "sum" : 547.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:32]execute_script... [14:52: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)506967", "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" : 7.330, "sum" : 547.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 547.00, "total" : 547.00, "payments": [ { "type": 0, "sum" : 547.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:32]POST & json_proto [14:52:32]process_json_proto [14:52:32]json parsed OK: [14:52:32]protocol is kg_v1.0 [14:52:32]action value=close_receipt [14:52:32]process_action close_receipt [14:52:32]cmd_close_receipt [14:52:32]MH_GetDate [14:52:32]Write to MH i2c: F0 00 00 86 04 79 [14:52:32]Write i2c OK [14:52:32]MH_I2C_Read... [14:52:32]Read from MH i2c: F0 [14:52:32]MH_I2C_Read... [14:52:32]Read from MH i2c: F0 09 00 [14:52:32]MH_I2C_Read... [14:52:32]Read from MH i2c: F0 09 00 86 04 00 B1 7A 43 66 FC 21 6F 64 46 [14:52:32]GetLastDocTimeStamp 1715698171 [14:52:32]current date 1715698353 [14:52:32]FM_GetShiftState [14:52:32]SAM_PROTO_GetShiftState [14:52:32]wFMCommunicate request_size=4 [14:52:32]MH_SAM_APDU [14:52:32]CAPDU: 80 13 01 00 [14:52:32]Write to MH i2c: E2 08 00 87 04 80 13 01 00 00 00 00 00 08 [14:52:32]Write i2c OK [14:52:32]MH_I2C_Read... [14:52:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:32]Read from MH i2c: E2 [14:52:32]MH_I2C_Read... [14:52:32]Read from MH i2c: E2 0E 00 [14:52:32]MH_I2C_Read... [14:52:32]Read from MH i2c: E2 0E 00 87 04 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D0 [14:52:32]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:52:32]wFMCommunicate OK [14:52:32]SAM_PROTO_GetShiftState done [14:52:32]FM_GetShiftState done [14:52:32]opened in 1715646054 [14:52:32]opened+sec_in_day 1715732454 [14:52:32]quantity*price = 54755 [14:52:32]sum+1 = 54756 [14:52:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 547.00 Внесено: 547.00 СДАЧА: 0.00 НСП 1% : 4.85 НДС 12% : 58.15 Наличными: 547.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 93 14.05.2024 14:52 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67086 ФПД: 88210421096719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T145233&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67086&fm=88210421096719&tin=02508201610067®Number=0000000000091845&sum=54700 [14:52:33]StoreToDocumentArchive [14:52:33]shift 355 fd 67086 [14:52:33]save to /storage/0355/doc_00067086 [14:52:33]save last doc name /storage/0355/doc_00067086 to /storage/kkm_last_doc_name [14:52:33]save OK [14:52:33]Clear old archive folders... [14:52:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:52:33]tlvbuf is B6FFD290 [14:52:33]SAM_PROTO_ClearQueue [14:52:33]wFMCommunicate request_size=4 [14:52:33]MH_SAM_APDU [14:52:33]CAPDU: 80 09 00 00 [14:52:33]Write to MH i2c: E2 08 00 94 04 80 09 00 00 00 00 00 00 0A [14:52:33]Write i2c OK [14:52:33]MH_I2C_Read... [14:52:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:33]Read from MH i2c: E2 [14:52:33]MH_I2C_Read... [14:52:33]Read from MH i2c: E2 03 00 [14:52:33]MH_I2C_Read... [14:52:33]Read from MH i2c: E2 03 00 94 04 00 90 00 0C [14:52:33]RAPDU: 90 00 [14:52:33]wFMCommunicate OK [14:52:33]SAM_PROTO_ClearQueue done [14:52:33]KKMCreateOFDPacket [14:52:33]OFDProtocolAddRootSTLVToBuf [14:52:33]FM_MakeSignedData [14:52:33]FM_MakeSignedData [14:52:33]SAM_PROTO_SignData [14:52:33]wFMCommunicate request_size=4 [14:52:33]MH_SAM_APDU [14:52:33]CAPDU: 80 0D 01 02 [14:52:33]Write to MH i2c: E2 08 00 95 04 80 0D 01 02 00 00 00 00 12 [14:52:33]Write i2c OK [14:52:33]MH_I2C_Read... [14:52:33]Read from MH i2c: E2 [14:52:33]MH_I2C_Read... [14:52:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:33]Read from MH i2c: E2 03 00 [14:52:33]MH_I2C_Read... [14:52:33]Read from MH i2c: E2 03 00 95 04 00 90 00 0D [14:52:33]RAPDU: 90 00 [14:52:33]wFMCommunicate OK [14:52:33]wFMCommunicate request_size=255 [14:52:33]MH_SAM_APDU [14:52:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 1C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E3 D5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC D5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 16 00 00 00 00 07 04 06 00 AC D5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 B1 7A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0E 06 01 00 35 04 06 00 50 3A 16 D0 [14:52:33]Write to MH i2c: E2 02 01 96 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 A2 1C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E3 D5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC D5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 16 00 00 00 00 07 04 06 00 AC D5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 B1 7A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0E 06 01 00 35 04 06 00 50 3A 16 D0 00 00 04 [14:52:33]Write i2c OK [14:52:33]MH_I2C_Read... [14:52:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:34]Read from MH i2c: E2 [14:52:34]MH_I2C_Read... [14:52:34]Read from MH i2c: E2 03 00 [14:52:34]MH_I2C_Read... [14:52:34]Read from MH i2c: E2 03 00 96 04 00 90 00 0E [14:52:34]RAPDU: 90 00 [14:52:34]wFMCommunicate OK [14:52:34]wFMCommunicate request_size=7 [14:52:34]MH_SAM_APDU [14:52:34]CAPDU: 80 0D 02 02 02 A1 0F [14:52:34]Write to MH i2c: E2 0A 00 97 04 80 0D 02 02 02 00 A1 0F 00 00 C9 [14:52:34]Write i2c OK [14:52:34]MH_I2C_Read... [14:52:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:34]Read from MH i2c: E2 [14:52:34]MH_I2C_Read... [14:52:34]Read from MH i2c: E2 03 00 [14:52:34]MH_I2C_Read... [14:52:34]Read from MH i2c: E2 03 00 97 04 00 90 00 0F [14:52:34]RAPDU: 90 00 [14:52:34]wFMCommunicate OK [14:52:34]wFMCommunicate request_size=4 [14:52:34]MH_SAM_APDU [14:52:34]CAPDU: 80 0D 03 02 [14:52:34]Write to MH i2c: E2 08 00 98 04 80 0D 03 02 00 00 00 00 17 [14:52:34]Write i2c OK [14:52:34]MH_I2C_Read... [14:52:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:34]Read from MH i2c: E2 [14:52:34]MH_I2C_Read... [14:52:34]Read from MH i2c: E2 0B 00 [14:52:34]MH_I2C_Read... [14:52:34]Read from MH i2c: E2 0B 00 98 04 00 77 3E A1 8F B2 4A C3 EA 90 00 A6 [14:52:34]RAPDU: 77 3E A1 8F B2 4A C3 EA 90 00 [14:52:34]wFMCommunicate OK [14:52:34]SAM_PROTO_SignData done [14:52:34]FM_MakeSignedData done [14:52:34]CreateOFDProtocolMessage [14:52:34]wFMCommunicate request_size=4 [14:52:34]MH_SAM_APDU [14:52:34]CAPDU: 80 11 00 00 [14:52:34]Write to MH i2c: E2 08 00 99 04 80 11 00 00 00 00 00 00 17 [14:52:34]Write i2c OK [14:52:34]MH_I2C_Read... [14:52:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:34]Read from MH i2c: E2 [14:52:34]MH_I2C_Read... [14:52:34]Read from MH i2c: E2 17 00 [14:52:34]MH_I2C_Read... [14:52:34]Read from MH i2c: E2 17 00 99 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6D [14:52:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:52:34]wFMCommunicate OK [14:52:34]CreateOFDProtocolMessage done [14:52:34]OFDSenderStorePacket 67086 [14:52:34]StoreOFDPacket docnum=67086 [14:52:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 10 CA 04 01 A9 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 1C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E3 D5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC D5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 16 00 00 00 00 07 04 06 00 AC D5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 B1 7A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0E 06 01 00 35 04 06 00 50 3A 16 D0 A1 0F 77 3E A1 8F B2 4A C3 EA [14:52:34]CheckFolder [14:52:34]dirname=/storage/ofd_packets [14:52:34]CheckFolder done [14:52:34]ProducePacketName [14:52:34]name=ofd_packets/00067086 [14:52:34]NVStorageSaveData ofd_packets/00067086 [14:52:34]File name is /storage/ofd_packets/00067086 [14:52:34]Write 298 bytes [14:52:34]NVStorageSaveData done [14:52:34]OFDSenderStorePacket done [14:52:34]KKMCreateOFDPacket done [14:52:34]NVStorageSaveData kkm_last_timestamp [14:52:34]File name is /storage/kkm_last_timestamp [14:52:34]Write 4 bytes [14:52:34]NVStorageSaveData done [14:52:34]ExternCall_PrintAddStr [14:52:34]wPrintStart [14:52:34]Write to MH i2c: 01 00 00 9A 04 9E [14:52:34]Write i2c OK [14:52:34]MH_I2C_Read... [14:52:34]Read from MH i2c: 01 [14:52:34]MH_I2C_Read... [14:52:34]Read from MH i2c: 01 07 00 [14:52:34]MH_I2C_Read... [14:52:34]Read from MH i2c: 01 07 00 9A 04 00 00 00 00 00 FF 0F B3 [14:52:34]RasterBufferAndPrint [14:52:34]line Счет N : (1)506967 [14:52:34]line ИНН: 02508201610067 [14:52:34]line Контрольно-Кассовый Чек [14:52:34]line ПРОДАЖА [14:52:34]line ТРК (МРК, ГНК) : 21 [14:52:34]line Товар: 2710194210 [14:52:34]line ДТ-К-5 [14:52:34]line 7.330 * 74.70 [14:52:34]line = 547.55 [14:52:34]line НДС 12% НСП 1% [14:52:34]line > о реализуемом товаре [14:52:34]line ОКРУГЛЕНИЕ: -0.55 [14:52:34]line ИТОГО: 547.00 [14:52:34]line Внесено: 547.00 [14:52:34]line СДАЧА: 0.00 [14:52:34]line НСП 1% : 4.85 [14:52:34]line НДС 12% : 58.15 [14:52:34]line Наличными: 547.00 [14:52:34]line Безнал.: 0.00 [14:52:34]line Место: АЗС № 91 "Партнер Нефть" [14:52:34]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [14:52:34]line СНО: Общий режим [14:52:34]line Чек 93 14.05.2024 14:52 [14:52:34]line Смена: 355 ФФД: 1.0 [14:52:34]line ЗНМ: 0300000119 [14:52:34]line РНМ: 0000000000091845 [14:52:34]line Версия ККМ: 001 [14:52:34]line ФМ: 0000000000871829 [14:52:34]line ФД: 67086 [14:52:34]line ФПД: 88210421096719 [14:52:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T145233&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67086&fm=88210421096719&tin=02508201610067®Number=0000000000091845&sum=54700 [14:52:34]OFD Sender: Processing packet 67086 [packets to send 35, broken 34] [14:52:34]ProducePacketName [14:52:34]name=ofd_packets/00067086 [14:52:34]OFD Sender: To server: pG, [14:52:34]CommunicateWithHost lk.salyk.kg:30040 [14:52:34]ConnectInit lk.salyk.kg [14:52:34]written 0, free lines is 4095 [14:52:34]Connected sock=10 [14:52:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 10 CA 04 01 A9 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A2 1C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E3 D5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC D5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 16 00 00 00 00 07 04 06 00 AC D5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 B1 7A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0E 06 01 00 35 04 06 00 50 3A 16 D0 A1 0F 77 3E A1 8F B2 4A C3 EA [14:52: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 04 A5 47 00 CB 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 0E 06 01 00 F4 03 04 00 90 22 43 66 B6 04 01 00 00 9D 71 E0 1A EE 63 5E 47 [14:52:34]CommunicateWithHost err = 0 [14:52:34]CheckOFDResponse [14:52:34]1017 (14) - 77093643461234 [14:52:34]1041 (16) - 0000000000871829 [14:52:34]1040 (4) - 67086 [14:52:34]1012 (4) - 14.05.2024 08:36 [14:52:34]1206 (1) - 0 [14:52:34]OFD Sender: Remove packet 67086 [14:52:34]ProducePacketName [14:52:34]name=ofd_packets/00067086 [14:52:34]NVStorageDeleteData [14:52:34]Write to MH i2c: 01 00 00 C4 04 C8 [14:52:34]Write i2c OK [14:52:34]MH_I2C_Read... [14:52:34]Read from MH i2c: 01 [14:52:34]MH_I2C_Read... [14:52:34]Read from MH i2c: 01 07 00 [14:52:34]MH_I2C_Read... [14:52:34]Read from MH i2c: 01 07 00 C4 04 00 00 00 00 00 C6 0C A1 [14:52:34]RasterBufferAndPrint [14:52:34]line [14:52:34]line [14:52:34]line [14:52:34]line [14:52:34]line [14:52:34]written 0, free lines is 3275 [14:52:34]MH_Cut [14:52:34]Write to MH i2c: D1 01 00 CB 04 01 A1 [14:52:34]Write i2c OK [14:52:34]MH_I2C_Read... [14:52:34]Read from MH i2c: D1 [14:52:34]MH_I2C_Read... [14:52:34]Read from MH i2c: D1 01 00 [14:52:34]MH_I2C_Read... [14:52:34]Read from MH i2c: D1 01 00 CB 04 00 A0 [14:52:34]Write to MH i2c: 01 00 00 CC 04 D0 [14:52:34]Write i2c OK [14:52:34]MH_I2C_Read... [14:52:35]OFD Sender: No OFD packet to send [14:52:35]*** Cut start [14:52:35]*** Purtial cut [14:52:35]*** Stage 1: CUTSNS_PIN = 1 [14:52:36]Read from MH i2c: 01 [14:52:36]MH_I2C_Read... [14:52:36]*** Stop cut motor [14:52:36]*** Cut end [14:52:36]Read from MH i2c: 01 07 00 [14:52:36]MH_I2C_Read... [14:52:36]Read from MH i2c: 01 07 00 CC 04 00 00 00 00 00 FF 0F E5 [14:52:36]process_action close_receipt done [14:52:36]requested_data is exist [14:52:36]produce_requested_data [14:52:36]requested_item fm.sn is exist - process it [14:52:36]wFMCommunicate request_size=4 [14:52:36]MH_SAM_APDU [14:52:36]CAPDU: 80 11 00 00 [14:52:36]Write to MH i2c: E2 08 00 CD 04 80 11 00 00 00 00 00 00 4B [14:52:36]Write i2c OK [14:52:36]MH_I2C_Read... [14:52:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:36]Read from MH i2c: E2 [14:52:36]MH_I2C_Read... [14:52:36]Read from MH i2c: E2 17 00 [14:52:36]MH_I2C_Read... [14:52:36]Read from MH i2c: E2 17 00 CD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A1 [14:52:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [14:52:36]wFMCommunicate OK [14:52:36]requested_item fd.num is exist - process it [14:52:36]SAM_PROTO_GetFieldsCounters [14:52:36]wFMCommunicate request_size=4 [14:52:36]MH_SAM_APDU [14:52:36]CAPDU: 80 13 00 00 [14:52:36]Write to MH i2c: E2 08 00 CE 04 80 13 00 00 00 00 00 00 4E [14:52:36]Write i2c OK [14:52:36]MH_I2C_Read... [14:52:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:36]Read from MH i2c: E2 [14:52:36]MH_I2C_Read... [14:52:36]Read from MH i2c: E2 62 00 [14:52:36]MH_I2C_Read... [14:52:36]Read from MH i2c: E2 62 00 CE 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 0E 06 01 00 0E 04 04 00 63 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 04 [14:52: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 0E 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:52:36]wFMCommunicate OK [14:52:36]SAM_PROTO_GetFieldsCounters done [14:52:36]requested_item shift.num is exist - process it [14:52:36]requested_item shift.opened is exist - process it [14:52:36]req_shift_opened [14:52:36]FM_GetShiftState [14:52:36]SAM_PROTO_GetShiftState [14:52:36]wFMCommunicate request_size=4 [14:52:36]MH_SAM_APDU [14:52:36]CAPDU: 80 13 01 00 [14:52:36]Write to MH i2c: E2 08 00 CF 04 80 13 01 00 00 00 00 00 50 [14:52:36]Write i2c OK [14:52:36]MH_I2C_Read... [14:52:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:36]Read from MH i2c: E2 [14:52:36]MH_I2C_Read... [14:52:36]Read from MH i2c: E2 0E 00 [14:52:36]MH_I2C_Read... [14:52:36]Read from MH i2c: E2 0E 00 CF 04 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 18 [14:52:36]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:52:36]wFMCommunicate OK [14:52:36]SAM_PROTO_GetShiftState done [14:52:36]FM_GetShiftState done [14:52:36]req_shift_opened done [14:52:36]requested_item shift.open_date is exist - process it [14:52:36]req_shift_open_date [14:52:36]req_shift_open_date done [14:52:36]produce_requested_data done [14:52:36]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67086,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [14:52:36]process_action_free close_receipt [14:52:36]json_value_free [14:52:36]json_value_free done [14:52:36]process_json_proto returns [14:52:36]Send response to host [14:52:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67086,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [14:52:36]free response buf [14:52:36]execute_script done [14:52:36]execute_script returns [14:52:36]free content buf [14:52:36]Sock 9.Close socket [14:52:36]Sock 9.Thread stoped [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:48]recv_with_timeout no data received [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:30]accept exits with 7 [14:54:30]New connection [14:54:30]New thread 3067628900 created [14:54:30]Thread 3067485540 joined [14:54:30]Waiting for new connection... [14:54:30] Sock 7.Parse request [14:54:30]Sock 7.Check first char [14:54:30]Sock 7.First char is OK [14:54:30]request: POST /json_proto HTTP/1.0 [14:54:30]Method: POST [14:54:30]URL: /json_proto [14:54:30]Method is POST - this is cgi request [14:54:30]url: /json_proto [14:54:30]query_string will be loaded in cgi processing [14:54:30]execute_cgi json_proto POST (null) [14:54:30]execute_cgi path=json_proto method=POST [14:54:30]POST find Content-Length [14:54:30]Host: 172.17.41.195:8080 [14:54:30]Content-Length: 1179 [14:54:30]Content-Type: application/json [14:54:30] [14:54:30]POST finish read [14:54:30]Found Content-Length = 1179 [14:54: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)506969\u000A14.05.2024 14:37\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 35.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2614.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:30]execute_script... [14:54: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)506969\u000A14.05.2024 14:37\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 35.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 2614.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:30]POST & json_proto [14:54:30]process_json_proto [14:54:30]json parsed OK: [14:54:30]protocol is kg_v1.0 [14:54:30]action value=print_text [14:54:30]process_action print_text [14:54:30]cmd_print_text [14:54:30]ExternCall_PrintAddStr [14:54:30]wPrintStart [14:54:30]Write to MH i2c: 01 00 00 D0 04 D4 [14:54:30]Write i2c OK [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: 01 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: 01 07 00 [14:54:30]MH_I2C_Read... [14:54:30]Read from MH i2c: 01 07 00 D0 04 00 00 00 00 00 FF 0F E9 [14:54:30]RasterBufferAndPrint [14:54:30]line *****ТОВАРНЫЙ ЧЕК***** [14:54:30]line АЗС-91 [14:54:30]line Партнер нефть [14:54:30]line 02508201610067 [14:54:30]line Кассир : Адишов И. [14:54:30]line Счет N : (1)506969 [14:54:30]line 14.05.2024 14:37 [14:54:30]line ПРОДАЖА [14:54:30]line ТРК (МРК, ГНК): 41 [14:54:30]line Вид ГСМ : 2710194210 [14:54:30]line ДТ-К-5 [14:54:30]line 35.000 x 74.70 [14:54:30]line ИТОГ: 2614.50 [14:54:30]line Тип оплаты: Талоны: Топливная Карта [14:54:30]line 02750 [14:54:30]line ______________________ [14:54:30]line (подпись) [14:54:30]written 0, free lines is 4095 [14:54:31]Write to MH i2c: 01 00 00 E4 04 E8 [14:54:31]Write i2c OK [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: 01 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: 01 07 00 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: 01 07 00 E4 04 00 00 00 00 00 0E 0E 0B [14:54:31]RasterBufferAndPrint [14:54:31]line [14:54:31]line [14:54:31]line [14:54:31]line [14:54:31]line [14:54:31]written 0, free lines is 3600 [14:54:31]MH_Cut [14:54:31]Write to MH i2c: D1 01 00 EB 04 01 C1 [14:54:31]Write i2c OK [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: D1 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: D1 01 00 [14:54:31]MH_I2C_Read... [14:54:31]Read from MH i2c: D1 01 00 EB 04 00 C0 [14:54:31]Write to MH i2c: 01 00 00 EC 04 F0 [14:54:31]Write i2c OK [14:54:31]MH_I2C_Read... [14:54:31]*** Cut start [14:54:31]*** Purtial cut [14:54:31]*** CUTSNS_PIN = 0 [14:54:31]*** Stage 1: CUTSNS_PIN = 1 [14:54:33]Read from MH i2c: 01 [14:54:33]MH_I2C_Read... [14:54:33]*** Stop cut motor [14:54:33]*** Cut end [14:54:33]Read from MH i2c: 01 07 00 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: 01 07 00 EC 04 00 00 00 00 00 FF 0F 05 [14:54:33]process_action print_text done [14:54:33]requested_data is exist [14:54:33]produce_requested_data [14:54:33]requested_item fm.sn is exist - process it [14:54:33]wFMCommunicate request_size=4 [14:54:33]MH_SAM_APDU [14:54:33]CAPDU: 80 11 00 00 [14:54:33]Write to MH i2c: E2 08 00 ED 04 80 11 00 00 00 00 00 00 6B [14:54:33]Write i2c OK [14:54:33]MH_I2C_Read... [14:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:33]Read from MH i2c: E2 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 17 00 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 17 00 ED 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C1 [14:54: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:54:33]wFMCommunicate OK [14:54:33]requested_item fd.num is exist - process it [14:54:33]SAM_PROTO_GetFieldsCounters [14:54:33]wFMCommunicate request_size=4 [14:54:33]MH_SAM_APDU [14:54:33]CAPDU: 80 13 00 00 [14:54:33]Write to MH i2c: E2 08 00 EE 04 80 13 00 00 00 00 00 00 6E [14:54:33]Write i2c OK [14:54:33]MH_I2C_Read... [14:54:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:33]Read from MH i2c: E2 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 62 00 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 62 00 EE 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 0E 06 01 00 0E 04 04 00 63 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 24 [14:54: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 0E 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:33]wFMCommunicate OK [14:54:33]SAM_PROTO_GetFieldsCounters done [14:54:33]requested_item shift.num is exist - process it [14:54:33]requested_item shift.opened is exist - process it [14:54:33]req_shift_opened [14:54:33]FM_GetShiftState [14:54:33]SAM_PROTO_GetShiftState [14:54:33]wFMCommunicate request_size=4 [14:54:33]MH_SAM_APDU [14:54:33]CAPDU: 80 13 01 00 [14:54:33]Write to MH i2c: E2 08 00 EF 04 80 13 01 00 00 00 00 00 70 [14:54:33]Write i2c OK [14:54:33]MH_I2C_Read... [14:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:33]Read from MH i2c: E2 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 0E 00 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 0E 00 EF 04 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 38 [14:54:33]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [14:54:33]wFMCommunicate OK [14:54:33]SAM_PROTO_GetShiftState done [14:54:33]FM_GetShiftState done [14:54:33]req_shift_opened done [14:54:33]requested_item shift.open_date is exist - process it [14:54:33]req_shift_open_date [14:54:33]req_shift_open_date done [14:54:33]produce_requested_data done [14:54:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67086,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [14:54:33]process_action_free print_text [14:54:33]json_value_free [14:54:33]json_value_free done [14:54:33]process_json_proto returns [14:54:33]Send response to host [14:54:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67086,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [14:54:33]free response buf [14:54:33]execute_script done [14:54:33]execute_script returns [14:54:33]free content buf [14:54:33]Sock 7.Close socket [14:54:33]Sock 7.Thread stoped [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:40]OFD Sender: No OFD packet to send [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:09]accept exits with 9 [15:01:09]New connection [15:01:09]New thread 3067485540 created [15:01:09]Thread 3067628900 joined [15:01:09]Waiting for new connection... [15:01:09] Sock 9.Parse request [15:01:09]Sock 9.Check first char [15:01:09]Sock 9.First char is OK [15:01:09]request: POST /json_proto HTTP/1.0 [15:01:09]Method: POST [15:01:09]URL: /json_proto [15:01:09]Method is POST - this is cgi request [15:01:09]url: /json_proto [15:01:09]query_string will be loaded in cgi processing [15:01:09]execute_cgi json_proto POST (null) [15:01:09]execute_cgi path=json_proto method=POST [15:01:09]POST find Content-Length [15:01:09]Host: 172.17.41.195:8080 [15:01:09]Content-Length: 677 [15:01:09]Content-Type: application/json [15:01:09] [15:01:09]POST finish read [15:01:09]Found Content-Length = 677 [15:01:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506970", "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" ] } } [15:01:09]execute_script... [15:01: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)506970", "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" ] } } [15:01:09]POST & json_proto [15:01:09]process_json_proto [15:01:09]json parsed OK: [15:01:09]protocol is kg_v1.0 [15:01:09]action value=close_receipt [15:01:09]process_action close_receipt [15:01:09]cmd_close_receipt [15:01:09]MH_GetDate [15:01:09]Write to MH i2c: F0 00 00 F0 04 E3 [15:01:09]Write i2c OK [15:01:09]MH_I2C_Read... [15:01:09]Read from MH i2c: F0 [15:01:09]MH_I2C_Read... [15:01:09]Read from MH i2c: F0 09 00 [15:01:09]MH_I2C_Read... [15:01:09]Read from MH i2c: F0 09 00 F0 04 00 B5 7C 43 66 FC 21 6F 64 B6 [15:01:09]GetLastDocTimeStamp 1715698353 [15:01:09]current date 1715698869 [15:01:09]FM_GetShiftState [15:01:09]SAM_PROTO_GetShiftState [15:01:09]wFMCommunicate request_size=4 [15:01:09]MH_SAM_APDU [15:01:09]CAPDU: 80 13 01 00 [15:01:09]Write to MH i2c: E2 08 00 F1 04 80 13 01 00 00 00 00 00 72 [15:01:09]Write i2c OK [15:01:09]MH_I2C_Read... [15:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:09]Read from MH i2c: E2 [15:01:09]MH_I2C_Read... [15:01:09]Read from MH i2c: E2 0E 00 [15:01:09]MH_I2C_Read... [15:01:09]Read from MH i2c: E2 0E 00 F1 04 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 3A [15:01:09]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:01:09]wFMCommunicate OK [15:01:09]SAM_PROTO_GetShiftState done [15:01:09]FM_GetShiftState done [15:01:09]opened in 1715646054 [15:01:09]opened+sec_in_day 1715732454 [15:01:09]quantity*price = 30060 [15:01:09]sum+1 = 30061 [15:01:09]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 СНО: Общий режим Чек 94 14.05.2024 15:01 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67087 ФПД: 264930719654579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T150109&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67087&fm=264930719654579&tin=02508201610067®Number=0000000000091845&sum=30000 [15:01:10]StoreToDocumentArchive [15:01:10]shift 355 fd 67087 [15:01:10]save to /storage/0355/doc_00067087 [15:01:10]save last doc name /storage/0355/doc_00067087 to /storage/kkm_last_doc_name [15:01:10]save OK [15:01:10]Clear old archive folders... [15:01:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:01:10]tlvbuf is 008238D0 [15:01:10]SAM_PROTO_ClearQueue [15:01:10]wFMCommunicate request_size=4 [15:01:10]MH_SAM_APDU [15:01:10]CAPDU: 80 09 00 00 [15:01:10]Write to MH i2c: E2 08 00 FE 04 80 09 00 00 00 00 00 00 74 [15:01:10]Write i2c OK [15:01:10]MH_I2C_Read... [15:01:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:10]Read from MH i2c: E2 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 03 00 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 03 00 FE 04 00 90 00 76 [15:01:10]RAPDU: 90 00 [15:01:10]wFMCommunicate OK [15:01:10]SAM_PROTO_ClearQueue done [15:01:10]KKMCreateOFDPacket [15:01:10]OFDProtocolAddRootSTLVToBuf [15:01:10]FM_MakeSignedData [15:01:10]FM_MakeSignedData [15:01:10]SAM_PROTO_SignData [15:01:10]wFMCommunicate request_size=4 [15:01:10]MH_SAM_APDU [15:01:10]CAPDU: 80 0D 01 02 [15:01:10]Write to MH i2c: E2 08 00 FF 04 80 0D 01 02 00 00 00 00 7C [15:01:10]Write i2c OK [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 [15:01:10]MH_I2C_Read... [15:01:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:10]Read from MH i2c: E2 03 00 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 03 00 FF 04 00 90 00 77 [15:01:10]RAPDU: 90 00 [15:01:10]wFMCommunicate OK [15:01:10]wFMCommunicate request_size=255 [15:01:10]MH_SAM_APDU [15:01: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 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 5E 00 00 00 F4 03 04 00 B5 7C 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0F 06 01 00 35 04 06 00 F0 [15:01:10]Write to MH i2c: E2 02 01 00 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 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 5E 00 00 00 F4 03 04 00 B5 7C 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0F 06 01 00 35 04 06 00 F0 00 00 BF [15:01:10]Write i2c OK [15:01:10]MH_I2C_Read... [15:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:10]Read from MH i2c: E2 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 03 00 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 03 00 00 05 00 90 00 79 [15:01:10]RAPDU: 90 00 [15:01:10]wFMCommunicate OK [15:01:10]wFMCommunicate request_size=10 [15:01:10]MH_SAM_APDU [15:01:10]CAPDU: 80 0D 02 02 05 F3 FD 6F 62 B3 [15:01:10]Write to MH i2c: E2 0D 00 01 05 80 0D 02 02 05 00 F3 FD 6F 62 B3 00 00 FE [15:01:10]Write i2c OK [15:01:10]MH_I2C_Read... [15:01:10]OFD Sender: No OFD packet to send [15:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:10]Read from MH i2c: E2 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 03 00 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 03 00 01 05 00 90 00 7A [15:01:10]RAPDU: 90 00 [15:01:10]wFMCommunicate OK [15:01:10]wFMCommunicate request_size=4 [15:01:10]MH_SAM_APDU [15:01:10]CAPDU: 80 0D 03 02 [15:01:10]Write to MH i2c: E2 08 00 02 05 80 0D 03 02 00 00 00 00 82 [15:01:10]Write i2c OK [15:01:10]MH_I2C_Read... [15:01:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:10]Read from MH i2c: E2 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 0B 00 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 0B 00 02 05 00 2B A9 A0 87 70 39 D0 3E 90 00 35 [15:01:10]RAPDU: 2B A9 A0 87 70 39 D0 3E 90 00 [15:01:10]wFMCommunicate OK [15:01:10]SAM_PROTO_SignData done [15:01:10]FM_MakeSignedData done [15:01:10]CreateOFDProtocolMessage [15:01:10]wFMCommunicate request_size=4 [15:01:10]MH_SAM_APDU [15:01:10]CAPDU: 80 11 00 00 [15:01:10]Write to MH i2c: E2 08 00 03 05 80 11 00 00 00 00 00 00 82 [15:01:10]Write i2c OK [15:01:10]MH_I2C_Read... [15:01:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:10]Read from MH i2c: E2 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 17 00 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: E2 17 00 03 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D8 [15:01:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:01:10]wFMCommunicate OK [15:01:10]CreateOFDProtocolMessage done [15:01:10]OFDSenderStorePacket 67087 [15:01:10]StoreOFDPacket docnum=67087 [15:01: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 D7 EF 07 01 EC DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5E 00 00 00 F4 03 04 00 B5 7C 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0F 06 01 00 35 04 06 00 F0 F3 FD 6F 62 B3 2B A9 A0 87 70 39 D0 3E [15:01:10]CheckFolder [15:01:10]dirname=/storage/ofd_packets [15:01:10]CheckFolder done [15:01:10]ProducePacketName [15:01:10]name=ofd_packets/00067087 [15:01:10]NVStorageSaveData ofd_packets/00067087 [15:01:10]File name is /storage/ofd_packets/00067087 [15:01:10]Write 301 bytes [15:01:10]NVStorageSaveData done [15:01:10]OFDSenderStorePacket done [15:01:10]KKMCreateOFDPacket done [15:01:10]NVStorageSaveData kkm_last_timestamp [15:01:10]File name is /storage/kkm_last_timestamp [15:01:10]Write 4 bytes [15:01:10]NVStorageSaveData done [15:01:10]ExternCall_PrintAddStr [15:01:10]wPrintStart [15:01:10]Write to MH i2c: 01 00 00 04 05 09 [15:01:10]Write i2c OK [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: 01 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: 01 07 00 [15:01:10]MH_I2C_Read... [15:01:10]Read from MH i2c: 01 07 00 04 05 00 00 00 00 00 FF 0F 1E [15:01:10]RasterBufferAndPrint [15:01:10]line Счет N : (1)506970 [15:01:10]line ИНН: 02508201610067 [15:01:10]line Контрольно-Кассовый Чек [15:01:10]line ПРОДАЖА [15:01:10]line ТРК (МРК, ГНК) : 43 [15:01:10]line Товар: 2710124130 [15:01:10]line Аи-92-К-5 [15:01:10]line 4.500 * 66.80 [15:01:10]line = 300.60 [15:01:10]line НДС 12% НСП 1% [15:01:10]line > о реализуемом товаре [15:01:10]line ОКРУГЛЕНИЕ: -0.60 [15:01:10]line ИТОГО: 300.00 [15:01:10]line Внесено: 300.00 [15:01:10]line СДАЧА: 0.00 [15:01:10]line НСП 1% : 2.66 [15:01:10]line НДС 12% : 31.92 [15:01:10]line Наличными: 300.00 [15:01:10]line Безнал.: 0.00 [15:01:10]line Место: АЗС № 91 "Партнер Нефть" [15:01:10]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:01:10]line СНО: Общий режим [15:01:10]line Чек 94 14.05.2024 15:01 [15:01:10]line Смена: 355 ФФД: 1.0 [15:01:10]line ЗНМ: 0300000119 [15:01:10]line РНМ: 0000000000091845 [15:01:10]line Версия ККМ: 001 [15:01:10]line ФМ: 0000000000871829 [15:01:11]line ФД: 67087 [15:01:11]line ФПД: 264930719654579 [15:01:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T150109&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67087&fm=264930719654579&tin=02508201610067®Number=0000000000091845&sum=30000 [15:01:11]OFD Sender: Processing packet 67087 [packets to send 35, broken 34] [15:01:11]ProducePacketName [15:01:11]name=ofd_packets/00067087 [15:01:11]OFD Sender: To server: pG, [15:01:11]CommunicateWithHost lk.salyk.kg:30040 [15:01:11]ConnectInit lk.salyk.kg [15:01:11]written 0, free lines is 4095 [15:01:11]Connected sock=10 [15:01: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 D7 EF 07 01 EC DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5E 00 00 00 F4 03 04 00 B5 7C 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0F 06 01 00 35 04 06 00 F0 F3 FD 6F 62 B3 2B A9 A0 87 70 39 D0 3E [15:01: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 F5 2F 47 00 3B 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 0F 06 01 00 F4 03 04 00 95 24 43 66 B6 04 01 00 00 D6 51 7A 39 D7 26 10 1E [15:01:11]CommunicateWithHost err = 0 [15:01:11]CheckOFDResponse [15:01:11]1017 (14) - 77093643461234 [15:01:11]1041 (16) - 0000000000871829 [15:01:11]1040 (4) - 67087 [15:01:11]1012 (4) - 14.05.2024 08:45 [15:01:11]1206 (1) - 0 [15:01:11]OFD Sender: Remove packet 67087 [15:01:11]ProducePacketName [15:01:11]name=ofd_packets/00067087 [15:01:11]NVStorageDeleteData [15:01:11]Write to MH i2c: 01 00 00 2E 05 33 [15:01:11]Write i2c OK [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: 01 [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: 01 07 00 [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: 01 07 00 2E 05 00 00 00 00 00 D1 0C 17 [15:01:11]RasterBufferAndPrint [15:01:11]line [15:01:11]line [15:01:11]line [15:01:11]line [15:01:11]line [15:01:11]written 0, free lines is 3287 [15:01:11]MH_Cut [15:01:11]Write to MH i2c: D1 01 00 35 05 01 0C [15:01:11]Write i2c OK [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: D1 [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: D1 01 00 [15:01:11]MH_I2C_Read... [15:01:11]Read from MH i2c: D1 01 00 35 05 00 0B [15:01:11]Write to MH i2c: 01 00 00 36 05 3B [15:01:11]Write i2c OK [15:01:11]MH_I2C_Read... [15:01:12]OFD Sender: No OFD packet to send [15:01:12]*** Cut start [15:01:12]*** Purtial cut [15:01:12]*** Stage 1: CUTSNS_PIN = 1 [15:01:12]Read from MH i2c: 01 [15:01:12]MH_I2C_Read... [15:01:12]*** Stop cut motor [15:01:12]*** Cut end [15:01:12]Read from MH i2c: 01 07 00 [15:01:12]MH_I2C_Read... [15:01:12]Read from MH i2c: 01 07 00 36 05 00 00 00 00 00 FF 0F 50 [15:01:12]process_action close_receipt done [15:01:12]requested_data is exist [15:01:12]produce_requested_data [15:01:12]requested_item fm.sn is exist - process it [15:01:12]wFMCommunicate request_size=4 [15:01:12]MH_SAM_APDU [15:01:12]CAPDU: 80 11 00 00 [15:01:12]Write to MH i2c: E2 08 00 37 05 80 11 00 00 00 00 00 00 B6 [15:01:12]Write i2c OK [15:01:12]MH_I2C_Read... [15:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:12]Read from MH i2c: E2 [15:01:12]MH_I2C_Read... [15:01:12]Read from MH i2c: E2 17 00 [15:01:12]MH_I2C_Read... [15:01:12]Read from MH i2c: E2 17 00 37 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0C [15:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:01:12]wFMCommunicate OK [15:01:12]requested_item fd.num is exist - process it [15:01:12]SAM_PROTO_GetFieldsCounters [15:01:12]wFMCommunicate request_size=4 [15:01:12]MH_SAM_APDU [15:01:12]CAPDU: 80 13 00 00 [15:01:12]Write to MH i2c: E2 08 00 38 05 80 13 00 00 00 00 00 00 B9 [15:01:12]Write i2c OK [15:01:12]MH_I2C_Read... [15:01:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:13]Read from MH i2c: E2 [15:01:13]MH_I2C_Read... [15:01:13]Read from MH i2c: E2 62 00 [15:01:13]MH_I2C_Read... [15:01:13]Read from MH i2c: E2 62 00 38 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 0F 06 01 00 0E 04 04 00 63 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 73 [15:01: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 0F 06 01 00 0E 04 04 00 63 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 [15:01:13]wFMCommunicate OK [15:01:13]SAM_PROTO_GetFieldsCounters done [15:01:13]requested_item shift.num is exist - process it [15:01:13]requested_item shift.opened is exist - process it [15:01:13]req_shift_opened [15:01:13]FM_GetShiftState [15:01:13]SAM_PROTO_GetShiftState [15:01:13]wFMCommunicate request_size=4 [15:01:13]MH_SAM_APDU [15:01:13]CAPDU: 80 13 01 00 [15:01:13]Write to MH i2c: E2 08 00 39 05 80 13 01 00 00 00 00 00 BB [15:01:13]Write i2c OK [15:01:13]MH_I2C_Read... [15:01:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:13]Read from MH i2c: E2 [15:01:13]MH_I2C_Read... [15:01:13]Read from MH i2c: E2 0E 00 [15:01:13]MH_I2C_Read... [15:01:13]Read from MH i2c: E2 0E 00 39 05 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 83 [15:01:13]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:01:13]wFMCommunicate OK [15:01:13]SAM_PROTO_GetShiftState done [15:01:13]FM_GetShiftState done [15:01:13]req_shift_opened done [15:01:13]requested_item shift.open_date is exist - process it [15:01:13]req_shift_open_date [15:01:13]req_shift_open_date done [15:01:13]produce_requested_data done [15:01:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67087,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [15:01:13]process_action_free close_receipt [15:01:13]json_value_free [15:01:13]json_value_free done [15:01:13]process_json_proto returns [15:01:13]Send response to host [15:01:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67087,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [15:01:13]free response buf [15:01:13]execute_script done [15:01:13]execute_script returns [15:01:13]free content buf [15:01:13]Sock 9.Close socket [15:01:13]Sock 9.Thread stoped [15:01:17]OFD Sender: No OFD packet to send [15:01:22]OFD Sender: No OFD packet to send [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01:37]OFD Sender: No OFD packet to send [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:17]OFD Sender: No OFD packet to send [15:03:22]OFD Sender: No OFD packet to send [15:03:27]OFD Sender: No OFD packet to send [15:03:32]OFD Sender: No OFD packet to send [15:03:37]OFD Sender: No OFD packet to send [15:03:42]OFD Sender: No OFD packet to send [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:37]OFD Sender: No OFD packet to send [15:04:42]OFD Sender: No OFD packet to send [15:04:47]OFD Sender: No OFD packet to send [15:04:52]OFD Sender: No OFD packet to send [15:04:57]OFD Sender: No OFD packet to send [15:05:02]OFD Sender: No OFD packet to send [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:27]OFD Sender: No OFD packet to send [15:05:32]OFD Sender: No OFD packet to send [15:05:37]OFD Sender: No OFD packet to send [15:05:42]OFD Sender: No OFD packet to send [15:05:47]OFD Sender: No OFD packet to send [15:05:52]OFD Sender: No OFD packet to send [15:05:57]OFD Sender: No OFD packet to send [15:06:02]OFD Sender: No OFD packet to send [15:06:07]OFD Sender: No OFD packet to send [15:06:12]OFD Sender: No OFD packet to send [15:06:17]OFD Sender: No OFD packet to send [15:06:22]OFD Sender: No OFD packet to send [15:06:27]OFD Sender: No OFD packet to send [15:06:32]OFD Sender: No OFD packet to send [15:06:37]OFD Sender: No OFD packet to send [15:06:42]OFD Sender: No OFD packet to send [15:06:47]OFD Sender: No OFD packet to send [15:06:52]OFD Sender: No OFD packet to send [15:06:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:07]OFD Sender: No OFD packet to send [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:32]OFD Sender: No OFD packet to send [15:07:37]OFD Sender: No OFD packet to send [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:57]OFD Sender: No OFD packet to send [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:52]OFD Sender: No OFD packet to send [15:08:57]OFD Sender: No OFD packet to send [15:09:02]OFD Sender: No OFD packet to send [15:09:07]OFD Sender: No OFD packet to send [15:09:12]OFD Sender: No OFD packet to send [15:09:17]OFD Sender: No OFD packet to send [15:09:22]OFD Sender: No OFD packet to send [15:09:27]OFD Sender: No OFD packet to send [15:09:32]OFD Sender: No OFD packet to send [15:09:37]OFD Sender: No OFD packet to send [15:09:42]OFD Sender: No OFD packet to send [15:09:47]OFD Sender: No OFD packet to send [15:09:52]OFD Sender: No OFD packet to send [15:09:55]accept exits with 7 [15:09:55]New connection [15:09:55]New thread 3067628900 created [15:09:55]Thread 3067485540 joined [15:09:55]Waiting for new connection... [15:09:55] Sock 7.Parse request [15:09:55]Sock 7.Check first char [15:09:55]Sock 7.First char is OK [15:09:55]request: POST /json_proto HTTP/1.0 [15:09:55]Method: POST [15:09:55]URL: /json_proto [15:09:55]Method is POST - this is cgi request [15:09:55]url: /json_proto [15:09:55]query_string will be loaded in cgi processing [15:09:55]execute_cgi json_proto POST (null) [15:09:55]execute_cgi path=json_proto method=POST [15:09:55]POST find Content-Length [15:09:55]Host: 172.17.41.195:8080 [15:09:55]Content-Length: 1179 [15:09:55]Content-Type: application/json [15:09:55] [15:09:55]POST finish read [15:09:55]Found Content-Length = 1179 [15:09:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506971\u000A14.05.2024 14:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.090 x 74.70\u000A\u0418\u0422\u041E\u0413: 1500.72\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:55]execute_script... [15:09:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)506971\u000A14.05.2024 14:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.090 x 74.70\u000A\u0418\u0422\u041E\u0413: 1500.72\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:55]POST & json_proto [15:09:55]process_json_proto [15:09:55]json parsed OK: [15:09:55]protocol is kg_v1.0 [15:09:55]action value=print_text [15:09:55]process_action print_text [15:09:55]cmd_print_text [15:09:55]ExternCall_PrintAddStr [15:09:55]wPrintStart [15:09:55]Write to MH i2c: 01 00 00 3A 05 3F [15:09:55]Write i2c OK [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: 01 [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: 01 07 00 [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: 01 07 00 3A 05 00 00 00 00 00 FF 0F 54 [15:09:55]RasterBufferAndPrint [15:09:55]line *****ТОВАРНЫЙ ЧЕК***** [15:09:55]line АЗС-91 [15:09:55]line Партнер нефть [15:09:55]line 02508201610067 [15:09:55]line Кассир : Адишов И. [15:09:55]line Счет N : (1)506971 [15:09:55]line 14.05.2024 14:52 [15:09:55]line ПРОДАЖА [15:09:55]line ТРК (МРК, ГНК): 21 [15:09:55]line Вид ГСМ : 2710194210 [15:09:55]line ДТ-К-5 [15:09:55]line 20.090 x 74.70 [15:09:55]line ИТОГ: 1500.72 [15:09:55]line Тип оплаты: Талоны: Топливная Карта [15:09:55]line 02750 [15:09:55]line ______________________ [15:09:55]line (подпись) [15:09:55]written 0, free lines is 4095 [15:09:55]Write to MH i2c: 01 00 00 4E 05 53 [15:09:55]Write i2c OK [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: 01 [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: 01 07 00 [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: 01 07 00 4E 05 00 00 00 00 00 0D 0E 75 [15:09:55]RasterBufferAndPrint [15:09:55]line [15:09:55]line [15:09:55]line [15:09:55]line [15:09:55]line [15:09:55]written 0, free lines is 3598 [15:09:55]MH_Cut [15:09:55]Write to MH i2c: D1 01 00 55 05 01 2C [15:09:55]Write i2c OK [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: D1 [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: D1 01 00 [15:09:55]MH_I2C_Read... [15:09:55]Read from MH i2c: D1 01 00 55 05 00 2B [15:09:55]Write to MH i2c: 01 00 00 56 05 5B [15:09:55]Write i2c OK [15:09:55]MH_I2C_Read... [15:09:56]*** Cut start [15:09:56]*** Purtial cut [15:09:56]*** CUTSNS_PIN = 0 [15:09:56]*** Stage 1: CUTSNS_PIN = 1 [15:09:57]OFD Sender: No OFD packet to send [15:09:58]Read from MH i2c: 01 [15:09:58]MH_I2C_Read... [15:09:58]*** Stop cut motor [15:09:58]*** Cut end [15:09:58]Read from MH i2c: 01 07 00 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: 01 07 00 56 05 00 00 00 00 00 FF 0F 70 [15:09:58]process_action print_text done [15:09:58]requested_data is exist [15:09:58]produce_requested_data [15:09:58]requested_item fm.sn is exist - process it [15:09:58]wFMCommunicate request_size=4 [15:09:58]MH_SAM_APDU [15:09:58]CAPDU: 80 11 00 00 [15:09:58]Write to MH i2c: E2 08 00 57 05 80 11 00 00 00 00 00 00 D6 [15:09:58]Write i2c OK [15:09:58]MH_I2C_Read... [15:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:58]Read from MH i2c: E2 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 17 00 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 17 00 57 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2C [15: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 [15:09:58]wFMCommunicate OK [15:09:58]requested_item fd.num is exist - process it [15:09:58]SAM_PROTO_GetFieldsCounters [15:09:58]wFMCommunicate request_size=4 [15:09:58]MH_SAM_APDU [15:09:58]CAPDU: 80 13 00 00 [15:09:58]Write to MH i2c: E2 08 00 58 05 80 13 00 00 00 00 00 00 D9 [15:09:58]Write i2c OK [15:09:58]MH_I2C_Read... [15:09:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:58]Read from MH i2c: E2 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 62 00 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 62 00 58 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 0F 06 01 00 0E 04 04 00 63 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 93 [15:09: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 0F 06 01 00 0E 04 04 00 63 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 [15:09:58]wFMCommunicate OK [15:09:58]SAM_PROTO_GetFieldsCounters done [15:09:58]requested_item shift.num is exist - process it [15:09:58]requested_item shift.opened is exist - process it [15:09:58]req_shift_opened [15:09:58]FM_GetShiftState [15:09:58]SAM_PROTO_GetShiftState [15:09:58]wFMCommunicate request_size=4 [15:09:58]MH_SAM_APDU [15:09:58]CAPDU: 80 13 01 00 [15:09:58]Write to MH i2c: E2 08 00 59 05 80 13 01 00 00 00 00 00 DB [15:09:58]Write i2c OK [15:09:58]MH_I2C_Read... [15:09:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:58]Read from MH i2c: E2 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 0E 00 [15:09:58]MH_I2C_Read... [15:09:58]Read from MH i2c: E2 0E 00 59 05 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A3 [15:09:58]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:09:58]wFMCommunicate OK [15:09:58]SAM_PROTO_GetShiftState done [15:09:58]FM_GetShiftState done [15:09:58]req_shift_opened done [15:09:58]requested_item shift.open_date is exist - process it [15:09:58]req_shift_open_date [15:09:58]req_shift_open_date done [15:09:58]produce_requested_data done [15:09:58]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67087,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [15:09:58]process_action_free print_text [15:09:58]json_value_free [15:09:58]json_value_free done [15:09:58]process_json_proto returns [15:09:58]Send response to host [15:09:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67087,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [15:09:58]free response buf [15:09:58]execute_script done [15:09:58]execute_script returns [15:09:58]free content buf [15:09:58]Sock 7.Close socket [15:09:58]Sock 7.Thread stoped [15:10:02]OFD Sender: No OFD packet to send [15:10:07]OFD Sender: No OFD packet to send [15:10:10]int [15:10:10]Write to MH i2c: 01 00 00 5A 05 5F [15:10:10]*** FLAG_PRN_PAP1 set [15:10:10]Write i2c OK [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: 01 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: 01 07 00 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: 01 07 00 5A 05 00 01 00 00 00 FF 0F 75 [15:10:10]state=0 [15:10:10]No paper [15:10:10]int [15:10:10]Write to MH i2c: 01 00 00 5B 05 60 [15:10:10]*** FLAG_PRN_PAP2 set [15:10:10]Write i2c OK [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: 01 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: 01 07 00 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: 01 07 00 5B 05 00 03 00 00 00 FF 0F 78 [15:10:10]state=0 [15:10:10]No paper [15:10:10]Cover opened [15:10:12]OFD Sender: No OFD packet to send [15:10:13]int [15:10:13]Write to MH i2c: 01 00 00 5C 05 61 [15:10:13]*** FLAG_PRN_PAP1 reset [15:10:13]*** FLAG_PRN_PAP2 reset [15:10:13]Write i2c OK [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: 01 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: 01 07 00 [15:10:13]MH_I2C_Read... [15:10:13]Read from MH i2c: 01 07 00 5C 05 00 00 00 00 00 FF 0F 76 [15:10:13]state=3 [15:10:13]Cover closed [15:10:17]OFD Sender: No OFD packet to send [15:10:22]OFD Sender: No OFD packet to send [15:10:27]OFD Sender: No OFD packet to send [15:10:32]OFD Sender: No OFD packet to send [15:10:37]OFD Sender: No OFD packet to send [15:10:42]OFD Sender: No OFD packet to send [15:10:47]OFD Sender: No OFD packet to send [15:10:52]OFD Sender: No OFD packet to send [15:10:57]OFD Sender: No OFD packet to send [15:11:02]OFD Sender: No OFD packet to send [15:11:07]OFD Sender: No OFD packet to send [15:11:12]OFD Sender: No OFD packet to send [15:11:17]OFD Sender: No OFD packet to send [15:11:22]OFD Sender: No OFD packet to send [15:11:27]OFD Sender: No OFD packet to send [15:11:32]OFD Sender: No OFD packet to send [15:11:37]OFD Sender: No OFD packet to send [15:11:42]OFD Sender: No OFD packet to send [15:11:47]OFD Sender: No OFD packet to send [15:11:52]OFD Sender: No OFD packet to send [15:11:57]OFD Sender: No OFD packet to send [15:12:02]OFD Sender: No OFD packet to send [15:12:07]OFD Sender: No OFD packet to send [15:12:08]accept exits with 9 [15:12:08]New connection [15:12:08]New thread 3067485540 created [15:12:08]Thread 3067628900 joined [15:12:08]Waiting for new connection... [15:12:08] Sock 9.Parse request [15:12:08]Sock 9.Check first char [15:12:08]Sock 9.First char is OK [15:12:08]request: POST /json_proto HTTP/1.0 [15:12:08]Method: POST [15:12:08]URL: /json_proto [15:12:08]Method is POST - this is cgi request [15:12:08]url: /json_proto [15:12:08]query_string will be loaded in cgi processing [15:12:08]execute_cgi json_proto POST (null) [15:12:08]execute_cgi path=json_proto method=POST [15:12:08]POST find Content-Length [15:12:08]Host: 172.17.41.195:8080 [15:12:08]Content-Length: 1187 [15:12:08]Content-Type: application/json [15:12:08] [15:12:08]POST finish read [15:12:08]Found Content-Length = 1187 [15:12: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)506972\u000A14.05.2024 14:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3735.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472421\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:08]execute_script... [15:12: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)506972\u000A14.05.2024 14:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 3735.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472421\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:08]POST & json_proto [15:12:08]process_json_proto [15:12:08]json parsed OK: [15:12:08]protocol is kg_v1.0 [15:12:08]action value=print_text [15:12:08]process_action print_text [15:12:08]cmd_print_text [15:12:08]ExternCall_PrintAddStr [15:12:08]wPrintStart [15:12:08]Write to MH i2c: 01 00 00 5D 05 62 [15:12:08]Write i2c OK [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: 01 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: 01 07 00 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: 01 07 00 5D 05 00 00 00 00 00 FF 0F 77 [15:12:08]RasterBufferAndPrint [15:12:08]line *****ТОВАРНЫЙ ЧЕК***** [15:12:08]line АЗС-91 [15:12:08]line Партнер нефть [15:12:08]line 02508201610067 [15:12:08]line Кассир : Адишов И. [15:12:08]line Счет N : (1)506972 [15:12:08]line 14.05.2024 14:54 [15:12:08]line ПРОДАЖА [15:12:08]line ТРК (МРК, ГНК): 21 [15:12:08]line Вид ГСМ : 2710194210 [15:12:08]line ДТ-К-5 [15:12:08]line 50.000 x 74.70 [15:12:08]line ИТОГ: 3735.00 [15:12:08]line Тип оплаты: Талоны: Топливные Талоны [15:12:08]line 3472421 [15:12:08]line ______________________ [15:12:08]line (подпись) [15:12:08]written 0, free lines is 4095 [15:12:08]Write to MH i2c: 01 00 00 71 05 76 [15:12:08]Write i2c OK [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: 01 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: 01 07 00 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: 01 07 00 71 05 00 00 00 00 00 0C 0E 97 [15:12:08]RasterBufferAndPrint [15:12:08]line [15:12:08]line [15:12:08]line [15:12:08]line [15:12:08]line [15:12:08]written 0, free lines is 3598 [15:12:08]MH_Cut [15:12:08]Write to MH i2c: D1 01 00 78 05 01 4F [15:12:08]Write i2c OK [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: D1 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: D1 01 00 [15:12:08]MH_I2C_Read... [15:12:08]Read from MH i2c: D1 01 00 78 05 00 4E [15:12:08]Write to MH i2c: 01 00 00 79 05 7E [15:12:08]Write i2c OK [15:12:08]MH_I2C_Read... [15:12:09]*** Cut start [15:12:09]*** Purtial cut [15:12:09]*** Stage 1: CUTSNS_PIN = 1 [15:12:09]Read from MH i2c: 01 [15:12:09]MH_I2C_Read... [15:12:09]*** Stop cut motor [15:12:09]*** Cut end [15:12:09]Read from MH i2c: 01 07 00 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: 01 07 00 79 05 00 00 00 00 00 FF 0F 93 [15:12:09]process_action print_text done [15:12:09]requested_data is exist [15:12:09]produce_requested_data [15:12:09]requested_item fm.sn is exist - process it [15:12:09]wFMCommunicate request_size=4 [15:12:09]MH_SAM_APDU [15:12:09]CAPDU: 80 11 00 00 [15:12:09]Write to MH i2c: E2 08 00 7A 05 80 11 00 00 00 00 00 00 F9 [15:12:09]Write i2c OK [15:12:09]MH_I2C_Read... [15:12:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:09]Read from MH i2c: E2 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 17 00 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 17 00 7A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4F [15:12:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:12:09]wFMCommunicate OK [15:12:09]requested_item fd.num is exist - process it [15:12:09]SAM_PROTO_GetFieldsCounters [15:12:09]wFMCommunicate request_size=4 [15:12:09]MH_SAM_APDU [15:12:09]CAPDU: 80 13 00 00 [15:12:09]Write to MH i2c: E2 08 00 7B 05 80 13 00 00 00 00 00 00 FC [15:12:09]Write i2c OK [15:12:09]MH_I2C_Read... [15:12:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:09]Read from MH i2c: E2 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 62 00 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 62 00 7B 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 0F 06 01 00 0E 04 04 00 63 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 B6 [15:12: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 0F 06 01 00 0E 04 04 00 63 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 [15:12:09]wFMCommunicate OK [15:12:09]SAM_PROTO_GetFieldsCounters done [15:12:09]requested_item shift.num is exist - process it [15:12:09]requested_item shift.opened is exist - process it [15:12:09]req_shift_opened [15:12:09]FM_GetShiftState [15:12:09]SAM_PROTO_GetShiftState [15:12:09]wFMCommunicate request_size=4 [15:12:09]MH_SAM_APDU [15:12:09]CAPDU: 80 13 01 00 [15:12:09]Write to MH i2c: E2 08 00 7C 05 80 13 01 00 00 00 00 00 FE [15:12:09]Write i2c OK [15:12:09]MH_I2C_Read... [15:12:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:09]Read from MH i2c: E2 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 0E 00 [15:12:09]MH_I2C_Read... [15:12:09]Read from MH i2c: E2 0E 00 7C 05 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 C6 [15:12:09]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:12:09]wFMCommunicate OK [15:12:09]SAM_PROTO_GetShiftState done [15:12:09]FM_GetShiftState done [15:12:09]req_shift_opened done [15:12:09]requested_item shift.open_date is exist - process it [15:12:09]req_shift_open_date [15:12:09]req_shift_open_date done [15:12:09]produce_requested_data done [15:12:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67087,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [15:12:09]process_action_free print_text [15:12:09]json_value_free [15:12:09]json_value_free done [15:12:09]process_json_proto returns [15:12:09]Send response to host [15:12:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67087,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [15:12:09]free response buf [15:12:09]execute_script done [15:12:09]execute_script returns [15:12:09]free content buf [15:12:09]Sock 9.Close socket [15:12:09]Sock 9.Thread stoped [15:12:12]OFD Sender: No OFD packet to send [15:12:17]OFD Sender: No OFD packet to send [15:12:22]OFD Sender: No OFD packet to send [15:12:27]OFD Sender: No OFD packet to send [15:12:32]OFD Sender: No OFD packet to send [15:12:37]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:52]accept exits with 7 [15:12:52]New connection [15:12:52]New thread 3067628900 created [15:12:52]Thread 3067485540 joined [15:12:52]Waiting for new connection... [15:12:52] Sock 7.Parse request [15:12:52]Sock 7.Check first char [15:12:52]Sock 7.First char is OK [15:12:52]request: POST /json_proto HTTP/1.0 [15:12:52]Method: POST [15:12:52]URL: /json_proto [15:12:52]Method is POST - this is cgi request [15:12:52]url: /json_proto [15:12:52]query_string will be loaded in cgi processing [15:12:52]execute_cgi json_proto POST (null) [15:12:52]execute_cgi path=json_proto method=POST [15:12:52]POST find Content-Length [15:12:52]Host: 172.17.41.195:8080 [15:12:52]Content-Length: 674 [15:12:52]Content-Type: application/json [15:12:52] [15:12:52]POST finish read [15:12:52]Found Content-Length = 674 [15:12:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506973", "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" ] } } [15:12:52]execute_script... [15:12: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)506973", "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" ] } } [15:12:52]POST & json_proto [15:12:52]process_json_proto [15:12:52]json parsed OK: [15:12:52]protocol is kg_v1.0 [15:12:52]action value=close_receipt [15:12:52]process_action close_receipt [15:12:52]cmd_close_receipt [15:12:52]MH_GetDate [15:12:52]Write to MH i2c: F0 00 00 7D 05 71 [15:12:52]Write i2c OK [15:12:52]MH_I2C_Read... [15:12:52]Read from MH i2c: F0 [15:12:52]MH_I2C_Read... [15:12:52]Read from MH i2c: F0 09 00 [15:12:52]MH_I2C_Read... [15:12:52]Read from MH i2c: F0 09 00 7D 05 00 75 7F 43 66 FC 21 6F 64 07 [15:12:52]GetLastDocTimeStamp 1715698869 [15:12:52]current date 1715699573 [15:12:52]FM_GetShiftState [15:12:52]SAM_PROTO_GetShiftState [15:12:52]wFMCommunicate request_size=4 [15:12:52]MH_SAM_APDU [15:12:52]CAPDU: 80 13 01 00 [15:12:52]Write to MH i2c: E2 08 00 7E 05 80 13 01 00 00 00 00 00 00 [15:12:52]Write i2c OK [15:12:52]MH_I2C_Read... [15:12:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:52]Read from MH i2c: E2 [15:12:52]MH_I2C_Read... [15:12:52]Read from MH i2c: E2 0E 00 [15:12:52]MH_I2C_Read... [15:12:52]Read from MH i2c: E2 0E 00 7E 05 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 C8 [15:12:52]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:12:52]wFMCommunicate OK [15:12:52]SAM_PROTO_GetShiftState done [15:12:52]FM_GetShiftState done [15:12:52]opened in 1715646054 [15:12:52]opened+sec_in_day 1715732454 [15:12:52]quantity*price = 50049 [15:12:52]sum+1 = 50050 [15:12:52]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 СНО: Общий режим Чек 95 14.05.2024 15:12 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67088 ФПД: 233699107976750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T151253&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67088&fm=233699107976750&tin=02508201610067®Number=0000000000091845&sum=50000 [15:12:54]StoreToDocumentArchive [15:12:54]shift 355 fd 67088 [15:12:54]save to /storage/0355/doc_00067088 [15:12:54]save last doc name /storage/0355/doc_00067088 to /storage/kkm_last_doc_name [15:12:54]save OK [15:12:54]Clear old archive folders... [15:12:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:12:54]tlvbuf is 00773DA0 [15:12:54]SAM_PROTO_ClearQueue [15:12:54]wFMCommunicate request_size=4 [15:12:54]MH_SAM_APDU [15:12:54]CAPDU: 80 09 00 00 [15:12:54]Write to MH i2c: E2 08 00 8B 05 80 09 00 00 00 00 00 00 02 [15:12:54]Write i2c OK [15:12:54]MH_I2C_Read... [15:12:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:54]Read from MH i2c: E2 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 03 00 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 03 00 8B 05 00 90 00 04 [15:12:54]RAPDU: 90 00 [15:12:54]wFMCommunicate OK [15:12:54]SAM_PROTO_ClearQueue done [15:12:54]KKMCreateOFDPacket [15:12:54]OFDProtocolAddRootSTLVToBuf [15:12:54]FM_MakeSignedData [15:12:54]FM_MakeSignedData [15:12:54]SAM_PROTO_SignData [15:12:54]wFMCommunicate request_size=4 [15:12:54]MH_SAM_APDU [15:12:54]CAPDU: 80 0D 01 02 [15:12:54]Write to MH i2c: E2 08 00 8C 05 80 0D 01 02 00 00 00 00 0A [15:12:54]Write i2c OK [15:12:54]MH_I2C_Read... [15:12:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:54]Read from MH i2c: E2 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 03 00 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 03 00 8C 05 00 90 00 05 [15:12:54]RAPDU: 90 00 [15:12:54]wFMCommunicate OK [15:12:54]wFMCommunicate request_size=255 [15:12:54]MH_SAM_APDU [15:12:54]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 5F 00 00 00 F4 03 04 00 75 7F 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 10 06 01 00 35 04 06 00 D4 8C 50 50 [15:12:54]Write to MH i2c: E2 02 01 8D 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 5F 00 00 00 F4 03 04 00 75 7F 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 10 06 01 00 35 04 06 00 D4 8C 50 50 00 00 71 [15:12:54]Write i2c OK [15:12:54]MH_I2C_Read... [15:12:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:54]Read from MH i2c: E2 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 03 00 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 03 00 8D 05 00 90 00 06 [15:12:54]RAPDU: 90 00 [15:12:54]wFMCommunicate OK [15:12:54]wFMCommunicate request_size=7 [15:12:54]MH_SAM_APDU [15:12:54]CAPDU: 80 0D 02 02 02 B6 2E [15:12:54]Write to MH i2c: E2 0A 00 8E 05 80 0D 02 02 02 00 B6 2E 00 00 F5 [15:12:54]Write i2c OK [15:12:54]MH_I2C_Read... [15:12:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:54]Read from MH i2c: E2 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 03 00 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 03 00 8E 05 00 90 00 07 [15:12:54]RAPDU: 90 00 [15:12:54]wFMCommunicate OK [15:12:54]wFMCommunicate request_size=4 [15:12:54]MH_SAM_APDU [15:12:54]CAPDU: 80 0D 03 02 [15:12:54]Write to MH i2c: E2 08 00 8F 05 80 0D 03 02 00 00 00 00 0F [15:12:54]Write i2c OK [15:12:54]MH_I2C_Read... [15:12:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:54]Read from MH i2c: E2 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 0B 00 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 0B 00 8F 05 00 57 6A 84 48 C5 08 E0 09 90 00 53 [15:12:54]RAPDU: 57 6A 84 48 C5 08 E0 09 90 00 [15:12:54]wFMCommunicate OK [15:12:54]SAM_PROTO_SignData done [15:12:54]FM_MakeSignedData done [15:12:54]CreateOFDProtocolMessage [15:12:54]wFMCommunicate request_size=4 [15:12:54]MH_SAM_APDU [15:12:54]CAPDU: 80 11 00 00 [15:12:54]Write to MH i2c: E2 08 00 90 05 80 11 00 00 00 00 00 00 0F [15:12:54]Write i2c OK [15:12:54]MH_I2C_Read... [15:12:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:54]Read from MH i2c: E2 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 17 00 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: E2 17 00 90 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 65 [15:12:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:12:54]wFMCommunicate OK [15:12:54]CreateOFDProtocolMessage done [15:12:54]OFDSenderStorePacket 67088 [15:12:54]StoreOFDPacket docnum=67088 [15:12:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 E5 F3 04 01 E5 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 5F 00 00 00 F4 03 04 00 75 7F 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 10 06 01 00 35 04 06 00 D4 8C 50 50 B6 2E 57 6A 84 48 C5 08 E0 09 [15:12:54]CheckFolder [15:12:54]dirname=/storage/ofd_packets [15:12:54]CheckFolder done [15:12:54]ProducePacketName [15:12:54]name=ofd_packets/00067088 [15:12:54]NVStorageSaveData ofd_packets/00067088 [15:12:54]File name is /storage/ofd_packets/00067088 [15:12:54]Write 298 bytes [15:12:54]NVStorageSaveData done [15:12:54]OFDSenderStorePacket done [15:12:54]KKMCreateOFDPacket done [15:12:54]NVStorageSaveData kkm_last_timestamp [15:12:54]File name is /storage/kkm_last_timestamp [15:12:54]Write 4 bytes [15:12:54]NVStorageSaveData done [15:12:54]ExternCall_PrintAddStr [15:12:54]wPrintStart [15:12:54]Write to MH i2c: 01 00 00 91 05 96 [15:12:54]Write i2c OK [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: 01 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: 01 07 00 [15:12:54]MH_I2C_Read... [15:12:54]Read from MH i2c: 01 07 00 91 05 00 00 00 00 00 FF 0F AB [15:12:54]RasterBufferAndPrint [15:12:54]line Счет N : (1)506973 [15:12:54]line ИНН: 02508201610067 [15:12:54]line Контрольно-Кассовый Чек [15:12:54]line ПРОДАЖА [15:12:54]line ТРК (МРК, ГНК) : 11 [15:12:54]line Товар: 2710194210 [15:12:54]line ДТ-К-5 [15:12:54]line 6.700 * 74.70 [15:12:54]line = 500.49 [15:12:54]line НДС 12% НСП 1% [15:12:54]line > о реализуемом товаре [15:12:54]line ОКРУГЛЕНИЕ: -0.49 [15:12:54]line ИТОГО: 500.00 [15:12:54]line Внесено: 500.00 [15:12:54]line СДАЧА: 0.00 [15:12:54]line НСП 1% : 4.43 [15:12:54]line НДС 12% : 53.15 [15:12:54]line Наличными: 500.00 [15:12:54]line Безнал.: 0.00 [15:12:54]line Место: АЗС № 91 "Партнер Нефть" [15:12:54]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:12:54]line СНО: Общий режим [15:12:54]line Чек 95 14.05.2024 15:12 [15:12:54]line Смена: 355 ФФД: 1.0 [15:12:54]line ЗНМ: 0300000119 [15:12:54]line РНМ: 0000000000091845 [15:12:54]line Версия ККМ: 001 [15:12:54]line ФМ: 0000000000871829 [15:12:54]line ФД: 67088 [15:12:54]line ФПД: 233699107976750 [15:12:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T151253&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67088&fm=233699107976750&tin=02508201610067®Number=0000000000091845&sum=50000 [15:12:54]OFD Sender: Processing packet 67088 [packets to send 35, broken 34] [15:12:54]ProducePacketName [15:12:54]name=ofd_packets/00067088 [15:12:54]OFD Sender: To server: pG, [15:12:54]CommunicateWithHost lk.salyk.kg:30040 [15:12:54]ConnectInit lk.salyk.kg [15:12:54]written 0, free lines is 4095 [15:12:55]Connected sock=10 [15:12: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 0C 01 00 00 E5 F3 04 01 E5 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 5F 00 00 00 F4 03 04 00 75 7F 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 10 06 01 00 35 04 06 00 D4 8C 50 50 B6 2E 57 6A 84 48 C5 08 E0 09 [15:12: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 DF 78 47 00 02 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 10 06 01 00 F4 03 04 00 55 27 43 66 B6 04 01 00 00 62 0C 6A A6 89 21 6D 64 [15:12:55]CommunicateWithHost err = 0 [15:12:55]CheckOFDResponse [15:12:55]1017 (14) - 77093643461234 [15:12:55]1041 (16) - 0000000000871829 [15:12:55]1040 (4) - 67088 [15:12:55]1012 (4) - 14.05.2024 08:56 [15:12:55]1206 (1) - 0 [15:12:55]OFD Sender: Remove packet 67088 [15:12:55]ProducePacketName [15:12:55]name=ofd_packets/00067088 [15:12:55]NVStorageDeleteData [15:12:55]Write to MH i2c: 01 00 00 BB 05 C0 [15:12:55]Write i2c OK [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: 01 [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: 01 07 00 [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: 01 07 00 BB 05 00 00 00 00 00 D2 0C A5 [15:12:55]RasterBufferAndPrint [15:12:55]line [15:12:55]line [15:12:55]line [15:12:55]line [15:12:55]line [15:12:55]written 0, free lines is 3288 [15:12:55]MH_Cut [15:12:55]Write to MH i2c: D1 01 00 C2 05 01 99 [15:12:55]Write i2c OK [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: D1 [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: D1 01 00 [15:12:55]MH_I2C_Read... [15:12:55]Read from MH i2c: D1 01 00 C2 05 00 98 [15:12:55]Write to MH i2c: 01 00 00 C3 05 C8 [15:12:55]Write i2c OK [15:12:55]MH_I2C_Read... [15:12:55]OFD Sender: No OFD packet to send [15:12:56]*** Cut start [15:12:56]*** Purtial cut [15:12:56]*** CUTSNS_PIN = 0 [15:12:56]*** Stage 1: CUTSNS_PIN = 1 [15:12:58]Read from MH i2c: 01 [15:12:58]MH_I2C_Read... [15:12:58]*** Stop cut motor [15:12:58]*** Cut end [15:12:58]Read from MH i2c: 01 07 00 [15:12:58]MH_I2C_Read... [15:12:58]Read from MH i2c: 01 07 00 C3 05 00 00 00 00 00 FF 0F DD [15:12:58]process_action close_receipt done [15:12:58]requested_data is exist [15:12:58]produce_requested_data [15:12:58]requested_item fm.sn is exist - process it [15:12:58]wFMCommunicate request_size=4 [15:12:58]MH_SAM_APDU [15:12:58]CAPDU: 80 11 00 00 [15:12:58]Write to MH i2c: E2 08 00 C4 05 80 11 00 00 00 00 00 00 43 [15:12:58]Write i2c OK [15:12:58]MH_I2C_Read... [15:12:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:58]Read from MH i2c: E2 [15:12:58]MH_I2C_Read... [15:12:58]Read from MH i2c: E2 17 00 [15:12:58]MH_I2C_Read... [15:12:58]Read from MH i2c: E2 17 00 C4 05 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:12: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:12:58]wFMCommunicate OK [15:12:58]requested_item fd.num is exist - process it [15:12:58]SAM_PROTO_GetFieldsCounters [15:12:58]wFMCommunicate request_size=4 [15:12:58]MH_SAM_APDU [15:12:58]CAPDU: 80 13 00 00 [15:12:58]Write to MH i2c: E2 08 00 C5 05 80 13 00 00 00 00 00 00 46 [15:12:58]Write i2c OK [15:12:58]MH_I2C_Read... [15:12:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:58]Read from MH i2c: E2 [15:12:58]MH_I2C_Read... [15:12:58]Read from MH i2c: E2 62 00 [15:12:58]MH_I2C_Read... [15:12:58]Read from MH i2c: E2 62 00 C5 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 10 06 01 00 0E 04 04 00 63 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 04 [15:12: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 10 06 01 00 0E 04 04 00 63 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 [15:12:58]wFMCommunicate OK [15:12:58]SAM_PROTO_GetFieldsCounters done [15:12:58]requested_item shift.num is exist - process it [15:12:58]requested_item shift.opened is exist - process it [15:12:58]req_shift_opened [15:12:58]FM_GetShiftState [15:12:58]SAM_PROTO_GetShiftState [15:12:58]wFMCommunicate request_size=4 [15:12:58]MH_SAM_APDU [15:12:58]CAPDU: 80 13 01 00 [15:12:58]Write to MH i2c: E2 08 00 C6 05 80 13 01 00 00 00 00 00 48 [15:12:58]Write i2c OK [15:12:58]MH_I2C_Read... [15:12:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:58]Read from MH i2c: E2 [15:12:58]MH_I2C_Read... [15:12:58]Read from MH i2c: E2 0E 00 [15:12:58]MH_I2C_Read... [15:12:58]Read from MH i2c: E2 0E 00 C6 05 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 10 [15:12:58]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:12:58]wFMCommunicate OK [15:12:58]SAM_PROTO_GetShiftState done [15:12:58]FM_GetShiftState done [15:12:58]req_shift_opened done [15:12:58]requested_item shift.open_date is exist - process it [15:12:58]req_shift_open_date [15:12:58]req_shift_open_date done [15:12:58]produce_requested_data done [15:12:58]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67088,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [15:12:58]process_action_free close_receipt [15:12:58]json_value_free [15:12:58]json_value_free done [15:12:58]process_json_proto returns [15:12:58]Send response to host [15:12:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67088,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [15:12:58]free response buf [15:12:58]execute_script done [15:12:58]execute_script returns [15:12:58]free content buf [15:12:58]Sock 7.Close socket [15:12:58]Sock 7.Thread stoped [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]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:09]accept exits with 9 [15:16:09]New connection [15:16:09]New thread 3067485540 created [15:16:09]Thread 3067628900 joined [15:16:09]Waiting for new connection... [15:16:09] Sock 9.Parse request [15:16:09]Sock 9.Check first char [15:16:09]Sock 9.First char is OK [15:16:09]request: POST /json_proto HTTP/1.0 [15:16:09]Method: POST [15:16:09]URL: /json_proto [15:16:09]Method is POST - this is cgi request [15:16:09]url: /json_proto [15:16:09]query_string will be loaded in cgi processing [15:16:09]execute_cgi json_proto POST (null) [15:16:09]execute_cgi path=json_proto method=POST [15:16:09]POST find Content-Length [15:16:09]Host: 172.17.41.195:8080 [15:16:09]Content-Length: 642 [15:16:09]Content-Type: application/json [15:16:09] [15:16:09]POST finish read [15:16:09]Found Content-Length = 642 [15:16:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506974", "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" : 20.000, "sum" : 1336.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1336.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:09]execute_script... [15:16: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)506974", "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" : 20.000, "sum" : 1336.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1336.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:09]POST & json_proto [15:16:09]process_json_proto [15:16:09]json parsed OK: [15:16:09]protocol is kg_v1.0 [15:16:09]action value=close_receipt [15:16:09]process_action close_receipt [15:16:09]cmd_close_receipt [15:16:09]MH_GetDate [15:16:09]Write to MH i2c: F0 00 00 C7 05 BB [15:16:09]Write i2c OK [15:16:09]MH_I2C_Read... [15:16:09]Read from MH i2c: F0 [15:16:09]MH_I2C_Read... [15:16:09]Read from MH i2c: F0 09 00 [15:16:09]MH_I2C_Read... [15:16:09]Read from MH i2c: F0 09 00 C7 05 00 39 80 43 66 FC 21 6F 64 16 [15:16:09]GetLastDocTimeStamp 1715699573 [15:16:09]current date 1715699769 [15:16:09]FM_GetShiftState [15:16:09]SAM_PROTO_GetShiftState [15:16:09]wFMCommunicate request_size=4 [15:16:09]MH_SAM_APDU [15:16:09]CAPDU: 80 13 01 00 [15:16:09]Write to MH i2c: E2 08 00 C8 05 80 13 01 00 00 00 00 00 4A [15:16:09]Write i2c OK [15:16:09]MH_I2C_Read... [15:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:09]Read from MH i2c: E2 [15:16:09]MH_I2C_Read... [15:16:09]Read from MH i2c: E2 0E 00 [15:16:09]MH_I2C_Read... [15:16:09]Read from MH i2c: E2 0E 00 C8 05 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 12 [15:16:09]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:16:09]wFMCommunicate OK [15:16:09]SAM_PROTO_GetShiftState done [15:16:09]FM_GetShiftState done [15:16:09]opened in 1715646054 [15:16:09]opened+sec_in_day 1715732454 [15:16:09]quantity*price = 133600 [15:16:09]sum+1 = 133601 [15:16:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1336.00 НСП 1% : 11.82 НДС 12% : 141.88 Наличными: 1336.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 96 14.05.2024 15:16 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67089 ФПД: 52245106032844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T151609&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67089&fm=52245106032844&tin=02508201610067®Number=0000000000091845&sum=133600 [15:16:10]StoreToDocumentArchive [15:16:10]shift 355 fd 67089 [15:16:10]save to /storage/0355/doc_00067089 [15:16:10]save last doc name /storage/0355/doc_00067089 to /storage/kkm_last_doc_name [15:16:10]save OK [15:16:10]Clear old archive folders... [15:16:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:10]tlvbuf is 0082B300 [15:16:10]SAM_PROTO_ClearQueue [15:16:10]wFMCommunicate request_size=4 [15:16:10]MH_SAM_APDU [15:16:10]CAPDU: 80 09 00 00 [15:16:10]Write to MH i2c: E2 08 00 D5 05 80 09 00 00 00 00 00 00 4C [15:16:10]Write i2c OK [15:16:10]MH_I2C_Read... [15:16:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:10]Read from MH i2c: E2 [15:16:10]MH_I2C_Read... [15:16:10]Read from MH i2c: E2 03 00 [15:16:10]MH_I2C_Read... [15:16:10]Read from MH i2c: E2 03 00 D5 05 00 90 00 4E [15:16:10]RAPDU: 90 00 [15:16:10]wFMCommunicate OK [15:16:10]SAM_PROTO_ClearQueue done [15:16:10]KKMCreateOFDPacket [15:16:10]OFDProtocolAddRootSTLVToBuf [15:16:10]FM_MakeSignedData [15:16:10]FM_MakeSignedData [15:16:10]SAM_PROTO_SignData [15:16:10]wFMCommunicate request_size=4 [15:16:10]MH_SAM_APDU [15:16:10]CAPDU: 80 0D 01 02 [15:16:10]Write to MH i2c: E2 08 00 D6 05 80 0D 01 02 00 00 00 00 54 [15:16:10]Write i2c OK [15:16:10]MH_I2C_Read... [15:16:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:10]Read from MH i2c: E2 [15:16:10]MH_I2C_Read... [15:16:10]Read from MH i2c: E2 03 00 [15:16:10]MH_I2C_Read... [15:16:10]Read from MH i2c: E2 03 00 D6 05 00 90 00 4F [15:16:10]RAPDU: 90 00 [15:16:10]wFMCommunicate OK [15:16:10]wFMCommunicate request_size=255 [15:16:10]MH_SAM_APDU [15:16: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 20 4E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E0 09 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 09 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 37 00 00 00 00 07 04 06 00 E0 09 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 39 80 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 11 06 01 00 35 04 06 00 2F [15:16:10]Write to MH i2c: E2 02 01 D7 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 20 4E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E0 09 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 09 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 37 00 00 00 00 07 04 06 00 E0 09 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 39 80 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 11 06 01 00 35 04 06 00 2F 00 00 76 [15:16:10]Write i2c OK [15:16:10]MH_I2C_Read... [15:16:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:10]Read from MH i2c: E2 [15:16:10]MH_I2C_Read... [15:16:10]Read from MH i2c: E2 03 00 [15:16:10]MH_I2C_Read... [15:16:10]Read from MH i2c: E2 03 00 D7 05 00 90 00 50 [15:16:10]RAPDU: 90 00 [15:16:10]wFMCommunicate OK [15:16:10]wFMCommunicate request_size=10 [15:16:10]MH_SAM_APDU [15:16:10]CAPDU: 80 0D 02 02 05 84 42 FC 80 CC [15:16:10]Write to MH i2c: E2 0D 00 D8 05 80 0D 02 02 05 00 84 42 FC 80 CC 00 00 6F [15:16:10]Write i2c OK [15:16:10]MH_I2C_Read... [15:16:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:10]Read from MH i2c: E2 [15:16:10]MH_I2C_Read... [15:16:10]Read from MH i2c: E2 03 00 [15:16:10]MH_I2C_Read... [15:16:10]Read from MH i2c: E2 03 00 D8 05 00 90 00 51 [15:16:10]RAPDU: 90 00 [15:16:10]wFMCommunicate OK [15:16:10]wFMCommunicate request_size=4 [15:16:10]MH_SAM_APDU [15:16:10]CAPDU: 80 0D 03 02 [15:16:10]Write to MH i2c: E2 08 00 D9 05 80 0D 03 02 00 00 00 00 59 [15:16:10]Write i2c OK [15:16:10]MH_I2C_Read... [15:16:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:10]Read from MH i2c: E2 [15:16:10]MH_I2C_Read... [15:16:10]Read from MH i2c: E2 0B 00 [15:16:10]MH_I2C_Read... [15:16:10]Read from MH i2c: E2 0B 00 D9 05 00 98 86 C0 CE 16 E9 9A 64 90 00 03 [15:16:10]RAPDU: 98 86 C0 CE 16 E9 9A 64 90 00 [15:16:10]wFMCommunicate OK [15:16:10]SAM_PROTO_SignData done [15:16:10]FM_MakeSignedData done [15:16:10]CreateOFDProtocolMessage [15:16:10]wFMCommunicate request_size=4 [15:16:10]MH_SAM_APDU [15:16:10]CAPDU: 80 11 00 00 [15:16:10]Write to MH i2c: E2 08 00 DA 05 80 11 00 00 00 00 00 00 59 [15:16:10]Write i2c OK [15:16:10]MH_I2C_Read... [15:16:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:10]Read from MH i2c: E2 [15:16:10]MH_I2C_Read... [15:16:10]Read from MH i2c: E2 17 00 [15:16:10]MH_I2C_Read... [15:16:10]Read from MH i2c: E2 17 00 DA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AF [15:16:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:16:10]wFMCommunicate OK [15:16:10]CreateOFDProtocolMessage done [15:16:10]OFDSenderStorePacket 67089 [15:16:10]StoreOFDPacket docnum=67089 [15:16: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 FE 09 07 01 C0 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E0 09 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 09 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 37 00 00 00 00 07 04 06 00 E0 09 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 39 80 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 11 06 01 00 35 04 06 00 2F 84 42 FC 80 CC 98 86 C0 CE 16 E9 9A 64 [15:16:10]CheckFolder [15:16:10]dirname=/storage/ofd_packets [15:16:10]CheckFolder done [15:16:10]ProducePacketName [15:16:10]name=ofd_packets/00067089 [15:16:10]NVStorageSaveData ofd_packets/00067089 [15:16:10]File name is /storage/ofd_packets/00067089 [15:16:10]Write 301 bytes [15:16:10]NVStorageSaveData done [15:16:10]OFDSenderStorePacket done [15:16:10]KKMCreateOFDPacket done [15:16:10]NVStorageSaveData kkm_last_timestamp [15:16:10]File name is /storage/kkm_last_timestamp [15:16:10]Write 4 bytes [15:16:10]NVStorageSaveData done [15:16:10]ExternCall_PrintAddStr [15:16:10]wPrintStart [15:16:10]Write to MH i2c: 01 00 00 DB 05 E0 [15:16:10]Write i2c OK [15:16:10]MH_I2C_Read... [15:16:10]Read from MH i2c: 01 [15:16:10]MH_I2C_Read... [15:16:10]Read from MH i2c: 01 07 00 [15:16:10]MH_I2C_Read... [15:16:10]Read from MH i2c: 01 07 00 DB 05 00 00 00 00 00 FF 0F F5 [15:16:10]RasterBufferAndPrint [15:16:10]line Счет N : (1)506974 [15:16:10]line ИНН: 02508201610067 [15:16:10]line Контрольно-Кассовый Чек [15:16:10]line ПРОДАЖА [15:16:10]line ТРК (МРК, ГНК) : 43 [15:16:10]line Товар: 2710124130 [15:16:10]line Аи-92-К-5 [15:16:10]line 20.000 * 66.80 [15:16:10]line = 1336.00 [15:16:10]line НДС 12% НСП 1% [15:16:10]line > о реализуемом товаре [15:16:10]line ИТОГО: 1336.00 [15:16:10]line НСП 1% : 11.82 [15:16:10]line НДС 12% : 141.88 [15:16:10]line Наличными: 1336.00 [15:16:10]line Безнал.: 0.00 [15:16:10]line Место: АЗС № 91 "Партнер Нефть" [15:16:10]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:16:10]line СНО: Общий режим [15:16:10]line Чек 96 14.05.2024 15:16 [15:16:10]line Смена: 355 ФФД: 1.0 [15:16:10]line ЗНМ: 0300000119 [15:16:10]line РНМ: 0000000000091845 [15:16:10]line Версия ККМ: 001 [15:16:10]line ФМ: 0000000000871829 [15:16:10]line ФД: 67089 [15:16:10]line ФПД: 52245106032844 [15:16:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T151609&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67089&fm=52245106032844&tin=02508201610067®Number=0000000000091845&sum=133600 [15:16:11]OFD Sender: Processing packet 67089 [packets to send 35, broken 34] [15:16:11]ProducePacketName [15:16:11]name=ofd_packets/00067089 [15:16:11]OFD Sender: To server: pG, [15:16:11]CommunicateWithHost lk.salyk.kg:30040 [15:16:11]ConnectInit lk.salyk.kg [15:16:11]written 0, free lines is 4095 [15:16:11]Write to MH i2c: 01 00 00 02 06 08 [15:16:11]Write i2c OK [15:16:11]MH_I2C_Read... [15:16:11]Read from MH i2c: 01 [15:16:11]MH_I2C_Read... [15:16:11]Read from MH i2c: 01 07 00 [15:16:11]MH_I2C_Read... [15:16:11]Read from MH i2c: 01 07 00 02 06 00 00 00 00 00 06 0D 22 [15:16:11]RasterBufferAndPrint [15:16:11]line [15:16:11]line [15:16:11]line [15:16:11]line [15:16:11]line [15:16:11]written 0, free lines is 3340 [15:16:11]MH_Cut [15:16:11]Write to MH i2c: D1 01 00 09 06 01 E1 [15:16:11]Write i2c OK [15:16:11]MH_I2C_Read... [15:16:11]Read from MH i2c: D1 [15:16:11]MH_I2C_Read... [15:16:11]Read from MH i2c: D1 01 00 [15:16:11]MH_I2C_Read... [15:16:11]Read from MH i2c: D1 01 00 09 06 00 E0 [15:16:11]Write to MH i2c: 01 00 00 0A 06 10 [15:16:11]Write i2c OK [15:16:11]MH_I2C_Read... [15:16:12]*** Cut start [15:16:12]*** Purtial cut [15:16:12]*** Stage 1: CUTSNS_PIN = 1 [15:16:12]Read from MH i2c: 01 [15:16:12]MH_I2C_Read... [15:16:12]*** Stop cut motor [15:16:12]*** Cut end [15:16:12]Read from MH i2c: 01 07 00 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: 01 07 00 0A 06 00 00 00 00 00 FF 0F 25 [15:16:12]process_action close_receipt done [15:16:12]requested_data is exist [15:16:12]produce_requested_data [15:16:12]requested_item fm.sn is exist - process it [15:16:12]wFMCommunicate request_size=4 [15:16:12]MH_SAM_APDU [15:16:12]CAPDU: 80 11 00 00 [15:16:12]Write to MH i2c: E2 08 00 0B 06 80 11 00 00 00 00 00 00 8B [15:16:12]Write i2c OK [15:16:12]MH_I2C_Read... [15:16:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:12]Read from MH i2c: E2 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: E2 17 00 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: E2 17 00 0B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E1 [15: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 [15:16:12]wFMCommunicate OK [15:16:12]requested_item fd.num is exist - process it [15:16:12]SAM_PROTO_GetFieldsCounters [15:16:12]wFMCommunicate request_size=4 [15:16:12]MH_SAM_APDU [15:16:12]CAPDU: 80 13 00 00 [15:16:12]Write to MH i2c: E2 08 00 0C 06 80 13 00 00 00 00 00 00 8E [15:16:12]Write i2c OK [15:16:12]MH_I2C_Read... [15:16:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:12]Read from MH i2c: E2 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: E2 62 00 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: E2 62 00 0C 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 06 01 00 0E 04 04 00 63 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 50 [15:16: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 11 06 01 00 0E 04 04 00 63 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 [15:16:12]wFMCommunicate OK [15:16:12]SAM_PROTO_GetFieldsCounters done [15:16:12]requested_item shift.num is exist - process it [15:16:12]requested_item shift.opened is exist - process it [15:16:12]req_shift_opened [15:16:12]FM_GetShiftState [15:16:12]SAM_PROTO_GetShiftState [15:16:12]wFMCommunicate request_size=4 [15:16:12]MH_SAM_APDU [15:16:12]CAPDU: 80 13 01 00 [15:16:12]Write to MH i2c: E2 08 00 0D 06 80 13 01 00 00 00 00 00 90 [15:16:12]Connected sock=11 [15: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 0F 01 00 00 FE 09 07 01 C0 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E0 09 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 09 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 37 00 00 00 00 07 04 06 00 E0 09 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 39 80 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 11 06 01 00 35 04 06 00 2F 84 42 FC 80 CC 98 86 C0 CE 16 E9 9A 64 [15:16:12]Write i2c OK [15:16:12]MH_I2C_Read... [15:16:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:12]Read from MH i2c: E2 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: E2 0E 00 [15:16:12]MH_I2C_Read... [15:16:12]Read from MH i2c: E2 0E 00 0D 06 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 58 [15:16:12]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:16:12]wFMCommunicate OK [15:16:12]SAM_PROTO_GetShiftState done [15:16:12]FM_GetShiftState done [15:16:12]req_shift_opened done [15:16:12]requested_item shift.open_date is exist - process it [15:16:12]req_shift_open_date [15:16:12]req_shift_open_date done [15:16:12]produce_requested_data done [15:16:12]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67089,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [15:16:12]process_action_free close_receipt [15:16:12]json_value_free [15:16:12]json_value_free done [15:16:12]process_json_proto returns [15:16:12]Send response to host [15:16:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67089,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [15:16:12]free response buf [15:16:12]execute_script done [15:16:12]execute_script returns [15:16:12]free content buf [15:16:12]Sock 9.Close socket [15:16:12]Sock 9.Thread stoped [15:16: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 05 C8 47 00 5D EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 11 06 01 00 F4 03 04 00 1B 28 43 66 B6 04 01 00 00 8B 79 7C 82 C6 C5 BC D2 [15:16:13]CommunicateWithHost err = 0 [15:16:13]CheckOFDResponse [15:16:13]1017 (14) - 77093643461234 [15:16:13]1041 (16) - 0000000000871829 [15:16:13]1040 (4) - 67089 [15:16:13]1012 (4) - 14.05.2024 09:00 [15:16:13]1206 (1) - 0 [15:16:13]OFD Sender: Remove packet 67089 [15:16:13]ProducePacketName [15:16:13]name=ofd_packets/00067089 [15:16:13]NVStorageDeleteData [15:16:13]OFD Sender: No OFD packet to send [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:43]OFD Sender: No OFD packet to send [15:16:48]OFD Sender: No OFD packet to send [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:57]recv_with_timeout no data received [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:28]OFD Sender: No OFD packet to send [15:19:33]OFD Sender: No OFD packet to send [15:19:38]OFD Sender: No OFD packet to send [15:19:43]OFD Sender: No OFD packet to send [15:19:48]OFD Sender: No OFD packet to send [15:19:53]OFD Sender: No OFD packet to send [15:19:58]OFD Sender: No OFD packet to send [15:20:03]OFD Sender: No OFD packet to send [15:20:08]OFD Sender: No OFD packet to send [15:20:13]OFD Sender: No OFD packet to send [15:20:18]OFD Sender: No OFD packet to send [15:20:23]OFD Sender: No OFD packet to send [15:20:28]OFD Sender: No OFD packet to send [15:20:33]OFD Sender: No OFD packet to send [15:20:38]OFD Sender: No OFD packet to send [15:20:43]OFD Sender: No OFD packet to send [15:20:48]OFD Sender: No OFD packet to send [15:20:53]OFD Sender: No OFD packet to send [15:20:58]OFD Sender: No OFD packet to send [15:21:03]OFD Sender: No OFD packet to send [15:21:08]OFD Sender: No OFD packet to send [15:21:13]OFD Sender: No OFD packet to send [15:21:18]OFD Sender: No OFD packet to send [15:21:23]OFD Sender: No OFD packet to send [15:21:28]OFD Sender: No OFD packet to send [15:21:33]OFD Sender: No OFD packet to send [15:21:38]OFD Sender: No OFD packet to send [15:21:43]OFD Sender: No OFD packet to send [15:21:48]OFD Sender: No OFD packet to send [15:21:53]recv_with_timeout no data received [15:21:53]OFD Sender: No OFD packet to send [15:21:58]OFD Sender: No OFD packet to send [15:22:03]OFD Sender: No OFD packet to send [15:22:08]OFD Sender: No OFD packet to send [15:22:13]OFD Sender: No OFD packet to send [15:22:18]OFD Sender: No OFD packet to send [15:22:23]OFD Sender: No OFD packet to send [15:22:28]OFD Sender: No OFD packet to send [15:22:29]recv_with_timeout no data received [15:22:33]OFD Sender: No OFD packet to send [15:22:38]OFD Sender: No OFD packet to send [15:22:43]OFD Sender: No OFD packet to send [15:22:48]OFD Sender: No OFD packet to send [15:22:53]OFD Sender: No OFD packet to send [15:22:58]OFD Sender: No OFD packet to send [15:23:03]OFD Sender: No OFD packet to send [15:23:08]OFD Sender: No OFD packet to send [15:23:13]OFD Sender: No OFD packet to send [15:23:18]OFD Sender: No OFD packet to send [15:23:23]OFD Sender: No OFD packet to send [15:23:28]OFD Sender: No OFD packet to send [15:23:32]accept exits with 10 [15:23:32]New connection [15:23:32]New thread 3067628900 created [15:23:32]Thread 3067485540 joined [15:23:32]Waiting for new connection... [15:23:32] Sock 10.Parse request [15:23:32]Sock 10.Check first char [15:23:32]Sock 10.First char is OK [15:23:32]request: POST /json_proto HTTP/1.0 [15:23:32]Method: POST [15:23:32]URL: /json_proto [15:23:32]Method is POST - this is cgi request [15:23:32]url: /json_proto [15:23:32]query_string will be loaded in cgi processing [15:23:32]execute_cgi json_proto POST (null) [15:23:32]execute_cgi path=json_proto method=POST [15:23:32]POST find Content-Length [15:23:32]Host: 172.17.41.195:8080 [15:23:32]Content-Length: 662 [15:23:32]Content-Type: application/json [15:23:32] [15:23:32]POST finish read [15:23:32]Found Content-Length = 662 [15:23:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12053", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:32]execute_script... [15:23: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 : (3)12053", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:32]POST & json_proto [15:23:32]process_json_proto [15:23:32]json parsed OK: [15:23:32]protocol is kg_v1.0 [15:23:32]action value=close_receipt [15:23:32]process_action close_receipt [15:23:32]cmd_close_receipt [15:23:32]MH_GetDate [15:23:32]Write to MH i2c: F0 00 00 0E 06 03 [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: F0 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: F0 09 00 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: F0 09 00 0E 06 00 F4 81 43 66 FC 21 6F 64 1A [15:23:32]GetLastDocTimeStamp 1715699769 [15:23:32]current date 1715700212 [15:23:32]FM_GetShiftState [15:23:32]SAM_PROTO_GetShiftState [15:23:32]wFMCommunicate request_size=4 [15:23:32]MH_SAM_APDU [15:23:32]CAPDU: 80 13 01 00 [15:23:32]Write to MH i2c: E2 08 00 0F 06 80 13 01 00 00 00 00 00 92 [15:23:32]Write i2c OK [15:23:32]MH_I2C_Read... [15:23:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:32]Read from MH i2c: E2 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: E2 0E 00 [15:23:32]MH_I2C_Read... [15:23:32]Read from MH i2c: E2 0E 00 0F 06 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 5A [15:23:32]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:23:32]wFMCommunicate OK [15:23:32]SAM_PROTO_GetShiftState done [15:23:32]FM_GetShiftState done [15:23:32]opened in 1715646054 [15:23:32]opened+sec_in_day 1715732454 [15:23:32]quantity*price = 17000 [15:23:32]sum+1 = 17001 [15:23:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 97 14.05.2024 15:23 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67090 ФПД: 161019455223059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T152332&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67090&fm=161019455223059&tin=02508201610067®Number=0000000000091845&sum=17000 0 [15:23:33]StoreToDocumentArchive [15:23:33]shift 355 fd 67090 [15:23:33]save to /storage/0355/doc_00067090 [15:23:33]save last doc name /storage/0355/doc_00067090 to /storage/kkm_last_doc_name [15:23:33]save OK [15:23:33]Clear old archive folders... [15:23:33]ProcessDocumentItem done err = 0, tmpTLVsize=287 [15:23:33]tlvbuf is 00808690 [15:23:33]SAM_PROTO_ClearQueue [15:23:33]wFMCommunicate request_size=4 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 09 00 00 [15:23:33]Write to MH i2c: E2 08 00 1C 06 80 09 00 00 00 00 00 00 94 [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:33]Read from MH i2c: E2 03 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 03 00 1C 06 00 90 00 96 [15:23:33]RAPDU: 90 00 [15:23:33]wFMCommunicate OK [15:23:33]SAM_PROTO_ClearQueue done [15:23:33]KKMCreateOFDPacket [15:23:33]OFDProtocolAddRootSTLVToBuf [15:23:33]FM_MakeSignedData [15:23:33]FM_MakeSignedData [15:23:33]SAM_PROTO_SignData [15:23:33]wFMCommunicate request_size=4 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 0D 01 02 [15:23:33]Write to MH i2c: E2 08 00 1D 06 80 0D 01 02 00 00 00 00 9C [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 03 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 03 00 1D 06 00 90 00 97 [15:23:33]RAPDU: 90 00 [15:23:33]wFMCommunicate OK [15:23:33]wFMCommunicate request_size=255 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 F4 81 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [15:23:33]Write to MH i2c: E2 02 01 1E 06 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 F4 81 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 00 00 01 [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 03 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 03 00 1E 06 00 90 00 98 [15:23:33]RAPDU: 90 00 [15:23:33]wFMCommunicate OK [15:23:33]wFMCommunicate request_size=46 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 0D 02 02 29 38 34 35 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 06 01 00 35 04 06 00 92 72 43 6E 35 13 [15:23:33]Write to MH i2c: E2 31 00 1F 06 80 0D 02 02 29 00 38 34 35 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 06 01 00 35 04 06 00 92 72 43 6E 35 13 00 00 47 [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 03 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 03 00 1F 06 00 90 00 99 [15:23:33]RAPDU: 90 00 [15:23:33]wFMCommunicate OK [15:23:33]wFMCommunicate request_size=4 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 0D 03 02 [15:23:33]Write to MH i2c: E2 08 00 20 06 80 0D 03 02 00 00 00 00 A1 [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 0B 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 0B 00 20 06 00 63 33 78 13 CF A4 CC 34 90 00 36 [15:23:33]RAPDU: 63 33 78 13 CF A4 CC 34 90 00 [15:23:33]wFMCommunicate OK [15:23:33]SAM_PROTO_SignData done [15:23:33]FM_MakeSignedData done [15:23:33]CreateOFDProtocolMessage [15:23:33]wFMCommunicate request_size=4 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 11 00 00 [15:23:33]Write to MH i2c: E2 08 00 21 06 80 11 00 00 00 00 00 00 A1 [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 17 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 17 00 21 06 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:23: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:23:33]wFMCommunicate OK [15:23:33]CreateOFDProtocolMessage done [15:23:33]OFDSenderStorePacket 67090 [15:23:33]StoreOFDPacket docnum=67090 [15:23: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 33 01 00 00 7D 7C 2B 01 98 FD 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 F4 81 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 92 72 43 6E 35 13 63 33 78 13 CF A4 CC 34 [15:23:33]CheckFolder [15:23:33]dirname=/storage/ofd_packets [15:23:33]CheckFolder done [15:23:33]ProducePacketName [15:23:33]name=ofd_packets/00067090 [15:23:33]NVStorageSaveData ofd_packets/00067090 [15:23:33]File name is /storage/ofd_packets/00067090 [15:23:33]Write 337 bytes [15:23:33]NVStorageSaveData done [15:23:33]OFDSenderStorePacket done [15:23:33]KKMCreateOFDPacket done [15:23:33]NVStorageSaveData kkm_last_timestamp [15:23:33]File name is /storage/kkm_last_timestamp [15:23:33]Write 4 bytes [15:23:33]NVStorageSaveData done [15:23:33]ExternCall_PrintAddStr [15:23:33]wPrintStart [15:23:33]Write to MH i2c: 01 00 00 22 06 28 [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: 01 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: 01 07 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: 01 07 00 22 06 00 00 00 00 00 FF 0F 3D [15:23:33]RasterBufferAndPrint [15:23:33]line Счет N : (3)12053 [15:23:33]line ИНН: 02508201610067 [15:23:33]line Контрольно-Кассовый Чек [15:23:33]line ПРОДАЖА [15:23:33]line Товар: 5449000176448 [15:23:33]line Сок Piko Pulpy апельсин ПЭТ 1л [15:23:33]line 1.000 * 170.00 [15:23:33]line = 170.00 [15:23:33]line НДС 12% НСП 1% [15:23:33]line > о реализуемом товаре [15:23:33]line ИТОГО: 170.00 [15:23:33]line НСП 1% : 1.50 [15:23:33]line НДС 12% : 18.05 [15:23:33]line Наличными: 170.00 [15:23:33]line Безнал.: 0.00 [15:23:33]line Место: АЗС № 91 "Партнер Нефть" [15:23:33]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:23:33]line СНО: Общий режим [15:23:33]line Чек 97 14.05.2024 15:23 [15:23:33]line Смена: 355 ФФД: 1.0 [15:23:33]line ЗНМ: 0300000119 [15:23:33]line РНМ: 0000000000091845 [15:23:33]line Версия ККМ: 001 [15:23:33]line ФМ: 0000000000871829 [15:23:33]line ФД: 67090 [15:23:33]line ФПД: 161019455223059 [15:23:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T152332&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67090&fm=161019455223059&tin=02508201610067®Number=0000000000091845&sum=17000 [15:23:34]line 0 [15:23:34]OFD Sender: Processing packet 67090 [packets to send 35, broken 34] [15:23:34]ProducePacketName [15:23:34]name=ofd_packets/00067090 [15:23:34]OFD Sender: To server: pG, [15:23:34]CommunicateWithHost lk.salyk.kg:30040 [15:23:34]ConnectInit lk.salyk.kg [15:23:34]written 0, free lines is 4095 [15:23:34]Connected sock=9 [15:23: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 33 01 00 00 7D 7C 2B 01 98 FD 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 F4 81 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 92 72 43 6E 35 13 63 33 78 13 CF A4 CC 34 [15:23: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 E1 CB 47 00 B2 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 12 06 01 00 F4 03 04 00 D4 29 43 66 B6 04 01 00 00 A6 FE FE 5D F3 99 6C FB [15:23:34]CommunicateWithHost err = 0 [15:23:34]CheckOFDResponse [15:23:34]1017 (14) - 77093643461234 [15:23:34]1041 (16) - 0000000000871829 [15:23:34]1040 (4) - 67090 [15:23:34]1012 (4) - 14.05.2024 09:07 [15:23:34]1206 (1) - 0 [15:23:34]OFD Sender: Remove packet 67090 [15:23:34]ProducePacketName [15:23:34]name=ofd_packets/00067090 [15:23:34]NVStorageDeleteData [15:23:34]Write to MH i2c: 01 00 00 4A 06 50 [15:23:34]Write i2c OK [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: 01 [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: 01 07 00 [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: 01 07 00 4A 06 00 00 00 00 00 DE 0C 41 [15:23:34]RasterBufferAndPrint [15:23:34]line [15:23:34]line [15:23:34]line [15:23:34]line [15:23:34]line [15:23:34]written 0, free lines is 3298 [15:23:34]MH_Cut [15:23:34]Write to MH i2c: D1 01 00 51 06 01 29 [15:23:34]Write i2c OK [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: D1 [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: D1 01 00 [15:23:34]MH_I2C_Read... [15:23:34]Read from MH i2c: D1 01 00 51 06 00 28 [15:23:34]Write to MH i2c: 01 00 00 52 06 58 [15:23:34]Write i2c OK [15:23:34]MH_I2C_Read... [15:23:35]OFD Sender: No OFD packet to send [15:23:35]*** Cut start [15:23:35]*** Purtial cut [15:23:35]*** CUTSNS_PIN = 0 [15:23:35]*** Stage 1: CUTSNS_PIN = 1 [15:23:37]Read from MH i2c: 01 [15:23:37]MH_I2C_Read... [15:23:37]*** Stop cut motor [15:23:37]*** Cut end [15:23:37]Read from MH i2c: 01 07 00 [15:23:37]MH_I2C_Read... [15:23:37]Read from MH i2c: 01 07 00 52 06 00 00 00 00 00 FF 0F 6D [15:23:37]process_action close_receipt done [15:23:37]requested_data is exist [15:23:37]produce_requested_data [15:23:37]requested_item fm.sn is exist - process it [15:23:37]wFMCommunicate request_size=4 [15:23:37]MH_SAM_APDU [15:23:37]CAPDU: 80 11 00 00 [15:23:37]Write to MH i2c: E2 08 00 53 06 80 11 00 00 00 00 00 00 D3 [15:23:37]Write i2c OK [15:23:37]MH_I2C_Read... [15:23:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:37]Read from MH i2c: E2 [15:23:37]MH_I2C_Read... [15:23:37]Read from MH i2c: E2 17 00 [15:23:37]MH_I2C_Read... [15:23:37]Read from MH i2c: E2 17 00 53 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 29 [15:23: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:23:37]wFMCommunicate OK [15:23:37]requested_item fd.num is exist - process it [15:23:37]SAM_PROTO_GetFieldsCounters [15:23:37]wFMCommunicate request_size=4 [15:23:37]MH_SAM_APDU [15:23:37]CAPDU: 80 13 00 00 [15:23:37]Write to MH i2c: E2 08 00 54 06 80 13 00 00 00 00 00 00 D6 [15:23:37]Write i2c OK [15:23:37]MH_I2C_Read... [15:23:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:37]Read from MH i2c: E2 [15:23:37]MH_I2C_Read... [15:23:37]Read from MH i2c: E2 62 00 [15:23:37]MH_I2C_Read... [15:23:37]Read from MH i2c: E2 62 00 54 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 12 06 01 00 0E 04 04 00 63 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 9C [15:23: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 12 06 01 00 0E 04 04 00 63 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 [15:23:37]wFMCommunicate OK [15:23:37]SAM_PROTO_GetFieldsCounters done [15:23:37]requested_item shift.num is exist - process it [15:23:37]requested_item shift.opened is exist - process it [15:23:37]req_shift_opened [15:23:37]FM_GetShiftState [15:23:37]SAM_PROTO_GetShiftState [15:23:37]wFMCommunicate request_size=4 [15:23:37]MH_SAM_APDU [15:23:37]CAPDU: 80 13 01 00 [15:23:37]Write to MH i2c: E2 08 00 55 06 80 13 01 00 00 00 00 00 D8 [15:23:37]Write i2c OK [15:23:37]MH_I2C_Read... [15:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:37]Read from MH i2c: E2 [15:23:37]MH_I2C_Read... [15:23:37]Read from MH i2c: E2 0E 00 [15:23:37]MH_I2C_Read... [15:23:37]Read from MH i2c: E2 0E 00 55 06 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A0 [15:23:37]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:23:37]wFMCommunicate OK [15:23:37]SAM_PROTO_GetShiftState done [15:23:37]FM_GetShiftState done [15:23:37]req_shift_opened done [15:23:37]requested_item shift.open_date is exist - process it [15:23:37]req_shift_open_date [15:23:37]req_shift_open_date done [15:23:37]produce_requested_data done [15:23:37]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67090,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [15:23:37]process_action_free close_receipt [15:23:37]json_value_free [15:23:37]json_value_free done [15:23:37]process_json_proto returns [15:23:37]Send response to host [15:23:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67090,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [15:23:37]free response buf [15:23:37]execute_script done [15:23:37]execute_script returns [15:23:37]free content buf [15:23:37]Sock 10.Close socket [15:23:37]Sock 10.Thread stoped [15:23:39]int [15:23:39]Write to MH i2c: 01 00 00 56 06 5C [15:23:39]*** FLAG_PRN_PAP1 set [15:23:39]Write i2c OK [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: 01 [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: 01 07 00 [15:23:39]MH_I2C_Read... [15:23:39]Read from MH i2c: 01 07 00 56 06 00 01 00 00 00 FF 0F 72 [15:23:39]state=0 [15:23:39]No paper [15:23:40]int [15:23:40]Write to MH i2c: 01 00 00 57 06 5D [15:23:40]*** FLAG_PRN_PAP2 set [15:23:40]Write i2c OK [15:23:40]MH_I2C_Read... [15:23:40]Read from MH i2c: 01 [15:23:40]MH_I2C_Read... [15:23:40]OFD Sender: No OFD packet to send [15:23:40]Read from MH i2c: 01 07 00 [15:23:40]MH_I2C_Read... [15:23:40]Read from MH i2c: 01 07 00 57 06 00 03 00 00 00 FF 0F 75 [15:23:40]state=0 [15:23:40]No paper [15:23:40]Cover opened [15:23:43]int [15:23:43]Write to MH i2c: 01 00 00 58 06 5E [15:23:43]*** FLAG_PRN_PAP1 reset [15:23:43]*** FLAG_PRN_PAP2 reset [15:23:43]Write i2c OK [15:23:43]MH_I2C_Read... [15:23:43]Read from MH i2c: 01 [15:23:43]MH_I2C_Read... [15:23:43]Read from MH i2c: 01 07 00 [15:23:43]MH_I2C_Read... [15:23:43]Read from MH i2c: 01 07 00 58 06 00 00 00 00 00 FF 0F 73 [15:23:43]state=3 [15:23:43]Cover closed [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:24:57]accept exits with 7 [15:24:57]New connection [15:24:57]New thread 3067485540 created [15:24:57]Thread 3067628900 joined [15:24:57]Waiting for new connection... [15:24:57] Sock 7.Parse request [15:24:57]Sock 7.Check first char [15:24:57]Sock 7.First char is OK [15:24:57]request: POST /json_proto HTTP/1.0 [15:24:57]Method: POST [15:24:57]URL: /json_proto [15:24:57]Method is POST - this is cgi request [15:24:57]url: /json_proto [15:24:57]query_string will be loaded in cgi processing [15:24:57]execute_cgi json_proto POST (null) [15:24:57]execute_cgi path=json_proto method=POST [15:24:57]POST find Content-Length [15:24:57]Host: 172.17.41.195:8080 [15:24:57]Content-Length: 679 [15:24:57]Content-Type: application/json [15:24:57] [15:24:57]POST finish read [15:24:57]Found Content-Length = 679 [15:24:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 24.500, "sum" : 1830.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1830.00, "total" : 1830.00, "payments": [ { "type": 0, "sum" : 1830.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:57]execute_script... [15:24: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)506975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 24.500, "sum" : 1830.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1830.00, "total" : 1830.00, "payments": [ { "type": 0, "sum" : 1830.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:57]POST & json_proto [15:24:57]process_json_proto [15:24:57]json parsed OK: [15:24:57]protocol is kg_v1.0 [15:24:57]action value=close_receipt [15:24:57]process_action close_receipt [15:24:57]cmd_close_receipt [15:24:57]MH_GetDate [15:24:57]Write to MH i2c: F0 00 00 59 06 4E [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: F0 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: F0 09 00 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: F0 09 00 59 06 00 49 82 43 66 FC 21 6F 64 BB [15:24:57]GetLastDocTimeStamp 1715700212 [15:24:57]current date 1715700297 [15:24:57]FM_GetShiftState [15:24:57]SAM_PROTO_GetShiftState [15:24:57]wFMCommunicate request_size=4 [15:24:57]MH_SAM_APDU [15:24:57]CAPDU: 80 13 01 00 [15:24:57]Write to MH i2c: E2 08 00 5A 06 80 13 01 00 00 00 00 00 DD [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:57]Read from MH i2c: E2 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 0E 00 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 0E 00 5A 06 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A5 [15:24:57]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:24:57]wFMCommunicate OK [15:24:57]SAM_PROTO_GetShiftState done [15:24:57]FM_GetShiftState done [15:24:57]opened in 1715646054 [15:24:57]opened+sec_in_day 1715732454 [15:24:57]quantity*price = 183015 [15:24:57]sum+1 = 183016 [15:24:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1830.00 Внесено: 1830.00 СДАЧА: 0.00 НСП 1% : 16.20 НДС 12% : 194.35 Наличными: 1830.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 98 14.05.2024 15:24 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67091 ФПД: 218771206099255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T152457&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67091&fm=218771206099255&tin=02508201610067®Number=0000000000091845&sum=183000 [15:24:58]StoreToDocumentArchive [15:24:58]shift 355 fd 67091 [15:24:58]save to /storage/0355/doc_00067091 [15:24:58]save last doc name /storage/0355/doc_00067091 to /storage/kkm_last_doc_name [15:24:58]save OK [15:24:58]Clear old archive folders... [15:24:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:24:58]tlvbuf is B6F66E60 [15:24:58]SAM_PROTO_ClearQueue [15:24:58]wFMCommunicate request_size=4 [15:24:58]MH_SAM_APDU [15:24:58]CAPDU: 80 09 00 00 [15:24:58]Write to MH i2c: E2 08 00 67 06 80 09 00 00 00 00 00 00 DF [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:58]Read from MH i2c: E2 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 03 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 03 00 67 06 00 90 00 E1 [15:24:58]RAPDU: 90 00 [15:24:58]wFMCommunicate OK [15:24:58]SAM_PROTO_ClearQueue done [15:24:58]KKMCreateOFDPacket [15:24:58]OFDProtocolAddRootSTLVToBuf [15:24:58]FM_MakeSignedData [15:24:58]FM_MakeSignedData [15:24:58]SAM_PROTO_SignData [15:24:58]wFMCommunicate request_size=4 [15:24:58]MH_SAM_APDU [15:24:58]CAPDU: 80 0D 01 02 [15:24:58]Write to MH i2c: E2 08 00 68 06 80 0D 01 02 00 00 00 00 E7 [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 [15:24:58]MH_I2C_Read... [15:24:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:58]Read from MH i2c: E2 03 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 03 00 68 06 00 90 00 E2 [15:24:58]RAPDU: 90 00 [15:24:58]wFMCommunicate OK [15:24:58]wFMCommunicate request_size=255 [15:24:58]MH_SAM_APDU [15:24:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 5F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E7 CA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 CA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 4B 00 00 00 00 07 04 06 00 D8 CA 02 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 49 82 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 C6 F8 A4 06 [15:24:58]Write to MH i2c: E2 02 01 69 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 B4 5F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E7 CA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 CA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 4B 00 00 00 00 07 04 06 00 D8 CA 02 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 49 82 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 C6 F8 A4 06 00 00 EE [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:58]Read from MH i2c: E2 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 03 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 03 00 69 06 00 90 00 E3 [15:24:58]RAPDU: 90 00 [15:24:58]wFMCommunicate OK [15:24:58]wFMCommunicate request_size=7 [15:24:58]MH_SAM_APDU [15:24:58]CAPDU: 80 0D 02 02 02 D1 37 [15:24:58]Write to MH i2c: E2 0A 00 6A 06 80 0D 02 02 02 00 D1 37 00 00 F6 [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:58]Read from MH i2c: E2 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 03 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 03 00 6A 06 00 90 00 E4 [15:24:58]RAPDU: 90 00 [15:24:58]wFMCommunicate OK [15:24:58]wFMCommunicate request_size=4 [15:24:58]MH_SAM_APDU [15:24:58]CAPDU: 80 0D 03 02 [15:24:58]Write to MH i2c: E2 08 00 6B 06 80 0D 03 02 00 00 00 00 EC [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:58]Read from MH i2c: E2 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 0B 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 0B 00 6B 06 00 EA 8C 38 F4 2F 16 A3 78 90 00 EF [15:24:58]RAPDU: EA 8C 38 F4 2F 16 A3 78 90 00 [15:24:58]wFMCommunicate OK [15:24:58]SAM_PROTO_SignData done [15:24:58]FM_MakeSignedData done [15:24:58]CreateOFDProtocolMessage [15:24:58]wFMCommunicate request_size=4 [15:24:58]MH_SAM_APDU [15:24:58]CAPDU: 80 11 00 00 [15:24:58]Write to MH i2c: E2 08 00 6C 06 80 11 00 00 00 00 00 00 EC [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:58]Read from MH i2c: E2 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 17 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: E2 17 00 6C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 42 [15:24: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:24:58]wFMCommunicate OK [15:24:58]CreateOFDProtocolMessage done [15:24:58]OFDSenderStorePacket 67091 [15:24:58]StoreOFDPacket docnum=67091 [15:24: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 0C 01 00 00 96 DF 04 01 0D 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 B4 5F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E7 CA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 CA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 4B 00 00 00 00 07 04 06 00 D8 CA 02 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 49 82 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 C6 F8 A4 06 D1 37 EA 8C 38 F4 2F 16 A3 78 [15:24:58]CheckFolder [15:24:58]dirname=/storage/ofd_packets [15:24:58]CheckFolder done [15:24:58]ProducePacketName [15:24:58]name=ofd_packets/00067091 [15:24:58]NVStorageSaveData ofd_packets/00067091 [15:24:58]File name is /storage/ofd_packets/00067091 [15:24:58]Write 298 bytes [15:24:58]NVStorageSaveData done [15:24:58]OFDSenderStorePacket done [15:24:58]KKMCreateOFDPacket done [15:24:58]NVStorageSaveData kkm_last_timestamp [15:24:58]File name is /storage/kkm_last_timestamp [15:24:58]Write 4 bytes [15:24:58]NVStorageSaveData done [15:24:58]ExternCall_PrintAddStr [15:24:58]wPrintStart [15:24:58]Write to MH i2c: 01 00 00 6D 06 73 [15:24:58]Write i2c OK [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: 01 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: 01 07 00 [15:24:58]MH_I2C_Read... [15:24:58]Read from MH i2c: 01 07 00 6D 06 00 00 00 00 00 FF 0F 88 [15:24:58]RasterBufferAndPrint [15:24:58]line Счет N : (1)506975 [15:24:58]line ИНН: 02508201610067 [15:24:58]line Контрольно-Кассовый Чек [15:24:58]line ПРОДАЖА [15:24:58]line ТРК (МРК, ГНК) : 41 [15:24:58]line Товар: 2710194210 [15:24:58]line ДТ-К-5 [15:24:58]line 24.500 * 74.70 [15:24:58]line = 1830.15 [15:24:58]line НДС 12% НСП 1% [15:24:58]line > о реализуемом товаре [15:24:58]line ОКРУГЛЕНИЕ: -0.15 [15:24:58]line ИТОГО: 1830.00 [15:24:58]line Внесено: 1830.00 [15:24:58]line СДАЧА: 0.00 [15:24:58]line НСП 1% : 16.20 [15:24:58]line НДС 12% : 194.35 [15:24:58]line Наличными: 1830.00 [15:24:58]line Безнал.: 0.00 [15:24:58]line Место: АЗС № 91 "Партнер Нефть" [15:24:58]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:24:58]line СНО: Общий режим [15:24:58]line Чек 98 14.05.2024 15:24 [15:24:58]line Смена: 355 ФФД: 1.0 [15:24:58]line ЗНМ: 0300000119 [15:24:59]line РНМ: 0000000000091845 [15:24:59]line Версия ККМ: 001 [15:24:59]line ФМ: 0000000000871829 [15:24:59]line ФД: 67091 [15:24:59]line ФПД: 218771206099255 [15:24:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T152457&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67091&fm=218771206099255&tin=02508201610067®Number=0000000000091845&sum=183000 [15:24:59]OFD Sender: Processing packet 67091 [packets to send 35, broken 34] [15:24:59]ProducePacketName [15:24:59]name=ofd_packets/00067091 [15:24:59]OFD Sender: To server: pG, [15:24:59]CommunicateWithHost lk.salyk.kg:30040 [15:24:59]ConnectInit lk.salyk.kg [15:24:59]written 0, free lines is 4095 [15:24:59]Connected sock=10 [15:24:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 96 DF 04 01 0D 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 B4 5F 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 E7 CA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 CA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 4B 00 00 00 00 07 04 06 00 D8 CA 02 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 49 82 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 C6 F8 A4 06 D1 37 EA 8C 38 F4 2F 16 A3 78 [15:24: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 E9 6C 47 00 1A 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 13 06 01 00 F4 03 04 00 29 2A 43 66 B6 04 01 00 00 8F 3B 3E 8F 4C ED 34 56 [15:24:59]CommunicateWithHost err = 0 [15:24:59]CheckOFDResponse [15:24:59]1017 (14) - 77093643461234 [15:24:59]1041 (16) - 0000000000871829 [15:24:59]1040 (4) - 67091 [15:24:59]1012 (4) - 14.05.2024 09:08 [15:24:59]1206 (1) - 0 [15:24:59]OFD Sender: Remove packet 67091 [15:24:59]ProducePacketName [15:24:59]name=ofd_packets/00067091 [15:24:59]NVStorageDeleteData [15:24:59]Write to MH i2c: 01 00 00 97 06 9D [15:24:59]Write i2c OK [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: 01 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: 01 07 00 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: 01 07 00 97 06 00 00 00 00 00 D8 0C 88 [15:24:59]RasterBufferAndPrint [15:24:59]line [15:24:59]line [15:24:59]line [15:24:59]line [15:24:59]line [15:24:59]written 0, free lines is 3293 [15:24:59]MH_Cut [15:24:59]Write to MH i2c: D1 01 00 9E 06 01 76 [15:24:59]Write i2c OK [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: D1 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: D1 01 00 [15:24:59]MH_I2C_Read... [15:24:59]Read from MH i2c: D1 01 00 9E 06 00 75 [15:24:59]Write to MH i2c: 01 00 00 9F 06 A5 [15:24:59]Write i2c OK [15:24:59]MH_I2C_Read... [15:24:59]OFD Sender: No OFD packet to send [15:25:00]*** Cut start [15:25:00]*** Purtial cut [15:25:00]*** Stage 1: CUTSNS_PIN = 1 [15:25:00]Read from MH i2c: 01 [15:25:00]MH_I2C_Read... [15:25:00]*** Stop cut motor [15:25:00]*** Cut end [15:25:00]Read from MH i2c: 01 07 00 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: 01 07 00 9F 06 00 00 00 00 00 FF 0F BA [15:25:00]process_action close_receipt done [15:25:00]requested_data is exist [15:25:00]produce_requested_data [15:25:00]requested_item fm.sn is exist - process it [15:25:00]wFMCommunicate request_size=4 [15:25:00]MH_SAM_APDU [15:25:00]CAPDU: 80 11 00 00 [15:25:00]Write to MH i2c: E2 08 00 A0 06 80 11 00 00 00 00 00 00 20 [15:25:00]Write i2c OK [15:25:00]MH_I2C_Read... [15:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:00]Read from MH i2c: E2 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: E2 17 00 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: E2 17 00 A0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 76 [15:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:25:00]wFMCommunicate OK [15:25:00]requested_item fd.num is exist - process it [15:25:00]SAM_PROTO_GetFieldsCounters [15:25:00]wFMCommunicate request_size=4 [15:25:00]MH_SAM_APDU [15:25:00]CAPDU: 80 13 00 00 [15:25:00]Write to MH i2c: E2 08 00 A1 06 80 13 00 00 00 00 00 00 23 [15:25:00]Write i2c OK [15:25:00]MH_I2C_Read... [15:25:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:00]Read from MH i2c: E2 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: E2 62 00 [15:25:00]MH_I2C_Read... [15:25:00]Read from MH i2c: E2 62 00 A1 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 13 06 01 00 0E 04 04 00 63 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 ED [15:25: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 13 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:00]wFMCommunicate OK [15:25:00]SAM_PROTO_GetFieldsCounters done [15:25:00]requested_item shift.num is exist - process it [15:25:00]requested_item shift.opened is exist - process it [15:25:00]req_shift_opened [15:25:00]FM_GetShiftState [15:25:00]SAM_PROTO_GetShiftState [15:25:00]wFMCommunicate request_size=4 [15:25:00]MH_SAM_APDU [15:25:00]CAPDU: 80 13 01 00 [15:25:00]Write to MH i2c: E2 08 00 A2 06 80 13 01 00 00 00 00 00 25 [15:25:00]Write i2c OK [15:25:00]MH_I2C_Read... [15:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:01]Read from MH i2c: E2 [15:25:01]MH_I2C_Read... [15:25:01]Read from MH i2c: E2 0E 00 [15:25:01]MH_I2C_Read... [15:25:01]Read from MH i2c: E2 0E 00 A2 06 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 ED [15:25:01]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:25:01]wFMCommunicate OK [15:25:01]SAM_PROTO_GetShiftState done [15:25:01]FM_GetShiftState done [15:25:01]req_shift_opened done [15:25:01]requested_item shift.open_date is exist - process it [15:25:01]req_shift_open_date [15:25:01]req_shift_open_date done [15:25:01]produce_requested_data done [15:25:01]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67091,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [15:25:01]process_action_free close_receipt [15:25:01]json_value_free [15:25:01]json_value_free done [15:25:01]process_json_proto returns [15:25:01]Send response to host [15:25:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67091,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [15:25:01]free response buf [15:25:01]execute_script done [15:25:01]execute_script returns [15:25:01]free content buf [15:25:01]Sock 7.Close socket [15:25:01]Sock 7.Thread stoped [15:25:04]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:45]OFD Sender: No OFD packet to send [15:25:50]OFD Sender: No OFD packet to send [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:20]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:50]accept exits with 9 [15:26:50]New connection [15:26:50]New thread 3067628900 created [15:26:50]Thread 3067485540 joined [15:26:50]Waiting for new connection... [15:26:50] Sock 9.Parse request [15:26:50]Sock 9.Check first char [15:26:50]Sock 9.First char is OK [15:26:50]request: POST /json_proto HTTP/1.0 [15:26:50]Method: POST [15:26:50]URL: /json_proto [15:26:50]Method is POST - this is cgi request [15:26:50]url: /json_proto [15:26:50]query_string will be loaded in cgi processing [15:26:50]execute_cgi json_proto POST (null) [15:26:50]execute_cgi path=json_proto method=POST [15:26:50]POST find Content-Length [15:26:50]Host: 172.17.41.195:8080 [15:26:50]Content-Length: 677 [15:26:50]Content-Type: application/json [15:26:50] [15:26:50]POST finish read [15:26:50]Found Content-Length = 677 [15:26:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506976", "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" ] } } [15:26:50]execute_script... [15:26: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)506976", "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" ] } } [15:26:50]POST & json_proto [15:26:50]process_json_proto [15:26:50]json parsed OK: [15:26:50]protocol is kg_v1.0 [15:26:50]action value=close_receipt [15:26:50]process_action close_receipt [15:26:50]cmd_close_receipt [15:26:50]MH_GetDate [15:26:50]Write to MH i2c: F0 00 00 A3 06 98 [15:26:50]Write i2c OK [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: F0 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: F0 09 00 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: F0 09 00 A3 06 00 BB 82 43 66 FC 21 6F 64 77 [15:26:50]GetLastDocTimeStamp 1715700297 [15:26:50]current date 1715700411 [15:26:50]FM_GetShiftState [15:26:50]SAM_PROTO_GetShiftState [15:26:50]wFMCommunicate request_size=4 [15:26:50]MH_SAM_APDU [15:26:50]CAPDU: 80 13 01 00 [15:26:50]Write to MH i2c: E2 08 00 A4 06 80 13 01 00 00 00 00 00 27 [15:26:50]Write i2c OK [15:26:50]MH_I2C_Read... [15:26:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:50]Read from MH i2c: E2 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: E2 0E 00 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: E2 0E 00 A4 06 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 EF [15:26:50]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:26:50]wFMCommunicate OK [15:26:50]SAM_PROTO_GetShiftState done [15:26:50]FM_GetShiftState done [15:26:50]opened in 1715646054 [15:26:50]opened+sec_in_day 1715732454 [15:26:50]quantity*price = 50033 [15:26:50]sum+1 = 50034 [15:26: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 СНО: Общий режим Чек 99 14.05.2024 15:26 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67092 ФПД: 270856585511811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T152651&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67092&fm=270856585511811&tin=02508201610067®Number=0000000000091845&sum=50000 [15:26:51]StoreToDocumentArchive [15:26:51]shift 355 fd 67092 [15:26:51]save to /storage/0355/doc_00067092 [15:26:51]save last doc name /storage/0355/doc_00067092 to /storage/kkm_last_doc_name [15:26:51]save OK [15:26:51]Clear old archive folders... [15:26:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:51]tlvbuf is 008085A0 [15:26:51]SAM_PROTO_ClearQueue [15:26:51]wFMCommunicate request_size=4 [15:26:51]MH_SAM_APDU [15:26:51]CAPDU: 80 09 00 00 [15:26:51]Write to MH i2c: E2 08 00 B1 06 80 09 00 00 00 00 00 00 29 [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:51]Read from MH i2c: E2 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 03 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 03 00 B1 06 00 90 00 2B [15:26:51]RAPDU: 90 00 [15:26:51]wFMCommunicate OK [15:26:51]SAM_PROTO_ClearQueue done [15:26:51]KKMCreateOFDPacket [15:26:51]OFDProtocolAddRootSTLVToBuf [15:26:51]FM_MakeSignedData [15:26:51]FM_MakeSignedData [15:26:51]SAM_PROTO_SignData [15:26:51]wFMCommunicate request_size=4 [15:26:51]MH_SAM_APDU [15:26:51]CAPDU: 80 0D 01 02 [15:26:51]Write to MH i2c: E2 08 00 B2 06 80 0D 01 02 00 00 00 00 31 [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:51]Read from MH i2c: E2 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 03 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 03 00 B2 06 00 90 00 2C [15:26:51]RAPDU: 90 00 [15:26:51]wFMCommunicate OK [15:26:51]wFMCommunicate request_size=255 [15:26:51]MH_SAM_APDU [15:26: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 63 00 00 00 F4 03 04 00 BB 82 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F6 [15:26:51]Write to MH i2c: E2 02 01 B3 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 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 63 00 00 00 F4 03 04 00 BB 82 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F6 00 00 7A [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:52]Read from MH i2c: E2 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 03 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 03 00 B3 06 00 90 00 2D [15:26:52]RAPDU: 90 00 [15:26:52]wFMCommunicate OK [15:26:52]wFMCommunicate request_size=10 [15:26:52]MH_SAM_APDU [15:26:52]CAPDU: 80 0D 02 02 05 57 B6 90 83 83 [15:26:52]Write to MH i2c: E2 0D 00 B4 06 80 0D 02 02 05 00 57 B6 90 83 83 00 00 E1 [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:52]Read from MH i2c: E2 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 03 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 03 00 B4 06 00 90 00 2E [15:26:52]RAPDU: 90 00 [15:26:52]wFMCommunicate OK [15:26:52]wFMCommunicate request_size=4 [15:26:52]MH_SAM_APDU [15:26:52]CAPDU: 80 0D 03 02 [15:26:52]Write to MH i2c: E2 08 00 B5 06 80 0D 03 02 00 00 00 00 36 [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:52]Read from MH i2c: E2 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 0B 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 0B 00 B5 06 00 29 ED 27 54 FE 3B F9 AD 90 00 A7 [15:26:52]RAPDU: 29 ED 27 54 FE 3B F9 AD 90 00 [15:26:52]wFMCommunicate OK [15:26:52]SAM_PROTO_SignData done [15:26:52]FM_MakeSignedData done [15:26:52]CreateOFDProtocolMessage [15:26:52]wFMCommunicate request_size=4 [15:26:52]MH_SAM_APDU [15:26:52]CAPDU: 80 11 00 00 [15:26:52]Write to MH i2c: E2 08 00 B6 06 80 11 00 00 00 00 00 00 36 [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:52]Read from MH i2c: E2 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 17 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 17 00 B6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8C [15:26: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:26:52]wFMCommunicate OK [15:26:52]CreateOFDProtocolMessage done [15:26:52]OFDSenderStorePacket 67092 [15:26:52]StoreOFDPacket docnum=67092 [15:26: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 50 51 07 01 CF 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 63 00 00 00 F4 03 04 00 BB 82 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F6 57 B6 90 83 83 29 ED 27 54 FE 3B F9 AD [15:26:52]CheckFolder [15:26:52]dirname=/storage/ofd_packets [15:26:52]CheckFolder done [15:26:52]ProducePacketName [15:26:52]name=ofd_packets/00067092 [15:26:52]NVStorageSaveData ofd_packets/00067092 [15:26:52]File name is /storage/ofd_packets/00067092 [15:26:52]Write 301 bytes [15:26:52]NVStorageSaveData done [15:26:52]OFDSenderStorePacket done [15:26:52]KKMCreateOFDPacket done [15:26:52]NVStorageSaveData kkm_last_timestamp [15:26:52]File name is /storage/kkm_last_timestamp [15:26:52]Write 4 bytes [15:26:52]NVStorageSaveData done [15:26:52]ExternCall_PrintAddStr [15:26:52]wPrintStart [15:26:52]Write to MH i2c: 01 00 00 B7 06 BD [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: 01 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: 01 07 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: 01 07 00 B7 06 00 00 00 00 00 FF 0F D2 [15:26:52]RasterBufferAndPrint [15:26:52]line Счет N : (1)506976 [15:26:52]line ИНН: 02508201610067 [15:26:52]line Контрольно-Кассовый Чек [15:26:52]line ПРОДАЖА [15:26:52]line ТРК (МРК, ГНК) : 23 [15:26:52]line Товар: 2710124130 [15:26:52]line Аи-92-К-5 [15:26:52]line 7.490 * 66.80 [15:26:52]line = 500.33 [15:26:52]line НДС 12% НСП 1% [15:26:52]line > о реализуемом товаре [15:26:52]line ОКРУГЛЕНИЕ: -0.33 [15:26:52]line ИТОГО: 500.00 [15:26:52]line Внесено: 500.00 [15:26:52]line СДАЧА: 0.00 [15:26:52]line НСП 1% : 4.43 [15:26:52]line НДС 12% : 53.13 [15:26:52]line Наличными: 500.00 [15:26:52]line Безнал.: 0.00 [15:26:52]line Место: АЗС № 91 "Партнер Нефть" [15:26:52]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:26:52]line СНО: Общий режим [15:26:52]line Чек 99 14.05.2024 15:26 [15:26:52]line Смена: 355 ФФД: 1.0 [15:26:52]line ЗНМ: 0300000119 [15:26:52]line РНМ: 0000000000091845 [15:26:52]line Версия ККМ: 001 [15:26:52]line ФМ: 0000000000871829 [15:26:52]line ФД: 67092 [15:26:52]line ФПД: 270856585511811 [15:26:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T152651&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67092&fm=270856585511811&tin=02508201610067®Number=0000000000091845&sum=50000 [15:26:52]OFD Sender: Processing packet 67092 [packets to send 35, broken 34] [15:26:52]ProducePacketName [15:26:52]name=ofd_packets/00067092 [15:26:52]OFD Sender: To server: pG, [15:26:52]CommunicateWithHost lk.salyk.kg:30040 [15:26:52]ConnectInit lk.salyk.kg [15:26:52]written 0, free lines is 4095 [15:26:52]Connected sock=7 [15:26: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 50 51 07 01 CF 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 63 00 00 00 F4 03 04 00 BB 82 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F6 57 B6 90 83 83 29 ED 27 54 FE 3B F9 AD [15:26: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 51 90 47 00 B4 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 14 06 01 00 F4 03 04 00 9A 2A 43 66 B6 04 01 00 00 76 34 75 45 4D 92 47 B8 [15:26:52]CommunicateWithHost err = 0 [15:26:52]CheckOFDResponse [15:26:52]1017 (14) - 77093643461234 [15:26:52]1041 (16) - 0000000000871829 [15:26:52]1040 (4) - 67092 [15:26:52]1012 (4) - 14.05.2024 09:10 [15:26:52]1206 (1) - 0 [15:26:52]OFD Sender: Remove packet 67092 [15:26:52]ProducePacketName [15:26:52]name=ofd_packets/00067092 [15:26:52]NVStorageDeleteData [15:26:52]Write to MH i2c: 01 00 00 E1 06 E7 [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: 01 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: 01 07 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: 01 07 00 E1 06 00 00 00 00 00 DC 0C D6 [15:26:52]RasterBufferAndPrint [15:26:52]line [15:26:52]line [15:26:52]line [15:26:52]line [15:26:52]line [15:26:52]written 0, free lines is 3298 [15:26:52]MH_Cut [15:26:52]Write to MH i2c: D1 01 00 E8 06 01 C0 [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: D1 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: D1 01 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: D1 01 00 E8 06 00 BF [15:26:52]Write to MH i2c: 01 00 00 E9 06 EF [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:53]OFD Sender: No OFD packet to send [15:26:53]*** Cut start [15:26:53]*** Purtial cut [15:26:53]*** CUTSNS_PIN = 0 [15:26:54]*** Stage 1: CUTSNS_PIN = 1 [15:26:55]Read from MH i2c: 01 [15:26:55]MH_I2C_Read... [15:26:55]*** Stop cut motor [15:26:55]*** Cut end [15:26:55]Read from MH i2c: 01 07 00 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: 01 07 00 E9 06 00 00 00 00 00 FF 0F 04 [15:26:55]process_action close_receipt done [15:26:55]requested_data is exist [15:26:55]produce_requested_data [15:26:55]requested_item fm.sn is exist - process it [15:26:55]wFMCommunicate request_size=4 [15:26:55]MH_SAM_APDU [15:26:55]CAPDU: 80 11 00 00 [15:26:55]Write to MH i2c: E2 08 00 EA 06 80 11 00 00 00 00 00 00 6A [15:26:55]Write i2c OK [15:26:55]MH_I2C_Read... [15:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:55]Read from MH i2c: E2 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: E2 17 00 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: E2 17 00 EA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C0 [15: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 [15:26:55]wFMCommunicate OK [15:26:55]requested_item fd.num is exist - process it [15:26:55]SAM_PROTO_GetFieldsCounters [15:26:55]wFMCommunicate request_size=4 [15:26:55]MH_SAM_APDU [15:26:55]CAPDU: 80 13 00 00 [15:26:55]Write to MH i2c: E2 08 00 EB 06 80 13 00 00 00 00 00 00 6D [15:26:55]Write i2c OK [15:26:55]MH_I2C_Read... [15:26:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:55]Read from MH i2c: E2 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: E2 62 00 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: E2 62 00 EB 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 14 06 01 00 0E 04 04 00 63 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 3B [15: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 14 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:55]wFMCommunicate OK [15:26:55]SAM_PROTO_GetFieldsCounters done [15:26:55]requested_item shift.num is exist - process it [15:26:55]requested_item shift.opened is exist - process it [15:26:55]req_shift_opened [15:26:55]FM_GetShiftState [15:26:55]SAM_PROTO_GetShiftState [15:26:55]wFMCommunicate request_size=4 [15:26:55]MH_SAM_APDU [15:26:55]CAPDU: 80 13 01 00 [15:26:55]Write to MH i2c: E2 08 00 EC 06 80 13 01 00 00 00 00 00 6F [15:26:56]Write i2c OK [15:26:56]MH_I2C_Read... [15:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:56]Read from MH i2c: E2 [15:26:56]MH_I2C_Read... [15:26:56]Read from MH i2c: E2 0E 00 [15:26:56]MH_I2C_Read... [15:26:56]Read from MH i2c: E2 0E 00 EC 06 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 37 [15:26:56]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:26:56]wFMCommunicate OK [15:26:56]SAM_PROTO_GetShiftState done [15:26:56]FM_GetShiftState done [15:26:56]req_shift_opened done [15:26:56]requested_item shift.open_date is exist - process it [15:26:56]req_shift_open_date [15:26:56]req_shift_open_date done [15:26:56]produce_requested_data done [15:26:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67092,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [15:26:56]process_action_free close_receipt [15:26:56]json_value_free [15:26:56]json_value_free done [15:26:56]process_json_proto returns [15:26:56]Send response to host [15:26:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67092,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [15:26:56]free response buf [15:26:56]execute_script done [15:26:56]execute_script returns [15:26:56]free content buf [15:26:56]Sock 9.Close socket [15:26:56]Sock 9.Thread stoped [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:08]OFD Sender: No OFD packet to send [15:27:13]OFD Sender: No OFD packet to send [15:27:18]OFD Sender: No OFD packet to send [15:27:23]OFD Sender: No OFD packet to send [15:27:28]OFD Sender: No OFD packet to send [15:27:33]OFD Sender: No OFD packet to send [15:27:38]OFD Sender: No OFD packet to send [15:27:43]OFD Sender: No OFD packet to send [15:27:48]OFD Sender: No OFD packet to send [15:27:53]OFD Sender: No OFD packet to send [15:27:58]OFD Sender: No OFD packet to send [15:28:03]OFD Sender: No OFD packet to send [15:28:08]OFD Sender: No OFD packet to send [15:28:13]OFD Sender: No OFD packet to send [15:28:18]OFD Sender: No OFD packet to send [15:28:23]OFD Sender: No OFD packet to send [15:28:28]OFD Sender: No OFD packet to send [15:28:33]OFD Sender: No OFD packet to send [15:28:38]OFD Sender: No OFD packet to send [15:28:43]OFD Sender: No OFD packet to send [15:28:48]OFD Sender: No OFD packet to send [15:28:53]OFD Sender: No OFD packet to send [15:28:58]OFD Sender: No OFD packet to send [15:29:03]OFD Sender: No OFD packet to send [15:29:05]accept exits with 10 [15:29:05]New connection [15:29:05]New thread 3067485540 created [15:29:05]Thread 3067628900 joined [15:29:05]Waiting for new connection... [15:29:05] Sock 10.Parse request [15:29:05]Sock 10.Check first char [15:29:05]Sock 10.First char is OK [15:29:05]request: POST /json_proto HTTP/1.0 [15:29:05]Method: POST [15:29:05]URL: /json_proto [15:29:05]Method is POST - this is cgi request [15:29:05]url: /json_proto [15:29:05]query_string will be loaded in cgi processing [15:29:05]execute_cgi json_proto POST (null) [15:29:05]execute_cgi path=json_proto method=POST [15:29:05]POST find Content-Length [15:29:05]Host: 172.17.41.195:8080 [15:29:05]Content-Length: 682 [15:29:05]Content-Type: application/json [15:29:05] [15:29:05]POST finish read [15:29:05]Found Content-Length = 682 [15:29:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506977", "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" ] } } [15:29:05]execute_script... [15:29: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)506977", "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" ] } } [15:29:05]POST & json_proto [15:29:05]process_json_proto [15:29:05]json parsed OK: [15:29:05]protocol is kg_v1.0 [15:29:05]action value=close_receipt [15:29:05]process_action close_receipt [15:29:05]cmd_close_receipt [15:29:05]MH_GetDate [15:29:05]Write to MH i2c: F0 00 00 ED 06 E2 [15:29:05]Write i2c OK [15:29:05]MH_I2C_Read... [15:29:05]Read from MH i2c: F0 [15:29:05]MH_I2C_Read... [15:29:05]Read from MH i2c: F0 09 00 [15:29:05]MH_I2C_Read... [15:29:05]Read from MH i2c: F0 09 00 ED 06 00 42 83 43 66 FC 21 6F 64 49 [15:29:05]GetLastDocTimeStamp 1715700411 [15:29:05]current date 1715700546 [15:29:05]FM_GetShiftState [15:29:05]SAM_PROTO_GetShiftState [15:29:05]wFMCommunicate request_size=4 [15:29:05]MH_SAM_APDU [15:29:05]CAPDU: 80 13 01 00 [15:29:05]Write to MH i2c: E2 08 00 EE 06 80 13 01 00 00 00 00 00 71 [15:29:05]Write i2c OK [15:29:05]MH_I2C_Read... [15:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:05]Read from MH i2c: E2 [15:29:05]MH_I2C_Read... [15:29:05]Read from MH i2c: E2 0E 00 [15:29:05]MH_I2C_Read... [15:29:05]Read from MH i2c: E2 0E 00 EE 06 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 39 [15:29:05]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:29:05]wFMCommunicate OK [15:29:05]SAM_PROTO_GetShiftState done [15:29:05]FM_GetShiftState done [15:29:05]opened in 1715646054 [15:29:05]opened+sec_in_day 1715732454 [15:29:05]quantity*price = 100066 [15:29:05]sum+1 = 100067 [15:29: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 СНО: Общий режим Чек 100 14.05.2024 15:29 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67093 ФПД: 182963885710623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T152906&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67093&fm=182963885710623&tin=02508201610067®Number=0000000000091845&sum=100000 [15:29:06]StoreToDocumentArchive [15:29:06]shift 355 fd 67093 [15:29:06]save to /storage/0355/doc_00067093 [15:29:06]save last doc name /storage/0355/doc_00067093 to /storage/kkm_last_doc_name [15:29:06]save OK [15:29:06]Clear old archive folders... [15:29:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:29:06]tlvbuf is 0082AFD0 [15:29:06]SAM_PROTO_ClearQueue [15:29:06]wFMCommunicate request_size=4 [15:29:06]MH_SAM_APDU [15:29:06]CAPDU: 80 09 00 00 [15:29:06]Write to MH i2c: E2 08 00 FB 06 80 09 00 00 00 00 00 00 73 [15:29:06]Write i2c OK [15:29:06]MH_I2C_Read... [15:29:06]Read from MH i2c: E2 [15:29:06]MH_I2C_Read... [15:29:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:06]Read from MH i2c: E2 03 00 [15:29:06]MH_I2C_Read... [15:29:06]Read from MH i2c: E2 03 00 FB 06 00 90 00 75 [15:29:06]RAPDU: 90 00 [15:29:06]wFMCommunicate OK [15:29:06]SAM_PROTO_ClearQueue done [15:29:06]KKMCreateOFDPacket [15:29:06]OFDProtocolAddRootSTLVToBuf [15:29:06]FM_MakeSignedData [15:29:06]FM_MakeSignedData [15:29:06]SAM_PROTO_SignData [15:29:06]wFMCommunicate request_size=4 [15:29:06]MH_SAM_APDU [15:29:06]CAPDU: 80 0D 01 02 [15:29:06]Write to MH i2c: E2 08 00 FC 06 80 0D 01 02 00 00 00 00 7B [15:29:06]Write i2c OK [15:29:06]MH_I2C_Read... [15:29:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:06]Read from MH i2c: E2 [15:29:06]MH_I2C_Read... [15:29:06]Read from MH i2c: E2 03 00 [15:29:06]MH_I2C_Read... [15:29:06]Read from MH i2c: E2 03 00 FC 06 00 90 00 76 [15:29:06]RAPDU: 90 00 [15:29:06]wFMCommunicate OK [15:29:06]wFMCommunicate request_size=255 [15:29:06]MH_SAM_APDU [15:29: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 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 64 00 00 00 F4 03 04 00 42 83 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A6 [15:29:06]Write to MH i2c: E2 02 01 FD 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 64 00 00 00 F4 03 04 00 42 83 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A6 00 00 4C [15:29:06]Write i2c OK [15:29:06]MH_I2C_Read... [15:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:07]Read from MH i2c: E2 [15:29:07]MH_I2C_Read... [15:29:07]Read from MH i2c: E2 03 00 [15:29:07]MH_I2C_Read... [15:29:07]Read from MH i2c: E2 03 00 FD 06 00 90 00 77 [15:29:07]RAPDU: 90 00 [15:29:07]wFMCommunicate OK [15:29:07]wFMCommunicate request_size=10 [15:29:07]MH_SAM_APDU [15:29:07]CAPDU: 80 0D 02 02 05 67 99 6A 1D 1F [15:29:07]Write to MH i2c: E2 0D 00 FE 06 80 0D 02 02 05 00 67 99 6A 1D 1F 00 00 2E [15:29:07]Write i2c OK [15:29:07]MH_I2C_Read... [15:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:07]Read from MH i2c: E2 [15:29:07]MH_I2C_Read... [15:29:07]Read from MH i2c: E2 03 00 [15:29:07]MH_I2C_Read... [15:29:07]Read from MH i2c: E2 03 00 FE 06 00 90 00 78 [15:29:07]RAPDU: 90 00 [15:29:07]wFMCommunicate OK [15:29:07]wFMCommunicate request_size=4 [15:29:07]MH_SAM_APDU [15:29:07]CAPDU: 80 0D 03 02 [15:29:07]Write to MH i2c: E2 08 00 FF 06 80 0D 03 02 00 00 00 00 80 [15:29:07]Write i2c OK [15:29:07]MH_I2C_Read... [15:29:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:07]Read from MH i2c: E2 [15:29:07]MH_I2C_Read... [15:29:07]Read from MH i2c: E2 0B 00 [15:29:07]MH_I2C_Read... [15:29:07]Read from MH i2c: E2 0B 00 FF 06 00 C9 C2 E7 4D 3C E8 42 EC 90 00 92 [15:29:07]RAPDU: C9 C2 E7 4D 3C E8 42 EC 90 00 [15:29:07]wFMCommunicate OK [15:29:07]SAM_PROTO_SignData done [15:29:07]FM_MakeSignedData done [15:29:07]CreateOFDProtocolMessage [15:29:07]wFMCommunicate request_size=4 [15:29:07]MH_SAM_APDU [15:29:07]CAPDU: 80 11 00 00 [15:29:07]Write to MH i2c: E2 08 00 00 07 80 11 00 00 00 00 00 00 81 [15:29:07]Write i2c OK [15:29:07]MH_I2C_Read... [15:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:07]Read from MH i2c: E2 [15:29:07]MH_I2C_Read... [15:29:07]Read from MH i2c: E2 17 00 [15:29:07]MH_I2C_Read... [15:29:07]Read from MH i2c: E2 17 00 00 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D7 [15:29: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:29:07]wFMCommunicate OK [15:29:07]CreateOFDProtocolMessage done [15:29:07]OFDSenderStorePacket 67093 [15:29:07]StoreOFDPacket docnum=67093 [15:29: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 FA 1A 07 01 39 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 64 00 00 00 F4 03 04 00 42 83 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A6 67 99 6A 1D 1F C9 C2 E7 4D 3C E8 42 EC [15:29:07]CheckFolder [15:29:07]dirname=/storage/ofd_packets [15:29:07]CheckFolder done [15:29:07]ProducePacketName [15:29:07]name=ofd_packets/00067093 [15:29:07]NVStorageSaveData ofd_packets/00067093 [15:29:07]File name is /storage/ofd_packets/00067093 [15:29:07]Write 301 bytes [15:29:07]NVStorageSaveData done [15:29:07]OFDSenderStorePacket done [15:29:07]KKMCreateOFDPacket done [15:29:07]NVStorageSaveData kkm_last_timestamp [15:29:07]File name is /storage/kkm_last_timestamp [15:29:07]Write 4 bytes [15:29:07]NVStorageSaveData done [15:29:07]ExternCall_PrintAddStr [15:29:07]wPrintStart [15:29:07]Write to MH i2c: 01 00 00 01 07 08 [15:29:07]Write i2c OK [15:29:07]MH_I2C_Read... [15:29:07]Read from MH i2c: 01 [15:29:07]MH_I2C_Read... [15:29:07]Read from MH i2c: 01 07 00 [15:29:07]MH_I2C_Read... [15:29:07]Read from MH i2c: 01 07 00 01 07 00 00 00 00 00 FF 0F 1D [15:29:07]RasterBufferAndPrint [15:29:07]line Счет N : (1)506977 [15:29:07]line ИНН: 02508201610067 [15:29:07]line Контрольно-Кассовый Чек [15:29:07]line ПРОДАЖА [15:29:07]line ТРК (МРК, ГНК) : 43 [15:29:07]line Товар: 2710124130 [15:29:07]line Аи-92-К-5 [15:29:07]line 14.980 * 66.80 [15:29:07]line = 1000.66 [15:29:07]line НДС 12% НСП 1% [15:29:07]line > о реализуемом товаре [15:29:07]line ОКРУГЛЕНИЕ: -0.66 [15:29:07]line ИТОГО: 1000.00 [15:29:07]line Внесено: 1000.00 [15:29:07]line СДАЧА: 0.00 [15:29:07]line НСП 1% : 8.85 [15:29:07]line НДС 12% : 106.26 [15:29:07]line Наличными: 1000.00 [15:29:07]line Безнал.: 0.00 [15:29:07]line Место: АЗС № 91 "Партнер Нефть" [15:29:07]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:29:07]line СНО: Общий режим [15:29:07]line Чек 100 14.05.2024 15:29 [15:29:07]line Смена: 355 ФФД: 1.0 [15:29:07]line ЗНМ: 0300000119 [15:29:07]line РНМ: 0000000000091845 [15:29:07]line Версия ККМ: 001 [15:29:07]line ФМ: 0000000000871829 [15:29:07]line ФД: 67093 [15:29:07]line ФПД: 182963885710623 [15:29:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T152906&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67093&fm=182963885710623&tin=02508201610067®Number=0000000000091845&sum=100000 [15:29:07]OFD Sender: Processing packet 67093 [packets to send 35, broken 34] [15:29:07]ProducePacketName [15:29:07]name=ofd_packets/00067093 [15:29:07]OFD Sender: To server: pG, [15:29:07]CommunicateWithHost lk.salyk.kg:30040 [15:29:07]ConnectInit lk.salyk.kg [15:29:07]written 0, free lines is 4095 [15:29:07]Connected sock=9 [15:29: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 FA 1A 07 01 39 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 64 00 00 00 F4 03 04 00 42 83 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A6 67 99 6A 1D 1F C9 C2 E7 4D 3C E8 42 EC [15:29: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 C2 B7 47 00 7B 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 15 06 01 00 F4 03 04 00 22 2B 43 66 B6 04 01 00 00 52 28 9E FA C9 2F 28 2E [15:29:07]CommunicateWithHost err = 0 [15:29:07]CheckOFDResponse [15:29:07]1017 (14) - 77093643461234 [15:29:07]1041 (16) - 0000000000871829 [15:29:07]1040 (4) - 67093 [15:29:07]1012 (4) - 14.05.2024 09:13 [15:29:07]1206 (1) - 0 [15:29:07]OFD Sender: Remove packet 67093 [15:29:07]ProducePacketName [15:29:07]name=ofd_packets/00067093 [15:29:07]NVStorageDeleteData [15:29:08]Write to MH i2c: 01 00 00 2B 07 32 [15:29:08]Write i2c OK [15:29:08]MH_I2C_Read... [15:29:08]Read from MH i2c: 01 [15:29:08]MH_I2C_Read... [15:29:08]Read from MH i2c: 01 07 00 [15:29:08]MH_I2C_Read... [15:29:08]Read from MH i2c: 01 07 00 2B 07 00 00 00 00 00 DE 0C 23 [15:29:08]RasterBufferAndPrint [15:29:08]line [15:29:08]line [15:29:08]line [15:29:08]line [15:29:08]line [15:29:08]written 0, free lines is 3300 [15:29:08]MH_Cut [15:29:08]Write to MH i2c: D1 01 00 32 07 01 0B [15:29:08]Write i2c OK [15:29:08]MH_I2C_Read... [15:29:08]Read from MH i2c: D1 [15:29:08]MH_I2C_Read... [15:29:08]Read from MH i2c: D1 01 00 [15:29:08]MH_I2C_Read... [15:29:08]Read from MH i2c: D1 01 00 32 07 00 0A [15:29:08]Write to MH i2c: 01 00 00 33 07 3A [15:29:08]Write i2c OK [15:29:08]MH_I2C_Read... [15:29:08]OFD Sender: No OFD packet to send [15:29:08]*** Cut start [15:29:08]*** Purtial cut [15:29:08]*** Stage 1: CUTSNS_PIN = 1 [15:29:09]Read from MH i2c: 01 [15:29:09]MH_I2C_Read... [15:29:09]*** Stop cut motor [15:29:09]*** Cut end [15:29:09]Read from MH i2c: 01 07 00 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: 01 07 00 33 07 00 00 00 00 00 FF 0F 4F [15:29:09]process_action close_receipt done [15:29:09]requested_data is exist [15:29:09]produce_requested_data [15:29:09]requested_item fm.sn is exist - process it [15:29:09]wFMCommunicate request_size=4 [15:29:09]MH_SAM_APDU [15:29:09]CAPDU: 80 11 00 00 [15:29:09]Write to MH i2c: E2 08 00 34 07 80 11 00 00 00 00 00 00 B5 [15:29:09]Write i2c OK [15:29:09]MH_I2C_Read... [15:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:09]Read from MH i2c: E2 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: E2 17 00 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: E2 17 00 34 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0B [15:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:29:09]wFMCommunicate OK [15:29:09]requested_item fd.num is exist - process it [15:29:09]SAM_PROTO_GetFieldsCounters [15:29:09]wFMCommunicate request_size=4 [15:29:09]MH_SAM_APDU [15:29:09]CAPDU: 80 13 00 00 [15:29:09]Write to MH i2c: E2 08 00 35 07 80 13 00 00 00 00 00 00 B8 [15:29:09]Write i2c OK [15:29:09]MH_I2C_Read... [15:29:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:09]Read from MH i2c: E2 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: E2 62 00 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: E2 62 00 35 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 15 06 01 00 0E 04 04 00 63 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 8A [15:29: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 15 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:09]wFMCommunicate OK [15:29:09]SAM_PROTO_GetFieldsCounters done [15:29:09]requested_item shift.num is exist - process it [15:29:09]requested_item shift.opened is exist - process it [15:29:09]req_shift_opened [15:29:09]FM_GetShiftState [15:29:09]SAM_PROTO_GetShiftState [15:29:09]wFMCommunicate request_size=4 [15:29:09]MH_SAM_APDU [15:29:09]CAPDU: 80 13 01 00 [15:29:09]Write to MH i2c: E2 08 00 36 07 80 13 01 00 00 00 00 00 BA [15:29:09]Write i2c OK [15:29:09]MH_I2C_Read... [15:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:09]Read from MH i2c: E2 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: E2 0E 00 [15:29:09]MH_I2C_Read... [15:29:09]Read from MH i2c: E2 0E 00 36 07 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 82 [15:29:09]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:29:09]wFMCommunicate OK [15:29:09]SAM_PROTO_GetShiftState done [15:29:09]FM_GetShiftState done [15:29:09]req_shift_opened done [15:29:09]requested_item shift.open_date is exist - process it [15:29:09]req_shift_open_date [15:29:09]req_shift_open_date done [15:29:09]produce_requested_data done [15:29:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67093,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [15:29:09]process_action_free close_receipt [15:29:09]json_value_free [15:29:09]json_value_free done [15:29:09]process_json_proto returns [15:29:09]Send response to host [15:29:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67093,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [15:29:09]free response buf [15:29:09]execute_script done [15:29:09]execute_script returns [15:29:09]free content buf [15:29:09]Sock 10.Close socket [15:29:09]Sock 10.Thread stoped [15:29:13]OFD Sender: No OFD packet to send [15:29:18]OFD Sender: No OFD packet to send [15:29:23]OFD Sender: No OFD packet to send [15:29:28]OFD Sender: No OFD packet to send [15:29:33]OFD Sender: No OFD packet to send [15:29:38]OFD Sender: No OFD packet to send [15:29:43]OFD Sender: No OFD packet to send [15:29:48]OFD Sender: No OFD packet to send [15:29:53]OFD Sender: No OFD packet to send [15:29:58]OFD Sender: No OFD packet to send [15:30:03]OFD Sender: No OFD packet to send [15:30:08]OFD Sender: No OFD packet to send [15:30:13]OFD Sender: No OFD packet to send [15:30:18]OFD Sender: No OFD packet to send [15:30:23]OFD Sender: No OFD packet to send [15:30:28]OFD Sender: No OFD packet to send [15:30:33]OFD Sender: No OFD packet to send [15:30:38]OFD Sender: No OFD packet to send [15:30:43]OFD Sender: No OFD packet to send [15:30:48]OFD Sender: No OFD packet to send [15:30:53]OFD Sender: No OFD packet to send [15:30:58]OFD Sender: No OFD packet to send [15:31:03]OFD Sender: No OFD packet to send [15:31:08]OFD Sender: No OFD packet to send [15:31:13]OFD Sender: No OFD packet to send [15:31:18]OFD Sender: No OFD packet to send [15:31:23]OFD Sender: No OFD packet to send [15:31:28]OFD Sender: No OFD packet to send [15:31:33]OFD Sender: No OFD packet to send [15:31:38]OFD Sender: No OFD packet to send [15:31:43]OFD Sender: No OFD packet to send [15:31:48]OFD Sender: No OFD packet to send [15:31:53]OFD Sender: No OFD packet to send [15:31:56]accept exits with 7 [15:31:56]New connection [15:31:56]New thread 3067628900 created [15:31:56]Thread 3067485540 joined [15:31:56]Waiting for new connection... [15:31:56] Sock 7.Parse request [15:31:56]Sock 7.Check first char [15:31:56]Sock 7.First char is OK [15:31:56]request: POST /json_proto HTTP/1.0 [15:31:56]Method: POST [15:31:56]URL: /json_proto [15:31:56]Method is POST - this is cgi request [15:31:56]url: /json_proto [15:31:56]query_string will be loaded in cgi processing [15:31:56]execute_cgi json_proto POST (null) [15:31:56]execute_cgi path=json_proto method=POST [15:31:56]POST find Content-Length [15:31:56]Host: 172.17.41.195:8080 [15:31:56]Content-Length: 800 [15:31:56]Content-Type: application/json [15:31:56] [15:31:56]POST finish read [15:31:56]Found Content-Length = 800 [15:31:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 53.550, "sum" : 4000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:56]execute_script... [15:31: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)506978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 53.550, "sum" : 4000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:56]POST & json_proto [15:31:56]process_json_proto [15:31:56]json parsed OK: [15:31:56]protocol is kg_v1.0 [15:31:56]action value=close_receipt [15:31:56]process_action close_receipt [15:31:56]cmd_close_receipt [15:31:56]MH_GetDate [15:31:56]Write to MH i2c: F0 00 00 37 07 2D [15:31:56]Write i2c OK [15:31:56]MH_I2C_Read... [15:31:56]Read from MH i2c: F0 [15:31:56]MH_I2C_Read... [15:31:56]Read from MH i2c: F0 09 00 [15:31:56]MH_I2C_Read... [15:31:56]Read from MH i2c: F0 09 00 37 07 00 ED 83 43 66 FC 21 6F 64 3F [15:31:56]GetLastDocTimeStamp 1715700546 [15:31:56]current date 1715700717 [15:31:56]FM_GetShiftState [15:31:56]SAM_PROTO_GetShiftState [15:31:56]wFMCommunicate request_size=4 [15:31:56]MH_SAM_APDU [15:31:56]CAPDU: 80 13 01 00 [15:31:56]Write to MH i2c: E2 08 00 38 07 80 13 01 00 00 00 00 00 BC [15:31:56]Write i2c OK [15:31:56]MH_I2C_Read... [15:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:56]Read from MH i2c: E2 [15:31:56]MH_I2C_Read... [15:31:56]Read from MH i2c: E2 0E 00 [15:31:56]MH_I2C_Read... [15:31:56]Read from MH i2c: E2 0E 00 38 07 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 84 [15:31:56]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:31:56]wFMCommunicate OK [15:31:56]SAM_PROTO_GetShiftState done [15:31:56]FM_GetShiftState done [15:31:56]opened in 1715646054 [15:31:56]opened+sec_in_day 1715732454 [15:31:56]quantity*price = 400018 [15:31:56]sum+1 = 400020 [15:31:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.19 НСП 1% : 35.40 НДС 12% : 424.80 Наличными: 0.00 Безнал.: 4000.19 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 101 14.05.2024 15:31 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67094 ФПД: 10851423182856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T153157&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67094&fm=10851423182856&tin=02508201610067®Number=0000000000091845&sum=400019 [15:31:58]StoreToDocumentArchive [15:31:58]shift 355 fd 67094 [15:31:58]save to /storage/0355/doc_00067094 [15:31:58]save last doc name /storage/0355/doc_00067094 to /storage/kkm_last_doc_name [15:31:58]save OK [15:31:58]Clear old archive folders... [15:31:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:31:58]tlvbuf is 00831B10 [15:31:58]SAM_PROTO_ClearQueue [15:31:58]wFMCommunicate request_size=4 [15:31:58]MH_SAM_APDU [15:31:58]CAPDU: 80 09 00 00 [15:31:58]Write to MH i2c: E2 08 00 45 07 80 09 00 00 00 00 00 00 BE [15:31:58]Write i2c OK [15:31:58]MH_I2C_Read... [15:31:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:58]Read from MH i2c: E2 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 03 00 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 03 00 45 07 00 90 00 C0 [15:31:58]RAPDU: 90 00 [15:31:58]wFMCommunicate OK [15:31:58]SAM_PROTO_ClearQueue done [15:31:58]KKMCreateOFDPacket [15:31:58]OFDProtocolAddRootSTLVToBuf [15:31:58]FM_MakeSignedData [15:31:58]FM_MakeSignedData [15:31:58]SAM_PROTO_SignData [15:31:58]wFMCommunicate request_size=4 [15:31:58]MH_SAM_APDU [15:31:58]CAPDU: 80 0D 01 02 [15:31:58]Write to MH i2c: E2 08 00 46 07 80 0D 01 02 00 00 00 00 C6 [15:31:58]Write i2c OK [15:31:58]MH_I2C_Read... [15:31:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:58]Read from MH i2c: E2 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 03 00 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 03 00 46 07 00 90 00 C1 [15:31:58]RAPDU: 90 00 [15:31:58]wFMCommunicate OK [15:31:58]wFMCommunicate request_size=255 [15:31:58]MH_SAM_APDU [15:31:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 65 00 00 00 F4 03 04 00 ED 83 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 09 DE 8B 39 [15:31:58]Write to MH i2c: E2 02 01 47 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 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 65 00 00 00 F4 03 04 00 ED 83 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 09 DE 8B 39 00 00 AB [15:31:58]Write i2c OK [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 [15:31:58]MH_I2C_Read... [15:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:58]Read from MH i2c: E2 03 00 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 03 00 47 07 00 90 00 C2 [15:31:58]RAPDU: 90 00 [15:31:58]wFMCommunicate OK [15:31:58]wFMCommunicate request_size=7 [15:31:58]MH_SAM_APDU [15:31:58]CAPDU: 80 0D 02 02 02 60 08 [15:31:58]Write to MH i2c: E2 0A 00 48 07 80 0D 02 02 02 00 60 08 00 00 35 [15:31:58]Write i2c OK [15:31:58]MH_I2C_Read... [15:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:58]Read from MH i2c: E2 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 03 00 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 03 00 48 07 00 90 00 C3 [15:31:58]RAPDU: 90 00 [15:31:58]wFMCommunicate OK [15:31:58]wFMCommunicate request_size=4 [15:31:58]MH_SAM_APDU [15:31:58]CAPDU: 80 0D 03 02 [15:31:58]Write to MH i2c: E2 08 00 49 07 80 0D 03 02 00 00 00 00 CB [15:31:58]Write i2c OK [15:31:58]MH_I2C_Read... [15:31:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:58]Read from MH i2c: E2 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 0B 00 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 0B 00 49 07 00 F2 6E DF B3 88 7C EC CD 90 00 7B [15:31:58]RAPDU: F2 6E DF B3 88 7C EC CD 90 00 [15:31:58]wFMCommunicate OK [15:31:58]SAM_PROTO_SignData done [15:31:58]FM_MakeSignedData done [15:31:58]CreateOFDProtocolMessage [15:31:58]wFMCommunicate request_size=4 [15:31:58]MH_SAM_APDU [15:31:58]CAPDU: 80 11 00 00 [15:31:58]Write to MH i2c: E2 08 00 4A 07 80 11 00 00 00 00 00 00 CB [15:31:58]Write i2c OK [15:31:58]MH_I2C_Read... [15:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:58]Read from MH i2c: E2 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 17 00 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: E2 17 00 4A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 21 [15: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 [15:31:58]wFMCommunicate OK [15:31:58]CreateOFDProtocolMessage done [15:31:58]OFDSenderStorePacket 67094 [15:31:58]StoreOFDPacket docnum=67094 [15:31: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 0C 01 00 00 55 EF 04 01 40 BB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 65 00 00 00 F4 03 04 00 ED 83 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 09 DE 8B 39 60 08 F2 6E DF B3 88 7C EC CD [15:31:58]CheckFolder [15:31:58]dirname=/storage/ofd_packets [15:31:58]CheckFolder done [15:31:58]ProducePacketName [15:31:58]name=ofd_packets/00067094 [15:31:58]NVStorageSaveData ofd_packets/00067094 [15:31:58]File name is /storage/ofd_packets/00067094 [15:31:58]Write 298 bytes [15:31:58]NVStorageSaveData done [15:31:58]OFDSenderStorePacket done [15:31:58]KKMCreateOFDPacket done [15:31:58]NVStorageSaveData kkm_last_timestamp [15:31:58]File name is /storage/kkm_last_timestamp [15:31:58]Write 4 bytes [15:31:58]NVStorageSaveData done [15:31:58]ExternCall_PrintAddStr [15:31:58]wPrintStart [15:31:58]Write to MH i2c: 01 00 00 4B 07 52 [15:31:58]Write i2c OK [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: 01 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: 01 07 00 [15:31:58]MH_I2C_Read... [15:31:58]Read from MH i2c: 01 07 00 4B 07 00 00 00 00 00 FF 0F 67 [15:31:58]RasterBufferAndPrint [15:31:58]line Счет N : (1)506978 [15:31:58]line ИНН: 02508201610067 [15:31:58]line Контрольно-Кассовый Чек [15:31:58]line ПРОДАЖА [15:31:58]line ТРК (МРК, ГНК) : 31 [15:31:58]line Товар: 2710194210 [15:31:58]line ДТ-К-5 [15:31:58]line 53.550 * 74.70 [15:31:58]line = 4000.19 [15:31:58]line НДС 12% НСП 1% [15:31:58]line > о реализуемом товаре [15:31:58]line ИТОГО: 4000.19 [15:31:58]line НСП 1% : 35.40 [15:31:58]line НДС 12% : 424.80 [15:31:58]line Наличными: 0.00 [15:31:58]line Безнал.: 4000.19 [15:31:58]line Место: АЗС № 91 "Партнер Нефть" [15:31:58]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:31:58]line СНО: Общий режим [15:31:58]line Чек 101 14.05.2024 15:31 [15:31:58]line Смена: 355 ФФД: 1.0 [15:31:58]line ЗНМ: 0300000119 [15:31:58]line РНМ: 0000000000091845 [15:31:58]line Версия ККМ: 001 [15:31:58]line Платежная система: O! деньги [15:31:58]line ФМ: 0000000000871829 [15:31:58]line ФД: 67094 [15:31:58]line ФПД: 10851423182856 [15:31:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T153157&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67094&fm=10851423182856&tin=02508201610067®Number=0000000000091845&sum=400019 [15:31:58]OFD Sender: Processing packet 67094 [packets to send 35, broken 34] [15:31:58]ProducePacketName [15:31:58]name=ofd_packets/00067094 [15:31:58]OFD Sender: To server: pG, [15:31:58]CommunicateWithHost lk.salyk.kg:30040 [15:31:58]ConnectInit lk.salyk.kg [15:31:58]written 0, free lines is 4095 [15:31:59]Connected sock=10 [15:31:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 55 EF 04 01 40 BB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 65 00 00 00 F4 03 04 00 ED 83 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 09 DE 8B 39 60 08 F2 6E DF B3 88 7C EC CD [15:31: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 1E 97 47 00 68 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 16 06 01 00 F4 03 04 00 CD 2B 43 66 B6 04 01 00 00 ED 3E 2C FA A2 2D 6F 08 [15:31:59]CommunicateWithHost err = 0 [15:31:59]CheckOFDResponse [15:31:59]1017 (14) - 77093643461234 [15:31:59]1041 (16) - 0000000000871829 [15:31:59]1040 (4) - 67094 [15:31:59]1012 (4) - 14.05.2024 09:15 [15:31:59]1206 (1) - 0 [15:31:59]OFD Sender: Remove packet 67094 [15:31:59]ProducePacketName [15:31:59]name=ofd_packets/00067094 [15:31:59]NVStorageDeleteData [15:31:59]Write to MH i2c: 01 00 00 74 07 7B [15:31:59]Write i2c OK [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: 01 [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: 01 07 00 [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: 01 07 00 74 07 00 00 00 00 00 DE 0C 6C [15:31:59]RasterBufferAndPrint [15:31:59]line [15:31:59]line [15:31:59]line [15:31:59]line [15:31:59]line [15:31:59]written 0, free lines is 3298 [15:31:59]MH_Cut [15:31:59]Write to MH i2c: D1 01 00 7B 07 01 54 [15:31:59]Write i2c OK [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: D1 [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: D1 01 00 [15:31:59]MH_I2C_Read... [15:31:59]Read from MH i2c: D1 01 00 7B 07 00 53 [15:31:59]Write to MH i2c: 01 00 00 7C 07 83 [15:31:59]Write i2c OK [15:31:59]MH_I2C_Read... [15:31:59]OFD Sender: No OFD packet to send [15:32:00]*** Cut start [15:32:00]*** Purtial cut [15:32:00]*** CUTSNS_PIN = 0 [15:32:00]*** Stage 1: CUTSNS_PIN = 1 [15:32:02]Read from MH i2c: 01 [15:32:02]MH_I2C_Read... [15:32:02]*** Stop cut motor [15:32:02]*** Cut end [15:32:02]Read from MH i2c: 01 07 00 [15:32:02]MH_I2C_Read... [15:32:02]Read from MH i2c: 01 07 00 7C 07 00 00 00 00 00 FF 0F 98 [15:32:02]process_action close_receipt done [15:32:02]requested_data is exist [15:32:02]produce_requested_data [15:32:02]requested_item fm.sn is exist - process it [15:32:02]wFMCommunicate request_size=4 [15:32:02]MH_SAM_APDU [15:32:02]CAPDU: 80 11 00 00 [15:32:02]Write to MH i2c: E2 08 00 7D 07 80 11 00 00 00 00 00 00 FE [15:32:02]Write i2c OK [15:32:02]MH_I2C_Read... [15:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:02]Read from MH i2c: E2 [15:32:02]MH_I2C_Read... [15:32:02]Read from MH i2c: E2 17 00 [15:32:02]MH_I2C_Read... [15:32:02]Read from MH i2c: E2 17 00 7D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 54 [15:32: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:32:02]wFMCommunicate OK [15:32:02]requested_item fd.num is exist - process it [15:32:02]SAM_PROTO_GetFieldsCounters [15:32:02]wFMCommunicate request_size=4 [15:32:02]MH_SAM_APDU [15:32:02]CAPDU: 80 13 00 00 [15:32:02]Write to MH i2c: E2 08 00 7E 07 80 13 00 00 00 00 00 00 01 [15:32:02]Write i2c OK [15:32:02]MH_I2C_Read... [15:32:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:02]Read from MH i2c: E2 [15:32:02]MH_I2C_Read... [15:32:02]Read from MH i2c: E2 62 00 [15:32:02]MH_I2C_Read... [15:32:02]Read from MH i2c: E2 62 00 7E 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 16 06 01 00 0E 04 04 00 63 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 D7 [15:32: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 16 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:32:02]wFMCommunicate OK [15:32:02]SAM_PROTO_GetFieldsCounters done [15:32:02]requested_item shift.num is exist - process it [15:32:02]requested_item shift.opened is exist - process it [15:32:02]req_shift_opened [15:32:02]FM_GetShiftState [15:32:02]SAM_PROTO_GetShiftState [15:32:02]wFMCommunicate request_size=4 [15:32:02]MH_SAM_APDU [15:32:02]CAPDU: 80 13 01 00 [15:32:02]Write to MH i2c: E2 08 00 7F 07 80 13 01 00 00 00 00 00 03 [15:32:02]Write i2c OK [15:32:02]MH_I2C_Read... [15:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:02]Read from MH i2c: E2 [15:32:02]MH_I2C_Read... [15:32:02]Read from MH i2c: E2 0E 00 [15:32:02]MH_I2C_Read... [15:32:02]Read from MH i2c: E2 0E 00 7F 07 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 CB [15:32:02]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:32:02]wFMCommunicate OK [15:32:02]SAM_PROTO_GetShiftState done [15:32:02]FM_GetShiftState done [15:32:02]req_shift_opened done [15:32:02]requested_item shift.open_date is exist - process it [15:32:02]req_shift_open_date [15:32:02]req_shift_open_date done [15:32:02]produce_requested_data done [15:32:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67094,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [15:32:02]process_action_free close_receipt [15:32:02]json_value_free [15:32:02]json_value_free done [15:32:02]process_json_proto returns [15:32:02]Send response to host [15:32:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67094,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [15:32:02]free response buf [15:32:02]execute_script done [15:32:02]execute_script returns [15:32:02]free content buf [15:32:02]Sock 7.Close socket [15:32:02]Sock 7.Thread stoped [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [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:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]accept exits with 9 [15:35:39]New connection [15:35:39]New thread 3067485540 created [15:35:39]Thread 3067628900 joined [15:35:39]Waiting for new connection... [15:35:39] Sock 9.Parse request [15:35:39]Sock 9.Check first char [15:35:39]Sock 9.First char is OK [15:35:39]request: POST /json_proto HTTP/1.0 [15:35:39]Method: POST [15:35:39]URL: /json_proto [15:35:39]Method is POST - this is cgi request [15:35:39]url: /json_proto [15:35:39]query_string will be loaded in cgi processing [15:35:39]execute_cgi json_proto POST (null) [15:35:39]execute_cgi path=json_proto method=POST [15:35:39]POST find Content-Length [15:35:39]Host: 172.17.41.195:8080 [15:35:39]Content-Length: 800 [15:35:39]Content-Type: application/json [15:35:39] [15:35:39]POST finish read [15:35:39]Found Content-Length = 800 [15:35:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506979", "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" : 66.940, "sum" : 5000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:39]execute_script... [15:35: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)506979", "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" : 66.940, "sum" : 5000.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:39]POST & json_proto [15:35:39]process_json_proto [15:35:39]json parsed OK: [15:35:39]protocol is kg_v1.0 [15:35:39]action value=close_receipt [15:35:39]process_action close_receipt [15:35:39]cmd_close_receipt [15:35:39]MH_GetDate [15:35:39]Write to MH i2c: F0 00 00 80 07 76 [15:35:39]Write i2c OK [15:35:39]MH_I2C_Read... [15:35:39]Read from MH i2c: F0 [15:35:39]MH_I2C_Read... [15:35:39]Read from MH i2c: F0 09 00 [15:35:39]MH_I2C_Read... [15:35:39]Read from MH i2c: F0 09 00 80 07 00 CB 84 43 66 FC 21 6F 64 67 [15:35:39]GetLastDocTimeStamp 1715700717 [15:35:39]current date 1715700939 [15:35:39]FM_GetShiftState [15:35:39]SAM_PROTO_GetShiftState [15:35:39]wFMCommunicate request_size=4 [15:35:39]MH_SAM_APDU [15:35:39]CAPDU: 80 13 01 00 [15:35:39]Write to MH i2c: E2 08 00 81 07 80 13 01 00 00 00 00 00 05 [15:35:39]Write i2c OK [15:35:39]MH_I2C_Read... [15:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:39]Read from MH i2c: E2 [15:35:39]MH_I2C_Read... [15:35:39]Read from MH i2c: E2 0E 00 [15:35:39]MH_I2C_Read... [15:35:39]Read from MH i2c: E2 0E 00 81 07 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 CD [15:35:39]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:35:39]wFMCommunicate OK [15:35:39]SAM_PROTO_GetShiftState done [15:35:39]FM_GetShiftState done [15:35:39]opened in 1715646054 [15:35:39]opened+sec_in_day 1715732454 [15:35:39]quantity*price = 500041 [15:35:39]sum+1 = 500043 [15:35:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.42 НСП 1% : 44.25 НДС 12% : 531.02 Наличными: 0.00 Безнал.: 5000.42 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 102 14.05.2024 15:35 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67095 ФПД: 72427840682526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T153539&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67095&fm=72427840682526&tin=02508201610067®Number=0000000000091845&sum=500042 [15:35:40]StoreToDocumentArchive [15:35:40]shift 355 fd 67095 [15:35:40]save to /storage/0355/doc_00067095 [15:35:40]save last doc name /storage/0355/doc_00067095 to /storage/kkm_last_doc_name [15:35:40]save OK [15:35:40]Clear old archive folders... [15:35:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:35:40]tlvbuf is B6E4D830 [15:35:40]SAM_PROTO_ClearQueue [15:35:40]wFMCommunicate request_size=4 [15:35:40]MH_SAM_APDU [15:35:40]CAPDU: 80 09 00 00 [15:35:40]Write to MH i2c: E2 08 00 8E 07 80 09 00 00 00 00 00 00 07 [15:35:40]Write i2c OK [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: E2 [15:35:40]MH_I2C_Read... [15:35:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:40]Read from MH i2c: E2 03 00 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: E2 03 00 8E 07 00 90 00 09 [15:35:40]RAPDU: 90 00 [15:35:40]wFMCommunicate OK [15:35:40]SAM_PROTO_ClearQueue done [15:35:40]KKMCreateOFDPacket [15:35:40]OFDProtocolAddRootSTLVToBuf [15:35:40]FM_MakeSignedData [15:35:40]FM_MakeSignedData [15:35:40]SAM_PROTO_SignData [15:35:40]wFMCommunicate request_size=4 [15:35:40]MH_SAM_APDU [15:35:40]CAPDU: 80 0D 01 02 [15:35:40]Write to MH i2c: E2 08 00 8F 07 80 0D 01 02 00 00 00 00 0F [15:35:40]Write i2c OK [15:35:40]MH_I2C_Read... [15:35:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:40]Read from MH i2c: E2 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: E2 03 00 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: E2 03 00 8F 07 00 90 00 0A [15:35:40]RAPDU: 90 00 [15:35:40]wFMCommunicate OK [15:35:40]wFMCommunicate request_size=255 [15:35:40]MH_SAM_APDU [15:35: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 7C 05 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4A A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 CB 84 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 41 DF 6B B7 [15:35:40]Write to MH i2c: E2 02 01 90 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 7C 05 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4A A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 CB 84 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 41 DF 6B B7 00 00 CD [15:35:40]Write i2c OK [15:35:40]MH_I2C_Read... [15:35:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:40]Read from MH i2c: E2 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: E2 03 00 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: E2 03 00 90 07 00 90 00 0B [15:35:40]RAPDU: 90 00 [15:35:40]wFMCommunicate OK [15:35:40]wFMCommunicate request_size=7 [15:35:40]MH_SAM_APDU [15:35:40]CAPDU: 80 0D 02 02 02 3A 1E [15:35:40]Write to MH i2c: E2 0A 00 91 07 80 0D 02 02 02 00 3A 1E 00 00 6E [15:35:40]Write i2c OK [15:35:40]MH_I2C_Read... [15:35:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:40]Read from MH i2c: E2 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: E2 03 00 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: E2 03 00 91 07 00 90 00 0C [15:35:40]RAPDU: 90 00 [15:35:40]wFMCommunicate OK [15:35:40]wFMCommunicate request_size=4 [15:35:40]MH_SAM_APDU [15:35:40]CAPDU: 80 0D 03 02 [15:35:40]Write to MH i2c: E2 08 00 92 07 80 0D 03 02 00 00 00 00 14 [15:35:40]Write i2c OK [15:35:40]MH_I2C_Read... [15:35:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:40]Read from MH i2c: E2 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: E2 0B 00 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: E2 0B 00 92 07 00 31 69 E0 EF 44 EC 99 8C 90 00 D3 [15:35:40]RAPDU: 31 69 E0 EF 44 EC 99 8C 90 00 [15:35:40]wFMCommunicate OK [15:35:40]SAM_PROTO_SignData done [15:35:40]FM_MakeSignedData done [15:35:40]CreateOFDProtocolMessage [15:35:40]wFMCommunicate request_size=4 [15:35:40]MH_SAM_APDU [15:35:40]CAPDU: 80 11 00 00 [15:35:40]Write to MH i2c: E2 08 00 93 07 80 11 00 00 00 00 00 00 14 [15:35:40]Write i2c OK [15:35:40]MH_I2C_Read... [15:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:40]Read from MH i2c: E2 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: E2 17 00 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: E2 17 00 93 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6A [15:35:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:35:40]wFMCommunicate OK [15:35:40]CreateOFDProtocolMessage done [15:35:40]OFDSenderStorePacket 67095 [15:35:40]StoreOFDPacket docnum=67095 [15:35: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 7B 79 04 01 B6 F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 05 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4A A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 CB 84 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 41 DF 6B B7 3A 1E 31 69 E0 EF 44 EC 99 8C [15:35:40]CheckFolder [15:35:40]dirname=/storage/ofd_packets [15:35:40]CheckFolder done [15:35:40]ProducePacketName [15:35:40]name=ofd_packets/00067095 [15:35:40]NVStorageSaveData ofd_packets/00067095 [15:35:40]File name is /storage/ofd_packets/00067095 [15:35:40]Write 298 bytes [15:35:40]NVStorageSaveData done [15:35:40]OFDSenderStorePacket done [15:35:40]KKMCreateOFDPacket done [15:35:40]NVStorageSaveData kkm_last_timestamp [15:35:40]File name is /storage/kkm_last_timestamp [15:35:40]Write 4 bytes [15:35:40]NVStorageSaveData done [15:35:40]ExternCall_PrintAddStr [15:35:40]wPrintStart [15:35:40]Write to MH i2c: 01 00 00 94 07 9B [15:35:40]Write i2c OK [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: 01 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: 01 07 00 [15:35:40]MH_I2C_Read... [15:35:40]Read from MH i2c: 01 07 00 94 07 00 00 00 00 00 FF 0F B0 [15:35:40]RasterBufferAndPrint [15:35:40]line Счет N : (1)506979 [15:35:40]line ИНН: 02508201610067 [15:35:40]line Контрольно-Кассовый Чек [15:35:40]line ПРОДАЖА [15:35:40]line ТРК (МРК, ГНК) : 11 [15:35:40]line Товар: 2710194210 [15:35:40]line ДТ-К-5 [15:35:40]line 66.940 * 74.70 [15:35:40]line = 5000.42 [15:35:40]line НДС 12% НСП 1% [15:35:40]line > о реализуемом товаре [15:35:40]line ИТОГО: 5000.42 [15:35:40]line НСП 1% : 44.25 [15:35:40]line НДС 12% : 531.02 [15:35:40]line Наличными: 0.00 [15:35:40]line Безнал.: 5000.42 [15:35:40]line Место: АЗС № 91 "Партнер Нефть" [15:35:40]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:35:40]line СНО: Общий режим [15:35:40]line Чек 102 14.05.2024 15:35 [15:35:40]line Смена: 355 ФФД: 1.0 [15:35:40]line ЗНМ: 0300000119 [15:35:40]line РНМ: 0000000000091845 [15:35:40]line Версия ККМ: 001 [15:35:40]line Платежная система: O! деньги [15:35:40]line ФМ: 0000000000871829 [15:35:40]line ФД: 67095 [15:35:40]line ФПД: 72427840682526 [15:35:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T153539&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67095&fm=72427840682526&tin=02508201610067®Number=0000000000091845&sum=500042 [15:35:41]OFD Sender: Processing packet 67095 [packets to send 35, broken 34] [15:35:41]ProducePacketName [15:35:41]name=ofd_packets/00067095 [15:35:41]OFD Sender: To server: pG, [15:35:41]CommunicateWithHost lk.salyk.kg:30040 [15:35:41]ConnectInit lk.salyk.kg [15:35:41]written 0, free lines is 4095 [15:35:41]Connected sock=10 [15:35: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 7B 79 04 01 B6 F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7C 05 01 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4A A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 CB 84 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 41 DF 6B B7 3A 1E 31 69 E0 EF 44 EC 99 8C [15:35: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 ED 89 47 00 37 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 06 01 00 F4 03 04 00 AB 2C 43 66 B6 04 01 00 00 20 CC 0B 0B 7E CF 16 70 [15:35:41]CommunicateWithHost err = 0 [15:35:41]CheckOFDResponse [15:35:41]1017 (14) - 77093643461234 [15:35:41]1041 (16) - 0000000000871829 [15:35:41]1040 (4) - 67095 [15:35:41]1012 (4) - 14.05.2024 09:19 [15:35:41]1206 (1) - 0 [15:35:41]OFD Sender: Remove packet 67095 [15:35:41]ProducePacketName [15:35:41]name=ofd_packets/00067095 [15:35:41]NVStorageDeleteData [15:35:41]Write to MH i2c: 01 00 00 BD 07 C4 [15:35:41]Write i2c OK [15:35:41]MH_I2C_Read... [15:35:41]Read from MH i2c: 01 [15:35:41]MH_I2C_Read... [15:35:41]Read from MH i2c: 01 07 00 [15:35:41]MH_I2C_Read... [15:35:41]Read from MH i2c: 01 07 00 BD 07 00 00 00 00 00 DF 0C B6 [15:35:41]RasterBufferAndPrint [15:35:41]line [15:35:41]line [15:35:41]line [15:35:41]line [15:35:41]line [15:35:41]written 0, free lines is 3301 [15:35:41]MH_Cut [15:35:41]Write to MH i2c: D1 01 00 C4 07 01 9D [15:35:41]Write i2c OK [15:35:41]MH_I2C_Read... [15:35:41]Read from MH i2c: D1 [15:35:41]MH_I2C_Read... [15:35:41]Read from MH i2c: D1 01 00 [15:35:41]MH_I2C_Read... [15:35:41]Read from MH i2c: D1 01 00 C4 07 00 9C [15:35:41]Write to MH i2c: 01 00 00 C5 07 CC [15:35:41]Write i2c OK [15:35:41]MH_I2C_Read... [15:35:41]OFD Sender: No OFD packet to send [15:35:42]*** Cut start [15:35:42]*** Purtial cut [15:35:42]*** Stage 1: CUTSNS_PIN = 1 [15:35:42]Read from MH i2c: 01 [15:35:42]MH_I2C_Read... [15:35:42]*** Stop cut motor [15:35:42]*** Cut end [15:35:42]Read from MH i2c: 01 07 00 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: 01 07 00 C5 07 00 00 00 00 00 FF 0F E1 [15:35:42]process_action close_receipt done [15:35:42]requested_data is exist [15:35:42]produce_requested_data [15:35:42]requested_item fm.sn is exist - process it [15:35:42]wFMCommunicate request_size=4 [15:35:42]MH_SAM_APDU [15:35:42]CAPDU: 80 11 00 00 [15:35:42]Write to MH i2c: E2 08 00 C6 07 80 11 00 00 00 00 00 00 47 [15:35:42]Write i2c OK [15:35:42]MH_I2C_Read... [15:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:42]Read from MH i2c: E2 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 17 00 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 17 00 C6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9D [15:35: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:35:42]wFMCommunicate OK [15:35:42]requested_item fd.num is exist - process it [15:35:42]SAM_PROTO_GetFieldsCounters [15:35:42]wFMCommunicate request_size=4 [15:35:42]MH_SAM_APDU [15:35:42]CAPDU: 80 13 00 00 [15:35:42]Write to MH i2c: E2 08 00 C7 07 80 13 00 00 00 00 00 00 4A [15:35:42]Write i2c OK [15:35:42]MH_I2C_Read... [15:35:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:42]Read from MH i2c: E2 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 62 00 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 62 00 C7 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 17 06 01 00 0E 04 04 00 63 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 24 [15:35: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 17 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:35:42]wFMCommunicate OK [15:35:42]SAM_PROTO_GetFieldsCounters done [15:35:42]requested_item shift.num is exist - process it [15:35:42]requested_item shift.opened is exist - process it [15:35:42]req_shift_opened [15:35:42]FM_GetShiftState [15:35:42]SAM_PROTO_GetShiftState [15:35:42]wFMCommunicate request_size=4 [15:35:42]MH_SAM_APDU [15:35:42]CAPDU: 80 13 01 00 [15:35:42]Write to MH i2c: E2 08 00 C8 07 80 13 01 00 00 00 00 00 4C [15:35:42]Write i2c OK [15:35:42]MH_I2C_Read... [15:35:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:42]Read from MH i2c: E2 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 0E 00 [15:35:42]MH_I2C_Read... [15:35:42]Read from MH i2c: E2 0E 00 C8 07 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 14 [15:35:42]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:35:42]wFMCommunicate OK [15:35:42]SAM_PROTO_GetShiftState done [15:35:42]FM_GetShiftState done [15:35:42]req_shift_opened done [15:35:42]requested_item shift.open_date is exist - process it [15:35:42]req_shift_open_date [15:35:42]req_shift_open_date done [15:35:42]produce_requested_data done [15:35:42]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67095,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [15:35:42]process_action_free close_receipt [15:35:42]json_value_free [15:35:42]json_value_free done [15:35:42]process_json_proto returns [15:35:42]Send response to host [15:35:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67095,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [15:35:42]free response buf [15:35:42]execute_script done [15:35:42]execute_script returns [15:35:42]free content buf [15:35:42]Sock 9.Close socket [15:35:42]Sock 9.Thread stoped [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:10]accept exits with 7 [15:39:10]New connection [15:39:10]New thread 3067628900 created [15:39:10]Thread 3067485540 joined [15:39:10]Waiting for new connection... [15:39:10] Sock 7.Parse request [15:39:10]Sock 7.Check first char [15:39:10]Sock 7.First char is OK [15:39:10]request: POST /json_proto HTTP/1.0 [15:39:10]Method: POST [15:39:10]URL: /json_proto [15:39:10]Method is POST - this is cgi request [15:39:10]url: /json_proto [15:39:10]query_string will be loaded in cgi processing [15:39:10]execute_cgi json_proto POST (null) [15:39:10]execute_cgi path=json_proto method=POST [15:39:10]POST find Content-Length [15:39:10]Host: 172.17.41.195:8080 [15:39:10]Content-Length: 1178 [15:39:10]Content-Type: application/json [15:39:10] [15:39:10]POST finish read [15:39:10]Found Content-Length = 1178 [15:39: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)506980\u000A14.05.2024 15:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 12.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 896.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:10]execute_script... [15:39: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)506980\u000A14.05.2024 15:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 12.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 896.40\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:10]POST & json_proto [15:39:10]process_json_proto [15:39:10]json parsed OK: [15:39:10]protocol is kg_v1.0 [15:39:10]action value=print_text [15:39:10]process_action print_text [15:39:10]cmd_print_text [15:39:10]ExternCall_PrintAddStr [15:39:10]wPrintStart [15:39:10]Write to MH i2c: 01 00 00 C9 07 D0 [15:39:10]Write i2c OK [15:39:10]MH_I2C_Read... [15:39:10]Read from MH i2c: 01 [15:39:10]MH_I2C_Read... [15:39:10]Read from MH i2c: 01 07 00 [15:39:10]MH_I2C_Read... [15:39:10]Read from MH i2c: 01 07 00 C9 07 00 00 00 00 00 FF 0F E5 [15:39:10]RasterBufferAndPrint [15:39:10]line *****ТОВАРНЫЙ ЧЕК***** [15:39:10]line АЗС-91 [15:39:10]line Партнер нефть [15:39:10]line 02508201610067 [15:39:10]line Кассир : Адишов И. [15:39:10]line Счет N : (1)506980 [15:39:10]line 14.05.2024 15:21 [15:39:10]line ПРОДАЖА [15:39:10]line ТРК (МРК, ГНК): 41 [15:39:10]line Вид ГСМ : 2710194210 [15:39:10]line ДТ-К-5 [15:39:10]line 12.000 x 74.70 [15:39:10]line ИТОГ: 896.40 [15:39:10]line Тип оплаты: Талоны: Топливная Карта [15:39:10]line 02750 [15:39:10]line ______________________ [15:39:10]line (подпись) [15:39:10]written 0, free lines is 4095 [15:39:10]Write to MH i2c: 01 00 00 DD 07 E4 [15:39:10]Write i2c OK [15:39:10]MH_I2C_Read... [15:39:10]Read from MH i2c: 01 [15:39:10]MH_I2C_Read... [15:39:10]Read from MH i2c: 01 07 00 [15:39:10]MH_I2C_Read... [15:39:10]Read from MH i2c: 01 07 00 DD 07 00 00 00 00 00 0D 0E 06 [15:39:10]RasterBufferAndPrint [15:39:10]line [15:39:10]line [15:39:10]line [15:39:10]line [15:39:10]line [15:39:10]written 0, free lines is 3598 [15:39:10]MH_Cut [15:39:10]Write to MH i2c: D1 01 00 E4 07 01 BD [15:39:10]Write i2c OK [15:39:10]MH_I2C_Read... [15:39:10]Read from MH i2c: D1 [15:39:10]MH_I2C_Read... [15:39:10]Read from MH i2c: D1 01 00 [15:39:10]MH_I2C_Read... [15:39:10]Read from MH i2c: D1 01 00 E4 07 00 BC [15:39:10]Write to MH i2c: 01 00 00 E5 07 EC [15:39:10]Write i2c OK [15:39:10]MH_I2C_Read... [15:39:11]*** Cut start [15:39:11]*** Purtial cut [15:39:11]*** CUTSNS_PIN = 0 [15:39:11]*** Stage 1: CUTSNS_PIN = 1 [15:39:12]OFD Sender: No OFD packet to send [15:39:13]Read from MH i2c: 01 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: 01 07 00 [15:39:13]MH_I2C_Read... [15:39:13]*** Stop cut motor [15:39:13]*** Cut end [15:39:13]Read from MH i2c: 01 07 00 E5 07 00 00 00 00 00 FF 0F 01 [15:39:13]process_action print_text done [15:39:13]requested_data is exist [15:39:13]produce_requested_data [15:39:13]requested_item fm.sn is exist - process it [15:39:13]wFMCommunicate request_size=4 [15:39:13]MH_SAM_APDU [15:39:13]CAPDU: 80 11 00 00 [15:39:13]Write to MH i2c: E2 08 00 E6 07 80 11 00 00 00 00 00 00 67 [15:39:13]Write i2c OK [15:39:13]MH_I2C_Read... [15:39:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:13]Read from MH i2c: E2 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: E2 17 00 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: E2 17 00 E6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BD [15:39:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:39:13]wFMCommunicate OK [15:39:13]requested_item fd.num is exist - process it [15:39:13]SAM_PROTO_GetFieldsCounters [15:39:13]wFMCommunicate request_size=4 [15:39:13]MH_SAM_APDU [15:39:13]CAPDU: 80 13 00 00 [15:39:13]Write to MH i2c: E2 08 00 E7 07 80 13 00 00 00 00 00 00 6A [15:39:13]Write i2c OK [15:39:13]MH_I2C_Read... [15:39:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:13]Read from MH i2c: E2 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: E2 62 00 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: E2 62 00 E7 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 17 06 01 00 0E 04 04 00 63 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 44 [15:39: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 17 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:39:13]wFMCommunicate OK [15:39:13]SAM_PROTO_GetFieldsCounters done [15:39:13]requested_item shift.num is exist - process it [15:39:13]requested_item shift.opened is exist - process it [15:39:13]req_shift_opened [15:39:13]FM_GetShiftState [15:39:13]SAM_PROTO_GetShiftState [15:39:13]wFMCommunicate request_size=4 [15:39:13]MH_SAM_APDU [15:39:13]CAPDU: 80 13 01 00 [15:39:13]Write to MH i2c: E2 08 00 E8 07 80 13 01 00 00 00 00 00 6C [15:39:13]Write i2c OK [15:39:13]MH_I2C_Read... [15:39:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:13]Read from MH i2c: E2 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: E2 0E 00 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: E2 0E 00 E8 07 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 34 [15:39:13]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:39:13]wFMCommunicate OK [15:39:13]SAM_PROTO_GetShiftState done [15:39:13]FM_GetShiftState done [15:39:13]req_shift_opened done [15:39:13]requested_item shift.open_date is exist - process it [15:39:13]req_shift_open_date [15:39:13]req_shift_open_date done [15:39:13]produce_requested_data done [15:39:13]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67095,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [15:39:13]process_action_free print_text [15:39:13]json_value_free [15:39:13]json_value_free done [15:39:13]process_json_proto returns [15:39:13]Send response to host [15:39:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67095,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [15:39:13]free response buf [15:39:13]execute_script done [15:39:13]execute_script returns [15:39:13]free content buf [15:39:13]Sock 7.Close socket [15:39:13]Sock 7.Thread stoped [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:44]accept exits with 9 [15:42:44]New connection [15:42:44]New thread 3067485540 created [15:42:44]Thread 3067628900 joined [15:42:44]Waiting for new connection... [15:42:44] Sock 9.Parse request [15:42:44]Sock 9.Check first char [15:42:44]Sock 9.First char is OK [15:42:44]request: POST /json_proto HTTP/1.0 [15:42:44]Method: POST [15:42:44]URL: /json_proto [15:42:44]Method is POST - this is cgi request [15:42:44]url: /json_proto [15:42:44]query_string will be loaded in cgi processing [15:42:44]execute_cgi json_proto POST (null) [15:42:44]execute_cgi path=json_proto method=POST [15:42:44]POST find Content-Length [15:42:44]Host: 172.17.41.195:8080 [15:42:44]Content-Length: 1188 [15:42:44]Content-Type: application/json [15:42:44] [15:42:44]POST finish read [15:42:44]Found Content-Length = 1188 [15:42: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)506981\u000A14.05.2024 15:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3613941\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:44]execute_script... [15:42: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)506981\u000A14.05.2024 15:25\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3613941\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:44]POST & json_proto [15:42:44]process_json_proto [15:42:44]json parsed OK: [15:42:44]protocol is kg_v1.0 [15:42:44]action value=print_text [15:42:44]process_action print_text [15:42:44]cmd_print_text [15:42:44]ExternCall_PrintAddStr [15:42:44]wPrintStart [15:42:44]Write to MH i2c: 01 00 00 E9 07 F0 [15:42:44]Write i2c OK [15:42:44]MH_I2C_Read... [15:42:44]Read from MH i2c: 01 [15:42:44]MH_I2C_Read... [15:42:44]Read from MH i2c: 01 07 00 [15:42:44]MH_I2C_Read... [15:42:44]Read from MH i2c: 01 07 00 E9 07 00 00 00 00 00 FF 0F 05 [15:42:44]RasterBufferAndPrint [15:42:44]line *****ТОВАРНЫЙ ЧЕК***** [15:42:44]line АЗС-91 [15:42:44]line Партнер нефть [15:42:44]line 02508201610067 [15:42:44]line Кассир : Адишов И. [15:42:44]line Счет N : (1)506981 [15:42:44]line 14.05.2024 15:25 [15:42:44]line ПРОДАЖА [15:42:44]line ТРК (МРК, ГНК): 31 [15:42:44]line Вид ГСМ : 2710194210 [15:42:44]line ДТ-К-5 [15:42:44]line 100.000 x 74.70 [15:42:44]line ИТОГ: 7470.00 [15:42:44]line Тип оплаты: Талоны: Топливные Талоны [15:42:44]line 3613941 [15:42:44]line ______________________ [15:42:44]line (подпись) [15:42:44]written 0, free lines is 4095 [15:42:44]Write to MH i2c: 01 00 00 FD 07 04 [15:42:44]Write i2c OK [15:42:44]MH_I2C_Read... [15:42:44]Read from MH i2c: 01 [15:42:44]MH_I2C_Read... [15:42:44]Read from MH i2c: 01 07 00 [15:42:44]MH_I2C_Read... [15:42:44]Read from MH i2c: 01 07 00 FD 07 00 00 00 00 00 0D 0E 26 [15:42:44]RasterBufferAndPrint [15:42:44]line [15:42:44]line [15:42:44]line [15:42:44]line [15:42:44]line [15:42:44]written 0, free lines is 3598 [15:42:44]MH_Cut [15:42:44]Write to MH i2c: D1 01 00 04 08 01 DE [15:42:44]Write i2c OK [15:42:44]MH_I2C_Read... [15:42:44]Read from MH i2c: D1 [15:42:44]MH_I2C_Read... [15:42:44]Read from MH i2c: D1 01 00 [15:42:44]MH_I2C_Read... [15:42:44]Read from MH i2c: D1 01 00 04 08 00 DD [15:42:44]Write to MH i2c: 01 00 00 05 08 0D [15:42:44]Write i2c OK [15:42:44]MH_I2C_Read... [15:42:45]*** Cut start [15:42:45]*** Purtial cut [15:42:45]*** Stage 1: CUTSNS_PIN = 1 [15:42:45]Read from MH i2c: 01 [15:42:45]MH_I2C_Read... [15:42:45]Read from MH i2c: 01 07 00 [15:42:45]MH_I2C_Read... [15:42:45]*** Stop cut motor [15:42:45]*** Cut end [15:42:45]Read from MH i2c: 01 07 00 05 08 00 00 00 00 00 FF 0F 22 [15:42:45]process_action print_text done [15:42:45]requested_data is exist [15:42:45]produce_requested_data [15:42:45]requested_item fm.sn is exist - process it [15:42:45]wFMCommunicate request_size=4 [15:42:45]MH_SAM_APDU [15:42:45]CAPDU: 80 11 00 00 [15:42:45]Write to MH i2c: E2 08 00 06 08 80 11 00 00 00 00 00 00 88 [15:42:45]Write i2c OK [15:42:45]MH_I2C_Read... [15:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:45]Read from MH i2c: E2 [15:42:45]MH_I2C_Read... [15:42:45]Read from MH i2c: E2 17 00 [15:42:45]MH_I2C_Read... [15:42:45]Read from MH i2c: E2 17 00 06 08 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:42: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:42:45]wFMCommunicate OK [15:42:45]requested_item fd.num is exist - process it [15:42:45]SAM_PROTO_GetFieldsCounters [15:42:45]wFMCommunicate request_size=4 [15:42:45]MH_SAM_APDU [15:42:45]CAPDU: 80 13 00 00 [15:42:45]Write to MH i2c: E2 08 00 07 08 80 13 00 00 00 00 00 00 8B [15:42:45]Write i2c OK [15:42:45]MH_I2C_Read... [15:42:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:45]Read from MH i2c: E2 [15:42:45]MH_I2C_Read... [15:42:45]Read from MH i2c: E2 62 00 [15:42:45]MH_I2C_Read... [15:42:45]Read from MH i2c: E2 62 00 07 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 06 01 00 0E 04 04 00 63 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 65 [15:42: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 17 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:45]wFMCommunicate OK [15:42:45]SAM_PROTO_GetFieldsCounters done [15:42:45]requested_item shift.num is exist - process it [15:42:45]requested_item shift.opened is exist - process it [15:42:45]req_shift_opened [15:42:45]FM_GetShiftState [15:42:45]SAM_PROTO_GetShiftState [15:42:45]wFMCommunicate request_size=4 [15:42:45]MH_SAM_APDU [15:42:45]CAPDU: 80 13 01 00 [15:42:45]Write to MH i2c: E2 08 00 08 08 80 13 01 00 00 00 00 00 8D [15:42:45]Write i2c OK [15:42:45]MH_I2C_Read... [15:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:45]Read from MH i2c: E2 [15:42:45]MH_I2C_Read... [15:42:45]Read from MH i2c: E2 0E 00 [15:42:45]MH_I2C_Read... [15:42:45]Read from MH i2c: E2 0E 00 08 08 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 55 [15:42:45]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:42:45]wFMCommunicate OK [15:42:45]SAM_PROTO_GetShiftState done [15:42:45]FM_GetShiftState done [15:42:45]req_shift_opened done [15:42:45]requested_item shift.open_date is exist - process it [15:42:45]req_shift_open_date [15:42:45]req_shift_open_date done [15:42:45]produce_requested_data done [15:42:45]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67095,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [15:42:45]process_action_free print_text [15:42:45]json_value_free [15:42:45]json_value_free done [15:42:45]process_json_proto returns [15:42:45]Send response to host [15:42:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67095,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [15:42:45]free response buf [15:42:45]execute_script done [15:42:45]execute_script returns [15:42:45]free content buf [15:42:45]Sock 9.Close socket [15:42:45]Sock 9.Thread stoped [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:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]accept exits with 10 [15:47:17]New connection [15:47:17]New thread 3067628900 created [15:47:17]Thread 3067485540 joined [15:47:17]Waiting for new connection... [15:47:17] Sock 10.Parse request [15:47:17]Sock 10.Check first char [15:47:17]Sock 10.First char is OK [15:47:17]request: POST /json_proto HTTP/1.0 [15:47:17]Method: POST [15:47:17]URL: /json_proto [15:47:17]Method is POST - this is cgi request [15:47:17]url: /json_proto [15:47:17]query_string will be loaded in cgi processing [15:47:17]execute_cgi json_proto POST (null) [15:47:17]execute_cgi path=json_proto method=POST [15:47:17]POST find Content-Length [15:47:17]Host: 172.17.41.195:8080 [15:47:17]Content-Length: 1188 [15:47:17]Content-Type: application/json [15:47:17] [15:47:17]POST finish read [15:47:17]Found Content-Length = 1188 [15:47: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)506983\u000A14.05.2024 15:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3613942\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:17]execute_script... [15:47: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)506983\u000A14.05.2024 15:29\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3613942\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:17]POST & json_proto [15:47:17]process_json_proto [15:47:17]json parsed OK: [15:47:17]protocol is kg_v1.0 [15:47:17]action value=print_text [15:47:17]process_action print_text [15:47:17]cmd_print_text [15:47:17]ExternCall_PrintAddStr [15:47:17]wPrintStart [15:47:17]Write to MH i2c: 01 00 00 09 08 11 [15:47:17]Write i2c OK [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: 01 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: 01 07 00 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: 01 07 00 09 08 00 00 00 00 00 FF 0F 26 [15:47:17]RasterBufferAndPrint [15:47:17]line *****ТОВАРНЫЙ ЧЕК***** [15:47:17]line АЗС-91 [15:47:17]line Партнер нефть [15:47:17]line 02508201610067 [15:47:17]line Кассир : Адишов И. [15:47:17]line Счет N : (1)506983 [15:47:17]line 14.05.2024 15:29 [15:47:17]line ПРОДАЖА [15:47:17]line ТРК (МРК, ГНК): 31 [15:47:17]line Вид ГСМ : 2710194210 [15:47:17]line ДТ-К-5 [15:47:17]line 100.000 x 74.70 [15:47:17]line ИТОГ: 7470.00 [15:47:17]line Тип оплаты: Талоны: Топливные Талоны [15:47:17]line 3613942 [15:47:17]line ______________________ [15:47:17]line (подпись) [15:47:17]written 0, free lines is 4095 [15:47:17]Write to MH i2c: 01 00 00 1D 08 25 [15:47:17]Write i2c OK [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: 01 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: 01 07 00 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: 01 07 00 1D 08 00 00 00 00 00 0D 0E 47 [15:47:17]RasterBufferAndPrint [15:47:17]line [15:47:17]line [15:47:17]line [15:47:17]line [15:47:17]line [15:47:17]written 0, free lines is 3598 [15:47:17]MH_Cut [15:47:17]Write to MH i2c: D1 01 00 24 08 01 FE [15:47:17]Write i2c OK [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: D1 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: D1 01 00 [15:47:17]MH_I2C_Read... [15:47:17]Read from MH i2c: D1 01 00 24 08 00 FD [15:47:17]Write to MH i2c: 01 00 00 25 08 2D [15:47:17]Write i2c OK [15:47:17]MH_I2C_Read... [15:47:17]OFD Sender: No OFD packet to send [15:47:17]*** Cut start [15:47:17]*** Purtial cut [15:47:17]*** CUTSNS_PIN = 0 [15:47:18]*** Stage 1: CUTSNS_PIN = 1 [15:47:19]Read from MH i2c: 01 [15:47:19]MH_I2C_Read... [15:47:19]*** Stop cut motor [15:47:19]*** Cut end [15:47:19]Read from MH i2c: 01 07 00 [15:47:19]MH_I2C_Read... [15:47:19]Read from MH i2c: 01 07 00 25 08 00 00 00 00 00 FF 0F 42 [15:47:19]process_action print_text done [15:47:19]requested_data is exist [15:47:19]produce_requested_data [15:47:19]requested_item fm.sn is exist - process it [15:47:19]wFMCommunicate request_size=4 [15:47:19]MH_SAM_APDU [15:47:19]CAPDU: 80 11 00 00 [15:47:19]Write to MH i2c: E2 08 00 26 08 80 11 00 00 00 00 00 00 A8 [15:47:19]Write i2c OK [15:47:19]MH_I2C_Read... [15:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:19]Read from MH i2c: E2 [15:47:19]MH_I2C_Read... [15:47:19]Read from MH i2c: E2 17 00 [15:47:19]MH_I2C_Read... [15:47:19]Read from MH i2c: E2 17 00 26 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FE [15:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:47:19]wFMCommunicate OK [15:47:19]requested_item fd.num is exist - process it [15:47:19]SAM_PROTO_GetFieldsCounters [15:47:19]wFMCommunicate request_size=4 [15:47:19]MH_SAM_APDU [15:47:19]CAPDU: 80 13 00 00 [15:47:19]Write to MH i2c: E2 08 00 27 08 80 13 00 00 00 00 00 00 AB [15:47:19]Write i2c OK [15:47:19]MH_I2C_Read... [15:47:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:20]Read from MH i2c: E2 [15:47:20]MH_I2C_Read... [15:47:20]Read from MH i2c: E2 62 00 [15:47:20]MH_I2C_Read... [15:47:20]Read from MH i2c: E2 62 00 27 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 06 01 00 0E 04 04 00 63 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 85 [15:47: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 17 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:20]wFMCommunicate OK [15:47:20]SAM_PROTO_GetFieldsCounters done [15:47:20]requested_item shift.num is exist - process it [15:47:20]requested_item shift.opened is exist - process it [15:47:20]req_shift_opened [15:47:20]FM_GetShiftState [15:47:20]SAM_PROTO_GetShiftState [15:47:20]wFMCommunicate request_size=4 [15:47:20]MH_SAM_APDU [15:47:20]CAPDU: 80 13 01 00 [15:47:20]Write to MH i2c: E2 08 00 28 08 80 13 01 00 00 00 00 00 AD [15:47:20]Write i2c OK [15:47:20]MH_I2C_Read... [15:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:20]Read from MH i2c: E2 [15:47:20]MH_I2C_Read... [15:47:20]Read from MH i2c: E2 0E 00 [15:47:20]MH_I2C_Read... [15:47:20]Read from MH i2c: E2 0E 00 28 08 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 75 [15:47:20]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:47:20]wFMCommunicate OK [15:47:20]SAM_PROTO_GetShiftState done [15:47:20]FM_GetShiftState done [15:47:20]req_shift_opened done [15:47:20]requested_item shift.open_date is exist - process it [15:47:20]req_shift_open_date [15:47:20]req_shift_open_date done [15:47:20]produce_requested_data done [15:47:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67095,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [15:47:20]process_action_free print_text [15:47:20]json_value_free [15:47:20]json_value_free done [15:47:20]process_json_proto returns [15:47:20]Send response to host [15:47:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67095,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [15:47:20]free response buf [15:47:20]execute_script done [15:47:20]execute_script returns [15:47:20]free content buf [15:47:20]Sock 10.Close socket [15:47:20]Sock 10.Thread stoped [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]accept exits with 7 [15:50:17]New connection [15:50:17]New thread 3067485540 created [15:50:17]Thread 3067628900 joined [15:50:17]Waiting for new connection... [15:50:17] Sock 7.Parse request [15:50:17]Sock 7.Check first char [15:50:17]Sock 7.First char is OK [15:50:17]request: POST /json_proto HTTP/1.0 [15:50:17]Method: POST [15:50:17]URL: /json_proto [15:50:17]Method is POST - this is cgi request [15:50:17]url: /json_proto [15:50:17]query_string will be loaded in cgi processing [15:50:17]execute_cgi json_proto POST (null) [15:50:17]execute_cgi path=json_proto method=POST [15:50:17]POST find Content-Length [15:50:17]Host: 172.17.41.195:8080 [15:50:17]Content-Length: 674 [15:50:17]Content-Type: application/json [15:50:17] [15:50:17]POST finish read [15:50:17]Found Content-Length = 674 [15:50:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 8.040, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:17]execute_script... [15:50:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 8.040, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:17]POST & json_proto [15:50:17]process_json_proto [15:50:17]json parsed OK: [15:50:17]protocol is kg_v1.0 [15:50:17]action value=close_receipt [15:50:17]process_action close_receipt [15:50:17]cmd_close_receipt [15:50:17]MH_GetDate [15:50:17]Write to MH i2c: F0 00 00 29 08 20 [15:50:17]Write i2c OK [15:50:17]MH_I2C_Read... [15:50:17]Read from MH i2c: F0 [15:50:17]MH_I2C_Read... [15:50:17]Read from MH i2c: F0 09 00 [15:50:17]MH_I2C_Read... [15:50:17]Read from MH i2c: F0 09 00 29 08 00 3A 88 43 66 FC 21 6F 64 84 [15:50:17]GetLastDocTimeStamp 1715700939 [15:50:17]current date 1715701818 [15:50:17]FM_GetShiftState [15:50:17]SAM_PROTO_GetShiftState [15:50:17]wFMCommunicate request_size=4 [15:50:17]MH_SAM_APDU [15:50:17]CAPDU: 80 13 01 00 [15:50:17]Write to MH i2c: E2 08 00 2A 08 80 13 01 00 00 00 00 00 AF [15:50:17]Write i2c OK [15:50:17]MH_I2C_Read... [15:50:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:17]Read from MH i2c: E2 [15:50:17]MH_I2C_Read... [15:50:17]Read from MH i2c: E2 0E 00 [15:50:17]MH_I2C_Read... [15:50:17]Read from MH i2c: E2 0E 00 2A 08 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 77 [15:50:17]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:50:17]wFMCommunicate OK [15:50:17]SAM_PROTO_GetShiftState done [15:50:17]FM_GetShiftState done [15:50:17]opened in 1715646054 [15:50:17]opened+sec_in_day 1715732454 [15:50:17]quantity*price = 60058 [15:50:17]sum+1 = 60060 [15:50:17]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 СНО: Общий режим Чек 103 14.05.2024 15:50 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67096 ФПД: 252979104371273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T155018&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67096&fm=252979104371273&tin=02508201610067®Number=0000000000091845&sum=60000 [15:50:18]StoreToDocumentArchive [15:50:18]shift 355 fd 67096 [15:50:18]save to /storage/0355/doc_00067096 [15:50:18]save last doc name /storage/0355/doc_00067096 to /storage/kkm_last_doc_name [15:50:18]save OK [15:50:18]Clear old archive folders... [15:50:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:50:18]tlvbuf is 00822900 [15:50:18]SAM_PROTO_ClearQueue [15:50:18]wFMCommunicate request_size=4 [15:50:18]MH_SAM_APDU [15:50:18]CAPDU: 80 09 00 00 [15:50:18]Write to MH i2c: E2 08 00 37 08 80 09 00 00 00 00 00 00 B1 [15:50:18]Write i2c OK [15:50:18]MH_I2C_Read... [15:50:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:18]Read from MH i2c: E2 [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: E2 03 00 [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: E2 03 00 37 08 00 90 00 B3 [15:50:18]RAPDU: 90 00 [15:50:18]wFMCommunicate OK [15:50:18]SAM_PROTO_ClearQueue done [15:50:18]KKMCreateOFDPacket [15:50:18]OFDProtocolAddRootSTLVToBuf [15:50:18]FM_MakeSignedData [15:50:18]FM_MakeSignedData [15:50:18]SAM_PROTO_SignData [15:50:18]wFMCommunicate request_size=4 [15:50:18]MH_SAM_APDU [15:50:18]CAPDU: 80 0D 01 02 [15:50:18]Write to MH i2c: E2 08 00 38 08 80 0D 01 02 00 00 00 00 B9 [15:50:18]Write i2c OK [15:50:18]MH_I2C_Read... [15:50:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:18]Read from MH i2c: E2 [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: E2 03 00 [15:50:18]MH_I2C_Read... [15:50:18]Read from MH i2c: E2 03 00 38 08 00 90 00 B4 [15:50:18]RAPDU: 90 00 [15:50:18]wFMCommunicate OK [15:50:18]wFMCommunicate request_size=255 [15:50:18]MH_SAM_APDU [15:50:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 67 00 00 00 F4 03 04 00 3A 88 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 E6 15 49 A6 [15:50:18]Write to MH i2c: E2 02 01 39 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 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 67 00 00 00 F4 03 04 00 3A 88 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 E6 15 49 A6 00 00 5C [15:50:18]Write i2c OK [15:50:18]MH_I2C_Read... [15:50:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:19]Read from MH i2c: E2 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: E2 03 00 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: E2 03 00 39 08 00 90 00 B5 [15:50:19]RAPDU: 90 00 [15:50:19]wFMCommunicate OK [15:50:19]wFMCommunicate request_size=7 [15:50:19]MH_SAM_APDU [15:50:19]CAPDU: 80 0D 02 02 02 D2 49 [15:50:19]Write to MH i2c: E2 0A 00 3A 08 80 0D 02 02 02 00 D2 49 00 00 DB [15:50:19]Write i2c OK [15:50:19]MH_I2C_Read... [15:50:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:19]Read from MH i2c: E2 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: E2 03 00 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: E2 03 00 3A 08 00 90 00 B6 [15:50:19]RAPDU: 90 00 [15:50:19]wFMCommunicate OK [15:50:19]wFMCommunicate request_size=4 [15:50:19]MH_SAM_APDU [15:50:19]CAPDU: 80 0D 03 02 [15:50:19]Write to MH i2c: E2 08 00 3B 08 80 0D 03 02 00 00 00 00 BE [15:50:19]Write i2c OK [15:50:19]MH_I2C_Read... [15:50:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:19]Read from MH i2c: E2 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: E2 0B 00 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: E2 0B 00 3B 08 00 B8 96 6B FF C6 7F D3 BB 90 00 4A [15:50:19]RAPDU: B8 96 6B FF C6 7F D3 BB 90 00 [15:50:19]wFMCommunicate OK [15:50:19]SAM_PROTO_SignData done [15:50:19]FM_MakeSignedData done [15:50:19]CreateOFDProtocolMessage [15:50:19]wFMCommunicate request_size=4 [15:50:19]MH_SAM_APDU [15:50:19]CAPDU: 80 11 00 00 [15:50:19]Write to MH i2c: E2 08 00 3C 08 80 11 00 00 00 00 00 00 BE [15:50:19]Write i2c OK [15:50:19]MH_I2C_Read... [15:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:19]Read from MH i2c: E2 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: E2 17 00 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: E2 17 00 3C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 14 [15:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:50:19]wFMCommunicate OK [15:50:19]CreateOFDProtocolMessage done [15:50:19]OFDSenderStorePacket 67096 [15:50:19]StoreOFDPacket docnum=67096 [15:50:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 B5 21 04 01 DB 50 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 67 00 00 00 F4 03 04 00 3A 88 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 E6 15 49 A6 D2 49 B8 96 6B FF C6 7F D3 BB [15:50:19]CheckFolder [15:50:19]dirname=/storage/ofd_packets [15:50:19]CheckFolder done [15:50:19]ProducePacketName [15:50:19]name=ofd_packets/00067096 [15:50:19]NVStorageSaveData ofd_packets/00067096 [15:50:19]File name is /storage/ofd_packets/00067096 [15:50:19]Write 298 bytes [15:50:19]NVStorageSaveData done [15:50:19]OFDSenderStorePacket done [15:50:19]KKMCreateOFDPacket done [15:50:19]NVStorageSaveData kkm_last_timestamp [15:50:19]File name is /storage/kkm_last_timestamp [15:50:19]Write 4 bytes [15:50:19]NVStorageSaveData done [15:50:19]ExternCall_PrintAddStr [15:50:19]wPrintStart [15:50:19]Write to MH i2c: 01 00 00 3D 08 45 [15:50:19]Write i2c OK [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: 01 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: 01 07 00 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: 01 07 00 3D 08 00 00 00 00 00 FF 0F 5A [15:50:19]RasterBufferAndPrint [15:50:19]line Счет N : (1)506984 [15:50:19]line ИНН: 02508201610067 [15:50:19]line Контрольно-Кассовый Чек [15:50:19]line ПРОДАЖА [15:50:19]line ТРК (МРК, ГНК) : 11 [15:50:19]line Товар: 2710194210 [15:50:19]line ДТ-К-5 [15:50:19]line 8.040 * 74.70 [15:50:19]line = 600.59 [15:50:19]line НДС 12% НСП 1% [15:50:19]line > о реализуемом товаре [15:50:19]line ОКРУГЛЕНИЕ: -0.59 [15:50:19]line ИТОГО: 600.00 [15:50:19]line Внесено: 600.00 [15:50:19]line СДАЧА: 0.00 [15:50:19]line НСП 1% : 5.31 [15:50:19]line НДС 12% : 63.78 [15:50:19]line Наличными: 600.00 [15:50:19]line Безнал.: 0.00 [15:50:19]line Место: АЗС № 91 "Партнер Нефть" [15:50:19]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:50:19]line СНО: Общий режим [15:50:19]line Чек 103 14.05.2024 15:50 [15:50:19]line Смена: 355 ФФД: 1.0 [15:50:19]line ЗНМ: 0300000119 [15:50:19]line РНМ: 0000000000091845 [15:50:19]line Версия ККМ: 001 [15:50:19]line ФМ: 0000000000871829 [15:50:19]line ФД: 67096 [15:50:19]line ФПД: 252979104371273 [15:50:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T155018&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67096&fm=252979104371273&tin=02508201610067®Number=0000000000091845&sum=60000 [15:50:19]OFD Sender: Processing packet 67096 [packets to send 35, broken 34] [15:50:19]ProducePacketName [15:50:19]name=ofd_packets/00067096 [15:50:19]OFD Sender: To server: pG, [15:50:19]CommunicateWithHost lk.salyk.kg:30040 [15:50:19]ConnectInit lk.salyk.kg [15:50:19]written 0, free lines is 4095 [15:50:19]Connected sock=10 [15:50:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 B5 21 04 01 DB 50 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 67 00 00 00 F4 03 04 00 3A 88 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 E6 15 49 A6 D2 49 B8 96 6B FF C6 7F D3 BB [15:50: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 BB 0D 47 00 B5 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 06 01 00 F4 03 04 00 19 30 43 66 B6 04 01 00 00 71 40 38 71 3D 3B 70 9E [15:50:19]CommunicateWithHost err = 0 [15:50:19]CheckOFDResponse [15:50:19]1017 (14) - 77093643461234 [15:50:19]1041 (16) - 0000000000871829 [15:50:19]1040 (4) - 67096 [15:50:19]1012 (4) - 14.05.2024 09:34 [15:50:19]1206 (1) - 0 [15:50:19]OFD Sender: Remove packet 67096 [15:50:19]ProducePacketName [15:50:19]name=ofd_packets/00067096 [15:50:19]NVStorageDeleteData [15:50:19]Write to MH i2c: 01 00 00 67 08 6F [15:50:19]Write i2c OK [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: 01 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: 01 07 00 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: 01 07 00 67 08 00 00 00 00 00 C4 0C 46 [15:50:19]RasterBufferAndPrint [15:50:19]line [15:50:19]line [15:50:19]line [15:50:19]line [15:50:19]line [15:50:19]written 0, free lines is 3273 [15:50:19]MH_Cut [15:50:19]Write to MH i2c: D1 01 00 6E 08 01 48 [15:50:19]Write i2c OK [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: D1 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: D1 01 00 [15:50:19]MH_I2C_Read... [15:50:19]Read from MH i2c: D1 01 00 6E 08 00 47 [15:50:19]Write to MH i2c: 01 00 00 6F 08 77 [15:50:19]Write i2c OK [15:50:19]MH_I2C_Read... [15:50:20]OFD Sender: No OFD packet to send [15:50:20]*** Cut start [15:50:20]*** Purtial cut [15:50:20]*** Stage 1: CUTSNS_PIN = 1 [15:50:21]Read from MH i2c: 01 [15:50:21]MH_I2C_Read... [15:50:21]*** Stop cut motor [15:50:21]*** Cut end [15:50:21]Read from MH i2c: 01 07 00 [15:50:21]MH_I2C_Read... [15:50:21]Read from MH i2c: 01 07 00 6F 08 00 00 00 00 00 FF 0F 8C [15:50:21]process_action close_receipt done [15:50:21]requested_data is exist [15:50:21]produce_requested_data [15:50:21]requested_item fm.sn is exist - process it [15:50:21]wFMCommunicate request_size=4 [15:50:21]MH_SAM_APDU [15:50:21]CAPDU: 80 11 00 00 [15:50:21]Write to MH i2c: E2 08 00 70 08 80 11 00 00 00 00 00 00 F2 [15:50:21]Write i2c OK [15:50:21]MH_I2C_Read... [15:50:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:21]Read from MH i2c: E2 [15:50:21]MH_I2C_Read... [15:50:21]Read from MH i2c: E2 17 00 [15:50:21]MH_I2C_Read... [15:50:21]Read from MH i2c: E2 17 00 70 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 48 [15:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:50:21]wFMCommunicate OK [15:50:21]requested_item fd.num is exist - process it [15:50:21]SAM_PROTO_GetFieldsCounters [15:50:21]wFMCommunicate request_size=4 [15:50:21]MH_SAM_APDU [15:50:21]CAPDU: 80 13 00 00 [15:50:21]Write to MH i2c: E2 08 00 71 08 80 13 00 00 00 00 00 00 F5 [15:50:21]Write i2c OK [15:50:21]MH_I2C_Read... [15:50:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:21]Read from MH i2c: E2 [15:50:21]MH_I2C_Read... [15:50:21]Read from MH i2c: E2 62 00 [15:50:21]MH_I2C_Read... [15:50:21]Read from MH i2c: E2 62 00 71 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 18 06 01 00 0E 04 04 00 63 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 D3 [15:50: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 18 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:50:21]wFMCommunicate OK [15:50:21]SAM_PROTO_GetFieldsCounters done [15:50:21]requested_item shift.num is exist - process it [15:50:21]requested_item shift.opened is exist - process it [15:50:21]req_shift_opened [15:50:21]FM_GetShiftState [15:50:21]SAM_PROTO_GetShiftState [15:50:21]wFMCommunicate request_size=4 [15:50:21]MH_SAM_APDU [15:50:21]CAPDU: 80 13 01 00 [15:50:21]Write to MH i2c: E2 08 00 72 08 80 13 01 00 00 00 00 00 F7 [15:50:21]Write i2c OK [15:50:21]MH_I2C_Read... [15:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:21]Read from MH i2c: E2 [15:50:21]MH_I2C_Read... [15:50:21]Read from MH i2c: E2 0E 00 [15:50:21]MH_I2C_Read... [15:50:21]Read from MH i2c: E2 0E 00 72 08 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 BF [15:50:21]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:50:21]wFMCommunicate OK [15:50:21]SAM_PROTO_GetShiftState done [15:50:21]FM_GetShiftState done [15:50:21]req_shift_opened done [15:50:21]requested_item shift.open_date is exist - process it [15:50:21]req_shift_open_date [15:50:21]req_shift_open_date done [15:50:21]produce_requested_data done [15:50:21]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67096,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [15:50:21]process_action_free close_receipt [15:50:21]json_value_free [15:50:21]json_value_free done [15:50:21]process_json_proto returns [15:50:21]Send response to host [15:50:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67096,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [15:50:21]free response buf [15:50:21]execute_script done [15:50:21]execute_script returns [15:50:21]free content buf [15:50:21]Sock 7.Close socket [15:50:21]Sock 7.Thread stoped [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [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:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]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:28]accept exits with 9 [15:59:28]New connection [15:59:28]New thread 3067628900 created [15:59:28]Thread 3067485540 joined [15:59:28]Waiting for new connection... [15:59:28] Sock 9.Parse request [15:59:28]Sock 9.Check first char [15:59:28]Sock 9.First char is OK [15:59:28]request: POST /json_proto HTTP/1.0 [15:59:28]Method: POST [15:59:28]URL: /json_proto [15:59:28]Method is POST - this is cgi request [15:59:28]url: /json_proto [15:59:28]query_string will be loaded in cgi processing [15:59:28]execute_cgi json_proto POST (null) [15:59:28]execute_cgi path=json_proto method=POST [15:59:28]POST find Content-Length [15:59:28]Host: 172.17.41.195:8080 [15:59:28]Content-Length: 682 [15:59:28]Content-Type: application/json [15:59:28] [15:59:28]POST finish read [15:59:28]Found Content-Length = 682 [15:59:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506985", "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" ] } } [15:59:28]execute_script... [15:59: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)506985", "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" ] } } [15:59:28]POST & json_proto [15:59:28]process_json_proto [15:59:28]json parsed OK: [15:59:28]protocol is kg_v1.0 [15:59:28]action value=close_receipt [15:59:28]process_action close_receipt [15:59:28]cmd_close_receipt [15:59:28]MH_GetDate [15:59:28]Write to MH i2c: F0 00 00 73 08 6A [15:59:28]Write i2c OK [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: F0 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: F0 09 00 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: F0 09 00 73 08 00 60 8A 43 66 FC 21 6F 64 F6 [15:59:28]GetLastDocTimeStamp 1715701818 [15:59:28]current date 1715702368 [15:59:28]FM_GetShiftState [15:59:28]SAM_PROTO_GetShiftState [15:59:28]wFMCommunicate request_size=4 [15:59:28]MH_SAM_APDU [15:59:28]CAPDU: 80 13 01 00 [15:59:28]Write to MH i2c: E2 08 00 74 08 80 13 01 00 00 00 00 00 F9 [15:59:28]Write i2c OK [15:59:28]MH_I2C_Read... [15:59:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:28]Read from MH i2c: E2 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: E2 0E 00 [15:59:28]MH_I2C_Read... [15:59:28]Read from MH i2c: E2 0E 00 74 08 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 C1 [15:59:28]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:59:28]wFMCommunicate OK [15:59:28]SAM_PROTO_GetShiftState done [15:59:28]FM_GetShiftState done [15:59:28]opened in 1715646054 [15:59:28]opened+sec_in_day 1715732454 [15:59:28]quantity*price = 100066 [15:59:28]sum+1 = 100067 [15:59:28]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 СНО: Общий режим Чек 104 14.05.2024 15:59 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67097 ФПД: 76337327846997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T155928&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67097&fm=76337327846997&tin=02508201610067®Number=0000000000091845&sum=100000 [15:59:29]StoreToDocumentArchive [15:59:29]shift 355 fd 67097 [15:59:29]save to /storage/0355/doc_00067097 [15:59:29]save last doc name /storage/0355/doc_00067097 to /storage/kkm_last_doc_name [15:59:29]save OK [15:59:29]Clear old archive folders... [15:59:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:29]tlvbuf is 00796890 [15:59:29]SAM_PROTO_ClearQueue [15:59:29]wFMCommunicate request_size=4 [15:59:29]MH_SAM_APDU [15:59:29]CAPDU: 80 09 00 00 [15:59:29]Write to MH i2c: E2 08 00 81 08 80 09 00 00 00 00 00 00 FB [15:59:29]Write i2c OK [15:59:29]MH_I2C_Read... [15:59:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:29]Read from MH i2c: E2 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 03 00 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 03 00 81 08 00 90 00 FD [15:59:29]RAPDU: 90 00 [15:59:29]wFMCommunicate OK [15:59:29]SAM_PROTO_ClearQueue done [15:59:29]KKMCreateOFDPacket [15:59:29]OFDProtocolAddRootSTLVToBuf [15:59:29]FM_MakeSignedData [15:59:29]FM_MakeSignedData [15:59:29]SAM_PROTO_SignData [15:59:29]wFMCommunicate request_size=4 [15:59:29]MH_SAM_APDU [15:59:29]CAPDU: 80 0D 01 02 [15:59:29]Write to MH i2c: E2 08 00 82 08 80 0D 01 02 00 00 00 00 03 [15:59:29]Write i2c OK [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 [15:59:29]MH_I2C_Read... [15:59:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:29]Read from MH i2c: E2 03 00 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 03 00 82 08 00 90 00 FE [15:59:29]RAPDU: 90 00 [15:59:29]wFMCommunicate OK [15:59:29]wFMCommunicate request_size=255 [15:59:29]MH_SAM_APDU [15:59:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 68 00 00 00 F4 03 04 00 60 8A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 45 [15:59:29]Write to MH i2c: E2 02 01 83 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 68 00 00 00 F4 03 04 00 60 8A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 45 00 00 A0 [15:59:29]Write i2c OK [15:59:29]MH_I2C_Read... [15:59:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:29]Read from MH i2c: E2 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 03 00 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 03 00 83 08 00 90 00 FF [15:59:29]RAPDU: 90 00 [15:59:29]wFMCommunicate OK [15:59:29]wFMCommunicate request_size=10 [15:59:29]MH_SAM_APDU [15:59:29]CAPDU: 80 0D 02 02 05 6D AB 4F 36 55 [15:59:29]Write to MH i2c: E2 0D 00 84 08 80 0D 02 02 05 00 6D AB 4F 36 55 00 00 02 [15:59:29]Write i2c OK [15:59:29]MH_I2C_Read... [15:59:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:29]Read from MH i2c: E2 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 03 00 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 03 00 84 08 00 90 00 00 [15:59:29]RAPDU: 90 00 [15:59:29]wFMCommunicate OK [15:59:29]wFMCommunicate request_size=4 [15:59:29]MH_SAM_APDU [15:59:29]CAPDU: 80 0D 03 02 [15:59:29]Write to MH i2c: E2 08 00 85 08 80 0D 03 02 00 00 00 00 08 [15:59:29]Write i2c OK [15:59:29]MH_I2C_Read... [15:59:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:29]Read from MH i2c: E2 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 0B 00 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 0B 00 85 08 00 79 5B 96 5E 21 17 F3 C4 90 00 C0 [15:59:29]RAPDU: 79 5B 96 5E 21 17 F3 C4 90 00 [15:59:29]wFMCommunicate OK [15:59:29]SAM_PROTO_SignData done [15:59:29]FM_MakeSignedData done [15:59:29]CreateOFDProtocolMessage [15:59:29]wFMCommunicate request_size=4 [15:59:29]MH_SAM_APDU [15:59:29]CAPDU: 80 11 00 00 [15:59:29]Write to MH i2c: E2 08 00 86 08 80 11 00 00 00 00 00 00 08 [15:59:29]Write i2c OK [15:59:29]MH_I2C_Read... [15:59:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:29]Read from MH i2c: E2 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 17 00 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: E2 17 00 86 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5E [15:59:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [15:59:29]wFMCommunicate OK [15:59:29]CreateOFDProtocolMessage done [15:59:29]OFDSenderStorePacket 67097 [15:59:29]StoreOFDPacket docnum=67097 [15:59:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 36 A1 07 01 DE 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 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 68 00 00 00 F4 03 04 00 60 8A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 45 6D AB 4F 36 55 79 5B 96 5E 21 17 F3 C4 [15:59:29]CheckFolder [15:59:29]dirname=/storage/ofd_packets [15:59:29]CheckFolder done [15:59:29]ProducePacketName [15:59:29]name=ofd_packets/00067097 [15:59:29]NVStorageSaveData ofd_packets/00067097 [15:59:29]File name is /storage/ofd_packets/00067097 [15:59:29]Write 301 bytes [15:59:29]NVStorageSaveData done [15:59:29]OFDSenderStorePacket done [15:59:29]KKMCreateOFDPacket done [15:59:29]NVStorageSaveData kkm_last_timestamp [15:59:29]File name is /storage/kkm_last_timestamp [15:59:29]Write 4 bytes [15:59:29]NVStorageSaveData done [15:59:29]ExternCall_PrintAddStr [15:59:29]wPrintStart [15:59:29]Write to MH i2c: 01 00 00 87 08 8F [15:59:29]Write i2c OK [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: 01 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: 01 07 00 [15:59:29]MH_I2C_Read... [15:59:29]Read from MH i2c: 01 07 00 87 08 00 00 00 00 00 FF 0F A4 [15:59:29]RasterBufferAndPrint [15:59:29]line Счет N : (1)506985 [15:59:29]line ИНН: 02508201610067 [15:59:29]line Контрольно-Кассовый Чек [15:59:29]line ПРОДАЖА [15:59:29]line ТРК (МРК, ГНК) : 33 [15:59:29]line Товар: 2710124130 [15:59:29]line Аи-92-К-5 [15:59:29]line 14.980 * 66.80 [15:59:29]line = 1000.66 [15:59:29]line НДС 12% НСП 1% [15:59:29]line > о реализуемом товаре [15:59:29]line ОКРУГЛЕНИЕ: -0.66 [15:59:29]line ИТОГО: 1000.00 [15:59:29]line Внесено: 1000.00 [15:59:29]line СДАЧА: 0.00 [15:59:29]line НСП 1% : 8.85 [15:59:29]line НДС 12% : 106.26 [15:59:29]line Наличными: 1000.00 [15:59:29]line Безнал.: 0.00 [15:59:29]line Место: АЗС № 91 "Партнер Нефть" [15:59:29]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [15:59:29]line СНО: Общий режим [15:59:29]line Чек 104 14.05.2024 15:59 [15:59:29]line Смена: 355 ФФД: 1.0 [15:59:29]line ЗНМ: 0300000119 [15:59:29]line РНМ: 0000000000091845 [15:59:29]line Версия ККМ: 001 [15:59:29]line ФМ: 0000000000871829 [15:59:29]line ФД: 67097 [15:59:29]line ФПД: 76337327846997 [15:59:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T155928&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67097&fm=76337327846997&tin=02508201610067®Number=0000000000091845&sum=100000 [15:59:30]OFD Sender: Processing packet 67097 [packets to send 35, broken 34] [15:59:30]ProducePacketName [15:59:30]name=ofd_packets/00067097 [15:59:30]OFD Sender: To server: pG, [15:59:30]CommunicateWithHost lk.salyk.kg:30040 [15:59:30]ConnectInit lk.salyk.kg [15:59:30]written 0, free lines is 4095 [15:59:30]Connected sock=10 [15:59:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 36 A1 07 01 DE 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 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 68 00 00 00 F4 03 04 00 60 8A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 45 6D AB 4F 36 55 79 5B 96 5E 21 17 F3 C4 [15:59: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 E3 03 47 00 D7 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 19 06 01 00 F4 03 04 00 40 32 43 66 B6 04 01 00 00 62 FD F5 F4 D6 38 32 96 [15:59:30]CommunicateWithHost err = 0 [15:59:30]CheckOFDResponse [15:59:30]1017 (14) - 77093643461234 [15:59:30]1041 (16) - 0000000000871829 [15:59:30]1040 (4) - 67097 [15:59:30]1012 (4) - 14.05.2024 09:43 [15:59:30]1206 (1) - 0 [15:59:30]OFD Sender: Remove packet 67097 [15:59:30]ProducePacketName [15:59:30]name=ofd_packets/00067097 [15:59:30]NVStorageDeleteData [15:59:30]Write to MH i2c: 01 00 00 B1 08 B9 [15:59:30]Write i2c OK [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: 01 [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: 01 07 00 [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: 01 07 00 B1 08 00 00 00 00 00 C1 0C 8D [15:59:30]RasterBufferAndPrint [15:59:30]line [15:59:30]line [15:59:30]line [15:59:30]line [15:59:30]line [15:59:30]written 0, free lines is 3272 [15:59:30]MH_Cut [15:59:30]Write to MH i2c: D1 01 00 B8 08 01 92 [15:59:30]Write i2c OK [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: D1 [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: D1 01 00 [15:59:30]MH_I2C_Read... [15:59:30]Read from MH i2c: D1 01 00 B8 08 00 91 [15:59:30]Write to MH i2c: 01 00 00 B9 08 C1 [15:59:30]Write i2c OK [15:59:30]MH_I2C_Read... [15:59:30]OFD Sender: No OFD packet to send [15:59:31]*** Cut start [15:59:31]*** Purtial cut [15:59:31]*** CUTSNS_PIN = 0 [15:59:31]*** Stage 1: CUTSNS_PIN = 1 [15:59:33]Read from MH i2c: 01 [15:59:33]MH_I2C_Read... [15:59:33]*** Stop cut motor [15:59:33]*** Cut end [15:59:33]Read from MH i2c: 01 07 00 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: 01 07 00 B9 08 00 00 00 00 00 FF 0F D6 [15:59:33]process_action close_receipt done [15:59:33]requested_data is exist [15:59:33]produce_requested_data [15:59:33]requested_item fm.sn is exist - process it [15:59:33]wFMCommunicate request_size=4 [15:59:33]MH_SAM_APDU [15:59:33]CAPDU: 80 11 00 00 [15:59:33]Write to MH i2c: E2 08 00 BA 08 80 11 00 00 00 00 00 00 3C [15:59:33]Write i2c OK [15:59:33]MH_I2C_Read... [15:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:33]Read from MH i2c: E2 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: E2 17 00 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: E2 17 00 BA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 92 [15:59: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:59:33]wFMCommunicate OK [15:59:33]requested_item fd.num is exist - process it [15:59:33]SAM_PROTO_GetFieldsCounters [15:59:33]wFMCommunicate request_size=4 [15:59:33]MH_SAM_APDU [15:59:33]CAPDU: 80 13 00 00 [15:59:33]Write to MH i2c: E2 08 00 BB 08 80 13 00 00 00 00 00 00 3F [15:59:33]Write i2c OK [15:59:33]MH_I2C_Read... [15:59:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:33]Read from MH i2c: E2 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: E2 62 00 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: E2 62 00 BB 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 19 06 01 00 0E 04 04 00 63 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 21 [15:59: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 19 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:33]wFMCommunicate OK [15:59:33]SAM_PROTO_GetFieldsCounters done [15:59:33]requested_item shift.num is exist - process it [15:59:33]requested_item shift.opened is exist - process it [15:59:33]req_shift_opened [15:59:33]FM_GetShiftState [15:59:33]SAM_PROTO_GetShiftState [15:59:33]wFMCommunicate request_size=4 [15:59:33]MH_SAM_APDU [15:59:33]CAPDU: 80 13 01 00 [15:59:33]Write to MH i2c: E2 08 00 BC 08 80 13 01 00 00 00 00 00 41 [15:59:33]Write i2c OK [15:59:33]MH_I2C_Read... [15:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:33]Read from MH i2c: E2 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: E2 0E 00 [15:59:33]MH_I2C_Read... [15:59:33]Read from MH i2c: E2 0E 00 BC 08 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 09 [15:59:33]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [15:59:33]wFMCommunicate OK [15:59:33]SAM_PROTO_GetShiftState done [15:59:33]FM_GetShiftState done [15:59:33]req_shift_opened done [15:59:33]requested_item shift.open_date is exist - process it [15:59:33]req_shift_open_date [15:59:33]req_shift_open_date done [15:59:33]produce_requested_data done [15:59:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67097,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [15:59:33]process_action_free close_receipt [15:59:33]json_value_free [15:59:33]json_value_free done [15:59:33]process_json_proto returns [15:59:33]Send response to host [15:59:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67097,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [15:59:33]free response buf [15:59:33]execute_script done [15:59:33]execute_script returns [15:59:33]free content buf [15:59:33]Sock 9.Close socket [15:59:33]Sock 9.Thread stoped [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:27]accept exits with 7 [16:00:27]New connection [16:00:27]New thread 3067485540 created [16:00:27]Thread 3067628900 joined [16:00:27]Waiting for new connection... [16:00:27] Sock 7.Parse request [16:00:27]Sock 7.Check first char [16:00:27]Sock 7.First char is OK [16:00:27]request: POST /json_proto HTTP/1.0 [16:00:27]Method: POST [16:00:27]URL: /json_proto [16:00:27]Method is POST - this is cgi request [16:00:27]url: /json_proto [16:00:27]query_string will be loaded in cgi processing [16:00:27]execute_cgi json_proto POST (null) [16:00:27]execute_cgi path=json_proto method=POST [16:00:27]POST find Content-Length [16:00:27]Host: 172.17.41.195:8080 [16:00:27]Content-Length: 1179 [16:00:27]Content-Type: application/json [16:00:27] [16:00:27]POST finish read [16:00:27]Found Content-Length = 1179 [16:00: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)506986\u000A14.05.2024 15:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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" ] } } [16:00:27]execute_script... [16:00: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)506986\u000A14.05.2024 15:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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" ] } } [16:00:27]POST & json_proto [16:00:27]process_json_proto [16:00:27]json parsed OK: [16:00:27]protocol is kg_v1.0 [16:00:27]action value=print_text [16:00:27]process_action print_text [16:00:27]cmd_print_text [16:00:27]ExternCall_PrintAddStr [16:00:27]wPrintStart [16:00:27]Write to MH i2c: 01 00 00 BD 08 C5 [16:00:27]Write i2c OK [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: 01 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: 01 07 00 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: 01 07 00 BD 08 00 00 00 00 00 FF 0F DA [16:00:27]RasterBufferAndPrint [16:00:27]line *****ТОВАРНЫЙ ЧЕК***** [16:00:27]line АЗС-91 [16:00:27]line Партнер нефть [16:00:27]line 02508201610067 [16:00:27]line Кассир : Адишов И. [16:00:27]line Счет N : (1)506986 [16:00:27]line 14.05.2024 15:43 [16:00:27]line ПРОДАЖА [16:00:27]line ТРК (МРК, ГНК): 21 [16:00:27]line Вид ГСМ : 2710194210 [16:00:27]line ДТ-К-5 [16:00:27]line 20.090 x 74.70 [16:00:27]line ИТОГ: 1500.72 [16:00:27]line Тип оплаты: Талоны: Топливная Карта [16:00:27]line 02750 [16:00:27]line ______________________ [16:00:27]line (подпись) [16:00:27]written 0, free lines is 4095 [16:00:27]Write to MH i2c: 01 00 00 D1 08 D9 [16:00:27]Write i2c OK [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: 01 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: 01 07 00 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: 01 07 00 D1 08 00 00 00 00 00 0D 0E FB [16:00:27]RasterBufferAndPrint [16:00:27]line [16:00:27]line [16:00:27]line [16:00:27]line [16:00:27]line [16:00:27]written 0, free lines is 3599 [16:00:27]MH_Cut [16:00:27]Write to MH i2c: D1 01 00 D8 08 01 B2 [16:00:27]Write i2c OK [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: D1 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: D1 01 00 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: D1 01 00 D8 08 00 B1 [16:00:27]Write to MH i2c: 01 00 00 D9 08 E1 [16:00:27]Write i2c OK [16:00:27]MH_I2C_Read... [16:00:28]*** Cut start [16:00:28]*** Purtial cut [16:00:28]*** Stage 1: CUTSNS_PIN = 1 [16:00:28]Read from MH i2c: 01 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: 01 07 00 [16:00:28]MH_I2C_Read... [16:00:28]*** Stop cut motor [16:00:28]*** Cut end [16:00:28]Read from MH i2c: 01 07 00 D9 08 00 00 00 00 00 FF 0F F6 [16:00:28]process_action print_text done [16:00:28]requested_data is exist [16:00:28]produce_requested_data [16:00:28]requested_item fm.sn is exist - process it [16:00:28]wFMCommunicate request_size=4 [16:00:28]MH_SAM_APDU [16:00:28]CAPDU: 80 11 00 00 [16:00:28]Write to MH i2c: E2 08 00 DA 08 80 11 00 00 00 00 00 00 5C [16:00:28]Write i2c OK [16:00:28]MH_I2C_Read... [16:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:28]Read from MH i2c: E2 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 17 00 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 17 00 DA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B2 [16:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:00:28]wFMCommunicate OK [16:00:28]requested_item fd.num is exist - process it [16:00:28]SAM_PROTO_GetFieldsCounters [16:00:28]wFMCommunicate request_size=4 [16:00:28]MH_SAM_APDU [16:00:28]CAPDU: 80 13 00 00 [16:00:28]Write to MH i2c: E2 08 00 DB 08 80 13 00 00 00 00 00 00 5F [16:00:28]Write i2c OK [16:00:28]MH_I2C_Read... [16:00:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:28]Read from MH i2c: E2 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 62 00 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 62 00 DB 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 19 06 01 00 0E 04 04 00 63 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 41 [16:00: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 19 06 01 00 0E 04 04 00 63 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 [16:00:28]wFMCommunicate OK [16:00:28]SAM_PROTO_GetFieldsCounters done [16:00:28]requested_item shift.num is exist - process it [16:00:28]requested_item shift.opened is exist - process it [16:00:28]req_shift_opened [16:00:28]FM_GetShiftState [16:00:28]SAM_PROTO_GetShiftState [16:00:28]wFMCommunicate request_size=4 [16:00:28]MH_SAM_APDU [16:00:28]CAPDU: 80 13 01 00 [16:00:28]Write to MH i2c: E2 08 00 DC 08 80 13 01 00 00 00 00 00 61 [16:00:28]Write i2c OK [16:00:28]MH_I2C_Read... [16:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:28]Read from MH i2c: E2 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 0E 00 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: E2 0E 00 DC 08 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 29 [16:00:28]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:00:28]wFMCommunicate OK [16:00:28]SAM_PROTO_GetShiftState done [16:00:28]FM_GetShiftState done [16:00:28]req_shift_opened done [16:00:28]requested_item shift.open_date is exist - process it [16:00:28]req_shift_open_date [16:00:28]req_shift_open_date done [16:00:28]produce_requested_data done [16:00:28]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67097,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [16:00:28]process_action_free print_text [16:00:28]json_value_free [16:00:28]json_value_free done [16:00:28]process_json_proto returns [16:00:28]Send response to host [16:00:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67097,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [16:00:28]free response buf [16:00:28]execute_script done [16:00:28]execute_script returns [16:00:28]free content buf [16:00:28]Sock 7.Close socket [16:00:28]Sock 7.Thread stoped [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:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:21]OFD Sender: No OFD packet to send [16:02:26]OFD Sender: No OFD packet to send [16:02:31]OFD Sender: No OFD packet to send [16:02:36]OFD Sender: No OFD packet to send [16:02:41]OFD Sender: No OFD packet to send [16:02:46]OFD Sender: No OFD packet to send [16:02:51]OFD Sender: No OFD packet to send [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:21]OFD Sender: No OFD packet to send [16:03:26]OFD Sender: No OFD packet to send [16:03:31]OFD Sender: No OFD packet to send [16:03:36]OFD Sender: No OFD packet to send [16:03:41]OFD Sender: No OFD packet to send [16:03:46]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:56]OFD Sender: No OFD packet to send [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:11]OFD Sender: No OFD packet to send [16:04:16]OFD Sender: No OFD packet to send [16:04:21]OFD Sender: No OFD packet to send [16:04:26]OFD Sender: No OFD packet to send [16:04:31]OFD Sender: No OFD packet to send [16:04:36]OFD Sender: No OFD packet to send [16:04:41]OFD Sender: No OFD packet to send [16:04:46]OFD Sender: No OFD packet to send [16:04:51]OFD Sender: No OFD packet to send [16:04:56]OFD Sender: No OFD packet to send [16:05:01]OFD Sender: No OFD packet to send [16:05:06]OFD Sender: No OFD packet to send [16:05:11]OFD Sender: No OFD packet to send [16:05:16]OFD Sender: No OFD packet to send [16:05:21]OFD Sender: No OFD packet to send [16:05:26]OFD Sender: No OFD packet to send [16:05:31]OFD Sender: No OFD packet to send [16:05:36]OFD Sender: No OFD packet to send [16:05:38]accept exits with 9 [16:05:38]New connection [16:05:38]New thread 3067628900 created [16:05:38]Thread 3067485540 joined [16:05:38]Waiting for new connection... [16:05:38] Sock 9.Parse request [16:05:38]Sock 9.Check first char [16:05:38]Sock 9.First char is OK [16:05:38]request: POST /json_proto HTTP/1.0 [16:05:38]Method: POST [16:05:38]URL: /json_proto [16:05:38]Method is POST - this is cgi request [16:05:38]url: /json_proto [16:05:38]query_string will be loaded in cgi processing [16:05:38]execute_cgi json_proto POST (null) [16:05:38]execute_cgi path=json_proto method=POST [16:05:38]POST find Content-Length [16:05:38]Host: 172.17.41.195:8080 [16:05:38]Content-Length: 675 [16:05:38]Content-Type: application/json [16:05:38] [16:05:38]POST finish read [16:05:38]Found Content-Length = 675 [16:05:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506987", "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.710, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:38]execute_script... [16:05:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506987", "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.710, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:38]POST & json_proto [16:05:38]process_json_proto [16:05:38]json parsed OK: [16:05:38]protocol is kg_v1.0 [16:05:38]action value=close_receipt [16:05:38]process_action close_receipt [16:05:38]cmd_close_receipt [16:05:38]MH_GetDate [16:05:38]Write to MH i2c: F0 00 00 DD 08 D4 [16:05:38]Write i2c OK [16:05:38]MH_I2C_Read... [16:05:38]Read from MH i2c: F0 [16:05:38]MH_I2C_Read... [16:05:38]Read from MH i2c: F0 09 00 [16:05:38]MH_I2C_Read... [16:05:38]Read from MH i2c: F0 09 00 DD 08 00 D2 8B 43 66 FC 21 6F 64 D3 [16:05:38]GetLastDocTimeStamp 1715702368 [16:05:38]current date 1715702738 [16:05:38]FM_GetShiftState [16:05:38]SAM_PROTO_GetShiftState [16:05:38]wFMCommunicate request_size=4 [16:05:38]MH_SAM_APDU [16:05:38]CAPDU: 80 13 01 00 [16:05:38]Write to MH i2c: E2 08 00 DE 08 80 13 01 00 00 00 00 00 63 [16:05:38]Write i2c OK [16:05:38]MH_I2C_Read... [16:05:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:38]Read from MH i2c: E2 [16:05:38]MH_I2C_Read... [16:05:38]Read from MH i2c: E2 0E 00 [16:05:38]MH_I2C_Read... [16:05:38]Read from MH i2c: E2 0E 00 DE 08 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 2B [16:05:38]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:05:38]wFMCommunicate OK [16:05:38]SAM_PROTO_GetShiftState done [16:05:38]FM_GetShiftState done [16:05:38]opened in 1715646054 [16:05:38]opened+sec_in_day 1715732454 [16:05:38]quantity*price = 80003 [16:05:38]sum+1 = 80005 [16:05:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 105 14.05.2024 16:05 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67098 ФПД: 70552102928691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T160538&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67098&fm=70552102928691&tin=02508201610067®Number=0000000000091845&sum=80000 [16:05:39]StoreToDocumentArchive [16:05:39]shift 355 fd 67098 [16:05:39]save to /storage/0355/doc_00067098 [16:05:39]save last doc name /storage/0355/doc_00067098 to /storage/kkm_last_doc_name [16:05:39]save OK [16:05:39]Clear old archive folders... [16:05:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:05:39]tlvbuf is 00822D10 [16:05:39]SAM_PROTO_ClearQueue [16:05:39]wFMCommunicate request_size=4 [16:05:39]MH_SAM_APDU [16:05:39]CAPDU: 80 09 00 00 [16:05:39]Write to MH i2c: E2 08 00 EB 08 80 09 00 00 00 00 00 00 65 [16:05:39]Write i2c OK [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: E2 [16:05:39]MH_I2C_Read... [16:05:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:39]Read from MH i2c: E2 03 00 [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: E2 03 00 EB 08 00 90 00 67 [16:05:39]RAPDU: 90 00 [16:05:39]wFMCommunicate OK [16:05:39]SAM_PROTO_ClearQueue done [16:05:39]KKMCreateOFDPacket [16:05:39]OFDProtocolAddRootSTLVToBuf [16:05:39]FM_MakeSignedData [16:05:39]FM_MakeSignedData [16:05:39]SAM_PROTO_SignData [16:05:39]wFMCommunicate request_size=4 [16:05:39]MH_SAM_APDU [16:05:39]CAPDU: 80 0D 01 02 [16:05:39]Write to MH i2c: E2 08 00 EC 08 80 0D 01 02 00 00 00 00 6D [16:05:39]Write i2c OK [16:05:39]MH_I2C_Read... [16:05:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:39]Read from MH i2c: E2 [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: E2 03 00 [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: E2 03 00 EC 08 00 90 00 68 [16:05:39]RAPDU: 90 00 [16:05:39]wFMCommunicate OK [16:05:39]wFMCommunicate request_size=255 [16:05:39]MH_SAM_APDU [16:05: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 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 D2 8B 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 40 2A B1 08 [16:05:39]Write to MH i2c: E2 02 01 ED 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 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 D2 8B 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 40 2A B1 08 00 00 76 [16:05:39]Write i2c OK [16:05:39]MH_I2C_Read... [16:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:39]Read from MH i2c: E2 [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: E2 03 00 [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: E2 03 00 ED 08 00 90 00 69 [16:05:39]RAPDU: 90 00 [16:05:39]wFMCommunicate OK [16:05:39]wFMCommunicate request_size=7 [16:05:39]MH_SAM_APDU [16:05:39]CAPDU: 80 0D 02 02 02 81 33 [16:05:39]Write to MH i2c: E2 0A 00 EE 08 80 0D 02 02 02 00 81 33 00 00 28 [16:05:39]Write i2c OK [16:05:39]MH_I2C_Read... [16:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:39]Read from MH i2c: E2 [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: E2 03 00 [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: E2 03 00 EE 08 00 90 00 6A [16:05:39]RAPDU: 90 00 [16:05:39]wFMCommunicate OK [16:05:39]wFMCommunicate request_size=4 [16:05:39]MH_SAM_APDU [16:05:39]CAPDU: 80 0D 03 02 [16:05:39]Write to MH i2c: E2 08 00 EF 08 80 0D 03 02 00 00 00 00 72 [16:05:39]Write i2c OK [16:05:39]MH_I2C_Read... [16:05:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:39]Read from MH i2c: E2 [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: E2 0B 00 [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: E2 0B 00 EF 08 00 EF 2E F7 EB 31 34 3B 94 90 00 A6 [16:05:39]RAPDU: EF 2E F7 EB 31 34 3B 94 90 00 [16:05:39]wFMCommunicate OK [16:05:39]SAM_PROTO_SignData done [16:05:39]FM_MakeSignedData done [16:05:39]CreateOFDProtocolMessage [16:05:39]wFMCommunicate request_size=4 [16:05:39]MH_SAM_APDU [16:05:39]CAPDU: 80 11 00 00 [16:05:39]Write to MH i2c: E2 08 00 F0 08 80 11 00 00 00 00 00 00 72 [16:05:39]Write i2c OK [16:05:39]MH_I2C_Read... [16:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:39]Read from MH i2c: E2 [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: E2 17 00 [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: E2 17 00 F0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C8 [16:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:05:39]wFMCommunicate OK [16:05:39]CreateOFDProtocolMessage done [16:05:39]OFDSenderStorePacket 67098 [16:05:39]StoreOFDPacket docnum=67098 [16:05: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 1D A2 04 01 0F 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 D2 8B 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 40 2A B1 08 81 33 EF 2E F7 EB 31 34 3B 94 [16:05:39]CheckFolder [16:05:39]dirname=/storage/ofd_packets [16:05:39]CheckFolder done [16:05:39]ProducePacketName [16:05:39]name=ofd_packets/00067098 [16:05:39]NVStorageSaveData ofd_packets/00067098 [16:05:39]File name is /storage/ofd_packets/00067098 [16:05:39]Write 298 bytes [16:05:39]NVStorageSaveData done [16:05:39]OFDSenderStorePacket done [16:05:39]KKMCreateOFDPacket done [16:05:39]NVStorageSaveData kkm_last_timestamp [16:05:39]File name is /storage/kkm_last_timestamp [16:05:39]Write 4 bytes [16:05:39]NVStorageSaveData done [16:05:39]ExternCall_PrintAddStr [16:05:39]wPrintStart [16:05:39]Write to MH i2c: 01 00 00 F1 08 F9 [16:05:39]Write i2c OK [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: 01 [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: 01 07 00 [16:05:39]MH_I2C_Read... [16:05:39]Read from MH i2c: 01 07 00 F1 08 00 00 00 00 00 FF 0F 0E [16:05:39]RasterBufferAndPrint [16:05:39]line Счет N : (1)506987 [16:05:39]line ИНН: 02508201610067 [16:05:39]line Контрольно-Кассовый Чек [16:05:39]line ПРОДАЖА [16:05:39]line ТРК (МРК, ГНК) : 11 [16:05:39]line Товар: 2710194210 [16:05:39]line ДТ-К-5 [16:05:39]line 10.710 * 74.70 [16:05:39]line = 800.04 [16:05:39]line НДС 12% НСП 1% [16:05:39]line > о реализуемом товаре [16:05:39]line ОКРУГЛЕНИЕ: -0.04 [16:05:39]line ИТОГО: 800.00 [16:05:39]line Внесено: 800.00 [16:05:39]line СДАЧА: 0.00 [16:05:39]line НСП 1% : 7.08 [16:05:39]line НДС 12% : 84.96 [16:05:39]line Наличными: 800.00 [16:05:39]line Безнал.: 0.00 [16:05:39]line Место: АЗС № 91 "Партнер Нефть" [16:05:39]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:05:39]line СНО: Общий режим [16:05:39]line Чек 105 14.05.2024 16:05 [16:05:39]line Смена: 355 ФФД: 1.0 [16:05:39]line ЗНМ: 0300000119 [16:05:39]line РНМ: 0000000000091845 [16:05:39]line Версия ККМ: 001 [16:05:39]line ФМ: 0000000000871829 [16:05:39]line ФД: 67098 [16:05:39]line ФПД: 70552102928691 [16:05:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T160538&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67098&fm=70552102928691&tin=02508201610067®Number=0000000000091845&sum=80000 [16:05:40]OFD Sender: Processing packet 67098 [packets to send 35, broken 34] [16:05:40]ProducePacketName [16:05:40]name=ofd_packets/00067098 [16:05:40]OFD Sender: To server: pG, [16:05:40]CommunicateWithHost lk.salyk.kg:30040 [16:05:40]ConnectInit lk.salyk.kg [16:05:40]written 0, free lines is 4095 [16:05:40]Connected sock=7 [16:05:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 1D A2 04 01 0F 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 D2 8B 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 40 2A B1 08 81 33 EF 2E F7 EB 31 34 3B 94 [16:05:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 AC EA 47 00 09 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 1A 06 01 00 F4 03 04 00 B2 33 43 66 B6 04 01 00 00 F1 83 6F 8D 32 4A 7A 54 [16:05:40]CommunicateWithHost err = 0 [16:05:40]CheckOFDResponse [16:05:40]1017 (14) - 77093643461234 [16:05:40]1041 (16) - 0000000000871829 [16:05:40]1040 (4) - 67098 [16:05:40]1012 (4) - 14.05.2024 09:49 [16:05:40]1206 (1) - 0 [16:05:40]OFD Sender: Remove packet 67098 [16:05:40]ProducePacketName [16:05:40]name=ofd_packets/00067098 [16:05:40]NVStorageDeleteData [16:05:40]Write to MH i2c: 01 00 00 1B 09 24 [16:05:40]Write i2c OK [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: 01 [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: 01 07 00 [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: 01 07 00 1B 09 00 00 00 00 00 C3 0C FA [16:05:40]RasterBufferAndPrint [16:05:40]line [16:05:40]line [16:05:40]line [16:05:40]line [16:05:40]line [16:05:40]written 0, free lines is 3272 [16:05:40]MH_Cut [16:05:40]Write to MH i2c: D1 01 00 22 09 01 FD [16:05:40]Write i2c OK [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: D1 [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: D1 01 00 [16:05:40]MH_I2C_Read... [16:05:40]Read from MH i2c: D1 01 00 22 09 00 FC [16:05:40]Write to MH i2c: 01 00 00 23 09 2C [16:05:40]Write i2c OK [16:05:40]MH_I2C_Read... [16:05:40]OFD Sender: No OFD packet to send [16:05:41]*** Cut start [16:05:41]*** Purtial cut [16:05:41]*** CUTSNS_PIN = 0 [16:05:41]*** Stage 1: CUTSNS_PIN = 1 [16:05:43]Read from MH i2c: 01 [16:05:43]MH_I2C_Read... [16:05:43]*** Stop cut motor [16:05:43]*** Cut end [16:05:43]Read from MH i2c: 01 07 00 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: 01 07 00 23 09 00 00 00 00 00 FF 0F 41 [16:05:43]process_action close_receipt done [16:05:43]requested_data is exist [16:05:43]produce_requested_data [16:05:43]requested_item fm.sn is exist - process it [16:05:43]wFMCommunicate request_size=4 [16:05:43]MH_SAM_APDU [16:05:43]CAPDU: 80 11 00 00 [16:05:43]Write to MH i2c: E2 08 00 24 09 80 11 00 00 00 00 00 00 A7 [16:05:43]Write i2c OK [16:05:43]MH_I2C_Read... [16:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:43]Read from MH i2c: E2 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 17 00 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 17 00 24 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FD [16:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:05:43]wFMCommunicate OK [16:05:43]requested_item fd.num is exist - process it [16:05:43]SAM_PROTO_GetFieldsCounters [16:05:43]wFMCommunicate request_size=4 [16:05:43]MH_SAM_APDU [16:05:43]CAPDU: 80 13 00 00 [16:05:43]Write to MH i2c: E2 08 00 25 09 80 13 00 00 00 00 00 00 AA [16:05:43]Write i2c OK [16:05:43]MH_I2C_Read... [16:05:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:43]Read from MH i2c: E2 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 62 00 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 62 00 25 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 1A 06 01 00 0E 04 04 00 63 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 90 [16:05:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 1A 06 01 00 0E 04 04 00 63 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 [16:05:43]wFMCommunicate OK [16:05:43]SAM_PROTO_GetFieldsCounters done [16:05:43]requested_item shift.num is exist - process it [16:05:43]requested_item shift.opened is exist - process it [16:05:43]req_shift_opened [16:05:43]FM_GetShiftState [16:05:43]SAM_PROTO_GetShiftState [16:05:43]wFMCommunicate request_size=4 [16:05:43]MH_SAM_APDU [16:05:43]CAPDU: 80 13 01 00 [16:05:43]Write to MH i2c: E2 08 00 26 09 80 13 01 00 00 00 00 00 AC [16:05:43]Write i2c OK [16:05:43]MH_I2C_Read... [16:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:43]Read from MH i2c: E2 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 0E 00 [16:05:43]MH_I2C_Read... [16:05:43]Read from MH i2c: E2 0E 00 26 09 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 74 [16:05:43]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:05:43]wFMCommunicate OK [16:05:43]SAM_PROTO_GetShiftState done [16:05:43]FM_GetShiftState done [16:05:43]req_shift_opened done [16:05:43]requested_item shift.open_date is exist - process it [16:05:43]req_shift_open_date [16:05:43]req_shift_open_date done [16:05:43]produce_requested_data done [16:05:43]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67098,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [16:05:43]process_action_free close_receipt [16:05:43]json_value_free [16:05:43]json_value_free done [16:05:43]process_json_proto returns [16:05:43]Send response to host [16:05:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67098,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [16:05:43]free response buf [16:05:43]execute_script done [16:05:43]execute_script returns [16:05:43]free content buf [16:05:43]Sock 9.Close socket [16:05:43]Sock 9.Thread stoped [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:41]OFD Sender: No OFD packet to send [16:06:46]OFD Sender: No OFD packet to send [16:06:51]OFD Sender: No OFD packet to send [16:06:56]OFD Sender: No OFD packet to send [16:07:01]OFD Sender: No OFD packet to send [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:46]recv_with_timeout no data received [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:08:46]OFD Sender: No OFD packet to send [16:08:51]OFD Sender: No OFD packet to send [16:08:56]OFD Sender: No OFD packet to send [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:16]accept exits with 10 [16:10:16]New connection [16:10:16]New thread 3067485540 created [16:10:16]Thread 3067628900 joined [16:10:16]Waiting for new connection... [16:10:16] Sock 10.Parse request [16:10:16]Sock 10.Check first char [16:10:16]Sock 10.First char is OK [16:10:16]request: POST /json_proto HTTP/1.0 [16:10:16]Method: POST [16:10:16]URL: /json_proto [16:10:16]Method is POST - this is cgi request [16:10:16]url: /json_proto [16:10:16]query_string will be loaded in cgi processing [16:10:16]execute_cgi json_proto POST (null) [16:10:16]execute_cgi path=json_proto method=POST [16:10:16]POST find Content-Length [16:10:16]Host: 172.17.41.195:8080 [16:10:16]Content-Length: 1191 [16:10:16]Content-Type: application/json [16:10:16] [16:10:16]POST finish read [16:10:16]Found Content-Length = 1191 [16:10: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)506988\u000A14.05.2024 15:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472420-788\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:16]execute_script... [16:10: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)506988\u000A14.05.2024 15:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3472420-788\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:16]POST & json_proto [16:10:16]process_json_proto [16:10:16]json parsed OK: [16:10:16]protocol is kg_v1.0 [16:10:16]action value=print_text [16:10:16]process_action print_text [16:10:16]cmd_print_text [16:10:16]ExternCall_PrintAddStr [16:10:16]wPrintStart [16:10:16]Write to MH i2c: 01 00 00 27 09 30 [16:10:16]Write i2c OK [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: 01 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: 01 07 00 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: 01 07 00 27 09 00 00 00 00 00 FF 0F 45 [16:10:16]RasterBufferAndPrint [16:10:16]line *****ТОВАРНЫЙ ЧЕК***** [16:10:16]line АЗС-91 [16:10:16]line Партнер нефть [16:10:16]line 02508201610067 [16:10:16]line Кассир : Адишов И. [16:10:16]line Счет N : (1)506988 [16:10:16]line 14.05.2024 15:52 [16:10:16]line ПРОДАЖА [16:10:16]line ТРК (МРК, ГНК): 31 [16:10:16]line Вид ГСМ : 2710194210 [16:10:16]line ДТ-К-5 [16:10:16]line 70.000 x 74.70 [16:10:16]line ИТОГ: 5229.00 [16:10:16]line Тип оплаты: Талоны: Топливные Талоны [16:10:16]line 3472420-788 [16:10:16]line ______________________ [16:10:16]line (подпись) [16:10:16]written 0, free lines is 4095 [16:10:16]Write to MH i2c: 01 00 00 3B 09 44 [16:10:16]Write i2c OK [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: 01 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: 01 07 00 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: 01 07 00 3B 09 00 00 00 00 00 0F 0E 68 [16:10:16]RasterBufferAndPrint [16:10:16]line [16:10:16]line [16:10:16]line [16:10:16]line [16:10:16]line [16:10:16]written 0, free lines is 3601 [16:10:16]MH_Cut [16:10:16]Write to MH i2c: D1 01 00 42 09 01 1D [16:10:16]Write i2c OK [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: D1 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: D1 01 00 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: D1 01 00 42 09 00 1C [16:10:16]Write to MH i2c: 01 00 00 43 09 4C [16:10:16]Write i2c OK [16:10:16]MH_I2C_Read... [16:10:17]*** Cut start [16:10:17]*** Purtial cut [16:10:17]*** Stage 1: CUTSNS_PIN = 1 [16:10:17]Read from MH i2c: 01 [16:10:17]MH_I2C_Read... [16:10:17]Read from MH i2c: 01 07 00 [16:10:17]MH_I2C_Read... [16:10:17]*** Stop cut motor [16:10:17]*** Cut end [16:10:17]Read from MH i2c: 01 07 00 43 09 00 00 00 00 00 FF 0F 61 [16:10:17]process_action print_text done [16:10:17]requested_data is exist [16:10:17]produce_requested_data [16:10:17]requested_item fm.sn is exist - process it [16:10:17]wFMCommunicate request_size=4 [16:10:17]MH_SAM_APDU [16:10:17]CAPDU: 80 11 00 00 [16:10:17]Write to MH i2c: E2 08 00 44 09 80 11 00 00 00 00 00 00 C7 [16:10:17]Write i2c OK [16:10:17]MH_I2C_Read... [16:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:17]Read from MH i2c: E2 [16:10:17]MH_I2C_Read... [16:10:17]Read from MH i2c: E2 17 00 [16:10:17]MH_I2C_Read... [16:10:17]Read from MH i2c: E2 17 00 44 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1D [16: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 [16:10:17]wFMCommunicate OK [16:10:17]requested_item fd.num is exist - process it [16:10:17]SAM_PROTO_GetFieldsCounters [16:10:17]wFMCommunicate request_size=4 [16:10:17]MH_SAM_APDU [16:10:17]CAPDU: 80 13 00 00 [16:10:17]Write to MH i2c: E2 08 00 45 09 80 13 00 00 00 00 00 00 CA [16:10:17]Write i2c OK [16:10:17]MH_I2C_Read... [16:10:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:17]Read from MH i2c: E2 [16:10:17]MH_I2C_Read... [16:10:17]Read from MH i2c: E2 62 00 [16:10:17]MH_I2C_Read... [16:10:17]Read from MH i2c: E2 62 00 45 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 1A 06 01 00 0E 04 04 00 63 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 B0 [16:10: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 1A 06 01 00 0E 04 04 00 63 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 [16:10:17]wFMCommunicate OK [16:10:17]SAM_PROTO_GetFieldsCounters done [16:10:17]requested_item shift.num is exist - process it [16:10:17]requested_item shift.opened is exist - process it [16:10:17]req_shift_opened [16:10:17]FM_GetShiftState [16:10:17]SAM_PROTO_GetShiftState [16:10:17]wFMCommunicate request_size=4 [16:10:17]MH_SAM_APDU [16:10:17]CAPDU: 80 13 01 00 [16:10:17]Write to MH i2c: E2 08 00 46 09 80 13 01 00 00 00 00 00 CC [16:10:17]Write i2c OK [16:10:17]MH_I2C_Read... [16:10:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:17]Read from MH i2c: E2 [16:10:17]MH_I2C_Read... [16:10:17]Read from MH i2c: E2 0E 00 [16:10:17]MH_I2C_Read... [16:10:17]Read from MH i2c: E2 0E 00 46 09 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 94 [16:10:17]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:10:17]wFMCommunicate OK [16:10:17]SAM_PROTO_GetShiftState done [16:10:17]FM_GetShiftState done [16:10:17]req_shift_opened done [16:10:17]requested_item shift.open_date is exist - process it [16:10:17]req_shift_open_date [16:10:17]req_shift_open_date done [16:10:17]produce_requested_data done [16:10:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67098,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [16:10:17]process_action_free print_text [16:10:17]json_value_free [16:10:17]json_value_free done [16:10:17]process_json_proto returns [16:10:17]Send response to host [16:10:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67098,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [16:10:17]free response buf [16:10:17]execute_script done [16:10:17]execute_script returns [16:10:17]free content buf [16:10:17]Sock 10.Close socket [16:10:17]Sock 10.Thread stoped [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:31]OFD Sender: No OFD packet to send [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:43]recv_with_timeout no data received [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:13:58]accept exits with 7 [16:13:58]New connection [16:13:58]New thread 3067628900 created [16:13:58]Thread 3067485540 joined [16:13:58]Waiting for new connection... [16:13:58] Sock 7.Parse request [16:13:58]Sock 7.Check first char [16:13:58]Sock 7.First char is OK [16:13:58]request: POST /json_proto HTTP/1.0 [16:13:58]Method: POST [16:13:58]URL: /json_proto [16:13:58]Method is POST - this is cgi request [16:13:58]url: /json_proto [16:13:58]query_string will be loaded in cgi processing [16:13:58]execute_cgi json_proto POST (null) [16:13:58]execute_cgi path=json_proto method=POST [16:13:58]POST find Content-Length [16:13:58]Host: 172.17.41.195:8080 [16:13:58]Content-Length: 1537 [16:13:58]Content-Type: application/json [16:13:58] [16:13:58]POST finish read [16:13:58]Found Content-Length = 1537 [16:13:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12054", "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 }]} ,{ "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 }]} ,{ "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 96.00, "quantity" : 1.000, "sum" : 96.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 328.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:58]execute_script... [16:13: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)12054", "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 }]} ,{ "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 }]} ,{ "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 96.00, "quantity" : 1.000, "sum" : 96.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 328.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:58]POST & json_proto [16:13:58]process_json_proto [16:13:58]json parsed OK: [16:13:58]protocol is kg_v1.0 [16:13:58]action value=close_receipt [16:13:58]process_action close_receipt [16:13:58]cmd_close_receipt [16:13:58]MH_GetDate [16:13:58]Write to MH i2c: F0 00 00 47 09 3F [16:13:58]Write i2c OK [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: F0 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: F0 09 00 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: F0 09 00 47 09 00 C7 8D 43 66 FC 21 6F 64 35 [16:13:58]GetLastDocTimeStamp 1715702738 [16:13:58]current date 1715703239 [16:13:58]FM_GetShiftState [16:13:58]SAM_PROTO_GetShiftState [16:13:58]wFMCommunicate request_size=4 [16:13:58]MH_SAM_APDU [16:13:58]CAPDU: 80 13 01 00 [16:13:58]Write to MH i2c: E2 08 00 48 09 80 13 01 00 00 00 00 00 CE [16:13:58]Write i2c OK [16:13:58]MH_I2C_Read... [16:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:59]Read from MH i2c: E2 [16:13:59]MH_I2C_Read... [16:13:59]Read from MH i2c: E2 0E 00 [16:13:59]MH_I2C_Read... [16:13:59]Read from MH i2c: E2 0E 00 48 09 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 96 [16:13:59]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:13:59]wFMCommunicate OK [16:13:59]SAM_PROTO_GetShiftState done [16:13:59]FM_GetShiftState done [16:13:59]opened in 1715646054 [16:13:59]opened+sec_in_day 1715732454 [16:13:59]quantity*price = 6200 [16:13:59]sum+1 = 6201 [16:13:59]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 55.00 = 55.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202521230 Напиток MAXI чай 1,2 черн.лимон 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202521247 Напиток MAXI чай 1,2 черн.персик 1.000 * 96.00 = 96.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 328.00 НСП 1% : 2.91 НДС 12% : 34.82 Наличными: 328.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 106 14.05.2024 16:13 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67099 ФПД: 16543949102715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T161359&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67099&fm=16543949102715&tin=02508201610067®Number=0000000000091845&sum=32800 0 [16:14:00]StoreToDocumentArchive [16:14:00]shift 355 fd 67099 [16:14:00]save to /storage/0355/doc_00067099 [16:14:00]save last doc name /storage/0355/doc_00067099 to /storage/kkm_last_doc_name [16:14:00]save OK [16:14:00]Clear old archive folders... [16:14:00]ProcessDocumentItem done err = 0, tmpTLVsize=642 [16:14:00]tlvbuf is 00807DF0 [16:14:00]SAM_PROTO_ClearQueue [16:14:00]wFMCommunicate request_size=4 [16:14:00]MH_SAM_APDU [16:14:00]CAPDU: 80 09 00 00 [16:14:00]Write to MH i2c: E2 08 00 55 09 80 09 00 00 00 00 00 00 D0 [16:14:00]Write i2c OK [16:14:00]MH_I2C_Read... [16:14:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:00]Read from MH i2c: E2 [16:14:00]MH_I2C_Read... [16:14:00]Read from MH i2c: E2 03 00 [16:14:00]MH_I2C_Read... [16:14:00]Read from MH i2c: E2 03 00 55 09 00 90 00 D2 [16:14:00]RAPDU: 90 00 [16:14:00]wFMCommunicate OK [16:14:00]SAM_PROTO_ClearQueue done [16:14:00]KKMCreateOFDPacket [16:14:00]OFDProtocolAddRootSTLVToBuf [16:14:00]FM_MakeSignedData [16:14:00]FM_MakeSignedData [16:14:00]SAM_PROTO_SignData [16:14:00]wFMCommunicate request_size=4 [16:14:00]MH_SAM_APDU [16:14:00]CAPDU: 80 0D 01 02 [16:14:00]Write to MH i2c: E2 08 00 56 09 80 0D 01 02 00 00 00 00 D8 [16:14:00]Write i2c OK [16:14:00]MH_I2C_Read... [16:14:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:00]Read from MH i2c: E2 [16:14:00]MH_I2C_Read... [16:14:00]Read from MH i2c: E2 03 00 [16:14:00]MH_I2C_Read... [16:14:00]Read from MH i2c: E2 03 00 56 09 00 90 00 D3 [16:14:00]RAPDU: 90 00 [16:14:00]wFMCommunicate OK [16:14:00]wFMCommunicate request_size=255 [16:14:00]MH_SAM_APDU [16:14:00]CAPDU: 80 0D 02 02 FA 03 00 82 02 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 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 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 [16:14:00]Write to MH i2c: E2 02 01 57 09 80 0D 02 02 FA 00 03 00 82 02 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 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 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 00 00 0E [16:14:00]Write i2c OK [16:14:00]MH_I2C_Read... [16:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:00]Read from MH i2c: E2 [16:14:00]MH_I2C_Read... [16:14:00]Read from MH i2c: E2 03 00 [16:14:00]MH_I2C_Read... [16:14:00]Read from MH i2c: E2 03 00 57 09 00 90 00 D4 [16:14:00]RAPDU: 90 00 [16:14:00]wFMCommunicate OK [16:14:00]wFMCommunicate request_size=255 [16:14:00]MH_SAM_APDU [16:14:00]CAPDU: 80 0D 02 02 FA 35 32 31 32 33 30 06 04 32 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 BB D0 B8 D0 BC D0 BE D0 BD 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 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 25 00 00 00 00 13 04 06 00 80 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [16:14:00]Write to MH i2c: E2 02 01 58 09 80 0D 02 02 FA 00 35 32 31 32 33 30 06 04 32 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 BB D0 B8 D0 BC D0 BE D0 BD 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 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 25 00 00 00 00 13 04 06 00 80 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 FC [16:14:00]Write i2c OK [16:14:00]MH_I2C_Read... [16:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:00]Read from MH i2c: E2 [16:14:00]MH_I2C_Read... [16:14:00]Read from MH i2c: E2 03 00 [16:14:00]MH_I2C_Read... [16:14:00]Read from MH i2c: E2 03 00 58 09 00 90 00 D5 [16:14:00]RAPDU: 90 00 [16:14:00]wFMCommunicate OK [16:14:00]wFMCommunicate request_size=151 [16:14:00]MH_SAM_APDU [16:14:00]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 0D 00 00 00 00 07 04 06 00 20 80 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 C7 8D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0F 0B F0 35 9E 7B [16:14:00]Write to MH i2c: E2 9A 00 59 09 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 0D 00 00 00 00 07 04 06 00 20 80 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 C7 8D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0F 0B F0 35 9E 7B 00 00 E7 [16:14:00]Write i2c OK [16:14:00]MH_I2C_Read... [16:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:00]Read from MH i2c: E2 [16:14:00]MH_I2C_Read... [16:14:00]Read from MH i2c: E2 03 00 [16:14:00]MH_I2C_Read... [16:14:00]Read from MH i2c: E2 03 00 59 09 00 90 00 D6 [16:14:00]RAPDU: 90 00 [16:14:00]wFMCommunicate OK [16:14:00]wFMCommunicate request_size=4 [16:14:00]MH_SAM_APDU [16:14:00]CAPDU: 80 0D 03 02 [16:14:00]Write to MH i2c: E2 08 00 5A 09 80 0D 03 02 00 00 00 00 DE [16:14:00]Write i2c OK [16:14:00]MH_I2C_Read... [16:14:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:01]Read from MH i2c: E2 [16:14:01]MH_I2C_Read... [16:14:01]Read from MH i2c: E2 0B 00 [16:14:01]MH_I2C_Read... [16:14:01]Read from MH i2c: E2 0B 00 5A 09 00 F4 74 1E 42 28 BB 70 22 90 00 1C [16:14:01]RAPDU: F4 74 1E 42 28 BB 70 22 90 00 [16:14:01]wFMCommunicate OK [16:14:01]SAM_PROTO_SignData done [16:14:01]FM_MakeSignedData done [16:14:01]CreateOFDProtocolMessage [16:14:01]wFMCommunicate request_size=4 [16:14:01]MH_SAM_APDU [16:14:01]CAPDU: 80 11 00 00 [16:14:01]Write to MH i2c: E2 08 00 5B 09 80 11 00 00 00 00 00 00 DE [16:14:01]Write i2c OK [16:14:01]MH_I2C_Read... [16:14:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:01]Read from MH i2c: E2 [16:14:01]MH_I2C_Read... [16:14:01]Read from MH i2c: E2 17 00 [16:14:01]MH_I2C_Read... [16:14:01]Read from MH i2c: E2 17 00 5B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 34 [16:14: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:14:01]wFMCommunicate OK [16:14:01]CreateOFDProtocolMessage done [16:14:01]OFDSenderStorePacket 67099 [16:14:01]StoreOFDPacket docnum=67099 [16:14: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 96 02 00 00 D6 CA 8E 02 DE 2E 5A 03 01 00 03 00 82 02 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 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 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 BB D0 B8 D0 BC D0 BE D0 BD 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 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 25 00 00 00 00 13 04 06 00 80 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 0D 00 00 00 00 07 04 06 00 20 80 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 C7 8D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0F 0B F0 35 9E 7B F4 74 1E 42 28 BB 70 22 [16:14:01]CheckFolder [16:14:01]dirname=/storage/ofd_packets [16:14:01]CheckFolder done [16:14:01]ProducePacketName [16:14:01]name=ofd_packets/00067099 [16:14:01]NVStorageSaveData ofd_packets/00067099 [16:14:01]File name is /storage/ofd_packets/00067099 [16:14:01]Write 692 bytes [16:14:01]NVStorageSaveData done [16:14:01]OFDSenderStorePacket done [16:14:01]KKMCreateOFDPacket done [16:14:01]NVStorageSaveData kkm_last_timestamp [16:14:01]File name is /storage/kkm_last_timestamp [16:14:01]Write 4 bytes [16:14:01]NVStorageSaveData done [16:14:01]ExternCall_PrintAddStr [16:14:01]wPrintStart [16:14:01]Write to MH i2c: 01 00 00 5C 09 65 [16:14:01]Write i2c OK [16:14:01]MH_I2C_Read... [16:14:01]Read from MH i2c: 01 [16:14:01]MH_I2C_Read... [16:14:01]Read from MH i2c: 01 07 00 [16:14:01]MH_I2C_Read... [16:14:01]Read from MH i2c: 01 07 00 5C 09 00 00 00 00 00 FF 0F 7A [16:14:01]RasterBufferAndPrint [16:14:01]line Счет N : (3)12054 [16:14:01]line ИНН: 02508201610067 [16:14:01]line Контрольно-Кассовый Чек [16:14:01]line ПРОДАЖА [16:14:01]line Товар: 5449000027450 [16:14:01]line Напиток FuzeTea чай манго,ром 0,5л [16:14:01]line 1.000 * 62.00 [16:14:01]line = 62.00 [16:14:01]line НДС 12% НСП 1% [16:14:01]line > о реализуемом товаре [16:14:01]line Товар: 4700000160204 [16:14:01]line Вода Легенда 1,5л [16:14:01]line 1.000 * 55.00 [16:14:01]line = 55.00 [16:14:01]line НДС 12% НСП 1% [16:14:01]line > о реализуемом товаре [16:14:01]line Товар: 4870202521230 [16:14:01]line Напиток MAXI чай 1,2 черн.лимон [16:14:01]line 1.000 * 115.00 [16:14:01]line = 115.00 [16:14:01]line НДС 12% НСП 1% [16:14:01]line > о реализуемом товаре [16:14:01]line Товар: 4870202521247 [16:14:01]line Напиток MAXI чай 1,2 черн.персик [16:14:01]line 1.000 * 96.00 [16:14:01]line = 96.00 [16:14:01]line НДС 12% НСП 1% [16:14:01]line > о реализуемом товаре [16:14:01]line ИТОГО: 328.00 [16:14:01]line НСП 1% : 2.91 [16:14:01]line НДС 12% : 34.82 [16:14:01]line Наличными: 328.00 [16:14:01]line Безнал.: 0.00 [16:14:01]line Место: АЗС № 91 "Партнер Нефть" [16:14:01]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:14:01]line СНО: Общий режим [16:14:01]line Чек 106 14.05.2024 16:13 [16:14:01]line Смена: 355 ФФД: 1.0 [16:14:01]line ЗНМ: 0300000119 [16:14:01]line РНМ: 0000000000091845 [16:14:01]line Версия ККМ: 001 [16:14:01]line ФМ: 0000000000871829 [16:14:01]line ФД: 67099 [16:14:01]line ФПД: 16543949102715 [16:14:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T161359&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67099&fm=16543949102715&tin=02508201610067®Number=0000000000091845&sum=32800 [16:14:01]OFD Sender: Processing packet 67099 [packets to send 35, broken 34] [16:14:01]ProducePacketName [16:14:01]name=ofd_packets/00067099 [16:14:01]OFD Sender: To server: pG, [16:14:01]CommunicateWithHost lk.salyk.kg:30040 [16:14:01]ConnectInit lk.salyk.kg [16:14:01]line 0 [16:14:01]written 0, free lines is 4095 [16:14:02]Write to MH i2c: 01 00 00 98 09 A1 [16:14:02]Write i2c OK [16:14:02]MH_I2C_Read... [16:14:02]Read from MH i2c: 01 [16:14:02]MH_I2C_Read... [16:14:02]Read from MH i2c: 01 07 00 [16:14:02]MH_I2C_Read... [16:14:02]Read from MH i2c: 01 07 00 98 09 00 00 00 00 00 7B 0B 2E [16:14:02]RasterBufferAndPrint [16:14:02]line [16:14:02]line [16:14:02]line [16:14:02]line [16:14:02]line [16:14:02]written 0, free lines is 2943 [16:14:02]MH_Cut [16:14:02]Write to MH i2c: D1 01 00 9F 09 01 7A [16:14:02]Write i2c OK [16:14:02]MH_I2C_Read... [16:14:02]Read from MH i2c: D1 [16:14:02]MH_I2C_Read... [16:14:02]Read from MH i2c: D1 01 00 [16:14:02]MH_I2C_Read... [16:14:02]Read from MH i2c: D1 01 00 9F 09 00 79 [16:14:02]Write to MH i2c: 01 00 00 A0 09 A9 [16:14:02]Write i2c OK [16:14:02]MH_I2C_Read... [16:14:03]*** Cut start [16:14:03]*** Purtial cut [16:14:03]*** CUTSNS_PIN = 0 [16:14:03]*** Stage 1: CUTSNS_PIN = 1 [16:14:05]Read from MH i2c: 01 [16:14:05]MH_I2C_Read... [16:14:05]*** Stop cut motor [16:14:05]*** Cut end [16:14:05]Read from MH i2c: 01 07 00 [16:14:05]MH_I2C_Read... [16:14:05]Read from MH i2c: 01 07 00 A0 09 00 00 00 00 00 FF 0F BE [16:14:05]process_action close_receipt done [16:14:05]requested_data is exist [16:14:05]produce_requested_data [16:14:05]requested_item fm.sn is exist - process it [16:14:05]wFMCommunicate request_size=4 [16:14:05]MH_SAM_APDU [16:14:05]CAPDU: 80 11 00 00 [16:14:05]Write to MH i2c: E2 08 00 A1 09 80 11 00 00 00 00 00 00 24 [16:14:05]Write i2c OK [16:14:05]MH_I2C_Read... [16:14:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:05]Read from MH i2c: E2 [16:14:05]MH_I2C_Read... [16:14:05]Read from MH i2c: E2 17 00 [16:14:05]MH_I2C_Read... [16:14:05]Read from MH i2c: E2 17 00 A1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7A [16:14:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:14:05]wFMCommunicate OK [16:14:05]requested_item fd.num is exist - process it [16:14:05]SAM_PROTO_GetFieldsCounters [16:14:05]wFMCommunicate request_size=4 [16:14:05]MH_SAM_APDU [16:14:05]CAPDU: 80 13 00 00 [16:14:05]Write to MH i2c: E2 08 00 A2 09 80 13 00 00 00 00 00 00 27 [16:14:05]Write i2c OK [16:14:05]MH_I2C_Read... [16:14:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:05]Read from MH i2c: E2 [16:14:05]MH_I2C_Read... [16:14:05]Read from MH i2c: E2 62 00 [16:14:05]MH_I2C_Read... [16:14:05]Read from MH i2c: E2 62 00 A2 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 1B 06 01 00 0E 04 04 00 63 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 11 [16:14: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 1B 06 01 00 0E 04 04 00 63 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 [16:14:05]wFMCommunicate OK [16:14:05]SAM_PROTO_GetFieldsCounters done [16:14:05]requested_item shift.num is exist - process it [16:14:05]requested_item shift.opened is exist - process it [16:14:05]req_shift_opened [16:14:05]FM_GetShiftState [16:14:05]SAM_PROTO_GetShiftState [16:14:05]wFMCommunicate request_size=4 [16:14:05]MH_SAM_APDU [16:14:05]CAPDU: 80 13 01 00 [16:14:05]Write to MH i2c: E2 08 00 A3 09 80 13 01 00 00 00 00 00 29 [16:14:05]Write i2c OK [16:14:05]MH_I2C_Read... [16:14:05]Read from MH i2c: E2 [16:14:05]MH_I2C_Read... [16:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:05]Read from MH i2c: E2 0E 00 [16:14:05]MH_I2C_Read... [16:14:05]Read from MH i2c: E2 0E 00 A3 09 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F1 [16:14:05]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:14:05]wFMCommunicate OK [16:14:05]SAM_PROTO_GetShiftState done [16:14:05]FM_GetShiftState done [16:14:05]req_shift_opened done [16:14:05]requested_item shift.open_date is exist - process it [16:14:05]req_shift_open_date [16:14:05]req_shift_open_date done [16:14:05]produce_requested_data done [16:14:05]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67099,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [16:14:05]process_action_free close_receipt [16:14:05]json_value_free [16:14:05]json_value_free done [16:14:05]process_json_proto returns [16:14:05]Send response to host [16:14:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67099,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [16:14:05]free response buf [16:14:05]execute_script done [16:14:05]execute_script returns [16:14:05]free content buf [16:14:05]Sock 7.Close socket [16:14:05]Sock 7.Thread stoped [16:16:10]ConnectInit Can't connect to host [16:16:10]CommunicateWithHost connect error [16:16:10]CommunicateWithHost err = -1 [16:16:10]OFD Sender: Server communicate error [16:16:16]OFD Sender: Processing packet 67099 [packets to send 35, broken 34] [16:16:16]ProducePacketName [16:16:16]name=ofd_packets/00067099 [16:16:16]OFD Sender: To server: pG, [16:16:16]CommunicateWithHost lk.salyk.kg:30040 [16:16:16]ConnectInit lk.salyk.kg [16:16:16]Connected sock=7 [16:16: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 96 02 00 00 D6 CA 8E 02 DE 2E 5A 03 01 00 03 00 82 02 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 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 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 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 BB D0 B8 D0 BC D0 BE D0 BD 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 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 25 00 00 00 00 13 04 06 00 80 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 0D 00 00 00 00 07 04 06 00 20 80 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 C7 8D 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0F 0B F0 35 9E 7B F4 74 1E 42 28 BB 70 22 [16:16: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 D6 78 47 00 5C 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 1B 06 01 00 F4 03 04 00 2E 36 43 66 B6 04 01 00 00 89 E6 8F 2A 25 87 84 35 [16:16:16]CommunicateWithHost err = 0 [16:16:16]CheckOFDResponse [16:16:16]1017 (14) - 77093643461234 [16:16:16]1041 (16) - 0000000000871829 [16:16:16]1040 (4) - 67099 [16:16:16]1012 (4) - 14.05.2024 10:00 [16:16:16]1206 (1) - 0 [16:16:16]OFD Sender: Remove packet 67099 [16:16:16]ProducePacketName [16:16:16]name=ofd_packets/00067099 [16:16:16]NVStorageDeleteData [16:16:16]OFD Sender: No OFD packet to send [16:16:21]OFD Sender: No OFD packet to send [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]OFD Sender: No OFD packet to send [16:16:46]OFD Sender: No OFD packet to send [16:16:51]OFD Sender: No OFD packet to send [16:16:56]OFD Sender: No OFD packet to send [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:16]OFD Sender: No OFD packet to send [16:17:21]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:36]OFD Sender: No OFD packet to send [16:17:41]accept exits with 9 [16:17:41]New connection [16:17:41]New thread 3067485540 created [16:17:41]Thread 3067628900 joined [16:17:41]Waiting for new connection... [16:17:41] Sock 9.Parse request [16:17:41]Sock 9.Check first char [16:17:41]Sock 9.First char is OK [16:17:41]request: POST /json_proto HTTP/1.0 [16:17:41]Method: POST [16:17:41]URL: /json_proto [16:17:41]Method is POST - this is cgi request [16:17:41]url: /json_proto [16:17:41]query_string will be loaded in cgi processing [16:17:41]execute_cgi json_proto POST (null) [16:17:41]execute_cgi path=json_proto method=POST [16:17:41]POST find Content-Length [16:17:41]Host: 172.17.41.195:8080 [16:17:41]Content-Length: 1191 [16:17:41]Content-Type: application/json [16:17:41] [16:17:41]POST finish read [16:17:41]Found Content-Length = 1191 [16:17: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)506989\u000A14.05.2024 16:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3466753-790\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:41]execute_script... [16:17: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)506989\u000A14.05.2024 16:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3466753-790\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:41]POST & json_proto [16:17:41]process_json_proto [16:17:41]json parsed OK: [16:17:41]protocol is kg_v1.0 [16:17:41]action value=print_text [16:17:41]process_action print_text [16:17:41]cmd_print_text [16:17:41]ExternCall_PrintAddStr [16:17:41]wPrintStart [16:17:41]Write to MH i2c: 01 00 00 A4 09 AD [16:17:41]Write i2c OK [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: 01 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: 01 07 00 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: 01 07 00 A4 09 00 00 00 00 00 FF 0F C2 [16:17:41]RasterBufferAndPrint [16:17:41]line *****ТОВАРНЫЙ ЧЕК***** [16:17:41]line АЗС-91 [16:17:41]line Партнер нефть [16:17:41]line 02508201610067 [16:17:41]line Кассир : Адишов И. [16:17:41]line Счет N : (1)506989 [16:17:41]line 14.05.2024 16:00 [16:17:41]line ПРОДАЖА [16:17:41]line ТРК (МРК, ГНК): 11 [16:17:41]line Вид ГСМ : 2710194210 [16:17:41]line ДТ-К-5 [16:17:41]line 70.000 x 74.70 [16:17:41]line ИТОГ: 5229.00 [16:17:41]line Тип оплаты: Талоны: Топливные Талоны [16:17:41]line 3466753-790 [16:17:41]line ______________________ [16:17:41]line (подпись) [16:17:41]written 0, free lines is 4095 [16:17:41]Write to MH i2c: 01 00 00 B8 09 C1 [16:17:41]Write i2c OK [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: 01 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: 01 07 00 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: 01 07 00 B8 09 00 00 00 00 00 0F 0E E5 [16:17:41]RasterBufferAndPrint [16:17:41]line [16:17:41]line [16:17:41]line [16:17:41]line [16:17:41]line [16:17:41]written 0, free lines is 3600 [16:17:41]MH_Cut [16:17:41]Write to MH i2c: D1 01 00 BF 09 01 9A [16:17:41]Write i2c OK [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: D1 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: D1 01 00 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: D1 01 00 BF 09 00 99 [16:17:41]Write to MH i2c: 01 00 00 C0 09 C9 [16:17:41]Write i2c OK [16:17:41]MH_I2C_Read... [16:17:41]*** Cut start [16:17:41]*** Purtial cut [16:17:41]*** Stage 1: CUTSNS_PIN = 1 [16:17:41]OFD Sender: No OFD packet to send [16:17:42]Read from MH i2c: 01 [16:17:42]MH_I2C_Read... [16:17:42]*** Stop cut motor [16:17:42]*** Cut end [16:17:42]Read from MH i2c: 01 07 00 [16:17:42]MH_I2C_Read... [16:17:42]Read from MH i2c: 01 07 00 C0 09 00 00 00 00 00 FF 0F DE [16:17:42]process_action print_text done [16:17:42]requested_data is exist [16:17:42]produce_requested_data [16:17:42]requested_item fm.sn is exist - process it [16:17:42]wFMCommunicate request_size=4 [16:17:42]MH_SAM_APDU [16:17:42]CAPDU: 80 11 00 00 [16:17:42]Write to MH i2c: E2 08 00 C1 09 80 11 00 00 00 00 00 00 44 [16:17:42]Write i2c OK [16:17:42]MH_I2C_Read... [16:17:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:42]Read from MH i2c: E2 [16:17:42]MH_I2C_Read... [16:17:42]Read from MH i2c: E2 17 00 [16:17:42]MH_I2C_Read... [16:17:42]Read from MH i2c: E2 17 00 C1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9A [16:17:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:17:42]wFMCommunicate OK [16:17:42]requested_item fd.num is exist - process it [16:17:42]SAM_PROTO_GetFieldsCounters [16:17:42]wFMCommunicate request_size=4 [16:17:42]MH_SAM_APDU [16:17:42]CAPDU: 80 13 00 00 [16:17:42]Write to MH i2c: E2 08 00 C2 09 80 13 00 00 00 00 00 00 47 [16:17:42]Write i2c OK [16:17:42]MH_I2C_Read... [16:17:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:42]Read from MH i2c: E2 [16:17:42]MH_I2C_Read... [16:17:42]Read from MH i2c: E2 62 00 [16:17:42]MH_I2C_Read... [16:17:42]Read from MH i2c: E2 62 00 C2 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 1B 06 01 00 0E 04 04 00 63 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 31 [16:17: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 1B 06 01 00 0E 04 04 00 63 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 [16:17:42]wFMCommunicate OK [16:17:42]SAM_PROTO_GetFieldsCounters done [16:17:42]requested_item shift.num is exist - process it [16:17:42]requested_item shift.opened is exist - process it [16:17:42]req_shift_opened [16:17:42]FM_GetShiftState [16:17:42]SAM_PROTO_GetShiftState [16:17:42]wFMCommunicate request_size=4 [16:17:42]MH_SAM_APDU [16:17:42]CAPDU: 80 13 01 00 [16:17:42]Write to MH i2c: E2 08 00 C3 09 80 13 01 00 00 00 00 00 49 [16:17:42]Write i2c OK [16:17:42]MH_I2C_Read... [16:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:42]Read from MH i2c: E2 [16:17:42]MH_I2C_Read... [16:17:42]Read from MH i2c: E2 0E 00 [16:17:42]MH_I2C_Read... [16:17:42]Read from MH i2c: E2 0E 00 C3 09 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 11 [16:17:42]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:17:42]wFMCommunicate OK [16:17:42]SAM_PROTO_GetShiftState done [16:17:42]FM_GetShiftState done [16:17:42]req_shift_opened done [16:17:42]requested_item shift.open_date is exist - process it [16:17:42]req_shift_open_date [16:17:42]req_shift_open_date done [16:17:42]produce_requested_data done [16:17:42]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67099,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [16:17:42]process_action_free print_text [16:17:42]json_value_free [16:17:42]json_value_free done [16:17:42]process_json_proto returns [16:17:42]Send response to host [16:17:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67099,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [16:17:42]free response buf [16:17:42]execute_script done [16:17:42]execute_script returns [16:17:42]free content buf [16:17:42]Sock 9.Close socket [16:17:42]Sock 9.Thread stoped [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:56]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [16:18:06]OFD Sender: No OFD packet to send [16:18:11]OFD Sender: No OFD packet to send [16:18:16]OFD Sender: No OFD packet to send [16:18:21]OFD Sender: No OFD packet to send [16:18:26]OFD Sender: No OFD packet to send [16:18:31]OFD Sender: No OFD packet to send [16:18:36]OFD Sender: No OFD packet to send [16:18:41]OFD Sender: No OFD packet to send [16:18:46]OFD Sender: No OFD packet to send [16:18:51]OFD Sender: No OFD packet to send [16:18:56]OFD Sender: No OFD packet to send [16:19:01]OFD Sender: No OFD packet to send [16:19:06]OFD Sender: No OFD packet to send [16:19:11]OFD Sender: No OFD packet to send [16:19:16]OFD Sender: No OFD packet to send [16:19:21]OFD Sender: No OFD packet to send [16:19:26]OFD Sender: No OFD packet to send [16:19:31]OFD Sender: No OFD packet to send [16:19:36]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:27]OFD Sender: No OFD packet to send [16:20:32]OFD Sender: No OFD packet to send [16:20:37]OFD Sender: No OFD packet to send [16:20:42]OFD Sender: No OFD packet to send [16:20:47]OFD Sender: No OFD packet to send [16:20:52]OFD Sender: No OFD packet to send [16:20:57]OFD Sender: No OFD packet to send [16:21:02]OFD Sender: No OFD packet to send [16:21:06]recv_with_timeout no data received [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:27]OFD Sender: No OFD packet to send [16:21:32]OFD Sender: No OFD packet to send [16:21:37]OFD Sender: No OFD packet to send [16:21:42]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:52]OFD Sender: No OFD packet to send [16:21:57]OFD Sender: No OFD packet to send [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]OFD Sender: No OFD packet to send [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:57]OFD Sender: No OFD packet to send [16:23:02]OFD Sender: No OFD packet to send [16:23:07]OFD Sender: No OFD packet to send [16:23:12]OFD Sender: No OFD packet to send [16:23:17]OFD Sender: No OFD packet to send [16:23:22]OFD Sender: No OFD packet to send [16:23:24]accept exits with 7 [16:23:24]New connection [16:23:24]New thread 3067628900 created [16:23:24]Thread 3067485540 joined [16:23:24]Waiting for new connection... [16:23:24] Sock 7.Parse request [16:23:24]Sock 7.Check first char [16:23:24]Sock 7.First char is OK [16:23:24]request: POST /json_proto HTTP/1.0 [16:23:24]Method: POST [16:23:24]URL: /json_proto [16:23:24]Method is POST - this is cgi request [16:23:24]url: /json_proto [16:23:24]query_string will be loaded in cgi processing [16:23:24]execute_cgi json_proto POST (null) [16:23:24]execute_cgi path=json_proto method=POST [16:23:24]POST find Content-Length [16:23:24]Host: 172.17.41.195:8080 [16:23:24]Content-Length: 1182 [16:23:24]Content-Type: application/json [16:23:24] [16:23:24]POST finish read [16:23:24]Found Content-Length = 1182 [16:23: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)506991\u000A14.05.2024 16:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 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" ] } } [16:23:24]execute_script... [16:23: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)506991\u000A14.05.2024 16:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 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" ] } } [16:23:24]POST & json_proto [16:23:24]process_json_proto [16:23:24]json parsed OK: [16:23:24]protocol is kg_v1.0 [16:23:24]action value=print_text [16:23:24]process_action print_text [16:23:24]cmd_print_text [16:23:24]ExternCall_PrintAddStr [16:23:24]wPrintStart [16:23:24]Write to MH i2c: 01 00 00 C4 09 CD [16:23:24]Write i2c OK [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: 01 [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: 01 07 00 [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: 01 07 00 C4 09 00 00 00 00 00 FF 0F E2 [16:23:24]RasterBufferAndPrint [16:23:24]line *****ТОВАРНЫЙ ЧЕК***** [16:23:24]line АЗС-91 [16:23:24]line Партнер нефть [16:23:24]line 02508201610067 [16:23:24]line Кассир : Адишов И. [16:23:24]line Счет N : (1)506991 [16:23:24]line 14.05.2024 16:06 [16:23:24]line ПРОДАЖА [16:23:24]line ТРК (МРК, ГНК): 33 [16:23:24]line Вид ГСМ : 2710124130 [16:23:24]line Аи-92-К-5 [16:23:24]line 15.000 x 66.80 [16:23:24]line ИТОГ: 1002.00 [16:23:24]line Тип оплаты: Талоны: Топливная Карта [16:23:24]line 02750 [16:23:24]line ______________________ [16:23:24]line (подпись) [16:23:24]written 0, free lines is 4095 [16:23:25]Write to MH i2c: 01 00 00 D8 09 E1 [16:23:25]Write i2c OK [16:23:25]MH_I2C_Read... [16:23:25]Read from MH i2c: 01 [16:23:25]MH_I2C_Read... [16:23:25]Read from MH i2c: 01 07 00 [16:23:25]MH_I2C_Read... [16:23:25]Read from MH i2c: 01 07 00 D8 09 00 00 00 00 00 0F 0E 05 [16:23:25]RasterBufferAndPrint [16:23:25]line [16:23:25]line [16:23:25]line [16:23:25]line [16:23:25]line [16:23:25]written 0, free lines is 3600 [16:23:25]MH_Cut [16:23:25]Write to MH i2c: D1 01 00 DF 09 01 BA [16:23:25]Write i2c OK [16:23:25]MH_I2C_Read... [16:23:25]Read from MH i2c: D1 [16:23:25]MH_I2C_Read... [16:23:25]Read from MH i2c: D1 01 00 [16:23:25]MH_I2C_Read... [16:23:25]Read from MH i2c: D1 01 00 DF 09 00 B9 [16:23:25]Write to MH i2c: 01 00 00 E0 09 E9 [16:23:25]Write i2c OK [16:23:25]MH_I2C_Read... [16:23:25]*** Cut start [16:23:25]*** Purtial cut [16:23:25]*** CUTSNS_PIN = 0 [16:23:25]*** Stage 1: CUTSNS_PIN = 1 [16:23:27]OFD Sender: No OFD packet to send [16:23:27]Read from MH i2c: 01 [16:23:27]MH_I2C_Read... [16:23:27]Read from MH i2c: 01 07 00 [16:23:27]MH_I2C_Read... [16:23:27]*** Stop cut motor [16:23:27]*** Cut end [16:23:27]Read from MH i2c: 01 07 00 E0 09 00 00 00 00 00 FF 0F FE [16:23:27]process_action print_text done [16:23:27]requested_data is exist [16:23:27]produce_requested_data [16:23:27]requested_item fm.sn is exist - process it [16:23:27]wFMCommunicate request_size=4 [16:23:27]MH_SAM_APDU [16:23:27]CAPDU: 80 11 00 00 [16:23:27]Write to MH i2c: E2 08 00 E1 09 80 11 00 00 00 00 00 00 64 [16:23:27]Write i2c OK [16:23:27]MH_I2C_Read... [16:23:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:27]Read from MH i2c: E2 [16:23:27]MH_I2C_Read... [16:23:27]Read from MH i2c: E2 17 00 [16:23:27]MH_I2C_Read... [16:23:27]Read from MH i2c: E2 17 00 E1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BA [16:23: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:23:27]wFMCommunicate OK [16:23:27]requested_item fd.num is exist - process it [16:23:27]SAM_PROTO_GetFieldsCounters [16:23:27]wFMCommunicate request_size=4 [16:23:27]MH_SAM_APDU [16:23:27]CAPDU: 80 13 00 00 [16:23:27]Write to MH i2c: E2 08 00 E2 09 80 13 00 00 00 00 00 00 67 [16:23:27]Write i2c OK [16:23:27]MH_I2C_Read... [16:23:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:27]Read from MH i2c: E2 [16:23:27]MH_I2C_Read... [16:23:27]Read from MH i2c: E2 62 00 [16:23:27]MH_I2C_Read... [16:23:27]Read from MH i2c: E2 62 00 E2 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 1B 06 01 00 0E 04 04 00 63 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 51 [16:23: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 1B 06 01 00 0E 04 04 00 63 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 [16:23:27]wFMCommunicate OK [16:23:27]SAM_PROTO_GetFieldsCounters done [16:23:27]requested_item shift.num is exist - process it [16:23:27]requested_item shift.opened is exist - process it [16:23:27]req_shift_opened [16:23:27]FM_GetShiftState [16:23:27]SAM_PROTO_GetShiftState [16:23:27]wFMCommunicate request_size=4 [16:23:27]MH_SAM_APDU [16:23:27]CAPDU: 80 13 01 00 [16:23:27]Write to MH i2c: E2 08 00 E3 09 80 13 01 00 00 00 00 00 69 [16:23:27]Write i2c OK [16:23:27]MH_I2C_Read... [16:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:27]Read from MH i2c: E2 [16:23:27]MH_I2C_Read... [16:23:27]Read from MH i2c: E2 0E 00 [16:23:27]MH_I2C_Read... [16:23:27]Read from MH i2c: E2 0E 00 E3 09 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 31 [16:23:27]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:23:27]wFMCommunicate OK [16:23:27]SAM_PROTO_GetShiftState done [16:23:27]FM_GetShiftState done [16:23:27]req_shift_opened done [16:23:27]requested_item shift.open_date is exist - process it [16:23:27]req_shift_open_date [16:23:27]req_shift_open_date done [16:23:27]produce_requested_data done [16:23:27]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67099,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [16:23:27]process_action_free print_text [16:23:27]json_value_free [16:23:27]json_value_free done [16:23:27]process_json_proto returns [16:23:27]Send response to host [16:23:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67099,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [16:23:27]free response buf [16:23:27]execute_script done [16:23:27]execute_script returns [16:23:27]free content buf [16:23:27]Sock 7.Close socket [16:23:27]Sock 7.Thread stoped [16:23:32]OFD Sender: No OFD packet to send [16:23:37]OFD Sender: No OFD packet to send [16:23:42]OFD Sender: No OFD packet to send [16:23:47]OFD Sender: No OFD packet to send [16:23:52]accept exits with 9 [16:23:52]New connection [16:23:52]New thread 3067485540 created [16:23:52]Thread 3067628900 joined [16:23:52]Waiting for new connection... [16:23:52] Sock 9.Parse request [16:23:52]Sock 9.Check first char [16:23:52]Sock 9.First char is OK [16:23:52]request: POST /json_proto HTTP/1.0 [16:23:52]Method: POST [16:23:52]URL: /json_proto [16:23:52]Method is POST - this is cgi request [16:23:52]url: /json_proto [16:23:52]query_string will be loaded in cgi processing [16:23:52]execute_cgi json_proto POST (null) [16:23:52]execute_cgi path=json_proto method=POST [16:23:52]POST find Content-Length [16:23:52]Host: 172.17.41.195:8080 [16:23:52]Content-Length: 610 [16:23:52]Content-Type: application/json [16:23:52] [16:23:52]POST finish read [16:23:52]Found Content-Length = 610 [16:23:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12055", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 87.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:52]execute_script... [16:23: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 : (3)12055", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 87.00, "quantity" : 1.000, "sum" : 87.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 87.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:52]POST & json_proto [16:23:52]process_json_proto [16:23:52]json parsed OK: [16:23:52]protocol is kg_v1.0 [16:23:52]action value=close_receipt [16:23:52]process_action close_receipt [16:23:52]cmd_close_receipt [16:23:52]MH_GetDate [16:23:52]Write to MH i2c: F0 00 00 E4 09 DC [16:23:52]Write i2c OK [16:23:52]MH_I2C_Read... [16:23:52]Read from MH i2c: F0 [16:23:52]MH_I2C_Read... [16:23:52]Read from MH i2c: F0 09 00 [16:23:52]MH_I2C_Read... [16:23:52]Read from MH i2c: F0 09 00 E4 09 00 19 90 43 66 FC 21 6F 64 27 [16:23:52]GetLastDocTimeStamp 1715703239 [16:23:52]current date 1715703833 [16:23:52]FM_GetShiftState [16:23:52]SAM_PROTO_GetShiftState [16:23:52]wFMCommunicate request_size=4 [16:23:52]MH_SAM_APDU [16:23:52]CAPDU: 80 13 01 00 [16:23:52]Write to MH i2c: E2 08 00 E5 09 80 13 01 00 00 00 00 00 6B [16:23:52]Write i2c OK [16:23:52]MH_I2C_Read... [16:23:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:52]Read from MH i2c: E2 [16:23:52]MH_I2C_Read... [16:23:52]Read from MH i2c: E2 0E 00 [16:23:52]MH_I2C_Read... [16:23:52]Read from MH i2c: E2 0E 00 E5 09 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 33 [16:23:52]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:23:52]wFMCommunicate OK [16:23:52]SAM_PROTO_GetShiftState done [16:23:52]FM_GetShiftState done [16:23:52]opened in 1715646054 [16:23:52]opened+sec_in_day 1715732454 [16:23:52]quantity*price = 8700 [16:23:52]sum+1 = 8701 [16:23:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 87.00 НСП 1% : 0.77 НДС 12% : 9.24 Наличными: 87.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 107 14.05.2024 16:23 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67100 ФПД: 276353051378524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T162353&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67100&fm=276353051378524&tin=02508201610067®Number=0000000000091845&sum=8700 0 [16:23:53]StoreToDocumentArchive [16:23:53]shift 355 fd 67100 [16:23:53]save to /storage/0355/doc_00067100 [16:23:53]save last doc name /storage/0355/doc_00067100 to /storage/kkm_last_doc_name [16:23:53]save OK [16:23:53]Clear old archive folders... [16:23:53]ProcessDocumentItem done err = 0, tmpTLVsize=266 [16:23:53]tlvbuf is 00827ED0 [16:23:53]SAM_PROTO_ClearQueue [16:23:53]wFMCommunicate request_size=4 [16:23:53]MH_SAM_APDU [16:23:53]CAPDU: 80 09 00 00 [16:23:53]Write to MH i2c: E2 08 00 F2 09 80 09 00 00 00 00 00 00 6D [16:23:53]Write i2c OK [16:23:53]MH_I2C_Read... [16:23:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:53]Read from MH i2c: E2 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: E2 03 00 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: E2 03 00 F2 09 00 90 00 6F [16:23:53]RAPDU: 90 00 [16:23:53]wFMCommunicate OK [16:23:53]SAM_PROTO_ClearQueue done [16:23:53]KKMCreateOFDPacket [16:23:53]OFDProtocolAddRootSTLVToBuf [16:23:53]FM_MakeSignedData [16:23:53]FM_MakeSignedData [16:23:53]SAM_PROTO_SignData [16:23:53]wFMCommunicate request_size=4 [16:23:53]MH_SAM_APDU [16:23:53]CAPDU: 80 0D 01 02 [16:23:53]Write to MH i2c: E2 08 00 F3 09 80 0D 01 02 00 00 00 00 75 [16:23:53]Write i2c OK [16:23:53]MH_I2C_Read... [16:23:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:53]Read from MH i2c: E2 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: E2 03 00 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: E2 03 00 F3 09 00 90 00 70 [16:23:53]RAPDU: 90 00 [16:23:53]wFMCommunicate OK [16:23:53]wFMCommunicate request_size=255 [16:23:53]MH_SAM_APDU [16:23:53]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 19 90 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 [16:23:53]Write to MH i2c: E2 02 01 F4 09 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 19 90 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 00 00 F2 [16:23:53]Write i2c OK [16:23:53]MH_I2C_Read... [16:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:53]Read from MH i2c: E2 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: E2 03 00 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: E2 03 00 F4 09 00 90 00 71 [16:23:53]RAPDU: 90 00 [16:23:53]wFMCommunicate OK [16:23:53]wFMCommunicate request_size=25 [16:23:53]MH_SAM_APDU [16:23:53]CAPDU: 80 0D 02 02 14 32 39 10 04 04 00 1C 06 01 00 35 04 06 00 FB 57 75 75 C3 5C [16:23:53]Write to MH i2c: E2 1C 00 F5 09 80 0D 02 02 14 00 32 39 10 04 04 00 1C 06 01 00 35 04 06 00 FB 57 75 75 C3 5C 00 00 E0 [16:23:53]Write i2c OK [16:23:53]MH_I2C_Read... [16:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:53]Read from MH i2c: E2 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: E2 03 00 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: E2 03 00 F5 09 00 90 00 72 [16:23:53]RAPDU: 90 00 [16:23:53]wFMCommunicate OK [16:23:53]wFMCommunicate request_size=4 [16:23:53]MH_SAM_APDU [16:23:53]CAPDU: 80 0D 03 02 [16:23:53]Write to MH i2c: E2 08 00 F6 09 80 0D 03 02 00 00 00 00 7A [16:23:53]Write i2c OK [16:23:53]MH_I2C_Read... [16:23:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:53]Read from MH i2c: E2 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: E2 0B 00 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: E2 0B 00 F6 09 00 B5 F4 B6 83 84 70 A8 8B 90 00 84 [16:23:53]RAPDU: B5 F4 B6 83 84 70 A8 8B 90 00 [16:23:53]wFMCommunicate OK [16:23:53]SAM_PROTO_SignData done [16:23:53]FM_MakeSignedData done [16:23:53]CreateOFDProtocolMessage [16:23:53]wFMCommunicate request_size=4 [16:23:53]MH_SAM_APDU [16:23:53]CAPDU: 80 11 00 00 [16:23:53]Write to MH i2c: E2 08 00 F7 09 80 11 00 00 00 00 00 00 7A [16:23:53]Write i2c OK [16:23:53]MH_I2C_Read... [16:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:53]Read from MH i2c: E2 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: E2 17 00 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: E2 17 00 F7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D0 [16:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:23:53]wFMCommunicate OK [16:23:53]CreateOFDProtocolMessage done [16:23:53]OFDSenderStorePacket 67100 [16:23:53]StoreOFDPacket docnum=67100 [16:23: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 1E 01 00 00 C7 0A 16 01 FA 3E 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 19 90 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 FB 57 75 75 C3 5C B5 F4 B6 83 84 70 A8 8B [16:23:53]CheckFolder [16:23:53]dirname=/storage/ofd_packets [16:23:53]CheckFolder done [16:23:53]ProducePacketName [16:23:53]name=ofd_packets/00067100 [16:23:53]NVStorageSaveData ofd_packets/00067100 [16:23:53]File name is /storage/ofd_packets/00067100 [16:23:53]Write 316 bytes [16:23:53]NVStorageSaveData done [16:23:53]OFDSenderStorePacket done [16:23:53]KKMCreateOFDPacket done [16:23:53]NVStorageSaveData kkm_last_timestamp [16:23:53]File name is /storage/kkm_last_timestamp [16:23:53]Write 4 bytes [16:23:53]NVStorageSaveData done [16:23:53]ExternCall_PrintAddStr [16:23:53]wPrintStart [16:23:53]Write to MH i2c: 01 00 00 F8 09 01 [16:23:53]Write i2c OK [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: 01 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: 01 07 00 [16:23:53]MH_I2C_Read... [16:23:53]Read from MH i2c: 01 07 00 F8 09 00 00 00 00 00 FF 0F 16 [16:23:53]RasterBufferAndPrint [16:23:53]line Счет N : (3)12055 [16:23:53]line ИНН: 02508201610067 [16:23:53]line Контрольно-Кассовый Чек [16:23:53]line ПРОДАЖА [16:23:53]line Товар: 4870001570071 [16:23:53]line Напиток Pepsi 1л [16:23:53]line 1.000 * 87.00 [16:23:53]line = 87.00 [16:23:53]line НДС 12% НСП 1% [16:23:53]line > о реализуемом товаре [16:23:53]line ИТОГО: 87.00 [16:23:53]line НСП 1% : 0.77 [16:23:53]line НДС 12% : 9.24 [16:23:53]line Наличными: 87.00 [16:23:53]line Безнал.: 0.00 [16:23:53]line Место: АЗС № 91 "Партнер Нефть" [16:23:53]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:23:53]line СНО: Общий режим [16:23:53]line Чек 107 14.05.2024 16:23 [16:23:53]line Смена: 355 ФФД: 1.0 [16:23:53]line ЗНМ: 0300000119 [16:23:53]line РНМ: 0000000000091845 [16:23:53]line Версия ККМ: 001 [16:23:53]line ФМ: 0000000000871829 [16:23:53]line ФД: 67100 [16:23:53]line ФПД: 276353051378524 [16:23:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T162353&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67100&fm=276353051378524&tin=02508201610067®Number=0000000000091845&sum=8700 [16:23:54]line 0 [16:23:54]OFD Sender: Processing packet 67100 [packets to send 35, broken 34] [16:23:54]ProducePacketName [16:23:54]name=ofd_packets/00067100 [16:23:54]OFD Sender: To server: pG, [16:23:54]CommunicateWithHost lk.salyk.kg:30040 [16:23:54]ConnectInit lk.salyk.kg [16:23:54]written 0, free lines is 4095 [16:23:54]Connected sock=10 [16:23: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 1E 01 00 00 C7 0A 16 01 FA 3E 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 21 00 00 00 00 13 04 06 00 FC 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 03 00 00 00 00 07 04 06 00 FC 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 19 90 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 FB 57 75 75 C3 5C B5 F4 B6 83 84 70 A8 8B [16:23: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 29 AA 47 00 7F 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 1C 06 01 00 F4 03 04 00 F8 37 43 66 B6 04 01 00 00 F2 CE 5D AE 59 FD 9A 14 [16:23:54]CommunicateWithHost err = 0 [16:23:54]CheckOFDResponse [16:23:54]1017 (14) - 77093643461234 [16:23:54]1041 (16) - 0000000000871829 [16:23:54]1040 (4) - 67100 [16:23:54]1012 (4) - 14.05.2024 10:07 [16:23:54]1206 (1) - 0 [16:23:54]OFD Sender: Remove packet 67100 [16:23:54]ProducePacketName [16:23:54]name=ofd_packets/00067100 [16:23:54]NVStorageDeleteData [16:23:54]Write to MH i2c: 01 00 00 1F 0A 29 [16:23:54]Write i2c OK [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: 01 [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: 01 07 00 [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: 01 07 00 1F 0A 00 00 00 00 00 E8 0C 24 [16:23:54]RasterBufferAndPrint [16:23:54]line [16:23:54]line [16:23:54]line [16:23:54]line [16:23:54]line [16:23:54]written 0, free lines is 3310 [16:23:54]MH_Cut [16:23:54]Write to MH i2c: D1 01 00 26 0A 01 02 [16:23:54]Write i2c OK [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: D1 [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: D1 01 00 [16:23:54]MH_I2C_Read... [16:23:54]Read from MH i2c: D1 01 00 26 0A 00 01 [16:23:54]Write to MH i2c: 01 00 00 27 0A 31 [16:23:54]Write i2c OK [16:23:54]MH_I2C_Read... [16:23:54]OFD Sender: No OFD packet to send [16:23:55]*** Cut start [16:23:55]*** Purtial cut [16:23:55]*** Stage 1: CUTSNS_PIN = 1 [16:23:55]Read from MH i2c: 01 [16:23:55]MH_I2C_Read... [16:23:55]*** Stop cut motor [16:23:55]*** Cut end [16:23:55]Read from MH i2c: 01 07 00 [16:23:55]MH_I2C_Read... [16:23:55]Read from MH i2c: 01 07 00 27 0A 00 00 00 00 00 FF 0F 46 [16:23:55]process_action close_receipt done [16:23:55]requested_data is exist [16:23:55]produce_requested_data [16:23:55]requested_item fm.sn is exist - process it [16:23:55]wFMCommunicate request_size=4 [16:23:55]MH_SAM_APDU [16:23:55]CAPDU: 80 11 00 00 [16:23:55]Write to MH i2c: E2 08 00 28 0A 80 11 00 00 00 00 00 00 AC [16:23:55]Write i2c OK [16:23:55]MH_I2C_Read... [16:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:55]Read from MH i2c: E2 [16:23:55]MH_I2C_Read... [16:23:55]Read from MH i2c: E2 17 00 [16:23:55]MH_I2C_Read... [16:23:55]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 [16:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:23:55]wFMCommunicate OK [16:23:55]requested_item fd.num is exist - process it [16:23:55]SAM_PROTO_GetFieldsCounters [16:23:55]wFMCommunicate request_size=4 [16:23:55]MH_SAM_APDU [16:23:55]CAPDU: 80 13 00 00 [16:23:55]Write to MH i2c: E2 08 00 29 0A 80 13 00 00 00 00 00 00 AF [16:23:55]Write i2c OK [16:23:55]MH_I2C_Read... [16:23:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:55]Read from MH i2c: E2 [16:23:55]MH_I2C_Read... [16:23:55]Read from MH i2c: E2 62 00 [16:23:55]MH_I2C_Read... [16:23:55]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 1C 06 01 00 0E 04 04 00 63 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 9D [16:23: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 1C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:55]wFMCommunicate OK [16:23:55]SAM_PROTO_GetFieldsCounters done [16:23:55]requested_item shift.num is exist - process it [16:23:55]requested_item shift.opened is exist - process it [16:23:55]req_shift_opened [16:23:55]FM_GetShiftState [16:23:55]SAM_PROTO_GetShiftState [16:23:55]wFMCommunicate request_size=4 [16:23:55]MH_SAM_APDU [16:23:55]CAPDU: 80 13 01 00 [16:23:55]Write to MH i2c: E2 08 00 2A 0A 80 13 01 00 00 00 00 00 B1 [16:23:55]Write i2c OK [16:23:55]MH_I2C_Read... [16:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:55]Read from MH i2c: E2 [16:23:55]MH_I2C_Read... [16:23:55]Read from MH i2c: E2 0E 00 [16:23:55]MH_I2C_Read... [16:23:55]Read from MH i2c: E2 0E 00 2A 0A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 79 [16:23:55]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:23:55]wFMCommunicate OK [16:23:55]SAM_PROTO_GetShiftState done [16:23:55]FM_GetShiftState done [16:23:55]req_shift_opened done [16:23:55]requested_item shift.open_date is exist - process it [16:23:55]req_shift_open_date [16:23:55]req_shift_open_date done [16:23:55]produce_requested_data done [16:23:55]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67100,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [16:23:55]process_action_free close_receipt [16:23:55]json_value_free [16:23:55]json_value_free done [16:23:55]process_json_proto returns [16:23:55]Send response to host [16:23:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67100,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [16:23:55]free response buf [16:23:55]execute_script done [16:23:55]execute_script returns [16:23:55]free content buf [16:23:55]Sock 9.Close socket [16:23:55]Sock 9.Thread stoped [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:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:44]OFD Sender: No OFD packet to send [16:25:49]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:25:55]recv_with_timeout no data received [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:28]accept exits with 7 [16:26:28]New connection [16:26:28]New thread 3067628900 created [16:26:28]Thread 3067485540 joined [16:26:28]Waiting for new connection... [16:26:28] Sock 7.Parse request [16:26:28]Sock 7.Check first char [16:26:28]Sock 7.First char is OK [16:26:28]request: POST /json_proto HTTP/1.0 [16:26:28]Method: POST [16:26:28]URL: /json_proto [16:26:28]Method is POST - this is cgi request [16:26:28]url: /json_proto [16:26:28]query_string will be loaded in cgi processing [16:26:28]execute_cgi json_proto POST (null) [16:26:28]execute_cgi path=json_proto method=POST [16:26:28]POST find Content-Length [16:26:28]Host: 172.17.41.195:8080 [16:26:28]Content-Length: 679 [16:26:28]Content-Type: application/json [16:26:28] [16:26:28]POST finish read [16:26:28]Found Content-Length = 679 [16:26:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506992", "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" : 25.610, "sum" : 1913.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1913.00, "total" : 1913.00, "payments": [ { "type": 0, "sum" : 1913.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:28]execute_script... [16:26: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)506992", "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" : 25.610, "sum" : 1913.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1913.00, "total" : 1913.00, "payments": [ { "type": 0, "sum" : 1913.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:28]POST & json_proto [16:26:28]process_json_proto [16:26:28]json parsed OK: [16:26:28]protocol is kg_v1.0 [16:26:28]action value=close_receipt [16:26:28]process_action close_receipt [16:26:28]cmd_close_receipt [16:26:28]MH_GetDate [16:26:28]Write to MH i2c: F0 00 00 2B 0A 24 [16:26:28]Write i2c OK [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: F0 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: F0 09 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: F0 09 00 2B 0A 00 B5 90 43 66 FC 21 6F 64 0B [16:26:28]GetLastDocTimeStamp 1715703833 [16:26:28]current date 1715703989 [16:26:28]FM_GetShiftState [16:26:28]SAM_PROTO_GetShiftState [16:26:28]wFMCommunicate request_size=4 [16:26:28]MH_SAM_APDU [16:26:28]CAPDU: 80 13 01 00 [16:26:28]Write to MH i2c: E2 08 00 2C 0A 80 13 01 00 00 00 00 00 B3 [16:26:28]Write i2c OK [16:26:28]MH_I2C_Read... [16:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:28]Read from MH i2c: E2 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 0E 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 0E 00 2C 0A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 7B [16:26:28]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:26:28]wFMCommunicate OK [16:26:28]SAM_PROTO_GetShiftState done [16:26:28]FM_GetShiftState done [16:26:28]opened in 1715646054 [16:26:28]opened+sec_in_day 1715732454 [16:26:28]quantity*price = 191306 [16:26:28]sum+1 = 191308 [16:26:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1913.00 Внесено: 1913.00 СДАЧА: 0.00 НСП 1% : 16.93 НДС 12% : 203.16 Наличными: 1913.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 108 14.05.2024 16:26 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67101 ФПД: 226576318313529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T162629&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67101&fm=226576318313529&tin=02508201610067®Number=0000000000091845&sum=191300 [16:26:29]StoreToDocumentArchive [16:26:29]shift 355 fd 67101 [16:26:29]save to /storage/0355/doc_00067101 [16:26:29]save last doc name /storage/0355/doc_00067101 to /storage/kkm_last_doc_name [16:26:29]save OK [16:26:29]Clear old archive folders... [16:26:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:26:29]tlvbuf is 0079CEC0 [16:26:29]SAM_PROTO_ClearQueue [16:26:29]wFMCommunicate request_size=4 [16:26:29]MH_SAM_APDU [16:26:29]CAPDU: 80 09 00 00 [16:26:29]Write to MH i2c: E2 08 00 39 0A 80 09 00 00 00 00 00 00 B5 [16:26:29]Write i2c OK [16:26:29]MH_I2C_Read... [16:26:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:29]Read from MH i2c: E2 [16:26:29]MH_I2C_Read... [16:26:29]Read from MH i2c: E2 03 00 [16:26:29]MH_I2C_Read... [16:26:29]Read from MH i2c: E2 03 00 39 0A 00 90 00 B7 [16:26:29]RAPDU: 90 00 [16:26:29]wFMCommunicate OK [16:26:29]SAM_PROTO_ClearQueue done [16:26:29]KKMCreateOFDPacket [16:26:29]OFDProtocolAddRootSTLVToBuf [16:26:29]FM_MakeSignedData [16:26:29]FM_MakeSignedData [16:26:29]SAM_PROTO_SignData [16:26:29]wFMCommunicate request_size=4 [16:26:29]MH_SAM_APDU [16:26:29]CAPDU: 80 0D 01 02 [16:26:29]Write to MH i2c: E2 08 00 3A 0A 80 0D 01 02 00 00 00 00 BD [16:26:29]Write i2c OK [16:26:29]MH_I2C_Read... [16:26:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:29]Read from MH i2c: E2 [16:26:29]MH_I2C_Read... [16:26:29]Read from MH i2c: E2 03 00 [16:26:29]MH_I2C_Read... [16:26:29]Read from MH i2c: E2 03 00 3A 0A 00 90 00 B8 [16:26:29]RAPDU: 90 00 [16:26:29]wFMCommunicate OK [16:26:29]wFMCommunicate request_size=255 [16:26:29]MH_SAM_APDU [16:26: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 0A 64 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4B EB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 EB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 4F 00 00 00 00 07 04 06 00 44 EB 02 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 B5 90 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 CE 11 E8 F7 [16:26:29]Write to MH i2c: E2 02 01 3B 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 0A 64 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4B EB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 EB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 4F 00 00 00 00 07 04 06 00 44 EB 02 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 B5 90 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 CE 11 E8 F7 00 00 60 [16:26:29]Write i2c OK [16:26:29]MH_I2C_Read... [16:26:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:29]Read from MH i2c: E2 [16:26:29]MH_I2C_Read... [16:26:29]Read from MH i2c: E2 03 00 [16:26:29]MH_I2C_Read... [16:26:29]Read from MH i2c: E2 03 00 3B 0A 00 90 00 B9 [16:26:29]RAPDU: 90 00 [16:26:29]wFMCommunicate OK [16:26:29]wFMCommunicate request_size=7 [16:26:29]MH_SAM_APDU [16:26:29]CAPDU: 80 0D 02 02 02 B4 39 [16:26:29]Write to MH i2c: E2 0A 00 3C 0A 80 0D 02 02 02 00 B4 39 00 00 B1 [16:26:29]Write i2c OK [16:26:29]MH_I2C_Read... [16:26:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:29]Read from MH i2c: E2 [16:26:29]MH_I2C_Read... [16:26:29]Read from MH i2c: E2 03 00 [16:26:29]MH_I2C_Read... [16:26:29]Read from MH i2c: E2 03 00 3C 0A 00 90 00 BA [16:26:29]RAPDU: 90 00 [16:26:29]wFMCommunicate OK [16:26:29]wFMCommunicate request_size=4 [16:26:29]MH_SAM_APDU [16:26:29]CAPDU: 80 0D 03 02 [16:26:29]Write to MH i2c: E2 08 00 3D 0A 80 0D 03 02 00 00 00 00 C2 [16:26:29]Write i2c OK [16:26:29]MH_I2C_Read... [16:26:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:29]Read from MH i2c: E2 [16:26:29]MH_I2C_Read... [16:26:29]Read from MH i2c: E2 0B 00 [16:26:29]MH_I2C_Read... [16:26:29]Read from MH i2c: E2 0B 00 3D 0A 00 25 D9 FE 3C B5 9D 5D BC 90 00 66 [16:26:29]RAPDU: 25 D9 FE 3C B5 9D 5D BC 90 00 [16:26:29]wFMCommunicate OK [16:26:29]SAM_PROTO_SignData done [16:26:29]FM_MakeSignedData done [16:26:29]CreateOFDProtocolMessage [16:26:29]wFMCommunicate request_size=4 [16:26:29]MH_SAM_APDU [16:26:29]CAPDU: 80 11 00 00 [16:26:29]Write to MH i2c: E2 08 00 3E 0A 80 11 00 00 00 00 00 00 C2 [16:26:29]Write i2c OK [16:26:29]MH_I2C_Read... [16:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:30]Read from MH i2c: E2 [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: E2 17 00 [16:26:30]MH_I2C_Read... [16:26:30]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 [16: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 [16:26:30]wFMCommunicate OK [16:26:30]CreateOFDProtocolMessage done [16:26:30]OFDSenderStorePacket 67101 [16:26:30]StoreOFDPacket docnum=67101 [16: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 2C 56 04 01 ED 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 64 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4B EB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 EB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 4F 00 00 00 00 07 04 06 00 44 EB 02 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 B5 90 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 CE 11 E8 F7 B4 39 25 D9 FE 3C B5 9D 5D BC [16:26:30]CheckFolder [16:26:30]dirname=/storage/ofd_packets [16:26:30]CheckFolder done [16:26:30]ProducePacketName [16:26:30]name=ofd_packets/00067101 [16:26:30]NVStorageSaveData ofd_packets/00067101 [16:26:30]File name is /storage/ofd_packets/00067101 [16:26:30]Write 298 bytes [16:26:30]NVStorageSaveData done [16:26:30]OFDSenderStorePacket done [16:26:30]KKMCreateOFDPacket done [16:26:30]NVStorageSaveData kkm_last_timestamp [16:26:30]File name is /storage/kkm_last_timestamp [16:26:30]Write 4 bytes [16:26:30]NVStorageSaveData done [16:26:30]ExternCall_PrintAddStr [16:26:30]wPrintStart [16:26:30]Write to MH i2c: 01 00 00 3F 0A 49 [16:26:30]Write i2c OK [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: 01 [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: 01 07 00 [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: 01 07 00 3F 0A 00 00 00 00 00 FF 0F 5E [16:26:30]RasterBufferAndPrint [16:26:30]line Счет N : (1)506992 [16:26:30]line ИНН: 02508201610067 [16:26:30]line Контрольно-Кассовый Чек [16:26:30]line ПРОДАЖА [16:26:30]line ТРК (МРК, ГНК) : 11 [16:26:30]line Товар: 2710194210 [16:26:30]line ДТ-К-5 [16:26:30]line 25.610 * 74.70 [16:26:30]line = 1913.07 [16:26:30]line НДС 12% НСП 1% [16:26:30]line > о реализуемом товаре [16:26:30]line ОКРУГЛЕНИЕ: -0.07 [16:26:30]line ИТОГО: 1913.00 [16:26:30]line Внесено: 1913.00 [16:26:30]line СДАЧА: 0.00 [16:26:30]line НСП 1% : 16.93 [16:26:30]line НДС 12% : 203.16 [16:26:30]line Наличными: 1913.00 [16:26:30]line Безнал.: 0.00 [16:26:30]line Место: АЗС № 91 "Партнер Нефть" [16:26:30]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:26:30]line СНО: Общий режим [16:26:30]line Чек 108 14.05.2024 16:26 [16:26:30]line Смена: 355 ФФД: 1.0 [16:26:30]line ЗНМ: 0300000119 [16:26:30]line РНМ: 0000000000091845 [16:26:30]line Версия ККМ: 001 [16:26:30]line ФМ: 0000000000871829 [16:26:30]line ФД: 67101 [16:26:30]line ФПД: 226576318313529 [16:26:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T162629&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67101&fm=226576318313529&tin=02508201610067®Number=0000000000091845&sum=191300 [16:26:30]OFD Sender: Processing packet 67101 [packets to send 35, broken 34] [16:26:30]ProducePacketName [16:26:30]name=ofd_packets/00067101 [16:26:30]OFD Sender: To server: pG, [16:26:30]CommunicateWithHost lk.salyk.kg:30040 [16:26:30]ConnectInit lk.salyk.kg [16:26:30]written 0, free lines is 4095 [16:26:30]Connected sock=10 [16:26: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 2C 56 04 01 ED 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 64 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 4B EB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 EB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 4F 00 00 00 00 07 04 06 00 44 EB 02 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 B5 90 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 CE 11 E8 F7 B4 39 25 D9 FE 3C B5 9D 5D BC [16:26:30]Write to MH i2c: 01 00 00 69 0A 73 [16:26:30]Write i2c OK [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: 01 [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: 01 07 00 [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: 01 07 00 69 0A 00 00 00 00 00 CC 0C 52 [16:26:30]RasterBufferAndPrint [16:26:30]line [16:26:30]line [16:26:30]line [16:26:30]line [16:26:30]line [16:26:30]written 0, free lines is 3283 [16:26:30]MH_Cut [16:26:30]Write to MH i2c: D1 01 00 70 0A 01 4C [16:26:30]Write i2c OK [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: D1 [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: D1 01 00 [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: D1 01 00 70 0A 00 4B [16:26:30]Write to MH i2c: 01 00 00 71 0A 7B [16:26:30]Write i2c OK [16:26:30]MH_I2C_Read... [16:26: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 1D 26 47 00 F0 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 1D 06 01 00 F4 03 04 00 95 38 43 66 B6 04 01 00 00 8C 24 E9 0B 44 79 ED 74 [16:26:31]CommunicateWithHost err = 0 [16:26:31]CheckOFDResponse [16:26:31]1017 (14) - 77093643461234 [16:26:31]1041 (16) - 0000000000871829 [16:26:31]1040 (4) - 67101 [16:26:31]1012 (4) - 14.05.2024 10:10 [16:26:31]1206 (1) - 0 [16:26:31]OFD Sender: Remove packet 67101 [16:26:31]ProducePacketName [16:26:31]name=ofd_packets/00067101 [16:26:31]NVStorageDeleteData [16:26:31]OFD Sender: No OFD packet to send [16:26:31]*** Cut start [16:26:31]*** Purtial cut [16:26:31]*** CUTSNS_PIN = 0 [16:26:31]*** Stage 1: CUTSNS_PIN = 1 [16:26:33]Read from MH i2c: 01 [16:26:33]MH_I2C_Read... [16:26:33]*** Stop cut motor [16:26:33]*** Cut end [16:26:33]Read from MH i2c: 01 07 00 [16:26:33]MH_I2C_Read... [16:26:33]Read from MH i2c: 01 07 00 71 0A 00 00 00 00 00 FF 0F 90 [16:26:33]process_action close_receipt done [16:26:33]requested_data is exist [16:26:33]produce_requested_data [16:26:33]requested_item fm.sn is exist - process it [16:26:33]wFMCommunicate request_size=4 [16:26:33]MH_SAM_APDU [16:26:33]CAPDU: 80 11 00 00 [16:26:33]Write to MH i2c: E2 08 00 72 0A 80 11 00 00 00 00 00 00 F6 [16:26:33]Write i2c OK [16:26:33]MH_I2C_Read... [16:26:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:33]Read from MH i2c: E2 [16:26:33]MH_I2C_Read... [16:26:33]Read from MH i2c: E2 17 00 [16:26:33]MH_I2C_Read... [16:26:33]Read from MH i2c: E2 17 00 72 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4C [16:26:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:26:33]wFMCommunicate OK [16:26:33]requested_item fd.num is exist - process it [16:26:33]SAM_PROTO_GetFieldsCounters [16:26:33]wFMCommunicate request_size=4 [16:26:33]MH_SAM_APDU [16:26:33]CAPDU: 80 13 00 00 [16:26:33]Write to MH i2c: E2 08 00 73 0A 80 13 00 00 00 00 00 00 F9 [16:26:33]Write i2c OK [16:26:33]MH_I2C_Read... [16:26:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:33]Read from MH i2c: E2 [16:26:33]MH_I2C_Read... [16:26:33]Read from MH i2c: E2 62 00 [16:26:33]MH_I2C_Read... [16:26:33]Read from MH i2c: E2 62 00 73 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 1D 06 01 00 0E 04 04 00 63 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 EB [16:26: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 1D 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:33]wFMCommunicate OK [16:26:33]SAM_PROTO_GetFieldsCounters done [16:26:33]requested_item shift.num is exist - process it [16:26:33]requested_item shift.opened is exist - process it [16:26:33]req_shift_opened [16:26:33]FM_GetShiftState [16:26:33]SAM_PROTO_GetShiftState [16:26:33]wFMCommunicate request_size=4 [16:26:33]MH_SAM_APDU [16:26:33]CAPDU: 80 13 01 00 [16:26:33]Write to MH i2c: E2 08 00 74 0A 80 13 01 00 00 00 00 00 FB [16:26:33]Write i2c OK [16:26:33]MH_I2C_Read... [16:26:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:33]Read from MH i2c: E2 [16:26:33]MH_I2C_Read... [16:26:33]Read from MH i2c: E2 0E 00 [16:26:33]MH_I2C_Read... [16:26:33]Read from MH i2c: E2 0E 00 74 0A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 C3 [16:26:33]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:26:33]wFMCommunicate OK [16:26:33]SAM_PROTO_GetShiftState done [16:26:33]FM_GetShiftState done [16:26:33]req_shift_opened done [16:26:33]requested_item shift.open_date is exist - process it [16:26:33]req_shift_open_date [16:26:33]req_shift_open_date done [16:26:33]produce_requested_data done [16:26:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67101,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [16:26:33]process_action_free close_receipt [16:26:33]json_value_free [16:26:33]json_value_free done [16:26:33]process_json_proto returns [16:26:33]Send response to host [16:26:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67101,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [16:26:33]free response buf [16:26:33]execute_script done [16:26:33]execute_script returns [16:26:33]free content buf [16:26:33]Sock 7.Close socket [16:26:33]Sock 7.Thread stoped [16:26:36]OFD Sender: No OFD packet to send [16:26:41]OFD Sender: No OFD packet to send [16:26:46]OFD Sender: No OFD packet to send [16:26:51]OFD Sender: No OFD packet to send [16:26:56]OFD Sender: No OFD packet to send [16:27:01]OFD Sender: No OFD packet to send [16:27:06]OFD Sender: No OFD packet to send [16:27:11]OFD Sender: No OFD packet to send [16:27:16]OFD Sender: No OFD packet to send [16:27:21]OFD Sender: No OFD packet to send [16:27:26]OFD Sender: No OFD packet to send [16:27:31]OFD Sender: No OFD packet to send [16:27:36]OFD Sender: No OFD packet to send [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:51]OFD Sender: No OFD packet to send [16:27:56]OFD Sender: No OFD packet to send [16:28:01]OFD Sender: No OFD packet to send [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]accept exits with 9 [16:29:21]New connection [16:29:21]New thread 3067485540 created [16:29:21]Thread 3067628900 joined [16:29:21]Waiting for new connection... [16:29:21] Sock 9.Parse request [16:29:21]Sock 9.Check first char [16:29:21]Sock 9.First char is OK [16:29:21]request: POST /json_proto HTTP/1.0 [16:29:21]Method: POST [16:29:21]URL: /json_proto [16:29:21]Method is POST - this is cgi request [16:29:21]url: /json_proto [16:29:21]query_string will be loaded in cgi processing [16:29:21]execute_cgi json_proto POST (null) [16:29:21]execute_cgi path=json_proto method=POST [16:29:21]POST find Content-Length [16:29:21]Host: 172.17.41.195:8080 [16:29:21]Content-Length: 678 [16:29:21]Content-Type: application/json [16:29:21] [16:29:21]POST finish read [16:29:21]Found Content-Length = 678 [16:29:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.480, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [16:29:21]execute_script... [16: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)506993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.480, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [16:29:21]POST & json_proto [16:29:21]process_json_proto [16:29:21]json parsed OK: [16:29:21]protocol is kg_v1.0 [16:29:21]action value=close_receipt [16:29:21]process_action close_receipt [16:29:21]cmd_close_receipt [16:29:21]MH_GetDate [16:29:21]Write to MH i2c: F0 00 00 75 0A 6E [16:29:21]Write i2c OK [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: F0 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: F0 09 00 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: F0 09 00 75 0A 00 62 91 43 66 FC 21 6F 64 03 [16:29:21]GetLastDocTimeStamp 1715703989 [16:29:21]current date 1715704162 [16:29:21]FM_GetShiftState [16:29:21]SAM_PROTO_GetShiftState [16:29:21]wFMCommunicate request_size=4 [16:29:21]MH_SAM_APDU [16:29:21]CAPDU: 80 13 01 00 [16:29:21]Write to MH i2c: E2 08 00 76 0A 80 13 01 00 00 00 00 00 FD [16:29:21]Write i2c OK [16:29:21]MH_I2C_Read... [16:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:21]Read from MH i2c: E2 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: E2 0E 00 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: E2 0E 00 76 0A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 C5 [16:29:21]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:29:21]wFMCommunicate OK [16:29:21]SAM_PROTO_GetShiftState done [16:29:21]FM_GetShiftState done [16:29:21]opened in 1715646054 [16:29:21]opened+sec_in_day 1715732454 [16:29:21]quantity*price = 70006 [16:29:21]sum+1 = 70007 [16:29:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 109 14.05.2024 16:29 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67102 ФПД: 274446502462669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T162922&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67102&fm=274446502462669&tin=02508201610067®Number=0000000000091845&sum=70000 [16:29:22]StoreToDocumentArchive [16:29:22]shift 355 fd 67102 [16:29:22]save to /storage/0355/doc_00067102 [16:29:22]save last doc name /storage/0355/doc_00067102 to /storage/kkm_last_doc_name [16:29:22]save OK [16:29:22]Clear old archive folders... [16:29:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:22]tlvbuf is B6F4D7F0 [16:29:22]SAM_PROTO_ClearQueue [16:29:22]wFMCommunicate request_size=4 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 09 00 00 [16:29:22]Write to MH i2c: E2 08 00 83 0A 80 09 00 00 00 00 00 00 FF [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 83 0A 00 90 00 01 [16:29:22]RAPDU: 90 00 [16:29:22]wFMCommunicate OK [16:29:22]SAM_PROTO_ClearQueue done [16:29:22]KKMCreateOFDPacket [16:29:22]OFDProtocolAddRootSTLVToBuf [16:29:22]FM_MakeSignedData [16:29:22]FM_MakeSignedData [16:29:22]SAM_PROTO_SignData [16:29:22]wFMCommunicate request_size=4 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 0D 01 02 [16:29:22]Write to MH i2c: E2 08 00 84 0A 80 0D 01 02 00 00 00 00 07 [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 84 0A 00 90 00 02 [16:29:22]RAPDU: 90 00 [16:29:22]wFMCommunicate OK [16:29:22]wFMCommunicate request_size=255 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 62 91 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F9 [16:29:22]Write to MH i2c: E2 02 01 85 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 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 6D 00 00 00 F4 03 04 00 62 91 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F9 00 00 0B [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 85 0A 00 90 00 03 [16:29:22]RAPDU: 90 00 [16:29:22]wFMCommunicate OK [16:29:22]wFMCommunicate request_size=10 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 0D 02 02 05 9B 8E 4A 04 CD [16:29:22]Write to MH i2c: E2 0D 00 86 0A 80 0D 02 02 05 00 9B 8E 4A 04 CD 00 00 58 [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 86 0A 00 90 00 04 [16:29:22]RAPDU: 90 00 [16:29:22]wFMCommunicate OK [16:29:22]wFMCommunicate request_size=4 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 0D 03 02 [16:29:22]Write to MH i2c: E2 08 00 87 0A 80 0D 03 02 00 00 00 00 0C [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:23]Read from MH i2c: E2 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: E2 0B 00 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: E2 0B 00 87 0A 00 2A 94 9D F6 70 B7 AF FF 90 00 33 [16:29:23]RAPDU: 2A 94 9D F6 70 B7 AF FF 90 00 [16:29:23]wFMCommunicate OK [16:29:23]SAM_PROTO_SignData done [16:29:23]FM_MakeSignedData done [16:29:23]CreateOFDProtocolMessage [16:29:23]wFMCommunicate request_size=4 [16:29:23]MH_SAM_APDU [16:29:23]CAPDU: 80 11 00 00 [16:29:23]Write to MH i2c: E2 08 00 88 0A 80 11 00 00 00 00 00 00 0C [16:29:23]Write i2c OK [16:29:23]MH_I2C_Read... [16:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:23]Read from MH i2c: E2 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: E2 17 00 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: E2 17 00 88 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 62 [16:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:29:23]wFMCommunicate OK [16:29:23]CreateOFDProtocolMessage done [16:29:23]OFDSenderStorePacket 67102 [16:29:23]StoreOFDPacket docnum=67102 [16:29:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 BE 34 07 01 BB 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6D 00 00 00 F4 03 04 00 62 91 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F9 9B 8E 4A 04 CD 2A 94 9D F6 70 B7 AF FF [16:29:23]CheckFolder [16:29:23]dirname=/storage/ofd_packets [16:29:23]CheckFolder done [16:29:23]ProducePacketName [16:29:23]name=ofd_packets/00067102 [16:29:23]NVStorageSaveData ofd_packets/00067102 [16:29:23]File name is /storage/ofd_packets/00067102 [16:29:23]Write 301 bytes [16:29:23]NVStorageSaveData done [16:29:23]OFDSenderStorePacket done [16:29:23]KKMCreateOFDPacket done [16:29:23]NVStorageSaveData kkm_last_timestamp [16:29:23]File name is /storage/kkm_last_timestamp [16:29:23]Write 4 bytes [16:29:23]NVStorageSaveData done [16:29:23]ExternCall_PrintAddStr [16:29:23]wPrintStart [16:29:23]Write to MH i2c: 01 00 00 89 0A 93 [16:29:23]Write i2c OK [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: 01 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: 01 07 00 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: 01 07 00 89 0A 00 00 00 00 00 FF 0F A8 [16:29:23]RasterBufferAndPrint [16:29:23]line Счет N : (1)506993 [16:29:23]line ИНН: 02508201610067 [16:29:23]line Контрольно-Кассовый Чек [16:29:23]line ПРОДАЖА [16:29:23]line ТРК (МРК, ГНК) : 43 [16:29:23]line Товар: 2710124130 [16:29:23]line Аи-92-К-5 [16:29:23]line 10.480 * 66.80 [16:29:23]line = 700.06 [16:29:23]line НДС 12% НСП 1% [16:29:23]line > о реализуемом товаре [16:29:23]line ОКРУГЛЕНИЕ: -0.06 [16:29:23]line ИТОГО: 700.00 [16:29:23]line Внесено: 700.00 [16:29:23]line СДАЧА: 0.00 [16:29:23]line НСП 1% : 6.19 [16:29:23]line НДС 12% : 74.34 [16:29:23]line Наличными: 700.00 [16:29:23]line Безнал.: 0.00 [16:29:23]line Место: АЗС № 91 "Партнер Нефть" [16:29:23]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:29:23]line СНО: Общий режим [16:29:23]line Чек 109 14.05.2024 16:29 [16:29:23]line Смена: 355 ФФД: 1.0 [16:29:23]line ЗНМ: 0300000119 [16:29:23]line РНМ: 0000000000091845 [16:29:23]line Версия ККМ: 001 [16:29:23]line ФМ: 0000000000871829 [16:29:23]line ФД: 67102 [16:29:23]line ФПД: 274446502462669 [16:29:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T162922&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67102&fm=274446502462669&tin=02508201610067®Number=0000000000091845&sum=70000 [16:29:23]OFD Sender: Processing packet 67102 [packets to send 35, broken 34] [16:29:23]ProducePacketName [16:29:23]name=ofd_packets/00067102 [16:29:23]OFD Sender: To server: pG, [16:29:23]CommunicateWithHost lk.salyk.kg:30040 [16:29:23]ConnectInit lk.salyk.kg [16:29:23]written 0, free lines is 4095 [16:29:23]Connected sock=10 [16:29:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 BE 34 07 01 BB 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6D 00 00 00 F4 03 04 00 62 91 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F9 9B 8E 4A 04 CD 2A 94 9D F6 70 B7 AF FF [16: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 56 6D 47 00 4D 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 1E 06 01 00 F4 03 04 00 41 39 43 66 B6 04 01 00 00 36 1C 55 4D F7 E6 8C A4 [16:29:23]CommunicateWithHost err = 0 [16:29:23]CheckOFDResponse [16:29:23]1017 (14) - 77093643461234 [16:29:23]1041 (16) - 0000000000871829 [16:29:23]1040 (4) - 67102 [16:29:23]1012 (4) - 14.05.2024 10:13 [16:29:23]1206 (1) - 0 [16:29:23]OFD Sender: Remove packet 67102 [16:29:23]ProducePacketName [16:29:23]name=ofd_packets/00067102 [16:29:23]NVStorageDeleteData [16:29:23]Write to MH i2c: 01 00 00 B3 0A BD [16:29:23]Write i2c OK [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: 01 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: 01 07 00 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: 01 07 00 B3 0A 00 00 00 00 00 C9 0C 99 [16:29:23]RasterBufferAndPrint [16:29:23]line [16:29:23]line [16:29:23]line [16:29:23]line [16:29:23]line [16:29:23]written 0, free lines is 3279 [16:29:23]MH_Cut [16:29:23]Write to MH i2c: D1 01 00 BA 0A 01 96 [16:29:23]Write i2c OK [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: D1 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: D1 01 00 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: D1 01 00 BA 0A 00 95 [16:29:23]Write to MH i2c: 01 00 00 BB 0A C5 [16:29:23]Write i2c OK [16:29:23]MH_I2C_Read... [16:29:24]OFD Sender: No OFD packet to send [16:29:24]*** Cut start [16:29:24]*** Purtial cut [16:29:24]*** Stage 1: CUTSNS_PIN = 1 [16:29:24]Read from MH i2c: 01 [16:29:24]MH_I2C_Read... [16:29:24]*** Stop cut motor [16:29:24]*** Cut end [16:29:24]Read from MH i2c: 01 07 00 [16:29:24]MH_I2C_Read... [16:29:24]Read from MH i2c: 01 07 00 BB 0A 00 00 00 00 00 FF 0F DA [16:29:24]process_action close_receipt done [16:29:24]requested_data is exist [16:29:24]produce_requested_data [16:29:24]requested_item fm.sn is exist - process it [16:29:24]wFMCommunicate request_size=4 [16:29:24]MH_SAM_APDU [16:29:24]CAPDU: 80 11 00 00 [16:29:24]Write to MH i2c: E2 08 00 BC 0A 80 11 00 00 00 00 00 00 40 [16:29:24]Write i2c OK [16:29:24]MH_I2C_Read... [16:29:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:25]Read from MH i2c: E2 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 17 00 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 17 00 BC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 96 [16:29:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:29:25]wFMCommunicate OK [16:29:25]requested_item fd.num is exist - process it [16:29:25]SAM_PROTO_GetFieldsCounters [16:29:25]wFMCommunicate request_size=4 [16:29:25]MH_SAM_APDU [16:29:25]CAPDU: 80 13 00 00 [16:29:25]Write to MH i2c: E2 08 00 BD 0A 80 13 00 00 00 00 00 00 43 [16:29:25]Write i2c OK [16:29:25]MH_I2C_Read... [16:29:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:25]Read from MH i2c: E2 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 62 00 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 62 00 BD 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 1E 06 01 00 0E 04 04 00 63 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 39 [16:29:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 1E 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:25]wFMCommunicate OK [16:29:25]SAM_PROTO_GetFieldsCounters done [16:29:25]requested_item shift.num is exist - process it [16:29:25]requested_item shift.opened is exist - process it [16:29:25]req_shift_opened [16:29:25]FM_GetShiftState [16:29:25]SAM_PROTO_GetShiftState [16:29:25]wFMCommunicate request_size=4 [16:29:25]MH_SAM_APDU [16:29:25]CAPDU: 80 13 01 00 [16:29:25]Write to MH i2c: E2 08 00 BE 0A 80 13 01 00 00 00 00 00 45 [16:29:25]Write i2c OK [16:29:25]MH_I2C_Read... [16:29:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:25]Read from MH i2c: E2 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 0E 00 [16:29:25]MH_I2C_Read... [16:29:25]Read from MH i2c: E2 0E 00 BE 0A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 0D [16:29:25]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:29:25]wFMCommunicate OK [16:29:25]SAM_PROTO_GetShiftState done [16:29:25]FM_GetShiftState done [16:29:25]req_shift_opened done [16:29:25]requested_item shift.open_date is exist - process it [16:29:25]req_shift_open_date [16:29:25]req_shift_open_date done [16:29:25]produce_requested_data done [16:29:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67102,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [16:29:25]process_action_free close_receipt [16:29:25]json_value_free [16:29:25]json_value_free done [16:29:25]process_json_proto returns [16:29:25]Send response to host [16:29:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67102,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [16:29:25]free response buf [16:29:25]execute_script done [16:29:25]execute_script returns [16:29:25]free content buf [16:29:25]Sock 9.Close socket [16:29:25]Sock 9.Thread stoped [16:29:29]OFD Sender: No OFD packet to send [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:59]OFD Sender: No OFD packet to send [16:30:01]accept exits with 7 [16:30:01]New connection [16:30:01]New thread 3067628900 created [16:30:01]Thread 3067485540 joined [16:30:01]Waiting for new connection... [16:30:01] Sock 7.Parse request [16:30:01]Sock 7.Check first char [16:30:01]Sock 7.First char is OK [16:30:01]request: POST /json_proto HTTP/1.0 [16:30:01]Method: POST [16:30:01]URL: /json_proto [16:30:01]Method is POST - this is cgi request [16:30:01]url: /json_proto [16:30:01]query_string will be loaded in cgi processing [16:30:01]execute_cgi json_proto POST (null) [16:30:01]execute_cgi path=json_proto method=POST [16:30:01]POST find Content-Length [16:30:01]Host: 172.17.41.195:8080 [16:30:01]Content-Length: 679 [16:30:01]Content-Type: application/json [16:30:01] [16:30:01]POST finish read [16:30:01]Found Content-Length = 679 [16:30:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506994", "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" : 21.420, "sum" : 1600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:01]execute_script... [16:30:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506994", "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" : 21.420, "sum" : 1600.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:01]POST & json_proto [16:30:01]process_json_proto [16:30:01]json parsed OK: [16:30:01]protocol is kg_v1.0 [16:30:01]action value=close_receipt [16:30:01]process_action close_receipt [16:30:01]cmd_close_receipt [16:30:01]MH_GetDate [16:30:01]Write to MH i2c: F0 00 00 BF 0A B8 [16:30:01]Write i2c OK [16:30:01]MH_I2C_Read... [16:30:01]Read from MH i2c: F0 [16:30:01]MH_I2C_Read... [16:30:01]Read from MH i2c: F0 09 00 [16:30:01]MH_I2C_Read... [16:30:01]Read from MH i2c: F0 09 00 BF 0A 00 8A 91 43 66 FC 21 6F 64 75 [16:30:01]GetLastDocTimeStamp 1715704162 [16:30:01]current date 1715704202 [16:30:01]FM_GetShiftState [16:30:01]SAM_PROTO_GetShiftState [16:30:01]wFMCommunicate request_size=4 [16:30:01]MH_SAM_APDU [16:30:01]CAPDU: 80 13 01 00 [16:30:01]Write to MH i2c: E2 08 00 C0 0A 80 13 01 00 00 00 00 00 47 [16:30:01]Write i2c OK [16:30:01]MH_I2C_Read... [16:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:01]Read from MH i2c: E2 [16:30:01]MH_I2C_Read... [16:30:01]Read from MH i2c: E2 0E 00 [16:30:01]MH_I2C_Read... [16:30:01]Read from MH i2c: E2 0E 00 C0 0A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 0F [16:30:01]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:30:01]wFMCommunicate OK [16:30:01]SAM_PROTO_GetShiftState done [16:30:01]FM_GetShiftState done [16:30:01]opened in 1715646054 [16:30:01]opened+sec_in_day 1715732454 [16:30:01]quantity*price = 160007 [16:30:01]sum+1 = 160008 [16:30:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.92 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 110 14.05.2024 16:30 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67103 ФПД: 151222513186097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T163002&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67103&fm=151222513186097&tin=02508201610067®Number=0000000000091845&sum=160000 [16:30:02]StoreToDocumentArchive [16:30:02]shift 355 fd 67103 [16:30:02]save to /storage/0355/doc_00067103 [16:30:02]save last doc name /storage/0355/doc_00067103 to /storage/kkm_last_doc_name [16:30:02]save OK [16:30:02]Clear old archive folders... [16:30:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:30:02]tlvbuf is 00828CD0 [16:30:02]SAM_PROTO_ClearQueue [16:30:02]wFMCommunicate request_size=4 [16:30:02]MH_SAM_APDU [16:30:02]CAPDU: 80 09 00 00 [16:30:02]Write to MH i2c: E2 08 00 CD 0A 80 09 00 00 00 00 00 00 49 [16:30:02]Write i2c OK [16:30:02]MH_I2C_Read... [16:30:02]Read from MH i2c: E2 [16:30:02]MH_I2C_Read... [16:30:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:02]Read from MH i2c: E2 03 00 [16:30:02]MH_I2C_Read... [16:30:02]Read from MH i2c: E2 03 00 CD 0A 00 90 00 4B [16:30:02]RAPDU: 90 00 [16:30:02]wFMCommunicate OK [16:30:02]SAM_PROTO_ClearQueue done [16:30:02]KKMCreateOFDPacket [16:30:02]OFDProtocolAddRootSTLVToBuf [16:30:02]FM_MakeSignedData [16:30:02]FM_MakeSignedData [16:30:02]SAM_PROTO_SignData [16:30:02]wFMCommunicate request_size=4 [16:30:02]MH_SAM_APDU [16:30:02]CAPDU: 80 0D 01 02 [16:30:02]Write to MH i2c: E2 08 00 CE 0A 80 0D 01 02 00 00 00 00 51 [16:30:02]Write i2c OK [16:30:02]MH_I2C_Read... [16:30:02]Read from MH i2c: E2 [16:30:02]MH_I2C_Read... [16:30:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:02]Read from MH i2c: E2 03 00 [16:30:02]MH_I2C_Read... [16:30:02]Read from MH i2c: E2 03 00 CE 0A 00 90 00 4C [16:30:02]RAPDU: 90 00 [16:30:02]wFMCommunicate OK [16:30:02]wFMCommunicate request_size=255 [16:30:02]MH_SAM_APDU [16:30:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 53 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 07 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 8A 91 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 89 89 3C 2E [16:30:02]Write to MH i2c: E2 02 01 CF 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 AC 53 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 07 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 8A 91 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 89 89 3C 2E 00 00 C4 [16:30:02]Write i2c OK [16:30:02]MH_I2C_Read... [16:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:03]Read from MH i2c: E2 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: E2 03 00 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: E2 03 00 CF 0A 00 90 00 4D [16:30:03]RAPDU: 90 00 [16:30:03]wFMCommunicate OK [16:30:03]wFMCommunicate request_size=7 [16:30:03]MH_SAM_APDU [16:30:03]CAPDU: 80 0D 02 02 02 35 31 [16:30:03]Write to MH i2c: E2 0A 00 D0 0A 80 0D 02 02 02 00 35 31 00 00 BE [16:30:03]Write i2c OK [16:30:03]MH_I2C_Read... [16:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:03]Read from MH i2c: E2 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: E2 03 00 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: E2 03 00 D0 0A 00 90 00 4E [16:30:03]RAPDU: 90 00 [16:30:03]wFMCommunicate OK [16:30:03]wFMCommunicate request_size=4 [16:30:03]MH_SAM_APDU [16:30:03]CAPDU: 80 0D 03 02 [16:30:03]Write to MH i2c: E2 08 00 D1 0A 80 0D 03 02 00 00 00 00 56 [16:30:03]Write i2c OK [16:30:03]MH_I2C_Read... [16:30:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:03]Read from MH i2c: E2 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: E2 0B 00 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: E2 0B 00 D1 0A 00 A8 77 B3 4D D7 7A 62 C0 90 00 E9 [16:30:03]RAPDU: A8 77 B3 4D D7 7A 62 C0 90 00 [16:30:03]wFMCommunicate OK [16:30:03]SAM_PROTO_SignData done [16:30:03]FM_MakeSignedData done [16:30:03]CreateOFDProtocolMessage [16:30:03]wFMCommunicate request_size=4 [16:30:03]MH_SAM_APDU [16:30:03]CAPDU: 80 11 00 00 [16:30:03]Write to MH i2c: E2 08 00 D2 0A 80 11 00 00 00 00 00 00 56 [16:30:03]Write i2c OK [16:30:03]MH_I2C_Read... [16:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:03]Read from MH i2c: E2 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: E2 17 00 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: E2 17 00 D2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AC [16:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:30:03]wFMCommunicate OK [16:30:03]CreateOFDProtocolMessage done [16:30:03]OFDSenderStorePacket 67103 [16:30:03]StoreOFDPacket docnum=67103 [16:30:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 43 BD 04 01 E3 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 53 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 07 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 8A 91 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 89 89 3C 2E 35 31 A8 77 B3 4D D7 7A 62 C0 [16:30:03]CheckFolder [16:30:03]dirname=/storage/ofd_packets [16:30:03]CheckFolder done [16:30:03]ProducePacketName [16:30:03]name=ofd_packets/00067103 [16:30:03]NVStorageSaveData ofd_packets/00067103 [16:30:03]File name is /storage/ofd_packets/00067103 [16:30:03]Write 298 bytes [16:30:03]NVStorageSaveData done [16:30:03]OFDSenderStorePacket done [16:30:03]KKMCreateOFDPacket done [16:30:03]NVStorageSaveData kkm_last_timestamp [16:30:03]File name is /storage/kkm_last_timestamp [16:30:03]Write 4 bytes [16:30:03]NVStorageSaveData done [16:30:03]ExternCall_PrintAddStr [16:30:03]wPrintStart [16:30:03]Write to MH i2c: 01 00 00 D3 0A DD [16:30:03]Write i2c OK [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: 01 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: 01 07 00 [16:30:03]MH_I2C_Read... [16:30:03]Read from MH i2c: 01 07 00 D3 0A 00 00 00 00 00 FF 0F F2 [16:30:03]RasterBufferAndPrint [16:30:03]line Счет N : (1)506994 [16:30:03]line ИНН: 02508201610067 [16:30:03]line Контрольно-Кассовый Чек [16:30:03]line ПРОДАЖА [16:30:03]line ТРК (МРК, ГНК) : 21 [16:30:03]line Товар: 2710194210 [16:30:03]line ДТ-К-5 [16:30:03]line 21.420 * 74.70 [16:30:03]line = 1600.07 [16:30:03]line НДС 12% НСП 1% [16:30:03]line > о реализуемом товаре [16:30:03]line ОКРУГЛЕНИЕ: -0.07 [16:30:03]line ИТОГО: 1600.00 [16:30:03]line Внесено: 1600.00 [16:30:03]line СДАЧА: 0.00 [16:30:03]line НСП 1% : 14.16 [16:30:03]line НДС 12% : 169.92 [16:30:03]line Наличными: 1600.00 [16:30:03]line Безнал.: 0.00 [16:30:03]line Место: АЗС № 91 "Партнер Нефть" [16:30:03]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:30:03]line СНО: Общий режим [16:30:03]line Чек 110 14.05.2024 16:30 [16:30:03]line Смена: 355 ФФД: 1.0 [16:30:03]line ЗНМ: 0300000119 [16:30:03]line РНМ: 0000000000091845 [16:30:03]line Версия ККМ: 001 [16:30:03]line ФМ: 0000000000871829 [16:30:03]line ФД: 67103 [16:30:03]line ФПД: 151222513186097 [16:30:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T163002&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67103&fm=151222513186097&tin=02508201610067®Number=0000000000091845&sum=160000 [16:30:03]OFD Sender: Processing packet 67103 [packets to send 35, broken 34] [16:30:03]ProducePacketName [16:30:03]name=ofd_packets/00067103 [16:30:03]OFD Sender: To server: pG, [16:30:03]CommunicateWithHost lk.salyk.kg:30040 [16:30:03]ConnectInit lk.salyk.kg [16:30:03]written 0, free lines is 4095 [16:30:03]Connected sock=10 [16:30:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 43 BD 04 01 E3 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC 53 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 07 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 8A 91 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 89 89 3C 2E 35 31 A8 77 B3 4D D7 7A 62 C0 [16:30: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 19 D7 47 00 D3 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 1F 06 01 00 F4 03 04 00 6A 39 43 66 B6 04 01 00 00 B2 17 B2 AE D6 3E 77 EE [16:30:04]CommunicateWithHost err = 0 [16:30:04]CheckOFDResponse [16:30:04]1017 (14) - 77093643461234 [16:30:04]1041 (16) - 0000000000871829 [16:30:04]1040 (4) - 67103 [16:30:04]1012 (4) - 14.05.2024 10:14 [16:30:04]1206 (1) - 0 [16:30:04]OFD Sender: Remove packet 67103 [16:30:04]ProducePacketName [16:30:04]name=ofd_packets/00067103 [16:30:04]NVStorageDeleteData [16:30:04]Write to MH i2c: 01 00 00 FD 0A 07 [16:30:04]Write i2c OK [16:30:04]MH_I2C_Read... [16:30:04]Read from MH i2c: 01 [16:30:04]MH_I2C_Read... [16:30:04]Read from MH i2c: 01 07 00 [16:30:04]MH_I2C_Read... [16:30:04]Read from MH i2c: 01 07 00 FD 0A 00 00 00 00 00 C4 0C DE [16:30:04]RasterBufferAndPrint [16:30:04]line [16:30:04]line [16:30:04]line [16:30:04]line [16:30:04]line [16:30:04]written 0, free lines is 3273 [16:30:04]MH_Cut [16:30:04]Write to MH i2c: D1 01 00 04 0B 01 E1 [16:30:04]Write i2c OK [16:30:04]MH_I2C_Read... [16:30:04]Read from MH i2c: D1 [16:30:04]MH_I2C_Read... [16:30:04]Read from MH i2c: D1 01 00 [16:30:04]MH_I2C_Read... [16:30:04]Read from MH i2c: D1 01 00 04 0B 00 E0 [16:30:04]Write to MH i2c: 01 00 00 05 0B 10 [16:30:04]Write i2c OK [16:30:04]MH_I2C_Read... [16:30:04]OFD Sender: No OFD packet to send [16:30:04]*** Cut start [16:30:04]*** Purtial cut [16:30:04]*** CUTSNS_PIN = 0 [16:30:05]*** Stage 1: CUTSNS_PIN = 1 [16:30:06]Read from MH i2c: 01 [16:30:06]MH_I2C_Read... [16:30:06]*** Stop cut motor [16:30:06]*** Cut end [16:30:06]Read from MH i2c: 01 07 00 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: 01 07 00 05 0B 00 00 00 00 00 FF 0F 25 [16:30:06]process_action close_receipt done [16:30:06]requested_data is exist [16:30:06]produce_requested_data [16:30:06]requested_item fm.sn is exist - process it [16:30:06]wFMCommunicate request_size=4 [16:30:06]MH_SAM_APDU [16:30:06]CAPDU: 80 11 00 00 [16:30:06]Write to MH i2c: E2 08 00 06 0B 80 11 00 00 00 00 00 00 8B [16:30:06]Write i2c OK [16:30:06]MH_I2C_Read... [16:30:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:07]Read from MH i2c: E2 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 17 00 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 17 00 06 0B 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:30: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:30:07]wFMCommunicate OK [16:30:07]requested_item fd.num is exist - process it [16:30:07]SAM_PROTO_GetFieldsCounters [16:30:07]wFMCommunicate request_size=4 [16:30:07]MH_SAM_APDU [16:30:07]CAPDU: 80 13 00 00 [16:30:07]Write to MH i2c: E2 08 00 07 0B 80 13 00 00 00 00 00 00 8E [16:30:07]Write i2c OK [16:30:07]MH_I2C_Read... [16:30:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:07]Read from MH i2c: E2 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 62 00 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 62 00 07 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 1F 06 01 00 0E 04 04 00 63 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 88 [16:30: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 1F 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:30:07]wFMCommunicate OK [16:30:07]SAM_PROTO_GetFieldsCounters done [16:30:07]requested_item shift.num is exist - process it [16:30:07]requested_item shift.opened is exist - process it [16:30:07]req_shift_opened [16:30:07]FM_GetShiftState [16:30:07]SAM_PROTO_GetShiftState [16:30:07]wFMCommunicate request_size=4 [16:30:07]MH_SAM_APDU [16:30:07]CAPDU: 80 13 01 00 [16:30:07]Write to MH i2c: E2 08 00 08 0B 80 13 01 00 00 00 00 00 90 [16:30:07]Write i2c OK [16:30:07]MH_I2C_Read... [16:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:07]Read from MH i2c: E2 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 0E 00 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 0E 00 08 0B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 58 [16:30:07]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:30:07]wFMCommunicate OK [16:30:07]SAM_PROTO_GetShiftState done [16:30:07]FM_GetShiftState done [16:30:07]req_shift_opened done [16:30:07]requested_item shift.open_date is exist - process it [16:30:07]req_shift_open_date [16:30:07]req_shift_open_date done [16:30:07]produce_requested_data done [16:30:07]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67103,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [16:30:07]process_action_free close_receipt [16:30:07]json_value_free [16:30:07]json_value_free done [16:30:07]process_json_proto returns [16:30:07]Send response to host [16:30:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67103,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [16:30:07]free response buf [16:30:07]execute_script done [16:30:07]execute_script returns [16:30:07]free content buf [16:30:07]Sock 7.Close socket [16:30:07]Sock 7.Thread stoped [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:19]OFD Sender: No OFD packet to send [16:30:24]OFD Sender: No OFD packet to send [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16: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:14]recv_with_timeout no data received [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:19]accept exits with 9 [16:42:19]New connection [16:42:19]New thread 3067485540 created [16:42:19]Thread 3067628900 joined [16:42:19]Waiting for new connection... [16:42:19] Sock 9.Parse request [16:42:19]Sock 9.Check first char [16:42:19]Sock 9.First char is OK [16:42:19]request: POST /json_proto HTTP/1.0 [16:42:19]Method: POST [16:42:19]URL: /json_proto [16:42:19]Method is POST - this is cgi request [16:42:19]url: /json_proto [16:42:19]query_string will be loaded in cgi processing [16:42:19]execute_cgi json_proto POST (null) [16:42:19]execute_cgi path=json_proto method=POST [16:42:19]POST find Content-Length [16:42:19]Host: 172.17.41.195:8080 [16:42:19]Content-Length: 682 [16:42:19]Content-Type: application/json [16:42:19] [16:42:19]POST finish read [16:42:19]Found Content-Length = 682 [16:42:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506996", "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:42:19]execute_script... [16:42: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)506996", "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:42:19]POST & json_proto [16:42:19]process_json_proto [16:42:19]json parsed OK: [16:42:19]protocol is kg_v1.0 [16:42:19]action value=close_receipt [16:42:19]process_action close_receipt [16:42:19]cmd_close_receipt [16:42:19]MH_GetDate [16:42:19]Write to MH i2c: F0 00 00 09 0B 03 [16:42:19]Write i2c OK [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: F0 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: F0 09 00 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: F0 09 00 09 0B 00 6C 94 43 66 FC 21 6F 64 A5 [16:42:19]GetLastDocTimeStamp 1715704202 [16:42:19]current date 1715704940 [16:42:19]FM_GetShiftState [16:42:19]SAM_PROTO_GetShiftState [16:42:19]wFMCommunicate request_size=4 [16:42:19]MH_SAM_APDU [16:42:19]CAPDU: 80 13 01 00 [16:42:19]Write to MH i2c: E2 08 00 0A 0B 80 13 01 00 00 00 00 00 92 [16:42:19]Write i2c OK [16:42:19]MH_I2C_Read... [16:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:19]Read from MH i2c: E2 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 0E 00 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 0E 00 0A 0B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 5A [16:42:19]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:42:19]wFMCommunicate OK [16:42:19]SAM_PROTO_GetShiftState done [16:42:19]FM_GetShiftState done [16:42:19]opened in 1715646054 [16:42:19]opened+sec_in_day 1715732454 [16:42:19]quantity*price = 100066 [16:42:19]sum+1 = 100067 [16:42:19]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 СНО: Общий режим Чек 111 14.05.2024 16:42 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67104 ФПД: 104995378315160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T164220&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67104&fm=104995378315160&tin=02508201610067®Number=0000000000091845&sum=100000 [16:42:20]StoreToDocumentArchive [16:42:20]shift 355 fd 67104 [16:42:20]save to /storage/0355/doc_00067104 [16:42:20]save last doc name /storage/0355/doc_00067104 to /storage/kkm_last_doc_name [16:42:20]save OK [16:42:20]Clear old archive folders... [16:42:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:20]tlvbuf is B6F66B20 [16:42:20]SAM_PROTO_ClearQueue [16:42:20]wFMCommunicate request_size=4 [16:42:20]MH_SAM_APDU [16:42:20]CAPDU: 80 09 00 00 [16:42:20]Write to MH i2c: E2 08 00 17 0B 80 09 00 00 00 00 00 00 94 [16:42:20]Write i2c OK [16:42:20]MH_I2C_Read... [16:42:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:20]Read from MH i2c: E2 [16:42:20]MH_I2C_Read... [16:42:20]Read from MH i2c: E2 03 00 [16:42:20]MH_I2C_Read... [16:42:20]Read from MH i2c: E2 03 00 17 0B 00 90 00 96 [16:42:20]RAPDU: 90 00 [16:42:20]wFMCommunicate OK [16:42:20]SAM_PROTO_ClearQueue done [16:42:20]KKMCreateOFDPacket [16:42:20]OFDProtocolAddRootSTLVToBuf [16:42:20]FM_MakeSignedData [16:42:20]FM_MakeSignedData [16:42:20]SAM_PROTO_SignData [16:42:20]wFMCommunicate request_size=4 [16:42:20]MH_SAM_APDU [16:42:20]CAPDU: 80 0D 01 02 [16:42:20]Write to MH i2c: E2 08 00 18 0B 80 0D 01 02 00 00 00 00 9C [16:42:20]Write i2c OK [16:42:20]MH_I2C_Read... [16:42:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:20]Read from MH i2c: E2 [16:42:20]MH_I2C_Read... [16:42:20]Read from MH i2c: E2 03 00 [16:42:20]MH_I2C_Read... [16:42:20]Read from MH i2c: E2 03 00 18 0B 00 90 00 97 [16:42:20]RAPDU: 90 00 [16:42:20]wFMCommunicate OK [16:42:20]wFMCommunicate request_size=255 [16:42:20]MH_SAM_APDU [16:42: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 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 6F 00 00 00 F4 03 04 00 6C 94 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5F [16:42:20]Write to MH i2c: E2 02 01 19 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 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 6F 00 00 00 F4 03 04 00 6C 94 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5F 00 00 77 [16:42:20]Write i2c OK [16:42:20]MH_I2C_Read... [16:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:21]Read from MH i2c: E2 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 03 00 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 03 00 19 0B 00 90 00 98 [16:42:21]RAPDU: 90 00 [16:42:21]wFMCommunicate OK [16:42:21]wFMCommunicate request_size=10 [16:42:21]MH_SAM_APDU [16:42:21]CAPDU: 80 0D 02 02 05 7E 24 3A 3F 98 [16:42:21]Write to MH i2c: E2 0D 00 1A 0B 80 0D 02 02 05 00 7E 24 3A 3F 98 00 00 5C [16:42:21]Write i2c OK [16:42:21]MH_I2C_Read... [16:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:21]Read from MH i2c: E2 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 03 00 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 03 00 1A 0B 00 90 00 99 [16:42:21]RAPDU: 90 00 [16:42:21]wFMCommunicate OK [16:42:21]wFMCommunicate request_size=4 [16:42:21]MH_SAM_APDU [16:42:21]CAPDU: 80 0D 03 02 [16:42:21]Write to MH i2c: E2 08 00 1B 0B 80 0D 03 02 00 00 00 00 A1 [16:42:21]Write i2c OK [16:42:21]MH_I2C_Read... [16:42:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:21]Read from MH i2c: E2 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 0B 00 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 0B 00 1B 0B 00 E5 4E C7 0E 02 83 88 B8 90 00 6F [16:42:21]RAPDU: E5 4E C7 0E 02 83 88 B8 90 00 [16:42:21]wFMCommunicate OK [16:42:21]SAM_PROTO_SignData done [16:42:21]FM_MakeSignedData done [16:42:21]CreateOFDProtocolMessage [16:42:21]wFMCommunicate request_size=4 [16:42:21]MH_SAM_APDU [16:42:21]CAPDU: 80 11 00 00 [16:42:21]Write to MH i2c: E2 08 00 1C 0B 80 11 00 00 00 00 00 00 A1 [16:42:21]Write i2c OK [16:42:21]MH_I2C_Read... [16:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:21]Read from MH i2c: E2 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 17 00 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 17 00 1C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F7 [16:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:42:21]wFMCommunicate OK [16:42:21]CreateOFDProtocolMessage done [16:42:21]OFDSenderStorePacket 67104 [16:42:21]StoreOFDPacket docnum=67104 [16:42: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 FA 75 07 01 3C 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 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 6F 00 00 00 F4 03 04 00 6C 94 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5F 7E 24 3A 3F 98 E5 4E C7 0E 02 83 88 B8 [16:42:21]CheckFolder [16:42:21]dirname=/storage/ofd_packets [16:42:21]CheckFolder done [16:42:21]ProducePacketName [16:42:21]name=ofd_packets/00067104 [16:42:21]NVStorageSaveData ofd_packets/00067104 [16:42:21]File name is /storage/ofd_packets/00067104 [16:42:21]Write 301 bytes [16:42:21]NVStorageSaveData done [16:42:21]OFDSenderStorePacket done [16:42:21]KKMCreateOFDPacket done [16:42:21]NVStorageSaveData kkm_last_timestamp [16:42:21]File name is /storage/kkm_last_timestamp [16:42:21]Write 4 bytes [16:42:21]NVStorageSaveData done [16:42:21]ExternCall_PrintAddStr [16:42:21]wPrintStart [16:42:21]Write to MH i2c: 01 00 00 1D 0B 28 [16:42:21]Write i2c OK [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: 01 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: 01 07 00 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: 01 07 00 1D 0B 00 00 00 00 00 FF 0F 3D [16:42:21]RasterBufferAndPrint [16:42:21]line Счет N : (1)506996 [16:42:21]line ИНН: 02508201610067 [16:42:21]line Контрольно-Кассовый Чек [16:42:21]line ПРОДАЖА [16:42:21]line ТРК (МРК, ГНК) : 43 [16:42:21]line Товар: 2710124130 [16:42:21]line Аи-92-К-5 [16:42:21]line 14.980 * 66.80 [16:42:21]line = 1000.66 [16:42:21]line НДС 12% НСП 1% [16:42:21]line > о реализуемом товаре [16:42:21]line ОКРУГЛЕНИЕ: -0.66 [16:42:21]line ИТОГО: 1000.00 [16:42:21]line Внесено: 1000.00 [16:42:21]line СДАЧА: 0.00 [16:42:21]line НСП 1% : 8.85 [16:42:21]line НДС 12% : 106.26 [16:42:21]line Наличными: 1000.00 [16:42:21]line Безнал.: 0.00 [16:42:21]line Место: АЗС № 91 "Партнер Нефть" [16:42:21]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:42:21]line СНО: Общий режим [16:42:21]line Чек 111 14.05.2024 16:42 [16:42:21]line Смена: 355 ФФД: 1.0 [16:42:21]line ЗНМ: 0300000119 [16:42:21]line РНМ: 0000000000091845 [16:42:21]line Версия ККМ: 001 [16:42:21]line ФМ: 0000000000871829 [16:42:21]line ФД: 67104 [16:42:21]line ФПД: 104995378315160 [16:42:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T164220&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67104&fm=104995378315160&tin=02508201610067®Number=0000000000091845&sum=100000 [16:42:21]OFD Sender: Processing packet 67104 [packets to send 35, broken 34] [16:42:21]ProducePacketName [16:42:21]name=ofd_packets/00067104 [16:42:21]OFD Sender: To server: pG, [16:42:21]CommunicateWithHost lk.salyk.kg:30040 [16:42:21]ConnectInit lk.salyk.kg [16:42:21]written 0, free lines is 4095 [16:42:21]Connected sock=10 [16:42: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 0F 01 00 00 FA 75 07 01 3C 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 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 6F 00 00 00 F4 03 04 00 6C 94 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5F 7E 24 3A 3F 98 E5 4E C7 0E 02 83 88 B8 [16:42: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 5D D2 47 00 77 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 20 06 01 00 F4 03 04 00 4C 3C 43 66 B6 04 01 00 00 C1 C4 CB 1D 9A 54 D1 26 [16:42:22]CommunicateWithHost err = 0 [16:42:22]CheckOFDResponse [16:42:22]1017 (14) - 77093643461234 [16:42:22]1041 (16) - 0000000000871829 [16:42:22]1040 (4) - 67104 [16:42:22]1012 (4) - 14.05.2024 10:26 [16:42:22]1206 (1) - 0 [16:42:22]OFD Sender: Remove packet 67104 [16:42:22]ProducePacketName [16:42:22]name=ofd_packets/00067104 [16:42:22]NVStorageDeleteData [16:42:22]Write to MH i2c: 01 00 00 47 0B 52 [16:42:22]Write i2c OK [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: 01 [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: 01 07 00 [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: 01 07 00 47 0B 00 00 00 00 00 CC 0C 31 [16:42:22]RasterBufferAndPrint [16:42:22]line [16:42:22]line [16:42:22]line [16:42:22]line [16:42:22]line [16:42:22]written 0, free lines is 3282 [16:42:22]MH_Cut [16:42:22]Write to MH i2c: D1 01 00 4E 0B 01 2B [16:42:22]Write i2c OK [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: D1 [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: D1 01 00 [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: D1 01 00 4E 0B 00 2A [16:42:22]Write to MH i2c: 01 00 00 4F 0B 5A [16:42:22]Write i2c OK [16:42:22]MH_I2C_Read... [16:42:22]OFD Sender: No OFD packet to send [16:42:22]*** Cut start [16:42:22]*** Purtial cut [16:42:22]*** Stage 1: CUTSNS_PIN = 1 [16:42:23]Read from MH i2c: 01 [16:42:23]MH_I2C_Read... [16:42:23]*** Stop cut motor [16:42:23]*** Cut end [16:42:23]Read from MH i2c: 01 07 00 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: 01 07 00 4F 0B 00 00 00 00 00 FF 0F 6F [16:42:23]process_action close_receipt done [16:42:23]requested_data is exist [16:42:23]produce_requested_data [16:42:23]requested_item fm.sn is exist - process it [16:42:23]wFMCommunicate request_size=4 [16:42:23]MH_SAM_APDU [16:42:23]CAPDU: 80 11 00 00 [16:42:23]Write to MH i2c: E2 08 00 50 0B 80 11 00 00 00 00 00 00 D5 [16:42:23]Write i2c OK [16:42:23]MH_I2C_Read... [16:42:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:23]Read from MH i2c: E2 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 17 00 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 17 00 50 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2B [16:42: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:42:23]wFMCommunicate OK [16:42:23]requested_item fd.num is exist - process it [16:42:23]SAM_PROTO_GetFieldsCounters [16:42:23]wFMCommunicate request_size=4 [16:42:23]MH_SAM_APDU [16:42:23]CAPDU: 80 13 00 00 [16:42:23]Write to MH i2c: E2 08 00 51 0B 80 13 00 00 00 00 00 00 D8 [16:42:23]Write i2c OK [16:42:23]MH_I2C_Read... [16:42:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:23]Read from MH i2c: E2 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 62 00 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 62 00 51 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 20 06 01 00 0E 04 04 00 63 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 D6 [16:42: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 20 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:23]wFMCommunicate OK [16:42:23]SAM_PROTO_GetFieldsCounters done [16:42:23]requested_item shift.num is exist - process it [16:42:23]requested_item shift.opened is exist - process it [16:42:23]req_shift_opened [16:42:23]FM_GetShiftState [16:42:23]SAM_PROTO_GetShiftState [16:42:23]wFMCommunicate request_size=4 [16:42:23]MH_SAM_APDU [16:42:23]CAPDU: 80 13 01 00 [16:42:23]Write to MH i2c: E2 08 00 52 0B 80 13 01 00 00 00 00 00 DA [16:42:23]Write i2c OK [16:42:23]MH_I2C_Read... [16:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:23]Read from MH i2c: E2 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 0E 00 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 0E 00 52 0B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A2 [16:42:23]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:42:23]wFMCommunicate OK [16:42:23]SAM_PROTO_GetShiftState done [16:42:23]FM_GetShiftState done [16:42:23]req_shift_opened done [16:42:23]requested_item shift.open_date is exist - process it [16:42:23]req_shift_open_date [16:42:23]req_shift_open_date done [16:42:23]produce_requested_data done [16:42:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67104,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [16:42:23]process_action_free close_receipt [16:42:23]json_value_free [16:42:23]json_value_free done [16:42:23]process_json_proto returns [16:42:23]Send response to host [16:42:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67104,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [16:42:23]free response buf [16:42:23]execute_script done [16:42:23]execute_script returns [16:42:23]free content buf [16:42:23]Sock 9.Close socket [16:42:23]Sock 9.Thread stoped [16:42:27]OFD Sender: No OFD packet to send [16:42:32]OFD Sender: No OFD packet to send [16:42:33]accept exits with 7 [16:42:33]New connection [16:42:33]New thread 3067628900 created [16:42:33]Thread 3067485540 joined [16:42:33]Waiting for new connection... [16:42:33] Sock 7.Parse request [16:42:33]Sock 7.Check first char [16:42:33]Sock 7.First char is OK [16:42:33]request: POST /json_proto HTTP/1.0 [16:42:33]Method: POST [16:42:33]URL: /json_proto [16:42:33]Method is POST - this is cgi request [16:42:33]url: /json_proto [16:42:33]query_string will be loaded in cgi processing [16:42:33]execute_cgi json_proto POST (null) [16:42:33]execute_cgi path=json_proto method=POST [16:42:33]POST find Content-Length [16:42:33]Host: 172.17.41.195:8080 [16:42:33]Content-Length: 682 [16:42:33]Content-Type: application/json [16:42:33] [16:42:33]POST finish read [16:42:33]Found Content-Length = 682 [16:42:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506995", "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" ] } } [16:42:33]execute_script... [16:42: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)506995", "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" ] } } [16:42:33]POST & json_proto [16:42:33]process_json_proto [16:42:33]json parsed OK: [16:42:33]protocol is kg_v1.0 [16:42:33]action value=close_receipt [16:42:33]process_action close_receipt [16:42:33]cmd_close_receipt [16:42:33]MH_GetDate [16:42:33]Write to MH i2c: F0 00 00 53 0B 4D [16:42:33]Write i2c OK [16:42:33]MH_I2C_Read... [16:42:33]Read from MH i2c: F0 [16:42:33]MH_I2C_Read... [16:42:33]Read from MH i2c: F0 09 00 [16:42:33]MH_I2C_Read... [16:42:33]Read from MH i2c: F0 09 00 53 0B 00 7A 94 43 66 FC 21 6F 64 FD [16:42:33]GetLastDocTimeStamp 1715704940 [16:42:33]current date 1715704954 [16:42:33]FM_GetShiftState [16:42:33]SAM_PROTO_GetShiftState [16:42:33]wFMCommunicate request_size=4 [16:42:33]MH_SAM_APDU [16:42:33]CAPDU: 80 13 01 00 [16:42:33]Write to MH i2c: E2 08 00 54 0B 80 13 01 00 00 00 00 00 DC [16:42:33]Write i2c OK [16:42:33]MH_I2C_Read... [16:42:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:33]Read from MH i2c: E2 [16:42:33]MH_I2C_Read... [16:42:33]Read from MH i2c: E2 0E 00 [16:42:33]MH_I2C_Read... [16:42:33]Read from MH i2c: E2 0E 00 54 0B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A4 [16:42:33]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:42:33]wFMCommunicate OK [16:42:33]SAM_PROTO_GetShiftState done [16:42:33]FM_GetShiftState done [16:42:33]opened in 1715646054 [16:42:33]opened+sec_in_day 1715732454 [16:42:33]quantity*price = 100066 [16:42:33]sum+1 = 100067 [16:42:33]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 СНО: Общий режим Чек 112 14.05.2024 16:42 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67105 ФПД: 130565787636306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T164234&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67105&fm=130565787636306&tin=02508201610067®Number=0000000000091845&sum=100000 [16:42:34]StoreToDocumentArchive [16:42:34]shift 355 fd 67105 [16:42:34]save to /storage/0355/doc_00067105 [16:42:34]save last doc name /storage/0355/doc_00067105 to /storage/kkm_last_doc_name [16:42:34]save OK [16:42:34]Clear old archive folders... [16:42:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:34]tlvbuf is 0082F2F0 [16:42:34]SAM_PROTO_ClearQueue [16:42:34]wFMCommunicate request_size=4 [16:42:34]MH_SAM_APDU [16:42:34]CAPDU: 80 09 00 00 [16:42:34]Write to MH i2c: E2 08 00 61 0B 80 09 00 00 00 00 00 00 DE [16:42:34]Write i2c OK [16:42:34]MH_I2C_Read... [16:42:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:34]Read from MH i2c: E2 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 03 00 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 03 00 61 0B 00 90 00 E0 [16:42:34]RAPDU: 90 00 [16:42:34]wFMCommunicate OK [16:42:34]SAM_PROTO_ClearQueue done [16:42:34]KKMCreateOFDPacket [16:42:34]OFDProtocolAddRootSTLVToBuf [16:42:34]FM_MakeSignedData [16:42:34]FM_MakeSignedData [16:42:34]SAM_PROTO_SignData [16:42:34]wFMCommunicate request_size=4 [16:42:34]MH_SAM_APDU [16:42:34]CAPDU: 80 0D 01 02 [16:42:34]Write to MH i2c: E2 08 00 62 0B 80 0D 01 02 00 00 00 00 E6 [16:42:34]Write i2c OK [16:42:34]MH_I2C_Read... [16:42:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:35]Read from MH i2c: E2 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: E2 03 00 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: E2 03 00 62 0B 00 90 00 E1 [16:42:35]RAPDU: 90 00 [16:42:35]wFMCommunicate OK [16:42:35]wFMCommunicate request_size=255 [16:42:35]MH_SAM_APDU [16:42: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 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 70 00 00 00 F4 03 04 00 7A 94 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 76 [16:42:35]Write to MH i2c: E2 02 01 63 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 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 70 00 00 00 F4 03 04 00 7A 94 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 76 00 00 E8 [16:42:35]Write i2c OK [16:42:35]MH_I2C_Read... [16:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:35]Read from MH i2c: E2 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: E2 03 00 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: E2 03 00 63 0B 00 90 00 E2 [16:42:35]RAPDU: 90 00 [16:42:35]wFMCommunicate OK [16:42:35]wFMCommunicate request_size=10 [16:42:35]MH_SAM_APDU [16:42:35]CAPDU: 80 0D 02 02 05 BF B7 64 52 52 [16:42:35]Write to MH i2c: E2 0D 00 64 0B 80 0D 02 02 05 00 BF B7 64 52 52 00 00 71 [16:42:35]Write i2c OK [16:42:35]MH_I2C_Read... [16:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:35]Read from MH i2c: E2 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: E2 03 00 [16:42:35]MH_I2C_Read... [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]/dev/ttyS4 opened [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]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [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]*** 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: 30700866+1685004796=1715705662 [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 3F 97 43 66 FC 21 6F 64 6E [16:54:23]Current date/time: 14.05.2024 16:54 [16:54:23]FM_Init [16:54:23]wFMConnect [16:54:23]MH_SAM_On [16:54:23]Write to MH i2c: E0 00 00 08 00 E7 [16:54:23]Write i2c OK [16:54:23]MH_I2C_Read... [16:54:23]*** iso7816_init finished! [16:54:23]*** atr: [16:54:23]*** 0F 3B D5 18 FF 81 91 FE [16:54:23]*** 1F C3 80 73 C8 21 10 0A [16:54:23]*** 00 00 00 00 00 00 00 00 [16:54:23]*** 00 00 00 00 00 00 00 00 [16:54:23]*** 00 00 00 00 00 00 00 00 [16:54:23]*** 00 00 00 00 00 00 00 00 [16:54:23]*** 00 00 00 00 00 00 00 00 [16:54:23]*** 00 00 00 00 00 00 00 00 [16:54:23]Read from MH i2c: E0 [16:54:23]MH_I2C_Read... [16:54:23]Read from MH i2c: E0 10 00 [16:54:23]MH_I2C_Read... [16:54:23]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 [16:54:23]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:54:23]wFMCommunicate request_size=10 [16:54:23]MH_SAM_APDU [16:54:23]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:54:23]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [16:54:23]Write i2c OK [16:54:23]MH_I2C_Read... [16:54:23]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [16:54:23]Read from MH i2c: E2 [16:54:23]MH_I2C_Read... [16:54:23]Read from MH i2c: E2 03 00 [16:54:23]MH_I2C_Read... [16:54:23]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [16:54:23]RAPDU: 90 00 [16:54:23]wFMCommunicate OK [16:54:23]wFMCommunicate request_size=4 [16:54:23]MH_SAM_APDU [16:54:23]CAPDU: 80 11 00 00 [16:54:23]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [16:54:23]Write i2c OK [16:54:23]MH_I2C_Read... [16:54:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:23]Read from MH i2c: E2 [16:54:23]MH_I2C_Read... [16:54:23]Read from MH i2c: E2 17 00 [16:54:23]MH_I2C_Read... [16:54:23]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 [16:54: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:54:23]wFMCommunicate OK [16:54:23]Detected FM SN is 0000000000871829 [16:54:23]Stored FM SN is 0000000000871829 [16:54:23]wFMCommunicate request_size=9 [16:54:23]MH_SAM_APDU [16:54:23]CAPDU: 80 16 00 00 04 44 DD 00 00 [16:54:23]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 44 DD 00 00 00 00 B3 [16:54:23]Write i2c OK [16:54:23]MH_I2C_Read... [16:54:23]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [16:54:23]Read from MH i2c: E2 [16:54:23]MH_I2C_Read... [16:54:23]Read from MH i2c: E2 03 00 [16:54:23]MH_I2C_Read... [16:54:23]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [16:54:23]RAPDU: 90 00 [16:54:23]wFMCommunicate OK [16:54:23]FM PIN OK [16:54:23]wFMCommunicate request_size=8 [16:54:23]MH_SAM_APDU [16:54:23]CAPDU: 80 14 04 00 03 02 00 01 [16:54:23]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [16:54:23]Write i2c OK [16:54:23]MH_I2C_Read... [16:54:23]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [16:54:23]Read from MH i2c: E2 [16:54:23]MH_I2C_Read... [16:54:23]Read from MH i2c: E2 03 00 [16:54:23]MH_I2C_Read... [16:54:23]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [16:54:23]RAPDU: 90 00 [16:54:23]wFMCommunicate OK [16:54:23]wFMCommunicate request_size=13 [16:54:23]MH_SAM_APDU [16:54:23]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [16:54:23]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 [16:54:23]Write i2c OK [16:54:23]MH_I2C_Read... [16:54:23]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [16:54:23]Read from MH i2c: E2 [16:54:23]MH_I2C_Read... [16:54:23]Read from MH i2c: E2 03 00 [16:54:23]MH_I2C_Read... [16:54:23]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [16:54:23]RAPDU: 90 00 [16:54:23]wFMCommunicate OK [16:54:23]wFMCommunicate request_size=4 [16:54:23]MH_SAM_APDU [16:54:23]CAPDU: 80 11 00 00 [16:54:23]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [16:54:23]Write i2c OK [16:54:23]MH_I2C_Read... [16:54:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:23]Read from MH i2c: E2 [16:54:23]MH_I2C_Read... [16:54:23]Read from MH i2c: E2 17 00 [16:54:23]MH_I2C_Read... [16:54:23]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 [16:54: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:54:23]wFMCommunicate OK [16:54:23]DocumentArchiveInit [16:54:23]Start Httpd... [16:54:23]Httpd thread 3067018596 created [16:54:23]Write to MH i2c: 01 00 00 0F 00 0F [16:54:23]Write i2c OK [16:54:23]MH_I2C_Read... [16:54:23]Read from MH i2c: 01 [16:54:23]MH_I2C_Read... [16:54:23]Read from MH i2c: 01 07 00 [16:54:23]MH_I2C_Read... [16:54:23]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [16:54:23]MH Int Process started [16:54:23]Allocated Socket 8 [16:54:23]Bind OK [16:54:23]Listen OK [16:54:23]httpd running on port 8080 [16:54:23]Waiting for new connection... [16:54:23]OFD Sender: Processing packet 67105 [packets to send 35, broken 34] [16:54:23]ProducePacketName [16:54:23]name=ofd_packets/00067105 [16:54:23]OFD Sender: To server: pG, [16:54:23]CommunicateWithHost lk.salyk.kg:30040 [16:54:23]ConnectInit lk.salyk.kg [16:54:23]Connected sock=7 [16:54:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 48 EA 07 01 76 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 70 00 00 00 F4 03 04 00 7A 94 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 76 BF B7 64 52 52 7D 85 44 D7 25 0D B0 D1 [16:54: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 64 09 47 00 26 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 21 06 01 00 F4 03 04 00 1D 3F 43 66 B6 04 01 00 00 38 AA 93 6C 6E 86 43 94 [16:54:24]CommunicateWithHost err = 0 [16:54:24]CheckOFDResponse [16:54:24]1017 (14) - 77093643461234 [16:54:24]1041 (16) - 0000000000871829 [16:54:24]1040 (4) - 67105 [16:54:24]1012 (4) - 14.05.2024 10:38 [16:54:24]1206 (1) - 0 [16:54:24]OFD Sender: Remove packet 67105 [16:54:24]ProducePacketName [16:54:24]name=ofd_packets/00067105 [16:54:24]NVStorageDeleteData [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:32]accept exits with 9 [16:54:32]New connection [16:54:32]New thread 3066731876 created [16:54:32]Waiting for new connection... [16:54:32] Sock 9.Parse request [16:54:32]Sock 9.Check first char [16:54:32]Sock 9.First char is OK [16:54:32]request: POST /json_proto HTTP/1.0 [16:54:32]Method: POST [16:54:32]URL: /json_proto [16:54:32]Method is POST - this is cgi request [16:54:32]url: /json_proto [16:54:32]query_string will be loaded in cgi processing [16:54:32]execute_cgi json_proto POST (null) [16:54:32]execute_cgi path=json_proto method=POST [16:54:32]POST find Content-Length [16:54:32]Host: 172.17.41.195:8080 [16:54:32]Content-Length: 215 [16:54:32]Content-Type: application/json [16:54:32] [16:54:32]POST finish read [16:54:32]Found Content-Length = 215 [16:54:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:32]execute_script... [16:54:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:32]POST & json_proto [16:54:32]process_json_proto [16:54:32]json parsed OK: [16:54:32]protocol is kg_v1.0 [16:54:32]action value=get_value [16:54:32]process_action get_value [16:54:32]cmd_get_value [16:54:32]process_action get_value done [16:54:32]requested_data is exist [16:54:32]produce_requested_data [16:54:32]requested_item kkm.sn is exist - process it [16:54:32]requested_item kkm.ver is exist - process it [16:54:32]requested_item fm.sn is exist - process it [16:54:32]wFMCommunicate request_size=4 [16:54:32]MH_SAM_APDU [16:54:32]CAPDU: 80 11 00 00 [16:54:32]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [16:54:32]Write i2c OK [16:54:32]MH_I2C_Read... [16:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:32]Read from MH i2c: E2 [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: E2 17 00 [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E0 [16:54:32]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:32]wFMCommunicate OK [16:54:32]requested_item fd.num is exist - process it [16:54:32]SAM_PROTO_GetFieldsCounters [16:54:32]wFMCommunicate request_size=4 [16:54:32]MH_SAM_APDU [16:54:32]CAPDU: 80 13 00 00 [16:54:32]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [16:54:32]Write i2c OK [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: E2 [16:54:32]MH_I2C_Read... [16:54:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:32]Read from MH i2c: E2 62 00 [16:54:32]MH_I2C_Read... [16:54:32]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 21 06 01 00 0E 04 04 00 63 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 8F [16:54: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 21 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:54:32]wFMCommunicate OK [16:54:32]SAM_PROTO_GetFieldsCounters done [16:54:32]requested_item shift.num is exist - process it [16:54:32]requested_item shift.opened is exist - process it [16:54:32]req_shift_opened [16:54:32]FM_GetShiftState [16:54:32]SAM_PROTO_GetShiftState [16:54:32]wFMCommunicate request_size=4 [16:54:32]MH_SAM_APDU [16:54:32]CAPDU: 80 13 01 00 [16:54:32]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [16:54:32]Write i2c OK [16:54:32]MH_I2C_Read... [16:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:32]Read from MH i2c: E2 [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: E2 0E 00 [16:54:32]MH_I2C_Read... [16:54:32]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 57 [16:54:32]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:54:32]wFMCommunicate OK [16:54:32]SAM_PROTO_GetShiftState done [16:54:32]FM_GetShiftState done [16:54:32]req_shift_opened done [16:54:32]requested_item shift.open_date is exist - process it [16:54:32]req_shift_open_date [16:54:32]req_shift_open_date done [16:54:32]produce_requested_data done [16:54:32]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67105,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [16:54:32]process_action_free get_value [16:54:32]json_value_free [16:54:32]json_value_free done [16:54:32]process_json_proto returns [16:54:32]Send response to host [16:54:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67105,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [16:54:32]free response buf [16:54:32]execute_script done [16:54:32]execute_script returns [16:54:32]free content buf [16:54:32]Sock 9.Close socket [16:54:32]Sock 9.Thread stoped [16:54:32]accept exits with 10 [16:54:32]New connection [16:54:32]New thread 3066588516 created [16:54:32]Thread 3066731876 joined [16:54:32]Waiting for new connection... [16:54:32] Sock 10.Parse request [16:54:32]Sock 10.Check first char [16:54:32]Sock 10.First char is OK [16:54:32]request: POST /json_proto HTTP/1.0 [16:54:32]Method: POST [16:54:32]URL: /json_proto [16:54:32]Method is POST - this is cgi request [16:54:32]url: /json_proto [16:54:32]query_string will be loaded in cgi processing [16:54:32]execute_cgi json_proto POST (null) [16:54:32]execute_cgi path=json_proto method=POST [16:54:32]POST find Content-Length [16:54:32]Host: 172.17.41.195:8080 [16:54:32]Content-Length: 331 [16:54:32]Content-Type: application/json [16:54:32] [16:54:32]POST finish read [16:54:32]Found Content-Length = 331 [16:54:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:54:32]execute_script... [16:54:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:54:32]POST & json_proto [16:54:32]process_json_proto [16:54:32]json parsed OK: [16:54:32]protocol is kg_v1.0 [16:54:32]action value=get_value [16:54:32]process_action get_value [16:54:32]cmd_get_value [16:54:32]process_action get_value done [16:54:32]requested_data is exist [16:54:32]produce_requested_data [16:54:32]requested_item fm.sale.total is exist - process it [16:54:32]SAM_PROTO_GetFMData [16:54:32]wFMCommunicate request_size=4 [16:54:32]MH_SAM_APDU [16:54:32]CAPDU: 80 13 03 00 [16:54:32]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [16:54:32]Write i2c OK [16:54:32]MH_I2C_Read... [16:54:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:54:33]Read from MH i2c: E2 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: E2 FD 00 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 5B 03 01 00 69 04 A3 00 6F 04 04 00 B6 02 01 00 B1 04 05 00 7E 63 92 18 03 70 04 05 00 C0 01 78 BE 02 72 04 04 00 BE 61 1A 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B4 AF 2D 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 3C BA 03 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 3F [16:54:33]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 5B 03 01 00 69 04 A3 00 6F 04 04 00 B6 02 01 00 B1 04 05 00 7E 63 92 18 03 70 04 05 00 C0 01 78 BE 02 72 04 04 00 BE 61 1A 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B4 AF 2D 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 3C BA 03 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 [16:54:33]wFMCommunicate OK [16:54:33]wFMCommunicate request_size=4 [16:54:33]MH_SAM_APDU [16:54:33]CAPDU: 80 17 00 00 [16:54:33]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [16:54:33]Write i2c OK [16:54:33]MH_I2C_Read... [16:54:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:54:33]Read from MH i2c: E2 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: E2 FD 00 [16:54:33]MH_I2C_Read... [16:54:33]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 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 42 [16:54:33]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [16:54:33]wFMCommunicate OK [16:54:33]wFMCommunicate request_size=4 [16:54:33]MH_SAM_APDU [16:54:33]CAPDU: 80 17 00 00 [16:54:33]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [16:54:33]Write i2c OK [16:54:33]MH_I2C_Read... [16:54:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:54:33]Read from MH i2c: E2 [16:54:33]MH_I2C_Read... [16:54:33]Read from MH i2c: E2 FD 00 [16:54:33]MH_I2C_Read... [16:54:33]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 [16:54:33]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [16:54:33]wFMCommunicate OK [16:54:33]wFMCommunicate request_size=4 [16:54:33]MH_SAM_APDU [16:54:33]CAPDU: 80 17 00 00 [16:54:33]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [16:54:33]Write i2c OK [16:54:33]MH_I2C_Read... [16:54:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:54:34]Read from MH i2c: E2 [16:54:34]MH_I2C_Read... [16:54:34]Read from MH i2c: E2 FD 00 [16:54:34]MH_I2C_Read... [16:54:34]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 [16:54:34]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [16:54:34]wFMCommunicate OK [16:54:34]wFMCommunicate request_size=4 [16:54:34]MH_SAM_APDU [16:54:34]CAPDU: 80 17 00 00 [16:54:34]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [16:54:34]Write i2c OK [16:54:34]MH_I2C_Read... [16:54:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [16:54:34]Read from MH i2c: E2 [16:54:34]MH_I2C_Read... [16:54:34]Read from MH i2c: E2 E3 00 [16:54:34]MH_I2C_Read... [16:54:34]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 [16:54:34]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:54:34]wFMCommunicate OK [16:54:34]SAM_PROTO_GetFMData done [16:54:34]requested_item fm.sale_refund.total is exist - process it [16:54:34]requested_item fm.buy.total is exist - process it [16:54:34]requested_item shift.sale.total is exist - process it [16:54:34]SAM_PROTO_GetShiftData [16:54:34]wFMCommunicate request_size=4 [16:54:34]MH_SAM_APDU [16:54:34]CAPDU: 80 13 02 00 [16:54:34]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [16:54:34]Write i2c OK [16:54:34]MH_I2C_Read... [16:54:34]OFD Sender: No OFD packet to send [16:54:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:54:34]Read from MH i2c: E2 [16:54:34]MH_I2C_Read... [16:54:34]Read from MH i2c: E2 FD 00 [16:54:34]MH_I2C_Read... [16:54:34]Read from MH i2c: E2 FD 00 18 00 00 B0 04 AA 04 AC 04 6E 04 04 00 70 00 00 00 69 04 9D 00 6F 04 04 00 70 00 00 00 B1 04 04 00 D2 38 27 01 70 04 03 00 24 9B 5E 72 04 03 00 AE 9D C8 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 FD 5A 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DA 9C 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 99 [16:54:34]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 70 00 00 00 69 04 9D 00 6F 04 04 00 70 00 00 00 B1 04 04 00 D2 38 27 01 70 04 03 00 24 9B 5E 72 04 03 00 AE 9D C8 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 FD 5A 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DA 9C 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 [16:54:34]wFMCommunicate OK [16:54:34]wFMCommunicate request_size=4 [16:54:34]MH_SAM_APDU [16:54:34]CAPDU: 80 17 00 00 [16:54:34]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [16:54:34]Write i2c OK [16:54:34]MH_I2C_Read... [16:54:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:54:35]Read from MH i2c: E2 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: E2 FD 00 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: E2 FD 00 19 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B3 [16:54:35]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 [16:54:35]wFMCommunicate OK [16:54:35]wFMCommunicate request_size=4 [16:54:35]MH_SAM_APDU [16:54:35]CAPDU: 80 17 00 00 [16:54:35]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [16:54:35]Write i2c OK [16:54:35]MH_I2C_Read... [16:54:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:54:35]Read from MH i2c: E2 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: E2 FD 00 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: E2 FD 00 1A 00 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 57 [16:54:35]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 [16:54:35]wFMCommunicate OK [16:54:35]wFMCommunicate request_size=4 [16:54:35]MH_SAM_APDU [16:54:35]CAPDU: 80 17 00 00 [16:54:35]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [16:54:35]Write i2c OK [16:54:35]MH_I2C_Read... [16:54:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:54:35]Read from MH i2c: E2 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: E2 FD 00 [16:54:35]MH_I2C_Read... [16:54:35]Read from MH i2c: E2 FD 00 1B 00 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 0E [16:54:35]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 [16:54:35]wFMCommunicate OK [16:54:35]wFMCommunicate request_size=4 [16:54:35]MH_SAM_APDU [16:54:35]CAPDU: 80 17 00 00 [16:54:35]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [16:54:35]Write i2c OK [16:54:35]MH_I2C_Read... [16:54:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [16:54:36]Read from MH i2c: E2 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: E2 CD 00 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: E2 CD 00 1C 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 80 [16:54:36]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 [16:54:36]wFMCommunicate OK [16:54:36]SAM_PROTO_GetShiftData done [16:54:36]requested_item shift.sale.total_cash is exist - process it [16:54:36]requested_item shift.sale_refund.total is exist - process it [16:54:36]requested_item shift.sale_refund.total_cash is exist - process it [16:54:36]requested_item shift.buy.total is exist - process it [16:54:36]requested_item shift.buy.total_cash is exist - process it [16:54:36]produce_requested_data done [16:54:36]produce_requested_data return {"fm.sale.total":132971487.98,"fm.sale_refund.total":37024060.00,"fm.buy.total":0.00,"shift.sale.total":193476.66,"shift.sale.total_cash":62001.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:54:36]process_action_free get_value [16:54:36]json_value_free [16:54:36]json_value_free done [16:54:36]process_json_proto returns [16:54:36]Send response to host [16:54:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":132971487.98,"fm.sale_refund.total":37024060.00,"fm.buy.total":0.00,"shift.sale.total":193476.66,"shift.sale.total_cash":62001.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:54:36]free response buf [16:54:36]execute_script done [16:54:36]execute_script returns [16:54:36]free content buf [16:54:36]Sock 10.Close socket [16:54:36]Sock 10.Thread stoped [16:54:36]accept exits with 9 [16:54:36]New connection [16:54:36]New thread 3066731876 created [16:54:36]Thread 3066588516 joined [16:54:36]Waiting for new connection... [16:54:36] Sock 9.Parse request [16:54:36]Sock 9.Check first char [16:54:36]Sock 9.First char is OK [16:54:36]request: POST /json_proto HTTP/1.0 [16:54:36]Method: POST [16:54:36]URL: /json_proto [16:54:36]Method is POST - this is cgi request [16:54:36]url: /json_proto [16:54:36]query_string will be loaded in cgi processing [16:54:36]execute_cgi json_proto POST (null) [16:54:36]execute_cgi path=json_proto method=POST [16:54:36]POST find Content-Length [16:54:36]Host: 172.17.41.195:8080 [16:54:36]Content-Length: 677 [16:54:36]Content-Type: application/json [16:54:36] [16:54:36]POST finish read [16:54:36]Found Content-Length = 677 [16:54:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506997", "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" ] } } [16:54:36]execute_script... [16: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)506997", "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" ] } } [16:54:36]POST & json_proto [16:54:36]process_json_proto [16:54:36]json parsed OK: [16:54:36]protocol is kg_v1.0 [16:54:36]action value=close_receipt [16:54:36]process_action close_receipt [16:54:36]cmd_close_receipt [16:54:36]MH_GetDate [16:54:36]Write to MH i2c: F0 00 00 1D 00 0C [16:54:36]Write i2c OK [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: F0 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: F0 09 00 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: F0 09 00 1D 00 00 4C 97 43 66 FC 21 6F 64 91 [16:54:36]GetLastDocTimeStamp 1715704954 [16:54:36]current date 1715705676 [16:54:36]FM_GetShiftState [16:54:36]SAM_PROTO_GetShiftState [16:54:36]wFMCommunicate request_size=4 [16:54:36]MH_SAM_APDU [16:54:36]CAPDU: 80 13 01 00 [16:54:36]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [16:54:36]Write i2c OK [16:54:36]MH_I2C_Read... [16:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:36]Read from MH i2c: E2 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: E2 0E 00 [16:54:36]MH_I2C_Read... [16:54:36]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 63 [16:54:36]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:54:36]wFMCommunicate OK [16:54:36]SAM_PROTO_GetShiftState done [16:54:36]FM_GetShiftState done [16:54:36]opened in 1715646054 [16:54:36]opened+sec_in_day 1715732454 [16:54:36]quantity*price = 50033 [16:54:36]sum+1 = 50034 [16:54:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 113 14.05.2024 16:54 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67106 ФПД: 85364945950863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T165436&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67106&fm=85364945950863&tin=02508201610067®Number=0000000000091845&sum=50000 [16:54:38]StoreToDocumentArchive [16:54:38]shift 355 fd 67106 [16:54:38]save to /storage/0355/doc_00067106 [16:54:38]save last doc name /storage/0355/doc_00067106 to /storage/kkm_last_doc_name [16:54:38]save OK [16:54:38]Clear old archive folders... [16:54:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:54:38]tlvbuf is 003926D0 [16:54:38]SAM_PROTO_ClearQueue [16:54:38]wFMCommunicate request_size=4 [16:54:38]MH_SAM_APDU [16:54:38]CAPDU: 80 09 00 00 [16:54:38]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [16:54:38]Write i2c OK [16:54:38]MH_I2C_Read... [16:54:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:38]Read from MH i2c: E2 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: E2 03 00 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [16:54:38]RAPDU: 90 00 [16:54:38]wFMCommunicate OK [16:54:38]SAM_PROTO_ClearQueue done [16:54:38]KKMCreateOFDPacket [16:54:38]OFDProtocolAddRootSTLVToBuf [16:54:38]FM_MakeSignedData [16:54:38]FM_MakeSignedData [16:54:38]SAM_PROTO_SignData [16:54:38]wFMCommunicate request_size=4 [16:54:38]MH_SAM_APDU [16:54:38]CAPDU: 80 0D 01 02 [16:54:38]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [16:54:38]Write i2c OK [16:54:38]MH_I2C_Read... [16:54:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:38]Read from MH i2c: E2 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: E2 03 00 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [16:54:38]RAPDU: 90 00 [16:54:38]wFMCommunicate OK [16:54:38]wFMCommunicate request_size=255 [16:54:38]MH_SAM_APDU [16:54:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 71 00 00 00 F4 03 04 00 4C 97 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 4D [16:54:38]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 71 00 00 00 F4 03 04 00 4C 97 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 4D 00 00 07 [16:54:38]Write i2c OK [16:54:38]MH_I2C_Read... [16:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:38]Read from MH i2c: E2 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: E2 03 00 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [16:54:38]RAPDU: 90 00 [16:54:38]wFMCommunicate OK [16:54:38]wFMCommunicate request_size=10 [16:54:38]MH_SAM_APDU [16:54:38]CAPDU: 80 0D 02 02 05 A3 93 47 98 8F [16:54:38]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 A3 93 47 98 8F 00 00 56 [16:54:38]Write i2c OK [16:54:38]MH_I2C_Read... [16:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:38]Read from MH i2c: E2 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: E2 03 00 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [16:54:38]RAPDU: 90 00 [16:54:38]wFMCommunicate OK [16:54:38]wFMCommunicate request_size=4 [16:54:38]MH_SAM_APDU [16:54:38]CAPDU: 80 0D 03 02 [16:54:38]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [16:54:38]Write i2c OK [16:54:38]MH_I2C_Read... [16:54:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:38]Read from MH i2c: E2 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: E2 0B 00 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: E2 0B 00 2F 00 00 C6 E4 48 61 43 62 28 F5 90 00 C0 [16:54:38]RAPDU: C6 E4 48 61 43 62 28 F5 90 00 [16:54:38]wFMCommunicate OK [16:54:38]SAM_PROTO_SignData done [16:54:38]FM_MakeSignedData done [16:54:38]CreateOFDProtocolMessage [16:54:38]wFMCommunicate request_size=4 [16:54:38]MH_SAM_APDU [16:54:38]CAPDU: 80 11 00 00 [16:54:38]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [16:54:38]Write i2c OK [16:54:38]MH_I2C_Read... [16:54:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:38]Read from MH i2c: E2 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: E2 17 00 [16:54:38]MH_I2C_Read... [16:54:38]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 [16:54:38]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:38]wFMCommunicate OK [16:54:38]CreateOFDProtocolMessage done [16:54:38]OFDSenderStorePacket 67106 [16:54:38]StoreOFDPacket docnum=67106 [16:54:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 8F CF 07 01 68 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 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 71 00 00 00 F4 03 04 00 4C 97 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 4D A3 93 47 98 8F C6 E4 48 61 43 62 28 F5 [16:54:38]CheckFolder [16:54:38]dirname=/storage/ofd_packets [16:54:38]CheckFolder done [16:54:38]ProducePacketName [16:54:38]name=ofd_packets/00067106 [16:54:38]NVStorageSaveData ofd_packets/00067106 [16:54:38]File name is /storage/ofd_packets/00067106 [16:54:38]Write 301 bytes [16:54:38]NVStorageSaveData done [16:54:38]OFDSenderStorePacket done [16:54:38]KKMCreateOFDPacket done [16:54:38]NVStorageSaveData kkm_last_timestamp [16:54:38]File name is /storage/kkm_last_timestamp [16:54:38]Write 4 bytes [16:54:38]NVStorageSaveData done [16:54:38]OFD Sender: Processing packet 67106 [packets to send 35, broken 34] [16:54:38]ProducePacketName [16:54:38]name=ofd_packets/00067106 [16:54:38]OFD Sender: To server: pG, [16:54:38]CommunicateWithHost lk.salyk.kg:30040 [16:54:38]ConnectInit lk.salyk.kg [16:54:38]ExternCall_PrintAddStr [16:54:38]wPrintStart [16:54:38]Write to MH i2c: 01 00 00 31 00 31 [16:54:38]Write i2c OK [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: 01 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: 01 07 00 [16:54:38]MH_I2C_Read... [16:54:38]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [16:54:38]RasterBufferAndPrint [16:54:38]line Счет N : (1)506997 [16:54:38]line ИНН: 02508201610067 [16:54:38]line Контрольно-Кассовый Чек [16:54:38]line ПРОДАЖА [16:54:38]line ТРК (МРК, ГНК) : 33 [16:54:38]line Товар: 2710124130 [16:54:38]line Аи-92-К-5 [16:54:38]line 7.490 * 66.80 [16:54:38]line = 500.33 [16:54:38]line НДС 12% НСП 1% [16:54:38]line > о реализуемом товаре [16:54:38]line ОКРУГЛЕНИЕ: -0.33 [16:54:38]line ИТОГО: 500.00 [16:54:38]line Внесено: 500.00 [16:54:38]line СДАЧА: 0.00 [16:54:38]line НСП 1% : 4.43 [16:54:38]line НДС 12% : 53.13 [16:54:38]line Наличными: 500.00 [16:54:38]line Безнал.: 0.00 [16:54:38]line Место: АЗС № 91 "Партнер Нефть" [16:54:38]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:54:38]line СНО: Общий режим [16:54:38]line Чек 113 14.05.2024 16:54 [16:54:38]line Смена: 355 ФФД: 1.0 [16:54:38]line ЗНМ: 0300000119 [16:54:38]line РНМ: 0000000000091845 [16:54:38]line Версия ККМ: 001 [16:54:38]line ФМ: 0000000000871829 [16:54:38]line ФД: 67106 [16:54:38]line ФПД: 85364945950863 [16:54:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T165436&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67106&fm=85364945950863&tin=02508201610067®Number=0000000000091845&sum=50000 [16:54:38]written 0, free lines is 4095 [16:54:38]Connected sock=10 [16: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 8F CF 07 01 68 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 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 71 00 00 00 F4 03 04 00 4C 97 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 4D A3 93 47 98 8F C6 E4 48 61 43 62 28 F5 [16:54: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 83 90 47 00 9A 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 06 01 00 F4 03 04 00 2C 3F 43 66 B6 04 01 00 00 06 E3 66 2F BF 1D 41 29 [16:54:39]CommunicateWithHost err = 0 [16:54:39]CheckOFDResponse [16:54:39]1017 (14) - 77093643461234 [16:54:39]1041 (16) - 0000000000871829 [16:54:39]1040 (4) - 67106 [16:54:39]1012 (4) - 14.05.2024 10:38 [16:54:39]1206 (1) - 0 [16:54:39]OFD Sender: Remove packet 67106 [16:54:39]ProducePacketName [16:54:39]name=ofd_packets/00067106 [16:54:39]NVStorageDeleteData [16:54:39]Write to MH i2c: 01 00 00 5B 00 5B [16:54:39]Write i2c OK [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: 01 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: 01 07 00 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 E2 0C 50 [16:54:39]RasterBufferAndPrint [16:54:39]line [16:54:39]line [16:54:39]line [16:54:39]line [16:54:39]line [16:54:39]written 0, free lines is 3325 [16:54:39]MH_Cut [16:54:39]Write to MH i2c: D1 01 00 62 00 01 34 [16:54:39]Write i2c OK [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: D1 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: D1 01 00 [16:54:39]MH_I2C_Read... [16:54:39]Read from MH i2c: D1 01 00 62 00 00 33 [16:54:39]Write to MH i2c: 01 00 00 63 00 63 [16:54:39]Write i2c OK [16:54:39]MH_I2C_Read... [16:54:39]OFD Sender: No OFD packet to send [16:54:40]*** Cut start [16:54:40]*** Purtial cut [16:54:40]*** Stage 1: CUTSNS_PIN = 1 [16:54:40]Read from MH i2c: 01 [16:54:40]MH_I2C_Read... [16:54:40]*** Stop cut motor [16:54:40]*** Cut end [16:54:40]Read from MH i2c: 01 07 00 [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [16:54:40]process_action close_receipt done [16:54:40]requested_data is exist [16:54:40]produce_requested_data [16:54:40]requested_item fm.sn is exist - process it [16:54:40]wFMCommunicate request_size=4 [16:54:40]MH_SAM_APDU [16:54:40]CAPDU: 80 11 00 00 [16:54:40]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [16:54:40]Write i2c OK [16:54:40]MH_I2C_Read... [16:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:40]Read from MH i2c: E2 [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: E2 17 00 [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 34 [16:54:40]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:40]wFMCommunicate OK [16:54:40]requested_item fd.num is exist - process it [16:54:40]SAM_PROTO_GetFieldsCounters [16:54:40]wFMCommunicate request_size=4 [16:54:40]MH_SAM_APDU [16:54:40]CAPDU: 80 13 00 00 [16:54:40]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [16:54:40]Write i2c OK [16:54:40]MH_I2C_Read... [16:54:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:40]Read from MH i2c: E2 [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: E2 62 00 [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: E2 62 00 65 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 22 06 01 00 0E 04 04 00 63 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 E7 [16:54: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 22 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:54:40]wFMCommunicate OK [16:54:40]SAM_PROTO_GetFieldsCounters done [16:54:40]requested_item shift.num is exist - process it [16:54:40]requested_item shift.opened is exist - process it [16:54:40]req_shift_opened [16:54:40]FM_GetShiftState [16:54:40]SAM_PROTO_GetShiftState [16:54:40]wFMCommunicate request_size=4 [16:54:40]MH_SAM_APDU [16:54:40]CAPDU: 80 13 01 00 [16:54:40]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [16:54:40]Write i2c OK [16:54:40]MH_I2C_Read... [16:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:40]Read from MH i2c: E2 [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: E2 0E 00 [16:54:40]MH_I2C_Read... [16:54:40]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 AB [16:54:40]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:54:40]wFMCommunicate OK [16:54:40]SAM_PROTO_GetShiftState done [16:54:40]FM_GetShiftState done [16:54:40]req_shift_opened done [16:54:40]requested_item shift.open_date is exist - process it [16:54:40]req_shift_open_date [16:54:40]req_shift_open_date done [16:54:40]produce_requested_data done [16:54:40]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67106,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [16:54:40]process_action_free close_receipt [16:54:40]json_value_free [16:54:40]json_value_free done [16:54:40]process_json_proto returns [16:54:40]Send response to host [16:54:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67106,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [16:54:40]free response buf [16:54:40]execute_script done [16:54:40]execute_script returns [16:54:40]free content buf [16:54:40]Sock 9.Close socket [16:54:40]Sock 9.Thread stoped [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:04]OFD Sender: No OFD packet to send [16:56:09]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:19]OFD Sender: No OFD packet to send [16:56:24]OFD Sender: No OFD packet to send [16:56:29]OFD Sender: No OFD packet to send [16:56:34]OFD Sender: No OFD packet to send [16:56:39]OFD Sender: No OFD packet to send [16:56:44]OFD Sender: No OFD packet to send [16:56:49]OFD Sender: No OFD packet to send [16:56:54]OFD Sender: No OFD packet to send [16:56:59]OFD Sender: No OFD packet to send [16:57:04]OFD Sender: No OFD packet to send [16:57:09]OFD Sender: No OFD packet to send [16:57:14]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:25]accept exits with 7 [16:57:25]New connection [16:57:25]New thread 3066588516 created [16:57:25]Thread 3066731876 joined [16:57:25]Waiting for new connection... [16:57:25] Sock 7.Parse request [16:57:25]Sock 7.Check first char [16:57:25]Sock 7.First char is OK [16:57:25]request: POST /json_proto HTTP/1.0 [16:57:25]Method: POST [16:57:25]URL: /json_proto [16:57:25]Method is POST - this is cgi request [16:57:25]url: /json_proto [16:57:25]query_string will be loaded in cgi processing [16:57:25]execute_cgi json_proto POST (null) [16:57:25]execute_cgi path=json_proto method=POST [16:57:25]POST find Content-Length [16:57:25]Host: 172.17.41.195:8080 [16:57:25]Content-Length: 679 [16:57:25]Content-Type: application/json [16:57:25] [16:57:25]POST finish read [16:57:25]Found Content-Length = 679 [16:57:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)506999", "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 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:25]execute_script... [16:57: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)506999", "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 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:25]POST & json_proto [16:57:25]process_json_proto [16:57:25]json parsed OK: [16:57:25]protocol is kg_v1.0 [16:57:25]action value=close_receipt [16:57:25]process_action close_receipt [16:57:25]cmd_close_receipt [16:57:25]MH_GetDate [16:57:25]Write to MH i2c: F0 00 00 67 00 56 [16:57:25]Write i2c OK [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: F0 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: F0 09 00 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: F0 09 00 67 00 00 F5 97 43 66 FC 21 6F 64 84 [16:57:25]GetLastDocTimeStamp 1715705676 [16:57:25]current date 1715705845 [16:57:25]FM_GetShiftState [16:57:25]SAM_PROTO_GetShiftState [16:57:25]wFMCommunicate request_size=4 [16:57:25]MH_SAM_APDU [16:57:25]CAPDU: 80 13 01 00 [16:57:25]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [16:57:25]Write i2c OK [16:57:25]MH_I2C_Read... [16:57:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:25]Read from MH i2c: E2 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 0E 00 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 AD [16:57:25]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:57:25]wFMCommunicate OK [16:57:25]SAM_PROTO_GetShiftState done [16:57:25]FM_GetShiftState done [16:57:25]opened in 1715646054 [16:57:25]opened+sec_in_day 1715732454 [16:57:25]quantity*price = 400018 [16:57:25]sum+1 = 400020 [16:57:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.80 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 114 14.05.2024 16:57 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67107 ФПД: 174732787639303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T165725&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67107&fm=174732787639303&tin=02508201610067®Number=0000000000091845&sum=400000 [16:57:26]StoreToDocumentArchive [16:57:26]shift 355 fd 67107 [16:57:26]save to /storage/0355/doc_00067107 [16:57:26]save last doc name /storage/0355/doc_00067107 to /storage/kkm_last_doc_name [16:57:26]save OK [16:57:26]Clear old archive folders... [16:57:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:57:26]tlvbuf is 00385BE0 [16:57:26]SAM_PROTO_ClearQueue [16:57:26]wFMCommunicate request_size=4 [16:57:26]MH_SAM_APDU [16:57:26]CAPDU: 80 09 00 00 [16:57:26]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [16:57:26]Write i2c OK [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: E2 [16:57:26]MH_I2C_Read... [16:57:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:26]Read from MH i2c: E2 03 00 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [16:57:26]RAPDU: 90 00 [16:57:26]wFMCommunicate OK [16:57:26]SAM_PROTO_ClearQueue done [16:57:26]KKMCreateOFDPacket [16:57:26]OFDProtocolAddRootSTLVToBuf [16:57:26]FM_MakeSignedData [16:57:26]FM_MakeSignedData [16:57:26]SAM_PROTO_SignData [16:57:26]wFMCommunicate request_size=4 [16:57:26]MH_SAM_APDU [16:57:26]CAPDU: 80 0D 01 02 [16:57:26]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [16:57:26]Write i2c OK [16:57:26]MH_I2C_Read... [16:57:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:26]Read from MH i2c: E2 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: E2 03 00 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [16:57:26]RAPDU: 90 00 [16:57:26]wFMCommunicate OK [16:57:26]wFMCommunicate request_size=255 [16:57:26]MH_SAM_APDU [16:57: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 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 F5 97 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 9E EB 25 BC [16:57:26]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 F5 97 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 9E EB 25 BC 00 00 A3 [16:57:26]Write i2c OK [16:57:26]MH_I2C_Read... [16:57:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:26]Read from MH i2c: E2 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: E2 03 00 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [16:57:26]RAPDU: 90 00 [16:57:26]wFMCommunicate OK [16:57:26]wFMCommunicate request_size=7 [16:57:26]MH_SAM_APDU [16:57:26]CAPDU: 80 0D 02 02 02 E4 07 [16:57:26]Write to MH i2c: E2 0A 00 78 00 80 0D 02 02 02 00 E4 07 00 00 E1 [16:57:26]Write i2c OK [16:57:26]MH_I2C_Read... [16:57:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:27]Read from MH i2c: E2 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: E2 03 00 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [16:57:27]RAPDU: 90 00 [16:57:27]wFMCommunicate OK [16:57:27]wFMCommunicate request_size=4 [16:57:27]MH_SAM_APDU [16:57:27]CAPDU: 80 0D 03 02 [16:57:27]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [16:57:27]Write i2c OK [16:57:27]MH_I2C_Read... [16:57:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:27]Read from MH i2c: E2 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: E2 0B 00 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: E2 0B 00 79 00 00 FB FA 4D D4 CD 1E 7C D4 90 00 46 [16:57:27]RAPDU: FB FA 4D D4 CD 1E 7C D4 90 00 [16:57:27]wFMCommunicate OK [16:57:27]SAM_PROTO_SignData done [16:57:27]FM_MakeSignedData done [16:57:27]CreateOFDProtocolMessage [16:57:27]wFMCommunicate request_size=4 [16:57:27]MH_SAM_APDU [16:57:27]CAPDU: 80 11 00 00 [16:57:27]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [16:57:27]Write i2c OK [16:57:27]MH_I2C_Read... [16:57:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:27]Read from MH i2c: E2 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: E2 17 00 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4A [16:57: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:57:27]wFMCommunicate OK [16:57:27]CreateOFDProtocolMessage done [16:57:27]OFDSenderStorePacket 67107 [16:57:27]StoreOFDPacket docnum=67107 [16:57: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 94 82 04 01 E3 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 F5 97 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 9E EB 25 BC E4 07 FB FA 4D D4 CD 1E 7C D4 [16:57:27]CheckFolder [16:57:27]dirname=/storage/ofd_packets [16:57:27]CheckFolder done [16:57:27]ProducePacketName [16:57:27]name=ofd_packets/00067107 [16:57:27]NVStorageSaveData ofd_packets/00067107 [16:57:27]File name is /storage/ofd_packets/00067107 [16:57:27]Write 298 bytes [16:57:27]NVStorageSaveData done [16:57:27]OFDSenderStorePacket done [16:57:27]KKMCreateOFDPacket done [16:57:27]NVStorageSaveData kkm_last_timestamp [16:57:27]File name is /storage/kkm_last_timestamp [16:57:27]Write 4 bytes [16:57:27]NVStorageSaveData done [16:57:27]ExternCall_PrintAddStr [16:57:27]wPrintStart [16:57:27]Write to MH i2c: 01 00 00 7B 00 7B [16:57:27]Write i2c OK [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: 01 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: 01 07 00 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [16:57:27]RasterBufferAndPrint [16:57:27]line Счет N : (1)506999 [16:57:27]line ИНН: 02508201610067 [16:57:27]line Контрольно-Кассовый Чек [16:57:27]line ПРОДАЖА [16:57:27]line ТРК (МРК, ГНК) : 31 [16:57:27]line Товар: 2710194210 [16:57:27]line ДТ-К-5 [16:57:27]line 53.550 * 74.70 [16:57:27]line = 4000.19 [16:57:27]line НДС 12% НСП 1% [16:57:27]line > о реализуемом товаре [16:57:27]line ОКРУГЛЕНИЕ: -0.19 [16:57:27]line ИТОГО: 4000.00 [16:57:27]line Внесено: 4000.00 [16:57:27]line СДАЧА: 0.00 [16:57:27]line НСП 1% : 35.40 [16:57:27]line НДС 12% : 424.80 [16:57:27]line Наличными: 4000.00 [16:57:27]line Безнал.: 0.00 [16:57:27]line Место: АЗС № 91 "Партнер Нефть" [16:57:27]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:57:27]line СНО: Общий режим [16:57:27]line Чек 114 14.05.2024 16:57 [16:57:27]line Смена: 355 ФФД: 1.0 [16:57:27]line ЗНМ: 0300000119 [16:57:27]line РНМ: 0000000000091845 [16:57:27]line Версия ККМ: 001 [16:57:27]line ФМ: 0000000000871829 [16:57:27]line ФД: 67107 [16:57:27]line ФПД: 174732787639303 [16:57:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T165725&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67107&fm=174732787639303&tin=02508201610067®Number=0000000000091845&sum=400000 [16:57:27]OFD Sender: Processing packet 67107 [packets to send 35, broken 34] [16:57:27]ProducePacketName [16:57:27]name=ofd_packets/00067107 [16:57:27]OFD Sender: To server: pG, [16:57:27]CommunicateWithHost lk.salyk.kg:30040 [16:57:27]ConnectInit lk.salyk.kg [16:57:27]written 0, free lines is 4095 [16:57:27]Connected sock=10 [16:57:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 94 82 04 01 E3 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E D1 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 93 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 F5 97 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 9E EB 25 BC E4 07 FB FA 4D D4 CD 1E 7C D4 [16:57: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 46 50 47 00 FB E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 23 06 01 00 F4 03 04 00 D5 3F 43 66 B6 04 01 00 00 29 AB C8 F2 71 C6 9B 6A [16:57:27]CommunicateWithHost err = 0 [16:57:27]CheckOFDResponse [16:57:27]1017 (14) - 77093643461234 [16:57:27]1041 (16) - 0000000000871829 [16:57:27]1040 (4) - 67107 [16:57:27]1012 (4) - 14.05.2024 10:41 [16:57:27]1206 (1) - 0 [16:57:27]OFD Sender: Remove packet 67107 [16:57:27]ProducePacketName [16:57:27]name=ofd_packets/00067107 [16:57:27]NVStorageDeleteData [16:57:27]Write to MH i2c: 01 00 00 A5 00 A5 [16:57:27]Write i2c OK [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: 01 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: 01 07 00 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 D2 0C 8A [16:57:27]RasterBufferAndPrint [16:57:27]line [16:57:27]line [16:57:27]line [16:57:27]line [16:57:27]line [16:57:27]written 0, free lines is 3288 [16:57:27]MH_Cut [16:57:27]Write to MH i2c: D1 01 00 AC 00 01 7E [16:57:27]Write i2c OK [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: D1 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: D1 01 00 [16:57:27]MH_I2C_Read... [16:57:27]Read from MH i2c: D1 01 00 AC 00 00 7D [16:57:27]Write to MH i2c: 01 00 00 AD 00 AD [16:57:27]Write i2c OK [16:57:27]MH_I2C_Read... [16:57:28]OFD Sender: No OFD packet to send [16:57:28]*** Cut start [16:57:28]*** Purtial cut [16:57:28]*** CUTSNS_PIN = 0 [16:57:28]*** Stage 1: CUTSNS_PIN = 1 [16:57:30]Read from MH i2c: 01 [16:57:30]MH_I2C_Read... [16:57:30]*** Stop cut motor [16:57:30]*** Cut end [16:57:30]Read from MH i2c: 01 07 00 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [16:57:30]process_action close_receipt done [16:57:30]requested_data is exist [16:57:30]produce_requested_data [16:57:30]requested_item fm.sn is exist - process it [16:57:30]wFMCommunicate request_size=4 [16:57:30]MH_SAM_APDU [16:57:30]CAPDU: 80 11 00 00 [16:57:30]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [16:57:30]Write i2c OK [16:57:30]MH_I2C_Read... [16:57:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:30]Read from MH i2c: E2 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 17 00 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7E [16:57: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:57:30]wFMCommunicate OK [16:57:30]requested_item fd.num is exist - process it [16:57:30]SAM_PROTO_GetFieldsCounters [16:57:30]wFMCommunicate request_size=4 [16:57:30]MH_SAM_APDU [16:57:30]CAPDU: 80 13 00 00 [16:57:30]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [16:57:30]Write i2c OK [16:57:30]MH_I2C_Read... [16:57:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:30]Read from MH i2c: E2 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 62 00 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 62 00 AF 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 23 06 01 00 0E 04 04 00 63 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 35 [16:57: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 23 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:57:30]wFMCommunicate OK [16:57:30]SAM_PROTO_GetFieldsCounters done [16:57:30]requested_item shift.num is exist - process it [16:57:30]requested_item shift.opened is exist - process it [16:57:30]req_shift_opened [16:57:30]FM_GetShiftState [16:57:30]SAM_PROTO_GetShiftState [16:57:30]wFMCommunicate request_size=4 [16:57:30]MH_SAM_APDU [16:57:30]CAPDU: 80 13 01 00 [16:57:30]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [16:57:30]Write i2c OK [16:57:30]MH_I2C_Read... [16:57:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:30]Read from MH i2c: E2 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 0E 00 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F5 [16:57:30]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:57:30]wFMCommunicate OK [16:57:30]SAM_PROTO_GetShiftState done [16:57:30]FM_GetShiftState done [16:57:30]req_shift_opened done [16:57:30]requested_item shift.open_date is exist - process it [16:57:30]req_shift_open_date [16:57:30]req_shift_open_date done [16:57:30]produce_requested_data done [16:57:30]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67107,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [16:57:30]process_action_free close_receipt [16:57:30]json_value_free [16:57:30]json_value_free done [16:57:30]process_json_proto returns [16:57:30]Send response to host [16:57:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67107,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [16:57:30]free response buf [16:57:30]execute_script done [16:57:30]execute_script returns [16:57:30]free content buf [16:57:30]Sock 7.Close socket [16:57:30]Sock 7.Thread stoped [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:54]accept exits with 9 [16:58:54]New connection [16:58:54]New thread 3066731876 created [16:58:54]Thread 3066588516 joined [16:58:54]Waiting for new connection... [16:58:54] Sock 9.Parse request [16:58:54]Sock 9.Check first char [16:58:54]Sock 9.First char is OK [16:58:54]request: POST /json_proto HTTP/1.0 [16:58:54]Method: POST [16:58:54]URL: /json_proto [16:58:54]Method is POST - this is cgi request [16:58:54]url: /json_proto [16:58:54]query_string will be loaded in cgi processing [16:58:54]execute_cgi json_proto POST (null) [16:58:54]execute_cgi path=json_proto method=POST [16:58:54]POST find Content-Length [16:58:54]Host: 172.17.41.195:8080 [16:58:54]Content-Length: 798 [16:58:54]Content-Type: application/json [16:58:54] [16:58:54]POST finish read [16:58:54]Found Content-Length = 798 [16:58:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507000", "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.000, "sum" : 971.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 971.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:54]execute_script... [16:58: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)507000", "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.000, "sum" : 971.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 971.10 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:54]POST & json_proto [16:58:54]process_json_proto [16:58:54]json parsed OK: [16:58:54]protocol is kg_v1.0 [16:58:54]action value=close_receipt [16:58:54]process_action close_receipt [16:58:54]cmd_close_receipt [16:58:54]MH_GetDate [16:58:54]Write to MH i2c: F0 00 00 B1 00 A0 [16:58:54]Write i2c OK [16:58:54]MH_I2C_Read... [16:58:54]Read from MH i2c: F0 [16:58:54]MH_I2C_Read... [16:58:54]Read from MH i2c: F0 09 00 [16:58:54]MH_I2C_Read... [16:58:54]Read from MH i2c: F0 09 00 B1 00 00 4E 98 43 66 FC 21 6F 64 28 [16:58:54]GetLastDocTimeStamp 1715705845 [16:58:54]current date 1715705934 [16:58:54]FM_GetShiftState [16:58:54]SAM_PROTO_GetShiftState [16:58:54]wFMCommunicate request_size=4 [16:58:54]MH_SAM_APDU [16:58:54]CAPDU: 80 13 01 00 [16:58:54]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [16:58:54]Write i2c OK [16:58:54]MH_I2C_Read... [16:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:54]Read from MH i2c: E2 [16:58:54]MH_I2C_Read... [16:58:54]Read from MH i2c: E2 0E 00 [16:58:54]MH_I2C_Read... [16:58:54]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F7 [16:58:54]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:58:54]wFMCommunicate OK [16:58:54]SAM_PROTO_GetShiftState done [16:58:54]FM_GetShiftState done [16:58:54]opened in 1715646054 [16:58:54]opened+sec_in_day 1715732454 [16:58:54]quantity*price = 97110 [16:58:54]sum+1 = 97111 [16:58:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 971.10 НСП 1% : 8.59 НДС 12% : 103.13 Наличными: 0.00 Безнал.: 971.10 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 115 14.05.2024 16:58 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67108 ФПД: 127554668620875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T165854&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67108&fm=127554668620875&tin=02508201610067®Number=0000000000091845&sum=97110 [16:58:55]StoreToDocumentArchive [16:58:55]shift 355 fd 67108 [16:58:55]save to /storage/0355/doc_00067108 [16:58:55]save last doc name /storage/0355/doc_00067108 to /storage/kkm_last_doc_name [16:58:55]save OK [16:58:55]Clear old archive folders... [16:58:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:58:55]tlvbuf is 0038F280 [16:58:55]SAM_PROTO_ClearQueue [16:58:55]wFMCommunicate request_size=4 [16:58:55]MH_SAM_APDU [16:58:55]CAPDU: 80 09 00 00 [16:58:55]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [16:58:55]Write i2c OK [16:58:55]MH_I2C_Read... [16:58:55]Read from MH i2c: E2 [16:58:55]MH_I2C_Read... [16:58:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:55]Read from MH i2c: E2 03 00 [16:58:55]MH_I2C_Read... [16:58:55]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [16:58:55]RAPDU: 90 00 [16:58:55]wFMCommunicate OK [16:58:55]SAM_PROTO_ClearQueue done [16:58:55]KKMCreateOFDPacket [16:58:55]OFDProtocolAddRootSTLVToBuf [16:58:55]FM_MakeSignedData [16:58:55]FM_MakeSignedData [16:58:55]SAM_PROTO_SignData [16:58:55]wFMCommunicate request_size=4 [16:58:55]MH_SAM_APDU [16:58:55]CAPDU: 80 0D 01 02 [16:58:55]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [16:58:55]Write i2c OK [16:58:55]MH_I2C_Read... [16:58:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:55]Read from MH i2c: E2 [16:58:55]MH_I2C_Read... [16:58:55]Read from MH i2c: E2 03 00 [16:58:55]MH_I2C_Read... [16:58:55]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [16:58:55]RAPDU: 90 00 [16:58:55]wFMCommunicate OK [16:58:55]wFMCommunicate request_size=255 [16:58:55]MH_SAM_APDU [16:58: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 C8 32 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 56 7B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 7B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 7B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 4E 98 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 74 02 A2 B6 [16:58:55]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 32 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 56 7B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 7B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 7B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 4E 98 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 74 02 A2 B6 00 00 84 [16:58:55]Write i2c OK [16:58:55]MH_I2C_Read... [16:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:55]Read from MH i2c: E2 [16:58:55]MH_I2C_Read... [16:58:55]Read from MH i2c: E2 03 00 [16:58:55]MH_I2C_Read... [16:58:55]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [16:58:55]RAPDU: 90 00 [16:58:55]wFMCommunicate OK [16:58:55]wFMCommunicate request_size=7 [16:58:55]MH_SAM_APDU [16:58:55]CAPDU: 80 0D 02 02 02 6C 4B [16:58:55]Write to MH i2c: E2 0A 00 C2 00 80 0D 02 02 02 00 6C 4B 00 00 F7 [16:58:55]Write i2c OK [16:58:55]MH_I2C_Read... [16:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:55]Read from MH i2c: E2 [16:58:55]MH_I2C_Read... [16:58:55]Read from MH i2c: E2 03 00 [16:58:55]MH_I2C_Read... [16:58:55]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [16:58:55]RAPDU: 90 00 [16:58:55]wFMCommunicate OK [16:58:55]wFMCommunicate request_size=4 [16:58:55]MH_SAM_APDU [16:58:55]CAPDU: 80 0D 03 02 [16:58:55]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [16:58:55]Write i2c OK [16:58:55]MH_I2C_Read... [16:58:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:55]Read from MH i2c: E2 [16:58:55]MH_I2C_Read... [16:58:55]Read from MH i2c: E2 0B 00 [16:58:55]MH_I2C_Read... [16:58:55]Read from MH i2c: E2 0B 00 C3 00 00 ED 23 51 8B 85 B4 AB C4 90 00 D3 [16:58:55]RAPDU: ED 23 51 8B 85 B4 AB C4 90 00 [16:58:55]wFMCommunicate OK [16:58:55]SAM_PROTO_SignData done [16:58:55]FM_MakeSignedData done [16:58:55]CreateOFDProtocolMessage [16:58:55]wFMCommunicate request_size=4 [16:58:55]MH_SAM_APDU [16:58:55]CAPDU: 80 11 00 00 [16:58:55]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [16:58:55]Write i2c OK [16:58:55]MH_I2C_Read... [16:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:55]Read from MH i2c: E2 [16:58:55]MH_I2C_Read... [16:58:55]Read from MH i2c: E2 17 00 [16:58:55]MH_I2C_Read... [16:58:55]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 94 [16:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:58:55]wFMCommunicate OK [16:58:55]CreateOFDProtocolMessage done [16:58:55]OFDSenderStorePacket 67108 [16:58:55]StoreOFDPacket docnum=67108 [16:58: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 66 38 04 01 39 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 32 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 56 7B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 7B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 7B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 4E 98 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 74 02 A2 B6 6C 4B ED 23 51 8B 85 B4 AB C4 [16:58:55]CheckFolder [16:58:55]dirname=/storage/ofd_packets [16:58:55]CheckFolder done [16:58:55]ProducePacketName [16:58:55]name=ofd_packets/00067108 [16:58:55]NVStorageSaveData ofd_packets/00067108 [16:58:55]File name is /storage/ofd_packets/00067108 [16:58:55]Write 298 bytes [16:58:55]NVStorageSaveData done [16:58:55]OFDSenderStorePacket done [16:58:55]KKMCreateOFDPacket done [16:58:55]NVStorageSaveData kkm_last_timestamp [16:58:55]File name is /storage/kkm_last_timestamp [16:58:55]Write 4 bytes [16:58:55]NVStorageSaveData done [16:58:55]ExternCall_PrintAddStr [16:58:55]wPrintStart [16:58:55]Write to MH i2c: 01 00 00 C5 00 C5 [16:58:55]Write i2c OK [16:58:55]MH_I2C_Read... [16:58:55]Read from MH i2c: 01 [16:58:55]MH_I2C_Read... [16:58:55]Read from MH i2c: 01 07 00 [16:58:55]MH_I2C_Read... [16:58:55]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [16:58:55]RasterBufferAndPrint [16:58:55]line Счет N : (1)507000 [16:58:55]line ИНН: 02508201610067 [16:58:55]line Контрольно-Кассовый Чек [16:58:55]line ПРОДАЖА [16:58:55]line ТРК (МРК, ГНК) : 11 [16:58:55]line Товар: 2710194210 [16:58:55]line ДТ-К-5 [16:58:55]line 13.000 * 74.70 [16:58:55]line = 971.10 [16:58:55]line НДС 12% НСП 1% [16:58:55]line > о реализуемом товаре [16:58:55]line ИТОГО: 971.10 [16:58:55]line НСП 1% : 8.59 [16:58:55]line НДС 12% : 103.13 [16:58:55]line Наличными: 0.00 [16:58:55]line Безнал.: 971.10 [16:58:55]line Место: АЗС № 91 "Партнер Нефть" [16:58:55]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [16:58:55]line СНО: Общий режим [16:58:55]line Чек 115 14.05.2024 16:58 [16:58:55]line Смена: 355 ФФД: 1.0 [16:58:55]line ЗНМ: 0300000119 [16:58:55]line РНМ: 0000000000091845 [16:58:55]line Версия ККМ: 001 [16:58:55]line Платежная система: O! деньги [16:58:55]line ФМ: 0000000000871829 [16:58:55]line ФД: 67108 [16:58:55]line ФПД: 127554668620875 [16:58:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T165854&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67108&fm=127554668620875&tin=02508201610067®Number=0000000000091845&sum=97110 [16:58:56]OFD Sender: Processing packet 67108 [packets to send 35, broken 34] [16:58:56]ProducePacketName [16:58:56]name=ofd_packets/00067108 [16:58:56]OFD Sender: To server: pG, [16:58:56]CommunicateWithHost lk.salyk.kg:30040 [16:58:56]ConnectInit lk.salyk.kg [16:58:56]written 0, free lines is 4095 [16:58:56]Connected sock=10 [16:58: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 66 38 04 01 39 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 32 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 56 7B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 7B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 28 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 7B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 4E 98 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 74 02 A2 B6 6C 4B ED 23 51 8B 85 B4 AB C4 [16:58: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 40 06 47 00 EF 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 24 06 01 00 F4 03 04 00 2D 40 43 66 B6 04 01 00 00 B1 BF 82 D7 FF EB 1F 6A [16:58:56]CommunicateWithHost err = 0 [16:58:56]CheckOFDResponse [16:58:56]1017 (14) - 77093643461234 [16:58:56]1041 (16) - 0000000000871829 [16:58:56]1040 (4) - 67108 [16:58:56]1012 (4) - 14.05.2024 10:42 [16:58:56]1206 (1) - 0 [16:58:56]OFD Sender: Remove packet 67108 [16:58:56]ProducePacketName [16:58:56]name=ofd_packets/00067108 [16:58:56]NVStorageDeleteData [16:58:56]Write to MH i2c: 01 00 00 EE 00 EE [16:58:56]Write i2c OK [16:58:56]MH_I2C_Read... [16:58:56]Read from MH i2c: 01 [16:58:56]MH_I2C_Read... [16:58:56]Read from MH i2c: 01 07 00 [16:58:56]MH_I2C_Read... [16:58:56]Read from MH i2c: 01 07 00 EE 00 00 00 00 00 00 E2 0C E3 [16:58:56]RasterBufferAndPrint [16:58:56]line [16:58:56]line [16:58:56]line [16:58:56]line [16:58:56]line [16:58:56]written 0, free lines is 3306 [16:58:56]MH_Cut [16:58:56]Write to MH i2c: D1 01 00 F5 00 01 C7 [16:58:56]Write i2c OK [16:58:56]MH_I2C_Read... [16:58:56]Read from MH i2c: D1 [16:58:56]MH_I2C_Read... [16:58:56]Read from MH i2c: D1 01 00 [16:58:56]MH_I2C_Read... [16:58:56]Read from MH i2c: D1 01 00 F5 00 00 C6 [16:58:56]Write to MH i2c: 01 00 00 F6 00 F6 [16:58:56]Write i2c OK [16:58:56]MH_I2C_Read... [16:58:56]OFD Sender: No OFD packet to send [16:58:57]*** Cut start [16:58:57]*** Purtial cut [16:58:57]*** Stage 1: CUTSNS_PIN = 1 [16:58:57]Read from MH i2c: 01 [16:58:57]MH_I2C_Read... [16:58:57]*** Stop cut motor [16:58:57]*** Cut end [16:58:57]Read from MH i2c: 01 07 00 [16:58:57]MH_I2C_Read... [16:58:57]Read from MH i2c: 01 07 00 F6 00 00 00 00 00 00 FF 0F 0B [16:58:57]process_action close_receipt done [16:58:57]requested_data is exist [16:58:57]produce_requested_data [16:58:57]requested_item fm.sn is exist - process it [16:58:57]wFMCommunicate request_size=4 [16:58:57]MH_SAM_APDU [16:58:57]CAPDU: 80 11 00 00 [16:58:57]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [16:58:57]Write i2c OK [16:58:57]MH_I2C_Read... [16:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:57]Read from MH i2c: E2 [16:58:57]MH_I2C_Read... [16:58:57]Read from MH i2c: E2 17 00 [16:58:57]MH_I2C_Read... [16:58:57]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C7 [16:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [16:58:57]wFMCommunicate OK [16:58:57]requested_item fd.num is exist - process it [16:58:57]SAM_PROTO_GetFieldsCounters [16:58:57]wFMCommunicate request_size=4 [16:58:57]MH_SAM_APDU [16:58:57]CAPDU: 80 13 00 00 [16:58:57]Write to MH i2c: E2 08 00 F8 00 80 13 00 00 00 00 00 00 74 [16:58:57]Write i2c OK [16:58:57]MH_I2C_Read... [16:58:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:57]Read from MH i2c: E2 [16:58:57]MH_I2C_Read... [16:58:57]Read from MH i2c: E2 62 00 [16:58:57]MH_I2C_Read... [16:58:57]Read from MH i2c: E2 62 00 F8 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 24 06 01 00 0E 04 04 00 63 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 82 [16:58: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 24 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:57]wFMCommunicate OK [16:58:57]SAM_PROTO_GetFieldsCounters done [16:58:57]requested_item shift.num is exist - process it [16:58:57]requested_item shift.opened is exist - process it [16:58:57]req_shift_opened [16:58:57]FM_GetShiftState [16:58:57]SAM_PROTO_GetShiftState [16:58:57]wFMCommunicate request_size=4 [16:58:57]MH_SAM_APDU [16:58:57]CAPDU: 80 13 01 00 [16:58:57]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [16:58:57]Write i2c OK [16:58:57]MH_I2C_Read... [16:58:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:57]Read from MH i2c: E2 [16:58:57]MH_I2C_Read... [16:58:57]Read from MH i2c: E2 0E 00 [16:58:57]MH_I2C_Read... [16:58:57]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 3E [16:58:57]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [16:58:57]wFMCommunicate OK [16:58:57]SAM_PROTO_GetShiftState done [16:58:57]FM_GetShiftState done [16:58:57]req_shift_opened done [16:58:57]requested_item shift.open_date is exist - process it [16:58:57]req_shift_open_date [16:58:57]req_shift_open_date done [16:58:57]produce_requested_data done [16:58:57]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67108,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [16:58:57]process_action_free close_receipt [16:58:57]json_value_free [16:58:57]json_value_free done [16:58:57]process_json_proto returns [16:58:57]Send response to host [16:58:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67108,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [16:58:57]free response buf [16:58:57]execute_script done [16:58:57]execute_script returns [16:58:57]free content buf [16:58:57]Sock 9.Close socket [16:58:57]Sock 9.Thread stoped [16:59:01]OFD Sender: No OFD packet to send [16:59:06]OFD Sender: No OFD packet to send [16:59:11]OFD Sender: No OFD packet to send [16:59:12]recv_with_timeout no data received [16:59:16]OFD Sender: No OFD packet to send [16:59:21]OFD Sender: No OFD packet to send [16:59:26]OFD Sender: No OFD packet to send [16:59:31]OFD Sender: No OFD packet to send [16:59:36]OFD Sender: No OFD packet to send [16:59:40]recv_with_timeout no data received [16:59:41]OFD Sender: No OFD packet to send [16:59:46]OFD Sender: No OFD packet to send [16:59:51]OFD Sender: No OFD packet to send [16:59:56]OFD Sender: No OFD packet to send [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:54]accept exits with 7 [17:00:54]New connection [17:00:54]New thread 3066588516 created [17:00:54]Thread 3066731876 joined [17:00:54]Waiting for new connection... [17:00:54] Sock 7.Parse request [17:00:54]Sock 7.Check first char [17:00:54]Sock 7.First char is OK [17:00:54]request: POST /json_proto HTTP/1.0 [17:00:54]Method: POST [17:00:54]URL: /json_proto [17:00:54]Method is POST - this is cgi request [17:00:54]url: /json_proto [17:00:54]query_string will be loaded in cgi processing [17:00:54]execute_cgi json_proto POST (null) [17:00:54]execute_cgi path=json_proto method=POST [17:00:54]POST find Content-Length [17:00:54]Host: 172.17.41.195:8080 [17:00:54]Content-Length: 677 [17:00:54]Content-Type: application/json [17:00:54] [17:00:54]POST finish read [17:00:54]Found Content-Length = 677 [17:00:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507001", "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.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" ] } } [17:00:54]execute_script... [17: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)507001", "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.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" ] } } [17:00:54]POST & json_proto [17:00:54]process_json_proto [17:00:54]json parsed OK: [17:00:54]protocol is kg_v1.0 [17:00:54]action value=close_receipt [17:00:54]process_action close_receipt [17:00:54]cmd_close_receipt [17:00:54]MH_GetDate [17:00:54]Write to MH i2c: F0 00 00 FA 00 E9 [17:00:54]Write i2c OK [17:00:54]MH_I2C_Read... [17:00:54]Read from MH i2c: F0 [17:00:54]MH_I2C_Read... [17:00:54]Read from MH i2c: F0 09 00 [17:00:54]MH_I2C_Read... [17:00:54]Read from MH i2c: F0 09 00 FA 00 00 C6 98 43 66 FC 21 6F 64 E9 [17:00:54]GetLastDocTimeStamp 1715705934 [17:00:54]current date 1715706054 [17:00:54]FM_GetShiftState [17:00:54]SAM_PROTO_GetShiftState [17:00:54]wFMCommunicate request_size=4 [17:00:54]MH_SAM_APDU [17:00:54]CAPDU: 80 13 01 00 [17:00:54]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [17:00:54]Write i2c OK [17:00:54]MH_I2C_Read... [17:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:54]Read from MH i2c: E2 [17:00:54]MH_I2C_Read... [17:00:54]Read from MH i2c: E2 0E 00 [17:00:54]MH_I2C_Read... [17:00:54]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 40 [17:00:54]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:00:54]wFMCommunicate OK [17:00:54]SAM_PROTO_GetShiftState done [17:00:54]FM_GetShiftState done [17:00:54]opened in 1715646054 [17:00:54]opened+sec_in_day 1715732454 [17:00:54]quantity*price = 35003 [17:00:54]sum+1 = 35004 [17:00:54]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 СНО: Общий режим Чек 116 14.05.2024 17:00 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67109 ФПД: 28056291863879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T170054&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67109&fm=28056291863879&tin=02508201610067®Number=0000000000091845&sum=35000 [17:00:55]StoreToDocumentArchive [17:00:55]shift 355 fd 67109 [17:00:55]save to /storage/0355/doc_00067109 [17:00:55]save last doc name /storage/0355/doc_00067109 to /storage/kkm_last_doc_name [17:00:55]save OK [17:00:55]Clear old archive folders... [17:00:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:00:55]tlvbuf is 0039E020 [17:00:55]SAM_PROTO_ClearQueue [17:00:55]wFMCommunicate request_size=4 [17:00:55]MH_SAM_APDU [17:00:55]CAPDU: 80 09 00 00 [17:00:55]Write to MH i2c: E2 08 00 08 01 80 09 00 00 00 00 00 00 7B [17:00:55]Write i2c OK [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: E2 [17:00:55]MH_I2C_Read... [17:00:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:00:55]Read from MH i2c: E2 03 00 [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [17:00:55]RAPDU: 90 00 [17:00:55]wFMCommunicate OK [17:00:55]SAM_PROTO_ClearQueue done [17:00:55]KKMCreateOFDPacket [17:00:55]OFDProtocolAddRootSTLVToBuf [17:00:55]FM_MakeSignedData [17:00:55]FM_MakeSignedData [17:00:55]SAM_PROTO_SignData [17:00:55]wFMCommunicate request_size=4 [17:00:55]MH_SAM_APDU [17:00:55]CAPDU: 80 0D 01 02 [17:00:55]Write to MH i2c: E2 08 00 09 01 80 0D 01 02 00 00 00 00 83 [17:00:55]Write i2c OK [17:00:55]MH_I2C_Read... [17:00:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:00:55]Read from MH i2c: E2 [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: E2 03 00 [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [17:00:55]RAPDU: 90 00 [17:00:55]wFMCommunicate OK [17:00:55]wFMCommunicate request_size=255 [17:00:55]MH_SAM_APDU [17:00:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 74 00 00 00 F4 03 04 00 C6 98 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 19 [17:00:55]Write to MH i2c: E2 02 01 0A 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 74 00 00 00 F4 03 04 00 C6 98 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 19 00 00 01 [17:00:55]Write i2c OK [17:00:55]MH_I2C_Read... [17:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:55]Read from MH i2c: E2 [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: E2 03 00 [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [17:00:55]RAPDU: 90 00 [17:00:55]wFMCommunicate OK [17:00:55]wFMCommunicate request_size=10 [17:00:55]MH_SAM_APDU [17:00:55]CAPDU: 80 0D 02 02 05 84 5D 4F 6D 47 [17:00:55]Write to MH i2c: E2 0D 00 0B 01 80 0D 02 02 05 00 84 5D 4F 6D 47 00 00 74 [17:00:55]Write i2c OK [17:00:55]MH_I2C_Read... [17:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:55]Read from MH i2c: E2 [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: E2 03 00 [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [17:00:55]RAPDU: 90 00 [17:00:55]wFMCommunicate OK [17:00:55]wFMCommunicate request_size=4 [17:00:55]MH_SAM_APDU [17:00:55]CAPDU: 80 0D 03 02 [17:00:55]Write to MH i2c: E2 08 00 0C 01 80 0D 03 02 00 00 00 00 88 [17:00:55]Write i2c OK [17:00:55]MH_I2C_Read... [17:00:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:55]Read from MH i2c: E2 [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: E2 0B 00 [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: E2 0B 00 0C 01 00 F8 88 BD 95 00 EF 27 E1 90 00 52 [17:00:55]RAPDU: F8 88 BD 95 00 EF 27 E1 90 00 [17:00:55]wFMCommunicate OK [17:00:55]SAM_PROTO_SignData done [17:00:55]FM_MakeSignedData done [17:00:55]CreateOFDProtocolMessage [17:00:55]wFMCommunicate request_size=4 [17:00:55]MH_SAM_APDU [17:00:55]CAPDU: 80 11 00 00 [17:00:55]Write to MH i2c: E2 08 00 0D 01 80 11 00 00 00 00 00 00 88 [17:00:55]Write i2c OK [17:00:55]MH_I2C_Read... [17:00:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:55]Read from MH i2c: E2 [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: E2 17 00 [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: E2 17 00 0D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DE [17: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 [17:00:55]wFMCommunicate OK [17:00:55]CreateOFDProtocolMessage done [17:00:55]OFDSenderStorePacket 67109 [17:00:55]StoreOFDPacket docnum=67109 [17: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 0F 01 00 00 3C CB 07 01 FF 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 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 74 00 00 00 F4 03 04 00 C6 98 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 19 84 5D 4F 6D 47 F8 88 BD 95 00 EF 27 E1 [17:00:55]CheckFolder [17:00:55]dirname=/storage/ofd_packets [17:00:55]CheckFolder done [17:00:55]ProducePacketName [17:00:55]name=ofd_packets/00067109 [17:00:55]NVStorageSaveData ofd_packets/00067109 [17:00:55]File name is /storage/ofd_packets/00067109 [17:00:55]Write 301 bytes [17:00:55]NVStorageSaveData done [17:00:55]OFDSenderStorePacket done [17:00:55]KKMCreateOFDPacket done [17:00:55]NVStorageSaveData kkm_last_timestamp [17:00:55]File name is /storage/kkm_last_timestamp [17:00:55]Write 4 bytes [17:00:55]NVStorageSaveData done [17:00:55]ExternCall_PrintAddStr [17:00:55]wPrintStart [17:00:55]Write to MH i2c: 01 00 00 0E 01 0F [17:00:55]Write i2c OK [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: 01 [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: 01 07 00 [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: 01 07 00 0E 01 00 00 00 00 00 FF 0F 24 [17:00:55]RasterBufferAndPrint [17:00:55]line Счет N : (1)507001 [17:00:55]line ИНН: 02508201610067 [17:00:55]line Контрольно-Кассовый Чек [17:00:55]line ПРОДАЖА [17:00:55]line ТРК (МРК, ГНК) : 33 [17:00:55]line Товар: 2710124130 [17:00:55]line Аи-92-К-5 [17:00:55]line 5.240 * 66.80 [17:00:55]line = 350.03 [17:00:55]line НДС 12% НСП 1% [17:00:55]line > о реализуемом товаре [17:00:55]line ОКРУГЛЕНИЕ: -0.03 [17:00:55]line ИТОГО: 350.00 [17:00:55]line Внесено: 350.00 [17:00:55]line СДАЧА: 0.00 [17:00:55]line НСП 1% : 3.10 [17:00:55]line НДС 12% : 37.17 [17:00:55]line Наличными: 350.00 [17:00:55]line Безнал.: 0.00 [17:00:55]line Место: АЗС № 91 "Партнер Нефть" [17:00:55]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:00:55]line СНО: Общий режим [17:00:55]line Чек 116 14.05.2024 17:00 [17:00:55]line Смена: 355 ФФД: 1.0 [17:00:55]line ЗНМ: 0300000119 [17:00:55]line РНМ: 0000000000091845 [17:00:55]line Версия ККМ: 001 [17:00:55]line ФМ: 0000000000871829 [17:00:55]line ФД: 67109 [17:00:55]line ФПД: 28056291863879 [17:00:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T170054&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67109&fm=28056291863879&tin=02508201610067®Number=0000000000091845&sum=35000 [17:00:56]OFD Sender: Processing packet 67109 [packets to send 35, broken 34] [17:00:56]ProducePacketName [17:00:56]name=ofd_packets/00067109 [17:00:56]OFD Sender: To server: pG, [17:00:56]CommunicateWithHost lk.salyk.kg:30040 [17:00:56]ConnectInit lk.salyk.kg [17:00:56]written 0, free lines is 4095 [17:00:56]Write to MH i2c: 01 00 00 38 01 39 [17:00:56]Write i2c OK [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: 01 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: 01 07 00 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 CB 0C 17 [17:00:56]RasterBufferAndPrint [17:00:56]line [17:00:56]line [17:00:56]line [17:00:56]line [17:00:56]line [17:00:56]written 0, free lines is 3281 [17:00:56]MH_Cut [17:00:56]Write to MH i2c: D1 01 00 3F 01 01 12 [17:00:56]Write i2c OK [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: D1 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: D1 01 00 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: D1 01 00 3F 01 00 11 [17:00:56]Write to MH i2c: 01 00 00 40 01 41 [17:00:56]Write i2c OK [17:00:56]MH_I2C_Read... [17:00:57]*** Cut start [17:00:57]*** Purtial cut [17:00:57]*** CUTSNS_PIN = 0 [17:00:57]*** Stage 1: CUTSNS_PIN = 1 [17:00:59]Read from MH i2c: 01 [17:00:59]MH_I2C_Read... [17:00:59]*** Stop cut motor [17:00:59]*** Cut end [17:00:59]Read from MH i2c: 01 07 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: 01 07 00 40 01 00 00 00 00 00 FF 0F 56 [17:00:59]process_action close_receipt done [17:00:59]requested_data is exist [17:00:59]produce_requested_data [17:00:59]requested_item fm.sn is exist - process it [17:00:59]wFMCommunicate request_size=4 [17:00:59]MH_SAM_APDU [17:00:59]CAPDU: 80 11 00 00 [17:00:59]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:59]Read from MH i2c: E2 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 17 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 17 00 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 12 [17: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 [17:00:59]wFMCommunicate OK [17:00:59]requested_item fd.num is exist - process it [17:00:59]SAM_PROTO_GetFieldsCounters [17:00:59]wFMCommunicate request_size=4 [17:00:59]MH_SAM_APDU [17:00:59]CAPDU: 80 13 00 00 [17:00:59]Write to MH i2c: E2 08 00 42 01 80 13 00 00 00 00 00 00 BF [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:00:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:59]Read from MH i2c: E2 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 62 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 62 00 42 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 25 06 01 00 0E 04 04 00 63 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 D1 [17: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 25 06 01 00 0E 04 04 00 63 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 [17:00:59]wFMCommunicate OK [17:00:59]SAM_PROTO_GetFieldsCounters done [17:00:59]requested_item shift.num is exist - process it [17:00:59]requested_item shift.opened is exist - process it [17:00:59]req_shift_opened [17:00:59]FM_GetShiftState [17:00:59]SAM_PROTO_GetShiftState [17:00:59]wFMCommunicate request_size=4 [17:00:59]MH_SAM_APDU [17:00:59]CAPDU: 80 13 01 00 [17:00:59]Write to MH i2c: E2 08 00 43 01 80 13 01 00 00 00 00 00 C1 [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:00:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:59]Read from MH i2c: E2 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 0E 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 0E 00 43 01 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 89 [17:00:59]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:00:59]wFMCommunicate OK [17:00:59]SAM_PROTO_GetShiftState done [17:00:59]FM_GetShiftState done [17:00:59]req_shift_opened done [17:00:59]requested_item shift.open_date is exist - process it [17:00:59]req_shift_open_date [17:00:59]req_shift_open_date done [17:00:59]produce_requested_data done [17:00:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67109,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [17:00:59]process_action_free close_receipt [17:00:59]json_value_free [17:00:59]json_value_free done [17:00:59]process_json_proto returns [17:00:59]Send response to host [17:00:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67109,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [17:00:59]free response buf [17:00:59]execute_script done [17:00:59]execute_script returns [17:00:59]free content buf [17:00:59]Sock 7.Close socket [17:00:59]Sock 7.Thread stoped [17:01:01]ConnectInit Can't take IP for lk.salyk.kg [17:01:01]CommunicateWithHost connect error [17:01:01]CommunicateWithHost err = -1 [17:01:01]OFD Sender: Server communicate error [17:01:06]OFD Sender: Processing packet 67109 [packets to send 35, broken 34] [17:01:06]ProducePacketName [17:01:06]name=ofd_packets/00067109 [17:01:06]OFD Sender: To server: pG, [17:01:06]CommunicateWithHost lk.salyk.kg:30040 [17:01:06]ConnectInit lk.salyk.kg [17:01:06]Connected sock=7 [17:01:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 3C CB 07 01 FF 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 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 74 00 00 00 F4 03 04 00 C6 98 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 19 84 5D 4F 6D 47 F8 88 BD 95 00 EF 27 E1 [17:01:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 B3 4B 47 00 F0 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 06 01 00 F4 03 04 00 AF 40 43 66 B6 04 01 00 00 24 EC B7 18 C1 E7 BF D8 [17:01:06]CommunicateWithHost err = 0 [17:01:06]CheckOFDResponse [17:01:06]1017 (14) - 77093643461234 [17:01:06]1041 (16) - 0000000000871829 [17:01:06]1040 (4) - 67109 [17:01:06]1012 (4) - 14.05.2024 10:45 [17:01:06]1206 (1) - 0 [17:01:06]OFD Sender: Remove packet 67109 [17:01:06]ProducePacketName [17:01:06]name=ofd_packets/00067109 [17:01:06]NVStorageDeleteData [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:24]recv_with_timeout no data received [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:52]accept exits with 9 [17:03:52]New connection [17:03:52]New thread 3066731876 created [17:03:52]Thread 3066588516 joined [17:03:52]Waiting for new connection... [17:03:52] Sock 9.Parse request [17:03:52]Sock 9.Check first char [17:03:52]Sock 9.First char is OK [17:03:52]request: POST /json_proto HTTP/1.0 [17:03:52]Method: POST [17:03:52]URL: /json_proto [17:03:52]Method is POST - this is cgi request [17:03:52]url: /json_proto [17:03:52]query_string will be loaded in cgi processing [17:03:52]execute_cgi json_proto POST (null) [17:03:52]execute_cgi path=json_proto method=POST [17:03:52]POST find Content-Length [17:03:52]Host: 172.17.41.195:8080 [17:03:52]Content-Length: 675 [17:03:52]Content-Type: application/json [17:03:52] [17:03:52]POST finish read [17:03:52]Found Content-Length = 675 [17:03:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:52]execute_script... [17:03: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)507002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:52]POST & json_proto [17:03:52]process_json_proto [17:03:52]json parsed OK: [17:03:52]protocol is kg_v1.0 [17:03:52]action value=close_receipt [17:03:52]process_action close_receipt [17:03:52]cmd_close_receipt [17:03:52]MH_GetDate [17:03:52]Write to MH i2c: F0 00 00 44 01 34 [17:03:52]Write i2c OK [17:03:52]MH_I2C_Read... [17:03:52]Read from MH i2c: F0 [17:03:52]MH_I2C_Read... [17:03:52]Read from MH i2c: F0 09 00 [17:03:52]MH_I2C_Read... [17:03:52]Read from MH i2c: F0 09 00 44 01 00 78 99 43 66 FC 21 6F 64 E7 [17:03:52]GetLastDocTimeStamp 1715706054 [17:03:52]current date 1715706232 [17:03:52]FM_GetShiftState [17:03:52]SAM_PROTO_GetShiftState [17:03:52]wFMCommunicate request_size=4 [17:03:52]MH_SAM_APDU [17:03:52]CAPDU: 80 13 01 00 [17:03:52]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [17:03:52]Write i2c OK [17:03:52]MH_I2C_Read... [17:03:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:52]Read from MH i2c: E2 [17:03:52]MH_I2C_Read... [17:03:52]Read from MH i2c: E2 0E 00 [17:03:52]MH_I2C_Read... [17:03:52]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 8B [17:03:52]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:03:52]wFMCommunicate OK [17:03:52]SAM_PROTO_GetShiftState done [17:03:52]FM_GetShiftState done [17:03:52]opened in 1715646054 [17:03:52]opened+sec_in_day 1715732454 [17:03:52]quantity*price = 100005 [17:03:52]sum+1 = 100006 [17:03:52]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 СНО: Общий режим Чек 117 14.05.2024 17:03 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67110 ФПД: 233370942738573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T170352&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67110&fm=233370942738573&tin=02508201610067®Number=0000000000091845&sum=100000 [17:03:53]StoreToDocumentArchive [17:03:53]shift 355 fd 67110 [17:03:53]save to /storage/0355/doc_00067110 [17:03:53]save last doc name /storage/0355/doc_00067110 to /storage/kkm_last_doc_name [17:03:53]save OK [17:03:53]Clear old archive folders... [17:03:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:03:53]tlvbuf is 0032A4A0 [17:03:53]SAM_PROTO_ClearQueue [17:03:53]wFMCommunicate request_size=4 [17:03:53]MH_SAM_APDU [17:03:53]CAPDU: 80 09 00 00 [17:03:53]Write to MH i2c: E2 08 00 52 01 80 09 00 00 00 00 00 00 C5 [17:03:53]Write i2c OK [17:03:53]MH_I2C_Read... [17:03:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:53]Read from MH i2c: E2 [17:03:53]MH_I2C_Read... [17:03:53]Read from MH i2c: E2 03 00 [17:03:53]MH_I2C_Read... [17:03:53]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [17:03:53]RAPDU: 90 00 [17:03:53]wFMCommunicate OK [17:03:53]SAM_PROTO_ClearQueue done [17:03:53]KKMCreateOFDPacket [17:03:53]OFDProtocolAddRootSTLVToBuf [17:03:53]FM_MakeSignedData [17:03:53]FM_MakeSignedData [17:03:53]SAM_PROTO_SignData [17:03:53]wFMCommunicate request_size=4 [17:03:53]MH_SAM_APDU [17:03:53]CAPDU: 80 0D 01 02 [17:03:53]Write to MH i2c: E2 08 00 53 01 80 0D 01 02 00 00 00 00 CD [17:03:53]Write i2c OK [17:03:53]MH_I2C_Read... [17:03:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:53]Read from MH i2c: E2 [17:03:53]MH_I2C_Read... [17:03:53]Read from MH i2c: E2 03 00 [17:03:53]MH_I2C_Read... [17:03:53]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [17:03:53]RAPDU: 90 00 [17:03:53]wFMCommunicate OK [17:03:53]wFMCommunicate request_size=255 [17:03:53]MH_SAM_APDU [17:03:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 75 00 00 00 F4 03 04 00 78 99 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 [17:03:53]Write to MH i2c: E2 02 01 54 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 75 00 00 00 F4 03 04 00 78 99 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 00 00 CA [17:03:53]Write i2c OK [17:03:53]MH_I2C_Read... [17:03:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:53]Read from MH i2c: E2 [17:03:53]MH_I2C_Read... [17:03:53]Read from MH i2c: E2 03 00 [17:03:53]MH_I2C_Read... [17:03:53]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [17:03:53]RAPDU: 90 00 [17:03:53]wFMCommunicate OK [17:03:53]wFMCommunicate request_size=11 [17:03:53]MH_SAM_APDU [17:03:53]CAPDU: 80 0D 02 02 06 D4 3F E8 24 90 8D [17:03:53]Write to MH i2c: E2 0E 00 55 01 80 0D 02 02 06 00 D4 3F E8 24 90 8D 00 00 18 [17:03:53]Write i2c OK [17:03:53]MH_I2C_Read... [17:03:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:53]Read from MH i2c: E2 [17:03:53]MH_I2C_Read... [17:03:53]Read from MH i2c: E2 03 00 [17:03:53]MH_I2C_Read... [17:03:53]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [17:03:53]RAPDU: 90 00 [17:03:53]wFMCommunicate OK [17:03:53]wFMCommunicate request_size=4 [17:03:53]MH_SAM_APDU [17:03:53]CAPDU: 80 0D 03 02 [17:03:53]Write to MH i2c: E2 08 00 56 01 80 0D 03 02 00 00 00 00 D2 [17:03:53]Write i2c OK [17:03:53]MH_I2C_Read... [17:03:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:53]Read from MH i2c: E2 [17:03:53]MH_I2C_Read... [17:03:53]Read from MH i2c: E2 0B 00 [17:03:53]MH_I2C_Read... [17:03:53]Read from MH i2c: E2 0B 00 56 01 00 BA 5C 13 42 C8 E5 34 81 90 00 A0 [17:03:53]RAPDU: BA 5C 13 42 C8 E5 34 81 90 00 [17:03:53]wFMCommunicate OK [17:03:53]SAM_PROTO_SignData done [17:03:53]FM_MakeSignedData done [17:03:53]CreateOFDProtocolMessage [17:03:53]wFMCommunicate request_size=4 [17:03:53]MH_SAM_APDU [17:03:53]CAPDU: 80 11 00 00 [17:03:53]Write to MH i2c: E2 08 00 57 01 80 11 00 00 00 00 00 00 D2 [17:03:53]Write i2c OK [17:03:53]MH_I2C_Read... [17:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:53]Read from MH i2c: E2 [17:03:53]MH_I2C_Read... [17:03:53]Read from MH i2c: E2 17 00 [17:03:53]MH_I2C_Read... [17:03:53]Read from MH i2c: E2 17 00 57 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 28 [17: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 [17:03:53]wFMCommunicate OK [17:03:53]CreateOFDProtocolMessage done [17:03:53]OFDSenderStorePacket 67110 [17:03:53]StoreOFDPacket docnum=67110 [17:03:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 8B 1E 08 01 13 FD 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 75 00 00 00 F4 03 04 00 78 99 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 D4 3F E8 24 90 8D BA 5C 13 42 C8 E5 34 81 [17:03:53]CheckFolder [17:03:53]dirname=/storage/ofd_packets [17:03:53]CheckFolder done [17:03:53]ProducePacketName [17:03:53]name=ofd_packets/00067110 [17:03:53]NVStorageSaveData ofd_packets/00067110 [17:03:53]File name is /storage/ofd_packets/00067110 [17:03:53]Write 302 bytes [17:03:53]NVStorageSaveData done [17:03:53]OFDSenderStorePacket done [17:03:53]KKMCreateOFDPacket done [17:03:53]NVStorageSaveData kkm_last_timestamp [17:03:53]File name is /storage/kkm_last_timestamp [17:03:53]Write 4 bytes [17:03:53]NVStorageSaveData done [17:03:53]ExternCall_PrintAddStr [17:03:53]wPrintStart [17:03:53]Write to MH i2c: 01 00 00 58 01 59 [17:03:53]Write i2c OK [17:03:53]MH_I2C_Read... [17:03:53]Read from MH i2c: 01 [17:03:53]MH_I2C_Read... [17:03:53]Read from MH i2c: 01 07 00 [17:03:53]MH_I2C_Read... [17:03:53]Read from MH i2c: 01 07 00 58 01 00 00 00 00 00 FF 0F 6E [17:03:53]RasterBufferAndPrint [17:03:53]line Счет N : (1)507002 [17:03:53]line ИНН: 02508201610067 [17:03:53]line Контрольно-Кассовый Чек [17:03:53]line ПРОДАЖА [17:03:53]line ТРК (МРК, ГНК) : 42 [17:03:53]line Товар: 2710124130 [17:03:53]line Super-92-К-5 [17:03:53]line 14.750 * 67.80 [17:03:53]line = 1000.05 [17:03:53]line НДС 12% НСП 1% [17:03:53]line > о реализуемом товаре [17:03:53]line ОКРУГЛЕНИЕ: -0.05 [17:03:53]line ИТОГО: 1000.00 [17:03:53]line Внесено: 1000.00 [17:03:53]line СДАЧА: 0.00 [17:03:53]line НСП 1% : 8.85 [17:03:53]line НДС 12% : 106.20 [17:03:53]line Наличными: 1000.00 [17:03:53]line Безнал.: 0.00 [17:03:53]line Место: АЗС № 91 "Партнер Нефть" [17:03:53]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:03:53]line СНО: Общий режим [17:03:53]line Чек 117 14.05.2024 17:03 [17:03:53]line Смена: 355 ФФД: 1.0 [17:03:53]line ЗНМ: 0300000119 [17:03:53]line РНМ: 0000000000091845 [17:03:53]line Версия ККМ: 001 [17:03:53]line ФМ: 0000000000871829 [17:03:53]line ФД: 67110 [17:03:53]line ФПД: 233370942738573 [17:03:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T170352&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67110&fm=233370942738573&tin=02508201610067®Number=0000000000091845&sum=100000 [17:03:54]written 0, free lines is 4095 [17:03:54]OFD Sender: Processing packet 67110 [packets to send 35, broken 34] [17:03:54]ProducePacketName [17:03:54]name=ofd_packets/00067110 [17:03:54]OFD Sender: To server: pG, [17:03:54]CommunicateWithHost lk.salyk.kg:30040 [17:03:54]ConnectInit lk.salyk.kg [17:03:54]Connected sock=10 [17:03:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 8B 1E 08 01 13 FD 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 75 00 00 00 F4 03 04 00 78 99 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 D4 3F E8 24 90 8D BA 5C 13 42 C8 E5 34 81 [17:03: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 7A 5F 47 00 DB 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 06 01 00 F4 03 04 00 57 41 43 66 B6 04 01 00 00 71 12 90 DB 9C FC 82 71 [17:03:54]CommunicateWithHost err = 0 [17:03:54]CheckOFDResponse [17:03:54]1017 (14) - 77093643461234 [17:03:54]1041 (16) - 0000000000871829 [17:03:54]1040 (4) - 67110 [17:03:54]1012 (4) - 14.05.2024 10:47 [17:03:54]1206 (1) - 0 [17:03:54]OFD Sender: Remove packet 67110 [17:03:54]ProducePacketName [17:03:54]name=ofd_packets/00067110 [17:03:54]NVStorageDeleteData [17:03:54]Write to MH i2c: 01 00 00 82 01 83 [17:03:54]Write i2c OK [17:03:54]MH_I2C_Read... [17:03:54]Read from MH i2c: 01 [17:03:54]MH_I2C_Read... [17:03:54]Read from MH i2c: 01 07 00 [17:03:54]MH_I2C_Read... [17:03:54]Read from MH i2c: 01 07 00 82 01 00 00 00 00 00 CE 0C 64 [17:03:54]RasterBufferAndPrint [17:03:54]line [17:03:54]line [17:03:54]line [17:03:54]line [17:03:54]line [17:03:54]written 0, free lines is 3284 [17:03:54]MH_Cut [17:03:54]Write to MH i2c: D1 01 00 89 01 01 5C [17:03:54]Write i2c OK [17:03:54]MH_I2C_Read... [17:03:54]Read from MH i2c: D1 [17:03:54]MH_I2C_Read... [17:03:54]Read from MH i2c: D1 01 00 [17:03:54]MH_I2C_Read... [17:03:54]Read from MH i2c: D1 01 00 89 01 00 5B [17:03:54]Write to MH i2c: 01 00 00 8A 01 8B [17:03:54]Write i2c OK [17:03:54]MH_I2C_Read... [17:03:55]OFD Sender: No OFD packet to send [17:03:55]*** Cut start [17:03:55]*** Purtial cut [17:03:55]*** Stage 1: CUTSNS_PIN = 1 [17:03:55]Read from MH i2c: 01 [17:03:55]MH_I2C_Read... [17:03:55]*** Stop cut motor [17:03:55]*** Cut end [17:03:55]Read from MH i2c: 01 07 00 [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: 01 07 00 8A 01 00 00 00 00 00 FF 0F A0 [17:03:55]process_action close_receipt done [17:03:55]requested_data is exist [17:03:55]produce_requested_data [17:03:55]requested_item fm.sn is exist - process it [17:03:55]wFMCommunicate request_size=4 [17:03:55]MH_SAM_APDU [17:03:55]CAPDU: 80 11 00 00 [17:03:55]Write to MH i2c: E2 08 00 8B 01 80 11 00 00 00 00 00 00 06 [17:03:55]Write i2c OK [17:03:55]MH_I2C_Read... [17:03:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:55]Read from MH i2c: E2 [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: E2 17 00 [17:03:55]MH_I2C_Read... [17:03:55]Read from MH i2c: E2 17 00 8B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5C [17:03: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:03:55]wFMCommunicate OK [17:03:55]requested_item fd.num is exist - process it [17:03:55]SAM_PROTO_GetFieldsCounters [17:03:55]wFMCommunicate request_size=4 [17:03:55]MH_SAM_APDU [17:03:55]CAPDU: 80 13 00 00 [17:03:55]Write to MH i2c: E2 08 00 8C 01 80 13 00 00 00 00 00 00 09 [17:03:55]Write i2c OK [17:03:55]MH_I2C_Read... [17:03:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:56]Read from MH i2c: E2 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: E2 62 00 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: E2 62 00 8C 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 26 06 01 00 0E 04 04 00 63 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 1F [17:03: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 26 06 01 00 0E 04 04 00 63 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 [17:03:56]wFMCommunicate OK [17:03:56]SAM_PROTO_GetFieldsCounters done [17:03:56]requested_item shift.num is exist - process it [17:03:56]requested_item shift.opened is exist - process it [17:03:56]req_shift_opened [17:03:56]FM_GetShiftState [17:03:56]SAM_PROTO_GetShiftState [17:03:56]wFMCommunicate request_size=4 [17:03:56]MH_SAM_APDU [17:03:56]CAPDU: 80 13 01 00 [17:03:56]Write to MH i2c: E2 08 00 8D 01 80 13 01 00 00 00 00 00 0B [17:03:56]Write i2c OK [17:03:56]MH_I2C_Read... [17:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:56]Read from MH i2c: E2 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: E2 0E 00 [17:03:56]MH_I2C_Read... [17:03:56]Read from MH i2c: E2 0E 00 8D 01 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D3 [17:03:56]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:03:56]wFMCommunicate OK [17:03:56]SAM_PROTO_GetShiftState done [17:03:56]FM_GetShiftState done [17:03:56]req_shift_opened done [17:03:56]requested_item shift.open_date is exist - process it [17:03:56]req_shift_open_date [17:03:56]req_shift_open_date done [17:03:56]produce_requested_data done [17:03:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67110,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [17:03:56]process_action_free close_receipt [17:03:56]json_value_free [17:03:56]json_value_free done [17:03:56]process_json_proto returns [17:03:56]Send response to host [17:03:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67110,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [17:03:56]free response buf [17:03:56]execute_script done [17:03:56]execute_script returns [17:03:56]free content buf [17:03:56]Sock 9.Close socket [17:03:56]Sock 9.Thread stoped [17:04:00]OFD Sender: No OFD packet to send [17:04:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:10]recv_with_timeout no data received [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:35]OFD Sender: No OFD packet to send [17:04:40]OFD Sender: No OFD packet to send [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:25]OFD Sender: No OFD packet to send [17:06:30]OFD Sender: No OFD packet to send [17:06:35]OFD Sender: No OFD packet to send [17:06:40]OFD Sender: No OFD packet to send [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:50]OFD Sender: No OFD packet to send [17:07:55]OFD Sender: No OFD packet to send [17:08:00]OFD Sender: No OFD packet to send [17:08:05]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]OFD Sender: No OFD packet to send [17:09:10]OFD Sender: No OFD packet to send [17:09:15]OFD Sender: No OFD packet to send [17:09:20]OFD Sender: No OFD packet to send [17:09:25]OFD Sender: No OFD packet to send [17:09:30]OFD Sender: No OFD packet to send [17:09:35]OFD Sender: No OFD packet to send [17:09:40]OFD Sender: No OFD packet to send [17:09:45]OFD Sender: No OFD packet to send [17:09:50]recv_with_timeout no data received [17:09:50]OFD Sender: No OFD packet to send [17:09:55]OFD Sender: No OFD packet to send [17:10:00]OFD Sender: No OFD packet to send [17:10:01]recv_with_timeout no data received [17:10:05]OFD Sender: No OFD packet to send [17:10:10]OFD Sender: No OFD packet to send [17:10:15]OFD Sender: No OFD packet to send [17:10:20]OFD Sender: No OFD packet to send [17:10:20]accept exits with 7 [17:10:20]New connection [17:10:20]New thread 3066588516 created [17:10:20]Thread 3066731876 joined [17:10:20]Waiting for new connection... [17:10:20] Sock 7.Parse request [17:10:20]Sock 7.Check first char [17:10:20]Sock 7.First char is OK [17:10:20]request: POST /json_proto HTTP/1.0 [17:10:20]Method: POST [17:10:20]URL: /json_proto [17:10:20]Method is POST - this is cgi request [17:10:20]url: /json_proto [17:10:20]query_string will be loaded in cgi processing [17:10:20]execute_cgi json_proto POST (null) [17:10:20]execute_cgi path=json_proto method=POST [17:10:20]POST find Content-Length [17:10:20]Host: 172.17.41.195:8080 [17:10:20]Content-Length: 631 [17:10:20]Content-Type: application/json [17:10:20] [17:10:20]POST finish read [17:10:20]Found Content-Length = 631 [17:10:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12056", "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:10:20]execute_script... [17:10: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 : (3)12056", "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:10:20]POST & json_proto [17:10:20]process_json_proto [17:10:20]json parsed OK: [17:10:20]protocol is kg_v1.0 [17:10:20]action value=close_receipt [17:10:20]process_action close_receipt [17:10:20]cmd_close_receipt [17:10:20]MH_GetDate [17:10:20]Write to MH i2c: F0 00 00 8E 01 7E [17:10:20]Write i2c OK [17:10:20]MH_I2C_Read... [17:10:20]Read from MH i2c: F0 [17:10:20]MH_I2C_Read... [17:10:20]Read from MH i2c: F0 09 00 [17:10:20]MH_I2C_Read... [17:10:20]Read from MH i2c: F0 09 00 8E 01 00 FD 9A 43 66 FC 21 6F 64 B7 [17:10:20]GetLastDocTimeStamp 1715706232 [17:10:20]current date 1715706621 [17:10:20]FM_GetShiftState [17:10:20]SAM_PROTO_GetShiftState [17:10:20]wFMCommunicate request_size=4 [17:10:20]MH_SAM_APDU [17:10:20]CAPDU: 80 13 01 00 [17:10:20]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [17:10:20]Write i2c OK [17:10:20]MH_I2C_Read... [17:10:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:20]Read from MH i2c: E2 [17:10:20]MH_I2C_Read... [17:10:20]Read from MH i2c: E2 0E 00 [17:10:20]MH_I2C_Read... [17:10:20]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D5 [17:10:20]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:10:20]wFMCommunicate OK [17:10:20]SAM_PROTO_GetShiftState done [17:10:20]FM_GetShiftState done [17:10:20]opened in 1715646054 [17:10:20]opened+sec_in_day 1715732454 [17:10:20]quantity*price = 5500 [17:10:20]sum+1 = 5501 [17:10:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 55.00 НСП 1% : 0.49 НДС 12% : 5.84 Наличными: 55.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 118 14.05.2024 17:10 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67111 ФПД: 272749997771095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T171021&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67111&fm=272749997771095&tin=02508201610067®Number=0000000000091845&sum=5500 0 [17:10:22]StoreToDocumentArchive [17:10:22]shift 355 fd 67111 [17:10:22]save to /storage/0355/doc_00067111 [17:10:22]save last doc name /storage/0355/doc_00067111 to /storage/kkm_last_doc_name [17:10:22]save OK [17:10:22]Clear old archive folders... [17:10:22]ProcessDocumentItem done err = 0, tmpTLVsize=271 [17:10:22]tlvbuf is 003AE080 [17:10:22]SAM_PROTO_ClearQueue [17:10:22]wFMCommunicate request_size=4 [17:10:22]MH_SAM_APDU [17:10:22]CAPDU: 80 09 00 00 [17:10:22]Write to MH i2c: E2 08 00 9C 01 80 09 00 00 00 00 00 00 0F [17:10:22]Write i2c OK [17:10:22]MH_I2C_Read... [17:10:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:22]Read from MH i2c: E2 [17:10:22]MH_I2C_Read... [17:10:22]Read from MH i2c: E2 03 00 [17:10:22]MH_I2C_Read... [17:10:22]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [17:10:22]RAPDU: 90 00 [17:10:22]wFMCommunicate OK [17:10:22]SAM_PROTO_ClearQueue done [17:10:22]KKMCreateOFDPacket [17:10:22]OFDProtocolAddRootSTLVToBuf [17:10:22]FM_MakeSignedData [17:10:22]FM_MakeSignedData [17:10:22]SAM_PROTO_SignData [17:10:22]wFMCommunicate request_size=4 [17:10:22]MH_SAM_APDU [17:10:22]CAPDU: 80 0D 01 02 [17:10:22]Write to MH i2c: E2 08 00 9D 01 80 0D 01 02 00 00 00 00 17 [17:10:22]Write i2c OK [17:10:22]MH_I2C_Read... [17:10:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:22]Read from MH i2c: E2 [17:10:22]MH_I2C_Read... [17:10:22]Read from MH i2c: E2 03 00 [17:10:22]MH_I2C_Read... [17:10:22]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [17:10:22]RAPDU: 90 00 [17:10:22]wFMCommunicate OK [17:10:22]wFMCommunicate request_size=255 [17:10:22]MH_SAM_APDU [17:10:22]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 76 00 00 00 F4 03 04 00 FD 9A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 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:10:22]Write to MH i2c: E2 02 01 9E 01 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 76 00 00 00 F4 03 04 00 FD 9A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 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 51 [17:10:22]Write i2c OK [17:10:22]MH_I2C_Read... [17:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:22]Read from MH i2c: E2 [17:10:22]MH_I2C_Read... [17:10:22]Read from MH i2c: E2 03 00 [17:10:22]MH_I2C_Read... [17:10:22]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [17:10:22]RAPDU: 90 00 [17:10:22]wFMCommunicate OK [17:10:22]wFMCommunicate request_size=30 [17:10:22]MH_SAM_APDU [17:10:22]CAPDU: 80 0D 02 02 19 30 38 37 31 38 32 39 10 04 04 00 27 06 01 00 35 04 06 00 F8 10 8E BA C9 57 [17:10:22]Write to MH i2c: E2 21 00 9F 01 80 0D 02 02 19 00 30 38 37 31 38 32 39 10 04 04 00 27 06 01 00 35 04 06 00 F8 10 8E BA C9 57 00 00 B4 [17:10:22]Write i2c OK [17:10:22]MH_I2C_Read... [17:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:22]Read from MH i2c: E2 [17:10:22]MH_I2C_Read... [17:10:22]Read from MH i2c: E2 03 00 [17:10:22]MH_I2C_Read... [17:10:22]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [17:10:22]RAPDU: 90 00 [17:10:22]wFMCommunicate OK [17:10:22]wFMCommunicate request_size=4 [17:10:22]MH_SAM_APDU [17:10:22]CAPDU: 80 0D 03 02 [17:10:22]Write to MH i2c: E2 08 00 A0 01 80 0D 03 02 00 00 00 00 1C [17:10:22]Write i2c OK [17:10:22]MH_I2C_Read... [17:10:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:22]Read from MH i2c: E2 [17:10:22]MH_I2C_Read... [17:10:22]Read from MH i2c: E2 0B 00 [17:10:22]MH_I2C_Read... [17:10:22]Read from MH i2c: E2 0B 00 A0 01 00 3D B8 E5 65 C0 33 A4 93 90 00 86 [17:10:22]RAPDU: 3D B8 E5 65 C0 33 A4 93 90 00 [17:10:22]wFMCommunicate OK [17:10:22]SAM_PROTO_SignData done [17:10:22]FM_MakeSignedData done [17:10:22]CreateOFDProtocolMessage [17:10:22]wFMCommunicate request_size=4 [17:10:22]MH_SAM_APDU [17:10:22]CAPDU: 80 11 00 00 [17:10:22]Write to MH i2c: E2 08 00 A1 01 80 11 00 00 00 00 00 00 1C [17:10:22]Write i2c OK [17:10:22]MH_I2C_Read... [17:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:22]Read from MH i2c: E2 [17:10:22]MH_I2C_Read... [17:10:22]Read from MH i2c: E2 17 00 [17:10:22]MH_I2C_Read... [17:10:22]Read from MH i2c: E2 17 00 A1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 72 [17:10: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:10:22]wFMCommunicate OK [17:10:22]CreateOFDProtocolMessage done [17:10:22]OFDSenderStorePacket 67111 [17:10:22]StoreOFDPacket docnum=67111 [17:10: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 23 01 00 00 3F 48 1B 01 54 8A 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 76 00 00 00 F4 03 04 00 FD 9A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F8 10 8E BA C9 57 3D B8 E5 65 C0 33 A4 93 [17:10:22]CheckFolder [17:10:22]dirname=/storage/ofd_packets [17:10:22]CheckFolder done [17:10:22]ProducePacketName [17:10:22]name=ofd_packets/00067111 [17:10:22]NVStorageSaveData ofd_packets/00067111 [17:10:22]File name is /storage/ofd_packets/00067111 [17:10:22]Write 321 bytes [17:10:22]NVStorageSaveData done [17:10:22]OFDSenderStorePacket done [17:10:22]KKMCreateOFDPacket done [17:10:22]NVStorageSaveData kkm_last_timestamp [17:10:22]File name is /storage/kkm_last_timestamp [17:10:22]Write 4 bytes [17:10:22]NVStorageSaveData done [17:10:22]ExternCall_PrintAddStr [17:10:22]wPrintStart [17:10:22]Write to MH i2c: 01 00 00 A2 01 A3 [17:10:22]Write i2c OK [17:10:22]MH_I2C_Read... [17:10:22]Read from MH i2c: 01 [17:10:22]MH_I2C_Read... [17:10:22]Read from MH i2c: 01 07 00 [17:10:22]MH_I2C_Read... [17:10:22]Read from MH i2c: 01 07 00 A2 01 00 00 00 00 00 FF 0F B8 [17:10:22]RasterBufferAndPrint [17:10:22]line Счет N : (3)12056 [17:10:22]line ИНН: 02508201610067 [17:10:22]line Контрольно-Кассовый Чек [17:10:22]line ПРОДАЖА [17:10:22]line Товар: 4700000160204 [17:10:22]line Вода Легенда 1,5л [17:10:22]line 1.000 * 55.00 [17:10:22]line = 55.00 [17:10:22]line НДС 12% НСП 1% [17:10:22]line > о реализуемом товаре [17:10:22]line ИТОГО: 55.00 [17:10:22]line НСП 1% : 0.49 [17:10:22]line НДС 12% : 5.84 [17:10:22]line Наличными: 55.00 [17:10:22]line Безнал.: 0.00 [17:10:22]line Место: АЗС № 91 "Партнер Нефть" [17:10:22]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:10:22]line СНО: Общий режим [17:10:22]line Чек 118 14.05.2024 17:10 [17:10:22]line Смена: 355 ФФД: 1.0 [17:10:22]line ЗНМ: 0300000119 [17:10:22]line РНМ: 0000000000091845 [17:10:22]line Версия ККМ: 001 [17:10:22]line ФМ: 0000000000871829 [17:10:22]line ФД: 67111 [17:10:22]line ФПД: 272749997771095 [17:10:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T171021&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67111&fm=272749997771095&tin=02508201610067®Number=0000000000091845&sum=5500 [17:10:22]line 0 [17:10:22]OFD Sender: Processing packet 67111 [packets to send 35, broken 34] [17:10:22]ProducePacketName [17:10:22]name=ofd_packets/00067111 [17:10:22]OFD Sender: To server: pG, [17:10:22]CommunicateWithHost lk.salyk.kg:30040 [17:10:22]ConnectInit lk.salyk.kg [17:10:22]written 0, free lines is 4095 [17:10:23]Connected sock=10 [17:10:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 23 01 00 00 3F 48 1B 01 54 8A 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 76 00 00 00 F4 03 04 00 FD 9A 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F8 10 8E BA C9 57 3D B8 E5 65 C0 33 A4 93 [17:10: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 A9 8F 47 00 02 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 27 06 01 00 F4 03 04 00 DC 42 43 66 B6 04 01 00 00 56 D0 27 05 B6 27 9E F8 [17:10:23]CommunicateWithHost err = 0 [17:10:23]CheckOFDResponse [17:10:23]1017 (14) - 77093643461234 [17:10:23]1041 (16) - 0000000000871829 [17:10:23]1040 (4) - 67111 [17:10:23]1012 (4) - 14.05.2024 10:54 [17:10:23]1206 (1) - 0 [17:10:23]OFD Sender: Remove packet 67111 [17:10:23]ProducePacketName [17:10:23]name=ofd_packets/00067111 [17:10:23]NVStorageDeleteData [17:10:23]Write to MH i2c: 01 00 00 C9 01 CA [17:10:23]Write i2c OK [17:10:23]MH_I2C_Read... [17:10:23]Read from MH i2c: 01 [17:10:23]MH_I2C_Read... [17:10:23]Read from MH i2c: 01 07 00 [17:10:23]MH_I2C_Read... [17:10:23]Read from MH i2c: 01 07 00 C9 01 00 00 00 00 00 00 0D DE [17:10:23]RasterBufferAndPrint [17:10:23]line [17:10:23]line [17:10:23]line [17:10:23]line [17:10:23]line [17:10:23]written 0, free lines is 3333 [17:10:23]MH_Cut [17:10:23]Write to MH i2c: D1 01 00 D0 01 01 A3 [17:10:23]Write i2c OK [17:10:23]MH_I2C_Read... [17:10:23]Read from MH i2c: D1 [17:10:23]MH_I2C_Read... [17:10:23]Read from MH i2c: D1 01 00 [17:10:23]MH_I2C_Read... [17:10:23]Read from MH i2c: D1 01 00 D0 01 00 A2 [17:10:23]Write to MH i2c: 01 00 00 D1 01 D2 [17:10:23]Write i2c OK [17:10:23]MH_I2C_Read... [17:10:23]OFD Sender: No OFD packet to send [17:10:24]*** Cut start [17:10:24]*** Purtial cut [17:10:24]*** CUTSNS_PIN = 0 [17:10:24]*** Stage 1: CUTSNS_PIN = 1 [17:10:26]Read from MH i2c: 01 [17:10:26]MH_I2C_Read... [17:10:26]*** Stop cut motor [17:10:26]*** Cut end [17:10:26]Read from MH i2c: 01 07 00 [17:10:26]MH_I2C_Read... [17:10:26]Read from MH i2c: 01 07 00 D1 01 00 00 00 00 00 FF 0F E7 [17:10:26]process_action close_receipt done [17:10:26]requested_data is exist [17:10:26]produce_requested_data [17:10:26]requested_item fm.sn is exist - process it [17:10:26]wFMCommunicate request_size=4 [17:10:26]MH_SAM_APDU [17:10:26]CAPDU: 80 11 00 00 [17:10:26]Write to MH i2c: E2 08 00 D2 01 80 11 00 00 00 00 00 00 4D [17:10:26]Write i2c OK [17:10:26]MH_I2C_Read... [17:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:26]Read from MH i2c: E2 [17:10:26]MH_I2C_Read... [17:10:26]Read from MH i2c: E2 17 00 [17:10:26]MH_I2C_Read... [17:10:26]Read from MH i2c: E2 17 00 D2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A3 [17:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:10:26]wFMCommunicate OK [17:10:26]requested_item fd.num is exist - process it [17:10:26]SAM_PROTO_GetFieldsCounters [17:10:26]wFMCommunicate request_size=4 [17:10:26]MH_SAM_APDU [17:10:26]CAPDU: 80 13 00 00 [17:10:26]Write to MH i2c: E2 08 00 D3 01 80 13 00 00 00 00 00 00 50 [17:10:26]Write i2c OK [17:10:26]MH_I2C_Read... [17:10:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:26]Read from MH i2c: E2 [17:10:26]MH_I2C_Read... [17:10:26]Read from MH i2c: E2 62 00 [17:10:26]MH_I2C_Read... [17:10:26]Read from MH i2c: E2 62 00 D3 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 27 06 01 00 0E 04 04 00 63 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 6A [17:10:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 27 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:26]wFMCommunicate OK [17:10:26]SAM_PROTO_GetFieldsCounters done [17:10:26]requested_item shift.num is exist - process it [17:10:26]requested_item shift.opened is exist - process it [17:10:26]req_shift_opened [17:10:26]FM_GetShiftState [17:10:26]SAM_PROTO_GetShiftState [17:10:26]wFMCommunicate request_size=4 [17:10:26]MH_SAM_APDU [17:10:26]CAPDU: 80 13 01 00 [17:10:26]Write to MH i2c: E2 08 00 D4 01 80 13 01 00 00 00 00 00 52 [17:10:26]Write i2c OK [17:10:26]MH_I2C_Read... [17:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:26]Read from MH i2c: E2 [17:10:26]MH_I2C_Read... [17:10:26]Read from MH i2c: E2 0E 00 [17:10:26]MH_I2C_Read... [17:10:26]Read from MH i2c: E2 0E 00 D4 01 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 1A [17:10:26]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:10:26]wFMCommunicate OK [17:10:26]SAM_PROTO_GetShiftState done [17:10:26]FM_GetShiftState done [17:10:26]req_shift_opened done [17:10:26]requested_item shift.open_date is exist - process it [17:10:26]req_shift_open_date [17:10:26]req_shift_open_date done [17:10:26]produce_requested_data done [17:10:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67111,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [17:10:26]process_action_free close_receipt [17:10:26]json_value_free [17:10:26]json_value_free done [17:10:26]process_json_proto returns [17:10:26]Send response to host [17:10:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67111,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [17:10:26]free response buf [17:10:26]execute_script done [17:10:26]execute_script returns [17:10:26]free content buf [17:10:26]Sock 7.Close socket [17:10:26]Sock 7.Thread stoped [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:38]OFD Sender: No OFD packet to send [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:49]accept exits with 9 [17:11:49]New connection [17:11:49]New thread 3066731876 created [17:11:49]Thread 3066588516 joined [17:11:49]Waiting for new connection... [17:11:49] Sock 9.Parse request [17:11:49]Sock 9.Check first char [17:11:49]Sock 9.First char is OK [17:11:49]request: POST /json_proto HTTP/1.0 [17:11:49]Method: POST [17:11:49]URL: /json_proto [17:11:49]Method is POST - this is cgi request [17:11:49]url: /json_proto [17:11:49]query_string will be loaded in cgi processing [17:11:49]execute_cgi json_proto POST (null) [17:11:49]execute_cgi path=json_proto method=POST [17:11:49]POST find Content-Length [17:11:49]Host: 172.17.41.195:8080 [17:11:49]Content-Length: 1179 [17:11:49]Content-Type: application/json [17:11:49] [17:11:49]POST finish read [17:11:49]Found Content-Length = 1179 [17:11: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)507003\u000A14.05.2024 16:54\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.350 x 74.70\u000A\u0418\u0422\u041E\u0413: 1445.45\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:49]execute_script... [17:11: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)507003\u000A14.05.2024 16:54\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.350 x 74.70\u000A\u0418\u0422\u041E\u0413: 1445.45\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:49]POST & json_proto [17:11:49]process_json_proto [17:11:49]json parsed OK: [17:11:49]protocol is kg_v1.0 [17:11:49]action value=print_text [17:11:49]process_action print_text [17:11:49]cmd_print_text [17:11:49]ExternCall_PrintAddStr [17:11:49]wPrintStart [17:11:49]Write to MH i2c: 01 00 00 D5 01 D6 [17:11:49]Write i2c OK [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: 01 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: 01 07 00 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [17:11:49]RasterBufferAndPrint [17:11:49]line *****ТОВАРНЫЙ ЧЕК***** [17:11:49]line АЗС-91 [17:11:49]line Партнер нефть [17:11:49]line 02508201610067 [17:11:49]line Кассир : Адишов И. [17:11:49]line Счет N : (1)507003 [17:11:49]line 14.05.2024 16:54 [17:11:49]line ПРОДАЖА [17:11:49]line ТРК (МРК, ГНК): 31 [17:11:49]line Вид ГСМ : 2710194210 [17:11:49]line ДТ-К-5 [17:11:49]line 19.350 x 74.70 [17:11:49]line ИТОГ: 1445.45 [17:11:49]line Тип оплаты: Талоны: Топливная Карта [17:11:49]line 02750 [17:11:49]line ______________________ [17:11:49]line (подпись) [17:11:49]written 0, free lines is 4095 [17:11:49]Write to MH i2c: 01 00 00 E9 01 EA [17:11:49]Write i2c OK [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: 01 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: 01 07 00 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: 01 07 00 E9 01 00 00 00 00 00 0D 0E 0C [17:11:49]RasterBufferAndPrint [17:11:49]line [17:11:49]line [17:11:49]line [17:11:49]line [17:11:49]line [17:11:49]written 0, free lines is 3598 [17:11:49]MH_Cut [17:11:49]Write to MH i2c: D1 01 00 F0 01 01 C3 [17:11:49]Write i2c OK [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: D1 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: D1 01 00 [17:11:49]MH_I2C_Read... [17:11:49]Read from MH i2c: D1 01 00 F0 01 00 C2 [17:11:49]Write to MH i2c: 01 00 00 F1 01 F2 [17:11:49]Write i2c OK [17:11:49]MH_I2C_Read... [17:11:49]*** Cut start [17:11:49]*** Purtial cut [17:11:49]*** Stage 1: CUTSNS_PIN = 1 [17:11:50]Read from MH i2c: 01 [17:11:50]MH_I2C_Read... [17:11:50]*** Stop cut motor [17:11:50]*** Cut end [17:11:50]Read from MH i2c: 01 07 00 [17:11:50]MH_I2C_Read... [17:11:50]Read from MH i2c: 01 07 00 F1 01 00 00 00 00 00 FF 0F 07 [17:11:50]process_action print_text done [17:11:50]requested_data is exist [17:11:50]produce_requested_data [17:11:50]requested_item fm.sn is exist - process it [17:11:50]wFMCommunicate request_size=4 [17:11:50]MH_SAM_APDU [17:11:50]CAPDU: 80 11 00 00 [17:11:50]Write to MH i2c: E2 08 00 F2 01 80 11 00 00 00 00 00 00 6D [17:11:50]Write i2c OK [17:11:50]MH_I2C_Read... [17:11:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:50]Read from MH i2c: E2 [17:11:50]MH_I2C_Read... [17:11:50]Read from MH i2c: E2 17 00 [17:11:50]MH_I2C_Read... [17:11:50]Read from MH i2c: E2 17 00 F2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C3 [17:11:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:11:50]wFMCommunicate OK [17:11:50]requested_item fd.num is exist - process it [17:11:50]SAM_PROTO_GetFieldsCounters [17:11:50]wFMCommunicate request_size=4 [17:11:50]MH_SAM_APDU [17:11:50]CAPDU: 80 13 00 00 [17:11:50]Write to MH i2c: E2 08 00 F3 01 80 13 00 00 00 00 00 00 70 [17:11:50]Write i2c OK [17:11:50]MH_I2C_Read... [17:11:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:50]Read from MH i2c: E2 [17:11:50]MH_I2C_Read... [17:11:50]Read from MH i2c: E2 62 00 [17:11:50]MH_I2C_Read... [17:11:50]Read from MH i2c: E2 62 00 F3 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 27 06 01 00 0E 04 04 00 63 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 8A [17:11: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 27 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:50]wFMCommunicate OK [17:11:50]SAM_PROTO_GetFieldsCounters done [17:11:50]requested_item shift.num is exist - process it [17:11:50]requested_item shift.opened is exist - process it [17:11:50]req_shift_opened [17:11:50]FM_GetShiftState [17:11:50]SAM_PROTO_GetShiftState [17:11:50]wFMCommunicate request_size=4 [17:11:50]MH_SAM_APDU [17:11:50]CAPDU: 80 13 01 00 [17:11:50]Write to MH i2c: E2 08 00 F4 01 80 13 01 00 00 00 00 00 72 [17:11:50]Write i2c OK [17:11:50]MH_I2C_Read... [17:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:50]Read from MH i2c: E2 [17:11:50]MH_I2C_Read... [17:11:50]Read from MH i2c: E2 0E 00 [17:11:50]MH_I2C_Read... [17:11:50]Read from MH i2c: E2 0E 00 F4 01 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 3A [17:11:50]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:11:50]wFMCommunicate OK [17:11:50]SAM_PROTO_GetShiftState done [17:11:50]FM_GetShiftState done [17:11:50]req_shift_opened done [17:11:50]requested_item shift.open_date is exist - process it [17:11:50]req_shift_open_date [17:11:50]req_shift_open_date done [17:11:50]produce_requested_data done [17:11:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67111,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [17:11:50]process_action_free print_text [17:11:50]json_value_free [17:11:50]json_value_free done [17:11:50]process_json_proto returns [17:11:50]Send response to host [17:11:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67111,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [17:11:50]free response buf [17:11:50]execute_script done [17:11:50]execute_script returns [17:11:50]free content buf [17:11:50]Sock 9.Close socket [17:11:50]Sock 9.Thread stoped [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13: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:28]recv_with_timeout no data received [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:46]recv_with_timeout no data received [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:30]recv_with_timeout no data received [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:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [17:19:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:19]OFD Sender: No OFD packet to send [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:59]OFD Sender: No OFD packet to send [17:26:04]OFD Sender: No OFD packet to send [17:26:09]OFD Sender: No OFD packet to send [17:26:14]recv_with_timeout no data received [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:28]recv_with_timeout no data received [17:26:29]OFD Sender: No OFD packet to send [17:26:32]accept exits with 7 [17:26:32]New connection [17:26:32]New thread 3066588516 created [17:26:32]Thread 3066731876 joined [17:26:32]Waiting for new connection... [17:26:32] Sock 7.Parse request [17:26:32]Sock 7.Check first char [17:26:32]Sock 7.First char is OK [17:26:32]request: POST /json_proto HTTP/1.0 [17:26:32]Method: POST [17:26:32]URL: /json_proto [17:26:32]Method is POST - this is cgi request [17:26:32]url: /json_proto [17:26:32]query_string will be loaded in cgi processing [17:26:32]execute_cgi json_proto POST (null) [17:26:32]execute_cgi path=json_proto method=POST [17:26:32]POST find Content-Length [17:26:32]Host: 172.17.41.195:8080 [17:26:32]Content-Length: 670 [17:26:32]Content-Type: application/json [17:26:32] [17:26:32]POST finish read [17:26:32]Found Content-Length = 670 [17:26:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:32]execute_script... [17:26:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:32]POST & json_proto [17:26:32]process_json_proto [17:26:32]json parsed OK: [17:26:32]protocol is kg_v1.0 [17:26:32]action value=close_receipt [17:26:32]process_action close_receipt [17:26:32]cmd_close_receipt [17:26:32]MH_GetDate [17:26:32]Write to MH i2c: F0 00 00 F5 01 E5 [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: F0 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: F0 09 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: F0 09 00 F5 01 00 C8 9E 43 66 FC 21 6F 64 ED [17:26:32]GetLastDocTimeStamp 1715706621 [17:26:32]current date 1715707592 [17:26:32]FM_GetShiftState [17:26:32]SAM_PROTO_GetShiftState [17:26:32]wFMCommunicate request_size=4 [17:26:32]MH_SAM_APDU [17:26:32]CAPDU: 80 13 01 00 [17:26:32]Write to MH i2c: E2 08 00 F6 01 80 13 01 00 00 00 00 00 74 [17:26:32]Write i2c OK [17:26:32]MH_I2C_Read... [17:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:32]Read from MH i2c: E2 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 0E 00 [17:26:32]MH_I2C_Read... [17:26:32]Read from MH i2c: E2 0E 00 F6 01 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 3C [17:26:32]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:26:32]wFMCommunicate OK [17:26:32]SAM_PROTO_GetShiftState done [17:26:32]FM_GetShiftState done [17:26:32]opened in 1715646054 [17:26:32]opened+sec_in_day 1715732454 [17:26:32]quantity*price = 60003 [17:26:32]sum+1 = 60004 [17:26:32]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 СНО: Общий режим Чек 119 14.05.2024 17:26 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67112 ФПД: 76608965550945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T172632&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67112&fm=76608965550945&tin=02508201610067®Number=0000000000091845&sum=60000 [17:26:33]StoreToDocumentArchive [17:26:33]shift 355 fd 67112 [17:26:33]save to /storage/0355/doc_00067112 [17:26:33]save last doc name /storage/0355/doc_00067112 to /storage/kkm_last_doc_name [17:26:33]save OK [17:26:33]Clear old archive folders... [17:26:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:26:33]tlvbuf is 003C0150 [17:26:33]SAM_PROTO_ClearQueue [17:26:33]wFMCommunicate request_size=4 [17:26:33]MH_SAM_APDU [17:26:33]CAPDU: 80 09 00 00 [17:26:33]Write to MH i2c: E2 08 00 03 02 80 09 00 00 00 00 00 00 77 [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 [17:26:33]MH_I2C_Read... [17:26:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:33]Read from MH i2c: E2 03 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 03 02 00 90 00 79 [17:26:33]RAPDU: 90 00 [17:26:33]wFMCommunicate OK [17:26:33]SAM_PROTO_ClearQueue done [17:26:33]KKMCreateOFDPacket [17:26:33]OFDProtocolAddRootSTLVToBuf [17:26:33]FM_MakeSignedData [17:26:33]FM_MakeSignedData [17:26:33]SAM_PROTO_SignData [17:26:33]wFMCommunicate request_size=4 [17:26:33]MH_SAM_APDU [17:26:33]CAPDU: 80 0D 01 02 [17:26:33]Write to MH i2c: E2 08 00 04 02 80 0D 01 02 00 00 00 00 7F [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:33]Read from MH i2c: E2 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 04 02 00 90 00 7A [17:26:33]RAPDU: 90 00 [17:26:33]wFMCommunicate OK [17:26:33]wFMCommunicate request_size=255 [17:26:33]MH_SAM_APDU [17:26:33]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 77 00 00 00 F4 03 04 00 C8 9E 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 [17:26:33]Write to MH i2c: E2 02 01 05 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 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 77 00 00 00 F4 03 04 00 C8 9E 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 00 00 0D [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:33]Read from MH i2c: E2 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 05 02 00 90 00 7B [17:26:33]RAPDU: 90 00 [17:26:33]wFMCommunicate OK [17:26:33]wFMCommunicate request_size=11 [17:26:33]MH_SAM_APDU [17:26:33]CAPDU: 80 0D 02 02 06 45 AC EA 2D A3 61 [17:26:33]Write to MH i2c: E2 0E 00 06 02 80 0D 02 02 06 00 45 AC EA 2D A3 61 00 00 9A [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:33]Read from MH i2c: E2 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 03 00 06 02 00 90 00 7C [17:26:33]RAPDU: 90 00 [17:26:33]wFMCommunicate OK [17:26:33]wFMCommunicate request_size=4 [17:26:33]MH_SAM_APDU [17:26:33]CAPDU: 80 0D 03 02 [17:26:33]Write to MH i2c: E2 08 00 07 02 80 0D 03 02 00 00 00 00 84 [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:33]Read from MH i2c: E2 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 0B 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 0B 00 07 02 00 E2 EF 91 88 91 2F AF 4D 90 00 2B [17:26:33]RAPDU: E2 EF 91 88 91 2F AF 4D 90 00 [17:26:33]wFMCommunicate OK [17:26:33]SAM_PROTO_SignData done [17:26:33]FM_MakeSignedData done [17:26:33]CreateOFDProtocolMessage [17:26:33]wFMCommunicate request_size=4 [17:26:33]MH_SAM_APDU [17:26:33]CAPDU: 80 11 00 00 [17:26:33]Write to MH i2c: E2 08 00 08 02 80 11 00 00 00 00 00 00 84 [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:33]Read from MH i2c: E2 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 17 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: E2 17 00 08 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DA [17:26:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:26:33]wFMCommunicate OK [17:26:33]CreateOFDProtocolMessage done [17:26:33]OFDSenderStorePacket 67112 [17:26:33]StoreOFDPacket docnum=67112 [17:26:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 8C 20 08 01 77 56 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 77 00 00 00 F4 03 04 00 C8 9E 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 45 AC EA 2D A3 61 E2 EF 91 88 91 2F AF 4D [17:26:33]CheckFolder [17:26:33]dirname=/storage/ofd_packets [17:26:33]CheckFolder done [17:26:33]ProducePacketName [17:26:33]name=ofd_packets/00067112 [17:26:33]NVStorageSaveData ofd_packets/00067112 [17:26:33]File name is /storage/ofd_packets/00067112 [17:26:33]Write 302 bytes [17:26:33]NVStorageSaveData done [17:26:33]OFDSenderStorePacket done [17:26:33]KKMCreateOFDPacket done [17:26:33]NVStorageSaveData kkm_last_timestamp [17:26:33]File name is /storage/kkm_last_timestamp [17:26:33]Write 4 bytes [17:26:33]NVStorageSaveData done [17:26:33]ExternCall_PrintAddStr [17:26:33]wPrintStart [17:26:33]Write to MH i2c: 01 00 00 09 02 0B [17:26:33]Write i2c OK [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: 01 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: 01 07 00 [17:26:33]MH_I2C_Read... [17:26:33]Read from MH i2c: 01 07 00 09 02 00 00 00 00 00 FF 0F 20 [17:26:33]RasterBufferAndPrint [17:26:33]line Счет N : (1)507004 [17:26:33]line ИНН: 02508201610067 [17:26:33]line Контрольно-Кассовый Чек [17:26:33]line ПРОДАЖА [17:26:33]line ТРК (МРК, ГНК) : 32 [17:26:33]line Товар: 2710124130 [17:26:33]line Super-92-К-5 [17:26:33]line 8.850 * 67.80 [17:26:33]line = 600.03 [17:26:33]line НДС 12% НСП 1% [17:26:33]line > о реализуемом товаре [17:26:33]line ОКРУГЛЕНИЕ: -0.03 [17:26:33]line ИТОГО: 600.00 [17:26:33]line Внесено: 600.00 [17:26:33]line СДАЧА: 0.00 [17:26:33]line НСП 1% : 5.31 [17:26:33]line НДС 12% : 63.72 [17:26:33]line Наличными: 600.00 [17:26:33]line Безнал.: 0.00 [17:26:33]line Место: АЗС № 91 "Партнер Нефть" [17:26:33]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:26:33]line СНО: Общий режим [17:26:33]line Чек 119 14.05.2024 17:26 [17:26:33]line Смена: 355 ФФД: 1.0 [17:26:33]line ЗНМ: 0300000119 [17:26:33]line РНМ: 0000000000091845 [17:26:33]line Версия ККМ: 001 [17:26:33]line ФМ: 0000000000871829 [17:26:33]line ФД: 67112 [17:26:33]line ФПД: 76608965550945 [17:26:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T172632&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67112&fm=76608965550945&tin=02508201610067®Number=0000000000091845&sum=60000 [17:26:34]OFD Sender: Processing packet 67112 [packets to send 35, broken 34] [17:26:34]ProducePacketName [17:26:34]name=ofd_packets/00067112 [17:26:34]OFD Sender: To server: pG, [17:26:34]CommunicateWithHost lk.salyk.kg:30040 [17:26:34]ConnectInit lk.salyk.kg [17:26:34]written 0, free lines is 4095 [17:26:34]Connected sock=10 [17:26:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 8C 20 08 01 77 56 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 77 00 00 00 F4 03 04 00 C8 9E 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 45 AC EA 2D A3 61 E2 EF 91 88 91 2F AF 4D [17:26:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 2F B7 47 00 78 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 28 06 01 00 F4 03 04 00 A7 46 43 66 B6 04 01 00 00 2A F2 B4 B0 FE 23 23 84 [17:26:34]CommunicateWithHost err = 0 [17:26:34]CheckOFDResponse [17:26:34]1017 (14) - 77093643461234 [17:26:34]1041 (16) - 0000000000871829 [17:26:34]1040 (4) - 67112 [17:26:34]1012 (4) - 14.05.2024 11:10 [17:26:34]1206 (1) - 0 [17:26:34]OFD Sender: Remove packet 67112 [17:26:34]ProducePacketName [17:26:34]name=ofd_packets/00067112 [17:26:34]NVStorageDeleteData [17:26:34]Write to MH i2c: 01 00 00 33 02 35 [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: 01 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: 01 07 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: 01 07 00 33 02 00 00 00 00 00 DC 0C 24 [17:26:34]RasterBufferAndPrint [17:26:34]line [17:26:34]line [17:26:34]line [17:26:34]line [17:26:34]line [17:26:34]written 0, free lines is 3298 [17:26:34]MH_Cut [17:26:34]Write to MH i2c: D1 01 00 3A 02 01 0E [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: D1 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: D1 01 00 [17:26:34]MH_I2C_Read... [17:26:34]Read from MH i2c: D1 01 00 3A 02 00 0D [17:26:34]Write to MH i2c: 01 00 00 3B 02 3D [17:26:34]Write i2c OK [17:26:34]MH_I2C_Read... [17:26:35]OFD Sender: No OFD packet to send [17:26:35]*** Cut start [17:26:35]*** Purtial cut [17:26:35]*** CUTSNS_PIN = 0 [17:26:35]*** Stage 1: CUTSNS_PIN = 1 [17:26:37]Read from MH i2c: 01 [17:26:37]MH_I2C_Read... [17:26:37]*** Stop cut motor [17:26:37]*** Cut end [17:26:37]Read from MH i2c: 01 07 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: 01 07 00 3B 02 00 00 00 00 00 FF 0F 52 [17:26:37]process_action close_receipt done [17:26:37]requested_data is exist [17:26:37]produce_requested_data [17:26:37]requested_item fm.sn is exist - process it [17:26:37]wFMCommunicate request_size=4 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 11 00 00 [17:26:37]Write to MH i2c: E2 08 00 3C 02 80 11 00 00 00 00 00 00 B8 [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 17 00 [17:26:37]MH_I2C_Read... [17:26:37]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 [17: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 [17:26:37]wFMCommunicate OK [17:26:37]requested_item fd.num is exist - process it [17:26:37]SAM_PROTO_GetFieldsCounters [17:26:37]wFMCommunicate request_size=4 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 13 00 00 [17:26:37]Write to MH i2c: E2 08 00 3D 02 80 13 00 00 00 00 00 00 BB [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 62 00 [17:26:37]MH_I2C_Read... [17:26:37]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 28 06 01 00 0E 04 04 00 63 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 D9 [17:26: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 28 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:37]wFMCommunicate OK [17:26:37]SAM_PROTO_GetFieldsCounters done [17:26:37]requested_item shift.num is exist - process it [17:26:37]requested_item shift.opened is exist - process it [17:26:37]req_shift_opened [17:26:37]FM_GetShiftState [17:26:37]SAM_PROTO_GetShiftState [17:26:37]wFMCommunicate request_size=4 [17:26:37]MH_SAM_APDU [17:26:37]CAPDU: 80 13 01 00 [17:26:37]Write to MH i2c: E2 08 00 3E 02 80 13 01 00 00 00 00 00 BD [17:26:37]Write i2c OK [17:26:37]MH_I2C_Read... [17:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:37]Read from MH i2c: E2 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 0E 00 [17:26:37]MH_I2C_Read... [17:26:37]Read from MH i2c: E2 0E 00 3E 02 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 85 [17:26:37]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:26:37]wFMCommunicate OK [17:26:37]SAM_PROTO_GetShiftState done [17:26:37]FM_GetShiftState done [17:26:37]req_shift_opened done [17:26:37]requested_item shift.open_date is exist - process it [17:26:37]req_shift_open_date [17:26:37]req_shift_open_date done [17:26:37]produce_requested_data done [17:26:37]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67112,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [17:26:37]process_action_free close_receipt [17:26:37]json_value_free [17:26:37]json_value_free done [17:26:37]process_json_proto returns [17:26:37]Send response to host [17:26:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67112,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [17:26:37]free response buf [17:26:37]execute_script done [17:26:37]execute_script returns [17:26:37]free content buf [17:26:37]Sock 7.Close socket [17:26:37]Sock 7.Thread stoped [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:40]OFD Sender: No OFD packet to send [17:27:45]OFD Sender: No OFD packet to send [17:27:50]OFD Sender: No OFD packet to send [17:27:55]OFD Sender: No OFD packet to send [17:28:00]OFD Sender: No OFD packet to send [17:28:01]accept exits with 9 [17:28:01]New connection [17:28:01]New thread 3066731876 created [17:28:01]Thread 3066588516 joined [17:28:01]Waiting for new connection... [17:28:01] Sock 9.Parse request [17:28:01]Sock 9.Check first char [17:28:01]Sock 9.First char is OK [17:28:01]request: POST /json_proto HTTP/1.0 [17:28:01]Method: POST [17:28:01]URL: /json_proto [17:28:01]Method is POST - this is cgi request [17:28:01]url: /json_proto [17:28:01]query_string will be loaded in cgi processing [17:28:01]execute_cgi json_proto POST (null) [17:28:01]execute_cgi path=json_proto method=POST [17:28:01]POST find Content-Length [17:28:01]Host: 172.17.41.195:8080 [17:28:01]Content-Length: 682 [17:28:01]Content-Type: application/json [17:28:01] [17:28:01]POST finish read [17:28:01]Found Content-Length = 682 [17:28:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507005", "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" ] } } [17:28:01]execute_script... [17:28:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507005", "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" ] } } [17:28:01]POST & json_proto [17:28:01]process_json_proto [17:28:01]json parsed OK: [17:28:01]protocol is kg_v1.0 [17:28:01]action value=close_receipt [17:28:01]process_action close_receipt [17:28:01]cmd_close_receipt [17:28:01]MH_GetDate [17:28:01]Write to MH i2c: F0 00 00 3F 02 30 [17:28:01]Write i2c OK [17:28:01]MH_I2C_Read... [17:28:01]Read from MH i2c: F0 [17:28:01]MH_I2C_Read... [17:28:01]Read from MH i2c: F0 09 00 [17:28:01]MH_I2C_Read... [17:28:01]Read from MH i2c: F0 09 00 3F 02 00 21 9F 43 66 FC 21 6F 64 92 [17:28:01]GetLastDocTimeStamp 1715707592 [17:28:01]current date 1715707681 [17:28:01]FM_GetShiftState [17:28:01]SAM_PROTO_GetShiftState [17:28:01]wFMCommunicate request_size=4 [17:28:01]MH_SAM_APDU [17:28:01]CAPDU: 80 13 01 00 [17:28:01]Write to MH i2c: E2 08 00 40 02 80 13 01 00 00 00 00 00 BF [17:28:01]Write i2c OK [17:28:01]MH_I2C_Read... [17:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:01]Read from MH i2c: E2 [17:28:01]MH_I2C_Read... [17:28:01]Read from MH i2c: E2 0E 00 [17:28:01]MH_I2C_Read... [17:28:01]Read from MH i2c: E2 0E 00 40 02 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 87 [17:28:01]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:28:01]wFMCommunicate OK [17:28:01]SAM_PROTO_GetShiftState done [17:28:01]FM_GetShiftState done [17:28:01]opened in 1715646054 [17:28:01]opened+sec_in_day 1715732454 [17:28:01]quantity*price = 100066 [17:28:01]sum+1 = 100067 [17:28:01]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 СНО: Общий режим Чек 120 14.05.2024 17:28 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67113 ФПД: 8195304068705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T172801&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67113&fm=8195304068705&tin=02508201610067®Number=0000000000091845&sum=100000 [17:28:02]StoreToDocumentArchive [17:28:02]shift 355 fd 67113 [17:28:02]save to /storage/0355/doc_00067113 [17:28:02]save last doc name /storage/0355/doc_00067113 to /storage/kkm_last_doc_name [17:28:02]save OK [17:28:02]Clear old archive folders... [17:28:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:02]tlvbuf is 003C1D60 [17:28:02]SAM_PROTO_ClearQueue [17:28:02]wFMCommunicate request_size=4 [17:28:02]MH_SAM_APDU [17:28:02]CAPDU: 80 09 00 00 [17:28:02]Write to MH i2c: E2 08 00 4D 02 80 09 00 00 00 00 00 00 C1 [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 [17:28:02]MH_I2C_Read... [17:28:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:02]Read from MH i2c: E2 03 00 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 03 00 4D 02 00 90 00 C3 [17:28:02]RAPDU: 90 00 [17:28:02]wFMCommunicate OK [17:28:02]SAM_PROTO_ClearQueue done [17:28:02]KKMCreateOFDPacket [17:28:02]OFDProtocolAddRootSTLVToBuf [17:28:02]FM_MakeSignedData [17:28:02]FM_MakeSignedData [17:28:02]SAM_PROTO_SignData [17:28:02]wFMCommunicate request_size=4 [17:28:02]MH_SAM_APDU [17:28:02]CAPDU: 80 0D 01 02 [17:28:02]Write to MH i2c: E2 08 00 4E 02 80 0D 01 02 00 00 00 00 C9 [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:02]Read from MH i2c: E2 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 03 00 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 03 00 4E 02 00 90 00 C4 [17:28:02]RAPDU: 90 00 [17:28:02]wFMCommunicate OK [17:28:02]wFMCommunicate request_size=255 [17:28:02]MH_SAM_APDU [17:28: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 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 78 00 00 00 F4 03 04 00 21 9F 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 07 [17:28:02]Write to MH i2c: E2 02 01 4F 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 78 00 00 00 F4 03 04 00 21 9F 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 07 00 00 1E [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:02]Read from MH i2c: E2 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 03 00 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 03 00 4F 02 00 90 00 C5 [17:28:02]RAPDU: 90 00 [17:28:02]wFMCommunicate OK [17:28:02]wFMCommunicate request_size=10 [17:28:02]MH_SAM_APDU [17:28:02]CAPDU: 80 0D 02 02 05 74 1E 30 16 61 [17:28:02]Write to MH i2c: E2 0D 00 50 02 80 0D 02 02 05 00 74 1E 30 16 61 00 00 0F [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:02]Read from MH i2c: E2 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 03 00 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 03 00 50 02 00 90 00 C6 [17:28:02]RAPDU: 90 00 [17:28:02]wFMCommunicate OK [17:28:02]wFMCommunicate request_size=4 [17:28:02]MH_SAM_APDU [17:28:02]CAPDU: 80 0D 03 02 [17:28:02]Write to MH i2c: E2 08 00 51 02 80 0D 03 02 00 00 00 00 CE [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:02]Read from MH i2c: E2 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 0B 00 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 0B 00 51 02 00 26 73 16 9E BF 3B D5 D4 90 00 BF [17:28:02]RAPDU: 26 73 16 9E BF 3B D5 D4 90 00 [17:28:02]wFMCommunicate OK [17:28:02]SAM_PROTO_SignData done [17:28:02]FM_MakeSignedData done [17:28:02]CreateOFDProtocolMessage [17:28:02]wFMCommunicate request_size=4 [17:28:02]MH_SAM_APDU [17:28:02]CAPDU: 80 11 00 00 [17:28:02]Write to MH i2c: E2 08 00 52 02 80 11 00 00 00 00 00 00 CE [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:03]Read from MH i2c: E2 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: E2 17 00 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: E2 17 00 52 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 24 [17:28:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:28:03]wFMCommunicate OK [17:28:03]CreateOFDProtocolMessage done [17:28:03]OFDSenderStorePacket 67113 [17:28:03]StoreOFDPacket docnum=67113 [17:28:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 17 B3 07 01 50 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 78 00 00 00 F4 03 04 00 21 9F 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 07 74 1E 30 16 61 26 73 16 9E BF 3B D5 D4 [17:28:03]CheckFolder [17:28:03]dirname=/storage/ofd_packets [17:28:03]CheckFolder done [17:28:03]ProducePacketName [17:28:03]name=ofd_packets/00067113 [17:28:03]NVStorageSaveData ofd_packets/00067113 [17:28:03]File name is /storage/ofd_packets/00067113 [17:28:03]Write 301 bytes [17:28:03]NVStorageSaveData done [17:28:03]OFDSenderStorePacket done [17:28:03]KKMCreateOFDPacket done [17:28:03]NVStorageSaveData kkm_last_timestamp [17:28:03]File name is /storage/kkm_last_timestamp [17:28:03]Write 4 bytes [17:28:03]NVStorageSaveData done [17:28:03]ExternCall_PrintAddStr [17:28:03]wPrintStart [17:28:03]Write to MH i2c: 01 00 00 53 02 55 [17:28:03]Write i2c OK [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: 01 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: 01 07 00 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: 01 07 00 53 02 00 00 00 00 00 FF 0F 6A [17:28:03]RasterBufferAndPrint [17:28:03]line Счет N : (1)507005 [17:28:03]line ИНН: 02508201610067 [17:28:03]line Контрольно-Кассовый Чек [17:28:03]line ПРОДАЖА [17:28:03]line ТРК (МРК, ГНК) : 43 [17:28:03]line Товар: 2710124130 [17:28:03]line Аи-92-К-5 [17:28:03]line 14.980 * 66.80 [17:28:03]line = 1000.66 [17:28:03]line НДС 12% НСП 1% [17:28:03]line > о реализуемом товаре [17:28:03]line ОКРУГЛЕНИЕ: -0.66 [17:28:03]line ИТОГО: 1000.00 [17:28:03]line Внесено: 1000.00 [17:28:03]line СДАЧА: 0.00 [17:28:03]line НСП 1% : 8.85 [17:28:03]line НДС 12% : 106.26 [17:28:03]line Наличными: 1000.00 [17:28:03]line Безнал.: 0.00 [17:28:03]line Место: АЗС № 91 "Партнер Нефть" [17:28:03]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:28:03]line СНО: Общий режим [17:28:03]line Чек 120 14.05.2024 17:28 [17:28:03]line Смена: 355 ФФД: 1.0 [17:28:03]line ЗНМ: 0300000119 [17:28:03]line РНМ: 0000000000091845 [17:28:03]line Версия ККМ: 001 [17:28:03]line ФМ: 0000000000871829 [17:28:03]line ФД: 67113 [17:28:03]line ФПД: 8195304068705 [17:28:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T172801&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67113&fm=8195304068705&tin=02508201610067®Number=0000000000091845&sum=100000 [17:28:03]OFD Sender: Processing packet 67113 [packets to send 35, broken 34] [17:28:03]ProducePacketName [17:28:03]name=ofd_packets/00067113 [17:28:03]OFD Sender: To server: pG, [17:28:03]CommunicateWithHost lk.salyk.kg:30040 [17:28:03]ConnectInit lk.salyk.kg [17:28:03]written 0, free lines is 4095 [17:28:03]Connected sock=10 [17:28:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 17 B3 07 01 50 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 78 00 00 00 F4 03 04 00 21 9F 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 07 74 1E 30 16 61 26 73 16 9E BF 3B D5 D4 [17:28: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 21 51 47 00 1D 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 29 06 01 00 F4 03 04 00 00 47 43 66 B6 04 01 00 00 34 73 CC EF 38 F1 40 63 [17:28:03]CommunicateWithHost err = 0 [17:28:03]CheckOFDResponse [17:28:03]1017 (14) - 77093643461234 [17:28:03]1041 (16) - 0000000000871829 [17:28:03]1040 (4) - 67113 [17:28:03]1012 (4) - 14.05.2024 11:12 [17:28:03]1206 (1) - 0 [17:28:03]OFD Sender: Remove packet 67113 [17:28:03]ProducePacketName [17:28:03]name=ofd_packets/00067113 [17:28:03]NVStorageDeleteData [17:28:03]Write to MH i2c: 01 00 00 7D 02 7F [17:28:03]Write i2c OK [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: 01 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: 01 07 00 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: 01 07 00 7D 02 00 00 00 00 00 DC 0C 6E [17:28:03]RasterBufferAndPrint [17:28:03]line [17:28:03]line [17:28:03]line [17:28:03]line [17:28:03]line [17:28:03]written 0, free lines is 3299 [17:28:03]MH_Cut [17:28:03]Write to MH i2c: D1 01 00 84 02 01 58 [17:28:03]Write i2c OK [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: D1 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: D1 01 00 [17:28:03]MH_I2C_Read... [17:28:03]Read from MH i2c: D1 01 00 84 02 00 57 [17:28:03]Write to MH i2c: 01 00 00 85 02 87 [17:28:03]Write i2c OK [17:28:03]MH_I2C_Read... [17:28:04]OFD Sender: No OFD packet to send [17:28:04]*** Cut start [17:28:04]*** Purtial cut [17:28:04]*** Stage 1: CUTSNS_PIN = 1 [17:28:04]Read from MH i2c: 01 [17:28:04]MH_I2C_Read... [17:28:04]*** Stop cut motor [17:28:04]*** Cut end [17:28:04]Read from MH i2c: 01 07 00 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: 01 07 00 85 02 00 00 00 00 00 FF 0F 9C [17:28:04]process_action close_receipt done [17:28:04]requested_data is exist [17:28:04]produce_requested_data [17:28:04]requested_item fm.sn is exist - process it [17:28:04]wFMCommunicate request_size=4 [17:28:04]MH_SAM_APDU [17:28:04]CAPDU: 80 11 00 00 [17:28:04]Write to MH i2c: E2 08 00 86 02 80 11 00 00 00 00 00 00 02 [17:28:04]Write i2c OK [17:28:04]MH_I2C_Read... [17:28:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:04]Read from MH i2c: E2 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 17 00 [17:28:04]MH_I2C_Read... [17:28:04]Read from MH i2c: E2 17 00 86 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 58 [17:28:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:28:04]wFMCommunicate OK [17:28:04]requested_item fd.num is exist - process it [17:28:04]SAM_PROTO_GetFieldsCounters [17:28:04]wFMCommunicate request_size=4 [17:28:04]MH_SAM_APDU [17:28:04]CAPDU: 80 13 00 00 [17:28:04]Write to MH i2c: E2 08 00 87 02 80 13 00 00 00 00 00 00 05 [17:28:04]Write i2c OK [17:28:04]MH_I2C_Read... [17:28:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:05]Read from MH i2c: E2 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 62 00 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 62 00 87 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 29 06 01 00 0E 04 04 00 63 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 27 [17:28: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 29 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:05]wFMCommunicate OK [17:28:05]SAM_PROTO_GetFieldsCounters done [17:28:05]requested_item shift.num is exist - process it [17:28:05]requested_item shift.opened is exist - process it [17:28:05]req_shift_opened [17:28:05]FM_GetShiftState [17:28:05]SAM_PROTO_GetShiftState [17:28:05]wFMCommunicate request_size=4 [17:28:05]MH_SAM_APDU [17:28:05]CAPDU: 80 13 01 00 [17:28:05]Write to MH i2c: E2 08 00 88 02 80 13 01 00 00 00 00 00 07 [17:28:05]Write i2c OK [17:28:05]MH_I2C_Read... [17:28:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:05]Read from MH i2c: E2 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 0E 00 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 0E 00 88 02 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 CF [17:28:05]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:28:05]wFMCommunicate OK [17:28:05]SAM_PROTO_GetShiftState done [17:28:05]FM_GetShiftState done [17:28:05]req_shift_opened done [17:28:05]requested_item shift.open_date is exist - process it [17:28:05]req_shift_open_date [17:28:05]req_shift_open_date done [17:28:05]produce_requested_data done [17:28:05]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67113,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [17:28:05]process_action_free close_receipt [17:28:05]json_value_free [17:28:05]json_value_free done [17:28:05]process_json_proto returns [17:28:05]Send response to host [17:28:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67113,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [17:28:05]free response buf [17:28:05]execute_script done [17:28:05]execute_script returns [17:28:05]free content buf [17:28:05]Sock 9.Close socket [17:28:05]Sock 9.Thread stoped [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:50]accept exits with 7 [17:31:50]New connection [17:31:50]New thread 3066588516 created [17:31:50]Thread 3066731876 joined [17:31:50]Waiting for new connection... [17:31:50] Sock 7.Parse request [17:31:50]Sock 7.Check first char [17:31:50]Sock 7.First char is OK [17:31:50]request: POST /json_proto HTTP/1.0 [17:31:50]Method: POST [17:31:50]URL: /json_proto [17:31:50]Method is POST - this is cgi request [17:31:50]url: /json_proto [17:31:50]query_string will be loaded in cgi processing [17:31:50]execute_cgi json_proto POST (null) [17:31:50]execute_cgi path=json_proto method=POST [17:31:50]POST find Content-Length [17:31:50]Host: 172.17.41.195:8080 [17:31:50]Content-Length: 639 [17:31:50]Content-Type: application/json [17:31:50] [17:31:50]POST finish read [17:31:50]Found Content-Length = 639 [17:31:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507006", "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:31:50]execute_script... [17:31: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)507006", "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:31:50]POST & json_proto [17:31:50]process_json_proto [17:31:50]json parsed OK: [17:31:50]protocol is kg_v1.0 [17:31:50]action value=close_receipt [17:31:50]process_action close_receipt [17:31:50]cmd_close_receipt [17:31:50]MH_GetDate [17:31:50]Write to MH i2c: F0 00 00 89 02 7A [17:31:50]Write i2c OK [17:31:50]MH_I2C_Read... [17:31:50]Read from MH i2c: F0 [17:31:50]MH_I2C_Read... [17:31:50]Read from MH i2c: F0 09 00 [17:31:50]MH_I2C_Read... [17:31:50]Read from MH i2c: F0 09 00 89 02 00 07 A0 43 66 FC 21 6F 64 C3 [17:31:50]GetLastDocTimeStamp 1715707681 [17:31:50]current date 1715707911 [17:31:50]FM_GetShiftState [17:31:50]SAM_PROTO_GetShiftState [17:31:50]wFMCommunicate request_size=4 [17:31:50]MH_SAM_APDU [17:31:50]CAPDU: 80 13 01 00 [17:31:50]Write to MH i2c: E2 08 00 8A 02 80 13 01 00 00 00 00 00 09 [17:31:50]Write i2c OK [17:31:50]MH_I2C_Read... [17:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:50]Read from MH i2c: E2 [17:31:50]MH_I2C_Read... [17:31:50]Read from MH i2c: E2 0E 00 [17:31:50]MH_I2C_Read... [17:31:50]Read from MH i2c: E2 0E 00 8A 02 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D1 [17:31:50]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:31:50]wFMCommunicate OK [17:31:50]SAM_PROTO_GetShiftState done [17:31:50]FM_GetShiftState done [17:31:50]opened in 1715646054 [17:31:50]opened+sec_in_day 1715732454 [17:31:50]quantity*price = 224100 [17:31:50]sum+1 = 224101 [17:31:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2241.00 НСП 1% : 19.83 НДС 12% : 237.98 Наличными: 2241.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 121 14.05.2024 17:31 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67114 ФПД: 72802119093089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T173151&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67114&fm=72802119093089&tin=02508201610067®Number=0000000000091845&sum=224100 [17:31:51]StoreToDocumentArchive [17:31:51]shift 355 fd 67114 [17:31:51]save to /storage/0355/doc_00067114 [17:31:51]save last doc name /storage/0355/doc_00067114 to /storage/kkm_last_doc_name [17:31:51]save OK [17:31:51]Clear old archive folders... [17:31:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:31:51]tlvbuf is 003B1900 [17:31:51]SAM_PROTO_ClearQueue [17:31:51]wFMCommunicate request_size=4 [17:31:51]MH_SAM_APDU [17:31:51]CAPDU: 80 09 00 00 [17:31:51]Write to MH i2c: E2 08 00 97 02 80 09 00 00 00 00 00 00 0B [17:31:51]Write i2c OK [17:31:51]MH_I2C_Read... [17:31:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:52]Read from MH i2c: E2 [17:31:52]MH_I2C_Read... [17:31:52]Read from MH i2c: E2 03 00 [17:31:52]MH_I2C_Read... [17:31:52]Read from MH i2c: E2 03 00 97 02 00 90 00 0D [17:31:52]RAPDU: 90 00 [17:31:52]wFMCommunicate OK [17:31:52]SAM_PROTO_ClearQueue done [17:31:52]KKMCreateOFDPacket [17:31:52]OFDProtocolAddRootSTLVToBuf [17:31:52]FM_MakeSignedData [17:31:52]FM_MakeSignedData [17:31:52]SAM_PROTO_SignData [17:31:52]wFMCommunicate request_size=4 [17:31:52]MH_SAM_APDU [17:31:52]CAPDU: 80 0D 01 02 [17:31:52]Write to MH i2c: E2 08 00 98 02 80 0D 01 02 00 00 00 00 13 [17:31:52]Write i2c OK [17:31:52]MH_I2C_Read... [17:31:52]Read from MH i2c: E2 [17:31:52]MH_I2C_Read... [17:31:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:52]Read from MH i2c: E2 03 00 [17:31:52]MH_I2C_Read... [17:31:52]Read from MH i2c: E2 03 00 98 02 00 90 00 0E [17:31:52]RAPDU: 90 00 [17:31:52]wFMCommunicate OK [17:31:52]wFMCommunicate request_size=255 [17:31:52]MH_SAM_APDU [17:31: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 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 79 00 00 00 F4 03 04 00 07 A0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 42 36 90 72 [17:31:52]Write to MH i2c: E2 02 01 99 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 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 79 00 00 00 F4 03 04 00 07 A0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 42 36 90 72 00 00 CB [17:31:52]Write i2c OK [17:31:52]MH_I2C_Read... [17:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:52]Read from MH i2c: E2 [17:31:52]MH_I2C_Read... [17:31:52]Read from MH i2c: E2 03 00 [17:31:52]MH_I2C_Read... [17:31:52]Read from MH i2c: E2 03 00 99 02 00 90 00 0F [17:31:52]RAPDU: 90 00 [17:31:52]wFMCommunicate OK [17:31:52]wFMCommunicate request_size=7 [17:31:52]MH_SAM_APDU [17:31:52]CAPDU: 80 0D 02 02 02 8B 61 [17:31:52]Write to MH i2c: E2 0A 00 9A 02 80 0D 02 02 02 00 8B 61 00 00 06 [17:31:52]Write i2c OK [17:31:52]MH_I2C_Read... [17:31:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:52]Read from MH i2c: E2 [17:31:52]MH_I2C_Read... [17:31:52]Read from MH i2c: E2 03 00 [17:31:52]MH_I2C_Read... [17:31:52]Read from MH i2c: E2 03 00 9A 02 00 90 00 10 [17:31:52]RAPDU: 90 00 [17:31:52]wFMCommunicate OK [17:31:52]wFMCommunicate request_size=4 [17:31:52]MH_SAM_APDU [17:31:52]CAPDU: 80 0D 03 02 [17:31:52]Write to MH i2c: E2 08 00 9B 02 80 0D 03 02 00 00 00 00 18 [17:31:52]Write i2c OK [17:31:52]MH_I2C_Read... [17:31:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:52]Read from MH i2c: E2 [17:31:52]MH_I2C_Read... [17:31:52]Read from MH i2c: E2 0B 00 [17:31:52]MH_I2C_Read... [17:31:52]Read from MH i2c: E2 0B 00 9B 02 00 87 1E DB 7D 54 51 15 B8 90 00 88 [17:31:52]RAPDU: 87 1E DB 7D 54 51 15 B8 90 00 [17:31:52]wFMCommunicate OK [17:31:52]SAM_PROTO_SignData done [17:31:52]FM_MakeSignedData done [17:31:52]CreateOFDProtocolMessage [17:31:52]wFMCommunicate request_size=4 [17:31:52]MH_SAM_APDU [17:31:52]CAPDU: 80 11 00 00 [17:31:52]Write to MH i2c: E2 08 00 9C 02 80 11 00 00 00 00 00 00 18 [17:31:52]Write i2c OK [17:31:52]MH_I2C_Read... [17:31:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:52]Read from MH i2c: E2 [17:31:52]MH_I2C_Read... [17:31:52]Read from MH i2c: E2 17 00 [17:31:52]MH_I2C_Read... [17:31:52]Read from MH i2c: E2 17 00 9C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6E [17:31:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:31:52]wFMCommunicate OK [17:31:52]CreateOFDProtocolMessage done [17:31:52]OFDSenderStorePacket 67114 [17:31:52]StoreOFDPacket docnum=67114 [17:31: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 24 DA 04 01 E9 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 79 00 00 00 F4 03 04 00 07 A0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 42 36 90 72 8B 61 87 1E DB 7D 54 51 15 B8 [17:31:52]CheckFolder [17:31:52]dirname=/storage/ofd_packets [17:31:52]CheckFolder done [17:31:52]ProducePacketName [17:31:52]name=ofd_packets/00067114 [17:31:52]NVStorageSaveData ofd_packets/00067114 [17:31:52]File name is /storage/ofd_packets/00067114 [17:31:52]Write 298 bytes [17:31:52]NVStorageSaveData done [17:31:52]OFDSenderStorePacket done [17:31:52]KKMCreateOFDPacket done [17:31:52]NVStorageSaveData kkm_last_timestamp [17:31:52]File name is /storage/kkm_last_timestamp [17:31:52]Write 4 bytes [17:31:52]NVStorageSaveData done [17:31:52]ExternCall_PrintAddStr [17:31:52]wPrintStart [17:31:52]Write to MH i2c: 01 00 00 9D 02 9F [17:31:52]Write i2c OK [17:31:52]MH_I2C_Read... [17:31:52]Read from MH i2c: 01 [17:31:52]MH_I2C_Read... [17:31:52]Read from MH i2c: 01 07 00 [17:31:52]MH_I2C_Read... [17:31:52]Read from MH i2c: 01 07 00 9D 02 00 00 00 00 00 FF 0F B4 [17:31:52]RasterBufferAndPrint [17:31:52]line Счет N : (1)507006 [17:31:52]line ИНН: 02508201610067 [17:31:52]line Контрольно-Кассовый Чек [17:31:52]line ПРОДАЖА [17:31:52]line ТРК (МРК, ГНК) : 11 [17:31:52]line Товар: 2710194210 [17:31:52]line ДТ-К-5 [17:31:52]line 30.000 * 74.70 [17:31:52]line = 2241.00 [17:31:52]line НДС 12% НСП 1% [17:31:52]line > о реализуемом товаре [17:31:52]line ИТОГО: 2241.00 [17:31:52]line НСП 1% : 19.83 [17:31:52]line НДС 12% : 237.98 [17:31:52]line Наличными: 2241.00 [17:31:52]line Безнал.: 0.00 [17:31:52]line Место: АЗС № 91 "Партнер Нефть" [17:31:52]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:31:52]line СНО: Общий режим [17:31:52]line Чек 121 14.05.2024 17:31 [17:31:52]line Смена: 355 ФФД: 1.0 [17:31:52]line ЗНМ: 0300000119 [17:31:52]line РНМ: 0000000000091845 [17:31:52]line Версия ККМ: 001 [17:31:52]line ФМ: 0000000000871829 [17:31:52]line ФД: 67114 [17:31:52]line ФПД: 72802119093089 [17:31:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T173151&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67114&fm=72802119093089&tin=02508201610067®Number=0000000000091845&sum=224100 [17:31:52]OFD Sender: Processing packet 67114 [packets to send 35, broken 34] [17:31:52]ProducePacketName [17:31:52]name=ofd_packets/00067114 [17:31:52]OFD Sender: To server: pG, [17:31:52]CommunicateWithHost lk.salyk.kg:30040 [17:31:52]ConnectInit lk.salyk.kg [17:31:52]written 0, free lines is 4095 [17:31:52]Connected sock=10 [17:31: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 24 DA 04 01 E9 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 79 00 00 00 F4 03 04 00 07 A0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 42 36 90 72 8B 61 87 1E DB 7D 54 51 15 B8 [17:31: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 28 EC 47 00 47 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 2A 06 01 00 F4 03 04 00 E6 47 43 66 B6 04 01 00 00 79 0E 78 60 E3 E7 E5 68 [17:31:53]CommunicateWithHost err = 0 [17:31:53]CheckOFDResponse [17:31:53]1017 (14) - 77093643461234 [17:31:53]1041 (16) - 0000000000871829 [17:31:53]1040 (4) - 67114 [17:31:53]1012 (4) - 14.05.2024 11:15 [17:31:53]1206 (1) - 0 [17:31:53]OFD Sender: Remove packet 67114 [17:31:53]ProducePacketName [17:31:53]name=ofd_packets/00067114 [17:31:53]NVStorageDeleteData [17:31:53]Write to MH i2c: 01 00 00 C4 02 C6 [17:31:53]Write i2c OK [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: 01 [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: 01 07 00 [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: 01 07 00 C4 02 00 00 00 00 00 00 0D DA [17:31:53]RasterBufferAndPrint [17:31:53]line [17:31:53]line [17:31:53]line [17:31:53]line [17:31:53]line [17:31:53]written 0, free lines is 3332 [17:31:53]MH_Cut [17:31:53]Write to MH i2c: D1 01 00 CB 02 01 9F [17:31:53]Write i2c OK [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: D1 [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: D1 01 00 [17:31:53]MH_I2C_Read... [17:31:53]Read from MH i2c: D1 01 00 CB 02 00 9E [17:31:53]Write to MH i2c: 01 00 00 CC 02 CE [17:31:53]Write i2c OK [17:31:53]MH_I2C_Read... [17:31:53]OFD Sender: No OFD packet to send [17:31:53]*** Cut start [17:31:53]*** Purtial cut [17:31:53]*** CUTSNS_PIN = 0 [17:31:54]*** Stage 1: CUTSNS_PIN = 1 [17:31:55]Read from MH i2c: 01 [17:31:55]MH_I2C_Read... [17:31:55]*** Stop cut motor [17:31:56]*** Cut end [17:31:56]Read from MH i2c: 01 07 00 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: 01 07 00 CC 02 00 00 00 00 00 FF 0F E3 [17:31:56]process_action close_receipt done [17:31:56]requested_data is exist [17:31:56]produce_requested_data [17:31:56]requested_item fm.sn is exist - process it [17:31:56]wFMCommunicate request_size=4 [17:31:56]MH_SAM_APDU [17:31:56]CAPDU: 80 11 00 00 [17:31:56]Write to MH i2c: E2 08 00 CD 02 80 11 00 00 00 00 00 00 49 [17:31:56]Write i2c OK [17:31:56]MH_I2C_Read... [17:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:56]Read from MH i2c: E2 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: E2 17 00 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: E2 17 00 CD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9F [17:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:31:56]wFMCommunicate OK [17:31:56]requested_item fd.num is exist - process it [17:31:56]SAM_PROTO_GetFieldsCounters [17:31:56]wFMCommunicate request_size=4 [17:31:56]MH_SAM_APDU [17:31:56]CAPDU: 80 13 00 00 [17:31:56]Write to MH i2c: E2 08 00 CE 02 80 13 00 00 00 00 00 00 4C [17:31:56]Write i2c OK [17:31:56]MH_I2C_Read... [17:31:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:56]Read from MH i2c: E2 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: E2 62 00 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: E2 62 00 CE 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 2A 06 01 00 0E 04 04 00 63 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 72 [17:31: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 2A 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:56]wFMCommunicate OK [17:31:56]SAM_PROTO_GetFieldsCounters done [17:31:56]requested_item shift.num is exist - process it [17:31:56]requested_item shift.opened is exist - process it [17:31:56]req_shift_opened [17:31:56]FM_GetShiftState [17:31:56]SAM_PROTO_GetShiftState [17:31:56]wFMCommunicate request_size=4 [17:31:56]MH_SAM_APDU [17:31:56]CAPDU: 80 13 01 00 [17:31:56]Write to MH i2c: E2 08 00 CF 02 80 13 01 00 00 00 00 00 4E [17:31:56]Write i2c OK [17:31:56]MH_I2C_Read... [17:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:56]Read from MH i2c: E2 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: E2 0E 00 [17:31:56]MH_I2C_Read... [17:31:56]Read from MH i2c: E2 0E 00 CF 02 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 16 [17:31:56]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:31:56]wFMCommunicate OK [17:31:56]SAM_PROTO_GetShiftState done [17:31:56]FM_GetShiftState done [17:31:56]req_shift_opened done [17:31:56]requested_item shift.open_date is exist - process it [17:31:56]req_shift_open_date [17:31:56]req_shift_open_date done [17:31:56]produce_requested_data done [17:31:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67114,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [17:31:56]process_action_free close_receipt [17:31:56]json_value_free [17:31:56]json_value_free done [17:31:56]process_json_proto returns [17:31:56]Send response to host [17:31:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67114,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [17:31:56]free response buf [17:31:56]execute_script done [17:31:56]execute_script returns [17:31:56]free content buf [17:31:56]Sock 7.Close socket [17:31:56]Sock 7.Thread stoped [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:18]OFD Sender: No OFD packet to send [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:18]OFD Sender: No OFD packet to send [17:36:23]OFD Sender: No OFD packet to send [17:36:28]OFD Sender: No OFD packet to send [17:36:32]accept exits with 9 [17:36:32]New connection [17:36:32]New thread 3066731876 created [17:36:32]Thread 3066588516 joined [17:36:32]Waiting for new connection... [17:36:32] Sock 9.Parse request [17:36:32]Sock 9.Check first char [17:36:32]Sock 9.First char is OK [17:36:32]request: POST /json_proto HTTP/1.0 [17:36:32]Method: POST [17:36:32]URL: /json_proto [17:36:32]Method is POST - this is cgi request [17:36:32]url: /json_proto [17:36:32]query_string will be loaded in cgi processing [17:36:32]execute_cgi json_proto POST (null) [17:36:32]execute_cgi path=json_proto method=POST [17:36:32]POST find Content-Length [17:36:32]Host: 172.17.41.195:8080 [17:36:32]Content-Length: 817 [17:36:32]Content-Type: application/json [17:36:32] [17:36:32]POST finish read [17:36:32]Found Content-Length = 817 [17:36:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.480, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:32]execute_script... [17:36: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)507007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.480, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:32]POST & json_proto [17:36:32]process_json_proto [17:36:32]json parsed OK: [17:36:32]protocol is kg_v1.0 [17:36:32]action value=close_receipt [17:36:32]process_action close_receipt [17:36:32]cmd_close_receipt [17:36:32]MH_GetDate [17:36:32]Write to MH i2c: F0 00 00 D0 02 C1 [17:36:32]Write i2c OK [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: F0 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: F0 09 00 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: F0 09 00 D0 02 00 21 A1 43 66 FC 21 6F 64 25 [17:36:32]GetLastDocTimeStamp 1715707911 [17:36:32]current date 1715708193 [17:36:32]FM_GetShiftState [17:36:32]SAM_PROTO_GetShiftState [17:36:32]wFMCommunicate request_size=4 [17:36:32]MH_SAM_APDU [17:36:32]CAPDU: 80 13 01 00 [17:36:32]Write to MH i2c: E2 08 00 D1 02 80 13 01 00 00 00 00 00 50 [17:36:32]Write i2c OK [17:36:32]MH_I2C_Read... [17:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:32]Read from MH i2c: E2 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: E2 0E 00 [17:36:32]MH_I2C_Read... [17:36:32]Read from MH i2c: E2 0E 00 D1 02 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 18 [17:36:32]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:36:32]wFMCommunicate OK [17:36:32]SAM_PROTO_GetShiftState done [17:36:32]FM_GetShiftState done [17:36:32]opened in 1715646054 [17:36:32]opened+sec_in_day 1715732454 [17:36:32]quantity*price = 70006 [17:36:32]sum+1 = 70007 [17:36:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.06 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 0.00 Безнал.: 700.06 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 122 14.05.2024 17:36 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67115 ФПД: 205105653982946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T173633&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67115&fm=205105653982946&tin=02508201610067®Number=0000000000091845&sum=70006 [17:36:33]StoreToDocumentArchive [17:36:33]shift 355 fd 67115 [17:36:33]save to /storage/0355/doc_00067115 [17:36:33]save last doc name /storage/0355/doc_00067115 to /storage/kkm_last_doc_name [17:36:33]save OK [17:36:33]Clear old archive folders... [17:36:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:34]tlvbuf is 003B8360 [17:36:34]SAM_PROTO_ClearQueue [17:36:34]wFMCommunicate request_size=4 [17:36:34]MH_SAM_APDU [17:36:34]CAPDU: 80 09 00 00 [17:36:34]Write to MH i2c: E2 08 00 DE 02 80 09 00 00 00 00 00 00 52 [17:36:34]Write i2c OK [17:36:34]MH_I2C_Read... [17:36:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:34]Read from MH i2c: E2 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 03 00 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 03 00 DE 02 00 90 00 54 [17:36:34]RAPDU: 90 00 [17:36:34]wFMCommunicate OK [17:36:34]SAM_PROTO_ClearQueue done [17:36:34]KKMCreateOFDPacket [17:36:34]OFDProtocolAddRootSTLVToBuf [17:36:34]FM_MakeSignedData [17:36:34]FM_MakeSignedData [17:36:34]SAM_PROTO_SignData [17:36:34]wFMCommunicate request_size=4 [17:36:34]MH_SAM_APDU [17:36:34]CAPDU: 80 0D 01 02 [17:36:34]Write to MH i2c: E2 08 00 DF 02 80 0D 01 02 00 00 00 00 5A [17:36:34]Write i2c OK [17:36:34]MH_I2C_Read... [17:36:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:34]Read from MH i2c: E2 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 03 00 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 03 00 DF 02 00 90 00 55 [17:36:34]RAPDU: 90 00 [17:36:34]wFMCommunicate OK [17:36:34]wFMCommunicate request_size=255 [17:36:34]MH_SAM_APDU [17:36:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 21 A1 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BA [17:36:34]Write to MH i2c: E2 02 01 E0 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 21 A1 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BA 00 00 14 [17:36:34]Write i2c OK [17:36:34]MH_I2C_Read... [17:36:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:34]Read from MH i2c: E2 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 03 00 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 03 00 E0 02 00 90 00 56 [17:36:34]RAPDU: 90 00 [17:36:34]wFMCommunicate OK [17:36:34]wFMCommunicate request_size=10 [17:36:34]MH_SAM_APDU [17:36:34]CAPDU: 80 0D 02 02 05 8A E1 A5 A6 E2 [17:36:34]Write to MH i2c: E2 0D 00 E1 02 80 0D 02 02 05 00 8A E1 A5 A6 E2 00 00 FF [17:36:34]Write i2c OK [17:36:34]MH_I2C_Read... [17:36:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:34]Read from MH i2c: E2 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 03 00 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 03 00 E1 02 00 90 00 57 [17:36:34]RAPDU: 90 00 [17:36:34]wFMCommunicate OK [17:36:34]wFMCommunicate request_size=4 [17:36:34]MH_SAM_APDU [17:36:34]CAPDU: 80 0D 03 02 [17:36:34]Write to MH i2c: E2 08 00 E2 02 80 0D 03 02 00 00 00 00 5F [17:36:34]Write i2c OK [17:36:34]MH_I2C_Read... [17:36:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:34]Read from MH i2c: E2 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 0B 00 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 0B 00 E2 02 00 FC 3D E5 D0 75 A9 FD 09 90 00 72 [17:36:34]RAPDU: FC 3D E5 D0 75 A9 FD 09 90 00 [17:36:34]wFMCommunicate OK [17:36:34]SAM_PROTO_SignData done [17:36:34]FM_MakeSignedData done [17:36:34]CreateOFDProtocolMessage [17:36:34]wFMCommunicate request_size=4 [17:36:34]MH_SAM_APDU [17:36:34]CAPDU: 80 11 00 00 [17:36:34]Write to MH i2c: E2 08 00 E3 02 80 11 00 00 00 00 00 00 5F [17:36:34]Write i2c OK [17:36:34]MH_I2C_Read... [17:36:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:34]Read from MH i2c: E2 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 17 00 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: E2 17 00 E3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B5 [17:36:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:36:34]wFMCommunicate OK [17:36:34]CreateOFDProtocolMessage done [17:36:34]OFDSenderStorePacket 67115 [17:36:34]StoreOFDPacket docnum=67115 [17:36: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 FC D0 07 01 1B 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 21 A1 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BA 8A E1 A5 A6 E2 FC 3D E5 D0 75 A9 FD 09 [17:36:34]CheckFolder [17:36:34]dirname=/storage/ofd_packets [17:36:34]CheckFolder done [17:36:34]ProducePacketName [17:36:34]name=ofd_packets/00067115 [17:36:34]NVStorageSaveData ofd_packets/00067115 [17:36:34]File name is /storage/ofd_packets/00067115 [17:36:34]Write 301 bytes [17:36:34]NVStorageSaveData done [17:36:34]OFDSenderStorePacket done [17:36:34]KKMCreateOFDPacket done [17:36:34]NVStorageSaveData kkm_last_timestamp [17:36:34]File name is /storage/kkm_last_timestamp [17:36:34]Write 4 bytes [17:36:34]NVStorageSaveData done [17:36:34]ExternCall_PrintAddStr [17:36:34]wPrintStart [17:36:34]Write to MH i2c: 01 00 00 E4 02 E6 [17:36:34]Write i2c OK [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: 01 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: 01 07 00 [17:36:34]MH_I2C_Read... [17:36:34]Read from MH i2c: 01 07 00 E4 02 00 00 00 00 00 FF 0F FB [17:36:34]RasterBufferAndPrint [17:36:34]line Счет N : (1)507007 [17:36:34]line ИНН: 02508201610067 [17:36:34]line Контрольно-Кассовый Чек [17:36:34]line ПРОДАЖА [17:36:34]line ТРК (МРК, ГНК) : 13 [17:36:34]line Товар: 2710124130 [17:36:34]line Аи-92-К-5 [17:36:34]line 10.480 * 66.80 [17:36:34]line = 700.06 [17:36:34]line НДС 12% НСП 1% [17:36:34]line > о реализуемом товаре [17:36:34]line ИТОГО: 700.06 [17:36:34]line НСП 1% : 6.19 [17:36:34]line НДС 12% : 74.34 [17:36:34]line Наличными: 0.00 [17:36:34]line Безнал.: 700.06 [17:36:34]line Место: АЗС № 91 "Партнер Нефть" [17:36:34]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:36:34]line СНО: Общий режим [17:36:34]line Чек 122 14.05.2024 17:36 [17:36:34]line Смена: 355 ФФД: 1.0 [17:36:34]line ЗНМ: 0300000119 [17:36:34]line РНМ: 0000000000091845 [17:36:34]line Версия ККМ: 001 [17:36:34]line Платежная система: Бакай Банк [17:36:34]line ФМ: 0000000000871829 [17:36:34]line ФД: 67115 [17:36:34]line ФПД: 205105653982946 [17:36:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T173633&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67115&fm=205105653982946&tin=02508201610067®Number=0000000000091845&sum=70006 [17:36:34]OFD Sender: Processing packet 67115 [packets to send 35, broken 34] [17:36:34]ProducePacketName [17:36:34]name=ofd_packets/00067115 [17:36:34]OFD Sender: To server: pG, [17:36:34]CommunicateWithHost lk.salyk.kg:30040 [17:36:34]ConnectInit lk.salyk.kg [17:36:34]written 0, free lines is 4095 [17:36:34]Connected sock=10 [17:36: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 FC D0 07 01 1B 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 21 A1 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BA 8A E1 A5 A6 E2 FC 3D E5 D0 75 A9 FD 09 [17:36: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 A1 B1 47 00 8A 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 06 01 00 F4 03 04 00 00 49 43 66 B6 04 01 00 00 D7 DA ED 4B D5 0B DC 3B [17:36:35]CommunicateWithHost err = 0 [17:36:35]CheckOFDResponse [17:36:35]1017 (14) - 77093643461234 [17:36:35]1041 (16) - 0000000000871829 [17:36:35]1040 (4) - 67115 [17:36:35]1012 (4) - 14.05.2024 11:20 [17:36:35]1206 (1) - 0 [17:36:35]OFD Sender: Remove packet 67115 [17:36:35]ProducePacketName [17:36:35]name=ofd_packets/00067115 [17:36:35]NVStorageDeleteData [17:36:35]Write to MH i2c: 01 00 00 0D 03 10 [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: 01 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: 01 07 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: 01 07 00 0D 03 00 00 00 00 00 E7 0C 0A [17:36:35]RasterBufferAndPrint [17:36:35]line [17:36:35]line [17:36:35]line [17:36:35]line [17:36:35]line [17:36:35]written 0, free lines is 3312 [17:36:35]MH_Cut [17:36:35]Write to MH i2c: D1 01 00 14 03 01 E9 [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: D1 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: D1 01 00 [17:36:35]MH_I2C_Read... [17:36:35]Read from MH i2c: D1 01 00 14 03 00 E8 [17:36:35]Write to MH i2c: 01 00 00 15 03 18 [17:36:35]Write i2c OK [17:36:35]MH_I2C_Read... [17:36:35]OFD Sender: No OFD packet to send [17:36:36]*** Cut start [17:36:36]*** Purtial cut [17:36:36]*** Stage 1: CUTSNS_PIN = 1 [17:36:36]Read from MH i2c: 01 [17:36:36]MH_I2C_Read... [17:36:36]*** Stop cut motor [17:36:36]*** Cut end [17:36:36]Read from MH i2c: 01 07 00 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: 01 07 00 15 03 00 00 00 00 00 FF 0F 2D [17:36:36]process_action close_receipt done [17:36:36]requested_data is exist [17:36:36]produce_requested_data [17:36:36]requested_item fm.sn is exist - process it [17:36:36]wFMCommunicate request_size=4 [17:36:36]MH_SAM_APDU [17:36:36]CAPDU: 80 11 00 00 [17:36:36]Write to MH i2c: E2 08 00 16 03 80 11 00 00 00 00 00 00 93 [17:36:36]Write i2c OK [17:36:36]MH_I2C_Read... [17:36:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:36]Read from MH i2c: E2 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: E2 17 00 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: E2 17 00 16 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E9 [17:36: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:36:36]wFMCommunicate OK [17:36:36]requested_item fd.num is exist - process it [17:36:36]SAM_PROTO_GetFieldsCounters [17:36:36]wFMCommunicate request_size=4 [17:36:36]MH_SAM_APDU [17:36:36]CAPDU: 80 13 00 00 [17:36:36]Write to MH i2c: E2 08 00 17 03 80 13 00 00 00 00 00 00 96 [17:36:36]Write i2c OK [17:36:36]MH_I2C_Read... [17:36:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:36]Read from MH i2c: E2 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: E2 62 00 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: E2 62 00 17 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 2B 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [17:36: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 2B 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:36]wFMCommunicate OK [17:36:36]SAM_PROTO_GetFieldsCounters done [17:36:36]requested_item shift.num is exist - process it [17:36:36]requested_item shift.opened is exist - process it [17:36:36]req_shift_opened [17:36:36]FM_GetShiftState [17:36:36]SAM_PROTO_GetShiftState [17:36:36]wFMCommunicate request_size=4 [17:36:36]MH_SAM_APDU [17:36:36]CAPDU: 80 13 01 00 [17:36:36]Write to MH i2c: E2 08 00 18 03 80 13 01 00 00 00 00 00 98 [17:36:36]Write i2c OK [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: E2 [17:36:36]MH_I2C_Read... [17:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:36]Read from MH i2c: E2 0E 00 [17:36:36]MH_I2C_Read... [17:36:36]Read from MH i2c: E2 0E 00 18 03 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 60 [17:36:36]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:36:36]wFMCommunicate OK [17:36:36]SAM_PROTO_GetShiftState done [17:36:36]FM_GetShiftState done [17:36:36]req_shift_opened done [17:36:36]requested_item shift.open_date is exist - process it [17:36:36]req_shift_open_date [17:36:36]req_shift_open_date done [17:36:36]produce_requested_data done [17:36:36]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67115,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [17:36:36]process_action_free close_receipt [17:36:36]json_value_free [17:36:36]json_value_free done [17:36:36]process_json_proto returns [17:36:36]Send response to host [17:36:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67115,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [17:36:36]free response buf [17:36:36]execute_script done [17:36:36]execute_script returns [17:36:36]free content buf [17:36:36]Sock 9.Close socket [17:36:36]Sock 9.Thread stoped [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:15]OFD Sender: No OFD packet to send [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [17:37:30]OFD Sender: No OFD packet to send [17:37:35]OFD Sender: No OFD packet to send [17:37:40]OFD Sender: No OFD packet to send [17:37:45]OFD Sender: No OFD packet to send [17:37:50]OFD Sender: No OFD packet to send [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42: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:39]recv_with_timeout no data received [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:20]accept exits with 7 [17:44:20]New connection [17:44:20]New thread 3066588516 created [17:44:20]Thread 3066731876 joined [17:44:20]Waiting for new connection... [17:44:20] Sock 7.Parse request [17:44:20]Sock 7.Check first char [17:44:20]Sock 7.First char is OK [17:44:20]request: POST /json_proto HTTP/1.0 [17:44:20]Method: POST [17:44:20]URL: /json_proto [17:44:20]Method is POST - this is cgi request [17:44:20]url: /json_proto [17:44:20]query_string will be loaded in cgi processing [17:44:20]execute_cgi json_proto POST (null) [17:44:20]execute_cgi path=json_proto method=POST [17:44:20]POST find Content-Length [17:44:20]Host: 172.17.41.195:8080 [17:44:20]Content-Length: 682 [17:44:20]Content-Type: application/json [17:44:20] [17:44:20]POST finish read [17:44:20]Found Content-Length = 682 [17:44:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507008", "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" ] } } [17:44:20]execute_script... [17:44: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)507008", "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" ] } } [17:44:20]POST & json_proto [17:44:20]process_json_proto [17:44:20]json parsed OK: [17:44:20]protocol is kg_v1.0 [17:44:20]action value=close_receipt [17:44:20]process_action close_receipt [17:44:20]cmd_close_receipt [17:44:20]MH_GetDate [17:44:20]Write to MH i2c: F0 00 00 19 03 0B [17:44:20]Write i2c OK [17:44:20]MH_I2C_Read... [17:44:20]Read from MH i2c: F0 [17:44:20]MH_I2C_Read... [17:44:20]Read from MH i2c: F0 09 00 [17:44:20]MH_I2C_Read... [17:44:20]Read from MH i2c: F0 09 00 19 03 00 F5 A2 43 66 FC 21 6F 64 44 [17:44:20]GetLastDocTimeStamp 1715708193 [17:44:20]current date 1715708661 [17:44:20]FM_GetShiftState [17:44:20]SAM_PROTO_GetShiftState [17:44:20]wFMCommunicate request_size=4 [17:44:20]MH_SAM_APDU [17:44:20]CAPDU: 80 13 01 00 [17:44:20]Write to MH i2c: E2 08 00 1A 03 80 13 01 00 00 00 00 00 9A [17:44:20]Write i2c OK [17:44:20]MH_I2C_Read... [17:44:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:20]Read from MH i2c: E2 [17:44:20]MH_I2C_Read... [17:44:20]Read from MH i2c: E2 0E 00 [17:44:20]MH_I2C_Read... [17:44:20]Read from MH i2c: E2 0E 00 1A 03 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 62 [17:44:20]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:44:20]wFMCommunicate OK [17:44:20]SAM_PROTO_GetShiftState done [17:44:20]FM_GetShiftState done [17:44:20]opened in 1715646054 [17:44:20]opened+sec_in_day 1715732454 [17:44:20]quantity*price = 100066 [17:44:20]sum+1 = 100067 [17:44:20]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 СНО: Общий режим Чек 123 14.05.2024 17:44 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67116 ФПД: 201634772329207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T174421&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67116&fm=201634772329207&tin=02508201610067®Number=0000000000091845&sum=100000 [17:44:22]StoreToDocumentArchive [17:44:22]shift 355 fd 67116 [17:44:22]save to /storage/0355/doc_00067116 [17:44:22]save last doc name /storage/0355/doc_00067116 to /storage/kkm_last_doc_name [17:44:22]save OK [17:44:22]Clear old archive folders... [17:44:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:44:22]tlvbuf is 003B7DA0 [17:44:22]SAM_PROTO_ClearQueue [17:44:22]wFMCommunicate request_size=4 [17:44:22]MH_SAM_APDU [17:44:22]CAPDU: 80 09 00 00 [17:44:22]Write to MH i2c: E2 08 00 27 03 80 09 00 00 00 00 00 00 9C [17:44:22]Write i2c OK [17:44:22]MH_I2C_Read... [17:44:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:22]Read from MH i2c: E2 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 03 00 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 03 00 27 03 00 90 00 9E [17:44:22]RAPDU: 90 00 [17:44:22]wFMCommunicate OK [17:44:22]SAM_PROTO_ClearQueue done [17:44:22]KKMCreateOFDPacket [17:44:22]OFDProtocolAddRootSTLVToBuf [17:44:22]FM_MakeSignedData [17:44:22]FM_MakeSignedData [17:44:22]SAM_PROTO_SignData [17:44:22]wFMCommunicate request_size=4 [17:44:22]MH_SAM_APDU [17:44:22]CAPDU: 80 0D 01 02 [17:44:22]Write to MH i2c: E2 08 00 28 03 80 0D 01 02 00 00 00 00 A4 [17:44:22]Write i2c OK [17:44:22]MH_I2C_Read... [17:44:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:44:22]Read from MH i2c: E2 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 03 00 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 03 00 28 03 00 90 00 9F [17:44:22]RAPDU: 90 00 [17:44:22]wFMCommunicate OK [17:44:22]wFMCommunicate request_size=255 [17:44:22]MH_SAM_APDU [17:44:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7B 00 00 00 F4 03 04 00 F5 A2 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 B7 [17:44:22]Write to MH i2c: E2 02 01 29 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 7B 00 00 00 F4 03 04 00 F5 A2 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 B7 00 00 86 [17:44:22]Write i2c OK [17:44:22]MH_I2C_Read... [17:44:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:22]Read from MH i2c: E2 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 03 00 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 03 00 29 03 00 90 00 A0 [17:44:22]RAPDU: 90 00 [17:44:22]wFMCommunicate OK [17:44:22]wFMCommunicate request_size=10 [17:44:22]MH_SAM_APDU [17:44:22]CAPDU: 80 0D 02 02 05 62 C0 FA A2 F7 [17:44:22]Write to MH i2c: E2 0D 00 2A 03 80 0D 02 02 05 00 62 C0 FA A2 F7 00 00 66 [17:44:22]Write i2c OK [17:44:22]MH_I2C_Read... [17:44:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:22]Read from MH i2c: E2 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 03 00 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 03 00 2A 03 00 90 00 A1 [17:44:22]RAPDU: 90 00 [17:44:22]wFMCommunicate OK [17:44:22]wFMCommunicate request_size=4 [17:44:22]MH_SAM_APDU [17:44:22]CAPDU: 80 0D 03 02 [17:44:22]Write to MH i2c: E2 08 00 2B 03 80 0D 03 02 00 00 00 00 A9 [17:44:22]Write i2c OK [17:44:22]MH_I2C_Read... [17:44:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:22]Read from MH i2c: E2 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 0B 00 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 0B 00 2B 03 00 92 78 67 81 49 6E F7 03 90 00 4D [17:44:22]RAPDU: 92 78 67 81 49 6E F7 03 90 00 [17:44:22]wFMCommunicate OK [17:44:22]SAM_PROTO_SignData done [17:44:22]FM_MakeSignedData done [17:44:22]CreateOFDProtocolMessage [17:44:22]wFMCommunicate request_size=4 [17:44:22]MH_SAM_APDU [17:44:22]CAPDU: 80 11 00 00 [17:44:22]Write to MH i2c: E2 08 00 2C 03 80 11 00 00 00 00 00 00 A9 [17:44:22]Write i2c OK [17:44:22]MH_I2C_Read... [17:44:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:22]Read from MH i2c: E2 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 17 00 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: E2 17 00 2C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FF [17:44: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:44:22]wFMCommunicate OK [17:44:22]CreateOFDProtocolMessage done [17:44:22]OFDSenderStorePacket 67116 [17:44:22]StoreOFDPacket docnum=67116 [17:44: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 5C 83 07 01 C4 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 7B 00 00 00 F4 03 04 00 F5 A2 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 B7 62 C0 FA A2 F7 92 78 67 81 49 6E F7 03 [17:44:22]CheckFolder [17:44:22]dirname=/storage/ofd_packets [17:44:22]CheckFolder done [17:44:22]ProducePacketName [17:44:22]name=ofd_packets/00067116 [17:44:22]NVStorageSaveData ofd_packets/00067116 [17:44:22]File name is /storage/ofd_packets/00067116 [17:44:22]Write 301 bytes [17:44:22]NVStorageSaveData done [17:44:22]OFDSenderStorePacket done [17:44:22]KKMCreateOFDPacket done [17:44:22]NVStorageSaveData kkm_last_timestamp [17:44:22]File name is /storage/kkm_last_timestamp [17:44:22]Write 4 bytes [17:44:22]NVStorageSaveData done [17:44:22]ExternCall_PrintAddStr [17:44:22]wPrintStart [17:44:22]Write to MH i2c: 01 00 00 2D 03 30 [17:44:22]Write i2c OK [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: 01 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: 01 07 00 [17:44:22]MH_I2C_Read... [17:44:22]Read from MH i2c: 01 07 00 2D 03 00 00 00 00 00 FF 0F 45 [17:44:22]RasterBufferAndPrint [17:44:22]line Счет N : (1)507008 [17:44:22]line ИНН: 02508201610067 [17:44:22]line Контрольно-Кассовый Чек [17:44:22]line ПРОДАЖА [17:44:22]line ТРК (МРК, ГНК) : 33 [17:44:22]line Товар: 2710124130 [17:44:22]line Аи-92-К-5 [17:44:22]line 14.980 * 66.80 [17:44:22]line = 1000.66 [17:44:22]line НДС 12% НСП 1% [17:44:22]line > о реализуемом товаре [17:44:22]line ОКРУГЛЕНИЕ: -0.66 [17:44:22]line ИТОГО: 1000.00 [17:44:22]line Внесено: 1000.00 [17:44:22]line СДАЧА: 0.00 [17:44:22]line НСП 1% : 8.85 [17:44:22]line НДС 12% : 106.26 [17:44:22]line Наличными: 1000.00 [17:44:22]line Безнал.: 0.00 [17:44:22]line Место: АЗС № 91 "Партнер Нефть" [17:44:22]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:44:22]line СНО: Общий режим [17:44:22]line Чек 123 14.05.2024 17:44 [17:44:22]line Смена: 355 ФФД: 1.0 [17:44:22]line ЗНМ: 0300000119 [17:44:22]line РНМ: 0000000000091845 [17:44:22]line Версия ККМ: 001 [17:44:22]line ФМ: 0000000000871829 [17:44:22]line ФД: 67116 [17:44:22]line ФПД: 201634772329207 [17:44:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T174421&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67116&fm=201634772329207&tin=02508201610067®Number=0000000000091845&sum=100000 [17:44:22]OFD Sender: Processing packet 67116 [packets to send 35, broken 34] [17:44:22]ProducePacketName [17:44:22]name=ofd_packets/00067116 [17:44:22]OFD Sender: To server: pG, [17:44:22]CommunicateWithHost lk.salyk.kg:30040 [17:44:22]ConnectInit lk.salyk.kg [17:44:22]written 0, free lines is 4095 [17:44:23]Connected sock=10 [17:44:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 5C 83 07 01 C4 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 7B 00 00 00 F4 03 04 00 F5 A2 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 B7 62 C0 FA A2 F7 92 78 67 81 49 6E F7 03 [17:44: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 43 B8 47 00 DE 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 2C 06 01 00 F4 03 04 00 D4 4A 43 66 B6 04 01 00 00 44 44 04 01 A9 D8 0F 2A [17:44:23]CommunicateWithHost err = 0 [17:44:23]CheckOFDResponse [17:44:23]1017 (14) - 77093643461234 [17:44:23]1041 (16) - 0000000000871829 [17:44:23]1040 (4) - 67116 [17:44:23]1012 (4) - 14.05.2024 11:28 [17:44:23]1206 (1) - 0 [17:44:23]OFD Sender: Remove packet 67116 [17:44:23]ProducePacketName [17:44:23]name=ofd_packets/00067116 [17:44:23]NVStorageDeleteData [17:44:23]Write to MH i2c: 01 00 00 57 03 5A [17:44:23]Write i2c OK [17:44:23]MH_I2C_Read... [17:44:23]Read from MH i2c: 01 [17:44:23]MH_I2C_Read... [17:44:23]Read from MH i2c: 01 07 00 [17:44:23]MH_I2C_Read... [17:44:23]Read from MH i2c: 01 07 00 57 03 00 00 00 00 00 CC 0C 39 [17:44:23]RasterBufferAndPrint [17:44:23]line [17:44:23]line [17:44:23]line [17:44:23]line [17:44:23]line [17:44:23]written 0, free lines is 3282 [17:44:23]MH_Cut [17:44:23]Write to MH i2c: D1 01 00 5E 03 01 33 [17:44:23]Write i2c OK [17:44:23]MH_I2C_Read... [17:44:23]Read from MH i2c: D1 [17:44:23]MH_I2C_Read... [17:44:23]Read from MH i2c: D1 01 00 [17:44:23]MH_I2C_Read... [17:44:23]Read from MH i2c: D1 01 00 5E 03 00 32 [17:44:23]Write to MH i2c: 01 00 00 5F 03 62 [17:44:23]Write i2c OK [17:44:23]MH_I2C_Read... [17:44:23]OFD Sender: No OFD packet to send [17:44:24]*** Cut start [17:44:24]*** Purtial cut [17:44:24]*** CUTSNS_PIN = 0 [17:44:24]*** Stage 1: CUTSNS_PIN = 1 [17:44:26]Read from MH i2c: 01 [17:44:26]MH_I2C_Read... [17:44:26]*** Stop cut motor [17:44:26]*** Cut end [17:44:26]Read from MH i2c: 01 07 00 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: 01 07 00 5F 03 00 00 00 00 00 FF 0F 77 [17:44:26]process_action close_receipt done [17:44:26]requested_data is exist [17:44:26]produce_requested_data [17:44:26]requested_item fm.sn is exist - process it [17:44:26]wFMCommunicate request_size=4 [17:44:26]MH_SAM_APDU [17:44:26]CAPDU: 80 11 00 00 [17:44:26]Write to MH i2c: E2 08 00 60 03 80 11 00 00 00 00 00 00 DD [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:26]Read from MH i2c: E2 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 17 00 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 17 00 60 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 33 [17:44: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:44:26]wFMCommunicate OK [17:44:26]requested_item fd.num is exist - process it [17:44:26]SAM_PROTO_GetFieldsCounters [17:44:26]wFMCommunicate request_size=4 [17:44:26]MH_SAM_APDU [17:44:26]CAPDU: 80 13 00 00 [17:44:26]Write to MH i2c: E2 08 00 61 03 80 13 00 00 00 00 00 00 E0 [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:26]Read from MH i2c: E2 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 62 00 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 62 00 61 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 2C 06 01 00 0E 04 04 00 63 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 0E [17:44: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 2C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:44:26]wFMCommunicate OK [17:44:26]SAM_PROTO_GetFieldsCounters done [17:44:26]requested_item shift.num is exist - process it [17:44:26]requested_item shift.opened is exist - process it [17:44:26]req_shift_opened [17:44:26]FM_GetShiftState [17:44:26]SAM_PROTO_GetShiftState [17:44:26]wFMCommunicate request_size=4 [17:44:26]MH_SAM_APDU [17:44:26]CAPDU: 80 13 01 00 [17:44:26]Write to MH i2c: E2 08 00 62 03 80 13 01 00 00 00 00 00 E2 [17:44:26]Write i2c OK [17:44:26]MH_I2C_Read... [17:44:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:26]Read from MH i2c: E2 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 0E 00 [17:44:26]MH_I2C_Read... [17:44:26]Read from MH i2c: E2 0E 00 62 03 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 AA [17:44:26]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:44:26]wFMCommunicate OK [17:44:26]SAM_PROTO_GetShiftState done [17:44:26]FM_GetShiftState done [17:44:26]req_shift_opened done [17:44:26]requested_item shift.open_date is exist - process it [17:44:26]req_shift_open_date [17:44:26]req_shift_open_date done [17:44:26]produce_requested_data done [17:44:26]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67116,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [17:44:26]process_action_free close_receipt [17:44:26]json_value_free [17:44:26]json_value_free done [17:44:26]process_json_proto returns [17:44:26]Send response to host [17:44:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67116,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [17:44:26]free response buf [17:44:26]execute_script done [17:44:26]execute_script returns [17:44:26]free content buf [17:44:26]Sock 7.Close socket [17:44:26]Sock 7.Thread stoped [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:38]OFD Sender: No OFD packet to send [17:45:43]OFD Sender: No OFD packet to send [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [17:46:13]accept exits with 9 [17:46:13]New connection [17:46:13]New thread 3066731876 created [17:46:13]Thread 3066588516 joined [17:46:13]Waiting for new connection... [17:46:13] Sock 9.Parse request [17:46:13]Sock 9.Check first char [17:46:13]Sock 9.First char is OK [17:46:13]request: POST /json_proto HTTP/1.0 [17:46:13]Method: POST [17:46:13]URL: /json_proto [17:46:13]Method is POST - this is cgi request [17:46:13]url: /json_proto [17:46:13]query_string will be loaded in cgi processing [17:46:13]execute_cgi json_proto POST (null) [17:46:13]execute_cgi path=json_proto method=POST [17:46:13]POST find Content-Length [17:46:13]Host: 172.17.41.195:8080 [17:46:13]Content-Length: 819 [17:46:13]Content-Type: application/json [17:46:13] [17:46:13]POST finish read [17:46:13]Found Content-Length = 819 [17:46:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507009", "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" : 35.020, "sum" : 2339.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2339.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:13]execute_script... [17:46:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507009", "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" : 35.020, "sum" : 2339.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2339.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:13]POST & json_proto [17:46:13]process_json_proto [17:46:13]json parsed OK: [17:46:13]protocol is kg_v1.0 [17:46:13]action value=close_receipt [17:46:13]process_action close_receipt [17:46:13]cmd_close_receipt [17:46:13]MH_GetDate [17:46:13]Write to MH i2c: F0 00 00 63 03 55 [17:46:13]Write i2c OK [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: F0 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: F0 09 00 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: F0 09 00 63 03 00 65 A3 43 66 FC 21 6F 64 FF [17:46:13]GetLastDocTimeStamp 1715708661 [17:46:13]current date 1715708773 [17:46:13]FM_GetShiftState [17:46:13]SAM_PROTO_GetShiftState [17:46:13]wFMCommunicate request_size=4 [17:46:13]MH_SAM_APDU [17:46:13]CAPDU: 80 13 01 00 [17:46:13]Write to MH i2c: E2 08 00 64 03 80 13 01 00 00 00 00 00 E4 [17:46:13]Write i2c OK [17:46:13]MH_I2C_Read... [17:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:13]Read from MH i2c: E2 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 0E 00 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 0E 00 64 03 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 AC [17:46:13]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:46:13]wFMCommunicate OK [17:46:13]SAM_PROTO_GetShiftState done [17:46:13]FM_GetShiftState done [17:46:13]opened in 1715646054 [17:46:13]opened+sec_in_day 1715732454 [17:46:13]quantity*price = 233933 [17:46:13]sum+1 = 233935 [17:46:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2339.34 НСП 1% : 20.70 НДС 12% : 248.42 Наличными: 0.00 Безнал.: 2339.34 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 124 14.05.2024 17:46 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67117 ФПД: 73946332634149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T174613&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67117&fm=73946332634149&tin=02508201610067®Number=0000000000091845&sum=233934 [17:46:14]StoreToDocumentArchive [17:46:14]shift 355 fd 67117 [17:46:14]save to /storage/0355/doc_00067117 [17:46:14]save last doc name /storage/0355/doc_00067117 to /storage/kkm_last_doc_name [17:46:14]save OK [17:46:14]Clear old archive folders... [17:46:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:14]tlvbuf is 003C1AA0 [17:46:14]SAM_PROTO_ClearQueue [17:46:14]wFMCommunicate request_size=4 [17:46:14]MH_SAM_APDU [17:46:14]CAPDU: 80 09 00 00 [17:46:14]Write to MH i2c: E2 08 00 71 03 80 09 00 00 00 00 00 00 E6 [17:46:14]Write i2c OK [17:46:14]MH_I2C_Read... [17:46:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:14]Read from MH i2c: E2 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 03 00 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 03 00 71 03 00 90 00 E8 [17:46:14]RAPDU: 90 00 [17:46:14]wFMCommunicate OK [17:46:14]SAM_PROTO_ClearQueue done [17:46:14]KKMCreateOFDPacket [17:46:14]OFDProtocolAddRootSTLVToBuf [17:46:14]FM_MakeSignedData [17:46:14]FM_MakeSignedData [17:46:14]SAM_PROTO_SignData [17:46:14]wFMCommunicate request_size=4 [17:46:14]MH_SAM_APDU [17:46:14]CAPDU: 80 0D 01 02 [17:46:14]Write to MH i2c: E2 08 00 72 03 80 0D 01 02 00 00 00 00 EE [17:46:14]Write i2c OK [17:46:14]MH_I2C_Read... [17:46:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:14]Read from MH i2c: E2 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 03 00 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 03 00 72 03 00 90 00 E9 [17:46:14]RAPDU: 90 00 [17:46:14]wFMCommunicate OK [17:46:14]wFMCommunicate request_size=255 [17:46:14]MH_SAM_APDU [17:46:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 88 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 CE 91 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CE 91 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 61 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CE 91 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 65 A3 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 43 [17:46:14]Write to MH i2c: E2 02 01 73 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 CC 88 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 CE 91 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CE 91 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 61 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CE 91 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 65 A3 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 43 00 00 3A [17:46:14]Write i2c OK [17:46:14]MH_I2C_Read... [17:46:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:14]Read from MH i2c: E2 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 03 00 [17:46:14]MH_I2C_Read... [17:46:14]Read from MH i2c: E2 03 00 73 03 00 90 00 EA [17:46:14]RAPDU: 90 00 [17:46:14]wFMCommunicate OK [17:46:14]wFMCommunicate request_size=10 [17:46:14]MH_SAM_APDU [17:46:14]CAPDU: 80 0D 02 02 05 40 F8 E3 9C 25 [17:46:14]Write to MH i2c: E2 0D 00 74 03 80 0D 02 02 05 00 40 F8 E3 9C 25 00 00 D7 [17:46:14]Write i2c OK [17:46:14]MH_I2C_Read... [17:46:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:15]Read from MH i2c: E2 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: E2 03 00 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: E2 03 00 74 03 00 90 00 EB [17:46:15]RAPDU: 90 00 [17:46:15]wFMCommunicate OK [17:46:15]wFMCommunicate request_size=4 [17:46:15]MH_SAM_APDU [17:46:15]CAPDU: 80 0D 03 02 [17:46:15]Write to MH i2c: E2 08 00 75 03 80 0D 03 02 00 00 00 00 F3 [17:46:15]Write i2c OK [17:46:15]MH_I2C_Read... [17:46:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:15]Read from MH i2c: E2 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: E2 0B 00 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: E2 0B 00 75 03 00 E4 4C 43 14 74 E0 52 CD 90 00 EE [17:46:15]RAPDU: E4 4C 43 14 74 E0 52 CD 90 00 [17:46:15]wFMCommunicate OK [17:46:15]SAM_PROTO_SignData done [17:46:15]FM_MakeSignedData done [17:46:15]CreateOFDProtocolMessage [17:46:15]wFMCommunicate request_size=4 [17:46:15]MH_SAM_APDU [17:46:15]CAPDU: 80 11 00 00 [17:46:15]Write to MH i2c: E2 08 00 76 03 80 11 00 00 00 00 00 00 F3 [17:46:15]Write i2c OK [17:46:15]MH_I2C_Read... [17:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:15]Read from MH i2c: E2 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: E2 17 00 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: E2 17 00 76 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 49 [17:46: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:46:15]wFMCommunicate OK [17:46:15]CreateOFDProtocolMessage done [17:46:15]OFDSenderStorePacket 67117 [17:46:15]StoreOFDPacket docnum=67117 [17:46: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 69 F8 07 01 F8 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 88 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 CE 91 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CE 91 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 61 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CE 91 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 65 A3 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 43 40 F8 E3 9C 25 E4 4C 43 14 74 E0 52 CD [17:46:15]CheckFolder [17:46:15]dirname=/storage/ofd_packets [17:46:15]CheckFolder done [17:46:15]ProducePacketName [17:46:15]name=ofd_packets/00067117 [17:46:15]NVStorageSaveData ofd_packets/00067117 [17:46:15]File name is /storage/ofd_packets/00067117 [17:46:15]Write 301 bytes [17:46:15]NVStorageSaveData done [17:46:15]OFDSenderStorePacket done [17:46:15]KKMCreateOFDPacket done [17:46:15]NVStorageSaveData kkm_last_timestamp [17:46:15]File name is /storage/kkm_last_timestamp [17:46:15]Write 4 bytes [17:46:15]NVStorageSaveData done [17:46:15]ExternCall_PrintAddStr [17:46:15]wPrintStart [17:46:15]Write to MH i2c: 01 00 00 77 03 7A [17:46:15]Write i2c OK [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: 01 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: 01 07 00 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: 01 07 00 77 03 00 00 00 00 00 FF 0F 8F [17:46:15]RasterBufferAndPrint [17:46:15]line Счет N : (1)507009 [17:46:15]line ИНН: 02508201610067 [17:46:15]line Контрольно-Кассовый Чек [17:46:15]line ПРОДАЖА [17:46:15]line ТРК (МРК, ГНК) : 43 [17:46:15]line Товар: 2710124130 [17:46:15]line Аи-92-К-5 [17:46:15]line 35.020 * 66.80 [17:46:15]line = 2339.34 [17:46:15]line НДС 12% НСП 1% [17:46:15]line > о реализуемом товаре [17:46:15]line ИТОГО: 2339.34 [17:46:15]line НСП 1% : 20.70 [17:46:15]line НДС 12% : 248.42 [17:46:15]line Наличными: 0.00 [17:46:15]line Безнал.: 2339.34 [17:46:15]line Место: АЗС № 91 "Партнер Нефть" [17:46:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:46:15]line СНО: Общий режим [17:46:15]line Чек 124 14.05.2024 17:46 [17:46:15]line Смена: 355 ФФД: 1.0 [17:46:15]line ЗНМ: 0300000119 [17:46:15]line РНМ: 0000000000091845 [17:46:15]line Версия ККМ: 001 [17:46:15]line Платежная система: Бакай Банк [17:46:15]line ФМ: 0000000000871829 [17:46:15]line ФД: 67117 [17:46:15]line ФПД: 73946332634149 [17:46:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T174613&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67117&fm=73946332634149&tin=02508201610067®Number=0000000000091845&sum=233934 [17:46:15]OFD Sender: Processing packet 67117 [packets to send 35, broken 34] [17:46:15]ProducePacketName [17:46:15]name=ofd_packets/00067117 [17:46:15]OFD Sender: To server: pG, [17:46:15]CommunicateWithHost lk.salyk.kg:30040 [17:46:15]ConnectInit lk.salyk.kg [17:46:15]written 0, free lines is 4095 [17:46:15]Connected sock=10 [17:46:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 69 F8 07 01 F8 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 88 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 CE 91 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CE 91 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 61 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CE 91 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 65 A3 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 43 40 F8 E3 9C 25 E4 4C 43 14 74 E0 52 CD [17:46:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 28 EF 47 00 B3 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 2D 06 01 00 F4 03 04 00 45 4B 43 66 B6 04 01 00 00 8C 5C B9 C8 CC 17 75 E5 [17:46:15]CommunicateWithHost err = 0 [17:46:15]CheckOFDResponse [17:46:15]1017 (14) - 77093643461234 [17:46:15]1041 (16) - 0000000000871829 [17:46:15]1040 (4) - 67117 [17:46:15]1012 (4) - 14.05.2024 11:30 [17:46:15]1206 (1) - 0 [17:46:15]OFD Sender: Remove packet 67117 [17:46:15]ProducePacketName [17:46:15]name=ofd_packets/00067117 [17:46:15]NVStorageDeleteData [17:46:15]Write to MH i2c: 01 00 00 A0 03 A3 [17:46:15]Write i2c OK [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: 01 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: 01 07 00 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: 01 07 00 A0 03 00 00 00 00 00 F1 0C A7 [17:46:15]RasterBufferAndPrint [17:46:15]line [17:46:15]line [17:46:15]line [17:46:15]line [17:46:15]line [17:46:15]written 0, free lines is 3319 [17:46:15]MH_Cut [17:46:15]Write to MH i2c: D1 01 00 A7 03 01 7C [17:46:15]Write i2c OK [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: D1 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: D1 01 00 [17:46:15]MH_I2C_Read... [17:46:15]Read from MH i2c: D1 01 00 A7 03 00 7B [17:46:15]Write to MH i2c: 01 00 00 A8 03 AB [17:46:15]Write i2c OK [17:46:15]MH_I2C_Read... [17:46:16]OFD Sender: No OFD packet to send [17:46:16]*** Cut start [17:46:16]*** Purtial cut [17:46:16]*** Stage 1: CUTSNS_PIN = 1 [17:46:16]Read from MH i2c: 01 [17:46:17]MH_I2C_Read... [17:46:17]*** Stop cut motor [17:46:17]*** Cut end [17:46:17]Read from MH i2c: 01 07 00 [17:46:17]MH_I2C_Read... [17:46:17]Read from MH i2c: 01 07 00 A8 03 00 00 00 00 00 FF 0F C0 [17:46:17]process_action close_receipt done [17:46:17]requested_data is exist [17:46:17]produce_requested_data [17:46:17]requested_item fm.sn is exist - process it [17:46:17]wFMCommunicate request_size=4 [17:46:17]MH_SAM_APDU [17:46:17]CAPDU: 80 11 00 00 [17:46:17]Write to MH i2c: E2 08 00 A9 03 80 11 00 00 00 00 00 00 26 [17:46:17]Write i2c OK [17:46:17]MH_I2C_Read... [17:46:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:17]Read from MH i2c: E2 [17:46:17]MH_I2C_Read... [17:46:17]Read from MH i2c: E2 17 00 [17:46:17]MH_I2C_Read... [17:46:17]Read from MH i2c: E2 17 00 A9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7C [17:46: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:46:17]wFMCommunicate OK [17:46:17]requested_item fd.num is exist - process it [17:46:17]SAM_PROTO_GetFieldsCounters [17:46:17]wFMCommunicate request_size=4 [17:46:17]MH_SAM_APDU [17:46:17]CAPDU: 80 13 00 00 [17:46:17]Write to MH i2c: E2 08 00 AA 03 80 13 00 00 00 00 00 00 29 [17:46:17]Write i2c OK [17:46:17]MH_I2C_Read... [17:46:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:17]Read from MH i2c: E2 [17:46:17]MH_I2C_Read... [17:46:17]Read from MH i2c: E2 62 00 [17:46:17]MH_I2C_Read... [17:46:17]Read from MH i2c: E2 62 00 AA 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 2D 06 01 00 0E 04 04 00 63 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 5B [17:46: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 2D 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:17]wFMCommunicate OK [17:46:17]SAM_PROTO_GetFieldsCounters done [17:46:17]requested_item shift.num is exist - process it [17:46:17]requested_item shift.opened is exist - process it [17:46:17]req_shift_opened [17:46:17]FM_GetShiftState [17:46:17]SAM_PROTO_GetShiftState [17:46:17]wFMCommunicate request_size=4 [17:46:17]MH_SAM_APDU [17:46:17]CAPDU: 80 13 01 00 [17:46:17]Write to MH i2c: E2 08 00 AB 03 80 13 01 00 00 00 00 00 2B [17:46:17]Write i2c OK [17:46:17]MH_I2C_Read... [17:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:17]Read from MH i2c: E2 [17:46:17]MH_I2C_Read... [17:46:17]Read from MH i2c: E2 0E 00 [17:46:17]MH_I2C_Read... [17:46:17]Read from MH i2c: E2 0E 00 AB 03 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F3 [17:46:17]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:46:17]wFMCommunicate OK [17:46:17]SAM_PROTO_GetShiftState done [17:46:17]FM_GetShiftState done [17:46:17]req_shift_opened done [17:46:17]requested_item shift.open_date is exist - process it [17:46:17]req_shift_open_date [17:46:17]req_shift_open_date done [17:46:17]produce_requested_data done [17:46:17]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67117,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [17:46:17]process_action_free close_receipt [17:46:17]json_value_free [17:46:17]json_value_free done [17:46:17]process_json_proto returns [17:46:17]Send response to host [17:46:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67117,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [17:46:17]free response buf [17:46:17]execute_script done [17:46:17]execute_script returns [17:46:17]free content buf [17:46:17]Sock 9.Close socket [17:46:17]Sock 9.Thread stoped [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:41]accept exits with 7 [17:46:41]New connection [17:46:41]New thread 3066588516 created [17:46:41]Thread 3066731876 joined [17:46:41]Waiting for new connection... [17:46:41] Sock 7.Parse request [17:46:41]Sock 7.Check first char [17:46:41]Sock 7.First char is OK [17:46:41]request: POST /json_proto HTTP/1.0 [17:46:41]Method: POST [17:46:41]URL: /json_proto [17:46:41]Method is POST - this is cgi request [17:46:41]url: /json_proto [17:46:41]query_string will be loaded in cgi processing [17:46:41]execute_cgi json_proto POST (null) [17:46:41]execute_cgi path=json_proto method=POST [17:46:41]POST find Content-Length [17:46:41]Host: 172.17.41.195:8080 [17:46:41]Content-Length: 675 [17:46:41]Content-Type: application/json [17:46:41] [17:46:41]POST finish read [17:46:41]Found Content-Length = 675 [17:46:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:41]execute_script... [17:46: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)507010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:41]POST & json_proto [17:46:41]process_json_proto [17:46:41]json parsed OK: [17:46:41]protocol is kg_v1.0 [17:46:41]action value=close_receipt [17:46:41]process_action close_receipt [17:46:41]cmd_close_receipt [17:46:41]MH_GetDate [17:46:41]Write to MH i2c: F0 00 00 AC 03 9E [17:46:41]Write i2c OK [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: F0 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: F0 09 00 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: F0 09 00 AC 03 00 81 A3 43 66 FC 21 6F 64 64 [17:46:41]GetLastDocTimeStamp 1715708773 [17:46:41]current date 1715708801 [17:46:41]FM_GetShiftState [17:46:41]SAM_PROTO_GetShiftState [17:46:41]wFMCommunicate request_size=4 [17:46:41]MH_SAM_APDU [17:46:41]CAPDU: 80 13 01 00 [17:46:41]Write to MH i2c: E2 08 00 AD 03 80 13 01 00 00 00 00 00 2D [17:46:41]Write i2c OK [17:46:41]MH_I2C_Read... [17:46:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:41]Read from MH i2c: E2 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: E2 0E 00 [17:46:41]MH_I2C_Read... [17:46:41]Read from MH i2c: E2 0E 00 AD 03 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F5 [17:46:41]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:46:41]wFMCommunicate OK [17:46:41]SAM_PROTO_GetShiftState done [17:46:41]FM_GetShiftState done [17:46:41]opened in 1715646054 [17:46:41]opened+sec_in_day 1715732454 [17:46:41]quantity*price = 100005 [17:46:41]sum+1 = 100006 [17:46:41]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 СНО: Общий режим Чек 125 14.05.2024 17:46 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67118 ФПД: 90550979298181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T174641&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67118&fm=90550979298181&tin=02508201610067®Number=0000000000091845&sum=100000 [17:46:42]StoreToDocumentArchive [17:46:42]shift 355 fd 67118 [17:46:42]save to /storage/0355/doc_00067118 [17:46:42]save last doc name /storage/0355/doc_00067118 to /storage/kkm_last_doc_name [17:46:42]save OK [17:46:42]Clear old archive folders... [17:46:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:46:42]tlvbuf is 003C3680 [17:46:42]SAM_PROTO_ClearQueue [17:46:42]wFMCommunicate request_size=4 [17:46:42]MH_SAM_APDU [17:46:42]CAPDU: 80 09 00 00 [17:46:42]Write to MH i2c: E2 08 00 BA 03 80 09 00 00 00 00 00 00 2F [17:46:42]Write i2c OK [17:46:42]MH_I2C_Read... [17:46:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:42]Read from MH i2c: E2 [17:46:42]MH_I2C_Read... [17:46:42]Read from MH i2c: E2 03 00 [17:46:42]MH_I2C_Read... [17:46:42]Read from MH i2c: E2 03 00 BA 03 00 90 00 31 [17:46:42]RAPDU: 90 00 [17:46:42]wFMCommunicate OK [17:46:42]SAM_PROTO_ClearQueue done [17:46:42]KKMCreateOFDPacket [17:46:42]OFDProtocolAddRootSTLVToBuf [17:46:42]FM_MakeSignedData [17:46:42]FM_MakeSignedData [17:46:42]SAM_PROTO_SignData [17:46:42]wFMCommunicate request_size=4 [17:46:42]MH_SAM_APDU [17:46:42]CAPDU: 80 0D 01 02 [17:46:42]Write to MH i2c: E2 08 00 BB 03 80 0D 01 02 00 00 00 00 37 [17:46:42]Write i2c OK [17:46:42]MH_I2C_Read... [17:46:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:42]Read from MH i2c: E2 [17:46:42]MH_I2C_Read... [17:46:42]Read from MH i2c: E2 03 00 [17:46:42]MH_I2C_Read... [17:46:42]Read from MH i2c: E2 03 00 BB 03 00 90 00 32 [17:46:42]RAPDU: 90 00 [17:46:42]wFMCommunicate OK [17:46:42]wFMCommunicate request_size=255 [17:46:42]MH_SAM_APDU [17:46:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7D 00 00 00 F4 03 04 00 81 A3 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 [17:46:42]Write to MH i2c: E2 02 01 BC 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7D 00 00 00 F4 03 04 00 81 A3 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 00 00 57 [17:46:42]Write i2c OK [17:46:42]MH_I2C_Read... [17:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:43]Read from MH i2c: E2 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 03 00 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 03 00 BC 03 00 90 00 33 [17:46:43]RAPDU: 90 00 [17:46:43]wFMCommunicate OK [17:46:43]wFMCommunicate request_size=11 [17:46:43]MH_SAM_APDU [17:46:43]CAPDU: 80 0D 02 02 06 52 5B 0A F4 83 85 [17:46:43]Write to MH i2c: E2 0E 00 BD 03 80 0D 02 02 06 00 52 5B 0A F4 83 85 00 00 F9 [17:46:43]Write i2c OK [17:46:43]MH_I2C_Read... [17:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:43]Read from MH i2c: E2 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 03 00 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 03 00 BD 03 00 90 00 34 [17:46:43]RAPDU: 90 00 [17:46:43]wFMCommunicate OK [17:46:43]wFMCommunicate request_size=4 [17:46:43]MH_SAM_APDU [17:46:43]CAPDU: 80 0D 03 02 [17:46:43]Write to MH i2c: E2 08 00 BE 03 80 0D 03 02 00 00 00 00 3C [17:46:43]Write i2c OK [17:46:43]MH_I2C_Read... [17:46:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:43]Read from MH i2c: E2 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 0B 00 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 0B 00 BE 03 00 26 69 FC 13 2D B8 9B 71 90 00 CC [17:46:43]RAPDU: 26 69 FC 13 2D B8 9B 71 90 00 [17:46:43]wFMCommunicate OK [17:46:43]SAM_PROTO_SignData done [17:46:43]FM_MakeSignedData done [17:46:43]CreateOFDProtocolMessage [17:46:43]wFMCommunicate request_size=4 [17:46:43]MH_SAM_APDU [17:46:43]CAPDU: 80 11 00 00 [17:46:43]Write to MH i2c: E2 08 00 BF 03 80 11 00 00 00 00 00 00 3C [17:46:43]Write i2c OK [17:46:43]MH_I2C_Read... [17:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:43]Read from MH i2c: E2 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 17 00 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: E2 17 00 BF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 92 [17:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:46:43]wFMCommunicate OK [17:46:43]CreateOFDProtocolMessage done [17:46:43]OFDSenderStorePacket 67118 [17:46:43]StoreOFDPacket docnum=67118 [17:46: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 20 40 08 01 7B 0B 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 7D 00 00 00 F4 03 04 00 81 A3 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 52 5B 0A F4 83 85 26 69 FC 13 2D B8 9B 71 [17:46:43]CheckFolder [17:46:43]dirname=/storage/ofd_packets [17:46:43]CheckFolder done [17:46:43]ProducePacketName [17:46:43]name=ofd_packets/00067118 [17:46:43]NVStorageSaveData ofd_packets/00067118 [17:46:43]File name is /storage/ofd_packets/00067118 [17:46:43]Write 302 bytes [17:46:43]NVStorageSaveData done [17:46:43]OFDSenderStorePacket done [17:46:43]KKMCreateOFDPacket done [17:46:43]NVStorageSaveData kkm_last_timestamp [17:46:43]File name is /storage/kkm_last_timestamp [17:46:43]Write 4 bytes [17:46:43]NVStorageSaveData done [17:46:43]ExternCall_PrintAddStr [17:46:43]wPrintStart [17:46:43]Write to MH i2c: 01 00 00 C0 03 C3 [17:46:43]Write i2c OK [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: 01 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: 01 07 00 [17:46:43]MH_I2C_Read... [17:46:43]Read from MH i2c: 01 07 00 C0 03 00 00 00 00 00 FF 0F D8 [17:46:43]RasterBufferAndPrint [17:46:43]line Счет N : (1)507010 [17:46:43]line ИНН: 02508201610067 [17:46:43]line Контрольно-Кассовый Чек [17:46:43]line ПРОДАЖА [17:46:43]line ТРК (МРК, ГНК) : 12 [17:46:43]line Товар: 2710124130 [17:46:43]line Super-92-К-5 [17:46:43]line 14.750 * 67.80 [17:46:43]line = 1000.05 [17:46:43]line НДС 12% НСП 1% [17:46:43]line > о реализуемом товаре [17:46:43]line ОКРУГЛЕНИЕ: -0.05 [17:46:43]line ИТОГО: 1000.00 [17:46:43]line Внесено: 1000.00 [17:46:43]line СДАЧА: 0.00 [17:46:43]line НСП 1% : 8.85 [17:46:43]line НДС 12% : 106.20 [17:46:43]line Наличными: 1000.00 [17:46:43]line Безнал.: 0.00 [17:46:43]line Место: АЗС № 91 "Партнер Нефть" [17:46:43]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:46:43]line СНО: Общий режим [17:46:43]line Чек 125 14.05.2024 17:46 [17:46:43]line Смена: 355 ФФД: 1.0 [17:46:43]line ЗНМ: 0300000119 [17:46:43]line РНМ: 0000000000091845 [17:46:43]line Версия ККМ: 001 [17:46:43]line ФМ: 0000000000871829 [17:46:43]line ФД: 67118 [17:46:43]line ФПД: 90550979298181 [17:46:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T174641&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67118&fm=90550979298181&tin=02508201610067®Number=0000000000091845&sum=100000 [17:46:43]written 0, free lines is 4095 [17:46:43]OFD Sender: Processing packet 67118 [packets to send 35, broken 34] [17:46:43]ProducePacketName [17:46:43]name=ofd_packets/00067118 [17:46:43]OFD Sender: To server: pG, [17:46:43]CommunicateWithHost lk.salyk.kg:30040 [17:46:43]ConnectInit lk.salyk.kg [17:46:43]Connected sock=10 [17:46: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 20 40 08 01 7B 0B 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 7D 00 00 00 F4 03 04 00 81 A3 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 52 5B 0A F4 83 85 26 69 FC 13 2D B8 9B 71 [17:46: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 E9 C9 47 00 0B 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 2E 06 01 00 F4 03 04 00 61 4B 43 66 B6 04 01 00 00 E6 55 9A BF 10 FE CC B8 [17:46:43]CommunicateWithHost err = 0 [17:46:43]CheckOFDResponse [17:46:43]1017 (14) - 77093643461234 [17:46:43]1041 (16) - 0000000000871829 [17:46:43]1040 (4) - 67118 [17:46:43]1012 (4) - 14.05.2024 11:30 [17:46:43]1206 (1) - 0 [17:46:43]OFD Sender: Remove packet 67118 [17:46:43]ProducePacketName [17:46:43]name=ofd_packets/00067118 [17:46:43]NVStorageDeleteData [17:46:44]Write to MH i2c: 01 00 00 EA 03 ED [17:46:44]Write i2c OK [17:46:44]MH_I2C_Read... [17:46:44]Read from MH i2c: 01 [17:46:44]MH_I2C_Read... [17:46:44]Read from MH i2c: 01 07 00 [17:46:44]MH_I2C_Read... [17:46:44]Read from MH i2c: 01 07 00 EA 03 00 00 00 00 00 D4 0C D4 [17:46:44]RasterBufferAndPrint [17:46:44]line [17:46:44]line [17:46:44]line [17:46:44]line [17:46:44]line [17:46:44]written 0, free lines is 3290 [17:46:44]MH_Cut [17:46:44]Write to MH i2c: D1 01 00 F1 03 01 C6 [17:46:44]Write i2c OK [17:46:44]MH_I2C_Read... [17:46:44]Read from MH i2c: D1 [17:46:44]MH_I2C_Read... [17:46:44]Read from MH i2c: D1 01 00 [17:46:44]MH_I2C_Read... [17:46:44]Read from MH i2c: D1 01 00 F1 03 00 C5 [17:46:44]Write to MH i2c: 01 00 00 F2 03 F5 [17:46:44]Write i2c OK [17:46:44]MH_I2C_Read... [17:46:44]OFD Sender: No OFD packet to send [17:46:44]*** Cut start [17:46:44]*** Purtial cut [17:46:44]*** CUTSNS_PIN = 0 [17:46:45]*** Stage 1: CUTSNS_PIN = 1 [17:46:46]Read from MH i2c: 01 [17:46:46]MH_I2C_Read... [17:46:46]*** Stop cut motor [17:46:46]*** Cut end [17:46:46]Read from MH i2c: 01 07 00 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: 01 07 00 F2 03 00 00 00 00 00 FF 0F 0A [17:46:46]process_action close_receipt done [17:46:46]requested_data is exist [17:46:46]produce_requested_data [17:46:46]requested_item fm.sn is exist - process it [17:46:46]wFMCommunicate request_size=4 [17:46:46]MH_SAM_APDU [17:46:46]CAPDU: 80 11 00 00 [17:46:46]Write to MH i2c: E2 08 00 F3 03 80 11 00 00 00 00 00 00 70 [17:46:46]Write i2c OK [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 [17:46:46]MH_I2C_Read... [17:46:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:46]Read from MH i2c: E2 17 00 [17:46:46]MH_I2C_Read... [17:46:46]Read from MH i2c: E2 17 00 F3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C6 [17:46: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:46:46]wFMCommunicate OK [17:46:46]requested_item fd.num is exist - process it [17:46:46]SAM_PROTO_GetFieldsCounters [17:46:46]wFMCommunicate request_size=4 [17:46:46]MH_SAM_APDU [17:46:46]CAPDU: 80 13 00 00 [17:46:46]Write to MH i2c: E2 08 00 F4 03 80 13 00 00 00 00 00 00 73 [17:46:46]Write i2c OK [17:46:46]MH_I2C_Read... [17:46:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:47]Read from MH i2c: E2 [17:46:47]MH_I2C_Read... [17:46:47]Read from MH i2c: E2 62 00 [17:46:47]MH_I2C_Read... [17:46:47]Read from MH i2c: E2 62 00 F4 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 2E 06 01 00 0E 04 04 00 63 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 A9 [17:46: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 2E 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:47]wFMCommunicate OK [17:46:47]SAM_PROTO_GetFieldsCounters done [17:46:47]requested_item shift.num is exist - process it [17:46:47]requested_item shift.opened is exist - process it [17:46:47]req_shift_opened [17:46:47]FM_GetShiftState [17:46:47]SAM_PROTO_GetShiftState [17:46:47]wFMCommunicate request_size=4 [17:46:47]MH_SAM_APDU [17:46:47]CAPDU: 80 13 01 00 [17:46:47]Write to MH i2c: E2 08 00 F5 03 80 13 01 00 00 00 00 00 75 [17:46:47]Write i2c OK [17:46:47]MH_I2C_Read... [17:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:47]Read from MH i2c: E2 [17:46:47]MH_I2C_Read... [17:46:47]Read from MH i2c: E2 0E 00 [17:46:47]MH_I2C_Read... [17:46:47]Read from MH i2c: E2 0E 00 F5 03 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 3D [17:46:47]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:46:47]wFMCommunicate OK [17:46:47]SAM_PROTO_GetShiftState done [17:46:47]FM_GetShiftState done [17:46:47]req_shift_opened done [17:46:47]requested_item shift.open_date is exist - process it [17:46:47]req_shift_open_date [17:46:47]req_shift_open_date done [17:46:47]produce_requested_data done [17:46:47]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67118,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [17:46:47]process_action_free close_receipt [17:46:47]json_value_free [17:46:47]json_value_free done [17:46:47]process_json_proto returns [17:46:47]Send response to host [17:46:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67118,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [17:46:47]free response buf [17:46:47]execute_script done [17:46:47]execute_script returns [17:46:47]free content buf [17:46:47]Sock 7.Close socket [17:46:47]Sock 7.Thread stoped [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:47:04]OFD Sender: No OFD packet to send [17:47:09]OFD Sender: No OFD packet to send [17:47:14]OFD Sender: No OFD packet to send [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:29]OFD Sender: No OFD packet to send [17:47:34]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:49]OFD Sender: No OFD packet to send [17:47:54]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:01]recv_with_timeout no data received [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]OFD Sender: No OFD packet to send [17:50:14]OFD Sender: No OFD packet to send [17:50:19]OFD Sender: No OFD packet to send [17:50:24]OFD Sender: No OFD packet to send [17:50:29]OFD Sender: No OFD packet to send [17:50:34]OFD Sender: No OFD packet to send [17:50:39]OFD Sender: No OFD packet to send [17:50:44]OFD Sender: No OFD packet to send [17:50:49]OFD Sender: No OFD packet to send [17:50:54]OFD Sender: No OFD packet to send [17:50:59]OFD Sender: No OFD packet to send [17:51:00]recv_with_timeout no data received [17:51:04]OFD Sender: No OFD packet to send [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [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:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:13]recv_with_timeout no data received [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]OFD Sender: No OFD packet to send [17:52:29]OFD Sender: No OFD packet to send [17:52:34]OFD Sender: No OFD packet to send [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:49]OFD Sender: No OFD packet to send [17:52:54]OFD Sender: No OFD packet to send [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [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:28]accept exits with 9 [17:54:28]New connection [17:54:28]New thread 3066731876 created [17:54:28]Thread 3066588516 joined [17:54:28]Waiting for new connection... [17:54:28] Sock 9.Parse request [17:54:28]Sock 9.Check first char [17:54:28]Sock 9.First char is OK [17:54:28]request: POST /json_proto HTTP/1.0 [17:54:28]Method: POST [17:54:28]URL: /json_proto [17:54:28]Method is POST - this is cgi request [17:54:28]url: /json_proto [17:54:28]query_string will be loaded in cgi processing [17:54:28]execute_cgi json_proto POST (null) [17:54:28]execute_cgi path=json_proto method=POST [17:54:28]POST find Content-Length [17:54:28]Host: 172.17.41.195:8080 [17:54:28]Content-Length: 800 [17:54:28]Content-Type: application/json [17:54:28] [17:54:28]POST finish read [17:54:28]Found Content-Length = 800 [17:54:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 53.550, "sum" : 4000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:28]execute_script... [17:54: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)507011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 53.550, "sum" : 4000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:28]POST & json_proto [17:54:28]process_json_proto [17:54:28]json parsed OK: [17:54:28]protocol is kg_v1.0 [17:54:28]action value=close_receipt [17:54:28]process_action close_receipt [17:54:28]cmd_close_receipt [17:54:28]MH_GetDate [17:54:28]Write to MH i2c: F0 00 00 F6 03 E8 [17:54:28]Write i2c OK [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: F0 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: F0 09 00 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: F0 09 00 F6 03 00 55 A5 43 66 FC 21 6F 64 84 [17:54:28]GetLastDocTimeStamp 1715708801 [17:54:28]current date 1715709269 [17:54:28]FM_GetShiftState [17:54:28]SAM_PROTO_GetShiftState [17:54:28]wFMCommunicate request_size=4 [17:54:28]MH_SAM_APDU [17:54:28]CAPDU: 80 13 01 00 [17:54:28]Write to MH i2c: E2 08 00 F7 03 80 13 01 00 00 00 00 00 77 [17:54:28]Write i2c OK [17:54:28]MH_I2C_Read... [17:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:28]Read from MH i2c: E2 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: E2 0E 00 [17:54:28]MH_I2C_Read... [17:54:28]Read from MH i2c: E2 0E 00 F7 03 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 3F [17:54:28]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:54:28]wFMCommunicate OK [17:54:28]SAM_PROTO_GetShiftState done [17:54:28]FM_GetShiftState done [17:54:28]opened in 1715646054 [17:54:28]opened+sec_in_day 1715732454 [17:54:28]quantity*price = 400018 [17:54:28]sum+1 = 400020 [17:54:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.19 НСП 1% : 35.40 НДС 12% : 424.80 Наличными: 0.00 Безнал.: 4000.19 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 126 14.05.2024 17:54 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67119 ФПД: 266284538198507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T175429&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67119&fm=266284538198507&tin=02508201610067®Number=0000000000091845&sum=400019 [17:54:29]StoreToDocumentArchive [17:54:29]shift 355 fd 67119 [17:54:29]save to /storage/0355/doc_00067119 [17:54:29]save last doc name /storage/0355/doc_00067119 to /storage/kkm_last_doc_name [17:54:29]save OK [17:54:29]Clear old archive folders... [17:54:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:54:29]tlvbuf is 00325550 [17:54:29]SAM_PROTO_ClearQueue [17:54:29]wFMCommunicate request_size=4 [17:54:29]MH_SAM_APDU [17:54:29]CAPDU: 80 09 00 00 [17:54:29]Write to MH i2c: E2 08 00 04 04 80 09 00 00 00 00 00 00 7A [17:54:29]Write i2c OK [17:54:29]MH_I2C_Read... [17:54:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:30]Read from MH i2c: E2 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 03 00 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 03 00 04 04 00 90 00 7C [17:54:30]RAPDU: 90 00 [17:54:30]wFMCommunicate OK [17:54:30]SAM_PROTO_ClearQueue done [17:54:30]KKMCreateOFDPacket [17:54:30]OFDProtocolAddRootSTLVToBuf [17:54:30]FM_MakeSignedData [17:54:30]FM_MakeSignedData [17:54:30]SAM_PROTO_SignData [17:54:30]wFMCommunicate request_size=4 [17:54:30]MH_SAM_APDU [17:54:30]CAPDU: 80 0D 01 02 [17:54:30]Write to MH i2c: E2 08 00 05 04 80 0D 01 02 00 00 00 00 82 [17:54:30]Write i2c OK [17:54:30]MH_I2C_Read... [17:54:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:30]Read from MH i2c: E2 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 03 00 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 03 00 05 04 00 90 00 7D [17:54:30]RAPDU: 90 00 [17:54:30]wFMCommunicate OK [17:54:30]wFMCommunicate request_size=255 [17:54:30]MH_SAM_APDU [17:54: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 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 7E 00 00 00 F4 03 04 00 55 A5 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F2 2F 33 4E [17:54:30]Write to MH i2c: E2 02 01 06 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 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 7E 00 00 00 F4 03 04 00 55 A5 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F2 2F 33 4E 00 00 1A [17:54:30]Write i2c OK [17:54:30]MH_I2C_Read... [17:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:30]Read from MH i2c: E2 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 03 00 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 03 00 06 04 00 90 00 7E [17:54:30]RAPDU: 90 00 [17:54:30]wFMCommunicate OK [17:54:30]wFMCommunicate request_size=7 [17:54:30]MH_SAM_APDU [17:54:30]CAPDU: 80 0D 02 02 02 F9 EB [17:54:30]Write to MH i2c: E2 0A 00 07 04 80 0D 02 02 02 00 F9 EB 00 00 6D [17:54:30]Write i2c OK [17:54:30]MH_I2C_Read... [17:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:30]Read from MH i2c: E2 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 03 00 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 03 00 07 04 00 90 00 7F [17:54:30]RAPDU: 90 00 [17:54:30]wFMCommunicate OK [17:54:30]wFMCommunicate request_size=4 [17:54:30]MH_SAM_APDU [17:54:30]CAPDU: 80 0D 03 02 [17:54:30]Write to MH i2c: E2 08 00 08 04 80 0D 03 02 00 00 00 00 87 [17:54:30]Write i2c OK [17:54:30]MH_I2C_Read... [17:54:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:30]Read from MH i2c: E2 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 0B 00 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 0B 00 08 04 00 7D 69 CA 37 0B 5F 7B B5 90 00 09 [17:54:30]RAPDU: 7D 69 CA 37 0B 5F 7B B5 90 00 [17:54:30]wFMCommunicate OK [17:54:30]SAM_PROTO_SignData done [17:54:30]FM_MakeSignedData done [17:54:30]CreateOFDProtocolMessage [17:54:30]wFMCommunicate request_size=4 [17:54:30]MH_SAM_APDU [17:54:30]CAPDU: 80 11 00 00 [17:54:30]Write to MH i2c: E2 08 00 09 04 80 11 00 00 00 00 00 00 87 [17:54:30]Write i2c OK [17:54:30]MH_I2C_Read... [17:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:30]Read from MH i2c: E2 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 17 00 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: E2 17 00 09 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 DD [17:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:54:30]wFMCommunicate OK [17:54:30]CreateOFDProtocolMessage done [17:54:30]OFDSenderStorePacket 67119 [17:54:30]StoreOFDPacket docnum=67119 [17:54: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 E2 4C 04 01 16 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7E 00 00 00 F4 03 04 00 55 A5 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F2 2F 33 4E F9 EB 7D 69 CA 37 0B 5F 7B B5 [17:54:30]CheckFolder [17:54:30]dirname=/storage/ofd_packets [17:54:30]CheckFolder done [17:54:30]ProducePacketName [17:54:30]name=ofd_packets/00067119 [17:54:30]NVStorageSaveData ofd_packets/00067119 [17:54:30]File name is /storage/ofd_packets/00067119 [17:54:30]Write 298 bytes [17:54:30]NVStorageSaveData done [17:54:30]OFDSenderStorePacket done [17:54:30]KKMCreateOFDPacket done [17:54:30]NVStorageSaveData kkm_last_timestamp [17:54:30]File name is /storage/kkm_last_timestamp [17:54:30]Write 4 bytes [17:54:30]NVStorageSaveData done [17:54:30]OFD Sender: Processing packet 67119 [packets to send 35, broken 34] [17:54:30]ProducePacketName [17:54:30]name=ofd_packets/00067119 [17:54:30]OFD Sender: To server: pG, [17:54:30]CommunicateWithHost lk.salyk.kg:30040 [17:54:30]ConnectInit lk.salyk.kg [17:54:30]ExternCall_PrintAddStr [17:54:30]wPrintStart [17:54:30]Write to MH i2c: 01 00 00 0A 04 0E [17:54:30]Write i2c OK [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: 01 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: 01 07 00 [17:54:30]MH_I2C_Read... [17:54:30]Read from MH i2c: 01 07 00 0A 04 00 00 00 00 00 FF 0F 23 [17:54:30]RasterBufferAndPrint [17:54:30]line Счет N : (1)507011 [17:54:30]line ИНН: 02508201610067 [17:54:30]line Контрольно-Кассовый Чек [17:54:30]line ПРОДАЖА [17:54:30]line ТРК (МРК, ГНК) : 21 [17:54:30]line Товар: 2710194210 [17:54:30]line ДТ-К-5 [17:54:30]line 53.550 * 74.70 [17:54:30]line = 4000.19 [17:54:30]line НДС 12% НСП 1% [17:54:30]line > о реализуемом товаре [17:54:30]line ИТОГО: 4000.19 [17:54:30]line НСП 1% : 35.40 [17:54:30]line НДС 12% : 424.80 [17:54:30]line Наличными: 0.00 [17:54:30]line Безнал.: 4000.19 [17:54:30]line Место: АЗС № 91 "Партнер Нефть" [17:54:30]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [17:54:30]line СНО: Общий режим [17:54:30]line Чек 126 14.05.2024 17:54 [17:54:30]line Смена: 355 ФФД: 1.0 [17:54:30]line ЗНМ: 0300000119 [17:54:30]line РНМ: 0000000000091845 [17:54:30]line Версия ККМ: 001 [17:54:30]line Платежная система: O! деньги [17:54:30]line ФМ: 0000000000871829 [17:54:30]line ФД: 67119 [17:54:30]line ФПД: 266284538198507 [17:54:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T175429&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67119&fm=266284538198507&tin=02508201610067®Number=0000000000091845&sum=400019 [17:54:30]Connected sock=11 [17:54: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 E2 4C 04 01 16 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7E 00 00 00 F4 03 04 00 55 A5 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F2 2F 33 4E F9 EB 7D 69 CA 37 0B 5F 7B B5 [17:54:30]written 0, free lines is 4095 [17:54: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 26 EB 47 00 CF 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 2F 06 01 00 F4 03 04 00 34 4D 43 66 B6 04 01 00 00 D9 92 AE E8 D6 05 41 81 [17:54:30]CommunicateWithHost err = 0 [17:54:30]CheckOFDResponse [17:54:30]1017 (14) - 77093643461234 [17:54:30]1041 (16) - 0000000000871829 [17:54:30]1040 (4) - 67119 [17:54:30]1012 (4) - 14.05.2024 11:38 [17:54:30]1206 (1) - 0 [17:54:30]OFD Sender: Remove packet 67119 [17:54:30]ProducePacketName [17:54:30]name=ofd_packets/00067119 [17:54:30]NVStorageDeleteData [17:54:31]Write to MH i2c: 01 00 00 33 04 37 [17:54:31]Write i2c OK [17:54:31]MH_I2C_Read... [17:54:31]Read from MH i2c: 01 [17:54:31]MH_I2C_Read... [17:54:31]Read from MH i2c: 01 07 00 [17:54:31]MH_I2C_Read... [17:54:31]Read from MH i2c: 01 07 00 33 04 00 00 00 00 00 EB 0C 35 [17:54:31]RasterBufferAndPrint [17:54:31]line [17:54:31]line [17:54:31]line [17:54:31]line [17:54:31]line [17:54:31]written 0, free lines is 3313 [17:54:31]MH_Cut [17:54:31]Write to MH i2c: D1 01 00 3A 04 01 10 [17:54:31]Write i2c OK [17:54:31]MH_I2C_Read... [17:54:31]Read from MH i2c: D1 [17:54:31]MH_I2C_Read... [17:54:31]Read from MH i2c: D1 01 00 [17:54:31]MH_I2C_Read... [17:54:31]Read from MH i2c: D1 01 00 3A 04 00 0F [17:54:31]Write to MH i2c: 01 00 00 3B 04 3F [17:54:31]Write i2c OK [17:54:31]MH_I2C_Read... [17:54:31]OFD Sender: No OFD packet to send [17:54:32]*** Cut start [17:54:32]*** Purtial cut [17:54:32]*** Stage 1: CUTSNS_PIN = 1 [17:54:32]Read from MH i2c: 01 [17:54:32]MH_I2C_Read... [17:54:32]*** Stop cut motor [17:54:32]*** Cut end [17:54:32]Read from MH i2c: 01 07 00 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: 01 07 00 3B 04 00 00 00 00 00 FF 0F 54 [17:54:32]process_action close_receipt done [17:54:32]requested_data is exist [17:54:32]produce_requested_data [17:54:32]requested_item fm.sn is exist - process it [17:54:32]wFMCommunicate request_size=4 [17:54:32]MH_SAM_APDU [17:54:32]CAPDU: 80 11 00 00 [17:54:32]Write to MH i2c: E2 08 00 3C 04 80 11 00 00 00 00 00 00 BA [17:54:32]Write i2c OK [17:54:32]MH_I2C_Read... [17:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:32]Read from MH i2c: E2 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: E2 17 00 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: E2 17 00 3C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 10 [17:54:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [17:54:32]wFMCommunicate OK [17:54:32]requested_item fd.num is exist - process it [17:54:32]SAM_PROTO_GetFieldsCounters [17:54:32]wFMCommunicate request_size=4 [17:54:32]MH_SAM_APDU [17:54:32]CAPDU: 80 13 00 00 [17:54:32]Write to MH i2c: E2 08 00 3D 04 80 13 00 00 00 00 00 00 BD [17:54:32]Write i2c OK [17:54:32]MH_I2C_Read... [17:54:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:32]Read from MH i2c: E2 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: E2 62 00 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: E2 62 00 3D 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 2F 06 01 00 0E 04 04 00 63 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 F7 [17:54: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 2F 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:32]wFMCommunicate OK [17:54:32]SAM_PROTO_GetFieldsCounters done [17:54:32]requested_item shift.num is exist - process it [17:54:32]requested_item shift.opened is exist - process it [17:54:32]req_shift_opened [17:54:32]FM_GetShiftState [17:54:32]SAM_PROTO_GetShiftState [17:54:32]wFMCommunicate request_size=4 [17:54:32]MH_SAM_APDU [17:54:32]CAPDU: 80 13 01 00 [17:54:32]Write to MH i2c: E2 08 00 3E 04 80 13 01 00 00 00 00 00 BF [17:54:32]Write i2c OK [17:54:32]MH_I2C_Read... [17:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:32]Read from MH i2c: E2 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: E2 0E 00 [17:54:32]MH_I2C_Read... [17:54:32]Read from MH i2c: E2 0E 00 3E 04 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 87 [17:54:32]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [17:54:32]wFMCommunicate OK [17:54:32]SAM_PROTO_GetShiftState done [17:54:32]FM_GetShiftState done [17:54:32]req_shift_opened done [17:54:32]requested_item shift.open_date is exist - process it [17:54:32]req_shift_open_date [17:54:32]req_shift_open_date done [17:54:32]produce_requested_data done [17:54:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67119,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [17:54:32]process_action_free close_receipt [17:54:32]json_value_free [17:54:32]json_value_free done [17:54:32]process_json_proto returns [17:54:32]Send response to host [17:54:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67119,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [17:54:32]free response buf [17:54:32]execute_script done [17:54:32]execute_script returns [17:54:32]free content buf [17:54:32]Sock 9.Close socket [17:54:32]Sock 9.Thread stoped [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [18:39:46]ConnectInit Can't connect to host [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:05]OFD Sender: No OFD packet to send [18:41:10]OFD Sender: No OFD packet to send [18:41:15]OFD Sender: No OFD packet to send [18:41:20]OFD Sender: No OFD packet to send [18:41:25]OFD Sender: No OFD packet to send [18:41:30]OFD Sender: No OFD packet to send [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:27]accept exits with 9 [18:42:27]New connection [18:42:27]New thread 3066588516 created [18:42:27]Thread 3066731876 joined [18:42:27]Waiting for new connection... [18:42:27] Sock 9.Parse request [18:42:27]Sock 9.Check first char [18:42:27]Sock 9.First char is OK [18:42:27]request: POST /json_proto HTTP/1.0 [18:42:27]Method: POST [18:42:27]URL: /json_proto [18:42:27]Method is POST - this is cgi request [18:42:27]url: /json_proto [18:42:27]query_string will be loaded in cgi processing [18:42:27]execute_cgi json_proto POST (null) [18:42:27]execute_cgi path=json_proto method=POST [18:42:27]POST find Content-Length [18:42:27]Host: 172.17.41.195:8080 [18:42:27]Content-Length: 679 [18:42:27]Content-Type: application/json [18:42:27] [18:42:27]POST finish read [18:42:27]Found Content-Length = 679 [18:42:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507024", "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" ] } } [18:42:27]execute_script... [18:42: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)507024", "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" ] } } [18:42:27]POST & json_proto [18:42:27]process_json_proto [18:42:27]json parsed OK: [18:42:27]protocol is kg_v1.0 [18:42:27]action value=close_receipt [18:42:27]process_action close_receipt [18:42:27]cmd_close_receipt [18:42:27]MH_GetDate [18:42:27]Write to MH i2c: F0 00 00 5B 07 51 [18:42:27]Write i2c OK [18:42:27]MH_I2C_Read... [18:42:27]Read from MH i2c: F0 [18:42:27]MH_I2C_Read... [18:42:27]Read from MH i2c: F0 09 00 [18:42:27]MH_I2C_Read... [18:42:27]Read from MH i2c: F0 09 00 5B 07 00 94 B0 43 66 FC 21 6F 64 37 [18:42:27]GetLastDocTimeStamp 1715711873 [18:42:27]current date 1715712148 [18:42:27]FM_GetShiftState [18:42:27]SAM_PROTO_GetShiftState [18:42:27]wFMCommunicate request_size=4 [18:42:27]MH_SAM_APDU [18:42:27]CAPDU: 80 13 01 00 [18:42:27]Write to MH i2c: E2 08 00 5C 07 80 13 01 00 00 00 00 00 E0 [18:42:27]Write i2c OK [18:42:27]MH_I2C_Read... [18:42:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:27]Read from MH i2c: E2 [18:42:27]MH_I2C_Read... [18:42:27]Read from MH i2c: E2 0E 00 [18:42:27]MH_I2C_Read... [18:42:27]Read from MH i2c: E2 0E 00 5C 07 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A8 [18:42:27]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [18:42:27]wFMCommunicate OK [18:42:27]SAM_PROTO_GetShiftState done [18:42:27]FM_GetShiftState done [18:42:27]opened in 1715646054 [18:42:27]opened+sec_in_day 1715732454 [18:42:27]quantity*price = 100023 [18:42:27]sum+1 = 100024 [18:42:27]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 СНО: Общий режим Чек 137 14.05.2024 18:42 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67130 ФПД: 216143578603950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T184228&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67130&fm=216143578603950&tin=02508201610067®Number=0000000000091845&sum=100000 [18:42:29]StoreToDocumentArchive [18:42:29]shift 355 fd 67130 [18:42:29]save to /storage/0355/doc_00067130 [18:42:29]save last doc name /storage/0355/doc_00067130 to /storage/kkm_last_doc_name [18:42:29]save OK [18:42:29]Clear old archive folders... [18:42:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:42:29]tlvbuf is 003BBE30 [18:42:29]SAM_PROTO_ClearQueue [18:42:29]wFMCommunicate request_size=4 [18:42:29]MH_SAM_APDU [18:42:29]CAPDU: 80 09 00 00 [18:42:29]Write to MH i2c: E2 08 00 69 07 80 09 00 00 00 00 00 00 E2 [18:42:29]Write i2c OK [18:42:29]MH_I2C_Read... [18:42:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:29]Read from MH i2c: E2 [18:42:29]MH_I2C_Read... [18:42:29]Read from MH i2c: E2 03 00 [18:42:29]MH_I2C_Read... [18:42:29]Read from MH i2c: E2 03 00 69 07 00 90 00 E4 [18:42:29]RAPDU: 90 00 [18:42:29]wFMCommunicate OK [18:42:29]SAM_PROTO_ClearQueue done [18:42:29]KKMCreateOFDPacket [18:42:29]OFDProtocolAddRootSTLVToBuf [18:42:29]FM_MakeSignedData [18:42:29]FM_MakeSignedData [18:42:29]SAM_PROTO_SignData [18:42:29]wFMCommunicate request_size=4 [18:42:29]MH_SAM_APDU [18:42:29]CAPDU: 80 0D 01 02 [18:42:29]Write to MH i2c: E2 08 00 6A 07 80 0D 01 02 00 00 00 00 EA [18:42:29]Write i2c OK [18:42:29]MH_I2C_Read... [18:42:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:29]Read from MH i2c: E2 [18:42:29]MH_I2C_Read... [18:42:29]Read from MH i2c: E2 03 00 [18:42:29]MH_I2C_Read... [18:42:29]Read from MH i2c: E2 03 00 6A 07 00 90 00 E5 [18:42:29]RAPDU: 90 00 [18:42:29]wFMCommunicate OK [18:42:29]wFMCommunicate request_size=255 [18:42:29]MH_SAM_APDU [18:42: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 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 89 00 00 00 F4 03 04 00 94 B0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 C4 94 D9 39 [18:42:29]Write to MH i2c: E2 02 01 6B 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 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 89 00 00 00 F4 03 04 00 94 B0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 C4 94 D9 39 00 00 49 [18:42:29]Write i2c OK [18:42:29]MH_I2C_Read... [18:42:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:29]Read from MH i2c: E2 [18:42:29]MH_I2C_Read... [18:42:29]Read from MH i2c: E2 03 00 [18:42:29]MH_I2C_Read... [18:42:29]Read from MH i2c: E2 03 00 6B 07 00 90 00 E6 [18:42:29]RAPDU: 90 00 [18:42:29]wFMCommunicate OK [18:42:29]wFMCommunicate request_size=7 [18:42:29]MH_SAM_APDU [18:42:29]CAPDU: 80 0D 02 02 02 21 AE [18:42:29]Write to MH i2c: E2 0A 00 6C 07 80 0D 02 02 02 00 21 AE 00 00 C0 [18:42:29]Write i2c OK [18:42:29]MH_I2C_Read... [18:42:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:29]Read from MH i2c: E2 [18:42:29]MH_I2C_Read... [18:42:29]Read from MH i2c: E2 03 00 [18:42:29]MH_I2C_Read... [18:42:29]Read from MH i2c: E2 03 00 6C 07 00 90 00 E7 [18:42:29]RAPDU: 90 00 [18:42:29]wFMCommunicate OK [18:42:29]wFMCommunicate request_size=4 [18:42:29]MH_SAM_APDU [18:42:29]CAPDU: 80 0D 03 02 [18:42:29]Write to MH i2c: E2 08 00 6D 07 80 0D 03 02 00 00 00 00 EF [18:42:29]Write i2c OK [18:42:29]MH_I2C_Read... [18:42:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:29]Read from MH i2c: E2 [18:42:29]MH_I2C_Read... [18:42:29]Read from MH i2c: E2 0B 00 [18:42:29]MH_I2C_Read... [18:42:29]Read from MH i2c: E2 0B 00 6D 07 00 1D 19 A2 EA 2B 54 D7 CA 90 00 D2 [18:42:29]RAPDU: 1D 19 A2 EA 2B 54 D7 CA 90 00 [18:42:29]wFMCommunicate OK [18:42:29]SAM_PROTO_SignData done [18:42:29]FM_MakeSignedData done [18:42:29]CreateOFDProtocolMessage [18:42:29]wFMCommunicate request_size=4 [18:42:29]MH_SAM_APDU [18:42:29]CAPDU: 80 11 00 00 [18:42:29]Write to MH i2c: E2 08 00 6E 07 80 11 00 00 00 00 00 00 EF [18:42:29]Write i2c OK [18:42:29]MH_I2C_Read... [18:42:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:29]Read from MH i2c: E2 [18:42:29]MH_I2C_Read... [18:42:29]Read from MH i2c: E2 17 00 [18:42:29]MH_I2C_Read... [18:42:29]Read from MH i2c: E2 17 00 6E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 45 [18:42:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:42:29]wFMCommunicate OK [18:42:29]CreateOFDProtocolMessage done [18:42:29]OFDSenderStorePacket 67130 [18:42:29]StoreOFDPacket docnum=67130 [18:42: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 28 CE 04 01 30 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 94 B0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 C4 94 D9 39 21 AE 1D 19 A2 EA 2B 54 D7 CA [18:42:29]CheckFolder [18:42:29]dirname=/storage/ofd_packets [18:42:29]CheckFolder done [18:42:29]ProducePacketName [18:42:29]name=ofd_packets/00067130 [18:42:29]NVStorageSaveData ofd_packets/00067130 [18:42:29]File name is /storage/ofd_packets/00067130 [18:42:29]Write 298 bytes [18:42:29]NVStorageSaveData done [18:42:29]OFDSenderStorePacket done [18:42:29]KKMCreateOFDPacket done [18:42:29]NVStorageSaveData kkm_last_timestamp [18:42:29]File name is /storage/kkm_last_timestamp [18:42:29]Write 4 bytes [18:42:29]NVStorageSaveData done [18:42:29]ExternCall_PrintAddStr [18:42:29]wPrintStart [18:42:29]Write to MH i2c: 01 00 00 6F 07 76 [18:42:29]Write i2c OK [18:42:29]MH_I2C_Read... [18:42:29]Read from MH i2c: 01 [18:42:29]MH_I2C_Read... [18:42:29]Read from MH i2c: 01 07 00 [18:42:29]MH_I2C_Read... [18:42:29]Read from MH i2c: 01 07 00 6F 07 00 00 00 00 00 FF 0F 8B [18:42:29]RasterBufferAndPrint [18:42:29]line Счет N : (1)507024 [18:42:29]line ИНН: 02508201610067 [18:42:29]line Контрольно-Кассовый Чек [18:42:29]line ПРОДАЖА [18:42:29]line ТРК (МРК, ГНК) : 41 [18:42:29]line Товар: 2710194210 [18:42:29]line ДТ-К-5 [18:42:29]line 13.390 * 74.70 [18:42:29]line = 1000.23 [18:42:29]line НДС 12% НСП 1% [18:42:29]line > о реализуемом товаре [18:42:29]line ОКРУГЛЕНИЕ: -0.23 [18:42:29]line ИТОГО: 1000.00 [18:42:29]line Внесено: 1000.00 [18:42:29]line СДАЧА: 0.00 [18:42:29]line НСП 1% : 8.85 [18:42:29]line НДС 12% : 106.22 [18:42:29]line Наличными: 1000.00 [18:42:29]line Безнал.: 0.00 [18:42:29]line Место: АЗС № 91 "Партнер Нефть" [18:42:29]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:42:29]line СНО: Общий режим [18:42:29]line Чек 137 14.05.2024 18:42 [18:42:29]line Смена: 355 ФФД: 1.0 [18:42:29]line ЗНМ: 0300000119 [18:42:29]line РНМ: 0000000000091845 [18:42:29]line Версия ККМ: 001 [18:42:29]line ФМ: 0000000000871829 [18:42:29]line ФД: 67130 [18:42:29]line ФПД: 216143578603950 [18:42:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T184228&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67130&fm=216143578603950&tin=02508201610067®Number=0000000000091845&sum=100000 [18:42:29]OFD Sender: Processing packet 67130 [packets to send 35, broken 34] [18:42:29]ProducePacketName [18:42:29]name=ofd_packets/00067130 [18:42:29]OFD Sender: To server: pG, [18:42:29]CommunicateWithHost lk.salyk.kg:30040 [18:42:29]ConnectInit lk.salyk.kg [18:42:29]written 0, free lines is 4095 [18:42:30]Connected sock=7 [18:42: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 28 CE 04 01 30 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 34 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 B7 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 94 B0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 C4 94 D9 39 21 AE 1D 19 A2 EA 2B 54 D7 CA [18:42: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 50 EA 47 00 BD 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 3A 06 01 00 F4 03 04 00 73 58 43 66 B6 04 01 00 00 83 C9 85 9B F2 04 90 A1 [18:42:30]CommunicateWithHost err = 0 [18:42:30]CheckOFDResponse [18:42:30]1017 (14) - 77093643461234 [18:42:30]1041 (16) - 0000000000871829 [18:42:30]1040 (4) - 67130 [18:42:30]1012 (4) - 14.05.2024 12:26 [18:42:30]1206 (1) - 0 [18:42:30]OFD Sender: Remove packet 67130 [18:42:30]ProducePacketName [18:42:30]name=ofd_packets/00067130 [18:42:30]NVStorageDeleteData [18:42:30]Write to MH i2c: 01 00 00 99 07 A0 [18:42:30]Write i2c OK [18:42:30]MH_I2C_Read... [18:42:30]Read from MH i2c: 01 [18:42:30]MH_I2C_Read... [18:42:30]Read from MH i2c: 01 07 00 [18:42:30]MH_I2C_Read... [18:42:30]Read from MH i2c: 01 07 00 99 07 00 00 00 00 00 E1 0C 94 [18:42:30]RasterBufferAndPrint [18:42:30]line [18:42:30]line [18:42:30]line [18:42:30]line [18:42:30]line [18:42:30]written 0, free lines is 3303 [18:42:30]MH_Cut [18:42:30]Write to MH i2c: D1 01 00 A0 07 01 79 [18:42:30]Write i2c OK [18:42:30]MH_I2C_Read... [18:42:30]Read from MH i2c: D1 [18:42:30]MH_I2C_Read... [18:42:30]Read from MH i2c: D1 01 00 [18:42:30]MH_I2C_Read... [18:42:30]Read from MH i2c: D1 01 00 A0 07 00 78 [18:42:30]Write to MH i2c: 01 00 00 A1 07 A8 [18:42:30]Write i2c OK [18:42:30]MH_I2C_Read... [18:42:30]OFD Sender: No OFD packet to send [18:42:31]*** Cut start [18:42:31]*** Purtial cut [18:42:31]*** CUTSNS_PIN = 0 [18:42:31]*** Stage 1: CUTSNS_PIN = 1 [18:42:33]Read from MH i2c: 01 [18:42:33]MH_I2C_Read... [18:42:33]*** Stop cut motor [18:42:33]*** Cut end [18:42:33]Read from MH i2c: 01 07 00 [18:42:33]MH_I2C_Read... [18:42:33]Read from MH i2c: 01 07 00 A1 07 00 00 00 00 00 FF 0F BD [18:42:33]process_action close_receipt done [18:42:33]requested_data is exist [18:42:33]produce_requested_data [18:42:33]requested_item fm.sn is exist - process it [18:42:33]wFMCommunicate request_size=4 [18:42:33]MH_SAM_APDU [18:42:33]CAPDU: 80 11 00 00 [18:42:33]Write to MH i2c: E2 08 00 A2 07 80 11 00 00 00 00 00 00 23 [18:42:33]Write i2c OK [18:42:33]MH_I2C_Read... [18:42:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:33]Read from MH i2c: E2 [18:42:33]MH_I2C_Read... [18:42:33]Read from MH i2c: E2 17 00 [18:42:33]MH_I2C_Read... [18:42:33]Read from MH i2c: E2 17 00 A2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 79 [18:42:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:42:33]wFMCommunicate OK [18:42:33]requested_item fd.num is exist - process it [18:42:33]SAM_PROTO_GetFieldsCounters [18:42:33]wFMCommunicate request_size=4 [18:42:33]MH_SAM_APDU [18:42:33]CAPDU: 80 13 00 00 [18:42:33]Write to MH i2c: E2 08 00 A3 07 80 13 00 00 00 00 00 00 26 [18:42:33]Write i2c OK [18:42:33]MH_I2C_Read... [18:42:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:33]Read from MH i2c: E2 [18:42:33]MH_I2C_Read... [18:42:33]Read from MH i2c: E2 62 00 [18:42:33]MH_I2C_Read... [18:42:33]Read from MH i2c: E2 62 00 A3 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 3A 06 01 00 0E 04 04 00 63 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 8C [18:42:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 3A 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:33]wFMCommunicate OK [18:42:33]SAM_PROTO_GetFieldsCounters done [18:42:33]requested_item shift.num is exist - process it [18:42:33]requested_item shift.opened is exist - process it [18:42:33]req_shift_opened [18:42:33]FM_GetShiftState [18:42:33]SAM_PROTO_GetShiftState [18:42:33]wFMCommunicate request_size=4 [18:42:33]MH_SAM_APDU [18:42:33]CAPDU: 80 13 01 00 [18:42:33]Write to MH i2c: E2 08 00 A4 07 80 13 01 00 00 00 00 00 28 [18:42:33]Write i2c OK [18:42:33]MH_I2C_Read... [18:42:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:33]Read from MH i2c: E2 [18:42:33]MH_I2C_Read... [18:42:33]Read from MH i2c: E2 0E 00 [18:42:33]MH_I2C_Read... [18:42:33]Read from MH i2c: E2 0E 00 A4 07 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F0 [18:42:33]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [18:42:33]wFMCommunicate OK [18:42:33]SAM_PROTO_GetShiftState done [18:42:33]FM_GetShiftState done [18:42:33]req_shift_opened done [18:42:33]requested_item shift.open_date is exist - process it [18:42:33]req_shift_open_date [18:42:33]req_shift_open_date done [18:42:33]produce_requested_data done [18:42:33]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67130,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [18:42:33]process_action_free close_receipt [18:42:33]json_value_free [18:42:33]json_value_free done [18:42:33]process_json_proto returns [18:42:33]Send response to host [18:42:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67130,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [18:42:33]free response buf [18:42:33]execute_script done [18:42:33]execute_script returns [18:42:33]free content buf [18:42:33]Sock 9.Close socket [18:42:33]Sock 9.Thread stoped [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:41]accept exits with 10 [18:43:41]New connection [18:43:41]New thread 3066731876 created [18:43:41]Thread 3066588516 joined [18:43:41]Waiting for new connection... [18:43:41] Sock 10.Parse request [18:43:41]Sock 10.Check first char [18:43:41]Sock 10.First char is OK [18:43:41]request: POST /json_proto HTTP/1.0 [18:43:41]Method: POST [18:43:41]URL: /json_proto [18:43:41]Method is POST - this is cgi request [18:43:41]url: /json_proto [18:43:41]query_string will be loaded in cgi processing [18:43:41]execute_cgi json_proto POST (null) [18:43:41]execute_cgi path=json_proto method=POST [18:43:41]POST find Content-Length [18:43:41]Host: 172.17.41.195:8080 [18:43:41]Content-Length: 800 [18:43:41]Content-Type: application/json [18:43:41] [18:43:41]POST finish read [18:43:41]Found Content-Length = 800 [18:43:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 16.070, "sum" : 1200.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:41]execute_script... [18:43: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)507025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 16.070, "sum" : 1200.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:41]POST & json_proto [18:43:41]process_json_proto [18:43:41]json parsed OK: [18:43:41]protocol is kg_v1.0 [18:43:41]action value=close_receipt [18:43:41]process_action close_receipt [18:43:41]cmd_close_receipt [18:43:41]MH_GetDate [18:43:41]Write to MH i2c: F0 00 00 A5 07 9B [18:43:41]Write i2c OK [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: F0 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: F0 09 00 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: F0 09 00 A5 07 00 DD B0 43 66 FC 21 6F 64 CA [18:43:41]GetLastDocTimeStamp 1715712148 [18:43:41]current date 1715712221 [18:43:41]FM_GetShiftState [18:43:41]SAM_PROTO_GetShiftState [18:43:41]wFMCommunicate request_size=4 [18:43:41]MH_SAM_APDU [18:43:41]CAPDU: 80 13 01 00 [18:43:41]Write to MH i2c: E2 08 00 A6 07 80 13 01 00 00 00 00 00 2A [18:43:41]Write i2c OK [18:43:41]MH_I2C_Read... [18:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:41]Read from MH i2c: E2 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 0E 00 [18:43:41]MH_I2C_Read... [18:43:41]Read from MH i2c: E2 0E 00 A6 07 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F2 [18:43:41]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [18:43:41]wFMCommunicate OK [18:43:41]SAM_PROTO_GetShiftState done [18:43:41]FM_GetShiftState done [18:43:41]opened in 1715646054 [18:43:41]opened+sec_in_day 1715732454 [18:43:41]quantity*price = 120042 [18:43:41]sum+1 = 120044 [18:43:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.43 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 0.00 Безнал.: 1200.43 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 138 14.05.2024 18:43 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67131 ФПД: 80738116235943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T184341&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67131&fm=80738116235943&tin=02508201610067®Number=0000000000091845&sum=120043 [18:43:42]StoreToDocumentArchive [18:43:42]shift 355 fd 67131 [18:43:42]save to /storage/0355/doc_00067131 [18:43:42]save last doc name /storage/0355/doc_00067131 to /storage/kkm_last_doc_name [18:43:42]save OK [18:43:42]Clear old archive folders... [18:43:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:43:42]tlvbuf is 003AD730 [18:43:42]SAM_PROTO_ClearQueue [18:43:42]wFMCommunicate request_size=4 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 09 00 00 [18:43:42]Write to MH i2c: E2 08 00 B3 07 80 09 00 00 00 00 00 00 2C [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 03 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 03 00 B3 07 00 90 00 2E [18:43:42]RAPDU: 90 00 [18:43:42]wFMCommunicate OK [18:43:42]SAM_PROTO_ClearQueue done [18:43:42]KKMCreateOFDPacket [18:43:42]OFDProtocolAddRootSTLVToBuf [18:43:42]FM_MakeSignedData [18:43:42]FM_MakeSignedData [18:43:42]SAM_PROTO_SignData [18:43:42]wFMCommunicate request_size=4 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 0D 01 02 [18:43:42]Write to MH i2c: E2 08 00 B4 07 80 0D 01 02 00 00 00 00 34 [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 03 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 03 00 B4 07 00 90 00 2F [18:43:42]RAPDU: 90 00 [18:43:42]wFMCommunicate OK [18:43:42]wFMCommunicate request_size=255 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 DD B0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 49 6E 4E BC [18:43:42]Write to MH i2c: E2 02 01 B5 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 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 DD B0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 49 6E 4E BC 00 00 73 [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:42]Read from MH i2c: E2 03 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 03 00 B5 07 00 90 00 30 [18:43:42]RAPDU: 90 00 [18:43:42]wFMCommunicate OK [18:43:42]wFMCommunicate request_size=7 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 0D 02 02 02 F2 A7 [18:43:42]Write to MH i2c: E2 0A 00 B6 07 80 0D 02 02 02 00 F2 A7 00 00 D4 [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 03 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 03 00 B6 07 00 90 00 31 [18:43:42]RAPDU: 90 00 [18:43:42]wFMCommunicate OK [18:43:42]wFMCommunicate request_size=4 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 0D 03 02 [18:43:42]Write to MH i2c: E2 08 00 B7 07 80 0D 03 02 00 00 00 00 39 [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 0B 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 0B 00 B7 07 00 04 8E 1C C5 12 93 23 1B 90 00 90 [18:43:42]RAPDU: 04 8E 1C C5 12 93 23 1B 90 00 [18:43:42]wFMCommunicate OK [18:43:42]SAM_PROTO_SignData done [18:43:42]FM_MakeSignedData done [18:43:42]CreateOFDProtocolMessage [18:43:42]wFMCommunicate request_size=4 [18:43:42]MH_SAM_APDU [18:43:42]CAPDU: 80 11 00 00 [18:43:42]Write to MH i2c: E2 08 00 B8 07 80 11 00 00 00 00 00 00 39 [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:42]Read from MH i2c: E2 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 17 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: E2 17 00 B8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8F [18:43:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:43:42]wFMCommunicate OK [18:43:42]CreateOFDProtocolMessage done [18:43:42]OFDSenderStorePacket 67131 [18:43:42]StoreOFDPacket docnum=67131 [18:43:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 27 10 04 01 CF D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 DD B0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 49 6E 4E BC F2 A7 04 8E 1C C5 12 93 23 1B [18:43:42]CheckFolder [18:43:42]dirname=/storage/ofd_packets [18:43:42]CheckFolder done [18:43:42]ProducePacketName [18:43:42]name=ofd_packets/00067131 [18:43:42]NVStorageSaveData ofd_packets/00067131 [18:43:42]File name is /storage/ofd_packets/00067131 [18:43:42]Write 298 bytes [18:43:42]NVStorageSaveData done [18:43:42]OFDSenderStorePacket done [18:43:42]KKMCreateOFDPacket done [18:43:42]NVStorageSaveData kkm_last_timestamp [18:43:42]File name is /storage/kkm_last_timestamp [18:43:42]Write 4 bytes [18:43:42]NVStorageSaveData done [18:43:42]ExternCall_PrintAddStr [18:43:42]wPrintStart [18:43:42]Write to MH i2c: 01 00 00 B9 07 C0 [18:43:42]Write i2c OK [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: 01 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: 01 07 00 [18:43:42]MH_I2C_Read... [18:43:42]Read from MH i2c: 01 07 00 B9 07 00 00 00 00 00 FF 0F D5 [18:43:42]RasterBufferAndPrint [18:43:42]line Счет N : (1)507025 [18:43:42]line ИНН: 02508201610067 [18:43:42]line Контрольно-Кассовый Чек [18:43:42]line ПРОДАЖА [18:43:42]line ТРК (МРК, ГНК) : 31 [18:43:42]line Товар: 2710194210 [18:43:42]line ДТ-К-5 [18:43:42]line 16.070 * 74.70 [18:43:42]line = 1200.43 [18:43:42]line НДС 12% НСП 1% [18:43:42]line > о реализуемом товаре [18:43:42]line ИТОГО: 1200.43 [18:43:42]line НСП 1% : 10.62 [18:43:42]line НДС 12% : 127.48 [18:43:42]line Наличными: 0.00 [18:43:42]line Безнал.: 1200.43 [18:43:42]line Место: АЗС № 91 "Партнер Нефть" [18:43:42]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:43:42]line СНО: Общий режим [18:43:42]line Чек 138 14.05.2024 18:43 [18:43:42]line Смена: 355 ФФД: 1.0 [18:43:42]line ЗНМ: 0300000119 [18:43:42]line РНМ: 0000000000091845 [18:43:42]line Версия ККМ: 001 [18:43:42]line Платежная система: O! деньги [18:43:42]line ФМ: 0000000000871829 [18:43:42]line ФД: 67131 [18:43:42]line ФПД: 80738116235943 [18:43:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T184341&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67131&fm=80738116235943&tin=02508201610067®Number=0000000000091845&sum=120043 [18:43:43]OFD Sender: Processing packet 67131 [packets to send 35, broken 34] [18:43:43]ProducePacketName [18:43:43]name=ofd_packets/00067131 [18:43:43]OFD Sender: To server: pG, [18:43:43]CommunicateWithHost lk.salyk.kg:30040 [18:43:43]ConnectInit lk.salyk.kg [18:43:43]written 0, free lines is 4095 [18:43:43]Connected sock=9 [18:43: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 27 10 04 01 CF D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 DD B0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 49 6E 4E BC F2 A7 04 8E 1C C5 12 93 23 1B [18:43: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 EA CA 47 00 3E F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3B 06 01 00 F4 03 04 00 BC 58 43 66 B6 04 01 00 00 A7 BA 7B 19 50 12 D6 30 [18:43:43]CommunicateWithHost err = 0 [18:43:43]CheckOFDResponse [18:43:43]1017 (14) - 77093643461234 [18:43:43]1041 (16) - 0000000000871829 [18:43:43]1040 (4) - 67131 [18:43:43]1012 (4) - 14.05.2024 12:27 [18:43:43]1206 (1) - 0 [18:43:43]OFD Sender: Remove packet 67131 [18:43:43]ProducePacketName [18:43:43]name=ofd_packets/00067131 [18:43:43]NVStorageDeleteData [18:43:43]Write to MH i2c: 01 00 00 E2 07 E9 [18:43:43]Write i2c OK [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: 01 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: 01 07 00 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: 01 07 00 E2 07 00 00 00 00 00 EB 0C E7 [18:43:43]RasterBufferAndPrint [18:43:43]line [18:43:43]line [18:43:43]line [18:43:43]line [18:43:43]line [18:43:43]written 0, free lines is 3313 [18:43:43]MH_Cut [18:43:43]Write to MH i2c: D1 01 00 E9 07 01 C2 [18:43:43]Write i2c OK [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: D1 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: D1 01 00 [18:43:43]MH_I2C_Read... [18:43:43]Read from MH i2c: D1 01 00 E9 07 00 C1 [18:43:43]Write to MH i2c: 01 00 00 EA 07 F1 [18:43:43]Write i2c OK [18:43:43]MH_I2C_Read... [18:43:43]OFD Sender: No OFD packet to send [18:43:44]*** Cut start [18:43:44]*** Purtial cut [18:43:44]*** Stage 1: CUTSNS_PIN = 1 [18:43:44]Read from MH i2c: 01 [18:43:44]MH_I2C_Read... [18:43:44]*** Stop cut motor [18:43:44]*** Cut end [18:43:44]Read from MH i2c: 01 07 00 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: 01 07 00 EA 07 00 00 00 00 00 FF 0F 06 [18:43:44]process_action close_receipt done [18:43:44]requested_data is exist [18:43:44]produce_requested_data [18:43:44]requested_item fm.sn is exist - process it [18:43:44]wFMCommunicate request_size=4 [18:43:44]MH_SAM_APDU [18:43:44]CAPDU: 80 11 00 00 [18:43:44]Write to MH i2c: E2 08 00 EB 07 80 11 00 00 00 00 00 00 6C [18:43:44]Write i2c OK [18:43:44]MH_I2C_Read... [18:43:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:44]Read from MH i2c: E2 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 17 00 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 17 00 EB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C2 [18:43:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:43:44]wFMCommunicate OK [18:43:44]requested_item fd.num is exist - process it [18:43:44]SAM_PROTO_GetFieldsCounters [18:43:44]wFMCommunicate request_size=4 [18:43:44]MH_SAM_APDU [18:43:44]CAPDU: 80 13 00 00 [18:43:44]Write to MH i2c: E2 08 00 EC 07 80 13 00 00 00 00 00 00 6F [18:43:44]Write i2c OK [18:43:44]MH_I2C_Read... [18:43:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:44]Read from MH i2c: E2 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 62 00 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 62 00 EC 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 3B 06 01 00 0E 04 04 00 63 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 D9 [18:43: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 3B 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:44]wFMCommunicate OK [18:43:44]SAM_PROTO_GetFieldsCounters done [18:43:44]requested_item shift.num is exist - process it [18:43:44]requested_item shift.opened is exist - process it [18:43:44]req_shift_opened [18:43:44]FM_GetShiftState [18:43:44]SAM_PROTO_GetShiftState [18:43:44]wFMCommunicate request_size=4 [18:43:44]MH_SAM_APDU [18:43:44]CAPDU: 80 13 01 00 [18:43:44]Write to MH i2c: E2 08 00 ED 07 80 13 01 00 00 00 00 00 71 [18:43:44]Write i2c OK [18:43:44]MH_I2C_Read... [18:43:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:44]Read from MH i2c: E2 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 0E 00 [18:43:44]MH_I2C_Read... [18:43:44]Read from MH i2c: E2 0E 00 ED 07 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 39 [18:43:44]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [18:43:44]wFMCommunicate OK [18:43:44]SAM_PROTO_GetShiftState done [18:43:44]FM_GetShiftState done [18:43:44]req_shift_opened done [18:43:44]requested_item shift.open_date is exist - process it [18:43:44]req_shift_open_date [18:43:44]req_shift_open_date done [18:43:44]produce_requested_data done [18:43:44]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67131,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [18:43:44]process_action_free close_receipt [18:43:44]json_value_free [18:43:44]json_value_free done [18:43:44]process_json_proto returns [18:43:44]Send response to host [18:43:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67131,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [18:43:44]free response buf [18:43:44]execute_script done [18:43:44]execute_script returns [18:43:44]free content buf [18:43:44]Sock 10.Close socket [18:43:44]Sock 10.Thread stoped [18:43:48]OFD Sender: No OFD packet to send [18:43:54]OFD Sender: No OFD packet to send [18:43:59]OFD Sender: No OFD packet to send [18:44:04]OFD Sender: No OFD packet to send [18:44:09]OFD Sender: No OFD packet to send [18:44:14]OFD Sender: No OFD packet to send [18:44:19]OFD Sender: No OFD packet to send [18:44:24]OFD Sender: No OFD packet to send [18:44:29]OFD Sender: No OFD packet to send [18:44:34]OFD Sender: No OFD packet to send [18:44:39]OFD Sender: No OFD packet to send [18:44:44]OFD Sender: No OFD packet to send [18:44:49]OFD Sender: No OFD packet to send [18:44:54]OFD Sender: No OFD packet to send [18:44:59]OFD Sender: No OFD packet to send [18:45:04]OFD Sender: No OFD packet to send [18:45:09]OFD Sender: No OFD packet to send [18:45:14]OFD Sender: No OFD packet to send [18:45:19]OFD Sender: No OFD packet to send [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:49]OFD Sender: No OFD packet to send [18:46:54]OFD Sender: No OFD packet to send [18:46:59]OFD Sender: No OFD packet to send [18:47:04]OFD Sender: No OFD packet to send [18:47:09]OFD Sender: No OFD packet to send [18:47:14]OFD Sender: No OFD packet to send [18:47:19]OFD Sender: No OFD packet to send [18:47:24]OFD Sender: No OFD packet to send [18:47:29]OFD Sender: No OFD packet to send [18:47:34]OFD Sender: No OFD packet to send [18:47:39]OFD Sender: No OFD packet to send [18:47:44]accept exits with 7 [18:47:44]New connection [18:47:44]New thread 3066588516 created [18:47:44]Thread 3066731876 joined [18:47:44]Waiting for new connection... [18:47:44] Sock 7.Parse request [18:47:44]Sock 7.Check first char [18:47:44]Sock 7.First char is OK [18:47:44]request: POST /json_proto HTTP/1.0 [18:47:44]Method: POST [18:47:44]URL: /json_proto [18:47:44]Method is POST - this is cgi request [18:47:44]url: /json_proto [18:47:44]query_string will be loaded in cgi processing [18:47:44]execute_cgi json_proto POST (null) [18:47:44]execute_cgi path=json_proto method=POST [18:47:44]POST find Content-Length [18:47:44]Host: 172.17.41.195:8080 [18:47:44]Content-Length: 674 [18:47:44]Content-Type: application/json [18:47:44] [18:47:44]POST finish read [18:47:44]Found Content-Length = 674 [18:47:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507026", "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" ] } } [18:47:44]execute_script... [18:47: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)507026", "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" ] } } [18:47:44]POST & json_proto [18:47:44]process_json_proto [18:47:44]json parsed OK: [18:47:44]protocol is kg_v1.0 [18:47:44]action value=close_receipt [18:47:44]process_action close_receipt [18:47:44]cmd_close_receipt [18:47:44]MH_GetDate [18:47:44]Write to MH i2c: F0 00 00 EE 07 E4 [18:47:44]Write i2c OK [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: F0 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: F0 09 00 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: F0 09 00 EE 07 00 D0 B1 43 66 FC 21 6F 64 07 [18:47:44]GetLastDocTimeStamp 1715712221 [18:47:44]current date 1715712464 [18:47:44]FM_GetShiftState [18:47:44]SAM_PROTO_GetShiftState [18:47:44]wFMCommunicate request_size=4 [18:47:44]MH_SAM_APDU [18:47:44]CAPDU: 80 13 01 00 [18:47:44]Write to MH i2c: E2 08 00 EF 07 80 13 01 00 00 00 00 00 73 [18:47:44]Write i2c OK [18:47:44]MH_I2C_Read... [18:47:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:44]Read from MH i2c: E2 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 0E 00 [18:47:44]MH_I2C_Read... [18:47:44]Read from MH i2c: E2 0E 00 EF 07 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 3B [18:47:44]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [18:47:44]wFMCommunicate OK [18:47:44]SAM_PROTO_GetShiftState done [18:47:44]FM_GetShiftState done [18:47:44]opened in 1715646054 [18:47:44]opened+sec_in_day 1715732454 [18:47:44]quantity*price = 30029 [18:47:44]sum+1 = 30030 [18:47:44]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 СНО: Общий режим Чек 139 14.05.2024 18:47 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67132 ФПД: 138483508927597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T184744&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67132&fm=138483508927597&tin=02508201610067®Number=0000000000091845&sum=30000 [18:47:45]StoreToDocumentArchive [18:47:45]shift 355 fd 67132 [18:47:45]save to /storage/0355/doc_00067132 [18:47:45]save last doc name /storage/0355/doc_00067132 to /storage/kkm_last_doc_name [18:47:45]save OK [18:47:45]Clear old archive folders... [18:47:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:47:45]tlvbuf is 003A78D0 [18:47:45]SAM_PROTO_ClearQueue [18:47:45]wFMCommunicate request_size=4 [18:47:45]MH_SAM_APDU [18:47:45]CAPDU: 80 09 00 00 [18:47:45]Write to MH i2c: E2 08 00 FC 07 80 09 00 00 00 00 00 00 75 [18:47:45]Write i2c OK [18:47:45]MH_I2C_Read... [18:47:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:45]Read from MH i2c: E2 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 03 00 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 03 00 FC 07 00 90 00 77 [18:47:45]RAPDU: 90 00 [18:47:45]wFMCommunicate OK [18:47:45]SAM_PROTO_ClearQueue done [18:47:45]KKMCreateOFDPacket [18:47:45]OFDProtocolAddRootSTLVToBuf [18:47:45]FM_MakeSignedData [18:47:45]FM_MakeSignedData [18:47:45]SAM_PROTO_SignData [18:47:45]wFMCommunicate request_size=4 [18:47:45]MH_SAM_APDU [18:47:45]CAPDU: 80 0D 01 02 [18:47:45]Write to MH i2c: E2 08 00 FD 07 80 0D 01 02 00 00 00 00 7D [18:47:45]Write i2c OK [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 [18:47:45]MH_I2C_Read... [18:47:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:45]Read from MH i2c: E2 03 00 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 03 00 FD 07 00 90 00 78 [18:47:45]RAPDU: 90 00 [18:47:45]wFMCommunicate OK [18:47:45]wFMCommunicate request_size=255 [18:47:45]MH_SAM_APDU [18:47:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8B 00 00 00 F4 03 04 00 D0 B1 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 7D F3 34 5B [18:47:45]Write to MH i2c: E2 02 01 FE 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 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 8B 00 00 00 F4 03 04 00 D0 B1 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 7D F3 34 5B 00 00 E0 [18:47:45]Write i2c OK [18:47:45]MH_I2C_Read... [18:47:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:45]Read from MH i2c: E2 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 03 00 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 03 00 FE 07 00 90 00 79 [18:47:45]RAPDU: 90 00 [18:47:45]wFMCommunicate OK [18:47:45]wFMCommunicate request_size=7 [18:47:45]MH_SAM_APDU [18:47:45]CAPDU: 80 0D 02 02 02 5C 6D [18:47:45]Write to MH i2c: E2 0A 00 FF 07 80 0D 02 02 02 00 5C 6D 00 00 4D [18:47:45]Write i2c OK [18:47:45]MH_I2C_Read... [18:47:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:45]Read from MH i2c: E2 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 03 00 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 03 00 FF 07 00 90 00 7A [18:47:45]RAPDU: 90 00 [18:47:45]wFMCommunicate OK [18:47:45]wFMCommunicate request_size=4 [18:47:45]MH_SAM_APDU [18:47:45]CAPDU: 80 0D 03 02 [18:47:45]Write to MH i2c: E2 08 00 00 08 80 0D 03 02 00 00 00 00 83 [18:47:45]Write i2c OK [18:47:45]MH_I2C_Read... [18:47:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:45]Read from MH i2c: E2 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 0B 00 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 0B 00 00 08 00 54 98 21 A0 55 66 F2 6C 90 00 4A [18:47:45]RAPDU: 54 98 21 A0 55 66 F2 6C 90 00 [18:47:45]wFMCommunicate OK [18:47:45]SAM_PROTO_SignData done [18:47:45]FM_MakeSignedData done [18:47:45]CreateOFDProtocolMessage [18:47:45]wFMCommunicate request_size=4 [18:47:45]MH_SAM_APDU [18:47:45]CAPDU: 80 11 00 00 [18:47:45]Write to MH i2c: E2 08 00 01 08 80 11 00 00 00 00 00 00 83 [18:47:45]Write i2c OK [18:47:45]MH_I2C_Read... [18:47:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:45]Read from MH i2c: E2 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 17 00 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: E2 17 00 01 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D9 [18:47:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:47:45]wFMCommunicate OK [18:47:45]CreateOFDProtocolMessage done [18:47:45]OFDSenderStorePacket 67132 [18:47:45]StoreOFDPacket docnum=67132 [18:47:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 7B 29 04 01 3A F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8B 00 00 00 F4 03 04 00 D0 B1 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 7D F3 34 5B 5C 6D 54 98 21 A0 55 66 F2 6C [18:47:45]CheckFolder [18:47:45]dirname=/storage/ofd_packets [18:47:45]CheckFolder done [18:47:45]ProducePacketName [18:47:45]name=ofd_packets/00067132 [18:47:45]NVStorageSaveData ofd_packets/00067132 [18:47:45]File name is /storage/ofd_packets/00067132 [18:47:45]Write 298 bytes [18:47:45]NVStorageSaveData done [18:47:45]OFDSenderStorePacket done [18:47:45]KKMCreateOFDPacket done [18:47:45]NVStorageSaveData kkm_last_timestamp [18:47:45]File name is /storage/kkm_last_timestamp [18:47:45]Write 4 bytes [18:47:45]NVStorageSaveData done [18:47:45]ExternCall_PrintAddStr [18:47:45]wPrintStart [18:47:45]Write to MH i2c: 01 00 00 02 08 0A [18:47:45]Write i2c OK [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: 01 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: 01 07 00 [18:47:45]MH_I2C_Read... [18:47:45]Read from MH i2c: 01 07 00 02 08 00 00 00 00 00 FF 0F 1F [18:47:45]RasterBufferAndPrint [18:47:45]line Счет N : (1)507026 [18:47:45]line ИНН: 02508201610067 [18:47:45]line Контрольно-Кассовый Чек [18:47:45]line ПРОДАЖА [18:47:45]line ТРК (МРК, ГНК) : 21 [18:47:45]line Товар: 2710194210 [18:47:45]line ДТ-К-5 [18:47:45]line 4.020 * 74.70 [18:47:45]line = 300.29 [18:47:45]line НДС 12% НСП 1% [18:47:45]line > о реализуемом товаре [18:47:45]line ОКРУГЛЕНИЕ: -0.29 [18:47:45]line ИТОГО: 300.00 [18:47:45]line Внесено: 300.00 [18:47:45]line СДАЧА: 0.00 [18:47:45]line НСП 1% : 2.66 [18:47:45]line НДС 12% : 31.89 [18:47:45]line Наличными: 300.00 [18:47:45]line Безнал.: 0.00 [18:47:45]line Место: АЗС № 91 "Партнер Нефть" [18:47:46]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:47:46]line СНО: Общий режим [18:47:46]line Чек 139 14.05.2024 18:47 [18:47:46]line Смена: 355 ФФД: 1.0 [18:47:46]line ЗНМ: 0300000119 [18:47:46]line РНМ: 0000000000091845 [18:47:46]line Версия ККМ: 001 [18:47:46]line ФМ: 0000000000871829 [18:47:46]line ФД: 67132 [18:47:46]line ФПД: 138483508927597 [18:47:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T184744&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67132&fm=138483508927597&tin=02508201610067®Number=0000000000091845&sum=30000 [18:47:46]OFD Sender: Processing packet 67132 [packets to send 35, broken 34] [18:47:46]ProducePacketName [18:47:46]name=ofd_packets/00067132 [18:47:46]OFD Sender: To server: pG, [18:47:46]CommunicateWithHost lk.salyk.kg:30040 [18:47:46]ConnectInit lk.salyk.kg [18:47:46]written 0, free lines is 4095 [18:47:46]Connected sock=10 [18:47:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 7B 29 04 01 3A F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8B 00 00 00 F4 03 04 00 D0 B1 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 7D F3 34 5B 5C 6D 54 98 21 A0 55 66 F2 6C [18:47: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 2A 24 47 00 64 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3C 06 01 00 F4 03 04 00 AF 59 43 66 B6 04 01 00 00 09 0A 43 B2 24 FB 8E 48 [18:47:46]CommunicateWithHost err = 0 [18:47:46]CheckOFDResponse [18:47:46]1017 (14) - 77093643461234 [18:47:46]1041 (16) - 0000000000871829 [18:47:46]1040 (4) - 67132 [18:47:46]1012 (4) - 14.05.2024 12:31 [18:47:46]1206 (1) - 0 [18:47:46]OFD Sender: Remove packet 67132 [18:47:46]ProducePacketName [18:47:46]name=ofd_packets/00067132 [18:47:46]NVStorageDeleteData [18:47:46]Write to MH i2c: 01 00 00 2C 08 34 [18:47:46]Write i2c OK [18:47:46]MH_I2C_Read... [18:47:46]Read from MH i2c: 01 [18:47:46]MH_I2C_Read... [18:47:46]Read from MH i2c: 01 07 00 [18:47:46]MH_I2C_Read... [18:47:46]Read from MH i2c: 01 07 00 2C 08 00 00 00 00 00 CF 0C 16 [18:47:46]RasterBufferAndPrint [18:47:46]line [18:47:46]line [18:47:46]line [18:47:46]line [18:47:46]line [18:47:46]written 0, free lines is 3285 [18:47:46]MH_Cut [18:47:46]Write to MH i2c: D1 01 00 33 08 01 0D [18:47:46]Write i2c OK [18:47:46]MH_I2C_Read... [18:47:46]Read from MH i2c: D1 [18:47:46]MH_I2C_Read... [18:47:46]Read from MH i2c: D1 01 00 [18:47:46]MH_I2C_Read... [18:47:46]Read from MH i2c: D1 01 00 33 08 00 0C [18:47:46]Write to MH i2c: 01 00 00 34 08 3C [18:47:46]Write i2c OK [18:47:46]MH_I2C_Read... [18:47:46]OFD Sender: No OFD packet to send [18:47:47]*** Cut start [18:47:47]*** Purtial cut [18:47:47]*** CUTSNS_PIN = 0 [18:47:47]*** Stage 1: CUTSNS_PIN = 1 [18:47:49]Read from MH i2c: 01 [18:47:49]MH_I2C_Read... [18:47:49]*** Stop cut motor [18:47:49]*** Cut end [18:47:49]Read from MH i2c: 01 07 00 [18:47:49]MH_I2C_Read... [18:47:49]Read from MH i2c: 01 07 00 34 08 00 00 00 00 00 FF 0F 51 [18:47:49]process_action close_receipt done [18:47:49]requested_data is exist [18:47:49]produce_requested_data [18:47:49]requested_item fm.sn is exist - process it [18:47:49]wFMCommunicate request_size=4 [18:47:49]MH_SAM_APDU [18:47:49]CAPDU: 80 11 00 00 [18:47:49]Write to MH i2c: E2 08 00 35 08 80 11 00 00 00 00 00 00 B7 [18:47:49]Write i2c OK [18:47:49]MH_I2C_Read... [18:47:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:49]Read from MH i2c: E2 [18:47:49]MH_I2C_Read... [18:47:49]Read from MH i2c: E2 17 00 [18:47:49]MH_I2C_Read... [18:47:49]Read from MH i2c: E2 17 00 35 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0D [18: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 [18:47:49]wFMCommunicate OK [18:47:49]requested_item fd.num is exist - process it [18:47:49]SAM_PROTO_GetFieldsCounters [18:47:49]wFMCommunicate request_size=4 [18:47:49]MH_SAM_APDU [18:47:49]CAPDU: 80 13 00 00 [18:47:49]Write to MH i2c: E2 08 00 36 08 80 13 00 00 00 00 00 00 BA [18:47:49]Write i2c OK [18:47:49]MH_I2C_Read... [18:47:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:49]Read from MH i2c: E2 [18:47:49]MH_I2C_Read... [18:47:49]Read from MH i2c: E2 62 00 [18:47:49]MH_I2C_Read... [18:47:49]Read from MH i2c: E2 62 00 36 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 3C 06 01 00 0E 04 04 00 63 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 28 [18:47:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 3C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:49]wFMCommunicate OK [18:47:49]SAM_PROTO_GetFieldsCounters done [18:47:49]requested_item shift.num is exist - process it [18:47:49]requested_item shift.opened is exist - process it [18:47:49]req_shift_opened [18:47:49]FM_GetShiftState [18:47:49]SAM_PROTO_GetShiftState [18:47:49]wFMCommunicate request_size=4 [18:47:49]MH_SAM_APDU [18:47:49]CAPDU: 80 13 01 00 [18:47:49]Write to MH i2c: E2 08 00 37 08 80 13 01 00 00 00 00 00 BC [18:47:49]Write i2c OK [18:47:49]MH_I2C_Read... [18:47:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:49]Read from MH i2c: E2 [18:47:49]MH_I2C_Read... [18:47:49]Read from MH i2c: E2 0E 00 [18:47:49]MH_I2C_Read... [18:47:49]Read from MH i2c: E2 0E 00 37 08 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 84 [18:47:49]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [18:47:49]wFMCommunicate OK [18:47:49]SAM_PROTO_GetShiftState done [18:47:49]FM_GetShiftState done [18:47:49]req_shift_opened done [18:47:49]requested_item shift.open_date is exist - process it [18:47:49]req_shift_open_date [18:47:49]req_shift_open_date done [18:47:49]produce_requested_data done [18:47:49]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67132,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [18:47:49]process_action_free close_receipt [18:47:49]json_value_free [18:47:49]json_value_free done [18:47:49]process_json_proto returns [18:47:49]Send response to host [18:47:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67132,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [18:47:49]free response buf [18:47:49]execute_script done [18:47:49]execute_script returns [18:47:49]free content buf [18:47:49]Sock 7.Close socket [18:47:49]Sock 7.Thread stoped [18:47:51]OFD Sender: No OFD packet to send [18:47:56]OFD Sender: No OFD packet to send [18:48:01]OFD Sender: No OFD packet to send [18:48:06]OFD Sender: No OFD packet to send [18:48:11]OFD Sender: No OFD packet to send [18:48:16]OFD Sender: No OFD packet to send [18:48:21]OFD Sender: No OFD packet to send [18:48:26]OFD Sender: No OFD packet to send [18:48:31]OFD Sender: No OFD packet to send [18:48:36]OFD Sender: No OFD packet to send [18:48:41]OFD Sender: No OFD packet to send [18:48:46]OFD Sender: No OFD packet to send [18:48:51]OFD Sender: No OFD packet to send [18:48:56]OFD Sender: No OFD packet to send [18:49:01]OFD Sender: No OFD packet to send [18:49:06]OFD Sender: No OFD packet to send [18:49:11]OFD Sender: No OFD packet to send [18:49:16]OFD Sender: No OFD packet to send [18:49:21]OFD Sender: No OFD packet to send [18:49:26]OFD Sender: No OFD packet to send [18:49:31]OFD Sender: No OFD packet to send [18:49:36]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:32]accept exits with 9 [18:54:32]New connection [18:54:32]New thread 3066731876 created [18:54:32]Thread 3066588516 joined [18:54:32]Waiting for new connection... [18:54:32] Sock 9.Parse request [18:54:32]Sock 9.Check first char [18:54:32]Sock 9.First char is OK [18:54:32]request: POST /json_proto HTTP/1.0 [18:54:32]Method: POST [18:54:32]URL: /json_proto [18:54:32]Method is POST - this is cgi request [18:54:32]url: /json_proto [18:54:32]query_string will be loaded in cgi processing [18:54:32]execute_cgi json_proto POST (null) [18:54:32]execute_cgi path=json_proto method=POST [18:54:32]POST find Content-Length [18:54:32]Host: 172.17.41.195:8080 [18:54:32]Content-Length: 677 [18:54:32]Content-Type: application/json [18:54:32] [18:54:32]POST finish read [18:54:32]Found Content-Length = 677 [18:54:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 3.000, "sum" : 200.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:32]execute_script... [18:54: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)507027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 3.000, "sum" : 200.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:32]POST & json_proto [18:54:32]process_json_proto [18:54:32]json parsed OK: [18:54:32]protocol is kg_v1.0 [18:54:32]action value=close_receipt [18:54:32]process_action close_receipt [18:54:32]cmd_close_receipt [18:54:32]MH_GetDate [18:54:32]Write to MH i2c: F0 00 00 38 08 2F [18:54:32]Write i2c OK [18:54:32]MH_I2C_Read... [18:54:32]Read from MH i2c: F0 [18:54:32]MH_I2C_Read... [18:54:32]Read from MH i2c: F0 09 00 [18:54:32]MH_I2C_Read... [18:54:32]Read from MH i2c: F0 09 00 38 08 00 69 B3 43 66 FC 21 6F 64 ED [18:54:32]GetLastDocTimeStamp 1715712464 [18:54:32]current date 1715712873 [18:54:32]FM_GetShiftState [18:54:32]SAM_PROTO_GetShiftState [18:54:32]wFMCommunicate request_size=4 [18:54:32]MH_SAM_APDU [18:54:32]CAPDU: 80 13 01 00 [18:54:32]Write to MH i2c: E2 08 00 39 08 80 13 01 00 00 00 00 00 BE [18:54:32]Write i2c OK [18:54:32]MH_I2C_Read... [18:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:32]Read from MH i2c: E2 [18:54:32]MH_I2C_Read... [18:54:32]Read from MH i2c: E2 0E 00 [18:54:32]MH_I2C_Read... [18:54:32]Read from MH i2c: E2 0E 00 39 08 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 86 [18:54:32]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [18:54:32]wFMCommunicate OK [18:54:32]SAM_PROTO_GetShiftState done [18:54:32]FM_GetShiftState done [18:54:32]opened in 1715646054 [18:54:32]opened+sec_in_day 1715732454 [18:54:32]quantity*price = 20040 [18:54:32]sum+1 = 20041 [18:54:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 140 14.05.2024 18:54 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67133 ФПД: 29305003819113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T185433&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67133&fm=29305003819113&tin=02508201610067®Number=0000000000091845&sum=20000 [18:54:33]StoreToDocumentArchive [18:54:33]shift 355 fd 67133 [18:54:33]save to /storage/0355/doc_00067133 [18:54:33]save last doc name /storage/0355/doc_00067133 to /storage/kkm_last_doc_name [18:54:33]save OK [18:54:33]Clear old archive folders... [18:54:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:33]tlvbuf is B6F1F8E0 [18:54:33]SAM_PROTO_ClearQueue [18:54:33]wFMCommunicate request_size=4 [18:54:33]MH_SAM_APDU [18:54:33]CAPDU: 80 09 00 00 [18:54:33]Write to MH i2c: E2 08 00 46 08 80 09 00 00 00 00 00 00 C0 [18:54:33]Write i2c OK [18:54:33]MH_I2C_Read... [18:54:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:33]Read from MH i2c: E2 [18:54:33]MH_I2C_Read... [18:54:33]Read from MH i2c: E2 03 00 [18:54:33]MH_I2C_Read... [18:54:33]Read from MH i2c: E2 03 00 46 08 00 90 00 C2 [18:54:33]RAPDU: 90 00 [18:54:33]wFMCommunicate OK [18:54:33]SAM_PROTO_ClearQueue done [18:54:33]KKMCreateOFDPacket [18:54:33]OFDProtocolAddRootSTLVToBuf [18:54:33]FM_MakeSignedData [18:54:33]FM_MakeSignedData [18:54:33]SAM_PROTO_SignData [18:54:33]wFMCommunicate request_size=4 [18:54:33]MH_SAM_APDU [18:54:33]CAPDU: 80 0D 01 02 [18:54:33]Write to MH i2c: E2 08 00 47 08 80 0D 01 02 00 00 00 00 C8 [18:54:33]Write i2c OK [18:54:33]MH_I2C_Read... [18:54:33]Read from MH i2c: E2 [18:54:33]MH_I2C_Read... [18:54:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:33]Read from MH i2c: E2 03 00 [18:54:33]MH_I2C_Read... [18:54:33]Read from MH i2c: E2 03 00 47 08 00 90 00 C3 [18:54:33]RAPDU: 90 00 [18:54:33]wFMCommunicate OK [18:54:33]wFMCommunicate request_size=255 [18:54:33]MH_SAM_APDU [18:54: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 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 69 B3 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 1A [18:54:33]Write to MH i2c: E2 02 01 48 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 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 69 B3 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 1A 00 00 5A [18:54:33]Write i2c OK [18:54:33]MH_I2C_Read... [18:54:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:34]Read from MH i2c: E2 [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: E2 03 00 [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: E2 03 00 48 08 00 90 00 C4 [18:54:34]RAPDU: 90 00 [18:54:34]wFMCommunicate OK [18:54:34]wFMCommunicate request_size=10 [18:54:34]MH_SAM_APDU [18:54:34]CAPDU: 80 0D 02 02 05 A7 1A 57 C0 69 [18:54:34]Write to MH i2c: E2 0D 00 49 08 80 0D 02 02 05 00 A7 1A 57 C0 69 00 00 16 [18:54:34]Write i2c OK [18:54:34]MH_I2C_Read... [18:54:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:34]Read from MH i2c: E2 [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: E2 03 00 [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: E2 03 00 49 08 00 90 00 C5 [18:54:34]RAPDU: 90 00 [18:54:34]wFMCommunicate OK [18:54:34]wFMCommunicate request_size=4 [18:54:34]MH_SAM_APDU [18:54:34]CAPDU: 80 0D 03 02 [18:54:34]Write to MH i2c: E2 08 00 4A 08 80 0D 03 02 00 00 00 00 CD [18:54:34]Write i2c OK [18:54:34]MH_I2C_Read... [18:54:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:34]Read from MH i2c: E2 [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: E2 0B 00 [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: E2 0B 00 4A 08 00 87 A7 3A CF 12 81 F0 28 90 00 B0 [18:54:34]RAPDU: 87 A7 3A CF 12 81 F0 28 90 00 [18:54:34]wFMCommunicate OK [18:54:34]SAM_PROTO_SignData done [18:54:34]FM_MakeSignedData done [18:54:34]CreateOFDProtocolMessage [18:54:34]wFMCommunicate request_size=4 [18:54:34]MH_SAM_APDU [18:54:34]CAPDU: 80 11 00 00 [18:54:34]Write to MH i2c: E2 08 00 4B 08 80 11 00 00 00 00 00 00 CD [18:54:34]Write i2c OK [18:54:34]MH_I2C_Read... [18:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:34]Read from MH i2c: E2 [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: E2 17 00 [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: E2 17 00 4B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 23 [18:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:54:34]wFMCommunicate OK [18:54:34]CreateOFDProtocolMessage done [18:54:34]OFDSenderStorePacket 67133 [18:54:34]StoreOFDPacket docnum=67133 [18:54: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 AF C1 07 01 56 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 69 B3 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 1A A7 1A 57 C0 69 87 A7 3A CF 12 81 F0 28 [18:54:34]CheckFolder [18:54:34]dirname=/storage/ofd_packets [18:54:34]CheckFolder done [18:54:34]ProducePacketName [18:54:34]name=ofd_packets/00067133 [18:54:34]NVStorageSaveData ofd_packets/00067133 [18:54:34]File name is /storage/ofd_packets/00067133 [18:54:34]Write 301 bytes [18:54:34]NVStorageSaveData done [18:54:34]OFDSenderStorePacket done [18:54:34]KKMCreateOFDPacket done [18:54:34]NVStorageSaveData kkm_last_timestamp [18:54:34]File name is /storage/kkm_last_timestamp [18:54:34]Write 4 bytes [18:54:34]NVStorageSaveData done [18:54:34]ExternCall_PrintAddStr [18:54:34]wPrintStart [18:54:34]Write to MH i2c: 01 00 00 4C 08 54 [18:54:34]Write i2c OK [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: 01 [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: 01 07 00 [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: 01 07 00 4C 08 00 00 00 00 00 FF 0F 69 [18:54:34]RasterBufferAndPrint [18:54:34]line Счет N : (1)507027 [18:54:34]line ИНН: 02508201610067 [18:54:34]line Контрольно-Кассовый Чек [18:54:34]line ПРОДАЖА [18:54:34]line ТРК (МРК, ГНК) : 33 [18:54:34]line Товар: 2710124130 [18:54:34]line Аи-92-К-5 [18:54:34]line 3.000 * 66.80 [18:54:34]line = 200.40 [18:54:34]line НДС 12% НСП 1% [18:54:34]line > о реализуемом товаре [18:54:34]line ОКРУГЛЕНИЕ: -0.40 [18:54:34]line ИТОГО: 200.00 [18:54:34]line Внесено: 200.00 [18:54:34]line СДАЧА: 0.00 [18:54:34]line НСП 1% : 1.77 [18:54:34]line НДС 12% : 21.28 [18:54:34]line Наличными: 200.00 [18:54:34]line Безнал.: 0.00 [18:54:34]line Место: АЗС № 91 "Партнер Нефть" [18:54:34]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [18:54:34]line СНО: Общий режим [18:54:34]line Чек 140 14.05.2024 18:54 [18:54:34]line Смена: 355 ФФД: 1.0 [18:54:34]line ЗНМ: 0300000119 [18:54:34]line РНМ: 0000000000091845 [18:54:34]line Версия ККМ: 001 [18:54:34]line ФМ: 0000000000871829 [18:54:34]line ФД: 67133 [18:54:34]line ФПД: 29305003819113 [18:54:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T185433&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67133&fm=29305003819113&tin=02508201610067®Number=0000000000091845&sum=20000 [18:54:34]OFD Sender: Processing packet 67133 [packets to send 35, broken 34] [18:54:34]ProducePacketName [18:54:34]name=ofd_packets/00067133 [18:54:34]OFD Sender: To server: pG, [18:54:34]CommunicateWithHost lk.salyk.kg:30040 [18:54:34]ConnectInit lk.salyk.kg [18:54:34]written 0, free lines is 4095 [18:54:34]Connected sock=10 [18:54: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 AF C1 07 01 56 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 69 B3 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 1A A7 1A 57 C0 69 87 A7 3A CF 12 81 F0 28 [18:54: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 EC 93 47 00 A0 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 3D 06 01 00 F4 03 04 00 48 5B 43 66 B6 04 01 00 00 C4 49 69 7B F6 89 89 FB [18:54:34]CommunicateWithHost err = 0 [18:54:34]CheckOFDResponse [18:54:34]1017 (14) - 77093643461234 [18:54:34]1041 (16) - 0000000000871829 [18:54:34]1040 (4) - 67133 [18:54:34]1012 (4) - 14.05.2024 12:38 [18:54:34]1206 (1) - 0 [18:54:34]OFD Sender: Remove packet 67133 [18:54:34]ProducePacketName [18:54:34]name=ofd_packets/00067133 [18:54:34]NVStorageDeleteData [18:54:34]Write to MH i2c: 01 00 00 76 08 7E [18:54:34]Write i2c OK [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: 01 [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: 01 07 00 [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: 01 07 00 76 08 00 00 00 00 00 CD 0C 5E [18:54:34]RasterBufferAndPrint [18:54:34]line [18:54:34]line [18:54:34]line [18:54:34]line [18:54:34]line [18:54:34]written 0, free lines is 3283 [18:54:34]MH_Cut [18:54:34]Write to MH i2c: D1 01 00 7D 08 01 57 [18:54:34]Write i2c OK [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: D1 [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: D1 01 00 [18:54:34]MH_I2C_Read... [18:54:34]Read from MH i2c: D1 01 00 7D 08 00 56 [18:54:34]Write to MH i2c: 01 00 00 7E 08 86 [18:54:34]Write i2c OK [18:54:34]MH_I2C_Read... [18:54:35]OFD Sender: No OFD packet to send [18:54:35]*** Cut start [18:54:35]*** Purtial cut [18:54:35]*** Stage 1: CUTSNS_PIN = 1 [18:54:36]Read from MH i2c: 01 [18:54:36]MH_I2C_Read... [18:54:36]*** Stop cut motor [18:54:36]*** Cut end [18:54:36]Read from MH i2c: 01 07 00 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: 01 07 00 7E 08 00 00 00 00 00 FF 0F 9B [18:54:36]process_action close_receipt done [18:54:36]requested_data is exist [18:54:36]produce_requested_data [18:54:36]requested_item fm.sn is exist - process it [18:54:36]wFMCommunicate request_size=4 [18:54:36]MH_SAM_APDU [18:54:36]CAPDU: 80 11 00 00 [18:54:36]Write to MH i2c: E2 08 00 7F 08 80 11 00 00 00 00 00 00 01 [18:54:36]Write i2c OK [18:54:36]MH_I2C_Read... [18:54:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:36]Read from MH i2c: E2 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 17 00 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 17 00 7F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 57 [18:54:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [18:54:36]wFMCommunicate OK [18:54:36]requested_item fd.num is exist - process it [18:54:36]SAM_PROTO_GetFieldsCounters [18:54:36]wFMCommunicate request_size=4 [18:54:36]MH_SAM_APDU [18:54:36]CAPDU: 80 13 00 00 [18:54:36]Write to MH i2c: E2 08 00 80 08 80 13 00 00 00 00 00 00 04 [18:54:36]Write i2c OK [18:54:36]MH_I2C_Read... [18:54:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:36]Read from MH i2c: E2 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 62 00 [18:54:36]MH_I2C_Read... [18:54:36]Read from MH i2c: E2 62 00 80 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 3D 06 01 00 0E 04 04 00 63 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 76 [18:54:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 3D 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:36]wFMCommunicate OK [18:54:36]SAM_PROTO_GetFieldsCounters done [18:54:36]requested_item shift.num is exist - process it [18:54:36]requested_item shift.opened is exist - process it [18:54:36]req_shift_opened [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 81 08 80 13 01 00 00 00 00 00 06 [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 81 08 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 CE [18:54:36]RAPDU: 09 00 01 66 AE 42 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]req_shift_opened done [18:54:36]requested_item shift.open_date is exist - process it [18:54:36]req_shift_open_date [18:54:36]req_shift_open_date done [18:54:36]produce_requested_data done [18:54:36]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67133,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [18:54:36]process_action_free close_receipt [18:54:36]json_value_free [18:54:36]json_value_free done [18:54:36]process_json_proto returns [18:54:36]Send response to host [18:54:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67133,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [18:54:36]free response buf [18:54:36]execute_script done [18:54:36]execute_script returns [18:54:36]free content buf [18:54:36]Sock 9.Close socket [18:54:36]Sock 9.Thread stoped [18:54:40]OFD Sender: No OFD packet to send [18:54:45]OFD Sender: No OFD packet to send [18:54:50]OFD Sender: No OFD packet to send [18:54:55]OFD Sender: No OFD packet to send [18:55:00]OFD Sender: No OFD packet to send [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:15]OFD Sender: No OFD packet to send [18:58:20]OFD Sender: No OFD packet to send [18:58:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:05]OFD Sender: No OFD packet to send [18:59:10]OFD Sender: No OFD packet to send [18:59:15]OFD Sender: No OFD packet to send [18:59:20]OFD Sender: No OFD packet to send [18:59:25]OFD Sender: No OFD packet to send [18:59:30]OFD Sender: No OFD packet to send [18:59:35]OFD Sender: No OFD packet to send [18:59:40]OFD Sender: No OFD packet to send [18:59:45]OFD Sender: No OFD packet to send [18:59:50]OFD Sender: No OFD packet to send [18:59:55]OFD Sender: No OFD packet to send [19:00:00]OFD Sender: No OFD packet to send [19:00:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:15]OFD Sender: No OFD packet to send [19:00:20]OFD Sender: No OFD packet to send [19:00:25]OFD Sender: No OFD packet to send [19:00:30]OFD Sender: No OFD packet to send [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:50]OFD Sender: No OFD packet to send [19:00:55]OFD Sender: No OFD packet to send [19:01:00]OFD Sender: No OFD packet to send [19:01:05]OFD Sender: No OFD packet to send [19:01:10]OFD Sender: No OFD packet to send [19:01:15]OFD Sender: No OFD packet to send [19:01:20]OFD Sender: No OFD packet to send [19:01:25]OFD Sender: No OFD packet to send [19:01:30]OFD Sender: No OFD packet to send [19:01:35]OFD Sender: No OFD packet to send [19:01:40]OFD Sender: No OFD packet to send [19:01:45]OFD Sender: No OFD packet to send [19:01:50]OFD Sender: No OFD packet to send [19:01:55]OFD Sender: No OFD packet to send [19:02:00]OFD Sender: No OFD packet to send [19:02:05]OFD Sender: No OFD packet to send [19:02:10]OFD Sender: No OFD packet to send [19:02:15]OFD Sender: No OFD packet to send [19:02:20]OFD Sender: No OFD packet to send [19:02:25]OFD Sender: No OFD packet to send [19:02:30]OFD Sender: No OFD packet to send [19:02:35]OFD Sender: No OFD packet to send [19:02:40]OFD Sender: No OFD packet to send [19:02:45]OFD Sender: No OFD packet to send [19:02:50]OFD Sender: No OFD packet to send [19:02:55]OFD Sender: No OFD packet to send [19:03:00]OFD Sender: No OFD packet to send [19:03:05]OFD Sender: No OFD packet to send [19:03:10]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:25]OFD Sender: No OFD packet to send [19:03:30]OFD Sender: No OFD packet to send [19:03:35]OFD Sender: No OFD packet to send [19:03:40]OFD Sender: No OFD packet to send [19:03:45]OFD Sender: No OFD packet to send [19:03:50]OFD Sender: No OFD packet to send [19:03:55]OFD Sender: No OFD packet to send [19:04:00]OFD Sender: No OFD packet to send [19:04:05]OFD Sender: No OFD packet to send [19:04:10]OFD Sender: No OFD packet to send [19:04:15]OFD Sender: No OFD packet to send [19:04:20]OFD Sender: No OFD packet to send [19:04:25]OFD Sender: No OFD packet to send [19:04:30]OFD Sender: No OFD packet to send [19:04:35]OFD Sender: No OFD packet to send [19:04:40]OFD Sender: No OFD packet to send [19:04:45]accept exits with 7 [19:04:45]New connection [19:04:45]New thread 3066588516 created [19:04:45]Thread 3066731876 joined [19:04:45]Waiting for new connection... [19:04:45] Sock 7.Parse request [19:04:45]Sock 7.Check first char [19:04:45]Sock 7.First char is OK [19:04:45]request: POST /json_proto HTTP/1.0 [19:04:45]Method: POST [19:04:45]URL: /json_proto [19:04:45]Method is POST - this is cgi request [19:04:45]url: /json_proto [19:04:45]query_string will be loaded in cgi processing [19:04:45]execute_cgi json_proto POST (null) [19:04:45]execute_cgi path=json_proto method=POST [19:04:45]POST find Content-Length [19:04:45]Host: 172.17.41.195:8080 [19:04:45]Content-Length: 678 [19:04:45]Content-Type: application/json [19:04:45] [19:04:45]POST finish read [19:04:45]Found Content-Length = 678 [19:04:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507028", "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" ] } } [19:04:45]execute_script... [19:04: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)507028", "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" ] } } [19:04:45]POST & json_proto [19:04:45]process_json_proto [19:04:45]json parsed OK: [19:04:45]protocol is kg_v1.0 [19:04:45]action value=close_receipt [19:04:45]process_action close_receipt [19:04:45]cmd_close_receipt [19:04:45]MH_GetDate [19:04:45]Write to MH i2c: F0 00 00 82 08 79 [19:04:45]Write i2c OK [19:04:45]MH_I2C_Read... [19:04:45]Read from MH i2c: F0 [19:04:45]MH_I2C_Read... [19:04:45]Read from MH i2c: F0 09 00 [19:04:45]MH_I2C_Read... [19:04:45]Read from MH i2c: F0 09 00 82 08 00 CD B5 43 66 FC 21 6F 64 9D [19:04:45]GetLastDocTimeStamp 1715712873 [19:04:45]current date 1715713485 [19:04:45]FM_GetShiftState [19:04:45]SAM_PROTO_GetShiftState [19:04:45]wFMCommunicate request_size=4 [19:04:45]MH_SAM_APDU [19:04:45]CAPDU: 80 13 01 00 [19:04:45]Write to MH i2c: E2 08 00 83 08 80 13 01 00 00 00 00 00 08 [19:04:45]Write i2c OK [19:04:45]MH_I2C_Read... [19:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:45]Read from MH i2c: E2 [19:04:45]MH_I2C_Read... [19:04:45]Read from MH i2c: E2 0E 00 [19:04:45]MH_I2C_Read... [19:04:45]Read from MH i2c: E2 0E 00 83 08 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D0 [19:04:45]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:04:45]wFMCommunicate OK [19:04:45]SAM_PROTO_GetShiftState done [19:04:45]FM_GetShiftState done [19:04:45]opened in 1715646054 [19:04:45]opened+sec_in_day 1715732454 [19:04:45]quantity*price = 80026 [19:04:45]sum+1 = 80027 [19:04:45]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 СНО: Общий режим Чек 141 14.05.2024 19:04 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67134 ФПД: 177997928789518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T190446&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67134&fm=177997928789518&tin=02508201610067®Number=0000000000091845&sum=80000 [19:04:46]StoreToDocumentArchive [19:04:46]shift 355 fd 67134 [19:04:46]save to /storage/0355/doc_00067134 [19:04:46]save last doc name /storage/0355/doc_00067134 to /storage/kkm_last_doc_name [19:04:46]save OK [19:04:46]Clear old archive folders... [19:04:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:04:46]tlvbuf is 0032C3C0 [19:04:46]SAM_PROTO_ClearQueue [19:04:46]wFMCommunicate request_size=4 [19:04:46]MH_SAM_APDU [19:04:46]CAPDU: 80 09 00 00 [19:04:46]Write to MH i2c: E2 08 00 90 08 80 09 00 00 00 00 00 00 0A [19:04:46]Write i2c OK [19:04:46]MH_I2C_Read... [19:04:46]Read from MH i2c: E2 [19:04:46]MH_I2C_Read... [19:04:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:46]Read from MH i2c: E2 03 00 [19:04:46]MH_I2C_Read... [19:04:46]Read from MH i2c: E2 03 00 90 08 00 90 00 0C [19:04:46]RAPDU: 90 00 [19:04:46]wFMCommunicate OK [19:04:46]SAM_PROTO_ClearQueue done [19:04:46]KKMCreateOFDPacket [19:04:46]OFDProtocolAddRootSTLVToBuf [19:04:46]FM_MakeSignedData [19:04:46]FM_MakeSignedData [19:04:46]SAM_PROTO_SignData [19:04:46]wFMCommunicate request_size=4 [19:04:46]MH_SAM_APDU [19:04:46]CAPDU: 80 0D 01 02 [19:04:46]Write to MH i2c: E2 08 00 91 08 80 0D 01 02 00 00 00 00 12 [19:04:46]Write i2c OK [19:04:46]MH_I2C_Read... [19:04:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:46]Read from MH i2c: E2 [19:04:46]MH_I2C_Read... [19:04:46]Read from MH i2c: E2 03 00 [19:04:46]MH_I2C_Read... [19:04:46]Read from MH i2c: E2 03 00 91 08 00 90 00 0D [19:04:46]RAPDU: 90 00 [19:04:46]wFMCommunicate OK [19:04:46]wFMCommunicate request_size=255 [19:04:46]MH_SAM_APDU [19:04:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8D 00 00 00 F4 03 04 00 CE B5 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A1 [19:04:46]Write to MH i2c: E2 02 01 92 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 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 8D 00 00 00 F4 03 04 00 CE B5 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A1 00 00 AE [19:04:46]Write i2c OK [19:04:46]MH_I2C_Read... [19:04:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:46]Read from MH i2c: E2 [19:04:46]MH_I2C_Read... [19:04:46]Read from MH i2c: E2 03 00 [19:04:46]MH_I2C_Read... [19:04:46]Read from MH i2c: E2 03 00 92 08 00 90 00 0E [19:04:46]RAPDU: 90 00 [19:04:46]wFMCommunicate OK [19:04:46]wFMCommunicate request_size=10 [19:04:46]MH_SAM_APDU [19:04:46]CAPDU: 80 0D 02 02 05 E3 5F 50 F6 0E [19:04:46]Write to MH i2c: E2 0D 00 93 08 80 0D 02 02 05 00 E3 5F 50 F6 0E 00 00 B5 [19:04:46]Write i2c OK [19:04:46]MH_I2C_Read... [19:04:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:47]Read from MH i2c: E2 [19:04:47]MH_I2C_Read... [19:04:47]Read from MH i2c: E2 03 00 [19:04:47]MH_I2C_Read... [19:04:47]Read from MH i2c: E2 03 00 93 08 00 90 00 0F [19:04:47]RAPDU: 90 00 [19:04:47]wFMCommunicate OK [19:04:47]wFMCommunicate request_size=4 [19:04:47]MH_SAM_APDU [19:04:47]CAPDU: 80 0D 03 02 [19:04:47]Write to MH i2c: E2 08 00 94 08 80 0D 03 02 00 00 00 00 17 [19:04:47]Write i2c OK [19:04:47]MH_I2C_Read... [19:04:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:47]Read from MH i2c: E2 [19:04:47]MH_I2C_Read... [19:04:47]Read from MH i2c: E2 0B 00 [19:04:47]MH_I2C_Read... [19:04:47]Read from MH i2c: E2 0B 00 94 08 00 4A 2D 18 E3 A0 E4 3C 6F 90 00 B9 [19:04:47]RAPDU: 4A 2D 18 E3 A0 E4 3C 6F 90 00 [19:04:47]wFMCommunicate OK [19:04:47]SAM_PROTO_SignData done [19:04:47]FM_MakeSignedData done [19:04:47]CreateOFDProtocolMessage [19:04:47]wFMCommunicate request_size=4 [19:04:47]MH_SAM_APDU [19:04:47]CAPDU: 80 11 00 00 [19:04:47]Write to MH i2c: E2 08 00 95 08 80 11 00 00 00 00 00 00 17 [19:04:47]Write i2c OK [19:04:47]MH_I2C_Read... [19:04:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:47]Read from MH i2c: E2 [19:04:47]MH_I2C_Read... [19:04:47]Read from MH i2c: E2 17 00 [19:04:47]MH_I2C_Read... [19:04:47]Read from MH i2c: E2 17 00 95 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 6D [19:04:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:04:47]wFMCommunicate OK [19:04:47]CreateOFDProtocolMessage done [19:04:47]OFDSenderStorePacket 67134 [19:04:47]StoreOFDPacket docnum=67134 [19:04: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 34 7E 07 01 BE 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8D 00 00 00 F4 03 04 00 CE B5 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A1 E3 5F 50 F6 0E 4A 2D 18 E3 A0 E4 3C 6F [19:04:47]CheckFolder [19:04:47]dirname=/storage/ofd_packets [19:04:47]CheckFolder done [19:04:47]ProducePacketName [19:04:47]name=ofd_packets/00067134 [19:04:47]NVStorageSaveData ofd_packets/00067134 [19:04:47]File name is /storage/ofd_packets/00067134 [19:04:47]Write 301 bytes [19:04:47]NVStorageSaveData done [19:04:47]OFDSenderStorePacket done [19:04:47]KKMCreateOFDPacket done [19:04:47]NVStorageSaveData kkm_last_timestamp [19:04:47]File name is /storage/kkm_last_timestamp [19:04:47]Write 4 bytes [19:04:47]NVStorageSaveData done [19:04:47]ExternCall_PrintAddStr [19:04:47]wPrintStart [19:04:47]Write to MH i2c: 01 00 00 96 08 9E [19:04:47]Write i2c OK [19:04:47]MH_I2C_Read... [19:04:47]Read from MH i2c: 01 [19:04:47]MH_I2C_Read... [19:04:47]Read from MH i2c: 01 07 00 [19:04:47]MH_I2C_Read... [19:04:47]Read from MH i2c: 01 07 00 96 08 00 00 00 00 00 FF 0F B3 [19:04:47]RasterBufferAndPrint [19:04:47]line Счет N : (1)507028 [19:04:47]line ИНН: 02508201610067 [19:04:47]line Контрольно-Кассовый Чек [19:04:47]line ПРОДАЖА [19:04:47]line ТРК (МРК, ГНК) : 33 [19:04:47]line Товар: 2710124130 [19:04:47]line Аи-92-К-5 [19:04:47]line 11.980 * 66.80 [19:04:47]line = 800.26 [19:04:47]line НДС 12% НСП 1% [19:04:47]line > о реализуемом товаре [19:04:47]line ОКРУГЛЕНИЕ: -0.26 [19:04:47]line ИТОГО: 800.00 [19:04:47]line Внесено: 800.00 [19:04:47]line СДАЧА: 0.00 [19:04:47]line НСП 1% : 7.08 [19:04:47]line НДС 12% : 84.98 [19:04:47]line Наличными: 800.00 [19:04:47]line Безнал.: 0.00 [19:04:47]line Место: АЗС № 91 "Партнер Нефть" [19:04:47]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:04:47]line СНО: Общий режим [19:04:47]line Чек 141 14.05.2024 19:04 [19:04:47]line Смена: 355 ФФД: 1.0 [19:04:47]line ЗНМ: 0300000119 [19:04:47]line РНМ: 0000000000091845 [19:04:47]line Версия ККМ: 001 [19:04:47]line ФМ: 0000000000871829 [19:04:47]line ФД: 67134 [19:04:47]line ФПД: 177997928789518 [19:04:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T190446&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67134&fm=177997928789518&tin=02508201610067®Number=0000000000091845&sum=80000 [19:04:47]OFD Sender: Processing packet 67134 [packets to send 35, broken 34] [19:04:47]ProducePacketName [19:04:47]name=ofd_packets/00067134 [19:04:47]OFD Sender: To server: pG, [19:04:47]CommunicateWithHost lk.salyk.kg:30040 [19:04:47]ConnectInit lk.salyk.kg [19:04:47]written 0, free lines is 4095 [19:04:47]Write to MH i2c: 01 00 00 C0 08 C8 [19:04:47]Write i2c OK [19:04:47]MH_I2C_Read... [19:04:47]Read from MH i2c: 01 [19:04:47]MH_I2C_Read... [19:04:47]Read from MH i2c: 01 07 00 [19:04:47]MH_I2C_Read... [19:04:47]Read from MH i2c: 01 07 00 C0 08 00 00 00 00 00 CD 0C A8 [19:04:47]RasterBufferAndPrint [19:04:47]line [19:04:47]line [19:04:47]line [19:04:47]line [19:04:47]line [19:04:47]written 0, free lines is 3283 [19:04:47]MH_Cut [19:04:47]Write to MH i2c: D1 01 00 C7 08 01 A1 [19:04:47]Write i2c OK [19:04:47]MH_I2C_Read... [19:04:47]Read from MH i2c: D1 [19:04:47]MH_I2C_Read... [19:04:47]Read from MH i2c: D1 01 00 [19:04:47]MH_I2C_Read... [19:04:47]Read from MH i2c: D1 01 00 C7 08 00 A0 [19:04:47]Write to MH i2c: 01 00 00 C8 08 D0 [19:04:47]Write i2c OK [19:04:47]MH_I2C_Read... [19:04:48]*** Cut start [19:04:48]*** Purtial cut [19:04:48]*** CUTSNS_PIN = 0 [19:04:48]*** Stage 1: CUTSNS_PIN = 1 [19:04:50]Read from MH i2c: 01 [19:04:50]MH_I2C_Read... [19:04:50]*** Stop cut motor [19:04:50]*** Cut end [19:04:50]Read from MH i2c: 01 07 00 [19:04:50]MH_I2C_Read... [19:04:50]Read from MH i2c: 01 07 00 C8 08 00 00 00 00 00 FF 0F E5 [19:04:50]process_action close_receipt done [19:04:50]requested_data is exist [19:04:50]produce_requested_data [19:04:50]requested_item fm.sn is exist - process it [19:04:50]wFMCommunicate request_size=4 [19:04:50]MH_SAM_APDU [19:04:50]CAPDU: 80 11 00 00 [19:04:50]Write to MH i2c: E2 08 00 C9 08 80 11 00 00 00 00 00 00 4B [19:04:50]Write i2c OK [19:04:50]MH_I2C_Read... [19:04:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:50]Read from MH i2c: E2 [19:04:50]MH_I2C_Read... [19:04:50]Read from MH i2c: E2 17 00 [19:04:50]MH_I2C_Read... [19:04:50]Read from MH i2c: E2 17 00 C9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A1 [19:04:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:04:50]wFMCommunicate OK [19:04:50]requested_item fd.num is exist - process it [19:04:50]SAM_PROTO_GetFieldsCounters [19:04:50]wFMCommunicate request_size=4 [19:04:50]MH_SAM_APDU [19:04:50]CAPDU: 80 13 00 00 [19:04:50]Write to MH i2c: E2 08 00 CA 08 80 13 00 00 00 00 00 00 4E [19:04:50]Write i2c OK [19:04:50]MH_I2C_Read... [19:04:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:50]Read from MH i2c: E2 [19:04:50]MH_I2C_Read... [19:04:50]Read from MH i2c: E2 62 00 [19:04:50]MH_I2C_Read... [19:04:50]Read from MH i2c: E2 62 00 CA 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 3E 06 01 00 0E 04 04 00 63 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 C4 [19: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 3E 06 01 00 0E 04 04 00 63 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 [19:04:50]wFMCommunicate OK [19:04:50]SAM_PROTO_GetFieldsCounters done [19:04:50]requested_item shift.num is exist - process it [19:04:50]requested_item shift.opened is exist - process it [19:04:50]req_shift_opened [19:04:50]FM_GetShiftState [19:04:50]SAM_PROTO_GetShiftState [19:04:50]wFMCommunicate request_size=4 [19:04:50]MH_SAM_APDU [19:04:50]CAPDU: 80 13 01 00 [19:04:50]Write to MH i2c: E2 08 00 CB 08 80 13 01 00 00 00 00 00 50 [19:04:50]Write i2c OK [19:04:50]MH_I2C_Read... [19:04:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:50]Read from MH i2c: E2 [19:04:50]MH_I2C_Read... [19:04:50]Read from MH i2c: E2 0E 00 [19:04:50]MH_I2C_Read... [19:04:50]Read from MH i2c: E2 0E 00 CB 08 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 18 [19:04:50]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:04:50]wFMCommunicate OK [19:04:50]SAM_PROTO_GetShiftState done [19:04:50]FM_GetShiftState done [19:04:50]req_shift_opened done [19:04:50]requested_item shift.open_date is exist - process it [19:04:50]req_shift_open_date [19:04:50]req_shift_open_date done [19:04:50]produce_requested_data done [19:04:50]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67134,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [19:04:50]process_action_free close_receipt [19:04:50]json_value_free [19:04:50]json_value_free done [19:04:50]process_json_proto returns [19:04:50]Send response to host [19:04:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67134,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [19:04:50]free response buf [19:04:50]execute_script done [19:04:50]execute_script returns [19:04:50]free content buf [19:04:50]Sock 7.Close socket [19:04:50]Sock 7.Thread stoped [19:04:52]ConnectInit Can't take IP for lk.salyk.kg [19:04:52]CommunicateWithHost connect error [19:04:52]CommunicateWithHost err = -1 [19:04:52]OFD Sender: Server communicate error [19:04:57]recv_with_timeout no data received [19:04:57]OFD Sender: Processing packet 67134 [packets to send 35, broken 34] [19:04:57]ProducePacketName [19:04:57]name=ofd_packets/00067134 [19:04:57]OFD Sender: To server: pG, [19:04:57]CommunicateWithHost lk.salyk.kg:30040 [19:04:57]ConnectInit lk.salyk.kg [19:05:02]ConnectInit Can't take IP for lk.salyk.kg [19:05:02]CommunicateWithHost connect error [19:05:02]CommunicateWithHost err = -1 [19:05:02]OFD Sender: Server communicate error [19:05:07]OFD Sender: Processing packet 67134 [packets to send 35, broken 34] [19:05:07]ProducePacketName [19:05:07]name=ofd_packets/00067134 [19:05:07]OFD Sender: To server: pG, [19:05:07]CommunicateWithHost lk.salyk.kg:30040 [19:05:07]ConnectInit lk.salyk.kg [19:05:07]Connected sock=7 [19:05: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 34 7E 07 01 BE 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8D 00 00 00 F4 03 04 00 CE B5 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A1 E3 5F 50 F6 0E 4A 2D 18 E3 A0 E4 3C 6F [19:05: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 44 DF 47 00 B5 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 3E 06 01 00 F4 03 04 00 C1 5D 43 66 B6 04 01 00 00 F1 83 02 44 AA CC 10 A5 [19:05:07]CommunicateWithHost err = 0 [19:05:07]CheckOFDResponse [19:05:07]1017 (14) - 77093643461234 [19:05:07]1041 (16) - 0000000000871829 [19:05:07]1040 (4) - 67134 [19:05:07]1012 (4) - 14.05.2024 12:49 [19:05:07]1206 (1) - 0 [19:05:07]OFD Sender: Remove packet 67134 [19:05:07]ProducePacketName [19:05:07]name=ofd_packets/00067134 [19:05:07]NVStorageDeleteData [19:05:08]OFD Sender: No OFD packet to send [19:05:13]OFD Sender: No OFD packet to send [19:05:18]OFD Sender: No OFD packet to send [19:05:23]OFD Sender: No OFD packet to send [19:05:28]OFD Sender: No OFD packet to send [19:05:33]OFD Sender: No OFD packet to send [19:05:38]OFD Sender: No OFD packet to send [19:05:43]OFD Sender: No OFD packet to send [19:05:48]OFD Sender: No OFD packet to send [19:05:53]OFD Sender: No OFD packet to send [19:05:58]OFD Sender: No OFD packet to send [19:06:03]OFD Sender: No OFD packet to send [19:06:08]OFD Sender: No OFD packet to send [19:06:13]OFD Sender: No OFD packet to send [19:06:18]OFD Sender: No OFD packet to send [19:06:23]OFD Sender: No OFD packet to send [19:06:28]OFD Sender: No OFD packet to send [19:06:33]OFD Sender: No OFD packet to send [19:06:38]OFD Sender: No OFD packet to send [19:06:43]OFD Sender: No OFD packet to send [19:06:48]OFD Sender: No OFD packet to send [19:06:53]OFD Sender: No OFD packet to send [19:06:58]OFD Sender: No OFD packet to send [19:07:03]OFD Sender: No OFD packet to send [19:07:08]OFD Sender: No OFD packet to send [19:07:13]OFD Sender: No OFD packet to send [19:07:18]OFD Sender: No OFD packet to send [19:07:23]OFD Sender: No OFD packet to send [19:07:28]OFD Sender: No OFD packet to send [19:07:33]OFD Sender: No OFD packet to send [19:07:38]OFD Sender: No OFD packet to send [19:07:43]OFD Sender: No OFD packet to send [19:07:48]OFD Sender: No OFD packet to send [19:07:53]OFD Sender: No OFD packet to send [19:07:58]OFD Sender: No OFD packet to send [19:08:03]OFD Sender: No OFD packet to send [19:08:08]OFD Sender: No OFD packet to send [19:08:13]OFD Sender: No OFD packet to send [19:08:18]OFD Sender: No OFD packet to send [19:08:23]OFD Sender: No OFD packet to send [19:08:28]OFD Sender: No OFD packet to send [19:08:33]OFD Sender: No OFD packet to send [19:08:38]OFD Sender: No OFD packet to send [19:08:43]OFD Sender: No OFD packet to send [19:08:48]OFD Sender: No OFD packet to send [19:08:53]OFD Sender: No OFD packet to send [19:08:58]OFD Sender: No OFD packet to send [19:09:03]OFD Sender: No OFD packet to send [19:09:04]accept exits with 9 [19:09:04]New connection [19:09:04]New thread 3066731876 created [19:09:04]Thread 3066588516 joined [19:09:04]Waiting for new connection... [19:09:04] Sock 9.Parse request [19:09:04]Sock 9.Check first char [19:09:04]Sock 9.First char is OK [19:09:04]request: POST /json_proto HTTP/1.0 [19:09:04]Method: POST [19:09:04]URL: /json_proto [19:09:04]Method is POST - this is cgi request [19:09:04]url: /json_proto [19:09:04]query_string will be loaded in cgi processing [19:09:04]execute_cgi json_proto POST (null) [19:09:04]execute_cgi path=json_proto method=POST [19:09:04]POST find Content-Length [19:09:04]Host: 172.17.41.195:8080 [19:09:04]Content-Length: 678 [19:09:04]Content-Type: application/json [19:09:04] [19:09:04]POST finish read [19:09:04]Found Content-Length = 678 [19:09:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.480, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:04]execute_script... [19:09: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)507029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.480, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:04]POST & json_proto [19:09:04]process_json_proto [19:09:04]json parsed OK: [19:09:04]protocol is kg_v1.0 [19:09:04]action value=close_receipt [19:09:04]process_action close_receipt [19:09:04]cmd_close_receipt [19:09:04]MH_GetDate [19:09:04]Write to MH i2c: F0 00 00 CC 08 C3 [19:09:04]Write i2c OK [19:09:04]MH_I2C_Read... [19:09:04]Read from MH i2c: F0 [19:09:04]MH_I2C_Read... [19:09:04]Read from MH i2c: F0 09 00 [19:09:04]MH_I2C_Read... [19:09:04]Read from MH i2c: F0 09 00 CC 08 00 D0 B6 43 66 FC 21 6F 64 EB [19:09:04]GetLastDocTimeStamp 1715713486 [19:09:04]current date 1715713744 [19:09:04]FM_GetShiftState [19:09:04]SAM_PROTO_GetShiftState [19:09:04]wFMCommunicate request_size=4 [19:09:04]MH_SAM_APDU [19:09:04]CAPDU: 80 13 01 00 [19:09:04]Write to MH i2c: E2 08 00 CD 08 80 13 01 00 00 00 00 00 52 [19:09:04]Write i2c OK [19:09:04]MH_I2C_Read... [19:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:04]Read from MH i2c: E2 [19:09:04]MH_I2C_Read... [19:09:04]Read from MH i2c: E2 0E 00 [19:09:04]MH_I2C_Read... [19:09:04]Read from MH i2c: E2 0E 00 CD 08 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 1A [19:09:04]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:09:04]wFMCommunicate OK [19:09:04]SAM_PROTO_GetShiftState done [19:09:04]FM_GetShiftState done [19:09:04]opened in 1715646054 [19:09:04]opened+sec_in_day 1715732454 [19:09:04]quantity*price = 70006 [19:09:04]sum+1 = 70007 [19:09:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 142 14.05.2024 19:09 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67135 ФПД: 134633114748547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T190904&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67135&fm=134633114748547&tin=02508201610067®Number=0000000000091845&sum=70000 [19:09:05]StoreToDocumentArchive [19:09:05]shift 355 fd 67135 [19:09:05]save to /storage/0355/doc_00067135 [19:09:05]save last doc name /storage/0355/doc_00067135 to /storage/kkm_last_doc_name [19:09:05]save OK [19:09:05]Clear old archive folders... [19:09:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:05]tlvbuf is 003A4EF0 [19:09:05]SAM_PROTO_ClearQueue [19:09:05]wFMCommunicate request_size=4 [19:09:05]MH_SAM_APDU [19:09:05]CAPDU: 80 09 00 00 [19:09:05]Write to MH i2c: E2 08 00 DA 08 80 09 00 00 00 00 00 00 54 [19:09:05]Write i2c OK [19:09:05]MH_I2C_Read... [19:09:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:05]Read from MH i2c: E2 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 03 00 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 03 00 DA 08 00 90 00 56 [19:09:05]RAPDU: 90 00 [19:09:05]wFMCommunicate OK [19:09:05]SAM_PROTO_ClearQueue done [19:09:05]KKMCreateOFDPacket [19:09:05]OFDProtocolAddRootSTLVToBuf [19:09:05]FM_MakeSignedData [19:09:05]FM_MakeSignedData [19:09:05]SAM_PROTO_SignData [19:09:05]wFMCommunicate request_size=4 [19:09:05]MH_SAM_APDU [19:09:05]CAPDU: 80 0D 01 02 [19:09:05]Write to MH i2c: E2 08 00 DB 08 80 0D 01 02 00 00 00 00 5C [19:09:05]Write i2c OK [19:09:05]MH_I2C_Read... [19:09:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:05]Read from MH i2c: E2 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 03 00 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 03 00 DB 08 00 90 00 57 [19:09:05]RAPDU: 90 00 [19:09:05]wFMCommunicate OK [19:09:05]wFMCommunicate request_size=255 [19:09:05]MH_SAM_APDU [19:09:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 D0 B6 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 7A [19:09:05]Write to MH i2c: E2 02 01 DC 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 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 8E 00 00 00 F4 03 04 00 D0 B6 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 7A 00 00 B6 [19:09:05]Write i2c OK [19:09:05]MH_I2C_Read... [19:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:05]Read from MH i2c: E2 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 03 00 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 03 00 DC 08 00 90 00 58 [19:09:05]RAPDU: 90 00 [19:09:05]wFMCommunicate OK [19:09:05]wFMCommunicate request_size=10 [19:09:05]MH_SAM_APDU [19:09:05]CAPDU: 80 0D 02 02 05 72 B6 FA C6 83 [19:09:05]Write to MH i2c: E2 0D 00 DD 08 80 0D 02 02 05 00 72 B6 FA C6 83 00 00 D4 [19:09:05]Write i2c OK [19:09:05]MH_I2C_Read... [19:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:05]Read from MH i2c: E2 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 03 00 [19:09:05]MH_I2C_Read... [19:09:05]Read from MH i2c: E2 03 00 DD 08 00 90 00 59 [19:09:05]RAPDU: 90 00 [19:09:05]wFMCommunicate OK [19:09:05]wFMCommunicate request_size=4 [19:09:05]MH_SAM_APDU [19:09:05]CAPDU: 80 0D 03 02 [19:09:05]Write to MH i2c: E2 08 00 DE 08 80 0D 03 02 00 00 00 00 61 [19:09:05]Write i2c OK [19:09:05]MH_I2C_Read... [19:09:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:06]Read from MH i2c: E2 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: E2 0B 00 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: E2 0B 00 DE 08 00 48 85 90 54 93 80 2B B7 90 00 08 [19:09:06]RAPDU: 48 85 90 54 93 80 2B B7 90 00 [19:09:06]wFMCommunicate OK [19:09:06]SAM_PROTO_SignData done [19:09:06]FM_MakeSignedData done [19:09:06]CreateOFDProtocolMessage [19:09:06]wFMCommunicate request_size=4 [19:09:06]MH_SAM_APDU [19:09:06]CAPDU: 80 11 00 00 [19:09:06]Write to MH i2c: E2 08 00 DF 08 80 11 00 00 00 00 00 00 61 [19:09:06]Write i2c OK [19:09:06]MH_I2C_Read... [19:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:06]Read from MH i2c: E2 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: E2 17 00 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: E2 17 00 DF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B7 [19:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:09:06]wFMCommunicate OK [19:09:06]CreateOFDProtocolMessage done [19:09:06]OFDSenderStorePacket 67135 [19:09:06]StoreOFDPacket docnum=67135 [19:09: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 8C 60 07 01 A3 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8E 00 00 00 F4 03 04 00 D0 B6 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 7A 72 B6 FA C6 83 48 85 90 54 93 80 2B B7 [19:09:06]CheckFolder [19:09:06]dirname=/storage/ofd_packets [19:09:06]CheckFolder done [19:09:06]ProducePacketName [19:09:06]name=ofd_packets/00067135 [19:09:06]NVStorageSaveData ofd_packets/00067135 [19:09:06]File name is /storage/ofd_packets/00067135 [19:09:06]Write 301 bytes [19:09:06]NVStorageSaveData done [19:09:06]OFDSenderStorePacket done [19:09:06]KKMCreateOFDPacket done [19:09:06]NVStorageSaveData kkm_last_timestamp [19:09:06]File name is /storage/kkm_last_timestamp [19:09:06]Write 4 bytes [19:09:06]NVStorageSaveData done [19:09:06]ExternCall_PrintAddStr [19:09:06]wPrintStart [19:09:06]Write to MH i2c: 01 00 00 E0 08 E8 [19:09:06]Write i2c OK [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: 01 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: 01 07 00 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: 01 07 00 E0 08 00 00 00 00 00 FF 0F FD [19:09:06]RasterBufferAndPrint [19:09:06]line Счет N : (1)507029 [19:09:06]line ИНН: 02508201610067 [19:09:06]line Контрольно-Кассовый Чек [19:09:06]line ПРОДАЖА [19:09:06]line ТРК (МРК, ГНК) : 33 [19:09:06]line Товар: 2710124130 [19:09:06]line Аи-92-К-5 [19:09:06]line 10.480 * 66.80 [19:09:06]line = 700.06 [19:09:06]line НДС 12% НСП 1% [19:09:06]line > о реализуемом товаре [19:09:06]line ОКРУГЛЕНИЕ: -0.06 [19:09:06]line ИТОГО: 700.00 [19:09:06]line Внесено: 700.00 [19:09:06]line СДАЧА: 0.00 [19:09:06]line НСП 1% : 6.19 [19:09:06]line НДС 12% : 74.34 [19:09:06]line Наличными: 700.00 [19:09:06]line Безнал.: 0.00 [19:09:06]line Место: АЗС № 91 "Партнер Нефть" [19:09:06]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:09:06]line СНО: Общий режим [19:09:06]line Чек 142 14.05.2024 19:09 [19:09:06]line Смена: 355 ФФД: 1.0 [19:09:06]line ЗНМ: 0300000119 [19:09:06]line РНМ: 0000000000091845 [19:09:06]line Версия ККМ: 001 [19:09:06]line ФМ: 0000000000871829 [19:09:06]line ФД: 67135 [19:09:06]line ФПД: 134633114748547 [19:09:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T190904&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67135&fm=134633114748547&tin=02508201610067®Number=0000000000091845&sum=70000 [19:09:06]written 0, free lines is 4095 [19:09:06]OFD Sender: Processing packet 67135 [packets to send 35, broken 34] [19:09:06]ProducePacketName [19:09:06]name=ofd_packets/00067135 [19:09:06]OFD Sender: To server: pG, [19:09:06]CommunicateWithHost lk.salyk.kg:30040 [19:09:06]ConnectInit lk.salyk.kg [19:09:06]Connected sock=10 [19:09: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 8C 60 07 01 A3 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8E 00 00 00 F4 03 04 00 D0 B6 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 7A 72 B6 FA C6 83 48 85 90 54 93 80 2B B7 [19:09: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 B1 76 47 00 13 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 3F 06 01 00 F4 03 04 00 B0 5E 43 66 B6 04 01 00 00 09 3D BE 1B 1A E8 94 76 [19:09:06]CommunicateWithHost err = 0 [19:09:06]CheckOFDResponse [19:09:06]1017 (14) - 77093643461234 [19:09:06]1041 (16) - 0000000000871829 [19:09:06]1040 (4) - 67135 [19:09:06]1012 (4) - 14.05.2024 12:53 [19:09:06]1206 (1) - 0 [19:09:06]OFD Sender: Remove packet 67135 [19:09:06]ProducePacketName [19:09:06]name=ofd_packets/00067135 [19:09:06]NVStorageDeleteData [19:09:06]Write to MH i2c: 01 00 00 0A 09 13 [19:09:06]Write i2c OK [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: 01 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: 01 07 00 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: 01 07 00 0A 09 00 00 00 00 00 DD 0C 03 [19:09:06]RasterBufferAndPrint [19:09:06]line [19:09:06]line [19:09:06]line [19:09:06]line [19:09:06]line [19:09:06]written 0, free lines is 3298 [19:09:06]MH_Cut [19:09:06]Write to MH i2c: D1 01 00 11 09 01 EC [19:09:06]Write i2c OK [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: D1 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: D1 01 00 [19:09:06]MH_I2C_Read... [19:09:06]Read from MH i2c: D1 01 00 11 09 00 EB [19:09:06]Write to MH i2c: 01 00 00 12 09 1B [19:09:06]Write i2c OK [19:09:06]MH_I2C_Read... [19:09:07]OFD Sender: No OFD packet to send [19:09:07]*** Cut start [19:09:07]*** Purtial cut [19:09:07]*** Stage 1: CUTSNS_PIN = 1 [19:09:07]Read from MH i2c: 01 [19:09:07]MH_I2C_Read... [19:09:07]*** Stop cut motor [19:09:07]*** Cut end [19:09:07]Read from MH i2c: 01 07 00 [19:09:07]MH_I2C_Read... [19:09:07]Read from MH i2c: 01 07 00 12 09 00 00 00 00 00 FF 0F 30 [19:09:07]process_action close_receipt done [19:09:07]requested_data is exist [19:09:07]produce_requested_data [19:09:07]requested_item fm.sn is exist - process it [19:09:07]wFMCommunicate request_size=4 [19:09:07]MH_SAM_APDU [19:09:07]CAPDU: 80 11 00 00 [19:09:07]Write to MH i2c: E2 08 00 13 09 80 11 00 00 00 00 00 00 96 [19:09:07]Write i2c OK [19:09:07]MH_I2C_Read... [19:09:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:08]Read from MH i2c: E2 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 17 00 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 17 00 13 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EC [19: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 [19:09:08]wFMCommunicate OK [19:09:08]requested_item fd.num is exist - process it [19:09:08]SAM_PROTO_GetFieldsCounters [19:09:08]wFMCommunicate request_size=4 [19:09:08]MH_SAM_APDU [19:09:08]CAPDU: 80 13 00 00 [19:09:08]Write to MH i2c: E2 08 00 14 09 80 13 00 00 00 00 00 00 99 [19:09:08]Write i2c OK [19:09:08]MH_I2C_Read... [19:09:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:08]Read from MH i2c: E2 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 62 00 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 62 00 14 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 3F 06 01 00 0E 04 04 00 63 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 13 [19: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 3F 06 01 00 0E 04 04 00 63 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 [19:09:08]wFMCommunicate OK [19:09:08]SAM_PROTO_GetFieldsCounters done [19:09:08]requested_item shift.num is exist - process it [19:09:08]requested_item shift.opened is exist - process it [19:09:08]req_shift_opened [19:09:08]FM_GetShiftState [19:09:08]SAM_PROTO_GetShiftState [19:09:08]wFMCommunicate request_size=4 [19:09:08]MH_SAM_APDU [19:09:08]CAPDU: 80 13 01 00 [19:09:08]Write to MH i2c: E2 08 00 15 09 80 13 01 00 00 00 00 00 9B [19:09:08]Write i2c OK [19:09:08]MH_I2C_Read... [19:09:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:08]Read from MH i2c: E2 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 0E 00 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 0E 00 15 09 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 63 [19:09:08]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:09:08]wFMCommunicate OK [19:09:08]SAM_PROTO_GetShiftState done [19:09:08]FM_GetShiftState done [19:09:08]req_shift_opened done [19:09:08]requested_item shift.open_date is exist - process it [19:09:08]req_shift_open_date [19:09:08]req_shift_open_date done [19:09:08]produce_requested_data done [19:09:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67135,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [19:09:08]process_action_free close_receipt [19:09:08]json_value_free [19:09:08]json_value_free done [19:09:08]process_json_proto returns [19:09:08]Send response to host [19:09:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67135,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [19:09:08]free response buf [19:09:08]execute_script done [19:09:08]execute_script returns [19:09:08]free content buf [19:09:08]Sock 9.Close socket [19:09:08]Sock 9.Thread stoped [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:24]accept exits with 7 [19:09:24]New connection [19:09:24]New thread 3066588516 created [19:09:24]Thread 3066731876 joined [19:09:24]Waiting for new connection... [19:09:24] Sock 7.Parse request [19:09:24]Sock 7.Check first char [19:09:24]Sock 7.First char is OK [19:09:24]request: POST /json_proto HTTP/1.0 [19:09:24]Method: POST [19:09:24]URL: /json_proto [19:09:24]Method is POST - this is cgi request [19:09:24]url: /json_proto [19:09:24]query_string will be loaded in cgi processing [19:09:24]execute_cgi json_proto POST (null) [19:09:24]execute_cgi path=json_proto method=POST [19:09:24]POST find Content-Length [19:09:24]Host: 172.17.41.195:8080 [19:09:24]Content-Length: 800 [19:09:24]Content-Type: application/json [19:09:24] [19:09:24]POST finish read [19:09:24]Found Content-Length = 800 [19:09:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507030", "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" : 16.070, "sum" : 1200.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:24]execute_script... [19:09: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)507030", "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" : 16.070, "sum" : 1200.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:24]POST & json_proto [19:09:24]process_json_proto [19:09:24]json parsed OK: [19:09:24]protocol is kg_v1.0 [19:09:24]action value=close_receipt [19:09:24]process_action close_receipt [19:09:24]cmd_close_receipt [19:09:24]MH_GetDate [19:09:24]Write to MH i2c: F0 00 00 16 09 0E [19:09:24]Write i2c OK [19:09:24]MH_I2C_Read... [19:09:24]Read from MH i2c: F0 [19:09:24]MH_I2C_Read... [19:09:24]Read from MH i2c: F0 09 00 [19:09:24]MH_I2C_Read... [19:09:24]Read from MH i2c: F0 09 00 16 09 00 E5 B6 43 66 FC 21 6F 64 4B [19:09:24]GetLastDocTimeStamp 1715713744 [19:09:24]current date 1715713765 [19:09:24]FM_GetShiftState [19:09:24]SAM_PROTO_GetShiftState [19:09:24]wFMCommunicate request_size=4 [19:09:24]MH_SAM_APDU [19:09:24]CAPDU: 80 13 01 00 [19:09:24]Write to MH i2c: E2 08 00 17 09 80 13 01 00 00 00 00 00 9D [19:09:24]Write i2c OK [19:09:24]MH_I2C_Read... [19:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:24]Read from MH i2c: E2 [19:09:24]MH_I2C_Read... [19:09:24]Read from MH i2c: E2 0E 00 [19:09:24]MH_I2C_Read... [19:09:24]Read from MH i2c: E2 0E 00 17 09 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 65 [19:09:24]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:09:24]wFMCommunicate OK [19:09:24]SAM_PROTO_GetShiftState done [19:09:24]FM_GetShiftState done [19:09:24]opened in 1715646054 [19:09:24]opened+sec_in_day 1715732454 [19:09:24]quantity*price = 120042 [19:09:24]sum+1 = 120044 [19:09:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.43 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 0.00 Безнал.: 1200.43 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 143 14.05.2024 19:09 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67136 ФПД: 218872044108053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T190925&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67136&fm=218872044108053&tin=02508201610067®Number=0000000000091845&sum=120043 [19:09:25]StoreToDocumentArchive [19:09:25]shift 355 fd 67136 [19:09:25]save to /storage/0355/doc_00067136 [19:09:25]save last doc name /storage/0355/doc_00067136 to /storage/kkm_last_doc_name [19:09:25]save OK [19:09:25]Clear old archive folders... [19:09:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:09:25]tlvbuf is 003AE280 [19:09:25]SAM_PROTO_ClearQueue [19:09:25]wFMCommunicate request_size=4 [19:09:25]MH_SAM_APDU [19:09:25]CAPDU: 80 09 00 00 [19:09:25]Write to MH i2c: E2 08 00 24 09 80 09 00 00 00 00 00 00 9F [19:09:25]Write i2c OK [19:09:25]MH_I2C_Read... [19:09:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:25]Read from MH i2c: E2 [19:09:25]MH_I2C_Read... [19:09:25]Read from MH i2c: E2 03 00 [19:09:25]MH_I2C_Read... [19:09:25]Read from MH i2c: E2 03 00 24 09 00 90 00 A1 [19:09:25]RAPDU: 90 00 [19:09:25]wFMCommunicate OK [19:09:25]SAM_PROTO_ClearQueue done [19:09:25]KKMCreateOFDPacket [19:09:25]OFDProtocolAddRootSTLVToBuf [19:09:25]FM_MakeSignedData [19:09:25]FM_MakeSignedData [19:09:25]SAM_PROTO_SignData [19:09:25]wFMCommunicate request_size=4 [19:09:25]MH_SAM_APDU [19:09:25]CAPDU: 80 0D 01 02 [19:09:25]Write to MH i2c: E2 08 00 25 09 80 0D 01 02 00 00 00 00 A7 [19:09:25]Write i2c OK [19:09:25]MH_I2C_Read... [19:09:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:26]Read from MH i2c: E2 [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: E2 03 00 [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: E2 03 00 25 09 00 90 00 A2 [19:09:26]RAPDU: 90 00 [19:09:26]wFMCommunicate OK [19:09:26]wFMCommunicate request_size=255 [19:09:26]MH_SAM_APDU [19:09: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 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 E5 B6 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 C7 10 1E 70 [19:09:26]Write to MH i2c: E2 02 01 26 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 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 E5 B6 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 C7 10 1E 70 00 00 A2 [19:09:26]Write i2c OK [19:09:26]MH_I2C_Read... [19:09:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:26]Read from MH i2c: E2 [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: E2 03 00 [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: E2 03 00 26 09 00 90 00 A3 [19:09:26]RAPDU: 90 00 [19:09:26]wFMCommunicate OK [19:09:26]wFMCommunicate request_size=7 [19:09:26]MH_SAM_APDU [19:09:26]CAPDU: 80 0D 02 02 02 B9 15 [19:09:26]Write to MH i2c: E2 0A 00 27 09 80 0D 02 02 02 00 B9 15 00 00 7C [19:09:26]Write i2c OK [19:09:26]MH_I2C_Read... [19:09:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:26]Read from MH i2c: E2 [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: E2 03 00 [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: E2 03 00 27 09 00 90 00 A4 [19:09:26]RAPDU: 90 00 [19:09:26]wFMCommunicate OK [19:09:26]wFMCommunicate request_size=4 [19:09:26]MH_SAM_APDU [19:09:26]CAPDU: 80 0D 03 02 [19:09:26]Write to MH i2c: E2 08 00 28 09 80 0D 03 02 00 00 00 00 AC [19:09:26]Write i2c OK [19:09:26]MH_I2C_Read... [19:09:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:26]Read from MH i2c: E2 [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: E2 0B 00 [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: E2 0B 00 28 09 00 6E EB 13 D6 FE B5 69 D0 90 00 DB [19:09:26]RAPDU: 6E EB 13 D6 FE B5 69 D0 90 00 [19:09:26]wFMCommunicate OK [19:09:26]SAM_PROTO_SignData done [19:09:26]FM_MakeSignedData done [19:09:26]CreateOFDProtocolMessage [19:09:26]wFMCommunicate request_size=4 [19:09:26]MH_SAM_APDU [19:09:26]CAPDU: 80 11 00 00 [19:09:26]Write to MH i2c: E2 08 00 29 09 80 11 00 00 00 00 00 00 AC [19:09:26]Write i2c OK [19:09:26]MH_I2C_Read... [19:09:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:26]Read from MH i2c: E2 [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: E2 17 00 [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: E2 17 00 29 09 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:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:09:26]wFMCommunicate OK [19:09:26]CreateOFDProtocolMessage done [19:09:26]OFDSenderStorePacket 67136 [19:09:26]StoreOFDPacket docnum=67136 [19:09: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 E9 F3 04 01 99 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 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 E5 B6 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 C7 10 1E 70 B9 15 6E EB 13 D6 FE B5 69 D0 [19:09:26]CheckFolder [19:09:26]dirname=/storage/ofd_packets [19:09:26]CheckFolder done [19:09:26]ProducePacketName [19:09:26]name=ofd_packets/00067136 [19:09:26]NVStorageSaveData ofd_packets/00067136 [19:09:26]File name is /storage/ofd_packets/00067136 [19:09:26]Write 298 bytes [19:09:26]NVStorageSaveData done [19:09:26]OFDSenderStorePacket done [19:09:26]KKMCreateOFDPacket done [19:09:26]NVStorageSaveData kkm_last_timestamp [19:09:26]File name is /storage/kkm_last_timestamp [19:09:26]Write 4 bytes [19:09:26]NVStorageSaveData done [19:09:26]ExternCall_PrintAddStr [19:09:26]wPrintStart [19:09:26]Write to MH i2c: 01 00 00 2A 09 33 [19:09:26]Write i2c OK [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: 01 [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: 01 07 00 [19:09:26]MH_I2C_Read... [19:09:26]Read from MH i2c: 01 07 00 2A 09 00 00 00 00 00 FF 0F 48 [19:09:26]RasterBufferAndPrint [19:09:26]line Счет N : (1)507030 [19:09:26]line ИНН: 02508201610067 [19:09:26]line Контрольно-Кассовый Чек [19:09:26]line ПРОДАЖА [19:09:26]line ТРК (МРК, ГНК) : 41 [19:09:26]line Товар: 2710194210 [19:09:26]line ДТ-К-5 [19:09:26]line 16.070 * 74.70 [19:09:26]line = 1200.43 [19:09:26]line НДС 12% НСП 1% [19:09:26]line > о реализуемом товаре [19:09:26]line ИТОГО: 1200.43 [19:09:26]line НСП 1% : 10.62 [19:09:26]line НДС 12% : 127.48 [19:09:26]line Наличными: 0.00 [19:09:26]line Безнал.: 1200.43 [19:09:26]line Место: АЗС № 91 "Партнер Нефть" [19:09:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:09:26]line СНО: Общий режим [19:09:26]line Чек 143 14.05.2024 19:09 [19:09:26]line Смена: 355 ФФД: 1.0 [19:09:26]line ЗНМ: 0300000119 [19:09:26]line РНМ: 0000000000091845 [19:09:26]line Версия ККМ: 001 [19:09:26]line Платежная система: O! деньги [19:09:26]line ФМ: 0000000000871829 [19:09:26]line ФД: 67136 [19:09:26]line ФПД: 218872044108053 [19:09:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T190925&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67136&fm=218872044108053&tin=02508201610067®Number=0000000000091845&sum=120043 [19:09:26]OFD Sender: Processing packet 67136 [packets to send 35, broken 34] [19:09:26]ProducePacketName [19:09:26]name=ofd_packets/00067136 [19:09:26]OFD Sender: To server: pG, [19:09:26]CommunicateWithHost lk.salyk.kg:30040 [19:09:26]ConnectInit lk.salyk.kg [19:09:26]written 0, free lines is 4095 [19:09:26]Connected sock=10 [19:09: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 E9 F3 04 01 99 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 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 E5 B6 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 C7 10 1E 70 B9 15 6E EB 13 D6 FE B5 69 D0 [19:09: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 B6 05 47 00 55 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 40 06 01 00 F4 03 04 00 C4 5E 43 66 B6 04 01 00 00 13 24 68 B0 1E 58 03 C4 [19:09:27]CommunicateWithHost err = 0 [19:09:27]CheckOFDResponse [19:09:27]1017 (14) - 77093643461234 [19:09:27]1041 (16) - 0000000000871829 [19:09:27]1040 (4) - 67136 [19:09:27]1012 (4) - 14.05.2024 12:53 [19:09:27]1206 (1) - 0 [19:09:27]OFD Sender: Remove packet 67136 [19:09:27]ProducePacketName [19:09:27]name=ofd_packets/00067136 [19:09:27]NVStorageDeleteData [19:09:27]Write to MH i2c: 01 00 00 53 09 5C [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 53 09 00 00 00 00 00 FB 0C 6A [19:09:27]RasterBufferAndPrint [19:09:27]line [19:09:27]line [19:09:27]line [19:09:27]line [19:09:27]line [19:09:27]written 0, free lines is 3329 [19:09:27]MH_Cut [19:09:27]Write to MH i2c: D1 01 00 5A 09 01 35 [19:09:27]Write i2c OK [19:09:27]MH_I2C_Read... [19:09:27]Read from MH i2c: D1 [19:09:27]MH_I2C_Read... [19:09:27]Read from MH i2c: D1 01 00 [19:09:27]MH_I2C_Read... [19:09:27]Read from MH i2c: D1 01 00 5A 09 00 34 [19:09:27]Write to MH i2c: 01 00 00 5B 09 64 [19:09:27]Write i2c OK [19:09:27]MH_I2C_Read... [19:09:27]OFD Sender: No OFD packet to send [19:09:27]*** Cut start [19:09:27]*** Purtial cut [19:09:27]*** CUTSNS_PIN = 0 [19:09:28]*** Stage 1: CUTSNS_PIN = 1 [19:09:29]Read from MH i2c: 01 [19:09:29]MH_I2C_Read... [19:09:29]*** Stop cut motor [19:09:29]*** Cut end [19:09:29]Read from MH i2c: 01 07 00 [19:09:29]MH_I2C_Read... [19:09:29]Read from MH i2c: 01 07 00 5B 09 00 00 00 00 00 FF 0F 79 [19:09:29]process_action close_receipt done [19:09:29]requested_data is exist [19:09:29]produce_requested_data [19:09:29]requested_item fm.sn is exist - process it [19:09:29]wFMCommunicate request_size=4 [19:09:29]MH_SAM_APDU [19:09:29]CAPDU: 80 11 00 00 [19:09:29]Write to MH i2c: E2 08 00 5C 09 80 11 00 00 00 00 00 00 DF [19:09:30]Write i2c OK [19:09:30]MH_I2C_Read... [19:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:30]Read from MH i2c: E2 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: E2 17 00 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: E2 17 00 5C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 35 [19:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:09:30]wFMCommunicate OK [19:09:30]requested_item fd.num is exist - process it [19:09:30]SAM_PROTO_GetFieldsCounters [19:09:30]wFMCommunicate request_size=4 [19:09:30]MH_SAM_APDU [19:09:30]CAPDU: 80 13 00 00 [19:09:30]Write to MH i2c: E2 08 00 5D 09 80 13 00 00 00 00 00 00 E2 [19:09:30]Write i2c OK [19:09:30]MH_I2C_Read... [19:09:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:30]Read from MH i2c: E2 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: E2 62 00 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: E2 62 00 5D 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 40 06 01 00 0E 04 04 00 63 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 60 [19:09: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 40 06 01 00 0E 04 04 00 63 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 [19:09:30]wFMCommunicate OK [19:09:30]SAM_PROTO_GetFieldsCounters done [19:09:30]requested_item shift.num is exist - process it [19:09:30]requested_item shift.opened is exist - process it [19:09:30]req_shift_opened [19:09:30]FM_GetShiftState [19:09:30]SAM_PROTO_GetShiftState [19:09:30]wFMCommunicate request_size=4 [19:09:30]MH_SAM_APDU [19:09:30]CAPDU: 80 13 01 00 [19:09:30]Write to MH i2c: E2 08 00 5E 09 80 13 01 00 00 00 00 00 E4 [19:09:30]Write i2c OK [19:09:30]MH_I2C_Read... [19:09:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:30]Read from MH i2c: E2 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: E2 0E 00 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: E2 0E 00 5E 09 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 AC [19:09:30]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:09:30]wFMCommunicate OK [19:09:30]SAM_PROTO_GetShiftState done [19:09:30]FM_GetShiftState done [19:09:30]req_shift_opened done [19:09:30]requested_item shift.open_date is exist - process it [19:09:30]req_shift_open_date [19:09:30]req_shift_open_date done [19:09:30]produce_requested_data done [19:09:30]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67136,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [19:09:30]process_action_free close_receipt [19:09:30]json_value_free [19:09:30]json_value_free done [19:09:30]process_json_proto returns [19:09:30]Send response to host [19:09:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67136,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [19:09:30]free response buf [19:09:30]execute_script done [19:09:30]execute_script returns [19:09:30]free content buf [19:09:30]Sock 7.Close socket [19:09:30]Sock 7.Thread stoped [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]OFD Sender: No OFD packet to send [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:32]OFD Sender: No OFD packet to send [19:14:37]OFD Sender: No OFD packet to send [19:14:42]OFD Sender: No OFD packet to send [19:14:47]OFD Sender: No OFD packet to send [19:14:52]OFD Sender: No OFD packet to send [19:14:57]OFD Sender: No OFD packet to send [19:15:02]OFD Sender: No OFD packet to send [19:15:07]OFD Sender: No OFD packet to send [19:15:12]OFD Sender: No OFD packet to send [19:15:17]OFD Sender: No OFD packet to send [19:15:22]OFD Sender: No OFD packet to send [19:15:27]OFD Sender: No OFD packet to send [19:15:32]OFD Sender: No OFD packet to send [19:15:37]OFD Sender: No OFD packet to send [19:15:42]OFD Sender: No OFD packet to send [19:15:47]OFD Sender: No OFD packet to send [19:15:52]OFD Sender: No OFD packet to send [19:15:57]OFD Sender: No OFD packet to send [19:16:02]OFD Sender: No OFD packet to send [19:16:07]OFD Sender: No OFD packet to send [19:16:12]OFD Sender: No OFD packet to send [19:16:17]OFD Sender: No OFD packet to send [19:16:22]OFD Sender: No OFD packet to send [19:16:27]OFD Sender: No OFD packet to send [19:16:32]OFD Sender: No OFD packet to send [19:16:37]OFD Sender: No OFD packet to send [19:16:42]OFD Sender: No OFD packet to send [19:16:47]OFD Sender: No OFD packet to send [19:16:52]OFD Sender: No OFD packet to send [19:16:57]OFD Sender: No OFD packet to send [19:17:02]OFD Sender: No OFD packet to send [19:17:07]OFD Sender: No OFD packet to send [19:17:12]OFD Sender: No OFD packet to send [19:17:17]OFD Sender: No OFD packet to send [19:17:22]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]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:34]recv_with_timeout no data received [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:44]accept exits with 9 [19:19:44]New connection [19:19:44]New thread 3066731876 created [19:19:44]Thread 3066588516 joined [19:19:44]Waiting for new connection... [19:19:44] Sock 9.Parse request [19:19:44]Sock 9.Check first char [19:19:44]Sock 9.First char is OK [19:19:44]request: POST /json_proto HTTP/1.0 [19:19:44]Method: POST [19:19:44]URL: /json_proto [19:19:44]Method is POST - this is cgi request [19:19:44]url: /json_proto [19:19:44]query_string will be loaded in cgi processing [19:19:44]execute_cgi json_proto POST (null) [19:19:44]execute_cgi path=json_proto method=POST [19:19:44]POST find Content-Length [19:19:44]Host: 172.17.41.195:8080 [19:19:44]Content-Length: 670 [19:19:44]Content-Type: application/json [19:19:44] [19:19:44]POST finish read [19:19:44]Found Content-Length = 670 [19:19:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507031", "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.210, "sum" : 353.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 353.00, "total" : 353.00, "payments": [ { "type": 0, "sum" : 353.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:44]execute_script... [19:19:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507031", "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.210, "sum" : 353.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 353.00, "total" : 353.00, "payments": [ { "type": 0, "sum" : 353.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:44]POST & json_proto [19:19:44]process_json_proto [19:19:44]json parsed OK: [19:19:44]protocol is kg_v1.0 [19:19:44]action value=close_receipt [19:19:44]process_action close_receipt [19:19:44]cmd_close_receipt [19:19:44]MH_GetDate [19:19:44]Write to MH i2c: F0 00 00 5F 09 57 [19:19:44]Write i2c OK [19:19:44]MH_I2C_Read... [19:19:44]Read from MH i2c: F0 [19:19:44]MH_I2C_Read... [19:19:44]Read from MH i2c: F0 09 00 [19:19:44]MH_I2C_Read... [19:19:44]Read from MH i2c: F0 09 00 5F 09 00 50 B9 43 66 FC 21 6F 64 02 [19:19:44]GetLastDocTimeStamp 1715713765 [19:19:44]current date 1715714384 [19:19:44]FM_GetShiftState [19:19:44]SAM_PROTO_GetShiftState [19:19:44]wFMCommunicate request_size=4 [19:19:44]MH_SAM_APDU [19:19:44]CAPDU: 80 13 01 00 [19:19:44]Write to MH i2c: E2 08 00 60 09 80 13 01 00 00 00 00 00 E6 [19:19:44]Write i2c OK [19:19:44]MH_I2C_Read... [19:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:44]Read from MH i2c: E2 [19:19:44]MH_I2C_Read... [19:19:44]Read from MH i2c: E2 0E 00 [19:19:44]MH_I2C_Read... [19:19:44]Read from MH i2c: E2 0E 00 60 09 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 AE [19:19:44]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:19:44]wFMCommunicate OK [19:19:44]SAM_PROTO_GetShiftState done [19:19:44]FM_GetShiftState done [19:19:44]opened in 1715646054 [19:19:44]opened+sec_in_day 1715732454 [19:19:44]quantity*price = 35323 [19:19:44]sum+1 = 35325 [19:19:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 353.00 Внесено: 353.00 СДАЧА: 0.00 НСП 1% : 3.13 НДС 12% : 37.51 Наличными: 353.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 144 14.05.2024 19:19 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67137 ФПД: 49770376892974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T191944&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67137&fm=49770376892974&tin=02508201610067®Number=0000000000091845&sum=35300 [19:19:45]StoreToDocumentArchive [19:19:45]shift 355 fd 67137 [19:19:45]save to /storage/0355/doc_00067137 [19:19:45]save last doc name /storage/0355/doc_00067137 to /storage/kkm_last_doc_name [19:19:45]save OK [19:19:45]Clear old archive folders... [19:19:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:19:45]tlvbuf is 00325900 [19:19:45]SAM_PROTO_ClearQueue [19:19:45]wFMCommunicate request_size=4 [19:19:45]MH_SAM_APDU [19:19:45]CAPDU: 80 09 00 00 [19:19:45]Write to MH i2c: E2 08 00 6D 09 80 09 00 00 00 00 00 00 E8 [19:19:45]Write i2c OK [19:19:45]MH_I2C_Read... [19:19:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:45]Read from MH i2c: E2 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: E2 03 00 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: E2 03 00 6D 09 00 90 00 EA [19:19:45]RAPDU: 90 00 [19:19:45]wFMCommunicate OK [19:19:45]SAM_PROTO_ClearQueue done [19:19:45]KKMCreateOFDPacket [19:19:45]OFDProtocolAddRootSTLVToBuf [19:19:45]FM_MakeSignedData [19:19:45]FM_MakeSignedData [19:19:45]SAM_PROTO_SignData [19:19:45]wFMCommunicate request_size=4 [19:19:45]MH_SAM_APDU [19:19:45]CAPDU: 80 0D 01 02 [19:19:45]Write to MH i2c: E2 08 00 6E 09 80 0D 01 02 00 00 00 00 F0 [19:19:45]Write i2c OK [19:19:45]MH_I2C_Read... [19:19:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:45]Read from MH i2c: E2 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: E2 03 00 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: E2 03 00 6E 09 00 90 00 EB [19:19:45]RAPDU: 90 00 [19:19:45]wFMCommunicate OK [19:19:45]wFMCommunicate request_size=255 [19:19:45]MH_SAM_APDU [19:19:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC 89 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0E 00 00 00 00 07 04 06 00 E4 89 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 50 B9 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 [19:19:45]Write to MH i2c: E2 02 01 6F 09 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC 89 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0E 00 00 00 00 07 04 06 00 E4 89 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 50 B9 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 00 00 69 [19:19:45]Write i2c OK [19:19:45]MH_I2C_Read... [19:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:45]Read from MH i2c: E2 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: E2 03 00 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: E2 03 00 6F 09 00 90 00 EC [19:19:45]RAPDU: 90 00 [19:19:45]wFMCommunicate OK [19:19:45]wFMCommunicate request_size=11 [19:19:45]MH_SAM_APDU [19:19:45]CAPDU: 80 0D 02 02 06 2D 44 11 A2 92 2E [19:19:45]Write to MH i2c: E2 0E 00 70 09 80 0D 02 02 06 00 2D 44 11 A2 92 2E 00 00 E3 [19:19:45]Write i2c OK [19:19:45]MH_I2C_Read... [19:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:45]Read from MH i2c: E2 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: E2 03 00 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: E2 03 00 70 09 00 90 00 ED [19:19:45]RAPDU: 90 00 [19:19:45]wFMCommunicate OK [19:19:45]wFMCommunicate request_size=4 [19:19:45]MH_SAM_APDU [19:19:45]CAPDU: 80 0D 03 02 [19:19:45]Write to MH i2c: E2 08 00 71 09 80 0D 03 02 00 00 00 00 F5 [19:19:45]Write i2c OK [19:19:45]MH_I2C_Read... [19:19:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:45]Read from MH i2c: E2 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: E2 0B 00 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: E2 0B 00 71 09 00 A3 5D 72 E6 AD A5 D3 08 90 00 7B [19:19:45]RAPDU: A3 5D 72 E6 AD A5 D3 08 90 00 [19:19:45]wFMCommunicate OK [19:19:45]SAM_PROTO_SignData done [19:19:45]FM_MakeSignedData done [19:19:45]CreateOFDProtocolMessage [19:19:45]wFMCommunicate request_size=4 [19:19:45]MH_SAM_APDU [19:19:45]CAPDU: 80 11 00 00 [19:19:45]Write to MH i2c: E2 08 00 72 09 80 11 00 00 00 00 00 00 F5 [19:19:45]Write i2c OK [19:19:45]MH_I2C_Read... [19:19:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:45]Read from MH i2c: E2 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: E2 17 00 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: E2 17 00 72 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 4B [19:19:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:19:45]wFMCommunicate OK [19:19:45]CreateOFDProtocolMessage done [19:19:45]OFDSenderStorePacket 67137 [19:19:45]StoreOFDPacket docnum=67137 [19:19:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 87 96 08 01 85 BD 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 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC 89 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0E 00 00 00 00 07 04 06 00 E4 89 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 50 B9 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 2D 44 11 A2 92 2E A3 5D 72 E6 AD A5 D3 08 [19:19:45]CheckFolder [19:19:45]dirname=/storage/ofd_packets [19:19:45]CheckFolder done [19:19:45]ProducePacketName [19:19:45]name=ofd_packets/00067137 [19:19:45]NVStorageSaveData ofd_packets/00067137 [19:19:45]File name is /storage/ofd_packets/00067137 [19:19:45]Write 302 bytes [19:19:45]NVStorageSaveData done [19:19:45]OFDSenderStorePacket done [19:19:45]KKMCreateOFDPacket done [19:19:45]NVStorageSaveData kkm_last_timestamp [19:19:45]File name is /storage/kkm_last_timestamp [19:19:45]Write 4 bytes [19:19:45]NVStorageSaveData done [19:19:45]ExternCall_PrintAddStr [19:19:45]wPrintStart [19:19:45]Write to MH i2c: 01 00 00 73 09 7C [19:19:45]Write i2c OK [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: 01 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: 01 07 00 [19:19:45]MH_I2C_Read... [19:19:45]Read from MH i2c: 01 07 00 73 09 00 00 00 00 00 FF 0F 91 [19:19:45]RasterBufferAndPrint [19:19:45]line Счет N : (1)507031 [19:19:45]line ИНН: 02508201610067 [19:19:45]line Контрольно-Кассовый Чек [19:19:45]line ПРОДАЖА [19:19:45]line ТРК (МРК, ГНК) : 42 [19:19:45]line Товар: 2710124130 [19:19:45]line Super-92-К-5 [19:19:45]line 5.210 * 67.80 [19:19:45]line = 353.24 [19:19:45]line НДС 12% НСП 1% [19:19:45]line > о реализуемом товаре [19:19:45]line ОКРУГЛЕНИЕ: -0.24 [19:19:45]line ИТОГО: 353.00 [19:19:45]line Внесено: 353.00 [19:19:45]line СДАЧА: 0.00 [19:19:45]line НСП 1% : 3.13 [19:19:45]line НДС 12% : 37.51 [19:19:45]line Наличными: 353.00 [19:19:45]line Безнал.: 0.00 [19:19:45]line Место: АЗС № 91 "Партнер Нефть" [19:19:45]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:19:45]line СНО: Общий режим [19:19:45]line Чек 144 14.05.2024 19:19 [19:19:45]line Смена: 355 ФФД: 1.0 [19:19:45]line ЗНМ: 0300000119 [19:19:45]line РНМ: 0000000000091845 [19:19:45]line Версия ККМ: 001 [19:19:45]line ФМ: 0000000000871829 [19:19:45]line ФД: 67137 [19:19:45]line ФПД: 49770376892974 [19:19:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T191944&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67137&fm=49770376892974&tin=02508201610067®Number=0000000000091845&sum=35300 [19:19:46]OFD Sender: Processing packet 67137 [packets to send 35, broken 34] [19:19:46]ProducePacketName [19:19:46]name=ofd_packets/00067137 [19:19:46]OFD Sender: To server: pG, [19:19:46]CommunicateWithHost lk.salyk.kg:30040 [19:19:46]ConnectInit lk.salyk.kg [19:19:46]written 0, free lines is 4095 [19:19:46]Connected sock=10 [19:19:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 87 96 08 01 85 BD 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 14 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FC 89 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0E 00 00 00 00 07 04 06 00 E4 89 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 50 B9 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 2D 44 11 A2 92 2E A3 5D 72 E6 AD A5 D3 08 [19:19: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 C3 85 47 00 95 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 41 06 01 00 F4 03 04 00 30 61 43 66 B6 04 01 00 00 1D 17 5D 68 3F 2B 5C 44 [19:19:46]CommunicateWithHost err = 0 [19:19:46]CheckOFDResponse [19:19:46]1017 (14) - 77093643461234 [19:19:46]1041 (16) - 0000000000871829 [19:19:46]1040 (4) - 67137 [19:19:46]1012 (4) - 14.05.2024 13:03 [19:19:46]1206 (1) - 0 [19:19:46]OFD Sender: Remove packet 67137 [19:19:46]ProducePacketName [19:19:46]name=ofd_packets/00067137 [19:19:46]NVStorageDeleteData [19:19:46]Write to MH i2c: 01 00 00 9D 09 A6 [19:19:46]Write i2c OK [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: 01 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: 01 07 00 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: 01 07 00 9D 09 00 00 00 00 00 D5 0C 8E [19:19:46]RasterBufferAndPrint [19:19:46]line [19:19:46]line [19:19:46]line [19:19:46]line [19:19:46]line [19:19:46]written 0, free lines is 3292 [19:19:46]MH_Cut [19:19:46]Write to MH i2c: D1 01 00 A4 09 01 7F [19:19:46]Write i2c OK [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: D1 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: D1 01 00 [19:19:46]MH_I2C_Read... [19:19:46]Read from MH i2c: D1 01 00 A4 09 00 7E [19:19:46]Write to MH i2c: 01 00 00 A5 09 AE [19:19:46]Write i2c OK [19:19:46]MH_I2C_Read... [19:19:47]OFD Sender: No OFD packet to send [19:19:47]*** Cut start [19:19:47]*** Purtial cut [19:19:47]*** Stage 1: CUTSNS_PIN = 1 [19:19:47]Read from MH i2c: 01 [19:19:47]MH_I2C_Read... [19:19:47]*** Stop cut motor [19:19:47]*** Cut end [19:19:47]Read from MH i2c: 01 07 00 [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: 01 07 00 A5 09 00 00 00 00 00 FF 0F C3 [19:19:47]process_action close_receipt done [19:19:47]requested_data is exist [19:19:47]produce_requested_data [19:19:47]requested_item fm.sn is exist - process it [19:19:47]wFMCommunicate request_size=4 [19:19:47]MH_SAM_APDU [19:19:47]CAPDU: 80 11 00 00 [19:19:47]Write to MH i2c: E2 08 00 A6 09 80 11 00 00 00 00 00 00 29 [19:19:47]Write i2c OK [19:19:47]MH_I2C_Read... [19:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:47]Read from MH i2c: E2 [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: E2 17 00 [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: E2 17 00 A6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7F [19:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:19:47]wFMCommunicate OK [19:19:47]requested_item fd.num is exist - process it [19:19:47]SAM_PROTO_GetFieldsCounters [19:19:47]wFMCommunicate request_size=4 [19:19:47]MH_SAM_APDU [19:19:47]CAPDU: 80 13 00 00 [19:19:47]Write to MH i2c: E2 08 00 A7 09 80 13 00 00 00 00 00 00 2C [19:19:47]Write i2c OK [19:19:47]MH_I2C_Read... [19:19:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:47]Read from MH i2c: E2 [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: E2 62 00 [19:19:47]MH_I2C_Read... [19:19:47]Read from MH i2c: E2 62 00 A7 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 41 06 01 00 0E 04 04 00 63 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 AE [19:19: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 41 06 01 00 0E 04 04 00 63 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 [19:19:47]wFMCommunicate OK [19:19:47]SAM_PROTO_GetFieldsCounters done [19:19:47]requested_item shift.num is exist - process it [19:19:47]requested_item shift.opened is exist - process it [19:19:47]req_shift_opened [19:19:47]FM_GetShiftState [19:19:47]SAM_PROTO_GetShiftState [19:19:47]wFMCommunicate request_size=4 [19:19:47]MH_SAM_APDU [19:19:47]CAPDU: 80 13 01 00 [19:19:47]Write to MH i2c: E2 08 00 A8 09 80 13 01 00 00 00 00 00 2E [19:19:47]Write i2c OK [19:19:47]MH_I2C_Read... [19:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:48]Read from MH i2c: E2 [19:19:48]MH_I2C_Read... [19:19:48]Read from MH i2c: E2 0E 00 [19:19:48]MH_I2C_Read... [19:19:48]Read from MH i2c: E2 0E 00 A8 09 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 F6 [19:19:48]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:19:48]wFMCommunicate OK [19:19:48]SAM_PROTO_GetShiftState done [19:19:48]FM_GetShiftState done [19:19:48]req_shift_opened done [19:19:48]requested_item shift.open_date is exist - process it [19:19:48]req_shift_open_date [19:19:48]req_shift_open_date done [19:19:48]produce_requested_data done [19:19:48]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67137,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [19:19:48]process_action_free close_receipt [19:19:48]json_value_free [19:19:48]json_value_free done [19:19:48]process_json_proto returns [19:19:48]Send response to host [19:19:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67137,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [19:19:48]free response buf [19:19:48]execute_script done [19:19:48]execute_script returns [19:19:48]free content buf [19:19:48]Sock 9.Close socket [19:19:48]Sock 9.Thread stoped [19:19:49]int [19:19:49]Write to MH i2c: 01 00 00 A9 09 B2 [19:19:49]*** FLAG_PRN_PAP1 set [19:19:49]Write i2c OK [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: 01 [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: 01 07 00 [19:19:49]MH_I2C_Read... [19:19:49]Read from MH i2c: 01 07 00 A9 09 00 01 00 00 00 FF 0F C8 [19:19:49]state=0 [19:19:49]No paper [19:19:50]int [19:19:50]Write to MH i2c: 01 00 00 AA 09 B3 [19:19:50]*** FLAG_PRN_PAP2 set [19:19:50]Write i2c OK [19:19:50]MH_I2C_Read... [19:19:50]Read from MH i2c: 01 [19:19:50]MH_I2C_Read... [19:19:50]Read from MH i2c: 01 07 00 [19:19:50]MH_I2C_Read... [19:19:50]Read from MH i2c: 01 07 00 AA 09 00 03 00 00 00 FF 0F CB [19:19:50]state=0 [19:19:50]No paper [19:19:50]Cover opened [19:19:52]OFD Sender: No OFD packet to send [19:19:55]Write to MH i2c: 01 00 00 AB 09 B4 [19:19:55]Write i2c OK [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: 01 [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: 01 07 00 [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: 01 07 00 AB 09 00 03 00 00 00 FF 0F CC [19:19:55]state=3 [19:19:55]No paper [19:19:55]Cover opened [19:19:55]int [19:19:55]Write to MH i2c: 01 00 00 AC 09 B5 [19:19:55]*** FLAG_PRN_PAP1 reset [19:19:55]*** FLAG_PRN_PAP2 reset [19:19:55]Write i2c OK [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: 01 [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: 01 07 00 [19:19:55]MH_I2C_Read... [19:19:55]Read from MH i2c: 01 07 00 AC 09 00 00 00 00 00 FF 0F CA [19:19:55]state=3 [19:19:55]Cover closed [19:19:57]OFD Sender: No OFD packet to send [19:20:02]OFD Sender: No OFD packet to send [19:20:07]OFD Sender: No OFD packet to send [19:20:12]OFD Sender: No OFD packet to send [19:20:17]OFD Sender: No OFD packet to send [19:20:22]OFD Sender: No OFD packet to send [19:20:27]OFD Sender: No OFD packet to send [19:20:32]OFD Sender: No OFD packet to send [19:20:37]OFD Sender: No OFD packet to send [19:20:42]OFD Sender: No OFD packet to send [19:20:47]OFD Sender: No OFD packet to send [19:20:52]OFD Sender: No OFD packet to send [19:20:57]OFD Sender: No OFD packet to send [19:21:02]OFD Sender: No OFD packet to send [19:21:07]OFD Sender: No OFD packet to send [19:21:12]OFD Sender: No OFD packet to send [19:21:17]OFD Sender: No OFD packet to send [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:47]OFD Sender: No OFD packet to send [19:21:52]OFD Sender: No OFD packet to send [19:21:57]OFD Sender: No OFD packet to send [19:22:02]OFD Sender: No OFD packet to send [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:42]OFD Sender: No OFD packet to send [19:22:47]OFD Sender: No OFD packet to send [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:16]accept exits with 7 [19:26:16]New connection [19:26:16]New thread 3066588516 created [19:26:16]Thread 3066731876 joined [19:26:16]Waiting for new connection... [19:26:16] Sock 7.Parse request [19:26:16]Sock 7.Check first char [19:26:16]Sock 7.First char is OK [19:26:16]request: POST /json_proto HTTP/1.0 [19:26:16]Method: POST [19:26:16]URL: /json_proto [19:26:16]Method is POST - this is cgi request [19:26:16]url: /json_proto [19:26:16]query_string will be loaded in cgi processing [19:26:16]execute_cgi json_proto POST (null) [19:26:16]execute_cgi path=json_proto method=POST [19:26:16]POST find Content-Length [19:26:16]Host: 172.17.41.195:8080 [19:26:16]Content-Length: 677 [19:26:16]Content-Type: application/json [19:26:16] [19:26:16]POST finish read [19:26:16]Found Content-Length = 677 [19:26:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 4.500, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:16]execute_script... [19:26: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)507032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 4.500, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:16]POST & json_proto [19:26:16]process_json_proto [19:26:16]json parsed OK: [19:26:16]protocol is kg_v1.0 [19:26:16]action value=close_receipt [19:26:16]process_action close_receipt [19:26:16]cmd_close_receipt [19:26:16]MH_GetDate [19:26:16]Write to MH i2c: F0 00 00 AD 09 A5 [19:26:16]Write i2c OK [19:26:16]MH_I2C_Read... [19:26:16]Read from MH i2c: F0 [19:26:16]MH_I2C_Read... [19:26:16]Read from MH i2c: F0 09 00 [19:26:16]MH_I2C_Read... [19:26:16]Read from MH i2c: F0 09 00 AD 09 00 D9 BA 43 66 FC 21 6F 64 DA [19:26:16]GetLastDocTimeStamp 1715714384 [19:26:16]current date 1715714777 [19:26:16]FM_GetShiftState [19:26:16]SAM_PROTO_GetShiftState [19:26:16]wFMCommunicate request_size=4 [19:26:16]MH_SAM_APDU [19:26:16]CAPDU: 80 13 01 00 [19:26:16]Write to MH i2c: E2 08 00 AE 09 80 13 01 00 00 00 00 00 34 [19:26:16]Write i2c OK [19:26:16]MH_I2C_Read... [19:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:16]Read from MH i2c: E2 [19:26:16]MH_I2C_Read... [19:26:16]Read from MH i2c: E2 0E 00 [19:26:16]MH_I2C_Read... [19:26:16]Read from MH i2c: E2 0E 00 AE 09 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 FC [19:26:16]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:26:16]wFMCommunicate OK [19:26:16]SAM_PROTO_GetShiftState done [19:26:16]FM_GetShiftState done [19:26:16]opened in 1715646054 [19:26:16]opened+sec_in_day 1715732454 [19:26:16]quantity*price = 30060 [19:26:16]sum+1 = 30061 [19:26:16]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 СНО: Общий режим Чек 145 14.05.2024 19:26 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67138 ФПД: 124161171354125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T192617&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67138&fm=124161171354125&tin=02508201610067®Number=0000000000091845&sum=30000 [19:26:18]StoreToDocumentArchive [19:26:18]shift 355 fd 67138 [19:26:18]save to /storage/0355/doc_00067138 [19:26:18]save last doc name /storage/0355/doc_00067138 to /storage/kkm_last_doc_name [19:26:18]save OK [19:26:18]Clear old archive folders... [19:26:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:18]tlvbuf is 003AECA0 [19:26:18]SAM_PROTO_ClearQueue [19:26:18]wFMCommunicate request_size=4 [19:26:18]MH_SAM_APDU [19:26:18]CAPDU: 80 09 00 00 [19:26:18]Write to MH i2c: E2 08 00 BB 09 80 09 00 00 00 00 00 00 36 [19:26:18]Write i2c OK [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 [19:26:18]MH_I2C_Read... [19:26:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:18]Read from MH i2c: E2 03 00 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 03 00 BB 09 00 90 00 38 [19:26:18]RAPDU: 90 00 [19:26:18]wFMCommunicate OK [19:26:18]SAM_PROTO_ClearQueue done [19:26:18]KKMCreateOFDPacket [19:26:18]OFDProtocolAddRootSTLVToBuf [19:26:18]FM_MakeSignedData [19:26:18]FM_MakeSignedData [19:26:18]SAM_PROTO_SignData [19:26:18]wFMCommunicate request_size=4 [19:26:18]MH_SAM_APDU [19:26:18]CAPDU: 80 0D 01 02 [19:26:18]Write to MH i2c: E2 08 00 BC 09 80 0D 01 02 00 00 00 00 3E [19:26:18]Write i2c OK [19:26:18]MH_I2C_Read... [19:26:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:18]Read from MH i2c: E2 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 03 00 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 03 00 BC 09 00 90 00 39 [19:26:18]RAPDU: 90 00 [19:26:18]wFMCommunicate OK [19:26:18]wFMCommunicate request_size=255 [19:26:18]MH_SAM_APDU [19:26:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 91 00 00 00 F4 03 04 00 D9 BA 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 70 [19:26:18]Write to MH i2c: E2 02 01 BD 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 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 91 00 00 00 F4 03 04 00 D9 BA 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 70 00 00 C8 [19:26:18]Write i2c OK [19:26:18]MH_I2C_Read... [19:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:18]Read from MH i2c: E2 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 03 00 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 03 00 BD 09 00 90 00 3A [19:26:18]RAPDU: 90 00 [19:26:18]wFMCommunicate OK [19:26:18]wFMCommunicate request_size=10 [19:26:18]MH_SAM_APDU [19:26:18]CAPDU: 80 0D 02 02 05 EC 86 83 72 0D [19:26:18]Write to MH i2c: E2 0D 00 BE 09 80 0D 02 02 05 00 EC 86 83 72 0D 00 00 BF [19:26:18]Write i2c OK [19:26:18]MH_I2C_Read... [19:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:18]Read from MH i2c: E2 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 03 00 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 03 00 BE 09 00 90 00 3B [19:26:18]RAPDU: 90 00 [19:26:18]wFMCommunicate OK [19:26:18]wFMCommunicate request_size=4 [19:26:18]MH_SAM_APDU [19:26:18]CAPDU: 80 0D 03 02 [19:26:18]Write to MH i2c: E2 08 00 BF 09 80 0D 03 02 00 00 00 00 43 [19:26:18]Write i2c OK [19:26:18]MH_I2C_Read... [19:26:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:18]Read from MH i2c: E2 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 0B 00 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 0B 00 BF 09 00 BC AA EB 6B 65 82 87 71 90 00 DF [19:26:18]RAPDU: BC AA EB 6B 65 82 87 71 90 00 [19:26:18]wFMCommunicate OK [19:26:18]SAM_PROTO_SignData done [19:26:18]FM_MakeSignedData done [19:26:18]CreateOFDProtocolMessage [19:26:18]wFMCommunicate request_size=4 [19:26:18]MH_SAM_APDU [19:26:18]CAPDU: 80 11 00 00 [19:26:18]Write to MH i2c: E2 08 00 C0 09 80 11 00 00 00 00 00 00 43 [19:26:18]Write i2c OK [19:26:18]MH_I2C_Read... [19:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:18]Read from MH i2c: E2 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 17 00 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: E2 17 00 C0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 99 [19:26: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:26:18]wFMCommunicate OK [19:26:18]CreateOFDProtocolMessage done [19:26:18]OFDSenderStorePacket 67138 [19:26:18]StoreOFDPacket docnum=67138 [19:26: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 CB 06 07 01 C8 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 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 91 00 00 00 F4 03 04 00 D9 BA 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 70 EC 86 83 72 0D BC AA EB 6B 65 82 87 71 [19:26:18]CheckFolder [19:26:18]dirname=/storage/ofd_packets [19:26:18]CheckFolder done [19:26:18]ProducePacketName [19:26:18]name=ofd_packets/00067138 [19:26:18]NVStorageSaveData ofd_packets/00067138 [19:26:18]File name is /storage/ofd_packets/00067138 [19:26:18]Write 301 bytes [19:26:18]NVStorageSaveData done [19:26:18]OFDSenderStorePacket done [19:26:18]KKMCreateOFDPacket done [19:26:18]NVStorageSaveData kkm_last_timestamp [19:26:18]File name is /storage/kkm_last_timestamp [19:26:18]Write 4 bytes [19:26:18]NVStorageSaveData done [19:26:18]ExternCall_PrintAddStr [19:26:18]wPrintStart [19:26:18]Write to MH i2c: 01 00 00 C1 09 CA [19:26:18]Write i2c OK [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: 01 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: 01 07 00 [19:26:18]MH_I2C_Read... [19:26:18]Read from MH i2c: 01 07 00 C1 09 00 00 00 00 00 FF 0F DF [19:26:18]RasterBufferAndPrint [19:26:18]line Счет N : (1)507032 [19:26:18]line ИНН: 02508201610067 [19:26:18]line Контрольно-Кассовый Чек [19:26:18]line ПРОДАЖА [19:26:18]line ТРК (МРК, ГНК) : 33 [19:26:18]line Товар: 2710124130 [19:26:18]line Аи-92-К-5 [19:26:18]line 4.500 * 66.80 [19:26:18]line = 300.60 [19:26:18]line НДС 12% НСП 1% [19:26:18]line > о реализуемом товаре [19:26:18]line ОКРУГЛЕНИЕ: -0.60 [19:26:18]line ИТОГО: 300.00 [19:26:18]line Внесено: 300.00 [19:26:18]line СДАЧА: 0.00 [19:26:18]line НСП 1% : 2.66 [19:26:18]line НДС 12% : 31.92 [19:26:18]line Наличными: 300.00 [19:26:18]line Безнал.: 0.00 [19:26:18]line Место: АЗС № 91 "Партнер Нефть" [19:26:18]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:26:18]line СНО: Общий режим [19:26:18]line Чек 145 14.05.2024 19:26 [19:26:18]line Смена: 355 ФФД: 1.0 [19:26:18]line ЗНМ: 0300000119 [19:26:18]line РНМ: 0000000000091845 [19:26:18]line Версия ККМ: 001 [19:26:18]line ФМ: 0000000000871829 [19:26:18]line ФД: 67138 [19:26:18]line ФПД: 124161171354125 [19:26:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T192617&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67138&fm=124161171354125&tin=02508201610067®Number=0000000000091845&sum=30000 [19:26:18]OFD Sender: Processing packet 67138 [packets to send 35, broken 34] [19:26:18]ProducePacketName [19:26:18]name=ofd_packets/00067138 [19:26:18]OFD Sender: To server: pG, [19:26:18]CommunicateWithHost lk.salyk.kg:30040 [19:26:18]ConnectInit lk.salyk.kg [19:26:18]written 0, free lines is 4095 [19:26:18]Connected sock=10 [19:26: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 CB 06 07 01 C8 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 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 91 00 00 00 F4 03 04 00 D9 BA 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 70 EC 86 83 72 0D BC AA EB 6B 65 82 87 71 [19:26: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 EA 47 47 00 75 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 42 06 01 00 F4 03 04 00 B8 62 43 66 B6 04 01 00 00 56 60 A7 1D 3C 4A 99 7D [19:26:19]CommunicateWithHost err = 0 [19:26:19]CheckOFDResponse [19:26:19]1017 (14) - 77093643461234 [19:26:19]1041 (16) - 0000000000871829 [19:26:19]1040 (4) - 67138 [19:26:19]1012 (4) - 14.05.2024 13:10 [19:26:19]1206 (1) - 0 [19:26:19]OFD Sender: Remove packet 67138 [19:26:19]ProducePacketName [19:26:19]name=ofd_packets/00067138 [19:26:19]NVStorageDeleteData [19:26:19]Write to MH i2c: 01 00 00 EB 09 F4 [19:26:19]Write i2c OK [19:26:19]MH_I2C_Read... [19:26:19]Read from MH i2c: 01 [19:26:19]MH_I2C_Read... [19:26:19]Read from MH i2c: 01 07 00 [19:26:19]MH_I2C_Read... [19:26:19]Read from MH i2c: 01 07 00 EB 09 00 00 00 00 00 D6 0C DD [19:26:19]RasterBufferAndPrint [19:26:19]line [19:26:19]line [19:26:19]line [19:26:19]line [19:26:19]line [19:26:19]written 0, free lines is 3292 [19:26:19]MH_Cut [19:26:19]Write to MH i2c: D1 01 00 F2 09 01 CD [19:26:19]Write i2c OK [19:26:19]MH_I2C_Read... [19:26:19]Read from MH i2c: D1 [19:26:19]MH_I2C_Read... [19:26:19]Read from MH i2c: D1 01 00 [19:26:19]MH_I2C_Read... [19:26:19]Read from MH i2c: D1 01 00 F2 09 00 CC [19:26:19]Write to MH i2c: 01 00 00 F3 09 FC [19:26:19]Write i2c OK [19:26:19]MH_I2C_Read... [19:26:19]OFD Sender: No OFD packet to send [19:26:20]*** Cut start [19:26:20]*** Purtial cut [19:26:20]*** CUTSNS_PIN = 0 [19:26:20]*** Stage 1: CUTSNS_PIN = 1 [19:26:22]Read from MH i2c: 01 [19:26:22]MH_I2C_Read... [19:26:22]*** Stop cut motor [19:26:22]*** Cut end [19:26:22]Read from MH i2c: 01 07 00 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: 01 07 00 F3 09 00 00 00 00 00 FF 0F 11 [19:26:22]process_action close_receipt done [19:26:22]requested_data is exist [19:26:22]produce_requested_data [19:26:22]requested_item fm.sn is exist - process it [19:26:22]wFMCommunicate request_size=4 [19:26:22]MH_SAM_APDU [19:26:22]CAPDU: 80 11 00 00 [19:26:22]Write to MH i2c: E2 08 00 F4 09 80 11 00 00 00 00 00 00 77 [19:26:22]Write i2c OK [19:26:22]MH_I2C_Read... [19:26:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:22]Read from MH i2c: E2 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: E2 17 00 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: E2 17 00 F4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CD [19:26:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:26:22]wFMCommunicate OK [19:26:22]requested_item fd.num is exist - process it [19:26:22]SAM_PROTO_GetFieldsCounters [19:26:22]wFMCommunicate request_size=4 [19:26:22]MH_SAM_APDU [19:26:22]CAPDU: 80 13 00 00 [19:26:22]Write to MH i2c: E2 08 00 F5 09 80 13 00 00 00 00 00 00 7A [19:26:22]Write i2c OK [19:26:22]MH_I2C_Read... [19:26:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:22]Read from MH i2c: E2 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: E2 62 00 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: E2 62 00 F5 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 42 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [19:26:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 42 06 01 00 0E 04 04 00 63 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 [19:26:22]wFMCommunicate OK [19:26:22]SAM_PROTO_GetFieldsCounters done [19:26:22]requested_item shift.num is exist - process it [19:26:22]requested_item shift.opened is exist - process it [19:26:22]req_shift_opened [19:26:22]FM_GetShiftState [19:26:22]SAM_PROTO_GetShiftState [19:26:22]wFMCommunicate request_size=4 [19:26:22]MH_SAM_APDU [19:26:22]CAPDU: 80 13 01 00 [19:26:22]Write to MH i2c: E2 08 00 F6 09 80 13 01 00 00 00 00 00 7C [19:26:22]Write i2c OK [19:26:22]MH_I2C_Read... [19:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:22]Read from MH i2c: E2 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: E2 0E 00 [19:26:22]MH_I2C_Read... [19:26:22]Read from MH i2c: E2 0E 00 F6 09 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 44 [19:26:22]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:26:22]wFMCommunicate OK [19:26:22]SAM_PROTO_GetShiftState done [19:26:22]FM_GetShiftState done [19:26:22]req_shift_opened done [19:26:22]requested_item shift.open_date is exist - process it [19:26:22]req_shift_open_date [19:26:22]req_shift_open_date done [19:26:22]produce_requested_data done [19:26:22]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67138,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [19:26:22]process_action_free close_receipt [19:26:22]json_value_free [19:26:22]json_value_free done [19:26:22]process_json_proto returns [19:26:22]Send response to host [19:26:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67138,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [19:26:22]free response buf [19:26:22]execute_script done [19:26:22]execute_script returns [19:26:22]free content buf [19:26:22]Sock 7.Close socket [19:26:22]Sock 7.Thread stoped [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:59]OFD Sender: No OFD packet to send [19:27:04]OFD Sender: No OFD packet to send [19:27:09]OFD Sender: No OFD packet to send [19:27:14]OFD Sender: No OFD packet to send [19:27:19]OFD Sender: No OFD packet to send [19:27:24]OFD Sender: No OFD packet to send [19:27:29]OFD Sender: No OFD packet to send [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:43]accept exits with 9 [19:27:43]New connection [19:27:43]New thread 3066731876 created [19:27:43]Thread 3066588516 joined [19:27:43]Waiting for new connection... [19:27:43] Sock 9.Parse request [19:27:43]Sock 9.Check first char [19:27:43]Sock 9.First char is OK [19:27:43]request: POST /json_proto HTTP/1.0 [19:27:43]Method: POST [19:27:43]URL: /json_proto [19:27:43]Method is POST - this is cgi request [19:27:43]url: /json_proto [19:27:43]query_string will be loaded in cgi processing [19:27:43]execute_cgi json_proto POST (null) [19:27:43]execute_cgi path=json_proto method=POST [19:27:43]POST find Content-Length [19:27:43]Host: 172.17.41.195:8080 [19:27:43]Content-Length: 800 [19:27:43]Content-Type: application/json [19:27:43] [19:27:43]POST finish read [19:27:43]Found Content-Length = 800 [19:27:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 18.750, "sum" : 1400.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1400.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:43]execute_script... [19:27: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)507033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 18.750, "sum" : 1400.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1400.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:43]POST & json_proto [19:27:43]process_json_proto [19:27:43]json parsed OK: [19:27:43]protocol is kg_v1.0 [19:27:43]action value=close_receipt [19:27:43]process_action close_receipt [19:27:43]cmd_close_receipt [19:27:43]MH_GetDate [19:27:43]Write to MH i2c: F0 00 00 F7 09 EF [19:27:43]Write i2c OK [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: F0 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: F0 09 00 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: F0 09 00 F7 09 00 2F BB 43 66 FC 21 6F 64 7B [19:27:43]GetLastDocTimeStamp 1715714777 [19:27:43]current date 1715714863 [19:27:43]FM_GetShiftState [19:27:43]SAM_PROTO_GetShiftState [19:27:43]wFMCommunicate request_size=4 [19:27:43]MH_SAM_APDU [19:27:43]CAPDU: 80 13 01 00 [19:27:43]Write to MH i2c: E2 08 00 F8 09 80 13 01 00 00 00 00 00 7E [19:27:43]Write i2c OK [19:27:43]MH_I2C_Read... [19:27:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:43]Read from MH i2c: E2 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: E2 0E 00 [19:27:43]MH_I2C_Read... [19:27:43]Read from MH i2c: E2 0E 00 F8 09 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 46 [19:27:43]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:27:43]wFMCommunicate OK [19:27:43]SAM_PROTO_GetShiftState done [19:27:43]FM_GetShiftState done [19:27:43]opened in 1715646054 [19:27:43]opened+sec_in_day 1715732454 [19:27:43]quantity*price = 140062 [19:27:43]sum+1 = 140064 [19:27:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1400.63 НСП 1% : 12.39 НДС 12% : 148.74 Наличными: 0.00 Безнал.: 1400.63 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 146 14.05.2024 19:27 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67139 ФПД: 16293369391655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T192743&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67139&fm=16293369391655&tin=02508201610067®Number=0000000000091845&sum=140063 [19:27:44]StoreToDocumentArchive [19:27:44]shift 355 fd 67139 [19:27:44]save to /storage/0355/doc_00067139 [19:27:44]save last doc name /storage/0355/doc_00067139 to /storage/kkm_last_doc_name [19:27:44]save OK [19:27:44]Clear old archive folders... [19:27:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:27:44]tlvbuf is 003B6970 [19:27:44]SAM_PROTO_ClearQueue [19:27:44]wFMCommunicate request_size=4 [19:27:44]MH_SAM_APDU [19:27:44]CAPDU: 80 09 00 00 [19:27:44]Write to MH i2c: E2 08 00 05 0A 80 09 00 00 00 00 00 00 81 [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:44]Read from MH i2c: E2 03 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 03 00 05 0A 00 90 00 83 [19:27:44]RAPDU: 90 00 [19:27:44]wFMCommunicate OK [19:27:44]SAM_PROTO_ClearQueue done [19:27:44]KKMCreateOFDPacket [19:27:44]OFDProtocolAddRootSTLVToBuf [19:27:44]FM_MakeSignedData [19:27:44]FM_MakeSignedData [19:27:44]SAM_PROTO_SignData [19:27:44]wFMCommunicate request_size=4 [19:27:44]MH_SAM_APDU [19:27:44]CAPDU: 80 0D 01 02 [19:27:44]Write to MH i2c: E2 08 00 06 0A 80 0D 01 02 00 00 00 00 89 [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 03 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 03 00 06 0A 00 90 00 84 [19:27:44]RAPDU: 90 00 [19:27:44]wFMCommunicate OK [19:27:44]wFMCommunicate request_size=255 [19:27:44]MH_SAM_APDU [19:27: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 3E 49 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 1F 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F 23 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 2F BB 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0E D1 98 7E [19:27:44]Write to MH i2c: E2 02 01 07 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 3E 49 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 1F 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F 23 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 2F BB 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0E D1 98 7E 00 00 80 [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 03 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 03 00 07 0A 00 90 00 85 [19:27:44]RAPDU: 90 00 [19:27:44]wFMCommunicate OK [19:27:44]wFMCommunicate request_size=7 [19:27:44]MH_SAM_APDU [19:27:44]CAPDU: 80 0D 02 02 02 AA 27 [19:27:44]Write to MH i2c: E2 0A 00 08 0A 80 0D 02 02 02 00 AA 27 00 00 61 [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 03 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 03 00 08 0A 00 90 00 86 [19:27:44]RAPDU: 90 00 [19:27:44]wFMCommunicate OK [19:27:44]wFMCommunicate request_size=4 [19:27:44]MH_SAM_APDU [19:27:44]CAPDU: 80 0D 03 02 [19:27:44]Write to MH i2c: E2 08 00 09 0A 80 0D 03 02 00 00 00 00 8E [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 0B 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 0B 00 09 0A 00 19 24 C3 01 E3 A2 B8 43 90 00 10 [19:27:44]RAPDU: 19 24 C3 01 E3 A2 B8 43 90 00 [19:27:44]wFMCommunicate OK [19:27:44]SAM_PROTO_SignData done [19:27:44]FM_MakeSignedData done [19:27:44]CreateOFDProtocolMessage [19:27:44]wFMCommunicate request_size=4 [19:27:44]MH_SAM_APDU [19:27:44]CAPDU: 80 11 00 00 [19:27:44]Write to MH i2c: E2 08 00 0A 0A 80 11 00 00 00 00 00 00 8E [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]OFD Sender: No OFD packet to send [19:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:44]Read from MH i2c: E2 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 17 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: E2 17 00 0A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E4 [19: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 [19:27:44]wFMCommunicate OK [19:27:44]CreateOFDProtocolMessage done [19:27:44]OFDSenderStorePacket 67139 [19:27:44]StoreOFDPacket docnum=67139 [19:27: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 07 5A 04 01 09 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 49 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 1F 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F 23 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 2F BB 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0E D1 98 7E AA 27 19 24 C3 01 E3 A2 B8 43 [19:27:44]CheckFolder [19:27:44]dirname=/storage/ofd_packets [19:27:44]CheckFolder done [19:27:44]ProducePacketName [19:27:44]name=ofd_packets/00067139 [19:27:44]NVStorageSaveData ofd_packets/00067139 [19:27:44]File name is /storage/ofd_packets/00067139 [19:27:44]Write 298 bytes [19:27:44]NVStorageSaveData done [19:27:44]OFDSenderStorePacket done [19:27:44]KKMCreateOFDPacket done [19:27:44]NVStorageSaveData kkm_last_timestamp [19:27:44]File name is /storage/kkm_last_timestamp [19:27:44]Write 4 bytes [19:27:44]NVStorageSaveData done [19:27:44]ExternCall_PrintAddStr [19:27:44]wPrintStart [19:27:44]Write to MH i2c: 01 00 00 0B 0A 15 [19:27:44]Write i2c OK [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: 01 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: 01 07 00 [19:27:44]MH_I2C_Read... [19:27:44]Read from MH i2c: 01 07 00 0B 0A 00 00 00 00 00 FF 0F 2A [19:27:44]RasterBufferAndPrint [19:27:44]line Счет N : (1)507033 [19:27:44]line ИНН: 02508201610067 [19:27:44]line Контрольно-Кассовый Чек [19:27:44]line ПРОДАЖА [19:27:44]line ТРК (МРК, ГНК) : 31 [19:27:44]line Товар: 2710194210 [19:27:44]line ДТ-К-5 [19:27:44]line 18.750 * 74.70 [19:27:44]line = 1400.63 [19:27:44]line НДС 12% НСП 1% [19:27:44]line > о реализуемом товаре [19:27:44]line ИТОГО: 1400.63 [19:27:44]line НСП 1% : 12.39 [19:27:44]line НДС 12% : 148.74 [19:27:44]line Наличными: 0.00 [19:27:44]line Безнал.: 1400.63 [19:27:44]line Место: АЗС № 91 "Партнер Нефть" [19:27:44]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:27:44]line СНО: Общий режим [19:27:44]line Чек 146 14.05.2024 19:27 [19:27:44]line Смена: 355 ФФД: 1.0 [19:27:44]line ЗНМ: 0300000119 [19:27:44]line РНМ: 0000000000091845 [19:27:44]line Версия ККМ: 001 [19:27:44]line Платежная система: O! деньги [19:27:44]line ФМ: 0000000000871829 [19:27:44]line ФД: 67139 [19:27:44]line ФПД: 16293369391655 [19:27:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T192743&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67139&fm=16293369391655&tin=02508201610067®Number=0000000000091845&sum=140063 [19:27:45]OFD Sender: Processing packet 67139 [packets to send 35, broken 34] [19:27:45]ProducePacketName [19:27:45]name=ofd_packets/00067139 [19:27:45]OFD Sender: To server: pG, [19:27:45]CommunicateWithHost lk.salyk.kg:30040 [19:27:45]ConnectInit lk.salyk.kg [19:27:45]written 0, free lines is 4095 [19:27:45]Connected sock=10 [19:27: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 07 5A 04 01 09 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 49 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 1F 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F 23 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F 23 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 2F BB 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0E D1 98 7E AA 27 19 24 C3 01 E3 A2 B8 43 [19:27: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 9C 32 47 00 B4 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 43 06 01 00 F4 03 04 00 0F 63 43 66 B6 04 01 00 00 E0 C1 FA 60 A4 19 AA 3A [19:27:45]CommunicateWithHost err = 0 [19:27:45]CheckOFDResponse [19:27:45]1017 (14) - 77093643461234 [19:27:45]1041 (16) - 0000000000871829 [19:27:45]1040 (4) - 67139 [19:27:45]1012 (4) - 14.05.2024 13:11 [19:27:45]1206 (1) - 0 [19:27:45]OFD Sender: Remove packet 67139 [19:27:45]ProducePacketName [19:27:45]name=ofd_packets/00067139 [19:27:45]NVStorageDeleteData [19:27:45]Write to MH i2c: 01 00 00 34 0A 3E [19:27:45]Write i2c OK [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: 01 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: 01 07 00 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: 01 07 00 34 0A 00 00 00 00 00 F8 0C 49 [19:27:45]RasterBufferAndPrint [19:27:45]line [19:27:45]line [19:27:45]line [19:27:45]line [19:27:45]line [19:27:45]written 0, free lines is 3329 [19:27:45]MH_Cut [19:27:45]Write to MH i2c: D1 01 00 3B 0A 01 17 [19:27:45]Write i2c OK [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: D1 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: D1 01 00 [19:27:45]MH_I2C_Read... [19:27:45]Read from MH i2c: D1 01 00 3B 0A 00 16 [19:27:45]Write to MH i2c: 01 00 00 3C 0A 46 [19:27:45]Write i2c OK [19:27:45]MH_I2C_Read... [19:27:45]OFD Sender: No OFD packet to send [19:27:46]*** Cut start [19:27:46]*** Purtial cut [19:27:46]*** Stage 1: CUTSNS_PIN = 1 [19:27:46]Read from MH i2c: 01 [19:27:46]MH_I2C_Read... [19:27:46]*** Stop cut motor [19:27:46]*** Cut end [19:27:46]Read from MH i2c: 01 07 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: 01 07 00 3C 0A 00 00 00 00 00 FF 0F 5B [19:27:46]process_action close_receipt done [19:27:46]requested_data is exist [19:27:46]produce_requested_data [19:27:46]requested_item fm.sn is exist - process it [19:27:46]wFMCommunicate request_size=4 [19:27:46]MH_SAM_APDU [19:27:46]CAPDU: 80 11 00 00 [19:27:46]Write to MH i2c: E2 08 00 3D 0A 80 11 00 00 00 00 00 00 C1 [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 17 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 17 00 3D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 17 [19:27: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:27:46]wFMCommunicate OK [19:27:46]requested_item fd.num is exist - process it [19:27:46]SAM_PROTO_GetFieldsCounters [19:27:46]wFMCommunicate request_size=4 [19:27:46]MH_SAM_APDU [19:27:46]CAPDU: 80 13 00 00 [19:27:46]Write to MH i2c: E2 08 00 3E 0A 80 13 00 00 00 00 00 00 C4 [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 62 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 62 00 3E 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 43 06 01 00 0E 04 04 00 63 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 4E [19:27: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 43 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:46]wFMCommunicate OK [19:27:46]SAM_PROTO_GetFieldsCounters done [19:27:46]requested_item shift.num is exist - process it [19:27:46]requested_item shift.opened is exist - process it [19:27:46]req_shift_opened [19:27:46]FM_GetShiftState [19:27:46]SAM_PROTO_GetShiftState [19:27:46]wFMCommunicate request_size=4 [19:27:46]MH_SAM_APDU [19:27:46]CAPDU: 80 13 01 00 [19:27:46]Write to MH i2c: E2 08 00 3F 0A 80 13 01 00 00 00 00 00 C6 [19:27:46]Write i2c OK [19:27:46]MH_I2C_Read... [19:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:46]Read from MH i2c: E2 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 0E 00 [19:27:46]MH_I2C_Read... [19:27:46]Read from MH i2c: E2 0E 00 3F 0A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 8E [19:27:46]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:27:46]wFMCommunicate OK [19:27:46]SAM_PROTO_GetShiftState done [19:27:46]FM_GetShiftState done [19:27:46]req_shift_opened done [19:27:46]requested_item shift.open_date is exist - process it [19:27:46]req_shift_open_date [19:27:46]req_shift_open_date done [19:27:46]produce_requested_data done [19:27:46]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67139,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [19:27:46]process_action_free close_receipt [19:27:46]json_value_free [19:27:46]json_value_free done [19:27:46]process_json_proto returns [19:27:46]Send response to host [19:27:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67139,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [19:27:46]free response buf [19:27:46]execute_script done [19:27:46]execute_script returns [19:27:46]free content buf [19:27:46]Sock 9.Close socket [19:27:46]Sock 9.Thread stoped [19:27:51]OFD Sender: No OFD packet to send [19:27:56]OFD Sender: No OFD packet to send [19:28:01]OFD Sender: No OFD packet to send [19:28:06]OFD Sender: No OFD packet to send [19:28:11]OFD Sender: No OFD packet to send [19:28:16]OFD Sender: No OFD packet to send [19:28:21]OFD Sender: No OFD packet to send [19:28:26]OFD Sender: No OFD packet to send [19:28:31]OFD Sender: No OFD packet to send [19:28:36]OFD Sender: No OFD packet to send [19:28:41]OFD Sender: No OFD packet to send [19:28:46]OFD Sender: No OFD packet to send [19:28:51]OFD Sender: No OFD packet to send [19:28:56]OFD Sender: No OFD packet to send [19:29:01]OFD Sender: No OFD packet to send [19:29:06]OFD Sender: No OFD packet to send [19:29:11]OFD Sender: No OFD packet to send [19:29:16]OFD Sender: No OFD packet to send [19:29:21]OFD Sender: No OFD packet to send [19:29:26]OFD Sender: No OFD packet to send [19:29:31]OFD Sender: No OFD packet to send [19:29:36]OFD Sender: No OFD packet to send [19:29:41]OFD Sender: No OFD packet to send [19:29:46]OFD Sender: No OFD packet to send [19:29:51]OFD Sender: No OFD packet to send [19:29:56]OFD Sender: No OFD packet to send [19:29:56]accept exits with 7 [19:29:56]New connection [19:29:56]New thread 3066588516 created [19:29:56]Thread 3066731876 joined [19:29:56]Waiting for new connection... [19:29:56] Sock 7.Parse request [19:29:56]Sock 7.Check first char [19:29:56]Sock 7.First char is OK [19:29:56]request: POST /json_proto HTTP/1.0 [19:29:56]Method: POST [19:29:56]URL: /json_proto [19:29:56]Method is POST - this is cgi request [19:29:56]url: /json_proto [19:29:56]query_string will be loaded in cgi processing [19:29:56]execute_cgi json_proto POST (null) [19:29:56]execute_cgi path=json_proto method=POST [19:29:56]POST find Content-Length [19:29:56]Host: 172.17.41.195:8080 [19:29:56]Content-Length: 816 [19:29:56]Content-Type: application/json [19:29:56] [19:29:56]POST finish read [19:29:56]Found Content-Length = 816 [19:29:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507034", "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" ] } } [19:29:56]execute_script... [19:29: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)507034", "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" ] } } [19:29:56]POST & json_proto [19:29:56]process_json_proto [19:29:56]json parsed OK: [19:29:56]protocol is kg_v1.0 [19:29:56]action value=close_receipt [19:29:56]process_action close_receipt [19:29:56]cmd_close_receipt [19:29:56]MH_GetDate [19:29:56]Write to MH i2c: F0 00 00 40 0A 39 [19:29:56]Write i2c OK [19:29:56]MH_I2C_Read... [19:29:56]Read from MH i2c: F0 [19:29:56]MH_I2C_Read... [19:29:56]Read from MH i2c: F0 09 00 [19:29:56]MH_I2C_Read... [19:29:56]Read from MH i2c: F0 09 00 40 0A 00 B5 BB 43 66 FC 21 6F 64 4B [19:29:56]GetLastDocTimeStamp 1715714863 [19:29:56]current date 1715714997 [19:29:56]FM_GetShiftState [19:29:56]SAM_PROTO_GetShiftState [19:29:56]wFMCommunicate request_size=4 [19:29:56]MH_SAM_APDU [19:29:56]CAPDU: 80 13 01 00 [19:29:56]Write to MH i2c: E2 08 00 41 0A 80 13 01 00 00 00 00 00 C8 [19:29:56]Write i2c OK [19:29:56]MH_I2C_Read... [19:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:56]Read from MH i2c: E2 [19:29:56]MH_I2C_Read... [19:29:56]Read from MH i2c: E2 0E 00 [19:29:56]MH_I2C_Read... [19:29:56]Read from MH i2c: E2 0E 00 41 0A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 90 [19:29:56]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:29:56]wFMCommunicate OK [19:29:56]SAM_PROTO_GetShiftState done [19:29:56]FM_GetShiftState done [19:29:56]opened in 1715646054 [19:29:56]opened+sec_in_day 1715732454 [19:29:56]quantity*price = 100023 [19:29:56]sum+1 = 100024 [19:29:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 147 14.05.2024 19:29 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871829 ФД: 67140 ФПД: 3620363217792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T192957&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67140&fm=3620363217792&tin=02508201610067®Number=0000000000091845&sum=100023 [19:29:57]StoreToDocumentArchive [19:29:57]shift 355 fd 67140 [19:29:57]save to /storage/0355/doc_00067140 [19:29:57]save last doc name /storage/0355/doc_00067140 to /storage/kkm_last_doc_name [19:29:57]save OK [19:29:57]Clear old archive folders... [19:29:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:29:57]tlvbuf is 003A4540 [19:29:57]SAM_PROTO_ClearQueue [19:29:57]wFMCommunicate request_size=4 [19:29:57]MH_SAM_APDU [19:29:57]CAPDU: 80 09 00 00 [19:29:57]Write to MH i2c: E2 08 00 4E 0A 80 09 00 00 00 00 00 00 CA [19:29:57]Write i2c OK [19:29:57]MH_I2C_Read... [19:29:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:57]Read from MH i2c: E2 [19:29:57]MH_I2C_Read... [19:29:57]Read from MH i2c: E2 03 00 [19:29:57]MH_I2C_Read... [19:29:57]Read from MH i2c: E2 03 00 4E 0A 00 90 00 CC [19:29:57]RAPDU: 90 00 [19:29:57]wFMCommunicate OK [19:29:57]SAM_PROTO_ClearQueue done [19:29:57]KKMCreateOFDPacket [19:29:57]OFDProtocolAddRootSTLVToBuf [19:29:57]FM_MakeSignedData [19:29:57]FM_MakeSignedData [19:29:57]SAM_PROTO_SignData [19:29:57]wFMCommunicate request_size=4 [19:29:57]MH_SAM_APDU [19:29:57]CAPDU: 80 0D 01 02 [19:29:57]Write to MH i2c: E2 08 00 4F 0A 80 0D 01 02 00 00 00 00 D2 [19:29:57]Write i2c OK [19:29:57]MH_I2C_Read... [19:29:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:57]Read from MH i2c: E2 [19:29:57]MH_I2C_Read... [19:29:57]Read from MH i2c: E2 03 00 [19:29:57]MH_I2C_Read... [19:29:57]Read from MH i2c: E2 03 00 4F 0A 00 90 00 CD [19:29:57]RAPDU: 90 00 [19:29:57]wFMCommunicate OK [19:29:57]wFMCommunicate request_size=255 [19:29:57]MH_SAM_APDU [19:29:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 93 00 00 00 F4 03 04 00 B5 BB 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 03 4A EE 76 [19:29:57]Write to MH i2c: E2 02 01 50 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 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 93 00 00 00 F4 03 04 00 B5 BB 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 03 4A EE 76 00 00 E6 [19:29:57]Write i2c OK [19:29:57]MH_I2C_Read... [19:29:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:58]Read from MH i2c: E2 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 03 00 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 03 00 50 0A 00 90 00 CE [19:29:58]RAPDU: 90 00 [19:29:58]wFMCommunicate OK [19:29:58]wFMCommunicate request_size=7 [19:29:58]MH_SAM_APDU [19:29:58]CAPDU: 80 0D 02 02 02 AB 80 [19:29:58]Write to MH i2c: E2 0A 00 51 0A 80 0D 02 02 02 00 AB 80 00 00 04 [19:29:58]Write i2c OK [19:29:58]MH_I2C_Read... [19:29:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:58]Read from MH i2c: E2 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 03 00 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 03 00 51 0A 00 90 00 CF [19:29:58]RAPDU: 90 00 [19:29:58]wFMCommunicate OK [19:29:58]wFMCommunicate request_size=4 [19:29:58]MH_SAM_APDU [19:29:58]CAPDU: 80 0D 03 02 [19:29:58]Write to MH i2c: E2 08 00 52 0A 80 0D 03 02 00 00 00 00 D7 [19:29:58]Write i2c OK [19:29:58]MH_I2C_Read... [19:29:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:58]Read from MH i2c: E2 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 0B 00 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 0B 00 52 0A 00 03 ED 93 39 C1 FC 00 CF 90 00 20 [19:29:58]RAPDU: 03 ED 93 39 C1 FC 00 CF 90 00 [19:29:58]wFMCommunicate OK [19:29:58]SAM_PROTO_SignData done [19:29:58]FM_MakeSignedData done [19:29:58]CreateOFDProtocolMessage [19:29:58]wFMCommunicate request_size=4 [19:29:58]MH_SAM_APDU [19:29:58]CAPDU: 80 11 00 00 [19:29:58]Write to MH i2c: E2 08 00 53 0A 80 11 00 00 00 00 00 00 D7 [19:29:58]Write i2c OK [19:29:58]MH_I2C_Read... [19:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:58]Read from MH i2c: E2 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 17 00 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: E2 17 00 53 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2D [19:29: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:29:58]wFMCommunicate OK [19:29:58]CreateOFDProtocolMessage done [19:29:58]OFDSenderStorePacket 67140 [19:29:58]StoreOFDPacket docnum=67140 [19:29: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 0C 01 00 00 39 75 04 01 D5 BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 93 00 00 00 F4 03 04 00 B5 BB 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 03 4A EE 76 AB 80 03 ED 93 39 C1 FC 00 CF [19:29:58]CheckFolder [19:29:58]dirname=/storage/ofd_packets [19:29:58]CheckFolder done [19:29:58]ProducePacketName [19:29:58]name=ofd_packets/00067140 [19:29:58]NVStorageSaveData ofd_packets/00067140 [19:29:58]File name is /storage/ofd_packets/00067140 [19:29:58]Write 298 bytes [19:29:58]NVStorageSaveData done [19:29:58]OFDSenderStorePacket done [19:29:58]KKMCreateOFDPacket done [19:29:58]NVStorageSaveData kkm_last_timestamp [19:29:58]File name is /storage/kkm_last_timestamp [19:29:58]Write 4 bytes [19:29:58]NVStorageSaveData done [19:29:58]ExternCall_PrintAddStr [19:29:58]wPrintStart [19:29:58]Write to MH i2c: 01 00 00 54 0A 5E [19:29:58]Write i2c OK [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: 01 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: 01 07 00 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: 01 07 00 54 0A 00 00 00 00 00 FF 0F 73 [19:29:58]RasterBufferAndPrint [19:29:58]line Счет N : (1)507034 [19:29:58]line ИНН: 02508201610067 [19:29:58]line Контрольно-Кассовый Чек [19:29:58]line ПРОДАЖА [19:29:58]line ТРК (МРК, ГНК) : 11 [19:29:58]line Товар: 2710194210 [19:29:58]line ДТ-К-5 [19:29:58]line 13.390 * 74.70 [19:29:58]line = 1000.23 [19:29:58]line НДС 12% НСП 1% [19:29:58]line > о реализуемом товаре [19:29:58]line ИТОГО: 1000.23 [19:29:58]line НСП 1% : 8.85 [19:29:58]line НДС 12% : 106.22 [19:29:58]line Наличными: 0.00 [19:29:58]line Безнал.: 1000.23 [19:29:58]line Место: АЗС № 91 "Партнер Нефть" [19:29:58]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:29:58]line СНО: Общий режим [19:29:58]line Чек 147 14.05.2024 19:29 [19:29:58]line Смена: 355 ФФД: 1.0 [19:29:58]line ЗНМ: 0300000119 [19:29:58]line РНМ: 0000000000091845 [19:29:58]line Версия ККМ: 001 [19:29:58]line Платежная система: Бакай Банк [19:29:58]line ФМ: 0000000000871829 [19:29:58]line ФД: 67140 [19:29:58]line ФПД: 3620363217792 [19:29:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T192957&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67140&fm=3620363217792&tin=02508201610067®Number=0000000000091845&sum=100023 [19:29:58]OFD Sender: Processing packet 67140 [packets to send 35, broken 34] [19:29:58]ProducePacketName [19:29:58]name=ofd_packets/00067140 [19:29:58]OFD Sender: To server: pG, [19:29:58]CommunicateWithHost lk.salyk.kg:30040 [19:29:58]ConnectInit lk.salyk.kg [19:29:58]written 0, free lines is 4095 [19:29:58]Connected sock=10 [19:29:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 39 75 04 01 D5 BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 93 00 00 00 F4 03 04 00 B5 BB 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 03 4A EE 76 AB 80 03 ED 93 39 C1 FC 00 CF [19:29: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 86 7B 47 00 4B 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 44 06 01 00 F4 03 04 00 94 63 43 66 B6 04 01 00 00 4B 96 4B 40 A7 38 1D 4D [19:29:58]CommunicateWithHost err = 0 [19:29:58]CheckOFDResponse [19:29:58]1017 (14) - 77093643461234 [19:29:58]1041 (16) - 0000000000871829 [19:29:58]1040 (4) - 67140 [19:29:58]1012 (4) - 14.05.2024 13:13 [19:29:58]1206 (1) - 0 [19:29:58]OFD Sender: Remove packet 67140 [19:29:58]ProducePacketName [19:29:58]name=ofd_packets/00067140 [19:29:58]NVStorageDeleteData [19:29:58]Write to MH i2c: 01 00 00 7D 0A 87 [19:29:58]Write i2c OK [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: 01 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: 01 07 00 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: 01 07 00 7D 0A 00 00 00 00 00 EC 0C 86 [19:29:58]RasterBufferAndPrint [19:29:58]line [19:29:58]line [19:29:58]line [19:29:58]line [19:29:58]line [19:29:58]written 0, free lines is 3317 [19:29:58]MH_Cut [19:29:58]Write to MH i2c: D1 01 00 84 0A 01 60 [19:29:58]Write i2c OK [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: D1 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: D1 01 00 [19:29:58]MH_I2C_Read... [19:29:58]Read from MH i2c: D1 01 00 84 0A 00 5F [19:29:58]Write to MH i2c: 01 00 00 85 0A 8F [19:29:58]Write i2c OK [19:29:58]MH_I2C_Read... [19:29:59]OFD Sender: No OFD packet to send [19:29:59]*** Cut start [19:29:59]*** Purtial cut [19:29:59]*** CUTSNS_PIN = 0 [19:29:59]*** Stage 1: CUTSNS_PIN = 1 [19:30:01]Read from MH i2c: 01 [19:30:01]MH_I2C_Read... [19:30:01]*** Stop cut motor [19:30:01]*** Cut end [19:30:01]Read from MH i2c: 01 07 00 [19:30:01]MH_I2C_Read... [19:30:01]Read from MH i2c: 01 07 00 85 0A 00 00 00 00 00 FF 0F A4 [19:30:01]process_action close_receipt done [19:30:01]requested_data is exist [19:30:01]produce_requested_data [19:30:01]requested_item fm.sn is exist - process it [19:30:01]wFMCommunicate request_size=4 [19:30:01]MH_SAM_APDU [19:30:01]CAPDU: 80 11 00 00 [19:30:01]Write to MH i2c: E2 08 00 86 0A 80 11 00 00 00 00 00 00 0A [19:30:01]Write i2c OK [19:30:01]MH_I2C_Read... [19:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:01]Read from MH i2c: E2 [19:30:01]MH_I2C_Read... [19:30:01]Read from MH i2c: E2 17 00 [19:30:01]MH_I2C_Read... [19:30:01]Read from MH i2c: E2 17 00 86 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 60 [19:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:30:01]wFMCommunicate OK [19:30:01]requested_item fd.num is exist - process it [19:30:01]SAM_PROTO_GetFieldsCounters [19:30:01]wFMCommunicate request_size=4 [19:30:01]MH_SAM_APDU [19:30:01]CAPDU: 80 13 00 00 [19:30:01]Write to MH i2c: E2 08 00 87 0A 80 13 00 00 00 00 00 00 0D [19:30:01]Write i2c OK [19:30:01]MH_I2C_Read... [19:30:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:01]Read from MH i2c: E2 [19:30:01]MH_I2C_Read... [19:30:01]Read from MH i2c: E2 62 00 [19:30:01]MH_I2C_Read... [19:30:01]Read from MH i2c: E2 62 00 87 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 44 06 01 00 0E 04 04 00 63 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 9B [19:30: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 44 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:01]wFMCommunicate OK [19:30:01]SAM_PROTO_GetFieldsCounters done [19:30:01]requested_item shift.num is exist - process it [19:30:01]requested_item shift.opened is exist - process it [19:30:01]req_shift_opened [19:30:01]FM_GetShiftState [19:30:01]SAM_PROTO_GetShiftState [19:30:01]wFMCommunicate request_size=4 [19:30:01]MH_SAM_APDU [19:30:01]CAPDU: 80 13 01 00 [19:30:01]Write to MH i2c: E2 08 00 88 0A 80 13 01 00 00 00 00 00 0F [19:30:01]Write i2c OK [19:30:01]MH_I2C_Read... [19:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:02]Read from MH i2c: E2 [19:30:02]MH_I2C_Read... [19:30:02]Read from MH i2c: E2 0E 00 [19:30:02]MH_I2C_Read... [19:30:02]Read from MH i2c: E2 0E 00 88 0A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D7 [19:30:02]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:30:02]wFMCommunicate OK [19:30:02]SAM_PROTO_GetShiftState done [19:30:02]FM_GetShiftState done [19:30:02]req_shift_opened done [19:30:02]requested_item shift.open_date is exist - process it [19:30:02]req_shift_open_date [19:30:02]req_shift_open_date done [19:30:02]produce_requested_data done [19:30:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67140,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [19:30:02]process_action_free close_receipt [19:30:02]json_value_free [19:30:02]json_value_free done [19:30:02]process_json_proto returns [19:30:02]Send response to host [19:30:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67140,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [19:30:02]free response buf [19:30:02]execute_script done [19:30:02]execute_script returns [19:30:02]free content buf [19:30:02]Sock 7.Close socket [19:30:02]Sock 7.Thread stoped [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:59]OFD Sender: No OFD packet to send [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:29]OFD Sender: No OFD packet to send [19:31:34]OFD Sender: No OFD packet to send [19:31:39]OFD Sender: No OFD packet to send [19:31:44]OFD Sender: No OFD packet to send [19:31:49]OFD Sender: No OFD packet to send [19:31:54]OFD Sender: No OFD packet to send [19:31:59]OFD Sender: No OFD packet to send [19:32:04]OFD Sender: No OFD packet to send [19:32:09]OFD Sender: No OFD packet to send [19:32:14]OFD Sender: No OFD packet to send [19:32:19]OFD Sender: No OFD packet to send [19:32:24]OFD Sender: No OFD packet to send [19:32:29]OFD Sender: No OFD packet to send [19:32:34]OFD Sender: No OFD packet to send [19:32:39]OFD Sender: No OFD packet to send [19:32:44]OFD Sender: No OFD packet to send [19:32:49]OFD Sender: No OFD packet to send [19:32:54]OFD Sender: No OFD packet to send [19:32:59]OFD Sender: No OFD packet to send [19:33:04]OFD Sender: No OFD packet to send [19:33:09]OFD Sender: No OFD packet to send [19:33:14]OFD Sender: No OFD packet to send [19:33:19]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:56]accept exits with 9 [19:33:56]New connection [19:33:56]New thread 3066731876 created [19:33:56]Thread 3066588516 joined [19:33:56]Waiting for new connection... [19:33:56] Sock 9.Parse request [19:33:56]Sock 9.Check first char [19:33:56]Sock 9.First char is OK [19:33:56]request: POST /json_proto HTTP/1.0 [19:33:56]Method: POST [19:33:56]URL: /json_proto [19:33:56]Method is POST - this is cgi request [19:33:56]url: /json_proto [19:33:56]query_string will be loaded in cgi processing [19:33:56]execute_cgi json_proto POST (null) [19:33:56]execute_cgi path=json_proto method=POST [19:33:56]POST find Content-Length [19:33:56]Host: 172.17.41.195:8080 [19:33:56]Content-Length: 800 [19:33:56]Content-Type: application/json [19:33:56] [19:33:56]POST finish read [19:33:56]Found Content-Length = 800 [19:33:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:56]execute_script... [19:33:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:56]POST & json_proto [19:33:56]process_json_proto [19:33:56]json parsed OK: [19:33:56]protocol is kg_v1.0 [19:33:56]action value=close_receipt [19:33:56]process_action close_receipt [19:33:56]cmd_close_receipt [19:33:56]MH_GetDate [19:33:56]Write to MH i2c: F0 00 00 89 0A 82 [19:33:56]Write i2c OK [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: F0 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: F0 09 00 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: F0 09 00 89 0A 00 A4 BC 43 66 FC 21 6F 64 84 [19:33:56]GetLastDocTimeStamp 1715714997 [19:33:56]current date 1715715236 [19:33:56]FM_GetShiftState [19:33:56]SAM_PROTO_GetShiftState [19:33:56]wFMCommunicate request_size=4 [19:33:56]MH_SAM_APDU [19:33:56]CAPDU: 80 13 01 00 [19:33:56]Write to MH i2c: E2 08 00 8A 0A 80 13 01 00 00 00 00 00 11 [19:33:56]Write i2c OK [19:33:56]MH_I2C_Read... [19:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:56]Read from MH i2c: E2 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: E2 0E 00 [19:33:56]MH_I2C_Read... [19:33:56]Read from MH i2c: E2 0E 00 8A 0A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 D9 [19:33:56]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:33:56]wFMCommunicate OK [19:33:56]SAM_PROTO_GetShiftState done [19:33:56]FM_GetShiftState done [19:33:56]opened in 1715646054 [19:33:56]opened+sec_in_day 1715732454 [19:33:56]quantity*price = 150072 [19:33:56]sum+1 = 150073 [19:33:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.72 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.72 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 148 14.05.2024 19:33 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67141 ФПД: 240455082491550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T193356&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67141&fm=240455082491550&tin=02508201610067®Number=0000000000091845&sum=150072 [19:33:57]StoreToDocumentArchive [19:33:57]shift 355 fd 67141 [19:33:57]save to /storage/0355/doc_00067141 [19:33:57]save last doc name /storage/0355/doc_00067141 to /storage/kkm_last_doc_name [19:33:57]save OK [19:33:57]Clear old archive folders... [19:33:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:33:57]tlvbuf is 00329770 [19:33:57]SAM_PROTO_ClearQueue [19:33:57]wFMCommunicate request_size=4 [19:33:57]MH_SAM_APDU [19:33:57]CAPDU: 80 09 00 00 [19:33:57]Write to MH i2c: E2 08 00 97 0A 80 09 00 00 00 00 00 00 13 [19:33:57]Write i2c OK [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: E2 [19:33:57]MH_I2C_Read... [19:33:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:57]Read from MH i2c: E2 03 00 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: E2 03 00 97 0A 00 90 00 15 [19:33:57]RAPDU: 90 00 [19:33:57]wFMCommunicate OK [19:33:57]SAM_PROTO_ClearQueue done [19:33:57]KKMCreateOFDPacket [19:33:57]OFDProtocolAddRootSTLVToBuf [19:33:57]FM_MakeSignedData [19:33:57]FM_MakeSignedData [19:33:57]SAM_PROTO_SignData [19:33:57]wFMCommunicate request_size=4 [19:33:57]MH_SAM_APDU [19:33:57]CAPDU: 80 0D 01 02 [19:33:57]Write to MH i2c: E2 08 00 98 0A 80 0D 01 02 00 00 00 00 1B [19:33:57]Write i2c OK [19:33:57]MH_I2C_Read... [19:33:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:57]Read from MH i2c: E2 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: E2 03 00 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: E2 03 00 98 0A 00 90 00 16 [19:33:57]RAPDU: 90 00 [19:33:57]wFMCommunicate OK [19:33:57]wFMCommunicate request_size=255 [19:33:57]MH_SAM_APDU [19:33:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 94 00 00 00 F4 03 04 00 A4 BC 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DA B1 4F C6 [19:33:57]Write to MH i2c: E2 02 01 99 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 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 94 00 00 00 F4 03 04 00 A4 BC 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DA B1 4F C6 00 00 BD [19:33:57]Write i2c OK [19:33:57]MH_I2C_Read... [19:33:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:57]Read from MH i2c: E2 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: E2 03 00 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: E2 03 00 99 0A 00 90 00 17 [19:33:57]RAPDU: 90 00 [19:33:57]wFMCommunicate OK [19:33:57]wFMCommunicate request_size=7 [19:33:57]MH_SAM_APDU [19:33:57]CAPDU: 80 0D 02 02 02 BE 9E [19:33:57]Write to MH i2c: E2 0A 00 9A 0A 80 0D 02 02 02 00 BE 9E 00 00 7E [19:33:57]Write i2c OK [19:33:57]MH_I2C_Read... [19:33:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:57]Read from MH i2c: E2 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: E2 03 00 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: E2 03 00 9A 0A 00 90 00 18 [19:33:57]RAPDU: 90 00 [19:33:57]wFMCommunicate OK [19:33:57]wFMCommunicate request_size=4 [19:33:57]MH_SAM_APDU [19:33:57]CAPDU: 80 0D 03 02 [19:33:57]Write to MH i2c: E2 08 00 9B 0A 80 0D 03 02 00 00 00 00 20 [19:33:57]Write i2c OK [19:33:57]MH_I2C_Read... [19:33:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:57]Read from MH i2c: E2 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: E2 0B 00 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: E2 0B 00 9B 0A 00 30 C3 87 A7 A6 CF 66 24 90 00 41 [19:33:57]RAPDU: 30 C3 87 A7 A6 CF 66 24 90 00 [19:33:57]wFMCommunicate OK [19:33:57]SAM_PROTO_SignData done [19:33:57]FM_MakeSignedData done [19:33:57]CreateOFDProtocolMessage [19:33:57]wFMCommunicate request_size=4 [19:33:57]MH_SAM_APDU [19:33:57]CAPDU: 80 11 00 00 [19:33:57]Write to MH i2c: E2 08 00 9C 0A 80 11 00 00 00 00 00 00 20 [19:33:57]Write i2c OK [19:33:57]MH_I2C_Read... [19:33:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:57]Read from MH i2c: E2 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: E2 17 00 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: E2 17 00 9C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 76 [19:33:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:33:57]wFMCommunicate OK [19:33:57]CreateOFDProtocolMessage done [19:33:57]OFDSenderStorePacket 67141 [19:33:57]StoreOFDPacket docnum=67141 [19:33:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 E6 C6 04 01 14 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 94 00 00 00 F4 03 04 00 A4 BC 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DA B1 4F C6 BE 9E 30 C3 87 A7 A6 CF 66 24 [19:33:57]CheckFolder [19:33:57]dirname=/storage/ofd_packets [19:33:57]CheckFolder done [19:33:57]ProducePacketName [19:33:57]name=ofd_packets/00067141 [19:33:57]NVStorageSaveData ofd_packets/00067141 [19:33:57]File name is /storage/ofd_packets/00067141 [19:33:57]Write 298 bytes [19:33:57]NVStorageSaveData done [19:33:57]OFDSenderStorePacket done [19:33:57]KKMCreateOFDPacket done [19:33:57]NVStorageSaveData kkm_last_timestamp [19:33:57]File name is /storage/kkm_last_timestamp [19:33:57]Write 4 bytes [19:33:57]NVStorageSaveData done [19:33:57]ExternCall_PrintAddStr [19:33:57]wPrintStart [19:33:57]Write to MH i2c: 01 00 00 9D 0A A7 [19:33:57]Write i2c OK [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: 01 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: 01 07 00 [19:33:57]MH_I2C_Read... [19:33:57]Read from MH i2c: 01 07 00 9D 0A 00 00 00 00 00 FF 0F BC [19:33:57]RasterBufferAndPrint [19:33:57]line Счет N : (1)507035 [19:33:57]line ИНН: 02508201610067 [19:33:57]line Контрольно-Кассовый Чек [19:33:57]line ПРОДАЖА [19:33:57]line ТРК (МРК, ГНК) : 21 [19:33:57]line Товар: 2710194210 [19:33:57]line ДТ-К-5 [19:33:57]line 20.090 * 74.70 [19:33:57]line = 1500.72 [19:33:57]line НДС 12% НСП 1% [19:33:57]line > о реализуемом товаре [19:33:57]line ИТОГО: 1500.72 [19:33:57]line НСП 1% : 13.28 [19:33:57]line НДС 12% : 159.37 [19:33:57]line Наличными: 0.00 [19:33:57]line Безнал.: 1500.72 [19:33:57]line Место: АЗС № 91 "Партнер Нефть" [19:33:57]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:33:57]line СНО: Общий режим [19:33:57]line Чек 148 14.05.2024 19:33 [19:33:57]line Смена: 355 ФФД: 1.0 [19:33:57]line ЗНМ: 0300000119 [19:33:57]line РНМ: 0000000000091845 [19:33:57]line Версия ККМ: 001 [19:33:57]line Платежная система: O! деньги [19:33:57]line ФМ: 0000000000871829 [19:33:57]line ФД: 67141 [19:33:57]line ФПД: 240455082491550 [19:33:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T193356&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67141&fm=240455082491550&tin=02508201610067®Number=0000000000091845&sum=150072 [19:33:58]OFD Sender: Processing packet 67141 [packets to send 35, broken 34] [19:33:58]ProducePacketName [19:33:58]name=ofd_packets/00067141 [19:33:58]OFD Sender: To server: pG, [19:33:58]CommunicateWithHost lk.salyk.kg:30040 [19:33:58]ConnectInit lk.salyk.kg [19:33:58]written 0, free lines is 4095 [19:33:58]Connected sock=10 [19:33:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 E6 C6 04 01 14 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 94 00 00 00 F4 03 04 00 A4 BC 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 DA B1 4F C6 BE 9E 30 C3 87 A7 A6 CF 66 24 [19:33:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 60 F7 47 00 EA 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 45 06 01 00 F4 03 04 00 83 64 43 66 B6 04 01 00 00 B3 35 48 8D AD 14 1B D3 [19:33:58]CommunicateWithHost err = 0 [19:33:58]CheckOFDResponse [19:33:58]1017 (14) - 77093643461234 [19:33:58]1041 (16) - 0000000000871829 [19:33:58]1040 (4) - 67141 [19:33:58]1012 (4) - 14.05.2024 13:17 [19:33:58]1206 (1) - 0 [19:33:58]OFD Sender: Remove packet 67141 [19:33:58]ProducePacketName [19:33:58]name=ofd_packets/00067141 [19:33:58]NVStorageDeleteData [19:33:58]Write to MH i2c: 01 00 00 C6 0A D0 [19:33:58]Write i2c OK [19:33:58]MH_I2C_Read... [19:33:58]Read from MH i2c: 01 [19:33:58]MH_I2C_Read... [19:33:58]Read from MH i2c: 01 07 00 [19:33:58]MH_I2C_Read... [19:33:58]Read from MH i2c: 01 07 00 C6 0A 00 00 00 00 00 F5 0C D8 [19:33:58]RasterBufferAndPrint [19:33:58]line [19:33:58]line [19:33:58]line [19:33:58]line [19:33:58]line [19:33:58]written 0, free lines is 3324 [19:33:58]MH_Cut [19:33:58]Write to MH i2c: D1 01 00 CD 0A 01 A9 [19:33:58]Write i2c OK [19:33:58]MH_I2C_Read... [19:33:58]Read from MH i2c: D1 [19:33:58]MH_I2C_Read... [19:33:58]Read from MH i2c: D1 01 00 [19:33:58]MH_I2C_Read... [19:33:58]Read from MH i2c: D1 01 00 CD 0A 00 A8 [19:33:58]Write to MH i2c: 01 00 00 CE 0A D8 [19:33:58]Write i2c OK [19:33:58]MH_I2C_Read... [19:33:58]OFD Sender: No OFD packet to send [19:33:59]*** Cut start [19:33:59]*** Purtial cut [19:33:59]*** Stage 1: CUTSNS_PIN = 1 [19:33:59]Read from MH i2c: 01 [19:33:59]MH_I2C_Read... [19:33:59]*** Stop cut motor [19:33:59]*** Cut end [19:33:59]Read from MH i2c: 01 07 00 [19:33:59]MH_I2C_Read... [19:33:59]Read from MH i2c: 01 07 00 CE 0A 00 00 00 00 00 FF 0F ED [19:33:59]process_action close_receipt done [19:33:59]requested_data is exist [19:33:59]produce_requested_data [19:33:59]requested_item fm.sn is exist - process it [19:33:59]wFMCommunicate request_size=4 [19:33:59]MH_SAM_APDU [19:33:59]CAPDU: 80 11 00 00 [19:33:59]Write to MH i2c: E2 08 00 CF 0A 80 11 00 00 00 00 00 00 53 [19:33:59]Write i2c OK [19:33:59]MH_I2C_Read... [19:33:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:59]Read from MH i2c: E2 [19:33:59]MH_I2C_Read... [19:33:59]Read from MH i2c: E2 17 00 [19:33:59]MH_I2C_Read... [19:33:59]Read from MH i2c: E2 17 00 CF 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A9 [19:33:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:33:59]wFMCommunicate OK [19:33:59]requested_item fd.num is exist - process it [19:33:59]SAM_PROTO_GetFieldsCounters [19:33:59]wFMCommunicate request_size=4 [19:33:59]MH_SAM_APDU [19:33:59]CAPDU: 80 13 00 00 [19:33:59]Write to MH i2c: E2 08 00 D0 0A 80 13 00 00 00 00 00 00 56 [19:33:59]Write i2c OK [19:33:59]MH_I2C_Read... [19:33:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:59]Read from MH i2c: E2 [19:33:59]MH_I2C_Read... [19:33:59]Read from MH i2c: E2 62 00 [19:33:59]MH_I2C_Read... [19:33:59]Read from MH i2c: E2 62 00 D0 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 45 06 01 00 0E 04 04 00 63 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 E8 [19:33:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 45 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:59]wFMCommunicate OK [19:33:59]SAM_PROTO_GetFieldsCounters done [19:33:59]requested_item shift.num is exist - process it [19:33:59]requested_item shift.opened is exist - process it [19:33:59]req_shift_opened [19:33:59]FM_GetShiftState [19:33:59]SAM_PROTO_GetShiftState [19:33:59]wFMCommunicate request_size=4 [19:33:59]MH_SAM_APDU [19:33:59]CAPDU: 80 13 01 00 [19:33:59]Write to MH i2c: E2 08 00 D1 0A 80 13 01 00 00 00 00 00 58 [19:33:59]Write i2c OK [19:33:59]MH_I2C_Read... [19:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:59]Read from MH i2c: E2 [19:33:59]MH_I2C_Read... [19:33:59]Read from MH i2c: E2 0E 00 [19:33:59]MH_I2C_Read... [19:33:59]Read from MH i2c: E2 0E 00 D1 0A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 20 [19:33:59]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:33:59]wFMCommunicate OK [19:33:59]SAM_PROTO_GetShiftState done [19:33:59]FM_GetShiftState done [19:33:59]req_shift_opened done [19:33:59]requested_item shift.open_date is exist - process it [19:33:59]req_shift_open_date [19:33:59]req_shift_open_date done [19:33:59]produce_requested_data done [19:33:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67141,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [19:33:59]process_action_free close_receipt [19:33:59]json_value_free [19:33:59]json_value_free done [19:33:59]process_json_proto returns [19:33:59]Send response to host [19:33:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67141,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [19:33:59]free response buf [19:33:59]execute_script done [19:33:59]execute_script returns [19:33:59]free content buf [19:33:59]Sock 9.Close socket [19:33:59]Sock 9.Thread stoped [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:14]OFD Sender: No OFD packet to send [19:36:19]OFD Sender: No OFD packet to send [19:36:24]OFD Sender: No OFD packet to send [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:39]OFD Sender: No OFD packet to send [19:36:44]OFD Sender: No OFD packet to send [19:36:49]OFD Sender: No OFD packet to send [19:36:54]OFD Sender: No OFD packet to send [19:36:59]OFD Sender: No OFD packet to send [19:37:04]OFD Sender: No OFD packet to send [19:37:09]OFD Sender: No OFD packet to send [19:37:14]OFD Sender: No OFD packet to send [19:37:19]OFD Sender: No OFD packet to send [19:37:19]accept exits with 7 [19:37:19]New connection [19:37:19]New thread 3066588516 created [19:37:19]Thread 3066731876 joined [19:37:19]Waiting for new connection... [19:37:19] Sock 7.Parse request [19:37:19]Sock 7.Check first char [19:37:19]Sock 7.First char is OK [19:37:19]request: POST /json_proto HTTP/1.0 [19:37:19]Method: POST [19:37:19]URL: /json_proto [19:37:19]Method is POST - this is cgi request [19:37:19]url: /json_proto [19:37:19]query_string will be loaded in cgi processing [19:37:19]execute_cgi json_proto POST (null) [19:37:19]execute_cgi path=json_proto method=POST [19:37:19]POST find Content-Length [19:37:19]Host: 172.17.41.195:8080 [19:37:19]Content-Length: 677 [19:37:19]Content-Type: application/json [19:37:19] [19:37:19]POST finish read [19:37:19]Found Content-Length = 677 [19:37:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 3.000, "sum" : 200.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:19]execute_script... [19:37: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)507036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 3.000, "sum" : 200.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:19]POST & json_proto [19:37:19]process_json_proto [19:37:19]json parsed OK: [19:37:19]protocol is kg_v1.0 [19:37:19]action value=close_receipt [19:37:19]process_action close_receipt [19:37:19]cmd_close_receipt [19:37:19]MH_GetDate [19:37:19]Write to MH i2c: F0 00 00 D2 0A CB [19:37:19]Write i2c OK [19:37:19]MH_I2C_Read... [19:37:19]Read from MH i2c: F0 [19:37:19]MH_I2C_Read... [19:37:19]Read from MH i2c: F0 09 00 [19:37:19]MH_I2C_Read... [19:37:19]Read from MH i2c: F0 09 00 D2 0A 00 70 BD 43 66 FC 21 6F 64 9A [19:37:19]GetLastDocTimeStamp 1715715236 [19:37:19]current date 1715715440 [19:37:19]FM_GetShiftState [19:37:19]SAM_PROTO_GetShiftState [19:37:19]wFMCommunicate request_size=4 [19:37:19]MH_SAM_APDU [19:37:19]CAPDU: 80 13 01 00 [19:37:19]Write to MH i2c: E2 08 00 D3 0A 80 13 01 00 00 00 00 00 5A [19:37:19]Write i2c OK [19:37:19]MH_I2C_Read... [19:37:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:19]Read from MH i2c: E2 [19:37:19]MH_I2C_Read... [19:37:19]Read from MH i2c: E2 0E 00 [19:37:19]MH_I2C_Read... [19:37:19]Read from MH i2c: E2 0E 00 D3 0A 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 22 [19:37:19]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:37:19]wFMCommunicate OK [19:37:19]SAM_PROTO_GetShiftState done [19:37:19]FM_GetShiftState done [19:37:19]opened in 1715646054 [19:37:19]opened+sec_in_day 1715732454 [19:37:19]quantity*price = 20040 [19:37:19]sum+1 = 20041 [19:37:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 149 14.05.2024 19:37 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67142 ФПД: 92409178762874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T193720&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67142&fm=92409178762874&tin=02508201610067®Number=0000000000091845&sum=20000 [19:37:20]StoreToDocumentArchive [19:37:20]shift 355 fd 67142 [19:37:20]save to /storage/0355/doc_00067142 [19:37:20]save last doc name /storage/0355/doc_00067142 to /storage/kkm_last_doc_name [19:37:20]save OK [19:37:20]Clear old archive folders... [19:37:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:37:20]tlvbuf is 0032A5D0 [19:37:20]SAM_PROTO_ClearQueue [19:37:20]wFMCommunicate request_size=4 [19:37:20]MH_SAM_APDU [19:37:20]CAPDU: 80 09 00 00 [19:37:20]Write to MH i2c: E2 08 00 E0 0A 80 09 00 00 00 00 00 00 5C [19:37:20]Write i2c OK [19:37:20]MH_I2C_Read... [19:37:20]Read from MH i2c: E2 [19:37:20]MH_I2C_Read... [19:37:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:20]Read from MH i2c: E2 03 00 [19:37:20]MH_I2C_Read... [19:37:20]Read from MH i2c: E2 03 00 E0 0A 00 90 00 5E [19:37:20]RAPDU: 90 00 [19:37:20]wFMCommunicate OK [19:37:20]SAM_PROTO_ClearQueue done [19:37:20]KKMCreateOFDPacket [19:37:20]OFDProtocolAddRootSTLVToBuf [19:37:20]FM_MakeSignedData [19:37:20]FM_MakeSignedData [19:37:20]SAM_PROTO_SignData [19:37:20]wFMCommunicate request_size=4 [19:37:20]MH_SAM_APDU [19:37:20]CAPDU: 80 0D 01 02 [19:37:20]Write to MH i2c: E2 08 00 E1 0A 80 0D 01 02 00 00 00 00 64 [19:37:20]Write i2c OK [19:37:20]MH_I2C_Read... [19:37:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:20]Read from MH i2c: E2 [19:37:20]MH_I2C_Read... [19:37:20]Read from MH i2c: E2 03 00 [19:37:20]MH_I2C_Read... [19:37:20]Read from MH i2c: E2 03 00 E1 0A 00 90 00 5F [19:37:20]RAPDU: 90 00 [19:37:20]wFMCommunicate OK [19:37:20]wFMCommunicate request_size=255 [19:37:20]MH_SAM_APDU [19:37: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 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 70 BD 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 54 [19:37:20]Write to MH i2c: E2 02 01 E2 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 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 70 BD 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 54 00 00 53 [19:37:20]Write i2c OK [19:37:20]MH_I2C_Read... [19:37:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:21]Read from MH i2c: E2 [19:37:21]MH_I2C_Read... [19:37:21]Read from MH i2c: E2 03 00 [19:37:21]MH_I2C_Read... [19:37:21]Read from MH i2c: E2 03 00 E2 0A 00 90 00 60 [19:37:21]RAPDU: 90 00 [19:37:21]wFMCommunicate OK [19:37:21]wFMCommunicate request_size=10 [19:37:21]MH_SAM_APDU [19:37:21]CAPDU: 80 0D 02 02 05 0B B0 46 2E 7A [19:37:21]Write to MH i2c: E2 0D 00 E3 0A 80 0D 02 02 05 00 0B B0 46 2E 7A 00 00 1A [19:37:21]Write i2c OK [19:37:21]MH_I2C_Read... [19:37:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:21]Read from MH i2c: E2 [19:37:21]MH_I2C_Read... [19:37:21]Read from MH i2c: E2 03 00 [19:37:21]MH_I2C_Read... [19:37:21]Read from MH i2c: E2 03 00 E3 0A 00 90 00 61 [19:37:21]RAPDU: 90 00 [19:37:21]wFMCommunicate OK [19:37:21]wFMCommunicate request_size=4 [19:37:21]MH_SAM_APDU [19:37:21]CAPDU: 80 0D 03 02 [19:37:21]Write to MH i2c: E2 08 00 E4 0A 80 0D 03 02 00 00 00 00 69 [19:37:21]Write i2c OK [19:37:21]MH_I2C_Read... [19:37:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:21]Read from MH i2c: E2 [19:37:21]MH_I2C_Read... [19:37:21]Read from MH i2c: E2 0B 00 [19:37:21]MH_I2C_Read... [19:37:21]Read from MH i2c: E2 0B 00 E4 0A 00 84 EB 51 FC 88 03 B9 B4 90 00 1E [19:37:21]RAPDU: 84 EB 51 FC 88 03 B9 B4 90 00 [19:37:21]wFMCommunicate OK [19:37:21]SAM_PROTO_SignData done [19:37:21]FM_MakeSignedData done [19:37:21]CreateOFDProtocolMessage [19:37:21]wFMCommunicate request_size=4 [19:37:21]MH_SAM_APDU [19:37:21]CAPDU: 80 11 00 00 [19:37:21]Write to MH i2c: E2 08 00 E5 0A 80 11 00 00 00 00 00 00 69 [19:37:21]Write i2c OK [19:37:21]MH_I2C_Read... [19:37:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:21]Read from MH i2c: E2 [19:37:21]MH_I2C_Read... [19:37:21]Read from MH i2c: E2 17 00 [19:37:21]MH_I2C_Read... [19:37:21]Read from MH i2c: E2 17 00 E5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BF [19:37:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:37:21]wFMCommunicate OK [19:37:21]CreateOFDProtocolMessage done [19:37:21]OFDSenderStorePacket 67142 [19:37:21]StoreOFDPacket docnum=67142 [19:37: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 2C A6 07 01 D1 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 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 70 BD 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 54 0B B0 46 2E 7A 84 EB 51 FC 88 03 B9 B4 [19:37:21]CheckFolder [19:37:21]dirname=/storage/ofd_packets [19:37:21]CheckFolder done [19:37:21]ProducePacketName [19:37:21]name=ofd_packets/00067142 [19:37:21]NVStorageSaveData ofd_packets/00067142 [19:37:21]File name is /storage/ofd_packets/00067142 [19:37:21]Write 301 bytes [19:37:21]NVStorageSaveData done [19:37:21]OFDSenderStorePacket done [19:37:21]KKMCreateOFDPacket done [19:37:21]NVStorageSaveData kkm_last_timestamp [19:37:21]File name is /storage/kkm_last_timestamp [19:37:21]Write 4 bytes [19:37:21]NVStorageSaveData done [19:37:21]ExternCall_PrintAddStr [19:37:21]wPrintStart [19:37:21]Write to MH i2c: 01 00 00 E6 0A F0 [19:37:21]Write i2c OK [19:37:21]MH_I2C_Read... [19:37:21]Read from MH i2c: 01 [19:37:21]MH_I2C_Read... [19:37:21]Read from MH i2c: 01 07 00 [19:37:21]MH_I2C_Read... [19:37:21]Read from MH i2c: 01 07 00 E6 0A 00 00 00 00 00 FF 0F 05 [19:37:21]RasterBufferAndPrint [19:37:21]line Счет N : (1)507036 [19:37:21]line ИНН: 02508201610067 [19:37:21]line Контрольно-Кассовый Чек [19:37:21]line ПРОДАЖА [19:37:21]line ТРК (МРК, ГНК) : 33 [19:37:21]line Товар: 2710124130 [19:37:21]line Аи-92-К-5 [19:37:21]line 3.000 * 66.80 [19:37:21]line = 200.40 [19:37:21]line НДС 12% НСП 1% [19:37:21]line > о реализуемом товаре [19:37:21]line ОКРУГЛЕНИЕ: -0.40 [19:37:21]line ИТОГО: 200.00 [19:37:21]line Внесено: 200.00 [19:37:21]line СДАЧА: 0.00 [19:37:21]line НСП 1% : 1.77 [19:37:21]line НДС 12% : 21.28 [19:37:21]line Наличными: 200.00 [19:37:21]line Безнал.: 0.00 [19:37:21]line Место: АЗС № 91 "Партнер Нефть" [19:37:21]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:37:21]line СНО: Общий режим [19:37:21]line Чек 149 14.05.2024 19:37 [19:37:21]line Смена: 355 ФФД: 1.0 [19:37:21]line ЗНМ: 0300000119 [19:37:21]line РНМ: 0000000000091845 [19:37:21]line Версия ККМ: 001 [19:37:21]line ФМ: 0000000000871829 [19:37:21]line ФД: 67142 [19:37:21]line ФПД: 92409178762874 [19:37:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T193720&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67142&fm=92409178762874&tin=02508201610067®Number=0000000000091845&sum=20000 [19:37:21]written 0, free lines is 4095 [19:37:21]OFD Sender: Processing packet 67142 [packets to send 35, broken 34] [19:37:21]ProducePacketName [19:37:21]name=ofd_packets/00067142 [19:37:21]OFD Sender: To server: pG, [19:37:21]CommunicateWithHost lk.salyk.kg:30040 [19:37:21]ConnectInit lk.salyk.kg [19:37:21]Connected sock=10 [19:37: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 0F 01 00 00 2C A6 07 01 D1 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 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 70 BD 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 54 0B B0 46 2E 7A 84 EB 51 FC 88 03 B9 B4 [19:37: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 A7 0A 47 00 2E 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 46 06 01 00 F4 03 04 00 4F 65 43 66 B6 04 01 00 00 84 9E B5 AF 1C 6A C4 0F [19:37:21]CommunicateWithHost err = 0 [19:37:21]CheckOFDResponse [19:37:21]1017 (14) - 77093643461234 [19:37:21]1041 (16) - 0000000000871829 [19:37:21]1040 (4) - 67142 [19:37:21]1012 (4) - 14.05.2024 13:21 [19:37:21]1206 (1) - 0 [19:37:21]OFD Sender: Remove packet 67142 [19:37:21]ProducePacketName [19:37:21]name=ofd_packets/00067142 [19:37:21]NVStorageDeleteData [19:37:22]Write to MH i2c: 01 00 00 10 0B 1B [19:37:22]Write i2c OK [19:37:22]MH_I2C_Read... [19:37:22]Read from MH i2c: 01 [19:37:22]MH_I2C_Read... [19:37:22]Read from MH i2c: 01 07 00 [19:37:22]MH_I2C_Read... [19:37:22]Read from MH i2c: 01 07 00 10 0B 00 00 00 00 00 D2 0C 00 [19:37:22]RasterBufferAndPrint [19:37:22]line [19:37:22]line [19:37:22]line [19:37:22]line [19:37:22]line [19:37:22]written 0, free lines is 3288 [19:37:22]MH_Cut [19:37:22]Write to MH i2c: D1 01 00 17 0B 01 F4 [19:37:22]Write i2c OK [19:37:22]MH_I2C_Read... [19:37:22]Read from MH i2c: D1 [19:37:22]MH_I2C_Read... [19:37:22]Read from MH i2c: D1 01 00 [19:37:22]MH_I2C_Read... [19:37:22]Read from MH i2c: D1 01 00 17 0B 00 F3 [19:37:22]Write to MH i2c: 01 00 00 18 0B 23 [19:37:22]Write i2c OK [19:37:22]MH_I2C_Read... [19:37:22]OFD Sender: No OFD packet to send [19:37:22]*** Cut start [19:37:22]*** Purtial cut [19:37:22]*** CUTSNS_PIN = 0 [19:37:23]*** Stage 1: CUTSNS_PIN = 1 [19:37:24]Read from MH i2c: 01 [19:37:24]MH_I2C_Read... [19:37:24]*** Stop cut motor [19:37:24]*** Cut end [19:37:24]Read from MH i2c: 01 07 00 [19:37:24]MH_I2C_Read... [19:37:24]Read from MH i2c: 01 07 00 18 0B 00 00 00 00 00 FF 0F 38 [19:37:24]process_action close_receipt done [19:37:24]requested_data is exist [19:37:24]produce_requested_data [19:37:24]requested_item fm.sn is exist - process it [19:37:24]wFMCommunicate request_size=4 [19:37:24]MH_SAM_APDU [19:37:24]CAPDU: 80 11 00 00 [19:37:24]Write to MH i2c: E2 08 00 19 0B 80 11 00 00 00 00 00 00 9E [19:37:24]Write i2c OK [19:37:24]MH_I2C_Read... [19:37:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:24]Read from MH i2c: E2 [19:37:24]MH_I2C_Read... [19:37:24]Read from MH i2c: E2 17 00 [19:37:24]MH_I2C_Read... [19:37:24]Read from MH i2c: E2 17 00 19 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F4 [19:37:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:37:24]wFMCommunicate OK [19:37:24]requested_item fd.num is exist - process it [19:37:24]SAM_PROTO_GetFieldsCounters [19:37:24]wFMCommunicate request_size=4 [19:37:24]MH_SAM_APDU [19:37:24]CAPDU: 80 13 00 00 [19:37:24]Write to MH i2c: E2 08 00 1A 0B 80 13 00 00 00 00 00 00 A1 [19:37:24]Write i2c OK [19:37:24]MH_I2C_Read... [19:37:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:25]Read from MH i2c: E2 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: E2 62 00 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: E2 62 00 1A 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 46 06 01 00 0E 04 04 00 63 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 37 [19:37: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 46 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:37:25]wFMCommunicate OK [19:37:25]SAM_PROTO_GetFieldsCounters done [19:37:25]requested_item shift.num is exist - process it [19:37:25]requested_item shift.opened is exist - process it [19:37:25]req_shift_opened [19:37:25]FM_GetShiftState [19:37:25]SAM_PROTO_GetShiftState [19:37:25]wFMCommunicate request_size=4 [19:37:25]MH_SAM_APDU [19:37:25]CAPDU: 80 13 01 00 [19:37:25]Write to MH i2c: E2 08 00 1B 0B 80 13 01 00 00 00 00 00 A3 [19:37:25]Write i2c OK [19:37:25]MH_I2C_Read... [19:37:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:25]Read from MH i2c: E2 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: E2 0E 00 [19:37:25]MH_I2C_Read... [19:37:25]Read from MH i2c: E2 0E 00 1B 0B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 6B [19:37:25]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:37:25]wFMCommunicate OK [19:37:25]SAM_PROTO_GetShiftState done [19:37:25]FM_GetShiftState done [19:37:25]req_shift_opened done [19:37:25]requested_item shift.open_date is exist - process it [19:37:25]req_shift_open_date [19:37:25]req_shift_open_date done [19:37:25]produce_requested_data done [19:37:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67142,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [19:37:25]process_action_free close_receipt [19:37:25]json_value_free [19:37:25]json_value_free done [19:37:25]process_json_proto returns [19:37:25]Send response to host [19:37:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67142,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [19:37:25]free response buf [19:37:25]execute_script done [19:37:25]execute_script returns [19:37:25]free content buf [19:37:25]Sock 7.Close socket [19:37:25]Sock 7.Thread stoped [19:37:27]OFD Sender: No OFD packet to send [19:37:32]OFD Sender: No OFD packet to send [19:37:37]OFD Sender: No OFD packet to send [19:37:42]OFD Sender: No OFD packet to send [19:37:47]OFD Sender: No OFD packet to send [19:37:52]OFD Sender: No OFD packet to send [19:37:57]OFD Sender: No OFD packet to send [19:38:02]OFD Sender: No OFD packet to send [19:38:07]OFD Sender: No OFD packet to send [19:38:12]OFD Sender: No OFD packet to send [19:38:17]OFD Sender: No OFD packet to send [19:38:22]OFD Sender: No OFD packet to send [19:38:24]accept exits with 9 [19:38:24]New connection [19:38:24]New thread 3066731876 created [19:38:24]Thread 3066588516 joined [19:38:24]Waiting for new connection... [19:38:24] Sock 9.Parse request [19:38:24]Sock 9.Check first char [19:38:24]Sock 9.First char is OK [19:38:24]request: POST /json_proto HTTP/1.0 [19:38:24]Method: POST [19:38:24]URL: /json_proto [19:38:24]Method is POST - this is cgi request [19:38:24]url: /json_proto [19:38:24]query_string will be loaded in cgi processing [19:38:24]execute_cgi json_proto POST (null) [19:38:24]execute_cgi path=json_proto method=POST [19:38:24]POST find Content-Length [19:38:24]Host: 172.17.41.195:8080 [19:38:24]Content-Length: 678 [19:38:24]Content-Type: application/json [19:38:24] [19:38:24]POST finish read [19:38:24]Found Content-Length = 678 [19:38:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.480, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:24]execute_script... [19:38: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)507037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 10.480, "sum" : 700.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:24]POST & json_proto [19:38:24]process_json_proto [19:38:24]json parsed OK: [19:38:24]protocol is kg_v1.0 [19:38:24]action value=close_receipt [19:38:24]process_action close_receipt [19:38:24]cmd_close_receipt [19:38:24]MH_GetDate [19:38:24]Write to MH i2c: F0 00 00 1C 0B 16 [19:38:24]Write i2c OK [19:38:24]MH_I2C_Read... [19:38:24]Read from MH i2c: F0 [19:38:24]MH_I2C_Read... [19:38:24]Read from MH i2c: F0 09 00 [19:38:24]MH_I2C_Read... [19:38:24]Read from MH i2c: F0 09 00 1C 0B 00 B1 BD 43 66 FC 21 6F 64 26 [19:38:24]GetLastDocTimeStamp 1715715440 [19:38:24]current date 1715715505 [19:38:24]FM_GetShiftState [19:38:24]SAM_PROTO_GetShiftState [19:38:24]wFMCommunicate request_size=4 [19:38:24]MH_SAM_APDU [19:38:24]CAPDU: 80 13 01 00 [19:38:24]Write to MH i2c: E2 08 00 1D 0B 80 13 01 00 00 00 00 00 A5 [19:38:24]Write i2c OK [19:38:24]MH_I2C_Read... [19:38:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:24]Read from MH i2c: E2 [19:38:24]MH_I2C_Read... [19:38:24]Read from MH i2c: E2 0E 00 [19:38:24]MH_I2C_Read... [19:38:24]Read from MH i2c: E2 0E 00 1D 0B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 6D [19:38:24]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:38:24]wFMCommunicate OK [19:38:24]SAM_PROTO_GetShiftState done [19:38:24]FM_GetShiftState done [19:38:24]opened in 1715646054 [19:38:24]opened+sec_in_day 1715732454 [19:38:24]quantity*price = 70006 [19:38:24]sum+1 = 70007 [19:38:24]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 СНО: Общий режим Чек 150 14.05.2024 19:38 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67143 ФПД: 167363953374324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T193825&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67143&fm=167363953374324&tin=02508201610067®Number=0000000000091845&sum=70000 [19:38:25]StoreToDocumentArchive [19:38:25]shift 355 fd 67143 [19:38:25]save to /storage/0355/doc_00067143 [19:38:25]save last doc name /storage/0355/doc_00067143 to /storage/kkm_last_doc_name [19:38:25]save OK [19:38:25]Clear old archive folders... [19:38:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:25]tlvbuf is 003B6630 [19:38:25]SAM_PROTO_ClearQueue [19:38:25]wFMCommunicate request_size=4 [19:38:25]MH_SAM_APDU [19:38:25]CAPDU: 80 09 00 00 [19:38:25]Write to MH i2c: E2 08 00 2A 0B 80 09 00 00 00 00 00 00 A7 [19:38:25]Write i2c OK [19:38:25]MH_I2C_Read... [19:38:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:25]Read from MH i2c: E2 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: E2 03 00 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: E2 03 00 2A 0B 00 90 00 A9 [19:38:25]RAPDU: 90 00 [19:38:25]wFMCommunicate OK [19:38:25]SAM_PROTO_ClearQueue done [19:38:25]KKMCreateOFDPacket [19:38:25]OFDProtocolAddRootSTLVToBuf [19:38:25]FM_MakeSignedData [19:38:25]FM_MakeSignedData [19:38:25]SAM_PROTO_SignData [19:38:25]wFMCommunicate request_size=4 [19:38:25]MH_SAM_APDU [19:38:25]CAPDU: 80 0D 01 02 [19:38:25]Write to MH i2c: E2 08 00 2B 0B 80 0D 01 02 00 00 00 00 AF [19:38:25]Write i2c OK [19:38:25]MH_I2C_Read... [19:38:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:25]Read from MH i2c: E2 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: E2 03 00 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: E2 03 00 2B 0B 00 90 00 AA [19:38:25]RAPDU: 90 00 [19:38:25]wFMCommunicate OK [19:38:25]wFMCommunicate request_size=255 [19:38:25]MH_SAM_APDU [19:38:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 96 00 00 00 F4 03 04 00 B1 BD 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 98 [19:38:25]Write to MH i2c: E2 02 01 2C 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 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 96 00 00 00 F4 03 04 00 B1 BD 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 98 00 00 1F [19:38:25]Write i2c OK [19:38:25]MH_I2C_Read... [19:38:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:25]Read from MH i2c: E2 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: E2 03 00 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: E2 03 00 2C 0B 00 90 00 AB [19:38:25]RAPDU: 90 00 [19:38:25]wFMCommunicate OK [19:38:25]wFMCommunicate request_size=10 [19:38:25]MH_SAM_APDU [19:38:25]CAPDU: 80 0D 02 02 05 37 74 FD 34 74 [19:38:25]Write to MH i2c: E2 0D 00 2D 0B 80 0D 02 02 05 00 37 74 FD 34 74 00 00 0C [19:38:25]Write i2c OK [19:38:25]MH_I2C_Read... [19:38:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:26]Read from MH i2c: E2 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 03 00 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 03 00 2D 0B 00 90 00 AC [19:38:26]RAPDU: 90 00 [19:38:26]wFMCommunicate OK [19:38:26]wFMCommunicate request_size=4 [19:38:26]MH_SAM_APDU [19:38:26]CAPDU: 80 0D 03 02 [19:38:26]Write to MH i2c: E2 08 00 2E 0B 80 0D 03 02 00 00 00 00 B4 [19:38:26]Write i2c OK [19:38:26]MH_I2C_Read... [19:38:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:26]Read from MH i2c: E2 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 0B 00 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 0B 00 2E 0B 00 A1 AC C9 32 BE 6E 85 ED 90 00 9B [19:38:26]RAPDU: A1 AC C9 32 BE 6E 85 ED 90 00 [19:38:26]wFMCommunicate OK [19:38:26]SAM_PROTO_SignData done [19:38:26]FM_MakeSignedData done [19:38:26]CreateOFDProtocolMessage [19:38:26]wFMCommunicate request_size=4 [19:38:26]MH_SAM_APDU [19:38:26]CAPDU: 80 11 00 00 [19:38:26]Write to MH i2c: E2 08 00 2F 0B 80 11 00 00 00 00 00 00 B4 [19:38:26]Write i2c OK [19:38:26]MH_I2C_Read... [19:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:26]Read from MH i2c: E2 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 17 00 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: E2 17 00 2F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0A [19:38:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:38:26]wFMCommunicate OK [19:38:26]CreateOFDProtocolMessage done [19:38:26]OFDSenderStorePacket 67143 [19:38:26]StoreOFDPacket docnum=67143 [19:38:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 83 ED 07 01 24 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 96 00 00 00 F4 03 04 00 B1 BD 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 98 37 74 FD 34 74 A1 AC C9 32 BE 6E 85 ED [19:38:26]CheckFolder [19:38:26]dirname=/storage/ofd_packets [19:38:26]CheckFolder done [19:38:26]ProducePacketName [19:38:26]name=ofd_packets/00067143 [19:38:26]NVStorageSaveData ofd_packets/00067143 [19:38:26]File name is /storage/ofd_packets/00067143 [19:38:26]Write 301 bytes [19:38:26]NVStorageSaveData done [19:38:26]OFDSenderStorePacket done [19:38:26]KKMCreateOFDPacket done [19:38:26]NVStorageSaveData kkm_last_timestamp [19:38:26]File name is /storage/kkm_last_timestamp [19:38:26]Write 4 bytes [19:38:26]NVStorageSaveData done [19:38:26]ExternCall_PrintAddStr [19:38:26]wPrintStart [19:38:26]Write to MH i2c: 01 00 00 30 0B 3B [19:38:26]Write i2c OK [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: 01 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: 01 07 00 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: 01 07 00 30 0B 00 00 00 00 00 FF 0F 50 [19:38:26]RasterBufferAndPrint [19:38:26]line Счет N : (1)507037 [19:38:26]line ИНН: 02508201610067 [19:38:26]line Контрольно-Кассовый Чек [19:38:26]line ПРОДАЖА [19:38:26]line ТРК (МРК, ГНК) : 13 [19:38:26]line Товар: 2710124130 [19:38:26]line Аи-92-К-5 [19:38:26]line 10.480 * 66.80 [19:38:26]line = 700.06 [19:38:26]line НДС 12% НСП 1% [19:38:26]line > о реализуемом товаре [19:38:26]line ОКРУГЛЕНИЕ: -0.06 [19:38:26]line ИТОГО: 700.00 [19:38:26]line Внесено: 700.00 [19:38:26]line СДАЧА: 0.00 [19:38:26]line НСП 1% : 6.19 [19:38:26]line НДС 12% : 74.34 [19:38:26]line Наличными: 700.00 [19:38:26]line Безнал.: 0.00 [19:38:26]line Место: АЗС № 91 "Партнер Нефть" [19:38:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:38:26]line СНО: Общий режим [19:38:26]line Чек 150 14.05.2024 19:38 [19:38:26]line Смена: 355 ФФД: 1.0 [19:38:26]line ЗНМ: 0300000119 [19:38:26]line РНМ: 0000000000091845 [19:38:26]line Версия ККМ: 001 [19:38:26]line ФМ: 0000000000871829 [19:38:26]line ФД: 67143 [19:38:26]line ФПД: 167363953374324 [19:38:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T193825&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67143&fm=167363953374324&tin=02508201610067®Number=0000000000091845&sum=70000 [19:38:26]written 0, free lines is 4095 [19:38:26]OFD Sender: Processing packet 67143 [packets to send 35, broken 34] [19:38:26]ProducePacketName [19:38:26]name=ofd_packets/00067143 [19:38:26]OFD Sender: To server: pG, [19:38:26]CommunicateWithHost lk.salyk.kg:30040 [19:38:26]ConnectInit lk.salyk.kg [19:38:26]Connected sock=10 [19:38:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 83 ED 07 01 24 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 96 00 00 00 F4 03 04 00 B1 BD 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 98 37 74 FD 34 74 A1 AC C9 32 BE 6E 85 ED [19:38: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 F5 C1 47 00 5C AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 47 06 01 00 F4 03 04 00 90 65 43 66 B6 04 01 00 00 D3 5C 1B 13 42 F2 E9 6B [19:38:26]CommunicateWithHost err = 0 [19:38:26]CheckOFDResponse [19:38:26]1017 (14) - 77093643461234 [19:38:26]1041 (16) - 0000000000871829 [19:38:26]1040 (4) - 67143 [19:38:26]1012 (4) - 14.05.2024 13:22 [19:38:26]1206 (1) - 0 [19:38:26]OFD Sender: Remove packet 67143 [19:38:26]ProducePacketName [19:38:26]name=ofd_packets/00067143 [19:38:26]NVStorageDeleteData [19:38:26]Write to MH i2c: 01 00 00 5A 0B 65 [19:38:26]Write i2c OK [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: 01 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: 01 07 00 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: 01 07 00 5A 0B 00 00 00 00 00 D8 0C 50 [19:38:26]RasterBufferAndPrint [19:38:26]line [19:38:26]line [19:38:26]line [19:38:26]line [19:38:26]line [19:38:26]written 0, free lines is 3294 [19:38:26]MH_Cut [19:38:26]Write to MH i2c: D1 01 00 61 0B 01 3E [19:38:26]Write i2c OK [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: D1 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: D1 01 00 [19:38:26]MH_I2C_Read... [19:38:26]Read from MH i2c: D1 01 00 61 0B 00 3D [19:38:26]Write to MH i2c: 01 00 00 62 0B 6D [19:38:26]Write i2c OK [19:38:26]MH_I2C_Read... [19:38:27]OFD Sender: No OFD packet to send [19:38:27]*** Cut start [19:38:27]*** Purtial cut [19:38:27]*** Stage 1: CUTSNS_PIN = 1 [19:38:27]Read from MH i2c: 01 [19:38:28]MH_I2C_Read... [19:38:28]*** Stop cut motor [19:38:28]*** Cut end [19:38:28]Read from MH i2c: 01 07 00 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: 01 07 00 62 0B 00 00 00 00 00 FF 0F 82 [19:38:28]process_action close_receipt done [19:38:28]requested_data is exist [19:38:28]produce_requested_data [19:38:28]requested_item fm.sn is exist - process it [19:38:28]wFMCommunicate request_size=4 [19:38:28]MH_SAM_APDU [19:38:28]CAPDU: 80 11 00 00 [19:38:28]Write to MH i2c: E2 08 00 63 0B 80 11 00 00 00 00 00 00 E8 [19:38:28]Write i2c OK [19:38:28]MH_I2C_Read... [19:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:28]Read from MH i2c: E2 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 17 00 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 17 00 63 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3E [19:38:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:38:28]wFMCommunicate OK [19:38:28]requested_item fd.num is exist - process it [19:38:28]SAM_PROTO_GetFieldsCounters [19:38:28]wFMCommunicate request_size=4 [19:38:28]MH_SAM_APDU [19:38:28]CAPDU: 80 13 00 00 [19:38:28]Write to MH i2c: E2 08 00 64 0B 80 13 00 00 00 00 00 00 EB [19:38:28]Write i2c OK [19:38:28]MH_I2C_Read... [19:38:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:28]Read from MH i2c: E2 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 62 00 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 62 00 64 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 47 06 01 00 0E 04 04 00 63 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 85 [19:38: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 47 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:38:28]wFMCommunicate OK [19:38:28]SAM_PROTO_GetFieldsCounters done [19:38:28]requested_item shift.num is exist - process it [19:38:28]requested_item shift.opened is exist - process it [19:38:28]req_shift_opened [19:38:28]FM_GetShiftState [19:38:28]SAM_PROTO_GetShiftState [19:38:28]wFMCommunicate request_size=4 [19:38:28]MH_SAM_APDU [19:38:28]CAPDU: 80 13 01 00 [19:38:28]Write to MH i2c: E2 08 00 65 0B 80 13 01 00 00 00 00 00 ED [19:38:28]Write i2c OK [19:38:28]MH_I2C_Read... [19:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:28]Read from MH i2c: E2 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 0E 00 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 0E 00 65 0B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 B5 [19:38:28]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:38:28]wFMCommunicate OK [19:38:28]SAM_PROTO_GetShiftState done [19:38:28]FM_GetShiftState done [19:38:28]req_shift_opened done [19:38:28]requested_item shift.open_date is exist - process it [19:38:28]req_shift_open_date [19:38:28]req_shift_open_date done [19:38:28]produce_requested_data done [19:38:28]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67143,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [19:38:28]process_action_free close_receipt [19:38:28]json_value_free [19:38:28]json_value_free done [19:38:28]process_json_proto returns [19:38:28]Send response to host [19:38:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67143,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [19:38:28]free response buf [19:38:28]execute_script done [19:38:28]execute_script returns [19:38:28]free content buf [19:38:28]Sock 9.Close socket [19:38:28]Sock 9.Thread stoped [19:38:32]OFD Sender: No OFD packet to send [19:38:37]OFD Sender: No OFD packet to send [19:38:42]OFD Sender: No OFD packet to send [19:38:47]OFD Sender: No OFD packet to send [19:38:52]OFD Sender: No OFD packet to send [19:38:57]OFD Sender: No OFD packet to send [19:39:02]OFD Sender: No OFD packet to send [19:39:07]OFD Sender: No OFD packet to send [19:39:12]OFD Sender: No OFD packet to send [19:39:17]OFD Sender: No OFD packet to send [19:39:22]OFD Sender: No OFD packet to send [19:39:27]OFD Sender: No OFD packet to send [19:39:32]OFD Sender: No OFD packet to send [19:39:37]OFD Sender: No OFD packet to send [19:39:42]OFD Sender: No OFD packet to send [19:39:47]OFD Sender: No OFD packet to send [19:39:52]OFD Sender: No OFD packet to send [19:39:53]accept exits with 7 [19:39:53]New connection [19:39:53]New thread 3066588516 created [19:39:53]Thread 3066731876 joined [19:39:53]Waiting for new connection... [19:39:53] Sock 7.Parse request [19:39:53]Sock 7.Check first char [19:39:53]Sock 7.First char is OK [19:39:53]request: POST /json_proto HTTP/1.0 [19:39:53]Method: POST [19:39:53]URL: /json_proto [19:39:53]Method is POST - this is cgi request [19:39:53]url: /json_proto [19:39:53]query_string will be loaded in cgi processing [19:39:53]execute_cgi json_proto POST (null) [19:39:53]execute_cgi path=json_proto method=POST [19:39:53]POST find Content-Length [19:39:53]Host: 172.17.41.195:8080 [19:39:53]Content-Length: 800 [19:39:53]Content-Type: application/json [19:39:53] [19:39:53]POST finish read [19:39:53]Found Content-Length = 800 [19:39:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:53]execute_script... [19:39: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)507038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:53]POST & json_proto [19:39:53]process_json_proto [19:39:53]json parsed OK: [19:39:53]protocol is kg_v1.0 [19:39:53]action value=close_receipt [19:39:53]process_action close_receipt [19:39:53]cmd_close_receipt [19:39:53]MH_GetDate [19:39:53]Write to MH i2c: F0 00 00 66 0B 60 [19:39:53]Write i2c OK [19:39:53]MH_I2C_Read... [19:39:53]Read from MH i2c: F0 [19:39:53]MH_I2C_Read... [19:39:53]Read from MH i2c: F0 09 00 [19:39:53]MH_I2C_Read... [19:39:53]Read from MH i2c: F0 09 00 66 0B 00 0A BE 43 66 FC 21 6F 64 CA [19:39:53]GetLastDocTimeStamp 1715715505 [19:39:53]current date 1715715594 [19:39:53]FM_GetShiftState [19:39:53]SAM_PROTO_GetShiftState [19:39:53]wFMCommunicate request_size=4 [19:39:53]MH_SAM_APDU [19:39:53]CAPDU: 80 13 01 00 [19:39:53]Write to MH i2c: E2 08 00 67 0B 80 13 01 00 00 00 00 00 EF [19:39:53]Write i2c OK [19:39:53]MH_I2C_Read... [19:39:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:53]Read from MH i2c: E2 [19:39:53]MH_I2C_Read... [19:39:53]Read from MH i2c: E2 0E 00 [19:39:53]MH_I2C_Read... [19:39:53]Read from MH i2c: E2 0E 00 67 0B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 B7 [19:39:53]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:39:53]wFMCommunicate OK [19:39:53]SAM_PROTO_GetShiftState done [19:39:53]FM_GetShiftState done [19:39:53]opened in 1715646054 [19:39:53]opened+sec_in_day 1715732454 [19:39:53]quantity*price = 150072 [19:39:53]sum+1 = 150073 [19:39:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.72 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.72 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 151 14.05.2024 19:39 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67144 ФПД: 260451471914499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T193954&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67144&fm=260451471914499&tin=02508201610067®Number=0000000000091845&sum=150072 [19:39:55]StoreToDocumentArchive [19:39:55]shift 355 fd 67144 [19:39:55]save to /storage/0355/doc_00067144 [19:39:55]save last doc name /storage/0355/doc_00067144 to /storage/kkm_last_doc_name [19:39:55]save OK [19:39:55]Clear old archive folders... [19:39:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:39:55]tlvbuf is 003AD530 [19:39:55]SAM_PROTO_ClearQueue [19:39:55]wFMCommunicate request_size=4 [19:39:55]MH_SAM_APDU [19:39:55]CAPDU: 80 09 00 00 [19:39:55]Write to MH i2c: E2 08 00 74 0B 80 09 00 00 00 00 00 00 F1 [19:39:55]Write i2c OK [19:39:55]MH_I2C_Read... [19:39:55]Read from MH i2c: E2 [19:39:55]MH_I2C_Read... [19:39:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:55]Read from MH i2c: E2 03 00 [19:39:55]MH_I2C_Read... [19:39:55]Read from MH i2c: E2 03 00 74 0B 00 90 00 F3 [19:39:55]RAPDU: 90 00 [19:39:55]wFMCommunicate OK [19:39:55]SAM_PROTO_ClearQueue done [19:39:55]KKMCreateOFDPacket [19:39:55]OFDProtocolAddRootSTLVToBuf [19:39:55]FM_MakeSignedData [19:39:55]FM_MakeSignedData [19:39:55]SAM_PROTO_SignData [19:39:55]wFMCommunicate request_size=4 [19:39:55]MH_SAM_APDU [19:39:55]CAPDU: 80 0D 01 02 [19:39:55]Write to MH i2c: E2 08 00 75 0B 80 0D 01 02 00 00 00 00 F9 [19:39:55]Write i2c OK [19:39:55]MH_I2C_Read... [19:39:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:55]Read from MH i2c: E2 [19:39:55]MH_I2C_Read... [19:39:55]Read from MH i2c: E2 03 00 [19:39:55]MH_I2C_Read... [19:39:55]Read from MH i2c: E2 03 00 75 0B 00 90 00 F4 [19:39:55]RAPDU: 90 00 [19:39:55]wFMCommunicate OK [19:39:55]wFMCommunicate request_size=255 [19:39:55]MH_SAM_APDU [19:39: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 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 97 00 00 00 F4 03 04 00 0A BE 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 EC E1 15 76 [19:39:55]Write to MH i2c: E2 02 01 76 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 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 97 00 00 00 F4 03 04 00 0A BE 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 EC E1 15 76 00 00 C1 [19:39:55]Write i2c OK [19:39:55]MH_I2C_Read... [19:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:55]Read from MH i2c: E2 [19:39:55]MH_I2C_Read... [19:39:55]Read from MH i2c: E2 03 00 [19:39:55]MH_I2C_Read... [19:39:55]Read from MH i2c: E2 03 00 76 0B 00 90 00 F5 [19:39:55]RAPDU: 90 00 [19:39:55]wFMCommunicate OK [19:39:55]wFMCommunicate request_size=7 [19:39:55]MH_SAM_APDU [19:39:55]CAPDU: 80 0D 02 02 02 F6 03 [19:39:55]Write to MH i2c: E2 0A 00 77 0B 80 0D 02 02 02 00 F6 03 00 00 F9 [19:39:55]Write i2c OK [19:39:55]MH_I2C_Read... [19:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:55]Read from MH i2c: E2 [19:39:55]MH_I2C_Read... [19:39:55]Read from MH i2c: E2 03 00 [19:39:55]MH_I2C_Read... [19:39:55]Read from MH i2c: E2 03 00 77 0B 00 90 00 F6 [19:39:55]RAPDU: 90 00 [19:39:55]wFMCommunicate OK [19:39:55]wFMCommunicate request_size=4 [19:39:55]MH_SAM_APDU [19:39:55]CAPDU: 80 0D 03 02 [19:39:55]Write to MH i2c: E2 08 00 78 0B 80 0D 03 02 00 00 00 00 FE [19:39:55]Write i2c OK [19:39:55]MH_I2C_Read... [19:39:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:55]Read from MH i2c: E2 [19:39:55]MH_I2C_Read... [19:39:55]Read from MH i2c: E2 0B 00 [19:39:55]MH_I2C_Read... [19:39:55]Read from MH i2c: E2 0B 00 78 0B 00 DB B0 89 B7 A9 56 6C 13 90 00 48 [19:39:55]RAPDU: DB B0 89 B7 A9 56 6C 13 90 00 [19:39:55]wFMCommunicate OK [19:39:55]SAM_PROTO_SignData done [19:39:55]FM_MakeSignedData done [19:39:55]CreateOFDProtocolMessage [19:39:55]wFMCommunicate request_size=4 [19:39:55]MH_SAM_APDU [19:39:55]CAPDU: 80 11 00 00 [19:39:55]Write to MH i2c: E2 08 00 79 0B 80 11 00 00 00 00 00 00 FE [19:39:55]Write i2c OK [19:39:55]MH_I2C_Read... [19:39:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:55]Read from MH i2c: E2 [19:39:55]MH_I2C_Read... [19:39:55]Read from MH i2c: E2 17 00 [19:39:55]MH_I2C_Read... [19:39:55]Read from MH i2c: E2 17 00 79 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 54 [19:39:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:39:55]wFMCommunicate OK [19:39:55]CreateOFDProtocolMessage done [19:39:55]OFDSenderStorePacket 67144 [19:39:55]StoreOFDPacket docnum=67144 [19:39: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 F3 9B 04 01 1A D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 0A BE 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 EC E1 15 76 F6 03 DB B0 89 B7 A9 56 6C 13 [19:39:55]CheckFolder [19:39:55]dirname=/storage/ofd_packets [19:39:55]CheckFolder done [19:39:55]ProducePacketName [19:39:55]name=ofd_packets/00067144 [19:39:55]NVStorageSaveData ofd_packets/00067144 [19:39:55]File name is /storage/ofd_packets/00067144 [19:39:55]Write 298 bytes [19:39:55]NVStorageSaveData done [19:39:55]OFDSenderStorePacket done [19:39:55]KKMCreateOFDPacket done [19:39:55]NVStorageSaveData kkm_last_timestamp [19:39:55]File name is /storage/kkm_last_timestamp [19:39:55]Write 4 bytes [19:39:55]NVStorageSaveData done [19:39:55]ExternCall_PrintAddStr [19:39:55]wPrintStart [19:39:55]Write to MH i2c: 01 00 00 7A 0B 85 [19:39:55]Write i2c OK [19:39:55]MH_I2C_Read... [19:39:55]Read from MH i2c: 01 [19:39:55]MH_I2C_Read... [19:39:55]Read from MH i2c: 01 07 00 [19:39:55]MH_I2C_Read... [19:39:55]Read from MH i2c: 01 07 00 7A 0B 00 00 00 00 00 FF 0F 9A [19:39:55]RasterBufferAndPrint [19:39:55]line Счет N : (1)507038 [19:39:55]line ИНН: 02508201610067 [19:39:55]line Контрольно-Кассовый Чек [19:39:55]line ПРОДАЖА [19:39:55]line ТРК (МРК, ГНК) : 21 [19:39:55]line Товар: 2710194210 [19:39:55]line ДТ-К-5 [19:39:55]line 20.090 * 74.70 [19:39:55]line = 1500.72 [19:39:55]line НДС 12% НСП 1% [19:39:55]line > о реализуемом товаре [19:39:55]line ИТОГО: 1500.72 [19:39:55]line НСП 1% : 13.28 [19:39:55]line НДС 12% : 159.37 [19:39:55]line Наличными: 0.00 [19:39:55]line Безнал.: 1500.72 [19:39:55]line Место: АЗС № 91 "Партнер Нефть" [19:39:55]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:39:55]line СНО: Общий режим [19:39:55]line Чек 151 14.05.2024 19:39 [19:39:55]line Смена: 355 ФФД: 1.0 [19:39:55]line ЗНМ: 0300000119 [19:39:55]line РНМ: 0000000000091845 [19:39:55]line Версия ККМ: 001 [19:39:55]line Платежная система: O! деньги [19:39:55]line ФМ: 0000000000871829 [19:39:55]line ФД: 67144 [19:39:55]line ФПД: 260451471914499 [19:39:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T193954&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67144&fm=260451471914499&tin=02508201610067®Number=0000000000091845&sum=150072 [19:39:55]OFD Sender: Processing packet 67144 [packets to send 35, broken 34] [19:39:55]ProducePacketName [19:39:55]name=ofd_packets/00067144 [19:39:55]OFD Sender: To server: pG, [19:39:55]CommunicateWithHost lk.salyk.kg:30040 [19:39:55]ConnectInit lk.salyk.kg [19:39:55]written 0, free lines is 4095 [19:39:55]Connected sock=10 [19:39: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 0C 01 00 00 F3 9B 04 01 1A D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 4E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 38 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 0A BE 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 EC E1 15 76 F6 03 DB B0 89 B7 A9 56 6C 13 [19:39: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 84 47 00 15 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 06 01 00 F4 03 04 00 E9 65 43 66 B6 04 01 00 00 FF E3 65 1D 65 18 B6 5C [19:39:56]CommunicateWithHost err = 0 [19:39:56]CheckOFDResponse [19:39:56]1017 (14) - 77093643461234 [19:39:56]1041 (16) - 0000000000871829 [19:39:56]1040 (4) - 67144 [19:39:56]1012 (4) - 14.05.2024 13:23 [19:39:56]1206 (1) - 0 [19:39:56]OFD Sender: Remove packet 67144 [19:39:56]ProducePacketName [19:39:56]name=ofd_packets/00067144 [19:39:56]NVStorageDeleteData [19:39:56]Write to MH i2c: 01 00 00 A3 0B AE [19:39:56]Write i2c OK [19:39:56]MH_I2C_Read... [19:39:56]Read from MH i2c: 01 [19:39:56]MH_I2C_Read... [19:39:56]Read from MH i2c: 01 07 00 [19:39:56]MH_I2C_Read... [19:39:56]Read from MH i2c: 01 07 00 A3 0B 00 00 00 00 00 ED 0C AE [19:39:56]RasterBufferAndPrint [19:39:56]line [19:39:56]line [19:39:56]line [19:39:56]line [19:39:56]line [19:39:56]written 0, free lines is 3318 [19:39:56]MH_Cut [19:39:56]Write to MH i2c: D1 01 00 AA 0B 01 87 [19:39:56]Write i2c OK [19:39:56]MH_I2C_Read... [19:39:56]Read from MH i2c: D1 [19:39:56]MH_I2C_Read... [19:39:56]Read from MH i2c: D1 01 00 [19:39:56]MH_I2C_Read... [19:39:56]Read from MH i2c: D1 01 00 AA 0B 00 86 [19:39:56]Write to MH i2c: 01 00 00 AB 0B B6 [19:39:56]Write i2c OK [19:39:56]MH_I2C_Read... [19:39:56]OFD Sender: No OFD packet to send [19:39:57]*** Cut start [19:39:57]*** Purtial cut [19:39:57]*** CUTSNS_PIN = 0 [19:39:57]*** Stage 1: CUTSNS_PIN = 1 [19:39:59]Read from MH i2c: 01 [19:39:59]MH_I2C_Read... [19:39:59]*** Stop cut motor [19:39:59]*** Cut end [19:39:59]Read from MH i2c: 01 07 00 [19:39:59]MH_I2C_Read... [19:39:59]Read from MH i2c: 01 07 00 AB 0B 00 00 00 00 00 FF 0F CB [19:39:59]process_action close_receipt done [19:39:59]requested_data is exist [19:39:59]produce_requested_data [19:39:59]requested_item fm.sn is exist - process it [19:39:59]wFMCommunicate request_size=4 [19:39:59]MH_SAM_APDU [19:39:59]CAPDU: 80 11 00 00 [19:39:59]Write to MH i2c: E2 08 00 AC 0B 80 11 00 00 00 00 00 00 31 [19:39:59]Write i2c OK [19:39:59]MH_I2C_Read... [19:39:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:59]Read from MH i2c: E2 [19:39:59]MH_I2C_Read... [19:39:59]Read from MH i2c: E2 17 00 [19:39:59]MH_I2C_Read... [19:39:59]Read from MH i2c: E2 17 00 AC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 87 [19:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:39:59]wFMCommunicate OK [19:39:59]requested_item fd.num is exist - process it [19:39:59]SAM_PROTO_GetFieldsCounters [19:39:59]wFMCommunicate request_size=4 [19:39:59]MH_SAM_APDU [19:39:59]CAPDU: 80 13 00 00 [19:39:59]Write to MH i2c: E2 08 00 AD 0B 80 13 00 00 00 00 00 00 34 [19:39:59]Write i2c OK [19:39:59]MH_I2C_Read... [19:39:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:59]Read from MH i2c: E2 [19:39:59]MH_I2C_Read... [19:39:59]Read from MH i2c: E2 62 00 [19:39:59]MH_I2C_Read... [19:39:59]Read from MH i2c: E2 62 00 AD 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 48 06 01 00 0E 04 04 00 63 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 D2 [19:39:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 48 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:59]wFMCommunicate OK [19:39:59]SAM_PROTO_GetFieldsCounters done [19:39:59]requested_item shift.num is exist - process it [19:39:59]requested_item shift.opened is exist - process it [19:39:59]req_shift_opened [19:39:59]FM_GetShiftState [19:39:59]SAM_PROTO_GetShiftState [19:39:59]wFMCommunicate request_size=4 [19:39:59]MH_SAM_APDU [19:39:59]CAPDU: 80 13 01 00 [19:39:59]Write to MH i2c: E2 08 00 AE 0B 80 13 01 00 00 00 00 00 36 [19:39:59]Write i2c OK [19:39:59]MH_I2C_Read... [19:39:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:59]Read from MH i2c: E2 [19:39:59]MH_I2C_Read... [19:39:59]Read from MH i2c: E2 0E 00 [19:39:59]MH_I2C_Read... [19:39:59]Read from MH i2c: E2 0E 00 AE 0B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 FE [19:39:59]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:39:59]wFMCommunicate OK [19:39:59]SAM_PROTO_GetShiftState done [19:39:59]FM_GetShiftState done [19:39:59]req_shift_opened done [19:39:59]requested_item shift.open_date is exist - process it [19:39:59]req_shift_open_date [19:39:59]req_shift_open_date done [19:39:59]produce_requested_data done [19:39:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67144,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [19:39:59]process_action_free close_receipt [19:39:59]json_value_free [19:39:59]json_value_free done [19:39:59]process_json_proto returns [19:39:59]Send response to host [19:39:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67144,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [19:39:59]free response buf [19:39:59]execute_script done [19:39:59]execute_script returns [19:39:59]free content buf [19:39:59]Sock 7.Close socket [19:39:59]Sock 7.Thread stoped [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:46]OFD Sender: No OFD packet to send [19:42:51]OFD Sender: No OFD packet to send [19:42:56]OFD Sender: No OFD packet to send [19:43:01]OFD Sender: No OFD packet to send [19:43:06]OFD Sender: No OFD packet to send [19:43:11]OFD Sender: No OFD packet to send [19:43:16]OFD Sender: No OFD packet to send [19:43:21]OFD Sender: No OFD packet to send [19:43:26]OFD Sender: No OFD packet to send [19:43:31]OFD Sender: No OFD packet to send [19:43:36]OFD Sender: No OFD packet to send [19:43:41]OFD Sender: No OFD packet to send [19:43:46]OFD Sender: No OFD packet to send [19:43:51]OFD Sender: No OFD packet to send [19:43:56]OFD Sender: No OFD packet to send [19:44:01]OFD Sender: No OFD packet to send [19:44:06]OFD Sender: No OFD packet to send [19:44:11]OFD Sender: No OFD packet to send [19:44:16]OFD Sender: No OFD packet to send [19:44:21]OFD Sender: No OFD packet to send [19:44:26]OFD Sender: No OFD packet to send [19:44:31]OFD Sender: No OFD packet to send [19:44:36]OFD Sender: No OFD packet to send [19:44:41]OFD Sender: No OFD packet to send [19:44:46]OFD Sender: No OFD packet to send [19:44:51]OFD Sender: No OFD packet to send [19:44:56]OFD Sender: No OFD packet to send [19:45:01]OFD Sender: No OFD packet to send [19:45:06]OFD Sender: No OFD packet to send [19:45:11]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:57]OFD Sender: No OFD packet to send [19:48:02]OFD Sender: No OFD packet to send [19:48:07]OFD Sender: No OFD packet to send [19:48:12]OFD Sender: No OFD packet to send [19:48:17]OFD Sender: No OFD packet to send [19:48:22]OFD Sender: No OFD packet to send [19:48:27]OFD Sender: No OFD packet to send [19:48:32]OFD Sender: No OFD packet to send [19:48:37]OFD Sender: No OFD packet to send [19:48:42]OFD Sender: No OFD packet to send [19:48:47]OFD Sender: No OFD packet to send [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:07]OFD Sender: No OFD packet to send [19:49:12]OFD Sender: No OFD packet to send [19:49:17]OFD Sender: No OFD packet to send [19:49:22]OFD Sender: No OFD packet to send [19:49:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:52]OFD Sender: No OFD packet to send [19:49:57]OFD Sender: No OFD packet to send [19:50:02]OFD Sender: No OFD packet to send [19:50:07]OFD Sender: No OFD packet to send [19:50:12]OFD Sender: No OFD packet to send [19:50:17]OFD Sender: No OFD packet to send [19:50:19]accept exits with 9 [19:50:19]New connection [19:50:19]New thread 3066731876 created [19:50:19]Thread 3066588516 joined [19:50:19]Waiting for new connection... [19:50:19] Sock 9.Parse request [19:50:19]Sock 9.Check first char [19:50:19]Sock 9.First char is OK [19:50:19]request: POST /json_proto HTTP/1.0 [19:50:19]Method: POST [19:50:19]URL: /json_proto [19:50:19]Method is POST - this is cgi request [19:50:19]url: /json_proto [19:50:19]query_string will be loaded in cgi processing [19:50:19]execute_cgi json_proto POST (null) [19:50:19]execute_cgi path=json_proto method=POST [19:50:19]POST find Content-Length [19:50:19]Host: 172.17.41.195:8080 [19:50:19]Content-Length: 677 [19:50:19]Content-Type: application/json [19:50:19] [19:50:19]POST finish read [19:50:19]Found Content-Length = 677 [19:50:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:19]execute_script... [19:50: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)507039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:19]POST & json_proto [19:50:19]process_json_proto [19:50:19]json parsed OK: [19:50:19]protocol is kg_v1.0 [19:50:19]action value=close_receipt [19:50:19]process_action close_receipt [19:50:19]cmd_close_receipt [19:50:19]MH_GetDate [19:50:19]Write to MH i2c: F0 00 00 AF 0B A9 [19:50:19]Write i2c OK [19:50:19]MH_I2C_Read... [19:50:19]Read from MH i2c: F0 [19:50:19]MH_I2C_Read... [19:50:19]Read from MH i2c: F0 09 00 [19:50:19]MH_I2C_Read... [19:50:19]Read from MH i2c: F0 09 00 AF 0B 00 7C C0 43 66 FC 21 6F 64 87 [19:50:19]GetLastDocTimeStamp 1715715594 [19:50:19]current date 1715716220 [19:50:19]FM_GetShiftState [19:50:19]SAM_PROTO_GetShiftState [19:50:19]wFMCommunicate request_size=4 [19:50:19]MH_SAM_APDU [19:50:19]CAPDU: 80 13 01 00 [19:50:19]Write to MH i2c: E2 08 00 B0 0B 80 13 01 00 00 00 00 00 38 [19:50:19]Write i2c OK [19:50:19]MH_I2C_Read... [19:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:19]Read from MH i2c: E2 [19:50:19]MH_I2C_Read... [19:50:19]Read from MH i2c: E2 0E 00 [19:50:19]MH_I2C_Read... [19:50:19]Read from MH i2c: E2 0E 00 B0 0B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 00 [19:50:19]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:50:19]wFMCommunicate OK [19:50:19]SAM_PROTO_GetShiftState done [19:50:19]FM_GetShiftState done [19:50:19]opened in 1715646054 [19:50:19]opened+sec_in_day 1715732454 [19:50:19]quantity*price = 50033 [19:50:19]sum+1 = 50034 [19:50:19]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 СНО: Общий режим Чек 152 14.05.2024 19:50 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67145 ФПД: 65580400701567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T195020&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67145&fm=65580400701567&tin=02508201610067®Number=0000000000091845&sum=50000 [19:50:21]StoreToDocumentArchive [19:50:21]shift 355 fd 67145 [19:50:21]save to /storage/0355/doc_00067145 [19:50:21]save last doc name /storage/0355/doc_00067145 to /storage/kkm_last_doc_name [19:50:21]save OK [19:50:21]Clear old archive folders... [19:50:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:50:21]tlvbuf is 003A40A0 [19:50:21]SAM_PROTO_ClearQueue [19:50:21]wFMCommunicate request_size=4 [19:50:21]MH_SAM_APDU [19:50:21]CAPDU: 80 09 00 00 [19:50:21]Write to MH i2c: E2 08 00 BD 0B 80 09 00 00 00 00 00 00 3A [19:50:21]Write i2c OK [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 [19:50:21]MH_I2C_Read... [19:50:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:21]Read from MH i2c: E2 03 00 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 03 00 BD 0B 00 90 00 3C [19:50:21]RAPDU: 90 00 [19:50:21]wFMCommunicate OK [19:50:21]SAM_PROTO_ClearQueue done [19:50:21]KKMCreateOFDPacket [19:50:21]OFDProtocolAddRootSTLVToBuf [19:50:21]FM_MakeSignedData [19:50:21]FM_MakeSignedData [19:50:21]SAM_PROTO_SignData [19:50:21]wFMCommunicate request_size=4 [19:50:21]MH_SAM_APDU [19:50:21]CAPDU: 80 0D 01 02 [19:50:21]Write to MH i2c: E2 08 00 BE 0B 80 0D 01 02 00 00 00 00 42 [19:50:21]Write i2c OK [19:50:21]MH_I2C_Read... [19:50:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:21]Read from MH i2c: E2 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 03 00 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 03 00 BE 0B 00 90 00 3D [19:50:21]RAPDU: 90 00 [19:50:21]wFMCommunicate OK [19:50:21]wFMCommunicate request_size=255 [19:50:21]MH_SAM_APDU [19:50: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 98 00 00 00 F4 03 04 00 7C C0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 3B [19:50:21]Write to MH i2c: E2 02 01 BF 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 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 98 00 00 00 F4 03 04 00 7C C0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 3B 00 00 39 [19:50:21]Write i2c OK [19:50:21]MH_I2C_Read... [19:50:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:21]Read from MH i2c: E2 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 03 00 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 03 00 BF 0B 00 90 00 3E [19:50:21]RAPDU: 90 00 [19:50:21]wFMCommunicate OK [19:50:21]wFMCommunicate request_size=10 [19:50:21]MH_SAM_APDU [19:50:21]CAPDU: 80 0D 02 02 05 A5 20 7C F0 7F [19:50:21]Write to MH i2c: E2 0D 00 C0 0B 80 0D 02 02 05 00 A5 20 7C F0 7F 00 00 FF [19:50:21]Write i2c OK [19:50:21]MH_I2C_Read... [19:50:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:21]Read from MH i2c: E2 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 03 00 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 03 00 C0 0B 00 90 00 3F [19:50:21]RAPDU: 90 00 [19:50:21]wFMCommunicate OK [19:50:21]wFMCommunicate request_size=4 [19:50:21]MH_SAM_APDU [19:50:21]CAPDU: 80 0D 03 02 [19:50:21]Write to MH i2c: E2 08 00 C1 0B 80 0D 03 02 00 00 00 00 47 [19:50:21]Write i2c OK [19:50:21]MH_I2C_Read... [19:50:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:21]Read from MH i2c: E2 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 0B 00 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 0B 00 C1 0B 00 2A 22 62 00 B0 5B 2D 06 90 00 34 [19:50:21]RAPDU: 2A 22 62 00 B0 5B 2D 06 90 00 [19:50:21]wFMCommunicate OK [19:50:21]SAM_PROTO_SignData done [19:50:21]FM_MakeSignedData done [19:50:21]CreateOFDProtocolMessage [19:50:21]wFMCommunicate request_size=4 [19:50:21]MH_SAM_APDU [19:50:21]CAPDU: 80 11 00 00 [19:50:21]Write to MH i2c: E2 08 00 C2 0B 80 11 00 00 00 00 00 00 47 [19:50:21]Write i2c OK [19:50:21]MH_I2C_Read... [19:50:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:21]Read from MH i2c: E2 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 17 00 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: E2 17 00 C2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9D [19:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:50:21]wFMCommunicate OK [19:50:21]CreateOFDProtocolMessage done [19:50:21]OFDSenderStorePacket 67145 [19:50:21]StoreOFDPacket docnum=67145 [19:50: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 62 0F 07 01 38 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 98 00 00 00 F4 03 04 00 7C C0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 3B A5 20 7C F0 7F 2A 22 62 00 B0 5B 2D 06 [19:50:21]CheckFolder [19:50:21]dirname=/storage/ofd_packets [19:50:21]CheckFolder done [19:50:21]ProducePacketName [19:50:21]name=ofd_packets/00067145 [19:50:21]NVStorageSaveData ofd_packets/00067145 [19:50:21]File name is /storage/ofd_packets/00067145 [19:50:21]Write 301 bytes [19:50:21]NVStorageSaveData done [19:50:21]OFDSenderStorePacket done [19:50:21]KKMCreateOFDPacket done [19:50:21]NVStorageSaveData kkm_last_timestamp [19:50:21]File name is /storage/kkm_last_timestamp [19:50:21]Write 4 bytes [19:50:21]NVStorageSaveData done [19:50:21]ExternCall_PrintAddStr [19:50:21]wPrintStart [19:50:21]Write to MH i2c: 01 00 00 C3 0B CE [19:50:21]Write i2c OK [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: 01 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: 01 07 00 [19:50:21]MH_I2C_Read... [19:50:21]Read from MH i2c: 01 07 00 C3 0B 00 00 00 00 00 FF 0F E3 [19:50:21]RasterBufferAndPrint [19:50:21]line Счет N : (1)507039 [19:50:21]line ИНН: 02508201610067 [19:50:21]line Контрольно-Кассовый Чек [19:50:21]line ПРОДАЖА [19:50:21]line ТРК (МРК, ГНК) : 33 [19:50:21]line Товар: 2710124130 [19:50:21]line Аи-92-К-5 [19:50:21]line 7.490 * 66.80 [19:50:21]line = 500.33 [19:50:21]line НДС 12% НСП 1% [19:50:21]line > о реализуемом товаре [19:50:21]line ОКРУГЛЕНИЕ: -0.33 [19:50:21]line ИТОГО: 500.00 [19:50:21]line Внесено: 500.00 [19:50:21]line СДАЧА: 0.00 [19:50:21]line НСП 1% : 4.43 [19:50:21]line НДС 12% : 53.13 [19:50:21]line Наличными: 500.00 [19:50:21]line Безнал.: 0.00 [19:50:21]line Место: АЗС № 91 "Партнер Нефть" [19:50:21]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:50:21]line СНО: Общий режим [19:50:21]line Чек 152 14.05.2024 19:50 [19:50:21]line Смена: 355 ФФД: 1.0 [19:50:21]line ЗНМ: 0300000119 [19:50:21]line РНМ: 0000000000091845 [19:50:21]line Версия ККМ: 001 [19:50:21]line ФМ: 0000000000871829 [19:50:21]line ФД: 67145 [19:50:21]line ФПД: 65580400701567 [19:50:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T195020&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67145&fm=65580400701567&tin=02508201610067®Number=0000000000091845&sum=50000 [19:50:21]OFD Sender: Processing packet 67145 [packets to send 35, broken 34] [19:50:21]ProducePacketName [19:50:21]name=ofd_packets/00067145 [19:50:21]OFD Sender: To server: pG, [19:50:21]CommunicateWithHost lk.salyk.kg:30040 [19:50:21]ConnectInit lk.salyk.kg [19:50:21]written 0, free lines is 4095 [19:50:21]Connected sock=10 [19:50: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 0F 01 00 00 62 0F 07 01 38 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 98 00 00 00 F4 03 04 00 7C C0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 3B A5 20 7C F0 7F 2A 22 62 00 B0 5B 2D 06 [19:50: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 B9 9A 47 00 8B 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 49 06 01 00 F4 03 04 00 5B 68 43 66 B6 04 01 00 00 AA 51 58 11 FE C2 69 C6 [19:50:22]CommunicateWithHost err = 0 [19:50:22]CheckOFDResponse [19:50:22]1017 (14) - 77093643461234 [19:50:22]1041 (16) - 0000000000871829 [19:50:22]1040 (4) - 67145 [19:50:22]1012 (4) - 14.05.2024 13:34 [19:50:22]1206 (1) - 0 [19:50:22]OFD Sender: Remove packet 67145 [19:50:22]ProducePacketName [19:50:22]name=ofd_packets/00067145 [19:50:22]NVStorageDeleteData [19:50:22]Write to MH i2c: 01 00 00 ED 0B F8 [19:50:22]Write i2c OK [19:50:22]MH_I2C_Read... [19:50:22]Read from MH i2c: 01 [19:50:22]MH_I2C_Read... [19:50:22]Read from MH i2c: 01 07 00 [19:50:22]MH_I2C_Read... [19:50:22]Read from MH i2c: 01 07 00 ED 0B 00 00 00 00 00 E1 0C EC [19:50:22]RasterBufferAndPrint [19:50:22]line [19:50:22]line [19:50:22]line [19:50:22]line [19:50:22]line [19:50:22]written 0, free lines is 3303 [19:50:22]MH_Cut [19:50:22]Write to MH i2c: D1 01 00 F4 0B 01 D1 [19:50:22]Write i2c OK [19:50:22]MH_I2C_Read... [19:50:22]Read from MH i2c: D1 [19:50:22]MH_I2C_Read... [19:50:22]Read from MH i2c: D1 01 00 [19:50:22]MH_I2C_Read... [19:50:22]Read from MH i2c: D1 01 00 F4 0B 00 D0 [19:50:22]Write to MH i2c: 01 00 00 F5 0B 00 [19:50:22]Write i2c OK [19:50:22]MH_I2C_Read... [19:50:22]OFD Sender: No OFD packet to send [19:50:23]*** Cut start [19:50:23]*** Purtial cut [19:50:23]*** Stage 1: CUTSNS_PIN = 1 [19:50:23]Read from MH i2c: 01 [19:50:23]MH_I2C_Read... [19:50:23]*** Stop cut motor [19:50:23]*** Cut end [19:50:23]Read from MH i2c: 01 07 00 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: 01 07 00 F5 0B 00 00 00 00 00 FF 0F 15 [19:50:23]process_action close_receipt done [19:50:23]requested_data is exist [19:50:23]produce_requested_data [19:50:23]requested_item fm.sn is exist - process it [19:50:23]wFMCommunicate request_size=4 [19:50:23]MH_SAM_APDU [19:50:23]CAPDU: 80 11 00 00 [19:50:23]Write to MH i2c: E2 08 00 F6 0B 80 11 00 00 00 00 00 00 7B [19:50:23]Write i2c OK [19:50:23]MH_I2C_Read... [19:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:23]Read from MH i2c: E2 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 17 00 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 17 00 F6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D1 [19:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:50:23]wFMCommunicate OK [19:50:23]requested_item fd.num is exist - process it [19:50:23]SAM_PROTO_GetFieldsCounters [19:50:23]wFMCommunicate request_size=4 [19:50:23]MH_SAM_APDU [19:50:23]CAPDU: 80 13 00 00 [19:50:23]Write to MH i2c: E2 08 00 F7 0B 80 13 00 00 00 00 00 00 7E [19:50:23]Write i2c OK [19:50:23]MH_I2C_Read... [19:50:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:23]Read from MH i2c: E2 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 62 00 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 62 00 F7 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 49 06 01 00 0E 04 04 00 63 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 20 [19:50: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 49 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:50:23]wFMCommunicate OK [19:50:23]SAM_PROTO_GetFieldsCounters done [19:50:23]requested_item shift.num is exist - process it [19:50:23]requested_item shift.opened is exist - process it [19:50:23]req_shift_opened [19:50:23]FM_GetShiftState [19:50:23]SAM_PROTO_GetShiftState [19:50:23]wFMCommunicate request_size=4 [19:50:23]MH_SAM_APDU [19:50:23]CAPDU: 80 13 01 00 [19:50:23]Write to MH i2c: E2 08 00 F8 0B 80 13 01 00 00 00 00 00 80 [19:50:23]Write i2c OK [19:50:23]MH_I2C_Read... [19:50:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:23]Read from MH i2c: E2 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 0E 00 [19:50:23]MH_I2C_Read... [19:50:23]Read from MH i2c: E2 0E 00 F8 0B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 48 [19:50:23]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:50:23]wFMCommunicate OK [19:50:23]SAM_PROTO_GetShiftState done [19:50:23]FM_GetShiftState done [19:50:23]req_shift_opened done [19:50:23]requested_item shift.open_date is exist - process it [19:50:23]req_shift_open_date [19:50:23]req_shift_open_date done [19:50:23]produce_requested_data done [19:50:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67145,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [19:50:23]process_action_free close_receipt [19:50:23]json_value_free [19:50:23]json_value_free done [19:50:23]process_json_proto returns [19:50:23]Send response to host [19:50:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67145,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [19:50:23]free response buf [19:50:23]execute_script done [19:50:23]execute_script returns [19:50:23]free content buf [19:50:23]Sock 9.Close socket [19:50:23]Sock 9.Thread stoped [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:37]OFD Sender: No OFD packet to send [19:50:42]OFD Sender: No OFD packet to send [19:50:47]OFD Sender: No OFD packet to send [19:50:52]OFD Sender: No OFD packet to send [19:50:57]OFD Sender: No OFD packet to send [19:51:02]OFD Sender: No OFD packet to send [19:51:07]OFD Sender: No OFD packet to send [19:51:12]OFD Sender: No OFD packet to send [19:51:17]OFD Sender: No OFD packet to send [19:51:22]OFD Sender: No OFD packet to send [19:51:27]OFD Sender: No OFD packet to send [19:51:32]OFD Sender: No OFD packet to send [19:51:37]OFD Sender: No OFD packet to send [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:37]OFD Sender: No OFD packet to send [19:52:42]OFD Sender: No OFD packet to send [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:57]OFD Sender: No OFD packet to send [19:53:02]OFD Sender: No OFD packet to send [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:17]OFD Sender: No OFD packet to send [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:32]OFD Sender: No OFD packet to send [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:52]OFD Sender: No OFD packet to send [19:53:57]OFD Sender: No OFD packet to send [19:54:02]OFD Sender: No OFD packet to send [19:54:07]OFD Sender: No OFD packet to send [19:54:12]OFD Sender: No OFD packet to send [19:54:17]OFD Sender: No OFD packet to send [19:54:22]OFD Sender: No OFD packet to send [19:54:27]OFD Sender: No OFD packet to send [19:54:32]OFD Sender: No OFD packet to send [19:54:37]OFD Sender: No OFD packet to send [19:54:42]OFD Sender: No OFD packet to send [19:54:47]OFD Sender: No OFD packet to send [19:54:52]OFD Sender: No OFD packet to send [19:54:54]accept exits with 7 [19:54:54]New connection [19:54:54]New thread 3066588516 created [19:54:54]Thread 3066731876 joined [19:54:54]Waiting for new connection... [19:54:54] Sock 7.Parse request [19:54:54]Sock 7.Check first char [19:54:54]Sock 7.First char is OK [19:54:54]request: POST /json_proto HTTP/1.0 [19:54:54]Method: POST [19:54:54]URL: /json_proto [19:54:54]Method is POST - this is cgi request [19:54:54]url: /json_proto [19:54:54]query_string will be loaded in cgi processing [19:54:54]execute_cgi json_proto POST (null) [19:54:54]execute_cgi path=json_proto method=POST [19:54:54]POST find Content-Length [19:54:54]Host: 172.17.41.195:8080 [19:54:54]Content-Length: 674 [19:54:54]Content-Type: application/json [19:54:54] [19:54:54]POST finish read [19:54:54]Found Content-Length = 674 [19:54:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507040", "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" ] } } [19:54:54]execute_script... [19:54: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)507040", "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" ] } } [19:54:54]POST & json_proto [19:54:54]process_json_proto [19:54:54]json parsed OK: [19:54:54]protocol is kg_v1.0 [19:54:54]action value=close_receipt [19:54:54]process_action close_receipt [19:54:54]cmd_close_receipt [19:54:54]MH_GetDate [19:54:54]Write to MH i2c: F0 00 00 F9 0B F3 [19:54:54]Write i2c OK [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: F0 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: F0 09 00 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: F0 09 00 F9 0B 00 8E C1 43 66 FC 21 6F 64 E4 [19:54:54]GetLastDocTimeStamp 1715716220 [19:54:54]current date 1715716494 [19:54:54]FM_GetShiftState [19:54:54]SAM_PROTO_GetShiftState [19:54:54]wFMCommunicate request_size=4 [19:54:54]MH_SAM_APDU [19:54:54]CAPDU: 80 13 01 00 [19:54:54]Write to MH i2c: E2 08 00 FA 0B 80 13 01 00 00 00 00 00 82 [19:54:54]Write i2c OK [19:54:54]MH_I2C_Read... [19:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:54]Read from MH i2c: E2 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: E2 0E 00 [19:54:54]MH_I2C_Read... [19:54:54]Read from MH i2c: E2 0E 00 FA 0B 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 4A [19:54:54]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:54:54]wFMCommunicate OK [19:54:54]SAM_PROTO_GetShiftState done [19:54:54]FM_GetShiftState done [19:54:54]opened in 1715646054 [19:54:54]opened+sec_in_day 1715732454 [19:54:54]quantity*price = 50049 [19:54:54]sum+1 = 50050 [19:54:54]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 СНО: Общий режим Чек 153 14.05.2024 19:54 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67146 ФПД: 132603738340514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T195454&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67146&fm=132603738340514&tin=02508201610067®Number=0000000000091845&sum=50000 [19:54:55]StoreToDocumentArchive [19:54:55]shift 355 fd 67146 [19:54:55]save to /storage/0355/doc_00067146 [19:54:55]save last doc name /storage/0355/doc_00067146 to /storage/kkm_last_doc_name [19:54:55]save OK [19:54:55]Clear old archive folders... [19:54:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:54:55]tlvbuf is 0038C2F0 [19:54:55]SAM_PROTO_ClearQueue [19:54:55]wFMCommunicate request_size=4 [19:54:55]MH_SAM_APDU [19:54:55]CAPDU: 80 09 00 00 [19:54:55]Write to MH i2c: E2 08 00 07 0C 80 09 00 00 00 00 00 00 85 [19:54:55]Write i2c OK [19:54:55]MH_I2C_Read... [19:54:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:55]Read from MH i2c: E2 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 03 00 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 03 00 07 0C 00 90 00 87 [19:54:55]RAPDU: 90 00 [19:54:55]wFMCommunicate OK [19:54:55]SAM_PROTO_ClearQueue done [19:54:55]KKMCreateOFDPacket [19:54:55]OFDProtocolAddRootSTLVToBuf [19:54:55]FM_MakeSignedData [19:54:55]FM_MakeSignedData [19:54:55]SAM_PROTO_SignData [19:54:55]wFMCommunicate request_size=4 [19:54:55]MH_SAM_APDU [19:54:55]CAPDU: 80 0D 01 02 [19:54:55]Write to MH i2c: E2 08 00 08 0C 80 0D 01 02 00 00 00 00 8D [19:54:55]Write i2c OK [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 [19:54:55]MH_I2C_Read... [19:54:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:55]Read from MH i2c: E2 03 00 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 03 00 08 0C 00 90 00 88 [19:54:55]RAPDU: 90 00 [19:54:55]wFMCommunicate OK [19:54:55]wFMCommunicate request_size=255 [19:54:55]MH_SAM_APDU [19:54: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 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 99 00 00 00 F4 03 04 00 8E C1 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 78 9A 36 B8 [19:54:55]Write to MH i2c: E2 02 01 09 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 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 99 00 00 00 F4 03 04 00 8E C1 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 78 9A 36 B8 00 00 C3 [19:54:55]Write i2c OK [19:54:55]MH_I2C_Read... [19:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:55]Read from MH i2c: E2 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 03 00 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 03 00 09 0C 00 90 00 89 [19:54:55]RAPDU: 90 00 [19:54:55]wFMCommunicate OK [19:54:55]wFMCommunicate request_size=7 [19:54:55]MH_SAM_APDU [19:54:55]CAPDU: 80 0D 02 02 02 3C A2 [19:54:55]Write to MH i2c: E2 0A 00 0A 0C 80 0D 02 02 02 00 3C A2 00 00 72 [19:54:55]Write i2c OK [19:54:55]MH_I2C_Read... [19:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:55]Read from MH i2c: E2 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 03 00 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 03 00 0A 0C 00 90 00 8A [19:54:55]RAPDU: 90 00 [19:54:55]wFMCommunicate OK [19:54:55]wFMCommunicate request_size=4 [19:54:55]MH_SAM_APDU [19:54:55]CAPDU: 80 0D 03 02 [19:54:55]Write to MH i2c: E2 08 00 0B 0C 80 0D 03 02 00 00 00 00 92 [19:54:55]Write i2c OK [19:54:55]MH_I2C_Read... [19:54:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:55]Read from MH i2c: E2 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 0B 00 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 0B 00 0B 0C 00 48 31 B3 9E 7F B7 76 3A 90 00 43 [19:54:55]RAPDU: 48 31 B3 9E 7F B7 76 3A 90 00 [19:54:55]wFMCommunicate OK [19:54:55]SAM_PROTO_SignData done [19:54:55]FM_MakeSignedData done [19:54:55]CreateOFDProtocolMessage [19:54:55]wFMCommunicate request_size=4 [19:54:55]MH_SAM_APDU [19:54:55]CAPDU: 80 11 00 00 [19:54:55]Write to MH i2c: E2 08 00 0C 0C 80 11 00 00 00 00 00 00 92 [19:54:55]Write i2c OK [19:54:55]MH_I2C_Read... [19:54:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:55]Read from MH i2c: E2 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 17 00 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: E2 17 00 0C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E8 [19:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:54:55]wFMCommunicate OK [19:54:55]CreateOFDProtocolMessage done [19:54:55]OFDSenderStorePacket 67146 [19:54:55]StoreOFDPacket docnum=67146 [19:54: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 3E 63 04 01 81 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 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 99 00 00 00 F4 03 04 00 8E C1 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 78 9A 36 B8 3C A2 48 31 B3 9E 7F B7 76 3A [19:54:55]CheckFolder [19:54:55]dirname=/storage/ofd_packets [19:54:55]CheckFolder done [19:54:55]ProducePacketName [19:54:55]name=ofd_packets/00067146 [19:54:55]NVStorageSaveData ofd_packets/00067146 [19:54:55]File name is /storage/ofd_packets/00067146 [19:54:55]Write 298 bytes [19:54:55]NVStorageSaveData done [19:54:55]OFDSenderStorePacket done [19:54:55]KKMCreateOFDPacket done [19:54:55]NVStorageSaveData kkm_last_timestamp [19:54:55]File name is /storage/kkm_last_timestamp [19:54:55]Write 4 bytes [19:54:55]NVStorageSaveData done [19:54:55]ExternCall_PrintAddStr [19:54:55]wPrintStart [19:54:55]Write to MH i2c: 01 00 00 0D 0C 19 [19:54:55]Write i2c OK [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: 01 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: 01 07 00 [19:54:55]MH_I2C_Read... [19:54:55]Read from MH i2c: 01 07 00 0D 0C 00 00 00 00 00 FF 0F 2E [19:54:55]RasterBufferAndPrint [19:54:55]line Счет N : (1)507040 [19:54:55]line ИНН: 02508201610067 [19:54:55]line Контрольно-Кассовый Чек [19:54:55]line ПРОДАЖА [19:54:55]line ТРК (МРК, ГНК) : 11 [19:54:55]line Товар: 2710194210 [19:54:55]line ДТ-К-5 [19:54:55]line 6.700 * 74.70 [19:54:55]line = 500.49 [19:54:55]line НДС 12% НСП 1% [19:54:55]line > о реализуемом товаре [19:54:55]line ОКРУГЛЕНИЕ: -0.49 [19:54:55]line ИТОГО: 500.00 [19:54:55]line Внесено: 500.00 [19:54:55]line СДАЧА: 0.00 [19:54:55]line НСП 1% : 4.43 [19:54:55]line НДС 12% : 53.15 [19:54:55]line Наличными: 500.00 [19:54:55]line Безнал.: 0.00 [19:54:55]line Место: АЗС № 91 "Партнер Нефть" [19:54:55]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:54:55]line СНО: Общий режим [19:54:55]line Чек 153 14.05.2024 19:54 [19:54:55]line Смена: 355 ФФД: 1.0 [19:54:55]line ЗНМ: 0300000119 [19:54:55]line РНМ: 0000000000091845 [19:54:55]line Версия ККМ: 001 [19:54:55]line ФМ: 0000000000871829 [19:54:55]line ФД: 67146 [19:54:55]line ФПД: 132603738340514 [19:54:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T195454&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67146&fm=132603738340514&tin=02508201610067®Number=0000000000091845&sum=50000 [19:54:56]OFD Sender: Processing packet 67146 [packets to send 35, broken 34] [19:54:56]ProducePacketName [19:54:56]name=ofd_packets/00067146 [19:54:56]OFD Sender: To server: pG, [19:54:56]CommunicateWithHost lk.salyk.kg:30040 [19:54:56]ConnectInit lk.salyk.kg [19:54:56]written 0, free lines is 4095 [19:54:56]Connected sock=10 [19:54: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 3E 63 04 01 81 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 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 99 00 00 00 F4 03 04 00 8E C1 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 78 9A 36 B8 3C A2 48 31 B3 9E 7F B7 76 3A [19:54: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 70 3F 47 00 F9 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 4A 06 01 00 F4 03 04 00 6E 69 43 66 B6 04 01 00 00 9C B0 5D 4F BB 11 D7 7F [19:54:56]CommunicateWithHost err = 0 [19:54:56]CheckOFDResponse [19:54:56]1017 (14) - 77093643461234 [19:54:56]1041 (16) - 0000000000871829 [19:54:56]1040 (4) - 67146 [19:54:56]1012 (4) - 14.05.2024 13:38 [19:54:56]1206 (1) - 0 [19:54:56]OFD Sender: Remove packet 67146 [19:54:56]ProducePacketName [19:54:56]name=ofd_packets/00067146 [19:54:56]NVStorageDeleteData [19:54:56]Write to MH i2c: 01 00 00 37 0C 43 [19:54:56]Write i2c OK [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: 01 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: 01 07 00 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: 01 07 00 37 0C 00 00 00 00 00 D6 0C 2C [19:54:56]RasterBufferAndPrint [19:54:56]line [19:54:56]line [19:54:56]line [19:54:56]line [19:54:56]line [19:54:56]written 0, free lines is 3292 [19:54:56]MH_Cut [19:54:56]Write to MH i2c: D1 01 00 3E 0C 01 1C [19:54:56]Write i2c OK [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: D1 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: D1 01 00 [19:54:56]MH_I2C_Read... [19:54:56]Read from MH i2c: D1 01 00 3E 0C 00 1B [19:54:56]Write to MH i2c: 01 00 00 3F 0C 4B [19:54:56]Write i2c OK [19:54:56]MH_I2C_Read... [19:54:56]OFD Sender: No OFD packet to send [19:54:57]*** Cut start [19:54:57]*** Purtial cut [19:54:57]*** CUTSNS_PIN = 0 [19:54:57]*** Stage 1: CUTSNS_PIN = 1 [19:54:59]Read from MH i2c: 01 [19:54:59]MH_I2C_Read... [19:54:59]*** Stop cut motor [19:54:59]*** Cut end [19:54:59]Read from MH i2c: 01 07 00 [19:54:59]MH_I2C_Read... [19:54:59]Read from MH i2c: 01 07 00 3F 0C 00 00 00 00 00 FF 0F 60 [19:54:59]process_action close_receipt done [19:54:59]requested_data is exist [19:54:59]produce_requested_data [19:54:59]requested_item fm.sn is exist - process it [19:54:59]wFMCommunicate request_size=4 [19:54:59]MH_SAM_APDU [19:54:59]CAPDU: 80 11 00 00 [19:54:59]Write to MH i2c: E2 08 00 40 0C 80 11 00 00 00 00 00 00 C6 [19:54:59]Write i2c OK [19:54:59]MH_I2C_Read... [19:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:59]Read from MH i2c: E2 [19:54:59]MH_I2C_Read... [19:54:59]Read from MH i2c: E2 17 00 [19:54:59]MH_I2C_Read... [19:54:59]Read from MH i2c: E2 17 00 40 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1C [19:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:54:59]wFMCommunicate OK [19:54:59]requested_item fd.num is exist - process it [19:54:59]SAM_PROTO_GetFieldsCounters [19:54:59]wFMCommunicate request_size=4 [19:54:59]MH_SAM_APDU [19:54:59]CAPDU: 80 13 00 00 [19:54:59]Write to MH i2c: E2 08 00 41 0C 80 13 00 00 00 00 00 00 C9 [19:54:59]Write i2c OK [19:54:59]MH_I2C_Read... [19:54:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:59]Read from MH i2c: E2 [19:54:59]MH_I2C_Read... [19:54:59]Read from MH i2c: E2 62 00 [19:54:59]MH_I2C_Read... [19:54:59]Read from MH i2c: E2 62 00 41 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 4A 06 01 00 0E 04 04 00 63 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 6F [19:54: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 4A 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:59]wFMCommunicate OK [19:54:59]SAM_PROTO_GetFieldsCounters done [19:54:59]requested_item shift.num is exist - process it [19:54:59]requested_item shift.opened is exist - process it [19:54:59]req_shift_opened [19:54:59]FM_GetShiftState [19:54:59]SAM_PROTO_GetShiftState [19:54:59]wFMCommunicate request_size=4 [19:54:59]MH_SAM_APDU [19:54:59]CAPDU: 80 13 01 00 [19:54:59]Write to MH i2c: E2 08 00 42 0C 80 13 01 00 00 00 00 00 CB [19:54:59]Write i2c OK [19:54:59]MH_I2C_Read... [19:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:59]Read from MH i2c: E2 [19:54:59]MH_I2C_Read... [19:54:59]Read from MH i2c: E2 0E 00 [19:54:59]MH_I2C_Read... [19:54:59]Read from MH i2c: E2 0E 00 42 0C 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 93 [19:54:59]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:54:59]wFMCommunicate OK [19:54:59]SAM_PROTO_GetShiftState done [19:54:59]FM_GetShiftState done [19:54:59]req_shift_opened done [19:54:59]requested_item shift.open_date is exist - process it [19:54:59]req_shift_open_date [19:54:59]req_shift_open_date done [19:54:59]produce_requested_data done [19:54:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67146,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [19:54:59]process_action_free close_receipt [19:54:59]json_value_free [19:54:59]json_value_free done [19:54:59]process_json_proto returns [19:54:59]Send response to host [19:54:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67146,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [19:54:59]free response buf [19:54:59]execute_script done [19:54:59]execute_script returns [19:54:59]free content buf [19:54:59]Sock 7.Close socket [19:54:59]Sock 7.Thread stoped [19:55:01]OFD Sender: No OFD packet to send [19:55:06]OFD Sender: No OFD packet to send [19:55:11]OFD Sender: No OFD packet to send [19:55:16]OFD Sender: No OFD packet to send [19:55:21]OFD Sender: No OFD packet to send [19:55:26]OFD Sender: No OFD packet to send [19:55:31]OFD Sender: No OFD packet to send [19:55:36]OFD Sender: No OFD packet to send [19:55:41]OFD Sender: No OFD packet to send [19:55:46]OFD Sender: No OFD packet to send [19:55:51]OFD Sender: No OFD packet to send [19:55:56]OFD Sender: No OFD packet to send [19:56:02]OFD Sender: No OFD packet to send [19:56:07]OFD Sender: No OFD packet to send [19:56:12]OFD Sender: No OFD packet to send [19:56:17]OFD Sender: No OFD packet to send [19:56:22]OFD Sender: No OFD packet to send [19:56:27]OFD Sender: No OFD packet to send [19:56:32]OFD Sender: No OFD packet to send [19:56:37]OFD Sender: No OFD packet to send [19:56:42]OFD Sender: No OFD packet to send [19:56:47]OFD Sender: No OFD packet to send [19:56:52]OFD Sender: No OFD packet to send [19:56:57]OFD Sender: No OFD packet to send [19:57:02]OFD Sender: No OFD packet to send [19:57:07]OFD Sender: No OFD packet to send [19:57:12]OFD Sender: No OFD packet to send [19:57:17]OFD Sender: No OFD packet to send [19:57:22]OFD Sender: No OFD packet to send [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:42]OFD Sender: No OFD packet to send [19:57:47]OFD Sender: No OFD packet to send [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:57:57]accept exits with 9 [19:57:57]New connection [19:57:57]New thread 3066731876 created [19:57:57]Thread 3066588516 joined [19:57:57]Waiting for new connection... [19:57:57] Sock 9.Parse request [19:57:57]Sock 9.Check first char [19:57:57]Sock 9.First char is OK [19:57:57]request: POST /json_proto HTTP/1.0 [19:57:57]Method: POST [19:57:57]URL: /json_proto [19:57:57]Method is POST - this is cgi request [19:57:57]url: /json_proto [19:57:57]query_string will be loaded in cgi processing [19:57:57]execute_cgi json_proto POST (null) [19:57:57]execute_cgi path=json_proto method=POST [19:57:57]POST find Content-Length [19:57:57]Host: 172.17.41.195:8080 [19:57:57]Content-Length: 800 [19:57:57]Content-Type: application/json [19:57:57] [19:57:57]POST finish read [19:57:57]Found Content-Length = 800 [19:57:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:57]execute_script... [19:57: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)507042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 20.090, "sum" : 1500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:57]POST & json_proto [19:57:57]process_json_proto [19:57:57]json parsed OK: [19:57:57]protocol is kg_v1.0 [19:57:57]action value=close_receipt [19:57:57]process_action close_receipt [19:57:57]cmd_close_receipt [19:57:57]MH_GetDate [19:57:57]Write to MH i2c: F0 00 00 43 0C 3E [19:57:57]Write i2c OK [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: F0 [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: F0 09 00 [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: F0 09 00 43 0C 00 46 C2 43 66 FC 21 6F 64 E8 [19:57:57]GetLastDocTimeStamp 1715716494 [19:57:57]current date 1715716678 [19:57:57]FM_GetShiftState [19:57:57]SAM_PROTO_GetShiftState [19:57:57]wFMCommunicate request_size=4 [19:57:57]MH_SAM_APDU [19:57:57]CAPDU: 80 13 01 00 [19:57:57]Write to MH i2c: E2 08 00 44 0C 80 13 01 00 00 00 00 00 CD [19:57:57]Write i2c OK [19:57:57]MH_I2C_Read... [19:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:57]Read from MH i2c: E2 [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: E2 0E 00 [19:57:57]MH_I2C_Read... [19:57:57]Read from MH i2c: E2 0E 00 44 0C 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 95 [19:57:57]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:57:57]wFMCommunicate OK [19:57:57]SAM_PROTO_GetShiftState done [19:57:57]FM_GetShiftState done [19:57:57]opened in 1715646054 [19:57:57]opened+sec_in_day 1715732454 [19:57:57]quantity*price = 150072 [19:57:57]sum+1 = 150073 [19:57:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.72 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.72 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 154 14.05.2024 19:57 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67147 ФПД: 229079203721796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T195758&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67147&fm=229079203721796&tin=02508201610067®Number=0000000000091845&sum=150072 [19:57:59]StoreToDocumentArchive [19:57:59]shift 355 fd 67147 [19:57:59]save to /storage/0355/doc_00067147 [19:57:59]save last doc name /storage/0355/doc_00067147 to /storage/kkm_last_doc_name [19:57:59]save OK [19:57:59]Clear old archive folders... [19:57:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:57:59]tlvbuf is 0038D310 [19:57:59]SAM_PROTO_ClearQueue [19:57:59]wFMCommunicate request_size=4 [19:57:59]MH_SAM_APDU [19:57:59]CAPDU: 80 09 00 00 [19:57:59]Write to MH i2c: E2 08 00 51 0C 80 09 00 00 00 00 00 00 CF [19:57:59]Write i2c OK [19:57:59]MH_I2C_Read... [19:57:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:59]Read from MH i2c: E2 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: E2 03 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: E2 03 00 51 0C 00 90 00 D1 [19:57:59]RAPDU: 90 00 [19:57:59]wFMCommunicate OK [19:57:59]SAM_PROTO_ClearQueue done [19:57:59]KKMCreateOFDPacket [19:57:59]OFDProtocolAddRootSTLVToBuf [19:57:59]FM_MakeSignedData [19:57:59]FM_MakeSignedData [19:57:59]SAM_PROTO_SignData [19:57:59]wFMCommunicate request_size=4 [19:57:59]MH_SAM_APDU [19:57:59]CAPDU: 80 0D 01 02 [19:57:59]Write to MH i2c: E2 08 00 52 0C 80 0D 01 02 00 00 00 00 D7 [19:57:59]Write i2c OK [19:57:59]MH_I2C_Read... [19:57:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:59]Read from MH i2c: E2 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: E2 03 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: E2 03 00 52 0C 00 90 00 D2 [19:57:59]RAPDU: 90 00 [19:57:59]wFMCommunicate OK [19:57:59]wFMCommunicate request_size=255 [19:57:59]MH_SAM_APDU [19:57:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9A 00 00 00 F4 03 04 00 46 C2 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 D0 58 A8 90 [19:57:59]Write to MH i2c: E2 02 01 53 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 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 9A 00 00 00 F4 03 04 00 46 C2 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 D0 58 A8 90 00 00 ED [19:57:59]Write i2c OK [19:57:59]MH_I2C_Read... [19:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:59]Read from MH i2c: E2 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: E2 03 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: E2 03 00 53 0C 00 90 00 D3 [19:57:59]RAPDU: 90 00 [19:57:59]wFMCommunicate OK [19:57:59]wFMCommunicate request_size=7 [19:57:59]MH_SAM_APDU [19:57:59]CAPDU: 80 0D 02 02 02 32 44 [19:57:59]Write to MH i2c: E2 0A 00 54 0C 80 0D 02 02 02 00 32 44 00 00 54 [19:57:59]Write i2c OK [19:57:59]MH_I2C_Read... [19:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:59]Read from MH i2c: E2 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: E2 03 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: E2 03 00 54 0C 00 90 00 D4 [19:57:59]RAPDU: 90 00 [19:57:59]wFMCommunicate OK [19:57:59]wFMCommunicate request_size=4 [19:57:59]MH_SAM_APDU [19:57:59]CAPDU: 80 0D 03 02 [19:57:59]Write to MH i2c: E2 08 00 55 0C 80 0D 03 02 00 00 00 00 DC [19:57:59]Write i2c OK [19:57:59]MH_I2C_Read... [19:57:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:59]Read from MH i2c: E2 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: E2 0B 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: E2 0B 00 55 0C 00 BC C7 28 B5 23 15 0D 47 90 00 C9 [19:57:59]RAPDU: BC C7 28 B5 23 15 0D 47 90 00 [19:57:59]wFMCommunicate OK [19:57:59]SAM_PROTO_SignData done [19:57:59]FM_MakeSignedData done [19:57:59]CreateOFDProtocolMessage [19:57:59]wFMCommunicate request_size=4 [19:57:59]MH_SAM_APDU [19:57:59]CAPDU: 80 11 00 00 [19:57:59]Write to MH i2c: E2 08 00 56 0C 80 11 00 00 00 00 00 00 DC [19:57:59]Write i2c OK [19:57:59]MH_I2C_Read... [19:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:59]Read from MH i2c: E2 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: E2 17 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: E2 17 00 56 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 32 [19:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:57:59]wFMCommunicate OK [19:57:59]CreateOFDProtocolMessage done [19:57:59]OFDSenderStorePacket 67147 [19:57:59]StoreOFDPacket docnum=67147 [19:57:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 29 DD 04 01 5E 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 9A 00 00 00 F4 03 04 00 46 C2 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 D0 58 A8 90 32 44 BC C7 28 B5 23 15 0D 47 [19:57:59]CheckFolder [19:57:59]dirname=/storage/ofd_packets [19:57:59]CheckFolder done [19:57:59]ProducePacketName [19:57:59]name=ofd_packets/00067147 [19:57:59]NVStorageSaveData ofd_packets/00067147 [19:57:59]File name is /storage/ofd_packets/00067147 [19:57:59]Write 298 bytes [19:57:59]NVStorageSaveData done [19:57:59]OFDSenderStorePacket done [19:57:59]KKMCreateOFDPacket done [19:57:59]NVStorageSaveData kkm_last_timestamp [19:57:59]File name is /storage/kkm_last_timestamp [19:57:59]Write 4 bytes [19:57:59]NVStorageSaveData done [19:57:59]ExternCall_PrintAddStr [19:57:59]wPrintStart [19:57:59]Write to MH i2c: 01 00 00 57 0C 63 [19:57:59]Write i2c OK [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 07 00 [19:57:59]MH_I2C_Read... [19:57:59]Read from MH i2c: 01 07 00 57 0C 00 00 00 00 00 FF 0F 78 [19:57:59]RasterBufferAndPrint [19:57:59]line Счет N : (1)507042 [19:57:59]line ИНН: 02508201610067 [19:57:59]line Контрольно-Кассовый Чек [19:57:59]line ПРОДАЖА [19:57:59]line ТРК (МРК, ГНК) : 31 [19:57:59]line Товар: 2710194210 [19:57:59]line ДТ-К-5 [19:57:59]line 20.090 * 74.70 [19:57:59]line = 1500.72 [19:57:59]line НДС 12% НСП 1% [19:57:59]line > о реализуемом товаре [19:57:59]line ИТОГО: 1500.72 [19:57:59]line НСП 1% : 13.28 [19:57:59]line НДС 12% : 159.37 [19:57:59]line Наличными: 0.00 [19:57:59]line Безнал.: 1500.72 [19:57:59]line Место: АЗС № 91 "Партнер Нефть" [19:57:59]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:57:59]line СНО: Общий режим [19:57:59]line Чек 154 14.05.2024 19:57 [19:57:59]line Смена: 355 ФФД: 1.0 [19:57:59]line ЗНМ: 0300000119 [19:57:59]line РНМ: 0000000000091845 [19:57:59]line Версия ККМ: 001 [19:57:59]line Платежная система: O! деньги [19:57:59]line ФМ: 0000000000871829 [19:57:59]line ФД: 67147 [19:57:59]line ФПД: 229079203721796 [19:57:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T195758&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67147&fm=229079203721796&tin=02508201610067®Number=0000000000091845&sum=150072 [19:57:59]OFD Sender: Processing packet 67147 [packets to send 35, broken 34] [19:57:59]ProducePacketName [19:57:59]name=ofd_packets/00067147 [19:57:59]OFD Sender: To server: pG, [19:57:59]CommunicateWithHost lk.salyk.kg:30040 [19:57:59]ConnectInit lk.salyk.kg [19:57:59]written 0, free lines is 4095 [19:57:59]Connected sock=10 [19:57:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 29 DD 04 01 5E 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 9A 00 00 00 F4 03 04 00 46 C2 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 D0 58 A8 90 32 44 BC C7 28 B5 23 15 0D 47 [19:58: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 41 AE 47 00 D5 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 4B 06 01 00 F4 03 04 00 25 6A 43 66 B6 04 01 00 00 22 E3 14 AD B6 25 B3 71 [19:58:00]CommunicateWithHost err = 0 [19:58:00]CheckOFDResponse [19:58:00]1017 (14) - 77093643461234 [19:58:00]1041 (16) - 0000000000871829 [19:58:00]1040 (4) - 67147 [19:58:00]1012 (4) - 14.05.2024 13:41 [19:58:00]1206 (1) - 0 [19:58:00]OFD Sender: Remove packet 67147 [19:58:00]ProducePacketName [19:58:00]name=ofd_packets/00067147 [19:58:00]NVStorageDeleteData [19:58:00]Write to MH i2c: 01 00 00 80 0C 8C [19:58:00]Write i2c OK [19:58:00]MH_I2C_Read... [19:58:00]Read from MH i2c: 01 [19:58:00]MH_I2C_Read... [19:58:00]Read from MH i2c: 01 07 00 [19:58:00]MH_I2C_Read... [19:58:00]Read from MH i2c: 01 07 00 80 0C 00 00 00 00 00 F5 0C 94 [19:58:00]RasterBufferAndPrint [19:58:00]line [19:58:00]line [19:58:00]line [19:58:00]line [19:58:00]line [19:58:00]written 0, free lines is 3323 [19:58:00]MH_Cut [19:58:00]Write to MH i2c: D1 01 00 87 0C 01 65 [19:58:00]Write i2c OK [19:58:00]MH_I2C_Read... [19:58:00]Read from MH i2c: D1 [19:58:00]MH_I2C_Read... [19:58:00]Read from MH i2c: D1 01 00 [19:58:00]MH_I2C_Read... [19:58:00]Read from MH i2c: D1 01 00 87 0C 00 64 [19:58:00]Write to MH i2c: 01 00 00 88 0C 94 [19:58:00]Write i2c OK [19:58:00]MH_I2C_Read... [19:58:00]OFD Sender: No OFD packet to send [19:58:01]*** Cut start [19:58:01]*** Purtial cut [19:58:01]*** Stage 1: CUTSNS_PIN = 1 [19:58:01]Read from MH i2c: 01 [19:58:01]MH_I2C_Read... [19:58:01]*** Stop cut motor [19:58:01]*** Cut end [19:58:01]Read from MH i2c: 01 07 00 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: 01 07 00 88 0C 00 00 00 00 00 FF 0F A9 [19:58:01]process_action close_receipt done [19:58:01]requested_data is exist [19:58:01]produce_requested_data [19:58:01]requested_item fm.sn is exist - process it [19:58:01]wFMCommunicate request_size=4 [19:58:01]MH_SAM_APDU [19:58:01]CAPDU: 80 11 00 00 [19:58:01]Write to MH i2c: E2 08 00 89 0C 80 11 00 00 00 00 00 00 0F [19:58:01]Write i2c OK [19:58:01]MH_I2C_Read... [19:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:01]Read from MH i2c: E2 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 17 00 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 17 00 89 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 65 [19:58:01]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:01]wFMCommunicate OK [19:58:01]requested_item fd.num is exist - process it [19:58:01]SAM_PROTO_GetFieldsCounters [19:58:01]wFMCommunicate request_size=4 [19:58:01]MH_SAM_APDU [19:58:01]CAPDU: 80 13 00 00 [19:58:01]Write to MH i2c: E2 08 00 8A 0C 80 13 00 00 00 00 00 00 12 [19:58:01]Write i2c OK [19:58:01]MH_I2C_Read... [19:58:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:01]Read from MH i2c: E2 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 62 00 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 62 00 8A 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 4B 06 01 00 0E 04 04 00 63 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 BC [19:58: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 4B 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:58:01]wFMCommunicate OK [19:58:01]SAM_PROTO_GetFieldsCounters done [19:58:01]requested_item shift.num is exist - process it [19:58:01]requested_item shift.opened is exist - process it [19:58:01]req_shift_opened [19:58:01]FM_GetShiftState [19:58:01]SAM_PROTO_GetShiftState [19:58:01]wFMCommunicate request_size=4 [19:58:01]MH_SAM_APDU [19:58:01]CAPDU: 80 13 01 00 [19:58:01]Write to MH i2c: E2 08 00 8B 0C 80 13 01 00 00 00 00 00 14 [19:58:01]Write i2c OK [19:58:01]MH_I2C_Read... [19:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:01]Read from MH i2c: E2 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 0E 00 [19:58:01]MH_I2C_Read... [19:58:01]Read from MH i2c: E2 0E 00 8B 0C 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 DC [19:58:01]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:58:01]wFMCommunicate OK [19:58:01]SAM_PROTO_GetShiftState done [19:58:01]FM_GetShiftState done [19:58:01]req_shift_opened done [19:58:01]requested_item shift.open_date is exist - process it [19:58:01]req_shift_open_date [19:58:01]req_shift_open_date done [19:58:01]produce_requested_data done [19:58:01]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67147,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [19:58:01]process_action_free close_receipt [19:58:01]json_value_free [19:58:01]json_value_free done [19:58:01]process_json_proto returns [19:58:01]Send response to host [19:58:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67147,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [19:58:01]free response buf [19:58:01]execute_script done [19:58:01]execute_script returns [19:58:01]free content buf [19:58:01]Sock 9.Close socket [19:58:01]Sock 9.Thread stoped [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:25]accept exits with 7 [19:58:25]New connection [19:58:25]New thread 3066588516 created [19:58:25]Thread 3066731876 joined [19:58:25]Waiting for new connection... [19:58:25] Sock 7.Parse request [19:58:25]Sock 7.Check first char [19:58:25]Sock 7.First char is OK [19:58:25]request: POST /json_proto HTTP/1.0 [19:58:25]Method: POST [19:58:25]URL: /json_proto [19:58:25]Method is POST - this is cgi request [19:58:25]url: /json_proto [19:58:25]query_string will be loaded in cgi processing [19:58:25]execute_cgi json_proto POST (null) [19:58:25]execute_cgi path=json_proto method=POST [19:58:25]POST find Content-Length [19:58:25]Host: 172.17.41.195:8080 [19:58:25]Content-Length: 1144 [19:58:25]Content-Type: application/json [19:58:25] [19:58:25]POST finish read [19:58:25]Found Content-Length = 1144 [19:58: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)507041\u000A14.05.2024 19:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 3340.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30146452\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:25]execute_script... [19:58: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)507041\u000A14.05.2024 19:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 3340.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30146452\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:25]POST & json_proto [19:58:25]process_json_proto [19:58:25]json parsed OK: [19:58:25]protocol is kg_v1.0 [19:58:25]action value=print_text [19:58:25]process_action print_text [19:58:25]cmd_print_text [19:58:25]ExternCall_PrintAddStr [19:58:25]wPrintStart [19:58:25]Write to MH i2c: 01 00 00 8C 0C 98 [19:58:25]Write i2c OK [19:58:25]MH_I2C_Read... [19:58:25]Read from MH i2c: 01 [19:58:25]MH_I2C_Read... [19:58:25]Read from MH i2c: 01 07 00 [19:58:25]MH_I2C_Read... [19:58:25]Read from MH i2c: 01 07 00 8C 0C 00 00 00 00 00 FF 0F AD [19:58:25]RasterBufferAndPrint [19:58:25]line *****ТОВАРНЫЙ ЧЕК***** [19:58:25]line АЗС-91 [19:58:25]line Партнер нефть [19:58:25]line 02508201610067 [19:58:25]line Кассир : Адишов И. [19:58:25]line Счет N : (1)507041 [19:58:25]line 14.05.2024 19:41 [19:58:25]line ПРОДАЖА [19:58:25]line ТРК (МРК, ГНК): 43 [19:58:25]line Вид ГСМ : 2710124130 [19:58:25]line Аи-92-К-5 [19:58:25]line 50.000 x 66.80 [19:58:25]line ИТОГ: 3340.00 [19:58:25]line Тип оплаты: Талоны: ТК ГПНА Online [19:58:25]line 30146452 [19:58:25]line ______________________ [19:58:25]line (подпись) [19:58:25]written 0, free lines is 4095 [19:58:26]Write to MH i2c: 01 00 00 A0 0C AC [19:58:26]Write i2c OK [19:58:26]MH_I2C_Read... [19:58:26]Read from MH i2c: 01 [19:58:26]MH_I2C_Read... [19:58:26]Read from MH i2c: 01 07 00 [19:58:26]MH_I2C_Read... [19:58:26]Read from MH i2c: 01 07 00 A0 0C 00 00 00 00 00 0F 0E D0 [19:58:26]RasterBufferAndPrint [19:58:26]line [19:58:26]line [19:58:26]line [19:58:26]line [19:58:26]line [19:58:26]written 0, free lines is 3600 [19:58:26]MH_Cut [19:58:26]Write to MH i2c: D1 01 00 A7 0C 01 85 [19:58:26]Write i2c OK [19:58:26]MH_I2C_Read... [19:58:26]Read from MH i2c: D1 [19:58:26]MH_I2C_Read... [19:58:26]Read from MH i2c: D1 01 00 [19:58:26]MH_I2C_Read... [19:58:26]Read from MH i2c: D1 01 00 A7 0C 00 84 [19:58:26]Write to MH i2c: 01 00 00 A8 0C B4 [19:58:26]Write i2c OK [19:58:26]MH_I2C_Read... [19:58:26]*** Cut start [19:58:26]*** Purtial cut [19:58:26]*** CUTSNS_PIN = 0 [19:58:26]*** Stage 1: CUTSNS_PIN = 1 [19:58:28]Read from MH i2c: 01 [19:58:28]MH_I2C_Read... [19:58:28]*** Stop cut motor [19:58:28]*** Cut end [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 A8 0C 00 00 00 00 00 FF 0F C9 [19:58:28]process_action print_text done [19:58:28]requested_data is exist [19:58:28]produce_requested_data [19:58:28]requested_item fm.sn is exist - process it [19:58:28]wFMCommunicate request_size=4 [19:58:28]MH_SAM_APDU [19:58:28]CAPDU: 80 11 00 00 [19:58:28]Write to MH i2c: E2 08 00 A9 0C 80 11 00 00 00 00 00 00 2F [19:58:28]Write i2c OK [19:58:28]MH_I2C_Read... [19:58:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:28]Read from MH i2c: E2 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: E2 17 00 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: E2 17 00 A9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 85 [19:58:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:58:28]wFMCommunicate OK [19:58:28]requested_item fd.num is exist - process it [19:58:28]SAM_PROTO_GetFieldsCounters [19:58:28]wFMCommunicate request_size=4 [19:58:28]MH_SAM_APDU [19:58:28]CAPDU: 80 13 00 00 [19:58:28]Write to MH i2c: E2 08 00 AA 0C 80 13 00 00 00 00 00 00 32 [19:58:28]Write i2c OK [19:58:28]MH_I2C_Read... [19:58:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:28]Read from MH i2c: E2 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: E2 62 00 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: E2 62 00 AA 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 4B 06 01 00 0E 04 04 00 63 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 DC [19:58: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 4B 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:58:28]wFMCommunicate OK [19:58:28]SAM_PROTO_GetFieldsCounters done [19:58:28]requested_item shift.num is exist - process it [19:58:28]requested_item shift.opened is exist - process it [19:58:28]req_shift_opened [19:58:28]FM_GetShiftState [19:58:28]SAM_PROTO_GetShiftState [19:58:28]wFMCommunicate request_size=4 [19:58:28]MH_SAM_APDU [19:58:28]CAPDU: 80 13 01 00 [19:58:28]Write to MH i2c: E2 08 00 AB 0C 80 13 01 00 00 00 00 00 34 [19:58:28]Write i2c OK [19:58:28]MH_I2C_Read... [19:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:28]Read from MH i2c: E2 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: E2 0E 00 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: E2 0E 00 AB 0C 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 FC [19:58:28]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:58:28]wFMCommunicate OK [19:58:28]SAM_PROTO_GetShiftState done [19:58:28]FM_GetShiftState done [19:58:28]req_shift_opened done [19:58:28]requested_item shift.open_date is exist - process it [19:58:28]req_shift_open_date [19:58:28]req_shift_open_date done [19:58:28]produce_requested_data done [19:58:28]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67147,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [19:58:28]process_action_free print_text [19:58:28]json_value_free [19:58:28]json_value_free done [19:58:28]process_json_proto returns [19:58:28]Send response to host [19:58:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67147,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [19:58:28]free response buf [19:58:28]execute_script done [19:58:28]execute_script returns [19:58:28]free content buf [19:58:28]Sock 7.Close socket [19:58:28]Sock 7.Thread stoped [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:39]accept exits with 9 [19:59:39]New connection [19:59:39]New thread 3066731876 created [19:59:39]Thread 3066588516 joined [19:59:39]Waiting for new connection... [19:59:39] Sock 9.Parse request [19:59:39]Sock 9.Check first char [19:59:39]Sock 9.First char is OK [19:59:39]request: POST /json_proto HTTP/1.0 [19:59:39]Method: POST [19:59:39]URL: /json_proto [19:59:39]Method is POST - this is cgi request [19:59:39]url: /json_proto [19:59:39]query_string will be loaded in cgi processing [19:59:39]execute_cgi json_proto POST (null) [19:59:39]execute_cgi path=json_proto method=POST [19:59:39]POST find Content-Length [19:59:39]Host: 172.17.41.195:8080 [19:59:39]Content-Length: 677 [19:59:39]Content-Type: application/json [19:59:39] [19:59:39]POST finish read [19:59:39]Found Content-Length = 677 [19:59:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507043", "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" ] } } [19:59:39]execute_script... [19:59: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)507043", "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" ] } } [19:59:39]POST & json_proto [19:59:39]process_json_proto [19:59:39]json parsed OK: [19:59:39]protocol is kg_v1.0 [19:59:39]action value=close_receipt [19:59:39]process_action close_receipt [19:59:39]cmd_close_receipt [19:59:39]MH_GetDate [19:59:39]Write to MH i2c: F0 00 00 AC 0C A7 [19:59:39]Write i2c OK [19:59:39]MH_I2C_Read... [19:59:39]Read from MH i2c: F0 [19:59:39]MH_I2C_Read... [19:59:39]Read from MH i2c: F0 09 00 [19:59:39]MH_I2C_Read... [19:59:39]Read from MH i2c: F0 09 00 AC 0C 00 AB C2 43 66 FC 21 6F 64 B6 [19:59:39]GetLastDocTimeStamp 1715716678 [19:59:39]current date 1715716779 [19:59:39]FM_GetShiftState [19:59:39]SAM_PROTO_GetShiftState [19:59:39]wFMCommunicate request_size=4 [19:59:39]MH_SAM_APDU [19:59:39]CAPDU: 80 13 01 00 [19:59:39]Write to MH i2c: E2 08 00 AD 0C 80 13 01 00 00 00 00 00 36 [19:59:39]Write i2c OK [19:59:39]MH_I2C_Read... [19:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:39]Read from MH i2c: E2 [19:59:39]MH_I2C_Read... [19:59:39]Read from MH i2c: E2 0E 00 [19:59:39]MH_I2C_Read... [19:59:39]Read from MH i2c: E2 0E 00 AD 0C 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 FE [19:59:39]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:59:39]wFMCommunicate OK [19:59:39]SAM_PROTO_GetShiftState done [19:59:39]FM_GetShiftState done [19:59:39]opened in 1715646054 [19:59:39]opened+sec_in_day 1715732454 [19:59:39]quantity*price = 50033 [19:59:39]sum+1 = 50034 [19:59:39]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 СНО: Общий режим Чек 155 14.05.2024 19:59 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67148 ФПД: 174651875623332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T195939&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67148&fm=174651875623332&tin=02508201610067®Number=0000000000091845&sum=50000 [19:59:40]StoreToDocumentArchive [19:59:40]shift 355 fd 67148 [19:59:40]save to /storage/0355/doc_00067148 [19:59:40]save last doc name /storage/0355/doc_00067148 to /storage/kkm_last_doc_name [19:59:40]save OK [19:59:40]Clear old archive folders... [19:59:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:59:40]tlvbuf is 00351FD0 [19:59:40]SAM_PROTO_ClearQueue [19:59:40]wFMCommunicate request_size=4 [19:59:40]MH_SAM_APDU [19:59:40]CAPDU: 80 09 00 00 [19:59:40]Write to MH i2c: E2 08 00 BA 0C 80 09 00 00 00 00 00 00 38 [19:59:40]Write i2c OK [19:59:40]MH_I2C_Read... [19:59:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:59:40]Read from MH i2c: E2 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 03 00 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 03 00 BA 0C 00 90 00 3A [19:59:40]RAPDU: 90 00 [19:59:40]wFMCommunicate OK [19:59:40]SAM_PROTO_ClearQueue done [19:59:40]KKMCreateOFDPacket [19:59:40]OFDProtocolAddRootSTLVToBuf [19:59:40]FM_MakeSignedData [19:59:40]FM_MakeSignedData [19:59:40]SAM_PROTO_SignData [19:59:40]wFMCommunicate request_size=4 [19:59:40]MH_SAM_APDU [19:59:40]CAPDU: 80 0D 01 02 [19:59:40]Write to MH i2c: E2 08 00 BB 0C 80 0D 01 02 00 00 00 00 40 [19:59:40]Write i2c OK [19:59:40]MH_I2C_Read... [19:59:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:59:40]Read from MH i2c: E2 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 03 00 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 03 00 BB 0C 00 90 00 3B [19:59:40]RAPDU: 90 00 [19:59:40]wFMCommunicate OK [19:59:40]wFMCommunicate request_size=255 [19:59:40]MH_SAM_APDU [19:59: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 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 9B 00 00 00 F4 03 04 00 AB C2 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 9E [19:59:40]Write to MH i2c: E2 02 01 BC 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 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 9B 00 00 00 F4 03 04 00 AB C2 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 9E 00 00 D1 [19:59:40]Write i2c OK [19:59:40]MH_I2C_Read... [19:59:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:40]Read from MH i2c: E2 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 03 00 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 03 00 BC 0C 00 90 00 3C [19:59:40]RAPDU: 90 00 [19:59:40]wFMCommunicate OK [19:59:40]wFMCommunicate request_size=10 [19:59:40]MH_SAM_APDU [19:59:40]CAPDU: 80 0D 02 02 05 D8 4F 01 81 A4 [19:59:40]Write to MH i2c: E2 0D 00 BD 0C 80 0D 02 02 05 00 D8 4F 01 81 A4 00 00 9A [19:59:40]Write i2c OK [19:59:40]MH_I2C_Read... [19:59:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:40]Read from MH i2c: E2 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 03 00 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 03 00 BD 0C 00 90 00 3D [19:59:40]RAPDU: 90 00 [19:59:40]wFMCommunicate OK [19:59:40]wFMCommunicate request_size=4 [19:59:40]MH_SAM_APDU [19:59:40]CAPDU: 80 0D 03 02 [19:59:40]Write to MH i2c: E2 08 00 BE 0C 80 0D 03 02 00 00 00 00 45 [19:59:40]Write i2c OK [19:59:40]MH_I2C_Read... [19:59:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:59:40]Read from MH i2c: E2 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 0B 00 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 0B 00 BE 0C 00 E7 8B 30 37 20 81 EC C0 90 00 6C [19:59:40]RAPDU: E7 8B 30 37 20 81 EC C0 90 00 [19:59:40]wFMCommunicate OK [19:59:40]SAM_PROTO_SignData done [19:59:40]FM_MakeSignedData done [19:59:40]CreateOFDProtocolMessage [19:59:40]wFMCommunicate request_size=4 [19:59:40]MH_SAM_APDU [19:59:40]CAPDU: 80 11 00 00 [19:59:40]Write to MH i2c: E2 08 00 BF 0C 80 11 00 00 00 00 00 00 45 [19:59:40]Write i2c OK [19:59:40]MH_I2C_Read... [19:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:40]Read from MH i2c: E2 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 17 00 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 17 00 BF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9B [19:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:59:40]wFMCommunicate OK [19:59:40]CreateOFDProtocolMessage done [19:59:40]OFDSenderStorePacket 67148 [19:59:40]StoreOFDPacket docnum=67148 [19:59: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 03 E9 07 01 09 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9B 00 00 00 F4 03 04 00 AB C2 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 9E D8 4F 01 81 A4 E7 8B 30 37 20 81 EC C0 [19:59:40]CheckFolder [19:59:40]dirname=/storage/ofd_packets [19:59:40]CheckFolder done [19:59:40]ProducePacketName [19:59:40]name=ofd_packets/00067148 [19:59:40]NVStorageSaveData ofd_packets/00067148 [19:59:40]File name is /storage/ofd_packets/00067148 [19:59:40]Write 301 bytes [19:59:40]NVStorageSaveData done [19:59:40]OFDSenderStorePacket done [19:59:40]KKMCreateOFDPacket done [19:59:40]NVStorageSaveData kkm_last_timestamp [19:59:40]File name is /storage/kkm_last_timestamp [19:59:40]Write 4 bytes [19:59:40]NVStorageSaveData done [19:59:40]ExternCall_PrintAddStr [19:59:40]wPrintStart [19:59:40]Write to MH i2c: 01 00 00 C0 0C CC [19:59:40]Write i2c OK [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: 01 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: 01 07 00 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: 01 07 00 C0 0C 00 00 00 00 00 FF 0F E1 [19:59:40]RasterBufferAndPrint [19:59:40]line Счет N : (1)507043 [19:59:40]line ИНН: 02508201610067 [19:59:40]line Контрольно-Кассовый Чек [19:59:40]line ПРОДАЖА [19:59:40]line ТРК (МРК, ГНК) : 13 [19:59:40]line Товар: 2710124130 [19:59:40]line Аи-92-К-5 [19:59:40]line 7.490 * 66.80 [19:59:40]line = 500.33 [19:59:40]line НДС 12% НСП 1% [19:59:40]line > о реализуемом товаре [19:59:40]line ОКРУГЛЕНИЕ: -0.33 [19:59:40]line ИТОГО: 500.00 [19:59:40]line Внесено: 500.00 [19:59:40]line СДАЧА: 0.00 [19:59:40]line НСП 1% : 4.43 [19:59:40]line НДС 12% : 53.13 [19:59:40]line Наличными: 500.00 [19:59:40]line Безнал.: 0.00 [19:59:40]line Место: АЗС № 91 "Партнер Нефть" [19:59:40]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [19:59:40]line СНО: Общий режим [19:59:40]line Чек 155 14.05.2024 19:59 [19:59:40]line Смена: 355 ФФД: 1.0 [19:59:40]line ЗНМ: 0300000119 [19:59:40]line РНМ: 0000000000091845 [19:59:40]line Версия ККМ: 001 [19:59:40]line ФМ: 0000000000871829 [19:59:40]line ФД: 67148 [19:59:40]line ФПД: 174651875623332 [19:59:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T195939&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67148&fm=174651875623332&tin=02508201610067®Number=0000000000091845&sum=50000 [19:59:41]written 0, free lines is 4095 [19:59:41]OFD Sender: Processing packet 67148 [packets to send 35, broken 34] [19:59:41]ProducePacketName [19:59:41]name=ofd_packets/00067148 [19:59:41]OFD Sender: To server: pG, [19:59:41]CommunicateWithHost lk.salyk.kg:30040 [19:59:41]ConnectInit lk.salyk.kg [19:59:41]Connected sock=11 [19:59: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 03 E9 07 01 09 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9B 00 00 00 F4 03 04 00 AB C2 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 9E D8 4F 01 81 A4 E7 8B 30 37 20 81 EC C0 [19:59: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 A7 2D 47 00 FE 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4C 06 01 00 F4 03 04 00 8A 6A 43 66 B6 04 01 00 00 60 34 4D D2 5B 47 25 1A [19:59:41]CommunicateWithHost err = 0 [19:59:41]CheckOFDResponse [19:59:41]1017 (14) - 77093643461234 [19:59:41]1041 (16) - 0000000000871829 [19:59:41]1040 (4) - 67148 [19:59:41]1012 (4) - 14.05.2024 13:43 [19:59:41]1206 (1) - 0 [19:59:41]OFD Sender: Remove packet 67148 [19:59:41]ProducePacketName [19:59:41]name=ofd_packets/00067148 [19:59:41]NVStorageDeleteData [19:59:41]Write to MH i2c: 01 00 00 EA 0C F6 [19:59:41]Write i2c OK [19:59:41]MH_I2C_Read... [19:59:41]Read from MH i2c: 01 [19:59:41]MH_I2C_Read... [19:59:41]Read from MH i2c: 01 07 00 [19:59:41]MH_I2C_Read... [19:59:41]Read from MH i2c: 01 07 00 EA 0C 00 00 00 00 00 D6 0C DF [19:59:41]RasterBufferAndPrint [19:59:41]line [19:59:41]line [19:59:41]line [19:59:41]line [19:59:41]line [19:59:41]written 0, free lines is 3292 [19:59:41]MH_Cut [19:59:41]Write to MH i2c: D1 01 00 F1 0C 01 CF [19:59:41]Write i2c OK [19:59:41]MH_I2C_Read... [19:59:41]Read from MH i2c: D1 [19:59:41]MH_I2C_Read... [19:59:41]Read from MH i2c: D1 01 00 [19:59:41]MH_I2C_Read... [19:59:41]Read from MH i2c: D1 01 00 F1 0C 00 CE [19:59:41]Write to MH i2c: 01 00 00 F2 0C FE [19:59:41]Write i2c OK [19:59:41]MH_I2C_Read... [19:59:41]OFD Sender: No OFD packet to send [19:59:42]*** Cut start [19:59:42]*** Purtial cut [19:59:42]*** Stage 1: CUTSNS_PIN = 1 [19:59:42]Read from MH i2c: 01 [19:59:42]MH_I2C_Read... [19:59:42]*** Stop cut motor [19:59:42]*** Cut end [19:59:42]Read from MH i2c: 01 07 00 [19:59:42]MH_I2C_Read... [19:59:42]Read from MH i2c: 01 07 00 F2 0C 00 00 00 00 00 FF 0F 13 [19:59:42]process_action close_receipt done [19:59:42]requested_data is exist [19:59:42]produce_requested_data [19:59:42]requested_item fm.sn is exist - process it [19:59:42]wFMCommunicate request_size=4 [19:59:42]MH_SAM_APDU [19:59:42]CAPDU: 80 11 00 00 [19:59:42]Write to MH i2c: E2 08 00 F3 0C 80 11 00 00 00 00 00 00 79 [19:59:42]Write i2c OK [19:59:42]MH_I2C_Read... [19:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:42]Read from MH i2c: E2 [19:59:42]MH_I2C_Read... [19:59:42]Read from MH i2c: E2 17 00 [19:59:42]MH_I2C_Read... [19:59:42]Read from MH i2c: E2 17 00 F3 0C 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:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [19:59:42]wFMCommunicate OK [19:59:42]requested_item fd.num is exist - process it [19:59:42]SAM_PROTO_GetFieldsCounters [19:59:42]wFMCommunicate request_size=4 [19:59:42]MH_SAM_APDU [19:59:42]CAPDU: 80 13 00 00 [19:59:42]Write to MH i2c: E2 08 00 F4 0C 80 13 00 00 00 00 00 00 7C [19:59:42]Write i2c OK [19:59:42]MH_I2C_Read... [19:59:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:59:42]Read from MH i2c: E2 [19:59:42]MH_I2C_Read... [19:59:42]Read from MH i2c: E2 62 00 [19:59:42]MH_I2C_Read... [19:59:42]Read from MH i2c: E2 62 00 F4 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 4C 06 01 00 0E 04 04 00 63 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 2A [19:59: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 4C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:59:42]wFMCommunicate OK [19:59:42]SAM_PROTO_GetFieldsCounters done [19:59:42]requested_item shift.num is exist - process it [19:59:42]requested_item shift.opened is exist - process it [19:59:42]req_shift_opened [19:59:42]FM_GetShiftState [19:59:42]SAM_PROTO_GetShiftState [19:59:42]wFMCommunicate request_size=4 [19:59:42]MH_SAM_APDU [19:59:42]CAPDU: 80 13 01 00 [19:59:42]Write to MH i2c: E2 08 00 F5 0C 80 13 01 00 00 00 00 00 7E [19:59:42]Write i2c OK [19:59:42]MH_I2C_Read... [19:59:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:42]Read from MH i2c: E2 [19:59:42]MH_I2C_Read... [19:59:42]Read from MH i2c: E2 0E 00 [19:59:42]MH_I2C_Read... [19:59:42]Read from MH i2c: E2 0E 00 F5 0C 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 46 [19:59:42]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [19:59:42]wFMCommunicate OK [19:59:42]SAM_PROTO_GetShiftState done [19:59:42]FM_GetShiftState done [19:59:42]req_shift_opened done [19:59:42]requested_item shift.open_date is exist - process it [19:59:42]req_shift_open_date [19:59:42]req_shift_open_date done [19:59:42]produce_requested_data done [19:59:42]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67148,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [19:59:42]process_action_free close_receipt [19:59:42]json_value_free [19:59:42]json_value_free done [19:59:42]process_json_proto returns [19:59:42]Send response to host [19:59:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67148,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [19:59:42]free response buf [19:59:42]execute_script done [19:59:42]execute_script returns [19:59:42]free content buf [19:59:42]Sock 9.Close socket [19:59:42]Sock 9.Thread stoped [19:59:46]OFD Sender: No OFD packet to send [19:59:51]OFD Sender: No OFD packet to send [19:59:54]int [19:59:54]Write to MH i2c: 01 00 00 F6 0C 02 [19:59:54]*** FLAG_PRN_PAP1 set [19:59:54]Write i2c OK [19:59:54]MH_I2C_Read... [19:59:54]Read from MH i2c: 01 [19:59:54]MH_I2C_Read... [19:59:54]Read from MH i2c: 01 07 00 [19:59:54]MH_I2C_Read... [19:59:54]Read from MH i2c: 01 07 00 F6 0C 00 01 00 00 00 FF 0F 18 [19:59:54]state=0 [19:59:54]No paper [19:59:54]int [19:59:54]Write to MH i2c: 01 00 00 F7 0C 03 [19:59:54]*** FLAG_PRN_PAP2 set [19:59:54]Write i2c OK [19:59:54]MH_I2C_Read... [19:59:54]Read from MH i2c: 01 [19:59:54]MH_I2C_Read... [19:59:54]Read from MH i2c: 01 07 00 [19:59:54]MH_I2C_Read... [19:59:54]Read from MH i2c: 01 07 00 F7 0C 00 03 00 00 00 FF 0F 1B [19:59:54]state=0 [19:59:54]No paper [19:59:54]Cover opened [19:59:56]OFD Sender: No OFD packet to send [19:59:59]Write to MH i2c: 01 00 00 F8 0C 04 [19:59:59]Write i2c OK [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: 01 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: 01 07 00 [19:59:59]MH_I2C_Read... [19:59:59]Read from MH i2c: 01 07 00 F8 0C 00 03 00 00 00 FF 0F 1C [19:59:59]state=3 [19:59:59]No paper [19:59:59]Cover opened [20:00:01]OFD Sender: No OFD packet to send [20:00:04]Write to MH i2c: 01 00 00 F9 0C 05 [20:00:04]Write i2c OK [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: 01 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: 01 07 00 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: 01 07 00 F9 0C 00 03 00 00 00 FF 0F 1D [20:00:04]state=3 [20:00:04]No paper [20:00:04]Cover opened [20:00:06]OFD Sender: No OFD packet to send [20:00:09]Write to MH i2c: 01 00 00 FA 0C 06 [20:00:09]Write i2c OK [20:00:09]MH_I2C_Read... [20:00:09]Read from MH i2c: 01 [20:00:09]MH_I2C_Read... [20:00:09]Read from MH i2c: 01 07 00 [20:00:09]MH_I2C_Read... [20:00:09]Read from MH i2c: 01 07 00 FA 0C 00 03 00 00 00 FF 0F 1E [20:00:09]state=3 [20:00:09]No paper [20:00:09]Cover opened [20:00:11]int [20:00:11]Write to MH i2c: 01 00 00 FB 0C 07 [20:00:11]Write i2c OK [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: 01 [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: 01 07 00 [20:00:11]MH_I2C_Read... [20:00:11]*** FLAG_PRN_PAP1 reset [20:00:11]*** FLAG_PRN_PAP2 reset [20:00:11]Read from MH i2c: 01 07 00 FB 0C 00 00 00 00 00 FF 0F 1C [20:00:11]state=3 [20:00:11]Cover closed [20:00:11]OFD Sender: No OFD packet to send [20:00:16]OFD Sender: No OFD packet to send [20:00:21]OFD Sender: No OFD packet to send [20:00:26]OFD Sender: No OFD packet to send [20:00:31]OFD Sender: No OFD packet to send [20:00:36]OFD Sender: No OFD packet to send [20:00:41]OFD Sender: No OFD packet to send [20:00:46]OFD Sender: No OFD packet to send [20:00:51]OFD Sender: No OFD packet to send [20:00:56]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:42]OFD Sender: No OFD packet to send [20:01:47]OFD Sender: No OFD packet to send [20:01:52]OFD Sender: No OFD packet to send [20:01:57]OFD Sender: No OFD packet to send [20:02:02]OFD Sender: No OFD packet to send [20:02:07]OFD Sender: No OFD packet to send [20:02:12]OFD Sender: No OFD packet to send [20:02:17]OFD Sender: No OFD packet to send [20:02:22]OFD Sender: No OFD packet to send [20:02:27]OFD Sender: No OFD packet to send [20:02:32]OFD Sender: No OFD packet to send [20:02:37]OFD Sender: No OFD packet to send [20:02:42]OFD Sender: No OFD packet to send [20:02:47]OFD Sender: No OFD packet to send [20:02:52]OFD Sender: No OFD packet to send [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:42]OFD Sender: No OFD packet to send [20:05:47]OFD Sender: No OFD packet to send [20:05:52]OFD Sender: No OFD packet to send [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:48]recv_with_timeout no data received [20:07:52]OFD Sender: No OFD packet to send [20:07:57]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:12]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:57]OFD Sender: No OFD packet to send [20:10:02]OFD Sender: No OFD packet to send [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:47]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:13]accept exits with 7 [20:11:13]New connection [20:11:13]New thread 3066588516 created [20:11:13]Thread 3066731876 joined [20:11:13]Waiting for new connection... [20:11:13] Sock 7.Parse request [20:11:13]Sock 7.Check first char [20:11:13]Sock 7.First char is OK [20:11:13]request: POST /json_proto HTTP/1.0 [20:11:13]Method: POST [20:11:13]URL: /json_proto [20:11:13]Method is POST - this is cgi request [20:11:13]url: /json_proto [20:11:13]query_string will be loaded in cgi processing [20:11:13]execute_cgi json_proto POST (null) [20:11:13]execute_cgi path=json_proto method=POST [20:11:13]POST find Content-Length [20:11:13]Host: 172.17.41.195:8080 [20:11:13]Content-Length: 215 [20:11:13]Content-Type: application/json [20:11:13] [20:11:13]POST finish read [20:11:13]Found Content-Length = 215 [20:11:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:13]execute_script... [20:11:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:13]POST & json_proto [20:11:13]process_json_proto [20:11:13]json parsed OK: [20:11:13]protocol is kg_v1.0 [20:11:13]action value=get_value [20:11:13]process_action get_value [20:11:13]cmd_get_value [20:11:13]process_action get_value done [20:11:13]requested_data is exist [20:11:13]produce_requested_data [20:11:13]requested_item kkm.sn is exist - process it [20:11:13]requested_item kkm.ver is exist - process it [20:11:13]requested_item fm.sn is exist - process it [20:11:13]wFMCommunicate request_size=4 [20:11:13]MH_SAM_APDU [20:11:13]CAPDU: 80 11 00 00 [20:11:13]Write to MH i2c: E2 08 00 FC 0C 80 11 00 00 00 00 00 00 82 [20:11:13]Write i2c OK [20:11:13]MH_I2C_Read... [20:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:13]Read from MH i2c: E2 [20:11:13]MH_I2C_Read... [20:11:13]Read from MH i2c: E2 17 00 [20:11:13]MH_I2C_Read... [20:11:13]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:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:11:13]wFMCommunicate OK [20:11:13]requested_item fd.num is exist - process it [20:11:13]SAM_PROTO_GetFieldsCounters [20:11:13]wFMCommunicate request_size=4 [20:11:13]MH_SAM_APDU [20:11:13]CAPDU: 80 13 00 00 [20:11:13]Write to MH i2c: E2 08 00 FD 0C 80 13 00 00 00 00 00 00 85 [20:11:13]Write i2c OK [20:11:13]MH_I2C_Read... [20:11:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:13]Read from MH i2c: E2 [20:11:13]MH_I2C_Read... [20:11:13]Read from MH i2c: E2 62 00 [20:11:13]MH_I2C_Read... [20:11:13]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 4C 06 01 00 0E 04 04 00 63 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 33 [20:11: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 4C 06 01 00 0E 04 04 00 63 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 [20:11:13]wFMCommunicate OK [20:11:13]SAM_PROTO_GetFieldsCounters done [20:11:13]requested_item shift.num is exist - process it [20:11:13]requested_item shift.opened is exist - process it [20:11:13]req_shift_opened [20:11:13]FM_GetShiftState [20:11:13]SAM_PROTO_GetShiftState [20:11:13]wFMCommunicate request_size=4 [20:11:13]MH_SAM_APDU [20:11:13]CAPDU: 80 13 01 00 [20:11:13]Write to MH i2c: E2 08 00 FE 0C 80 13 01 00 00 00 00 00 87 [20:11:13]Write i2c OK [20:11:13]MH_I2C_Read... [20:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:13]Read from MH i2c: E2 [20:11:13]MH_I2C_Read... [20:11:13]Read from MH i2c: E2 0E 00 [20:11:13]MH_I2C_Read... [20:11:13]Read from MH i2c: E2 0E 00 FE 0C 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 4F [20:11:13]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:11:13]wFMCommunicate OK [20:11:13]SAM_PROTO_GetShiftState done [20:11:13]FM_GetShiftState done [20:11:13]req_shift_opened done [20:11:13]requested_item shift.open_date is exist - process it [20:11:13]req_shift_open_date [20:11:13]req_shift_open_date done [20:11:13]produce_requested_data done [20:11:13]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67148,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [20:11:13]process_action_free get_value [20:11:13]json_value_free [20:11:13]json_value_free done [20:11:13]process_json_proto returns [20:11:13]Send response to host [20:11:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67148,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [20:11:13]free response buf [20:11:13]execute_script done [20:11:13]execute_script returns [20:11:13]free content buf [20:11:13]Sock 7.Close socket [20:11:13]Sock 7.Thread stoped [20:11:13]accept exits with 9 [20:11:13]New connection [20:11:13]New thread 3066731876 created [20:11:13]Thread 3066588516 joined [20:11:13]Waiting for new connection... [20:11:13] Sock 9.Parse request [20:11:13]Sock 9.Check first char [20:11:13]Sock 9.First char is OK [20:11:13]request: POST /json_proto HTTP/1.0 [20:11:13]Method: POST [20:11:13]URL: /json_proto [20:11:13]Method is POST - this is cgi request [20:11:13]url: /json_proto [20:11:13]query_string will be loaded in cgi processing [20:11:13]execute_cgi json_proto POST (null) [20:11:13]execute_cgi path=json_proto method=POST [20:11:13]POST find Content-Length [20:11:13]Host: 172.17.41.195:8080 [20:11:13]Content-Length: 331 [20:11:13]Content-Type: application/json [20:11:13] [20:11:13]POST finish read [20:11:13]Found Content-Length = 331 [20:11:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [20:11:13]execute_script... [20:11:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [20:11:13]POST & json_proto [20:11:13]process_json_proto [20:11:13]json parsed OK: [20:11:13]protocol is kg_v1.0 [20:11:13]action value=get_value [20:11:13]process_action get_value [20:11:13]cmd_get_value [20:11:13]process_action get_value done [20:11:13]requested_data is exist [20:11:13]produce_requested_data [20:11:13]requested_item fm.sale.total is exist - process it [20:11:13]SAM_PROTO_GetFMData [20:11:13]wFMCommunicate request_size=4 [20:11:13]MH_SAM_APDU [20:11:13]CAPDU: 80 13 03 00 [20:11:13]Write to MH i2c: E2 08 00 FF 0C 80 13 03 00 00 00 00 00 8A [20:11:13]Write i2c OK [20:11:13]MH_I2C_Read... [20:11:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:11:14]Read from MH i2c: E2 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 FD 00 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 FD 00 FF 0C 00 C6 04 85 04 C2 04 6E 04 04 00 86 03 01 00 69 04 A3 00 6F 04 04 00 E1 02 01 00 B1 04 05 00 FC EC D9 18 03 70 04 05 00 A8 97 9A BE 02 72 04 04 00 54 55 3F 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 48 35 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 4E 5C 04 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 95 [20:11:14]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 86 03 01 00 69 04 A3 00 6F 04 04 00 E1 02 01 00 B1 04 05 00 FC EC D9 18 03 70 04 05 00 A8 97 9A BE 02 72 04 04 00 54 55 3F 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 C9 48 35 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 4E 5C 04 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 [20:11:14]wFMCommunicate OK [20:11:14]wFMCommunicate request_size=4 [20:11:14]MH_SAM_APDU [20:11:14]CAPDU: 80 17 00 00 [20:11:14]Write to MH i2c: E2 08 00 00 0D 80 17 00 00 00 00 00 00 8D [20:11:14]Write i2c OK [20:11:14]MH_I2C_Read... [20:11:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:11:14]Read from MH i2c: E2 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 FD 00 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 FD 00 00 0D 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 3B [20:11:14]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [20:11:14]wFMCommunicate OK [20:11:14]wFMCommunicate request_size=4 [20:11:14]MH_SAM_APDU [20:11:14]CAPDU: 80 17 00 00 [20:11:14]Write to MH i2c: E2 08 00 01 0D 80 17 00 00 00 00 00 00 8E [20:11:14]Write i2c OK [20:11:14]MH_I2C_Read... [20:11:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:11:14]Read from MH i2c: E2 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 FD 00 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 FD 00 01 0D 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 B5 [20:11:14]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [20:11:14]wFMCommunicate OK [20:11:14]wFMCommunicate request_size=4 [20:11:14]MH_SAM_APDU [20:11:14]CAPDU: 80 17 00 00 [20:11:14]Write to MH i2c: E2 08 00 02 0D 80 17 00 00 00 00 00 00 8F [20:11:14]Write i2c OK [20:11:14]MH_I2C_Read... [20:11:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:11:14]Read from MH i2c: E2 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 FD 00 [20:11:14]MH_I2C_Read... [20:11:14]Read from MH i2c: E2 FD 00 02 0D 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 0A [20:11:14]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [20:11:14]wFMCommunicate OK [20:11:14]wFMCommunicate request_size=4 [20:11:14]MH_SAM_APDU [20:11:14]CAPDU: 80 17 00 00 [20:11:14]Write to MH i2c: E2 08 00 03 0D 80 17 00 00 00 00 00 00 90 [20:11:14]Write i2c OK [20:11:14]MH_I2C_Read... [20:11:15]Read from MH i2c: E2 [20:11:15]MH_I2C_Read... [20:11:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [20:11:15]Read from MH i2c: E2 E3 00 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: E2 E3 00 03 0D 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6F [20:11:15]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [20:11:15]wFMCommunicate OK [20:11:15]SAM_PROTO_GetFMData done [20:11:15]requested_item fm.sale_refund.total is exist - process it [20:11:15]requested_item fm.buy.total is exist - process it [20:11:15]requested_item shift.sale.total is exist - process it [20:11:15]SAM_PROTO_GetShiftData [20:11:15]wFMCommunicate request_size=4 [20:11:15]MH_SAM_APDU [20:11:15]CAPDU: 80 13 02 00 [20:11:15]Write to MH i2c: E2 08 00 04 0D 80 13 02 00 00 00 00 00 8F [20:11:15]Write i2c OK [20:11:15]MH_I2C_Read... [20:11:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:11:15]Read from MH i2c: E2 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: E2 FD 00 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: E2 FD 00 04 0D 00 B0 04 AA 04 AC 04 6E 04 04 00 9B 00 00 00 69 04 9D 00 6F 04 04 00 9B 00 00 00 B1 04 04 00 50 C2 6E 01 70 04 03 00 0C 31 81 72 04 03 00 44 91 ED 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 12 F4 26 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EC 3E 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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 F2 [20:11:15]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 9B 00 00 00 69 04 9D 00 6F 04 04 00 9B 00 00 00 B1 04 04 00 50 C2 6E 01 70 04 03 00 0C 31 81 72 04 03 00 44 91 ED 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 12 F4 26 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 EC 3E 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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 [20:11:15]wFMCommunicate OK [20:11:15]wFMCommunicate request_size=4 [20:11:15]MH_SAM_APDU [20:11:15]CAPDU: 80 17 00 00 [20:11:15]Write to MH i2c: E2 08 00 05 0D 80 17 00 00 00 00 00 00 92 [20:11:15]Write i2c OK [20:11:15]MH_I2C_Read... [20:11:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:11:15]Read from MH i2c: E2 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: E2 FD 00 [20:11:15]MH_I2C_Read... [20:11:15]Read from MH i2c: E2 FD 00 05 0D 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AC [20:11:15]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 [20:11:15]wFMCommunicate OK [20:11:15]wFMCommunicate request_size=4 [20:11:15]MH_SAM_APDU [20:11:15]CAPDU: 80 17 00 00 [20:11:15]Write to MH i2c: E2 08 00 06 0D 80 17 00 00 00 00 00 00 93 [20:11:15]Write i2c OK [20:11:15]MH_I2C_Read... [20:11:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:11:16]Read from MH i2c: E2 [20:11:16]MH_I2C_Read... [20:11:16]Read from MH i2c: E2 FD 00 [20:11:16]MH_I2C_Read... [20:11:16]Read from MH i2c: E2 FD 00 06 0D 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 50 [20:11:16]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 [20:11:16]wFMCommunicate OK [20:11:16]wFMCommunicate request_size=4 [20:11:16]MH_SAM_APDU [20:11:16]CAPDU: 80 17 00 00 [20:11:16]Write to MH i2c: E2 08 00 07 0D 80 17 00 00 00 00 00 00 94 [20:11:16]Write i2c OK [20:11:16]MH_I2C_Read... [20:11:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:11:16]Read from MH i2c: E2 [20:11:16]MH_I2C_Read... [20:11:16]Read from MH i2c: E2 FD 00 [20:11:16]MH_I2C_Read... [20:11:16]Read from MH i2c: E2 FD 00 07 0D 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 07 [20:11:16]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 [20:11:16]wFMCommunicate OK [20:11:16]wFMCommunicate request_size=4 [20:11:16]MH_SAM_APDU [20:11:16]CAPDU: 80 17 00 00 [20:11:16]Write to MH i2c: E2 08 00 08 0D 80 17 00 00 00 00 00 00 95 [20:11:16]Write i2c OK [20:11:16]MH_I2C_Read... [20:11:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [20:11:16]Read from MH i2c: E2 [20:11:16]MH_I2C_Read... [20:11:16]Read from MH i2c: E2 CD 00 [20:11:16]MH_I2C_Read... [20:11:16]Read from MH i2c: E2 CD 00 08 0D 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 79 [20:11:16]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 [20:11:16]wFMCommunicate OK [20:11:16]SAM_PROTO_GetShiftData done [20:11:16]requested_item shift.sale.total_cash is exist - process it [20:11:16]requested_item shift.sale_refund.total is exist - process it [20:11:16]requested_item shift.sale_refund.total_cash is exist - process it [20:11:16]requested_item shift.buy.total is exist - process it [20:11:16]requested_item shift.buy.total_cash is exist - process it [20:11:16]produce_requested_data done [20:11:16]produce_requested_data return {"fm.sale.total":133018370.52,"fm.sale_refund.total":37024060.00,"fm.buy.total":0.00,"shift.sale.total":240359.20,"shift.sale.total_cash":84667.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} [20:11:16]process_action_free get_value [20:11:16]json_value_free [20:11:16]json_value_free done [20:11:16]process_json_proto returns [20:11:16]Send response to host [20:11:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133018370.52,"fm.sale_refund.total":37024060.00,"fm.buy.total":0.00,"shift.sale.total":240359.20,"shift.sale.total_cash":84667.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}}} [20:11:16]free response buf [20:11:16]execute_script done [20:11:16]execute_script returns [20:11:16]free content buf [20:11:16]Sock 9.Close socket [20:11:16]Sock 9.Thread stoped [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]OFD Sender: No OFD packet to send [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:02]OFD Sender: No OFD packet to send [20:12:07]OFD Sender: No OFD packet to send [20:12:12]OFD Sender: No OFD packet to send [20:12:17]OFD Sender: No OFD packet to send [20:12:22]OFD Sender: No OFD packet to send [20:12:25]accept exits with 7 [20:12:25]New connection [20:12:25]New thread 3066588516 created [20:12:25]Thread 3066731876 joined [20:12:25]Waiting for new connection... [20:12:25] Sock 7.Parse request [20:12:25]Sock 7.Check first char [20:12:25]Sock 7.First char is OK [20:12:25]request: POST /json_proto HTTP/1.0 [20:12:25]Method: POST [20:12:25]URL: /json_proto [20:12:25]Method is POST - this is cgi request [20:12:25]url: /json_proto [20:12:25]query_string will be loaded in cgi processing [20:12:25]execute_cgi json_proto POST (null) [20:12:25]execute_cgi path=json_proto method=POST [20:12:25]POST find Content-Length [20:12:25]Host: 172.17.41.195:8080 [20:12:25]Content-Length: 677 [20:12:25]Content-Type: application/json [20:12:25] [20:12:25]POST finish read [20:12:25]Found Content-Length = 677 [20:12:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 9.740, "sum" : 650.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:25]execute_script... [20:12: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)507044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 9.740, "sum" : 650.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:25]POST & json_proto [20:12:25]process_json_proto [20:12:25]json parsed OK: [20:12:25]protocol is kg_v1.0 [20:12:25]action value=close_receipt [20:12:25]process_action close_receipt [20:12:25]cmd_close_receipt [20:12:25]MH_GetDate [20:12:25]Write to MH i2c: F0 00 00 09 0D 05 [20:12:25]Write i2c OK [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: F0 [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: F0 09 00 [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: F0 09 00 09 0D 00 A9 C5 43 66 FC 21 6F 64 15 [20:12:25]GetLastDocTimeStamp 1715716779 [20:12:25]current date 1715717545 [20:12:25]FM_GetShiftState [20:12:25]SAM_PROTO_GetShiftState [20:12:25]wFMCommunicate request_size=4 [20:12:25]MH_SAM_APDU [20:12:25]CAPDU: 80 13 01 00 [20:12:25]Write to MH i2c: E2 08 00 0A 0D 80 13 01 00 00 00 00 00 94 [20:12:25]Write i2c OK [20:12:25]MH_I2C_Read... [20:12:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:25]Read from MH i2c: E2 [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: E2 0E 00 [20:12:25]MH_I2C_Read... [20:12:25]Read from MH i2c: E2 0E 00 0A 0D 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 5C [20:12:25]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:12:25]wFMCommunicate OK [20:12:25]SAM_PROTO_GetShiftState done [20:12:25]FM_GetShiftState done [20:12:25]opened in 1715646054 [20:12:25]opened+sec_in_day 1715732454 [20:12:25]quantity*price = 65063 [20:12:25]sum+1 = 65064 [20:12:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.09 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 156 14.05.2024 20:12 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67149 ФПД: 103684615704906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T201225&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67149&fm=103684615704906&tin=02508201610067®Number=0000000000091845&sum=65000 [20:12:26]StoreToDocumentArchive [20:12:26]shift 355 fd 67149 [20:12:26]save to /storage/0355/doc_00067149 [20:12:26]save last doc name /storage/0355/doc_00067149 to /storage/kkm_last_doc_name [20:12:26]save OK [20:12:26]Clear old archive folders... [20:12:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:12:26]tlvbuf is 0030B760 [20:12:26]SAM_PROTO_ClearQueue [20:12:26]wFMCommunicate request_size=4 [20:12:26]MH_SAM_APDU [20:12:26]CAPDU: 80 09 00 00 [20:12:26]Write to MH i2c: E2 08 00 17 0D 80 09 00 00 00 00 00 00 96 [20:12:26]Write i2c OK [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: E2 [20:12:26]MH_I2C_Read... [20:12:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:26]Read from MH i2c: E2 03 00 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: E2 03 00 17 0D 00 90 00 98 [20:12:26]RAPDU: 90 00 [20:12:26]wFMCommunicate OK [20:12:26]SAM_PROTO_ClearQueue done [20:12:26]KKMCreateOFDPacket [20:12:26]OFDProtocolAddRootSTLVToBuf [20:12:26]FM_MakeSignedData [20:12:26]FM_MakeSignedData [20:12:26]SAM_PROTO_SignData [20:12:26]wFMCommunicate request_size=4 [20:12:26]MH_SAM_APDU [20:12:26]CAPDU: 80 0D 01 02 [20:12:26]Write to MH i2c: E2 08 00 18 0D 80 0D 01 02 00 00 00 00 9E [20:12:26]Write i2c OK [20:12:26]MH_I2C_Read... [20:12:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:26]Read from MH i2c: E2 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: E2 03 00 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: E2 03 00 18 0D 00 90 00 99 [20:12:26]RAPDU: 90 00 [20:12:26]wFMCommunicate OK [20:12:26]wFMCommunicate request_size=255 [20:12:26]MH_SAM_APDU [20:12: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 0C 26 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 27 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 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 A9 C5 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5E [20:12:26]Write to MH i2c: E2 02 01 19 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 0C 26 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 27 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 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 A9 C5 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5E 00 00 22 [20:12:26]Write i2c OK [20:12:26]MH_I2C_Read... [20:12:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:26]Read from MH i2c: E2 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: E2 03 00 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: E2 03 00 19 0D 00 90 00 9A [20:12:26]RAPDU: 90 00 [20:12:26]wFMCommunicate OK [20:12:26]wFMCommunicate request_size=10 [20:12:26]MH_SAM_APDU [20:12:26]CAPDU: 80 0D 02 02 05 4C F4 B0 11 4A [20:12:26]Write to MH i2c: E2 0D 00 1A 0D 80 0D 02 02 05 00 4C F4 B0 11 4A 00 00 F6 [20:12:26]Write i2c OK [20:12:26]MH_I2C_Read... [20:12:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:26]Read from MH i2c: E2 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: E2 03 00 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: E2 03 00 1A 0D 00 90 00 9B [20:12:26]RAPDU: 90 00 [20:12:26]wFMCommunicate OK [20:12:26]wFMCommunicate request_size=4 [20:12:26]MH_SAM_APDU [20:12:26]CAPDU: 80 0D 03 02 [20:12:26]Write to MH i2c: E2 08 00 1B 0D 80 0D 03 02 00 00 00 00 A3 [20:12:26]Write i2c OK [20:12:26]MH_I2C_Read... [20:12:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:26]Read from MH i2c: E2 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: E2 0B 00 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: E2 0B 00 1B 0D 00 7E B3 24 56 42 85 77 70 90 00 FD [20:12:26]RAPDU: 7E B3 24 56 42 85 77 70 90 00 [20:12:26]wFMCommunicate OK [20:12:26]SAM_PROTO_SignData done [20:12:26]FM_MakeSignedData done [20:12:26]CreateOFDProtocolMessage [20:12:26]wFMCommunicate request_size=4 [20:12:26]MH_SAM_APDU [20:12:26]CAPDU: 80 11 00 00 [20:12:26]Write to MH i2c: E2 08 00 1C 0D 80 11 00 00 00 00 00 00 A3 [20:12:26]Write i2c OK [20:12:26]MH_I2C_Read... [20:12:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:26]Read from MH i2c: E2 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: E2 17 00 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: E2 17 00 1C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F9 [20: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 [20:12:26]wFMCommunicate OK [20:12:26]CreateOFDProtocolMessage done [20:12:26]OFDSenderStorePacket 67149 [20:12:26]StoreOFDPacket docnum=67149 [20:12:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 46 A6 07 01 FE 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 0C 26 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 27 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 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 A9 C5 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5E 4C F4 B0 11 4A 7E B3 24 56 42 85 77 70 [20:12:26]CheckFolder [20:12:26]dirname=/storage/ofd_packets [20:12:26]CheckFolder done [20:12:26]ProducePacketName [20:12:26]name=ofd_packets/00067149 [20:12:26]NVStorageSaveData ofd_packets/00067149 [20:12:26]File name is /storage/ofd_packets/00067149 [20:12:26]Write 301 bytes [20:12:26]NVStorageSaveData done [20:12:26]OFDSenderStorePacket done [20:12:26]KKMCreateOFDPacket done [20:12:26]NVStorageSaveData kkm_last_timestamp [20:12:26]File name is /storage/kkm_last_timestamp [20:12:26]Write 4 bytes [20:12:26]NVStorageSaveData done [20:12:26]ExternCall_PrintAddStr [20:12:26]wPrintStart [20:12:26]Write to MH i2c: 01 00 00 1D 0D 2A [20:12:26]Write i2c OK [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: 01 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: 01 07 00 [20:12:26]MH_I2C_Read... [20:12:26]Read from MH i2c: 01 07 00 1D 0D 00 00 00 00 00 FF 0F 3F [20:12:26]RasterBufferAndPrint [20:12:26]line Счет N : (1)507044 [20:12:26]line ИНН: 02508201610067 [20:12:26]line Контрольно-Кассовый Чек [20:12:26]line ПРОДАЖА [20:12:26]line ТРК (МРК, ГНК) : 43 [20:12:26]line Товар: 2710124130 [20:12:26]line Аи-92-К-5 [20:12:26]line 9.740 * 66.80 [20:12:26]line = 650.63 [20:12:26]line НДС 12% НСП 1% [20:12:26]line > о реализуемом товаре [20:12:26]line ОКРУГЛЕНИЕ: -0.63 [20:12:26]line ИТОГО: 650.00 [20:12:26]line Внесено: 650.00 [20:12:26]line СДАЧА: 0.00 [20:12:26]line НСП 1% : 5.76 [20:12:26]line НДС 12% : 69.09 [20:12:26]line Наличными: 650.00 [20:12:26]line Безнал.: 0.00 [20:12:26]line Место: АЗС № 91 "Партнер Нефть" [20:12:26]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:12:26]line СНО: Общий режим [20:12:26]line Чек 156 14.05.2024 20:12 [20:12:26]line Смена: 355 ФФД: 1.0 [20:12:26]line ЗНМ: 0300000119 [20:12:26]line РНМ: 0000000000091845 [20:12:26]line Версия ККМ: 001 [20:12:26]line ФМ: 0000000000871829 [20:12:26]line ФД: 67149 [20:12:26]line ФПД: 103684615704906 [20:12:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T201225&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67149&fm=103684615704906&tin=02508201610067®Number=0000000000091845&sum=65000 [20:12:27]written 0, free lines is 4095 [20:12:27]OFD Sender: Processing packet 67149 [packets to send 35, broken 34] [20:12:27]ProducePacketName [20:12:27]name=ofd_packets/00067149 [20:12:27]OFD Sender: To server: pG, [20:12:27]CommunicateWithHost lk.salyk.kg:30040 [20:12:27]ConnectInit lk.salyk.kg [20:12:27]Connected sock=10 [20:12: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 46 A6 07 01 FE 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 0C 26 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 27 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 1A 00 00 00 00 07 04 06 00 E8 FD 00 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 A9 C5 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5E 4C F4 B0 11 4A 7E B3 24 56 42 85 77 70 [20:12: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 4B 85 47 00 C7 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 4D 06 01 00 F4 03 04 00 89 6D 43 66 B6 04 01 00 00 6A 89 3B 1B 97 87 82 F3 [20:12:27]CommunicateWithHost err = 0 [20:12:27]CheckOFDResponse [20:12:27]1017 (14) - 77093643461234 [20:12:27]1041 (16) - 0000000000871829 [20:12:27]1040 (4) - 67149 [20:12:27]1012 (4) - 14.05.2024 13:56 [20:12:27]1206 (1) - 0 [20:12:27]OFD Sender: Remove packet 67149 [20:12:27]ProducePacketName [20:12:27]name=ofd_packets/00067149 [20:12:27]NVStorageDeleteData [20:12:27]Write to MH i2c: 01 00 00 47 0D 54 [20:12:27]Write i2c OK [20:12:27]MH_I2C_Read... [20:12:27]Read from MH i2c: 01 [20:12:27]MH_I2C_Read... [20:12:27]Read from MH i2c: 01 07 00 [20:12:27]MH_I2C_Read... [20:12:27]Read from MH i2c: 01 07 00 47 0D 00 00 00 00 00 E9 0C 50 [20:12:27]RasterBufferAndPrint [20:12:27]line [20:12:27]line [20:12:27]line [20:12:27]line [20:12:27]line [20:12:27]written 0, free lines is 3311 [20:12:27]MH_Cut [20:12:27]Write to MH i2c: D1 01 00 4E 0D 01 2D [20:12:27]Write i2c OK [20:12:27]MH_I2C_Read... [20:12:27]Read from MH i2c: D1 [20:12:27]MH_I2C_Read... [20:12:27]Read from MH i2c: D1 01 00 [20:12:27]MH_I2C_Read... [20:12:27]Read from MH i2c: D1 01 00 4E 0D 00 2C [20:12:27]Write to MH i2c: 01 00 00 4F 0D 5C [20:12:27]Write i2c OK [20:12:27]MH_I2C_Read... [20:12:27]OFD Sender: No OFD packet to send [20:12:28]*** Cut start [20:12:28]*** Purtial cut [20:12:28]*** CUTSNS_PIN = 0 [20:12:28]*** Stage 1: CUTSNS_PIN = 1 [20:12:30]Read from MH i2c: 01 [20:12:30]MH_I2C_Read... [20:12:30]*** Stop cut motor [20:12:30]*** Cut end [20:12:30]Read from MH i2c: 01 07 00 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: 01 07 00 4F 0D 00 00 00 00 00 FF 0F 71 [20:12:30]process_action close_receipt done [20:12:30]requested_data is exist [20:12:30]produce_requested_data [20:12:30]requested_item fm.sn is exist - process it [20:12:30]wFMCommunicate request_size=4 [20:12:30]MH_SAM_APDU [20:12:30]CAPDU: 80 11 00 00 [20:12:30]Write to MH i2c: E2 08 00 50 0D 80 11 00 00 00 00 00 00 D7 [20:12:30]Write i2c OK [20:12:30]MH_I2C_Read... [20:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:30]Read from MH i2c: E2 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 17 00 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 17 00 50 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2D [20:12:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:12:30]wFMCommunicate OK [20:12:30]requested_item fd.num is exist - process it [20:12:30]SAM_PROTO_GetFieldsCounters [20:12:30]wFMCommunicate request_size=4 [20:12:30]MH_SAM_APDU [20:12:30]CAPDU: 80 13 00 00 [20:12:30]Write to MH i2c: E2 08 00 51 0D 80 13 00 00 00 00 00 00 DA [20:12:30]Write i2c OK [20:12:30]MH_I2C_Read... [20:12:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:30]Read from MH i2c: E2 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 62 00 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 62 00 51 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 4D 06 01 00 0E 04 04 00 63 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 8C [20:12: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 4D 06 01 00 0E 04 04 00 63 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 [20:12:30]wFMCommunicate OK [20:12:30]SAM_PROTO_GetFieldsCounters done [20:12:30]requested_item shift.num is exist - process it [20:12:30]requested_item shift.opened is exist - process it [20:12:30]req_shift_opened [20:12:30]FM_GetShiftState [20:12:30]SAM_PROTO_GetShiftState [20:12:30]wFMCommunicate request_size=4 [20:12:30]MH_SAM_APDU [20:12:30]CAPDU: 80 13 01 00 [20:12:30]Write to MH i2c: E2 08 00 52 0D 80 13 01 00 00 00 00 00 DC [20:12:30]Write i2c OK [20:12:30]MH_I2C_Read... [20:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:30]Read from MH i2c: E2 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 0E 00 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 0E 00 52 0D 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A4 [20:12:30]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:12:30]wFMCommunicate OK [20:12:30]SAM_PROTO_GetShiftState done [20:12:30]FM_GetShiftState done [20:12:30]req_shift_opened done [20:12:30]requested_item shift.open_date is exist - process it [20:12:30]req_shift_open_date [20:12:30]req_shift_open_date done [20:12:30]produce_requested_data done [20:12:30]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67149,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [20:12:30]process_action_free close_receipt [20:12:30]json_value_free [20:12:30]json_value_free done [20:12:30]process_json_proto returns [20:12:30]Send response to host [20:12:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67149,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [20:12:30]free response buf [20:12:30]execute_script done [20:12:30]execute_script returns [20:12:30]free content buf [20:12:30]Sock 7.Close socket [20:12:30]Sock 7.Thread stoped [20:12:32]OFD Sender: No OFD packet to send [20:12:37]OFD Sender: No OFD packet to send [20:12:42]OFD Sender: No OFD packet to send [20:12:47]OFD Sender: No OFD packet to send [20:12:52]OFD Sender: No OFD packet to send [20:12:57]OFD Sender: No OFD packet to send [20:13:02]OFD Sender: No OFD packet to send [20:13:07]OFD Sender: No OFD packet to send [20:13:12]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:23]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:37]accept exits with 9 [20:13:37]New connection [20:13:37]New thread 3066731876 created [20:13:37]Thread 3066588516 joined [20:13:37]Waiting for new connection... [20:13:37] Sock 9.Parse request [20:13:37]Sock 9.Check first char [20:13:37]Sock 9.First char is OK [20:13:37]request: POST /json_proto HTTP/1.0 [20:13:37]Method: POST [20:13:37]URL: /json_proto [20:13:37]Method is POST - this is cgi request [20:13:37]url: /json_proto [20:13:37]query_string will be loaded in cgi processing [20:13:37]execute_cgi json_proto POST (null) [20:13:37]execute_cgi path=json_proto method=POST [20:13:37]POST find Content-Length [20:13:37]Host: 172.17.41.195:8080 [20:13:37]Content-Length: 800 [20:13:37]Content-Type: application/json [20:13:37] [20:13:37]POST finish read [20:13:37]Found Content-Length = 800 [20:13:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507045", "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" : 17.410, "sum" : 1300.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" : 1300.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:37]execute_script... [20:13: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)507045", "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" : 17.410, "sum" : 1300.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" : 1300.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:37]POST & json_proto [20:13:37]process_json_proto [20:13:37]json parsed OK: [20:13:37]protocol is kg_v1.0 [20:13:37]action value=close_receipt [20:13:37]process_action close_receipt [20:13:37]cmd_close_receipt [20:13:37]MH_GetDate [20:13:37]Write to MH i2c: F0 00 00 53 0D 4F [20:13:37]Write i2c OK [20:13:37]MH_I2C_Read... [20:13:37]Read from MH i2c: F0 [20:13:37]MH_I2C_Read... [20:13:37]Read from MH i2c: F0 09 00 [20:13:37]MH_I2C_Read... [20:13:37]Read from MH i2c: F0 09 00 53 0D 00 F1 C5 43 66 FC 21 6F 64 A7 [20:13:37]GetLastDocTimeStamp 1715717545 [20:13:37]current date 1715717617 [20:13:37]FM_GetShiftState [20:13:37]SAM_PROTO_GetShiftState [20:13:37]wFMCommunicate request_size=4 [20:13:37]MH_SAM_APDU [20:13:37]CAPDU: 80 13 01 00 [20:13:37]Write to MH i2c: E2 08 00 54 0D 80 13 01 00 00 00 00 00 DE [20:13:37]Write i2c OK [20:13:37]MH_I2C_Read... [20:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:37]Read from MH i2c: E2 [20:13:37]MH_I2C_Read... [20:13:37]Read from MH i2c: E2 0E 00 [20:13:37]MH_I2C_Read... [20:13:37]Read from MH i2c: E2 0E 00 54 0D 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A6 [20:13:37]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:13:37]wFMCommunicate OK [20:13:37]SAM_PROTO_GetShiftState done [20:13:37]FM_GetShiftState done [20:13:37]opened in 1715646054 [20:13:37]opened+sec_in_day 1715732454 [20:13:37]quantity*price = 130052 [20:13:37]sum+1 = 130054 [20:13:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1300.53 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 0.00 Безнал.: 1300.53 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 157 14.05.2024 20:13 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67150 ФПД: 112738105345106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T201337&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67150&fm=112738105345106&tin=02508201610067®Number=0000000000091845&sum=130053 [20:13:38]StoreToDocumentArchive [20:13:38]shift 355 fd 67150 [20:13:38]save to /storage/0355/doc_00067150 [20:13:38]save last doc name /storage/0355/doc_00067150 to /storage/kkm_last_doc_name [20:13:38]save OK [20:13:38]Clear old archive folders... [20:13:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:13:38]tlvbuf is 0033BE40 [20:13:38]SAM_PROTO_ClearQueue [20:13:38]wFMCommunicate request_size=4 [20:13:38]MH_SAM_APDU [20:13:38]CAPDU: 80 09 00 00 [20:13:38]Write to MH i2c: E2 08 00 61 0D 80 09 00 00 00 00 00 00 E0 [20:13:38]Write i2c OK [20:13:38]MH_I2C_Read... [20:13:38]Read from MH i2c: E2 [20:13:38]MH_I2C_Read... [20:13:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:38]Read from MH i2c: E2 03 00 [20:13:38]MH_I2C_Read... [20:13:38]Read from MH i2c: E2 03 00 61 0D 00 90 00 E2 [20:13:38]RAPDU: 90 00 [20:13:38]wFMCommunicate OK [20:13:38]SAM_PROTO_ClearQueue done [20:13:38]KKMCreateOFDPacket [20:13:38]OFDProtocolAddRootSTLVToBuf [20:13:38]FM_MakeSignedData [20:13:38]FM_MakeSignedData [20:13:38]SAM_PROTO_SignData [20:13:38]wFMCommunicate request_size=4 [20:13:38]MH_SAM_APDU [20:13:38]CAPDU: 80 0D 01 02 [20:13:38]Write to MH i2c: E2 08 00 62 0D 80 0D 01 02 00 00 00 00 E8 [20:13:38]Write i2c OK [20:13:38]MH_I2C_Read... [20:13:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:38]Read from MH i2c: E2 [20:13:38]MH_I2C_Read... [20:13:38]Read from MH i2c: E2 03 00 [20:13:38]MH_I2C_Read... [20:13:38]Read from MH i2c: E2 03 00 62 0D 00 90 00 E3 [20:13:38]RAPDU: 90 00 [20:13:38]wFMCommunicate OK [20:13:38]wFMCommunicate request_size=255 [20:13:38]MH_SAM_APDU [20:13:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 44 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 05 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 F1 C5 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 66 88 E2 B8 [20:13:38]Write to MH i2c: E2 02 01 63 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 02 44 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 05 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 F1 C5 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 66 88 E2 B8 00 00 C9 [20:13:38]Write i2c OK [20:13:38]MH_I2C_Read... [20:13:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:38]Read from MH i2c: E2 [20:13:38]MH_I2C_Read... [20:13:38]Read from MH i2c: E2 03 00 [20:13:38]MH_I2C_Read... [20:13:38]Read from MH i2c: E2 03 00 63 0D 00 90 00 E4 [20:13:38]RAPDU: 90 00 [20:13:38]wFMCommunicate OK [20:13:38]wFMCommunicate request_size=7 [20:13:38]MH_SAM_APDU [20:13:38]CAPDU: 80 0D 02 02 02 C4 52 [20:13:38]Write to MH i2c: E2 0A 00 64 0D 80 0D 02 02 02 00 C4 52 00 00 05 [20:13:38]Write i2c OK [20:13:38]MH_I2C_Read... [20:13:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:38]Read from MH i2c: E2 [20:13:38]MH_I2C_Read... [20:13:38]Read from MH i2c: E2 03 00 [20:13:38]MH_I2C_Read... [20:13:38]Read from MH i2c: E2 03 00 64 0D 00 90 00 E5 [20:13:38]RAPDU: 90 00 [20:13:38]wFMCommunicate OK [20:13:38]wFMCommunicate request_size=4 [20:13:38]MH_SAM_APDU [20:13:38]CAPDU: 80 0D 03 02 [20:13:38]Write to MH i2c: E2 08 00 65 0D 80 0D 03 02 00 00 00 00 ED [20:13:38]Write i2c OK [20:13:38]MH_I2C_Read... [20:13:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:38]Read from MH i2c: E2 [20:13:38]MH_I2C_Read... [20:13:38]Read from MH i2c: E2 0B 00 [20:13:38]MH_I2C_Read... [20:13:38]Read from MH i2c: E2 0B 00 65 0D 00 69 F8 AB E0 BB AA 35 5B 90 00 CF [20:13:38]RAPDU: 69 F8 AB E0 BB AA 35 5B 90 00 [20:13:38]wFMCommunicate OK [20:13:38]SAM_PROTO_SignData done [20:13:38]FM_MakeSignedData done [20:13:38]CreateOFDProtocolMessage [20:13:38]wFMCommunicate request_size=4 [20:13:38]MH_SAM_APDU [20:13:38]CAPDU: 80 11 00 00 [20:13:38]Write to MH i2c: E2 08 00 66 0D 80 11 00 00 00 00 00 00 ED [20:13:38]Write i2c OK [20:13:38]MH_I2C_Read... [20:13:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:38]Read from MH i2c: E2 [20:13:38]MH_I2C_Read... [20:13:38]Read from MH i2c: E2 17 00 [20:13:38]MH_I2C_Read... [20:13:38]Read from MH i2c: E2 17 00 66 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 43 [20:13:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:13:38]wFMCommunicate OK [20:13:38]CreateOFDProtocolMessage done [20:13:38]OFDSenderStorePacket 67150 [20:13:38]StoreOFDPacket docnum=67150 [20:13:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 53 BF 04 01 F2 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 44 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 05 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 F1 C5 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 66 88 E2 B8 C4 52 69 F8 AB E0 BB AA 35 5B [20:13:38]CheckFolder [20:13:38]dirname=/storage/ofd_packets [20:13:38]CheckFolder done [20:13:38]ProducePacketName [20:13:38]name=ofd_packets/00067150 [20:13:38]NVStorageSaveData ofd_packets/00067150 [20:13:38]File name is /storage/ofd_packets/00067150 [20:13:38]Write 298 bytes [20:13:38]NVStorageSaveData done [20:13:38]OFDSenderStorePacket done [20:13:38]KKMCreateOFDPacket done [20:13:38]NVStorageSaveData kkm_last_timestamp [20:13:38]File name is /storage/kkm_last_timestamp [20:13:38]Write 4 bytes [20:13:38]NVStorageSaveData done [20:13:38]ExternCall_PrintAddStr [20:13:38]wPrintStart [20:13:38]Write to MH i2c: 01 00 00 67 0D 74 [20:13:38]Write i2c OK [20:13:38]MH_I2C_Read... [20:13:38]Read from MH i2c: 01 [20:13:38]MH_I2C_Read... [20:13:38]Read from MH i2c: 01 07 00 [20:13:38]MH_I2C_Read... [20:13:38]Read from MH i2c: 01 07 00 67 0D 00 00 00 00 00 FF 0F 89 [20:13:38]RasterBufferAndPrint [20:13:38]line Счет N : (1)507045 [20:13:38]line ИНН: 02508201610067 [20:13:38]line Контрольно-Кассовый Чек [20:13:38]line ПРОДАЖА [20:13:38]line ТРК (МРК, ГНК) : 11 [20:13:38]line Товар: 2710194210 [20:13:38]line ДТ-К-5 [20:13:38]line 17.410 * 74.70 [20:13:38]line = 1300.53 [20:13:38]line НДС 12% НСП 1% [20:13:38]line > о реализуемом товаре [20:13:38]line ИТОГО: 1300.53 [20:13:38]line НСП 1% : 11.51 [20:13:38]line НДС 12% : 138.11 [20:13:38]line Наличными: 0.00 [20:13:38]line Безнал.: 1300.53 [20:13:38]line Место: АЗС № 91 "Партнер Нефть" [20:13:38]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:13:38]line СНО: Общий режим [20:13:38]line Чек 157 14.05.2024 20:13 [20:13:38]line Смена: 355 ФФД: 1.0 [20:13:38]line ЗНМ: 0300000119 [20:13:38]line РНМ: 0000000000091845 [20:13:38]line Версия ККМ: 001 [20:13:38]line Платежная система: O! деньги [20:13:38]line ФМ: 0000000000871829 [20:13:38]line ФД: 67150 [20:13:38]line ФПД: 112738105345106 [20:13:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T201337&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67150&fm=112738105345106&tin=02508201610067®Number=0000000000091845&sum=130053 [20:13:39]OFD Sender: Processing packet 67150 [packets to send 35, broken 34] [20:13:39]ProducePacketName [20:13:39]name=ofd_packets/00067150 [20:13:39]OFD Sender: To server: pG, [20:13:39]CommunicateWithHost lk.salyk.kg:30040 [20:13:39]ConnectInit lk.salyk.kg [20:13:39]written 0, free lines is 4095 [20:13:39]Connected sock=10 [20:13: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 53 BF 04 01 F2 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 44 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 05 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 05 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 05 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 F1 C5 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 66 88 E2 B8 C4 52 69 F8 AB E0 BB AA 35 5B [20:13: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 1D 3E 47 00 E5 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 4E 06 01 00 F4 03 04 00 D1 6D 43 66 B6 04 01 00 00 13 52 5A 61 0C 0C 52 A5 [20:13:39]CommunicateWithHost err = 0 [20:13:39]CheckOFDResponse [20:13:39]1017 (14) - 77093643461234 [20:13:39]1041 (16) - 0000000000871829 [20:13:39]1040 (4) - 67150 [20:13:39]1012 (4) - 14.05.2024 13:57 [20:13:39]1206 (1) - 0 [20:13:39]OFD Sender: Remove packet 67150 [20:13:39]ProducePacketName [20:13:39]name=ofd_packets/00067150 [20:13:39]NVStorageDeleteData [20:13:39]Write to MH i2c: 01 00 00 90 0D 9D [20:13:39]Write i2c OK [20:13:39]MH_I2C_Read... [20:13:39]Read from MH i2c: 01 [20:13:39]MH_I2C_Read... [20:13:39]Read from MH i2c: 01 07 00 [20:13:39]MH_I2C_Read... [20:13:39]Read from MH i2c: 01 07 00 90 0D 00 00 00 00 00 EB 0C 9B [20:13:39]RasterBufferAndPrint [20:13:39]line [20:13:39]line [20:13:39]line [20:13:39]line [20:13:39]line [20:13:39]written 0, free lines is 3316 [20:13:39]MH_Cut [20:13:39]Write to MH i2c: D1 01 00 97 0D 01 76 [20:13:39]Write i2c OK [20:13:39]MH_I2C_Read... [20:13:39]Read from MH i2c: D1 [20:13:39]MH_I2C_Read... [20:13:39]Read from MH i2c: D1 01 00 [20:13:39]MH_I2C_Read... [20:13:39]Read from MH i2c: D1 01 00 97 0D 00 75 [20:13:39]Write to MH i2c: 01 00 00 98 0D A5 [20:13:39]Write i2c OK [20:13:39]MH_I2C_Read... [20:13:39]OFD Sender: No OFD packet to send [20:13:40]*** Cut start [20:13:40]*** Purtial cut [20:13:40]*** Stage 1: CUTSNS_PIN = 1 [20:13:40]Read from MH i2c: 01 [20:13:40]MH_I2C_Read... [20:13:40]*** Stop cut motor [20:13:40]*** Cut end [20:13:40]Read from MH i2c: 01 07 00 [20:13:40]MH_I2C_Read... [20:13:40]Read from MH i2c: 01 07 00 98 0D 00 00 00 00 00 FF 0F BA [20:13:40]process_action close_receipt done [20:13:40]requested_data is exist [20:13:40]produce_requested_data [20:13:40]requested_item fm.sn is exist - process it [20:13:40]wFMCommunicate request_size=4 [20:13:40]MH_SAM_APDU [20:13:40]CAPDU: 80 11 00 00 [20:13:40]Write to MH i2c: E2 08 00 99 0D 80 11 00 00 00 00 00 00 20 [20:13:40]Write i2c OK [20:13:40]MH_I2C_Read... [20:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:40]Read from MH i2c: E2 [20:13:40]MH_I2C_Read... [20:13:40]Read from MH i2c: E2 17 00 [20:13:40]MH_I2C_Read... [20:13:40]Read from MH i2c: E2 17 00 99 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 76 [20:13:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:13:40]wFMCommunicate OK [20:13:40]requested_item fd.num is exist - process it [20:13:40]SAM_PROTO_GetFieldsCounters [20:13:40]wFMCommunicate request_size=4 [20:13:40]MH_SAM_APDU [20:13:40]CAPDU: 80 13 00 00 [20:13:40]Write to MH i2c: E2 08 00 9A 0D 80 13 00 00 00 00 00 00 23 [20:13:40]Write i2c OK [20:13:40]MH_I2C_Read... [20:13:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:40]Read from MH i2c: E2 [20:13:40]MH_I2C_Read... [20:13:40]Read from MH i2c: E2 62 00 [20:13:40]MH_I2C_Read... [20:13:40]Read from MH i2c: E2 62 00 9A 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 4E 06 01 00 0E 04 04 00 63 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 D9 [20:13:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 4E 06 01 00 0E 04 04 00 63 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 [20:13:40]wFMCommunicate OK [20:13:40]SAM_PROTO_GetFieldsCounters done [20:13:40]requested_item shift.num is exist - process it [20:13:40]requested_item shift.opened is exist - process it [20:13:40]req_shift_opened [20:13:40]FM_GetShiftState [20:13:40]SAM_PROTO_GetShiftState [20:13:40]wFMCommunicate request_size=4 [20:13:40]MH_SAM_APDU [20:13:40]CAPDU: 80 13 01 00 [20:13:40]Write to MH i2c: E2 08 00 9B 0D 80 13 01 00 00 00 00 00 25 [20:13:40]Write i2c OK [20:13:40]MH_I2C_Read... [20:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:40]Read from MH i2c: E2 [20:13:40]MH_I2C_Read... [20:13:40]Read from MH i2c: E2 0E 00 [20:13:40]MH_I2C_Read... [20:13:40]Read from MH i2c: E2 0E 00 9B 0D 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 ED [20:13:40]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:13:40]wFMCommunicate OK [20:13:40]SAM_PROTO_GetShiftState done [20:13:40]FM_GetShiftState done [20:13:40]req_shift_opened done [20:13:40]requested_item shift.open_date is exist - process it [20:13:40]req_shift_open_date [20:13:40]req_shift_open_date done [20:13:40]produce_requested_data done [20:13:40]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67150,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [20:13:40]process_action_free close_receipt [20:13:40]json_value_free [20:13:40]json_value_free done [20:13:40]process_json_proto returns [20:13:40]Send response to host [20:13:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67150,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [20:13:40]free response buf [20:13:40]execute_script done [20:13:40]execute_script returns [20:13:40]free content buf [20:13:40]Sock 9.Close socket [20:13:40]Sock 9.Thread stoped [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]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:05]OFD Sender: No OFD packet to send [20:15:10]OFD Sender: No OFD packet to send [20:15:15]OFD Sender: No OFD packet to send [20:15:20]OFD Sender: No OFD packet to send [20:15:25]OFD Sender: No OFD packet to send [20:15:30]OFD Sender: No OFD packet to send [20:15:35]OFD Sender: No OFD packet to send [20:15:40]OFD Sender: No OFD packet to send [20:15:45]OFD Sender: No OFD packet to send [20:15:50]OFD Sender: No OFD packet to send [20:15:55]OFD Sender: No OFD packet to send [20:16:00]OFD Sender: No OFD packet to send [20:16:05]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:46]accept exits with 7 [20:17:46]New connection [20:17:46]New thread 3066588516 created [20:17:46]Thread 3066731876 joined [20:17:46]Waiting for new connection... [20:17:46] Sock 7.Parse request [20:17:46]Sock 7.Check first char [20:17:46]Sock 7.First char is OK [20:17:46]request: POST /json_proto HTTP/1.0 [20:17:46]Method: POST [20:17:46]URL: /json_proto [20:17:46]Method is POST - this is cgi request [20:17:46]url: /json_proto [20:17:46]query_string will be loaded in cgi processing [20:17:46]execute_cgi json_proto POST (null) [20:17:46]execute_cgi path=json_proto method=POST [20:17:46]POST find Content-Length [20:17:46]Host: 172.17.41.195:8080 [20:17:46]Content-Length: 800 [20:17:46]Content-Type: application/json [20:17:46] [20:17:46]POST finish read [20:17:46]Found Content-Length = 800 [20:17:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507047", "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" ] } } [20:17:46]execute_script... [20:17: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)507047", "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" ] } } [20:17:46]POST & json_proto [20:17:46]process_json_proto [20:17:46]json parsed OK: [20:17:46]protocol is kg_v1.0 [20:17:46]action value=close_receipt [20:17:46]process_action close_receipt [20:17:46]cmd_close_receipt [20:17:46]MH_GetDate [20:17:46]Write to MH i2c: F0 00 00 9C 0D 98 [20:17:46]Write i2c OK [20:17:46]MH_I2C_Read... [20:17:46]Read from MH i2c: F0 [20:17:46]MH_I2C_Read... [20:17:46]Read from MH i2c: F0 09 00 [20:17:46]MH_I2C_Read... [20:17:46]Read from MH i2c: F0 09 00 9C 0D 00 EB C6 43 66 FC 21 6F 64 EB [20:17:46]GetLastDocTimeStamp 1715717617 [20:17:46]current date 1715717867 [20:17:46]FM_GetShiftState [20:17:46]SAM_PROTO_GetShiftState [20:17:46]wFMCommunicate request_size=4 [20:17:46]MH_SAM_APDU [20:17:46]CAPDU: 80 13 01 00 [20:17:46]Write to MH i2c: E2 08 00 9D 0D 80 13 01 00 00 00 00 00 27 [20:17:46]Write i2c OK [20:17:46]MH_I2C_Read... [20:17:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:46]Read from MH i2c: E2 [20:17:46]MH_I2C_Read... [20:17:46]Read from MH i2c: E2 0E 00 [20:17:46]MH_I2C_Read... [20:17:46]Read from MH i2c: E2 0E 00 9D 0D 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 EF [20:17:46]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:17:46]wFMCommunicate OK [20:17:46]SAM_PROTO_GetShiftState done [20:17:46]FM_GetShiftState done [20:17:46]opened in 1715646054 [20:17:46]opened+sec_in_day 1715732454 [20:17:46]quantity*price = 200046 [20:17:46]sum+1 = 200048 [20:17:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 158 14.05.2024 20:17 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67151 ФПД: 122992599357202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T201747&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67151&fm=122992599357202&tin=02508201610067®Number=0000000000091845&sum=200047 [20:17:47]StoreToDocumentArchive [20:17:47]shift 355 fd 67151 [20:17:47]save to /storage/0355/doc_00067151 [20:17:47]save last doc name /storage/0355/doc_00067151 to /storage/kkm_last_doc_name [20:17:47]save OK [20:17:47]Clear old archive folders... [20:17:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:17:47]tlvbuf is 0038CF60 [20:17:47]SAM_PROTO_ClearQueue [20:17:47]wFMCommunicate request_size=4 [20:17:47]MH_SAM_APDU [20:17:47]CAPDU: 80 09 00 00 [20:17:47]Write to MH i2c: E2 08 00 AA 0D 80 09 00 00 00 00 00 00 29 [20:17:47]Write i2c OK [20:17:47]MH_I2C_Read... [20:17:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:47]Read from MH i2c: E2 [20:17:47]MH_I2C_Read... [20:17:47]Read from MH i2c: E2 03 00 [20:17:47]MH_I2C_Read... [20:17:47]Read from MH i2c: E2 03 00 AA 0D 00 90 00 2B [20:17:47]RAPDU: 90 00 [20:17:47]wFMCommunicate OK [20:17:47]SAM_PROTO_ClearQueue done [20:17:47]KKMCreateOFDPacket [20:17:47]OFDProtocolAddRootSTLVToBuf [20:17:47]FM_MakeSignedData [20:17:47]FM_MakeSignedData [20:17:47]SAM_PROTO_SignData [20:17:47]wFMCommunicate request_size=4 [20:17:47]MH_SAM_APDU [20:17:47]CAPDU: 80 0D 01 02 [20:17:47]Write to MH i2c: E2 08 00 AB 0D 80 0D 01 02 00 00 00 00 31 [20:17:47]Write i2c OK [20:17:47]MH_I2C_Read... [20:17:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:47]Read from MH i2c: E2 [20:17:47]MH_I2C_Read... [20:17:47]Read from MH i2c: E2 03 00 [20:17:47]MH_I2C_Read... [20:17:47]Read from MH i2c: E2 03 00 AB 0D 00 90 00 2C [20:17:47]RAPDU: 90 00 [20:17:47]wFMCommunicate OK [20:17:47]wFMCommunicate request_size=255 [20:17:47]MH_SAM_APDU [20:17:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 68 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 EB C6 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 6F DC 72 31 [20:17:47]Write to MH i2c: E2 02 01 AC 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 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 9E 00 00 00 F4 03 04 00 EB C6 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 6F DC 72 31 00 00 3D [20:17:47]Write i2c OK [20:17:47]MH_I2C_Read... [20:17:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:47]Read from MH i2c: E2 [20:17:47]MH_I2C_Read... [20:17:47]Read from MH i2c: E2 03 00 [20:17:47]MH_I2C_Read... [20:17:47]Read from MH i2c: E2 03 00 AC 0D 00 90 00 2D [20:17:47]RAPDU: 90 00 [20:17:47]wFMCommunicate OK [20:17:47]wFMCommunicate request_size=7 [20:17:47]MH_SAM_APDU [20:17:47]CAPDU: 80 0D 02 02 02 D7 12 [20:17:47]Write to MH i2c: E2 0A 00 AD 0D 80 0D 02 02 02 00 D7 12 00 00 21 [20:17:47]Write i2c OK [20:17:47]MH_I2C_Read... [20:17:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:47]Read from MH i2c: E2 [20:17:47]MH_I2C_Read... [20:17:47]Read from MH i2c: E2 03 00 [20:17:47]MH_I2C_Read... [20:17:47]Read from MH i2c: E2 03 00 AD 0D 00 90 00 2E [20:17:47]RAPDU: 90 00 [20:17:47]wFMCommunicate OK [20:17:47]wFMCommunicate request_size=4 [20:17:47]MH_SAM_APDU [20:17:47]CAPDU: 80 0D 03 02 [20:17:47]Write to MH i2c: E2 08 00 AE 0D 80 0D 03 02 00 00 00 00 36 [20:17:47]Write i2c OK [20:17:47]MH_I2C_Read... [20:17:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:48]Read from MH i2c: E2 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: E2 0B 00 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: E2 0B 00 AE 0D 00 6F 1F 77 B7 57 70 4F 71 90 00 7A [20:17:48]RAPDU: 6F 1F 77 B7 57 70 4F 71 90 00 [20:17:48]wFMCommunicate OK [20:17:48]SAM_PROTO_SignData done [20:17:48]FM_MakeSignedData done [20:17:48]CreateOFDProtocolMessage [20:17:48]wFMCommunicate request_size=4 [20:17:48]MH_SAM_APDU [20:17:48]CAPDU: 80 11 00 00 [20:17:48]Write to MH i2c: E2 08 00 AF 0D 80 11 00 00 00 00 00 00 36 [20:17:48]Write i2c OK [20:17:48]MH_I2C_Read... [20:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:48]Read from MH i2c: E2 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: E2 17 00 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: E2 17 00 AF 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8C [20:17: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:17:48]wFMCommunicate OK [20:17:48]CreateOFDProtocolMessage done [20:17:48]OFDSenderStorePacket 67151 [20:17:48]StoreOFDPacket docnum=67151 [20:17:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 B9 E1 04 01 ED 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9E 00 00 00 F4 03 04 00 EB C6 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 6F DC 72 31 D7 12 6F 1F 77 B7 57 70 4F 71 [20:17:48]CheckFolder [20:17:48]dirname=/storage/ofd_packets [20:17:48]CheckFolder done [20:17:48]ProducePacketName [20:17:48]name=ofd_packets/00067151 [20:17:48]NVStorageSaveData ofd_packets/00067151 [20:17:48]File name is /storage/ofd_packets/00067151 [20:17:48]Write 298 bytes [20:17:48]NVStorageSaveData done [20:17:48]OFDSenderStorePacket done [20:17:48]KKMCreateOFDPacket done [20:17:48]NVStorageSaveData kkm_last_timestamp [20:17:48]File name is /storage/kkm_last_timestamp [20:17:48]Write 4 bytes [20:17:48]NVStorageSaveData done [20:17:48]ExternCall_PrintAddStr [20:17:48]wPrintStart [20:17:48]Write to MH i2c: 01 00 00 B0 0D BD [20:17:48]Write i2c OK [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: 01 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: 01 07 00 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: 01 07 00 B0 0D 00 00 00 00 00 FF 0F D2 [20:17:48]RasterBufferAndPrint [20:17:48]line Счет N : (1)507047 [20:17:48]line ИНН: 02508201610067 [20:17:48]line Контрольно-Кассовый Чек [20:17:48]line ПРОДАЖА [20:17:48]line ТРК (МРК, ГНК) : 11 [20:17:48]line Товар: 2710194210 [20:17:48]line ДТ-К-5 [20:17:48]line 26.780 * 74.70 [20:17:48]line = 2000.47 [20:17:48]line НДС 12% НСП 1% [20:17:48]line > о реализуемом товаре [20:17:48]line ИТОГО: 2000.47 [20:17:48]line НСП 1% : 17.70 [20:17:48]line НДС 12% : 212.44 [20:17:48]line Наличными: 0.00 [20:17:48]line Безнал.: 2000.47 [20:17:48]line Место: АЗС № 91 "Партнер Нефть" [20:17:48]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:17:48]line СНО: Общий режим [20:17:48]line Чек 158 14.05.2024 20:17 [20:17:48]line Смена: 355 ФФД: 1.0 [20:17:48]line ЗНМ: 0300000119 [20:17:48]line РНМ: 0000000000091845 [20:17:48]line Версия ККМ: 001 [20:17:48]line Платежная система: O! деньги [20:17:48]line ФМ: 0000000000871829 [20:17:48]line ФД: 67151 [20:17:48]line ФПД: 122992599357202 [20:17:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T201747&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67151&fm=122992599357202&tin=02508201610067®Number=0000000000091845&sum=200047 [20:17:48]OFD Sender: Processing packet 67151 [packets to send 35, broken 34] [20:17:48]ProducePacketName [20:17:48]name=ofd_packets/00067151 [20:17:48]OFD Sender: To server: pG, [20:17:48]CommunicateWithHost lk.salyk.kg:30040 [20:17:48]ConnectInit lk.salyk.kg [20:17:48]written 0, free lines is 4095 [20:17:48]Connected sock=10 [20:17:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 B9 E1 04 01 ED 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9E 00 00 00 F4 03 04 00 EB C6 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 6F DC 72 31 D7 12 6F 1F 77 B7 57 70 4F 71 [20:17: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 D9 90 47 00 83 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 4F 06 01 00 F4 03 04 00 CA 6E 43 66 B6 04 01 00 00 50 27 56 9E D0 24 7D 8E [20:17:48]CommunicateWithHost err = 0 [20:17:48]CheckOFDResponse [20:17:48]1017 (14) - 77093643461234 [20:17:48]1041 (16) - 0000000000871829 [20:17:48]1040 (4) - 67151 [20:17:48]1012 (4) - 14.05.2024 14:01 [20:17:48]1206 (1) - 0 [20:17:48]OFD Sender: Remove packet 67151 [20:17:48]ProducePacketName [20:17:48]name=ofd_packets/00067151 [20:17:48]NVStorageDeleteData [20:17:48]Write to MH i2c: 01 00 00 D9 0D E6 [20:17:48]Write i2c OK [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: 01 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: 01 07 00 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: 01 07 00 D9 0D 00 00 00 00 00 F3 0C EC [20:17:48]RasterBufferAndPrint [20:17:48]line [20:17:48]line [20:17:48]line [20:17:48]line [20:17:48]line [20:17:48]written 0, free lines is 3324 [20:17:48]MH_Cut [20:17:48]Write to MH i2c: D1 01 00 E0 0D 01 BF [20:17:48]Write i2c OK [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: D1 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: D1 01 00 [20:17:48]MH_I2C_Read... [20:17:48]Read from MH i2c: D1 01 00 E0 0D 00 BE [20:17:48]Write to MH i2c: 01 00 00 E1 0D EE [20:17:48]Write i2c OK [20:17:48]MH_I2C_Read... [20:17:49]OFD Sender: No OFD packet to send [20:17:49]*** Cut start [20:17:49]*** Purtial cut [20:17:49]*** CUTSNS_PIN = 0 [20:17:49]*** Stage 1: CUTSNS_PIN = 1 [20:17:51]Read from MH i2c: 01 [20:17:51]MH_I2C_Read... [20:17:51]*** Stop cut motor [20:17:51]*** Cut end [20:17:51]Read from MH i2c: 01 07 00 [20:17:51]MH_I2C_Read... [20:17:51]Read from MH i2c: 01 07 00 E1 0D 00 00 00 00 00 FF 0F 03 [20:17:51]process_action close_receipt done [20:17:51]requested_data is exist [20:17:51]produce_requested_data [20:17:51]requested_item fm.sn is exist - process it [20:17:51]wFMCommunicate request_size=4 [20:17:51]MH_SAM_APDU [20:17:51]CAPDU: 80 11 00 00 [20:17:51]Write to MH i2c: E2 08 00 E2 0D 80 11 00 00 00 00 00 00 69 [20:17:51]Write i2c OK [20:17:51]MH_I2C_Read... [20:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:51]Read from MH i2c: E2 [20:17:51]MH_I2C_Read... [20:17:51]Read from MH i2c: E2 17 00 [20:17:51]MH_I2C_Read... [20:17:51]Read from MH i2c: E2 17 00 E2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 BF [20:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:17:51]wFMCommunicate OK [20:17:51]requested_item fd.num is exist - process it [20:17:51]SAM_PROTO_GetFieldsCounters [20:17:51]wFMCommunicate request_size=4 [20:17:51]MH_SAM_APDU [20:17:51]CAPDU: 80 13 00 00 [20:17:51]Write to MH i2c: E2 08 00 E3 0D 80 13 00 00 00 00 00 00 6C [20:17:51]Write i2c OK [20:17:51]MH_I2C_Read... [20:17:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:51]Read from MH i2c: E2 [20:17:51]MH_I2C_Read... [20:17:51]Read from MH i2c: E2 62 00 [20:17:51]MH_I2C_Read... [20:17:51]Read from MH i2c: E2 62 00 E3 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 4F 06 01 00 0E 04 04 00 63 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 26 [20:17:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 4F 06 01 00 0E 04 04 00 63 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 [20:17:51]wFMCommunicate OK [20:17:51]SAM_PROTO_GetFieldsCounters done [20:17:51]requested_item shift.num is exist - process it [20:17:51]requested_item shift.opened is exist - process it [20:17:51]req_shift_opened [20:17:51]FM_GetShiftState [20:17:51]SAM_PROTO_GetShiftState [20:17:51]wFMCommunicate request_size=4 [20:17:51]MH_SAM_APDU [20:17:51]CAPDU: 80 13 01 00 [20:17:51]Write to MH i2c: E2 08 00 E4 0D 80 13 01 00 00 00 00 00 6E [20:17:51]Write i2c OK [20:17:51]MH_I2C_Read... [20:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:51]Read from MH i2c: E2 [20:17:51]MH_I2C_Read... [20:17:51]Read from MH i2c: E2 0E 00 [20:17:51]MH_I2C_Read... [20:17:51]Read from MH i2c: E2 0E 00 E4 0D 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 36 [20:17:51]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:17:51]wFMCommunicate OK [20:17:51]SAM_PROTO_GetShiftState done [20:17:51]FM_GetShiftState done [20:17:51]req_shift_opened done [20:17:51]requested_item shift.open_date is exist - process it [20:17:51]req_shift_open_date [20:17:51]req_shift_open_date done [20:17:51]produce_requested_data done [20:17:51]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67151,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [20:17:51]process_action_free close_receipt [20:17:51]json_value_free [20:17:51]json_value_free done [20:17:51]process_json_proto returns [20:17:51]Send response to host [20:17:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67151,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [20:17:51]free response buf [20:17:51]execute_script done [20:17:51]execute_script returns [20:17:51]free content buf [20:17:51]Sock 7.Close socket [20:17:51]Sock 7.Thread stoped [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:23]accept exits with 9 [20:19:23]New connection [20:19:23]New thread 3066731876 created [20:19:23]Thread 3066588516 joined [20:19:23]Waiting for new connection... [20:19:23] Sock 9.Parse request [20:19:23]Sock 9.Check first char [20:19:23]Sock 9.First char is OK [20:19:23]request: POST /json_proto HTTP/1.0 [20:19:23]Method: POST [20:19:23]URL: /json_proto [20:19:23]Method is POST - this is cgi request [20:19:23]url: /json_proto [20:19:23]query_string will be loaded in cgi processing [20:19:23]execute_cgi json_proto POST (null) [20:19:23]execute_cgi path=json_proto method=POST [20:19:23]POST find Content-Length [20:19:23]Host: 172.17.41.195:8080 [20:19:23]Content-Length: 1180 [20:19:23]Content-Type: application/json [20:19:23] [20:19:23]POST finish read [20:19:23]Found Content-Length = 1180 [20:19: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)507046\u000A14.05.2024 20:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01247\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:23]execute_script... [20:19: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)507046\u000A14.05.2024 20:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01247\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:23]POST & json_proto [20:19:23]process_json_proto [20:19:23]json parsed OK: [20:19:23]protocol is kg_v1.0 [20:19:23]action value=print_text [20:19:23]process_action print_text [20:19:23]cmd_print_text [20:19:23]ExternCall_PrintAddStr [20:19:23]wPrintStart [20:19:23]Write to MH i2c: 01 00 00 E5 0D F2 [20:19:23]Write i2c OK [20:19:23]MH_I2C_Read... [20:19:23]Read from MH i2c: 01 [20:19:23]MH_I2C_Read... [20:19:23]Read from MH i2c: 01 07 00 [20:19:23]MH_I2C_Read... [20:19:23]Read from MH i2c: 01 07 00 E5 0D 00 00 00 00 00 FF 0F 07 [20:19:23]RasterBufferAndPrint [20:19:23]line *****ТОВАРНЫЙ ЧЕК***** [20:19:23]line АЗС-91 [20:19:23]line Партнер нефть [20:19:23]line 02508201610067 [20:19:23]line Кассир : Адишов И. [20:19:23]line Счет N : (1)507046 [20:19:23]line 14.05.2024 20:02 [20:19:23]line ПРОДАЖА [20:19:23]line ТРК (МРК, ГНК): 21 [20:19:23]line Вид ГСМ : 2710194210 [20:19:23]line ДТ-К-5 [20:19:23]line 100.000 x 74.70 [20:19:23]line ИТОГ: 7470.00 [20:19:23]line Тип оплаты: Талоны: Топливная Карта [20:19:23]line 01247 [20:19:23]line ______________________ [20:19:23]line (подпись) [20:19:23]written 0, free lines is 4095 [20:19:23]Write to MH i2c: 01 00 00 F9 0D 06 [20:19:23]Write i2c OK [20:19:23]MH_I2C_Read... [20:19:23]Read from MH i2c: 01 [20:19:23]MH_I2C_Read... [20:19:23]Read from MH i2c: 01 07 00 [20:19:23]MH_I2C_Read... [20:19:23]Read from MH i2c: 01 07 00 F9 0D 00 00 00 00 00 0D 0E 28 [20:19:23]RasterBufferAndPrint [20:19:23]line [20:19:23]line [20:19:23]line [20:19:23]line [20:19:23]line [20:19:23]written 0, free lines is 3599 [20:19:23]MH_Cut [20:19:23]Write to MH i2c: D1 01 00 00 0E 01 E0 [20:19:23]Write i2c OK [20:19:23]MH_I2C_Read... [20:19:23]Read from MH i2c: D1 [20:19:23]MH_I2C_Read... [20:19:23]Read from MH i2c: D1 01 00 [20:19:23]MH_I2C_Read... [20:19:23]Read from MH i2c: D1 01 00 00 0E 00 DF [20:19:23]Write to MH i2c: 01 00 00 01 0E 0F [20:19:23]Write i2c OK [20:19:23]MH_I2C_Read... [20:19:24]OFD Sender: No OFD packet to send [20:19:24]*** Cut start [20:19:24]*** Purtial cut [20:19:24]*** Stage 1: CUTSNS_PIN = 1 [20:19:24]Read from MH i2c: 01 [20:19:24]MH_I2C_Read... [20:19:24]*** Stop cut motor [20:19:24]*** Cut end [20:19:24]Read from MH i2c: 01 07 00 [20:19:24]MH_I2C_Read... [20:19:24]Read from MH i2c: 01 07 00 01 0E 00 00 00 00 00 FF 0F 24 [20:19:24]process_action print_text done [20:19:24]requested_data is exist [20:19:24]produce_requested_data [20:19:24]requested_item fm.sn is exist - process it [20:19:24]wFMCommunicate request_size=4 [20:19:24]MH_SAM_APDU [20:19:24]CAPDU: 80 11 00 00 [20:19:24]Write to MH i2c: E2 08 00 02 0E 80 11 00 00 00 00 00 00 8A [20:19:24]Write i2c OK [20:19:24]MH_I2C_Read... [20:19:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:24]Read from MH i2c: E2 [20:19:24]MH_I2C_Read... [20:19:24]Read from MH i2c: E2 17 00 [20:19:24]MH_I2C_Read... [20:19:24]Read from MH i2c: E2 17 00 02 0E 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:19:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:19:24]wFMCommunicate OK [20:19:24]requested_item fd.num is exist - process it [20:19:24]SAM_PROTO_GetFieldsCounters [20:19:24]wFMCommunicate request_size=4 [20:19:24]MH_SAM_APDU [20:19:24]CAPDU: 80 13 00 00 [20:19:24]Write to MH i2c: E2 08 00 03 0E 80 13 00 00 00 00 00 00 8D [20:19:24]Write i2c OK [20:19:24]MH_I2C_Read... [20:19:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:24]Read from MH i2c: E2 [20:19:24]MH_I2C_Read... [20:19:24]Read from MH i2c: E2 62 00 [20:19:24]MH_I2C_Read... [20:19:24]Read from MH i2c: E2 62 00 03 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 4F 06 01 00 0E 04 04 00 63 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 47 [20:19: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 4F 06 01 00 0E 04 04 00 63 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 [20:19:24]wFMCommunicate OK [20:19:24]SAM_PROTO_GetFieldsCounters done [20:19:24]requested_item shift.num is exist - process it [20:19:24]requested_item shift.opened is exist - process it [20:19:24]req_shift_opened [20:19:24]FM_GetShiftState [20:19:24]SAM_PROTO_GetShiftState [20:19:24]wFMCommunicate request_size=4 [20:19:24]MH_SAM_APDU [20:19:24]CAPDU: 80 13 01 00 [20:19:24]Write to MH i2c: E2 08 00 04 0E 80 13 01 00 00 00 00 00 8F [20:19:24]Write i2c OK [20:19:24]MH_I2C_Read... [20:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:24]Read from MH i2c: E2 [20:19:24]MH_I2C_Read... [20:19:24]Read from MH i2c: E2 0E 00 [20:19:24]MH_I2C_Read... [20:19:24]Read from MH i2c: E2 0E 00 04 0E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 57 [20:19:24]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:19:24]wFMCommunicate OK [20:19:24]SAM_PROTO_GetShiftState done [20:19:24]FM_GetShiftState done [20:19:24]req_shift_opened done [20:19:24]requested_item shift.open_date is exist - process it [20:19:24]req_shift_open_date [20:19:24]req_shift_open_date done [20:19:24]produce_requested_data done [20:19:24]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67151,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [20:19:24]process_action_free print_text [20:19:24]json_value_free [20:19:24]json_value_free done [20:19:24]process_json_proto returns [20:19:24]Send response to host [20:19:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67151,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [20:19:24]free response buf [20:19:24]execute_script done [20:19:24]execute_script returns [20:19:24]free content buf [20:19:24]Sock 9.Close socket [20:19:24]Sock 9.Thread stoped [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:02]accept exits with 7 [20:21:02]New connection [20:21:02]New thread 3066588516 created [20:21:02]Thread 3066731876 joined [20:21:02]Waiting for new connection... [20:21:02] Sock 7.Parse request [20:21:02]Sock 7.Check first char [20:21:02]Sock 7.First char is OK [20:21:02]request: POST /json_proto HTTP/1.0 [20:21:02]Method: POST [20:21:02]URL: /json_proto [20:21:02]Method is POST - this is cgi request [20:21:02]url: /json_proto [20:21:02]query_string will be loaded in cgi processing [20:21:02]execute_cgi json_proto POST (null) [20:21:02]execute_cgi path=json_proto method=POST [20:21:02]POST find Content-Length [20:21:02]Host: 172.17.41.195:8080 [20:21:02]Content-Length: 674 [20:21:02]Content-Type: application/json [20:21:02] [20:21:02]POST finish read [20:21:02]Found Content-Length = 674 [20:21:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 8.040, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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:21:02]execute_script... [20:21: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)507050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 8.040, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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:21:02]POST & json_proto [20:21:02]process_json_proto [20:21:02]json parsed OK: [20:21:02]protocol is kg_v1.0 [20:21:02]action value=close_receipt [20:21:02]process_action close_receipt [20:21:02]cmd_close_receipt [20:21:02]MH_GetDate [20:21:02]Write to MH i2c: F0 00 00 05 0E 02 [20:21:02]Write i2c OK [20:21:02]MH_I2C_Read... [20:21:02]Read from MH i2c: F0 [20:21:02]MH_I2C_Read... [20:21:02]Read from MH i2c: F0 09 00 [20:21:02]MH_I2C_Read... [20:21:02]Read from MH i2c: F0 09 00 05 0E 00 AF C7 43 66 FC 21 6F 64 1A [20:21:02]GetLastDocTimeStamp 1715717867 [20:21:02]current date 1715718063 [20:21:02]FM_GetShiftState [20:21:02]SAM_PROTO_GetShiftState [20:21:02]wFMCommunicate request_size=4 [20:21:02]MH_SAM_APDU [20:21:02]CAPDU: 80 13 01 00 [20:21:02]Write to MH i2c: E2 08 00 06 0E 80 13 01 00 00 00 00 00 91 [20:21:02]Write i2c OK [20:21:02]MH_I2C_Read... [20:21:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:02]Read from MH i2c: E2 [20:21:02]MH_I2C_Read... [20:21:02]Read from MH i2c: E2 0E 00 [20:21:02]MH_I2C_Read... [20:21:02]Read from MH i2c: E2 0E 00 06 0E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 59 [20:21:02]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:21:02]wFMCommunicate OK [20:21:02]SAM_PROTO_GetShiftState done [20:21:02]FM_GetShiftState done [20:21:02]opened in 1715646054 [20:21:02]opened+sec_in_day 1715732454 [20:21:02]quantity*price = 60058 [20:21:02]sum+1 = 60060 [20:21:02]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 СНО: Общий режим Чек 159 14.05.2024 20:21 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67152 ФПД: 124879839617430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T202103&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67152&fm=124879839617430&tin=02508201610067®Number=0000000000091845&sum=60000 [20:21:03]StoreToDocumentArchive [20:21:03]shift 355 fd 67152 [20:21:03]save to /storage/0355/doc_00067152 [20:21:03]save last doc name /storage/0355/doc_00067152 to /storage/kkm_last_doc_name [20:21:03]save OK [20:21:03]Clear old archive folders... [20:21:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:21:03]tlvbuf is 0038BE80 [20:21:03]SAM_PROTO_ClearQueue [20:21:03]wFMCommunicate request_size=4 [20:21:03]MH_SAM_APDU [20:21:03]CAPDU: 80 09 00 00 [20:21:03]Write to MH i2c: E2 08 00 13 0E 80 09 00 00 00 00 00 00 93 [20:21:03]Write i2c OK [20:21:03]MH_I2C_Read... [20:21:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:03]Read from MH i2c: E2 [20:21:03]MH_I2C_Read... [20:21:03]Read from MH i2c: E2 03 00 [20:21:03]MH_I2C_Read... [20:21:03]Read from MH i2c: E2 03 00 13 0E 00 90 00 95 [20:21:03]RAPDU: 90 00 [20:21:03]wFMCommunicate OK [20:21:03]SAM_PROTO_ClearQueue done [20:21:03]KKMCreateOFDPacket [20:21:03]OFDProtocolAddRootSTLVToBuf [20:21:03]FM_MakeSignedData [20:21:03]FM_MakeSignedData [20:21:03]SAM_PROTO_SignData [20:21:03]wFMCommunicate request_size=4 [20:21:03]MH_SAM_APDU [20:21:03]CAPDU: 80 0D 01 02 [20:21:03]Write to MH i2c: E2 08 00 14 0E 80 0D 01 02 00 00 00 00 9B [20:21:03]Write i2c OK [20:21:03]MH_I2C_Read... [20:21:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:03]Read from MH i2c: E2 [20:21:03]MH_I2C_Read... [20:21:03]Read from MH i2c: E2 03 00 [20:21:03]MH_I2C_Read... [20:21:03]Read from MH i2c: E2 03 00 14 0E 00 90 00 96 [20:21:03]RAPDU: 90 00 [20:21:03]wFMCommunicate OK [20:21:03]wFMCommunicate request_size=255 [20:21:03]MH_SAM_APDU [20:21:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9F 00 00 00 F4 03 04 00 AF C7 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 71 93 DA 7A [20:21:03]Write to MH i2c: E2 02 01 15 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 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 9F 00 00 00 F4 03 04 00 AF C7 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 71 93 DA 7A 00 00 D0 [20:21:03]Write i2c OK [20:21:03]MH_I2C_Read... [20:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:04]Read from MH i2c: E2 [20:21:04]MH_I2C_Read... [20:21:04]Read from MH i2c: E2 03 00 [20:21:04]MH_I2C_Read... [20:21:04]Read from MH i2c: E2 03 00 15 0E 00 90 00 97 [20:21:04]RAPDU: 90 00 [20:21:04]wFMCommunicate OK [20:21:04]wFMCommunicate request_size=7 [20:21:04]MH_SAM_APDU [20:21:04]CAPDU: 80 0D 02 02 02 E1 96 [20:21:04]Write to MH i2c: E2 0A 00 16 0E 80 0D 02 02 02 00 E1 96 00 00 19 [20:21:04]Write i2c OK [20:21:04]MH_I2C_Read... [20:21:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:04]Read from MH i2c: E2 [20:21:04]MH_I2C_Read... [20:21:04]Read from MH i2c: E2 03 00 [20:21:04]MH_I2C_Read... [20:21:04]Read from MH i2c: E2 03 00 16 0E 00 90 00 98 [20:21:04]RAPDU: 90 00 [20:21:04]wFMCommunicate OK [20:21:04]wFMCommunicate request_size=4 [20:21:04]MH_SAM_APDU [20:21:04]CAPDU: 80 0D 03 02 [20:21:04]Write to MH i2c: E2 08 00 17 0E 80 0D 03 02 00 00 00 00 A0 [20:21:04]Write i2c OK [20:21:04]MH_I2C_Read... [20:21:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:04]Read from MH i2c: E2 [20:21:04]MH_I2C_Read... [20:21:04]Read from MH i2c: E2 0B 00 [20:21:04]MH_I2C_Read... [20:21:04]Read from MH i2c: E2 0B 00 17 0E 00 82 07 82 A4 CC E5 9F FB 90 00 9B [20:21:04]RAPDU: 82 07 82 A4 CC E5 9F FB 90 00 [20:21:04]wFMCommunicate OK [20:21:04]SAM_PROTO_SignData done [20:21:04]FM_MakeSignedData done [20:21:04]CreateOFDProtocolMessage [20:21:04]wFMCommunicate request_size=4 [20:21:04]MH_SAM_APDU [20:21:04]CAPDU: 80 11 00 00 [20:21:04]Write to MH i2c: E2 08 00 18 0E 80 11 00 00 00 00 00 00 A0 [20:21:04]Write i2c OK [20:21:04]MH_I2C_Read... [20:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:04]Read from MH i2c: E2 [20:21:04]MH_I2C_Read... [20:21:04]Read from MH i2c: E2 17 00 [20:21:04]MH_I2C_Read... [20:21:04]Read from MH i2c: E2 17 00 18 0E 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:21: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:21:04]wFMCommunicate OK [20:21:04]CreateOFDProtocolMessage done [20:21:04]OFDSenderStorePacket 67152 [20:21:04]StoreOFDPacket docnum=67152 [20:21:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 3D 44 04 01 AF E6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9F 00 00 00 F4 03 04 00 AF C7 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 71 93 DA 7A E1 96 82 07 82 A4 CC E5 9F FB [20:21:04]CheckFolder [20:21:04]dirname=/storage/ofd_packets [20:21:04]CheckFolder done [20:21:04]ProducePacketName [20:21:04]name=ofd_packets/00067152 [20:21:04]NVStorageSaveData ofd_packets/00067152 [20:21:04]File name is /storage/ofd_packets/00067152 [20:21:04]Write 298 bytes [20:21:04]NVStorageSaveData done [20:21:04]OFDSenderStorePacket done [20:21:04]KKMCreateOFDPacket done [20:21:04]NVStorageSaveData kkm_last_timestamp [20:21:04]File name is /storage/kkm_last_timestamp [20:21:04]Write 4 bytes [20:21:04]NVStorageSaveData done [20:21:04]ExternCall_PrintAddStr [20:21:04]wPrintStart [20:21:04]Write to MH i2c: 01 00 00 19 0E 27 [20:21:04]Write i2c OK [20:21:04]MH_I2C_Read... [20:21:04]Read from MH i2c: 01 [20:21:04]MH_I2C_Read... [20:21:04]Read from MH i2c: 01 07 00 [20:21:04]MH_I2C_Read... [20:21:04]Read from MH i2c: 01 07 00 19 0E 00 00 00 00 00 FF 0F 3C [20:21:04]RasterBufferAndPrint [20:21:04]line Счет N : (1)507050 [20:21:04]line ИНН: 02508201610067 [20:21:04]line Контрольно-Кассовый Чек [20:21:04]line ПРОДАЖА [20:21:04]line ТРК (МРК, ГНК) : 31 [20:21:04]line Товар: 2710194210 [20:21:04]line ДТ-К-5 [20:21:04]line 8.040 * 74.70 [20:21:04]line = 600.59 [20:21:04]line НДС 12% НСП 1% [20:21:04]line > о реализуемом товаре [20:21:04]line ОКРУГЛЕНИЕ: -0.59 [20:21:04]line ИТОГО: 600.00 [20:21:04]line Внесено: 600.00 [20:21:04]line СДАЧА: 0.00 [20:21:04]line НСП 1% : 5.31 [20:21:04]line НДС 12% : 63.78 [20:21:04]line Наличными: 600.00 [20:21:04]line Безнал.: 0.00 [20:21:04]line Место: АЗС № 91 "Партнер Нефть" [20:21:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:21:04]line СНО: Общий режим [20:21:04]line Чек 159 14.05.2024 20:21 [20:21:04]line Смена: 355 ФФД: 1.0 [20:21:04]line ЗНМ: 0300000119 [20:21:04]line РНМ: 0000000000091845 [20:21:04]line Версия ККМ: 001 [20:21:04]line ФМ: 0000000000871829 [20:21:04]line ФД: 67152 [20:21:04]line ФПД: 124879839617430 [20:21:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T202103&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67152&fm=124879839617430&tin=02508201610067®Number=0000000000091845&sum=60000 [20:21:04]OFD Sender: Processing packet 67152 [packets to send 35, broken 34] [20:21:04]ProducePacketName [20:21:04]name=ofd_packets/00067152 [20:21:04]OFD Sender: To server: pG, [20:21:04]CommunicateWithHost lk.salyk.kg:30040 [20:21:04]ConnectInit lk.salyk.kg [20:21:04]written 0, free lines is 4095 [20:21:04]Connected sock=10 [20:21:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 3D 44 04 01 AF E6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9F 00 00 00 F4 03 04 00 AF C7 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 71 93 DA 7A E1 96 82 07 82 A4 CC E5 9F FB [20:21: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 A0 5E 47 00 9B D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 06 01 00 F4 03 04 00 8E 6F 43 66 B6 04 01 00 00 C8 77 8D 89 D9 F1 05 3D [20:21:05]CommunicateWithHost err = 0 [20:21:05]CheckOFDResponse [20:21:05]1017 (14) - 77093643461234 [20:21:05]1041 (16) - 0000000000871829 [20:21:05]1040 (4) - 67152 [20:21:05]1012 (4) - 14.05.2024 14:05 [20:21:05]1206 (1) - 0 [20:21:05]OFD Sender: Remove packet 67152 [20:21:05]ProducePacketName [20:21:05]name=ofd_packets/00067152 [20:21:05]NVStorageDeleteData [20:21:05]Write to MH i2c: 01 00 00 43 0E 51 [20:21:05]Write i2c OK [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: 01 [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: 01 07 00 [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: 01 07 00 43 0E 00 00 00 00 00 DC 0C 40 [20:21:05]RasterBufferAndPrint [20:21:05]line [20:21:05]line [20:21:05]line [20:21:05]line [20:21:05]line [20:21:05]written 0, free lines is 3298 [20:21:05]MH_Cut [20:21:05]Write to MH i2c: D1 01 00 4A 0E 01 2A [20:21:05]Write i2c OK [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: D1 [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: D1 01 00 [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: D1 01 00 4A 0E 00 29 [20:21:05]Write to MH i2c: 01 00 00 4B 0E 59 [20:21:05]Write i2c OK [20:21:05]MH_I2C_Read... [20:21:05]OFD Sender: No OFD packet to send [20:21:05]*** Cut start [20:21:05]*** Purtial cut [20:21:05]*** CUTSNS_PIN = 0 [20:21:06]*** Stage 1: CUTSNS_PIN = 1 [20:21:07]Read from MH i2c: 01 [20:21:07]MH_I2C_Read... [20:21:07]*** Stop cut motor [20:21:07]*** Cut end [20:21:07]Read from MH i2c: 01 07 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: 01 07 00 4B 0E 00 00 00 00 00 FF 0F 6E [20:21:07]process_action close_receipt done [20:21:07]requested_data is exist [20:21:07]produce_requested_data [20:21:07]requested_item fm.sn is exist - process it [20:21:07]wFMCommunicate request_size=4 [20:21:07]MH_SAM_APDU [20:21:07]CAPDU: 80 11 00 00 [20:21:07]Write to MH i2c: E2 08 00 4C 0E 80 11 00 00 00 00 00 00 D4 [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:07]Read from MH i2c: E2 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 17 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 17 00 4C 0E 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:21:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:21:07]wFMCommunicate OK [20:21:07]requested_item fd.num is exist - process it [20:21:07]SAM_PROTO_GetFieldsCounters [20:21:07]wFMCommunicate request_size=4 [20:21:07]MH_SAM_APDU [20:21:07]CAPDU: 80 13 00 00 [20:21:07]Write to MH i2c: E2 08 00 4D 0E 80 13 00 00 00 00 00 00 D7 [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:08]Read from MH i2c: E2 [20:21:08]MH_I2C_Read... [20:21:08]Read from MH i2c: E2 62 00 [20:21:08]MH_I2C_Read... [20:21:08]Read from MH i2c: E2 62 00 4D 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 50 06 01 00 0E 04 04 00 63 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 95 [20:21: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 50 06 01 00 0E 04 04 00 63 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 [20:21:08]wFMCommunicate OK [20:21:08]SAM_PROTO_GetFieldsCounters done [20:21:08]requested_item shift.num is exist - process it [20:21:08]requested_item shift.opened is exist - process it [20:21:08]req_shift_opened [20:21:08]FM_GetShiftState [20:21:08]SAM_PROTO_GetShiftState [20:21:08]wFMCommunicate request_size=4 [20:21:08]MH_SAM_APDU [20:21:08]CAPDU: 80 13 01 00 [20:21:08]Write to MH i2c: E2 08 00 4E 0E 80 13 01 00 00 00 00 00 D9 [20:21:08]Write i2c OK [20:21:08]MH_I2C_Read... [20:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:08]Read from MH i2c: E2 [20:21:08]MH_I2C_Read... [20:21:08]Read from MH i2c: E2 0E 00 [20:21:08]MH_I2C_Read... [20:21:08]Read from MH i2c: E2 0E 00 4E 0E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A1 [20:21:08]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:21:08]wFMCommunicate OK [20:21:08]SAM_PROTO_GetShiftState done [20:21:08]FM_GetShiftState done [20:21:08]req_shift_opened done [20:21:08]requested_item shift.open_date is exist - process it [20:21:08]req_shift_open_date [20:21:08]req_shift_open_date done [20:21:08]produce_requested_data done [20:21:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67152,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [20:21:08]process_action_free close_receipt [20:21:08]json_value_free [20:21:08]json_value_free done [20:21:08]process_json_proto returns [20:21:08]Send response to host [20:21:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67152,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [20:21:08]free response buf [20:21:08]execute_script done [20:21:08]execute_script returns [20:21:08]free content buf [20:21:08]Sock 7.Close socket [20:21:08]Sock 7.Thread stoped [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:48]accept exits with 9 [20:21:48]New connection [20:21:48]New thread 3066731876 created [20:21:48]Thread 3066588516 joined [20:21:48]Waiting for new connection... [20:21:48] Sock 9.Parse request [20:21:48]Sock 9.Check first char [20:21:48]Sock 9.First char is OK [20:21:48]request: POST /json_proto HTTP/1.0 [20:21:48]Method: POST [20:21:48]URL: /json_proto [20:21:48]Method is POST - this is cgi request [20:21:48]url: /json_proto [20:21:48]query_string will be loaded in cgi processing [20:21:48]execute_cgi json_proto POST (null) [20:21:48]execute_cgi path=json_proto method=POST [20:21:48]POST find Content-Length [20:21:48]Host: 172.17.41.195:8080 [20:21:48]Content-Length: 677 [20:21:48]Content-Type: application/json [20:21:48] [20:21:48]POST finish read [20:21:48]Found Content-Length = 677 [20:21:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507051", "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:21:48]execute_script... [20:21: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)507051", "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:21:48]POST & json_proto [20:21:48]process_json_proto [20:21:48]json parsed OK: [20:21:48]protocol is kg_v1.0 [20:21:48]action value=close_receipt [20:21:48]process_action close_receipt [20:21:48]cmd_close_receipt [20:21:48]MH_GetDate [20:21:48]Write to MH i2c: F0 00 00 4F 0E 4C [20:21:48]Write i2c OK [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: F0 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: F0 09 00 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: F0 09 00 4F 0E 00 DD C7 43 66 FC 21 6F 64 92 [20:21:48]GetLastDocTimeStamp 1715718063 [20:21:48]current date 1715718109 [20:21:48]FM_GetShiftState [20:21:48]SAM_PROTO_GetShiftState [20:21:48]wFMCommunicate request_size=4 [20:21:48]MH_SAM_APDU [20:21:48]CAPDU: 80 13 01 00 [20:21:48]Write to MH i2c: E2 08 00 50 0E 80 13 01 00 00 00 00 00 DB [20:21:48]Write i2c OK [20:21:48]MH_I2C_Read... [20:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:48]Read from MH i2c: E2 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: E2 0E 00 [20:21:48]MH_I2C_Read... [20:21:48]Read from MH i2c: E2 0E 00 50 0E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 A3 [20:21:48]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:21:48]wFMCommunicate OK [20:21:48]SAM_PROTO_GetShiftState done [20:21:48]FM_GetShiftState done [20:21:48]opened in 1715646054 [20:21:48]opened+sec_in_day 1715732454 [20:21:48]quantity*price = 40013 [20:21:48]sum+1 = 40014 [20:21:48]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 СНО: Общий режим Чек 160 14.05.2024 20:21 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67153 ФПД: 82949080651661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T202149&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67153&fm=82949080651661&tin=02508201610067®Number=0000000000091845&sum=40000 [20:21:50]StoreToDocumentArchive [20:21:50]shift 355 fd 67153 [20:21:50]save to /storage/0355/doc_00067153 [20:21:50]save last doc name /storage/0355/doc_00067153 to /storage/kkm_last_doc_name [20:21:50]save OK [20:21:50]Clear old archive folders... [20:21:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:21:50]tlvbuf is 0030B0D0 [20:21:50]SAM_PROTO_ClearQueue [20:21:50]wFMCommunicate request_size=4 [20:21:50]MH_SAM_APDU [20:21:50]CAPDU: 80 09 00 00 [20:21:50]Write to MH i2c: E2 08 00 5D 0E 80 09 00 00 00 00 00 00 DD [20:21:50]Write i2c OK [20:21:50]MH_I2C_Read... [20:21:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:50]Read from MH i2c: E2 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 03 00 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 03 00 5D 0E 00 90 00 DF [20:21:50]RAPDU: 90 00 [20:21:50]wFMCommunicate OK [20:21:50]SAM_PROTO_ClearQueue done [20:21:50]KKMCreateOFDPacket [20:21:50]OFDProtocolAddRootSTLVToBuf [20:21:50]FM_MakeSignedData [20:21:50]FM_MakeSignedData [20:21:50]SAM_PROTO_SignData [20:21:50]wFMCommunicate request_size=4 [20:21:50]MH_SAM_APDU [20:21:50]CAPDU: 80 0D 01 02 [20:21:50]Write to MH i2c: E2 08 00 5E 0E 80 0D 01 02 00 00 00 00 E5 [20:21:50]Write i2c OK [20:21:50]MH_I2C_Read... [20:21:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:50]Read from MH i2c: E2 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 03 00 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 03 00 5E 0E 00 90 00 E0 [20:21:50]RAPDU: 90 00 [20:21:50]wFMCommunicate OK [20:21:50]wFMCommunicate request_size=255 [20:21:50]MH_SAM_APDU [20:21:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 DD C7 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 4B [20:21:50]Write to MH i2c: E2 02 01 5F 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 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 A0 00 00 00 F4 03 04 00 DD C7 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 4B 00 00 44 [20:21:50]Write i2c OK [20:21:50]MH_I2C_Read... [20:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:50]Read from MH i2c: E2 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 03 00 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 03 00 5F 0E 00 90 00 E1 [20:21:50]RAPDU: 90 00 [20:21:50]wFMCommunicate OK [20:21:50]wFMCommunicate request_size=10 [20:21:50]MH_SAM_APDU [20:21:50]CAPDU: 80 0D 02 02 05 71 16 7C 97 8D [20:21:50]Write to MH i2c: E2 0D 00 60 0E 80 0D 02 02 05 00 71 16 7C 97 8D 00 00 19 [20:21:50]Write i2c OK [20:21:50]MH_I2C_Read... [20:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:50]Read from MH i2c: E2 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 03 00 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 03 00 60 0E 00 90 00 E2 [20:21:50]RAPDU: 90 00 [20:21:50]wFMCommunicate OK [20:21:50]wFMCommunicate request_size=4 [20:21:50]MH_SAM_APDU [20:21:50]CAPDU: 80 0D 03 02 [20:21:50]Write to MH i2c: E2 08 00 61 0E 80 0D 03 02 00 00 00 00 EA [20:21:50]Write i2c OK [20:21:50]MH_I2C_Read... [20:21:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:50]Read from MH i2c: E2 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 0B 00 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 0B 00 61 0E 00 93 ED 25 C8 3C 2C 09 31 90 00 FA [20:21:50]RAPDU: 93 ED 25 C8 3C 2C 09 31 90 00 [20:21:50]wFMCommunicate OK [20:21:50]SAM_PROTO_SignData done [20:21:50]FM_MakeSignedData done [20:21:50]CreateOFDProtocolMessage [20:21:50]wFMCommunicate request_size=4 [20:21:50]MH_SAM_APDU [20:21:50]CAPDU: 80 11 00 00 [20:21:50]Write to MH i2c: E2 08 00 62 0E 80 11 00 00 00 00 00 00 EA [20:21:50]Write i2c OK [20:21:50]MH_I2C_Read... [20:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:50]Read from MH i2c: E2 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 17 00 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: E2 17 00 62 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 40 [20:21: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:21:50]wFMCommunicate OK [20:21:50]CreateOFDProtocolMessage done [20:21:50]OFDSenderStorePacket 67153 [20:21:50]StoreOFDPacket docnum=67153 [20:21: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 80 B7 07 01 0D 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 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 A0 00 00 00 F4 03 04 00 DD C7 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 4B 71 16 7C 97 8D 93 ED 25 C8 3C 2C 09 31 [20:21:50]CheckFolder [20:21:50]dirname=/storage/ofd_packets [20:21:50]CheckFolder done [20:21:50]ProducePacketName [20:21:50]name=ofd_packets/00067153 [20:21:50]NVStorageSaveData ofd_packets/00067153 [20:21:50]File name is /storage/ofd_packets/00067153 [20:21:50]Write 301 bytes [20:21:50]NVStorageSaveData done [20:21:50]OFDSenderStorePacket done [20:21:50]KKMCreateOFDPacket done [20:21:50]NVStorageSaveData kkm_last_timestamp [20:21:50]File name is /storage/kkm_last_timestamp [20:21:50]Write 4 bytes [20:21:50]NVStorageSaveData done [20:21:50]ExternCall_PrintAddStr [20:21:50]wPrintStart [20:21:50]Write to MH i2c: 01 00 00 63 0E 71 [20:21:50]Write i2c OK [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: 01 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: 01 07 00 [20:21:50]MH_I2C_Read... [20:21:50]Read from MH i2c: 01 07 00 63 0E 00 00 00 00 00 FF 0F 86 [20:21:50]RasterBufferAndPrint [20:21:50]line Счет N : (1)507051 [20:21:50]line ИНН: 02508201610067 [20:21:50]line Контрольно-Кассовый Чек [20:21:50]line ПРОДАЖА [20:21:50]line ТРК (МРК, ГНК) : 43 [20:21:50]line Товар: 2710124130 [20:21:50]line Аи-92-К-5 [20:21:50]line 5.990 * 66.80 [20:21:50]line = 400.13 [20:21:50]line НДС 12% НСП 1% [20:21:50]line > о реализуемом товаре [20:21:50]line ОКРУГЛЕНИЕ: -0.13 [20:21:50]line ИТОГО: 400.00 [20:21:50]line Внесено: 400.00 [20:21:50]line СДАЧА: 0.00 [20:21:50]line НСП 1% : 3.54 [20:21:50]line НДС 12% : 42.49 [20:21:50]line Наличными: 400.00 [20:21:50]line Безнал.: 0.00 [20:21:50]line Место: АЗС № 91 "Партнер Нефть" [20:21:50]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:21:50]line СНО: Общий режим [20:21:50]line Чек 160 14.05.2024 20:21 [20:21:50]line Смена: 355 ФФД: 1.0 [20:21:50]line ЗНМ: 0300000119 [20:21:50]line РНМ: 0000000000091845 [20:21:50]line Версия ККМ: 001 [20:21:50]line ФМ: 0000000000871829 [20:21:50]line ФД: 67153 [20:21:50]line ФПД: 82949080651661 [20:21:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T202149&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67153&fm=82949080651661&tin=02508201610067®Number=0000000000091845&sum=40000 [20:21:50]written 0, free lines is 4095 [20:21:50]OFD Sender: Processing packet 67153 [packets to send 35, broken 34] [20:21:50]ProducePacketName [20:21:50]name=ofd_packets/00067153 [20:21:50]OFD Sender: To server: pG, [20:21:50]CommunicateWithHost lk.salyk.kg:30040 [20:21:50]ConnectInit lk.salyk.kg [20:21:51]Connected sock=10 [20:21:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 80 B7 07 01 0D 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 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 A0 00 00 00 F4 03 04 00 DD C7 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 4B 71 16 7C 97 8D 93 ED 25 C8 3C 2C 09 31 [20:21:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 E8 0E 47 00 40 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 51 06 01 00 F4 03 04 00 BC 6F 43 66 B6 04 01 00 00 E3 5C 3B 32 3C 1F 27 3C [20:21:51]CommunicateWithHost err = 0 [20:21:51]CheckOFDResponse [20:21:51]1017 (14) - 77093643461234 [20:21:51]1041 (16) - 0000000000871829 [20:21:51]1040 (4) - 67153 [20:21:51]1012 (4) - 14.05.2024 14:05 [20:21:51]1206 (1) - 0 [20:21:51]OFD Sender: Remove packet 67153 [20:21:51]ProducePacketName [20:21:51]name=ofd_packets/00067153 [20:21:51]NVStorageDeleteData [20:21:51]Write to MH i2c: 01 00 00 8D 0E 9B [20:21:51]Write i2c OK [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: 01 [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: 01 07 00 [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: 01 07 00 8D 0E 00 00 00 00 00 CB 0C 79 [20:21:51]RasterBufferAndPrint [20:21:51]line [20:21:51]line [20:21:51]line [20:21:51]line [20:21:51]line [20:21:51]written 0, free lines is 3284 [20:21:51]MH_Cut [20:21:51]Write to MH i2c: D1 01 00 94 0E 01 74 [20:21:51]Write i2c OK [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: D1 [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: D1 01 00 [20:21:51]MH_I2C_Read... [20:21:51]Read from MH i2c: D1 01 00 94 0E 00 73 [20:21:51]Write to MH i2c: 01 00 00 95 0E A3 [20:21:51]Write i2c OK [20:21:51]MH_I2C_Read... [20:21:51]OFD Sender: No OFD packet to send [20:21:52]*** Cut start [20:21:52]*** Purtial cut [20:21:52]*** Stage 1: CUTSNS_PIN = 1 [20:21:52]Read from MH i2c: 01 [20:21:52]MH_I2C_Read... [20:21:52]*** Stop cut motor [20:21:52]*** Cut end [20:21:52]Read from MH i2c: 01 07 00 [20:21:52]MH_I2C_Read... [20:21:52]Read from MH i2c: 01 07 00 95 0E 00 00 00 00 00 FF 0F B8 [20:21:52]process_action close_receipt done [20:21:52]requested_data is exist [20:21:52]produce_requested_data [20:21:52]requested_item fm.sn is exist - process it [20:21:52]wFMCommunicate request_size=4 [20:21:52]MH_SAM_APDU [20:21:52]CAPDU: 80 11 00 00 [20:21:52]Write to MH i2c: E2 08 00 96 0E 80 11 00 00 00 00 00 00 1E [20:21:52]Write i2c OK [20:21:52]MH_I2C_Read... [20:21:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:52]Read from MH i2c: E2 [20:21:52]MH_I2C_Read... [20:21:52]Read from MH i2c: E2 17 00 [20:21:52]MH_I2C_Read... [20:21:52]Read from MH i2c: E2 17 00 96 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 74 [20:21: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:21:52]wFMCommunicate OK [20:21:52]requested_item fd.num is exist - process it [20:21:52]SAM_PROTO_GetFieldsCounters [20:21:52]wFMCommunicate request_size=4 [20:21:52]MH_SAM_APDU [20:21:52]CAPDU: 80 13 00 00 [20:21:52]Write to MH i2c: E2 08 00 97 0E 80 13 00 00 00 00 00 00 21 [20:21:52]Write i2c OK [20:21:52]MH_I2C_Read... [20:21:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:52]Read from MH i2c: E2 [20:21:52]MH_I2C_Read... [20:21:52]Read from MH i2c: E2 62 00 [20:21:52]MH_I2C_Read... [20:21:52]Read from MH i2c: E2 62 00 97 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 51 06 01 00 0E 04 04 00 63 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 E3 [20:21: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 51 06 01 00 0E 04 04 00 63 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 [20:21:52]wFMCommunicate OK [20:21:52]SAM_PROTO_GetFieldsCounters done [20:21:52]requested_item shift.num is exist - process it [20:21:52]requested_item shift.opened is exist - process it [20:21:52]req_shift_opened [20:21:52]FM_GetShiftState [20:21:52]SAM_PROTO_GetShiftState [20:21:52]wFMCommunicate request_size=4 [20:21:52]MH_SAM_APDU [20:21:52]CAPDU: 80 13 01 00 [20:21:52]Write to MH i2c: E2 08 00 98 0E 80 13 01 00 00 00 00 00 23 [20:21:52]Write i2c OK [20:21:52]MH_I2C_Read... [20:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:52]Read from MH i2c: E2 [20:21:52]MH_I2C_Read... [20:21:52]Read from MH i2c: E2 0E 00 [20:21:52]MH_I2C_Read... [20:21:52]Read from MH i2c: E2 0E 00 98 0E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 EB [20:21:52]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:21:52]wFMCommunicate OK [20:21:52]SAM_PROTO_GetShiftState done [20:21:52]FM_GetShiftState done [20:21:52]req_shift_opened done [20:21:52]requested_item shift.open_date is exist - process it [20:21:52]req_shift_open_date [20:21:52]req_shift_open_date done [20:21:52]produce_requested_data done [20:21:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67153,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [20:21:52]process_action_free close_receipt [20:21:52]json_value_free [20:21:52]json_value_free done [20:21:52]process_json_proto returns [20:21:52]Send response to host [20:21:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67153,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [20:21:52]free response buf [20:21:52]execute_script done [20:21:52]execute_script returns [20:21:52]free content buf [20:21:52]Sock 9.Close socket [20:21:52]Sock 9.Thread stoped [20:21:56]OFD Sender: No OFD packet to send [20:22:01]OFD Sender: No OFD packet to send [20:22:06]OFD Sender: No OFD packet to send [20:22:11]OFD Sender: No OFD packet to send [20:22:16]OFD Sender: No OFD packet to send [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:31]OFD Sender: No OFD packet to send [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]accept exits with 7 [20:22:51]New connection [20:22:51]New thread 3066588516 created [20:22:51]Thread 3066731876 joined [20:22:51]Waiting for new connection... [20:22:51] Sock 7.Parse request [20:22:51]Sock 7.Check first char [20:22:51]Sock 7.First char is OK [20:22:51]request: POST /json_proto HTTP/1.0 [20:22:51]Method: POST [20:22:51]URL: /json_proto [20:22:51]Method is POST - this is cgi request [20:22:51]url: /json_proto [20:22:51]query_string will be loaded in cgi processing [20:22:51]execute_cgi json_proto POST (null) [20:22:51]execute_cgi path=json_proto method=POST [20:22:51]POST find Content-Length [20:22:51]Host: 172.17.41.195:8080 [20:22:51]Content-Length: 1179 [20:22:51]Content-Type: application/json [20:22:51] [20:22:51]POST finish read [20:22:51]Found Content-Length = 1179 [20:22:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507049\u000A14.05.2024 20: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 60.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 4482.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:51]execute_script... [20:22:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507049\u000A14.05.2024 20: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 60.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 4482.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:51]POST & json_proto [20:22:51]process_json_proto [20:22:51]json parsed OK: [20:22:51]protocol is kg_v1.0 [20:22:51]action value=print_text [20:22:51]process_action print_text [20:22:51]cmd_print_text [20:22:51]ExternCall_PrintAddStr [20:22:51]wPrintStart [20:22:51]Write to MH i2c: 01 00 00 99 0E A7 [20:22:51]Write i2c OK [20:22:51]MH_I2C_Read... [20:22:51]Read from MH i2c: 01 [20:22:51]MH_I2C_Read... [20:22:51]Read from MH i2c: 01 07 00 [20:22:51]MH_I2C_Read... [20:22:51]Read from MH i2c: 01 07 00 99 0E 00 00 00 00 00 FF 0F BC [20:22:51]RasterBufferAndPrint [20:22:51]line *****ТОВАРНЫЙ ЧЕК***** [20:22:51]line АЗС-91 [20:22:51]line Партнер нефть [20:22:51]line 02508201610067 [20:22:51]line Кассир : Адишов И. [20:22:51]line Счет N : (1)507049 [20:22:51]line 14.05.2024 20:05 [20:22:51]line ПРОДАЖА [20:22:51]line ТРК (МРК, ГНК): 21 [20:22:51]line Вид ГСМ : 2710194210 [20:22:51]line ДТ-К-5 [20:22:51]line 60.000 x 74.70 [20:22:51]line ИТОГ: 4482.00 [20:22:51]line Тип оплаты: Талоны: Топливная Карта [20:22:51]line 02750 [20:22:51]line ______________________ [20:22:51]line (подпись) [20:22:51]written 0, free lines is 4095 [20:22:51]Write to MH i2c: 01 00 00 AD 0E BB [20:22:51]Write i2c OK [20:22:51]MH_I2C_Read... [20:22:51]Read from MH i2c: 01 [20:22:51]MH_I2C_Read... [20:22:51]Read from MH i2c: 01 07 00 [20:22:51]MH_I2C_Read... [20:22:51]Read from MH i2c: 01 07 00 AD 0E 00 00 00 00 00 0D 0E DD [20:22:51]RasterBufferAndPrint [20:22:51]line [20:22:51]line [20:22:51]line [20:22:51]line [20:22:51]line [20:22:51]written 0, free lines is 3598 [20:22:51]MH_Cut [20:22:51]Write to MH i2c: D1 01 00 B4 0E 01 94 [20:22:51]Write i2c OK [20:22:51]MH_I2C_Read... [20:22:51]Read from MH i2c: D1 [20:22:51]MH_I2C_Read... [20:22:51]Read from MH i2c: D1 01 00 [20:22:51]MH_I2C_Read... [20:22:51]Read from MH i2c: D1 01 00 B4 0E 00 93 [20:22:51]Write to MH i2c: 01 00 00 B5 0E C3 [20:22:51]Write i2c OK [20:22:51]MH_I2C_Read... [20:22:51]OFD Sender: No OFD packet to send [20:22:52]*** Cut start [20:22:52]*** Purtial cut [20:22:52]*** CUTSNS_PIN = 0 [20:22:52]*** Stage 1: CUTSNS_PIN = 1 [20:22:54]Read from MH i2c: 01 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: 01 07 00 [20:22:54]MH_I2C_Read... [20:22:54]*** Stop cut motor [20:22:54]*** Cut end [20:22:54]Read from MH i2c: 01 07 00 B5 0E 00 00 00 00 00 FF 0F D8 [20:22:54]process_action print_text done [20:22:54]requested_data is exist [20:22:54]produce_requested_data [20:22:54]requested_item fm.sn is exist - process it [20:22:54]wFMCommunicate request_size=4 [20:22:54]MH_SAM_APDU [20:22:54]CAPDU: 80 11 00 00 [20:22:54]Write to MH i2c: E2 08 00 B6 0E 80 11 00 00 00 00 00 00 3E [20:22:54]Write i2c OK [20:22:54]MH_I2C_Read... [20:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:54]Read from MH i2c: E2 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: E2 17 00 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: E2 17 00 B6 0E 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:22: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:22:54]wFMCommunicate OK [20:22:54]requested_item fd.num is exist - process it [20:22:54]SAM_PROTO_GetFieldsCounters [20:22:54]wFMCommunicate request_size=4 [20:22:54]MH_SAM_APDU [20:22:54]CAPDU: 80 13 00 00 [20:22:54]Write to MH i2c: E2 08 00 B7 0E 80 13 00 00 00 00 00 00 41 [20:22:54]Write i2c OK [20:22:54]MH_I2C_Read... [20:22:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:22:54]Read from MH i2c: E2 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: E2 62 00 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: E2 62 00 B7 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 51 06 01 00 0E 04 04 00 63 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 03 [20:22: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 51 06 01 00 0E 04 04 00 63 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 [20:22:54]wFMCommunicate OK [20:22:54]SAM_PROTO_GetFieldsCounters done [20:22:54]requested_item shift.num is exist - process it [20:22:54]requested_item shift.opened is exist - process it [20:22:54]req_shift_opened [20:22:54]FM_GetShiftState [20:22:54]SAM_PROTO_GetShiftState [20:22:54]wFMCommunicate request_size=4 [20:22:54]MH_SAM_APDU [20:22:54]CAPDU: 80 13 01 00 [20:22:54]Write to MH i2c: E2 08 00 B8 0E 80 13 01 00 00 00 00 00 43 [20:22:54]Write i2c OK [20:22:54]MH_I2C_Read... [20:22:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:54]Read from MH i2c: E2 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: E2 0E 00 [20:22:54]MH_I2C_Read... [20:22:54]Read from MH i2c: E2 0E 00 B8 0E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 0B [20:22:54]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:22:54]wFMCommunicate OK [20:22:54]SAM_PROTO_GetShiftState done [20:22:54]FM_GetShiftState done [20:22:54]req_shift_opened done [20:22:54]requested_item shift.open_date is exist - process it [20:22:54]req_shift_open_date [20:22:54]req_shift_open_date done [20:22:54]produce_requested_data done [20:22:54]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67153,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [20:22:54]process_action_free print_text [20:22:54]json_value_free [20:22:54]json_value_free done [20:22:54]process_json_proto returns [20:22:54]Send response to host [20:22:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67153,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [20:22:54]free response buf [20:22:54]execute_script done [20:22:54]execute_script returns [20:22:54]free content buf [20:22:54]Sock 7.Close socket [20:22:54]Sock 7.Thread stoped [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:15]accept exits with 9 [20:24:15]New connection [20:24:15]New thread 3066731876 created [20:24:15]Thread 3066588516 joined [20:24:15]Waiting for new connection... [20:24:15] Sock 9.Parse request [20:24:15]Sock 9.Check first char [20:24:15]Sock 9.First char is OK [20:24:15]request: POST /json_proto HTTP/1.0 [20:24:15]Method: POST [20:24:15]URL: /json_proto [20:24:15]Method is POST - this is cgi request [20:24:15]url: /json_proto [20:24:15]query_string will be loaded in cgi processing [20:24:15]execute_cgi json_proto POST (null) [20:24:15]execute_cgi path=json_proto method=POST [20:24:15]POST find Content-Length [20:24:15]Host: 172.17.41.195:8080 [20:24:15]Content-Length: 1180 [20:24:15]Content-Type: application/json [20:24:15] [20:24:15]POST finish read [20:24:15]Found Content-Length = 1180 [20:24: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)507048\u000A14.05.2024 20:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:15]execute_script... [20:24: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)507048\u000A14.05.2024 20:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:15]POST & json_proto [20:24:15]process_json_proto [20:24:15]json parsed OK: [20:24:15]protocol is kg_v1.0 [20:24:15]action value=print_text [20:24:15]process_action print_text [20:24:15]cmd_print_text [20:24:15]ExternCall_PrintAddStr [20:24:15]wPrintStart [20:24:15]Write to MH i2c: 01 00 00 B9 0E C7 [20:24:15]Write i2c OK [20:24:15]MH_I2C_Read... [20:24:15]Read from MH i2c: 01 [20:24:15]MH_I2C_Read... [20:24:15]Read from MH i2c: 01 07 00 [20:24:15]MH_I2C_Read... [20:24:15]Read from MH i2c: 01 07 00 B9 0E 00 00 00 00 00 FF 0F DC [20:24:15]RasterBufferAndPrint [20:24:15]line *****ТОВАРНЫЙ ЧЕК***** [20:24:15]line АЗС-91 [20:24:15]line Партнер нефть [20:24:15]line 02508201610067 [20:24:15]line Кассир : Адишов И. [20:24:15]line Счет N : (1)507048 [20:24:15]line 14.05.2024 20:06 [20:24:15]line ПРОДАЖА [20:24:15]line ТРК (МРК, ГНК): 11 [20:24:15]line Вид ГСМ : 2710194210 [20:24:15]line ДТ-К-5 [20:24:15]line 100.000 x 74.70 [20:24:15]line ИТОГ: 7470.00 [20:24:15]line Тип оплаты: Талоны: Топливная Карта [20:24:15]line 02750 [20:24:15]line ______________________ [20:24:15]line (подпись) [20:24:15]written 0, free lines is 4095 [20:24:15]Write to MH i2c: 01 00 00 CD 0E DB [20:24:15]Write i2c OK [20:24:15]MH_I2C_Read... [20:24:15]Read from MH i2c: 01 [20:24:15]MH_I2C_Read... [20:24:15]Read from MH i2c: 01 07 00 [20:24:15]MH_I2C_Read... [20:24:15]Read from MH i2c: 01 07 00 CD 0E 00 00 00 00 00 0C 0E FC [20:24:15]RasterBufferAndPrint [20:24:15]line [20:24:15]line [20:24:15]line [20:24:15]line [20:24:15]line [20:24:15]written 0, free lines is 3598 [20:24:15]MH_Cut [20:24:15]Write to MH i2c: D1 01 00 D4 0E 01 B4 [20:24:15]Write i2c OK [20:24:15]MH_I2C_Read... [20:24:15]Read from MH i2c: D1 [20:24:15]MH_I2C_Read... [20:24:15]Read from MH i2c: D1 01 00 [20:24:15]MH_I2C_Read... [20:24:15]Read from MH i2c: D1 01 00 D4 0E 00 B3 [20:24:15]Write to MH i2c: 01 00 00 D5 0E E3 [20:24:15]Write i2c OK [20:24:15]MH_I2C_Read... [20:24:16]*** Cut start [20:24:16]*** Purtial cut [20:24:16]*** Stage 1: CUTSNS_PIN = 1 [20:24:16]Read from MH i2c: 01 [20:24:16]MH_I2C_Read... [20:24:16]Read from MH i2c: 01 07 00 [20:24:16]MH_I2C_Read... [20:24:16]*** Stop cut motor [20:24:16]*** Cut end [20:24:16]Read from MH i2c: 01 07 00 D5 0E 00 00 00 00 00 FF 0F F8 [20:24:16]process_action print_text done [20:24:16]requested_data is exist [20:24:16]produce_requested_data [20:24:16]requested_item fm.sn is exist - process it [20:24:16]wFMCommunicate request_size=4 [20:24:16]MH_SAM_APDU [20:24:16]CAPDU: 80 11 00 00 [20:24:16]Write to MH i2c: E2 08 00 D6 0E 80 11 00 00 00 00 00 00 5E [20:24:16]Write i2c OK [20:24:16]MH_I2C_Read... [20:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:16]Read from MH i2c: E2 [20:24:16]MH_I2C_Read... [20:24:16]Read from MH i2c: E2 17 00 [20:24:16]MH_I2C_Read... [20:24:16]Read from MH i2c: E2 17 00 D6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B4 [20:24: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:24:16]wFMCommunicate OK [20:24:16]requested_item fd.num is exist - process it [20:24:16]SAM_PROTO_GetFieldsCounters [20:24:16]wFMCommunicate request_size=4 [20:24:16]MH_SAM_APDU [20:24:16]CAPDU: 80 13 00 00 [20:24:16]Write to MH i2c: E2 08 00 D7 0E 80 13 00 00 00 00 00 00 61 [20:24:16]Write i2c OK [20:24:16]MH_I2C_Read... [20:24:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:16]Read from MH i2c: E2 [20:24:16]MH_I2C_Read... [20:24:16]Read from MH i2c: E2 62 00 [20:24:16]MH_I2C_Read... [20:24:16]Read from MH i2c: E2 62 00 D7 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 51 06 01 00 0E 04 04 00 63 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 23 [20:24: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 51 06 01 00 0E 04 04 00 63 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 [20:24:16]wFMCommunicate OK [20:24:16]SAM_PROTO_GetFieldsCounters done [20:24:16]requested_item shift.num is exist - process it [20:24:16]requested_item shift.opened is exist - process it [20:24:16]req_shift_opened [20:24:16]FM_GetShiftState [20:24:16]SAM_PROTO_GetShiftState [20:24:16]wFMCommunicate request_size=4 [20:24:16]MH_SAM_APDU [20:24:16]CAPDU: 80 13 01 00 [20:24:16]Write to MH i2c: E2 08 00 D8 0E 80 13 01 00 00 00 00 00 63 [20:24:16]Write i2c OK [20:24:16]MH_I2C_Read... [20:24:16]OFD Sender: No OFD packet to send [20:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:16]Read from MH i2c: E2 [20:24:16]MH_I2C_Read... [20:24:16]Read from MH i2c: E2 0E 00 [20:24:16]MH_I2C_Read... [20:24:16]Read from MH i2c: E2 0E 00 D8 0E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 2B [20:24:16]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:24:16]wFMCommunicate OK [20:24:16]SAM_PROTO_GetShiftState done [20:24:16]FM_GetShiftState done [20:24:16]req_shift_opened done [20:24:16]requested_item shift.open_date is exist - process it [20:24:16]req_shift_open_date [20:24:16]req_shift_open_date done [20:24:16]produce_requested_data done [20:24:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67153,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [20:24:16]process_action_free print_text [20:24:16]json_value_free [20:24:16]json_value_free done [20:24:16]process_json_proto returns [20:24:16]Send response to host [20:24:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67153,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [20:24:16]free response buf [20:24:16]execute_script done [20:24:16]execute_script returns [20:24:16]free content buf [20:24:16]Sock 9.Close socket [20:24:16]Sock 9.Thread stoped [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:57]OFD Sender: No OFD packet to send [20:25:02]OFD Sender: No OFD packet to send [20:25:07]OFD Sender: No OFD packet to send [20:25:12]OFD Sender: No OFD packet to send [20:25:17]OFD Sender: No OFD packet to send [20:25:22]OFD Sender: No OFD packet to send [20:25:27]OFD Sender: No OFD packet to send [20:25:32]OFD Sender: No OFD packet to send [20:25:37]OFD Sender: No OFD packet to send [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:53]accept exits with 7 [20:25:53]New connection [20:25:53]New thread 3066588516 created [20:25:53]Thread 3066731876 joined [20:25:53]Waiting for new connection... [20:25:53] Sock 7.Parse request [20:25:53]Sock 7.Check first char [20:25:53]Sock 7.First char is OK [20:25:53]request: POST /json_proto HTTP/1.0 [20:25:53]Method: POST [20:25:53]URL: /json_proto [20:25:53]Method is POST - this is cgi request [20:25:53]url: /json_proto [20:25:53]query_string will be loaded in cgi processing [20:25:53]execute_cgi json_proto POST (null) [20:25:53]execute_cgi path=json_proto method=POST [20:25:53]POST find Content-Length [20:25:53]Host: 172.17.41.195:8080 [20:25:53]Content-Length: 677 [20:25:53]Content-Type: application/json [20:25:53] [20:25:53]POST finish read [20:25:53]Found Content-Length = 677 [20:25:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507052", "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" : 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:25:53]execute_script... [20:25: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)507052", "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" : 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:25:53]POST & json_proto [20:25:53]process_json_proto [20:25:53]json parsed OK: [20:25:53]protocol is kg_v1.0 [20:25:53]action value=close_receipt [20:25:53]process_action close_receipt [20:25:53]cmd_close_receipt [20:25:53]MH_GetDate [20:25:53]Write to MH i2c: F0 00 00 D9 0E D6 [20:25:53]Write i2c OK [20:25:53]MH_I2C_Read... [20:25:53]Read from MH i2c: F0 [20:25:53]MH_I2C_Read... [20:25:53]Read from MH i2c: F0 09 00 [20:25:53]MH_I2C_Read... [20:25:53]Read from MH i2c: F0 09 00 D9 0E 00 D2 C8 43 66 FC 21 6F 64 12 [20:25:53]GetLastDocTimeStamp 1715718109 [20:25:53]current date 1715718354 [20:25:53]FM_GetShiftState [20:25:53]SAM_PROTO_GetShiftState [20:25:53]wFMCommunicate request_size=4 [20:25:53]MH_SAM_APDU [20:25:53]CAPDU: 80 13 01 00 [20:25:53]Write to MH i2c: E2 08 00 DA 0E 80 13 01 00 00 00 00 00 65 [20:25:53]Write i2c OK [20:25:53]MH_I2C_Read... [20:25:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:53]Read from MH i2c: E2 [20:25:53]MH_I2C_Read... [20:25:53]Read from MH i2c: E2 0E 00 [20:25:53]MH_I2C_Read... [20:25:53]Read from MH i2c: E2 0E 00 DA 0E 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 2D [20:25:53]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:25:53]wFMCommunicate OK [20:25:53]SAM_PROTO_GetShiftState done [20:25:53]FM_GetShiftState done [20:25:53]opened in 1715646054 [20:25:53]opened+sec_in_day 1715732454 [20:25:53]quantity*price = 30060 [20:25:53]sum+1 = 30061 [20:25:53]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 СНО: Общий режим Чек 161 14.05.2024 20:25 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67154 ФПД: 106987171639096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T202554&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67154&fm=106987171639096&tin=02508201610067®Number=0000000000091845&sum=30000 [20:25:54]StoreToDocumentArchive [20:25:54]shift 355 fd 67154 [20:25:54]save to /storage/0355/doc_00067154 [20:25:54]save last doc name /storage/0355/doc_00067154 to /storage/kkm_last_doc_name [20:25:54]save OK [20:25:54]Clear old archive folders... [20:25:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:25:54]tlvbuf is 0038CA90 [20:25:54]SAM_PROTO_ClearQueue [20:25:54]wFMCommunicate request_size=4 [20:25:54]MH_SAM_APDU [20:25:54]CAPDU: 80 09 00 00 [20:25:54]Write to MH i2c: E2 08 00 E7 0E 80 09 00 00 00 00 00 00 67 [20:25:54]Write i2c OK [20:25:54]MH_I2C_Read... [20:25:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:54]Read from MH i2c: E2 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: E2 03 00 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: E2 03 00 E7 0E 00 90 00 69 [20:25:54]RAPDU: 90 00 [20:25:54]wFMCommunicate OK [20:25:54]SAM_PROTO_ClearQueue done [20:25:54]KKMCreateOFDPacket [20:25:54]OFDProtocolAddRootSTLVToBuf [20:25:54]FM_MakeSignedData [20:25:54]FM_MakeSignedData [20:25:54]SAM_PROTO_SignData [20:25:54]wFMCommunicate request_size=4 [20:25:54]MH_SAM_APDU [20:25:54]CAPDU: 80 0D 01 02 [20:25:54]Write to MH i2c: E2 08 00 E8 0E 80 0D 01 02 00 00 00 00 6F [20:25:54]Write i2c OK [20:25:54]MH_I2C_Read... [20:25:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:54]Read from MH i2c: E2 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: E2 03 00 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: E2 03 00 E8 0E 00 90 00 6A [20:25:54]RAPDU: 90 00 [20:25:54]wFMCommunicate OK [20:25:54]wFMCommunicate request_size=255 [20:25:54]MH_SAM_APDU [20:25: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 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 A1 00 00 00 F4 03 04 00 D2 C8 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 61 [20:25:54]Write to MH i2c: E2 02 01 E9 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 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 A1 00 00 00 F4 03 04 00 D2 C8 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 61 00 00 11 [20:25:54]Write i2c OK [20:25:54]MH_I2C_Read... [20:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:54]Read from MH i2c: E2 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: E2 03 00 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: E2 03 00 E9 0E 00 90 00 6B [20:25:54]RAPDU: 90 00 [20:25:54]wFMCommunicate OK [20:25:54]wFMCommunicate request_size=10 [20:25:54]MH_SAM_APDU [20:25:54]CAPDU: 80 0D 02 02 05 4D E4 5C 6F 38 [20:25:54]Write to MH i2c: E2 0D 00 EA 0E 80 0D 02 02 05 00 4D E4 5C 6F 38 00 00 B0 [20:25:54]Write i2c OK [20:25:54]MH_I2C_Read... [20:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:54]Read from MH i2c: E2 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: E2 03 00 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: E2 03 00 EA 0E 00 90 00 6C [20:25:54]RAPDU: 90 00 [20:25:54]wFMCommunicate OK [20:25:54]wFMCommunicate request_size=4 [20:25:54]MH_SAM_APDU [20:25:54]CAPDU: 80 0D 03 02 [20:25:54]Write to MH i2c: E2 08 00 EB 0E 80 0D 03 02 00 00 00 00 74 [20:25:54]Write i2c OK [20:25:54]MH_I2C_Read... [20:25:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:55]Read from MH i2c: E2 [20:25:55]MH_I2C_Read... [20:25:55]Read from MH i2c: E2 0B 00 [20:25:55]MH_I2C_Read... [20:25:55]Read from MH i2c: E2 0B 00 EB 0E 00 73 2D FB 8D FC 1E 80 27 90 00 5E [20:25:55]RAPDU: 73 2D FB 8D FC 1E 80 27 90 00 [20:25:55]wFMCommunicate OK [20:25:55]SAM_PROTO_SignData done [20:25:55]FM_MakeSignedData done [20:25:55]CreateOFDProtocolMessage [20:25:55]wFMCommunicate request_size=4 [20:25:55]MH_SAM_APDU [20:25:55]CAPDU: 80 11 00 00 [20:25:55]Write to MH i2c: E2 08 00 EC 0E 80 11 00 00 00 00 00 00 74 [20:25:55]Write i2c OK [20:25:55]MH_I2C_Read... [20:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:55]Read from MH i2c: E2 [20:25:55]MH_I2C_Read... [20:25:55]Read from MH i2c: E2 17 00 [20:25:55]MH_I2C_Read... [20:25:55]Read from MH i2c: E2 17 00 EC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CA [20:25: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:25:55]wFMCommunicate OK [20:25:55]CreateOFDProtocolMessage done [20:25:55]OFDSenderStorePacket 67154 [20:25:55]StoreOFDPacket docnum=67154 [20:25: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 36 31 07 01 51 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A1 00 00 00 F4 03 04 00 D2 C8 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 61 4D E4 5C 6F 38 73 2D FB 8D FC 1E 80 27 [20:25:55]CheckFolder [20:25:55]dirname=/storage/ofd_packets [20:25:55]CheckFolder done [20:25:55]ProducePacketName [20:25:55]name=ofd_packets/00067154 [20:25:55]NVStorageSaveData ofd_packets/00067154 [20:25:55]File name is /storage/ofd_packets/00067154 [20:25:55]Write 301 bytes [20:25:55]NVStorageSaveData done [20:25:55]OFDSenderStorePacket done [20:25:55]KKMCreateOFDPacket done [20:25:55]NVStorageSaveData kkm_last_timestamp [20:25:55]File name is /storage/kkm_last_timestamp [20:25:55]Write 4 bytes [20:25:55]NVStorageSaveData done [20:25:55]ExternCall_PrintAddStr [20:25:55]wPrintStart [20:25:55]Write to MH i2c: 01 00 00 ED 0E FB [20:25:55]Write i2c OK [20:25:55]MH_I2C_Read... [20:25:55]Read from MH i2c: 01 [20:25:55]MH_I2C_Read... [20:25:55]Read from MH i2c: 01 07 00 [20:25:55]MH_I2C_Read... [20:25:55]Read from MH i2c: 01 07 00 ED 0E 00 00 00 00 00 FF 0F 10 [20:25:55]RasterBufferAndPrint [20:25:55]line Счет N : (1)507052 [20:25:55]line ИНН: 02508201610067 [20:25:55]line Контрольно-Кассовый Чек [20:25:55]line ПРОДАЖА [20:25:55]line ТРК (МРК, ГНК) : 13 [20:25:55]line Товар: 2710124130 [20:25:55]line Аи-92-К-5 [20:25:55]line 4.500 * 66.80 [20:25:55]line = 300.60 [20:25:55]line НДС 12% НСП 1% [20:25:55]line > о реализуемом товаре [20:25:55]line ОКРУГЛЕНИЕ: -0.60 [20:25:55]line ИТОГО: 300.00 [20:25:55]line Внесено: 300.00 [20:25:55]line СДАЧА: 0.00 [20:25:55]line НСП 1% : 2.66 [20:25:55]line НДС 12% : 31.92 [20:25:55]line Наличными: 300.00 [20:25:55]line Безнал.: 0.00 [20:25:55]line Место: АЗС № 91 "Партнер Нефть" [20:25:55]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:25:55]line СНО: Общий режим [20:25:55]line Чек 161 14.05.2024 20:25 [20:25:55]line Смена: 355 ФФД: 1.0 [20:25:55]line ЗНМ: 0300000119 [20:25:55]line РНМ: 0000000000091845 [20:25:55]line Версия ККМ: 001 [20:25:55]line ФМ: 0000000000871829 [20:25:55]line ФД: 67154 [20:25:55]line ФПД: 106987171639096 [20:25:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T202554&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67154&fm=106987171639096&tin=02508201610067®Number=0000000000091845&sum=30000 [20:25:55]written 0, free lines is 4095 [20:25:55]OFD Sender: Processing packet 67154 [packets to send 35, broken 34] [20:25:55]ProducePacketName [20:25:55]name=ofd_packets/00067154 [20:25:55]OFD Sender: To server: pG, [20:25:55]CommunicateWithHost lk.salyk.kg:30040 [20:25:55]ConnectInit lk.salyk.kg [20:25:55]Connected sock=10 [20:25: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 36 31 07 01 51 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A1 00 00 00 F4 03 04 00 D2 C8 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 61 4D E4 5C 6F 38 73 2D FB 8D FC 1E 80 27 [20:25:55]Write to MH i2c: 01 00 00 17 0F 26 [20:25:55]Write i2c OK [20:25:55]MH_I2C_Read... [20:25:55]Read from MH i2c: 01 [20:25:55]MH_I2C_Read... [20:25:55]Read from MH i2c: 01 07 00 [20:25:55]MH_I2C_Read... [20:25:55]Read from MH i2c: 01 07 00 17 0F 00 00 00 00 00 CD 0C 06 [20:25:55]RasterBufferAndPrint [20:25:55]line [20:25:55]line [20:25:55]line [20:25:55]line [20:25:55]line [20:25:55]written 0, free lines is 3286 [20:25:55]MH_Cut [20:25:55]Write to MH i2c: D1 01 00 1E 0F 01 FF [20:25:55]Write i2c OK [20:25:55]MH_I2C_Read... [20:25:55]Read from MH i2c: D1 [20:25:55]MH_I2C_Read... [20:25:55]Read from MH i2c: D1 01 00 [20:25:55]MH_I2C_Read... [20:25:55]Read from MH i2c: D1 01 00 1E 0F 00 FE [20:25:55]Write to MH i2c: 01 00 00 1F 0F 2E [20:25:55]Write i2c OK [20:25:55]MH_I2C_Read... [20:25: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 DC CA 47 00 0B 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 52 06 01 00 F4 03 04 00 B1 70 43 66 B6 04 01 00 00 C2 06 6B 67 59 13 5F 52 [20:25:55]CommunicateWithHost err = 0 [20:25:55]CheckOFDResponse [20:25:55]1017 (14) - 77093643461234 [20:25:55]1041 (16) - 0000000000871829 [20:25:55]1040 (4) - 67154 [20:25:55]1012 (4) - 14.05.2024 14:09 [20:25:55]1206 (1) - 0 [20:25:55]OFD Sender: Remove packet 67154 [20:25:55]ProducePacketName [20:25:55]name=ofd_packets/00067154 [20:25:55]NVStorageDeleteData [20:25:56]OFD Sender: No OFD packet to send [20:25:56]*** Cut start [20:25:56]*** Purtial cut [20:25:56]*** CUTSNS_PIN = 0 [20:25:56]*** Stage 1: CUTSNS_PIN = 1 [20:25:58]Read from MH i2c: 01 [20:25:58]MH_I2C_Read... [20:25:58]*** Stop cut motor [20:25:58]*** Cut end [20:25:58]Read from MH i2c: 01 07 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: 01 07 00 1F 0F 00 00 00 00 00 FF 0F 43 [20:25:58]process_action close_receipt done [20:25:58]requested_data is exist [20:25:58]produce_requested_data [20:25:58]requested_item fm.sn is exist - process it [20:25:58]wFMCommunicate request_size=4 [20:25:58]MH_SAM_APDU [20:25:58]CAPDU: 80 11 00 00 [20:25:58]Write to MH i2c: E2 08 00 20 0F 80 11 00 00 00 00 00 00 A9 [20:25:58]Write i2c OK [20:25:58]MH_I2C_Read... [20:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:58]Read from MH i2c: E2 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 17 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 17 00 20 0F 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:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:25:58]wFMCommunicate OK [20:25:58]requested_item fd.num is exist - process it [20:25:58]SAM_PROTO_GetFieldsCounters [20:25:58]wFMCommunicate request_size=4 [20:25:58]MH_SAM_APDU [20:25:58]CAPDU: 80 13 00 00 [20:25:58]Write to MH i2c: E2 08 00 21 0F 80 13 00 00 00 00 00 00 AC [20:25:58]Write i2c OK [20:25:58]MH_I2C_Read... [20:25:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:58]Read from MH i2c: E2 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 62 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 62 00 21 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 52 06 01 00 0E 04 04 00 63 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 72 [20:25: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 52 06 01 00 0E 04 04 00 63 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 [20:25:58]wFMCommunicate OK [20:25:58]SAM_PROTO_GetFieldsCounters done [20:25:58]requested_item shift.num is exist - process it [20:25:58]requested_item shift.opened is exist - process it [20:25:58]req_shift_opened [20:25:58]FM_GetShiftState [20:25:58]SAM_PROTO_GetShiftState [20:25:58]wFMCommunicate request_size=4 [20:25:58]MH_SAM_APDU [20:25:58]CAPDU: 80 13 01 00 [20:25:58]Write to MH i2c: E2 08 00 22 0F 80 13 01 00 00 00 00 00 AE [20:25:58]Write i2c OK [20:25:58]MH_I2C_Read... [20:25:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:58]Read from MH i2c: E2 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 0E 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 0E 00 22 0F 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 76 [20:25:58]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:25:58]wFMCommunicate OK [20:25:58]SAM_PROTO_GetShiftState done [20:25:58]FM_GetShiftState done [20:25:58]req_shift_opened done [20:25:58]requested_item shift.open_date is exist - process it [20:25:58]req_shift_open_date [20:25:58]req_shift_open_date done [20:25:58]produce_requested_data done [20:25:58]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67154,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [20:25:58]process_action_free close_receipt [20:25:58]json_value_free [20:25:58]json_value_free done [20:25:58]process_json_proto returns [20:25:58]Send response to host [20:25:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67154,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [20:25:58]free response buf [20:25:58]execute_script done [20:25:58]execute_script returns [20:25:58]free content buf [20:25:58]Sock 7.Close socket [20:25:58]Sock 7.Thread stoped [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:31]OFD Sender: No OFD packet to send [20:27:31]accept exits with 9 [20:27:31]New connection [20:27:31]New thread 3066731876 created [20:27:31]Thread 3066588516 joined [20:27:31]Waiting for new connection... [20:27:31] Sock 9.Parse request [20:27:31]Sock 9.Check first char [20:27:31]Sock 9.First char is OK [20:27:31]request: POST /json_proto HTTP/1.0 [20:27:31]Method: POST [20:27:31]URL: /json_proto [20:27:31]Method is POST - this is cgi request [20:27:31]url: /json_proto [20:27:31]query_string will be loaded in cgi processing [20:27:31]execute_cgi json_proto POST (null) [20:27:31]execute_cgi path=json_proto method=POST [20:27:31]POST find Content-Length [20:27:31]Host: 172.17.41.195:8080 [20:27:31]Content-Length: 677 [20:27:31]Content-Type: application/json [20:27:31] [20:27:31]POST finish read [20:27:31]Found Content-Length = 677 [20:27:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:31]execute_script... [20:27:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:31]POST & json_proto [20:27:31]process_json_proto [20:27:31]json parsed OK: [20:27:31]protocol is kg_v1.0 [20:27:31]action value=close_receipt [20:27:31]process_action close_receipt [20:27:31]cmd_close_receipt [20:27:31]MH_GetDate [20:27:31]Write to MH i2c: F0 00 00 23 0F 21 [20:27:31]Write i2c OK [20:27:31]MH_I2C_Read... [20:27:31]Read from MH i2c: F0 [20:27:31]MH_I2C_Read... [20:27:31]Read from MH i2c: F0 09 00 [20:27:31]MH_I2C_Read... [20:27:31]Read from MH i2c: F0 09 00 23 0F 00 34 C9 43 66 FC 21 6F 64 C0 [20:27:31]GetLastDocTimeStamp 1715718354 [20:27:31]current date 1715718452 [20:27:31]FM_GetShiftState [20:27:31]SAM_PROTO_GetShiftState [20:27:31]wFMCommunicate request_size=4 [20:27:31]MH_SAM_APDU [20:27:31]CAPDU: 80 13 01 00 [20:27:31]Write to MH i2c: E2 08 00 24 0F 80 13 01 00 00 00 00 00 B0 [20:27:31]Write i2c OK [20:27:31]MH_I2C_Read... [20:27:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:31]Read from MH i2c: E2 [20:27:31]MH_I2C_Read... [20:27:31]Read from MH i2c: E2 0E 00 [20:27:31]MH_I2C_Read... [20:27:31]Read from MH i2c: E2 0E 00 24 0F 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 78 [20:27:31]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:27:31]wFMCommunicate OK [20:27:31]SAM_PROTO_GetShiftState done [20:27:31]FM_GetShiftState done [20:27:31]opened in 1715646054 [20:27:31]opened+sec_in_day 1715732454 [20:27:31]quantity*price = 50033 [20:27:31]sum+1 = 50034 [20:27:31]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 СНО: Общий режим Чек 162 14.05.2024 20:27 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67155 ФПД: 275573950508364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T202732&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67155&fm=275573950508364&tin=02508201610067®Number=0000000000091845&sum=50000 [20:27:32]StoreToDocumentArchive [20:27:32]shift 355 fd 67155 [20:27:32]save to /storage/0355/doc_00067155 [20:27:32]save last doc name /storage/0355/doc_00067155 to /storage/kkm_last_doc_name [20:27:32]save OK [20:27:32]Clear old archive folders... [20:27:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:27:32]tlvbuf is 003BBCC0 [20:27:32]SAM_PROTO_ClearQueue [20:27:32]wFMCommunicate request_size=4 [20:27:32]MH_SAM_APDU [20:27:32]CAPDU: 80 09 00 00 [20:27:32]Write to MH i2c: E2 08 00 31 0F 80 09 00 00 00 00 00 00 B2 [20:27:32]Write i2c OK [20:27:32]MH_I2C_Read... [20:27:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:32]Read from MH i2c: E2 [20:27:32]MH_I2C_Read... [20:27:32]Read from MH i2c: E2 03 00 [20:27:32]MH_I2C_Read... [20:27:32]Read from MH i2c: E2 03 00 31 0F 00 90 00 B4 [20:27:32]RAPDU: 90 00 [20:27:32]wFMCommunicate OK [20:27:32]SAM_PROTO_ClearQueue done [20:27:32]KKMCreateOFDPacket [20:27:32]OFDProtocolAddRootSTLVToBuf [20:27:32]FM_MakeSignedData [20:27:32]FM_MakeSignedData [20:27:32]SAM_PROTO_SignData [20:27:32]wFMCommunicate request_size=4 [20:27:32]MH_SAM_APDU [20:27:32]CAPDU: 80 0D 01 02 [20:27:32]Write to MH i2c: E2 08 00 32 0F 80 0D 01 02 00 00 00 00 BA [20:27:32]Write i2c OK [20:27:32]MH_I2C_Read... [20:27:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:32]Read from MH i2c: E2 [20:27:32]MH_I2C_Read... [20:27:32]Read from MH i2c: E2 03 00 [20:27:32]MH_I2C_Read... [20:27:32]Read from MH i2c: E2 03 00 32 0F 00 90 00 B5 [20:27:32]RAPDU: 90 00 [20:27:32]wFMCommunicate OK [20:27:32]wFMCommunicate request_size=255 [20:27:32]MH_SAM_APDU [20:27: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 A2 00 00 00 F4 03 04 00 34 C9 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 FA [20:27:32]Write to MH i2c: E2 02 01 33 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 34 C9 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 FA 00 00 45 [20:27:33]Write i2c OK [20:27:33]MH_I2C_Read... [20:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:33]Read from MH i2c: E2 [20:27:33]MH_I2C_Read... [20:27:33]Read from MH i2c: E2 03 00 [20:27:33]MH_I2C_Read... [20:27:33]Read from MH i2c: E2 03 00 33 0F 00 90 00 B6 [20:27:33]RAPDU: 90 00 [20:27:33]wFMCommunicate OK [20:27:33]wFMCommunicate request_size=10 [20:27:33]MH_SAM_APDU [20:27:33]CAPDU: 80 0D 02 02 05 A2 0F 6D ED 4C [20:27:33]Write to MH i2c: E2 0D 00 34 0F 80 0D 02 02 05 00 A2 0F 6D ED 4C 00 00 1E [20:27:33]Write i2c OK [20:27:33]MH_I2C_Read... [20:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:33]Read from MH i2c: E2 [20:27:33]MH_I2C_Read... [20:27:33]Read from MH i2c: E2 03 00 [20:27:33]MH_I2C_Read... [20:27:33]Read from MH i2c: E2 03 00 34 0F 00 90 00 B7 [20:27:33]RAPDU: 90 00 [20:27:33]wFMCommunicate OK [20:27:33]wFMCommunicate request_size=4 [20:27:33]MH_SAM_APDU [20:27:33]CAPDU: 80 0D 03 02 [20:27:33]Write to MH i2c: E2 08 00 35 0F 80 0D 03 02 00 00 00 00 BF [20:27:33]Write i2c OK [20:27:33]MH_I2C_Read... [20:27:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:33]Read from MH i2c: E2 [20:27:33]MH_I2C_Read... [20:27:33]Read from MH i2c: E2 0B 00 [20:27:33]MH_I2C_Read... [20:27:33]Read from MH i2c: E2 0B 00 35 0F 00 3A 35 E5 F5 0E DA 14 5F 90 00 64 [20:27:33]RAPDU: 3A 35 E5 F5 0E DA 14 5F 90 00 [20:27:33]wFMCommunicate OK [20:27:33]SAM_PROTO_SignData done [20:27:33]FM_MakeSignedData done [20:27:33]CreateOFDProtocolMessage [20:27:33]wFMCommunicate request_size=4 [20:27:33]MH_SAM_APDU [20:27:33]CAPDU: 80 11 00 00 [20:27:33]Write to MH i2c: E2 08 00 36 0F 80 11 00 00 00 00 00 00 BF [20:27:33]Write i2c OK [20:27:33]MH_I2C_Read... [20:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:33]Read from MH i2c: E2 [20:27:33]MH_I2C_Read... [20:27:33]Read from MH i2c: E2 17 00 [20:27:33]MH_I2C_Read... [20:27:33]Read from MH i2c: E2 17 00 36 0F 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:27: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:27:33]wFMCommunicate OK [20:27:33]CreateOFDProtocolMessage done [20:27:33]OFDSenderStorePacket 67155 [20:27:33]StoreOFDPacket docnum=67155 [20:27: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 91 30 07 01 E8 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A2 00 00 00 F4 03 04 00 34 C9 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 FA A2 0F 6D ED 4C 3A 35 E5 F5 0E DA 14 5F [20:27:33]CheckFolder [20:27:33]dirname=/storage/ofd_packets [20:27:33]CheckFolder done [20:27:33]ProducePacketName [20:27:33]name=ofd_packets/00067155 [20:27:33]NVStorageSaveData ofd_packets/00067155 [20:27:33]File name is /storage/ofd_packets/00067155 [20:27:33]Write 301 bytes [20:27:33]NVStorageSaveData done [20:27:33]OFDSenderStorePacket done [20:27:33]KKMCreateOFDPacket done [20:27:33]NVStorageSaveData kkm_last_timestamp [20:27:33]File name is /storage/kkm_last_timestamp [20:27:33]Write 4 bytes [20:27:33]NVStorageSaveData done [20:27:33]ExternCall_PrintAddStr [20:27:33]wPrintStart [20:27:33]Write to MH i2c: 01 00 00 37 0F 46 [20:27:33]Write i2c OK [20:27:33]MH_I2C_Read... [20:27:33]Read from MH i2c: 01 [20:27:33]MH_I2C_Read... [20:27:33]Read from MH i2c: 01 07 00 [20:27:33]MH_I2C_Read... [20:27:33]Read from MH i2c: 01 07 00 37 0F 00 00 00 00 00 FF 0F 5B [20:27:33]RasterBufferAndPrint [20:27:33]line Счет N : (1)507053 [20:27:33]line ИНН: 02508201610067 [20:27:33]line Контрольно-Кассовый Чек [20:27:33]line ПРОДАЖА [20:27:33]line ТРК (МРК, ГНК) : 43 [20:27:33]line Товар: 2710124130 [20:27:33]line Аи-92-К-5 [20:27:33]line 7.490 * 66.80 [20:27:33]line = 500.33 [20:27:33]line НДС 12% НСП 1% [20:27:33]line > о реализуемом товаре [20:27:33]line ОКРУГЛЕНИЕ: -0.33 [20:27:33]line ИТОГО: 500.00 [20:27:33]line Внесено: 500.00 [20:27:33]line СДАЧА: 0.00 [20:27:33]line НСП 1% : 4.43 [20:27:33]line НДС 12% : 53.13 [20:27:33]line Наличными: 500.00 [20:27:33]line Безнал.: 0.00 [20:27:33]line Место: АЗС № 91 "Партнер Нефть" [20:27:33]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:27:33]line СНО: Общий режим [20:27:33]line Чек 162 14.05.2024 20:27 [20:27:33]line Смена: 355 ФФД: 1.0 [20:27:33]line ЗНМ: 0300000119 [20:27:33]line РНМ: 0000000000091845 [20:27:33]line Версия ККМ: 001 [20:27:33]line ФМ: 0000000000871829 [20:27:33]line ФД: 67155 [20:27:33]line ФПД: 275573950508364 [20:27:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T202732&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67155&fm=275573950508364&tin=02508201610067®Number=0000000000091845&sum=50000 [20:27:33]OFD Sender: Processing packet 67155 [packets to send 35, broken 34] [20:27:33]ProducePacketName [20:27:33]name=ofd_packets/00067155 [20:27:33]OFD Sender: To server: pG, [20:27:33]CommunicateWithHost lk.salyk.kg:30040 [20:27:33]ConnectInit lk.salyk.kg [20:27:33]written 0, free lines is 4095 [20:27:33]Connected sock=10 [20:27: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 91 30 07 01 E8 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A2 00 00 00 F4 03 04 00 34 C9 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 FA A2 0F 6D ED 4C 3A 35 E5 F5 0E DA 14 5F [20:27: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 18 07 47 00 41 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 53 06 01 00 F4 03 04 00 13 71 43 66 B6 04 01 00 00 B6 EB 76 95 94 C4 1A E8 [20:27:34]CommunicateWithHost err = 0 [20:27:34]CheckOFDResponse [20:27:34]1017 (14) - 77093643461234 [20:27:34]1041 (16) - 0000000000871829 [20:27:34]1040 (4) - 67155 [20:27:34]1012 (4) - 14.05.2024 14:11 [20:27:34]1206 (1) - 0 [20:27:34]OFD Sender: Remove packet 67155 [20:27:34]ProducePacketName [20:27:34]name=ofd_packets/00067155 [20:27:34]NVStorageDeleteData [20:27:34]Write to MH i2c: 01 00 00 61 0F 70 [20:27:34]Write i2c OK [20:27:34]MH_I2C_Read... [20:27:34]Read from MH i2c: 01 [20:27:34]MH_I2C_Read... [20:27:34]Read from MH i2c: 01 07 00 [20:27:34]MH_I2C_Read... [20:27:34]Read from MH i2c: 01 07 00 61 0F 00 00 00 00 00 E0 0C 63 [20:27:34]RasterBufferAndPrint [20:27:34]line [20:27:34]line [20:27:34]line [20:27:34]line [20:27:34]line [20:27:34]written 0, free lines is 3302 [20:27:34]MH_Cut [20:27:34]Write to MH i2c: D1 01 00 68 0F 01 49 [20:27:34]Write i2c OK [20:27:34]MH_I2C_Read... [20:27:34]Read from MH i2c: D1 [20:27:34]MH_I2C_Read... [20:27:34]Read from MH i2c: D1 01 00 [20:27:34]MH_I2C_Read... [20:27:34]Read from MH i2c: D1 01 00 68 0F 00 48 [20:27:34]Write to MH i2c: 01 00 00 69 0F 78 [20:27:34]Write i2c OK [20:27:34]MH_I2C_Read... [20:27:34]OFD Sender: No OFD packet to send [20:27:34]*** Cut start [20:27:34]*** Purtial cut [20:27:34]*** Stage 1: CUTSNS_PIN = 1 [20:27:35]Read from MH i2c: 01 [20:27:35]MH_I2C_Read... [20:27:35]*** Stop cut motor [20:27:35]*** Cut end [20:27:35]Read from MH i2c: 01 07 00 [20:27:35]MH_I2C_Read... [20:27:35]Read from MH i2c: 01 07 00 69 0F 00 00 00 00 00 FF 0F 8D [20:27:35]process_action close_receipt done [20:27:35]requested_data is exist [20:27:35]produce_requested_data [20:27:35]requested_item fm.sn is exist - process it [20:27:35]wFMCommunicate request_size=4 [20:27:35]MH_SAM_APDU [20:27:35]CAPDU: 80 11 00 00 [20:27:35]Write to MH i2c: E2 08 00 6A 0F 80 11 00 00 00 00 00 00 F3 [20:27:35]Write i2c OK [20:27:35]MH_I2C_Read... [20:27:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:35]Read from MH i2c: E2 [20:27:35]MH_I2C_Read... [20:27:35]Read from MH i2c: E2 17 00 [20:27:35]MH_I2C_Read... [20:27:35]Read from MH i2c: E2 17 00 6A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 49 [20:27:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:27:35]wFMCommunicate OK [20:27:35]requested_item fd.num is exist - process it [20:27:35]SAM_PROTO_GetFieldsCounters [20:27:35]wFMCommunicate request_size=4 [20:27:35]MH_SAM_APDU [20:27:35]CAPDU: 80 13 00 00 [20:27:35]Write to MH i2c: E2 08 00 6B 0F 80 13 00 00 00 00 00 00 F6 [20:27:35]Write i2c OK [20:27:35]MH_I2C_Read... [20:27:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:35]Read from MH i2c: E2 [20:27:35]MH_I2C_Read... [20:27:35]Read from MH i2c: E2 62 00 [20:27:35]MH_I2C_Read... [20:27:35]Read from MH i2c: E2 62 00 6B 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 53 06 01 00 0E 04 04 00 63 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 C0 [20:27: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 53 06 01 00 0E 04 04 00 63 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 [20:27:35]wFMCommunicate OK [20:27:35]SAM_PROTO_GetFieldsCounters done [20:27:35]requested_item shift.num is exist - process it [20:27:35]requested_item shift.opened is exist - process it [20:27:35]req_shift_opened [20:27:35]FM_GetShiftState [20:27:35]SAM_PROTO_GetShiftState [20:27:35]wFMCommunicate request_size=4 [20:27:35]MH_SAM_APDU [20:27:35]CAPDU: 80 13 01 00 [20:27:35]Write to MH i2c: E2 08 00 6C 0F 80 13 01 00 00 00 00 00 F8 [20:27:35]Write i2c OK [20:27:35]MH_I2C_Read... [20:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:35]Read from MH i2c: E2 [20:27:35]MH_I2C_Read... [20:27:35]Read from MH i2c: E2 0E 00 [20:27:35]MH_I2C_Read... [20:27:35]Read from MH i2c: E2 0E 00 6C 0F 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 C0 [20:27:35]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:27:35]wFMCommunicate OK [20:27:35]SAM_PROTO_GetShiftState done [20:27:35]FM_GetShiftState done [20:27:35]req_shift_opened done [20:27:35]requested_item shift.open_date is exist - process it [20:27:35]req_shift_open_date [20:27:35]req_shift_open_date done [20:27:35]produce_requested_data done [20:27:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67155,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [20:27:35]process_action_free close_receipt [20:27:35]json_value_free [20:27:35]json_value_free done [20:27:35]process_json_proto returns [20:27:35]Send response to host [20:27:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67155,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [20:27:35]free response buf [20:27:35]execute_script done [20:27:35]execute_script returns [20:27:35]free content buf [20:27:35]Sock 9.Close socket [20:27:35]Sock 9.Thread stoped [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:26]accept exits with 7 [20:28:26]New connection [20:28:26]New thread 3066588516 created [20:28:26]Thread 3066731876 joined [20:28:26]Waiting for new connection... [20:28:26] Sock 7.Parse request [20:28:26]Sock 7.Check first char [20:28:26]Sock 7.First char is OK [20:28:26]request: POST /json_proto HTTP/1.0 [20:28:26]Method: POST [20:28:26]URL: /json_proto [20:28:26]Method is POST - this is cgi request [20:28:26]url: /json_proto [20:28:26]query_string will be loaded in cgi processing [20:28:26]execute_cgi json_proto POST (null) [20:28:26]execute_cgi path=json_proto method=POST [20:28:26]POST find Content-Length [20:28:26]Host: 172.17.41.195:8080 [20:28:26]Content-Length: 1179 [20:28:26]Content-Type: application/json [20:28:26] [20:28:26]POST finish read [20:28:26]Found Content-Length = 1179 [20:28: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)507054\u000A14.05.2024 20:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:26]execute_script... [20:28: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)507054\u000A14.05.2024 20:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:26]POST & json_proto [20:28:26]process_json_proto [20:28:26]json parsed OK: [20:28:26]protocol is kg_v1.0 [20:28:26]action value=print_text [20:28:26]process_action print_text [20:28:26]cmd_print_text [20:28:26]ExternCall_PrintAddStr [20:28:26]wPrintStart [20:28:26]Write to MH i2c: 01 00 00 6D 0F 7C [20:28:26]Write i2c OK [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: 01 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: 01 07 00 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: 01 07 00 6D 0F 00 00 00 00 00 FF 0F 91 [20:28:26]RasterBufferAndPrint [20:28:26]line *****ТОВАРНЫЙ ЧЕК***** [20:28:26]line АЗС-91 [20:28:26]line Партнер нефть [20:28:26]line 02508201610067 [20:28:26]line Кассир : Адишов И. [20:28:26]line Счет N : (1)507054 [20:28:26]line 14.05.2024 20:11 [20:28:26]line ПРОДАЖА [20:28:26]line ТРК (МРК, ГНК): 11 [20:28:26]line Вид ГСМ : 2710194210 [20:28:26]line ДТ-К-5 [20:28:26]line 13.390 x 74.70 [20:28:26]line ИТОГ: 1000.23 [20:28:26]line Тип оплаты: Талоны: Топливная Карта [20:28:26]line 02750 [20:28:26]line ______________________ [20:28:26]line (подпись) [20:28:26]written 0, free lines is 4095 [20:28:27]Write to MH i2c: 01 00 00 81 0F 90 [20:28:27]Write i2c OK [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: 01 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: 01 07 00 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: 01 07 00 81 0F 00 00 00 00 00 0C 0E B1 [20:28:27]RasterBufferAndPrint [20:28:27]line [20:28:27]line [20:28:27]line [20:28:27]line [20:28:27]line [20:28:27]written 0, free lines is 3597 [20:28:27]MH_Cut [20:28:27]Write to MH i2c: D1 01 00 88 0F 01 69 [20:28:27]Write i2c OK [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: D1 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: D1 01 00 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: D1 01 00 88 0F 00 68 [20:28:27]Write to MH i2c: 01 00 00 89 0F 98 [20:28:27]Write i2c OK [20:28:27]MH_I2C_Read... [20:28:27]*** Cut start [20:28:27]*** Purtial cut [20:28:27]*** CUTSNS_PIN = 0 [20:28:27]*** Stage 1: CUTSNS_PIN = 1 [20:28:29]OFD Sender: No OFD packet to send [20:28:29]Read from MH i2c: 01 [20:28:29]MH_I2C_Read... [20:28:29]*** Stop cut motor [20:28:29]*** Cut end [20:28:29]Read from MH i2c: 01 07 00 [20:28:29]MH_I2C_Read... [20:28:29]Read from MH i2c: 01 07 00 89 0F 00 00 00 00 00 FF 0F AD [20:28:29]process_action print_text done [20:28:29]requested_data is exist [20:28:29]produce_requested_data [20:28:29]requested_item fm.sn is exist - process it [20:28:29]wFMCommunicate request_size=4 [20:28:29]MH_SAM_APDU [20:28:29]CAPDU: 80 11 00 00 [20:28:29]Write to MH i2c: E2 08 00 8A 0F 80 11 00 00 00 00 00 00 13 [20:28:29]Write i2c OK [20:28:29]MH_I2C_Read... [20:28:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:29]Read from MH i2c: E2 [20:28:29]MH_I2C_Read... [20:28:29]Read from MH i2c: E2 17 00 [20:28:29]MH_I2C_Read... [20:28:29]Read from MH i2c: E2 17 00 8A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 69 [20:28:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:28:29]wFMCommunicate OK [20:28:29]requested_item fd.num is exist - process it [20:28:29]SAM_PROTO_GetFieldsCounters [20:28:29]wFMCommunicate request_size=4 [20:28:29]MH_SAM_APDU [20:28:29]CAPDU: 80 13 00 00 [20:28:29]Write to MH i2c: E2 08 00 8B 0F 80 13 00 00 00 00 00 00 16 [20:28:29]Write i2c OK [20:28:29]MH_I2C_Read... [20:28:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:29]Read from MH i2c: E2 [20:28:29]MH_I2C_Read... [20:28:29]Read from MH i2c: E2 62 00 [20:28:29]MH_I2C_Read... [20:28:29]Read from MH i2c: E2 62 00 8B 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 53 06 01 00 0E 04 04 00 63 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 E0 [20:28: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 53 06 01 00 0E 04 04 00 63 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 [20:28:29]wFMCommunicate OK [20:28:29]SAM_PROTO_GetFieldsCounters done [20:28:29]requested_item shift.num is exist - process it [20:28:29]requested_item shift.opened is exist - process it [20:28:29]req_shift_opened [20:28:29]FM_GetShiftState [20:28:29]SAM_PROTO_GetShiftState [20:28:29]wFMCommunicate request_size=4 [20:28:29]MH_SAM_APDU [20:28:29]CAPDU: 80 13 01 00 [20:28:29]Write to MH i2c: E2 08 00 8C 0F 80 13 01 00 00 00 00 00 18 [20:28:29]Write i2c OK [20:28:29]MH_I2C_Read... [20:28:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:29]Read from MH i2c: E2 [20:28:29]MH_I2C_Read... [20:28:29]Read from MH i2c: E2 0E 00 [20:28:29]MH_I2C_Read... [20:28:29]Read from MH i2c: E2 0E 00 8C 0F 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 E0 [20:28:29]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:28:29]wFMCommunicate OK [20:28:29]SAM_PROTO_GetShiftState done [20:28:29]FM_GetShiftState done [20:28:29]req_shift_opened done [20:28:29]requested_item shift.open_date is exist - process it [20:28:29]req_shift_open_date [20:28:29]req_shift_open_date done [20:28:29]produce_requested_data done [20:28:29]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67155,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [20:28:29]process_action_free print_text [20:28:29]json_value_free [20:28:29]json_value_free done [20:28:29]process_json_proto returns [20:28:29]Send response to host [20:28:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67155,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [20:28:29]free response buf [20:28:29]execute_script done [20:28:29]execute_script returns [20:28:29]free content buf [20:28:29]Sock 7.Close socket [20:28:29]Sock 7.Thread stoped [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [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:21]accept exits with 9 [20:30:21]New connection [20:30:21]New thread 3066731876 created [20:30:21]Thread 3066588516 joined [20:30:21]Waiting for new connection... [20:30:21] Sock 9.Parse request [20:30:21]Sock 9.Check first char [20:30:21]Sock 9.First char is OK [20:30:21]request: POST /json_proto HTTP/1.0 [20:30:21]Method: POST [20:30:21]URL: /json_proto [20:30:21]Method is POST - this is cgi request [20:30:21]url: /json_proto [20:30:21]query_string will be loaded in cgi processing [20:30:21]execute_cgi json_proto POST (null) [20:30:21]execute_cgi path=json_proto method=POST [20:30:21]POST find Content-Length [20:30:21]Host: 172.17.41.195:8080 [20:30:21]Content-Length: 1182 [20:30:21]Content-Type: application/json [20:30:21] [20:30:21]POST finish read [20:30:21]Found Content-Length = 1182 [20:30: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)507055\u000A14.05.2024 20:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 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" ] } } [20:30:21]execute_script... [20:30: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)507055\u000A14.05.2024 20:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 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" ] } } [20:30:21]POST & json_proto [20:30:21]process_json_proto [20:30:21]json parsed OK: [20:30:21]protocol is kg_v1.0 [20:30:21]action value=print_text [20:30:21]process_action print_text [20:30:21]cmd_print_text [20:30:21]ExternCall_PrintAddStr [20:30:21]wPrintStart [20:30:21]Write to MH i2c: 01 00 00 8D 0F 9C [20:30:21]Write i2c OK [20:30:21]MH_I2C_Read... [20:30:21]Read from MH i2c: 01 [20:30:21]MH_I2C_Read... [20:30:21]Read from MH i2c: 01 07 00 [20:30:21]MH_I2C_Read... [20:30:21]Read from MH i2c: 01 07 00 8D 0F 00 00 00 00 00 FF 0F B1 [20:30:21]RasterBufferAndPrint [20:30:21]line *****ТОВАРНЫЙ ЧЕК***** [20:30:21]line АЗС-91 [20:30:21]line Партнер нефть [20:30:21]line 02508201610067 [20:30:21]line Кассир : Адишов И. [20:30:21]line Счет N : (1)507055 [20:30:21]line 14.05.2024 20:12 [20:30:21]line ПРОДАЖА [20:30:21]line ТРК (МРК, ГНК): 43 [20:30:21]line Вид ГСМ : 2710124130 [20:30:21]line Аи-92-К-5 [20:30:21]line 15.000 x 66.80 [20:30:21]line ИТОГ: 1002.00 [20:30:21]line Тип оплаты: Талоны: Топливная Карта [20:30:21]line 02750 [20:30:21]line ______________________ [20:30:21]line (подпись) [20:30:21]written 0, free lines is 4095 [20:30:21]Write to MH i2c: 01 00 00 A1 0F B0 [20:30:21]Write i2c OK [20:30:21]MH_I2C_Read... [20:30:21]Read from MH i2c: 01 [20:30:21]MH_I2C_Read... [20:30:21]Read from MH i2c: 01 07 00 [20:30:21]MH_I2C_Read... [20:30:21]Read from MH i2c: 01 07 00 A1 0F 00 00 00 00 00 0E 0E D3 [20:30:21]RasterBufferAndPrint [20:30:21]line [20:30:21]line [20:30:21]line [20:30:21]line [20:30:21]line [20:30:21]written 0, free lines is 3599 [20:30:21]MH_Cut [20:30:21]Write to MH i2c: D1 01 00 A8 0F 01 89 [20:30:21]Write i2c OK [20:30:21]MH_I2C_Read... [20:30:21]Read from MH i2c: D1 [20:30:21]MH_I2C_Read... [20:30:21]Read from MH i2c: D1 01 00 [20:30:21]MH_I2C_Read... [20:30:21]Read from MH i2c: D1 01 00 A8 0F 00 88 [20:30:21]Write to MH i2c: 01 00 00 A9 0F B8 [20:30:21]Write i2c OK [20:30:21]MH_I2C_Read... [20:30:22]*** Cut start [20:30:22]*** Purtial cut [20:30:22]*** Stage 1: CUTSNS_PIN = 1 [20:30:22]Read from MH i2c: 01 [20:30:22]MH_I2C_Read... [20:30:22]*** Stop cut motor [20:30:22]*** Cut end [20:30:22]Read from MH i2c: 01 07 00 [20:30:22]MH_I2C_Read... [20:30:22]Read from MH i2c: 01 07 00 A9 0F 00 00 00 00 00 FF 0F CD [20:30:22]process_action print_text done [20:30:22]requested_data is exist [20:30:22]produce_requested_data [20:30:22]requested_item fm.sn is exist - process it [20:30:22]wFMCommunicate request_size=4 [20:30:22]MH_SAM_APDU [20:30:22]CAPDU: 80 11 00 00 [20:30:22]Write to MH i2c: E2 08 00 AA 0F 80 11 00 00 00 00 00 00 33 [20:30:22]Write i2c OK [20:30:22]MH_I2C_Read... [20:30:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:22]Read from MH i2c: E2 [20:30:22]MH_I2C_Read... [20:30:22]Read from MH i2c: E2 17 00 [20:30:22]MH_I2C_Read... [20:30:22]Read from MH i2c: E2 17 00 AA 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 89 [20:30:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:30:22]wFMCommunicate OK [20:30:22]requested_item fd.num is exist - process it [20:30:22]SAM_PROTO_GetFieldsCounters [20:30:22]wFMCommunicate request_size=4 [20:30:22]MH_SAM_APDU [20:30:22]CAPDU: 80 13 00 00 [20:30:22]Write to MH i2c: E2 08 00 AB 0F 80 13 00 00 00 00 00 00 36 [20:30:22]Write i2c OK [20:30:22]MH_I2C_Read... [20:30:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:30:22]Read from MH i2c: E2 [20:30:22]MH_I2C_Read... [20:30:22]Read from MH i2c: E2 62 00 [20:30:22]MH_I2C_Read... [20:30:22]Read from MH i2c: E2 62 00 AB 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 53 06 01 00 0E 04 04 00 63 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 00 [20:30: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 53 06 01 00 0E 04 04 00 63 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 [20:30:22]wFMCommunicate OK [20:30:22]SAM_PROTO_GetFieldsCounters done [20:30:22]requested_item shift.num is exist - process it [20:30:22]requested_item shift.opened is exist - process it [20:30:22]req_shift_opened [20:30:22]FM_GetShiftState [20:30:22]SAM_PROTO_GetShiftState [20:30:22]wFMCommunicate request_size=4 [20:30:22]MH_SAM_APDU [20:30:22]CAPDU: 80 13 01 00 [20:30:22]Write to MH i2c: E2 08 00 AC 0F 80 13 01 00 00 00 00 00 38 [20:30:22]Write i2c OK [20:30:22]MH_I2C_Read... [20:30:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:22]Read from MH i2c: E2 [20:30:22]MH_I2C_Read... [20:30:22]Read from MH i2c: E2 0E 00 [20:30:22]MH_I2C_Read... [20:30:22]Read from MH i2c: E2 0E 00 AC 0F 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 00 [20:30:22]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:30:22]wFMCommunicate OK [20:30:22]SAM_PROTO_GetShiftState done [20:30:22]FM_GetShiftState done [20:30:22]req_shift_opened done [20:30:22]requested_item shift.open_date is exist - process it [20:30:22]req_shift_open_date [20:30:22]req_shift_open_date done [20:30:22]produce_requested_data done [20:30:22]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67155,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [20:30:22]process_action_free print_text [20:30:22]json_value_free [20:30:22]json_value_free done [20:30:22]process_json_proto returns [20:30:22]Send response to host [20:30:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67155,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [20:30:22]free response buf [20:30:22]execute_script done [20:30:22]execute_script returns [20:30:22]free content buf [20:30:22]Sock 9.Close socket [20:30:22]Sock 9.Thread stoped [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:39]OFD Sender: No OFD packet to send [20:32:44]OFD Sender: No OFD packet to send [20:32:49]OFD Sender: No OFD packet to send [20:32:54]OFD Sender: No OFD packet to send [20:32:59]OFD Sender: No OFD packet to send [20:33:04]OFD Sender: No OFD packet to send [20:33:09]OFD Sender: No OFD packet to send [20:33:14]OFD Sender: No OFD packet to send [20:33:19]OFD Sender: No OFD packet to send [20:33:24]OFD Sender: No OFD packet to send [20:33:29]OFD Sender: No OFD packet to send [20:33:34]OFD Sender: No OFD packet to send [20:33:39]OFD Sender: No OFD packet to send [20:33:44]OFD Sender: No OFD packet to send [20:33:49]OFD Sender: No OFD packet to send [20:33:54]OFD Sender: No OFD packet to send [20:33:59]OFD Sender: No OFD packet to send [20:34:04]OFD Sender: No OFD packet to send [20:34:09]OFD Sender: No OFD packet to send [20:34:14]OFD Sender: No OFD packet to send [20:34:19]OFD Sender: No OFD packet to send [20:34:24]OFD Sender: No OFD packet to send [20:34:29]OFD Sender: No OFD packet to send [20:34:34]OFD Sender: No OFD packet to send [20:34:39]OFD Sender: No OFD packet to send [20:34:44]OFD Sender: No OFD packet to send [20:34:49]OFD Sender: No OFD packet to send [20:34:54]OFD Sender: No OFD packet to send [20:34:59]OFD Sender: No OFD packet to send [20:35:04]OFD Sender: No OFD packet to send [20:35:09]OFD Sender: No OFD packet to send [20:35:14]OFD Sender: No OFD packet to send [20:35:19]OFD Sender: No OFD packet to send [20:35: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:52:23]ConnectInit Can't connect to host [20:52:27]OFD Sender: Processing packet 67156 [packets to send 38, broken 34] [20:52:27]ProducePacketName [20:52:27]name=ofd_packets/00067156 [20:52:27]OFD Sender: To server: pG, [20:52:27]CommunicateWithHost lk.salyk.kg:30040 [20:52:27]ConnectInit lk.salyk.kg [20:52:27]Connected sock=9 [20:52:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 BD 07 04 01 C3 AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C6 3E 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 EB D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 9E CC 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 19 97 CE CB 1C 0F 9E 32 BB D8 9E B7 D5 FC [20:52: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 2C 4E 47 00 24 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 54 06 01 00 F4 03 04 00 E9 76 43 66 B6 04 01 00 00 17 B3 3F 6F 4B 46 2E 60 [20:52:27]CommunicateWithHost err = 0 [20:52:27]CheckOFDResponse [20:52:27]1017 (14) - 77093643461234 [20:52:27]1041 (16) - 0000000000871829 [20:52:27]1040 (4) - 67156 [20:52:27]1012 (4) - 14.05.2024 14:36 [20:52:27]1206 (1) - 0 [20:52:27]OFD Sender: Remove packet 67156 [20:52:27]ProducePacketName [20:52:27]name=ofd_packets/00067156 [20:52:27]NVStorageDeleteData [20:52:28]OFD Sender: Processing packet 67157 [packets to send 37, broken 34] [20:52:28]ProducePacketName [20:52:28]name=ofd_packets/00067157 [20:52:28]OFD Sender: To server: pG, [20:52:28]CommunicateWithHost lk.salyk.kg:30040 [20:52:28]ConnectInit lk.salyk.kg [20:53:31]accept exits with 7 [20:53:31]New connection [20:53:31]New thread 3066731876 created [20:53:31]Thread 3066588516 joined [20:53:31]Waiting for new connection... [20:53:31] Sock 7.Parse request [20:53:31]Sock 7.Check first char [20:53:31]Sock 7.First char is OK [20:53:31]request: POST /json_proto HTTP/1.0 [20:53:31]Method: POST [20:53:31]URL: /json_proto [20:53:31]Method is POST - this is cgi request [20:53:31]url: /json_proto [20:53:31]query_string will be loaded in cgi processing [20:53:31]execute_cgi json_proto POST (null) [20:53:31]execute_cgi path=json_proto method=POST [20:53:31]POST find Content-Length [20:53:31]Host: 172.17.41.195:8080 [20:53:31]Content-Length: 637 [20:53:31]Content-Type: application/json [20:53:31] [20:53:31]POST finish read [20:53:31]Found Content-Length = 637 [20:53:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507061", "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" ] } } [20:53:31]execute_script... [20:53:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507061", "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" ] } } [20:53:31]POST & json_proto [20:53:31]process_json_proto [20:53:31]json parsed OK: [20:53:31]protocol is kg_v1.0 [20:53:31]action value=close_receipt [20:53:31]process_action close_receipt [20:53:31]cmd_close_receipt [20:53:31]MH_GetDate [20:53:31]Write to MH i2c: F0 00 00 FA 10 F9 [20:53:31]Write i2c OK [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: F0 [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: F0 09 00 [20:53:31]MH_I2C_Read... [20:53:31]Read from MH i2c: F0 09 00 FA 10 00 4C CF 43 66 FC 21 6F 64 B6 [20:53:31]GetLastDocTimeStamp 1715719906 [20:53:31]current date 1715720012 [20:53:31]FM_GetShiftState [20:53:31]SAM_PROTO_GetShiftState [20:53:31]wFMCommunicate request_size=4 [20:53:31]MH_SAM_APDU [20:53:31]CAPDU: 80 13 01 00 [20:53:31]Write to MH i2c: E2 08 00 FB 10 80 13 01 00 00 00 00 00 88 [20:53:31]Write i2c OK [20:53:31]MH_I2C_Read... [20:53:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:32]Read from MH i2c: E2 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 0E 00 [20:53:32]MH_I2C_Read... [20:53:32]Read from MH i2c: E2 0E 00 FB 10 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 50 [20:53:32]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:53:32]wFMCommunicate OK [20:53:32]SAM_PROTO_GetShiftState done [20:53:32]FM_GetShiftState done [20:53:32]opened in 1715646054 [20:53:32]opened+sec_in_day 1715732454 [20:53:32]quantity*price = 74700 [20:53:32]sum+1 = 74701 [20:53:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 747.00 НСП 1% : 6.61 НДС 12% : 79.33 Наличными: 747.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 167 14.05.2024 20:53 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67160 ФПД: 176992699474561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T205332&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67160&fm=176992699474561&tin=02508201610067®Number=0000000000091845&sum=74700 [20:53:33]StoreToDocumentArchive [20:53:33]shift 355 fd 67160 [20:53:33]save to /storage/0355/doc_00067160 [20:53:33]save last doc name /storage/0355/doc_00067160 to /storage/kkm_last_doc_name [20:53:33]save OK [20:53:33]Clear old archive folders... [20:53:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:53:33]tlvbuf is 003C06C0 [20:53:33]SAM_PROTO_ClearQueue [20:53:33]wFMCommunicate request_size=4 [20:53:33]MH_SAM_APDU [20:53:33]CAPDU: 80 09 00 00 [20:53:33]Write to MH i2c: E2 08 00 08 11 80 09 00 00 00 00 00 00 8B [20:53:33]Write i2c OK [20:53:33]MH_I2C_Read... [20:53:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:33]Read from MH i2c: E2 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: E2 03 00 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: E2 03 00 08 11 00 90 00 8D [20:53:33]RAPDU: 90 00 [20:53:33]wFMCommunicate OK [20:53:33]SAM_PROTO_ClearQueue done [20:53:33]KKMCreateOFDPacket [20:53:33]OFDProtocolAddRootSTLVToBuf [20:53:33]FM_MakeSignedData [20:53:33]FM_MakeSignedData [20:53:33]SAM_PROTO_SignData [20:53:33]wFMCommunicate request_size=4 [20:53:33]MH_SAM_APDU [20:53:33]CAPDU: 80 0D 01 02 [20:53:33]Write to MH i2c: E2 08 00 09 11 80 0D 01 02 00 00 00 00 93 [20:53:33]Write i2c OK [20:53:33]MH_I2C_Read... [20:53:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:33]Read from MH i2c: E2 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: E2 03 00 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: E2 03 00 09 11 00 90 00 8E [20:53:33]RAPDU: 90 00 [20:53:33]wFMCommunicate OK [20:53:33]wFMCommunicate request_size=255 [20:53:33]MH_SAM_APDU [20:53:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A7 00 00 00 F4 03 04 00 4C CF 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A0 F9 52 FA [20:53:33]Write to MH i2c: E2 02 01 0A 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A7 00 00 00 F4 03 04 00 4C CF 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A0 F9 52 FA 00 00 0C [20:53:33]Write i2c OK [20:53:33]MH_I2C_Read... [20:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:33]Read from MH i2c: E2 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: E2 03 00 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: E2 03 00 0A 11 00 90 00 8F [20:53:33]RAPDU: 90 00 [20:53:33]wFMCommunicate OK [20:53:33]wFMCommunicate request_size=7 [20:53:33]MH_SAM_APDU [20:53:33]CAPDU: 80 0D 02 02 02 E2 81 [20:53:33]Write to MH i2c: E2 0A 00 0B 11 80 0D 02 02 02 00 E2 81 00 00 FD [20:53:33]Write i2c OK [20:53:33]MH_I2C_Read... [20:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:33]Read from MH i2c: E2 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: E2 03 00 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: E2 03 00 0B 11 00 90 00 90 [20:53:33]RAPDU: 90 00 [20:53:33]wFMCommunicate OK [20:53:33]wFMCommunicate request_size=4 [20:53:33]MH_SAM_APDU [20:53:33]CAPDU: 80 0D 03 02 [20:53:33]Write to MH i2c: E2 08 00 0C 11 80 0D 03 02 00 00 00 00 98 [20:53:33]Write i2c OK [20:53:33]MH_I2C_Read... [20:53:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:33]Read from MH i2c: E2 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: E2 0B 00 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: E2 0B 00 0C 11 00 A8 76 C7 A2 6A 34 2C 34 90 00 1E [20:53:33]RAPDU: A8 76 C7 A2 6A 34 2C 34 90 00 [20:53:33]wFMCommunicate OK [20:53:33]SAM_PROTO_SignData done [20:53:33]FM_MakeSignedData done [20:53:33]CreateOFDProtocolMessage [20:53:33]wFMCommunicate request_size=4 [20:53:33]MH_SAM_APDU [20:53:33]CAPDU: 80 11 00 00 [20:53:33]Write to MH i2c: E2 08 00 0D 11 80 11 00 00 00 00 00 00 98 [20:53:33]Write i2c OK [20:53:33]MH_I2C_Read... [20:53:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:33]Read from MH i2c: E2 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: E2 17 00 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: E2 17 00 0D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 EE [20:53: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:53:33]wFMCommunicate OK [20:53:33]CreateOFDProtocolMessage done [20:53:33]OFDSenderStorePacket 67160 [20:53:33]StoreOFDPacket docnum=67160 [20:53:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 CF 3D 04 01 02 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 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 A7 00 00 00 F4 03 04 00 4C CF 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A0 F9 52 FA E2 81 A8 76 C7 A2 6A 34 2C 34 [20:53:33]CheckFolder [20:53:33]dirname=/storage/ofd_packets [20:53:33]CheckFolder done [20:53:33]ProducePacketName [20:53:33]name=ofd_packets/00067160 [20:53:33]NVStorageSaveData ofd_packets/00067160 [20:53:33]File name is /storage/ofd_packets/00067160 [20:53:33]Write 298 bytes [20:53:33]NVStorageSaveData done [20:53:33]OFDSenderStorePacket done [20:53:33]KKMCreateOFDPacket done [20:53:33]NVStorageSaveData kkm_last_timestamp [20:53:33]File name is /storage/kkm_last_timestamp [20:53:33]Write 4 bytes [20:53:33]NVStorageSaveData done [20:53:33]ExternCall_PrintAddStr [20:53:33]wPrintStart [20:53:33]Write to MH i2c: 01 00 00 0E 11 1F [20:53:33]Write i2c OK [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: 01 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: 01 07 00 [20:53:33]MH_I2C_Read... [20:53:33]Read from MH i2c: 01 07 00 0E 11 00 00 00 00 00 FF 0F 34 [20:53:33]RasterBufferAndPrint [20:53:33]line Счет N : (1)507061 [20:53:33]line ИНН: 02508201610067 [20:53:33]line Контрольно-Кассовый Чек [20:53:33]line ПРОДАЖА [20:53:33]line ТРК (МРК, ГНК) : 11 [20:53:33]line Товар: 2710194210 [20:53:33]line ДТ-К-5 [20:53:33]line 10.000 * 74.70 [20:53:33]line = 747.00 [20:53:33]line НДС 12% НСП 1% [20:53:33]line > о реализуемом товаре [20:53:33]line ИТОГО: 747.00 [20:53:33]line НСП 1% : 6.61 [20:53:33]line НДС 12% : 79.33 [20:53:33]line Наличными: 747.00 [20:53:33]line Безнал.: 0.00 [20:53:33]line Место: АЗС № 91 "Партнер Нефть" [20:53:33]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:53:33]line СНО: Общий режим [20:53:33]line Чек 167 14.05.2024 20:53 [20:53:33]line Смена: 355 ФФД: 1.0 [20:53:33]line ЗНМ: 0300000119 [20:53:33]line РНМ: 0000000000091845 [20:53:33]line Версия ККМ: 001 [20:53:33]line ФМ: 0000000000871829 [20:53:33]line ФД: 67160 [20:53:33]line ФПД: 176992699474561 [20:53:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T205332&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67160&fm=176992699474561&tin=02508201610067®Number=0000000000091845&sum=74700 [20:53:33]written 0, free lines is 4095 [20:53:34]Write to MH i2c: 01 00 00 35 11 46 [20:53:34]Write i2c OK [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: 01 [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: 01 07 00 [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: 01 07 00 35 11 00 00 00 00 00 FA 0C 53 [20:53:34]RasterBufferAndPrint [20:53:34]line [20:53:34]line [20:53:34]line [20:53:34]line [20:53:34]line [20:53:34]written 0, free lines is 3326 [20:53:34]MH_Cut [20:53:34]Write to MH i2c: D1 01 00 3C 11 01 1F [20:53:34]Write i2c OK [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: D1 [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: D1 01 00 [20:53:34]MH_I2C_Read... [20:53:34]Read from MH i2c: D1 01 00 3C 11 00 1E [20:53:34]Write to MH i2c: 01 00 00 3D 11 4E [20:53:34]Write i2c OK [20:53:34]MH_I2C_Read... [20:53:35]*** Cut start [20:53:35]*** Purtial cut [20:53:35]*** Stage 1: CUTSNS_PIN = 1 [20:53:35]Read from MH i2c: 01 [20:53:35]MH_I2C_Read... [20:53:35]*** Stop cut motor [20:53:35]*** Cut end [20:53:35]Read from MH i2c: 01 07 00 [20:53:35]MH_I2C_Read... [20:53:35]Read from MH i2c: 01 07 00 3D 11 00 00 00 00 00 FF 0F 63 [20:53:35]process_action close_receipt done [20:53:35]requested_data is exist [20:53:35]produce_requested_data [20:53:35]requested_item fm.sn is exist - process it [20:53:35]wFMCommunicate request_size=4 [20:53:35]MH_SAM_APDU [20:53:35]CAPDU: 80 11 00 00 [20:53:35]Write to MH i2c: E2 08 00 3E 11 80 11 00 00 00 00 00 00 C9 [20:53:35]Write i2c OK [20:53:35]MH_I2C_Read... [20:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:35]Read from MH i2c: E2 [20:53:35]MH_I2C_Read... [20:53:35]Read from MH i2c: E2 17 00 [20:53:35]MH_I2C_Read... [20:53:35]Read from MH i2c: E2 17 00 3E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1F [20:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:53:35]wFMCommunicate OK [20:53:35]requested_item fd.num is exist - process it [20:53:35]SAM_PROTO_GetFieldsCounters [20:53:35]wFMCommunicate request_size=4 [20:53:35]MH_SAM_APDU [20:53:35]CAPDU: 80 13 00 00 [20:53:35]Write to MH i2c: E2 08 00 3F 11 80 13 00 00 00 00 00 00 CC [20:53:35]Write i2c OK [20:53:35]MH_I2C_Read... [20:53:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:35]Read from MH i2c: E2 [20:53:35]MH_I2C_Read... [20:53:35]Read from MH i2c: E2 62 00 [20:53:35]MH_I2C_Read... [20:53:35]Read from MH i2c: E2 62 00 3F 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 58 06 01 00 0E 04 04 00 63 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 AA [20:53: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 58 06 01 00 0E 04 04 00 63 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 [20:53:35]wFMCommunicate OK [20:53:35]SAM_PROTO_GetFieldsCounters done [20:53:35]requested_item shift.num is exist - process it [20:53:35]requested_item shift.opened is exist - process it [20:53:35]req_shift_opened [20:53:35]FM_GetShiftState [20:53:35]SAM_PROTO_GetShiftState [20:53:35]wFMCommunicate request_size=4 [20:53:35]MH_SAM_APDU [20:53:35]CAPDU: 80 13 01 00 [20:53:35]Write to MH i2c: E2 08 00 40 11 80 13 01 00 00 00 00 00 CE [20:53:35]Write i2c OK [20:53:35]MH_I2C_Read... [20:53:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:35]Read from MH i2c: E2 [20:53:35]MH_I2C_Read... [20:53:35]Read from MH i2c: E2 0E 00 [20:53:35]MH_I2C_Read... [20:53:35]Read from MH i2c: E2 0E 00 40 11 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 96 [20:53:35]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:53:35]wFMCommunicate OK [20:53:35]SAM_PROTO_GetShiftState done [20:53:35]FM_GetShiftState done [20:53:35]req_shift_opened done [20:53:35]requested_item shift.open_date is exist - process it [20:53:35]req_shift_open_date [20:53:35]req_shift_open_date done [20:53:35]produce_requested_data done [20:53:35]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67160,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [20:53:35]process_action_free close_receipt [20:53:35]json_value_free [20:53:35]json_value_free done [20:53:35]process_json_proto returns [20:53:35]Send response to host [20:53:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67160,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [20:53:35]free response buf [20:53:35]execute_script done [20:53:35]execute_script returns [20:53:35]free content buf [20:53:35]Sock 7.Close socket [20:53:35]Sock 7.Thread stoped [20:54:40]ConnectInit Can't connect to host [20:54:40]CommunicateWithHost connect error [20:54:40]CommunicateWithHost err = -1 [20:54:40]OFD Sender: Server communicate error [20:54:40]OFD Sender: Processing packet 67157 [packets to send 38, broken 34] [20:54:40]ProducePacketName [20:54:40]name=ofd_packets/00067157 [20:54:40]OFD Sender: To server: pG, [20:54:40]CommunicateWithHost lk.salyk.kg:30040 [20:54:40]ConnectInit lk.salyk.kg [20:54:40]Connected sock=7 [20:54: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 10 01 00 00 A6 2B 08 01 15 03 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 A2 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3B A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 11 00 00 00 00 07 04 06 00 28 A0 00 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 60 CD 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 EE 2F B1 F0 02 D9 53 3B 7C 04 DC EB 72 5C [20:54: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 22 16 47 00 D4 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 55 06 01 00 F4 03 04 00 6E 77 43 66 B6 04 01 00 00 BE 23 9B 08 6F C7 7B 95 [20:54:40]CommunicateWithHost err = 0 [20:54:40]CheckOFDResponse [20:54:40]1017 (14) - 77093643461234 [20:54:40]1041 (16) - 0000000000871829 [20:54:40]1040 (4) - 67157 [20:54:40]1012 (4) - 14.05.2024 14:38 [20:54:40]1206 (1) - 0 [20:54:40]OFD Sender: Remove packet 67157 [20:54:40]ProducePacketName [20:54:40]name=ofd_packets/00067157 [20:54:40]NVStorageDeleteData [20:54:41]OFD Sender: Processing packet 67158 [packets to send 37, broken 34] [20:54:41]ProducePacketName [20:54:41]name=ofd_packets/00067158 [20:54:41]OFD Sender: To server: pG, [20:54:41]CommunicateWithHost lk.salyk.kg:30040 [20:54:41]ConnectInit lk.salyk.kg [20:54:41]Connected sock=7 [20:54: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 E0 0F 07 01 71 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 F1 CD 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 5A 6E B0 6A 4D A2 12 BD 53 FD E7 99 08 E9 [20:54: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 8F 6F 47 00 5D 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 56 06 01 00 F4 03 04 00 6F 77 43 66 B6 04 01 00 00 CD 1B 77 FE 33 4F 52 BD [20:54:41]CommunicateWithHost err = 0 [20:54:41]CheckOFDResponse [20:54:41]1017 (14) - 77093643461234 [20:54:41]1041 (16) - 0000000000871829 [20:54:41]1040 (4) - 67158 [20:54:41]1012 (4) - 14.05.2024 14:38 [20:54:41]1206 (1) - 0 [20:54:41]OFD Sender: Remove packet 67158 [20:54:41]ProducePacketName [20:54:41]name=ofd_packets/00067158 [20:54:41]NVStorageDeleteData [20:54:42]OFD Sender: Processing packet 67159 [packets to send 36, broken 34] [20:54:42]ProducePacketName [20:54:42]name=ofd_packets/00067159 [20:54:42]OFD Sender: To server: pG, [20:54:42]CommunicateWithHost lk.salyk.kg:30040 [20:54:42]ConnectInit lk.salyk.kg [20:54:42]Connected sock=7 [20:54:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 72 4C 07 01 77 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5F 00 00 00 00 00 37 04 06 00 B4 19 00 00 00 00 13 04 06 00 1A 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 E2 CE 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 E8 4E AE F9 60 FA 35 FC 63 19 01 22 2E 00 [20:54: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 32 81 47 00 DA 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 57 06 01 00 F4 03 04 00 70 77 43 66 B6 04 01 00 00 F7 C2 7B CB 8E 9B 99 E1 [20:54:42]CommunicateWithHost err = 0 [20:54:42]CheckOFDResponse [20:54:42]1017 (14) - 77093643461234 [20:54:42]1041 (16) - 0000000000871829 [20:54:42]1040 (4) - 67159 [20:54:42]1012 (4) - 14.05.2024 14:38 [20:54:42]1206 (1) - 0 [20:54:42]OFD Sender: Remove packet 67159 [20:54:42]ProducePacketName [20:54:42]name=ofd_packets/00067159 [20:54:42]NVStorageDeleteData [20:54:42]OFD Sender: Processing packet 67160 [packets to send 35, broken 34] [20:54:42]ProducePacketName [20:54:42]name=ofd_packets/00067160 [20:54:42]OFD Sender: To server: pG, [20:54:42]CommunicateWithHost lk.salyk.kg:30040 [20:54:42]ConnectInit lk.salyk.kg [20:54:42]Connected sock=7 [20:54:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 CF 3D 04 01 02 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 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 A7 00 00 00 F4 03 04 00 4C CF 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A0 F9 52 FA E2 81 A8 76 C7 A2 6A 34 2C 34 [20:54:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 49 7E 47 00 7C 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 58 06 01 00 F4 03 04 00 70 77 43 66 B6 04 01 00 00 22 8F 48 CF 32 D4 C5 95 [20:54:43]CommunicateWithHost err = 0 [20:54:43]CheckOFDResponse [20:54:43]1017 (14) - 77093643461234 [20:54:43]1041 (16) - 0000000000871829 [20:54:43]1040 (4) - 67160 [20:54:43]1012 (4) - 14.05.2024 14:38 [20:54:43]1206 (1) - 0 [20:54:43]OFD Sender: Remove packet 67160 [20:54:43]ProducePacketName [20:54:43]name=ofd_packets/00067160 [20:54:43]NVStorageDeleteData [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:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:26]accept exits with 10 [20:57:26]New connection [20:57:26]New thread 3066588516 created [20:57:26]Thread 3066731876 joined [20:57:26]Waiting for new connection... [20:57:26] Sock 10.Parse request [20:57:26]Sock 10.Check first char [20:57:26]Sock 10.First char is OK [20:57:26]request: POST /json_proto HTTP/1.0 [20:57:26]Method: POST [20:57:26]URL: /json_proto [20:57:26]Method is POST - this is cgi request [20:57:26]url: /json_proto [20:57:26]query_string will be loaded in cgi processing [20:57:26]execute_cgi json_proto POST (null) [20:57:26]execute_cgi path=json_proto method=POST [20:57:26]POST find Content-Length [20:57:26]Host: 172.17.41.195:8080 [20:57:26]Content-Length: 675 [20:57:26]Content-Type: application/json [20:57:26] [20:57:26]POST finish read [20:57:26]Found Content-Length = 675 [20:57:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:26]execute_script... [20:57: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)507062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:26]POST & json_proto [20:57:26]process_json_proto [20:57:26]json parsed OK: [20:57:26]protocol is kg_v1.0 [20:57:26]action value=close_receipt [20:57:26]process_action close_receipt [20:57:26]cmd_close_receipt [20:57:26]MH_GetDate [20:57:26]Write to MH i2c: F0 00 00 41 11 41 [20:57:26]Write i2c OK [20:57:26]MH_I2C_Read... [20:57:26]Read from MH i2c: F0 [20:57:26]MH_I2C_Read... [20:57:26]Read from MH i2c: F0 09 00 [20:57:26]MH_I2C_Read... [20:57:26]Read from MH i2c: F0 09 00 41 11 00 37 D0 43 66 FC 21 6F 64 EA [20:57:26]GetLastDocTimeStamp 1715720012 [20:57:26]current date 1715720247 [20:57:26]FM_GetShiftState [20:57:26]SAM_PROTO_GetShiftState [20:57:26]wFMCommunicate request_size=4 [20:57:26]MH_SAM_APDU [20:57:26]CAPDU: 80 13 01 00 [20:57:26]Write to MH i2c: E2 08 00 42 11 80 13 01 00 00 00 00 00 D0 [20:57:26]Write i2c OK [20:57:26]MH_I2C_Read... [20:57:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:26]Read from MH i2c: E2 [20:57:26]MH_I2C_Read... [20:57:26]Read from MH i2c: E2 0E 00 [20:57:26]MH_I2C_Read... [20:57:26]Read from MH i2c: E2 0E 00 42 11 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 98 [20:57:26]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:57:26]wFMCommunicate OK [20:57:26]SAM_PROTO_GetShiftState done [20:57:26]FM_GetShiftState done [20:57:26]opened in 1715646054 [20:57:26]opened+sec_in_day 1715732454 [20:57:26]quantity*price = 100005 [20:57:26]sum+1 = 100006 [20:57:26]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 СНО: Общий режим Чек 168 14.05.2024 20:57 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67161 ФПД: 48222199886099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T205727&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67161&fm=48222199886099&tin=02508201610067®Number=0000000000091845&sum=100000 [20:57:28]StoreToDocumentArchive [20:57:28]shift 355 fd 67161 [20:57:28]save to /storage/0355/doc_00067161 [20:57:28]save last doc name /storage/0355/doc_00067161 to /storage/kkm_last_doc_name [20:57:28]save OK [20:57:28]Clear old archive folders... [20:57:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:57:28]tlvbuf is 00347F50 [20:57:28]SAM_PROTO_ClearQueue [20:57:28]wFMCommunicate request_size=4 [20:57:28]MH_SAM_APDU [20:57:28]CAPDU: 80 09 00 00 [20:57:28]Write to MH i2c: E2 08 00 4F 11 80 09 00 00 00 00 00 00 D2 [20:57:28]Write i2c OK [20:57:28]MH_I2C_Read... [20:57:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:57:28]Read from MH i2c: E2 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: E2 03 00 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: E2 03 00 4F 11 00 90 00 D4 [20:57:28]RAPDU: 90 00 [20:57:28]wFMCommunicate OK [20:57:28]SAM_PROTO_ClearQueue done [20:57:28]KKMCreateOFDPacket [20:57:28]OFDProtocolAddRootSTLVToBuf [20:57:28]FM_MakeSignedData [20:57:28]FM_MakeSignedData [20:57:28]SAM_PROTO_SignData [20:57:28]wFMCommunicate request_size=4 [20:57:28]MH_SAM_APDU [20:57:28]CAPDU: 80 0D 01 02 [20:57:28]Write to MH i2c: E2 08 00 50 11 80 0D 01 02 00 00 00 00 DA [20:57:28]Write i2c OK [20:57:28]MH_I2C_Read... [20:57:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:57:28]Read from MH i2c: E2 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: E2 03 00 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: E2 03 00 50 11 00 90 00 D5 [20:57:28]RAPDU: 90 00 [20:57:28]wFMCommunicate OK [20:57:28]wFMCommunicate request_size=255 [20:57:28]MH_SAM_APDU [20:57:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 37 D0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 [20:57:28]Write to MH i2c: E2 02 01 51 11 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 A8 00 00 00 F4 03 04 00 37 D0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 00 00 33 [20:57:28]Write i2c OK [20:57:28]MH_I2C_Read... [20:57:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:28]Read from MH i2c: E2 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: E2 03 00 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: E2 03 00 51 11 00 90 00 D6 [20:57:28]RAPDU: 90 00 [20:57:28]wFMCommunicate OK [20:57:28]wFMCommunicate request_size=11 [20:57:28]MH_SAM_APDU [20:57:28]CAPDU: 80 0D 02 02 06 2B DB 9B 18 31 13 [20:57:28]Write to MH i2c: E2 0E 00 52 11 80 0D 02 02 06 00 2B DB 9B 18 31 13 00 00 E6 [20:57:28]Write i2c OK [20:57:28]MH_I2C_Read... [20:57:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:28]Read from MH i2c: E2 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: E2 03 00 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: E2 03 00 52 11 00 90 00 D7 [20:57:28]RAPDU: 90 00 [20:57:28]wFMCommunicate OK [20:57:28]wFMCommunicate request_size=4 [20:57:28]MH_SAM_APDU [20:57:28]CAPDU: 80 0D 03 02 [20:57:28]Write to MH i2c: E2 08 00 53 11 80 0D 03 02 00 00 00 00 DF [20:57:28]Write i2c OK [20:57:28]MH_I2C_Read... [20:57:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:57:28]Read from MH i2c: E2 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: E2 0B 00 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: E2 0B 00 53 11 00 3B C2 B9 16 9B 02 81 53 90 00 1D [20:57:28]RAPDU: 3B C2 B9 16 9B 02 81 53 90 00 [20:57:28]wFMCommunicate OK [20:57:28]SAM_PROTO_SignData done [20:57:28]FM_MakeSignedData done [20:57:28]CreateOFDProtocolMessage [20:57:28]wFMCommunicate request_size=4 [20:57:28]MH_SAM_APDU [20:57:28]CAPDU: 80 11 00 00 [20:57:28]Write to MH i2c: E2 08 00 54 11 80 11 00 00 00 00 00 00 DF [20:57:28]Write i2c OK [20:57:28]MH_I2C_Read... [20:57:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:28]Read from MH i2c: E2 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: E2 17 00 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: E2 17 00 54 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 35 [20:57:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:57:28]wFMCommunicate OK [20:57:28]CreateOFDProtocolMessage done [20:57:28]OFDSenderStorePacket 67161 [20:57:28]StoreOFDPacket docnum=67161 [20:57:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 A1 D6 08 01 99 97 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A8 00 00 00 F4 03 04 00 37 D0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 2B DB 9B 18 31 13 3B C2 B9 16 9B 02 81 53 [20:57:28]CheckFolder [20:57:28]dirname=/storage/ofd_packets [20:57:28]CheckFolder done [20:57:28]ProducePacketName [20:57:28]name=ofd_packets/00067161 [20:57:28]NVStorageSaveData ofd_packets/00067161 [20:57:28]File name is /storage/ofd_packets/00067161 [20:57:28]Write 302 bytes [20:57:28]NVStorageSaveData done [20:57:28]OFDSenderStorePacket done [20:57:28]KKMCreateOFDPacket done [20:57:28]NVStorageSaveData kkm_last_timestamp [20:57:28]File name is /storage/kkm_last_timestamp [20:57:28]Write 4 bytes [20:57:28]NVStorageSaveData done [20:57:28]ExternCall_PrintAddStr [20:57:28]wPrintStart [20:57:28]Write to MH i2c: 01 00 00 55 11 66 [20:57:28]Write i2c OK [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: 01 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: 01 07 00 [20:57:28]MH_I2C_Read... [20:57:28]Read from MH i2c: 01 07 00 55 11 00 00 00 00 00 FF 0F 7B [20:57:28]RasterBufferAndPrint [20:57:28]line Счет N : (1)507062 [20:57:28]line ИНН: 02508201610067 [20:57:28]line Контрольно-Кассовый Чек [20:57:28]line ПРОДАЖА [20:57:28]line ТРК (МРК, ГНК) : 42 [20:57:28]line Товар: 2710124130 [20:57:28]line Super-92-К-5 [20:57:28]line 14.750 * 67.80 [20:57:28]line = 1000.05 [20:57:28]line НДС 12% НСП 1% [20:57:28]line > о реализуемом товаре [20:57:28]line ОКРУГЛЕНИЕ: -0.05 [20:57:28]line ИТОГО: 1000.00 [20:57:28]line Внесено: 1000.00 [20:57:28]line СДАЧА: 0.00 [20:57:28]line НСП 1% : 8.85 [20:57:28]line НДС 12% : 106.20 [20:57:28]line Наличными: 1000.00 [20:57:28]line Безнал.: 0.00 [20:57:28]line Место: АЗС № 91 "Партнер Нефть" [20:57:28]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:57:28]line СНО: Общий режим [20:57:28]line Чек 168 14.05.2024 20:57 [20:57:28]line Смена: 355 ФФД: 1.0 [20:57:28]line ЗНМ: 0300000119 [20:57:28]line РНМ: 0000000000091845 [20:57:28]line Версия ККМ: 001 [20:57:28]line ФМ: 0000000000871829 [20:57:28]line ФД: 67161 [20:57:28]line ФПД: 48222199886099 [20:57:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T205727&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67161&fm=48222199886099&tin=02508201610067®Number=0000000000091845&sum=100000 [20:57:28]written 0, free lines is 4095 [20:57:28]OFD Sender: Processing packet 67161 [packets to send 35, broken 34] [20:57:28]ProducePacketName [20:57:28]name=ofd_packets/00067161 [20:57:28]OFD Sender: To server: pG, [20:57:28]CommunicateWithHost lk.salyk.kg:30040 [20:57:28]ConnectInit lk.salyk.kg [20:57:29]Connected sock=9 [20:57: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 A1 D6 08 01 99 97 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 A8 00 00 00 F4 03 04 00 37 D0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 2B DB 9B 18 31 13 3B C2 B9 16 9B 02 81 53 [20:57: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 0B 42 47 00 BD 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 59 06 01 00 F4 03 04 00 16 78 43 66 B6 04 01 00 00 B6 4D BE F8 3D 50 EE 91 [20:57:29]CommunicateWithHost err = 0 [20:57:29]CheckOFDResponse [20:57:29]1017 (14) - 77093643461234 [20:57:29]1041 (16) - 0000000000871829 [20:57:29]1040 (4) - 67161 [20:57:29]1012 (4) - 14.05.2024 14:41 [20:57:29]1206 (1) - 0 [20:57:29]OFD Sender: Remove packet 67161 [20:57:29]ProducePacketName [20:57:29]name=ofd_packets/00067161 [20:57:29]NVStorageDeleteData [20:57:29]Write to MH i2c: 01 00 00 7F 11 90 [20:57:29]Write i2c OK [20:57:29]MH_I2C_Read... [20:57:29]Read from MH i2c: 01 [20:57:29]MH_I2C_Read... [20:57:29]Read from MH i2c: 01 07 00 [20:57:29]MH_I2C_Read... [20:57:29]Read from MH i2c: 01 07 00 7F 11 00 00 00 00 00 DD 0C 80 [20:57:29]RasterBufferAndPrint [20:57:29]line [20:57:29]line [20:57:29]line [20:57:29]line [20:57:29]line [20:57:29]written 0, free lines is 3298 [20:57:29]MH_Cut [20:57:29]Write to MH i2c: D1 01 00 86 11 01 69 [20:57:29]Write i2c OK [20:57:29]MH_I2C_Read... [20:57:29]Read from MH i2c: D1 [20:57:29]MH_I2C_Read... [20:57:29]Read from MH i2c: D1 01 00 [20:57:29]MH_I2C_Read... [20:57:29]Read from MH i2c: D1 01 00 86 11 00 68 [20:57:29]Write to MH i2c: 01 00 00 87 11 98 [20:57:29]Write i2c OK [20:57:29]MH_I2C_Read... [20:57:29]OFD Sender: No OFD packet to send [20:57:30]*** Cut start [20:57:30]*** Purtial cut [20:57:30]*** CUTSNS_PIN = 0 [20:57:30]*** Stage 1: CUTSNS_PIN = 1 [20:57:32]Read from MH i2c: 01 [20:57:32]MH_I2C_Read... [20:57:32]*** Stop cut motor [20:57:32]*** Cut end [20:57:32]Read from MH i2c: 01 07 00 [20:57:32]MH_I2C_Read... [20:57:32]Read from MH i2c: 01 07 00 87 11 00 00 00 00 00 FF 0F AD [20:57:32]process_action close_receipt done [20:57:32]requested_data is exist [20:57:32]produce_requested_data [20:57:32]requested_item fm.sn is exist - process it [20:57:32]wFMCommunicate request_size=4 [20:57:32]MH_SAM_APDU [20:57:32]CAPDU: 80 11 00 00 [20:57:32]Write to MH i2c: E2 08 00 88 11 80 11 00 00 00 00 00 00 13 [20:57:32]Write i2c OK [20:57:32]MH_I2C_Read... [20:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:32]Read from MH i2c: E2 [20:57:32]MH_I2C_Read... [20:57:32]Read from MH i2c: E2 17 00 [20:57:32]MH_I2C_Read... [20:57:32]Read from MH i2c: E2 17 00 88 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 69 [20:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [20:57:32]wFMCommunicate OK [20:57:32]requested_item fd.num is exist - process it [20:57:32]SAM_PROTO_GetFieldsCounters [20:57:32]wFMCommunicate request_size=4 [20:57:32]MH_SAM_APDU [20:57:32]CAPDU: 80 13 00 00 [20:57:32]Write to MH i2c: E2 08 00 89 11 80 13 00 00 00 00 00 00 16 [20:57:32]Write i2c OK [20:57:32]MH_I2C_Read... [20:57:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:32]Read from MH i2c: E2 [20:57:32]MH_I2C_Read... [20:57:32]Read from MH i2c: E2 62 00 [20:57:32]MH_I2C_Read... [20:57:32]Read from MH i2c: E2 62 00 89 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 59 06 01 00 0E 04 04 00 63 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 F8 [20:57: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 59 06 01 00 0E 04 04 00 63 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 [20:57:32]wFMCommunicate OK [20:57:32]SAM_PROTO_GetFieldsCounters done [20:57:32]requested_item shift.num is exist - process it [20:57:32]requested_item shift.opened is exist - process it [20:57:32]req_shift_opened [20:57:32]FM_GetShiftState [20:57:32]SAM_PROTO_GetShiftState [20:57:32]wFMCommunicate request_size=4 [20:57:32]MH_SAM_APDU [20:57:32]CAPDU: 80 13 01 00 [20:57:32]Write to MH i2c: E2 08 00 8A 11 80 13 01 00 00 00 00 00 18 [20:57:32]Write i2c OK [20:57:32]MH_I2C_Read... [20:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:32]Read from MH i2c: E2 [20:57:32]MH_I2C_Read... [20:57:32]Read from MH i2c: E2 0E 00 [20:57:32]MH_I2C_Read... [20:57:32]Read from MH i2c: E2 0E 00 8A 11 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 E0 [20:57:32]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:57:32]wFMCommunicate OK [20:57:32]SAM_PROTO_GetShiftState done [20:57:32]FM_GetShiftState done [20:57:32]req_shift_opened done [20:57:32]requested_item shift.open_date is exist - process it [20:57:32]req_shift_open_date [20:57:32]req_shift_open_date done [20:57:32]produce_requested_data done [20:57:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67161,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [20:57:32]process_action_free close_receipt [20:57:32]json_value_free [20:57:32]json_value_free done [20:57:32]process_json_proto returns [20:57:32]Send response to host [20:57:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67161,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [20:57:32]free response buf [20:57:32]execute_script done [20:57:32]execute_script returns [20:57:32]free content buf [20:57:32]Sock 10.Close socket [20:57:32]Sock 10.Thread stoped [20:57:34]OFD Sender: No OFD packet to send [20:57:39]OFD Sender: No OFD packet to send [20:57:44]OFD Sender: No OFD packet to send [20:57:49]OFD Sender: No OFD packet to send [20:57:54]OFD Sender: No OFD packet to send [20:57:59]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:09]OFD Sender: No OFD packet to send [20:58:14]OFD Sender: No OFD packet to send [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:29]OFD Sender: No OFD packet to send [20:58:34]OFD Sender: No OFD packet to send [20:58:39]OFD Sender: No OFD packet to send [20:58:44]OFD Sender: No OFD packet to send [20:58:49]OFD Sender: No OFD packet to send [20:58:50]accept exits with 7 [20:58:50]New connection [20:58:50]New thread 3066731876 created [20:58:50]Thread 3066588516 joined [20:58:50]Waiting for new connection... [20:58:50] Sock 7.Parse request [20:58:50]Sock 7.Check first char [20:58:50]Sock 7.First char is OK [20:58:50]request: POST /json_proto HTTP/1.0 [20:58:50]Method: POST [20:58:50]URL: /json_proto [20:58:50]Method is POST - this is cgi request [20:58:50]url: /json_proto [20:58:50]query_string will be loaded in cgi processing [20:58:50]execute_cgi json_proto POST (null) [20:58:50]execute_cgi path=json_proto method=POST [20:58:50]POST find Content-Length [20:58:50]Host: 172.17.41.195:8080 [20:58:50]Content-Length: 678 [20:58:50]Content-Type: application/json [20:58:50] [20:58:50]POST finish read [20:58:50]Found Content-Length = 678 [20:58:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12057", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:50]execute_script... [20:58: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)12057", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:50]POST & json_proto [20:58:50]process_json_proto [20:58:50]json parsed OK: [20:58:50]protocol is kg_v1.0 [20:58:50]action value=close_receipt [20:58:50]process_action close_receipt [20:58:50]cmd_close_receipt [20:58:50]MH_GetDate [20:58:50]Write to MH i2c: F0 00 00 8B 11 8B [20:58:50]Write i2c OK [20:58:50]MH_I2C_Read... [20:58:50]Read from MH i2c: F0 [20:58:50]MH_I2C_Read... [20:58:50]Read from MH i2c: F0 09 00 [20:58:50]MH_I2C_Read... [20:58:50]Read from MH i2c: F0 09 00 8B 11 00 8B D0 43 66 FC 21 6F 64 88 [20:58:50]GetLastDocTimeStamp 1715720247 [20:58:50]current date 1715720331 [20:58:50]FM_GetShiftState [20:58:50]SAM_PROTO_GetShiftState [20:58:50]wFMCommunicate request_size=4 [20:58:50]MH_SAM_APDU [20:58:50]CAPDU: 80 13 01 00 [20:58:50]Write to MH i2c: E2 08 00 8C 11 80 13 01 00 00 00 00 00 1A [20:58:50]Write i2c OK [20:58:50]MH_I2C_Read... [20:58:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:50]Read from MH i2c: E2 [20:58:50]MH_I2C_Read... [20:58:50]Read from MH i2c: E2 0E 00 [20:58:50]MH_I2C_Read... [20:58:50]Read from MH i2c: E2 0E 00 8C 11 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 E2 [20:58:50]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:58:50]wFMCommunicate OK [20:58:50]SAM_PROTO_GetShiftState done [20:58:50]FM_GetShiftState done [20:58:50]opened in 1715646054 [20:58:50]opened+sec_in_day 1715732454 [20:58:50]quantity*price = 8000 [20:58:50]sum+1 = 8001 [20:58:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 169 14.05.2024 20:58 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67162 ФПД: 206770257268681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T205851&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67162&fm=206770257268681&tin=02508201610067®Number=0000000000091845&sum=8000 0 [20:58:51]StoreToDocumentArchive [20:58:51]shift 355 fd 67162 [20:58:51]save to /storage/0355/doc_00067162 [20:58:51]save last doc name /storage/0355/doc_00067162 to /storage/kkm_last_doc_name [20:58:51]save OK [20:58:51]Clear old archive folders... [20:58:51]ProcessDocumentItem done err = 0, tmpTLVsize=294 [20:58:51]tlvbuf is 00347F40 [20:58:51]SAM_PROTO_ClearQueue [20:58:51]wFMCommunicate request_size=4 [20:58:51]MH_SAM_APDU [20:58:51]CAPDU: 80 09 00 00 [20:58:51]Write to MH i2c: E2 08 00 99 11 80 09 00 00 00 00 00 00 1C [20:58:51]Write i2c OK [20:58:51]MH_I2C_Read... [20:58:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:58:51]Read from MH i2c: E2 [20:58:51]MH_I2C_Read... [20:58:51]Read from MH i2c: E2 03 00 [20:58:51]MH_I2C_Read... [20:58:51]Read from MH i2c: E2 03 00 99 11 00 90 00 1E [20:58:51]RAPDU: 90 00 [20:58:51]wFMCommunicate OK [20:58:51]SAM_PROTO_ClearQueue done [20:58:51]KKMCreateOFDPacket [20:58:51]OFDProtocolAddRootSTLVToBuf [20:58:51]FM_MakeSignedData [20:58:51]FM_MakeSignedData [20:58:51]SAM_PROTO_SignData [20:58:51]wFMCommunicate request_size=4 [20:58:51]MH_SAM_APDU [20:58:51]CAPDU: 80 0D 01 02 [20:58:51]Write to MH i2c: E2 08 00 9A 11 80 0D 01 02 00 00 00 00 24 [20:58:51]Write i2c OK [20:58:51]MH_I2C_Read... [20:58:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:58:51]Read from MH i2c: E2 [20:58:51]MH_I2C_Read... [20:58:51]Read from MH i2c: E2 03 00 [20:58:51]MH_I2C_Read... [20:58:51]Read from MH i2c: E2 03 00 9A 11 00 90 00 1F [20:58:51]RAPDU: 90 00 [20:58:51]wFMCommunicate OK [20:58:51]wFMCommunicate request_size=255 [20:58:51]MH_SAM_APDU [20:58:51]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 8B D0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [20:58:51]Write to MH i2c: E2 02 01 9B 11 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 8B D0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 37 [20:58:52]Write i2c OK [20:58:52]MH_I2C_Read... [20:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:52]Read from MH i2c: E2 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: E2 03 00 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: E2 03 00 9B 11 00 90 00 20 [20:58:52]RAPDU: 90 00 [20:58:52]wFMCommunicate OK [20:58:52]wFMCommunicate request_size=53 [20:58:52]MH_SAM_APDU [20:58:52]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5A 06 01 00 35 04 06 00 BC 0E 73 BC 0F C9 [20:58:52]Write to MH i2c: E2 38 00 9C 11 80 0D 02 02 30 00 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5A 06 01 00 35 04 06 00 BC 0E 73 BC 0F C9 00 00 53 [20:58:52]Write i2c OK [20:58:52]MH_I2C_Read... [20:58:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:52]Read from MH i2c: E2 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: E2 03 00 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: E2 03 00 9C 11 00 90 00 21 [20:58:52]RAPDU: 90 00 [20:58:52]wFMCommunicate OK [20:58:52]wFMCommunicate request_size=4 [20:58:52]MH_SAM_APDU [20:58:52]CAPDU: 80 0D 03 02 [20:58:52]Write to MH i2c: E2 08 00 9D 11 80 0D 03 02 00 00 00 00 29 [20:58:52]Write i2c OK [20:58:52]MH_I2C_Read... [20:58:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:58:52]Read from MH i2c: E2 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: E2 0B 00 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: E2 0B 00 9D 11 00 09 29 9B 64 9B 92 D7 3F 90 00 9E [20:58:52]RAPDU: 09 29 9B 64 9B 92 D7 3F 90 00 [20:58:52]wFMCommunicate OK [20:58:52]SAM_PROTO_SignData done [20:58:52]FM_MakeSignedData done [20:58:52]CreateOFDProtocolMessage [20:58:52]wFMCommunicate request_size=4 [20:58:52]MH_SAM_APDU [20:58:52]CAPDU: 80 11 00 00 [20:58:52]Write to MH i2c: E2 08 00 9E 11 80 11 00 00 00 00 00 00 29 [20:58:52]Write i2c OK [20:58:52]MH_I2C_Read... [20:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:52]Read from MH i2c: E2 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: E2 17 00 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: E2 17 00 9E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7F [20:58: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:58:52]wFMCommunicate OK [20:58:52]CreateOFDProtocolMessage done [20:58:52]OFDSenderStorePacket 67162 [20:58:52]StoreOFDPacket docnum=67162 [20:58: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 3A 01 00 00 58 53 32 01 CC 85 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 8B D0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BC 0E 73 BC 0F C9 09 29 9B 64 9B 92 D7 3F [20:58:52]CheckFolder [20:58:52]dirname=/storage/ofd_packets [20:58:52]CheckFolder done [20:58:52]ProducePacketName [20:58:52]name=ofd_packets/00067162 [20:58:52]NVStorageSaveData ofd_packets/00067162 [20:58:52]File name is /storage/ofd_packets/00067162 [20:58:52]Write 344 bytes [20:58:52]NVStorageSaveData done [20:58:52]OFDSenderStorePacket done [20:58:52]KKMCreateOFDPacket done [20:58:52]NVStorageSaveData kkm_last_timestamp [20:58:52]File name is /storage/kkm_last_timestamp [20:58:52]Write 4 bytes [20:58:52]NVStorageSaveData done [20:58:52]ExternCall_PrintAddStr [20:58:52]wPrintStart [20:58:52]Write to MH i2c: 01 00 00 9F 11 B0 [20:58:52]Write i2c OK [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: 01 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: 01 07 00 [20:58:52]MH_I2C_Read... [20:58:52]Read from MH i2c: 01 07 00 9F 11 00 00 00 00 00 FF 0F C5 [20:58:52]RasterBufferAndPrint [20:58:52]line Счет N : (3)12057 [20:58:52]line ИНН: 02508201610067 [20:58:52]line Контрольно-Кассовый Чек [20:58:52]line ПРОДАЖА [20:58:52]line Товар: 4700003010353 [20:58:52]line Напиток Let`s Go! с/с груша ПЭТ 1л [20:58:52]line 1.000 * 80.00 [20:58:52]line = 80.00 [20:58:52]line НДС 12% НСП 1% [20:58:52]line > о реализуемом товаре [20:58:52]line ИТОГО: 80.00 [20:58:52]line НСП 1% : 0.71 [20:58:52]line НДС 12% : 8.50 [20:58:52]line Наличными: 80.00 [20:58:52]line Безнал.: 0.00 [20:58:52]line Место: АЗС № 91 "Партнер Нефть" [20:58:52]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [20:58:52]line СНО: Общий режим [20:58:52]line Чек 169 14.05.2024 20:58 [20:58:52]line Смена: 355 ФФД: 1.0 [20:58:52]line ЗНМ: 0300000119 [20:58:52]line РНМ: 0000000000091845 [20:58:52]line Версия ККМ: 001 [20:58:52]line ФМ: 0000000000871829 [20:58:52]line ФД: 67162 [20:58:52]line ФПД: 206770257268681 [20:58:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T205851&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67162&fm=206770257268681&tin=02508201610067®Number=0000000000091845&sum=8000 [20:58:52]OFD Sender: Processing packet 67162 [packets to send 35, broken 34] [20:58:52]ProducePacketName [20:58:52]name=ofd_packets/00067162 [20:58:52]OFD Sender: To server: pG, [20:58:52]CommunicateWithHost lk.salyk.kg:30040 [20:58:52]ConnectInit lk.salyk.kg [20:58:52]line 0 [20:58:52]written 0, free lines is 4095 [20:58:52]Connected sock=10 [20:58: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 3A 01 00 00 58 53 32 01 CC 85 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 8B D0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BC 0E 73 BC 0F C9 09 29 9B 64 9B 92 D7 3F [20:58: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 62 3C 47 00 1E 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5A 06 01 00 F4 03 04 00 6A 78 43 66 B6 04 01 00 00 B9 20 F0 55 4E E3 9F 4D [20:58:53]CommunicateWithHost err = 0 [20:58:53]CheckOFDResponse [20:58:53]1017 (14) - 77093643461234 [20:58:53]1041 (16) - 0000000000871829 [20:58:53]1040 (4) - 67162 [20:58:53]1012 (4) - 14.05.2024 14:42 [20:58:53]1206 (1) - 0 [20:58:53]OFD Sender: Remove packet 67162 [20:58:53]ProducePacketName [20:58:53]name=ofd_packets/00067162 [20:58:53]NVStorageDeleteData [20:58:53]Write to MH i2c: 01 00 00 C7 11 D8 [20:58:53]Write i2c OK [20:58:53]MH_I2C_Read... [20:58:53]Read from MH i2c: 01 [20:58:53]MH_I2C_Read... [20:58:53]Read from MH i2c: 01 07 00 [20:58:53]MH_I2C_Read... [20:58:53]Read from MH i2c: 01 07 00 C7 11 00 00 00 00 00 ED 0C D8 [20:58:53]RasterBufferAndPrint [20:58:53]line [20:58:53]line [20:58:53]line [20:58:53]line [20:58:53]line [20:58:53]written 0, free lines is 3313 [20:58:53]MH_Cut [20:58:53]Write to MH i2c: D1 01 00 CE 11 01 B1 [20:58:53]Write i2c OK [20:58:53]MH_I2C_Read... [20:58:53]Read from MH i2c: D1 [20:58:53]MH_I2C_Read... [20:58:53]Read from MH i2c: D1 01 00 [20:58:53]MH_I2C_Read... [20:58:53]Read from MH i2c: D1 01 00 CE 11 00 B0 [20:58:53]Write to MH i2c: 01 00 00 CF 11 E0 [20:58:53]Write i2c OK [20:58:53]MH_I2C_Read... [20:58:53]OFD Sender: No OFD packet to send [20:58:53]*** Cut start [20:58:53]*** Purtial cut [20:58:53]*** Stage 1: CUTSNS_PIN = 1 [20:58:54]Read from MH i2c: 01 [20:58:54]MH_I2C_Read... [20:58:54]*** Stop cut motor [20:58:54]*** Cut end [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 CF 11 00 00 00 00 00 FF 0F F5 [20:58:54]process_action close_receipt done [20:58:54]requested_data is exist [20:58:54]produce_requested_data [20:58:54]requested_item fm.sn is exist - process it [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 D0 11 80 11 00 00 00 00 00 00 5B [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 D0 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B1 [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]requested_item fd.num is exist - process it [20:58:54]SAM_PROTO_GetFieldsCounters [20:58:54]wFMCommunicate request_size=4 [20:58:54]MH_SAM_APDU [20:58:54]CAPDU: 80 13 00 00 [20:58:54]Write to MH i2c: E2 08 00 D1 11 80 13 00 00 00 00 00 00 5E [20:58:54]Write i2c OK [20:58:54]MH_I2C_Read... [20:58:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:58:54]Read from MH i2c: E2 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 62 00 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 62 00 D1 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 5A 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [20:58: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 5A 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:58:54]wFMCommunicate OK [20:58:54]SAM_PROTO_GetFieldsCounters done [20:58:54]requested_item shift.num is exist - process it [20:58:54]requested_item shift.opened is exist - process it [20:58:54]req_shift_opened [20:58:54]FM_GetShiftState [20:58:54]SAM_PROTO_GetShiftState [20:58:54]wFMCommunicate request_size=4 [20:58:54]MH_SAM_APDU [20:58:54]CAPDU: 80 13 01 00 [20:58:54]Write to MH i2c: E2 08 00 D2 11 80 13 01 00 00 00 00 00 60 [20:58:54]Write i2c OK [20:58:54]MH_I2C_Read... [20:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:54]Read from MH i2c: E2 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 0E 00 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 0E 00 D2 11 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 28 [20:58:54]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [20:58:54]wFMCommunicate OK [20:58:54]SAM_PROTO_GetShiftState done [20:58:54]FM_GetShiftState done [20:58:54]req_shift_opened done [20:58:54]requested_item shift.open_date is exist - process it [20:58:54]req_shift_open_date [20:58:54]req_shift_open_date done [20:58:54]produce_requested_data done [20:58:54]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67162,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [20:58:54]process_action_free close_receipt [20:58:54]json_value_free [20:58:54]json_value_free done [20:58:54]process_json_proto returns [20:58:54]Send response to host [20:58:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67162,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [20:58:54]free response buf [20:58:54]execute_script done [20:58:54]execute_script returns [20:58:54]free content buf [20:58:54]Sock 7.Close socket [20:58:54]Sock 7.Thread stoped [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:49]accept exits with 9 [21:01:49]New connection [21:01:49]New thread 3066588516 created [21:01:49]Thread 3066731876 joined [21:01:49]Waiting for new connection... [21:01:49] Sock 9.Parse request [21:01:49]Sock 9.Check first char [21:01:49]Sock 9.First char is OK [21:01:49]request: POST /json_proto HTTP/1.0 [21:01:49]Method: POST [21:01:49]URL: /json_proto [21:01:49]Method is POST - this is cgi request [21:01:49]url: /json_proto [21:01:49]query_string will be loaded in cgi processing [21:01:49]execute_cgi json_proto POST (null) [21:01:49]execute_cgi path=json_proto method=POST [21:01:49]POST find Content-Length [21:01:49]Host: 172.17.41.195:8080 [21:01:49]Content-Length: 803 [21:01:49]Content-Type: application/json [21:01:49] [21:01:49]POST finish read [21:01:49]Found Content-Length = 803 [21:01:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 22.460, "sum" : 1500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:49]execute_script... [21:01:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 22.460, "sum" : 1500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:49]POST & json_proto [21:01:49]process_json_proto [21:01:49]json parsed OK: [21:01:49]protocol is kg_v1.0 [21:01:49]action value=close_receipt [21:01:49]process_action close_receipt [21:01:49]cmd_close_receipt [21:01:49]MH_GetDate [21:01:49]Write to MH i2c: F0 00 00 D3 11 D3 [21:01:49]Write i2c OK [21:01:49]MH_I2C_Read... [21:01:49]Read from MH i2c: F0 [21:01:49]MH_I2C_Read... [21:01:49]Read from MH i2c: F0 09 00 [21:01:49]MH_I2C_Read... [21:01:49]Read from MH i2c: F0 09 00 D3 11 00 3E D1 43 66 FC 21 6F 64 84 [21:01:49]GetLastDocTimeStamp 1715720331 [21:01:49]current date 1715720510 [21:01:49]FM_GetShiftState [21:01:49]SAM_PROTO_GetShiftState [21:01:49]wFMCommunicate request_size=4 [21:01:49]MH_SAM_APDU [21:01:49]CAPDU: 80 13 01 00 [21:01:49]Write to MH i2c: E2 08 00 D4 11 80 13 01 00 00 00 00 00 62 [21:01:49]Write i2c OK [21:01:49]MH_I2C_Read... [21:01:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:49]Read from MH i2c: E2 [21:01:49]MH_I2C_Read... [21:01:49]Read from MH i2c: E2 0E 00 [21:01:49]MH_I2C_Read... [21:01:49]Read from MH i2c: E2 0E 00 D4 11 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 2A [21:01:49]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [21:01:49]wFMCommunicate OK [21:01:49]SAM_PROTO_GetShiftState done [21:01:49]FM_GetShiftState done [21:01:49]opened in 1715646054 [21:01:49]opened+sec_in_day 1715732454 [21:01:49]quantity*price = 150032 [21:01:49]sum+1 = 150034 [21:01:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.33 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.33 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 170 14.05.2024 21:01 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67163 ФПД: 174493727142458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T210150&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67163&fm=174493727142458&tin=02508201610067®Number=0000000000091845&sum=150033 [21:01:50]StoreToDocumentArchive [21:01:50]shift 355 fd 67163 [21:01:50]save to /storage/0355/doc_00067163 [21:01:50]save last doc name /storage/0355/doc_00067163 to /storage/kkm_last_doc_name [21:01:50]save OK [21:01:50]Clear old archive folders... [21:01:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:01:50]tlvbuf is 003C0B30 [21:01:50]SAM_PROTO_ClearQueue [21:01:50]wFMCommunicate request_size=4 [21:01:50]MH_SAM_APDU [21:01:50]CAPDU: 80 09 00 00 [21:01:50]Write to MH i2c: E2 08 00 E1 11 80 09 00 00 00 00 00 00 64 [21:01:50]Write i2c OK [21:01:50]MH_I2C_Read... [21:01:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:50]Read from MH i2c: E2 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 03 00 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 03 00 E1 11 00 90 00 66 [21:01:50]RAPDU: 90 00 [21:01:50]wFMCommunicate OK [21:01:50]SAM_PROTO_ClearQueue done [21:01:50]KKMCreateOFDPacket [21:01:50]OFDProtocolAddRootSTLVToBuf [21:01:50]FM_MakeSignedData [21:01:50]FM_MakeSignedData [21:01:50]SAM_PROTO_SignData [21:01:50]wFMCommunicate request_size=4 [21:01:50]MH_SAM_APDU [21:01:50]CAPDU: 80 0D 01 02 [21:01:50]Write to MH i2c: E2 08 00 E2 11 80 0D 01 02 00 00 00 00 6C [21:01:50]Write i2c OK [21:01:50]MH_I2C_Read... [21:01:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:50]Read from MH i2c: E2 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 03 00 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 03 00 E2 11 00 90 00 67 [21:01:50]RAPDU: 90 00 [21:01:50]wFMCommunicate OK [21:01:50]wFMCommunicate request_size=255 [21:01:50]MH_SAM_APDU [21:01:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 AA 00 00 00 F4 03 04 00 3E D1 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 9E [21:01:50]Write to MH i2c: E2 02 01 E3 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 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 AA 00 00 00 F4 03 04 00 3E D1 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 9E 00 00 4D [21:01:50]Write i2c OK [21:01:50]MH_I2C_Read... [21:01:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:50]Read from MH i2c: E2 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 03 00 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 03 00 E3 11 00 90 00 68 [21:01:50]RAPDU: 90 00 [21:01:50]wFMCommunicate OK [21:01:50]wFMCommunicate request_size=10 [21:01:50]MH_SAM_APDU [21:01:50]CAPDU: 80 0D 02 02 05 B3 7C 9F 32 3A [21:01:50]Write to MH i2c: E2 0D 00 E4 11 80 0D 02 02 05 00 B3 7C 9F 32 3A 00 00 B3 [21:01:50]Write i2c OK [21:01:50]MH_I2C_Read... [21:01:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:50]Read from MH i2c: E2 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 03 00 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 03 00 E4 11 00 90 00 69 [21:01:50]RAPDU: 90 00 [21:01:50]wFMCommunicate OK [21:01:50]wFMCommunicate request_size=4 [21:01:50]MH_SAM_APDU [21:01:50]CAPDU: 80 0D 03 02 [21:01:50]Write to MH i2c: E2 08 00 E5 11 80 0D 03 02 00 00 00 00 71 [21:01:50]Write i2c OK [21:01:50]MH_I2C_Read... [21:01:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:50]Read from MH i2c: E2 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 0B 00 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 0B 00 E5 11 00 24 F1 4D 84 32 D8 45 34 90 00 DB [21:01:50]RAPDU: 24 F1 4D 84 32 D8 45 34 90 00 [21:01:50]wFMCommunicate OK [21:01:50]SAM_PROTO_SignData done [21:01:50]FM_MakeSignedData done [21:01:50]CreateOFDProtocolMessage [21:01:50]wFMCommunicate request_size=4 [21:01:50]MH_SAM_APDU [21:01:50]CAPDU: 80 11 00 00 [21:01:50]Write to MH i2c: E2 08 00 E6 11 80 11 00 00 00 00 00 00 71 [21:01:50]Write i2c OK [21:01:50]MH_I2C_Read... [21:01:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:50]Read from MH i2c: E2 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 17 00 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: E2 17 00 E6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C7 [21:01:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:01:50]wFMCommunicate OK [21:01:50]CreateOFDProtocolMessage done [21:01:50]OFDSenderStorePacket 67163 [21:01:50]StoreOFDPacket docnum=67163 [21:01:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 6F F8 07 01 87 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AA 00 00 00 F4 03 04 00 3E D1 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 9E B3 7C 9F 32 3A 24 F1 4D 84 32 D8 45 34 [21:01:50]CheckFolder [21:01:50]dirname=/storage/ofd_packets [21:01:50]CheckFolder done [21:01:50]ProducePacketName [21:01:50]name=ofd_packets/00067163 [21:01:50]NVStorageSaveData ofd_packets/00067163 [21:01:50]File name is /storage/ofd_packets/00067163 [21:01:50]Write 301 bytes [21:01:50]NVStorageSaveData done [21:01:50]OFDSenderStorePacket done [21:01:50]KKMCreateOFDPacket done [21:01:50]NVStorageSaveData kkm_last_timestamp [21:01:50]File name is /storage/kkm_last_timestamp [21:01:50]Write 4 bytes [21:01:50]NVStorageSaveData done [21:01:50]ExternCall_PrintAddStr [21:01:50]wPrintStart [21:01:50]Write to MH i2c: 01 00 00 E7 11 F8 [21:01:50]Write i2c OK [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: 01 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: 01 07 00 [21:01:50]MH_I2C_Read... [21:01:50]Read from MH i2c: 01 07 00 E7 11 00 00 00 00 00 FF 0F 0D [21:01:50]RasterBufferAndPrint [21:01:50]line Счет N : (1)507063 [21:01:50]line ИНН: 02508201610067 [21:01:50]line Контрольно-Кассовый Чек [21:01:50]line ПРОДАЖА [21:01:50]line ТРК (МРК, ГНК) : 43 [21:01:50]line Товар: 2710124130 [21:01:50]line Аи-92-К-5 [21:01:50]line 22.460 * 66.80 [21:01:50]line = 1500.33 [21:01:50]line НДС 12% НСП 1% [21:01:50]line > о реализуемом товаре [21:01:50]line ИТОГО: 1500.33 [21:01:50]line НСП 1% : 13.28 [21:01:50]line НДС 12% : 159.33 [21:01:50]line Наличными: 0.00 [21:01:50]line Безнал.: 1500.33 [21:01:50]line Место: АЗС № 91 "Партнер Нефть" [21:01:50]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:01:50]line СНО: Общий режим [21:01:50]line Чек 170 14.05.2024 21:01 [21:01:50]line Смена: 355 ФФД: 1.0 [21:01:50]line ЗНМ: 0300000119 [21:01:50]line РНМ: 0000000000091845 [21:01:50]line Версия ККМ: 001 [21:01:50]line Платежная система: O! деньги [21:01:50]line ФМ: 0000000000871829 [21:01:50]line ФД: 67163 [21:01:50]line ФПД: 174493727142458 [21:01:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T210150&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67163&fm=174493727142458&tin=02508201610067®Number=0000000000091845&sum=150033 [21:01:50]written 0, free lines is 4095 [21:01:50]OFD Sender: Processing packet 67163 [packets to send 35, broken 34] [21:01:50]ProducePacketName [21:01:50]name=ofd_packets/00067163 [21:01:51]OFD Sender: To server: pG, [21:01:51]CommunicateWithHost lk.salyk.kg:30040 [21:01:51]ConnectInit lk.salyk.kg [21:01:51]Connected sock=10 [21:01:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 6F F8 07 01 87 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AA 00 00 00 F4 03 04 00 3E D1 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 9E B3 7C 9F 32 3A 24 F1 4D 84 32 D8 45 34 [21:01:51]Write to MH i2c: 01 00 00 10 12 22 [21:01:51]Write i2c OK [21:01:51]MH_I2C_Read... [21:01:51]Read from MH i2c: 01 [21:01:51]MH_I2C_Read... [21:01:51]Read from MH i2c: 01 07 00 [21:01:51]MH_I2C_Read... [21:01:51]Read from MH i2c: 01 07 00 10 12 00 00 00 00 00 F1 0C 26 [21:01:51]RasterBufferAndPrint [21:01:51]line [21:01:51]line [21:01:51]line [21:01:51]line [21:01:51]line [21:01:51]written 0, free lines is 3319 [21:01:51]MH_Cut [21:01:51]Write to MH i2c: D1 01 00 17 12 01 FB [21:01:51]Write i2c OK [21:01:51]MH_I2C_Read... [21:01:51]Read from MH i2c: D1 [21:01:51]MH_I2C_Read... [21:01:51]Read from MH i2c: D1 01 00 [21:01:51]MH_I2C_Read... [21:01:51]Read from MH i2c: D1 01 00 17 12 00 FA [21:01:51]Write to MH i2c: 01 00 00 18 12 2A [21:01:51]Write i2c OK [21:01:51]MH_I2C_Read... [21:01:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 20 E2 47 00 A3 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 5B 06 01 00 F4 03 04 00 1D 79 43 66 B6 04 01 00 00 B8 0C B3 EA 30 C5 D2 E3 [21:01:51]CommunicateWithHost err = 0 [21:01:51]CheckOFDResponse [21:01:51]1017 (14) - 77093643461234 [21:01:51]1041 (16) - 0000000000871829 [21:01:51]1040 (4) - 67163 [21:01:51]1012 (4) - 14.05.2024 14:45 [21:01:51]1206 (1) - 0 [21:01:51]OFD Sender: Remove packet 67163 [21:01:51]ProducePacketName [21:01:51]name=ofd_packets/00067163 [21:01:51]NVStorageDeleteData [21:01:52]OFD Sender: No OFD packet to send [21:01:52]*** Cut start [21:01:52]*** Purtial cut [21:01:52]*** CUTSNS_PIN = 0 [21:01:52]*** Stage 1: CUTSNS_PIN = 1 [21:01:54]Read from MH i2c: 01 [21:01:54]MH_I2C_Read... [21:01:54]*** Stop cut motor [21:01:54]*** Cut end [21:01:54]Read from MH i2c: 01 07 00 [21:01:54]MH_I2C_Read... [21:01:54]Read from MH i2c: 01 07 00 18 12 00 00 00 00 00 FF 0F 3F [21:01:54]process_action close_receipt done [21:01:54]requested_data is exist [21:01:54]produce_requested_data [21:01:54]requested_item fm.sn is exist - process it [21:01:54]wFMCommunicate request_size=4 [21:01:54]MH_SAM_APDU [21:01:54]CAPDU: 80 11 00 00 [21:01:54]Write to MH i2c: E2 08 00 19 12 80 11 00 00 00 00 00 00 A5 [21:01:54]Write i2c OK [21:01:54]MH_I2C_Read... [21:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:54]Read from MH i2c: E2 [21:01:54]MH_I2C_Read... [21:01:54]Read from MH i2c: E2 17 00 [21:01:54]MH_I2C_Read... [21:01:54]Read from MH i2c: E2 17 00 19 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FB [21:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:01:54]wFMCommunicate OK [21:01:54]requested_item fd.num is exist - process it [21:01:54]SAM_PROTO_GetFieldsCounters [21:01:54]wFMCommunicate request_size=4 [21:01:54]MH_SAM_APDU [21:01:54]CAPDU: 80 13 00 00 [21:01:54]Write to MH i2c: E2 08 00 1A 12 80 13 00 00 00 00 00 00 A8 [21:01:54]Write i2c OK [21:01:54]MH_I2C_Read... [21:01:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:54]Read from MH i2c: E2 [21:01:54]MH_I2C_Read... [21:01:54]Read from MH i2c: E2 62 00 [21:01:54]MH_I2C_Read... [21:01:54]Read from MH i2c: E2 62 00 1A 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 5B 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [21:01:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 5B 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:54]wFMCommunicate OK [21:01:54]SAM_PROTO_GetFieldsCounters done [21:01:54]requested_item shift.num is exist - process it [21:01:54]requested_item shift.opened is exist - process it [21:01:54]req_shift_opened [21:01:54]FM_GetShiftState [21:01:54]SAM_PROTO_GetShiftState [21:01:54]wFMCommunicate request_size=4 [21:01:54]MH_SAM_APDU [21:01:54]CAPDU: 80 13 01 00 [21:01:54]Write to MH i2c: E2 08 00 1B 12 80 13 01 00 00 00 00 00 AA [21:01:54]Write i2c OK [21:01:54]MH_I2C_Read... [21:01:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:54]Read from MH i2c: E2 [21:01:54]MH_I2C_Read... [21:01:54]Read from MH i2c: E2 0E 00 [21:01:54]MH_I2C_Read... [21:01:54]Read from MH i2c: E2 0E 00 1B 12 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 72 [21:01:54]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [21:01:54]wFMCommunicate OK [21:01:54]SAM_PROTO_GetShiftState done [21:01:54]FM_GetShiftState done [21:01:54]req_shift_opened done [21:01:54]requested_item shift.open_date is exist - process it [21:01:54]req_shift_open_date [21:01:54]req_shift_open_date done [21:01:54]produce_requested_data done [21:01:54]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67163,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [21:01:54]process_action_free close_receipt [21:01:54]json_value_free [21:01:54]json_value_free done [21:01:54]process_json_proto returns [21:01:54]Send response to host [21:01:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67163,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [21:01:54]free response buf [21:01:54]execute_script done [21:01:54]execute_script returns [21:01:54]free content buf [21:01:54]Sock 9.Close socket [21:01:54]Sock 9.Thread stoped [21:01:57]OFD Sender: No OFD packet to send [21:02:02]OFD Sender: No OFD packet to send [21:02:07]OFD Sender: No OFD packet to send [21:02:12]OFD Sender: No OFD packet to send [21:02:17]OFD Sender: No OFD packet to send [21:02:22]OFD Sender: No OFD packet to send [21:02:27]OFD Sender: No OFD packet to send [21:02:32]OFD Sender: No OFD packet to send [21:02:37]OFD Sender: No OFD packet to send [21:02:42]OFD Sender: No OFD packet to send [21:02:47]OFD Sender: No OFD packet to send [21:02:52]OFD Sender: No OFD packet to send [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:12]OFD Sender: No OFD packet to send [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:02]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:12]OFD Sender: No OFD packet to send [21:04:17]OFD Sender: No OFD packet to send [21:04:22]OFD Sender: No OFD packet to send [21:04:27]OFD Sender: No OFD packet to send [21:04:32]OFD Sender: No OFD packet to send [21:04:37]OFD Sender: No OFD packet to send [21:04:42]OFD Sender: No OFD packet to send [21:04:47]OFD Sender: No OFD packet to send [21:04:52]OFD Sender: No OFD packet to send [21:04:57]OFD Sender: No OFD packet to send [21:05:02]OFD Sender: No OFD packet to send [21:05:07]OFD Sender: No OFD packet to send [21:05:12]OFD Sender: No OFD packet to send [21:05:17]OFD Sender: No OFD packet to send [21:05:22]OFD Sender: No OFD packet to send [21:05:27]OFD Sender: No OFD packet to send [21:05:32]OFD Sender: No OFD packet to send [21:05:37]OFD Sender: No OFD packet to send [21:05:42]OFD Sender: No OFD packet to send [21:05:47]OFD Sender: No OFD packet to send [21:05:52]OFD Sender: No OFD packet to send [21:05:57]OFD Sender: No OFD packet to send [21:06:02]OFD Sender: No OFD packet to send [21:06:02]accept exits with 7 [21:06:02]New connection [21:06:02]New thread 3066731876 created [21:06:02]Thread 3066588516 joined [21:06:02]Waiting for new connection... [21:06:02] Sock 7.Parse request [21:06:02]Sock 7.Check first char [21:06:02]Sock 7.First char is OK [21:06:02]request: POST /json_proto HTTP/1.0 [21:06:02]Method: POST [21:06:02]URL: /json_proto [21:06:02]Method is POST - this is cgi request [21:06:02]url: /json_proto [21:06:02]query_string will be loaded in cgi processing [21:06:02]execute_cgi json_proto POST (null) [21:06:02]execute_cgi path=json_proto method=POST [21:06:02]POST find Content-Length [21:06:02]Host: 172.17.41.195:8080 [21:06:02]Content-Length: 800 [21:06:02]Content-Type: application/json [21:06:02] [21:06:02]POST finish read [21:06:02]Found Content-Length = 800 [21:06:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507064", "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" ] } } [21:06:02]execute_script... [21:06: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)507064", "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" ] } } [21:06:02]POST & json_proto [21:06:02]process_json_proto [21:06:02]json parsed OK: [21:06:02]protocol is kg_v1.0 [21:06:02]action value=close_receipt [21:06:02]process_action close_receipt [21:06:02]cmd_close_receipt [21:06:02]MH_GetDate [21:06:02]Write to MH i2c: F0 00 00 1C 12 1D [21:06:02]Write i2c OK [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: F0 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: F0 09 00 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: F0 09 00 1C 12 00 3B D2 43 66 FC 21 6F 64 CC [21:06:02]GetLastDocTimeStamp 1715720510 [21:06:02]current date 1715720763 [21:06:02]FM_GetShiftState [21:06:02]SAM_PROTO_GetShiftState [21:06:02]wFMCommunicate request_size=4 [21:06:02]MH_SAM_APDU [21:06:02]CAPDU: 80 13 01 00 [21:06:02]Write to MH i2c: E2 08 00 1D 12 80 13 01 00 00 00 00 00 AC [21:06:02]Write i2c OK [21:06:02]MH_I2C_Read... [21:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:02]Read from MH i2c: E2 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 0E 00 [21:06:02]MH_I2C_Read... [21:06:02]Read from MH i2c: E2 0E 00 1D 12 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 74 [21:06:02]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [21:06:02]wFMCommunicate OK [21:06:02]SAM_PROTO_GetShiftState done [21:06:02]FM_GetShiftState done [21:06:02]opened in 1715646054 [21:06:02]opened+sec_in_day 1715732454 [21:06:02]quantity*price = 50033 [21:06:02]sum+1 = 50034 [21:06: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 СНО: Общий режим Чек 171 14.05.2024 21:06 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67164 ФПД: 236033531126248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T210603&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67164&fm=236033531126248&tin=02508201610067®Number=0000000000091845&sum=50033 [21:06:04]StoreToDocumentArchive [21:06:04]shift 355 fd 67164 [21:06:04]save to /storage/0355/doc_00067164 [21:06:04]save last doc name /storage/0355/doc_00067164 to /storage/kkm_last_doc_name [21:06:04]save OK [21:06:04]Clear old archive folders... [21:06:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:06:04]tlvbuf is 00336800 [21:06:04]SAM_PROTO_ClearQueue [21:06:04]wFMCommunicate request_size=4 [21:06:04]MH_SAM_APDU [21:06:04]CAPDU: 80 09 00 00 [21:06:04]Write to MH i2c: E2 08 00 2A 12 80 09 00 00 00 00 00 00 AE [21:06:04]Write i2c OK [21:06:04]MH_I2C_Read... [21:06:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:04]Read from MH i2c: E2 [21:06:04]MH_I2C_Read... [21:06:04]Read from MH i2c: E2 03 00 [21:06:04]MH_I2C_Read... [21:06:04]Read from MH i2c: E2 03 00 2A 12 00 90 00 B0 [21:06:04]RAPDU: 90 00 [21:06:04]wFMCommunicate OK [21:06:04]SAM_PROTO_ClearQueue done [21:06:04]KKMCreateOFDPacket [21:06:04]OFDProtocolAddRootSTLVToBuf [21:06:04]FM_MakeSignedData [21:06:04]FM_MakeSignedData [21:06:04]SAM_PROTO_SignData [21:06:04]wFMCommunicate request_size=4 [21:06:04]MH_SAM_APDU [21:06:04]CAPDU: 80 0D 01 02 [21:06:04]Write to MH i2c: E2 08 00 2B 12 80 0D 01 02 00 00 00 00 B6 [21:06:04]Write i2c OK [21:06:04]MH_I2C_Read... [21:06:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:04]Read from MH i2c: E2 [21:06:04]MH_I2C_Read... [21:06:04]Read from MH i2c: E2 03 00 [21:06:04]MH_I2C_Read... [21:06:04]Read from MH i2c: E2 03 00 2B 12 00 90 00 B1 [21:06:04]RAPDU: 90 00 [21:06:04]wFMCommunicate OK [21:06:04]wFMCommunicate request_size=255 [21:06:04]MH_SAM_APDU [21:06: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 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 AB 00 00 00 F4 03 04 00 3B D2 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 D6 [21:06:04]Write to MH i2c: E2 02 01 2C 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 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 AB 00 00 00 F4 03 04 00 3B D2 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 D6 00 00 81 [21:06:04]Write i2c OK [21:06:04]MH_I2C_Read... [21:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:04]Read from MH i2c: E2 [21:06:04]MH_I2C_Read... [21:06:04]Read from MH i2c: E2 03 00 [21:06:04]MH_I2C_Read... [21:06:04]Read from MH i2c: E2 03 00 2C 12 00 90 00 B2 [21:06:04]RAPDU: 90 00 [21:06:04]wFMCommunicate OK [21:06:04]wFMCommunicate request_size=10 [21:06:04]MH_SAM_APDU [21:06:04]CAPDU: 80 0D 02 02 05 AB D6 C7 21 E8 [21:06:04]Write to MH i2c: E2 0D 00 2D 12 80 0D 02 02 05 00 AB D6 C7 21 E8 00 00 14 [21:06:04]Write i2c OK [21:06:04]MH_I2C_Read... [21:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:04]Read from MH i2c: E2 [21:06:04]MH_I2C_Read... [21:06:04]Read from MH i2c: E2 03 00 [21:06:04]MH_I2C_Read... [21:06:04]Read from MH i2c: E2 03 00 2D 12 00 90 00 B3 [21:06:04]RAPDU: 90 00 [21:06:04]wFMCommunicate OK [21:06:04]wFMCommunicate request_size=4 [21:06:04]MH_SAM_APDU [21:06:04]CAPDU: 80 0D 03 02 [21:06:04]Write to MH i2c: E2 08 00 2E 12 80 0D 03 02 00 00 00 00 BB [21:06:04]Write i2c OK [21:06:04]MH_I2C_Read... [21:06:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:04]Read from MH i2c: E2 [21:06:04]MH_I2C_Read... [21:06:04]Read from MH i2c: E2 0B 00 [21:06:04]MH_I2C_Read... [21:06:04]Read from MH i2c: E2 0B 00 2E 12 00 95 EF 69 9C 88 42 A9 58 90 00 10 [21:06:04]RAPDU: 95 EF 69 9C 88 42 A9 58 90 00 [21:06:04]wFMCommunicate OK [21:06:04]SAM_PROTO_SignData done [21:06:04]FM_MakeSignedData done [21:06:04]CreateOFDProtocolMessage [21:06:04]wFMCommunicate request_size=4 [21:06:04]MH_SAM_APDU [21:06:04]CAPDU: 80 11 00 00 [21:06:04]Write to MH i2c: E2 08 00 2F 12 80 11 00 00 00 00 00 00 BB [21:06:04]Write i2c OK [21:06:04]MH_I2C_Read... [21:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:04]Read from MH i2c: E2 [21:06:04]MH_I2C_Read... [21:06:04]Read from MH i2c: E2 17 00 [21:06:04]MH_I2C_Read... [21:06:04]Read from MH i2c: E2 17 00 2F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 11 [21:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:06:04]wFMCommunicate OK [21:06:04]CreateOFDProtocolMessage done [21:06:04]OFDSenderStorePacket 67164 [21:06:04]StoreOFDPacket docnum=67164 [21:06: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 27 0B 07 01 C3 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AB 00 00 00 F4 03 04 00 3B D2 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 D6 AB D6 C7 21 E8 95 EF 69 9C 88 42 A9 58 [21:06:04]CheckFolder [21:06:04]dirname=/storage/ofd_packets [21:06:04]CheckFolder done [21:06:04]ProducePacketName [21:06:04]name=ofd_packets/00067164 [21:06:04]NVStorageSaveData ofd_packets/00067164 [21:06:04]File name is /storage/ofd_packets/00067164 [21:06:04]Write 301 bytes [21:06:04]NVStorageSaveData done [21:06:04]OFDSenderStorePacket done [21:06:04]KKMCreateOFDPacket done [21:06:04]NVStorageSaveData kkm_last_timestamp [21:06:04]File name is /storage/kkm_last_timestamp [21:06:04]Write 4 bytes [21:06:04]NVStorageSaveData done [21:06:04]ExternCall_PrintAddStr [21:06:04]wPrintStart [21:06:04]Write to MH i2c: 01 00 00 30 12 42 [21:06:04]Write i2c OK [21:06:04]MH_I2C_Read... [21:06:04]Read from MH i2c: 01 [21:06:04]MH_I2C_Read... [21:06:04]Read from MH i2c: 01 07 00 [21:06:04]MH_I2C_Read... [21:06:04]Read from MH i2c: 01 07 00 30 12 00 00 00 00 00 FF 0F 57 [21:06:04]RasterBufferAndPrint [21:06:04]line Счет N : (1)507064 [21:06:04]line ИНН: 02508201610067 [21:06:04]line Контрольно-Кассовый Чек [21:06:04]line ПРОДАЖА [21:06:04]line ТРК (МРК, ГНК) : 33 [21:06:04]line Товар: 2710124130 [21:06:04]line Аи-92-К-5 [21:06:04]line 7.490 * 66.80 [21:06:04]line = 500.33 [21:06:04]line НДС 12% НСП 1% [21:06:04]line > о реализуемом товаре [21:06:04]line ИТОГО: 500.33 [21:06:04]line НСП 1% : 4.43 [21:06:04]line НДС 12% : 53.13 [21:06:04]line Наличными: 0.00 [21:06:04]line Безнал.: 500.33 [21:06:04]line Место: АЗС № 91 "Партнер Нефть" [21:06:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:06:04]line СНО: Общий режим [21:06:04]line Чек 171 14.05.2024 21:06 [21:06:04]line Смена: 355 ФФД: 1.0 [21:06:04]line ЗНМ: 0300000119 [21:06:04]line РНМ: 0000000000091845 [21:06:04]line Версия ККМ: 001 [21:06:04]line Платежная система: O! деньги [21:06:04]line ФМ: 0000000000871829 [21:06:04]line ФД: 67164 [21:06:04]line ФПД: 236033531126248 [21:06:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T210603&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67164&fm=236033531126248&tin=02508201610067®Number=0000000000091845&sum=50033 [21:06:04]written 0, free lines is 4095 [21:06:04]OFD Sender: Processing packet 67164 [packets to send 35, broken 34] [21:06:04]ProducePacketName [21:06:04]name=ofd_packets/00067164 [21:06:04]OFD Sender: To server: pG, [21:06:04]CommunicateWithHost lk.salyk.kg:30040 [21:06:04]ConnectInit lk.salyk.kg [21:06:04]Connected sock=10 [21:06: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 27 0B 07 01 C3 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AB 00 00 00 F4 03 04 00 3B D2 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 D6 AB D6 C7 21 E8 95 EF 69 9C 88 42 A9 58 [21:06: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 35 04 47 00 EE 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 5C 06 01 00 F4 03 04 00 1A 7A 43 66 B6 04 01 00 00 99 DB 7F 06 25 5D AC 61 [21:06:04]CommunicateWithHost err = 0 [21:06:04]CheckOFDResponse [21:06:04]1017 (14) - 77093643461234 [21:06:04]1041 (16) - 0000000000871829 [21:06:04]1040 (4) - 67164 [21:06:04]1012 (4) - 14.05.2024 14:50 [21:06:04]1206 (1) - 0 [21:06:04]OFD Sender: Remove packet 67164 [21:06:04]ProducePacketName [21:06:04]name=ofd_packets/00067164 [21:06:04]NVStorageDeleteData [21:06:05]Write to MH i2c: 01 00 00 59 12 6B [21:06:05]Write i2c OK [21:06:05]MH_I2C_Read... [21:06:05]Read from MH i2c: 01 [21:06:05]MH_I2C_Read... [21:06:05]Read from MH i2c: 01 07 00 [21:06:05]MH_I2C_Read... [21:06:05]Read from MH i2c: 01 07 00 59 12 00 00 00 00 00 DE 0C 5C [21:06:05]RasterBufferAndPrint [21:06:05]line [21:06:05]line [21:06:05]line [21:06:05]line [21:06:05]line [21:06:05]written 0, free lines is 3300 [21:06:05]MH_Cut [21:06:05]Write to MH i2c: D1 01 00 60 12 01 44 [21:06:05]Write i2c OK [21:06:05]MH_I2C_Read... [21:06:05]Read from MH i2c: D1 [21:06:05]MH_I2C_Read... [21:06:05]Read from MH i2c: D1 01 00 [21:06:05]MH_I2C_Read... [21:06:05]Read from MH i2c: D1 01 00 60 12 00 43 [21:06:05]Write to MH i2c: 01 00 00 61 12 73 [21:06:05]Write i2c OK [21:06:05]MH_I2C_Read... [21:06:05]OFD Sender: No OFD packet to send [21:06:05]*** Cut start [21:06:05]*** Purtial cut [21:06:05]*** Stage 1: CUTSNS_PIN = 1 [21:06:06]Read from MH i2c: 01 [21:06:06]MH_I2C_Read... [21:06:06]*** Stop cut motor [21:06:06]*** Cut end [21:06:06]Read from MH i2c: 01 07 00 [21:06:06]MH_I2C_Read... [21:06:06]Read from MH i2c: 01 07 00 61 12 00 00 00 00 00 FF 0F 88 [21:06:06]process_action close_receipt done [21:06:06]requested_data is exist [21:06:06]produce_requested_data [21:06:06]requested_item fm.sn is exist - process it [21:06:06]wFMCommunicate request_size=4 [21:06:06]MH_SAM_APDU [21:06:06]CAPDU: 80 11 00 00 [21:06:06]Write to MH i2c: E2 08 00 62 12 80 11 00 00 00 00 00 00 EE [21:06:06]Write i2c OK [21:06:06]MH_I2C_Read... [21:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:06]Read from MH i2c: E2 [21:06:06]MH_I2C_Read... [21:06:06]Read from MH i2c: E2 17 00 [21:06:06]MH_I2C_Read... [21:06:06]Read from MH i2c: E2 17 00 62 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 44 [21:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:06:06]wFMCommunicate OK [21:06:06]requested_item fd.num is exist - process it [21:06:06]SAM_PROTO_GetFieldsCounters [21:06:06]wFMCommunicate request_size=4 [21:06:06]MH_SAM_APDU [21:06:06]CAPDU: 80 13 00 00 [21:06:06]Write to MH i2c: E2 08 00 63 12 80 13 00 00 00 00 00 00 F1 [21:06:06]Write i2c OK [21:06:06]MH_I2C_Read... [21:06:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:06]Read from MH i2c: E2 [21:06:06]MH_I2C_Read... [21:06:06]Read from MH i2c: E2 62 00 [21:06:06]MH_I2C_Read... [21:06:06]Read from MH i2c: E2 62 00 63 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 5C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [21:06: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 5C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:06:06]wFMCommunicate OK [21:06:06]SAM_PROTO_GetFieldsCounters done [21:06:06]requested_item shift.num is exist - process it [21:06:06]requested_item shift.opened is exist - process it [21:06:06]req_shift_opened [21:06:06]FM_GetShiftState [21:06:06]SAM_PROTO_GetShiftState [21:06:06]wFMCommunicate request_size=4 [21:06:06]MH_SAM_APDU [21:06:06]CAPDU: 80 13 01 00 [21:06:06]Write to MH i2c: E2 08 00 64 12 80 13 01 00 00 00 00 00 F3 [21:06:06]Write i2c OK [21:06:06]MH_I2C_Read... [21:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:06]Read from MH i2c: E2 [21:06:06]MH_I2C_Read... [21:06:06]Read from MH i2c: E2 0E 00 [21:06:06]MH_I2C_Read... [21:06:06]Read from MH i2c: E2 0E 00 64 12 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 BB [21:06:06]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [21:06:06]wFMCommunicate OK [21:06:06]SAM_PROTO_GetShiftState done [21:06:06]FM_GetShiftState done [21:06:06]req_shift_opened done [21:06:06]requested_item shift.open_date is exist - process it [21:06:06]req_shift_open_date [21:06:06]req_shift_open_date done [21:06:06]produce_requested_data done [21:06:06]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67164,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [21:06:06]process_action_free close_receipt [21:06:06]json_value_free [21:06:06]json_value_free done [21:06:06]process_json_proto returns [21:06:06]Send response to host [21:06:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67164,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [21:06:06]free response buf [21:06:06]execute_script done [21:06:06]execute_script returns [21:06:06]free content buf [21:06:06]Sock 7.Close socket [21:06:06]Sock 7.Thread stoped [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:29]accept exits with 9 [21:16:29]New connection [21:16:29]New thread 3066588516 created [21:16:29]Thread 3066731876 joined [21:16:29]Waiting for new connection... [21:16:29] Sock 9.Parse request [21:16:29]Sock 9.Check first char [21:16:29]Sock 9.First char is OK [21:16:29]request: POST /json_proto HTTP/1.0 [21:16:29]Method: POST [21:16:29]URL: /json_proto [21:16:29]Method is POST - this is cgi request [21:16:29]url: /json_proto [21:16:29]query_string will be loaded in cgi processing [21:16:29]execute_cgi json_proto POST (null) [21:16:29]execute_cgi path=json_proto method=POST [21:16:29]POST find Content-Length [21:16:29]Host: 172.17.41.195:8080 [21:16:29]Content-Length: 1179 [21:16:29]Content-Type: application/json [21:16:29] [21:16:29]POST finish read [21:16:29]Found Content-Length = 1179 [21:16:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507065\u000A14.05.2024 20:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:29]execute_script... [21:16:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507065\u000A14.05.2024 20:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:29]POST & json_proto [21:16:29]process_json_proto [21:16:29]json parsed OK: [21:16:29]protocol is kg_v1.0 [21:16:29]action value=print_text [21:16:29]process_action print_text [21:16:29]cmd_print_text [21:16:29]ExternCall_PrintAddStr [21:16:29]wPrintStart [21:16:29]Write to MH i2c: 01 00 00 65 12 77 [21:16:29]Write i2c OK [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: 01 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: 01 07 00 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: 01 07 00 65 12 00 00 00 00 00 FF 0F 8C [21:16:29]RasterBufferAndPrint [21:16:29]line *****ТОВАРНЫЙ ЧЕК***** [21:16:29]line АЗС-91 [21:16:29]line Партнер нефть [21:16:29]line 02508201610067 [21:16:29]line Кассир : Адишов И. [21:16:29]line Счет N : (1)507065 [21:16:29]line 14.05.2024 20:59 [21:16:29]line ПРОДАЖА [21:16:29]line ТРК (МРК, ГНК): 31 [21:16:29]line Вид ГСМ : 2710194210 [21:16:29]line ДТ-К-5 [21:16:29]line 13.390 x 74.70 [21:16:29]line ИТОГ: 1000.23 [21:16:29]line Тип оплаты: Талоны: Топливная Карта [21:16:29]line 02750 [21:16:29]line ______________________ [21:16:29]line (подпись) [21:16:29]written 0, free lines is 4095 [21:16:29]Write to MH i2c: 01 00 00 79 12 8B [21:16:29]Write i2c OK [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: 01 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: 01 07 00 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: 01 07 00 79 12 00 00 00 00 00 0E 0E AE [21:16:29]RasterBufferAndPrint [21:16:29]line [21:16:29]line [21:16:29]line [21:16:29]line [21:16:29]line [21:16:29]written 0, free lines is 3599 [21:16:29]MH_Cut [21:16:29]Write to MH i2c: D1 01 00 80 12 01 64 [21:16:29]Write i2c OK [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: D1 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: D1 01 00 [21:16:29]MH_I2C_Read... [21:16:29]Read from MH i2c: D1 01 00 80 12 00 63 [21:16:29]Write to MH i2c: 01 00 00 81 12 93 [21:16:29]Write i2c OK [21:16:29]MH_I2C_Read... [21:16:30]*** Cut start [21:16:30]*** Purtial cut [21:16:30]*** CUTSNS_PIN = 0 [21:16:30]*** Stage 1: CUTSNS_PIN = 1 [21:16:30]OFD Sender: No OFD packet to send [21:16:32]Read from MH i2c: 01 [21:16:32]MH_I2C_Read... [21:16:32]*** Stop cut motor [21:16:32]*** Cut end [21:16:32]Read from MH i2c: 01 07 00 [21:16:32]MH_I2C_Read... [21:16:32]Read from MH i2c: 01 07 00 81 12 00 00 00 00 00 FF 0F A8 [21:16:32]process_action print_text done [21:16:32]requested_data is exist [21:16:32]produce_requested_data [21:16:32]requested_item fm.sn is exist - process it [21:16:32]wFMCommunicate request_size=4 [21:16:32]MH_SAM_APDU [21:16:32]CAPDU: 80 11 00 00 [21:16:32]Write to MH i2c: E2 08 00 82 12 80 11 00 00 00 00 00 00 0E [21:16:32]Write i2c OK [21:16:32]MH_I2C_Read... [21:16:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:32]Read from MH i2c: E2 [21:16:32]MH_I2C_Read... [21:16:32]Read from MH i2c: E2 17 00 [21:16:32]MH_I2C_Read... [21:16:32]Read from MH i2c: E2 17 00 82 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 64 [21: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 [21:16:32]wFMCommunicate OK [21:16:32]requested_item fd.num is exist - process it [21:16:32]SAM_PROTO_GetFieldsCounters [21:16:32]wFMCommunicate request_size=4 [21:16:32]MH_SAM_APDU [21:16:32]CAPDU: 80 13 00 00 [21:16:32]Write to MH i2c: E2 08 00 83 12 80 13 00 00 00 00 00 00 11 [21:16:32]Write i2c OK [21:16:32]MH_I2C_Read... [21:16:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:32]Read from MH i2c: E2 [21:16:32]MH_I2C_Read... [21:16:32]Read from MH i2c: E2 62 00 [21:16:32]MH_I2C_Read... [21:16:32]Read from MH i2c: E2 62 00 83 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 5C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [21: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 5C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:32]wFMCommunicate OK [21:16:32]SAM_PROTO_GetFieldsCounters done [21:16:32]requested_item shift.num is exist - process it [21:16:32]requested_item shift.opened is exist - process it [21:16:32]req_shift_opened [21:16:32]FM_GetShiftState [21:16:32]SAM_PROTO_GetShiftState [21:16:32]wFMCommunicate request_size=4 [21:16:32]MH_SAM_APDU [21:16:32]CAPDU: 80 13 01 00 [21:16:32]Write to MH i2c: E2 08 00 84 12 80 13 01 00 00 00 00 00 13 [21:16:32]Write i2c OK [21:16:32]MH_I2C_Read... [21:16:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:32]Read from MH i2c: E2 [21:16:32]MH_I2C_Read... [21:16:32]Read from MH i2c: E2 0E 00 [21:16:32]MH_I2C_Read... [21:16:32]Read from MH i2c: E2 0E 00 84 12 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 DB [21:16:32]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [21:16:32]wFMCommunicate OK [21:16:32]SAM_PROTO_GetShiftState done [21:16:32]FM_GetShiftState done [21:16:32]req_shift_opened done [21:16:32]requested_item shift.open_date is exist - process it [21:16:32]req_shift_open_date [21:16:32]req_shift_open_date done [21:16:32]produce_requested_data done [21:16:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67164,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [21:16:32]process_action_free print_text [21:16:32]json_value_free [21:16:32]json_value_free done [21:16:32]process_json_proto returns [21:16:32]Send response to host [21:16:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67164,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [21:16:32]free response buf [21:16:32]execute_script done [21:16:32]execute_script returns [21:16:32]free content buf [21:16:32]Sock 9.Close socket [21:16:32]Sock 9.Thread stoped [21:16:36]OFD Sender: No OFD packet to send [21:16:41]OFD Sender: No OFD packet to send [21:16:46]OFD Sender: No OFD packet to send [21:16:51]OFD Sender: No OFD packet to send [21:16:56]OFD Sender: No OFD packet to send [21:17:01]OFD Sender: No OFD packet to send [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [21:17:46]OFD Sender: No OFD packet to send [21:17:51]OFD Sender: No OFD packet to send [21:17:56]OFD Sender: No OFD packet to send [21:18:01]OFD Sender: No OFD packet to send [21:18:05]accept exits with 10 [21:18:05]New connection [21:18:05]New thread 3066731876 created [21:18:05]Thread 3066588516 joined [21:18:05]Waiting for new connection... [21:18:05] Sock 10.Parse request [21:18:05]Sock 10.Check first char [21:18:05]Sock 10.First char is OK [21:18:05]request: POST /json_proto HTTP/1.0 [21:18:05]Method: POST [21:18:05]URL: /json_proto [21:18:05]Method is POST - this is cgi request [21:18:05]url: /json_proto [21:18:05]query_string will be loaded in cgi processing [21:18:05]execute_cgi json_proto POST (null) [21:18:05]execute_cgi path=json_proto method=POST [21:18:05]POST find Content-Length [21:18:05]Host: 172.17.41.195:8080 [21:18:05]Content-Length: 670 [21:18:05]Content-Type: application/json [21:18:05] [21:18:05]POST finish read [21:18:05]Found Content-Length = 670 [21:18:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507066", "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" ] } } [21:18:05]execute_script... [21:18: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)507066", "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" ] } } [21:18:05]POST & json_proto [21:18:05]process_json_proto [21:18:05]json parsed OK: [21:18:05]protocol is kg_v1.0 [21:18:05]action value=close_receipt [21:18:05]process_action close_receipt [21:18:05]cmd_close_receipt [21:18:05]MH_GetDate [21:18:05]Write to MH i2c: F0 00 00 85 12 86 [21:18:05]Write i2c OK [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: F0 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: F0 09 00 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: F0 09 00 85 12 00 0E D5 43 66 FC 21 6F 64 0B [21:18:05]GetLastDocTimeStamp 1715720763 [21:18:05]current date 1715721486 [21:18:05]FM_GetShiftState [21:18:05]SAM_PROTO_GetShiftState [21:18:05]wFMCommunicate request_size=4 [21:18:05]MH_SAM_APDU [21:18:05]CAPDU: 80 13 01 00 [21:18:05]Write to MH i2c: E2 08 00 86 12 80 13 01 00 00 00 00 00 15 [21:18:05]Write i2c OK [21:18:05]MH_I2C_Read... [21:18:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:05]Read from MH i2c: E2 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: E2 0E 00 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: E2 0E 00 86 12 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 DD [21:18:05]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [21:18:05]wFMCommunicate OK [21:18:05]SAM_PROTO_GetShiftState done [21:18:05]FM_GetShiftState done [21:18:05]opened in 1715646054 [21:18:05]opened+sec_in_day 1715732454 [21:18:05]quantity*price = 50036 [21:18:05]sum+1 = 50037 [21:18:05]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 СНО: Общий режим Чек 172 14.05.2024 21:18 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67165 ФПД: 187258406083327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T211806&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67165&fm=187258406083327&tin=02508201610067®Number=0000000000091845&sum=50000 [21:18:07]StoreToDocumentArchive [21:18:07]shift 355 fd 67165 [21:18:07]save to /storage/0355/doc_00067165 [21:18:07]save last doc name /storage/0355/doc_00067165 to /storage/kkm_last_doc_name [21:18:07]save OK [21:18:07]Clear old archive folders... [21:18:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:18:07]tlvbuf is 00347770 [21:18:07]SAM_PROTO_ClearQueue [21:18:07]wFMCommunicate request_size=4 [21:18:07]MH_SAM_APDU [21:18:07]CAPDU: 80 09 00 00 [21:18:07]Write to MH i2c: E2 08 00 93 12 80 09 00 00 00 00 00 00 17 [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:18:07]Read from MH i2c: E2 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 03 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 03 00 93 12 00 90 00 19 [21:18:07]RAPDU: 90 00 [21:18:07]wFMCommunicate OK [21:18:07]SAM_PROTO_ClearQueue done [21:18:07]KKMCreateOFDPacket [21:18:07]OFDProtocolAddRootSTLVToBuf [21:18:07]FM_MakeSignedData [21:18:07]FM_MakeSignedData [21:18:07]SAM_PROTO_SignData [21:18:07]wFMCommunicate request_size=4 [21:18:07]MH_SAM_APDU [21:18:07]CAPDU: 80 0D 01 02 [21:18:07]Write to MH i2c: E2 08 00 94 12 80 0D 01 02 00 00 00 00 1F [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:18:07]Read from MH i2c: E2 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 03 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 03 00 94 12 00 90 00 1A [21:18:07]RAPDU: 90 00 [21:18:07]wFMCommunicate OK [21:18:07]wFMCommunicate request_size=255 [21:18:07]MH_SAM_APDU [21:18:07]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 AC 00 00 00 F4 03 04 00 0E D5 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 [21:18:07]Write to MH i2c: E2 02 01 95 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 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 AC 00 00 00 F4 03 04 00 0E D5 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 00 00 CD [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:07]Read from MH i2c: E2 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 03 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 03 00 95 12 00 90 00 1B [21:18:07]RAPDU: 90 00 [21:18:07]wFMCommunicate OK [21:18:07]wFMCommunicate request_size=11 [21:18:07]MH_SAM_APDU [21:18:07]CAPDU: 80 0D 02 02 06 AA 4F 7E C6 9A FF [21:18:07]Write to MH i2c: E2 0E 00 96 12 80 0D 02 02 06 00 AA 4F 7E C6 9A FF 00 00 04 [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:07]Read from MH i2c: E2 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 03 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 03 00 96 12 00 90 00 1C [21:18:07]RAPDU: 90 00 [21:18:07]wFMCommunicate OK [21:18:07]wFMCommunicate request_size=4 [21:18:07]MH_SAM_APDU [21:18:07]CAPDU: 80 0D 03 02 [21:18:07]Write to MH i2c: E2 08 00 97 12 80 0D 03 02 00 00 00 00 24 [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:18:07]Read from MH i2c: E2 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 0B 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 0B 00 97 12 00 A3 99 85 9D C6 EA BC AF 90 00 9E [21:18:07]RAPDU: A3 99 85 9D C6 EA BC AF 90 00 [21:18:07]wFMCommunicate OK [21:18:07]SAM_PROTO_SignData done [21:18:07]FM_MakeSignedData done [21:18:07]CreateOFDProtocolMessage [21:18:07]wFMCommunicate request_size=4 [21:18:07]MH_SAM_APDU [21:18:07]CAPDU: 80 11 00 00 [21:18:07]Write to MH i2c: E2 08 00 98 12 80 11 00 00 00 00 00 00 24 [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:07]Read from MH i2c: E2 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 17 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 17 00 98 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7A [21:18:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:18:07]wFMCommunicate OK [21:18:07]CreateOFDProtocolMessage done [21:18:07]OFDSenderStorePacket 67165 [21:18:07]StoreOFDPacket docnum=67165 [21:18:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 53 60 08 01 9B 40 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 AC 00 00 00 F4 03 04 00 0E D5 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 AA 4F 7E C6 9A FF A3 99 85 9D C6 EA BC AF [21:18:07]CheckFolder [21:18:07]dirname=/storage/ofd_packets [21:18:07]CheckFolder done [21:18:07]ProducePacketName [21:18:07]name=ofd_packets/00067165 [21:18:07]NVStorageSaveData ofd_packets/00067165 [21:18:07]File name is /storage/ofd_packets/00067165 [21:18:07]Write 302 bytes [21:18:07]NVStorageSaveData done [21:18:07]OFDSenderStorePacket done [21:18:07]KKMCreateOFDPacket done [21:18:07]NVStorageSaveData kkm_last_timestamp [21:18:07]File name is /storage/kkm_last_timestamp [21:18:07]Write 4 bytes [21:18:07]NVStorageSaveData done [21:18:07]ExternCall_PrintAddStr [21:18:07]wPrintStart [21:18:07]Write to MH i2c: 01 00 00 99 12 AB [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: 01 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: 01 07 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: 01 07 00 99 12 00 00 00 00 00 FF 0F C0 [21:18:07]RasterBufferAndPrint [21:18:07]line Счет N : (1)507066 [21:18:07]line ИНН: 02508201610067 [21:18:07]line Контрольно-Кассовый Чек [21:18:07]line ПРОДАЖА [21:18:07]line ТРК (МРК, ГНК) : 12 [21:18:07]line Товар: 2710124130 [21:18:07]line Super-92-К-5 [21:18:07]line 7.380 * 67.80 [21:18:07]line = 500.36 [21:18:07]line НДС 12% НСП 1% [21:18:07]line > о реализуемом товаре [21:18:07]line ОКРУГЛЕНИЕ: -0.36 [21:18:07]line ИТОГО: 500.00 [21:18:07]line Внесено: 500.00 [21:18:07]line СДАЧА: 0.00 [21:18:07]line НСП 1% : 4.43 [21:18:07]line НДС 12% : 53.14 [21:18:07]line Наличными: 500.00 [21:18:07]line Безнал.: 0.00 [21:18:07]line Место: АЗС № 91 "Партнер Нефть" [21:18:07]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:18:07]line СНО: Общий режим [21:18:07]line Чек 172 14.05.2024 21:18 [21:18:07]line Смена: 355 ФФД: 1.0 [21:18:07]line ЗНМ: 0300000119 [21:18:07]line РНМ: 0000000000091845 [21:18:07]line Версия ККМ: 001 [21:18:07]line ФМ: 0000000000871829 [21:18:07]line ФД: 67165 [21:18:07]line ФПД: 187258406083327 [21:18:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T211806&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67165&fm=187258406083327&tin=02508201610067®Number=0000000000091845&sum=50000 [21:18:07]written 0, free lines is 4095 [21:18:07]OFD Sender: Processing packet 67165 [packets to send 35, broken 34] [21:18:07]ProducePacketName [21:18:07]name=ofd_packets/00067165 [21:18:07]OFD Sender: To server: pG, [21:18:07]CommunicateWithHost lk.salyk.kg:30040 [21:18:07]ConnectInit lk.salyk.kg [21:18:07]Connected sock=9 [21:18:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 53 60 08 01 9B 40 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 AC 00 00 00 F4 03 04 00 0E D5 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 AA 4F 7E C6 9A FF A3 99 85 9D C6 EA BC AF [21:18: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 28 4A 47 00 E4 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 5D 06 01 00 F4 03 04 00 ED 7C 43 66 B6 04 01 00 00 29 62 05 AD 17 A4 CA A7 [21:18:08]CommunicateWithHost err = 0 [21:18:08]CheckOFDResponse [21:18:08]1017 (14) - 77093643461234 [21:18:08]1041 (16) - 0000000000871829 [21:18:08]1040 (4) - 67165 [21:18:08]1012 (4) - 14.05.2024 15:02 [21:18:08]1206 (1) - 0 [21:18:08]OFD Sender: Remove packet 67165 [21:18:08]ProducePacketName [21:18:08]name=ofd_packets/00067165 [21:18:08]NVStorageDeleteData [21:18:08]Write to MH i2c: 01 00 00 C3 12 D5 [21:18:08]Write i2c OK [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: 01 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: 01 07 00 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: 01 07 00 C3 12 00 00 00 00 00 CF 0C B7 [21:18:08]RasterBufferAndPrint [21:18:08]line [21:18:08]line [21:18:08]line [21:18:08]line [21:18:08]line [21:18:08]written 0, free lines is 3286 [21:18:08]MH_Cut [21:18:08]Write to MH i2c: D1 01 00 CA 12 01 AE [21:18:08]Write i2c OK [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: D1 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: D1 01 00 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: D1 01 00 CA 12 00 AD [21:18:08]Write to MH i2c: 01 00 00 CB 12 DD [21:18:08]Write i2c OK [21:18:08]MH_I2C_Read... [21:18:08]OFD Sender: No OFD packet to send [21:18:09]*** Cut start [21:18:09]*** Purtial cut [21:18:09]*** Stage 1: CUTSNS_PIN = 1 [21:18:09]Read from MH i2c: 01 [21:18:09]MH_I2C_Read... [21:18:09]*** Stop cut motor [21:18:09]*** Cut end [21:18:09]Read from MH i2c: 01 07 00 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: 01 07 00 CB 12 00 00 00 00 00 FF 0F F2 [21:18:09]process_action close_receipt done [21:18:09]requested_data is exist [21:18:09]produce_requested_data [21:18:09]requested_item fm.sn is exist - process it [21:18:09]wFMCommunicate request_size=4 [21:18:09]MH_SAM_APDU [21:18:09]CAPDU: 80 11 00 00 [21:18:09]Write to MH i2c: E2 08 00 CC 12 80 11 00 00 00 00 00 00 58 [21:18:09]Write i2c OK [21:18:09]MH_I2C_Read... [21:18:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:09]Read from MH i2c: E2 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: E2 17 00 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: E2 17 00 CC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AE [21:18:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:18:09]wFMCommunicate OK [21:18:09]requested_item fd.num is exist - process it [21:18:09]SAM_PROTO_GetFieldsCounters [21:18:09]wFMCommunicate request_size=4 [21:18:09]MH_SAM_APDU [21:18:09]CAPDU: 80 13 00 00 [21:18:09]Write to MH i2c: E2 08 00 CD 12 80 13 00 00 00 00 00 00 5B [21:18:09]Write i2c OK [21:18:09]MH_I2C_Read... [21:18:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:09]Read from MH i2c: E2 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: E2 62 00 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: E2 62 00 CD 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 5D 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [21:18: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 5D 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:18:09]wFMCommunicate OK [21:18:09]SAM_PROTO_GetFieldsCounters done [21:18:09]requested_item shift.num is exist - process it [21:18:09]requested_item shift.opened is exist - process it [21:18:09]req_shift_opened [21:18:09]FM_GetShiftState [21:18:09]SAM_PROTO_GetShiftState [21:18:09]wFMCommunicate request_size=4 [21:18:09]MH_SAM_APDU [21:18:09]CAPDU: 80 13 01 00 [21:18:09]Write to MH i2c: E2 08 00 CE 12 80 13 01 00 00 00 00 00 5D [21:18:09]Write i2c OK [21:18:09]MH_I2C_Read... [21:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:09]Read from MH i2c: E2 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: E2 0E 00 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: E2 0E 00 CE 12 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 25 [21:18:09]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [21:18:09]wFMCommunicate OK [21:18:09]SAM_PROTO_GetShiftState done [21:18:09]FM_GetShiftState done [21:18:09]req_shift_opened done [21:18:09]requested_item shift.open_date is exist - process it [21:18:09]req_shift_open_date [21:18:09]req_shift_open_date done [21:18:09]produce_requested_data done [21:18:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67165,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [21:18:09]process_action_free close_receipt [21:18:09]json_value_free [21:18:09]json_value_free done [21:18:09]process_json_proto returns [21:18:09]Send response to host [21:18:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67165,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [21:18:09]free response buf [21:18:09]execute_script done [21:18:09]execute_script returns [21:18:09]free content buf [21:18:09]Sock 10.Close socket [21:18:09]Sock 10.Thread stoped [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:23]OFD Sender: No OFD packet to send [21:23:28]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:29]OFD Sender: No OFD packet to send [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:54]OFD Sender: No OFD packet to send [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:03]accept exits with 7 [21:28:03]New connection [21:28:03]New thread 3066588516 created [21:28:03]Thread 3066731876 joined [21:28:03]Waiting for new connection... [21:28:03] Sock 7.Parse request [21:28:03]Sock 7.Check first char [21:28:03]Sock 7.First char is OK [21:28:03]request: POST /json_proto HTTP/1.0 [21:28:03]Method: POST [21:28:03]URL: /json_proto [21:28:03]Method is POST - this is cgi request [21:28:03]url: /json_proto [21:28:03]query_string will be loaded in cgi processing [21:28:03]execute_cgi json_proto POST (null) [21:28:03]execute_cgi path=json_proto method=POST [21:28:03]POST find Content-Length [21:28:03]Host: 172.17.41.195:8080 [21:28:03]Content-Length: 677 [21:28:03]Content-Type: application/json [21:28:03] [21:28:03]POST finish read [21:28:03]Found Content-Length = 677 [21:28:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507067", "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" ] } } [21:28:03]execute_script... [21:28: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)507067", "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" ] } } [21:28:03]POST & json_proto [21:28:03]process_json_proto [21:28:03]json parsed OK: [21:28:03]protocol is kg_v1.0 [21:28:03]action value=close_receipt [21:28:03]process_action close_receipt [21:28:03]cmd_close_receipt [21:28:03]MH_GetDate [21:28:03]Write to MH i2c: F0 00 00 CF 12 D0 [21:28:03]Write i2c OK [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: F0 [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: F0 09 00 [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: F0 09 00 CF 12 00 64 D7 43 66 FC 21 6F 64 AD [21:28:03]GetLastDocTimeStamp 1715721486 [21:28:03]current date 1715722084 [21:28:03]FM_GetShiftState [21:28:03]SAM_PROTO_GetShiftState [21:28:03]wFMCommunicate request_size=4 [21:28:03]MH_SAM_APDU [21:28:03]CAPDU: 80 13 01 00 [21:28:03]Write to MH i2c: E2 08 00 D0 12 80 13 01 00 00 00 00 00 5F [21:28:03]Write i2c OK [21:28:03]MH_I2C_Read... [21:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:03]Read from MH i2c: E2 [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: E2 0E 00 [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: E2 0E 00 D0 12 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 27 [21:28:03]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [21:28:03]wFMCommunicate OK [21:28:03]SAM_PROTO_GetShiftState done [21:28:03]FM_GetShiftState done [21:28:03]opened in 1715646054 [21:28:03]opened+sec_in_day 1715732454 [21:28:03]quantity*price = 50033 [21:28:03]sum+1 = 50034 [21:28:03]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 СНО: Общий режим Чек 173 14.05.2024 21:28 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67166 ФПД: 133126724083669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T212804&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67166&fm=133126724083669&tin=02508201610067®Number=0000000000091845&sum=50000 [21:28:04]StoreToDocumentArchive [21:28:04]shift 355 fd 67166 [21:28:04]save to /storage/0355/doc_00067166 [21:28:04]save last doc name /storage/0355/doc_00067166 to /storage/kkm_last_doc_name [21:28:04]save OK [21:28:04]Clear old archive folders... [21:28:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:28:04]tlvbuf is 003363E0 [21:28:04]SAM_PROTO_ClearQueue [21:28:04]wFMCommunicate request_size=4 [21:28:04]MH_SAM_APDU [21:28:04]CAPDU: 80 09 00 00 [21:28:04]Write to MH i2c: E2 08 00 DD 12 80 09 00 00 00 00 00 00 61 [21:28:04]Write i2c OK [21:28:04]MH_I2C_Read... [21:28:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:28:04]OFD Sender: No OFD packet to send [21:28:04]Read from MH i2c: E2 [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: E2 03 00 [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: E2 03 00 DD 12 00 90 00 63 [21:28:04]RAPDU: 90 00 [21:28:04]wFMCommunicate OK [21:28:04]SAM_PROTO_ClearQueue done [21:28:04]KKMCreateOFDPacket [21:28:04]OFDProtocolAddRootSTLVToBuf [21:28:04]FM_MakeSignedData [21:28:04]FM_MakeSignedData [21:28:04]SAM_PROTO_SignData [21:28:04]wFMCommunicate request_size=4 [21:28:04]MH_SAM_APDU [21:28:04]CAPDU: 80 0D 01 02 [21:28:04]Write to MH i2c: E2 08 00 DE 12 80 0D 01 02 00 00 00 00 69 [21:28:04]Write i2c OK [21:28:04]MH_I2C_Read... [21:28:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:28:04]Read from MH i2c: E2 [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: E2 03 00 [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: E2 03 00 DE 12 00 90 00 64 [21:28:04]RAPDU: 90 00 [21:28:04]wFMCommunicate OK [21:28:04]wFMCommunicate request_size=255 [21:28:04]MH_SAM_APDU [21:28: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 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 AD 00 00 00 F4 03 04 00 64 D7 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 79 [21:28:04]Write to MH i2c: E2 02 01 DF 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 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 AD 00 00 00 F4 03 04 00 64 D7 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 79 00 00 C7 [21:28:04]Write i2c OK [21:28:04]MH_I2C_Read... [21:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:04]Read from MH i2c: E2 [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: E2 03 00 [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: E2 03 00 DF 12 00 90 00 65 [21:28:04]RAPDU: 90 00 [21:28:04]wFMCommunicate OK [21:28:04]wFMCommunicate request_size=10 [21:28:04]MH_SAM_APDU [21:28:04]CAPDU: 80 0D 02 02 05 13 FB 19 5F D5 [21:28:04]Write to MH i2c: E2 0D 00 E0 12 80 0D 02 02 05 00 13 FB 19 5F D5 00 00 D1 [21:28:04]Write i2c OK [21:28:04]MH_I2C_Read... [21:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:04]Read from MH i2c: E2 [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: E2 03 00 [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: E2 03 00 E0 12 00 90 00 66 [21:28:04]RAPDU: 90 00 [21:28:04]wFMCommunicate OK [21:28:04]wFMCommunicate request_size=4 [21:28:04]MH_SAM_APDU [21:28:04]CAPDU: 80 0D 03 02 [21:28:04]Write to MH i2c: E2 08 00 E1 12 80 0D 03 02 00 00 00 00 6E [21:28:04]Write i2c OK [21:28:04]MH_I2C_Read... [21:28:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:28:04]Read from MH i2c: E2 [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: E2 0B 00 [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: E2 0B 00 E1 12 00 59 B2 19 A5 7E E3 1A 37 90 00 EA [21:28:04]RAPDU: 59 B2 19 A5 7E E3 1A 37 90 00 [21:28:04]wFMCommunicate OK [21:28:04]SAM_PROTO_SignData done [21:28:04]FM_MakeSignedData done [21:28:04]CreateOFDProtocolMessage [21:28:04]wFMCommunicate request_size=4 [21:28:04]MH_SAM_APDU [21:28:04]CAPDU: 80 11 00 00 [21:28:04]Write to MH i2c: E2 08 00 E2 12 80 11 00 00 00 00 00 00 6E [21:28:04]Write i2c OK [21:28:04]MH_I2C_Read... [21:28:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:04]Read from MH i2c: E2 [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: E2 17 00 [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: E2 17 00 E2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C4 [21:28:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:28:04]wFMCommunicate OK [21:28:04]CreateOFDProtocolMessage done [21:28:04]OFDSenderStorePacket 67166 [21:28:04]StoreOFDPacket docnum=67166 [21:28: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 59 08 07 01 79 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 AD 00 00 00 F4 03 04 00 64 D7 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 79 13 FB 19 5F D5 59 B2 19 A5 7E E3 1A 37 [21:28:04]CheckFolder [21:28:04]dirname=/storage/ofd_packets [21:28:04]CheckFolder done [21:28:04]ProducePacketName [21:28:04]name=ofd_packets/00067166 [21:28:04]NVStorageSaveData ofd_packets/00067166 [21:28:04]File name is /storage/ofd_packets/00067166 [21:28:04]Write 301 bytes [21:28:04]NVStorageSaveData done [21:28:04]OFDSenderStorePacket done [21:28:04]KKMCreateOFDPacket done [21:28:04]NVStorageSaveData kkm_last_timestamp [21:28:04]File name is /storage/kkm_last_timestamp [21:28:04]Write 4 bytes [21:28:04]NVStorageSaveData done [21:28:04]ExternCall_PrintAddStr [21:28:04]wPrintStart [21:28:04]Write to MH i2c: 01 00 00 E3 12 F5 [21:28:04]Write i2c OK [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: 01 [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: 01 07 00 [21:28:04]MH_I2C_Read... [21:28:04]Read from MH i2c: 01 07 00 E3 12 00 00 00 00 00 FF 0F 0A [21:28:04]RasterBufferAndPrint [21:28:04]line Счет N : (1)507067 [21:28:04]line ИНН: 02508201610067 [21:28:04]line Контрольно-Кассовый Чек [21:28:04]line ПРОДАЖА [21:28:04]line ТРК (МРК, ГНК) : 43 [21:28:04]line Товар: 2710124130 [21:28:04]line Аи-92-К-5 [21:28:04]line 7.490 * 66.80 [21:28:04]line = 500.33 [21:28:04]line НДС 12% НСП 1% [21:28:04]line > о реализуемом товаре [21:28:04]line ОКРУГЛЕНИЕ: -0.33 [21:28:04]line ИТОГО: 500.00 [21:28:04]line Внесено: 500.00 [21:28:04]line СДАЧА: 0.00 [21:28:04]line НСП 1% : 4.43 [21:28:04]line НДС 12% : 53.13 [21:28:04]line Наличными: 500.00 [21:28:04]line Безнал.: 0.00 [21:28:04]line Место: АЗС № 91 "Партнер Нефть" [21:28:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:28:04]line СНО: Общий режим [21:28:04]line Чек 173 14.05.2024 21:28 [21:28:04]line Смена: 355 ФФД: 1.0 [21:28:04]line ЗНМ: 0300000119 [21:28:04]line РНМ: 0000000000091845 [21:28:04]line Версия ККМ: 001 [21:28:04]line ФМ: 0000000000871829 [21:28:04]line ФД: 67166 [21:28:04]line ФПД: 133126724083669 [21:28:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T212804&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67166&fm=133126724083669&tin=02508201610067®Number=0000000000091845&sum=50000 [21:28:05]OFD Sender: Processing packet 67166 [packets to send 35, broken 34] [21:28:05]ProducePacketName [21:28:05]name=ofd_packets/00067166 [21:28:05]OFD Sender: To server: pG, [21:28:05]CommunicateWithHost lk.salyk.kg:30040 [21:28:05]ConnectInit lk.salyk.kg [21:28:05]written 0, free lines is 4095 [21:28:05]Connected sock=10 [21:28: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 59 08 07 01 79 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 AD 00 00 00 F4 03 04 00 64 D7 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 79 13 FB 19 5F D5 59 B2 19 A5 7E E3 1A 37 [21:28: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 73 BD 47 00 F9 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 5E 06 01 00 F4 03 04 00 43 7F 43 66 B6 04 01 00 00 BF 56 3C 37 70 C6 0F D0 [21:28:05]CommunicateWithHost err = 0 [21:28:05]CheckOFDResponse [21:28:05]1017 (14) - 77093643461234 [21:28:05]1041 (16) - 0000000000871829 [21:28:05]1040 (4) - 67166 [21:28:05]1012 (4) - 14.05.2024 15:12 [21:28:05]1206 (1) - 0 [21:28:05]OFD Sender: Remove packet 67166 [21:28:05]ProducePacketName [21:28:05]name=ofd_packets/00067166 [21:28:05]NVStorageDeleteData [21:28:05]Write to MH i2c: 01 00 00 0D 13 20 [21:28:05]Write i2c OK [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: 01 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: 01 07 00 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: 01 07 00 0D 13 00 00 00 00 00 E1 0C 14 [21:28:05]RasterBufferAndPrint [21:28:05]line [21:28:05]line [21:28:05]line [21:28:05]line [21:28:05]line [21:28:05]written 0, free lines is 3305 [21:28:05]MH_Cut [21:28:05]Write to MH i2c: D1 01 00 14 13 01 F9 [21:28:05]Write i2c OK [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: D1 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: D1 01 00 [21:28:05]MH_I2C_Read... [21:28:05]Read from MH i2c: D1 01 00 14 13 00 F8 [21:28:05]Write to MH i2c: 01 00 00 15 13 28 [21:28:05]Write i2c OK [21:28:05]MH_I2C_Read... [21:28:05]OFD Sender: No OFD packet to send [21:28:06]*** Cut start [21:28:06]*** Purtial cut [21:28:06]*** CUTSNS_PIN = 0 [21:28:06]*** Stage 1: CUTSNS_PIN = 1 [21:28:08]Read from MH i2c: 01 [21:28:08]MH_I2C_Read... [21:28:08]*** Stop cut motor [21:28:08]*** Cut end [21:28:08]Read from MH i2c: 01 07 00 [21:28:08]MH_I2C_Read... [21:28:08]Read from MH i2c: 01 07 00 15 13 00 00 00 00 00 FF 0F 3D [21:28:08]process_action close_receipt done [21:28:08]requested_data is exist [21:28:08]produce_requested_data [21:28:08]requested_item fm.sn is exist - process it [21:28:08]wFMCommunicate request_size=4 [21:28:08]MH_SAM_APDU [21:28:08]CAPDU: 80 11 00 00 [21:28:08]Write to MH i2c: E2 08 00 16 13 80 11 00 00 00 00 00 00 A3 [21:28:08]Write i2c OK [21:28:08]MH_I2C_Read... [21:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:08]Read from MH i2c: E2 [21:28:08]MH_I2C_Read... [21:28:08]Read from MH i2c: E2 17 00 [21:28:08]MH_I2C_Read... [21:28:08]Read from MH i2c: E2 17 00 16 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F9 [21: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 [21:28:08]wFMCommunicate OK [21:28:08]requested_item fd.num is exist - process it [21:28:08]SAM_PROTO_GetFieldsCounters [21:28:08]wFMCommunicate request_size=4 [21:28:08]MH_SAM_APDU [21:28:08]CAPDU: 80 13 00 00 [21:28:08]Write to MH i2c: E2 08 00 17 13 80 13 00 00 00 00 00 00 A6 [21:28:08]Write i2c OK [21:28:08]MH_I2C_Read... [21:28:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:08]Read from MH i2c: E2 [21:28:08]MH_I2C_Read... [21:28:08]Read from MH i2c: E2 62 00 [21:28:08]MH_I2C_Read... [21:28:08]Read from MH i2c: E2 62 00 17 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 5E 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [21: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 5E 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:28:08]wFMCommunicate OK [21:28:08]SAM_PROTO_GetFieldsCounters done [21:28:08]requested_item shift.num is exist - process it [21:28:08]requested_item shift.opened is exist - process it [21:28:08]req_shift_opened [21:28:08]FM_GetShiftState [21:28:08]SAM_PROTO_GetShiftState [21:28:08]wFMCommunicate request_size=4 [21:28:08]MH_SAM_APDU [21:28:08]CAPDU: 80 13 01 00 [21:28:08]Write to MH i2c: E2 08 00 18 13 80 13 01 00 00 00 00 00 A8 [21:28:08]Write i2c OK [21:28:08]MH_I2C_Read... [21:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:08]Read from MH i2c: E2 [21:28:08]MH_I2C_Read... [21:28:08]Read from MH i2c: E2 0E 00 [21:28:08]MH_I2C_Read... [21:28:08]Read from MH i2c: E2 0E 00 18 13 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 70 [21:28:08]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [21:28:08]wFMCommunicate OK [21:28:08]SAM_PROTO_GetShiftState done [21:28:08]FM_GetShiftState done [21:28:08]req_shift_opened done [21:28:08]requested_item shift.open_date is exist - process it [21:28:08]req_shift_open_date [21:28:08]req_shift_open_date done [21:28:08]produce_requested_data done [21:28:08]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67166,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [21:28:08]process_action_free close_receipt [21:28:08]json_value_free [21:28:08]json_value_free done [21:28:08]process_json_proto returns [21:28:08]Send response to host [21:28:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67166,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [21:28:08]free response buf [21:28:08]execute_script done [21:28:08]execute_script returns [21:28:08]free content buf [21:28:08]Sock 7.Close socket [21:28:08]Sock 7.Thread stoped [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:30]OFD Sender: No OFD packet to send [21:28:35]OFD Sender: No OFD packet to send [21:28:40]OFD Sender: No OFD packet to send [21:28:45]OFD Sender: No OFD packet to send [21:28:50]OFD Sender: No OFD packet to send [21:28:55]OFD Sender: No OFD packet to send [21:29:00]OFD Sender: No OFD packet to send [21:29:05]OFD Sender: No OFD packet to send [21:29:10]OFD Sender: No OFD packet to send [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:35:57]accept exits with 9 [21:35:57]New connection [21:35:57]New thread 3066731876 created [21:35:57]Thread 3066588516 joined [21:35:57]Waiting for new connection... [21:35:57] Sock 9.Parse request [21:35:57]Sock 9.Check first char [21:35:57]Sock 9.First char is OK [21:35:57]request: POST /json_proto HTTP/1.0 [21:35:57]Method: POST [21:35:57]URL: /json_proto [21:35:57]Method is POST - this is cgi request [21:35:57]url: /json_proto [21:35:57]query_string will be loaded in cgi processing [21:35:57]execute_cgi json_proto POST (null) [21:35:57]execute_cgi path=json_proto method=POST [21:35:57]POST find Content-Length [21:35:57]Host: 172.17.41.195:8080 [21:35:57]Content-Length: 965 [21:35:57]Content-Type: application/json [21:35:57] [21:35:57]POST finish read [21:35:57]Found Content-Length = 965 [21:35:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507069", "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" : 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" ] } } [21:35:57]execute_script... [21:35: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)507069", "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" : 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" ] } } [21:35:57]POST & json_proto [21:35:57]process_json_proto [21:35:57]json parsed OK: [21:35:57]protocol is kg_v1.0 [21:35:57]action value=close_receipt [21:35:57]process_action close_receipt [21:35:57]cmd_close_receipt [21:35:57]MH_GetDate [21:35:57]Write to MH i2c: F0 00 00 19 13 1B [21:35:57]Write i2c OK [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: F0 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: F0 09 00 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: F0 09 00 19 13 00 3E D9 43 66 FC 21 6F 64 D4 [21:35:57]GetLastDocTimeStamp 1715722084 [21:35:57]current date 1715722558 [21:35:57]FM_GetShiftState [21:35:57]SAM_PROTO_GetShiftState [21:35:57]wFMCommunicate request_size=4 [21:35:57]MH_SAM_APDU [21:35:57]CAPDU: 80 13 01 00 [21:35:57]Write to MH i2c: E2 08 00 1A 13 80 13 01 00 00 00 00 00 AA [21:35:57]Write i2c OK [21:35:57]MH_I2C_Read... [21:35:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:57]Read from MH i2c: E2 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: E2 0E 00 [21:35:57]MH_I2C_Read... [21:35:57]Read from MH i2c: E2 0E 00 1A 13 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 72 [21:35:57]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [21:35:57]wFMCommunicate OK [21:35:57]SAM_PROTO_GetShiftState done [21:35:57]FM_GetShiftState done [21:35:57]opened in 1715646054 [21:35:57]opened+sec_in_day 1715732454 [21:35:57]quantity*price = 150032 [21:35:57]sum+1 = 150034 [21:35:57]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 СНО: Общий режим Чек 174 14.05.2024 21:35 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Дисконтная программа S-92 номер 91 сэкономлено 22.46 сом ФМ: 0000000000871829 ФД: 67167 ФПД: 183131880106683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T213558&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67167&fm=183131880106683&tin=02508201610067®Number=0000000000091845&sum=150000 [21:35:58]StoreToDocumentArchive [21:35:58]shift 355 fd 67167 [21:35:58]save to /storage/0355/doc_00067167 [21:35:58]save last doc name /storage/0355/doc_00067167 to /storage/kkm_last_doc_name [21:35:58]save OK [21:35:58]Clear old archive folders... [21:35:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:35:58]tlvbuf is 003C0FD0 [21:35:58]SAM_PROTO_ClearQueue [21:35:58]wFMCommunicate request_size=4 [21:35:58]MH_SAM_APDU [21:35:58]CAPDU: 80 09 00 00 [21:35:58]Write to MH i2c: E2 08 00 27 13 80 09 00 00 00 00 00 00 AC [21:35:58]Write i2c OK [21:35:58]MH_I2C_Read... [21:35:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:58]Read from MH i2c: E2 [21:35:58]MH_I2C_Read... [21:35:58]Read from MH i2c: E2 03 00 [21:35:58]MH_I2C_Read... [21:35:58]Read from MH i2c: E2 03 00 27 13 00 90 00 AE [21:35:58]RAPDU: 90 00 [21:35:58]wFMCommunicate OK [21:35:58]SAM_PROTO_ClearQueue done [21:35:58]KKMCreateOFDPacket [21:35:58]OFDProtocolAddRootSTLVToBuf [21:35:58]FM_MakeSignedData [21:35:58]FM_MakeSignedData [21:35:58]SAM_PROTO_SignData [21:35:58]wFMCommunicate request_size=4 [21:35:58]MH_SAM_APDU [21:35:58]CAPDU: 80 0D 01 02 [21:35:58]Write to MH i2c: E2 08 00 28 13 80 0D 01 02 00 00 00 00 B4 [21:35:58]Write i2c OK [21:35:58]MH_I2C_Read... [21:35:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:58]Read from MH i2c: E2 [21:35:58]MH_I2C_Read... [21:35:58]Read from MH i2c: E2 03 00 [21:35:58]MH_I2C_Read... [21:35:58]Read from MH i2c: E2 03 00 28 13 00 90 00 AF [21:35:58]RAPDU: 90 00 [21:35:58]wFMCommunicate OK [21:35:58]wFMCommunicate request_size=255 [21:35:58]MH_SAM_APDU [21:35:58]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 AE 00 00 00 F4 03 04 00 3E D9 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 [21:35:58]Write to MH i2c: E2 02 01 29 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 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 AE 00 00 00 F4 03 04 00 3E D9 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 00 00 ED [21:35:58]Write i2c OK [21:35:58]MH_I2C_Read... [21:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:58]Read from MH i2c: E2 [21:35:58]MH_I2C_Read... [21:35:58]Read from MH i2c: E2 03 00 [21:35:58]MH_I2C_Read... [21:35:58]Read from MH i2c: E2 03 00 29 13 00 90 00 B0 [21:35:58]RAPDU: 90 00 [21:35:58]wFMCommunicate OK [21:35:58]wFMCommunicate request_size=11 [21:35:58]MH_SAM_APDU [21:35:58]CAPDU: 80 0D 02 02 06 A6 8E B6 A9 2A BB [21:35:58]Write to MH i2c: E2 0E 00 2A 13 80 0D 02 02 06 00 A6 8E B6 A9 2A BB 00 00 3B [21:35:58]Write i2c OK [21:35:58]MH_I2C_Read... [21:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:58]Read from MH i2c: E2 [21:35:58]MH_I2C_Read... [21:35:58]Read from MH i2c: E2 03 00 [21:35:58]MH_I2C_Read... [21:35:58]Read from MH i2c: E2 03 00 2A 13 00 90 00 B1 [21:35:58]RAPDU: 90 00 [21:35:58]wFMCommunicate OK [21:35:58]wFMCommunicate request_size=4 [21:35:58]MH_SAM_APDU [21:35:58]CAPDU: 80 0D 03 02 [21:35:58]Write to MH i2c: E2 08 00 2B 13 80 0D 03 02 00 00 00 00 B9 [21:35:58]Write i2c OK [21:35:58]MH_I2C_Read... [21:35:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:58]Read from MH i2c: E2 [21:35:58]MH_I2C_Read... [21:35:58]Read from MH i2c: E2 0B 00 [21:35:58]MH_I2C_Read... [21:35:58]Read from MH i2c: E2 0B 00 2B 13 00 71 35 96 50 5A 34 D2 62 90 00 08 [21:35:58]RAPDU: 71 35 96 50 5A 34 D2 62 90 00 [21:35:58]wFMCommunicate OK [21:35:58]SAM_PROTO_SignData done [21:35:58]FM_MakeSignedData done [21:35:58]CreateOFDProtocolMessage [21:35:58]wFMCommunicate request_size=4 [21:35:58]MH_SAM_APDU [21:35:58]CAPDU: 80 11 00 00 [21:35:58]Write to MH i2c: E2 08 00 2C 13 80 11 00 00 00 00 00 00 B9 [21:35:58]Write i2c OK [21:35:58]MH_I2C_Read... [21:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:58]Read from MH i2c: E2 [21:35:58]MH_I2C_Read... [21:35:58]Read from MH i2c: E2 17 00 [21:35:58]MH_I2C_Read... [21:35:58]Read from MH i2c: E2 17 00 2C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0F [21: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 [21:35:58]wFMCommunicate OK [21:35:58]CreateOFDProtocolMessage done [21:35:58]OFDSenderStorePacket 67167 [21:35:58]StoreOFDPacket docnum=67167 [21:35:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 0C 5C 08 01 92 69 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 AE 00 00 00 F4 03 04 00 3E D9 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A6 8E B6 A9 2A BB 71 35 96 50 5A 34 D2 62 [21:35:58]CheckFolder [21:35:58]dirname=/storage/ofd_packets [21:35:58]CheckFolder done [21:35:58]ProducePacketName [21:35:58]name=ofd_packets/00067167 [21:35:58]NVStorageSaveData ofd_packets/00067167 [21:35:58]File name is /storage/ofd_packets/00067167 [21:35:58]Write 302 bytes [21:35:58]NVStorageSaveData done [21:35:58]OFDSenderStorePacket done [21:35:58]KKMCreateOFDPacket done [21:35:58]NVStorageSaveData kkm_last_timestamp [21:35:58]File name is /storage/kkm_last_timestamp [21:35:58]Write 4 bytes [21:35:58]NVStorageSaveData done [21:35:58]ExternCall_PrintAddStr [21:35:58]wPrintStart [21:35:58]Write to MH i2c: 01 00 00 2D 13 40 [21:35:58]Write i2c OK [21:35:58]MH_I2C_Read... [21:35:58]Read from MH i2c: 01 [21:35:58]MH_I2C_Read... [21:35:58]Read from MH i2c: 01 07 00 [21:35:58]MH_I2C_Read... [21:35:58]Read from MH i2c: 01 07 00 2D 13 00 00 00 00 00 FF 0F 55 [21:35:58]RasterBufferAndPrint [21:35:58]line Счет N : (1)507069 [21:35:58]line ИНН: 02508201610067 [21:35:58]line Контрольно-Кассовый Чек [21:35:58]line ПРОДАЖА [21:35:58]line ТРК (МРК, ГНК) : 42 [21:35:58]line Товар: 2710124130 [21:35:58]line Super-92-К-5 [21:35:58]line 22.460 * 66.80 [21:35:58]line = 1500.33 [21:35:58]line НДС 12% НСП 1% [21:35:58]line > о реализуемом товаре [21:35:58]line ОКРУГЛЕНИЕ: -0.33 [21:35:58]line ИТОГО: 1500.00 [21:35:58]line Внесено: 1500.00 [21:35:58]line СДАЧА: 0.00 [21:35:58]line НСП 1% : 13.28 [21:35:58]line НДС 12% : 159.33 [21:35:58]line Наличными: 1500.00 [21:35:58]line Безнал.: 0.00 [21:35:58]line Место: АЗС № 91 "Партнер Нефть" [21:35:58]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:35:58]line СНО: Общий режим [21:35:58]line Чек 174 14.05.2024 21:35 [21:35:58]line Смена: 355 ФФД: 1.0 [21:35:58]line ЗНМ: 0300000119 [21:35:58]line РНМ: 0000000000091845 [21:35:58]line Версия ККМ: 001 [21:35:58]line [21:35:58]line Дисконтная программа [21:35:58]line S-92 [21:35:58]line номер 91 [21:35:58]line сэкономлено 22.46 сом [21:35:58]line ФМ: 0000000000871829 [21:35:58]line ФД: 67167 [21:35:58]line ФПД: 183131880106683 [21:35:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T213558&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67167&fm=183131880106683&tin=02508201610067®Number=0000000000091845&sum=150000 [21:35:59]OFD Sender: Processing packet 67167 [packets to send 35, broken 34] [21:35:59]ProducePacketName [21:35:59]name=ofd_packets/00067167 [21:35:59]OFD Sender: To server: pG, [21:35:59]CommunicateWithHost lk.salyk.kg:30040 [21:35:59]ConnectInit lk.salyk.kg [21:35:59]written 0, free lines is 4095 [21:35:59]Connected sock=10 [21:35:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 0C 5C 08 01 92 69 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 AE 00 00 00 F4 03 04 00 3E D9 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A6 8E B6 A9 2A BB 71 35 96 50 5A 34 D2 62 [21:35:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 A3 BC 47 00 26 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 5F 06 01 00 F4 03 04 00 1D 81 43 66 B6 04 01 00 00 74 1A 61 54 D1 96 22 22 [21:35:59]CommunicateWithHost err = 0 [21:35:59]CheckOFDResponse [21:35:59]1017 (14) - 77093643461234 [21:35:59]1041 (16) - 0000000000871829 [21:35:59]1040 (4) - 67167 [21:35:59]1012 (4) - 14.05.2024 15:19 [21:35:59]1206 (1) - 0 [21:35:59]OFD Sender: Remove packet 67167 [21:35:59]ProducePacketName [21:35:59]name=ofd_packets/00067167 [21:35:59]NVStorageDeleteData [21:35:59]Write to MH i2c: 01 00 00 5C 13 6F [21:35:59]Write i2c OK [21:35:59]MH_I2C_Read... [21:35:59]Read from MH i2c: 01 [21:35:59]MH_I2C_Read... [21:35:59]Read from MH i2c: 01 07 00 [21:35:59]MH_I2C_Read... [21:35:59]Read from MH i2c: 01 07 00 5C 13 00 00 00 00 00 7E 0C 00 [21:35:59]RasterBufferAndPrint [21:35:59]line [21:35:59]line [21:35:59]line [21:35:59]line [21:35:59]line [21:35:59]written 0, free lines is 3206 [21:35:59]MH_Cut [21:35:59]Write to MH i2c: D1 01 00 63 13 01 48 [21:35:59]Write i2c OK [21:35:59]MH_I2C_Read... [21:35:59]Read from MH i2c: D1 [21:35:59]MH_I2C_Read... [21:35:59]Read from MH i2c: D1 01 00 [21:35:59]MH_I2C_Read... [21:35:59]Read from MH i2c: D1 01 00 63 13 00 47 [21:35:59]Write to MH i2c: 01 00 00 64 13 77 [21:35:59]Write i2c OK [21:35:59]MH_I2C_Read... [21:36:00]OFD Sender: No OFD packet to send [21:36:00]*** Cut start [21:36:00]*** Purtial cut [21:36:00]*** Stage 1: CUTSNS_PIN = 1 [21:36:00]Read from MH i2c: 01 [21:36:00]MH_I2C_Read... [21:36:00]*** Stop cut motor [21:36:00]*** Cut end [21:36:00]Read from MH i2c: 01 07 00 [21:36:00]MH_I2C_Read... [21:36:00]Read from MH i2c: 01 07 00 64 13 00 00 00 00 00 FF 0F 8C [21:36:00]process_action close_receipt done [21:36:00]requested_data is exist [21:36:00]produce_requested_data [21:36:00]requested_item fm.sn is exist - process it [21:36:00]wFMCommunicate request_size=4 [21:36:00]MH_SAM_APDU [21:36:00]CAPDU: 80 11 00 00 [21:36:00]Write to MH i2c: E2 08 00 65 13 80 11 00 00 00 00 00 00 F2 [21:36:00]Write i2c OK [21:36:00]MH_I2C_Read... [21:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:00]Read from MH i2c: E2 [21:36:00]MH_I2C_Read... [21:36:00]Read from MH i2c: E2 17 00 [21:36:00]MH_I2C_Read... [21:36:00]Read from MH i2c: E2 17 00 65 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 48 [21:36:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:36:00]wFMCommunicate OK [21:36:00]requested_item fd.num is exist - process it [21:36:00]SAM_PROTO_GetFieldsCounters [21:36:00]wFMCommunicate request_size=4 [21:36:00]MH_SAM_APDU [21:36:00]CAPDU: 80 13 00 00 [21:36:00]Write to MH i2c: E2 08 00 66 13 80 13 00 00 00 00 00 00 F5 [21:36:00]Write i2c OK [21:36:00]MH_I2C_Read... [21:36:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:01]Read from MH i2c: E2 [21:36:01]MH_I2C_Read... [21:36:01]Read from MH i2c: E2 62 00 [21:36:01]MH_I2C_Read... [21:36:01]Read from MH i2c: E2 62 00 66 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 5F 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [21: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 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:36:01]wFMCommunicate OK [21:36:01]SAM_PROTO_GetFieldsCounters done [21:36:01]requested_item shift.num is exist - process it [21:36:01]requested_item shift.opened is exist - process it [21:36:01]req_shift_opened [21:36:01]FM_GetShiftState [21:36:01]SAM_PROTO_GetShiftState [21:36:01]wFMCommunicate request_size=4 [21:36:01]MH_SAM_APDU [21:36:01]CAPDU: 80 13 01 00 [21:36:01]Write to MH i2c: E2 08 00 67 13 80 13 01 00 00 00 00 00 F7 [21:36:01]Write i2c OK [21:36:01]MH_I2C_Read... [21:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:01]Read from MH i2c: E2 [21:36:01]MH_I2C_Read... [21:36:01]Read from MH i2c: E2 0E 00 [21:36:01]MH_I2C_Read... [21:36:01]Read from MH i2c: E2 0E 00 67 13 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 BF [21:36:01]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [21:36:01]wFMCommunicate OK [21:36:01]SAM_PROTO_GetShiftState done [21:36:01]FM_GetShiftState done [21:36:01]req_shift_opened done [21:36:01]requested_item shift.open_date is exist - process it [21:36:01]req_shift_open_date [21:36:01]req_shift_open_date done [21:36:01]produce_requested_data done [21:36:01]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67167,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [21:36:01]process_action_free close_receipt [21:36:01]json_value_free [21:36:01]json_value_free done [21:36:01]process_json_proto returns [21:36:01]Send response to host [21:36:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67167,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [21:36:01]free response buf [21:36:01]execute_script done [21:36:01]execute_script returns [21:36:01]free content buf [21:36:01]Sock 9.Close socket [21:36:01]Sock 9.Thread stoped [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:13]accept exits with 7 [21:36:13]New connection [21:36:13]New thread 3066588516 created [21:36:13]Thread 3066731876 joined [21:36:13]Waiting for new connection... [21:36:13] Sock 7.Parse request [21:36:13]Sock 7.Check first char [21:36:13]Sock 7.First char is OK [21:36:13]request: POST /json_proto HTTP/1.0 [21:36:13]Method: POST [21:36:13]URL: /json_proto [21:36:13]Method is POST - this is cgi request [21:36:13]url: /json_proto [21:36:13]query_string will be loaded in cgi processing [21:36:13]execute_cgi json_proto POST (null) [21:36:13]execute_cgi path=json_proto method=POST [21:36:13]POST find Content-Length [21:36:13]Host: 172.17.41.195:8080 [21:36:13]Content-Length: 1179 [21:36:13]Content-Type: application/json [21:36:13] [21:36:13]POST finish read [21:36:13]Found Content-Length = 1179 [21:36: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)507068\u000A14.05.2024 21:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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\u000A03842\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:13]execute_script... [21:36: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)507068\u000A14.05.2024 21:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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\u000A03842\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:13]POST & json_proto [21:36:13]process_json_proto [21:36:13]json parsed OK: [21:36:13]protocol is kg_v1.0 [21:36:13]action value=print_text [21:36:13]process_action print_text [21:36:13]cmd_print_text [21:36:13]ExternCall_PrintAddStr [21:36:13]wPrintStart [21:36:13]Write to MH i2c: 01 00 00 68 13 7B [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: 01 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: 01 07 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: 01 07 00 68 13 00 00 00 00 00 FF 0F 90 [21:36:13]RasterBufferAndPrint [21:36:13]line *****ТОВАРНЫЙ ЧЕК***** [21:36:13]line АЗС-91 [21:36:13]line Партнер нефть [21:36:13]line 02508201610067 [21:36:13]line Кассир : Адишов И. [21:36:13]line Счет N : (1)507068 [21:36:13]line 14.05.2024 21:18 [21:36:13]line ПРОДАЖА [21:36:13]line ТРК (МРК, ГНК): 21 [21:36:13]line Вид ГСМ : 2710194210 [21:36:13]line ДТ-К-5 [21:36:13]line 30.000 x 74.70 [21:36:13]line ИТОГ: 2241.00 [21:36:13]line Тип оплаты: Талоны: Топливная Карта [21:36:13]line 03842 [21:36:13]line ______________________ [21:36:13]line (подпись) [21:36:13]written 0, free lines is 4095 [21:36:13]Write to MH i2c: 01 00 00 7C 13 8F [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: 01 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: 01 07 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: 01 07 00 7C 13 00 00 00 00 00 0E 0E B2 [21:36:13]RasterBufferAndPrint [21:36:13]line [21:36:13]line [21:36:13]line [21:36:13]line [21:36:13]line [21:36:13]written 0, free lines is 3599 [21:36:13]MH_Cut [21:36:13]Write to MH i2c: D1 01 00 83 13 01 68 [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: D1 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: D1 01 00 [21:36:13]MH_I2C_Read... [21:36:13]Read from MH i2c: D1 01 00 83 13 00 67 [21:36:13]Write to MH i2c: 01 00 00 84 13 97 [21:36:13]Write i2c OK [21:36:13]MH_I2C_Read... [21:36:14]*** Cut start [21:36:14]*** Purtial cut [21:36:14]*** CUTSNS_PIN = 0 [21:36:14]*** Stage 1: CUTSNS_PIN = 1 [21:36:15]OFD Sender: No OFD packet to send [21:36:16]Read from MH i2c: 01 [21:36:16]MH_I2C_Read... [21:36:16]*** Stop cut motor [21:36:16]*** Cut end [21:36:16]Read from MH i2c: 01 07 00 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: 01 07 00 84 13 00 00 00 00 00 FF 0F AC [21:36:16]process_action print_text done [21:36:16]requested_data is exist [21:36:16]produce_requested_data [21:36:16]requested_item fm.sn is exist - process it [21:36:16]wFMCommunicate request_size=4 [21:36:16]MH_SAM_APDU [21:36:16]CAPDU: 80 11 00 00 [21:36:16]Write to MH i2c: E2 08 00 85 13 80 11 00 00 00 00 00 00 12 [21:36:16]Write i2c OK [21:36:16]MH_I2C_Read... [21:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:16]Read from MH i2c: E2 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 17 00 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 17 00 85 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 68 [21: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 [21:36:16]wFMCommunicate OK [21:36:16]requested_item fd.num is exist - process it [21:36:16]SAM_PROTO_GetFieldsCounters [21:36:16]wFMCommunicate request_size=4 [21:36:16]MH_SAM_APDU [21:36:16]CAPDU: 80 13 00 00 [21:36:16]Write to MH i2c: E2 08 00 86 13 80 13 00 00 00 00 00 00 15 [21:36:16]Write i2c OK [21:36:16]MH_I2C_Read... [21:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:16]Read from MH i2c: E2 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 62 00 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 62 00 86 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 5F 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [21:36: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 5F 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:36:16]wFMCommunicate OK [21:36:16]SAM_PROTO_GetFieldsCounters done [21:36:16]requested_item shift.num is exist - process it [21:36:16]requested_item shift.opened is exist - process it [21:36:16]req_shift_opened [21:36:16]FM_GetShiftState [21:36:16]SAM_PROTO_GetShiftState [21:36:16]wFMCommunicate request_size=4 [21:36:16]MH_SAM_APDU [21:36:16]CAPDU: 80 13 01 00 [21:36:16]Write to MH i2c: E2 08 00 87 13 80 13 01 00 00 00 00 00 17 [21:36:16]Write i2c OK [21:36:16]MH_I2C_Read... [21:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:16]Read from MH i2c: E2 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 0E 00 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 0E 00 87 13 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 DF [21:36:16]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [21:36:16]wFMCommunicate OK [21:36:16]SAM_PROTO_GetShiftState done [21:36:16]FM_GetShiftState done [21:36:16]req_shift_opened done [21:36:16]requested_item shift.open_date is exist - process it [21:36:16]req_shift_open_date [21:36:16]req_shift_open_date done [21:36:16]produce_requested_data done [21:36:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67167,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [21:36:16]process_action_free print_text [21:36:16]json_value_free [21:36:16]json_value_free done [21:36:16]process_json_proto returns [21:36:16]Send response to host [21:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67167,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [21:36:16]free response buf [21:36:16]execute_script done [21:36:16]execute_script returns [21:36:16]free content buf [21:36:16]Sock 7.Close socket [21:36:16]Sock 7.Thread stoped [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:15]accept exits with 9 [21:47:15]New connection [21:47:15]New thread 3066731876 created [21:47:15]Thread 3066588516 joined [21:47:15]Waiting for new connection... [21:47:15] Sock 9.Parse request [21:47:15]Sock 9.Check first char [21:47:15]Sock 9.First char is OK [21:47:15]request: POST /json_proto HTTP/1.0 [21:47:15]Method: POST [21:47:15]URL: /json_proto [21:47:15]Method is POST - this is cgi request [21:47:15]url: /json_proto [21:47:15]query_string will be loaded in cgi processing [21:47:15]execute_cgi json_proto POST (null) [21:47:15]execute_cgi path=json_proto method=POST [21:47:15]POST find Content-Length [21:47:15]Host: 172.17.41.195:8080 [21:47:15]Content-Length: 677 [21:47:15]Content-Type: application/json [21:47:15] [21:47:15]POST finish read [21:47:15]Found Content-Length = 677 [21:47:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507070", "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:47:15]execute_script... [21:47: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)507070", "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:47:15]POST & json_proto [21:47:15]process_json_proto [21:47:15]json parsed OK: [21:47:15]protocol is kg_v1.0 [21:47:15]action value=close_receipt [21:47:15]process_action close_receipt [21:47:15]cmd_close_receipt [21:47:15]MH_GetDate [21:47:15]Write to MH i2c: F0 00 00 88 13 8A [21:47:15]Write i2c OK [21:47:15]MH_I2C_Read... [21:47:15]Read from MH i2c: F0 [21:47:15]MH_I2C_Read... [21:47:15]Read from MH i2c: F0 09 00 [21:47:15]MH_I2C_Read... [21:47:15]Read from MH i2c: F0 09 00 88 13 00 E4 DB 43 66 FC 21 6F 64 EB [21:47:15]GetLastDocTimeStamp 1715722558 [21:47:15]current date 1715723236 [21:47:15]FM_GetShiftState [21:47:15]SAM_PROTO_GetShiftState [21:47:15]wFMCommunicate request_size=4 [21:47:15]MH_SAM_APDU [21:47:15]CAPDU: 80 13 01 00 [21:47:15]Write to MH i2c: E2 08 00 89 13 80 13 01 00 00 00 00 00 19 [21:47:15]Write i2c OK [21:47:15]MH_I2C_Read... [21:47:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:15]Read from MH i2c: E2 [21:47:15]MH_I2C_Read... [21:47:15]Read from MH i2c: E2 0E 00 [21:47:15]MH_I2C_Read... [21:47:15]Read from MH i2c: E2 0E 00 89 13 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 E1 [21:47:15]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [21:47:15]wFMCommunicate OK [21:47:15]SAM_PROTO_GetShiftState done [21:47:15]FM_GetShiftState done [21:47:15]opened in 1715646054 [21:47:15]opened+sec_in_day 1715732454 [21:47:15]quantity*price = 50033 [21:47:15]sum+1 = 50034 [21:47:15]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 СНО: Общий режим Чек 175 14.05.2024 21:47 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67168 ФПД: 16084265983107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T214716&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67168&fm=16084265983107&tin=02508201610067®Number=0000000000091845&sum=50000 [21:47:17]StoreToDocumentArchive [21:47:17]shift 355 fd 67168 [21:47:17]save to /storage/0355/doc_00067168 [21:47:17]save last doc name /storage/0355/doc_00067168 to /storage/kkm_last_doc_name [21:47:17]save OK [21:47:17]Clear old archive folders... [21:47:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:47:17]tlvbuf is 0030B2D0 [21:47:17]SAM_PROTO_ClearQueue [21:47:17]wFMCommunicate request_size=4 [21:47:17]MH_SAM_APDU [21:47:17]CAPDU: 80 09 00 00 [21:47:17]Write to MH i2c: E2 08 00 96 13 80 09 00 00 00 00 00 00 1B [21:47:17]Write i2c OK [21:47:17]MH_I2C_Read... [21:47:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:47:17]Read from MH i2c: E2 [21:47:17]MH_I2C_Read... [21:47:17]Read from MH i2c: E2 03 00 [21:47:17]MH_I2C_Read... [21:47:17]Read from MH i2c: E2 03 00 96 13 00 90 00 1D [21:47:17]RAPDU: 90 00 [21:47:17]wFMCommunicate OK [21:47:17]SAM_PROTO_ClearQueue done [21:47:17]KKMCreateOFDPacket [21:47:17]OFDProtocolAddRootSTLVToBuf [21:47:17]FM_MakeSignedData [21:47:17]FM_MakeSignedData [21:47:17]SAM_PROTO_SignData [21:47:17]wFMCommunicate request_size=4 [21:47:17]MH_SAM_APDU [21:47:17]CAPDU: 80 0D 01 02 [21:47:17]Write to MH i2c: E2 08 00 97 13 80 0D 01 02 00 00 00 00 23 [21:47:17]Write i2c OK [21:47:17]MH_I2C_Read... [21:47:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:47:17]Read from MH i2c: E2 [21:47:17]MH_I2C_Read... [21:47:17]Read from MH i2c: E2 03 00 [21:47:17]MH_I2C_Read... [21:47:17]Read from MH i2c: E2 03 00 97 13 00 90 00 1E [21:47:17]RAPDU: 90 00 [21:47:17]wFMCommunicate OK [21:47:17]wFMCommunicate request_size=255 [21:47:17]MH_SAM_APDU [21:47:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 E4 DB 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0E [21:47:17]Write to MH i2c: E2 02 01 98 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 AF 00 00 00 F4 03 04 00 E4 DB 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0E 00 00 9E [21:47:17]Write i2c OK [21:47:17]MH_I2C_Read... [21:47:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:17]Read from MH i2c: E2 [21:47:17]MH_I2C_Read... [21:47:17]Read from MH i2c: E2 03 00 [21:47:17]MH_I2C_Read... [21:47:17]Read from MH i2c: E2 03 00 98 13 00 90 00 1F [21:47:17]RAPDU: 90 00 [21:47:17]wFMCommunicate OK [21:47:17]wFMCommunicate request_size=10 [21:47:17]MH_SAM_APDU [21:47:17]CAPDU: 80 0D 02 02 05 A0 E8 F5 DC 83 [21:47:17]Write to MH i2c: E2 0D 00 99 13 80 0D 02 02 05 00 A0 E8 F5 DC 83 00 00 0C [21:47:17]Write i2c OK [21:47:17]MH_I2C_Read... [21:47:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:17]Read from MH i2c: E2 [21:47:17]MH_I2C_Read... [21:47:17]Read from MH i2c: E2 03 00 [21:47:17]MH_I2C_Read... [21:47:17]Read from MH i2c: E2 03 00 99 13 00 90 00 20 [21:47:17]RAPDU: 90 00 [21:47:17]wFMCommunicate OK [21:47:17]wFMCommunicate request_size=4 [21:47:17]MH_SAM_APDU [21:47:17]CAPDU: 80 0D 03 02 [21:47:17]Write to MH i2c: E2 08 00 9A 13 80 0D 03 02 00 00 00 00 28 [21:47:17]Write i2c OK [21:47:17]MH_I2C_Read... [21:47:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:47:17]Read from MH i2c: E2 [21:47:17]MH_I2C_Read... [21:47:17]Read from MH i2c: E2 0B 00 [21:47:17]MH_I2C_Read... [21:47:17]Read from MH i2c: E2 0B 00 9A 13 00 BB B0 0B E4 F0 D8 1C 4A 90 00 B1 [21:47:17]RAPDU: BB B0 0B E4 F0 D8 1C 4A 90 00 [21:47:17]wFMCommunicate OK [21:47:17]SAM_PROTO_SignData done [21:47:17]FM_MakeSignedData done [21:47:17]CreateOFDProtocolMessage [21:47:17]wFMCommunicate request_size=4 [21:47:17]MH_SAM_APDU [21:47:17]CAPDU: 80 11 00 00 [21:47:17]Write to MH i2c: E2 08 00 9B 13 80 11 00 00 00 00 00 00 28 [21:47:17]Write i2c OK [21:47:17]MH_I2C_Read... [21:47:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:17]Read from MH i2c: E2 [21:47:17]MH_I2C_Read... [21:47:17]Read from MH i2c: E2 17 00 [21:47:17]MH_I2C_Read... [21:47:17]Read from MH i2c: E2 17 00 9B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7E [21:47:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:47:17]wFMCommunicate OK [21:47:17]CreateOFDProtocolMessage done [21:47:17]OFDSenderStorePacket 67168 [21:47:17]StoreOFDPacket docnum=67168 [21:47: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 82 C2 07 01 7F BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AF 00 00 00 F4 03 04 00 E4 DB 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0E A0 E8 F5 DC 83 BB B0 0B E4 F0 D8 1C 4A [21:47:17]CheckFolder [21:47:17]dirname=/storage/ofd_packets [21:47:17]CheckFolder done [21:47:17]ProducePacketName [21:47:17]name=ofd_packets/00067168 [21:47:17]NVStorageSaveData ofd_packets/00067168 [21:47:17]File name is /storage/ofd_packets/00067168 [21:47:17]Write 301 bytes [21:47:17]NVStorageSaveData done [21:47:17]OFDSenderStorePacket done [21:47:17]KKMCreateOFDPacket done [21:47:17]NVStorageSaveData kkm_last_timestamp [21:47:17]File name is /storage/kkm_last_timestamp [21:47:17]Write 4 bytes [21:47:17]NVStorageSaveData done [21:47:17]ExternCall_PrintAddStr [21:47:17]wPrintStart [21:47:17]Write to MH i2c: 01 00 00 9C 13 AF [21:47:17]Write i2c OK [21:47:17]MH_I2C_Read... [21:47:17]Read from MH i2c: 01 [21:47:17]MH_I2C_Read... [21:47:17]Read from MH i2c: 01 07 00 [21:47:17]MH_I2C_Read... [21:47:17]Read from MH i2c: 01 07 00 9C 13 00 00 00 00 00 FF 0F C4 [21:47:17]RasterBufferAndPrint [21:47:17]line Счет N : (1)507070 [21:47:17]line ИНН: 02508201610067 [21:47:17]line Контрольно-Кассовый Чек [21:47:17]line ПРОДАЖА [21:47:17]line ТРК (МРК, ГНК) : 33 [21:47:17]line Товар: 2710124130 [21:47:17]line Аи-92-К-5 [21:47:17]line 7.490 * 66.80 [21:47:17]line = 500.33 [21:47:17]line НДС 12% НСП 1% [21:47:17]line > о реализуемом товаре [21:47:17]line ОКРУГЛЕНИЕ: -0.33 [21:47:17]line ИТОГО: 500.00 [21:47:17]line Внесено: 500.00 [21:47:17]line СДАЧА: 0.00 [21:47:17]line НСП 1% : 4.43 [21:47:17]line НДС 12% : 53.13 [21:47:17]line Наличными: 500.00 [21:47:17]line Безнал.: 0.00 [21:47:17]line Место: АЗС № 91 "Партнер Нефть" [21:47:17]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:47:17]line СНО: Общий режим [21:47:17]line Чек 175 14.05.2024 21:47 [21:47:17]line Смена: 355 ФФД: 1.0 [21:47:17]line ЗНМ: 0300000119 [21:47:17]line РНМ: 0000000000091845 [21:47:17]line Версия ККМ: 001 [21:47:17]line ФМ: 0000000000871829 [21:47:17]line ФД: 67168 [21:47:17]line ФПД: 16084265983107 [21:47:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T214716&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67168&fm=16084265983107&tin=02508201610067®Number=0000000000091845&sum=50000 [21:47:17]written 0, free lines is 4095 [21:47:17]OFD Sender: Processing packet 67168 [packets to send 35, broken 34] [21:47:17]ProducePacketName [21:47:17]name=ofd_packets/00067168 [21:47:17]OFD Sender: To server: pG, [21:47:17]CommunicateWithHost lk.salyk.kg:30040 [21:47:17]ConnectInit lk.salyk.kg [21:47:17]Connected sock=10 [21:47: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 82 C2 07 01 7F BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AF 00 00 00 F4 03 04 00 E4 DB 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 0E A0 E8 F5 DC 83 BB B0 0B E4 F0 D8 1C 4A [21:47: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 51 93 47 00 63 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 06 01 00 F4 03 04 00 C3 83 43 66 B6 04 01 00 00 37 F1 BE A7 39 24 7D DE [21:47:18]CommunicateWithHost err = 0 [21:47:18]CheckOFDResponse [21:47:18]1017 (14) - 77093643461234 [21:47:18]1041 (16) - 0000000000871829 [21:47:18]1040 (4) - 67168 [21:47:18]1012 (4) - 14.05.2024 15:31 [21:47:18]1206 (1) - 0 [21:47:18]OFD Sender: Remove packet 67168 [21:47:18]ProducePacketName [21:47:18]name=ofd_packets/00067168 [21:47:18]NVStorageDeleteData [21:47:18]Write to MH i2c: 01 00 00 C6 13 D9 [21:47:18]Write i2c OK [21:47:18]MH_I2C_Read... [21:47:18]Read from MH i2c: 01 [21:47:18]MH_I2C_Read... [21:47:18]Read from MH i2c: 01 07 00 [21:47:18]MH_I2C_Read... [21:47:18]Read from MH i2c: 01 07 00 C6 13 00 00 00 00 00 D2 0C BE [21:47:18]RasterBufferAndPrint [21:47:18]line [21:47:18]line [21:47:18]line [21:47:18]line [21:47:18]line [21:47:18]written 0, free lines is 3288 [21:47:18]MH_Cut [21:47:18]Write to MH i2c: D1 01 00 CD 13 01 B2 [21:47:18]Write i2c OK [21:47:18]MH_I2C_Read... [21:47:18]Read from MH i2c: D1 [21:47:18]MH_I2C_Read... [21:47:18]Read from MH i2c: D1 01 00 [21:47:18]MH_I2C_Read... [21:47:18]Read from MH i2c: D1 01 00 CD 13 00 B1 [21:47:18]Write to MH i2c: 01 00 00 CE 13 E1 [21:47:18]Write i2c OK [21:47:18]MH_I2C_Read... [21:47:18]OFD Sender: No OFD packet to send [21:47:19]*** Cut start [21:47:19]*** Purtial cut [21:47:19]*** Stage 1: CUTSNS_PIN = 1 [21:47:19]Read from MH i2c: 01 [21:47:19]MH_I2C_Read... [21:47:19]*** Stop cut motor [21:47:19]*** Cut end [21:47:19]Read from MH i2c: 01 07 00 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: 01 07 00 CE 13 00 00 00 00 00 FF 0F F6 [21:47:19]process_action close_receipt done [21:47:19]requested_data is exist [21:47:19]produce_requested_data [21:47:19]requested_item fm.sn is exist - process it [21:47:19]wFMCommunicate request_size=4 [21:47:19]MH_SAM_APDU [21:47:19]CAPDU: 80 11 00 00 [21:47:19]Write to MH i2c: E2 08 00 CF 13 80 11 00 00 00 00 00 00 5C [21:47:19]Write i2c OK [21:47:19]MH_I2C_Read... [21:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:19]Read from MH i2c: E2 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 17 00 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 17 00 CF 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 B2 [21:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:47:19]wFMCommunicate OK [21:47:19]requested_item fd.num is exist - process it [21:47:19]SAM_PROTO_GetFieldsCounters [21:47:19]wFMCommunicate request_size=4 [21:47:19]MH_SAM_APDU [21:47:19]CAPDU: 80 13 00 00 [21:47:19]Write to MH i2c: E2 08 00 D0 13 80 13 00 00 00 00 00 00 5F [21:47:19]Write i2c OK [21:47:19]MH_I2C_Read... [21:47:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:47:19]Read from MH i2c: E2 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 62 00 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 62 00 D0 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 60 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [21:47: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 60 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:47:19]wFMCommunicate OK [21:47:19]SAM_PROTO_GetFieldsCounters done [21:47:19]requested_item shift.num is exist - process it [21:47:19]requested_item shift.opened is exist - process it [21:47:19]req_shift_opened [21:47:19]FM_GetShiftState [21:47:19]SAM_PROTO_GetShiftState [21:47:19]wFMCommunicate request_size=4 [21:47:19]MH_SAM_APDU [21:47:19]CAPDU: 80 13 01 00 [21:47:19]Write to MH i2c: E2 08 00 D1 13 80 13 01 00 00 00 00 00 61 [21:47:19]Write i2c OK [21:47:19]MH_I2C_Read... [21:47:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:19]Read from MH i2c: E2 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 0E 00 [21:47:19]MH_I2C_Read... [21:47:19]Read from MH i2c: E2 0E 00 D1 13 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 29 [21:47:19]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [21:47:19]wFMCommunicate OK [21:47:19]SAM_PROTO_GetShiftState done [21:47:19]FM_GetShiftState done [21:47:19]req_shift_opened done [21:47:19]requested_item shift.open_date is exist - process it [21:47:19]req_shift_open_date [21:47:19]req_shift_open_date done [21:47:19]produce_requested_data done [21:47:19]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67168,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [21:47:19]process_action_free close_receipt [21:47:19]json_value_free [21:47:19]json_value_free done [21:47:19]process_json_proto returns [21:47:19]Send response to host [21:47:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67168,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [21:47:19]free response buf [21:47:19]execute_script done [21:47:19]execute_script returns [21:47:19]free content buf [21:47:19]Sock 9.Close socket [21:47:19]Sock 9.Thread stoped [21:47:23]OFD Sender: No OFD packet to send [21:47:28]OFD Sender: No OFD packet to send [21:47:33]OFD Sender: No OFD packet to send [21:47:38]OFD Sender: No OFD packet to send [21:47:43]OFD Sender: No OFD packet to send [21:47:48]OFD Sender: No OFD packet to send [21:47:53]OFD Sender: No OFD packet to send [21:47:58]OFD Sender: No OFD packet to send [21:48:03]OFD Sender: No OFD packet to send [21:48:08]OFD Sender: No OFD packet to send [21:48:13]OFD Sender: No OFD packet to send [21:48:18]OFD Sender: No OFD packet to send [21:48:23]OFD Sender: No OFD packet to send [21:48:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:14]accept exits with 7 [21:56:14]New connection [21:56:14]New thread 3066588516 created [21:56:14]Thread 3066731876 joined [21:56:14]Waiting for new connection... [21:56:14] Sock 7.Parse request [21:56:14]Sock 7.Check first char [21:56:14]Sock 7.First char is OK [21:56:14]request: POST /json_proto HTTP/1.0 [21:56:14]Method: POST [21:56:14]URL: /json_proto [21:56:14]Method is POST - this is cgi request [21:56:14]url: /json_proto [21:56:14]query_string will be loaded in cgi processing [21:56:14]execute_cgi json_proto POST (null) [21:56:14]execute_cgi path=json_proto method=POST [21:56:14]POST find Content-Length [21:56:14]Host: 172.17.41.195:8080 [21:56:14]Content-Length: 675 [21:56:14]Content-Type: application/json [21:56:14] [21:56:14]POST finish read [21:56:14]Found Content-Length = 675 [21:56:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507071", "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" : 44.250, "sum" : 3000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:14]execute_script... [21:56: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)507071", "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" : 44.250, "sum" : 3000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:14]POST & json_proto [21:56:14]process_json_proto [21:56:14]json parsed OK: [21:56:14]protocol is kg_v1.0 [21:56:14]action value=close_receipt [21:56:14]process_action close_receipt [21:56:14]cmd_close_receipt [21:56:14]MH_GetDate [21:56:14]Write to MH i2c: F0 00 00 D2 13 D4 [21:56:14]Write i2c OK [21:56:14]MH_I2C_Read... [21:56:14]Read from MH i2c: F0 [21:56:14]MH_I2C_Read... [21:56:14]Read from MH i2c: F0 09 00 [21:56:14]MH_I2C_Read... [21:56:14]Read from MH i2c: F0 09 00 D2 13 00 FF DD 43 66 FC 21 6F 64 52 [21:56:14]GetLastDocTimeStamp 1715723236 [21:56:14]current date 1715723775 [21:56:14]FM_GetShiftState [21:56:14]SAM_PROTO_GetShiftState [21:56:14]wFMCommunicate request_size=4 [21:56:14]MH_SAM_APDU [21:56:14]CAPDU: 80 13 01 00 [21:56:14]Write to MH i2c: E2 08 00 D3 13 80 13 01 00 00 00 00 00 63 [21:56:14]Write i2c OK [21:56:14]MH_I2C_Read... [21:56:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:14]Read from MH i2c: E2 [21:56:14]MH_I2C_Read... [21:56:14]Read from MH i2c: E2 0E 00 [21:56:14]MH_I2C_Read... [21:56:14]Read from MH i2c: E2 0E 00 D3 13 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 2B [21:56:14]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [21:56:14]wFMCommunicate OK [21:56:14]SAM_PROTO_GetShiftState done [21:56:14]FM_GetShiftState done [21:56:14]opened in 1715646054 [21:56:14]opened+sec_in_day 1715732454 [21:56:14]quantity*price = 300015 [21:56:14]sum+1 = 300016 [21:56:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.60 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 176 14.05.2024 21:56 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67169 ФПД: 39208018019695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T215615&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67169&fm=39208018019695&tin=02508201610067®Number=0000000000091845&sum=300000 [21:56:15]StoreToDocumentArchive [21:56:15]shift 355 fd 67169 [21:56:15]save to /storage/0355/doc_00067169 [21:56:15]save last doc name /storage/0355/doc_00067169 to /storage/kkm_last_doc_name [21:56:15]save OK [21:56:15]Clear old archive folders... [21:56:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:56:15]tlvbuf is 00380D30 [21:56:15]SAM_PROTO_ClearQueue [21:56:15]wFMCommunicate request_size=4 [21:56:15]MH_SAM_APDU [21:56:15]CAPDU: 80 09 00 00 [21:56:15]Write to MH i2c: E2 08 00 E0 13 80 09 00 00 00 00 00 00 65 [21:56:15]Write i2c OK [21:56:15]MH_I2C_Read... [21:56:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:56:15]Read from MH i2c: E2 [21:56:15]MH_I2C_Read... [21:56:15]Read from MH i2c: E2 03 00 [21:56:15]MH_I2C_Read... [21:56:15]Read from MH i2c: E2 03 00 E0 13 00 90 00 67 [21:56:15]RAPDU: 90 00 [21:56:15]wFMCommunicate OK [21:56:15]SAM_PROTO_ClearQueue done [21:56:15]KKMCreateOFDPacket [21:56:15]OFDProtocolAddRootSTLVToBuf [21:56:15]FM_MakeSignedData [21:56:15]FM_MakeSignedData [21:56:15]SAM_PROTO_SignData [21:56:15]wFMCommunicate request_size=4 [21:56:15]MH_SAM_APDU [21:56:15]CAPDU: 80 0D 01 02 [21:56:15]Write to MH i2c: E2 08 00 E1 13 80 0D 01 02 00 00 00 00 6D [21:56:15]Write i2c OK [21:56:15]MH_I2C_Read... [21:56:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:56:15]Read from MH i2c: E2 [21:56:15]MH_I2C_Read... [21:56:15]Read from MH i2c: E2 03 00 [21:56:15]MH_I2C_Read... [21:56:15]Read from MH i2c: E2 03 00 E1 13 00 90 00 68 [21:56:15]RAPDU: 90 00 [21:56:15]wFMCommunicate OK [21:56:15]wFMCommunicate request_size=255 [21:56:15]MH_SAM_APDU [21:56: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 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 FF DD 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 [21:56:15]Write to MH i2c: E2 02 01 E2 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 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 FF DD 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 00 00 90 [21:56:15]Write i2c OK [21:56:15]MH_I2C_Read... [21:56:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:16]Read from MH i2c: E2 [21:56:16]MH_I2C_Read... [21:56:16]Read from MH i2c: E2 03 00 [21:56:16]MH_I2C_Read... [21:56:16]Read from MH i2c: E2 03 00 E2 13 00 90 00 69 [21:56:16]RAPDU: 90 00 [21:56:16]wFMCommunicate OK [21:56:16]wFMCommunicate request_size=11 [21:56:16]MH_SAM_APDU [21:56:16]CAPDU: 80 0D 02 02 06 23 A8 D3 FC 85 6F [21:56:16]Write to MH i2c: E2 0E 00 E3 13 80 0D 02 02 06 00 23 A8 D3 FC 85 6F 00 00 0A [21:56:16]Write i2c OK [21:56:16]MH_I2C_Read... [21:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:16]Read from MH i2c: E2 [21:56:16]MH_I2C_Read... [21:56:16]Read from MH i2c: E2 03 00 [21:56:16]MH_I2C_Read... [21:56:16]Read from MH i2c: E2 03 00 E3 13 00 90 00 6A [21:56:16]RAPDU: 90 00 [21:56:16]wFMCommunicate OK [21:56:16]wFMCommunicate request_size=4 [21:56:16]MH_SAM_APDU [21:56:16]CAPDU: 80 0D 03 02 [21:56:16]Write to MH i2c: E2 08 00 E4 13 80 0D 03 02 00 00 00 00 72 [21:56:16]Write i2c OK [21:56:16]MH_I2C_Read... [21:56:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:56:16]Read from MH i2c: E2 [21:56:16]MH_I2C_Read... [21:56:16]Read from MH i2c: E2 0B 00 [21:56:16]MH_I2C_Read... [21:56:16]Read from MH i2c: E2 0B 00 E4 13 00 C4 A1 02 51 40 6E 05 85 90 00 63 [21:56:16]RAPDU: C4 A1 02 51 40 6E 05 85 90 00 [21:56:16]wFMCommunicate OK [21:56:16]SAM_PROTO_SignData done [21:56:16]FM_MakeSignedData done [21:56:16]CreateOFDProtocolMessage [21:56:16]wFMCommunicate request_size=4 [21:56:16]MH_SAM_APDU [21:56:16]CAPDU: 80 11 00 00 [21:56:16]Write to MH i2c: E2 08 00 E5 13 80 11 00 00 00 00 00 00 72 [21:56:16]Write i2c OK [21:56:16]MH_I2C_Read... [21:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:16]Read from MH i2c: E2 [21:56:16]MH_I2C_Read... [21:56:16]Read from MH i2c: E2 17 00 [21:56:16]MH_I2C_Read... [21:56:16]Read from MH i2c: E2 17 00 E5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C8 [21:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:56:16]wFMCommunicate OK [21:56:16]CreateOFDProtocolMessage done [21:56:16]OFDSenderStorePacket 67169 [21:56:16]StoreOFDPacket docnum=67169 [21:56:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 72 AC 08 01 60 21 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 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 FF DD 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 23 A8 D3 FC 85 6F C4 A1 02 51 40 6E 05 85 [21:56:16]CheckFolder [21:56:16]dirname=/storage/ofd_packets [21:56:16]CheckFolder done [21:56:16]ProducePacketName [21:56:16]name=ofd_packets/00067169 [21:56:16]NVStorageSaveData ofd_packets/00067169 [21:56:16]File name is /storage/ofd_packets/00067169 [21:56:16]Write 302 bytes [21:56:16]NVStorageSaveData done [21:56:16]OFDSenderStorePacket done [21:56:16]KKMCreateOFDPacket done [21:56:16]NVStorageSaveData kkm_last_timestamp [21:56:16]File name is /storage/kkm_last_timestamp [21:56:16]Write 4 bytes [21:56:16]NVStorageSaveData done [21:56:16]ExternCall_PrintAddStr [21:56:16]wPrintStart [21:56:16]Write to MH i2c: 01 00 00 E6 13 F9 [21:56:16]Write i2c OK [21:56:16]MH_I2C_Read... [21:56:16]Read from MH i2c: 01 [21:56:16]MH_I2C_Read... [21:56:16]Read from MH i2c: 01 07 00 [21:56:16]MH_I2C_Read... [21:56:16]Read from MH i2c: 01 07 00 E6 13 00 00 00 00 00 FF 0F 0E [21:56:16]RasterBufferAndPrint [21:56:16]line Счет N : (1)507071 [21:56:16]line ИНН: 02508201610067 [21:56:16]line Контрольно-Кассовый Чек [21:56:16]line ПРОДАЖА [21:56:16]line ТРК (МРК, ГНК) : 42 [21:56:16]line Товар: 2710124130 [21:56:16]line Super-92-К-5 [21:56:16]line 44.250 * 67.80 [21:56:16]line = 3000.15 [21:56:16]line НДС 12% НСП 1% [21:56:16]line > о реализуемом товаре [21:56:16]line ОКРУГЛЕНИЕ: -0.15 [21:56:16]line ИТОГО: 3000.00 [21:56:16]line Внесено: 3000.00 [21:56:16]line СДАЧА: 0.00 [21:56:16]line НСП 1% : 26.55 [21:56:16]line НДС 12% : 318.60 [21:56:16]line Наличными: 3000.00 [21:56:16]line Безнал.: 0.00 [21:56:16]line Место: АЗС № 91 "Партнер Нефть" [21:56:16]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:56:16]line СНО: Общий режим [21:56:16]line Чек 176 14.05.2024 21:56 [21:56:16]line Смена: 355 ФФД: 1.0 [21:56:16]line ЗНМ: 0300000119 [21:56:16]line РНМ: 0000000000091845 [21:56:16]line Версия ККМ: 001 [21:56:16]line ФМ: 0000000000871829 [21:56:16]line ФД: 67169 [21:56:16]line ФПД: 39208018019695 [21:56:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T215615&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67169&fm=39208018019695&tin=02508201610067®Number=0000000000091845&sum=300000 [21:56:16]written 0, free lines is 4095 [21:56:16]OFD Sender: Processing packet 67169 [packets to send 35, broken 34] [21:56:16]ProducePacketName [21:56:16]name=ofd_packets/00067169 [21:56:16]OFD Sender: To server: pG, [21:56:16]CommunicateWithHost lk.salyk.kg:30040 [21:56:16]ConnectInit lk.salyk.kg [21:56:16]Connected sock=10 [21:56: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 72 AC 08 01 60 21 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 DA AC 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 EF 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 FF DD 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 23 A8 D3 FC 85 6F C4 A1 02 51 40 6E 05 85 [21:56: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 B9 14 47 00 34 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 61 06 01 00 F4 03 04 00 DE 85 43 66 B6 04 01 00 00 B2 E1 57 E4 3C DB B3 E7 [21:56:16]CommunicateWithHost err = 0 [21:56:16]CheckOFDResponse [21:56:16]1017 (14) - 77093643461234 [21:56:16]1041 (16) - 0000000000871829 [21:56:16]1040 (4) - 67169 [21:56:16]1012 (4) - 14.05.2024 15:40 [21:56:16]1206 (1) - 0 [21:56:16]OFD Sender: Remove packet 67169 [21:56:16]ProducePacketName [21:56:16]name=ofd_packets/00067169 [21:56:16]NVStorageDeleteData [21:56:16]Write to MH i2c: 01 00 00 10 14 24 [21:56:16]Write i2c OK [21:56:16]MH_I2C_Read... [21:56:16]Read from MH i2c: 01 [21:56:16]MH_I2C_Read... [21:56:16]Read from MH i2c: 01 07 00 [21:56:16]MH_I2C_Read... [21:56:16]Read from MH i2c: 01 07 00 10 14 00 00 00 00 00 CE 0C 05 [21:56:16]RasterBufferAndPrint [21:56:16]line [21:56:16]line [21:56:16]line [21:56:16]line [21:56:16]line [21:56:16]written 0, free lines is 3284 [21:56:16]MH_Cut [21:56:16]Write to MH i2c: D1 01 00 17 14 01 FD [21:56:16]Write i2c OK [21:56:16]MH_I2C_Read... [21:56:16]Read from MH i2c: D1 [21:56:16]MH_I2C_Read... [21:56:16]Read from MH i2c: D1 01 00 [21:56:16]MH_I2C_Read... [21:56:16]Read from MH i2c: D1 01 00 17 14 00 FC [21:56:16]Write to MH i2c: 01 00 00 18 14 2C [21:56:16]Write i2c OK [21:56:16]MH_I2C_Read... [21:56:17]OFD Sender: No OFD packet to send [21:56:17]*** Cut start [21:56:17]*** Purtial cut [21:56:17]*** CUTSNS_PIN = 0 [21:56:17]*** Stage 1: CUTSNS_PIN = 1 [21:56:19]Read from MH i2c: 01 [21:56:19]MH_I2C_Read... [21:56:19]*** Stop cut motor [21:56:19]*** Cut end [21:56:19]Read from MH i2c: 01 07 00 [21:56:19]MH_I2C_Read... [21:56:19]Read from MH i2c: 01 07 00 18 14 00 00 00 00 00 FF 0F 41 [21:56:19]process_action close_receipt done [21:56:19]requested_data is exist [21:56:19]produce_requested_data [21:56:19]requested_item fm.sn is exist - process it [21:56:19]wFMCommunicate request_size=4 [21:56:19]MH_SAM_APDU [21:56:19]CAPDU: 80 11 00 00 [21:56:19]Write to MH i2c: E2 08 00 19 14 80 11 00 00 00 00 00 00 A7 [21:56:19]Write i2c OK [21:56:19]MH_I2C_Read... [21:56:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:19]Read from MH i2c: E2 [21:56:19]MH_I2C_Read... [21:56:19]Read from MH i2c: E2 17 00 [21:56:19]MH_I2C_Read... [21:56:19]Read from MH i2c: E2 17 00 19 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 FD [21:56:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:56:19]wFMCommunicate OK [21:56:19]requested_item fd.num is exist - process it [21:56:19]SAM_PROTO_GetFieldsCounters [21:56:19]wFMCommunicate request_size=4 [21:56:19]MH_SAM_APDU [21:56:19]CAPDU: 80 13 00 00 [21:56:19]Write to MH i2c: E2 08 00 1A 14 80 13 00 00 00 00 00 00 AA [21:56:19]Write i2c OK [21:56:19]MH_I2C_Read... [21:56:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:19]Read from MH i2c: E2 [21:56:19]MH_I2C_Read... [21:56:19]Read from MH i2c: E2 62 00 [21:56:19]MH_I2C_Read... [21:56:19]Read from MH i2c: E2 62 00 1A 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 61 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [21:56: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 61 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:56:19]wFMCommunicate OK [21:56:19]SAM_PROTO_GetFieldsCounters done [21:56:19]requested_item shift.num is exist - process it [21:56:19]requested_item shift.opened is exist - process it [21:56:19]req_shift_opened [21:56:19]FM_GetShiftState [21:56:19]SAM_PROTO_GetShiftState [21:56:19]wFMCommunicate request_size=4 [21:56:19]MH_SAM_APDU [21:56:19]CAPDU: 80 13 01 00 [21:56:19]Write to MH i2c: E2 08 00 1B 14 80 13 01 00 00 00 00 00 AC [21:56:19]Write i2c OK [21:56:19]MH_I2C_Read... [21:56:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:19]Read from MH i2c: E2 [21:56:19]MH_I2C_Read... [21:56:19]Read from MH i2c: E2 0E 00 [21:56:19]MH_I2C_Read... [21:56:19]Read from MH i2c: E2 0E 00 1B 14 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 74 [21:56:20]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [21:56:20]wFMCommunicate OK [21:56:20]SAM_PROTO_GetShiftState done [21:56:20]FM_GetShiftState done [21:56:20]req_shift_opened done [21:56:20]requested_item shift.open_date is exist - process it [21:56:20]req_shift_open_date [21:56:20]req_shift_open_date done [21:56:20]produce_requested_data done [21:56:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67169,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [21:56:20]process_action_free close_receipt [21:56:20]json_value_free [21:56:20]json_value_free done [21:56:20]process_json_proto returns [21:56:20]Send response to host [21:56:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67169,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [21:56:20]free response buf [21:56:20]execute_script done [21:56:20]execute_script returns [21:56:20]free content buf [21:56:20]Sock 7.Close socket [21:56:20]Sock 7.Thread stoped [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:14]accept exits with 9 [21:57:14]New connection [21:57:14]New thread 3066731876 created [21:57:14]Thread 3066588516 joined [21:57:14]Waiting for new connection... [21:57:14] Sock 9.Parse request [21:57:14]Sock 9.Check first char [21:57:14]Sock 9.First char is OK [21:57:14]request: POST /json_proto HTTP/1.0 [21:57:14]Method: POST [21:57:14]URL: /json_proto [21:57:14]Method is POST - this is cgi request [21:57:14]url: /json_proto [21:57:14]query_string will be loaded in cgi processing [21:57:14]execute_cgi json_proto POST (null) [21:57:14]execute_cgi path=json_proto method=POST [21:57:14]POST find Content-Length [21:57:14]Host: 172.17.41.195:8080 [21:57:14]Content-Length: 674 [21:57:14]Content-Type: application/json [21:57:14] [21:57:14]POST finish read [21:57:14]Found Content-Length = 674 [21:57:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507072", "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" ] } } [21:57:14]execute_script... [21:57: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)507072", "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" ] } } [21:57:14]POST & json_proto [21:57:14]process_json_proto [21:57:14]json parsed OK: [21:57:14]protocol is kg_v1.0 [21:57:14]action value=close_receipt [21:57:14]process_action close_receipt [21:57:14]cmd_close_receipt [21:57:14]MH_GetDate [21:57:14]Write to MH i2c: F0 00 00 1C 14 1F [21:57:14]Write i2c OK [21:57:14]MH_I2C_Read... [21:57:14]Read from MH i2c: F0 [21:57:14]MH_I2C_Read... [21:57:14]Read from MH i2c: F0 09 00 [21:57:14]MH_I2C_Read... [21:57:14]Read from MH i2c: F0 09 00 1C 14 00 3B DE 43 66 FC 21 6F 64 DA [21:57:14]GetLastDocTimeStamp 1715723775 [21:57:14]current date 1715723835 [21:57:14]FM_GetShiftState [21:57:14]SAM_PROTO_GetShiftState [21:57:14]wFMCommunicate request_size=4 [21:57:14]MH_SAM_APDU [21:57:14]CAPDU: 80 13 01 00 [21:57:14]Write to MH i2c: E2 08 00 1D 14 80 13 01 00 00 00 00 00 AE [21:57:14]Write i2c OK [21:57:14]MH_I2C_Read... [21:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:14]Read from MH i2c: E2 [21:57:14]MH_I2C_Read... [21:57:14]Read from MH i2c: E2 0E 00 [21:57:14]MH_I2C_Read... [21:57:14]Read from MH i2c: E2 0E 00 1D 14 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 76 [21:57:14]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [21:57:14]wFMCommunicate OK [21:57:14]SAM_PROTO_GetShiftState done [21:57:14]FM_GetShiftState done [21:57:14]opened in 1715646054 [21:57:14]opened+sec_in_day 1715732454 [21:57:14]quantity*price = 50049 [21:57:14]sum+1 = 50050 [21:57:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 177 14.05.2024 21:57 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67170 ФПД: 231719607378533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T215715&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67170&fm=231719607378533&tin=02508201610067®Number=0000000000091845&sum=50000 [21:57:15]StoreToDocumentArchive [21:57:15]shift 355 fd 67170 [21:57:15]save to /storage/0355/doc_00067170 [21:57:15]save last doc name /storage/0355/doc_00067170 to /storage/kkm_last_doc_name [21:57:15]save OK [21:57:15]Clear old archive folders... [21:57:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:57:15]tlvbuf is B6F1FCD0 [21:57:15]SAM_PROTO_ClearQueue [21:57:15]wFMCommunicate request_size=4 [21:57:15]MH_SAM_APDU [21:57:15]CAPDU: 80 09 00 00 [21:57:15]Write to MH i2c: E2 08 00 2A 14 80 09 00 00 00 00 00 00 B0 [21:57:15]Write i2c OK [21:57:15]MH_I2C_Read... [21:57:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:15]Read from MH i2c: E2 [21:57:15]MH_I2C_Read... [21:57:15]Read from MH i2c: E2 03 00 [21:57:15]MH_I2C_Read... [21:57:15]Read from MH i2c: E2 03 00 2A 14 00 90 00 B2 [21:57:15]RAPDU: 90 00 [21:57:15]wFMCommunicate OK [21:57:15]SAM_PROTO_ClearQueue done [21:57:15]KKMCreateOFDPacket [21:57:15]OFDProtocolAddRootSTLVToBuf [21:57:15]FM_MakeSignedData [21:57:15]FM_MakeSignedData [21:57:15]SAM_PROTO_SignData [21:57:15]wFMCommunicate request_size=4 [21:57:15]MH_SAM_APDU [21:57:15]CAPDU: 80 0D 01 02 [21:57:15]Write to MH i2c: E2 08 00 2B 14 80 0D 01 02 00 00 00 00 B8 [21:57:15]Write i2c OK [21:57:15]MH_I2C_Read... [21:57:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:15]Read from MH i2c: E2 [21:57:15]MH_I2C_Read... [21:57:15]Read from MH i2c: E2 03 00 [21:57:15]MH_I2C_Read... [21:57:15]Read from MH i2c: E2 03 00 2B 14 00 90 00 B3 [21:57:15]RAPDU: 90 00 [21:57:15]wFMCommunicate OK [21:57:15]wFMCommunicate request_size=255 [21:57:15]MH_SAM_APDU [21:57:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 3B DE 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 D2 BF 6C E2 [21:57:15]Write to MH i2c: E2 02 01 2C 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 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 B1 00 00 00 F4 03 04 00 3B DE 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 D2 BF 6C E2 00 00 C7 [21:57:15]Write i2c OK [21:57:15]MH_I2C_Read... [21:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:15]Read from MH i2c: E2 [21:57:15]MH_I2C_Read... [21:57:15]Read from MH i2c: E2 03 00 [21:57:15]MH_I2C_Read... [21:57:15]Read from MH i2c: E2 03 00 2C 14 00 90 00 B4 [21:57:15]RAPDU: 90 00 [21:57:15]wFMCommunicate OK [21:57:15]wFMCommunicate request_size=7 [21:57:15]MH_SAM_APDU [21:57:15]CAPDU: 80 0D 02 02 02 A2 65 [21:57:15]Write to MH i2c: E2 0A 00 2D 14 80 0D 02 02 02 00 A2 65 00 00 C6 [21:57:15]Write i2c OK [21:57:15]MH_I2C_Read... [21:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:15]Read from MH i2c: E2 [21:57:15]MH_I2C_Read... [21:57:15]Read from MH i2c: E2 03 00 [21:57:15]MH_I2C_Read... [21:57:15]Read from MH i2c: E2 03 00 2D 14 00 90 00 B5 [21:57:15]RAPDU: 90 00 [21:57:15]wFMCommunicate OK [21:57:15]wFMCommunicate request_size=4 [21:57:15]MH_SAM_APDU [21:57:15]CAPDU: 80 0D 03 02 [21:57:15]Write to MH i2c: E2 08 00 2E 14 80 0D 03 02 00 00 00 00 BD [21:57:15]Write i2c OK [21:57:15]MH_I2C_Read... [21:57:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:15]Read from MH i2c: E2 [21:57:15]MH_I2C_Read... [21:57:15]Read from MH i2c: E2 0B 00 [21:57:15]MH_I2C_Read... [21:57:15]Read from MH i2c: E2 0B 00 2E 14 00 7A 6F 62 1F 0E 76 CD 2E 90 00 A7 [21:57:15]RAPDU: 7A 6F 62 1F 0E 76 CD 2E 90 00 [21:57:15]wFMCommunicate OK [21:57:15]SAM_PROTO_SignData done [21:57:15]FM_MakeSignedData done [21:57:15]CreateOFDProtocolMessage [21:57:15]wFMCommunicate request_size=4 [21:57:15]MH_SAM_APDU [21:57:15]CAPDU: 80 11 00 00 [21:57:15]Write to MH i2c: E2 08 00 2F 14 80 11 00 00 00 00 00 00 BD [21:57:15]Write i2c OK [21:57:15]MH_I2C_Read... [21:57:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:15]Read from MH i2c: E2 [21:57:15]MH_I2C_Read... [21:57:15]Read from MH i2c: E2 17 00 [21:57:15]MH_I2C_Read... [21:57:15]Read from MH i2c: E2 17 00 2F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 13 [21: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 [21:57:15]wFMCommunicate OK [21:57:15]CreateOFDProtocolMessage done [21:57:15]OFDSenderStorePacket 67170 [21:57:15]StoreOFDPacket docnum=67170 [21: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 0C 01 00 00 EB 10 04 01 8D 33 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 B1 00 00 00 F4 03 04 00 3B DE 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 D2 BF 6C E2 A2 65 7A 6F 62 1F 0E 76 CD 2E [21:57:15]CheckFolder [21:57:15]dirname=/storage/ofd_packets [21:57:15]CheckFolder done [21:57:15]ProducePacketName [21:57:15]name=ofd_packets/00067170 [21:57:15]NVStorageSaveData ofd_packets/00067170 [21:57:15]File name is /storage/ofd_packets/00067170 [21:57:15]Write 298 bytes [21:57:15]NVStorageSaveData done [21:57:15]OFDSenderStorePacket done [21:57:15]KKMCreateOFDPacket done [21:57:15]NVStorageSaveData kkm_last_timestamp [21:57:15]File name is /storage/kkm_last_timestamp [21:57:15]Write 4 bytes [21:57:15]NVStorageSaveData done [21:57:15]ExternCall_PrintAddStr [21:57:15]wPrintStart [21:57:15]Write to MH i2c: 01 00 00 30 14 44 [21:57:15]Write i2c OK [21:57:15]MH_I2C_Read... [21:57:15]Read from MH i2c: 01 [21:57:15]MH_I2C_Read... [21:57:15]Read from MH i2c: 01 07 00 [21:57:15]MH_I2C_Read... [21:57:15]Read from MH i2c: 01 07 00 30 14 00 00 00 00 00 FF 0F 59 [21:57:15]RasterBufferAndPrint [21:57:15]line Счет N : (1)507072 [21:57:15]line ИНН: 02508201610067 [21:57:15]line Контрольно-Кассовый Чек [21:57:15]line ПРОДАЖА [21:57:15]line ТРК (МРК, ГНК) : 21 [21:57:15]line Товар: 2710194210 [21:57:15]line ДТ-К-5 [21:57:15]line 6.700 * 74.70 [21:57:15]line = 500.49 [21:57:15]line НДС 12% НСП 1% [21:57:15]line > о реализуемом товаре [21:57:15]line ОКРУГЛЕНИЕ: -0.49 [21:57:15]line ИТОГО: 500.00 [21:57:15]line Внесено: 500.00 [21:57:15]line СДАЧА: 0.00 [21:57:15]line НСП 1% : 4.43 [21:57:15]line НДС 12% : 53.15 [21:57:15]line Наличными: 500.00 [21:57:15]line Безнал.: 0.00 [21:57:15]line Место: АЗС № 91 "Партнер Нефть" [21:57:15]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [21:57:15]line СНО: Общий режим [21:57:15]line Чек 177 14.05.2024 21:57 [21:57:15]line Смена: 355 ФФД: 1.0 [21:57:15]line ЗНМ: 0300000119 [21:57:15]line РНМ: 0000000000091845 [21:57:16]line Версия ККМ: 001 [21:57:16]line ФМ: 0000000000871829 [21:57:16]line ФД: 67170 [21:57:16]line ФПД: 231719607378533 [21:57:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T215715&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67170&fm=231719607378533&tin=02508201610067®Number=0000000000091845&sum=50000 [21:57:16]OFD Sender: Processing packet 67170 [packets to send 35, broken 34] [21:57:16]ProducePacketName [21:57:16]name=ofd_packets/00067170 [21:57:16]OFD Sender: To server: pG, [21:57:16]CommunicateWithHost lk.salyk.kg:30040 [21:57:16]ConnectInit lk.salyk.kg [21:57:16]written 0, free lines is 4095 [21:57:16]Connected sock=10 [21: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 0C 01 00 00 EB 10 04 01 8D 33 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 B1 00 00 00 F4 03 04 00 3B DE 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 D2 BF 6C E2 A2 65 7A 6F 62 1F 0E 76 CD 2E [21: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 DB 9D 47 00 69 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 06 01 00 F4 03 04 00 1A 86 43 66 B6 04 01 00 00 51 5F 59 4D 5A 10 77 BC [21:57:16]CommunicateWithHost err = 0 [21:57:16]CheckOFDResponse [21:57:16]1017 (14) - 77093643461234 [21:57:16]1041 (16) - 0000000000871829 [21:57:16]1040 (4) - 67170 [21:57:16]1012 (4) - 14.05.2024 15:41 [21:57:16]1206 (1) - 0 [21:57:16]OFD Sender: Remove packet 67170 [21:57:16]ProducePacketName [21:57:16]name=ofd_packets/00067170 [21:57:16]NVStorageDeleteData [21:57:16]Write to MH i2c: 01 00 00 5A 14 6E [21:57:16]Write i2c OK [21:57:16]MH_I2C_Read... [21:57:16]Read from MH i2c: 01 [21:57:16]MH_I2C_Read... [21:57:16]Read from MH i2c: 01 07 00 [21:57:16]MH_I2C_Read... [21:57:16]Read from MH i2c: 01 07 00 5A 14 00 00 00 00 00 D1 0C 52 [21:57:16]RasterBufferAndPrint [21:57:16]line [21:57:16]line [21:57:16]line [21:57:16]line [21:57:16]line [21:57:16]written 0, free lines is 3287 [21:57:16]MH_Cut [21:57:16]Write to MH i2c: D1 01 00 61 14 01 47 [21:57:16]Write i2c OK [21:57:16]MH_I2C_Read... [21:57:16]Read from MH i2c: D1 [21:57:16]MH_I2C_Read... [21:57:16]Read from MH i2c: D1 01 00 [21:57:16]MH_I2C_Read... [21:57:16]Read from MH i2c: D1 01 00 61 14 00 46 [21:57:16]Write to MH i2c: 01 00 00 62 14 76 [21:57:16]Write i2c OK [21:57:16]MH_I2C_Read... [21:57:17]OFD Sender: No OFD packet to send [21:57:17]*** Cut start [21:57:17]*** Purtial cut [21:57:17]*** Stage 1: CUTSNS_PIN = 1 [21:57:17]Read from MH i2c: 01 [21:57:17]MH_I2C_Read... [21:57:17]*** Stop cut motor [21:57:17]*** Cut end [21:57:17]Read from MH i2c: 01 07 00 [21:57:17]MH_I2C_Read... [21:57:17]Read from MH i2c: 01 07 00 62 14 00 00 00 00 00 FF 0F 8B [21:57:17]process_action close_receipt done [21:57:17]requested_data is exist [21:57:17]produce_requested_data [21:57:17]requested_item fm.sn is exist - process it [21:57:17]wFMCommunicate request_size=4 [21:57:17]MH_SAM_APDU [21:57:17]CAPDU: 80 11 00 00 [21:57:17]Write to MH i2c: E2 08 00 63 14 80 11 00 00 00 00 00 00 F1 [21:57:17]Write i2c OK [21:57:17]MH_I2C_Read... [21:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:17]Read from MH i2c: E2 [21:57:17]MH_I2C_Read... [21:57:17]Read from MH i2c: E2 17 00 [21:57:17]MH_I2C_Read... [21:57:17]Read from MH i2c: E2 17 00 63 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 47 [21:57:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [21:57:17]wFMCommunicate OK [21:57:17]requested_item fd.num is exist - process it [21:57:17]SAM_PROTO_GetFieldsCounters [21:57:17]wFMCommunicate request_size=4 [21:57:17]MH_SAM_APDU [21:57:17]CAPDU: 80 13 00 00 [21:57:17]Write to MH i2c: E2 08 00 64 14 80 13 00 00 00 00 00 00 F4 [21:57:17]Write i2c OK [21:57:17]MH_I2C_Read... [21:57:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:18]Read from MH i2c: E2 [21:57:18]MH_I2C_Read... [21:57:18]Read from MH i2c: E2 62 00 [21:57:18]MH_I2C_Read... [21:57:18]Read from MH i2c: E2 62 00 64 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 62 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [21:57: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 62 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:57:18]wFMCommunicate OK [21:57:18]SAM_PROTO_GetFieldsCounters done [21:57:18]requested_item shift.num is exist - process it [21:57:18]requested_item shift.opened is exist - process it [21:57:18]req_shift_opened [21:57:18]FM_GetShiftState [21:57:18]SAM_PROTO_GetShiftState [21:57:18]wFMCommunicate request_size=4 [21:57:18]MH_SAM_APDU [21:57:18]CAPDU: 80 13 01 00 [21:57:18]Write to MH i2c: E2 08 00 65 14 80 13 01 00 00 00 00 00 F6 [21:57:18]Write i2c OK [21:57:18]MH_I2C_Read... [21:57:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:18]Read from MH i2c: E2 [21:57:18]MH_I2C_Read... [21:57:18]Read from MH i2c: E2 0E 00 [21:57:18]MH_I2C_Read... [21:57:18]Read from MH i2c: E2 0E 00 65 14 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 BE [21:57:18]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [21:57:18]wFMCommunicate OK [21:57:18]SAM_PROTO_GetShiftState done [21:57:18]FM_GetShiftState done [21:57:18]req_shift_opened done [21:57:18]requested_item shift.open_date is exist - process it [21:57:18]req_shift_open_date [21:57:18]req_shift_open_date done [21:57:18]produce_requested_data done [21:57:18]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67170,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [21:57:18]process_action_free close_receipt [21:57:18]json_value_free [21:57:18]json_value_free done [21:57:18]process_json_proto returns [21:57:18]Send response to host [21:57:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67170,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [21:57:18]free response buf [21:57:18]execute_script done [21:57:18]execute_script returns [21:57:18]free content buf [21:57:18]Sock 9.Close socket [21:57:18]Sock 9.Thread stoped [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:17]OFD Sender: No OFD packet to send [21:59:22]OFD Sender: No OFD packet to send [21:59:27]OFD Sender: No OFD packet to send [21:59:32]OFD Sender: No OFD packet to send [21:59:37]OFD Sender: No OFD packet to send [21:59:42]OFD Sender: No OFD packet to send [21:59:47]OFD Sender: No OFD packet to send [21:59:52]OFD Sender: No OFD packet to send [21:59:57]OFD Sender: No OFD packet to send [22:00:02]OFD Sender: No OFD packet to send [22:00:07]OFD Sender: No OFD packet to send [22:00:12]OFD Sender: No OFD packet to send [22:00:17]OFD Sender: No OFD packet to send [22:00:22]OFD Sender: No OFD packet to send [22:00:27]OFD Sender: No OFD packet to send [22:00:32]OFD Sender: No OFD packet to send [22:00:37]OFD Sender: No OFD packet to send [22:00:42]OFD Sender: No OFD packet to send [22:00:47]OFD Sender: No OFD packet to send [22:00:52]OFD Sender: No OFD packet to send [22:00:57]OFD Sender: No OFD packet to send [22:01:02]OFD Sender: No OFD packet to send [22:01:07]OFD Sender: No OFD packet to send [22:01:12]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:52]OFD Sender: No OFD packet to send [22:01:57]OFD Sender: No OFD packet to send [22:02:02]OFD Sender: No OFD packet to send [22:02:07]OFD Sender: No OFD packet to send [22:02:12]OFD Sender: No OFD packet to send [22:02:17]OFD Sender: No OFD packet to send [22:02:22]OFD Sender: No OFD packet to send [22:02:27]OFD Sender: No OFD packet to send [22:02:32]OFD Sender: No OFD packet to send [22:02:37]OFD Sender: No OFD packet to send [22:02:42]OFD Sender: No OFD packet to send [22:02:47]OFD Sender: No OFD packet to send [22:02:52]OFD Sender: No OFD packet to send [22:02:57]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:32]OFD Sender: No OFD packet to send [22:03:37]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:47]OFD Sender: No OFD packet to send [22:03:52]OFD Sender: No OFD packet to send [22:03:57]OFD Sender: No OFD packet to send [22:03:59]accept exits with 7 [22:03:59]New connection [22:03:59]New thread 3066588516 created [22:03:59]Thread 3066731876 joined [22:03:59]Waiting for new connection... [22:03:59] Sock 7.Parse request [22:03:59]Sock 7.Check first char [22:03:59]Sock 7.First char is OK [22:03:59]request: POST /json_proto HTTP/1.0 [22:03:59]Method: POST [22:03:59]URL: /json_proto [22:03:59]Method is POST - this is cgi request [22:03:59]url: /json_proto [22:03:59]query_string will be loaded in cgi processing [22:03:59]execute_cgi json_proto POST (null) [22:03:59]execute_cgi path=json_proto method=POST [22:03:59]POST find Content-Length [22:03:59]Host: 172.17.41.195:8080 [22:03:59]Content-Length: 1141 [22:03:59]Content-Type: application/json [22:03:59] [22:03:59]POST finish read [22:03:59]Found Content-Length = 1141 [22:03:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507073\u000A14.05.2024 21:46\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 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\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" ] } } [22:03:59]execute_script... [22:03:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0434\u0438\u0448\u043E\u0432 \u0418.\u000A\u0421\u0447\u0435\u0442 N : (1)507073\u000A14.05.2024 21:46\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 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\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" ] } } [22:03:59]POST & json_proto [22:03:59]process_json_proto [22:03:59]json parsed OK: [22:03:59]protocol is kg_v1.0 [22:03:59]action value=print_text [22:03:59]process_action print_text [22:03:59]cmd_print_text [22:03:59]ExternCall_PrintAddStr [22:03:59]wPrintStart [22:03:59]Write to MH i2c: 01 00 00 66 14 7A [22:03:59]Write i2c OK [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: 01 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: 01 07 00 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: 01 07 00 66 14 00 00 00 00 00 FF 0F 8F [22:03:59]RasterBufferAndPrint [22:03:59]line *****ТОВАРНЫЙ ЧЕК***** [22:03:59]line АЗС-91 [22:03:59]line Партнер нефть [22:03:59]line 02508201610067 [22:03:59]line Кассир : Адишов И. [22:03:59]line Счет N : (1)507073 [22:03:59]line 14.05.2024 21:46 [22:03:59]line ПРОДАЖА [22:03:59]line ТРК (МРК, ГНК): 31 [22:03:59]line Вид ГСМ : 2710194210 [22:03:59]line ДТ-К-5 [22:03:59]line 70.000 x 74.70 [22:03:59]line ИТОГ: 5229.00 [22:03:59]line Тип оплаты: Талоны: ТК ГПНА Online [22:03:59]line 30093696 [22:03:59]line ______________________ [22:03:59]line (подпись) [22:03:59]written 0, free lines is 4095 [22:03:59]Write to MH i2c: 01 00 00 7A 14 8E [22:03:59]Write i2c OK [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: 01 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: 01 07 00 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: 01 07 00 7A 14 00 00 00 00 00 0E 0E B1 [22:03:59]RasterBufferAndPrint [22:03:59]line [22:03:59]line [22:03:59]line [22:03:59]line [22:03:59]line [22:03:59]written 0, free lines is 3600 [22:03:59]MH_Cut [22:03:59]Write to MH i2c: D1 01 00 81 14 01 67 [22:03:59]Write i2c OK [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: D1 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: D1 01 00 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: D1 01 00 81 14 00 66 [22:03:59]Write to MH i2c: 01 00 00 82 14 96 [22:03:59]Write i2c OK [22:03:59]MH_I2C_Read... [22:03:59]*** Cut start [22:03:59]*** Purtial cut [22:03:59]*** CUTSNS_PIN = 0 [22:04:00]*** Stage 1: CUTSNS_PIN = 1 [22:04:01]Read from MH i2c: 01 [22:04:01]MH_I2C_Read... [22:04:01]*** Stop cut motor [22:04:01]*** Cut end [22:04:01]Read from MH i2c: 01 07 00 [22:04:01]MH_I2C_Read... [22:04:01]Read from MH i2c: 01 07 00 82 14 00 00 00 00 00 FF 0F AB [22:04:01]process_action print_text done [22:04:01]requested_data is exist [22:04:01]produce_requested_data [22:04:01]requested_item fm.sn is exist - process it [22:04:01]wFMCommunicate request_size=4 [22:04:01]MH_SAM_APDU [22:04:01]CAPDU: 80 11 00 00 [22:04:01]Write to MH i2c: E2 08 00 83 14 80 11 00 00 00 00 00 00 11 [22:04:01]Write i2c OK [22:04:01]MH_I2C_Read... [22:04:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:01]Read from MH i2c: E2 [22:04:01]MH_I2C_Read... [22:04:01]Read from MH i2c: E2 17 00 [22:04:01]MH_I2C_Read... [22:04:01]Read from MH i2c: E2 17 00 83 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 67 [22: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 [22:04:01]wFMCommunicate OK [22:04:01]requested_item fd.num is exist - process it [22:04:01]SAM_PROTO_GetFieldsCounters [22:04:01]wFMCommunicate request_size=4 [22:04:01]MH_SAM_APDU [22:04:01]CAPDU: 80 13 00 00 [22:04:01]Write to MH i2c: E2 08 00 84 14 80 13 00 00 00 00 00 00 14 [22:04:01]Write i2c OK [22:04:01]MH_I2C_Read... [22:04:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:02]Read from MH i2c: E2 [22:04:02]MH_I2C_Read... [22:04:02]Read from MH i2c: E2 62 00 [22:04:02]MH_I2C_Read... [22:04:02]Read from MH i2c: E2 62 00 84 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 62 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [22:04: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 62 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:04:02]wFMCommunicate OK [22:04:02]SAM_PROTO_GetFieldsCounters done [22:04:02]requested_item shift.num is exist - process it [22:04:02]requested_item shift.opened is exist - process it [22:04:02]req_shift_opened [22:04:02]FM_GetShiftState [22:04:02]SAM_PROTO_GetShiftState [22:04:02]wFMCommunicate request_size=4 [22:04:02]MH_SAM_APDU [22:04:02]CAPDU: 80 13 01 00 [22:04:02]Write to MH i2c: E2 08 00 85 14 80 13 01 00 00 00 00 00 16 [22:04:02]Write i2c OK [22:04:02]MH_I2C_Read... [22:04:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:02]Read from MH i2c: E2 [22:04:02]MH_I2C_Read... [22:04:02]Read from MH i2c: E2 0E 00 [22:04:02]MH_I2C_Read... [22:04:02]Read from MH i2c: E2 0E 00 85 14 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 DE [22:04:02]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [22:04:02]wFMCommunicate OK [22:04:02]SAM_PROTO_GetShiftState done [22:04:02]FM_GetShiftState done [22:04:02]req_shift_opened done [22:04:02]requested_item shift.open_date is exist - process it [22:04:02]req_shift_open_date [22:04:02]req_shift_open_date done [22:04:02]produce_requested_data done [22:04:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67170,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [22:04:02]process_action_free print_text [22:04:02]json_value_free [22:04:02]json_value_free done [22:04:02]process_json_proto returns [22:04:02]Send response to host [22:04:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67170,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [22:04:02]free response buf [22:04:02]execute_script done [22:04:02]execute_script returns [22:04:02]free content buf [22:04:02]Sock 7.Close socket [22:04:02]Sock 7.Thread stoped [22:04:02]OFD Sender: No OFD packet to send [22:04:07]OFD Sender: No OFD packet to send [22:04:12]OFD Sender: No OFD packet to send [22:04:17]OFD Sender: No OFD packet to send [22:04:22]OFD Sender: No OFD packet to send [22:04:27]OFD Sender: No OFD packet to send [22:04:32]OFD Sender: No OFD packet to send [22:04:37]OFD Sender: No OFD packet to send [22:04:42]OFD Sender: No OFD packet to send [22:04:47]OFD Sender: No OFD packet to send [22:04:52]OFD Sender: No OFD packet to send [22:04:57]OFD Sender: No OFD packet to send [22:05:02]OFD Sender: No OFD packet to send [22:05:07]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]OFD Sender: No OFD packet to send [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:12]OFD Sender: No OFD packet to send [22:06:17]OFD Sender: No OFD packet to send [22:06:22]OFD Sender: No OFD packet to send [22:06:27]OFD Sender: No OFD packet to send [22:06:32]OFD Sender: No OFD packet to send [22:06:37]OFD Sender: No OFD packet to send [22:06:42]OFD Sender: No OFD packet to send [22:06:47]OFD Sender: No OFD packet to send [22:06:52]OFD Sender: No OFD packet to send [22:06:57]OFD Sender: No OFD packet to send [22:07:02]OFD Sender: No OFD packet to send [22:07:07]OFD Sender: No OFD packet to send [22:07:12]OFD Sender: No OFD packet to send [22:07:17]OFD Sender: No OFD packet to send [22:07:22]OFD Sender: No OFD packet to send [22:07:27]OFD Sender: No OFD packet to send [22:07:32]OFD Sender: No OFD packet to send [22:07:37]OFD Sender: No OFD packet to send [22:07:42]OFD Sender: No OFD packet to send [22:07:47]OFD Sender: No OFD packet to send [22:07:52]OFD Sender: No OFD packet to send [22:07:57]OFD Sender: No OFD packet to send [22:08:02]OFD Sender: No OFD packet to send [22:08:07]OFD Sender: No OFD packet to send [22:08:12]OFD Sender: No OFD packet to send [22:08:17]OFD Sender: No OFD packet to send [22:08:22]OFD Sender: No OFD packet to send [22:08:27]OFD Sender: No OFD packet to send [22:08:32]OFD Sender: No OFD packet to send [22:08:37]OFD Sender: No OFD packet to send [22:08:42]OFD Sender: No OFD packet to send [22:08:47]OFD Sender: No OFD packet to send [22:08:52]OFD Sender: No OFD packet to send [22:08:57]OFD Sender: No OFD packet to send [22:09:02]OFD Sender: No OFD packet to send [22:09:07]OFD Sender: No OFD packet to send [22:09:12]OFD Sender: No OFD packet to send [22:09:17]OFD Sender: No OFD packet to send [22:09:22]OFD Sender: No OFD packet to send [22:09:27]OFD Sender: No OFD packet to send [22:09:32]OFD Sender: No OFD packet to send [22:09:37]OFD Sender: No OFD packet to send [22:09:42]OFD Sender: No OFD packet to send [22:09:47]OFD Sender: No OFD packet to send [22:09:52]OFD Sender: No OFD packet to send [22:09:57]OFD Sender: No OFD packet to send [22:10:02]OFD Sender: No OFD packet to send [22:10:07]OFD Sender: No OFD packet to send [22:10:12]OFD Sender: No OFD packet to send [22:10:17]OFD Sender: No OFD packet to send [22:10:22]OFD Sender: No OFD packet to send [22:10:27]OFD Sender: No OFD packet to send [22:10:32]OFD Sender: No OFD packet to send [22:10:37]OFD Sender: No OFD packet to send [22:10:42]OFD Sender: No OFD packet to send [22:10:47]OFD Sender: No OFD packet to send [22:10:52]OFD Sender: No OFD packet to send [22:10:57]OFD Sender: No OFD packet to send [22:11:02]OFD Sender: No OFD packet to send [22:11:07]OFD Sender: No OFD packet to send [22:11:12]OFD Sender: No OFD packet to send [22:11:17]OFD Sender: No OFD packet to send [22:11:22]OFD Sender: No OFD packet to send [22:11:27]OFD Sender: No OFD packet to send [22:11:32]OFD Sender: No OFD packet to send [22:11:37]OFD Sender: No OFD packet to send [22:11:42]OFD Sender: No OFD packet to send [22:11:47]OFD Sender: No OFD packet to send [22:11:52]OFD Sender: No OFD packet to send [22:11:57]OFD Sender: No OFD packet to send [22:12:02]OFD Sender: No OFD packet to send [22:12:07]OFD Sender: No OFD packet to send [22:12:12]OFD Sender: No OFD packet to send [22:12:17]OFD Sender: No OFD packet to send [22:12:22]OFD Sender: No OFD packet to send [22:12:27]OFD Sender: No OFD packet to send [22:12:30]accept exits with 9 [22:12:30]New connection [22:12:30]New thread 3066731876 created [22:12:30]Thread 3066588516 joined [22:12:30]Waiting for new connection... [22:12:30] Sock 9.Parse request [22:12:30]Sock 9.Check first char [22:12:30]Sock 9.First char is OK [22:12:30]request: POST /json_proto HTTP/1.0 [22:12:30]Method: POST [22:12:30]URL: /json_proto [22:12:30]Method is POST - this is cgi request [22:12:30]url: /json_proto [22:12:30]query_string will be loaded in cgi processing [22:12:30]execute_cgi json_proto POST (null) [22:12:30]execute_cgi path=json_proto method=POST [22:12:30]POST find Content-Length [22:12:30]Host: 172.17.41.195:8080 [22:12:30]Content-Length: 1179 [22:12:30]Content-Type: application/json [22:12:30] [22:12:30]POST finish read [22:12:30]Found Content-Length = 1179 [22:12: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)507074\u000A14.05.2024 21:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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" ] } } [22:12:30]execute_script... [22:12: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)507074\u000A14.05.2024 21:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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" ] } } [22:12:30]POST & json_proto [22:12:30]process_json_proto [22:12:30]json parsed OK: [22:12:30]protocol is kg_v1.0 [22:12:30]action value=print_text [22:12:30]process_action print_text [22:12:30]cmd_print_text [22:12:30]ExternCall_PrintAddStr [22:12:30]wPrintStart [22:12:30]Write to MH i2c: 01 00 00 86 14 9A [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: 01 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: 01 07 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: 01 07 00 86 14 00 00 00 00 00 FF 0F AF [22:12:30]RasterBufferAndPrint [22:12:30]line *****ТОВАРНЫЙ ЧЕК***** [22:12:30]line АЗС-91 [22:12:30]line Партнер нефть [22:12:30]line 02508201610067 [22:12:30]line Кассир : Адишов И. [22:12:30]line Счет N : (1)507074 [22:12:30]line 14.05.2024 21:55 [22:12:30]line ПРОДАЖА [22:12:30]line ТРК (МРК, ГНК): 41 [22:12:30]line Вид ГСМ : 2710194210 [22:12:30]line ДТ-К-5 [22:12:30]line 13.390 x 74.70 [22:12:30]line ИТОГ: 1000.23 [22:12:30]line Тип оплаты: Талоны: Топливная Карта [22:12:30]line 02750 [22:12:30]line ______________________ [22:12:30]line (подпись) [22:12:30]written 0, free lines is 4095 [22:12:30]Write to MH i2c: 01 00 00 9A 14 AE [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: 01 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: 01 07 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: 01 07 00 9A 14 00 00 00 00 00 0D 0E D0 [22:12:30]RasterBufferAndPrint [22:12:30]line [22:12:30]line [22:12:30]line [22:12:30]line [22:12:30]line [22:12:30]written 0, free lines is 3599 [22:12:30]MH_Cut [22:12:30]Write to MH i2c: D1 01 00 A1 14 01 87 [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: D1 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: D1 01 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: D1 01 00 A1 14 00 86 [22:12:30]Write to MH i2c: 01 00 00 A2 14 B6 [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:31]*** Cut start [22:12:31]*** Purtial cut [22:12:31]*** Stage 1: CUTSNS_PIN = 1 [22:12:31]Read from MH i2c: 01 [22:12:31]MH_I2C_Read... [22:12:31]*** Stop cut motor [22:12:31]*** Cut end [22:12:31]Read from MH i2c: 01 07 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: 01 07 00 A2 14 00 00 00 00 00 FF 0F CB [22:12:31]process_action print_text done [22:12:31]requested_data is exist [22:12:31]produce_requested_data [22:12:31]requested_item fm.sn is exist - process it [22:12:31]wFMCommunicate request_size=4 [22:12:31]MH_SAM_APDU [22:12:31]CAPDU: 80 11 00 00 [22:12:31]Write to MH i2c: E2 08 00 A3 14 80 11 00 00 00 00 00 00 31 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:31]Read from MH i2c: E2 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 17 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 17 00 A3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 87 [22:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:12:31]wFMCommunicate OK [22:12:31]requested_item fd.num is exist - process it [22:12:31]SAM_PROTO_GetFieldsCounters [22:12:31]wFMCommunicate request_size=4 [22:12:31]MH_SAM_APDU [22:12:31]CAPDU: 80 13 00 00 [22:12:31]Write to MH i2c: E2 08 00 A4 14 80 13 00 00 00 00 00 00 34 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:31]Read from MH i2c: E2 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 62 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 62 00 A4 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 62 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [22:12: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 62 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:31]wFMCommunicate OK [22:12:31]SAM_PROTO_GetFieldsCounters done [22:12:31]requested_item shift.num is exist - process it [22:12:31]requested_item shift.opened is exist - process it [22:12:31]req_shift_opened [22:12:31]FM_GetShiftState [22:12:31]SAM_PROTO_GetShiftState [22:12:31]wFMCommunicate request_size=4 [22:12:31]MH_SAM_APDU [22:12:31]CAPDU: 80 13 01 00 [22:12:31]Write to MH i2c: E2 08 00 A5 14 80 13 01 00 00 00 00 00 36 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:31]Read from MH i2c: E2 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 0E 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 0E 00 A5 14 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 FE [22:12:31]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [22:12:31]wFMCommunicate OK [22:12:31]SAM_PROTO_GetShiftState done [22:12:31]FM_GetShiftState done [22:12:31]req_shift_opened done [22:12:31]requested_item shift.open_date is exist - process it [22:12:31]req_shift_open_date [22:12:31]req_shift_open_date done [22:12:31]produce_requested_data done [22:12:31]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67170,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [22:12:31]process_action_free print_text [22:12:31]json_value_free [22:12:31]json_value_free done [22:12:31]process_json_proto returns [22:12:31]Send response to host [22:12:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67170,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [22:12:31]free response buf [22:12:31]execute_script done [22:12:31]execute_script returns [22:12:31]free content buf [22:12:31]Sock 9.Close socket [22:12:31]Sock 9.Thread stoped [22:12:32]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:43]OFD Sender: No OFD packet to send [22:13:48]OFD Sender: No OFD packet to send [22:13:53]OFD Sender: No OFD packet to send [22:13:58]OFD Sender: No OFD packet to send [22:14:03]OFD Sender: No OFD packet to send [22:14:08]OFD Sender: No OFD packet to send [22:14:13]OFD Sender: No OFD packet to send [22:14:18]OFD Sender: No OFD packet to send [22:14:23]OFD Sender: No OFD packet to send [22:14:28]OFD Sender: No OFD packet to send [22:14:33]OFD Sender: No OFD packet to send [22:14:38]OFD Sender: No OFD packet to send [22:14:43]OFD Sender: No OFD packet to send [22:14:48]OFD Sender: No OFD packet to send [22:14:53]OFD Sender: No OFD packet to send [22:14:58]OFD Sender: No OFD packet to send [22:15:03]OFD Sender: No OFD packet to send [22:15:08]OFD Sender: No OFD packet to send [22:15:13]OFD Sender: No OFD packet to send [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:23]OFD Sender: No OFD packet to send [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:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:28:03]OFD Sender: No OFD packet to send [22:28:08]OFD Sender: No OFD packet to send [22:28:13]OFD Sender: No OFD packet to send [22:28:18]OFD Sender: No OFD packet to send [22:28:23]OFD Sender: No OFD packet to send [22:28:28]OFD Sender: No OFD packet to send [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]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:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [22:33:04]OFD Sender: No OFD packet to send [22:33:09]OFD Sender: No OFD packet to send [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:49]OFD Sender: No OFD packet to send [22:33:51]accept exits with 7 [22:33:51]New connection [22:33:51]New thread 3066588516 created [22:33:51]Thread 3066731876 joined [22:33:51]Waiting for new connection... [22:33:51] Sock 7.Parse request [22:33:51]Sock 7.Check first char [22:33:51]Sock 7.First char is OK [22:33:51]request: POST /json_proto HTTP/1.0 [22:33:51]Method: POST [22:33:51]URL: /json_proto [22:33:51]Method is POST - this is cgi request [22:33:51]url: /json_proto [22:33:51]query_string will be loaded in cgi processing [22:33:51]execute_cgi json_proto POST (null) [22:33:51]execute_cgi path=json_proto method=POST [22:33:51]POST find Content-Length [22:33:51]Host: 172.17.41.195:8080 [22:33:51]Content-Length: 677 [22:33:51]Content-Type: application/json [22:33:51] [22:33:51]POST finish read [22:33:51]Found Content-Length = 677 [22:33:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507075", "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" ] } } [22:33:51]execute_script... [22:33: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)507075", "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" ] } } [22:33:51]POST & json_proto [22:33:51]process_json_proto [22:33:51]json parsed OK: [22:33:51]protocol is kg_v1.0 [22:33:51]action value=close_receipt [22:33:51]process_action close_receipt [22:33:51]cmd_close_receipt [22:33:51]MH_GetDate [22:33:51]Write to MH i2c: F0 00 00 A6 14 A9 [22:33:51]Write i2c OK [22:33:51]MH_I2C_Read... [22:33:51]Read from MH i2c: F0 [22:33:51]MH_I2C_Read... [22:33:51]Read from MH i2c: F0 09 00 [22:33:51]MH_I2C_Read... [22:33:51]Read from MH i2c: F0 09 00 A6 14 00 D1 E6 43 66 FC 21 6F 64 02 [22:33:51]GetLastDocTimeStamp 1715723835 [22:33:51]current date 1715726033 [22:33:51]FM_GetShiftState [22:33:51]SAM_PROTO_GetShiftState [22:33:51]wFMCommunicate request_size=4 [22:33:51]MH_SAM_APDU [22:33:51]CAPDU: 80 13 01 00 [22:33:51]Write to MH i2c: E2 08 00 A7 14 80 13 01 00 00 00 00 00 38 [22:33:51]Write i2c OK [22:33:51]MH_I2C_Read... [22:33:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:51]Read from MH i2c: E2 [22:33:51]MH_I2C_Read... [22:33:51]Read from MH i2c: E2 0E 00 [22:33:51]MH_I2C_Read... [22:33:51]Read from MH i2c: E2 0E 00 A7 14 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 00 [22:33:51]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [22:33:51]wFMCommunicate OK [22:33:51]SAM_PROTO_GetShiftState done [22:33:51]FM_GetShiftState done [22:33:51]opened in 1715646054 [22:33:51]opened+sec_in_day 1715732454 [22:33:51]quantity*price = 40013 [22:33:51]sum+1 = 40014 [22:33: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 СНО: Общий режим Чек 178 14.05.2024 22:33 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67171 ФПД: 82814176138741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T223353&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67171&fm=82814176138741&tin=02508201610067®Number=0000000000091845&sum=40000 [22:33:52]StoreToDocumentArchive [22:33:52]shift 355 fd 67171 [22:33:52]save to /storage/0355/doc_00067171 [22:33:52]save last doc name /storage/0355/doc_00067171 to /storage/kkm_last_doc_name [22:33:52]save OK [22:33:52]Clear old archive folders... [22:33:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:33:52]tlvbuf is B6F1F5E0 [22:33:52]SAM_PROTO_ClearQueue [22:33:52]wFMCommunicate request_size=4 [22:33:52]MH_SAM_APDU [22:33:52]CAPDU: 80 09 00 00 [22:33:52]Write to MH i2c: E2 08 00 B4 14 80 09 00 00 00 00 00 00 3A [22:33:52]Write i2c OK [22:33:52]MH_I2C_Read... [22:33:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:52]Read from MH i2c: E2 [22:33:52]MH_I2C_Read... [22:33:52]Read from MH i2c: E2 03 00 [22:33:52]MH_I2C_Read... [22:33:52]Read from MH i2c: E2 03 00 B4 14 00 90 00 3C [22:33:52]RAPDU: 90 00 [22:33:52]wFMCommunicate OK [22:33:52]SAM_PROTO_ClearQueue done [22:33:52]KKMCreateOFDPacket [22:33:52]OFDProtocolAddRootSTLVToBuf [22:33:52]FM_MakeSignedData [22:33:52]FM_MakeSignedData [22:33:52]SAM_PROTO_SignData [22:33:52]wFMCommunicate request_size=4 [22:33:52]MH_SAM_APDU [22:33:52]CAPDU: 80 0D 01 02 [22:33:52]Write to MH i2c: E2 08 00 B5 14 80 0D 01 02 00 00 00 00 42 [22:33:52]Write i2c OK [22:33:52]MH_I2C_Read... [22:33:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:53]Read from MH i2c: E2 [22:33:53]MH_I2C_Read... [22:33:53]Read from MH i2c: E2 03 00 [22:33:53]MH_I2C_Read... [22:33:53]Read from MH i2c: E2 03 00 B5 14 00 90 00 3D [22:33:53]RAPDU: 90 00 [22:33:53]wFMCommunicate OK [22:33:53]wFMCommunicate request_size=255 [22:33:53]MH_SAM_APDU [22:33: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 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 B2 00 00 00 F4 03 04 00 D1 E6 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 4B [22:33:53]Write to MH i2c: E2 02 01 B6 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 D1 E6 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 4B 00 00 D8 [22:33:53]Write i2c OK [22:33:53]MH_I2C_Read... [22:33:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:53]Read from MH i2c: E2 [22:33:53]MH_I2C_Read... [22:33:53]Read from MH i2c: E2 03 00 [22:33:53]MH_I2C_Read... [22:33:53]Read from MH i2c: E2 03 00 B6 14 00 90 00 3E [22:33:53]RAPDU: 90 00 [22:33:53]wFMCommunicate OK [22:33:53]wFMCommunicate request_size=10 [22:33:53]MH_SAM_APDU [22:33:53]CAPDU: 80 0D 02 02 05 51 AD 8D 15 F5 [22:33:53]Write to MH i2c: E2 0D 00 B7 14 80 0D 02 02 05 00 51 AD 8D 15 F5 00 00 E4 [22:33:53]Write i2c OK [22:33:53]MH_I2C_Read... [22:33:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:53]Read from MH i2c: E2 [22:33:53]MH_I2C_Read... [22:33:53]Read from MH i2c: E2 03 00 [22:33:53]MH_I2C_Read... [22:33:53]Read from MH i2c: E2 03 00 B7 14 00 90 00 3F [22:33:53]RAPDU: 90 00 [22:33:53]wFMCommunicate OK [22:33:53]wFMCommunicate request_size=4 [22:33:53]MH_SAM_APDU [22:33:53]CAPDU: 80 0D 03 02 [22:33:53]Write to MH i2c: E2 08 00 B8 14 80 0D 03 02 00 00 00 00 47 [22:33:53]Write i2c OK [22:33:53]MH_I2C_Read... [22:33:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:53]Read from MH i2c: E2 [22:33:53]MH_I2C_Read... [22:33:53]Read from MH i2c: E2 0B 00 [22:33:53]MH_I2C_Read... [22:33:53]Read from MH i2c: E2 0B 00 B8 14 00 79 47 91 DE 7D B7 E6 CB 90 00 5C [22:33:53]RAPDU: 79 47 91 DE 7D B7 E6 CB 90 00 [22:33:53]wFMCommunicate OK [22:33:53]SAM_PROTO_SignData done [22:33:53]FM_MakeSignedData done [22:33:53]CreateOFDProtocolMessage [22:33:53]wFMCommunicate request_size=4 [22:33:53]MH_SAM_APDU [22:33:53]CAPDU: 80 11 00 00 [22:33:53]Write to MH i2c: E2 08 00 B9 14 80 11 00 00 00 00 00 00 47 [22:33:53]Write i2c OK [22:33:53]MH_I2C_Read... [22:33:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:53]Read from MH i2c: E2 [22:33:53]MH_I2C_Read... [22:33:53]Read from MH i2c: E2 17 00 [22:33:53]MH_I2C_Read... [22:33:53]Read from MH i2c: E2 17 00 B9 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9D [22:33: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:33:53]wFMCommunicate OK [22:33:53]CreateOFDProtocolMessage done [22:33:53]OFDSenderStorePacket 67171 [22:33:53]StoreOFDPacket docnum=67171 [22:33: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 92 0F 07 01 AC 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 B2 00 00 00 F4 03 04 00 D1 E6 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 4B 51 AD 8D 15 F5 79 47 91 DE 7D B7 E6 CB [22:33:53]CheckFolder [22:33:53]dirname=/storage/ofd_packets [22:33:53]CheckFolder done [22:33:53]ProducePacketName [22:33:53]name=ofd_packets/00067171 [22:33:53]NVStorageSaveData ofd_packets/00067171 [22:33:53]File name is /storage/ofd_packets/00067171 [22:33:53]Write 301 bytes [22:33:53]NVStorageSaveData done [22:33:53]OFDSenderStorePacket done [22:33:53]KKMCreateOFDPacket done [22:33:53]NVStorageSaveData kkm_last_timestamp [22:33:53]File name is /storage/kkm_last_timestamp [22:33:53]Write 4 bytes [22:33:53]NVStorageSaveData done [22:33:53]ExternCall_PrintAddStr [22:33:53]wPrintStart [22:33:53]Write to MH i2c: 01 00 00 BA 14 CE [22:33:53]Write i2c OK [22:33:53]MH_I2C_Read... [22:33:53]Read from MH i2c: 01 [22:33:53]MH_I2C_Read... [22:33:53]Read from MH i2c: 01 07 00 [22:33:53]MH_I2C_Read... [22:33:53]Read from MH i2c: 01 07 00 BA 14 00 00 00 00 00 FF 0F E3 [22:33:53]RasterBufferAndPrint [22:33:53]line Счет N : (1)507075 [22:33:53]line ИНН: 02508201610067 [22:33:53]line Контрольно-Кассовый Чек [22:33:53]line ПРОДАЖА [22:33:53]line ТРК (МРК, ГНК) : 43 [22:33:53]line Товар: 2710124130 [22:33:53]line Аи-92-К-5 [22:33:53]line 5.990 * 66.80 [22:33:53]line = 400.13 [22:33:53]line НДС 12% НСП 1% [22:33:53]line > о реализуемом товаре [22:33:53]line ОКРУГЛЕНИЕ: -0.13 [22:33:53]line ИТОГО: 400.00 [22:33:53]line Внесено: 400.00 [22:33:53]line СДАЧА: 0.00 [22:33:53]line НСП 1% : 3.54 [22:33:53]line НДС 12% : 42.49 [22:33:53]line Наличными: 400.00 [22:33:53]line Безнал.: 0.00 [22:33:53]line Место: АЗС № 91 "Партнер Нефть" [22:33:53]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:33:53]line СНО: Общий режим [22:33:53]line Чек 178 14.05.2024 22:33 [22:33:53]line Смена: 355 ФФД: 1.0 [22:33:53]line ЗНМ: 0300000119 [22:33:53]line РНМ: 0000000000091845 [22:33:53]line Версия ККМ: 001 [22:33:53]line ФМ: 0000000000871829 [22:33:53]line ФД: 67171 [22:33:53]line ФПД: 82814176138741 [22:33:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T223353&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67171&fm=82814176138741&tin=02508201610067®Number=0000000000091845&sum=40000 [22:33:53]written 0, free lines is 4095 [22:33:53]OFD Sender: Processing packet 67171 [packets to send 35, broken 34] [22:33:53]ProducePacketName [22:33:53]name=ofd_packets/00067171 [22:33:53]OFD Sender: To server: pG, [22:33:53]CommunicateWithHost lk.salyk.kg:30040 [22:33:53]ConnectInit lk.salyk.kg [22:33:53]Connected sock=10 [22:33: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 92 0F 07 01 AC 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 B2 00 00 00 F4 03 04 00 D1 E6 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 4B 51 AD 8D 15 F5 79 47 91 DE 7D B7 E6 CB [22:33: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 4C AA 47 00 68 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 63 06 01 00 F4 03 04 00 AF 8E 43 66 B6 04 01 00 00 E9 17 47 12 C0 2C 61 2B [22:33:54]CommunicateWithHost err = 0 [22:33:54]CheckOFDResponse [22:33:54]1017 (14) - 77093643461234 [22:33:54]1041 (16) - 0000000000871829 [22:33:54]1040 (4) - 67171 [22:33:54]1012 (4) - 14.05.2024 16:17 [22:33:54]1206 (1) - 0 [22:33:54]OFD Sender: Remove packet 67171 [22:33:54]ProducePacketName [22:33:54]name=ofd_packets/00067171 [22:33:54]NVStorageDeleteData [22:33:54]Write to MH i2c: 01 00 00 E4 14 F8 [22:33:54]Write i2c OK [22:33:54]MH_I2C_Read... [22:33:54]Read from MH i2c: 01 [22:33:54]MH_I2C_Read... [22:33:54]Read from MH i2c: 01 07 00 [22:33:54]MH_I2C_Read... [22:33:54]Read from MH i2c: 01 07 00 E4 14 00 00 00 00 00 C8 0C D3 [22:33:54]RasterBufferAndPrint [22:33:54]line [22:33:54]line [22:33:54]line [22:33:54]line [22:33:54]line [22:33:54]written 0, free lines is 3278 [22:33:54]MH_Cut [22:33:54]Write to MH i2c: D1 01 00 EB 14 01 D1 [22:33:54]Write i2c OK [22:33:54]MH_I2C_Read... [22:33:54]Read from MH i2c: D1 [22:33:54]MH_I2C_Read... [22:33:54]Read from MH i2c: D1 01 00 [22:33:54]MH_I2C_Read... [22:33:54]Read from MH i2c: D1 01 00 EB 14 00 D0 [22:33:54]Write to MH i2c: 01 00 00 EC 14 00 [22:33:54]Write i2c OK [22:33:54]MH_I2C_Read... [22:33:54]OFD Sender: No OFD packet to send [22:33:55]*** Cut start [22:33:55]*** Purtial cut [22:33:55]*** CUTSNS_PIN = 0 [22:33:55]*** Stage 1: CUTSNS_PIN = 1 [22:33:57]Read from MH i2c: 01 [22:33:57]MH_I2C_Read... [22:33:57]*** Stop cut motor [22:33:57]*** Cut end [22:33:57]Read from MH i2c: 01 07 00 [22:33:57]MH_I2C_Read... [22:33:57]Read from MH i2c: 01 07 00 EC 14 00 00 00 00 00 FF 0F 15 [22:33:57]process_action close_receipt done [22:33:57]requested_data is exist [22:33:57]produce_requested_data [22:33:57]requested_item fm.sn is exist - process it [22:33:57]wFMCommunicate request_size=4 [22:33:57]MH_SAM_APDU [22:33:57]CAPDU: 80 11 00 00 [22:33:57]Write to MH i2c: E2 08 00 ED 14 80 11 00 00 00 00 00 00 7B [22:33:57]Write i2c OK [22:33:57]MH_I2C_Read... [22:33:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:57]Read from MH i2c: E2 [22:33:57]MH_I2C_Read... [22:33:57]Read from MH i2c: E2 17 00 [22:33:57]MH_I2C_Read... [22:33:57]Read from MH i2c: E2 17 00 ED 14 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:33:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:33:57]wFMCommunicate OK [22:33:57]requested_item fd.num is exist - process it [22:33:57]SAM_PROTO_GetFieldsCounters [22:33:57]wFMCommunicate request_size=4 [22:33:57]MH_SAM_APDU [22:33:57]CAPDU: 80 13 00 00 [22:33:57]Write to MH i2c: E2 08 00 EE 14 80 13 00 00 00 00 00 00 7E [22:33:57]Write i2c OK [22:33:57]MH_I2C_Read... [22:33:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:57]Read from MH i2c: E2 [22:33:57]MH_I2C_Read... [22:33:57]Read from MH i2c: E2 62 00 [22:33:57]MH_I2C_Read... [22:33:57]Read from MH i2c: E2 62 00 EE 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 63 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [22:33: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 63 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:33:57]wFMCommunicate OK [22:33:57]SAM_PROTO_GetFieldsCounters done [22:33:57]requested_item shift.num is exist - process it [22:33:57]requested_item shift.opened is exist - process it [22:33:57]req_shift_opened [22:33:57]FM_GetShiftState [22:33:57]SAM_PROTO_GetShiftState [22:33:57]wFMCommunicate request_size=4 [22:33:57]MH_SAM_APDU [22:33:57]CAPDU: 80 13 01 00 [22:33:57]Write to MH i2c: E2 08 00 EF 14 80 13 01 00 00 00 00 00 80 [22:33:57]Write i2c OK [22:33:57]MH_I2C_Read... [22:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:57]Read from MH i2c: E2 [22:33:57]MH_I2C_Read... [22:33:57]Read from MH i2c: E2 0E 00 [22:33:57]MH_I2C_Read... [22:33:57]Read from MH i2c: E2 0E 00 EF 14 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 48 [22:33:57]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [22:33:57]wFMCommunicate OK [22:33:57]SAM_PROTO_GetShiftState done [22:33:57]FM_GetShiftState done [22:33:57]req_shift_opened done [22:33:57]requested_item shift.open_date is exist - process it [22:33:57]req_shift_open_date [22:33:57]req_shift_open_date done [22:33:57]produce_requested_data done [22:33:57]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67171,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [22:33:57]process_action_free close_receipt [22:33:57]json_value_free [22:33:57]json_value_free done [22:33:57]process_json_proto returns [22:33:57]Send response to host [22:33:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67171,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [22:33:57]free response buf [22:33:57]execute_script done [22:33:57]execute_script returns [22:33:57]free content buf [22:33:57]Sock 7.Close socket [22:33:57]Sock 7.Thread stoped [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:09]OFD Sender: No OFD packet to send [22:34:14]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [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:05]accept exits with 9 [22:42:05]New connection [22:42:05]New thread 3066731876 created [22:42:05]Thread 3066588516 joined [22:42:05]Waiting for new connection... [22:42:05] Sock 9.Parse request [22:42:05]Sock 9.Check first char [22:42:05]Sock 9.First char is OK [22:42:05]request: POST /json_proto HTTP/1.0 [22:42:05]Method: POST [22:42:05]URL: /json_proto [22:42:05]Method is POST - this is cgi request [22:42:05]url: /json_proto [22:42:05]query_string will be loaded in cgi processing [22:42:05]execute_cgi json_proto POST (null) [22:42:05]execute_cgi path=json_proto method=POST [22:42:05]POST find Content-Length [22:42:05]Host: 172.17.41.195:8080 [22:42:05]Content-Length: 793 [22:42:05]Content-Type: application/json [22:42:05] [22:42:05]POST finish read [22:42:05]Found Content-Length = 793 [22:42:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:05]execute_script... [22:42: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)507076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:05]POST & json_proto [22:42:05]process_json_proto [22:42:05]json parsed OK: [22:42:05]protocol is kg_v1.0 [22:42:05]action value=close_receipt [22:42:05]process_action close_receipt [22:42:05]cmd_close_receipt [22:42:05]MH_GetDate [22:42:05]Write to MH i2c: F0 00 00 F0 14 F3 [22:42:05]Write i2c OK [22:42:05]MH_I2C_Read... [22:42:05]Read from MH i2c: F0 [22:42:05]MH_I2C_Read... [22:42:05]Read from MH i2c: F0 09 00 [22:42:05]MH_I2C_Read... [22:42:05]Read from MH i2c: F0 09 00 F0 14 00 BF E8 43 66 FC 21 6F 64 3C [22:42:05]GetLastDocTimeStamp 1715726033 [22:42:05]current date 1715726527 [22:42:05]FM_GetShiftState [22:42:05]SAM_PROTO_GetShiftState [22:42:05]wFMCommunicate request_size=4 [22:42:05]MH_SAM_APDU [22:42:05]CAPDU: 80 13 01 00 [22:42:05]Write to MH i2c: E2 08 00 F1 14 80 13 01 00 00 00 00 00 82 [22:42:05]Write i2c OK [22:42:05]MH_I2C_Read... [22:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:05]Read from MH i2c: E2 [22:42:05]MH_I2C_Read... [22:42:05]Read from MH i2c: E2 0E 00 [22:42:05]MH_I2C_Read... [22:42:05]Read from MH i2c: E2 0E 00 F1 14 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 4A [22:42:05]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [22:42:05]wFMCommunicate OK [22:42:05]SAM_PROTO_GetShiftState done [22:42:05]FM_GetShiftState done [22:42:05]opened in 1715646054 [22:42:05]opened+sec_in_day 1715732454 [22:42:05]quantity*price = 50036 [22:42:05]sum+1 = 50037 [22:42:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 179 14.05.2024 22:42 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67172 ФПД: 73498117445739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T224207&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67172&fm=73498117445739&tin=02508201610067®Number=0000000000091845&sum=50036 [22:42:07]StoreToDocumentArchive [22:42:07]shift 355 fd 67172 [22:42:07]save to /storage/0355/doc_00067172 [22:42:07]save last doc name /storage/0355/doc_00067172 to /storage/kkm_last_doc_name [22:42:07]save OK [22:42:07]Clear old archive folders... [22:42:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:42:07]tlvbuf is B6E72380 [22:42:07]SAM_PROTO_ClearQueue [22:42:07]wFMCommunicate request_size=4 [22:42:07]MH_SAM_APDU [22:42:07]CAPDU: 80 09 00 00 [22:42:07]Write to MH i2c: E2 08 00 FE 14 80 09 00 00 00 00 00 00 84 [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:42:07]Read from MH i2c: E2 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 03 00 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 03 00 FE 14 00 90 00 86 [22:42:07]RAPDU: 90 00 [22:42:07]wFMCommunicate OK [22:42:07]SAM_PROTO_ClearQueue done [22:42:07]KKMCreateOFDPacket [22:42:07]OFDProtocolAddRootSTLVToBuf [22:42:07]FM_MakeSignedData [22:42:07]FM_MakeSignedData [22:42:07]SAM_PROTO_SignData [22:42:07]wFMCommunicate request_size=4 [22:42:07]MH_SAM_APDU [22:42:07]CAPDU: 80 0D 01 02 [22:42:07]Write to MH i2c: E2 08 00 FF 14 80 0D 01 02 00 00 00 00 8C [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:42:07]Read from MH i2c: E2 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 03 00 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 03 00 FF 14 00 90 00 87 [22:42:07]RAPDU: 90 00 [22:42:07]wFMCommunicate OK [22:42:07]wFMCommunicate request_size=255 [22:42:07]MH_SAM_APDU [22:42:07]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 B3 00 00 00 F4 03 04 00 BF E8 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 [22:42:07]Write to MH i2c: E2 02 01 00 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 B3 00 00 00 F4 03 04 00 BF E8 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 00 00 55 [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:07]Read from MH i2c: E2 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 03 00 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 03 00 00 15 00 90 00 89 [22:42:07]RAPDU: 90 00 [22:42:07]wFMCommunicate OK [22:42:07]wFMCommunicate request_size=11 [22:42:07]MH_SAM_APDU [22:42:07]CAPDU: 80 0D 02 02 06 42 D8 9D 2E 98 6B [22:42:07]Write to MH i2c: E2 0E 00 01 15 80 0D 02 02 06 00 42 D8 9D 2E 98 6B 00 00 84 [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:07]Read from MH i2c: E2 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 03 00 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 03 00 01 15 00 90 00 8A [22:42:07]RAPDU: 90 00 [22:42:07]wFMCommunicate OK [22:42:07]wFMCommunicate request_size=4 [22:42:07]MH_SAM_APDU [22:42:07]CAPDU: 80 0D 03 02 [22:42:07]Write to MH i2c: E2 08 00 02 15 80 0D 03 02 00 00 00 00 92 [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:42:07]Read from MH i2c: E2 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 0B 00 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 0B 00 02 15 00 A8 9D C5 28 79 D0 43 B9 90 00 0A [22:42:07]RAPDU: A8 9D C5 28 79 D0 43 B9 90 00 [22:42:07]wFMCommunicate OK [22:42:07]SAM_PROTO_SignData done [22:42:07]FM_MakeSignedData done [22:42:07]CreateOFDProtocolMessage [22:42:07]wFMCommunicate request_size=4 [22:42:07]MH_SAM_APDU [22:42:07]CAPDU: 80 11 00 00 [22:42:07]Write to MH i2c: E2 08 00 03 15 80 11 00 00 00 00 00 00 92 [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:07]Read from MH i2c: E2 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 17 00 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: E2 17 00 03 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E8 [22:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:42:07]wFMCommunicate OK [22:42:07]CreateOFDProtocolMessage done [22:42:07]OFDSenderStorePacket 67172 [22:42:07]StoreOFDPacket docnum=67172 [22:42:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 40 13 08 01 55 42 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 B3 00 00 00 F4 03 04 00 BF E8 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 42 D8 9D 2E 98 6B A8 9D C5 28 79 D0 43 B9 [22:42:07]CheckFolder [22:42:07]dirname=/storage/ofd_packets [22:42:07]CheckFolder done [22:42:07]ProducePacketName [22:42:07]name=ofd_packets/00067172 [22:42:07]NVStorageSaveData ofd_packets/00067172 [22:42:07]File name is /storage/ofd_packets/00067172 [22:42:07]Write 302 bytes [22:42:07]NVStorageSaveData done [22:42:07]OFDSenderStorePacket done [22:42:07]KKMCreateOFDPacket done [22:42:07]NVStorageSaveData kkm_last_timestamp [22:42:07]File name is /storage/kkm_last_timestamp [22:42:07]Write 4 bytes [22:42:07]NVStorageSaveData done [22:42:07]ExternCall_PrintAddStr [22:42:07]wPrintStart [22:42:07]Write to MH i2c: 01 00 00 04 15 19 [22:42:07]Write i2c OK [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: 01 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: 01 07 00 [22:42:07]MH_I2C_Read... [22:42:07]Read from MH i2c: 01 07 00 04 15 00 00 00 00 00 FF 0F 2E [22:42:07]RasterBufferAndPrint [22:42:07]line Счет N : (1)507076 [22:42:07]line ИНН: 02508201610067 [22:42:07]line Контрольно-Кассовый Чек [22:42:07]line ПРОДАЖА [22:42:07]line ТРК (МРК, ГНК) : 42 [22:42:07]line Товар: 2710124130 [22:42:07]line Super-92-К-5 [22:42:07]line 7.380 * 67.80 [22:42:07]line = 500.36 [22:42:07]line НДС 12% НСП 1% [22:42:07]line > о реализуемом товаре [22:42:07]line ИТОГО: 500.36 [22:42:07]line НСП 1% : 4.43 [22:42:07]line НДС 12% : 53.14 [22:42:07]line Наличными: 0.00 [22:42:07]line Безнал.: 500.36 [22:42:07]line Место: АЗС № 91 "Партнер Нефть" [22:42:07]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:42:07]line СНО: Общий режим [22:42:07]line Чек 179 14.05.2024 22:42 [22:42:07]line Смена: 355 ФФД: 1.0 [22:42:07]line ЗНМ: 0300000119 [22:42:07]line РНМ: 0000000000091845 [22:42:07]line Версия ККМ: 001 [22:42:07]line Платежная система: O! деньги [22:42:07]line ФМ: 0000000000871829 [22:42:07]line ФД: 67172 [22:42:07]line ФПД: 73498117445739 [22:42:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T224207&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67172&fm=73498117445739&tin=02508201610067®Number=0000000000091845&sum=50036 [22:42:07]written 0, free lines is 4095 [22:42:07]OFD Sender: Processing packet 67172 [packets to send 35, broken 34] [22:42:07]ProducePacketName [22:42:07]name=ofd_packets/00067172 [22:42:07]OFD Sender: To server: pG, [22:42:07]CommunicateWithHost lk.salyk.kg:30040 [22:42:07]ConnectInit lk.salyk.kg [22:42:08]Connected sock=10 [22:42:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 01 00 00 40 13 08 01 55 42 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 B3 00 00 00 F4 03 04 00 BF E8 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 42 D8 9D 2E 98 6B A8 9D C5 28 79 D0 43 B9 [22:42:08]Write to MH i2c: 01 00 00 2D 15 42 [22:42:08]Write i2c OK [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: 01 [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: 01 07 00 [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: 01 07 00 2D 15 00 00 00 00 00 DC 0C 31 [22:42:08]RasterBufferAndPrint [22:42:08]line [22:42:08]line [22:42:08]line [22:42:08]line [22:42:08]line [22:42:08]written 0, free lines is 3297 [22:42:08]MH_Cut [22:42:08]Write to MH i2c: D1 01 00 34 15 01 1B [22:42:08]Write i2c OK [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: D1 [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: D1 01 00 [22:42:08]MH_I2C_Read... [22:42:08]Read from MH i2c: D1 01 00 34 15 00 1A [22:42:08]Write to MH i2c: 01 00 00 35 15 4A [22:42:08]Write i2c OK [22:42:08]MH_I2C_Read... [22:42:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 73 D1 47 00 7C 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 64 06 01 00 F4 03 04 00 9E 90 43 66 B6 04 01 00 00 E2 E2 B4 00 C6 F1 57 78 [22:42:08]CommunicateWithHost err = 0 [22:42:08]CheckOFDResponse [22:42:08]1017 (14) - 77093643461234 [22:42:08]1041 (16) - 0000000000871829 [22:42:08]1040 (4) - 67172 [22:42:08]1012 (4) - 14.05.2024 16:26 [22:42:08]1206 (1) - 0 [22:42:08]OFD Sender: Remove packet 67172 [22:42:08]ProducePacketName [22:42:08]name=ofd_packets/00067172 [22:42:08]NVStorageDeleteData [22:42:08]OFD Sender: No OFD packet to send [22:42:08]*** Cut start [22:42:08]*** Purtial cut [22:42:08]*** Stage 1: CUTSNS_PIN = 1 [22:42:09]Read from MH i2c: 01 [22:42:09]MH_I2C_Read... [22:42:09]*** Stop cut motor [22:42:09]*** Cut end [22:42:09]Read from MH i2c: 01 07 00 [22:42:09]MH_I2C_Read... [22:42:09]Read from MH i2c: 01 07 00 35 15 00 00 00 00 00 FF 0F 5F [22:42:09]process_action close_receipt done [22:42:09]requested_data is exist [22:42:09]produce_requested_data [22:42:09]requested_item fm.sn is exist - process it [22:42:09]wFMCommunicate request_size=4 [22:42:09]MH_SAM_APDU [22:42:09]CAPDU: 80 11 00 00 [22:42:09]Write to MH i2c: E2 08 00 36 15 80 11 00 00 00 00 00 00 C5 [22:42:09]Write i2c OK [22:42:09]MH_I2C_Read... [22:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:09]Read from MH i2c: E2 [22:42:09]MH_I2C_Read... [22:42:09]Read from MH i2c: E2 17 00 [22:42:09]MH_I2C_Read... [22:42:09]Read from MH i2c: E2 17 00 36 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1B [22:42: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:42:09]wFMCommunicate OK [22:42:09]requested_item fd.num is exist - process it [22:42:09]SAM_PROTO_GetFieldsCounters [22:42:09]wFMCommunicate request_size=4 [22:42:09]MH_SAM_APDU [22:42:09]CAPDU: 80 13 00 00 [22:42:09]Write to MH i2c: E2 08 00 37 15 80 13 00 00 00 00 00 00 C8 [22:42:09]Write i2c OK [22:42:09]MH_I2C_Read... [22:42:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:09]Read from MH i2c: E2 [22:42:09]MH_I2C_Read... [22:42:09]Read from MH i2c: E2 62 00 [22:42:09]MH_I2C_Read... [22:42:09]Read from MH i2c: E2 62 00 37 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 64 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [22:42: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 64 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:42:09]wFMCommunicate OK [22:42:09]SAM_PROTO_GetFieldsCounters done [22:42:09]requested_item shift.num is exist - process it [22:42:09]requested_item shift.opened is exist - process it [22:42:09]req_shift_opened [22:42:09]FM_GetShiftState [22:42:09]SAM_PROTO_GetShiftState [22:42:09]wFMCommunicate request_size=4 [22:42:09]MH_SAM_APDU [22:42:09]CAPDU: 80 13 01 00 [22:42:09]Write to MH i2c: E2 08 00 38 15 80 13 01 00 00 00 00 00 CA [22:42:09]Write i2c OK [22:42:09]MH_I2C_Read... [22:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:09]Read from MH i2c: E2 [22:42:09]MH_I2C_Read... [22:42:09]Read from MH i2c: E2 0E 00 [22:42:09]MH_I2C_Read... [22:42:09]Read from MH i2c: E2 0E 00 38 15 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 92 [22:42:09]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [22:42:09]wFMCommunicate OK [22:42:09]SAM_PROTO_GetShiftState done [22:42:09]FM_GetShiftState done [22:42:09]req_shift_opened done [22:42:09]requested_item shift.open_date is exist - process it [22:42:09]req_shift_open_date [22:42:09]req_shift_open_date done [22:42:09]produce_requested_data done [22:42:09]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67172,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [22:42:09]process_action_free close_receipt [22:42:09]json_value_free [22:42:09]json_value_free done [22:42:09]process_json_proto returns [22:42:09]Send response to host [22:42:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67172,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [22:42:09]free response buf [22:42:09]execute_script done [22:42:09]execute_script returns [22:42:09]free content buf [22:42:09]Sock 9.Close socket [22:42:09]Sock 9.Thread stoped [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:33]OFD Sender: No OFD packet to send [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:28]OFD Sender: No OFD packet to send [22:46:33]OFD Sender: No OFD packet to send [22:46:38]OFD Sender: No OFD packet to send [22:46:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:53]OFD Sender: No OFD packet to send [22:46:58]OFD Sender: No OFD packet to send [22:47:03]OFD Sender: No OFD packet to send [22:47:08]OFD Sender: No OFD packet to send [22:47:13]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:42]accept exits with 7 [22:47:42]New connection [22:47:42]New thread 3066588516 created [22:47:42]Thread 3066731876 joined [22:47:42]Waiting for new connection... [22:47:42] Sock 7.Parse request [22:47:42]Sock 7.Check first char [22:47:42]Sock 7.First char is OK [22:47:42]request: POST /json_proto HTTP/1.0 [22:47:42]Method: POST [22:47:42]URL: /json_proto [22:47:42]Method is POST - this is cgi request [22:47:42]url: /json_proto [22:47:42]query_string will be loaded in cgi processing [22:47:42]execute_cgi json_proto POST (null) [22:47:42]execute_cgi path=json_proto method=POST [22:47:42]POST find Content-Length [22:47:42]Host: 172.17.41.195:8080 [22:47:42]Content-Length: 800 [22:47:42]Content-Type: application/json [22:47:42] [22:47:42]POST finish read [22:47:42]Found Content-Length = 800 [22:47:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507077", "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" ] } } [22:47:42]execute_script... [22:47: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)507077", "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" ] } } [22:47:42]POST & json_proto [22:47:42]process_json_proto [22:47:42]json parsed OK: [22:47:42]protocol is kg_v1.0 [22:47:42]action value=close_receipt [22:47:42]process_action close_receipt [22:47:42]cmd_close_receipt [22:47:42]MH_GetDate [22:47:42]Write to MH i2c: F0 00 00 39 15 3D [22:47:42]Write i2c OK [22:47:42]MH_I2C_Read... [22:47:42]Read from MH i2c: F0 [22:47:42]MH_I2C_Read... [22:47:42]Read from MH i2c: F0 09 00 [22:47:42]MH_I2C_Read... [22:47:42]Read from MH i2c: F0 09 00 39 15 00 0F EA 43 66 FC 21 6F 64 D8 [22:47:42]GetLastDocTimeStamp 1715726527 [22:47:42]current date 1715726863 [22:47:42]FM_GetShiftState [22:47:42]SAM_PROTO_GetShiftState [22:47:42]wFMCommunicate request_size=4 [22:47:42]MH_SAM_APDU [22:47:42]CAPDU: 80 13 01 00 [22:47:42]Write to MH i2c: E2 08 00 3A 15 80 13 01 00 00 00 00 00 CC [22:47:42]Write i2c OK [22:47:42]MH_I2C_Read... [22:47:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:42]Read from MH i2c: E2 [22:47:42]MH_I2C_Read... [22:47:42]Read from MH i2c: E2 0E 00 [22:47:42]MH_I2C_Read... [22:47:42]Read from MH i2c: E2 0E 00 3A 15 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 94 [22:47:42]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [22:47:42]wFMCommunicate OK [22:47:42]SAM_PROTO_GetShiftState done [22:47:42]FM_GetShiftState done [22:47:42]opened in 1715646054 [22:47:42]opened+sec_in_day 1715732454 [22:47:42]quantity*price = 40013 [22:47:42]sum+1 = 40014 [22:47:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.13 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 0.00 Безнал.: 400.13 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 180 14.05.2024 22:47 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67173 ФПД: 199001054571973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T224743&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67173&fm=199001054571973&tin=02508201610067®Number=0000000000091845&sum=40013 [22:47:43]StoreToDocumentArchive [22:47:43]shift 355 fd 67173 [22:47:43]save to /storage/0355/doc_00067173 [22:47:43]save last doc name /storage/0355/doc_00067173 to /storage/kkm_last_doc_name [22:47:43]save OK [22:47:43]Clear old archive folders... [22:47:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:47:43]tlvbuf is 003BBC80 [22:47:43]SAM_PROTO_ClearQueue [22:47:43]wFMCommunicate request_size=4 [22:47:43]MH_SAM_APDU [22:47:43]CAPDU: 80 09 00 00 [22:47:43]Write to MH i2c: E2 08 00 47 15 80 09 00 00 00 00 00 00 CE [22:47:43]Write i2c OK [22:47:43]MH_I2C_Read... [22:47:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:47:43]Read from MH i2c: E2 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: E2 03 00 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: E2 03 00 47 15 00 90 00 D0 [22:47:43]RAPDU: 90 00 [22:47:43]wFMCommunicate OK [22:47:43]SAM_PROTO_ClearQueue done [22:47:43]KKMCreateOFDPacket [22:47:43]OFDProtocolAddRootSTLVToBuf [22:47:43]FM_MakeSignedData [22:47:43]FM_MakeSignedData [22:47:43]SAM_PROTO_SignData [22:47:43]wFMCommunicate request_size=4 [22:47:43]MH_SAM_APDU [22:47:43]CAPDU: 80 0D 01 02 [22:47:43]Write to MH i2c: E2 08 00 48 15 80 0D 01 02 00 00 00 00 D6 [22:47:43]Write i2c OK [22:47:43]MH_I2C_Read... [22:47:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:47:43]Read from MH i2c: E2 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: E2 03 00 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: E2 03 00 48 15 00 90 00 D1 [22:47:43]RAPDU: 90 00 [22:47:43]wFMCommunicate OK [22:47:43]wFMCommunicate request_size=255 [22:47:43]MH_SAM_APDU [22:47: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 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 B4 00 00 00 F4 03 04 00 0F EA 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 B4 [22:47:43]Write to MH i2c: E2 02 01 49 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 B4 00 00 00 F4 03 04 00 0F EA 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 B4 00 00 35 [22:47:43]Write i2c OK [22:47:43]MH_I2C_Read... [22:47:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:44]Read from MH i2c: E2 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: E2 03 00 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: E2 03 00 49 15 00 90 00 D2 [22:47:44]RAPDU: 90 00 [22:47:44]wFMCommunicate OK [22:47:44]wFMCommunicate request_size=10 [22:47:44]MH_SAM_APDU [22:47:44]CAPDU: 80 0D 02 02 05 FD 8B 2A ED C5 [22:47:44]Write to MH i2c: E2 0D 00 4A 15 80 0D 02 02 05 00 FD 8B 2A ED C5 00 00 47 [22:47:44]Write i2c OK [22:47:44]MH_I2C_Read... [22:47:44]OFD Sender: No OFD packet to send [22:47:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:44]Read from MH i2c: E2 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: E2 03 00 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: E2 03 00 4A 15 00 90 00 D3 [22:47:44]RAPDU: 90 00 [22:47:44]wFMCommunicate OK [22:47:44]wFMCommunicate request_size=4 [22:47:44]MH_SAM_APDU [22:47:44]CAPDU: 80 0D 03 02 [22:47:44]Write to MH i2c: E2 08 00 4B 15 80 0D 03 02 00 00 00 00 DB [22:47:44]Write i2c OK [22:47:44]MH_I2C_Read... [22:47:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:47:44]Read from MH i2c: E2 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: E2 0B 00 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: E2 0B 00 4B 15 00 31 F9 2C 5C E8 D5 10 51 90 00 AC [22:47:44]RAPDU: 31 F9 2C 5C E8 D5 10 51 90 00 [22:47:44]wFMCommunicate OK [22:47:44]SAM_PROTO_SignData done [22:47:44]FM_MakeSignedData done [22:47:44]CreateOFDProtocolMessage [22:47:44]wFMCommunicate request_size=4 [22:47:44]MH_SAM_APDU [22:47:44]CAPDU: 80 11 00 00 [22:47:44]Write to MH i2c: E2 08 00 4C 15 80 11 00 00 00 00 00 00 DB [22:47:44]Write i2c OK [22:47:44]MH_I2C_Read... [22:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:44]Read from MH i2c: E2 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: E2 17 00 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: E2 17 00 4C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 31 [22:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:47:44]wFMCommunicate OK [22:47:44]CreateOFDProtocolMessage done [22:47:44]OFDSenderStorePacket 67173 [22:47:44]StoreOFDPacket docnum=67173 [22:47: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 8A 21 07 01 3F 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B4 00 00 00 F4 03 04 00 0F EA 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 B4 FD 8B 2A ED C5 31 F9 2C 5C E8 D5 10 51 [22:47:44]CheckFolder [22:47:44]dirname=/storage/ofd_packets [22:47:44]CheckFolder done [22:47:44]ProducePacketName [22:47:44]name=ofd_packets/00067173 [22:47:44]NVStorageSaveData ofd_packets/00067173 [22:47:44]File name is /storage/ofd_packets/00067173 [22:47:44]Write 301 bytes [22:47:44]NVStorageSaveData done [22:47:44]OFDSenderStorePacket done [22:47:44]KKMCreateOFDPacket done [22:47:44]NVStorageSaveData kkm_last_timestamp [22:47:44]File name is /storage/kkm_last_timestamp [22:47:44]Write 4 bytes [22:47:44]NVStorageSaveData done [22:47:44]ExternCall_PrintAddStr [22:47:44]wPrintStart [22:47:44]Write to MH i2c: 01 00 00 4D 15 62 [22:47:44]Write i2c OK [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: 01 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: 01 07 00 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: 01 07 00 4D 15 00 00 00 00 00 FF 0F 77 [22:47:44]RasterBufferAndPrint [22:47:44]line Счет N : (1)507077 [22:47:44]line ИНН: 02508201610067 [22:47:44]line Контрольно-Кассовый Чек [22:47:44]line ПРОДАЖА [22:47:44]line ТРК (МРК, ГНК) : 43 [22:47:44]line Товар: 2710124130 [22:47:44]line Аи-92-К-5 [22:47:44]line 5.990 * 66.80 [22:47:44]line = 400.13 [22:47:44]line НДС 12% НСП 1% [22:47:44]line > о реализуемом товаре [22:47:44]line ИТОГО: 400.13 [22:47:44]line НСП 1% : 3.54 [22:47:44]line НДС 12% : 42.49 [22:47:44]line Наличными: 0.00 [22:47:44]line Безнал.: 400.13 [22:47:44]line Место: АЗС № 91 "Партнер Нефть" [22:47:44]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:47:44]line СНО: Общий режим [22:47:44]line Чек 180 14.05.2024 22:47 [22:47:44]line Смена: 355 ФФД: 1.0 [22:47:44]line ЗНМ: 0300000119 [22:47:44]line РНМ: 0000000000091845 [22:47:44]line Версия ККМ: 001 [22:47:44]line Платежная система: O! деньги [22:47:44]line ФМ: 0000000000871829 [22:47:44]line ФД: 67173 [22:47:44]line ФПД: 199001054571973 [22:47:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T224743&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67173&fm=199001054571973&tin=02508201610067®Number=0000000000091845&sum=40013 [22:47:44]written 0, free lines is 4095 [22:47:44]OFD Sender: Processing packet 67173 [packets to send 35, broken 34] [22:47:44]ProducePacketName [22:47:44]name=ofd_packets/00067173 [22:47:44]OFD Sender: To server: pG, [22:47:44]CommunicateWithHost lk.salyk.kg:30040 [22:47:44]ConnectInit lk.salyk.kg [22:47:44]Connected sock=10 [22:47: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 8A 21 07 01 3F 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B4 00 00 00 F4 03 04 00 0F EA 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 B4 FD 8B 2A ED C5 31 F9 2C 5C E8 D5 10 51 [22:47: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 B8 BF 47 00 9F 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 65 06 01 00 F4 03 04 00 EE 91 43 66 B6 04 01 00 00 A9 74 3E B6 B2 68 41 30 [22:47:44]CommunicateWithHost err = 0 [22:47:44]CheckOFDResponse [22:47:44]1017 (14) - 77093643461234 [22:47:44]1041 (16) - 0000000000871829 [22:47:44]1040 (4) - 67173 [22:47:44]1012 (4) - 14.05.2024 16:31 [22:47:44]1206 (1) - 0 [22:47:44]OFD Sender: Remove packet 67173 [22:47:44]ProducePacketName [22:47:44]name=ofd_packets/00067173 [22:47:44]NVStorageDeleteData [22:47:44]Write to MH i2c: 01 00 00 76 15 8B [22:47:44]Write i2c OK [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: 01 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: 01 07 00 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: 01 07 00 76 15 00 00 00 00 00 DC 0C 7A [22:47:44]RasterBufferAndPrint [22:47:44]line [22:47:44]line [22:47:44]line [22:47:44]line [22:47:44]line [22:47:44]written 0, free lines is 3298 [22:47:44]MH_Cut [22:47:44]Write to MH i2c: D1 01 00 7D 15 01 64 [22:47:44]Write i2c OK [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: D1 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: D1 01 00 [22:47:44]MH_I2C_Read... [22:47:44]Read from MH i2c: D1 01 00 7D 15 00 63 [22:47:44]Write to MH i2c: 01 00 00 7E 15 93 [22:47:44]Write i2c OK [22:47:44]MH_I2C_Read... [22:47:45]OFD Sender: No OFD packet to send [22:47:45]*** Cut start [22:47:45]*** Purtial cut [22:47:45]*** CUTSNS_PIN = 0 [22:47:45]*** Stage 1: CUTSNS_PIN = 1 [22:47:47]Read from MH i2c: 01 [22:47:47]MH_I2C_Read... [22:47:47]*** Stop cut motor [22:47:47]*** Cut end [22:47:47]Read from MH i2c: 01 07 00 [22:47:47]MH_I2C_Read... [22:47:47]Read from MH i2c: 01 07 00 7E 15 00 00 00 00 00 FF 0F A8 [22:47:47]process_action close_receipt done [22:47:47]requested_data is exist [22:47:47]produce_requested_data [22:47:47]requested_item fm.sn is exist - process it [22:47:47]wFMCommunicate request_size=4 [22:47:47]MH_SAM_APDU [22:47:47]CAPDU: 80 11 00 00 [22:47:47]Write to MH i2c: E2 08 00 7F 15 80 11 00 00 00 00 00 00 0E [22:47:47]Write i2c OK [22:47:47]MH_I2C_Read... [22:47:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:47]Read from MH i2c: E2 [22:47:47]MH_I2C_Read... [22:47:47]Read from MH i2c: E2 17 00 [22:47:47]MH_I2C_Read... [22:47:47]Read from MH i2c: E2 17 00 7F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 64 [22:47: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:47:47]wFMCommunicate OK [22:47:47]requested_item fd.num is exist - process it [22:47:47]SAM_PROTO_GetFieldsCounters [22:47:47]wFMCommunicate request_size=4 [22:47:47]MH_SAM_APDU [22:47:47]CAPDU: 80 13 00 00 [22:47:47]Write to MH i2c: E2 08 00 80 15 80 13 00 00 00 00 00 00 11 [22:47:47]Write i2c OK [22:47:47]MH_I2C_Read... [22:47:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:47:47]Read from MH i2c: E2 [22:47:47]MH_I2C_Read... [22:47:47]Read from MH i2c: E2 62 00 [22:47:47]MH_I2C_Read... [22:47:47]Read from MH i2c: E2 62 00 80 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 65 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [22:47: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 65 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:47:47]wFMCommunicate OK [22:47:47]SAM_PROTO_GetFieldsCounters done [22:47:47]requested_item shift.num is exist - process it [22:47:47]requested_item shift.opened is exist - process it [22:47:47]req_shift_opened [22:47:47]FM_GetShiftState [22:47:47]SAM_PROTO_GetShiftState [22:47:47]wFMCommunicate request_size=4 [22:47:47]MH_SAM_APDU [22:47:47]CAPDU: 80 13 01 00 [22:47:47]Write to MH i2c: E2 08 00 81 15 80 13 01 00 00 00 00 00 13 [22:47:47]Write i2c OK [22:47:47]MH_I2C_Read... [22:47:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:48]Read from MH i2c: E2 [22:47:48]MH_I2C_Read... [22:47:48]Read from MH i2c: E2 0E 00 [22:47:48]MH_I2C_Read... [22:47:48]Read from MH i2c: E2 0E 00 81 15 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 DB [22:47:48]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [22:47:48]wFMCommunicate OK [22:47:48]SAM_PROTO_GetShiftState done [22:47:48]FM_GetShiftState done [22:47:48]req_shift_opened done [22:47:48]requested_item shift.open_date is exist - process it [22:47:48]req_shift_open_date [22:47:48]req_shift_open_date done [22:47:48]produce_requested_data done [22:47:48]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67173,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [22:47:48]process_action_free close_receipt [22:47:48]json_value_free [22:47:48]json_value_free done [22:47:48]process_json_proto returns [22:47:48]Send response to host [22:47:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67173,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [22:47:48]free response buf [22:47:48]execute_script done [22:47:48]execute_script returns [22:47:48]free content buf [22:47:48]Sock 7.Close socket [22:47:48]Sock 7.Thread stoped [22:47:50]OFD Sender: No OFD packet to send [22:47:55]OFD Sender: No OFD packet to send [22:48:00]OFD Sender: No OFD packet to send [22:48:05]OFD Sender: No OFD packet to send [22:48:10]OFD Sender: No OFD packet to send [22:48:15]OFD Sender: No OFD packet to send [22:48:20]OFD Sender: No OFD packet to send [22:48:25]OFD Sender: No OFD packet to send [22:48:30]OFD Sender: No OFD packet to send [22:48:35]OFD Sender: No OFD packet to send [22:48:40]OFD Sender: No OFD packet to send [22:48:45]OFD Sender: No OFD packet to send [22:48:50]OFD Sender: No OFD packet to send [22:48:55]OFD Sender: No OFD packet to send [22:49:00]OFD Sender: No OFD packet to send [22:49:05]OFD Sender: No OFD packet to send [22:49:10]OFD Sender: No OFD packet to send [22:49:15]OFD Sender: No OFD packet to send [22:49:20]OFD Sender: No OFD packet to send [22:49:25]OFD Sender: No OFD packet to send [22:49:30]OFD Sender: No OFD packet to send [22:49:35]OFD Sender: No OFD packet to send [22:49:40]OFD Sender: No OFD packet to send [22:49:45]OFD Sender: No OFD packet to send [22:49:50]OFD Sender: No OFD packet to send [22:49:55]OFD Sender: No OFD packet to send [22:50:00]OFD Sender: No OFD packet to send [22:50:05]OFD Sender: No OFD packet to send [22:50:10]OFD Sender: No OFD packet to send [22:50:15]OFD Sender: No OFD packet to send [22:50:20]OFD Sender: No OFD packet to send [22:50:25]OFD Sender: No OFD packet to send [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:55]OFD Sender: No OFD packet to send [22:51:00]OFD Sender: No OFD packet to send [22:51:05]OFD Sender: No OFD packet to send [22:51:10]OFD Sender: No OFD packet to send [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:25]OFD Sender: No OFD packet to send [22:51:30]OFD Sender: No OFD packet to send [22:51:35]OFD Sender: No OFD packet to send [22:51:40]OFD Sender: No OFD packet to send [22:51:45]OFD Sender: No OFD packet to send [22:51:50]OFD Sender: No OFD packet to send [22:51:55]OFD Sender: No OFD packet to send [22:52:00]OFD Sender: No OFD packet to send [22:52:05]OFD Sender: No OFD packet to send [22:52:10]OFD Sender: No OFD packet to send [22:52:15]OFD Sender: No OFD packet to send [22:52:20]OFD Sender: No OFD packet to send [22:52:25]OFD Sender: No OFD packet to send [22:52:30]OFD Sender: No OFD packet to send [22:52:35]OFD Sender: No OFD packet to send [22:52:40]OFD Sender: No OFD packet to send [22:52:45]OFD Sender: No OFD packet to send [22:52:50]OFD Sender: No OFD packet to send [22:52:55]OFD Sender: No OFD packet to send [22:53:00]OFD Sender: No OFD packet to send [22:53:05]OFD Sender: No OFD packet to send [22:53:10]OFD Sender: No OFD packet to send [22:53:15]OFD Sender: No OFD packet to send [22:53:20]OFD Sender: No OFD packet to send [22:53:25]OFD Sender: No OFD packet to send [22:53:30]OFD Sender: No OFD packet to send [22:53:35]OFD Sender: No OFD packet to send [22:53:40]OFD Sender: No OFD packet to send [22:53:45]OFD Sender: No OFD packet to send [22:53:50]OFD Sender: No OFD packet to send [22:53:55]OFD Sender: No OFD packet to send [22:54:00]OFD Sender: No OFD packet to send [22:54:05]OFD Sender: No OFD packet to send [22:54:10]OFD Sender: No OFD packet to send [22:54:15]OFD Sender: No OFD packet to send [22:54:20]OFD Sender: No OFD packet to send [22:54:25]OFD Sender: No OFD packet to send [22:54:28]accept exits with 9 [22:54:28]New connection [22:54:28]New thread 3066731876 created [22:54:28]Thread 3066588516 joined [22:54:28]Waiting for new connection... [22:54:28] Sock 9.Parse request [22:54:28]Sock 9.Check first char [22:54:28]Sock 9.First char is OK [22:54:28]request: POST /json_proto HTTP/1.0 [22:54:28]Method: POST [22:54:28]URL: /json_proto [22:54:28]Method is POST - this is cgi request [22:54:28]url: /json_proto [22:54:28]query_string will be loaded in cgi processing [22:54:28]execute_cgi json_proto POST (null) [22:54:28]execute_cgi path=json_proto method=POST [22:54:28]POST find Content-Length [22:54:28]Host: 172.17.41.195:8080 [22:54:28]Content-Length: 677 [22:54:28]Content-Type: application/json [22:54:28] [22:54:28]POST finish read [22:54:28]Found Content-Length = 677 [22:54:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507078", "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" : 3.000, "sum" : 200.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:28]execute_script... [22:54: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)507078", "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" : 3.000, "sum" : 200.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:28]POST & json_proto [22:54:28]process_json_proto [22:54:28]json parsed OK: [22:54:28]protocol is kg_v1.0 [22:54:28]action value=close_receipt [22:54:28]process_action close_receipt [22:54:28]cmd_close_receipt [22:54:28]MH_GetDate [22:54:28]Write to MH i2c: F0 00 00 82 15 86 [22:54:28]Write i2c OK [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: F0 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: F0 09 00 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: F0 09 00 82 15 00 A5 EB 43 66 FC 21 6F 64 B8 [22:54:28]GetLastDocTimeStamp 1715726863 [22:54:28]current date 1715727269 [22:54:28]FM_GetShiftState [22:54:28]SAM_PROTO_GetShiftState [22:54:28]wFMCommunicate request_size=4 [22:54:28]MH_SAM_APDU [22:54:28]CAPDU: 80 13 01 00 [22:54:28]Write to MH i2c: E2 08 00 83 15 80 13 01 00 00 00 00 00 15 [22:54:28]Write i2c OK [22:54:28]MH_I2C_Read... [22:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:28]Read from MH i2c: E2 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: E2 0E 00 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: E2 0E 00 83 15 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 DD [22:54:28]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [22:54:28]wFMCommunicate OK [22:54:28]SAM_PROTO_GetShiftState done [22:54:28]FM_GetShiftState done [22:54:28]opened in 1715646054 [22:54:28]opened+sec_in_day 1715732454 [22:54:28]quantity*price = 20040 [22:54:28]sum+1 = 20041 [22:54:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 181 14.05.2024 22:54 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67174 ФПД: 50314460262196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T225429&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67174&fm=50314460262196&tin=02508201610067®Number=0000000000091845&sum=20000 [22:54:29]StoreToDocumentArchive [22:54:29]shift 355 fd 67174 [22:54:29]save to /storage/0355/doc_00067174 [22:54:29]save last doc name /storage/0355/doc_00067174 to /storage/kkm_last_doc_name [22:54:29]save OK [22:54:29]Clear old archive folders... [22:54:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:54:29]tlvbuf is 003BBC10 [22:54:29]SAM_PROTO_ClearQueue [22:54:29]wFMCommunicate request_size=4 [22:54:29]MH_SAM_APDU [22:54:29]CAPDU: 80 09 00 00 [22:54:29]Write to MH i2c: E2 08 00 90 15 80 09 00 00 00 00 00 00 17 [22:54:29]Write i2c OK [22:54:29]MH_I2C_Read... [22:54:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:54:29]Read from MH i2c: E2 [22:54:29]MH_I2C_Read... [22:54:29]Read from MH i2c: E2 03 00 [22:54:29]MH_I2C_Read... [22:54:29]Read from MH i2c: E2 03 00 90 15 00 90 00 19 [22:54:29]RAPDU: 90 00 [22:54:29]wFMCommunicate OK [22:54:29]SAM_PROTO_ClearQueue done [22:54:29]KKMCreateOFDPacket [22:54:29]OFDProtocolAddRootSTLVToBuf [22:54:29]FM_MakeSignedData [22:54:29]FM_MakeSignedData [22:54:29]SAM_PROTO_SignData [22:54:29]wFMCommunicate request_size=4 [22:54:29]MH_SAM_APDU [22:54:29]CAPDU: 80 0D 01 02 [22:54:29]Write to MH i2c: E2 08 00 91 15 80 0D 01 02 00 00 00 00 1F [22:54:29]Write i2c OK [22:54:29]MH_I2C_Read... [22:54:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:54:29]Read from MH i2c: E2 [22:54:29]MH_I2C_Read... [22:54:29]Read from MH i2c: E2 03 00 [22:54:29]MH_I2C_Read... [22:54:29]Read from MH i2c: E2 03 00 91 15 00 90 00 1A [22:54:29]RAPDU: 90 00 [22:54:29]wFMCommunicate OK [22:54:29]wFMCommunicate request_size=255 [22:54:29]MH_SAM_APDU [22:54:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 A5 EB 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 2D [22:54:29]Write to MH i2c: E2 02 01 92 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 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 A5 EB 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 2D 00 00 8A [22:54:29]Write i2c OK [22:54:29]MH_I2C_Read... [22:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:30]Read from MH i2c: E2 [22:54:30]MH_I2C_Read... [22:54:30]Read from MH i2c: E2 03 00 [22:54:30]MH_I2C_Read... [22:54:30]Read from MH i2c: E2 03 00 92 15 00 90 00 1B [22:54:30]RAPDU: 90 00 [22:54:30]wFMCommunicate OK [22:54:30]wFMCommunicate request_size=10 [22:54:30]MH_SAM_APDU [22:54:30]CAPDU: 80 0D 02 02 05 C2 BF 87 EF 34 [22:54:30]Write to MH i2c: E2 0D 00 93 15 80 0D 02 02 05 00 C2 BF 87 EF 34 00 00 57 [22:54:30]Write i2c OK [22:54:30]MH_I2C_Read... [22:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:30]Read from MH i2c: E2 [22:54:30]MH_I2C_Read... [22:54:30]Read from MH i2c: E2 03 00 [22:54:30]MH_I2C_Read... [22:54:30]Read from MH i2c: E2 03 00 93 15 00 90 00 1C [22:54:30]RAPDU: 90 00 [22:54:30]wFMCommunicate OK [22:54:30]wFMCommunicate request_size=4 [22:54:30]MH_SAM_APDU [22:54:30]CAPDU: 80 0D 03 02 [22:54:30]Write to MH i2c: E2 08 00 94 15 80 0D 03 02 00 00 00 00 24 [22:54:30]Write i2c OK [22:54:30]MH_I2C_Read... [22:54:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:54:30]Read from MH i2c: E2 [22:54:30]MH_I2C_Read... [22:54:30]Read from MH i2c: E2 0B 00 [22:54:30]MH_I2C_Read... [22:54:30]Read from MH i2c: E2 0B 00 94 15 00 E2 24 36 A0 77 F9 39 2A 90 00 D4 [22:54:30]RAPDU: E2 24 36 A0 77 F9 39 2A 90 00 [22:54:30]wFMCommunicate OK [22:54:30]SAM_PROTO_SignData done [22:54:30]FM_MakeSignedData done [22:54:30]CreateOFDProtocolMessage [22:54:30]wFMCommunicate request_size=4 [22:54:30]MH_SAM_APDU [22:54:30]CAPDU: 80 11 00 00 [22:54:30]Write to MH i2c: E2 08 00 95 15 80 11 00 00 00 00 00 00 24 [22:54:30]Write i2c OK [22:54:30]MH_I2C_Read... [22:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:30]Read from MH i2c: E2 [22:54:30]MH_I2C_Read... [22:54:30]Read from MH i2c: E2 17 00 [22:54:30]MH_I2C_Read... [22:54:30]Read from MH i2c: E2 17 00 95 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 7A [22:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:54:30]wFMCommunicate OK [22:54:30]CreateOFDProtocolMessage done [22:54:30]OFDSenderStorePacket 67174 [22:54:30]StoreOFDPacket docnum=67174 [22:54:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 0F 40 07 01 7C 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 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 A5 EB 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 2D C2 BF 87 EF 34 E2 24 36 A0 77 F9 39 2A [22:54:30]CheckFolder [22:54:30]dirname=/storage/ofd_packets [22:54:30]CheckFolder done [22:54:30]ProducePacketName [22:54:30]name=ofd_packets/00067174 [22:54:30]NVStorageSaveData ofd_packets/00067174 [22:54:30]File name is /storage/ofd_packets/00067174 [22:54:30]Write 301 bytes [22:54:30]NVStorageSaveData done [22:54:30]OFDSenderStorePacket done [22:54:30]KKMCreateOFDPacket done [22:54:30]NVStorageSaveData kkm_last_timestamp [22:54:30]File name is /storage/kkm_last_timestamp [22:54:30]Write 4 bytes [22:54:30]NVStorageSaveData done [22:54:30]ExternCall_PrintAddStr [22:54:30]wPrintStart [22:54:30]Write to MH i2c: 01 00 00 96 15 AB [22:54:30]Write i2c OK [22:54:30]MH_I2C_Read... [22:54:30]Read from MH i2c: 01 [22:54:30]MH_I2C_Read... [22:54:30]Read from MH i2c: 01 07 00 [22:54:30]MH_I2C_Read... [22:54:30]Read from MH i2c: 01 07 00 96 15 00 00 00 00 00 FF 0F C0 [22:54:30]RasterBufferAndPrint [22:54:30]line Счет N : (1)507078 [22:54:30]line ИНН: 02508201610067 [22:54:30]line Контрольно-Кассовый Чек [22:54:30]line ПРОДАЖА [22:54:30]line ТРК (МРК, ГНК) : 43 [22:54:30]line Товар: 2710124130 [22:54:30]line Аи-92-К-5 [22:54:30]line 3.000 * 66.80 [22:54:30]line = 200.40 [22:54:30]line НДС 12% НСП 1% [22:54:30]line > о реализуемом товаре [22:54:30]line ОКРУГЛЕНИЕ: -0.40 [22:54:30]line ИТОГО: 200.00 [22:54:30]line Внесено: 200.00 [22:54:30]line СДАЧА: 0.00 [22:54:30]line НСП 1% : 1.77 [22:54:30]line НДС 12% : 21.28 [22:54:30]line Наличными: 200.00 [22:54:30]line Безнал.: 0.00 [22:54:30]line Место: АЗС № 91 "Партнер Нефть" [22:54:30]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [22:54:30]line СНО: Общий режим [22:54:30]line Чек 181 14.05.2024 22:54 [22:54:30]line Смена: 355 ФФД: 1.0 [22:54:30]line ЗНМ: 0300000119 [22:54:30]line РНМ: 0000000000091845 [22:54:30]line Версия ККМ: 001 [22:54:30]line ФМ: 0000000000871829 [22:54:30]line ФД: 67174 [22:54:30]line ФПД: 50314460262196 [22:54:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T225429&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67174&fm=50314460262196&tin=02508201610067®Number=0000000000091845&sum=20000 [22:54:30]written 0, free lines is 4095 [22:54:30]OFD Sender: Processing packet 67174 [packets to send 35, broken 34] [22:54:30]ProducePacketName [22:54:30]name=ofd_packets/00067174 [22:54:30]OFD Sender: To server: pG, [22:54:30]CommunicateWithHost lk.salyk.kg:30040 [22:54:30]ConnectInit lk.salyk.kg [22:54:30]Connected sock=10 [22:54:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 0F 40 07 01 7C 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 B8 0B 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 48 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 A5 EB 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 2D C2 BF 87 EF 34 E2 24 36 A0 77 F9 39 2A [22:54: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 92 1D 47 00 66 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 66 06 01 00 F4 03 04 00 84 93 43 66 B6 04 01 00 00 7C AC 53 6A 23 08 C5 B0 [22:54:30]CommunicateWithHost err = 0 [22:54:30]CheckOFDResponse [22:54:30]1017 (14) - 77093643461234 [22:54:30]1041 (16) - 0000000000871829 [22:54:30]1040 (4) - 67174 [22:54:30]1012 (4) - 14.05.2024 16:38 [22:54:30]1206 (1) - 0 [22:54:30]OFD Sender: Remove packet 67174 [22:54:30]ProducePacketName [22:54:30]name=ofd_packets/00067174 [22:54:30]NVStorageDeleteData [22:54:31]Write to MH i2c: 01 00 00 C0 15 D5 [22:54:31]Write i2c OK [22:54:31]MH_I2C_Read... [22:54:31]Read from MH i2c: 01 [22:54:31]MH_I2C_Read... [22:54:31]Read from MH i2c: 01 07 00 [22:54:31]MH_I2C_Read... [22:54:31]Read from MH i2c: 01 07 00 C0 15 00 00 00 00 00 CE 0C B6 [22:54:31]RasterBufferAndPrint [22:54:31]line [22:54:31]line [22:54:31]line [22:54:31]line [22:54:31]line [22:54:31]written 0, free lines is 3287 [22:54:31]MH_Cut [22:54:31]Write to MH i2c: D1 01 00 C7 15 01 AE [22:54:31]Write i2c OK [22:54:31]MH_I2C_Read... [22:54:31]Read from MH i2c: D1 [22:54:31]MH_I2C_Read... [22:54:31]Read from MH i2c: D1 01 00 [22:54:31]MH_I2C_Read... [22:54:31]Read from MH i2c: D1 01 00 C7 15 00 AD [22:54:31]Write to MH i2c: 01 00 00 C8 15 DD [22:54:31]Write i2c OK [22:54:31]MH_I2C_Read... [22:54:31]OFD Sender: No OFD packet to send [22:54:31]*** Cut start [22:54:31]*** Purtial cut [22:54:31]*** Stage 1: CUTSNS_PIN = 1 [22:54:32]Read from MH i2c: 01 [22:54:32]MH_I2C_Read... [22:54:32]*** Stop cut motor [22:54:32]*** Cut end [22:54:32]Read from MH i2c: 01 07 00 [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: 01 07 00 C8 15 00 00 00 00 00 FF 0F F2 [22:54:32]process_action close_receipt done [22:54:32]requested_data is exist [22:54:32]produce_requested_data [22:54:32]requested_item fm.sn is exist - process it [22:54:32]wFMCommunicate request_size=4 [22:54:32]MH_SAM_APDU [22:54:32]CAPDU: 80 11 00 00 [22:54:32]Write to MH i2c: E2 08 00 C9 15 80 11 00 00 00 00 00 00 58 [22:54:32]Write i2c OK [22:54:32]MH_I2C_Read... [22:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:32]Read from MH i2c: E2 [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: E2 17 00 [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: E2 17 00 C9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AE [22:54:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [22:54:32]wFMCommunicate OK [22:54:32]requested_item fd.num is exist - process it [22:54:32]SAM_PROTO_GetFieldsCounters [22:54:32]wFMCommunicate request_size=4 [22:54:32]MH_SAM_APDU [22:54:32]CAPDU: 80 13 00 00 [22:54:32]Write to MH i2c: E2 08 00 CA 15 80 13 00 00 00 00 00 00 5B [22:54:32]Write i2c OK [22:54:32]MH_I2C_Read... [22:54:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:54:32]Read from MH i2c: E2 [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: E2 62 00 [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: E2 62 00 CA 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 66 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [22:54: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 66 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:54:32]wFMCommunicate OK [22:54:32]SAM_PROTO_GetFieldsCounters done [22:54:32]requested_item shift.num is exist - process it [22:54:32]requested_item shift.opened is exist - process it [22:54:32]req_shift_opened [22:54:32]FM_GetShiftState [22:54:32]SAM_PROTO_GetShiftState [22:54:32]wFMCommunicate request_size=4 [22:54:32]MH_SAM_APDU [22:54:32]CAPDU: 80 13 01 00 [22:54:32]Write to MH i2c: E2 08 00 CB 15 80 13 01 00 00 00 00 00 5D [22:54:32]Write i2c OK [22:54:32]MH_I2C_Read... [22:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:32]Read from MH i2c: E2 [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: E2 0E 00 [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: E2 0E 00 CB 15 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 25 [22:54:32]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [22:54:32]wFMCommunicate OK [22:54:32]SAM_PROTO_GetShiftState done [22:54:32]FM_GetShiftState done [22:54:32]req_shift_opened done [22:54:32]requested_item shift.open_date is exist - process it [22:54:32]req_shift_open_date [22:54:32]req_shift_open_date done [22:54:32]produce_requested_data done [22:54:32]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67174,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [22:54:32]process_action_free close_receipt [22:54:32]json_value_free [22:54:32]json_value_free done [22:54:32]process_json_proto returns [22:54:32]Send response to host [22:54:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67174,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [22:54:32]free response buf [22:54:32]execute_script done [22:54:32]execute_script returns [22:54:32]free content buf [22:54:32]Sock 9.Close socket [22:54:32]Sock 9.Thread stoped [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:16]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:16]OFD Sender: No OFD packet to send [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:36]OFD Sender: No OFD packet to send [23:04:41]OFD Sender: No OFD packet to send [23:04:46]OFD Sender: No OFD packet to send [23:04:51]OFD Sender: No OFD packet to send [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:11]OFD Sender: No OFD packet to send [23:05:16]OFD Sender: No OFD packet to send [23:05:21]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]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:47]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:07]OFD Sender: No OFD packet to send [23:06:12]OFD Sender: No OFD packet to send [23:06:17]OFD Sender: No OFD packet to send [23:06:22]OFD Sender: No OFD packet to send [23:06:27]OFD Sender: No OFD packet to send [23:06:32]OFD Sender: No OFD packet to send [23:06:37]OFD Sender: No OFD packet to send [23:06:42]OFD Sender: No OFD packet to send [23:06:47]OFD Sender: No OFD packet to send [23:06:52]OFD Sender: No OFD packet to send [23:06:57]OFD Sender: No OFD packet to send [23:07:02]OFD Sender: No OFD packet to send [23:07:07]OFD Sender: No OFD packet to send [23:07:12]OFD Sender: No OFD packet to send [23:07:17]OFD Sender: No OFD packet to send [23:07:22]OFD Sender: No OFD packet to send [23:07:27]OFD Sender: No OFD packet to send [23:07:32]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:52]OFD Sender: No OFD packet to send [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:32]OFD Sender: No OFD packet to send [23:08:37]OFD Sender: No OFD packet to send [23:08:42]OFD Sender: No OFD packet to send [23:08:47]OFD Sender: No OFD packet to send [23:08:52]OFD Sender: No OFD packet to send [23:08:57]OFD Sender: No OFD packet to send [23:09:02]OFD Sender: No OFD packet to send [23:09:07]OFD Sender: No OFD packet to send [23:09:12]OFD Sender: No OFD packet to send [23:09:17]OFD Sender: No OFD packet to send [23:09:22]OFD Sender: No OFD packet to send [23:09:27]OFD Sender: No OFD packet to send [23:09:32]OFD Sender: No OFD packet to send [23:09:37]OFD Sender: No OFD packet to send [23:09:42]OFD Sender: No OFD packet to send [23:09:47]OFD Sender: No OFD packet to send [23:09:52]OFD Sender: No OFD packet to send [23:09:57]OFD Sender: No OFD packet to send [23:10:02]OFD Sender: No OFD packet to send [23:10:07]OFD Sender: No OFD packet to send [23:10:12]OFD Sender: No OFD packet to send [23:10:17]OFD Sender: No OFD packet to send [23:10:22]OFD Sender: No OFD packet to send [23:10:27]OFD Sender: No OFD packet to send [23:10:32]OFD Sender: No OFD packet to send [23:10:37]OFD Sender: No OFD packet to send [23:10:42]OFD Sender: No OFD packet to send [23:10:47]OFD Sender: No OFD packet to send [23:10:52]OFD Sender: No OFD packet to send [23:10:57]OFD Sender: No OFD packet to send [23:11:02]OFD Sender: No OFD packet to send [23:11:07]OFD Sender: No OFD packet to send [23:11:12]OFD Sender: No OFD packet to send [23:11:17]OFD Sender: No OFD packet to send [23:11:22]OFD Sender: No OFD packet to send [23:11:27]OFD Sender: No OFD packet to send [23:11:32]OFD Sender: No OFD packet to send [23:11:37]OFD Sender: No OFD packet to send [23:11:42]OFD Sender: No OFD packet to send [23:11:47]OFD Sender: No OFD packet to send [23:11:52]OFD Sender: No OFD packet to send [23:11:57]OFD Sender: No OFD packet to send [23:12:02]OFD Sender: No OFD packet to send [23:12:07]OFD Sender: No OFD packet to send [23:12:12]OFD Sender: No OFD packet to send [23:12:17]OFD Sender: No OFD packet to send [23:12:22]OFD Sender: No OFD packet to send [23:12:27]OFD Sender: No OFD packet to send [23:12:32]OFD Sender: No OFD packet to send [23:12:37]OFD Sender: No OFD packet to send [23:12:42]OFD Sender: No OFD packet to send [23:12:47]OFD Sender: No OFD packet to send [23:12:52]OFD Sender: No OFD packet to send [23:12:57]OFD Sender: No OFD packet to send [23:13:02]OFD Sender: No OFD packet to send [23:13:07]OFD Sender: No OFD packet to send [23:13:12]OFD Sender: No OFD packet to send [23:13:17]OFD Sender: No OFD packet to send [23:13:22]OFD Sender: No OFD packet to send [23:13:27]OFD Sender: No OFD packet to send [23:13:32]OFD Sender: No OFD packet to send [23:13:37]OFD Sender: No OFD packet to send [23:13:42]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:53]accept exits with 7 [23:13:53]New connection [23:13:53]New thread 3066588516 created [23:13:53]Thread 3066731876 joined [23:13:53]Waiting for new connection... [23:13:53] Sock 7.Parse request [23:13:53]Sock 7.Check first char [23:13:53]Sock 7.First char is OK [23:13:53]request: POST /json_proto HTTP/1.0 [23:13:53]Method: POST [23:13:53]URL: /json_proto [23:13:53]Method is POST - this is cgi request [23:13:53]url: /json_proto [23:13:53]query_string will be loaded in cgi processing [23:13:53]execute_cgi json_proto POST (null) [23:13:53]execute_cgi path=json_proto method=POST [23:13:53]POST find Content-Length [23:13:53]Host: 172.17.41.195:8080 [23:13:53]Content-Length: 1179 [23:13:53]Content-Type: application/json [23:13:53] [23:13:53]POST finish read [23:13:53]Found Content-Length = 1179 [23:13: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)507079\u000A14.05.2024 22:56\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.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" ] } } [23:13:53]execute_script... [23:13: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)507079\u000A14.05.2024 22:56\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.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" ] } } [23:13:53]POST & json_proto [23:13:53]process_json_proto [23:13:53]json parsed OK: [23:13:53]protocol is kg_v1.0 [23:13:53]action value=print_text [23:13:53]process_action print_text [23:13:53]cmd_print_text [23:13:53]ExternCall_PrintAddStr [23:13:53]wPrintStart [23:13:53]Write to MH i2c: 01 00 00 CC 15 E1 [23:13:53]Write i2c OK [23:13:53]MH_I2C_Read... [23:13:53]Read from MH i2c: 01 [23:13:53]MH_I2C_Read... [23:13:53]Read from MH i2c: 01 07 00 [23:13:53]MH_I2C_Read... [23:13:53]Read from MH i2c: 01 07 00 CC 15 00 00 00 00 00 FF 0F F6 [23:13:53]RasterBufferAndPrint [23:13:53]line *****ТОВАРНЫЙ ЧЕК***** [23:13:53]line АЗС-91 [23:13:53]line Партнер нефть [23:13:53]line 02508201610067 [23:13:53]line Кассир : Адишов И. [23:13:53]line Счет N : (1)507079 [23:13:53]line 14.05.2024 22:56 [23:13:53]line ПРОДАЖА [23:13:53]line ТРК (МРК, ГНК): 11 [23:13:53]line Вид ГСМ : 2710194210 [23:13:53]line ДТ-К-5 [23:13:53]line 20.090 x 74.70 [23:13:53]line ИТОГ: 1500.72 [23:13:53]line Тип оплаты: Талоны: Топливная Карта [23:13:53]line 02750 [23:13:53]line ______________________ [23:13:53]line (подпись) [23:13:53]written 0, free lines is 4095 [23:13:54]Write to MH i2c: 01 00 00 E0 15 F5 [23:13:54]Write i2c OK [23:13:54]MH_I2C_Read... [23:13:54]Read from MH i2c: 01 [23:13:54]MH_I2C_Read... [23:13:54]Read from MH i2c: 01 07 00 [23:13:54]MH_I2C_Read... [23:13:54]Read from MH i2c: 01 07 00 E0 15 00 00 00 00 00 0D 0E 17 [23:13:54]RasterBufferAndPrint [23:13:54]line [23:13:54]line [23:13:54]line [23:13:54]line [23:13:54]line [23:13:54]written 0, free lines is 3599 [23:13:54]MH_Cut [23:13:54]Write to MH i2c: D1 01 00 E7 15 01 CE [23:13:54]Write i2c OK [23:13:54]MH_I2C_Read... [23:13:54]Read from MH i2c: D1 [23:13:54]MH_I2C_Read... [23:13:54]Read from MH i2c: D1 01 00 [23:13:54]MH_I2C_Read... [23:13:54]Read from MH i2c: D1 01 00 E7 15 00 CD [23:13:54]Write to MH i2c: 01 00 00 E8 15 FD [23:13:54]Write i2c OK [23:13:54]MH_I2C_Read... [23:13:54]*** Cut start [23:13:54]*** Purtial cut [23:13:54]*** CUTSNS_PIN = 0 [23:13:55]*** Stage 1: CUTSNS_PIN = 1 [23:13:56]Read from MH i2c: 01 [23:13:56]MH_I2C_Read... [23:13:56]*** Stop cut motor [23:13:56]*** Cut end [23:13:56]Read from MH i2c: 01 07 00 [23:13:56]MH_I2C_Read... [23:13:56]Read from MH i2c: 01 07 00 E8 15 00 00 00 00 00 FF 0F 12 [23:13:56]process_action print_text done [23:13:56]requested_data is exist [23:13:56]produce_requested_data [23:13:56]requested_item fm.sn is exist - process it [23:13:56]wFMCommunicate request_size=4 [23:13:56]MH_SAM_APDU [23:13:56]CAPDU: 80 11 00 00 [23:13:56]Write to MH i2c: E2 08 00 E9 15 80 11 00 00 00 00 00 00 78 [23:13:56]Write i2c OK [23:13:56]MH_I2C_Read... [23:13:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:56]Read from MH i2c: E2 [23:13:56]MH_I2C_Read... [23:13:56]Read from MH i2c: E2 17 00 [23:13:56]MH_I2C_Read... [23:13:56]Read from MH i2c: E2 17 00 E9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CE [23:13: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:13:56]wFMCommunicate OK [23:13:56]requested_item fd.num is exist - process it [23:13:56]SAM_PROTO_GetFieldsCounters [23:13:56]wFMCommunicate request_size=4 [23:13:56]MH_SAM_APDU [23:13:56]CAPDU: 80 13 00 00 [23:13:56]Write to MH i2c: E2 08 00 EA 15 80 13 00 00 00 00 00 00 7B [23:13:56]Write i2c OK [23:13:56]MH_I2C_Read... [23:13:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:13:56]Read from MH i2c: E2 [23:13:56]MH_I2C_Read... [23:13:56]Read from MH i2c: E2 62 00 [23:13:56]MH_I2C_Read... [23:13:56]Read from MH i2c: E2 62 00 EA 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 66 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [23:13: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 66 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:13:56]wFMCommunicate OK [23:13:56]SAM_PROTO_GetFieldsCounters done [23:13:56]requested_item shift.num is exist - process it [23:13:56]requested_item shift.opened is exist - process it [23:13:56]req_shift_opened [23:13:56]FM_GetShiftState [23:13:56]SAM_PROTO_GetShiftState [23:13:56]wFMCommunicate request_size=4 [23:13:56]MH_SAM_APDU [23:13:56]CAPDU: 80 13 01 00 [23:13:56]Write to MH i2c: E2 08 00 EB 15 80 13 01 00 00 00 00 00 7D [23:13:56]Write i2c OK [23:13:56]MH_I2C_Read... [23:13:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:56]Read from MH i2c: E2 [23:13:56]MH_I2C_Read... [23:13:56]Read from MH i2c: E2 0E 00 [23:13:56]MH_I2C_Read... [23:13:56]Read from MH i2c: E2 0E 00 EB 15 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 45 [23:13:56]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [23:13:56]wFMCommunicate OK [23:13:56]SAM_PROTO_GetShiftState done [23:13:56]FM_GetShiftState done [23:13:56]req_shift_opened done [23:13:56]requested_item shift.open_date is exist - process it [23:13:56]req_shift_open_date [23:13:56]req_shift_open_date done [23:13:56]produce_requested_data done [23:13:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67174,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [23:13:56]process_action_free print_text [23:13:56]json_value_free [23:13:56]json_value_free done [23:13:56]process_json_proto returns [23:13:56]Send response to host [23:13:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67174,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [23:13:56]free response buf [23:13:56]execute_script done [23:13:56]execute_script returns [23:13:56]free content buf [23:13:56]Sock 7.Close socket [23:13:56]Sock 7.Thread stoped [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]accept exits with 9 [23:14:37]New connection [23:14:37]New thread 3066731876 created [23:14:37]Thread 3066588516 joined [23:14:37]Waiting for new connection... [23:14:37] Sock 9.Parse request [23:14:37]Sock 9.Check first char [23:14:37]Sock 9.First char is OK [23:14:37]request: POST /json_proto HTTP/1.0 [23:14:37]Method: POST [23:14:37]URL: /json_proto [23:14:37]Method is POST - this is cgi request [23:14:37]url: /json_proto [23:14:37]query_string will be loaded in cgi processing [23:14:37]execute_cgi json_proto POST (null) [23:14:37]execute_cgi path=json_proto method=POST [23:14:37]POST find Content-Length [23:14:37]Host: 172.17.41.195:8080 [23:14:37]Content-Length: 674 [23:14:37]Content-Type: application/json [23:14:37] [23:14:37]POST finish read [23:14:37]Found Content-Length = 674 [23:14:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507080", "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.900, "sum" : 366.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 366.00, "total" : 366.00, "payments": [ { "type": 0, "sum" : 366.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:37]execute_script... [23:14: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)507080", "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.900, "sum" : 366.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 366.00, "total" : 366.00, "payments": [ { "type": 0, "sum" : 366.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:37]POST & json_proto [23:14:37]process_json_proto [23:14:37]json parsed OK: [23:14:37]protocol is kg_v1.0 [23:14:37]action value=close_receipt [23:14:37]process_action close_receipt [23:14:37]cmd_close_receipt [23:14:37]MH_GetDate [23:14:37]Write to MH i2c: F0 00 00 EC 15 F0 [23:14:37]Write i2c OK [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: F0 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: F0 09 00 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: F0 09 00 EC 15 00 5E F0 43 66 FC 21 6F 64 E0 [23:14:37]GetLastDocTimeStamp 1715727269 [23:14:37]current date 1715728478 [23:14:37]FM_GetShiftState [23:14:37]SAM_PROTO_GetShiftState [23:14:37]wFMCommunicate request_size=4 [23:14:37]MH_SAM_APDU [23:14:37]CAPDU: 80 13 01 00 [23:14:37]Write to MH i2c: E2 08 00 ED 15 80 13 01 00 00 00 00 00 7F [23:14:37]Write i2c OK [23:14:37]MH_I2C_Read... [23:14:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:37]Read from MH i2c: E2 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: E2 0E 00 [23:14:37]MH_I2C_Read... [23:14:37]Read from MH i2c: E2 0E 00 ED 15 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 47 [23:14:37]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [23:14:37]wFMCommunicate OK [23:14:37]SAM_PROTO_GetShiftState done [23:14:37]FM_GetShiftState done [23:14:37]opened in 1715646054 [23:14:37]opened+sec_in_day 1715732454 [23:14:37]quantity*price = 36603 [23:14:37]sum+1 = 36604 [23:14:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 366.00 Внесено: 366.00 СДАЧА: 0.00 НСП 1% : 3.24 НДС 12% : 38.87 Наличными: 366.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 182 14.05.2024 23:14 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67175 ФПД: 179692418410691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T231438&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67175&fm=179692418410691&tin=02508201610067®Number=0000000000091845&sum=36600 [23:14:38]StoreToDocumentArchive [23:14:38]shift 355 fd 67175 [23:14:38]save to /storage/0355/doc_00067175 [23:14:38]save last doc name /storage/0355/doc_00067175 to /storage/kkm_last_doc_name [23:14:38]save OK [23:14:38]Clear old archive folders... [23:14:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:14:38]tlvbuf is 00380E00 [23:14:38]SAM_PROTO_ClearQueue [23:14:38]wFMCommunicate request_size=4 [23:14:38]MH_SAM_APDU [23:14:38]CAPDU: 80 09 00 00 [23:14:38]Write to MH i2c: E2 08 00 FA 15 80 09 00 00 00 00 00 00 81 [23:14:38]Write i2c OK [23:14:38]MH_I2C_Read... [23:14:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:14:38]Read from MH i2c: E2 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 03 00 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 03 00 FA 15 00 90 00 83 [23:14:38]RAPDU: 90 00 [23:14:38]wFMCommunicate OK [23:14:38]SAM_PROTO_ClearQueue done [23:14:38]KKMCreateOFDPacket [23:14:38]OFDProtocolAddRootSTLVToBuf [23:14:38]FM_MakeSignedData [23:14:38]FM_MakeSignedData [23:14:38]SAM_PROTO_SignData [23:14:38]wFMCommunicate request_size=4 [23:14:38]MH_SAM_APDU [23:14:38]CAPDU: 80 0D 01 02 [23:14:38]Write to MH i2c: E2 08 00 FB 15 80 0D 01 02 00 00 00 00 89 [23:14:38]Write i2c OK [23:14:38]MH_I2C_Read... [23:14:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:14:38]Read from MH i2c: E2 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 03 00 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 03 00 FB 15 00 90 00 84 [23:14:38]RAPDU: 90 00 [23:14:38]wFMCommunicate OK [23:14:38]wFMCommunicate request_size=255 [23:14:38]MH_SAM_APDU [23:14:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 13 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 FB 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 0F 00 00 00 00 07 04 06 00 F8 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 5E F0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A3 6D E6 C4 [23:14:38]Write to MH i2c: E2 02 01 FC 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 24 13 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 FB 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 0F 00 00 00 00 07 04 06 00 F8 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 5E F0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A3 6D E6 C4 00 00 BE [23:14:38]Write i2c OK [23:14:38]MH_I2C_Read... [23:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:38]Read from MH i2c: E2 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 03 00 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 03 00 FC 15 00 90 00 85 [23:14:38]RAPDU: 90 00 [23:14:38]wFMCommunicate OK [23:14:38]wFMCommunicate request_size=7 [23:14:38]MH_SAM_APDU [23:14:38]CAPDU: 80 0D 02 02 02 A8 C3 [23:14:38]Write to MH i2c: E2 0A 00 FD 15 80 0D 02 02 02 00 A8 C3 00 00 FB [23:14:38]Write i2c OK [23:14:38]MH_I2C_Read... [23:14:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:38]Read from MH i2c: E2 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 03 00 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 03 00 FD 15 00 90 00 86 [23:14:38]RAPDU: 90 00 [23:14:38]wFMCommunicate OK [23:14:38]wFMCommunicate request_size=4 [23:14:38]MH_SAM_APDU [23:14:38]CAPDU: 80 0D 03 02 [23:14:38]Write to MH i2c: E2 08 00 FE 15 80 0D 03 02 00 00 00 00 8E [23:14:38]Write i2c OK [23:14:38]MH_I2C_Read... [23:14:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:38]Read from MH i2c: E2 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 0B 00 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 0B 00 FE 15 00 20 30 8C 14 67 4C 17 49 90 00 92 [23:14:38]RAPDU: 20 30 8C 14 67 4C 17 49 90 00 [23:14:38]wFMCommunicate OK [23:14:38]SAM_PROTO_SignData done [23:14:38]FM_MakeSignedData done [23:14:38]CreateOFDProtocolMessage [23:14:38]wFMCommunicate request_size=4 [23:14:38]MH_SAM_APDU [23:14:38]CAPDU: 80 11 00 00 [23:14:38]Write to MH i2c: E2 08 00 FF 15 80 11 00 00 00 00 00 00 8E [23:14:38]Write i2c OK [23:14:38]MH_I2C_Read... [23:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:38]Read from MH i2c: E2 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 17 00 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: E2 17 00 FF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 E4 [23:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:14:38]wFMCommunicate OK [23:14:38]CreateOFDProtocolMessage done [23:14:38]OFDSenderStorePacket 67175 [23:14:38]StoreOFDPacket docnum=67175 [23:14:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 1C 99 04 01 27 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 13 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 FB 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 0F 00 00 00 00 07 04 06 00 F8 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 5E F0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A3 6D E6 C4 A8 C3 20 30 8C 14 67 4C 17 49 [23:14:38]CheckFolder [23:14:38]dirname=/storage/ofd_packets [23:14:38]CheckFolder done [23:14:38]ProducePacketName [23:14:38]name=ofd_packets/00067175 [23:14:38]NVStorageSaveData ofd_packets/00067175 [23:14:38]File name is /storage/ofd_packets/00067175 [23:14:38]Write 298 bytes [23:14:38]NVStorageSaveData done [23:14:38]OFDSenderStorePacket done [23:14:38]KKMCreateOFDPacket done [23:14:38]NVStorageSaveData kkm_last_timestamp [23:14:38]File name is /storage/kkm_last_timestamp [23:14:38]Write 4 bytes [23:14:38]NVStorageSaveData done [23:14:38]ExternCall_PrintAddStr [23:14:38]wPrintStart [23:14:38]Write to MH i2c: 01 00 00 00 16 16 [23:14:38]Write i2c OK [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: 01 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: 01 07 00 [23:14:38]MH_I2C_Read... [23:14:38]Read from MH i2c: 01 07 00 00 16 00 00 00 00 00 FF 0F 2B [23:14:38]RasterBufferAndPrint [23:14:38]line Счет N : (1)507080 [23:14:38]line ИНН: 02508201610067 [23:14:38]line Контрольно-Кассовый Чек [23:14:38]line ПРОДАЖА [23:14:38]line ТРК (МРК, ГНК) : 11 [23:14:38]line Товар: 2710194210 [23:14:38]line ДТ-К-5 [23:14:38]line 4.900 * 74.70 [23:14:38]line = 366.03 [23:14:38]line НДС 12% НСП 1% [23:14:38]line > о реализуемом товаре [23:14:38]line ОКРУГЛЕНИЕ: -0.03 [23:14:38]line ИТОГО: 366.00 [23:14:38]line Внесено: 366.00 [23:14:38]line СДАЧА: 0.00 [23:14:38]line НСП 1% : 3.24 [23:14:38]line НДС 12% : 38.87 [23:14:38]line Наличными: 366.00 [23:14:38]line Безнал.: 0.00 [23:14:38]line Место: АЗС № 91 "Партнер Нефть" [23:14:38]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:14:38]line СНО: Общий режим [23:14:38]line Чек 182 14.05.2024 23:14 [23:14:38]line Смена: 355 ФФД: 1.0 [23:14:38]line ЗНМ: 0300000119 [23:14:38]line РНМ: 0000000000091845 [23:14:38]line Версия ККМ: 001 [23:14:38]line ФМ: 0000000000871829 [23:14:38]line ФД: 67175 [23:14:38]line ФПД: 179692418410691 [23:14:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T231438&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67175&fm=179692418410691&tin=02508201610067®Number=0000000000091845&sum=36600 [23:14:39]OFD Sender: Processing packet 67175 [packets to send 35, broken 34] [23:14:39]ProducePacketName [23:14:39]name=ofd_packets/00067175 [23:14:39]OFD Sender: To server: pG, [23:14:39]CommunicateWithHost lk.salyk.kg:30040 [23:14:39]ConnectInit lk.salyk.kg [23:14:39]written 0, free lines is 4095 [23:14:39]Connected sock=10 [23:14: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 1C 99 04 01 27 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 13 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 FB 8E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 0F 00 00 00 00 07 04 06 00 F8 8E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 5E F0 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 A3 6D E6 C4 A8 C3 20 30 8C 14 67 4C 17 49 [23:14: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 DF 8E 47 00 15 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 06 01 00 F4 03 04 00 3D 98 43 66 B6 04 01 00 00 68 47 B6 A6 72 DD D9 8F [23:14:39]CommunicateWithHost err = 0 [23:14:39]CheckOFDResponse [23:14:39]1017 (14) - 77093643461234 [23:14:39]1041 (16) - 0000000000871829 [23:14:39]1040 (4) - 67175 [23:14:39]1012 (4) - 14.05.2024 16:58 [23:14:39]1206 (1) - 0 [23:14:39]OFD Sender: Remove packet 67175 [23:14:39]ProducePacketName [23:14:39]name=ofd_packets/00067175 [23:14:39]NVStorageDeleteData [23:14:39]Write to MH i2c: 01 00 00 2A 16 40 [23:14:39]Write i2c OK [23:14:39]MH_I2C_Read... [23:14:39]Read from MH i2c: 01 [23:14:39]MH_I2C_Read... [23:14:39]Read from MH i2c: 01 07 00 [23:14:39]MH_I2C_Read... [23:14:39]Read from MH i2c: 01 07 00 2A 16 00 00 00 00 00 CE 0C 21 [23:14:39]RasterBufferAndPrint [23:14:39]line [23:14:39]line [23:14:39]line [23:14:39]line [23:14:39]line [23:14:39]written 0, free lines is 3287 [23:14:39]MH_Cut [23:14:39]Write to MH i2c: D1 01 00 31 16 01 19 [23:14:39]Write i2c OK [23:14:39]MH_I2C_Read... [23:14:39]Read from MH i2c: D1 [23:14:39]MH_I2C_Read... [23:14:39]Read from MH i2c: D1 01 00 [23:14:39]MH_I2C_Read... [23:14:39]Read from MH i2c: D1 01 00 31 16 00 18 [23:14:39]Write to MH i2c: 01 00 00 32 16 48 [23:14:39]Write i2c OK [23:14:39]MH_I2C_Read... [23:14:40]OFD Sender: No OFD packet to send [23:14:40]*** Cut start [23:14:40]*** Purtial cut [23:14:40]*** Stage 1: CUTSNS_PIN = 1 [23:14:40]Read from MH i2c: 01 [23:14:40]*** Stop cut motor [23:14:40]*** Cut end [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: 01 07 00 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: 01 07 00 32 16 00 00 00 00 00 FF 0F 5D [23:14:40]process_action close_receipt done [23:14:40]requested_data is exist [23:14:40]produce_requested_data [23:14:40]requested_item fm.sn is exist - process it [23:14:40]wFMCommunicate request_size=4 [23:14:40]MH_SAM_APDU [23:14:40]CAPDU: 80 11 00 00 [23:14:40]Write to MH i2c: E2 08 00 33 16 80 11 00 00 00 00 00 00 C3 [23:14:40]Write i2c OK [23:14:40]MH_I2C_Read... [23:14:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:40]Read from MH i2c: E2 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: E2 17 00 [23:14:40]MH_I2C_Read... [23:14:40]Read from MH i2c: E2 17 00 33 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 19 [23:14:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:14:40]wFMCommunicate OK [23:14:40]requested_item fd.num is exist - process it [23:14:40]SAM_PROTO_GetFieldsCounters [23:14:40]wFMCommunicate request_size=4 [23:14:40]MH_SAM_APDU [23:14:40]CAPDU: 80 13 00 00 [23:14:40]Write to MH i2c: E2 08 00 34 16 80 13 00 00 00 00 00 00 C6 [23:14:40]Write i2c OK [23:14:40]MH_I2C_Read... [23:14:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:14:41]Read from MH i2c: E2 [23:14:41]MH_I2C_Read... [23:14:41]Read from MH i2c: E2 62 00 [23:14:41]MH_I2C_Read... [23:14:41]Read from MH i2c: E2 62 00 34 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 67 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [23:14: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 67 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:14:41]wFMCommunicate OK [23:14:41]SAM_PROTO_GetFieldsCounters done [23:14:41]requested_item shift.num is exist - process it [23:14:41]requested_item shift.opened is exist - process it [23:14:41]req_shift_opened [23:14:41]FM_GetShiftState [23:14:41]SAM_PROTO_GetShiftState [23:14:41]wFMCommunicate request_size=4 [23:14:41]MH_SAM_APDU [23:14:41]CAPDU: 80 13 01 00 [23:14:41]Write to MH i2c: E2 08 00 35 16 80 13 01 00 00 00 00 00 C8 [23:14:41]Write i2c OK [23:14:41]MH_I2C_Read... [23:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:41]Read from MH i2c: E2 [23:14:41]MH_I2C_Read... [23:14:41]Read from MH i2c: E2 0E 00 [23:14:41]MH_I2C_Read... [23:14:41]Read from MH i2c: E2 0E 00 35 16 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 90 [23:14:41]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [23:14:41]wFMCommunicate OK [23:14:41]SAM_PROTO_GetShiftState done [23:14:41]FM_GetShiftState done [23:14:41]req_shift_opened done [23:14:41]requested_item shift.open_date is exist - process it [23:14:41]req_shift_open_date [23:14:41]req_shift_open_date done [23:14:41]produce_requested_data done [23:14:41]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67175,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [23:14:41]process_action_free close_receipt [23:14:41]json_value_free [23:14:41]json_value_free done [23:14:41]process_json_proto returns [23:14:41]Send response to host [23:14:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67175,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [23:14:41]free response buf [23:14:41]execute_script done [23:14:41]execute_script returns [23:14:41]free content buf [23:14:41]Sock 9.Close socket [23:14:41]Sock 9.Thread stoped [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:06]accept exits with 7 [23:19:06]New connection [23:19:06]New thread 3066588516 created [23:19:06]Thread 3066731876 joined [23:19:06]Waiting for new connection... [23:19:06] Sock 7.Parse request [23:19:06]Sock 7.Check first char [23:19:06]Sock 7.First char is OK [23:19:06]request: POST /json_proto HTTP/1.0 [23:19:06]Method: POST [23:19:06]URL: /json_proto [23:19:06]Method is POST - this is cgi request [23:19:06]url: /json_proto [23:19:06]query_string will be loaded in cgi processing [23:19:06]execute_cgi json_proto POST (null) [23:19:06]execute_cgi path=json_proto method=POST [23:19:06]POST find Content-Length [23:19:06]Host: 172.17.41.195:8080 [23:19:06]Content-Length: 677 [23:19:06]Content-Type: application/json [23:19:06] [23:19:06]POST finish read [23:19:06]Found Content-Length = 677 [23:19:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507081", "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" ] } } [23:19:06]execute_script... [23:19: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)507081", "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" ] } } [23:19:06]POST & json_proto [23:19:06]process_json_proto [23:19:06]json parsed OK: [23:19:06]protocol is kg_v1.0 [23:19:06]action value=close_receipt [23:19:06]process_action close_receipt [23:19:06]cmd_close_receipt [23:19:06]MH_GetDate [23:19:06]Write to MH i2c: F0 00 00 36 16 3B [23:19:06]Write i2c OK [23:19:06]MH_I2C_Read... [23:19:06]Read from MH i2c: F0 [23:19:06]MH_I2C_Read... [23:19:06]Read from MH i2c: F0 09 00 [23:19:06]MH_I2C_Read... [23:19:06]Read from MH i2c: F0 09 00 36 16 00 6C F1 43 66 FC 21 6F 64 3A [23:19:06]GetLastDocTimeStamp 1715728478 [23:19:06]current date 1715728748 [23:19:06]FM_GetShiftState [23:19:06]SAM_PROTO_GetShiftState [23:19:06]wFMCommunicate request_size=4 [23:19:06]MH_SAM_APDU [23:19:06]CAPDU: 80 13 01 00 [23:19:06]Write to MH i2c: E2 08 00 37 16 80 13 01 00 00 00 00 00 CA [23:19:06]Write i2c OK [23:19:06]MH_I2C_Read... [23:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:06]Read from MH i2c: E2 [23:19:06]MH_I2C_Read... [23:19:06]Read from MH i2c: E2 0E 00 [23:19:06]MH_I2C_Read... [23:19:06]Read from MH i2c: E2 0E 00 37 16 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 92 [23:19:06]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [23:19:06]wFMCommunicate OK [23:19:06]SAM_PROTO_GetShiftState done [23:19:06]FM_GetShiftState done [23:19:06]opened in 1715646054 [23:19:06]opened+sec_in_day 1715732454 [23:19:06]quantity*price = 40013 [23:19:06]sum+1 = 40014 [23:19:06]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 СНО: Общий режим Чек 183 14.05.2024 23:19 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67176 ФПД: 2360736291569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T231908&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67176&fm=2360736291569&tin=02508201610067®Number=0000000000091845&sum=40000 [23:19:08]StoreToDocumentArchive [23:19:08]shift 355 fd 67176 [23:19:08]save to /storage/0355/doc_00067176 [23:19:08]save last doc name /storage/0355/doc_00067176 to /storage/kkm_last_doc_name [23:19:08]save OK [23:19:08]Clear old archive folders... [23:19:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:19:08]tlvbuf is B6E8BC00 [23:19:08]SAM_PROTO_ClearQueue [23:19:08]wFMCommunicate request_size=4 [23:19:08]MH_SAM_APDU [23:19:08]CAPDU: 80 09 00 00 [23:19:08]Write to MH i2c: E2 08 00 44 16 80 09 00 00 00 00 00 00 CC [23:19:08]Write i2c OK [23:19:08]MH_I2C_Read... [23:19:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:08]Read from MH i2c: E2 [23:19:08]MH_I2C_Read... [23:19:08]Read from MH i2c: E2 03 00 [23:19:08]MH_I2C_Read... [23:19:08]Read from MH i2c: E2 03 00 44 16 00 90 00 CE [23:19:08]RAPDU: 90 00 [23:19:08]wFMCommunicate OK [23:19:08]SAM_PROTO_ClearQueue done [23:19:08]KKMCreateOFDPacket [23:19:08]OFDProtocolAddRootSTLVToBuf [23:19:08]FM_MakeSignedData [23:19:08]FM_MakeSignedData [23:19:08]SAM_PROTO_SignData [23:19:08]wFMCommunicate request_size=4 [23:19:08]MH_SAM_APDU [23:19:08]CAPDU: 80 0D 01 02 [23:19:08]Write to MH i2c: E2 08 00 45 16 80 0D 01 02 00 00 00 00 D4 [23:19:08]Write i2c OK [23:19:08]MH_I2C_Read... [23:19:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:08]Read from MH i2c: E2 [23:19:08]MH_I2C_Read... [23:19:08]Read from MH i2c: E2 03 00 [23:19:08]MH_I2C_Read... [23:19:08]Read from MH i2c: E2 03 00 45 16 00 90 00 CF [23:19:08]RAPDU: 90 00 [23:19:08]wFMCommunicate OK [23:19:08]wFMCommunicate request_size=255 [23:19:08]MH_SAM_APDU [23:19: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 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 B7 00 00 00 F4 03 04 00 6C F1 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 02 [23:19:08]Write to MH i2c: E2 02 01 46 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 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 B7 00 00 00 F4 03 04 00 6C F1 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 02 00 00 D1 [23:19:08]Write i2c OK [23:19:08]MH_I2C_Read... [23:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:08]Read from MH i2c: E2 [23:19:08]MH_I2C_Read... [23:19:08]Read from MH i2c: E2 03 00 [23:19:08]MH_I2C_Read... [23:19:08]Read from MH i2c: E2 03 00 46 16 00 90 00 D0 [23:19:08]RAPDU: 90 00 [23:19:08]wFMCommunicate OK [23:19:08]wFMCommunicate request_size=10 [23:19:08]MH_SAM_APDU [23:19:08]CAPDU: 80 0D 02 02 05 25 A6 D9 1A F1 [23:19:08]Write to MH i2c: E2 0D 00 47 16 80 0D 02 02 05 00 25 A6 D9 1A F1 00 00 90 [23:19:08]Write i2c OK [23:19:08]MH_I2C_Read... [23:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:08]Read from MH i2c: E2 [23:19:08]MH_I2C_Read... [23:19:08]Read from MH i2c: E2 03 00 [23:19:08]MH_I2C_Read... [23:19:08]Read from MH i2c: E2 03 00 47 16 00 90 00 D1 [23:19:08]RAPDU: 90 00 [23:19:08]wFMCommunicate OK [23:19:08]wFMCommunicate request_size=4 [23:19:08]MH_SAM_APDU [23:19:08]CAPDU: 80 0D 03 02 [23:19:08]Write to MH i2c: E2 08 00 48 16 80 0D 03 02 00 00 00 00 D9 [23:19:08]Write i2c OK [23:19:08]MH_I2C_Read... [23:19:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:08]Read from MH i2c: E2 [23:19:08]MH_I2C_Read... [23:19:08]Read from MH i2c: E2 0B 00 [23:19:08]MH_I2C_Read... [23:19:08]Read from MH i2c: E2 0B 00 48 16 00 E1 99 14 89 77 54 3D 98 90 00 91 [23:19:08]RAPDU: E1 99 14 89 77 54 3D 98 90 00 [23:19:08]wFMCommunicate OK [23:19:08]SAM_PROTO_SignData done [23:19:08]FM_MakeSignedData done [23:19:08]CreateOFDProtocolMessage [23:19:08]wFMCommunicate request_size=4 [23:19:08]MH_SAM_APDU [23:19:08]CAPDU: 80 11 00 00 [23:19:08]Write to MH i2c: E2 08 00 49 16 80 11 00 00 00 00 00 00 D9 [23:19:08]Write i2c OK [23:19:08]MH_I2C_Read... [23:19:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:08]Read from MH i2c: E2 [23:19:08]MH_I2C_Read... [23:19:08]Read from MH i2c: E2 17 00 [23:19:08]MH_I2C_Read... [23:19:08]Read from MH i2c: E2 17 00 49 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2F [23: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 [23:19:08]wFMCommunicate OK [23:19:08]CreateOFDProtocolMessage done [23:19:08]OFDSenderStorePacket 67176 [23:19:08]StoreOFDPacket docnum=67176 [23:19:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 3A 3B 07 01 40 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B7 00 00 00 F4 03 04 00 6C F1 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 02 25 A6 D9 1A F1 E1 99 14 89 77 54 3D 98 [23:19:08]CheckFolder [23:19:08]dirname=/storage/ofd_packets [23:19:08]CheckFolder done [23:19:08]ProducePacketName [23:19:08]name=ofd_packets/00067176 [23:19:08]NVStorageSaveData ofd_packets/00067176 [23:19:08]File name is /storage/ofd_packets/00067176 [23:19:08]Write 301 bytes [23:19:08]NVStorageSaveData done [23:19:08]OFDSenderStorePacket done [23:19:08]KKMCreateOFDPacket done [23:19:08]NVStorageSaveData kkm_last_timestamp [23:19:08]File name is /storage/kkm_last_timestamp [23:19:08]Write 4 bytes [23:19:08]NVStorageSaveData done [23:19:08]ExternCall_PrintAddStr [23:19:08]wPrintStart [23:19:08]Write to MH i2c: 01 00 00 4A 16 60 [23:19:08]Write i2c OK [23:19:08]MH_I2C_Read... [23:19:08]Read from MH i2c: 01 [23:19:08]MH_I2C_Read... [23:19:08]Read from MH i2c: 01 07 00 [23:19:08]MH_I2C_Read... [23:19:08]Read from MH i2c: 01 07 00 4A 16 00 00 00 00 00 FF 0F 75 [23:19:08]RasterBufferAndPrint [23:19:08]line Счет N : (1)507081 [23:19:08]line ИНН: 02508201610067 [23:19:08]line Контрольно-Кассовый Чек [23:19:08]line ПРОДАЖА [23:19:08]line ТРК (МРК, ГНК) : 33 [23:19:08]line Товар: 2710124130 [23:19:08]line Аи-92-К-5 [23:19:08]line 5.990 * 66.80 [23:19:08]line = 400.13 [23:19:08]line НДС 12% НСП 1% [23:19:08]line > о реализуемом товаре [23:19:08]line ОКРУГЛЕНИЕ: -0.13 [23:19:08]line ИТОГО: 400.00 [23:19:08]line Внесено: 400.00 [23:19:08]line СДАЧА: 0.00 [23:19:08]line НСП 1% : 3.54 [23:19:08]line НДС 12% : 42.49 [23:19:08]line Наличными: 400.00 [23:19:08]line Безнал.: 0.00 [23:19:08]line Место: АЗС № 91 "Партнер Нефть" [23:19:08]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:19:08]line СНО: Общий режим [23:19:08]line Чек 183 14.05.2024 23:19 [23:19:08]line Смена: 355 ФФД: 1.0 [23:19:08]line ЗНМ: 0300000119 [23:19:08]line РНМ: 0000000000091845 [23:19:08]line Версия ККМ: 001 [23:19:08]line ФМ: 0000000000871829 [23:19:08]line ФД: 67176 [23:19:08]line ФПД: 2360736291569 [23:19:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T231908&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67176&fm=2360736291569&tin=02508201610067®Number=0000000000091845&sum=40000 [23:19:08]written 0, free lines is 4095 [23:19:08]OFD Sender: Processing packet 67176 [packets to send 35, broken 34] [23:19:08]ProducePacketName [23:19:08]name=ofd_packets/00067176 [23:19:08]OFD Sender: To server: pG, [23:19:08]CommunicateWithHost lk.salyk.kg:30040 [23:19:08]ConnectInit lk.salyk.kg [23:19:08]Connected sock=10 [23:19:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 3A 3B 07 01 40 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B7 00 00 00 F4 03 04 00 6C F1 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 02 25 A6 D9 1A F1 E1 99 14 89 77 54 3D 98 [23:19:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 1B 70 47 00 81 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 68 06 01 00 F4 03 04 00 4B 99 43 66 B6 04 01 00 00 7E BD 2F 31 85 67 32 73 [23:19:09]CommunicateWithHost err = 0 [23:19:09]CheckOFDResponse [23:19:09]1017 (14) - 77093643461234 [23:19:09]1041 (16) - 0000000000871829 [23:19:09]1040 (4) - 67176 [23:19:09]1012 (4) - 14.05.2024 17:03 [23:19:09]1206 (1) - 0 [23:19:09]OFD Sender: Remove packet 67176 [23:19:09]ProducePacketName [23:19:09]name=ofd_packets/00067176 [23:19:09]NVStorageDeleteData [23:19:09]Write to MH i2c: 01 00 00 74 16 8A [23:19:09]Write i2c OK [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: 01 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: 01 07 00 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: 01 07 00 74 16 00 00 00 00 00 CB 0C 68 [23:19:09]RasterBufferAndPrint [23:19:09]line [23:19:09]line [23:19:09]line [23:19:09]line [23:19:09]line [23:19:09]written 0, free lines is 3281 [23:19:09]MH_Cut [23:19:09]Write to MH i2c: D1 01 00 7B 16 01 63 [23:19:09]Write i2c OK [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: D1 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: D1 01 00 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: D1 01 00 7B 16 00 62 [23:19:09]Write to MH i2c: 01 00 00 7C 16 92 [23:19:09]Write i2c OK [23:19:09]MH_I2C_Read... [23:19:09]OFD Sender: No OFD packet to send [23:19:10]*** Cut start [23:19:10]*** Purtial cut [23:19:10]*** CUTSNS_PIN = 0 [23:19:10]*** Stage 1: CUTSNS_PIN = 1 [23:19:12]Read from MH i2c: 01 [23:19:12]MH_I2C_Read... [23:19:12]*** Stop cut motor [23:19:12]*** Cut end [23:19:12]Read from MH i2c: 01 07 00 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: 01 07 00 7C 16 00 00 00 00 00 FF 0F A7 [23:19:12]process_action close_receipt done [23:19:12]requested_data is exist [23:19:12]produce_requested_data [23:19:12]requested_item fm.sn is exist - process it [23:19:12]wFMCommunicate request_size=4 [23:19:12]MH_SAM_APDU [23:19:12]CAPDU: 80 11 00 00 [23:19:12]Write to MH i2c: E2 08 00 7D 16 80 11 00 00 00 00 00 00 0D [23:19:12]Write i2c OK [23:19:12]MH_I2C_Read... [23:19:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:12]Read from MH i2c: E2 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: E2 17 00 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: E2 17 00 7D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 63 [23:19:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:19:12]wFMCommunicate OK [23:19:12]requested_item fd.num is exist - process it [23:19:12]SAM_PROTO_GetFieldsCounters [23:19:12]wFMCommunicate request_size=4 [23:19:12]MH_SAM_APDU [23:19:12]CAPDU: 80 13 00 00 [23:19:12]Write to MH i2c: E2 08 00 7E 16 80 13 00 00 00 00 00 00 10 [23:19:12]Write i2c OK [23:19:12]MH_I2C_Read... [23:19:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:12]Read from MH i2c: E2 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: E2 62 00 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: E2 62 00 7E 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 68 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [23:19:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 68 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:19:12]wFMCommunicate OK [23:19:12]SAM_PROTO_GetFieldsCounters done [23:19:12]requested_item shift.num is exist - process it [23:19:12]requested_item shift.opened is exist - process it [23:19:12]req_shift_opened [23:19:12]FM_GetShiftState [23:19:12]SAM_PROTO_GetShiftState [23:19:12]wFMCommunicate request_size=4 [23:19:12]MH_SAM_APDU [23:19:12]CAPDU: 80 13 01 00 [23:19:12]Write to MH i2c: E2 08 00 7F 16 80 13 01 00 00 00 00 00 12 [23:19:12]Write i2c OK [23:19:12]MH_I2C_Read... [23:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:12]Read from MH i2c: E2 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: E2 0E 00 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: E2 0E 00 7F 16 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 DA [23:19:12]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [23:19:12]wFMCommunicate OK [23:19:12]SAM_PROTO_GetShiftState done [23:19:12]FM_GetShiftState done [23:19:12]req_shift_opened done [23:19:12]requested_item shift.open_date is exist - process it [23:19:12]req_shift_open_date [23:19:12]req_shift_open_date done [23:19:12]produce_requested_data done [23:19:12]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67176,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [23:19:12]process_action_free close_receipt [23:19:12]json_value_free [23:19:12]json_value_free done [23:19:12]process_json_proto returns [23:19:12]Send response to host [23:19:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67176,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [23:19:12]free response buf [23:19:12]execute_script done [23:19:12]execute_script returns [23:19:12]free content buf [23:19:12]Sock 7.Close socket [23:19:12]Sock 7.Thread stoped [23:19:14]OFD Sender: No OFD packet to send [23:19:19]OFD Sender: No OFD packet to send [23:19:24]OFD Sender: No OFD packet to send [23:19:29]OFD Sender: No OFD packet to send [23:19:34]OFD Sender: No OFD packet to send [23:19:39]OFD Sender: No OFD packet to send [23:19:44]OFD Sender: No OFD packet to send [23:19:49]OFD Sender: No OFD packet to send [23:19:54]OFD Sender: No OFD packet to send [23:19:59]OFD Sender: No OFD packet to send [23:20:04]OFD Sender: No OFD packet to send [23:20:09]OFD Sender: No OFD packet to send [23:20:14]OFD Sender: No OFD packet to send [23:20:19]OFD Sender: No OFD packet to send [23:20:24]OFD Sender: No OFD packet to send [23:20:29]OFD Sender: No OFD packet to send [23:20:34]OFD Sender: No OFD packet to send [23:20:39]OFD Sender: No OFD packet to send [23:20:44]OFD Sender: No OFD packet to send [23:20:49]OFD Sender: No OFD packet to send [23:20:54]OFD Sender: No OFD packet to send [23:20:59]OFD Sender: No OFD packet to send [23:21:04]OFD Sender: No OFD packet to send [23:21:09]OFD Sender: No OFD packet to send [23:21:14]OFD Sender: No OFD packet to send [23:21:19]OFD Sender: No OFD packet to send [23:21:24]OFD Sender: No OFD packet to send [23:21:29]OFD Sender: No OFD packet to send [23:21:34]OFD Sender: No OFD packet to send [23:21:39]OFD Sender: No OFD packet to send [23:21:44]OFD Sender: No OFD packet to send [23:21:49]OFD Sender: No OFD packet to send [23:21:54]OFD Sender: No OFD packet to send [23:21:59]OFD Sender: No OFD packet to send [23:22:04]OFD Sender: No OFD packet to send [23:22:09]OFD Sender: No OFD packet to send [23:22:14]OFD Sender: No OFD packet to send [23:22:19]OFD Sender: No OFD packet to send [23:22:24]OFD Sender: No OFD packet to send [23:22:29]OFD Sender: No OFD packet to send [23:22:34]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:50]accept exits with 9 [23:22:50]New connection [23:22:50]New thread 3066731876 created [23:22:50]Thread 3066588516 joined [23:22:50]Waiting for new connection... [23:22:50] Sock 9.Parse request [23:22:50]Sock 9.Check first char [23:22:50]Sock 9.First char is OK [23:22:50]request: POST /json_proto HTTP/1.0 [23:22:50]Method: POST [23:22:50]URL: /json_proto [23:22:50]Method is POST - this is cgi request [23:22:50]url: /json_proto [23:22:50]query_string will be loaded in cgi processing [23:22:50]execute_cgi json_proto POST (null) [23:22:50]execute_cgi path=json_proto method=POST [23:22:50]POST find Content-Length [23:22:50]Host: 172.17.41.195:8080 [23:22:50]Content-Length: 1192 [23:22:50]Content-Type: application/json [23:22:50] [23:22:50]POST finish read [23:22:50]Found Content-Length = 1192 [23:22: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)507082\u000A14.05.2024 23: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 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3972929-811\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:50]execute_script... [23:22: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)507082\u000A14.05.2024 23: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 100.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 7470.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3972929-811\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:50]POST & json_proto [23:22:50]process_json_proto [23:22:50]json parsed OK: [23:22:50]protocol is kg_v1.0 [23:22:50]action value=print_text [23:22:50]process_action print_text [23:22:50]cmd_print_text [23:22:50]ExternCall_PrintAddStr [23:22:50]wPrintStart [23:22:50]Write to MH i2c: 01 00 00 80 16 96 [23:22:50]Write i2c OK [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: 01 [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: 01 07 00 [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: 01 07 00 80 16 00 00 00 00 00 FF 0F AB [23:22:50]RasterBufferAndPrint [23:22:50]line *****ТОВАРНЫЙ ЧЕК***** [23:22:50]line АЗС-91 [23:22:50]line Партнер нефть [23:22:50]line 02508201610067 [23:22:50]line Кассир : Адишов И. [23:22:50]line Счет N : (1)507082 [23:22:50]line 14.05.2024 23:05 [23:22:50]line ПРОДАЖА [23:22:50]line ТРК (МРК, ГНК): 21 [23:22:50]line Вид ГСМ : 2710194210 [23:22:50]line ДТ-К-5 [23:22:50]line 100.000 x 74.70 [23:22:50]line ИТОГ: 7470.00 [23:22:50]line Тип оплаты: Талоны: Топливные Талоны [23:22:50]line 3972929-811 [23:22:50]line ______________________ [23:22:50]line (подпись) [23:22:50]written 0, free lines is 4095 [23:22:50]Write to MH i2c: 01 00 00 94 16 AA [23:22:50]Write i2c OK [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: 01 [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: 01 07 00 [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: 01 07 00 94 16 00 00 00 00 00 0F 0E CE [23:22:50]RasterBufferAndPrint [23:22:50]line [23:22:50]line [23:22:50]line [23:22:50]line [23:22:50]line [23:22:50]written 0, free lines is 3601 [23:22:50]MH_Cut [23:22:50]Write to MH i2c: D1 01 00 9B 16 01 83 [23:22:50]Write i2c OK [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: D1 [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: D1 01 00 [23:22:50]MH_I2C_Read... [23:22:50]Read from MH i2c: D1 01 00 9B 16 00 82 [23:22:50]Write to MH i2c: 01 00 00 9C 16 B2 [23:22:50]Write i2c OK [23:22:50]MH_I2C_Read... [23:22:51]*** Cut start [23:22:51]*** Purtial cut [23:22:51]*** Stage 1: CUTSNS_PIN = 1 [23:22:51]Read from MH i2c: 01 [23:22:51]MH_I2C_Read... [23:22:51]*** Stop cut motor [23:22:51]*** Cut end [23:22:51]Read from MH i2c: 01 07 00 [23:22:51]MH_I2C_Read... [23:22:51]Read from MH i2c: 01 07 00 9C 16 00 00 00 00 00 FF 0F C7 [23:22:51]process_action print_text done [23:22:51]requested_data is exist [23:22:51]produce_requested_data [23:22:51]requested_item fm.sn is exist - process it [23:22:51]wFMCommunicate request_size=4 [23:22:51]MH_SAM_APDU [23:22:51]CAPDU: 80 11 00 00 [23:22:51]Write to MH i2c: E2 08 00 9D 16 80 11 00 00 00 00 00 00 2D [23:22:51]Write i2c OK [23:22:51]MH_I2C_Read... [23:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:51]Read from MH i2c: E2 [23:22:51]MH_I2C_Read... [23:22:51]Read from MH i2c: E2 17 00 [23:22:51]MH_I2C_Read... [23:22:51]Read from MH i2c: E2 17 00 9D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 83 [23:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:22:51]wFMCommunicate OK [23:22:51]requested_item fd.num is exist - process it [23:22:51]SAM_PROTO_GetFieldsCounters [23:22:51]wFMCommunicate request_size=4 [23:22:51]MH_SAM_APDU [23:22:51]CAPDU: 80 13 00 00 [23:22:51]Write to MH i2c: E2 08 00 9E 16 80 13 00 00 00 00 00 00 30 [23:22:51]Write i2c OK [23:22:51]MH_I2C_Read... [23:22:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:22:51]Read from MH i2c: E2 [23:22:51]MH_I2C_Read... [23:22:51]Read from MH i2c: E2 62 00 [23:22:51]MH_I2C_Read... [23:22:51]Read from MH i2c: E2 62 00 9E 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 68 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [23:22: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 68 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:22:51]wFMCommunicate OK [23:22:51]SAM_PROTO_GetFieldsCounters done [23:22:51]requested_item shift.num is exist - process it [23:22:51]requested_item shift.opened is exist - process it [23:22:51]req_shift_opened [23:22:51]FM_GetShiftState [23:22:51]SAM_PROTO_GetShiftState [23:22:51]wFMCommunicate request_size=4 [23:22:51]MH_SAM_APDU [23:22:51]CAPDU: 80 13 01 00 [23:22:51]Write to MH i2c: E2 08 00 9F 16 80 13 01 00 00 00 00 00 32 [23:22:51]Write i2c OK [23:22:51]MH_I2C_Read... [23:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:52]Read from MH i2c: E2 [23:22:52]MH_I2C_Read... [23:22:52]Read from MH i2c: E2 0E 00 [23:22:52]MH_I2C_Read... [23:22:52]Read from MH i2c: E2 0E 00 9F 16 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 FA [23:22:52]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [23:22:52]wFMCommunicate OK [23:22:52]SAM_PROTO_GetShiftState done [23:22:52]FM_GetShiftState done [23:22:52]req_shift_opened done [23:22:52]requested_item shift.open_date is exist - process it [23:22:52]req_shift_open_date [23:22:52]req_shift_open_date done [23:22:52]produce_requested_data done [23:22:52]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67176,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [23:22:52]process_action_free print_text [23:22:52]json_value_free [23:22:52]json_value_free done [23:22:52]process_json_proto returns [23:22:52]Send response to host [23:22:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67176,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [23:22:52]free response buf [23:22:52]execute_script done [23:22:52]execute_script returns [23:22:52]free content buf [23:22:52]Sock 9.Close socket [23:22:52]Sock 9.Thread stoped [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39: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:11]accept exits with 7 [23:41:11]New connection [23:41:11]New thread 3066588516 created [23:41:11]Thread 3066731876 joined [23:41:11]Waiting for new connection... [23:41:11] Sock 7.Parse request [23:41:11]Sock 7.Check first char [23:41:11]Sock 7.First char is OK [23:41:11]request: POST /json_proto HTTP/1.0 [23:41:11]Method: POST [23:41:11]URL: /json_proto [23:41:11]Method is POST - this is cgi request [23:41:11]url: /json_proto [23:41:11]query_string will be loaded in cgi processing [23:41:11]execute_cgi json_proto POST (null) [23:41:11]execute_cgi path=json_proto method=POST [23:41:11]POST find Content-Length [23:41:11]Host: 172.17.41.195:8080 [23:41:11]Content-Length: 678 [23:41:11]Content-Type: application/json [23:41:11] [23:41:11]POST finish read [23:41:11]Found Content-Length = 678 [23:41:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507083", "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" ] } } [23:41:11]execute_script... [23:41: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)507083", "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" ] } } [23:41:11]POST & json_proto [23:41:11]process_json_proto [23:41:11]json parsed OK: [23:41:11]protocol is kg_v1.0 [23:41:11]action value=close_receipt [23:41:11]process_action close_receipt [23:41:11]cmd_close_receipt [23:41:11]MH_GetDate [23:41:11]Write to MH i2c: F0 00 00 A0 16 A5 [23:41:11]Write i2c OK [23:41:11]MH_I2C_Read... [23:41:11]Read from MH i2c: F0 [23:41:11]MH_I2C_Read... [23:41:11]Read from MH i2c: F0 09 00 [23:41:11]MH_I2C_Read... [23:41:11]Read from MH i2c: F0 09 00 A0 16 00 98 F6 43 66 FC 21 6F 64 D5 [23:41:11]GetLastDocTimeStamp 1715728748 [23:41:11]current date 1715730072 [23:41:11]FM_GetShiftState [23:41:11]SAM_PROTO_GetShiftState [23:41:11]wFMCommunicate request_size=4 [23:41:11]MH_SAM_APDU [23:41:11]CAPDU: 80 13 01 00 [23:41:11]Write to MH i2c: E2 08 00 A1 16 80 13 01 00 00 00 00 00 34 [23:41:11]Write i2c OK [23:41:11]MH_I2C_Read... [23:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:11]Read from MH i2c: E2 [23:41:11]MH_I2C_Read... [23:41:11]Read from MH i2c: E2 0E 00 [23:41:11]MH_I2C_Read... [23:41:11]Read from MH i2c: E2 0E 00 A1 16 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 FC [23:41:11]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [23:41:11]wFMCommunicate OK [23:41:11]SAM_PROTO_GetShiftState done [23:41:11]FM_GetShiftState done [23:41:11]opened in 1715646054 [23:41:11]opened+sec_in_day 1715732454 [23:41:11]quantity*price = 70006 [23:41:11]sum+1 = 70007 [23:41:11]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 СНО: Общий режим Чек 184 14.05.2024 23:41 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67177 ФПД: 210296253035091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T234112&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67177&fm=210296253035091&tin=02508201610067®Number=0000000000091845&sum=70000 [23:41:12]StoreToDocumentArchive [23:41:12]shift 355 fd 67177 [23:41:12]save to /storage/0355/doc_00067177 [23:41:12]save last doc name /storage/0355/doc_00067177 to /storage/kkm_last_doc_name [23:41:12]save OK [23:41:12]Clear old archive folders... [23:41:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:41:12]tlvbuf is 003BC150 [23:41:12]SAM_PROTO_ClearQueue [23:41:12]wFMCommunicate request_size=4 [23:41:12]MH_SAM_APDU [23:41:12]CAPDU: 80 09 00 00 [23:41:12]Write to MH i2c: E2 08 00 AE 16 80 09 00 00 00 00 00 00 36 [23:41:12]Write i2c OK [23:41:12]MH_I2C_Read... [23:41:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:41:12]Read from MH i2c: E2 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: E2 03 00 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: E2 03 00 AE 16 00 90 00 38 [23:41:12]RAPDU: 90 00 [23:41:12]wFMCommunicate OK [23:41:12]SAM_PROTO_ClearQueue done [23:41:12]KKMCreateOFDPacket [23:41:12]OFDProtocolAddRootSTLVToBuf [23:41:12]FM_MakeSignedData [23:41:12]FM_MakeSignedData [23:41:12]SAM_PROTO_SignData [23:41:12]wFMCommunicate request_size=4 [23:41:12]MH_SAM_APDU [23:41:12]CAPDU: 80 0D 01 02 [23:41:12]Write to MH i2c: E2 08 00 AF 16 80 0D 01 02 00 00 00 00 3E [23:41:12]Write i2c OK [23:41:12]MH_I2C_Read... [23:41:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:41:12]Read from MH i2c: E2 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: E2 03 00 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: E2 03 00 AF 16 00 90 00 39 [23:41:12]RAPDU: 90 00 [23:41:12]wFMCommunicate OK [23:41:12]wFMCommunicate request_size=255 [23:41:12]MH_SAM_APDU [23:41:12]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 B8 00 00 00 F4 03 04 00 98 F6 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BF [23:41:12]Write to MH i2c: E2 02 01 B0 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 28 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 76 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 98 F6 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BF 00 00 39 [23:41:12]Write i2c OK [23:41:12]MH_I2C_Read... [23:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:12]Read from MH i2c: E2 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: E2 03 00 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: E2 03 00 B0 16 00 90 00 3A [23:41:12]RAPDU: 90 00 [23:41:12]wFMCommunicate OK [23:41:12]wFMCommunicate request_size=10 [23:41:12]MH_SAM_APDU [23:41:12]CAPDU: 80 0D 02 02 05 43 69 75 B2 53 [23:41:12]Write to MH i2c: E2 0D 00 B1 16 80 0D 02 02 05 00 43 69 75 B2 53 00 00 71 [23:41:12]Write i2c OK [23:41:12]MH_I2C_Read... [23:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:12]Read from MH i2c: E2 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: E2 03 00 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: E2 03 00 B1 16 00 90 00 3B [23:41:12]RAPDU: 90 00 [23:41:12]wFMCommunicate OK [23:41:12]wFMCommunicate request_size=4 [23:41:12]MH_SAM_APDU [23:41:12]CAPDU: 80 0D 03 02 [23:41:12]Write to MH i2c: E2 08 00 B2 16 80 0D 03 02 00 00 00 00 43 [23:41:12]Write i2c OK [23:41:12]MH_I2C_Read... [23:41:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:41:12]Read from MH i2c: E2 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: E2 0B 00 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: E2 0B 00 B2 16 00 42 61 1F A6 3E 1C 7A 60 90 00 E0 [23:41:12]RAPDU: 42 61 1F A6 3E 1C 7A 60 90 00 [23:41:12]wFMCommunicate OK [23:41:12]SAM_PROTO_SignData done [23:41:12]FM_MakeSignedData done [23:41:12]CreateOFDProtocolMessage [23:41:12]wFMCommunicate request_size=4 [23:41:12]MH_SAM_APDU [23:41:12]CAPDU: 80 11 00 00 [23:41:12]Write to MH i2c: E2 08 00 B3 16 80 11 00 00 00 00 00 00 43 [23:41:12]Write i2c OK [23:41:12]MH_I2C_Read... [23:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:12]Read from MH i2c: E2 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: E2 17 00 [23:41:12]MH_I2C_Read... [23:41:12]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 [23:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:41:12]wFMCommunicate OK [23:41:12]CreateOFDProtocolMessage done [23:41:12]OFDSenderStorePacket 67177 [23:41:12]StoreOFDPacket docnum=67177 [23:41: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 CE 3C 07 01 56 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B8 00 00 00 F4 03 04 00 98 F6 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BF 43 69 75 B2 53 42 61 1F A6 3E 1C 7A 60 [23:41:12]CheckFolder [23:41:12]dirname=/storage/ofd_packets [23:41:12]CheckFolder done [23:41:12]ProducePacketName [23:41:12]name=ofd_packets/00067177 [23:41:12]NVStorageSaveData ofd_packets/00067177 [23:41:12]File name is /storage/ofd_packets/00067177 [23:41:12]Write 301 bytes [23:41:12]NVStorageSaveData done [23:41:12]OFDSenderStorePacket done [23:41:12]KKMCreateOFDPacket done [23:41:12]NVStorageSaveData kkm_last_timestamp [23:41:12]File name is /storage/kkm_last_timestamp [23:41:12]Write 4 bytes [23:41:12]NVStorageSaveData done [23:41:12]ExternCall_PrintAddStr [23:41:12]wPrintStart [23:41:12]Write to MH i2c: 01 00 00 B4 16 CA [23:41:12]Write i2c OK [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: 01 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: 01 07 00 [23:41:12]MH_I2C_Read... [23:41:12]Read from MH i2c: 01 07 00 B4 16 00 00 00 00 00 FF 0F DF [23:41:12]RasterBufferAndPrint [23:41:12]line Счет N : (1)507083 [23:41:12]line ИНН: 02508201610067 [23:41:12]line Контрольно-Кассовый Чек [23:41:12]line ПРОДАЖА [23:41:12]line ТРК (МРК, ГНК) : 23 [23:41:12]line Товар: 2710124130 [23:41:12]line Аи-92-К-5 [23:41:12]line 10.480 * 66.80 [23:41:12]line = 700.06 [23:41:12]line НДС 12% НСП 1% [23:41:12]line > о реализуемом товаре [23:41:12]line ОКРУГЛЕНИЕ: -0.06 [23:41:12]line ИТОГО: 700.00 [23:41:12]line Внесено: 700.00 [23:41:12]line СДАЧА: 0.00 [23:41:12]line НСП 1% : 6.19 [23:41:12]line НДС 12% : 74.34 [23:41:12]line Наличными: 700.00 [23:41:12]line Безнал.: 0.00 [23:41:12]line Место: АЗС № 91 "Партнер Нефть" [23:41:12]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:41:12]line СНО: Общий режим [23:41:12]line Чек 184 14.05.2024 23:41 [23:41:12]line Смена: 355 ФФД: 1.0 [23:41:12]line ЗНМ: 0300000119 [23:41:12]line РНМ: 0000000000091845 [23:41:12]line Версия ККМ: 001 [23:41:12]line ФМ: 0000000000871829 [23:41:12]line ФД: 67177 [23:41:12]line ФПД: 210296253035091 [23:41:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T234112&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67177&fm=210296253035091&tin=02508201610067®Number=0000000000091845&sum=70000 [23:41:13]written 0, free lines is 4095 [23:41:13]OFD Sender: Processing packet 67177 [packets to send 35, broken 34] [23:41:13]ProducePacketName [23:41:13]name=ofd_packets/00067177 [23:41:13]OFD Sender: To server: pG, [23:41:13]CommunicateWithHost lk.salyk.kg:30040 [23:41:13]ConnectInit lk.salyk.kg [23:41:13]Connected sock=10 [23:41:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 CE 3C 07 01 56 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 B8 00 00 00 F4 03 04 00 98 F6 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 BF 43 69 75 B2 53 42 61 1F A6 3E 1C 7A 60 [23:41: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 60 1A 47 00 5A 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 69 06 01 00 F4 03 04 00 77 9E 43 66 B6 04 01 00 00 28 3D 08 78 E5 56 8C FE [23:41:13]CommunicateWithHost err = 0 [23:41:13]CheckOFDResponse [23:41:13]1017 (14) - 77093643461234 [23:41:13]1041 (16) - 0000000000871829 [23:41:13]1040 (4) - 67177 [23:41:13]1012 (4) - 14.05.2024 17:25 [23:41:13]1206 (1) - 0 [23:41:13]OFD Sender: Remove packet 67177 [23:41:13]ProducePacketName [23:41:13]name=ofd_packets/00067177 [23:41:13]NVStorageDeleteData [23:41:13]Write to MH i2c: 01 00 00 DE 16 F4 [23:41:13]Write i2c OK [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: 01 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: 01 07 00 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: 01 07 00 DE 16 00 00 00 00 00 CB 0C D2 [23:41:13]RasterBufferAndPrint [23:41:13]line [23:41:13]line [23:41:13]line [23:41:13]line [23:41:13]line [23:41:13]written 0, free lines is 3284 [23:41:13]MH_Cut [23:41:13]Write to MH i2c: D1 01 00 E5 16 01 CD [23:41:13]Write i2c OK [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: D1 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: D1 01 00 [23:41:13]MH_I2C_Read... [23:41:13]Read from MH i2c: D1 01 00 E5 16 00 CC [23:41:13]Write to MH i2c: 01 00 00 E6 16 FC [23:41:13]Write i2c OK [23:41:13]MH_I2C_Read... [23:41:14]OFD Sender: No OFD packet to send [23:41:14]*** Cut start [23:41:14]*** Purtial cut [23:41:14]*** CUTSNS_PIN = 0 [23:41:14]*** Stage 1: CUTSNS_PIN = 1 [23:41:16]Read from MH i2c: 01 [23:41:16]MH_I2C_Read... [23:41:16]*** Stop cut motor [23:41:16]*** Cut end [23:41:16]Read from MH i2c: 01 07 00 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: 01 07 00 E6 16 00 00 00 00 00 FF 0F 11 [23:41:16]process_action close_receipt done [23:41:16]requested_data is exist [23:41:16]produce_requested_data [23:41:16]requested_item fm.sn is exist - process it [23:41:16]wFMCommunicate request_size=4 [23:41:16]MH_SAM_APDU [23:41:16]CAPDU: 80 11 00 00 [23:41:16]Write to MH i2c: E2 08 00 E7 16 80 11 00 00 00 00 00 00 77 [23:41:16]Write i2c OK [23:41:16]MH_I2C_Read... [23:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:16]Read from MH i2c: E2 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 17 00 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 17 00 E7 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 CD [23:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:41:16]wFMCommunicate OK [23:41:16]requested_item fd.num is exist - process it [23:41:16]SAM_PROTO_GetFieldsCounters [23:41:16]wFMCommunicate request_size=4 [23:41:16]MH_SAM_APDU [23:41:16]CAPDU: 80 13 00 00 [23:41:16]Write to MH i2c: E2 08 00 E8 16 80 13 00 00 00 00 00 00 7A [23:41:16]Write i2c OK [23:41:16]MH_I2C_Read... [23:41:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:41:16]Read from MH i2c: E2 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 62 00 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 62 00 E8 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 69 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [23:41: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 69 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:41:16]wFMCommunicate OK [23:41:16]SAM_PROTO_GetFieldsCounters done [23:41:16]requested_item shift.num is exist - process it [23:41:16]requested_item shift.opened is exist - process it [23:41:16]req_shift_opened [23:41:16]FM_GetShiftState [23:41:16]SAM_PROTO_GetShiftState [23:41:16]wFMCommunicate request_size=4 [23:41:16]MH_SAM_APDU [23:41:16]CAPDU: 80 13 01 00 [23:41:16]Write to MH i2c: E2 08 00 E9 16 80 13 01 00 00 00 00 00 7C [23:41:16]Write i2c OK [23:41:16]MH_I2C_Read... [23:41:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:16]Read from MH i2c: E2 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 0E 00 [23:41:16]MH_I2C_Read... [23:41:16]Read from MH i2c: E2 0E 00 E9 16 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 44 [23:41:16]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [23:41:16]wFMCommunicate OK [23:41:16]SAM_PROTO_GetShiftState done [23:41:16]FM_GetShiftState done [23:41:16]req_shift_opened done [23:41:16]requested_item shift.open_date is exist - process it [23:41:16]req_shift_open_date [23:41:16]req_shift_open_date done [23:41:16]produce_requested_data done [23:41:16]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67177,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [23:41:16]process_action_free close_receipt [23:41:16]json_value_free [23:41:16]json_value_free done [23:41:16]process_json_proto returns [23:41:16]Send response to host [23:41:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67177,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [23:41:16]free response buf [23:41:16]execute_script done [23:41:16]execute_script returns [23:41:16]free content buf [23:41:16]Sock 7.Close socket [23:41:16]Sock 7.Thread stoped [23:41:19]OFD Sender: No OFD packet to send [23:41:24]OFD Sender: No OFD packet to send [23:41:29]OFD Sender: No OFD packet to send [23:41:34]OFD Sender: No OFD packet to send [23:41:39]OFD Sender: No OFD packet to send [23:41:44]OFD Sender: No OFD packet to send [23:41:49]OFD Sender: No OFD packet to send [23:41:54]OFD Sender: No OFD packet to send [23:41:59]OFD Sender: No OFD packet to send [23:42:04]OFD Sender: No OFD packet to send [23:42:09]OFD Sender: No OFD packet to send [23:42:14]OFD Sender: No OFD packet to send [23:42:19]OFD Sender: No OFD packet to send [23:42:24]OFD Sender: No OFD packet to send [23:42:29]OFD Sender: No OFD packet to send [23:42:34]OFD Sender: No OFD packet to send [23:42:39]OFD Sender: No OFD packet to send [23:42:44]OFD Sender: No OFD packet to send [23:42:49]OFD Sender: No OFD packet to send [23:42:54]OFD Sender: No OFD packet to send [23:42:59]OFD Sender: No OFD packet to send [23:43:04]OFD Sender: No OFD packet to send [23:43:09]OFD Sender: No OFD packet to send [23:43:14]OFD Sender: No OFD packet to send [23:43:19]OFD Sender: No OFD packet to send [23:43:24]OFD Sender: No OFD packet to send [23:43:29]OFD Sender: No OFD packet to send [23:43:34]OFD Sender: No OFD packet to send [23:43:39]OFD Sender: No OFD packet to send [23:43:44]OFD Sender: No OFD packet to send [23:43:49]OFD Sender: No OFD packet to send [23:43:54]OFD Sender: No OFD packet to send [23:43:59]OFD Sender: No OFD packet to send [23:44:04]OFD Sender: No OFD packet to send [23:44:09]OFD Sender: No OFD packet to send [23:44:14]OFD Sender: No OFD packet to send [23:44:19]OFD Sender: No OFD packet to send [23:44:24]OFD Sender: No OFD packet to send [23:44:29]OFD Sender: No OFD packet to send [23:44:34]OFD Sender: No OFD packet to send [23:44:39]OFD Sender: No OFD packet to send [23:44:44]OFD Sender: No OFD packet to send [23:44:49]OFD Sender: No OFD packet to send [23:44:54]OFD Sender: No OFD packet to send [23:44:59]OFD Sender: No OFD packet to send [23:45:04]OFD Sender: No OFD packet to send [23:45:09]OFD Sender: No OFD packet to send [23:45:14]OFD Sender: No OFD packet to send [23:45:19]OFD Sender: No OFD packet to send [23:45:24]OFD Sender: No OFD packet to send [23:45:29]OFD Sender: No OFD packet to send [23:45:34]OFD Sender: No OFD packet to send [23:45:39]OFD Sender: No OFD packet to send [23:45:44]OFD Sender: No OFD packet to send [23:45:49]OFD Sender: No OFD packet to send [23:45:54]OFD Sender: No OFD packet to send [23:45:59]OFD Sender: No OFD packet to send [23:46:04]OFD Sender: No OFD packet to send [23:46:09]OFD Sender: No OFD packet to send [23:46:14]OFD Sender: No OFD packet to send [23:46:19]OFD Sender: No OFD packet to send [23:46:24]OFD Sender: No OFD packet to send [23:46:29]OFD Sender: No OFD packet to send [23:46:34]OFD Sender: No OFD packet to send [23:46:39]OFD Sender: No OFD packet to send [23:46:44]OFD Sender: No OFD packet to send [23:46:49]OFD Sender: No OFD packet to send [23:46:54]OFD Sender: No OFD packet to send [23:46:59]OFD Sender: No OFD packet to send [23:47:04]OFD Sender: No OFD packet to send [23:47:09]OFD Sender: No OFD packet to send [23:47:14]OFD Sender: No OFD packet to send [23:47:19]OFD Sender: No OFD packet to send [23:47:24]OFD Sender: No OFD packet to send [23:47:29]OFD Sender: No OFD packet to send [23:47:34]OFD Sender: No OFD packet to send [23:47:39]OFD Sender: No OFD packet to send [23:47:44]OFD Sender: No OFD packet to send [23:47:49]OFD Sender: No OFD packet to send [23:47:54]OFD Sender: No OFD packet to send [23:47:59]OFD Sender: No OFD packet to send [23:48:04]OFD Sender: No OFD packet to send [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:24]OFD Sender: No OFD packet to send [23:48:29]OFD Sender: No OFD packet to send [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:04]OFD Sender: No OFD packet to send [23:49:09]OFD Sender: No OFD packet to send [23:49:14]OFD Sender: No OFD packet to send [23:49:19]OFD Sender: No OFD packet to send [23:49:24]OFD Sender: No OFD packet to send [23:49:29]OFD Sender: No OFD packet to send [23:49:34]OFD Sender: No OFD packet to send [23:49:39]OFD Sender: No OFD packet to send [23:49:44]OFD Sender: No OFD packet to send [23:49:49]OFD Sender: No OFD packet to send [23:49:54]OFD Sender: No OFD packet to send [23:49:59]OFD Sender: No OFD packet to send [23:50:04]OFD Sender: No OFD packet to send [23:50:09]OFD Sender: No OFD packet to send [23:50:14]OFD Sender: No OFD packet to send [23:50:19]OFD Sender: No OFD packet to send [23:50:24]OFD Sender: No OFD packet to send [23:50:29]OFD Sender: No OFD packet to send [23:50:34]OFD Sender: No OFD packet to send [23:50:39]OFD Sender: No OFD packet to send [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52:49]OFD Sender: No OFD packet to send [23:52:54]OFD Sender: No OFD packet to send [23:52:59]OFD Sender: No OFD packet to send [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:11]accept exits with 9 [23:54:11]New connection [23:54:11]New thread 3066731876 created [23:54:11]Thread 3066588516 joined [23:54:11]Waiting for new connection... [23:54:11] Sock 9.Parse request [23:54:11]Sock 9.Check first char [23:54:11]Sock 9.First char is OK [23:54:11]request: POST /json_proto HTTP/1.0 [23:54:11]Method: POST [23:54:11]URL: /json_proto [23:54:11]Method is POST - this is cgi request [23:54:11]url: /json_proto [23:54:11]query_string will be loaded in cgi processing [23:54:11]execute_cgi json_proto POST (null) [23:54:11]execute_cgi path=json_proto method=POST [23:54:11]POST find Content-Length [23:54:11]Host: 172.17.41.195:8080 [23:54:11]Content-Length: 979 [23:54:11]Content-Type: application/json [23:54:11] [23:54:11]POST finish read [23:54:11]Found Content-Length = 979 [23:54:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507084", "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" ] } } [23:54:11]execute_script... [23:54:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507084", "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" ] } } [23:54:11]POST & json_proto [23:54:11]process_json_proto [23:54:11]json parsed OK: [23:54:11]protocol is kg_v1.0 [23:54:11]action value=close_receipt [23:54:11]process_action close_receipt [23:54:11]cmd_close_receipt [23:54:11]MH_GetDate [23:54:11]Write to MH i2c: F0 00 00 EA 16 EF [23:54:11]Write i2c OK [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: F0 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: F0 09 00 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: F0 09 00 EA 16 00 A4 F9 43 66 FC 21 6F 64 2E [23:54:11]GetLastDocTimeStamp 1715730072 [23:54:11]current date 1715730852 [23:54:11]FM_GetShiftState [23:54:11]SAM_PROTO_GetShiftState [23:54:11]wFMCommunicate request_size=4 [23:54:11]MH_SAM_APDU [23:54:11]CAPDU: 80 13 01 00 [23:54:11]Write to MH i2c: E2 08 00 EB 16 80 13 01 00 00 00 00 00 7E [23:54:11]Write i2c OK [23:54:11]MH_I2C_Read... [23:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:11]Read from MH i2c: E2 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: E2 0E 00 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: E2 0E 00 EB 16 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 46 [23:54:11]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [23:54:11]wFMCommunicate OK [23:54:11]SAM_PROTO_GetShiftState done [23:54:11]FM_GetShiftState done [23:54:11]opened in 1715646054 [23:54:11]opened+sec_in_day 1715732454 [23:54:11]quantity*price = 900024 [23:54:11]sum+1 = 900025 [23:54:11]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 СНО: Общий режим Чек 185 14.05.2024 23:54 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Дисконтная программа ДТ номер 91 сэкономлено 122.12 сом ФМ: 0000000000871829 ФД: 67178 ФПД: 266082674217860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T235412&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67178&fm=266082674217860&tin=02508201610067®Number=0000000000091845&sum=900000 [23:54:12]StoreToDocumentArchive [23:54:12]shift 355 fd 67178 [23:54:12]save to /storage/0355/doc_00067178 [23:54:12]save last doc name /storage/0355/doc_00067178 to /storage/kkm_last_doc_name [23:54:12]save OK [23:54:12]Clear old archive folders... [23:54:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:54:12]tlvbuf is 003B1AB0 [23:54:12]SAM_PROTO_ClearQueue [23:54:12]wFMCommunicate request_size=4 [23:54:12]MH_SAM_APDU [23:54:12]CAPDU: 80 09 00 00 [23:54:12]Write to MH i2c: E2 08 00 F8 16 80 09 00 00 00 00 00 00 80 [23:54:12]Write i2c OK [23:54:12]MH_I2C_Read... [23:54:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:54:12]Read from MH i2c: E2 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: E2 03 00 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: E2 03 00 F8 16 00 90 00 82 [23:54:12]RAPDU: 90 00 [23:54:12]wFMCommunicate OK [23:54:12]SAM_PROTO_ClearQueue done [23:54:12]KKMCreateOFDPacket [23:54:12]OFDProtocolAddRootSTLVToBuf [23:54:12]FM_MakeSignedData [23:54:12]FM_MakeSignedData [23:54:12]SAM_PROTO_SignData [23:54:12]wFMCommunicate request_size=4 [23:54:12]MH_SAM_APDU [23:54:12]CAPDU: 80 0D 01 02 [23:54:12]Write to MH i2c: E2 08 00 F9 16 80 0D 01 02 00 00 00 00 88 [23:54:12]Write i2c OK [23:54:12]MH_I2C_Read... [23:54:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:54:12]Read from MH i2c: E2 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: E2 03 00 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: E2 03 00 F9 16 00 90 00 83 [23:54:12]RAPDU: 90 00 [23:54:12]wFMCommunicate OK [23:54:12]wFMCommunicate request_size=255 [23:54:12]MH_SAM_APDU [23:54: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 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 B9 00 00 00 F4 03 04 00 A4 F9 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F2 00 33 47 [23:54:12]Write to MH i2c: E2 02 01 FA 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 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 B9 00 00 00 F4 03 04 00 A4 F9 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F2 00 33 47 00 00 52 [23:54:12]Write i2c OK [23:54:12]MH_I2C_Read... [23:54:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:12]Read from MH i2c: E2 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: E2 03 00 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: E2 03 00 FA 16 00 90 00 84 [23:54:12]RAPDU: 90 00 [23:54:12]wFMCommunicate OK [23:54:12]wFMCommunicate request_size=7 [23:54:12]MH_SAM_APDU [23:54:12]CAPDU: 80 0D 02 02 02 13 84 [23:54:12]Write to MH i2c: E2 0A 00 FB 16 80 0D 02 02 02 00 13 84 00 00 26 [23:54:12]Write i2c OK [23:54:12]MH_I2C_Read... [23:54:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:12]Read from MH i2c: E2 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: E2 03 00 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: E2 03 00 FB 16 00 90 00 85 [23:54:12]RAPDU: 90 00 [23:54:12]wFMCommunicate OK [23:54:12]wFMCommunicate request_size=4 [23:54:12]MH_SAM_APDU [23:54:12]CAPDU: 80 0D 03 02 [23:54:12]Write to MH i2c: E2 08 00 FC 16 80 0D 03 02 00 00 00 00 8D [23:54:12]Write i2c OK [23:54:12]MH_I2C_Read... [23:54:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:54:12]Read from MH i2c: E2 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: E2 0B 00 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: E2 0B 00 FC 16 00 F2 97 85 35 4B 52 27 CB 90 00 60 [23:54:12]RAPDU: F2 97 85 35 4B 52 27 CB 90 00 [23:54:12]wFMCommunicate OK [23:54:12]SAM_PROTO_SignData done [23:54:12]FM_MakeSignedData done [23:54:12]CreateOFDProtocolMessage [23:54:12]wFMCommunicate request_size=4 [23:54:12]MH_SAM_APDU [23:54:12]CAPDU: 80 11 00 00 [23:54:12]Write to MH i2c: E2 08 00 FD 16 80 11 00 00 00 00 00 00 8D [23:54:12]Write i2c OK [23:54:12]MH_I2C_Read... [23:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:12]Read from MH i2c: E2 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: E2 17 00 [23:54:12]MH_I2C_Read... [23:54:12]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:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:54:12]wFMCommunicate OK [23:54:12]CreateOFDProtocolMessage done [23:54:12]OFDSenderStorePacket 67178 [23:54:12]StoreOFDPacket docnum=67178 [23:54: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 91 B4 04 01 52 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 B9 00 00 00 F4 03 04 00 A4 F9 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F2 00 33 47 13 84 F2 97 85 35 4B 52 27 CB [23:54:12]CheckFolder [23:54:12]dirname=/storage/ofd_packets [23:54:12]CheckFolder done [23:54:12]ProducePacketName [23:54:12]name=ofd_packets/00067178 [23:54:12]NVStorageSaveData ofd_packets/00067178 [23:54:12]File name is /storage/ofd_packets/00067178 [23:54:12]Write 298 bytes [23:54:12]NVStorageSaveData done [23:54:12]OFDSenderStorePacket done [23:54:12]KKMCreateOFDPacket done [23:54:12]NVStorageSaveData kkm_last_timestamp [23:54:12]File name is /storage/kkm_last_timestamp [23:54:12]Write 4 bytes [23:54:12]NVStorageSaveData done [23:54:12]ExternCall_PrintAddStr [23:54:12]wPrintStart [23:54:12]Write to MH i2c: 01 00 00 FE 16 14 [23:54:12]Write i2c OK [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: 01 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: 01 07 00 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: 01 07 00 FE 16 00 00 00 00 00 FF 0F 29 [23:54:12]RasterBufferAndPrint [23:54:12]line Счет N : (1)507084 [23:54:12]line ИНН: 02508201610067 [23:54:12]line Контрольно-Кассовый Чек [23:54:12]line ПРОДАЖА [23:54:12]line ТРК (МРК, ГНК) : 11 [23:54:12]line Товар: 2710194210 [23:54:12]line ДТ-К-5 [23:54:12]line 122.120 * 73.70 [23:54:12]line = 9000.24 [23:54:12]line НДС 12% НСП 1% [23:54:12]line > о реализуемом товаре [23:54:12]line ОКРУГЛЕНИЕ: -0.24 [23:54:12]line ИТОГО: 9000.00 [23:54:12]line Внесено: 9000.00 [23:54:12]line СДАЧА: 0.00 [23:54:12]line НСП 1% : 79.65 [23:54:12]line НДС 12% : 955.78 [23:54:12]line Наличными: 9000.00 [23:54:12]line Безнал.: 0.00 [23:54:12]line Место: АЗС № 91 "Партнер Нефть" [23:54:12]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:54:12]line СНО: Общий режим [23:54:12]line Чек 185 14.05.2024 23:54 [23:54:12]line Смена: 355 ФФД: 1.0 [23:54:12]line ЗНМ: 0300000119 [23:54:12]line РНМ: 0000000000091845 [23:54:12]line Версия ККМ: 001 [23:54:12]line [23:54:12]line Дисконтная программа [23:54:12]line ДТ [23:54:12]line номер 91 [23:54:12]line сэкономлено 122.12 сом [23:54:12]line ФМ: 0000000000871829 [23:54:12]line ФД: 67178 [23:54:12]line ФПД: 266082674217860 [23:54:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T235412&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67178&fm=266082674217860&tin=02508201610067®Number=0000000000091845&sum=900000 [23:54:13]OFD Sender: Processing packet 67178 [packets to send 35, broken 34] [23:54:13]ProducePacketName [23:54:13]name=ofd_packets/00067178 [23:54:13]OFD Sender: To server: pG, [23:54:13]CommunicateWithHost lk.salyk.kg:30040 [23:54:13]ConnectInit lk.salyk.kg [23:54:13]written 0, free lines is 4095 [23:54:13]Connected sock=10 [23:54:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 91 B4 04 01 52 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 B9 00 00 00 F4 03 04 00 A4 F9 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F2 00 33 47 13 84 F2 97 85 35 4B 52 27 CB [23:54:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 6A 83 47 00 80 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6A 06 01 00 F4 03 04 00 83 A1 43 66 B6 04 01 00 00 B9 63 EF E3 F8 AE A3 C7 [23:54:13]CommunicateWithHost err = 0 [23:54:13]CheckOFDResponse [23:54:13]1017 (14) - 77093643461234 [23:54:13]1041 (16) - 0000000000871829 [23:54:13]1040 (4) - 67178 [23:54:13]1012 (4) - 14.05.2024 17:38 [23:54:13]1206 (1) - 0 [23:54:13]OFD Sender: Remove packet 67178 [23:54:13]ProducePacketName [23:54:13]name=ofd_packets/00067178 [23:54:13]NVStorageDeleteData [23:54:13]Write to MH i2c: 01 00 00 2D 17 44 [23:54:13]Write i2c OK [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: 01 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: 01 07 00 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: 01 07 00 2D 17 00 00 00 00 00 79 0C D0 [23:54:13]RasterBufferAndPrint [23:54:13]line [23:54:13]line [23:54:13]line [23:54:13]line [23:54:13]line [23:54:13]written 0, free lines is 3199 [23:54:13]MH_Cut [23:54:13]Write to MH i2c: D1 01 00 34 17 01 1D [23:54:13]Write i2c OK [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: D1 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: D1 01 00 [23:54:13]MH_I2C_Read... [23:54:13]Read from MH i2c: D1 01 00 34 17 00 1C [23:54:13]Write to MH i2c: 01 00 00 35 17 4C [23:54:13]Write i2c OK [23:54:13]MH_I2C_Read... [23:54:13]OFD Sender: No OFD packet to send [23:54:14]*** Cut start [23:54:14]*** Purtial cut [23:54:14]*** Stage 1: CUTSNS_PIN = 1 [23:54:14]Read from MH i2c: 01 [23:54:14]MH_I2C_Read... [23:54:14]*** Stop cut motor [23:54:14]*** Cut end [23:54:14]Read from MH i2c: 01 07 00 [23:54:14]MH_I2C_Read... [23:54:14]Read from MH i2c: 01 07 00 35 17 00 00 00 00 00 FF 0F 61 [23:54:14]process_action close_receipt done [23:54:14]requested_data is exist [23:54:14]produce_requested_data [23:54:14]requested_item fm.sn is exist - process it [23:54:14]wFMCommunicate request_size=4 [23:54:14]MH_SAM_APDU [23:54:14]CAPDU: 80 11 00 00 [23:54:14]Write to MH i2c: E2 08 00 36 17 80 11 00 00 00 00 00 00 C7 [23:54:14]Write i2c OK [23:54:14]MH_I2C_Read... [23:54:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:14]Read from MH i2c: E2 [23:54:14]MH_I2C_Read... [23:54:14]Read from MH i2c: E2 17 00 [23:54:14]MH_I2C_Read... [23:54:14]Read from MH i2c: E2 17 00 36 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 1D [23: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 [23:54:14]wFMCommunicate OK [23:54:14]requested_item fd.num is exist - process it [23:54:14]SAM_PROTO_GetFieldsCounters [23:54:14]wFMCommunicate request_size=4 [23:54:14]MH_SAM_APDU [23:54:14]CAPDU: 80 13 00 00 [23:54:14]Write to MH i2c: E2 08 00 37 17 80 13 00 00 00 00 00 00 CA [23:54:14]Write i2c OK [23:54:14]MH_I2C_Read... [23:54:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:15]Read from MH i2c: E2 [23:54:15]MH_I2C_Read... [23:54:15]Read from MH i2c: E2 62 00 [23:54:15]MH_I2C_Read... [23:54:15]Read from MH i2c: E2 62 00 37 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 6A 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [23:54:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6A 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:15]wFMCommunicate OK [23:54:15]SAM_PROTO_GetFieldsCounters done [23:54:15]requested_item shift.num is exist - process it [23:54:15]requested_item shift.opened is exist - process it [23:54:15]req_shift_opened [23:54:15]FM_GetShiftState [23:54:15]SAM_PROTO_GetShiftState [23:54:15]wFMCommunicate request_size=4 [23:54:15]MH_SAM_APDU [23:54:15]CAPDU: 80 13 01 00 [23:54:15]Write to MH i2c: E2 08 00 38 17 80 13 01 00 00 00 00 00 CC [23:54:15]Write i2c OK [23:54:15]MH_I2C_Read... [23:54:15]Read from MH i2c: E2 [23:54:15]MH_I2C_Read... [23:54:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:15]Read from MH i2c: E2 0E 00 [23:54:15]MH_I2C_Read... [23:54:15]Read from MH i2c: E2 0E 00 38 17 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 94 [23:54:15]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [23:54:15]wFMCommunicate OK [23:54:15]SAM_PROTO_GetShiftState done [23:54:15]FM_GetShiftState done [23:54:15]req_shift_opened done [23:54:15]requested_item shift.open_date is exist - process it [23:54:15]req_shift_open_date [23:54:15]req_shift_open_date done [23:54:15]produce_requested_data done [23:54:15]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67178,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [23:54:15]process_action_free close_receipt [23:54:15]json_value_free [23:54:15]json_value_free done [23:54:15]process_json_proto returns [23:54:15]Send response to host [23:54:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67178,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [23:54:15]free response buf [23:54:15]execute_script done [23:54:15]execute_script returns [23:54:15]free content buf [23:54:15]Sock 9.Close socket [23:54:15]Sock 9.Thread stoped [23:54:18]OFD Sender: No OFD packet to send [23:54:23]OFD Sender: No OFD packet to send [23:54:28]OFD Sender: No OFD packet to send [23:54:33]OFD Sender: No OFD packet to send [23:54:38]OFD Sender: No OFD packet to send [23:54:43]OFD Sender: No OFD packet to send [23:54:48]OFD Sender: No OFD packet to send [23:54:53]OFD Sender: No OFD packet to send [23:54:58]OFD Sender: No OFD packet to send [23:55:04]OFD Sender: No OFD packet to send [23:55:09]OFD Sender: No OFD packet to send [23:55:14]OFD Sender: No OFD packet to send [23:55:17]accept exits with 7 [23:55:17]New connection [23:55:17]New thread 3066588516 created [23:55:17]Thread 3066731876 joined [23:55:17]Waiting for new connection... [23:55:17] Sock 7.Parse request [23:55:17]Sock 7.Check first char [23:55:17]Sock 7.First char is OK [23:55:17]request: POST /json_proto HTTP/1.0 [23:55:17]Method: POST [23:55:17]URL: /json_proto [23:55:17]Method is POST - this is cgi request [23:55:17]url: /json_proto [23:55:17]query_string will be loaded in cgi processing [23:55:17]execute_cgi json_proto POST (null) [23:55:17]execute_cgi path=json_proto method=POST [23:55:17]POST find Content-Length [23:55:17]Host: 172.17.41.195:8080 [23:55:17]Content-Length: 800 [23:55:17]Content-Type: application/json [23:55:17] [23:55:17]POST finish read [23:55:17]Found Content-Length = 800 [23:55:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507086", "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" ] } } [23:55:17]execute_script... [23:55:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507086", "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" ] } } [23:55:17]POST & json_proto [23:55:17]process_json_proto [23:55:17]json parsed OK: [23:55:17]protocol is kg_v1.0 [23:55:17]action value=close_receipt [23:55:17]process_action close_receipt [23:55:17]cmd_close_receipt [23:55:17]MH_GetDate [23:55:17]Write to MH i2c: F0 00 00 39 17 3F [23:55:17]Write i2c OK [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: F0 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: F0 09 00 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: F0 09 00 39 17 00 E7 F9 43 66 FC 21 6F 64 C1 [23:55:17]GetLastDocTimeStamp 1715730852 [23:55:17]current date 1715730919 [23:55:17]FM_GetShiftState [23:55:17]SAM_PROTO_GetShiftState [23:55:17]wFMCommunicate request_size=4 [23:55:17]MH_SAM_APDU [23:55:17]CAPDU: 80 13 01 00 [23:55:17]Write to MH i2c: E2 08 00 3A 17 80 13 01 00 00 00 00 00 CE [23:55:17]Write i2c OK [23:55:17]MH_I2C_Read... [23:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:17]Read from MH i2c: E2 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: E2 0E 00 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: E2 0E 00 3A 17 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 96 [23:55:17]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [23:55:17]wFMCommunicate OK [23:55:17]SAM_PROTO_GetShiftState done [23:55:17]FM_GetShiftState done [23:55:17]opened in 1715646054 [23:55:17]opened+sec_in_day 1715732454 [23:55:17]quantity*price = 100023 [23:55:17]sum+1 = 100024 [23:55:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.23 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.23 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 186 14.05.2024 23:55 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871829 ФД: 67179 ФПД: 81740902470278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T235519&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67179&fm=81740902470278&tin=02508201610067®Number=0000000000091845&sum=100023 [23:55:19]StoreToDocumentArchive [23:55:19]shift 355 fd 67179 [23:55:19]save to /storage/0355/doc_00067179 [23:55:19]save last doc name /storage/0355/doc_00067179 to /storage/kkm_last_doc_name [23:55:19]save OK [23:55:19]Clear old archive folders... [23:55:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:55:19]tlvbuf is 003BB9C0 [23:55:19]SAM_PROTO_ClearQueue [23:55:19]wFMCommunicate request_size=4 [23:55:19]MH_SAM_APDU [23:55:19]CAPDU: 80 09 00 00 [23:55:19]Write to MH i2c: E2 08 00 47 17 80 09 00 00 00 00 00 00 D0 [23:55:19]Write i2c OK [23:55:19]MH_I2C_Read... [23:55:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:55:19]Read from MH i2c: E2 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 03 00 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 03 00 47 17 00 90 00 D2 [23:55:19]RAPDU: 90 00 [23:55:19]wFMCommunicate OK [23:55:19]SAM_PROTO_ClearQueue done [23:55:19]KKMCreateOFDPacket [23:55:19]OFDProtocolAddRootSTLVToBuf [23:55:19]FM_MakeSignedData [23:55:19]FM_MakeSignedData [23:55:19]SAM_PROTO_SignData [23:55:19]wFMCommunicate request_size=4 [23:55:19]MH_SAM_APDU [23:55:19]CAPDU: 80 0D 01 02 [23:55:19]Write to MH i2c: E2 08 00 48 17 80 0D 01 02 00 00 00 00 D8 [23:55:19]Write i2c OK [23:55:19]MH_I2C_Read... [23:55:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:55:19]Read from MH i2c: E2 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 03 00 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 03 00 48 17 00 90 00 D3 [23:55:19]RAPDU: 90 00 [23:55:19]wFMCommunicate OK [23:55:19]wFMCommunicate request_size=255 [23:55:19]MH_SAM_APDU [23:55: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 BA 00 00 00 F4 03 04 00 E7 F9 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 4A 57 C9 74 [23:55:19]Write to MH i2c: E2 02 01 49 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 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 BA 00 00 00 F4 03 04 00 E7 F9 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 4A 57 C9 74 00 00 D7 [23:55:19]Write i2c OK [23:55:19]MH_I2C_Read... [23:55:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:19]Read from MH i2c: E2 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 03 00 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 03 00 49 17 00 90 00 D4 [23:55:19]RAPDU: 90 00 [23:55:19]wFMCommunicate OK [23:55:19]wFMCommunicate request_size=7 [23:55:19]MH_SAM_APDU [23:55:19]CAPDU: 80 0D 02 02 02 92 86 [23:55:19]Write to MH i2c: E2 0A 00 4A 17 80 0D 02 02 02 00 92 86 00 00 F7 [23:55:19]Write i2c OK [23:55:19]MH_I2C_Read... [23:55:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:19]Read from MH i2c: E2 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 03 00 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 03 00 4A 17 00 90 00 D5 [23:55:19]RAPDU: 90 00 [23:55:19]wFMCommunicate OK [23:55:19]wFMCommunicate request_size=4 [23:55:19]MH_SAM_APDU [23:55:19]CAPDU: 80 0D 03 02 [23:55:19]Write to MH i2c: E2 08 00 4B 17 80 0D 03 02 00 00 00 00 DD [23:55:19]Write i2c OK [23:55:19]MH_I2C_Read... [23:55:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:55:19]Read from MH i2c: E2 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 0B 00 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 0B 00 4B 17 00 F9 27 79 D6 9C 90 5B 19 90 00 ED [23:55:19]RAPDU: F9 27 79 D6 9C 90 5B 19 90 00 [23:55:19]wFMCommunicate OK [23:55:19]SAM_PROTO_SignData done [23:55:19]FM_MakeSignedData done [23:55:19]CreateOFDProtocolMessage [23:55:19]wFMCommunicate request_size=4 [23:55:19]MH_SAM_APDU [23:55:19]CAPDU: 80 11 00 00 [23:55:19]Write to MH i2c: E2 08 00 4C 17 80 11 00 00 00 00 00 00 DD [23:55:19]Write i2c OK [23:55:19]MH_I2C_Read... [23:55:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:19]Read from MH i2c: E2 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 17 00 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 17 00 4C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 33 [23:55:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:55:19]wFMCommunicate OK [23:55:19]CreateOFDProtocolMessage done [23:55:19]OFDSenderStorePacket 67179 [23:55:19]StoreOFDPacket docnum=67179 [23:55:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 1E 04 04 01 C0 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 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 BA 00 00 00 F4 03 04 00 E7 F9 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 4A 57 C9 74 92 86 F9 27 79 D6 9C 90 5B 19 [23:55:19]CheckFolder [23:55:19]dirname=/storage/ofd_packets [23:55:19]CheckFolder done [23:55:19]ProducePacketName [23:55:19]name=ofd_packets/00067179 [23:55:19]NVStorageSaveData ofd_packets/00067179 [23:55:19]File name is /storage/ofd_packets/00067179 [23:55:19]Write 298 bytes [23:55:19]NVStorageSaveData done [23:55:19]OFDSenderStorePacket done [23:55:19]KKMCreateOFDPacket done [23:55:19]NVStorageSaveData kkm_last_timestamp [23:55:19]File name is /storage/kkm_last_timestamp [23:55:19]Write 4 bytes [23:55:19]NVStorageSaveData done [23:55:19]ExternCall_PrintAddStr [23:55:19]wPrintStart [23:55:19]Write to MH i2c: 01 00 00 4D 17 64 [23:55:19]Write i2c OK [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: 01 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: 01 07 00 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: 01 07 00 4D 17 00 00 00 00 00 FF 0F 79 [23:55:19]RasterBufferAndPrint [23:55:19]line Счет N : (1)507086 [23:55:19]line ИНН: 02508201610067 [23:55:19]line Контрольно-Кассовый Чек [23:55:19]line ПРОДАЖА [23:55:19]line ТРК (МРК, ГНК) : 11 [23:55:19]line Товар: 2710194210 [23:55:19]line ДТ-К-5 [23:55:19]line 13.390 * 74.70 [23:55:19]line = 1000.23 [23:55:19]line НДС 12% НСП 1% [23:55:19]line > о реализуемом товаре [23:55:19]line ИТОГО: 1000.23 [23:55:19]line НСП 1% : 8.85 [23:55:19]line НДС 12% : 106.22 [23:55:19]line Наличными: 0.00 [23:55:19]line Безнал.: 1000.23 [23:55:19]line Место: АЗС № 91 "Партнер Нефть" [23:55:19]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:55:19]line СНО: Общий режим [23:55:19]line Чек 186 14.05.2024 23:55 [23:55:19]line Смена: 355 ФФД: 1.0 [23:55:19]line ЗНМ: 0300000119 [23:55:19]line РНМ: 0000000000091845 [23:55:19]line Версия ККМ: 001 [23:55:19]line Платежная система: O! деньги [23:55:19]line ФМ: 0000000000871829 [23:55:19]line ФД: 67179 [23:55:19]line ФПД: 81740902470278 [23:55:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T235519&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67179&fm=81740902470278&tin=02508201610067®Number=0000000000091845&sum=100023 [23:55:19]OFD Sender: Processing packet 67179 [packets to send 35, broken 34] [23:55:19]ProducePacketName [23:55:19]name=ofd_packets/00067179 [23:55:19]OFD Sender: To server: pG, [23:55:19]CommunicateWithHost lk.salyk.kg:30040 [23:55:19]ConnectInit lk.salyk.kg [23:55:19]written 0, free lines is 4095 [23:55:19]Connected sock=11 [23:55:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 1E 04 04 01 C0 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 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 BA 00 00 00 F4 03 04 00 E7 F9 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 4A 57 C9 74 92 86 F9 27 79 D6 9C 90 5B 19 [23:55: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 B1 F8 47 00 C9 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 6B 06 01 00 F4 03 04 00 C6 A1 43 66 B6 04 01 00 00 0D DE 93 37 07 9E 43 7E [23:55:20]CommunicateWithHost err = 0 [23:55:20]CheckOFDResponse [23:55:20]1017 (14) - 77093643461234 [23:55:20]1041 (16) - 0000000000871829 [23:55:20]1040 (4) - 67179 [23:55:20]1012 (4) - 14.05.2024 17:39 [23:55:20]1206 (1) - 0 [23:55:20]OFD Sender: Remove packet 67179 [23:55:20]ProducePacketName [23:55:20]name=ofd_packets/00067179 [23:55:20]NVStorageDeleteData [23:55:20]Write to MH i2c: 01 00 00 76 17 8D [23:55:20]Write i2c OK [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: 01 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: 01 07 00 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: 01 07 00 76 17 00 00 00 00 00 D8 0C 78 [23:55:20]RasterBufferAndPrint [23:55:20]line [23:55:20]line [23:55:20]line [23:55:20]line [23:55:20]line [23:55:20]written 0, free lines is 3294 [23:55:20]MH_Cut [23:55:20]Write to MH i2c: D1 01 00 7D 17 01 66 [23:55:20]Write i2c OK [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: D1 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: D1 01 00 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: D1 01 00 7D 17 00 65 [23:55:20]Write to MH i2c: 01 00 00 7E 17 95 [23:55:20]Write i2c OK [23:55:20]MH_I2C_Read... [23:55:20]OFD Sender: No OFD packet to send [23:55:21]*** Cut start [23:55:21]*** Purtial cut [23:55:21]*** CUTSNS_PIN = 0 [23:55:21]*** Stage 1: CUTSNS_PIN = 1 [23:55:23]Read from MH i2c: 01 [23:55:23]MH_I2C_Read... [23:55:23]*** Stop cut motor [23:55:23]*** Cut end [23:55:23]Read from MH i2c: 01 07 00 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: 01 07 00 7E 17 00 00 00 00 00 FF 0F AA [23:55:23]process_action close_receipt done [23:55:23]requested_data is exist [23:55:23]produce_requested_data [23:55:23]requested_item fm.sn is exist - process it [23:55:23]wFMCommunicate request_size=4 [23:55:23]MH_SAM_APDU [23:55:23]CAPDU: 80 11 00 00 [23:55:23]Write to MH i2c: E2 08 00 7F 17 80 11 00 00 00 00 00 00 10 [23:55:23]Write i2c OK [23:55:23]MH_I2C_Read... [23:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:23]Read from MH i2c: E2 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: E2 17 00 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: E2 17 00 7F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 66 [23:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:55:23]wFMCommunicate OK [23:55:23]requested_item fd.num is exist - process it [23:55:23]SAM_PROTO_GetFieldsCounters [23:55:23]wFMCommunicate request_size=4 [23:55:23]MH_SAM_APDU [23:55:23]CAPDU: 80 13 00 00 [23:55:23]Write to MH i2c: E2 08 00 80 17 80 13 00 00 00 00 00 00 13 [23:55:23]Write i2c OK [23:55:23]MH_I2C_Read... [23:55:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:23]Read from MH i2c: E2 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: E2 62 00 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: E2 62 00 80 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 6B 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [23:55: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 6B 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:23]wFMCommunicate OK [23:55:23]SAM_PROTO_GetFieldsCounters done [23:55:23]requested_item shift.num is exist - process it [23:55:23]requested_item shift.opened is exist - process it [23:55:23]req_shift_opened [23:55:23]FM_GetShiftState [23:55:23]SAM_PROTO_GetShiftState [23:55:23]wFMCommunicate request_size=4 [23:55:23]MH_SAM_APDU [23:55:23]CAPDU: 80 13 01 00 [23:55:23]Write to MH i2c: E2 08 00 81 17 80 13 01 00 00 00 00 00 15 [23:55:23]Write i2c OK [23:55:23]MH_I2C_Read... [23:55:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:23]Read from MH i2c: E2 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: E2 0E 00 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: E2 0E 00 81 17 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 DD [23:55:23]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [23:55:23]wFMCommunicate OK [23:55:23]SAM_PROTO_GetShiftState done [23:55:23]FM_GetShiftState done [23:55:23]req_shift_opened done [23:55:23]requested_item shift.open_date is exist - process it [23:55:23]req_shift_open_date [23:55:23]req_shift_open_date done [23:55:23]produce_requested_data done [23:55:23]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67179,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [23:55:23]process_action_free close_receipt [23:55:23]json_value_free [23:55:23]json_value_free done [23:55:23]process_json_proto returns [23:55:23]Send response to host [23:55:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67179,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [23:55:23]free response buf [23:55:23]execute_script done [23:55:23]execute_script returns [23:55:23]free content buf [23:55:23]Sock 7.Close socket [23:55:23]Sock 7.Thread stoped [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:24]accept exits with 9 [23:56:24]New connection [23:56:24]New thread 3066731876 created [23:56:24]Thread 3066588516 joined [23:56:24]Waiting for new connection... [23:56:24] Sock 9.Parse request [23:56:24]Sock 9.Check first char [23:56:24]Sock 9.First char is OK [23:56:24]request: POST /json_proto HTTP/1.0 [23:56:24]Method: POST [23:56:24]URL: /json_proto [23:56:24]Method is POST - this is cgi request [23:56:24]url: /json_proto [23:56:24]query_string will be loaded in cgi processing [23:56:24]execute_cgi json_proto POST (null) [23:56:24]execute_cgi path=json_proto method=POST [23:56:24]POST find Content-Length [23:56:24]Host: 172.17.41.195:8080 [23:56:24]Content-Length: 1179 [23:56:24]Content-Type: application/json [23:56:24] [23:56:24]POST finish read [23:56:24]Found Content-Length = 1179 [23:56: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)507087\u000A14.05.2024 23:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:24]execute_script... [23:56: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)507087\u000A14.05.2024 23:39\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:24]POST & json_proto [23:56:24]process_json_proto [23:56:24]json parsed OK: [23:56:24]protocol is kg_v1.0 [23:56:24]action value=print_text [23:56:24]process_action print_text [23:56:24]cmd_print_text [23:56:24]ExternCall_PrintAddStr [23:56:24]wPrintStart [23:56:24]Write to MH i2c: 01 00 00 82 17 99 [23:56:24]Write i2c OK [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: 01 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: 01 07 00 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: 01 07 00 82 17 00 00 00 00 00 FF 0F AE [23:56:24]RasterBufferAndPrint [23:56:24]line *****ТОВАРНЫЙ ЧЕК***** [23:56:24]line АЗС-91 [23:56:24]line Партнер нефть [23:56:24]line 02508201610067 [23:56:24]line Кассир : Адишов И. [23:56:24]line Счет N : (1)507087 [23:56:24]line 14.05.2024 23:39 [23:56:24]line ПРОДАЖА [23:56:24]line ТРК (МРК, ГНК): 11 [23:56:24]line Вид ГСМ : 2710194210 [23:56:24]line ДТ-К-5 [23:56:24]line 13.390 x 74.70 [23:56:24]line ИТОГ: 1000.23 [23:56:24]line Тип оплаты: Талоны: Топливная Карта [23:56:24]line 02750 [23:56:24]line ______________________ [23:56:24]line (подпись) [23:56:24]written 0, free lines is 4095 [23:56:24]Write to MH i2c: 01 00 00 96 17 AD [23:56:24]Write i2c OK [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: 01 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: 01 07 00 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: 01 07 00 96 17 00 00 00 00 00 0E 0E D0 [23:56:24]RasterBufferAndPrint [23:56:24]line [23:56:24]line [23:56:24]line [23:56:24]line [23:56:24]line [23:56:24]written 0, free lines is 3599 [23:56:24]MH_Cut [23:56:24]Write to MH i2c: D1 01 00 9D 17 01 86 [23:56:24]Write i2c OK [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: D1 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: D1 01 00 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: D1 01 00 9D 17 00 85 [23:56:24]Write to MH i2c: 01 00 00 9E 17 B5 [23:56:24]Write i2c OK [23:56:24]MH_I2C_Read... [23:56:24]*** Cut start [23:56:24]*** Purtial cut [23:56:24]*** Stage 1: CUTSNS_PIN = 1 [23:56:25]Read from MH i2c: 01 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: 01 07 00 [23:56:25]MH_I2C_Read... [23:56:25]*** Stop cut motor [23:56:25]*** Cut end [23:56:25]Read from MH i2c: 01 07 00 9E 17 00 00 00 00 00 FF 0F CA [23:56:25]process_action print_text done [23:56:25]requested_data is exist [23:56:25]produce_requested_data [23:56:25]requested_item fm.sn is exist - process it [23:56:25]wFMCommunicate request_size=4 [23:56:25]MH_SAM_APDU [23:56:25]CAPDU: 80 11 00 00 [23:56:25]Write to MH i2c: E2 08 00 9F 17 80 11 00 00 00 00 00 00 30 [23:56:25]Write i2c OK [23:56:25]MH_I2C_Read... [23:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:25]Read from MH i2c: E2 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 17 00 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 17 00 9F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 86 [23:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:56:25]wFMCommunicate OK [23:56:25]requested_item fd.num is exist - process it [23:56:25]SAM_PROTO_GetFieldsCounters [23:56:25]wFMCommunicate request_size=4 [23:56:25]MH_SAM_APDU [23:56:25]CAPDU: 80 13 00 00 [23:56:25]Write to MH i2c: E2 08 00 A0 17 80 13 00 00 00 00 00 00 33 [23:56:25]Write i2c OK [23:56:25]MH_I2C_Read... [23:56:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:25]Read from MH i2c: E2 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 62 00 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 62 00 A0 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 6B 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [23:56: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 6B 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:25]wFMCommunicate OK [23:56:25]SAM_PROTO_GetFieldsCounters done [23:56:25]requested_item shift.num is exist - process it [23:56:25]requested_item shift.opened is exist - process it [23:56:25]req_shift_opened [23:56:25]FM_GetShiftState [23:56:25]SAM_PROTO_GetShiftState [23:56:25]wFMCommunicate request_size=4 [23:56:25]MH_SAM_APDU [23:56:25]CAPDU: 80 13 01 00 [23:56:25]Write to MH i2c: E2 08 00 A1 17 80 13 01 00 00 00 00 00 35 [23:56:25]Write i2c OK [23:56:25]MH_I2C_Read... [23:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:25]Read from MH i2c: E2 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 0E 00 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 0E 00 A1 17 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 FD [23:56:25]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [23:56:25]wFMCommunicate OK [23:56:25]SAM_PROTO_GetShiftState done [23:56:25]FM_GetShiftState done [23:56:25]req_shift_opened done [23:56:25]requested_item shift.open_date is exist - process it [23:56:25]req_shift_open_date [23:56:25]req_shift_open_date done [23:56:25]produce_requested_data done [23:56:25]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67179,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [23:56:25]process_action_free print_text [23:56:25]json_value_free [23:56:25]json_value_free done [23:56:25]process_json_proto returns [23:56:25]Send response to host [23:56:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67179,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [23:56:25]free response buf [23:56:25]execute_script done [23:56:25]execute_script returns [23:56:25]free content buf [23:56:25]Sock 9.Close socket [23:56:25]Sock 9.Thread stoped [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:51]accept exits with 7 [23:56:51]New connection [23:56:51]New thread 3066588516 created [23:56:51]Thread 3066731876 joined [23:56:51]Waiting for new connection... [23:56:51] Sock 7.Parse request [23:56:51]Sock 7.Check first char [23:56:51]Sock 7.First char is OK [23:56:51]request: POST /json_proto HTTP/1.0 [23:56:51]Method: POST [23:56:51]URL: /json_proto [23:56:51]Method is POST - this is cgi request [23:56:51]url: /json_proto [23:56:51]query_string will be loaded in cgi processing [23:56:51]execute_cgi json_proto POST (null) [23:56:51]execute_cgi path=json_proto method=POST [23:56:51]POST find Content-Length [23:56:51]Host: 172.17.41.195:8080 [23:56:51]Content-Length: 679 [23:56:51]Content-Type: application/json [23:56:51] [23:56:51]POST finish read [23:56:51]Found Content-Length = 679 [23:56:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507088", "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" ] } } [23:56:51]execute_script... [23:56: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)507088", "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" ] } } [23:56:51]POST & json_proto [23:56:51]process_json_proto [23:56:51]json parsed OK: [23:56:51]protocol is kg_v1.0 [23:56:51]action value=close_receipt [23:56:51]process_action close_receipt [23:56:51]cmd_close_receipt [23:56:51]MH_GetDate [23:56:51]Write to MH i2c: F0 00 00 A2 17 A8 [23:56:51]Write i2c OK [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: F0 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: F0 09 00 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: F0 09 00 A2 17 00 44 FA 43 66 FC 21 6F 64 88 [23:56:51]GetLastDocTimeStamp 1715730919 [23:56:51]current date 1715731012 [23:56:51]FM_GetShiftState [23:56:51]SAM_PROTO_GetShiftState [23:56:51]wFMCommunicate request_size=4 [23:56:51]MH_SAM_APDU [23:56:51]CAPDU: 80 13 01 00 [23:56:51]Write to MH i2c: E2 08 00 A3 17 80 13 01 00 00 00 00 00 37 [23:56:51]Write i2c OK [23:56:51]MH_I2C_Read... [23:56:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:51]Read from MH i2c: E2 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 0E 00 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 0E 00 A3 17 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 FF [23:56:51]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [23:56:51]wFMCommunicate OK [23:56:51]SAM_PROTO_GetShiftState done [23:56:51]FM_GetShiftState done [23:56:51]opened in 1715646054 [23:56:51]opened+sec_in_day 1715732454 [23:56:51]quantity*price = 100023 [23:56:51]sum+1 = 100024 [23:56:51]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 СНО: Общий режим Чек 187 14.05.2024 23:56 Смена: 355 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67180 ФПД: 268956531371939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T235652&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67180&fm=268956531371939&tin=02508201610067®Number=0000000000091845&sum=100000 [23:56:52]StoreToDocumentArchive [23:56:52]shift 355 fd 67180 [23:56:52]save to /storage/0355/doc_00067180 [23:56:52]save last doc name /storage/0355/doc_00067180 to /storage/kkm_last_doc_name [23:56:52]save OK [23:56:52]Clear old archive folders... [23:56:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:56:52]tlvbuf is 00347480 [23:56:52]SAM_PROTO_ClearQueue [23:56:52]wFMCommunicate request_size=4 [23:56:52]MH_SAM_APDU [23:56:52]CAPDU: 80 09 00 00 [23:56:52]Write to MH i2c: E2 08 00 B0 17 80 09 00 00 00 00 00 00 39 [23:56:52]Write i2c OK [23:56:52]MH_I2C_Read... [23:56:52]Read from MH i2c: E2 [23:56:52]MH_I2C_Read... [23:56:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:56:52]Read from MH i2c: E2 03 00 [23:56:52]MH_I2C_Read... [23:56:52]Read from MH i2c: E2 03 00 B0 17 00 90 00 3B [23:56:52]RAPDU: 90 00 [23:56:52]wFMCommunicate OK [23:56:52]SAM_PROTO_ClearQueue done [23:56:52]KKMCreateOFDPacket [23:56:52]OFDProtocolAddRootSTLVToBuf [23:56:52]FM_MakeSignedData [23:56:52]FM_MakeSignedData [23:56:52]SAM_PROTO_SignData [23:56:52]wFMCommunicate request_size=4 [23:56:52]MH_SAM_APDU [23:56:52]CAPDU: 80 0D 01 02 [23:56:52]Write to MH i2c: E2 08 00 B1 17 80 0D 01 02 00 00 00 00 41 [23:56:52]Write i2c OK [23:56:52]MH_I2C_Read... [23:56:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:56:52]Read from MH i2c: E2 [23:56:52]MH_I2C_Read... [23:56:52]Read from MH i2c: E2 03 00 [23:56:52]MH_I2C_Read... [23:56:52]Read from MH i2c: E2 03 00 B1 17 00 90 00 3C [23:56:52]RAPDU: 90 00 [23:56:52]wFMCommunicate OK [23:56:52]wFMCommunicate request_size=255 [23:56:52]MH_SAM_APDU [23:56: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 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 BB 00 00 00 F4 03 04 00 44 FA 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F4 9D 52 83 [23:56:52]Write to MH i2c: E2 02 01 B2 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 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 BB 00 00 00 F4 03 04 00 44 FA 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F4 9D 52 83 00 00 FA [23:56:52]Write i2c OK [23:56:52]MH_I2C_Read... [23:56:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:52]Read from MH i2c: E2 [23:56:52]MH_I2C_Read... [23:56:52]Read from MH i2c: E2 03 00 [23:56:52]MH_I2C_Read... [23:56:52]Read from MH i2c: E2 03 00 B2 17 00 90 00 3D [23:56:52]RAPDU: 90 00 [23:56:52]wFMCommunicate OK [23:56:52]wFMCommunicate request_size=7 [23:56:52]MH_SAM_APDU [23:56:52]CAPDU: 80 0D 02 02 02 2F A3 [23:56:52]Write to MH i2c: E2 0A 00 B3 17 80 0D 02 02 02 00 2F A3 00 00 1A [23:56:52]Write i2c OK [23:56:52]MH_I2C_Read... [23:56:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:52]Read from MH i2c: E2 [23:56:52]MH_I2C_Read... [23:56:52]Read from MH i2c: E2 03 00 [23:56:52]MH_I2C_Read... [23:56:52]Read from MH i2c: E2 03 00 B3 17 00 90 00 3E [23:56:52]RAPDU: 90 00 [23:56:52]wFMCommunicate OK [23:56:52]wFMCommunicate request_size=4 [23:56:52]MH_SAM_APDU [23:56:52]CAPDU: 80 0D 03 02 [23:56:52]Write to MH i2c: E2 08 00 B4 17 80 0D 03 02 00 00 00 00 46 [23:56:52]Write i2c OK [23:56:52]MH_I2C_Read... [23:56:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:56:52]Read from MH i2c: E2 [23:56:52]MH_I2C_Read... [23:56:52]Read from MH i2c: E2 0B 00 [23:56:52]MH_I2C_Read... [23:56:52]Read from MH i2c: E2 0B 00 B4 17 00 2D A6 68 BD 33 00 9A FE 90 00 0A [23:56:52]RAPDU: 2D A6 68 BD 33 00 9A FE 90 00 [23:56:52]wFMCommunicate OK [23:56:52]SAM_PROTO_SignData done [23:56:52]FM_MakeSignedData done [23:56:52]CreateOFDProtocolMessage [23:56:52]wFMCommunicate request_size=4 [23:56:52]MH_SAM_APDU [23:56:52]CAPDU: 80 11 00 00 [23:56:52]Write to MH i2c: E2 08 00 B5 17 80 11 00 00 00 00 00 00 46 [23:56:52]Write i2c OK [23:56:52]MH_I2C_Read... [23:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:53]Read from MH i2c: E2 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: E2 17 00 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: E2 17 00 B5 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 9C [23:56:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:56:53]wFMCommunicate OK [23:56:53]CreateOFDProtocolMessage done [23:56:53]OFDSenderStorePacket 67180 [23:56:53]StoreOFDPacket docnum=67180 [23:56:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 2C 6C 04 01 37 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BB 00 00 00 F4 03 04 00 44 FA 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F4 9D 52 83 2F A3 2D A6 68 BD 33 00 9A FE [23:56:53]CheckFolder [23:56:53]dirname=/storage/ofd_packets [23:56:53]CheckFolder done [23:56:53]ProducePacketName [23:56:53]name=ofd_packets/00067180 [23:56:53]NVStorageSaveData ofd_packets/00067180 [23:56:53]File name is /storage/ofd_packets/00067180 [23:56:53]Write 298 bytes [23:56:53]NVStorageSaveData done [23:56:53]OFDSenderStorePacket done [23:56:53]KKMCreateOFDPacket done [23:56:53]NVStorageSaveData kkm_last_timestamp [23:56:53]File name is /storage/kkm_last_timestamp [23:56:53]Write 4 bytes [23:56:53]NVStorageSaveData done [23:56:53]ExternCall_PrintAddStr [23:56:53]wPrintStart [23:56:53]Write to MH i2c: 01 00 00 B6 17 CD [23:56:53]OFD Sender: Processing packet 67180 [packets to send 35, broken 34] [23:56:53]ProducePacketName [23:56:53]name=ofd_packets/00067180 [23:56:53]OFD Sender: To server: pG, [23:56:53]CommunicateWithHost lk.salyk.kg:30040 [23:56:53]ConnectInit lk.salyk.kg [23:56:53]Write i2c OK [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: 01 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: 01 07 00 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: 01 07 00 B6 17 00 00 00 00 00 FF 0F E2 [23:56:53]RasterBufferAndPrint [23:56:53]line Счет N : (1)507088 [23:56:53]line ИНН: 02508201610067 [23:56:53]line Контрольно-Кассовый Чек [23:56:53]line ПРОДАЖА [23:56:53]line ТРК (МРК, ГНК) : 41 [23:56:53]line Товар: 2710194210 [23:56:53]line ДТ-К-5 [23:56:53]line 13.390 * 74.70 [23:56:53]line = 1000.23 [23:56:53]line НДС 12% НСП 1% [23:56:53]line > о реализуемом товаре [23:56:53]line ОКРУГЛЕНИЕ: -0.23 [23:56:53]line ИТОГО: 1000.00 [23:56:53]line Внесено: 1000.00 [23:56:53]line СДАЧА: 0.00 [23:56:53]line НСП 1% : 8.85 [23:56:53]line НДС 12% : 106.22 [23:56:53]line Наличными: 1000.00 [23:56:53]line Безнал.: 0.00 [23:56:53]line Место: АЗС № 91 "Партнер Нефть" [23:56:53]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [23:56:53]line СНО: Общий режим [23:56:53]line Чек 187 14.05.2024 23:56 [23:56:53]line Смена: 355 ФФД: 1.0 [23:56:53]line ЗНМ: 0300000119 [23:56:53]line РНМ: 0000000000091845 [23:56:53]line Версия ККМ: 001 [23:56:53]line ФМ: 0000000000871829 [23:56:53]line ФД: 67180 [23:56:53]line ФПД: 268956531371939 [23:56:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240514T235652&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67180&fm=268956531371939&tin=02508201610067®Number=0000000000091845&sum=100000 [23:56:53]Connected sock=10 [23:56: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 2C 6C 04 01 37 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BB 00 00 00 F4 03 04 00 44 FA 43 66 0E 04 04 00 63 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 F4 9D 52 83 2F A3 2D A6 68 BD 33 00 9A FE [23:56:53]written 0, free lines is 4095 [23:56: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 05 F7 47 00 98 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 06 01 00 F4 03 04 00 23 A2 43 66 B6 04 01 00 00 55 EB C3 F9 E2 A8 C9 41 [23:56:53]CommunicateWithHost err = 0 [23:56:53]CheckOFDResponse [23:56:53]1017 (14) - 77093643461234 [23:56:53]1041 (16) - 0000000000871829 [23:56:53]1040 (4) - 67180 [23:56:53]1012 (4) - 14.05.2024 17:40 [23:56:53]1206 (1) - 0 [23:56:53]OFD Sender: Remove packet 67180 [23:56:53]ProducePacketName [23:56:53]name=ofd_packets/00067180 [23:56:53]NVStorageDeleteData [23:56:53]Write to MH i2c: 01 00 00 E0 17 F7 [23:56:53]Write i2c OK [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: 01 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: 01 07 00 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: 01 07 00 E0 17 00 00 00 00 00 D4 0C DE [23:56:53]RasterBufferAndPrint [23:56:53]line [23:56:53]line [23:56:53]line [23:56:53]line [23:56:53]line [23:56:53]written 0, free lines is 3292 [23:56:53]MH_Cut [23:56:53]Write to MH i2c: D1 01 00 E7 17 01 D0 [23:56:53]Write i2c OK [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: D1 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: D1 01 00 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: D1 01 00 E7 17 00 CF [23:56:53]Write to MH i2c: 01 00 00 E8 17 FF [23:56:53]Write i2c OK [23:56:53]MH_I2C_Read... [23:56:54]OFD Sender: No OFD packet to send [23:56:54]*** Cut start [23:56:54]*** Purtial cut [23:56:54]*** CUTSNS_PIN = 0 [23:56:54]*** Stage 1: CUTSNS_PIN = 1 [23:56:56]Read from MH i2c: 01 [23:56:56]MH_I2C_Read... [23:56:56]*** Stop cut motor [23:56:56]*** Cut end [23:56:56]Read from MH i2c: 01 07 00 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: 01 07 00 E8 17 00 00 00 00 00 FF 0F 14 [23:56:56]process_action close_receipt done [23:56:56]requested_data is exist [23:56:56]produce_requested_data [23:56:56]requested_item fm.sn is exist - process it [23:56:56]wFMCommunicate request_size=4 [23:56:56]MH_SAM_APDU [23:56:56]CAPDU: 80 11 00 00 [23:56:56]Write to MH i2c: E2 08 00 E9 17 80 11 00 00 00 00 00 00 7A [23:56:56]Write i2c OK [23:56:56]MH_I2C_Read... [23:56:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:56]Read from MH i2c: E2 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 17 00 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 17 00 E9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 D0 [23:56: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:56:56]wFMCommunicate OK [23:56:56]requested_item fd.num is exist - process it [23:56:56]SAM_PROTO_GetFieldsCounters [23:56:56]wFMCommunicate request_size=4 [23:56:56]MH_SAM_APDU [23:56:56]CAPDU: 80 13 00 00 [23:56:56]Write to MH i2c: E2 08 00 EA 17 80 13 00 00 00 00 00 00 7D [23:56:56]Write i2c OK [23:56:56]MH_I2C_Read... [23:56:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:56]Read from MH i2c: E2 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 62 00 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 62 00 EA 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 6C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [23:56: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 6C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:56]wFMCommunicate OK [23:56:56]SAM_PROTO_GetFieldsCounters done [23:56:56]requested_item shift.num is exist - process it [23:56:56]requested_item shift.opened is exist - process it [23:56:56]req_shift_opened [23:56:56]FM_GetShiftState [23:56:56]SAM_PROTO_GetShiftState [23:56:56]wFMCommunicate request_size=4 [23:56:56]MH_SAM_APDU [23:56:56]CAPDU: 80 13 01 00 [23:56:56]Write to MH i2c: E2 08 00 EB 17 80 13 01 00 00 00 00 00 7F [23:56:56]Write i2c OK [23:56:56]MH_I2C_Read... [23:56:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:56]Read from MH i2c: E2 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 0E 00 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 0E 00 EB 17 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 47 [23:56:56]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [23:56:56]wFMCommunicate OK [23:56:56]SAM_PROTO_GetShiftState done [23:56:56]FM_GetShiftState done [23:56:56]req_shift_opened done [23:56:56]requested_item shift.open_date is exist - process it [23:56:56]req_shift_open_date [23:56:56]req_shift_open_date done [23:56:56]produce_requested_data done [23:56:56]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67180,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [23:56:56]process_action_free close_receipt [23:56:56]json_value_free [23:56:56]json_value_free done [23:56:56]process_json_proto returns [23:56:56]Send response to host [23:56:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67180,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [23:56:56]free response buf [23:56:56]execute_script done [23:56:56]execute_script returns [23:56:56]free content buf [23:56:56]Sock 7.Close socket [23:56:56]Sock 7.Thread stoped [23:56:59]OFD Sender: No OFD packet to send [23:57:04]OFD Sender: No OFD packet to send [23:57:09]OFD Sender: No OFD packet to send [23:57:14]OFD Sender: No OFD packet to send [23:57:19]OFD Sender: No OFD packet to send [23:57:19]accept exits with 9 [23:57:19]New connection [23:57:19]New thread 3066731876 created [23:57:19]Thread 3066588516 joined [23:57:19]Waiting for new connection... [23:57:19] Sock 9.Parse request [23:57:19]Sock 9.Check first char [23:57:19]Sock 9.First char is OK [23:57:19]request: POST /json_proto HTTP/1.0 [23:57:19]Method: POST [23:57:19]URL: /json_proto [23:57:19]Method is POST - this is cgi request [23:57:19]url: /json_proto [23:57:19]query_string will be loaded in cgi processing [23:57:19]execute_cgi json_proto POST (null) [23:57:19]execute_cgi path=json_proto method=POST [23:57:19]POST find Content-Length [23:57:19]Host: 172.17.41.195:8080 [23:57:19]Content-Length: 1182 [23:57:19]Content-Type: application/json [23:57:19] [23:57:19]POST finish read [23:57:19]Found Content-Length = 1182 [23:57: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)507085\u000A14.05.2024 23:39\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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A97027\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:19]execute_script... [23:57: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)507085\u000A14.05.2024 23:39\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\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A97027\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:19]POST & json_proto [23:57:19]process_json_proto [23:57:19]json parsed OK: [23:57:19]protocol is kg_v1.0 [23:57:19]action value=print_text [23:57:19]process_action print_text [23:57:19]cmd_print_text [23:57:19]ExternCall_PrintAddStr [23:57:19]wPrintStart [23:57:19]Write to MH i2c: 01 00 00 EC 17 03 [23:57:19]Write i2c OK [23:57:19]MH_I2C_Read... [23:57:19]Read from MH i2c: 01 [23:57:19]MH_I2C_Read... [23:57:19]Read from MH i2c: 01 07 00 [23:57:19]MH_I2C_Read... [23:57:19]Read from MH i2c: 01 07 00 EC 17 00 00 00 00 00 FF 0F 18 [23:57:19]RasterBufferAndPrint [23:57:19]line *****ТОВАРНЫЙ ЧЕК***** [23:57:19]line АЗС-91 [23:57:19]line Партнер нефть [23:57:19]line 02508201610067 [23:57:19]line Кассир : Адишов И. [23:57:19]line Счет N : (1)507085 [23:57:19]line 14.05.2024 23:39 [23:57:19]line ПРОДАЖА [23:57:19]line ТРК (МРК, ГНК): 33 [23:57:19]line Вид ГСМ : 2710124130 [23:57:19]line Аи-92-К-5 [23:57:19]line 30.000 x 66.80 [23:57:19]line ИТОГ: 2004.00 [23:57:19]line Тип оплаты: Талоны: Топливная Карта [23:57:19]line 97027 [23:57:19]line ______________________ [23:57:19]line (подпись) [23:57:19]written 0, free lines is 4095 [23:57:19]Write to MH i2c: 01 00 00 00 18 18 [23:57:19]Write i2c OK [23:57:19]MH_I2C_Read... [23:57:19]Read from MH i2c: 01 [23:57:19]MH_I2C_Read... [23:57:19]Read from MH i2c: 01 07 00 [23:57:19]MH_I2C_Read... [23:57:19]Read from MH i2c: 01 07 00 00 18 00 00 00 00 00 11 0E 3E [23:57:19]RasterBufferAndPrint [23:57:19]line [23:57:19]line [23:57:19]line [23:57:19]line [23:57:19]line [23:57:19]written 0, free lines is 3602 [23:57:19]MH_Cut [23:57:19]Write to MH i2c: D1 01 00 07 18 01 F1 [23:57:19]Write i2c OK [23:57:19]MH_I2C_Read... [23:57:19]Read from MH i2c: D1 [23:57:19]MH_I2C_Read... [23:57:19]Read from MH i2c: D1 01 00 [23:57:19]MH_I2C_Read... [23:57:19]Read from MH i2c: D1 01 00 07 18 00 F0 [23:57:19]Write to MH i2c: 01 00 00 08 18 20 [23:57:19]Write i2c OK [23:57:19]MH_I2C_Read... [23:57:20]*** Cut start [23:57:20]*** Purtial cut [23:57:20]*** Stage 1: CUTSNS_PIN = 1 [23:57:20]Read from MH i2c: 01 [23:57:20]MH_I2C_Read... [23:57:20]*** Stop cut motor [23:57:20]*** Cut end [23:57:20]Read from MH i2c: 01 07 00 [23:57:20]MH_I2C_Read... [23:57:20]Read from MH i2c: 01 07 00 08 18 00 00 00 00 00 FF 0F 35 [23:57:20]process_action print_text done [23:57:20]requested_data is exist [23:57:20]produce_requested_data [23:57:20]requested_item fm.sn is exist - process it [23:57:20]wFMCommunicate request_size=4 [23:57:20]MH_SAM_APDU [23:57:20]CAPDU: 80 11 00 00 [23:57:20]Write to MH i2c: E2 08 00 09 18 80 11 00 00 00 00 00 00 9B [23:57:20]Write i2c OK [23:57:20]MH_I2C_Read... [23:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:20]Read from MH i2c: E2 [23:57:20]MH_I2C_Read... [23:57:20]Read from MH i2c: E2 17 00 [23:57:20]MH_I2C_Read... [23:57:20]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 [23:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [23:57:20]wFMCommunicate OK [23:57:20]requested_item fd.num is exist - process it [23:57:20]SAM_PROTO_GetFieldsCounters [23:57:20]wFMCommunicate request_size=4 [23:57:20]MH_SAM_APDU [23:57:20]CAPDU: 80 13 00 00 [23:57:20]Write to MH i2c: E2 08 00 0A 18 80 13 00 00 00 00 00 00 9E [23:57:20]Write i2c OK [23:57:20]MH_I2C_Read... [23:57:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:57:20]Read from MH i2c: E2 [23:57:20]MH_I2C_Read... [23:57:20]Read from MH i2c: E2 62 00 [23:57:20]MH_I2C_Read... [23:57:20]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 6C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [23:57: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 6C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:57:20]wFMCommunicate OK [23:57:20]SAM_PROTO_GetFieldsCounters done [23:57:20]requested_item shift.num is exist - process it [23:57:20]requested_item shift.opened is exist - process it [23:57:20]req_shift_opened [23:57:20]FM_GetShiftState [23:57:20]SAM_PROTO_GetShiftState [23:57:20]wFMCommunicate request_size=4 [23:57:20]MH_SAM_APDU [23:57:20]CAPDU: 80 13 01 00 [23:57:20]Write to MH i2c: E2 08 00 0B 18 80 13 01 00 00 00 00 00 A0 [23:57:20]Write i2c OK [23:57:20]MH_I2C_Read... [23:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:20]Read from MH i2c: E2 [23:57:20]MH_I2C_Read... [23:57:20]Read from MH i2c: E2 0E 00 [23:57:20]MH_I2C_Read... [23:57:20]Read from MH i2c: E2 0E 00 0B 18 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 68 [23:57:20]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [23:57:20]wFMCommunicate OK [23:57:20]SAM_PROTO_GetShiftState done [23:57:20]FM_GetShiftState done [23:57:20]req_shift_opened done [23:57:20]requested_item shift.open_date is exist - process it [23:57:20]req_shift_open_date [23:57:20]req_shift_open_date done [23:57:20]produce_requested_data done [23:57:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67180,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [23:57:20]process_action_free print_text [23:57:20]json_value_free [23:57:20]json_value_free done [23:57:20]process_json_proto returns [23:57:20]Send response to host [23:57:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67180,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [23:57:20]free response buf [23:57:20]execute_script done [23:57:20]execute_script returns [23:57:20]free content buf [23:57:20]Sock 9.Close socket [23:57:20]Sock 9.Thread stoped [23:57:24]OFD Sender: No OFD packet to send [23:57:29]OFD Sender: No OFD packet to send [23:57:34]OFD Sender: No OFD packet to send [23:57:39]OFD Sender: No OFD packet to send [23:57:44]OFD Sender: No OFD packet to send [23:57:49]OFD Sender: No OFD packet to send [23:57:54]OFD Sender: No OFD packet to send [23:57:59]OFD Sender: No OFD packet to send [23:58:04]OFD Sender: No OFD packet to send [23:58:09]OFD Sender: No OFD packet to send [23:58:14]OFD Sender: No OFD packet to send [23:58:19]OFD Sender: No OFD packet to send [23:58:24]OFD Sender: No OFD packet to send [23:58:29]OFD Sender: No OFD packet to send [23:58:34]OFD Sender: No OFD packet to send [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:14]OFD Sender: No OFD packet to send [23:59:19]OFD Sender: No OFD packet to send [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:39]OFD Sender: No OFD packet to send [23:59:44]OFD Sender: No OFD packet to send [23:59:49]OFD Sender: No OFD packet to send [23:59:54]OFD Sender: No OFD packet to send [23:59:59]OFD Sender: No OFD packet to send [00:00:04]OFD Sender: No OFD packet to send [00:00:09]OFD Sender: No OFD packet to send [00:00:14]OFD Sender: No OFD packet to send [00:00:19]OFD Sender: No OFD packet to send [00:00:24]OFD Sender: No OFD packet to send [00:00:29]OFD Sender: No OFD packet to send [00:00:34]OFD Sender: No OFD packet to send [00:00:39]OFD Sender: No OFD packet to send [00:00:44]OFD Sender: No OFD packet to send [00:00:49]OFD Sender: No OFD packet to send [00:00:54]OFD Sender: No OFD packet to send [00:00:59]OFD Sender: No OFD packet to send [00:01:04]OFD Sender: No OFD packet to send [00:01:09]OFD Sender: No OFD packet to send [00:01:14]OFD Sender: No OFD packet to send [00:01:19]OFD Sender: No OFD packet to send [00:01:24]OFD Sender: No OFD packet to send [00:01:29]OFD Sender: No OFD packet to send [00:01:34]OFD Sender: No OFD packet to send [00:01:39]OFD Sender: No OFD packet to send [00:01:44]OFD Sender: No OFD packet to send [00:01:49]OFD Sender: No OFD packet to send [00:01:54]OFD Sender: No OFD packet to send [00:01:59]OFD Sender: No OFD packet to send [00:02:04]OFD Sender: No OFD packet to send [00:02:09]OFD Sender: No OFD packet to send [00:02:14]OFD Sender: No OFD packet to send [00:02:19]OFD Sender: No OFD packet to send [00:02:24]OFD Sender: No OFD packet to send [00:02:29]OFD Sender: No OFD packet to send [00:02:34]OFD Sender: No OFD packet to send [00:02:39]OFD Sender: No OFD packet to send [00:02:44]OFD Sender: No OFD packet to send [00:02:49]OFD Sender: No OFD packet to send [00:02:54]OFD Sender: No OFD packet to send [00:02:59]OFD Sender: No OFD packet to send [00:03:04]OFD Sender: No OFD packet to send [00:03:09]OFD Sender: No OFD packet to send [00:03:14]OFD Sender: No OFD packet to send [00:03:19]OFD Sender: No OFD packet to send [00:03:24]OFD Sender: No OFD packet to send [00:03:29]OFD Sender: No OFD packet to send [00:03:34]OFD Sender: No OFD packet to send [00:03:39]OFD Sender: No OFD packet to send [00:03:44]OFD Sender: No OFD packet to send [00:03:49]OFD Sender: No OFD packet to send [00:03:54]OFD Sender: No OFD packet to send [00:03:59]OFD Sender: No OFD packet to send [00:04:04]OFD Sender: No OFD packet to send [00:04:09]OFD Sender: No OFD packet to send [00:04:14]OFD Sender: No OFD packet to send [00:04:19]OFD Sender: No OFD packet to send [00:04:24]OFD Sender: No OFD packet to send [00:04:29]OFD Sender: No OFD packet to send [00:04:34]OFD Sender: No OFD packet to send [00:04:39]OFD Sender: No OFD packet to send [00:04:44]OFD Sender: No OFD packet to send [00:04:49]OFD Sender: No OFD packet to send [00:04:54]OFD Sender: No OFD packet to send [00:04:59]OFD Sender: No OFD packet to send [00:05:04]OFD Sender: No OFD packet to send [00:05:09]OFD Sender: No OFD packet to send [00:05:14]OFD Sender: No OFD packet to send [00:05:19]OFD Sender: No OFD packet to send [00:05:24]OFD Sender: No OFD packet to send [00:05:29]OFD Sender: No OFD packet to send [00:05:34]OFD Sender: No OFD packet to send [00:05:39]OFD Sender: No OFD packet to send [00:05:44]OFD Sender: No OFD packet to send [00:05:49]OFD Sender: No OFD packet to send [00:05:54]OFD Sender: No OFD packet to send [00:05:59]OFD Sender: No OFD packet to send [00:06:04]OFD Sender: No OFD packet to send [00:06:09]OFD Sender: No OFD packet to send [00:06:14]OFD Sender: No OFD packet to send [00:06:19]OFD Sender: No OFD packet to send [00:06:24]OFD Sender: No OFD packet to send [00:06:29]OFD Sender: No OFD packet to send [00:06:34]OFD Sender: No OFD packet to send [00:06:39]OFD Sender: No OFD packet to send [00:06:44]OFD Sender: No OFD packet to send [00:06:49]OFD Sender: No OFD packet to send [00:06:54]OFD Sender: No OFD packet to send [00:06:59]OFD Sender: No OFD packet to send [00:07:04]OFD Sender: No OFD packet to send [00:07:09]OFD Sender: No OFD packet to send [00:07:14]OFD Sender: No OFD packet to send [00:07:19]OFD Sender: No OFD packet to send [00:07:24]OFD Sender: No OFD packet to send [00:07:29]OFD Sender: No OFD packet to send [00:07:34]OFD Sender: No OFD packet to send [00:07:39]OFD Sender: No OFD packet to send [00:07:44]OFD Sender: No OFD packet to send [00:07:49]OFD Sender: No OFD packet to send [00:07:54]OFD Sender: No OFD packet to send [00:07:59]OFD Sender: No OFD packet to send [00:08:04]OFD Sender: No OFD packet to send [00:08:09]OFD Sender: No OFD packet to send [00:08:14]OFD Sender: No OFD packet to send [00:08:19]OFD Sender: No OFD packet to send [00:08:24]OFD Sender: No OFD packet to send [00:08:29]OFD Sender: No OFD packet to send [00:08:34]OFD Sender: No OFD packet to send [00:08:39]OFD Sender: No OFD packet to send [00:08:44]OFD Sender: No OFD packet to send [00:08:49]OFD Sender: No OFD packet to send [00:08:54]OFD Sender: No OFD packet to send [00:08:59]OFD Sender: No OFD packet to send [00:09:04]OFD Sender: No OFD packet to send [00:09:09]OFD Sender: No OFD packet to send [00:09:14]OFD Sender: No OFD packet to send [00:09:19]OFD Sender: No OFD packet to send [00:09:24]OFD Sender: No OFD packet to send [00:09:29]OFD Sender: No OFD packet to send [00:09:34]OFD Sender: No OFD packet to send [00:09:39]OFD Sender: No OFD packet to send [00:09:44]OFD Sender: No OFD packet to send [00:09:49]OFD Sender: No OFD packet to send [00:09:54]OFD Sender: No OFD packet to send [00:09:59]OFD Sender: No OFD packet to send [00:10:04]OFD Sender: No OFD packet to send [00:10:09]OFD Sender: No OFD packet to send [00:10:14]OFD Sender: No OFD packet to send [00:10:19]OFD Sender: No OFD packet to send [00:10:24]OFD Sender: No OFD packet to send [00:10:29]OFD Sender: No OFD packet to send [00:10:34]OFD Sender: No OFD packet to send [00:10:39]OFD Sender: No OFD packet to send [00:10:44]OFD Sender: No OFD packet to send [00:10:49]OFD Sender: No OFD packet to send [00:10:54]OFD Sender: No OFD packet to send [00:10:59]OFD Sender: No OFD packet to send [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:14]OFD Sender: No OFD packet to send [00:11:19]OFD Sender: No OFD packet to send [00:11:24]OFD Sender: No OFD packet to send [00:11:29]OFD Sender: No OFD packet to send [00:11:34]OFD Sender: No OFD packet to send [00:11:39]OFD Sender: No OFD packet to send [00:11:44]OFD Sender: No OFD packet to send [00:11:49]OFD Sender: No OFD packet to send [00:11:54]OFD Sender: No OFD packet to send [00:11:59]OFD Sender: No OFD packet to send [00:12:04]OFD Sender: No OFD packet to send [00:12:09]OFD Sender: No OFD packet to send [00:12:14]OFD Sender: No OFD packet to send [00:12:19]OFD Sender: No OFD packet to send [00:12:24]OFD Sender: No OFD packet to send [00:12:29]OFD Sender: No OFD packet to send [00:12:34]OFD Sender: No OFD packet to send [00:12:39]OFD Sender: No OFD packet to send [00:12:44]OFD Sender: No OFD packet to send [00:12:49]OFD Sender: No OFD packet to send [00:12:54]OFD Sender: No OFD packet to send [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:36]accept exits with 7 [00:14:36]New connection [00:14:36]New thread 3066588516 created [00:14:36]Thread 3066731876 joined [00:14:36]Waiting for new connection... [00:14:36] Sock 7.Parse request [00:14:36]Sock 7.Check first char [00:14:36]Sock 7.First char is OK [00:14:36]request: POST /json_proto HTTP/1.0 [00:14:36]Method: POST [00:14:36]URL: /json_proto [00:14:36]Method is POST - this is cgi request [00:14:36]url: /json_proto [00:14:36]query_string will be loaded in cgi processing [00:14:36]execute_cgi json_proto POST (null) [00:14:36]execute_cgi path=json_proto method=POST [00:14:36]POST find Content-Length [00:14:36]Host: 172.17.41.195:8080 [00:14:36]Content-Length: 215 [00:14:36]Content-Type: application/json [00:14:36] [00:14:36]POST finish read [00:14:36]Found Content-Length = 215 [00:14:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:36]execute_script... [00:14:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:36]POST & json_proto [00:14:36]process_json_proto [00:14:36]json parsed OK: [00:14:36]protocol is kg_v1.0 [00:14:36]action value=get_value [00:14:36]process_action get_value [00:14:36]cmd_get_value [00:14:36]process_action get_value done [00:14:36]requested_data is exist [00:14:36]produce_requested_data [00:14:36]requested_item kkm.sn is exist - process it [00:14:36]requested_item kkm.ver is exist - process it [00:14:36]requested_item fm.sn is exist - process it [00:14:36]wFMCommunicate request_size=4 [00:14:36]MH_SAM_APDU [00:14:36]CAPDU: 80 11 00 00 [00:14:36]Write to MH i2c: E2 08 00 0C 18 80 11 00 00 00 00 00 00 9E [00:14:36]Write i2c OK [00:14:36]MH_I2C_Read... [00:14:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:37]Read from MH i2c: E2 [00:14:37]MH_I2C_Read... [00:14:37]Read from MH i2c: E2 17 00 [00:14:37]MH_I2C_Read... [00:14:37]Read from MH i2c: E2 17 00 0C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F4 [00:14:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:14:37]wFMCommunicate OK [00:14:37]requested_item fd.num is exist - process it [00:14:37]SAM_PROTO_GetFieldsCounters [00:14:37]wFMCommunicate request_size=4 [00:14:37]MH_SAM_APDU [00:14:37]CAPDU: 80 13 00 00 [00:14:37]Write to MH i2c: E2 08 00 0D 18 80 13 00 00 00 00 00 00 A1 [00:14:37]Write i2c OK [00:14:37]MH_I2C_Read... [00:14:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:37]Read from MH i2c: E2 [00:14:37]MH_I2C_Read... [00:14:37]Read from MH i2c: E2 62 00 [00:14:37]MH_I2C_Read... [00:14:37]Read from MH i2c: E2 62 00 0D 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 6C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [00:14: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 6C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:14:37]wFMCommunicate OK [00:14:37]SAM_PROTO_GetFieldsCounters done [00:14:37]requested_item shift.num is exist - process it [00:14:37]requested_item shift.opened is exist - process it [00:14:37]req_shift_opened [00:14:37]FM_GetShiftState [00:14:37]SAM_PROTO_GetShiftState [00:14:37]wFMCommunicate request_size=4 [00:14:37]MH_SAM_APDU [00:14:37]CAPDU: 80 13 01 00 [00:14:37]Write to MH i2c: E2 08 00 0E 18 80 13 01 00 00 00 00 00 A3 [00:14:37]Write i2c OK [00:14:37]MH_I2C_Read... [00:14:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:37]Read from MH i2c: E2 [00:14:37]MH_I2C_Read... [00:14:37]Read from MH i2c: E2 0E 00 [00:14:37]MH_I2C_Read... [00:14:37]Read from MH i2c: E2 0E 00 0E 18 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 6B [00:14:37]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [00:14:37]wFMCommunicate OK [00:14:37]SAM_PROTO_GetShiftState done [00:14:37]FM_GetShiftState done [00:14:37]req_shift_opened done [00:14:37]requested_item shift.open_date is exist - process it [00:14:37]req_shift_open_date [00:14:37]req_shift_open_date done [00:14:37]produce_requested_data done [00:14:37]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67180,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [00:14:37]process_action_free get_value [00:14:37]json_value_free [00:14:37]json_value_free done [00:14:37]process_json_proto returns [00:14:37]Send response to host [00:14:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67180,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [00:14:37]free response buf [00:14:37]execute_script done [00:14:37]execute_script returns [00:14:37]free content buf [00:14:37]Sock 7.Close socket [00:14:37]Sock 7.Thread stoped [00:14:37]accept exits with 9 [00:14:37]New connection [00:14:37]New thread 3066731876 created [00:14:37]Thread 3066588516 joined [00:14:37]Waiting for new connection... [00:14:37] Sock 9.Parse request [00:14:37]Sock 9.Check first char [00:14:37]Sock 9.First char is OK [00:14:37]request: POST /json_proto HTTP/1.0 [00:14:37]Method: POST [00:14:37]URL: /json_proto [00:14:37]Method is POST - this is cgi request [00:14:37]url: /json_proto [00:14:37]query_string will be loaded in cgi processing [00:14:37]execute_cgi json_proto POST (null) [00:14:37]execute_cgi path=json_proto method=POST [00:14:37]POST find Content-Length [00:14:37]Host: 172.17.41.195:8080 [00:14:37]Content-Length: 331 [00:14:37]Content-Type: application/json [00:14:37] [00:14:37]POST finish read [00:14:37]Found Content-Length = 331 [00:14:37]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:14:37]execute_script... [00:14:37]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:14:37]POST & json_proto [00:14:37]process_json_proto [00:14:37]json parsed OK: [00:14:37]protocol is kg_v1.0 [00:14:37]action value=get_value [00:14:37]process_action get_value [00:14:37]cmd_get_value [00:14:37]process_action get_value done [00:14:37]requested_data is exist [00:14:37]produce_requested_data [00:14:37]requested_item fm.sale.total is exist - process it [00:14:37]SAM_PROTO_GetFMData [00:14:37]wFMCommunicate request_size=4 [00:14:37]MH_SAM_APDU [00:14:37]CAPDU: 80 13 03 00 [00:14:37]Write to MH i2c: E2 08 00 0F 18 80 13 03 00 00 00 00 00 A6 [00:14:37]Write i2c OK [00:14:37]MH_I2C_Read... [00:14:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:14:37]Read from MH i2c: E2 [00:14:37]MH_I2C_Read... [00:14:37]Read from MH i2c: E2 FD 00 [00:14:37]MH_I2C_Read... [00:14:37]Read from MH i2c: E2 FD 00 0F 18 00 C6 04 85 04 C2 04 6E 04 04 00 A6 03 01 00 69 04 A3 00 6F 04 04 00 01 03 01 00 B1 04 05 00 9E B8 0F 19 03 70 04 05 00 DC 65 C5 BE 02 72 04 04 00 C2 52 4A 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8E FF 3A 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 33 D6 04 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 1A [00:14:37]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 A6 03 01 00 69 04 A3 00 6F 04 04 00 01 03 01 00 B1 04 05 00 9E B8 0F 19 03 70 04 05 00 DC 65 C5 BE 02 72 04 04 00 C2 52 4A 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8E FF 3A 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 33 D6 04 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 [00:14:37]wFMCommunicate OK [00:14:37]wFMCommunicate request_size=4 [00:14:37]MH_SAM_APDU [00:14:37]CAPDU: 80 17 00 00 [00:14:37]Write to MH i2c: E2 08 00 10 18 80 17 00 00 00 00 00 00 A8 [00:14:37]Write i2c OK [00:14:37]MH_I2C_Read... [00:14:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:38]Read from MH i2c: E2 [00:14:38]MH_I2C_Read... [00:14:38]Read from MH i2c: E2 FD 00 [00:14:38]MH_I2C_Read... [00:14:38]Read from MH i2c: E2 FD 00 10 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 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 56 [00:14:38]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:14:38]wFMCommunicate OK [00:14:38]wFMCommunicate request_size=4 [00:14:38]MH_SAM_APDU [00:14:38]CAPDU: 80 17 00 00 [00:14:38]Write to MH i2c: E2 08 00 11 18 80 17 00 00 00 00 00 00 A9 [00:14:38]Write i2c OK [00:14:38]MH_I2C_Read... [00:14:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:38]Read from MH i2c: E2 [00:14:38]MH_I2C_Read... [00:14:38]Read from MH i2c: E2 FD 00 [00:14:38]MH_I2C_Read... [00:14:38]Read from MH i2c: E2 FD 00 11 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 D0 [00:14:38]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:14:38]wFMCommunicate OK [00:14:38]wFMCommunicate request_size=4 [00:14:38]MH_SAM_APDU [00:14:38]CAPDU: 80 17 00 00 [00:14:38]Write to MH i2c: E2 08 00 12 18 80 17 00 00 00 00 00 00 AA [00:14:38]Write i2c OK [00:14:38]MH_I2C_Read... [00:14:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:38]Read from MH i2c: E2 [00:14:38]MH_I2C_Read... [00:14:38]Read from MH i2c: E2 FD 00 [00:14:38]MH_I2C_Read... [00:14:38]Read from MH i2c: E2 FD 00 12 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 25 [00:14:38]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:14:38]wFMCommunicate OK [00:14:38]wFMCommunicate request_size=4 [00:14:38]MH_SAM_APDU [00:14:38]CAPDU: 80 17 00 00 [00:14:38]Write to MH i2c: E2 08 00 13 18 80 17 00 00 00 00 00 00 AB [00:14:38]Write i2c OK [00:14:38]MH_I2C_Read... [00:14:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:14:39]Read from MH i2c: E2 [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: E2 E3 00 [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: E2 E3 00 13 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 8A [00:14:39]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:14:39]wFMCommunicate OK [00:14:39]SAM_PROTO_GetFMData done [00:14:39]requested_item fm.sale_refund.total is exist - process it [00:14:39]requested_item fm.buy.total is exist - process it [00:14:39]requested_item shift.sale.total is exist - process it [00:14:39]SAM_PROTO_GetShiftData [00:14:39]wFMCommunicate request_size=4 [00:14:39]MH_SAM_APDU [00:14:39]CAPDU: 80 13 02 00 [00:14:39]Write to MH i2c: E2 08 00 14 18 80 13 02 00 00 00 00 00 AA [00:14:39]Write i2c OK [00:14:39]MH_I2C_Read... [00:14:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:14:39]Read from MH i2c: E2 [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: E2 FD 00 [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: E2 FD 00 14 18 00 B0 04 AA 04 AC 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 BB 00 00 00 B1 04 04 00 F2 8D A4 01 70 04 03 00 40 FF AB 72 04 03 00 B2 8E F8 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 D7 AA 2C 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 D1 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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 72 [00:14:39]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 BB 00 00 00 B1 04 04 00 F2 8D A4 01 70 04 03 00 40 FF AB 72 04 03 00 B2 8E F8 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 D7 AA 2C 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 D1 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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:14:39]wFMCommunicate OK [00:14:39]wFMCommunicate request_size=4 [00:14:39]MH_SAM_APDU [00:14:39]CAPDU: 80 17 00 00 [00:14:39]Write to MH i2c: E2 08 00 15 18 80 17 00 00 00 00 00 00 AD [00:14:39]Write i2c OK [00:14:39]MH_I2C_Read... [00:14:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:39]Read from MH i2c: E2 [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: E2 FD 00 [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: E2 FD 00 15 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 C7 [00:14:39]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:14:39]wFMCommunicate OK [00:14:39]wFMCommunicate request_size=4 [00:14:39]MH_SAM_APDU [00:14:39]CAPDU: 80 17 00 00 [00:14:39]Write to MH i2c: E2 08 00 16 18 80 17 00 00 00 00 00 00 AE [00:14:39]Write i2c OK [00:14:39]MH_I2C_Read... [00:14:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:40]OFD Sender: No OFD packet to send [00:14:40]Read from MH i2c: E2 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 FD 00 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 FD 00 16 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 6B [00:14:40]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:14:40]wFMCommunicate OK [00:14:40]wFMCommunicate request_size=4 [00:14:40]MH_SAM_APDU [00:14:40]CAPDU: 80 17 00 00 [00:14:40]Write to MH i2c: E2 08 00 17 18 80 17 00 00 00 00 00 00 AF [00:14:40]Write i2c OK [00:14:40]MH_I2C_Read... [00:14:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:40]Read from MH i2c: E2 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 FD 00 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 FD 00 17 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 22 [00:14:40]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:14:40]wFMCommunicate OK [00:14:40]wFMCommunicate request_size=4 [00:14:40]MH_SAM_APDU [00:14:40]CAPDU: 80 17 00 00 [00:14:40]Write to MH i2c: E2 08 00 18 18 80 17 00 00 00 00 00 00 B0 [00:14:40]Write i2c OK [00:14:40]MH_I2C_Read... [00:14:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:14:40]Read from MH i2c: E2 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 CD 00 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 CD 00 18 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 94 [00:14:40]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:14:40]wFMCommunicate OK [00:14:40]SAM_PROTO_GetShiftData done [00:14:40]requested_item shift.sale.total_cash is exist - process it [00:14:40]requested_item shift.sale_refund.total is exist - process it [00:14:40]requested_item shift.sale_refund.total_cash is exist - process it [00:14:40]requested_item shift.buy.total is exist - process it [00:14:40]requested_item shift.buy.total_cash is exist - process it [00:14:40]produce_requested_data done [00:14:40]produce_requested_data return {"fm.sale.total":133053625.90,"fm.sale_refund.total":37024060.00,"fm.buy.total":0.00,"shift.sale.total":275614.58,"shift.sale.total_cash":112720.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:14:40]process_action_free get_value [00:14:40]json_value_free [00:14:40]json_value_free done [00:14:40]process_json_proto returns [00:14:40]Send response to host [00:14:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133053625.90,"fm.sale_refund.total":37024060.00,"fm.buy.total":0.00,"shift.sale.total":275614.58,"shift.sale.total_cash":112720.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:14:40]free response buf [00:14:40]execute_script done [00:14:40]execute_script returns [00:14:40]free content buf [00:14:40]Sock 9.Close socket [00:14:40]Sock 9.Thread stoped [00:14:40]accept exits with 7 [00:14:40]New connection [00:14:40]New thread 3066588516 created [00:14:40]Thread 3066731876 joined [00:14:40]Waiting for new connection... [00:14:40] Sock 7.Parse request [00:14:40]Sock 7.Check first char [00:14:40]Sock 7.First char is OK [00:14:40]request: POST /json_proto HTTP/1.0 [00:14:40]Method: POST [00:14:40]URL: /json_proto [00:14:40]Method is POST - this is cgi request [00:14:40]url: /json_proto [00:14:40]query_string will be loaded in cgi processing [00:14:40]execute_cgi json_proto POST (null) [00:14:40]execute_cgi path=json_proto method=POST [00:14:40]POST find Content-Length [00:14:40]Host: 172.17.41.195:8080 [00:14:40]Content-Length: 331 [00:14:40]Content-Type: application/json [00:14:40] [00:14:40]POST finish read [00:14:40]Found Content-Length = 331 [00:14:40]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:14:40]execute_script... [00:14:40]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:14:40]POST & json_proto [00:14:40]process_json_proto [00:14:40]json parsed OK: [00:14:40]protocol is kg_v1.0 [00:14:40]action value=get_value [00:14:40]process_action get_value [00:14:40]cmd_get_value [00:14:40]process_action get_value done [00:14:40]requested_data is exist [00:14:40]produce_requested_data [00:14:40]requested_item fm.sale.total is exist - process it [00:14:40]SAM_PROTO_GetFMData [00:14:40]wFMCommunicate request_size=4 [00:14:40]MH_SAM_APDU [00:14:40]CAPDU: 80 13 03 00 [00:14:40]Write to MH i2c: E2 08 00 19 18 80 13 03 00 00 00 00 00 B0 [00:14:40]Write i2c OK [00:14:40]MH_I2C_Read... [00:14:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:14:41]Read from MH i2c: E2 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 FD 00 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 FD 00 19 18 00 C6 04 85 04 C2 04 6E 04 04 00 A6 03 01 00 69 04 A3 00 6F 04 04 00 01 03 01 00 B1 04 05 00 9E B8 0F 19 03 70 04 05 00 DC 65 C5 BE 02 72 04 04 00 C2 52 4A 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8E FF 3A 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 33 D6 04 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 24 [00:14:41]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 A6 03 01 00 69 04 A3 00 6F 04 04 00 01 03 01 00 B1 04 05 00 9E B8 0F 19 03 70 04 05 00 DC 65 C5 BE 02 72 04 04 00 C2 52 4A 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8E FF 3A 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 33 D6 04 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 [00:14:41]wFMCommunicate OK [00:14:41]wFMCommunicate request_size=4 [00:14:41]MH_SAM_APDU [00:14:41]CAPDU: 80 17 00 00 [00:14:41]Write to MH i2c: E2 08 00 1A 18 80 17 00 00 00 00 00 00 B2 [00:14:41]Write i2c OK [00:14:41]MH_I2C_Read... [00:14:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:41]Read from MH i2c: E2 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 FD 00 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 FD 00 1A 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 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 60 [00:14:41]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:14:41]wFMCommunicate OK [00:14:41]wFMCommunicate request_size=4 [00:14:41]MH_SAM_APDU [00:14:41]CAPDU: 80 17 00 00 [00:14:41]Write to MH i2c: E2 08 00 1B 18 80 17 00 00 00 00 00 00 B3 [00:14:41]Write i2c OK [00:14:41]MH_I2C_Read... [00:14:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:41]Read from MH i2c: E2 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 FD 00 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 FD 00 1B 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 DA [00:14:41]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:14:41]wFMCommunicate OK [00:14:41]wFMCommunicate request_size=4 [00:14:41]MH_SAM_APDU [00:14:41]CAPDU: 80 17 00 00 [00:14:41]Write to MH i2c: E2 08 00 1C 18 80 17 00 00 00 00 00 00 B4 [00:14:41]Write i2c OK [00:14:41]MH_I2C_Read... [00:14:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:42]Read from MH i2c: E2 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: E2 FD 00 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: E2 FD 00 1C 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 2F [00:14:42]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:14:42]wFMCommunicate OK [00:14:42]wFMCommunicate request_size=4 [00:14:42]MH_SAM_APDU [00:14:42]CAPDU: 80 17 00 00 [00:14:42]Write to MH i2c: E2 08 00 1D 18 80 17 00 00 00 00 00 00 B5 [00:14:42]Write i2c OK [00:14:42]MH_I2C_Read... [00:14:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:14:42]Read from MH i2c: E2 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: E2 E3 00 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: E2 E3 00 1D 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 94 [00:14:42]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:14:42]wFMCommunicate OK [00:14:42]SAM_PROTO_GetFMData done [00:14:42]requested_item fm.sale_refund.total is exist - process it [00:14:42]requested_item fm.buy.total is exist - process it [00:14:42]requested_item shift.sale.total is exist - process it [00:14:42]SAM_PROTO_GetShiftData [00:14:42]wFMCommunicate request_size=4 [00:14:42]MH_SAM_APDU [00:14:42]CAPDU: 80 13 02 00 [00:14:42]Write to MH i2c: E2 08 00 1E 18 80 13 02 00 00 00 00 00 B4 [00:14:42]Write i2c OK [00:14:42]MH_I2C_Read... [00:14:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:14:43]Read from MH i2c: E2 [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: E2 FD 00 [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: E2 FD 00 1E 18 00 B0 04 AA 04 AC 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 BB 00 00 00 B1 04 04 00 F2 8D A4 01 70 04 03 00 40 FF AB 72 04 03 00 B2 8E F8 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 D7 AA 2C 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 D1 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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 7C [00:14:43]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 BB 00 00 00 B1 04 04 00 F2 8D A4 01 70 04 03 00 40 FF AB 72 04 03 00 B2 8E F8 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 D7 AA 2C 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 D1 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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:14:43]wFMCommunicate OK [00:14:43]wFMCommunicate request_size=4 [00:14:43]MH_SAM_APDU [00:14:43]CAPDU: 80 17 00 00 [00:14:43]Write to MH i2c: E2 08 00 1F 18 80 17 00 00 00 00 00 00 B7 [00:14:43]Write i2c OK [00:14:43]MH_I2C_Read... [00:14:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:43]Read from MH i2c: E2 [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: E2 FD 00 [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: E2 FD 00 1F 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 D1 [00:14:43]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:14:43]wFMCommunicate OK [00:14:43]wFMCommunicate request_size=4 [00:14:43]MH_SAM_APDU [00:14:43]CAPDU: 80 17 00 00 [00:14:43]Write to MH i2c: E2 08 00 20 18 80 17 00 00 00 00 00 00 B8 [00:14:43]Write i2c OK [00:14:43]MH_I2C_Read... [00:14:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:43]Read from MH i2c: E2 [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: E2 FD 00 [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: E2 FD 00 20 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 75 [00:14:44]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:14:44]wFMCommunicate OK [00:14:44]wFMCommunicate request_size=4 [00:14:44]MH_SAM_APDU [00:14:44]CAPDU: 80 17 00 00 [00:14:44]Write to MH i2c: E2 08 00 21 18 80 17 00 00 00 00 00 00 B9 [00:14:44]Write i2c OK [00:14:44]MH_I2C_Read... [00:14:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:44]Read from MH i2c: E2 [00:14:44]MH_I2C_Read... [00:14:44]Read from MH i2c: E2 FD 00 [00:14:44]MH_I2C_Read... [00:14:44]Read from MH i2c: E2 FD 00 21 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 2C [00:14:44]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:14:44]wFMCommunicate OK [00:14:44]wFMCommunicate request_size=4 [00:14:44]MH_SAM_APDU [00:14:44]CAPDU: 80 17 00 00 [00:14:44]Write to MH i2c: E2 08 00 22 18 80 17 00 00 00 00 00 00 BA [00:14:44]Write i2c OK [00:14:44]MH_I2C_Read... [00:14:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:14:44]Read from MH i2c: E2 [00:14:44]MH_I2C_Read... [00:14:44]Read from MH i2c: E2 CD 00 [00:14:44]MH_I2C_Read... [00:14:44]Read from MH i2c: E2 CD 00 22 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 9E [00:14:44]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:14:44]wFMCommunicate OK [00:14:44]SAM_PROTO_GetShiftData done [00:14:44]requested_item shift.sale.total_cash is exist - process it [00:14:44]requested_item shift.sale_refund.total is exist - process it [00:14:44]requested_item shift.sale_refund.total_cash is exist - process it [00:14:44]requested_item shift.buy.total is exist - process it [00:14:44]requested_item shift.buy.total_cash is exist - process it [00:14:44]produce_requested_data done [00:14:44]produce_requested_data return {"fm.sale.total":133053625.90,"fm.sale_refund.total":37024060.00,"fm.buy.total":0.00,"shift.sale.total":275614.58,"shift.sale.total_cash":112720.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:14:44]process_action_free get_value [00:14:44]json_value_free [00:14:44]json_value_free done [00:14:44]process_json_proto returns [00:14:44]Send response to host [00:14:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133053625.90,"fm.sale_refund.total":37024060.00,"fm.buy.total":0.00,"shift.sale.total":275614.58,"shift.sale.total_cash":112720.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:14:44]free response buf [00:14:44]execute_script done [00:14:44]execute_script returns [00:14:44]free content buf [00:14:44]Sock 7.Close socket [00:14:44]Sock 7.Thread stoped [00:14:44]accept exits with 10 [00:14:44]New connection [00:14:44]New thread 3066731876 created [00:14:44]Thread 3066588516 joined [00:14:44]Waiting for new connection... [00:14:44] Sock 10.Parse request [00:14:44]Sock 10.Check first char [00:14:44]Sock 10.First char is OK [00:14:44]request: POST /json_proto HTTP/1.0 [00:14:44]Method: POST [00:14:44]URL: /json_proto [00:14:44]Method is POST - this is cgi request [00:14:44]url: /json_proto [00:14:44]query_string will be loaded in cgi processing [00:14:44]execute_cgi json_proto POST (null) [00:14:44]execute_cgi path=json_proto method=POST [00:14:44]POST find Content-Length [00:14:44]Host: 172.17.41.195:8080 [00:14:44]Content-Length: 244 [00:14:44]Content-Type: application/json [00:14:44] [00:14:44]POST finish read [00:14:44]Found Content-Length = 244 [00:14:44]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:14:44]execute_script... [00:14:44]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:14:44]POST & json_proto [00:14:44]process_json_proto [00:14:44]json parsed OK: [00:14:44]protocol is kg_v1.0 [00:14:44]action value=x_report [00:14:44]process_action x_report [00:14:44]cmd_x_report [00:14:44]MH_GetDate [00:14:44]Write to MH i2c: F0 00 00 23 18 2A [00:14:44]Write i2c OK [00:14:44]MH_I2C_Read... [00:14:44]Read from MH i2c: F0 [00:14:44]MH_I2C_Read... [00:14:44]Read from MH i2c: F0 09 00 [00:14:44]MH_I2C_Read... [00:14:44]Read from MH i2c: F0 09 00 23 18 00 76 FE 43 66 FC 21 6F 64 40 [00:14:44]GetLastDocTimeStamp 1715731012 [00:14:44]current date 1715732086 [00:14:44]FM_GetShiftState [00:14:44]SAM_PROTO_GetShiftState [00:14:44]wFMCommunicate request_size=4 [00:14:44]MH_SAM_APDU [00:14:44]CAPDU: 80 13 01 00 [00:14:44]Write to MH i2c: E2 08 00 24 18 80 13 01 00 00 00 00 00 B9 [00:14:44]Write i2c OK [00:14:44]MH_I2C_Read... [00:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:45]Read from MH i2c: E2 [00:14:45]MH_I2C_Read... [00:14:45]Read from MH i2c: E2 0E 00 [00:14:45]MH_I2C_Read... [00:14:45]Read from MH i2c: E2 0E 00 24 18 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 81 [00:14:45]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [00:14:45]wFMCommunicate OK [00:14:45]SAM_PROTO_GetShiftState done [00:14:45]FM_GetShiftState done [00:14:45]KKMCreateXReportDocument [00:14:45]Load OK [00:14:45]Malloc new data [00:14:45]MH_GetDate [00:14:45]Write to MH i2c: F0 00 00 25 18 2C [00:14:45]Write i2c OK [00:14:45]MH_I2C_Read... [00:14:45]Read from MH i2c: F0 [00:14:45]MH_I2C_Read... [00:14:45]Read from MH i2c: F0 09 00 [00:14:45]MH_I2C_Read... [00:14:45]Read from MH i2c: F0 09 00 25 18 00 76 FE 43 66 FC 21 6F 64 42 [00:14:45]Malloc new data [00:14:45]Malloc new data [00:14:45]wFMCommunicate request_size=4 [00:14:45]MH_SAM_APDU [00:14:45]CAPDU: 80 11 00 00 [00:14:45]Write to MH i2c: E2 08 00 26 18 80 11 00 00 00 00 00 00 B8 [00:14:45]Write i2c OK [00:14:45]MH_I2C_Read... [00:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:45]Read from MH i2c: E2 [00:14:45]MH_I2C_Read... [00:14:45]OFD Sender: No OFD packet to send [00:14:45]Read from MH i2c: E2 17 00 [00:14:45]MH_I2C_Read... [00:14:45]Read from MH i2c: E2 17 00 26 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0E [00: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 [00:14:45]wFMCommunicate OK [00:14:45]SAM_PROTO_GetFieldsCounters [00:14:45]wFMCommunicate request_size=4 [00:14:45]MH_SAM_APDU [00:14:45]CAPDU: 80 13 00 00 [00:14:45]Write to MH i2c: E2 08 00 27 18 80 13 00 00 00 00 00 00 BB [00:14:45]Write i2c OK [00:14:45]MH_I2C_Read... [00:14:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:45]Read from MH i2c: E2 [00:14:45]MH_I2C_Read... [00:14:45]Read from MH i2c: E2 62 00 [00:14:45]MH_I2C_Read... [00:14:45]Read from MH i2c: E2 62 00 27 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 6C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [00: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 6C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:14:45]wFMCommunicate OK [00:14:45]SAM_PROTO_GetFieldsCounters done [00:14:45]Malloc new data [00:14:45]Malloc new data [00:14:45]Malloc new data [00:14:45]KKMCreateXReportDocument OK [00:14:45]KKMSetXReportData OK [00:14:45]KKMPrepareXReportFMData [00:14:45]SAM_PROTO_GetShiftData [00:14:45]wFMCommunicate request_size=4 [00:14:45]MH_SAM_APDU [00:14:45]CAPDU: 80 13 02 00 [00:14:45]Write to MH i2c: E2 08 00 28 18 80 13 02 00 00 00 00 00 BE [00:14:45]Write i2c OK [00:14:45]MH_I2C_Read... [00:14:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:14:45]Read from MH i2c: E2 [00:14:45]MH_I2C_Read... [00:14:45]Read from MH i2c: E2 FD 00 [00:14:45]MH_I2C_Read... [00:14:45]Read from MH i2c: E2 FD 00 28 18 00 B0 04 AA 04 AC 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 BB 00 00 00 B1 04 04 00 F2 8D A4 01 70 04 03 00 40 FF AB 72 04 03 00 B2 8E F8 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 D7 AA 2C 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 D1 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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 86 [00:14:45]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 BB 00 00 00 B1 04 04 00 F2 8D A4 01 70 04 03 00 40 FF AB 72 04 03 00 B2 8E F8 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 D7 AA 2C 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 D1 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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:14:46]wFMCommunicate OK [00:14:46]wFMCommunicate request_size=4 [00:14:46]MH_SAM_APDU [00:14:46]CAPDU: 80 17 00 00 [00:14:46]Write to MH i2c: E2 08 00 29 18 80 17 00 00 00 00 00 00 C1 [00:14:46]Write i2c OK [00:14:46]MH_I2C_Read... [00:14:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:46]Read from MH i2c: E2 [00:14:46]MH_I2C_Read... [00:14:46]Read from MH i2c: E2 FD 00 [00:14:46]MH_I2C_Read... [00:14:46]Read from MH i2c: E2 FD 00 29 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 DB [00:14:46]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:14:46]wFMCommunicate OK [00:14:46]wFMCommunicate request_size=4 [00:14:46]MH_SAM_APDU [00:14:46]CAPDU: 80 17 00 00 [00:14:46]Write to MH i2c: E2 08 00 2A 18 80 17 00 00 00 00 00 00 C2 [00:14:46]Write i2c OK [00:14:46]MH_I2C_Read... [00:14:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:46]Read from MH i2c: E2 [00:14:46]MH_I2C_Read... [00:14:46]Read from MH i2c: E2 FD 00 [00:14:46]MH_I2C_Read... [00:14:46]Read from MH i2c: E2 FD 00 2A 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 7F [00:14:46]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:14:46]wFMCommunicate OK [00:14:46]wFMCommunicate request_size=4 [00:14:46]MH_SAM_APDU [00:14:46]CAPDU: 80 17 00 00 [00:14:46]Write to MH i2c: E2 08 00 2B 18 80 17 00 00 00 00 00 00 C3 [00:14:46]Write i2c OK [00:14:46]MH_I2C_Read... [00:14:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:47]Read from MH i2c: E2 [00:14:47]MH_I2C_Read... [00:14:47]Read from MH i2c: E2 FD 00 [00:14:47]MH_I2C_Read... [00:14:47]Read from MH i2c: E2 FD 00 2B 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 36 [00:14:47]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:14:47]wFMCommunicate OK [00:14:47]wFMCommunicate request_size=4 [00:14:47]MH_SAM_APDU [00:14:47]CAPDU: 80 17 00 00 [00:14:47]Write to MH i2c: E2 08 00 2C 18 80 17 00 00 00 00 00 00 C4 [00:14:47]Write i2c OK [00:14:47]MH_I2C_Read... [00:14:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:14:47]Read from MH i2c: E2 [00:14:47]MH_I2C_Read... [00:14:47]Read from MH i2c: E2 CD 00 [00:14:47]MH_I2C_Read... [00:14:47]Read from MH i2c: E2 CD 00 2C 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 A8 [00:14:47]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:14:47]wFMCommunicate OK [00:14:47]SAM_PROTO_GetShiftData done [00:14:47]1194 (1196) - счетчики итогов смены [00:14:47] 1134 (4) - 187 - количество чеков со всеми признаками расчетов [00:14:47] 1129 (157) - счетчики операций «приход» [00:14:47] 1135 (4) - 187 - количество чеков по признаку расчетов [00:14:47] 1201 (4) - 275614.58 - общая итоговая сумма в чеках [00:14:47] 1136 (3) - 112720.00 - итоговая сумма в чеках наличными [00:14:47] 1138 (3) - 162894.58 - итоговая сумма в чеках безналичными [00:14:47] 1024 (123) - суммы налогов [00:14:47] 1006 (9) - суммы НДС [00:14:47] 1010 (1) - 0% - код ставки НДС [00:14:47] 1011 (0) - 0.00 - сумма НДС по ставке [00:14:47] 1006 (12) - суммы НДС [00:14:47] 1010 (1) - 12% - код ставки НДС [00:14:47] 1011 (3) - 29273.19 - сумма НДС по ставке [00:14:47] 1007 (9) - суммы НСП [00:14:47] 1014 (1) - 0% - код ставки НСП [00:14:47] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:47] 1007 (12) - суммы НСП [00:14:47] 1014 (1) - 1% - код ставки НСП [00:14:47] 1015 (3) - 2439.21 - сумма НСП по ставке [00:14:47] 1007 (9) - суммы НСП [00:14:47] 1014 (1) - 2% - код ставки НСП [00:14:47] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:47] 1007 (9) - суммы НСП [00:14:47] 1014 (1) - 3% - код ставки НСП [00:14:47] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:47] 1007 (9) - суммы НСП [00:14:47] 1014 (1) - 5% - код ставки НСП [00:14:47] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:47] 1007 (9) - суммы НСП [00:14:47] 1014 (1) - 0,50% - код ставки НСП [00:14:47] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:47] 1007 (9) - суммы НСП [00:14:47] 1014 (1) - 1,50% - код ставки НСП [00:14:47] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:47] 1130 (141) - счетчики операций «возврат прихода» [00:14:47] 1135 (4) - 0 - количество чеков по признаку расчетов [00:14:47] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:14:47] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:14:47] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:14:47] 1024 (117) - суммы налогов [00:14:47] 1006 (9) - суммы НДС [00:14:47] 1010 (1) - 0% - код ставки НДС [00:14:47] 1011 (0) - 0.00 - сумма НДС по ставке [00:14:47] 1006 (9) - суммы НДС [00:14:47] 1010 (1) - 12% - код ставки НДС [00:14:47] 1011 (0) - 0.00 - сумма НДС по ставке [00:14:47] 1007 (9) - суммы НСП [00:14:47] 1014 (1) - 0% - код ставки НСП [00:14:47] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:47] 1007 (9) - суммы НСП [00:14:47] 1014 (1) - 1% - код ставки НСП [00:14:47] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:47] 1007 (9) - суммы НСП [00:14:47] 1014 (1) - 2% - код ставки НСП [00:14:47] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:47] 1007 (9) - суммы НСП [00:14:47] 1014 (1) - 3% - код ставки НСП [00:14:47] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:47] 1007 (9) - суммы НСП [00:14:47] 1014 (1) - 5% - код ставки НСП [00:14:47] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:47] 1007 (9) - суммы НСП [00:14:47] 1014 (1) - 0,50% - код ставки НСП [00:14:47] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:47] 1007 (9) - суммы НСП [00:14:47] 1014 (1) - 1,50% - код ставки НСП [00:14:47] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:47] 1131 (141) - счетчики операций «расход» [00:14:47] 1135 (4) - 0 - количество чеков по признаку расчетов [00:14:47] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:14:47] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:14:47] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:14:47] 1024 (117) - суммы налогов [00:14:47] 1006 (9) - суммы НДС [00:14:47] 1010 (1) - 0% - код ставки НДС [00:14:47] 1011 (0) - 0.00 - сумма НДС по ставке [00:14:47] 1006 (9) - суммы НДС [00:14:47] 1010 (1) - 12% - код ставки НДС [00:14:47] 1011 (0) - 0.00 - сумма НДС по ставке [00:14:47] 1007 (9) - суммы НСП [00:14:47] 1014 (1) - 0% - код ставки НСП [00:14:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:48] 1007 (9) - суммы НСП [00:14:48] 1014 (1) - 1% - код ставки НСП [00:14:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:48] 1007 (9) - суммы НСП [00:14:48] 1014 (1) - 2% - код ставки НСП [00:14:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:48] 1007 (9) - суммы НСП [00:14:48] 1014 (1) - 3% - код ставки НСП [00:14:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:48] 1007 (9) - суммы НСП [00:14:48] 1014 (1) - 5% - код ставки НСП [00:14:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:48] 1007 (9) - суммы НСП [00:14:48] 1014 (1) - 0,50% - код ставки НСП [00:14:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:48] 1007 (9) - суммы НСП [00:14:48] 1014 (1) - 1,50% - код ставки НСП [00:14:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:48] 1132 (141) - счетчики операций «возврат расхода» [00:14:48] 1135 (4) - 0 - количество чеков по признаку расчетов [00:14:48] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:14:48] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:14:48] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:14:48] 1024 (117) - суммы налогов [00:14:48] 1006 (9) - суммы НДС [00:14:48] 1010 (1) - 0% - код ставки НДС [00:14:48] 1011 (0) - 0.00 - сумма НДС по ставке [00:14:48] 1006 (9) - суммы НДС [00:14:48] 1010 (1) - 12% - код ставки НДС [00:14:48] 1011 (0) - 0.00 - сумма НДС по ставке [00:14:48] 1007 (9) - суммы НСП [00:14:48] 1014 (1) - 0% - код ставки НСП [00:14:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:48] 1007 (9) - суммы НСП [00:14:48] 1014 (1) - 1% - код ставки НСП [00:14:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:48] 1007 (9) - суммы НСП [00:14:48] 1014 (1) - 2% - код ставки НСП [00:14:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:48] 1007 (9) - суммы НСП [00:14:48] 1014 (1) - 3% - код ставки НСП [00:14:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:48] 1007 (9) - суммы НСП [00:14:48] 1014 (1) - 5% - код ставки НСП [00:14:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:48] 1007 (9) - суммы НСП [00:14:48] 1014 (1) - 0,50% - код ставки НСП [00:14:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:48] 1007 (9) - суммы НСП [00:14:48] 1014 (1) - 1,50% - код ставки НСП [00:14:48] 1015 (0) - 0.00 - сумма НСП по ставке [00:14:48] 1133 (588) - - счетчики коррекции - не используются [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1194 (04AA) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1134 (046E) [00:14:48]Malloc new data [00:14:48]Processing tag 1129 (0469) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1135 (046F) [00:14:48]Malloc new data [00:14:48]Processing tag 1201 (04B1) [00:14:48]Malloc new data [00:14:48]Processing tag 1136 (0470) [00:14:48]Malloc new data [00:14:48]Processing tag 1138 (0472) [00:14:48]Malloc new data [00:14:48]Processing tag 1024 (0400) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1006 (03EE) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1010 (03F2) [00:14:48]Malloc new data [00:14:48]Processing tag 1011 (03F3) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1006 (03EE) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1010 (03F2) [00:14:48]Malloc new data [00:14:48]Processing tag 1011 (03F3) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]SetTLVBufToDocument err=0 [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1130 (046A) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1135 (046F) [00:14:48]Malloc new data [00:14:48]Processing tag 1201 (04B1) [00:14:48]Malloc new data [00:14:48]Processing tag 1136 (0470) [00:14:48]Malloc new data [00:14:48]Processing tag 1138 (0472) [00:14:48]Malloc new data [00:14:48]Processing tag 1024 (0400) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1006 (03EE) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1010 (03F2) [00:14:48]Malloc new data [00:14:48]Processing tag 1011 (03F3) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1006 (03EE) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1010 (03F2) [00:14:48]Malloc new data [00:14:48]Processing tag 1011 (03F3) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]SetTLVBufToDocument err=0 [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1131 (046B) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1135 (046F) [00:14:48]Malloc new data [00:14:48]Processing tag 1201 (04B1) [00:14:48]Malloc new data [00:14:48]Processing tag 1136 (0470) [00:14:48]Malloc new data [00:14:48]Processing tag 1138 (0472) [00:14:48]Malloc new data [00:14:48]Processing tag 1024 (0400) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1006 (03EE) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1010 (03F2) [00:14:48]Malloc new data [00:14:48]Processing tag 1011 (03F3) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1006 (03EE) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1010 (03F2) [00:14:48]Malloc new data [00:14:48]Processing tag 1011 (03F3) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]SetTLVBufToDocument err=0 [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1132 (046C) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1135 (046F) [00:14:48]Malloc new data [00:14:48]Processing tag 1201 (04B1) [00:14:48]Malloc new data [00:14:48]Processing tag 1136 (0470) [00:14:48]Malloc new data [00:14:48]Processing tag 1138 (0472) [00:14:48]Malloc new data [00:14:48]Processing tag 1024 (0400) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1006 (03EE) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1010 (03F2) [00:14:48]Malloc new data [00:14:48]Processing tag 1011 (03F3) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1006 (03EE) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1010 (03F2) [00:14:48]Malloc new data [00:14:48]Processing tag 1011 (03F3) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1007 (03EF) [00:14:48]Load OK [00:14:48]SetTLVBufToDocument [00:14:48]Processing tag 1014 (03F6) [00:14:48]Malloc new data [00:14:48]Processing tag 1015 (03F7) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]SetTLVBufToDocument err=0 [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Processing tag 1133 (046D) [00:14:48]Malloc new data [00:14:48]SetTLVBufToDocument err=0 [00:14:48]SetTLVBufToDocument err=0 [00:14:48]Malloc new data [00:14:48]SAM_PROTO_GetFMData [00:14:48]wFMCommunicate request_size=4 [00:14:48]MH_SAM_APDU [00:14:48]CAPDU: 80 13 03 00 [00:14:48]Write to MH i2c: E2 08 00 2D 18 80 13 03 00 00 00 00 00 C4 [00:14:48]Write i2c OK [00:14:48]MH_I2C_Read... [00:14:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:14:49]Read from MH i2c: E2 [00:14:49]MH_I2C_Read... [00:14:49]Read from MH i2c: E2 FD 00 [00:14:49]MH_I2C_Read... [00:14:49]Read from MH i2c: E2 FD 00 2D 18 00 C6 04 85 04 C2 04 6E 04 04 00 A6 03 01 00 69 04 A3 00 6F 04 04 00 01 03 01 00 B1 04 05 00 9E B8 0F 19 03 70 04 05 00 DC 65 C5 BE 02 72 04 04 00 C2 52 4A 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8E FF 3A 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 33 D6 04 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 38 [00:14:49]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 A6 03 01 00 69 04 A3 00 6F 04 04 00 01 03 01 00 B1 04 05 00 9E B8 0F 19 03 70 04 05 00 DC 65 C5 BE 02 72 04 04 00 C2 52 4A 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8E FF 3A 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 33 D6 04 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 [00:14:49]wFMCommunicate OK [00:14:49]wFMCommunicate request_size=4 [00:14:49]MH_SAM_APDU [00:14:49]CAPDU: 80 17 00 00 [00:14:49]Write to MH i2c: E2 08 00 2E 18 80 17 00 00 00 00 00 00 C6 [00:14:49]Write i2c OK [00:14:49]MH_I2C_Read... [00:14:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:49]Read from MH i2c: E2 [00:14:49]MH_I2C_Read... [00:14:49]Read from MH i2c: E2 FD 00 [00:14:49]MH_I2C_Read... [00:14:49]Read from MH i2c: E2 FD 00 2E 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 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 74 [00:14:50]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:14:50]wFMCommunicate OK [00:14:50]wFMCommunicate request_size=4 [00:14:50]MH_SAM_APDU [00:14:50]CAPDU: 80 17 00 00 [00:14:50]Write to MH i2c: E2 08 00 2F 18 80 17 00 00 00 00 00 00 C7 [00:14:50]OFD Sender: No OFD packet to send [00:14:50]Write i2c OK [00:14:50]MH_I2C_Read... [00:14:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:50]Read from MH i2c: E2 [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: E2 FD 00 [00:14:50]MH_I2C_Read... [00:14:50]Read from MH i2c: E2 FD 00 2F 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 EE [00:14:50]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:14:50]wFMCommunicate OK [00:14:50]wFMCommunicate request_size=4 [00:14:50]MH_SAM_APDU [00:14:50]CAPDU: 80 17 00 00 [00:14:50]Write to MH i2c: E2 08 00 30 18 80 17 00 00 00 00 00 00 C8 [00:14:50]Write i2c OK [00:14:50]MH_I2C_Read... [00:14:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:51]Read from MH i2c: E2 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 FD 00 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 FD 00 30 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 43 [00:14:51]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:14:51]wFMCommunicate OK [00:14:51]wFMCommunicate request_size=4 [00:14:51]MH_SAM_APDU [00:14:51]CAPDU: 80 17 00 00 [00:14:51]Write to MH i2c: E2 08 00 31 18 80 17 00 00 00 00 00 00 C9 [00:14:51]Write i2c OK [00:14:51]MH_I2C_Read... [00:14:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:14:51]Read from MH i2c: E2 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 E3 00 [00:14:51]MH_I2C_Read... [00:14:51]Read from MH i2c: E2 E3 00 31 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 A8 [00:14:51]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:14:51]wFMCommunicate OK [00:14:51]SAM_PROTO_GetFMData done [00:14:51]FM_GetFMData:85 04 C2 04 6E 04 04 00 A6 03 01 00 69 04 A3 00 6F 04 04 00 01 03 01 00 B1 04 05 00 9E B8 0F 19 03 70 04 05 00 DC 65 C5 BE 02 72 04 04 00 C2 52 4A 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8E FF 3A 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 33 D6 04 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 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 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:14:52]oper:6F 04 04 00 01 03 01 00 B1 04 05 00 9E B8 0F 19 03 70 04 05 00 DC 65 C5 BE 02 72 04 04 00 C2 52 4A 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8E FF 3A 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 33 D6 04 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:14:52]total:9E B8 0F 19 03 [00:14:52]Malloc new data [00:14:52]oper:6F 04 04 00 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 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 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:14:52]total:70 3B AE DC [00:14:52]Malloc new data [00:14:52]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:14:52]total: [00:14:52]Malloc new data [00:14:52]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:14:52]total: [00:14:52]Malloc new data [00:14:52]KKMPrepareXReportFMData err=0 [00:14:52]Х отчет ИНН: 02508201610067 Кассир: Адишов И. 15.05.2024 00:14 Смена: 266 РНМ: 0000000000091845 ЗНМ: 0300000119 СНО: Общий режим Всего чеков: 187 ИТОГИ ПРИХОД Чеков: 187 Общий итог: 275614.58 Итого наличными: 112720.00 Итого безнал.: 162894.58 НДС 0% : 0.00 НДС 12% : 29273.19 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2439.21 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 112720.00 НС Приход: 133053625.90 НС Возвр.Прихода: 37024060.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871829 [00:14:52]StoreToDocumentArchive [00:14:52]MH_GetDate [00:14:52]Write to MH i2c: F0 00 00 32 18 39 [00:14:52]Write i2c OK [00:14:52]MH_I2C_Read... [00:14:52]Read from MH i2c: F0 [00:14:52]MH_I2C_Read... [00:14:52]Read from MH i2c: F0 09 00 [00:14:52]MH_I2C_Read... [00:14:52]Read from MH i2c: F0 09 00 32 18 00 7E FE 43 66 FC 21 6F 64 57 [00:14:52]shift 266 fd 1715732094 [00:14:52]Create dir for shift 0266 [00:14:52]save to /storage/0266/doc_1715732094 [00:14:52]save last doc name /storage/0266/doc_1715732094 to /storage/kkm_last_doc_name [00:14:52]save OK [00:14:52]Clear old archive folders... [00:14:52]NVStorageSaveData kkm_last_timestamp [00:14:52]File name is /storage/kkm_last_timestamp [00:14:52]Write 4 bytes [00:14:52]NVStorageSaveData done [00:14:52]ExternCall_PrintAddStr [00:14:52]wPrintStart [00:14:52]Write to MH i2c: 01 00 00 33 18 4B [00:14:52]Write i2c OK [00:14:52]MH_I2C_Read... [00:14:52]Read from MH i2c: 01 [00:14:52]MH_I2C_Read... [00:14:52]Read from MH i2c: 01 07 00 [00:14:52]MH_I2C_Read... [00:14:52]Read from MH i2c: 01 07 00 33 18 00 00 00 00 00 FF 0F 60 [00:14:52]RasterBufferAndPrint [00:14:52]line Х отчет [00:14:52]line ИНН: 02508201610067 [00:14:52]line Кассир: Адишов И. [00:14:52]line 15.05.2024 00:14 [00:14:52]line Смена: 266 [00:14:52]line РНМ: 0000000000091845 [00:14:52]line ЗНМ: 0300000119 [00:14:52]line СНО: Общий режим [00:14:52]line Всего чеков: 187 [00:14:52]line ИТОГИ ПРИХОД [00:14:52]line Чеков: 187 [00:14:52]line Общий итог: 275614.58 [00:14:52]line Итого наличными: 112720.00 [00:14:52]line Итого безнал.: 162894.58 [00:14:52]line НДС 0% : 0.00 [00:14:52]line НДС 12% : 29273.19 [00:14:52]line НСП 0% : 0.00 [00:14:52]line НСП 1,50% : 0.00 [00:14:52]line НСП 0,50% : 0.00 [00:14:52]line НСП 5% : 0.00 [00:14:52]line НСП 3% : 0.00 [00:14:52]line НСП 2% : 0.00 [00:14:52]line НСП 1% : 2439.21 [00:14:52]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:14:52]line Чеков: 0 [00:14:52]line Общий итог: 0.00 [00:14:52]line Итого наличными: 0.00 [00:14:52]line Итого безнал.: 0.00 [00:14:52]line НДС 0% : 0.00 [00:14:52]line НДС 12% : 0.00 [00:14:52]line НСП 0% : 0.00 [00:14:52]line НСП 1,50% : 0.00 [00:14:52]line НСП 0,50% : 0.00 [00:14:52]line НСП 5% : 0.00 [00:14:52]line НСП 3% : 0.00 [00:14:52]line НСП 2% : 0.00 [00:14:52]line НСП 1% : 0.00 [00:14:52]line ИТОГИ РАСХОД [00:14:52]line Чеков: 0 [00:14:52]line Общий итог: 0.00 [00:14:52]line Итого наличными: 0.00 [00:14:52]line Итого безнал.: 0.00 [00:14:52]line НДС 0% : 0.00 [00:14:52]line НДС 12% : 0.00 [00:14:52]line НСП 0% : 0.00 [00:14:52]line НСП 1,50% : 0.00 [00:14:52]line НСП 0,50% : 0.00 [00:14:52]line НСП 5% : 0.00 [00:14:52]line НСП 3% : 0.00 [00:14:52]line НСП 2% : 0.00 [00:14:52]line НСП 1% : 0.00 [00:14:52]line ИТОГИ ВОЗВРАТ РАСХОДА [00:14:52]line Чеков: 0 [00:14:52]line Общий итог: 0.00 [00:14:52]line Итого наличными: 0.00 [00:14:52]line Итого безнал.: 0.00 [00:14:52]line НДС 0% : 0.00 [00:14:52]line НДС 12% : 0.00 [00:14:52]line НСП 0% : 0.00 [00:14:52]line НСП 1,50% : 0.00 [00:14:52]line НСП 0,50% : 0.00 [00:14:52]line НСП 5% : 0.00 [00:14:52]line НСП 3% : 0.00 [00:14:52]line НСП 2% : 0.00 [00:14:52]line НСП 1% : 0.00 [00:14:52]line Сумма внесений: 0.00 [00:14:52]line Сумма выплат: 0.00 [00:14:52]line Нал. в кассе: 112720.00 [00:14:52]line НС Приход: 133053625.90 [00:14:52]line НС Возвр.Прихода: 37024060.00 [00:14:52]line НС Расход: 0.00 [00:14:52]line НС Возвр.Расхода: 0.00 [00:14:52]line ФМ: 0000000000871829 [00:14:52]written 0, free lines is 4095 [00:14:53]Write to MH i2c: 01 00 00 7F 18 97 [00:14:53]Write i2c OK [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: 01 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: 01 07 00 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: 01 07 00 7F 18 00 00 00 00 00 7A 0A 22 [00:14:53]RasterBufferAndPrint [00:14:53]line [00:14:53]line [00:14:53]line [00:14:53]line [00:14:53]line [00:14:53]written 0, free lines is 2713 [00:14:53]MH_Cut [00:14:53]Write to MH i2c: D1 01 00 86 18 01 70 [00:14:53]Write i2c OK [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: D1 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: D1 01 00 [00:14:53]MH_I2C_Read... [00:14:53]Read from MH i2c: D1 01 00 86 18 00 6F [00:14:53]Write to MH i2c: 01 00 00 87 18 9F [00:14:53]Write i2c OK [00:14:53]MH_I2C_Read... [00:14:54]*** Cut start [00:14:54]*** Purtial cut [00:14:54]*** CUTSNS_PIN = 0 [00:14:55]*** Stage 1: CUTSNS_PIN = 1 [00:14:55]OFD Sender: No OFD packet to send [00:14:56]Read from MH i2c: 01 [00:14:56]MH_I2C_Read... [00:14:56]*** Stop cut motor [00:14:56]*** Cut end [00:14:56]Read from MH i2c: 01 07 00 [00:14:56]MH_I2C_Read... [00:14:56]Read from MH i2c: 01 07 00 87 18 00 00 00 00 00 FF 0F B4 [00:14:56]process_action x_report done [00:14:56]requested_data is exist [00:14:56]produce_requested_data [00:14:56]requested_item fd.num is exist - process it [00:14:56]SAM_PROTO_GetFieldsCounters [00:14:56]wFMCommunicate request_size=4 [00:14:56]MH_SAM_APDU [00:14:56]CAPDU: 80 13 00 00 [00:14:56]Write to MH i2c: E2 08 00 88 18 80 13 00 00 00 00 00 00 1C [00:14:56]Write i2c OK [00:14:56]MH_I2C_Read... [00:14:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:56]Read from MH i2c: E2 [00:14:56]MH_I2C_Read... [00:14:56]Read from MH i2c: E2 62 00 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 62 00 88 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 6C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [00:14: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 6C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:14:57]wFMCommunicate OK [00:14:57]SAM_PROTO_GetFieldsCounters done [00:14:57]requested_item shift.num is exist - process it [00:14:57]requested_item shift.opened is exist - process it [00:14:57]req_shift_opened [00:14:57]FM_GetShiftState [00:14:57]SAM_PROTO_GetShiftState [00:14:57]wFMCommunicate request_size=4 [00:14:57]MH_SAM_APDU [00:14:57]CAPDU: 80 13 01 00 [00:14:57]Write to MH i2c: E2 08 00 89 18 80 13 01 00 00 00 00 00 1E [00:14:57]Write i2c OK [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 [00:14:57]MH_I2C_Read... [00:14:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:57]Read from MH i2c: E2 0E 00 [00:14:57]MH_I2C_Read... [00:14:57]Read from MH i2c: E2 0E 00 89 18 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 E6 [00:14:57]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [00:14:57]wFMCommunicate OK [00:14:57]SAM_PROTO_GetShiftState done [00:14:57]FM_GetShiftState done [00:14:57]req_shift_opened done [00:14:57]requested_item shift.open_date is exist - process it [00:14:57]req_shift_open_date [00:14:57]req_shift_open_date done [00:14:57]produce_requested_data done [00:14:57]produce_requested_data return {"fd.num":67180,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [00:14:57]process_action_free x_report [00:14:57]json_value_free [00:14:57]json_value_free done [00:14:57]process_json_proto returns [00:14:57]Send response to host [00:14:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":67180,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [00:14:57]free response buf [00:14:57]execute_script done [00:14:57]execute_script returns [00:14:57]free content buf [00:14:57]Sock 10.Close socket [00:14:57]Sock 10.Thread stoped [00:15:00]OFD Sender: No OFD packet to send [00:15:03]accept exits with 7 [00:15:03]New connection [00:15:03]New thread 3066588516 created [00:15:03]Thread 3066731876 joined [00:15:03]Waiting for new connection... [00:15:03] Sock 7.Parse request [00:15:03]Sock 7.Check first char [00:15:03]Sock 7.First char is OK [00:15:03]request: POST /json_proto HTTP/1.0 [00:15:03]Method: POST [00:15:03]URL: /json_proto [00:15:03]Method is POST - this is cgi request [00:15:03]url: /json_proto [00:15:03]query_string will be loaded in cgi processing [00:15:03]execute_cgi json_proto POST (null) [00:15:03]execute_cgi path=json_proto method=POST [00:15:03]POST find Content-Length [00:15:03]Host: 172.17.41.195:8080 [00:15:03]Content-Length: 215 [00:15:03]Content-Type: application/json [00:15:03] [00:15:03]POST finish read [00:15:03]Found Content-Length = 215 [00:15:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:03]execute_script... [00:15:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:03]POST & json_proto [00:15:03]process_json_proto [00:15:03]json parsed OK: [00:15:03]protocol is kg_v1.0 [00:15:03]action value=get_value [00:15:03]process_action get_value [00:15:03]cmd_get_value [00:15:03]process_action get_value done [00:15:03]requested_data is exist [00:15:03]produce_requested_data [00:15:03]requested_item kkm.sn is exist - process it [00:15:03]requested_item kkm.ver is exist - process it [00:15:03]requested_item fm.sn is exist - process it [00:15:03]wFMCommunicate request_size=4 [00:15:03]MH_SAM_APDU [00:15:03]CAPDU: 80 11 00 00 [00:15:03]Write to MH i2c: E2 08 00 8A 18 80 11 00 00 00 00 00 00 1C [00:15:03]Write i2c OK [00:15:03]MH_I2C_Read... [00:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:03]Read from MH i2c: E2 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 17 00 [00:15:03]MH_I2C_Read... [00:15:03]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 [00:15: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:15:03]wFMCommunicate OK [00:15:03]requested_item fd.num is exist - process it [00:15:03]SAM_PROTO_GetFieldsCounters [00:15:03]wFMCommunicate request_size=4 [00:15:03]MH_SAM_APDU [00:15:03]CAPDU: 80 13 00 00 [00:15:03]Write to MH i2c: E2 08 00 8B 18 80 13 00 00 00 00 00 00 1F [00:15:03]Write i2c OK [00:15:03]MH_I2C_Read... [00:15:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:03]Read from MH i2c: E2 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 62 00 [00:15:03]MH_I2C_Read... [00:15:03]Read from MH i2c: E2 62 00 8B 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 6C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [00:15: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 6C 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:15:03]wFMCommunicate OK [00:15:03]SAM_PROTO_GetFieldsCounters done [00:15:03]requested_item shift.num is exist - process it [00:15:03]requested_item shift.opened is exist - process it [00:15:03]req_shift_opened [00:15:03]FM_GetShiftState [00:15:03]SAM_PROTO_GetShiftState [00:15:03]wFMCommunicate request_size=4 [00:15:03]MH_SAM_APDU [00:15:03]CAPDU: 80 13 01 00 [00:15:03]Write to MH i2c: E2 08 00 8C 18 80 13 01 00 00 00 00 00 21 [00:15:03]Write i2c OK [00:15:03]MH_I2C_Read... [00:15:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:04]Read from MH i2c: E2 [00:15:04]MH_I2C_Read... [00:15:04]Read from MH i2c: E2 0E 00 [00:15:04]MH_I2C_Read... [00:15:04]Read from MH i2c: E2 0E 00 8C 18 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 E9 [00:15:04]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [00:15:04]wFMCommunicate OK [00:15:04]SAM_PROTO_GetShiftState done [00:15:04]FM_GetShiftState done [00:15:04]req_shift_opened done [00:15:04]requested_item shift.open_date is exist - process it [00:15:04]req_shift_open_date [00:15:04]req_shift_open_date done [00:15:04]produce_requested_data done [00:15:04]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67180,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054} [00:15:04]process_action_free get_value [00:15:04]json_value_free [00:15:04]json_value_free done [00:15:04]process_json_proto returns [00:15:04]Send response to host [00:15:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67180,"shift.num":355,"shift.opened":1,"shift.open_date":1715646054}}} [00:15:04]free response buf [00:15:04]execute_script done [00:15:04]execute_script returns [00:15:04]free content buf [00:15:04]Sock 7.Close socket [00:15:04]Sock 7.Thread stoped [00:15:04]accept exits with 9 [00:15:04]New connection [00:15:04]New thread 3066731876 created [00:15:04]Thread 3066588516 joined [00:15:04]Waiting for new connection... [00:15:04] Sock 9.Parse request [00:15:04]Sock 9.Check first char [00:15:04]Sock 9.First char is OK [00:15:04]request: POST /json_proto HTTP/1.0 [00:15:04]Method: POST [00:15:04]URL: /json_proto [00:15:04]Method is POST - this is cgi request [00:15:04]url: /json_proto [00:15:04]query_string will be loaded in cgi processing [00:15:04]execute_cgi json_proto POST (null) [00:15:04]execute_cgi path=json_proto method=POST [00:15:04]POST find Content-Length [00:15:04]Host: 172.17.41.195:8080 [00:15:04]Content-Length: 331 [00:15:04]Content-Type: application/json [00:15:04] [00:15:04]POST finish read [00:15:04]Found Content-Length = 331 [00:15:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:15:04]execute_script... [00:15:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:15:04]POST & json_proto [00:15:04]process_json_proto [00:15:04]json parsed OK: [00:15:04]protocol is kg_v1.0 [00:15:04]action value=get_value [00:15:04]process_action get_value [00:15:04]cmd_get_value [00:15:04]process_action get_value done [00:15:04]requested_data is exist [00:15:04]produce_requested_data [00:15:04]requested_item fm.sale.total is exist - process it [00:15:04]SAM_PROTO_GetFMData [00:15:04]wFMCommunicate request_size=4 [00:15:04]MH_SAM_APDU [00:15:04]CAPDU: 80 13 03 00 [00:15:04]Write to MH i2c: E2 08 00 8D 18 80 13 03 00 00 00 00 00 24 [00:15:04]Write i2c OK [00:15:04]MH_I2C_Read... [00:15:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:15:04]Read from MH i2c: E2 [00:15:04]MH_I2C_Read... [00:15:04]Read from MH i2c: E2 FD 00 [00:15:04]MH_I2C_Read... [00:15:04]Read from MH i2c: E2 FD 00 8D 18 00 C6 04 85 04 C2 04 6E 04 04 00 A6 03 01 00 69 04 A3 00 6F 04 04 00 01 03 01 00 B1 04 05 00 9E B8 0F 19 03 70 04 05 00 DC 65 C5 BE 02 72 04 04 00 C2 52 4A 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8E FF 3A 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 33 D6 04 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 98 [00:15:04]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 A6 03 01 00 69 04 A3 00 6F 04 04 00 01 03 01 00 B1 04 05 00 9E B8 0F 19 03 70 04 05 00 DC 65 C5 BE 02 72 04 04 00 C2 52 4A 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8E FF 3A 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 33 D6 04 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 [00:15:04]wFMCommunicate OK [00:15:04]wFMCommunicate request_size=4 [00:15:04]MH_SAM_APDU [00:15:04]CAPDU: 80 17 00 00 [00:15:04]Write to MH i2c: E2 08 00 8E 18 80 17 00 00 00 00 00 00 26 [00:15:04]Write i2c OK [00:15:04]MH_I2C_Read... [00:15:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:05]Read from MH i2c: E2 [00:15:05]MH_I2C_Read... [00:15:05]Read from MH i2c: E2 FD 00 [00:15:05]MH_I2C_Read... [00:15:05]Read from MH i2c: E2 FD 00 8E 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 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 D4 [00:15:05]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:15:05]wFMCommunicate OK [00:15:05]wFMCommunicate request_size=4 [00:15:05]MH_SAM_APDU [00:15:05]CAPDU: 80 17 00 00 [00:15:05]Write to MH i2c: E2 08 00 8F 18 80 17 00 00 00 00 00 00 27 [00:15:05]OFD Sender: No OFD packet to send [00:15:05]Write i2c OK [00:15:05]MH_I2C_Read... [00:15:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:05]Read from MH i2c: E2 [00:15:05]MH_I2C_Read... [00:15:05]Read from MH i2c: E2 FD 00 [00:15:05]MH_I2C_Read... [00:15:05]Read from MH i2c: E2 FD 00 8F 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 4E [00:15:05]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:15:05]wFMCommunicate OK [00:15:05]wFMCommunicate request_size=4 [00:15:05]MH_SAM_APDU [00:15:05]CAPDU: 80 17 00 00 [00:15:05]Write to MH i2c: E2 08 00 90 18 80 17 00 00 00 00 00 00 28 [00:15:05]Write i2c OK [00:15:05]MH_I2C_Read... [00:15:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:06]Read from MH i2c: E2 [00:15:06]MH_I2C_Read... [00:15:06]Read from MH i2c: E2 FD 00 [00:15:06]MH_I2C_Read... [00:15:06]Read from MH i2c: E2 FD 00 90 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 A3 [00:15:06]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:15:06]wFMCommunicate OK [00:15:06]wFMCommunicate request_size=4 [00:15:06]MH_SAM_APDU [00:15:06]CAPDU: 80 17 00 00 [00:15:06]Write to MH i2c: E2 08 00 91 18 80 17 00 00 00 00 00 00 29 [00:15:06]Write i2c OK [00:15:06]MH_I2C_Read... [00:15:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:15:06]Read from MH i2c: E2 [00:15:06]MH_I2C_Read... [00:15:06]Read from MH i2c: E2 E3 00 [00:15:06]MH_I2C_Read... [00:15:06]Read from MH i2c: E2 E3 00 91 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 08 [00:15:06]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:15:06]wFMCommunicate OK [00:15:06]SAM_PROTO_GetFMData done [00:15:06]requested_item fm.sale_refund.total is exist - process it [00:15:06]requested_item fm.buy.total is exist - process it [00:15:06]requested_item shift.sale.total is exist - process it [00:15:06]SAM_PROTO_GetShiftData [00:15:06]wFMCommunicate request_size=4 [00:15:06]MH_SAM_APDU [00:15:06]CAPDU: 80 13 02 00 [00:15:06]Write to MH i2c: E2 08 00 92 18 80 13 02 00 00 00 00 00 28 [00:15:06]Write i2c OK [00:15:06]MH_I2C_Read... [00:15:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:15:07]Read from MH i2c: E2 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: E2 FD 00 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: E2 FD 00 92 18 00 B0 04 AA 04 AC 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 BB 00 00 00 B1 04 04 00 F2 8D A4 01 70 04 03 00 40 FF AB 72 04 03 00 B2 8E F8 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 D7 AA 2C 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 D1 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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 F0 [00:15:07]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 BB 00 00 00 B1 04 04 00 F2 8D A4 01 70 04 03 00 40 FF AB 72 04 03 00 B2 8E F8 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 D7 AA 2C 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 D1 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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:15:07]wFMCommunicate OK [00:15:07]wFMCommunicate request_size=4 [00:15:07]MH_SAM_APDU [00:15:07]CAPDU: 80 17 00 00 [00:15:07]Write to MH i2c: E2 08 00 93 18 80 17 00 00 00 00 00 00 2B [00:15:07]Write i2c OK [00:15:07]MH_I2C_Read... [00:15:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:07]Read from MH i2c: E2 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: E2 FD 00 [00:15:07]MH_I2C_Read... [00:15:07]Read from MH i2c: E2 FD 00 93 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 45 [00:15:08]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:15:08]wFMCommunicate OK [00:15:08]wFMCommunicate request_size=4 [00:15:08]MH_SAM_APDU [00:15:08]CAPDU: 80 17 00 00 [00:15:08]Write to MH i2c: E2 08 00 94 18 80 17 00 00 00 00 00 00 2C [00:15:08]Write i2c OK [00:15:08]MH_I2C_Read... [00:15:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:08]Read from MH i2c: E2 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 FD 00 [00:15:08]MH_I2C_Read... [00:15:08]Read from MH i2c: E2 FD 00 94 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 E9 [00:15:08]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:15:08]wFMCommunicate OK [00:15:08]wFMCommunicate request_size=4 [00:15:08]MH_SAM_APDU [00:15:08]CAPDU: 80 17 00 00 [00:15:08]Write to MH i2c: E2 08 00 95 18 80 17 00 00 00 00 00 00 2D [00:15:08]Write i2c OK [00:15:08]MH_I2C_Read... [00:15:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:09]Read from MH i2c: E2 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 FD 00 95 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 A0 [00:15:09]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:15:09]wFMCommunicate OK [00:15:09]wFMCommunicate request_size=4 [00:15:09]MH_SAM_APDU [00:15:09]CAPDU: 80 17 00 00 [00:15:09]Write to MH i2c: E2 08 00 96 18 80 17 00 00 00 00 00 00 2E [00:15:09]Write i2c OK [00:15:09]MH_I2C_Read... [00:15:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:15:09]Read from MH i2c: E2 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 CD 00 [00:15:09]MH_I2C_Read... [00:15:09]Read from MH i2c: E2 CD 00 96 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 12 [00:15:09]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:15:09]wFMCommunicate OK [00:15:09]SAM_PROTO_GetShiftData done [00:15:09]requested_item shift.sale.total_cash is exist - process it [00:15:09]requested_item shift.sale_refund.total is exist - process it [00:15:09]requested_item shift.sale_refund.total_cash is exist - process it [00:15:09]requested_item shift.buy.total is exist - process it [00:15:09]requested_item shift.buy.total_cash is exist - process it [00:15:09]produce_requested_data done [00:15:09]produce_requested_data return {"fm.sale.total":133053625.90,"fm.sale_refund.total":37024060.00,"fm.buy.total":0.00,"shift.sale.total":275614.58,"shift.sale.total_cash":112720.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:15:09]process_action_free get_value [00:15:09]json_value_free [00:15:09]json_value_free done [00:15:09]process_json_proto returns [00:15:09]Send response to host [00:15:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133053625.90,"fm.sale_refund.total":37024060.00,"fm.buy.total":0.00,"shift.sale.total":275614.58,"shift.sale.total_cash":112720.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:15:09]free response buf [00:15:09]execute_script done [00:15:09]execute_script returns [00:15:09]free content buf [00:15:09]Sock 9.Close socket [00:15:09]Sock 9.Thread stoped [00:15:09]accept exits with 7 [00:15:09]New connection [00:15:09]New thread 3066588516 created [00:15:09]Thread 3066731876 joined [00:15:09]Waiting for new connection... [00:15:09] Sock 7.Parse request [00:15:09]Sock 7.Check first char [00:15:09]Sock 7.First char is OK [00:15:09]request: POST /json_proto HTTP/1.0 [00:15:09]Method: POST [00:15:09]URL: /json_proto [00:15:09]Method is POST - this is cgi request [00:15:09]url: /json_proto [00:15:09]query_string will be loaded in cgi processing [00:15:09]execute_cgi json_proto POST (null) [00:15:09]execute_cgi path=json_proto method=POST [00:15:09]POST find Content-Length [00:15:10]Host: 172.17.41.195:8080 [00:15:10]Content-Length: 331 [00:15:10]Content-Type: application/json [00:15:10] [00:15:10]POST finish read [00:15:10]Found Content-Length = 331 [00:15:10]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:15:10]execute_script... [00:15:10]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:15:10]POST & json_proto [00:15:10]process_json_proto [00:15:10]json parsed OK: [00:15:10]protocol is kg_v1.0 [00:15:10]action value=get_value [00:15:10]process_action get_value [00:15:10]cmd_get_value [00:15:10]process_action get_value done [00:15:10]requested_data is exist [00:15:10]produce_requested_data [00:15:10]requested_item fm.sale.total is exist - process it [00:15:10]SAM_PROTO_GetFMData [00:15:10]wFMCommunicate request_size=4 [00:15:10]MH_SAM_APDU [00:15:10]CAPDU: 80 13 03 00 [00:15:10]Write to MH i2c: E2 08 00 97 18 80 13 03 00 00 00 00 00 2E [00:15:10]Write i2c OK [00:15:10]MH_I2C_Read... [00:15:10]OFD Sender: No OFD packet to send [00:15:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:15:10]Read from MH i2c: E2 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 FD 00 [00:15:10]MH_I2C_Read... [00:15:10]Read from MH i2c: E2 FD 00 97 18 00 C6 04 85 04 C2 04 6E 04 04 00 A6 03 01 00 69 04 A3 00 6F 04 04 00 01 03 01 00 B1 04 05 00 9E B8 0F 19 03 70 04 05 00 DC 65 C5 BE 02 72 04 04 00 C2 52 4A 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8E FF 3A 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 33 D6 04 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 A2 [00:15:10]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 A6 03 01 00 69 04 A3 00 6F 04 04 00 01 03 01 00 B1 04 05 00 9E B8 0F 19 03 70 04 05 00 DC 65 C5 BE 02 72 04 04 00 C2 52 4A 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8E FF 3A 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 33 D6 04 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 [00:15:10]wFMCommunicate OK [00:15:10]wFMCommunicate request_size=4 [00:15:10]MH_SAM_APDU [00:15:10]CAPDU: 80 17 00 00 [00:15:10]Write to MH i2c: E2 08 00 98 18 80 17 00 00 00 00 00 00 30 [00:15:10]Write i2c OK [00:15:10]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 FD 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 FD 00 98 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 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 DE [00:15: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 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:15:11]wFMCommunicate OK [00:15:11]wFMCommunicate request_size=4 [00:15:11]MH_SAM_APDU [00:15:11]CAPDU: 80 17 00 00 [00:15:11]Write to MH i2c: E2 08 00 99 18 80 17 00 00 00 00 00 00 31 [00:15:11]Write i2c OK [00:15:11]MH_I2C_Read... [00:15:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:11]Read from MH i2c: E2 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 FD 00 [00:15:11]MH_I2C_Read... [00:15:11]Read from MH i2c: E2 FD 00 99 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 58 [00:15:11]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:15:12]wFMCommunicate OK [00:15:12]wFMCommunicate request_size=4 [00:15:12]MH_SAM_APDU [00:15:12]CAPDU: 80 17 00 00 [00:15:12]Write to MH i2c: E2 08 00 9A 18 80 17 00 00 00 00 00 00 32 [00:15:12]Write i2c OK [00:15:12]MH_I2C_Read... [00:15:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:12]Read from MH i2c: E2 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 FD 00 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 FD 00 9A 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 AD [00:15:12]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:15:12]wFMCommunicate OK [00:15:12]wFMCommunicate request_size=4 [00:15:12]MH_SAM_APDU [00:15:12]CAPDU: 80 17 00 00 [00:15:12]Write to MH i2c: E2 08 00 9B 18 80 17 00 00 00 00 00 00 33 [00:15:12]Write i2c OK [00:15:12]MH_I2C_Read... [00:15:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:15:12]Read from MH i2c: E2 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 E3 00 [00:15:12]MH_I2C_Read... [00:15:12]Read from MH i2c: E2 E3 00 9B 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 12 [00:15: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:15:13]wFMCommunicate OK [00:15:13]SAM_PROTO_GetFMData done [00:15:13]requested_item fm.sale_refund.total is exist - process it [00:15:13]requested_item fm.buy.total is exist - process it [00:15:13]requested_item shift.sale.total is exist - process it [00:15:13]SAM_PROTO_GetShiftData [00:15:13]wFMCommunicate request_size=4 [00:15:13]MH_SAM_APDU [00:15:13]CAPDU: 80 13 02 00 [00:15:13]Write to MH i2c: E2 08 00 9C 18 80 13 02 00 00 00 00 00 32 [00:15:13]Write i2c OK [00:15:13]MH_I2C_Read... [00:15:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:15:13]Read from MH i2c: E2 [00:15:13]MH_I2C_Read... [00:15:13]Read from MH i2c: E2 FD 00 [00:15:13]MH_I2C_Read... [00:15:13]Read from MH i2c: E2 FD 00 9C 18 00 B0 04 AA 04 AC 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 BB 00 00 00 B1 04 04 00 F2 8D A4 01 70 04 03 00 40 FF AB 72 04 03 00 B2 8E F8 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 D7 AA 2C 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 D1 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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 FA [00:15:13]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 BB 00 00 00 B1 04 04 00 F2 8D A4 01 70 04 03 00 40 FF AB 72 04 03 00 B2 8E F8 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 D7 AA 2C 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 D1 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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:15:14]wFMCommunicate OK [00:15:14]wFMCommunicate request_size=4 [00:15:14]MH_SAM_APDU [00:15:14]CAPDU: 80 17 00 00 [00:15:14]Write to MH i2c: E2 08 00 9D 18 80 17 00 00 00 00 00 00 35 [00:15:14]Write i2c OK [00:15:14]MH_I2C_Read... [00:15:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:14]Read from MH i2c: E2 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 FD 00 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 FD 00 9D 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 4F [00:15:14]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:15:14]wFMCommunicate OK [00:15:14]wFMCommunicate request_size=4 [00:15:14]MH_SAM_APDU [00:15:14]CAPDU: 80 17 00 00 [00:15:14]Write to MH i2c: E2 08 00 9E 18 80 17 00 00 00 00 00 00 36 [00:15:14]Write i2c OK [00:15:14]MH_I2C_Read... [00:15:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:14]Read from MH i2c: E2 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 FD 00 [00:15:14]MH_I2C_Read... [00:15:14]Read from MH i2c: E2 FD 00 9E 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 F3 [00:15:15]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:15:15]wFMCommunicate OK [00:15:15]wFMCommunicate request_size=4 [00:15:15]MH_SAM_APDU [00:15:15]CAPDU: 80 17 00 00 [00:15:15]Write to MH i2c: E2 08 00 9F 18 80 17 00 00 00 00 00 00 37 [00:15:15]Write i2c OK [00:15:15]MH_I2C_Read... [00:15:15]OFD Sender: No OFD packet to send [00:15:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:15]Read from MH i2c: E2 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: E2 FD 00 [00:15:15]MH_I2C_Read... [00:15:15]Read from MH i2c: E2 FD 00 9F 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 AA [00:15:15]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:15:15]wFMCommunicate OK [00:15:15]wFMCommunicate request_size=4 [00:15:15]MH_SAM_APDU [00:15:15]CAPDU: 80 17 00 00 [00:15:15]Write to MH i2c: E2 08 00 A0 18 80 17 00 00 00 00 00 00 38 [00:15:15]Write i2c OK [00:15:15]MH_I2C_Read... [00:15:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:15:16]Read from MH i2c: E2 [00:15:16]MH_I2C_Read... [00:15:16]Read from MH i2c: E2 CD 00 [00:15:16]MH_I2C_Read... [00:15:16]Read from MH i2c: E2 CD 00 A0 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 1C [00:15:16]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:15:16]wFMCommunicate OK [00:15:16]SAM_PROTO_GetShiftData done [00:15:16]requested_item shift.sale.total_cash is exist - process it [00:15:16]requested_item shift.sale_refund.total is exist - process it [00:15:16]requested_item shift.sale_refund.total_cash is exist - process it [00:15:16]requested_item shift.buy.total is exist - process it [00:15:16]requested_item shift.buy.total_cash is exist - process it [00:15:16]produce_requested_data done [00:15:16]produce_requested_data return {"fm.sale.total":133053625.90,"fm.sale_refund.total":37024060.00,"fm.buy.total":0.00,"shift.sale.total":275614.58,"shift.sale.total_cash":112720.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:15:16]process_action_free get_value [00:15:16]json_value_free [00:15:16]json_value_free done [00:15:16]process_json_proto returns [00:15:16]Send response to host [00:15:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133053625.90,"fm.sale_refund.total":37024060.00,"fm.buy.total":0.00,"shift.sale.total":275614.58,"shift.sale.total_cash":112720.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:15:16]free response buf [00:15:16]execute_script done [00:15:16]execute_script returns [00:15:16]free content buf [00:15:16]Sock 7.Close socket [00:15:16]Sock 7.Thread stoped [00:15:16]accept exits with 9 [00:15:16]New connection [00:15:16]New thread 3066731876 created [00:15:16]Thread 3066588516 joined [00:15:16]Waiting for new connection... [00:15:16] Sock 9.Parse request [00:15:16]Sock 9.Check first char [00:15:16]Sock 9.First char is OK [00:15:16]request: POST /json_proto HTTP/1.0 [00:15:16]Method: POST [00:15:16]URL: /json_proto [00:15:16]Method is POST - this is cgi request [00:15:16]url: /json_proto [00:15:16]query_string will be loaded in cgi processing [00:15:16]execute_cgi json_proto POST (null) [00:15:16]execute_cgi path=json_proto method=POST [00:15:16]POST find Content-Length [00:15:16]Host: 172.17.41.195:8080 [00:15:16]Content-Length: 247 [00:15:16]Content-Type: application/json [00:15:16] [00:15:16]POST finish read [00:15:16]Found Content-Length = 247 [00:15:16]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:15:16]execute_script... [00:15:16]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:15:16]POST & json_proto [00:15:16]process_json_proto [00:15:16]json parsed OK: [00:15:16]protocol is kg_v1.0 [00:15:16]action value=close_shift [00:15:16]process_action close_shift [00:15:16]cmd_close_shift [00:15:16]MH_GetDate [00:15:16]Write to MH i2c: F0 00 00 A1 18 A8 [00:15:16]Write i2c OK [00:15:16]MH_I2C_Read... [00:15:16]Read from MH i2c: F0 [00:15:16]MH_I2C_Read... [00:15:16]Read from MH i2c: F0 09 00 [00:15:16]MH_I2C_Read... [00:15:16]Read from MH i2c: F0 09 00 A1 18 00 96 FE 43 66 FC 21 6F 64 DE [00:15:16]GetLastDocTimeStamp 1715732086 [00:15:16]current date 1715732118 [00:15:16]FM_GetShiftState [00:15:16]SAM_PROTO_GetShiftState [00:15:16]wFMCommunicate request_size=4 [00:15:16]MH_SAM_APDU [00:15:16]CAPDU: 80 13 01 00 [00:15:16]Write to MH i2c: E2 08 00 A2 18 80 13 01 00 00 00 00 00 37 [00:15:16]Write i2c OK [00:15:16]MH_I2C_Read... [00:15:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:16]Read from MH i2c: E2 [00:15:16]MH_I2C_Read... [00:15:16]Read from MH i2c: E2 0E 00 [00:15:16]MH_I2C_Read... [00:15:16]Read from MH i2c: E2 0E 00 A2 18 00 09 00 01 66 AE 42 66 00 00 00 00 90 00 FF [00:15:16]RAPDU: 09 00 01 66 AE 42 66 00 00 00 00 90 00 [00:15:16]wFMCommunicate OK [00:15:16]SAM_PROTO_GetShiftState done [00:15:16]FM_GetShiftState done [00:15:16]KKMCreateCloseShiftDocument [00:15:16]Load OK [00:15:16]Malloc new data [00:15:16]MH_GetDate [00:15:16]Write to MH i2c: F0 00 00 A3 18 AA [00:15:16]Write i2c OK [00:15:16]MH_I2C_Read... [00:15:16]Read from MH i2c: F0 [00:15:16]MH_I2C_Read... [00:15:16]Read from MH i2c: F0 09 00 [00:15:16]MH_I2C_Read... [00:15:16]Read from MH i2c: F0 09 00 A3 18 00 96 FE 43 66 FC 21 6F 64 E0 [00:15:16]Malloc new data [00:15:16]Malloc new data [00:15:16]Malloc new data [00:15:16]Malloc new data [00:15:16]KKMCreateCloseShiftDocument OK [00:15:16]KKMSetCloseShiftData OK [00:15:16]ProcessDocumentItem done err = 0, tmpTLVsize=66 [00:15:16]tlvbuf is 00499470 [00:15:16]KKMLoadAndSignCloseShiftData [00:15:16]SAM_PROTO_ProcessDocument [00:15:16]wFMCommunicate request_size=9 [00:15:16]MH_SAM_APDU [00:15:16]CAPDU: 80 15 01 00 04 05 00 42 00 [00:15:16]Write to MH i2c: E2 0C 00 A4 18 80 15 01 00 04 00 05 00 42 00 00 00 8A [00:15:16]Write i2c OK [00:15:16]MH_I2C_Read... [00:15:16]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:15:16]Read from MH i2c: E2 [00:15:16]MH_I2C_Read... [00:15:16]Read from MH i2c: E2 03 00 [00:15:16]MH_I2C_Read... [00:15:16]Read from MH i2c: E2 03 00 A4 18 00 90 00 30 [00:15:16]RAPDU: 90 00 [00:15:16]wFMCommunicate OK [00:15:16]wFMCommunicate request_size=23 [00:15:16]MH_SAM_APDU [00:15:16]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:15:16]Write to MH i2c: E2 1A 00 A5 18 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 32 [00:15:16]Write i2c OK [00:15:16]MH_I2C_Read... [00:15:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:16]Read from MH i2c: E2 [00:15:16]MH_I2C_Read... [00:15:16]Read from MH i2c: E2 03 00 [00:15:16]MH_I2C_Read... [00:15:16]Read from MH i2c: E2 03 00 A5 18 00 90 00 31 [00:15:16]RAPDU: 90 00 [00:15:16]wFMCommunicate OK [00:15:16]wFMCommunicate request_size=25 [00:15:16]MH_SAM_APDU [00:15:16]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:15:16]Write to MH i2c: E2 1C 00 A6 18 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 01 [00:15:16]Write i2c OK [00:15:16]MH_I2C_Read... [00:15:16]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:16]Read from MH i2c: E2 [00:15:16]MH_I2C_Read... [00:15:16]Read from MH i2c: E2 03 00 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 03 00 A6 18 00 90 00 32 [00:15:17]RAPDU: 90 00 [00:15:17]wFMCommunicate OK [00:15:17]wFMCommunicate request_size=13 [00:15:17]MH_SAM_APDU [00:15:17]CAPDU: 80 15 02 00 08 F4 03 04 00 96 FE 43 66 [00:15:17]Write to MH i2c: E2 10 00 A7 18 80 15 02 00 08 00 F4 03 04 00 96 FE 43 66 00 00 87 [00:15:17]Write i2c OK [00:15:17]MH_I2C_Read... [00:15:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:17]Read from MH i2c: E2 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 03 00 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 03 00 A7 18 00 90 00 33 [00:15:17]RAPDU: 90 00 [00:15:17]wFMCommunicate OK [00:15:17]wFMCommunicate request_size=25 [00:15:17]MH_SAM_APDU [00:15:17]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:15:17]Write to MH i2c: E2 1C 00 A8 18 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 A4 [00:15:17]Write i2c OK [00:15:17]MH_I2C_Read... [00:15:17]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:17]Read from MH i2c: E2 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 03 00 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 03 00 A8 18 00 90 00 34 [00:15:17]RAPDU: 90 00 [00:15:17]wFMCommunicate OK [00:15:17]wFMCommunicate request_size=4 [00:15:17]MH_SAM_APDU [00:15:17]CAPDU: 80 15 03 00 [00:15:17]Write to MH i2c: E2 08 00 A9 18 80 15 03 00 00 00 00 00 42 [00:15:17]Write i2c OK [00:15:17]MH_I2C_Read... [00:15:17]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:15:17]Read from MH i2c: E2 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 FD 00 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 FD 00 A9 18 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 6D 06 01 00 0E 04 04 00 63 01 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 AA 04 AC 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 BB 00 00 00 B1 04 04 00 F2 8D A4 01 70 04 03 00 40 FF AB 72 04 03 00 B2 8E F8 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 D7 AA 2C 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 D1 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 F4 [00:15:17]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 6D 06 01 00 0E 04 04 00 63 01 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 AA 04 AC 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 BB 00 00 00 B1 04 04 00 F2 8D A4 01 70 04 03 00 40 FF AB 72 04 03 00 B2 8E F8 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 D7 AA 2C 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 D1 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:15:18]wFMCommunicate OK [00:15:18]SAM_PROTO_ProcessDocument answer len = 1267 [00:15:18]SAM_PROTO_ProcessDocument remain to read = 1019 [00:15:18]wFMCommunicate request_size=4 [00:15:18]MH_SAM_APDU [00:15:18]CAPDU: 80 17 00 00 [00:15:18]Write to MH i2c: E2 08 00 AA 18 80 17 00 00 00 00 00 00 42 [00:15:18]Write i2c OK [00:15:18]MH_I2C_Read... [00:15:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:18]Read from MH i2c: E2 [00:15:18]MH_I2C_Read... [00:15:18]Read from MH i2c: E2 FD 00 [00:15:18]MH_I2C_Read... [00:15:18]Read from MH i2c: E2 FD 00 AA 18 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 92 [00:15:18]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:15:18]wFMCommunicate OK [00:15:18]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:15:18]SAM_PROTO_ProcessDocument remain to read = 769 [00:15:18]wFMCommunicate request_size=4 [00:15:18]MH_SAM_APDU [00:15:18]CAPDU: 80 17 00 00 [00:15:18]Write to MH i2c: E2 08 00 AB 18 80 17 00 00 00 00 00 00 43 [00:15:18]Write i2c OK [00:15:18]MH_I2C_Read... [00:15:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:19]Read from MH i2c: E2 [00:15:19]MH_I2C_Read... [00:15:19]Read from MH i2c: E2 FD 00 [00:15:19]MH_I2C_Read... [00:15:19]Read from MH i2c: E2 FD 00 AB 18 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 A5 [00:15:19]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:15:19]wFMCommunicate OK [00:15:19]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:15:19]SAM_PROTO_ProcessDocument remain to read = 519 [00:15:19]wFMCommunicate request_size=4 [00:15:19]MH_SAM_APDU [00:15:19]CAPDU: 80 17 00 00 [00:15:19]Write to MH i2c: E2 08 00 AC 18 80 17 00 00 00 00 00 00 44 [00:15:19]Write i2c OK [00:15:19]MH_I2C_Read... [00:15:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:19]Read from MH i2c: E2 [00:15:19]MH_I2C_Read... [00:15:19]Read from MH i2c: E2 FD 00 [00:15:19]MH_I2C_Read... [00:15:19]Read from MH i2c: E2 FD 00 AC 18 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D5 [00:15:20]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:15:20]wFMCommunicate OK [00:15:20]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:15:20]SAM_PROTO_ProcessDocument remain to read = 269 [00:15:20]wFMCommunicate request_size=4 [00:15:20]MH_SAM_APDU [00:15:20]CAPDU: 80 17 00 00 [00:15:20]Write to MH i2c: E2 08 00 AD 18 80 17 00 00 00 00 00 00 45 [00:15:20]Write i2c OK [00:15:20]MH_I2C_Read... [00:15:20]OFD Sender: No OFD packet to send [00:15:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:20]Read from MH i2c: E2 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 FD 00 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 FD 00 AD 18 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 06 [00:15:20]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:15:21]wFMCommunicate OK [00:15:21]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:15:21]SAM_PROTO_ProcessDocument remain to read = 19 [00:15:21]wFMCommunicate request_size=4 [00:15:21]MH_SAM_APDU [00:15:21]CAPDU: 80 17 00 00 [00:15:21]Write to MH i2c: E2 08 00 AE 18 80 17 00 00 00 00 00 00 46 [00:15:21]Write i2c OK [00:15:21]MH_I2C_Read... [00:15:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 19! [00:15:21]Read from MH i2c: E2 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: E2 16 00 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: E2 16 00 AE 18 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 A9 2E ED 40 22 9F 90 00 4B [00:15:21]RAPDU: F6 03 01 00 06 F7 03 00 00 35 04 06 00 A9 2E ED 40 22 9F 90 00 [00:15:21]wFMCommunicate OK [00:15:21]SAM_PROTO_ProcessDocument received (without SW) 19 bytes [00:15:21]SAM_PROTO_ProcessDocument done [00:15:21]1209 (1) - 1.0 - номер версии ФФД [00:15:21]1041 (16) - 0000000000871829 - номер ФМ [00:15:21]1040 (4) - 67181 - номер ФД [00:15:21]1038 (4) - 355 - номер смены [00:15:21]1118 (4) - 187 - количество кассовых чеков за смену [00:15:21]1111 (4) - 189 - общее количество ФД за смену [00:15:21]1194 (1196) - счетчики итогов смены [00:15:21] 1134 (4) - 187 - количество чеков со всеми признаками расчетов [00:15:21] 1129 (157) - счетчики операций «приход» [00:15:21] 1135 (4) - 187 - количество чеков по признаку расчетов [00:15:21] 1201 (4) - 275614.58 - общая итоговая сумма в чеках [00:15:21] 1136 (3) - 112720.00 - итоговая сумма в чеках наличными [00:15:21] 1138 (3) - 162894.58 - итоговая сумма в чеках безналичными [00:15:21] 1024 (123) - суммы налогов [00:15:21] 1006 (9) - суммы НДС [00:15:21] 1010 (1) - 0% - код ставки НДС [00:15:21] 1011 (0) - 0.00 - сумма НДС по ставке [00:15:21] 1006 (12) - суммы НДС [00:15:21] 1010 (1) - 12% - код ставки НДС [00:15:21] 1011 (3) - 29273.19 - сумма НДС по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 0% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (12) - суммы НСП [00:15:21] 1014 (1) - 1% - код ставки НСП [00:15:21] 1015 (3) - 2439.21 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 2% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 3% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 5% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 0,50% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 1,50% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1130 (141) - счетчики операций «возврат прихода» [00:15:21] 1135 (4) - 0 - количество чеков по признаку расчетов [00:15:21] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:15:21] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:15:21] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:15:21] 1024 (117) - суммы налогов [00:15:21] 1006 (9) - суммы НДС [00:15:21] 1010 (1) - 0% - код ставки НДС [00:15:21] 1011 (0) - 0.00 - сумма НДС по ставке [00:15:21] 1006 (9) - суммы НДС [00:15:21] 1010 (1) - 12% - код ставки НДС [00:15:21] 1011 (0) - 0.00 - сумма НДС по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 0% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 1% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 2% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 3% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 5% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 0,50% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 1,50% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1131 (141) - счетчики операций «расход» [00:15:21] 1135 (4) - 0 - количество чеков по признаку расчетов [00:15:21] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:15:21] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:15:21] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:15:21] 1024 (117) - суммы налогов [00:15:21] 1006 (9) - суммы НДС [00:15:21] 1010 (1) - 0% - код ставки НДС [00:15:21] 1011 (0) - 0.00 - сумма НДС по ставке [00:15:21] 1006 (9) - суммы НДС [00:15:21] 1010 (1) - 12% - код ставки НДС [00:15:21] 1011 (0) - 0.00 - сумма НДС по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 0% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 1% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 2% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 3% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 5% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 0,50% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 1,50% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1132 (141) - счетчики операций «возврат расхода» [00:15:21] 1135 (4) - 0 - количество чеков по признаку расчетов [00:15:21] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:15:21] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:15:21] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:15:21] 1024 (117) - суммы налогов [00:15:21] 1006 (9) - суммы НДС [00:15:21] 1010 (1) - 0% - код ставки НДС [00:15:21] 1011 (0) - 0.00 - сумма НДС по ставке [00:15:21] 1006 (9) - суммы НДС [00:15:21] 1010 (1) - 12% - код ставки НДС [00:15:21] 1011 (0) - 0.00 - сумма НДС по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 0% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 1% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 2% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 3% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 5% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 0,50% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1007 (9) - суммы НСП [00:15:21] 1014 (1) - 1,50% - код ставки НСП [00:15:21] 1015 (0) - 0.00 - сумма НСП по ставке [00:15:21] 1133 (588) - - счетчики коррекции - не используются [00:15:21]1077 (6) - 186019013993119 - ФПД [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1209 (04B9) [00:15:21]Malloc new data [00:15:21]Processing tag 1041 (0411) [00:15:21]Processing tag 1040 (0410) [00:15:21]Malloc new data [00:15:21]Processing tag 1038 (040E) [00:15:21]Malloc new data [00:15:21]Processing tag 1118 (045E) [00:15:21]Malloc new data [00:15:21]Processing tag 1111 (0457) [00:15:21]Malloc new data [00:15:21]Processing tag 1194 (04AA) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1134 (046E) [00:15:21]Malloc new data [00:15:21]Processing tag 1129 (0469) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1135 (046F) [00:15:21]Malloc new data [00:15:21]Processing tag 1201 (04B1) [00:15:21]Malloc new data [00:15:21]Processing tag 1136 (0470) [00:15:21]Malloc new data [00:15:21]Processing tag 1138 (0472) [00:15:21]Malloc new data [00:15:21]Processing tag 1024 (0400) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1006 (03EE) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1010 (03F2) [00:15:21]Malloc new data [00:15:21]Processing tag 1011 (03F3) [00:15:21]Malloc new data [00:15:21]SetTLVBufToDocument err=0 [00:15:21]Processing tag 1006 (03EE) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1010 (03F2) [00:15:21]Malloc new data [00:15:21]Processing tag 1011 (03F3) [00:15:21]Malloc new data [00:15:21]SetTLVBufToDocument err=0 [00:15:21]Processing tag 1007 (03EF) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1014 (03F6) [00:15:21]Malloc new data [00:15:21]Processing tag 1015 (03F7) [00:15:21]Malloc new data [00:15:21]SetTLVBufToDocument err=0 [00:15:21]Processing tag 1007 (03EF) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1014 (03F6) [00:15:21]Malloc new data [00:15:21]Processing tag 1015 (03F7) [00:15:21]Malloc new data [00:15:21]SetTLVBufToDocument err=0 [00:15:21]Processing tag 1007 (03EF) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1014 (03F6) [00:15:21]Malloc new data [00:15:21]Processing tag 1015 (03F7) [00:15:21]Malloc new data [00:15:21]SetTLVBufToDocument err=0 [00:15:21]Processing tag 1007 (03EF) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1014 (03F6) [00:15:21]Malloc new data [00:15:21]Processing tag 1015 (03F7) [00:15:21]Malloc new data [00:15:21]SetTLVBufToDocument err=0 [00:15:21]Processing tag 1007 (03EF) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1014 (03F6) [00:15:21]Malloc new data [00:15:21]Processing tag 1015 (03F7) [00:15:21]Malloc new data [00:15:21]SetTLVBufToDocument err=0 [00:15:21]Processing tag 1007 (03EF) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1014 (03F6) [00:15:21]Malloc new data [00:15:21]Processing tag 1015 (03F7) [00:15:21]Malloc new data [00:15:21]SetTLVBufToDocument err=0 [00:15:21]Processing tag 1007 (03EF) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1014 (03F6) [00:15:21]Malloc new data [00:15:21]Processing tag 1015 (03F7) [00:15:21]Malloc new data [00:15:21]SetTLVBufToDocument err=0 [00:15:21]SetTLVBufToDocument err=0 [00:15:21]SetTLVBufToDocument err=0 [00:15:21]Processing tag 1130 (046A) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1135 (046F) [00:15:21]Malloc new data [00:15:21]Processing tag 1201 (04B1) [00:15:21]Malloc new data [00:15:21]Processing tag 1136 (0470) [00:15:21]Malloc new data [00:15:21]Processing tag 1138 (0472) [00:15:21]Malloc new data [00:15:21]Processing tag 1024 (0400) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1006 (03EE) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1010 (03F2) [00:15:21]Malloc new data [00:15:21]Processing tag 1011 (03F3) [00:15:21]Malloc new data [00:15:21]SetTLVBufToDocument err=0 [00:15:21]Processing tag 1006 (03EE) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1010 (03F2) [00:15:21]Malloc new data [00:15:21]Processing tag 1011 (03F3) [00:15:21]Malloc new data [00:15:21]SetTLVBufToDocument err=0 [00:15:21]Processing tag 1007 (03EF) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1014 (03F6) [00:15:21]Malloc new data [00:15:21]Processing tag 1015 (03F7) [00:15:21]Malloc new data [00:15:21]SetTLVBufToDocument err=0 [00:15:21]Processing tag 1007 (03EF) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1014 (03F6) [00:15:21]Malloc new data [00:15:21]Processing tag 1015 (03F7) [00:15:21]Malloc new data [00:15:21]SetTLVBufToDocument err=0 [00:15:21]Processing tag 1007 (03EF) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1014 (03F6) [00:15:21]Malloc new data [00:15:21]Processing tag 1015 (03F7) [00:15:21]Malloc new data [00:15:21]SetTLVBufToDocument err=0 [00:15:21]Processing tag 1007 (03EF) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1014 (03F6) [00:15:21]Malloc new data [00:15:21]Processing tag 1015 (03F7) [00:15:21]Malloc new data [00:15:21]SetTLVBufToDocument err=0 [00:15:21]Processing tag 1007 (03EF) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1014 (03F6) [00:15:21]Malloc new data [00:15:21]Processing tag 1015 (03F7) [00:15:21]Malloc new data [00:15:21]SetTLVBufToDocument err=0 [00:15:21]Processing tag 1007 (03EF) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1014 (03F6) [00:15:21]Malloc new data [00:15:21]Processing tag 1015 (03F7) [00:15:21]Malloc new data [00:15:21]SetTLVBufToDocument err=0 [00:15:21]Processing tag 1007 (03EF) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1014 (03F6) [00:15:21]Malloc new data [00:15:21]Processing tag 1015 (03F7) [00:15:21]Malloc new data [00:15:21]SetTLVBufToDocument err=0 [00:15:21]SetTLVBufToDocument err=0 [00:15:21]SetTLVBufToDocument err=0 [00:15:21]Processing tag 1131 (046B) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1135 (046F) [00:15:21]Malloc new data [00:15:21]Processing tag 1201 (04B1) [00:15:21]Malloc new data [00:15:21]Processing tag 1136 (0470) [00:15:21]Malloc new data [00:15:21]Processing tag 1138 (0472) [00:15:21]Malloc new data [00:15:21]Processing tag 1024 (0400) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1006 (03EE) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1010 (03F2) [00:15:21]Malloc new data [00:15:21]Processing tag 1011 (03F3) [00:15:21]Malloc new data [00:15:21]SetTLVBufToDocument err=0 [00:15:21]Processing tag 1006 (03EE) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1010 (03F2) [00:15:21]Malloc new data [00:15:21]Processing tag 1011 (03F3) [00:15:21]Malloc new data [00:15:21]SetTLVBufToDocument err=0 [00:15:21]Processing tag 1007 (03EF) [00:15:21]Load OK [00:15:21]SetTLVBufToDocument [00:15:21]Processing tag 1014 (03F6) [00:15:21]Malloc new data [00:15:21]Processing tag 1015 (03F7) [00:15:21]Malloc new data [00:15:21]SetTLVBufToDocument err=0 [00:15:21]Processing tag 1007 (03EF) [00:15:21]Load OK [00:15:22]SetTLVBufToDocument [00:15:22]Processing tag 1014 (03F6) [00:15:22]Malloc new data [00:15:22]Processing tag 1015 (03F7) [00:15:22]Malloc new data [00:15:22]SetTLVBufToDocument err=0 [00:15:22]Processing tag 1007 (03EF) [00:15:22]Load OK [00:15:22]SetTLVBufToDocument [00:15:22]Processing tag 1014 (03F6) [00:15:22]Malloc new data [00:15:22]Processing tag 1015 (03F7) [00:15:22]Malloc new data [00:15:22]SetTLVBufToDocument err=0 [00:15:22]Processing tag 1007 (03EF) [00:15:22]Load OK [00:15:22]SetTLVBufToDocument [00:15:22]Processing tag 1014 (03F6) [00:15:22]Malloc new data [00:15:22]Processing tag 1015 (03F7) [00:15:22]Malloc new data [00:15:22]SetTLVBufToDocument err=0 [00:15:22]Processing tag 1007 (03EF) [00:15:22]Load OK [00:15:22]SetTLVBufToDocument [00:15:22]Processing tag 1014 (03F6) [00:15:22]Malloc new data [00:15:22]Processing tag 1015 (03F7) [00:15:22]Malloc new data [00:15:22]SetTLVBufToDocument err=0 [00:15:22]Processing tag 1007 (03EF) [00:15:22]Load OK [00:15:22]SetTLVBufToDocument [00:15:22]Processing tag 1014 (03F6) [00:15:22]Malloc new data [00:15:22]Processing tag 1015 (03F7) [00:15:22]Malloc new data [00:15:22]SetTLVBufToDocument err=0 [00:15:22]Processing tag 1007 (03EF) [00:15:22]Load OK [00:15:22]SetTLVBufToDocument [00:15:22]Processing tag 1014 (03F6) [00:15:22]Malloc new data [00:15:22]Processing tag 1015 (03F7) [00:15:22]Malloc new data [00:15:22]SetTLVBufToDocument err=0 [00:15:22]SetTLVBufToDocument err=0 [00:15:22]SetTLVBufToDocument err=0 [00:15:22]Processing tag 1132 (046C) [00:15:22]Load OK [00:15:22]SetTLVBufToDocument [00:15:22]Processing tag 1135 (046F) [00:15:22]Malloc new data [00:15:22]Processing tag 1201 (04B1) [00:15:22]Malloc new data [00:15:22]Processing tag 1136 (0470) [00:15:22]Malloc new data [00:15:22]Processing tag 1138 (0472) [00:15:22]Malloc new data [00:15:22]Processing tag 1024 (0400) [00:15:22]Load OK [00:15:22]SetTLVBufToDocument [00:15:22]Processing tag 1006 (03EE) [00:15:22]Load OK [00:15:22]SetTLVBufToDocument [00:15:22]Processing tag 1010 (03F2) [00:15:22]Malloc new data [00:15:22]Processing tag 1011 (03F3) [00:15:22]Malloc new data [00:15:22]SetTLVBufToDocument err=0 [00:15:22]Processing tag 1006 (03EE) [00:15:22]Load OK [00:15:22]SetTLVBufToDocument [00:15:22]Processing tag 1010 (03F2) [00:15:22]Malloc new data [00:15:22]Processing tag 1011 (03F3) [00:15:22]Malloc new data [00:15:22]SetTLVBufToDocument err=0 [00:15:22]Processing tag 1007 (03EF) [00:15:22]Load OK [00:15:22]SetTLVBufToDocument [00:15:22]Processing tag 1014 (03F6) [00:15:22]Malloc new data [00:15:22]Processing tag 1015 (03F7) [00:15:22]Malloc new data [00:15:22]SetTLVBufToDocument err=0 [00:15:22]Processing tag 1007 (03EF) [00:15:22]Load OK [00:15:22]SetTLVBufToDocument [00:15:22]Processing tag 1014 (03F6) [00:15:22]Malloc new data [00:15:22]Processing tag 1015 (03F7) [00:15:22]Malloc new data [00:15:22]SetTLVBufToDocument err=0 [00:15:22]Processing tag 1007 (03EF) [00:15:22]Load OK [00:15:22]SetTLVBufToDocument [00:15:22]Processing tag 1014 (03F6) [00:15:22]Malloc new data [00:15:22]Processing tag 1015 (03F7) [00:15:22]Malloc new data [00:15:22]SetTLVBufToDocument err=0 [00:15:22]Processing tag 1007 (03EF) [00:15:22]Load OK [00:15:22]SetTLVBufToDocument [00:15:22]Processing tag 1014 (03F6) [00:15:22]Malloc new data [00:15:22]Processing tag 1015 (03F7) [00:15:22]Malloc new data [00:15:22]SetTLVBufToDocument err=0 [00:15:22]Processing tag 1007 (03EF) [00:15:22]Load OK [00:15:22]SetTLVBufToDocument [00:15:22]Processing tag 1014 (03F6) [00:15:22]Malloc new data [00:15:22]Processing tag 1015 (03F7) [00:15:22]Malloc new data [00:15:22]SetTLVBufToDocument err=0 [00:15:22]Processing tag 1007 (03EF) [00:15:22]Load OK [00:15:22]SetTLVBufToDocument [00:15:22]Processing tag 1014 (03F6) [00:15:22]Malloc new data [00:15:22]Processing tag 1015 (03F7) [00:15:22]Malloc new data [00:15:22]SetTLVBufToDocument err=0 [00:15:22]Processing tag 1007 (03EF) [00:15:22]Load OK [00:15:22]SetTLVBufToDocument [00:15:22]Processing tag 1014 (03F6) [00:15:22]Malloc new data [00:15:22]Processing tag 1015 (03F7) [00:15:22]Malloc new data [00:15:22]SetTLVBufToDocument err=0 [00:15:22]SetTLVBufToDocument err=0 [00:15:22]SetTLVBufToDocument err=0 [00:15:22]Processing tag 1133 (046D) [00:15:22]Malloc new data [00:15:22]SetTLVBufToDocument err=0 [00:15:22]Processing tag 1077 (0435) [00:15:22]Malloc new data [00:15:22]SetTLVBufToDocument err=0 [00:15:22]Malloc new data [00:15:22]SAM_PROTO_GetFMData [00:15:22]wFMCommunicate request_size=4 [00:15:22]MH_SAM_APDU [00:15:22]CAPDU: 80 13 03 00 [00:15:22]Write to MH i2c: E2 08 00 AF 18 80 13 03 00 00 00 00 00 46 [00:15:22]Write i2c OK [00:15:22]MH_I2C_Read... [00:15:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:15:22]Read from MH i2c: E2 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: E2 FD 00 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: E2 FD 00 AF 18 00 C6 04 85 04 C2 04 6E 04 04 00 A6 03 01 00 69 04 A3 00 6F 04 04 00 01 03 01 00 B1 04 05 00 9E B8 0F 19 03 70 04 05 00 DC 65 C5 BE 02 72 04 04 00 C2 52 4A 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8E FF 3A 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 33 D6 04 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 BA [00:15:22]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 A6 03 01 00 69 04 A3 00 6F 04 04 00 01 03 01 00 B1 04 05 00 9E B8 0F 19 03 70 04 05 00 DC 65 C5 BE 02 72 04 04 00 C2 52 4A 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8E FF 3A 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 33 D6 04 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 [00:15:23]wFMCommunicate OK [00:15:23]wFMCommunicate request_size=4 [00:15:23]MH_SAM_APDU [00:15:23]CAPDU: 80 17 00 00 [00:15:23]Write to MH i2c: E2 08 00 B0 18 80 17 00 00 00 00 00 00 48 [00:15:23]Write i2c OK [00:15:23]MH_I2C_Read... [00:15:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:23]Read from MH i2c: E2 [00:15:23]MH_I2C_Read... [00:15:23]Read from MH i2c: E2 FD 00 [00:15:23]MH_I2C_Read... [00:15:23]Read from MH i2c: E2 FD 00 B0 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 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 F6 [00:15:23]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:15:23]wFMCommunicate OK [00:15:23]wFMCommunicate request_size=4 [00:15:23]MH_SAM_APDU [00:15:23]CAPDU: 80 17 00 00 [00:15:23]Write to MH i2c: E2 08 00 B1 18 80 17 00 00 00 00 00 00 49 [00:15:23]Write i2c OK [00:15:23]MH_I2C_Read... [00:15:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:24]Read from MH i2c: E2 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 FD 00 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 FD 00 B1 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 70 [00:15:24]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:15:24]wFMCommunicate OK [00:15:24]wFMCommunicate request_size=4 [00:15:24]MH_SAM_APDU [00:15:24]CAPDU: 80 17 00 00 [00:15:24]Write to MH i2c: E2 08 00 B2 18 80 17 00 00 00 00 00 00 4A [00:15:24]Write i2c OK [00:15:24]MH_I2C_Read... [00:15:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:24]Read from MH i2c: E2 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 FD 00 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 FD 00 B2 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 C5 [00:15:25]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:15:25]wFMCommunicate OK [00:15:25]wFMCommunicate request_size=4 [00:15:25]MH_SAM_APDU [00:15:25]CAPDU: 80 17 00 00 [00:15:25]Write to MH i2c: E2 08 00 B3 18 80 17 00 00 00 00 00 00 4B [00:15:25]Write i2c OK [00:15:25]MH_I2C_Read... [00:15:25]OFD Sender: No OFD packet to send [00:15:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:15:25]Read from MH i2c: E2 [00:15:25]MH_I2C_Read... [00:15:25]Read from MH i2c: E2 E3 00 [00:15:25]MH_I2C_Read... [00:15:25]Read from MH i2c: E2 E3 00 B3 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 2A [00:15:25]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:15:26]wFMCommunicate OK [00:15:26]SAM_PROTO_GetFMData done [00:15:26]Malloc new data [00:15:26]Malloc new data [00:15:26]Malloc new data [00:15:26]Malloc new data [00:15:26]KKMLoadAndSignCloseShiftData err=0 [00:15:26]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Адишов И. 15.05.2024 00:15 Смена: 355 РНМ: 0000000000091845 ЗНМ: 0300000119 СНО: Общий режим Чеков за смену: 187 ФД за смену: 189 Всего чеков: 187 ИТОГИ ПРИХОД Чеков: 187 Общий итог: 275614.58 Итого наличными: 112720.00 Итого безнал.: 162894.58 НДС 0% : 0.00 НДС 12% : 29273.19 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2439.21 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 112720.00 НС Приход: 133053625.90 НС Возвр.Прихода: 37024060.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 67181 ФМ: 0000000000871829 ФПД: 186019013993119 [00:15:26]StoreToDocumentArchive [00:15:26]shift 355 fd 67181 [00:15:26]save to /storage/0355/doc_00067181 [00:15:26]save last doc name /storage/0355/doc_00067181 to /storage/kkm_last_doc_name [00:15:26]save OK [00:15:26]Clear old archive folders... [00:15:26]Remove dir /storage/0266 [00:15:26]opendir ok [00:15:26]file . [00:15:26]file .. [00:15:26]file doc_1715732094 [00:15:26]remove file /storage/0266/doc_1715732094 [00:15:26]remove dir /storage/0266 [00:15:26]NVStorageSaveData kkm_registers [00:15:26]File name is /storage/kkm_registers [00:15:26]Write 24 bytes [00:15:26]NVStorageSaveData done [00:15:26]NVStorageSaveData kkm_registers [00:15:26]File name is /storage/kkm_registers [00:15:26]Write 24 bytes [00:15:26]NVStorageSaveData done [00:15:26]ProcessDocumentItem done err = 0, tmpTLVsize=1376 [00:15:26]tlvbuf is 004E9E20 [00:15:26]SAM_PROTO_ClearQueue [00:15:26]wFMCommunicate request_size=4 [00:15:26]MH_SAM_APDU [00:15:26]CAPDU: 80 09 00 00 [00:15:26]Write to MH i2c: E2 08 00 B4 18 80 09 00 00 00 00 00 00 3E [00:15:26]Write i2c OK [00:15:26]MH_I2C_Read... [00:15:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:15:26]Read from MH i2c: E2 [00:15:26]MH_I2C_Read... [00:15:26]Read from MH i2c: E2 03 00 [00:15:26]MH_I2C_Read... [00:15:26]Read from MH i2c: E2 03 00 B4 18 00 90 00 40 [00:15:26]RAPDU: 90 00 [00:15:26]wFMCommunicate OK [00:15:26]SAM_PROTO_ClearQueue done [00:15:26]KKMCreateOFDPacket [00:15:26]OFDProtocolAddRootSTLVToBuf [00:15:26]FM_MakeSignedData [00:15:26]FM_MakeSignedData [00:15:26]SAM_PROTO_SignData [00:15:26]wFMCommunicate request_size=4 [00:15:26]MH_SAM_APDU [00:15:26]CAPDU: 80 0D 01 02 [00:15:26]Write to MH i2c: E2 08 00 B5 18 80 0D 01 02 00 00 00 00 46 [00:15:26]Write i2c OK [00:15:26]MH_I2C_Read... [00:15:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:15:26]Read from MH i2c: E2 [00:15:26]MH_I2C_Read... [00:15:26]Read from MH i2c: E2 03 00 [00:15:26]MH_I2C_Read... [00:15:26]Read from MH i2c: E2 03 00 B5 18 00 90 00 41 [00:15:26]RAPDU: 90 00 [00:15:26]wFMCommunicate OK [00:15:26]wFMCommunicate request_size=255 [00:15:26]MH_SAM_APDU [00:15:26]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 96 FE 43 66 0E 04 04 00 63 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 BB 00 00 00 57 04 04 00 BD 00 00 00 AA 04 D7 04 6E 04 04 00 BB 00 00 00 69 04 A4 00 6F 04 04 00 BB 00 00 00 B1 04 04 00 F2 8D A4 01 70 04 03 00 40 FF AB 72 04 03 00 B2 8E F8 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 D7 AA 2C 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:15:26]Write to MH i2c: E2 02 01 B6 18 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 96 FE 43 66 0E 04 04 00 63 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 BB 00 00 00 57 04 04 00 BD 00 00 00 AA 04 D7 04 6E 04 04 00 BB 00 00 00 69 04 A4 00 6F 04 04 00 BB 00 00 00 B1 04 04 00 F2 8D A4 01 70 04 03 00 40 FF AB 72 04 03 00 B2 8E F8 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 D7 AA 2C 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 A7 [00:15:26]Write i2c OK [00:15:26]MH_I2C_Read... [00:15:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:27]Read from MH i2c: E2 [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: E2 03 00 [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: E2 03 00 B6 18 00 90 00 42 [00:15:27]RAPDU: 90 00 [00:15:27]wFMCommunicate OK [00:15:27]wFMCommunicate request_size=255 [00:15:27]MH_SAM_APDU [00:15:27]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 D1 B8 03 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:15:27]Write to MH i2c: E2 02 01 B7 18 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 D1 B8 03 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 49 [00:15:27]Write i2c OK [00:15:27]MH_I2C_Read... [00:15:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:27]Read from MH i2c: E2 [00:15:27]MH_I2C_Read... [00:15:27]Read from MH i2c: E2 03 00 [00:15:28]MH_I2C_Read... [00:15:28]Read from MH i2c: E2 03 00 B7 18 00 90 00 43 [00:15:28]RAPDU: 90 00 [00:15:28]wFMCommunicate OK [00:15:28]wFMCommunicate request_size=255 [00:15:28]MH_SAM_APDU [00:15:28]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:15:28]Write to MH i2c: E2 02 01 B8 18 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 1A [00:15:28]Write i2c OK [00:15:28]MH_I2C_Read... [00:15:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:28]Read from MH i2c: E2 [00:15:28]MH_I2C_Read... [00:15:28]Read from MH i2c: E2 03 00 [00:15:28]MH_I2C_Read... [00:15:28]Read from MH i2c: E2 03 00 B8 18 00 90 00 44 [00:15:28]RAPDU: 90 00 [00:15:28]wFMCommunicate OK [00:15:28]wFMCommunicate request_size=255 [00:15:28]MH_SAM_APDU [00:15:28]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:15:29]Write to MH i2c: E2 02 01 B9 18 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 10 [00:15:29]Write i2c OK [00:15:29]MH_I2C_Read... [00:15:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:29]Read from MH i2c: E2 [00:15:29]MH_I2C_Read... [00:15:29]Read from MH i2c: E2 03 00 [00:15:29]MH_I2C_Read... [00:15:29]Read from MH i2c: E2 03 00 B9 18 00 90 00 45 [00:15:29]RAPDU: 90 00 [00:15:29]wFMCommunicate OK [00:15:29]wFMCommunicate request_size=255 [00:15:29]MH_SAM_APDU [00:15:29]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:15:30]Write to MH i2c: E2 02 01 BA 18 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 D2 [00:15:30]Write i2c OK [00:15:30]MH_I2C_Read... [00:15:30]OFD Sender: No OFD packet to send [00:15:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:30]Read from MH i2c: E2 [00:15:30]MH_I2C_Read... [00:15:30]Read from MH i2c: E2 03 00 [00:15:30]MH_I2C_Read... [00:15:30]Read from MH i2c: E2 03 00 BA 18 00 90 00 46 [00:15:30]RAPDU: 90 00 [00:15:30]wFMCommunicate OK [00:15:30]wFMCommunicate request_size=135 [00:15:30]MH_SAM_APDU [00:15:30]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 6D 06 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 A9 2E ED 40 22 9F [00:15:30]Write to MH i2c: E2 8A 00 BB 18 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 6D 06 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 A9 2E ED 40 22 9F 00 00 C7 [00:15:30]Write i2c OK [00:15:30]MH_I2C_Read... [00:15:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:31]Read from MH i2c: E2 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 03 00 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 03 00 BB 18 00 90 00 47 [00:15:31]RAPDU: 90 00 [00:15:31]wFMCommunicate OK [00:15:31]wFMCommunicate request_size=4 [00:15:31]MH_SAM_APDU [00:15:31]CAPDU: 80 0D 03 02 [00:15:31]Write to MH i2c: E2 08 00 BC 18 80 0D 03 02 00 00 00 00 4F [00:15:31]Write i2c OK [00:15:31]MH_I2C_Read... [00:15:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:15:31]Read from MH i2c: E2 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 0B 00 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 0B 00 BC 18 00 62 8A 7C 27 4D 85 67 2E 90 00 46 [00:15:31]RAPDU: 62 8A 7C 27 4D 85 67 2E 90 00 [00:15:31]wFMCommunicate OK [00:15:31]SAM_PROTO_SignData done [00:15:31]FM_MakeSignedData done [00:15:31]CreateOFDProtocolMessage [00:15:31]wFMCommunicate request_size=4 [00:15:31]MH_SAM_APDU [00:15:31]CAPDU: 80 11 00 00 [00:15:31]Write to MH i2c: E2 08 00 BD 18 80 11 00 00 00 00 00 00 4F [00:15:31]Write i2c OK [00:15:31]MH_I2C_Read... [00:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:31]Read from MH i2c: E2 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 17 00 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 17 00 BD 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 A5 [00:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:15:31]wFMCommunicate OK [00:15:31]CreateOFDProtocolMessage done [00:15:31]OFDSenderStorePacket 67181 [00:15:31]StoreOFDPacket docnum=67181 [00:15: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 74 05 00 00 26 F8 6C 05 90 39 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 96 FE 43 66 0E 04 04 00 63 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 BB 00 00 00 57 04 04 00 BD 00 00 00 AA 04 D7 04 6E 04 04 00 BB 00 00 00 69 04 A4 00 6F 04 04 00 BB 00 00 00 B1 04 04 00 F2 8D A4 01 70 04 03 00 40 FF AB 72 04 03 00 B2 8E F8 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 D7 AA 2C 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 D1 B8 03 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 6D 06 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 A9 2E ED 40 22 9F 62 8A 7C 27 4D 85 67 2E [00:15:31]CheckFolder [00:15:31]dirname=/storage/ofd_packets [00:15:31]CheckFolder done [00:15:31]ProducePacketName [00:15:31]name=ofd_packets/00067181 [00:15:31]NVStorageSaveData ofd_packets/00067181 [00:15:31]File name is /storage/ofd_packets/00067181 [00:15:31]Write 1426 bytes [00:15:31]NVStorageSaveData done [00:15:31]OFDSenderStorePacket done [00:15:31]KKMCreateOFDPacket done [00:15:31]NVStorageSaveData kkm_last_timestamp [00:15:31]File name is /storage/kkm_last_timestamp [00:15:31]Write 4 bytes [00:15:31]NVStorageSaveData done [00:15:31]ExternCall_PrintAddStr [00:15:31]wPrintStart [00:15:31]Write to MH i2c: 01 00 00 BE 18 D6 [00:15:31]Write i2c OK [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: 01 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: 01 07 00 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: 01 07 00 BE 18 00 00 00 00 00 FF 0F EB [00:15:31]RasterBufferAndPrint [00:15:31]line Отчет о закрытии смены [00:15:31]line ФФД: 1.0 [00:15:31]line ИНН: 02508201610067 [00:15:31]line Кассир: Адишов И. [00:15:31]line 15.05.2024 00:15 [00:15:31]line Смена: 355 [00:15:31]line РНМ: 0000000000091845 [00:15:31]line ЗНМ: 0300000119 [00:15:31]line СНО: Общий режим [00:15:31]line Чеков за смену: 187 [00:15:31]line ФД за смену: 189 [00:15:31]line Всего чеков: 187 [00:15:31]line ИТОГИ ПРИХОД [00:15:31]line Чеков: 187 [00:15:31]line Общий итог: 275614.58 [00:15:31]line Итого наличными: 112720.00 [00:15:31]line Итого безнал.: 162894.58 [00:15:31]line НДС 0% : 0.00 [00:15:31]line НДС 12% : 29273.19 [00:15:31]line НСП 0% : 0.00 [00:15:31]line НСП 1,50% : 0.00 [00:15:31]line НСП 0,50% : 0.00 [00:15:31]line НСП 5% : 0.00 [00:15:31]line НСП 3% : 0.00 [00:15:31]line НСП 2% : 0.00 [00:15:31]line НСП 1% : 2439.21 [00:15:31]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:15:31]line Чеков: 0 [00:15:31]line Общий итог: 0.00 [00:15:31]line Итого наличными: 0.00 [00:15:31]line Итого безнал.: 0.00 [00:15:31]line НДС 0% : 0.00 [00:15:31]line НДС 12% : 0.00 [00:15:31]line НСП 0% : 0.00 [00:15:31]line НСП 1,50% : 0.00 [00:15:31]line НСП 0,50% : 0.00 [00:15:31]line НСП 5% : 0.00 [00:15:31]line НСП 3% : 0.00 [00:15:31]line НСП 2% : 0.00 [00:15:31]line НСП 1% : 0.00 [00:15:31]line ИТОГИ РАСХОД [00:15:31]line Чеков: 0 [00:15:31]line Общий итог: 0.00 [00:15:31]line Итого наличными: 0.00 [00:15:31]line Итого безнал.: 0.00 [00:15:31]line НДС 0% : 0.00 [00:15:31]line НДС 12% : 0.00 [00:15:31]line НСП 0% : 0.00 [00:15:31]line НСП 1,50% : 0.00 [00:15:31]line НСП 0,50% : 0.00 [00:15:31]line НСП 5% : 0.00 [00:15:31]line НСП 3% : 0.00 [00:15:31]line НСП 2% : 0.00 [00:15:31]line НСП 1% : 0.00 [00:15:31]line ИТОГИ ВОЗВРАТ РАСХОДА [00:15:31]OFD Sender: Processing packet 67181 [packets to send 35, broken 34] [00:15:31]ProducePacketName [00:15:31]name=ofd_packets/00067181 [00:15:31]OFD Sender: To server: pG, [00:15:31]CommunicateWithHost lk.salyk.kg:30040 [00:15:31]ConnectInit lk.salyk.kg [00:15:31]line Чеков: 0 [00:15:31]line Общий итог: 0.00 [00:15:31]line Итого наличными: 0.00 [00:15:31]line Итого безнал.: 0.00 [00:15:31]line НДС 0% : 0.00 [00:15:31]line НДС 12% : 0.00 [00:15:31]line НСП 0% : 0.00 [00:15:31]line НСП 1,50% : 0.00 [00:15:31]line НСП 0,50% : 0.00 [00:15:31]line НСП 5% : 0.00 [00:15:31]line НСП 3% : 0.00 [00:15:31]line НСП 2% : 0.00 [00:15:31]line НСП 1% : 0.00 [00:15:31]line Сумма внесений: 0.00 [00:15:31]line Сумма выплат: 0.00 [00:15:31]line Нал. в кассе: 112720.00 [00:15:31]line НС Приход: 133053625.90 [00:15:31]line НС Возвр.Прихода: 37024060.00 [00:15:31]line НС Расход: 0.00 [00:15:31]line НС Возвр.Расхода: 0.00 [00:15:31]line ФД: 67181 [00:15:31]line ФМ: 0000000000871829 [00:15:31]line ФПД: 186019013993119 [00:15:31]written 0, free lines is 4095 [00:15:31]Connected sock=10 [00:15: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 74 05 00 00 26 F8 6C 05 90 39 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 96 FE 43 66 0E 04 04 00 63 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 BB 00 00 00 57 04 04 00 BD 00 00 00 AA 04 D7 04 6E 04 04 00 BB 00 00 00 69 04 A4 00 6F 04 04 00 BB 00 00 00 B1 04 04 00 F2 8D A4 01 70 04 03 00 40 FF AB 72 04 03 00 B2 8E F8 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 D7 AA 2C 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 D1 B8 03 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 Write to MH i2c: 01 00 00 00 00 EF 0F 03 19 0A 00 F6 03 01 00 06 F7 03 01 28 00 [00:15:32]00 EF 03 0A 00 F6 03 Write i2c OK [00:15:32]01 MH_I2C_Read... [00:15:32]00 Read from MH i2c: 05 01 F7 [00:15:32]MH_I2C_Read... [00:15:32]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 Read from MH i2c: 00 01 F2 07 03 00 01 [00:15:33]00 00 F3 03 00 00 EE 03 09 00 MH_I2C_Read... [00:15:33]F2 Read from MH i2c: 03 01 01 07 00 00 0F 01 19 F3 00 03 00 00 00 00 EF 03 09 00 F6 03 01 00 00 00 F7 03 00 00 66 00 0A EF 9F 03 [00:15:33]09 RasterBufferAndPrint [00:15:33]00 line [00:15:33]F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 line [00:15:33]00 line [00:15:33]F6 line [00:15:33]03 line [00:15:33]01 00 04 F7 03 00 written 0, free lines is 3317 [00:15:33]00 EF 03 09 00 F6 03 01 00 05 F7 MH_Cut [00:15:33]03 Write to MH i2c: 00 00 D1 EF 01 03 00 09 16 00 19 F6 01 03 01 [00:15:33]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 Write i2c OK [00:15:33]00 MH_I2C_Read... [00:15:33]00 Read from MH i2c: EF D1 03 [00:15:33]09 00 F6 03 01 00 00 F7 03 00 MH_I2C_Read... [00:15:33]00 Read from MH i2c: EF D1 03 01 09 00 00 [00:15:33]F6 MH_I2C_Read... [00:15:33]03 Read from MH i2c: 01 D1 00 01 01 00 F7 16 03 19 00 00 00 [00:15:33]Write to MH i2c: 01 00 00 17 19 00 30 EF [00:15:33]03 Write i2c OK [00:15:33]09 MH_I2C_Read... [00:15:33]00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6D 06 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 A9 2E ED 40 22 9F 62 8A 7C 27 4D 85 67 2E [00:15:33]*** Cut start [00:15:33]*** Purtial cut [00:15:33]*** Stage 1: CUTSNS_PIN = 1 [00: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 AA 26 47 00 EA 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 6D 06 01 00 F4 03 04 00 84 A6 43 66 B6 04 01 00 00 D6 B6 5C 41 08 8D 29 E3 [00:15:34]CommunicateWithHost err = 0 [00:15:34]CheckOFDResponse [00:15:34]1017 (14) - 77093643461234 [00:15:34]1041 (16) - 0000000000871829 [00:15:34]1040 (4) - 67181 [00:15:34]1012 (4) - 14.05.2024 17:59 [00:15:34]1206 (1) - 0 [00:15:34]OFD Sender: Remove packet 67181 [00:15:34]ProducePacketName [00:15:34]name=ofd_packets/00067181 [00:15:34]NVStorageDeleteData [00:15:34]Read from MH i2c: 01 [00:15:34]MH_I2C_Read... [00:15:34]*** Stop cut motor [00:15:34]*** Cut end [00:15:34]Read from MH i2c: 01 07 00 [00:15:34]MH_I2C_Read... [00:15:34]Read from MH i2c: 01 07 00 17 19 00 00 00 00 00 FF 0F 45 [00:15:34]process_action close_shift done [00:15:34]requested_data is exist [00:15:34]produce_requested_data [00:15:34]requested_item fd.num is exist - process it [00:15:34]SAM_PROTO_GetFieldsCounters [00:15:34]wFMCommunicate request_size=4 [00:15:34]MH_SAM_APDU [00:15:34]CAPDU: 80 13 00 00 [00:15:34]Write to MH i2c: E2 08 00 18 19 80 13 00 00 00 00 00 00 AD [00:15:34]Write i2c OK [00:15:34]MH_I2C_Read... [00:15:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:34]Read from MH i2c: E2 [00:15:34]MH_I2C_Read... [00:15:34]Read from MH i2c: E2 62 00 [00:15:34]MH_I2C_Read... [00:15:34]Read from MH i2c: E2 62 00 18 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 6D 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [00:15: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 6D 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:15:34]wFMCommunicate OK [00:15:34]SAM_PROTO_GetFieldsCounters done [00:15:34]requested_item shift.num is exist - process it [00:15:34]requested_item shift.opened is exist - process it [00:15:34]req_shift_opened [00:15:34]FM_GetShiftState [00:15:34]SAM_PROTO_GetShiftState [00:15:34]wFMCommunicate request_size=4 [00:15:34]MH_SAM_APDU [00:15:34]CAPDU: 80 13 01 00 [00:15:34]Write to MH i2c: E2 08 00 19 19 80 13 01 00 00 00 00 00 AF [00:15:34]Write i2c OK [00:15:34]MH_I2C_Read... [00:15:34]OFD Sender: No OFD packet to send [00:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:34]Read from MH i2c: E2 [00:15:34]MH_I2C_Read... [00:15:34]Read from MH i2c: E2 0E 00 [00:15:34]MH_I2C_Read... [00:15:34]Read from MH i2c: E2 0E 00 19 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 BA [00:15:34]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:15:34]wFMCommunicate OK [00:15:34]SAM_PROTO_GetShiftState done [00:15:34]FM_GetShiftState done [00:15:34]req_shift_opened done [00:15:34]requested_item shift.open_date is exist - process it [00:15:34]req_shift_open_date [00:15:34]FM_GetShiftState [00:15:34]SAM_PROTO_GetShiftState [00:15:34]wFMCommunicate request_size=4 [00:15:34]MH_SAM_APDU [00:15:34]CAPDU: 80 13 01 00 [00:15:34]Write to MH i2c: E2 08 00 1A 19 80 13 01 00 00 00 00 00 B0 [00:15:34]Write i2c OK [00:15:34]MH_I2C_Read... [00:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:34]Read from MH i2c: E2 [00:15:34]MH_I2C_Read... [00:15:34]Read from MH i2c: E2 0E 00 [00:15:34]MH_I2C_Read... [00:15:34]Read from MH i2c: E2 0E 00 1A 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 BB [00:15:34]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:15:34]wFMCommunicate OK [00:15:34]SAM_PROTO_GetShiftState done [00:15:34]FM_GetShiftState done [00:15:34]req_shift_open_date done [00:15:34]produce_requested_data done [00:15:34]produce_requested_data return {"fd.num":67181,"shift.num":355,"shift.opened":0,"shift.open_date":0} [00:15:34]process_action_free close_shift [00:15:34]json_value_free [00:15:34]json_value_free done [00:15:34]process_json_proto returns [00:15:34]Send response to host [00:15:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":67181,"shift.num":355,"shift.opened":0,"shift.open_date":0}}} [00:15:34]free response buf [00:15:34]execute_script done [00:15:34]execute_script returns [00:15:34]free content buf [00:15:34]Sock 9.Close socket [00:15:34]Sock 9.Thread stoped [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:24]OFD Sender: No OFD packet to send [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:54]OFD Sender: No OFD packet to send [00:17:59]OFD Sender: No OFD packet to send [00:18:04]OFD Sender: No OFD packet to send [00:18:09]OFD Sender: No OFD packet to send [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: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:50]OFD Sender: No OFD packet to send [00:20:55]OFD Sender: No OFD packet to send [00:21:00]OFD Sender: No OFD packet to send [00:21:05]OFD Sender: No OFD packet to send [00:21:06]accept exits with 7 [00:21:06]New connection [00:21:06]New thread 3066588516 created [00:21:06]Thread 3066731876 joined [00:21:06]Waiting for new connection... [00:21:06] Sock 7.Parse request [00:21:06]Sock 7.Check first char [00:21:06]Sock 7.First char is OK [00:21:06]request: POST /json_proto HTTP/1.0 [00:21:06]Method: POST [00:21:06]URL: /json_proto [00:21:06]Method is POST - this is cgi request [00:21:06]url: /json_proto [00:21:06]query_string will be loaded in cgi processing [00:21:06]execute_cgi json_proto POST (null) [00:21:06]execute_cgi path=json_proto method=POST [00:21:06]POST find Content-Length [00:21:06]Host: 172.17.41.195:8080 [00:21:06]Content-Length: 215 [00:21:06]Content-Type: application/json [00:21:06] [00:21:06]POST finish read [00:21:06]Found Content-Length = 215 [00:21:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:06]execute_script... [00:21:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:06]POST & json_proto [00:21:06]process_json_proto [00:21:06]json parsed OK: [00:21:06]protocol is kg_v1.0 [00:21:06]action value=get_value [00:21:06]process_action get_value [00:21:06]cmd_get_value [00:21:06]process_action get_value done [00:21:06]requested_data is exist [00:21:06]produce_requested_data [00:21:06]requested_item kkm.sn is exist - process it [00:21:06]requested_item kkm.ver is exist - process it [00:21:06]requested_item fm.sn is exist - process it [00:21:06]wFMCommunicate request_size=4 [00:21:06]MH_SAM_APDU [00:21:06]CAPDU: 80 11 00 00 [00:21:06]Write to MH i2c: E2 08 00 1B 19 80 11 00 00 00 00 00 00 AE [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:06]Read from MH i2c: E2 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 17 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 17 00 1B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 04 [00:21:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:21:06]wFMCommunicate OK [00:21:06]requested_item fd.num is exist - process it [00:21:06]SAM_PROTO_GetFieldsCounters [00:21:06]wFMCommunicate request_size=4 [00:21:06]MH_SAM_APDU [00:21:06]CAPDU: 80 13 00 00 [00:21:06]Write to MH i2c: E2 08 00 1C 19 80 13 00 00 00 00 00 00 B1 [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:06]Read from MH i2c: E2 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 62 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 62 00 1C 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 6D 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [00:21:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6D 06 01 00 0E 04 04 00 63 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:06]wFMCommunicate OK [00:21:06]SAM_PROTO_GetFieldsCounters done [00:21:06]requested_item shift.num is exist - process it [00:21:06]requested_item shift.opened is exist - process it [00:21:06]req_shift_opened [00:21:06]FM_GetShiftState [00:21:06]SAM_PROTO_GetShiftState [00:21:06]wFMCommunicate request_size=4 [00:21:06]MH_SAM_APDU [00:21:06]CAPDU: 80 13 01 00 [00:21:06]Write to MH i2c: E2 08 00 1D 19 80 13 01 00 00 00 00 00 B3 [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:06]Read from MH i2c: E2 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 0E 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 0E 00 1D 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 BE [00:21:06]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:21:06]wFMCommunicate OK [00:21:06]SAM_PROTO_GetShiftState done [00:21:06]FM_GetShiftState done [00:21:06]req_shift_opened done [00:21:06]requested_item shift.open_date is exist - process it [00:21:06]req_shift_open_date [00:21:06]FM_GetShiftState [00:21:06]SAM_PROTO_GetShiftState [00:21:06]wFMCommunicate request_size=4 [00:21:06]MH_SAM_APDU [00:21:06]CAPDU: 80 13 01 00 [00:21:06]Write to MH i2c: E2 08 00 1E 19 80 13 01 00 00 00 00 00 B4 [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:06]Read from MH i2c: E2 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 0E 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 0E 00 1E 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 BF [00:21:06]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:21:06]wFMCommunicate OK [00:21:06]SAM_PROTO_GetShiftState done [00:21:06]FM_GetShiftState done [00:21:06]req_shift_open_date done [00:21:06]produce_requested_data done [00:21:06]produce_requested_data return {"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67181,"shift.num":355,"shift.opened":0,"shift.open_date":0} [00:21:06]process_action_free get_value [00:21:06]json_value_free [00:21:06]json_value_free done [00:21:06]process_json_proto returns [00:21:06]Send response to host [00:21:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000119","kkm.ver":"001","fm.sn":"0000000000871829","fd.num":67181,"shift.num":355,"shift.opened":0,"shift.open_date":0}}} [00:21:06]free response buf [00:21:06]execute_script done [00:21:06]execute_script returns [00:21:06]free content buf [00:21:06]Sock 7.Close socket [00:21:06]Sock 7.Thread stoped [00:21:06]accept exits with 9 [00:21:06]New connection [00:21:06]New thread 3066731876 created [00:21:06]Thread 3066588516 joined [00:21:06]Waiting for new connection... [00:21:06] Sock 9.Parse request [00:21:06]Sock 9.Check first char [00:21:06]Sock 9.First char is OK [00:21:06]request: POST /json_proto HTTP/1.0 [00:21:06]Method: POST [00:21:06]URL: /json_proto [00:21:06]Method is POST - this is cgi request [00:21:06]url: /json_proto [00:21:06]query_string will be loaded in cgi processing [00:21:06]execute_cgi json_proto POST (null) [00:21:06]execute_cgi path=json_proto method=POST [00:21:06]POST find Content-Length [00:21:06]Host: 172.17.41.195:8080 [00:21:06]Content-Length: 331 [00:21:06]Content-Type: application/json [00:21:06] [00:21:06]POST finish read [00:21:06]Found Content-Length = 331 [00:21: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:21:06]execute_script... [00:21: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:21:06]POST & json_proto [00:21:06]process_json_proto [00:21:06]json parsed OK: [00:21:06]protocol is kg_v1.0 [00:21:06]action value=get_value [00:21:06]process_action get_value [00:21:06]cmd_get_value [00:21:06]process_action get_value done [00:21:06]requested_data is exist [00:21:06]produce_requested_data [00:21:06]requested_item fm.sale.total is exist - process it [00:21:06]SAM_PROTO_GetFMData [00:21:06]wFMCommunicate request_size=4 [00:21:06]MH_SAM_APDU [00:21:06]CAPDU: 80 13 03 00 [00:21:06]Write to MH i2c: E2 08 00 1F 19 80 13 03 00 00 00 00 00 B7 [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:07]Read from MH i2c: E2 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 FD 00 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 FD 00 1F 19 00 C6 04 85 04 C2 04 6E 04 04 00 A6 03 01 00 69 04 A3 00 6F 04 04 00 01 03 01 00 B1 04 05 00 9E B8 0F 19 03 70 04 05 00 DC 65 C5 BE 02 72 04 04 00 C2 52 4A 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8E FF 3A 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 33 D6 04 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 2B [00:21:07]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 A6 03 01 00 69 04 A3 00 6F 04 04 00 01 03 01 00 B1 04 05 00 9E B8 0F 19 03 70 04 05 00 DC 65 C5 BE 02 72 04 04 00 C2 52 4A 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8E FF 3A 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 33 D6 04 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 [00:21:07]wFMCommunicate OK [00:21:07]wFMCommunicate request_size=4 [00:21:07]MH_SAM_APDU [00:21:07]CAPDU: 80 17 00 00 [00:21:07]Write to MH i2c: E2 08 00 20 19 80 17 00 00 00 00 00 00 B9 [00:21:07]Write i2c OK [00:21:07]MH_I2C_Read... [00:21:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:07]Read from MH i2c: E2 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 FD 00 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 FD 00 20 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 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 67 [00:21: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 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:21:07]wFMCommunicate OK [00:21:07]wFMCommunicate request_size=4 [00:21:07]MH_SAM_APDU [00:21:07]CAPDU: 80 17 00 00 [00:21:07]Write to MH i2c: E2 08 00 21 19 80 17 00 00 00 00 00 00 BA [00:21:07]Write i2c OK [00:21:07]MH_I2C_Read... [00:21:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:07]Read from MH i2c: E2 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 FD 00 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 FD 00 21 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 E1 [00:21: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:21:07]wFMCommunicate OK [00:21:07]wFMCommunicate request_size=4 [00:21:07]MH_SAM_APDU [00:21:07]CAPDU: 80 17 00 00 [00:21:07]Write to MH i2c: E2 08 00 22 19 80 17 00 00 00 00 00 00 BB [00:21:07]Write i2c OK [00:21:07]MH_I2C_Read... [00:21:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:07]Read from MH i2c: E2 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 FD 00 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 FD 00 22 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 36 [00:21:07]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:21:07]wFMCommunicate OK [00:21:07]wFMCommunicate request_size=4 [00:21:07]MH_SAM_APDU [00:21:07]CAPDU: 80 17 00 00 [00:21:07]Write to MH i2c: E2 08 00 23 19 80 17 00 00 00 00 00 00 BC [00:21:07]Write i2c OK [00:21:07]MH_I2C_Read... [00:21:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:21:08]Read from MH i2c: E2 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 E3 00 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 E3 00 23 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 9B [00:21: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:21:08]wFMCommunicate OK [00:21:08]SAM_PROTO_GetFMData done [00:21:08]requested_item fm.sale_refund.total is exist - process it [00:21:08]requested_item fm.buy.total is exist - process it [00:21:08]requested_item shift.sale.total is exist - process it [00:21:08]SAM_PROTO_GetShiftData [00:21:08]wFMCommunicate request_size=4 [00:21:08]MH_SAM_APDU [00:21:08]CAPDU: 80 13 02 00 [00:21:08]Write to MH i2c: E2 08 00 24 19 80 13 02 00 00 00 00 00 BB [00:21:08]Write i2c OK [00:21:08]MH_I2C_Read... [00:21:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:21:08]Read from MH i2c: E2 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 FD 00 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 FD 00 24 19 00 B0 04 AA 04 AC 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 BB 00 00 00 B1 04 04 00 F2 8D A4 01 70 04 03 00 40 FF AB 72 04 03 00 B2 8E F8 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 D7 AA 2C 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 D1 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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 83 [00:21:08]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 BB 00 00 00 69 04 9D 00 6F 04 04 00 BB 00 00 00 B1 04 04 00 F2 8D A4 01 70 04 03 00 40 FF AB 72 04 03 00 B2 8E F8 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 D7 AA 2C 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 D1 B8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 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:21:08]wFMCommunicate OK [00:21:08]wFMCommunicate request_size=4 [00:21:08]MH_SAM_APDU [00:21:08]CAPDU: 80 17 00 00 [00:21:08]Write to MH i2c: E2 08 00 25 19 80 17 00 00 00 00 00 00 BE [00:21:08]Write i2c OK [00:21:08]MH_I2C_Read... [00:21:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:08]Read from MH i2c: E2 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 FD 00 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 FD 00 25 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 D8 [00:21:08]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:21:08]wFMCommunicate OK [00:21:08]wFMCommunicate request_size=4 [00:21:08]MH_SAM_APDU [00:21:08]CAPDU: 80 17 00 00 [00:21:08]Write to MH i2c: E2 08 00 26 19 80 17 00 00 00 00 00 00 BF [00:21:08]Write i2c OK [00:21:08]MH_I2C_Read... [00:21:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:09]Read from MH i2c: E2 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 FD 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 FD 00 26 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 7C [00:21:09]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:21:09]wFMCommunicate OK [00:21:09]wFMCommunicate request_size=4 [00:21:09]MH_SAM_APDU [00:21:09]CAPDU: 80 17 00 00 [00:21:09]Write to MH i2c: E2 08 00 27 19 80 17 00 00 00 00 00 00 C0 [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:09]Read from MH i2c: E2 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 FD 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 FD 00 27 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 33 [00:21:09]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:21:09]wFMCommunicate OK [00:21:09]wFMCommunicate request_size=4 [00:21:09]MH_SAM_APDU [00:21:09]CAPDU: 80 17 00 00 [00:21:09]Write to MH i2c: E2 08 00 28 19 80 17 00 00 00 00 00 00 C1 [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:21:09]Read from MH i2c: E2 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 CD 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 CD 00 28 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 A5 [00:21:09]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:21:09]wFMCommunicate OK [00:21:09]SAM_PROTO_GetShiftData done [00:21:09]requested_item shift.sale.total_cash is exist - process it [00:21:09]requested_item shift.sale_refund.total is exist - process it [00:21:09]requested_item shift.sale_refund.total_cash is exist - process it [00:21:09]requested_item shift.buy.total is exist - process it [00:21:09]requested_item shift.buy.total_cash is exist - process it [00:21:09]produce_requested_data done [00:21:09]produce_requested_data return {"fm.sale.total":133053625.90,"fm.sale_refund.total":37024060.00,"fm.buy.total":0.00,"shift.sale.total":275614.58,"shift.sale.total_cash":112720.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:21:09]process_action_free get_value [00:21:09]json_value_free [00:21:09]json_value_free done [00:21:09]process_json_proto returns [00:21:09]Send response to host [00:21:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133053625.90,"fm.sale_refund.total":37024060.00,"fm.buy.total":0.00,"shift.sale.total":275614.58,"shift.sale.total_cash":112720.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:21:09]free response buf [00:21:09]execute_script done [00:21:09]execute_script returns [00:21:09]free content buf [00:21:09]Sock 9.Close socket [00:21:09]Sock 9.Thread stoped [00:21:09]accept exits with 7 [00:21:09]New connection [00:21:09]New thread 3066588516 created [00:21:09]Thread 3066731876 joined [00:21:09]Waiting for new connection... [00:21:09] Sock 7.Parse request [00:21:09]Sock 7.Check first char [00:21:09]Sock 7.First char is OK [00:21:09]request: POST /json_proto HTTP/1.0 [00:21:09]Method: POST [00:21:09]URL: /json_proto [00:21:09]Method is POST - this is cgi request [00:21:09]url: /json_proto [00:21:09]query_string will be loaded in cgi processing [00:21:09]execute_cgi json_proto POST (null) [00:21:09]execute_cgi path=json_proto method=POST [00:21:09]POST find Content-Length [00:21:09]Host: 172.17.41.195:8080 [00:21:09]Content-Length: 276 [00:21:09]Content-Type: application/json [00:21:09] [00:21:09]POST finish read [00:21:09]Found Content-Length = 276 [00:21:09]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:21:09]execute_script... [00:21:09]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:21:09]POST & json_proto [00:21:09]process_json_proto [00:21:09]json parsed OK: [00:21:09]protocol is kg_v1.0 [00:21:09]action value=open_shift [00:21:09]process_action open_shift [00:21:09]cmd_open_shift [00:21:09]MH_GetDate [00:21:09]Write to MH i2c: F0 00 00 29 19 31 [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: F0 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: F0 09 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: F0 09 00 29 19 00 F7 FF 43 66 FC 21 6F 64 C9 [00:21:10]GetLastDocTimeStamp 1715732118 [00:21:10]current date 1715732471 [00:21:10]FM_GetShiftState [00:21:10]SAM_PROTO_GetShiftState [00:21:10]wFMCommunicate request_size=4 [00:21:10]MH_SAM_APDU [00:21:10]CAPDU: 80 13 01 00 [00:21:10]Write to MH i2c: E2 08 00 2A 19 80 13 01 00 00 00 00 00 C0 [00:21:10]Write i2c OK [00:21:10]MH_I2C_Read... [00:21:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:10]Read from MH i2c: E2 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: E2 0E 00 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: E2 0E 00 2A 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 CB [00:21:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:21:10]wFMCommunicate OK [00:21:10]SAM_PROTO_GetShiftState done [00:21:10]FM_GetShiftState done [00:21:10]KKMCreateOpenShiftDocument [00:21:10]Load OK [00:21:10]Malloc new data [00:21:10]MH_GetDate [00:21:10]Write to MH i2c: F0 00 00 2B 19 33 [00:21:10]Write i2c OK [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: F0 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: F0 09 00 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: F0 09 00 2B 19 00 F7 FF 43 66 FC 21 6F 64 CB [00:21:10]Malloc new data [00:21:10]KKMCreateOpenShiftDocument OK [00:21:10]KKMSetOpenShiftData OK [00:21:10]ProcessDocumentItem done err = 0, tmpTLVsize=189 [00:21:10]tlvbuf is 004A22A0 [00:21:10]KKMLoadAndSignOpenShiftData [00:21:10]SAM_PROTO_ProcessDocument [00:21:10]wFMCommunicate request_size=9 [00:21:10]MH_SAM_APDU [00:21:10]CAPDU: 80 15 01 00 04 02 00 BD 00 [00:21:10]Write to MH i2c: E2 0C 00 2C 19 80 15 01 00 04 00 02 00 BD 00 00 00 8B [00:21:10]Write i2c OK [00:21:10]MH_I2C_Read... [00:21:10]OFD Sender: No OFD packet to send [00:21:10]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:21:10]Read from MH i2c: E2 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: E2 03 00 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: E2 03 00 2C 19 00 90 00 B9 [00:21:10]RAPDU: 90 00 [00:21:10]wFMCommunicate OK [00:21:10]wFMCommunicate request_size=23 [00:21:10]MH_SAM_APDU [00:21:10]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:21:10]Write to MH i2c: E2 1A 00 2D 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 BB [00:21:10]Write i2c OK [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: E2 [00:21:10]MH_I2C_Read... [00:21:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:10]Read from MH i2c: E2 03 00 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: E2 03 00 2D 19 00 90 00 BA [00:21:10]RAPDU: 90 00 [00:21:10]wFMCommunicate OK [00:21:10]wFMCommunicate request_size=35 [00:21:10]MH_SAM_APDU [00:21:10]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:21:10]Write to MH i2c: E2 26 00 2E 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 DB [00:21:10]Write i2c OK [00:21:10]MH_I2C_Read... [00:21:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:10]Read from MH i2c: E2 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: E2 03 00 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: E2 03 00 2E 19 00 90 00 BB [00:21:10]RAPDU: 90 00 [00:21:10]wFMCommunicate OK [00:21:10]wFMCommunicate request_size=73 [00:21:10]MH_SAM_APDU [00:21:10]CAPDU: 80 15 02 00 44 F1 03 40 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A2 D0 BE D0 BB D0 BE D0 B9 D0 BA D0 BE D0 BD 2C 20 D1 83 D0 BB 2E 20 D0 94 D0 AD D0 A3 2C 20 34 30 2E 34 37 33 33 30 32 2C 20 37 32 2E 37 35 36 36 39 39 [00:21:10]Write to MH i2c: E2 4C 00 2F 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 EC [00:21:10]Write i2c OK [00:21:10]MH_I2C_Read... [00:21:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:10]Read from MH i2c: E2 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: E2 03 00 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: E2 03 00 2F 19 00 90 00 BC [00:21:10]RAPDU: 90 00 [00:21:10]wFMCommunicate OK [00:21:10]wFMCommunicate request_size=50 [00:21:10]MH_SAM_APDU [00:21:10]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 31 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:21:10]Write to MH i2c: E2 35 00 30 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 42 [00:21:10]Write i2c OK [00:21:10]MH_I2C_Read... [00:21:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:10]Read from MH i2c: E2 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: E2 03 00 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: E2 03 00 30 19 00 90 00 BD [00:21:10]RAPDU: 90 00 [00:21:10]wFMCommunicate OK [00:21:10]wFMCommunicate request_size=13 [00:21:10]MH_SAM_APDU [00:21:10]CAPDU: 80 15 02 00 08 F4 03 04 00 F7 FF 43 66 [00:21:10]Write to MH i2c: E2 10 00 31 19 80 15 02 00 08 00 F4 03 04 00 F7 FF 43 66 00 00 74 [00:21:10]Write i2c OK [00:21:10]MH_I2C_Read... [00:21:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:10]Read from MH i2c: E2 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: E2 03 00 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: E2 03 00 31 19 00 90 00 BE [00:21:10]RAPDU: 90 00 [00:21:10]wFMCommunicate OK [00:21:10]wFMCommunicate request_size=25 [00:21:10]MH_SAM_APDU [00:21:10]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 [00:21:10]Write to MH i2c: E2 1C 00 32 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 2F [00:21:10]Write i2c OK [00:21:10]MH_I2C_Read... [00:21:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:21:10]Read from MH i2c: E2 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: E2 03 00 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: E2 03 00 32 19 00 90 00 BF [00:21:10]RAPDU: 90 00 [00:21:10]wFMCommunicate OK [00:21:10]wFMCommunicate request_size=4 [00:21:10]MH_SAM_APDU [00:21:10]CAPDU: 80 15 03 00 [00:21:10]Write to MH i2c: E2 08 00 33 19 80 15 03 00 00 00 00 00 CD [00:21:10]Write i2c OK [00:21:10]MH_I2C_Read... [00:21:10]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:21:10]Read from MH i2c: E2 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: E2 38 00 [00:21:10]MH_I2C_Read... [00:21:10]Read from MH i2c: E2 38 00 33 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 6E 06 01 00 0E 04 04 00 64 01 00 00 35 04 06 00 0A F6 C5 11 B6 3F 90 00 41 [00:21:10]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 6E 06 01 00 0E 04 04 00 64 01 00 00 35 04 06 00 0A F6 C5 11 B6 3F 90 00 [00:21:10]wFMCommunicate OK [00:21:10]SAM_PROTO_ProcessDocument answer len = 51 [00:21:10]SAM_PROTO_ProcessDocument done [00:21:10]SetTLVBufToDocument [00:21:10]Processing tag 1209 (04B9) [00:21:10]Malloc new data [00:21:10]Processing tag 1041 (0411) [00:21:10]Processing tag 1040 (0410) [00:21:10]Malloc new data [00:21:10]Processing tag 1038 (040E) [00:21:10]Malloc new data [00:21:10]Processing tag 1077 (0435) [00:21:10]Malloc new data [00:21:10]SetTLVBufToDocument err=0 [00:21:10]KKMLoadAndSignOpenShiftData store KKM data [00:21:10]KKMLoadAndSignOpenShiftData err=0 [00:21:10]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Арстанбеков Н. Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 Место: АЗС № 91 "Партнер Нефть" 15.05.2024 00:21 Смена: 356 РНМ: 0000000000091845 ЗНМ: 0300000119 ФД: 67182 ФМ: 0000000000871829 ФПД: 12054984504895 [00:21:10]StoreToDocumentArchive [00:21:10]shift 356 fd 67182 [00:21:10]Create dir for shift 0356 [00:21:10]save to /storage/0356/doc_00067182 [00:21:10]save last doc name /storage/0356/doc_00067182 to /storage/kkm_last_doc_name [00:21:10]save OK [00:21:10]Clear old archive folders... [00:21:10]Remove dir /storage/0355 [00:21:10]opendir ok [00:21:10]file . [00:21:10]file .. [00:21:10]file doc_00066993 [00:21:10]remove file /storage/0355/doc_00066993 [00:21:10]file doc_00066994 [00:21:10]remove file /storage/0355/doc_00066994 [00:21:10]file doc_00066995 [00:21:10]remove file /storage/0355/doc_00066995 [00:21:10]file doc_00066996 [00:21:10]remove file /storage/0355/doc_00066996 [00:21:10]file doc_00066997 [00:21:10]remove file /storage/0355/doc_00066997 [00:21:10]file doc_00066998 [00:21:10]remove file /storage/0355/doc_00066998 [00:21:10]file doc_00066999 [00:21:10]remove file /storage/0355/doc_00066999 [00:21:10]file doc_00067000 [00:21:10]remove file /storage/0355/doc_00067000 [00:21:10]file doc_00067001 [00:21:10]remove file /storage/0355/doc_00067001 [00:21:10]file doc_00067002 [00:21:10]remove file /storage/0355/doc_00067002 [00:21:10]file doc_00067003 [00:21:10]remove file /storage/0355/doc_00067003 [00:21:10]file doc_00067004 [00:21:10]remove file /storage/0355/doc_00067004 [00:21:10]file doc_00067005 [00:21:10]remove file /storage/0355/doc_00067005 [00:21:10]file doc_00067006 [00:21:10]remove file /storage/0355/doc_00067006 [00:21:10]file doc_00067007 [00:21:10]remove file /storage/0355/doc_00067007 [00:21:10]file doc_00067008 [00:21:10]remove file /storage/0355/doc_00067008 [00:21:10]file doc_00067009 [00:21:10]remove file /storage/0355/doc_00067009 [00:21:10]file doc_00067010 [00:21:10]remove file /storage/0355/doc_00067010 [00:21:10]file doc_00067011 [00:21:10]remove file /storage/0355/doc_00067011 [00:21:11]file doc_00067012 [00:21:11]remove file /storage/0355/doc_00067012 [00:21:11]file doc_00067013 [00:21:11]remove file /storage/0355/doc_00067013 [00:21:11]file doc_00067014 [00:21:11]remove file /storage/0355/doc_00067014 [00:21:11]file doc_00067015 [00:21:11]remove file /storage/0355/doc_00067015 [00:21:11]file doc_00067016 [00:21:11]remove file /storage/0355/doc_00067016 [00:21:11]file doc_00067017 [00:21:11]remove file /storage/0355/doc_00067017 [00:21:11]file doc_00067018 [00:21:11]remove file /storage/0355/doc_00067018 [00:21:11]file doc_00067019 [00:21:11]remove file /storage/0355/doc_00067019 [00:21:11]file doc_00067020 [00:21:11]remove file /storage/0355/doc_00067020 [00:21:11]file doc_00067021 [00:21:11]remove file /storage/0355/doc_00067021 [00:21:11]file doc_00067022 [00:21:11]remove file /storage/0355/doc_00067022 [00:21:11]file doc_00067023 [00:21:11]remove file /storage/0355/doc_00067023 [00:21:11]file doc_00067024 [00:21:11]remove file /storage/0355/doc_00067024 [00:21:11]file doc_00067025 [00:21:11]remove file /storage/0355/doc_00067025 [00:21:11]file doc_00067026 [00:21:11]remove file /storage/0355/doc_00067026 [00:21:11]file doc_00067027 [00:21:11]remove file /storage/0355/doc_00067027 [00:21:11]file doc_00067028 [00:21:11]remove file /storage/0355/doc_00067028 [00:21:11]file doc_00067029 [00:21:11]remove file /storage/0355/doc_00067029 [00:21:11]file doc_00067030 [00:21:11]remove file /storage/0355/doc_00067030 [00:21:11]file doc_00067031 [00:21:11]remove file /storage/0355/doc_00067031 [00:21:11]file doc_00067032 [00:21:11]remove file /storage/0355/doc_00067032 [00:21:11]file doc_00067033 [00:21:11]remove file /storage/0355/doc_00067033 [00:21:11]file doc_00067034 [00:21:11]remove file /storage/0355/doc_00067034 [00:21:11]file doc_00067035 [00:21:11]remove file /storage/0355/doc_00067035 [00:21:11]file doc_00067036 [00:21:11]remove file /storage/0355/doc_00067036 [00:21:11]file doc_00067037 [00:21:11]remove file /storage/0355/doc_00067037 [00:21:11]file doc_00067038 [00:21:11]remove file /storage/0355/doc_00067038 [00:21:11]file doc_00067039 [00:21:11]remove file /storage/0355/doc_00067039 [00:21:11]file doc_00067040 [00:21:11]remove file /storage/0355/doc_00067040 [00:21:11]file doc_00067041 [00:21:11]remove file /storage/0355/doc_00067041 [00:21:11]file doc_00067042 [00:21:11]remove file /storage/0355/doc_00067042 [00:21:11]file doc_00067043 [00:21:11]remove file /storage/0355/doc_00067043 [00:21:11]file doc_00067044 [00:21:11]remove file /storage/0355/doc_00067044 [00:21:11]file doc_00067045 [00:21:11]remove file /storage/0355/doc_00067045 [00:21:11]file doc_00067046 [00:21:11]remove file /storage/0355/doc_00067046 [00:21:11]file doc_00067047 [00:21:11]remove file /storage/0355/doc_00067047 [00:21:11]file doc_00067048 [00:21:11]remove file /storage/0355/doc_00067048 [00:21:11]file doc_00067049 [00:21:11]remove file /storage/0355/doc_00067049 [00:21:11]file doc_00067050 [00:21:11]remove file /storage/0355/doc_00067050 [00:21:11]file doc_00067051 [00:21:11]remove file /storage/0355/doc_00067051 [00:21:11]file doc_00067052 [00:21:11]remove file /storage/0355/doc_00067052 [00:21:11]file doc_00067053 [00:21:11]remove file /storage/0355/doc_00067053 [00:21:11]file doc_00067054 [00:21:11]remove file /storage/0355/doc_00067054 [00:21:11]file doc_00067055 [00:21:11]remove file /storage/0355/doc_00067055 [00:21:11]file doc_00067056 [00:21:11]remove file /storage/0355/doc_00067056 [00:21:11]file doc_00067057 [00:21:11]remove file /storage/0355/doc_00067057 [00:21:11]file doc_00067058 [00:21:11]remove file /storage/0355/doc_00067058 [00:21:11]file doc_00067059 [00:21:11]remove file /storage/0355/doc_00067059 [00:21:11]file doc_00067060 [00:21:11]remove file /storage/0355/doc_00067060 [00:21:11]file doc_00067061 [00:21:11]remove file /storage/0355/doc_00067061 [00:21:11]file doc_00067062 [00:21:11]remove file /storage/0355/doc_00067062 [00:21:11]file doc_00067063 [00:21:11]remove file /storage/0355/doc_00067063 [00:21:11]file doc_00067064 [00:21:11]remove file /storage/0355/doc_00067064 [00:21:11]file doc_00067065 [00:21:11]remove file /storage/0355/doc_00067065 [00:21:11]file doc_00067066 [00:21:11]remove file /storage/0355/doc_00067066 [00:21:11]file doc_00067067 [00:21:11]remove file /storage/0355/doc_00067067 [00:21:11]file doc_00067068 [00:21:11]remove file /storage/0355/doc_00067068 [00:21:11]file doc_00067069 [00:21:11]remove file /storage/0355/doc_00067069 [00:21:11]file doc_00067070 [00:21:11]remove file /storage/0355/doc_00067070 [00:21:11]file doc_00067071 [00:21:11]remove file /storage/0355/doc_00067071 [00:21:11]file doc_00067072 [00:21:11]remove file /storage/0355/doc_00067072 [00:21:11]file doc_00067073 [00:21:11]remove file /storage/0355/doc_00067073 [00:21:11]file doc_00067074 [00:21:11]remove file /storage/0355/doc_00067074 [00:21:11]file doc_00067075 [00:21:11]remove file /storage/0355/doc_00067075 [00:21:11]file doc_00067076 [00:21:11]remove file /storage/0355/doc_00067076 [00:21:11]file doc_00067077 [00:21:11]remove file /storage/0355/doc_00067077 [00:21:11]file doc_00067078 [00:21:11]remove file /storage/0355/doc_00067078 [00:21:11]file doc_00067079 [00:21:11]remove file /storage/0355/doc_00067079 [00:21:11]file doc_00067080 [00:21:11]remove file /storage/0355/doc_00067080 [00:21:11]file doc_00067081 [00:21:11]remove file /storage/0355/doc_00067081 [00:21:11]file doc_00067082 [00:21:11]remove file /storage/0355/doc_00067082 [00:21:11]file doc_00067083 [00:21:11]remove file /storage/0355/doc_00067083 [00:21:11]file doc_00067084 [00:21:11]remove file /storage/0355/doc_00067084 [00:21:11]file doc_00067085 [00:21:11]remove file /storage/0355/doc_00067085 [00:21:11]file doc_00067086 [00:21:11]remove file /storage/0355/doc_00067086 [00:21:11]file doc_00067087 [00:21:11]remove file /storage/0355/doc_00067087 [00:21:11]file doc_00067088 [00:21:11]remove file /storage/0355/doc_00067088 [00:21:11]file doc_00067089 [00:21:11]remove file /storage/0355/doc_00067089 [00:21:11]file doc_00067090 [00:21:11]remove file /storage/0355/doc_00067090 [00:21:11]file doc_00067091 [00:21:11]remove file /storage/0355/doc_00067091 [00:21:11]file doc_00067092 [00:21:11]remove file /storage/0355/doc_00067092 [00:21:11]file doc_00067093 [00:21:11]remove file /storage/0355/doc_00067093 [00:21:11]file doc_00067094 [00:21:11]remove file /storage/0355/doc_00067094 [00:21:11]file doc_00067095 [00:21:11]remove file /storage/0355/doc_00067095 [00:21:11]file doc_00067096 [00:21:11]remove file /storage/0355/doc_00067096 [00:21:11]file doc_00067097 [00:21:11]remove file /storage/0355/doc_00067097 [00:21:11]file doc_00067098 [00:21:11]remove file /storage/0355/doc_00067098 [00:21:11]file doc_00067099 [00:21:11]remove file /storage/0355/doc_00067099 [00:21:11]file doc_00067100 [00:21:11]remove file /storage/0355/doc_00067100 [00:21:11]file doc_00067101 [00:21:11]remove file /storage/0355/doc_00067101 [00:21:11]file doc_00067102 [00:21:11]remove file /storage/0355/doc_00067102 [00:21:11]file doc_00067103 [00:21:11]remove file /storage/0355/doc_00067103 [00:21:11]file doc_00067104 [00:21:11]remove file /storage/0355/doc_00067104 [00:21:11]file doc_00067105 [00:21:11]remove file /storage/0355/doc_00067105 [00:21:11]file doc_00067106 [00:21:11]remove file /storage/0355/doc_00067106 [00:21:11]file doc_00067107 [00:21:11]remove file /storage/0355/doc_00067107 [00:21:11]file doc_00067108 [00:21:11]remove file /storage/0355/doc_00067108 [00:21:11]file doc_00067109 [00:21:11]remove file /storage/0355/doc_00067109 [00:21:11]file doc_00067110 [00:21:11]remove file /storage/0355/doc_00067110 [00:21:11]file doc_00067111 [00:21:11]remove file /storage/0355/doc_00067111 [00:21:11]file doc_00067112 [00:21:11]remove file /storage/0355/doc_00067112 [00:21:11]file doc_00067113 [00:21:11]remove file /storage/0355/doc_00067113 [00:21:11]file doc_00067114 [00:21:11]remove file /storage/0355/doc_00067114 [00:21:11]file doc_00067115 [00:21:11]remove file /storage/0355/doc_00067115 [00:21:11]file doc_00067116 [00:21:11]remove file /storage/0355/doc_00067116 [00:21:11]file doc_00067117 [00:21:11]remove file /storage/0355/doc_00067117 [00:21:11]file doc_00067118 [00:21:11]remove file /storage/0355/doc_00067118 [00:21:11]file doc_00067119 [00:21:11]remove file /storage/0355/doc_00067119 [00:21:11]file doc_00067120 [00:21:11]remove file /storage/0355/doc_00067120 [00:21:11]file doc_00067121 [00:21:11]remove file /storage/0355/doc_00067121 [00:21:11]file doc_00067122 [00:21:11]remove file /storage/0355/doc_00067122 [00:21:11]file doc_00067123 [00:21:11]remove file /storage/0355/doc_00067123 [00:21:11]file doc_00067124 [00:21:11]remove file /storage/0355/doc_00067124 [00:21:11]file doc_00067125 [00:21:11]remove file /storage/0355/doc_00067125 [00:21:11]file doc_00067126 [00:21:11]remove file /storage/0355/doc_00067126 [00:21:11]file doc_00067127 [00:21:11]remove file /storage/0355/doc_00067127 [00:21:11]file doc_00067128 [00:21:11]remove file /storage/0355/doc_00067128 [00:21:11]file doc_00067129 [00:21:11]remove file /storage/0355/doc_00067129 [00:21:11]file doc_00067130 [00:21:11]remove file /storage/0355/doc_00067130 [00:21:11]file doc_00067131 [00:21:11]remove file /storage/0355/doc_00067131 [00:21:11]file doc_00067132 [00:21:11]remove file /storage/0355/doc_00067132 [00:21:11]file doc_00067133 [00:21:11]remove file /storage/0355/doc_00067133 [00:21:11]file doc_00067134 [00:21:11]remove file /storage/0355/doc_00067134 [00:21:11]file doc_00067135 [00:21:11]remove file /storage/0355/doc_00067135 [00:21:11]file doc_00067136 [00:21:11]remove file /storage/0355/doc_00067136 [00:21:11]file doc_00067137 [00:21:11]remove file /storage/0355/doc_00067137 [00:21:11]file doc_00067138 [00:21:11]remove file /storage/0355/doc_00067138 [00:21:11]file doc_00067139 [00:21:11]remove file /storage/0355/doc_00067139 [00:21:11]file doc_00067140 [00:21:11]remove file /storage/0355/doc_00067140 [00:21:11]file doc_00067141 [00:21:11]remove file /storage/0355/doc_00067141 [00:21:11]file doc_00067142 [00:21:11]remove file /storage/0355/doc_00067142 [00:21:11]file doc_00067143 [00:21:11]remove file /storage/0355/doc_00067143 [00:21:11]file doc_00067144 [00:21:11]remove file /storage/0355/doc_00067144 [00:21:11]file doc_00067145 [00:21:11]remove file /storage/0355/doc_00067145 [00:21:11]file doc_00067146 [00:21:11]remove file /storage/0355/doc_00067146 [00:21:11]file doc_00067147 [00:21:11]remove file /storage/0355/doc_00067147 [00:21:11]file doc_00067148 [00:21:11]remove file /storage/0355/doc_00067148 [00:21:11]file doc_00067149 [00:21:11]remove file /storage/0355/doc_00067149 [00:21:11]file doc_00067150 [00:21:11]remove file /storage/0355/doc_00067150 [00:21:11]file doc_00067151 [00:21:11]remove file /storage/0355/doc_00067151 [00:21:11]file doc_00067152 [00:21:11]remove file /storage/0355/doc_00067152 [00:21:11]file doc_00067153 [00:21:11]remove file /storage/0355/doc_00067153 [00:21:11]file doc_00067154 [00:21:11]remove file /storage/0355/doc_00067154 [00:21:11]file doc_00067155 [00:21:11]remove file /storage/0355/doc_00067155 [00:21:11]file doc_00067156 [00:21:11]remove file /storage/0355/doc_00067156 [00:21:11]file doc_00067157 [00:21:11]remove file /storage/0355/doc_00067157 [00:21:11]file doc_00067158 [00:21:11]remove file /storage/0355/doc_00067158 [00:21:11]file doc_00067159 [00:21:11]remove file /storage/0355/doc_00067159 [00:21:11]file doc_00067160 [00:21:11]remove file /storage/0355/doc_00067160 [00:21:11]file doc_00067161 [00:21:11]remove file /storage/0355/doc_00067161 [00:21:11]file doc_00067162 [00:21:11]remove file /storage/0355/doc_00067162 [00:21:11]file doc_00067163 [00:21:11]remove file /storage/0355/doc_00067163 [00:21:11]file doc_00067164 [00:21:11]remove file /storage/0355/doc_00067164 [00:21:11]file doc_00067165 [00:21:11]remove file /storage/0355/doc_00067165 [00:21:11]file doc_00067166 [00:21:11]remove file /storage/0355/doc_00067166 [00:21:11]file doc_00067167 [00:21:11]remove file /storage/0355/doc_00067167 [00:21:11]file doc_00067168 [00:21:11]remove file /storage/0355/doc_00067168 [00:21:11]file doc_00067169 [00:21:11]remove file /storage/0355/doc_00067169 [00:21:11]file doc_00067170 [00:21:11]remove file /storage/0355/doc_00067170 [00:21:11]file doc_00067171 [00:21:11]remove file /storage/0355/doc_00067171 [00:21:11]file doc_00067172 [00:21:11]remove file /storage/0355/doc_00067172 [00:21:11]file doc_00067173 [00:21:11]remove file /storage/0355/doc_00067173 [00:21:11]file doc_00067174 [00:21:11]remove file /storage/0355/doc_00067174 [00:21:11]file doc_00067175 [00:21:11]remove file /storage/0355/doc_00067175 [00:21:11]file doc_00067176 [00:21:11]remove file /storage/0355/doc_00067176 [00:21:11]file doc_00067177 [00:21:11]remove file /storage/0355/doc_00067177 [00:21:11]file doc_00067178 [00:21:11]remove file /storage/0355/doc_00067178 [00:21:11]file doc_00067179 [00:21:11]remove file /storage/0355/doc_00067179 [00:21:11]file doc_00067180 [00:21:11]remove file /storage/0355/doc_00067180 [00:21:11]file doc_00067181 [00:21:11]remove file /storage/0355/doc_00067181 [00:21:11]remove dir /storage/0355 [00:21:11]ProcessDocumentItem done err = 0, tmpTLVsize=240 [00:21:11]tlvbuf is 004F6FA0 [00:21:11]SAM_PROTO_ClearQueue [00:21:11]wFMCommunicate request_size=4 [00:21:11]MH_SAM_APDU [00:21:11]CAPDU: 80 09 00 00 [00:21:11]Write to MH i2c: E2 08 00 34 19 80 09 00 00 00 00 00 00 BF [00:21:11]Write i2c OK [00:21:11]MH_I2C_Read... [00:21:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:11]Read from MH i2c: E2 [00:21:11]MH_I2C_Read... [00:21:11]Read from MH i2c: E2 03 00 [00:21:11]MH_I2C_Read... [00:21:11]Read from MH i2c: E2 03 00 34 19 00 90 00 C1 [00:21:12]RAPDU: 90 00 [00:21:12]wFMCommunicate OK [00:21:12]SAM_PROTO_ClearQueue done [00:21:12]KKMCreateOFDPacket [00:21:12]OFDProtocolAddRootSTLVToBuf [00:21:12]FM_MakeSignedData [00:21:12]FM_MakeSignedData [00:21:12]SAM_PROTO_SignData [00:21:12]wFMCommunicate request_size=4 [00:21:12]MH_SAM_APDU [00:21:12]CAPDU: 80 0D 01 02 [00:21:12]Write to MH i2c: E2 08 00 35 19 80 0D 01 02 00 00 00 00 C7 [00:21:12]Write i2c OK [00:21:12]MH_I2C_Read... [00:21:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:12]Read from MH i2c: E2 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 03 00 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 03 00 35 19 00 90 00 C2 [00:21:12]RAPDU: 90 00 [00:21:12]wFMCommunicate OK [00:21:12]wFMCommunicate request_size=249 [00:21:12]MH_SAM_APDU [00:21:12]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 F7 FF 43 66 0E 04 04 00 64 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6E 06 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 0A F6 C5 11 B6 3F [00:21:12]Write to MH i2c: E2 FC 00 36 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 F7 FF 43 66 0E 04 04 00 64 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6E 06 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 0A F6 C5 11 B6 3F 00 00 F6 [00:21:12]Write i2c OK [00:21:12]MH_I2C_Read... [00:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:12]Read from MH i2c: E2 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 03 00 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 03 00 36 19 00 90 00 C3 [00:21:12]RAPDU: 90 00 [00:21:12]wFMCommunicate OK [00:21:12]wFMCommunicate request_size=4 [00:21:12]MH_SAM_APDU [00:21:12]CAPDU: 80 0D 03 02 [00:21:12]Write to MH i2c: E2 08 00 37 19 80 0D 03 02 00 00 00 00 CB [00:21:12]Write i2c OK [00:21:12]MH_I2C_Read... [00:21:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:12]Read from MH i2c: E2 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 0B 00 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 0B 00 37 19 00 75 DB CB 14 1A 11 AF 8F 90 00 64 [00:21:12]RAPDU: 75 DB CB 14 1A 11 AF 8F 90 00 [00:21:12]wFMCommunicate OK [00:21:12]SAM_PROTO_SignData done [00:21:12]FM_MakeSignedData done [00:21:12]CreateOFDProtocolMessage [00:21:12]wFMCommunicate request_size=4 [00:21:12]MH_SAM_APDU [00:21:12]CAPDU: 80 11 00 00 [00:21:12]Write to MH i2c: E2 08 00 38 19 80 11 00 00 00 00 00 00 CB [00:21:12]Write i2c OK [00:21:12]MH_I2C_Read... [00:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:12]Read from MH i2c: E2 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 17 00 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 17 00 38 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 21 [00: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 [00:21:12]wFMCommunicate OK [00:21:12]CreateOFDProtocolMessage done [00:21:12]OFDSenderStorePacket 67182 [00:21:12]StoreOFDPacket docnum=67182 [00:21: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 04 01 00 00 50 F9 FC 00 93 6E 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 F7 FF 43 66 0E 04 04 00 64 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6E 06 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 0A F6 C5 11 B6 3F 75 DB CB 14 1A 11 AF 8F [00:21:12]CheckFolder [00:21:12]dirname=/storage/ofd_packets [00:21:12]CheckFolder done [00:21:12]ProducePacketName [00:21:12]name=ofd_packets/00067182 [00:21:12]NVStorageSaveData ofd_packets/00067182 [00:21:12]File name is /storage/ofd_packets/00067182 [00:21:12]Write 290 bytes [00:21:12]NVStorageSaveData done [00:21:12]OFDSenderStorePacket done [00:21:12]KKMCreateOFDPacket done [00:21:12]NVStorageSaveData kkm_last_timestamp [00:21:12]File name is /storage/kkm_last_timestamp [00:21:12]Write 4 bytes [00:21:12]NVStorageSaveData done [00:21:12]ExternCall_PrintAddStr [00:21:12]wPrintStart [00:21:12]Write to MH i2c: 01 00 00 39 19 52 [00:21:12]Write i2c OK [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: 01 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: 01 07 00 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: 01 07 00 39 19 00 00 00 00 00 FF 0F 67 [00:21:12]RasterBufferAndPrint [00:21:12]line Отчет об открытии смены [00:21:12]line ФФД: 1.0 [00:21:12]line ИНН: 02508201610067 [00:21:12]line Кассир: Арстанбеков Н. [00:21:12]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [00:21:12]line Место: АЗС № 91 "Партнер Нефть" [00:21:12]line 15.05.2024 00:21 [00:21:12]line Смена: 356 [00:21:12]line РНМ: 0000000000091845 [00:21:12]line ЗНМ: 0300000119 [00:21:12]line ФД: 67182 [00:21:12]line ФМ: 0000000000871829 [00:21:12]line ФПД: 12054984504895 [00:21:12]written 0, free lines is 4095 [00:21:12]OFD Sender: Processing packet 67182 [packets to send 35, broken 34] [00:21:12]ProducePacketName [00:21:12]name=ofd_packets/00067182 [00:21:12]OFD Sender: To server: pG, [00:21:12]CommunicateWithHost lk.salyk.kg:30040 [00:21:12]ConnectInit lk.salyk.kg [00:21:12]Connected sock=11 [00:21: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 04 01 00 00 50 F9 FC 00 93 6E 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 F7 FF 43 66 0E 04 04 00 64 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 6E 06 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 0A F6 C5 11 B6 3F 75 DB CB 14 1A 11 AF 8F [00:21:12]Write to MH i2c: 01 00 00 4A 19 63 [00:21:12]Write i2c OK [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: 01 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: 01 07 00 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: 01 07 00 4A 19 00 00 00 00 00 73 0E EB [00:21:12]RasterBufferAndPrint [00:21:12]line [00:21:12]line [00:21:12]line [00:21:12]line [00:21:12]line [00:21:12]written 0, free lines is 3707 [00:21:12]MH_Cut [00:21:12]Write to MH i2c: D1 01 00 51 19 01 3C [00:21:12]Write i2c OK [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: D1 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: D1 01 00 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: D1 01 00 51 19 00 3B [00:21:12]Write to MH i2c: 01 00 00 52 19 6B [00:21:12]Write i2c OK [00:21:12]MH_I2C_Read... [00:21: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 14 CB 47 00 3D 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 06 01 00 F4 03 04 00 D6 A7 43 66 B6 04 01 00 00 BF 94 A9 2F F7 7C E9 38 [00:21:12]CommunicateWithHost err = 0 [00:21:12]CheckOFDResponse [00:21:12]1017 (14) - 77093643461234 [00:21:12]1041 (16) - 0000000000871829 [00:21:12]1040 (4) - 67182 [00:21:12]1012 (4) - 14.05.2024 18:05 [00:21:12]1206 (1) - 0 [00:21:12]OFD Sender: Remove packet 67182 [00:21:12]ProducePacketName [00:21:12]name=ofd_packets/00067182 [00:21:12]NVStorageDeleteData [00:21:13]*** Cut start [00:21:13]*** Purtial cut [00:21:13]*** CUTSNS_PIN = 0 [00:21:13]OFD Sender: No OFD packet to send [00:21:13]*** Stage 1: CUTSNS_PIN = 1 [00:21:15]Read from MH i2c: 01 [00:21:15]MH_I2C_Read... [00:21:15]*** Stop cut motor [00:21:15]*** Cut end [00:21:15]Read from MH i2c: 01 07 00 [00:21:15]MH_I2C_Read... [00:21:15]Read from MH i2c: 01 07 00 52 19 00 00 00 00 00 FF 0F 80 [00:21:15]process_action open_shift done [00:21:15]requested_data is exist [00:21:15]produce_requested_data [00:21:15]requested_item fd.num is exist - process it [00:21:15]SAM_PROTO_GetFieldsCounters [00:21:15]wFMCommunicate request_size=4 [00:21:15]MH_SAM_APDU [00:21:15]CAPDU: 80 13 00 00 [00:21:15]Write to MH i2c: E2 08 00 53 19 80 13 00 00 00 00 00 00 E8 [00:21:15]Write i2c OK [00:21:15]MH_I2C_Read... [00:21:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:15]Read from MH i2c: E2 [00:21:15]MH_I2C_Read... [00:21:15]Read from MH i2c: E2 62 00 [00:21:15]MH_I2C_Read... [00:21:15]Read from MH i2c: E2 62 00 53 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 6E 06 01 00 0E 04 04 00 64 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 E8 [00: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 6E 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:15]wFMCommunicate OK [00:21:15]SAM_PROTO_GetFieldsCounters done [00:21:15]requested_item shift.num is exist - process it [00:21:15]requested_item shift.opened is exist - process it [00:21:15]req_shift_opened [00:21:15]FM_GetShiftState [00:21:15]SAM_PROTO_GetShiftState [00:21:15]wFMCommunicate request_size=4 [00:21:15]MH_SAM_APDU [00:21:15]CAPDU: 80 13 01 00 [00:21:15]Write to MH i2c: E2 08 00 54 19 80 13 01 00 00 00 00 00 EA [00:21:15]Write i2c OK [00:21:15]MH_I2C_Read... [00:21:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:15]Read from MH i2c: E2 [00:21:15]MH_I2C_Read... [00:21:15]Read from MH i2c: E2 0E 00 [00:21:15]MH_I2C_Read... [00:21:15]Read from MH i2c: E2 0E 00 54 19 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 95 [00:21:15]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [00:21:15]wFMCommunicate OK [00:21:15]SAM_PROTO_GetShiftState done [00:21:15]FM_GetShiftState done [00:21:15]req_shift_opened done [00:21:15]requested_item shift.open_date is exist - process it [00:21:15]req_shift_open_date [00:21:15]req_shift_open_date done [00:21:15]produce_requested_data done [00:21:15]produce_requested_data return {"fd.num":67182,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [00:21:15]process_action_free open_shift [00:21:15]json_value_free [00:21:15]json_value_free done [00:21:15]process_json_proto returns [00:21:15]Send response to host [00:21:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":67182,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [00:21:15]free response buf [00:21:15]execute_script done [00:21:15]execute_script returns [00:21:15]free content buf [00:21:15]Sock 7.Close socket [00:21:15]Sock 7.Thread stoped [00:21:15]accept exits with 9 [00:21:15]New connection [00:21:15]New thread 3066731876 created [00:21:15]Thread 3066588516 joined [00:21:15]Waiting for new connection... [00:21:15] Sock 9.Parse request [00:21:15]Sock 9.Check first char [00:21:15]Sock 9.First char is OK [00:21:15]request: POST /json_proto HTTP/1.0 [00:21:15]Method: POST [00:21:15]URL: /json_proto [00:21:15]Method is POST - this is cgi request [00:21:15]url: /json_proto [00:21:15]query_string will be loaded in cgi processing [00:21:15]execute_cgi json_proto POST (null) [00:21:15]execute_cgi path=json_proto method=POST [00:21:15]POST find Content-Length [00:21:15]Host: 172.17.41.195:8080 [00:21:15]Content-Length: 331 [00:21:15]Content-Type: application/json [00:21:15] [00:21:15]POST finish read [00:21:15]Found Content-Length = 331 [00:21:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:21:15]execute_script... [00:21:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:21:15]POST & json_proto [00:21:15]process_json_proto [00:21:15]json parsed OK: [00:21:15]protocol is kg_v1.0 [00:21:15]action value=get_value [00:21:15]process_action get_value [00:21:15]cmd_get_value [00:21:15]process_action get_value done [00:21:15]requested_data is exist [00:21:15]produce_requested_data [00:21:15]requested_item fm.sale.total is exist - process it [00:21:15]SAM_PROTO_GetFMData [00:21:15]wFMCommunicate request_size=4 [00:21:15]MH_SAM_APDU [00:21:15]CAPDU: 80 13 03 00 [00:21:15]Write to MH i2c: E2 08 00 55 19 80 13 03 00 00 00 00 00 ED [00:21:15]Write i2c OK [00:21:15]MH_I2C_Read... [00:21:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:16]Read from MH i2c: E2 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 FD 00 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 FD 00 55 19 00 C6 04 85 04 C2 04 6E 04 04 00 A6 03 01 00 69 04 A3 00 6F 04 04 00 01 03 01 00 B1 04 05 00 9E B8 0F 19 03 70 04 05 00 DC 65 C5 BE 02 72 04 04 00 C2 52 4A 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8E FF 3A 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 33 D6 04 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 61 [00:21:16]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 A6 03 01 00 69 04 A3 00 6F 04 04 00 01 03 01 00 B1 04 05 00 9E B8 0F 19 03 70 04 05 00 DC 65 C5 BE 02 72 04 04 00 C2 52 4A 5A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8E FF 3A 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 33 D6 04 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 A5 00 00 00 B1 04 04 00 70 3B AE DC 70 04 04 00 70 3B AE 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 75 65 6F 17 EF 03 09 90 00 [00:21:16]wFMCommunicate OK [00:21:16]wFMCommunicate request_size=4 [00:21:16]MH_SAM_APDU [00:21:16]CAPDU: 80 17 00 00 [00:21:16]Write to MH i2c: E2 08 00 56 19 80 17 00 00 00 00 00 00 EF [00:21:16]Write i2c OK [00:21:16]MH_I2C_Read... [00:21:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:16]Read from MH i2c: E2 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 FD 00 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 FD 00 56 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 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 9D [00:21:16]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 13 F3 F3 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 90 00 [00:21:16]wFMCommunicate OK [00:21:16]wFMCommunicate request_size=4 [00:21:16]MH_SAM_APDU [00:21:16]CAPDU: 80 17 00 00 [00:21:16]Write to MH i2c: E2 08 00 57 19 80 17 00 00 00 00 00 00 F0 [00:21:16]Write i2c OK [00:21:16]MH_I2C_Read... [00:21:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:16]Read from MH i2c: E2 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 FD 00 [00:21:16]MH_I2C_Read... [00:21:16]Read from MH i2c: E2 FD 00 57 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 17 [00:21:16]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 90 00 [00:21:16]wFMCommunicate OK [00:21:16]wFMCommunicate request_size=4 [00:21:16]MH_SAM_APDU [00:21:16]CAPDU: 80 17 00 00 [00:21:16]Write to MH i2c: E2 08 00 58 19 80 17 00 00 00 00 00 00 F1 [00:21:16]Write i2c OK [00:21:16]MH_I2C_Read... [00:21:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:17]Read from MH i2c: E2 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 FD 00 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 FD 00 58 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 6C [00:21:17]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:21:17]wFMCommunicate OK [00:21:17]wFMCommunicate request_size=4 [00:21:17]MH_SAM_APDU [00:21:17]CAPDU: 80 17 00 00 [00:21:17]Write to MH i2c: E2 08 00 59 19 80 17 00 00 00 00 00 00 F2 [00:21:17]Write i2c OK [00:21:17]MH_I2C_Read... [00:21:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:21:17]Read from MH i2c: E2 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 E3 00 [00:21:17]MH_I2C_Read... [00:21:17]Read from MH i2c: E2 E3 00 59 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 D1 [00:21:17]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:21:17]wFMCommunicate OK [00:21:17]SAM_PROTO_GetFMData done [00:21:17]requested_item fm.sale_refund.total is exist - process it [00:21:17]requested_item fm.buy.total is exist - process it [00:21:17]requested_item shift.sale.total is exist - process it [00:21:17]SAM_PROTO_GetShiftData [00:21:17]wFMCommunicate request_size=4 [00:21:17]MH_SAM_APDU [00:21:17]CAPDU: 80 13 02 00 [00:21:17]Write to MH i2c: E2 08 00 5A 19 80 13 02 00 00 00 00 00 F1 [00:21:17]Write i2c OK [00:21:17]MH_I2C_Read... [00:21:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:21:18]Read from MH i2c: E2 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 FD 00 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 FD 00 5A 19 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 64 [00:21:18]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:21:18]wFMCommunicate OK [00:21:18]wFMCommunicate request_size=4 [00:21:18]MH_SAM_APDU [00:21:18]CAPDU: 80 17 00 00 [00:21:18]Write to MH i2c: E2 08 00 5B 19 80 17 00 00 00 00 00 00 F4 [00:21:18]Write i2c OK [00:21:18]MH_I2C_Read... [00:21:18]OFD Sender: No OFD packet to send [00:21:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:18]Read from MH i2c: E2 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 FD 00 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 FD 00 5B 19 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 FC [00:21:18]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:21:18]wFMCommunicate OK [00:21:18]wFMCommunicate request_size=4 [00:21:18]MH_SAM_APDU [00:21:18]CAPDU: 80 17 00 00 [00:21:18]Write to MH i2c: E2 08 00 5C 19 80 17 00 00 00 00 00 00 F5 [00:21:18]Write i2c OK [00:21:18]MH_I2C_Read... [00:21:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:18]Read from MH i2c: E2 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 FD 00 [00:21:18]MH_I2C_Read... [00:21:18]Read from MH i2c: E2 FD 00 5C 19 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 C7 [00:21:19]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:21:19]wFMCommunicate OK [00:21:19]wFMCommunicate request_size=4 [00:21:19]MH_SAM_APDU [00:21:19]CAPDU: 80 17 00 00 [00:21:19]Write to MH i2c: E2 08 00 5D 19 80 17 00 00 00 00 00 00 F6 [00:21:19]Write i2c OK [00:21:19]MH_I2C_Read... [00:21:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:19]Read from MH i2c: E2 [00:21:19]MH_I2C_Read... [00:21:19]Read from MH i2c: E2 FD 00 [00:21:19]MH_I2C_Read... [00:21:19]Read from MH i2c: E2 FD 00 5D 19 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 68 [00:21:19]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:21:19]wFMCommunicate OK [00:21:19]wFMCommunicate request_size=4 [00:21:19]MH_SAM_APDU [00:21:19]CAPDU: 80 17 00 00 [00:21:19]Write to MH i2c: E2 08 00 5E 19 80 17 00 00 00 00 00 00 F7 [00:21:19]Write i2c OK [00:21:19]MH_I2C_Read... [00:21:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:21:19]Read from MH i2c: E2 [00:21:19]MH_I2C_Read... [00:21:19]Read from MH i2c: E2 BD 00 [00:21:19]MH_I2C_Read... [00:21:19]Read from MH i2c: E2 BD 00 5E 19 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 DD [00:21:19]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:21:19]wFMCommunicate OK [00:21:19]SAM_PROTO_GetShiftData done [00:21:19]requested_item shift.sale.total_cash is exist - process it [00:21:19]requested_item shift.sale_refund.total is exist - process it [00:21:19]requested_item shift.sale_refund.total_cash is exist - process it [00:21:19]requested_item shift.buy.total is exist - process it [00:21:19]requested_item shift.buy.total_cash is exist - process it [00:21:19]produce_requested_data done [00:21:19]produce_requested_data return {"fm.sale.total":133053625.90,"fm.sale_refund.total":37024060.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:21:19]process_action_free get_value [00:21:19]json_value_free [00:21:19]json_value_free done [00:21:19]process_json_proto returns [00:21:19]Send response to host [00:21:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":133053625.90,"fm.sale_refund.total":37024060.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:21:19]free response buf [00:21:19]execute_script done [00:21:19]execute_script returns [00:21:19]free content buf [00:21:19]Sock 9.Close socket [00:21:19]Sock 9.Thread stoped [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]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:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]accept exits with 7 [00:44:59]New connection [00:44:59]New thread 3066588516 created [00:44:59]Thread 3066731876 joined [00:44:59]Waiting for new connection... [00:44:59] Sock 7.Parse request [00:44:59]Sock 7.Check first char [00:44:59]Sock 7.First char is OK [00:44:59]request: POST /json_proto HTTP/1.0 [00:44:59]Method: POST [00:44:59]URL: /json_proto [00:44:59]Method is POST - this is cgi request [00:44:59]url: /json_proto [00:44:59]query_string will be loaded in cgi processing [00:44:59]execute_cgi json_proto POST (null) [00:44:59]execute_cgi path=json_proto method=POST [00:44:59]POST find Content-Length [00:44:59]Host: 172.17.41.195:8080 [00:44:59]Content-Length: 622 [00:44:59]Content-Type: application/json [00:44:59] [00:44:59]POST finish read [00:44:59]Found Content-Length = 622 [00:44:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12059", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 128.00, "quantity" : 1.000, "sum" : 128.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 128.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:44:59]execute_script... [00:44: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 : (3)12059", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 128.00, "quantity" : 1.000, "sum" : 128.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 128.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:44:59]POST & json_proto [00:44:59]process_json_proto [00:44:59]json parsed OK: [00:44:59]protocol is kg_v1.0 [00:44:59]action value=close_receipt [00:44:59]process_action close_receipt [00:44:59]cmd_close_receipt [00:44:59]MH_GetDate [00:44:59]Write to MH i2c: F0 00 00 5F 19 67 [00:44:59]Write i2c OK [00:44:59]MH_I2C_Read... [00:44:59]Read from MH i2c: F0 [00:44:59]MH_I2C_Read... [00:44:59]Read from MH i2c: F0 09 00 [00:44:59]MH_I2C_Read... [00:44:59]Read from MH i2c: F0 09 00 5F 19 00 8D 05 44 66 FC 21 6F 64 9C [00:44:59]GetLastDocTimeStamp 1715732471 [00:44:59]current date 1715733901 [00:44:59]FM_GetShiftState [00:44:59]SAM_PROTO_GetShiftState [00:44:59]wFMCommunicate request_size=4 [00:44:59]MH_SAM_APDU [00:44:59]CAPDU: 80 13 01 00 [00:44:59]Write to MH i2c: E2 08 00 60 19 80 13 01 00 00 00 00 00 F6 [00:44:59]Write i2c OK [00:44:59]MH_I2C_Read... [00:44:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:59]Read from MH i2c: E2 [00:44:59]MH_I2C_Read... [00:44:59]Read from MH i2c: E2 0E 00 [00:44:59]MH_I2C_Read... [00:44:59]Read from MH i2c: E2 0E 00 60 19 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 A1 [00:44:59]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [00:44:59]wFMCommunicate OK [00:44:59]SAM_PROTO_GetShiftState done [00:44:59]FM_GetShiftState done [00:44:59]opened in 1715732471 [00:44:59]opened+sec_in_day 1715818871 [00:44:59]quantity*price = 12800 [00:44:59]sum+1 = 12801 [00:44:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 128.00 НСП 1% : 1.13 НДС 12% : 13.59 Наличными: 128.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 1 15.05.2024 00:45 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67183 ФПД: 32352427819974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T004501&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67183&fm=32352427819974&tin=02508201610067®Number=0000000000091845&sum=12800 0 [00:45:00]StoreToDocumentArchive [00:45:00]shift 356 fd 67183 [00:45:00]save to /storage/0356/doc_00067183 [00:45:00]save last doc name /storage/0356/doc_00067183 to /storage/kkm_last_doc_name [00:45:00]save OK [00:45:00]Clear old archive folders... [00:45:00]ProcessDocumentItem done err = 0, tmpTLVsize=275 [00:45:00]tlvbuf is 00380D80 [00:45:00]SAM_PROTO_ClearQueue [00:45:00]wFMCommunicate request_size=4 [00:45:00]MH_SAM_APDU [00:45:00]CAPDU: 80 09 00 00 [00:45:00]Write to MH i2c: E2 08 00 6D 19 80 09 00 00 00 00 00 00 F8 [00:45:00]Write i2c OK [00:45:00]MH_I2C_Read... [00:45:00]Read from MH i2c: E2 [00:45:00]MH_I2C_Read... [00:45:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:45:00]Read from MH i2c: E2 03 00 [00:45:00]MH_I2C_Read... [00:45:00]Read from MH i2c: E2 03 00 6D 19 00 90 00 FA [00:45:00]RAPDU: 90 00 [00:45:00]wFMCommunicate OK [00:45:00]SAM_PROTO_ClearQueue done [00:45:00]KKMCreateOFDPacket [00:45:00]OFDProtocolAddRootSTLVToBuf [00:45:00]FM_MakeSignedData [00:45:00]FM_MakeSignedData [00:45:00]SAM_PROTO_SignData [00:45:00]wFMCommunicate request_size=4 [00:45:00]MH_SAM_APDU [00:45:00]CAPDU: 80 0D 01 02 [00:45:00]Write to MH i2c: E2 08 00 6E 19 80 0D 01 02 00 00 00 00 00 [00:45:00]Write i2c OK [00:45:00]MH_I2C_Read... [00:45:00]Read from MH i2c: E2 [00:45:00]MH_I2C_Read... [00:45:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:45:00]Read from MH i2c: E2 03 00 [00:45:00]MH_I2C_Read... [00:45:00]Read from MH i2c: E2 03 00 6E 19 00 90 00 FB [00:45:00]RAPDU: 90 00 [00:45:00]wFMCommunicate OK [00:45:00]wFMCommunicate request_size=255 [00:45:00]MH_SAM_APDU [00:45:00]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 8D 05 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 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:45:00]Write to MH i2c: E2 02 01 6F 19 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 8D 05 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 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 D9 [00:45:00]Write i2c OK [00:45:00]MH_I2C_Read... [00:45:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:00]Read from MH i2c: E2 [00:45:00]MH_I2C_Read... [00:45:00]Read from MH i2c: E2 03 00 [00:45:00]MH_I2C_Read... [00:45:00]Read from MH i2c: E2 03 00 6F 19 00 90 00 FC [00:45:00]RAPDU: 90 00 [00:45:00]wFMCommunicate OK [00:45:00]wFMCommunicate request_size=34 [00:45:00]MH_SAM_APDU [00:45:00]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6F 06 01 00 35 04 06 00 1D 6C A2 F7 C3 C6 [00:45:00]Write to MH i2c: E2 25 00 70 19 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 32 39 10 04 04 00 6F 06 01 00 35 04 06 00 1D 6C A2 F7 C3 C6 00 00 E8 [00:45:00]Write i2c OK [00:45:00]MH_I2C_Read... [00:45:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:45:01]Read from MH i2c: E2 [00:45:01]MH_I2C_Read... [00:45:01]Read from MH i2c: E2 03 00 [00:45:01]MH_I2C_Read... [00:45:01]Read from MH i2c: E2 03 00 70 19 00 90 00 FD [00:45:01]RAPDU: 90 00 [00:45:01]wFMCommunicate OK [00:45:01]wFMCommunicate request_size=4 [00:45:01]MH_SAM_APDU [00:45:01]CAPDU: 80 0D 03 02 [00:45:01]Write to MH i2c: E2 08 00 71 19 80 0D 03 02 00 00 00 00 05 [00:45:01]Write i2c OK [00:45:01]MH_I2C_Read... [00:45:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:45:01]Read from MH i2c: E2 [00:45:01]MH_I2C_Read... [00:45:01]Read from MH i2c: E2 0B 00 [00:45:01]MH_I2C_Read... [00:45:01]Read from MH i2c: E2 0B 00 71 19 00 12 0F 22 00 94 76 E9 BB 90 00 F7 [00:45:01]RAPDU: 12 0F 22 00 94 76 E9 BB 90 00 [00:45:01]wFMCommunicate OK [00:45:01]SAM_PROTO_SignData done [00:45:01]FM_MakeSignedData done [00:45:01]CreateOFDProtocolMessage [00:45:01]wFMCommunicate request_size=4 [00:45:01]MH_SAM_APDU [00:45:01]CAPDU: 80 11 00 00 [00:45:01]Write to MH i2c: E2 08 00 72 19 80 11 00 00 00 00 00 00 05 [00:45:01]Write i2c OK [00:45:01]MH_I2C_Read... [00:45:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:01]Read from MH i2c: E2 [00:45:01]MH_I2C_Read... [00:45:01]Read from MH i2c: E2 17 00 [00:45:01]MH_I2C_Read... [00:45:01]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: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 [00:45:01]wFMCommunicate OK [00:45:01]CreateOFDProtocolMessage done [00:45:01]OFDSenderStorePacket 67183 [00:45:01]StoreOFDPacket docnum=67183 [00:45: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 27 01 00 00 A2 71 1F 01 BE B4 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 8D 05 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 1D 6C A2 F7 C3 C6 12 0F 22 00 94 76 E9 BB [00:45:01]CheckFolder [00:45:01]dirname=/storage/ofd_packets [00:45:01]CheckFolder done [00:45:01]ProducePacketName [00:45:01]name=ofd_packets/00067183 [00:45:01]NVStorageSaveData ofd_packets/00067183 [00:45:01]File name is /storage/ofd_packets/00067183 [00:45:01]Write 325 bytes [00:45:01]NVStorageSaveData done [00:45:01]OFDSenderStorePacket done [00:45:01]KKMCreateOFDPacket done [00:45:01]NVStorageSaveData kkm_last_timestamp [00:45:01]File name is /storage/kkm_last_timestamp [00:45:01]Write 4 bytes [00:45:01]NVStorageSaveData done [00:45:01]ExternCall_PrintAddStr [00:45:01]wPrintStart [00:45:01]Write to MH i2c: 01 00 00 73 19 8C [00:45:01]Write i2c OK [00:45:01]MH_I2C_Read... [00:45:01]Read from MH i2c: 01 [00:45:01]MH_I2C_Read... [00:45:01]Read from MH i2c: 01 07 00 [00:45:01]MH_I2C_Read... [00:45:01]Read from MH i2c: 01 07 00 73 19 00 00 00 00 00 FF 0F A1 [00:45:01]RasterBufferAndPrint [00:45:01]line Счет N : (3)12059 [00:45:01]line ИНН: 02508201610067 [00:45:01]line Контрольно-Кассовый Чек [00:45:01]line ПРОДАЖА [00:45:01]line Товар: 48743587 [00:45:01]line Сигареты Winston XStyle Silver [00:45:01]line 1.000 * 128.00 [00:45:01]line = 128.00 [00:45:01]line НДС 12% НСП 1% [00:45:01]line > о реализуемом товаре [00:45:01]line ИТОГО: 128.00 [00:45:01]line НСП 1% : 1.13 [00:45:01]line НДС 12% : 13.59 [00:45:01]line Наличными: 128.00 [00:45:01]line Безнал.: 0.00 [00:45:01]line Место: АЗС № 91 "Партнер Нефть" [00:45:01]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [00:45:01]line СНО: Общий режим [00:45:01]line Чек 1 15.05.2024 00:45 [00:45:01]line Смена: 356 ФФД: 1.0 [00:45:01]line ЗНМ: 0300000119 [00:45:01]line РНМ: 0000000000091845 [00:45:01]line Версия ККМ: 001 [00:45:01]line ФМ: 0000000000871829 [00:45:01]line ФД: 67183 [00:45:01]line ФПД: 32352427819974 [00:45:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T004501&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67183&fm=32352427819974&tin=02508201610067®Number=0000000000091845&sum=12800 [00:45:01]OFD Sender: Processing packet 67183 [packets to send 35, broken 34] [00:45:01]ProducePacketName [00:45:01]name=ofd_packets/00067183 [00:45:01]OFD Sender: To server: pG, [00:45:01]CommunicateWithHost lk.salyk.kg:30040 [00:45:01]ConnectInit lk.salyk.kg [00:45:01]line 0 [00:45:01]written 0, free lines is 4095 [00:45:01]Connected sock=10 [00:45: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 27 01 00 00 A2 71 1F 01 BE B4 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 8D 05 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 1D 6C A2 F7 C3 C6 12 0F 22 00 94 76 E9 BB [00:45: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 A4 F0 47 00 86 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 6F 06 01 00 F4 03 04 00 6B AD 43 66 B6 04 01 00 00 A7 01 98 E3 92 D4 C9 54 [00:45:01]CommunicateWithHost err = 0 [00:45:01]CheckOFDResponse [00:45:01]1017 (14) - 77093643461234 [00:45:01]1041 (16) - 0000000000871829 [00:45:01]1040 (4) - 67183 [00:45:01]1012 (4) - 14.05.2024 18:28 [00:45:01]1206 (1) - 0 [00:45:01]OFD Sender: Remove packet 67183 [00:45:01]ProducePacketName [00:45:01]name=ofd_packets/00067183 [00:45:01]NVStorageDeleteData [00:45:01]Write to MH i2c: 01 00 00 9B 19 B4 [00:45:01]Write i2c OK [00:45:01]MH_I2C_Read... [00:45:01]Read from MH i2c: 01 [00:45:01]MH_I2C_Read... [00:45:01]Read from MH i2c: 01 07 00 [00:45:01]MH_I2C_Read... [00:45:01]Read from MH i2c: 01 07 00 9B 19 00 00 00 00 00 D0 0C 97 [00:45:01]RasterBufferAndPrint [00:45:01]line [00:45:01]line [00:45:01]line [00:45:01]line [00:45:01]line [00:45:01]written 0, free lines is 3285 [00:45:01]MH_Cut [00:45:01]Write to MH i2c: D1 01 00 A2 19 01 8D [00:45:01]Write i2c OK [00:45:01]MH_I2C_Read... [00:45:01]Read from MH i2c: D1 [00:45:01]MH_I2C_Read... [00:45:01]Read from MH i2c: D1 01 00 [00:45:01]MH_I2C_Read... [00:45:01]Read from MH i2c: D1 01 00 A2 19 00 8C [00:45:01]Write to MH i2c: 01 00 00 A3 19 BC [00:45:01]Write i2c OK [00:45:01]MH_I2C_Read... [00:45:02]OFD Sender: No OFD packet to send [00:45:02]*** Cut start [00:45:02]*** Purtial cut [00:45:02]*** Stage 1: CUTSNS_PIN = 1 [00:45:03]Read from MH i2c: 01 [00:45:03]MH_I2C_Read... [00:45:03]*** Stop cut motor [00:45:03]*** Cut end [00:45:03]Read from MH i2c: 01 07 00 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: 01 07 00 A3 19 00 00 00 00 00 FF 0F D1 [00:45:03]process_action close_receipt done [00:45:03]requested_data is exist [00:45:03]produce_requested_data [00:45:03]requested_item fm.sn is exist - process it [00:45:03]wFMCommunicate request_size=4 [00:45:03]MH_SAM_APDU [00:45:03]CAPDU: 80 11 00 00 [00:45:03]Write to MH i2c: E2 08 00 A4 19 80 11 00 00 00 00 00 00 37 [00:45:03]Write i2c OK [00:45:03]MH_I2C_Read... [00:45:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:45:03]Read from MH i2c: E2 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: E2 17 00 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: E2 17 00 A4 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 8D [00:45:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [00:45:03]wFMCommunicate OK [00:45:03]requested_item fd.num is exist - process it [00:45:03]SAM_PROTO_GetFieldsCounters [00:45:03]wFMCommunicate request_size=4 [00:45:03]MH_SAM_APDU [00:45:03]CAPDU: 80 13 00 00 [00:45:03]Write to MH i2c: E2 08 00 A5 19 80 13 00 00 00 00 00 00 3A [00:45:03]Write i2c OK [00:45:03]MH_I2C_Read... [00:45:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:45:03]Read from MH i2c: E2 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: E2 62 00 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: E2 62 00 A5 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 6F 06 01 00 0E 04 04 00 64 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 3E [00:45: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 6F 06 01 00 0E 04 04 00 64 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:45:03]wFMCommunicate OK [00:45:03]SAM_PROTO_GetFieldsCounters done [00:45:03]requested_item shift.num is exist - process it [00:45:03]requested_item shift.opened is exist - process it [00:45:03]req_shift_opened [00:45:03]FM_GetShiftState [00:45:03]SAM_PROTO_GetShiftState [00:45:03]wFMCommunicate request_size=4 [00:45:03]MH_SAM_APDU [00:45:03]CAPDU: 80 13 01 00 [00:45:03]Write to MH i2c: E2 08 00 A6 19 80 13 01 00 00 00 00 00 3C [00:45:03]Write i2c OK [00:45:03]MH_I2C_Read... [00:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:45:03]Read from MH i2c: E2 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: E2 0E 00 [00:45:03]MH_I2C_Read... [00:45:03]Read from MH i2c: E2 0E 00 A6 19 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 E7 [00:45:03]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [00:45:03]wFMCommunicate OK [00:45:03]SAM_PROTO_GetShiftState done [00:45:03]FM_GetShiftState done [00:45:03]req_shift_opened done [00:45:03]requested_item shift.open_date is exist - process it [00:45:03]req_shift_open_date [00:45:03]req_shift_open_date done [00:45:03]produce_requested_data done [00:45:03]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67183,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [00:45:03]process_action_free close_receipt [00:45:03]json_value_free [00:45:03]json_value_free done [00:45:03]process_json_proto returns [00:45:03]Send response to host [00:45:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67183,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [00:45:03]free response buf [00:45:03]execute_script done [00:45:03]execute_script returns [00:45:03]free content buf [00:45:03]Sock 7.Close socket [00:45:03]Sock 7.Thread stoped [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:31]accept exits with 9 [00:46:31]New connection [00:46:31]New thread 3066731876 created [00:46:31]Thread 3066588516 joined [00:46:31]Waiting for new connection... [00:46:31] Sock 9.Parse request [00:46:31]Sock 9.Check first char [00:46:31]Sock 9.First char is OK [00:46:31]request: POST /json_proto HTTP/1.0 [00:46:31]Method: POST [00:46:31]URL: /json_proto [00:46:31]Method is POST - this is cgi request [00:46:31]url: /json_proto [00:46:31]query_string will be loaded in cgi processing [00:46:31]execute_cgi json_proto POST (null) [00:46:31]execute_cgi path=json_proto method=POST [00:46:31]POST find Content-Length [00:46:31]Host: 172.17.41.195:8080 [00:46:31]Content-Length: 1209 [00:46:31]Content-Type: application/json [00:46:31] [00:46:31]POST finish read [00:46:31]Found Content-Length = 1209 [00:46:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507089\u000A15.05.2024 00: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 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" ] } } [00:46:31]execute_script... [00:46:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507089\u000A15.05.2024 00: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 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" ] } } [00:46:31]POST & json_proto [00:46:31]process_json_proto [00:46:31]json parsed OK: [00:46:31]protocol is kg_v1.0 [00:46:31]action value=print_text [00:46:31]process_action print_text [00:46:31]cmd_print_text [00:46:31]ExternCall_PrintAddStr [00:46:31]wPrintStart [00:46:31]Write to MH i2c: 01 00 00 A7 19 C0 [00:46:31]Write i2c OK [00:46:31]MH_I2C_Read... [00:46:31]Read from MH i2c: 01 [00:46:31]MH_I2C_Read... [00:46:31]Read from MH i2c: 01 07 00 [00:46:31]MH_I2C_Read... [00:46:31]Read from MH i2c: 01 07 00 A7 19 00 00 00 00 00 FF 0F D5 [00:46:31]RasterBufferAndPrint [00:46:31]line *****ТОВАРНЫЙ ЧЕК***** [00:46:31]line АЗС-91 [00:46:31]line Партнер нефть [00:46:31]line 02508201610067 [00:46:31]line Кассир : Арстанбеков Н. [00:46:31]line Счет N : (1)507089 [00:46:31]line 15.05.2024 00:29 [00:46:31]line ПРОДАЖА [00:46:31]line ТРК (МРК, ГНК): 11 [00:46:31]line Вид ГСМ : 2710194210 [00:46:31]line ДТ-К-5 [00:46:31]line 40.000 x 74.70 [00:46:31]line ИТОГ: 2988.00 [00:46:31]line Тип оплаты: Талоны: Топливная Карта [00:46:31]line 02750 [00:46:31]line ______________________ [00:46:31]line (подпись) [00:46:31]written 0, free lines is 4095 [00:46:31]Write to MH i2c: 01 00 00 BB 19 D4 [00:46:31]Write i2c OK [00:46:31]MH_I2C_Read... [00:46:31]Read from MH i2c: 01 [00:46:31]MH_I2C_Read... [00:46:31]Read from MH i2c: 01 07 00 [00:46:31]MH_I2C_Read... [00:46:31]Read from MH i2c: 01 07 00 BB 19 00 00 00 00 00 0F 0E F8 [00:46:31]RasterBufferAndPrint [00:46:31]line [00:46:31]line [00:46:31]line [00:46:31]line [00:46:31]line [00:46:31]written 0, free lines is 3600 [00:46:31]MH_Cut [00:46:31]Write to MH i2c: D1 01 00 C2 19 01 AD [00:46:31]Write i2c OK [00:46:31]MH_I2C_Read... [00:46:31]Read from MH i2c: D1 [00:46:31]MH_I2C_Read... [00:46:31]Read from MH i2c: D1 01 00 [00:46:31]MH_I2C_Read... [00:46:31]Read from MH i2c: D1 01 00 C2 19 00 AC [00:46:31]Write to MH i2c: 01 00 00 C3 19 DC [00:46:31]Write i2c OK [00:46:31]MH_I2C_Read... [00:46:32]OFD Sender: No OFD packet to send [00:46:32]*** Cut start [00:46:32]*** Purtial cut [00:46:32]*** CUTSNS_PIN = 0 [00:46:32]*** Stage 1: CUTSNS_PIN = 1 [00:46:34]Read from MH i2c: 01 [00:46:34]MH_I2C_Read... [00:46:34]Read from MH i2c: 01 07 00 [00:46:34]MH_I2C_Read... [00:46:34]*** Stop cut motor [00:46:34]*** Cut end [00:46:34]Read from MH i2c: 01 07 00 C3 19 00 00 00 00 00 FF 0F F1 [00:46:34]process_action print_text done [00:46:34]requested_data is exist [00:46:34]produce_requested_data [00:46:34]requested_item fm.sn is exist - process it [00:46:34]wFMCommunicate request_size=4 [00:46:34]MH_SAM_APDU [00:46:34]CAPDU: 80 11 00 00 [00:46:34]Write to MH i2c: E2 08 00 C4 19 80 11 00 00 00 00 00 00 57 [00:46:34]Write i2c OK [00:46:34]MH_I2C_Read... [00:46:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:46:34]Read from MH i2c: E2 [00:46:34]MH_I2C_Read... [00:46:34]Read from MH i2c: E2 17 00 [00:46:34]MH_I2C_Read... [00:46:34]Read from MH i2c: E2 17 00 C4 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AD [00: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 [00:46:34]wFMCommunicate OK [00:46:34]requested_item fd.num is exist - process it [00:46:34]SAM_PROTO_GetFieldsCounters [00:46:34]wFMCommunicate request_size=4 [00:46:34]MH_SAM_APDU [00:46:34]CAPDU: 80 13 00 00 [00:46:34]Write to MH i2c: E2 08 00 C5 19 80 13 00 00 00 00 00 00 5A [00:46:34]Write i2c OK [00:46:34]MH_I2C_Read... [00:46:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:46:34]Read from MH i2c: E2 [00:46:34]MH_I2C_Read... [00:46:34]Read from MH i2c: E2 62 00 [00:46:34]MH_I2C_Read... [00:46:34]Read from MH i2c: E2 62 00 C5 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 6F 06 01 00 0E 04 04 00 64 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: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 6F 06 01 00 0E 04 04 00 64 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:46:34]wFMCommunicate OK [00:46:34]SAM_PROTO_GetFieldsCounters done [00:46:34]requested_item shift.num is exist - process it [00:46:34]requested_item shift.opened is exist - process it [00:46:34]req_shift_opened [00:46:34]FM_GetShiftState [00:46:34]SAM_PROTO_GetShiftState [00:46:34]wFMCommunicate request_size=4 [00:46:34]MH_SAM_APDU [00:46:34]CAPDU: 80 13 01 00 [00:46:34]Write to MH i2c: E2 08 00 C6 19 80 13 01 00 00 00 00 00 5C [00:46:34]Write i2c OK [00:46:34]MH_I2C_Read... [00:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:46:34]Read from MH i2c: E2 [00:46:34]MH_I2C_Read... [00:46:34]Read from MH i2c: E2 0E 00 [00:46:34]MH_I2C_Read... [00:46:34]Read from MH i2c: E2 0E 00 C6 19 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 07 [00:46:34]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [00:46:34]wFMCommunicate OK [00:46:34]SAM_PROTO_GetShiftState done [00:46:34]FM_GetShiftState done [00:46:34]req_shift_opened done [00:46:34]requested_item shift.open_date is exist - process it [00:46:34]req_shift_open_date [00:46:34]req_shift_open_date done [00:46:34]produce_requested_data done [00:46:34]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67183,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [00:46:34]process_action_free print_text [00:46:34]json_value_free [00:46:34]json_value_free done [00:46:34]process_json_proto returns [00:46:34]Send response to host [00:46:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67183,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [00:46:34]free response buf [00:46:34]execute_script done [00:46:34]execute_script returns [00:46:34]free content buf [00:46:34]Sock 9.Close socket [00:46:34]Sock 9.Thread stoped [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:22]OFD Sender: No OFD packet to send [00:48:27]OFD Sender: No OFD packet to send [00:48:32]OFD Sender: No OFD packet to send [00:48:37]OFD Sender: No OFD packet to send [00:48:42]OFD Sender: No OFD packet to send [00:48:47]OFD Sender: No OFD packet to send [00:48:52]OFD Sender: No OFD packet to send [00:48:57]OFD Sender: No OFD packet to send [00:49:02]OFD Sender: No OFD packet to send [00:49:07]OFD Sender: No OFD packet to send [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49:42]OFD Sender: No OFD packet to send [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:18]OFD Sender: No OFD packet to send [00:58:23]OFD Sender: No OFD packet to send [00:58:28]OFD Sender: No OFD packet to send [00:58:33]OFD Sender: No OFD packet to send [00:58:38]OFD Sender: No OFD packet to send [00:58:43]OFD Sender: No OFD packet to send [00:58:48]OFD Sender: No OFD packet to send [00:58:53]OFD Sender: No OFD packet to send [00:58:58]OFD Sender: No OFD packet to send [00:59:03]OFD Sender: No OFD packet to send [00:59:08]OFD Sender: No OFD packet to send [00:59:13]OFD Sender: No OFD packet to send [00:59:18]OFD Sender: No OFD packet to send [00:59:23]OFD Sender: No OFD packet to send [00:59:28]OFD Sender: No OFD packet to send [00:59:33]OFD Sender: No OFD packet to send [00:59:38]OFD Sender: No OFD packet to send [00:59:43]OFD Sender: No OFD packet to send [00:59:48]OFD Sender: No OFD packet to send [00:59:53]OFD Sender: No OFD packet to send [00:59:58]OFD Sender: No OFD packet to send [01:00:03]OFD Sender: No OFD packet to send [01:00:08]OFD Sender: No OFD packet to send [01:00:13]OFD Sender: No OFD packet to send [01:00:18]OFD Sender: No OFD packet to send [01:00:23]OFD Sender: No OFD packet to send [01:00:28]OFD Sender: No OFD packet to send [01:00:33]OFD Sender: No OFD packet to send [01:00:38]OFD Sender: No OFD packet to send [01:00:43]OFD Sender: No OFD packet to send [01:00:48]OFD Sender: No OFD packet to send [01:00:53]OFD Sender: No OFD packet to send [01:00:58]OFD Sender: No OFD packet to send [01:01:03]OFD Sender: No OFD packet to send [01:01:08]OFD Sender: No OFD packet to send [01:01:13]OFD Sender: No OFD packet to send [01:01:18]OFD Sender: No OFD packet to send [01:01:23]OFD Sender: No OFD packet to send [01:01:28]OFD Sender: No OFD packet to send [01:01:33]OFD Sender: No OFD packet to send [01:01:38]OFD Sender: No OFD packet to send [01:01:43]OFD Sender: No OFD packet to send [01:01:48]OFD Sender: No OFD packet to send [01:01:53]OFD Sender: No OFD packet to send [01:01:58]OFD Sender: No OFD packet to send [01:02:03]OFD Sender: No OFD packet to send [01:02:08]OFD Sender: No OFD packet to send [01:02:13]OFD Sender: No OFD packet to send [01:02:18]OFD Sender: No OFD packet to send [01:02:23]OFD Sender: No OFD packet to send [01:02:28]OFD Sender: No OFD packet to send [01:02:33]OFD Sender: No OFD packet to send [01:02:38]OFD Sender: No OFD packet to send [01:02:43]OFD Sender: No OFD packet to send [01:02:48]OFD Sender: No OFD packet to send [01:02:53]OFD Sender: No OFD packet to send [01:02:58]OFD Sender: No OFD packet to send [01:03:03]OFD Sender: No OFD packet to send [01:03:08]OFD Sender: No OFD packet to send [01:03:13]OFD Sender: No OFD packet to send [01:03:18]OFD Sender: No OFD packet to send [01:03:23]OFD Sender: No OFD packet to send [01:03:28]OFD Sender: No OFD packet to send [01:03:33]OFD Sender: No OFD packet to send [01:03:38]OFD Sender: No OFD packet to send [01:03:43]OFD Sender: No OFD packet to send [01:03:48]OFD Sender: No OFD packet to send [01:03:53]OFD Sender: No OFD packet to send [01:03:58]OFD Sender: No OFD packet to send [01:04:03]OFD Sender: No OFD packet to send [01:04:08]OFD Sender: No OFD packet to send [01:04:13]OFD Sender: No OFD packet to send [01:04:18]OFD Sender: No OFD packet to send [01:04:23]OFD Sender: No OFD packet to send [01:04:28]OFD Sender: No OFD packet to send [01:04:33]OFD Sender: No OFD packet to send [01:04:38]OFD Sender: No OFD packet to send [01:04:43]OFD Sender: No OFD packet to send [01:04:48]OFD Sender: No OFD packet to send [01:04:53]OFD Sender: No OFD packet to send [01:04:58]OFD Sender: No OFD packet to send [01:05:03]OFD Sender: No OFD packet to send [01:05:08]OFD Sender: No OFD packet to send [01:05:13]OFD Sender: No OFD packet to send [01:05:18]OFD Sender: No OFD packet to send [01:05:23]OFD Sender: No OFD packet to send [01:05:28]OFD Sender: No OFD packet to send [01:05:33]OFD Sender: No OFD packet to send [01:05:38]OFD Sender: No OFD packet to send [01:05:43]OFD Sender: No OFD packet to send [01:05:48]OFD Sender: No OFD packet to send [01:05:53]OFD Sender: No OFD packet to send [01:05:58]OFD Sender: No OFD packet to send [01:06:03]OFD Sender: No OFD packet to send [01:06:08]OFD Sender: No OFD packet to send [01:06:13]OFD Sender: No OFD packet to send [01:06:18]OFD Sender: No OFD packet to send [01:06:23]OFD Sender: No OFD packet to send [01:06:28]OFD Sender: No OFD packet to send [01:06:33]OFD Sender: No OFD packet to send [01:06:38]OFD Sender: No OFD packet to send [01:06:43]OFD Sender: No OFD packet to send [01:06:48]OFD Sender: No OFD packet to send [01:06:53]OFD Sender: No OFD packet to send [01:06:58]OFD Sender: No OFD packet to send [01:07:03]OFD Sender: No OFD packet to send [01:07:08]OFD Sender: No OFD packet to send [01:07:13]OFD Sender: No OFD packet to send [01:07:18]OFD Sender: No OFD packet to send [01:07:23]OFD Sender: No OFD packet to send [01:07:28]OFD Sender: No OFD packet to send [01:07:33]OFD Sender: No OFD packet to send [01:07:38]OFD Sender: No OFD packet to send [01:07:43]OFD Sender: No OFD packet to send [01:07:48]OFD Sender: No OFD packet to send [01:07:53]OFD Sender: No OFD packet to send [01:07:58]OFD Sender: No OFD packet to send [01:08:03]OFD Sender: No OFD packet to send [01:08:08]OFD Sender: No OFD packet to send [01:08:13]OFD Sender: No OFD packet to send [01:08:18]OFD Sender: No OFD packet to send [01:08:23]OFD Sender: No OFD packet to send [01:08:28]OFD Sender: No OFD packet to send [01:08:33]OFD Sender: No OFD packet to send [01:08:38]OFD Sender: No OFD packet to send [01:08:43]OFD Sender: No OFD packet to send [01:08:48]OFD Sender: No OFD packet to send [01:08:53]OFD Sender: No OFD packet to send [01:08:58]OFD Sender: No OFD packet to send [01:09:03]OFD Sender: No OFD packet to send [01:09:08]OFD Sender: No OFD packet to send [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:33]OFD Sender: No OFD packet to send [01:09:38]OFD Sender: No OFD packet to send [01:09:43]OFD Sender: No OFD packet to send [01:09:48]OFD Sender: No OFD packet to send [01:09:53]OFD Sender: No OFD packet to send [01:09:58]OFD Sender: No OFD packet to send [01:10:03]OFD Sender: No OFD packet to send [01:10:08]OFD Sender: No OFD packet to send [01:10:13]OFD Sender: No OFD packet to send [01:10:18]OFD Sender: No OFD packet to send [01:10:23]OFD Sender: No OFD packet to send [01:10:28]OFD Sender: No OFD packet to send [01:10:33]OFD Sender: No OFD packet to send [01:10:38]OFD Sender: No OFD packet to send [01:10:43]OFD Sender: No OFD packet to send [01:10:48]OFD Sender: No OFD packet to send [01:10:53]OFD Sender: No OFD packet to send [01:10:58]OFD Sender: No OFD packet to send [01:11:03]OFD Sender: No OFD packet to send [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:53]OFD Sender: No OFD packet to send [01:11:58]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:34]accept exits with 7 [01:18:34]New connection [01:18:34]New thread 3066588516 created [01:18:34]Thread 3066731876 joined [01:18:34]Waiting for new connection... [01:18:34] Sock 7.Parse request [01:18:34]Sock 7.Check first char [01:18:34]Sock 7.First char is OK [01:18:34]request: POST /json_proto HTTP/1.0 [01:18:34]Method: POST [01:18:34]URL: /json_proto [01:18:34]Method is POST - this is cgi request [01:18:34]url: /json_proto [01:18:34]query_string will be loaded in cgi processing [01:18:34]execute_cgi json_proto POST (null) [01:18:34]execute_cgi path=json_proto method=POST [01:18:34]POST find Content-Length [01:18:34]Host: 172.17.41.195:8080 [01:18:34]Content-Length: 682 [01:18:34]Content-Type: application/json [01:18:34] [01:18:34]POST finish read [01:18:34]Found Content-Length = 682 [01:18:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 16.470, "sum" : 1100.20, "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" ] } } [01:18:34]execute_script... [01:18: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)507090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 16.470, "sum" : 1100.20, "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" ] } } [01:18:34]POST & json_proto [01:18:34]process_json_proto [01:18:34]json parsed OK: [01:18:34]protocol is kg_v1.0 [01:18:34]action value=close_receipt [01:18:34]process_action close_receipt [01:18:34]cmd_close_receipt [01:18:34]MH_GetDate [01:18:34]Write to MH i2c: F0 00 00 C7 19 CF [01:18:34]Write i2c OK [01:18:34]MH_I2C_Read... [01:18:34]Read from MH i2c: F0 [01:18:34]MH_I2C_Read... [01:18:34]Read from MH i2c: F0 09 00 [01:18:34]MH_I2C_Read... [01:18:34]Read from MH i2c: F0 09 00 C7 19 00 6C 0D 44 66 FC 21 6F 64 EB [01:18:34]GetLastDocTimeStamp 1715733901 [01:18:34]current date 1715735916 [01:18:34]FM_GetShiftState [01:18:34]SAM_PROTO_GetShiftState [01:18:34]wFMCommunicate request_size=4 [01:18:34]MH_SAM_APDU [01:18:34]CAPDU: 80 13 01 00 [01:18:34]Write to MH i2c: E2 08 00 C8 19 80 13 01 00 00 00 00 00 5E [01:18:34]Write i2c OK [01:18:34]MH_I2C_Read... [01:18:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:34]Read from MH i2c: E2 [01:18:34]MH_I2C_Read... [01:18:34]Read from MH i2c: E2 0E 00 [01:18:34]MH_I2C_Read... [01:18:34]Read from MH i2c: E2 0E 00 C8 19 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 09 [01:18:34]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [01:18:34]wFMCommunicate OK [01:18:34]SAM_PROTO_GetShiftState done [01:18:34]FM_GetShiftState done [01:18:34]opened in 1715732471 [01:18:34]opened+sec_in_day 1715818871 [01:18:34]quantity*price = 110019 [01:18:34]sum+1 = 110021 [01:18:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.83 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 2 15.05.2024 01:18 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67184 ФПД: 4333016916296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T011836&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67184&fm=4333016916296&tin=02508201610067®Number=0000000000091845&sum=110000 [01:18:35]StoreToDocumentArchive [01:18:35]shift 356 fd 67184 [01:18:35]save to /storage/0356/doc_00067184 [01:18:35]save last doc name /storage/0356/doc_00067184 to /storage/kkm_last_doc_name [01:18:35]save OK [01:18:35]Clear old archive folders... [01:18:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:18:35]tlvbuf is 00380B90 [01:18:35]SAM_PROTO_ClearQueue [01:18:35]wFMCommunicate request_size=4 [01:18:35]MH_SAM_APDU [01:18:35]CAPDU: 80 09 00 00 [01:18:35]Write to MH i2c: E2 08 00 D5 19 80 09 00 00 00 00 00 00 60 [01:18:35]Write i2c OK [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: E2 [01:18:35]MH_I2C_Read... [01:18:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:18:35]Read from MH i2c: E2 03 00 [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: E2 03 00 D5 19 00 90 00 62 [01:18:35]RAPDU: 90 00 [01:18:35]wFMCommunicate OK [01:18:35]SAM_PROTO_ClearQueue done [01:18:35]KKMCreateOFDPacket [01:18:35]OFDProtocolAddRootSTLVToBuf [01:18:35]FM_MakeSignedData [01:18:35]FM_MakeSignedData [01:18:35]SAM_PROTO_SignData [01:18:35]wFMCommunicate request_size=4 [01:18:35]MH_SAM_APDU [01:18:35]CAPDU: 80 0D 01 02 [01:18:35]Write to MH i2c: E2 08 00 D6 19 80 0D 01 02 00 00 00 00 68 [01:18:35]Write i2c OK [01:18:35]MH_I2C_Read... [01:18:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:18:35]Read from MH i2c: E2 [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: E2 03 00 [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: E2 03 00 D6 19 00 90 00 63 [01:18:35]RAPDU: 90 00 [01:18:35]wFMCommunicate OK [01:18:35]wFMCommunicate request_size=255 [01:18:35]MH_SAM_APDU [01:18: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 56 40 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 C4 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 A3 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 02 00 00 00 F4 03 04 00 6C 0D 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 03 [01:18:35]Write to MH i2c: E2 02 01 D7 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 C4 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 A3 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 02 00 00 00 F4 03 04 00 6C 0D 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 03 00 00 12 [01:18:35]Write i2c OK [01:18:35]MH_I2C_Read... [01:18:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:35]Read from MH i2c: E2 [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: E2 03 00 [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: E2 03 00 D7 19 00 90 00 64 [01:18:35]RAPDU: 90 00 [01:18:35]wFMCommunicate OK [01:18:35]wFMCommunicate request_size=10 [01:18:35]MH_SAM_APDU [01:18:35]CAPDU: 80 0D 02 02 05 F0 DB EF 21 48 [01:18:35]Write to MH i2c: E2 0D 00 D8 19 80 0D 02 02 05 00 F0 DB EF 21 48 00 00 98 [01:18:35]Write i2c OK [01:18:35]MH_I2C_Read... [01:18:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:35]Read from MH i2c: E2 [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: E2 03 00 [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: E2 03 00 D8 19 00 90 00 65 [01:18:35]RAPDU: 90 00 [01:18:35]wFMCommunicate OK [01:18:35]wFMCommunicate request_size=4 [01:18:35]MH_SAM_APDU [01:18:35]CAPDU: 80 0D 03 02 [01:18:35]Write to MH i2c: E2 08 00 D9 19 80 0D 03 02 00 00 00 00 6D [01:18:35]Write i2c OK [01:18:35]MH_I2C_Read... [01:18:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:18:35]Read from MH i2c: E2 [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: E2 0B 00 [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: E2 0B 00 D9 19 00 18 F6 C7 21 AB FC F8 64 90 00 67 [01:18:35]RAPDU: 18 F6 C7 21 AB FC F8 64 90 00 [01:18:35]wFMCommunicate OK [01:18:35]SAM_PROTO_SignData done [01:18:35]FM_MakeSignedData done [01:18:35]CreateOFDProtocolMessage [01:18:35]wFMCommunicate request_size=4 [01:18:35]MH_SAM_APDU [01:18:35]CAPDU: 80 11 00 00 [01:18:35]Write to MH i2c: E2 08 00 DA 19 80 11 00 00 00 00 00 00 6D [01:18:35]Write i2c OK [01:18:35]MH_I2C_Read... [01:18:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:35]Read from MH i2c: E2 [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: E2 17 00 [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: E2 17 00 DA 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 C3 [01:18:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [01:18:35]wFMCommunicate OK [01:18:35]CreateOFDProtocolMessage done [01:18:35]OFDSenderStorePacket 67184 [01:18:35]StoreOFDPacket docnum=67184 [01:18:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 0D 39 07 01 DD 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 C4 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 A3 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 02 00 00 00 F4 03 04 00 6C 0D 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 03 F0 DB EF 21 48 18 F6 C7 21 AB FC F8 64 [01:18:35]CheckFolder [01:18:35]dirname=/storage/ofd_packets [01:18:35]CheckFolder done [01:18:35]ProducePacketName [01:18:35]name=ofd_packets/00067184 [01:18:35]NVStorageSaveData ofd_packets/00067184 [01:18:35]File name is /storage/ofd_packets/00067184 [01:18:35]Write 301 bytes [01:18:35]NVStorageSaveData done [01:18:35]OFDSenderStorePacket done [01:18:35]KKMCreateOFDPacket done [01:18:35]NVStorageSaveData kkm_last_timestamp [01:18:35]File name is /storage/kkm_last_timestamp [01:18:35]Write 4 bytes [01:18:35]NVStorageSaveData done [01:18:35]ExternCall_PrintAddStr [01:18:35]wPrintStart [01:18:35]Write to MH i2c: 01 00 00 DB 19 F4 [01:18:35]Write i2c OK [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: 01 [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: 01 07 00 [01:18:35]MH_I2C_Read... [01:18:35]Read from MH i2c: 01 07 00 DB 19 00 00 00 00 00 FF 0F 09 [01:18:35]RasterBufferAndPrint [01:18:35]line Счет N : (1)507090 [01:18:35]line ИНН: 02508201610067 [01:18:35]line Контрольно-Кассовый Чек [01:18:35]line ПРОДАЖА [01:18:35]line ТРК (МРК, ГНК) : 33 [01:18:35]line Товар: 2710124130 [01:18:35]line Аи-92-К-5 [01:18:35]line 16.470 * 66.80 [01:18:35]line = 1100.20 [01:18:35]line НДС 12% НСП 1% [01:18:35]line > о реализуемом товаре [01:18:35]line ОКРУГЛЕНИЕ: -0.20 [01:18:35]line ИТОГО: 1100.00 [01:18:35]line Внесено: 1100.00 [01:18:35]line СДАЧА: 0.00 [01:18:35]line НСП 1% : 9.74 [01:18:35]line НДС 12% : 116.83 [01:18:35]line Наличными: 1100.00 [01:18:35]line Безнал.: 0.00 [01:18:35]line Место: АЗС № 91 "Партнер Нефть" [01:18:35]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [01:18:35]line СНО: Общий режим [01:18:35]line Чек 2 15.05.2024 01:18 [01:18:35]line Смена: 356 ФФД: 1.0 [01:18:35]line ЗНМ: 0300000119 [01:18:35]line РНМ: 0000000000091845 [01:18:35]line Версия ККМ: 001 [01:18:35]line ФМ: 0000000000871829 [01:18:35]line ФД: 67184 [01:18:35]line ФПД: 4333016916296 [01:18:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T011836&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67184&fm=4333016916296&tin=02508201610067®Number=0000000000091845&sum=110000 [01:18:36]OFD Sender: Processing packet 67184 [packets to send 35, broken 34] [01:18:36]ProducePacketName [01:18:36]name=ofd_packets/00067184 [01:18:36]OFD Sender: To server: pG, [01:18:36]CommunicateWithHost lk.salyk.kg:30040 [01:18:36]ConnectInit lk.salyk.kg [01:18:36]written 0, free lines is 4095 [01:18:36]Connected sock=10 [01:18: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 0D 39 07 01 DD 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 40 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 C4 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 A3 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 02 00 00 00 F4 03 04 00 6C 0D 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 03 F0 DB EF 21 48 18 F6 C7 21 AB FC F8 64 [01:18: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 8A 22 47 00 4A 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 70 06 01 00 F4 03 04 00 4A B5 43 66 B6 04 01 00 00 76 AA A5 D7 31 09 5F 82 [01:18:36]CommunicateWithHost err = 0 [01:18:36]CheckOFDResponse [01:18:36]1017 (14) - 77093643461234 [01:18:36]1041 (16) - 0000000000871829 [01:18:36]1040 (4) - 67184 [01:18:36]1012 (4) - 14.05.2024 19:02 [01:18:36]1206 (1) - 0 [01:18:36]OFD Sender: Remove packet 67184 [01:18:36]ProducePacketName [01:18:36]name=ofd_packets/00067184 [01:18:36]NVStorageDeleteData [01:18:36]Write to MH i2c: 01 00 00 05 1A 1F [01:18:36]Write i2c OK [01:18:36]MH_I2C_Read... [01:18:36]Read from MH i2c: 01 [01:18:36]MH_I2C_Read... [01:18:36]Read from MH i2c: 01 07 00 [01:18:36]MH_I2C_Read... [01:18:36]Read from MH i2c: 01 07 00 05 1A 00 00 00 00 00 BE 0C F0 [01:18:36]RasterBufferAndPrint [01:18:36]line [01:18:36]line [01:18:36]line [01:18:36]line [01:18:36]line [01:18:36]written 0, free lines is 3269 [01:18:36]MH_Cut [01:18:36]Write to MH i2c: D1 01 00 0C 1A 01 F8 [01:18:36]Write i2c OK [01:18:36]MH_I2C_Read... [01:18:36]Read from MH i2c: D1 [01:18:36]MH_I2C_Read... [01:18:36]Read from MH i2c: D1 01 00 [01:18:36]MH_I2C_Read... [01:18:36]Read from MH i2c: D1 01 00 0C 1A 00 F7 [01:18:36]Write to MH i2c: 01 00 00 0D 1A 27 [01:18:36]Write i2c OK [01:18:36]MH_I2C_Read... [01:18:37]OFD Sender: No OFD packet to send [01:18:37]*** Cut start [01:18:37]*** Purtial cut [01:18:37]*** Stage 1: CUTSNS_PIN = 1 [01:18:37]Read from MH i2c: 01 [01:18:37]MH_I2C_Read... [01:18:37]*** Stop cut motor [01:18:37]*** Cut end [01:18:37]Read from MH i2c: 01 07 00 [01:18:37]MH_I2C_Read... [01:18:37]Read from MH i2c: 01 07 00 0D 1A 00 00 00 00 00 FF 0F 3C [01:18:37]process_action close_receipt done [01:18:37]requested_data is exist [01:18:37]produce_requested_data [01:18:37]requested_item fm.sn is exist - process it [01:18:37]wFMCommunicate request_size=4 [01:18:37]MH_SAM_APDU [01:18:37]CAPDU: 80 11 00 00 [01:18:37]Write to MH i2c: E2 08 00 0E 1A 80 11 00 00 00 00 00 00 A2 [01:18:37]Write i2c OK [01:18:37]MH_I2C_Read... [01:18:37]Read from MH i2c: E2 [01:18:37]MH_I2C_Read... [01:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:37]Read from MH i2c: E2 17 00 [01:18:37]MH_I2C_Read... [01:18:37]Read from MH i2c: E2 17 00 0E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F8 [01:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [01:18:37]wFMCommunicate OK [01:18:37]requested_item fd.num is exist - process it [01:18:37]SAM_PROTO_GetFieldsCounters [01:18:37]wFMCommunicate request_size=4 [01:18:37]MH_SAM_APDU [01:18:37]CAPDU: 80 13 00 00 [01:18:37]Write to MH i2c: E2 08 00 0F 1A 80 13 00 00 00 00 00 00 A5 [01:18:37]Write i2c OK [01:18:37]MH_I2C_Read... [01:18:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:18:38]Read from MH i2c: E2 [01:18:38]MH_I2C_Read... [01:18:38]Read from MH i2c: E2 62 00 [01:18:38]MH_I2C_Read... [01:18:38]Read from MH i2c: E2 62 00 0F 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 70 06 01 00 0E 04 04 00 64 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 AD [01:18: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 70 06 01 00 0E 04 04 00 64 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 [01:18:38]wFMCommunicate OK [01:18:38]SAM_PROTO_GetFieldsCounters done [01:18:38]requested_item shift.num is exist - process it [01:18:38]requested_item shift.opened is exist - process it [01:18:38]req_shift_opened [01:18:38]FM_GetShiftState [01:18:38]SAM_PROTO_GetShiftState [01:18:38]wFMCommunicate request_size=4 [01:18:38]MH_SAM_APDU [01:18:38]CAPDU: 80 13 01 00 [01:18:38]Write to MH i2c: E2 08 00 10 1A 80 13 01 00 00 00 00 00 A7 [01:18:38]Write i2c OK [01:18:38]MH_I2C_Read... [01:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:38]Read from MH i2c: E2 [01:18:38]MH_I2C_Read... [01:18:38]Read from MH i2c: E2 0E 00 [01:18:38]MH_I2C_Read... [01:18:38]Read from MH i2c: E2 0E 00 10 1A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 52 [01:18:38]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [01:18:38]wFMCommunicate OK [01:18:38]SAM_PROTO_GetShiftState done [01:18:38]FM_GetShiftState done [01:18:38]req_shift_opened done [01:18:38]requested_item shift.open_date is exist - process it [01:18:38]req_shift_open_date [01:18:38]req_shift_open_date done [01:18:38]produce_requested_data done [01:18:38]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67184,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [01:18:38]process_action_free close_receipt [01:18:38]json_value_free [01:18:38]json_value_free done [01:18:38]process_json_proto returns [01:18:38]Send response to host [01:18:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67184,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [01:18:38]free response buf [01:18:38]execute_script done [01:18:38]execute_script returns [01:18:38]free content buf [01:18:38]Sock 7.Close socket [01:18:38]Sock 7.Thread stoped [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:39]accept exits with 9 [01:35:39]New connection [01:35:39]New thread 3066731876 created [01:35:39]Thread 3066588516 joined [01:35:39]Waiting for new connection... [01:35:39] Sock 9.Parse request [01:35:39]Sock 9.Check first char [01:35:39]Sock 9.First char is OK [01:35:39]request: POST /json_proto HTTP/1.0 [01:35:39]Method: POST [01:35:39]URL: /json_proto [01:35:39]Method is POST - this is cgi request [01:35:39]url: /json_proto [01:35:39]query_string will be loaded in cgi processing [01:35:39]execute_cgi json_proto POST (null) [01:35:39]execute_cgi path=json_proto method=POST [01:35:39]POST find Content-Length [01:35:39]Host: 172.17.41.195:8080 [01:35:39]Content-Length: 1209 [01:35:39]Content-Type: application/json [01:35:39] [01:35:39]POST finish read [01:35:39]Found Content-Length = 1209 [01:35:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507091\u000A15.05.2024 01: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 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:35:39]execute_script... [01:35:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507091\u000A15.05.2024 01: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 13.390 x 74.70\u000A\u0418\u0422\u041E\u0413: 1000.23\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02750\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:35:39]POST & json_proto [01:35:39]process_json_proto [01:35:39]json parsed OK: [01:35:39]protocol is kg_v1.0 [01:35:39]action value=print_text [01:35:39]process_action print_text [01:35:39]cmd_print_text [01:35:39]ExternCall_PrintAddStr [01:35:39]wPrintStart [01:35:39]Write to MH i2c: 01 00 00 11 1A 2B [01:35:39]Write i2c OK [01:35:39]MH_I2C_Read... [01:35:39]Read from MH i2c: 01 [01:35:39]MH_I2C_Read... [01:35:39]Read from MH i2c: 01 07 00 [01:35:39]MH_I2C_Read... [01:35:39]Read from MH i2c: 01 07 00 11 1A 00 00 00 00 00 FF 0F 40 [01:35:39]RasterBufferAndPrint [01:35:39]line *****ТОВАРНЫЙ ЧЕК***** [01:35:39]line АЗС-91 [01:35:39]line Партнер нефть [01:35:39]line 02508201610067 [01:35:39]line Кассир : Арстанбеков Н. [01:35:39]line Счет N : (1)507091 [01:35:39]line 15.05.2024 01:18 [01:35:39]line ПРОДАЖА [01:35:39]line ТРК (МРК, ГНК): 31 [01:35:39]line Вид ГСМ : 2710194210 [01:35:39]line ДТ-К-5 [01:35:39]line 13.390 x 74.70 [01:35:39]line ИТОГ: 1000.23 [01:35:39]line Тип оплаты: Талоны: Топливная Карта [01:35:39]line 02750 [01:35:39]line ______________________ [01:35:39]line (подпись) [01:35:39]written 0, free lines is 4095 [01:35:39]Write to MH i2c: 01 00 00 25 1A 3F [01:35:39]Write i2c OK [01:35:39]MH_I2C_Read... [01:35:39]Read from MH i2c: 01 [01:35:39]MH_I2C_Read... [01:35:39]Read from MH i2c: 01 07 00 [01:35:39]MH_I2C_Read... [01:35:39]Read from MH i2c: 01 07 00 25 1A 00 00 00 00 00 0E 0E 62 [01:35:39]RasterBufferAndPrint [01:35:39]line [01:35:39]line [01:35:39]line [01:35:39]line [01:35:39]line [01:35:39]written 0, free lines is 3599 [01:35:39]MH_Cut [01:35:39]Write to MH i2c: D1 01 00 2C 1A 01 18 [01:35:39]Write i2c OK [01:35:39]MH_I2C_Read... [01:35:39]Read from MH i2c: D1 [01:35:39]MH_I2C_Read... [01:35:39]Read from MH i2c: D1 01 00 [01:35:39]MH_I2C_Read... [01:35:39]Read from MH i2c: D1 01 00 2C 1A 00 17 [01:35:39]Write to MH i2c: 01 00 00 2D 1A 47 [01:35:39]Write i2c OK [01:35:39]MH_I2C_Read... [01:35:40]*** Cut start [01:35:40]*** Purtial cut [01:35:40]*** CUTSNS_PIN = 0 [01:35:40]*** Stage 1: CUTSNS_PIN = 1 [01:35:42]Read from MH i2c: 01 [01:35:42]MH_I2C_Read... [01:35:42]*** Stop cut motor [01:35:42]*** Cut end [01:35:42]Read from MH i2c: 01 07 00 [01:35:42]MH_I2C_Read... [01:35:42]Read from MH i2c: 01 07 00 2D 1A 00 00 00 00 00 FF 0F 5C [01:35:42]process_action print_text done [01:35:42]requested_data is exist [01:35:42]produce_requested_data [01:35:42]requested_item fm.sn is exist - process it [01:35:42]wFMCommunicate request_size=4 [01:35:42]MH_SAM_APDU [01:35:42]CAPDU: 80 11 00 00 [01:35:42]Write to MH i2c: E2 08 00 2E 1A 80 11 00 00 00 00 00 00 C2 [01:35:42]Write i2c OK [01:35:42]MH_I2C_Read... [01:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:35:42]Read from MH i2c: E2 [01:35:42]MH_I2C_Read... [01:35:42]Read from MH i2c: E2 17 00 [01:35:42]MH_I2C_Read... [01:35:42]Read from MH i2c: E2 17 00 2E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 18 [01:35:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [01:35:42]wFMCommunicate OK [01:35:42]requested_item fd.num is exist - process it [01:35:42]SAM_PROTO_GetFieldsCounters [01:35:42]wFMCommunicate request_size=4 [01:35:42]MH_SAM_APDU [01:35:42]CAPDU: 80 13 00 00 [01:35:42]Write to MH i2c: E2 08 00 2F 1A 80 13 00 00 00 00 00 00 C5 [01:35:42]Write i2c OK [01:35:42]MH_I2C_Read... [01:35:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:35:42]Read from MH i2c: E2 [01:35:42]MH_I2C_Read... [01:35:42]Read from MH i2c: E2 62 00 [01:35:42]MH_I2C_Read... [01:35:42]Read from MH i2c: E2 62 00 2F 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 70 06 01 00 0E 04 04 00 64 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 CD [01:35: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 70 06 01 00 0E 04 04 00 64 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 [01:35:42]wFMCommunicate OK [01:35:42]SAM_PROTO_GetFieldsCounters done [01:35:42]requested_item shift.num is exist - process it [01:35:42]requested_item shift.opened is exist - process it [01:35:42]req_shift_opened [01:35:42]FM_GetShiftState [01:35:42]SAM_PROTO_GetShiftState [01:35:42]wFMCommunicate request_size=4 [01:35:42]MH_SAM_APDU [01:35:42]CAPDU: 80 13 01 00 [01:35:42]Write to MH i2c: E2 08 00 30 1A 80 13 01 00 00 00 00 00 C7 [01:35:42]Write i2c OK [01:35:42]MH_I2C_Read... [01:35:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:35:42]Read from MH i2c: E2 [01:35:42]MH_I2C_Read... [01:35:42]Read from MH i2c: E2 0E 00 [01:35:42]MH_I2C_Read... [01:35:42]Read from MH i2c: E2 0E 00 30 1A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 72 [01:35:42]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [01:35:42]wFMCommunicate OK [01:35:42]SAM_PROTO_GetShiftState done [01:35:42]FM_GetShiftState done [01:35:42]req_shift_opened done [01:35:42]requested_item shift.open_date is exist - process it [01:35:42]req_shift_open_date [01:35:42]req_shift_open_date done [01:35:42]produce_requested_data done [01:35:42]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67184,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [01:35:42]process_action_free print_text [01:35:42]json_value_free [01:35:42]json_value_free done [01:35:42]process_json_proto returns [01:35:42]Send response to host [01:35:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67184,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [01:35:42]free response buf [01:35:42]execute_script done [01:35:42]execute_script returns [01:35:42]free content buf [01:35:42]Sock 9.Close socket [01:35:42]Sock 9.Thread stoped [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]accept exits with 7 [01:44:03]New connection [01:44:03]New thread 3066588516 created [01:44:03]Thread 3066731876 joined [01:44:03]Waiting for new connection... [01:44:03] Sock 7.Parse request [01:44:03]Sock 7.Check first char [01:44:03]Sock 7.First char is OK [01:44:03]request: POST /json_proto HTTP/1.0 [01:44:03]Method: POST [01:44:03]URL: /json_proto [01:44:03]Method is POST - this is cgi request [01:44:03]url: /json_proto [01:44:03]query_string will be loaded in cgi processing [01:44:03]execute_cgi json_proto POST (null) [01:44:03]execute_cgi path=json_proto method=POST [01:44:03]POST find Content-Length [01:44:03]Host: 172.17.41.195:8080 [01:44:03]Content-Length: 677 [01:44:03]Content-Type: application/json [01:44:03] [01:44:03]POST finish read [01:44:03]Found Content-Length = 677 [01:44:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507092", "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" ] } } [01:44:03]execute_script... [01:44: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)507092", "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" ] } } [01:44:03]POST & json_proto [01:44:03]process_json_proto [01:44:03]json parsed OK: [01:44:03]protocol is kg_v1.0 [01:44:03]action value=close_receipt [01:44:03]process_action close_receipt [01:44:03]cmd_close_receipt [01:44:03]MH_GetDate [01:44:03]Write to MH i2c: F0 00 00 31 1A 3A [01:44:03]Write i2c OK [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: F0 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: F0 09 00 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: F0 09 00 31 1A 00 65 13 44 66 FC 21 6F 64 55 [01:44:03]GetLastDocTimeStamp 1715735916 [01:44:03]current date 1715737445 [01:44:03]FM_GetShiftState [01:44:03]SAM_PROTO_GetShiftState [01:44:03]wFMCommunicate request_size=4 [01:44:03]MH_SAM_APDU [01:44:03]CAPDU: 80 13 01 00 [01:44:03]Write to MH i2c: E2 08 00 32 1A 80 13 01 00 00 00 00 00 C9 [01:44:03]Write i2c OK [01:44:03]MH_I2C_Read... [01:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:44:03]Read from MH i2c: E2 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: E2 0E 00 [01:44:03]MH_I2C_Read... [01:44:03]Read from MH i2c: E2 0E 00 32 1A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 74 [01:44:03]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [01:44:03]wFMCommunicate OK [01:44:03]SAM_PROTO_GetShiftState done [01:44:03]FM_GetShiftState done [01:44:03]opened in 1715732471 [01:44:03]opened+sec_in_day 1715818871 [01:44:03]quantity*price = 50033 [01:44:03]sum+1 = 50034 [01:44:03]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 СНО: Общий режим Чек 3 15.05.2024 01:44 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67185 ФПД: 200988565091253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T014405&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67185&fm=200988565091253&tin=02508201610067®Number=0000000000091845&sum=50000 [01:44:04]StoreToDocumentArchive [01:44:04]shift 356 fd 67185 [01:44:04]save to /storage/0356/doc_00067185 [01:44:04]save last doc name /storage/0356/doc_00067185 to /storage/kkm_last_doc_name [01:44:04]save OK [01:44:04]Clear old archive folders... [01:44:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:44:04]tlvbuf is 003268F0 [01:44:04]SAM_PROTO_ClearQueue [01:44:04]wFMCommunicate request_size=4 [01:44:04]MH_SAM_APDU [01:44:04]CAPDU: 80 09 00 00 [01:44:04]Write to MH i2c: E2 08 00 3F 1A 80 09 00 00 00 00 00 00 CB [01:44:04]Write i2c OK [01:44:04]MH_I2C_Read... [01:44:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:44:04]Read from MH i2c: E2 [01:44:04]MH_I2C_Read... [01:44:04]Read from MH i2c: E2 03 00 [01:44:04]MH_I2C_Read... [01:44:04]Read from MH i2c: E2 03 00 3F 1A 00 90 00 CD [01:44:04]RAPDU: 90 00 [01:44:04]wFMCommunicate OK [01:44:04]SAM_PROTO_ClearQueue done [01:44:04]KKMCreateOFDPacket [01:44:04]OFDProtocolAddRootSTLVToBuf [01:44:04]FM_MakeSignedData [01:44:04]FM_MakeSignedData [01:44:04]SAM_PROTO_SignData [01:44:04]wFMCommunicate request_size=4 [01:44:04]MH_SAM_APDU [01:44:04]CAPDU: 80 0D 01 02 [01:44:04]Write to MH i2c: E2 08 00 40 1A 80 0D 01 02 00 00 00 00 D3 [01:44:04]Write i2c OK [01:44:04]MH_I2C_Read... [01:44:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:44:04]Read from MH i2c: E2 [01:44:04]MH_I2C_Read... [01:44:04]Read from MH i2c: E2 03 00 [01:44:04]MH_I2C_Read... [01:44:04]Read from MH i2c: E2 03 00 40 1A 00 90 00 CE [01:44:04]RAPDU: 90 00 [01:44:04]wFMCommunicate OK [01:44:04]wFMCommunicate request_size=255 [01:44:04]MH_SAM_APDU [01:44: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 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 03 00 00 00 F4 03 04 00 65 13 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 B6 [01:44:04]Write to MH i2c: E2 02 01 41 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 03 00 00 00 F4 03 04 00 65 13 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 B6 00 00 16 [01:44:04]Write i2c OK [01:44:04]MH_I2C_Read... [01:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:44:04]Read from MH i2c: E2 [01:44:04]MH_I2C_Read... [01:44:04]Read from MH i2c: E2 03 00 [01:44:04]MH_I2C_Read... [01:44:04]Read from MH i2c: E2 03 00 41 1A 00 90 00 CF [01:44:04]RAPDU: 90 00 [01:44:04]wFMCommunicate OK [01:44:04]wFMCommunicate request_size=10 [01:44:04]MH_SAM_APDU [01:44:04]CAPDU: 80 0D 02 02 05 CC 4C 06 B3 B5 [01:44:04]Write to MH i2c: E2 0D 00 42 1A 80 0D 02 02 05 00 CC 4C 06 B3 B5 00 00 66 [01:44:04]Write i2c OK [01:44:04]MH_I2C_Read... [01:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:44:04]Read from MH i2c: E2 [01:44:04]MH_I2C_Read... [01:44:04]Read from MH i2c: E2 03 00 [01:44:04]MH_I2C_Read... [01:44:04]Read from MH i2c: E2 03 00 42 1A 00 90 00 D0 [01:44:04]RAPDU: 90 00 [01:44:04]wFMCommunicate OK [01:44:04]wFMCommunicate request_size=4 [01:44:04]MH_SAM_APDU [01:44:04]CAPDU: 80 0D 03 02 [01:44:04]Write to MH i2c: E2 08 00 43 1A 80 0D 03 02 00 00 00 00 D8 [01:44:04]Write i2c OK [01:44:04]MH_I2C_Read... [01:44:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:44:04]Read from MH i2c: E2 [01:44:04]MH_I2C_Read... [01:44:04]Read from MH i2c: E2 0B 00 [01:44:04]MH_I2C_Read... [01:44:04]Read from MH i2c: E2 0B 00 43 1A 00 8D 0F EE 79 41 7F F9 41 90 00 D6 [01:44:04]RAPDU: 8D 0F EE 79 41 7F F9 41 90 00 [01:44:04]wFMCommunicate OK [01:44:04]SAM_PROTO_SignData done [01:44:04]FM_MakeSignedData done [01:44:04]CreateOFDProtocolMessage [01:44:04]wFMCommunicate request_size=4 [01:44:04]MH_SAM_APDU [01:44:04]CAPDU: 80 11 00 00 [01:44:04]Write to MH i2c: E2 08 00 44 1A 80 11 00 00 00 00 00 00 D8 [01:44:04]Write i2c OK [01:44:04]MH_I2C_Read... [01:44:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:44:04]Read from MH i2c: E2 [01:44:04]MH_I2C_Read... [01:44:04]Read from MH i2c: E2 17 00 [01:44:04]MH_I2C_Read... [01:44:04]Read from MH i2c: E2 17 00 44 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 2E [01:44:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [01:44:04]wFMCommunicate OK [01:44:04]CreateOFDProtocolMessage done [01:44:04]OFDSenderStorePacket 67185 [01:44:04]StoreOFDPacket docnum=67185 [01:44: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 9F C4 07 01 35 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 03 00 00 00 F4 03 04 00 65 13 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 B6 CC 4C 06 B3 B5 8D 0F EE 79 41 7F F9 41 [01:44:04]CheckFolder [01:44:04]dirname=/storage/ofd_packets [01:44:04]CheckFolder done [01:44:04]ProducePacketName [01:44:04]name=ofd_packets/00067185 [01:44:04]NVStorageSaveData ofd_packets/00067185 [01:44:04]File name is /storage/ofd_packets/00067185 [01:44:04]Write 301 bytes [01:44:04]NVStorageSaveData done [01:44:04]OFDSenderStorePacket done [01:44:04]KKMCreateOFDPacket done [01:44:04]NVStorageSaveData kkm_last_timestamp [01:44:04]File name is /storage/kkm_last_timestamp [01:44:04]Write 4 bytes [01:44:04]NVStorageSaveData done [01:44:04]ExternCall_PrintAddStr [01:44:04]wPrintStart [01:44:04]Write to MH i2c: 01 00 00 45 1A 5F [01:44:04]Write i2c OK [01:44:04]MH_I2C_Read... [01:44:04]Read from MH i2c: 01 [01:44:04]MH_I2C_Read... [01:44:04]Read from MH i2c: 01 07 00 [01:44:04]MH_I2C_Read... [01:44:04]Read from MH i2c: 01 07 00 45 1A 00 00 00 00 00 FF 0F 74 [01:44:04]RasterBufferAndPrint [01:44:04]line Счет N : (1)507092 [01:44:04]line ИНН: 02508201610067 [01:44:04]line Контрольно-Кассовый Чек [01:44:04]line ПРОДАЖА [01:44:04]line ТРК (МРК, ГНК) : 33 [01:44:04]line Товар: 2710124130 [01:44:04]line Аи-92-К-5 [01:44:04]line 7.490 * 66.80 [01:44:04]line = 500.33 [01:44:04]line НДС 12% НСП 1% [01:44:04]line > о реализуемом товаре [01:44:04]line ОКРУГЛЕНИЕ: -0.33 [01:44:04]line ИТОГО: 500.00 [01:44:04]line Внесено: 500.00 [01:44:04]line СДАЧА: 0.00 [01:44:04]line НСП 1% : 4.43 [01:44:04]line НДС 12% : 53.13 [01:44:04]line Наличными: 500.00 [01:44:04]line Безнал.: 0.00 [01:44:04]line Место: АЗС № 91 "Партнер Нефть" [01:44:04]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [01:44:04]line СНО: Общий режим [01:44:04]line Чек 3 15.05.2024 01:44 [01:44:04]line Смена: 356 ФФД: 1.0 [01:44:04]line ЗНМ: 0300000119 [01:44:04]line РНМ: 0000000000091845 [01:44:04]line Версия ККМ: 001 [01:44:04]line ФМ: 0000000000871829 [01:44:04]line ФД: 67185 [01:44:04]line ФПД: 200988565091253 [01:44:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T014405&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67185&fm=200988565091253&tin=02508201610067®Number=0000000000091845&sum=50000 [01:44:05]OFD Sender: Processing packet 67185 [packets to send 35, broken 34] [01:44:05]ProducePacketName [01:44:05]name=ofd_packets/00067185 [01:44:05]OFD Sender: To server: pG, [01:44:05]CommunicateWithHost lk.salyk.kg:30040 [01:44:05]ConnectInit lk.salyk.kg [01:44:05]written 0, free lines is 4095 [01:44:05]Connected sock=10 [01:44: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 9F C4 07 01 35 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 03 00 00 00 F4 03 04 00 65 13 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 B6 CC 4C 06 B3 B5 8D 0F EE 79 41 7F F9 41 [01:44:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 4F 00 00 00 7B 8F 47 00 0F 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 06 01 00 F4 03 04 00 43 BB 43 66 B6 04 01 00 00 A4 B2 BC 87 35 17 5F 05 [01:44:05]CommunicateWithHost err = 0 [01:44:05]CheckOFDResponse [01:44:05]1017 (14) - 77093643461234 [01:44:05]1041 (16) - 0000000000871829 [01:44:05]1040 (4) - 67185 [01:44:05]1012 (4) - 14.05.2024 19:28 [01:44:05]1206 (1) - 0 [01:44:05]OFD Sender: Remove packet 67185 [01:44:05]ProducePacketName [01:44:05]name=ofd_packets/00067185 [01:44:05]NVStorageDeleteData [01:44:05]Write to MH i2c: 01 00 00 6F 1A 89 [01:44:05]Write i2c OK [01:44:05]MH_I2C_Read... [01:44:05]Read from MH i2c: 01 [01:44:05]MH_I2C_Read... [01:44:05]Read from MH i2c: 01 07 00 [01:44:05]MH_I2C_Read... [01:44:05]Read from MH i2c: 01 07 00 6F 1A 00 00 00 00 00 D1 0C 6D [01:44:05]RasterBufferAndPrint [01:44:05]line [01:44:05]line [01:44:05]line [01:44:05]line [01:44:05]line [01:44:05]written 0, free lines is 3287 [01:44:05]MH_Cut [01:44:05]Write to MH i2c: D1 01 00 76 1A 01 62 [01:44:05]Write i2c OK [01:44:05]MH_I2C_Read... [01:44:05]Read from MH i2c: D1 [01:44:05]MH_I2C_Read... [01:44:05]Read from MH i2c: D1 01 00 [01:44:05]MH_I2C_Read... [01:44:05]Read from MH i2c: D1 01 00 76 1A 00 61 [01:44:05]Write to MH i2c: 01 00 00 77 1A 91 [01:44:05]Write i2c OK [01:44:05]MH_I2C_Read... [01:44:06]OFD Sender: No OFD packet to send [01:44:06]*** Cut start [01:44:06]*** Purtial cut [01:44:06]*** Stage 1: CUTSNS_PIN = 1 [01:44:06]Read from MH i2c: 01 [01:44:06]MH_I2C_Read... [01:44:06]*** Stop cut motor [01:44:06]*** Cut end [01:44:06]Read from MH i2c: 01 07 00 [01:44:06]MH_I2C_Read... [01:44:06]Read from MH i2c: 01 07 00 77 1A 00 00 00 00 00 FF 0F A6 [01:44:06]process_action close_receipt done [01:44:06]requested_data is exist [01:44:06]produce_requested_data [01:44:06]requested_item fm.sn is exist - process it [01:44:06]wFMCommunicate request_size=4 [01:44:06]MH_SAM_APDU [01:44:06]CAPDU: 80 11 00 00 [01:44:06]Write to MH i2c: E2 08 00 78 1A 80 11 00 00 00 00 00 00 0C [01:44:06]Write i2c OK [01:44:06]MH_I2C_Read... [01:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:44:06]Read from MH i2c: E2 [01:44:06]MH_I2C_Read... [01:44:06]Read from MH i2c: E2 17 00 [01:44:06]MH_I2C_Read... [01:44:06]Read from MH i2c: E2 17 00 78 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 62 [01:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [01:44:06]wFMCommunicate OK [01:44:06]requested_item fd.num is exist - process it [01:44:06]SAM_PROTO_GetFieldsCounters [01:44:06]wFMCommunicate request_size=4 [01:44:06]MH_SAM_APDU [01:44:06]CAPDU: 80 13 00 00 [01:44:06]Write to MH i2c: E2 08 00 79 1A 80 13 00 00 00 00 00 00 0F [01:44:06]Write i2c OK [01:44:06]MH_I2C_Read... [01:44:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:44:07]Read from MH i2c: E2 [01:44:07]MH_I2C_Read... [01:44:07]Read from MH i2c: E2 62 00 [01:44:07]MH_I2C_Read... [01:44:07]Read from MH i2c: E2 62 00 79 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 71 06 01 00 0E 04 04 00 64 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 1B [01:44: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 71 06 01 00 0E 04 04 00 64 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:44:07]wFMCommunicate OK [01:44:07]SAM_PROTO_GetFieldsCounters done [01:44:07]requested_item shift.num is exist - process it [01:44:07]requested_item shift.opened is exist - process it [01:44:07]req_shift_opened [01:44:07]FM_GetShiftState [01:44:07]SAM_PROTO_GetShiftState [01:44:07]wFMCommunicate request_size=4 [01:44:07]MH_SAM_APDU [01:44:07]CAPDU: 80 13 01 00 [01:44:07]Write to MH i2c: E2 08 00 7A 1A 80 13 01 00 00 00 00 00 11 [01:44:07]Write i2c OK [01:44:07]MH_I2C_Read... [01:44:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:44:07]Read from MH i2c: E2 [01:44:07]MH_I2C_Read... [01:44:07]Read from MH i2c: E2 0E 00 [01:44:07]MH_I2C_Read... [01:44:07]Read from MH i2c: E2 0E 00 7A 1A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 BC [01:44:07]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [01:44:07]wFMCommunicate OK [01:44:07]SAM_PROTO_GetShiftState done [01:44:07]FM_GetShiftState done [01:44:07]req_shift_opened done [01:44:07]requested_item shift.open_date is exist - process it [01:44:07]req_shift_open_date [01:44:07]req_shift_open_date done [01:44:07]produce_requested_data done [01:44:07]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67185,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [01:44:07]process_action_free close_receipt [01:44:07]json_value_free [01:44:07]json_value_free done [01:44:07]process_json_proto returns [01:44:07]Send response to host [01:44:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67185,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [01:44:07]free response buf [01:44:07]execute_script done [01:44:07]execute_script returns [01:44:07]free content buf [01:44:07]Sock 7.Close socket [01:44:07]Sock 7.Thread stoped [01:44:11]OFD Sender: No OFD packet to send [01:44:16]OFD Sender: No OFD packet to send [01:44:21]OFD Sender: No OFD packet to send [01:44:26]OFD Sender: No OFD packet to send [01:44:31]OFD Sender: No OFD packet to send [01:44:36]OFD Sender: No OFD packet to send [01:44:41]OFD Sender: No OFD packet to send [01:44:46]OFD Sender: No OFD packet to send [01:44:51]OFD Sender: No OFD packet to send [01:44:56]OFD Sender: No OFD packet to send [01:44:56]accept exits with 9 [01:44:56]New connection [01:44:56]New thread 3066731876 created [01:44:56]Thread 3066588516 joined [01:44:56]Waiting for new connection... [01:44:56] Sock 9.Parse request [01:44:56]Sock 9.Check first char [01:44:56]Sock 9.First char is OK [01:44:56]request: POST /json_proto HTTP/1.0 [01:44:56]Method: POST [01:44:56]URL: /json_proto [01:44:56]Method is POST - this is cgi request [01:44:56]url: /json_proto [01:44:56]query_string will be loaded in cgi processing [01:44:56]execute_cgi json_proto POST (null) [01:44:56]execute_cgi path=json_proto method=POST [01:44:56]POST find Content-Length [01:44:56]Host: 172.17.41.195:8080 [01:44:56]Content-Length: 675 [01:44:56]Content-Type: application/json [01:44:56] [01:44:56]POST finish read [01:44:56]Found Content-Length = 675 [01:44:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 10.710, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:44:56]execute_script... [01:44: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)507093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 10.710, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:44:56]POST & json_proto [01:44:56]process_json_proto [01:44:56]json parsed OK: [01:44:56]protocol is kg_v1.0 [01:44:56]action value=close_receipt [01:44:56]process_action close_receipt [01:44:56]cmd_close_receipt [01:44:56]MH_GetDate [01:44:56]Write to MH i2c: F0 00 00 7B 1A 84 [01:44:56]Write i2c OK [01:44:56]MH_I2C_Read... [01:44:56]Read from MH i2c: F0 [01:44:56]MH_I2C_Read... [01:44:56]Read from MH i2c: F0 09 00 [01:44:56]MH_I2C_Read... [01:44:56]Read from MH i2c: F0 09 00 7B 1A 00 9A 13 44 66 FC 21 6F 64 D4 [01:44:56]GetLastDocTimeStamp 1715737445 [01:44:56]current date 1715737498 [01:44:56]FM_GetShiftState [01:44:56]SAM_PROTO_GetShiftState [01:44:56]wFMCommunicate request_size=4 [01:44:56]MH_SAM_APDU [01:44:56]CAPDU: 80 13 01 00 [01:44:56]Write to MH i2c: E2 08 00 7C 1A 80 13 01 00 00 00 00 00 13 [01:44:56]Write i2c OK [01:44:56]MH_I2C_Read... [01:44:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:44:56]Read from MH i2c: E2 [01:44:56]MH_I2C_Read... [01:44:56]Read from MH i2c: E2 0E 00 [01:44:56]MH_I2C_Read... [01:44:56]Read from MH i2c: E2 0E 00 7C 1A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 BE [01:44:56]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [01:44:56]wFMCommunicate OK [01:44:56]SAM_PROTO_GetShiftState done [01:44:56]FM_GetShiftState done [01:44:56]opened in 1715732471 [01:44:56]opened+sec_in_day 1715818871 [01:44:56]quantity*price = 80003 [01:44:56]sum+1 = 80005 [01:44:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 4 15.05.2024 01:44 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67186 ФПД: 110574397589321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T014458&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67186&fm=110574397589321&tin=02508201610067®Number=0000000000091845&sum=80000 [01:44:57]StoreToDocumentArchive [01:44:57]shift 356 fd 67186 [01:44:57]save to /storage/0356/doc_00067186 [01:44:57]save last doc name /storage/0356/doc_00067186 to /storage/kkm_last_doc_name [01:44:57]save OK [01:44:57]Clear old archive folders... [01:44:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:44:58]tlvbuf is 0036B760 [01:44:58]SAM_PROTO_ClearQueue [01:44:58]wFMCommunicate request_size=4 [01:44:58]MH_SAM_APDU [01:44:58]CAPDU: 80 09 00 00 [01:44:58]Write to MH i2c: E2 08 00 89 1A 80 09 00 00 00 00 00 00 15 [01:44:58]Write i2c OK [01:44:58]MH_I2C_Read... [01:44:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:44:58]Read from MH i2c: E2 [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: E2 03 00 [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: E2 03 00 89 1A 00 90 00 17 [01:44:58]RAPDU: 90 00 [01:44:58]wFMCommunicate OK [01:44:58]SAM_PROTO_ClearQueue done [01:44:58]KKMCreateOFDPacket [01:44:58]OFDProtocolAddRootSTLVToBuf [01:44:58]FM_MakeSignedData [01:44:58]FM_MakeSignedData [01:44:58]SAM_PROTO_SignData [01:44:58]wFMCommunicate request_size=4 [01:44:58]MH_SAM_APDU [01:44:58]CAPDU: 80 0D 01 02 [01:44:58]Write to MH i2c: E2 08 00 8A 1A 80 0D 01 02 00 00 00 00 1D [01:44:58]Write i2c OK [01:44:58]MH_I2C_Read... [01:44:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:44:58]Read from MH i2c: E2 [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: E2 03 00 [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: E2 03 00 8A 1A 00 90 00 18 [01:44:58]RAPDU: 90 00 [01:44:58]wFMCommunicate OK [01:44:58]wFMCommunicate request_size=255 [01:44:58]MH_SAM_APDU [01:44:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 9A 13 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 64 91 1B B0 [01:44:58]Write to MH i2c: E2 02 01 8B 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 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 9A 13 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 64 91 1B B0 00 00 08 [01:44:58]Write i2c OK [01:44:58]MH_I2C_Read... [01:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:44:58]Read from MH i2c: E2 [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: E2 03 00 [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: E2 03 00 8B 1A 00 90 00 19 [01:44:58]RAPDU: 90 00 [01:44:58]wFMCommunicate OK [01:44:58]wFMCommunicate request_size=7 [01:44:58]MH_SAM_APDU [01:44:58]CAPDU: 80 0D 02 02 02 87 49 [01:44:58]Write to MH i2c: E2 0A 00 8C 1A 80 0D 02 02 02 00 87 49 00 00 F4 [01:44:58]Write i2c OK [01:44:58]MH_I2C_Read... [01:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:44:58]Read from MH i2c: E2 [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: E2 03 00 [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: E2 03 00 8C 1A 00 90 00 1A [01:44:58]RAPDU: 90 00 [01:44:58]wFMCommunicate OK [01:44:58]wFMCommunicate request_size=4 [01:44:58]MH_SAM_APDU [01:44:58]CAPDU: 80 0D 03 02 [01:44:58]Write to MH i2c: E2 08 00 8D 1A 80 0D 03 02 00 00 00 00 22 [01:44:58]Write i2c OK [01:44:58]MH_I2C_Read... [01:44:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:44:58]Read from MH i2c: E2 [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: E2 0B 00 [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: E2 0B 00 8D 1A 00 47 3E 30 A0 6B 8E 05 BE 90 00 34 [01:44:58]RAPDU: 47 3E 30 A0 6B 8E 05 BE 90 00 [01:44:58]wFMCommunicate OK [01:44:58]SAM_PROTO_SignData done [01:44:58]FM_MakeSignedData done [01:44:58]CreateOFDProtocolMessage [01:44:58]wFMCommunicate request_size=4 [01:44:58]MH_SAM_APDU [01:44:58]CAPDU: 80 11 00 00 [01:44:58]Write to MH i2c: E2 08 00 8E 1A 80 11 00 00 00 00 00 00 22 [01:44:58]Write i2c OK [01:44:58]MH_I2C_Read... [01:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:44:58]Read from MH i2c: E2 [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: E2 17 00 [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: E2 17 00 8E 1A 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:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [01:44:58]wFMCommunicate OK [01:44:58]CreateOFDProtocolMessage done [01:44:58]OFDSenderStorePacket 67186 [01:44:58]StoreOFDPacket docnum=67186 [01:44: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 0C 01 00 00 0B E1 04 01 8B 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 9A 13 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 64 91 1B B0 87 49 47 3E 30 A0 6B 8E 05 BE [01:44:58]CheckFolder [01:44:58]dirname=/storage/ofd_packets [01:44:58]CheckFolder done [01:44:58]ProducePacketName [01:44:58]name=ofd_packets/00067186 [01:44:58]NVStorageSaveData ofd_packets/00067186 [01:44:58]File name is /storage/ofd_packets/00067186 [01:44:58]Write 298 bytes [01:44:58]NVStorageSaveData done [01:44:58]OFDSenderStorePacket done [01:44:58]KKMCreateOFDPacket done [01:44:58]NVStorageSaveData kkm_last_timestamp [01:44:58]File name is /storage/kkm_last_timestamp [01:44:58]Write 4 bytes [01:44:58]NVStorageSaveData done [01:44:58]OFD Sender: Processing packet 67186 [packets to send 35, broken 34] [01:44:58]ProducePacketName [01:44:58]name=ofd_packets/00067186 [01:44:58]OFD Sender: To server: pG, [01:44:58]CommunicateWithHost lk.salyk.kg:30040 [01:44:58]ConnectInit lk.salyk.kg [01:44:58]ExternCall_PrintAddStr [01:44:58]wPrintStart [01:44:58]Write to MH i2c: 01 00 00 8F 1A A9 [01:44:58]Write i2c OK [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: 01 [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: 01 07 00 [01:44:58]MH_I2C_Read... [01:44:58]Read from MH i2c: 01 07 00 8F 1A 00 00 00 00 00 FF 0F BE [01:44:58]RasterBufferAndPrint [01:44:58]line Счет N : (1)507093 [01:44:58]line ИНН: 02508201610067 [01:44:58]line Контрольно-Кассовый Чек [01:44:58]line ПРОДАЖА [01:44:58]line ТРК (МРК, ГНК) : 21 [01:44:58]line Товар: 2710194210 [01:44:58]line ДТ-К-5 [01:44:58]line 10.710 * 74.70 [01:44:58]line = 800.04 [01:44:58]line НДС 12% НСП 1% [01:44:58]line > о реализуемом товаре [01:44:58]line ОКРУГЛЕНИЕ: -0.04 [01:44:58]line ИТОГО: 800.00 [01:44:58]line Внесено: 800.00 [01:44:58]line СДАЧА: 0.00 [01:44:58]line НСП 1% : 7.08 [01:44:58]line НДС 12% : 84.96 [01:44:58]line Наличными: 800.00 [01:44:58]line Безнал.: 0.00 [01:44:58]line Место: АЗС № 91 "Партнер Нефть" [01:44:58]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [01:44:58]line СНО: Общий режим [01:44:58]line Чек 4 15.05.2024 01:44 [01:44:58]line Смена: 356 ФФД: 1.0 [01:44:58]line ЗНМ: 0300000119 [01:44:58]line РНМ: 0000000000091845 [01:44:58]line Версия ККМ: 001 [01:44:58]line ФМ: 0000000000871829 [01:44:58]line ФД: 67186 [01:44:58]line ФПД: 110574397589321 [01:44:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T014458&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67186&fm=110574397589321&tin=02508201610067®Number=0000000000091845&sum=80000 [01:44:58]Connected sock=11 [01:44:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0C 01 00 00 0B E1 04 01 8B 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 84 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 9A 13 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 64 91 1B B0 87 49 47 3E 30 A0 6B 8E 05 BE [01:44:58]written 0, free lines is 4095 [01:44: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 7C 69 47 00 17 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 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 06 01 00 F4 03 04 00 79 BB 43 66 B6 04 01 00 00 57 5C 20 7A 41 35 CD 41 [01:44:59]CommunicateWithHost err = 0 [01:44:59]CheckOFDResponse [01:44:59]1017 (14) - 77093643461234 [01:44:59]1041 (16) - 0000000000871829 [01:44:59]1040 (4) - 67186 [01:44:59]1012 (4) - 14.05.2024 19:28 [01:44:59]1206 (1) - 0 [01:44:59]OFD Sender: Remove packet 67186 [01:44:59]ProducePacketName [01:44:59]name=ofd_packets/00067186 [01:44:59]NVStorageDeleteData [01:44:59]Write to MH i2c: 01 00 00 B9 1A D3 [01:44:59]Write i2c OK [01:44:59]MH_I2C_Read... [01:44:59]Read from MH i2c: 01 [01:44:59]MH_I2C_Read... [01:44:59]Read from MH i2c: 01 07 00 [01:44:59]MH_I2C_Read... [01:44:59]Read from MH i2c: 01 07 00 B9 1A 00 00 00 00 00 C2 0C A8 [01:44:59]RasterBufferAndPrint [01:44:59]line [01:44:59]line [01:44:59]line [01:44:59]line [01:44:59]line [01:44:59]written 0, free lines is 3273 [01:44:59]MH_Cut [01:44:59]Write to MH i2c: D1 01 00 C0 1A 01 AC [01:44:59]Write i2c OK [01:44:59]MH_I2C_Read... [01:44:59]Read from MH i2c: D1 [01:44:59]MH_I2C_Read... [01:44:59]Read from MH i2c: D1 01 00 [01:44:59]MH_I2C_Read... [01:44:59]Read from MH i2c: D1 01 00 C0 1A 00 AB [01:44:59]Write to MH i2c: 01 00 00 C1 1A DB [01:44:59]Write i2c OK [01:44:59]MH_I2C_Read... [01:44:59]OFD Sender: No OFD packet to send [01:45:00]*** Cut start [01:45:00]*** Purtial cut [01:45:00]*** CUTSNS_PIN = 0 [01:45:00]*** Stage 1: CUTSNS_PIN = 1 [01:45:02]Read from MH i2c: 01 [01:45:02]MH_I2C_Read... [01:45:02]*** Stop cut motor [01:45:02]*** Cut end [01:45:02]Read from MH i2c: 01 07 00 [01:45:02]MH_I2C_Read... [01:45:02]Read from MH i2c: 01 07 00 C1 1A 00 00 00 00 00 FF 0F F0 [01:45:02]process_action close_receipt done [01:45:02]requested_data is exist [01:45:02]produce_requested_data [01:45:02]requested_item fm.sn is exist - process it [01:45:02]wFMCommunicate request_size=4 [01:45:02]MH_SAM_APDU [01:45:02]CAPDU: 80 11 00 00 [01:45:02]Write to MH i2c: E2 08 00 C2 1A 80 11 00 00 00 00 00 00 56 [01:45:02]Write i2c OK [01:45:02]MH_I2C_Read... [01:45:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:45:02]Read from MH i2c: E2 [01:45:02]MH_I2C_Read... [01:45:02]Read from MH i2c: E2 17 00 [01:45:02]MH_I2C_Read... [01:45:02]Read from MH i2c: E2 17 00 C2 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 AC [01:45:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [01:45:02]wFMCommunicate OK [01:45:02]requested_item fd.num is exist - process it [01:45:02]SAM_PROTO_GetFieldsCounters [01:45:02]wFMCommunicate request_size=4 [01:45:02]MH_SAM_APDU [01:45:02]CAPDU: 80 13 00 00 [01:45:02]Write to MH i2c: E2 08 00 C3 1A 80 13 00 00 00 00 00 00 59 [01:45:02]Write i2c OK [01:45:02]MH_I2C_Read... [01:45:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:45:02]Read from MH i2c: E2 [01:45:02]MH_I2C_Read... [01:45:02]Read from MH i2c: E2 62 00 [01:45:02]MH_I2C_Read... [01:45:02]Read from MH i2c: E2 62 00 C3 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 72 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [01: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 72 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:45:02]wFMCommunicate OK [01:45:02]SAM_PROTO_GetFieldsCounters done [01:45:02]requested_item shift.num is exist - process it [01:45:02]requested_item shift.opened is exist - process it [01:45:02]req_shift_opened [01:45:02]FM_GetShiftState [01:45:02]SAM_PROTO_GetShiftState [01:45:02]wFMCommunicate request_size=4 [01:45:02]MH_SAM_APDU [01:45:02]CAPDU: 80 13 01 00 [01:45:02]Write to MH i2c: E2 08 00 C4 1A 80 13 01 00 00 00 00 00 5B [01:45:02]Write i2c OK [01:45:02]MH_I2C_Read... [01:45:02]Read from MH i2c: E2 [01:45:02]MH_I2C_Read... [01:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:45:02]Read from MH i2c: E2 0E 00 [01:45:02]MH_I2C_Read... [01:45:02]Read from MH i2c: E2 0E 00 C4 1A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 06 [01:45:02]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [01:45:02]wFMCommunicate OK [01:45:02]SAM_PROTO_GetShiftState done [01:45:02]FM_GetShiftState done [01:45:02]req_shift_opened done [01:45:02]requested_item shift.open_date is exist - process it [01:45:02]req_shift_open_date [01:45:02]req_shift_open_date done [01:45:02]produce_requested_data done [01:45:02]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67186,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [01:45:02]process_action_free close_receipt [01:45:02]json_value_free [01:45:02]json_value_free done [01:45:02]process_json_proto returns [01:45:02]Send response to host [01:45:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67186,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [01:45:02]free response buf [01:45:02]execute_script done [01:45:02]execute_script returns [01:45:02]free content buf [01:45:02]Sock 9.Close socket [01:45:02]Sock 9.Thread stoped [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:39]OFD Sender: No OFD packet to send [01:45:44]OFD Sender: No OFD packet to send [01:45:49]OFD Sender: No OFD packet to send [01:45:54]OFD Sender: No OFD packet to send [01:45:59]OFD Sender: No OFD packet to send [01:46:01]accept exits with 7 [01:46:01]New connection [01:46:01]New thread 3066588516 created [01:46:01]Thread 3066731876 joined [01:46:01]Waiting for new connection... [01:46:01] Sock 7.Parse request [01:46:01]Sock 7.Check first char [01:46:01]Sock 7.First char is OK [01:46:01]request: POST /json_proto HTTP/1.0 [01:46:01]Method: POST [01:46:01]URL: /json_proto [01:46:01]Method is POST - this is cgi request [01:46:01]url: /json_proto [01:46:01]query_string will be loaded in cgi processing [01:46:01]execute_cgi json_proto POST (null) [01:46:01]execute_cgi path=json_proto method=POST [01:46:01]POST find Content-Length [01:46:01]Host: 172.17.41.195:8080 [01:46:01]Content-Length: 620 [01:46:01]Content-Type: application/json [01:46:01] [01:46:01]POST finish read [01:46:01]Found Content-Length = 620 [01:46:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12060", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 128.00, "quantity" : 1.000, "sum" : 128.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 128.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:46:01]execute_script... [01:46:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)12060", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 128.00, "quantity" : 1.000, "sum" : 128.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 128.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:46:01]POST & json_proto [01:46:01]process_json_proto [01:46:01]json parsed OK: [01:46:01]protocol is kg_v1.0 [01:46:01]action value=close_receipt [01:46:01]process_action close_receipt [01:46:01]cmd_close_receipt [01:46:01]MH_GetDate [01:46:01]Write to MH i2c: F0 00 00 C5 1A CE [01:46:01]Write i2c OK [01:46:01]MH_I2C_Read... [01:46:01]Read from MH i2c: F0 [01:46:01]MH_I2C_Read... [01:46:01]Read from MH i2c: F0 09 00 [01:46:01]MH_I2C_Read... [01:46:01]Read from MH i2c: F0 09 00 C5 1A 00 DB 13 44 66 FC 21 6F 64 5F [01:46:01]GetLastDocTimeStamp 1715737498 [01:46:01]current date 1715737563 [01:46:01]FM_GetShiftState [01:46:01]SAM_PROTO_GetShiftState [01:46:01]wFMCommunicate request_size=4 [01:46:01]MH_SAM_APDU [01:46:01]CAPDU: 80 13 01 00 [01:46:01]Write to MH i2c: E2 08 00 C6 1A 80 13 01 00 00 00 00 00 5D [01:46:01]Write i2c OK [01:46:01]MH_I2C_Read... [01:46:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:46:01]Read from MH i2c: E2 [01:46:01]MH_I2C_Read... [01:46:01]Read from MH i2c: E2 0E 00 [01:46:01]MH_I2C_Read... [01:46:01]Read from MH i2c: E2 0E 00 C6 1A 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 08 [01:46:01]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [01:46:01]wFMCommunicate OK [01:46:01]SAM_PROTO_GetShiftState done [01:46:01]FM_GetShiftState done [01:46:01]opened in 1715732471 [01:46:01]opened+sec_in_day 1715818871 [01:46:01]quantity*price = 12800 [01:46:01]sum+1 = 12801 [01:46:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 128.00 НСП 1% : 1.13 НДС 12% : 13.59 Наличными: 128.00 Безнал.: 0.00 Место: АЗС № 91 "Партнер Нефть" Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 СНО: Общий режим Чек 5 15.05.2024 01:46 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67187 ФПД: 89741352148577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T014603&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67187&fm=89741352148577&tin=02508201610067®Number=0000000000091845&sum=12800 0 [01:46:02]StoreToDocumentArchive [01:46:02]shift 356 fd 67187 [01:46:02]save to /storage/0356/doc_00067187 [01:46:02]save last doc name /storage/0356/doc_00067187 to /storage/kkm_last_doc_name [01:46:02]save OK [01:46:02]Clear old archive folders... [01:46:02]ProcessDocumentItem done err = 0, tmpTLVsize=273 [01:46:02]tlvbuf is B6E8B950 [01:46:02]SAM_PROTO_ClearQueue [01:46:02]wFMCommunicate request_size=4 [01:46:02]MH_SAM_APDU [01:46:02]CAPDU: 80 09 00 00 [01:46:02]Write to MH i2c: E2 08 00 D3 1A 80 09 00 00 00 00 00 00 5F [01:46:02]Write i2c OK [01:46:02]MH_I2C_Read... [01:46:02]Read from MH i2c: E2 [01:46:02]MH_I2C_Read... [01:46:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:46:02]Read from MH i2c: E2 03 00 [01:46:02]MH_I2C_Read... [01:46:02]Read from MH i2c: E2 03 00 D3 1A 00 90 00 61 [01:46:02]RAPDU: 90 00 [01:46:02]wFMCommunicate OK [01:46:02]SAM_PROTO_ClearQueue done [01:46:02]KKMCreateOFDPacket [01:46:02]OFDProtocolAddRootSTLVToBuf [01:46:02]FM_MakeSignedData [01:46:02]FM_MakeSignedData [01:46:02]SAM_PROTO_SignData [01:46:02]wFMCommunicate request_size=4 [01:46:02]MH_SAM_APDU [01:46:02]CAPDU: 80 0D 01 02 [01:46:02]Write to MH i2c: E2 08 00 D4 1A 80 0D 01 02 00 00 00 00 67 [01:46:02]Write i2c OK [01:46:02]MH_I2C_Read... [01:46:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:46:02]Read from MH i2c: E2 [01:46:02]MH_I2C_Read... [01:46:02]Read from MH i2c: E2 03 00 [01:46:02]MH_I2C_Read... [01:46:02]Read from MH i2c: E2 03 00 D4 1A 00 90 00 62 [01:46:02]RAPDU: 90 00 [01:46:02]wFMCommunicate OK [01:46:02]wFMCommunicate request_size=255 [01:46:02]MH_SAM_APDU [01:46:02]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 DB 13 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 [01:46:02]Write to MH i2c: E2 02 01 D5 1A 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 DB 13 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 11 04 10 00 30 30 30 30 30 30 30 00 00 05 [01:46:02]Write i2c OK [01:46:02]MH_I2C_Read... [01:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:46:02]Read from MH i2c: E2 [01:46:02]MH_I2C_Read... [01:46:02]Read from MH i2c: E2 03 00 [01:46:02]MH_I2C_Read... [01:46:02]Read from MH i2c: E2 03 00 D5 1A 00 90 00 63 [01:46:02]RAPDU: 90 00 [01:46:02]wFMCommunicate OK [01:46:02]wFMCommunicate request_size=32 [01:46:02]MH_SAM_APDU [01:46:02]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 32 39 10 04 04 00 73 06 01 00 35 04 06 00 51 9E 89 6A 9E 61 [01:46:02]Write to MH i2c: E2 23 00 D6 1A 80 0D 02 02 1B 00 30 30 30 38 37 31 38 32 39 10 04 04 00 73 06 01 00 35 04 06 00 51 9E 89 6A 9E 61 00 00 25 [01:46:02]Write i2c OK [01:46:02]MH_I2C_Read... [01:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:46:02]Read from MH i2c: E2 [01:46:02]MH_I2C_Read... [01:46:02]Read from MH i2c: E2 03 00 [01:46:02]MH_I2C_Read... [01:46:02]Read from MH i2c: E2 03 00 D6 1A 00 90 00 64 [01:46:02]RAPDU: 90 00 [01:46:02]wFMCommunicate OK [01:46:02]wFMCommunicate request_size=4 [01:46:02]MH_SAM_APDU [01:46:02]CAPDU: 80 0D 03 02 [01:46:02]Write to MH i2c: E2 08 00 D7 1A 80 0D 03 02 00 00 00 00 6C [01:46:02]Write i2c OK [01:46:02]MH_I2C_Read... [01:46:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:46:03]Read from MH i2c: E2 [01:46:03]MH_I2C_Read... [01:46:03]Read from MH i2c: E2 0B 00 [01:46:03]MH_I2C_Read... [01:46:03]Read from MH i2c: E2 0B 00 D7 1A 00 BD D2 75 0C 5E 0D E2 F2 90 00 BC [01:46:03]RAPDU: BD D2 75 0C 5E 0D E2 F2 90 00 [01:46:03]wFMCommunicate OK [01:46:03]SAM_PROTO_SignData done [01:46:03]FM_MakeSignedData done [01:46:03]CreateOFDProtocolMessage [01:46:03]wFMCommunicate request_size=4 [01:46:03]MH_SAM_APDU [01:46:03]CAPDU: 80 11 00 00 [01:46:03]Write to MH i2c: E2 08 00 D8 1A 80 11 00 00 00 00 00 00 6C [01:46:03]Write i2c OK [01:46:03]MH_I2C_Read... [01:46:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:46:03]Read from MH i2c: E2 [01:46:03]MH_I2C_Read... [01:46:03]Read from MH i2c: E2 17 00 [01:46:03]MH_I2C_Read... [01:46:03]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 [01:46:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [01:46:03]wFMCommunicate OK [01:46:03]CreateOFDProtocolMessage done [01:46:03]OFDSenderStorePacket 67187 [01:46:03]StoreOFDPacket docnum=67187 [01:46: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 25 01 00 00 AD 5D 1D 01 8E 8F 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 DB 13 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 51 9E 89 6A 9E 61 BD D2 75 0C 5E 0D E2 F2 [01:46:03]CheckFolder [01:46:03]dirname=/storage/ofd_packets [01:46:03]CheckFolder done [01:46:03]ProducePacketName [01:46:03]name=ofd_packets/00067187 [01:46:03]NVStorageSaveData ofd_packets/00067187 [01:46:03]File name is /storage/ofd_packets/00067187 [01:46:03]Write 323 bytes [01:46:03]NVStorageSaveData done [01:46:03]OFDSenderStorePacket done [01:46:03]KKMCreateOFDPacket done [01:46:03]NVStorageSaveData kkm_last_timestamp [01:46:03]File name is /storage/kkm_last_timestamp [01:46:03]Write 4 bytes [01:46:03]NVStorageSaveData done [01:46:03]ExternCall_PrintAddStr [01:46:03]wPrintStart [01:46:03]Write to MH i2c: 01 00 00 D9 1A F3 [01:46:03]Write i2c OK [01:46:03]MH_I2C_Read... [01:46:03]Read from MH i2c: 01 [01:46:03]MH_I2C_Read... [01:46:03]Read from MH i2c: 01 07 00 [01:46:03]MH_I2C_Read... [01:46:03]Read from MH i2c: 01 07 00 D9 1A 00 00 00 00 00 FF 0F 08 [01:46:03]RasterBufferAndPrint [01:46:03]line Счет N : (3)12060 [01:46:03]line ИНН: 02508201610067 [01:46:03]line Контрольно-Кассовый Чек [01:46:03]line ПРОДАЖА [01:46:03]line Товар: 48743570 [01:46:03]line Сигареты Winston XStyle Blue [01:46:03]line 1.000 * 128.00 [01:46:03]line = 128.00 [01:46:03]line НДС 12% НСП 1% [01:46:03]line > о реализуемом товаре [01:46:03]line ИТОГО: 128.00 [01:46:03]line НСП 1% : 1.13 [01:46:03]line НДС 12% : 13.59 [01:46:03]line Наличными: 128.00 [01:46:03]line Безнал.: 0.00 [01:46:03]line Место: АЗС № 91 "Партнер Нефть" [01:46:03]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [01:46:03]line СНО: Общий режим [01:46:03]line Чек 5 15.05.2024 01:46 [01:46:03]line Смена: 356 ФФД: 1.0 [01:46:03]line ЗНМ: 0300000119 [01:46:03]line РНМ: 0000000000091845 [01:46:03]line Версия ККМ: 001 [01:46:03]line ФМ: 0000000000871829 [01:46:03]line ФД: 67187 [01:46:03]line ФПД: 89741352148577 [01:46:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T014603&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67187&fm=89741352148577&tin=02508201610067®Number=0000000000091845&sum=12800 [01:46:03]line 0 [01:46:03]written 0, free lines is 4095 [01:46:03]OFD Sender: Processing packet 67187 [packets to send 35, broken 34] [01:46:03]ProducePacketName [01:46:03]name=ofd_packets/00067187 [01:46:03]OFD Sender: To server: pG, [01:46:03]CommunicateWithHost lk.salyk.kg:30040 [01:46:03]ConnectInit lk.salyk.kg [01:46:03]Connected sock=10 [01:46: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 25 01 00 00 AD 5D 1D 01 8E 8F 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 00 32 00 00 00 00 13 04 06 00 00 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 05 00 00 00 00 07 04 06 00 00 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 DB 13 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 51 9E 89 6A 9E 61 BD D2 75 0C 5E 0D E2 F2 [01:46: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 3C 54 47 00 61 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 73 06 01 00 F4 03 04 00 B9 BB 43 66 B6 04 01 00 00 6E 9E 06 C1 F8 2F E9 CA [01:46:03]CommunicateWithHost err = 0 [01:46:03]CheckOFDResponse [01:46:03]1017 (14) - 77093643461234 [01:46:03]1041 (16) - 0000000000871829 [01:46:03]1040 (4) - 67187 [01:46:03]1012 (4) - 14.05.2024 19:30 [01:46:03]1206 (1) - 0 [01:46:03]OFD Sender: Remove packet 67187 [01:46:03]ProducePacketName [01:46:03]name=ofd_packets/00067187 [01:46:03]NVStorageDeleteData [01:46:03]Write to MH i2c: 01 00 00 00 1B 1B [01:46:03]Write i2c OK [01:46:03]MH_I2C_Read... [01:46:03]Read from MH i2c: 01 [01:46:03]MH_I2C_Read... [01:46:03]Read from MH i2c: 01 07 00 [01:46:03]MH_I2C_Read... [01:46:03]Read from MH i2c: 01 07 00 00 1B 00 00 00 00 00 F4 0C 22 [01:46:03]RasterBufferAndPrint [01:46:03]line [01:46:03]line [01:46:03]line [01:46:03]line [01:46:03]line [01:46:03]written 0, free lines is 3323 [01:46:03]MH_Cut [01:46:03]Write to MH i2c: D1 01 00 07 1B 01 F4 [01:46:03]Write i2c OK [01:46:03]MH_I2C_Read... [01:46:03]Read from MH i2c: D1 [01:46:03]MH_I2C_Read... [01:46:03]Read from MH i2c: D1 01 00 [01:46:03]MH_I2C_Read... [01:46:03]Read from MH i2c: D1 01 00 07 1B 00 F3 [01:46:03]Write to MH i2c: 01 00 00 08 1B 23 [01:46:03]Write i2c OK [01:46:03]MH_I2C_Read... [01:46:03]OFD Sender: No OFD packet to send [01:46:04]*** Cut start [01:46:04]*** Purtial cut [01:46:04]*** Stage 1: CUTSNS_PIN = 1 [01:46:04]Read from MH i2c: 01 [01:46:04]MH_I2C_Read... [01:46:04]*** Stop cut motor [01:46:04]*** Cut end [01:46:04]Read from MH i2c: 01 07 00 [01:46:04]MH_I2C_Read... [01:46:04]Read from MH i2c: 01 07 00 08 1B 00 00 00 00 00 FF 0F 38 [01:46:04]process_action close_receipt done [01:46:04]requested_data is exist [01:46:04]produce_requested_data [01:46:04]requested_item fm.sn is exist - process it [01:46:04]wFMCommunicate request_size=4 [01:46:04]MH_SAM_APDU [01:46:04]CAPDU: 80 11 00 00 [01:46:04]Write to MH i2c: E2 08 00 09 1B 80 11 00 00 00 00 00 00 9E [01:46:04]Write i2c OK [01:46:04]MH_I2C_Read... [01:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:46:04]Read from MH i2c: E2 [01:46:04]MH_I2C_Read... [01:46:04]Read from MH i2c: E2 17 00 [01:46:04]MH_I2C_Read... [01:46:04]Read from MH i2c: E2 17 00 09 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 F4 [01: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 [01:46:04]wFMCommunicate OK [01:46:04]requested_item fd.num is exist - process it [01:46:04]SAM_PROTO_GetFieldsCounters [01:46:04]wFMCommunicate request_size=4 [01:46:04]MH_SAM_APDU [01:46:04]CAPDU: 80 13 00 00 [01:46:04]Write to MH i2c: E2 08 00 0A 1B 80 13 00 00 00 00 00 00 A1 [01:46:04]Write i2c OK [01:46:04]MH_I2C_Read... [01:46:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:46:04]Read from MH i2c: E2 [01:46:04]MH_I2C_Read... [01:46:04]Read from MH i2c: E2 62 00 [01:46:04]MH_I2C_Read... [01:46:04]Read from MH i2c: E2 62 00 0A 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 73 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [01: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 73 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:46:04]wFMCommunicate OK [01:46:04]SAM_PROTO_GetFieldsCounters done [01:46:04]requested_item shift.num is exist - process it [01:46:04]requested_item shift.opened is exist - process it [01:46:04]req_shift_opened [01:46:04]FM_GetShiftState [01:46:04]SAM_PROTO_GetShiftState [01:46:04]wFMCommunicate request_size=4 [01:46:04]MH_SAM_APDU [01:46:04]CAPDU: 80 13 01 00 [01:46:04]Write to MH i2c: E2 08 00 0B 1B 80 13 01 00 00 00 00 00 A3 [01:46:04]Write i2c OK [01:46:04]MH_I2C_Read... [01:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:46:04]Read from MH i2c: E2 [01:46:04]MH_I2C_Read... [01:46:04]Read from MH i2c: E2 0E 00 [01:46:04]MH_I2C_Read... [01:46:04]Read from MH i2c: E2 0E 00 0B 1B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 4E [01:46:04]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [01:46:04]wFMCommunicate OK [01:46:04]SAM_PROTO_GetShiftState done [01:46:04]FM_GetShiftState done [01:46:04]req_shift_opened done [01:46:04]requested_item shift.open_date is exist - process it [01:46:04]req_shift_open_date [01:46:04]req_shift_open_date done [01:46:04]produce_requested_data done [01:46:04]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67187,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [01:46:04]process_action_free close_receipt [01:46:04]json_value_free [01:46:04]json_value_free done [01:46:04]process_json_proto returns [01:46:04]Send response to host [01:46:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67187,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [01:46:04]free response buf [01:46:04]execute_script done [01:46:04]execute_script returns [01:46:04]free content buf [01:46:04]Sock 7.Close socket [01:46:04]Sock 7.Thread stoped [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:59]OFD Sender: No OFD packet to send [01:47:04]OFD Sender: No OFD packet to send [01:47:09]OFD Sender: No OFD packet to send [01:47:14]OFD Sender: No OFD packet to send [01:47:19]OFD Sender: No OFD packet to send [01:47:24]OFD Sender: No OFD packet to send [01:47:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:29]OFD Sender: No OFD packet to send [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]OFD Sender: No OFD packet to send [01:52:29]OFD Sender: No OFD packet to send [01:52:34]OFD Sender: No OFD packet to send [01:52:39]OFD Sender: No OFD packet to send [01:52:44]OFD Sender: No OFD packet to send [01:52:49]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:59]OFD Sender: No OFD packet to send [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]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:10]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]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: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:53]accept exits with 9 [02:24:53]New connection [02:24:53]New thread 3066731876 created [02:24:53]Thread 3066588516 joined [02:24:53]Waiting for new connection... [02:24:53] Sock 9.Parse request [02:24:53]Sock 9.Check first char [02:24:53]Sock 9.First char is OK [02:24:53]request: POST /json_proto HTTP/1.0 [02:24:53]Method: POST [02:24:53]URL: /json_proto [02:24:53]Method is POST - this is cgi request [02:24:53]url: /json_proto [02:24:53]query_string will be loaded in cgi processing [02:24:53]execute_cgi json_proto POST (null) [02:24:53]execute_cgi path=json_proto method=POST [02:24:53]POST find Content-Length [02:24:53]Host: 172.17.41.195:8080 [02:24:53]Content-Length: 677 [02:24:53]Content-Type: application/json [02:24:53] [02:24:53]POST finish read [02:24:53]Found Content-Length = 677 [02:24:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)507094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:24:53]execute_script... [02:24: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)507094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:24:53]POST & json_proto [02:24:53]process_json_proto [02:24:53]json parsed OK: [02:24:53]protocol is kg_v1.0 [02:24:53]action value=close_receipt [02:24:53]process_action close_receipt [02:24:53]cmd_close_receipt [02:24:53]MH_GetDate [02:24:53]Write to MH i2c: F0 00 00 0C 1B 16 [02:24:53]Write i2c OK [02:24:53]MH_I2C_Read... [02:24:53]Read from MH i2c: F0 [02:24:53]MH_I2C_Read... [02:24:53]Read from MH i2c: F0 09 00 [02:24:53]MH_I2C_Read... [02:24:53]Read from MH i2c: F0 09 00 0C 1B 00 F7 1C 44 66 FC 21 6F 64 CC [02:24:53]GetLastDocTimeStamp 1715737563 [02:24:53]current date 1715739895 [02:24:53]FM_GetShiftState [02:24:53]SAM_PROTO_GetShiftState [02:24:53]wFMCommunicate request_size=4 [02:24:53]MH_SAM_APDU [02:24:53]CAPDU: 80 13 01 00 [02:24:53]Write to MH i2c: E2 08 00 0D 1B 80 13 01 00 00 00 00 00 A5 [02:24:53]Write i2c OK [02:24:53]MH_I2C_Read... [02:24:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:24:53]Read from MH i2c: E2 [02:24:53]MH_I2C_Read... [02:24:53]Read from MH i2c: E2 0E 00 [02:24:53]MH_I2C_Read... [02:24:53]Read from MH i2c: E2 0E 00 0D 1B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 50 [02:24:53]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [02:24:53]wFMCommunicate OK [02:24:53]SAM_PROTO_GetShiftState done [02:24:53]FM_GetShiftState done [02:24:53]opened in 1715732471 [02:24:53]opened+sec_in_day 1715818871 [02:24:53]quantity*price = 60053 [02:24:53]sum+1 = 60054 [02:24:53]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 СНО: Общий режим Чек 6 15.05.2024 02:24 Смена: 356 ФФД: 1.0 ЗНМ: 0300000119 РНМ: 0000000000091845 Версия ККМ: 001 ФМ: 0000000000871829 ФД: 67188 ФПД: 154525816408537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T022455&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67188&fm=154525816408537&tin=02508201610067®Number=0000000000091845&sum=60000 [02:24:54]StoreToDocumentArchive [02:24:54]shift 356 fd 67188 [02:24:54]save to /storage/0356/doc_00067188 [02:24:54]save last doc name /storage/0356/doc_00067188 to /storage/kkm_last_doc_name [02:24:54]save OK [02:24:54]Clear old archive folders... [02:24:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:24:54]tlvbuf is 0037AAB0 [02:24:54]SAM_PROTO_ClearQueue [02:24:54]wFMCommunicate request_size=4 [02:24:54]MH_SAM_APDU [02:24:54]CAPDU: 80 09 00 00 [02:24:54]Write to MH i2c: E2 08 00 1A 1B 80 09 00 00 00 00 00 00 A7 [02:24:54]Write i2c OK [02:24:54]MH_I2C_Read... [02:24:54]Read from MH i2c: E2 [02:24:54]MH_I2C_Read... [02:24:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:24:54]Read from MH i2c: E2 03 00 [02:24:54]MH_I2C_Read... [02:24:54]Read from MH i2c: E2 03 00 1A 1B 00 90 00 A9 [02:24:54]RAPDU: 90 00 [02:24:54]wFMCommunicate OK [02:24:54]SAM_PROTO_ClearQueue done [02:24:54]KKMCreateOFDPacket [02:24:54]OFDProtocolAddRootSTLVToBuf [02:24:54]FM_MakeSignedData [02:24:54]FM_MakeSignedData [02:24:54]SAM_PROTO_SignData [02:24:54]wFMCommunicate request_size=4 [02:24:54]MH_SAM_APDU [02:24:54]CAPDU: 80 0D 01 02 [02:24:54]Write to MH i2c: E2 08 00 1B 1B 80 0D 01 02 00 00 00 00 AF [02:24:54]Write i2c OK [02:24:54]MH_I2C_Read... [02:24:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:24:54]Read from MH i2c: E2 [02:24:54]MH_I2C_Read... [02:24:54]Read from MH i2c: E2 03 00 [02:24:54]MH_I2C_Read... [02:24:54]Read from MH i2c: E2 03 00 1B 1B 00 90 00 AA [02:24:54]RAPDU: 90 00 [02:24:54]wFMCommunicate OK [02:24:54]wFMCommunicate request_size=255 [02:24:54]MH_SAM_APDU [02:24: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 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 06 00 00 00 F4 03 04 00 F7 1C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 8C [02:24:54]Write to MH i2c: E2 02 01 1C 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 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 06 00 00 00 F4 03 04 00 F7 1C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 8C 00 00 89 [02:24:54]Write i2c OK [02:24:54]MH_I2C_Read... [02:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:24:55]Read from MH i2c: E2 [02:24:55]MH_I2C_Read... [02:24:55]Read from MH i2c: E2 03 00 [02:24:55]MH_I2C_Read... [02:24:55]Read from MH i2c: E2 03 00 1C 1B 00 90 00 AB [02:24:55]RAPDU: 90 00 [02:24:55]wFMCommunicate OK [02:24:55]wFMCommunicate request_size=10 [02:24:55]MH_SAM_APDU [02:24:55]CAPDU: 80 0D 02 02 05 8A 58 65 49 D9 [02:24:55]Write to MH i2c: E2 0D 00 1D 1B 80 0D 02 02 05 00 8A 58 65 49 D9 00 00 25 [02:24:55]Write i2c OK [02:24:55]MH_I2C_Read... [02:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:24:55]Read from MH i2c: E2 [02:24:55]MH_I2C_Read... [02:24:55]Read from MH i2c: E2 03 00 [02:24:55]MH_I2C_Read... [02:24:55]Read from MH i2c: E2 03 00 1D 1B 00 90 00 AC [02:24:55]RAPDU: 90 00 [02:24:55]wFMCommunicate OK [02:24:55]wFMCommunicate request_size=4 [02:24:55]MH_SAM_APDU [02:24:55]CAPDU: 80 0D 03 02 [02:24:55]Write to MH i2c: E2 08 00 1E 1B 80 0D 03 02 00 00 00 00 B4 [02:24:55]Write i2c OK [02:24:55]MH_I2C_Read... [02:24:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:24:55]Read from MH i2c: E2 [02:24:55]MH_I2C_Read... [02:24:55]Read from MH i2c: E2 0B 00 [02:24:55]MH_I2C_Read... [02:24:55]Read from MH i2c: E2 0B 00 1E 1B 00 0F E1 19 6D 68 BA 6D D2 90 00 8C [02:24:55]RAPDU: 0F E1 19 6D 68 BA 6D D2 90 00 [02:24:55]wFMCommunicate OK [02:24:55]SAM_PROTO_SignData done [02:24:55]FM_MakeSignedData done [02:24:55]CreateOFDProtocolMessage [02:24:55]wFMCommunicate request_size=4 [02:24:55]MH_SAM_APDU [02:24:55]CAPDU: 80 11 00 00 [02:24:55]Write to MH i2c: E2 08 00 1F 1B 80 11 00 00 00 00 00 00 B4 [02:24:55]Write i2c OK [02:24:55]MH_I2C_Read... [02:24:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:24:55]Read from MH i2c: E2 [02:24:55]MH_I2C_Read... [02:24:55]Read from MH i2c: E2 17 00 [02:24:55]MH_I2C_Read... [02:24:55]Read from MH i2c: E2 17 00 1F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 0A [02:24:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [02:24:55]wFMCommunicate OK [02:24:55]CreateOFDProtocolMessage done [02:24:55]OFDSenderStorePacket 67188 [02:24:55]StoreOFDPacket docnum=67188 [02:24:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0F 01 00 00 D2 5E 07 01 CC AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 06 00 00 00 F4 03 04 00 F7 1C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 8C 8A 58 65 49 D9 0F E1 19 6D 68 BA 6D D2 [02:24:55]CheckFolder [02:24:55]dirname=/storage/ofd_packets [02:24:55]CheckFolder done [02:24:55]ProducePacketName [02:24:55]name=ofd_packets/00067188 [02:24:55]NVStorageSaveData ofd_packets/00067188 [02:24:55]File name is /storage/ofd_packets/00067188 [02:24:55]Write 301 bytes [02:24:55]NVStorageSaveData done [02:24:55]OFDSenderStorePacket done [02:24:55]KKMCreateOFDPacket done [02:24:55]NVStorageSaveData kkm_last_timestamp [02:24:55]File name is /storage/kkm_last_timestamp [02:24:55]Write 4 bytes [02:24:55]NVStorageSaveData done [02:24:55]ExternCall_PrintAddStr [02:24:55]wPrintStart [02:24:55]Write to MH i2c: 01 00 00 20 1B 3B [02:24:55]Write i2c OK [02:24:55]MH_I2C_Read... [02:24:55]Read from MH i2c: 01 [02:24:55]MH_I2C_Read... [02:24:55]Read from MH i2c: 01 07 00 [02:24:55]MH_I2C_Read... [02:24:55]Read from MH i2c: 01 07 00 20 1B 00 00 00 00 00 FF 0F 50 [02:24:55]RasterBufferAndPrint [02:24:55]line Счет N : (1)507094 [02:24:55]line ИНН: 02508201610067 [02:24:55]line Контрольно-Кассовый Чек [02:24:55]line ПРОДАЖА [02:24:55]line ТРК (МРК, ГНК) : 43 [02:24:55]line Товар: 2710124130 [02:24:55]line Аи-92-К-5 [02:24:55]line 8.990 * 66.80 [02:24:55]line = 600.53 [02:24:55]line НДС 12% НСП 1% [02:24:55]line > о реализуемом товаре [02:24:55]line ОКРУГЛЕНИЕ: -0.53 [02:24:55]line ИТОГО: 600.00 [02:24:55]line Внесено: 600.00 [02:24:55]line СДАЧА: 0.00 [02:24:55]line НСП 1% : 5.31 [02:24:55]line НДС 12% : 63.77 [02:24:55]line Наличными: 600.00 [02:24:55]line Безнал.: 0.00 [02:24:55]line Место: АЗС № 91 "Партнер Нефть" [02:24:55]line Адрес: 720001, с. Толойкон, ул. ДЭУ, 40.473302, 72.756699 [02:24:55]line СНО: Общий режим [02:24:55]line Чек 6 15.05.2024 02:24 [02:24:55]line Смена: 356 ФФД: 1.0 [02:24:55]line ЗНМ: 0300000119 [02:24:55]line РНМ: 0000000000091845 [02:24:55]line Версия ККМ: 001 [02:24:55]line ФМ: 0000000000871829 [02:24:55]line ФД: 67188 [02:24:55]line ФПД: 154525816408537 [02:24:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240515T022455&type=1&operation_type=1&fn_number=0000000000871829&fd_number=67188&fm=154525816408537&tin=02508201610067®Number=0000000000091845&sum=60000 [02:24:55]written 0, free lines is 4095 [02:24:55]OFD Sender: Processing packet 67188 [packets to send 35, broken 34] [02:24:55]ProducePacketName [02:24:55]name=ofd_packets/00067188 [02:24:55]OFD Sender: To server: pG, [02:24:55]CommunicateWithHost lk.salyk.kg:30040 [02:24:55]ConnectInit lk.salyk.kg [02:24:55]Connected sock=10 [02:24: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 D2 5E 07 01 CC AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 06 00 00 00 F4 03 04 00 F7 1C 44 66 0E 04 04 00 64 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 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 06 01 00 35 04 06 00 8C 8A 58 65 49 D9 0F E1 19 6D 68 BA 6D D2 [02:24: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 93 E9 47 00 D0 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 74 06 01 00 F4 03 04 00 D6 C4 43 66 B6 04 01 00 00 1C 65 25 43 45 C8 DE D1 [02:24:55]CommunicateWithHost err = 0 [02:24:55]CheckOFDResponse [02:24:55]1017 (14) - 77093643461234 [02:24:55]1041 (16) - 0000000000871829 [02:24:55]1040 (4) - 67188 [02:24:55]1012 (4) - 14.05.2024 20:08 [02:24:55]1206 (1) - 0 [02:24:55]OFD Sender: Remove packet 67188 [02:24:55]ProducePacketName [02:24:55]name=ofd_packets/00067188 [02:24:55]NVStorageDeleteData [02:24:56]Write to MH i2c: 01 00 00 4A 1B 65 [02:24:56]Write i2c OK [02:24:56]MH_I2C_Read... [02:24:56]Read from MH i2c: 01 [02:24:56]MH_I2C_Read... [02:24:56]Read from MH i2c: 01 07 00 [02:24:56]MH_I2C_Read... [02:24:56]Read from MH i2c: 01 07 00 4A 1B 00 00 00 00 00 C4 0C 3C [02:24:56]RasterBufferAndPrint [02:24:56]line [02:24:56]line [02:24:56]line [02:24:56]line [02:24:56]line [02:24:56]written 0, free lines is 3275 [02:24:56]MH_Cut [02:24:56]Write to MH i2c: D1 01 00 51 1B 01 3E [02:24:56]Write i2c OK [02:24:56]MH_I2C_Read... [02:24:56]Read from MH i2c: D1 [02:24:56]MH_I2C_Read... [02:24:56]Read from MH i2c: D1 01 00 [02:24:56]MH_I2C_Read... [02:24:56]Read from MH i2c: D1 01 00 51 1B 00 3D [02:24:56]Write to MH i2c: 01 00 00 52 1B 6D [02:24:56]Write i2c OK [02:24:56]MH_I2C_Read... [02:24:56]OFD Sender: No OFD packet to send [02:24:56]*** Cut start [02:24:56]*** Purtial cut [02:24:56]*** CUTSNS_PIN = 0 [02:24:57]*** Stage 1: CUTSNS_PIN = 1 [02:24:58]Read from MH i2c: 01 [02:24:58]MH_I2C_Read... [02:24:58]*** Stop cut motor [02:24:58]*** Cut end [02:24:58]Read from MH i2c: 01 07 00 [02:24:58]MH_I2C_Read... [02:24:58]Read from MH i2c: 01 07 00 52 1B 00 00 00 00 00 FF 0F 82 [02:24:58]process_action close_receipt done [02:24:58]requested_data is exist [02:24:58]produce_requested_data [02:24:58]requested_item fm.sn is exist - process it [02:24:58]wFMCommunicate request_size=4 [02:24:58]MH_SAM_APDU [02:24:58]CAPDU: 80 11 00 00 [02:24:58]Write to MH i2c: E2 08 00 53 1B 80 11 00 00 00 00 00 00 E8 [02:24:58]Write i2c OK [02:24:58]MH_I2C_Read... [02:24:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:24:59]Read from MH i2c: E2 [02:24:59]MH_I2C_Read... [02:24:59]Read from MH i2c: E2 17 00 [02:24:59]MH_I2C_Read... [02:24:59]Read from MH i2c: E2 17 00 53 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 3E [02:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [02:24:59]wFMCommunicate OK [02:24:59]requested_item fd.num is exist - process it [02:24:59]SAM_PROTO_GetFieldsCounters [02:24:59]wFMCommunicate request_size=4 [02:24:59]MH_SAM_APDU [02:24:59]CAPDU: 80 13 00 00 [02:24:59]Write to MH i2c: E2 08 00 54 1B 80 13 00 00 00 00 00 00 EB [02:24:59]Write i2c OK [02:24:59]MH_I2C_Read... [02:24:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:24:59]Read from MH i2c: E2 [02:24:59]MH_I2C_Read... [02:24:59]Read from MH i2c: E2 62 00 [02:24:59]MH_I2C_Read... [02:24:59]Read from MH i2c: E2 62 00 54 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 74 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [02:24:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 74 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:24:59]wFMCommunicate OK [02:24:59]SAM_PROTO_GetFieldsCounters done [02:24:59]requested_item shift.num is exist - process it [02:24:59]requested_item shift.opened is exist - process it [02:24:59]req_shift_opened [02:24:59]FM_GetShiftState [02:24:59]SAM_PROTO_GetShiftState [02:24:59]wFMCommunicate request_size=4 [02:24:59]MH_SAM_APDU [02:24:59]CAPDU: 80 13 01 00 [02:24:59]Write to MH i2c: E2 08 00 55 1B 80 13 01 00 00 00 00 00 ED [02:24:59]Write i2c OK [02:24:59]MH_I2C_Read... [02:24:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:24:59]Read from MH i2c: E2 [02:24:59]MH_I2C_Read... [02:24:59]Read from MH i2c: E2 0E 00 [02:24:59]MH_I2C_Read... [02:24:59]Read from MH i2c: E2 0E 00 55 1B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 98 [02:24:59]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [02:24:59]wFMCommunicate OK [02:24:59]SAM_PROTO_GetShiftState done [02:24:59]FM_GetShiftState done [02:24:59]req_shift_opened done [02:24:59]requested_item shift.open_date is exist - process it [02:24:59]req_shift_open_date [02:24:59]req_shift_open_date done [02:24:59]produce_requested_data done [02:24:59]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67188,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [02:24:59]process_action_free close_receipt [02:24:59]json_value_free [02:24:59]json_value_free done [02:24:59]process_json_proto returns [02:24:59]Send response to host [02:24:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67188,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [02:24:59]free response buf [02:24:59]execute_script done [02:24:59]execute_script returns [02:24:59]free content buf [02:24:59]Sock 9.Close socket [02:24:59]Sock 9.Thread stoped [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:25:56]OFD Sender: No OFD packet to send [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:31]OFD Sender: No OFD packet to send [02:30:36]OFD Sender: No OFD packet to send [02:30:41]OFD Sender: No OFD packet to send [02:30:46]OFD Sender: No OFD packet to send [02:30:51]OFD Sender: No OFD packet to send [02:30:56]OFD Sender: No OFD packet to send [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]OFD Sender: No OFD packet to send [02:31:21]OFD Sender: No OFD packet to send [02:31:26]OFD Sender: No OFD packet to send [02:31:31]OFD Sender: No OFD packet to send [02:31:36]OFD Sender: No OFD packet to send [02:31:41]OFD Sender: No OFD packet to send [02:31:46]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:06]OFD Sender: No OFD packet to send [02:32:11]OFD Sender: No OFD packet to send [02:32:16]OFD Sender: No OFD packet to send [02:32:21]OFD Sender: No OFD packet to send [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:36]OFD Sender: No OFD packet to send [02:32:41]OFD Sender: No OFD packet to send [02:32:46]OFD Sender: No OFD packet to send [02:32:51]OFD Sender: No OFD packet to send [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:31]OFD Sender: No OFD packet to send [02:33:36]OFD Sender: No OFD packet to send [02:33:41]OFD Sender: No OFD packet to send [02:33:46]OFD Sender: No OFD packet to send [02:33:51]OFD Sender: No OFD packet to send [02:33:56]OFD Sender: No OFD packet to send [02:34:01]OFD Sender: No OFD packet to send [02:34:06]OFD Sender: No OFD packet to send [02:34:11]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:07]OFD Sender: No OFD packet to send [02:35:12]OFD Sender: No OFD packet to send [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38:22]OFD Sender: No OFD packet to send [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:27]OFD Sender: No OFD packet to send [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:42]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]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:18]OFD Sender: No OFD packet to send [02:54:23]OFD Sender: No OFD packet to send [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:28]OFD Sender: No OFD packet to send [02:55:33]OFD Sender: No OFD packet to send [02:55:38]OFD Sender: No OFD packet to send [02:55:43]OFD Sender: No OFD packet to send [02:55:48]OFD Sender: No OFD packet to send [02:55:53]OFD Sender: No OFD packet to send [02:55:58]OFD Sender: No OFD packet to send [02:56:03]OFD Sender: No OFD packet to send [02:56:08]OFD Sender: No OFD packet to send [02:56:13]OFD Sender: No OFD packet to send [02:56:18]OFD Sender: No OFD packet to send [02:56:23]OFD Sender: No OFD packet to send [02:56:28]OFD Sender: No OFD packet to send [02:56:33]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:19]accept exits with 7 [03:02:19]New connection [03:02:19]New thread 3066588516 created [03:02:19]Thread 3066731876 joined [03:02:19]Waiting for new connection... [03:02:19] Sock 7.Parse request [03:02:19]Sock 7.Check first char [03:02:19]Sock 7.First char is OK [03:02:19]request: POST /json_proto HTTP/1.0 [03:02:19]Method: POST [03:02:19]URL: /json_proto [03:02:19]Method is POST - this is cgi request [03:02:19]url: /json_proto [03:02:19]query_string will be loaded in cgi processing [03:02:19]execute_cgi json_proto POST (null) [03:02:19]execute_cgi path=json_proto method=POST [03:02:19]POST find Content-Length [03:02:19]Host: 172.17.41.195:8080 [03:02:19]Content-Length: 1209 [03:02:19]Content-Type: application/json [03:02:19] [03:02:19]POST finish read [03:02:19]Found Content-Length = 1209 [03:02:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507095\u000A15.05.2024 02:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:02:19]execute_script... [03:02:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-91\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0440\u0441\u0442\u0430\u043D\u0431\u0435\u043A\u043E\u0432 \u041D.\u000A\u0421\u0447\u0435\u0442 N : (1)507095\u000A15.05.2024 02:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 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:02:19]POST & json_proto [03:02:19]process_json_proto [03:02:19]json parsed OK: [03:02:19]protocol is kg_v1.0 [03:02:19]action value=print_text [03:02:19]process_action print_text [03:02:19]cmd_print_text [03:02:19]ExternCall_PrintAddStr [03:02:19]wPrintStart [03:02:19]Write to MH i2c: 01 00 00 56 1B 71 [03:02:19]Write i2c OK [03:02:19]MH_I2C_Read... [03:02:19]Read from MH i2c: 01 [03:02:19]MH_I2C_Read... [03:02:19]Read from MH i2c: 01 07 00 [03:02:19]MH_I2C_Read... [03:02:19]Read from MH i2c: 01 07 00 56 1B 00 00 00 00 00 FF 0F 86 [03:02:19]RasterBufferAndPrint [03:02:19]line *****ТОВАРНЫЙ ЧЕК***** [03:02:19]line АЗС-91 [03:02:19]line Партнер нефть [03:02:19]line 02508201610067 [03:02:19]line Кассир : Арстанбеков Н. [03:02:19]line Счет N : (1)507095 [03:02:19]line 15.05.2024 02:44 [03:02:19]line ПРОДАЖА [03:02:19]line ТРК (МРК, ГНК): 21 [03:02:19]line Вид ГСМ : 2710194210 [03:02:19]line ДТ-К-5 [03:02:19]line 30.000 x 74.70 [03:02:19]line ИТОГ: 2241.00 [03:02:19]line Тип оплаты: Талоны: Топливная Карта [03:02:19]line 02750 [03:02:19]line ______________________ [03:02:19]line (подпись) [03:02:19]written 0, free lines is 4095 [03:02:19]Write to MH i2c: 01 00 00 6A 1B 85 [03:02:19]Write i2c OK [03:02:19]MH_I2C_Read... [03:02:19]Read from MH i2c: 01 [03:02:19]MH_I2C_Read... [03:02:19]Read from MH i2c: 01 07 00 [03:02:19]MH_I2C_Read... [03:02:19]Read from MH i2c: 01 07 00 6A 1B 00 00 00 00 00 0E 0E A8 [03:02:19]RasterBufferAndPrint [03:02:19]line [03:02:19]line [03:02:19]line [03:02:19]line [03:02:19]line [03:02:19]written 0, free lines is 3600 [03:02:19]MH_Cut [03:02:19]Write to MH i2c: D1 01 00 71 1B 01 5E [03:02:19]Write i2c OK [03:02:19]MH_I2C_Read... [03:02:19]Read from MH i2c: D1 [03:02:19]MH_I2C_Read... [03:02:19]Read from MH i2c: D1 01 00 [03:02:19]MH_I2C_Read... [03:02:19]Read from MH i2c: D1 01 00 71 1B 00 5D [03:02:19]Write to MH i2c: 01 00 00 72 1B 8D [03:02:19]Write i2c OK [03:02:19]MH_I2C_Read... [03:02:20]*** Cut start [03:02:20]*** Purtial cut [03:02:20]*** Stage 1: CUTSNS_PIN = 1 [03:02:20]Read from MH i2c: 01 [03:02:20]MH_I2C_Read... [03:02:20]*** Stop cut motor [03:02:20]*** Cut end [03:02:20]Read from MH i2c: 01 07 00 [03:02:20]MH_I2C_Read... [03:02:20]Read from MH i2c: 01 07 00 72 1B 00 00 00 00 00 FF 0F A2 [03:02:20]process_action print_text done [03:02:20]requested_data is exist [03:02:20]produce_requested_data [03:02:20]requested_item fm.sn is exist - process it [03:02:20]wFMCommunicate request_size=4 [03:02:20]MH_SAM_APDU [03:02:20]CAPDU: 80 11 00 00 [03:02:20]Write to MH i2c: E2 08 00 73 1B 80 11 00 00 00 00 00 00 08 [03:02:20]Write i2c OK [03:02:20]MH_I2C_Read... [03:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:02:20]Read from MH i2c: E2 [03:02:20]MH_I2C_Read... [03:02:20]Read from MH i2c: E2 17 00 [03:02:20]MH_I2C_Read... [03:02:20]Read from MH i2c: E2 17 00 73 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 5E [03:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 90 00 [03:02:20]wFMCommunicate OK [03:02:20]requested_item fd.num is exist - process it [03:02:20]SAM_PROTO_GetFieldsCounters [03:02:20]wFMCommunicate request_size=4 [03:02:20]MH_SAM_APDU [03:02:20]CAPDU: 80 13 00 00 [03:02:20]Write to MH i2c: E2 08 00 74 1B 80 13 00 00 00 00 00 00 0B [03:02:20]Write i2c OK [03:02:20]MH_I2C_Read... [03:02:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:02:20]Read from MH i2c: E2 [03:02:20]MH_I2C_Read... [03:02:20]Read from MH i2c: E2 62 00 [03:02:20]MH_I2C_Read... [03:02:20]Read from MH i2c: E2 62 00 74 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 34 35 10 04 04 00 74 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [03:02: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 74 06 01 00 0E 04 04 00 64 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:02:20]wFMCommunicate OK [03:02:20]SAM_PROTO_GetFieldsCounters done [03:02:20]requested_item shift.num is exist - process it [03:02:20]requested_item shift.opened is exist - process it [03:02:20]req_shift_opened [03:02:20]FM_GetShiftState [03:02:20]SAM_PROTO_GetShiftState [03:02:20]wFMCommunicate request_size=4 [03:02:20]MH_SAM_APDU [03:02:20]CAPDU: 80 13 01 00 [03:02:20]Write to MH i2c: E2 08 00 75 1B 80 13 01 00 00 00 00 00 0D [03:02:20]Write i2c OK [03:02:20]MH_I2C_Read... [03:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:02:20]Read from MH i2c: E2 [03:02:20]MH_I2C_Read... [03:02:20]Read from MH i2c: E2 0E 00 [03:02:20]MH_I2C_Read... [03:02:20]Read from MH i2c: E2 0E 00 75 1B 00 09 00 01 F7 FF 43 66 00 00 00 00 90 00 B8 [03:02:20]RAPDU: 09 00 01 F7 FF 43 66 00 00 00 00 90 00 [03:02:20]wFMCommunicate OK [03:02:20]SAM_PROTO_GetShiftState done [03:02:20]FM_GetShiftState done [03:02:20]req_shift_opened done [03:02:20]requested_item shift.open_date is exist - process it [03:02:20]req_shift_open_date [03:02:20]req_shift_open_date done [03:02:20]produce_requested_data done [03:02:20]produce_requested_data return {"fm.sn":"0000000000871829","fd.num":67188,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471} [03:02:20]process_action_free print_text [03:02:20]json_value_free [03:02:20]json_value_free done [03:02:20]process_json_proto returns [03:02:20]Send response to host [03:02:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871829","fd.num":67188,"shift.num":356,"shift.opened":1,"shift.open_date":1715732471}}} [03:02:20]free response buf [03:02:20]execute_script done [03:02:20]execute_script returns [03:02:20]free content buf [03:02:20]Sock 7.Close socket [03:02:20]Sock 7.Thread stoped [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]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:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send